/* Highstock JS v9.1.1 (2021-06-03) Indicator series type for Highcharts Stock (c) 2010-2021 Kamil Kulig License: www.highcharts.com/license */ 'use strict';(function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/indicators/regressions",["highcharts","highcharts/modules/stock"],function(h){d(h);d.Highcharts=h;return d}):d("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(d){function h(d,c,g,f){d.hasOwnProperty(c)||(d[c]=f.apply(null,g))}d=d?d._modules:{};h(d,"Stock/Indicators/LinearRegression/LinearRegression.js",[d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]],function(d,c){var g=this&&this.__extends||function(){var b=function(a,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b])};return b(a,e)};return function(a,e){function l(){this.constructor=a}b(a,e);a.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),f=d.seriesTypes.sma,h=c.isArray,k=c.extend,m=c.merge;c=function(b){function a(){var a=null!==b&&b.apply(this, arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(a,b);a.prototype.getRegressionLineParameters=function(a,b){var e=this.options.params.index,l=function(a,e){return h(a)?a[e]:a},c=a.reduce(function(a,e){return e+a},0),d=b.reduce(function(a,b){return l(b,e)+a},0);c/=a.length;d/=b.length;var m=0,f=0,k;for(k=0;k\u25cf{series.name}: {point.y}\u00b0
'}});return b}(f);h(c.prototype,{nameBase:"Linear Regression Angle Indicator"});d.registerSeriesType("linearRegressionAngle",c);"";return c});h(d,"masters/indicators/regressions.src.js",[],function(){})}); //# sourceMappingURL=regressions.js.map