!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/apo
 * @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/apo",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/apo"]=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 e,o={512:function(t){t.exports=r},944:function(r){r.exports=t}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var e=n[t]={exports:{}};return o[t](e,e.exports,i),e.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 e in r)i.o(r,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},i.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var a={};i.d(a,{default:function(){return v}});var c=i(944),u=i.n(c),s=i(512),p=i.n(s),f=function(t,r,e){if(e||2==arguments.length)for(var o,n=0,i=r.length;n<i;n++)!o&&n in r||(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))};function l(t){return h(t)&&"number"==typeof t.nodeType}function h(t,r){var e;return!!t&&"object"==typeof t&&(!r||"[object Array]"!==(e=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==e)}u().doc,u().win,Array.prototype.find;var y=(e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}),d=p().seriesTypes.ema,g=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return y(r,t),r.prototype.getValues=function(r,e){var o,n,i=e.periods,a=e.index,u=[],s=[],p=[];if(2!==i.length||i[1]<=i[0])return void(0,c.error)('Error: "APO requires two periods. Notice, first period should be lower than the second one."');var f=t.prototype.getValues.call(this,r,{index:a,period:i[0]}),l=t.prototype.getValues.call(this,r,{index:a,period:i[1]});if(f&&l){var h=i[1]-i[0];for(n=0;n<l.yData.length;n++)o=f.yData[n+h]-l.yData[n],u.push([l.xData[n],o]),s.push(l.xData[n]),p.push(o);return{values:u,xData:s,yData:p}}},r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var o,n=f([t],r,!0),i={},a=function(t,r){return"object"!=typeof t&&(t={}),function(t,r,e){for(var o in t)Object.hasOwnProperty.call(t,o)&&r.call((0,t[o]),t[o],o,t)}(r,function(e,o){if("__proto__"!==o&&"constructor"!==o){var n;!h(e,!0)||(n=null==e?void 0:e.constructor,h(e,!0)&&!l(e)&&(null==n?void 0:n.name)&&"Object"!==n.name)||l(e)?t[o]=r[o]:t[o]=a(t[o]||{},e)}}),t};!0===t&&(i=n[1],n=Array.prototype.slice.call(n,2));var c=n.length;for(o=0;o<c;o++)i=a(i,n[o]);return i}(d.defaultOptions,{params:{period:void 0,periods:[10,20]}}),r}(d);!function(t,r){var e;for(e in t||(t={}),r)t[e]=r[e]}(g.prototype,{nameBase:"APO",nameComponents:["periods"]}),p().registerSeriesType("apo",g);var v=u();return a.default}()});