highcharts 9.1.1 → 9.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/annotations/popup.css +29 -28
- package/css/annotations/popup.scss +29 -27
- package/css/highcharts.css +15 -0
- package/css/highcharts.scss +12 -0
- package/css/stocktools/gui.css +1 -0
- package/css/stocktools/gui.scss +1 -0
- package/css/themes/dark-unica.css +15 -0
- package/css/themes/grid-light.css +15 -0
- package/css/themes/sand-signika.css +15 -0
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +8 -2
- package/es-modules/Accessibility/Components/LegendComponent.js +19 -8
- package/es-modules/Accessibility/Components/MenuComponent.js +19 -13
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +4 -8
- package/es-modules/Accessibility/FocusBorder.js +1 -3
- package/es-modules/Accessibility/Options/LangOptions.js +3 -3
- package/es-modules/Accessibility/Utils/Announcer.js +22 -5
- package/es-modules/Accessibility/Utils/ChartUtilities.js +6 -1
- package/es-modules/Core/Animation/AnimationUtilities.js +12 -4
- package/es-modules/Core/Animation/Fx.js +15 -12
- package/es-modules/Core/Axis/Axis.js +25 -13
- package/es-modules/Core/Axis/AxisDefaults.js +0 -1
- package/es-modules/Core/Axis/BrokenAxis.js +32 -15
- package/es-modules/Core/Axis/Color/ColorAxis.js +665 -0
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +237 -0
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +434 -0
- package/es-modules/Core/Axis/DateTimeAxis.js +163 -133
- package/es-modules/Core/Axis/GridAxis.js +8 -3
- package/es-modules/Core/Axis/LogarithmicAxis.js +159 -117
- package/es-modules/Core/Axis/OrdinalAxis.js +666 -460
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +874 -0
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +292 -0
- package/es-modules/Core/Axis/RadialAxis.js +858 -745
- package/es-modules/Core/Axis/ScrollbarAxis.js +7 -0
- package/es-modules/Core/Axis/StackingAxis.js +159 -140
- package/es-modules/Core/Axis/Tick.js +17 -27
- package/es-modules/Core/Chart/Chart.js +24 -38
- package/es-modules/Core/Chart/ChartDefaults.js +1 -1
- package/es-modules/Core/Chart/StockChart.js +12 -0
- package/es-modules/Core/Color/Color.js +96 -104
- package/es-modules/Core/DefaultOptions.js +269 -248
- package/es-modules/Core/Foundation.js +9 -8
- package/es-modules/Core/Geometry/CircleUtilities.js +385 -0
- package/es-modules/Core/Geometry/GeometryUtilities.js +83 -0
- package/es-modules/Core/Globals.js +23 -1
- package/es-modules/{Extensions/Ajax.js → Core/HttpUtilities.js} +86 -42
- package/es-modules/Core/{Legend.js → Legend/Legend.js} +142 -116
- package/es-modules/{Mixins → Core/Legend}/LegendSymbol.js +54 -38
- package/es-modules/Core/Navigator.js +3 -0
- package/es-modules/Core/Pointer.js +9 -0
- package/es-modules/Core/Renderer/HTML/AST.js +100 -82
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +17 -7
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +26 -9
- package/es-modules/Core/Renderer/RendererRegistry.js +9 -4
- package/es-modules/Core/Renderer/RendererUtilities.js +159 -0
- package/es-modules/Core/Renderer/SVG/SVGElement.js +13 -7
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +9 -29
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +2 -2
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +18 -16
- package/es-modules/Core/Responsive.js +166 -148
- package/es-modules/Core/Series/DataLabel.js +564 -0
- package/es-modules/Core/Series/Point.js +233 -209
- package/es-modules/Core/Series/Series.js +174 -2339
- package/es-modules/Core/Series/SeriesDefaults.js +2293 -0
- package/es-modules/Core/Series/SeriesRegistry.js +3 -9
- package/es-modules/Core/Time.js +78 -2
- package/es-modules/Core/Tooltip.js +178 -236
- package/es-modules/Core/Utilities.js +409 -394
- package/es-modules/Extensions/Annotations/Annotations.js +102 -49
- package/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +9 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +30 -25
- package/es-modules/Extensions/Annotations/Popup.js +16 -7
- package/es-modules/Extensions/Boost/BoostOverrides.js +5 -1
- package/es-modules/Extensions/Boost/WGLRenderer.js +5 -4
- package/es-modules/Extensions/Boost/WGLVBuffer.js +3 -0
- package/es-modules/Extensions/BoostCanvas.js +1 -1
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +82 -76
- package/es-modules/Extensions/DataGrouping.js +225 -184
- package/es-modules/Extensions/Debugger/ErrorMessages.js +2 -2
- package/es-modules/Extensions/DraggablePoints.js +13 -5
- package/es-modules/Extensions/Drilldown.js +41 -14
- package/es-modules/Extensions/ExportData.js +7 -4
- package/es-modules/Extensions/Exporting/Exporting.js +1273 -0
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +803 -0
- package/es-modules/Extensions/Exporting/ExportingSymbols.js +73 -0
- package/es-modules/Extensions/FullScreen.js +7 -5
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +617 -0
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +58 -0
- package/es-modules/Extensions/Oldie/Oldie.js +1 -1
- package/es-modules/Extensions/Pane.js +0 -1
- package/es-modules/Extensions/PatternFill.js +23 -10
- package/es-modules/Extensions/Polar.js +2 -1
- package/es-modules/Extensions/RangeSelector.js +1 -1
- package/es-modules/Extensions/Themes/Avocado.js +49 -20
- package/es-modules/Extensions/Themes/DarkBlue.js +226 -203
- package/es-modules/Extensions/Themes/DarkGreen.js +231 -203
- package/es-modules/Extensions/Themes/DarkUnica.js +201 -172
- package/es-modules/Extensions/Themes/Gray.js +228 -205
- package/es-modules/Extensions/Themes/Grid.js +109 -81
- package/es-modules/Extensions/Themes/GridLight.js +83 -55
- package/es-modules/Extensions/Themes/HighContrastDark.js +192 -164
- package/es-modules/Extensions/Themes/HighContrastLight.js +49 -21
- package/es-modules/Extensions/Themes/SandSignika.js +115 -86
- package/es-modules/Extensions/Themes/Skies.js +102 -74
- package/es-modules/Extensions/Themes/Sunset.js +47 -19
- package/es-modules/Mixins/ColorSeries.js +0 -1
- package/es-modules/Mixins/MultipleLines.js +6 -0
- package/es-modules/Mixins/TreeSeries.js +1 -1
- package/es-modules/Series/Area/AreaSeries.js +2 -2
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +2 -2
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +279 -0
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +267 -0
- package/es-modules/Series/Bubble/BubbleLegendItem.js +472 -0
- package/es-modules/Series/Bubble/BubbleSeries.js +6 -2
- package/es-modules/Series/Column/ColumnDataLabel.js +109 -0
- package/es-modules/Series/Column/ColumnSeries.js +39 -26
- package/es-modules/Series/Column3D/Column3DComposition.js +5 -2
- package/es-modules/Series/Flags/FlagsSeries.js +8 -1
- package/es-modules/Series/Gantt/GanttSeries.js +3 -3
- package/es-modules/Series/Heatmap/HeatmapSeries.js +9 -5
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +60 -0
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +277 -0
- package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +83 -0
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +370 -0
- package/es-modules/Series/Line/LineSeries.js +12 -8
- package/es-modules/Series/Map/MapSeries.js +5 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +6 -5
- package/es-modules/Series/OHLC/OHLCPoint.js +11 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -1
- package/es-modules/Series/Pie/PieDataLabel.js +448 -0
- package/es-modules/Series/Pie/PiePoint.js +35 -34
- package/es-modules/Series/Pie/PieSeries.js +19 -16
- package/es-modules/Series/Polygon/PolygonSeries.js +3 -3
- package/es-modules/Series/Sankey/SankeySeries.js +9 -7
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +2 -2
- package/es-modules/Series/Sunburst/SunburstSeries.js +1 -14
- package/es-modules/Series/Timeline/TimelinePoint.js +6 -0
- package/es-modules/Series/Timeline/TimelineSeries.js +14 -17
- package/es-modules/Series/Treemap/TreemapSeries.js +3 -3
- package/es-modules/Series/Venn/VennSeries.js +4 -4
- package/es-modules/Series/Venn/VennUtils.js +10 -16
- package/es-modules/Series/Waterfall/WaterfallSeries.js +40 -35
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +1 -0
- package/es-modules/Series/XRange/XRangeSeries.js +4 -2
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +92 -75
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +20 -8
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +17 -4
- package/es-modules/Stock/StockToolsBindings.js +77 -38
- package/es-modules/Stock/StockToolsGui.js +28 -3
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +11 -7
- package/es-modules/masters/highcharts.src.js +25 -9
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ema.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +6 -2
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +8 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +10 -2
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +9 -4
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +6 -2
- package/es-modules/masters/modules/heikinashi.src.js +14 -0
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +14 -0
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +10 -6
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +8 -2
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +3 -2
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +5 -2
- package/es-modules/masters/themes/dark-blue.src.js +5 -2
- package/es-modules/masters/themes/dark-green.src.js +5 -2
- package/es-modules/masters/themes/dark-unica.src.js +5 -2
- package/es-modules/masters/themes/gray.src.js +5 -2
- package/es-modules/masters/themes/grid-light.src.js +5 -2
- package/es-modules/masters/themes/grid.src.js +5 -2
- package/es-modules/masters/themes/high-contrast-dark.src.js +5 -2
- package/es-modules/masters/themes/high-contrast-light.src.js +5 -2
- package/es-modules/masters/themes/sand-signika.src.js +5 -2
- package/es-modules/masters/themes/skies.src.js +5 -2
- package/es-modules/masters/themes/sunset.src.js +5 -2
- package/gfx/stock-icons/annotations-hidden.svg +1 -1
- package/gfx/stock-icons/annotations-visible.svg +2 -2
- package/gfx/stock-icons/arrow-bottom.svg +1 -1
- package/gfx/stock-icons/arrow-left.svg +1 -1
- package/gfx/stock-icons/arrow-line.svg +1 -1
- package/gfx/stock-icons/arrow-ray.svg +1 -1
- package/gfx/stock-icons/arrow-right.svg +1 -1
- package/gfx/stock-icons/arrow-segment.svg +1 -2
- package/gfx/stock-icons/circle.svg +1 -1
- package/gfx/stock-icons/close.svg +2 -2
- package/gfx/stock-icons/crooked-3.svg +1 -1
- package/gfx/stock-icons/crooked-5.svg +1 -1
- package/gfx/stock-icons/current-price-hide.svg +3 -3
- package/gfx/stock-icons/current-price-show.svg +2 -2
- package/gfx/stock-icons/destroy.svg +1 -1
- package/gfx/stock-icons/drawing.svg +18 -0
- package/gfx/stock-icons/edit.svg +1 -1
- package/gfx/stock-icons/elliott-3.svg +1 -1
- package/gfx/stock-icons/elliott-5.svg +1 -1
- package/gfx/stock-icons/ellipse.svg +11 -0
- package/gfx/stock-icons/fibonacci-timezone.svg +16 -0
- package/gfx/stock-icons/fibonacci.svg +1 -1
- package/gfx/stock-icons/flag-basic.svg +1 -1
- package/gfx/stock-icons/flag-diamond.svg +2 -2
- package/gfx/stock-icons/flag-elipse.svg +1 -1
- package/gfx/stock-icons/flag-trapeze.svg +2 -2
- package/gfx/stock-icons/fullscreen.svg +4 -4
- package/gfx/stock-icons/horizontal-line.svg +1 -1
- package/gfx/stock-icons/indicators.svg +3 -3
- package/gfx/stock-icons/label.svg +4 -4
- package/gfx/stock-icons/line.svg +1 -1
- package/gfx/stock-icons/linear.svg +11 -0
- package/gfx/stock-icons/logarithmic.svg +1 -0
- package/gfx/stock-icons/measure-x.svg +2 -2
- package/gfx/stock-icons/measure-xy.svg +1 -1
- package/gfx/stock-icons/measure-y.svg +1 -1
- package/gfx/stock-icons/panning.svg +17 -0
- package/gfx/stock-icons/parallel-channel.svg +1 -1
- package/gfx/stock-icons/pitchfork.svg +1 -1
- package/gfx/stock-icons/ray.svg +1 -1
- package/gfx/stock-icons/rectangle.svg +1 -1
- package/gfx/stock-icons/remove-annotations.svg +2 -2
- package/gfx/stock-icons/save-chart.svg +3 -3
- package/gfx/stock-icons/segment.svg +1 -1
- package/gfx/stock-icons/separator.svg +1 -1
- package/gfx/stock-icons/series-candlestick.svg +1 -1
- package/gfx/stock-icons/series-heikin-ashi.svg +1 -0
- package/gfx/stock-icons/series-hlc.svg +1 -0
- package/gfx/stock-icons/series-hollow-candlestick.svg +1 -0
- package/gfx/stock-icons/series-line.svg +1 -1
- package/gfx/stock-icons/series-ohlc.svg +4 -4
- package/gfx/stock-icons/time-cycles.svg +35 -0
- package/gfx/stock-icons/vertical-arrow.svg +1 -1
- package/gfx/stock-icons/vertical-counter.svg +1 -1
- package/gfx/stock-icons/vertical-double-arrow.svg +1 -1
- package/gfx/stock-icons/vertical-label.svg +3 -3
- package/gfx/stock-icons/vertical-line.svg +1 -1
- package/gfx/stock-icons/zoom-x.svg +2 -2
- package/gfx/stock-icons/zoom-xy.svg +2 -2
- package/gfx/stock-icons/zoom-y.svg +2 -2
- package/highcharts-3d.js +24 -24
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +6 -3
- package/highcharts-gantt.js +800 -792
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +16535 -15918
- package/highcharts-more.d.ts +73 -1
- package/highcharts-more.js +193 -192
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +73 -1
- package/highcharts-more.src.js +8044 -7839
- package/highcharts.d.ts +3850 -177
- package/highcharts.js +589 -581
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +3850 -177
- package/highcharts.src.js +16635 -16060
- package/highmaps.js +708 -698
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +17419 -16521
- package/highstock.js +782 -769
- package/highstock.js.map +1 -1
- package/highstock.src.js +28867 -27975
- package/indicators/acceleration-bands.js +9 -9
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +7 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +9 -9
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +7 -1
- package/indicators/aroon.js +9 -9
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +7 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +9 -9
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +7 -1
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.js +11 -11
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +7 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +203 -200
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +206 -104
- package/indicators/indicators.js +12 -11
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +108 -90
- package/indicators/keltner-channels.js +9 -9
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +7 -1
- package/indicators/klinger.js +13 -13
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +7 -1
- package/indicators/macd.js +1 -1
- package/indicators/macd.src.js +1 -1
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +9 -9
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +7 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.src.js +1 -1
- package/indicators/stochastic.js +10 -10
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +7 -1
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +23 -10
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +17 -15
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +71 -6
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +203 -202
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +89 -49
- package/modules/annotations-advanced.js +164 -163
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +162 -87
- package/modules/annotations.js +111 -111
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +162 -87
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +2 -2
- package/modules/boost.js +52 -52
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +15 -7
- package/modules/broken-axis.js +13 -13
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +34 -15
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +24 -22
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +954 -774
- package/modules/current-date-indicator.js +2 -2
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +2 -2
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +33 -32
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +182 -134
- package/modules/datagrouping.d.ts +5 -0
- package/modules/datagrouping.js +20 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +5 -0
- package/modules/datagrouping.src.js +270 -228
- package/modules/debugger.js +3 -3
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +3 -3
- package/modules/dependency-wheel.js +1 -1
- package/modules/dependency-wheel.src.js +1 -1
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +34 -34
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +14 -5
- package/modules/drilldown.d.ts +27 -0
- package/modules/drilldown.js +18 -18
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +27 -0
- package/modules/drilldown.src.js +42 -16
- package/modules/dumbbell.js +1 -1
- package/modules/dumbbell.src.js +1 -1
- package/modules/export-data.js +20 -20
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +8 -5
- package/modules/exporting.d.ts +29 -0
- package/modules/exporting.js +38 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.d.ts +29 -0
- package/modules/exporting.src.js +1937 -1614
- package/modules/full-screen.js +2 -2
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +8 -6
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +218 -217
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +74 -32
- package/modules/grid-axis.js +23 -22
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +9 -4
- package/modules/heatmap.js +39 -37
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +963 -779
- package/modules/heikinashi.js +17 -0
- package/modules/heikinashi.js.map +1 -0
- package/modules/heikinashi.src.js +394 -0
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.js +18 -0
- package/modules/hollowcandlestick.js.map +1 -0
- package/modules/hollowcandlestick.src.js +504 -0
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +1 -1
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +9 -0
- package/modules/map.js +122 -119
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +9 -0
- package/modules/map.src.js +1655 -1332
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.src.js +1 -1
- package/modules/networkgraph.js +1 -1
- package/modules/networkgraph.src.js +1 -1
- package/modules/no-data-to-display.js +3 -3
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +2 -2
- package/modules/offline-exporting.js +18 -16
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +623 -562
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +2 -2
- package/modules/organization.js +1 -1
- package/modules/organization.src.js +1 -1
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +14 -14
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +24 -12
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.js +28 -28
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +11 -11
- package/modules/series-label.js +1 -1
- package/modules/series-label.src.js +1 -1
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +3 -3
- package/modules/sonification.js +1 -1
- package/modules/sonification.src.js +1 -1
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +159 -157
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +253 -123
- package/modules/stock.d.ts +5 -0
- package/modules/stock.js +196 -191
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +5 -0
- package/modules/stock.src.js +7749 -7432
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +5 -5
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +6 -19
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +18 -17
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +21 -24
- package/modules/treegrid.js +57 -57
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +43 -19
- package/modules/treemap.js +5 -5
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +5 -5
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +1 -1
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +31 -30
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +508 -424
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.js +4 -4
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +2 -1
- package/modules/xrange.js +17 -17
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +7 -4
- package/package.json +1 -1
- package/themes/avocado.d.ts +6 -1
- package/themes/avocado.js +3 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.d.ts +6 -1
- package/themes/avocado.src.js +53 -22
- package/themes/dark-blue.d.ts +6 -1
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.d.ts +6 -1
- package/themes/dark-blue.src.js +231 -205
- package/themes/dark-green.d.ts +6 -1
- package/themes/dark-green.js +4 -4
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.d.ts +6 -1
- package/themes/dark-green.src.js +236 -205
- package/themes/dark-unica.d.ts +6 -1
- package/themes/dark-unica.js +7 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.d.ts +6 -1
- package/themes/dark-unica.src.js +206 -174
- package/themes/gray.d.ts +6 -1
- package/themes/gray.js +3 -3
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.d.ts +6 -1
- package/themes/gray.src.js +233 -207
- package/themes/grid-light.d.ts +6 -1
- package/themes/grid-light.js +4 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.d.ts +6 -1
- package/themes/grid-light.src.js +88 -57
- package/themes/grid.d.ts +6 -1
- package/themes/grid.js +3 -3
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.d.ts +6 -1
- package/themes/grid.src.js +114 -83
- package/themes/high-contrast-dark.js +5 -4
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +197 -166
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +54 -23
- package/themes/sand-signika.d.ts +6 -1
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.d.ts +6 -1
- package/themes/sand-signika.src.js +119 -88
- package/themes/skies.d.ts +6 -1
- package/themes/skies.js +5 -5
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.d.ts +6 -1
- package/themes/skies.src.js +107 -76
- package/themes/sunset.d.ts +6 -1
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.d.ts +6 -1
- package/themes/sunset.src.js +52 -21
- package/es-modules/Core/Axis/ColorAxis.js +0 -1164
- package/es-modules/Core/Axis/HiddenAxis.js +0 -46
- package/es-modules/Core/Axis/PlotLineOrBand.js +0 -1051
- package/es-modules/Core/Series/DataLabels.js +0 -1173
- package/es-modules/Extensions/Exporting.js +0 -2024
- package/es-modules/Extensions/OfflineExporting.js +0 -621
- package/es-modules/Mixins/Geometry.js +0 -56
- package/es-modules/Mixins/GeometryCircles.js +0 -320
- package/es-modules/Series/Bubble/BubbleLegend.js +0 -893
package/highmaps.js
CHANGED
|
@@ -1,705 +1,715 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highmaps JS v9.
|
|
2
|
+
Highmaps JS v9.2.2 (2021-08-24)
|
|
3
3
|
|
|
4
4
|
(c) 2011-2021 Torstein Honsi
|
|
5
5
|
|
|
6
6
|
License: www.highcharts.com/license
|
|
7
7
|
*/
|
|
8
|
-
'use strict';(function(
|
|
9
|
-
{},a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="9.
|
|
10
|
-
/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var
|
|
11
|
-
a.noop,
|
|
12
|
-
"="+encodeURI(c))});
|
|
13
|
-
c||"[object Array Iterator]"===c}function
|
|
14
|
-
"Name"))):
|
|
15
|
-
e){return parseFloat(c.toPrecision(e||14))}function
|
|
16
|
-
c.getPropertyValue(e);
|
|
17
|
-
e?(
|
|
18
|
-
(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
typeof
|
|
24
|
-
e){"object"!==typeof c&&(c={});
|
|
25
|
-
(e[
|
|
26
|
-
e,
|
|
27
|
-
|
|
28
|
-
neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});
|
|
29
|
-
15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:a.highlightColor80,backgroundColor:a.backgroundColor,plotBorderColor:a.neutralColor20}});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(f)%36E5)return f["setUTC"+b](
|
|
36
|
-
|
|
37
|
-
f=this.options,
|
|
38
|
-
var
|
|
39
|
-
function(c,e){for(;-1!==b.indexOf("%"+e);)b=b.replace("%"+e,"function"===typeof c?c.call(
|
|
40
|
-
Math.floor(
|
|
41
|
-
|
|
42
|
-
c)&&(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
a.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
(""
|
|
85
|
-
c,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
this.
|
|
91
|
-
k.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.
|
|
107
|
-
|
|
108
|
-
this.
|
|
109
|
-
(
|
|
110
|
-
function(b){
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
b
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
this.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
c
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
this.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
a.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
e
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
g
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
b.
|
|
195
|
-
|
|
196
|
-
(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
c
|
|
207
|
-
|
|
208
|
-
function(
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
{
|
|
216
|
-
function(){var c=this
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
c.
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
a
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
var
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
""
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
f.
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
0
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
this.chart.
|
|
273
|
-
a.prototype.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
function(
|
|
278
|
-
function(
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
e.
|
|
282
|
-
|
|
283
|
-
x
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
b=
|
|
288
|
-
|
|
289
|
-
b
|
|
290
|
-
|
|
291
|
-
.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
"
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
a.unbindDocumentTouchEnd
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
function(
|
|
305
|
-
a
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
this
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
(
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
d
|
|
322
|
-
this.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
a.prototype.
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
a.prototype.
|
|
334
|
-
(
|
|
335
|
-
|
|
336
|
-
c.
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
this,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
function(
|
|
359
|
-
|
|
360
|
-
function(){
|
|
361
|
-
a
|
|
362
|
-
|
|
363
|
-
this.
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
b
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
b.
|
|
372
|
-
function(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
a=
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
this.
|
|
388
|
-
|
|
389
|
-
a
|
|
390
|
-
(
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
c
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
{
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
a.
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
a.
|
|
419
|
-
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
this.options
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
this.
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
b[
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
f=
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
{
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
this.
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
k
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
a=
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
b.
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
a[
|
|
503
|
-
|
|
504
|
-
b
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
a[
|
|
513
|
-
|
|
514
|
-
.
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
a.options
|
|
529
|
-
|
|
530
|
-
k)
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
e
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
b)}
|
|
556
|
-
d.
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
a.
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
(
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
a
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
a.
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
(
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
a
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
this.
|
|
609
|
-
[]).
|
|
610
|
-
a
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
a.
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
function(){
|
|
634
|
-
"
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
a["
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
b)
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
w.
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
a
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
d
|
|
687
|
-
(
|
|
688
|
-
var
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
(
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
b){
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
b
|
|
704
|
-
a
|
|
8
|
+
'use strict';(function(aa,I){"object"===typeof module&&module.exports?(I["default"]=I,module.exports=aa.document?I(aa):I):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return I(aa)}):(aa.Highcharts&&aa.Highcharts.error(16,!0),aa.Highcharts=I(aa))})("undefined"!==typeof window?window:this,function(aa){function I(r,a,A,y){r.hasOwnProperty(a)||(r[a]=y.apply(null,A))}var a={};I(a,"Core/Globals.js",[],function(){var r="undefined"!==typeof aa?aa:"undefined"!==typeof window?
|
|
9
|
+
window:{},a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="9.2.2";a.win=r;a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=
|
|
10
|
+
/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var r=!1;if(!a.isMS){var v=Object.defineProperty({},"passive",{get:function(){r=!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",
|
|
11
|
+
a.noop,v),a.win.removeEventListener("testPassive",a.noop,v))}return r}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});I(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function r(c,e,b,n){var H=e?"Highcharts error":"Highcharts warning";32===c&&(c=H+": Deprecated member");var f=h(c),m=f?H+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof n){var g="";f&&(m+="?");B(n,function(c,e){g+="\n - "+e+": "+c;
|
|
12
|
+
f&&(m+=encodeURI(e)+"="+encodeURI(c))});m+=g}u(a,"displayError",{chart:b,code:c,message:m,params:n},function(){if(e)throw Error(m);q.console&&-1===r.messages.indexOf(m)&&console.warn(m)});r.messages.push(m)}function A(c,e){var H={};B(c,function(b,n){if(D(c[n],!0)&&!c.nodeType&&e[n])b=A(c[n],e[n]),Object.keys(b).length&&(H[n]=b);else if(D(c[n])||c[n]!==e[n])H[n]=c[n]});return H}function y(c,e){return parseInt(c,e||10)}function z(c){return"string"===typeof c}function w(c){c=Object.prototype.toString.call(c);
|
|
13
|
+
return"[object Array]"===c||"[object Array Iterator]"===c}function D(c,e){return!!c&&"object"===typeof c&&(!e||!w(c))}function t(c){return D(c)&&"number"===typeof c.nodeType}function l(c){var e=c&&c.constructor;return!(!D(c,!0)||t(c)||!e||!e.name||"Object"===e.name)}function h(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function d(c){return"undefined"!==typeof c&&null!==c}function b(c,e,n){var b;z(e)?d(n)?c.setAttribute(e,n):c&&c.getAttribute&&((b=c.getAttribute(e))||"class"!==
|
|
14
|
+
e||(b=c.getAttribute(e+"Name"))):B(e,function(e,b){c.setAttribute(b,e)});return b}function g(c,e){var b;c||(c={});for(b in e)c[b]=e[b];return c}function p(){for(var c=arguments,e=c.length,b=0;b<e;b++){var n=c[b];if("undefined"!==typeof n&&null!==n)return n}}function k(c,e){a.isMS&&!a.svg&&e&&"undefined"!==typeof e.opacity&&(e.filter="alpha(opacity="+100*e.opacity+")");g(c.style,e)}function J(c,e,b,n,f){c=m.createElement(c);e&&g(c,e);f&&k(c,{padding:"0",border:"none",margin:"0"});b&&k(c,b);n&&n.appendChild(c);
|
|
15
|
+
return c}function G(c,e){return parseFloat(c.toPrecision(e||14))}function f(c,e,b){var n=a.getStyle||f;if("width"===e)return e=Math.min(c.offsetWidth,c.scrollWidth),b=c.getBoundingClientRect&&c.getBoundingClientRect().width,b<e&&b>=e-1&&(e=Math.floor(b)),Math.max(0,e-(n(c,"padding-left",!0)||0)-(n(c,"padding-right",!0)||0));if("height"===e)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(n(c,"padding-top",!0)||0)-(n(c,"padding-bottom",!0)||0));q.getComputedStyle||r(27,!0);if(c=q.getComputedStyle(c,
|
|
16
|
+
void 0)){var m=c.getPropertyValue(e);p(b,"opacity"!==e)&&(m=y(m))}return m}function B(c,e,b){for(var n in c)Object.hasOwnProperty.call(c,n)&&e.call(b||c[n],c[n],n,c)}function x(c,e,b){function n(e,b){var n=c.removeEventListener||a.removeEventListenerPolyfill;n&&n.call(c,e,b,!1)}function f(b){var N;if(c.nodeName){if(e){var M={};M[e]=!0}else M=b;B(M,function(c,e){if(b[e])for(N=b[e].length;N--;)n(e,b[e][N].fn)})}}var m="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(m,"hcEvents")){var q=
|
|
17
|
+
m.hcEvents;e?(m=q[e]||[],b?(q[e]=m.filter(function(c){return b!==c.fn}),n(e,b)):(f(q),q[e]=[])):(f(q),delete m.hcEvents)}}function u(c,e,b,n){b=b||{};if(m.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==a)){var f=m.createEvent("Events");f.initEvent(e,!0,!0);b=g(f,b);c.dispatchEvent?c.dispatchEvent(b):c.fireEvent(e,b)}else if(c.hcEvents){b.target||g(b,{preventDefault:function(){b.defaultPrevented=!0},target:c,type:e});f=[];for(var q=c,d=!1;q.hcEvents;)Object.hasOwnProperty.call(q,"hcEvents")&&q.hcEvents[e]&&
|
|
18
|
+
(f.length&&(d=!0),f.unshift.apply(f,q.hcEvents[e])),q=Object.getPrototypeOf(q);d&&f.sort(function(c,e){return c.order-e.order});f.forEach(function(e){!1===e.fn.call(c,b)&&b.preventDefault()})}n&&!b.defaultPrevented&&n.call(c,b)}var E=a.charts,m=a.doc,q=a.win;(r||(r={})).messages=[];var e;Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var c=Array.prototype.find?function(c,e){return c.find(e)}:function(c,e){var b,n=c.length;for(b=0;b<n;b++)if(e(c[b],b))return c[b]};B({map:"map",each:"forEach",
|
|
19
|
+
grep:"filter",reduce:"reduce",some:"some"},function(c,e){a[e]=function(b){var n;r(32,!1,void 0,(n={},n["Highcharts."+e]="use Array."+c,n));return Array.prototype[c].apply(b,[].slice.call(arguments,1))}});var n,C=function(){var c=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(n?"":c)+e++}}();q.jQuery&&(q.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (a[z(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):E[b(this[0],
|
|
20
|
+
"data-highcharts-chart")]});c={addEvent:function(c,e,b,n){void 0===n&&(n={});var f="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(f,"hcEvents")||(f.hcEvents={});f=f.hcEvents;a.Point&&c instanceof a.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var q=c.addEventListener||a.addEventListenerPolyfill;q&&q.call(c,e,b,a.supportsPassiveEvents?{passive:void 0===n.passive?-1!==e.indexOf("touch"):n.passive,capture:!1}:!1);f[e]||(f[e]=[]);f[e].push({fn:b,order:"number"===
|
|
21
|
+
typeof n.order?n.order:Infinity});f[e].sort(function(c,e){return c.order-e.order});return function(){x(c,e,b)}},arrayMax:function(c){for(var e=c.length,b=c[0];e--;)c[e]>b&&(b=c[e]);return b},arrayMin:function(c){for(var e=c.length,b=c[0];e--;)c[e]<b&&(b=c[e]);return b},attr:b,clamp:function(c,e,b){return c>e?c<b?c:b:e},cleanRecursively:A,clearTimeout:function(c){d(c)&&clearTimeout(c)},correctFloat:G,createElement:J,css:k,defined:d,destroyObjectProperties:function(c,e){B(c,function(b,n){b&&b!==e&&
|
|
22
|
+
b.destroy&&b.destroy();delete c[n]})},discardElement:function(c){e||(e=J("div"));c&&e.appendChild(c);e.innerHTML=""},erase:function(c,e){for(var b=c.length;b--;)if(c[b]===e){c.splice(b,1);break}},error:r,extend:g,extendClass:function(c,e){var b=function(){};b.prototype=new c;g(b.prototype,e);return b},find:c,fireEvent:u,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c,e){for(c=c.split(".");c.length&&d(e);){var b=c.shift();if("undefined"===
|
|
23
|
+
typeof b||"__proto__"===b)return;e=e[b];if(!d(e)||"function"===typeof e||"number"===typeof e.nodeType||e===q)return}return e},getStyle:f,inArray:function(c,e,b){r(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return e.indexOf(c,b)},isArray:w,isClass:l,isDOMElement:t,isFunction:function(c){return"function"===typeof c},isNumber:h,isObject:D,isString:z,keys:function(c){r(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,e=arguments,b={},n=function(c,
|
|
24
|
+
e){"object"!==typeof c&&(c={});B(e,function(b,N){"__proto__"!==N&&"constructor"!==N&&(!D(b,!0)||l(b)||t(b)?c[N]=e[N]:c[N]=n(c[N]||{},b))});return c};!0===e[0]&&(b=e[1],e=Array.prototype.slice.call(e,2));var f=e.length;for(c=0;c<f;c++)b=n(b,e[c]);return b},normalizeTickInterval:function(c,e,b,n,f){var q=c;b=p(b,1);var m=c/b;e||(e=f?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===b?e=e.filter(function(c){return 0===c%1}):.1>=b&&(e=[1/b])));for(n=0;n<e.length&&!(q=e[n],f&&q*b>=c||!f&&m<=(e[n]+
|
|
25
|
+
(e[n+1]||e[n]))/2);n++);return q=G(q*b,-Math.round(Math.log(.001)/Math.LN10))},objectEach:B,offset:function(c){var e=m.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(q.pageYOffset||e.scrollTop)-(e.clientTop||0),left:c.left+(q.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:c.width,height:c.height}},pad:function(c,e,b){return Array((e||2)+1-String(c).replace("-","").length).join(b||"0")+c},pick:p,pInt:y,relativeLength:function(c,
|
|
26
|
+
e,b){return/%$/.test(c)?e*parseFloat(c)/100+(b||0):parseFloat(c)},removeEvent:x,splat:function(c){return w(c)?c:[c]},stableSort:function(c,e){var b=c.length,n,f;for(f=0;f<b;f++)c[f].safeI=f;c.sort(function(c,b){n=e(c,b);return 0===n?c.safeI-b.safeI:n});for(f=0;f<b;f++)delete c[f].safeI},syncTimeout:function(c,e,b){if(0<e)return setTimeout(c,e,b);c.call(0,b);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:C,useSerialIds:function(c){return n=
|
|
27
|
+
p(c,n)},wrap:function(c,e,b){var n=c[e];c[e]=function(){var c=Array.prototype.slice.call(arguments),e=arguments,f=this;f.proceed=function(){n.apply(f,arguments.length?arguments:e)};c.unshift(n);c=b.apply(this,c);f.proceed=null;return c}}};"";return c});I(a,"Core/Color/Palette.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),backgroundColor:"#ffffff",neutralColor100:"#000000",neutralColor80:"#333333",neutralColor60:"#666666",
|
|
28
|
+
neutralColor40:"#999999",neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});I(a,"Core/Chart/ChartDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,
|
|
29
|
+
spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:a.highlightColor80,backgroundColor:a.backgroundColor,plotBorderColor:a.neutralColor20}});I(a,"Core/Color/Color.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=v.isNumber,y=v.merge,z=v.pInt;v=function(){function w(r){this.rgba=[NaN,NaN,NaN,NaN];this.input=r;var t=a.Color;if(t&&t!==w)return new t(r);if(!(this instanceof w))return new w(r);
|
|
30
|
+
this.init(r)}w.parse=function(a){return a?new w(a):w.None};w.prototype.init=function(a){var t;if("object"===typeof a&&"undefined"!==typeof a.stops)this.stops=a.stops.map(function(b){return new w(b[1])});else if("string"===typeof a){this.input=a=w.names[a.toLowerCase()]||a;if("#"===a.charAt(0)){var l=a.length;var h=parseInt(a.substr(1),16);7===l?t=[(h&16711680)>>16,(h&65280)>>8,h&255,1]:4===l&&(t=[(h&3840)>>4|(h&3840)>>8,(h&240)>>4|h&240,(h&15)<<4|h&15,1])}if(!t)for(h=w.parsers.length;h--&&!t;){var d=
|
|
31
|
+
w.parsers[h];(l=d.regex.exec(a))&&(t=d.parse(l))}}t&&(this.rgba=t)};w.prototype.get=function(a){var t=this.input,l=this.rgba;if("object"===typeof t&&"undefined"!==typeof this.stops){var h=y(t);h.stops=[].slice.call(h.stops);this.stops.forEach(function(d,b){h.stops[b]=[h.stops[b][0],d.get(a)]});return h}return l&&r(l[0])?"rgb"===a||!a&&1===l[3]?"rgb("+l[0]+","+l[1]+","+l[2]+")":"a"===a?""+l[3]:"rgba("+l.join(",")+")":t};w.prototype.brighten=function(a){var t=this.rgba;if(this.stops)this.stops.forEach(function(h){h.brighten(a)});
|
|
32
|
+
else if(r(a)&&0!==a)for(var l=0;3>l;l++)t[l]+=z(255*a),0>t[l]&&(t[l]=0),255<t[l]&&(t[l]=255);return this};w.prototype.setOpacity=function(a){this.rgba[3]=a;return this};w.prototype.tweenTo=function(a,t){var l=this.rgba,h=a.rgba;if(!r(l[0])||!r(h[0]))return a.input||"none";a=1!==h[3]||1!==l[3];return(a?"rgba(":"rgb(")+Math.round(h[0]+(l[0]-h[0])*(1-t))+","+Math.round(h[1]+(l[1]-h[1])*(1-t))+","+Math.round(h[2]+(l[2]-h[2])*(1-t))+(a?","+(h[3]+(l[3]-h[3])*(1-t)):"")+")"};w.names={white:"#ffffff",black:"#000000"};
|
|
33
|
+
w.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[z(a[1]),z(a[2]),z(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[z(a[1]),z(a[2]),z(a[3]),1]}}];w.None=new w("");return w}();"";return v});I(a,"Core/Time.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=a.win,y=v.defined,z=v.error,w=v.extend,D=v.isObject,t=v.merge,
|
|
34
|
+
l=v.objectEach,h=v.pad,d=v.pick,b=v.splat,g=v.timeUnits,p=a.isSafari&&r.Intl&&r.Intl.DateTimeFormat.prototype.formatRange,k=a.isSafari&&r.Intl&&!r.Intl.DateTimeFormat.prototype.formatRange;v=function(){function J(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=r.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)}J.prototype.get=function(b,f){if(this.variableTimezone||this.timezoneOffset){var g=f.getTime(),d=g-this.getTimezoneOffset(f);f.setTime(d);b=f["getUTC"+
|
|
35
|
+
b]();f.setTime(g);return b}return this.useUTC?f["getUTC"+b]():f["get"+b]()};J.prototype.set=function(b,f,g){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(f)%36E5)return f["setUTC"+b](g);var d=this.getTimezoneOffset(f);d=f.getTime()-d;f.setTime(d);f["setUTC"+b](g);b=this.getTimezoneOffset(f);d=f.getTime()+b;return f.setTime(d)}return this.useUTC||p&&"FullYear"===b?f["setUTC"+b](g):f["set"+b](g)};J.prototype.update=function(b){var f=
|
|
36
|
+
d(b&&b.useUTC,!0);this.options=b=t(!0,this.options||{},b);this.Date=b.Date||r.Date||Date;this.timezoneOffset=(this.useUTC=f)&&b.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=f&&!(!b.getTimezoneOffset&&!b.timezone)};J.prototype.makeTime=function(b,f,g,p,u,h){if(this.useUTC){var m=this.Date.UTC.apply(0,arguments);var q=this.getTimezoneOffset(m);m+=q;var e=this.getTimezoneOffset(m);q!==e?m+=e-q:q-36E5!==this.getTimezoneOffset(m-36E5)||k||(m-=36E5)}else m=(new this.Date(b,
|
|
37
|
+
f,d(g,1),d(p,0),d(u,0),d(h,0))).getTime();return m};J.prototype.timezoneOffsetFunction=function(){var b=this,f=this.options,g=f.moment||r.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(f.timezone){if(g)return function(b){return 6E4*-g.tz(b,f.timezone).utcOffset()};z(25)}return this.useUTC&&f.getTimezoneOffset?function(b){return 6E4*f.getTimezoneOffset(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};J.prototype.dateFormat=function(b,
|
|
38
|
+
f,g){if(!y(f)||isNaN(f))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";b=d(b,"%Y-%m-%d %H:%M:%S");var k=this,u=new this.Date(f),p=this.get("Hours",u),m=this.get("Day",u),q=this.get("Date",u),e=this.get("Month",u),c=this.get("FullYear",u),n=a.defaultOptions.lang,C=n&&n.weekdays,B=n&&n.shortWeekdays;u=w({a:B?B[m]:C[m].substr(0,3),A:C[m],d:h(q),e:h(q,2," "),w:m,b:n.shortMonths[e],B:n.months[e],m:h(e+1),o:e+1,y:c.toString().substr(2,2),Y:c,H:h(p),k:p,I:h(p%12||12),l:p%12||12,M:h(this.get("Minutes",
|
|
39
|
+
u)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:h(u.getSeconds()),L:h(Math.floor(f%1E3),3)},a.dateFormats);l(u,function(c,e){for(;-1!==b.indexOf("%"+e);)b=b.replace("%"+e,"function"===typeof c?c.call(k,f):c)});return g?b.substr(0,1).toUpperCase()+b.substr(1):b};J.prototype.resolveDTLFormat=function(g){return D(g,!0)?g:(g=b(g),{main:g[0],from:g[1],to:g[2]})};J.prototype.getTimeTicks=function(b,f,k,p){var u=this,h=[],m={},q=new u.Date(f),e=b.unitRange,c=b.count||1,n;p=d(p,1);if(y(f)){u.set("Milliseconds",q,
|
|
40
|
+
e>=g.second?0:c*Math.floor(u.get("Milliseconds",q)/c));e>=g.second&&u.set("Seconds",q,e>=g.minute?0:c*Math.floor(u.get("Seconds",q)/c));e>=g.minute&&u.set("Minutes",q,e>=g.hour?0:c*Math.floor(u.get("Minutes",q)/c));e>=g.hour&&u.set("Hours",q,e>=g.day?0:c*Math.floor(u.get("Hours",q)/c));e>=g.day&&u.set("Date",q,e>=g.month?1:Math.max(1,c*Math.floor(u.get("Date",q)/c)));if(e>=g.month){u.set("Month",q,e>=g.year?0:c*Math.floor(u.get("Month",q)/c));var C=u.get("FullYear",q)}e>=g.year&&u.set("FullYear",
|
|
41
|
+
q,C-C%c);e===g.week&&(C=u.get("Day",q),u.set("Date",q,u.get("Date",q)-C+p+(C<p?-7:0)));C=u.get("FullYear",q);p=u.get("Month",q);var B=u.get("Date",q),x=u.get("Hours",q);f=q.getTime();!u.variableTimezone&&u.useUTC||!y(k)||(n=k-f>4*g.month||u.getTimezoneOffset(f)!==u.getTimezoneOffset(k));f=q.getTime();for(q=1;f<k;)h.push(f),f=e===g.year?u.makeTime(C+q*c,0):e===g.month?u.makeTime(C,p+q*c):!n||e!==g.day&&e!==g.week?n&&e===g.hour&&1<c?u.makeTime(C,p,B,x+q*c):f+e*c:u.makeTime(C,p,B+q*c*(e===g.day?1:7)),
|
|
42
|
+
q++;h.push(f);e<=g.hour&&1E4>h.length&&h.forEach(function(c){0===c%18E5&&"000000000"===u.dateFormat("%H%M%S%L",c)&&(m[c]="day")})}h.info=w(b,{higherRanks:m,totalRange:e*c});return h};J.prototype.getDateFormat=function(b,f,d,k){var u=this.dateFormat("%m-%d %H:%M:%S.%L",f),p={millisecond:15,second:12,minute:9,hour:6,day:3},m="millisecond";for(q in g){if(b===g.week&&+this.dateFormat("%w",f)===d&&"00:00:00.000"===u.substr(6)){var q="week";break}if(g[q]>b){q=m;break}if(p[q]&&u.substr(p[q])!=="01-01 00:00:00.000".substr(p[q]))break;
|
|
43
|
+
"week"!==q&&(m=q)}if(q)var e=this.resolveDTLFormat(k[q]).main;return e};return J}();"";return v});I(a,"Core/DefaultOptions.js",[a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){v=v.parse;var r=w.merge,t={colors:y.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),
|
|
44
|
+
shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:a,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
|
|
45
|
+
caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:y.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:y.neutralColor40,borderRadius:0,navigation:{activeColor:y.highlightColor100,inactiveColor:y.neutralColor20},itemStyle:{color:y.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},
|
|
46
|
+
itemHoverStyle:{color:y.neutralColor100},itemHiddenStyle:{color:y.neutralColor20},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:y.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:A.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
|
|
47
|
+
second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:A.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:v(y.neutralColor3).setOpacity(.85).get(),borderWidth:1,
|
|
48
|
+
shadow:!0,stickOnContact:!1,style:{color:y.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:y.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};t.chart.styledMode=!1;"";var l=new z(r(t.global,t.time));a={defaultOptions:t,defaultTime:l,getOptions:function(){return t},setOptions:function(h){r(!0,t,h);if(h.time||h.global)A.time?
|
|
49
|
+
A.time.update(r(t.global,t.time,h.global,h.time)):A.time=l;return t}};"";return a});I(a,"Core/Animation/Fx.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A){var r=a.parse,z=v.win,w=A.isNumber,D=A.objectEach;return function(){function a(a,h,d){this.pos=NaN;this.options=h;this.elem=a;this.prop=d}a.prototype.dSetter=function(){var a=this.paths,h=a&&a[0];a=a&&a[1];var d=this.now||0,b=[];if(1!==d&&h&&a)if(h.length===a.length&&1>d)for(var g=0;g<a.length;g++){for(var p=
|
|
50
|
+
h[g],k=a[g],J=[],G=0;G<k.length;G++){var f=p[G],B=k[G];w(f)&&w(B)&&("A"!==k[0]||4!==G&&5!==G)?J[G]=f+d*(B-f):J[G]=B}b.push(J)}else b=a;else b=this.toD||[];this.elem.attr("d",b,void 0,!0)};a.prototype.update=function(){var a=this.elem,h=this.prop,d=this.now,b=this.options.step;if(this[h+"Setter"])this[h+"Setter"]();else a.attr?a.element&&a.attr(h,d,null,!0):a.style[h]=d+this.unit;b&&b.call(a,d,this)};a.prototype.run=function(l,h,d){var b=this,g=b.options,p=function(g){return p.stopped?!1:b.step(g)},
|
|
51
|
+
k=z.requestAnimationFrame||function(b){setTimeout(b,13)},J=function(){for(var b=0;b<a.timers.length;b++)a.timers[b]()||a.timers.splice(b--,1);a.timers.length&&k(J)};l!==h||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=l,this.end=h,this.unit=d,this.now=this.start,this.pos=0,p.elem=this.elem,p.prop=this.prop,p()&&1===a.timers.push(p)&&k(J)):(delete g.curAnim[this.prop],g.complete&&0===Object.keys(g.curAnim).length&&g.complete.call(this.elem))};a.prototype.step=function(a){var h=
|
|
52
|
+
+new Date,d=this.options,b=this.elem,g=d.complete,p=d.duration,k=d.curAnim;if(b.attr&&!b.element)a=!1;else if(a||h>=p+this.startTime){this.now=this.end;this.pos=1;this.update();var J=k[this.prop]=!0;D(k,function(b){!0!==b&&(J=!1)});J&&g&&g.call(b);a=!1}else this.pos=d.easing((h-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,h,d){function b(b,f){for(;b.length<x;){var m=b[0],q=f[x-b.length];q&&"M"===m[0]&&(b[0]="C"===
|
|
53
|
+
q[0]?["C",m[1],m[2],m[1],m[2],m[1],m[2]]:["L",m[1],m[2]]);b.unshift(m);J&&(m=b.pop(),b.push(b[b.length-1],m))}}function g(b,f){for(;b.length<x;)if(f=b[Math.floor(b.length/G)-1].slice(),"C"===f[0]&&(f[1]=f[5],f[2]=f[6]),J){var m=b[Math.floor(b.length/G)].slice();b.splice(b.length/2,0,f,m)}else b.push(f)}var p=a.startX,k=a.endX;d=d.slice();var J=a.isArea,G=J?2:1;h=h&&h.slice();if(!h)return[d,d];if(p&&k&&k.length){for(a=0;a<p.length;a++)if(p[a]===k[0]){var f=a;break}else if(p[0]===k[k.length-p.length+
|
|
54
|
+
a]){f=a;var B=!0;break}else if(p[p.length-1]===k[k.length-p.length+a]){f=p.length-a;break}"undefined"===typeof f&&(h=[])}if(h.length&&w(f)){var x=d.length+f*G;B?(b(h,d),g(d,h)):(b(d,h),g(h,d))}return[h,d]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,r(this.start).tweenTo(r(this.end),this.pos),null,!0)};a.timers=[];return a}()});I(a,"Core/Animation/AnimationUtilities.js",[a["Core/Animation/Fx.js"],a["Core/Utilities.js"]],
|
|
55
|
+
function(a,v){function r(b){return l(b)?h({duration:500,defer:0},b):{duration:b?500:0,defer:0}}function y(b,d){for(var g=a.timers.length;g--;)a.timers[g].elem!==b||d&&d!==a.timers[g].prop||(a.timers[g].stopped=!0)}var z=v.defined,w=v.getStyle,D=v.isArray,t=v.isNumber,l=v.isObject,h=v.merge,d=v.objectEach,b=v.pick;return{animate:function(b,p,k){var g,G="",f,B;if(!l(k)){var x=arguments;k={duration:x[2],easing:x[3],complete:x[4]}}t(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?
|
|
56
|
+
k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=h(p);d(p,function(d,h){y(b,h);B=new a(b,k,h);f=void 0;"d"===h&&D(p.d)?(B.paths=B.initPath(b,b.pathArray,p.d),B.toD=p.d,g=0,f=1):b.attr?g=b.attr(h):(g=parseFloat(w(b,h))||0,"opacity"!==h&&(G="px"));f||(f=d);"string"===typeof f&&f.match("px")&&(f=f.replace(/px/g,""));B.run(g,f,G)})},animObject:r,getDeferredAnimation:function(b,d,k){var g=r(d),p=0,f=0;(k?[k]:b.series).forEach(function(b){b=r(b.options.animation);p=d&&z(d.defer)?g.defer:Math.max(p,
|
|
57
|
+
b.duration+b.defer);f=Math.min(g.duration,b.duration)});b.renderer.forExport&&(p=0);return{defer:Math.max(0,p-f),duration:Math.min(p,f)}},setAnimation:function(g,d){d.renderer.globalAnimation=b(g,d.options.chart.animation,!0)},stop:y}});I(a,"Core/Renderer/HTML/AST.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=a.SVG_NS,y=v.attr,z=v.createElement,w=v.discardElement,D=v.error,t=v.isString,l=v.objectEach,h=v.splat;try{var d=!!(new DOMParser).parseFromString("","text/html")}catch(b){d=
|
|
58
|
+
!1}v=function(){function b(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}b.filterUserAttributes=function(g){l(g,function(d,k){var p=!0;-1===b.allowedAttributes.indexOf(k)&&(p=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(k)&&(p=t(d)&&b.allowedReferences.some(function(b){return 0===d.indexOf(b)}));p||(D("Highcharts warning: Invalid attribute '"+k+"' in config"),delete g[k])});return g};b.setElementHTML=function(g,d){g.innerHTML="";d&&(new b(d)).addToDOM(g)};b.prototype.addToDOM=
|
|
59
|
+
function(d){function g(d,p){var k;h(d).forEach(function(f){var d=f.tagName,h=f.textContent?a.doc.createTextNode(f.textContent):void 0;if(d)if("#text"===d)var u=h;else if(-1!==b.allowedTags.indexOf(d)){d=a.doc.createElementNS("svg"===d?r:p.namespaceURI||r,d);var E=f.attributes||{};l(f,function(b,f){"tagName"!==f&&"attributes"!==f&&"children"!==f&&"textContent"!==f&&(E[f]=b)});y(d,b.filterUserAttributes(E));h&&d.appendChild(h);g(f.children||[],d);u=d}else D("Highcharts warning: Invalid tagName '"+d+
|
|
60
|
+
"' in config");u&&p.appendChild(u);k=u});return k}return g(this.nodes,d)};b.prototype.parseMarkup=function(b){var g=[];b=b.trim();if(d)b=(new DOMParser).parseFromString(b,"text/html");else{var k=z("div");k.innerHTML=b;b={body:k}}var h=function(b,f){var d=b.nodeName.toLowerCase(),g={tagName:d};"#text"===d&&(g.textContent=b.textContent||"");if(d=b.attributes){var k={};[].forEach.call(d,function(b){k[b.name]=b.value});g.attributes=k}if(b.childNodes.length){var p=[];[].forEach.call(b.childNodes,function(b){h(b,
|
|
61
|
+
p)});p.length&&(g.children=p)}f.push(g)};[].forEach.call(b.body.childNodes,function(b){return h(b,g)});k&&w(k);return g};b.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 x2 y y1 y2 zIndex".split(" ");
|
|
62
|
+
b.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");b.allowedTags="a b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");return b}();"";return v});I(a,"Core/FormatUtilities.js",[a["Core/DefaultOptions.js"],
|
|
63
|
+
a["Core/Utilities.js"]],function(a,v){function r(h,d,b,g){h=+h||0;d=+d;var p=y.lang,k=(h.toString().split(".")[1]||"").split("e")[0].length,a=h.toString().split("e"),G=d;if(-1===d)d=Math.min(k,20);else if(!D(d))d=2;else if(d&&a[1]&&0>a[1]){var f=d+ +a[1];0<=f?(a[0]=(+a[0]).toExponential(f).split("e")[0],d=f):(a[0]=a[0].split(".")[0]||0,h=20>d?(a[0]*Math.pow(10,a[1])).toFixed(d):0,a[1]=0)}f=(Math.abs(a[1]?a[0]:h)+Math.pow(10,-Math.max(d,k)-1)).toFixed(d);k=String(l(f));var B=3<k.length?k.length%3:
|
|
64
|
+
0;b=t(b,p.decimalPoint);g=t(g,p.thousandsSep);h=(0>h?"-":"")+(B?k.substr(0,B)+g:"");h=0>+a[1]&&!G?"0":h+k.substr(B).replace(/(\d{3})(?=\d)/g,"$1"+g);d&&(h+=b+f.slice(-d));a[1]&&0!==+h&&(h+="e"+a[1]);return h}var y=a.defaultOptions,z=a.defaultTime,w=v.getNestedProperty,D=v.isNumber,t=v.pick,l=v.pInt;return{dateFormat:function(a,d,b){return z.dateFormat(a,d,b)},format:function(a,d,b){var g="{",p=!1,k=/f$/,h=/\.([0-9])/,t=y.lang,f=b&&b.time||z;b=b&&b.numberFormatter||r;for(var B=[];a;){var x=a.indexOf(g);
|
|
65
|
+
if(-1===x)break;var u=a.slice(0,x);if(p){u=u.split(":");g=w(u.shift()||"",d);if(u.length&&"number"===typeof g)if(u=u.join(":"),k.test(u)){var E=parseInt((u.match(h)||["","-1"])[1],10);null!==g&&(g=b(g,E,t.decimalPoint,-1<u.indexOf(",")?t.thousandsSep:""))}else g=f.dateFormat(u,g);B.push(g)}else B.push(u);a=a.slice(x+1);g=(p=!p)?"}":"{"}B.push(a);return B.join("")},numberFormat:r}});I(a,"Core/Renderer/RendererUtilities.js",[a["Core/Utilities.js"]],function(a){var r=a.clamp,A=a.pick,y=a.stableSort,
|
|
66
|
+
z;(function(a){function w(a,l,h){var d=a,b=d.reducedLen||l,g=function(b,f){return(f.rank||0)-(b.rank||0)},p=function(b,f){return b.target-f.target},k,J=!0,G=[],f=0;for(k=a.length;k--;)f+=a[k].size;if(f>b){y(a,g);for(f=k=0;f<=b;)f+=a[k].size,k++;G=a.splice(k-1,a.length)}y(a,p);for(a=a.map(function(b){return{size:b.size,targets:[b.target],align:A(b.align,.5)}});J;){for(k=a.length;k--;)b=a[k],g=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=r(g-b.size*b.align,0,l-b.size);k=a.length;
|
|
67
|
+
for(J=!1;k--;)0<k&&a[k-1].pos+a[k-1].size>a[k].pos&&(a[k-1].size+=a[k].size,a[k-1].targets=a[k-1].targets.concat(a[k].targets),a[k-1].align=.5,a[k-1].pos+a[k-1].size>l&&(a[k-1].pos=l-a[k-1].size),a.splice(k,1),J=!0)}d.push.apply(d,G);k=0;a.some(function(b){var f=0;return(b.targets||[]).some(function(){d[k].pos=b.pos+f;if("undefined"!==typeof h&&Math.abs(d[k].pos-d[k].target)>h)return d.slice(0,k+1).forEach(function(b){return delete b.pos}),d.reducedLen=(d.reducedLen||l)-.1*l,d.reducedLen>.1*l&&w(d,
|
|
68
|
+
l,h),!0;f+=d[k].size;k++;return!1})});y(d,p);return d}a.distribute=w})(z||(z={}));return z});I(a,"Core/Renderer/SVG/SVGElement.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=a.animate,t=a.animObject,l=a.stop,h=y.deg2rad,d=y.doc,b=y.noop,g=y.svg,p=y.SVG_NS,k=y.win,J=w.addEvent,G=w.attr,f=w.createElement,B=w.css,x=w.defined,u=w.erase,E=w.extend,
|
|
69
|
+
m=w.fireEvent,q=w.isArray,e=w.isFunction,c=w.isNumber,n=w.isString,C=w.merge,H=w.objectEach,L=w.pick,F=w.pInt,W=w.syncTimeout,S=w.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=p;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(c){c=L(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));
|
|
70
|
+
return c};a.prototype._defaultSetter=function(c,b,e){e.setAttribute(b,c)};a.prototype.add=function(c){var b=this.renderer,e=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&b.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var n=this.zIndexSetter();n||(c?c.element:b.box).appendChild(e);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(c,b){var e=b?"":this.attr("class")||"";c=(c||
|
|
71
|
+
"").split(/ /g).reduce(function(c,b){-1===e.indexOf(b)&&c.push(b);return c},e?[e]:[]).join(" ");c!==e&&this.attr("class",c);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(c,b,e){var f={},a=this.renderer,N=a.alignedObjects,d,q,m;if(c){if(this.alignOptions=c,this.alignByTranslate=b,!e||n(e))this.alignTo=d=e||"renderer",u(N,this),N.push(this),e=void 0}else c=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;
|
|
72
|
+
e=L(e,a[d],"scrollablePlotBox"===d?a.plotBox:void 0,a);d=c.align;var g=c.verticalAlign;a=(e.x||0)+(c.x||0);N=(e.y||0)+(c.y||0);"right"===d?q=1:"center"===d&&(q=2);q&&(a+=(e.width-(c.width||0))/q);f[b?"translateX":"x"]=Math.round(a);"bottom"===g?m=1:"middle"===g&&(m=2);m&&(N+=(e.height-(c.height||0))/m);f[b?"translateY":"y"]=Math.round(N);this[this.placed?"animate":"attr"](f);this.placed=!0;this.alignAttr=f;return this};a.prototype.alignSetter=function(c){var b={left:"start",center:"middle",right:"end"};
|
|
73
|
+
b[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",b[c]))};a.prototype.animate=function(c,b,e){var n=this,f=t(L(b,this.renderer.globalAnimation,!0));b=f.defer;L(d.hidden,d.msHidden,d.webkitHidden,!1)&&(f.duration=0);0!==f.duration?(e&&(f.complete=e),W(function(){n.element&&r(n,c,f)},b)):(this.attr(c,void 0,e),H(c,function(c,b){f.step&&f.step.call(this,c,{prop:b,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(c){var b=this.element;-1!==c.indexOf("contrast")&&
|
|
74
|
+
(c=c.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var e=c.split(" ");c=e[e.length-1];if((e=e[0])&&"none"!==e&&y.svg){this.fakeTS=!0;this.ySetter=this.xSetter;e=e.replace(/(^[\d\.]+)(.*?)$/g,function(c,b,e){return 2*Number(b)+e});this.removeTextOutline();var n=d.createElementNS(p,"tspan");G(n,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":e,"stroke-linejoin":"round"});[].forEach.call(b.childNodes,function(c){var b=c.cloneNode(!0);b.removeAttribute&&["fill","stroke",
|
|
75
|
+
"stroke-width","stroke"].forEach(function(c){return b.removeAttribute(c)});n.appendChild(b)});var f=d.createElementNS(p,"tspan");f.textContent="\u200b";["x","y"].forEach(function(c){var e=b.getAttribute(c);e&&f.setAttribute(c,e)});n.appendChild(f);b.insertBefore(n,b.firstChild)}};a.prototype.attr=function(c,b,e,n){var f=this.element,a=this.symbolCustomAttribs,d,N=this,q,M;if("string"===typeof c&&"undefined"!==typeof b){var m=c;c={};c[m]=b}"string"===typeof c?N=(this[c+"Getter"]||this._defaultGetter).call(this,
|
|
76
|
+
c,f):(H(c,function(b,e){q=!1;n||l(this,e);this.symbolName&&-1!==a.indexOf(e)&&(d||(this.symbolAttr(c),d=!0),q=!0);!this.rotation||"x"!==e&&"y"!==e||(this.doTransform=!0);q||(M=this[e+"Setter"]||this._defaultSetter,M.call(this,b,e,f),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(e)&&this.updateShadows(e,b,M))},this),this.afterSetters());e&&e.call(this);return N};a.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+
|
|
77
|
+
")":"none")};a.prototype.crisp=function(c,e){e=e||c.strokeWidth||0;var b=Math.round(e)%2/2;c.x=Math.floor(c.x||this.x||0)+b;c.y=Math.floor(c.y||this.y||0)+b;c.width=Math.floor((c.width||this.width||0)-2*b);c.height=Math.floor((c.height||this.height||0)-2*b);x(c.strokeWidth)&&(c.strokeWidth=e);return c};a.prototype.complexColor=function(c,e,b){var n=this.renderer,f,a,d,N,g,k,p,u,h,B,E=[],F;m(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?a="radialGradient":c.linearGradient&&
|
|
78
|
+
(a="linearGradient");if(a){d=c[a];g=n.gradients;k=c.stops;h=b.radialReference;q(d)&&(c[a]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===a&&h&&!x(d.gradientUnits)&&(N=d,d=C(d,n.getRadialAttr(h,N),{gradientUnits:"userSpaceOnUse"}));H(d,function(c,b){"id"!==b&&E.push(b,c)});H(k,function(c){E.push(c)});E=E.join(",");if(g[E])B=g[E].attr("id");else{d.id=B=S();var m=g[E]=n.createElement(a).attr(d).add(n.defs);m.radAttr=N;m.stops=[];k.forEach(function(c){0===c[1].indexOf("rgba")?
|
|
79
|
+
(f=A.parse(c[1]),p=f.get("rgb"),u=f.get("a")):(p=c[1],u=1);c=n.createElement("stop").attr({offset:c[0],"stop-color":p,"stop-opacity":u}).add(m);m.stops.push(c)})}F="url("+n.url+"#"+B+")";b.setAttribute(e,F);b.gradient=E;c.toString=function(){return F}}})};a.prototype.css=function(c){var b=this.styles,e={},n=this.element,f=["textOutline","textOverflow","width"],a="",d=!b;c&&c.color&&(c.fill=c.color);b&&H(c,function(c,n){b&&b[n]!==c&&(e[n]=c,d=!0)});if(d){b&&(c=E(b,e));if(c)if(null===c.width||"auto"===
|
|
80
|
+
c.width)delete this.textWidth;else if("text"===n.nodeName.toLowerCase()&&c.width)var q=this.textWidth=F(c.width);this.styles=c;q&&!g&&this.renderer.forExport&&delete c.width;if(n.namespaceURI===this.SVG_NS){var m=function(c,b){return"-"+b.toLowerCase()};H(c,function(c,b){-1===f.indexOf(b)&&(a+=b.replace(/([A-Z])/g,m)+":"+c+";")});a&&G(n,"style",a)}else B(n,c);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c&&c.textOutline&&this.applyTextOutline(c.textOutline))}return this};
|
|
81
|
+
a.prototype.dashstyleSetter=function(c){var b=this["stroke-width"];"inherit"===b&&(b=1);if(c=c&&c.toLowerCase()){var e=c.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=e.length;c--;)e[c]=""+F(e[c])*L(b,NaN);c=e.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};a.prototype.destroy=
|
|
82
|
+
function(){var c=this,b=c.element||{},e=c.renderer,n=b.ownerSVGElement,f=e.isSVG&&"SPAN"===b.nodeName&&c.parentGroup||void 0;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;l(c);if(c.clipPath&&n){var a=c.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(a.element.id)&&c.removeAttribute("clip-path")});c.clipPath=a.destroy()}if(c.stops){for(n=0;n<c.stops.length;n++)c.stops[n].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(b);
|
|
83
|
+
for(e.styledMode||c.destroyShadows();f&&f.div&&0===f.div.childNodes.length;)b=f.parentGroup,c.safeRemoveChild(f.div),delete f.div,f=b;c.alignTo&&u(e.alignedObjects,c);H(c,function(b,e){c[e]&&c[e].parentGroup===c&&c[e].destroy&&c[e].destroy();delete c[e]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};a.prototype.destroyTextPath=function(c,b){var e=c.getElementsByTagName("text")[0];if(e){if(e.removeAttribute("dx"),
|
|
84
|
+
e.removeAttribute("dy"),b.element.setAttribute("id",""),this.textPathWrapper&&e.getElementsByTagName("textPath").length){for(c=this.textPathWrapper.element.childNodes;c.length;)e.appendChild(c[0]);e.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};a.prototype.dSetter=function(c,b,e){q(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),
|
|
85
|
+
this.pathArray=c,c=c.reduce(function(c,b,e){return b&&b.join?(e?c+" ":"")+b.join(" "):(b||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[b]!==c&&(e.setAttribute(b,c),this[b]=c)};a.prototype.fadeOut=function(c){var b=this;b.animate({opacity:0},{duration:L(c,150),complete:function(){b.attr({y:-9999}).hide()}})};a.prototype.fillSetter=function(c,b,e){"string"===typeof c?e.setAttribute(b,c):c&&this.complexColor(c,b,e)};a.prototype.getBBox=function(c,b){var n=this.renderer,f=this.element,
|
|
86
|
+
d=this.styles,q=this.textStr,m=n.cache,g=n.cacheKeys,k=f.namespaceURI===this.SVG_NS;b=L(b,this.rotation,0);var p=n.styledMode?f&&a.prototype.getStyle.call(f,"font-size"):d&&d.fontSize,C;if(x(q)){var u=q.toString();-1===u.indexOf("<")&&(u=u.replace(/[0-9]/g,"0"));u+=["",b,p,this.textWidth,d&&d.textOverflow,d&&d.fontWeight].join()}u&&!c&&(C=m[u]);if(!C){if(k||n.forExport){try{var H=this.fakeTS&&function(c){var b=f.querySelector(".highcharts-text-outline");b&&B(b,{display:c})};e(H)&&H("none");C=f.getBBox?
|
|
87
|
+
E({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight};e(H)&&H("")}catch(Y){""}if(!C||0>C.width)C={width:0,height:0}}else C=this.htmlGetBBox();n.isSVG&&(c=C.width,n=C.height,k&&(C.height=n={"11px,17":14,"13px,20":16}[d&&d.fontSize+","+Math.round(n)]||n),b&&(d=b*h,C.width=Math.abs(n*Math.sin(d))+Math.abs(c*Math.cos(d)),C.height=Math.abs(n*Math.cos(d))+Math.abs(c*Math.sin(d))));if(u&&(""===q||0<C.height)){for(;250<g.length;)delete m[g.shift()];m[u]||g.push(u);m[u]=C}}return C};a.prototype.getStyle=
|
|
88
|
+
function(c){return k.getComputedStyle(this.element||this,"").getPropertyValue(c)};a.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};a.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};a.prototype.init=function(c,b){this.element="span"===b?f(b):d.createElementNS(this.SVG_NS,b);this.renderer=c;m(this,"afterInit")};a.prototype.invert=function(c){this.inverted=
|
|
89
|
+
c;this.updateTransform();return this};a.prototype.on=function(c,b){var e=this.onEvents;if(e[c])e[c]();e[c]=J(this.element,c,b);return this};a.prototype.opacitySetter=function(c,b,e){this.opacity=c=Number(Number(c).toFixed(3));e.setAttribute(b,c)};a.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(n(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};a.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");
|
|
90
|
+
c&&this.safeRemoveChild(c)};a.prototype.safeRemoveChild=function(c){var b=c.parentNode;b&&b.removeChild(c)};a.prototype.setRadialReference=function(c){var b=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(c,b.radAttr));return this};a.prototype.setTextPath=function(e,n){var f=this.element,a=this.text?this.text.element:f,d={textAnchor:"text-anchor"},q=!1,m=this.textPathWrapper,g=!m;n=C(!0,{enabled:!0,
|
|
91
|
+
attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},n);var k=v.filterUserAttributes(n.attributes);if(e&&n&&n.enabled){m&&null===m.element.parentNode?(g=!0,m=m.destroy()):m&&this.removeTextOutline.call(m.parentGroup);this.options&&this.options.padding&&(k.dx=-this.options.padding);m||(this.textPathWrapper=m=this.renderer.createElement("textPath"),q=!0);var u=m.element;(n=e.element.getAttribute("id"))||e.element.setAttribute("id",n=S());if(g)for(a.setAttribute("y",0),c(k.dx)&&a.setAttribute("x",
|
|
92
|
+
-k.dx),e=[].slice.call(a.childNodes),g=0;g<e.length;g++){var p=e[g];p.nodeType!==Node.TEXT_NODE&&"tspan"!==p.nodeName||u.appendChild(p)}q&&m&&m.add({element:a});u.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+n);x(k.dy)&&(u.parentNode.setAttribute("dy",k.dy),delete k.dy);x(k.dx)&&(u.parentNode.setAttribute("dx",k.dx),delete k.dx);H(k,function(c,b){u.setAttribute(d[b]||b,c)});f.removeAttribute("transform");this.removeTextOutline.call(m);this.text&&!this.renderer.styledMode&&
|
|
93
|
+
this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=b}else m&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(f,e),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};a.prototype.shadow=function(c,b,e){var n=[],f=this.element,a=this.oldShadowOptions,d={color:z.neutralColor100,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},
|
|
94
|
+
m=!1,q;!0===c?q=d:"object"===typeof c&&(q=E(d,c));q&&(q&&a&&H(q,function(c,b){c!==a[b]&&(m=!0)}),m&&this.destroyShadows(),this.oldShadowOptions=q);if(!q)this.destroyShadows();else if(!this.shadows){var g=q.opacity/q.width;var N=this.parentInverted?"translate("+q.offsetY+", "+q.offsetX+")":"translate("+q.offsetX+", "+q.offsetY+")";for(d=1;d<=q.width;d++){var k=f.cloneNode(!1);var C=2*q.width+1-2*d;G(k,{stroke:c.color||z.neutralColor100,"stroke-opacity":g*d,"stroke-width":C,transform:N,fill:"none"});
|
|
95
|
+
k.setAttribute("class",(k.getAttribute("class")||"")+" highcharts-shadow");e&&(G(k,"height",Math.max(G(k,"height")-C,0)),k.cutHeight=C);b?b.element.appendChild(k):f.parentNode&&f.parentNode.insertBefore(k,f);n.push(k)}this.shadows=n}return this};a.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};a.prototype.strokeSetter=function(c,b,e){this[b]=c;this.stroke&&this["stroke-width"]?(a.prototype.fillSetter.call(this,this.stroke,"stroke",e),e.setAttribute("stroke-width",
|
|
96
|
+
this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===c&&this.hasStroke?(e.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(e.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),b=0;if(c.indexOf("px")===c.length-2)b=F(c);else if(""!==c){var e=d.createElementNS(p,"rect");G(e,{width:c,"stroke-width":0});
|
|
97
|
+
this.element.parentNode.appendChild(e);b=e.getBBox().width;e.parentNode.removeChild(e)}return b};a.prototype.symbolAttr=function(c){var b=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(e){b[e]=L(c[e],b[e])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})};a.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};a.prototype.titleSetter=function(c){var b=
|
|
98
|
+
this.element,e=b.getElementsByTagName("title")[0]||d.createElementNS(this.SVG_NS,"title");b.insertBefore?b.insertBefore(e,b.firstChild):b.appendChild(e);e.textContent=String(L(c,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")};a.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};a.prototype.translate=function(c,b){return this.attr({translateX:c,translateY:b})};a.prototype.updateShadows=function(c,b,e){var n=this.shadows;if(n)for(var f=n.length;f--;)e.call(n[f],
|
|
99
|
+
"height"===c?Math.max(b-(n[f].cutHeight||0),0):"d"===c?this.d:b,c,n[f])};a.prototype.updateTransform=function(){var c=this.scaleX,b=this.scaleY,e=this.inverted,n=this.rotation,f=this.matrix,a=this.element,d=this.translateX||0,q=this.translateY||0;e&&(d+=this.width,q+=this.height);d=["translate("+d+","+q+")"];x(f)&&d.push("matrix("+f.join(",")+")");e?d.push("rotate(90) scale(-1,1)"):n&&d.push("rotate("+n+" "+L(this.rotationOriginX,a.getAttribute("x"),0)+" "+L(this.rotationOriginY,a.getAttribute("y")||
|
|
100
|
+
0)+")");(x(c)||x(b))&&d.push("scale("+L(c,1)+" "+L(b,1)+")");d.length&&a.setAttribute("transform",d.join(" "))};a.prototype.visibilitySetter=function(c,b,e){"inherit"===c?e.removeAttribute(b):this[b]!==c&&e.setAttribute(b,c);this[b]=c};a.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};a.prototype.zIndexSetter=function(c,b){var e=this.renderer,n=this.parentGroup,f=(n||e).element||e.box,a=this.element;e=f===e.box;var d=
|
|
101
|
+
!1;var q=this.added;var m;x(c)?(a.setAttribute("data-z-index",c),c=+c,this[b]===c&&(q=!1)):x(this[b])&&a.removeAttribute("data-z-index");this[b]=c;if(q){(c=this.zIndex)&&n&&(n.handleZ=!0);b=f.childNodes;for(m=b.length-1;0<=m&&!d;m--){n=b[m];q=n.getAttribute("data-z-index");var g=!x(q);if(n!==a)if(0>c&&g&&!e&&!m)f.insertBefore(a,b[m]),d=!0;else if(F(q)<=c||g&&(!x(c)||0<=c))f.insertBefore(a,b[m+1]||null),d=!0}d||(f.insertBefore(a,b[e?3:0]||null),d=!0)}return d};return a}();a.prototype["stroke-widthSetter"]=
|
|
102
|
+
a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(c,b){this[b]=c;this.doTransform=!0};"";return a});I(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var r;(function(r){r.rendererTypes={};var v;
|
|
103
|
+
r.getRendererType=function(a){void 0===a&&(a=v);return r.rendererTypes[a]||r.rendererTypes[v]};r.registerRendererType=function(y,w,D){r.rendererTypes[y]=w;if(!v||D)v=y,a.Renderer=w}})(r||(r={}));return r});I(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&
|
|
104
|
+
(b[d]=a[d])};return a(d,b)};return function(d,b){function g(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),y=v.defined,z=v.extend,w=v.isNumber,D=v.merge,t=v.pick,l=v.removeEvent;return function(h){function d(b,a,p,k,l,G,f,B,x,u){var g=h.call(this)||this;g.paddingLeftSetter=g.paddingSetter;g.paddingRightSetter=g.paddingSetter;g.init(b,"g");g.textStr=a;g.x=p;g.y=k;g.anchorX=G;g.anchorY=f;g.baseline=x;g.className=u;g.addClass("button"===u?"highcharts-no-tooltip":
|
|
105
|
+
"highcharts-label");u&&g.addClass("highcharts-"+u);g.text=b.text(void 0,0,0,B).attr({zIndex:1});var m;"string"===typeof l&&((m=/^url\((.*?)\)$/.test(l))||g.renderer.symbols[l])&&(g.symbolKey=l);g.bBox=d.emptyBBox;g.padding=3;g.baselineOffset=0;g.needsBox=b.styledMode||m;g.deferredAttr={};g.alignFactor=0;return g}r(d,h);d.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&w(this.xSetting)&&this.attr({x:this.xSetting}))};d.prototype.anchorXSetter=
|
|
106
|
+
function(b,a){this.anchorX=b;this.boxAttr(a,Math.round(b)-this.getCrispAdjust()-this.xSetting)};d.prototype.anchorYSetter=function(b,a){this.anchorY=b;this.boxAttr(a,b-this.ySetting)};d.prototype.boxAttr=function(b,a){this.box?this.box.attr(b,a):this.deferredAttr[b]=a};d.prototype.css=function(b){if(b){var g={};b=D(b);d.textProps.forEach(function(a){"undefined"!==typeof b[a]&&(g[a]=b[a],delete b[a])});this.text.css(g);var p="width"in g;"fontSize"in g||"fontWeight"in g?this.updateTextPadding():p&&
|
|
107
|
+
this.updateBoxSize()}return a.prototype.css.call(this,b)};d.prototype.destroy=function(){l(this.element,"mouseenter");l(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};d.prototype.fillSetter=function(b,a){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(a,b)};d.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,a=t(this.paddingLeft,b);return{width:this.width,
|
|
108
|
+
height:this.height,x:this.bBox.x-a,y:this.bBox.y-b}};d.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};d.prototype.heightSetter=function(b){this.heightSetting=b};d.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:y(b)?b:"",x:this.x,y:this.y});this.box&&y(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};d.prototype.paddingSetter=
|
|
109
|
+
function(b,a){w(b)?b!==this[a]&&(this[a]=b,this.updateTextPadding()):this[a]=void 0};d.prototype.rSetter=function(b,a){this.boxAttr(a,b)};d.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(b));return this};d.prototype.strokeSetter=function(b,a){this.stroke=b;this.boxAttr(a,b)};d.prototype["stroke-widthSetter"]=function(b,a){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(a,b)};d.prototype["text-alignSetter"]=function(b){this.textAlign=
|
|
110
|
+
b};d.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};d.prototype.updateBoxSize=function(){var b=this.text.element.style,a={},p=this.padding,k=this.bBox=w(this.widthSetting)&&w(this.heightSetting)&&!this.textAlign||!y(this.text.textStr)?d.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||k.height||0)+2*p;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=p+Math.min((this.text.firstLineMetrics||
|
|
111
|
+
b).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(p=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),p.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),p.add(this)),p=this.getCrispAdjust(),a.x=p,a.y=(this.baseline?-this.baselineOffset:0)+p,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(z(a,this.deferredAttr)),
|
|
112
|
+
this.deferredAttr={})};d.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,d=t(this.paddingLeft,this.padding);y(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==b.x||a!==b.y)b.attr("x",d),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof a&&b.attr("y",a);b.x=d;b.y=a};d.prototype.widthSetter=function(b){this.widthSetting=
|
|
113
|
+
w(b)?b:void 0};d.prototype.getPaddedWidth=function(){var b=this.padding,a=t(this.paddingLeft,b);b=t(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+a+b};d.prototype.xSetter=function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};d.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};d.emptyBBox={width:0,height:0,
|
|
114
|
+
x:0,y:0};d.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return d}(a)});I(a,"Core/Renderer/SVG/Symbols.js",[a["Core/Utilities.js"]],function(a){function r(a,l,h,d,b){var g=[];if(b){var p=b.start||0,k=D(b.r,h);h=D(b.r,d||h);var J=(b.end||0)-.001;d=b.innerR;var G=D(b.open,.001>Math.abs((b.end||0)-p-2*Math.PI)),f=Math.cos(p),B=Math.sin(p),x=Math.cos(J),u=Math.sin(J);p=D(b.longArc,.001>J-p-Math.PI?0:1);
|
|
115
|
+
g.push(["M",a+k*f,l+h*B],["A",k,h,0,p,D(b.clockwise,1),a+k*x,l+h*u]);z(d)&&g.push(G?["M",a+d*x,l+d*u]:["L",a+d*x,l+d*u],["A",d,d,0,p,z(b.clockwise)?1-b.clockwise:0,a+d*f,l+d*B]);G||g.push(["Z"])}return g}function A(a,l,h,d,b){return b&&b.r?y(a,l,h,d,b):[["M",a,l],["L",a+h,l],["L",a+h,l+d],["L",a,l+d],["Z"]]}function y(a,l,h,d,b){b=b&&b.r||0;return[["M",a+b,l],["L",a+h-b,l],["C",a+h,l,a+h,l,a+h,l+b],["L",a+h,l+d-b],["C",a+h,l+d,a+h,l+d,a+h-b,l+d],["L",a+b,l+d],["C",a,l+d,a,l+d,a,l+d-b],["L",a,l+b],
|
|
116
|
+
["C",a,l,a,l,a+b,l]]}var z=a.defined,w=a.isNumber,D=a.pick;return{arc:r,callout:function(a,l,h,d,b){var g=Math.min(b&&b.r||0,h,d),p=g+6,k=b&&b.anchorX;b=b&&b.anchorY||0;var J=y(a,l,h,d,{r:g});if(!w(k))return J;a+k>=h?b>l+p&&b<l+d-p?J.splice(3,1,["L",a+h,b-6],["L",a+h+6,b],["L",a+h,b+6],["L",a+h,l+d-g]):J.splice(3,1,["L",a+h,d/2],["L",k,b],["L",a+h,d/2],["L",a+h,l+d-g]):0>=a+k?b>l+p&&b<l+d-p?J.splice(7,1,["L",a,b+6],["L",a-6,b],["L",a,b-6],["L",a,l+g]):J.splice(7,1,["L",a,d/2],["L",k,b],["L",a,d/2],
|
|
117
|
+
["L",a,l+g]):b&&b>d&&k>a+p&&k<a+h-p?J.splice(5,1,["L",k+6,l+d],["L",k,l+d+6],["L",k-6,l+d],["L",a+g,l+d]):b&&0>b&&k>a+p&&k<a+h-p&&J.splice(1,1,["L",k-6,l],["L",k,l-6],["L",k+6,l],["L",h-g,l]);return J},circle:function(a,l,h,d){return r(a+h/2,l+d/2,h/2,d/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,l,h,d){return[["M",a+h/2,l],["L",a+h,l+d/2],["L",a+h/2,l+d],["L",a,l+d/2],["Z"]]},rect:A,roundedRect:y,square:A,triangle:function(a,l,h,d){return[["M",a+h/2,l],["L",a+h,l+d],["L",a,
|
|
118
|
+
l+d],["Z"]]},"triangle-down":function(a,l,h,d){return[["M",a,l],["L",a+h,l],["L",a+h/2,l+d],["Z"]]}}});I(a,"Core/Renderer/SVG/TextBuilder.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A){var r=v.doc,z=v.SVG_NS,w=A.attr,D=A.isString,t=A.objectEach,l=A.pick;return function(){function h(a){var b=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=b&&b.lineHeight;this.textOutline=b&&b.textOutline;this.ellipsis=
|
|
119
|
+
!(!b||"ellipsis"!==b.textOverflow);this.noWrap=!(!b||"nowrap"!==b.whiteSpace);this.fontSize=b&&b.fontSize}h.prototype.buildSVG=function(){var d=this.svgElement,b=d.element,g=d.renderer,p=l(d.textStr,"").toString(),k=-1!==p.indexOf("<"),h=b.childNodes;g=this.width&&!d.added&&g.box;var G=/<br.*?>/g,f=[p,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(f!==d.textCache){d.textCache=f;delete d.actualWidth;for(f=h.length;f--;)b.removeChild(h[f]);k||this.ellipsis||
|
|
120
|
+
this.width||-1!==p.indexOf(" ")&&(!this.noWrap||G.test(p))?""!==p&&(g&&g.appendChild(b),p=new a(p),this.modifyTree(p.nodes),p.addToDOM(d.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),g&&g.removeChild(b)):b.appendChild(r.createTextNode(this.unescapeEntities(p)));D(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var a=this,b=this.svgElement,
|
|
121
|
+
g=w(b.element,"x");b.firstLineMetrics=void 0;for(var p;p=b.element.firstChild;)if(/^[\s\u200B]*$/.test(p.textContent||" "))b.element.removeChild(p);else break;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(f,d){f.nextSibling&&f.previousSibling&&(0===d&&1===f.previousSibling.nodeType&&(b.firstLineMetrics=b.renderer.fontMetrics(void 0,f.previousSibling)),w(f,{dy:a.getLineHeight(f.nextSibling),x:g}))});var k=this.width||0;if(k){var h=function(f,d){var p=f.textContent||"",
|
|
122
|
+
u=p.replace(/([^\^])-/g,"$1- ").split(" "),h=!a.noWrap&&(1<u.length||1<b.element.childNodes.length),m=a.getLineHeight(d),q=0,e=b.actualWidth;if(a.ellipsis)p&&a.truncate(f,p,void 0,0,Math.max(0,k-parseInt(a.fontSize||12,10)),function(c,b){return c.substring(0,b)+"\u2026"});else if(h){p=[];for(h=[];d.firstChild&&d.firstChild!==f;)h.push(d.firstChild),d.removeChild(d.firstChild);for(;u.length;)u.length&&!a.noWrap&&0<q&&(p.push(f.textContent||""),f.textContent=u.join(" ").replace(/- /g,"-")),a.truncate(f,
|
|
123
|
+
void 0,u,0===q?e||0:0,k,function(c,b){return u.slice(0,b).join(" ").replace(/- /g,"-")}),e=b.actualWidth,q++;h.forEach(function(c){d.insertBefore(c,f)});p.forEach(function(c){d.insertBefore(r.createTextNode(c),f);c=r.createElementNS(z,"tspan");c.textContent="\u200b";w(c,{dy:m,x:g});d.insertBefore(c,f)})}},l=function(a){[].slice.call(a.childNodes).forEach(function(f){f.nodeType===Node.TEXT_NODE?h(f,a):(-1!==f.className.baseVal.indexOf("highcharts-br")&&(b.actualWidth=0),l(f))})};l(b.element)}};h.prototype.getLineHeight=
|
|
124
|
+
function(a){var b;a=a.nodeType===Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(b=a&&/(px|em)$/.test(a.style.fontSize)?a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(b,a||this.svgElement.element).h};h.prototype.modifyTree=function(a){var b=this,d=function(g,k){var h=g.tagName,p=b.renderer.styledMode,f=g.attributes||{};if("b"===h||"strong"===h)p?f["class"]="highcharts-strong":
|
|
125
|
+
f.style="font-weight:bold;"+(f.style||"");else if("i"===h||"em"===h)p?f["class"]="highcharts-emphasized":f.style="font-style:italic;"+(f.style||"");D(f.style)&&(f.style=f.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===h&&(f["class"]="highcharts-br",g.textContent="\u200b",(k=a[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,"")));"#text"!==h&&"a"!==h&&(g.tagName="tspan");g.attributes=f;g.children&&g.children.filter(function(b){return"#text"!==b.tagName}).forEach(d)};a.forEach(d)};
|
|
126
|
+
h.prototype.truncate=function(a,b,g,h,k,l){var d=this.svgElement,f=d.renderer,p=d.rotation,x=[],u=g?1:0,E=(b||g||"").length,m=E,q,e=function(c,e){e=e||c;var n=a.parentNode;if(n&&"undefined"===typeof x[e])if(n.getSubStringLength)try{x[e]=h+n.getSubStringLength(0,g?e+1:e)}catch(L){""}else f.getSpanWidth&&(a.textContent=l(b||g,c),x[e]=h+f.getSpanWidth(d,a));return x[e]};d.rotation=0;var c=e(a.textContent.length);if(h+c>k){for(;u<=E;)m=Math.ceil((u+E)/2),g&&(q=l(g,m)),c=e(m,q&&q.length-1),u===E?u=E+1:
|
|
127
|
+
c>k?E=m-1:u=m;0===E?a.textContent="":b&&E===b.length-1||(a.textContent=q||l(b||g,m))}g&&g.splice(0,m);d.actualWidth=c;d.rotation=p};h.prototype.unescapeEntities=function(a,b){t(this.renderer.escapes,function(d,h){b&&-1!==b.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),h))});return a};return h}()});I(a,"Core/Renderer/SVG/SVGRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],
|
|
128
|
+
a["Core/Renderer/SVG/SVGLabel.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Renderer/SVG/TextBuilder.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l,h){var d=A.charts,b=A.deg2rad,g=A.doc,p=A.isFirefox,k=A.isMS,J=A.isWebKit,G=A.noop,f=A.SVG_NS,B=A.symbolSizes,x=A.win,u=h.addEvent,E=h.attr,m=h.createElement,q=h.css,e=h.defined,c=h.destroyObjectProperties,n=h.extend,C=h.isArray,H=h.isNumber,L=h.isObject,F=h.isString,r=h.merge,S=h.pick,R=h.pInt,T=h.uniqueKey,ba;A=function(){function f(c,b,e,
|
|
129
|
+
a,n,f,d){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,b,e,a,n,f,d)}f.prototype.init=function(c,b,e,a,n,f,d){var m=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),k=m.element;d||m.css(this.getStyle(a));c.appendChild(k);E(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&E(k,"xmlns",this.SVG_NS);this.isSVG=
|
|
130
|
+
!0;this.box=k;this.boxWrapper=m;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 9.2.2"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=n;this.styledMode=d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,e,!1);var M;p&&c.getBoundingClientRect&&(b=function(){q(c,{left:0,top:0});M=c.getBoundingClientRect();q(c,{left:Math.ceil(M.left)-M.left+
|
|
131
|
+
"px",top:Math.ceil(M.top)-M.top+"px"})},b(),this.unSubPixelFix=u(x,"resize",b))};f.prototype.definition=function(c){return(new a([c])).addToDOM(this.defs.element)};f.prototype.getReferenceURL=function(){if((p||J)&&g.getElementsByTagName("base").length){if(!e(ba)){var c=T();c=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",
|
|
132
|
+
width:8,height:8,"clip-path":"url(#"+c+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(g.body);q(c,{position:"fixed",top:0,left:0,zIndex:9E5});var b=g.elementFromPoint(6,6);ba="hitme"===(b&&b.id);g.body.removeChild(c)}if(ba)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};f.prototype.getStyle=function(c){return this.style=n({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};f.prototype.setStyle=
|
|
133
|
+
function(c){this.boxWrapper.css(this.getStyle(c))};f.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};f.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};f.prototype.createElement=function(c){var b=new this.Element;b.init(this,c);return b};f.prototype.getRadialAttr=function(c,b){return{cx:c[0]-
|
|
134
|
+
c[2]/2+(b.cx||0)*c[2],cy:c[1]-c[2]/2+(b.cy||0)*c[2],r:(b.r||0)*c[2]}};f.prototype.buildText=function(c){(new l(c)).buildSVG()};f.prototype.getContrast=function(c){c=v.parse(c).rgba;c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};f.prototype.button=function(c,b,e,f,d,q,m,g,C,h){var p=this.label(c,b,e,C,void 0,void 0,h,void 0,"button"),M=this.styledMode,N=0,K=d?r(d):{};c=K&&K.style||{};K=a.filterUserAttributes(K);p.attr(r({padding:8,r:2},K));if(!M){K=r({fill:y.neutralColor3,
|
|
135
|
+
stroke:y.neutralColor20,"stroke-width":1,style:{color:y.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:c},K);var B=K.style;delete K.style;q=r(K,{fill:y.neutralColor10},a.filterUserAttributes(q||{}));var x=q.style;delete q.style;m=r(K,{fill:y.highlightColor10,style:{color:y.neutralColor100,fontWeight:"bold"}},a.filterUserAttributes(m||{}));var H=m.style;delete m.style;g=r(K,{style:{color:y.neutralColor20}},a.filterUserAttributes(g||{}));var F=g.style;delete g.style}u(p.element,k?"mouseover":
|
|
136
|
+
"mouseenter",function(){3!==N&&p.setState(1)});u(p.element,k?"mouseout":"mouseleave",function(){3!==N&&p.setState(N)});p.setState=function(c){1!==c&&(p.state=N=c);p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][c||0]);M||p.attr([K,q,m,g][c||0]).css([B,x,H,F][c||0])};M||p.attr(K).css(n({cursor:"default"},B));return p.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==N&&f.call(p,
|
|
137
|
+
c)})};f.prototype.crispLine=function(c,b,a){void 0===a&&(a="round");var n=c[0],f=c[1];e(n[1])&&n[1]===f[1]&&(n[1]=f[1]=Math[a](n[1])-b%2/2);e(n[2])&&n[2]===f[2]&&(n[2]=f[2]=Math[a](n[2])+b%2/2);return c};f.prototype.path=function(c){var b=this.styledMode?{}:{fill:"none"};C(c)?b.d=c:L(c)&&n(b,c);return this.createElement("path").attr(b)};f.prototype.circle=function(c,b,e){c=L(c)?c:"undefined"===typeof c?{}:{x:c,y:b,r:e};b=this.createElement("circle");b.xSetter=b.ySetter=function(c,b,e){e.setAttribute("c"+
|
|
138
|
+
b,c)};return b.attr(c)};f.prototype.arc=function(c,b,e,a,n,f){L(c)?(a=c,b=a.y,e=a.r,c=a.x):a={innerR:a,start:n,end:f};c=this.symbol("arc",c,b,e,e,a);c.r=e;return c};f.prototype.rect=function(c,b,e,a,n,f){n=L(c)?c.r:n;var d=this.createElement("rect");c=L(c)?c:"undefined"===typeof c?{}:{x:c,y:b,width:Math.max(e,0),height:Math.max(a,0)};this.styledMode||("undefined"!==typeof f&&(c["stroke-width"]=f,c=d.crisp(c)),c.fill="none");n&&(c.r=n);d.rSetter=function(c,b,e){d.r=c;E(e,{rx:c,ry:c})};d.rGetter=function(){return d.r||
|
|
139
|
+
0};return d.attr(c)};f.prototype.setSize=function(c,b,e){this.width=c;this.height=b;this.boxWrapper.animate({width:c,height:b},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:S(e,!0)?void 0:0});this.alignElements()};f.prototype.g=function(c){var b=this.createElement("g");return c?b.attr({"class":"highcharts-"+c}):b};f.prototype.image=function(c,b,e,a,f,d){var q={preserveAspectRatio:"none"},m=function(c,b){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink",
|
|
140
|
+
"href",b):c.setAttribute("hc-svg-href",b)};1<arguments.length&&n(q,{x:b,y:e,width:a,height:f});var g=this.createElement("image").attr(q);q=function(b){m(g.element,c);d.call(g,b)};if(d){m(g.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var k=new x.Image;u(k,"load",q);k.src=c;k.complete&&q({})}else m(g.element,c);return g};f.prototype.symbol=function(c,b,a,f,k,u){var C=this,h=/^url\((.*?)\)$/,p=h.test(c),N=!p&&(this.symbols[c]?c:"circle"),K=N&&this.symbols[N],
|
|
141
|
+
M;if(K){"number"===typeof b&&(M=K.call(this.symbols,Math.round(b||0),Math.round(a||0),f||0,k||0,u));var x=this.path(M);C.styledMode||x.attr("fill","none");n(x,{symbolName:N||void 0,x:b,y:a,width:f,height:k});u&&n(x,u)}else if(p){var H=c.match(h)[1];var F=x=this.image(H);F.imgwidth=S(B[H]&&B[H].width,u&&u.width);F.imgheight=S(B[H]&&B[H].height,u&&u.height);var l=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(c){F[c+"Setter"]=function(c,b){var a=this["img"+
|
|
142
|
+
b];this[b]=c;e(a)&&(u&&"within"===u.backgroundSize&&this.width&&this.height&&(a=Math.round(a*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(b,a),this.alignByTranslate||(c=((this[b]||0)-a)/2,this.attr("width"===b?{translateX:c}:{translateY:c})))}});e(b)&&F.attr({x:b,y:a});F.isImg=!0;e(F.imgwidth)&&e(F.imgheight)?l(F):(F.attr({width:0,height:0}),m("img",{onload:function(){var c=d[C.chartIndex];0===this.width&&(q(this,{position:"absolute",top:"-999em"}),
|
|
143
|
+
g.body.appendChild(this));B[H]={width:this.width,height:this.height};F.imgwidth=this.width;F.imgheight=this.height;F.element&&l(F);this.parentNode&&this.parentNode.removeChild(this);C.imgCount--;if(!C.imgCount&&c&&!c.hasLoaded)c.onload()},src:H}),this.imgCount++)}return x};f.prototype.clipRect=function(c,b,e,a){var n=T()+"-",f=this.createElement("clipPath").attr({id:n}).add(this.defs);c=this.rect(c,b,e,a,0).add(f);c.id=n;c.clipPath=f;c.count=0;return c};f.prototype.text=function(c,b,a,n){var f={};
|
|
144
|
+
if(n&&(this.allowHTML||!this.forExport))return this.html(c,b,a);f.x=Math.round(b||0);a&&(f.y=Math.round(a));e(c)&&(f.text=c);c=this.createElement("text").attr(f);if(!n||this.forExport&&!this.allowHTML)c.xSetter=function(c,b,e){for(var a=e.getElementsByTagName("tspan"),n=e.getAttribute(b),f=0,d;f<a.length;f++)d=a[f],d.getAttribute(b)===n&&d.setAttribute(b,c);e.setAttribute(b,c)};return c};f.prototype.fontMetrics=function(c,b){c=!this.styledMode&&/px/.test(c)||!x.getComputedStyle?c||b&&b.style&&b.style.fontSize||
|
|
145
|
+
this.style&&this.style.fontSize:b&&w.prototype.getStyle.call(b,"font-size");c=/px/.test(c)?R(c):12;b=24>c?c+3:Math.round(1.2*c);return{h:b,b:Math.round(.8*b),f:c}};f.prototype.rotCorr=function(c,e,a){var f=c;e&&a&&(f=Math.max(f*Math.cos(e*b),4));return{x:-c/3*Math.sin(e*b),y:f}};f.prototype.pathToSegments=function(c){for(var b=[],e=[],a={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},f=0;f<c.length;f++)F(e[0])&&H(c[f])&&e.length===a[e[0].toUpperCase()]&&c.splice(f,0,e[0].replace("M","L").replace("m","l")),
|
|
146
|
+
"string"===typeof c[f]&&(e.length&&b.push(e.slice(0)),e.length=0),e.push(c[f]);b.push(e.slice(0));return b};f.prototype.label=function(c,b,e,a,f,n,d,q,m){return new D(this,c,b,e,a,f,n,d,q,m)};f.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return f}();n(A.prototype,{Element:w,SVG_NS:f,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:t,draw:G});z.registerRendererType("svg",A,!0);"";return A});I(a,"Core/Renderer/HTML/HTMLElement.js",
|
|
147
|
+
[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var f in a)a.hasOwnProperty(f)&&(b[f]=a[f])};return b(a,d)};return function(a,d){function g(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),z=a.isFirefox,w=a.isMS,D=a.isWebKit,t=a.win,
|
|
148
|
+
l=A.css,h=A.defined,d=A.extend,b=A.pick,g=A.pInt;return function(a){function k(){return null!==a&&a.apply(this,arguments)||this}r(k,a);k.compose=function(b){if(-1===k.composedClasses.indexOf(b)){k.composedClasses.push(b);var a=k.prototype,f=b.prototype;f.getSpanCorrection=a.getSpanCorrection;f.htmlCss=a.htmlCss;f.htmlGetBBox=a.htmlGetBBox;f.htmlUpdateTransform=a.htmlUpdateTransform;f.setSpanRotation=a.setSpanRotation}return b};k.prototype.getSpanCorrection=function(b,a,f){this.xCorr=-b*f;this.yCorr=
|
|
149
|
+
-a};k.prototype.htmlCss=function(a){var g="SPAN"===this.element.tagName&&a&&"width"in a,f=b(g&&a.width,void 0);if(g){delete a.width;this.textWidth=f;var k=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=d(this.styles,a);l(this.element,a);k&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var b=
|
|
150
|
+
this.renderer,a=this.element,f=this.translateX||0,d=this.translateY||0,k=this.x||0,u=this.y||0,p=this.textAlign||"left",m={left:0,center:.5,right:1}[p],q=this.styles;q=q&&q.whiteSpace;l(a,{marginLeft:f,marginTop:d});!b.styledMode&&this.shadows&&this.shadows.forEach(function(c){l(c,{marginLeft:f+1,marginTop:d+1})});this.inverted&&[].forEach.call(a.childNodes,function(c){b.invertChild(c,a)});if("SPAN"===a.tagName){var e=this.rotation,c=this.textWidth&&g(this.textWidth),n=[e,p,a.innerHTML,this.textWidth,
|
|
151
|
+
this.textAlign].join(),C=void 0;(C=c!==this.oldTextWidth)&&!(C=c>this.oldTextWidth)&&((C=this.textPxLength)||(l(a,{width:"",whiteSpace:q||"nowrap"}),C=a.offsetWidth),C=C>c);C&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(l(a,{width:c+"px",display:"block",whiteSpace:q||"normal"}),this.oldTextWidth=c,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;n!==this.cTT&&(C=b.fontMetrics(a.style.fontSize,a).b,!h(e)||e===(this.oldRotation||0)&&p===this.oldAlign||this.setSpanRotation(e,
|
|
152
|
+
m,C),this.getSpanCorrection(!h(e)&&this.textPxLength||a.offsetWidth,C,m,e,p));l(a,{left:k+(this.xCorr||0)+"px",top:u+(this.yCorr||0)+"px"});this.cTT=n;this.oldRotation=e;this.oldAlign=p}}else this.alignOnAdd=!0};k.prototype.setSpanRotation=function(b,a,f){var d={},g=w&&!/Edge/.test(t.navigator.userAgent)?"-ms-transform":D?"-webkit-transform":z?"MozTransform":t.opera?"-o-transform":void 0;g&&(d[g]=d.transform="rotate("+b+"deg)",d[g+(z?"Origin":"-origin")]=d.transformOrigin=100*a+"% "+f+"px",l(this.element,
|
|
153
|
+
d))};k.composedClasses=[];return k}(v)});I(a,"Core/Renderer/HTML/HTMLRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,b)};return function(d,b){function g(){this.constructor=
|
|
154
|
+
d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),w=y.attr,D=y.createElement,t=y.extend,l=y.pick;return function(h){function d(){return null!==h&&h.apply(this,arguments)||this}r(d,h);d.compose=function(b){-1===d.composedClasses.indexOf(b)&&(d.composedClasses.push(b),b.prototype.html=d.prototype.html);return b};d.prototype.html=function(b,d,h){var g=this.createElement("span"),p=g.element,G=g.renderer,f=G.isSVG,B=function(b,a){["opacity","visibility"].forEach(function(f){b[f+
|
|
155
|
+
"Setter"]=function(d,q,e){var c=b.div?b.div.style:a;v.prototype[f+"Setter"].call(this,d,q,e);c&&(c[q]=d)}});b.addedSetters=!0};g.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,l(b,"")),this.textStr=b,g.doTransform=!0)};f&&B(g,g.element.style);g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(b,a){"align"===a?g.alignValue=g.textAlign=b:g[a]=b;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),
|
|
156
|
+
this.doTransform=!1)};g.attr({text:b,x:Math.round(d),y:Math.round(h)}).css({position:"absolute"});G.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p.style.whiteSpace="nowrap";g.css=g.htmlCss;f&&(g.add=function(b){var a=G.box.parentNode,f=[];if(this.parentGroup=b){var d=b.div;if(!d){for(;b;)f.push(b),b=b.parentGroup;f.reverse().forEach(function(b){function e(c,e){b[e]=c;"translateX"===e?q.left=c+"px":q.top=c+"px";b.doTransform=!0}var c=w(b.element,"class"),n=b.styles||
|
|
157
|
+
{};d=b.div=b.div||D("div",c?{className:c}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:n.cursor,pointerEvents:n.pointerEvents,visibility:b.visibility},d||a);var q=d.style;t(b,{classSetter:function(c){return function(b){this.element.setAttribute("class",b);c.className=b}}(d),on:function(){f[0].div&&g.on.apply({element:f[0].div,onEvents:b.onEvents},arguments);return b},translateXSetter:e,translateYSetter:e});b.addedSetters||
|
|
158
|
+
B(b)})}}else d=a;d.appendChild(p);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};d.composedClasses=[];return d}(A)});I(a,"Core/Axis/AxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){var r;(function(r){r.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},
|
|
159
|
+
week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:a.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,
|
|
160
|
+
opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:a.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:a.neutralColor5,minorGridLineWidth:1,minorTickColor:a.neutralColor40,lineColor:a.highlightColor20,lineWidth:1,gridLineColor:a.neutralColor10,gridLineWidth:void 0,
|
|
161
|
+
tickColor:a.highlightColor20};r.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:a.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};
|
|
162
|
+
r.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};r.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};r.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};r.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(r||(r={}));return r});I(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,A=a.isFunction,y=a.objectEach,z=a.removeEvent;return{registerEventOptions:function(a,D){a.eventOptions=
|
|
163
|
+
a.eventOptions||{};y(D.events,function(t,l){a.eventOptions[l]!==t&&(a.eventOptions[l]&&(z(a,l,a.eventOptions[l]),delete a.eventOptions[l]),A(t)&&(a.eventOptions[l]=t,r(a,l,t)))})}}});I(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A){var r=v.deg2rad,z=A.clamp,w=A.correctFloat,D=A.defined,t=A.destroyObjectProperties,l=A.extend,h=A.fireEvent,d=A.isNumber,b=A.merge,g=A.objectEach,p=A.pick;v=function(){function k(b,a,f,d,g){this.isNewLabel=
|
|
164
|
+
this.isNew=!0;this.axis=b;this.pos=a;this.type=f||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;h(this,"init");f||d||this.addLabel()}k.prototype.addLabel=function(){var b=this,g=b.axis,f=g.options,k=g.chart,x=g.categories,u=g.logarithmic,E=g.names,m=b.pos,q=p(b.options&&b.options.labels,f.labels),e=g.tickPositions,c=m===e[0],n=m===e[e.length-1],C=(!q.step||1===q.step)&&1===g.tickInterval;e=e.info;var H=b.label,L;x=this.parameters.category||
|
|
165
|
+
(x?p(x[m],E[m],m):m);u&&d(x)&&(x=w(u.lin2log(x)));if(g.dateTime)if(e){var F=k.time.resolveDTLFormat(f.dateTimeLabelFormats[!f.grid&&e.higherRanks[m]||e.unitName]);var r=F.main}else d(x)&&(r=g.dateTime.getXDateFormat(x,f.dateTimeLabelFormats||{}));b.isFirst=c;b.isLast=n;var t={axis:g,chart:k,dateTimeLabelFormat:r,isFirst:c,isLast:n,pos:m,tick:b,tickPositionInfo:e,value:x};h(this,"labelFormat",t);var v=function(c){return q.formatter?q.formatter.call(c,c):q.format?(c.text=g.defaultLabelFormatter.call(c),
|
|
166
|
+
a.format(q.format,c,k)):g.defaultLabelFormatter.call(c,c)};f=v.call(t,t);var y=F&&F.list;b.shortenLabel=y?function(){for(L=0;L<y.length;L++)if(l(t,{dateTimeLabelFormat:y[L]}),H.attr({text:v.call(t,t)}),H.getBBox().width<g.getSlotWidth(b)-2*q.padding)return;H.attr({text:""})}:void 0;C&&g._addedPlotLB&&b.moveLabel(f,q);D(H)||b.movedLabel?H&&H.textStr!==f&&!C&&(!H.textWidth||q.style.width||H.styles.width||H.css({width:null}),H.attr({text:f}),H.textPxLength=H.getBBox().width):(b.label=H=b.createLabel({x:0,
|
|
167
|
+
y:0},f,q),b.rotation=0)};k.prototype.createLabel=function(a,d,f){var g=this.axis,k=g.chart;if(a=D(d)&&f.enabled?k.renderer.text(d,a.x,a.y,f.useHTML).add(g.labelGroup):null)k.styledMode||a.css(b(f.style)),a.textPxLength=a.getBBox().width;return a};k.prototype.destroy=function(){t(this,this.axis)};k.prototype.getPosition=function(b,a,f,d){var g=this.axis,k=g.chart,p=d&&k.oldChartHeight||k.chartHeight;b={x:b?w(g.translate(a+f,null,null,d)+g.transB):g.left+g.offset+(g.opposite?(d&&k.oldChartWidth||k.chartWidth)-
|
|
168
|
+
g.right-g.left:0),y:b?p-g.bottom+g.offset-(g.opposite?g.height:0):w(p-g.translate(a+f,null,null,d)-g.transB)};b.y=z(b.y,-1E5,1E5);h(this,"afterGetPosition",{pos:b});return b};k.prototype.getLabelPosition=function(b,a,f,d,g,k,p,m){var q=this.axis,e=q.transA,c=q.isLinked&&q.linkedParent?q.linkedParent.reversed:q.reversed,n=q.staggerLines,C=q.tickRotCorr||{x:0,y:0},u=d||q.reserveSpaceDefault?0:-q.labelOffset*("center"===q.labelAlign?.5:1),B={},F=g.y;D(F)||(F=0===q.side?f.rotation?-8:-f.getBBox().height:
|
|
169
|
+
2===q.side?C.y+8:Math.cos(f.rotation*r)*(C.y-f.getBBox(!1,0).height/2));b=b+g.x+u+C.x-(k&&d?k*e*(c?-1:1):0);a=a+F-(k&&!d?k*e*(c?1:-1):0);n&&(f=p/(m||1)%n,q.opposite&&(f=n-f-1),a+=q.labelOffset/n*f);B.x=b;B.y=Math.round(a);h(this,"afterGetLabelPosition",{pos:B,tickmarkOffset:k,index:p});return B};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=function(b,a,f,d,g,k){return k.crispLine([["M",b,a],["L",b+(g?0:-f),
|
|
170
|
+
a+(g?f:0)]],d)};k.prototype.handleOverflow=function(b){var a=this.axis,f=a.options.labels,d=b.x,g=a.chart.chartWidth,k=a.chart.spacing,h=p(a.labelLeft,Math.min(a.pos,k[3]));k=p(a.labelRight,Math.max(a.isRadial?0:a.pos+a.len,g-k[1]));var m=this.label,q=this.rotation,e={left:0,center:.5,right:1}[a.labelAlign||m.attr("align")],c=m.getBBox().width,n=a.getSlotWidth(this),C={},H=n,l=1,F;if(q||"justify"!==f.overflow)0>q&&d-e*c<h?F=Math.round(d/Math.cos(q*r)-h):0<q&&d+e*c>k&&(F=Math.round((g-d)/Math.cos(q*
|
|
171
|
+
r)));else if(g=d+(1-e)*c,d-e*c<h?H=b.x+H*(1-e)-h:g>k&&(H=k-b.x+H*e,l=-1),H=Math.min(n,H),H<n&&"center"===a.labelAlign&&(b.x+=l*(n-H-e*(n-Math.min(c,H)))),c>H||a.autoRotation&&(m.styles||{}).width)F=H;F&&(this.shortenLabel?this.shortenLabel():(C.width=Math.floor(F)+"px",(f.style||{}).textOverflow||(C.textOverflow="ellipsis"),m.css(C)))};k.prototype.moveLabel=function(b,a){var f=this,d=f.label,k=f.axis,h=k.reversed,p=!1;d&&d.textStr===b?(f.movedLabel=d,p=!0,delete f.label):g(k.ticks,function(a){p||
|
|
172
|
+
a.isNew||a===f||!a.label||a.label.textStr!==b||(f.movedLabel=a.label,p=!0,a.labelPos=f.movedLabel.xy,delete a.label)});if(!p&&(f.labelPos||d)){var m=f.labelPos||d.xy;d=k.horiz?h?0:k.width+k.left:m.x;k=k.horiz?m.y:h?k.width+k.left:0;f.movedLabel=f.createLabel({x:d,y:k},b,a);f.movedLabel&&f.movedLabel.attr({opacity:0})}};k.prototype.render=function(b,a,f){var d=this.axis,g=d.horiz,k=this.pos,l=p(this.tickmarkOffset,d.tickmarkOffset);k=this.getPosition(g,k,l,a);l=k.x;var m=k.y;d=g&&l===d.pos+d.len||
|
|
173
|
+
!g&&m===d.pos?-1:1;g=p(f,this.label&&this.label.newOpacity,1);f=p(f,1);this.isActive=!0;this.renderGridLine(a,f,d);this.renderMark(k,f,d);this.renderLabel(k,a,g,b);this.isNew=!1;h(this,"afterRender")};k.prototype.renderGridLine=function(b,a,f){var d=this.axis,g=d.options,k={},h=this.pos,m=this.type,q=p(this.tickmarkOffset,d.tickmarkOffset),e=d.chart.renderer,c=this.gridLine,n=g.gridLineWidth,C=g.gridLineColor,H=g.gridLineDashStyle;"minor"===this.type&&(n=g.minorGridLineWidth,C=g.minorGridLineColor,
|
|
174
|
+
H=g.minorGridLineDashStyle);c||(d.chart.styledMode||(k.stroke=C,k["stroke-width"]=n||0,k.dashstyle=H),m||(k.zIndex=1),b&&(a=0),this.gridLine=c=e.path().attr(k).addClass("highcharts-"+(m?m+"-":"")+"grid-line").add(d.gridGroup));if(c&&(f=d.getPlotLinePath({value:h+q,lineWidth:c.strokeWidth()*f,force:"pass",old:b})))c[b||this.isNew?"attr":"animate"]({d:f,opacity:a})};k.prototype.renderMark=function(b,a,f){var d=this.axis,g=d.options,k=d.chart.renderer,h=this.type,m=d.tickSize(h?h+"Tick":"tick"),q=b.x;
|
|
175
|
+
b=b.y;var e=p(g["minor"!==h?"tickWidth":"minorTickWidth"],!h&&d.isXAxis?1:0);g=g["minor"!==h?"tickColor":"minorTickColor"];var c=this.mark,n=!c;m&&(d.opposite&&(m[0]=-m[0]),c||(this.mark=c=k.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(d.axisGroup),d.chart.styledMode||c.attr({stroke:g,"stroke-width":e})),c[n?"attr":"animate"]({d:this.getMarkPath(q,b,m[0],c.strokeWidth()*f,d.horiz,k),opacity:a}))};k.prototype.renderLabel=function(b,a,f,g){var k=this.axis,h=k.horiz,l=k.options,m=this.label,
|
|
176
|
+
q=l.labels,e=q.step;k=p(this.tickmarkOffset,k.tickmarkOffset);var c=b.x;b=b.y;var n=!0;m&&d(c)&&(m.xy=b=this.getLabelPosition(c,b,m,h,q,k,g,e),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?n=!1:!h||q.step||q.rotation||a||0===f||this.handleOverflow(b),e&&g%e&&(n=!1),n&&d(b.y)?(b.opacity=f,m[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(m.attr("y",-9999),this.isNewLabel=!0))};k.prototype.replaceMovedLabel=function(){var b=this.label,a=this.axis,
|
|
177
|
+
f=a.reversed;if(b&&!this.isNew){var d=a.horiz?f?a.left:a.width+a.left:b.xy.x;f=a.horiz?b.xy.y:f?a.width+a.top:a.top;b.animate({x:d,y:f,opacity:0},void 0,b.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return v});I(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Color/Color.js"],a["Core/Color/Palette.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Axis/Tick.js"],
|
|
178
|
+
a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l){var h=a.animObject,d=z.defaultOptions,b=w.registerEventOptions,g=D.deg2rad,p=l.arrayMax,k=l.arrayMin,r=l.clamp,G=l.correctFloat,f=l.defined,B=l.destroyObjectProperties,x=l.erase,u=l.error,E=l.extend,m=l.fireEvent,q=l.getMagnitude,e=l.isArray,c=l.isNumber,n=l.isString,C=l.merge,H=l.normalizeTickInterval,L=l.objectEach,F=l.pick,W=l.relativeLength,S=l.removeEvent,R=l.splat,T=l.syncTimeout;a=function(){function a(c,b){this.zoomEnabled=this.width=this.visible=
|
|
179
|
+
this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=
|
|
180
|
+
this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(c,b)}a.prototype.init=function(a,e){var d=e.isX;this.chart=a;this.horiz=a.inverted&&!this.isZAxis?!d:d;this.isXAxis=d;this.coll=this.coll||(d?"xAxis":"yAxis");m(this,"init",{userOptions:e});this.opposite=F(e.opposite,this.opposite);this.side=F(e.side,this.side,this.horiz?
|
|
181
|
+
this.opposite?0:2:this.opposite?1:3);this.setOptions(e);var n=this.options,g=n.labels,q=n.type;this.userOptions=e;this.minPixelPadding=0;this.reversed=F(n.reversed,this.reversed);this.visible=n.visible;this.zoomEnabled=n.zoomEnabled;this.hasNames="category"===q||!0===n.categories;this.categories=n.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=f(n.linkedTo);this.ticks={};this.labelEdge=
|
|
182
|
+
[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=n.minRange||n.maxZoom;this.range=n.range;this.offset=n.offset||0;this.min=this.max=null;e=F(n.crosshair,R(a.options.tooltip.crosshairs)[d?0:1]);this.crosshair=!0===e?{}:e;-1===a.axes.indexOf(this)&&(d?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&!this.isZAxis&&d&&"undefined"===typeof this.reversed&&(this.reversed=
|
|
183
|
+
!0);this.labelRotation=c(g.rotation)?g.rotation:void 0;b(this,n);m(this,"afterInit")};a.prototype.setOptions=function(c){this.options=C(v.defaultXAxisOptions,"yAxis"===this.coll&&v.defaultYAxisOptions,[v.defaultTopAxisOptions,v.defaultRightAxisOptions,v.defaultBottomAxisOptions,v.defaultLeftAxisOptions][this.side],C(d[this.coll],c));m(this,"afterSetOptions",{userOptions:c})};a.prototype.defaultLabelFormatter=function(b){var a=this.axis;b=this.chart.numberFormatter;var e=c(this.value)?this.value:NaN,
|
|
184
|
+
f=a.chart.time,n=this.dateTimeLabelFormat,g=d.lang,m=g.numericSymbols;g=g.numericSymbolMagnitude||1E3;var q=a.logarithmic?Math.abs(e):a.tickInterval,k=m&&m.length;if(a.categories)var h=""+this.value;else if(n)h=f.dateFormat(n,e);else if(k&&1E3<=q)for(;k--&&"undefined"===typeof h;)a=Math.pow(g,k+1),q>=a&&0===10*e%a&&null!==m[k]&&0!==e&&(h=b(e/a,-1)+m[k]);"undefined"===typeof h&&(h=1E4<=Math.abs(e)?b(e,-1):b(e,-1,void 0,""));return h};a.prototype.getSeriesExtremes=function(){var b=this,a=b.chart,e;
|
|
185
|
+
m(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.stacking&&b.stacking.buildStacks();b.series.forEach(function(n){if(n.visible||!a.options.chart.ignoreHiddenSeries){var d=n.options,g=d.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=g&&(g=null);if(b.isXAxis){if(d=n.xData,d.length){d=b.logarithmic?d.filter(b.validatePositiveValue):d;e=n.getXExtremes(d);var m=e.min;var q=e.max;c(m)||m instanceof Date||(d=d.filter(c),
|
|
186
|
+
e=n.getXExtremes(d),m=e.min,q=e.max);d.length&&(b.dataMin=Math.min(F(b.dataMin,m),m),b.dataMax=Math.max(F(b.dataMax,q),q))}}else if(n=n.applyExtremes(),c(n.dataMin)&&(m=n.dataMin,b.dataMin=Math.min(F(b.dataMin,m),m)),c(n.dataMax)&&(q=n.dataMax,b.dataMax=Math.max(F(b.dataMax,q),q)),f(g)&&(b.threshold=g),!d.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});m(this,"afterGetSeriesExtremes")};a.prototype.translate=function(b,a,e,n,d,f){var g=this.linkedParent||this,m=n&&g.old?g.old.min:g.min,
|
|
187
|
+
q=g.minPixelPadding;d=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&d)&&g.lin2val;var k=1,h=0;n=n&&g.old?g.old.transA:g.transA;n||(n=g.transA);e&&(k*=-1,h=g.len);g.reversed&&(k*=-1,h-=k*(g.sector||g.len));a?(b=(b*k+h-q)/n+m,d&&(b=g.lin2val(b))):(d&&(b=g.val2lin(b)),b=c(m)?k*(b-m)*n+h+k*q+(c(f)?n*f:0):void 0);return b};a.prototype.toPixels=function(c,b){return this.translate(c,!1,!this.horiz,null,!0)+(b?0:this.pos)};a.prototype.toValue=function(c,b){return this.translate(c-(b?
|
|
188
|
+
0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(b){function a(c,b,a){if("pass"!==N&&c<b||c>a)N?c=r(c,b,a):E=!0;return c}var e=this,n=e.chart,d=e.left,f=e.top,g=b.old,q=b.value,k=b.lineWidth,h=g&&n.oldChartHeight||n.chartHeight,p=g&&n.oldChartWidth||n.chartWidth,C=e.transB,u=b.translatedValue,N=b.force,H,l,B,x,E;b={value:q,lineWidth:k,old:g,force:N,acrossPanes:b.acrossPanes,translatedValue:u};m(this,"getPlotLinePath",b,function(b){u=F(u,e.translate(q,null,null,g));u=r(u,-1E5,
|
|
189
|
+
1E5);H=B=Math.round(u+C);l=x=Math.round(h-u-C);c(u)?e.horiz?(l=f,x=h-e.bottom,H=B=a(H,d,d+e.width)):(H=d,B=p-e.right,l=x=a(l,f,f+e.height)):(E=!0,N=!1);b.path=E&&!N?null:n.renderer.crispLine([["M",H,l],["L",B,x]],k||1)});return b.path};a.prototype.getLinearTickPositions=function(c,b,a){var e=G(Math.floor(b/c)*c);a=G(Math.ceil(a/c)*c);var n=[],d;G(e+c)===e&&(d=20);if(this.single)return[b];for(b=e;b<=a;){n.push(b);b=G(b+c,d);if(b===f)break;var f=b}return n};a.prototype.getMinorTickInterval=function(){var c=
|
|
190
|
+
this.options;return!0===c.minorTicks?F(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};a.prototype.getMinorTickPositions=function(){var c=this.options,b=this.tickPositions,a=this.minorTickInterval,e=this.pointRangePadding||0,n=this.min-e;e=this.max+e;var d=e-n,f=[];if(d&&d/a<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(c,b,e){b&&f.push.apply(f,g.getLogTickPositions(a,e[b-1],e[b],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())f=
|
|
191
|
+
f.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(a),n,e,c.startOfWeek));else for(c=n+(b[0]-n)%a;c<=e&&c!==f[0];c+=a)f.push(c)}0!==f.length&&this.trimTicks(f);return f};a.prototype.adjustForMinRange=function(){var c=this.options,b=this.logarithmic,a=this.min,e=this.max,n=0,d,g,m,q;this.isXAxis&&"undefined"===typeof this.minRange&&!b&&(f(c.min)||f(c.max)?this.minRange=null:(this.series.forEach(function(c){m=c.xData;q=c.xIncrement?1:m.length-1;if(1<m.length)for(d=q;0<d;d--)if(g=m[d]-
|
|
192
|
+
m[d-1],!n||g<n)n=g}),this.minRange=Math.min(5*n,this.dataMax-this.dataMin)));if(e-a<this.minRange){var h=this.dataMax-this.dataMin>=this.minRange;var C=this.minRange;var u=(C-e+a)/2;u=[a-u,F(c.min,a-u)];h&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);a=p(u);e=[a+C,F(c.max,a+C)];h&&(e[2]=b?b.log2lin(this.dataMax):this.dataMax);e=k(e);e-a<C&&(u[0]=e-C,u[1]=F(c.min,e-C),a=p(u))}this.min=a;this.max=e};a.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(b){var a=
|
|
193
|
+
b.closestPointRange,e=b.visible||!b.chart.options.chart.ignoreHiddenSeries;!b.noSharedTooltip&&f(a)&&e&&(c=f(c)?Math.min(c,a):a)});return c};a.prototype.nameToX=function(c){var b=e(this.categories),a=b?this.categories:this.names,n=c.options.x;c.series.requireSorting=!1;f(n)||(n=this.options.uniqueNames?b?a.indexOf(c.name):F(a.keys[c.name],-1):c.series.autoIncrement());if(-1===n){if(!b)var d=a.length}else d=n;"undefined"!==typeof d&&(this.names[d]=c.name,this.names.keys[c.name]=d);return d};a.prototype.updateNames=
|
|
194
|
+
function(){var c=this,b=this.names;0<b.length&&(Object.keys(b.keys).forEach(function(c){delete b.keys[c]}),b.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(b){b.xIncrement=null;if(!b.points||b.isDirtyData)c.max=Math.max(c.max,b.xData.length-1),b.processData(),b.generatePoints();b.data.forEach(function(a,e){if(a&&a.options&&"undefined"!==typeof a.name){var n=c.nameToX(a);"undefined"!==typeof n&&n!==a.x&&(a.x=n,b.xData[e]=n)}})}))};a.prototype.setAxisTranslation=function(){var c=
|
|
195
|
+
this,b=c.max-c.min,a=c.linkedParent,e=!!c.categories,d=c.isXAxis,f=c.axisPointRange||0,g=0,q=0,k=c.transA;if(d||e||f){var h=c.getClosest();a?(g=a.minPointOffset,q=a.pointRangePadding):c.series.forEach(function(b){var a=e?1:d?F(b.options.pointRange,h,0):c.axisPointRange||0,m=b.options.pointPlacement;f=Math.max(f,a);if(!c.single||e)b=b.is("xrange")?!d:d,g=Math.max(g,b&&n(m)?0:a/2),q=Math.max(q,b&&"on"===m?0:a)});a=c.ordinal&&c.ordinal.slope&&h?c.ordinal.slope/h:1;c.minPointOffset=g*=a;c.pointRangePadding=
|
|
196
|
+
q*=a;c.pointRange=Math.min(f,c.single&&e?1:b);d&&(c.closestPointRange=h)}c.translationSlope=c.transA=k=c.staticScale||c.len/(b+q||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=k*g;m(this,"afterSetAxisTranslation")};a.prototype.minFromRange=function(){return this.max-this.range};a.prototype.setTickInterval=function(b){var a=this,e=a.chart,n=a.logarithmic,d=a.options,g=a.isXAxis,k=a.isLinked,h=d.tickPixelInterval,C=a.categories,p=a.softThreshold,l=d.maxPadding,B=d.minPadding,N=d.tickInterval,
|
|
197
|
+
x=c(a.threshold)?a.threshold:null;a.dateTime||C||k||this.getTickAmount();var E=F(a.userMin,d.min);var L=F(a.userMax,d.max);if(k){a.linkedParent=e[a.coll][d.linkedTo];var r=a.linkedParent.getExtremes();a.min=F(r.min,r.dataMin);a.max=F(r.max,r.dataMax);d.type!==a.linkedParent.options.type&&u(11,1,e)}else{if(p&&f(x))if(a.dataMin>=x)r=x,B=0;else if(a.dataMax<=x){var t=x;l=0}a.min=F(E,r,a.dataMin);a.max=F(L,t,a.dataMax)}n&&(a.positiveValuesOnly&&!b&&0>=Math.min(a.min,F(a.dataMin,a.min))&&u(10,1,e),a.min=
|
|
198
|
+
G(n.log2lin(a.min),16),a.max=G(n.log2lin(a.max),16));a.range&&f(a.max)&&(a.userMin=a.min=E=Math.max(a.dataMin,a.minFromRange()),a.userMax=L=a.max,a.range=null);m(a,"foundExtremes");a.beforePadding&&a.beforePadding();a.adjustForMinRange();!(C||a.axisPointRange||a.stacking&&a.stacking.usePercentage||k)&&f(a.min)&&f(a.max)&&(e=a.max-a.min)&&(!f(E)&&B&&(a.min-=e*B),!f(L)&&l&&(a.max+=e*l));c(a.userMin)||(c(d.softMin)&&d.softMin<a.min&&(a.min=E=d.softMin),c(d.floor)&&(a.min=Math.max(a.min,d.floor)));c(a.userMax)||
|
|
199
|
+
(c(d.softMax)&&d.softMax>a.max&&(a.max=L=d.softMax),c(d.ceiling)&&(a.max=Math.min(a.max,d.ceiling)));p&&f(a.dataMin)&&(x=x||0,!f(E)&&a.min<x&&a.dataMin>=x?a.min=a.options.minRange?Math.min(x,a.max-a.minRange):x:!f(L)&&a.max>x&&a.dataMax<=x&&(a.max=a.options.minRange?Math.max(x,a.min+a.minRange):x));c(a.min)&&c(a.max)&&!this.chart.polar&&a.min>a.max&&(f(a.options.min)?a.max=a.min:f(a.options.max)&&(a.min=a.max));a.tickInterval=a.min===a.max||"undefined"===typeof a.min||"undefined"===typeof a.max?1:
|
|
200
|
+
k&&a.linkedParent&&!N&&h===a.linkedParent.options.tickPixelInterval?N=a.linkedParent.tickInterval:F(N,this.tickAmount?(a.max-a.min)/Math.max(this.tickAmount-1,1):void 0,C?1:(a.max-a.min)*h/Math.max(a.len,h));g&&!b&&(a.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(a.min!==(a.old&&a.old.min)||a.max!==(a.old&&a.old.max))}),m(this,"postProcessData"));a.setAxisTranslation();m(this,"initialAxisTranslation");a.pointRange&&!N&&(a.tickInterval=Math.max(a.pointRange,
|
|
201
|
+
a.tickInterval));b=F(d.minTickInterval,a.dateTime&&!a.series.some(function(c){return c.noSharedTooltip})?a.closestPointRange:0);!N&&a.tickInterval<b&&(a.tickInterval=b);a.dateTime||a.logarithmic||N||(a.tickInterval=H(a.tickInterval,void 0,q(a.tickInterval),F(d.allowDecimals,.5>a.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(a.tickInterval=a.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var c=this.options,b=c.tickPositions,a=this.getMinorTickInterval(),
|
|
202
|
+
e=this.hasVerticalPanning(),d="colorAxis"===this.coll,n=(d||!e)&&c.startOnTick;e=(d||!e)&&c.endOnTick;d=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===a&&this.tickInterval?this.tickInterval/5:a;this.single=this.min===this.max&&f(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=a=b&&b.slice();!a&&(this.ordinal&&this.ordinal.positions||!((this.max-
|
|
203
|
+
this.min)/this.tickInterval>Math.max(2*this.len,200))?a=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(a=[this.min,this.max],u(19,!1,this.chart)),a.length>this.len&&(a=[a[0],a.pop()],a[0]===a[1]&&
|
|
204
|
+
(a.length=1)),this.tickPositions=a,d&&(d=d.apply(this,[this.min,this.max])))&&(this.tickPositions=a=d);this.paddedTicks=a.slice(0);this.trimTicks(a,n,e);this.isLinked||(this.single&&2>a.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),b||d||this.adjustTickAmount());m(this,"afterSetTickPositions")};a.prototype.trimTicks=function(c,b,a){var e=c[0],d=c[c.length-1],n=!this.isOrdinal&&this.minPointOffset||
|
|
205
|
+
0;m(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==e)this.min=e;else for(;this.min-n>c[0];)c.shift();if(a)this.max=d;else for(;this.max+n<c[c.length-1];)c.pop();0===c.length&&f(e)&&!this.options.tickPositions&&c.push((d+e)/2)}};a.prototype.alignToOthers=function(){var c={},b=this.options,a;!1!==this.chart.options.chart.alignTicks&&b.alignTicks&&!1!==b.startOnTick&&!1!==b.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(b){var e=b.options;e=[b.horiz?e.left:e.top,e.width,
|
|
206
|
+
e.height,e.pane].join();b.series.length&&(c[e]?a=!0:c[e]=1)});return a};a.prototype.getTickAmount=function(){var c=this.options,b=c.tickPixelInterval,a=c.tickAmount;!f(c.tickInterval)&&!a&&this.len<b&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(a=2);!a&&this.alignToOthers()&&(a=Math.ceil(this.len/b)+1);4>a&&(this.finalTickAmt=a,a=5);this.tickAmount=a};a.prototype.adjustTickAmount=function(){var b=this.options,a=this.tickInterval,e=this.tickPositions,d=this.tickAmount,n=this.finalTickAmt,
|
|
207
|
+
g=e&&e.length,m=F(this.threshold,this.softThreshold?0:null);if(this.hasData()&&c(this.min)&&c(this.max)){if(g<d){for(;e.length<d;)e.length%2||this.min===m?e.push(G(e[e.length-1]+a)):e.unshift(G(e[0]-a));this.transA*=(g-1)/(d-1);this.min=b.startOnTick?e[0]:Math.min(this.min,e[0]);this.max=b.endOnTick?e[e.length-1]:Math.max(this.max,e[e.length-1])}else g>d&&(this.tickInterval*=2,this.setTickPositions());if(f(n)){for(a=b=e.length;a--;)(3===n&&1===a%2||2>=n&&0<a&&a<b-1)&&e.splice(a,1);this.finalTickAmt=
|
|
208
|
+
void 0}}};a.prototype.setScale=function(){var c=!1,b=!1;this.series.forEach(function(a){c=c||a.isDirtyData||a.isDirty;b=b||a.xAxis&&a.xAxis.isDirty||!1});this.setAxisSize();var a=this.len!==(this.old&&this.old.len);a||c||b||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=
|
|
209
|
+
a||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);m(this,"afterSetScale")};a.prototype.setExtremes=function(c,b,a,e,d){var n=this,f=n.chart;a=F(a,!0);n.series.forEach(function(c){delete c.kdTree});d=E(d,{min:c,max:b});m(n,"setExtremes",d,function(){n.userMin=c;n.userMax=b;n.eventArgs=d;a&&f.redraw(e)})};a.prototype.zoom=function(c,b){var a=this,e=this.dataMin,d=this.dataMax,
|
|
210
|
+
n=this.options,g=Math.min(e,F(n.min,e)),q=Math.max(d,F(n.max,d));c={newMin:c,newMax:b};m(this,"zoom",c,function(c){var b=c.newMin,n=c.newMax;if(b!==a.min||n!==a.max)a.allowZoomOutside||(f(e)&&(b<g&&(b=g),b>q&&(b=q)),f(d)&&(n<g&&(n=g),n>q&&(n=q))),a.displayBtn="undefined"!==typeof b||"undefined"!==typeof n,a.setExtremes(b,n,!1,void 0,{trigger:"zoom"});c.zoomed=!0});return c.zoomed};a.prototype.setAxisSize=function(){var c=this.chart,b=this.options,a=b.offsets||[0,0,0,0],e=this.horiz,d=this.width=Math.round(W(F(b.width,
|
|
211
|
+
c.plotWidth-a[3]+a[1]),c.plotWidth)),n=this.height=Math.round(W(F(b.height,c.plotHeight-a[0]+a[2]),c.plotHeight)),f=this.top=Math.round(W(F(b.top,c.plotTop+a[0]),c.plotHeight,c.plotTop));b=this.left=Math.round(W(F(b.left,c.plotLeft+a[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-n-f;this.right=c.chartWidth-d-b;this.len=Math.max(e?d:n,0);this.pos=e?b:f};a.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?G(c.lin2log(this.min)):this.min,max:c?G(c.lin2log(this.max)):this.max,
|
|
212
|
+
dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(c){var b=this.logarithmic,a=b?b.lin2log(this.min):this.min;b=b?b.lin2log(this.max):this.max;null===c||-Infinity===c?c=a:Infinity===c?c=b:a>c?c=a:b<c&&(c=b);return this.translate(c,0,1,0,1)};a.prototype.autoLabelAlign=function(c){var b=(F(c,0)-90*this.side+720)%360;c={align:"center"};m(this,"autoLabelAlign",c,function(c){15<b&&165>b?c.align="right":195<b&&345>b&&(c.align="left")});
|
|
213
|
+
return c.align};a.prototype.tickSize=function(c){var b=this.options,a=F(b["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),e=b["tick"===c?"tickLength":"minorTickLength"];if(a&&e){"inside"===b[c+"Position"]&&(e=-e);var d=[e,a]}c={tickSize:d};m(this,"afterTickSize",c);return c.tickSize};a.prototype.labelMetrics=function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[c]&&
|
|
214
|
+
this.ticks[c].label)};a.prototype.unsquish=function(){var b=this.options.labels,a=this.horiz,e=this.tickInterval,d=this.len/(((this.categories?1:0)+this.max-this.min)/e),n=b.rotation,f=this.labelMetrics(),m=Math.max(this.max-this.min,0),q=function(c){var b=c/(d||1);b=1<b?Math.ceil(b):1;b*e>m&&Infinity!==c&&Infinity!==d&&m&&(b=Math.ceil(m/e));return G(b*e)},k=e,h,C,p=Number.MAX_VALUE;if(a){if(!b.staggerLines&&!b.step)if(c(n))var u=[n];else d<b.autoRotationLimit&&(u=b.autoRotation);u&&u.forEach(function(c){if(c===
|
|
215
|
+
n||c&&-90<=c&&90>=c){C=q(Math.abs(f.h/Math.sin(g*c)));var b=C+Math.abs(c/360);b<p&&(p=b,h=c,k=C)}})}else b.step||(k=q(f.h));this.autoRotation=u;this.labelRotation=F(h,c(n)?n:0);return k};a.prototype.getSlotWidth=function(b){var a=this.chart,e=this.horiz,d=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),f=a.margin[3];if(b&&c(b.slotWidth))return b.slotWidth;if(e&&2>d.step)return d.rotation?0:(this.staggerLines||1)*this.len/n;if(!e){b=d.style.width;if(void 0!==b)return parseInt(String(b),
|
|
216
|
+
10);if(f)return f-a.spacing[3]}return.33*a.chartWidth};a.prototype.renderUnsquish=function(){var c=this.chart,b=c.renderer,a=this.tickPositions,e=this.ticks,d=this.options.labels,f=d.style,g=this.horiz,m=this.getSlotWidth(),q=Math.max(1,Math.round(m-2*d.padding)),k={},h=this.labelMetrics(),C=f.textOverflow,p=0;n(d.rotation)||(k.rotation=d.rotation||0);a.forEach(function(c){c=e[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>p&&(p=c.label.textPxLength)});this.maxLabelLength=
|
|
217
|
+
p;if(this.autoRotation)p>q&&p>h.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(m){var u=q;if(!C){var H="clip";for(q=a.length;!g&&q--;){var l=a[q];if(l=e[l].label)l.styles&&"ellipsis"===l.styles.textOverflow?l.css({textOverflow:"clip"}):l.textPxLength>m&&l.css({width:m+"px"}),l.getBBox().height>this.len/a.length-(h.h-h.f)&&(l.specificTextOverflow="ellipsis")}}}k.rotation&&(u=p>.5*c.chartHeight?.33*c.chartHeight:p,C||(H="ellipsis"));if(this.labelAlign=d.align||this.autoLabelAlign(this.labelRotation))k.align=
|
|
218
|
+
this.labelAlign;a.forEach(function(c){var b=(c=e[c])&&c.label,a=f.width,d={};b&&(b.attr(k),c.shortenLabel?c.shortenLabel():u&&!a&&"nowrap"!==f.whiteSpace&&(u<b.textPxLength||"SPAN"===b.element.tagName)?(d.width=u+"px",C||(d.textOverflow=b.specificTextOverflow||H),b.css(d)):b.styles&&b.styles.width&&!d.width&&!a&&b.css({width:null}),delete b.specificTextOverflow,c.rotation=k.rotation)},this);this.tickRotCorr=b.rotCorr(h.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||
|
|
219
|
+
this.options.showEmpty&&f(this.min)&&f(this.max)};a.prototype.addTitle=function(c){var b=this.chart.renderer,a=this.horiz,e=this.opposite,d=this.options.title,n=this.chart.styledMode,f;this.axisTitle||((f=d.textAlign)||(f=(a?{low:"left",middle:"center",high:"right"}:{low:e?"right":"left",middle:"center",high:e?"left":"right"})[d.align]),this.axisTitle=b.text(d.text||"",0,0,d.useHTML).attr({zIndex:7,rotation:d.rotation,align:f}).addClass("highcharts-axis-title"),n||this.axisTitle.css(C(d.style)),this.axisTitle.add(this.axisGroup),
|
|
220
|
+
this.axisTitle.isNew=!0);n||d.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};a.prototype.generateTick=function(c){var b=this.ticks;b[c]?b[c].addLabel():b[c]=new t(this,c)};a.prototype.getOffset=function(){var c=this,b=this,a=b.chart,e=a.renderer,d=b.options,n=b.tickPositions,g=b.ticks,q=b.horiz,k=b.side,h=a.inverted&&!b.isZAxis?[1,0,3,2][k]:k,C=b.hasData(),p=d.title,u=d.labels,H=a.axisOffset;a=a.clipOffset;var l=[-1,1,1,-1][k],B=d.className,
|
|
221
|
+
x=b.axisParent,E,r=0,t=0,ha=0;b.showAxis=E=C||d.showEmpty;b.staggerLines=b.horiz&&u.staggerLines||void 0;if(!b.axisGroup){var G=function(b,a,d){return e.g(b).attr({zIndex:d}).addClass("highcharts-"+c.coll.toLowerCase()+a+" "+(c.isRadial?"highcharts-radial-axis"+a+" ":"")+(B||"")).add(x)};b.gridGroup=G("grid","-grid",d.gridZIndex);b.axisGroup=G("axis","",d.zIndex);b.labelGroup=G("axis-labels","-labels",u.zIndex)}C||b.isLinked?(n.forEach(function(c){b.generateTick(c)}),b.renderUnsquish(),b.reserveSpaceDefault=
|
|
222
|
+
0===k||2===k||{1:"left",3:"right"}[k]===b.labelAlign,F(u.reserveSpace,"center"===b.labelAlign?!0:null,b.reserveSpaceDefault)&&n.forEach(function(c){ha=Math.max(g[c].getLabelSize(),ha)}),b.staggerLines&&(ha*=b.staggerLines),b.labelOffset=ha*(b.opposite?-1:1)):L(g,function(c,b){c.destroy();delete g[b]});if(p&&p.text&&!1!==p.enabled&&(b.addTitle(E),E&&!1!==p.reserveSpace)){b.titleOffset=r=b.axisTitle.getBBox()[q?"height":"width"];var J=p.offset;t=f(J)?0:F(p.margin,q?5:10)}b.renderLine();b.offset=l*F(d.offset,
|
|
223
|
+
H[k]?H[k]+(d.margin||0):0);b.tickRotCorr=b.tickRotCorr||{x:0,y:0};p=0===k?-b.labelMetrics().h:2===k?b.tickRotCorr.y:0;C=Math.abs(ha)+t;ha&&(C=C-p+l*(q?F(u.y,b.tickRotCorr.y+8*l):u.x));b.axisTitleMargin=F(J,C);b.getMaxLabelDimensions&&(b.maxLabelDimensions=b.getMaxLabelDimensions(g,n));q=this.tickSize("tick");H[k]=Math.max(H[k],(b.axisTitleMargin||0)+r+l*b.offset,C,n&&n.length&&q?q[0]+l*b.offset:0);d=d.offset?0:2*Math.floor(b.axisLine.strokeWidth()/2);a[h]=Math.max(a[h],d);m(this,"afterGetOffset")};
|
|
224
|
+
a.prototype.getLinePath=function(c){var b=this.chart,a=this.opposite,e=this.offset,d=this.horiz,n=this.left+(a?this.width:0)+e;e=b.chartHeight-this.bottom-(a?this.height:0)+e;a&&(c*=-1);return b.renderer.crispLine([["M",d?this.left:n,d?e:this.top],["L",d?b.chartWidth-this.right:n,d?e:b.chartHeight-this.bottom]],c)};a.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,
|
|
225
|
+
"stroke-width":this.options.lineWidth,zIndex:7}))};a.prototype.getTitlePosition=function(){var c=this.horiz,b=this.left,a=this.top,e=this.len,d=this.options.title,n=c?b:a,f=this.opposite,g=this.offset,q=d.x,k=d.y,h=this.axisTitle,C=this.chart.renderer.fontMetrics(d.style.fontSize,h);h=Math.max(h.getBBox(null,0).height-C.h-1,0);e={low:n+(c?0:e),middle:n+e/2,high:n+(c?e:0)}[d.align];b=(c?a+this.height:b)+(c?1:-1)*(f?-1:1)*this.axisTitleMargin+[-h,h,C.f,-h][this.side];c={x:c?e+q:b+(f?this.width:0)+g+
|
|
226
|
+
q,y:c?b+k-(f?this.height:0)+g:e+k};m(this,"afterGetTitlePosition",{titlePosition:c});return c};a.prototype.renderMinorTick=function(c,b){var a=this.minorTicks;a[c]||(a[c]=new t(this,c,"minor"));b&&a[c].isNew&&a[c].render(null,!0);a[c].render(null,!1,1)};a.prototype.renderTick=function(c,b,a){var e=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)e[c]||(e[c]=new t(this,c)),a&&e[c].isNew&&e[c].render(b,!0,-1),e[c].render(b)};a.prototype.render=function(){var b=this,
|
|
227
|
+
a=b.chart,e=b.logarithmic,d=b.options,n=b.isLinked,f=b.tickPositions,g=b.axisTitle,q=b.ticks,k=b.minorTicks,C=b.alternateBands,p=d.stackLabels,u=d.alternateGridColor,H=b.tickmarkOffset,l=b.axisLine,F=b.showAxis,B=h(a.renderer.globalAnimation),x,E;b.labelEdge.length=0;b.overlap=!1;[q,k,C].forEach(function(c){L(c,function(c){c.isActive=!1})});if(b.hasData()||n){var r=b.chart.hasRendered&&b.old&&c(b.old.min);b.minorTickInterval&&!b.categories&&b.getMinorTickPositions().forEach(function(c){b.renderMinorTick(c,
|
|
228
|
+
r)});f.length&&(f.forEach(function(c,a){b.renderTick(c,a,r)}),H&&(0===b.min||b.single)&&(q[-1]||(q[-1]=new t(b,-1,null,!0)),q[-1].render(-1)));u&&f.forEach(function(c,d){E="undefined"!==typeof f[d+1]?f[d+1]+H:b.max-H;0===d%2&&c<b.max&&E<=b.max+(a.polar?-H:H)&&(C[c]||(C[c]=new D.PlotLineOrBand(b)),x=c+H,C[c].options={from:e?e.lin2log(x):x,to:e?e.lin2log(E):E,color:u,className:"highcharts-alternate-grid"},C[c].render(),C[c].isActive=!0)});b._addedPlotLB||(b._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||
|
|
229
|
+
[]).forEach(function(c){b.addPlotBandOrLine(c)}))}[q,k,C].forEach(function(c){var b=[],e=B.duration;L(c,function(c,a){c.isActive||(c.render(a,!1,0),c.isActive=!1,b.push(a))});T(function(){for(var a=b.length;a--;)c[b[a]]&&!c[b[a]].isActive&&(c[b[a]].destroy(),delete c[b[a]])},c!==C&&a.hasRendered&&e?e:0)});l&&(l[l.isPlaced?"animate":"attr"]({d:this.getLinePath(l.strokeWidth())}),l.isPlaced=!0,l[F?"show":"hide"](F));g&&F&&(d=b.getTitlePosition(),c(d.y)?(g[g.isNew?"attr":"animate"](d),g.isNew=!1):(g.attr("y",
|
|
230
|
+
-9999),g.isNew=!0));p&&p.enabled&&b.stacking&&b.stacking.renderStackTotals();b.old={len:b.len,max:b.max,min:b.min,transA:b.transA,userMax:b.userMax,userMin:b.userMin};b.isDirty=!1;m(this,"afterRender")};a.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps};a.prototype.destroy=function(c){var b=this,a=b.plotLinesAndBands,
|
|
231
|
+
e=this.eventOptions;m(this,"destroy",{keepEvents:c});c||S(b);[b.ticks,b.minorTicks,b.alternateBands].forEach(function(c){B(c)});if(a)for(c=a.length;c--;)a[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){b[c]&&(b[c]=b[c].destroy())});for(var d in b.plotLinesAndBandsGroups)b.plotLinesAndBandsGroups[d]=b.plotLinesAndBandsGroups[d].destroy();L(b,function(c,a){-1===b.getKeepProps().indexOf(a)&&delete b[a]});this.eventOptions=e};a.prototype.drawCrosshair=
|
|
232
|
+
function(c,b){var a=this.crosshair,e=F(a&&a.snap,!0),d=this.chart,n,g=this.cross;m(this,"drawCrosshair",{e:c,point:b});c||(c=this.cross&&this.cross.e);if(a&&!1!==(f(b)||!e)){e?f(b)&&(n=F("colorAxis"!==this.coll?b.crosshairPos:null,this.isXAxis?b.plotX:this.len-b.plotY)):n=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(f(n)){var q={value:b&&(this.isXAxis?b.x:F(b.stackY,b.y)),translatedValue:n};d.polar&&E(q,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:b});q=this.getPlotLinePath(q)||
|
|
233
|
+
null}if(!f(q)){this.hideCrosshair();return}e=this.categories&&!this.isRadial;g||(this.cross=g=d.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(e?"category ":"thin ")+(a.className||"")).attr({zIndex:F(a.zIndex,2)}).add(),d.styledMode||(g.attr({stroke:a.color||(e?A.parse(y.highlightColor20).setOpacity(.25).get():y.neutralColor20),"stroke-width":F(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&g.attr({dashstyle:a.dashStyle})));g.show().attr({d:q});e&&!a.width&&g.attr({"stroke-width":this.transA});
|
|
234
|
+
this.cross.e=c}else this.hideCrosshair();m(this,"afterDrawCrosshair",{e:c,point:b})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();m(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};a.prototype.validatePositiveValue=function(b){return c(b)&&0<b};a.prototype.update=function(c,b){var a=this.chart;c=C(this.userOptions,c);this.destroy(!0);this.init(a,c);a.isDirtyBox=!0;F(b,!0)&&a.redraw()};
|
|
235
|
+
a.prototype.remove=function(c){for(var b=this.chart,a=this.coll,e=this.series,d=e.length;d--;)e[d]&&e[d].remove(!1);x(b.axes,this);x(b[a],this);b[a].forEach(function(c,b){c.options.index=c.userOptions.index=b});this.destroy();b.isDirtyBox=!0;F(c,!0)&&b.redraw()};a.prototype.setTitle=function(c,b){this.update({title:c},b)};a.prototype.setCategories=function(c,b){this.update({categories:c},b)};a.defaultOptions=v.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");
|
|
236
|
+
return a}();"";return a});I(a,"Core/Axis/DateTimeAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,A=a.getMagnitude,y=a.normalizeTickInterval,z=a.timeUnits,w;(function(a){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function l(b){"datetime"!==b.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new d(this))}var h=[];a.compose=function(b){-1===h.indexOf(b)&&(h.push(b),b.keepProps.push("dateTime"),b.prototype.getTimeTicks=t,r(b,"init",
|
|
237
|
+
l));return b};var d=function(){function b(b){this.axis=b}b.prototype.normalizeTimeTickInterval=function(b,a){var d=a||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];a=d[d.length-1];var g=z[a[0]],h=a[1],f;for(f=0;f<d.length&&!(a=d[f],g=z[a[0]],h=a[1],d[f+1]&&b<=(g*h[h.length-1]+z[d[f+1][0]])/2);f++);g===z.year&&b<5*g&&(h=[1,2,5]);b=y(b/g,h,"year"===a[0]?
|
|
238
|
+
Math.max(A(b/g),1):1);return{unitRange:g,count:b,unitName:a[0]}};b.prototype.getXDateFormat=function(b,a){var d=this.axis;return d.closestPointRange?d.chart.time.getDateFormat(d.closestPointRange,b,d.options.startOfWeek,a)||a.year:a.day};return b}();a.Additions=d})(w||(w={}));return w});I(a,"Core/Axis/LogarithmicAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,A=a.getMagnitude,y=a.normalizeTickInterval,z=a.pick,w;(function(a){function t(b){var a=this.logarithmic;"logarithmic"!==b.userOptions.type?
|
|
239
|
+
this.logarithmic=void 0:a||(this.logarithmic=new d(this))}function l(){var b=this.logarithmic;b&&(this.lin2val=function(a){return b.lin2log(a)},this.val2lin=function(a){return b.log2lin(a)})}var h=[];a.compose=function(b){-1===h.indexOf(b)&&(h.push(b),b.keepProps.push("logarithmic"),r(b,"init",t),r(b,"afterInit",l));return b};var d=function(){function b(b){this.axis=b}b.prototype.getLogTickPositions=function(b,a,d,h){var g=this.axis,f=g.len,k=g.options,p=[];h||(this.minorAutoInterval=void 0);if(.5<=
|
|
240
|
+
b)b=Math.round(b),p=g.getLinearTickPositions(b,a,d);else if(.08<=b){var u=Math.floor(a),l,m=k=void 0;for(f=.3<b?[1,2,4]:.15<b?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];u<d+1&&!m;u++){var q=f.length;for(l=0;l<q&&!m;l++){var e=this.log2lin(this.lin2log(u)*f[l]);e>a&&(!h||k<=d)&&"undefined"!==typeof k&&p.push(k);k>d&&(m=!0);k=e}}}else a=this.lin2log(a),d=this.lin2log(d),b=h?g.getMinorTickInterval():k.tickInterval,b=z("auto"===b?null:b,this.minorAutoInterval,k.tickPixelInterval/(h?5:1)*(d-a)/((h?f/g.tickPositions.length:
|
|
241
|
+
f)||1)),b=y(b,void 0,A(b)),p=g.getLinearTickPositions(b,a,d).map(this.log2lin),h||(this.minorAutoInterval=b/5);h||(g.tickInterval=b);return p};b.prototype.lin2log=function(b){return Math.pow(10,b)};b.prototype.log2lin=function(b){return Math.log(b)/Math.LN10};return b}();a.Additions=d})(w||(w={}));return w});I(a,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.erase,A=a.extend,y=a.isNumber,z;(function(a){var w=[],t;a.compose=function(a,d){t||(t=a);-1===
|
|
242
|
+
w.indexOf(d)&&(w.push(d),A(d.prototype,l.prototype));return d};var l=function(){function a(){}a.prototype.getPlotBandPath=function(a,b,g){void 0===g&&(g=this.options);var d=this.getPlotLinePath({value:b,force:!0,acrossPanes:g.acrossPanes}),k=[],h=this.horiz;b=!y(this.min)||!y(this.max)||a<this.min&&b<this.min||a>this.max&&b>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:g.acrossPanes});g=1;if(a&&d){if(b){var l=a.toString()===d.toString();g=0}for(b=0;b<a.length;b+=2){var f=a[b],B=a[b+
|
|
243
|
+
1],x=d[b],u=d[b+1];"M"!==f[0]&&"L"!==f[0]||"M"!==B[0]&&"L"!==B[0]||"M"!==x[0]&&"L"!==x[0]||"M"!==u[0]&&"L"!==u[0]||(h&&x[1]===f[1]?(x[1]+=g,u[1]+=g):h||x[2]!==f[2]||(x[2]+=g,u[2]+=g),k.push(["M",f[1],f[2]],["L",B[1],B[2]],["L",u[1],u[2]],["L",x[1],x[2]],["Z"]));k.isFlat=l}}return k};a.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};a.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};a.prototype.addPlotBandOrLine=function(a,b){var d=this,
|
|
244
|
+
h=this.userOptions,k=new t(this,a);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(b){d.addPlotBandOrLine(b)}));if(b){var l=h[b]||[];l.push(a);h[b]=l}this.plotLinesAndBands.push(k)}return k};a.prototype.removePlotBandOrLine=function(a){var b=this.plotLinesAndBands,d=this.options,h=this.userOptions;if(b){for(var k=b.length;k--;)b[k].id===a&&b[k].destroy();[d.plotLines||[],h.plotLines||[],d.plotBands||[],h.plotBands||
|
|
245
|
+
[]].forEach(function(b){for(k=b.length;k--;)(b[k]||{}).id===a&&r(b,b[k])})}};a.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};a.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return a}()})(z||(z={}));return z});I(a,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[a["Core/Color/Palette.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],a["Core/Utilities.js"]],function(a,v,A){var r=A.arrayMax,z=A.arrayMin,w=A.defined,D=A.destroyObjectProperties,t=A.erase,l=
|
|
246
|
+
A.fireEvent,h=A.merge,d=A.objectEach,b=A.pick;A=function(){function g(b,a){this.axis=b;a&&(this.options=a,this.id=a.id)}g.compose=function(b){return v.compose(g,b)};g.prototype.render=function(){l(this,"render");var g=this,k=g.axis,r=k.horiz,t=k.logarithmic,f=g.options,B=f.color,x=b(f.zIndex,0),u=f.events,E={},m=k.chart.renderer,q=f.label,e=g.label,c=f.to,n=f.from,C=f.value,H=g.svgElem,L=[],F=w(n)&&w(c);L=w(C);var W=!H,v={"class":"highcharts-plot-"+(F?"band ":"line ")+(f.className||"")},D=F?"bands":
|
|
247
|
+
"lines";t&&(n=t.log2lin(n),c=t.log2lin(c),C=t.log2lin(C));k.chart.styledMode||(L?(v.stroke=B||a.neutralColor40,v["stroke-width"]=b(f.width,1),f.dashStyle&&(v.dashstyle=f.dashStyle)):F&&(v.fill=B||a.highlightColor10,f.borderWidth&&(v.stroke=f.borderColor,v["stroke-width"]=f.borderWidth)));E.zIndex=x;D+="-"+x;(t=k.plotLinesAndBandsGroups[D])||(k.plotLinesAndBandsGroups[D]=t=m.g("plot-"+D).attr(E).add());W&&(g.svgElem=H=m.path().attr(v).add(t));if(L)L=k.getPlotLinePath({value:C,lineWidth:H.strokeWidth(),
|
|
248
|
+
acrossPanes:f.acrossPanes});else if(F)L=k.getPlotBandPath(n,c,f);else return;!g.eventsAdded&&u&&(d(u,function(c,b){H.on(b,function(c){u[b].apply(g,[c])})}),g.eventsAdded=!0);(W||!H.d)&&L&&L.length?H.attr({d:L}):H&&(L?(H.show(!0),H.animate({d:L})):H.d&&(H.hide(),e&&(g.label=e=e.destroy())));q&&(w(q.text)||w(q.formatter))&&L&&L.length&&0<k.width&&0<k.height&&!L.isFlat?(q=h({align:r&&F&&"center",x:r?!F&&4:10,verticalAlign:!r&&F&&"middle",y:r?F?16:10:F?6:-4,rotation:r&&!F&&90},q),this.renderLabel(q,L,
|
|
249
|
+
F,x)):e&&e.hide();return g};g.prototype.renderLabel=function(b,a,d,g){var f=this.axis,k=f.chart.renderer,p=this.label;p||(this.label=p=k.text(this.getLabelText(b),0,0,b.useHTML).attr({align:b.textAlign||b.align,rotation:b.rotation,"class":"highcharts-plot-"+(d?"band":"line")+"-label "+(b.className||""),zIndex:g}).add(),f.chart.styledMode||p.css(h({textOverflow:"ellipsis"},b.style)));g=a.xBounds||[a[0][1],a[1][1],d?a[2][1]:a[0][1]];a=a.yBounds||[a[0][2],a[1][2],d?a[2][2]:a[0][2]];d=z(g);k=z(a);p.align(b,
|
|
250
|
+
!1,{x:d,y:k,width:r(g)-d,height:r(a)-k});p.alignValue&&"left"!==p.alignValue||p.css({width:(90===p.rotation?f.height-(p.alignAttr.y-f.top):f.width-(p.alignAttr.x-f.left))+"px"});p.show(!0)};g.prototype.getLabelText=function(b){return w(b.formatter)?b.formatter.call(this):b.text};g.prototype.destroy=function(){t(this.axis.plotLinesAndBands,this);delete this.axis;D(this)};return g}();"";"";return A});I(a,"Core/Tooltip.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],
|
|
251
|
+
a["Core/Renderer/RendererUtilities.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=a.format,t=v.doc,l=y.distribute,h=w.addEvent,d=w.clamp,b=w.css,g=w.defined,p=w.discardElement,k=w.extend,J=w.fireEvent,G=w.isArray,f=w.isNumber,B=w.isString,x=w.merge,u=w.pick,E=w.splat,m=w.syncTimeout;a=function(){function a(b,c){this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=
|
|
252
|
+
b;this.init(b,c)}a.prototype.applyFilter=function(){var b=this.chart;b.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+b.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};
|
|
253
|
+
a.prototype.bodyFormatter=function(b){return b.map(function(c){var b=c.series.tooltipOptions;return(b[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,b[(c.point.formatPrefix||"point")+"Format"]||"")})};a.prototype.cleanSplit=function(b){this.chart.series.forEach(function(c){var a=c&&c.tt;a&&(!a.isActive||b?c.tt=a.destroy():a.isActive=!1)})};a.prototype.defaultFormatter=function(b){var c=this.points||E(this);var a=[b.tooltipFooterHeaderFormatter(c[0])];a=a.concat(b.bodyFormatter(c));
|
|
254
|
+
a.push(b.tooltipFooterHeaderFormatter(c[0],!0));return a};a.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),p(this.container));w.clearTimeout(this.hideTimer);w.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(b,c){var a=this.chart,e=a.pointer,d=a.inverted,f=a.plotTop,g=a.plotLeft,m,q,k=0,h=0;b=E(b);this.followPointer&&c?("undefined"===
|
|
255
|
+
typeof c.chartX&&(c=e.normalize(c)),e=[c.chartX-g,c.chartY-f]):b[0].tooltipPos?e=b[0].tooltipPos:(b.forEach(function(c){m=c.series.yAxis;q=c.series.xAxis;k+=c.plotX||0;h+=c.plotLow?(c.plotLow+(c.plotHigh||0))/2:c.plotY||0;q&&m&&(d?(k+=f+a.plotHeight-q.len-q.pos,h+=g+a.plotWidth-m.len-m.pos):(k+=q.pos-g,h+=m.pos-f))}),k/=b.length,h/=b.length,e=[d?a.plotWidth-h:k,d?a.plotHeight-k:h],this.shared&&1<b.length&&c&&(d?e[0]=c.chartX-g:e[1]=c.chartY-f));return e.map(Math.round)};a.prototype.getLabel=function(){var a=
|
|
256
|
+
this,c=this.chart.styledMode,d=this.options,f="tooltip"+(g(d.className)?" "+d.className:""),m=d.style.pointerEvents||(!this.followPointer&&d.stickOnContact?"auto":"none"),q=function(){a.inContact=!0},k=function(c){var b=a.chart.hoverSeries;a.inContact=a.shouldStickOnContact()&&a.chart.pointer.inClass(c.relatedTarget,"highcharts-tooltip");if(!a.inContact&&b&&b.onMouseOut)b.onMouseOut()},u,p=this.chart.renderer;if(!this.label){if(this.outside){var l=this.chart.options.chart.style,B=z.getRendererType();
|
|
257
|
+
this.container=u=v.doc.createElement("div");u.className="highcharts-tooltip-container";b(u,{position:"absolute",top:"1px",pointerEvents:m,zIndex:Math.max(this.options.style.zIndex||0,(l&&l.zIndex||0)+3)});h(u,"mouseenter",q);h(u,"mouseleave",k);v.doc.body.appendChild(u);this.renderer=p=new B(u,0,0,l,void 0,void 0,p.styledMode)}this.split?this.label=p.g(f):(this.label=p.label("",0,0,d.shape,void 0,void 0,d.useHTML,void 0,f).attr({padding:d.padding,r:d.borderRadius}),c||this.label.attr({fill:d.backgroundColor,
|
|
258
|
+
"stroke-width":d.borderWidth}).css(d.style).css({pointerEvents:m}).shadow(d.shadow));c&&d.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a.outside&&!a.split){var x=this.label,E=x.xSetter,r=x.ySetter;x.xSetter=function(c){E.call(x,a.distance);u.style.left=c+"px"};x.ySetter=function(c){r.call(x,a.distance);u.style.top=c+"px"}}this.label.on("mouseenter",q).on("mouseleave",k).attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(b,
|
|
259
|
+
c,a){var e=this.chart,d=this.distance,n={},f=e.inverted&&a.h||0,g=this.outside,m=g?t.documentElement.clientWidth-2*d:e.chartWidth,q=g?Math.max(t.body.scrollHeight,t.documentElement.scrollHeight,t.body.offsetHeight,t.documentElement.offsetHeight,t.documentElement.clientHeight):e.chartHeight,k=e.pointer.getChartPosition(),h=function(n){var f="x"===n;return[n,f?m:q,f?b:c].concat(g?[f?b*k.scaleX:c*k.scaleY,f?k.left-d+(a.plotX+e.plotLeft)*k.scaleX:k.top-d+(a.plotY+e.plotTop)*k.scaleY,0,f?m:q]:[f?b:c,f?
|
|
260
|
+
a.plotX+e.plotLeft:a.plotY+e.plotTop,f?e.plotLeft:e.plotTop,f?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},p=h("y"),l=h("x"),B,x=!this.followPointer&&u(a.ttBelow,!e.inverted===!!a.negative),E=function(c,b,a,e,m,q,h){var C=g?"y"===c?d*k.scaleY:d*k.scaleX:d,u=(a-e)/2,p=e<m-d,l=m+d+e<b,H=m-C-a+u;m=m+C-u;if(x&&l)n[c]=m;else if(!x&&p)n[c]=H;else if(p)n[c]=Math.min(h-e,0>H-f?H:H-f);else if(l)n[c]=Math.max(q,m+f+a>b?m:m+f);else return!1},r=function(c,b,a,e,f){var g;f<d||f>b-d?g=!1:n[c]=f<a/2?1:f>b-e/
|
|
261
|
+
2?b-e-2:f-a/2;return g},K=function(c){var b=p;p=l;l=b;B=c},G=function(){!1!==E.apply(0,p)?!1!==r.apply(0,l)||B||(K(!0),G()):B?n.x=n.y=0:(K(!0),G())};(e.inverted||1<this.len)&&K();G();return n};a.prototype.hide=function(b){var c=this;w.clearTimeout(this.hideTimer);b=u(b,this.options.hideDelay);this.isHidden||(this.hideTimer=m(function(){c.getLabel().fadeOut(b?void 0:b);c.isHidden=!0},b))};a.prototype.init=function(b,c){this.chart=b;this.options=c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=
|
|
262
|
+
!0;this.split=c.split&&!b.inverted&&!b.polar;this.shared=c.shared||this.split;this.outside=u(c.outside,!(!b.scrollablePixelsX&&!b.scrollablePixelsY))};a.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};a.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};a.prototype.move=function(b,c,a,d){var e=this,f=e.now,n=!1!==e.options.animation&&!e.isHidden&&(1<Math.abs(b-f.x)||1<Math.abs(c-f.y)),g=e.followPointer||
|
|
263
|
+
1<e.len;k(f,{x:n?(2*f.x+b)/3:b,y:n?(f.y+c)/2:c,anchorX:g?void 0:n?(2*f.anchorX+a)/3:a,anchorY:g?void 0:n?(f.anchorY+d)/2:d});e.getLabel().attr(f);e.drawTracker();n&&(w.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(b,c,a,d)},32))};a.prototype.refresh=function(b,c){var a=this.chart,e=this.options,d=E(b),f=d[0],g=[],m=e.formatter||this.defaultFormatter,q=this.shared,k=a.styledMode,h={};if(e.enabled){w.clearTimeout(this.hideTimer);this.followPointer=!this.split&&
|
|
264
|
+
f.series.tooltipOptions.followPointer;var p=this.getAnchor(b,c),l=p[0],B=p[1];!q||!G(b)&&b.series&&b.series.noSharedTooltip?h=f.getLabelConfig():(a.pointer.applyInactiveState(d),d.forEach(function(c){c.setState("hover");g.push(c.getLabelConfig())}),h={x:f.category,y:f.y},h.points=g);this.len=g.length;b=m.call(h,this);m=f.series;this.distance=u(m.tooltipOptions.distance,16);if(!1===b)this.hide();else{if(this.split)this.renderSplit(b,d);else if(d=l,q=B,c&&a.pointer.isDirectTouch&&(d=c.chartX-a.plotLeft,
|
|
265
|
+
q=c.chartY-a.plotTop),a.polar||!1===m.options.clip||m.shouldShowTooltip(d,q))c=this.getLabel(),e.style.width&&!k||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:b&&b.join?b.join(""):b}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+u(f.colorIndex,m.colorIndex)),k||c.attr({stroke:e.borderColor||f.color||m.color||A.neutralColor60}),this.updatePosition({plotX:l,plotY:B,negative:f.negative,ttBelow:f.ttBelow,h:p[2]||0});else{this.hide();return}this.isHidden&&this.label&&
|
|
266
|
+
this.label.attr({opacity:1}).show();this.isHidden=!1}J(this,"refresh")}};a.prototype.renderSplit=function(b,c){function a(c,b,a,f,n){void 0===n&&(n=!0);a?(b=Y?0:I,c=d(c-f/2,P.left,P.right-f-(e.outside?Q:0))):(b-=da,c=n?c-f-J:c+J,c=d(c,n?c:P.left,P.right));return{x:c,y:b}}var e=this,f=e.chart,g=e.chart,m=g.chartWidth,q=g.chartHeight,h=g.plotHeight,p=g.plotLeft,x=g.plotTop,E=g.pointer,r=g.scrollablePixelsY;r=void 0===r?0:r;var G=g.scrollablePixelsX,w=g.scrollingContainer;w=void 0===w?{scrollLeft:0,
|
|
267
|
+
scrollTop:0}:w;var v=w.scrollLeft;w=w.scrollTop;var D=g.styledMode,J=e.distance,K=e.options,U=e.options.positioner,P=e.outside&&"number"!==typeof G?t.documentElement.getBoundingClientRect():{left:v,right:v+m,top:w,bottom:w+q},y=e.getLabel(),z=this.renderer||f.renderer,Y=!(!f.xAxis[0]||!f.xAxis[0].opposite);f=E.getChartPosition();var Q=f.left;f=f.top;var da=x+w,ea=0,I=h-r;B(b)&&(b=[!1,b]);b=b.slice(0,c.length+1).reduce(function(b,f,n){if(!1!==f&&""!==f){n=c[n-1]||{isHeader:!0,plotX:c[0].plotX,plotY:h,
|
|
268
|
+
series:{}};var g=n.isHeader,m=g?e:n.series;f=f.toString();var q=m.tt,k=n.isHeader;var C=n.series;var l="highcharts-color-"+u(n.colorIndex,C.colorIndex,"none");q||(q={padding:K.padding,r:K.borderRadius},D||(q.fill=K.backgroundColor,q["stroke-width"]=K.borderWidth),q=z.label("",0,0,K[k?"headerShape":"shape"],void 0,void 0,K.useHTML).addClass((k?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+l).attr(q).add(y));q.isActive=!0;q.attr({text:f});D||q.css(K.style).shadow(K.shadow).attr({stroke:K.borderColor||
|
|
269
|
+
n.color||C.color||A.neutralColor80});m=m.tt=q;k=m.getBBox();f=k.width+m.strokeWidth();g&&(ea=k.height,I+=ea,Y&&(da-=ea));C=n.plotX;C=void 0===C?0:C;l=n.plotY;l=void 0===l?0:l;q=n.series;if(n.isHeader){C=p+C;var H=x+h/2}else{var B=q.xAxis,F=q.yAxis;C=B.pos+d(C,-J,B.len+J);q.shouldShowTooltip(0,F.pos-x+l,{ignoreX:!0})&&(H=F.pos+l)}C=d(C,P.left-J,P.right+J);"number"===typeof H?(k=k.height+1,l=U?U.call(e,f,k,n):a(C,H,g,f),b.push({align:U?0:void 0,anchorX:C,anchorY:H,boxWidth:f,point:n,rank:u(l.rank,g?
|
|
270
|
+
1:0),size:k,target:l.y,tt:m,x:l.x})):m.isActive=!1}return b},[]);!U&&b.some(function(c){var b=(e.outside?Q:0)+c.anchorX;return b<P.left&&b+c.boxWidth<P.right?!0:b<Q-P.left+c.boxWidth&&P.right-b>b})&&(b=b.map(function(c){var b=a(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return k(c,{target:b.y,x:b.x})}));e.cleanSplit();l(b,I);var ca=Q,fa=Q;b.forEach(function(c){var b=c.x,a=c.boxWidth;c=c.isHeader;c||(e.outside&&Q+b<ca&&(ca=Q+b),!c&&e.outside&&ca+a>fa&&(fa=Q+b))});b.forEach(function(c){var b=
|
|
271
|
+
c.x,a=c.anchorX,d=c.pos,f=c.point.isHeader;d={visibility:"undefined"===typeof d?"hidden":"inherit",x:b,y:d+da,anchorX:a,anchorY:c.anchorY};if(e.outside&&b<a){var n=Q-ca;0<n&&(f||(d.x=b+n,d.anchorX=a+n),f&&(d.x=(fa-ca)/2,d.anchorX=a+n))}c.tt.attr(d)});b=e.container;r=e.renderer;e.outside&&b&&r&&(g=y.getBBox(),r.setSize(g.width+g.x,g.height+g.y,!1),b.style.left=ca+"px",b.style.top=f+"px")};a.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();
|
|
272
|
+
else{var b=this.chart,c=this.label,a=this.shared?b.hoverPoints:b.hoverPoint;if(c&&a){var d={x:0,y:0,width:0,height:0};a=this.getAnchor(a);var f=c.getBBox();a[0]+=b.plotLeft-c.translateX;a[1]+=b.plotTop-c.translateY;d.x=Math.min(0,a[0]);d.y=Math.min(0,a[1]);d.width=0>a[0]?Math.max(Math.abs(a[0]),f.width-a[0]):Math.max(Math.abs(a[0]),f.width);d.height=0>a[1]?Math.max(Math.abs(a[1]),f.height-Math.abs(a[1])):Math.max(Math.abs(a[1]),f.height);this.tracker?this.tracker.attr(d):(this.tracker=c.renderer.rect(d).addClass("highcharts-tracker").add(c),
|
|
273
|
+
b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(b,c){var a=b.series,e=a.tooltipOptions,d=a.xAxis,g=d&&d.dateTime;d={isFooter:c,labelConfig:b};var m=e.xDateFormat,q=e[c?"footerFormat":"headerFormat"];J(this,"headerFormatter",d,function(c){g&&
|
|
274
|
+
!m&&f(b.key)&&(m=g.getXDateFormat(b.key,e.dateTimeLabelFormats));g&&m&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(c){q=q.replace("{point."+c+"}","{point."+c+":"+m+"}")});a.chart.styledMode&&(q=this.styledModeFormat(q));c.text=r(q,{point:b,series:a},this.chart)});return d.text};a.prototype.update=function(b){this.destroy();x(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,x(!0,this.options,b))};a.prototype.updatePosition=function(a){var c=this.chart,e=this.options,
|
|
275
|
+
d=c.pointer,f=this.getLabel();d=d.getChartPosition();var g=(e.positioner||this.getPosition).call(this,f.width,f.height,a),m=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;if(this.outside){e=e.borderWidth+2*this.distance;this.renderer.setSize(f.width+e,f.height+e,!1);if(1!==d.scaleX||1!==d.scaleY)b(this.container,{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),m*=d.scaleX,a*=d.scaleY;m+=d.left-g.x;a+=d.top-g.y}this.move(Math.round(g.x),Math.round(g.y||0),m,a)};return a}();"";return a});I(a,"Core/Series/Point.js",
|
|
276
|
+
[a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/FormatUtilities.js"],a["Core/Utilities.js"]],function(a,v,A,y,z){var r=v.animObject,D=A.defaultOptions,t=y.format,l=z.addEvent,h=z.defined,d=z.erase,b=z.extend,g=z.fireEvent,p=z.getNestedProperty,k=z.isArray,J=z.isFunction,G=z.isNumber,f=z.isObject,B=z.merge,x=z.objectEach,u=z.pick,E=z.syncTimeout,m=z.removeEvent,q=z.uniqueKey;v=function(){function e(){this.colorIndex=this.category=void 0;
|
|
277
|
+
this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}e.prototype.animateBeforeDestroy=function(){var c=this,a={x:c.startXPos,opacity:0},e=c.getGraphicalProps();e.singular.forEach(function(b){c[b]=c[b].animate("dataLabel"===b?{x:c[b].startXPos,y:c[b].startYPos,opacity:0}:a)});e.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.animate(b({x:c.startXPos},a.startYPos?
|
|
278
|
+
{x:a.startXPos,y:a.startYPos}:{}))})})};e.prototype.applyOptions=function(c,a){var d=this.series,f=d.options.pointValKey||d.pointValKey;c=e.prototype.optionsToObject.call(this,c);b(this,c);this.options=this.options?b(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;f&&(this.y=e.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!G(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in
|
|
279
|
+
this&&"undefined"===typeof a&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));"undefined"===typeof this.x&&d?this.x="undefined"===typeof a?d.autoIncrement():a:G(c.x)&&d.options.relativeXValue&&(this.x=d.autoIncrement(c.x));return this};e.prototype.destroy=function(){function c(){if(b.graphic||b.dataLabel||b.dataLabels)m(b),b.destroyElements();for(q in b)b[q]=null}var b=this,a=b.series,e=a.chart;a=a.options.dataSorting;var f=e.hoverPoints,g=r(b.series.chart.renderer.globalAnimation),q;b.legendItem&&
|
|
280
|
+
e.legend.destroyItem(b);f&&(b.setState(),d(f,b),f.length||(e.hoverPoints=null));if(b===e.hoverPoint)b.onMouseOut();a&&a.enabled?(this.animateBeforeDestroy(),E(c,g.duration)):c();e.pointCount--};e.prototype.destroyElements=function(c){var b=this;c=b.getGraphicalProps(c);c.singular.forEach(function(c){b[c]=b[c].destroy()});c.plural.forEach(function(c){b[c].forEach(function(c){c.element&&c.destroy()});delete b[c]})};e.prototype.firePointEvent=function(c,b,a){var e=this,d=this.series.options;(d.point.events[c]||
|
|
281
|
+
e.options&&e.options.events&&e.options.events[c])&&e.importEvents();"click"===c&&d.allowPointSelect&&(a=function(c){e.select&&e.select(null,c.ctrlKey||c.metaKey||c.shiftKey)});g(e,c,b,a)};e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:
|
|
282
|
+
"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};e.prototype.getGraphicalProps=function(c){var b=this,a=[],e={singular:[],plural:[]},d;c=c||{graphic:1,dataLabel:1};c.graphic&&a.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&a.push("dataLabel","dataLabelUpper","connector");for(d=a.length;d--;){var f=a[d];b[f]&&e.singular.push(f)}["dataLabel","connector"].forEach(function(a){var d=a+"s";c[a]&&b[d]&&e.plural.push(d)});return e};e.prototype.getLabelConfig=
|
|
283
|
+
function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};e.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?p(c,this.options):this[c]};e.prototype.getZone=function(){var c=this.series,b=c.zones;c=c.zoneAxis||"y";var a,e=0;for(a=b[e];this[c]>=a.value;)a=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=
|
|
284
|
+
a&&a.color&&!this.options.color?a.color:this.nonZonedColor;return a};e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};e.prototype.init=function(c,b,a){this.series=c;this.applyOptions(b,a);this.id=h(this.id)?this.id:q();this.resolveColor();c.chart.pointCount++;g(this,"afterInit");return this};e.prototype.optionsToObject=function(c){var b=this.series,a=b.options.keys,d=a||b.pointArrayMap||["y"],f=d.length,g={},m=
|
|
285
|
+
0,q=0;if(G(c)||null===c)g[d[0]]=c;else if(k(c))for(!a&&c.length>f&&(b=typeof c[0],"string"===b?g.name=c[0]:"number"===b&&(g.x=c[0]),m++);q<f;)a&&"undefined"===typeof c[m]||(0<d[q].indexOf(".")?e.prototype.setNestedProperty(g,c[m],d[q]):g[d[q]]=c[m]),m++,q++;else"object"===typeof c&&(g=c,c.dataLabels&&(b._hasPointLabels=!0),c.marker&&(b._hasPointMarkers=!0));return g};e.prototype.resolveColor=function(){var c=this.series,b=c.chart.styledMode;var a=c.chart.options.chart.colorCount;delete this.nonZonedColor;
|
|
286
|
+
if(c.options.colorByPoint){if(!b){a=c.options.colors||c.chart.options.colors;var e=a[c.colorCounter];a=a.length}b=c.colorCounter;c.colorCounter++;c.colorCounter===a&&(c.colorCounter=0)}else b||(e=c.color),b=c.colorIndex;this.colorIndex=u(this.options.colorIndex,b);this.color=u(this.options.color,e)};e.prototype.setNestedProperty=function(c,b,a){a.split(".").reduce(function(c,a,e,d){c[a]=d.length-1===e?b:f(c[a],!0)?c[a]:{};return c[a]},c);return c};e.prototype.tooltipFormatter=function(c){var b=this.series,
|
|
287
|
+
a=b.tooltipOptions,e=u(a.valueDecimals,""),d=a.valuePrefix||"",f=a.valueSuffix||"";b.chart.styledMode&&(c=b.chart.tooltip.styledModeFormat(c));(b.pointArrayMap||["y"]).forEach(function(b){b="{point."+b;if(d||f)c=c.replace(RegExp(b+"}","g"),d+b+"}"+f);c=c.replace(RegExp(b+"}","g"),b+":,."+e+"f}")});return t(c,{point:this,series:this.series},b.chart)};e.prototype.update=function(c,b,a,e){function d(){g.applyOptions(c);var e=m&&g.hasDummyGraphic;e=null===g.y?!e:e;m&&e&&(g.graphic=m.destroy(),delete g.hasDummyGraphic);
|
|
288
|
+
f(c,!0)&&(m&&m.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(g.graphic=m.destroy()),c&&c.dataLabels&&g.dataLabel&&(g.dataLabel=g.dataLabel.destroy()),g.connector&&(g.connector=g.connector.destroy()));h=g.index;n.updateParallelArrays(g,h);k.data[h]=f(k.data[h],!0)||f(c,!0)?g.options:u(c,k.data[h]);n.isDirty=n.isDirtyData=!0;!n.fixedBox&&n.hasCartesianSeries&&(q.isDirtyBox=!0);"point"===k.legendType&&(q.isDirtyLegend=!0);b&&q.redraw(a)}var g=this,n=g.series,m=g.graphic,q=n.chart,k=n.options,
|
|
289
|
+
h;b=u(b,!0);!1===e?d():g.firePointEvent("update",{options:c},d)};e.prototype.remove=function(c,b){this.series.removePoint(this.series.data.indexOf(this),c,b)};e.prototype.select=function(c,b){var a=this,e=a.series,d=e.chart;this.selectedStaging=c=u(c,!a.selected);a.firePointEvent(c?"select":"unselect",{accumulate:b},function(){a.selected=a.options.selected=c;e.options.data[e.data.indexOf(a)]=a.options;a.setState(c&&"select");b||d.getSelectedPoints().forEach(function(c){var b=c.series;c.selected&&
|
|
290
|
+
c!==a&&(c.selected=c.options.selected=!1,b.options.data[b.data.indexOf(c)]=c.options,c.setState(d.hoverPoints&&b.options.inactiveOtherPoints?"inactive":""),c.firePointEvent("unselect"))})});delete this.selectedStaging};e.prototype.onMouseOver=function(c){var b=this.series.chart,a=b.pointer;c=c?a.normalize(c):a.getChartCoordinatesFromPoint(this,b.inverted);a.runPointActions(c,this)};e.prototype.onMouseOut=function(){var c=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||
|
|
291
|
+
(c.hoverPoints||[]).forEach(function(c){c.setState()});c.hoverPoints=c.hoverPoint=null};e.prototype.importEvents=function(){if(!this.hasImportedEvents){var c=this,b=B(c.series.options.point,c.options).events;c.events=b;x(b,function(b,a){J(b)&&l(c,a,b)});this.hasImportedEvents=!0}};e.prototype.setState=function(c,e){var d=this.series,f=this.state,n=d.options.states[c||"normal"]||{},m=D.plotOptions[d.type].marker&&d.options.marker,q=m&&!1===m.enabled,k=m&&m.states&&m.states[c||"normal"]||{},h=!1===
|
|
292
|
+
k.enabled,p=this.marker||{},l=d.chart,B=m&&d.markerAttribs,x=d.halo,E,r=d.stateMarkerGraphic;c=c||"";if(!(c===this.state&&!e||this.selected&&"select"!==c||!1===n.enabled||c&&(h||q&&!1===k.enabled)||c&&p.states&&p.states[c]&&!1===p.states[c].enabled)){this.state=c;B&&(E=d.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){f&&this.graphic.removeClass("highcharts-point-"+f);c&&this.graphic.addClass("highcharts-point-"+c);if(!l.styledMode){var t=d.pointAttribs(this,c);var w=u(l.options.chart.animation,
|
|
293
|
+
n.animation);d.options.inactiveOtherPoints&&G(t.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:t.opacity},w)}),this.connector&&this.connector.animate({opacity:t.opacity},w));this.graphic.animate(t,w)}E&&this.graphic.animate(E,u(l.options.chart.animation,k.animation,m.animation));r&&r.hide()}else{if(c&&k){f=p.symbol||d.symbol;r&&r.currentSymbol!==f&&(r=r.destroy());if(E)if(r)r[e?"animate":"attr"]({x:E.x,y:E.y});else f&&(d.stateMarkerGraphic=r=l.renderer.symbol(f,E.x,E.y,
|
|
294
|
+
E.width,E.height).add(d.markerGroup),r.currentSymbol=f);!l.styledMode&&r&&r.attr(d.pointAttribs(this,c))}r&&(r[c&&this.isInside?"show":"hide"](),r.element.point=this,r.addClass(this.getClassName(),!0))}n=n.halo;E=(r=this.graphic||r)&&r.visibility||"inherit";n&&n.size&&r&&"hidden"!==E&&!this.isCluster?(x||(d.halo=x=l.renderer.path().add(r.parentGroup)),x.show()[e?"animate":"attr"]({d:this.haloPath(n.size)}),x.attr({"class":"highcharts-halo highcharts-color-"+u(this.colorIndex,d.colorIndex)+(this.className?
|
|
295
|
+
" "+this.className:""),visibility:E,zIndex:-1}),x.point=this,l.styledMode||x.attr(b({fill:this.color||d.color,"fill-opacity":n.opacity},a.filterUserAttributes(n.attributes||{})))):x&&x.point&&x.point.haloPath&&x.animate({d:x.point.haloPath(0)},null,x.hide);g(this,"afterSetState",{state:c})}};e.prototype.haloPath=function(c){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-c,this.plotY-c,2*c,2*c)};return e}();"";return v});I(a,"Core/Pointer.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],
|
|
296
|
+
a["Core/Color/Palette.js"],a["Core/Tooltip.js"],a["Core/Utilities.js"]],function(a,v,A,y,z){var r=a.parse,D=v.charts,t=v.noop,l=z.addEvent,h=z.attr,d=z.css,b=z.defined,g=z.extend,p=z.find,k=z.fireEvent,J=z.isNumber,G=z.isObject,f=z.objectEach,B=z.offset,x=z.pick,u=z.splat;a=function(){function a(b,a){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=b;this.hasDragged=!1;this.options=a;this.init(b,a)}a.prototype.applyInactiveState=function(b){var a=[],
|
|
297
|
+
e;(b||[]).forEach(function(c){e=c.series;a.push(e);e.linkedParent&&a.push(e.linkedParent);e.linkedSeries&&(a=a.concat(e.linkedSeries));e.navigatorSeries&&a.push(e.navigatorSeries)});this.chart.series.forEach(function(c){-1===a.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var b=this;this.eventsToUnbind.forEach(function(b){return b()});this.eventsToUnbind=[];v.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=
|
|
298
|
+
a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);f(b,function(a,e){b[e]=void 0})};a.prototype.drag=function(b){var a=this.chart,e=a.options.chart,c=this.zoomHor,d=this.zoomVert,f=a.plotLeft,g=a.plotTop,m=a.plotWidth,k=a.plotHeight,h=this.mouseDownX||0,u=this.mouseDownY||0,p=G(e.panning)?e.panning&&e.panning.enabled:e.panning,l=e.panKey&&b[e.panKey+"Key"],B=b.chartX,x=b.chartY,t=this.selectionMarker;if(!t||!t.touch)if(B<
|
|
299
|
+
f?B=f:B>f+m&&(B=f+m),x<g?x=g:x>g+k&&(x=g+k),this.hasDragged=Math.sqrt(Math.pow(h-B,2)+Math.pow(u-x,2)),10<this.hasDragged){var E=a.isInsidePlot(h-f,u-g,{visiblePlotOnly:!0});a.hasCartesianSeries&&(this.zoomX||this.zoomY)&&E&&!l&&!t&&(this.selectionMarker=t=a.renderer.rect(f,g,c?1:m,d?1:k,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||t.attr({fill:e.selectionMarkerFill||r(A.highlightColor80).setOpacity(.25).get()}));t&&c&&(c=B-h,t.attr({width:Math.abs(c),x:(0<c?0:c)+
|
|
300
|
+
h}));t&&d&&(c=x-u,t.attr({height:Math.abs(c),y:(0<c?0:c)+u}));E&&!t&&p&&a.pan(b,e.panning)}};a.prototype.dragStart=function(b){var a=this.chart;a.mouseIsDown=b.type;a.cancelClick=!1;a.mouseDownX=this.mouseDownX=b.chartX;a.mouseDownY=this.mouseDownY=b.chartY};a.prototype.drop=function(a){var f=this,e=this.chart,c=this.hasPinched;if(this.selectionMarker){var n={originalEvent:a,xAxis:[],yAxis:[]},m=this.selectionMarker,h=m.attr?m.attr("x"):m.x,u=m.attr?m.attr("y"):m.y,p=m.attr?m.attr("width"):m.width,
|
|
301
|
+
l=m.attr?m.attr("height"):m.height,B;if(this.hasDragged||c)e.axes.forEach(function(e){if(e.zoomEnabled&&b(e.min)&&(c||f[{xAxis:"zoomX",yAxis:"zoomY"}[e.coll]])&&J(h)&&J(u)){var d=e.horiz,g="touchend"===a.type?e.minPixelPadding:0,m=e.toValue((d?h:u)+g);d=e.toValue((d?h+p:u+l)-g);n[e.coll].push({axis:e,min:Math.min(m,d),max:Math.max(m,d)});B=!0}}),B&&k(e,"selection",n,function(b){e.zoom(g(b,c?{animation:!1}:null))});J(e.index)&&(this.selectionMarker=this.selectionMarker.destroy());c&&this.scaleGroups()}e&&
|
|
302
|
+
J(e.index)&&(d(e.container,{cursor:e._cursor}),e.cancelClick=10<this.hasDragged,e.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=function(b,a,e){var c=this.chart,d=c.hoverPoint;c=c.tooltip;if(d&&c&&c.isStickyOnContact())return d;var f;b.forEach(function(c){var b=!(c.noSharedTooltip&&a)&&0>c.options.findNearestPointBy.indexOf("y");c=c.searchPoint(e,b);if((b=G(c,!0)&&c.series)&&!(b=!G(f,!0))){b=f.distX-c.distX;var d=f.dist-c.dist,g=(c.series.group&&
|
|
303
|
+
c.series.group.zIndex)-(f.series.group&&f.series.group.zIndex);b=0<(0!==b&&a?b:0!==d?d:0!==g?g:f.series.index>c.series.index?-1:1)}b&&(f=c)});return f};a.prototype.getChartCoordinatesFromPoint=function(b,a){var e=b.series,c=e.xAxis;e=e.yAxis;var d=b.shapeArgs;if(c&&e){var f=x(b.clientX,b.plotX),g=b.plotY||0;b.isNode&&d&&J(d.x)&&J(d.y)&&(f=d.x,g=d.y);return a?{chartX:e.len+e.pos-g,chartY:c.len+c.pos-f}:{chartX:f+c.pos,chartY:g+e.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}};a.prototype.getChartPosition=
|
|
304
|
+
function(){if(this.chartPosition)return this.chartPosition;var b=this.chart.container,a=B(b);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};var e=b.offsetWidth;b=b.offsetHeight;2<e&&2<b&&(this.chartPosition.scaleX=a.width/e,this.chartPosition.scaleY=a.height/b);return this.chartPosition};a.prototype.getCoordinates=function(b){var a={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(e){a[e.isXAxis?"xAxis":"yAxis"].push({axis:e,value:e.toValue(b[e.horiz?"chartX":"chartY"])})});return a};
|
|
305
|
+
a.prototype.getHoverData=function(b,a,e,c,d,f){var g=[];c=!(!c||!b);var n={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:d};k(this,"beforeGetHoverData",n);var m=a&&!a.stickyTracking?[a]:e.filter(function(c){return n.filter?n.filter(c):c.visible&&!(!d&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&c.stickyTracking});var q=c||!f?b:this.findNearestKDPoint(m,d,f);a=q&&q.series;q&&(d&&!a.noSharedTooltip?(m=e.filter(function(c){return n.filter?n.filter(c):c.visible&&!(!d&&c.directTouch)&&
|
|
306
|
+
x(c.options.enableMouseTracking,!0)&&!c.noSharedTooltip}),m.forEach(function(c){var b=p(c.points,function(c){return c.x===q.x&&!c.isNull});G(b)&&(c.chart.isBoosting&&(b=c.getPoint(b)),g.push(b))})):g.push(q));n={hoverPoint:q};k(this,"afterGetHoverData",n);return{hoverPoint:n.hoverPoint,hoverSeries:a,hoverPoints:g}};a.prototype.getPointFromEvent=function(b){b=b.target;for(var a;b&&!a;)a=b.point,b=b.parentNode;return a};a.prototype.onTrackerMouseOut=function(b){b=b.relatedTarget||b.toElement;var a=
|
|
307
|
+
this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!a||!b||a.stickyTracking||this.inClass(b,"highcharts-tooltip")||this.inClass(b,"highcharts-series-"+a.index)&&this.inClass(b,"highcharts-tracker")))a.onMouseOut()};a.prototype.inClass=function(b,a){for(var e;b;){if(e=h(b,"class")){if(-1!==e.indexOf(a))return!0;if(-1!==e.indexOf("highcharts-container"))return!1}b=b.parentNode}};a.prototype.init=function(b,a){this.options=a;this.chart=b;this.runChartClick=!(!a.chart.events||!a.chart.events.click);this.pinchDown=
|
|
308
|
+
[];this.lastValidTouch={};y&&(b.tooltip=new y(b,a.tooltip),this.followTouchMove=x(a.tooltip.followTouchMove,!0));this.setDOMEvents()};a.prototype.normalize=function(b,a){var e=b.touches,c=e?e.length?e.item(0):x(e.changedTouches,b.changedTouches)[0]:b;a||(a=this.getChartPosition());e=c.pageX-a.left;c=c.pageY-a.top;e/=a.scaleX;c/=a.scaleY;return g(b,{chartX:Math.round(e),chartY:Math.round(c)})};a.prototype.onContainerClick=function(b){var a=this.chart,e=a.hoverPoint;b=this.normalize(b);var c=a.plotLeft,
|
|
309
|
+
d=a.plotTop;a.cancelClick||(e&&this.inClass(b.target,"highcharts-tracker")?(k(e.series,"click",g(b,{point:e})),a.hoverPoint&&e.firePointEvent("click",b)):(g(b,this.getCoordinates(b)),a.isInsidePlot(b.chartX-c,b.chartY-d,{visiblePlotOnly:!0})&&k(a,"click",b)))};a.prototype.onContainerMouseDown=function(b){var a=1===((b.buttons||b.button)&1);b=this.normalize(b);if(v.isFirefox&&0!==b.button)this.onContainerMouseMove(b);if("undefined"===typeof b.button||a)this.zoomOption(b),a&&b.preventDefault&&b.preventDefault(),
|
|
310
|
+
this.dragStart(b)};a.prototype.onContainerMouseLeave=function(b){var d=D[x(a.hoverChartIndex,-1)],e=this.chart.tooltip;e&&e.shouldStickOnContact()&&this.inClass(b.relatedTarget,"highcharts-tooltip-container")||(b=this.normalize(b),d&&(b.relatedTarget||b.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),e&&!e.isHidden&&this.reset())};a.prototype.onContainerMouseEnter=function(b){delete this.chartPosition};a.prototype.onContainerMouseMove=function(b){var a=this.chart;b=this.normalize(b);
|
|
311
|
+
this.setHoverChartIndex();b.preventDefault||(b.returnValue=!1);("mousedown"===a.mouseIsDown||this.touchSelect(b))&&this.drag(b);a.openMenu||!this.inClass(b.target,"highcharts-tracker")&&!a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop,{visiblePlotOnly:!0})||(this.inClass(b.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(b))};a.prototype.onDocumentTouchEnd=function(b){var d=D[x(a.hoverChartIndex,-1)];d&&d.pointer.drop(b)};a.prototype.onContainerTouchMove=function(b){if(this.touchSelect(b))this.onContainerMouseMove(b);
|
|
312
|
+
else this.touch(b)};a.prototype.onContainerTouchStart=function(b){if(this.touchSelect(b))this.onContainerMouseDown(b);else this.zoomOption(b),this.touch(b,!0)};a.prototype.onDocumentMouseMove=function(b){var a=this.chart,e=this.chartPosition;b=this.normalize(b,e);var c=a.tooltip;!e||c&&c.isStickyOnContact()||a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop,{visiblePlotOnly:!0})||this.inClass(b.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(b){var d=D[x(a.hoverChartIndex,
|
|
313
|
+
-1)];d&&d.pointer.drop(b)};a.prototype.pinch=function(b){var a=this,e=a.chart,c=a.pinchDown,d=b.touches||[],f=d.length,k=a.lastValidTouch,h=a.hasZoom,m={},u=1===f&&(a.inClass(b.target,"highcharts-tracker")&&e.runTrackerClick||a.runChartClick),p={},l=a.selectionMarker;1<f?a.initiated=!0:1===f&&this.followTouchMove&&(a.initiated=!1);h&&a.initiated&&!u&&!1!==b.cancelable&&b.preventDefault();[].map.call(d,function(b){return a.normalize(b)});"touchstart"===b.type?([].forEach.call(d,function(b,a){c[a]=
|
|
314
|
+
{chartX:b.chartX,chartY:b.chartY}}),k.x=[c[0].chartX,c[1]&&c[1].chartX],k.y=[c[0].chartY,c[1]&&c[1].chartY],e.axes.forEach(function(b){if(b.zoomEnabled){var c=e.bounds[b.horiz?"h":"v"],a=b.minPixelPadding,d=b.toPixels(Math.min(x(b.options.min,b.dataMin),b.dataMin)),f=b.toPixels(Math.max(x(b.options.max,b.dataMax),b.dataMax)),g=Math.max(d,f);c.min=Math.min(b.pos,Math.min(d,f)-a);c.max=Math.max(b.pos+b.len,g+a)}}),a.res=!0):a.followTouchMove&&1===f?this.runPointActions(a.normalize(b)):c.length&&(l||
|
|
315
|
+
(a.selectionMarker=l=g({destroy:t,touch:!0},e.plotBox)),a.pinchTranslate(c,d,m,l,p,k),a.hasPinched=h,a.scaleGroups(m,p),a.res&&(a.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(b,a,e,c,d,f){this.zoomHor&&this.pinchTranslateDirection(!0,b,a,e,c,d,f);this.zoomVert&&this.pinchTranslateDirection(!1,b,a,e,c,d,f)};a.prototype.pinchTranslateDirection=function(b,a,e,c,d,f,g,k){var n=this.chart,h=b?"x":"y",m=b?"X":"Y",q="chart"+m,u=b?"width":"height",p=n["plot"+(b?"Left":"Top")],l=n.inverted,
|
|
316
|
+
B=n.bounds[b?"h":"v"],x=1===a.length,C=a[0][q],r=!x&&a[1][q];a=function(){"number"===typeof G&&20<Math.abs(C-r)&&(E=k||Math.abs(H-G)/Math.abs(C-r));K=(p-H)/E+C;t=n["plot"+(b?"Width":"Height")]/E};var t,K,E=k||1,H=e[0][q],G=!x&&e[1][q];a();e=K;if(e<B.min){e=B.min;var w=!0}else e+t>B.max&&(e=B.max-t,w=!0);w?(H-=.8*(H-g[h][0]),"number"===typeof G&&(G-=.8*(G-g[h][1])),a()):g[h]=[H,G];l||(f[h]=K-p,f[u]=t);f=l?1/E:E;d[u]=t;d[h]=e;c[l?b?"scaleY":"scaleX":"scale"+m]=E;c["translate"+m]=f*p+(H-f*C)};a.prototype.reset=
|
|
317
|
+
function(b,a){var e=this.chart,c=e.hoverSeries,d=e.hoverPoint,f=e.hoverPoints,g=e.tooltip,k=g&&g.shared?f:d;b&&k&&u(k).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(b=!1)});if(b)g&&k&&u(k).length&&(g.refresh(k),g.shared&&f?f.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):d&&(d.setState(d.state,!0),e.axes.forEach(function(b){b.crosshair&&
|
|
318
|
+
d.series[b.coll]===b&&b.drawCrosshair(null,d)})));else{if(d)d.onMouseOut();f&&f.forEach(function(b){b.setState()});if(c)c.onMouseOut();g&&g.hide(a);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());e.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=e.hoverPoints=e.hoverPoint=null}};a.prototype.runPointActions=function(b,d){var e=this.chart,c=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,f=c?c.shared:!1,g=d||e.hoverPoint,k=g&&g.series||e.hoverSeries;d=this.getHoverData(g,
|
|
319
|
+
k,e.series,(!b||"touchmove"!==b.type)&&(!!d||k&&k.directTouch&&this.isDirectTouch),f,b);g=d.hoverPoint;k=d.hoverSeries;var h=d.hoverPoints;d=k&&k.tooltipOptions.followPointer&&!k.tooltipOptions.split;f=f&&k&&!k.noSharedTooltip;if(g&&(g!==e.hoverPoint||c&&c.isHidden)){(e.hoverPoints||[]).forEach(function(b){-1===h.indexOf(b)&&b.setState()});if(e.hoverSeries!==k)k.onMouseOver();this.applyInactiveState(h);(h||[]).forEach(function(b){b.setState("hover")});e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut");
|
|
320
|
+
if(!g.series)return;e.hoverPoints=h;e.hoverPoint=g;g.firePointEvent("mouseOver");c&&c.refresh(f?h:g,b)}else d&&c&&!c.isHidden&&(g=c.getAnchor([{}],b),e.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&c.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=l(e.container.ownerDocument,"mousemove",function(b){var c=D[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));e.axes.forEach(function(c){var a=x((c.crosshair||{}).snap,
|
|
321
|
+
!0),d;a&&((d=e.hoverPoint)&&d.series[c.coll]===c||(d=p(h,function(b){return b.series[c.coll]===c})));d||!a?c.drawCrosshair(b,d):c.hideCrosshair()})};a.prototype.scaleGroups=function(b,a){var e=this.chart;e.series.forEach(function(c){var d=b||c.getPlotBox();c.xAxis&&c.xAxis.zoomEnabled&&c.group&&(c.group.attr(d),c.markerGroup&&(c.markerGroup.attr(d),c.markerGroup.clip(a?e.clipRect:null)),c.dataLabelsGroup&&c.dataLabelsGroup.attr(d))});e.clipRect.attr(a||e.clipBox)};a.prototype.setDOMEvents=function(){var b=
|
|
322
|
+
this,d=this.chart.container,e=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(l(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(l(d,"mouseleave",this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=l(e,"mouseup",this.onDocumentMouseUp.bind(this)));for(var c=this.chart.renderTo.parentElement;c&&
|
|
323
|
+
"BODY"!==c.tagName;)this.eventsToUnbind.push(l(c,"scroll",function(){delete b.chartPosition})),c=c.parentElement;v.hasTouch&&(this.eventsToUnbind.push(l(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(l(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=l(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var b=this.chart,d=v.charts[x(a.hoverChartIndex,
|
|
324
|
+
-1)];if(d&&d!==b)d.pointer.onContainerMouseLeave({relatedTarget:!0});d&&d.mouseIsDown||(a.hoverChartIndex=b.index)};a.prototype.touch=function(b,a){var e=this.chart,c;this.setHoverChartIndex();if(1===b.touches.length)if(b=this.normalize(b),(c=e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!e.openMenu){a&&this.runPointActions(b);if("touchmove"===b.type){a=this.pinchDown;var d=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-b.chartX,2)+Math.pow(a[0].chartY-b.chartY,2)):!1}x(d,
|
|
325
|
+
!0)&&this.pinch(b)}else a&&this.reset();else 2===b.touches.length&&this.pinch(b)};a.prototype.touchSelect=function(b){return!(!this.chart.options.chart.zoomBySingleTouch||!b.touches||1!==b.touches.length)};a.prototype.zoomOption=function(b){var a=this.chart,e=a.options.chart;a=a.inverted;var c=e.zoomType||"";/touch/.test(b.type)&&(c=x(e.pinchType,c));this.zoomX=b=/x/.test(c);this.zoomY=e=/y/.test(c);this.zoomHor=b&&!a||e&&a;this.zoomVert=e&&!a||b&&a;this.hasZoom=b||e};return a}();"";return a});I(a,
|
|
326
|
+
"Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,v,A){function r(){var b=[];b.item=function(b){return this[b]};g(k,function(a){b.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return b}function z(b,a,d,g){var f=D[v.hoverChartIndex||NaN];"touch"!==b.pointerType&&b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!f||(f=f.pointer,g(b),f[a]({type:d,target:b.currentTarget,preventDefault:l,touches:r()}))}var w=this&&this.__extends||function(){var b=function(a,
|
|
327
|
+
d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),D=a.charts,t=a.doc,l=a.noop,h=a.win,d=A.addEvent,b=A.css,g=A.objectEach,p=A.removeEvent,k={},J=!!h.PointerEvent;return function(g){function f(){return null!==g&&g.apply(this,arguments)||this}w(f,g);f.isRequired=
|
|
328
|
+
function(){return!(a.hasTouch||!h.PointerEvent&&!h.MSPointerEvent)};f.prototype.batchMSEvents=function(b){b(this.chart.container,J?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,J?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(t,J?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};f.prototype.destroy=function(){this.batchMSEvents(p);g.prototype.destroy.call(this)};f.prototype.init=function(a,d){g.prototype.init.call(this,a,d);this.hasZoom&&b(a.container,
|
|
329
|
+
{"-ms-touch-action":"none","touch-action":"none"})};f.prototype.onContainerPointerDown=function(b){z(b,"onContainerTouchStart","touchstart",function(b){k[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};f.prototype.onContainerPointerMove=function(b){z(b,"onContainerTouchMove","touchmove",function(b){k[b.pointerId]={pageX:b.pageX,pageY:b.pageY};k[b.pointerId].target||(k[b.pointerId].target=b.currentTarget)})};f.prototype.onDocumentPointerUp=function(b){z(b,"onDocumentTouchEnd",
|
|
330
|
+
"touchend",function(b){delete k[b.pointerId]})};f.prototype.setDOMEvents=function(){g.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(d)};return f}(v)});I(a,"Core/Legend/Legend.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=a.animObject,t=a.setAnimation,l=v.format;a=A.isFirefox;var h=A.marginNames;
|
|
331
|
+
A=A.win;var d=z.distribute,b=w.addEvent,g=w.createElement,p=w.css,k=w.defined,J=w.discardElement,G=w.find,f=w.fireEvent,B=w.isNumber,x=w.merge,u=w.pick,E=w.relativeLength,m=w.stableSort,q=w.syncTimeout;z=w.wrap;w=function(){function a(b,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=
|
|
332
|
+
this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=b;this.init(b,a)}a.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),b(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=b(this.chart,"render",function(){this.legend.proximatePositions();
|
|
333
|
+
this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(b){var a=u(b.padding,8);this.options=b;this.chart.styledMode||(this.itemStyle=b.itemStyle,this.itemHiddenStyle=x(this.itemStyle,b.itemHiddenStyle));this.itemMarginTop=b.itemMarginTop||0;this.itemMarginBottom=b.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=u(b.symbolWidth,16);this.pages=[];this.proximate="proximate"===b.layout&&!this.chart.inverted;this.baseline=void 0};
|
|
334
|
+
a.prototype.update=function(b,a){var c=this.chart;this.setOptions(x(!0,this.options,b));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;u(a,!0)&&c.redraw();f(this,"afterUpdate")};a.prototype.colorizeItem=function(b,a){b.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var c=this.options,e=b.legendItem,d=b.legendLine,g=b.legendSymbol,n=this.itemHiddenStyle.color;c=a?c.itemStyle.color:n;var k=a?b.color||n:n,h=b.options&&b.options.marker,m={fill:k};e&&
|
|
335
|
+
e.css({fill:c,color:c});d&&d.attr({stroke:k});g&&(h&&g.isMarker&&(m=b.pointAttribs(),a||(m.stroke=m.fill=n)),g.attr(m))}f(this,"afterColorizeItem",{item:b,visible:a})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(b){var a=this,c=this.options,e=c.symbolPadding,d=!c.rtl,g=b._legendItemPos;c=g[0];g=g[1];var h=b.checkbox,m=b.legendGroup;m&&m.element&&(e={translateX:d?c:this.legendWidth-
|
|
336
|
+
c-2*e-4,translateY:g},d=function(){f(a,"afterPositionItem",{item:b})},k(m.translateY)?m.animate(e,void 0,d):(m.attr(e),d()));h&&(h.x=c,h.y=g)};a.prototype.destroyItem=function(b){var a=b.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){b[a]&&(b[a]=b[a].destroy())});a&&J(b.checkbox)};a.prototype.destroy=function(){function b(b){this[b]&&(this[b]=this[b].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(b,a)});"clipRect up down pager nav box title group".split(" ").forEach(b,
|
|
337
|
+
this);this.display=null};a.prototype.positionCheckboxes=function(){var b=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,e=this.titleHeight;if(b){var d=b.translateY;this.allItems.forEach(function(c){var f=c.checkbox;if(f){var g=d+e+f.y+(this.scrollOffset||0)+3;p(f,{left:b.translateX+c.checkboxOffset+f.x-20+"px",top:g+"px",display:this.proximate||g>d-6&&g<d+a-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var b=this.options,a=this.padding,e=b.title,d=0;e.text&&(this.title||
|
|
338
|
+
(this.title=this.chart.renderer.label(e.text,a-3,a-4,null,null,null,b.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+"px"}),b=this.title.getBBox(),d=b.height,this.offsetWidth=b.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d};a.prototype.setText=function(b){var a=this.options;b.legendItem.attr({text:a.labelFormat?l(a.labelFormat,b,this.chart):a.labelFormatter.call(b)})};
|
|
339
|
+
a.prototype.renderItem=function(b){var a=this.chart,c=a.renderer,e=this.options,d=this.symbolWidth,f=e.symbolPadding||0,g=this.itemStyle,k=this.itemHiddenStyle,h="horizontal"===e.layout?u(e.itemDistance,20):0,m=!e.rtl,q=!b.series,p=!q&&b.series.drawLegendSymbol?b.series:b,l=p.options,B=this.createCheckboxForItem&&l&&l.showCheckbox,r=e.useHTML,t=b.options.className,E=b.legendItem;l=d+f+h+(B?20:0);E||(b.legendGroup=c.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+b.colorIndex+
|
|
340
|
+
(t?" "+t:"")+(q?" highcharts-series-"+b.index:"")).attr({zIndex:1}).add(this.scrollGroup),b.legendItem=E=c.text("",m?d+f:-f,this.baseline||0,r),a.styledMode||E.css(x(b.visible?g:k)),E.attr({align:m?"left":"right",zIndex:2}).add(b.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(a.styledMode?12:g.fontSize,E),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,E.attr("y",this.baseline),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,e.squareSymbol&&(this.symbolWidth=u(e.symbolWidth,
|
|
341
|
+
Math.max(this.symbolHeight,16)),l=this.symbolWidth+f+h+(B?20:0),m&&E.attr("x",this.symbolWidth+f))),p.drawLegendSymbol(this,b),this.setItemEvents&&this.setItemEvents(b,E,r));B&&!b.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(b);this.colorizeItem(b,b.visible);!a.styledMode&&g.width||E.css({width:(e.itemWidth||this.widthOption||a.spacingBox.width)-l+"px"});this.setText(b);a=E.getBBox();b.itemWidth=b.checkboxOffset=e.itemWidth||b.legendItemWidth||a.width+l;this.maxItemWidth=Math.max(this.maxItemWidth,
|
|
342
|
+
b.itemWidth);this.totalItemWidth+=b.itemWidth;this.itemHeight=b.itemHeight=Math.round(b.legendItemHeight||a.height||this.symbolHeight)};a.prototype.layoutItem=function(b){var a=this.options,c=this.padding,e="horizontal"===a.layout,d=b.itemHeight,f=this.itemMarginBottom,g=this.itemMarginTop,k=e?u(a.itemDistance,20):0,h=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:b.itemWidth;e&&this.itemX-c+a>h&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+
|
|
343
|
+
f),this.lastLineHeight=0);this.lastItemY=g+this.itemY+f;this.lastLineHeight=Math.max(d,this.lastLineHeight);b._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=a:(this.itemY+=g+d+f,this.lastLineHeight=d);this.offsetWidth=this.widthOption||Math.max((e?this.itemX-c-(b.checkbox?0:k):a)+c,this.offsetWidth)};a.prototype.getAllItems=function(){var b=[];this.chart.series.forEach(function(a){var c=a&&a.options;a&&u(c.showInLegend,k(c.linkedTo)?!1:void 0,!0)&&(b=b.concat(a.legendItems||("point"===c.legendType?
|
|
344
|
+
a.data:a)))});f(this,"afterGetAllItems",{allItems:b});return b};a.prototype.getAlignment=function(){var b=this.options;return this.proximate?b.align.charAt(0)+"tv":b.floating?"":b.align.charAt(0)+b.verticalAlign.charAt(0)+b.layout.charAt(0)};a.prototype.adjustMargins=function(b,a){var c=this.chart,e=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,g){f.test(d)&&!k(b[g])&&(c[h[g]]=Math.max(c[h[g]],c.legend[(g+1)%2?"legendHeight":
|
|
345
|
+
"legendWidth"]+[1,-1,-1,1][g]*e[g%2?"x":"y"]+u(e.margin,12)+a[g]+(c.titleOffset[g]||0)))})};a.prototype.proximatePositions=function(){var b=this.chart,a=[],e="left"===this.options.align;this.allItems.forEach(function(c){var d;var f=e;if(c.yAxis){c.xAxis.options.reversed&&(f=!f);c.points&&(d=G(f?c.points:c.points.slice(0).reverse(),function(b){return B(b.plotY)}));f=this.itemMarginTop+c.legendItem.getBBox().height+this.itemMarginBottom;var g=c.yAxis.top-b.plotTop;c.visible?(d=d?d.plotY:c.yAxis.height,
|
|
346
|
+
d+=g-.3*f):d=g+c.yAxis.height;a.push({target:d,size:f,item:c})}},this);d(a,b.plotHeight).forEach(function(a){a.item._legendItemPos&&(a.item._legendItemPos[1]=b.plotTop-b.spacing[0]+a.pos)})};a.prototype.render=function(){var b=this.chart,a=b.renderer,e=this.options,d=this.padding,g=this.getAllItems(),k=this.group,h=this.box;this.itemX=d;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=E(e.width,b.spacingBox.width-d);var q=b.spacingBox.width-2*d-e.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,
|
|
347
|
+
2))&&(q/=2);this.maxLegendWidth=this.widthOption||q;k||(this.group=k=a.g("legend").addClass(e.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(k),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();m(g,function(b,a){return(b.options&&b.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});e.reversed&&g.reverse();this.allItems=g;this.display=q=!!g.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;g.forEach(this.renderItem,
|
|
348
|
+
this);g.forEach(this.layoutItem,this);g=(this.widthOption||this.offsetWidth)+d;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=d;h||(this.box=h=a.rect().addClass("highcharts-legend-box").attr({r:e.borderRadius}).add(k),h.isNew=!0);b.styledMode||h.attr({stroke:e.borderColor,"stroke-width":e.borderWidth||0,fill:e.backgroundColor||"none"}).shadow(e.shadow);0<g&&0<p&&(h[h.isNew?"attr":"animate"](h.crisp.call({},{x:0,y:0,width:g,height:p},h.strokeWidth())),h.isNew=
|
|
349
|
+
!1);h[q?"show":"hide"]();b.styledMode&&"none"===k.getStyle("display")&&(g=p=0);this.legendWidth=g;this.legendHeight=p;q&&this.align();this.proximate||this.positionItems();f(this,"afterRender")};a.prototype.align=function(b){void 0===b&&(b=this.chart.spacingBox);var a=this.chart,c=this.options,e=b.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?e+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(e-=a.titleOffset[2]);e!==b.y&&(b=x(b,{y:e}));this.group.align(x(c,
|
|
350
|
+
{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":c.verticalAlign}),!0,b)};a.prototype.handleOverflow=function(b){var a=this,c=this.chart,e=c.renderer,d=this.options,f=d.y,g="top"===d.verticalAlign,k=this.padding,h=d.maxHeight,m=d.navigation,q=u(m.animation,!0),p=m.arrowSize||12,l=this.pages,B=this.allItems,x=function(b){"number"===typeof b?P.attr({height:b}):P&&(a.clipRect=P.destroy(),a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=b?"rect("+
|
|
351
|
+
k+"px,9999px,"+(k+b)+"px,0)":"auto")},r=function(b){a[b]=e.circle(0,0,1.3*p).translate(p/2,p/2).add(E);c.styledMode||a[b].attr("fill","rgba(0,0,0,0.0001)");return a[b]},t,K;f=c.spacingBox.height+(g?-f:f)-k;var E=this.nav,P=this.clipRect;"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(f/=2);h&&(f=Math.min(f,h));l.length=0;b&&0<f&&b>f&&!1!==m.enabled?(this.clipHeight=t=Math.max(f-20-this.titleHeight-k,0),this.currentPage=u(this.currentPage,1),this.fullHeight=b,B.forEach(function(b,
|
|
352
|
+
a){var c=b._legendItemPos[1],e=Math.round(b.legendItem.getBBox().height),d=l.length;if(!d||c-l[d-1]>t&&(K||c)!==l[d-1])l.push(K||c),d++;b.pageIx=d-1;K&&(B[a-1].pageIx=d-1);a===B.length-1&&c+e-l[d-1]>t&&c!==K&&(l.push(c),b.pageIx=d);c!==K&&(K=c)}),P||(P=a.clipRect=e.clipRect(0,k,9999,0),a.contentGroup.clip(P)),x(t),E||(this.nav=E=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,p,p).add(E),r("upTracker").on("click",function(){a.scroll(-1,q)}),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation"),
|
|
353
|
+
c.styledMode||this.pager.css(m.style),this.pager.add(E),this.down=e.symbol("triangle-down",0,0,p,p).add(E),r("downTracker").on("click",function(){a.scroll(1,q)})),a.scroll(0),b=f):E&&(x(),this.nav=E.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};a.prototype.scroll=function(b,a){var c=this,e=this.chart,d=this.pages,g=d.length,k=this.clipHeight,h=this.options.navigation,n=this.pager,m=this.padding,p=this.currentPage+b;p>g&&(p=g);0<p&&("undefined"!==typeof a&&t(a,e),this.nav.attr({translateX:m,
|
|
354
|
+
translateY:k+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(b){b.attr({"class":1===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:p+"/"+g}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+this.pager.getBBox().width,"class":p===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:1===p?h.inactiveColor:h.activeColor}),this.upTracker.css({cursor:1===
|
|
355
|
+
p?"default":"pointer"}),this.down.attr({fill:p===g?h.inactiveColor:h.activeColor}),this.downTracker.css({cursor:p===g?"default":"pointer"})),this.scrollOffset=-d[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),b=r(u(a,e.renderer.globalAnimation,!0)),q(function(){f(c,"afterScroll",{currentPage:p})},b.duration))};a.prototype.setItemEvents=function(b,a,e){var c=this,d=c.chart.renderer.boxWrapper,g=b instanceof y,k="highcharts-legend-"+
|
|
356
|
+
(g?"point":"series")+"-active",h=c.chart.styledMode,n=function(a){c.allItems.forEach(function(c){b!==c&&[c].concat(c.linkedSeries||[]).forEach(function(b){b.setState(a,!g)})})};(e?[a,b.legendSymbol]:[b.legendGroup]).forEach(function(e){if(e)e.on("mouseover",function(){b.visible&&n("inactive");b.setState("hover");b.visible&&d.addClass(k);h||a.css(c.options.itemHoverStyle)}).on("mouseout",function(){c.chart.styledMode||a.css(x(b.visible?c.itemStyle:c.itemHiddenStyle));n("");d.removeClass(k);b.setState()}).on("click",
|
|
357
|
+
function(a){var c=function(){b.setVisible&&b.setVisible();n(b.visible?"inactive":"")};d.removeClass(k);a={browserEvent:a};b.firePointEvent?b.firePointEvent("legendItemClick",a,c):f(b,"legendItemClick",a,c)})})};a.prototype.createCheckboxForItem=function(a){a.checkbox=g("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);b(a.checkbox,"click",function(b){f(a.series||a,"checkboxClick",{checked:b.target.checked,
|
|
358
|
+
item:a},function(){a.select()})})};return a}();(/Trident\/7\.0/.test(A.navigator&&A.navigator.userAgent)||a)&&z(w.prototype,"positionItem",function(b,a){var c=this,e=function(){a._legendItemPos&&b.call(c,a)};e();c.bubbleLegend||setTimeout(e)});"";return w});I(a,"Core/Series/SeriesRegistry.js",[a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=v.defaultOptions,w=y.error,D=y.extendClass,t=y.merge,l;(function(h){function d(b,a){var d=
|
|
359
|
+
r.plotOptions||{},g=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=A);a.prototype.type=b;g&&(d[b]=g);h.seriesTypes[b]=a}h.seriesTypes=a.seriesTypes;h.getSeries=function(b,a){void 0===a&&(a={});var d=b.options.chart;d=a.type||d.type||d.defaultSeriesType||"";var g=h.seriesTypes[d];h||w(17,!0,b,{missingModuleFor:d});d=new g;"function"===typeof d.init&&d.init(b,a);return d};h.registerSeriesType=d;h.seriesType=function(b,a,p,k,l){var g=r.plotOptions||{};a=a||"";g[b]=t(g[a],p);d(b,D(h.seriesTypes[a]||
|
|
360
|
+
function(){},k));h.seriesTypes[b].prototype.type=b;l&&(h.seriesTypes[b].prototype.pointClass=D(A,l));return h.seriesTypes[b]}})(l||(l={}));return l});I(a,"Core/Chart/Chart.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/FormatUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend/Legend.js"],a["Core/MSPointer.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Pointer.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Series/SeriesRegistry.js"],
|
|
361
|
+
a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Time.js"],a["Core/Utilities.js"],a["Core/Renderer/HTML/AST.js"]],function(a,v,A,y,z,w,D,t,l,h,d,b,g,p,k,J){var r=a.animate,f=a.animObject,B=a.setAnimation,x=A.numberFormat,u=y.registerEventOptions,E=z.charts,m=z.doc,q=z.marginNames,e=z.svg,c=z.win,n=t.defaultOptions,C=t.defaultTime,H=b.seriesTypes,L=k.addEvent,F=k.attr,W=k.cleanRecursively,S=k.createElement,R=k.css,T=k.defined,ba=k.discardElement,N=k.erase,M=k.error,I=k.extend,ia=k.find,O=k.fireEvent,
|
|
362
|
+
Z=k.getStyle,K=k.isArray,U=k.isNumber,P=k.isObject,X=k.isString,V=k.merge,Y=k.objectEach,Q=k.pick,da=k.pInt,ea=k.relativeLength,ja=k.removeEvent,ca=k.splat,fa=k.syncTimeout,ka=k.uniqueKey;a=function(){function b(b,a,c){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=
|
|
363
|
+
this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b,a,c)}b.chart=function(a,c,e){return new b(a,c,e)};b.prototype.getArgs=function(b,a,c){X(b)||b.nodeName?(this.renderTo=b,this.init(a,c)):this.init(b,a)};b.prototype.init=function(b,a){var c=b.plotOptions||{};O(this,"init",{args:arguments},function(){var e=
|
|
364
|
+
V(n,b),d=e.chart;Y(e.plotOptions,function(b,a){P(b)&&(b.tooltip=c[a]&&V(c[a].tooltip)||void 0)});e.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;this.userOptions=b;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=a;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=b.time&&Object.keys(b.time).length?new p(b.time):z.time;this.numberFormatter=d.numberFormatter||x;this.styledMode=d.styledMode;this.hasCartesianSeries=
|
|
365
|
+
d.showAxes;this.index=E.length;E.push(this);z.chartCount++;u(this,d);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;O(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(b){var a=this.options.chart;a=b.type||a.type||a.defaultSeriesType;var c=H[a];c||M(17,!0,this,{missingModuleFor:a});a=new c;"function"===typeof a.init&&a.init(this,b);return a};b.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(b){b.points||b.data||
|
|
366
|
+
!b.enabledDataSorting||b.setData(b.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(b,a){return b.linkedSeries.length||a.linkedSeries.length?a.linkedSeries.length-b.linkedSeries.length:0})};b.prototype.orderSeries=function(b){var a=this.series;b=b||0;for(var c=a.length;b<c;++b)a[b]&&(a[b].index=b,a[b].name=a[b].getName())};b.prototype.isInsidePlot=function(b,a,c){void 0===c&&(c={});var e=this.inverted,d=this.plotBox,f=this.plotLeft,g=this.plotTop,
|
|
367
|
+
k=this.scrollablePlotBox,h=0;var n=0;c.visiblePlotOnly&&this.scrollingContainer&&(n=this.scrollingContainer,h=n.scrollLeft,n=n.scrollTop);var m=c.series;d=c.visiblePlotOnly&&k||d;k=c.inverted?a:b;a=c.inverted?b:a;b={x:k,y:a,isInsidePlot:!0};if(!c.ignoreX){var q=m&&(e?m.yAxis:m.xAxis)||{pos:f,len:Infinity};k=c.paneCoordinates?q.pos+k:f+k;k>=Math.max(h+f,q.pos)&&k<=Math.min(h+f+d.width,q.pos+q.len)||(b.isInsidePlot=!1)}!c.ignoreY&&b.isInsidePlot&&(e=m&&(e?m.xAxis:m.yAxis)||{pos:g,len:Infinity},c=c.paneCoordinates?
|
|
368
|
+
e.pos+a:g+a,c>=Math.max(n+g,e.pos)&&c<=Math.min(n+g+d.height,e.pos+e.len)||(b.isInsidePlot=!1));O(this,"afterIsInsidePlot",b);return b.isInsidePlot};b.prototype.redraw=function(b){O(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],c=this.series,e=this.pointer,d=this.legend,f=this.userOptions.legend,g=this.renderer,k=g.isHidden(),h=[],n=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);B(this.hasRendered?b:!1,this);k&&this.temporaryDisplay();
|
|
369
|
+
this.layOutTitles();for(b=c.length;b--;){var q=c[b];if(q.options.stacking||q.options.centerInCategory){var p=!0;if(q.isDirty){var u=!0;break}}}if(u)for(b=c.length;b--;)q=c[b],q.options.stacking&&(q.isDirty=!0);c.forEach(function(b){b.isDirty&&("point"===b.options.legendType?("function"===typeof b.updateTotals&&b.updateTotals(),m=!0):f&&(f.labelFormatter||f.labelFormat)&&(m=!0));b.isDirtyData&&O(b,"updatedData")});m&&d&&d.options.enabled&&(d.render(),this.isDirtyLegend=!1);p&&this.getStacks();a.forEach(function(b){b.updateNames();
|
|
370
|
+
b.setScale()});this.getMargins();a.forEach(function(b){b.isDirty&&(n=!0)});a.forEach(function(b){var a=b.min+","+b.max;b.extKey!==a&&(b.extKey=a,h.push(function(){O(b,"afterSetExtremes",I(b.eventArgs,b.getExtremes()));delete b.eventArgs}));(n||p)&&b.redraw()});n&&this.drawChartBox();O(this,"predraw");c.forEach(function(b){(n||b.isDirty)&&b.visible&&b.redraw();b.isDirtyData=!1});e&&e.reset(!0);g.draw();O(this,"redraw");O(this,"render");k&&this.temporaryDisplay(!0);h.forEach(function(b){b.call()})};
|
|
371
|
+
b.prototype.get=function(b){function a(a){return a.id===b||a.options&&a.options.id===b}for(var c=this.series,e=ia(this.axes,a)||ia(this.series,a),d=0;!e&&d<c.length;d++)e=ia(c[d].points||[],a);return e};b.prototype.getAxes=function(){var b=this,a=this.options,c=a.xAxis=ca(a.xAxis||{});a=a.yAxis=ca(a.yAxis||{});O(this,"getAxes");c.forEach(function(b,a){b.index=a;b.isX=!0});a.forEach(function(b,a){b.index=a});c.concat(a).forEach(function(a){new v(b,a)});O(this,"afterGetAxes")};b.prototype.getSelectedPoints=
|
|
372
|
+
function(){return this.series.reduce(function(b,a){a.getPointsCollection().forEach(function(a){Q(a.selectedStaging,a.selected)&&b.push(a)});return b},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(b){return b.selected})};b.prototype.setTitle=function(b,a,c){this.applyDescription("title",b);this.applyDescription("subtitle",a);this.applyDescription("caption",void 0);this.layOutTitles(c)};b.prototype.applyDescription=function(b,a){var c=this,e="title"===b?{color:l.neutralColor80,
|
|
373
|
+
fontSize:this.options.isStock?"16px":"18px"}:{color:l.neutralColor60};e=this.options[b]=V(!this.styledMode&&{style:e},this.options[b],a);var d=this[b];d&&a&&(this[b]=d=d.destroy());e&&!d&&(d=this.renderer.text(e.text,0,0,e.useHTML).attr({align:e.align,"class":"highcharts-"+b,zIndex:e.zIndex||4}).add(),d.update=function(a){c[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b]](a)},this.styledMode||d.css(e.style),this[b]=d)};b.prototype.layOutTitles=function(b){var a=[0,0,0],c=this.renderer,
|
|
374
|
+
e=this.spacingBox;["title","subtitle","caption"].forEach(function(b){var d=this[b],f=this.options[b],g=f.verticalAlign||"top";b="title"===b?"top"===g?-3:0:"top"===g?a[0]+2:0;var k;if(d){this.styledMode||(k=f.style&&f.style.fontSize);k=c.fontMetrics(k,d).b;d.css({width:(f.width||e.width+(f.widthAdjust||0))+"px"});var h=Math.round(d.getBBox(f.useHTML).height);d.align(I({y:"bottom"===g?k:b+k,height:h},f),!1,"spacingBox");f.floating||("top"===g?a[0]=Math.ceil(a[0]+h):"bottom"===g&&(a[2]=Math.ceil(a[2]+
|
|
375
|
+
h)))}},this);a[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a[0]+=this.options.title.margin);a[2]&&"bottom"===this.options.caption.verticalAlign&&(a[2]+=this.options.caption.margin);var d=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a;O(this,"afterLayOutTitles");!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&Q(b,!0)&&this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var b=this.options.chart,a=b.width;b=b.height;
|
|
376
|
+
var c=this.renderTo;T(a)||(this.containerWidth=Z(c,"width"));T(b)||(this.containerHeight=Z(c,"height"));this.chartWidth=Math.max(0,a||this.containerWidth||600);this.chartHeight=Math.max(0,ea(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(b){var a=this.renderTo;if(b)for(;a&&a.style;)a.hcOrigStyle&&(R(a,a.hcOrigStyle),delete a.hcOrigStyle),a.hcOrigDetached&&(m.body.removeChild(a),a.hcOrigDetached=!1),a=a.parentNode;else for(;a&&a.style;){m.body.contains(a)||
|
|
377
|
+
a.parentNode||(a.hcOrigDetached=!0,m.body.appendChild(a));if("none"===Z(a,"display",!1)||a.hcOricDetached)a.hcOrigStyle={display:a.style.display,height:a.style.height,overflow:a.style.overflow},b={display:"block",overflow:"hidden"},a!==this.renderTo&&(b.height=0),R(a,b),a.offsetWidth||a.style.setProperty("display","block","important");a=a.parentNode;if(a===m.body)break}};b.prototype.setClassName=function(b){this.container.className="highcharts-container "+(b||"")};b.prototype.getContainer=function(){var b=
|
|
378
|
+
this.options,a=b.chart,c=ka(),f,k=this.renderTo;k||(this.renderTo=k=a.renderTo);X(k)&&(this.renderTo=k=m.getElementById(k));k||M(13,!0,this);var h=da(F(k,"data-highcharts-chart"));U(h)&&E[h]&&E[h].hasRendered&&E[h].destroy();F(k,"data-highcharts-chart",this.index);k.innerHTML="";a.skipClone||k.offsetWidth||this.temporaryDisplay();this.getChartSize();h=this.chartWidth;var n=this.chartHeight;R(k,{overflow:"hidden"});this.styledMode||(f=I({position:"relative",overflow:"hidden",width:h+"px",height:n+
|
|
379
|
+
"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},a.style||{}));this.container=c=S("div",{id:c},f,k);this._cursor=c.style.cursor;this.renderer=new (a.renderer||!e?d.getRendererType(a.renderer):g)(c,h,n,void 0,a.forExport,b.exporting&&b.exporting.allowHTML,this.styledMode);B(void 0,this);this.setClassName(a.className);if(this.styledMode)for(var q in b.defs)this.renderer.definition(b.defs[q]);
|
|
380
|
+
else this.renderer.setStyle(a.style);this.renderer.chartIndex=this.index;O(this,"afterGetContainer")};b.prototype.getMargins=function(b){var a=this.spacing,c=this.margin,e=this.titleOffset;this.resetMargins();e[0]&&!T(c[0])&&(this.plotTop=Math.max(this.plotTop,e[0]+a[0]));e[2]&&!T(c[2])&&(this.marginBottom=Math.max(this.marginBottom,e[2]+a[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,a);O(this,"getMargins");b||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var b=
|
|
381
|
+
this,a=b.axisOffset=[0,0,0,0],c=b.colorAxis,e=b.margin,d=function(b){b.forEach(function(b){b.visible&&b.getOffset()})};b.hasCartesianSeries?d(b.axes):c&&c.length&&d(c);q.forEach(function(c,d){T(e[d])||(b[c]+=a[d])});b.setChartSize()};b.prototype.reflow=function(b){var a=this,e=a.options.chart,d=a.renderTo,f=T(e.width)&&T(e.height),g=e.width||Z(d,"width");e=e.height||Z(d,"height");d=b?b.target:c;delete a.pointer.chartPosition;if(!f&&!a.isPrinting&&g&&e&&(d===c||d===m)){if(g!==a.containerWidth||e!==
|
|
382
|
+
a.containerHeight)k.clearTimeout(a.reflowTimeout),a.reflowTimeout=fa(function(){a.container&&a.setSize(void 0,void 0,!1)},b?100:0);a.containerWidth=g;a.containerHeight=e}};b.prototype.setReflow=function(b){var a=this;!1===b||this.unbindReflow?!1===b&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=L(c,"resize",function(b){a.options&&a.reflow(b)}),L(this,"destroy",this.unbindReflow))};b.prototype.setSize=function(b,a,c){var e=this,d=e.renderer;e.isResizing+=1;B(c,e);c=
|
|
383
|
+
d.globalAnimation;e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;"undefined"!==typeof b&&(e.options.chart.width=b);"undefined"!==typeof a&&(e.options.chart.height=a);e.getChartSize();e.styledMode||(c?r:R)(e.container,{width:e.chartWidth+"px",height:e.chartHeight+"px"},c);e.setChartSize(!0);d.setSize(e.chartWidth,e.chartHeight,c);e.axes.forEach(function(b){b.isDirty=!0;b.setScale()});e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();e.getMargins();e.redraw(c);e.oldChartHeight=null;O(e,
|
|
384
|
+
"resize");fa(function(){e&&O(e,"endResize",null,function(){--e.isResizing})},f(c).duration)};b.prototype.setChartSize=function(b){var a=this.inverted,c=this.renderer,e=this.chartWidth,d=this.chartHeight,f=this.options.chart,g=this.spacing,k=this.clipOffset,h,n,m,q;this.plotLeft=h=Math.round(this.plotLeft);this.plotTop=n=Math.round(this.plotTop);this.plotWidth=m=Math.max(0,Math.round(e-h-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(d-n-this.marginBottom));this.plotSizeX=a?q:m;this.plotSizeY=
|
|
385
|
+
a?m:q;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:e-g[3]-g[1],height:d-g[0]-g[2]};this.plotBox=c.plotBox={x:h,y:n,width:m,height:q};a=2*Math.floor(this.plotBorderWidth/2);e=Math.ceil(Math.max(a,k[3])/2);d=Math.ceil(Math.max(a,k[0])/2);this.clipBox={x:e,y:d,width:Math.floor(this.plotSizeX-Math.max(a,k[1])/2-e),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,k[2])/2-d))};b||(this.axes.forEach(function(b){b.setAxisSize();b.setAxisTranslation()}),
|
|
386
|
+
c.alignElements());O(this,"afterSetChartSize",{skipAxes:b})};b.prototype.resetMargins=function(){O(this,"resetMargins");var b=this,a=b.options.chart;["margin","spacing"].forEach(function(c){var e=a[c],d=P(e)?e:[e,e,e,e];["Top","Right","Bottom","Left"].forEach(function(e,f){b[c][f]=Q(a[c+e],d[f])})});q.forEach(function(a,c){b[a]=Q(b.margin[c],b.spacing[c])});b.axisOffset=[0,0,0,0];b.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var b=this.options.chart,a=this.renderer,c=this.chartWidth,
|
|
387
|
+
e=this.chartHeight,d=this.styledMode,f=this.plotBGImage,g=b.backgroundColor,k=b.plotBackgroundColor,h=b.plotBackgroundImage,n=this.plotLeft,m=this.plotTop,q=this.plotWidth,p=this.plotHeight,u=this.plotBox,l=this.clipRect,B=this.clipBox,x=this.chartBackground,K=this.plotBackground,r=this.plotBorder,t,E="animate";x||(this.chartBackground=x=a.rect().addClass("highcharts-background").add(),E="attr");if(d)var C=t=x.strokeWidth();else{C=b.borderWidth||0;t=C+(b.shadow?8:0);g={fill:g||"none"};if(C||x["stroke-width"])g.stroke=
|
|
388
|
+
b.borderColor,g["stroke-width"]=C;x.attr(g).shadow(b.shadow)}x[E]({x:t/2,y:t/2,width:c-t-C%2,height:e-t-C%2,r:b.borderRadius});E="animate";K||(E="attr",this.plotBackground=K=a.rect().addClass("highcharts-plot-background").add());K[E](u);d||(K.attr({fill:k||"none"}).shadow(b.plotShadow),h&&(f?(h!==f.attr("href")&&f.attr("href",h),f.animate(u)):this.plotBGImage=a.image(h,n,m,q,p).add()));l?l.animate({width:B.width,height:B.height}):this.clipRect=a.clipRect(B);E="animate";r||(E="attr",this.plotBorder=
|
|
389
|
+
r=a.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());d||r.attr({stroke:b.plotBorderColor,"stroke-width":b.plotBorderWidth||0,fill:"none"});r[E](r.crisp({x:n,y:m,width:q,height:p},-r.strokeWidth()));this.isDirtyBox=!1;O(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var b=this,a=b.options.chart,c=b.options.series,e,d,f;["inverted","angular","polar"].forEach(function(g){d=H[a.type||a.defaultSeriesType];f=a[g]||d&&d.prototype[g];for(e=c&&c.length;!f&&e--;)(d=H[c[e].type])&&
|
|
390
|
+
d.prototype[g]&&(f=!0);b[g]=f})};b.prototype.linkSeries=function(){var b=this,a=b.series;a.forEach(function(b){b.linkedSeries.length=0});a.forEach(function(a){var c=a.options.linkedTo;X(c)&&(c=":previous"===c?b.series[a.index-1]:b.get(c))&&c.linkedParent!==a&&(c.linkedSeries.push(a),a.linkedParent=c,c.enabledDataSorting&&a.setDataSortingOptions(),a.visible=Q(a.options.visible,c.options.visible,a.visible))});O(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(b){b.translate();
|
|
391
|
+
b.render()})};b.prototype.renderLabels=function(){var b=this,a=b.options.labels;a.items&&a.items.forEach(function(c){var e=I(a.style,c.style),d=da(e.left)+b.plotLeft,f=da(e.top)+b.plotTop+12;delete e.left;delete e.top;b.renderer.text(c.html,d,f).attr({zIndex:2}).css(e).add()})};b.prototype.render=function(){var b=this.axes,a=this.colorAxis,c=this.renderer,e=this.options,d=function(b){b.forEach(function(b){b.visible&&b.render()})},f=0;this.setTitle();this.legend=new w(this,e.legend);this.getStacks&&
|
|
392
|
+
this.getStacks();this.getMargins(!0);this.setChartSize();e=this.plotWidth;b.some(function(b){if(b.horiz&&b.visible&&b.options.labels.enabled&&b.series.length)return f=21,!0});var g=this.plotHeight=Math.max(this.plotHeight-f,0);b.forEach(function(b){b.setScale()});this.getAxisMargins();var k=1.1<e/this.plotWidth,h=1.05<g/this.plotHeight;if(k||h)b.forEach(function(b){(b.horiz&&k||!b.horiz&&h)&&b.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?d(b):a&&a.length&&d(a);
|
|
393
|
+
this.seriesGroup||(this.seriesGroup=c.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(b){var a=this,e=V(!0,this.options.credits,b);e.enabled&&!this.credits&&(this.credits=this.renderer.text(e.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){e.href&&(c.location.href=e.href)}).attr({align:e.position.align,zIndex:8}),a.styledMode||
|
|
394
|
+
this.credits.css(e.style),this.credits.add().align(e.position),this.credits.update=function(b){a.credits=a.credits.destroy();a.addCredits(b)})};b.prototype.destroy=function(){var b=this,a=b.axes,c=b.series,e=b.container,d=e&&e.parentNode,f;O(b,"destroy");b.renderer.forExport?N(E,b):E[b.index]=void 0;z.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");ja(b);for(f=a.length;f--;)a[f]=a[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=c.length;f--;)c[f]=
|
|
395
|
+
c[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())});e&&(e.innerHTML="",ja(e),d&&ba(e));Y(b,function(a,c){delete b[c]})};b.prototype.firstRender=function(){var b=this,a=b.options;if(!b.isReadyToRender||b.isReadyToRender()){b.getContainer();b.resetMargins();b.setChartSize();b.propFromSeries();b.getAxes();
|
|
396
|
+
(K(a.series)?a.series:[]).forEach(function(a){b.initSeries(a)});b.linkSeries();b.setSeriesData();O(b,"beforeRender");h&&(D.isRequired()?b.pointer=new D(b,a):b.pointer=new h(b,a));b.render();b.pointer.getChartPosition();if(!b.renderer.imgCount&&!b.hasLoaded)b.onload();b.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(b){b&&"undefined"!==typeof this.index&&b.apply(this,[this])},this);O(this,"load");O(this,"render");T(this.index)&&this.setReflow(this.options.chart.reflow);
|
|
397
|
+
this.hasLoaded=!0};b.prototype.addSeries=function(b,a,c){var e=this,d;b&&(a=Q(a,!0),O(e,"addSeries",{options:b},function(){d=e.initSeries(b);e.isDirtyLegend=!0;e.linkSeries();d.enabledDataSorting&&d.setData(b.data,!1);O(e,"afterAddSeries",{series:d});a&&e.redraw(c)}));return d};b.prototype.addAxis=function(b,a,c,e){return this.createAxis(a?"xAxis":"yAxis",{axis:b,redraw:c,animation:e})};b.prototype.addColorAxis=function(b,a,c){return this.createAxis("colorAxis",{axis:b,redraw:a,animation:c})};b.prototype.createAxis=
|
|
398
|
+
function(b,a){b=new v(this,V(a.axis,{index:this[b].length,isX:"xAxis"===b}));Q(a.redraw,!0)&&this.redraw(a.animation);return b};b.prototype.showLoading=function(b){var a=this,c=a.options,e=c.loading,d=function(){f&&R(f,{left:a.plotLeft+"px",top:a.plotTop+"px",width:a.plotWidth+"px",height:a.plotHeight+"px"})},f=a.loadingDiv,g=a.loadingSpan;f||(a.loadingDiv=f=S("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a.container));g||(a.loadingSpan=g=S("span",{className:"highcharts-loading-inner"},
|
|
399
|
+
null,f),L(a,"redraw",d));f.className="highcharts-loading";J.setElementHTML(g,Q(b,c.lang.loading,""));a.styledMode||(R(f,I(e.style,{zIndex:10})),R(g,e.labelStyle),a.loadingShown||(R(f,{opacity:0,display:""}),r(f,{opacity:e.style.opacity||.5},{duration:e.showDuration||0})));a.loadingShown=!0;d()};b.prototype.hideLoading=function(){var b=this.options,a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden",this.styledMode||r(a,{opacity:0},{duration:b.loading.hideDuration||100,
|
|
400
|
+
complete:function(){R(a,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(b,a,c,e){var d=this,f={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},g=b.isResponsiveOptions,k=[],h,n;O(d,"update",{options:b});g||d.setResponsive(!1,!0);b=W(b,d.options);d.userOptions=V(d.userOptions,b);var m=b.chart;if(m){V(!0,d.options.chart,m);"className"in m&&d.setClassName(m.className);"reflow"in m&&d.setReflow(m.reflow);if("inverted"in m||"polar"in m||"type"in
|
|
401
|
+
m){d.propFromSeries();var q=!0}"alignTicks"in m&&(q=!0);"events"in m&&u(this,m);Y(m,function(b,a){-1!==d.propsRequireUpdateSeries.indexOf("chart."+a)&&(h=!0);-1!==d.propsRequireDirtyBox.indexOf(a)&&(d.isDirtyBox=!0);-1!==d.propsRequireReflow.indexOf(a)&&(g?d.isDirtyBox=!0:n=!0)});!d.styledMode&&m.style&&d.renderer.setStyle(d.options.chart.style||{})}!d.styledMode&&b.colors&&(this.options.colors=b.colors);b.time&&(this.time===C&&(this.time=new p(b.time)),V(!0,d.options.time,b.time));Y(b,function(a,
|
|
402
|
+
c){if(d[c]&&"function"===typeof d[c].update)d[c].update(a,!1);else if("function"===typeof d[f[c]])d[f[c]](a);else"colors"!==c&&-1===d.collectionsWithUpdate.indexOf(c)&&V(!0,d.options[c],b[c]);"chart"!==c&&-1!==d.propsRequireUpdateSeries.indexOf(c)&&(h=!0)});this.collectionsWithUpdate.forEach(function(a){if(b[a]){var e=[];d[a].forEach(function(b,a){b.options.isInternal||e.push(Q(b.options.index,a))});ca(b[a]).forEach(function(b,f){var g=T(b.id),k;g&&(k=d.get(b.id));!k&&d[a]&&(k=d[a][e?e[f]:f])&&g&&
|
|
403
|
+
T(k.options.id)&&(k=void 0);k&&k.coll===a&&(k.update(b,!1),c&&(k.touched=!0));!k&&c&&d.collectionsWithInit[a]&&(d.collectionsWithInit[a][0].apply(d,[b].concat(d.collectionsWithInit[a][1]||[]).concat([!1])).touched=!0)});c&&d[a].forEach(function(b){b.touched||b.options.isInternal?delete b.touched:k.push(b)})}});k.forEach(function(b){b.chart&&b.remove&&b.remove(!1)});q&&d.axes.forEach(function(b){b.update({},!1)});h&&d.getSeriesOrderByLinks().forEach(function(b){b.chart&&b.update({},!1)},this);q=m&&
|
|
404
|
+
m.width;m=m&&(X(m.height)?ea(m.height,q||d.chartWidth):m.height);n||U(q)&&q!==d.chartWidth||U(m)&&m!==d.chartHeight?d.setSize(q,m,e):Q(a,!0)&&d.redraw(e);O(d,"afterUpdate",{options:b,redraw:a,animation:e})};b.prototype.setSubtitle=function(b,a){this.applyDescription("subtitle",b);this.layOutTitles(a)};b.prototype.setCaption=function(b,a){this.applyDescription("caption",b);this.layOutTitles(a)};b.prototype.showResetZoom=function(){function b(){a.zoomOut()}var a=this,c=n.lang,e=a.options.chart.resetZoomButton,
|
|
405
|
+
d=e.theme,f=d.states,g="chart"===e.relativeTo||"spacingBox"===e.relativeTo?null:"scrollablePlotBox";O(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(c.resetZoom,null,null,b,d,f&&f.hover).attr({align:e.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(e.position,!1,g)});O(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){O(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(b){var a=this,c=a.pointer,
|
|
406
|
+
e=a.inverted?c.mouseDownX:c.mouseDownY,d=!1,f;!b||b.resetSelection?(a.axes.forEach(function(b){f=b.zoom()}),c.initiated=!1):b.xAxis.concat(b.yAxis).forEach(function(b){var g=b.axis,k=a.inverted?g.left:g.top,h=a.inverted?k+g.width:k+g.height,n=g.isXAxis,m=!1;if(!n&&e>=k&&e<=h||n||!T(e))m=!0;c[n?"zoomX":"zoomY"]&&m&&(f=g.zoom(b.min,b.max),g.displayBtn&&(d=!0))});var g=a.resetZoomButton;d&&!g?a.showResetZoom():!d&&P(g)&&(a.resetZoomButton=g.destroy());f&&a.redraw(Q(a.options.chart.animation,b&&b.animation,
|
|
407
|
+
100>a.pointCount))};b.prototype.pan=function(b,a){var c=this,e=c.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var d=c.options.chart,f=c.options.mapNavigation&&c.options.mapNavigation.enabled;d&&d.panning&&(d.panning=a);var g=a.type,k;O(this,"pan",{originalEvent:b},function(){e&&e.forEach(function(b){b.setState()});var a=c.xAxis;"xy"===g?a=a.concat(c.yAxis):"y"===g&&(a=c.yAxis);var d={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var e=a.horiz,h=b[e?"chartX":
|
|
408
|
+
"chartY"];e=e?"mouseDownX":"mouseDownY";var n=c[e],m=a.minPointOffset||0,q=a.reversed&&!c.inverted||!a.reversed&&c.inverted?-1:1,p=a.getExtremes(),u=a.toValue(n-h,!0)+m*q,l=a.toValue(n+a.len-h,!0)-(m*q||a.isXAxis&&a.pointRangePadding||0),B=l<u;q=a.hasVerticalPanning();n=B?l:u;u=B?u:l;var x=a.panningState;!q||a.isXAxis||x&&!x.isDirty||a.series.forEach(function(b){var a=b.getProcessedData(!0);a=b.getExtremes(a.yData,!0);x||(x={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});U(a.dataMin)&&U(a.dataMax)&&
|
|
409
|
+
(x.startMin=Math.min(Q(b.options.threshold,Infinity),a.dataMin,x.startMin),x.startMax=Math.max(Q(b.options.threshold,-Infinity),a.dataMax,x.startMax))});q=Math.min(Q(x&&x.startMin,p.dataMin),m?p.min:a.toValue(a.toPixels(p.min)-a.minPixelPadding));l=Math.max(Q(x&&x.startMax,p.dataMax),m?p.max:a.toValue(a.toPixels(p.max)+a.minPixelPadding));a.panningState=x;a.isOrdinal||(m=q-n,0<m&&(u+=m,n=q),m=u-l,0<m&&(u=l,n-=m),a.series.length&&n!==p.min&&u!==p.max&&n>=q&&u<=l&&(a.setExtremes(n,u,!1,!1,{trigger:"pan"}),
|
|
410
|
+
c.resetZoomButton||f||n===q||u===l||!g.match("y")||(c.showResetZoom(),a.displayBtn=!1),k=!0),d[e]=h)}});Y(d,function(b,a){c[a]=b});k&&c.redraw(!1);R(c.container,{cursor:"move"})})};return b}();I(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
|
|
411
|
+
propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return a});I(a,"Core/Legend/LegendSymbol.js",[a["Core/Utilities.js"]],function(a){var r=a.merge,A=a.pick,y;(function(a){a.drawLineMarker=function(a){var w=this.options,t=a.symbolWidth,l=a.symbolHeight,h=l/2,d=this.chart.renderer,
|
|
412
|
+
b=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var g={},p=w.marker;this.chart.styledMode||(g={"stroke-width":w.lineWidth||0},w.dashStyle&&(g.dashstyle=w.dashStyle));this.legendLine=d.path([["M",0,a],["L",t,a]]).addClass("highcharts-graph").attr(g).add(b);p&&!1!==p.enabled&&t&&(w=Math.min(A(p.radius,h),h),0===this.symbol.indexOf("url")&&(p=r(p,{width:l,height:l}),w=0),this.legendSymbol=t=d.symbol(this.symbol,t/2-w,a-w,2*w,2*w,p).addClass("highcharts-point").add(b),t.isMarker=!0)};a.drawRectangle=
|
|
413
|
+
function(a,r){var t=a.symbolHeight,l=a.options.squareSymbol;r.legendSymbol=this.chart.renderer.rect(l?(a.symbolWidth-t)/2:0,a.baseline-t+1,l?t:a.symbolWidth,t,A(a.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(r.legendGroup)}})(y||(y={}));return y});I(a,"Core/Series/SeriesDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:a.backgroundColor,
|
|
414
|
+
lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:a.neutralColor20,lineColor:a.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},
|
|
415
|
+
cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});I(a,"Core/Series/Series.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],
|
|
416
|
+
a["Core/Series/Point.js"],a["Core/Series/SeriesDefaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l,h,d){var b=a.animObject,g=a.setAnimation,p=v.defaultOptions,k=A.registerEventOptions,r=y.hasTouch,G=y.svg,f=y.win,B=l.seriesTypes,x=d.addEvent,u=d.arrayMax,E=d.arrayMin,m=d.clamp,q=d.cleanRecursively,e=d.correctFloat,c=d.defined,n=d.erase,C=d.error,H=d.extend,L=d.find,F=d.fireEvent,W=d.getNestedProperty,S=d.isArray,
|
|
417
|
+
R=d.isNumber,T=d.isString,ba=d.merge,N=d.objectEach,M=d.pick,I=d.removeEvent,ia=d.splat,O=d.syncTimeout;a=function(){function a(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}a.prototype.init=function(b,a){F(this,"init",{options:a});var c=this,e=b.series;this.eventsToUnbind=[];c.chart=b;c.options=c.setOptions(a);
|
|
418
|
+
a=c.options;c.linkedSeries=[];c.bindAxes();H(c,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});k(this,a);var d=a.events;if(d&&d.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)b.runTrackerClick=!0;c.getColor();c.getSymbol();c.parallelArrays.forEach(function(b){c[b+"Data"]||(c[b+"Data"]=[])});c.isCartesian&&(b.hasCartesianSeries=!0);var f;e.length&&(f=e[e.length-1]);c._i=M(f&&f._i,-1)+1;c.opacity=c.options.opacity;b.orderSeries(this.insert(e));a.dataSorting&&
|
|
419
|
+
a.dataSorting.enabled?c.setDataSortingOptions():c.points||c.data||c.setData(a.data,!1);F(this,"afterInit")};a.prototype.is=function(b){return B[b]&&this instanceof B[b]};a.prototype.insert=function(b){var a=this.options.index,c;if(R(a)){for(c=b.length;c--;)if(a>=M(b[c].options.index,b[c]._i)){b.splice(c+1,0,this);break}-1===c&&b.unshift(this);c+=1}else b.push(this);return M(c,b.length-1)};a.prototype.bindAxes=function(){var b=this,a=b.options,c=b.chart,e;F(this,"bindAxes",null,function(){(b.axisTypes||
|
|
420
|
+
[]).forEach(function(d){var f=0;c[d].forEach(function(c){e=c.options;if(a[d]===f&&!e.isInternal||"undefined"!==typeof a[d]&&a[d]===e.id||"undefined"===typeof a[d]&&0===e.index)b.insert(c.series),b[d]=c,c.isDirty=!0;e.isInternal||f++});b[d]||b.optionalAxis===d||C(18,!0,c)})});F(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(b,a){var c=b.series,e=arguments,d=R(a)?function(e){var d="y"===e&&c.toYData?c.toYData(b):b[e];c[e+"Data"][a]=d}:function(b){Array.prototype[a].apply(c[b+"Data"],
|
|
421
|
+
Array.prototype.slice.call(e,2))};c.parallelArrays.forEach(d)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};a.prototype.autoIncrement=function(b){var a=this.options,c=a.pointIntervalUnit,e=a.relativeXValue,d=this.chart.time,f=this.xIncrement,g;f=M(f,a.pointStart,0);this.pointInterval=g=M(this.pointInterval,a.pointInterval,1);e&&R(b)&&(g*=b);c&&(a=new d.Date(f),"day"===c?d.set("Date",
|
|
422
|
+
a,d.get("Date",a)+g):"month"===c?d.set("Month",a,d.get("Month",a)+g):"year"===c&&d.set("FullYear",a,d.get("FullYear",a)+g),g=a.getTime()-f);if(e&&R(b))return f+g;this.xIncrement=f+g;return f};a.prototype.setDataSortingOptions=function(){var b=this.options;H(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});c(b.pointRange)||(b.pointRange=1)};a.prototype.setOptions=function(b){var a=this.chart,e=a.options,d=e.plotOptions,f=a.userOptions||{};b=ba(b);a=a.styledMode;var g={plotOptions:d,
|
|
423
|
+
userOptions:b};F(this,"setOptions",g);var k=g.plotOptions[this.type],h=f.plotOptions||{};this.userOptions=g.userOptions;f=ba(k,d.series,f.plotOptions&&f.plotOptions[this.type],b);this.tooltipOptions=ba(p.tooltip,p.plotOptions.series&&p.plotOptions.series.tooltip,p.plotOptions[this.type].tooltip,e.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,b.tooltip);this.stickyTracking=M(b.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,this.tooltipOptions.shared&&
|
|
424
|
+
!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;d=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||(e={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},a||(e.color=f.negativeColor,e.fillColor=f.negativeFillColor),d.push(e));d.length&&c(d[d.length-1].value)&&d.push(a?{}:{color:this.color,fillColor:this.fillColor});F(this,"afterSetOptions",{options:f});return f};a.prototype.getName=
|
|
425
|
+
function(){return M(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(b,a,e){var d=this.chart,f=this.userOptions,g=b+"Index",k=b+"Counter",h=e?e.length:M(d.options.chart[b+"Count"],d[b+"Count"]);if(!a){var n=M(f[g],f["_"+g]);c(n)||(d.series.length||(d[k]=0),f["_"+g]=n=d[k]%h,d[k]+=1);e&&(a=e[n])}"undefined"!==typeof n&&(this[g]=n);this[b]=a};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=w.neutralColor20:
|
|
426
|
+
this.getCyclic("color",this.options.color||p.plotOptions[this.type].color,this.chart.options.colors)};a.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};a.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};a.prototype.findPointIndex=function(b,a){var c=b.id,e=b.x,d=this.points,f=this.options.dataSorting,g,k;if(c)f=this.chart.get(c),f instanceof D&&(g=f);else if(this.linkedParent||this.enabledDataSorting||
|
|
427
|
+
this.options.relativeXValue)if(g=function(a){return!a.touched&&a.index===b.index},f&&f.matchByName?g=function(a){return!a.touched&&a.name===b.name}:this.options.relativeXValue&&(g=function(a){return!a.touched&&a.options.x===b.x}),g=L(d,g),!g)return;if(g){var h=g&&g.index;"undefined"!==typeof h&&(k=!0)}"undefined"===typeof h&&R(e)&&(h=this.xData.indexOf(e,a));-1!==h&&"undefined"!==typeof h&&this.cropped&&(h=h>=this.cropStart?h-this.cropStart:h);!k&&R(h)&&d[h]&&d[h].touched&&(h=void 0);return h};a.prototype.updateData=
|
|
428
|
+
function(b,a){var e=this.options,d=e.dataSorting,f=this.points,g=[],k=this.requireSorting,h=b.length===f.length,n,m,q,p=!0;this.xIncrement=null;b.forEach(function(b,a){var m=c(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{},p=m.x;if(m.id||R(p)){if(m=this.findPointIndex(m,q),-1===m||"undefined"===typeof m?g.push(b):f[m]&&b!==e.data[m]?(f[m].update(b,!1,null,!1),f[m].touched=!0,k&&(q=m+1)):f[m]&&(f[m].touched=!0),!h||a!==m||d&&d.enabled||this.hasDerivedData)n=!0}else g.push(b)},
|
|
429
|
+
this);if(n)for(b=f.length;b--;)(m=f[b])&&!m.touched&&m.remove&&m.remove(!1,a);else!h||d&&d.enabled?p=!1:(b.forEach(function(b,a){b!==f[a].y&&f[a].update&&f[a].update(b,!1,null,!1)}),g.length=0);f.forEach(function(b){b&&(b.touched=!1)});if(!p)return!1;g.forEach(function(b){this.addPoint(b,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=u(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(b,a,c,e){var d=this,f=d.points,g=f&&f.length||
|
|
430
|
+
0,k=d.options,h=d.chart,n=k.dataSorting,m=d.xAxis,q=k.turboThreshold,p=this.xData,u=this.yData,l=d.pointArrayMap;l=l&&l.length;var B=k.keys,x,t=0,E=1,r=null;b=b||[];var K=b.length;a=M(a,!0);n&&n.enabled&&(b=this.sortData(b));!1!==e&&K&&g&&!d.cropped&&!d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&(x=this.updateData(b,c));if(!x){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(b){d[b+"Data"].length=0});if(q&&K>q)if(r=d.getFirstValidPoint(b),R(r))for(c=0;c<K;c++)p[c]=this.autoIncrement(),
|
|
431
|
+
u[c]=b[c];else if(S(r))if(l)for(c=0;c<K;c++)e=b[c],p[c]=e[0],u[c]=e.slice(1,l+1);else for(B&&(t=B.indexOf("x"),E=B.indexOf("y"),t=0<=t?t:0,E=0<=E?E:1),c=0;c<K;c++)e=b[c],p[c]=e[t],u[c]=e[E];else C(12,!1,h);else for(c=0;c<K;c++)"undefined"!==typeof b[c]&&(e={series:d},d.pointClass.prototype.applyOptions.apply(e,[b[c]]),d.updateParallelArrays(e,c));u&&T(u[0])&&C(14,!0,h);d.data=[];d.options.data=d.userOptions.data=b;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();m&&(m.minRange=m.userMinRange);d.isDirty=
|
|
432
|
+
h.isDirtyBox=!0;d.isDirtyData=!!f;c=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());a&&h.redraw(c)};a.prototype.sortData=function(b){var a=this,e=a.options.dataSorting.sortKey||"y",d=function(b,a){return c(a)&&b.pointClass.prototype.optionsToObject.call({series:b},a)||{}};b.forEach(function(c,e){b[e]=d(a,c);b[e].index=e},this);b.concat().sort(function(b,a){b=W(e,b);a=W(e,a);return a<b?-1:a>b?1:0}).forEach(function(b,a){b.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var c=
|
|
433
|
+
a.options,e=c.data;c.dataSorting&&c.dataSorting.enabled||!e||(e.forEach(function(c,f){e[f]=d(a,c);b[f]&&(e[f].x=b[f].x,e[f].index=f)}),a.setData(e,!1))});return b};a.prototype.getProcessedData=function(b){var a=this.xAxis,c=this.options,e=c.cropThreshold,d=b||this.getExtremesFromAll||c.getExtremesFromAll,f=this.isCartesian;b=a&&a.val2lin;c=!(!a||!a.logarithmic);var g=0,k=this.xData,h=this.yData,n=this.requireSorting;var m=!1;var q=k.length;if(a){m=a.getExtremes();var p=m.min;var u=m.max;m=a.categories&&
|
|
434
|
+
!a.names.length}if(f&&this.sorted&&!d&&(!e||q>e||this.forceCrop))if(k[q-1]<p||k[0]>u)k=[],h=[];else if(this.yData&&(k[0]<p||k[q-1]>u)){var l=this.cropData(this.xData,this.yData,p,u);k=l.xData;h=l.yData;g=l.start;l=!0}for(e=k.length||1;--e;)if(a=c?b(k[e])-b(k[e-1]):k[e]-k[e-1],0<a&&("undefined"===typeof B||a<B))var B=a;else 0>a&&n&&!m&&(C(15,!1,this.chart),n=!1);return{xData:k,yData:h,cropped:l,cropStart:g,closestPointRange:B}};a.prototype.processData=function(b){var a=this.xAxis;if(this.isCartesian&&
|
|
435
|
+
!this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!b)return!1;b=this.getProcessedData();this.cropped=b.cropped;this.cropStart=b.cropStart;this.processedXData=b.xData;this.processedYData=b.yData;this.closestPointRange=this.basePointRange=b.closestPointRange};a.prototype.cropData=function(b,a,c,e,d){var f=b.length,g,k=0,h=f;d=M(d,this.cropShoulder);for(g=0;g<f;g++)if(b[g]>=c){k=Math.max(0,g-d);break}for(c=g;c<f;c++)if(b[c]>e){h=c+d;break}return{xData:b.slice(k,h),yData:a.slice(k,h),start:k,end:h}};a.prototype.generatePoints=
|
|
436
|
+
function(){var b=this.options,a=b.data,c=this.processedXData,e=this.processedYData,d=this.pointClass,f=c.length,g=this.cropStart||0,k=this.hasGroupedData,h=b.keys,n=[];b=b.dataGrouping&&b.dataGrouping.groupAll?g:0;var m,q,p=this.data;if(!p&&!k){var u=[];u.length=a.length;p=this.data=u}h&&k&&(this.options.keys=!1);for(q=0;q<f;q++){u=g+q;if(k){var l=(new d).init(this,[c[q]].concat(ia(e[q])));l.dataGroup=this.groupMap[b+q];l.dataGroup.options&&(l.options=l.dataGroup.options,H(l,l.dataGroup.options),
|
|
437
|
+
delete l.dataLabels)}else(l=p[u])||"undefined"===typeof a[u]||(p[u]=l=(new d).init(this,a[u],c[q]));l&&(l.index=k?b+q:u,n[q]=l)}this.options.keys=h;if(p&&(f!==(m=p.length)||k))for(q=0;q<m;q++)q!==g||k||(q+=f),p[q]&&(p[q].destroyElements(),p[q].plotX=void 0);this.data=p;this.points=n;F(this,"afterGeneratePoints")};a.prototype.getXExtremes=function(b){return{min:E(b),max:u(b)}};a.prototype.getExtremes=function(b,a){var c=this.xAxis,e=this.yAxis,d=this.processedXData||this.xData,f=[],g=this.requireSorting?
|
|
438
|
+
this.cropShoulder:0;e=e?e.positiveValuesOnly:!1;var k,h=0,n=0,m=0;b=b||this.stackedYData||this.processedYData||[];var q=b.length;if(c){var p=c.getExtremes();h=p.min;n=p.max}for(k=0;k<q;k++){var l=d[k];p=b[k];var B=(R(p)||S(p))&&(p.length||0<p||!e);l=a||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!c||(d[k+g]||l)>=h&&(d[k-g]||l)<=n;if(B&&l)if(B=p.length)for(;B--;)R(p[B])&&(f[m++]=p[B]);else f[m++]=p}b={dataMin:E(f),dataMax:u(f)};F(this,"afterGetExtremes",{dataExtremes:b});
|
|
439
|
+
return b};a.prototype.applyExtremes=function(){var b=this.getExtremes();this.dataMin=b.dataMin;this.dataMax=b.dataMax;return b};a.prototype.getFirstValidPoint=function(b){for(var a=b.length,c=0,e=null;null===e&&c<a;)e=b[c],c++;return e};a.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b=this.options,a=b.stacking,d=this.xAxis,f=d.categories,g=this.enabledDataSorting,k=this.yAxis,h=this.points,n=h.length,q=!!this.modifyValue,p=this.pointPlacementToXValue(),
|
|
440
|
+
u=!!p,l=b.threshold,B=b.startFromThreshold?l:0,x=this.zoneAxis||"y",t,E,r=Number.MAX_VALUE;for(t=0;t<n;t++){var C=h[t],w=C.x,G=void 0,v=void 0,H=C.y,J=C.low,D=a&&k.stacking&&k.stacking.stacks[(this.negStacks&&H<(B?0:l)?"-":"")+this.stackKey];if(k.positiveValuesOnly&&!k.validatePositiveValue(H)||d.positiveValuesOnly&&!d.validatePositiveValue(w))C.isNull=!0;C.plotX=E=e(m(d.translate(w,0,0,0,1,p,"flags"===this.type),-1E5,1E5));if(a&&this.visible&&D&&D[w]){var y=this.getStackIndicator(y,w,this.index);
|
|
441
|
+
C.isNull||(G=D[w],v=G.points[y.key])}S(v)&&(J=v[0],H=v[1],J===B&&y.key===D[w].base&&(J=M(R(l)&&l,k.min)),k.positiveValuesOnly&&0>=J&&(J=null),C.total=C.stackTotal=G.total,C.percentage=G.total&&C.y/G.total*100,C.stackY=H,this.irregularWidths||G.setOffset(this.pointXOffset||0,this.barW||0));C.yBottom=c(J)?m(k.translate(J,0,1,0,1),-1E5,1E5):null;q&&(H=this.modifyValue(H,C));C.plotY=void 0;R(H)&&(G=k.translate(H,!1,!0,!1,!0),"undefined"!==typeof G&&(C.plotY=m(G,-1E5,1E5)));C.isInside=this.isPointInside(C);
|
|
442
|
+
C.clientX=u?e(d.translate(w,0,0,0,1,p)):E;C.negative=C[x]<(b[x+"Threshold"]||l||0);C.category=f&&"undefined"!==typeof f[C.x]?f[C.x]:C.x;if(!C.isNull&&!1!==C.visible){"undefined"!==typeof A&&(r=Math.min(r,Math.abs(E-A)));var A=E}C.zone=this.zones.length&&C.getZone();!C.graphic&&this.group&&g&&(C.isNew=!0)}this.closestPointRangePx=r;F(this,"afterTranslate")};a.prototype.getValidPoints=function(b,a,c){var e=this.chart;return(b||this.points||[]).filter(function(b){return a&&!e.isInsidePlot(b.plotX,b.plotY,
|
|
443
|
+
{inverted:e.inverted})?!1:!1!==b.visible&&(c||!b.isNull)})};a.prototype.getClipBox=function(b,a){var c=this.options,e=this.chart,d=e.inverted,f=this.xAxis,g=f&&this.yAxis,k=e.options.chart.scrollablePlotArea||{};b&&!1===c.clip&&g?b=d?{y:-e.chartWidth+g.len+g.pos,height:e.chartWidth,width:e.chartHeight,x:-e.chartHeight+f.len+f.pos}:{y:-g.pos,height:e.chartHeight,width:e.chartWidth,x:-f.pos}:(b=this.clipBox||e.clipBox,a&&(b.width=e.plotSizeX,b.x=(e.scrollablePixelsX||0)*(k.scrollPositionX||0)));return a?
|
|
444
|
+
{width:b.width,x:b.x}:b};a.prototype.getSharedClipKey=function(b){if(this.sharedClipKey)return this.sharedClipKey;var a=[b&&b.duration,b&&b.easing,b&&b.defer,this.getClipBox(b).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||b)this.sharedClipKey=a;return a};a.prototype.setClip=function(b){var a=this.chart,c=this.options,e=a.renderer,d=a.inverted,f=this.clipBox,g=this.getClipBox(b),k=this.getSharedClipKey(b),h=a.sharedClips[k],n=a.sharedClips[k+"m"];b&&(g.width=0,d&&
|
|
445
|
+
(g.x=a.plotHeight+(!1!==c.clip?0:a.plotTop)));h?a.hasLoaded||h.attr(g):(b&&(a.sharedClips[k+"m"]=n=e.clipRect(d?(a.plotSizeX||0)+99:-99,d?-a.plotLeft:-a.plotTop,99,d?a.chartWidth:a.chartHeight)),a.sharedClips[k]=h=e.clipRect(g),h.count={length:0});b&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1);if(!1!==c.clip||b)this.group.clip(b||f?h:a.clipRect),this.markerGroup.clip(n);b||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&(f||(a.sharedClips[k]=
|
|
446
|
+
h.destroy()),n&&(a.sharedClips[k+"m"]=n.destroy())))};a.prototype.animate=function(a){var c=this.chart,e=b(this.options.animation),d=this.sharedClipKey;if(a)this.setClip(e);else if(d){a=c.sharedClips[d];d=c.sharedClips[d+"m"];var f=this.getClipBox(e,!0);a&&a.animate(f,e);d&&d.animate({width:f.width+99,x:f.x-(c.inverted?0:99)},e)}};a.prototype.afterAnimate=function(){this.setClip();F(this,"afterAnimate");this.finishedAnimating=!0};a.prototype.drawPoints=function(){var b=this.points,a=this.chart,c=
|
|
447
|
+
this.options.marker,e=this[this.specialGroup]||this.markerGroup,d=this.xAxis,f=M(c.enabled,!d||d.isRadial?!0:null,this.closestPointRangePx>=c.enabledThreshold*c.radius),g,k;if(!1!==c.enabled||this._hasPointMarkers)for(g=0;g<b.length;g++){var h=b[g];var n=(k=h.graphic)?"animate":"attr";var m=h.marker||{};var q=!!h.marker;if((f&&"undefined"===typeof m.enabled||m.enabled)&&!h.isNull&&!1!==h.visible){var p=M(m.symbol,this.symbol,"rect");var u=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&
|
|
448
|
+
(h.startXPos=d.reversed?-(u.width||0):d.width);var l=!1!==h.isInside;k?k[l?"show":"hide"](l).animate(u):l&&(0<(u.width||0)||h.hasImage)&&(h.graphic=k=a.renderer.symbol(p,u.x,u.y,u.width,u.height,q?m:c).add(e),this.enabledDataSorting&&a.hasRendered&&(k.attr({x:h.startXPos}),n="animate"));k&&"animate"===n&&k[l?"show":"hide"](l).animate(u);if(k&&!a.styledMode)k[n](this.pointAttribs(h,h.selected&&"select"));k&&k.addClass(h.getClassName(),!0)}else k&&(h.graphic=k.destroy())}};a.prototype.markerAttribs=
|
|
449
|
+
function(b,a){var c=this.options,e=c.marker,d=b.marker||{},f=d.symbol||e.symbol,g=M(d.radius,e.radius);a&&(e=e.states[a],a=d.states&&d.states[a],g=M(a&&a.radius,e&&e.radius,g+(e&&e.radiusPlus||0)));b.hasImage=f&&0===f.indexOf("url");b.hasImage&&(g=0);b={x:c.crisp?Math.floor(b.plotX-g):b.plotX-g,y:b.plotY-g};g&&(b.width=b.height=2*g);return b};a.prototype.pointAttribs=function(b,a){var c=this.options.marker,e=b&&b.options,d=e&&e.marker||{},f=e&&e.color,g=b&&b.color,k=b&&b.zone&&b.zone.color,h=this.color;
|
|
450
|
+
b=M(d.lineWidth,c.lineWidth);e=1;h=f||k||g||h;f=d.fillColor||c.fillColor||h;g=d.lineColor||c.lineColor||h;a=a||"normal";c=c.states[a];a=d.states&&d.states[a]||{};b=M(a.lineWidth,c.lineWidth,b+M(a.lineWidthPlus,c.lineWidthPlus,0));f=a.fillColor||c.fillColor||f;g=a.lineColor||c.lineColor||g;e=M(a.opacity,c.opacity,e);return{stroke:g,"stroke-width":b,fill:f,opacity:e}};a.prototype.destroy=function(b){var a=this,c=a.chart,e=/AppleWebKit\/533/.test(f.navigator.userAgent),g=a.data||[],k,m,q,p;F(a,"destroy");
|
|
451
|
+
this.removeEvents(b);(a.axisTypes||[]).forEach(function(b){(p=a[b])&&p.series&&(n(p.series,a),p.isDirty=p.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(m=g.length;m--;)(q=g[m])&&q.destroy&&q.destroy();a.clips&&a.clips.forEach(function(b){return b.destroy()});d.clearTimeout(a.animationTimeout);N(a,function(b,a){b instanceof h&&!b.survive&&(k=e&&"group"===a?"hide":"destroy",b[k]())});c.hoverSeries===a&&(c.hoverSeries=void 0);n(c.series,a);c.orderSeries();N(a,function(c,e){b&&"hcEvents"===
|
|
452
|
+
e||delete a[e]})};a.prototype.applyZones=function(){var b=this,a=this.chart,c=a.renderer,e=this.zones,d=this.clips||[],f=this.graph,g=this.area,k=Math.max(a.chartWidth,a.chartHeight),h=this[(this.zoneAxis||"y")+"Axis"],n=a.inverted,q,p,u,l,B,x,t,E,r=!1;if(e.length&&(f||g)&&h&&"undefined"!==typeof h.min){var C=h.reversed;var w=h.horiz;f&&!this.showLine&&f.hide();g&&g.hide();var G=h.getExtremes();e.forEach(function(e,v){q=C?w?a.plotWidth:0:w?0:h.toPixels(G.min)||0;q=m(M(p,q),0,k);p=m(Math.round(h.toPixels(M(e.value,
|
|
453
|
+
G.max),!0)||0),0,k);r&&(q=p=h.toPixels(G.max));l=Math.abs(q-p);B=Math.min(q,p);x=Math.max(q,p);h.isXAxis?(u={x:n?x:B,y:0,width:l,height:k},w||(u.x=a.plotHeight-u.x)):(u={x:0,y:n?x:B,width:k,height:l},w&&(u.y=a.plotWidth-u.y));n&&c.isVML&&(u=h.isXAxis?{x:0,y:C?B:x,height:u.width,width:a.chartWidth}:{x:u.y-a.plotLeft-a.spacingBox.x,y:0,width:u.height,height:a.chartHeight});d[v]?d[v].animate(u):d[v]=c.clipRect(u);t=b["zone-area-"+v];E=b["zone-graph-"+v];f&&E&&E.clip(d[v]);g&&t&&t.clip(d[v]);r=e.value>
|
|
454
|
+
G.max;b.resetZones&&0===p&&(p=void 0)});this.clips=d}else b.visible&&(f&&f.show(!0),g&&g.show(!0))};a.prototype.invertGroups=function(b){function a(){["group","markerGroup"].forEach(function(a){c[a]&&(e.renderer.isVML&&c[a].attr({width:c.yAxis.len,height:c.xAxis.len}),c[a].width=c.yAxis.len,c[a].height=c.xAxis.len,c[a].invert(c.isRadialSeries?!1:b))})}var c=this,e=c.chart;c.xAxis&&(c.eventsToUnbind.push(x(e,"resize",a)),a(),c.invertGroups=a)};a.prototype.plotGroup=function(b,a,e,d,f){var g=this[b],
|
|
455
|
+
k=!g;e={visibility:e,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);k&&(this[b]=g=this.chart.renderer.g().add(f));g.addClass("highcharts-"+a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(c(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(e)[k?"attr":"animate"](this.getPlotBox());return g};
|
|
456
|
+
a.prototype.getPlotBox=function(){var b=this.chart,a=this.xAxis,c=this.yAxis;b.inverted&&(a=c,c=this.xAxis);return{translateX:a?a.left:b.plotLeft,translateY:c?c.top:b.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=function(b){b||I(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var a=this,c=a.chart,e=a.options,d=b(e.animation),f=a.visible?"inherit":"hidden",g=e.zIndex,k=a.hasRendered,h=c.seriesGroup,
|
|
457
|
+
n=c.inverted,m=!a.finishedAnimating&&c.renderer.isSVG&&d.duration;F(this,"render");var q=a.plotGroup("group","series",f,g,h);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,h);m&&a.animate&&a.animate(!0);q.inverted=M(a.invertible,a.isCartesian)?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);!1===e.clip||a.sharedClipKey||
|
|
458
|
+
k||q.clip(c.clipRect);m&&a.animate&&a.animate();k||(m&&d.defer&&(m+=d.defer),a.animationTimeout=O(function(){a.afterAnimate()},m||0));a.isDirty=!1;a.hasRendered=!0;F(a,"afterRender")};a.prototype.redraw=function(){var b=this.chart,a=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(b.inverted&&c.attr({width:b.plotWidth,height:b.plotHeight}),c.animate({translateX:M(e&&e.left,b.plotLeft),translateY:M(d&&d.top,b.plotTop)}));this.translate();this.render();a&&delete this.kdTree};
|
|
459
|
+
a.prototype.searchPoint=function(b,a){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?c.len-b.chartY+c.pos:b.chartX-c.pos,plotY:d?e.len-b.chartX+e.pos:b.chartY-e.pos},a,b)};a.prototype.buildKDTree=function(b){function a(b,e,d){var f=b&&b.length;if(f){var g=c.kdAxisArray[e%d];b.sort(function(b,a){return b[g]-a[g]});f=Math.floor(f/2);return{point:b[f],left:a(b.slice(0,f),e+1,d),right:a(b.slice(f+1),e+1,d)}}}this.buildingKdTree=!0;var c=this,e=-1<c.options.findNearestPointBy.indexOf("y")?
|
|
460
|
+
2:1;delete c.kdTree;O(function(){c.kdTree=a(c.getValidPoints(null,!c.directTouch),e,e);c.buildingKdTree=!1},c.options.kdNow||b&&"touchstart"===b.type?0:1)};a.prototype.searchKDTree=function(b,a,e){function d(b,a,e,n){var m=a.point,q=f.kdAxisArray[e%n],p=m,u=c(b[g])&&c(m[g])?Math.pow(b[g]-m[g],2):null;var l=c(b[k])&&c(m[k])?Math.pow(b[k]-m[k],2):null;l=(u||0)+(l||0);m.dist=c(l)?Math.sqrt(l):Number.MAX_VALUE;m.distX=c(u)?Math.sqrt(u):Number.MAX_VALUE;q=b[q]-m[q];l=0>q?"left":"right";u=0>q?"right":"left";
|
|
461
|
+
a[l]&&(l=d(b,a[l],e+1,n),p=l[h]<p[h]?l:m);a[u]&&Math.sqrt(q*q)<p[h]&&(b=d(b,a[u],e+1,n),p=b[h]<p[h]?b:p);return p}var f=this,g=this.kdAxisArray[0],k=this.kdAxisArray[1],h=a?"distX":"dist";a=-1<f.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(e);if(this.kdTree)return d(b,this.kdTree,a,a)};a.prototype.pointPlacementToXValue=function(){var b=this.options,a=b.pointRange,c=this.xAxis;b=b.pointPlacement;"between"===b&&(b=c.reversed?-.5:.5);return R(b)?b*(a||
|
|
462
|
+
c.pointRange):0};a.prototype.isPointInside=function(b){return"undefined"!==typeof b.plotY&&"undefined"!==typeof b.plotX&&0<=b.plotY&&b.plotY<=this.yAxis.len&&0<=b.plotX&&b.plotX<=this.xAxis.len};a.prototype.drawTracker=function(){var b=this,a=b.options,c=a.trackByArea,e=[].concat(c?b.areaPath:b.graphPath),d=b.chart,f=d.pointer,g=d.renderer,k=d.options.tooltip.snap,h=b.tracker,n=function(a){if(d.hoverSeries!==b)b.onMouseOver()},m="rgba(192,192,192,"+(G?.0001:.002)+")";h?h.attr({d:e}):b.graph&&(b.tracker=
|
|
463
|
+
g.path(e).attr({visibility:b.visible?"visible":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(b.group),d.styledMode||b.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:m,fill:c?m:"none","stroke-width":b.graph.strokeWidth()+(c?0:2*k)}),[b.tracker,b.markerGroup,b.dataLabelsGroup].forEach(function(b){if(b&&(b.addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(b){f.onTrackerMouseOut(b)}),a.cursor&&!d.styledMode&&b.css({cursor:a.cursor}),
|
|
464
|
+
r))b.on("touchstart",n)}));F(this,"afterDrawTracker")};a.prototype.addPoint=function(b,a,c,e,d){var f=this.options,g=this.data,k=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var n=f.data,m=this.xData,q;a=M(a,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[b]);var u=p.x;var l=m.length;if(this.requireSorting&&u<m[l-1])for(q=!0;l&&m[l-1]>u;)l--;this.updateParallelArrays(p,"splice",l,0,0);this.updateParallelArrays(p,l);h&&p.name&&(h[u]=p.name);n.splice(l,0,b);q&&(this.data.splice(l,
|
|
465
|
+
0,null),this.processData());"point"===f.legendType&&this.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(p,"shift"),n.shift()));!1!==d&&F(this,"addPoint",{point:p});this.isDirtyData=this.isDirty=!0;a&&k.redraw(e)};a.prototype.removePoint=function(b,a,c){var e=this,d=e.data,f=d[b],k=e.points,h=e.chart,n=function(){k&&k.length===d.length&&k.splice(b,1);d.splice(b,1);e.options.data.splice(b,1);e.updateParallelArrays(f||{series:e},"splice",b,1);f&&f.destroy();
|
|
466
|
+
e.isDirty=!0;e.isDirtyData=!0;a&&h.redraw()};g(c,h);a=M(a,!0);f?f.firePointEvent("remove",null,n):n()};a.prototype.remove=function(b,a,c,e){function d(){f.destroy(e);g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();M(b,!0)&&g.redraw(a)}var f=this,g=f.chart;!1!==c?F(f,"remove",null,d):d()};a.prototype.update=function(b,a){b=q(b,this.userOptions);F(this,"update",{options:b});var c=this,e=c.chart,d=c.userOptions,f=c.initialType||c.type,g=e.options.plotOptions,k=B[f].prototype,h=c.finishedAnimating&&{animation:!1},
|
|
467
|
+
n={},m,p=["eventOptions","navigatorSeries","baseSeries"],u=b.type||d.type||e.options.chart.type,l=!(this.hasDerivedData||u&&u!==this.type||"undefined"!==typeof b.pointStart||"undefined"!==typeof b.pointInterval||"undefined"!==typeof b.relativeXValue||c.hasOptionChanged("dataGrouping")||c.hasOptionChanged("pointStart")||c.hasOptionChanged("pointInterval")||c.hasOptionChanged("pointIntervalUnit")||c.hasOptionChanged("keys"));u=u||f;l&&(p.push("data","isDirtyData","points","processedXData","processedYData",
|
|
468
|
+
"xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==b.visible&&p.push("area","graph"),c.parallelArrays.forEach(function(b){p.push(b+"Data")}),b.data&&(b.dataSorting&&H(c.options.dataSorting,b.dataSorting),this.setData(b.data,!1)));b=ba(d,h,{index:"undefined"===typeof d.index?c.index:d.index,pointStart:M(g&&g.series&&g.series.pointStart,d.pointStart,c.xData[0])},!l&&{data:c.options.data},b);l&&b.data&&(b.data=c.options.data);
|
|
469
|
+
p=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(p);p.forEach(function(b){p[b]=c[b];delete c[b]});g=!1;if(B[u]){if(g=u!==c.type,c.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(c,B[u].prototype);else{h=Object.hasOwnProperty.call(c,"hcEvents")&&c.hcEvents;for(m in k)c[m]=void 0;H(c,B[u].prototype);h?c.hcEvents=h:delete c.hcEvents}}else C(17,!0,e,{missingModuleFor:u});p.forEach(function(b){c[b]=p[b]});c.init(e,b);if(l&&this.points){var x=c.options;!1===x.visible?
|
|
470
|
+
(n.graphic=1,n.dataLabel=1):c._hasPointLabels||(b=x.marker,k=x.dataLabels,!b||!1!==b.enabled&&(d.marker&&d.marker.symbol)===b.symbol||(n.graphic=1),k&&!1===k.enabled&&(n.dataLabel=1));this.points.forEach(function(b){b&&b.series&&(b.resolveColor(),Object.keys(n).length&&b.destroyElements(n),!1===x.showInLegend&&b.legendItem&&e.legend.destroyItem(b))},this)}c.initialType=f;e.linkSeries();g&&c.linkedSeries.length&&(c.isDirtyData=!0);F(this,"afterUpdate");M(a,!0)&&e.redraw(l?void 0:!1)};a.prototype.setName=
|
|
471
|
+
function(b){this.name=this.options.name=this.userOptions.name=b;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(b){var a=this.options[b],c=this.chart.options.plotOptions,e=this.userOptions[b];return e?a!==e:a!==M(c&&c[this.type]&&c[this.type][b],c&&c.series&&c.series[b],a)};a.prototype.onMouseOver=function(){var b=this.chart,a=b.hoverSeries;b.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&F(this,"mouseOver");this.setState("hover");b.hoverSeries=
|
|
472
|
+
this};a.prototype.onMouseOut=function(){var b=this.options,a=this.chart,c=a.tooltip,e=a.hoverPoint;a.hoverSeries=null;if(e)e.onMouseOut();this&&b.events.mouseOut&&F(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();a.series.forEach(function(b){b.setState("",!0)})};a.prototype.setState=function(b,a){var c=this,e=c.options,d=c.graph,f=e.inactiveOtherPoints,g=e.states,k=M(g[b||"normal"]&&g[b||"normal"].animation,c.chart.options.chart.animation),h=e.lineWidth,n=0,m=e.opacity;
|
|
473
|
+
b=b||"";if(c.state!==b&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(a){a&&(c.state&&a.removeClass("highcharts-series-"+c.state),b&&a.addClass("highcharts-series-"+b))}),c.state=b,!c.chart.styledMode)){if(g[b]&&!1===g[b].enabled)return;b&&(h=g[b].lineWidth||h+(g[b].lineWidthPlus||0),m=M(g[b].opacity,m));if(d&&!d.dashstyle)for(e={"stroke-width":h},d.animate(e,k);c["zone-graph-"+n];)c["zone-graph-"+n].animate(e,k),n+=1;f||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(b){b&&
|
|
474
|
+
b.animate({opacity:m},k)})}a&&f&&c.points&&c.setAllPointsToState(b||void 0)};a.prototype.setAllPointsToState=function(b){this.points.forEach(function(a){a.setState&&a.setState(b)})};a.prototype.setVisible=function(b,a){var c=this,e=c.chart,d=c.legendItem,f=e.options.chart.ignoreHiddenSeries,g=c.visible,k=(c.visible=b=c.options.visible=c.userOptions.visible="undefined"===typeof b?!g:b)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(b){if(c[b])c[b][k]()});if(e.hoverSeries===
|
|
475
|
+
c||(e.hoverPoint&&e.hoverPoint.series)===c)c.onMouseOut();d&&e.legend.colorizeItem(c,b);c.isDirty=!0;c.options.stacking&&e.series.forEach(function(b){b.options.stacking&&b.visible&&(b.isDirty=!0)});c.linkedSeries.forEach(function(a){a.setVisible(b,!1)});f&&(e.isDirtyBox=!0);F(c,k);!1!==a&&e.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(b){this.selected=b=this.options.selected="undefined"===typeof b?!this.selected:
|
|
476
|
+
b;this.checkbox&&(this.checkbox.checked=b);F(this,b?"select":"unselect")};a.prototype.shouldShowTooltip=function(b,a,c){void 0===c&&(c={});c.series=this;c.visiblePlotOnly=!0;return this.chart.isInsidePlot(b,a,c)};a.defaultOptions=t;return a}();H(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:z.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:D,requireSorting:!0,sorted:!0});l.series=
|
|
477
|
+
a;"";"";return a});I(a,"Extensions/ScrollablePlotArea.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=a.stop,t=w.addEvent,l=w.createElement,h=w.merge,d=w.pick;t(A,"afterSetChartSize",function(b){var a=this.options.chart.scrollablePlotArea,d=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=d=Math.max(0,
|
|
478
|
+
d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=d;var k={1:{name:"right",value:d}}}}else a&&(this.scrollablePixelsY=d=Math.max(0,a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,k={2:{name:"bottom",value:d}});k&&!b.skipAxes&&
|
|
479
|
+
this.axes.forEach(function(b){k[b.side]?b.getPlotLinePath=function(){var a=k[b.side].name,d=this[a];this[a]=d-k[b.side].value;var g=v.prototype.getPlotLinePath.apply(this,arguments);this[a]=d;return g}:(b.setAxisSize(),b.setAxisTranslation())})}});t(A,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var b=this,a={WebkitOverflowScrolling:"touch",
|
|
480
|
+
overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=l("div",{className:"highcharts-scrolling"},a,this.scrollingParent);t(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);
|
|
481
|
+
this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var b=this.container,a=this.fixedRenderer,d=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),k;this.scrollablePixelsX&&
|
|
482
|
+
!this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&d.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");d.forEach(function(d){[].forEach.call(b.querySelectorAll(d),function(b){(b.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})};A.prototype.applyFixed=
|
|
483
|
+
function(){var b=!this.fixedDiv,a=this.options.chart,h=a.scrollablePlotArea,k=z.getRendererType();b?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=a=new k(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),
|
|
484
|
+
this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(h.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),t(this,"afterShowResetZoom",this.moveFixedElements),t(this,"afterDrilldown",this.moveFixedElements),t(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+(this.scrollablePixelsX||
|
|
485
|
+
0);k=this.chartHeight+(this.scrollablePixelsY||0);r(this.container);this.container.style.width=a+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:a,height:k,viewBox:[0,0,a,k].join(" ")});this.chartBackground.attr({width:a,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(h.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*h.scrollPositionX),h.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*h.scrollPositionY));
|
|
486
|
+
k=this.axisOffset;b=this.plotTop-k[0]-1;h=this.plotLeft-k[3]-1;a=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var w=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",w,b],["L",this.chartWidth,b],["L",this.chartWidth,a],["L",w,a],["Z"]]:this.scrollablePixelsY?[["M",h,0],["L",h,this.plotTop-1],["L",k,this.plotTop-
|
|
487
|
+
1],["L",k,0],["Z"],["M",h,v],["L",h,this.chartHeight],["L",k,this.chartHeight],["L",k,v],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};t(v,"afterInit",function(){this.chart.scrollableDirty=!0});t(y,"show",function(){this.chart.scrollableDirty=!0});""});I(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,v,A){var r=a.getDeferredAnimation,z=A.addEvent,w=A.destroyObjectProperties,
|
|
488
|
+
D=A.fireEvent,t=A.isNumber,l=A.objectEach,h;(function(a){function b(){var b=this.stacking;if(b){var a=b.stacks;l(a,function(b,d){w(b);a[d]=null});b&&b.stackTotalGroup&&b.stackTotalGroup.destroy()}}function d(){this.stacking||(this.stacking=new k(this))}var h=[];a.compose=function(a){-1===h.indexOf(a)&&(h.push(a),z(a,"init",d),z(a,"destroy",b));return a};var k=function(){function b(b){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=b}b.prototype.buildStacks=function(){var b=this.axis,
|
|
489
|
+
a=b.series,d=b.options.reversedStacks,g=a.length,k;if(!b.isXAxis){this.usePercentage=!1;for(k=g;k--;){var h=a[d?k:g-k-1];h.setStackedPoints();h.setGroupedPoints()}for(k=0;k<g;k++)a[k].modifyStacks();D(b,"afterBuildStacks")}};b.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var b=this.stacks=this.oldStacks;l(b,function(b){l(b,function(b){b.cumulative=b.total})})}};b.prototype.resetStacks=function(){var b=this,a=b.stacks;b.axis.isXAxis||l(a,function(a){l(a,function(d,f){t(d.touched)&&
|
|
490
|
+
d.touched<b.stacksTouched?(d.destroy(),delete a[f]):(d.total=null,d.cumulative=null)})})};b.prototype.renderStackTotals=function(){var b=this.axis,a=b.chart,d=a.renderer,g=this.stacks;b=r(a,b.options.stackLabels&&b.options.stackLabels.animation||!1);var k=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();k.translate(a.plotLeft,a.plotTop);l(g,function(b){l(b,function(b){b.render(k)})});k.animate({opacity:1},b)};return b}();a.Additions=
|
|
491
|
+
k})(h||(h={}));return h});I(a,"Extensions/Stacking.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Axis/StackingAxis.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D){var t=A.format,l=D.correctFloat,h=D.defined,d=D.destroyObjectProperties,b=D.isArray,g=D.isNumber,p=D.objectEach,k=D.pick,r=function(){function b(b,a,d,g,k){var f=b.chart.inverted;this.axis=b;this.isNegative=d;this.options=a=a||{};this.x=g;this.total=
|
|
492
|
+
null;this.points={};this.hasValidPoints=!1;this.stack=k;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(f?d?"left":"right":"center"),verticalAlign:a.verticalAlign||(f?"middle":d?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(f?d?"right":"left":"center")}b.prototype.destroy=function(){d(this,this.axis)};b.prototype.render=function(b){var a=this.axis.chart,d=this.options,f=d.format;f=f?t(f,this,a):d.formatter.call(this);this.label?this.label.attr({text:f,visibility:"hidden"}):
|
|
493
|
+
(this.label=a.renderer.label(f,null,null,d.shape,null,null,d.useHTML,!1,"stack-labels"),f={r:d.borderRadius||0,text:f,rotation:d.rotation,padding:k(d.padding,5),visibility:"hidden"},a.styledMode||(f.fill=d.backgroundColor,f.stroke=d.borderColor,f["stroke-width"]=d.borderWidth,this.label.css(d.style)),this.label.attr(f),this.label.added||this.label.add(b));this.label.labelrank=a.plotSizeY};b.prototype.setOffset=function(b,a,d,p,l){var f=this.axis,q=f.chart;p=f.translate(f.stacking.usePercentage?100:
|
|
494
|
+
p?p:this.total,0,0,0,1);d=f.translate(d?d:0);d=h(p)&&Math.abs(p-d);b=k(l,q.xAxis[0].translate(this.x))+b;f=h(p)&&this.getStackBox(q,this,b,p,a,d,f);a=this.label;d=this.isNegative;b="justify"===k(this.options.overflow,"justify");var e=this.textAlign;a&&f&&(l=a.getBBox(),p=a.padding,e="left"===e?q.inverted?-p:p:"right"===e?l.width:q.inverted&&"center"===e?l.width/2:q.inverted?d?l.width+p:-p:l.width/2,d=q.inverted?l.height/2:d?-p:l.height,this.alignOptions.x=k(this.options.x,0),this.alignOptions.y=k(this.options.y,
|
|
495
|
+
0),f.x-=e,f.y-=d,a.align(this.alignOptions,null,f),q.isInsidePlot(a.alignAttr.x+e-this.alignOptions.x,a.alignAttr.y+d-this.alignOptions.y)?a.show():(a.alignAttr.y=-9999,b=!1),b&&z.prototype.justifyDataLabel.call(this.axis,a,this.alignOptions,a.alignAttr,l,f),a.attr({x:a.alignAttr.x,y:a.alignAttr.y}),k(!b&&this.options.crop,!0)&&((q=g(a.x)&&g(a.y)&&q.isInsidePlot(a.x-p+a.width,a.y)&&q.isInsidePlot(a.x+p,a.y))||a.hide()))};b.prototype.getStackBox=function(b,a,d,g,k,h,q){var e=a.axis.reversed,c=b.inverted,
|
|
496
|
+
f=q.height+q.pos-(c?b.plotLeft:b.plotTop);a=a.isNegative&&!e||!a.isNegative&&e;return{x:c?a?g-q.right:g-h+q.pos-b.plotLeft:d+b.xAxis[0].transB-b.plotLeft,y:c?q.height-d-k:a?f-g-h:f-g,width:c?h:k,height:c?k:h}};return b}();v.prototype.getStacks=function(){var b=this,a=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(d){var f=d.xAxis&&d.xAxis.options||{};!d.options.stacking||!0!==d.visible&&
|
|
497
|
+
!1!==b.options.chart.ignoreHiddenSeries||(d.stackKey=[d.type,k(d.options.stack,""),a?f.top:f.left,a?f.height:f.width].join())})};w.compose(a);z.prototype.setGroupedPoints=function(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?z.prototype.setStackedPoints.call(this,"group"):b&&p(b.stacks,function(a,d){"group"===d.slice(-5)&&(p(a,function(b){return b.destroy()}),delete b.stacks[d])})};z.prototype.setStackedPoints=
|
|
498
|
+
function(a){var d=a||this.options.stacking;if(d&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var g=this.processedXData,p=this.processedYData,u=[],t=p.length,m=this.options,q=m.threshold,e=k(m.startFromThreshold&&q,0);m=m.stack;a=a?this.type+","+d:this.stackKey;var c="-"+a,n=this.negStacks,C=this.yAxis,w=C.stacking.stacks,v=C.stacking.oldStacks,F,D;C.stacking.stacksTouched+=1;for(D=0;D<t;D++){var G=g[D];var y=p[D];var A=this.getStackIndicator(A,G,this.index);var J=A.key;
|
|
499
|
+
var z=(F=n&&y<(e?0:q))?c:a;w[z]||(w[z]={});w[z][G]||(v[z]&&v[z][G]?(w[z][G]=v[z][G],w[z][G].total=null):w[z][G]=new r(C,C.options.stackLabels,F,G,m));z=w[z][G];null!==y?(z.points[J]=z.points[this.index]=[k(z.cumulative,e)],h(z.cumulative)||(z.base=J),z.touched=C.stacking.stacksTouched,0<A.index&&!1===this.singleStacks&&(z.points[J][0]=z.points[this.index+","+G+",0"][0])):z.points[J]=z.points[this.index]=null;"percent"===d?(F=F?a:c,n&&w[F]&&w[F][G]?(F=w[F][G],z.total=F.total=Math.max(F.total,z.total)+
|
|
500
|
+
Math.abs(y)||0):z.total=l(z.total+(Math.abs(y)||0))):"group"===d?(b(y)&&(y=y[0]),null!==y&&(z.total=(z.total||0)+1)):z.total=l(z.total+(y||0));z.cumulative="group"===d?(z.total||1)-1:k(z.cumulative,e)+(y||0);null!==y&&(z.points[J].push(z.cumulative),u[D]=z.cumulative,z.hasValidPoints=!0)}"percent"===d&&(C.stacking.usePercentage=!0);"group"!==d&&(this.stackedYData=u);C.stacking.oldStacks={}}};z.prototype.modifyStacks=function(){var b=this,a=b.stackKey,d=b.yAxis.stacking.stacks,g=b.processedXData,k,
|
|
501
|
+
h=b.options.stacking;b[h+"Stacker"]&&[a,"-"+a].forEach(function(a){for(var f=g.length,e,c;f--;)if(e=g[f],k=b.getStackIndicator(k,e,b.index,a),c=(e=d[a]&&d[a][e])&&e.points[k.key])b[h+"Stacker"](c,e,f)})};z.prototype.percentStacker=function(b,a,d){a=a.total?100/a.total:0;b[0]=l(b[0]*a);b[1]=l(b[1]*a);this.stackedYData[d]=b[1]};z.prototype.getStackIndicator=function(b,a,d,g){!h(b)||b.x!==a||g&&b.key!==g?b={x:a,index:0,key:g}:b.index++;b.key=[d,a,b.index].join();return b};y.StackItem=r;"";return y.StackItem});
|
|
502
|
+
I(a,"Series/Line/LineSeries.js",[a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(l,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(l,h)};return function(l,h){function d(){this.constructor=l}a(l,h);l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,
|
|
503
|
+
new d)}}(),w=y.defined,D=y.merge;y=function(t){function l(){var a=null!==t&&t.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(l,t);l.prototype.drawGraph=function(){var h=this,d=this.options,b=(this.gappedPath||this.getGraphPath).call(this),g=this.chart.styledMode,p=[["graph","highcharts-graph"]];g||p[0].push(d.lineColor||this.color||a.neutralColor20,d.dashStyle);p=h.getZonesGraphs(p);p.forEach(function(a,p){var k=a[0],f=h[k],l=f?"animate":"attr";f?(f.endX=h.preventGraphAnimation?
|
|
504
|
+
null:b.xMap,f.animate({d:b})):b.length&&(h[k]=f=h.chart.renderer.path(b).addClass(a[1]).attr({zIndex:1}).add(h.group));f&&!g&&(k={stroke:a[2],"stroke-width":d.lineWidth,fill:h.fillGraph&&h.color||"none"},a[3]?k.dashstyle=a[3]:"square"!==d.linecap&&(k["stroke-linecap"]=k["stroke-linejoin"]="round"),f[l](k).shadow(2>p&&d.shadow));f&&(f.startX=b.xMap,f.isArea=b.isArea)})};l.prototype.getGraphPath=function(a,d,b){var g=this,h=g.options,k=[],l=[],t,f=h.step;a=a||g.points;var r=a.reversed;r&&a.reverse();
|
|
505
|
+
(f={right:1,center:2}[f]||f&&3)&&r&&(f=4-f);a=this.getValidPoints(a,!1,!(h.connectNulls&&!d&&!b));a.forEach(function(p,u){var r=p.plotX,m=p.plotY,q=a[u-1];(p.leftCliff||q&&q.rightCliff)&&!b&&(t=!0);p.isNull&&!w(d)&&0<u?t=!h.connectNulls:p.isNull&&!d?t=!0:(0===u||t?u=[["M",p.plotX,p.plotY]]:g.getPointSpline?u=[g.getPointSpline(a,p,u)]:f?(u=1===f?[["L",q.plotX,m]]:2===f?[["L",(q.plotX+r)/2,q.plotY],["L",(q.plotX+r)/2,m]]:[["L",r,q.plotY]],u.push(["L",r,m])):u=[["L",r,m]],l.push(p.x),f&&(l.push(p.x),
|
|
506
|
+
2===f&&l.push(p.x)),k.push.apply(k,u),t=!1)});k.xMap=l;return g.graphPath=k};l.prototype.getZonesGraphs=function(a){this.zones.forEach(function(d,b){b=["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+b+" "+(d.className||"")];this.chart.styledMode||b.push(d.color||this.color,d.dashStyle||this.options.dashStyle);a.push(b)},this);return a};l.defaultOptions=D(v.defaultOptions,{});return l}(v);A.registerSeriesType("line",y);"";return y});I(a,"Series/Area/AreaSeries.js",[a["Core/Color/Color.js"],
|
|
507
|
+
a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),w=a.parse,D=A.seriesTypes.line;a=
|
|
508
|
+
y.extend;var t=y.merge,l=y.objectEach,h=y.pick;y=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}r(b,a);b.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var b=this,d=this.areaPath,k=this.options,l=[["area","highcharts-area",this.color,k.fillColor]];this.zones.forEach(function(a,d){l.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className,a.color||b.color,a.fillColor||
|
|
509
|
+
k.fillColor])});l.forEach(function(a){var f=a[0],g=b[f],p=g?"animate":"attr",l={};g?(g.endX=b.preventGraphAnimation?null:d.xMap,g.animate({d:d})):(l.zIndex=0,g=b[f]=b.chart.renderer.path(d).addClass(a[1]).add(b.group),g.isArea=!0);b.chart.styledMode||(l.fill=h(a[3],w(a[2]).setOpacity(h(k.fillOpacity,.75)).get()));g[p](l);g.startX=d.xMap;g.shiftUnit=k.step?2:1})};b.prototype.getGraphPath=function(b){var a=D.prototype.getGraphPath,d=this.options,g=d.stacking,l=this.yAxis,f,t=[],r=[],u=this.index,E=
|
|
510
|
+
l.stacking.stacks[this.stackKey],m=d.threshold,q=Math.round(l.getThreshold(d.threshold));d=h(d.connectNulls,"percent"===g);var e=function(a,c,d){var e=b[a];a=g&&E[e.x].points[u];var f=e[d+"Null"]||0;d=e[d+"Cliff"]||0;e=!0;if(d||f){var k=(f?a[0]:a[1])+d;var h=a[0]+d;e=!!f}else!g&&b[c]&&b[c].isNull&&(k=h=m);"undefined"!==typeof k&&(r.push({plotX:n,plotY:null===k?q:l.getThreshold(k),isNull:e,isCliff:!0}),t.push({plotX:n,plotY:null===h?q:l.getThreshold(h),doCurve:!1}))};b=b||this.points;g&&(b=this.getStackPoints(b));
|
|
511
|
+
for(f=0;f<b.length;f++){g||(b[f].leftCliff=b[f].rightCliff=b[f].leftNull=b[f].rightNull=void 0);var c=b[f].isNull;var n=h(b[f].rectPlotX,b[f].plotX);var C=g?h(b[f].yBottom,q):q;if(!c||d)d||e(f,f-1,"left"),c&&!g&&d||(r.push(b[f]),t.push({x:f,plotX:n,plotY:C})),d||e(f,f+1,"right")}f=a.call(this,r,!0,!0);t.reversed=!0;c=a.call(this,t,!0,!0);(C=c[0])&&"M"===C[0]&&(c[0]=["L",C[1],C[2]]);c=f.concat(c);c.length&&c.push(["Z"]);a=a.call(this,r,!1,d);c.xMap=f.xMap;this.areaPath=c;return a};b.prototype.getStackPoints=
|
|
512
|
+
function(b){var a=this,d=[],g=[],t=this.xAxis,f=this.yAxis,r=f.stacking.stacks[this.stackKey],x={},u=f.series,E=u.length,m=f.options.reversedStacks?1:-1,q=u.indexOf(a);b=b||this.points;if(this.options.stacking){for(var e=0;e<b.length;e++)b[e].leftNull=b[e].rightNull=void 0,x[b[e].x]=b[e];l(r,function(b,a){null!==b.total&&g.push(a)});g.sort(function(b,a){return b-a});var c=u.map(function(b){return b.visible});g.forEach(function(b,e){var k=0,n,p;if(x[b]&&!x[b].isNull)d.push(x[b]),[-1,1].forEach(function(d){var f=
|
|
513
|
+
1===d?"rightNull":"leftNull",k=0,h=r[g[e+d]];if(h)for(var l=q;0<=l&&l<E;){var t=u[l].index;n=h.points[t];n||(t===a.index?x[b][f]=!0:c[l]&&(p=r[b].points[t])&&(k-=p[1]-p[0]));l+=m}x[b][1===d?"rightCliff":"leftCliff"]=k});else{for(var l=q;0<=l&&l<E;){if(n=r[b].points[u[l].index]){k=n[1];break}l+=m}k=h(k,0);k=f.translate(k,0,1,0,1);d.push({isNull:!0,plotX:t.translate(b,0,0,0,1),x:b,plotY:k,yBottom:k})}})}return d};b.defaultOptions=t(D.defaultOptions,{threshold:0});return b}(D);a(y.prototype,{singleStacks:!1,
|
|
514
|
+
drawLegendSymbol:v.drawRectangle});A.registerSeriesType("area",y);"";return y});I(a,"Series/Spline/SplineSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(t,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(t,l)};return function(t,l){function h(){this.constructor=t}a(t,l);t.prototype=null===l?Object.create(l):
|
|
515
|
+
(h.prototype=l.prototype,new h)}}(),y=a.seriesTypes.line,z=v.merge,w=v.pick;v=function(a){function t(){var l=null!==a&&a.apply(this,arguments)||this;l.data=void 0;l.options=void 0;l.points=void 0;return l}r(t,a);t.prototype.getPointSpline=function(a,h,d){var b=h.plotX||0,g=h.plotY||0,p=a[d-1];d=a[d+1];if(p&&!p.isNull&&!1!==p.doCurve&&!h.isCliff&&d&&!d.isNull&&!1!==d.doCurve&&!h.isCliff){a=p.plotY||0;var k=d.plotX||0;d=d.plotY||0;var l=0;var t=(1.5*b+(p.plotX||0))/2.5;var f=(1.5*g+a)/2.5;k=(1.5*b+
|
|
516
|
+
k)/2.5;var r=(1.5*g+d)/2.5;k!==t&&(l=(r-f)*(k-b)/(k-t)+g-r);f+=l;r+=l;f>a&&f>g?(f=Math.max(a,g),r=2*g-f):f<a&&f<g&&(f=Math.min(a,g),r=2*g-f);r>d&&r>g?(r=Math.max(d,g),f=2*g-r):r<d&&r<g&&(r=Math.min(d,g),f=2*g-r);h.rightContX=k;h.rightContY=r}h=["C",w(p.rightContX,p.plotX,0),w(p.rightContY,p.plotY,0),w(t,b,0),w(f,g,0),b,g];p.rightContX=p.rightContY=void 0;return h};t.defaultOptions=z(y.defaultOptions);return t}(y);a.registerSeriesType("spline",v);"";return v});I(a,"Series/AreaSpline/AreaSplineSeries.js",
|
|
517
|
+
[a["Series/Area/AreaSeries.js"],a["Series/Spline/SplineSeries.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z){var r=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,b)};return function(d,b){function g(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):
|
|
518
|
+
(g.prototype=b.prototype,new g)}}(),D=a.prototype,t=z.extend,l=z.merge;z=function(h){function d(){var b=null!==h&&h.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;return b}r(d,h);d.defaultOptions=l(v.defaultOptions,a.defaultOptions);return d}(v);t(z.prototype,{getGraphPath:D.getGraphPath,getStackPoints:D.getStackPoints,drawGraph:D.drawGraph,drawLegendSymbol:A.drawRectangle});y.registerSeriesType("areaspline",z);"";return z});I(a,"Series/Column/ColumnSeries.js",[a["Core/Animation/AnimationUtilities.js"],
|
|
519
|
+
a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t){var l=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,d)};return function(a,d){function c(){this.constructor=a}b(a,d);
|
|
520
|
+
a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),h=a.animObject,d=v.parse,b=A.hasTouch;a=A.noop;var g=t.clamp,p=t.css,k=t.defined,r=t.extend,G=t.fireEvent,f=t.isArray,B=t.isNumber,x=t.merge,u=t.pick,E=t.objectEach;t=function(a){function m(){var b=null!==a&&a.apply(this,arguments)||this;b.borderWidth=void 0;b.data=void 0;b.group=void 0;b.options=void 0;b.points=void 0;return b}l(m,a);m.prototype.animate=function(b){var a=this,d=this.yAxis,e=a.options,f=this.chart.inverted,
|
|
521
|
+
k={},m=f?"translateX":"translateY";if(b)k.scaleY=.001,b=g(d.toPixels(e.threshold),d.pos,d.pos+d.len),f?k.translateX=b-d.len:k.translateY=b,a.clipBox&&a.setClip(),a.group.attr(k);else{var q=Number(a.group.attr(m));a.group.animate({scaleY:1},r(h(a.options.animation),{step:function(b,c){a.group&&(k[m]=q+c.pos*(d.pos-q),a.group.attr(k))}}))}};m.prototype.init=function(b,c){a.prototype.init.apply(this,arguments);var d=this;b=d.chart;b.hasRendered&&b.series.forEach(function(b){b.type===d.type&&(b.isDirty=
|
|
522
|
+
!0)})};m.prototype.getColumnMetrics=function(){var b=this,a=b.options,d=b.xAxis,f=b.yAxis,g=d.options.reversedStacks;g=d.reversed&&!g||!d.reversed&&g;var k={},h,m=0;!1===a.grouping?m=1:b.chart.series.forEach(function(a){var c=a.yAxis,d=a.options;if(a.type===b.type&&(a.visible||!b.chart.options.chart.ignoreHiddenSeries)&&f.len===c.len&&f.pos===c.pos){if(d.stacking&&"group"!==d.stacking){h=a.stackKey;"undefined"===typeof k[h]&&(k[h]=m++);var e=k[h]}else!1!==d.grouping&&(e=m++);a.columnIndex=e}});var q=
|
|
523
|
+
Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||a.pointRange||d.closestPointRange||d.tickInterval||1),d.len),p=q*a.groupPadding,l=(q-2*p)/(m||1);a=Math.min(a.maxPointWidth||d.len,u(a.pointWidth,l*(1-2*a.pointPadding)));b.columnMetrics={width:a,offset:(l-a)/2+(p+((b.columnIndex||0)+(g?1:0))*l-q/2)*(g?-1:1),paddedWidth:l,columnCount:m};return b.columnMetrics};m.prototype.crispCol=function(b,a,d,f){var c=this.chart,e=this.borderWidth,g=-(e%2?.5:0);e=e%2?.5:1;c.inverted&&c.renderer.isVML&&(e+=
|
|
524
|
+
1);this.options.crisp&&(d=Math.round(b+d)+g,b=Math.round(b)+g,d-=b);f=Math.round(a+f)+e;g=.5>=Math.abs(a)&&.5<f;a=Math.round(a)+e;f-=a;g&&f&&(--a,f+=1);return{x:b,y:a,width:d,height:f}};m.prototype.adjustForMissingColumns=function(b,a,d,g){var c=this,e=this.options.stacking;if(!d.isNull&&1<g.columnCount){var k=0,h=0;E(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if("number"===typeof d.x&&(b=b[d.x.toString()])){var a=b.points[c.index],g=b.total;e?(a&&(k=h),b.hasValidPoints&&h++):f(a)&&
|
|
525
|
+
(k=a[1],h=g||0)}});b=(d.plotX||0)+((h-1)*g.paddedWidth+a)/2-a-k*g.paddedWidth}return b};m.prototype.translate=function(){var b=this,a=b.chart,d=b.options,f=b.dense=2>b.closestPointRange*b.xAxis.transA;f=b.borderWidth=u(d.borderWidth,f?0:1);var h=b.xAxis,m=b.yAxis,q=d.threshold,p=b.translatedThreshold=m.getThreshold(q),l=u(d.minPointLength,5),r=b.getColumnMetrics(),t=r.width,E=b.pointXOffset=r.offset,x=b.dataMin,v=b.dataMax,z=b.barW=Math.max(t,1+2*f);a.inverted&&(p-=.5);d.pointPadding&&(z=Math.ceil(z));
|
|
526
|
+
w.prototype.translate.apply(b);b.points.forEach(function(c){var e=u(c.yBottom,p),f=999+Math.abs(e),n=c.plotX||0;f=g(c.plotY,-f,m.len+f);var C=Math.min(f,e),w=Math.max(f,e)-C,D=t,y=n+E,A=z;l&&Math.abs(w)<l&&(w=l,n=!m.reversed&&!c.negative||m.reversed&&c.negative,B(q)&&B(v)&&c.y===q&&v<=q&&(m.min||0)<q&&(x!==v||(m.max||0)<=q)&&(n=!n),C=Math.abs(C-p)>l?e-l:p-(n?l:0));k(c.options.pointWidth)&&(D=A=Math.ceil(c.options.pointWidth),y-=Math.round((D-t)/2));d.centerInCategory&&(y=b.adjustForMissingColumns(y,
|
|
527
|
+
D,c,r));c.barX=y;c.pointWidth=D;c.tooltipPos=a.inverted?[g(m.len+m.pos-a.plotLeft-f,m.pos-a.plotLeft,m.len+m.pos-a.plotLeft),h.len+h.pos-a.plotTop-y-A/2,w]:[h.left-a.plotLeft+y+A/2,g(f+m.pos-a.plotTop,m.pos-a.plotTop,m.len+m.pos-a.plotTop),w];c.shapeType=b.pointClass.prototype.shapeType||"rect";c.shapeArgs=b.crispCol.apply(b,c.isNull?[y,p,A,0]:[y,C,A,w])})};m.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};m.prototype.pointAttribs=function(b,
|
|
528
|
+
a){var c=this.options,e=this.pointAttrToOptions||{},f=e.stroke||"borderColor",g=e["stroke-width"]||"borderWidth",k=b&&b.color||this.color,h=b&&b[f]||c[f]||k;e=b&&b.options.dashStyle||c.dashStyle;var m=b&&b[g]||c[g]||this[g]||0,q=u(b&&b.opacity,c.opacity,1);if(b&&this.zones.length){var p=b.getZone();k=b.options.color||p&&(p.color||b.nonZonedColor)||this.color;p&&(h=p.borderColor||h,e=p.dashStyle||e,m=p.borderWidth||m)}a&&b&&(b=x(c.states[a],b.options.states&&b.options.states[a]||{}),a=b.brightness,
|
|
529
|
+
k=b.color||"undefined"!==typeof a&&d(k).brighten(b.brightness).get()||k,h=b[f]||h,m=b[g]||m,e=b.dashStyle||e,q=u(b.opacity,q));f={fill:k,stroke:h,"stroke-width":m,opacity:q};e&&(f.dashstyle=e);return f};m.prototype.drawPoints=function(){var b=this,a=this.chart,d=b.options,f=a.renderer,g=d.animationLimit||250,k;b.points.forEach(function(c){var e=c.graphic,h=!!e,m=e&&a.pointCount<g?"animate":"attr";if(B(c.plotY)&&null!==c.y){k=c.shapeArgs;e&&c.hasNewShapeType()&&(e=e.destroy());b.enabledDataSorting&&
|
|
530
|
+
(c.startXPos=b.xAxis.reversed?-(k?k.width||0:0):b.xAxis.width);e||(c.graphic=e=f[c.shapeType](k).add(c.group||b.group))&&b.enabledDataSorting&&a.hasRendered&&a.pointCount<g&&(e.attr({x:c.startXPos}),h=!0,m="animate");if(e&&h)e[m](x(k));if(d.borderRadius)e[m]({r:d.borderRadius});a.styledMode||e[m](b.pointAttribs(c,c.selected&&"select")).shadow(!1!==c.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);e&&(e.addClass(c.getClassName(),!0),e.attr({visibility:c.visible?"inherit":"hidden"}))}else e&&
|
|
531
|
+
(c.graphic=e.destroy())})};m.prototype.drawTracker=function(){var a=this,c=a.chart,d=c.pointer,g=function(b){var a=d.getPointFromEvent(b);"undefined"!==typeof a&&(d.isDirectTouch=!0,a.onMouseOver(b))},k;a.points.forEach(function(b){k=f(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[];b.graphic&&(b.graphic.element.point=b);k.forEach(function(a){a.div?a.div.point=b:a.element.point=b})});a._hasTracking||(a.trackerGroups.forEach(function(e){if(a[e]){a[e].addClass("highcharts-tracker").on("mouseover",
|
|
532
|
+
g).on("mouseout",function(b){d.onTrackerMouseOut(b)});if(b)a[e].on("touchstart",g);!c.styledMode&&a.options.cursor&&a[e].css(p).css({cursor:a.options.cursor})}}),a._hasTracking=!0);G(this,"afterDrawTracker")};m.prototype.remove=function(){var b=this,a=b.chart;a.hasRendered&&a.series.forEach(function(a){a.type===b.type&&(a.isDirty=!0)});w.prototype.remove.apply(b,arguments)};m.defaultOptions=x(w.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,
|
|
533
|
+
cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:z.neutralColor20,borderColor:z.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:z.backgroundColor});return m}(w);r(t.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:y.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});D.registerSeriesType("column",t);"";"";return t});
|
|
534
|
+
I(a,"Core/Series/DataLabel.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=a.getDeferredAnimation,w=v.format,D=y.defined,t=y.extend,l=y.fireEvent,h=y.isArray,d=y.merge,b=y.objectEach,g=y.pick,p=y.splat,k;(function(a){function k(b,a,c,d,f){var e=this,k=this.chart,h=this.isCartesian&&k.inverted,m=this.enabledDataSorting,n=g(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),p=g(b.plotY,-9999),q=a.getBBox(),l=
|
|
535
|
+
c.rotation,u=c.align,r=k.isInsidePlot(n,Math.round(p),{inverted:h,paneCoordinates:!0,series:e}),E=function(c){m&&e.xAxis&&!x&&e.setDataLabelStartPos(b,a,f,r,c)},x="justify"===g(c.overflow,m?"none":"justify"),B=this.visible&&!1!==b.visible&&(b.series.forceDL||m&&!x||r||g(c.inside,!!this.options.stacking)&&d&&k.isInsidePlot(n,h?d.x+1:d.y+d.height-1,{inverted:h,paneCoordinates:!0,series:e}));if(B){var C=k.renderer.fontMetrics(k.styledMode?void 0:c.style.fontSize,a).b;d=t({x:h?this.yAxis.len-p:n,y:Math.round(h?
|
|
536
|
+
this.xAxis.len-n:p),width:0,height:0},d);t(c,{width:q.width,height:q.height});l?(x=!1,n=k.renderer.rotCorr(C,l),n={x:d.x+(c.x||0)+d.width/2+n.x,y:d.y+(c.y||0)+{top:0,middle:.5,bottom:1}[c.verticalAlign]*d.height},E(n),a[f?"attr":"animate"](n).attr({align:u}),E=(l+720)%360,E=180<E&&360>E,"left"===u?n.y-=E?q.height:0:"center"===u?(n.x-=q.width/2,n.y-=q.height/2):"right"===u&&(n.x-=q.width,n.y-=E?0:q.height),a.placed=!0,a.alignAttr=n):(E(d),a.align(c,void 0,d),n=a.alignAttr);x&&0<=d.height?this.justifyDataLabel(a,
|
|
537
|
+
c,n,q,d,f):g(c.crop,!0)&&(B=k.isInsidePlot(n.x,n.y,{paneCoordinates:!0,series:e})&&k.isInsidePlot(n.x+q.width,n.y+q.height,{paneCoordinates:!0,series:e}));if(c.shape&&!l)a[f?"attr":"animate"]({anchorX:h?k.plotWidth-b.plotY:b.plotX,anchorY:h?k.plotHeight-b.plotX:b.plotY})}f&&m&&(a.placed=!1);B||m&&!x||(a.hide(!0),a.placed=!1)}function f(b,a){var c=a.filter;return c?(a=c.operator,b=b[c.property],c=c.value,">"===a&&b>c||"<"===a&&b<c||">="===a&&b>=c||"<="===a&&b<=c||"=="===a&&b==c||"==="===a&&b===c?!0:
|
|
538
|
+
!1):!0}function B(){var a=this,d=a.chart,c=a.options,k=a.points,m=a.hasRendered||0,t=d.renderer,E=c.dataLabels,x,B=E.animation;B=E.defer?r(d,B,a):{defer:0,duration:0};E=u(u(d.options.plotOptions&&d.options.plotOptions.series&&d.options.plotOptions.series.dataLabels,d.options.plotOptions&&d.options.plotOptions[a.type]&&d.options.plotOptions[a.type].dataLabels),E);l(this,"drawDataLabels");if(h(E)||E.enabled||a._hasPointLabels){var v=a.plotGroup("dataLabelsGroup","data-labels",m?"inherit":"hidden",E.zIndex||
|
|
539
|
+
6);v.attr({opacity:+m});!m&&(m=a.dataLabelsGroup)&&(a.visible&&v.show(!0),m[c.animation?"animate":"attr"]({opacity:1},B));k.forEach(function(e){x=p(u(E,e.dlOptions||e.options&&e.options.dataLabels));x.forEach(function(k,h){var m=k.enabled&&(!e.isNull||e.dataLabelOnNull)&&f(e,k),n=e.connectors?e.connectors[h]:e.connector,p=e.dataLabels?e.dataLabels[h]:e.dataLabel,q=g(k.distance,e.labelDistance),l=!p;if(m){var u=e.getLabelConfig();var r=g(k[e.formatPrefix+"Format"],k.format);u=D(r)?w(r,u,d):(k[e.formatPrefix+
|
|
540
|
+
"Formatter"]||k.formatter).call(u,k);r=k.style;var E=k.rotation;d.styledMode||(r.color=g(k.color,r.color,a.color,A.neutralColor100),"contrast"===r.color?(e.contrastColor=t.getContrast(e.color||a.color),r.color=!D(q)&&k.inside||0>q||c.stacking?e.contrastColor:A.neutralColor100):delete e.contrastColor,c.cursor&&(r.cursor=c.cursor));var x={r:k.borderRadius||0,rotation:E,padding:k.padding,zIndex:1};d.styledMode||(x.fill=k.backgroundColor,x.stroke=k.borderColor,x["stroke-width"]=k.borderWidth);b(x,function(b,
|
|
541
|
+
a){"undefined"===typeof b&&delete x[a]})}!p||m&&D(u)?m&&D(u)&&(p?x.text=u:(e.dataLabels=e.dataLabels||[],p=e.dataLabels[h]=E?t.text(u,0,-9999,k.useHTML).addClass("highcharts-data-label"):t.label(u,0,-9999,k.shape,null,null,k.useHTML,null,"data-label"),h||(e.dataLabel=p),p.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(k.className||"")+(k.useHTML?" highcharts-tracker":""))),p.options=k,p.attr(x),d.styledMode||p.css(r).shadow(k.shadow),p.added||p.add(v),k.textPath&&!k.useHTML&&(p.setTextPath(e.getDataLabelPath&&
|
|
542
|
+
e.getDataLabelPath(p)||e.graphic,k.textPath),e.dataLabelPath&&!k.textPath.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),a.alignDataLabel(e,p,k,null,l)):(e.dataLabel=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(1===e.dataLabels.length?delete e.dataLabels:delete e.dataLabels[h]),h||delete e.dataLabel,n&&(e.connector=e.connector.destroy(),e.connectors&&(1===e.connectors.length?delete e.connectors:delete e.connectors[h])))})})}l(this,"afterDrawDataLabels")}function x(b,a,c,d,f,g){var e=this.chart,
|
|
543
|
+
k=a.align,h=a.verticalAlign,m=b.box?0:b.padding||0,n=a.x;n=void 0===n?0:n;var p=a.y;p=void 0===p?0:p;var q=(c.x||0)+m;if(0>q){"right"===k&&0<=n?(a.align="left",a.inside=!0):n-=q;var l=!0}q=(c.x||0)+d.width-m;q>e.plotWidth&&("left"===k&&0>=n?(a.align="right",a.inside=!0):n+=e.plotWidth-q,l=!0);q=c.y+m;0>q&&("bottom"===h&&0<=p?(a.verticalAlign="top",a.inside=!0):p-=q,l=!0);q=(c.y||0)+d.height-m;q>e.plotHeight&&("top"===h&&0>=p?(a.verticalAlign="bottom",a.inside=!0):p+=e.plotHeight-q,l=!0);l&&(a.x=n,
|
|
544
|
+
a.y=p,b.placed=!g,b.align(a,void 0,f));return l}function u(b,a){var c=[],e;if(h(b)&&!h(a))c=b.map(function(b){return d(b,a)});else if(h(a)&&!h(b))c=a.map(function(a){return d(b,a)});else if(h(b)||h(a))for(e=Math.max(b.length,a.length);e--;)c[e]=d(b[e],a[e]);else c=d(b,a);return c}function E(b,a,c,d,f){var e=this.chart,g=e.inverted,k=this.xAxis,h=k.reversed,m=g?a.height/2:a.width/2;b=(b=b.pointWidth)?b/2:0;a.startXPos=g?f.x:h?-m-b:k.width-m+b;a.startYPos=g?h?this.yAxis.height-m+b:-m-b:f.y;d?"hidden"===
|
|
545
|
+
a.visibility&&(a.show(),a.attr({opacity:0}).animate({opacity:1})):a.attr({opacity:1}).animate({opacity:0},void 0,a.hide);e.hasRendered&&(c&&a.attr({x:a.startXPos,y:a.startYPos}),a.placed=!0)}var m=[];a.compose=function(b){if(-1===m.indexOf(b)){var a=b.prototype;m.push(b);a.alignDataLabel=k;a.drawDataLabels=B;a.justifyDataLabel=x;a.setDataLabelStartPos=E}}})(k||(k={}));"";return k});I(a,"Series/Column/ColumnDataLabel.js",[a["Core/Series/DataLabel.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],
|
|
546
|
+
function(a,v,A){var r=v.series,z=A.merge,w=A.pick,D;(function(t){function l(a,b,g,h,k){var d=this.chart.inverted,p=a.series,f=a.dlBox||a.shapeArgs,l=w(a.below,a.plotY>w(this.translatedThreshold,p.yAxis.len)),t=w(g.inside,!!this.options.stacking);f&&(h=z(f),0>h.y&&(h.height+=h.y,h.y=0),f=h.y+h.height-p.yAxis.len,0<f&&f<h.height&&(h.height-=f),d&&(h={x:p.yAxis.len-h.y-h.height,y:p.xAxis.len-h.x-h.width,width:h.height,height:h.width}),t||(d?(h.x+=l?0:h.width,h.width=0):(h.y+=l?h.height:0,h.height=0)));
|
|
547
|
+
g.align=w(g.align,!d||t?"center":l?"right":"left");g.verticalAlign=w(g.verticalAlign,d||t?"middle":l?"top":"bottom");r.prototype.alignDataLabel.call(this,a,b,g,h,k);g.inside&&a.contrastColor&&b.css({color:a.contrastColor})}var h=[];t.compose=function(d){a.compose(r);-1===h.indexOf(d)&&(h.push(d),d.prototype.alignDataLabel=l)}})(D||(D={}));return D});I(a,"Series/Bar/BarSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&
|
|
548
|
+
this.__extends||function(){var a=function(r,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(r,l)};return function(r,l){function h(){this.constructor=r}a(r,l);r.prototype=null===l?Object.create(l):(h.prototype=l.prototype,new h)}}(),z=A.extend,w=A.merge;A=function(v){function t(){var a=null!==v&&v.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(t,v);
|
|
549
|
+
t.defaultOptions=w(a.defaultOptions,{});return t}(a);z(A.prototype,{inverted:!0});v.registerSeriesType("bar",A);"";return A});I(a,"Series/Scatter/ScatterSeries.js",[a["Series/Column/ColumnSeries.js"],a["Series/Line/LineSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&
|
|
550
|
+
(b[d]=a[d])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=y.addEvent,D=y.extend,t=y.merge;y=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}r(h,a);h.prototype.applyJitter=function(){var a=this,b=this.options.jitter,g=this.points.length;b&&this.points.forEach(function(d,k){["x","y"].forEach(function(h,p){var f="plot"+
|
|
551
|
+
h.toUpperCase();if(b[h]&&!d.isNull){var l=a[h+"Axis"];var r=b[h]*l.transA;if(l&&!l.isLog){var u=Math.max(0,d[f]-r);l=Math.min(l.len,d[f]+r);p=1E4*Math.sin(k+p*g);d[f]=u+(l-u)*(p-Math.floor(p));"x"===h&&(d.clientX=d.plotX)}}})})};h.prototype.drawGraph=function(){this.options.lineWidth?a.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};h.defaultOptions=t(v.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',
|
|
552
|
+
pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return h}(v);D(y.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});w(y,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",y);"";return y});I(a,"Mixins/CenteredSeries.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,v,A){var r=A.isNumber,z=A.pick,
|
|
553
|
+
w=A.relativeLength,D=a.deg2rad;return a.CenteredSeriesMixin={getCenter:function(){var a=this.options,l=this.chart,h=2*(a.slicedOffset||0),d=l.plotWidth-2*h,b=l.plotHeight-2*h,g=a.center,p=Math.min(d,b),k=a.size,r=a.innerSize||0;"string"===typeof k&&(k=parseFloat(k));"string"===typeof r&&(r=parseFloat(r));a=[z(g[0],"50%"),z(g[1],"50%"),z(k&&0>k?void 0:a.size,"100%"),z(r&&0>r?void 0:a.innerSize||0,"0%")];!l.angular||this instanceof v||(a[3]=0);for(g=0;4>g;++g)k=a[g],l=2>g||2===g&&/%$/.test(k),a[g]=
|
|
554
|
+
w(k,[d,b,p,a[2]][g])+(l?h:0);a[3]>a[2]&&(a[3]=a[2]);return a},getStartAndEndRadians:function(a,l){a=r(a)?a:0;l=r(l)&&l>a&&360>l-a?l:a+360;return{start:D*(a+-90),end:D*(l+-90)}}}});I(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&
|
|
555
|
+
(b[d]=a[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),z=a.setAnimation,w=A.addEvent,D=A.defined;a=A.extend;var t=A.isNumber,l=A.pick,h=A.relativeLength;v=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.labelDistance=void 0;b.options=void 0;b.series=void 0;return b}r(b,a);b.prototype.getConnectorPath=function(){var b=this.labelPosition,a=this.series.options.dataLabels,
|
|
556
|
+
d=this.connectorShapes,h=a.connectorShape;d[h]&&(h=d[h]);return h.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,a)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(b){var a=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(a.x,a.y,a.r+b,a.r+b,{innerR:a.r-1,start:a.start,end:a.end})};b.prototype.init=function(){var b=this;a.prototype.init.apply(this,
|
|
557
|
+
arguments);this.name=l(this.name,"Slice");var d=function(a){b.slice("select"===a.type)};w(this,"select",d);w(this,"unselect",d);return this};b.prototype.isValid=function(){return t(this.y)&&0<=this.y};b.prototype.setVisible=function(b,a){var d=this,g=this.series,h=g.chart,f=g.options.ignoreHiddenPoint;a=l(a,f);b!==this.visible&&(this.visible=this.options.visible=b="undefined"===typeof b?!this.visible:b,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(d[a])d[a][b?
|
|
558
|
+
"show":"hide"](b)}),this.legendItem&&h.legend.colorizeItem(this,b),b||"hover"!==this.state||this.setState(""),f&&(g.isDirty=!0),a&&h.redraw())};b.prototype.slice=function(b,a,d){var g=this.series;z(d,g.chart);l(a,!0);this.sliced=this.options.sliced=D(b)?b:!this.sliced;g.options.data[g.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return b}(v);a(v.prototype,{connectorShapes:{fixedOffset:function(a,
|
|
559
|
+
b,g){var d=b.breakAt;b=b.touchingSliceAt;return[["M",a.x,a.y],g.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*d.x-b.x,2*d.y-b.y,d.x,d.y]:["L",d.x,d.y],["L",b.x,b.y]]},straight:function(a,b){b=b.touchingSliceAt;return[["M",a.x,a.y],["L",b.x,b.y]]},crookedLine:function(a,b,g){b=b.touchingSliceAt;var d=this.series,k=d.center[0],l=d.chart.plotWidth,r=d.chart.plotLeft;d=a.alignment;var f=this.shapeArgs.r;g=h(g.crookDistance,1);l="left"===d?k+f+(l+r-k-f)*(1-g):r+(k-f)*g;g=["L",l,a.y];k=!0;if("left"===
|
|
560
|
+
d?l>a.x||l<b.x:l<a.x||l>b.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(g);a.push(["L",b.x,b.y]);return a}}});return v});I(a,"Series/Pie/PieSeries.js",[a["Mixins/CenteredSeries.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Series/Pie/PiePoint.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l,h){var d=this&&this.__extends||function(){var b=
|
|
561
|
+
function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),b=a.getStartAndEndRadians;A=A.noop;var g=h.clamp,p=h.extend,k=h.fireEvent,r=h.merge,G=h.pick,f=h.relativeLength;h=function(a){function h(){var b=null!==a&&a.apply(this,arguments)||this;b.center=
|
|
562
|
+
void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}d(h,a);h.prototype.animate=function(b){var a=this,d=a.points,f=a.startAngleRad;b||d.forEach(function(b){var c=b.graphic,d=b.shapeArgs;c&&d&&(c.attr({r:G(b.startR,a.center&&a.center[3]/2),start:f,end:f}),c.animate({r:d.r,start:d.start,end:d.end},a.options.animation))})};h.prototype.drawEmpty=function(){var b=this.startAngleRad,a=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var f=this.center[0];
|
|
563
|
+
var e=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,e,this.center[1]/2,0,b,a).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:l.arc(f,e,this.center[2]/2,0,{start:b,end:a,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",stroke:d.color||z.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};h.prototype.drawPoints=function(){var b=this.chart.renderer;this.points.forEach(function(a){a.graphic&&
|
|
564
|
+
a.hasNewShapeType()&&(a.graphic=a.graphic.destroy());a.graphic||(a.graphic=b[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})};h.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};h.prototype.getX=function(b,a,d){var f=this.center,e=this.radii?this.radii[d.index]||0:f[2]/2;b=Math.asin(g((b-f[1])/(e+d.labelDistance),-1,1));return f[0]+(a?-1:1)*Math.cos(b)*(e+d.labelDistance)+(0<d.labelDistance?(a?-1:1)*this.options.dataLabels.padding:
|
|
565
|
+
0)};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.redrawPoints=function(){var b=this,a=b.chart,d=a.renderer,f=b.options.shadow,e,c,g,k;this.drawEmpty();!f||b.shadowGroup||a.styledMode||(b.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(b.group));b.points.forEach(function(h){var m={};c=h.graphic;if(!h.isNull&&c){var n=void 0;k=h.shapeArgs;e=h.getTranslate();a.styledMode||(n=h.shadowGroup,f&&!n&&(n=h.shadowGroup=d.g("shadow").add(b.shadowGroup)),n&&n.attr(e),g=b.pointAttribs(h,
|
|
566
|
+
h.selected&&"select"));h.delayedRendering?(c.setRadialReference(b.center).attr(k).attr(e),a.styledMode||c.attr(g).attr({"stroke-linejoin":"round"}).shadow(f,n),h.delayedRendering=!1):(c.setRadialReference(b.center),a.styledMode||r(!0,m,g),r(!0,m,k,e),c.animate(m));c.attr({visibility:h.visible?"inherit":"hidden"});c.addClass(h.getClassName(),!0)}else c&&(h.graphic=c.destroy())})};h.prototype.sortByAngle=function(b,a){b.sort(function(b,d){return"undefined"!==typeof b.angle&&(d.angle-b.angle)*a})};h.prototype.translate=
|
|
567
|
+
function(a){this.generatePoints();var d=this.options,g=d.slicedOffset,h=g+(d.borderWidth||0),e=b(d.startAngle,d.endAngle),c=this.startAngleRad=e.start;e=(this.endAngleRad=e.end)-c;var n=this.points,l=d.dataLabels.distance;d=d.ignoreHiddenPoint;var p=n.length,u,r=0;a||(this.center=a=this.getCenter());for(u=0;u<p;u++){var t=n[u];var x=c+r*e;!t.isValid()||d&&!t.visible||(r+=t.percentage/100);var B=c+r*e;var w={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*x)/1E3,end:Math.round(1E3*B)/1E3};
|
|
568
|
+
t.shapeType="arc";t.shapeArgs=w;t.labelDistance=G(t.options.dataLabels&&t.options.dataLabels.distance,l);t.labelDistance=f(t.labelDistance,w.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,t.labelDistance);B=(B+x)/2;B>1.5*Math.PI?B-=2*Math.PI:B<-Math.PI/2&&(B+=2*Math.PI);t.slicedTranslation={translateX:Math.round(Math.cos(B)*g),translateY:Math.round(Math.sin(B)*g)};w=Math.cos(B)*a[2]/2;var v=Math.sin(B)*a[2]/2;t.tooltipPos=[a[0]+.7*w,a[1]+.7*v];t.half=B<-Math.PI/2||B>Math.PI/2?1:0;t.angle=
|
|
569
|
+
B;x=Math.min(h,t.labelDistance/5);t.labelPosition={natural:{x:a[0]+w+Math.cos(B)*t.labelDistance,y:a[1]+v+Math.sin(B)*t.labelDistance},"final":{},alignment:0>t.labelDistance?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+w+Math.cos(B)*x,y:a[1]+v+Math.sin(B)*x},touchingSliceAt:{x:a[0]+w,y:a[1]+v}}}}k(this,"afterTranslate")};h.prototype.updateTotals=function(){var b=this.points,a=b.length,d=this.options.ignoreHiddenPoint,f,e=0;for(f=0;f<a;f++){var c=b[f];!c.isValid()||d&&!c.visible||
|
|
570
|
+
(e+=c.y)}this.total=e;for(f=0;f<a;f++)c=b[f],c.percentage=0<e&&(c.visible||!d)?c.y/e*100:0,c.total=e};h.defaultOptions=r(D.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,
|
|
571
|
+
slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:z.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return h}(D);p(h.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:y.drawRectangle,drawTracker:v.prototype.drawTracker,getCenter:a.getCenter,getSymbol:A,isCartesian:!1,noSharedTooltip:!0,pointAttribs:v.prototype.pointAttribs,pointClass:w,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]});t.registerSeriesType("pie",
|
|
572
|
+
h);"";return h});I(a,"Series/Pie/PieDataLabel.js",[a["Core/Series/DataLabel.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=v.noop,t=y.distribute,l=z.series,h=w.arrayMax,d=w.clamp,b=w.defined,g=w.merge,p=w.pick,k=w.relativeLength,J;(function(w){function f(){var a=this,d=a.data,e=a.chart,c=a.options.dataLabels||{},f=c.connectorPadding,k=e.plotWidth,u=e.plotHeight,r=e.plotLeft,
|
|
573
|
+
x=Math.round(e.chartWidth/3),E=a.center,B=E[2]/2,w=E[1],v=[[],[]],z=[0,0,0,0],D=a.dataLabelPositioners,y,G,J,I,Z,K,U,P,X,V,Y,Q;a.visible&&(c.enabled||a._hasPointLabels)&&(d.forEach(function(b){b.dataLabel&&b.visible&&b.dataLabel.shortened&&(b.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),b.dataLabel.shortened=!1)}),l.prototype.drawDataLabels.apply(a),d.forEach(function(a){a.dataLabel&&(a.visible?(v[a.half].push(a),a.dataLabel._pos=null,!b(c.style.width)&&!b(a.options.dataLabels&&
|
|
574
|
+
a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:Math.round(.7*x)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),v.forEach(function(d,g){var h=d.length,m=[],n;if(h){a.sortByAngle(d,g-.5);if(0<a.maxLabelDistance){var l=Math.max(0,w-B-a.maxLabelDistance);var q=Math.min(w+B+a.maxLabelDistance,e.plotHeight);d.forEach(function(b){0<b.labelDistance&&b.dataLabel&&
|
|
575
|
+
(b.top=Math.max(0,w-B-b.labelDistance),b.bottom=Math.min(w+B+b.labelDistance,e.plotHeight),n=b.dataLabel.getBBox().height||21,b.distributeBox={target:b.labelPosition.natural.y-b.top+n/2,size:n,rank:b.y},m.push(b.distributeBox))});l=q+n-l;t(m,l,l/5)}for(Y=0;Y<h;Y++){y=d[Y];K=y.labelPosition;I=y.dataLabel;V=!1===y.visible?"hidden":"inherit";X=l=K.natural.y;m&&b(y.distributeBox)&&("undefined"===typeof y.distributeBox.pos?V="hidden":(U=y.distributeBox.size,X=D.radialDistributionY(y)));delete y.positionIndex;
|
|
576
|
+
if(c.justify)P=D.justify(y,B,E);else switch(c.alignTo){case "connectors":P=D.alignToConnectors(d,g,k,r);break;case "plotEdges":P=D.alignToPlotEdges(I,g,k,r);break;default:P=D.radialDistributionX(a,y,X,l)}I._attr={visibility:V,align:K.alignment};Q=y.options.dataLabels||{};I._pos={x:P+p(Q.x,c.x)+({left:f,right:-f}[K.alignment]||0),y:X+p(Q.y,c.y)-10};K.final.x=P;K.final.y=X;p(c.crop,!0)&&(Z=I.getBBox().width,l=null,P-Z<f&&1===g?(l=Math.round(Z-P+f),z[3]=Math.max(l,z[3])):P+Z>k-f&&0===g&&(l=Math.round(P+
|
|
577
|
+
Z-k+f),z[1]=Math.max(l,z[1])),0>X-U/2?z[0]=Math.max(Math.round(-X+U/2),z[0]):X+U/2>u&&(z[2]=Math.max(Math.round(X+U/2-u),z[2])),I.sideOverflow=l)}}}),0===h(z)||this.verifyDataLabelOverflow(z))&&(this.placeDataLabels(),this.points.forEach(function(b){Q=g(c,b.options.dataLabels);if(G=p(Q.connectorWidth,1)){var d;J=b.connector;if((I=b.dataLabel)&&I._pos&&b.visible&&0<b.labelDistance){V=I._attr.visibility;if(d=!J)b.connector=J=e.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+
|
|
578
|
+
b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),e.styledMode||J.attr({"stroke-width":G,stroke:Q.connectorColor||b.color||A.neutralColor60});J[d?"attr":"animate"]({d:b.getConnectorPath()});J.attr("visibility",V)}else J&&(b.connector=J.destroy())}}))}function B(){this.points.forEach(function(b){var a=b.dataLabel,d;a&&b.visible&&((d=a._pos)?(a.sideOverflow&&(a._attr.width=Math.max(a.getBBox().width-a.sideOverflow,0),a.css({width:a._attr.width+"px",textOverflow:(this.options.dataLabels.style||
|
|
579
|
+
{}).textOverflow||"ellipsis"}),a.shortened=!0),a.attr(a._attr),a[a.moved?"animate":"attr"](d),a.moved=!0):a&&a.attr({y:-9999}));delete b.distributeBox},this)}function x(b){var a=this.center,e=this.options,c=e.center,f=e.minSize||80,g=null!==e.size;if(!g){if(null!==c[0])var h=Math.max(a[2]-Math.max(b[1],b[3]),f);else h=Math.max(a[2]-b[1]-b[3],f),a[0]+=(b[3]-b[1])/2;null!==c[1]?h=d(h,f,a[2]-Math.max(b[0],b[2])):(h=d(h,f,a[2]-b[0]-b[2]),a[1]+=(b[0]-b[2])/2);h<a[2]?(a[2]=h,a[3]=Math.min(k(e.innerSize||
|
|
580
|
+
0,h),h),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):g=!0}return g}var u=[],E={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,a,d,c){return b.getX(d<a.top+2||d>a.bottom-2?c:d,a.half,a)},justify:function(b,a,d){return d[0]+(b.half?-1:1)*(a+b.labelDistance)},alignToPlotEdges:function(b,a,d,c){b=b.getBBox().width;return a?b+c:d-b-c},alignToConnectors:function(b,a,d,c){var e=0,f;b.forEach(function(b){f=b.dataLabel.getBBox().width;f>e&&
|
|
581
|
+
(e=f)});return a?e+c:d-e-c}};w.compose=function(b){a.compose(l);-1===u.indexOf(b)&&(u.push(b),b=b.prototype,b.dataLabelPositioners=E,b.alignDataLabel=r,b.drawDataLabels=f,b.placeDataLabels=B,b.verifyDataLabelOverflow=x)}})(J||(J={}));return J});I(a,"Extensions/OverlappingDataLabels.js",[a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,v){function r(a,d){var b=!1;if(a){var g=a.newOpacity;a.oldOpacity!==g&&(a.alignAttr&&a.placed?(a[g?"removeClass":"addClass"]("highcharts-data-label-hidden"),
|
|
582
|
+
b=!0,a.alignAttr.opacity=g,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){d.styledMode||a.css({pointerEvents:g?"auto":"none"})}),z(d,"afterHideOverlappingLabel")):a.attr({opacity:g}));a.isOld=!0}return b}var y=v.addEvent,z=v.fireEvent,w=v.isArray,D=v.isNumber,t=v.objectEach,l=v.pick;y(a,"render",function(){var a=this,d=[];(this.labelCollectors||[]).forEach(function(b){d=d.concat(b())});(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&
|
|
583
|
+
t(b.stacking.stacks,function(b){t(b,function(b){b.label&&"hidden"!==b.label.visibility&&d.push(b.label)})})});(this.series||[]).forEach(function(b){var g=b.options.dataLabels;b.visible&&(!1!==g.enabled||b._hasPointLabels)&&(g=function(b){return b.forEach(function(b){b.visible&&(w(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(g){var h=g.options;g.labelrank=l(h.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height);h.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,r(g,
|
|
584
|
+
a)):d.push(g)})})},g(b.nodes||[]),g(b.points))});this.hideOverlappingLabels(d)});a.prototype.hideOverlappingLabels=function(a){var d=this,b=a.length,g=d.renderer,h,k,l,t=!1;var f=function(b){var a,d=b.box?0:b.padding||0,f=a=0,e;if(b&&(!b.alignAttr||b.placed)){var c=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var h=b.parentGroup;b.width||(a=b.getBBox(),b.width=a.width,b.height=a.height,a=g.fontMetrics(null,b.element).h);var k=b.width-2*d;(e={left:"0",center:"0.5",right:"1"}[b.alignValue])?f=+e*k:D(b.x)&&
|
|
585
|
+
Math.round(b.x)!==b.translateX&&(f=b.x-b.translateX);return{x:c.x+(h.translateX||0)+d-(f||0),y:c.y+(h.translateY||0)+d-a,width:b.width-2*d,height:b.height-2*d}}};for(k=0;k<b;k++)if(h=a[k])h.oldOpacity=h.opacity,h.newOpacity=1,h.absoluteBox=f(h);a.sort(function(b,a){return(a.labelrank||0)-(b.labelrank||0)});for(k=0;k<b;k++){var B=(f=a[k])&&f.absoluteBox;for(h=k+1;h<b;++h){var x=(l=a[h])&&l.absoluteBox;!B||!x||f===l||0===f.newOpacity||0===l.newOpacity||x.x>=B.x+B.width||x.x+x.width<=B.x||x.y>=B.y+B.height||
|
|
586
|
+
x.y+x.height<=B.y||((f.labelrank<l.labelrank?f:l).newOpacity=0)}}a.forEach(function(b){r(b,d)&&(t=!0)});t&&z(d,"afterHideAllOverlappingLabels")}});I(a,"Core/Responsive.js",[a["Core/Utilities.js"]],function(a){var r=a.extend,A=a.find,y=a.isArray,z=a.isObject,w=a.merge,D=a.objectEach,t=a.pick,l=a.splat,h=a.uniqueKey,d;(function(b){var a=[];b.compose=function(b){-1===a.indexOf(b)&&(a.push(b),r(b.prototype,d.prototype));return b};var d=function(){function b(){}b.prototype.currentOptions=function(b){function a(b,
|
|
587
|
+
f,g,h){var k;D(b,function(b,c){if(!h&&-1<d.collectionsWithUpdate.indexOf(c)&&f[c])for(b=l(b),g[c]=[],k=0;k<Math.max(b.length,f[c].length);k++)f[c][k]&&(void 0===b[k]?g[c][k]=f[c][k]:(g[c][k]={},a(b[k],f[c][k],g[c][k],h+1)));else z(b)?(g[c]=y(b)?[]:{},a(b,f[c]||{},g[c],h+1)):g[c]="undefined"===typeof f[c]?null:f[c]})}var d=this,g={};a(b,this.options,g,0);return g};b.prototype.matchResponsiveRule=function(b,a){var d=b.condition;(d.callback||function(){return this.chartWidth<=t(d.maxWidth,Number.MAX_VALUE)&&
|
|
588
|
+
this.chartHeight<=t(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=t(d.minWidth,0)&&this.chartHeight>=t(d.minHeight,0)}).call(this)&&a.push(b._id)};b.prototype.setResponsive=function(b,a){var d=this,g=this.options.responsive,k=this.currentResponsive,l=[];!a&&g&&g.rules&&g.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=h());d.matchResponsiveRule(b,l)},this);a=w.apply(void 0,l.map(function(b){return A((g||{}).rules||[],function(a){return a._id===b})}).map(function(b){return b&&b.chartOptions}));
|
|
589
|
+
a.isResponsiveOptions=!0;l=l.toString()||void 0;l!==(k&&k.ruleIds)&&(k&&this.update(k.undoOptions,b,!0),l?(k=this.currentOptions(a),k.isResponsiveOptions=!0,this.currentResponsive={ruleIds:l,mergedOptions:a,undoOptions:k},this.update(a,b,!0)):this.currentResponsive=void 0)};return b}()})(d||(d={}));"";"";return d});I(a,"masters/highcharts.src.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/DefaultOptions.js"],a["Core/Animation/Fx.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],
|
|
590
|
+
a["Core/FormatUtilities.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Renderer/HTML/HTMLElement.js"],a["Core/Renderer/HTML/HTMLRenderer.js"],a["Core/Axis/Axis.js"],a["Core/Axis/DateTimeAxis.js"],a["Core/Axis/LogarithmicAxis.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Tooltip.js"],a["Core/Series/Point.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Legend/Legend.js"],a["Core/Chart/Chart.js"],
|
|
591
|
+
a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Column/ColumnSeries.js"],a["Series/Column/ColumnDataLabel.js"],a["Series/Pie/PieSeries.js"],a["Series/Pie/PieDataLabel.js"],a["Core/Series/DataLabel.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,v,A,y,z,w,D,t,l,h,d,b,g,p,k,J,G,f,B,x,u,E,m,q,e,c,n,C,H,L,F,I,S){a.animate=z.animate;a.animObject=z.animObject;a.getDeferredAnimation=z.getDeferredAnimation;a.setAnimation=z.setAnimation;a.stop=z.stop;
|
|
592
|
+
a.timers=y.timers;a.AST=w;a.Axis=g;a.Chart=m;a.chart=m.chart;a.Fx=y;a.Legend=E;a.PlotLineOrBand=J;a.Point=B;a.Pointer=u.isRequired()?u:x;a.Series=q;a.SVGElement=l;a.SVGRenderer=h;a.Tick=G;a.Time=S;a.Tooltip=f;a.Color=I;a.color=I.parse;b.compose(h);d.compose(l);a.defaultOptions=A.defaultOptions;a.getOptions=A.getOptions;a.time=A.defaultTime;a.setOptions=A.setOptions;a.dateFormat=D.dateFormat;a.format=D.format;a.numberFormat=D.numberFormat;a.addEvent=v.addEvent;a.arrayMax=v.arrayMax;a.arrayMin=v.arrayMin;
|
|
593
|
+
a.attr=v.attr;a.clearTimeout=v.clearTimeout;a.correctFloat=v.correctFloat;a.createElement=v.createElement;a.css=v.css;a.defined=v.defined;a.destroyObjectProperties=v.destroyObjectProperties;a.discardElement=v.discardElement;a.distribute=t.distribute;a.erase=v.erase;a.error=v.error;a.extend=v.extend;a.extendClass=v.extendClass;a.find=v.find;a.fireEvent=v.fireEvent;a.getMagnitude=v.getMagnitude;a.getStyle=v.getStyle;a.inArray=v.inArray;a.isArray=v.isArray;a.isClass=v.isClass;a.isDOMElement=v.isDOMElement;
|
|
594
|
+
a.isFunction=v.isFunction;a.isNumber=v.isNumber;a.isObject=v.isObject;a.isString=v.isString;a.keys=v.keys;a.merge=v.merge;a.normalizeTickInterval=v.normalizeTickInterval;a.objectEach=v.objectEach;a.offset=v.offset;a.pad=v.pad;a.pick=v.pick;a.pInt=v.pInt;a.relativeLength=v.relativeLength;a.removeEvent=v.removeEvent;a.seriesType=e.seriesType;a.splat=v.splat;a.stableSort=v.stableSort;a.syncTimeout=v.syncTimeout;a.timeUnits=v.timeUnits;a.uniqueKey=v.uniqueKey;a.useSerialIds=v.useSerialIds;a.wrap=v.wrap;
|
|
595
|
+
n.compose(c);L.compose(q);p.compose(g);k.compose(g);H.compose(C);J.compose(g);F.compose(m);return a});I(a,"Core/Axis/MapAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,v){var r=v.addEvent,y=v.pick,z=function(){return function(a){this.axis=a}}();v=function(){function a(){}a.compose=function(a){a.keepProps.push("mapAxis");r(a,"init",function(){this.mapAxis||(this.mapAxis=new z(this))});r(a,"getSeriesExtremes",function(){if(this.mapAxis){var a=[];this.isXAxis&&(this.series.forEach(function(l,
|
|
596
|
+
h){l.useMapGeometry&&(a[h]=l.xData,l.xData=[])}),this.mapAxis.seriesXData=a)}});r(a,"afterGetSeriesExtremes",function(){if(this.mapAxis){var a=this.mapAxis.seriesXData||[],l;if(this.isXAxis){var h=y(this.dataMin,Number.MAX_VALUE);var d=y(this.dataMax,-Number.MAX_VALUE);this.series.forEach(function(b,g){b.useMapGeometry&&(h=Math.min(h,y(b.minX,h)),d=Math.max(d,y(b.maxX,d)),b.xData=a[g],l=!0)});l&&(this.dataMin=h,this.dataMax=d);this.mapAxis.seriesXData=void 0}}});r(a,"afterSetAxisTranslation",function(){if(this.mapAxis){var a=
|
|
597
|
+
this.chart,l=a.plotWidth/a.plotHeight;a=a.xAxis[0];var h;"yAxis"===this.coll&&"undefined"!==typeof a.transA&&this.series.forEach(function(a){a.preserveAspectRatio&&(h=!0)});if(h&&(this.transA=a.transA=Math.min(this.transA,a.transA),l/=(a.max-a.min)/(this.max-this.min),l=1>l?this:a,a=(l.max-l.min)*l.transA,l.mapAxis.pixelPadding=l.len-a,l.minPixelPadding=l.mapAxis.pixelPadding/2,a=l.mapAxis.fixTo)){a=a[1]-l.toValue(a[0],!0);a*=l.transA;if(Math.abs(a)>l.minPixelPadding||l.min===l.dataMin&&l.max===l.dataMax)a=
|
|
598
|
+
0;l.minPixelPadding-=a}}});r(a,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return a}();v.compose(a);return v});I(a,"Mixins/ColorSeries.js",[],function(){return{colorPointMixin:{setVisible:function(a){var r=this,A=a?"show":"hide";r.visible=r.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(r[a])r[a][A]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",translateColors:function(){var a=this,v=this.options.nullColor,A=this.colorAxis,y=this.colorKey;
|
|
599
|
+
(this.data.length?this.data:this.points).forEach(function(r){var w=r.getNestedProperty(y);(w=r.options.color||(r.isNull||null===r.value?v:A&&"undefined"!==typeof w?A.toColor(w,r):r.color||a.color))&&r.color!==w&&(r.color=w,"point"===a.options.legendType&&r.legendItem&&a.chart.legend.colorizeItem(r,r.visible))})}}}});I(a,"Core/Axis/Color/ColorAxisComposition.js",[a["Core/Color/Color.js"],a["Mixins/ColorSeries.js"],a["Core/Utilities.js"]],function(a,v,A){var r=a.parse,z=v.colorPointMixin,w=v.colorSeriesMixin,
|
|
600
|
+
D=A.addEvent,t=A.extend,l=A.merge,h=A.pick,d=A.splat,b;(function(a){function b(){var a=this,b=this.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=d(b.colorAxis),b.colorAxis.forEach(function(b,c){b.index=c;new q(a,b)}))}function g(a){var b=this,d=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))},e=[],f,g;(this.chart.colorAxis||[]).forEach(function(a){(f=a.options)&&f.showInLegend&&(f.dataClasses&&f.visible?e=e.concat(a.getDataClassLegendSymbols()):
|
|
601
|
+
f.visible&&e.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||f.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){d(a)}):d(a)}))});for(g=e.length;g--;)a.allItems.unshift(e[g])}function v(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function y(){var a=this.chart.colorAxis;a&&a.forEach(function(a,b,d){a.update({},d)})}function f(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}
|
|
602
|
+
function B(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function x(a){var b=a.prototype.createAxis;a.prototype.createAxis=function(a,c){if("colorAxis"!==a)return b.apply(this,arguments);var d=new q(this,l(c.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0});h(c.redraw,!0)&&this.redraw(c.animation);return d}}function u(){this.elem.attr("fill",
|
|
603
|
+
r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}function E(){this.elem.attr("stroke",r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}var m=[],q;a.compose=function(a,c,d,h,k){q||(q=a);-1===m.indexOf(c)&&(m.push(c),a=c.prototype,a.collectionsWithUpdate.push("colorAxis"),a.collectionsWithInit.colorAxis=[a.addColorAxis],D(c,"afterGetAxes",b),x(c));-1===m.indexOf(d)&&(m.push(d),c=d.prototype,c.fillSetter=u,c.strokeSetter=E);-1===m.indexOf(h)&&(m.push(h),D(h,"afterGetAllItems",g),D(h,"afterColorizeItem",
|
|
604
|
+
v),D(h,"afterUpdate",y));-1===m.indexOf(k)&&(m.push(k),t(k.prototype,w),t(k.prototype.pointClass.prototype,z),D(k,"afterTranslate",f),D(k,"bindAxes",B))}})(b||(b={}));return b});I(a,"Core/Axis/Color/ColorAxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:a.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:a.highlightColor10,
|
|
605
|
+
maxColor:a.highlightColor100,tickLength:5,showInLegend:!0}});I(a,"Core/Axis/Color/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Color/Color.js"],a["Core/Axis/Color/ColorAxisComposition.js"],a["Core/Axis/Color/ColorAxisDefaults.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t){var l=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
|
|
606
|
+
b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),h=v.parse,d=z.noop,b=D.series,g=t.extend,p=t.isNumber,k=t.merge,r=t.pick;v=function(a){function f(b,d){var f=a.call(this,b,d)||this;f.beforePadding=!1;f.chart=void 0;f.coll="colorAxis";f.dataClasses=void 0;f.legendItem=void 0;f.legendItems=void 0;f.name="";f.options=void 0;f.stops=void 0;
|
|
607
|
+
f.visible=!0;f.init(b,d);return f}l(f,a);f.compose=function(a,b,d,g){A.compose(f,a,b,d,g)};f.prototype.init=function(b,d){var g=b.options.legend||{},h=d.layout?"vertical"!==d.layout:"vertical"!==g.layout,m=d.visible;g=k(f.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:g.enabled&&!1!==m});this.coll="colorAxis";this.side=d.side||h?2:1;this.reversed=d.reversed||!h;this.opposite=!h;a.prototype.init.call(this,b,g);this.userOptions.visible=m;d.dataClasses&&this.initDataClasses(d);this.initStops();
|
|
608
|
+
this.horiz=h;this.zoomEnabled=!1};f.prototype.initDataClasses=function(a){var b=this.chart,d=this.options,f=a.dataClasses.length,g,l=0,e=b.options.chart.colorCount;this.dataClasses=g=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,n){a=k(a);g.push(a);if(b.styledMode||!a.color)"category"===d.dataClassColor?(b.styledMode||(n=b.options.colors,e=n.length,a.color=n[l]),a.colorIndex=l,l++,l===e&&(l=0)):a.color=h(d.minColor).tweenTo(h(d.maxColor),2>f?.5:n/(f-1))})};f.prototype.hasData=function(){return!!(this.tickPositions||
|
|
609
|
+
[]).length};f.prototype.setTickPositions=function(){if(!this.dataClasses)return a.prototype.setTickPositions.call(this)};f.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=h(a[1])})};f.prototype.setOptions=function(b){a.prototype.setOptions.call(this,b);this.options.crosshair=this.options.marker};f.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},g,
|
|
610
|
+
h;a?(this.left=d=a.attr("x"),this.top=g=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-h,this.bottom=b.chartHeight-g-a,this.len=this.horiz?h:a,this.pos=this.horiz?d:g):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||f.defaultLegendLength};f.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};f.prototype.toColor=function(a,b){var d=this.dataClasses,f=this.stops,g;
|
|
611
|
+
if(d)for(g=d.length;g--;){var h=d[g];var e=h.from;f=h.to;if(("undefined"===typeof e||a>=e)&&("undefined"===typeof f||a<=f)){var c=h.color;b&&(b.dataClass=g,b.colorIndex=h.colorIndex);break}}else{a=this.normalizedValue(a);for(g=f.length;g--&&!(a>f[g][0]););e=f[g]||f[g+1];f=f[g+1]||e;a=1-(f[0]-a)/(f[0]-e[0]||1);c=e.color.tweenTo(f.color,a)}return c};f.prototype.getOffset=function(){var b=this.legendGroup,d=this.chart.axisOffset[this.side];b&&(this.axisParent=b,a.prototype.getOffset.call(this),this.added||
|
|
612
|
+
(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=d)};f.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};f.prototype.drawLegendSymbol=function(a,b){var d=a.padding,g=a.options,h=this.horiz,k=r(g.symbolWidth,h?f.defaultLegendLength:12),e=r(g.symbolHeight,h?12:f.defaultLegendLength),c=r(g.labelPadding,h?16:30);g=r(g.itemDistance,
|
|
613
|
+
10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,k,e).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=k+d+(h?g:c);this.legendItemHeight=e+d+(h?c:0)};f.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};f.prototype.setVisible=function(){};f.prototype.getSeriesExtremes=function(){var a=this.series,d=a.length,f;this.dataMin=Infinity;for(this.dataMax=-Infinity;d--;){var g=a[d];var h=g.colorKey=r(g.options.colorKey,g.colorKey,g.pointValKey,
|
|
614
|
+
g.zoneAxis,"y");var k=g.pointArrayMap;var e=g[h+"Min"]&&g[h+"Max"];if(g[h+"Data"])var c=g[h+"Data"];else if(k){c=[];k=k.indexOf(h);var n=g.yData;if(0<=k&&n)for(f=0;f<n.length;f++)c.push(r(n[f][k],n[f]))}else c=g.yData;e?(g.minColorValue=g[h+"Min"],g.maxColorValue=g[h+"Max"]):(c=b.prototype.getExtremes.call(g,c),g.minColorValue=c.dataMin,g.maxColorValue=c.dataMax);"undefined"!==typeof g.minColorValue&&(this.dataMin=Math.min(this.dataMin,g.minColorValue),this.dataMax=Math.max(this.dataMax,g.maxColorValue));
|
|
615
|
+
e||b.prototype.applyExtremes.call(g)}};f.prototype.drawCrosshair=function(b,d){var f=d&&d.plotX,g=d&&d.plotY,h=this.pos,k=this.len;if(d){var e=this.toPixels(d.getNestedProperty(d.series.colorKey));e<h?e=h-2:e>h+k&&(e=h+k+2);d.plotX=e;d.plotY=this.len-e;a.prototype.drawCrosshair.call(this,b,d);d.plotX=f;d.plotY=g;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||
|
|
616
|
+
"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};f.prototype.getPlotLinePath=function(b){var d=this.left,f=b.translatedValue,g=this.top;return p(f)?this.horiz?[["M",f-4,g-6],["L",f+4,g-6],["L",f,g],["Z"]]:[["M",d,f],["L",d-6,f+6],["L",d-6,f-6],["Z"]]:a.prototype.getPlotLinePath.call(this,b)};f.prototype.update=function(b,d){var f=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(b.dataClasses&&f.allItems||this.dataClasses)&&this.destroyItems();
|
|
617
|
+
a.prototype.update.call(this,b,d);this.legendItem&&(this.setLegendColor(),f.colorizeItem(this,!0))};f.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};f.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();a.prototype.destroy.apply(this,[].slice.call(arguments))};f.prototype.remove=function(b){this.destroyItems();a.prototype.remove.call(this,
|
|
618
|
+
b)};f.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,f=a.legendItems,h=b.options.legend,k=h.valueDecimals,l=h.valueSuffix||"",e;f.length||a.dataClasses.forEach(function(c,h){var n=c.from,m=c.to,p=b.numberFormatter,q=!0;e="";"undefined"===typeof n?e="< ":"undefined"===typeof m&&(e="> ");"undefined"!==typeof n&&(e+=p(n,k)+l);"undefined"!==typeof n&&"undefined"!==typeof m&&(e+=" - ");"undefined"!==typeof m&&(e+=p(m,k)+l);f.push(g({chart:b,name:e,options:{},drawLegendSymbol:w.drawRectangle,
|
|
619
|
+
visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=a.visible=!q;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===h&&a.setVisible(q)})});b.legend.colorizeItem(this,q)}},c))});return f};f.defaultColorAxisOptions=y;f.defaultLegendLength=200;f.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return f}(a);Array.prototype.push.apply(a.keepProps,v.keepProps);"";return v});I(a,"Mixins/ColorMapSeries.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],
|
|
620
|
+
a["Core/Utilities.js"]],function(a,v,A){var r=A.defined;A=A.addEvent;var z=a.noop;a=a.seriesTypes;A(v,"afterSetState",function(a){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:a&&"hover"===a.state?1:0})});return{colorMapPointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup",
|
|
621
|
+
"dataLabelsGroup"],getSymbol:z,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(a){var w={};!r(a.color)||a.state&&"normal"!==a.state||(w[this.colorProp||"fill"]=a.color);return w}}}});I(a,"Maps/MapNavigationOptionsDefault.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,v){v=v.extend;var r={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",
|
|
622
|
+
fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};v(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation=r});I(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A){function r(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&
|
|
623
|
+
a.stopPropagation(),a.cancelBubble=!0)}function z(a){this.init(a)}var w=v.doc,D=A.addEvent,t=A.extend,l=A.merge,h=A.objectEach,d=A.pick;z.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};z.prototype.update=function(a){var b=this.chart,p=b.options.mapNavigation,k,w,v,f,B=function(a){this.handler.call(b,a);r(a)},x=b.mapNavButtons;a&&(p=b.options.mapNavigation=l(b.options.mapNavigation,a));for(;x.length;)x.pop().destroy();d(p.enableButtons,p.enabled)&&!b.renderer.forExport&&h(p.buttons,function(a,
|
|
624
|
+
d){a=l(p.buttonOptions,a);!b.styledMode&&a.theme&&(k=a.theme,k.style=l(a.theme.style,a.style),v=(w=k.states)&&w.hover,f=w&&w.select,delete k.states);var g=b.renderer.button(a.text||"",0,0,B,k,v,f,void 0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[d]).attr({width:a.width,height:a.height,title:b.options.lang[d],padding:a.padding,zIndex:5}).add();g.handler=a.onclick;D(g.element,"dblclick",r);x.push(g);t(a,{width:g.width,
|
|
625
|
+
height:2*g.height});if(b.hasLoaded)g.align(a,!1,a.alignTo);else var h=D(b,"load",function(){g.element&&g.align(a,!1,a.alignTo);h()})});this.updateEvents(p)};z.prototype.updateEvents=function(a){var b=this.chart;d(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||D(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());d(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=
|
|
626
|
+
this.unbindMouseWheel||D(b.container,void 0!==w.onwheel?"wheel":void 0!==w.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),r(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};t(a.prototype,{fitToBox:function(a,d){[["x","width"],["y","height"]].forEach(function(b){var g=b[0];b=b[1];a[g]+a[b]>d[g]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[g]=d[g]):a[g]=d[g]+d[b]-a[b]);a[b]>d[b]&&
|
|
627
|
+
(a[b]=d[b]);a[g]<d[g]&&(a[g]=d[g])});return a},mapZoom:function(a,g,h,k,l,t){var b=this.xAxis[0],p=b.max-b.min,r=d(g,b.min+p/2),u=p*a;p=this.yAxis[0];var w=p.max-p.min,m=d(h,p.min+w/2);w*=a;r=this.fitToBox({x:r-u*(k?(k-b.pos)/b.len:.5),y:m-w*(l?(l-p.pos)/p.len:.5),width:u,height:w},{x:b.dataMin,y:p.dataMin,width:b.dataMax-b.dataMin,height:p.dataMax-p.dataMin});u=r.x<=b.dataMin&&r.width>=b.dataMax-b.dataMin&&r.y<=p.dataMin&&r.height>=p.dataMax-p.dataMin;k&&b.mapAxis&&(b.mapAxis.fixTo=[k-b.pos,g]);
|
|
628
|
+
l&&p.mapAxis&&(p.mapAxis.fixTo=[l-p.pos,h]);"undefined"===typeof a||u?(b.setExtremes(void 0,void 0,!1),p.setExtremes(void 0,void 0,!1)):(b.setExtremes(r.x,r.x+r.width,!1),p.setExtremes(r.y,r.y+r.height,!1));this.redraw(t)}});D(a,"beforeRender",function(){this.mapNavigation=new z(this);this.mapNavigation.update()});v.MapNavigation=z});I(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,v){var r=v.extend,y=v.pick;v=v.wrap;var z=0,w;r(a.prototype,{onContainerDblClick:function(a){var t=
|
|
629
|
+
this.chart;a=this.normalize(a);t.options.mapNavigation.enableDoubleClickZoomTo?t.pointer.inClass(a.target,"highcharts-tracker")&&t.hoverPoint&&t.hoverPoint.zoomTo():t.isInsidePlot(a.chartX-t.plotLeft,a.chartY-t.plotTop)&&t.mapZoom(.5,t.xAxis[0].toValue(a.chartX),t.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var t=this.chart;a=this.normalize(a);var l=a.deltaY||a.detail||-(a.wheelDelta/120);1<=Math.abs(l)&&(z+=Math.abs(l),w&&clearTimeout(w),w=setTimeout(function(){z=
|
|
630
|
+
0},50));10>z&&t.isInsidePlot(a.chartX-t.plotLeft,a.chartY-t.plotTop)&&t.mapZoom(Math.pow(t.options.mapNavigation.mouseWheelSensitivity,l),t.xAxis[0].toValue(a.chartX),t.yAxis[0].toValue(a.chartY),a.chartX,a.chartY,1>Math.abs(l)?!1:void 0)}});v(a.prototype,"zoomOption",function(a){var t=this.chart.options.mapNavigation;y(t.enableTouchZoom,t.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});v(a.prototype,"pinchTranslate",function(a,t,l,h,d,b,g){a.call(this,
|
|
631
|
+
t,l,h,d,b,g);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=h.scaleX>h.scaleY,this.pinchTranslateDirection(!a,t,l,h,d,b,g,a?h.scaleX:h.scaleY))})});I(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function r(a,r,v,w,D,t,l,h){return[["M",a+D,r],["L",a+v-t,r],["C",a+v-t/2,r,a+v,r+t/2,a+v,r+t],["L",a+v,r+w-l],["C",a+v,r+w-l/2,a+v-l/2,r+w,a+v-l,r+w],["L",a+h,r+w],["C",a+h/2,r+w,a,r+w-h/2,a,r+w-h],["L",a,r+D],["C",a,r+D/2,a+D/2,r,a+D,r],["Z"]]}a=a.prototype.symbols;
|
|
632
|
+
a.bottombutton=function(a,v,z,w,D){D=D&&D.r||0;return r(a-1,v-1,z,w,0,0,D,D)};a.topbutton=function(a,v,z,w,D){D=D&&D.r||0;return r(a-1,v-1,z,w,D,D,0,0)};return a});I(a,"Core/Chart/MapChart.js",[a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
|
|
633
|
+
(a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=v.getOptions,D=y.merge,t=y.pick;a=function(a){function h(){return null!==a&&a.apply(this,arguments)||this}r(h,a);h.prototype.init=function(d,b){var g={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h=w().credits;d=D({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:t(h.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),
|
|
634
|
+
mapTextFull:t(h.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:g,yAxis:D(g,{reversed:!0})},d,{chart:{inverted:!1,alignTicks:!1}});a.prototype.init.call(this,d,b)};return h}(a);(function(a){a.maps={};a.mapChart=function(h,d,b){return new a(h,d,b)};a.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?a:parseFloat(a)}));return A.prototype.pathToSegments(a)}})(a||
|
|
635
|
+
(a={}));return a});I(a,"Series/Map/MapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(r,t){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var d in h)h.hasOwnProperty(d)&&(a[d]=h[d])};return a(r,t)};return function(r,t){function l(){this.constructor=r}a(r,t);r.prototype=null===t?Object.create(t):(l.prototype=t.prototype,
|
|
636
|
+
new l)}}();a=a.colorMapPointMixin;var z=A.extend;v=function(a){function w(){var r=null!==a&&a.apply(this,arguments)||this;r.options=void 0;r.path=void 0;r.series=void 0;return r}r(w,a);w.prototype.applyOptions=function(r,l){var h=this.series;r=a.prototype.applyOptions.call(this,r,l);l=h.joinBy;h.mapData&&h.mapMap&&(l=a.prototype.getNestedProperty.call(r,l[1]),(l="undefined"!==typeof l&&h.mapMap[l])?(h.xyFromShape&&(r.x=l._midX,r.y=l._midY),z(r,l)):r.value=r.value||null);return r};w.prototype.onMouseOver=
|
|
637
|
+
function(r){A.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,r);else this.series.onMouseOut(r)};w.prototype.zoomTo=function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()};return w}(v.seriesTypes.scatter.prototype.pointClass);z(v.prototype,{dataLabelOnNull:a.dataLabelOnNull,isValid:a.isValid,moveToTopOnHover:a.moveToTopOnHover});return v});
|
|
638
|
+
I(a,"Series/Map/MapSeries.js",[a["Mixins/ColorMapSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Chart/MapChart.js"],a["Series/Map/MapPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l,h){var d=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
|
|
639
|
+
b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}();a=a.colorMapSeriesMixin;var b=v.noop,g=y.maps,p=y.splitPath;y=t.seriesTypes;var k=y.column,r=y.scatter;y=h.extend;var G=h.fireEvent,f=h.getNestedProperty,B=h.isArray,x=h.isNumber,u=h.merge,E=h.objectEach,m=h.pick,q=h.splat;h=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.baseTrans=
|
|
640
|
+
void 0;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.transformGroup=void 0;return b}d(b,a);b.prototype.animate=function(a){var b=this.options.animation,c=this.group,d=this.xAxis,e=this.yAxis,f=d.pos,g=e.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:f+d.len/2,translateY:g+e.len/2,scaleX:.001,scaleY:.001}):c.animate({translateX:f,translateY:g,scaleX:1,scaleY:1},b))};b.prototype.animateDrilldown=function(a){var b=this.chart.plotBox,
|
|
641
|
+
c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=c.bBox,e=this.chart.options.drilldown.animation;a||(a=Math.min(d.width/b.width,d.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:d.x,translateY:d.y},this.points.forEach(function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},e)}))};b.prototype.animateDrillupFrom=function(a){k.prototype.animateDrillupFrom.call(this,a)};b.prototype.animateDrillupTo=function(a){k.prototype.animateDrillupTo.call(this,
|
|
642
|
+
a)};b.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans};b.prototype.drawMapDataLabels=function(){D.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,e=a.chart,f=e.renderer,g=this.baseTrans;a.transformGroup||(a.transformGroup=f.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);
|
|
643
|
+
if(a.doFullTranslate())e.hasRendered&&!e.styledMode&&a.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,k.prototype.drawPoints.apply(a),a.group=d,a.points.forEach(function(b){if(b.graphic){var c="";b.name&&(c+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase());b.properties&&b.properties["hc-key"]&&(c+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());c&&b.graphic.addClass(c);e.styledMode&&b.graphic.css(a.pointAttribs(b,
|
|
644
|
+
b.selected&&"select"||void 0))}}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1});else{var h=b.transA/g.transAX;var l=c.transA/g.transAY;var p=b.toPixels(g.originX,!0);var q=c.toPixels(g.originY,!0);.99<h&&1.01>h&&.99<l&&1.01>l&&(l=h=1,p=Math.round(p),q=Math.round(q));var u=this.transformGroup;if(e.renderer.globalAnimation){var r=
|
|
645
|
+
u.attr("translateX");var t=u.attr("translateY");var w=u.attr("scaleX");var v=u.attr("scaleY");u.attr({animator:0}).animate({animator:1},{step:function(a,b){u.attr({translateX:r+(p-r)*b.pos,translateY:t+(q-t)*b.pos,scaleX:w+(h-w)*b.pos,scaleY:v+(l-v)*b.pos})}})}else u.attr({translateX:p,translateY:q,scaleX:h,scaleY:l})}e.styledMode||d.element.setAttribute("stroke-width",m(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(h||1));this.drawMapDataLabels()};b.prototype.getBox=
|
|
646
|
+
function(a){var b=Number.MAX_VALUE,c=-b,d=b,e=-b,f=b,g=b,h=this.xAxis,k=this.yAxis,n;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=p(a.path):"M"===a.path[0]&&(a.path=l.prototype.pathToSegments(a.path));var h=a.path||[],k=-b,q=b,u=-b,r=b,t=a.properties;a._foundBox||(h.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(q=Math.min(q,b),k=Math.max(k,b),r=Math.min(r,a),u=Math.max(u,a))}),a._midX=q+(k-q)*m(a.middleX,t&&t["hc-middle-x"],
|
|
647
|
+
.5),a._midY=r+(u-r)*m(a.middleY,t&&t["hc-middle-y"],.5),a._maxX=k,a._minX=q,a._maxY=u,a._minY=r,a.labelrank=m(a.labelrank,(k-q)*(u-r)),a._foundBox=!0);c=Math.max(c,a._maxX);d=Math.min(d,a._minX);e=Math.max(e,a._maxY);f=Math.min(f,a._minY);g=Math.min(a._maxX-a._minX,a._maxY-a._minY,g);n=!0}});n&&(this.minY=Math.min(f,m(this.minY,b)),this.maxY=Math.max(e,m(this.maxY,-b)),this.minX=Math.min(d,m(this.minX,b)),this.maxX=Math.max(c,m(this.maxX,-b)),h&&"undefined"===typeof h.options.minRange&&(h.minRange=
|
|
648
|
+
Math.min(5*g,(this.maxX-this.minX)/5,h.minRange||b)),k&&"undefined"===typeof k.options.minRange&&(k.minRange=Math.min(5*g,(this.maxY-this.minY)/5,k.minRange||b)))};b.prototype.getExtremes=function(){var a=D.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);x(b)&&(this.valueMin=b);x(a)&&(this.valueMax=a);return{dataMin:this.minY,dataMax:this.maxY}};b.prototype.hasData=function(){return!!this.processedXData.length};
|
|
649
|
+
b.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode?this.colorAttribs(a):k.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=m(a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};b.prototype.render=function(){var a=this,b=D.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)};b.prototype.setData=function(a,b,c,d){var e=this.options,h=this.chart.options.chart,k=h&&h.map,
|
|
650
|
+
l=e.mapData,m=this.joinBy,n=e.keys||this.pointArrayMap,p=[],q={},r=this.chart.mapTransforms;!l&&k&&(l="string"===typeof k?g[k]:k);a&&a.forEach(function(b,c){var d=0;if(x(b))a[c]={value:b};else if(B(b)){a[c]={};!e.keys&&b.length>n.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++d);for(var f=0;f<n.length;++f,++d)n[f]&&"undefined"!==typeof b[d]&&(0<n[f].indexOf(".")?z.prototype.setNestedProperty(a[c],b[d],n[f]):a[c][n[f]]=b[d])}m&&"_i"===m[0]&&(a[c]._i=c)});this.getBox(a);(this.chart.mapTransforms=
|
|
651
|
+
r=h.mapTransforms||l&&l["hc-transform"]||r)&&E(r,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(l){"FeatureCollection"===l.type&&(this.mapTitle=l.title,l=v.geojson(l,this.type,this));this.mapData=l;this.mapMap={};for(r=0;r<l.length;r++)h=l[r],k=h.properties,h._i=r,m[0]&&k&&k[m[0]]&&(h[m[0]]=k[m[0]]),q[h[m[0]]]=h;this.mapMap=q;if(a&&m[1]){var t=m[1];a.forEach(function(a){a=f(t,a);q[a]&&p.push(q[a])})}if(e.allAreas){this.getBox(l);a=a||[];if(m[1]){var w=
|
|
652
|
+
m[1];a.forEach(function(a){p.push(f(w,a))})}p="|"+p.map(function(a){return a&&a[m[0]]}).join("|")+"|";l.forEach(function(b){m[0]&&-1!==p.indexOf("|"+b[m[0]]+"|")||(a.push(u(b,{value:null})),d=!1)})}else this.getBox(p)}D.prototype.setData.call(this,a,b,c,d)};b.prototype.setOptions=function(a){a=D.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=q(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.doFullTranslate();a.generatePoints();
|
|
653
|
+
a.data.forEach(function(e){x(e._midX)&&x(e._midY)&&(e.plotX=b.toPixels(e._midX,!0),e.plotY=c.toPixels(e._midY,!0));d&&(e.shapeType="path",e.shapeArgs={d:a.translatePath(e.path)})});G(a,"afterTranslate")};b.prototype.translatePath=function(a){var b=this.xAxis,c=this.yAxis,d=b.min,e=b.transA,f=b.minPixelPadding,g=c.min,h=c.transA,k=c.minPixelPadding,l=[];a&&a.forEach(function(a){"M"===a[0]?l.push(["M",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k]):"L"===a[0]?l.push(["L",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k]):
|
|
654
|
+
"C"===a[0]?l.push(["C",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k,(a[3]-(d||0))*e+f,(a[4]-(g||0))*h+k,(a[5]-(d||0))*e+f,(a[6]-(g||0))*h+k]):"Q"===a[0]?l.push(["Q",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k,(a[3]-(d||0))*e+f,(a[4]-(g||0))*h+k]):"Z"===a[0]&&l.push(["Z"])});return l};b.defaultOptions=u(r.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return x(b)?a(b,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,
|
|
655
|
+
nullColor:w.neutralColor3,stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:w.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:w.neutralColor20},inactive:{opacity:1}}});return b}(r);y(h.prototype,{type:"map",axisTypes:a.axisTypes,colorAttribs:a.colorAttribs,colorKey:a.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:A.drawRectangle,
|
|
656
|
+
forceDL:!0,getExtremesFromAll:!0,getSymbol:a.getSymbol,parallelArrays:a.parallelArrays,pointArrayMap:a.pointArrayMap,pointClass:z,preserveAspectRatio:!0,searchPoint:b,trackerGroups:a.trackerGroups,useMapGeometry:!0});t.registerSeriesType("map",h);"";return h});I(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(l,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
657
|
+
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(l,h)};return function(l,h){function d(){this.constructor=l}a(l,h);l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),z=v.series,w=A.extend,D=A.merge;A=function(t){function l(){var a=null!==t&&t.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(l,t);l.prototype.pointAttribs=function(h,d){h=a.prototype.pointAttribs.call(this,h,d);h.fill=
|
|
658
|
+
this.options.fillColor;return h};l.defaultOptions=D(a.defaultOptions,{lineWidth:1,fillColor:"none"});return l}(a);w(A.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});v.registerSeriesType("mapline",A);"";return A});I(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(r,v){a=Object.setPrototypeOf||
|
|
659
|
+
{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var h in l)l.hasOwnProperty(h)&&(a[h]=l[h])};return a(r,v)};return function(r,v){function t(){this.constructor=r}a(r,v);r.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}(),y=v.merge;return function(a){function w(){var r=null!==a&&a.apply(this,arguments)||this;r.options=void 0;r.series=void 0;return r}r(w,a);w.prototype.applyOptions=function(r,t){r="undefined"!==typeof r.lat&&"undefined"!==typeof r.lon?
|
|
660
|
+
y(r,this.series.chart.fromLatLonToPoint(r)):r;return a.prototype.applyOptions.call(this,r,t)};return w}(a.seriesTypes.scatter.prototype.pointClass)});I(a,"Series/MapPoint/MapPointSeries.js",[a["Series/MapPoint/MapPointPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
|
|
661
|
+
(a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=A.seriesTypes.scatter,D=y.extend,t=y.merge;y=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}r(h,a);h.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};h.defaultOptions=
|
|
662
|
+
t(w.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:v.neutralColor100}}});return h}(w);D(y.prototype,{type:"mappoint",forceDL:!0,pointClass:a});A.registerSeriesType("mappoint",y);"";return y});I(a,"Series/Bubble/BubbleLegendDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,
|
|
663
|
+
enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:a.neutralColor100},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}});I(a,"Series/Bubble/BubbleLegendItem.js",[a["Core/Color/Color.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=a.parse,w=A.noop,
|
|
664
|
+
D=y.arrayMax,t=y.arrayMin,l=y.isNumber,h=y.merge,d=y.pick,b=y.stableSort;"";return function(){function a(a,b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=w;this.init(a,b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,
|
|
665
|
+
0,this)};a.prototype.drawLegendSymbol=function(a){var g=this.chart,h=this.options,p=d(a.options.itemDistance,20),f=h.ranges,r=h.connectorDistance;this.fontMetrics=g.renderer.fontMetrics(h.labels.style.fontSize);f&&f.length&&l(f[0].value)?(b(f,function(a,b){return b.value-a.value}),this.ranges=f,this.setOptions(),this.render(),a=this.getMaxLabelSize(),f=this.ranges[0].radius,g=2*f,r=r-f+a.width,r=0<r?r:0,this.maxLabel=a,this.movementX="left"===h.labels.align?r:0,this.legendItemWidth=g+r+p,this.legendItemHeight=
|
|
666
|
+
g+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,b=this.options,g=this.chart.series[b.seriesIndex],l=this.legend.baseline,f={zIndex:b.zIndex,"stroke-width":b.borderWidth},t={zIndex:b.zIndex,"stroke-width":b.connectorWidth},w={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},u=g.options.marker.fillOpacity,v=this.chart.styledMode;a.forEach(function(k,p){v||(f.stroke=d(k.borderColor,b.borderColor,g.color),
|
|
667
|
+
f.fill=d(k.color,b.color,1!==u?r(g.color).setOpacity(u).get("rgba"):g.color),t.stroke=d(k.connectorColor,b.connectorColor,g.color));a[p].radius=this.getRangeRadius(k.value);a[p]=h(a[p],{center:a[0].radius-a[p].radius+l});v||h(!0,a[p],{bubbleAttribs:h(f),connectorAttribs:h(t),labelAttribs:w})},this)};a.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,
|
|
668
|
+
a)};a.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=
|
|
669
|
+
function(a){var b=this.options,d=b.labels,g=this.chart,f=g.series[b.seriesIndex],h=g.renderer,l=this.symbols;g=l.labels;var p=a.center,r=Math.abs(a.radius),m=b.connectorDistance||0,q=d.align,e=b.connectorWidth,c=this.ranges[0].radius||0,n=p-r-b.borderWidth/2+e/2,t=this.fontMetrics;t=t.f/2-(t.h-t.f)/2;var w=h.styledMode;m=this.legend.options.rtl||"left"===q?-m:m;"center"===q&&(m=0,b.connectorDistance=0,a.labelAttribs.align="center");q=n+b.labels.y;var v=c+m+b.labels.x;l.bubbleItems.push(h.circle(c,
|
|
670
|
+
p+((n%1?1:.5)-(e%2?0:.5)),r).attr(w?{}:a.bubbleAttribs).addClass((w?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));l.connectors.push(h.path(h.crispLine([["M",c,n],["L",c+m,n]],b.connectorWidth)).attr(w?{}:a.connectorAttribs).addClass((w?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=h.text(this.formatLabel(a),v,q+t).attr(w?{}:a.labelAttribs).css(w?
|
|
671
|
+
{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);g.push(a);a.placed=!0;a.alignAttr={x:v,y:q+t}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var g=this.chart.numberFormatter;return b?v.format(b,a):d?d.call(a):g(a.value,1)};a.prototype.hideOverlappingLabels=
|
|
672
|
+
function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,g,r=Number.MAX_VALUE,f=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(g=a.zData.filter(l),g.length&&(r=d(a.options.zMin,Math.min(r,Math.max(t(g),
|
|
673
|
+
!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),f=d(a.options.zMax,Math.max(f,D(g)))))});var w=r===f?[{value:f}]:[{value:r},{value:(r+f)/2},{value:f,autoRanges:!0}];b.length&&b[0].radius&&w.reverse();w.forEach(function(a,d){b&&b[d]&&(w[d]=h(b[d],a))});return w};a.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,d=a.legend.options,g="horizontal"===d.layout,f=g?a.legend.lastLineHeight:0,h=a.plotSizeX,l=a.plotSizeY,r=a.series[this.options.seriesIndex];
|
|
674
|
+
a=Math.ceil(r.minPxSize);var t=Math.ceil(r.maxPxSize),m=Math.min(l,h);r=r.options.maxSize;if(d.floating||!/%$/.test(r))b=t;else if(r=parseFloat(r),b=(m+f-b.h/2)*r/100/(r/100+1),g&&l-b>=h||!g&&h-b>=l)b=t;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&
|
|
675
|
+
(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}()});I(a,"Series/Bubble/BubbleLegendComposition.js",[a["Series/Bubble/BubbleLegendDefaults.js"],a["Series/Bubble/BubbleLegendItem.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=A.setOptions,w=y.addEvent,D=y.objectEach,t=y.wrap,l;(function(h){function d(a,d,h){var f=this.legend,k=0<=b(this);if(f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&k){var l=f.bubbleLegend.options;
|
|
676
|
+
k=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(k[0],k[1]);l.placed||(f.group.placed=!1,f.allItems.forEach(function(a){a.legendGroup.translateY=null}));f.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();l.placed||(a.setScale(),a.updateNames(),D(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});l.placed=!0;this.getMargins();a.call(this,d,h);f.bubbleLegend.correctSizes();z(f,g(f))}else a.call(this,d,h),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),
|
|
677
|
+
z(f,g(f)))}function b(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1}function g(a){a=a.allItems;var b=[],d=a.length,f,g=0;for(f=0;f<d;f++)if(a[f].legendItemHeight&&(a[f].itemHeight=a[f].legendItemHeight),a[f]===a[d-1]||a[f+1]&&a[f]._legendItemPos[1]!==a[f+1]._legendItemPos[1]){b.push({height:0});var h=b[b.length-1];for(g;g<=f;g++)a[g].itemHeight>h.height&&(h.height=a[g].itemHeight);h.step=f}return b}function l(a){var d=this.bubbleLegend,
|
|
678
|
+
f=this.options,g=f.bubbleLegend,h=b(this.chart);d&&d.ranges&&d.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(d));0<=h&&f.enabled&&g.enabled&&(g.seriesIndex=h,this.bubbleLegend=new v(g,this),this.bubbleLegend.addToLegend(a.allItems))}function k(){var a=this.chart,d=this.visible,g=this.chart.legend;g&&g.bubbleLegend&&(this.visible=!d,this.ignoreSeries=d,a=0<=b(a),g.bubbleLegend.visible!==a&&(g.update({bubbleLegend:{enabled:a}}),g.bubbleLegend.visible=a),this.visible=
|
|
679
|
+
d)}function z(a,b){var d=a.options.rtl,f,g,h,k=0;a.allItems.forEach(function(a,c){f=a.legendGroup.translateX;g=a._legendItemPos[1];if((h=a.movementX)||d&&a.ranges)h=d?f-a.options.maxSize/2:f+h,a.legendGroup.attr({translateX:h});c>b[k].step&&k++;a.legendGroup.attr({translateY:Math.round(g+b[k].height/2)});a._legendItemPos[1]=g+b[k].height/2})}var y=[];h.compose=function(b,g,h){-1===y.indexOf(b)&&(y.push(b),r({legend:{bubbleLegend:a}}),t(b.prototype,"drawChartBox",d));-1===y.indexOf(g)&&(y.push(g),
|
|
680
|
+
w(g,"afterGetAllItems",l));-1===y.indexOf(h)&&(y.push(h),w(h,"legendItemClick",k))}})(l||(l={}));return l});I(a,"Series/Bubble/BubblePoint.js",[a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(r,v){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var h in l)l.hasOwnProperty(h)&&(a[h]=l[h])};return a(r,v)};return function(r,v){function t(){this.constructor=
|
|
681
|
+
r}a(r,v);r.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}();A=A.extend;v=function(v){function w(){var a=null!==v&&v.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}r(w,v);w.prototype.haloPath=function(r){return a.prototype.haloPath.call(this,0===r?0:(this.marker?this.marker.radius||0:0)+r)};return w}(v.seriesTypes.scatter.prototype.pointClass);A(v.prototype,{ttBelow:!1});return v});I(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubbleLegendComposition.js"],
|
|
682
|
+
a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t){var l=this&&this.__extends||function(){var a=function(b,d){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,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):
|
|
683
|
+
(f.prototype=d.prototype,new f)}}(),h=y.parse;y=z.noop;var d=D.seriesTypes;z=d.column;var b=d.scatter,g=t.arrayMax,p=t.arrayMin,k=t.clamp,r=t.extend,G=t.isNumber,f=t.merge,B=t.pick,x=t.pInt;t=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options=void 0;b.points=void 0;b.radii=void 0;b.yData=void 0;b.zData=void 0;return b}l(d,a);d.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=
|
|
684
|
+
a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};d.prototype.getRadii=function(a,b,d){var c=this.zData,e=this.yData,f=d.minPxSize,g=d.maxPxSize,h=[];var k=0;for(d=c.length;k<d;k++){var l=c[k];h.push(this.getRadius(a,b,f,g,l,e[k]))}this.radii=h};d.prototype.getRadius=function(a,b,d,c,f,g){var e=this.options,h="width"!==e.sizeBy,k=e.zThreshold,l=b-a,m=.5;if(null===g||null===f)return null;if(G(f)){e.sizeByAbsoluteValue&&
|
|
685
|
+
(f=Math.abs(f-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(f<a)return d/2-1;0<l&&(m=(f-a)/l)}h&&0<=m&&(m=Math.sqrt(m));return Math.ceil(d+m*(c-d))/2};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.pointAttribs=function(a,b){var d=this.options.marker.fillOpacity;a=w.prototype.pointAttribs.call(this,a,b);1!==d&&(a.fill=h(a.fill).setOpacity(d).get("rgba"));return a};d.prototype.translate=function(){var b,d=this.data,e=this.radii;a.prototype.translate.call(this);for(b=d.length;b--;){var c=
|
|
686
|
+
d[b];var f=e?e[b]:0;G(f)&&f>=this.minPxSize/2?(c.marker=r(c.marker,{radius:f,width:2*f,height:2*f}),c.dlBox={x:c.plotX-f,y:c.plotY-f,width:2*f,height:2*f}):c.shapeArgs=c.plotY=c.dlBox=void 0}};d.compose=v.compose;d.defaultOptions=f(b.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return G(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},
|
|
687
|
+
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 d}(b);r(t.prototype,{alignDataLabel:z.prototype.alignDataLabel,applyZones:y,bubblePadding:!0,buildKDTree:y,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:A,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});a.prototype.beforePadding=
|
|
688
|
+
function(){var a=this,b=this.len,d=this.chart,f=0,e=b,c=this.isXAxis,h=c?"xData":"yData",l=this.min,r={},t=Math.min(d.plotWidth,d.plotHeight),v=Number.MAX_VALUE,w=-Number.MAX_VALUE,y=this.max-l,z=b/y,A=[];this.series.forEach(function(b){var e=b.options;!b.bubblePadding||!b.visible&&d.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,A.push(b),c&&(["minSize","maxSize"].forEach(function(a){var b=e[a],c=/%$/.test(b);b=x(b);r[a]=c?t*b/100:b}),b.minPxSize=r.minSize,b.maxPxSize=Math.max(r.maxSize,
|
|
689
|
+
r.minSize),b=b.zData.filter(G),b.length&&(v=B(e.zMin,k(p(b),!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE,v)),w=B(e.zMax,Math.max(w,g(b))))))});A.forEach(function(b){var d=b[h],g=d.length;c&&b.getRadii(v,w,b);if(0<y)for(;g--;)if(G(d[g])&&a.dataMin<=d[g]&&d[g]<=a.max){var k=b.radii?b.radii[g]:0;f=Math.min((d[g]-l)*z-k,f);e=Math.max((d[g]-l)*z+k,e)}});A.length&&0<y&&!this.logarithmic&&(e-=b,z*=(b+Math.max(0,f)-Math.min(e,b))/b,[["min","userMin",f],["max","userMax",e]].forEach(function(b){"undefined"===
|
|
690
|
+
typeof B(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/z)}))};D.registerSeriesType("bubble",t);"";"";return t});I(a,"Series/MapBubble/MapBubblePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(r,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(r,l)};return function(r,l){function h(){this.constructor=r}a(r,
|
|
691
|
+
l);r.prototype=null===l?Object.create(l):(h.prototype=l.prototype,new h)}}(),y=a.seriesTypes,z=y.map;a=v.extend;var w=v.merge;v=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}r(t,a);t.prototype.applyOptions=function(l,h){return l&&"undefined"!==typeof l.lat&&"undefined"!==typeof l.lon?a.prototype.applyOptions.call(this,w(l,this.series.chart.fromLatLonToPoint(l)),h):z.prototype.pointClass.prototype.applyOptions.call(this,l,h)};t.prototype.isValid=function(){return"number"===
|
|
692
|
+
typeof this.z};return t}(y.bubble.prototype.pointClass);a(v.prototype,{ttBelow:!1});return v});I(a,"Series/MapBubble/MapBubbleSeries.js",[a["Series/Bubble/BubbleSeries.js"],a["Series/MapBubble/MapBubblePoint.js"],a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
|
|
693
|
+
(a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),D=z.extend,t=z.merge;z=function(l){function h(){var a=null!==l&&l.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(h,l);h.compose=a.compose;h.defaultOptions=t(a.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(a);D(z.prototype,{type:"mapbubble",getBox:A.prototype.getBox,
|
|
694
|
+
pointArrayMap:["z"],pointClass:v,setData:A.prototype.setData,setOptions:A.prototype.setOptions,xyFromShape:!0});y.registerSeriesType("mapbubble",z);"";return z});I(a,"Series/Heatmap/HeatmapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(l,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
|
|
695
|
+
(a[d]=b[d])};return a(l,h)};return function(l,h){function d(){this.constructor=l}a(l,h);l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}();a=a.colorMapPointMixin;var z=A.clamp,w=A.extend,D=A.pick;v=function(a){function l(){var h=null!==a&&a.apply(this,arguments)||this;h.options=void 0;h.series=void 0;h.value=void 0;h.x=void 0;h.y=void 0;return h}r(l,a);l.prototype.applyOptions=function(h,d){h=a.prototype.applyOptions.call(this,h,d);h.formatPrefix=h.isNull||null===h.value?"null":
|
|
696
|
+
"point";return h};l.prototype.getCellAttributes=function(){var a=this.series,d=a.options,b=(d.colsize||1)/2,g=(d.rowsize||1)/2,l=a.xAxis,k=a.yAxis,r=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var t=D(this.pointPadding,d.pointPadding,0),f={x1:z(Math.round(l.len-(l.translate(this.x-b,!1,!0,!1,!0,-a)||0)),-l.len,2*l.len),x2:z(Math.round(l.len-(l.translate(this.x+b,!1,!0,!1,!0,-a)||0)),-l.len,2*l.len),y1:z(Math.round(k.translate(this.y-g,!1,!0,!1,!0)||0),-k.len,2*k.len),y2:z(Math.round(k.translate(this.y+
|
|
697
|
+
g,!1,!0,!1,!0)||0),-k.len,2*k.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",g=a+"2",h=Math.abs(f[d]-f[g]),k=r&&r.lineWidth||0,e=Math.abs(f[d]+f[g])/2;r[b]&&r[b]<h&&(f[d]=e-r[b]/2-k/2,f[g]=e+r[b]/2+k/2);t&&("y"===a&&(d=g,g=a+"1"),f[d]+=t,f[g]-=t)});return f};l.prototype.haloPath=function(a){if(!a)return[];var d=this.shapeArgs;return["M",d.x-a,d.y-a,"L",d.x-a,d.y+d.height+a,d.x+d.width+a,d.y+d.height+a,d.x+d.width+a,d.y-a,"Z"]};l.prototype.isValid=function(){return Infinity!==
|
|
698
|
+
this.value&&-Infinity!==this.value};return l}(v.seriesTypes.scatter.prototype.pointClass);w(v.prototype,{dataLabelOnNull:a.dataLabelOnNull,moveToTopOnHover:a.moveToTopOnHover});return v});I(a,"Series/Heatmap/HeatmapSeries.js",[a["Core/Color/Color.js"],a["Mixins/ColorMapSeries.js"],a["Series/Heatmap/HeatmapPoint.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t){var l=
|
|
699
|
+
this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}();v=v.colorMapSeriesMixin;var h=w.series,d=w.seriesTypes,b=d.column,g=d.scatter,p=D.prototype.symbols,k=t.extend,r=t.fireEvent,G=t.isNumber,f=t.merge,B=
|
|
700
|
+
t.pick;D=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=NaN;return a}l(d,b);d.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)h.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),
|
|
701
|
+
null===b.value&&b.graphic.addClass("highcharts-null-point"))})};d.prototype.getExtremes=function(){var a=h.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;G(b)&&(this.valueMin=b);G(a)&&(this.valueMax=a);return h.prototype.getExtremes.call(this)};d.prototype.getValidPoints=function(a,b){return h.prototype.getValidPoints.call(this,a,b,!0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.init=function(){h.prototype.init.apply(this,arguments);var a=
|
|
702
|
+
this.options;a.pointRange=B(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;p.ellipse=p.circle};d.prototype.markerAttribs=function(a,b){var d=a.marker||{},e=this.options.marker||{},c=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var g=e.states[b]||{};var h=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(h[a[0]]||g[a[0]]||c[a[0]])+(h[a[0]+"Plus"]||g[a[0]+"Plus"]||0);f[a[1]]=c[a[1]]+(c[a[0]]-f[a[0]])/2})}return b?f:c};d.prototype.pointAttribs=
|
|
703
|
+
function(b,d){var g=h.prototype.pointAttribs.call(this,b,d),e=this.options||{},c=this.chart.options.plotOptions||{},k=c.series||{},l=c.heatmap||{};c=b&&b.options.borderColor||e.borderColor||l.borderColor||k.borderColor;k=b&&b.options.borderWidth||e.borderWidth||l.borderWidth||k.borderWidth||g["stroke-width"];g.stroke=b&&b.marker&&b.marker.lineColor||e.marker&&e.marker.lineColor||c||this.color;g["stroke-width"]=k;d&&(b=f(e.states[d],e.marker&&e.marker.states[d],b&&b.options.states&&b.options.states[d]||
|
|
704
|
+
{}),d=b.brightness,g.fill=b.color||a.parse(g.fill).brighten(d||0).get(),g.stroke=b.lineColor);return g};d.prototype.setClip=function(a){var b=this.chart;h.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};d.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",d=p[b]?b:"rect",e=-1!==["circle","square"].indexOf(d);this.generatePoints();this.points.forEach(function(a){var c=
|
|
705
|
+
a.getCellAttributes(),g={};g.x=Math.min(c.x1,c.x2);g.y=Math.min(c.y1,c.y2);g.width=Math.max(Math.abs(c.x2-c.x1),0);g.height=Math.max(Math.abs(c.y2-c.y1),0);var h=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(e){var l=Math.abs(g.width-g.height);g.x=Math.min(c.x1,c.x2)+(g.width<g.height?0:l/2);g.y=Math.min(c.y1,c.y2)+(g.width<g.height?l/2:0);g.width=g.height=Math.min(g.width,g.height)}l={plotX:(c.x1+c.x2)/2,plotY:(c.y1+c.y2)/2,clientX:(c.x1+c.x2)/2,shapeType:"path",shapeArgs:f(!0,
|
|
706
|
+
g,{d:p[d](g.x,g.y,g.width,g.height)})};h&&(a.marker={width:g.width,height:g.height});k(a,l)});r(this,"afterTranslate")};d.defaultOptions=f(g.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:z.neutralColor3,dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return G(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,
|
|
707
|
+
pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return d}(g);k(D.prototype,{alignDataLabel:b.prototype.alignDataLabel,axisTypes:v.axisTypes,colorAttribs:v.colorAttribs,colorKey:v.colorKey,directTouch:!0,drawLegendSymbol:y.drawRectangle,getExtremesFromAll:!0,getSymbol:h.prototype.getSymbol,parallelArrays:v.parallelArrays,pointArrayMap:["y","value"],pointClass:A,trackerGroups:v.trackerGroups});w.registerSeriesType("heatmap",D);
|
|
708
|
+
"";"";return D});I(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A,y){function r(a,b){var d,h=!1,k=a.x,l=a.y;a=0;for(d=b.length-1;a<b.length;d=a++){var r=b[a][1]>l;var f=b[d][1]>l;r!==f&&k<(b[d][0]-b[a][0])*(l-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(h=!h)}return h}var w=v.format,D=A.win,t=y.error,l=y.extend,h=y.merge;v=y.wrap;"";a.prototype.transformFromLatLon=function(a,b){var d=this.userOptions.chart&&this.userOptions.chart.proj4||
|
|
709
|
+
D.proj4;if(!d)return t(21,!1,this),{x:0,y:null};a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var h=b.sinAngle||b.rotation&&Math.sin(b.rotation);a=b.rotation?[a[0]*d+a[1]*h,-a[0]*h+a[1]*d]:a;return{x:((a[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-a[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};a.prototype.transformToLatLon=function(a,b){if("undefined"===typeof D.proj4)t(21,!1,this);else{a={x:((a.x-
|
|
710
|
+
(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-a.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=D.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-h,y:a.x*h+a.y*d}:a);return{lat:b.y,lon:b.x}}};a.prototype.fromPointToLatLon=function(a){var b=this.mapTransforms,d;if(b){for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone&&r({x:a.x,y:-a.y},
|
|
711
|
+
b[d].hitZone.coordinates[0]))return this.transformToLatLon(a,b[d]);return this.transformToLatLon(a,b["default"])}t(22,!1,this)};a.prototype.fromLatLonToPoint=function(a){var b=this.mapTransforms,d;if(!b)return t(22,!1,this),{x:0,y:null};for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone){var h=this.transformFromLatLon(a,b[d]);if(r({x:h.x,y:-h.y},b[d].hitZone.coordinates[0]))return h}return this.transformFromLatLon(a,b["default"])};A.geojson=function(a,b,g){var d=[],h=[],r=function(a){a.forEach(function(a,
|
|
712
|
+
b){0===b?h.push(["M",a[0],-a[1]]):h.push(["L",a[0],-a[1]])})};b=b||"map";a.features.forEach(function(a){var f=a.geometry,g=f.type;f=f.coordinates;a=a.properties;var k;h=[];"map"===b||"mapbubble"===b?("Polygon"===g?(f.forEach(r),h.push(["Z"])):"MultiPolygon"===g&&(f.forEach(function(a){a.forEach(r)}),h.push(["Z"])),h.length&&(k={path:h})):"mapline"===b?("LineString"===g?r(f):"MultiLineString"===g&&f.forEach(r),h.length&&(k={path:h})):"mappoint"===b&&"Point"===g&&(k={x:f[0],y:-f[1]});k&&d.push(l(k,
|
|
713
|
+
{name:a.name||a.NAME,properties:a}))});g&&a.copyrightShort&&(g.chart.mapCredits=w(g.chart.options.credits.mapText,{geojson:a}),g.chart.mapCreditsFull=w(g.chart.options.credits.mapTextFull,{geojson:a}));return d};v(a.prototype,"addCredits",function(a,b){b=h(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});I(a,"masters/modules/map.src.js",[a["Core/Globals.js"],a["Core/Axis/Color/ColorAxis.js"],
|
|
714
|
+
a["Series/MapBubble/MapBubbleSeries.js"],a["Core/Chart/MapChart.js"]],function(a,v,A,y){a.ColorAxis=v;a.MapChart=y;a.mapChart=a.Map=y.mapChart;a.maps=y.maps;v.compose(a.Chart,a.Fx,a.Legend,a.Series);A.compose(a.Chart,a.Legend,a.Series)});I(a,"masters/highmaps.src.js",[a["masters/highcharts.src.js"]],function(a){a.product="Highmaps";return a});a["masters/highmaps.src.js"]._modules=a;return a["masters/highmaps.src.js"]});
|
|
705
715
|
//# sourceMappingURL=highmaps.js.map
|