!/**
 * Highstock JS v11.4.0 (2024-03-04)
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2024 Paweł Fus
 *
 * License: www.highcharts.com/license
 */function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/indicators/rsi",["highcharts","highcharts/modules/stock"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function n(t,e,n,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,n),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}n(e,"Stock/Indicators/RSI/RSIIndicator.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=t.seriesTypes.sma,i=e.isNumber,s=e.merge;function a(t,e){return parseFloat(t.toFixed(e))}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getValues=function(t,e){var n,r,o,s,u,c,p=e.period,f=t.xData,l=t.yData,h=l?l.length:0,d=e.decimals,y=[],m=[],g=[],v=0,_=0,j=e.index,x=1;if(!(f.length<p)){for(i(l[0])?c=l:(j=Math.min(j,l[0].length-1),c=l.map(function(t){return t[j]}));x<p;)(r=a(c[x]-c[x-1],d))>0?v+=r:_+=Math.abs(r),x++;for(o=a(v/(p-1),d),s=a(_/(p-1),d),u=x;u<h;u++)(r=a(c[u]-c[u-1],d))>0?(v=r,_=0):(v=0,_=Math.abs(r)),o=a((o*(p-1)+v)/p,d),n=0===(s=a((s*(p-1)+_)/p,d))?100:0===o?0:a(100-100/(1+o/s),d),y.push([f[u],n]),m.push(f[u]),g.push(n);return{values:y,xData:m,yData:g}}},e.defaultOptions=s(o.defaultOptions,{params:{decimals:4,index:3}}),e}(o);return t.registerSeriesType("rsi",u),u}),n(e,"masters/indicators/rsi.src.js",[e["Core/Globals.js"]],function(t){return t})});