!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/dpo
 * @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/dpo",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/dpo"]=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,n={512:function(t){t.exports=r},944:function(r){r.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}};return n[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 j}});var c=i(944),u=i.n(c),f=i(512),s=i.n(f),p=function(t,r,e){if(e||2==arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))};function l(t,r){return t>1e14?t:parseFloat(t.toPrecision(r||14))}function h(t){return y(t)&&"number"==typeof t.nodeType}function y(t,r){var e;return!!t&&"object"==typeof t&&(!r||"[object Array]"!==(e=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==e)}function d(){for(var t=arguments,r=t.length,e=0;e<r;e++){var n=t[e];if(null!=n)return n}}u().doc,u().win,Array.prototype.find;var v=(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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),g=s().seriesTypes.sma;function _(t,r,e,n,o){var i=d(r[e][n],r[e]);return o?l(t-i):l(t+i)}var b=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return v(r,t),r.prototype.getValues=function(t,r){var e,n,o,i,a,c=r.period,u=r.index,f=Math.floor(c/2+1),s=c+f,p=t.xData||[],l=t.yData||[],h=l.length,y=[],v=[],g=[],b=0;if(!(p.length<=s)){for(i=0;i<c-1;i++)b=_(b,l,i,u);for(a=0;a<=h-s;a++)n=a+c-1,o=a+s-1,b=_(b,l,n,u),e=d(l[o][u],l[o])-b/c,b=_(b,l,a,u,!0),y.push([p[o],e]),v.push(p[o]),g.push(e);return{values:y,xData:v,yData:g}}},r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var n,o=p([t],r,!0),i={},a=function(t,r){return"object"!=typeof t&&(t={}),function(t,r,e){for(var n in t)Object.hasOwnProperty.call(t,n)&&r.call((0,t[n]),t[n],n,t)}(r,function(e,n){if("__proto__"!==n&&"constructor"!==n){var o;!y(e,!0)||(o=null==e?void 0:e.constructor,y(e,!0)&&!h(e)&&(null==o?void 0:o.name)&&"Object"!==o.name)||h(e)?t[n]=r[n]:t[n]=a(t[n]||{},e)}}),t};!0===t&&(i=o[1],o=Array.prototype.slice.call(o,2));var c=o.length;for(n=0;n<c;n++)i=a(i,o[n]);return i}(g.defaultOptions,{params:{index:0,period:21}}),r}(g);!function(t,r){var e;for(e in t||(t={}),r)t[e]=r[e]}(b.prototype,{nameBase:"DPO"}),s().registerSeriesType("dpo",b);var j=u();return a.default}()});