!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/aroon
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Wojciech Chmiel
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/aroon",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/aroon"]=r(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=r(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,r){return function(){"use strict";var o,n,e={512:function(t){t.exports=r},944:function(r){r.exports=t}},a={};function i(t){var r=a[t];if(void 0!==r)return r.exports;var o=a[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(r,{a:r}),r},i.d=function(t,r){for(var o in r)i.o(r,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},i.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var p={};i.d(p,{default:function(){return O}});var s=i(944),l=i.n(s),c=i(512),u=i.n(c),f=function(t,r,o){if(o||2==arguments.length)for(var n,e=0,a=r.length;e<a;e++)!n&&e in r||(n||(n=Array.prototype.slice.call(r,0,e)),n[e]=r[e]);return t.concat(n||Array.prototype.slice.call(r))};function h(t){return y(t)&&"number"==typeof t.nodeType}function y(t,r){var o;return!!t&&"object"==typeof t&&(!r||"[object Array]"!==(o=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==o)}function d(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var n,e=f([t],r,!0),a={},i=function(t,r){return"object"!=typeof t&&(t={}),function(t,r,o){for(var n in t)Object.hasOwnProperty.call(t,n)&&r.call((0,t[n]),t[n],n,t)}(r,function(o,n){if("__proto__"!==n&&"constructor"!==n){var e;!y(o,!0)||(e=null==o?void 0:o.constructor,y(o,!0)&&!h(o)&&(null==e?void 0:e.name)&&"Object"!==e.name)||h(o)?t[n]=r[n]:t[n]=i(t[n]||{},o)}}),t};!0===t&&(a=e[1],e=Array.prototype.slice.call(e,2));var p=e.length;for(n=0;n<p;n++)a=i(a,e[n]);return a}function g(){for(var t=arguments,r=t.length,o=0;o<r;o++){var n=t[o];if(null!=n)return n}}l().doc,l().win,Array.prototype.find;var v=u().seriesTypes.sma.prototype;!function(t){var r=["bottomLine"],o=["top","bottom"],n=["top"];function e(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function a(t,r){var o=[];return(t.pointArrayMap||[]).forEach(function(t){t!==r&&o.push(e(t))}),o}function i(){var t,r=this,o=r.pointValKey,n=r.linesApiNames,i=r.areaLinesNames,p=r.points,l=r.options,c=r.graph,u={options:{gapSize:l.gapSize}},f=[],h=a(r,o),y=p.length;if(h.forEach(function(r,o){for(f[o]=[];y--;)t=p[y],f[o].push({x:t.x,plotX:t.plotX,plotY:t[r],isNull:null==t[r]});y=p.length}),r.userOptions.fillColor&&i.length){var g=f[h.indexOf(e(i[0]))],m=1===i.length?p:f[h.indexOf(e(i[1]))],x=r.color;r.points=m,r.nextPoints=g,r.color=r.userOptions.fillColor,r.options=d(p,u),r.graph=r.area,r.fillGraph=!0,v.drawGraph.call(r),r.area=r.graph,delete r.nextPoints,delete r.fillGraph,r.color=x}n.forEach(function(t,o){f[o]?(r.points=f[o],l[t]?r.options=d(l[t].styles,u):(0,s.error)('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),r.graph=r["graph"+t],v.drawGraph.call(r),r["graph"+t]=r.graph):(0,s.error)('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),r.points=p,r.options=l,r.graph=c,v.drawGraph.call(r)}function p(t){var r,o=[],n=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if((r=v.getGraphPath.call(this,this.nextPoints))&&r.length){r[0][0]="L",o=v.getGraphPath.call(this,t),n=r.slice(0,o.length);for(var e=n.length-1;e>=0;e--)o.push(n[e])}}else o=v.getGraphPath.apply(this,arguments);return o}function l(t){var r=[];return(this.pointArrayMap||[]).forEach(function(o){r.push(t[o])}),r}function c(){var t,r=this,o=this.pointArrayMap,n=[];n=a(this),v.translate.apply(this,arguments),this.points.forEach(function(e){o.forEach(function(o,a){t=e[o],r.dataModify&&(t=r.dataModify.modifyValue(t)),null!==t&&(e[n[a]]=r.yAxis.toPixels(t,!0))})})}t.compose=function(t){var e=t.prototype;return e.linesApiNames=e.linesApiNames||r.slice(),e.pointArrayMap=e.pointArrayMap||o.slice(),e.pointValKey=e.pointValKey||"top",e.areaLinesNames=e.areaLinesNames||n.slice(),e.drawGraph=i,e.getGraphPath=p,e.toYData=l,e.translate=c,t}}(n||(n={}));var m=n,x=(o=function(t,r){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])})(t,r)},function(t,r){function n(){this.constructor=t}o(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),A=u().seriesTypes.sma;function b(t,r){var o,n=t[0],e=0;for(o=1;o<t.length;o++)("max"===r&&t[o]>=n||"min"===r&&t[o]<=n)&&(n=t[o],e=o);return e}var w=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return x(r,t),r.prototype.getValues=function(t,r){var o,n,e,a,i,p=r.period,s=t.xData,l=t.yData,c=l?l.length:0,u=[],f=[],h=[];for(a=p-1;a<c;a++)e=b((i=l.slice(a-p+1,a+2)).map(function(t){return g(t[2],t)}),"min"),o=b(i.map(function(t){return g(t[1],t)}),"max")/p*100,n=e/p*100,s[a+1]&&(u.push([s[a+1],o,n]),f.push(s[a+1]),h.push([o,n]));return{values:u,xData:f,yData:h}},r.defaultOptions=d(A.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}}),r}(A);!function(t,r){var o;for(o in t||(t={}),r)t[o]=r[o]}(w.prototype,{areaLinesNames:[],linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"}),m.compose(w),u().registerSeriesType("aroon",w);var O=l();return p.default}()});