/** * Highstock JS v11.2.0 (2023-10-30) * * Indicator series type for Highcharts Stock * * (c) 2010-2021 Rafal Sebestjanski * * License: www.highcharts.com/license */!function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/indicators/tema",["highcharts","highcharts/modules/stock"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function o(e,t,o,n){e.hasOwnProperty(t)||(e[t]=n.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}o(t,"Stock/Indicators/TEMA/TEMAIndicator.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,t){var o,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=e.seriesTypes.ema,i=t.correctFloat,l=t.isArray,s=t.merge,a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.EMApercent=void 0,t.data=void 0,t.options=void 0,t.points=void 0,t}return n(t,e),t.prototype.getEMA=function(t,o,n,r,i,l){return e.prototype.calculateEma.call(this,l||[],t,void 0===i?1:i,this.EMApercent,o,void 0===r?-1:r,n)},t.prototype.getTemaPoint=function(e,t,o,n){return[e[n-3],i(3*o.level1-3*o.level2+o.level3)]},t.prototype.getValues=function(t,o){var n,r,i,s,a=o.period,u=2*a,c=3*a,p=t.xData,h=t.yData,v=h?h.length:0,d=[],f=[],y=[],g=[],m=[],E={},A=-1,M=0,_=0;if(this.EMApercent=2/(a+1),!(v<3*a-2)){for(l(h[0])&&(A=o.index?o.index:0),_=(M=e.prototype.accumulatePeriodPoints.call(this,a,A,h))/a,M=0,i=a;i