/** * Highcharts JS v11.2.0 (2023-10-30) * * (c) 2009-2021 Torstein Honsi * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function i(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}i(e,"Extensions/Pane.js",[e["Core/Chart/Chart.js"],e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],function(t,e,i,o,r){var s=r.addEvent,a=r.correctFloat,n=r.defined,l=r.extend,h=r.merge,p=r.pick,c=r.splat;t.prototype.collectionsWithUpdate.push("pane");var u=function(){function t(t,e){this.background=void 0,this.center=void 0,this.chart=void 0,this.options=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(t,e)}return t.prototype.init=function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},t.prototype.setOptions=function(t){this.options=t=h(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},t.prototype.render=function(){var t,e,i=this.options,o=this.options.background,r=this.chart.renderer;if(this.group||(this.group=r.g("pane-group").attr({zIndex:i.zIndex||0}).add()),this.updateCenter(),o)for(e=0,t=Math.max((o=c(o)).length,this.background.length||0);er?c>=o&&c<=Math.PI||c<=r&&c>=-Math.PI:c>=o&&c<=a(r,8))}return p<=Math.ceil(i[2]/2)&&s}return t.prototype.getHoverPane=function(t){var e,i=this;return t&&i.pane.forEach(function(o){d(t.chartX-i.plotLeft,t.chartY-i.plotTop,o.center)&&(e=o)}),e},s(t,"afterIsInsidePlot",function(t){var e;this.polar&&(t.options.inverted&&(e=[t.y,t.x],t.x=e[0],t.y=e[1]),t.isInsidePlot=this.pane.some(function(e){return d(t.x,t.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)}))}),s(o,"beforeGetHoverData",function(t){var e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(t),t.filter=function(i){return i.visible&&!(!t.shared&&i.directTouch)&&p(i.options.enableMouseTracking,!0)&&(!e.hoverPane||i.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0}),s(o,"afterGetHoverData",function(t){var e=this.chart;t.hoverPoint&&t.hoverPoint.plotX&&t.hoverPoint.plotY&&e.hoverPane&&!d(t.hoverPoint.plotX,t.hoverPoint.plotY,e.hoverPane.center)&&(t.hoverPoint=void 0)}),i.Pane=u,u}),i(e,"Series/AreaRange/AreaRangePoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=t.seriesTypes.area.prototype,s=r.pointClass,a=r.pointClass.prototype,n=e.defined,l=e.isNumber;return e.merge,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.high=void 0,e.low=void 0,e.options=void 0,e.plotX=void 0,e.series=void 0,e}return o(e,t),e.prototype.setState=function(){var t=this.state,e=this.series,i=e.chart.polar;e.options.marker,e.symbol,n(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),n(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic,this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,i&&l(this.plotHighX)&&(this.plotX=this.plotHighX),a.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],i&&l(this.plotLowX)&&(this.plotX=this.plotLowX),e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0;var o=e.modifyMarkerSettings();a.setState.apply(this,arguments),e.restoreMarkerSettings(o)},e.prototype.haloPath=function(){var t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&l(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=a.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&l(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(a.haloPath.apply(this,arguments))),e},e.prototype.isValid=function(){return l(this.low)&&l(this.high)},e}(s)}),i(e,"Series/AreaRange/AreaRangeSeries.js",[e["Series/AreaRange/AreaRangePoint.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,o){var r,s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=e.noop,n=i.seriesTypes,l=n.area,h=n.area.prototype,p=n.column.prototype,c=o.addEvent,u=o.defined,d=o.extend,f=o.isArray,g=o.isNumber,y=o.pick,b=o.merge,v={lineWidth:1,threshold:null,tooltip:{pointFormat:' {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.lowerStateMarkerGraphic=void 0,e.xAxis=void 0,e}return s(e,t),e.prototype.toYData=function(t){return[t.low,t.high]},e.prototype.highToXY=function(t){var e=this.chart,i=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-(t.plotHigh||0));t.plotHighX=i.x-e.plotLeft,t.plotHigh=i.y-e.plotTop,t.plotLowX=t.plotX},e.prototype.getGraphPath=function(t){var e,i,o,r=[],s=[],a=h.getGraphPath,n=this.options,l=this.chart.polar,p=l&&!1!==n.connectEnds,c=n.connectNulls,u=n.step;for(e=(t=t||this.points).length;e--;){i=t[e];var d=l?{plotX:i.rectPlotX,plotY:i.yBottom,doCurve:!1}:{plotX:i.plotX,plotY:i.plotY,doCurve:!1};i.isNull||p||c||t[e+1]&&!t[e+1].isNull||s.push(d),o={polarPlotY:i.polarPlotY,rectPlotX:i.rectPlotX,yBottom:i.yBottom,plotX:y(i.plotHighX,i.plotX),plotY:i.plotHigh,isNull:i.isNull},s.push(o),r.push(o),i.isNull||p||c||t[e-1]&&!t[e-1].isNull||s.push(d)}var f=a.call(this,t);u&&(!0===u&&(u="left"),n.step=({left:"right",center:"center",right:"left"})[u]);var g=a.call(this,r),b=a.call(this,s);n.step=u;var v=[].concat(f,g);return!this.chart.polar&&b[0]&&"M"===b[0][0]&&(b[0]=["L",b[0][1],b[0][2]]),this.graphPath=v,this.areaPath=f.concat(b),v.isArea=!0,v.xMap=f.xMap,this.areaPath.xMap=f.xMap,v},e.prototype.drawDataLabels=function(){var t,e,i,o,r,s,a,n=this.points,l=n.length,p=[],c=this.options.dataLabels,u=this.chart.inverted;if(c){if(f(c)?(s=c[0]||{enabled:!1},a=c[1]||{enabled:!1}):((s=d({},c)).x=c.xHigh,s.y=c.yHigh,(a=d({},c)).x=c.xLow,a.y=c.yLow),s.enabled||(null===(t=this.hasDataLabels)||void 0===t?void 0:t.call(this))){for(i=l;i--;)if(o=n[i]){var g=o.plotHigh,y=void 0===g?0:g,b=o.plotLow,v=void 0===b?0:b;r=s.inside?yv,o.y=o.high,o._plotY=o.plotY,o.plotY=y,p[i]=o.dataLabel,o.dataLabel=o.dataLabelUpper,o.below=r,u?s.align||(s.align=r?"right":"left"):s.verticalAlign||(s.verticalAlign=r?"top":"bottom")}for(this.options.dataLabels=s,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments),i=l;i--;)(o=n[i])&&(o.dataLabelUpper=o.dataLabel,o.dataLabel=p[i],delete o.dataLabels,o.y=o.low,o.plotY=o._plotY)}if(a.enabled||(null===(e=this.hasDataLabels)||void 0===e?void 0:e.call(this))){for(i=l;i--;)if(o=n[i]){var m=o.plotHigh,y=void 0===m?0:m,x=o.plotLow,v=void 0===x?0:x;r=a.inside?yv,o.below=!r,u?a.align||(a.align=r?"left":"right"):a.verticalAlign||(a.verticalAlign=r?"bottom":"top")}this.options.dataLabels=a,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments)}if(s.enabled)for(i=l;i--;)(o=n[i])&&(o.dataLabels=[o.dataLabelUpper,o.dataLabel].filter(function(t){return!!t}));this.options.dataLabels=c}},e.prototype.alignDataLabel=function(){p.alignDataLabel.apply(this,arguments)},e.prototype.modifyMarkerSettings=function(){var t={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){var e=this.options,i=e.marker,o=e.lowMarker;this.options.marker=b(i,o),o.symbol&&(this.symbol=o.symbol)}return t},e.prototype.restoreMarkerSettings=function(t){this.options.marker=t.marker,this.symbol=t.symbol},e.prototype.drawPoints=function(){var t,e,i=this.points.length,o=this.modifyMarkerSettings();for(h.drawPoints.apply(this,arguments),this.restoreMarkerSettings(o),t=0;t=0&&e.plotY<=this.yAxis.len&&e.plotX>=0&&e.plotX<=this.xAxis.len),t++;for(h.drawPoints.apply(this,arguments),t=0;t{series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}}),i(e,"Series/BoxPlot/BoxPlotSeries.js",[e["Series/BoxPlot/BoxPlotSeriesDefaults.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,o,r){var s,a=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=i.noop,l=r.extend,h=r.merge,p=r.pick,c=function(i){function o(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return a(o,i),o.prototype.pointAttribs=function(){return{}},o.prototype.translate=function(){var t=this.yAxis,e=this.pointArrayMap;i.prototype.translate.apply(this),this.points.forEach(function(i){e.forEach(function(e){null!==i[e]&&(i[e+"Plot"]=t.translate(i[e],0,1,0,1))}),i.plotHigh=i.highPlot})},o.prototype.drawPoints=function(){for(var t,e,i,o,r,s,a,n,l,h,c,u,d,f,g=this.points,y=this.options,b=this.chart,v=b.renderer,m=!1!==this.doQuartiles,x=this.options.whiskerLength,P=0,S=0;S0?e:0,this.maxLabel=n,this.movementX="left"===r.labels.align?e:0,o.labelWidth=u+e+i,o.labelHeight=u+n.height/2},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,i=this.chart.series[e.seriesIndex],o=this.legend.baseline,s={zIndex:e.zIndex,"stroke-width":e.borderWidth},a={zIndex:e.zIndex,"stroke-width":e.connectorWidth},n={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=i.options.marker.fillOpacity,c=this.chart.styledMode;t.forEach(function(u,d){c||(s.stroke=p(u.borderColor,e.borderColor,i.color),s.fill=p(u.color,e.color,1!==l?r(i.color).setOpacity(l).get("rgba"):i.color),a.stroke=p(u.connectorColor,e.connectorColor,i.color)),t[d].radius=this.getRangeRadius(u.value),t[d]=h(t[d],{center:t[0].radius-t[d].radius+o}),c||h(!0,t[d],{bubbleAttribs:h(s),connectorAttribs:h(a),labelAttribs:n})},this)},t.prototype.getRangeRadius=function(t){var e=this.options,i=this.options.seriesIndex,o=this.chart.series[i],r=e.ranges[0].value,s=e.ranges[e.ranges.length-1].value,a=e.minSize,n=e.maxSize;return o.getRadius.call(this,s,r,a,n,t)},t.prototype.render=function(){var t=this.legendItem||{},e=this.chart.renderer,i=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group);for(var o=0,r=this.ranges;o=i&&this.renderRange(s)}this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.ranges[0],i=this.legend,o=this.options,r=o.labels,s=this.chart,a=s.series[o.seriesIndex],n=s.renderer,l=this.symbols,h=l.labels,p=t.center,c=Math.abs(t.radius),u=o.connectorDistance||0,d=r.align,f=i.options.rtl,g=o.borderWidth,y=o.connectorWidth,b=e.radius||0,v=p-c-g/2+y/2,m=(v%1?1:.5)-(y%2?0:.5),x=n.styledMode,P=f||"left"===d?-u:u;"center"===d&&(P=0,o.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(n.circle(b,p+m,c).attr(x?{}:t.bubbleAttribs).addClass((x?"highcharts-color-"+a.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(o.className||"")).add(this.legendItem.symbol)),l.connectors.push(n.path(n.crispLine([["M",b,v],["L",b+P,v]],o.connectorWidth)).attr(x?{}:t.connectorAttribs).addClass((x?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(o.connectorClassName||"")).add(this.legendItem.symbol));var S=n.text(this.formatLabel(t)).attr(x?{}:t.labelAttribs).css(x?{}:r.style).addClass("highcharts-bubble-legend-labels "+(o.labels.className||"")).add(this.legendItem.symbol),M={x:b+P+o.labels.x,y:v+o.labels.y+.4*S.getBBox().height};S.attr(M),h.push(S),S.placed=!0,S.alignAttr=M},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach(function(i){e=i.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}},t.prototype.formatLabel=function(t){var i=this.options,o=i.labels.formatter,r=i.labels.format,s=this.chart.numberFormatter;return r?e.format(r,t):o?o.call(t):s(t.value,1)},t.prototype.hideOverlappingLabels=function(){var t=this.chart,e=this.options.labels.allowOverlap,i=this.symbols;!e&&i&&(t.hideOverlappingLabels(i.labels),i.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&i.connectors[e].show():i.connectors[e].hide()}))},t.prototype.getRanges=function(){var t,e,i=this.legend.bubbleLegend,o=i.chart.series,r=i.options.ranges,s=Number.MAX_VALUE,c=-Number.MAX_VALUE;return o.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(e=t.zData.filter(l)).length&&(s=p(t.options.zMin,Math.min(s,Math.max(n(e),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),c=p(t.options.zMax,Math.max(c,a(e))))}),t=s===c?[{value:c}]:[{value:s},{value:(s+c)/2},{value:c,autoRanges:!0}],r.length&&r[0].radius&&t.reverse(),t.forEach(function(e,i){r&&r[i]&&(t[i]=h(r[i],e))}),t},t.prototype.predictBubbleSizes=function(){var t,e=this.chart,i=e.legend.options,o=i.floating,r="horizontal"===i.layout,s=r?e.legend.lastLineHeight:0,a=e.plotSizeX,n=e.plotSizeY,l=e.series[this.options.seriesIndex],h=l.getPxExtremes(),p=Math.ceil(h.minPxSize),c=Math.ceil(h.maxPxSize),u=l.options.maxSize;return o||!/%$/.test(u)?t=c:(t=(Math.min(n,a)+s)*(u=parseFloat(u))/100/(u/100+1),(r&&n-t>=a||!r&&a-t>=n)&&(t=c)),[p,Math.ceil(t)]},t.prototype.updateRanges=function(t,e){var i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()},t.prototype.correctSizes=function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())},t}()}),i(e,"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/Defaults.js"],e["Core/Utilities.js"]],function(t,e,i,o){var r=i.setOptions,s=o.addEvent,a=o.objectEach,n=o.wrap,l=[];function h(t,e,i){var o,r,s,n=this.legend,l=p(this)>=0;n&&n.options.enabled&&n.bubbleLegend&&n.options.bubbleLegend.autoRanges&&l?(o=n.bubbleLegend.options,r=n.bubbleLegend.predictBubbleSizes(),n.bubbleLegend.updateRanges(r[0],r[1]),o.placed||(n.group.placed=!1,n.allItems.forEach(function(t){(s=t.legendItem||{}).group&&(s.group.translateY=void 0)})),n.render(),this.getMargins(),this.axes.forEach(function(t){t.visible&&t.render(),o.placed||(t.setScale(),t.updateNames(),a(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),o.placed=!0,this.getMargins(),t.call(this,e,i),n.bubbleLegend.correctSizes(),f(n,c(n))):(t.call(this,e,i),n&&n.options.enabled&&n.bubbleLegend&&(n.render(),f(n,c(n))))}function p(t){for(var e=t.series,i=0;ie.height&&(e.height=r[l].itemHeight);e.step=n}return s}function u(t){var i=this.bubbleLegend,o=this.options,r=o.bubbleLegend,s=p(this.chart);i&&i.ranges&&i.ranges.length&&(r.ranges.length&&(r.autoRanges=!!r.ranges[0].autoRanges),this.destroyItem(i)),s>=0&&o.enabled&&r.enabled&&(r.seriesIndex=s,this.bubbleLegend=new e(r,this),this.bubbleLegend.addToLegend(t.allItems))}function d(t){if(t.defaultPrevented)return!1;var e,i=this.chart,o=this.visible,r=this.chart.legend;r&&r.bubbleLegend&&(this.visible=!o,this.ignoreSeries=o,e=p(i)>=0,r.bubbleLegend.visible!==e&&(r.update({bubbleLegend:{enabled:e}}),r.bubbleLegend.visible=e),this.visible=o)}function f(t,e){var i,o,r,s,a=t.allItems,n=t.options.rtl,l=0;a.forEach(function(t,a){(s=t.legendItem||{}).group&&(i=s.group.translateX||0,o=s.y||0,((r=t.movementX)||n&&t.ranges)&&(r=n?i-t.options.maxSize/2:i+r,s.group.attr({translateX:r})),a>e[l].step&&l++,s.group.attr({translateY:Math.round(o+e[l].height/2)}),s.y=o+e[l].height/2)})}return{compose:function(e,i,a){o.pushUnique(l,e)&&(r({legend:{bubbleLegend:t}}),n(e.prototype,"drawChartBox",h)),o.pushUnique(l,i)&&s(i,"afterGetAllItems",u),o.pushUnique(l,a)&&s(a,"legendItemClick",d)}}}),i(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=e.seriesTypes.scatter.prototype.pointClass,a=i.extend,n=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return r(i,e),i.prototype.haloPath=function(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},i}(s);return a(n.prototype,{ttBelow:!1}),n}),i(e,"Series/Bubble/BubbleSeries.js",[e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,o,r,s){var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=i.parse,h=o.noop,p=r.series,c=r.seriesTypes,u=c.column.prototype,d=c.scatter,f=s.addEvent,g=s.arrayMax,y=s.arrayMin,b=s.clamp,v=s.extend,m=s.isNumber,x=s.merge,P=s.pick,S=[];function M(){var t,e=this,i=this.len,o=(this.chart,this.isXAxis),r=o?"xData":"yData",s=this.min,a=this.max-s,n=0,l=i,h=i/a;this.series.forEach(function(i){if(i.bubblePadding&&i.reserveSpace()){e.allowZoomOutside=!0,t=!0;var p=i[r];if(o&&((i.onPoint||i).getRadii(0,0,i),i.onPoint&&(i.radii=i.onPoint.radii)),a>0){for(var c=p.length;c--;)if(m(p[c])&&e.dataMin<=p[c]&&p[c]<=e.max){var u=i.radii&&i.radii[c]||0;n=Math.min((p[c]-s)*h-u,n),l=Math.max((p[c]-s)*h+u,l)}}}}),t&&a>0&&!this.logarithmic&&(l-=i,h*=(i+Math.max(0,n)-Math.min(l,i))/i,[["min","userMin",n],["max","userMax",l]].forEach(function(t){void 0===P(e.options[t[0]],e[t[1]])&&(e[t[0]]+=t[2]/h)}))}var w=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.maxPxSize=void 0,t.minPxSize=void 0,t.options=void 0,t.points=void 0,t.radii=void 0,t.yData=void 0,t.zData=void 0,t}return n(i,e),i.compose=function(e,i,o,r){t.compose(i,o,r),s.pushUnique(S,e)&&(e.prototype.beforePadding=M)},i.prototype.animate=function(t){!t&&this.points.length0&&(p=(r-t)/h)}return n&&p>=0&&(p=Math.sqrt(p)),Math.ceil(i+p*(o-i))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(t,e){var i=this.options.marker.fillOpacity,o=p.prototype.pointAttribs.call(this,t,e);return 1!==i&&(o.fill=l(o.fill).setOpacity(i).get("rgba")),o},i.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var t=this.data,e=this.options,i=this.radii,o=this.getPxExtremes().minPxSize,r=t.length;r--;){var s=t[r],a=i?i[r]:0;"z"===this.zoneAxis&&(s.negative=(s.z||0)<(e.zThreshold||0)),m(a)&&a>=o/2?(s.marker=v(s.marker,{radius:a,width:2*a,height:2*a}),s.dlBox={x:s.plotX-a,y:s.plotY-a,width:2*a,height:2*a}):(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)}},i.prototype.getPxExtremes=function(){var t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){var i;return"string"==typeof e&&(i=/%$/.test(e),e=parseInt(e,10)),i?t*e/100:e},i=e(P(this.options.minSize,8)),o=Math.max(e(P(this.options.maxSize,"20%")),i);return{minPxSize:i,maxPxSize:o}},i.prototype.getZExtremes=function(){var t=this.options,e=(this.zData||[]).filter(m);if(e.length){var i=P(t.zMin,b(y(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),o=P(t.zMax,g(e));if(m(i)&&m(o))return{zMin:i,zMax:o}}},i.defaultOptions=x(d.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return m(e)?t(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"}),i}(d);return v(w.prototype,{alignDataLabel:u.alignDataLabel,applyZones:h,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(w,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(w,"remove",function(t){delete t.target.chart.bubbleZExtremes}),r.registerSeriesType("bubble",w),w}),i(e,"Series/ColumnRange/ColumnRangePoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=t.seriesTypes,s=r.column.prototype.pointClass.prototype,a=r.arearange.prototype.pointClass,n=e.extend,l=e.isNumber,h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return o(e,t),e.prototype.isValid=function(){return l(this.low)},e}(a);return n(h.prototype,{setState:s.setState}),h}),i(e,"Series/ColumnRange/ColumnRangeSeries.js",[e["Series/ColumnRange/ColumnRangePoint.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,o){var r,s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=e.noop,n=i.seriesTypes,l=n.arearange,h=n.column,p=n.column.prototype,c=o.addEvent,u=o.clamp,d=o.extend,f=o.isNumber,g=o.merge,y=o.pick,b={borderRadius:{where:"all"},pointRange:null,marker:null,states:{hover:{halo:!1}}},v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setOptions=function(){return g(!0,arguments[0],{stacking:void 0}),l.prototype.setOptions.apply(this,arguments)},e.prototype.translate=function(){return p.translate.apply(this)},e.prototype.pointAttribs=function(){return p.pointAttribs.apply(this,arguments)},e.prototype.translate3dPoints=function(){return p.translate3dPoints.apply(this,arguments)},e.prototype.translate3dShapes=function(){return p.translate3dShapes.apply(this,arguments)},e.prototype.afterColumnTranslate=function(){var t,e,i,o,r=this,s=this.yAxis,a=this.xAxis,n=a.startAngleRad,l=this.chart,h=this.xAxis.isRadial,p=Math.max(l.chartWidth,l.chartHeight)+999;this.points.forEach(function(c){var d=c.shapeArgs||{},b=r.options.minPointLength,v=c.plotY,m=s.translate(c.high,0,1,0,1);if(f(m)&&f(v)){if(c.plotHigh=u(m,-p,p),c.plotLow=u(v,-p,p),o=c.plotHigh,Math.abs(t=y(c.rectPlotY,c.plotY)-c.plotHigh)● {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),i(e,"Series/ErrorBar/ErrorBarSeries.js",[e["Series/BoxPlot/BoxPlotSeries.js"],e["Series/Column/ColumnSeries.js"],e["Series/ErrorBar/ErrorBarSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,o,r){var s,a=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=o.seriesTypes.arearange,l=r.addEvent,h=r.merge,p=r.extend,c=function(o){function r(){var t=null!==o&&o.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return a(r,o),r.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||e.prototype.getColumnMetrics.call(this)},r.prototype.drawDataLabels=function(){var t=this.pointValKey;if(n){n.prototype.drawDataLabels.call(this);for(var e=0,i=this.data;e5||Math.abs(s)>5)&&(n=t.fixedPosition.plotX-r,l=t.fixedPosition.plotY-s,i.isInsidePlot(n,l)&&(t.plotX=n,t.plotY=l,t.hasDragged=!0,this.redrawHalo(t),a.forEach(function(t){t.restartSimulation()})))}},onMouseUp:function(t,e){t.fixedPosition&&(t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}}}),i(e,"Series/GraphLayoutComposition.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Utilities.js"]],function(t,e){var i=t.setAnimation,o=e.addEvent,r=[];function s(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation()}),this.redraw())}function a(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation(!1)}),this.redraw())}function n(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(t){t.stop()})}function l(){var t,e=!1,o=function(i){i.maxIterations--&&isFinite(i.temperature)&&!i.isStable()&&!i.enableSimulation&&(i.beforeStep&&i.beforeStep(),i.step(),t=!1,e=!0)};if(this.graphLayoutsLookup){for(i(!1,this),this.graphLayoutsLookup.forEach(function(t){return t.start()});!t;)t=!0,this.graphLayoutsLookup.forEach(o);e&&this.series.forEach(function(t){t&&t.layout&&t.render()})}}return{compose:function(t){e.pushUnique(r,t)&&(o(t,"afterPrint",s),o(t,"beforePrint",a),o(t,"predraw",n),o(t,"render",l))},integrations:{},layouts:{}}}),i(e,"Series/PackedBubble/PackedBubblePoint.js",[e["Core/Chart/Chart.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"]],function(t,e,i){var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});return function(i){function o(){var t=null!==i&&i.apply(this,arguments)||this;return t.degree=NaN,t.mass=NaN,t.radius=NaN,t.options=void 0,t.series=void 0,t.value=null,t}return r(o,i),o.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),e.prototype.destroy.apply(this,arguments)},o.prototype.firePointEvent=function(){var t=this.series.options;if(this.isParentNode&&t.parentNode){var i=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,e.prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=i}else e.prototype.firePointEvent.apply(this,arguments)},o.prototype.select=function(){var i=this.series.chart;this.isParentNode?(i.getSelectedPoints=i.getSelectedParentNodes,e.prototype.select.apply(this,arguments),i.getSelectedPoints=t.prototype.getSelectedPoints):e.prototype.select.apply(this,arguments)},o}(i.seriesTypes.bubble.prototype.pointClass)}),i(e,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[e["Core/Utilities.js"]],function(t){var e=t.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 t=this.series.chart.numberFormatter,i=this.point.value;return e(i)?t(i,-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}}}),i(e,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(t,e,i){var o=t.getMass(),r=-i.x*e*this.diffTemperature,s=-i.y*e*this.diffTemperature;t.fromNode.fixedPosition||(t.fromNode.plotX-=r*o.fromNode/t.fromNode.degree,t.fromNode.plotY-=s*o.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=r*o.toNode/t.toNode.degree,t.toNode.plotY+=s*o.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,i=this.barycenter.yFactor;e=(e-(this.box.left+this.box.width)/2)*t,i=(i-(this.box.top+this.box.height)/2)*t,this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=i/t.mass/t.degree)})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)},integrate:function(t,e){var i=-t.options.friction,o=t.options.maxSpeed,r=e.prevX,s=e.prevY,a=(e.plotX+e.dispX-r)*i,n=(e.plotY+e.dispY-s)*i,l=Math.abs,h=l(a)/(a||1),p=l(n)/(n||1);a=h*Math.min(o,Math.abs(a)),n=p*Math.min(o,Math.abs(n)),e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=a,e.plotY+=n,e.temperature=t.vectorLength({x:a,y:n})},repulsive:function(t,e,i){var o=e*this.diffTemperature/t.mass/t.degree;t.fixedPosition||(t.plotX+=i.x*o,t.plotY+=i.y*o)},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t?1:0)}}}),i(e,"Series/PackedBubble/PackedBubbleIntegration.js",[e["Core/Globals.js"],e["Series/Networkgraph/VerletIntegration.js"]],function(t,e){return{barycenter:function(){for(var t,e,i=this.options.gravitationalConstant,o=this.box,r=this.nodes,s=0;sMath.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0},e.prototype.getSystemTemperature=function(){for(var t=0,e=0,i=this.nodes;eMath.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&t<1e-5||this.temperature<=0},c.prototype.setCircularPositions=function(){for(var t,e,i=this.box,o=this.nodes,r=2*Math.PI/(o.length+1),s=this.options.initialPositionRadius,a=0,l=0;l-2*t.marker.radius&&(t.plotX-=.01*i.x,t.plotY-=.01*i.y)),r.prototype.applyLimitBox.call(this,t,e)},c}(i);return t.layouts.packedbubble=c,c}),i(e,"Series/SimulationSeriesUtilities.js",[e["Core/Utilities.js"],e["Core/Animation/AnimationUtilities.js"]],function(t,e){var i=t.syncTimeout,o=e.animObject;return{initDataLabels:function(){var t=this.options.dataLabels;if(!this.dataLabelsGroup){var e=this.initDataLabelsGroup();return!this.chart.styledMode&&(null==t?void 0:t.style)&&e.css(t.style),e.attr({opacity:0}),this.visible&&e.show(),e}return this.dataLabelsGroup.attr({opacity:1}),this.dataLabelsGroup},initDataLabelsDefer:function(){var t,e=this,r=this.options.dataLabels;(null==r?void 0:r.defer)&&(null===(t=this.options.layoutAlgorithm)||void 0===t?void 0:t.enableSimulation)?i(function(){e.deferDataLabels=!1},r?o(r.animation).defer:0):this.deferDataLabels=!1}}}),i(e,"Series/PackedBubble/PackedBubbleSeries.js",[e["Core/Color/Color.js"],e["Series/DragNodesComposition.js"],e["Series/GraphLayoutComposition.js"],e["Core/Globals.js"],e["Series/PackedBubble/PackedBubblePoint.js"],e["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],e["Series/PackedBubble/PackedBubbleLayout.js"],e["Core/Series/SeriesRegistry.js"],e["Series/SimulationSeriesUtilities.js"],e["Core/Utilities.js"],e["Core/Animation/AnimationUtilities.js"]],function(t,e,i,o,r,s,a,n,l,h,p){var c,u=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=t.parse,f=o.noop,g=n.series.prototype,y=n.seriesTypes.bubble,b=l.initDataLabels,v=l.initDataLabelsDefer,m=h.addEvent,x=h.clamp,P=h.defined,S=h.extend,M=h.fireEvent,w=h.isArray,k=h.isNumber,C=h.merge,L=h.pick;h.syncTimeout,p.animObject;var A=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.layout=void 0,e.options=void 0,e.parentNodeMass=0,e.points=void 0,e.xData=void 0,e.deferDataLabels=!0,e}return u(o,t),o.compose=function(t,i,o,r){y.compose(t,i,o,r),e.compose(i),a.compose(i)},o.prototype.accumulateAllPoints=function(){for(var t,e=this.chart,i=[],o=0,r=e.series;or&&(r=t),t1)for(s.push([[0,0-p[1][2]-p[0][2],p[1][2],p[1][3],p[1][4]]]),i=2;i1&&s[a-1][l+1]&&o(e,s[a-1][l+1])?(l++,s[a].push(r(s[a][n],s[a-1][l],p[i])),n++):(n++,s[a].push(e));this.chart.stages=s,this.chart.rawPositions=[].concat.apply([],s),this.resizeRadius(),h=this.chart.rawPositions}return h},o.prototype.pointAttribs=function(t,e){var i=this.options,o=t&&t.isParentNode,r=i.marker;o&&i.layoutAlgorithm&&i.layoutAlgorithm.parentNodeOptions&&(r=i.layoutAlgorithm.parentNodeOptions.marker);var s=r.fillOpacity,a=g.pointAttribs.call(this,t,e);return 1!==s&&(a["fill-opacity"]=s),a},o.prototype.positionBubble=function(t,e,i){var o=Math.pow,r=(0,Math.sqrt)(o(t[0]-e[0],2)+o(t[1]-e[1],2)),s=(0,Math.acos)((o(r,2)+o(i[2]+e[2],2)-o(i[2]+t[2],2))/(2*(i[2]+e[2])*r)),a=(0,Math.asin)((0,Math.abs)(t[0]-e[0])/r),n=(t[1]-e[1]<0?0:Math.PI)+s+a*((t[0]-e[0])*(t[1]-e[1])<0?1:-1);return[e[0]+(e[2]+i[2])*Math.sin(n),e[1]-(e[2]+i[2])*Math.cos(n),i[2],i[3],i[4]]},o.prototype.render=function(){var t=[];g.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(function(e){w(e.dataLabels)&&e.dataLabels.forEach(function(e){t.push(e)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(t))},o.prototype.resizeRadius=function(){var t,e,i,o,r,s=this.chart,a=s.rawPositions,n=Math.min,l=Math.max,h=s.plotLeft,p=s.plotTop,c=s.plotHeight,u=s.plotWidth;t=i=Number.POSITIVE_INFINITY,e=o=Number.NEGATIVE_INFINITY;for(var d=0;d1e-10){for(var v=0;v0&&t.splice(e,0,["Z"]);return this.areaPath=t,t},i.prototype.drawGraph=function(){this.options.fillColor=this.color,l.prototype.drawGraph.call(this)},i.defaultOptions=u(p.defaultOptions,e),i}(p);return c(d.prototype,{type:"polygon",drawTracker:h.prototype.drawTracker,setStackedPoints:a}),i.registerSeriesType("polygon",d),d}),i(e,"Core/Axis/RadialAxis.js",[e["Core/Axis/AxisDefaults.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i,o){var r,s=e.defaultOptions,a=i.noop,n=o.addEvent,l=o.correctFloat,h=o.defined,p=o.extend,c=o.fireEvent,u=o.merge,d=o.pick,f=o.relativeLength,g=o.wrap;return function(e){var i=[],r={gridLineWidth:1,labels:{align:void 0,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},y={labels:{align:"center",distance:-25,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},b={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};function v(){this.autoConnect=this.isCircular&&void 0===d(this.userMax,this.options.max)&&l(this.endAngleRad-this.startAngleRad)===l(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function m(){var t=this;return function(){if(t.isRadial&&t.tickPositions&&t.options.labels&&!0!==t.options.labels.allowOverlap)return t.tickPositions.map(function(e){return t.ticks[e]&&t.ticks[e].label}).filter(function(t){return!!t})}}function x(){return a}function P(t,e,i){var o,r,s,a=this.pane.center,n=t.value;return this.isCircular?(h(n)?t.point&&(t.point.shapeArgs||{}).start&&(n=this.chart.inverted?this.translate(t.point.rectPlotY,!0):t.point.x):(r=t.chartX||0,s=t.chartY||0,n=this.translate(Math.atan2(s-i,r-e)-this.startAngleRad,!0)),r=(o=this.getPosition(n)).x,s=o.y):(h(n)||(r=t.chartX,s=t.chartY),h(r)&&h(s)&&(i=a[1]+this.chart.plotTop,n=this.translate(Math.min(Math.sqrt(Math.pow(r-e,2)+Math.pow(s-i,2)),a[2]/2)-a[3]/2,!0))),[n,r||0,s||0]}function S(t,e,i){var o,r,s=this.pane.center,a=this.chart,n=this.left||0,l=this.top||0,h=d(e,s[2]/2-this.offset);return void 0===i&&(i=this.horiz?0:this.center&&-this.center[3]/2),i&&(h+=i),this.isCircular||void 0!==e?((r=this.chart.renderer.symbols.arc(n+s[0],l+s[1],h,h,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[n+s[0]],r.yBounds=[l+s[1]-h]):(o=this.postTranslate(this.angleRad,h),r=[["M",this.center[0]+a.plotLeft,this.center[1]+a.plotTop],["L",o.x,o.y]]),r}function M(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function w(t,e,i){var o,r,s,a,n,l,h=this.chart,p=function(t){if("string"==typeof t){var e=parseInt(t,10);return v.test(t)&&(e=e*f/100),e}return t},c=this.center,u=this.startAngleRad,f=c[2]/2,g=Math.min(this.offset,0),y=this.left||0,b=this.top||0,v=/%$/,m=this.isCircular,x=d(p(i.outerRadius),f),P=p(i.innerRadius),S=d(p(i.thickness),10);if("polygon"===this.options.gridLineInterpolation)l=this.getPlotLinePath({value:t}).concat(this.getPlotLinePath({value:e,reverse:!0}));else{t=Math.max(t,this.min),e=Math.min(e,this.max);var M=this.translate(t),w=this.translate(e);m||(x=M||0,P=w||0),"circle"!==i.shape&&m?(o=u+(M||0),r=u+(w||0)):(o=-Math.PI/2,r=1.5*Math.PI,n=!0),x-=g,S-=g,l=h.renderer.symbols.arc(y+c[0],b+c[1],x,x,{start:Math.min(o,r),end:Math.max(o,r),innerR:d(P,x-S),open:n}),m&&(s=(r+o)/2,a=y+c[0]+c[2]/2*Math.cos(s),l.xBounds=s>-Math.PI/2&&s-Math.PI&&s<0||s>Math.PI?-10:10)}return l}function k(t){var e,i,o,r,s,a,n,l,h,p=this,c=this.pane.center,u=this.chart,d=u.inverted,g=t.reverse,y=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},b=y.innerRadius||"0%",v=y.outerRadius||"100%",m=c[0]+u.plotLeft,x=c[1]+u.plotTop,P=this.height,S=t.isCrosshair,M=c[3]/2,w=t.value,k=this.getPosition(w),C=k.x,L=k.y;if(S&&(w=(l=this.getCrosshairPosition(t,m,x))[0],C=l[1],L=l[2]),this.isCircular)i=Math.sqrt(Math.pow(C-m,2)+Math.pow(L-x,2)),o="string"==typeof b?f(b,1):b/i,r="string"==typeof v?f(v,1):v/i,c&&M&&(o<(e=M/i)&&(o=e),rP)&&(w=0),"circle"===this.options.gridLineInterpolation)h=this.getLinePath(0,w,M);else if(h=[],u[d?"yAxis":"xAxis"].forEach(function(t){t.pane===p.pane&&(s=t)}),s){n=s.tickPositions,s.autoConnect&&(n=n.concat([n[0]])),g&&(n=n.slice().reverse()),w&&(w+=M);for(var A=0;AMath.PI&&(l-=s),h>Math.PI&&(h-=s),this.normalizedStartAngleRad=l,this.normalizedEndAngleRad=h}}function T(t){this.isRadial&&(t.align=void 0,t.preventDefault())}function j(){if(this.chart&&this.chart.labelCollectors){var t=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;t>=0&&this.chart.labelCollectors.splice(t,1)}}function X(e){var i,o=this.chart,s=o.inverted,n=o.angular,l=o.polar,h=this.isXAxis,p=this.coll,c=e.userOptions.pane||0,d=this.pane=o.pane&&o.pane[c];if("colorAxis"===p){this.isRadial=!1;return}n?(n&&h?(this.isHidden=!0,this.createLabelCollector=x,this.getOffset=a,this.redraw=I,this.render=I,this.setScale=a,this.setCategories=a,this.setTitle=a):A(this),(i=!h)&&(this.defaultPolarOptions=y)):l&&(A(this),i=this.horiz,this.defaultPolarOptions=i?r:u("xAxis"===p?t.defaultXAxisOptions:t.defaultYAxisOptions,b),s&&"yAxis"===p&&(this.defaultPolarOptions.stackLabels=t.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),n||l?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&o.labelCollectors.push(this.labelCollector)):this.isRadial=!1,d&&i&&(d.axis=this),this.isCircular=i}function O(){this.isRadial&&this.beforeSetTickPositions()}function _(t){var e=this.label;if(e){var i,o=this.axis,r=e.getBBox(),s=o.options.labels,a=(o.translate(this.pos)+o.startAngleRad+Math.PI/2)/Math.PI*180%360,n=Math.round(a),l=h(s.y)?0:-(.3*r.height),p=s.y,c=20,u=s.align,g="end",y=n<0?n+360:n,b=y,v=0,m=0;o.isRadial&&(i=o.getPosition(this.pos,o.center[2]/2+f(d(s.distance,-25),o.center[2]/2,-o.center[2]/2)),"auto"===s.rotation?e.attr({rotation:a}):h(p)||(p=o.chart.renderer.fontMetrics(e).b-r.height/2),h(u)||(o.isCircular?(r.width>o.len*o.tickInterval/(o.max-o.min)&&(c=0),u=a>c&&a<180-c?"left":a>180+c&&a<360-c?"right":"center"):u="center",e.attr({align:u})),"auto"===u&&2===o.tickPositions.length&&o.isCircular&&(y>90&&y<180?y=180-y:y>270&&y<=360&&(y=540-y),b>180&&b<=360&&(b=360-b),(o.pane.options.startAngle===n||o.pane.options.startAngle===n+360||o.pane.options.startAngle===n-360)&&(g="start"),u=n>=-90&&n<=90||n>=-360&&n<=-270||n>=270&&n<=360?"start"===g?"right":"left":"start"===g?"left":"right",b>70&&b<110&&(u="center"),y<15||y>=180&&y<195?v=.3*r.height:y>=15&&y<=35?v="start"===g?0:.75*r.height:y>=195&&y<=215?v="start"===g?.75*r.height:0:y>35&&y<=90?v="start"===g?-(.25*r.height):r.height:y>215&&y<=270&&(v="start"===g?r.height:-(.25*r.height)),b<15?m="start"===g?-(.15*r.height):.15*r.height:b>165&&b<=180&&(m="start"===g?.15*r.height:-(.15*r.height)),e.attr({align:u}),e.translate(m,v+l)),t.pos.x=i.x+(s.x||0),t.pos.y=i.y+(p||0))}}function Y(t){this.axis.getPosition&&p(t.pos,this.axis.getPosition(this.pos))}function R(t,e){var i=this.chart,o=this.center;return t=this.startAngleRad+t,{x:i.plotLeft+o[0]+Math.cos(t)*e,y:i.plotTop+o[1]+Math.sin(t)*e}}function I(){this.isDirty=!1}function E(){var t,e;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),t=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(e=this.postTranslate(this.angleRad,t[3]/2),t[0]=e.x-this.chart.plotLeft,t[1]=e.y-this.chart.plotTop),this.len=this.width=this.height=(t[2]-t[3])*d(this.sector,1)/2)}function D(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function B(t){var e=this.options=u(this.constructor.defaultOptions,this.defaultPolarOptions,s[this.coll],t);e.plotBands||(e.plotBands=[]),c(this,"afterSetOptions")}function z(t,e,i,o,r,s,a){var n,l=this.axis;return l.isRadial?["M",e,i,"L",(n=l.getPosition(this.pos,l.center[2]/2+o)).x,n.y]:t.call(this,e,i,o,r,s,a)}e.compose=function(t,e){return o.pushUnique(i,t)&&(n(t,"afterInit",N),n(t,"autoLabelAlign",T),n(t,"destroy",j),n(t,"init",X),n(t,"initialAxisTranslation",O)),o.pushUnique(i,e)&&(n(e,"afterGetLabelPosition",_),n(e,"afterGetPosition",Y),g(e.prototype,"getMarkPath",z)),t}}(r||(r={})),r}),i(e,"Series/PolarComposition.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Extensions/Pane.js"],e["Core/Axis/RadialAxis.js"],e["Core/Utilities.js"]],function(t,e,i,o,r,s){var a=this&&this.__spreadArray||function(t,e,i){if(i||2==arguments.length)for(var o,r=0,s=e.length;r0?p-h:Math.abs(h)+Math.abs(p),g=Math.atan2(r-e.plotTop-i[1],o-e.plotLeft-i[0])-h,y=Math.atan2(s-e.plotTop-i[1],n-e.plotLeft-i[0])-h;u.r=i[2]/2,u.innerR=i[3]/2,g<=0&&(g+=l),y<=0&&(y+=l),yp+(l-f)/2&&(y=g,g=h<=0?h:0);var b=u.start=Math.max(g+h,h),v=u.end=Math.min(y+h,p);if("polygon"===c.options.gridLineInterpolation){var m=e.hoverPane.axis,x=(m.tickInterval,b-m.startAngleRad+m.pos),P=v-b,S=c.getPlotLinePath({value:c.max}),M=m.toValue(x),w=m.toValue(x+P);if(Mi[2]/2&&(X=i[2]/2),jt.max?(r[s].isNull=!0,r[s].plotY=NaN):r[s].isNull=r[s].isValid&&!r[s].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(l(this,"afterRender",function(){var t,i,r,s,a,n,l,h,p;o.polar&&!1!==this.options.clip&&((t=this.yAxis.pane.center,this.clipCircle)?this.clipCircle.animate({x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2}):this.clipCircle=(i=o.renderer,r=t[0],s=t[1],a=t[2]/2,n=t[3]/2,l=y(),h=i.createElement("clipPath").attr({id:l}).add(i.defs),(p=n?i.arc(r,s,a,n,0,2*Math.PI).add(h):i.circle(r,s,a).add(h)).id=l,p.clipPath=h,p),this.group.clip(this.clipCircle),this.setClip=e.noop)})))}}function C(t){var e=this.chart,i=this.xAxis,o=i.pane&&i.pane.center,r=t.chartX-(o&&o[0]||0)-e.plotLeft,s=t.chartY-(o&&o[1]||0)-e.plotTop;return this.searchKDTree({clientX:180+Math.atan2(r,s)*(-180/Math.PI)})}function L(t,e,i,o){var r=o.tickInterval,s=o.tickPositions,n=p(s,function(t){return t>=i}),l=p(a([],s,!0).reverse(),function(t){return t<=e});return h(n)||(n=s[s.length-1]),h(l)||(l=s[0],n+=r,t[0][0]="L",t.unshift(t[t.length-3])),(t=t.slice(s.indexOf(l),s.indexOf(n)+1))[0][0]="M",t}function A(t,e){return p(this.pane||[],function(t){return t.options.id===e})||t.call(this,e)}function N(t,e,o,r,s,a){var n,l,h,p,c=this.chart,f=d(r.inside,!!this.options.stacking);c.polar?((l=e.rectPlotX/Math.PI*180,c.inverted)?(this.forceDL=c.isInsidePlot(e.plotX,e.plotY),f&&e.shapeArgs?(h=e.shapeArgs,s=u(s,{x:(p=this.yAxis.postTranslate(((h.start||0)+(h.end||0))/2-this.xAxis.startAngleRad,e.barX+e.pointWidth/2)).x-c.plotLeft,y:p.y-c.plotTop})):e.tooltipPos&&(s=u(s,{x:e.tooltipPos[0],y:e.tooltipPos[1]})),r.align=d(r.align,"center"),r.verticalAlign=d(r.verticalAlign,"middle")):(null===(n=r).align&&(n.align=l>20&&l<160?"left":l>200&&l<340?"right":"center"),null===n.verticalAlign&&(n.verticalAlign=l<45||l>315?"bottom":l>135&&l<225?"top":"middle"),r=n),i.prototype.alignDataLabel.call(this,e,o,r,s,a),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end?o.hide():o.show()):t.call(this,e,o,r,s,a)}function T(){var t,e,i,o,r,a,n,l,p,u,d,g,y,b=this.options,v=b.stacking,m=this.chart,x=this.xAxis,P=this.yAxis,S=P.reversed,M=P.center,w=x.startAngleRad,k=x.endAngleRad-w,C=b.threshold,L=0,A=0,N=0;if(x.isRadial)for(i=(t=this.points).length,o=P.translate(P.min),r=P.translate(P.max),C=b.threshold||0,m.inverted&&c(C)&&h(L=P.translate(C))&&(L<0?L=0:L>k&&(L=k),this.translatedThreshold=L+w);i--;){if(d=(e=t[i]).barX,n=e.x,l=e.y,e.shapeType="arc",m.inverted){e.plotY=P.translate(l),v&&P.stacking?(u=P.stacking.stacks[(l<0?"-":"")+this.stackKey],this.visible&&u&&u[n]&&!e.isNull&&(p=u[n].points[this.getStackIndicator(void 0,n,this.index).key],A=P.translate(p[0]),N=P.translate(p[1]),h(A)&&(A=s.clamp(A,0,k)))):(A=L,N=e.plotY),A>N&&(N=[A,A=N][0]),S?N>o?N=o:Ao||Nr?N=r:(Nr)&&(A=N=0),P.min>P.max&&(A=N=S?k:0),A+=w,N+=w,M&&(e.barX=d+=M[3]/2),g=Math.max(d,0),y=Math.max(d+e.pointWidth,0);var T=b.borderRadius,j=f(("object"==typeof T?T.radius:T)||0,y-g);e.shapeArgs={x:M[0],y:M[1],r:y,innerR:g,start:A,end:N,borderRadius:j},e.opacity=A===N?0:void 0,e.plotY=(h(this.translatedThreshold)&&(AM[1])}}function j(t,e){var i,o,r=this;if(this.chart.polar){e=e||this.points;for(var s=0;s=0&&i<=e.length-1?i:i<0?e.length-1+i:0)-1<0?e.length-(1+c):s-1,d=s+1>e.length-1?c:s+1,f=e[u],g=e[d],y=f.plotX,b=f.plotY,v=g.plotX,m=g.plotY,x=e[s].plotX,P=e[s].plotY;a=(1.5*x+y)/2.5,n=(1.5*P+b)/2.5,l=(1.5*x+v)/2.5,h=(1.5*P+m)/2.5;var S=Math.sqrt(Math.pow(a-x,2)+Math.pow(n-P,2)),M=Math.sqrt(Math.pow(l-x,2)+Math.pow(h-P,2)),w=Math.atan2(n-P,a-x);p=Math.PI/2+(w+Math.atan2(h-P,l-x))/2,Math.abs(w-p)>Math.PI/2&&(p-=Math.PI),a=x+Math.cos(p)*S,n=P+Math.sin(p)*S;var k={rightContX:l=x+Math.cos(Math.PI+p)*M,rightContY:h=P+Math.sin(Math.PI+p)*M,leftContX:a,leftContY:n,plotX:x,plotY:P};return o&&(k.prevPointCont=t(e,u,!1,r)),k}(e,o,!0,this.connectEnds)).prevPointCont&&s.prevPointCont.rightContX,n=s.prevPointCont&&s.prevPointCont.rightContY;r=["C",c(a)?a:s.plotX,c(n)?n:s.plotY,c(s.leftContX)?s.leftContX:s.plotX,c(s.leftContY)?s.leftContY:s.plotY,s.plotX,s.plotY]}else r=["M",i.plotX,i.plotY]}else r=t.call(this,e,i,o);return r}var R=function(){function t(t){this.series=t}return t.compose=function(t,e,i,o,a,n,h,p,c){if(r.compose(t,a),s.pushUnique(v,e)&&(l(e,"afterDrawChartBox",m),l(e,"getAxes",P),l(e,"init",x),b(e.prototype,"get",A)),s.pushUnique(v,i)){var u=i.prototype;b(u,"getCoordinates",X),b(u,"pinch",O),l(i,"getSelectionMarkerAttrs",M),l(i,"getSelectionBox",S)}if(s.pushUnique(v,o)&&(l(o,"afterInit",w),l(o,"afterTranslate",k,{order:2}),l(o,"afterColumnTranslate",T,{order:4}),b(o.prototype,"animate",_)),h&&s.pushUnique(v,h)){var d=h.prototype;b(d,"alignDataLabel",N),b(d,"animate",_)}if(p&&s.pushUnique(v,p)&&b(p.prototype,"getGraphPath",j),c&&s.pushUnique(v,c)){var f=c.prototype;b(f,"getPointSpline",Y),n&&s.pushUnique(v,n)&&(n.prototype.getPointSpline=f.getPointSpline)}},t.prototype.arc=function(t,e,i,o){var r=this.series,s=r.xAxis.center,a=r.yAxis.len,n=s[3]/2,l=a-e+n,h=a-d(t,a)+n;return r.yAxis.reversed&&(l<0&&(l=n),h<0&&(h=n)),{x:s[0],y:s[1],r:l,innerR:h,start:i,end:o}},t.prototype.toXY=function(t){var e,i=this.series,o=i.chart,r=i.xAxis,s=i.yAxis,a=t.plotX,n=o.inverted,l=t.y,h=t.plotY,p=n?a:s.len-h;if(n&&i&&!i.isRadialBar&&(t.plotY=h=c(l)?s.translate(l):0),t.rectPlotX=a,t.rectPlotY=h,s.center&&(p+=s.center[3]/2),c(h)){var u=n?s.postTranslate(h,p):r.postTranslate(a,p);t.plotX=t.polarPlotX=u.x-o.plotLeft,t.plotY=t.polarPlotY=u.y-o.plotTop}i.kdByAngle?((e=(a/Math.PI*180+r.pane.options.startAngle)%360)<0&&(e+=360),t.clientX=e):t.clientX=t.plotX},t}();return R}),i(e,"Core/Axis/WaterfallAxis.js",[e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],function(t,e){var i,o=e.addEvent,r=e.objectEach,s=e.pushUnique;return function(e){var i=[];function a(){var t=this.waterfall.stacks;t&&(t.changed=!1,delete t.alreadyChanged)}function n(){var t=this.options.stackLabels;t&&t.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function l(){this.waterfall||(this.waterfall=new p(this))}function h(){for(var t=this.axes,e=this.series,i=0;i0?i:void 0);var o=l.prototype.pointAttribs.call(this,t,e);return delete o.dashstyle,o},e.prototype.getGraphPath=function(){return[["M",0,0]]},e.prototype.getCrispPath=function(){for(var t=this.data.filter(function(t){return g(t.y)}),e=this.yAxis,i=t.length,o=Math.round(this.graph.strokeWidth())%2/2,r=Math.round(this.borderWidth)%2/2,s=this.xAxis.reversed,a=this.yAxis.reversed,n=this.options.stacking,l=[],h=1;h0?-d.height:0;if(f&&d&&p){var b=f[h-1],v=void 0;if(n){var m=b.connectorThreshold;v=Math.round(e.translate(m,!1,!0,!1,!0)+(a?y:0))-o}else v=d.y+c.minPointLengthOffset+r-o;l.push(["M",(d.x||0)+(s?0:d.width||0),v],["L",(p.x||0)+(s&&p.width||0),v])}if(d&&l.length&&(!n&&u<0&&!a||u>0&&a)){var x=l[l.length-2];x&&"number"==typeof x[2]&&(x[2]+=d.height||0);var P=l[l.length-1];P&&"number"==typeof P[2]&&(P[2]+=d.height||0)}}}return l},e.prototype.drawGraph=function(){h.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},e.prototype.setStackedPoints=function(t){var e,i,o,r,s,a,n,l,h,p,c=this.options,u=null===(e=t.waterfall)||void 0===e?void 0:e.stacks,d=c.threshold||0,f=this.stackKey,g=this.xData,y=g.length,b=d,v=b,m=0,x=0,P=0,S=function(t,e,r,s){if(i){if(o)for(;rh.indexOf(f)&&(p=!0),u[f]||(u[f]={});var M=u[f];if(M)for(var w=0;w=0?i.posTotal+=n:i.negTotal+=n,a=c.data[w],r=i.absolutePos=i.posTotal,s=i.absoluteNeg=i.negTotal,i.stackTotal=r+s,o=i.stackState.length,a&&a.isIntermediateSum?(S(P,x,0,P),P=x,x=d,b^=v,v^=b,b^=v):a&&a.isSum?(S(d,m,o,0),b=d):(S(b,n,0,m),a&&(m+=n,x+=n)),i.stateIndex++,i.threshold=b,b+=i.stackTotal;u.changed=!1,u.alreadyChanged||(u.alreadyChanged=[]),u.alreadyChanged.push(f)}},e.prototype.getExtremes=function(){var t,e,i,o=this.options.stacking;return o?(t=this.yAxis.waterfall.stacks,e=this.stackedYNeg=[],i=this.stackedYPos=[],"overlap"===o?b(t[this.stackKey],function(t){e.push(u(t.stackState)),i.push(c(t.stackState))}):b(t[this.stackKey],function(t){e.push(t.negTotal+t.threshold),i.push(t.posTotal+t.threshold)}),{dataMin:u(e),dataMax:c(i)}):{dataMin:this.dataMin,dataMax:this.dataMax}},e.defaultOptions=y(l.defaultOptions,r),e.compose=i.compose,e}(l);return f(x.prototype,{getZonesGraphs:h.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:o}),p(x,"afterColumnTranslate",function(){for(var t,e,i,o,r=this.options,s=this.points,a=this.yAxis,n=v(r.minPointLength,5),l=n/2,h=r.threshold||0,p=r.stacking,c=a.waterfall.stacks[this.stackKey],u=h,d=h,b=0;b=0?e:e-w,m(k,"absolutePos")&&delete k.absolutePos,m(k,"absoluteNeg")&&delete k.absoluteNeg):(w>=0?(e=k.threshold+k.posTotal,k.posTotal-=w,t=e):(e=k.threshold+k.negTotal,k.negTotal-=w,t=e-w),!k.posTotal&&g(k.absolutePos)&&m(k,"absolutePos")&&(k.posTotal=k.absolutePos,delete k.absolutePos),!k.negTotal&&g(k.absoluteNeg)&&m(k,"absoluteNeg")&&(k.negTotal=k.absoluteNeg,delete k.absoluteNeg)),x.isSum||(k.connectorThreshold=k.threshold+k.stackTotal),a.reversed?(i=w>=0?t-w:t+w,o=t):(i=t,o=t-w),x.below=i<=h,S.y=a.translate(i,!1,!0,!1,!0),S.height=Math.abs(S.y-a.translate(o,!1,!0,!1,!0));var C=a.waterfall.dummyStackItem;C&&(C.x=b,C.label=c[b].label,C.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[b],this.stackedYPos[b],void 0,this.xAxis))}}else t=Math.max(d,d+w)+M[0],S.y=a.translate(t,!1,!0,!1,!0),x.isSum?(S.y=a.translate(M[1],!1,!0,!1,!0),S.height=Math.min(a.translate(M[0],!1,!0,!1,!0),a.len)-S.y,x.below=M[1]<=h):x.isIntermediateSum?(w>=0?(i=M[1]+u,o=u):(i=u,o=M[1]+u),a.reversed&&(i^=o,o^=i,i^=o),S.y=a.translate(i,!1,!0,!1,!0),S.height=Math.abs(S.y-Math.min(a.translate(o,!1,!0,!1,!0),a.len)),u+=M[1],x.below=i<=h):(S.height=P>0?a.translate(d,!1,!0,!1,!0)-S.y:a.translate(d,!1,!0,!1,!0)-a.translate(d-P,!1,!0,!1,!0),d+=P,x.below=d