HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode/frontend/node_modules/highcharts/indicators/indicators.js
/*
 Highstock JS v10.3.3 (2023-01-20)

 Indicator series type for Highcharts Stock

 (c) 2010-2021 Pawel Fus, Sebastian Bochan

 License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/indicators",["highcharts","highcharts/modules/stock"],function(l){a(l);a.Highcharts=l;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function l(a,k,e,l){a.hasOwnProperty(k)||(a[k]=l.apply(null,e),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:k,module:a[k]}})))}
a=a?a._modules:{};l(a,"Stock/Indicators/SMA/SMAIndicator.js",[a["Core/Chart/Chart.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k,e){var l=this&&this.__extends||function(){var b=function(g,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return b(g,c)};return function(g,c){function f(){this.constructor=g}b(g,c);g.prototype=null===c?Object.create(c):(f.prototype=c.prototype,
new f)}}(),p=k.seriesTypes.line,n=e.addEvent,r=e.error,t=e.extend,u=e.isArray,b=e.merge,m=e.pick,q=e.splat;e=function(h){function g(){var c=null!==h&&h.apply(this,arguments)||this;c.data=void 0;c.dataEventsToUnbind=void 0;c.linkedParent=void 0;c.options=void 0;c.points=void 0;return c}l(g,h);g.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(c){c()});h.prototype.destroy.apply(this,arguments)};g.prototype.getName=function(){var c=[],f=this.name;f||((this.nameComponents||[]).forEach(function(d,
f){c.push(this.options.params[d]+m(this.nameSuffixes[f],""))},this),f=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+c.join(", ")+")":""));return f};g.prototype.getValues=function(c,f){var d=f.period,b=c.xData;c=c.yData;var g=c.length,a=[],m=[],q=[],h=-1,e=0,k=0;if(!(b.length<d)){for(u(c[0])&&(h=f.index?f.index:0);e<d-1;)k+=0>h?c[e]:c[e][h],e++;for(f=e;f<g;f++){k+=0>h?c[f]:c[f][h];var l=[b[f],k/d];a.push(l);m.push(l[0]);q.push(l[1]);k-=0>h?c[f-e]:c[f-e][h]}return{values:a,xData:m,
yData:q}}};g.prototype.init=function(c,f){var d=this;h.prototype.init.call(d,c,f);f=n(a,"afterLinkSeries",function(){var f=!!d.dataEventsToUnbind.length;if(d.linkedParent)if(f||(d.dataEventsToUnbind.push(n(d.linkedParent,"updatedData",function(){d.recalculateValues()})),d.calculateOn.xAxis&&d.dataEventsToUnbind.push(n(d.linkedParent.xAxis,d.calculateOn.xAxis,function(){d.recalculateValues()}))),"init"===d.calculateOn.chart)d.processedYData||d.recalculateValues();else{if(!f)var b=n(d.chart,d.calculateOn.chart,
function(){d.recalculateValues();b()})}else return r("Series "+d.options.linkedTo+" not found! Check `linkedTo`.",!1,c)},{order:0});d.dataEventsToUnbind=[];d.eventsToUnbind.push(f)};g.prototype.recalculateValues=function(){var c=[],f=this.points||[],d=(this.xData||[]).length,b={values:[],xData:[],yData:[]},a=!0;b=this.linkedParent.options&&this.linkedParent.yData&&this.linkedParent.yData.length?this.getValues(this.linkedParent,this.options.params)||b:b;if(d&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var g=
this.xAxis.min;var h=this.xAxis.max}d=this.cropData(b.xData,b.yData,g,h);for(g=0;g<d.xData.length;g++)c.push([d.xData[g]].concat(q(d.yData[g])));d=b.xData.indexOf(this.xData[0]);g=b.xData.indexOf(this.xData[this.xData.length-1]);-1===d&&g===b.xData.length-2&&c[0][0]===f[0].x&&c.shift();this.updateData(c)}else b.xData.length!==d-1&&b.xData.length!==d+1&&(a=!1,this.updateData(b.values));a&&(this.xData=b.xData,this.yData=b.yData,this.options.data=b.values);this.calculateOn.xAxis&&this.processedXData&&
(delete this.processedXData,this.isDirty=!0,this.redraw());this.isDirtyData=!!this.linkedSeries};g.prototype.processData=function(){var c=this.options.compareToMain,b=this.linkedParent;h.prototype.processData.apply(this,arguments);this.dataModify&&b&&b.dataModify&&b.dataModify.compareValue&&c&&(this.dataModify.compareValue=b.dataModify.compareValue)};g.defaultOptions=b(p.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return g}(p);
t(e.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});k.registerSeriesType("sma",e);"";return e});l(a,"Stock/Indicators/EMA/EMAIndicator.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k){var e=this&&this.__extends||function(){var a=function(e,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var h in a)a.hasOwnProperty(h)&&(b[h]=a[h])};return a(e,
b)};return function(e,b){function m(){this.constructor=e}a(e,b);e.prototype=null===b?Object.create(b):(m.prototype=b.prototype,new m)}}(),l=a.seriesTypes.sma,p=k.correctFloat,n=k.isArray,r=k.merge;k=function(a){function k(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}e(k,a);k.prototype.accumulatePeriodPoints=function(b,a,e){for(var h=0,g=0,c;g<b;)c=0>a?e[g]:e[g][a],h+=c,g++;return h};k.prototype.calculateEma=function(b,a,e,h,g,c,f){b=b[e-1];
a=0>c?a[e-1]:a[e-1][c];h="undefined"===typeof g?f:p(a*h+g*(1-h));return[b,h]};k.prototype.getValues=function(b,a){var e=a.period,h=b.xData,g=(b=b.yData)?b.length:0,c=2/(e+1),f=[],d=[],k=[],l=-1;if(!(g<e)){n(b[0])&&(l=a.index?a.index:0);a=this.accumulatePeriodPoints(e,l,b);for(a/=e;e<g+1;e++){var m=this.calculateEma(h,b,e,c,m,l,a);f.push(m);d.push(m[0]);k.push(m[1]);m=m[1]}return{values:f,xData:d,yData:k}}};k.defaultOptions=r(l.defaultOptions,{params:{index:3,period:9}});return k}(l);a.registerSeriesType("ema",
k);"";return k});l(a,"masters/indicators/indicators.src.js",[],function(){})});
//# sourceMappingURL=indicators.js.map