!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/rsi
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Paweł Fus
 *
 * 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/rsi",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/rsi"]=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 b}});var c=i(944),u=i.n(c),s=i(512),f=i.n(s),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){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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),d=f().seriesTypes.sma;function g(t,r){return parseFloat(t.toFixed(r))}var v=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return y(r,t),r.prototype.getValues=function(t,r){var e,n,o,i,a,c,u,s=r.period,f=t.xData,p=t.yData,l=p?p.length:0,h=r.decimals,y=[],d=[],v=[],b=0,_=0,x=r.index,j=1;if(!(f.length<s)){for("number"==typeof(e=p[0])&&!isNaN(e)&&e<1/0&&e>-1/0?u=p:(x=Math.min(x,p[0].length-1),u=p.map(function(t){return t[x]}));j<s;)(o=g(u[j]-u[j-1],h))>0?b+=o:_+=Math.abs(o),j++;for(i=g(b/(s-1),h),a=g(_/(s-1),h),c=j;c<l;c++)(o=g(u[c]-u[c-1],h))>0?(b=o,_=0):(b=0,_=Math.abs(o)),i=g((i*(s-1)+b)/s,h),n=0===(a=g((a*(s-1)+_)/s,h))?100:0===i?0:g(100-100/(1+i/a),h),y.push([f[c],n]),d.push(f[c]),v.push(n);return{values:y,xData:d,yData:v}}},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;!h(e,!0)||(o=null==e?void 0:e.constructor,h(e,!0)&&!l(e)&&(null==o?void 0:o.name)&&"Object"!==o.name)||l(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}(d.defaultOptions,{params:{decimals:4,index:3}}),r}(d);f().registerSeriesType("rsi",v);var b=u();return a.default}()});