!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/chaikin
 * @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,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/chaikin",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/chaikin"]=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}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[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 u={};a.d(u,{default:function(){return D}});var s=a(944),c=a.n(s),p=a(512),l=a.n(p),f=function(t,e,r){if(r||2==arguments.length)for(var o,n=0,i=e.length;n<i;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 h(t,e){var r;for(r in t||(t={}),e)t[r]=e[r];return t}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 v(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var o,n=f([t],e,!0),i={},a=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]=a(t[o]||{},r)}}),t};!0===t&&(i=n[1],n=Array.prototype.slice.call(n,2));var u=n.length;for(o=0;o<u;o++)i=a(i,n[o]);return i}c().doc,c().win,Array.prototype.find;var g=(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)}),m=l().seriesTypes.sma,_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g(e,t),e.populateAverage=function(t,e,r,o,n){var i=e[o][1],a=e[o][2],u=e[o][3],s=r[o],c=u===i&&u===a||i===a?0:(2*u-a-i)/(i-a)*s;return[t[o],c]},e.prototype.getValues=function(t,r){var o,n,i,a=r.period,u=t.xData,c=t.yData,p=r.volumeSeriesID,l=t.chart.get(p),f=null==l?void 0:l.getColumn("y"),h=c?c.length:0,y=[],d=[],v=[];if(!(u.length<=a)||!h||4===c[0].length){if(!l)return void(0,s.error)("Series "+p+" not found! Check `volumeSeriesID`.",!0,t.chart);for(n=a;n<h;n++)o=y.length,i=e.populateAverage(u,c,f,n,a),o>0&&(i[1]+=y[o-1][1]),y.push(i),d.push(i[0]),v.push(i[1]);return{values:y,xData:d,yData:v}}},e.defaultOptions=v(m.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}}),e}(m);h(_.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"}),l().registerSeriesType("ad",_);var b=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),O=l().seriesTypes.ema,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.getValues=function(e,r){var o,n,i=r.periods,a=r.period,u=[],c=[],p=[];if(2!==i.length||i[1]<=i[0])return void(0,s.error)('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');var l=_.prototype.getValues.call(this,e,{volumeSeriesID:r.volumeSeriesID,period:a});if(l){var f=t.prototype.getValues.call(this,l,{period:i[0]}),h=t.prototype.getValues.call(this,l,{period:i[1]});if(f&&h){var y,d=i[1]-i[0];for(n=0;n<h.yData.length;n++){o=(y=f.yData[n+d]-h.yData[n])>1e14?y:parseFloat(y.toPrecision(14)),u.push([h.xData[n],o]),c.push(h.xData[n]),p.push(o)}return{values:u,xData:c,yData:p}}}},e.defaultOptions=v(O.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}}),e}(O);h(x.prototype,{nameBase:"Chaikin Osc",nameComponents:["periods"]}),l().registerSeriesType("chaikin",x);var D=c();return u.default}()});