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