Hacked By AnonymousFox
!/**
* Highstock JS v12.1.2 (2025-01-09)
* @module highcharts/indicators/price-channel
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highcharts Stock
*
* (c) 2010-2024 Daniel Studencki
*
* License: www.highcharts.com/license
*/function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/price-channel",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"]],e):"object"==typeof exports?exports["highcharts/indicators/price-channel"]=e(require("highcharts"),require("highcharts").SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}(this,function(t,e){return function(){"use strict";var r,n,i={512:function(t){t.exports=e},944:function(e){e.exports=t}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return i[t](r,r.exports,a),r.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var s={};a.d(s,{default:function(){return O}});var p=a(944),h=a.n(p),l={getArrayExtremes:function(t,e,r){return t.reduce(function(t,n){return[Math.min(t[0],n[e]),Math.max(t[1],n[r])]},[Number.MAX_VALUE,-Number.MAX_VALUE])}},c=a(512),u=a.n(c),f=u().seriesTypes.sma.prototype,d=h().defined,y=h().error,g=h().merge;!function(t){var e=["bottomLine"],r=["top","bottom"],n=["top"];function i(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function o(t,e){var r=[];return(t.pointArrayMap||[]).forEach(function(t){t!==e&&r.push(i(t))}),r}function a(){var t,e=this,r=e.pointValKey,n=e.linesApiNames,a=e.areaLinesNames,s=e.points,p=e.options,h=e.graph,l={options:{gapSize:p.gapSize}},c=[],u=o(e,r),m=s.length;if(u.forEach(function(e,r){for(c[r]=[];m--;)t=s[m],c[r].push({x:t.x,plotX:t.plotX,plotY:t[e],isNull:!d(t[e])});m=s.length}),e.userOptions.fillColor&&a.length){var x=c[u.indexOf(i(a[0]))],v=1===a.length?s:c[u.indexOf(i(a[1]))],A=e.color;e.points=v,e.nextPoints=x,e.color=e.userOptions.fillColor,e.options=g(s,l),e.graph=e.area,e.fillGraph=!0,f.drawGraph.call(e),e.area=e.graph,delete e.nextPoints,delete e.fillGraph,e.color=A}n.forEach(function(t,r){c[r]?(e.points=c[r],p[t]?e.options=g(p[t].styles,l):y('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),e.graph=e["graph"+t],f.drawGraph.call(e),e["graph"+t]=e.graph):y('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),e.points=s,e.options=p,e.graph=h,f.drawGraph.call(e)}function s(t){var e,r=[],n=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if((e=f.getGraphPath.call(this,this.nextPoints))&&e.length){e[0][0]="L",r=f.getGraphPath.call(this,t),n=e.slice(0,r.length);for(var i=n.length-1;i>=0;i--)r.push(n[i])}}else r=f.getGraphPath.apply(this,arguments);return r}function p(t){var e=[];return(this.pointArrayMap||[]).forEach(function(r){e.push(t[r])}),e}function h(){var t,e=this,r=this.pointArrayMap,n=[];n=o(this),f.translate.apply(this,arguments),this.points.forEach(function(i){r.forEach(function(r,o){t=i[r],e.dataModify&&(t=e.dataModify.modifyValue(t)),null!==t&&(i[n[o]]=e.yAxis.toPixels(t,!0))})})}t.compose=function(t){var i=t.prototype;return i.linesApiNames=i.linesApiNames||e.slice(),i.pointArrayMap=i.pointArrayMap||r.slice(),i.pointValKey=i.pointValKey||"top",i.areaLinesNames=i.areaLinesNames||n.slice(),i.drawGraph=a,i.getGraphPath=s,i.toYData=p,i.translate=h,t}}(n||(n={}));var m=n,x=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=u().seriesTypes.sma,A=h().merge,b=h().extend,M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return x(e,t),e.prototype.getValues=function(t,e){var r,n,i,o,a,s,p,h=e.period,c=t.xData,u=t.yData,f=u?u.length:0,d=[],y=[],g=[];if(!(f<h)){for(p=h;p<=f;p++)o=c[p-1],a=u.slice(p-h,p),r=((n=(s=l.getArrayExtremes(a,2,1))[1])+(i=s[0]))/2,d.push([o,n,r,i]),y.push(o),g.push([n,r,i]);return{values:d,xData:y,yData:g}}},e.defaultOptions=A(v.defaultOptions,{params:{index:void 0,period:20},lineWidth:1,topLine:{styles:{lineColor:"#00e272",lineWidth:1}},bottomLine:{styles:{lineColor:"#feb56a",lineWidth:1}},dataGrouping:{approximation:"averages"}}),e}(v);b(M.prototype,{areaLinesNames:["top","bottom"],nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),m.compose(M),u().registerSeriesType("pc",M);var O=h();return s.default}()});
Hacked By AnonymousFox1.0, Coded By AnonymousFox