/*
 Highcharts JS v10.3.1 (2022-10-31)

 (c) 2009-2021 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(C){d(C);d.Highcharts=C;return d}):d("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(d){function C(b,c,h,a){b.hasOwnProperty(c)||(b[c]=a.apply(null,h),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c,module:b[c]}})))}d=d?d._modules:{};C(d,
"Extensions/Pane.js",[d["Core/Chart/Chart.js"],d["Series/CenteredUtilities.js"],d["Core/Globals.js"],d["Core/Pointer.js"],d["Core/Utilities.js"]],function(b,c,h,a,f){function x(g,l,e,a,H){var m=!0,c=e[0],v=e[1],J=Math.sqrt(Math.pow(g-c,2)+Math.pow(l-v,2));p(a)&&p(H)&&(g=Math.atan2(q(l-v,8),q(g-c,8)),H!==a&&(m=a>H?g>=a&&g<=Math.PI||g<=H&&g>=-Math.PI:g>=a&&g<=q(H,8)));return J<=Math.ceil(e[2]/2)&&m}var d=f.addEvent,q=f.correctFloat,p=f.defined,D=f.extend,t=f.merge,k=f.pick,e=f.splat;b.prototype.collectionsWithUpdate.push("pane");
f=function(){function g(l,g){this.options=this.chart=this.center=this.background=void 0;this.coll="pane";this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0};this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"};this.init(l,g)}g.prototype.init=function(l,g){this.chart=g;this.background=
[];g.pane.push(this);this.setOptions(l)};g.prototype.setOptions=function(l){this.options=t(this.defaultOptions,this.chart.angular?{background:{}}:void 0,l)};g.prototype.render=function(){var l=this.options,g=this.options.background,a=this.chart.renderer;this.group||(this.group=a.g("pane-group").attr({zIndex:l.zIndex||0}).add());this.updateCenter();if(g)for(g=e(g),l=Math.max(g.length,this.background.length||0),a=0;a<l;a++)g[a]&&this.axis?this.renderBackground(t(this.defaultBackgroundOptions,g[a]),
a):this.background[a]&&(this.background[a]=this.background[a].destroy(),this.background.splice(a,1))};g.prototype.renderBackground=function(g,e){var l="animate",m={"class":"highcharts-pane "+(g.className||"")};this.chart.styledMode||D(m,{fill:g.backgroundColor,stroke:g.borderColor,"stroke-width":g.borderWidth});this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),l="attr");this.background[e][l]({d:this.axis.getPlotBandPath(g.from,g.to,g)}).attr(m)};g.prototype.updateCenter=
function(g){this.center=(g||this.axis||{}).center=c.getCenter.call(this)};g.prototype.update=function(g,e){t(!0,this.options,g);this.setOptions(this.options);this.render();this.chart.axes.forEach(function(g){g.pane===this&&(g.pane=null,g.update({},e))},this)};return g}();b.prototype.getHoverPane=function(g){var e=this,m;g&&e.pane.forEach(function(l){x(g.chartX-e.plotLeft,g.chartY-e.plotTop,l.center)&&(m=l)});return m};d(b,"afterIsInsidePlot",function(g){if(this.polar){var e=g.x-(g.options.paneCoordinates?
this.plotLeft:0),m=g.y-(g.options.paneCoordinates?this.plotTop:0);if(g.options.inverted){var a=[m,e];e=a[0];m=a[1]}g.isInsidePlot=this.pane.some(function(g){return x(e,m,g.center,g.axis&&g.axis.normalizedStartAngleRad,g.axis&&g.axis.normalizedEndAngleRad)})}});d(a,"beforeGetHoverData",function(g){var e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(g),g.filter=function(l){return l.visible&&!(!g.shared&&l.directTouch)&&k(l.options.enableMouseTracking,!0)&&(!e.hoverPane||l.xAxis.pane===e.hoverPane)}):
e.hoverPane=void 0});d(a,"afterGetHoverData",function(g){var e=this.chart;g.hoverPoint&&g.hoverPoint.plotX&&g.hoverPoint.plotY&&e.hoverPane&&!x(g.hoverPoint.plotX,g.hoverPoint.plotY,e.hoverPane.center)&&(g.hoverPoint=void 0)});h.Pane=f;return h.Pane});C(d,"Series/AreaRange/AreaRangePoint.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c){var h=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=
c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function f(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}();b=b.seriesTypes.area.prototype;var a=b.pointClass.prototype,f=c.defined,d=c.isNumber;return function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.high=void 0;a.low=void 0;a.options=void 0;a.plotX=void 0;a.series=void 0;return a}h(b,c);b.prototype.setState=function(){var c=
this.state,b=this.series,h=b.chart.polar;f(this.plotHigh)||(this.plotHigh=b.yAxis.toPixels(this.high,!0));f(this.plotLow)||(this.plotLow=this.plotY=b.yAxis.toPixels(this.low,!0));b.stateMarkerGraphic&&(b.lowerStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.upperStateMarkerGraphic);this.graphic=this.graphics&&this.graphics[1];this.plotY=this.plotHigh;h&&d(this.plotHighX)&&(this.plotX=this.plotHighX);a.setState.apply(this,arguments);this.state=c;this.plotY=this.plotLow;this.graphic=this.graphics&&
this.graphics[0];h&&d(this.plotLowX)&&(this.plotX=this.plotLowX);b.stateMarkerGraphic&&(b.upperStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.lowerStateMarkerGraphic,b.lowerStateMarkerGraphic=void 0);a.setState.apply(this,arguments)};b.prototype.haloPath=function(){var b=this.series.chart.polar,c=[];this.plotY=this.plotLow;b&&d(this.plotLowX)&&(this.plotX=this.plotLowX);this.isInside&&(c=a.haloPath.apply(this,arguments));this.plotY=this.plotHigh;b&&d(this.plotHighX)&&(this.plotX=this.plotHighX);
this.isTopInside&&(c=c.concat(a.haloPath.apply(this,arguments)));return c};b.prototype.isValid=function(){return d(this.low)&&d(this.high)};return b}(b.pointClass)});C(d,"Series/AreaRange/AreaRangeSeries.js",[d["Series/AreaRange/AreaRangePoint.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h,a){var f=this&&this.__extends||function(){var g=function(e,l){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,e){g.__proto__=e}||function(g,
e){for(var l in e)e.hasOwnProperty(l)&&(g[l]=e[l])};return g(e,l)};return function(e,l){function m(){this.constructor=e}g(e,l);e.prototype=null===l?Object.create(l):(m.prototype=l.prototype,new m)}}();c=c.noop;var d=h.seriesTypes,n=d.area,q=d.area.prototype,p=d.column.prototype;d=a.addEvent;var D=a.defined,t=a.extend,k=a.isArray,e=a.isNumber,g=a.pick,l=a.merge,m={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},
trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}};a=function(e){function a(){var g=null!==e&&e.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;g.lowerStateMarkerGraphic=void 0;g.xAxis=void 0;return g}f(a,e);a.prototype.toYData=function(g){return[g.low,g.high]};a.prototype.highToXY=function(g){var e=this.chart,l=this.xAxis.postTranslate(g.rectPlotX||0,this.yAxis.len-(g.plotHigh||0));g.plotHighX=l.x-e.plotLeft;g.plotHigh=l.y-e.plotTop;
g.plotLowX=g.plotX};a.prototype.getGraphPath=function(e){var l=[],a=[],m=q.getGraphPath,b=this.options,c=this.chart.polar,w=c&&!1!==b.connectEnds,z=b.connectNulls,E,f=b.step;e=e||this.points;for(E=e.length;E--;){var r=e[E];var k=c?{plotX:r.rectPlotX,plotY:r.yBottom,doCurve:!1}:{plotX:r.plotX,plotY:r.plotY,doCurve:!1};r.isNull||w||z||e[E+1]&&!e[E+1].isNull||a.push(k);var h={polarPlotY:r.polarPlotY,rectPlotX:r.rectPlotX,yBottom:r.yBottom,plotX:g(r.plotHighX,r.plotX),plotY:r.plotHigh,isNull:r.isNull};
a.push(h);l.push(h);r.isNull||w||z||e[E-1]&&!e[E-1].isNull||a.push(k)}e=m.call(this,e);f&&(!0===f&&(f="left"),b.step={left:"right",center:"center",right:"left"}[f]);l=m.call(this,l);a=m.call(this,a);b.step=f;b=[].concat(e,l);!this.chart.polar&&a[0]&&"M"===a[0][0]&&(a[0]=["L",a[0][1],a[0][2]]);this.graphPath=b;this.areaPath=e.concat(a);b.isArea=!0;b.xMap=e.xMap;this.areaPath.xMap=e.xMap;return b};a.prototype.drawDataLabels=function(){var g=this.points,e=g.length,l=[],a=this.options.dataLabels,m=this.chart.inverted,
b,w;if(a){if(k(a)){var c=a[0]||{enabled:!1};var f=a[1]||{enabled:!1}}else c=t({},a),c.x=a.xHigh,c.y=a.yHigh,f=t({},a),f.x=a.xLow,f.y=a.yLow;if(c.enabled||this._hasPointLabels){for(b=e;b--;)if(w=g[b]){var h=w.plotHigh;h=void 0===h?0:h;var r=w.plotLow;r=void 0===r?0:r;r=c.inside?h<r:h>r;w.y=w.high;w._plotY=w.plotY;w.plotY=h;l[b]=w.dataLabel;w.dataLabel=w.dataLabelUpper;w.below=r;m?c.align||(c.align=r?"right":"left"):c.verticalAlign||(c.verticalAlign=r?"top":"bottom")}this.options.dataLabels=c;q.drawDataLabels&&
q.drawDataLabels.apply(this,arguments);for(b=e;b--;)if(w=g[b])w.dataLabelUpper=w.dataLabel,w.dataLabel=l[b],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY}if(f.enabled||this._hasPointLabels){for(b=e;b--;)if(w=g[b])l=w.plotHigh,h=void 0===l?0:l,l=w.plotLow,r=void 0===l?0:l,r=f.inside?h<r:h>r,w.below=!r,m?f.align||(f.align=r?"left":"right"):f.verticalAlign||(f.verticalAlign=r?"bottom":"top");this.options.dataLabels=f;q.drawDataLabels&&q.drawDataLabels.apply(this,arguments)}if(c.enabled)for(b=e;b--;)if(w=
g[b])w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(g){return!!g});this.options.dataLabels=a}};a.prototype.alignDataLabel=function(){p.alignDataLabel.apply(this,arguments)};a.prototype.drawPoints=function(){var e=this.points.length,l;q.drawPoints.apply(this,arguments);for(l=0;l<e;){var a=this.points[l];a.graphics=a.graphics||[];a.origProps={plotY:a.plotY,plotX:a.plotX,isInside:a.isInside,negative:a.negative,zone:a.zone,y:a.y};a.graphic&&(a.graphics[0]=a.graphic);a.graphic=a.graphics[1];
a.plotY=a.plotHigh;D(a.plotHighX)&&(a.plotX=a.plotHighX);a.y=g(a.high,a.origProps.y);a.negative=a.y<(this.options.threshold||0);this.zones.length&&(a.zone=a.getZone());this.chart.polar||(a.isInside=a.isTopInside="undefined"!==typeof a.plotY&&0<=a.plotY&&a.plotY<=this.yAxis.len&&0<=a.plotX&&a.plotX<=this.xAxis.len);l++}q.drawPoints.apply(this,arguments);for(l=0;l<e;)a=this.points[l],a.graphics=a.graphics||[],a.graphic&&(a.graphics[1]=a.graphic),a.graphic=a.graphics[0],a.origProps&&(t(a,a.origProps),
delete a.origProps),l++};a.defaultOptions=l(n.defaultOptions,m);return a}(n);d(a,"afterTranslate",function(){var g=this;"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(function(a){var l=a.high,m=a.plotY;a.isNull?a.plotY=void 0:(a.plotLow=m,a.plotHigh=e(l)?g.yAxis.translate(g.dataModify?g.dataModify.modifyValue(l):l,!1,!0,void 0,!0):void 0,g.dataModify&&(a.yBottom=a.plotHigh))})},{order:0});d(a,"afterTranslate",function(){var g=this;this.chart.polar&&this.points.forEach(function(e){g.highToXY(e);
e.plotLow=e.plotY;e.tooltipPos=[((e.plotHighX||0)+(e.plotLowX||0))/2,((e.plotHigh||0)+(e.plotLow||0))/2]})},{order:3});t(a.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:b,pointValKey:"low",setStackedPoints:c});h.registerSeriesType("arearange",a);"";return a});C(d,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[d["Series/AreaRange/AreaRangeSeries.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h){var a=this&&this.__extends||function(){var a=
function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),f=c.seriesTypes.spline.prototype,d=h.merge;h=h.extend;var n=function(c){function f(){var a=null!==c&&c.apply(this,arguments)||this;a.options=void 0;a.data=void 0;a.points=void 0;return a}a(f,
c);f.defaultOptions=d(b.defaultOptions);return f}(b);h(n.prototype,{getPointSpline:f.getPointSpline});c.registerSeriesType("areasplinerange",n);"";return n});C(d,"Series/BoxPlot/BoxPlotSeries.js",[d["Series/Column/ColumnSeries.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h,a){var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var g in e)e.hasOwnProperty(g)&&
(a[g]=e[g])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();c=c.noop;var d=a.extend,n=a.merge,q=a.pick;a=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}f(c,a);c.prototype.pointAttribs=function(){return{}};c.prototype.translate=function(){var b=this.yAxis,c=this.pointArrayMap;a.prototype.translate.apply(this);this.points.forEach(function(a){c.forEach(function(g){null!==
a[g]&&(a[g+"Plot"]=b.translate(a[g],0,1,0,1))});a.plotHigh=a.highPlot})};c.prototype.drawPoints=function(){var a=this,b=a.options,e=a.chart,g=e.renderer,l,c,f,h,d,G,v=0,n,I,L,w,z=!1!==a.doQuartiles,E,F=a.options.whiskerLength;a.points.forEach(function(m){var r=m.graphic,H=r?"animate":"attr",J=m.shapeArgs,k={},N={},x={},u={},B=m.color||a.color;"undefined"!==typeof m.plotY&&(n=Math.round(J.width),I=Math.floor(J.x),L=I+n,w=Math.round(n/2),l=Math.floor(z?m.q1Plot:m.lowPlot),c=Math.floor(z?m.q3Plot:m.lowPlot),
f=Math.floor(m.highPlot),h=Math.floor(m.lowPlot),r||(m.graphic=r=g.g("point").add(a.group),m.stem=g.path().addClass("highcharts-boxplot-stem").add(r),F&&(m.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(r)),z&&(m.box=g.path(void 0).addClass("highcharts-boxplot-box").add(r)),m.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(r)),e.styledMode||(N.stroke=m.stemColor||b.stemColor||B,N["stroke-width"]=q(m.stemWidth,b.stemWidth,b.lineWidth),N.dashstyle=m.stemDashStyle||
b.stemDashStyle||b.dashStyle,m.stem.attr(N),F&&(x.stroke=m.whiskerColor||b.whiskerColor||B,x["stroke-width"]=q(m.whiskerWidth,b.whiskerWidth,b.lineWidth),x.dashstyle=m.whiskerDashStyle||b.whiskerDashStyle||b.dashStyle,m.whiskers.attr(x)),z&&(k.fill=m.fillColor||b.fillColor||B,k.stroke=b.lineColor||B,k["stroke-width"]=b.lineWidth||0,k.dashstyle=m.boxDashStyle||b.boxDashStyle||b.dashStyle,m.box.attr(k)),u.stroke=m.medianColor||b.medianColor||B,u["stroke-width"]=q(m.medianWidth,b.medianWidth,b.lineWidth),
u.dashstyle=m.medianDashStyle||b.medianDashStyle||b.dashStyle,m.medianShape.attr(u)),G=m.stem.strokeWidth()%2/2,v=I+w+G,r=[["M",v,c],["L",v,f],["M",v,l],["L",v,h]],m.stem[H]({d:r}),z&&(G=m.box.strokeWidth()%2/2,l=Math.floor(l)+G,c=Math.floor(c)+G,I+=G,L+=G,r=[["M",I,c],["L",I,l],["L",L,l],["L",L,c],["L",I,c],["Z"]],m.box[H]({d:r})),F&&(G=m.whiskers.strokeWidth()%2/2,f+=G,h+=G,E=/%$/.test(F)?w*parseFloat(F)/100:F/2,r=[["M",v-E,f],["L",v+E,f],["M",v-E,h],["L",v+E,h]],m.whiskers[H]({d:r})),d=Math.round(m.medianPlot),
G=m.medianShape.strokeWidth()%2/2,d+=G,r=[["M",I,d],["L",L,d]],m.medianShape[H]({d:r}))})};c.prototype.toYData=function(a){return[a.low,a.q1,a.median,a.q3,a.high]};c.defaultOptions=n(b.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,
medianWidth:2,whiskerWidth:2});return c}(b);d(a.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:c,setStackedPoints:c});h.registerSeriesType("boxplot",a);"";return a});C(d,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,
align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});C(d,"Series/Bubble/BubbleLegendItem.js",[d["Core/Color/Color.js"],d["Core/FormatUtilities.js"],d["Core/Globals.js"],d["Core/Utilities.js"]],function(b,c,h,a){var f=b.parse,d=h.noop,n=a.arrayMax,q=a.arrayMin,p=a.isNumber,D=a.merge,t=a.pick,k=a.stableSort;b=function(){function a(a,
e){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0;this.setState=d;this.init(a,e)}a.prototype.init=function(a,e){this.options=a;this.visible=!0;this.chart=e.chart;this.legend=e};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(a){var g=this.chart,e=t(a.options.itemDistance,20),b=this.legendItem||{},c=this.options,f=c.ranges,h=c.connectorDistance;
this.fontMetrics=g.renderer.fontMetrics(c.labels.style.fontSize);f&&f.length&&p(f[0].value)?(k(f,function(a,g){return g.value-a.value}),this.ranges=f,this.setOptions(),this.render(),a=this.getMaxLabelSize(),f=this.ranges[0].radius,g=2*f,h=h-f+a.width,h=0<h?h:0,this.maxLabel=a,this.movementX="left"===c.labels.align?h:0,b.labelWidth=g+h+e,b.labelHeight=g+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,e=this.options,b=this.chart.series[e.seriesIndex],
c=this.legend.baseline,h={zIndex:e.zIndex,"stroke-width":e.borderWidth},d={zIndex:e.zIndex,"stroke-width":e.connectorWidth},k={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},v=b.options.marker.fillOpacity,n=this.chart.styledMode;a.forEach(function(g,l){n||(h.stroke=t(g.borderColor,e.borderColor,b.color),h.fill=t(g.color,e.color,1!==v?f(b.color).setOpacity(v).get("rgba"):b.color),d.stroke=t(g.connectorColor,e.connectorColor,b.color));a[l].radius=this.getRangeRadius(g.value);
a[l]=D(a[l],{center:a[0].radius-a[l].radius+c});n||D(!0,a[l],{bubbleAttribs:D(h),connectorAttribs:D(d),labelAttribs:k})},this)};a.prototype.getRangeRadius=function(a){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,a)};a.prototype.render=function(){var a=this.legendItem||{},e=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});
a.symbol=e.g("bubble-legend");a.label=e.g("bubble-legend-item");a.symbol.translateX=0;e=a.symbol.translateY=0;for(var c=this.ranges;e<c.length;e++){var f=c[e];f.value>=b&&this.renderRange(f)}a.symbol.add(a.label);a.label.add(a.group);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var e=this.options,g=e.labels,b=this.chart,c=b.series[e.seriesIndex],f=b.renderer,h=this.symbols;b=h.labels;var d=a.center,k=Math.abs(a.radius),I=e.connectorDistance||0,L=g.align,w=e.connectorWidth,z=this.ranges[0].radius||
0,E=d-k-e.borderWidth/2+w/2,F=this.fontMetrics;F=F.f/2-(F.h-F.f)/2;var r=f.styledMode;I=this.legend.options.rtl||"left"===L?-I:I;"center"===L&&(I=0,e.connectorDistance=0,a.labelAttribs.align="center");L=E+e.labels.y;var n=z+I+e.labels.x;h.bubbleItems.push(f.circle(z,d+((E%1?1:.5)-(w%2?0:.5)),k).attr(r?{}:a.bubbleAttribs).addClass((r?"highcharts-color-"+c.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendItem.symbol));h.connectors.push(f.path(f.crispLine([["M",
z,E],["L",z+I,E]],e.connectorWidth)).attr(r?{}:a.connectorAttribs).addClass((r?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendItem.symbol));a=f.text(this.formatLabel(a),n,L+F).attr(r?{}:a.labelAttribs).css(r?{}:g.style).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendItem.symbol);b.push(a);a.placed=!0;a.alignAttr={x:n,y:L+F}};a.prototype.getMaxLabelSize=function(){var a,e;this.symbols.labels.forEach(function(g){e=
g.getBBox(!0);a=a?e.width>a.width?e:a:e});return a||{}};a.prototype.formatLabel=function(a){var e=this.options,g=e.labels.formatter;e=e.labels.format;var b=this.chart.numberFormatter;return e?c.format(e,a):g?g.call(a):b(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(a.hideOverlappingLabels(e.labels),e.labels.forEach(function(a,g){a.newOpacity?a.newOpacity!==a.oldOpacity&&e.connectors[g].show():e.connectors[g].hide()}))};
a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,e=a.options.ranges,b,c=Number.MAX_VALUE,f=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(b=a.zData.filter(p),b.length&&(c=t(a.options.zMin,Math.min(c,Math.max(q(b),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),f=t(a.options.zMax,Math.max(f,n(b)))))});var h=c===f?[{value:f}]:[{value:c},{value:(c+f)/2},{value:f,autoRanges:!0}];e.length&&e[0].radius&&h.reverse();h.forEach(function(a,
b){e&&e[b]&&(h[b]=D(e[b],a))});return h};a.prototype.predictBubbleSizes=function(){var a=this.chart,e=this.fontMetrics,b=a.legend.options,c=b.floating,f=(b="horizontal"===b.layout)?a.legend.lastLineHeight:0,h=a.plotSizeX,d=a.plotSizeY,v=a.series[this.options.seriesIndex],k=v.getPxExtremes();a=Math.ceil(k.minPxSize);k=Math.ceil(k.maxPxSize);var I=Math.min(d,h);v=v.options.maxSize;if(c||!/%$/.test(v))e=k;else if(v=parseFloat(v),e=(I+f-e.h/2)*v/100/(v/100+1),b&&d-e>=h||!b&&h-e>=d)e=k;return[a,Math.ceil(e)]};
a.prototype.updateRanges=function(a,e){var b=this.legend.options.bubbleLegend;b.minSize=a;b.maxSize=e;b.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e.maxPxSize),a.render())};return a}();"";return b});C(d,"Series/Bubble/BubbleLegendComposition.js",[d["Series/Bubble/BubbleLegendDefaults.js"],d["Series/Bubble/BubbleLegendItem.js"],
d["Core/Defaults.js"],d["Core/Utilities.js"]],function(b,c,h,a){function f(a,b,g){var c=this.legend,m=0<=d(this),f;if(c&&c.options.enabled&&c.bubbleLegend&&c.options.bubbleLegend.autoRanges&&m){var l=c.bubbleLegend.options;m=c.bubbleLegend.predictBubbleSizes();c.bubbleLegend.updateRanges(m[0],m[1]);l.placed||(c.group.placed=!1,c.allItems.forEach(function(a){f=a.legendItem||{};f.group&&(f.group.translateY=null)}));c.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();l.placed||
(a.setScale(),a.updateNames(),e(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});l.placed=!0;this.getMargins();a.call(this,b,g);c.bubbleLegend.correctSizes();D(c,n(c))}else a.call(this,b,g),c&&c.options.enabled&&c.bubbleLegend&&(c.render(),D(c,n(c)))}function d(a){a=a.series;for(var e=0;e<a.length;){if(a[e]&&a[e].isBubble&&a[e].visible&&a[e].zData.length)return e;e++}return-1}function n(a){a=a.allItems;var e=[],b=a.length,c,g=0;for(c=0;c<b;c++){var f=a[c].legendItem||{};var l=(a[c+1]||{}).legendItem||
{};f.labelHeight&&(a[c].itemHeight=f.labelHeight);if(a[c]===a[b-1]||f.y!==l.y){e.push({height:0});f=e[e.length-1];for(g;g<=c;g++)a[g].itemHeight>f.height&&(f.height=a[g].itemHeight);f.step=c}}return e}function q(a){var e=this.bubbleLegend,b=this.options,g=b.bubbleLegend,f=d(this.chart);e&&e.ranges&&e.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(e));0<=f&&b.enabled&&g.enabled&&(g.seriesIndex=f,this.bubbleLegend=new c(g,this),this.bubbleLegend.addToLegend(a.allItems))}
function p(){var a=this.chart,e=this.visible,b=this.chart.legend;b&&b.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,a=0<=d(a),b.bubbleLegend.visible!==a&&(b.update({bubbleLegend:{enabled:a}}),b.bubbleLegend.visible=a),this.visible=e)}function D(a,e){var b=a.options.rtl,c,g,f,l,h=0;a.allItems.forEach(function(a,w){l=a.legendItem||{};if(l.group){c=l.group.translateX||0;g=l.y||0;if((f=a.movementX)||b&&a.ranges)f=b?c-a.options.maxSize/2:c+f,l.group.attr({translateX:f});w>e[h].step&&h++;l.group.attr({translateY:Math.round(g+
e[h].height/2)});l.y=g+e[h].height/2}})}var t=h.setOptions,k=a.addEvent,e=a.objectEach,g=a.wrap,l=[];return{compose:function(a,e,c){-1===l.indexOf(a)&&(l.push(a),t({legend:{bubbleLegend:b}}),g(a.prototype,"drawChartBox",f));-1===l.indexOf(e)&&(l.push(e),k(e,"afterGetAllItems",q));-1===l.indexOf(c)&&(l.push(c),k(c,"legendItemClick",p))}}});C(d,"Series/Bubble/BubblePoint.js",[d["Core/Series/Point.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h){var a=this&&this.__extends||
function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();h=h.extend;c=function(c){function f(){var a=null!==c&&c.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}a(f,c);f.prototype.haloPath=function(a){return b.prototype.haloPath.call(this,
0===a?0:(this.marker?this.marker.radius||0:0)+a)};return f}(c.seriesTypes.scatter.prototype.pointClass);h(c.prototype,{ttBelow:!1});return c});C(d,"Series/Bubble/BubbleSeries.js",[d["Series/Bubble/BubbleLegendComposition.js"],d["Series/Bubble/BubblePoint.js"],d["Core/Color/Color.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h,a,f,d){function n(){var a=this,e=this.len,b=this.chart,c=this.isXAxis,g=c?"xData":"yData",f=this.min,l=this.max-f,h=0,m=e,
d=e/l,k;this.series.forEach(function(e){if(e.bubblePadding&&(e.visible||!b.options.chart.ignoreHiddenSeries)){k=a.allowZoomOutside=!0;var w=e[g];c&&((e.onPoint||e).getRadii(0,0,e),e.onPoint&&(e.radii=e.onPoint.radii));if(0<l)for(var z=w.length;z--;)if(J(w[z])&&a.dataMin<=w[z]&&w[z]<=a.max){var r=e.radii&&e.radii[z]||0;h=Math.min((w[z]-f)*d-r,h);m=Math.max((w[z]-f)*d+r,m)}}});k&&0<l&&!this.logarithmic&&(m-=e,d*=(e+Math.max(0,h)-Math.min(m,e))/e,[["min","userMin",h],["max","userMax",m]].forEach(function(e){"undefined"===
typeof N(a.options[e[0]],a[e[1]])&&(a[e[0]]+=e[2]/d)}))}var x=this&&this.__extends||function(){var a=function(e,b){a=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 a(e,b)};return function(e,b){function c(){this.constructor=e}a(e,b);e.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),p=h.parse;h=a.noop;var D=f.series,t=f.seriesTypes;a=t.column.prototype;var k=t.scatter;
t=d.addEvent;var e=d.arrayMax,g=d.arrayMin,l=d.clamp,m=d.extend,J=d.isNumber,H=d.merge,N=d.pick,G=[];d=function(a){function c(){var e=null!==a&&a.apply(this,arguments)||this;e.data=void 0;e.maxPxSize=void 0;e.minPxSize=void 0;e.options=void 0;e.points=void 0;e.radii=void 0;e.yData=void 0;e.zData=void 0;return e}x(c,a);c.compose=function(a,e,c,g){b.compose(e,c,g);-1===G.indexOf(a)&&(G.push(a),a.prototype.beforePadding=n)};c.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&
this.points.forEach(function(a){var e=a.graphic;e&&e.width&&(this.hasRendered||e.attr({x:a.plotX,y:a.plotY,width:1,height:1}),e.animate(this.markerAttribs(a),this.options.animation))},this)};c.prototype.getRadii=function(){var a=this,e=this.zData,b=this.yData,c=[],g=this.chart.bubbleZExtremes;var f=this.getPxExtremes();var l=f.minPxSize,h=f.maxPxSize;if(!g){var m=Number.MAX_VALUE,d=-Number.MAX_VALUE,k;this.chart.series.forEach(function(e){e.bubblePadding&&(e.visible||!a.chart.options.chart.ignoreHiddenSeries)&&
(e=(e.onPoint||e).getZExtremes())&&(m=Math.min(m||e.zMin,e.zMin),d=Math.max(d||e.zMax,e.zMax),k=!0)});k?(g={zMin:m,zMax:d},this.chart.bubbleZExtremes=g):g={zMin:0,zMax:0}}var n=0;for(f=e.length;n<f;n++){var v=e[n];c.push(this.getRadius(g.zMin,g.zMax,l,h,v,b&&b[n]))}this.radii=c};c.prototype.getRadius=function(a,e,b,c,g,f){var w=this.options,l="width"!==w.sizeBy,h=w.zThreshold,m=e-a,d=.5;if(null===f||null===g)return null;if(J(g)){w.sizeByAbsoluteValue&&(g=Math.abs(g-h),m=Math.max(e-h,Math.abs(a-h)),
a=0);if(g<a)return b/2-1;0<m&&(d=(g-a)/m)}l&&0<=d&&(d=Math.sqrt(d));return Math.ceil(b+d*(c-b))/2};c.prototype.hasData=function(){return!!this.processedXData.length};c.prototype.pointAttribs=function(a,e){var b=this.options.marker.fillOpacity;a=D.prototype.pointAttribs.call(this,a,e);1!==b&&(a.fill=p(a.fill).setOpacity(b).get("rgba"));return a};c.prototype.translate=function(){a.prototype.translate.call(this);this.getRadii();this.translateBubble()};c.prototype.translateBubble=function(){for(var a=
this.data,e=this.radii,b=this.getPxExtremes().minPxSize,c=a.length;c--;){var g=a[c],f=e?e[c]:0;J(f)&&f>=b/2?(g.marker=m(g.marker,{radius:f,width:2*f,height:2*f}),g.dlBox={x:g.plotX-f,y:g.plotY-f,width:2*f,height:2*f}):(g.shapeArgs=g.dlBox=void 0,g.plotY=0,g.marker={width:0,height:0})}};c.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){if("string"===typeof e){var b=/%$/.test(e);e=parseInt(e,10)}return b?a*e/100:e},b=e(N(this.options.minSize,
8));e=Math.max(e(N(this.options.maxSize,"20%")),b);return{minPxSize:b,maxPxSize:e}};c.prototype.getZExtremes=function(){var a=this.options,b=(this.zData||[]).filter(J);if(b.length){var c=N(a.zMin,l(g(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=N(a.zMax,e(b));if(J(c)&&J(a))return{zMin:c,zMax:a}}};c.defaultOptions=H(k.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,e=this.point.z;return J(e)?a(e,-1):""},inside:!0,verticalAlign:"middle"},
animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return c}(k);m(d.prototype,{alignDataLabel:a.alignDataLabel,applyZones:h,bubblePadding:!0,buildKDTree:h,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:c,parallelArrays:["x","y",
"z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});t(d,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});t(d,"remove",function(a){delete a.target.chart.bubbleZExtremes});f.registerSeriesType("bubble",d);"";"";return d});C(d,"Series/ColumnRange/ColumnRangePoint.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),a=b.seriesTypes;b=a.column.prototype.pointClass.prototype;var f=c.extend,d=c.isNumber;c=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}h(b,a);b.prototype.isValid=function(){return d(this.low)};
return b}(a.arearange.prototype.pointClass);f(c.prototype,{setState:b.setState});return c});C(d,"Series/ColumnRange/ColumnRangeSeries.js",[d["Series/ColumnRange/ColumnRangePoint.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,h,a){var f=this&&this.__extends||function(){var a=function(e,b){a=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 a(e,
b)};return function(e,b){function c(){this.constructor=e}a(e,b);e.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}();c=c.noop;var d=h.seriesTypes,n=d.arearange,q=d.column,p=d.column.prototype,D=a.clamp;d=a.extend;var t=a.isNumber,k=a.merge,e=a.pick,g={pointRange:null,marker:null,states:{hover:{halo:!1}}};a=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}f(b,a);b.prototype.setOptions=function(){k(!0,arguments[0],{stacking:void 0});return n.prototype.setOptions.apply(this,
arguments)};b.prototype.translate=function(){var a=this,b=this.yAxis,c=this.xAxis,g=c.startAngleRad,f=this.chart,l=this.xAxis.isRadial,h=Math.max(f.chartWidth,f.chartHeight)+999,d,w,m,k;p.translate.apply(this);this.points.forEach(function(z){var r=z.shapeArgs||{},E=a.options.minPointLength,n=z.plotY,F=b.translate(z.high,0,1,0,1);t(F)&&t(n)&&(z.plotHigh=D(F,-h,h),z.plotLow=D(n,-h,h),k=z.plotHigh,d=e(z.rectPlotY,z.plotY)-z.plotHigh,Math.abs(d)<E?(w=E-d,d+=w,k-=w/2):0>d&&(d*=-1,k-=d),l&&a.polar?(m=z.barX+
g,z.shapeType="arc",z.shapeArgs=a.polar.arc(k+d,k,m,m+z.pointWidth)):(r.height=d,r.y=k,E=r.x,E=void 0===E?0:E,r=r.width,r=void 0===r?0:r,z.tooltipPos=f.inverted?[b.len+b.pos-f.plotLeft-k-d/2,c.len+c.pos-f.plotTop-E-r/2,d]:[c.left-f.plotLeft+E+r/2,b.pos-f.plotTop+k+d/2,d]))})};b.prototype.pointAttribs=function(){return p.pointAttribs.apply(this,arguments)};b.prototype.translate3dPoints=function(){return p.translate3dPoints.apply(this,arguments)};b.prototype.translate3dShapes=function(){return p.translate3dShapes.apply(this,
arguments)};b.defaultOptions=k(q.defaultOptions,n.defaultOptions,g);return b}(n);d(a.prototype,{directTouch:!0,pointClass:b,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:p.adjustForMissingColumns,animate:p.animate,crispCol:p.crispCol,drawGraph:c,drawPoints:p.drawPoints,getSymbol:c,drawTracker:p.drawTracker,getColumnMetrics:p.getColumnMetrics});h.registerSeriesType("columnrange",a);"";return a});C(d,"Series/ColumnPyramid/ColumnPyramidSeries.js",[d["Series/Column/ColumnSeries.js"],
d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,d){var a=this&&this.__extends||function(){var a=function(b,c){a=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 a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),f=b.prototype,h=d.clamp,n=d.merge,q=d.pick;d=function(c){function d(){var a=
null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}a(d,c);d.prototype.translate=function(){var a=this,b=a.chart,e=a.options,c=a.dense=2>a.closestPointRange*a.xAxis.transA;c=a.borderWidth=q(e.borderWidth,c?0:1);var d=a.yAxis,m=e.threshold,n=a.translatedThreshold=d.getThreshold(m),x=q(e.minPointLength,5),p=a.getColumnMetrics(),G=p.width,v=a.barW=Math.max(G,1+2*c),D=a.pointXOffset=p.offset;b.inverted&&(n-=.5);e.pointPadding&&(v=Math.ceil(v));f.translate.apply(a);
a.points.forEach(function(c){var g=q(c.yBottom,n),f=999+Math.abs(g),l=h(c.plotY,-f,d.len+f);f=c.plotX+D;var k=v/2,F=Math.min(l,g);g=Math.max(l,g)-F;var r;c.barX=f;c.pointWidth=G;c.tooltipPos=b.inverted?[d.len+d.pos-b.plotLeft-l,a.xAxis.len-f-k,g]:[f+k,l+d.pos-b.plotTop,g];l=m+(c.total||c.y);"percent"===e.stacking&&(l=m+(0>c.y)?-100:100);l=d.toPixels(l,!0);var K=(r=b.plotHeight-l-(b.plotHeight-n))?k*(F-l)/r:0;var p=r?k*(F+g-l)/r:0;r=f-K+k;K=f+K+k;var H=f+p+k;p=f-p+k;var A=F-x;var t=F+g;0>c.y&&(A=F,
t=F+g+x);b.inverted&&(H=d.width-F,r=l-(d.width-n),K=k*(l-H)/r,p=k*(l-(H-g))/r,r=f+k+K,K=r-2*K,H=f-p+k,p=f+p+k,A=F,t=F+g-x,0>c.y&&(t=F+g+x));c.shapeType="path";c.shapeArgs={x:r,y:A,width:K-r,height:g,d:[["M",r,A],["L",K,A],["L",H,t],["L",p,t],["Z"]]}})};d.defaultOptions=n(b.defaultOptions,{});return d}(b);c.registerSeriesType("columnpyramid",d);"";return d});C(d,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){"";return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},
whiskerWidth:null}});C(d,"Series/ErrorBar/ErrorBarSeries.js",[d["Series/BoxPlot/BoxPlotSeries.js"],d["Series/Column/ColumnSeries.js"],d["Series/ErrorBar/ErrorBarSeriesDefaults.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,d,a,f){var h=this&&this.__extends||function(){var a=function(b,e){a=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 a(b,e)};return function(b,
e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),n=a.seriesTypes.arearange,q=f.addEvent,p=f.merge;f=f.extend;var D=function(a){function f(){var e=null!==a&&a.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}h(f,a);f.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||c.prototype.getColumnMetrics.call(this)};f.prototype.drawDataLabels=function(){var a=this.pointValKey;
n&&(n.prototype.drawDataLabels.call(this),this.data.forEach(function(e){e.y=e[a]}))};f.prototype.toYData=function(a){return[a.low,a.high]};f.defaultOptions=p(b.defaultOptions,d);return f}(b);q(D,"afterTranslate",function(){this.points.forEach(function(a){a.plotLow=a.plotY})},{order:0});f(D.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1});a.registerSeriesType("errorbar",D);return D});C(d,"Series/Gauge/GaugePoint.js",[d["Core/Series/SeriesRegistry.js"]],function(b){var c=
this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(a,c)};return function(a,c){function f(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();return function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.series=void 0;a.shapeArgs=void 0;return a}c(a,b);a.prototype.setState=
function(a){this.state=a};return a}(b.series.prototype.pointClass)});C(d,"Series/Gauge/GaugeSeries.js",[d["Series/Gauge/GaugePoint.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,d,a){var f=this&&this.__extends||function(){var a=function(e,b){a=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 a(e,b)};return function(e,b){function c(){this.constructor=
e}a(e,b);e.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}();c=c.noop;var h=d.series,n=d.seriesTypes.column,q=a.clamp,p=a.isNumber,D=a.extend,t=a.merge,k=a.pick,e=a.pInt;a=function(a){function b(){var e=null!==a&&a.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=void 0;e.yAxis=void 0;return e}f(b,a);b.prototype.translate=function(){var a=this.yAxis,b=this.options,c=a.center;this.generatePoints();this.points.forEach(function(g){var f=t(b.dial,g.dial),d=e(f.radius)*
c[2]/200,l=e(f.baseLength)*d/100,h=e(f.rearLength)*d/100,m=f.baseWidth,w=f.topWidth,z=b.overshoot,k=a.startAngleRad+a.translate(g.y,void 0,void 0,void 0,!0);if(p(z)||!1===b.wrap)z=p(z)?z/180*Math.PI:0,k=q(k,a.startAngleRad-z,a.endAngleRad+z);k=180*k/Math.PI;g.shapeType="path";g.shapeArgs={d:f.path||[["M",-h,-m/2],["L",l,-m/2],["L",d,-w/2],["L",d,w/2],["L",l,m/2],["L",-h,m/2],["Z"]],translateX:c[0],translateY:c[1],rotation:k};g.plotX=c[0];g.plotY=c[1]})};b.prototype.drawPoints=function(){var a=this,
e=a.chart,b=a.yAxis.center,c=a.pivot,g=a.options,f=g.pivot,d=e.renderer;a.points.forEach(function(b){var c=b.graphic,f=b.shapeArgs,l=f.d,h=t(g.dial,b.dial);c?(c.animate(f),f.d=l):b.graphic=d[b.shapeType](f).attr({rotation:f.rotation,zIndex:1}).addClass("highcharts-dial").add(a.group);if(!e.styledMode)b.graphic[c?"animate":"attr"]({stroke:h.borderColor,"stroke-width":h.borderWidth,fill:h.backgroundColor})});c?c.animate({translateX:b[0],translateY:b[1]}):f&&(a.pivot=d.circle(0,0,f.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(b[0],
b[1]).add(a.group),e.styledMode||a.pivot.attr({fill:f.backgroundColor,stroke:f.borderColor,"stroke-width":f.borderWidth}))};b.prototype.animate=function(a){var e=this;a||e.points.forEach(function(a){var b=a.graphic;b&&(b.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),b.animate({rotation:a.shapeArgs.rotation},e.options.animation))})};b.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup);h.prototype.render.call(this);
this.group.clip(this.chart.clipRect)};b.prototype.setData=function(a,e){h.prototype.setData.call(this,a,!1);this.processData();this.generatePoints();k(e,!0)&&this.chart.redraw()};b.prototype.hasData=function(){return!!this.points.length};b.defaultOptions=t(h.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",
rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1});return b}(h);D(a.prototype,{angular:!0,directTouch:!0,drawGraph:c,drawTracker:n.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:b,trackerGroups:["group","dataLabelsGroup"]});d.registerSeriesType("gauge",a);"";return a});C(d,"Series/DragNodesComposition.js",[d["Core/Utilities.js"]],function(b){function c(){var a=this,b,c,
h;a.container&&(b=d(a.container,"mousedown",function(b){var f=a.hoverPoint;f&&f.series&&f.series.hasDraggableNodes&&f.series.options.draggable&&(f.series.onMouseDown(f,b),c=d(a.container,"mousemove",function(a){return f&&f.series&&f.series.onMouseMove(f,a)}),h=d(a.container.ownerDocument,"mouseup",function(a){c();h();return f&&f.series&&f.series.onMouseUp(f,a)}))}));d(a,"destroy",function(){b()})}var d=b.addEvent,a=[];return{compose:function(b){-1===a.indexOf(b)&&(a.push(b),d(b,"load",c))},onMouseDown:function(a,
b){b=this.chart.pointer.normalize(b);a.fixedPosition={chartX:b.chartX,chartY:b.chartY,plotX:a.plotX,plotY:a.plotY};a.inDragMode=!0},onMouseMove:function(a,b){if(a.fixedPosition&&a.inDragMode){var c=this.chart,f=c.pointer.normalize(b);b=a.fixedPosition.chartX-f.chartX;f=a.fixedPosition.chartY-f.chartY;var d=c.graphLayoutsLookup,h=void 0,x=void 0;if(5<Math.abs(b)||5<Math.abs(f))h=a.fixedPosition.plotX-b,x=a.fixedPosition.plotY-f,c.isInsidePlot(h,x)&&(a.plotX=h,a.plotY=x,a.hasDragged=!0,this.redrawHalo(a),
d.forEach(function(a){a.restartSimulation()}))}},onMouseUp:function(a,b){a.fixedPosition&&(a.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),a.inDragMode=a.hasDragged=!1,this.options.fixedDraggable||delete a.fixedPosition)},redrawHalo:function(a){a&&this.halo&&this.halo.attr({d:a.haloPath(this.options.states.hover.halo.size)})}}});C(d,"Series/GraphLayoutComposition.js",[d["Core/Animation/AnimationUtilities.js"],d["Core/Utilities.js"]],function(b,c){function d(){this.graphLayoutsLookup&&
(this.graphLayoutsLookup.forEach(function(a){a.updateSimulation()}),this.redraw())}function a(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(a){a.updateSimulation(!1)}),this.redraw())}function f(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(a){a.stop()})}function x(){var a=!1,b=function(e){e.maxIterations--&&isFinite(e.temperature)&&!e.isStable()&&!e.enableSimulation&&(e.beforeStep&&e.beforeStep(),e.step(),c=!1,a=!0)};if(this.graphLayoutsLookup){n(!1,this);
for(this.graphLayoutsLookup.forEach(function(a){return a.start()});!c;){var c=!0;this.graphLayoutsLookup.forEach(b)}a&&this.series.forEach(function(a){a&&a.layout&&a.render()})}}var n=b.setAnimation,q=c.addEvent,p=[];return{compose:function(b){p.indexOf(b)&&(p.push(b),q(b,"afterPrint",d),q(b,"beforePrint",a),q(b,"predraw",f),q(b,"render",x))},integrations:{},layouts:{}}});C(d,"Series/PackedBubble/PackedBubblePoint.js",[d["Core/Chart/Chart.js"],d["Core/Series/Point.js"],d["Core/Series/SeriesRegistry.js"]],
function(b,c,d){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();return function(f){function d(){var a=null!==f&&f.apply(this,arguments)||this;a.degree=NaN;a.mass=NaN;a.radius=NaN;a.options=void 0;
a.series=void 0;a.value=null;return a}a(d,f);d.prototype.destroy=function(){this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes);return c.prototype.destroy.apply(this,arguments)};d.prototype.firePointEvent=function(){var a=this.series.options;if(this.isParentNode&&a.parentNode){var b=a.allowPointSelect;a.allowPointSelect=a.parentNode.allowPointSelect;c.prototype.firePointEvent.apply(this,arguments);a.allowPointSelect=b}else c.prototype.firePointEvent.apply(this,
arguments)};d.prototype.select=function(){var a=this.series.chart;this.isParentNode?(a.getSelectedPoints=a.getSelectedParentNodes,c.prototype.select.apply(this,arguments),a.getSelectedPoints=b.prototype.getSelectedPoints):c.prototype.select.apply(this,arguments)};return d}(d.seriesTypes.bubble.prototype.pointClass)});C(d,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[d["Core/Utilities.js"]],function(b){var c=b.isNumber;"";return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,
tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var b=this.series.chart.numberFormatter,a=this.point.value;return c(a)?b(a,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,
gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1E3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}});C(d,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(b,c,d){var a=b.getMass(),f=-d.x*c*this.diffTemperature;c=-d.y*c*this.diffTemperature;b.fromNode.fixedPosition||
(b.fromNode.plotX-=f*a.fromNode/b.fromNode.degree,b.fromNode.plotY-=c*a.fromNode/b.fromNode.degree);b.toNode.fixedPosition||(b.toNode.plotX+=f*a.toNode/b.toNode.degree,b.toNode.plotY+=c*a.toNode/b.toNode.degree)},attractiveForceFunction:function(b,c){return(c-b)/b},barycenter:function(){var b=this.options.gravitationalConstant,c=this.barycenter.xFactor,d=this.barycenter.yFactor;c=(c-(this.box.left+this.box.width)/2)*b;d=(d-(this.box.top+this.box.height)/2)*b;this.nodes.forEach(function(a){a.fixedPosition||
(a.plotX-=c/a.mass/a.degree,a.plotY-=d/a.mass/a.degree)})},getK:function(b){return Math.pow(b.box.width*b.box.height/b.nodes.length,.5)},integrate:function(b,c){var d=-b.options.friction,a=b.options.maxSpeed,f=(c.plotX+c.dispX-c.prevX)*d;d*=c.plotY+c.dispY-c.prevY;var x=Math.abs,n=x(f)/(f||1);x=x(d)/(d||1);f=n*Math.min(a,Math.abs(f));d=x*Math.min(a,Math.abs(d));c.prevX=c.plotX+c.dispX;c.prevY=c.plotY+c.dispY;c.plotX+=f;c.plotY+=d;c.temperature=b.vectorLength({x:f,y:d})},repulsive:function(b,c,d){c=
c*this.diffTemperature/b.mass/b.degree;b.fixedPosition||(b.plotX+=d.x*c,b.plotY+=d.y*c)},repulsiveForceFunction:function(b,c){return(c-b)/b*(c>b?1:0)}}});C(d,"Series/PackedBubble/PackedBubbleIntegration.js",[d["Core/Globals.js"],d["Series/Networkgraph/VerletIntegration.js"]],function(b,c){return{barycenter:function(){for(var b=this.options.gravitationalConstant,a=this.box,c=this.nodes,d,n,q=0;q<c.length;q++){var p=c[q];this.options.splitSeries&&!p.isParentNode?(d=p.series.parentNode.plotX,n=p.series.parentNode.plotY):
(d=a.width/2,n=a.height/2);p.fixedPosition||(p.plotX-=(p.plotX-d)*b/(p.mass*Math.sqrt(c.length)),p.plotY-=(p.plotY-n)*b/(p.mass*Math.sqrt(c.length)))}},getK:b.noop,integrate:c.integrate,repulsive:function(b,a,c,d){var f=a*this.diffTemperature/b.mass/b.degree;a=c.x*f;c=c.y*f;b.fixedPosition||(b.plotX+=a,b.plotY+=c);d.fixedPosition||(d.plotX-=a,d.plotY-=c)},repulsiveForceFunction:function(b,a,c,d){return Math.min(b,(c.marker.radius+d.marker.radius)/2)}}});C(d,"Series/Networkgraph/EulerIntegration.js",
[],function(){return{attractive:function(b,c,d,a){var f=b.getMass(),h=d.x/a*c;c*=d.y/a;b.fromNode.fixedPosition||(b.fromNode.dispX-=h*f.fromNode/b.fromNode.degree,b.fromNode.dispY-=c*f.fromNode/b.fromNode.degree);b.toNode.fixedPosition||(b.toNode.dispX+=h*f.toNode/b.toNode.degree,b.toNode.dispY+=c*f.toNode/b.toNode.degree)},attractiveForceFunction:function(b,c){return b*b/c},barycenter:function(){var b=this.options.gravitationalConstant,c=this.barycenter.xFactor,d=this.barycenter.yFactor;this.nodes.forEach(function(a){if(!a.fixedPosition){var f=
a.getDegree();f*=1+f/2;a.dispX+=(c-a.plotX)*b*f/a.degree;a.dispY+=(d-a.plotY)*b*f/a.degree}})},getK:function(b){return Math.pow(b.box.width*b.box.height/b.nodes.length,.3)},integrate:function(b,c){c.dispX+=c.dispX*b.options.friction;c.dispY+=c.dispY*b.options.friction;var d=c.temperature=b.vectorLength({x:c.dispX,y:c.dispY});0!==d&&(c.plotX+=c.dispX/d*Math.min(Math.abs(c.dispX),b.temperature),c.plotY+=c.dispY/d*Math.min(Math.abs(c.dispY),b.temperature))},repulsive:function(b,c,d,a){b.dispX+=d.x/a*
c/b.degree;b.dispY+=d.y/a*c/b.degree},repulsiveForceFunction:function(b,c){return c*c/b}}});C(d,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function b(b){this.isInternal=this.isEmpty=this.body=!1;this.nodes=[];this.box=b;this.boxSize=Math.min(b.width,b.height)}b.prototype.divideBox=function(){var c=this.box.width/2,d=this.box.height/2;this.nodes[0]=new b({left:this.box.left,top:this.box.top,width:c,height:d});this.nodes[1]=new b({left:this.box.left+c,top:this.box.top,width:c,
height:d});this.nodes[2]=new b({left:this.box.left+c,top:this.box.top+d,width:c,height:d});this.nodes[3]=new b({left:this.box.left,top:this.box.top+d,width:c,height:d})};b.prototype.getBoxPosition=function(b){var c=b.plotY<this.box.top+this.box.height/2;return b.plotX<this.box.left+this.box.width/2?c?0:3:c?1:2};b.prototype.insert=function(c,d){this.isInternal?this.nodes[this.getBoxPosition(c)].insert(c,d-1):(this.isEmpty=!1,this.body?d?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,
d-1),this.body=!0),this.nodes[this.getBoxPosition(c)].insert(c,d-1)):(d=new b({top:c.plotX||NaN,left:c.plotY||NaN,width:.1,height:.1}),d.body=c,d.isInternal=!1,this.nodes.push(d)):(this.isInternal=!1,this.body=c))};b.prototype.updateMassAndCenter=function(){var b=0,d=0,a=0;if(this.isInternal){for(var f=0,x=this.nodes;f<x.length;f++){var n=x[f];n.isEmpty||(b+=n.mass,d+=n.plotX*n.mass,a+=n.plotY*n.mass)}d/=b;a/=b}else this.body&&(b=this.body.mass,d=this.body.plotX,a=this.body.plotY);this.mass=b;this.plotX=
d;this.plotY=a};return b}()});C(d,"Series/Networkgraph/QuadTree.js",[d["Series/Networkgraph/QuadTreeNode.js"]],function(b){return function(){function c(c,a,d,x){this.box={left:c,top:a,width:d,height:x};this.maxDepth=25;this.root=new b(this.box);this.root.isInternal=!0;this.root.isRoot=!0;this.root.divideBox()}c.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(b){b.updateMassAndCenter()})};c.prototype.insertNodes=function(b){for(var a=0;a<b.length;a++)this.root.insert(b[a],
this.maxDepth)};c.prototype.visitNodeRecursive=function(b,a,c){var d;b||(b=this.root);b===this.root&&a&&(d=a(b));if(!1!==d){for(var f=0,h=b.nodes;f<h.length;f++){var p=h[f];if(p.isInternal){a&&(d=a(p));if(!1===d)continue;this.visitNodeRecursive(p,a,c)}else p.body&&a&&a(p.body);c&&c(p)}b===this.root&&c&&c(b)}};return c}()});C(d,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[d["Series/Networkgraph/EulerIntegration.js"],d["Core/Globals.js"],d["Series/GraphLayoutComposition.js"],d["Series/Networkgraph/QuadTree.js"],
d["Core/Utilities.js"],d["Series/Networkgraph/VerletIntegration.js"]],function(b,c,d,a,f,x){var h=c.win,q=f.clamp,p=f.defined,D=f.isFunction,t=f.pick;return function(){function c(){this.attractiveForce=void 0;this.box={};this.currentStep=0;this.initialRendering=!0;this.integration=void 0;this.links=[];this.nodes=[];this.repulsiveForce=this.quadTree=this.options=void 0;this.series=[];this.simulation=!1}c.compose=function(a){d.compose(a);d.integrations.euler=b;d.integrations.verlet=x;d.layouts["reingold-fruchterman"]=
c};c.prototype.init=function(a){this.options=a;this.nodes=[];this.links=[];this.series=[];this.box={x:0,y:0,width:0,height:0};this.setInitialRendering(!0);this.integration=d.integrations[a.integration];this.enableSimulation=a.enableSimulation;this.attractiveForce=t(a.attractiveForce,this.integration.attractiveForceFunction);this.repulsiveForce=t(a.repulsiveForce,this.integration.repulsiveForceFunction);this.approximation=a.approximation};c.prototype.updateSimulation=function(a){this.enableSimulation=
t(a,this.options.enableSimulation)};c.prototype.start=function(){var a=this.series,b=this.options;this.currentStep=0;this.forces=a[0]&&a[0].forces||[];this.chart=a[0]&&a[0].chart;this.initialRendering&&(this.initPositions(),a.forEach(function(a){a.finishedAnimating=!0;a.render()}));this.setK();this.resetSimulation(b);this.enableSimulation&&this.step()};c.prototype.step=function(){var a=this,b=this.series;this.currentStep++;"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());
for(var c=0,d=this.forces||[];c<d.length;c++)this[d[c]+"Forces"](this.temperature);this.applyLimits();this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep);this.prevSystemTemperature=this.systemTemperature;this.systemTemperature=this.getSystemTemperature();if(this.enableSimulation){for(c=0;c<b.length;c++)d=b[c],d.chart&&d.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&h.cancelAnimationFrame(this.simulation),this.simulation=
h.requestAnimationFrame(function(){return a.step()})):this.simulation=!1}};c.prototype.stop=function(){this.simulation&&h.cancelAnimationFrame(this.simulation)};c.prototype.setArea=function(a,b,c,d){this.box={left:a,top:b,width:c,height:d}};c.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)};c.prototype.addElementsToCollection=function(a,b){for(var e=0;e<a.length;e++){var c=a[e];-1===b.indexOf(c)&&b.push(c)}};c.prototype.removeElementFromCollection=function(a,
b){a=b.indexOf(a);-1!==a&&b.splice(a,1)};c.prototype.clear=function(){this.nodes.length=0;this.links.length=0;this.series.length=0;this.resetSimulation()};c.prototype.resetSimulation=function(){this.forcedStop=!1;this.systemTemperature=0;this.setMaxIterations();this.setTemperature();this.setDiffTemperature()};c.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),
this.setInitialRendering(!0))};c.prototype.setMaxIterations=function(a){this.maxIterations=t(a,this.options.maxIterations)};c.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)};c.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)};c.prototype.setInitialRendering=function(a){this.initialRendering=a};c.prototype.createQuadTree=function(){this.quadTree=new a(this.box.left,this.box.top,
this.box.width,this.box.height);this.quadTree.insertNodes(this.nodes)};c.prototype.initPositions=function(){var a=this.options.initialPositions;if(D(a)){a.call(this);a=0;for(var b=this.nodes;a<b.length;a++){var c=b[a];p(c.prevX)||(c.prevX=c.plotX);p(c.prevY)||(c.prevY=c.plotY);c.dispX=0;c.dispY=0}}else"circle"===a?this.setCircularPositions():this.setRandomPositions()};c.prototype.setCircularPositions=function(){for(var a=this.box,b=this.nodes,c=2*Math.PI/(b.length+1),d=b.filter(function(a){return 0===
a.linksTo.length}),f={},h=this.options.initialPositionRadius,k=function(a){var b=0;for(a=a.linksFrom||[];b<a.length;b++){var c=a[b];f[c.toNode.id]||(f[c.toNode.id]=!0,p.push(c.toNode),k(c.toNode))}},p=[],v=0;v<d.length;v++){var n=d[v];p.push(n);k(n)}if(p.length)for(d=0;d<b.length;d++)v=b[d],-1===p.indexOf(v)&&p.push(v);else p=b;d=0;for(v=p.length;d<v;++d)b=p[d],b.plotX=b.prevX=t(b.plotX,a.width/2+h*Math.cos(d*c)),b.plotY=b.prevY=t(b.plotY,a.height/2+h*Math.sin(d*c)),b.dispX=0,b.dispY=0};c.prototype.setRandomPositions=
function(){for(var a=this.box,b=this.nodes,c=b.length+1,d=function(a){a=a*a/Math.PI;return a-=Math.floor(a)},f,h=0,k=b.length;h<k;++h)f=b[h],f.plotX=f.prevX=t(f.plotX,a.width*d(h)),f.plotY=f.prevY=t(f.plotY,a.height*d(c+h)),f.dispX=0,f.dispY=0};c.prototype.force=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];this.integration[a].apply(this,b)};c.prototype.barycenterForces=function(){this.getBarycenter();this.force("barycenter")};c.prototype.getBarycenter=function(){for(var a=
0,b=0,c=0,d=0,f=this.nodes;d<f.length;d++){var h=f[d];b+=h.plotX*h.mass;c+=h.plotY*h.mass;a+=h.mass}return this.barycenter={x:b,y:c,xFactor:b/a,yFactor:c/a}};c.prototype.barnesHutApproximation=function(a,b){var c=this.getDistXY(a,b),e=this.vectorLength(c);if(a!==b&&0!==e)if(b.isInternal)if(b.boxSize/e<this.options.theta&&0!==e){var d=this.repulsiveForce(e,this.k);this.force("repulsive",a,d*b.mass,c,e);var f=!1}else f=!0;else d=this.repulsiveForce(e,this.k),this.force("repulsive",a,d*b.mass,c,e);return f};
c.prototype.repulsiveForces=function(){var a=this;if("barnes-hut"===this.approximation)for(var b=function(b){c.quadTree.visitNodeRecursive(null,function(c){return a.barnesHutApproximation(b,c)})},c=this,d=0,f=this.nodes;d<f.length;d++){var h=f[d];b(h)}else{f=d=b=void 0;for(var k=0,p=this.nodes;k<p.length;k++){h=p[k];for(var v=0,n=this.nodes;v<n.length;v++){var q=n[v];h===q||h.fixedPosition||(f=this.getDistXY(h,q),d=this.vectorLength(f),0!==d&&(b=this.repulsiveForce(d,this.k),this.force("repulsive",
h,b*q.mass,f,d)))}}}};c.prototype.attractiveForces=function(){for(var a,b,c,d=0,f=this.links;d<f.length;d++){var h=f[d];h.fromNode&&h.toNode&&(a=this.getDistXY(h.fromNode,h.toNode),b=this.vectorLength(a),0!==b&&(c=this.attractiveForce(b,this.k),this.force("attractive",h,c,a,b)))}};c.prototype.applyLimits=function(){for(var a=0,b=this.nodes;a<b.length;a++){var c=b[a];if(c.fixedPosition)break;this.integration.integrate(this,c);this.applyLimitBox(c,this.box);c.dispX=0;c.dispY=0}};c.prototype.applyLimitBox=
function(a,b){var c=a.radius;a.plotX=q(a.plotX,b.left+c,b.width-c);a.plotY=q(a.plotY,b.top+c,b.height-c)};c.prototype.coolDown=function(a,b,c){return a-b*c};c.prototype.isStable=function(){return.00001>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature};c.prototype.getSystemTemperature=function(){for(var a=0,b=0,c=this.nodes;b<c.length;b++)a+=c[b].temperature;return a};c.prototype.vectorLength=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};c.prototype.getDistR=function(a,
b){a=this.getDistXY(a,b);return this.vectorLength(a)};c.prototype.getDistXY=function(a,b){var c=a.plotX-b.plotX;a=a.plotY-b.plotY;return{x:c,y:a,absX:Math.abs(c),absY:Math.abs(a)}};return c}()});C(d,"Series/PackedBubble/PackedBubbleLayout.js",[d["Series/GraphLayoutComposition.js"],d["Series/PackedBubble/PackedBubbleIntegration.js"],d["Series/Networkgraph/ReingoldFruchtermanLayout.js"],d["Core/Utilities.js"]],function(b,c,d,a){function f(){var a=[];this.series.forEach(function(b){b.parentNode&&b.parentNode.selected&&
a.push(b.parentNode)});return a}function h(){this.allDataPoints&&delete this.allDataPoints}var n=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),q=a.addEvent,p=a.pick,D=[];a=function(a){function k(){var b=
null!==a&&a.apply(this,arguments)||this;b.index=NaN;b.nodes=[];b.options=void 0;b.series=[];return b}n(k,a);k.compose=function(a){d.compose(a);b.integrations.packedbubble=c;b.layouts.packedbubble=k;-1===D.indexOf(a)&&(D.push(a),q(a,"beforeRedraw",h),a.prototype.getSelectedParentNodes=f)};k.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(a){a&&a.calculateParentRadius()})};k.prototype.isStable=function(){var a=Math.abs(this.prevSystemTemperature-this.systemTemperature);
return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&.00001>a||0>=this.temperature};k.prototype.setCircularPositions=function(){for(var a=this.box,b=this.nodes,c=2*Math.PI/(b.length+1),d=this.options.initialPositionRadius,f,h,k=0,n=0;n<b.length;n++){var v=b[n];this.options.splitSeries&&!v.isParentNode?(f=v.series.parentNode.plotX,h=v.series.parentNode.plotY):(f=a.width/2,h=a.height/2);v.plotX=v.prevX=p(v.plotX,f+d*Math.cos(v.index||k*c));v.plotY=v.prevY=p(v.plotY,h+d*Math.sin(v.index||
k*c));v.dispX=0;v.dispY=0;k++}};k.prototype.repulsiveForces=function(){var a=this,b=a.options.bubblePadding,c,d,f;a.nodes.forEach(function(e){e.degree=e.mass;e.neighbours=0;a.nodes.forEach(function(g){c=0;e===g||e.fixedPosition||!a.options.seriesInteraction&&e.series!==g.series||(f=a.getDistXY(e,g),d=a.vectorLength(f)-(e.marker.radius+g.marker.radius+b),0>d&&(e.degree+=.01,e.neighbours++,c=a.repulsiveForce(-d/Math.sqrt(e.neighbours),a.k,e,g)),a.force("repulsive",e,c*g.mass,f,g,d))})})};k.prototype.applyLimitBox=
function(b,c){if(this.options.splitSeries&&!b.isParentNode&&this.options.parentNodeLimit){var e=this.getDistXY(b,b.series.parentNode);var d=b.series.parentNodeRadius-b.marker.radius-this.vectorLength(e);0>d&&d>-2*b.marker.radius&&(b.plotX-=.01*e.x,b.plotY-=.01*e.y)}a.prototype.applyLimitBox.call(this,b,c)};return k}(d);return b.layouts.packedbubble=a});C(d,"Series/PackedBubble/PackedBubbleSeries.js",[d["Core/Color/Color.js"],d["Series/DragNodesComposition.js"],d["Series/GraphLayoutComposition.js"],
d["Core/Globals.js"],d["Series/PackedBubble/PackedBubblePoint.js"],d["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],d["Series/PackedBubble/PackedBubbleLayout.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,d,a,f,x,n,q,p){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=
b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),t=b.parse;b=a.noop;var k=q.series.prototype,e=q.seriesTypes.bubble,g=p.addEvent,l=p.clamp,m=p.defined,C=p.extend,H=p.fireEvent,N=p.isArray,G=p.isNumber,v=p.merge,Q=p.pick;p=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.layout=void 0;b.options=void 0;b.parentNodeMass=0;b.points=void 0;b.xData=void 0;return b}h(b,a);b.compose=function(a,b,d,f){e.compose(a,b,d,f);
c.compose(b);n.compose(b)};b.prototype.accumulateAllPoints=function(){for(var a=this.chart,b=[],c,e=0,d=a.series;e<d.length;e++){var f=d[e];if(f.is("packedbubble")&&f.visible||!a.options.chart.ignoreHiddenSeries){c=f.yData||[];for(var g=0;g<c.length;g++)b.push([null,null,c[g],f.index,g,{id:g,marker:{radius:0}}])}}return b};b.prototype.addLayout=function(){var a=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},b=a.type||"packedbubble",c=this.chart.options.chart,e=this.chart.graphLayoutsStorage,
f=this.chart.graphLayoutsLookup;e||(this.chart.graphLayoutsStorage=e={},this.chart.graphLayoutsLookup=f=[]);var g=e[b];g||(a.enableSimulation=m(c.forExport)?!c.forExport:a.enableSimulation,e[b]=g=new d.layouts[b],g.init(a),f.splice(g.index,0,g));this.layout=g;this.points.forEach(function(a){a.mass=2;a.degree=1;a.collisionNmb=1});g.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight);g.addElementsToCollection([this],g.series);g.addElementsToCollection(this.points,g.nodes)};b.prototype.addSeriesLayout=
function(){var a=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},b=a.type||"packedbubble",c=this.chart.graphLayoutsStorage,e=this.chart.graphLayoutsLookup;a=v(a,a.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});var f=c[b+"-series"];f||(c[b+"-series"]=f=new d.layouts[b],f.init(a),e.splice(f.index,0,f));this.parentNodeLayout=f;this.createParentNodes()};b.prototype.calculateParentRadius=function(){var a=this.seriesBox();this.parentNodeRadius=l(Math.sqrt(2*this.parentNodeMass/
Math.PI)+20,20,a?Math.max(Math.sqrt(Math.pow(a.width,2)+Math.pow(a.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20);this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)};b.prototype.calculateZExtremes=function(){var a=this.options.zMin,b=this.options.zMax,c=Infinity,e=-Infinity;if(a&&b)return[a,b];this.chart.series.forEach(function(a){a.yData.forEach(function(a){m(a)&&(a>e&&(e=a),a<c&&(c=a))})});a=Q(a,c);b=Q(b,e);return[a,b]};b.prototype.checkOverlap=
function(a,b){var c=a[0]-b[0],e=a[1]-b[1];return-.001>Math.sqrt(c*c+e*e)-Math.abs(a[2]+b[2])};b.prototype.createParentNodes=function(){var a=this,b=this.pointClass,c=this.chart,e=this.parentNodeLayout,d=this.layout.options,f,g=this.parentNode,h={radius:this.parentNodeRadius,lineColor:this.color,fillColor:t(this.color).brighten(.4).get()};d.parentNodeOptions&&(h=v(d.parentNodeOptions.marker||{},h));this.parentNodeMass=0;this.points.forEach(function(b){a.parentNodeMass+=Math.PI*Math.pow(b.marker.radius,
2)});this.calculateParentRadius();e.nodes.forEach(function(b){b.seriesIndex===a.index&&(f=!0)});e.setArea(0,0,c.plotWidth,c.plotHeight);f||(g||(g=(new b).init(this,{mass:this.parentNodeRadius/2,marker:h,dataLabels:{inside:!1},states:{normal:{marker:h},hover:{marker:h}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(g.plotX=this.parentNode.plotX,g.plotY=this.parentNode.plotY),this.parentNode=g,e.addElementsToCollection([this],e.series),e.addElementsToCollection([g],
e.nodes))};b.prototype.deferLayout=function(){var a=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),a.splitSeries&&this.addSeriesLayout())};b.prototype.destroy=function(){var a=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(b){b.removeElementFromCollection(a,b.series)},this);this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=
this.parentNode.dataLabel.destroy()));k.destroy.apply(this,arguments)};b.prototype.drawDataLabels=function(){k.drawDataLabels.call(this,this.points);this.parentNode&&(this.parentNode.formatPrefix="parentNode",k.drawDataLabels.call(this,[this.parentNode]))};b.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var a=this.chart,b=this.layout.options.parentNodeOptions.marker;b={fill:b.fillColor||t(this.color).brighten(.4).get(),opacity:b.fillOpacity,stroke:b.lineColor||this.color,
"stroke-width":Q(b.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,a.seriesGroup),this.group.attr({zIndex:2}));this.calculateParentRadius();var c=v({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},b);this.parentNode.graphic||(this.graph=this.parentNode.graphic=a.renderer.symbol(b.symbol).add(this.parentNodesGroup));
this.parentNode.graphic.attr(c)}};b.prototype.drawTracker=function(){var b=this.parentNode;a.prototype.drawTracker.call(this);if(b){var c=N(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[];b.graphic&&(b.graphic.element.point=b);c.forEach(function(a){a.div?a.div.point=b:a.element.point=b})}};b.prototype.getPointRadius=function(){var a=this,b=this.chart,c=this.options,e=c.useSimulation,d=Math.min(b.plotWidth,b.plotHeight),f={},g=[],h=b.allDataPoints||[],k=h.length,m,p,u,B;["minSize","maxSize"].forEach(function(a){var b=
parseInt(c[a],10),e=/%$/.test(c[a]);f[a]=e?d*b/100:b*Math.sqrt(k)});b.minRadius=m=f.minSize/Math.sqrt(k);b.maxRadius=p=f.maxSize/Math.sqrt(k);var y=e?this.calculateZExtremes():[m,p];h.forEach(function(b,c){u=e?l(b[2],y[0],y[1]):b[2];B=a.getRadius(y[0],y[1],m,p,u);0===B&&(B=null);h[c][2]=B;g.push(B)});this.radii=g};b.prototype.init=function(){k.init.apply(this,arguments);this.eventsToUnbind.push(g(this,"updatedData",function(){var a=this;this.chart.series.forEach(function(b){b.type===a.type&&(b.isDirty=
!0)},this)}));return this};b.prototype.onMouseUp=function(a){var b=a;if(b.fixedPosition&&!b.removed){var e=this.layout,d=this.parentNodeLayout,f,g;d&&e.options.dragBetweenSeries&&d.nodes.forEach(function(a){b&&b.marker&&a!==b.series.parentNode&&(f=e.getDistXY(b,a),g=e.vectorLength(f)-a.marker.radius-b.marker.radius,0>g&&(a.series.addPoint(v(b.options,{plotX:b.plotX,plotY:b.plotY}),!1),e.removeElementFromCollection(b,e.nodes),b.remove()))});c.onMouseUp.apply(this,arguments)}};b.prototype.placeBubbles=
function(a){var b=this.checkOverlap,c=this.positionBubble,e=[],d=1,f=0,g=0;var h=[];var l;a=a.sort(function(a,b){return b[2]-a[2]});if(a.length){e.push([[0,0,a[0][2],a[0][3],a[0][4]]]);if(1<a.length)for(e.push([[0,0-a[1][2]-a[0][2],a[1][2],a[1][3],a[1][4]]]),l=2;l<a.length;l++)a[l][2]=a[l][2]||1,h=c(e[d][f],e[d-1][g],a[l]),b(h,e[d][0])?(e.push([]),g=0,e[d+1].push(c(e[d][f],e[d][0],a[l])),d++,f=0):1<d&&e[d-1][g+1]&&b(h,e[d-1][g+1])?(g++,e[d].push(c(e[d][f],e[d-1][g],a[l])),f++):(f++,e[d].push(h));
this.chart.stages=e;this.chart.rawPositions=[].concat.apply([],e);this.resizeRadius();h=this.chart.rawPositions}return h};b.prototype.pointAttribs=function(a,b){var c=this.options,e=c.marker;a&&a.isParentNode&&c.layoutAlgorithm&&c.layoutAlgorithm.parentNodeOptions&&(e=c.layoutAlgorithm.parentNodeOptions.marker);c=e.fillOpacity;a=k.pointAttribs.call(this,a,b);1!==c&&(a["fill-opacity"]=c);return a};b.prototype.positionBubble=function(a,b,c){var e=Math.sqrt,d=Math.asin,f=Math.acos,g=Math.pow,h=Math.abs;
e=e(g(a[0]-b[0],2)+g(a[1]-b[1],2));f=f((g(e,2)+g(c[2]+b[2],2)-g(c[2]+a[2],2))/(2*(c[2]+b[2])*e));d=d(h(a[0]-b[0])/e);a=(0>a[1]-b[1]?0:Math.PI)+f+d*(0>(a[0]-b[0])*(a[1]-b[1])?1:-1);return[b[0]+(b[2]+c[2])*Math.sin(a),b[1]-(b[2]+c[2])*Math.cos(a),c[2],c[3],c[4]]};b.prototype.render=function(){var a=[];k.render.apply(this,arguments);this.options.dataLabels.allowOverlap||(this.data.forEach(function(b){N(b.dataLabels)&&b.dataLabels.forEach(function(b){a.push(b)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(a))};
b.prototype.resizeRadius=function(){var a=this.chart,b=a.rawPositions,c=Math.min,e=Math.max,d=a.plotLeft,f=a.plotTop,g=a.plotHeight,h=a.plotWidth,l,k;var m=l=Number.POSITIVE_INFINITY;var u=k=Number.NEGATIVE_INFINITY;for(var B=0;B<b.length;B++){var y=b[B];var p=y[2];m=c(m,y[0]-p);u=e(u,y[0]+p);l=c(l,y[1]-p);k=e(k,y[1]+p)}y=[u-m,k-l];c=c.apply([],[(h-d)/y[0],(g-f)/y[1]]);if(1e-10<Math.abs(c-1)){for(a=0;a<b.length;a++)y=b[a],y[2]*=c;this.placeBubbles(b)}else a.diffY=g/2+f-l-(k-l)/2,a.diffX=h/2+d-m-(u-
m)/2};b.prototype.seriesBox=function(){var a=this.chart,b=Math.max,c=Math.min,e=[a.plotLeft,a.plotLeft+a.plotWidth,a.plotTop,a.plotTop+a.plotHeight],d;this.data.forEach(function(a){m(a.plotX)&&m(a.plotY)&&a.marker.radius&&(d=a.marker.radius,e[0]=c(e[0],a.plotX-d),e[1]=b(e[1],a.plotX+d),e[2]=c(e[2],a.plotY-d),e[3]=b(e[3],a.plotY+d))});return G(e.width/e.height)?e:null};b.prototype.setVisible=function(){var a=this;k.setVisible.apply(a,arguments);a.parentNodeLayout&&a.graph?a.visible?(a.graph.show(),
a.parentNode.dataLabel&&a.parentNode.dataLabel.show()):(a.graph.hide(),a.parentNodeLayout.removeElementFromCollection(a.parentNode,a.parentNodeLayout.nodes),a.parentNode.dataLabel&&a.parentNode.dataLabel.hide()):a.layout&&(a.visible?a.layout.addElementsToCollection(a.points,a.layout.nodes):a.points.forEach(function(b){a.layout.removeElementFromCollection(b,a.layout.nodes)}))};b.prototype.translate=function(){var a=this.chart,b=this.data,c=this.index,e=this.options.useSimulation;this.processedXData=
this.xData;this.generatePoints();m(a.allDataPoints)||(a.allDataPoints=this.accumulateAllPoints(),this.getPointRadius());if(e)var d=a.allDataPoints;else d=this.placeBubbles(a.allDataPoints),this.options.draggable=!1;for(var f=0,g=d;f<g.length;f++){var h=g[f];if(h[3]===c){d=b[h[4]];var l=Q(h[2],void 0);e||(d.plotX=h[0]-a.plotLeft+a.diffX,d.plotY=h[1]-a.plotTop+a.diffY);G(l)&&(d.marker=C(d.marker,{radius:l,width:2*l,height:2*l}),d.radius=l)}}e&&this.deferLayout();H(this,"afterTranslate")};b.defaultOptions=
v(e.defaultOptions,x);return b}(e);C(p.prototype,{pointClass:f,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:k.alignDataLabel,indexateNodes:b,onMouseDown:c.onMouseDown,onMouseMove:c.onMouseMove,redrawHalo:c.redrawHalo,searchPoint:b});q.registerSeriesType("packedbubble",p);"";return p});C(d,"Series/Polygon/PolygonSeries.js",
[d["Core/Globals.js"],d["Core/Legend/LegendSymbol.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(b,c,d,a){var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();b=b.noop;var h=
d.series,n=d.seriesTypes,q=n.area,p=n.line,D=n.scatter;n=a.extend;var t=a.merge;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}f(b,a);b.prototype.getGraphPath=function(){for(var a=p.prototype.getGraphPath.call(this),b=a.length+1;b--;)(b===a.length||"M"===a[b][0])&&0<b&&a.splice(b,0,["Z"]);return this.areaPath=a};b.prototype.drawGraph=function(){this.options.fillColor=this.color;q.prototype.drawGraph.call(this)};b.defaultOptions=
t(D.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0});return b}(D);n(a.prototype,{type:"polygon",drawLegendSymbol:c.drawRectangle,drawTracker:h.prototype.drawTracker,setStackedPoints:b});d.registerSeriesType("polygon",a);"";return a});C(d,"Core/Axis/WaterfallAxis.js",[d["Core/Axis/Stacking/StackItem.js"],d["Core/Utilities.js"]],function(b,c){var d=c.addEvent,a=c.objectEach,f;(function(c){function f(){var a=
this.waterfall.stacks;a&&(a.changed=!1,delete a.alreadyChanged)}function h(){var a=this.options.stackLabels;a&&a.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function p(){for(var a=this.axes,b=this.series,c=b.length;c--;)b[c].options.stacking&&(a.forEach(function(a){a.isXAxis||(a.waterfall.stacks.changed=!0)}),c=0)}function x(){this.waterfall||(this.waterfall=new t(this))}var t=function(){function c(a){this.axis=a;this.stacks={changed:!1}}c.prototype.renderStackTotals=function(){var c=
this.axis,d=c.waterfall.stacks,f=c.stacking&&c.stacking.stackTotalGroup,h=new b(c,c.options.stackLabels,!1,0,void 0);this.dummyStackItem=h;a(d,function(c){a(c,function(a){h.total=a.stackTotal;a.label&&(h.label=a.label);b.prototype.render.call(h,f);a.label=h.label;delete h.label})});h.total=null};return c}();c.Composition=t;c.compose=function(a,b){d(a,"init",x);d(a,"afterBuildStacks",f);d(a,"afterRender",h);d(b,"beforeRedraw",p)}})(f||(f={}));return f});C(d,"Series/Waterfall/WaterfallPoint.js",[d["Series/Column/ColumnSeries.js"],
d["Core/Series/Point.js"],d["Core/Utilities.js"]],function(b,c,d){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=d.isNumber;return function(b){function d(){var a=null!==b&&b.apply(this,arguments)||
this;a.options=void 0;a.series=void 0;return a}a(d,b);d.prototype.getClassName=function(){var a=c.prototype.getClassName.call(this);this.isSum?a+=" highcharts-sum":this.isIntermediateSum&&(a+=" highcharts-intermediate-sum");return a};d.prototype.isValid=function(){return f(this.y)||this.isSum||!!this.isIntermediateSum};return d}(b.prototype.pointClass)});C(d,"Series/Waterfall/WaterfallSeries.js",[d["Core/Axis/Axis.js"],d["Core/Chart/Chart.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"],
d["Core/Axis/WaterfallAxis.js"],d["Series/Waterfall/WaterfallPoint.js"]],function(b,c,d,a,f,x){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),q=d.seriesTypes,p=q.column,C=q.line,t=a.arrayMax,
k=a.arrayMin,e=a.correctFloat;q=a.extend;var g=a.isNumber,l=a.merge,m=a.objectEach,J=a.pick;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.options=void 0;b.points=void 0;b.stackedYNeg=void 0;b.stackedYPos=void 0;b.stackKey=void 0;b.xData=void 0;b.yAxis=void 0;b.yData=void 0;return b}h(b,a);b.prototype.generatePoints=function(){var a;p.prototype.generatePoints.apply(this);var b=0;for(a=this.points.length;b<a;b++){var c=this.points[b];var d=this.processedYData[b];
if(c.isIntermediateSum||c.isSum)c.y=e(d)}};b.prototype.translate=function(){var a=this.options,b=this.yAxis,c=J(a.minPointLength,5),e=c/2,d=a.threshold||0,f=d,h=d;a=a.stacking;var l=b.waterfall.stacks[this.stackKey];p.prototype.translate.apply(this);for(var m=this.points,r=0;r<m.length;r++){var k=m[r];var n=this.processedYData[r];var q=k.shapeArgs;if(q&&g(n)){var A=[0,n];var t=k.y;if(a){if(l){A=l[r];if("overlap"===a){var x=A.stackState[A.stateIndex--];x=0<=t?x:x-t;Object.hasOwnProperty.call(A,"absolutePos")&&
delete A.absolutePos;Object.hasOwnProperty.call(A,"absoluteNeg")&&delete A.absoluteNeg}else 0<=t?(x=A.threshold+A.posTotal,A.posTotal-=t):(x=A.threshold+A.negTotal,A.negTotal-=t,x-=t),!A.posTotal&&Object.hasOwnProperty.call(A,"absolutePos")&&(A.posTotal=A.absolutePos,delete A.absolutePos),!A.negTotal&&Object.hasOwnProperty.call(A,"absoluteNeg")&&(A.negTotal=A.absoluteNeg,delete A.absoluteNeg);k.isSum||(A.connectorThreshold=A.threshold+A.stackTotal);b.reversed?(n=0<=t?x-t:x+t,t=x):(n=x,t=x-t);k.below=
n<=d;q.y=b.translate(n,!1,!0,!1,!0);q.height=Math.abs(q.y-b.translate(t,!1,!0,!1,!0));if(t=b.waterfall.dummyStackItem)t.x=r,t.label=l[r].label,t.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[r],this.stackedYPos[r])}}else x=Math.max(f,f+t)+A[0],q.y=b.translate(x,!1,!0,!1,!0),k.isSum?(q.y=b.translate(A[1],!1,!0,!1,!0),q.height=Math.min(b.translate(A[0],!1,!0,!1,!0),b.len)-q.y,k.below=A[1]<=d):k.isIntermediateSum?(0<=t?(n=A[1]+h,t=h):(n=h,t=A[1]+h),b.reversed&&(n^=t,t^=n,n^=t),q.y=b.translate(n,
!1,!0,!1,!0),q.height=Math.abs(q.y-Math.min(b.translate(t,!1,!0,!1,!0),b.len)),h+=A[1],k.below=n<=d):(q.height=0<n?b.translate(f,!1,!0,!1,!0)-q.y:b.translate(f,!1,!0,!1,!0)-b.translate(f-n,!1,!0,!1,!0),f+=n,k.below=f<d),0>q.height&&(q.y+=q.height,q.height*=-1);k.plotY=q.y=Math.round(q.y||0)-this.borderWidth%2/2;q.height=Math.max(Math.round(q.height||0),.001);k.yBottom=q.y+q.height;q.height<=c&&!k.isNull?(q.height=c,q.y-=e,k.plotY=q.y,k.minPointLengthOffset=0>k.y?-e:e):(k.isNull&&(q.width=0),k.minPointLengthOffset=
0);t=k.plotY+(k.negative?q.height:0);k.below&&(k.plotY+=q.height);k.tooltipPos&&(this.chart.inverted?k.tooltipPos[0]=b.len-t:k.tooltipPos[1]=t);k.isInside=this.isPointInside(k)}}};b.prototype.processData=function(b){var c=this.options,d=this.yData,f=c.data,g=d.length,h=c.threshold||0,l,k,m,p,n;for(n=k=l=m=p=0;n<g;n++){var q=d[n];var t=f&&f[n]?f[n]:{};"sum"===q||t.isSum?d[n]=e(k):"intermediateSum"===q||t.isIntermediateSum?(d[n]=e(l),l=0):(k+=q,l+=q);m=Math.min(k,m);p=Math.max(k,p)}a.prototype.processData.call(this,
b);c.stacking||(this.dataMin=m+h,this.dataMax=p)};b.prototype.toYData=function(a){return a.isSum?"sum":a.isIntermediateSum?"intermediateSum":a.y};b.prototype.updateParallelArrays=function(b,c){a.prototype.updateParallelArrays.call(this,b,c);if("sum"===this.yData[0]||"intermediateSum"===this.yData[0])this.yData[0]=null};b.prototype.pointAttribs=function(a,b){var c=this.options.upColor;c&&!a.options.color&&(a.color=0<a.y?c:null);a=p.prototype.pointAttribs.call(this,a,b);delete a.dashstyle;return a};
b.prototype.getGraphPath=function(){return[["M",0,0]]};b.prototype.getCrispPath=function(){var a=this.data,b=this.yAxis,c=a.length,e=Math.round(this.graph.strokeWidth())%2/2,d=Math.round(this.borderWidth)%2/2,f=this.xAxis.reversed,g=this.yAxis.reversed,h=this.options.stacking,l=[],k;for(k=1;k<c;k++){var m=a[k].shapeArgs;var p=a[k-1];var n=a[k-1].shapeArgs;var q=b.waterfall.stacks[this.stackKey];var t=0<p.y?-n.height:0;q&&n&&m&&(q=q[k-1],h?(q=q.connectorThreshold,t=Math.round(b.translate(q,0,1,0,1)+
(g?t:0))-e):t=n.y+p.minPointLengthOffset+d-e,l.push(["M",(n.x||0)+(f?0:n.width||0),t],["L",(m.x||0)+(f?m.width||0:0),t]));n&&l.length&&(!h&&0>p.y&&!g||0<p.y&&g)&&((p=l[l.length-2])&&"number"===typeof p[2]&&(p[2]+=n.height||0),(p=l[l.length-1])&&"number"===typeof p[2]&&(p[2]+=n.height||0))}return l};b.prototype.drawGraph=function(){C.prototype.drawGraph.call(this);this.graph.attr({d:this.getCrispPath()})};b.prototype.setStackedPoints=function(){function a(a,b,c,d){if(R)for(c;c<R;c++)u.stackState[c]+=
d;else u.stackState[0]=a,R=u.stackState.length;u.stackState.push(u.stackState[R-1]+b)}var b=this.options,c=this.yAxis.waterfall.stacks,e=b.threshold,d=e||0,f=d,g=this.stackKey,h=this.xData,l=h.length,k,p,m;this.yAxis.stacking.usePercentage=!1;var n=p=m=d;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var q=c.changed;(k=c.alreadyChanged)&&0>k.indexOf(g)&&(q=!0);c[g]||(c[g]={});k=c[g];for(var t=0;t<l;t++){var x=h[t];if(!k[x]||q)k[x]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,
stackState:[],label:q&&k[x]?k[x].label:void 0};var u=k[x];var B=this.yData[t];0<=B?u.posTotal+=B:u.negTotal+=B;var y=b.data[t];x=u.absolutePos=u.posTotal;var P=u.absoluteNeg=u.negTotal;u.stackTotal=x+P;var R=u.stackState.length;y&&y.isIntermediateSum?(a(m,p,0,m),m=p,p=e,d^=f,f^=d,d^=f):y&&y.isSum?(a(e,n,R),d=e):(a(d,B,0,n),y&&(n+=B,p+=B));u.stateIndex++;u.threshold=d;d+=u.stackTotal}c.changed=!1;c.alreadyChanged||(c.alreadyChanged=[]);c.alreadyChanged.push(g)}};b.prototype.getExtremes=function(){var a=
this.options.stacking;if(a){var b=this.yAxis;b=b.waterfall.stacks;var c=this.stackedYNeg=[];var d=this.stackedYPos=[];"overlap"===a?m(b[this.stackKey],function(a){c.push(k(a.stackState));d.push(t(a.stackState))}):m(b[this.stackKey],function(a){c.push(a.negTotal+a.threshold);d.push(a.posTotal+a.threshold)});return{dataMin:k(c),dataMax:t(d)}}return{dataMin:this.dataMin,dataMax:this.dataMax}};b.defaultOptions=l(p.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",
borderColor:"#333333",states:{hover:{lineWidthPlus:0}}});return b}(p);q(a.prototype,{getZonesGraphs:C.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:x});d.registerSeriesType("waterfall",a);f.compose(b,c);"";return a});C(d,"Core/Axis/RadialAxis.js",[d["Core/Axis/AxisDefaults.js"],d["Core/Defaults.js"],d["Core/Globals.js"],d["Core/Utilities.js"]],function(b,c,d,a){var f=c.defaultOptions,h=d.noop,n=a.addEvent,q=a.correctFloat,p=a.defined,C=a.extend,t=a.fireEvent,k=a.merge,e=a.pick,g=
a.relativeLength,l=a.wrap,m;(function(a){function c(){this.autoConnect=this.isCircular&&"undefined"===typeof e(this.userMax,this.options.max)&&q(this.endAngleRad-this.startAngleRad)===q(2*Math.PI);!this.isCircular&&this.chart.inverted&&this.max++;this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function d(){var a=this;return function(){if(a.isRadial&&a.tickPositions&&a.options.labels&&!0!==a.options.labels.allowOverlap)return a.tickPositions.map(function(b){return a.ticks[b]&&
a.ticks[b].label}).filter(function(a){return!!a})}}function m(){return h}function v(a,b,c){var d=this.pane.center,e=a.value;if(this.isCircular){if(p(e))a.point&&(f=a.point.shapeArgs||{},f.start&&(e=this.chart.inverted?this.translate(a.point.rectPlotY,!0):a.point.x));else{var f=a.chartX||0;var g=a.chartY||0;e=this.translate(Math.atan2(g-c,f-b)-this.startAngleRad,!0)}a=this.getPosition(e);f=a.x;g=a.y}else p(e)||(f=a.chartX,g=a.chartY),p(f)&&p(g)&&(c=d[1]+this.chart.plotTop,e=this.translate(Math.min(Math.sqrt(Math.pow(f-
b,2)+Math.pow(g-c,2)),d[2]/2)-d[3]/2,!0));return[e,f||0,g||0]}function x(a,b,c){a=this.pane.center;var d=this.chart,f=this.left||0,g=this.top||0,h=e(b,a[2]/2-this.offset);"undefined"===typeof c&&(c=this.horiz?0:this.center&&-this.center[3]/2);c&&(h+=c);this.isCircular||"undefined"!==typeof b?(b=this.chart.renderer.symbols.arc(f+a[0],g+a[1],h,h,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}),b.xBounds=[f+a[0]],b.yBounds=[g+a[1]-h]):(b=this.postTranslate(this.angleRad,h),b=[["M",this.center[0]+
d.plotLeft,this.center[1]+d.plotTop],["L",b.x,b.y]]);return b}function D(){this.constructor.prototype.getOffset.call(this);this.chart.axisOffset[this.side]=0}function L(a,b,c){var d=this.chart,f=function(a){if("string"===typeof a){var b=parseInt(a,10);p.test(a)&&(b=b*B/100);return b}return a},g=this.center,h=this.startAngleRad,B=g[2]/2,l=Math.min(this.offset,0),k=this.left||0,u=this.top||0,p=/%$/,m=this.isCircular,y=e(f(c.outerRadius),B),n=f(c.innerRadius);f=e(f(c.thickness),10);if("polygon"===this.options.gridLineInterpolation)l=
this.getPlotLinePath({value:a}).concat(this.getPlotLinePath({value:b,reverse:!0}));else{a=Math.max(a,this.min);b=Math.min(b,this.max);a=this.translate(a);b=this.translate(b);m||(y=a||0,n=b||0);if("circle"!==c.shape&&m)c=h+(a||0),h+=b||0;else{c=-Math.PI/2;h=1.5*Math.PI;var O=!0}y-=l;l=d.renderer.symbols.arc(k+g[0],u+g[1],y,y,{start:Math.min(c,h),end:Math.max(c,h),innerR:e(n,y-(f-l)),open:O});m&&(m=(h+c)/2,k=k+g[0]+g[2]/2*Math.cos(m),l.xBounds=m>-Math.PI/2&&m<Math.PI/2?[k,d.plotWidth]:[0,k],l.yBounds=
[u+g[1]+g[2]/2*Math.sin(m)],l.yBounds[0]+=m>-Math.PI&&0>m||m>Math.PI?-10:10)}return l}function w(a){var b=this,c=this.pane.center,d=this.chart,e=d.inverted,f=a.reverse,h=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},B=h.innerRadius||"0%",l=h.outerRadius||"100%",k=c[0]+d.plotLeft,m=c[1]+d.plotTop,u=this.height,p=a.isCrosshair;h=c[3]/2;var y=a.value,n;var O=this.getPosition(y);var q=O.x;O=O.y;p&&(O=this.getCrosshairPosition(a,k,m),y=O[0],q=O[1],O=O[2]);
if(this.isCircular)y=Math.sqrt(Math.pow(q-k,2)+Math.pow(O-m,2)),f="string"===typeof B?g(B,1):B/y,d="string"===typeof l?g(l,1):l/y,c&&h&&(h/=y,f<h&&(f=h),d<h&&(d=h)),c=[["M",k+f*(q-k),m-f*(m-O)],["L",q-(1-d)*(q-k),O+(1-d)*(m-O)]];else if((y=this.translate(y))&&(0>y||y>u)&&(y=0),"circle"===this.options.gridLineInterpolation)c=this.getLinePath(0,y,h);else if(c=[],d[e?"yAxis":"xAxis"].forEach(function(a){a.pane===b.pane&&(n=a)}),n)for(k=n.tickPositions,n.autoConnect&&(k=k.concat([k[0]])),f&&(k=k.slice().reverse()),
y&&(y+=h),m=0;m<k.length;m++)h=n.getPosition(k[m],y),c.push(m?["L",h.x,h.y]:["M",h.x,h.y]);return c}function z(a,b){a=this.translate(a);return this.postTranslate(this.isCircular?a:this.angleRad,e(this.isCircular?b:0>a?0:a,this.center[2]/2)-this.offset)}function E(){var a=this.center,b=this.chart,c=this.options.title;return{x:b.plotLeft+a[0]+(c.x||0),y:b.plotTop+a[1]-{high:.5,middle:.25,low:0}[c.align]*a[2]+(c.y||0)}}function F(a){a.beforeSetTickPositions=c;a.createLabelCollector=d;a.getCrosshairPosition=
v;a.getLinePath=x;a.getOffset=D;a.getPlotBandPath=L;a.getPlotLinePath=w;a.getPosition=z;a.getTitlePosition=E;a.postTranslate=u;a.setAxisSize=y;a.setAxisTranslation=P;a.setOptions=R}function r(){var a=this.chart,b=this.options,c=this.pane,d=c&&c.options;a.angular&&this.isXAxis||!c||!a.angular&&!a.polar||(a=2*Math.PI,c=(e(d.startAngle,0)-90)*Math.PI/180,d=(e(d.endAngle,e(d.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=c,this.endAngleRad=d,this.offset=b.offset||
0,b=(c%a+a)%a,d=(d%a+a)%a,b>Math.PI&&(b-=a),d>Math.PI&&(d-=a),this.normalizedStartAngleRad=b,this.normalizedEndAngleRad=d)}function K(a){this.isRadial&&(a.align=void 0,a.preventDefault())}function J(){if(this.chart&&this.chart.labelCollectors){var a=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=a&&this.chart.labelCollectors.splice(a,1)}}function U(a){var c=this.chart,d=c.inverted,e=c.angular,f=c.polar,g=this.isXAxis,l=this.coll,y=e&&g;a=a.userOptions.pane||0;a=
this.pane=c.pane&&c.pane[a];var u;if("colorAxis"===l)this.isRadial=!1;else{if(e){if(y?(this.isHidden=!0,this.createLabelCollector=m,this.getOffset=h,this.render=this.redraw=B,this.setTitle=this.setCategories=this.setScale=h):F(this),u=!g)this.defaultPolarOptions=Y}else f&&(F(this),this.defaultPolarOptions=(u=this.horiz)?X:k("xAxis"===l?b.defaultXAxisOptions:b.defaultYAxisOptions,Z),d&&"yAxis"===l&&(this.defaultPolarOptions.stackLabels=b.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=
!0));e||f?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&c.labelCollectors.push(this.labelCollector)):this.isRadial=!1;a&&u&&(a.axis=this);this.isCircular=u}}function A(){this.isRadial&&this.beforeSetTickPositions()}function M(a){var b=this.label;if(b){var c=this.axis,d=b.getBBox(),f=c.options.labels,h=(c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI*180%360,B=Math.round(h),l=p(f.y)?0:.3*-d.height,k=f.y,m=20,y=f.align,u="end",
n=0>B?B+360:B,q=n,P=0,t=0;if(c.isRadial){var r=c.getPosition(this.pos,c.center[2]/2+g(e(f.distance,-25),c.center[2]/2,-c.center[2]/2));"auto"===f.rotation?b.attr({rotation:h}):p(k)||(k=c.chart.renderer.fontMetrics(b.styles&&b.styles.fontSize).b-d.height/2);p(y)||(c.isCircular?(d.width>c.len*c.tickInterval/(c.max-c.min)&&(m=0),y=h>m&&h<180-m?"left":h>180+m&&h<360-m?"right":"center"):y="center",b.attr({align:y}));if("auto"===y&&2===c.tickPositions.length&&c.isCircular){90<n&&180>n?n=180-n:270<n&&360>=
n&&(n=540-n);180<q&&360>=q&&(q=360-q);if(c.pane.options.startAngle===B||c.pane.options.startAngle===B+360||c.pane.options.startAngle===B-360)u="start";y=-90<=B&&90>=B||-360<=B&&-270>=B||270<=B&&360>=B?"start"===u?"right":"left":"start"===u?"left":"right";70<q&&110>q&&(y="center");15>n||180<=n&&195>n?P=.3*d.height:15<=n&&35>=n?P="start"===u?0:.75*d.height:195<=n&&215>=n?P="start"===u?.75*d.height:0:35<n&&90>=n?P="start"===u?.25*-d.height:d.height:215<n&&270>=n&&(P="start"===u?d.height:.25*-d.height);
15>q?t="start"===u?.15*-d.height:.15*d.height:165<q&&180>=q&&(t="start"===u?.15*d.height:.15*-d.height);b.attr({align:y});b.translate(t,P+l)}a.pos.x=r.x+(f.x||0);a.pos.y=r.y+(k||0)}}}function S(a){this.axis.getPosition&&C(a.pos,this.axis.getPosition(this.pos))}function u(a,b){var c=this.chart,d=this.center;a=this.startAngleRad+a;return{x:c.plotLeft+d[0]+Math.cos(a)*b,y:c.plotTop+d[1]+Math.sin(a)*b}}function B(){this.isDirty=!1}function y(){this.constructor.prototype.setAxisSize.call(this);if(this.isRadial){this.pane.updateCenter(this);
var a=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var b=this.postTranslate(this.angleRad,a[3]/2);a[0]=b.x-this.chart.plotLeft;a[1]=b.y-this.chart.plotTop}this.len=this.width=this.height=(a[2]-a[3])*e(this.sector,1)/2}}function P(){this.constructor.prototype.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||
1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function R(a){a=this.options=k(this.constructor.defaultOptions,this.defaultPolarOptions,f[this.coll],a);a.plotBands||(a.plotBands=[]);t(this,"afterSetOptions")}function W(a,b,c,d,e,f,g){var h=this.axis;h.isRadial?(a=h.getPosition(this.pos,h.center[2]/2+d),b=["M",b,c,"L",a.x,a.y]):b=a.call(this,b,c,d,e,f,g);return b}var T=[],X={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,
minPadding:0,showLastLabel:!1,tickLength:0},Y={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},Z={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};a.compose=function(a,b){-1===T.indexOf(a)&&(T.push(a),n(a,"afterInit",r),n(a,"autoLabelAlign",K),
n(a,"destroy",J),n(a,"init",U),n(a,"initialAxisTranslation",A));-1===T.indexOf(b)&&(T.push(b),n(b,"afterGetLabelPosition",M),n(b,"afterGetPosition",S),l(b.prototype,"getMarkPath",W));return a}})(m||(m={}));return m});C(d,"Series/PolarComposition.js",[d["Core/Animation/AnimationUtilities.js"],d["Core/Globals.js"],d["Extensions/Pane.js"],d["Core/Axis/RadialAxis.js"],d["Core/Utilities.js"]],function(b,c,d,a,f){function h(a,b,c,d){var e=d?1:0;var f=0<=b&&b<=a.length-1?b:0>b?a.length-1+b:0;b=0>f-1?a.length-
(1+e):f-1;var g=a[b];e=a[f+1>a.length-1?e:f+1];var B=g.plotY;var l=e.plotX;var k=e.plotY;e=a[f].plotX;f=a[f].plotY;g=(1.5*e+g.plotX)/2.5;B=(1.5*f+B)/2.5;l=(1.5*e+l)/2.5;var m=(1.5*f+k)/2.5;k=Math.sqrt(Math.pow(g-e,2)+Math.pow(B-f,2));var y=Math.sqrt(Math.pow(l-e,2)+Math.pow(m-f,2));g=Math.atan2(B-f,g-e);m=Math.PI/2+(g+Math.atan2(m-f,l-e))/2;Math.abs(g-m)>Math.PI/2&&(m-=Math.PI);g=e+Math.cos(m)*k;B=f+Math.sin(m)*k;l=e+Math.cos(Math.PI+m)*y;m=f+Math.sin(Math.PI+m)*y;e={rightContX:l,rightContY:m,leftContX:g,
leftContY:B,plotX:e,plotY:f};c&&(e.prevPointCont=h(a,b,!1,d));return e}function n(){(this.pane||[]).forEach(function(a){a.render()})}function q(a){var b=a.args[0].xAxis,c=a.args[0].yAxis;a=a.args[0].chart;b&&c&&("polygon"===c.gridLineInterpolation?(b.startOnTick=!0,b.endOnTick=!0):"polygon"===b.gridLineInterpolation&&a.inverted&&(c.startOnTick=!0,c.endOnTick=!0))}function p(){var a=this;this.pane||(this.pane=[]);this.options.pane=V(this.options.pane);this.options.pane.forEach(function(b){new d(b,
a)},this)}function C(a){var b=a.args.marker,c=this.chart.xAxis[0],d=this.chart.yAxis[0],e=this.chart.inverted,f=e?d:c;c=e?c:d;if(this.chart.polar){a.preventDefault();d=(b.attr?b.attr("start"):b.start)-f.startAngleRad;e=b.attr?b.attr("r"):b.r;var g=(b.attr?b.attr("end"):b.end)-f.startAngleRad;b=b.attr?b.attr("innerR"):b.innerR;a.result.x=d+f.pos;a.result.width=g-d;a.result.y=c.len+c.pos-b;a.result.height=b-e}}function t(a){var b=this.chart;if(b.polar&&b.hoverPane&&b.hoverPane.axis){a.preventDefault();
var c=b.hoverPane.center,d=this.mouseDownX||0,e=this.mouseDownY||0,f=a.args.chartY,g=a.args.chartX,h=2*Math.PI,k=b.hoverPane.axis.startAngleRad,m=b.hoverPane.axis.endAngleRad,n=b.inverted?b.xAxis[0]:b.yAxis[0],p={},u="arc";p.x=c[0]+b.plotLeft;p.y=c[1]+b.plotTop;if(this.zoomHor){var q=0<k?m-k:Math.abs(k)+Math.abs(m),t=Math.atan2(e-b.plotTop-c[1],d-b.plotLeft-c[0])-k,r=Math.atan2(f-b.plotTop-c[1],g-b.plotLeft-c[0])-k;p.r=c[2]/2;p.innerR=c[3]/2;0>=t&&(t+=h);0>=r&&(r+=h);r<t&&(r=[t,t=r][0]);q<h&&k+r>
m+(h-q)/2&&(r=t,t=0>=k?k:0);h=p.start=Math.max(t+k,k);t=p.end=Math.min(r+k,m);"polygon"===n.options.gridLineInterpolation&&(r=b.hoverPane.axis,q=h-r.startAngleRad+r.pos,t-=h,u=n.getPlotLinePath({value:n.max}),h=r.toValue(q),q=r.toValue(q+t),h<r.getExtremes().min&&(t=r.getExtremes(),h=t.max-(t.min-h)),q<r.getExtremes().min&&(t=r.getExtremes(),q=t.max-(t.min-q)),q<h&&(q=[h,h=q][0]),u=l(u,h,q,r),u.push(["L",c[0]+b.plotLeft,b.plotTop+c[1]]),p.d=u,u="path")}this.zoomVert&&(r=b.inverted?b.xAxis[0]:b.yAxis[0],
d=Math.sqrt(Math.pow(d-b.plotLeft-c[0],2)+Math.pow(e-b.plotTop-c[1],2)),f=Math.sqrt(Math.pow(g-b.plotLeft-c[0],2)+Math.pow(f-b.plotTop-c[1],2)),f<d&&(d=[f,f=d][0]),f>c[2]/2&&(f=c[2]/2),d<c[3]/2&&(d=c[3]/2),this.zoomHor||(p.start=k,p.end=m),p.r=f,p.innerR=d,"polygon"===r.options.gridLineInterpolation&&(t=r.toValue(r.len+r.pos-d),h=r.toValue(r.len+r.pos-f),u=r.getPlotLinePath({value:h}).concat(r.getPlotLinePath({value:t,reverse:!0})),p.d=u,u="path"));this.zoomHor&&this.zoomVert&&"polygon"===n.options.gridLineInterpolation&&
(r=b.hoverPane.axis,h=p.start||0,t=p.end||0,q=h-r.startAngleRad+r.pos,t-=h,h=r.toValue(q),q=r.toValue(q+t),p.d instanceof Array&&(c=p.d.slice(0,p.d.length/2),k=p.d.slice(p.d.length/2,p.d.length),k=L([],k,!0).reverse(),b=b.hoverPane.axis,c=l(c,h,q,b),(k=l(k,h,q,b))&&(k[0][0]="L"),k=L([],k,!0).reverse(),p.d=c.concat(k),u="path"));a.attrs=p;a.shapeType=u}}function k(){var a=this.chart;a.polar&&(this.polar=new S(this),a.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function e(){if(this.chart.polar&&
this.xAxis){var a=this.chart;(this.kdByAngle=a.tooltip&&a.tooltip.shared)?this.searchPoint=g:this.options.findNearestPointBy="xy";for(var b=this.points,d=b.length;d--;)this.preventPostTranslate||this.polar.toXY(b[d]),a.hasParallelCoordinates||this.yAxis.reversed||(K(b[d].y,Number.MIN_VALUE)<this.yAxis.min||b[d].x<this.xAxis.min||b[d].x>this.xAxis.max?(b[d].isNull=!0,b[d].plotY=NaN):b[d].isNull=b[d].isValid&&!b[d].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(z(this,
"afterRender",function(){if(a.polar){var b=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:b[0],y:b[1],r:b[2]/2,innerR:b[3]/2});else{var d=a.renderer,e=b[0],f=b[1],g=b[2]/2,h=b[3]/2;b=U();var k=d.createElement("clipPath").attr({id:b}).add(d.defs);d=h?d.arc(e,f,g,h,0,2*Math.PI).add(k):d.circle(e,f,g).add(k);d.id=b;d.clipPath=k;this.clipCircle=d}this.group.clip(this.clipCircle);this.setClip=c.noop}})))}}function g(a){var b=this.chart,c=this.xAxis;c=c.pane&&c.pane.center;return this.searchKDTree({clientX:180+
-180/Math.PI*Math.atan2(a.chartX-(c&&c[0]||0)-b.plotLeft,a.chartY-(c&&c[1]||0)-b.plotTop)})}function l(a,b,c,d){var e=d.tickInterval;d=d.tickPositions;var f=F(d,function(a){return a>=c}),g=F(L([],d,!0).reverse(),function(a){return a<=b});E(f)||(f=d[d.length-1]);E(g)||(g=d[0],f+=e,a[0][0]="L",a.unshift(a[a.length-3]));a=a.slice(d.indexOf(g),d.indexOf(f)+1);a[0][0]="M";return a}function m(a,b){return F(this.pane||[],function(a){return a.options.id===b})||a.call(this,b)}function J(a,b,c,d,e,f){var g=
this.chart,h=K(d.inside,!!this.options.stacking);g.polar?(a=b.rectPlotX/Math.PI*180,g.inverted?(this.forceDL=g.isInsidePlot(b.plotX,b.plotY),h&&b.shapeArgs?(e=b.shapeArgs,e=this.yAxis.postTranslate(((e.start||0)+(e.end||0))/2-this.xAxis.startAngleRad,b.barX+b.pointWidth/2),e={x:e.x-g.plotLeft,y:e.y-g.plotTop}):b.tooltipPos&&(e={x:b.tooltipPos[0],y:b.tooltipPos[1]}),d.align=K(d.align,"center"),d.verticalAlign=K(d.verticalAlign,"middle")):(null===d.align&&(d.align=20<a&&160>a?"left":200<a&&340>a?"right":
"center"),null===d.verticalAlign&&(d.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,b,c,d,e,f),this.isRadialBar&&b.shapeArgs&&b.shapeArgs.start===b.shapeArgs.end?c.hide():c.show()):a.call(this,b,c,d,e,f)}function H(a){var b=this.options,c=b.stacking,d=this.chart,e=this.xAxis,g=this.yAxis,h=g.reversed,k=g.center,l=e.startAngleRad,m=e.endAngleRad-l,p=0,n=0,q=0;this.preventPostTranslate=!0;a.call(this);if(e.isRadial){a=
this.points;e=a.length;var t=g.translate(g.min);var u=g.translate(g.max);b=b.threshold||0;d.inverted&&r(b)&&(p=g.translate(b),E(p)&&(0>p?p=0:p>m&&(p=m),this.translatedThreshold=p+l));for(;e--;){b=a[e];var v=b.barX;var x=b.x;var w=b.y;b.shapeType="arc";if(d.inverted){b.plotY=g.translate(w);c&&g.stacking?(w=g.stacking.stacks[(0>w?"-":"")+this.stackKey],this.visible&&w&&w[x]&&!b.isNull&&(q=w[x].points[this.getStackIndicator(void 0,x,this.index).key],n=g.translate(q[0]),q=g.translate(q[1]),E(n)&&(n=f.clamp(n,
0,m)))):(n=p,q=b.plotY);n>q&&(q=[n,n=q][0]);if(!h)if(n<t)n=t;else if(q>u)q=u;else{if(q<t||n>u)n=q=0}else if(q>t)q=t;else if(n<u)n=u;else if(n>t||q<u)n=q=m;g.min>g.max&&(n=q=h?m:0);n+=l;q+=l;k&&(b.barX=v+=k[3]/2);x=Math.max(v,0);w=Math.max(v+b.pointWidth,0);b.shapeArgs={x:k&&k[0],y:k&&k[1],r:w,innerR:x,start:n,end:q};b.opacity=n===q?0:void 0;b.plotY=(E(this.translatedThreshold)&&(n<this.translatedThreshold?n:q))-l}else n=v+l,b.shapeArgs=this.polar.arc(b.yBottom,b.plotY,n,n+b.pointWidth);this.polar.toXY(b);
d.inverted?(v=g.postTranslate(b.rectPlotY,v+b.pointWidth/2),b.tooltipPos=[v.x-d.plotLeft,v.y-d.plotTop]):b.tooltipPos=[b.plotX,b.plotY];k&&(b.ttBelow=b.plotY>k[1])}}}function N(a,b){var c=this;if(this.chart.polar){b=b||this.points;for(var d=0;d<b.length;d++)if(!b[d].isNull){var e=d;break}if(!1!==this.options.connectEnds&&"undefined"!==typeof e){this.connectEnds=!0;b.splice(b.length,0,b[e]);var f=!0}b.forEach(function(a){"undefined"===typeof a.polarPlotY&&c.polar.toXY(a)})}e=a.apply(this,[].slice.call(arguments,
1));f&&b.pop();return e}function G(a,b){var c=this.chart,d={xAxis:[],yAxis:[]};c.polar?c.axes.forEach(function(a){if("colorAxis"!==a.coll){var e=a.isXAxis,f=a.center,g=b.chartX-f[0]-c.plotLeft;f=b.chartY-f[1]-c.plotTop;d[e?"xAxis":"yAxis"].push({axis:a,value:a.translate(e?Math.PI-Math.atan2(g,f):Math.sqrt(Math.pow(g,2)+Math.pow(f,2)),!0)})}}):d=a.call(this,b);return d}function v(a,b){this.chart.polar||a.call(this,b)}function Q(a,b){var d=this,e=this.chart,f=this.group,g=this.markerGroup,h=this.xAxis&&
this.xAxis.center,k=e.plotLeft,l=e.plotTop,m=this.options.animation,n,p,q,t;if(e.polar)if(d.isRadialBar)b||(d.startAngleRad=K(d.translatedThreshold,d.xAxis.startAngleRad),c.seriesTypes.pie.prototype.animate.call(d,b));else{if(e.renderer.isSVG)if(m=w(m),d.is("column")){if(!b){var r=h[3]/2;d.points.forEach(function(a){n=a.graphic;q=(p=a.shapeArgs)&&p.r;t=p&&p.innerR;n&&p&&(n.attr({r:r,innerR:r}),n.animate({r:q,innerR:t},d.options.animation))})}}else b?(a={translateX:h[0]+k,translateY:h[1]+l,scaleX:.001,
scaleY:.001},f.attr(a),g&&g.attr(a)):(a={translateX:k,translateY:l,scaleX:1,scaleY:1},f.animate(a,m),g&&g.animate(a,m))}else a.call(this,b)}function I(a,b,c,d){this.chart.polar?d?(a=h(b,d,!0,this.connectEnds),b=a.prevPointCont&&a.prevPointCont.rightContX,c=a.prevPointCont&&a.prevPointCont.rightContY,a=["C",r(b)?b:a.plotX,r(c)?c:a.plotY,r(a.leftContX)?a.leftContX:a.plotX,r(a.leftContY)?a.leftContY:a.plotY,a.plotX,a.plotY]):a=["M",c.plotX,c.plotY]:a=a.call(this,b,c,d);return a}var L=this&&this.__spreadArray||
function(a,b,c){if(c||2===arguments.length)for(var d=0,e=b.length,f;d<e;d++)!f&&d in b||(f||(f=Array.prototype.slice.call(b,0,d)),f[d]=b[d]);return a.concat(f||Array.prototype.slice.call(b))},w=b.animObject,z=f.addEvent,E=f.defined,F=f.find,r=f.isNumber,K=f.pick,V=f.splat,U=f.uniqueKey,A=f.wrap,M=[],S=function(){function b(a){this.series=a}b.compose=function(b,c,d,f,g,h,l,r,u){a.compose(b,g);-1===M.indexOf(c)&&(M.push(c),z(c,"afterDrawChartBox",n),z(c,"getAxes",p),z(c,"init",q),A(c.prototype,"get",
m));-1===M.indexOf(d)&&(M.push(d),b=d.prototype,A(b,"getCoordinates",G),A(b,"pinch",v),z(d,"getSelectionMarkerAttrs",t),z(d,"getSelectionBox",C));-1===M.indexOf(f)&&(M.push(f),z(f,"afterInit",k),z(f,"afterTranslate",e,{order:2}),A(f.prototype,"animate",Q));l&&-1===M.indexOf(l)&&(M.push(l),d=l.prototype,A(d,"alignDataLabel",J),A(d,"animate",Q),A(d,"translate",H));r&&-1===M.indexOf(r)&&(M.push(r),A(r.prototype,"getGraphPath",N));u&&-1===M.indexOf(u)&&(M.push(u),r=u.prototype,A(r,"getPointSpline",I),
h&&-1===M.indexOf(h)&&(M.push(h),h.prototype.getPointSpline=r.getPointSpline))};b.prototype.arc=function(a,b,c,d){var e=this.series,f=e.xAxis.center,g=e.yAxis.len,h=f[3]/2;b=g-b+h;a=g-K(a,g)+h;e.yAxis.reversed&&(0>b&&(b=h),0>a&&(a=h));return{x:f[0],y:f[1],r:b,innerR:a,start:c,end:d}};b.prototype.toXY=function(a){var b=this.series,c=b.chart,d=b.xAxis,e=b.yAxis,f=a.plotX,g=c.inverted,h=a.y,k=a.plotY,l=g?f:e.len-k;g&&b&&!b.isRadialBar&&(a.plotY=k=r(h)?e.translate(h):0);a.rectPlotX=f;a.rectPlotY=k;e.center&&
(l+=e.center[3]/2);r(k)&&(e=g?e.postTranslate(k,l):d.postTranslate(f,l),a.plotX=a.polarPlotX=e.x-c.plotLeft,a.plotY=a.polarPlotY=e.y-c.plotTop);b.kdByAngle?(b=(f/Math.PI*180+d.pane.options.startAngle)%360,0>b&&(b+=360),a.clientX=b):a.clientX=a.plotX};return b}();return S});C(d,"masters/highcharts-more.src.js",[d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Series/Bubble/BubbleSeries.js"],d["Series/PackedBubble/PackedBubbleSeries.js"],d["Series/PolarComposition.js"]],function(b,c,d,a,f){d.compose(b.Axis,
b.Chart,b.Legend,b.Series);a.compose(b.Axis,b.Chart,b.Legend,b.Series);f.compose(b.Axis,b.Chart,b.Pointer,b.Series,b.Tick,c.seriesTypes.areasplinerange,c.seriesTypes.column,c.seriesTypes.line,c.seriesTypes.spline)})});
//# sourceMappingURL=highcharts-more.js.map