highcharts 9.1.1 → 9.1.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/es-modules/Core/Axis/Axis.js +24 -17
- package/es-modules/Core/Axis/AxisDefaults.js +0 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +141 -61
- package/es-modules/Core/Globals.js +7 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
- package/es-modules/Core/Series/Series.js +16 -1
- package/es-modules/Core/Time.js +2 -2
- package/es-modules/Core/Tooltip.js +7 -11
- package/es-modules/Extensions/Annotations/NavigationBindings.js +1 -1
- package/es-modules/Extensions/Annotations/Popup.js +4 -1
- package/es-modules/Extensions/Boost/WGLRenderer.js +5 -0
- package/es-modules/Extensions/Drilldown.js +39 -12
- package/es-modules/Extensions/OfflineExporting.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +1 -1
- package/es-modules/Extensions/PatternFill.js +23 -10
- package/es-modules/Stock/StockToolsGui.js +1 -1
- 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 +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- 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 +1 -1
- 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 +1 -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 +1 -1
- 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 +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +1 -1
- package/highcharts-3d.src.js +1 -1
- package/highcharts-gantt.js +782 -782
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +109 -87
- package/highcharts-more.js +1 -1
- package/highcharts-more.src.js +1 -1
- package/highcharts.d.ts +30 -9
- package/highcharts.js +467 -467
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +30 -9
- package/highcharts.src.js +109 -87
- package/highmaps.js +697 -697
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +109 -87
- package/highstock.js +757 -755
- package/highstock.js.map +1 -1
- package/highstock.src.js +270 -157
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -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 +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.src.js +1 -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 +1 -1
- package/indicators/dmi.src.js +1 -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 +1 -1
- package/indicators/indicators-all.src.js +1 -1
- package/indicators/indicators.js +1 -1
- package/indicators/indicators.src.js +1 -1
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.js +1 -1
- package/indicators/klinger.src.js +1 -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 +1 -1
- package/indicators/price-channel.src.js +1 -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 +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +1 -1
- package/indicators/supertrend.src.js +1 -1
- 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 +1 -1
- package/indicators/volume-by-price.src.js +1 -1
- 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 +1 -1
- package/modules/accessibility.src.js +1 -1
- package/modules/annotations-advanced.js +16 -16
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +6 -3
- package/modules/annotations.js +16 -16
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +6 -3
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +1 -1
- package/modules/boost-canvas.src.js +1 -1
- package/modules/boost.js +34 -34
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +6 -1
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +1 -1
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +1 -1
- package/modules/coloraxis.src.js +1 -1
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +1 -1
- package/modules/data.src.js +1 -1
- package/modules/datagrouping.js +1 -1
- package/modules/datagrouping.src.js +1 -1
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- 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 +1 -1
- package/modules/draggable-points.src.js +1 -1
- package/modules/drilldown.d.ts +27 -0
- package/modules/drilldown.js +16 -16
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +27 -0
- package/modules/drilldown.src.js +40 -14
- package/modules/dumbbell.js +1 -1
- package/modules/dumbbell.src.js +1 -1
- package/modules/export-data.js +1 -1
- package/modules/export-data.src.js +1 -1
- package/modules/exporting.js +1 -1
- package/modules/exporting.src.js +1 -1
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- 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 +1 -1
- package/modules/gantt.src.js +1 -1
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +1 -1
- package/modules/heatmap.src.js +1 -1
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- 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.js +1 -1
- package/modules/map.src.js +1 -1
- 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 +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +2 -2
- 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 +1 -1
- package/modules/sankey.src.js +1 -1
- package/modules/series-label.js +1 -1
- package/modules/series-label.src.js +1 -1
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.src.js +1 -1
- 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 +2 -2
- package/modules/stock-tools.src.js +3 -3
- package/modules/stock.js +191 -189
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +162 -71
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +1 -1
- package/modules/sunburst.src.js +1 -1
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +1 -1
- package/modules/timeline.src.js +1 -1
- package/modules/treegrid.js +1 -1
- package/modules/treegrid.src.js +1 -1
- package/modules/treemap.js +1 -1
- package/modules/treemap.src.js +1 -1
- 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 +1 -1
- package/modules/venn.src.js +1 -1
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.js +1 -1
- package/modules/wordcloud.src.js +1 -1
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
package/highcharts-gantt.js
CHANGED
|
@@ -1,803 +1,803 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highcharts Gantt JS v9.1.
|
|
2
|
+
Highcharts Gantt JS v9.1.2 (2021-06-16)
|
|
3
3
|
|
|
4
4
|
(c) 2017-2021 Lars Cabrera, Torstein Honsi, Jon Arild Nygard & Oystein Moseng
|
|
5
5
|
|
|
6
6
|
License: www.highcharts.com/license
|
|
7
7
|
*/
|
|
8
|
-
'use strict';(function(
|
|
9
|
-
window:{},
|
|
10
|
-
/(Mobile|Android|Windows Phone)/.test(
|
|
11
|
-
|
|
12
|
-
"="+encodeURI(p))});
|
|
13
|
-
a||"[object Array Iterator]"===a}function
|
|
14
|
-
"Name"))):
|
|
15
|
-
c){return parseFloat(a.toPrecision(c||14))}function
|
|
16
|
-
a.getPropertyValue(c);
|
|
17
|
-
c?(
|
|
18
|
-
(
|
|
19
|
-
each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,c){
|
|
20
|
-
this):
|
|
21
|
-
order:"number"===typeof
|
|
22
|
-
|
|
23
|
-
typeof
|
|
24
|
-
c){"object"!==typeof a&&(a={});
|
|
25
|
-
(c[
|
|
26
|
-
c,
|
|
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:
|
|
30
|
-
|
|
31
|
-
"#"===
|
|
32
|
-
|
|
33
|
-
"rgba(":"rgb(")+Math.round(k[0]+(
|
|
34
|
-
|
|
35
|
-
this.timezoneOffset){if("Milliseconds"===
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var b=this,
|
|
39
|
-
function(a,c){for(;-1!==
|
|
40
|
-
Math.floor(
|
|
41
|
-
|
|
42
|
-
a)&&(c[a]="day")})}
|
|
43
|
-
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:
|
|
44
|
-
caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:
|
|
45
|
-
itemHoverStyle:{color:
|
|
46
|
-
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:"",padding:8,snap:
|
|
47
|
-
whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:
|
|
48
|
-
[
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
k>=
|
|
52
|
-
function
|
|
53
|
-
(k=[])}if(k.length&&A(
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
function(
|
|
58
|
-
void 0;if(
|
|
59
|
-
(new DOMParser).parseFromString(b,"text/html");else{var k=
|
|
60
|
-
|
|
61
|
-
b.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");return b}();"";return
|
|
62
|
-
Math.pow(10,
|
|
63
|
-
|
|
64
|
-
numberFormat:
|
|
65
|
-
K=A.objectEach,
|
|
66
|
-
a)};H.prototype.add=function(a){var c=this.renderer,p=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var
|
|
67
|
-
p?[p]:[]).join(" ");a!==p&&this.attr("class",a);return this};H.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};H.prototype.align=function(a,c,p){var
|
|
68
|
-
a.verticalAlign;
|
|
69
|
-
c[a]))};H.prototype.animate=function(a,c,p){var
|
|
70
|
-
var p=a.split(" ");a=p[p.length-1];if((p=p[0])&&"none"!==p&&
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
0;var p=Math.round(c)%2/2;a.x=Math.floor(a.x||this.x||0)+p;a.y=Math.floor(a.y||this.y||0)+p;a.width=Math.floor((a.width||this.width||0)-2*p);a.height=Math.floor((a.height||this.height||0)-2*p);
|
|
74
|
-
|
|
75
|
-
"stop-color":
|
|
76
|
-
G(a.width);this.styles=a;
|
|
77
|
-
a.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(a=p.length;a--;)p[a]=""+G(p[a])*
|
|
78
|
-
void 0;c.onclick=c.onmouseout=c.onmouseover=c.onmousemove=c.point=null;
|
|
79
|
-
a.safeRemoveChild(
|
|
80
|
-
this.textPathWrapper.element.childNodes;a.length;)p.appendChild(a[0]);p.removeChild(this.textPathWrapper.element)}}else if(a.getAttribute("dx")||a.getAttribute("dy"))a.removeAttribute("dx"),a.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};H.prototype.dSetter=function(a,c,p){
|
|
81
|
-
/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[c]!==a&&(p.setAttribute(c,a),this[c]=a)};H.prototype.fadeOut=function(a){var c=this;c.animate({opacity:0},{duration:
|
|
82
|
-
p.styledMode?
|
|
83
|
-
height:0}}else
|
|
84
|
-
(""+this.attr("class")).split(" ").indexOf(a)};H.prototype.hide=function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};H.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};H.prototype.init=function(a,
|
|
85
|
-
a,c);return this};H.prototype.opacitySetter=function(a,c,p){this.opacity=a=Number(Number(a).toFixed(3));p.setAttribute(c,a)};H.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(
|
|
86
|
-
H.prototype.setRadialReference=function(a){var c=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;c&&c.radAttr&&c.animate(this.renderer.getRadialAttr(a,c.radAttr));return this};H.prototype.setTextPath=function(a,c){var p=this.element,
|
|
87
|
-
if(a&&c&&c.enabled){
|
|
88
|
-
G.nodeName||
|
|
89
|
-
delete this.applyTextOutline,this.destroyTextPath(p,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};H.prototype.shadow=function(a,c,p){var
|
|
90
|
-
this.oldShadowOptions=
|
|
91
|
-
G.cutHeight=
|
|
92
|
-
!1):this.renderer.styledMode&&this["stroke-width"]&&(p.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};H.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),c=0;if(a.indexOf("px")===a.length-2)c=G(a);else if(""!==a){var p=
|
|
93
|
-
function(a){var c=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(p){c[p]=
|
|
94
|
-
c.firstChild):c.appendChild(p);p.textContent=String(
|
|
95
|
-
function(){var a=this.scaleX,c=this.scaleY,p=this.inverted,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
A,
|
|
100
|
-
(
|
|
101
|
-
typeof
|
|
102
|
-
function(b,
|
|
103
|
-
"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());
|
|
104
|
-
this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};
|
|
105
|
-
|
|
106
|
-
this.box&&this.box.shadow(b));return this};
|
|
107
|
-
A(this.heightSetting)&&!this.textAlign||!
|
|
108
|
-
this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),
|
|
109
|
-
("center"===this.textAlign||"right"===this.textAlign)&&(k+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(k!==b.x||
|
|
110
|
-
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)};
|
|
111
|
-
[
|
|
112
|
-
|
|
113
|
-
b>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
b.renderer.fontMetrics(void 0,
|
|
119
|
-
|
|
120
|
-
Node.TEXT_NODE?
|
|
121
|
-
this,k=function(
|
|
122
|
-
|
|
123
|
-
(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"class":"highcharts-root"}),
|
|
127
|
-
[];this.imgCount=0;this.setSize(c,p,!1);var
|
|
128
|
-
children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+c+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(
|
|
129
|
-
function(a){return this.style=
|
|
130
|
-
null};p.prototype.createElement=function(a){var c=new this.Element;c.init(this,a);return c};p.prototype.getRadialAttr=function(a,c){return{cx:a[0]-a[2]/2+(c.cx||0)*a[2],cy:a[1]-a[2]/2+(c.cy||0)*a[2],r:(c.r||0)*a[2]}};p.prototype.buildText=function(a){(new
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
function(a,c,p){a=
|
|
135
|
-
("undefined"!==typeof
|
|
136
|
-
a}):c};p.prototype.image=function(a,c,p,
|
|
137
|
-
a);return
|
|
138
|
-
var K=function(a){return a.attr({width:a.width,height:a.height})};["width","height"].forEach(function(c){
|
|
139
|
-
a(
|
|
140
|
-
a=this.rect(a,c,p,
|
|
141
|
-
c){a=!this.styledMode&&/px/.test(a)||!
|
|
142
|
-
p.length===
|
|
143
|
-
draw:
|
|
144
|
-
Object.create(
|
|
145
|
-
-b*
|
|
146
|
-
function(){if(this.added){var b=this.renderer,
|
|
147
|
-
|
|
148
|
-
0)&&
|
|
149
|
-
|
|
150
|
-
b){function
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
!0;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
{labels:{x
|
|
159
|
-
|
|
160
|
-
this.options=this.parameters.options;k(this,"init");
|
|
161
|
-
a.higherRanks[c]||a.unitName]);var
|
|
162
|
-
K.getBBox().width<
|
|
163
|
-
|
|
164
|
-
function(b,
|
|
165
|
-
b;
|
|
166
|
-
0:
|
|
167
|
-
this.shortenLabel():(
|
|
168
|
-
|
|
169
|
-
function(b,
|
|
170
|
-
if(
|
|
171
|
-
"-":"")+"tick").add(
|
|
172
|
-
|
|
173
|
-
return
|
|
174
|
-
z
|
|
8
|
+
'use strict';(function(Y,N){"object"===typeof module&&module.exports?(N["default"]=N,module.exports=Y.document?N(Y):N):"function"===typeof define&&define.amd?define("highcharts/highcharts-gantt",function(){return N(Y)}):(Y.Highcharts&&Y.Highcharts.error(16,!0),Y.Highcharts=N(Y))})("undefined"!==typeof window?window:this,function(Y){function N(h,Q,F,D){h.hasOwnProperty(Q)||(h[Q]=D.apply(null,F))}var h={};N(h,"Core/Globals.js",[],function(){var h="undefined"!==typeof Y?Y:"undefined"!==typeof window?
|
|
9
|
+
window:{},Q;(function(d){d.SVG_NS="http://www.w3.org/2000/svg";d.product="Highcharts";d.version="9.1.2";d.win=h;d.doc=d.win.document;d.svg=d.doc&&d.doc.createElementNS&&!!d.doc.createElementNS(d.SVG_NS,"svg").createSVGRect;d.userAgent=d.win.navigator&&d.win.navigator.userAgent||"";d.isChrome=-1!==d.userAgent.indexOf("Chrome");d.isFirefox=-1!==d.userAgent.indexOf("Firefox");d.isMS=/(edge|msie|trident)/i.test(d.userAgent)&&!d.win.opera;d.isSafari=!d.isChrome&&-1!==d.userAgent.indexOf("Safari");d.isTouchDevice=
|
|
10
|
+
/(Mobile|Android|Windows Phone)/.test(d.userAgent);d.isWebKit=-1!==d.userAgent.indexOf("AppleWebKit");d.deg2rad=2*Math.PI/360;d.hasBidiBug=d.isFirefox&&4>parseInt(d.userAgent.split("Firefox/")[1],10);d.hasTouch=!!d.win.TouchEvent;d.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];d.noop=function(){};d.supportsPassiveEvents=function(){var h=!1;if(!d.isMS){var Q=Object.defineProperty({},"passive",{get:function(){h=!0}});d.win.addEventListener&&d.win.removeEventListener&&(d.win.addEventListener("testPassive",
|
|
11
|
+
d.noop,Q),d.win.removeEventListener("testPassive",d.noop,Q))}return h}();d.charts=[];d.dateFormats={};d.seriesTypes={};d.symbolSizes={};d.chartCount=0})(Q||(Q={}));return Q});N(h,"Core/Utilities.js",[h["Core/Globals.js"]],function(d){function h(a,c,G,g){var t=c?"Highcharts error":"Highcharts warning";32===a&&(a=t+": Deprecated member");var K=k(a),P=K?t+" #"+a+": www.highcharts.com/errors/"+a+"/":a.toString();if("undefined"!==typeof g){var w="";K&&(P+="?");I(g,function(p,M){w+="\n - "+M+": "+p;K&&
|
|
12
|
+
(P+=encodeURI(M)+"="+encodeURI(p))});P+=w}u(d,"displayError",{chart:G,code:a,message:P,params:g},function(){if(c)throw Error(P);l.console&&-1===h.messages.indexOf(P)&&console.warn(P)});h.messages.push(P)}function F(a,c){var t={};I(a,function(K,v){if(z(a[v],!0)&&!a.nodeType&&c[v])K=F(a[v],c[v]),Object.keys(K).length&&(t[v]=K);else if(z(a[v])||a[v]!==c[v])t[v]=a[v]});return t}function D(a,c){return parseInt(a,c||10)}function E(a){return"string"===typeof a}function A(a){a=Object.prototype.toString.call(a);
|
|
13
|
+
return"[object Array]"===a||"[object Array Iterator]"===a}function z(a,c){return!!a&&"object"===typeof a&&(!c||!A(a))}function B(a){return z(a)&&"number"===typeof a.nodeType}function q(a){var c=a&&a.constructor;return!(!z(a,!0)||B(a)||!c||!c.name||"Object"===c.name)}function k(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a}function e(a){return"undefined"!==typeof a&&null!==a}function b(a,c,g){var t;E(c)?e(g)?a.setAttribute(c,g):a&&a.getAttribute&&((t=a.getAttribute(c))||"class"!==
|
|
14
|
+
c||(t=a.getAttribute(c+"Name"))):I(c,function(c,t){a.setAttribute(t,c)});return t}function r(a,c){var t;a||(a={});for(t in c)a[t]=c[t];return a}function C(){for(var a=arguments,c=a.length,g=0;g<c;g++){var l=a[g];if("undefined"!==typeof l&&null!==l)return l}}function y(a,c){d.isMS&&!d.svg&&c&&"undefined"!==typeof c.opacity&&(c.filter="alpha(opacity="+100*c.opacity+")");r(a.style,c)}function n(a,t,g,l,v){a=c.createElement(a);t&&r(a,t);v&&y(a,{padding:"0",border:"none",margin:"0"});g&&y(a,g);l&&l.appendChild(a);
|
|
15
|
+
return a}function f(a,c){return parseFloat(a.toPrecision(c||14))}function m(a,c,g){var t=d.getStyle||m;if("width"===c)return c=Math.min(a.offsetWidth,a.scrollWidth),g=a.getBoundingClientRect&&a.getBoundingClientRect().width,g<c&&g>=c-1&&(c=Math.floor(g)),Math.max(0,c-(t(a,"padding-left",!0)||0)-(t(a,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(t(a,"padding-top",!0)||0)-(t(a,"padding-bottom",!0)||0));l.getComputedStyle||h(27,!0);if(a=l.getComputedStyle(a,
|
|
16
|
+
void 0)){var v=a.getPropertyValue(c);C(g,"opacity"!==c)&&(v=D(v))}return v}function I(a,c,g){for(var t in a)Object.hasOwnProperty.call(a,t)&&c.call(g||a[t],a[t],t,a)}function L(a,c,g){function t(c,p){var M=a.removeEventListener||d.removeEventListenerPolyfill;M&&M.call(a,c,p,!1)}function v(g){var p;if(a.nodeName){if(c){var M={};M[c]=!0}else M=g;I(M,function(a,M){if(g[M])for(p=g[M].length;p--;)t(M,g[M][p].fn)})}}var l="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(l,"hcEvents")){var P=
|
|
17
|
+
l.hcEvents;c?(l=P[c]||[],g?(P[c]=l.filter(function(a){return g!==a.fn}),t(c,g)):(v(P),P[c]=[])):(v(P),delete l.hcEvents)}}function u(a,t,g,l){g=g||{};if(c.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==d)){var v=c.createEvent("Events");v.initEvent(t,!0,!0);g=r(v,g);a.dispatchEvent?a.dispatchEvent(g):a.fireEvent(t,g)}else if(a.hcEvents){g.target||r(g,{preventDefault:function(){g.defaultPrevented=!0},target:a,type:t});v=[];for(var w=a,P=!1;w.hcEvents;)Object.hasOwnProperty.call(w,"hcEvents")&&w.hcEvents[t]&&
|
|
18
|
+
(v.length&&(P=!0),v.unshift.apply(v,w.hcEvents[t])),w=Object.getPrototypeOf(w);P&&v.sort(function(a,p){return a.order-p.order});v.forEach(function(c){!1===c.fn.call(a,g)&&g.preventDefault()})}l&&!g.defaultPrevented&&l.call(a,g)}var x=d.charts,c=d.doc,l=d.win;"";(h||(h={})).messages=[];var a;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var g=Array.prototype.find?function(a,c){return a.find(c)}:function(a,c){var t,g=a.length;for(t=0;t<g;t++)if(c(a[t],t))return a[t]};I({map:"map",
|
|
19
|
+
each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,c){d[c]=function(t){var g;h(32,!1,void 0,(g={},g["Highcharts."+c]="use Array."+a,g));return Array.prototype[a].apply(t,[].slice.call(arguments,1))}});var w,J=function(){var a=Math.random().toString(36).substring(2,9)+"-",c=0;return function(){return"highcharts-"+(w?"":a)+c++}}();l.jQuery&&(l.jQuery.fn.highcharts=function(){var a=[].slice.call(arguments);if(this[0])return a[0]?(new (d[E(a[0])?a.shift():"Chart"])(this[0],a[0],a[1]),
|
|
20
|
+
this):x[b(this[0],"data-highcharts-chart")]});return{addEvent:function(a,c,g,l){void 0===l&&(l={});var t="function"===typeof a&&a.prototype||a;Object.hasOwnProperty.call(t,"hcEvents")||(t.hcEvents={});t=t.hcEvents;d.Point&&a instanceof d.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);var w=a.addEventListener||d.addEventListenerPolyfill;w&&w.call(a,c,g,d.supportsPassiveEvents?{passive:void 0===l.passive?-1!==c.indexOf("touch"):l.passive,capture:!1}:!1);t[c]||(t[c]=[]);t[c].push({fn:g,
|
|
21
|
+
order:"number"===typeof l.order?l.order:Infinity});t[c].sort(function(a,c){return a.order-c.order});return function(){L(a,c,g)}},arrayMax:function(a){for(var c=a.length,g=a[0];c--;)a[c]>g&&(g=a[c]);return g},arrayMin:function(a){for(var c=a.length,g=a[0];c--;)a[c]<g&&(g=a[c]);return g},attr:b,clamp:function(a,c,g){return a>c?a<g?a:g:c},cleanRecursively:F,clearTimeout:function(a){e(a)&&clearTimeout(a)},correctFloat:f,createElement:n,css:y,defined:e,destroyObjectProperties:function(a,c){I(a,function(g,
|
|
22
|
+
t){g&&g!==c&&g.destroy&&g.destroy();delete a[t]})},discardElement:function(c){a||(a=n("div"));c&&a.appendChild(c);a.innerHTML=""},erase:function(a,c){for(var g=a.length;g--;)if(a[g]===c){a.splice(g,1);break}},error:h,extend:r,extendClass:function(a,c){var g=function(){};g.prototype=new a;r(g.prototype,c);return g},find:g,fireEvent:u,getMagnitude:function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},getNestedProperty:function(a,c){for(a=a.split(".");a.length&&e(c);){var g=a.shift();if("undefined"===
|
|
23
|
+
typeof g||"__proto__"===g)return;c=c[g];if(!e(c)||"function"===typeof c||"number"===typeof c.nodeType||c===l)return}return c},getStyle:m,inArray:function(a,c,g){h(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c.indexOf(a,g)},isArray:A,isClass:q,isDOMElement:B,isFunction:function(a){return"function"===typeof a},isNumber:k,isObject:z,isString:E,keys:function(a){h(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:function(){var a,c=arguments,g={},l=function(a,
|
|
24
|
+
c){"object"!==typeof a&&(a={});I(c,function(g,p){"__proto__"!==p&&"constructor"!==p&&(!z(g,!0)||q(g)||B(g)?a[p]=c[p]:a[p]=l(a[p]||{},g))});return a};!0===c[0]&&(g=c[1],c=Array.prototype.slice.call(c,2));var v=c.length;for(a=0;a<v;a++)g=l(g,c[a]);return g},normalizeTickInterval:function(a,c,g,l,v){var t=a;g=C(g,1);var P=a/g;c||(c=v?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===l&&(1===g?c=c.filter(function(a){return 0===a%1}):.1>=g&&(c=[1/g])));for(l=0;l<c.length&&!(t=c[l],v&&t*g>=a||!v&&P<=(c[l]+
|
|
25
|
+
(c[l+1]||c[l]))/2);l++);return t=f(t*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:I,offset:function(a){var g=c.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(l.pageYOffset||g.scrollTop)-(g.clientTop||0),left:a.left+(l.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:a.width,height:a.height}},pad:function(a,c,g){return Array((c||2)+1-String(a).replace("-","").length).join(g||"0")+a},pick:C,pInt:D,relativeLength:function(a,
|
|
26
|
+
c,g){return/%$/.test(a)?c*parseFloat(a)/100+(g||0):parseFloat(a)},removeEvent:L,splat:function(a){return A(a)?a:[a]},stableSort:function(a,c){var g=a.length,l,t;for(t=0;t<g;t++)a[t].safeI=t;a.sort(function(a,g){l=c(a,g);return 0===l?a.safeI-g.safeI:l});for(t=0;t<g;t++)delete a[t].safeI},syncTimeout:function(a,c,g){if(0<c)return setTimeout(a,c,g);a.call(0,g);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:J,useSerialIds:function(a){return w=
|
|
27
|
+
C(a,w)},wrap:function(a,c,g){var l=a[c];a[c]=function(){var a=Array.prototype.slice.call(arguments),c=arguments,t=this;t.proceed=function(){l.apply(t,arguments.length?arguments:c)};a.unshift(l);a=g.apply(this,a);t.proceed=null;return a}}}});N(h,"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",neutralColor40:"#999999",
|
|
28
|
+
neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});N(h,"Core/Chart/ChartDefaults.js",[h["Core/Color/Palette.js"]],function(d){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,
|
|
29
|
+
15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:d.highlightColor80,backgroundColor:d.backgroundColor,plotBorderColor:d.neutralColor20}});N(h,"Core/Color/Color.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var Q=h.isNumber,D=h.merge,E=h.pInt;h=function(){function h(z){this.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(q){return[E(q[1]),
|
|
30
|
+
E(q[2]),E(q[3]),parseFloat(q[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(q){return[E(q[1]),E(q[2]),E(q[3]),1]}}];this.rgba=[];var B=d.Color;if(B&&B!==h)return new B(z);if(!(this instanceof h))return new h(z);this.init(z)}h.parse=function(d){return new h(d)};h.prototype.init=function(d){var B,q;if((this.input=d=h.names[d&&d.toLowerCase?d.toLowerCase():""]||d)&&d.stops)this.stops=d.stops.map(function(b){return new h(b[1])});else{if(d&&d.charAt&&
|
|
31
|
+
"#"===d.charAt()){var k=d.length;d=parseInt(d.substr(1),16);7===k?B=[(d&16711680)>>16,(d&65280)>>8,d&255,1]:4===k&&(B=[(d&3840)>>4|(d&3840)>>8,(d&240)>>4|d&240,(d&15)<<4|d&15,1])}if(!B)for(q=this.parsers.length;q--&&!B;){var e=this.parsers[q];(k=e.regex.exec(d))&&(B=e.parse(k))}}this.rgba=B||[]};h.prototype.get=function(d){var B=this.input,q=this.rgba;if("undefined"!==typeof this.stops){var k=D(B);k.stops=[].concat(k.stops);this.stops.forEach(function(e,b){k.stops[b]=[k.stops[b][0],e.get(d)]})}else k=
|
|
32
|
+
q&&Q(q[0])?"rgb"===d||!d&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===d?q[3]:"rgba("+q.join(",")+")":B;return k};h.prototype.brighten=function(d){var B,q=this.rgba;if(this.stops)this.stops.forEach(function(k){k.brighten(d)});else if(Q(d)&&0!==d)for(B=0;3>B;B++)q[B]+=E(255*d),0>q[B]&&(q[B]=0),255<q[B]&&(q[B]=255);return this};h.prototype.setOpacity=function(d){this.rgba[3]=d;return this};h.prototype.tweenTo=function(d,B){var q=this.rgba,k=d.rgba;k.length&&q&&q.length?(d=1!==k[3]||1!==q[3],B=(d?
|
|
33
|
+
"rgba(":"rgb(")+Math.round(k[0]+(q[0]-k[0])*(1-B))+","+Math.round(k[1]+(q[1]-k[1])*(1-B))+","+Math.round(k[2]+(q[2]-k[2])*(1-B))+(d?","+(k[3]+(q[3]-k[3])*(1-B)):"")+")"):B=d.input||"none";return B};h.names={white:"#ffffff",black:"#000000"};return h}();"";return h});N(h,"Core/Time.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var Q=d.win,D=h.defined,E=h.error,A=h.extend,z=h.isObject,B=h.merge,q=h.objectEach,k=h.pad,e=h.pick,b=h.splat,r=h.timeUnits,C=d.isSafari&&Intl&&Intl.DateTimeFormat.prototype.formatRange,
|
|
34
|
+
y=d.isSafari&&Intl&&!Intl.DateTimeFormat.prototype.formatRange;h=function(){function n(f){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=Q.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(f)}n.prototype.get=function(f,m){if(this.variableTimezone||this.timezoneOffset){var n=m.getTime(),b=n-this.getTimezoneOffset(m);m.setTime(b);f=m["getUTC"+f]();m.setTime(n);return f}return this.useUTC?m["getUTC"+f]():m["get"+f]()};n.prototype.set=function(f,m,n){if(this.variableTimezone||
|
|
35
|
+
this.timezoneOffset){if("Milliseconds"===f||"Seconds"===f||"Minutes"===f&&0===this.getTimezoneOffset(m)%36E5)return m["setUTC"+f](n);var b=this.getTimezoneOffset(m);b=m.getTime()-b;m.setTime(b);m["setUTC"+f](n);f=this.getTimezoneOffset(m);b=m.getTime()+f;return m.setTime(b)}return this.useUTC||C&&"FullYear"===f?m["setUTC"+f](n):m["set"+f](n)};n.prototype.update=function(f){var m=e(f&&f.useUTC,!0);this.options=f=B(!0,this.options||{},f);this.Date=f.Date||Q.Date||Date;this.timezoneOffset=(this.useUTC=
|
|
36
|
+
m)&&f.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=m&&!(!f.getTimezoneOffset&&!f.timezone)};n.prototype.makeTime=function(f,m,n,b,u,x){if(this.useUTC){var c=this.Date.UTC.apply(0,arguments);var l=this.getTimezoneOffset(c);c+=l;var a=this.getTimezoneOffset(c);l!==a?c+=a-l:l-36E5!==this.getTimezoneOffset(c-36E5)||y||(c-=36E5)}else c=(new this.Date(f,m,e(n,1),e(b,0),e(u,0),e(x,0))).getTime();return c};n.prototype.timezoneOffsetFunction=function(){var f=this,
|
|
37
|
+
m=this.options,n=m.moment||Q.moment;if(!this.useUTC)return function(f){return 6E4*(new Date(f.toString())).getTimezoneOffset()};if(m.timezone){if(n)return function(f){return 6E4*-n.tz(f,m.timezone).utcOffset()};E(25)}return this.useUTC&&m.getTimezoneOffset?function(f){return 6E4*m.getTimezoneOffset(f.valueOf())}:function(){return 6E4*(f.timezoneOffset||0)}};n.prototype.dateFormat=function(f,m,n){if(!D(m)||isNaN(m))return d.defaultOptions.lang&&d.defaultOptions.lang.invalidDate||"";f=e(f,"%Y-%m-%d %H:%M:%S");
|
|
38
|
+
var b=this,u=new this.Date(m),x=this.get("Hours",u),c=this.get("Day",u),l=this.get("Date",u),a=this.get("Month",u),g=this.get("FullYear",u),w=d.defaultOptions.lang,J=w&&w.weekdays,r=w&&w.shortWeekdays;u=A({a:r?r[c]:J[c].substr(0,3),A:J[c],d:k(l),e:k(l,2," "),w:c,b:w.shortMonths[a],B:w.months[a],m:k(a+1),o:a+1,y:g.toString().substr(2,2),Y:g,H:k(x),k:x,I:k(x%12||12),l:x%12||12,M:k(this.get("Minutes",u)),p:12>x?"AM":"PM",P:12>x?"am":"pm",S:k(u.getSeconds()),L:k(Math.floor(m%1E3),3)},d.dateFormats);q(u,
|
|
39
|
+
function(a,c){for(;-1!==f.indexOf("%"+c);)f=f.replace("%"+c,"function"===typeof a?a.call(b,m):a)});return n?f.substr(0,1).toUpperCase()+f.substr(1):f};n.prototype.resolveDTLFormat=function(f){return z(f,!0)?f:(f=b(f),{main:f[0],from:f[1],to:f[2]})};n.prototype.getTimeTicks=function(f,m,n,b){var u=this,x=[],c={},l=new u.Date(m),a=f.unitRange,g=f.count||1,w;b=e(b,1);if(D(m)){u.set("Milliseconds",l,a>=r.second?0:g*Math.floor(u.get("Milliseconds",l)/g));a>=r.second&&u.set("Seconds",l,a>=r.minute?0:g*
|
|
40
|
+
Math.floor(u.get("Seconds",l)/g));a>=r.minute&&u.set("Minutes",l,a>=r.hour?0:g*Math.floor(u.get("Minutes",l)/g));a>=r.hour&&u.set("Hours",l,a>=r.day?0:g*Math.floor(u.get("Hours",l)/g));a>=r.day&&u.set("Date",l,a>=r.month?1:Math.max(1,g*Math.floor(u.get("Date",l)/g)));if(a>=r.month){u.set("Month",l,a>=r.year?0:g*Math.floor(u.get("Month",l)/g));var J=u.get("FullYear",l)}a>=r.year&&u.set("FullYear",l,J-J%g);a===r.week&&(J=u.get("Day",l),u.set("Date",l,u.get("Date",l)-J+b+(J<b?-7:0)));J=u.get("FullYear",
|
|
41
|
+
l);b=u.get("Month",l);var K=u.get("Date",l),t=u.get("Hours",l);m=l.getTime();!u.variableTimezone&&u.useUTC||!D(n)||(w=n-m>4*r.month||u.getTimezoneOffset(m)!==u.getTimezoneOffset(n));m=l.getTime();for(l=1;m<n;)x.push(m),m=a===r.year?u.makeTime(J+l*g,0):a===r.month?u.makeTime(J,b+l*g):!w||a!==r.day&&a!==r.week?w&&a===r.hour&&1<g?u.makeTime(J,b,K,t+l*g):m+a*g:u.makeTime(J,b,K+l*g*(a===r.day?1:7)),l++;x.push(m);a<=r.hour&&1E4>x.length&&x.forEach(function(a){0===a%18E5&&"000000000"===u.dateFormat("%H%M%S%L",
|
|
42
|
+
a)&&(c[a]="day")})}x.info=A(f,{higherRanks:c,totalRange:a*g});return x};return n}();"";return h});N(h,"Core/DefaultOptions.js",[h["Core/Globals.js"],h["Core/Chart/ChartDefaults.js"],h["Core/Color/Color.js"],h["Core/Color/Palette.js"],h["Core/Time.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A){var z=d.isTouchDevice,B=d.svg;F=F.parse;var q=A.merge;"";var k={colors:D.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(" "),
|
|
43
|
+
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:h,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
|
|
44
|
+
caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:D.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:D.neutralColor40,borderRadius:0,navigation:{activeColor:D.highlightColor100,inactiveColor:D.neutralColor20},itemStyle:{color:D.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},
|
|
45
|
+
itemHoverStyle:{color:D.neutralColor100},itemHiddenStyle:{color:D.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:D.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:B,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
|
|
46
|
+
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:"",padding:8,snap:z?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:F(D.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:D.neutralColor80,cursor:"default",fontSize:"12px",
|
|
47
|
+
whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:D.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};k.chart.styledMode=!1;"";var e=new E(q(k.global,k.time));return{defaultOptions:k,defaultTime:e,getOptions:function(){return k},setOptions:function(b){q(!0,k,b);if(b.time||b.global)d.time?d.time.update(q(k.global,k.time,b.global,b.time)):d.time=e;return k}}});N(h,"Core/Animation/Fx.js",
|
|
48
|
+
[h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h,F){var Q=d.parse,E=h.win,A=F.isNumber,z=F.objectEach;return function(){function d(q,k,e){this.pos=NaN;this.options=k;this.elem=q;this.prop=e}d.prototype.dSetter=function(){var q=this.paths,k=q&&q[0];q=q&&q[1];var e=this.now||0,b=[];if(1!==e&&k&&q)if(k.length===q.length&&1>e)for(var r=0;r<q.length;r++){for(var C=k[r],y=q[r],n=[],f=0;f<y.length;f++){var m=C[f],I=y[f];A(m)&&A(I)&&("A"!==y[0]||4!==f&&5!==f)?n[f]=m+e*(I-
|
|
49
|
+
m):n[f]=I}b.push(n)}else b=q;else b=this.toD||[];this.elem.attr("d",b,void 0,!0)};d.prototype.update=function(){var q=this.elem,k=this.prop,e=this.now,b=this.options.step;if(this[k+"Setter"])this[k+"Setter"]();else q.attr?q.element&&q.attr(k,e,null,!0):q.style[k]=e+this.unit;b&&b.call(q,e,this)};d.prototype.run=function(q,k,e){var b=this,r=b.options,C=function(f){return C.stopped?!1:b.step(f)},y=E.requestAnimationFrame||function(f){setTimeout(f,13)},n=function(){for(var f=0;f<d.timers.length;f++)d.timers[f]()||
|
|
50
|
+
d.timers.splice(f--,1);d.timers.length&&y(n)};q!==k||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=q,this.end=k,this.unit=e,this.now=this.start,this.pos=0,C.elem=this.elem,C.prop=this.prop,C()&&1===d.timers.push(C)&&y(n)):(delete r.curAnim[this.prop],r.complete&&0===Object.keys(r.curAnim).length&&r.complete.call(this.elem))};d.prototype.step=function(q){var k=+new Date,e=this.options,b=this.elem,r=e.complete,C=e.duration,y=e.curAnim;if(b.attr&&!b.element)q=!1;else if(q||
|
|
51
|
+
k>=C+this.startTime){this.now=this.end;this.pos=1;this.update();var n=y[this.prop]=!0;z(y,function(f){!0!==f&&(n=!1)});n&&r&&r.call(b);q=!1}else this.pos=e.easing((k-this.startTime)/C),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0;return q};d.prototype.initPath=function(q,k,e){function b(f,m){for(;f.length<L;){var c=f[0],l=m[L-f.length];l&&"M"===c[0]&&(f[0]="C"===l[0]?["C",c[1],c[2],c[1],c[2],c[1],c[2]]:["L",c[1],c[2]]);f.unshift(c);n&&(c=f.pop(),f.push(f[f.length-1],c))}}
|
|
52
|
+
function r(m,b){for(;m.length<L;)if(b=m[Math.floor(m.length/f)-1].slice(),"C"===b[0]&&(b[1]=b[5],b[2]=b[6]),n){var c=m[Math.floor(m.length/f)].slice();m.splice(m.length/2,0,b,c)}else m.push(b)}var C=q.startX,y=q.endX;e=e.slice();var n=q.isArea,f=n?2:1;k=k&&k.slice();if(!k)return[e,e];if(C&&y&&y.length){for(q=0;q<C.length;q++)if(C[q]===y[0]){var m=q;break}else if(C[0]===y[y.length-C.length+q]){m=q;var I=!0;break}else if(C[C.length-1]===y[y.length-C.length+q]){m=C.length-q;break}"undefined"===typeof m&&
|
|
53
|
+
(k=[])}if(k.length&&A(m)){var L=e.length+m*f;I?(b(k,e),r(e,k)):(b(e,k),r(k,e))}return[k,e]};d.prototype.fillSetter=function(){d.prototype.strokeSetter.apply(this,arguments)};d.prototype.strokeSetter=function(){this.elem.attr(this.prop,Q(this.start).tweenTo(Q(this.end),this.pos),null,!0)};d.timers=[];return d}()});N(h,"Core/Animation/AnimationUtilities.js",[h["Core/Animation/Fx.js"],h["Core/Utilities.js"]],function(d,h){function Q(b){return q(b)?k({duration:500,defer:0},b):{duration:b?500:0,defer:0}}
|
|
54
|
+
function D(b,e){for(var r=d.timers.length;r--;)d.timers[r].elem!==b||e&&e!==d.timers[r].prop||(d.timers[r].stopped=!0)}var E=h.defined,A=h.getStyle,z=h.isArray,B=h.isNumber,q=h.isObject,k=h.merge,e=h.objectEach,b=h.pick;return{animate:function(b,C,y){var n,f="",m,r;if(!q(y)){var L=arguments;y={duration:L[2],easing:L[3],complete:L[4]}}B(y.duration)||(y.duration=400);y.easing="function"===typeof y.easing?y.easing:Math[y.easing]||Math.easeInOutSine;y.curAnim=k(C);e(C,function(u,x){D(b,x);r=new d(b,y,
|
|
55
|
+
x);m=void 0;"d"===x&&z(C.d)?(r.paths=r.initPath(b,b.pathArray,C.d),r.toD=C.d,n=0,m=1):b.attr?n=b.attr(x):(n=parseFloat(A(b,x))||0,"opacity"!==x&&(f="px"));m||(m=u);"string"===typeof m&&m.match("px")&&(m=m.replace(/px/g,""));r.run(n,m,f)})},animObject:Q,getDeferredAnimation:function(b,e,k){var n=Q(e),f=0,m=0;(k?[k]:b.series).forEach(function(b){b=Q(b.options.animation);f=e&&E(e.defer)?n.defer:Math.max(f,b.duration+b.defer);m=Math.min(n.duration,b.duration)});b.renderer.forExport&&(f=0);return{defer:Math.max(0,
|
|
56
|
+
f-m),duration:Math.min(f,m)}},setAnimation:function(r,e){e.renderer.globalAnimation=b(r,e.options.chart.animation,!0)},stop:D}});N(h,"Core/Renderer/HTML/AST.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var Q=d.SVG_NS,D=h.attr,E=h.createElement,A=h.discardElement,z=h.error,B=h.isString,q=h.objectEach,k=h.splat;try{var e=!!(new DOMParser).parseFromString("","text/html")}catch(b){e=!1}h=function(){function b(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}b.filterUserAttributes=
|
|
57
|
+
function(e){q(e,function(r,k){var n=!0;-1===b.allowedAttributes.indexOf(k)&&(n=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(k)&&(n=B(r)&&b.allowedReferences.some(function(f){return 0===r.indexOf(f)}));n||(z("Highcharts warning: Invalid attribute '"+k+"' in config"),delete e[k])});return e};b.setElementHTML=function(e,k){e.innerHTML="";k&&(new b(k)).addToDOM(e)};b.prototype.addToDOM=function(e){function r(e,n){var f;k(e).forEach(function(m){var e=m.tagName,k=m.textContent?d.doc.createTextNode(m.textContent):
|
|
58
|
+
void 0;if(e)if("#text"===e)var u=k;else if(-1!==b.allowedTags.indexOf(e)){e=d.doc.createElementNS("svg"===e?Q:n.namespaceURI||Q,e);var x=m.attributes||{};q(m,function(c,l){"tagName"!==l&&"attributes"!==l&&"children"!==l&&"textContent"!==l&&(x[l]=c)});D(e,b.filterUserAttributes(x));k&&e.appendChild(k);r(m.children||[],e);u=e}else z("Highcharts warning: Invalid tagName '"+e+"' in config");u&&n.appendChild(u);f=u});return f}return r(this.nodes,e)};b.prototype.parseMarkup=function(b){var r=[];if(e)b=
|
|
59
|
+
(new DOMParser).parseFromString(b,"text/html");else{var k=E("div");k.innerHTML=b;b={body:k}}var n=function(f,b){var m=f.nodeName.toLowerCase(),e={tagName:m};if("#text"===m){m=f.textContent||"";if(/^[\s]*$/.test(m))return;e.textContent=m}if(m=f.attributes){var u={};[].forEach.call(m,function(c){u[c.name]=c.value});e.attributes=u}if(f.childNodes.length){var x=[];[].forEach.call(f.childNodes,function(c){n(c,x)});x.length&&(e.children=x)}b.push(e)};[].forEach.call(b.body.childNodes,function(f){return n(f,
|
|
60
|
+
r)});k&&A(k);return r};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(" ");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(" ");
|
|
61
|
+
b.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");return b}();"";return h});N(h,"Core/FormatUtilities.js",[h["Core/DefaultOptions.js"],h["Core/Utilities.js"]],function(d,h){function Q(k,e,b,r){k=+k||0;e=+e;var C=D.lang,y=(k.toString().split(".")[1]||"").split("e")[0].length,n=k.toString().split("e"),f=e;if(-1===e)e=Math.min(y,20);else if(!z(e))e=2;else if(e&&n[1]&&0>n[1]){var m=e+ +n[1];0<=m?(n[0]=(+n[0]).toExponential(m).split("e")[0],e=m):(n[0]=n[0].split(".")[0]||0,k=20>e?(n[0]*
|
|
62
|
+
Math.pow(10,n[1])).toFixed(e):0,n[1]=0)}m=(Math.abs(n[1]?n[0]:k)+Math.pow(10,-Math.max(e,y)-1)).toFixed(e);y=String(q(m));var I=3<y.length?y.length%3:0;b=B(b,C.decimalPoint);r=B(r,C.thousandsSep);k=(0>k?"-":"")+(I?y.substr(0,I)+r:"");k=0>+n[1]&&!f?"0":k+y.substr(I).replace(/(\d{3})(?=\d)/g,"$1"+r);e&&(k+=b+m.slice(-e));n[1]&&0!==+k&&(k+="e"+n[1]);return k}var D=d.defaultOptions,E=d.defaultTime,A=h.getNestedProperty,z=h.isNumber,B=h.pick,q=h.pInt;return{dateFormat:function(k,e,b){return E.dateFormat(k,
|
|
63
|
+
e,b)},format:function(k,e,b){var r="{",q=!1,y=/f$/,n=/\.([0-9])/,f=D.lang,m=b&&b.time||E;b=b&&b.numberFormatter||Q;for(var I=[];k;){var L=k.indexOf(r);if(-1===L)break;var u=k.slice(0,L);if(q){u=u.split(":");r=A(u.shift()||"",e);if(u.length&&"number"===typeof r)if(u=u.join(":"),y.test(u)){var x=parseInt((u.match(n)||["","-1"])[1],10);null!==r&&(r=b(r,x,f.decimalPoint,-1<u.indexOf(",")?f.thousandsSep:""))}else r=m.dateFormat(u,r);I.push(r)}else I.push(u);k=k.slice(L+1);r=(q=!q)?"}":"{"}I.push(k);return I.join("")},
|
|
64
|
+
numberFormat:Q}});N(h,"Core/Renderer/SVG/SVGElement.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Renderer/HTML/AST.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Color/Palette.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A){var z=d.animate,B=d.animObject,q=d.stop,k=D.deg2rad,e=D.doc,b=D.noop,r=D.svg,C=D.SVG_NS,y=D.win,n=A.addEvent,f=A.attr,m=A.createElement,I=A.css,L=A.defined,u=A.erase,x=A.extend,c=A.fireEvent,l=A.isArray,a=A.isFunction,g=A.isNumber,w=A.isString,J=A.merge,
|
|
65
|
+
K=A.objectEach,t=A.pick,G=A.pInt,O=A.syncTimeout,v=A.uniqueKey;d=function(){function H(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=C;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}H.prototype._defaultGetter=function(a){a=t(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a};H.prototype._defaultSetter=function(a,c,p){p.setAttribute(c,
|
|
66
|
+
a)};H.prototype.add=function(a){var c=this.renderer,p=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var M=this.zIndexSetter();M||(a?a.element:c.box).appendChild(p);if(this.onAdd)this.onAdd();return this};H.prototype.addClass=function(a,c){var p=c?"":this.attr("class")||"";a=(a||"").split(/ /g).reduce(function(a,c){-1===p.indexOf(c)&&a.push(c);return a},
|
|
67
|
+
p?[p]:[]).join(" ");a!==p&&this.attr("class",a);return this};H.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};H.prototype.align=function(a,c,p){var M={},g=this.renderer,l=g.alignedObjects,v,f,P;if(a){if(this.alignOptions=a,this.alignByTranslate=c,!p||w(p))this.alignTo=v=p||"renderer",u(l,this),l.push(this),p=void 0}else a=this.alignOptions,c=this.alignByTranslate,v=this.alignTo;p=t(p,g[v],"scrollablePlotBox"===v?g.plotBox:void 0,g);v=a.align;var m=
|
|
68
|
+
a.verticalAlign;g=(p.x||0)+(a.x||0);l=(p.y||0)+(a.y||0);"right"===v?f=1:"center"===v&&(f=2);f&&(g+=(p.width-(a.width||0))/f);M[c?"translateX":"x"]=Math.round(g);"bottom"===m?P=1:"middle"===m&&(P=2);P&&(l+=(p.height-(a.height||0))/P);M[c?"translateY":"y"]=Math.round(l);this[this.placed?"animate":"attr"](M);this.placed=!0;this.alignAttr=M;return this};H.prototype.alignSetter=function(a){var c={left:"start",center:"middle",right:"end"};c[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",
|
|
69
|
+
c[a]))};H.prototype.animate=function(a,c,p){var M=this,g=B(t(c,this.renderer.globalAnimation,!0));c=g.defer;t(e.hidden,e.msHidden,e.webkitHidden,!1)&&(g.duration=0);0!==g.duration?(p&&(g.complete=p),O(function(){M.element&&z(M,a,g)},c)):(this.attr(a,void 0,p),K(a,function(a,c){g.step&&g.step.call(this,a,{prop:c,pos:1,elem:this})},this));return this};H.prototype.applyTextOutline=function(a){var c=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(c.style.fill)));
|
|
70
|
+
var p=a.split(" ");a=p[p.length-1];if((p=p[0])&&"none"!==p&&D.svg){this.fakeTS=!0;this.ySetter=this.xSetter;p=p.replace(/(^[\d\.]+)(.*?)$/g,function(a,c,p){return 2*Number(c)+p});this.removeTextOutline();var M=e.createElementNS(C,"tspan");f(M,{"class":"highcharts-text-outline",fill:a,stroke:a,"stroke-width":p,"stroke-linejoin":"round"});[].forEach.call(c.childNodes,function(a){var c=a.cloneNode(!0);c.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(a){return c.removeAttribute(a)});
|
|
71
|
+
M.appendChild(c)});var g=e.createElementNS(C,"tspan");g.textContent="\u200b";["x","y"].forEach(function(a){var p=c.getAttribute(a);p&&g.setAttribute(a,p)});M.appendChild(g);c.insertBefore(M,c.firstChild)}};H.prototype.attr=function(a,c,p,g){var M=this.element,l=this.symbolCustomAttribs,t,v=this,f,w;if("string"===typeof a&&"undefined"!==typeof c){var m=a;a={};a[m]=c}"string"===typeof a?v=(this[a+"Getter"]||this._defaultGetter).call(this,a,M):(K(a,function(c,p){f=!1;g||q(this,p);this.symbolName&&-1!==
|
|
72
|
+
l.indexOf(p)&&(t||(this.symbolAttr(a),t=!0),f=!0);!this.rotation||"x"!==p&&"y"!==p||(this.doTransform=!0);f||(w=this[p+"Setter"]||this._defaultSetter,w.call(this,c,p,M),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(p)&&this.updateShadows(p,c,w))},this),this.afterSetters());p&&p.call(this);return v};H.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")};H.prototype.crisp=function(a,c){c=c||a.strokeWidth||
|
|
73
|
+
0;var p=Math.round(c)%2/2;a.x=Math.floor(a.x||this.x||0)+p;a.y=Math.floor(a.y||this.y||0)+p;a.width=Math.floor((a.width||this.width||0)-2*p);a.height=Math.floor((a.height||this.height||0)-2*p);L(a.strokeWidth)&&(a.strokeWidth=c);return a};H.prototype.complexColor=function(a,g,p){var M=this.renderer,t,f,w,m,b,n,P,G,x,H,e=[],u;c(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?f="radialGradient":a.linearGradient&&(f="linearGradient");if(f){w=a[f];b=M.gradients;n=a.stops;x=p.radialReference;
|
|
74
|
+
l(w)&&(a[f]=w={x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===f&&x&&!L(w.gradientUnits)&&(m=w,w=J(w,M.getRadialAttr(x,m),{gradientUnits:"userSpaceOnUse"}));K(w,function(a,c){"id"!==c&&e.push(c,a)});K(n,function(a){e.push(a)});e=e.join(",");if(b[e])H=b[e].attr("id");else{w.id=H=v();var c=b[e]=M.createElement(f).attr(w).add(M.defs);c.radAttr=m;c.stops=[];n.forEach(function(a){0===a[1].indexOf("rgba")?(t=F.parse(a[1]),P=t.get("rgb"),G=t.get("a")):(P=a[1],G=1);a=M.createElement("stop").attr({offset:a[0],
|
|
75
|
+
"stop-color":P,"stop-opacity":G}).add(c);c.stops.push(a)})}u="url("+M.url+"#"+H+")";p.setAttribute(g,u);p.gradient=e;a.toString=function(){return u}}})};H.prototype.css=function(a){var c=this.styles,p={},g=this.element,l=["textOutline","textOverflow","width"],t="",w=!c;a&&a.color&&(a.fill=a.color);c&&K(a,function(a,g){c&&c[g]!==a&&(p[g]=a,w=!0)});if(w){c&&(a=x(c,p));if(a)if(null===a.width||"auto"===a.width)delete this.textWidth;else if("text"===g.nodeName.toLowerCase()&&a.width)var v=this.textWidth=
|
|
76
|
+
G(a.width);this.styles=a;v&&!r&&this.renderer.forExport&&delete a.width;if(g.namespaceURI===this.SVG_NS){var m=function(a,c){return"-"+c.toLowerCase()};K(a,function(a,c){-1===l.indexOf(c)&&(t+=c.replace(/([A-Z])/g,m)+":"+a+";")});t&&f(g,"style",t)}else I(g,a);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline))}return this};H.prototype.dashstyleSetter=function(a){var c=this["stroke-width"];"inherit"===c&&(c=1);if(a=a&&a.toLowerCase()){var p=
|
|
77
|
+
a.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(a=p.length;a--;)p[a]=""+G(p[a])*t(c,NaN);a=p.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}};H.prototype.destroy=function(){var a=this,c=a.element||{},p=a.renderer,g=c.ownerSVGElement,l=p.isSVG&&"SPAN"===c.nodeName&&a.parentGroup||
|
|
78
|
+
void 0;c.onclick=c.onmouseout=c.onmouseover=c.onmousemove=c.point=null;q(a);if(a.clipPath&&g){var t=a.clipPath;[].forEach.call(g.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(t.element.id)&&a.removeAttribute("clip-path")});a.clipPath=t.destroy()}if(a.stops){for(g=0;g<a.stops.length;g++)a.stops[g].destroy();a.stops.length=0;a.stops=void 0}a.safeRemoveChild(c);for(p.styledMode||a.destroyShadows();l&&l.div&&0===l.div.childNodes.length;)c=l.parentGroup,
|
|
79
|
+
a.safeRemoveChild(l.div),delete l.div,l=c;a.alignTo&&u(p.alignedObjects,a);K(a,function(c,p){a[p]&&a[p].parentGroup===a&&a[p].destroy&&a[p].destroy();delete a[p]})};H.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0};H.prototype.destroyTextPath=function(a,c){var p=a.getElementsByTagName("text")[0];if(p){if(p.removeAttribute("dx"),p.removeAttribute("dy"),c.element.setAttribute("id",""),this.textPathWrapper&&p.getElementsByTagName("textPath").length){for(a=
|
|
80
|
+
this.textPathWrapper.element.childNodes;a.length;)p.appendChild(a[0]);p.removeChild(this.textPathWrapper.element)}}else if(a.getAttribute("dx")||a.getAttribute("dy"))a.removeAttribute("dx"),a.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};H.prototype.dSetter=function(a,c,p){l(a)&&("string"===typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(a,c,p){return c&&c.join?(p?a+" ":"")+c.join(" "):(c||"").toString()},""));
|
|
81
|
+
/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[c]!==a&&(p.setAttribute(c,a),this[c]=a)};H.prototype.fadeOut=function(a){var c=this;c.animate({opacity:0},{duration:t(a,150),complete:function(){c.attr({y:-9999}).hide()}})};H.prototype.fillSetter=function(a,c,p){"string"===typeof a?p.setAttribute(c,a):a&&this.complexColor(a,c,p)};H.prototype.getBBox=function(c,g){var p=this.renderer,M=this.element,l=this.styles,w=this.textStr,f=p.cache,v=p.cacheKeys,m=M.namespaceURI===this.SVG_NS;g=t(g,this.rotation,0);var b=
|
|
82
|
+
p.styledMode?M&&H.prototype.getStyle.call(M,"font-size"):l&&l.fontSize,n;if(L(w)){var G=w.toString();-1===G.indexOf("<")&&(G=G.replace(/[0-9]/g,"0"));G+=["",g,b,this.textWidth,l&&l.textOverflow,l&&l.fontWeight].join()}G&&!c&&(n=f[G]);if(!n){if(m||p.forExport){try{var e=this.fakeTS&&function(a){var c=M.querySelector(".highcharts-text-outline");c&&I(c,{display:a})};a(e)&&e("none");n=M.getBBox?x({},M.getBBox()):{width:M.offsetWidth,height:M.offsetHeight};a(e)&&e("")}catch(X){""}if(!n||0>n.width)n={width:0,
|
|
83
|
+
height:0}}else n=this.htmlGetBBox();p.isSVG&&(c=n.width,p=n.height,m&&(n.height=p={"11px,17":14,"13px,20":16}[l&&l.fontSize+","+Math.round(p)]||p),g&&(l=g*k,n.width=Math.abs(p*Math.sin(l))+Math.abs(c*Math.cos(l)),n.height=Math.abs(p*Math.cos(l))+Math.abs(c*Math.sin(l))));if(G&&0<n.height){for(;250<v.length;)delete f[v.shift()];f[G]||v.push(G);f[G]=n}}return n};H.prototype.getStyle=function(a){return y.getComputedStyle(this.element||this,"").getPropertyValue(a)};H.prototype.hasClass=function(a){return-1!==
|
|
84
|
+
(""+this.attr("class")).split(" ").indexOf(a)};H.prototype.hide=function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};H.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};H.prototype.init=function(a,g){this.element="span"===g?m(g):e.createElementNS(this.SVG_NS,g);this.renderer=a;c(this,"afterInit")};H.prototype.invert=function(a){this.inverted=a;this.updateTransform();return this};H.prototype.on=function(a,c){var p=this.onEvents;if(p[a])p[a]();p[a]=n(this.element,
|
|
85
|
+
a,c);return this};H.prototype.opacitySetter=function(a,c,p){this.opacity=a=Number(Number(a).toFixed(3));p.setAttribute(c,a)};H.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(w(a)?new RegExp("(^| )"+a+"( |$)"):a," ").replace(/ +/g," ").trim())};H.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)};H.prototype.safeRemoveChild=function(a){var c=a.parentNode;c&&c.removeChild(a)};
|
|
86
|
+
H.prototype.setRadialReference=function(a){var c=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;c&&c.radAttr&&c.animate(this.renderer.getRadialAttr(a,c.radAttr));return this};H.prototype.setTextPath=function(a,c){var p=this.element,M=this.text?this.text.element:p,l={textAnchor:"text-anchor"},t=!1,w=this.textPathWrapper,f=!w;c=J(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},c);var m=h.filterUserAttributes(c.attributes);
|
|
87
|
+
if(a&&c&&c.enabled){w&&null===w.element.parentNode?(f=!0,w=w.destroy()):w&&this.removeTextOutline.call(w.parentGroup);this.options&&this.options.padding&&(m.dx=-this.options.padding);w||(this.textPathWrapper=w=this.renderer.createElement("textPath"),t=!0);var n=w.element;(c=a.element.getAttribute("id"))||a.element.setAttribute("id",c=v());if(f)for(M.setAttribute("y",0),g(m.dx)&&M.setAttribute("x",-m.dx),a=[].slice.call(M.childNodes),f=0;f<a.length;f++){var G=a[f];G.nodeType!==Node.TEXT_NODE&&"tspan"!==
|
|
88
|
+
G.nodeName||n.appendChild(G)}t&&w&&w.add({element:M});n.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+c);L(m.dy)&&(n.parentNode.setAttribute("dy",m.dy),delete m.dy);L(m.dx)&&(n.parentNode.setAttribute("dx",m.dx),delete m.dx);K(m,function(a,c){n.setAttribute(l[c]||c,a)});p.removeAttribute("transform");this.removeTextOutline.call(w);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=b}else w&&(delete this.updateTransform,
|
|
89
|
+
delete this.applyTextOutline,this.destroyTextPath(p,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};H.prototype.shadow=function(a,c,p){var g=[],l=this.element,t=this.oldShadowOptions,w={color:E.neutralColor100,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},v=!1,m;!0===a?m=w:"object"===typeof a&&(m=x(w,a));m&&(m&&t&&K(m,function(a,c){a!==t[c]&&(v=!0)}),v&&this.destroyShadows(),
|
|
90
|
+
this.oldShadowOptions=m);if(!m)this.destroyShadows();else if(!this.shadows){var b=m.opacity/m.width;var n=this.parentInverted?"translate("+m.offsetY+", "+m.offsetX+")":"translate("+m.offsetX+", "+m.offsetY+")";for(w=1;w<=m.width;w++){var G=l.cloneNode(!1);var e=2*m.width+1-2*w;f(G,{stroke:a.color||E.neutralColor100,"stroke-opacity":b*w,"stroke-width":e,transform:n,fill:"none"});G.setAttribute("class",(G.getAttribute("class")||"")+" highcharts-shadow");p&&(f(G,"height",Math.max(f(G,"height")-e,0)),
|
|
91
|
+
G.cutHeight=e);c?c.element.appendChild(G):l.parentNode&&l.parentNode.insertBefore(G,l);g.push(G)}this.shadows=g}return this};H.prototype.show=function(a){return this.attr({visibility:a?"inherit":"visible"})};H.prototype.strokeSetter=function(a,c,p){this[c]=a;this.stroke&&this["stroke-width"]?(H.prototype.fillSetter.call(this,this.stroke,"stroke",p),p.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===c&&0===a&&this.hasStroke?(p.removeAttribute("stroke"),this.hasStroke=
|
|
92
|
+
!1):this.renderer.styledMode&&this["stroke-width"]&&(p.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};H.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),c=0;if(a.indexOf("px")===a.length-2)c=G(a);else if(""!==a){var p=e.createElementNS(C,"rect");f(p,{width:a,"stroke-width":0});this.element.parentNode.appendChild(p);c=p.getBBox().width;p.parentNode.removeChild(p)}return c};H.prototype.symbolAttr=
|
|
93
|
+
function(a){var c=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(p){c[p]=t(a[p],c[p])});c.attr({d:c.renderer.symbols[c.symbolName](c.x,c.y,c.width,c.height,c)})};H.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))};H.prototype.titleSetter=function(a){var c=this.element,p=c.getElementsByTagName("title")[0]||e.createElementNS(this.SVG_NS,"title");c.insertBefore?c.insertBefore(p,
|
|
94
|
+
c.firstChild):c.appendChild(p);p.textContent=String(t(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")};H.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};H.prototype.translate=function(a,c){return this.attr({translateX:a,translateY:c})};H.prototype.updateShadows=function(a,c,p){var g=this.shadows;if(g)for(var l=g.length;l--;)p.call(g[l],"height"===a?Math.max(c-(g[l].cutHeight||0),0):"d"===a?this.d:c,a,g[l])};H.prototype.updateTransform=
|
|
95
|
+
function(){var a=this.scaleX,c=this.scaleY,p=this.inverted,g=this.rotation,l=this.matrix,w=this.element,f=this.translateX||0,v=this.translateY||0;p&&(f+=this.width,v+=this.height);f=["translate("+f+","+v+")"];L(l)&&f.push("matrix("+l.join(",")+")");p?f.push("rotate(90) scale(-1,1)"):g&&f.push("rotate("+g+" "+t(this.rotationOriginX,w.getAttribute("x"),0)+" "+t(this.rotationOriginY,w.getAttribute("y")||0)+")");(L(a)||L(c))&&f.push("scale("+t(a,1)+" "+t(c,1)+")");f.length&&w.setAttribute("transform",
|
|
96
|
+
f.join(" "))};H.prototype.visibilitySetter=function(a,c,p){"inherit"===a?p.removeAttribute(c):this[c]!==a&&p.setAttribute(c,a);this[c]=a};H.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};H.prototype.zIndexSetter=function(a,c){var p=this.renderer,g=this.parentGroup,l=(g||p).element||p.box,w=this.element;p=l===p.box;var t=!1;var f=this.added;var v;L(a)?(w.setAttribute("data-z-index",a),a=+a,this[c]===a&&(f=!1)):L(this[c])&&
|
|
97
|
+
w.removeAttribute("data-z-index");this[c]=a;if(f){(a=this.zIndex)&&g&&(g.handleZ=!0);c=l.childNodes;for(v=c.length-1;0<=v&&!t;v--){g=c[v];f=g.getAttribute("data-z-index");var m=!L(f);if(g!==w)if(0>a&&m&&!p&&!v)l.insertBefore(w,c[v]),t=!0;else if(G(f)<=a||m&&(!L(a)||0<=a))l.insertBefore(w,c[v+1]||null),t=!0}t||(l.insertBefore(w,c[p?3:0]||null),t=!0)}return t};return H}();d.prototype["stroke-widthSetter"]=d.prototype.strokeSetter;d.prototype.yGetter=d.prototype.xGetter;d.prototype.matrixSetter=d.prototype.rotationOriginXSetter=
|
|
98
|
+
d.prototype.rotationOriginYSetter=d.prototype.rotationSetter=d.prototype.scaleXSetter=d.prototype.scaleYSetter=d.prototype.translateXSetter=d.prototype.translateYSetter=d.prototype.verticalAlignSetter=function(a,c){this[c]=a;this.doTransform=!0};"";return d});N(h,"Core/Renderer/RendererRegistry.js",[h["Core/Globals.js"]],function(d){var h;(function(h){var Q;h.rendererTypes={};h.getRendererType=function(d){void 0===d&&(d=Q);return h.rendererTypes[d]||h.rendererTypes[Q]};h.registerRendererType=function(E,
|
|
99
|
+
A,z){h.rendererTypes[E]=A;if(!Q||z)Q=E,d.Renderer=A}})(h||(h={}));return h});N(h,"Core/Renderer/SVG/SVGLabel.js",[h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(d,h){var Q=this&&this.__extends||function(){var k=function(e,b){k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var r in e)e.hasOwnProperty(r)&&(b[r]=e[r])};return k(e,b)};return function(e,b){function r(){this.constructor=e}k(e,b);e.prototype=null===b?Object.create(b):
|
|
100
|
+
(r.prototype=b.prototype,new r)}}(),D=h.defined,E=h.extend,A=h.isNumber,z=h.merge,B=h.pick,q=h.removeEvent;return function(k){function e(b,r,q,y,n,f,m,I,L,u){var x=k.call(this)||this;x.paddingLeftSetter=x.paddingSetter;x.paddingRightSetter=x.paddingSetter;x.init(b,"g");x.textStr=r;x.x=q;x.y=y;x.anchorX=f;x.anchorY=m;x.baseline=L;x.className=u;x.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label");u&&x.addClass("highcharts-"+u);x.text=b.text("",0,0,I).attr({zIndex:1});var c;"string"===
|
|
101
|
+
typeof n&&((c=/^url\((.*?)\)$/.test(n))||x.renderer.symbols[n])&&(x.symbolKey=n);x.bBox=e.emptyBBox;x.padding=3;x.baselineOffset=0;x.needsBox=b.styledMode||c;x.deferredAttr={};x.alignFactor=0;return x}Q(e,k);e.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}))};e.prototype.anchorXSetter=function(b,e){this.anchorX=b;this.boxAttr(e,Math.round(b)-this.getCrispAdjust()-this.xSetting)};e.prototype.anchorYSetter=
|
|
102
|
+
function(b,e){this.anchorY=b;this.boxAttr(e,b-this.ySetting)};e.prototype.boxAttr=function(b,e){this.box?this.box.attr(b,e):this.deferredAttr[b]=e};e.prototype.css=function(b){if(b){var r={};b=z(b);e.textProps.forEach(function(e){"undefined"!==typeof b[e]&&(r[e]=b[e],delete b[e])});this.text.css(r);var k="width"in r;"fontSize"in r||"fontWeight"in r?this.updateTextPadding():k&&this.updateBoxSize()}return d.prototype.css.call(this,b)};e.prototype.destroy=function(){q(this.element,"mouseenter");q(this.element,
|
|
103
|
+
"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());d.prototype.destroy.call(this)};e.prototype.fillSetter=function(b,e){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(e,b)};e.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,e=B(this.paddingLeft,b);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-b}};e.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&
|
|
104
|
+
this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};e.prototype.heightSetter=function(b){this.heightSetting=b};e.prototype.on=function(b,e){var r=this,k=r.text,n=k&&"SPAN"===k.element.tagName?k:void 0;if(n){var f=function(f){("mouseenter"===b||"mouseleave"===b)&&f.relatedTarget instanceof Element&&(r.element.compareDocumentPosition(f.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||n.element.compareDocumentPosition(f.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||
|
|
105
|
+
e.call(r.element,f)};n.on(b,f)}d.prototype.on.call(r,b,f||e);return r};e.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:D(b)?b:"",x:this.x,y:this.y});this.box&&D(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};e.prototype.paddingSetter=function(b,e){A(b)?b!==this[e]&&(this[e]=b,this.updateTextPadding()):this[e]=void 0};e.prototype.rSetter=function(b,e){this.boxAttr(e,b)};e.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(),
|
|
106
|
+
this.box&&this.box.shadow(b));return this};e.prototype.strokeSetter=function(b,e){this.stroke=b;this.boxAttr(e,b)};e.prototype["stroke-widthSetter"]=function(b,e){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(e,b)};e.prototype["text-alignSetter"]=function(b){this.textAlign=b};e.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};e.prototype.updateBoxSize=function(){var b=this.text.element.style,k={},q=this.padding,y=this.bBox=A(this.widthSetting)&&
|
|
107
|
+
A(this.heightSetting)&&!this.textAlign||!D(this.text.textStr)?e.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||y.height||0)+2*q;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=q+Math.min((this.text.firstLineMetrics||b).b,y.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(q=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),q.addClass(("button"===
|
|
108
|
+
this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),q.add(this)),q=this.getCrispAdjust(),k.x=q,k.y=(this.baseline?-this.baselineOffset:0)+q,k.width=Math.round(this.width),k.height=Math.round(this.height),this.box.attr(E(k,this.deferredAttr)),this.deferredAttr={})};e.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,k=B(this.paddingLeft,this.padding);D(this.widthSetting)&&this.bBox&&
|
|
109
|
+
("center"===this.textAlign||"right"===this.textAlign)&&(k+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(k!==b.x||e!==b.y)b.attr("x",k),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof e&&b.attr("y",e);b.x=k;b.y=e};e.prototype.widthSetter=function(b){this.widthSetting=A(b)?b:void 0};e.prototype.getPaddedWidth=function(){var b=this.padding,e=B(this.paddingLeft,b);b=B(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+e+b};e.prototype.xSetter=
|
|
110
|
+
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)};e.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};e.emptyBBox={width:0,height:0,x:0,y:0};e.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return e}(d)});N(h,"Core/Renderer/SVG/Symbols.js",
|
|
111
|
+
[h["Core/Utilities.js"]],function(d){function h(d,q,k,e,b){var r=[];if(b){var C=b.start||0,y=z(b.r,k);k=z(b.r,e||k);var n=(b.end||0)-.001;e=b.innerR;var f=z(b.open,.001>Math.abs((b.end||0)-C-2*Math.PI)),m=Math.cos(C),I=Math.sin(C),L=Math.cos(n),u=Math.sin(n);C=z(b.longArc,.001>n-C-Math.PI?0:1);r.push(["M",d+y*m,q+k*I],["A",y,k,0,C,z(b.clockwise,1),d+y*L,q+k*u]);E(e)&&r.push(f?["M",d+e*L,q+e*u]:["L",d+e*L,q+e*u],["A",e,e,0,C,E(b.clockwise)?1-b.clockwise:0,d+e*m,q+e*I]);f||r.push(["Z"])}return r}function F(d,
|
|
112
|
+
q,k,e,b){return b&&b.r?D(d,q,k,e,b):[["M",d,q],["L",d+k,q],["L",d+k,q+e],["L",d,q+e],["Z"]]}function D(d,q,k,e,b){b=b&&b.r||0;return[["M",d+b,q],["L",d+k-b,q],["C",d+k,q,d+k,q,d+k,q+b],["L",d+k,q+e-b],["C",d+k,q+e,d+k,q+e,d+k-b,q+e],["L",d+b,q+e],["C",d,q+e,d,q+e,d,q+e-b],["L",d,q+b],["C",d,q,d,q,d+b,q]]}var E=d.defined,A=d.isNumber,z=d.pick;return{arc:h,callout:function(d,q,k,e,b){var r=Math.min(b&&b.r||0,k,e),C=r+6,y=b&&b.anchorX;b=b&&b.anchorY||0;var n=D(d,q,k,e,{r:r});if(!A(y))return n;d+y>=k?
|
|
113
|
+
b>q+C&&b<q+e-C?n.splice(3,1,["L",d+k,b-6],["L",d+k+6,b],["L",d+k,b+6],["L",d+k,q+e-r]):n.splice(3,1,["L",d+k,e/2],["L",y,b],["L",d+k,e/2],["L",d+k,q+e-r]):0>=d+y?b>q+C&&b<q+e-C?n.splice(7,1,["L",d,b+6],["L",d-6,b],["L",d,b-6],["L",d,q+r]):n.splice(7,1,["L",d,e/2],["L",y,b],["L",d,e/2],["L",d,q+r]):b&&b>e&&y>d+C&&y<d+k-C?n.splice(5,1,["L",y+6,q+e],["L",y,q+e+6],["L",y-6,q+e],["L",d+r,q+e]):b&&0>b&&y>d+C&&y<d+k-C&&n.splice(1,1,["L",y-6,q],["L",y,q-6],["L",y+6,q],["L",k-r,q]);return n},circle:function(d,
|
|
114
|
+
q,k,e){return h(d+k/2,q+e/2,k/2,e/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(d,q,k,e){return[["M",d+k/2,q],["L",d+k,q+e/2],["L",d+k/2,q+e],["L",d,q+e/2],["Z"]]},rect:F,roundedRect:D,square:F,triangle:function(d,q,k,e){return[["M",d+k/2,q],["L",d+k,q+e],["L",d,q+e],["Z"]]},"triangle-down":function(d,q,k,e){return[["M",d,q],["L",d+k,q],["L",d+k/2,q+e],["Z"]]}}});N(h,"Core/Renderer/SVG/TextBuilder.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,
|
|
115
|
+
h,F){var Q=h.doc,E=h.SVG_NS,A=F.attr,z=F.isString,B=F.objectEach,q=F.pick;return function(){function k(e){var b=e.styles;this.renderer=e.renderer;this.svgElement=e;this.width=e.textWidth;this.textLineHeight=b&&b.lineHeight;this.textOutline=b&&b.textOutline;this.ellipsis=!(!b||"ellipsis"!==b.textOverflow);this.noWrap=!(!b||"nowrap"!==b.whiteSpace);this.fontSize=b&&b.fontSize}k.prototype.buildSVG=function(){var e=this.svgElement,b=e.element,k=e.renderer,C=q(e.textStr,"").toString(),y=-1!==C.indexOf("<"),
|
|
116
|
+
n=b.childNodes,f=n.length;k=this.width&&!e.added&&k.box;var m=/<br.*?>/g;var I=[C,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(I!==e.textCache){e.textCache=I;for(delete e.actualWidth;f--;)b.removeChild(n[f]);y||this.ellipsis||this.width||-1!==C.indexOf(" ")&&(!this.noWrap||m.test(C))?""!==C&&(k&&k.appendChild(b),C=new d(C),this.modifyTree(C.nodes),C.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&&
|
|
117
|
+
e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),k&&k.removeChild(b)):b.appendChild(Q.createTextNode(this.unescapeEntities(C)));z(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}};k.prototype.modifyDOM=function(){var e=this,b=this.svgElement,k=A(b.element,"x");b.firstLineMetrics=void 0;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(f,m){f.nextSibling&&f.previousSibling&&(0===m&&1===f.previousSibling.nodeType&&(b.firstLineMetrics=
|
|
118
|
+
b.renderer.fontMetrics(void 0,f.previousSibling)),A(f,{dy:e.getLineHeight(f.nextSibling),x:k}))});var q=this.width||0;if(q){var y=function(f,m){var n=f.textContent||"",r=n.replace(/([^\^])-/g,"$1- ").split(" "),u=!e.noWrap&&(1<r.length||1<b.element.childNodes.length),x=e.getLineHeight(m),c=0,l=b.actualWidth;if(e.ellipsis)n&&e.truncate(f,n,void 0,0,Math.max(0,q-parseInt(e.fontSize||12,10)),function(a,c){return a.substring(0,c)+"\u2026"});else if(u){n=[];for(u=[];m.firstChild&&m.firstChild!==f;)u.push(m.firstChild),
|
|
119
|
+
m.removeChild(m.firstChild);for(;r.length;)r.length&&!e.noWrap&&0<c&&(n.push(f.textContent||""),f.textContent=r.join(" ").replace(/- /g,"-")),e.truncate(f,void 0,r,0===c?l||0:0,q,function(a,c){return r.slice(0,c).join(" ").replace(/- /g,"-")}),l=b.actualWidth,c++;u.forEach(function(a){m.insertBefore(a,f)});n.forEach(function(a){m.insertBefore(Q.createTextNode(a),f);a=Q.createElementNS(E,"tspan");a.textContent="\u200b";A(a,{dy:x,x:k});m.insertBefore(a,f)})}},n=function(f){[].slice.call(f.childNodes).forEach(function(m){m.nodeType===
|
|
120
|
+
Node.TEXT_NODE?y(m,f):(-1!==m.className.baseVal.indexOf("highcharts-br")&&(b.actualWidth=0),n(m))})};n(b.element)}};k.prototype.getLineHeight=function(e){var b;e=e.nodeType===Node.TEXT_NODE?e.parentElement:e;this.renderer.styledMode||(b=e&&/(px|em)$/.test(e.style.fontSize)?e.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(b,e||this.svgElement.element).h};k.prototype.modifyTree=function(e){var b=
|
|
121
|
+
this,k=function(r,q){var n=r.tagName,f=b.renderer.styledMode,m=r.attributes||{};if("b"===n||"strong"===n)f?m["class"]="highcharts-strong":m.style="font-weight:bold;"+(m.style||"");else if("i"===n||"em"===n)f?m["class"]="highcharts-emphasized":m.style="font-style:italic;"+(m.style||"");z(m.style)&&(m.style=m.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===n&&(m["class"]="highcharts-br",r.textContent="\u200b",(q=e[q+1])&&q.textContent&&(q.textContent=q.textContent.replace(/^ +/gm,"")));"#text"!==
|
|
122
|
+
n&&"a"!==n&&(r.tagName="tspan");r.attributes=m;r.children&&r.children.filter(function(f){return"#text"!==f.tagName}).forEach(k)};for(e.forEach(k);e[0]&&"tspan"===e[0].tagName&&!e[0].children;)e.splice(0,1)};k.prototype.truncate=function(e,b,k,q,d,n){var f=this.svgElement,m=f.renderer,r=f.rotation,y=[],u=k?1:0,x=(b||k||"").length,c=x,l,a=function(a,c){c=c||a;var g=e.parentNode;if(g&&"undefined"===typeof y[c])if(g.getSubStringLength)try{y[c]=q+g.getSubStringLength(0,k?c+1:c)}catch(t){""}else m.getSpanWidth&&
|
|
123
|
+
(e.textContent=n(b||k,a),y[c]=q+m.getSpanWidth(f,e));return y[c]};f.rotation=0;var g=a(e.textContent.length);if(q+g>d){for(;u<=x;)c=Math.ceil((u+x)/2),k&&(l=n(k,c)),g=a(c,l&&l.length-1),u===x?u=x+1:g>d?x=c-1:u=c;0===x?e.textContent="":b&&x===b.length-1||(e.textContent=l||n(b||k,c))}k&&k.splice(0,c);f.actualWidth=g;f.rotation=r};k.prototype.unescapeEntities=function(e,b){B(this.renderer.escapes,function(k,q){b&&-1!==b.indexOf(k)||(e=e.toString().replace(new RegExp(k,"g"),q))});return e};return k}()});
|
|
124
|
+
N(h,"Core/Renderer/SVG/SVGRenderer.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Color/Palette.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGLabel.js"],h["Core/Renderer/SVG/Symbols.js"],h["Core/Renderer/SVG/TextBuilder.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A,z,B,q,k){var e=F.charts,b=F.deg2rad,r=F.doc,C=F.isFirefox,y=F.isMS,n=F.isWebKit,f=F.noop,m=F.SVG_NS,I=F.symbolSizes,L=F.win,u=k.addEvent,
|
|
125
|
+
x=k.attr,c=k.createElement,l=k.css,a=k.defined,g=k.destroyObjectProperties,w=k.extend,J=k.isArray,K=k.isNumber,t=k.isObject,G=k.isString,O=k.merge,v=k.pick,H=k.pInt,P=k.uniqueKey,S;F=function(){function p(a,c,p,g,l,w,t){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(a,c,p,g,l,w,t)}p.prototype.init=function(a,c,p,g,w,t,f){var M=this.createElement("svg").attr({version:"1.1",
|
|
126
|
+
"class":"highcharts-root"}),v=M.element;f||M.css(this.getStyle(g));a.appendChild(v);x(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&x(v,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=v;this.boxWrapper=M;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(r.createTextNode("Created with Highcharts 9.1.2"));this.defs=this.createElement("defs").add();this.allowHTML=t;this.forExport=w;this.styledMode=f;this.gradients={};this.cache={};this.cacheKeys=
|
|
127
|
+
[];this.imgCount=0;this.setSize(c,p,!1);var m;C&&a.getBoundingClientRect&&(c=function(){l(a,{left:0,top:0});m=a.getBoundingClientRect();l(a,{left:Math.ceil(m.left)-m.left+"px",top:Math.ceil(m.top)-m.top+"px"})},c(),this.unSubPixelFix=u(L,"resize",c))};p.prototype.definition=function(a){return(new d([a])).addToDOM(this.defs.element)};p.prototype.getReferenceURL=function(){if((C||n)&&r.getElementsByTagName("base").length){if(!a(S)){var c=P();c=(new d([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",
|
|
128
|
+
children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+c+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(r.body);l(c,{position:"fixed",top:0,left:0,zIndex:9E5});var p=r.elementFromPoint(6,6);S="hitme"===(p&&p.id);r.body.removeChild(c)}if(S)return L.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};p.prototype.getStyle=
|
|
129
|
+
function(a){return this.style=w({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)};p.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};p.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};p.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();g(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=
|
|
130
|
+
null};p.prototype.createElement=function(a){var c=new this.Element;c.init(this,a);return c};p.prototype.getRadialAttr=function(a,c){return{cx:a[0]-a[2]/2+(c.cx||0)*a[2],cy:a[1]-a[2]/2+(c.cy||0)*a[2],r:(c.r||0)*a[2]}};p.prototype.buildText=function(a){(new q(a)).buildSVG()};p.prototype.getContrast=function(a){a=h.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"};p.prototype.button=function(a,c,p,g,l,t,f,v,m,b){var M=this.label(a,c,p,m,void 0,void 0,b,void 0,"button"),
|
|
131
|
+
n=this.styledMode,e=0,G=l?O(l):{};a=G&&G.style||{};G=d.filterUserAttributes(G);M.attr(O({padding:8,r:2},G));if(!n){G=O({fill:D.neutralColor3,stroke:D.neutralColor20,"stroke-width":1,style:{color:D.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:a},G);var T=G.style;delete G.style;t=O(G,{fill:D.neutralColor10},d.filterUserAttributes(t||{}));var x=t.style;delete t.style;f=O(G,{fill:D.highlightColor10,style:{color:D.neutralColor100,fontWeight:"bold"}},d.filterUserAttributes(f||{}));var H=
|
|
132
|
+
f.style;delete f.style;v=O(G,{style:{color:D.neutralColor20}},d.filterUserAttributes(v||{}));var k=v.style;delete v.style}u(M.element,y?"mouseover":"mouseenter",function(){3!==e&&M.setState(1)});u(M.element,y?"mouseout":"mouseleave",function(){3!==e&&M.setState(e)});M.setState=function(a){1!==a&&(M.state=e=a);M.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);n||M.attr([G,t,f,v][a||0]).css([T,x,H,k][a||0])};
|
|
133
|
+
n||M.attr(G).css(w({cursor:"default"},T));return M.on("touchstart",function(a){return a.stopPropagation()}).on("click",function(a){3!==e&&g.call(M,a)})};p.prototype.crispLine=function(c,p,g){void 0===g&&(g="round");var l=c[0],M=c[1];a(l[1])&&l[1]===M[1]&&(l[1]=M[1]=Math[g](l[1])-p%2/2);a(l[2])&&l[2]===M[2]&&(l[2]=M[2]=Math[g](l[2])+p%2/2);return c};p.prototype.path=function(a){var c=this.styledMode?{}:{fill:"none"};J(a)?c.d=a:t(a)&&w(c,a);return this.createElement("path").attr(c)};p.prototype.circle=
|
|
134
|
+
function(a,c,p){a=t(a)?a:"undefined"===typeof a?{}:{x:a,y:c,r:p};c=this.createElement("circle");c.xSetter=c.ySetter=function(a,c,p){p.setAttribute("c"+c,a)};return c.attr(a)};p.prototype.arc=function(a,c,p,g,l,w){t(a)?(g=a,c=g.y,p=g.r,a=g.x):g={innerR:g,start:l,end:w};a=this.symbol("arc",a,c,p,p,g);a.r=p;return a};p.prototype.rect=function(a,c,p,g,l,w){l=t(a)?a.r:l;var M=this.createElement("rect");a=t(a)?a:"undefined"===typeof a?{}:{x:a,y:c,width:Math.max(p,0),height:Math.max(g,0)};this.styledMode||
|
|
135
|
+
("undefined"!==typeof w&&(a["stroke-width"]=w,a=M.crisp(a)),a.fill="none");l&&(a.r=l);M.rSetter=function(a,c,p){M.r=a;x(p,{rx:a,ry:a})};M.rGetter=function(){return M.r||0};return M.attr(a)};p.prototype.setSize=function(a,c,p){this.width=a;this.height=c;this.boxWrapper.animate({width:a,height:c},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:v(p,!0)?void 0:0});this.alignElements()};p.prototype.g=function(a){var c=this.createElement("g");return a?c.attr({"class":"highcharts-"+
|
|
136
|
+
a}):c};p.prototype.image=function(a,c,p,g,l,t){var M={preserveAspectRatio:"none"},f=function(a,c){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink","href",c):a.setAttribute("hc-svg-href",c)};1<arguments.length&&w(M,{x:c,y:p,width:g,height:l});var v=this.createElement("image").attr(M);M=function(c){f(v.element,a);t.call(v,c)};if(t){f(v.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var m=new L.Image;u(m,"load",M);m.src=a;m.complete&&M({})}else f(v.element,
|
|
137
|
+
a);return v};p.prototype.symbol=function(p,g,t,f,m,b){var M=this,n=/^url\((.*?)\)$/,G=n.test(p),T=!G&&(this.symbols[p]?p:"circle"),x=T&&this.symbols[T],H;if(x){"number"===typeof g&&(H=x.call(this.symbols,Math.round(g||0),Math.round(t||0),f||0,m||0,b));var k=this.path(H);M.styledMode||k.attr("fill","none");w(k,{symbolName:T||void 0,x:g,y:t,width:f,height:m});b&&w(k,b)}else if(G){var u=p.match(n)[1];var J=k=this.image(u);J.imgwidth=v(I[u]&&I[u].width,b&&b.width);J.imgheight=v(I[u]&&I[u].height,b&&b.height);
|
|
138
|
+
var K=function(a){return a.attr({width:a.width,height:a.height})};["width","height"].forEach(function(c){J[c+"Setter"]=function(c,p){var g=this["img"+p];this[p]=c;a(g)&&(b&&"within"===b.backgroundSize&&this.width&&this.height&&(g=Math.round(g*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(p,g),this.alignByTranslate||(c=((this[p]||0)-g)/2,this.attr("width"===p?{translateX:c}:{translateY:c})))}});a(g)&&J.attr({x:g,y:t});J.isImg=!0;a(J.imgwidth)&&
|
|
139
|
+
a(J.imgheight)?K(J):(J.attr({width:0,height:0}),c("img",{onload:function(){var a=e[M.chartIndex];0===this.width&&(l(this,{position:"absolute",top:"-999em"}),r.body.appendChild(this));I[u]={width:this.width,height:this.height};J.imgwidth=this.width;J.imgheight=this.height;J.element&&K(J);this.parentNode&&this.parentNode.removeChild(this);M.imgCount--;if(!M.imgCount&&a&&!a.hasLoaded)a.onload()},src:u}),this.imgCount++)}return k};p.prototype.clipRect=function(a,c,p,g){var l=P()+"-",t=this.createElement("clipPath").attr({id:l}).add(this.defs);
|
|
140
|
+
a=this.rect(a,c,p,g,0).add(t);a.id=l;a.clipPath=t;a.count=0;return a};p.prototype.text=function(c,p,g,l){var t={};if(l&&(this.allowHTML||!this.forExport))return this.html(c,p,g);t.x=Math.round(p||0);g&&(t.y=Math.round(g));a(c)&&(t.text=c);c=this.createElement("text").attr(t);l||(c.xSetter=function(a,c,p){for(var g=p.getElementsByTagName("tspan"),l=p.getAttribute(c),t=0,w;t<g.length;t++)w=g[t],w.getAttribute(c)===l&&w.setAttribute(c,a);p.setAttribute(c,a)});return c};p.prototype.fontMetrics=function(a,
|
|
141
|
+
c){a=!this.styledMode&&/px/.test(a)||!L.getComputedStyle?a||c&&c.style&&c.style.fontSize||this.style&&this.style.fontSize:c&&A.prototype.getStyle.call(c,"font-size");a=/px/.test(a)?H(a):12;c=24>a?a+3:Math.round(1.2*a);return{h:c,b:Math.round(.8*c),f:a}};p.prototype.rotCorr=function(a,c,p){var g=a;c&&p&&(g=Math.max(g*Math.cos(c*b),4));return{x:-a/3*Math.sin(c*b),y:g}};p.prototype.pathToSegments=function(a){for(var c=[],p=[],g={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l<a.length;l++)G(p[0])&&K(a[l])&&
|
|
142
|
+
p.length===g[p[0].toUpperCase()]&&a.splice(l,0,p[0].replace("M","L").replace("m","l")),"string"===typeof a[l]&&(p.length&&c.push(p.slice(0)),p.length=0),p.push(a[l]);c.push(p.slice(0));return c};p.prototype.label=function(a,c,p,g,l,t,w,f,v){return new z(this,a,c,p,g,l,t,w,f,v)};p.prototype.alignElements=function(){this.alignedObjects.forEach(function(a){return a.align()})};return p}();w(F.prototype,{Element:A,SVG_NS:m,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:B,
|
|
143
|
+
draw:f});E.registerRendererType("svg",F,!0);"";return F});N(h,"Core/Renderer/HTML/HTMLElement.js",[h["Core/Globals.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(d,h,F){var Q=this&&this.__extends||function(){var b=function(e,n){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var b in m)m.hasOwnProperty(b)&&(f[b]=m[b])};return b(e,n)};return function(e,n){function f(){this.constructor=e}b(e,n);e.prototype=null===n?
|
|
144
|
+
Object.create(n):(f.prototype=n.prototype,new f)}}(),E=d.isFirefox,A=d.isMS,z=d.isWebKit,B=d.win,q=F.css,k=F.defined,e=F.extend,b=F.pick,r=F.pInt;return function(d){function y(){return null!==d&&d.apply(this,arguments)||this}Q(y,d);y.compose=function(b){b=b.prototype;var f=y.prototype;b.getSpanCorrection=f.getSpanCorrection;b.htmlCss=f.htmlCss;b.htmlGetBBox=f.htmlGetBBox;b.htmlUpdateTransform=f.htmlUpdateTransform;b.setSpanRotation=f.setSpanRotation};y.prototype.getSpanCorrection=function(b,f,m){this.xCorr=
|
|
145
|
+
-b*m;this.yCorr=-f};y.prototype.htmlCss=function(n){var f="SPAN"===this.element.tagName&&n&&"width"in n,m=b(f&&n.width,void 0);if(f){delete n.width;this.textWidth=m;var k=!0}n&&"ellipsis"===n.textOverflow&&(n.whiteSpace="nowrap",n.overflow="hidden");this.styles=e(this.styles,n);q(this.element,n);k&&this.htmlUpdateTransform();return this};y.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}};y.prototype.htmlUpdateTransform=
|
|
146
|
+
function(){if(this.added){var b=this.renderer,f=this.element,m=this.translateX||0,e=this.translateY||0,d=this.x||0,u=this.y||0,x=this.textAlign||"left",c={left:0,center:.5,right:1}[x],l=this.styles;l=l&&l.whiteSpace;q(f,{marginLeft:m,marginTop:e});!b.styledMode&&this.shadows&&this.shadows.forEach(function(a){q(a,{marginLeft:m+1,marginTop:e+1})});this.inverted&&[].forEach.call(f.childNodes,function(a){b.invertChild(a,f)});if("SPAN"===f.tagName){var a=this.rotation,g=this.textWidth&&r(this.textWidth),
|
|
147
|
+
w=[a,x,f.innerHTML,this.textWidth,this.textAlign].join(),J=void 0;(J=g!==this.oldTextWidth)&&!(J=g>this.oldTextWidth)&&((J=this.textPxLength)||(q(f,{width:"",whiteSpace:l||"nowrap"}),J=f.offsetWidth),J=J>g);J&&(/[ \-]/.test(f.textContent||f.innerText)||"ellipsis"===f.style.textOverflow)?(q(f,{width:g+"px",display:"block",whiteSpace:l||"normal"}),this.oldTextWidth=g,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;w!==this.cTT&&(J=b.fontMetrics(f.style.fontSize,f).b,!k(a)||a===(this.oldRotation||
|
|
148
|
+
0)&&x===this.oldAlign||this.setSpanRotation(a,c,J),this.getSpanCorrection(!k(a)&&this.textPxLength||f.offsetWidth,J,c,a,x));q(f,{left:d+(this.xCorr||0)+"px",top:u+(this.yCorr||0)+"px"});this.cTT=w;this.oldRotation=a;this.oldAlign=x}}else this.alignOnAdd=!0};y.prototype.setSpanRotation=function(b,f,m){var e={},n=A&&!/Edge/.test(B.navigator.userAgent)?"-ms-transform":z?"-webkit-transform":E?"MozTransform":B.opera?"-o-transform":void 0;n&&(e[n]=e.transform="rotate("+b+"deg)",e[n+(E?"Origin":"-origin")]=
|
|
149
|
+
e.transformOrigin=100*f+"% "+m+"px",q(this.element,e))};return y}(h)});N(h,"Core/Renderer/HTML/HTMLRenderer.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Utilities.js"]],function(d,h,F,D){var Q=this&&this.__extends||function(){var k=function(e,b){k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var k in e)e.hasOwnProperty(k)&&(b[k]=e[k])};return k(e,b)};return function(e,
|
|
150
|
+
b){function r(){this.constructor=e}k(e,b);e.prototype=null===b?Object.create(b):(r.prototype=b.prototype,new r)}}(),A=D.attr,z=D.createElement,B=D.extend,q=D.pick;return function(k){function e(){return null!==k&&k.apply(this,arguments)||this}Q(e,k);e.compose=function(b){b.prototype.html=e.prototype.html};e.prototype.html=function(b,e,k){var r=this.createElement("span"),n=r.element,f=r.renderer,m=f.isSVG,I=function(f,b){["opacity","visibility"].forEach(function(m){f[m+"Setter"]=function(c,l,a){var g=
|
|
151
|
+
f.div?f.div.style:b;h.prototype[m+"Setter"].call(this,c,l,a);g&&(g[l]=c)}});f.addedSetters=!0};r.textSetter=function(f){f!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,d.setElementHTML(this.element,q(f,"")),this.textStr=f,r.doTransform=!0)};m&&I(r,r.element.style);r.xSetter=r.ySetter=r.alignSetter=r.rotationSetter=function(f,m){"align"===m?r.alignValue=r.textAlign=f:r[m]=f;r.doTransform=!0};r.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};
|
|
152
|
+
r.attr({text:b,x:Math.round(e),y:Math.round(k)}).css({position:"absolute"});f.styledMode||r.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});n.style.whiteSpace="nowrap";r.css=r.htmlCss;m&&(r.add=function(m){var b=f.box.parentNode,e=[];if(this.parentGroup=m){var c=m.div;if(!c){for(;m;)e.push(m),m=m.parentGroup;e.reverse().forEach(function(l){function a(a,c){l[c]=a;"translateX"===c?m.left=a+"px":m.top=a+"px";l.doTransform=!0}var g=A(l.element,"class"),f=l.styles||{};c=l.div=l.div||
|
|
153
|
+
z("div",g?{className:g}:void 0,{position:"absolute",left:(l.translateX||0)+"px",top:(l.translateY||0)+"px",display:l.display,opacity:l.opacity,cursor:f.cursor,pointerEvents:f.pointerEvents},c||b);var m=c.style;B(l,{classSetter:function(a){return function(c){this.element.setAttribute("class",c);a.className=c}}(c),on:function(){e[0].div&&r.on.apply({element:e[0].div,onEvents:r.onEvents},arguments);return l},translateXSetter:a,translateYSetter:a});l.addedSetters||I(l)})}}else c=b;c.appendChild(n);r.added=
|
|
154
|
+
!0;r.alignOnAdd&&r.htmlUpdateTransform();return r});return r};return e}(F)});N(h,"Core/Foundation.js",[h["Core/Utilities.js"]],function(d){var h=d.addEvent,F=d.isFunction,D=d.objectEach,E=d.removeEvent;return{registerEventOptions:function(d,z){d.eventOptions=d.eventOptions||{};D(z.events,function(B,q){F(B)&&d.eventOptions[q]!==B&&(F(d.eventOptions[q])&&E(d,q,d.eventOptions[q]),d.eventOptions[q]=B,h(d,q,B))})}}});N(h,"Core/Axis/AxisDefaults.js",[h["Core/Color/Palette.js"]],function(d){var h;(function(h){h.defaultXAxisOptions=
|
|
155
|
+
{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"},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,
|
|
156
|
+
rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:d.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,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,
|
|
157
|
+
x:0,y:0,style:{color:d.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:d.neutralColor5,minorGridLineWidth:1,minorTickColor:d.neutralColor40,lineColor:d.highlightColor20,lineWidth:1,gridLineColor:d.neutralColor10,gridLineWidth:void 0,tickColor:d.highlightColor20};h.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:{},
|
|
158
|
+
allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var d=this.axis.chart.numberFormatter;return d(this.total,-1)},style:{color:d.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};h.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};h.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};h.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};h.defaultTopAxisOptions={labels:{autoRotation:[-45],
|
|
159
|
+
x:0},margin:15,title:{rotation:0}}})(h||(h={}));return h});N(h,"Core/Axis/Tick.js",[h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h,F){var Q=h.deg2rad,E=F.clamp,A=F.correctFloat,z=F.defined,B=F.destroyObjectProperties,q=F.extend,k=F.fireEvent,e=F.isNumber,b=F.merge,r=F.objectEach,C=F.pick;h=function(){function y(b,f,m,e,r){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=f;this.type=m||"";this.parameters=r||{};this.tickmarkOffset=this.parameters.tickmarkOffset;
|
|
160
|
+
this.options=this.parameters.options;k(this,"init");m||e||this.addLabel()}y.prototype.addLabel=function(){var b=this,f=b.axis,m=f.options,r=f.chart,y=f.categories,u=f.logarithmic,x=f.names,c=b.pos,l=C(b.options&&b.options.labels,m.labels),a=f.tickPositions,g=c===a[0],w=c===a[a.length-1],J=(!l.step||1===l.step)&&1===f.tickInterval;a=a.info;var K=b.label,t;y=this.parameters.category||(y?C(y[c],x[c],c):c);u&&e(y)&&(y=A(u.lin2log(y)));if(f.dateTime&&a){var G=r.time.resolveDTLFormat(m.dateTimeLabelFormats[!m.grid&&
|
|
161
|
+
a.higherRanks[c]||a.unitName]);var O=G.main}b.isFirst=g;b.isLast=w;var v={axis:f,chart:r,dateTimeLabelFormat:O,isFirst:g,isLast:w,pos:c,tick:b,tickPositionInfo:a,value:y};k(this,"labelFormat",v);var H=function(a){return l.formatter?l.formatter.call(a,a):l.format?(a.text=f.defaultLabelFormatter.call(a),d.format(l.format,a,r)):f.defaultLabelFormatter.call(a,a)};m=H.call(v,v);var P=G&&G.list;b.shortenLabel=P?function(){for(t=0;t<P.length;t++)if(q(v,{dateTimeLabelFormat:P[t]}),K.attr({text:H.call(v,v)}),
|
|
162
|
+
K.getBBox().width<f.getSlotWidth(b)-2*l.padding)return;K.attr({text:""})}:void 0;J&&f._addedPlotLB&&b.moveLabel(m,l);z(K)||b.movedLabel?K&&K.textStr!==m&&!J&&(!K.textWidth||l.style.width||K.styles.width||K.css({width:null}),K.attr({text:m}),K.textPxLength=K.getBBox().width):(b.label=K=b.createLabel({x:0,y:0},m,l),b.rotation=0)};y.prototype.createLabel=function(e,f,m){var n=this.axis,k=n.chart;if(e=z(f)&&m.enabled?k.renderer.text(f,e.x,e.y,m.useHTML).add(n.labelGroup):null)k.styledMode||e.css(b(m.style)),
|
|
163
|
+
e.textPxLength=e.getBBox().width;return e};y.prototype.destroy=function(){B(this,this.axis)};y.prototype.getPosition=function(b,f,m,e){var n=this.axis,u=n.chart,x=e&&u.oldChartHeight||u.chartHeight;b={x:b?A(n.translate(f+m,null,null,e)+n.transB):n.left+n.offset+(n.opposite?(e&&u.oldChartWidth||u.chartWidth)-n.right-n.left:0),y:b?x-n.bottom+n.offset-(n.opposite?n.height:0):A(x-n.translate(f+m,null,null,e)-n.transB)};b.y=E(b.y,-1E5,1E5);k(this,"afterGetPosition",{pos:b});return b};y.prototype.getLabelPosition=
|
|
164
|
+
function(b,f,m,e,r,u,x,c){var l=this.axis,a=l.transA,g=l.isLinked&&l.linkedParent?l.linkedParent.reversed:l.reversed,w=l.staggerLines,n=l.tickRotCorr||{x:0,y:0},K=e||l.reserveSpaceDefault?0:-l.labelOffset*("center"===l.labelAlign?.5:1),t={},G=r.y;z(G)||(G=0===l.side?m.rotation?-8:-m.getBBox().height:2===l.side?n.y+8:Math.cos(m.rotation*Q)*(n.y-m.getBBox(!1,0).height/2));b=b+r.x+K+n.x-(u&&e?u*a*(g?-1:1):0);f=f+G-(u&&!e?u*a*(g?1:-1):0);w&&(m=x/(c||1)%w,l.opposite&&(m=w-m-1),f+=l.labelOffset/w*m);t.x=
|
|
165
|
+
b;t.y=Math.round(f);k(this,"afterGetLabelPosition",{pos:t,tickmarkOffset:u,index:x});return t};y.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};y.prototype.getMarkPath=function(b,f,m,e,k,u){return u.crispLine([["M",b,f],["L",b+(k?0:-m),f+(k?m:0)]],e)};y.prototype.handleOverflow=function(b){var f=this.axis,m=f.options.labels,e=b.x,n=f.chart.chartWidth,k=f.chart.spacing,x=C(f.labelLeft,Math.min(f.pos,k[3]));k=C(f.labelRight,Math.max(f.isRadial?
|
|
166
|
+
0:f.pos+f.len,n-k[1]));var c=this.label,l=this.rotation,a={left:0,center:.5,right:1}[f.labelAlign||c.attr("align")],g=c.getBBox().width,w=f.getSlotWidth(this),J={},K=w,t=1,G;if(l||"justify"!==m.overflow)0>l&&e-a*g<x?G=Math.round(e/Math.cos(l*Q)-x):0<l&&e+a*g>k&&(G=Math.round((n-e)/Math.cos(l*Q)));else if(n=e+(1-a)*g,e-a*g<x?K=b.x+K*(1-a)-x:n>k&&(K=k-b.x+K*a,t=-1),K=Math.min(w,K),K<w&&"center"===f.labelAlign&&(b.x+=t*(w-K-a*(w-Math.min(g,K)))),g>K||f.autoRotation&&(c.styles||{}).width)G=K;G&&(this.shortenLabel?
|
|
167
|
+
this.shortenLabel():(J.width=Math.floor(G)+"px",(m.style||{}).textOverflow||(J.textOverflow="ellipsis"),c.css(J)))};y.prototype.moveLabel=function(b,f){var m=this,e=m.label,n=m.axis,k=n.reversed,x=!1;e&&e.textStr===b?(m.movedLabel=e,x=!0,delete m.label):r(n.ticks,function(c){x||c.isNew||c===m||!c.label||c.label.textStr!==b||(m.movedLabel=c.label,x=!0,c.labelPos=m.movedLabel.xy,delete c.label)});if(!x&&(m.labelPos||e)){var c=m.labelPos||e.xy;e=n.horiz?k?0:n.width+n.left:c.x;n=n.horiz?c.y:k?n.width+
|
|
168
|
+
n.left:0;m.movedLabel=m.createLabel({x:e,y:n},b,f);m.movedLabel&&m.movedLabel.attr({opacity:0})}};y.prototype.render=function(b,f,m){var e=this.axis,n=e.horiz,u=this.pos,x=C(this.tickmarkOffset,e.tickmarkOffset);u=this.getPosition(n,u,x,f);x=u.x;var c=u.y;e=n&&x===e.pos+e.len||!n&&c===e.pos?-1:1;n=C(m,this.label&&this.label.newOpacity,1);m=C(m,1);this.isActive=!0;this.renderGridLine(f,m,e);this.renderMark(u,m,e);this.renderLabel(u,f,n,b);this.isNew=!1;k(this,"afterRender")};y.prototype.renderGridLine=
|
|
169
|
+
function(b,f,m){var e=this.axis,n=e.options,k={},x=this.pos,c=this.type,l=C(this.tickmarkOffset,e.tickmarkOffset),a=e.chart.renderer,g=this.gridLine,w=n.gridLineWidth,J=n.gridLineColor,K=n.gridLineDashStyle;"minor"===this.type&&(w=n.minorGridLineWidth,J=n.minorGridLineColor,K=n.minorGridLineDashStyle);g||(e.chart.styledMode||(k.stroke=J,k["stroke-width"]=w||0,k.dashstyle=K),c||(k.zIndex=1),b&&(f=0),this.gridLine=g=a.path().attr(k).addClass("highcharts-"+(c?c+"-":"")+"grid-line").add(e.gridGroup));
|
|
170
|
+
if(g&&(m=e.getPlotLinePath({value:x+l,lineWidth:g.strokeWidth()*m,force:"pass",old:b})))g[b||this.isNew?"attr":"animate"]({d:m,opacity:f})};y.prototype.renderMark=function(b,f,m){var e=this.axis,n=e.options,k=e.chart.renderer,x=this.type,c=e.tickSize(x?x+"Tick":"tick"),l=b.x;b=b.y;var a=C(n["minor"!==x?"tickWidth":"minorTickWidth"],!x&&e.isXAxis?1:0);n=n["minor"!==x?"tickColor":"minorTickColor"];var g=this.mark,w=!g;c&&(e.opposite&&(c[0]=-c[0]),g||(this.mark=g=k.path().addClass("highcharts-"+(x?x+
|
|
171
|
+
"-":"")+"tick").add(e.axisGroup),e.chart.styledMode||g.attr({stroke:n,"stroke-width":a})),g[w?"attr":"animate"]({d:this.getMarkPath(l,b,c[0],g.strokeWidth()*m,e.horiz,k),opacity:f}))};y.prototype.renderLabel=function(b,f,m,k){var n=this.axis,u=n.horiz,x=n.options,c=this.label,l=x.labels,a=l.step;n=C(this.tickmarkOffset,n.tickmarkOffset);var g=b.x;b=b.y;var w=!0;c&&e(g)&&(c.xy=b=this.getLabelPosition(g,b,c,u,l,n,k,a),this.isFirst&&!this.isLast&&!x.showFirstLabel||this.isLast&&!this.isFirst&&!x.showLastLabel?
|
|
172
|
+
w=!1:!u||l.step||l.rotation||f||0===m||this.handleOverflow(b),a&&k%a&&(w=!1),w&&e(b.y)?(b.opacity=m,c[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(c.attr("y",-9999),this.isNewLabel=!0))};y.prototype.replaceMovedLabel=function(){var b=this.label,f=this.axis,e=f.reversed;if(b&&!this.isNew){var k=f.horiz?e?f.left:f.width+f.left:b.xy.x;e=f.horiz?b.xy.y:e?f.width+f.top:f.top;b.animate({x:k,y:e,opacity:0},void 0,b.destroy);delete this.label}f.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};
|
|
173
|
+
return y}();"";return h});N(h,"Core/Axis/Axis.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Color/Color.js"],h["Core/Color/Palette.js"],h["Core/DefaultOptions.js"],h["Core/Foundation.js"],h["Core/Globals.js"],h["Core/Utilities.js"],h["Core/Axis/AxisDefaults.js"],h["Core/Axis/Tick.js"]],function(d,h,F,D,E,A,z,B,q){var k=d.animObject,e=E.registerEventOptions,b=A.deg2rad,r=D.defaultOptions,C=z.arrayMax,y=z.arrayMin,n=z.clamp,f=z.correctFloat,m=z.defined,I=z.destroyObjectProperties,L=z.erase,
|
|
174
|
+
u=z.error,x=z.extend,c=z.fireEvent,l=z.getMagnitude,a=z.isArray,g=z.isNumber,w=z.isString,J=z.merge,K=z.normalizeTickInterval,t=z.objectEach,G=z.pick,O=z.relativeLength,v=z.removeEvent,H=z.splat,P=z.syncTimeout;d=function(){function d(a,c){this.zoomEnabled=this.width=this.visible=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=
|
|
175
175
|
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=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(a,
|
|
176
|
-
c)}
|
|
177
|
-
this.hasNames="category"===
|
|
178
|
-
0:1]);this.crosshair=!0===
|
|
179
|
-
|
|
180
|
-
"undefined"===typeof
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
a=
|
|
184
|
-
H=
|
|
185
|
-
|
|
186
|
-
var
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
!1;
|
|
190
|
-
c.xData.length-1),c.processData(),c.generatePoints();c.data.forEach(function(p,
|
|
191
|
-
|
|
192
|
-
function(){return this.max-this.range};
|
|
193
|
-
|
|
194
|
-
p.stacking&&p.stacking.usePercentage||
|
|
195
|
-
Math.max(
|
|
196
|
-
(p.old&&p.old.min)||p.max!==(p.old&&p.old.max))});p.setAxisTranslation();c(this,"initialAxisTranslation");p.pointRange&&!
|
|
197
|
-
this.tickAmount||(p.tickInterval=p.unsquish());this.setTickPositions()};
|
|
198
|
-
|
|
199
|
-
this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(
|
|
200
|
-
f||
|
|
201
|
-
c.alignTicks&&!1!==c.startOnTick&&!1!==c.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(c){var p=c.options;p=[c.horiz?p.left:p.top,p.width,p.height,p.pane].join();c.series.length&&(a[p]?
|
|
202
|
-
|
|
203
|
-
1])}else
|
|
204
|
-
this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=
|
|
205
|
-
c(p,"setExtremes",
|
|
206
|
-
a.zoomed=!0});return a.zoomed};
|
|
207
|
-
b:
|
|
208
|
-
function(a){var p=(G(a,0)-90*this.side+720)%360;a={align:"center"};c(this,"autoLabelAlign",a,function(a){15<p&&165>p?a.align="right":195<p&&345>p&&(a.align="left")});return a.align};
|
|
209
|
-
function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};
|
|
210
|
-
|
|
211
|
-
c.margin[3];if(a&&
|
|
212
|
-
(
|
|
213
|
-
(
|
|
214
|
-
!
|
|
215
|
-
{low:p?"right":"left",middle:"center",high:p?"left":"right"})[
|
|
216
|
-
function(){var a=this,
|
|
217
|
-
|
|
218
|
-
1)):
|
|
219
|
-
|
|
220
|
-
c.chartWidth-this.right:b,
|
|
221
|
-
G=this.chart.renderer.fontMetrics(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
(
|
|
228
|
-
|
|
229
|
-
(
|
|
230
|
-
this.chart.options.chart.panning;return!!(a&&a.enabled&&/y/.test(a.type))};
|
|
231
|
-
c.isDirtyBox=!0;G(a,!0)&&c.redraw()};
|
|
232
|
-
|
|
233
|
-
return
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"line ")+(
|
|
239
|
-
if(
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
var k=[],
|
|
243
|
-
"plotBands")},addPlotLine:function(b){return this.addPlotBandOrLine(b,"plotLines")},addPlotBandOrLine:function(b,
|
|
244
|
-
if(
|
|
245
|
-
|
|
246
|
-
c.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"}}]}]});
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"
|
|
252
|
-
0,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
y:c}}var
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
c.
|
|
266
|
-
|
|
267
|
-
0>a[0]?Math.max(Math.abs(a[0]),
|
|
268
|
-
'class="highcharts-color-{$1.colorIndex}"')};
|
|
269
|
-
a.text=
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
this.chart.series.forEach(function(a){-1===b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};
|
|
273
|
-
|
|
274
|
-
b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&
|
|
275
|
-
!1;b.mouseDownX=this.mouseDownX=c.chartX;b.mouseDownY=this.mouseDownY=c.chartY};
|
|
276
|
-
a.horiz,
|
|
277
|
-
function(c,b,a){var
|
|
278
|
-
function(c,b){var a=c.series,
|
|
279
|
-
2<a&&2<c&&(this.chartPosition.scaleX=b.width/a,this.chartPosition.scaleY=b.height/c);return this.chartPosition};
|
|
280
|
-
[b]:a.filter(function(a){return
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
b.pointer.chartPosition=void 0);a&&!a.isHidden&&this.reset()};
|
|
286
|
-
"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(c))};
|
|
287
|
-
c=this.normalize(c,a);var
|
|
288
|
-
|
|
289
|
-
c.dataMax),c.dataMax)),
|
|
290
|
-
c,b,a,f,
|
|
291
|
-
.8*(
|
|
292
|
-
(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
"mousemove",function(a){var c=
|
|
296
|
-
|
|
297
|
-
this.onContainerMouseLeave.bind(this)));
|
|
298
|
-
|
|
299
|
-
{visiblePlotOnly:!0}))&&!a.openMenu){b&&this.runPointActions(c);if("touchmove"===c.type){b=this.pinchDown;var
|
|
300
|
-
"";/touch/.test(c.type)&&(
|
|
301
|
-
b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!
|
|
302
|
-
|
|
303
|
-
this.onDocumentPointerUp)};
|
|
304
|
-
function(b){
|
|
305
|
-
|
|
306
|
-
this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}
|
|
307
|
-
c){var b=this.series,
|
|
308
|
-
"undefined"===typeof this.x&&b&&(this.x="undefined"===typeof c?b.autoIncrement(this):c);return this};
|
|
309
|
-
c(a,
|
|
310
|
-
a.metaKey||a.shiftKey)});
|
|
311
|
-
this,b=[],f
|
|
312
|
-
point:this,percentage:this.percentage,total:this.total||this.stackTotal}};
|
|
313
|
-
this.graphic.element.nodeName))!==this.shapeType};
|
|
314
|
-
typeof a[
|
|
315
|
-
a.colorCounter===c&&(a.colorCounter=0)}else b||(
|
|
316
|
-
(c.pointArrayMap||["y"]).forEach(function(c){c="{point."+c;if(
|
|
317
|
-
(
|
|
318
|
-
a,c)};
|
|
319
|
-
a.firePointEvent("unselect"))})});delete this.selectedStaging};
|
|
320
|
-
this,c=
|
|
321
|
-
|
|
322
|
-
this.connector.animate({opacity:
|
|
323
|
-
this)}
|
|
324
|
-
|
|
325
|
-
var
|
|
176
|
+
c)}d.prototype.init=function(a,l){var p=l.isX;this.chart=a;this.horiz=a.inverted&&!this.isZAxis?!p:p;this.isXAxis=p;this.coll=this.coll||(p?"xAxis":"yAxis");c(this,"init",{userOptions:l});this.opposite=G(l.opposite,this.opposite);this.side=G(l.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(l);var b=this.options,f=b.labels,t=b.type;this.userOptions=l;this.minPixelPadding=0;this.reversed=G(b.reversed,this.reversed);this.visible=b.visible;this.zoomEnabled=b.zoomEnabled;
|
|
177
|
+
this.hasNames="category"===t||!0===b.categories;this.categories=b.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=m(b.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=b.minRange||b.maxZoom;this.range=b.range;this.offset=b.offset||0;this.min=this.max=null;l=G(b.crosshair,H(a.options.tooltip.crosshairs)[p?
|
|
178
|
+
0:1]);this.crosshair=!0===l?{}:l;-1===a.axes.indexOf(this)&&(p?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&&p&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=g(f.rotation)?f.rotation:void 0;e(this,b);c(this,"afterInit")};d.prototype.setOptions=function(a){this.options=J(B.defaultXAxisOptions,"yAxis"===this.coll&&B.defaultYAxisOptions,[B.defaultTopAxisOptions,B.defaultRightAxisOptions,
|
|
179
|
+
B.defaultBottomAxisOptions,B.defaultLeftAxisOptions][this.side],J(r[this.coll],a));c(this,"afterSetOptions",{userOptions:a})};d.prototype.defaultLabelFormatter=function(a){var c=this.axis;a=this.chart.numberFormatter;var p=g(this.value)?this.value:NaN,l=c.chart.time,b=this.dateTimeLabelFormat,f=r.lang,t=f.numericSymbols;f=f.numericSymbolMagnitude||1E3;var w=c.logarithmic?Math.abs(p):c.tickInterval,e=t&&t.length;if(c.categories)var v=""+this.value;else if(b)v=l.dateFormat(b,p);else if(e&&1E3<=w)for(;e--&&
|
|
180
|
+
"undefined"===typeof v;)c=Math.pow(f,e+1),w>=c&&0===10*p%c&&null!==t[e]&&0!==p&&(v=a(p/c,-1)+t[e]);"undefined"===typeof v&&(v=1E4<=Math.abs(p)?a(p,-1):a(p,-1,void 0,""));return v};d.prototype.getSeriesExtremes=function(){var a=this,l=a.chart,b;c(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.stacking&&a.stacking.buildStacks();a.series.forEach(function(c){if(c.visible||!l.options.chart.ignoreHiddenSeries){var p=c.options,
|
|
181
|
+
f=p.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=f&&(f=null);if(a.isXAxis){if(p=c.xData,p.length){p=a.logarithmic?p.filter(a.validatePositiveValue):p;b=c.getXExtremes(p);var t=b.min;var w=b.max;g(t)||t instanceof Date||(p=p.filter(g),b=c.getXExtremes(p),t=b.min,w=b.max);p.length&&(a.dataMin=Math.min(G(a.dataMin,t),t),a.dataMax=Math.max(G(a.dataMax,w),w))}}else if(c=c.applyExtremes(),g(c.dataMin)&&(t=c.dataMin,a.dataMin=Math.min(G(a.dataMin,t),t)),g(c.dataMax)&&(w=c.dataMax,a.dataMax=Math.max(G(a.dataMax,
|
|
182
|
+
w),w)),m(f)&&(a.threshold=f),!p.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});c(this,"afterGetSeriesExtremes")};d.prototype.translate=function(a,c,l,b,t,f){var p=this.linkedParent||this,w=b&&p.old?p.old.min:p.min,v=p.minPixelPadding;t=(p.isOrdinal||p.brokenAxis&&p.brokenAxis.hasBreaks||p.logarithmic&&t)&&p.lin2val;var e=1,m=0;b=b&&p.old?p.old.transA:p.transA;b||(b=p.transA);l&&(e*=-1,m=p.len);p.reversed&&(e*=-1,m-=e*(p.sector||p.len));c?(a=(a*e+m-v)/b+w,t&&(a=p.lin2val(a))):(t&&(a=p.val2lin(a)),
|
|
183
|
+
a=g(w)?e*(a-w)*b+m+e*v+(g(f)?b*f:0):void 0);return a};d.prototype.toPixels=function(a,c){return this.translate(a,!1,!this.horiz,null,!0)+(c?0:this.pos)};d.prototype.toValue=function(a,c){return this.translate(a-(c?0:this.pos),!0,!this.horiz,null,!0)};d.prototype.getPlotLinePath=function(a){function p(a,c,p){if("pass"!==J&&a<c||a>p)J?a=n(a,c,p):O=!0;return a}var l=this,b=l.chart,t=l.left,f=l.top,w=a.old,e=a.value,v=a.lineWidth,m=w&&b.oldChartHeight||b.chartHeight,k=w&&b.oldChartWidth||b.chartWidth,
|
|
184
|
+
H=l.transB,x=a.translatedValue,J=a.force,u,d,K,r,O;a={value:e,lineWidth:v,old:w,force:J,acrossPanes:a.acrossPanes,translatedValue:x};c(this,"getPlotLinePath",a,function(a){x=G(x,l.translate(e,null,null,w));x=n(x,-1E5,1E5);u=K=Math.round(x+H);d=r=Math.round(m-x-H);g(x)?l.horiz?(d=f,r=m-l.bottom,u=K=p(u,t,t+l.width)):(u=t,K=k-l.right,d=r=p(d,f,f+l.height)):(O=!0,J=!1);a.path=O&&!J?null:b.renderer.crispLine([["M",u,d],["L",K,r]],v||1)});return a.path};d.prototype.getLinearTickPositions=function(a,c,
|
|
185
|
+
g){var p=f(Math.floor(c/a)*a);g=f(Math.ceil(g/a)*a);var l=[],b;f(p+a)===p&&(b=20);if(this.single)return[c];for(c=p;c<=g;){l.push(c);c=f(c+a,b);if(c===t)break;var t=c}return l};d.prototype.getMinorTickInterval=function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};d.prototype.getMinorTickPositions=function(){var a=this.options,c=this.tickPositions,g=this.minorTickInterval,l=this.pointRangePadding||0,b=this.min-l;l=this.max+l;
|
|
186
|
+
var t=l-b,f=[];if(t&&t/g<this.len/3){var w=this.logarithmic;if(w)this.paddedTicks.forEach(function(a,c,p){c&&f.push.apply(f,w.getLogTickPositions(g,p[c-1],p[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())f=f.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(g),b,l,a.startOfWeek));else for(a=b+(c[0]-b)%g;a<=l&&a!==f[0];a+=g)f.push(a)}0!==f.length&&this.trimTicks(f);return f};d.prototype.adjustForMinRange=function(){var a=this.options,c=this.logarithmic,g=this.min,
|
|
187
|
+
l=this.max,b=0,f,t,w,e;this.isXAxis&&"undefined"===typeof this.minRange&&!c&&(m(a.min)||m(a.max)?this.minRange=null:(this.series.forEach(function(a){w=a.xData;e=a.xIncrement?1:w.length-1;if(1<w.length)for(f=e;0<f;f--)if(t=w[f]-w[f-1],!b||t<b)b=t}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(l-g<this.minRange){var v=this.dataMax-this.dataMin>=this.minRange;var n=this.minRange;var k=(n-l+g)/2;k=[g-k,G(a.min,g-k)];v&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);
|
|
188
|
+
g=C(k);l=[g+n,G(a.max,g+n)];v&&(l[2]=c?c.log2lin(this.dataMax):this.dataMax);l=y(l);l-g<n&&(k[0]=l-n,k[1]=G(a.min,l-n),g=C(k))}this.min=g;this.max=l};d.prototype.getClosest=function(){var a;this.categories?a=1:this.series.forEach(function(c){var p=c.closestPointRange,g=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&m(p)&&g&&(a=m(a)?Math.min(a,p):p)});return a};d.prototype.nameToX=function(c){var p=a(this.categories),g=p?this.categories:this.names,l=c.options.x;c.series.requireSorting=
|
|
189
|
+
!1;m(l)||(l=this.options.uniqueNames?p?g.indexOf(c.name):G(g.keys[c.name],-1):c.series.autoIncrement());if(-1===l){if(!p)var b=g.length}else b=l;"undefined"!==typeof b&&(this.names[b]=c.name,this.names.keys[c.name]=b);return b};d.prototype.updateNames=function(){var a=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(a){delete c.keys[a]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)a.max=Math.max(a.max,
|
|
190
|
+
c.xData.length-1),c.processData(),c.generatePoints();c.data.forEach(function(p,g){if(p&&p.options&&"undefined"!==typeof p.name){var l=a.nameToX(p);"undefined"!==typeof l&&l!==p.x&&(p.x=l,c.xData[g]=l)}})}))};d.prototype.setAxisTranslation=function(){var a=this,g=a.max-a.min,l=a.linkedParent,b=!!a.categories,f=a.isXAxis,t=a.axisPointRange||0,e=0,v=0,m=a.transA;if(f||b||t){var n=a.getClosest();l?(e=l.minPointOffset,v=l.pointRangePadding):a.series.forEach(function(c){var g=b?1:f?G(c.options.pointRange,
|
|
191
|
+
n,0):a.axisPointRange||0,p=c.options.pointPlacement;t=Math.max(t,g);if(!a.single||b)c=c.is("xrange")?!f:f,e=Math.max(e,c&&w(p)?0:g/2),v=Math.max(v,c&&"on"===p?0:g)});l=a.ordinal&&a.ordinal.slope&&n?a.ordinal.slope/n:1;a.minPointOffset=e*=l;a.pointRangePadding=v*=l;a.pointRange=Math.min(t,a.single&&b?1:g);f&&(a.closestPointRange=n)}a.translationSlope=a.transA=m=a.staticScale||a.len/(g+v||1);a.transB=a.horiz?a.left:a.bottom;a.minPixelPadding=m*e;c(this,"afterSetAxisTranslation")};d.prototype.minFromRange=
|
|
192
|
+
function(){return this.max-this.range};d.prototype.setTickInterval=function(a){var p=this,b=p.chart,t=p.logarithmic,w=p.options,e=p.isXAxis,v=p.isLinked,n=w.tickPixelInterval,k=p.categories,x=p.softThreshold,H=w.maxPadding,J=w.minPadding,d=w.tickInterval,r=g(p.threshold)?p.threshold:null;p.dateTime||k||v||this.getTickAmount();var O=G(p.userMin,w.min);var q=G(p.userMax,w.max);if(v){p.linkedParent=b[p.coll][w.linkedTo];var y=p.linkedParent.getExtremes();p.min=G(y.min,y.dataMin);p.max=G(y.max,y.dataMax);
|
|
193
|
+
w.type!==p.linkedParent.options.type&&u(11,1,b)}else{if(x&&m(r))if(p.dataMin>=r)y=r,J=0;else if(p.dataMax<=r){var P=r;H=0}p.min=G(O,y,p.dataMin);p.max=G(q,P,p.dataMax)}t&&(p.positiveValuesOnly&&!a&&0>=Math.min(p.min,G(p.dataMin,p.min))&&u(10,1,b),p.min=f(t.log2lin(p.min),16),p.max=f(t.log2lin(p.max),16));p.range&&m(p.max)&&(p.userMin=p.min=O=Math.max(p.dataMin,p.minFromRange()),p.userMax=q=p.max,p.range=null);c(p,"foundExtremes");p.beforePadding&&p.beforePadding();p.adjustForMinRange();!(k||p.axisPointRange||
|
|
194
|
+
p.stacking&&p.stacking.usePercentage||v)&&m(p.min)&&m(p.max)&&(b=p.max-p.min)&&(!m(O)&&J&&(p.min-=b*J),!m(q)&&H&&(p.max+=b*H));g(p.userMin)||(g(w.softMin)&&w.softMin<p.min&&(p.min=O=w.softMin),g(w.floor)&&(p.min=Math.max(p.min,w.floor)));g(p.userMax)||(g(w.softMax)&&w.softMax>p.max&&(p.max=q=w.softMax),g(w.ceiling)&&(p.max=Math.min(p.max,w.ceiling)));x&&m(p.dataMin)&&(r=r||0,!m(O)&&p.min<r&&p.dataMin>=r?p.min=p.options.minRange?Math.min(r,p.max-p.minRange):r:!m(q)&&p.max>r&&p.dataMax<=r&&(p.max=p.options.minRange?
|
|
195
|
+
Math.max(r,p.min+p.minRange):r));g(p.min)&&g(p.max)&&!this.chart.polar&&p.min>p.max&&(m(p.options.min)?p.max=p.min:m(p.options.max)&&(p.min=p.max));p.tickInterval=p.min===p.max||"undefined"===typeof p.min||"undefined"===typeof p.max?1:v&&p.linkedParent&&!d&&n===p.linkedParent.options.tickPixelInterval?d=p.linkedParent.tickInterval:G(d,this.tickAmount?(p.max-p.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(p.max-p.min)*n/Math.max(p.len,n));e&&!a&&p.series.forEach(function(a){a.processData(p.min!==
|
|
196
|
+
(p.old&&p.old.min)||p.max!==(p.old&&p.old.max))});p.setAxisTranslation();c(this,"initialAxisTranslation");p.pointRange&&!d&&(p.tickInterval=Math.max(p.pointRange,p.tickInterval));a=G(w.minTickInterval,p.dateTime&&!p.series.some(function(a){return a.noSharedTooltip})?p.closestPointRange:0);!d&&p.tickInterval<a&&(p.tickInterval=a);p.dateTime||p.logarithmic||d||(p.tickInterval=K(p.tickInterval,void 0,l(p.tickInterval),G(w.allowDecimals,.5>p.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));
|
|
197
|
+
this.tickAmount||(p.tickInterval=p.unsquish());this.setTickPositions()};d.prototype.setTickPositions=function(){var a=this.options,g=a.tickPositions,l=this.getMinorTickInterval(),b=this.hasVerticalPanning(),f="colorAxis"===this.coll,t=(f||!b)&&a.startOnTick;b=(f||!b)&&a.endOnTick;f=a.tickPositioner;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===l&&this.tickInterval?this.tickInterval/5:l;this.single=this.min===this.max&&
|
|
198
|
+
m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=l=g&&g.slice();!l&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?l=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,
|
|
199
|
+
this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(l=[this.min,this.max],u(19,!1,this.chart)),l.length>this.len&&(l=[l[0],l.pop()],l[0]===l[1]&&(l.length=1)),this.tickPositions=l,f&&(f=f.apply(this,[this.min,this.max])))&&(this.tickPositions=l=f);this.paddedTicks=l.slice(0);this.trimTicks(l,t,b);this.isLinked||(this.single&&2>l.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5),
|
|
200
|
+
g||f||this.adjustTickAmount());c(this,"afterSetTickPositions")};d.prototype.trimTicks=function(a,g,l){var p=a[0],b=a[a.length-1],f=!this.isOrdinal&&this.minPointOffset||0;c(this,"trimTicks");if(!this.isLinked){if(g&&-Infinity!==p)this.min=p;else for(;this.min-f>a[0];)a.shift();if(l)this.max=b;else for(;this.max+f<a[a.length-1];)a.pop();0===a.length&&m(p)&&!this.options.tickPositions&&a.push((b+p)/2)}};d.prototype.alignToOthers=function(){var a={},c=this.options,g;!1!==this.chart.options.chart.alignTicks&&
|
|
201
|
+
c.alignTicks&&!1!==c.startOnTick&&!1!==c.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(c){var p=c.options;p=[c.horiz?p.left:p.top,p.width,p.height,p.pane].join();c.series.length&&(a[p]?g=!0:a[p]=1)});return g};d.prototype.getTickAmount=function(){var a=this.options,c=a.tickPixelInterval,g=a.tickAmount;!m(a.tickInterval)&&!g&&this.len<c&&!this.isRadial&&!this.logarithmic&&a.startOnTick&&a.endOnTick&&(g=2);!g&&this.alignToOthers()&&(g=Math.ceil(this.len/c)+1);4>g&&(this.finalTickAmt=
|
|
202
|
+
g,g=5);this.tickAmount=g};d.prototype.adjustTickAmount=function(){var a=this.options,c=this.tickInterval,l=this.tickPositions,b=this.tickAmount,t=this.finalTickAmt,w=l&&l.length,e=G(this.threshold,this.softThreshold?0:null);if(this.hasData()&&g(this.min)&&g(this.max)){if(w<b){for(;l.length<b;)l.length%2||this.min===e?l.push(f(l[l.length-1]+c)):l.unshift(f(l[0]-c));this.transA*=(w-1)/(b-1);this.min=a.startOnTick?l[0]:Math.min(this.min,l[0]);this.max=a.endOnTick?l[l.length-1]:Math.max(this.max,l[l.length-
|
|
203
|
+
1])}else w>b&&(this.tickInterval*=2,this.setTickPositions());if(m(t)){for(c=a=l.length;c--;)(3===t&&1===c%2||2>=t&&0<c&&c<a-1)&&l.splice(c,1);this.finalTickAmt=void 0}}};d.prototype.setScale=function(){var a=!1,g=!1;this.series.forEach(function(c){a=a||c.isDirtyData||c.isDirty;g=g||c.xAxis&&c.xAxis.isDirty||!1});this.setAxisSize();var l=this.len!==(this.old&&this.old.len);l||a||g||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||
|
|
204
|
+
this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=l||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();a&&this.panningState&&(this.panningState.isDirty=!0);c(this,"afterSetScale")};d.prototype.setExtremes=function(a,g,l,b,f){var p=this,t=p.chart;l=G(l,!0);p.series.forEach(function(a){delete a.kdTree});f=x(f,{min:a,max:g});
|
|
205
|
+
c(p,"setExtremes",f,function(){p.userMin=a;p.userMax=g;p.eventArgs=f;l&&t.redraw(b)})};d.prototype.zoom=function(a,g){var p=this,l=this.dataMin,b=this.dataMax,f=this.options,t=Math.min(l,G(f.min,l)),w=Math.max(b,G(f.max,b));a={newMin:a,newMax:g};c(this,"zoom",a,function(a){var c=a.newMin,g=a.newMax;if(c!==p.min||g!==p.max)p.allowZoomOutside||(m(l)&&(c<t&&(c=t),c>w&&(c=w)),m(b)&&(g<t&&(g=t),g>w&&(g=w))),p.displayBtn="undefined"!==typeof c||"undefined"!==typeof g,p.setExtremes(c,g,!1,void 0,{trigger:"zoom"});
|
|
206
|
+
a.zoomed=!0});return a.zoomed};d.prototype.setAxisSize=function(){var a=this.chart,c=this.options,g=c.offsets||[0,0,0,0],l=this.horiz,b=this.width=Math.round(O(G(c.width,a.plotWidth-g[3]+g[1]),a.plotWidth)),f=this.height=Math.round(O(G(c.height,a.plotHeight-g[0]+g[2]),a.plotHeight)),t=this.top=Math.round(O(G(c.top,a.plotTop+g[0]),a.plotHeight,a.plotTop));c=this.left=Math.round(O(G(c.left,a.plotLeft+g[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-f-t;this.right=a.chartWidth-b-c;this.len=Math.max(l?
|
|
207
|
+
b:f,0);this.pos=l?c:t};d.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?f(a.lin2log(this.min)):this.min,max:a?f(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};d.prototype.getThreshold=function(a){var c=this.logarithmic,p=c?c.lin2log(this.min):this.min;c=c?c.lin2log(this.max):this.max;null===a||-Infinity===a?a=p:Infinity===a?a=c:p>a?a=p:c<a&&(a=c);return this.translate(a,0,1,0,1)};d.prototype.autoLabelAlign=
|
|
208
|
+
function(a){var p=(G(a,0)-90*this.side+720)%360;a={align:"center"};c(this,"autoLabelAlign",a,function(a){15<p&&165>p?a.align="right":195<p&&345>p&&(a.align="left")});return a.align};d.prototype.tickSize=function(a){var p=this.options,g=G(p["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0),l=p["tick"===a?"tickLength":"minorTickLength"];if(g&&l){"inside"===p[a+"Position"]&&(l=-l);var b=[l,g]}a={tickSize:b};c(this,"afterTickSize",a);return a.tickSize};d.prototype.labelMetrics=
|
|
209
|
+
function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};d.prototype.unsquish=function(){var a=this.options.labels,c=this.horiz,l=this.tickInterval,t=this.len/(((this.categories?1:0)+this.max-this.min)/l),w=a.rotation,e=this.labelMetrics(),v=Math.max(this.max-this.min,0),m=function(a){var c=a/(t||1);c=1<c?Math.ceil(c):1;c*l>v&&Infinity!==a&&Infinity!==t&&v&&(c=Math.ceil(v/l));return f(c*
|
|
210
|
+
l)},n=l,k,x,H=Number.MAX_VALUE;if(c){if(!a.staggerLines&&!a.step)if(g(w))var J=[w];else t<a.autoRotationLimit&&(J=a.autoRotation);J&&J.forEach(function(a){if(a===w||a&&-90<=a&&90>=a){x=m(Math.abs(e.h/Math.sin(b*a)));var c=x+Math.abs(a/360);c<H&&(H=c,k=a,n=x)}})}else a.step||(n=m(e.h));this.autoRotation=J;this.labelRotation=G(k,g(w)?w:0);return n};d.prototype.getSlotWidth=function(a){var c=this.chart,p=this.horiz,l=this.options.labels,b=Math.max(this.tickPositions.length-(this.categories?0:1),1),f=
|
|
211
|
+
c.margin[3];if(a&&g(a.slotWidth))return a.slotWidth;if(p&&2>l.step)return l.rotation?0:(this.staggerLines||1)*this.len/b;if(!p){a=l.style.width;if(void 0!==a)return parseInt(String(a),10);if(f)return f-c.spacing[3]}return.33*c.chartWidth};d.prototype.renderUnsquish=function(){var a=this.chart,c=a.renderer,g=this.tickPositions,l=this.ticks,b=this.options.labels,f=b.style,t=this.horiz,e=this.getSlotWidth(),v=Math.max(1,Math.round(e-2*b.padding)),m={},n=this.labelMetrics(),G=f.textOverflow,k=0;w(b.rotation)||
|
|
212
|
+
(m.rotation=b.rotation||0);g.forEach(function(a){a=l[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>k&&(k=a.label.textPxLength)});this.maxLabelLength=k;if(this.autoRotation)k>v&&k>n.h?m.rotation=this.labelRotation:this.labelRotation=0;else if(e){var x=v;if(!G){var H="clip";for(v=g.length;!t&&v--;){var J=g[v];if(J=l[J].label)J.styles&&"ellipsis"===J.styles.textOverflow?J.css({textOverflow:"clip"}):J.textPxLength>e&&J.css({width:e+"px"}),J.getBBox().height>this.len/g.length-
|
|
213
|
+
(n.h-n.f)&&(J.specificTextOverflow="ellipsis")}}}m.rotation&&(x=k>.5*a.chartHeight?.33*a.chartHeight:k,G||(H="ellipsis"));if(this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation))m.align=this.labelAlign;g.forEach(function(a){var c=(a=l[a])&&a.label,g=f.width,p={};c&&(c.attr(m),a.shortenLabel?a.shortenLabel():x&&!g&&"nowrap"!==f.whiteSpace&&(x<c.textPxLength||"SPAN"===c.element.tagName)?(p.width=x+"px",G||(p.textOverflow=c.specificTextOverflow||H),c.css(p)):c.styles&&c.styles.width&&!p.width&&
|
|
214
|
+
!g&&c.css({width:null}),delete c.specificTextOverflow,a.rotation=m.rotation)},this);this.tickRotCorr=c.rotCorr(n.b,this.labelRotation||0,0!==this.side)};d.prototype.hasData=function(){return this.series.some(function(a){return a.hasData()})||this.options.showEmpty&&m(this.min)&&m(this.max)};d.prototype.addTitle=function(a){var c=this.chart.renderer,g=this.horiz,p=this.opposite,l=this.options.title,b=this.chart.styledMode,f;this.axisTitle||((f=l.textAlign)||(f=(g?{low:"left",middle:"center",high:"right"}:
|
|
215
|
+
{low:p?"right":"left",middle:"center",high:p?"left":"right"})[l.align]),this.axisTitle=c.text(l.text||"",0,0,l.useHTML).attr({zIndex:7,rotation:l.rotation,align:f}).addClass("highcharts-axis-title"),b||this.axisTitle.css(J(l.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);b||l.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[a?"show":"hide"](a)};d.prototype.generateTick=function(a){var c=this.ticks;c[a]?c[a].addLabel():c[a]=new q(this,a)};d.prototype.getOffset=
|
|
216
|
+
function(){var a=this,g=this,l=g.chart,b=l.renderer,f=g.options,w=g.tickPositions,e=g.ticks,v=g.horiz,n=g.side,k=l.inverted&&!g.isZAxis?[1,0,3,2][n]:n,x=g.hasData(),H=f.title,J=f.labels,r=l.axisOffset;l=l.clipOffset;var u=[-1,1,1,-1][n],d=f.className,K=g.axisParent,O,q=0,y=0,P=0;g.showAxis=O=x||f.showEmpty;g.staggerLines=g.horiz&&J.staggerLines||void 0;if(!g.axisGroup){var h=function(c,g,p){return b.g(c).attr({zIndex:p}).addClass("highcharts-"+a.coll.toLowerCase()+g+" "+(a.isRadial?"highcharts-radial-axis"+
|
|
217
|
+
g+" ":"")+(d||"")).add(K)};g.gridGroup=h("grid","-grid",f.gridZIndex);g.axisGroup=h("axis","",f.zIndex);g.labelGroup=h("axis-labels","-labels",J.zIndex)}x||g.isLinked?(w.forEach(function(a){g.generateTick(a)}),g.renderUnsquish(),g.reserveSpaceDefault=0===n||2===n||{1:"left",3:"right"}[n]===g.labelAlign,G(J.reserveSpace,"center"===g.labelAlign?!0:null,g.reserveSpaceDefault)&&w.forEach(function(a){P=Math.max(e[a].getLabelSize(),P)}),g.staggerLines&&(P*=g.staggerLines),g.labelOffset=P*(g.opposite?-1:
|
|
218
|
+
1)):t(e,function(a,c){a.destroy();delete e[c]});if(H&&H.text&&!1!==H.enabled&&(g.addTitle(O),O&&!1!==H.reserveSpace)){g.titleOffset=q=g.axisTitle.getBBox()[v?"height":"width"];var S=H.offset;y=m(S)?0:G(H.margin,v?5:10)}g.renderLine();g.offset=u*G(f.offset,r[n]?r[n]+(f.margin||0):0);g.tickRotCorr=g.tickRotCorr||{x:0,y:0};H=0===n?-g.labelMetrics().h:2===n?g.tickRotCorr.y:0;x=Math.abs(P)+y;P&&(x=x-H+u*(v?G(J.y,g.tickRotCorr.y+8*u):J.x));g.axisTitleMargin=G(S,x);g.getMaxLabelDimensions&&(g.maxLabelDimensions=
|
|
219
|
+
g.getMaxLabelDimensions(e,w));v=this.tickSize("tick");r[n]=Math.max(r[n],(g.axisTitleMargin||0)+q+u*g.offset,x,w&&w.length&&v?v[0]+u*g.offset:0);f=f.offset?0:2*Math.floor(g.axisLine.strokeWidth()/2);l[k]=Math.max(l[k],f);c(this,"afterGetOffset")};d.prototype.getLinePath=function(a){var c=this.chart,g=this.opposite,p=this.offset,l=this.horiz,b=this.left+(g?this.width:0)+p;p=c.chartHeight-this.bottom-(g?this.height:0)+p;g&&(a*=-1);return c.renderer.crispLine([["M",l?this.left:b,l?p:this.top],["L",l?
|
|
220
|
+
c.chartWidth-this.right:b,l?p:c.chartHeight-this.bottom]],a)};d.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,"stroke-width":this.options.lineWidth,zIndex:7}))};d.prototype.getTitlePosition=function(){var a=this.horiz,g=this.left,l=this.top,b=this.len,f=this.options.title,t=a?g:l,w=this.opposite,v=this.offset,e=f.x,m=f.y,n=this.axisTitle,
|
|
221
|
+
G=this.chart.renderer.fontMetrics(f.style.fontSize,n);n=Math.max(n.getBBox(null,0).height-G.h-1,0);b={low:t+(a?0:b),middle:t+b/2,high:t+(a?b:0)}[f.align];g=(a?l+this.height:g)+(a?1:-1)*(w?-1:1)*this.axisTitleMargin+[-n,n,G.f,-n][this.side];a={x:a?b+e:g+(w?this.width:0)+v+e,y:a?g+m-(w?this.height:0)+v:b+m};c(this,"afterGetTitlePosition",{titlePosition:a});return a};d.prototype.renderMinorTick=function(a,c){var g=this.minorTicks;g[a]||(g[a]=new q(this,a,"minor"));c&&g[a].isNew&&g[a].render(null,!0);
|
|
222
|
+
g[a].render(null,!1,1)};d.prototype.renderTick=function(a,c,g){var p=this.ticks;if(!this.isLinked||a>=this.min&&a<=this.max||this.grid&&this.grid.isColumn)p[a]||(p[a]=new q(this,a)),g&&p[a].isNew&&p[a].render(c,!0,-1),p[a].render(c)};d.prototype.render=function(){var a=this,l=a.chart,b=a.logarithmic,f=a.options,w=a.isLinked,v=a.tickPositions,e=a.axisTitle,m=a.ticks,n=a.minorTicks,G=a.alternateBands,x=f.stackLabels,H=f.alternateGridColor,J=a.tickmarkOffset,r=a.axisLine,u=a.showAxis,d=k(l.renderer.globalAnimation),
|
|
223
|
+
K,O;a.labelEdge.length=0;a.overlap=!1;[m,n,G].forEach(function(a){t(a,function(a){a.isActive=!1})});if(a.hasData()||w){var y=a.chart.hasRendered&&a.old&&g(a.old.min);a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c,y)});v.length&&(v.forEach(function(c,g){a.renderTick(c,g,y)}),J&&(0===a.min||a.single)&&(m[-1]||(m[-1]=new q(a,-1,null,!0)),m[-1].render(-1)));H&&v.forEach(function(c,g){O="undefined"!==typeof v[g+1]?v[g+1]+J:a.max-J;0===g%2&&c<a.max&&
|
|
224
|
+
O<=a.max+(l.polar?-J:J)&&(G[c]||(G[c]=new A.PlotLineOrBand(a)),K=c+J,G[c].options={from:b?b.lin2log(K):K,to:b?b.lin2log(O):O,color:H,className:"highcharts-alternate-grid"},G[c].render(),G[c].isActive=!0)});a._addedPlotLB||(a._addedPlotLB=!0,(f.plotLines||[]).concat(f.plotBands||[]).forEach(function(c){a.addPlotBandOrLine(c)}))}[m,n,G].forEach(function(a){var c=[],g=d.duration;t(a,function(a,g){a.isActive||(a.render(g,!1,0),a.isActive=!1,c.push(g))});P(function(){for(var g=c.length;g--;)a[c[g]]&&!a[c[g]].isActive&&
|
|
225
|
+
(a[c[g]].destroy(),delete a[c[g]])},a!==G&&l.hasRendered&&g?g:0)});r&&(r[r.isPlaced?"animate":"attr"]({d:this.getLinePath(r.strokeWidth())}),r.isPlaced=!0,r[u?"show":"hide"](u));e&&u&&(f=a.getTitlePosition(),g(f.y)?(e[e.isNew?"attr":"animate"](f),e.isNew=!1):(e.attr("y",-9999),e.isNew=!0));x&&x.enabled&&a.stacking&&a.stacking.renderStackTotals();a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin};a.isDirty=!1;c(this,"afterRender")};d.prototype.redraw=function(){this.visible&&
|
|
226
|
+
(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})};d.prototype.getKeepProps=function(){return this.keepProps||d.keepProps};d.prototype.destroy=function(a){var g=this,l=g.plotLinesAndBands,p=this.eventOptions;c(this,"destroy",{keepEvents:a});a||v(g);[g.ticks,g.minorTicks,g.alternateBands].forEach(function(a){I(a)});if(l)for(a=l.length;a--;)l[a].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){g[a]&&
|
|
227
|
+
(g[a]=g[a].destroy())});for(var b in g.plotLinesAndBandsGroups)g.plotLinesAndBandsGroups[b]=g.plotLinesAndBandsGroups[b].destroy();t(g,function(a,c){-1===g.getKeepProps().indexOf(c)&&delete g[c]});this.eventOptions=p};d.prototype.drawCrosshair=function(a,g){var l=this.crosshair,p=G(l&&l.snap,!0),b=this.chart,f,t=this.cross;c(this,"drawCrosshair",{e:a,point:g});a||(a=this.cross&&this.cross.e);if(l&&!1!==(m(g)||!p)){p?m(g)&&(f=G("colorAxis"!==this.coll?g.crosshairPos:null,this.isXAxis?g.plotX:this.len-
|
|
228
|
+
g.plotY)):f=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos);if(m(f)){var w={value:g&&(this.isXAxis?g.x:G(g.stackY,g.y)),translatedValue:f};b.polar&&x(w,{isCrosshair:!0,chartX:a&&a.chartX,chartY:a&&a.chartY,point:g});w=this.getPlotLinePath(w)||null}if(!m(w)){this.hideCrosshair();return}p=this.categories&&!this.isRadial;t||(this.cross=t=b.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(p?"category ":"thin ")+(l.className||"")).attr({zIndex:G(l.zIndex,2)}).add(),b.styledMode||
|
|
229
|
+
(t.attr({stroke:l.color||(p?h.parse(F.highlightColor20).setOpacity(.25).get():F.neutralColor20),"stroke-width":G(l.width,1)}).css({"pointer-events":"none"}),l.dashStyle&&t.attr({dashstyle:l.dashStyle})));t.show().attr({d:w});p&&!l.width&&t.attr({"stroke-width":this.transA});this.cross.e=a}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:a,point:g})};d.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();c(this,"afterHideCrosshair")};d.prototype.hasVerticalPanning=function(){var a=
|
|
230
|
+
this.chart.options.chart.panning;return!!(a&&a.enabled&&/y/.test(a.type))};d.prototype.validatePositiveValue=function(a){return g(a)&&0<a};d.prototype.update=function(a,c){var g=this.chart;a=J(this.userOptions,a);this.destroy(!0);this.init(g,a);g.isDirtyBox=!0;G(c,!0)&&g.redraw()};d.prototype.remove=function(a){for(var c=this.chart,g=this.coll,l=this.series,p=l.length;p--;)l[p]&&l[p].remove(!1);L(c.axes,this);L(c[g],this);c[g].forEach(function(a,c){a.options.index=a.userOptions.index=c});this.destroy();
|
|
231
|
+
c.isDirtyBox=!0;G(a,!0)&&c.redraw()};d.prototype.setTitle=function(a,c){this.update({title:a},c)};d.prototype.setCategories=function(a,c){this.update({categories:a},c)};d.defaultOptions=B.defaultXAxisOptions;d.keepProps="extKey hcEvents names series userMax userMin".split(" ");return d}();"";return d});N(h,"Core/Axis/DateTimeAxis.js",[h["Core/Axis/Axis.js"],h["Core/Utilities.js"]],function(d,h){var Q=h.addEvent,D=h.getMagnitude,E=h.normalizeTickInterval,A=h.timeUnits,z=function(){function d(d){this.axis=
|
|
232
|
+
d}d.prototype.normalizeTimeTickInterval=function(d,k){var e=k||[["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]];k=e[e.length-1];var b=A[k[0]],r=k[1],q;for(q=0;q<e.length&&!(k=e[q],b=A[k[0]],r=k[1],e[q+1]&&d<=(b*r[r.length-1]+A[e[q+1][0]])/2);q++);b===A.year&&d<5*b&&(r=[1,2,5]);d=E(d/b,r,"year"===k[0]?Math.max(D(d/b),1):1);return{unitRange:b,count:d,unitName:k[0]}};
|
|
233
|
+
return d}();h=function(){function d(){}d.compose=function(d){d.keepProps.push("dateTime");d.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};Q(d,"init",function(k){"datetime"!==k.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new z(this))})};d.AdditionsClass=z;return d}();h.compose(d);return h});N(h,"Core/Axis/LogarithmicAxis.js",[h["Core/Axis/Axis.js"],h["Core/Utilities.js"]],function(d,h){var Q=h.addEvent,D=h.getMagnitude,
|
|
234
|
+
E=h.normalizeTickInterval,A=h.pick,z=function(){function d(d){this.axis=d}d.prototype.getLogTickPositions=function(d,k,e,b){var r=this.axis,q=r.len,y=r.options,n=[];b||(this.minorAutoInterval=void 0);if(.5<=d)d=Math.round(d),n=r.getLinearTickPositions(d,k,e);else if(.08<=d){var f=Math.floor(k),m,h=y=void 0;for(q=.3<d?[1,2,4]:.15<d?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<e+1&&!h;f++){var L=q.length;for(m=0;m<L&&!h;m++){var u=this.log2lin(this.lin2log(f)*q[m]);u>k&&(!b||y<=e)&&"undefined"!==typeof y&&n.push(y);
|
|
235
|
+
y>e&&(h=!0);y=u}}}else k=this.lin2log(k),e=this.lin2log(e),d=b?r.getMinorTickInterval():y.tickInterval,d=A("auto"===d?null:d,this.minorAutoInterval,y.tickPixelInterval/(b?5:1)*(e-k)/((b?q/r.tickPositions.length:q)||1)),d=E(d,void 0,D(d)),n=r.getLinearTickPositions(d,k,e).map(this.log2lin),b||(this.minorAutoInterval=d/5);b||(r.tickInterval=d);return n};d.prototype.lin2log=function(d){return Math.pow(10,d)};d.prototype.log2lin=function(d){return Math.log(d)/Math.LN10};return d}();h=function(){function d(){}
|
|
236
|
+
d.compose=function(d){d.keepProps.push("logarithmic");Q(d,"init",function(k){var e=this.logarithmic;"logarithmic"!==k.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new z(this))});Q(d,"afterInit",function(){var k=this.logarithmic;k&&(this.lin2val=function(e){return k.lin2log(e)},this.val2lin=function(e){return k.log2lin(e)})})};return d}();h.compose(d);return h});N(h,"Core/Axis/PlotLineOrBand.js",[h["Core/Axis/Axis.js"],h["Core/Color/Palette.js"],h["Core/Utilities.js"]],function(d,
|
|
237
|
+
h,F){var Q=F.arrayMax,E=F.arrayMin,A=F.defined,z=F.destroyObjectProperties,B=F.erase,q=F.extend,k=F.fireEvent,e=F.isNumber,b=F.merge,r=F.objectEach,C=F.pick,y=function(){function e(b,e){this.axis=b;e&&(this.options=e,this.id=e.id)}e.prototype.render=function(){k(this,"render");var f=this,e=f.axis,n=e.horiz,d=e.logarithmic,u=f.options,x=u.label,c=f.label,l=u.to,a=u.from,g=u.value,w=A(a)&&A(l),J=A(g),K=f.svgElem,t=!K,G=[],O=u.color,v=C(u.zIndex,0),H=u.events;G={"class":"highcharts-plot-"+(w?"band ":
|
|
238
|
+
"line ")+(u.className||"")};var q={},y=e.chart.renderer,p=w?"bands":"lines";d&&(a=d.log2lin(a),l=d.log2lin(l),g=d.log2lin(g));e.chart.styledMode||(J?(G.stroke=O||h.neutralColor40,G["stroke-width"]=C(u.width,1),u.dashStyle&&(G.dashstyle=u.dashStyle)):w&&(G.fill=O||h.highlightColor10,u.borderWidth&&(G.stroke=u.borderColor,G["stroke-width"]=u.borderWidth)));q.zIndex=v;p+="-"+v;(d=e.plotLinesAndBandsGroups[p])||(e.plotLinesAndBandsGroups[p]=d=y.g("plot-"+p).attr(q).add());t&&(f.svgElem=K=y.path().attr(G).add(d));
|
|
239
|
+
if(J)G=e.getPlotLinePath({value:g,lineWidth:K.strokeWidth(),acrossPanes:u.acrossPanes});else if(w)G=e.getPlotBandPath(a,l,u);else return;!f.eventsAdded&&H&&(r(H,function(a,c){K.on(c,function(a){H[c].apply(f,[a])})}),f.eventsAdded=!0);(t||!K.d)&&G&&G.length?K.attr({d:G}):K&&(G?(K.show(!0),K.animate({d:G})):K.d&&(K.hide(),c&&(f.label=c=c.destroy())));x&&(A(x.text)||A(x.formatter))&&G&&G.length&&0<e.width&&0<e.height&&!G.isFlat?(x=b({align:n&&w&&"center",x:n?!w&&4:10,verticalAlign:!n&&w&&"middle",y:n?
|
|
240
|
+
w?16:10:w?6:-4,rotation:n&&!w&&90},x),this.renderLabel(x,G,w,v)):c&&c.hide();return f};e.prototype.renderLabel=function(b,e,n,k){var f=this.label,m=this.axis.chart.renderer;f||(f={align:b.textAlign||b.align,rotation:b.rotation,"class":"highcharts-plot-"+(n?"band":"line")+"-label "+(b.className||"")},f.zIndex=k,k=this.getLabelText(b),this.label=f=m.text(k,0,0,b.useHTML).attr(f).add(),this.axis.chart.styledMode||f.css(b.style));m=e.xBounds||[e[0][1],e[1][1],n?e[2][1]:e[0][1]];e=e.yBounds||[e[0][2],
|
|
241
|
+
e[1][2],n?e[2][2]:e[0][2]];n=E(m);k=E(e);f.align(b,!1,{x:n,y:k,width:Q(m)-n,height:Q(e)-k});f.show(!0)};e.prototype.getLabelText=function(b){return A(b.formatter)?b.formatter.call(this):b.text};e.prototype.destroy=function(){B(this.axis.plotLinesAndBands,this);delete this.axis;z(this)};return e}();q(d.prototype,{getPlotBandPath:function(b,f,m){void 0===m&&(m=this.options);var n=this.getPlotLinePath({value:f,force:!0,acrossPanes:m.acrossPanes});m=this.getPlotLinePath({value:b,force:!0,acrossPanes:m.acrossPanes});
|
|
242
|
+
var k=[],d=this.horiz,x=1;b=!e(this.min)||!e(this.max)||b<this.min&&f<this.min||b>this.max&&f>this.max;if(m&&n){if(b){var c=m.toString()===n.toString();x=0}for(b=0;b<m.length;b+=2){f=m[b];var l=m[b+1],a=n[b],g=n[b+1];"M"!==f[0]&&"L"!==f[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==a[0]&&"L"!==a[0]||"M"!==g[0]&&"L"!==g[0]||(d&&a[1]===f[1]?(a[1]+=x,g[1]+=x):d||a[2]!==f[2]||(a[2]+=x,g[2]+=x),k.push(["M",f[1],f[2]],["L",l[1],l[2]],["L",g[1],g[2]],["L",a[1],a[2]],["Z"]));k.isFlat=c}}return k},addPlotBand:function(b){return this.addPlotBandOrLine(b,
|
|
243
|
+
"plotBands")},addPlotLine:function(b){return this.addPlotBandOrLine(b,"plotLines")},addPlotBandOrLine:function(b,f){var e=this,n=new y(this,b),k=this.userOptions;this.visible&&(n=n.render());if(n){this._addedPlotLB||(this._addedPlotLB=!0,(k.plotLines||[]).concat(k.plotBands||[]).forEach(function(b){e.addPlotBandOrLine(b)}));if(f){var d=k[f]||[];d.push(b);k[f]=d}this.plotLinesAndBands.push(n)}return n},removePlotBandOrLine:function(b){var f=this.plotLinesAndBands,e=this.options,n=this.userOptions;
|
|
244
|
+
if(f){for(var k=f.length;k--;)f[k].id===b&&f[k].destroy();[e.plotLines||[],n.plotLines||[],e.plotBands||[],n.plotBands||[]].forEach(function(f){for(k=f.length;k--;)(f[k]||{}).id===b&&B(f,f[k])})}},removePlotBand:function(b){this.removePlotBandOrLine(b)},removePlotLine:function(b){this.removePlotBandOrLine(b)}});return y});N(h,"Core/Tooltip.js",[h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Color/Palette.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Utilities.js"]],function(d,h,F,
|
|
245
|
+
D,E){var A=d.format,z=h.doc,B=E.clamp,q=E.css,k=E.defined,e=E.discardElement,b=E.extend,r=E.fireEvent,C=E.isArray,y=E.isNumber,n=E.isString,f=E.merge,m=E.pick,I=E.splat,L=E.syncTimeout,u=E.timeUnits;"";d=function(){function d(c,l){this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=c;this.init(c,l)}d.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+
|
|
246
|
+
c.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"}}]}]})};d.prototype.bodyFormatter=function(c){return c.map(function(c){var a=c.series.tooltipOptions;return(a[(c.point.formatPrefix||"point")+"Formatter"]||
|
|
247
|
+
c.point.tooltipFormatter).call(c.point,a[(c.point.formatPrefix||"point")+"Format"]||"")})};d.prototype.cleanSplit=function(c){this.chart.series.forEach(function(l){var a=l&&l.tt;a&&(!a.isActive||c?l.tt=a.destroy():a.isActive=!1)})};d.prototype.defaultFormatter=function(c){var l=this.points||I(this);var a=[c.tooltipFooterHeaderFormatter(l[0])];a=a.concat(c.bodyFormatter(l));a.push(c.tooltipFooterHeaderFormatter(l[0],!0));return a};d.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());
|
|
248
|
+
this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),e(this.container));E.clearTimeout(this.hideTimer);E.clearTimeout(this.tooltipTimeout)};d.prototype.getAnchor=function(c,l){var a=this.chart;var g=a.pointer;var b=a.inverted,f=a.plotTop,e=a.plotLeft,t=0,m=0,n,v;c=I(c);this.followPointer&&l?("undefined"===typeof l.chartX&&(l=g.normalize(l)),g=[l.chartX-e,l.chartY-f]):c[0].tooltipPos?g=c[0].tooltipPos:(c.forEach(function(c){n=
|
|
249
|
+
c.series.yAxis;v=c.series.xAxis;t+=c.plotX||0;m+=c.plotLow?(c.plotLow+(c.plotHigh||0))/2:c.plotY||0;v&&n&&(b?(t+=f+a.plotHeight-v.len-v.pos,m+=e+a.plotWidth-n.len-n.pos):(t+=v.pos-e,m+=n.pos-f))}),t/=c.length,m/=c.length,g=[b?a.plotWidth-m:t,b?a.plotHeight-t:m],this.shared&&1<c.length&&l&&(b?g[0]=l.chartX-e:g[1]=l.chartY-f));return g.map(Math.round)};d.prototype.getDateFormat=function(c,l,a,g){var b=this.chart.time,f=b.dateFormat("%m-%d %H:%M:%S.%L",l),e={millisecond:15,second:12,minute:9,hour:6,
|
|
250
|
+
day:3},t="millisecond";for(m in u){if(c===u.week&&+b.dateFormat("%w",l)===a&&"00:00:00.000"===f.substr(6)){var m="week";break}if(u[m]>c){m=t;break}if(e[m]&&f.substr(e[m])!=="01-01 00:00:00.000".substr(e[m]))break;"week"!==m&&(t=m)}if(m)var n=b.resolveDTLFormat(g[m]).main;return n};d.prototype.getLabel=function(){var c=this,l=this.chart.renderer,a=this.chart.styledMode,g=this.options,b="tooltip"+(k(g.className)?" "+g.className:""),f=g.style&&g.style.pointerEvents||(!this.followPointer&&g.stickOnContact?
|
|
251
|
+
"auto":"none"),e,t=function(){c.inContact=!0},m=function(){var a=c.chart.hoverSeries;c.inContact=!1;if(a&&a.onMouseOut)a.onMouseOut()};if(!this.label){if(this.outside){var n=this.chart.options.chart.style,v=D.getRendererType();this.container=e=h.doc.createElement("div");e.className="highcharts-tooltip-container";q(e,{position:"absolute",top:"1px",pointerEvents:f,zIndex:Math.max(this.options.style&&this.options.style.zIndex||0,(n&&n.zIndex||0)+3)});h.doc.body.appendChild(e);this.renderer=l=new v(e,
|
|
252
|
+
0,0,n,void 0,void 0,l.styledMode)}this.split?this.label=l.g(b):(this.label=l.label("",0,0,g.shape||"callout",null,null,g.useHTML,null,b).attr({padding:g.padding,r:g.borderRadius}),a||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:f}).shadow(g.shadow));a&&g.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c.outside&&!c.split){var d=this.label,x=d.xSetter,r=d.ySetter;d.xSetter=function(a){x.call(d,
|
|
253
|
+
c.distance);e.style.left=a+"px"};d.ySetter=function(a){r.call(d,c.distance);e.style.top=a+"px"}}this.label.on("mouseenter",t).on("mouseleave",m).attr({zIndex:8}).add()}return this.label};d.prototype.getPosition=function(c,l,a){var g=this.chart,b=this.distance,f={},e=g.inverted&&a.h||0,t,n=this.outside,k=n?z.documentElement.clientWidth-2*b:g.chartWidth,v=n?Math.max(z.body.scrollHeight,z.documentElement.scrollHeight,z.body.offsetHeight,z.documentElement.offsetHeight,z.documentElement.clientHeight):
|
|
254
|
+
g.chartHeight,d=g.pointer.getChartPosition(),x=function(p){var f="x"===p;return[p,f?k:v,f?c:l].concat(n?[f?c*d.scaleX:l*d.scaleY,f?d.left-b+(a.plotX+g.plotLeft)*d.scaleX:d.top-b+(a.plotY+g.plotTop)*d.scaleY,0,f?k:v]:[f?c:l,f?a.plotX+g.plotLeft:a.plotY+g.plotTop,f?g.plotLeft:g.plotTop,f?g.plotLeft+g.plotWidth:g.plotTop+g.plotHeight])},r=x("y"),p=x("x"),u=!this.followPointer&&m(a.ttBelow,!g.inverted===!!a.negative),q=function(a,c,g,l,p,t,w){var v=n?"y"===a?b*d.scaleY:b*d.scaleX:b,m=(g-l)/2,k=l<p-b,
|
|
255
|
+
G=p+b+l<c,x=p-v-g+m;p=p+v-m;if(u&&G)f[a]=p;else if(!u&&k)f[a]=x;else if(k)f[a]=Math.min(w-l,0>x-e?x:x-e);else if(G)f[a]=Math.max(t,p+e+g>c?p:p+e);else return!1},h=function(a,c,g,l,p){var e;p<b||p>c-b?e=!1:f[a]=p<g/2?1:p>c-l/2?c-l-2:p-g/2;return e},y=function(a){var c=r;r=p;p=c;t=a},T=function(){!1!==q.apply(0,r)?!1!==h.apply(0,p)||t||(y(!0),T()):t?f.x=f.y=0:(y(!0),T())};(g.inverted||1<this.len)&&y();T();return f};d.prototype.getXDateFormat=function(c,l,a){l=l.dateTimeLabelFormats;var g=a&&a.closestPointRange;
|
|
256
|
+
return(g?this.getDateFormat(g,c.x,a.options.startOfWeek,l):l.day)||l.year};d.prototype.hide=function(c){var l=this;E.clearTimeout(this.hideTimer);c=m(c,this.options.hideDelay,500);this.isHidden||(this.hideTimer=L(function(){l.getLabel().fadeOut(c?void 0:c);l.isHidden=!0},c))};d.prototype.init=function(c,l){this.chart=c;this.options=l;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=l.split&&!c.inverted&&!c.polar;this.shared=l.shared||this.split;this.outside=m(l.outside,!(!c.scrollablePixelsX&&
|
|
257
|
+
!c.scrollablePixelsY))};d.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)};d.prototype.move=function(c,l,a,g){var f=this,e=f.now,m=!1!==f.options.animation&&!f.isHidden&&(1<Math.abs(c-e.x)||1<Math.abs(l-e.y)),t=f.followPointer||1<f.len;b(e,{x:m?(2*e.x+c)/3:c,y:m?(e.y+l)/2:l,anchorX:t?void 0:m?(2*e.anchorX+a)/3:a,anchorY:t?void 0:m?(e.anchorY+g)/2:g});f.getLabel().attr(e);f.drawTracker();m&&(E.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=
|
|
258
|
+
setTimeout(function(){f&&f.move(c,l,a,g)},32))};d.prototype.refresh=function(c,l){var a=this.chart,g=this.options,b=I(c),f=b[0],e={},t=[],n=g.formatter||this.defaultFormatter;e=this.shared;var k=a.styledMode;if(g.enabled){E.clearTimeout(this.hideTimer);this.followPointer=!this.split&&f.series.tooltipOptions.followPointer;var v=this.getAnchor(c,l);var d=v[0];var x=v[1];!e||!C(c)&&c.series&&c.series.noSharedTooltip?e=f.getLabelConfig():(a.pointer.applyInactiveState(b),b.forEach(function(a){a.setState("hover");
|
|
259
|
+
t.push(a.getLabelConfig())}),e={x:f.category,y:f.y},e.points=t);this.len=t.length;c=n.call(e,this);n=f.series;this.distance=m(n.tooltipOptions.distance,16);if(!1===c)this.hide();else{if(this.split)this.renderSplit(c,b);else if(b=d,e=x,l&&a.pointer.isDirectTouch&&(b=l.chartX-a.plotLeft,e=l.chartY-a.plotTop),a.polar||!1===n.options.clip||n.shouldShowTooltip(b,e))l=this.getLabel(),g.style.width&&!k||l.css({width:this.chart.spacingBox.width+"px"}),l.attr({text:c&&c.join?c.join(""):c}),l.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+
|
|
260
|
+
m(f.colorIndex,n.colorIndex)),k||l.attr({stroke:g.borderColor||f.color||n.color||F.neutralColor60}),this.updatePosition({plotX:d,plotY:x,negative:f.negative,ttBelow:f.ttBelow,h:v[2]||0});else{this.hide();return}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}r(this,"refresh")}};d.prototype.renderSplit=function(c,l){function a(a,c,l,b,p){void 0===p&&(p=!0);l?(c=V?0:D,a=B(a-b/2,W.left,W.right-b-(g.outside?A:0))):(c-=E,a=p?a-b-C:a+C,a=B(a,p?a:W.left,W.right));return{x:a,
|
|
261
|
+
y:c}}var g=this,f=g.chart,e=g.chart,k=e.chartWidth,t=e.chartHeight,d=e.plotHeight,x=e.plotLeft,v=e.plotTop,H=e.pointer,r=e.scrollablePixelsY;r=void 0===r?0:r;var u=e.scrollablePixelsX,p=e.scrollingContainer;p=void 0===p?{scrollLeft:0,scrollTop:0}:p;var q=p.scrollLeft;p=p.scrollTop;var y=e.styledMode,C=g.distance,I=g.options,T=g.options.positioner,W=g.outside&&"number"!==typeof u?z.documentElement.getBoundingClientRect():{left:q,right:q+k,top:p,bottom:p+t},ba=g.getLabel(),L=this.renderer||f.renderer,
|
|
262
|
+
V=!(!f.xAxis[0]||!f.xAxis[0].opposite);f=H.getChartPosition();var A=f.left;f=f.top;var E=v+p,Q=0,D=d-r;n(c)&&(c=[!1,c]);c=c.slice(0,l.length+1).reduce(function(c,b,p){if(!1!==b&&""!==b){p=l[p-1]||{isHeader:!0,plotX:l[0].plotX,plotY:d,series:{}};var f=p.isHeader,e=f?g:p.series;b=b.toString();var t=e.tt,w=p.isHeader;var n=p.series;var k="highcharts-color-"+m(p.colorIndex,n.colorIndex,"none");t||(t={padding:I.padding,r:I.borderRadius},y||(t.fill=I.backgroundColor,t["stroke-width"]=I.borderWidth),t=L.label("",
|
|
263
|
+
0,0,I[w?"headerShape":"shape"]||"callout",void 0,void 0,I.useHTML).addClass((w?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+k).attr(t).add(ba));t.isActive=!0;t.attr({text:b});y||t.css(I.style).shadow(I.shadow).attr({stroke:I.borderColor||p.color||n.color||F.neutralColor80});e=e.tt=t;w=e.getBBox();b=w.width+e.strokeWidth();f&&(Q=w.height,D+=Q,V&&(E-=Q));n=p.plotX;n=void 0===n?0:n;k=p.plotY;k=void 0===k?0:k;t=p.series;if(p.isHeader){n=x+n;var G=v+d/2}else{var H=t.xAxis,r=t.yAxis;n=H.pos+
|
|
264
|
+
B(n,-C,H.len+C);t.shouldShowTooltip(0,r.pos-v+k,{ignoreX:!0})&&(G=r.pos+k)}n=B(n,W.left-C,W.right+C);"number"===typeof G?(w=w.height+1,k=T?T.call(g,b,w,p):a(n,G,f,b),c.push({align:T?0:void 0,anchorX:n,anchorY:G,boxWidth:b,point:p,rank:m(k.rank,f?1:0),size:w,target:k.y,tt:e,x:k.x})):e.isActive=!1}return c},[]);!T&&c.some(function(a){var c=(g.outside?A:0)+a.anchorX;return c<W.left&&c+a.boxWidth<W.right?!0:c<A-W.left+a.boxWidth&&W.right-c>c})&&(c=c.map(function(c){var g=a(c.anchorX,c.anchorY,c.point.isHeader,
|
|
265
|
+
c.boxWidth,!1);return b(c,{target:g.y,x:g.x})}));g.cleanSplit();h.distribute(c,D);var Z=A,N=A;c.forEach(function(a){var c=a.x,b=a.boxWidth;a=a.isHeader;a||(g.outside&&A+c<Z&&(Z=A+c),!a&&g.outside&&Z+b>N&&(N=A+c))});c.forEach(function(a){var c=a.x,b=a.anchorX,l=a.pos,p=a.point.isHeader;l={visibility:"undefined"===typeof l?"hidden":"inherit",x:c,y:l+E,anchorX:b,anchorY:a.anchorY};if(g.outside&&c<b){var f=A-Z;0<f&&(p||(l.x=c+f,l.anchorX=b+f),p&&(l.x=(N-Z)/2,l.anchorX=b+f))}a.tt.attr(l)});c=g.container;
|
|
266
|
+
r=g.renderer;g.outside&&c&&r&&(e=ba.getBBox(),r.setSize(e.width+e.x,e.height+e.y,!1),c.style.left=Z+"px",c.style.top=f+"px")};d.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var c=this.chart,b=this.label,a=this.shared?c.hoverPoints:c.hoverPoint;if(b&&a){var g={x:0,y:0,width:0,height:0};a=this.getAnchor(a);var f=b.getBBox();a[0]+=c.plotLeft-b.translateX;a[1]+=c.plotTop-b.translateY;g.x=Math.min(0,a[0]);g.y=Math.min(0,
|
|
267
|
+
a[1]);g.width=0>a[0]?Math.max(Math.abs(a[0]),f.width-a[0]):Math.max(Math.abs(a[0]),f.width);g.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(g):(this.tracker=b.renderer.rect(g).addClass("highcharts-tracker").add(b),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};d.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,
|
|
268
|
+
'class="highcharts-color-{$1.colorIndex}"')};d.prototype.tooltipFooterHeaderFormatter=function(c,b){var a=b?"footer":"header",g=c.series,l=g.tooltipOptions,f=l.xDateFormat,e=g.xAxis,t=e&&"datetime"===e.options.type&&y(c.key),m=l[a+"Format"];b={isFooter:b,labelConfig:c};r(this,"headerFormatter",b,function(a){t&&!f&&(f=this.getXDateFormat(c,l,e));t&&f&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(a){m=m.replace("{point."+a+"}","{point."+a+":"+f+"}")});g.chart.styledMode&&(m=this.styledModeFormat(m));
|
|
269
|
+
a.text=A(m,{point:c,series:g},this.chart)});return b.text};d.prototype.update=function(c){this.destroy();f(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,f(!0,this.options,c))};d.prototype.updatePosition=function(c){var b=this.chart,a=b.pointer,g=this.getLabel(),f=c.plotX+b.plotLeft;b=c.plotY+b.plotTop;a=a.getChartPosition();c=(this.options.positioner||this.getPosition).call(this,g.width,g.height,c);if(this.outside){var e=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(g.width+
|
|
270
|
+
e,g.height+e,!1);if(1!==a.scaleX||1!==a.scaleY)q(this.container,{transform:"scale("+a.scaleX+", "+a.scaleY+")"}),f*=a.scaleX,b*=a.scaleY;f+=a.left-c.x;b+=a.top-c.y}this.move(Math.round(c.x),Math.round(c.y||0),f,b)};return d}();h.Tooltip=d;return h.Tooltip});N(h,"Core/Pointer.js",[h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Color/Palette.js"],h["Core/Tooltip.js"],h["Core/Utilities.js"]],function(d,h,F,D,E){var A=d.parse,z=h.charts,B=h.noop,q=E.addEvent,k=E.attr,e=E.css,b=E.defined,r=E.extend,
|
|
271
|
+
C=E.find,y=E.fireEvent,n=E.isNumber,f=E.isObject,m=E.objectEach,I=E.offset,L=E.pick,u=E.splat;d=function(){function d(c,b){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=c;this.hasDragged=!1;this.options=b;this.init(c,b)}d.prototype.applyInactiveState=function(c){var b=[],a;(c||[]).forEach(function(c){a=c.series;b.push(a);a.linkedParent&&b.push(a.linkedParent);a.linkedSeries&&(b=b.concat(a.linkedSeries));a.navigatorSeries&&b.push(a.navigatorSeries)});
|
|
272
|
+
this.chart.series.forEach(function(a){-1===b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};d.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(c){return c()});this.eventsToUnbind=[];h.chartCount||(d.unbindDocumentMouseUp&&(d.unbindDocumentMouseUp=d.unbindDocumentMouseUp()),d.unbindDocumentTouchEnd&&(d.unbindDocumentTouchEnd=d.unbindDocumentTouchEnd()));clearInterval(c.tooltipTimeout);m(c,function(b,a){c[a]=void 0})};
|
|
273
|
+
d.prototype.drag=function(c){var b=this.chart,a=b.options.chart,g=this.zoomHor,e=this.zoomVert,m=b.plotLeft,d=b.plotTop,t=b.plotWidth,n=b.plotHeight,k=this.mouseDownX||0,v=this.mouseDownY||0,H=f(a.panning)?a.panning&&a.panning.enabled:a.panning,r=a.panKey&&c[a.panKey+"Key"],x=c.chartX,p=c.chartY,u=this.selectionMarker;if(!u||!u.touch)if(x<m?x=m:x>m+t&&(x=m+t),p<d?p=d:p>d+n&&(p=d+n),this.hasDragged=Math.sqrt(Math.pow(k-x,2)+Math.pow(v-p,2)),10<this.hasDragged){var q=b.isInsidePlot(k-m,v-d,{visiblePlotOnly:!0});
|
|
274
|
+
b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&q&&!r&&!u&&(this.selectionMarker=u=b.renderer.rect(m,d,g?1:t,e?1:n,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||u.attr({fill:a.selectionMarkerFill||A(F.highlightColor80).setOpacity(.25).get()}));u&&g&&(g=x-k,u.attr({width:Math.abs(g),x:(0<g?0:g)+k}));u&&e&&(g=p-v,u.attr({height:Math.abs(g),y:(0<g?0:g)+v}));q&&!u&&H&&b.pan(c,a.panning)}};d.prototype.dragStart=function(c){var b=this.chart;b.mouseIsDown=c.type;b.cancelClick=
|
|
275
|
+
!1;b.mouseDownX=this.mouseDownX=c.chartX;b.mouseDownY=this.mouseDownY=c.chartY};d.prototype.drop=function(c){var l=this,a=this.chart,g=this.hasPinched;if(this.selectionMarker){var f={originalEvent:c,xAxis:[],yAxis:[]},m=this.selectionMarker,d=m.attr?m.attr("x"):m.x,t=m.attr?m.attr("y"):m.y,k=m.attr?m.attr("width"):m.width,x=m.attr?m.attr("height"):m.height,v;if(this.hasDragged||g)a.axes.forEach(function(a){if(a.zoomEnabled&&b(a.min)&&(g||l[{xAxis:"zoomX",yAxis:"zoomY"}[a.coll]])&&n(d)&&n(t)){var e=
|
|
276
|
+
a.horiz,w="touchend"===c.type?a.minPixelPadding:0,p=a.toValue((e?d:t)+w);e=a.toValue((e?d+k:t+x)-w);f[a.coll].push({axis:a,min:Math.min(p,e),max:Math.max(p,e)});v=!0}}),v&&y(a,"selection",f,function(c){a.zoom(r(c,g?{animation:!1}:null))});n(a.index)&&(this.selectionMarker=this.selectionMarker.destroy());g&&this.scaleGroups()}a&&n(a.index)&&(e(a.container,{cursor:a._cursor}),a.cancelClick=10<this.hasDragged,a.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};d.prototype.findNearestKDPoint=
|
|
277
|
+
function(c,b,a){var g=this.chart,l=g.hoverPoint;g=g.tooltip;if(l&&g&&g.isStickyOnContact())return l;var e;c.forEach(function(c){var g=!(c.noSharedTooltip&&b)&&0>c.options.findNearestPointBy.indexOf("y");c=c.searchPoint(a,g);if((g=f(c,!0)&&c.series)&&!(g=!f(e,!0))){g=e.distX-c.distX;var l=e.dist-c.dist,w=(c.series.group&&c.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);g=0<(0!==g&&b?g:0!==l?l:0!==w?w:e.series.index>c.series.index?-1:1)}g&&(e=c)});return e};d.prototype.getChartCoordinatesFromPoint=
|
|
278
|
+
function(c,b){var a=c.series,g=a.xAxis;a=a.yAxis;var l=c.shapeArgs;if(g&&a){var f=L(c.clientX,c.plotX),e=c.plotY||0;c.isNode&&l&&n(l.x)&&n(l.y)&&(f=l.x,e=l.y);return b?{chartX:a.len+a.pos-e,chartY:g.len+g.pos-f}:{chartX:f+g.pos,chartY:e+a.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}};d.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,b=I(c);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var a=c.offsetWidth;c=c.offsetHeight;
|
|
279
|
+
2<a&&2<c&&(this.chartPosition.scaleX=b.width/a,this.chartPosition.scaleY=b.height/c);return this.chartPosition};d.prototype.getCoordinates=function(c){var b={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(a){b[a.isXAxis?"xAxis":"yAxis"].push({axis:a,value:a.toValue(c[a.horiz?"chartX":"chartY"])})});return b};d.prototype.getHoverData=function(c,b,a,g,e,m){var l=[];g=!(!g||!c);var t={chartX:m?m.chartX:void 0,chartY:m?m.chartY:void 0,shared:e};y(this,"beforeGetHoverData",t);var w=b&&!b.stickyTracking?
|
|
280
|
+
[b]:a.filter(function(a){return t.filter?t.filter(a):a.visible&&!(!e&&a.directTouch)&&L(a.options.enableMouseTracking,!0)&&a.stickyTracking});var d=g||!m?c:this.findNearestKDPoint(w,e,m);b=d&&d.series;d&&(e&&!b.noSharedTooltip?(w=a.filter(function(a){return t.filter?t.filter(a):a.visible&&!(!e&&a.directTouch)&&L(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),w.forEach(function(a){var c=C(a.points,function(a){return a.x===d.x&&!a.isNull});f(c)&&(a.chart.isBoosting&&(c=a.getPoint(c)),l.push(c))})):
|
|
281
|
+
l.push(d));t={hoverPoint:d};y(this,"afterGetHoverData",t);return{hoverPoint:t.hoverPoint,hoverSeries:b,hoverPoints:l}};d.prototype.getPointFromEvent=function(c){c=c.target;for(var b;c&&!b;)b=c.point,c=c.parentNode;return b};d.prototype.onTrackerMouseOut=function(c){c=c.relatedTarget||c.toElement;var b=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!b||!c||b.stickyTracking||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+b.index)&&this.inClass(c,"highcharts-tracker")))b.onMouseOut()};
|
|
282
|
+
d.prototype.inClass=function(c,b){for(var a;c;){if(a=k(c,"class")){if(-1!==a.indexOf(b))return!0;if(-1!==a.indexOf("highcharts-container"))return!1}c=c.parentNode}};d.prototype.init=function(c,b){this.options=b;this.chart=c;this.runChartClick=!(!b.chart.events||!b.chart.events.click);this.pinchDown=[];this.lastValidTouch={};D&&(c.tooltip=new D(c,b.tooltip),this.followTouchMove=L(b.tooltip.followTouchMove,!0));this.setDOMEvents()};d.prototype.normalize=function(c,b){var a=c.touches,g=a?a.length?a.item(0):
|
|
283
|
+
L(a.changedTouches,c.changedTouches)[0]:c;b||(b=this.getChartPosition());a=g.pageX-b.left;g=g.pageY-b.top;a/=b.scaleX;g/=b.scaleY;return r(c,{chartX:Math.round(a),chartY:Math.round(g)})};d.prototype.onContainerClick=function(c){var b=this.chart,a=b.hoverPoint;c=this.normalize(c);var g=b.plotLeft,f=b.plotTop;b.cancelClick||(a&&this.inClass(c.target,"highcharts-tracker")?(y(a.series,"click",r(c,{point:a})),b.hoverPoint&&a.firePointEvent("click",c)):(r(c,this.getCoordinates(c)),b.isInsidePlot(c.chartX-
|
|
284
|
+
g,c.chartY-f,{visiblePlotOnly:!0})&&y(b,"click",c)))};d.prototype.onContainerMouseDown=function(c){var b=1===((c.buttons||c.button)&1);c=this.normalize(c);if(h.isFirefox&&0!==c.button)this.onContainerMouseMove(c);if("undefined"===typeof c.button||b)this.zoomOption(c),b&&c.preventDefault&&c.preventDefault(),this.dragStart(c)};d.prototype.onContainerMouseLeave=function(c){var b=z[L(d.hoverChartIndex,-1)],a=this.chart.tooltip;c=this.normalize(c);b&&(c.relatedTarget||c.toElement)&&(b.pointer.reset(),
|
|
285
|
+
b.pointer.chartPosition=void 0);a&&!a.isHidden&&this.reset()};d.prototype.onContainerMouseEnter=function(c){delete this.chartPosition};d.prototype.onContainerMouseMove=function(c){var b=this.chart;c=this.normalize(c);this.setHoverChartIndex();c.preventDefault||(c.returnValue=!1);("mousedown"===b.mouseIsDown||this.touchSelect(c))&&this.drag(c);b.openMenu||!this.inClass(c.target,"highcharts-tracker")&&!b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop,{visiblePlotOnly:!0})||(this.inClass(c.target,
|
|
286
|
+
"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(c))};d.prototype.onDocumentTouchEnd=function(c){var b=z[L(d.hoverChartIndex,-1)];b&&b.pointer.drop(c)};d.prototype.onContainerTouchMove=function(c){if(this.touchSelect(c))this.onContainerMouseMove(c);else this.touch(c)};d.prototype.onContainerTouchStart=function(c){if(this.touchSelect(c))this.onContainerMouseDown(c);else this.zoomOption(c),this.touch(c,!0)};d.prototype.onDocumentMouseMove=function(c){var b=this.chart,a=this.chartPosition;
|
|
287
|
+
c=this.normalize(c,a);var g=b.tooltip;!a||g&&g.isStickyOnContact()||b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop,{visiblePlotOnly:!0})||this.inClass(c.target,"highcharts-tracker")||this.reset()};d.prototype.onDocumentMouseUp=function(c){var b=z[L(d.hoverChartIndex,-1)];b&&b.pointer.drop(c)};d.prototype.pinch=function(c){var b=this,a=b.chart,g=b.pinchDown,f=c.touches||[],e=f.length,m=b.lastValidTouch,t=b.hasZoom,d={},n=1===e&&(b.inClass(c.target,"highcharts-tracker")&&a.runTrackerClick||b.runChartClick),
|
|
288
|
+
v={},k=b.selectionMarker;1<e&&(b.initiated=!0);t&&b.initiated&&!n&&!1!==c.cancelable&&c.preventDefault();[].map.call(f,function(a){return b.normalize(a)});"touchstart"===c.type?([].forEach.call(f,function(a,c){g[c]={chartX:a.chartX,chartY:a.chartY}}),m.x=[g[0].chartX,g[1]&&g[1].chartX],m.y=[g[0].chartY,g[1]&&g[1].chartY],a.axes.forEach(function(c){if(c.zoomEnabled){var g=a.bounds[c.horiz?"h":"v"],b=c.minPixelPadding,f=c.toPixels(Math.min(L(c.options.min,c.dataMin),c.dataMin)),e=c.toPixels(Math.max(L(c.options.max,
|
|
289
|
+
c.dataMax),c.dataMax)),l=Math.max(f,e);g.min=Math.min(c.pos,Math.min(f,e)-b);g.max=Math.max(c.pos+c.len,l+b)}}),b.res=!0):b.followTouchMove&&1===e?this.runPointActions(b.normalize(c)):g.length&&(k||(b.selectionMarker=k=r({destroy:B,touch:!0},a.plotBox)),b.pinchTranslate(g,f,d,k,v,m),b.hasPinched=t,b.scaleGroups(d,v),b.res&&(b.res=!1,this.reset(!1,0)))};d.prototype.pinchTranslate=function(c,b,a,g,f,e){this.zoomHor&&this.pinchTranslateDirection(!0,c,b,a,g,f,e);this.zoomVert&&this.pinchTranslateDirection(!1,
|
|
290
|
+
c,b,a,g,f,e)};d.prototype.pinchTranslateDirection=function(c,b,a,g,f,e,m,t){var l=this.chart,w=c?"x":"y",v=c?"X":"Y",d="chart"+v,n=c?"width":"height",k=l["plot"+(c?"Left":"Top")],p=l.inverted,r=l.bounds[c?"h":"v"],x=1===b.length,u=b[0][d],q=!x&&b[1][d];b=function(){"number"===typeof C&&20<Math.abs(u-q)&&(h=t||Math.abs(y-C)/Math.abs(u-q));K=(k-y)/h+u;J=l["plot"+(c?"Width":"Height")]/h};var J,K,h=t||1,y=a[0][d],C=!x&&a[1][d];b();a=K;if(a<r.min){a=r.min;var I=!0}else a+J>r.max&&(a=r.max-J,I=!0);I?(y-=
|
|
291
|
+
.8*(y-m[w][0]),"number"===typeof C&&(C-=.8*(C-m[w][1])),b()):m[w]=[y,C];p||(e[w]=K-k,e[n]=J);e=p?1/h:h;f[n]=J;f[w]=a;g[p?c?"scaleY":"scaleX":"scale"+v]=h;g["translate"+v]=e*k+(y-e*u)};d.prototype.reset=function(c,b){var a=this.chart,g=a.hoverSeries,f=a.hoverPoint,e=a.hoverPoints,l=a.tooltip,t=l&&l.shared?e:f;c&&t&&u(t).forEach(function(a){a.series.isCartesian&&"undefined"===typeof a.plotX&&(c=!1)});if(c)l&&t&&u(t).length&&(l.refresh(t),l.shared&&e?e.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&
|
|
292
|
+
(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):f&&(f.setState(f.state,!0),a.axes.forEach(function(a){a.crosshair&&f.series[a.coll]===a&&a.drawCrosshair(null,f)})));else{if(f)f.onMouseOut();e&&e.forEach(function(a){a.setState()});if(g)g.onMouseOut();l&&l.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());a.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=a.hoverPoints=a.hoverPoint=null}};
|
|
293
|
+
d.prototype.runPointActions=function(c,b){var a=this.chart,g=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,f=g?g.shared:!1,e=b||a.hoverPoint,l=e&&e.series||a.hoverSeries;b=this.getHoverData(e,l,a.series,(!c||"touchmove"!==c.type)&&(!!b||l&&l.directTouch&&this.isDirectTouch),f,c);e=b.hoverPoint;l=b.hoverSeries;var t=b.hoverPoints;b=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split;f=f&&l&&!l.noSharedTooltip;if(e&&(e!==a.hoverPoint||g&&g.isHidden)){(a.hoverPoints||[]).forEach(function(a){-1===
|
|
294
|
+
t.indexOf(a)&&a.setState()});if(a.hoverSeries!==l)l.onMouseOver();this.applyInactiveState(t);(t||[]).forEach(function(a){a.setState("hover")});a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut");if(!e.series)return;a.hoverPoints=t;a.hoverPoint=e;e.firePointEvent("mouseOver");g&&g.refresh(f?t:e,c)}else b&&g&&!g.isHidden&&(e=g.getAnchor([{}],c),a.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&g.updatePosition({plotX:e[0],plotY:e[1]}));this.unDocMouseMove||(this.unDocMouseMove=q(a.container.ownerDocument,
|
|
295
|
+
"mousemove",function(a){var c=z[d.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));a.axes.forEach(function(b){var g=L((b.crosshair||{}).snap,!0),f;g&&((f=a.hoverPoint)&&f.series[b.coll]===b||(f=C(t,function(a){return a.series[b.coll]===b})));f||!g?b.drawCrosshair(c,f):b.hideCrosshair()})};d.prototype.scaleGroups=function(c,b){var a=this.chart;a.series.forEach(function(g){var f=c||g.getPlotBox();g.xAxis&&g.xAxis.zoomEnabled&&g.group&&(g.group.attr(f),
|
|
296
|
+
g.markerGroup&&(g.markerGroup.attr(f),g.markerGroup.clip(b?a.clipRect:null)),g.dataLabelsGroup&&g.dataLabelsGroup.attr(f))});a.clipRect.attr(b||a.clipBox)};d.prototype.setDOMEvents=function(){var c=this,b=this.chart.container,a=b.ownerDocument;b.onmousedown=this.onContainerMouseDown.bind(this);b.onmousemove=this.onContainerMouseMove.bind(this);b.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(q(b,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(q(b,"mouseleave",
|
|
297
|
+
this.onContainerMouseLeave.bind(this)));d.unbindDocumentMouseUp||(d.unbindDocumentMouseUp=q(a,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(q(g,"scroll",function(){delete c.chartPosition})),g=g.parentElement;h.hasTouch&&(this.eventsToUnbind.push(q(b,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(q(b,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),
|
|
298
|
+
d.unbindDocumentTouchEnd||(d.unbindDocumentTouchEnd=q(a,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};d.prototype.setHoverChartIndex=function(){var c=this.chart,b=h.charts[L(d.hoverChartIndex,-1)];if(b&&b!==c)b.pointer.onContainerMouseLeave({relatedTarget:!0});b&&b.mouseIsDown||(d.hoverChartIndex=c.index)};d.prototype.touch=function(c,b){var a=this.chart,g;this.setHoverChartIndex();if(1===c.touches.length)if(c=this.normalize(c),(g=a.isInsidePlot(c.chartX-a.plotLeft,c.chartY-a.plotTop,
|
|
299
|
+
{visiblePlotOnly:!0}))&&!a.openMenu){b&&this.runPointActions(c);if("touchmove"===c.type){b=this.pinchDown;var f=b[0]?4<=Math.sqrt(Math.pow(b[0].chartX-c.chartX,2)+Math.pow(b[0].chartY-c.chartY,2)):!1}L(f,!0)&&this.pinch(c)}else b&&this.reset();else 2===c.touches.length&&this.pinch(c)};d.prototype.touchSelect=function(c){return!(!this.chart.options.chart.zoomBySingleTouch||!c.touches||1!==c.touches.length)};d.prototype.zoomOption=function(c){var b=this.chart,a=b.options.chart;b=b.inverted;var g=a.zoomType||
|
|
300
|
+
"";/touch/.test(c.type)&&(g=L(a.pinchType,g));this.zoomX=c=/x/.test(g);this.zoomY=a=/y/.test(g);this.zoomHor=c&&!b||a&&b;this.zoomVert=a&&!b||c&&b;this.hasZoom=c||a};return d}();"";return d});N(h,"Core/MSPointer.js",[h["Core/Globals.js"],h["Core/Pointer.js"],h["Core/Utilities.js"]],function(d,h,F){function Q(){var b=[];b.item=function(b){return this[b]};r(y,function(f){b.push({pageX:f.pageX,pageY:f.pageY,target:f.target})});return b}function E(b,e,d,n){var f=z[h.hoverChartIndex||NaN];"touch"!==b.pointerType&&
|
|
301
|
+
b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!f||(f=f.pointer,n(b),f[e]({type:d,target:b.currentTarget,preventDefault:q,touches:Q()}))}var A=this&&this.__extends||function(){var b=function(f,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var e in f)f.hasOwnProperty(e)&&(b[e]=f[e])};return b(f,e)};return function(f,e){function m(){this.constructor=f}b(f,e);f.prototype=null===e?Object.create(e):(m.prototype=e.prototype,new m)}}(),z=d.charts,B=
|
|
302
|
+
d.doc,q=d.noop,k=d.win,e=F.addEvent,b=F.css,r=F.objectEach,C=F.removeEvent,y={},n=!!k.PointerEvent;return function(f){function m(){return null!==f&&f.apply(this,arguments)||this}A(m,f);m.isRequired=function(){return!(d.hasTouch||!k.PointerEvent&&!k.MSPointerEvent)};m.prototype.batchMSEvents=function(b){b(this.chart.container,n?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,n?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(B,n?"pointerup":"MSPointerUp",
|
|
303
|
+
this.onDocumentPointerUp)};m.prototype.destroy=function(){this.batchMSEvents(C);f.prototype.destroy.call(this)};m.prototype.init=function(e,m){f.prototype.init.call(this,e,m);this.hasZoom&&b(e.container,{"-ms-touch-action":"none","touch-action":"none"})};m.prototype.onContainerPointerDown=function(b){E(b,"onContainerTouchStart","touchstart",function(b){y[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};m.prototype.onContainerPointerMove=function(b){E(b,"onContainerTouchMove","touchmove",
|
|
304
|
+
function(b){y[b.pointerId]={pageX:b.pageX,pageY:b.pageY};y[b.pointerId].target||(y[b.pointerId].target=b.currentTarget)})};m.prototype.onDocumentPointerUp=function(b){E(b,"onDocumentTouchEnd","touchend",function(b){delete y[b.pointerId]})};m.prototype.setDOMEvents=function(){f.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(e)};return m}(h)});N(h,"Core/Series/Point.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Animation/AnimationUtilities.js"],h["Core/FormatUtilities.js"],
|
|
305
|
+
h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A){var z=h.animObject,B=F.format,q=E.defaultOptions,k=A.addEvent,e=A.defined,b=A.erase,r=A.extend,C=A.fireEvent,y=A.getNestedProperty,n=A.isArray,f=A.isFunction,m=A.isNumber,I=A.isObject,L=A.merge,u=A.objectEach,x=A.pick,c=A.syncTimeout,l=A.removeEvent,a=A.uniqueKey;"";h=function(){function g(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=
|
|
306
|
+
this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}g.prototype.animateBeforeDestroy=function(){var a=this,c={x:a.startXPos,opacity:0},b,g=a.getGraphicalProps();g.singular.forEach(function(g){b="dataLabel"===g;a[g]=a[g].animate(b?{x:a[g].startXPos,y:a[g].startYPos,opacity:0}:c)});g.plural.forEach(function(c){a[c].forEach(function(c){c.element&&c.animate(r({x:a.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};g.prototype.applyOptions=function(a,
|
|
307
|
+
c){var b=this.series,f=b.options.pointValKey||b.pointValKey;a=g.prototype.optionsToObject.call(this,a);r(this,a);this.options=this.options?r(this.options,a):a;a.group&&delete this.group;a.dataLabels&&delete this.dataLabels;f&&(this.y=g.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=x(this.isValid&&!this.isValid(),null===this.x||!m(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c&&b.xAxis&&b.xAxis.hasNames&&(this.x=b.xAxis.nameToX(this));
|
|
308
|
+
"undefined"===typeof this.x&&b&&(this.x="undefined"===typeof c?b.autoIncrement(this):c);return this};g.prototype.destroy=function(){function a(){if(g.graphic||g.dataLabel||g.dataLabels)l(g),g.destroyElements();for(v in g)g[v]=null}var g=this,f=g.series,e=f.chart;f=f.options.dataSorting;var m=e.hoverPoints,d=z(g.series.chart.renderer.globalAnimation),v;g.legendItem&&e.legend.destroyItem(g);m&&(g.setState(),b(m,g),m.length||(e.hoverPoints=null));if(g===e.hoverPoint)g.onMouseOut();f&&f.enabled?(this.animateBeforeDestroy(),
|
|
309
|
+
c(a,d.duration)):a();e.pointCount--};g.prototype.destroyElements=function(a){var c=this;a=c.getGraphicalProps(a);a.singular.forEach(function(a){c[a]=c[a].destroy()});a.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.destroy()});delete c[a]})};g.prototype.firePointEvent=function(a,c,b){var g=this,f=this.series.options;(f.point.events[a]||g.options&&g.options.events&&g.options.events[a])&&g.importEvents();"click"===a&&f.allowPointSelect&&(b=function(a){g.select&&g.select(null,a.ctrlKey||
|
|
310
|
+
a.metaKey||a.shiftKey)});C(g,a,c,b)};g.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:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};g.prototype.getGraphicalProps=function(a){var c=
|
|
311
|
+
this,b=[],g,f={singular:[],plural:[]};a=a||{graphic:1,dataLabel:1};a.graphic&&b.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&b.push("dataLabel","dataLabelUpper","connector");for(g=b.length;g--;){var e=b[g];c[e]&&f.singular.push(e)}["dataLabel","connector"].forEach(function(b){var g=b+"s";a[b]&&c[g]&&f.plural.push(g)});return f};g.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,
|
|
312
|
+
point:this,percentage:this.percentage,total:this.total||this.stackTotal}};g.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?y(a,this.options):this[a]};g.prototype.getZone=function(){var a=this.series,c=a.zones;a=a.zoneAxis||"y";var b=0,g;for(g=c[b];this[a]>=g.value;)g=c[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=g&&g.color&&!this.options.color?g.color:this.nonZonedColor;return g};g.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||
|
|
313
|
+
this.graphic.element.nodeName))!==this.shapeType};g.prototype.init=function(c,b,g){this.series=c;this.applyOptions(b,g);this.id=e(this.id)?this.id:a();this.resolveColor();c.chart.pointCount++;C(this,"afterInit");return this};g.prototype.optionsToObject=function(a){var c={},b=this.series,f=b.options.keys,e=f||b.pointArrayMap||["y"],l=e.length,v=0,d=0;if(m(a)||null===a)c[e[0]]=a;else if(n(a))for(!f&&a.length>l&&(b=typeof a[0],"string"===b?c.name=a[0]:"number"===b&&(c.x=a[0]),v++);d<l;)f&&"undefined"===
|
|
314
|
+
typeof a[v]||(0<e[d].indexOf(".")?g.prototype.setNestedProperty(c,a[v],e[d]):c[e[d]]=a[v]),v++,d++;else"object"===typeof a&&(c=a,a.dataLabels&&(b._hasPointLabels=!0),a.marker&&(b._hasPointMarkers=!0));return c};g.prototype.resolveColor=function(){var a=this.series;var c=a.chart.options.chart.colorCount;var b=a.chart.styledMode;delete this.nonZonedColor;if(a.options.colorByPoint){if(!b){c=a.options.colors||a.chart.options.colors;var g=c[a.colorCounter];c=c.length}b=a.colorCounter;a.colorCounter++;
|
|
315
|
+
a.colorCounter===c&&(a.colorCounter=0)}else b||(g=a.color),b=a.colorIndex;this.colorIndex=x(this.options.colorIndex,b);this.color=x(this.options.color,g)};g.prototype.setNestedProperty=function(a,c,b){b.split(".").reduce(function(a,b,g,f){a[b]=f.length-1===g?c:I(a[b],!0)?a[b]:{};return a[b]},a);return a};g.prototype.tooltipFormatter=function(a){var c=this.series,b=c.tooltipOptions,g=x(b.valueDecimals,""),f=b.valuePrefix||"",e=b.valueSuffix||"";c.chart.styledMode&&(a=c.chart.tooltip.styledModeFormat(a));
|
|
316
|
+
(c.pointArrayMap||["y"]).forEach(function(c){c="{point."+c;if(f||e)a=a.replace(RegExp(c+"}","g"),f+c+"}"+e);a=a.replace(RegExp(c+"}","g"),c+":,."+g+"f}")});return B(a,{point:this,series:this.series},c.chart)};g.prototype.update=function(a,c,b,g){function f(){e.applyOptions(a);var g=t&&e.hasDummyGraphic;g=null===e.y?!g:g;t&&g&&(e.graphic=t.destroy(),delete e.hasDummyGraphic);I(a,!0)&&(t&&t.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(e.graphic=t.destroy()),a&&a.dataLabels&&e.dataLabel&&
|
|
317
|
+
(e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));m=e.index;l.updateParallelArrays(e,m);p.data[m]=I(p.data[m],!0)||I(a,!0)?e.options:x(a,p.data[m]);l.isDirty=l.isDirtyData=!0;!l.fixedBox&&l.hasCartesianSeries&&(d.isDirtyBox=!0);"point"===p.legendType&&(d.isDirtyLegend=!0);c&&d.redraw(b)}var e=this,l=e.series,t=e.graphic,m,d=l.chart,p=l.options;c=x(c,!0);!1===g?f():e.firePointEvent("update",{options:a},f)};g.prototype.remove=function(a,c){this.series.removePoint(this.series.data.indexOf(this),
|
|
318
|
+
a,c)};g.prototype.select=function(a,c){var b=this,g=b.series,f=g.chart;this.selectedStaging=a=x(a,!b.selected);b.firePointEvent(a?"select":"unselect",{accumulate:c},function(){b.selected=b.options.selected=a;g.options.data[g.data.indexOf(b)]=b.options;b.setState(a&&"select");c||f.getSelectedPoints().forEach(function(a){var c=a.series;a.selected&&a!==b&&(a.selected=a.options.selected=!1,c.options.data[c.data.indexOf(a)]=a.options,a.setState(f.hoverPoints&&c.options.inactiveOtherPoints?"inactive":""),
|
|
319
|
+
a.firePointEvent("unselect"))})});delete this.selectedStaging};g.prototype.onMouseOver=function(a){var c=this.series.chart,b=c.pointer;a=a?b.normalize(a):b.getChartCoordinatesFromPoint(this,c.inverted);b.runPointActions(a,this)};g.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null};g.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=
|
|
320
|
+
this,c=L(a.series.options.point,a.options).events;a.events=c;u(c,function(c,b){f(c)&&k(a,b,c)});this.hasImportedEvents=!0}};g.prototype.setState=function(a,c){var b=this.series,g=this.state,f=b.options.states[a||"normal"]||{},e=q.plotOptions[b.type].marker&&b.options.marker,l=e&&!1===e.enabled,n=e&&e.states&&e.states[a||"normal"]||{},k=!1===n.enabled,w=b.stateMarkerGraphic,p=this.marker||{},u=b.chart,h=b.halo,y,J=e&&b.markerAttribs;a=a||"";if(!(a===this.state&&!c||this.selected&&"select"!==a||!1===
|
|
321
|
+
f.enabled||a&&(k||l&&!1===n.enabled)||a&&p.states&&p.states[a]&&!1===p.states[a].enabled)){this.state=a;J&&(y=b.markerAttribs(this,a));if(this.graphic&&!this.hasDummyGraphic){g&&this.graphic.removeClass("highcharts-point-"+g);a&&this.graphic.addClass("highcharts-point-"+a);if(!u.styledMode){var T=b.pointAttribs(this,a);var I=x(u.options.chart.animation,f.animation);b.options.inactiveOtherPoints&&m(T.opacity)&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:T.opacity},I)}),this.connector&&
|
|
322
|
+
this.connector.animate({opacity:T.opacity},I));this.graphic.animate(T,I)}y&&this.graphic.animate(y,x(u.options.chart.animation,n.animation,e.animation));w&&w.hide()}else{if(a&&n){g=p.symbol||b.symbol;w&&w.currentSymbol!==g&&(w=w.destroy());if(y)if(w)w[c?"animate":"attr"]({x:y.x,y:y.y});else g&&(b.stateMarkerGraphic=w=u.renderer.symbol(g,y.x,y.y,y.width,y.height).add(b.markerGroup),w.currentSymbol=g);!u.styledMode&&w&&w.attr(b.pointAttribs(this,a))}w&&(w[a&&this.isInside?"show":"hide"](),w.element.point=
|
|
323
|
+
this)}f=f.halo;y=(w=this.graphic||w)&&w.visibility||"inherit";f&&f.size&&w&&"hidden"!==y&&!this.isCluster?(h||(b.halo=h=u.renderer.path().add(w.parentGroup)),h.show()[c?"animate":"attr"]({d:this.haloPath(f.size)}),h.attr({"class":"highcharts-halo highcharts-color-"+x(this.colorIndex,b.colorIndex)+(this.className?" "+this.className:""),visibility:y,zIndex:-1}),h.point=this,u.styledMode||h.attr(r({fill:this.color||b.color,"fill-opacity":f.opacity},d.filterUserAttributes(f.attributes||{})))):h&&h.point&&
|
|
324
|
+
h.point.haloPath&&h.animate({d:h.point.haloPath(0)},null,h.hide);C(this,"afterSetState",{state:a})}};g.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)};return g}();return D.Point=h});N(h,"Core/Legend.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"]],function(d,h,F,D,E){var A=d.animObject,z=d.setAnimation,B=h.format;d=F.isFirefox;
|
|
325
|
+
var q=F.marginNames;h=F.win;var k=E.addEvent,e=E.createElement,b=E.css,r=E.defined,C=E.discardElement,y=E.find,n=E.fireEvent,f=E.isNumber,m=E.merge,I=E.pick,L=E.relativeLength,u=E.stableSort,x=E.syncTimeout;E=E.wrap;var c=function(){function c(a,c){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=
|
|
326
326
|
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=a;this.init(a,c)}c.prototype.init=function(a,c){this.chart=a;this.setOptions(c);c.enabled&&(this.render(),k(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=k(this.chart,"render",function(){this.legend.proximatePositions();
|
|
327
|
-
this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};c.prototype.setOptions=function(a){var c=
|
|
328
|
-
c.prototype.update=function(a,c){var b=this.chart;this.setOptions(
|
|
329
|
-
|
|
330
|
-
b-2*
|
|
331
|
-
this);this.display=null};c.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,c=this.clipHeight||this.legendHeight,
|
|
332
|
-
(this.title=this.chart.renderer.label(b.text,c-3,c-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(b.style),this.title.add(this.group)),b.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),
|
|
333
|
-
c.prototype.renderItem=function(a){var c=this.chart,b=c.renderer,
|
|
334
|
-
(
|
|
335
|
-
Math.max(this.symbolHeight,16)),
|
|
336
|
-
a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||c.height||this.symbolHeight)};c.prototype.layoutItem=function(a){var c=this.options,b=this.padding,
|
|
337
|
-
|
|
338
|
-
c.data:c)))});
|
|
339
|
-
"legendWidth"]+[1,-1,-1,1][
|
|
340
|
-
|
|
341
|
-
2))&&(
|
|
342
|
-
0;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
a,
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
this,
|
|
351
|
-
c&&c.setState("",!
|
|
352
|
-
this.chart.container);k(a.checkbox,"click",function(c){
|
|
353
|
-
function(
|
|
354
|
-
k.registerSeriesType=
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=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(a,c,b)}b.chart=function(a,c,
|
|
358
|
-
function(c,b){var
|
|
359
|
-
|
|
327
|
+
this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};c.prototype.setOptions=function(a){var c=I(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=m(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=c;this.initialItemY=c-5;this.symbolWidth=I(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};
|
|
328
|
+
c.prototype.update=function(a,c){var b=this.chart;this.setOptions(m(!0,this.options,a));this.destroy();b.isDirtyLegend=b.isDirtyBox=!0;I(c,!0)&&b.redraw();n(this,"afterUpdate")};c.prototype.colorizeItem=function(a,c){a.legendGroup[c?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var b=this.options,g=a.legendItem,f=a.legendLine,e=a.legendSymbol,l=this.itemHiddenStyle.color;b=c?b.itemStyle.color:l;var m=c?a.color||l:l,d=a.options&&a.options.marker,k={fill:m};g&&
|
|
329
|
+
g.css({fill:b,color:b});f&&f.attr({stroke:m});e&&(d&&e.isMarker&&(k=a.pointAttribs(),c||(k.stroke=k.fill=l)),e.attr(k))}n(this,"afterColorizeItem",{item:a,visible:c})};c.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};c.prototype.positionItem=function(a){var c=this,b=this.options,f=b.symbolPadding,e=!b.rtl,l=a._legendItemPos;b=l[0];l=l[1];var m=a.checkbox,d=a.legendGroup;d&&d.element&&(f={translateX:e?b:this.legendWidth-
|
|
330
|
+
b-2*f-4,translateY:l},e=function(){n(c,"afterPositionItem",{item:a})},r(d.translateY)?d.animate(f,void 0,e):(d.attr(f),e()));m&&(m.x=b,m.y=l)};c.prototype.destroyItem=function(a){var c=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&(a[c]=a[c].destroy())});c&&C(a.checkbox)};c.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(c){["legendItem","legendGroup"].forEach(a,c)});"clipRect up down pager nav box title group".split(" ").forEach(a,
|
|
331
|
+
this);this.display=null};c.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,c=this.clipHeight||this.legendHeight,f=this.titleHeight;if(a){var e=a.translateY;this.allItems.forEach(function(g){var l=g.checkbox;if(l){var m=e+f+l.y+(this.scrollOffset||0)+3;b(l,{left:a.translateX+g.checkboxOffset+l.x-20+"px",top:m+"px",display:this.proximate||m>e-6&&m<e+c-6?"":"none"})}},this)}};c.prototype.renderTitle=function(){var a=this.options,c=this.padding,b=a.title,f=0;b.text&&(this.title||
|
|
332
|
+
(this.title=this.chart.renderer.label(b.text,c-3,c-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(b.style),this.title.add(this.group)),b.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),f=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:f}));this.titleHeight=f};c.prototype.setText=function(a){var c=this.options;a.legendItem.attr({text:c.labelFormat?B(c.labelFormat,a,this.chart):c.labelFormatter.call(a)})};
|
|
333
|
+
c.prototype.renderItem=function(a){var c=this.chart,b=c.renderer,f=this.options,e=this.symbolWidth,l=f.symbolPadding||0,d=this.itemStyle,n=this.itemHiddenStyle,v="horizontal"===f.layout?I(f.itemDistance,20):0,k=!f.rtl,r=a.legendItem,x=!a.series,p=!x&&a.series.drawLegendSymbol?a.series:a,u=p.options,h=this.createCheckboxForItem&&u&&u.showCheckbox;u=e+l+v+(h?20:0);var q=f.useHTML,y=a.options.className;r||(a.legendGroup=b.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+a.colorIndex+
|
|
334
|
+
(y?" "+y:"")+(x?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=r=b.text("",k?e+l:-l,this.baseline||0,q),c.styledMode||r.css(m(a.visible?d:n)),r.attr({align:k?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=b.fontMetrics(c.styledMode?12:d.fontSize,r),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,r.attr("y",this.baseline),this.symbolHeight=f.symbolHeight||this.fontMetrics.f,f.squareSymbol&&(this.symbolWidth=I(f.symbolWidth,
|
|
335
|
+
Math.max(this.symbolHeight,16)),u=this.symbolWidth+l+v+(h?20:0),k&&r.attr("x",this.symbolWidth+l))),p.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,r,q));h&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!c.styledMode&&d.width||r.css({width:(f.itemWidth||this.widthOption||c.spacingBox.width)-u+"px"});this.setText(a);c=r.getBBox();a.itemWidth=a.checkboxOffset=f.itemWidth||a.legendItemWidth||c.width+u;this.maxItemWidth=Math.max(this.maxItemWidth,
|
|
336
|
+
a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||c.height||this.symbolHeight)};c.prototype.layoutItem=function(a){var c=this.options,b=this.padding,f="horizontal"===c.layout,e=a.itemHeight,l=this.itemMarginBottom,m=this.itemMarginTop,d=f?I(c.itemDistance,20):0,v=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>v?this.maxItemWidth:a.itemWidth;f&&this.itemX-b+c>v&&(this.itemX=b,this.lastLineHeight&&(this.itemY+=m+this.lastLineHeight+
|
|
337
|
+
l),this.lastLineHeight=0);this.lastItemY=m+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];f?this.itemX+=c:(this.itemY+=m+e+l,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((f?this.itemX-b-(a.checkbox?0:d):c)+b,this.offsetWidth)};c.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(c){var b=c&&c.options;c&&I(b.showInLegend,r(b.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===b.legendType?
|
|
338
|
+
c.data:c)))});n(this,"afterGetAllItems",{allItems:a});return a};c.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};c.prototype.adjustMargins=function(a,c){var b=this.chart,g=this.options,f=this.getAlignment();f&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(e,l){e.test(f)&&!r(a[l])&&(b[q[l]]=Math.max(b[q[l]],b.legend[(l+1)%2?"legendHeight":
|
|
339
|
+
"legendWidth"]+[1,-1,-1,1][l]*g[l%2?"x":"y"]+I(g.margin,12)+c[l]+(b.titleOffset[l]||0)))})};c.prototype.proximatePositions=function(){var a=this.chart,c=[],b="left"===this.options.align;this.allItems.forEach(function(g){var e;var l=b;if(g.yAxis){g.xAxis.options.reversed&&(l=!l);g.points&&(e=y(l?g.points:g.points.slice(0).reverse(),function(a){return f(a.plotY)}));l=this.itemMarginTop+g.legendItem.getBBox().height+this.itemMarginBottom;var m=g.yAxis.top-a.plotTop;g.visible?(e=e?e.plotY:g.yAxis.height,
|
|
340
|
+
e+=m-.3*l):e=m+g.yAxis.height;c.push({target:e,size:l,item:g})}},this);F.distribute(c,a.plotHeight);c.forEach(function(c){c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos})};c.prototype.render=function(){var a=this.chart,c=a.renderer,b=this.group,f=this.box,e=this.options,l=this.padding;this.itemX=l;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=L(e.width,a.spacingBox.width-l);var m=a.spacingBox.width-2*l-e.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,
|
|
341
|
+
2))&&(m/=2);this.maxLegendWidth=this.widthOption||m;b||(this.group=b=c.g("legend").addClass(e.className||"").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(b),this.scrollGroup=c.g().add(this.contentGroup));this.renderTitle();var d=this.getAllItems();u(d,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});e.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=
|
|
342
|
+
0;d.forEach(this.renderItem,this);d.forEach(this.layoutItem,this);d=(this.widthOption||this.offsetWidth)+l;var v=this.lastItemY+this.lastLineHeight+this.titleHeight;v=this.handleOverflow(v);v+=l;f||(this.box=f=c.rect().addClass("highcharts-legend-box").attr({r:e.borderRadius}).add(b),f.isNew=!0);a.styledMode||f.attr({stroke:e.borderColor,"stroke-width":e.borderWidth||0,fill:e.backgroundColor||"none"}).shadow(e.shadow);0<d&&0<v&&(f[f.isNew?"attr":"animate"](f.crisp.call({},{x:0,y:0,width:d,height:v},
|
|
343
|
+
f.strokeWidth())),f.isNew=!1);f[m?"show":"hide"]();a.styledMode&&"none"===b.getStyle("display")&&(d=v=0);this.legendWidth=d;this.legendHeight=v;m&&this.align();this.proximate||this.positionItems();n(this,"afterRender")};c.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var c=this.chart,b=this.options,f=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?f+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<c.titleOffset[2]&&(f-=c.titleOffset[2]);f!==a.y&&(a=
|
|
344
|
+
m(a,{y:f}));this.group.align(m(b,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":b.verticalAlign}),!0,a)};c.prototype.handleOverflow=function(a){var c=this,b=this.chart,f=b.renderer,e=this.options,l=e.y,m=this.padding;l=b.spacingBox.height+("top"===e.verticalAlign?-l:l)-m;var d=e.maxHeight,v,n=this.clipRect,k=e.navigation,r=I(k.animation,!0),p=k.arrowSize||12,u=this.nav,x=this.pages,h,q=this.allItems,y=function(a){"number"===typeof a?n.attr({height:a}):n&&(c.clipRect=
|
|
345
|
+
n.destroy(),c.contentGroup.clip());c.contentGroup.div&&(c.contentGroup.div.style.clip=a?"rect("+m+"px,9999px,"+(m+a)+"px,0)":"auto")},C=function(a){c[a]=f.circle(0,0,1.3*p).translate(p/2,p/2).add(u);b.styledMode||c[a].attr("fill","rgba(0,0,0,0.0001)");return c[a]};"horizontal"!==e.layout||"middle"===e.verticalAlign||e.floating||(l/=2);d&&(l=Math.min(l,d));x.length=0;a&&0<l&&a>l&&!1!==k.enabled?(this.clipHeight=v=Math.max(l-20-this.titleHeight-m,0),this.currentPage=I(this.currentPage,1),this.fullHeight=
|
|
346
|
+
a,q.forEach(function(a,c){var b=a._legendItemPos[1],g=Math.round(a.legendItem.getBBox().height),f=x.length;if(!f||b-x[f-1]>v&&(h||b)!==x[f-1])x.push(h||b),f++;a.pageIx=f-1;h&&(q[c-1].pageIx=f-1);c===q.length-1&&b+g-x[f-1]>v&&b!==h&&(x.push(b),a.pageIx=f);b!==h&&(h=b)}),n||(n=c.clipRect=f.clipRect(0,m,9999,0),c.contentGroup.clip(n)),y(v),u||(this.nav=u=f.g().attr({zIndex:1}).add(this.group),this.up=f.symbol("triangle",0,0,p,p).add(u),C("upTracker").on("click",function(){c.scroll(-1,r)}),this.pager=
|
|
347
|
+
f.text("",15,10).addClass("highcharts-legend-navigation"),b.styledMode||this.pager.css(k.style),this.pager.add(u),this.down=f.symbol("triangle-down",0,0,p,p).add(u),C("downTracker").on("click",function(){c.scroll(1,r)})),c.scroll(0),a=l):u&&(y(),this.nav=u.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};c.prototype.scroll=function(a,c){var b=this,g=this.chart,f=this.pages,e=f.length,l=this.currentPage+a;a=this.clipHeight;var m=this.options.navigation,d=this.pager,k=this.padding;
|
|
348
|
+
l>e&&(l=e);0<l&&("undefined"!==typeof c&&z(c,g),this.nav.attr({translateX:k,translateY:a+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===l?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),d.attr({text:l+"/"+e}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":l===e?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),g.styledMode||(this.up.attr({fill:1===
|
|
349
|
+
l?m.inactiveColor:m.activeColor}),this.upTracker.css({cursor:1===l?"default":"pointer"}),this.down.attr({fill:l===e?m.inactiveColor:m.activeColor}),this.downTracker.css({cursor:l===e?"default":"pointer"})),this.scrollOffset=-f[l-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=l,this.positionCheckboxes(),c=A(I(c,g.renderer.globalAnimation,!0)),x(function(){n(b,"afterScroll",{currentPage:l})},c.duration))};c.prototype.setItemEvents=function(a,c,b){var g=
|
|
350
|
+
this,f=g.chart.renderer.boxWrapper,e=a instanceof D,l="highcharts-legend-"+(e?"point":"series")+"-active",d=g.chart.styledMode;(b?[c,a.legendSymbol]:[a.legendGroup]).forEach(function(b){if(b)b.on("mouseover",function(){a.visible&&g.allItems.forEach(function(c){a!==c&&c.setState("inactive",!e)});a.setState("hover");a.visible&&f.addClass(l);d||c.css(g.options.itemHoverStyle)}).on("mouseout",function(){g.chart.styledMode||c.css(m(a.visible?g.itemStyle:g.itemHiddenStyle));g.allItems.forEach(function(c){a!==
|
|
351
|
+
c&&c.setState("",!e)});f.removeClass(l);a.setState()}).on("click",function(c){var b=function(){a.setVisible&&a.setVisible();g.allItems.forEach(function(c){a!==c&&c.setState(a.visible?"inactive":"",!e)})};f.removeClass(l);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,b):n(a,"legendItemClick",c,b)})})};c.prototype.createCheckboxForItem=function(a){a.checkbox=e("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,
|
|
352
|
+
this.chart.container);k(a.checkbox,"click",function(c){n(a.series||a,"checkboxClick",{checked:c.target.checked,item:a},function(){a.select()})})};return c}();(/Trident\/7\.0/.test(h.navigator&&h.navigator.userAgent)||d)&&E(c.prototype,"positionItem",function(c,a){var b=this,f=function(){a._legendItemPos&&c.call(b,a)};f();b.bubbleLegend||setTimeout(f)});F.Legend=c;return F.Legend});N(h,"Core/Series/SeriesRegistry.js",[h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"]],
|
|
353
|
+
function(d,h,F,D){var E=h.defaultOptions,A=D.error,z=D.extendClass,B=D.merge,q;(function(k){function e(b,e){var d=E.plotOptions||{},r=e.defaultOptions;e.prototype.pointClass||(e.prototype.pointClass=F);e.prototype.type=b;r&&(d[b]=r);k.seriesTypes[b]=e}k.seriesTypes=d.seriesTypes;k.getSeries=function(b,e){void 0===e&&(e={});var d=b.options.chart;d=e.type||d.type||d.defaultSeriesType||"";var r=k.seriesTypes[d];k||A(17,!0,b,{missingModuleFor:d});d=new r;"function"===typeof d.init&&d.init(b,e);return d};
|
|
354
|
+
k.registerSeriesType=e;k.seriesType=function(b,d,h,q,n){var f=E.plotOptions||{};d=d||"";f[b]=B(f[d],h);e(b,z(k.seriesTypes[d]||function(){},q));k.seriesTypes[b].prototype.type=b;n&&(k.seriesTypes[b].prototype.pointClass=z(F,n));return k.seriesTypes[b]}})(q||(q={}));d.seriesType=q.seriesType;return q});N(h,"Core/Chart/Chart.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/FormatUtilities.js"],h["Core/Foundation.js"],h["Core/Globals.js"],h["Core/Legend.js"],h["Core/MSPointer.js"],
|
|
355
|
+
h["Core/DefaultOptions.js"],h["Core/Color/Palette.js"],h["Core/Pointer.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Time.js"],h["Core/Utilities.js"],h["Core/Renderer/HTML/AST.js"]],function(d,h,F,D,E,A,z,B,q,k,e,b,r,C,y){var n=d.animate,f=d.animObject,m=d.setAnimation,I=F.numberFormat,L=D.registerEventOptions,u=E.charts,x=E.doc,c=E.marginNames,l=E.win,a=B.defaultOptions,g=B.defaultTime,w=b.seriesTypes,J=C.addEvent,K=C.attr,t=C.cleanRecursively,G=C.createElement,
|
|
356
|
+
O=C.css,v=C.defined,H=C.discardElement,P=C.erase,S=C.error,p=C.extend,M=C.find,R=C.fireEvent,Q=C.getStyle,ea=C.isArray,T=C.isNumber,W=C.isObject,ba=C.isString,aa=C.merge,V=C.objectEach,U=C.pick,X=C.pInt,ca=C.relativeLength,da=C.removeEvent,Z=C.splat,N=C.syncTimeout,fa=C.uniqueKey;d=function(){function b(a,c,b){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=
|
|
357
|
+
this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=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(a,c,b)}b.chart=function(a,c,g){return new b(a,c,g)};b.prototype.getArgs=function(a,c,b){ba(a)||a.nodeName?(this.renderTo=a,this.init(c,b)):this.init(a,c)};b.prototype.init=
|
|
358
|
+
function(c,b){var g=c.plotOptions||{};R(this,"init",{args:arguments},function(){var f=aa(a,c),e=f.chart;V(f.plotOptions,function(a,c){W(a)&&(a.tooltip=g[c]&&aa(g[c].tooltip)||void 0)});f.tooltip.userOptions=c.chart&&c.chart.forExport&&c.tooltip.userOptions||c.tooltip;this.userOptions=c;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=b;this.isResizing=0;this.options=f;this.axes=[];this.series=[];this.time=c.time&&Object.keys(c.time).length?new r(c.time):
|
|
359
|
+
E.time;this.numberFormatter=e.numberFormatter||I;this.styledMode=e.styledMode;this.hasCartesianSeries=e.showAxes;this.index=u.length;u.push(this);E.chartCount++;L(this,e);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;R(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(a){var c=this.options.chart;c=a.type||c.type||c.defaultSeriesType;var b=w[c];b||S(17,!0,this,{missingModuleFor:c});c=new b;"function"===typeof c.init&&c.init(this,a);return c};
|
|
360
360
|
b.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};b.prototype.orderSeries=function(a){var c=this.series;a=a||0;for(var b=c.length;a<b;++a)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};b.prototype.isInsidePlot=
|
|
361
|
-
function(a,c,b){void 0===b&&(b={});var
|
|
362
|
-
(a.isInsidePlot=!1)}!b.ignoreY&&a.isInsidePlot&&(
|
|
363
|
-
|
|
364
|
-
a.isDirtyData&&
|
|
365
|
-
a.redraw();a.isDirtyData=!1});
|
|
366
|
-
c;a.isX=!0});c.forEach(function(a,c){a.index=c});b.concat(c).forEach(function(c){new
|
|
367
|
-
c);this.applyDescription("caption",void 0);this.layOutTitles(b)};b.prototype.applyDescription=function(a,c){var b=this,
|
|
368
|
-
subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},this.styledMode||
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
(
|
|
372
|
-
c.parentNode;if(c===
|
|
373
|
-
this.getChartSize();
|
|
374
|
-
this.styledMode);
|
|
375
|
-
this.legend.adjustMargins(b,c);
|
|
376
|
-
|
|
377
|
-
"destroy",this.unbindReflow))};b.prototype.setSize=function(a,c,b){var
|
|
378
|
-
|
|
379
|
-
this.plotHeight=
|
|
380
|
-
Math.max(c,
|
|
381
|
-
0]};b.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,b=this.chartWidth,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
a.render()})},
|
|
387
|
-
this.getMargins();this.drawChartBox();this.hasCartesianSeries?
|
|
388
|
-
(
|
|
389
|
-
this.scroller.destroy&&this.scroller.destroy();for(
|
|
390
|
-
a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();(
|
|
391
|
-
this);
|
|
392
|
-
function(a,c,b){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:b})};b.prototype.createAxis=function(a,c){var b="colorAxis"===a,
|
|
393
|
-
function(){
|
|
394
|
-
display:""}),
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
(
|
|
398
|
-
a.options.isInternal?delete a.touched:
|
|
399
|
-
a);this.layOutTitles(c)};b.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};b.prototype.showResetZoom=function(){function c(){b.zoomOut()}var b=this,
|
|
400
|
-
|
|
401
|
-
a.max),p.displayBtn&&(
|
|
402
|
-
var c=b.xAxis;"xy"===p?c=c.concat(b.yAxis):"y"===p&&(c=b.yAxis);var
|
|
403
|
-
c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);
|
|
404
|
-
c.panningState=
|
|
405
|
-
collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),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(" ")});
|
|
406
|
-
"";return
|
|
407
|
-
k=
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
this.data=this.chart=this._i=void 0}
|
|
411
|
-
"Data"]=[])});b.isCartesian&&(a.hasCartesianSeries=!0);var g
|
|
412
|
-
b&&a.unshift(this);b+=1}else a.push(this);return p(b,a.length-1)};
|
|
413
|
-
function(a,c){var b=a.series,
|
|
414
|
-
this.chart.time;c=p(c,a.pointStart,0);this.pointInterval=b=p(this.pointInterval,a.pointInterval,1);
|
|
415
|
-
function(c){var b=this.chart,
|
|
416
|
-
p(c.stickyTracking,k[this.type]&&k[this.type].stickyTracking,k.series&&k.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:
|
|
417
|
-
|
|
418
|
-
function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=A.neutralColor20:this.getCyclic("color",this.options.color||
|
|
419
|
-
if(b)var
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
a[b],
|
|
424
|
-
|
|
425
|
-
!
|
|
426
|
-
|
|
427
|
-
this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange};
|
|
428
|
-
|
|
429
|
-
c[
|
|
430
|
-
this.processedYData||[];
|
|
431
|
-
this.dataMax=a.dataMax;return a};
|
|
432
|
-
for(
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
c){var b=this.options,
|
|
436
|
-
var c=[a&&a.duration,a&&a.easing,a&&a.defer,this.getClipBox(a).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||a)this.sharedClipKey=c;return c};
|
|
437
|
-
0)+99:-99,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
(
|
|
441
|
-
|
|
442
|
-
c=
|
|
443
|
-
c.chart.legend.destroyItem(c);for(
|
|
444
|
-
|
|
445
|
-
width:
|
|
446
|
-
function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(
|
|
447
|
-
this.opacity);p&&(this[c]=
|
|
448
|
-
a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};
|
|
449
|
-
a.plotGroup("markerGroup","markers",
|
|
450
|
-
0));a.isDirty=!1;a.hasRendered=!0;
|
|
451
|
-
a.chartY+b.pos:a.chartX-b.pos,plotY:
|
|
452
|
-
!1},b.options.kdNow||a&&"touchstart"===a.type?0:1)};
|
|
453
|
-
|
|
454
|
-
typeof a.plotX&&0<=a.plotY&&a.plotY<=this.yAxis.len&&0<=a.plotX&&a.plotX<=this.xAxis.len};
|
|
455
|
-
"highcharts-tracker-line").add(a.group),
|
|
456
|
-
c,b,f
|
|
457
|
-
(
|
|
458
|
-
null,
|
|
459
|
-
|
|
460
|
-
!1!==a.visible&&u.push("area","graph"),
|
|
461
|
-
if(
|
|
462
|
-
1),k&&!1===k.enabled&&(
|
|
463
|
-
this.options[a],b=this.chart.options.plotOptions,
|
|
464
|
-
this&&a.events.mouseOut&&
|
|
465
|
-
b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(
|
|
466
|
-
c.setState(a)})};
|
|
467
|
-
a.visible&&(a.isDirty=!0)});b.linkedSeries.forEach(function(c){c.setVisible(a,!1)});
|
|
468
|
-
!0;return this.chart.isInsidePlot(a,c,b)};
|
|
361
|
+
function(a,c,b){void 0===b&&(b={});var g=this.inverted,f=this.plotBox,e=this.plotLeft,p=this.plotTop,l=this.scrollablePlotBox,m=0;var d=0;b.visiblePlotOnly&&this.scrollingContainer&&(d=this.scrollingContainer,m=d.scrollLeft,d=d.scrollTop);var v=b.series;f=b.visiblePlotOnly&&l||f;l=b.inverted?c:a;c=b.inverted?a:c;a={x:l,y:c,isInsidePlot:!0};if(!b.ignoreX){var n=v&&(g?v.yAxis:v.xAxis)||{pos:e,len:Infinity};l=b.paneCoordinates?n.pos+l:e+l;l>=Math.max(m+e,n.pos)&&l<=Math.min(m+e+f.width,n.pos+n.len)||
|
|
362
|
+
(a.isInsidePlot=!1)}!b.ignoreY&&a.isInsidePlot&&(g=v&&(g?v.xAxis:v.yAxis)||{pos:p,len:Infinity},b=b.paneCoordinates?g.pos+c:p+c,b>=Math.max(d+p,g.pos)&&b<=Math.min(d+p+f.height,g.pos+g.len)||(a.isInsidePlot=!1));R(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){R(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],b=this.series,g=this.pointer,f=this.legend,e=this.userOptions.legend,l=this.renderer,d=l.isHidden(),v=[],n=this.isDirtyBox,
|
|
363
|
+
t=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);m(this.hasRendered?a:!1,this);d&&this.temporaryDisplay();this.layOutTitles();for(a=b.length;a--;){var k=b[a];if(k.options.stacking||k.options.centerInCategory){var r=!0;if(k.isDirty){var u=!0;break}}}if(u)for(a=b.length;a--;)k=b[a],k.options.stacking&&(k.isDirty=!0);b.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),t=!0):e&&(e.labelFormatter||e.labelFormat)&&(t=!0));
|
|
364
|
+
a.isDirtyData&&R(a,"updatedData")});t&&f&&f.options.enabled&&(f.render(),this.isDirtyLegend=!1);r&&this.getStacks();c.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(n=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,v.push(function(){R(a,"afterSetExtremes",p(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(n||r)&&a.redraw()});n&&this.drawChartBox();R(this,"predraw");b.forEach(function(a){(n||a.isDirty)&&a.visible&&
|
|
365
|
+
a.redraw();a.isDirtyData=!1});g&&g.reset(!0);l.draw();R(this,"redraw");R(this,"render");d&&this.temporaryDisplay(!0);v.forEach(function(a){a.call()})};b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var b=this.series,g=M(this.axes,c)||M(this.series,c),f=0;!g&&f<b.length;f++)g=M(b[f].points||[],c);return g};b.prototype.getAxes=function(){var a=this,c=this.options,b=c.xAxis=Z(c.xAxis||{});c=c.yAxis=Z(c.yAxis||{});R(this,"getAxes");b.forEach(function(a,c){a.index=
|
|
366
|
+
c;a.isX=!0});c.forEach(function(a,c){a.index=c});b.concat(c).forEach(function(c){new h(a,c)});R(this,"afterGetAxes")};b.prototype.getSelectedPoints=function(){var a=[];this.series.forEach(function(c){a=a.concat(c.getPointsCollection().filter(function(a){return U(a.selectedStaging,a.selected)}))});return a};b.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};b.prototype.setTitle=function(a,c,b){this.applyDescription("title",a);this.applyDescription("subtitle",
|
|
367
|
+
c);this.applyDescription("caption",void 0);this.layOutTitles(b)};b.prototype.applyDescription=function(a,c){var b=this,g="title"===a?{color:q.neutralColor80,fontSize:this.options.isStock?"16px":"18px"}:{color:q.neutralColor60};g=this.options[a]=aa(!this.styledMode&&{style:g},this.options[a],c);var f=this[a];f&&c&&(this[a]=f=f.destroy());g&&!f&&(f=this.renderer.text(g.text,0,0,g.useHTML).attr({align:g.align,"class":"highcharts-"+a,zIndex:g.zIndex||4}).add(),f.update=function(c){b[{title:"setTitle",
|
|
368
|
+
subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},this.styledMode||f.css(g.style),this[a]=f)};b.prototype.layOutTitles=function(a){var c=[0,0,0],b=this.renderer,g=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var f=this[a],e=this.options[a],l=e.verticalAlign||"top";a="title"===a?"top"===l?-3:0:"top"===l?c[0]+2:0;var m;if(f){this.styledMode||(m=e.style&&e.style.fontSize);m=b.fontMetrics(m,f).b;f.css({width:(e.width||g.width+(e.widthAdjust||0))+"px"});var d=Math.round(f.getBBox(e.useHTML).height);
|
|
369
|
+
f.align(p({y:"bottom"===l?m:a+m,height:d},e),!1,"spacingBox");e.floating||("top"===l?c[0]=Math.ceil(c[0]+d):"bottom"===l&&(c[2]=Math.ceil(c[2]+d)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var f=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;R(this,"afterLayOutTitles");!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=
|
|
370
|
+
f,this.hasRendered&&U(a,!0)&&this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;var b=this.renderTo;v(c)||(this.containerWidth=Q(b,"width"));v(a)||(this.containerHeight=Q(b,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ca(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&
|
|
371
|
+
(O(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(x.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){x.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,x.body.appendChild(c));if("none"===Q(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),O(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=
|
|
372
|
+
c.parentNode;if(c===x.body)break}};b.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};b.prototype.getContainer=function(){var a=this.options,c=a.chart,b=fa(),g,f=this.renderTo;f||(this.renderTo=f=c.renderTo);ba(f)&&(this.renderTo=f=x.getElementById(f));f||S(13,!0,this);var l=X(K(f,"data-highcharts-chart"));T(l)&&u[l]&&u[l].hasRendered&&u[l].destroy();K(f,"data-highcharts-chart",this.index);f.innerHTML="";c.skipClone||f.offsetWidth||this.temporaryDisplay();
|
|
373
|
+
this.getChartSize();l=this.chartWidth;var d=this.chartHeight;O(f,{overflow:"hidden"});this.styledMode||(g=p({position:"relative",overflow:"hidden",width:l+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},c.style||{}));this.container=b=G("div",{id:b},g,f);this._cursor=b.style.cursor;this.renderer=new (e.getRendererType(c.renderer))(b,l,d,void 0,c.forExport,a.exporting&&a.exporting.allowHTML,
|
|
374
|
+
this.styledMode);m(void 0,this);this.setClassName(c.className);if(this.styledMode)for(var v in a.defs)this.renderer.definition(a.defs[v]);else this.renderer.setStyle(c.style);this.renderer.chartIndex=this.index;R(this,"afterGetContainer")};b.prototype.getMargins=function(a){var c=this.spacing,b=this.margin,g=this.titleOffset;this.resetMargins();g[0]&&!v(b[0])&&(this.plotTop=Math.max(this.plotTop,g[0]+c[0]));g[2]&&!v(b[2])&&(this.marginBottom=Math.max(this.marginBottom,g[2]+c[2]));this.legend&&this.legend.display&&
|
|
375
|
+
this.legend.adjustMargins(b,c);R(this,"getMargins");a||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var a=this,b=a.axisOffset=[0,0,0,0],g=a.colorAxis,f=a.margin,e=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?e(a.axes):g&&g.length&&e(g);c.forEach(function(c,g){v(f[g])||(a[c]+=b[g])});a.setChartSize()};b.prototype.reflow=function(a){var c=this,b=c.options.chart,g=c.renderTo,f=v(b.width)&&v(b.height),e=b.width||Q(g,"width");b=b.height||Q(g,"height");
|
|
376
|
+
g=a?a.target:l;delete c.pointer.chartPosition;if(!f&&!c.isPrinting&&e&&b&&(g===l||g===x)){if(e!==c.containerWidth||b!==c.containerHeight)C.clearTimeout(c.reflowTimeout),c.reflowTimeout=N(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=e;c.containerHeight=b}};b.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=J(l,"resize",function(a){c.options&&c.reflow(a)}),J(this,
|
|
377
|
+
"destroy",this.unbindReflow))};b.prototype.setSize=function(a,c,b){var g=this,e=g.renderer;g.isResizing+=1;m(b,g);b=e.globalAnimation;g.oldChartHeight=g.chartHeight;g.oldChartWidth=g.chartWidth;"undefined"!==typeof a&&(g.options.chart.width=a);"undefined"!==typeof c&&(g.options.chart.height=c);g.getChartSize();g.styledMode||(b?n:O)(g.container,{width:g.chartWidth+"px",height:g.chartHeight+"px"},b);g.setChartSize(!0);e.setSize(g.chartWidth,g.chartHeight,b);g.axes.forEach(function(a){a.isDirty=!0;a.setScale()});
|
|
378
|
+
g.isDirtyLegend=!0;g.isDirtyBox=!0;g.layOutTitles();g.getMargins();g.redraw(b);g.oldChartHeight=null;R(g,"resize");N(function(){g&&R(g,"endResize",null,function(){--g.isResizing})},f(b).duration)};b.prototype.setChartSize=function(a){var c=this.inverted,b=this.renderer,g=this.chartWidth,f=this.chartHeight,e=this.options.chart,p=this.spacing,l=this.clipOffset,m,d,v,n;this.plotLeft=m=Math.round(this.plotLeft);this.plotTop=d=Math.round(this.plotTop);this.plotWidth=v=Math.max(0,Math.round(g-m-this.marginRight));
|
|
379
|
+
this.plotHeight=n=Math.max(0,Math.round(f-d-this.marginBottom));this.plotSizeX=c?n:v;this.plotSizeY=c?v:n;this.plotBorderWidth=e.plotBorderWidth||0;this.spacingBox=b.spacingBox={x:p[3],y:p[0],width:g-p[3]-p[1],height:f-p[0]-p[2]};this.plotBox=b.plotBox={x:m,y:d,width:v,height:n};c=2*Math.floor(this.plotBorderWidth/2);g=Math.ceil(Math.max(c,l[3])/2);f=Math.ceil(Math.max(c,l[0])/2);this.clipBox={x:g,y:f,width:Math.floor(this.plotSizeX-Math.max(c,l[1])/2-g),height:Math.max(0,Math.floor(this.plotSizeY-
|
|
380
|
+
Math.max(c,l[2])/2-f))};a||(this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()}),b.alignElements());R(this,"afterSetChartSize",{skipAxes:a})};b.prototype.resetMargins=function(){R(this,"resetMargins");var a=this,b=a.options.chart;["margin","spacing"].forEach(function(c){var g=b[c],f=W(g)?g:[g,g,g,g];["Top","Right","Bottom","Left"].forEach(function(g,e){a[c][e]=U(b[c+g],f[e])})});c.forEach(function(c,b){a[c]=U(a.margin[b],a.spacing[b])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,
|
|
381
|
+
0]};b.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,b=this.chartWidth,g=this.chartHeight,f=this.styledMode,e=this.plotBGImage,p=a.backgroundColor,l=a.plotBackgroundColor,m=a.plotBackgroundImage,d=this.plotLeft,v=this.plotTop,n=this.plotWidth,t=this.plotHeight,k=this.plotBox,r=this.clipRect,u=this.clipBox,x=this.chartBackground,w=this.plotBackground,H=this.plotBorder,h,q="animate";x||(this.chartBackground=x=c.rect().addClass("highcharts-background").add(),q="attr");if(f)var y=
|
|
382
|
+
h=x.strokeWidth();else{y=a.borderWidth||0;h=y+(a.shadow?8:0);p={fill:p||"none"};if(y||x["stroke-width"])p.stroke=a.borderColor,p["stroke-width"]=y;x.attr(p).shadow(a.shadow)}x[q]({x:h/2,y:h/2,width:b-h-y%2,height:g-h-y%2,r:a.borderRadius});q="animate";w||(q="attr",this.plotBackground=w=c.rect().addClass("highcharts-plot-background").add());w[q](k);f||(w.attr({fill:l||"none"}).shadow(a.plotShadow),m&&(e?(m!==e.attr("href")&&e.attr("href",m),e.animate(k)):this.plotBGImage=c.image(m,d,v,n,t).add()));
|
|
383
|
+
r?r.animate({width:u.width,height:u.height}):this.clipRect=c.clipRect(u);q="animate";H||(q="attr",this.plotBorder=H=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f||H.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});H[q](H.crisp({x:d,y:v,width:n,height:t},-H.strokeWidth()));this.isDirtyBox=!1;R(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var a=this,c=a.options.chart,b=a.options.series,g,f,e;["inverted","angular","polar"].forEach(function(p){f=
|
|
384
|
+
w[c.type||c.defaultSeriesType];e=c[p]||f&&f.prototype[p];for(g=b&&b.length;!e&&g--;)(f=w[b[g].type])&&f.prototype[p]&&(e=!0);a[p]=e})};b.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var b=c.options.linkedTo;ba(b)&&(b=":previous"===b?a.series[c.index-1]:a.get(b))&&b.linkedParent!==c&&(b.linkedSeries.push(c),c.linkedParent=b,b.enabledDataSorting&&c.setDataSortingOptions(),c.visible=U(c.options.visible,b.options.visible,c.visible))});
|
|
385
|
+
R(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();a.render()})};b.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(b){var g=p(c.style,b.style),f=X(g.left)+a.plotLeft,e=X(g.top)+a.plotTop+12;delete g.left;delete g.top;a.renderer.text(b.html,f,e).attr({zIndex:2}).css(g).add()})};b.prototype.render=function(){var a=this.axes,c=this.colorAxis,b=this.renderer,g=this.options,f=function(a){a.forEach(function(a){a.visible&&
|
|
386
|
+
a.render()})},e=0;this.setTitle();this.legend=new A(this,g.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();g=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return e=21,!0});var p=this.plotHeight=Math.max(this.plotHeight-e,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var l=1.1<g/this.plotWidth,m=1.05<p/this.plotHeight;if(l||m)a.forEach(function(a){(a.horiz&&l||!a.horiz&&m)&&a.setTickInterval(!0)}),
|
|
387
|
+
this.getMargins();this.drawChartBox();this.hasCartesianSeries?f(a):c&&c.length&&f(c);this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(a){var c=this,b=aa(!0,this.options.credits,a);b.enabled&&!this.credits&&(this.credits=this.renderer.text(b.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){b.href&&
|
|
388
|
+
(l.location.href=b.href)}).attr({align:b.position.align,zIndex:8}),c.styledMode||this.credits.css(b.style),this.credits.add().align(b.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};b.prototype.destroy=function(){var a=this,c=a.axes,b=a.series,g=a.container,f=g&&g.parentNode,e;R(a,"destroy");a.renderer.forExport?P(u,a):u[a.index]=void 0;E.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");da(a);for(e=c.length;e--;)c[e]=c[e].destroy();this.scroller&&
|
|
389
|
+
this.scroller.destroy&&this.scroller.destroy();for(e=b.length;e--;)b[e]=b[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var b=a[c];b&&b.destroy&&(a[c]=b.destroy())});g&&(g.innerHTML="",da(g),f&&H(g));V(a,function(c,b){delete a[b]})};b.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();
|
|
390
|
+
a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();(ea(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();R(a,"beforeRender");k&&(z.isRequired()?a.pointer=new z(a,c):a.pointer=new k(a,c));a.render();a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},
|
|
391
|
+
this);R(this,"load");R(this,"render");v(this.index)&&this.setReflow(this.options.chart.reflow);this.hasLoaded=!0};b.prototype.addSeries=function(a,c,b){var g=this,f;a&&(c=U(c,!0),R(g,"addSeries",{options:a},function(){f=g.initSeries(a);g.isDirtyLegend=!0;g.linkSeries();f.enabledDataSorting&&f.setData(a.data,!1);R(g,"afterAddSeries",{series:f});c&&g.redraw(b)}));return f};b.prototype.addAxis=function(a,c,b,g){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:b,animation:g})};b.prototype.addColorAxis=
|
|
392
|
+
function(a,c,b){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:b})};b.prototype.createAxis=function(a,c){var b="colorAxis"===a,g=c.redraw,f=c.animation;a=aa(c.axis,{index:this[a].length,isX:"xAxis"===a});a=b?new E.ColorAxis(this,a):new h(this,a);b&&(this.isDirtyLegend=!0,this.axes.forEach(function(a){a.series=[]}),this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0}));U(g,!0)&&this.redraw(f);return a};b.prototype.showLoading=function(a){var c=this,b=c.options,g=b.loading,
|
|
393
|
+
f=function(){e&&O(e,{left:c.plotLeft+"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})},e=c.loadingDiv,l=c.loadingSpan;e||(c.loadingDiv=e=G("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container));l||(c.loadingSpan=l=G("span",{className:"highcharts-loading-inner"},null,e),J(c,"redraw",f));e.className="highcharts-loading";y.setElementHTML(l,U(a,b.lang.loading,""));c.styledMode||(O(e,p(g.style,{zIndex:10})),O(l,g.labelStyle),c.loadingShown||(O(e,{opacity:0,
|
|
394
|
+
display:""}),n(e,{opacity:g.style.opacity||.5},{duration:g.showDuration||0})));c.loadingShown=!0;f()};b.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||n(c,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){O(c,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(a,c,b,f){var e=this,p={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},
|
|
395
|
+
l=a.isResponsiveOptions,m=[],d,n;R(e,"update",{options:a});l||e.setResponsive(!1,!0);a=t(a,e.options);e.userOptions=aa(e.userOptions,a);var k=a.chart;if(k){aa(!0,e.options.chart,k);"className"in k&&e.setClassName(k.className);"reflow"in k&&e.setReflow(k.reflow);if("inverted"in k||"polar"in k||"type"in k){e.propFromSeries();var u=!0}"alignTicks"in k&&(u=!0);"events"in k&&L(this,k);V(k,function(a,c){-1!==e.propsRequireUpdateSeries.indexOf("chart."+c)&&(d=!0);-1!==e.propsRequireDirtyBox.indexOf(c)&&
|
|
396
|
+
(e.isDirtyBox=!0);-1!==e.propsRequireReflow.indexOf(c)&&(l?e.isDirtyBox=!0:n=!0)});!e.styledMode&&"style"in k&&e.renderer.setStyle(k.style)}!e.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===g&&(this.time=new r(a.time)),aa(!0,e.options.time,a.time));V(a,function(c,b){if(e[b]&&"function"===typeof e[b].update)e[b].update(c,!1);else if("function"===typeof e[p[b]])e[p[b]](c);else"colors"!==b&&-1===e.collectionsWithUpdate.indexOf(b)&&aa(!0,e.options[b],a[b]);"chart"!==b&&-1!==
|
|
397
|
+
e.propsRequireUpdateSeries.indexOf(b)&&(d=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var g=[];e[c].forEach(function(a,c){a.options.isInternal||g.push(U(a.options.index,c))});Z(a[c]).forEach(function(a,f){var p=v(a.id),l;p&&(l=e.get(a.id));!l&&e[c]&&(l=e[c][g?g[f]:f])&&p&&v(l.options.id)&&(l=void 0);l&&l.coll===c&&(l.update(a,!1),b&&(l.touched=!0));!l&&b&&e.collectionsWithInit[c]&&(e.collectionsWithInit[c][0].apply(e,[a].concat(e.collectionsWithInit[c][1]||[]).concat([!1])).touched=
|
|
398
|
+
!0)});b&&e[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:m.push(a)})}});m.forEach(function(a){a.chart&&a.remove(!1)});u&&e.axes.forEach(function(a){a.update({},!1)});d&&e.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);u=k&&k.width;k=k&&(ba(k.height)?ca(k.height,u||e.chartWidth):k.height);n||T(u)&&u!==e.chartWidth||T(k)&&k!==e.chartHeight?e.setSize(u,k,f):U(c,!0)&&e.redraw(f);R(e,"afterUpdate",{options:a,redraw:c,animation:f})};b.prototype.setSubtitle=
|
|
399
|
+
function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};b.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};b.prototype.showResetZoom=function(){function c(){b.zoomOut()}var b=this,g=a.lang,f=b.options.chart.resetZoomButton,e=f.theme,p=e.states,l="chart"===f.relativeTo||"spacingBox"===f.relativeTo?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,function(){b.resetZoomButton=b.renderer.button(g.resetZoom,null,null,c,e,p&&p.hover).attr({align:f.position.align,
|
|
400
|
+
title:g.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(f.position,!1,l)});R(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){R(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(a){var c=this,b=c.pointer,g=c.inverted?b.mouseDownX:b.mouseDownY,f=!1,e;!a||a.resetSelection?(c.axes.forEach(function(a){e=a.zoom()}),b.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var p=a.axis,l=c.inverted?p.left:p.top,m=c.inverted?l+p.width:l+p.height,d=p.isXAxis,
|
|
401
|
+
k=!1;if(!d&&g>=l&&g<=m||d||!v(g))k=!0;b[d?"zoomX":"zoomY"]&&k&&(e=p.zoom(a.min,a.max),p.displayBtn&&(f=!0))});var p=c.resetZoomButton;f&&!p?c.showResetZoom():!f&&W(p)&&(c.resetZoomButton=p.destroy());e&&c.redraw(U(c.options.chart.animation,a&&a.animation,100>c.pointCount))};b.prototype.pan=function(a,c){var b=this,g=b.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var f=b.options.chart,e=b.options.mapNavigation&&b.options.mapNavigation.enabled;f&&f.panning&&(f.panning=c);var p=c.type,l;
|
|
402
|
+
R(this,"pan",{originalEvent:a},function(){g&&g.forEach(function(a){a.setState()});var c=b.xAxis;"xy"===p?c=c.concat(b.yAxis):"y"===p&&(c=b.yAxis);var f={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var g=c.horiz,m=a[g?"chartX":"chartY"];g=g?"mouseDownX":"mouseDownY";var d=b[g],k=c.minPointOffset||0,v=c.reversed&&!b.inverted||!c.reversed&&b.inverted?-1:1,n=c.getExtremes(),t=c.toValue(d-m,!0)+k*v,r=c.toValue(d+c.len-m,!0)-(k*v||c.isXAxis&&c.pointRangePadding||0),u=r<t;
|
|
403
|
+
v=c.hasVerticalPanning();d=u?r:t;t=u?t:r;var x=c.panningState;!v||c.isXAxis||x&&!x.isDirty||c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);x||(x={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});T(c.dataMin)&&T(c.dataMax)&&(x.startMin=Math.min(U(a.options.threshold,Infinity),c.dataMin,x.startMin),x.startMax=Math.max(U(a.options.threshold,-Infinity),c.dataMax,x.startMax))});v=Math.min(U(x&&x.startMin,n.dataMin),k?n.min:c.toValue(c.toPixels(n.min)-c.minPixelPadding));
|
|
404
|
+
r=Math.max(U(x&&x.startMax,n.dataMax),k?n.max:c.toValue(c.toPixels(n.max)+c.minPixelPadding));c.panningState=x;c.isOrdinal||(k=v-d,0<k&&(t+=k,d=v),k=t-r,0<k&&(t=r,d-=k),c.series.length&&d!==n.min&&t!==n.max&&d>=v&&t<=r&&(c.setExtremes(d,t,!1,!1,{trigger:"pan"}),b.resetZoomButton||e||d===v||t===r||!p.match("y")||(b.showResetZoom(),c.displayBtn=!1),l=!0),f[g]=m)}});V(f,function(a,c){b[c]=a});l&&b.redraw(!1);O(b.container,{cursor:"move"})})};return b}();p(d.prototype,{callbacks:[],collectionsWithInit:{xAxis:[d.prototype.addAxis,
|
|
405
|
+
[!0]],yAxis:[d.prototype.addAxis,[!1]],series:[d.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),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(" ")});
|
|
406
|
+
"";return d});N(h,"Mixins/LegendSymbol.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var Q=h.merge,D=h.pick;return d.LegendSymbolMixin={drawRectangle:function(d,h){var z=d.symbolHeight,B=d.options.squareSymbol;h.legendSymbol=this.chart.renderer.rect(B?(d.symbolWidth-z)/2:0,d.baseline-z+1,B?z:d.symbolWidth,z,D(d.options.symbolRadius,z/2)).addClass("highcharts-point").attr({zIndex:3}).add(h.legendGroup)},drawLineMarker:function(d){var h=this.options,z=h.marker,B=d.symbolWidth,q=d.symbolHeight,
|
|
407
|
+
k=q/2,e=this.chart.renderer,b=this.legendGroup;d=d.baseline-Math.round(.3*d.fontMetrics.b);var r={};this.chart.styledMode||(r={"stroke-width":h.lineWidth||0},h.dashStyle&&(r.dashstyle=h.dashStyle));this.legendLine=e.path([["M",0,d],["L",B,d]]).addClass("highcharts-graph").attr(r).add(b);z&&!1!==z.enabled&&B&&(h=Math.min(D(z.radius,k),k),0===this.symbol.indexOf("url")&&(z=Q(z,{width:q,height:q}),h=0),this.legendSymbol=z=e.symbol(this.symbol,B/2-h,d-h,2*h,2*h,z).addClass("highcharts-point").add(b),
|
|
408
|
+
z.isMarker=!0)}}});N(h,"Core/Series/Series.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Foundation.js"],h["Core/Globals.js"],h["Mixins/LegendSymbol.js"],h["Core/DefaultOptions.js"],h["Core/Color/Palette.js"],h["Core/Series/Point.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A,z,B,q,k){var e=d.animObject,b=d.setAnimation,r=h.registerEventOptions,C=F.hasTouch,y=F.svg,n=F.win,f=E.defaultOptions,m=B.seriesTypes,I=k.addEvent,
|
|
409
|
+
L=k.arrayMax,u=k.arrayMin,x=k.clamp,c=k.cleanRecursively,l=k.correctFloat,a=k.defined,g=k.erase,w=k.error,J=k.extend,K=k.find,t=k.fireEvent,G=k.getNestedProperty,O=k.isArray,v=k.isNumber,H=k.isString,P=k.merge,S=k.objectEach,p=k.pick,M=k.removeEvent,R=k.splat,Q=k.syncTimeout;d=function(){function d(){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=
|
|
410
|
+
this.data=this.chart=this._i=void 0}d.prototype.init=function(a,c){t(this,"init",{options:c});var b=this,g=a.series;this.eventsToUnbind=[];b.chart=a;b.options=b.setOptions(c);c=b.options;b.linkedSeries=[];b.bindAxes();J(b,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});r(this,c);var f=c.events;if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;b.getColor();b.getSymbol();b.parallelArrays.forEach(function(a){b[a+"Data"]||(b[a+
|
|
411
|
+
"Data"]=[])});b.isCartesian&&(a.hasCartesianSeries=!0);var e;g.length&&(e=g[g.length-1]);b._i=p(e&&e._i,-1)+1;b.opacity=b.options.opacity;a.orderSeries(this.insert(g));c.dataSorting&&c.dataSorting.enabled?b.setDataSortingOptions():b.points||b.data||b.setData(c.data,!1);t(this,"afterInit")};d.prototype.is=function(a){return m[a]&&this instanceof m[a]};d.prototype.insert=function(a){var c=this.options.index,b;if(v(c)){for(b=a.length;b--;)if(c>=p(a[b].options.index,a[b]._i)){a.splice(b+1,0,this);break}-1===
|
|
412
|
+
b&&a.unshift(this);b+=1}else a.push(this);return p(b,a.length-1)};d.prototype.bindAxes=function(){var a=this,c=a.options,b=a.chart,g;t(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(f){var e=0;b[f].forEach(function(b){g=b.options;if(c[f]===e&&!g.isInternal||"undefined"!==typeof c[f]&&c[f]===g.id||"undefined"===typeof c[f]&&0===g.index)a.insert(b.series),a[f]=b,b.isDirty=!0;g.isInternal||e++});a[f]||a.optionalAxis===f||w(18,!0,b)})});t(this,"afterBindAxes")};d.prototype.updateParallelArrays=
|
|
413
|
+
function(a,c){var b=a.series,g=arguments,f=v(c)?function(g){var f="y"===g&&b.toYData?b.toYData(a):a[g];b[g+"Data"][c]=f}:function(a){Array.prototype[c].apply(b[a+"Data"],Array.prototype.slice.call(g,2))};b.parallelArrays.forEach(f)};d.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};d.prototype.autoIncrement=function(){var a=this.options,c=this.xIncrement,b,g=a.pointIntervalUnit,f=
|
|
414
|
+
this.chart.time;c=p(c,a.pointStart,0);this.pointInterval=b=p(this.pointInterval,a.pointInterval,1);g&&(a=new f.Date(c),"day"===g?f.set("Date",a,f.get("Date",a)+b):"month"===g?f.set("Month",a,f.get("Month",a)+b):"year"===g&&f.set("FullYear",a,f.get("FullYear",a)+b),b=a.getTime()-c);this.xIncrement=c+b;return c};d.prototype.setDataSortingOptions=function(){var c=this.options;J(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});a(c.pointRange)||(c.pointRange=1)};d.prototype.setOptions=
|
|
415
|
+
function(c){var b=this.chart,g=b.options,e=g.plotOptions,l=b.userOptions||{};c=P(c);b=b.styledMode;var d={plotOptions:e,userOptions:c};t(this,"setOptions",d);var m=d.plotOptions[this.type],k=l.plotOptions||{};this.userOptions=d.userOptions;l=P(m,e.series,l.plotOptions&&l.plotOptions[this.type],c);this.tooltipOptions=P(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,g.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,c.tooltip);this.stickyTracking=
|
|
416
|
+
p(c.stickyTracking,k[this.type]&&k[this.type].stickyTracking,k.series&&k.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:l.stickyTracking);null===m.marker&&delete l.marker;this.zoneAxis=l.zoneAxis;g=this.zones=(l.zones||[]).slice();!l.negativeColor&&!l.negativeFillColor||l.zones||(e={value:l[this.zoneAxis+"Threshold"]||l.threshold||0,className:"highcharts-negative"},b||(e.color=l.negativeColor,e.fillColor=l.negativeFillColor),g.push(e));g.length&&a(g[g.length-1].value)&&
|
|
417
|
+
g.push(b?{}:{color:this.color,fillColor:this.fillColor});t(this,"afterSetOptions",{options:l});return l};d.prototype.getName=function(){return p(this.options.name,"Series "+(this.index+1))};d.prototype.getCyclic=function(c,b,g){var f=this.chart,e=this.userOptions,l=c+"Index",d=c+"Counter",m=g?g.length:p(f.options.chart[c+"Count"],f[c+"Count"]);if(!b){var k=p(e[l],e["_"+l]);a(k)||(f.series.length||(f[d]=0),e["_"+l]=k=f[d]%m,f[d]+=1);g&&(b=g[k])}"undefined"!==typeof k&&(this[l]=k);this[c]=b};d.prototype.getColor=
|
|
418
|
+
function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=A.neutralColor20:this.getCyclic("color",this.options.color||f.plotOptions[this.type].color,this.chart.options.colors)};d.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};d.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};d.prototype.findPointIndex=function(a,c){var b=a.id,g=a.x,f=this.points,e,p=this.options.dataSorting;
|
|
419
|
+
if(b)var l=this.chart.get(b);else if(this.linkedParent||this.enabledDataSorting){var d=p&&p.matchByName?"name":"index";l=K(f,function(c){return!c.touched&&c[d]===a[d]});if(!l)return}if(l){var m=l&&l.index;"undefined"!==typeof m&&(e=!0)}"undefined"===typeof m&&v(g)&&(m=this.xData.indexOf(g,c));-1!==m&&"undefined"!==typeof m&&this.cropped&&(m=m>=this.cropStart?m-this.cropStart:m);!e&&f[m]&&f[m].touched&&(m=void 0);return m};d.prototype.updateData=function(c,b){var g=this.options,f=g.dataSorting,e=this.points,
|
|
420
|
+
l=[],p,d,m,k=this.requireSorting,n=c.length===e.length,t=!0;this.xIncrement=null;c.forEach(function(c,b){var d=a(c)&&this.pointClass.prototype.optionsToObject.call({series:this},c)||{};var t=d.x;if(d.id||v(t)){if(t=this.findPointIndex(d,m),-1===t||"undefined"===typeof t?l.push(c):e[t]&&c!==g.data[t]?(e[t].update(c,!1,null,!1),e[t].touched=!0,k&&(m=t+1)):e[t]&&(e[t].touched=!0),!n||b!==t||f&&f.enabled||this.hasDerivedData)p=!0}else l.push(c)},this);if(p)for(c=e.length;c--;)(d=e[c])&&!d.touched&&d.remove&&
|
|
421
|
+
d.remove(!1,b);else!n||f&&f.enabled?t=!1:(c.forEach(function(a,c){a!==e[c].y&&e[c].update&&e[c].update(a,!1,null,!1)}),l.length=0);e.forEach(function(a){a&&(a.touched=!1)});if(!t)return!1;l.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=L(this.xData),this.autoIncrement());return!0};d.prototype.setData=function(a,c,b,g){var f=this,e=f.points,l=e&&e.length||0,d,m=f.options,k=f.chart,t=m.dataSorting,n=null,r=f.xAxis;
|
|
422
|
+
n=m.turboThreshold;var x=this.xData,u=this.yData,h=(d=f.pointArrayMap)&&d.length,q=m.keys,y=0,G=1,T;a=a||[];d=a.length;c=p(c,!0);t&&t.enabled&&(a=this.sortData(a));!1!==g&&d&&l&&!f.cropped&&!f.hasGroupedData&&f.visible&&!f.isSeriesBoosting&&(T=this.updateData(a,b));if(!T){f.xIncrement=null;f.colorCounter=0;this.parallelArrays.forEach(function(a){f[a+"Data"].length=0});if(n&&d>n)if(n=f.getFirstValidPoint(a),v(n))for(b=0;b<d;b++)x[b]=this.autoIncrement(),u[b]=a[b];else if(O(n))if(h)for(b=0;b<d;b++)g=
|
|
423
|
+
a[b],x[b]=g[0],u[b]=g.slice(1,h+1);else for(q&&(y=q.indexOf("x"),G=q.indexOf("y"),y=0<=y?y:0,G=0<=G?G:1),b=0;b<d;b++)g=a[b],x[b]=g[y],u[b]=g[G];else w(12,!1,k);else for(b=0;b<d;b++)"undefined"!==typeof a[b]&&(g={series:f},f.pointClass.prototype.applyOptions.apply(g,[a[b]]),f.updateParallelArrays(g,b));u&&H(u[0])&&w(14,!0,k);f.data=[];f.options.data=f.userOptions.data=a;for(b=l;b--;)e[b]&&e[b].destroy&&e[b].destroy();r&&(r.minRange=r.userMinRange);f.isDirty=k.isDirtyBox=!0;f.isDirtyData=!!e;b=!1}"point"===
|
|
424
|
+
m.legendType&&(this.processData(),this.generatePoints());c&&k.redraw(b)};d.prototype.sortData=function(c){var b=this,g=b.options.dataSorting.sortKey||"y",f=function(c,b){return a(b)&&c.pointClass.prototype.optionsToObject.call({series:c},b)||{}};c.forEach(function(a,g){c[g]=f(b,a);c[g].index=g},this);c.concat().sort(function(a,c){a=G(g,a);c=G(g,c);return c<a?-1:c>a?1:0}).forEach(function(a,c){a.x=c},this);b.linkedSeries&&b.linkedSeries.forEach(function(a){var b=a.options,g=b.data;b.dataSorting&&b.dataSorting.enabled||
|
|
425
|
+
!g||(g.forEach(function(b,e){g[e]=f(a,b);c[e]&&(g[e].x=c[e].x,g[e].index=e)}),a.setData(g,!1))});return c};d.prototype.getProcessedData=function(a){var c=this.xData,b=this.yData,g=c.length;var f=0;var e=this.xAxis,l=this.options;var p=l.cropThreshold;var d=a||this.getExtremesFromAll||l.getExtremesFromAll,m=this.isCartesian;a=e&&e.val2lin;l=!(!e||!e.logarithmic);var k=this.requireSorting;if(e){e=e.getExtremes();var n=e.min;var t=e.max}if(m&&this.sorted&&!d&&(!p||g>p||this.forceCrop))if(c[g-1]<n||c[0]>
|
|
426
|
+
t)c=[],b=[];else if(this.yData&&(c[0]<n||c[g-1]>t)){f=this.cropData(this.xData,this.yData,n,t);c=f.xData;b=f.yData;f=f.start;var v=!0}for(p=c.length||1;--p;)if(g=l?a(c[p])-a(c[p-1]):c[p]-c[p-1],0<g&&("undefined"===typeof r||g<r))var r=g;else 0>g&&k&&(w(15,!1,this.chart),k=!1);return{xData:c,yData:b,cropped:v,cropStart:f,closestPointRange:r}};d.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();
|
|
427
|
+
this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange};d.prototype.cropData=function(a,c,b,g,f){var e=a.length,l=0,d=e,m;f=p(f,this.cropShoulder);for(m=0;m<e;m++)if(a[m]>=b){l=Math.max(0,m-f);break}for(b=m;b<e;b++)if(a[b]>g){d=b+f;break}return{xData:a.slice(l,d),yData:c.slice(l,d),start:l,end:d}};d.prototype.generatePoints=function(){var a=this.options,c=a.data,b=this.data,g,f=this.processedXData,
|
|
428
|
+
e=this.processedYData,l=this.pointClass,p=f.length,d=this.cropStart||0,m=this.hasGroupedData,k=a.keys,n=[],v;a=a.dataGrouping&&a.dataGrouping.groupAll?d:0;b||m||(b=[],b.length=c.length,b=this.data=b);k&&m&&(this.options.keys=!1);for(v=0;v<p;v++){var r=d+v;if(m){var u=(new l).init(this,[f[v]].concat(R(e[v])));u.dataGroup=this.groupMap[a+v];u.dataGroup.options&&(u.options=u.dataGroup.options,J(u,u.dataGroup.options),delete u.dataLabels)}else(u=b[r])||"undefined"===typeof c[r]||(b[r]=u=(new l).init(this,
|
|
429
|
+
c[r],f[v]));u&&(u.index=m?a+v:r,n[v]=u)}this.options.keys=k;if(b&&(p!==(g=b.length)||m))for(v=0;v<g;v++)v!==d||m||(v+=p),b[v]&&(b[v].destroyElements(),b[v].plotX=void 0);this.data=b;this.points=n;t(this,"afterGeneratePoints")};d.prototype.getXExtremes=function(a){return{min:u(a),max:L(a)}};d.prototype.getExtremes=function(a,c){var b=this.xAxis,g=this.yAxis,f=this.processedXData||this.xData,e=[],l=0,p=0;var d=0;var m=this.requireSorting?this.cropShoulder:0,k=g?g.positiveValuesOnly:!1,n;a=a||this.stackedYData||
|
|
430
|
+
this.processedYData||[];g=a.length;b&&(d=b.getExtremes(),p=d.min,d=d.max);for(n=0;n<g;n++){var r=f[n];var x=a[n];var w=(v(x)||O(x))&&(x.length||0<x||!k);r=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(f[n+m]||r)>=p&&(f[n-m]||r)<=d;if(w&&r)if(w=x.length)for(;w--;)v(x[w])&&(e[l++]=x[w]);else e[l++]=x}a={dataMin:u(e),dataMax:L(e)};t(this,"afterGetExtremes",{dataExtremes:a});return a};d.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;
|
|
431
|
+
this.dataMax=a.dataMax;return a};d.prototype.getFirstValidPoint=function(a){for(var c=null,b=a.length,g=0;null===c&&g<b;)c=a[g],g++;return c};d.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var c=this.options,b=c.stacking,g=this.xAxis,f=g.categories,e=this.enabledDataSorting,d=this.yAxis,m=this.points,k=m.length,n=!!this.modifyValue,r,u=this.pointPlacementToXValue(),w=!!u,h=c.threshold,H=c.startFromThreshold?h:0,q,y=this.zoneAxis||"y",G=Number.MAX_VALUE;
|
|
432
|
+
for(r=0;r<k;r++){var C=m[r],P=C.x,I=C.y,S=C.low,J=b&&d.stacking&&d.stacking.stacks[(this.negStacks&&I<(H?0:h)?"-":"")+this.stackKey],K=void 0,M=void 0;if(d.positiveValuesOnly&&!d.validatePositiveValue(I)||g.positiveValuesOnly&&!g.validatePositiveValue(P))C.isNull=!0;C.plotX=q=l(x(g.translate(P,0,0,0,1,u,"flags"===this.type),-1E5,1E5));if(b&&this.visible&&J&&J[P]){var L=this.getStackIndicator(L,P,this.index);C.isNull||(K=J[P],M=K.points[L.key])}O(M)&&(S=M[0],I=M[1],S===H&&L.key===J[P].base&&(S=p(v(h)&&
|
|
433
|
+
h,d.min)),d.positiveValuesOnly&&0>=S&&(S=null),C.total=C.stackTotal=K.total,C.percentage=K.total&&C.y/K.total*100,C.stackY=I,this.irregularWidths||K.setOffset(this.pointXOffset||0,this.barW||0));C.yBottom=a(S)?x(d.translate(S,0,1,0,1),-1E5,1E5):null;n&&(I=this.modifyValue(I,C));C.plotY=void 0;v(I)&&(I=d.translate(I,!1,!0,!1,!0),"undefined"!==typeof I&&(C.plotY=x(I,-1E5,1E5)));C.isInside=this.isPointInside(C);C.clientX=w?l(g.translate(P,0,0,0,1,u)):q;C.negative=C[y]<(c[y+"Threshold"]||h||0);C.category=
|
|
434
|
+
f&&"undefined"!==typeof f[C.x]?f[C.x]:C.x;if(!C.isNull&&!1!==C.visible){"undefined"!==typeof B&&(G=Math.min(G,Math.abs(q-B)));var B=q}C.zone=this.zones.length&&C.getZone();!C.graphic&&this.group&&e&&(C.isNew=!0)}this.closestPointRangePx=G;t(this,"afterTranslate")};d.prototype.getValidPoints=function(a,c,b){var g=this.chart;return(a||this.points||[]).filter(function(a){return c&&!g.isInsidePlot(a.plotX,a.plotY,{inverted:g.inverted})?!1:!1!==a.visible&&(b||!a.isNull)})};d.prototype.getClipBox=function(a,
|
|
435
|
+
c){var b=this.options,g=this.chart,f=g.inverted,e=this.xAxis,l=e&&this.yAxis,p=g.options.chart.scrollablePlotArea||{};a&&!1===b.clip&&l?a=f?{y:-g.chartWidth+l.len+l.pos,height:g.chartWidth,width:g.chartHeight,x:-g.chartHeight+e.len+e.pos}:{y:-l.pos,height:g.chartHeight,width:g.chartWidth,x:-e.pos}:(a=this.clipBox||g.clipBox,c&&(a.width=g.plotSizeX,a.x=(g.scrollablePixelsX||0)*(p.scrollPositionX||0)));return c?{width:a.width,x:a.x}:a};d.prototype.getSharedClipKey=function(a){if(this.sharedClipKey)return this.sharedClipKey;
|
|
436
|
+
var c=[a&&a.duration,a&&a.easing,a&&a.defer,this.getClipBox(a).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||a)this.sharedClipKey=c;return c};d.prototype.setClip=function(a){var c=this.chart,b=this.options,g=c.renderer,f=c.inverted,e=this.clipBox,l=this.getClipBox(a),p=this.getSharedClipKey(a),d=c.sharedClips[p],m=c.sharedClips[p+"m"];a&&(l.width=0,f&&(l.x=c.plotHeight+(!1!==b.clip?0:c.plotTop)));d?c.hasLoaded||d.attr(l):(a&&(c.sharedClips[p+"m"]=m=g.clipRect(f?(c.plotSizeX||
|
|
437
|
+
0)+99:-99,f?-c.plotLeft:-c.plotTop,99,f?c.chartWidth:c.chartHeight)),c.sharedClips[p]=d=g.clipRect(l),d.count={length:0});a&&!d.count[this.index]&&(d.count[this.index]=!0,d.count.length+=1);if(!1!==b.clip||a)this.group.clip(a||e?d:c.clipRect),this.markerGroup.clip(m);a||(d.count[this.index]&&(delete d.count[this.index],--d.count.length),0===d.count.length&&(e||(c.sharedClips[p]=d.destroy()),m&&(c.sharedClips[p+"m"]=m.destroy())))};d.prototype.animate=function(a){var c=this.chart,b=e(this.options.animation),
|
|
438
|
+
g=this.sharedClipKey;if(a)this.setClip(b);else if(g){a=c.sharedClips[g];g=c.sharedClips[g+"m"];var f=this.getClipBox(b,!0);a&&a.animate(f,b);g&&g.animate({width:f.width+99,x:f.x-(c.inverted?0:99)},b)}};d.prototype.afterAnimate=function(){this.setClip();t(this,"afterAnimate");this.finishedAnimating=!0};d.prototype.drawPoints=function(){var a=this.points,c=this.chart,b,g,f=this.options.marker,e=this[this.specialGroup]||this.markerGroup,l=this.xAxis,d=p(f.enabled,!l||l.isRadial?!0:null,this.closestPointRangePx>=
|
|
439
|
+
f.enabledThreshold*f.radius);if(!1!==f.enabled||this._hasPointMarkers)for(b=0;b<a.length;b++){var m=a[b];var k=(g=m.graphic)?"animate":"attr";var n=m.marker||{};var v=!!m.marker;if((d&&"undefined"===typeof n.enabled||n.enabled)&&!m.isNull&&!1!==m.visible){var t=p(n.symbol,this.symbol,"rect");var r=this.markerAttribs(m,m.selected&&"select");this.enabledDataSorting&&(m.startXPos=l.reversed?-(r.width||0):l.width);var u=!1!==m.isInside;g?g[u?"show":"hide"](u).animate(r):u&&(0<(r.width||0)||m.hasImage)&&
|
|
440
|
+
(m.graphic=g=c.renderer.symbol(t,r.x,r.y,r.width,r.height,v?n:f).add(e),this.enabledDataSorting&&c.hasRendered&&(g.attr({x:m.startXPos}),k="animate"));g&&"animate"===k&&g[u?"show":"hide"](u).animate(r);if(g&&!c.styledMode)g[k](this.pointAttribs(m,m.selected&&"select"));g&&g.addClass(m.getClassName(),!0)}else g&&(m.graphic=g.destroy())}};d.prototype.markerAttribs=function(a,c){var b=this.options,g=b.marker,f=a.marker||{},e=f.symbol||g.symbol,l=p(f.radius,g.radius);c&&(g=g.states[c],c=f.states&&f.states[c],
|
|
441
|
+
l=p(c&&c.radius,g&&g.radius,l+(g&&g.radiusPlus||0)));a.hasImage=e&&0===e.indexOf("url");a.hasImage&&(l=0);a={x:b.crisp?Math.floor(a.plotX-l):a.plotX-l,y:a.plotY-l};l&&(a.width=a.height=2*l);return a};d.prototype.pointAttribs=function(a,c){var b=this.options.marker,g=a&&a.options,f=g&&g.marker||{},e=this.color,l=g&&g.color,d=a&&a.color;g=p(f.lineWidth,b.lineWidth);var m=a&&a.zone&&a.zone.color;a=1;e=l||m||d||e;l=f.fillColor||b.fillColor||e;e=f.lineColor||b.lineColor||e;c=c||"normal";b=b.states[c];
|
|
442
|
+
c=f.states&&f.states[c]||{};g=p(c.lineWidth,b.lineWidth,g+p(c.lineWidthPlus,b.lineWidthPlus,0));l=c.fillColor||b.fillColor||l;e=c.lineColor||b.lineColor||e;a=p(c.opacity,b.opacity,a);return{stroke:e,"stroke-width":g,fill:l,opacity:a}};d.prototype.destroy=function(a){var c=this,b=c.chart,f=/AppleWebKit\/533/.test(n.navigator.userAgent),e,l,p=c.data||[],d,m;t(c,"destroy");this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(m=c[a])&&m.series&&(g(m.series,c),m.isDirty=m.forceRedraw=!0)});c.legendItem&&
|
|
443
|
+
c.chart.legend.destroyItem(c);for(l=p.length;l--;)(d=p[l])&&d.destroy&&d.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});k.clearTimeout(c.animationTimeout);S(c,function(a,c){a instanceof q&&!a.survive&&(e=f&&"group"===c?"hide":"destroy",a[e]())});b.hoverSeries===c&&(b.hoverSeries=void 0);g(b.series,c);b.orderSeries();S(c,function(b,g){a&&"hcEvents"===g||delete c[g]})};d.prototype.applyZones=function(){var a=this,c=this.chart,b=c.renderer,g=this.zones,f,e,l=this.clips||[],d,m=this.graph,
|
|
444
|
+
k=this.area,n=Math.max(c.chartWidth,c.chartHeight),v=this[(this.zoneAxis||"y")+"Axis"],t=c.inverted,r,u,w,h=!1,H,q;if(g.length&&(m||k)&&v&&"undefined"!==typeof v.min){var y=v.reversed;var G=v.horiz;m&&!this.showLine&&m.hide();k&&k.hide();var C=v.getExtremes();g.forEach(function(g,O){f=y?G?c.plotWidth:0:G?0:v.toPixels(C.min)||0;f=x(p(e,f),0,n);e=x(Math.round(v.toPixels(p(g.value,C.max),!0)||0),0,n);h&&(f=e=v.toPixels(C.max));r=Math.abs(f-e);u=Math.min(f,e);w=Math.max(f,e);v.isXAxis?(d={x:t?w:u,y:0,
|
|
445
|
+
width:r,height:n},G||(d.x=c.plotHeight-d.x)):(d={x:0,y:t?w:u,width:n,height:r},G&&(d.y=c.plotWidth-d.y));t&&b.isVML&&(d=v.isXAxis?{x:0,y:y?u:w,height:d.width,width:c.chartWidth}:{x:d.y-c.plotLeft-c.spacingBox.x,y:0,width:d.height,height:c.chartHeight});l[O]?l[O].animate(d):l[O]=b.clipRect(d);H=a["zone-area-"+O];q=a["zone-graph-"+O];m&&q&&q.clip(l[O]);k&&H&&H.clip(l[O]);h=g.value>C.max;a.resetZones&&0===e&&(e=void 0)});this.clips=l}else a.visible&&(m&&m.show(!0),k&&k.show(!0))};d.prototype.invertGroups=
|
|
446
|
+
function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(g.renderer.isVML&&b[c].attr({width:b.yAxis.len,height:b.xAxis.len}),b[c].width=b.yAxis.len,b[c].height=b.xAxis.len,b[c].invert(b.isRadialSeries?!1:a))})}var b=this,g=b.chart;b.xAxis&&(b.eventsToUnbind.push(I(g,"resize",c)),c(),b.invertGroups=c)};d.prototype.plotGroup=function(c,b,g,f,e){var l=this[c],p=!l;g={visibility:g,zIndex:f||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(g.opacity=
|
|
447
|
+
this.opacity);p&&(this[c]=l=this.chart.renderer.g().add(e));l.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(a(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(l.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);l.attr(g)[p?"attr":"animate"](this.getPlotBox());return l};d.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis;a.inverted&&(c=b,b=this.xAxis);return{translateX:c?c.left:
|
|
448
|
+
a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};d.prototype.removeEvents=function(a){a||M(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};d.prototype.render=function(){var a=this,c=a.chart,b=a.options,g=e(b.animation),f=!a.finishedAnimating&&c.renderer.isSVG&&g.duration,l=a.visible?"inherit":"hidden",d=b.zIndex,m=a.hasRendered,k=c.seriesGroup,v=c.inverted;t(this,"render");var n=a.plotGroup("group","series",l,d,k);a.markerGroup=
|
|
449
|
+
a.plotGroup("markerGroup","markers",l,d,k);f&&a.animate&&a.animate(!0);n.inverted=p(a.invertible,a.isCartesian)?v:!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(v);!1===b.clip||a.sharedClipKey||m||n.clip(c.clipRect);f&&a.animate&&a.animate();m||(f&&g.defer&&(f+=g.defer),a.animationTimeout=Q(function(){a.afterAnimate()},f||
|
|
450
|
+
0));a.isDirty=!1;a.hasRendered=!0;t(a,"afterRender")};d.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,b=this.group,g=this.xAxis,f=this.yAxis;b&&(a.inverted&&b.attr({width:a.plotWidth,height:a.plotHeight}),b.animate({translateX:p(g&&g.left,a.plotLeft),translateY:p(f&&f.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};d.prototype.searchPoint=function(a,c){var b=this.xAxis,g=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?b.len-
|
|
451
|
+
a.chartY+b.pos:a.chartX-b.pos,plotY:f?g.len-a.chartX+g.pos:a.chartY-g.pos},c,a)};d.prototype.buildKDTree=function(a){function c(a,g,f){var e;if(e=a&&a.length){var l=b.kdAxisArray[g%f];a.sort(function(a,c){return a[l]-c[l]});e=Math.floor(e/2);return{point:a[e],left:c(a.slice(0,e),g+1,f),right:c(a.slice(e+1),g+1,f)}}}this.buildingKdTree=!0;var b=this,g=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;Q(function(){b.kdTree=c(b.getValidPoints(null,!b.directTouch),g,g);b.buildingKdTree=
|
|
452
|
+
!1},b.options.kdNow||a&&"touchstart"===a.type?0:1)};d.prototype.searchKDTree=function(c,b,g){function f(c,b,g,m){var k=b.point,v=e.kdAxisArray[g%m],n=k;var t=a(c[l])&&a(k[l])?Math.pow(c[l]-k[l],2):null;var r=a(c[p])&&a(k[p])?Math.pow(c[p]-k[p],2):null;r=(t||0)+(r||0);k.dist=a(r)?Math.sqrt(r):Number.MAX_VALUE;k.distX=a(t)?Math.sqrt(t):Number.MAX_VALUE;v=c[v]-k[v];r=0>v?"left":"right";t=0>v?"right":"left";b[r]&&(r=f(c,b[r],g+1,m),n=r[d]<n[d]?r:k);b[t]&&Math.sqrt(v*v)<n[d]&&(c=f(c,b[t],g+1,m),n=c[d]<
|
|
453
|
+
n[d]?c:n);return n}var e=this,l=this.kdAxisArray[0],p=this.kdAxisArray[1],d=b?"distX":"dist";b=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(g);if(this.kdTree)return f(c,this.kdTree,b,b)};d.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,b=this.xAxis;a=a.pointPlacement;"between"===a&&(a=b.reversed?-.5:.5);return v(a)?a*(c||b.pointRange):0};d.prototype.isPointInside=function(a){return"undefined"!==typeof a.plotY&&"undefined"!==
|
|
454
|
+
typeof a.plotX&&0<=a.plotY&&a.plotY<=this.yAxis.len&&0<=a.plotX&&a.plotX<=this.xAxis.len};d.prototype.drawTracker=function(){var a=this,c=a.options,b=c.trackByArea,g=[].concat(b?a.areaPath:a.graphPath),f=a.chart,e=f.pointer,l=f.renderer,p=f.options.tooltip.snap,d=a.tracker,m=function(c){if(f.hoverSeries!==a)a.onMouseOver()},k="rgba(192,192,192,"+(y?.0001:.002)+")";d?d.attr({d:g}):a.graph&&(a.tracker=l.path(g).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":
|
|
455
|
+
"highcharts-tracker-line").add(a.group),f.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:k,fill:b?k:"none","stroke-width":a.graph.strokeWidth()+(b?0:2*p)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",m).on("mouseout",function(a){e.onTrackerMouseOut(a)}),c.cursor&&!f.styledMode&&a.css({cursor:c.cursor}),C))a.on("touchstart",m)}));t(this,"afterDrawTracker")};d.prototype.addPoint=function(a,
|
|
456
|
+
c,b,g,f){var e=this.options,l=this.data,d=this.chart,m=this.xAxis;m=m&&m.hasNames&&m.names;var k=e.data,v=this.xData,n;c=p(c,!0);var r={series:this};this.pointClass.prototype.applyOptions.apply(r,[a]);var u=r.x;var x=v.length;if(this.requireSorting&&u<v[x-1])for(n=!0;x&&v[x-1]>u;)x--;this.updateParallelArrays(r,"splice",x,0,0);this.updateParallelArrays(r,x);m&&r.name&&(m[u]=r.name);k.splice(x,0,a);n&&(this.data.splice(x,0,null),this.processData());"point"===e.legendType&&this.generatePoints();b&&
|
|
457
|
+
(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays(r,"shift"),k.shift()));!1!==f&&t(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;c&&d.redraw(g)};d.prototype.removePoint=function(a,c,g){var f=this,e=f.data,l=e[a],d=f.points,m=f.chart,k=function(){d&&d.length===e.length&&d.splice(a,1);e.splice(a,1);f.options.data.splice(a,1);f.updateParallelArrays(l||{series:f},"splice",a,1);l&&l.destroy();f.isDirty=!0;f.isDirtyData=!0;c&&m.redraw()};b(g,m);c=p(c,!0);l?l.firePointEvent("remove",
|
|
458
|
+
null,k):k()};d.prototype.remove=function(a,c,b,g){function f(){e.destroy(g);l.isDirtyLegend=l.isDirtyBox=!0;l.linkSeries();p(a,!0)&&l.redraw(c)}var e=this,l=e.chart;!1!==b?t(e,"remove",null,f):f()};d.prototype.update=function(a,b){a=c(a,this.userOptions);t(this,"update",{options:a});var g=this,f=g.chart,e=g.userOptions,l=g.initialType||g.type,d=f.options.plotOptions,k=a.type||e.type||f.options.chart.type,v=!(this.hasDerivedData||k&&k!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||
|
|
459
|
+
g.hasOptionChanged("dataGrouping")||g.hasOptionChanged("pointStart")||g.hasOptionChanged("pointInterval")||g.hasOptionChanged("pointIntervalUnit")||g.hasOptionChanged("keys")),n=m[l].prototype,r,u=["eventOptions","navigatorSeries","baseSeries"],x=g.finishedAnimating&&{animation:!1},h={};k=k||l;v&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),
|
|
460
|
+
!1!==a.visible&&u.push("area","graph"),g.parallelArrays.forEach(function(a){u.push(a+"Data")}),a.data&&(a.dataSorting&&J(g.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=P(e,x,{index:"undefined"===typeof e.index?g.index:e.index,pointStart:p(d&&d.series&&d.series.pointStart,e.pointStart,g.xData[0])},!v&&{data:g.options.data},a);v&&a.data&&(a.data=g.options.data);u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u);u.forEach(function(a){u[a]=g[a];delete g[a]});e=!1;
|
|
461
|
+
if(m[k]){if(e=k!==g.type,g.remove(!1,!1,!1,!0),e)if(Object.setPrototypeOf)Object.setPrototypeOf(g,m[k].prototype);else{d=Object.hasOwnProperty.call(g,"hcEvents")&&g.hcEvents;for(r in n)g[r]=void 0;J(g,m[k].prototype);d?g.hcEvents=d:delete g.hcEvents}}else w(17,!0,f,{missingModuleFor:k});u.forEach(function(a){g[a]=u[a]});g.init(f,a);if(v&&this.points){var H=g.options;!1===H.visible?(h.graphic=1,h.dataLabel=1):g._hasPointLabels||(a=H.marker,k=H.dataLabels,a&&(!1===a.enabled||"symbol"in a)&&(h.graphic=
|
|
462
|
+
1),k&&!1===k.enabled&&(h.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(h).length&&a.destroyElements(h),!1===H.showInLegend&&a.legendItem&&f.legend.destroyItem(a))},this)}g.initialType=l;f.linkSeries();e&&g.linkedSeries.length&&(g.isDirtyData=!0);t(this,"afterUpdate");p(b,!0)&&f.redraw(v?void 0:!1)};d.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};d.prototype.hasOptionChanged=function(a){var c=
|
|
463
|
+
this.options[a],b=this.chart.options.plotOptions,g=this.userOptions[a];return g?c!==g:c!==p(b&&b[this.type]&&b[this.type][a],b&&b.series&&b.series[a],c)};d.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&t(this,"mouseOver");this.setState("hover");a.hoverSeries=this};d.prototype.onMouseOut=function(){var a=this.options,c=this.chart,b=c.tooltip,g=c.hoverPoint;c.hoverSeries=null;if(g)g.onMouseOut();
|
|
464
|
+
this&&a.events.mouseOut&&t(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();c.series.forEach(function(a){a.setState("",!0)})};d.prototype.setState=function(a,c){var b=this,g=b.options,f=b.graph,e=g.inactiveOtherPoints,l=g.states,d=g.lineWidth,m=g.opacity,k=p(l[a||"normal"]&&l[a||"normal"].animation,b.chart.options.chart.animation);g=0;a=a||"";if(b.state!==a&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(c){c&&(b.state&&c.removeClass("highcharts-series-"+
|
|
465
|
+
b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(l[a]&&!1===l[a].enabled)return;a&&(d=l[a].lineWidth||d+(l[a].lineWidthPlus||0),m=p(l[a].opacity,m));if(f&&!f.dashstyle)for(l={"stroke-width":d},f.animate(l,k);b["zone-graph-"+g];)b["zone-graph-"+g].animate(l,k),g+=1;e||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(a){a&&a.animate({opacity:m},k)})}c&&e&&b.points&&b.setAllPointsToState(a||void 0)};d.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&
|
|
466
|
+
c.setState(a)})};d.prototype.setVisible=function(a,c){var b=this,g=b.chart,f=b.legendItem,e=g.options.chart.ignoreHiddenSeries,l=b.visible;var d=(b.visible=a=b.options.visible=b.userOptions.visible="undefined"===typeof a?!l:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(b[a])b[a][d]()});if(g.hoverSeries===b||(g.hoverPoint&&g.hoverPoint.series)===b)b.onMouseOut();f&&g.legend.colorizeItem(b,a);b.isDirty=!0;b.options.stacking&&g.series.forEach(function(a){a.options.stacking&&
|
|
467
|
+
a.visible&&(a.isDirty=!0)});b.linkedSeries.forEach(function(c){c.setVisible(a,!1)});e&&(g.isDirtyBox=!0);t(b,d);!1!==c&&g.redraw()};d.prototype.show=function(){this.setVisible(!0)};d.prototype.hide=function(){this.setVisible(!1)};d.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);t(this,a?"select":"unselect")};d.prototype.shouldShowTooltip=function(a,c,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly=
|
|
468
|
+
!0;return this.chart.isInsidePlot(a,c,b)};d.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:A.backgroundColor,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=
|
|
469
469
|
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},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"};
|
|
470
|
-
return
|
|
471
|
-
function(
|
|
472
|
-
(this.scrollablePixelsY=
|
|
473
|
-
B(
|
|
474
|
-
|
|
475
|
-
k;this.scrollablePixelsX&&!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&&
|
|
476
|
-
|
|
477
|
-
this.options.chart.style),this.scrollableMask=
|
|
478
|
-
(this.scrollablePixelsX||0);
|
|
479
|
-
|
|
480
|
-
1],["L",
|
|
481
|
-
A=
|
|
482
|
-
this.oldStacks;B(
|
|
483
|
-
zIndex:6,opacity:0}).add();
|
|
484
|
-
[
|
|
485
|
-
|
|
486
|
-
null,null,
|
|
487
|
-
k(
|
|
488
|
-
null,c),
|
|
489
|
-
|
|
490
|
-
(
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
p.total=
|
|
494
|
-
b[
|
|
495
|
-
[
|
|
496
|
-
|
|
497
|
-
b.xMap,
|
|
498
|
-
center:2}[
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
k=
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
b[
|
|
505
|
-
|
|
506
|
-
"leftNull",
|
|
507
|
-
|
|
508
|
-
new k)}}(),
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
(
|
|
514
|
-
.001,a=
|
|
515
|
-
this,c=a.options,b=a.xAxis,
|
|
516
|
-
c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),k
|
|
517
|
-
|
|
518
|
-
2-c-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
"borderColor";var
|
|
522
|
-
|
|
523
|
-
e
|
|
524
|
-
a.chart,
|
|
525
|
-
|
|
526
|
-
select:{color:
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
function(b,
|
|
530
|
-
|
|
531
|
-
marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return k}(
|
|
532
|
-
|
|
533
|
-
"100%"),
|
|
534
|
-
function(b,
|
|
535
|
-
b.options=void 0;b.series=void 0;return b}
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
return b}(
|
|
539
|
-
1);
|
|
540
|
-
function(
|
|
541
|
-
function(
|
|
542
|
-
c=this.options;if(0===this.total&&this.center){var
|
|
543
|
-
function(){var b=this.chart.renderer;this.points.forEach(function(
|
|
544
|
-
(a+c.labelDistance)+(0<c.labelDistance?(
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
k+
|
|
548
|
-
2;var
|
|
549
|
-
|
|
550
|
-
ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:
|
|
551
|
-
pointClass:A,requireSorting:!1,searchPoint:
|
|
552
|
-
|
|
553
|
-
b[
|
|
554
|
-
|
|
555
|
-
c)});else if(
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
H.stroke=c.borderColor,H["stroke-width"]=c.borderWidth);
|
|
559
|
-
|
|
560
|
-
"afterDrawDataLabels")};
|
|
561
|
-
a.height-1,{inverted:
|
|
562
|
-
|
|
563
|
-
b.plotX:b.plotY})}
|
|
564
|
-
c.placed=!0)};
|
|
565
|
-
|
|
566
|
-
c,
|
|
567
|
-
(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),
|
|
568
|
-
delete a.dataLabels))}),
|
|
569
|
-
u+
|
|
570
|
-
align:
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
function(b){var c=this.center,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
b.options.dataLabels;b.visible&&(!1!==k.enabled||b._hasPointLabels)&&(k=function(b){return b.forEach(function(b){b.visible&&(A(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(
|
|
578
|
-
|
|
579
|
-
c}}};for(
|
|
580
|
-
"Core/Responsive.js",[
|
|
581
|
-
{},
|
|
582
|
-
|
|
583
|
-
void 0)};return b}();
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
this.__extends||function(){var
|
|
589
|
-
|
|
590
|
-
A.prototype.setState=function(){
|
|
591
|
-
|
|
592
|
-
function(
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
1,a.pointPlacement));a={x:Math.floor(Math.min(q,
|
|
597
|
-
(
|
|
598
|
-
|
|
599
|
-
a.partialClipRect[
|
|
600
|
-
b.points.forEach(function(c){b.drawPoint(c,
|
|
601
|
-
this.point.partialFill;
|
|
602
|
-
buildKDTree:
|
|
603
|
-
(B.prototype=
|
|
604
|
-
typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return
|
|
605
|
-
!1)}function
|
|
606
|
-
!(null===
|
|
607
|
-
c.toUpperCase()],a[c]);
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
function(c,
|
|
612
|
-
c,b,
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
c.forEach(function(c){c=a[c];if(
|
|
616
|
-
0)-1));return b}function
|
|
617
|
-
c:0);a.titlePosition.x=d
|
|
618
|
-
scrollbar:{enabled:!1}});delete
|
|
619
|
-
[1])[0]-1)*(this.side===
|
|
620
|
-
"stroke-width":c.lineWidth}),this.grid.upperBorder.animate({d:
|
|
621
|
-
"show":"hide"](!0)}}(a&&a.columns||[]).forEach(function(a){a.render()});!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)&&(a=this.tickmarkOffset,c=this.tickPositions[this.tickPositions.length-1],
|
|
622
|
-
this.tickPositions.info,c=this.options,b=this.userOptions.labels||{};(c.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(a){a.options.pointRange=0}),a&&c.dateTimeLabelFormats&&c.labels&&!
|
|
623
|
-
c.grid:{};if(!0===
|
|
624
|
-
a);"xAxis"===this.coll&&(
|
|
625
|
-
this.tickInterval=b*
|
|
626
|
-
b=this.horiz,
|
|
627
|
-
|
|
628
|
-
(b.translate(
|
|
629
|
-
|
|
630
|
-
b[b.length-1],
|
|
631
|
-
2]="bottom";a[a.left=3]="left"})(
|
|
632
|
-
|
|
633
|
-
b.styledMode||a.attr({stroke:
|
|
634
|
-
6048E5)).toString()};"";return
|
|
635
|
-
var
|
|
636
|
-
[
|
|
637
|
-
|
|
638
|
-
f[q])&&q.depth||1,b.x+=(
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
function(b){this.treeGrid.expand(b)},
|
|
642
|
-
|
|
643
|
-
q=k.parentColor,
|
|
644
|
-
null;if(A(
|
|
645
|
-
|
|
646
|
-
updateRootId:function(
|
|
647
|
-
(function(
|
|
648
|
-
function(a){return a.name===
|
|
649
|
-
|
|
650
|
-
c.series.reduce(function(a,c){c.visible&&((c.options.data||[]).forEach(function(
|
|
651
|
-
(a.options.data||[]).map(function(c){
|
|
652
|
-
this.treeGrid.mapOfPosToGridNode){var
|
|
653
|
-
A(a.options.data,b.uniqueNames||!1,1),
|
|
654
|
-
|
|
655
|
-
k(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a.apply(this,Array.prototype.slice.call(arguments,1))}var a;
|
|
656
|
-
|
|
657
|
-
c.options.breaks||[],
|
|
658
|
-
function(a){var c=this.axis,b=c.options.breaks||[],
|
|
659
|
-
width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(
|
|
660
|
-
"getLabelText",function(
|
|
661
|
-
!this.horiz&&A(this.options.staticScale)&&(!
|
|
662
|
-
1<=Math.abs(
|
|
663
|
-
B]]}function
|
|
664
|
-
0,xMax:(
|
|
665
|
-
|
|
666
|
-
k.group.translate(
|
|
667
|
-
|
|
668
|
-
"stroke-width":
|
|
669
|
-
this.toPoint.getPathfinderAnchorPoint(b.endMarker),
|
|
670
|
-
(
|
|
671
|
-
|
|
672
|
-
{x:(
|
|
673
|
-
|
|
674
|
-
d
|
|
675
|
-
b,
|
|
676
|
-
if(a.y<c.y){var
|
|
677
|
-
"Min"]<=
|
|
678
|
-
"yMin"]+(
|
|
679
|
-
"yMin"]+(
|
|
680
|
-
|
|
681
|
-
[
|
|
682
|
-
0,e,a,f=[],
|
|
683
|
-
c){c.options&&
|
|
684
|
-
verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var
|
|
685
|
-
!a.options.isInternal&&a.points.forEach(function(a){var b=a.options;b&&b.dependency&&(b.connect=b.dependency);var
|
|
686
|
-
a[
|
|
687
|
-
!1===b.options.animation?c():b.pathfinderRemoveRenderEvent=
|
|
688
|
-
b.xMin});b(d.algorithmMargin)||(f=d.algorithmMargin=
|
|
689
|
-
F
|
|
690
|
-
|
|
691
|
-
return
|
|
692
|
-
e){function
|
|
693
|
-
if(d.options.milestone)if(b(n)&&null!==d.y&&!1!==d.visible){m=
|
|
694
|
-
d.height||0;b.shapeArgs={x:(d.x||0)-e/2,y:d.y,width:e,height:e}}};e.defaultOptions=
|
|
695
|
-
c||(c=
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
opposite:!0,linkedTo:
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
0),
|
|
702
|
-
(
|
|
703
|
-
minWidth:6,step:.2,zIndex:3,barBackgroundColor:
|
|
704
|
-
function(
|
|
705
|
-
void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(b,d,e)}
|
|
706
|
-
b=[[d[b[0]].element,"click",this.buttonToMinClick.bind(this)],[d[b[1]].element,"click",this.buttonToMaxClick.bind(this)],[k,"click",this.trackClick.bind(this)],[e,"mousedown",
|
|
707
|
-
|
|
708
|
-
this.y-this.yOffset)/(this.barWidth-d)}};
|
|
709
|
-
this.chart.styledMode||q.attr({stroke:
|
|
710
|
-
this.userOptions=e;this.options=b(
|
|
711
|
-
[];!this.grabbedCenter||b.touches&&0===b.touches[0][
|
|
712
|
-
function(b,d,e,
|
|
713
|
-
e-d,translateY:
|
|
714
|
-
"stroke-width":
|
|
715
|
-
stroke:
|
|
716
|
-
"attr":"animate";if(
|
|
717
|
-
0);12>=c?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===e.showFull&&(0>=b&&1<=d?this.group.hide():this.group.show());this.rendered=!0}};
|
|
718
|
-
!this.options.vertical&&
|
|
719
|
-
|
|
720
|
-
k=
|
|
721
|
-
inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:
|
|
722
|
-
this.chart=a;this.init(a)}f.prototype.clickButton=function(b,
|
|
723
|
-
{range:g,max:
|
|
724
|
-
void 0),x=
|
|
725
|
-
b.defaultButtons.slice(),e=c.selected,f=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&
|
|
726
|
-
this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};f.prototype.updateButtonStates=function(){var a=this,b=this.chart,c=this.dropdown,d=b.xAxis[0],e=Math.round(d.max-d.min),f=!d.hasVisibleSeries,g=b.scroller&&b.scroller.getUnionExtremes()||d,h=g.dataMin,
|
|
727
|
-
g){var p=b._range,
|
|
470
|
+
return d}();J(d.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:D.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:z,requireSorting:!0,sorted:!0});B.series=d;"";"";return d});N(h,"Extensions/ScrollablePlotArea.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Series/Series.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Utilities.js"]],
|
|
471
|
+
function(d,h,F,D,E,A){var z=d.stop,B=A.addEvent,q=A.createElement,k=A.merge,e=A.pick;B(F,"afterSetChartSize",function(b){var e=this.options.chart.scrollablePlotArea,d=e&&e.minWidth;e=e&&e.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=k(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=d;var q={1:{name:"right",value:d}}}}else e&&
|
|
472
|
+
(this.scrollablePixelsY=d=Math.max(0,e-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=k(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,q={2:{name:"bottom",value:d}});q&&!b.skipAxes&&this.axes.forEach(function(b){q[b.side]?b.getPlotLinePath=function(){var f=q[b.side].name,e=this[f];this[f]=e-q[b.side].value;var d=h.prototype.getPlotLinePath.apply(this,arguments);this[f]=e;return d}:(b.setAxisSize(),b.setAxisTranslation())})}});
|
|
473
|
+
B(F,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});F.prototype.setUpScrolling=function(){var b=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto");this.scrollablePixelsY&&(e.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=
|
|
474
|
+
q("div",{className:"highcharts-scrolling"},e,this.scrollingParent);B(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};F.prototype.moveFixedElements=function(){var b=this.container,e=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(" "),
|
|
475
|
+
k;this.scrollablePixelsX&&!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===e.SVG_NS?e.box:e.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})};
|
|
476
|
+
F.prototype.applyFixed=function(){var b=!this.fixedDiv,d=this.options.chart,k=d.scrollablePlotArea,h=E.getRendererType();b?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(d.style&&d.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=d=new h(this.fixedDiv,this.chartWidth,this.chartHeight,
|
|
477
|
+
this.options.chart.style),this.scrollableMask=d.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":e(k.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),B(this,"afterShowResetZoom",this.moveFixedElements),B(this,"afterDrilldown",this.moveFixedElements),B(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();d=this.chartWidth+
|
|
478
|
+
(this.scrollablePixelsX||0);h=this.chartHeight+(this.scrollablePixelsY||0);z(this.container);this.container.style.width=d+"px";this.container.style.height=h+"px";this.renderer.boxWrapper.attr({width:d,height:h,viewBox:[0,0,d,h].join(" ")});this.chartBackground.attr({width:d,height:h});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(k.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*k.scrollPositionX),k.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
|
|
479
|
+
k.scrollPositionY));h=this.axisOffset;b=this.plotTop-h[0]-1;k=this.plotLeft-h[3]-1;d=this.plotTop+this.plotHeight+h[2]+1;h=this.plotLeft+this.plotWidth+h[1]+1;var n=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),f=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,d],["L",0,d],["Z"],["M",n,b],["L",this.chartWidth,b],["L",this.chartWidth,d],["L",n,d],["Z"]]:this.scrollablePixelsY?[["M",k,0],["L",k,this.plotTop-
|
|
480
|
+
1],["L",h,this.plotTop-1],["L",h,0],["Z"],["M",k,f],["L",k,this.chartHeight],["L",h,this.chartHeight],["L",h,f],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};B(h,"afterInit",function(){this.chart.scrollableDirty=!0});B(D,"show",function(){this.chart.scrollableDirty=!0});""});N(h,"Core/Axis/StackingAxis.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Utilities.js"]],function(d,h){var Q=d.getDeferredAnimation,D=h.addEvent,E=h.destroyObjectProperties,
|
|
481
|
+
A=h.fireEvent,z=h.isNumber,B=h.objectEach,q=function(){function d(e){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=e}d.prototype.buildStacks=function(){var e=this.axis,b=e.series,d=e.options.reversedStacks,k=b.length,h;if(!e.isXAxis){this.usePercentage=!1;for(h=k;h--;){var n=b[d?h:k-h-1];n.setStackedPoints();n.setGroupedPoints()}for(h=0;h<k;h++)b[h].modifyStacks();A(e,"afterBuildStacks")}};d.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var e=this.stacks=
|
|
482
|
+
this.oldStacks;B(e,function(b){B(b,function(b){b.cumulative=b.total})})}};d.prototype.resetStacks=function(){var e=this,b=this.stacks;this.axis.isXAxis||B(b,function(b){B(b,function(d,k){z(d.touched)&&d.touched<e.stacksTouched?(d.destroy(),delete b[k]):(d.total=null,d.cumulative=null)})})};d.prototype.renderStackTotals=function(){var e=this.axis,b=e.chart,d=b.renderer,k=this.stacks;e=Q(b,e.options.stackLabels&&e.options.stackLabels.animation||!1);var h=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({visibility:"visible",
|
|
483
|
+
zIndex:6,opacity:0}).add();h.translate(b.plotLeft,b.plotTop);B(k,function(b){B(b,function(b){b.render(h)})});h.animate({opacity:1},e)};return d}();return function(){function d(){}d.compose=function(e){D(e,"init",d.onInit);D(e,"destroy",d.onDestroy)};d.onDestroy=function(){var e=this.stacking;if(e){var b=e.stacks;B(b,function(e,d){E(e);b[d]=null});e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}};d.onInit=function(){this.stacking||(this.stacking=new q(this))};return d}()});N(h,"Extensions/Stacking.js",
|
|
484
|
+
[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Series/Series.js"],h["Core/Axis/StackingAxis.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A,z){var B=F.format,q=z.correctFloat,k=z.defined,e=z.destroyObjectProperties,b=z.isArray,r=z.isNumber,C=z.objectEach,y=z.pick,n=function(){function b(b,f,e,d,k){var c=b.chart.inverted;this.axis=b;this.isNegative=e;this.options=f=f||{};this.x=d;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=
|
|
485
|
+
k;this.rightCliff=this.leftCliff=0;this.alignOptions={align:f.align||(c?e?"left":"right":"center"),verticalAlign:f.verticalAlign||(c?"middle":e?"bottom":"top"),y:f.y,x:f.x};this.textAlign=f.textAlign||(c?e?"right":"left":"center")}b.prototype.destroy=function(){e(this,this.axis)};b.prototype.render=function(b){var f=this.axis.chart,e=this.options,d=e.format;d=d?B(d,this,f):e.formatter.call(this);this.label?this.label.attr({text:d,visibility:"hidden"}):(this.label=f.renderer.label(d,null,null,e.shape,
|
|
486
|
+
null,null,e.useHTML,!1,"stack-labels"),d={r:e.borderRadius||0,text:d,rotation:e.rotation,padding:y(e.padding,5),visibility:"hidden"},f.styledMode||(d.fill=e.backgroundColor,d.stroke=e.borderColor,d["stroke-width"]=e.borderWidth,this.label.css(e.style)),this.label.attr(d),this.label.added||this.label.add(b));this.label.labelrank=f.plotSizeY};b.prototype.setOffset=function(b,f,e,d,n){var c=this.axis,l=c.chart;d=c.translate(c.stacking.usePercentage?100:d?d:this.total,0,0,0,1);e=c.translate(e?e:0);e=
|
|
487
|
+
k(d)&&Math.abs(d-e);b=y(n,l.xAxis[0].translate(this.x))+b;c=k(d)&&this.getStackBox(l,this,b,d,f,e,c);f=this.label;e=this.isNegative;b="justify"===y(this.options.overflow,"justify");var a=this.textAlign;f&&c&&(n=f.getBBox(),d=f.padding,a="left"===a?l.inverted?-d:d:"right"===a?n.width:l.inverted&&"center"===a?n.width/2:l.inverted?e?n.width+d:-d:n.width/2,e=l.inverted?n.height/2:e?-d:n.height,this.alignOptions.x=y(this.options.x,0),this.alignOptions.y=y(this.options.y,0),c.x-=a,c.y-=e,f.align(this.alignOptions,
|
|
488
|
+
null,c),l.isInsidePlot(f.alignAttr.x+a-this.alignOptions.x,f.alignAttr.y+e-this.alignOptions.y)?f.show():(f.alignAttr.y=-9999,b=!1),b&&E.prototype.justifyDataLabel.call(this.axis,f,this.alignOptions,f.alignAttr,n,c),f.attr({x:f.alignAttr.x,y:f.alignAttr.y}),y(!b&&this.options.crop,!0)&&((l=r(f.x)&&r(f.y)&&l.isInsidePlot(f.x-d+f.width,f.y)&&l.isInsidePlot(f.x+d,f.y))||f.hide()))};b.prototype.getStackBox=function(b,f,e,d,k,c,l){var a=f.axis.reversed,g=b.inverted,m=l.height+l.pos-(g?b.plotLeft:b.plotTop);
|
|
489
|
+
f=f.isNegative&&!a||!f.isNegative&&a;return{x:g?f?d-l.right:d-c+l.pos-b.plotLeft:e+b.xAxis[0].transB-b.plotLeft,y:g?l.height-e-k:f?m-d-c:m-d,width:g?c:k,height:g?k:c}};return b}();h.prototype.getStacks=function(){var b=this,e=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(f){var d=f.xAxis&&f.xAxis.options||{};!f.options.stacking||!0!==f.visible&&!1!==b.options.chart.ignoreHiddenSeries||
|
|
490
|
+
(f.stackKey=[f.type,y(f.options.stack,""),e?d.top:d.left,e?d.height:d.width].join())})};A.compose(d);E.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?E.prototype.setStackedPoints.call(this,"group"):b&&C(b.stacks,function(f,e){"group"===e.slice(-5)&&(C(f,function(b){return b.destroy()}),delete b.stacks[e])})};E.prototype.setStackedPoints=function(f){var e=
|
|
491
|
+
f||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var d=this.processedXData,r=this.processedYData,u=[],x=r.length,c=this.options,l=c.threshold,a=y(c.startFromThreshold&&l,0);c=c.stack;f=f?this.type+","+e:this.stackKey;var g="-"+f,h=this.negStacks,C=this.yAxis,K=C.stacking.stacks,t=C.stacking.oldStacks,G,O;C.stacking.stacksTouched+=1;for(O=0;O<x;O++){var v=d[O];var H=r[O];var P=this.getStackIndicator(P,v,this.index);var S=P.key;var p=(G=h&&H<(a?0:
|
|
492
|
+
l))?g:f;K[p]||(K[p]={});K[p][v]||(t[p]&&t[p][v]?(K[p][v]=t[p][v],K[p][v].total=null):K[p][v]=new n(C,C.options.stackLabels,G,v,c));p=K[p][v];null!==H?(p.points[S]=p.points[this.index]=[y(p.cumulative,a)],k(p.cumulative)||(p.base=S),p.touched=C.stacking.stacksTouched,0<P.index&&!1===this.singleStacks&&(p.points[S][0]=p.points[this.index+","+v+",0"][0])):p.points[S]=p.points[this.index]=null;"percent"===e?(G=G?f:g,h&&K[G]&&K[G][v]?(G=K[G][v],p.total=G.total=Math.max(G.total,p.total)+Math.abs(H)||0):
|
|
493
|
+
p.total=q(p.total+(Math.abs(H)||0))):"group"===e?(b(H)&&(H=H[0]),null!==H&&(p.total=(p.total||0)+1)):p.total=q(p.total+(H||0));p.cumulative="group"===e?(p.total||1)-1:y(p.cumulative,a)+(H||0);null!==H&&(p.points[S].push(p.cumulative),u[O]=p.cumulative,p.hasValidPoints=!0)}"percent"===e&&(C.stacking.usePercentage=!0);"group"!==e&&(this.stackedYData=u);C.stacking.oldStacks={}}};E.prototype.modifyStacks=function(){var b=this,e=b.stackKey,d=b.yAxis.stacking.stacks,k=b.processedXData,n,r=b.options.stacking;
|
|
494
|
+
b[r+"Stacker"]&&[e,"-"+e].forEach(function(c){for(var f=k.length,a,g;f--;)if(a=k[f],n=b.getStackIndicator(n,a,b.index,c),g=(a=d[c]&&d[c][a])&&a.points[n.key])b[r+"Stacker"](g,a,f)})};E.prototype.percentStacker=function(b,e,d){e=e.total?100/e.total:0;b[0]=q(b[0]*e);b[1]=q(b[1]*e);this.stackedYData[d]=b[1]};E.prototype.getStackIndicator=function(b,e,d,n){!k(b)||b.x!==e||n&&b.key!==n?b={x:e,index:0,key:n}:b.index++;b.key=[d,e,b.index].join();return b};D.StackItem=n;"";return D.StackItem});N(h,"Series/Line/LineSeries.js",
|
|
495
|
+
[h["Core/Color/Palette.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,F,D){var E=this&&this.__extends||function(){var d=function(h,k){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var d in b)b.hasOwnProperty(d)&&(e[d]=b[d])};return d(h,k)};return function(h,k){function e(){this.constructor=h}d(h,k);h.prototype=null===k?Object.create(k):(e.prototype=k.prototype,new e)}}(),A=D.defined,
|
|
496
|
+
z=D.merge;D=function(B){function q(){var d=null!==B&&B.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}E(q,B);q.prototype.drawGraph=function(){var k=this,e=this.options,b=(this.gappedPath||this.getGraphPath).call(this),r=this.chart.styledMode,h=[["graph","highcharts-graph"]];r||h[0].push(e.lineColor||this.color||d.neutralColor20,e.dashStyle);h=k.getZonesGraphs(h);h.forEach(function(d,n){var f=d[0],m=k[f],h=m?"animate":"attr";m?(m.endX=k.preventGraphAnimation?null:
|
|
497
|
+
b.xMap,m.animate({d:b})):b.length&&(k[f]=m=k.chart.renderer.path(b).addClass(d[1]).attr({zIndex:1}).add(k.group));m&&!r&&(f={stroke:d[2],"stroke-width":e.lineWidth,fill:k.fillGraph&&k.color||"none"},d[3]?f.dashstyle=d[3]:"square"!==e.linecap&&(f["stroke-linecap"]=f["stroke-linejoin"]="round"),m[h](f).shadow(2>n&&e.shadow));m&&(m.startX=b.xMap,m.isArea=b.isArea)})};q.prototype.getGraphPath=function(d,e,b){var k=this,h=k.options,q=h.step,n,f=[],m=[],I;d=d||k.points;(n=d.reversed)&&d.reverse();(q={right:1,
|
|
498
|
+
center:2}[q]||q&&3)&&n&&(q=4-q);d=this.getValidPoints(d,!1,!(h.connectNulls&&!e&&!b));d.forEach(function(n,r){var x=n.plotX,c=n.plotY,l=d[r-1];(n.leftCliff||l&&l.rightCliff)&&!b&&(I=!0);n.isNull&&!A(e)&&0<r?I=!h.connectNulls:n.isNull&&!e?I=!0:(0===r||I?r=[["M",n.plotX,n.plotY]]:k.getPointSpline?r=[k.getPointSpline(d,n,r)]:q?(r=1===q?[["L",l.plotX,c]]:2===q?[["L",(l.plotX+x)/2,l.plotY],["L",(l.plotX+x)/2,c]]:[["L",x,l.plotY]],r.push(["L",x,c])):r=[["L",x,c]],m.push(n.x),q&&(m.push(n.x),2===q&&m.push(n.x)),
|
|
499
|
+
f.push.apply(f,r),I=!1)});f.xMap=m;return k.graphPath=f};q.prototype.getZonesGraphs=function(d){this.zones.forEach(function(e,b){b=["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+b+" "+(e.className||"")];this.chart.styledMode||b.push(e.color||this.color,e.dashStyle||this.options.dashStyle);d.push(b)},this);return d};q.defaultOptions=z(h.defaultOptions,{});return q}(h);F.registerSeriesType("line",D);"";return D});N(h,"Series/Area/AreaSeries.js",[h["Core/Color/Color.js"],h["Mixins/LegendSymbol.js"],
|
|
500
|
+
h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,F,D){var E=this&&this.__extends||function(){var e=function(b,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return e(b,d)};return function(b,d){function k(){this.constructor=b}e(b,d);b.prototype=null===d?Object.create(d):(k.prototype=d.prototype,new k)}}(),A=d.parse,z=F.seriesTypes.line;d=D.extend;var B=D.merge,q=D.objectEach,
|
|
501
|
+
k=D.pick;D=function(e){function b(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}E(b,e);b.prototype.drawGraph=function(){this.areaPath=[];e.prototype.drawGraph.apply(this);var b=this,d=this.areaPath,h=this.options,n=[["area","highcharts-area",this.color,h.fillColor]];this.zones.forEach(function(e,d){n.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+e.className,e.color||b.color,e.fillColor||h.fillColor])});n.forEach(function(e){var f=
|
|
502
|
+
e[0],n=b[f],r=n?"animate":"attr",u={};n?(n.endX=b.preventGraphAnimation?null:d.xMap,n.animate({d:d})):(u.zIndex=0,n=b[f]=b.chart.renderer.path(d).addClass(e[1]).add(b.group),n.isArea=!0);b.chart.styledMode||(u.fill=k(e[3],A(e[2]).setOpacity(k(h.fillOpacity,.75)).get()));n[r](u);n.startX=d.xMap;n.shiftUnit=h.step?2:1})};b.prototype.getGraphPath=function(b){var e=z.prototype.getGraphPath,d=this.options,n=d.stacking,f=this.yAxis,m,h=[],r=[],u=this.index,x=f.stacking.stacks[this.stackKey],c=d.threshold,
|
|
503
|
+
l=Math.round(f.getThreshold(d.threshold));d=k(d.connectNulls,"percent"===n);var a=function(a,g,e){var d=b[a];a=n&&x[d.x].points[u];var m=d[e+"Null"]||0;e=d[e+"Cliff"]||0;d=!0;if(e||m){var k=(m?a[0]:a[1])+e;var t=a[0]+e;d=!!m}else!n&&b[g]&&b[g].isNull&&(k=t=c);"undefined"!==typeof k&&(r.push({plotX:w,plotY:null===k?l:f.getThreshold(k),isNull:d,isCliff:!0}),h.push({plotX:w,plotY:null===t?l:f.getThreshold(t),doCurve:!1}))};b=b||this.points;n&&(b=this.getStackPoints(b));for(m=0;m<b.length;m++){n||(b[m].leftCliff=
|
|
504
|
+
b[m].rightCliff=b[m].leftNull=b[m].rightNull=void 0);var g=b[m].isNull;var w=k(b[m].rectPlotX,b[m].plotX);var q=n?k(b[m].yBottom,l):l;if(!g||d)d||a(m,m-1,"left"),g&&!n&&d||(r.push(b[m]),h.push({x:m,plotX:w,plotY:q})),d||a(m,m+1,"right")}m=e.call(this,r,!0,!0);h.reversed=!0;g=e.call(this,h,!0,!0);(q=g[0])&&"M"===q[0]&&(g[0]=["L",q[1],q[2]]);g=m.concat(g);g.length&&g.push(["Z"]);e=e.call(this,r,!1,d);g.xMap=m.xMap;this.areaPath=g;return e};b.prototype.getStackPoints=function(b){var e=this,d=[],n=[],
|
|
505
|
+
f=this.xAxis,m=this.yAxis,h=m.stacking.stacks[this.stackKey],r={},u=m.series,x=u.length,c=m.options.reversedStacks?1:-1,l=u.indexOf(e);b=b||this.points;if(this.options.stacking){for(var a=0;a<b.length;a++)b[a].leftNull=b[a].rightNull=void 0,r[b[a].x]=b[a];q(h,function(a,c){null!==a.total&&n.push(c)});n.sort(function(a,c){return a-c});var g=u.map(function(a){return a.visible});n.forEach(function(a,b){var w=0,t,q;if(r[a]&&!r[a].isNull)d.push(r[a]),[-1,1].forEach(function(f){var d=1===f?"rightNull":
|
|
506
|
+
"leftNull",m=0,k=h[n[b+f]];if(k)for(var p=l;0<=p&&p<x;){var v=u[p].index;t=k.points[v];t||(v===e.index?r[a][d]=!0:g[p]&&(q=h[a].points[v])&&(m-=q[1]-q[0]));p+=c}r[a][1===f?"rightCliff":"leftCliff"]=m});else{for(var y=l;0<=y&&y<x;){if(t=h[a].points[u[y].index]){w=t[1];break}y+=c}w=k(w,0);w=m.translate(w,0,1,0,1);d.push({isNull:!0,plotX:f.translate(a,0,0,0,1),x:a,plotY:w,yBottom:w})}})}return d};b.defaultOptions=B(z.defaultOptions,{threshold:0});return b}(z);d(D.prototype,{singleStacks:!1,drawLegendSymbol:h.drawRectangle});
|
|
507
|
+
F.registerSeriesType("area",D);"";return D});N(h,"Series/Spline/SplineSeries.js",[h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h){var Q=this&&this.__extends||function(){var d=function(h,q){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,e){for(var b in e)e.hasOwnProperty(b)&&(d[b]=e[b])};return d(h,q)};return function(h,q){function k(){this.constructor=h}d(h,q);h.prototype=null===q?Object.create(q):(k.prototype=q.prototype,
|
|
508
|
+
new k)}}(),D=d.seriesTypes.line,E=h.merge,A=h.pick;h=function(d){function h(){var h=null!==d&&d.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}Q(h,d);h.prototype.getPointSpline=function(d,k,e){var b=k.plotX||0,h=k.plotY||0,q=d[e-1];e=d[e+1];if(q&&!q.isNull&&!1!==q.doCurve&&!k.isCliff&&e&&!e.isNull&&!1!==e.doCurve&&!k.isCliff){d=q.plotY||0;var y=e.plotX||0;e=e.plotY||0;var n=0;var f=(1.5*b+(q.plotX||0))/2.5;var m=(1.5*h+d)/2.5;y=(1.5*b+y)/2.5;var B=(1.5*h+e)/2.5;
|
|
509
|
+
y!==f&&(n=(B-m)*(y-b)/(y-f)+h-B);m+=n;B+=n;m>d&&m>h?(m=Math.max(d,h),B=2*h-m):m<d&&m<h&&(m=Math.min(d,h),B=2*h-m);B>e&&B>h?(B=Math.max(e,h),m=2*h-B):B<e&&B<h&&(B=Math.min(e,h),m=2*h-B);k.rightContX=y;k.rightContY=B}k=["C",A(q.rightContX,q.plotX,0),A(q.rightContY,q.plotY,0),A(f,b,0),A(m,h,0),b,h];q.rightContX=q.rightContY=void 0;return k};h.defaultOptions=E(D.defaultOptions);return h}(D);d.registerSeriesType("spline",h);"";return h});N(h,"Series/AreaSpline/AreaSplineSeries.js",[h["Series/Area/AreaSeries.js"],
|
|
510
|
+
h["Series/Spline/SplineSeries.js"],h["Mixins/LegendSymbol.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,F,D,E){var A=this&&this.__extends||function(){var d=function(e,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return d(e,b)};return function(e,b){function k(){this.constructor=e}d(e,b);e.prototype=null===b?Object.create(b):(k.prototype=b.prototype,new k)}}(),z=
|
|
511
|
+
d.prototype,B=E.extend,q=E.merge;E=function(k){function e(){var b=null!==k&&k.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;return b}A(e,k);e.defaultOptions=q(h.defaultOptions,d.defaultOptions);return e}(h);B(E.prototype,{getGraphPath:z.getGraphPath,getStackPoints:z.getStackPoints,drawGraph:z.drawGraph,drawLegendSymbol:F.drawRectangle});D.registerSeriesType("areaspline",E);"";return E});N(h,"Series/Column/ColumnSeries.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Color/Color.js"],
|
|
512
|
+
h["Core/Globals.js"],h["Mixins/LegendSymbol.js"],h["Core/Color/Palette.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A,z,B){var q=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return c(b,a)};return function(b,a){function g(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):
|
|
513
|
+
(g.prototype=a.prototype,new g)}}(),k=d.animObject,e=h.parse,b=F.hasTouch;d=F.noop;var r=B.clamp,C=B.css,y=B.defined,n=B.extend,f=B.fireEvent,m=B.isArray,I=B.isNumber,L=B.merge,u=B.pick,x=B.objectEach;B=function(c){function d(){var a=null!==c&&c.apply(this,arguments)||this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}q(d,c);d.prototype.animate=function(a){var c=this,b=this.yAxis,e=c.options,f=this.chart.inverted,d={},l=f?"translateX":"translateY";if(a)d.scaleY=
|
|
514
|
+
.001,a=r(b.toPixels(e.threshold),b.pos,b.pos+b.len),f?d.translateX=a-b.len:d.translateY=a,c.clipBox&&c.setClip(),c.group.attr(d);else{var m=Number(c.group.attr(l));c.group.animate({scaleY:1},n(k(c.options.animation),{step:function(a,g){c.group&&(d[l]=m+g.pos*(b.pos-m),c.group.attr(d))}}))}};d.prototype.init=function(a,b){c.prototype.init.apply(this,arguments);var g=this;a=g.chart;a.hasRendered&&a.series.forEach(function(a){a.type===g.type&&(a.isDirty=!0)})};d.prototype.getColumnMetrics=function(){var a=
|
|
515
|
+
this,c=a.options,b=a.xAxis,e=a.yAxis,f=b.options.reversedStacks;f=b.reversed&&!f||!b.reversed&&f;var d,l={},m=0;!1===c.grouping?m=1:a.chart.series.forEach(function(c){var b=c.yAxis,g=c.options;if(c.type===a.type&&(c.visible||!a.chart.options.chart.ignoreHiddenSeries)&&e.len===b.len&&e.pos===b.pos){if(g.stacking&&"group"!==g.stacking){d=c.stackKey;"undefined"===typeof l[d]&&(l[d]=m++);var f=l[d]}else!1!==g.grouping&&(f=m++);c.columnIndex=f}});var k=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||
|
|
516
|
+
c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),n=k*c.groupPadding,h=(k-2*n)/(m||1);c=Math.min(c.maxPointWidth||b.len,u(c.pointWidth,h*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(h-c)/2+(n+((a.columnIndex||0)+(f?1:0))*h-k/2)*(f?-1:1),paddedWidth:h,columnCount:m};return a.columnMetrics};d.prototype.crispCol=function(a,c,b,e){var g=this.chart,f=this.borderWidth,d=-(f%2?.5:0);f=f%2?.5:1;g.inverted&&g.renderer.isVML&&(f+=1);this.options.crisp&&(b=Math.round(a+b)+d,a=Math.round(a)+
|
|
517
|
+
d,b-=a);e=Math.round(c+e)+f;d=.5>=Math.abs(c)&&.5<e;c=Math.round(c)+f;e-=c;d&&e&&(--c,e+=1);return{x:a,y:c,width:b,height:e}};d.prototype.adjustForMissingColumns=function(a,c,b,e){var g=this,f=this.options.stacking;if(!b.isNull&&1<e.columnCount){var d=0,l=0;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x&&(a=a[b.x.toString()])){var c=a.points[g.index],e=a.total;f?(c&&(d=l),a.hasValidPoints&&l++):m(c)&&(d=c[1],l=e||0)}});a=(b.plotX||0)+((l-1)*e.paddedWidth+c)/
|
|
518
|
+
2-c-d*e.paddedWidth}return a};d.prototype.translate=function(){var a=this,c=a.chart,b=a.options,e=a.dense=2>a.closestPointRange*a.xAxis.transA;e=a.borderWidth=u(b.borderWidth,e?0:1);var f=a.xAxis,d=a.yAxis,l=b.threshold,m=a.translatedThreshold=d.getThreshold(l),k=u(b.minPointLength,5),n=a.getColumnMetrics(),h=n.width,x=a.barW=Math.max(h,1+2*e),p=a.pointXOffset=n.offset,q=a.dataMin,C=a.dataMax;c.inverted&&(m-=.5);b.pointPadding&&(x=Math.ceil(x));A.prototype.translate.apply(a);a.points.forEach(function(g){var e=
|
|
519
|
+
u(g.yBottom,m),v=999+Math.abs(e),t=h,w=g.plotX||0;v=r(g.plotY,-v,d.len+v);w+=p;var H=x,G=Math.min(v,e),O=Math.max(v,e)-G;if(k&&Math.abs(O)<k){O=k;var P=!d.reversed&&!g.negative||d.reversed&&g.negative;I(l)&&I(C)&&g.y===l&&C<=l&&(d.min||0)<l&&(q!==C||(d.max||0)<=l)&&(P=!P);G=Math.abs(G-m)>k?e-k:m-(P?k:0)}y(g.options.pointWidth)&&(t=H=Math.ceil(g.options.pointWidth),w-=Math.round((t-h)/2));b.centerInCategory&&(w=a.adjustForMissingColumns(w,t,g,n));g.barX=w;g.pointWidth=t;g.tooltipPos=c.inverted?[r(d.len+
|
|
520
|
+
d.pos-c.plotLeft-v,d.pos-c.plotLeft,d.len+d.pos-c.plotLeft),f.len+f.pos-c.plotTop-w-H/2,O]:[f.left-c.plotLeft+w+H/2,r(v+d.pos-c.plotTop,d.pos-c.plotTop,d.len+d.pos-c.plotTop),O];g.shapeType=a.pointClass.prototype.shapeType||"rect";g.shapeArgs=a.crispCol.apply(a,g.isNull?[w,m,H,0]:[w,G,H,O])})};d.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};d.prototype.pointAttribs=function(a,c){var b=this.options,g=this.pointAttrToOptions||{};var f=g.stroke||
|
|
521
|
+
"borderColor";var d=g["stroke-width"]||"borderWidth",l=a&&a.color||this.color,m=a&&a[f]||b[f]||l,k=a&&a[d]||b[d]||this[d]||0;g=a&&a.options.dashStyle||b.dashStyle;var n=u(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var h=a.getZone();l=a.options.color||h&&(h.color||a.nonZonedColor)||this.color;h&&(m=h.borderColor||m,g=h.dashStyle||g,k=h.borderWidth||k)}c&&a&&(a=L(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,l=a.color||"undefined"!==typeof c&&e(l).brighten(a.brightness).get()||
|
|
522
|
+
l,m=a[f]||m,k=a[d]||k,g=a.dashStyle||g,n=u(a.opacity,n));f={fill:l,stroke:m,"stroke-width":k,opacity:n};g&&(f.dashstyle=g);return f};d.prototype.drawPoints=function(){var a=this,c=this.chart,b=a.options,e=c.renderer,f=b.animationLimit||250,d;a.points.forEach(function(g){var l=g.graphic,m=!!l,k=l&&c.pointCount<f?"animate":"attr";if(I(g.plotY)&&null!==g.y){d=g.shapeArgs;l&&g.hasNewShapeType()&&(l=l.destroy());a.enabledDataSorting&&(g.startXPos=a.xAxis.reversed?-(d?d.width||0:0):a.xAxis.width);l||(g.graphic=
|
|
523
|
+
l=e[g.shapeType](d).add(g.group||a.group))&&a.enabledDataSorting&&c.hasRendered&&c.pointCount<f&&(l.attr({x:g.startXPos}),m=!0,k="animate");if(l&&m)l[k](L(d));if(b.borderRadius)l[k]({r:b.borderRadius});c.styledMode||l[k](a.pointAttribs(g,g.selected&&"select")).shadow(!1!==g.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);l&&(l.addClass(g.getClassName(),!0),l.attr({visibility:g.visible?"inherit":"hidden"}))}else l&&(g.graphic=l.destroy())})};d.prototype.drawTracker=function(){var a=this,c=
|
|
524
|
+
a.chart,e=c.pointer,d=function(a){var c=e.getPointFromEvent(a);"undefined"!==typeof c&&(e.isDirectTouch=!0,c.onMouseOver(a))},l;a.points.forEach(function(a){l=m(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);l.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(g){if(a[g]){a[g].addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(a){e.onTrackerMouseOut(a)});if(b)a[g].on("touchstart",
|
|
525
|
+
d);!c.styledMode&&a.options.cursor&&a[g].css(C).css({cursor:a.options.cursor})}}),a._hasTracking=!0);f(this,"afterDrawTracker")};d.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(c){c.type===a.type&&(c.isDirty=!0)});A.prototype.remove.apply(a,arguments)};d.defaultOptions=L(A.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
|
|
526
|
+
select:{color:E.neutralColor20,borderColor:E.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:E.backgroundColor});return d}(A);n(B.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:D.drawRectangle,getSymbol:d,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});z.registerSeriesType("column",B);"";"";return B});N(h,"Series/Bar/BarSeries.js",[h["Series/Column/ColumnSeries.js"],h["Core/Series/SeriesRegistry.js"],
|
|
527
|
+
h["Core/Utilities.js"]],function(d,h,F){var D=this&&this.__extends||function(){var d=function(h,q){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,e){for(var b in e)e.hasOwnProperty(b)&&(d[b]=e[b])};return d(h,q)};return function(h,q){function k(){this.constructor=h}d(h,q);h.prototype=null===q?Object.create(q):(k.prototype=q.prototype,new k)}}(),E=F.extend,A=F.merge;F=function(h){function B(){var d=null!==h&&h.apply(this,arguments)||this;d.data=void 0;
|
|
528
|
+
d.options=void 0;d.points=void 0;return d}D(B,h);B.defaultOptions=A(d.defaultOptions,{});return B}(d);E(F.prototype,{inverted:!0});h.registerSeriesType("bar",F);"";return F});N(h,"Series/Scatter/ScatterSeries.js",[h["Series/Column/ColumnSeries.js"],h["Series/Line/LineSeries.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,F,D){var E=this&&this.__extends||function(){var d=function(k,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||
|
|
529
|
+
function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return d(k,e)};return function(k,e){function b(){this.constructor=k}d(k,e);k.prototype=null===e?Object.create(e):(b.prototype=e.prototype,new b)}}(),A=D.addEvent,z=D.extend,B=D.merge;D=function(d){function k(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}E(k,d);k.prototype.applyJitter=function(){var e=this,b=this.options.jitter,d=this.points.length;b&&this.points.forEach(function(k,
|
|
530
|
+
h){["x","y"].forEach(function(n,f){var m="plot"+n.toUpperCase();if(b[n]&&!k.isNull){var r=e[n+"Axis"];var q=b[n]*r.transA;if(r&&!r.isLog){var u=Math.max(0,k[m]-q);r=Math.min(r.len,k[m]+q);f=1E4*Math.sin(h+f*d);k[m]=u+(r-u)*(f-Math.floor(f));"x"===n&&(k.clientX=k.plotX)}}})})};k.prototype.drawGraph=function(){this.options.lineWidth?d.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};k.defaultOptions=B(h.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},
|
|
531
|
+
marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return k}(h);z(D.prototype,{drawTracker:d.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});A(D,"afterTranslate",function(){this.applyJitter()});F.registerSeriesType("scatter",D);"";return D});
|
|
532
|
+
N(h,"Mixins/CenteredSeries.js",[h["Core/Globals.js"],h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(d,h,F){var D=F.isNumber,E=F.pick,A=F.relativeLength,z=d.deg2rad;return d.CenteredSeriesMixin={getCenter:function(){var d=this.options,q=this.chart,k=2*(d.slicedOffset||0),e=q.plotWidth-2*k,b=q.plotHeight-2*k,r=d.center,C=Math.min(e,b),y=d.size,n=d.innerSize||0;"string"===typeof y&&(y=parseFloat(y));"string"===typeof n&&(n=parseFloat(n));d=[E(r[0],"50%"),E(r[1],"50%"),E(y&&0>y?void 0:d.size,
|
|
533
|
+
"100%"),E(n&&0>n?void 0:d.innerSize||0,"0%")];!q.angular||this instanceof h||(d[3]=0);for(r=0;4>r;++r)y=d[r],q=2>r||2===r&&/%$/.test(y),d[r]=A(y,[e,b,C,d[2]][r])+(q?k:0);d[3]>d[2]&&(d[3]=d[2]);return d},getStartAndEndRadians:function(d,h){d=D(d)?d:0;h=D(h)&&h>d&&360>h-d?h:d+360;return{start:z*(d+-90),end:z*(h+-90)}}}});N(h,"Series/Pie/PiePoint.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"]],function(d,h,F){var D=this&&this.__extends||function(){var e=
|
|
534
|
+
function(b,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return e(b,d)};return function(b,d){function k(){this.constructor=b}e(b,d);b.prototype=null===d?Object.create(d):(k.prototype=d.prototype,new k)}}(),E=d.setAnimation,A=F.addEvent,z=F.defined;d=F.extend;var B=F.isNumber,q=F.pick,k=F.relativeLength;F=function(e){function b(){var b=null!==e&&e.apply(this,arguments)||this;b.labelDistance=void 0;
|
|
535
|
+
b.options=void 0;b.series=void 0;return b}D(b,e);b.prototype.getConnectorPath=function(){var b=this.labelPosition,e=this.series.options.dataLabels,d=e.connectorShape,k=this.connectorShapes;k[d]&&(d=k[d]);return d.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,e)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(b){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,
|
|
536
|
+
e.y,e.r+b,e.r+b,{innerR:e.r-1,start:e.start,end:e.end})};b.prototype.init=function(){h.prototype.init.apply(this,arguments);var b=this;b.name=q(b.name,"Slice");var e=function(e){b.slice("select"===e.type)};A(b,"select",e);A(b,"unselect",e);return b};b.prototype.isValid=function(){return B(this.y)&&0<=this.y};b.prototype.setVisible=function(b,e){var d=this,k=d.series,f=k.chart,m=k.options.ignoreHiddenPoint;e=q(e,m);b!==d.visible&&(d.visible=d.options.visible=b="undefined"===typeof b?!d.visible:b,k.options.data[k.data.indexOf(d)]=
|
|
537
|
+
d.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){if(d[e])d[e][b?"show":"hide"](b)}),d.legendItem&&f.legend.colorizeItem(d,b),b||"hover"!==d.state||d.setState(""),m&&(k.isDirty=!0),e&&f.redraw())};b.prototype.slice=function(b,e,d){var k=this.series;E(d,k.chart);q(e,!0);this.sliced=this.options.sliced=z(b)?b:!this.sliced;k.options.data[k.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};
|
|
538
|
+
return b}(h);d(F.prototype,{connectorShapes:{fixedOffset:function(e,b,d){var k=b.breakAt;b=b.touchingSliceAt;return[["M",e.x,e.y],d.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*k.x-b.x,2*k.y-b.y,k.x,k.y]:["L",k.x,k.y],["L",b.x,b.y]]},straight:function(e,b){b=b.touchingSliceAt;return[["M",e.x,e.y],["L",b.x,b.y]]},crookedLine:function(e,b,d){b=b.touchingSliceAt;var h=this.series,q=h.center[0],n=h.chart.plotWidth,f=h.chart.plotLeft;h=e.alignment;var m=this.shapeArgs.r;d=k(d.crookDistance,
|
|
539
|
+
1);n="left"===h?q+m+(n+f-q-m)*(1-d):f+(q-m)*d;d=["L",n,e.y];q=!0;if("left"===h?n>e.x||n<b.x:n<e.x||n>b.x)q=!1;e=[["M",e.x,e.y]];q&&e.push(d);e.push(["L",b.x,b.y]);return e}}});return F});N(h,"Series/Pie/PieSeries.js",[h["Mixins/CenteredSeries.js"],h["Series/Column/ColumnSeries.js"],h["Core/Globals.js"],h["Mixins/LegendSymbol.js"],h["Core/Color/Palette.js"],h["Series/Pie/PiePoint.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Renderer/SVG/Symbols.js"],h["Core/Utilities.js"]],
|
|
540
|
+
function(d,h,F,D,E,A,z,B,q,k){var e=this&&this.__extends||function(){var b=function(e,f){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var e in c)c.hasOwnProperty(e)&&(b[e]=c[e])};return b(e,f)};return function(e,f){function d(){this.constructor=e}b(e,f);e.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}(),b=d.getStartAndEndRadians;F=F.noop;var r=k.clamp,C=k.extend,y=k.fireEvent,n=k.merge,f=k.pick,m=k.relativeLength;k=
|
|
541
|
+
function(d){function k(){var b=null!==d&&d.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}e(k,d);k.prototype.animate=function(b){var e=this,c=e.points,d=e.startAngleRad;b||c.forEach(function(a){var c=a.graphic,b=a.shapeArgs;c&&b&&(c.attr({r:f(a.startR,e.center&&e.center[3]/2),start:d,end:d}),c.animate({r:b.r,start:b.start,end:b.end},e.options.animation))})};k.prototype.drawEmpty=function(){var b=this.startAngleRad,e=this.endAngleRad,
|
|
542
|
+
c=this.options;if(0===this.total&&this.center){var f=this.center[0];var a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,a,this.center[1]/2,0,b,e).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:q.arc(f,a,this.center[2]/2,0,{start:b,end:e,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":c.borderWidth,fill:c.fillColor||"none",stroke:c.color||E.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};k.prototype.drawPoints=
|
|
543
|
+
function(){var b=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy());e.graphic||(e.graphic=b[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})};k.prototype.generatePoints=function(){d.prototype.generatePoints.call(this);this.updateTotals()};k.prototype.getX=function(b,e,c){var f=this.center,a=this.radii?this.radii[c.index]||0:f[2]/2;b=Math.asin(r((b-f[1])/(a+c.labelDistance),-1,1));return f[0]+(e?-1:1)*Math.cos(b)*
|
|
544
|
+
(a+c.labelDistance)+(0<c.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)};k.prototype.hasData=function(){return!!this.processedXData.length};k.prototype.redrawPoints=function(){var b=this,e=b.chart,c=e.renderer,f,a,g,d,m=b.options.shadow;this.drawEmpty();!m||b.shadowGroup||e.styledMode||(b.shadowGroup=c.g("shadow").attr({zIndex:-1}).add(b.group));b.points.forEach(function(l){var k={};a=l.graphic;if(!l.isNull&&a){var h=void 0;d=l.shapeArgs;f=l.getTranslate();e.styledMode||(h=l.shadowGroup,
|
|
545
|
+
m&&!h&&(h=l.shadowGroup=c.g("shadow").add(b.shadowGroup)),h&&h.attr(f),g=b.pointAttribs(l,l.selected&&"select"));l.delayedRendering?(a.setRadialReference(b.center).attr(d).attr(f),e.styledMode||a.attr(g).attr({"stroke-linejoin":"round"}).shadow(m,h),l.delayedRendering=!1):(a.setRadialReference(b.center),e.styledMode||n(!0,k,g),n(!0,k,d,f),a.animate(k));a.attr({visibility:l.visible?"inherit":"hidden"});a.addClass(l.getClassName(),!0)}else a&&(l.graphic=a.destroy())})};k.prototype.sortByAngle=function(b,
|
|
546
|
+
e){b.sort(function(c,b){return"undefined"!==typeof c.angle&&(b.angle-c.angle)*e})};k.prototype.translate=function(e){this.generatePoints();var d=0,c=this.options,l=c.slicedOffset,a=l+(c.borderWidth||0),g=b(c.startAngle,c.endAngle),k=this.startAngleRad=g.start;g=(this.endAngleRad=g.end)-k;var n=this.points,h=c.dataLabels.distance;c=c.ignoreHiddenPoint;var t,u=n.length;e||(this.center=e=this.getCenter());for(t=0;t<u;t++){var q=n[t];var v=k+d*g;!q.isValid()||c&&!q.visible||(d+=q.percentage/100);var r=
|
|
547
|
+
k+d*g;var P={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1E3*v)/1E3,end:Math.round(1E3*r)/1E3};q.shapeType="arc";q.shapeArgs=P;q.labelDistance=f(q.options.dataLabels&&q.options.dataLabels.distance,h);q.labelDistance=m(q.labelDistance,P.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,q.labelDistance);r=(r+v)/2;r>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);q.slicedTranslation={translateX:Math.round(Math.cos(r)*l),translateY:Math.round(Math.sin(r)*l)};P=Math.cos(r)*e[2]/
|
|
548
|
+
2;var S=Math.sin(r)*e[2]/2;q.tooltipPos=[e[0]+.7*P,e[1]+.7*S];q.half=r<-Math.PI/2||r>Math.PI/2?1:0;q.angle=r;v=Math.min(a,q.labelDistance/5);q.labelPosition={natural:{x:e[0]+P+Math.cos(r)*q.labelDistance,y:e[1]+S+Math.sin(r)*q.labelDistance},"final":{},alignment:0>q.labelDistance?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:e[0]+P+Math.cos(r)*v,y:e[1]+S+Math.sin(r)*v},touchingSliceAt:{x:e[0]+P,y:e[1]+S}}}}y(this,"afterTranslate")};k.prototype.updateTotals=function(){var b,e=0,c=this.points,
|
|
549
|
+
f=c.length,a=this.options.ignoreHiddenPoint;for(b=0;b<f;b++){var g=c[b];!g.isValid()||a&&!g.visible||(e+=g.y)}this.total=e;for(b=0;b<f;b++)g=c[b],g.percentage=0<e&&(g.visible||!a)?g.y/e*100:0,g.total=e};k.defaultOptions=n(z.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,
|
|
550
|
+
ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:E.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return k}(z);C(k.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:D.drawRectangle,drawTracker:h.prototype.drawTracker,getCenter:d.getCenter,getSymbol:F,isCartesian:!1,noSharedTooltip:!0,pointAttribs:h.prototype.pointAttribs,
|
|
551
|
+
pointClass:A,requireSorting:!1,searchPoint:F,trackerGroups:["group","dataLabelsGroup"]});B.registerSeriesType("pie",k);"";return k});N(h,"Core/Series/DataLabels.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Color/Palette.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A,z){var B=d.getDeferredAnimation,q=h.format;d=F.noop;A=A.seriesTypes;var k=z.arrayMax,e=z.clamp,b=z.defined,r=
|
|
552
|
+
z.extend,C=z.fireEvent,y=z.isArray,n=z.merge,f=z.objectEach,m=z.pick,I=z.relativeLength,L=z.splat,u=z.stableSort;"";F.distribute=function(b,c,f){function a(a,c){return a.target-c.target}var g,d=!0,l=b,k=[];var n=0;var h=l.reducedLen||c;for(g=b.length;g--;)n+=b[g].size;if(n>h){u(b,function(a,c){return(c.rank||0)-(a.rank||0)});for(n=g=0;n<=h;)n+=b[g].size,g++;k=b.splice(g-1,b.length)}u(b,a);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:m(a.align,.5)}});d;){for(g=b.length;g--;)d=
|
|
553
|
+
b[g],n=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=e(n-d.size*d.align,0,c-d.size);g=b.length;for(d=!1;g--;)0<g&&b[g-1].pos+b[g-1].size>b[g].pos&&(b[g-1].size+=b[g].size,b[g-1].targets=b[g-1].targets.concat(b[g].targets),b[g-1].align=.5,b[g-1].pos+b[g-1].size>c&&(b[g-1].pos=c-b[g-1].size),b.splice(g,1),d=!0)}l.push.apply(l,k);g=0;b.some(function(a){var b=0;if(a.targets.some(function(){l[g].pos=a.pos+b;if("undefined"!==typeof f&&Math.abs(l[g].pos-l[g].target)>f)return l.slice(0,
|
|
554
|
+
g+1).forEach(function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&F.distribute(l,c,f),!0;b+=l[g].size;g++}))return!0});u(l,a)};E.prototype.drawDataLabels=function(){function e(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a<b||">="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function c(a,c){var b=[],e;if(y(a)&&!y(c))b=a.map(function(a){return n(a,c)});else if(y(c)&&!y(a))b=c.map(function(c){return n(a,
|
|
555
|
+
c)});else if(y(a)||y(c))for(e=Math.max(a.length,c.length);e--;)b[e]=n(a[e],c[e]);else b=n(a,c);return b}var d=this,a=d.chart,g=d.options,k=g.dataLabels,h=d.points,r,t=d.hasRendered||0,u=k.animation;u=k.defer?B(a,u,d):{defer:0,duration:0};var O=a.renderer;k=c(c(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[d.type]&&a.options.plotOptions[d.type].dataLabels),k);C(this,"drawDataLabels");if(y(k)||k.enabled||d._hasPointLabels){var v=
|
|
556
|
+
d.plotGroup("dataLabelsGroup","data-labels",t?"inherit":"hidden",k.zIndex||6);v.attr({opacity:+t});!t&&(t=d.dataLabelsGroup)&&(d.visible&&v.show(!0),t[g.animation?"animate":"attr"]({opacity:1},u));h.forEach(function(l){r=L(c(k,l.dlOptions||l.options&&l.options.dataLabels));r.forEach(function(c,k){var p=c.enabled&&(!l.isNull||l.dataLabelOnNull)&&e(l,c),n=l.dataLabels?l.dataLabels[k]:l.dataLabel,h=l.connectors?l.connectors[k]:l.connector,t=m(c.distance,l.labelDistance),r=!n;if(p){var u=l.getLabelConfig();
|
|
557
|
+
var x=m(c[l.formatPrefix+"Format"],c.format);u=b(x)?q(x,u,a):(c[l.formatPrefix+"Formatter"]||c.formatter).call(u,c);x=c.style;var w=c.rotation;a.styledMode||(x.color=m(c.color,x.color,d.color,D.neutralColor100),"contrast"===x.color?(l.contrastColor=O.getContrast(l.color||d.color),x.color=!b(t)&&c.inside||0>t||g.stacking?l.contrastColor:D.neutralColor100):delete l.contrastColor,g.cursor&&(x.cursor=g.cursor));var H={r:c.borderRadius||0,rotation:w,padding:c.padding,zIndex:1};a.styledMode||(H.fill=c.backgroundColor,
|
|
558
|
+
H.stroke=c.borderColor,H["stroke-width"]=c.borderWidth);f(H,function(a,c){"undefined"===typeof a&&delete H[c]})}!n||p&&b(u)?p&&b(u)&&(n?H.text=u:(l.dataLabels=l.dataLabels||[],n=l.dataLabels[k]=w?O.text(u,0,-9999,c.useHTML).addClass("highcharts-data-label"):O.label(u,0,-9999,c.shape,null,null,c.useHTML,null,"data-label"),k||(l.dataLabel=n),n.addClass(" highcharts-data-label-color-"+l.colorIndex+" "+(c.className||"")+(c.useHTML?" highcharts-tracker":""))),n.options=c,n.attr(H),a.styledMode||n.css(x).shadow(c.shadow),
|
|
559
|
+
n.added||n.add(v),c.textPath&&!c.useHTML&&(n.setTextPath(l.getDataLabelPath&&l.getDataLabelPath(n)||l.graphic,c.textPath),l.dataLabelPath&&!c.textPath.enabled&&(l.dataLabelPath=l.dataLabelPath.destroy())),d.alignDataLabel(l,n,c,null,r)):(l.dataLabel=l.dataLabel&&l.dataLabel.destroy(),l.dataLabels&&(1===l.dataLabels.length?delete l.dataLabels:delete l.dataLabels[k]),k||delete l.dataLabel,h&&(l.connector=l.connector.destroy(),l.connectors&&(1===l.connectors.length?delete l.connectors:delete l.connectors[k])))})})}C(this,
|
|
560
|
+
"afterDrawDataLabels")};E.prototype.alignDataLabel=function(b,c,e,a,g){var f=this,d=this.chart,l=this.isCartesian&&d.inverted,k=this.enabledDataSorting,n=m(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),h=m(b.plotY,-9999),v=c.getBBox(),q=e.rotation,u=e.align,x=d.isInsidePlot(n,Math.round(h),{inverted:l,paneCoordinates:!0,series:f}),p="justify"===m(e.overflow,k?"none":"justify"),y=this.visible&&!1!==b.visible&&(b.series.forceDL||k&&!p||x||m(e.inside,!!this.options.stacking)&&a&&d.isInsidePlot(n,l?a.x+1:a.y+
|
|
561
|
+
a.height-1,{inverted:l,paneCoordinates:!0,series:f}));var C=function(a){k&&f.xAxis&&!p&&f.setDataLabelStartPos(b,c,g,x,a)};if(y){var z=d.renderer.fontMetrics(d.styledMode?void 0:e.style.fontSize,c).b;a=r({x:l?this.yAxis.len-h:n,y:Math.round(l?this.xAxis.len-n:h),width:0,height:0},a);r(e,{width:v.width,height:v.height});q?(p=!1,n=d.renderer.rotCorr(z,q),n={x:a.x+(e.x||0)+a.width/2+n.x,y:a.y+(e.y||0)+{top:0,middle:.5,bottom:1}[e.verticalAlign]*a.height},C(n),c[g?"attr":"animate"](n).attr({align:u}),
|
|
562
|
+
C=(q+720)%360,C=180<C&&360>C,"left"===u?n.y-=C?v.height:0:"center"===u?(n.x-=v.width/2,n.y-=v.height/2):"right"===u&&(n.x-=v.width,n.y-=C?0:v.height),c.placed=!0,c.alignAttr=n):(C(a),c.align(e,void 0,a),n=c.alignAttr);p&&0<=a.height?this.justifyDataLabel(c,e,n,v,a,g):m(e.crop,!0)&&(y=d.isInsidePlot(n.x,n.y,{paneCoordinates:!0,series:f})&&d.isInsidePlot(n.x+v.width,n.y+v.height,{paneCoordinates:!0,series:f}));if(e.shape&&!q)c[g?"attr":"animate"]({anchorX:l?d.plotWidth-b.plotY:b.plotX,anchorY:l?d.plotHeight-
|
|
563
|
+
b.plotX:b.plotY})}g&&k&&(c.placed=!1);y||k&&!p||(c.hide(!0),c.placed=!1)};E.prototype.setDataLabelStartPos=function(b,c,e,a,g){var f=this.chart,d=f.inverted,l=this.xAxis,k=l.reversed,m=d?c.height/2:c.width/2;b=(b=b.pointWidth)?b/2:0;l=d?g.x:k?-m-b:l.width-m+b;g=d?k?this.yAxis.height-m+b:-m-b:g.y;c.startXPos=l;c.startYPos=g;a?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);f.hasRendered&&(e&&c.attr({x:c.startXPos,y:c.startYPos}),
|
|
564
|
+
c.placed=!0)};E.prototype.justifyDataLabel=function(b,c,e,a,g,f){var d=this.chart,l=c.align,k=c.verticalAlign,m=b.box?0:b.padding||0,n=c.x;n=void 0===n?0:n;var v=c.y;var h=void 0===v?0:v;v=(e.x||0)+m;if(0>v){"right"===l&&0<=n?(c.align="left",c.inside=!0):n-=v;var q=!0}v=(e.x||0)+a.width-m;v>d.plotWidth&&("left"===l&&0>=n?(c.align="right",c.inside=!0):n+=d.plotWidth-v,q=!0);v=e.y+m;0>v&&("bottom"===k&&0<=h?(c.verticalAlign="top",c.inside=!0):h-=v,q=!0);v=(e.y||0)+a.height-m;v>d.plotHeight&&("top"===
|
|
565
|
+
k&&0>=h?(c.verticalAlign="bottom",c.inside=!0):h+=d.plotHeight-v,q=!0);q&&(c.x=n,c.y=h,b.placed=!f,b.align(c,void 0,g));return q};A.pie&&(A.pie.prototype.dataLabelPositioners={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,c,e,a){return b.getX(e<c.top+2||e>c.bottom-2?a:e,c.half,c)},justify:function(b,c,e){return e[0]+(b.half?-1:1)*(c+b.labelDistance)},alignToPlotEdges:function(b,c,e,a){b=b.getBBox().width;return c?b+a:e-b-a},alignToConnectors:function(b,
|
|
566
|
+
c,e,a){var g=0,f;b.forEach(function(a){f=a.dataLabel.getBBox().width;f>g&&(g=f)});return c?g+a:e-g-a}},A.pie.prototype.drawDataLabels=function(){var e=this,c=e.data,f,a=e.chart,g=e.options.dataLabels||{},d=g.connectorPadding,h,q=a.plotWidth,t=a.plotHeight,r=a.plotLeft,u=Math.round(a.chartWidth/3),v,H=e.center,y=H[2]/2,C=H[1],p,M,z,B,A=[[],[]],I,L,Q,N,V=[0,0,0,0],U=e.dataLabelPositioners,X;e.visible&&(g.enabled||e._hasPointLabels)&&(c.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&
|
|
567
|
+
(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),E.prototype.drawDataLabels.apply(e),c.forEach(function(a){a.dataLabel&&(a.visible?(A[a.half].push(a),a.dataLabel._pos=null,!b(g.style.width)&&!b(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>u&&(a.dataLabel.css({width:Math.round(.7*u)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&
|
|
568
|
+
delete a.dataLabels))}),A.forEach(function(c,l){var k=c.length,n=[],v;if(k){e.sortByAngle(c,l-.5);if(0<e.maxLabelDistance){var h=Math.max(0,C-y-e.maxLabelDistance);var u=Math.min(C+y+e.maxLabelDistance,a.plotHeight);c.forEach(function(c){0<c.labelDistance&&c.dataLabel&&(c.top=Math.max(0,C-y-c.labelDistance),c.bottom=Math.min(C+y+c.labelDistance,a.plotHeight),v=c.dataLabel.getBBox().height||21,c.distributeBox={target:c.labelPosition.natural.y-c.top+v/2,size:v,rank:c.y},n.push(c.distributeBox))});h=
|
|
569
|
+
u+v-h;F.distribute(n,h,h/5)}for(N=0;N<k;N++){f=c[N];z=f.labelPosition;p=f.dataLabel;Q=!1===f.visible?"hidden":"inherit";L=h=z.natural.y;n&&b(f.distributeBox)&&("undefined"===typeof f.distributeBox.pos?Q="hidden":(B=f.distributeBox.size,L=U.radialDistributionY(f)));delete f.positionIndex;if(g.justify)I=U.justify(f,y,H);else switch(g.alignTo){case "connectors":I=U.alignToConnectors(c,l,q,r);break;case "plotEdges":I=U.alignToPlotEdges(p,l,q,r);break;default:I=U.radialDistributionX(e,f,L,h)}p._attr={visibility:Q,
|
|
570
|
+
align:z.alignment};X=f.options.dataLabels||{};p._pos={x:I+m(X.x,g.x)+({left:d,right:-d}[z.alignment]||0),y:L+m(X.y,g.y)-10};z.final.x=I;z.final.y=L;m(g.crop,!0)&&(M=p.getBBox().width,h=null,I-M<d&&1===l?(h=Math.round(M-I+d),V[3]=Math.max(h,V[3])):I+M>q-d&&0===l&&(h=Math.round(I+M-q+d),V[1]=Math.max(h,V[1])),0>L-B/2?V[0]=Math.max(Math.round(-L+B/2),V[0]):L+B/2>t&&(V[2]=Math.max(Math.round(L+B/2-t),V[2])),p.sideOverflow=h)}}}),0===k(V)||this.verifyDataLabelOverflow(V))&&(this.placeDataLabels(),this.points.forEach(function(c){X=
|
|
571
|
+
n(g,c.options.dataLabels);if(h=m(X.connectorWidth,1)){var b;v=c.connector;if((p=c.dataLabel)&&p._pos&&c.visible&&0<c.labelDistance){Q=p._attr.visibility;if(b=!v)c.connector=v=a.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+c.colorIndex+(c.className?" "+c.className:"")).add(e.dataLabelsGroup),a.styledMode||v.attr({"stroke-width":h,stroke:X.connectorColor||c.color||D.neutralColor60});v[b?"attr":"animate"]({d:c.getConnectorPath()});v.attr("visibility",Q)}else v&&(c.connector=
|
|
572
|
+
v.destroy())}}))},A.pie.prototype.placeDataLabels=function(){this.points.forEach(function(b){var c=b.dataLabel,e;c&&b.visible&&((e=c._pos)?(c.sideOverflow&&(c._attr.width=Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),c[c.moved?"animate":"attr"](e),c.moved=!0):c&&c.attr({y:-9999}));delete b.distributeBox},this)},A.pie.prototype.alignDataLabel=d,A.pie.prototype.verifyDataLabelOverflow=
|
|
573
|
+
function(b){var c=this.center,f=this.options,a=f.center,g=f.minSize||80,d=null!==f.size;if(!d){if(null!==a[0])var k=Math.max(c[2]-Math.max(b[1],b[3]),g);else k=Math.max(c[2]-b[1]-b[3],g),c[0]+=(b[3]-b[1])/2;null!==a[1]?k=e(k,g,c[2]-Math.max(b[0],b[2])):(k=e(k,g,c[2]-b[0]-b[2]),c[1]+=(b[0]-b[2])/2);k<c[2]?(c[2]=k,c[3]=Math.min(I(f.innerSize||0,k),k),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):d=!0}return d});A.column&&(A.column.prototype.alignDataLabel=function(b,c,e,a,g){var f=this.chart.inverted,
|
|
574
|
+
d=b.series,l=b.dlBox||b.shapeArgs,k=m(b.below,b.plotY>m(this.translatedThreshold,d.yAxis.len)),h=m(e.inside,!!this.options.stacking);l&&(a=n(l),0>a.y&&(a.height+=a.y,a.y=0),l=a.y+a.height-d.yAxis.len,0<l&&l<a.height&&(a.height-=l),f&&(a={x:d.yAxis.len-a.y-a.height,y:d.xAxis.len-a.x-a.width,width:a.height,height:a.width}),h||(f?(a.x+=k?0:a.width,a.width=0):(a.y+=k?a.height:0,a.height=0)));e.align=m(e.align,!f||h?"center":k?"right":"left");e.verticalAlign=m(e.verticalAlign,f||h?"middle":k?"top":"bottom");
|
|
575
|
+
E.prototype.alignDataLabel.call(this,b,c,e,a,g);e.inside&&b.contrastColor&&c.css({color:b.contrastColor})})});N(h,"Extensions/OverlappingDataLabels.js",[h["Core/Chart/Chart.js"],h["Core/Utilities.js"]],function(d,h){function F(d,e){var b=!1;if(d){var k=d.newOpacity;d.oldOpacity!==k&&(d.alignAttr&&d.placed?(d[k?"removeClass":"addClass"]("highcharts-data-label-hidden"),b=!0,d.alignAttr.opacity=k,d[d.isOld?"animate":"attr"](d.alignAttr,null,function(){e.styledMode||d.css({pointerEvents:k?"auto":"none"})}),
|
|
576
|
+
E(e,"afterHideOverlappingLabel")):d.attr({opacity:k}));d.isOld=!0}return b}var D=h.addEvent,E=h.fireEvent,A=h.isArray,z=h.isNumber,B=h.objectEach,q=h.pick;D(d,"render",function(){var d=this,e=[];(this.labelCollectors||[]).forEach(function(b){e=e.concat(b())});(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&B(b.stacking.stacks,function(b){B(b,function(b){b.label&&"hidden"!==b.label.visibility&&e.push(b.label)})})});(this.series||[]).forEach(function(b){var k=
|
|
577
|
+
b.options.dataLabels;b.visible&&(!1!==k.enabled||b._hasPointLabels)&&(k=function(b){return b.forEach(function(b){b.visible&&(A(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(k){var f=k.options;k.labelrank=q(f.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height);f.allowOverlap?(k.oldOpacity=k.opacity,k.newOpacity=1,F(k,d)):e.push(k)})})},k(b.nodes||[]),k(b.points))});this.hideOverlappingLabels(e)});d.prototype.hideOverlappingLabels=function(d){var e=this,b=d.length,k=e.renderer,
|
|
578
|
+
h,q,n,f=!1;var m=function(b){var e,c=b.box?0:b.padding||0,d=e=0,a;if(b&&(!b.alignAttr||b.placed)){var g=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var f=b.parentGroup;b.width||(e=b.getBBox(),b.width=e.width,b.height=e.height,e=k.fontMetrics(null,b.element).h);var m=b.width-2*c;(a={left:"0",center:"0.5",right:"1"}[b.alignValue])?d=+a*m:z(b.x)&&Math.round(b.x)!==b.translateX&&(d=b.x-b.translateX);return{x:g.x+(f.translateX||0)+c-(d||0),y:g.y+(f.translateY||0)+c-e,width:b.width-2*c,height:b.height-2*
|
|
579
|
+
c}}};for(q=0;q<b;q++)if(h=d[q])h.oldOpacity=h.opacity,h.newOpacity=1,h.absoluteBox=m(h);d.sort(function(b,e){return(e.labelrank||0)-(b.labelrank||0)});for(q=0;q<b;q++){var B=(m=d[q])&&m.absoluteBox;for(h=q+1;h<b;++h){var A=(n=d[h])&&n.absoluteBox;!B||!A||m===n||0===m.newOpacity||0===n.newOpacity||A.x>=B.x+B.width||A.x+A.width<=B.x||A.y>=B.y+B.height||A.y+A.height<=B.y||((m.labelrank<n.labelrank?m:n).newOpacity=0)}}d.forEach(function(b){F(b,e)&&(f=!0)});f&&E(e,"afterHideAllOverlappingLabels")}});N(h,
|
|
580
|
+
"Core/Responsive.js",[h["Core/Utilities.js"]],function(d){var h=d.extend,F=d.find,D=d.isArray,E=d.isObject,A=d.merge,z=d.objectEach,B=d.pick,q=d.splat,k=d.uniqueKey,e=function(){function b(){}b.prototype.currentOptions=function(b){function e(b,k,n,h){var f;z(b,function(b,c){if(!h&&-1<d.collectionsWithUpdate.indexOf(c)&&k[c])for(b=q(b),n[c]=[],f=0;f<Math.max(b.length,k[c].length);f++)k[c][f]&&(void 0===b[f]?n[c][f]=k[c][f]:(n[c][f]={},e(b[f],k[c][f],n[c][f],h+1)));else E(b)?(n[c]=D(b)?[]:{},e(b,k[c]||
|
|
581
|
+
{},n[c],h+1)):n[c]="undefined"===typeof k[c]?null:k[c]})}var d=this,k={};e(b,this.options,k,0);return k};b.prototype.matchResponsiveRule=function(b,e){var d=b.condition;(d.callback||function(){return this.chartWidth<=B(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=B(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=B(d.minWidth,0)&&this.chartHeight>=B(d.minHeight,0)}).call(this)&&e.push(b._id)};b.prototype.setResponsive=function(b,e){var d=this.options.responsive,n=this.currentResponsive,f=[];!e&&
|
|
582
|
+
d&&d.rules&&d.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=k());this.matchResponsiveRule(b,f)},this);e=A.apply(void 0,f.map(function(b){return F((d||{}).rules||[],function(e){return e._id===b})}).map(function(b){return b&&b.chartOptions}));e.isResponsiveOptions=!0;f=f.toString()||void 0;f!==(n&&n.ruleIds)&&(n&&this.update(n.undoOptions,b,!0),f?(n=this.currentOptions(e),n.isResponsiveOptions=!0,this.currentResponsive={ruleIds:f,mergedOptions:e,undoOptions:n},this.update(e,b,!0)):this.currentResponsive=
|
|
583
|
+
void 0)};return b}();d=function(){function b(){}b.compose=function(b){h(b.prototype,e.prototype);return b};return b}();"";"";return d});N(h,"masters/highcharts.src.js",[h["Core/Globals.js"],h["Core/Utilities.js"],h["Core/DefaultOptions.js"],h["Core/Animation/Fx.js"],h["Core/Animation/AnimationUtilities.js"],h["Core/Renderer/HTML/AST.js"],h["Core/FormatUtilities.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Renderer/HTML/HTMLElement.js"],h["Core/Renderer/HTML/HTMLRenderer.js"],
|
|
584
|
+
h["Core/Axis/Axis.js"],h["Core/Axis/PlotLineOrBand.js"],h["Core/Axis/Tick.js"],h["Core/Pointer.js"],h["Core/MSPointer.js"],h["Core/Chart/Chart.js"],h["Core/Series/Series.js"],h["Core/Responsive.js"],h["Core/Color/Color.js"],h["Core/Time.js"]],function(d,h,F,D,E,A,z,B,q,k,e,b,r,C,y,n,f,m,I,L,u){d.animate=E.animate;d.animObject=E.animObject;d.getDeferredAnimation=E.getDeferredAnimation;d.setAnimation=E.setAnimation;d.stop=E.stop;d.timers=D.timers;d.AST=A;d.Axis=b;d.Chart=f;d.chart=f.chart;d.Fx=D;d.PlotLineOrBand=
|
|
585
|
+
r;d.Pointer=n.isRequired()?n:y;d.Series=m;d.SVGElement=B;d.SVGRenderer=q;d.Tick=C;d.Time=u;d.Color=L;d.color=L.parse;e.compose(q);k.compose(B);d.defaultOptions=F.defaultOptions;d.getOptions=F.getOptions;d.time=F.defaultTime;d.setOptions=F.setOptions;d.dateFormat=z.dateFormat;d.format=z.format;d.numberFormat=z.numberFormat;d.addEvent=h.addEvent;d.arrayMax=h.arrayMax;d.arrayMin=h.arrayMin;d.attr=h.attr;d.clearTimeout=h.clearTimeout;d.correctFloat=h.correctFloat;d.createElement=h.createElement;d.css=
|
|
586
|
+
h.css;d.defined=h.defined;d.destroyObjectProperties=h.destroyObjectProperties;d.discardElement=h.discardElement;d.erase=h.erase;d.error=h.error;d.extend=h.extend;d.extendClass=h.extendClass;d.find=h.find;d.fireEvent=h.fireEvent;d.getMagnitude=h.getMagnitude;d.getStyle=h.getStyle;d.inArray=h.inArray;d.isArray=h.isArray;d.isClass=h.isClass;d.isDOMElement=h.isDOMElement;d.isFunction=h.isFunction;d.isNumber=h.isNumber;d.isObject=h.isObject;d.isString=h.isString;d.keys=h.keys;d.merge=h.merge;d.normalizeTickInterval=
|
|
587
|
+
h.normalizeTickInterval;d.objectEach=h.objectEach;d.offset=h.offset;d.pad=h.pad;d.pick=h.pick;d.pInt=h.pInt;d.relativeLength=h.relativeLength;d.removeEvent=h.removeEvent;d.splat=h.splat;d.stableSort=h.stableSort;d.syncTimeout=h.syncTimeout;d.timeUnits=h.timeUnits;d.uniqueKey=h.uniqueKey;d.useSerialIds=h.useSerialIds;d.wrap=h.wrap;I.compose(f);return d});N(h,"Series/XRange/XRangePoint.js",[h["Core/Series/Point.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,F){var D=this&&
|
|
588
|
+
this.__extends||function(){var d=function(h,z){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var k in h)h.hasOwnProperty(k)&&(d[k]=h[k])};return d(h,z)};return function(h,z){function B(){this.constructor=h}d(h,z);h.prototype=null===z?Object.create(z):(B.prototype=z.prototype,new B)}}();F=F.extend;h=function(h){function A(){var d=null!==h&&h.apply(this,arguments)||this;d.options=void 0;d.series=void 0;return d}D(A,h);A.getColorByCategory=function(d,
|
|
589
|
+
h){var q=d.options.colors||d.chart.options.colors;d=h.y%(q?q.length:d.chart.options.chart.colorCount);return{colorIndex:d,color:q&&q[d]}};A.prototype.resolveColor=function(){var d=this.series;if(d.options.colorByPoint&&!this.options.color){var h=A.getColorByCategory(d,this);d.chart.styledMode||(this.color=h.color);this.options.colorIndex||(this.colorIndex=h.colorIndex)}else this.color||(this.color=d.color)};A.prototype.init=function(){d.prototype.init.apply(this,arguments);this.y||(this.y=0);return this};
|
|
590
|
+
A.prototype.setState=function(){d.prototype.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};A.prototype.getLabelConfig=function(){var h=d.prototype.getLabelConfig.call(this),B=this.series.yAxis.categories;h.x2=this.x2;h.yCategory=this.yCategory=B&&B[this.y];return h};A.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return A}(h.seriesTypes.column.prototype.pointClass);F(h.prototype,{tooltipDateKeys:["x","x2"]});return h});
|
|
591
|
+
N(h,"Series/XRange/XRangeComposition.js",[h["Core/Axis/Axis.js"],h["Core/Utilities.js"]],function(d,h){var F=h.addEvent,D=h.pick;F(d,"afterGetSeriesExtremes",function(){var d=this.series,h;if(this.isXAxis){var z=D(this.dataMax,-Number.MAX_VALUE);d.forEach(function(d){d.x2Data&&d.x2Data.forEach(function(d){d>z&&(z=d,h=!0)})});h&&(this.dataMax=z)}})});N(h,"Series/XRange/XRangeSeries.js",[h["Core/Globals.js"],h["Core/Color/Color.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"],h["Series/XRange/XRangePoint.js"]],
|
|
592
|
+
function(d,h,F,D,E){var A=this&&this.__extends||function(){var b=function(e,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var e in c)c.hasOwnProperty(e)&&(b[e]=c[e])};return b(e,d)};return function(e,d){function f(){this.constructor=e}b(e,d);e.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=h.parse,B=F.series,q=F.seriesTypes.column,k=q.prototype,e=D.clamp,b=D.correctFloat,r=D.defined;h=D.extend;var C=D.find,y=
|
|
593
|
+
D.isNumber,n=D.isObject,f=D.merge,m=D.pick;D=function(d){function h(){var b=null!==d&&d.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}A(h,d);h.prototype.init=function(){q.prototype.init.apply(this,arguments);this.options.stacking=void 0};h.prototype.getColumnMetrics=function(){function b(){e.series.forEach(function(c){var a=c.xAxis;c.xAxis=c.yAxis;c.yAxis=a})}var e=this.chart;b();var c=k.getColumnMetrics.call(this);b();return c};h.prototype.cropData=function(b,
|
|
594
|
+
e,c,d){e=B.prototype.cropData.call(this,this.x2Data,e,c,d);e.xData=b.slice(e.start,e.end);return e};h.prototype.findPointIndex=function(b){var e=this.cropped,c=this.cropStart,d=this.points,a=b.id;if(a)var g=(g=C(d,function(c){return c.id===a}))?g.index:void 0;"undefined"===typeof g&&(g=(g=C(d,function(a){return a.x===b.x&&a.x2===b.x2&&!a.touched}))?g.index:void 0);e&&y(g)&&y(c)&&g>=c&&(g-=c);return g};h.prototype.translatePoint=function(b){var d=this.xAxis,c=this.yAxis,l=this.columnMetrics,a=this.options,
|
|
595
|
+
g=a.minPointLength||0,k=(b.shapeArgs&&b.shapeArgs.width||0)/2,h=this.pointXOffset=l.offset,q=b.plotX,t=m(b.x2,b.x+(b.len||0)),u=d.translate(t,0,0,0,1);t=Math.abs(u-q);var O=this.chart.inverted,v=m(a.borderWidth,1)%2/2,H=l.offset,P=Math.round(l.width);g&&(g-=t,0>g&&(g=0),q-=g/2,u+=g/2);q=Math.max(q,-10);u=e(u,-10,d.len+10);r(b.options.pointWidth)&&(H-=(Math.ceil(b.options.pointWidth)-P)/2,P=Math.ceil(b.options.pointWidth));a.pointPlacement&&y(b.plotY)&&c.categories&&(b.plotY=c.translate(b.y,0,1,0,
|
|
596
|
+
1,a.pointPlacement));a={x:Math.floor(Math.min(q,u))+v,y:Math.floor(b.plotY+H)+v,width:Math.round(Math.abs(u-q)),height:P,r:this.options.borderRadius};b.shapeArgs=a;O?b.tooltipPos[1]+=h+k:b.tooltipPos[0]-=k+h-a.width/2;k=a.x;h=k+a.width;0>k||h>d.len?(k=e(k,0,d.len),h=e(h,0,d.len),g=h-k,b.dlBox=f(a,{x:k,width:h-k,centerX:g?g/2:null})):b.dlBox=null;k=b.tooltipPos;h=O?1:0;g=O?0:1;l=this.columnMetrics?this.columnMetrics.offset:-l.width/2;k[h]=O?k[h]+a.width/2:k[h]+(d.reversed?-1:0)*a.width;k[g]=e(k[g]+
|
|
597
|
+
(O?-1:1)*l,0,c.len-1);if(c=b.partialFill)n(c)&&(c=c.amount),y(c)||(c=0),b.partShapeArgs=f(a,{r:this.options.borderRadius}),q=Math.max(Math.round(t*c+b.plotX-q),0),b.clipRectArgs={x:d.reversed?a.x+t-q:a.x,y:a.y,width:q,height:a.height}};h.prototype.translate=function(){k.translate.apply(this,arguments);this.points.forEach(function(b){this.translatePoint(b)},this)};h.prototype.drawPoint=function(b,e){var c=this.options,d=this.chart.renderer,a=b.graphic,g=b.shapeType,k=b.shapeArgs,h=b.partShapeArgs,
|
|
598
|
+
q=b.clipRectArgs,t=b.partialFill,r=c.stacking&&!c.borderRadius,u=b.state,v=c.states[u||"normal"]||{},H="undefined"===typeof u?"attr":e;u=this.pointAttribs(b,u);v=m(this.chart.options.chart.animation,v.animation);if(b.isNull||!1===b.visible)a&&(b.graphic=a.destroy());else{if(a)a.rect[e](k);else b.graphic=a=d.g("point").addClass(b.getClassName()).add(b.group||this.group),a.rect=d[g](f(k)).addClass(b.getClassName()).addClass("highcharts-partfill-original").add(a);h&&(a.partRect?(a.partRect[e](f(h)),
|
|
599
|
+
a.partialClipRect[e](f(q))):(a.partialClipRect=d.clipRect(q.x,q.y,q.width,q.height),a.partRect=d[g](h).addClass("highcharts-partfill-overlay").add(a).clip(a.partialClipRect)));this.chart.styledMode||(a.rect[e](u,v).shadow(c.shadow,null,r),h&&(n(t)||(t={}),n(c.partialFill)&&(t=f(c.partialFill,t)),b=t.fill||z(u.fill).brighten(-.3).get()||z(b.color||this.color).brighten(-.3).get(),u.fill=b,a.partRect[H](u,v).shadow(c.shadow,null,r)))}};h.prototype.drawPoints=function(){var b=this,e=b.getAnimationVerb();
|
|
600
|
+
b.points.forEach(function(c){b.drawPoint(c,e)})};h.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};h.prototype.isPointInside=function(b){var e=b.shapeArgs,c=b.plotX,f=b.plotY;return e?"undefined"!==typeof c&&"undefined"!==typeof f&&0<=f&&f<=this.yAxis.len&&0<=(e.x||0)+(e.width||0)&&c<=this.xAxis.len:d.prototype.isPointInside.apply(this,arguments)};h.defaultOptions=f(q.defaultOptions,{colorByPoint:!0,dataLabels:{formatter:function(){var e=
|
|
601
|
+
this.point.partialFill;n(e)&&(e=e.amount);if(y(e)&&0<e)return b(100*e)+"%"},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0});return h}(q);h(D.prototype,{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:B.prototype.animate,cropShoulder:1,getExtremesFromAll:!0,autoIncrement:d.noop,
|
|
602
|
+
buildKDTree:d.noop,pointClass:E});F.registerSeriesType("xrange",D);"";return D});N(h,"Series/Gantt/GanttPoint.js",[h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h){var F=this&&this.__extends||function(){var d=function(h,z){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var k in h)h.hasOwnProperty(k)&&(d[k]=h[k])};return d(h,z)};return function(h,z){function B(){this.constructor=h}d(h,z);h.prototype=null===z?Object.create(z):
|
|
603
|
+
(B.prototype=z.prototype,new B)}}(),D=h.pick;return function(d){function h(){var h=null!==d&&d.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}F(h,d);h.setGanttPointAliases=function(d){function h(h,k){"undefined"!==typeof k&&(d[h]=k)}h("x",D(d.start,d.x));h("x2",D(d.end,d.x2));h("partialFill",D(d.completed,d.partialFill))};h.prototype.applyOptions=function(z,B){z=d.prototype.applyOptions.call(this,z,B);h.setGanttPointAliases(z);return z};h.prototype.isValid=function(){return("number"===
|
|
604
|
+
typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return h}(d.seriesTypes.xrange.prototype.pointClass)});N(h,"Core/Axis/BrokenAxis.js",[h["Core/Axis/Axis.js"],h["Core/Series/Series.js"],h["Extensions/Stacking.js"],h["Core/Utilities.js"]],function(d,h,F,D){var E=D.addEvent,A=D.find,z=D.fireEvent,B=D.isArray,q=D.isNumber,k=D.pick,e;(function(b){function e(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,
|
|
605
|
+
!1)}function C(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function y(){var b=this.brokenAxis;if(b&&b.hasBreaks){for(var c=this.tickPositions,e=this.tickPositions.info,a=[],d=0;d<c.length;d++)b.isInAnyBreak(c[d])||a.push(c[d]);this.tickPositions=a;this.tickPositions.info=e}}function n(){this.brokenAxis||(this.brokenAxis=new u(this))}function f(){var b=this.options.connectNulls,c=this.points,e=this.xAxis,a=this.yAxis;if(this.isDirty)for(var d=c.length;d--;){var f=c[d],k=
|
|
606
|
+
!(null===f.y&&!1===b)&&(e&&e.brokenAxis&&e.brokenAxis.isInAnyBreak(f.x,!0)||a&&a.brokenAxis&&a.brokenAxis.isInAnyBreak(f.y,!0));f.visible=k?!1:!1!==f.options.visible}}function m(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,k(this.pointArrayMap,["y"]))}function I(b,c){var e=this,a=e.points,d,f,h,m;if(b&&b.brokenAxis&&b.brokenAxis.hasBreaks){var n=b.brokenAxis;c.forEach(function(c){d=n&&n.breakArray||[];f=b.isXAxis?b.min:k(e.options.threshold,b.min);a.forEach(function(a){m=k(a["stack"+
|
|
607
|
+
c.toUpperCase()],a[c]);d.forEach(function(c){if(q(f)&&q(m)){h=!1;if(f<c.from&&m>c.to||f>c.from&&m<c.from)h="pointBreak";else if(f<c.from&&m>c.from&&m<c.to||f>c.from&&m>c.to&&m<c.from)h="pointInBreak";h&&z(b,h,{point:a,brk:c})}})})})}}function D(){var b=this.currentDataGrouping,c=b&&b.gapSize;b=this.points.slice();var e=this.yAxis,a=this.options.gapSize,d=b.length-1,f;if(a&&0<d)for("value"!==this.options.gapUnit&&(a*=this.basePointRange),c&&c>a&&c>=this.basePointRange&&(a=c),f=void 0;d--;)f&&!1!==
|
|
608
|
+
f.visible||(f=b[d+1]),c=b[d],!1!==f.visible&&!1!==c.visible&&(f.x-c.x>a&&(f=(c.x+f.x)/2,b.splice(d+1,0,{isNull:!0,x:f}),e.stacking&&this.options.stacking&&(f=e.stacking.stacks[this.stackKey][f]=new F(e,e.options.stackLabels,!1,f,this.stack),f.total=0)),f=c);return this.getGraphPath(b)}b.compose=function(b,c){if(-1===b.keepProps.indexOf("brokenAxis")){b.keepProps.push("brokenAxis");var d=h.prototype;d.drawBreaks=I;d.gappedPath=D;E(b,"init",n);E(b,"afterInit",e);E(b,"afterSetTickPositions",y);E(b,"afterSetOptions",
|
|
609
|
+
C);E(c,"afterGeneratePoints",f);E(c,"afterRender",m)}return b};var u=function(){function b(c){this.hasBreaks=!1;this.axis=c}b.isInBreak=function(c,b){var a=c.repeat||Infinity,e=c.from,d=c.to-c.from;b=b>=e?(b-e)%a:a-(e-b)%a;return c.inclusive?b<=d:b<d&&0!==b};b.lin2Val=function(c){var e=this.brokenAxis;e=e&&e.breakArray;if(!e||!q(c))return c;var a;for(a=0;a<e.length;a++){var d=e[a];if(d.from>=c)break;else d.to<c?c+=d.len:b.isInBreak(d,c)&&(c+=d.len)}return c};b.val2Lin=function(c){var e=this.brokenAxis;
|
|
610
|
+
e=e&&e.breakArray;if(!e||!q(c))return c;var a=c,d;for(d=0;d<e.length;d++){var f=e[d];if(f.to<=c)a-=f.len;else if(f.from>=c)break;else if(b.isInBreak(f,c)){a-=c-f.from;break}}return a};b.prototype.findBreakAt=function(c,b){return A(b,function(a){return a.from<c&&c<a.to})};b.prototype.isInAnyBreak=function(c,e){var a=this.axis,d=a.options.breaks||[],f=d.length,l;if(f&&q(c)){for(;f--;)if(b.isInBreak(d[f],c)){var h=!0;l||(l=k(d[f].showPoints,!a.isXAxis))}var m=h&&e?h&&!l:h}return m};b.prototype.setBreaks=
|
|
611
|
+
function(c,e){var a=this,f=a.axis,l=B(c)&&!!c.length;f.isDirty=a.hasBreaks!==l;a.hasBreaks=l;f.options.breaks=f.userOptions.breaks=c;f.forceRedraw=!0;f.series.forEach(function(a){a.isDirty=!0});l||f.val2lin!==b.val2Lin||(delete f.val2lin,delete f.lin2val);l&&(f.userOptions.ordinal=!1,f.lin2val=b.lin2Val,f.val2lin=b.val2Lin,f.setExtremes=function(c,b,e,f,g){if(a.hasBreaks){for(var l=this.options.breaks||[],k;k=a.findBreakAt(c,l);)c=k.to;for(;k=a.findBreakAt(b,l);)b=k.from;b<c&&(b=c)}d.prototype.setExtremes.call(this,
|
|
612
|
+
c,b,e,f,g)},f.setAxisTranslation=function(){d.prototype.setAxisTranslation.call(this);a.unitLength=void 0;if(a.hasBreaks){var c=f.options.breaks||[],e=[],g=[],l=k(f.pointRangePadding,0),h=0,m,n=f.userMin||f.min,r=f.userMax||f.max,u;c.forEach(function(a){m=a.repeat||Infinity;q(n)&&q(r)&&(b.isInBreak(a,n)&&(n+=a.to%m-n%m),b.isInBreak(a,r)&&(r-=r%m-a.from%m))});c.forEach(function(a){w=a.from;m=a.repeat||Infinity;if(q(n)&&q(r)){for(;w-m>n;)w-=m;for(;w<n;)w+=m;for(u=w;u<r;u+=m)e.push({value:u,move:"in"}),
|
|
613
|
+
e.push({value:u+a.to-a.from,move:"out",size:a.breakSize})}});e.sort(function(a,c){return a.value===c.value?("in"===a.move?0:1)-("in"===c.move?0:1):a.value-c.value});var p=0;var w=n;e.forEach(function(a){p+="in"===a.move?1:-1;1===p&&"in"===a.move&&(w=a.value);0===p&&q(w)&&(g.push({from:w,to:a.value,len:a.value-w-(a.size||0)}),h+=a.value-w-(a.size||0))});a.breakArray=g;q(n)&&q(r)&&q(f.min)&&(a.unitLength=r-n-h+l,z(f,"afterBreaks"),f.staticScale?f.transA=f.staticScale:a.unitLength&&(f.transA*=(r-f.min+
|
|
614
|
+
l)/a.unitLength),l&&(f.minPixelPadding=f.transA*(f.minPointOffset||0)),f.min=n,f.max=r)}});k(e,!0)&&f.chart.redraw()};return b}();b.Additions=u})(e||(e={}));return e});N(h,"Core/Axis/GridAxis.js",[h["Core/Axis/Axis.js"],h["Core/Axis/AxisDefaults.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h,F,D){var E=F.dateFormats,A=D.addEvent,z=D.defined,B=D.erase,q=D.find,k=D.isArray,e=D.isNumber,b=D.merge,r=D.pick,C=D.timeUnits,y=D.wrap,n;(function(f){function m(a,c){var b={width:0,height:0};
|
|
615
|
+
c.forEach(function(c){c=a[c];if(D.isObject(c,!0)){var d=D.isObject(c.label,!0)?c.label:{};c=d.getBBox?d.getBBox().height:0;d.textStr&&!e(d.textPxLength)&&(d.textPxLength=d.getBBox().width);var f=e(d.textPxLength)?Math.round(d.textPxLength):0;d.textStr&&(f=Math.round(d.getBBox().width));b.height=Math.max(c,b.height);b.width=Math.max(f,b.width)}});"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&(b.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||
|
|
616
|
+
0)-1));return b}function n(){var a=this.grid;(a&&a.columns||[]).forEach(function(a){a.getOffset()})}function E(a){if(!0===(this.options.grid||{}).enabled){var c=this.axisTitle,b=this.height,e=this.horiz,d=this.left,g=this.offset,l=this.opposite,k=this.options,h=this.top,m=this.width,n=this.tickSize(),v=c&&c.getBBox().width,t=k.title.x,q=k.title.y,u=r(k.title.margin,e?5:10);c=this.chart.renderer.fontMetrics(k.title.style.fontSize,c).f;n=(e?h+b:d)+(e?1:-1)*(l?-1:1)*(n?n[0]/2:0)+(this.side===f.Side.bottom?
|
|
617
|
+
c:0);a.titlePosition.x=e?d-(v||0)/2-u+t:n+(l?m:0)+g+t;a.titlePosition.y=e?n-(l?b:0)+(l?c:-c)/2+g+q:h-u+q}}function u(){var a=this.chart,c=this.options.grid;c=void 0===c?{}:c;var e=this.userOptions;if(c.enabled){var f=this.options;f.labels.align=r(f.labels.align,"center");this.categories||(f.showLastLabel=!1);this.labelRotation=0;f.labels.rotation=0}if(c.columns){f=this.grid.columns=[];for(var g=this.grid.columnIndex=0;++g<c.columns.length;){var l=b(e,c.columns[c.columns.length-g-1],{linkedTo:0,type:"category",
|
|
618
|
+
scrollbar:{enabled:!1}});delete l.grid.columns;l=new d(this.chart,l);l.grid.isColumn=!0;l.grid.columnIndex=g;B(a.axes,l);B(a[this.coll],l);f.push(l)}}}function x(){var a=this.grid,c=this.options;if(!0===(c.grid||{}).enabled){var b=this.min||0,e=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var d=c.lineWidth;if(d){d=this.getLinePath(d);var g=d[0],l=d[1],k=((this.tickSize("tick")||
|
|
619
|
+
[1])[0]-1)*(this.side===f.Side.top||this.side===f.Side.left?-1:1);"M"===g[0]&&"L"===l[0]&&(this.horiz?(g[2]+=k,l[2]+=k):(g[1]+=k,l[1]+=k));!this.horiz&&this.chart.marginRight&&(g=[g,["L",this.left,g[2]||0]],k=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(e+this.tickmarkOffset)],l=[["M",l[1]||0,this.toPixels(e+this.tickmarkOffset)],k],this.grid.upperBorder||0===b%1||(this.grid.upperBorder=this.grid.renderBorder(g)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:c.lineColor,
|
|
620
|
+
"stroke-width":c.lineWidth}),this.grid.upperBorder.animate({d:g})),this.grid.lowerBorder||0===e%1||(this.grid.lowerBorder=this.grid.renderBorder(l)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:c.lineColor,"stroke-width":c.lineWidth}),this.grid.lowerBorder.animate({d:l})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:c.lineColor,"stroke-width":c.lineWidth}),this.grid.axisLineExtra.animate({d:d})):this.grid.axisLineExtra=this.grid.renderBorder(d);this.axisLine[this.showAxis?
|
|
621
|
+
"show":"hide"](!0)}}(a&&a.columns||[]).forEach(function(a){a.render()});!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)&&(a=this.tickmarkOffset,c=this.tickPositions[this.tickPositions.length-1],d=this.tickPositions[0],(l=this.ticks[d].label)&&(b-d>a?l.hide():l.show()),(l=this.ticks[c].label)&&(c-e>a?l.hide():l.show()),(b=this.ticks[c].mark)&&(c-e<a&&0<c-e&&this.ticks[c].isLast?b.hide():this.ticks[c-1]&&b.show()))}}function c(){var a=this.tickPositions&&
|
|
622
|
+
this.tickPositions.info,c=this.options,b=this.userOptions.labels||{};(c.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(a){a.options.pointRange=0}),a&&c.dateTimeLabelFormats&&c.labels&&!z(b.align)&&(!1===c.dateTimeLabelFormats[a.unitName].range||1<a.count)&&(c.labels.align="left",z(b.x)||(c.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function l(a){var c=this.options;a=a.userOptions;var d=c&&D.isObject(c.grid,!0)?
|
|
623
|
+
c.grid:{};if(!0===d.enabled){var f=b(!0,{className:"highcharts-grid-axis "+(a.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},
|
|
624
|
+
a);"xAxis"===this.coll&&(z(a.linkedTo)&&!z(a.tickPixelInterval)&&(f.tickPixelInterval=350),z(a.tickPixelInterval)||!z(a.linkedTo)||z(a.tickPositioner)||z(a.tickInterval)||(f.tickPositioner=function(a,c){var b=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(b){for(var e=f.units||[],d=void 0,g=void 0,l=void 0,k=0;k<e.length;k++)if(e[k][0]===b.unitName){d=k;break}e[d+1]?(l=e[d+1][0],g=(e[d+1][1]||[1])[0]):"year"===b.unitName&&(l="year",g=10*b.count);b=C[l];
|
|
625
|
+
this.tickInterval=b*g;return this.getTimeTicks({unitRange:b,count:g,unitName:l},a,c,this.options.startOfWeek)}}));b(!0,this.options,f);this.horiz&&(c.minPadding=r(a.minPadding,0),c.maxPadding=r(a.maxPadding,0));e(c.grid.borderWidth)&&(c.tickWidth=c.lineWidth=d.borderWidth)}}function a(a){a=(a=a.userOptions)&&a.grid||{};var c=a.columns;a.enabled&&c&&b(!0,this.options,c[c.length-1])}function g(){(this.grid.columns||[]).forEach(function(a){a.setScale()})}function w(a){var c=h.defaultLeftAxisOptions,
|
|
626
|
+
b=this.horiz,e=this.maxLabelDimensions,d=this.options.grid;d=void 0===d?{}:d;d.enabled&&e&&(c=2*Math.abs(c.labels.x),b=b?d.cellHeight||c+e.height:c+e.width,k(a.tickSize)?a.tickSize[0]=b:a.tickSize=[b,0])}function J(){this.axes.forEach(function(a){(a.grid&&a.grid.columns||[]).forEach(function(a){a.setAxisSize();a.setAxisTranslation()})})}function K(a){var c=this.grid;(c.columns||[]).forEach(function(c){c.destroy(a.keepEvents)});c.columns=void 0}function t(a){a=a.userOptions||{};var c=a.grid||{};c.enabled&&
|
|
627
|
+
z(c.borderColor)&&(a.tickColor=a.lineColor=c.borderColor);this.grid||(this.grid=new P(this))}function G(a){var c=this.label,b=this.axis,d=b.reversed,g=b.chart,l=b.options.grid||{},k=b.options.labels,h=k.align,m=f.Side[b.side],n=a.tickmarkOffset,v=b.tickPositions,t=this.pos-n;v=e(v[a.index+1])?v[a.index+1]-n:(b.max||0)+n;var q=b.tickSize("tick");n=q?q[0]:0;q=q?q[1]/2:0;if(!0===l.enabled){if("top"===m){l=b.top+b.offset;var r=l-n}else"bottom"===m?(r=g.chartHeight-b.bottom+b.offset,l=r+n):(l=b.top+b.len-
|
|
628
|
+
(b.translate(d?v:t)||0),r=b.top+b.len-(b.translate(d?t:v)||0));"right"===m?(m=g.chartWidth-b.right+b.offset,d=m+n):"left"===m?(d=b.left+b.offset,m=d-n):(m=Math.round(b.left+(b.translate(d?v:t)||0))-q,d=Math.min(Math.round(b.left+(b.translate(d?t:v)||0))-q,b.left+b.len));this.slotWidth=d-m;a.pos.x="left"===h?m:"right"===h?d:m+(d-m)/2;a.pos.y=r+(l-r)/2;g=g.renderer.fontMetrics(k.style.fontSize,c&&c.element);c=c?c.getBBox().height:0;k.useHTML?a.pos.y+=g.b+-(c/2):(c=Math.round(c/g.h),a.pos.y+=(g.b-(g.h-
|
|
629
|
+
g.f))/2+-((c-1)*g.h/2));a.pos.x+=b.horiz&&k.x||0}}function O(a){var c=a.axis,e=a.value;if(c.options.grid&&c.options.grid.enabled){var d=c.tickPositions,f=(c.linkedParent||c).series[0],g=e===d[0];d=e===d[d.length-1];var l=f&&q(f.options.data,function(a){return a[c.isXAxis?"x":"y"]===e}),k=void 0;l&&f.is("gantt")&&(k=b(l),F.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(k));a.isFirst=g;a.isLast=d;a.point=k}}function v(){var a=this.options,c=this.categories,b=this.tickPositions,e=b[0],d=
|
|
630
|
+
b[b.length-1],f=this.linkedParent&&this.linkedParent.min||this.min,g=this.linkedParent&&this.linkedParent.max||this.max,l=this.tickInterval;!0!==(a.grid||{}).enabled||c||!this.horiz&&!this.isLinked||(e<f&&e+l>f&&!a.startOnTick&&(b[0]=f),d>g&&d-l<g&&!a.endOnTick&&(b[b.length-1]=g))}function H(a){var c=this.options.grid;return!0===(void 0===c?{}:c).enabled&&this.categories?this.tickInterval:a.apply(this,Array.prototype.slice.call(arguments,1))}(function(a){a[a.top=0]="top";a[a.right=1]="right";a[a.bottom=
|
|
631
|
+
2]="bottom";a[a.left=3]="left"})(f.Side||(f.Side={}));f.compose=function(b,e,d){-1===b.keepProps.indexOf("grid")&&(b.keepProps.push("grid"),b.prototype.getMaxLabelDimensions=m,y(b.prototype,"unsquish",H),A(b,"init",t),A(b,"afterGetOffset",n),A(b,"afterGetTitlePosition",E),A(b,"afterInit",u),A(b,"afterRender",x),A(b,"afterSetAxisTranslation",c),A(b,"afterSetOptions",l),A(b,"afterSetOptions",a),A(b,"afterSetScale",g),A(b,"afterTickSize",w),A(b,"trimTicks",v),A(b,"destroy",K));A(e,"afterSetChartSize",
|
|
632
|
+
J);A(d,"afterGetLabelPosition",G);A(d,"labelFormat",O);return b};var P=function(){function a(a){this.axis=a}a.prototype.isOuterAxis=function(){var a=this.axis,c=a.grid.columnIndex,b=a.linkedParent&&a.linkedParent.grid.columns||a.grid.columns,d=c?a.linkedParent:a,f=-1,g=0;a.chart[a.coll].forEach(function(c,b){c.side!==a.side||c.options.isInternal||(g=b,c===d&&(f=b))});return g===f&&(e(c)?b.length===c:!0)};a.prototype.renderBorder=function(a){var c=this.axis,b=c.chart.renderer,e=c.options;a=b.path(a).addClass("highcharts-axis-line").add(c.axisBorder);
|
|
633
|
+
b.styledMode||a.attr({stroke:e.lineColor,"stroke-width":e.lineWidth,zIndex:7});return a};return a}();f.Additions=P})(n||(n={}));E.E=function(b){return this.dateFormat("%a",b,!0).charAt(0)};E.W=function(b){b=new this.Date(b);var e=(this.get("Day",b)+6)%7,d=new this.Date(b.valueOf());this.set("Date",d,this.get("Date",b)-e+3);e=new this.Date(this.get("FullYear",d),0,1);4!==this.get("Day",e)&&(this.set("Month",b,0),this.set("Date",b,1+(11-this.get("Day",e))%7));return(1+Math.floor((d.valueOf()-e.valueOf())/
|
|
634
|
+
6048E5)).toString()};"";return n});N(h,"Gantt/Tree.js",[h["Core/Utilities.js"]],function(d){var h=d.extend,F=d.isNumber,D=d.pick,E=function(d,h){var q=d.reduce(function(d,e){var b=D(e.parent,"");"undefined"===typeof d[b]&&(d[b]=[]);d[b].push(e);return d},{});Object.keys(q).forEach(function(d,e){var b=q[d];""!==d&&-1===h.indexOf(d)&&(b.forEach(function(b){e[""].push(b)}),delete e[d])});return q},A=function(d,B,q,k,e,b){var r=0,C=0,y=b&&b.after,n=b&&b.before;B={data:k,depth:q-1,id:d,level:q,parent:B};
|
|
635
|
+
var f,m;"function"===typeof n&&n(B,b);n=(e[d]||[]).map(function(k){var h=A(k.id,d,q+1,k,e,b),n=k.start;k=!0===k.milestone?n:k.end;f=!F(f)||n<f?n:f;m=!F(m)||k>m?k:m;r=r+1+h.descendants;C=Math.max(h.height+1,C);return h});k&&(k.start=D(k.start,f),k.end=D(k.end,m));h(B,{children:n,descendants:r,height:C});"function"===typeof y&&y(B,b);return B};return{getListOfParents:E,getNode:A,getTree:function(d,h){var q=d.map(function(d){return d.id});d=E(d,q);return A("",null,1,null,d,h)}}});N(h,"Core/Axis/TreeGridTick.js",
|
|
636
|
+
[h["Core/Color/Palette.js"],h["Core/Utilities.js"]],function(d,h){var F=h.addEvent,D=h.isObject,E=h.isNumber,A=h.pick,z=h.wrap,B;(function(h){function k(){this.treeGrid||(this.treeGrid=new y(this))}function e(b,e){b=b.treeGrid;var f=!b.labelIcon,k=e.renderer,h=e.xy,n=e.options,q=n.width||0,c=n.height||0,l=h.x-q/2-(n.padding||0);h=h.y-c/2;var a=e.collapsed?90:180,g=e.show&&E(h),r=b.labelIcon;r||(b.labelIcon=r=k.path(k.symbols[n.type](n.x||0,n.y||0,q,c)).addClass("highcharts-label-icon").add(e.group));
|
|
637
|
+
r.attr({y:g?0:-9999});k.styledMode||r.attr({cursor:"pointer",fill:A(e.color,d.neutralColor60),"stroke-width":1,stroke:n.lineColor,strokeWidth:n.lineWidth||0});r[f?"attr":"animate"]({translateX:l,translateY:h,rotation:a})}function b(b,e,d,k,h,q,r,c,l){var a=A(this.options&&this.options.labels,q);q=this.pos;var f=this.axis,m="treegrid"===f.options.type;b=b.apply(this,[e,d,k,h,a,r,c,l]);m&&(e=a&&D(a.symbol,!0)?a.symbol:{},a=a&&E(a.indentation)?a.indentation:0,q=(q=(f=f.treeGrid.mapOfPosToGridNode)&&
|
|
638
|
+
f[q])&&q.depth||1,b.x+=(e.width||0)+2*(e.padding||0)+(q-1)*a);return b}function q(b){var d=this,k=d.pos,h=d.axis,n=d.label,q=h.treeGrid.mapOfPosToGridNode,r=h.options,c=A(d.options&&d.options.labels,r&&r.labels),l=c&&D(c.symbol,!0)?c.symbol:{},a=(q=q&&q[k])&&q.depth;r="treegrid"===r.type;var g=-1<h.tickPositions.indexOf(k);k=h.chart.styledMode;r&&q&&n&&n.element&&n.addClass("highcharts-treegrid-node-level-"+a);b.apply(d,Array.prototype.slice.call(arguments,1));r&&n&&n.element&&q&&q.descendants&&0<
|
|
639
|
+
q.descendants&&(h=h.treeGrid.isCollapsed(q),e(d,{color:!k&&n.styles&&n.styles.color||"",collapsed:h,group:n.parentGroup,options:l,renderer:n.renderer,show:g,xy:n.xy}),l="highcharts-treegrid-node-"+(h?"expanded":"collapsed"),n.addClass("highcharts-treegrid-node-"+(h?"collapsed":"expanded")).removeClass(l),k||n.css({cursor:"pointer"}),[n,d.treeGrid.labelIcon].forEach(function(a){a&&!a.attachedTreeGridEvents&&(F(a.element,"mouseover",function(){n.addClass("highcharts-treegrid-node-active");n.renderer.styledMode||
|
|
640
|
+
n.css({textDecoration:"underline"})}),F(a.element,"mouseout",function(){var a=D(c.style)?c.style:{};n.removeClass("highcharts-treegrid-node-active");n.renderer.styledMode||n.css({textDecoration:a.textDecoration})}),F(a.element,"click",function(){d.treeGrid.toggleCollapse()}),a.attachedTreeGridEvents=!0)}))}var C=!1;h.compose=function(e){C||(F(e,"init",k),z(e.prototype,"getLabelPosition",b),z(e.prototype,"renderLabel",q),e.prototype.collapse=function(b){this.treeGrid.collapse(b)},e.prototype.expand=
|
|
641
|
+
function(b){this.treeGrid.expand(b)},e.prototype.toggleCollapse=function(b){this.treeGrid.toggleCollapse(b)},C=!0)};var y=function(){function b(b){this.tick=b}b.prototype.collapse=function(b){var e=this.tick,d=e.axis,f=d.brokenAxis;f&&d.treeGrid.mapOfPosToGridNode&&(e=d.treeGrid.collapse(d.treeGrid.mapOfPosToGridNode[e.pos]),f.setBreaks(e,A(b,!0)))};b.prototype.expand=function(b){var e=this.tick,d=e.axis,f=d.brokenAxis;f&&d.treeGrid.mapOfPosToGridNode&&(e=d.treeGrid.expand(d.treeGrid.mapOfPosToGridNode[e.pos]),
|
|
642
|
+
f.setBreaks(e,A(b,!0)))};b.prototype.toggleCollapse=function(b){var e=this.tick,d=e.axis,f=d.brokenAxis;f&&d.treeGrid.mapOfPosToGridNode&&(e=d.treeGrid.toggleCollapse(d.treeGrid.mapOfPosToGridNode[e.pos]),f.setBreaks(e,A(b,!0)))};return b}();h.Additions=y})(B||(B={}));return B});N(h,"Mixins/TreeSeries.js",[h["Core/Color/Color.js"],h["Core/Utilities.js"]],function(d,h){var F=h.extend,D=h.isArray,E=h.isNumber,A=h.isObject,z=h.merge,B=h.pick;return{getColor:function(h,k){var e=k.index,b=k.mapOptionsToLevel,
|
|
643
|
+
q=k.parentColor,C=k.parentColorIndex,y=k.series,n=k.colors,f=k.siblings,m=y.points,A=y.chart.options.chart,z;if(h){m=m[h.i];h=b[h.level]||{};if(b=m&&h.colorByPoint){var u=m.index%(n?n.length:A.colorCount);var x=n&&n[u]}if(!y.chart.styledMode){n=m&&m.options.color;A=h&&h.color;if(z=q)z=(z=h&&h.colorVariation)&&"brightness"===z.key?d.parse(q).brighten(e/f*z.to).get():q;z=B(n,A,x,z,y.color)}var c=B(m&&m.options.colorIndex,h&&h.colorIndex,u,C,k.colorIndex)}return{color:z,colorIndex:c}},getLevelOptions:function(d){var k=
|
|
644
|
+
null;if(A(d)){k={};var e=E(d.from)?d.from:1;var b=d.levels;var h={};var q=A(d.defaults)?d.defaults:{};D(b)&&(h=b.reduce(function(b,d){if(A(d)&&E(d.level)){var f=z({},d);var k="boolean"===typeof f.levelIsConstant?f.levelIsConstant:q.levelIsConstant;delete f.levelIsConstant;delete f.level;d=d.level+(k?0:e-1);A(b[d])?F(b[d],f):b[d]=f}return b},{}));b=E(d.to)?d.to:1;for(d=0;d<=b;d++)k[d]=z({},q,A(h[d])?h[d]:{})}return k},setTreeValues:function b(d,e){var k=e.before,h=e.idRoot,y=e.mapIdToNode[h],n=e.points[d.i],
|
|
645
|
+
f=n&&n.options||{},m=0,A=[];d.levelDynamic=d.level-(("boolean"===typeof e.levelIsConstant?e.levelIsConstant:1)?0:y.level);d.name=B(n&&n.name,"");d.visible=h===d.id||("boolean"===typeof e.visible?e.visible:!1);"function"===typeof k&&(d=k(d,e));d.children.forEach(function(f,k){var h=F({},e);F(h,{index:k,siblings:d.children.length,visible:d.visible});f=b(f,h);A.push(f);f.visible&&(m+=f.val)});d.visible=0<m||d.visible;k=B(f.value,m);d.children=A;d.childrenTotal=m;d.isLeaf=d.visible&&!m;d.val=k;return d},
|
|
646
|
+
updateRootId:function(d){if(A(d)){var e=A(d.options)?d.options:{};e=B(d.rootNode,e.rootId,"");A(d.userOptions)&&(d.userOptions.rootId=e);d.rootNode=e}return e}}});N(h,"Core/Axis/TreeGridAxis.js",[h["Core/Axis/BrokenAxis.js"],h["Core/Axis/GridAxis.js"],h["Gantt/Tree.js"],h["Core/Axis/TreeGridTick.js"],h["Mixins/TreeSeries.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A){var z=E.getLevelOptions,B=A.addEvent,q=A.find,k=A.fireEvent,e=A.isArray,b=A.isObject,r=A.isString,C=A.merge,y=A.pick,n=A.wrap,f;
|
|
647
|
+
(function(f){function m(a,c){var b=a.collapseEnd||0;a=a.collapseStart||0;b>=c&&(a-=.5);return{from:a,to:b,showPoints:!1}}function A(a,c,e){var d=[],f=[],g={},l="boolean"===typeof c?c:!1,h={},k=-1;a=F.getTree(a,{after:function(a){a=h[a.pos];var c=0,b=0;a.children.forEach(function(a){b+=(a.descendants||0)+1;c=Math.max((a.height||0)+1,c)});a.descendants=b;a.height=c;a.collapsed&&f.push(a)},before:function(a){var c=b(a.data,!0)?a.data:{},e=r(c.name)?c.name:"",f=g[a.parent];f=b(f,!0)?h[f.pos]:null;var m=
|
|
648
|
+
function(a){return a.name===e},n;l&&b(f,!0)&&(n=q(f.children,m))?(m=n.pos,n.nodes.push(a)):m=k++;h[m]||(h[m]=n={depth:f?f.depth+1:0,name:e,id:c.id,nodes:[a],children:[],pos:m},-1!==m&&d.push(e),b(f,!0)&&f.children.push(n));r(a.id)&&(g[a.id]=a);n&&!0===c.collapsed&&(n.collapsed=!0);a.pos=m}});h=function(a,c){var e=function(a,d,f){var g=d+(-1===d?0:c-1),l=(g-d)/2,h=d+l;a.nodes.forEach(function(a){var c=a.data;b(c,!0)&&(c.y=d+(c.seriesIndex||0),delete c.seriesIndex);a.pos=h});f[h]=a;a.pos=h;a.tickmarkOffset=
|
|
649
|
+
l+.5;a.collapseStart=g+.5;a.children.forEach(function(a){e(a,g+1,f);g=(a.collapseEnd||0)-.5});a.collapseEnd=g+.5;return f};return e(a["-1"],-1,{})}(h,e);return{categories:d,mapOfIdToNode:g,mapOfPosToGridNode:h,collapsedNodes:f,tree:a}}function u(a){a.target.axes.filter(function(a){return"treegrid"===a.options.type}).forEach(function(c){var d=c.options||{},f=d.labels,g=d.uniqueNames;d=d.max;var l=0;if(!c.treeGrid.mapOfPosToGridNode||c.series.some(function(a){return!a.hasRendered||a.isDirtyData||a.isDirty})){var h=
|
|
650
|
+
c.series.reduce(function(a,c){c.visible&&((c.options.data||[]).forEach(function(e){c.options.keys&&c.options.keys.length&&(e=c.pointClass.prototype.optionsToObject.call({series:c},e),c.pointClass.setGanttPointAliases(e));b(e,!0)&&(e.seriesIndex=l,a.push(e))}),!0===g&&l++);return a},[]);if(d&&h.length<d)for(var k=h.length;k<=d;k++)h.push({name:k+"\u200b"});d=A(h,g||!1,!0===g?l:1);c.categories=d.categories;c.treeGrid.mapOfPosToGridNode=d.mapOfPosToGridNode;c.hasNames=!0;c.treeGrid.tree=d.tree;c.series.forEach(function(a){var c=
|
|
651
|
+
(a.options.data||[]).map(function(c){e(c)&&a.options.keys&&a.options.keys.length&&h.forEach(function(a){0<=c.indexOf(a.x)&&0<=c.indexOf(a.x2)&&(c=a)});return b(c,!0)?C(c):c});a.visible&&a.setData(c,!1)});c.treeGrid.mapOptionsToLevel=z({defaults:f,from:1,levels:f&&f.levels,to:c.treeGrid.tree&&c.treeGrid.tree.height});"beforeRender"===a.type&&(c.treeGrid.collapsedNodes=d.collapsedNodes)}})}function x(c,b){var e=this.treeGrid.mapOptionsToLevel||{},d=this.ticks,f=d[b],g;if("treegrid"===this.options.type&&
|
|
652
|
+
this.treeGrid.mapOfPosToGridNode){var l=this.treeGrid.mapOfPosToGridNode[b];(e=e[l.depth])&&(g={labels:e});!f&&a?d[b]=new a(this,b,void 0,void 0,{category:l.name,tickmarkOffset:l.tickmarkOffset,options:g}):(f.parameters.category=l.name,f.options=g,f.addLabel())}else c.apply(this,Array.prototype.slice.call(arguments,1))}function c(a,c,b){var e=this,d="treegrid"===b.type;e.treeGrid||(e.treeGrid=new g(e));d&&(B(c,"beforeRender",u),B(c,"beforeRedraw",u),B(c,"addSeries",function(a){a.options.data&&(a=
|
|
653
|
+
A(a.options.data,b.uniqueNames||!1,1),e.treeGrid.collapsedNodes=(e.treeGrid.collapsedNodes||[]).concat(a.collapsedNodes))}),B(e,"foundExtremes",function(){e.treeGrid.collapsedNodes&&e.treeGrid.collapsedNodes.forEach(function(a){var c=e.treeGrid.collapse(a);e.brokenAxis&&(e.brokenAxis.setBreaks(c,!1),e.treeGrid.collapsedNodes&&(e.treeGrid.collapsedNodes=e.treeGrid.collapsedNodes.filter(function(c){return a.collapseStart!==c.collapseStart||a.collapseEnd!==c.collapseEnd})))})}),B(e,"afterBreaks",function(){"yAxis"===
|
|
654
|
+
e.coll&&!e.staticScale&&e.chart.options.chart.height&&(e.isDirty=!0)}),b=C({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10,padding:5}},uniqueNames:!1},b,{reversed:!0,grid:{columns:void 0}}));a.apply(e,[c,b]);d&&(e.hasNames=!0,e.options.showLastLabel=!0)}function l(a){var c=this.options;"treegrid"===c.type?(this.min=y(this.userMin,c.min,this.dataMin),this.max=y(this.userMax,c.max,this.dataMax),
|
|
655
|
+
k(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a.apply(this,Array.prototype.slice.call(arguments,1))}var a;f.compose=function(b,e,f,g){-1===b.keepProps.indexOf("treeGrid")&&(b.keepProps.push("treeGrid"),a=g,n(b.prototype,"generateTick",x),n(b.prototype,"init",c),n(b.prototype,"setTickInterval",l),b.prototype.utils={getNode:F.getNode},h.compose(b,e,g),d.compose(b,f),
|
|
656
|
+
D.compose(g));return b};var g=function(){function a(a){this.axis=a}a.prototype.setCollapsedStatus=function(a){var c=this.axis,b=c.chart;c.series.forEach(function(c){var e=c.options.data;if(a.id&&e){var d=b.get(a.id);c=e[c.data.indexOf(d)];d&&c&&(d.collapsed=a.collapsed,c.collapsed=a.collapsed)}})};a.prototype.collapse=function(a){var c=this.axis,b=c.options.breaks||[],e=m(a,c.max);b.push(e);a.collapsed=!0;c.treeGrid.setCollapsedStatus(a);return b};a.prototype.expand=function(a){var c=this.axis,b=
|
|
657
|
+
c.options.breaks||[],e=m(a,c.max);a.collapsed=!1;c.treeGrid.setCollapsedStatus(a);return b.reduce(function(a,c){c.to===e.to&&c.from===e.from||a.push(c);return a},[])};a.prototype.getTickPositions=function(){var a=this.axis,c=Math.floor(a.min/a.tickInterval)*a.tickInterval,b=Math.ceil(a.max/a.tickInterval)*a.tickInterval;return Object.keys(a.treeGrid.mapOfPosToGridNode||{}).reduce(function(e,d){d=+d;!(d>=c&&d<=b)||a.brokenAxis&&a.brokenAxis.isInAnyBreak(d)||e.push(d);return e},[])};a.prototype.isCollapsed=
|
|
658
|
+
function(a){var c=this.axis,b=c.options.breaks||[],e=m(a,c.max);return b.some(function(a){return a.from===e.from&&a.to===e.to})};a.prototype.toggleCollapse=function(a){return this.isCollapsed(a)?this.expand(a):this.collapse(a)};return a}();f.Additions=g})(f||(f={}));return f});N(h,"Extensions/CurrentDateIndication.js",[h["Core/Axis/Axis.js"],h["Core/Color/Palette.js"],h["Core/Axis/PlotLineOrBand.js"],h["Core/Utilities.js"]],function(d,h,F,D){var E=D.addEvent,A=D.merge;D=D.wrap;var z={color:h.highlightColor20,
|
|
659
|
+
width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(d,h){return this.axis.chart.time.dateFormat(h||"",d)},rotation:0,style:{fontSize:"10px"}}};E(d,"afterSetOptions",function(){var d=this.options,h=d.currentDateIndicator;h&&(h="object"===typeof h?A(z,h):A(z),h.value=Date.now(),h.className="highcharts-current-date-indicator",d.plotLines||(d.plotLines=[]),d.plotLines.push(h))});E(F,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});D(F.prototype,
|
|
660
|
+
"getLabelText",function(d,h){var k=this.options;return k&&k.className&&-1!==k.className.indexOf("highcharts-current-date-indicator")&&k.label&&"function"===typeof k.label.formatter?(k.value=Date.now(),k.label.formatter.call(this,k.value,k.label.format)):d.call(this,h)})});N(h,"Extensions/StaticScale.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Utilities.js"]],function(d,h,F){var D=F.addEvent,E=F.defined,A=F.isNumber,z=F.pick;D(d,"afterSetOptions",function(){var d=this.chart.options.chart;
|
|
661
|
+
!this.horiz&&A(this.options.staticScale)&&(!d.height||d.scrollablePlotArea&&d.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});h.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(d){var h=d.chart,k=!!h.initiatedScale&&h.options.animation,e=d.options.staticScale;if(d.staticScale&&E(d.min)){var b=z(d.brokenAxis&&d.brokenAxis.unitLength,d.max+d.tickInterval-d.min)*e;b=Math.max(b,e);e=b-h.plotHeight;!h.scrollablePixelsY&&
|
|
662
|
+
1<=Math.abs(e)&&(h.plotHeight=b,h.redrawTrigger="adjustHeight",h.setSize(void 0,h.chartHeight+e,k));d.series.forEach(function(b){(b=b.sharedClipKey&&h.sharedClips[b.sharedClipKey])&&b.attr(h.inverted?{width:h.plotHeight}:{height:h.plotHeight})})}}),this.initiatedScale=!0);this.redrawTrigger=null};D(h,"render",h.prototype.adjustHeight)});N(h,"Extensions/ArrowSymbols.js",[h["Core/Renderer/SVG/SVGRenderer.js"]],function(d){function h(d,h,z,B){return[["M",d,h+B/2],["L",d+z,h],["L",d,h+B/2],["L",d+z,h+
|
|
663
|
+
B]]}function F(d,h,z,B){return[["M",d+z,h],["L",d,h+B/2],["L",d+z,h+B],["Z"]]}function D(d,h,z,B){return F(d,h,z/2,B)}d=d.prototype.symbols;d.arrow=h;d["arrow-filled"]=F;d["arrow-filled-half"]=D;d["arrow-half"]=function(d,A,z,B){return h(d,A,z/2,B)};d["triangle-left"]=F;d["triangle-left-half"]=D;return d});N(h,"Gantt/Connection.js",[h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"]],function(d,h,F,D){function E(b){var e=b.shapeArgs;return e?{xMin:e.x||
|
|
664
|
+
0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)}:(e=b.graphic&&b.graphic.getBBox())?{xMin:b.plotX-e.width/2,xMax:b.plotX+e.width/2,yMin:b.plotY-e.height/2,yMax:b.plotY+e.height/2}:null}"";var A=D.defined,z=D.error,B=D.extend,q=D.merge,k=D.objectEach,e=d.deg2rad,b=Math.max,r=Math.min;B(h.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});
|
|
665
|
+
h=function(){function d(b,e,d){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(b,e,d)}d.prototype.init=function(b,e,d){this.fromPoint=b;this.toPoint=e;this.options=d;this.chart=b.series.chart;this.pathfinder=this.chart.pathfinder};d.prototype.renderPath=function(b,e,d){var f=this.chart,h=f.styledMode,k=f.pathfinder,n=!f.options.chart.forExport&&!1!==d,q=this.graphics&&this.graphics.path;k.group||(k.group=f.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(f.seriesGroup));
|
|
666
|
+
k.group.translate(f.plotLeft,f.plotTop);q&&q.renderer||(q=f.renderer.path().add(k.group),h||q.attr({opacity:0}));q.attr(e);b={d:b};h||(b.opacity=1);q[n?"animate":"attr"](b,d);this.graphics=this.graphics||{};this.graphics.path=q};d.prototype.addMarker=function(b,d,f){var h=this.fromPoint.series.chart,k=h.pathfinder;h=h.renderer;var n="start"===b?this.fromPoint:this.toPoint,q=n.getPathfinderAnchorPoint(d);if(d.enabled&&((f="start"===b?f[1]:f[f.length-2])&&"M"===f[0]||"L"===f[0])){f={x:f[1],y:f[2]};
|
|
667
|
+
f=n.getRadiansToVector(f,q);q=n.getMarkerVector(f,d.radius,q);f=-f/e;if(d.width&&d.height){var r=d.width;var c=d.height}else r=c=2*d.radius;this.graphics=this.graphics||{};q={x:q.x-r/2,y:q.y-c/2,width:r,height:c,rotation:f,rotationOriginX:q.x,rotationOriginY:q.y};this.graphics[b]?this.graphics[b].animate(q):(this.graphics[b]=h.symbol(d.symbol).addClass("highcharts-point-connecting-path-"+b+"-marker").attr(q).add(k.group),h.styledMode||this.graphics[b].attr({fill:d.color||this.fromPoint.color,stroke:d.lineColor,
|
|
668
|
+
"stroke-width":d.lineWidth,opacity:0}).animate({opacity:1},n.series.options.animation))}};d.prototype.getPath=function(b){var e=this.pathfinder,d=this.chart,h=e.algorithms[b.type],k=e.chartObstacles;if("function"!==typeof h)return z('"'+b.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};h.requiresObstacles&&!k&&(k=e.chartObstacles=e.getChartObstacles(b),d.options.connectors.algorithmMargin=b.algorithmMargin,e.chartObstacleMetrics=e.getObstacleMetrics(k));return h(this.fromPoint.getPathfinderAnchorPoint(b.startMarker),
|
|
669
|
+
this.toPoint.getPathfinderAnchorPoint(b.endMarker),q({chartObstacles:k,lineObstacles:e.lineObstacles||[],obstacleMetrics:e.chartObstacleMetrics,hardBounds:{xMin:0,xMax:d.plotWidth,yMin:0,yMax:d.plotHeight},obstacleOptions:{margin:b.algorithmMargin},startDirectionX:e.getAlgorithmStartDirection(b.startMarker)},b))};d.prototype.render=function(){var e=this.fromPoint,d=e.series,f=d.chart,h=f.pathfinder,k=q(f.options.connectors,d.options.connectors,e.options.connectors,this.options),C={};f.styledMode||
|
|
670
|
+
(C.stroke=k.lineColor||e.color,C["stroke-width"]=k.lineWidth,k.dashStyle&&(C.dashstyle=k.dashStyle));C["class"]="highcharts-point-connecting-path highcharts-color-"+e.colorIndex;k=q(C,k);A(k.marker.radius)||(k.marker.radius=r(b(Math.ceil((k.algorithmMargin||8)/2)-1,1),5));e=this.getPath(k);f=e.path;e.obstacles&&(h.lineObstacles=h.lineObstacles||[],h.lineObstacles=h.lineObstacles.concat(e.obstacles));this.renderPath(f,C,d.options.animation);this.addMarker("start",q(k.marker,k.startMarker),f);this.addMarker("end",
|
|
671
|
+
q(k.marker,k.endMarker),f)};d.prototype.destroy=function(){this.graphics&&(k(this.graphics,function(b){b.destroy()}),delete this.graphics)};return d}();d.Connection=h;B(F.prototype,{getPathfinderAnchorPoint:function(b){var e=E(this);switch(b.align){case "right":var d="xMax";break;case "left":d="xMin"}switch(b.verticalAlign){case "top":var f="yMin";break;case "bottom":f="yMax"}return{x:d?e[d]:(e.xMin+e.xMax)/2,y:f?e[f]:(e.yMin+e.yMax)/2}},getRadiansToVector:function(b,e){var d;A(e)||(d=E(this))&&(e=
|
|
672
|
+
{x:(d.xMin+d.xMax)/2,y:(d.yMin+d.yMax)/2});return Math.atan2(e.y-b.y,b.x-e.x)},getMarkerVector:function(b,e,d){var f=2*Math.PI,h=E(this),k=h.xMax-h.xMin,n=h.yMax-h.yMin,q=Math.atan2(n,k),r=!1;k/=2;var c=n/2,l=h.xMin+k;h=h.yMin+c;for(var a=l,g=h,w=1,y=1;b<-Math.PI;)b+=f;for(;b>Math.PI;)b-=f;f=Math.tan(b);b>-q&&b<=q?(y=-1,r=!0):b>q&&b<=Math.PI-q?y=-1:b>Math.PI-q||b<=-(Math.PI-q)?(w=-1,r=!0):w=-1;r?(a+=w*k,g+=y*k*f):(a+=n/(2*f)*w,g+=y*c);d.x!==l&&(a=d.x);d.y!==h&&(g=d.y);return{x:a+e*Math.cos(b),y:g-
|
|
673
|
+
e*Math.sin(b)}}});return h});N(h,"Gantt/PathfinderAlgorithms.js",[h["Core/Utilities.js"]],function(d){function h(e,b,d){d=d||0;var h=e.length-1;b-=1e-7;for(var k,n;d<=h;)if(k=h+d>>1,n=b-e[k].xMin,0<n)d=k+1;else if(0>n)h=k-1;else return k;return 0<d?d-1:0}function F(e,b){for(var d=h(e,b.x+1)+1;d--;){var k;if(k=e[d].xMax>=b.x)k=e[d],k=b.x<=k.xMax&&b.x>=k.xMin&&b.y<=k.yMax&&b.y>=k.yMin;if(k)return d}return-1}function D(e){var b=[];if(e.length){b.push(["M",e[0].start.x,e[0].start.y]);for(var d=0;d<e.length;++d)b.push(["L",
|
|
674
|
+
e[d].end.x,e[d].end.y])}return b}function E(d,b){d.yMin=B(d.yMin,b.yMin);d.yMax=z(d.yMax,b.yMax);d.xMin=B(d.xMin,b.xMin);d.xMax=z(d.xMax,b.xMax)}var A=d.pick,z=Math.min,B=Math.max,q=Math.abs;d=function(d,b,h){function e(b,c,d,a,e){b={x:b.x,y:b.y};b[c]=d[a||c]+(e||0);return b}function k(b,c,d){var a=q(c[d]-b[d+"Min"])>q(c[d]-b[d+"Max"]);return e(c,d,b,d+(a?"Max":"Min"),a?1:-1)}var n=[],f=A(h.startDirectionX,q(b.x-d.x)>q(b.y-d.y))?"x":"y",m=h.chartObstacles,r=F(m,d);h=F(m,b);if(-1<h){var z=m[h];h=k(z,
|
|
675
|
+
b,f);z={start:h,end:b};var u=h}else u=b;-1<r&&(m=m[r],h=k(m,d,f),n.push({start:d,end:h}),h[f]>=d[f]===h[f]>=u[f]&&(f="y"===f?"x":"y",b=d[f]<b[f],n.push({start:h,end:e(h,f,m,f+(b?"Max":"Min"),b?1:-1)}),f="y"===f?"x":"y"));d=n.length?n[n.length-1].end:d;h=e(d,f,u);n.push({start:d,end:h});f=e(h,"y"===f?"x":"y",u);n.push({start:h,end:f});n.push(z);return{path:D(n),obstacles:n}};d.requiresObstacles=!0;var k=function(d,b,k){function e(a,c,b){var d,e=a.x<c.x?1:-1;if(a.x<c.x){var f=a;var g=c}else f=c,g=a;
|
|
676
|
+
if(a.y<c.y){var l=a;var k=c}else l=c,k=a;for(d=0>e?z(h(w,g.x),w.length-1):0;w[d]&&(0<e&&w[d].xMin<=g.x||0>e&&w[d].xMax>=f.x);){if(w[d].xMin<=g.x&&w[d].xMax>=f.x&&w[d].yMin<=k.y&&w[d].yMax>=l.y)return b?{y:a.y,x:a.x<c.x?w[d].xMin-1:w[d].xMax+1,obstacle:w[d]}:{x:a.x,y:a.y<c.y?w[d].yMin-1:w[d].yMax+1,obstacle:w[d]};d+=e}return c}function r(a,c,b,d,f){var g=f.soft,h=f.hard,l=d?"x":"y",k={x:c.x,y:c.y},m={x:c.x,y:c.y};f=a[l+"Max"]>=g[l+"Max"];g=a[l+"Min"]<=g[l+"Min"];var n=a[l+"Max"]>=h[l+"Max"];h=a[l+
|
|
677
|
+
"Min"]<=h[l+"Min"];var v=q(a[l+"Min"]-c[l]),t=q(a[l+"Max"]-c[l]);b=10>q(v-t)?c[l]<b[l]:t<v;m[l]=a[l+"Min"];k[l]=a[l+"Max"];a=e(c,m,d)[l]!==m[l];c=e(c,k,d)[l]!==k[l];b=a?c?b:!0:c?!1:b;b=g?f?b:!0:f?!1:b;return h?n?b:!0:n?!1:b}function n(b,d,f){if(b.x===d.x&&b.y===d.y)return[];var h=f?"x":"y",m=k.obstacleOptions.margin;var t={soft:{xMin:c,xMax:l,yMin:a,yMax:g},hard:k.hardBounds};var q=F(w,b);if(-1<q){q=w[q];t=r(q,b,d,f,t);E(q,k.hardBounds);var p=f?{y:b.y,x:q[t?"xMax":"xMin"]+(t?1:-1)}:{x:b.x,y:q[t?"yMax":
|
|
678
|
+
"yMin"]+(t?1:-1)};var x=F(w,p);-1<x&&(x=w[x],E(x,k.hardBounds),p[h]=t?B(q[h+"Max"]-m+1,(x[h+"Min"]+q[h+"Max"])/2):z(q[h+"Min"]+m-1,(x[h+"Max"]+q[h+"Min"])/2),b.x===p.x&&b.y===p.y?(u&&(p[h]=t?B(q[h+"Max"],x[h+"Max"])+1:z(q[h+"Min"],x[h+"Min"])-1),u=!u):u=!1);b=[{start:b,end:p}]}else h=e(b,{x:f?d.x:b.x,y:f?b.y:d.y},f),b=[{start:b,end:{x:h.x,y:h.y}}],h[f?"x":"y"]!==d[f?"x":"y"]&&(t=r(h.obstacle,h,d,!f,t),E(h.obstacle,k.hardBounds),t={x:f?h.x:h.obstacle[t?"xMax":"xMin"]+(t?1:-1),y:f?h.obstacle[t?"yMax":
|
|
679
|
+
"yMin"]+(t?1:-1):h.y},f=!f,b=b.concat(n({x:h.x,y:h.y},t,f)));return b=b.concat(n(b[b.length-1].end,d,!f))}function f(a,c,b){var d=z(a.xMax-c.x,c.x-a.xMin)<z(a.yMax-c.y,c.y-a.yMin);b=r(a,c,b,d,{soft:k.hardBounds,hard:k.hardBounds});return d?{y:c.y,x:a[b?"xMax":"xMin"]+(b?1:-1)}:{x:c.x,y:a[b?"yMax":"yMin"]+(b?1:-1)}}var m=A(k.startDirectionX,q(b.x-d.x)>q(b.y-d.y)),I=m?"x":"y",L=[],u=!1,x=k.obstacleMetrics,c=z(d.x,b.x)-x.maxWidth-10,l=B(d.x,b.x)+x.maxWidth+10,a=z(d.y,b.y)-x.maxHeight-10,g=B(d.y,b.y)+
|
|
680
|
+
x.maxHeight+10,w=k.chartObstacles;var J=h(w,c);x=h(w,l);w=w.slice(J,x+1);if(-1<(x=F(w,b))){var K=f(w[x],b,d);L.push({end:b,start:K});b=K}for(;-1<(x=F(w,b));)J=0>b[I]-d[I],K={x:b.x,y:b.y},K[I]=w[x][J?I+"Max":I+"Min"]+(J?1:-1),L.push({end:b,start:K}),b=K;d=n(d,b,m);d=d.concat(L.reverse());return{path:D(d),obstacles:d}};k.requiresObstacles=!0;return{fastAvoid:k,straight:function(d,b){return{path:[["M",d.x,d.y],["L",b.x,b.y]],obstacles:[{start:d,end:b}]}},simpleConnect:d}});N(h,"Gantt/Pathfinder.js",
|
|
681
|
+
[h["Gantt/Connection.js"],h["Core/Chart/Chart.js"],h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"],h["Gantt/PathfinderAlgorithms.js"]],function(d,h,F,D,E,A,z){function B(b){var d=b.shapeArgs;return d?{xMin:d.x||0,xMax:(d.x||0)+(d.width||0),yMin:d.y||0,yMax:(d.y||0)+(d.height||0)}:(d=b.graphic&&b.graphic.getBBox())?{xMin:b.plotX-d.width/2,xMax:b.plotX+d.width/2,yMin:b.plotY-d.height/2,yMax:b.plotY+d.height/2}:null}function q(b){for(var d=b.length,c=
|
|
682
|
+
0,e,a,f=[],h=function(a,c,b){b=n(b,10);var d=a.yMax+b>c.yMin-b&&a.yMin-b<c.yMax+b,e=a.xMax+b>c.xMin-b&&a.xMin-b<c.xMax+b,f=d?a.xMin>c.xMax?a.xMin-c.xMax:c.xMin-a.xMax:Infinity,g=e?a.yMin>c.yMax?a.yMin-c.yMax:c.yMin-a.yMax:Infinity;return e&&d?b?h(a,c,Math.floor(b/2)):Infinity:I(f,g)};c<d;++c)for(e=c+1;e<d;++e)a=h(b[c],b[e]),80>a&&f.push(a);f.push(80);return m(Math.floor(f.sort(function(a,c){return a-c})[Math.floor(f.length/10)]/2-1),1)}function k(b){if(b.options.pathfinder||b.series.reduce(function(b,
|
|
683
|
+
c){c.options&&y(!0,c.options.connectors=c.options.connectors||{},c.options.pathfinder);return b||c.options&&c.options.pathfinder},!1))y(!0,b.options.connectors=b.options.connectors||{},b.options.pathfinder),r('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}"";var e=A.addEvent,b=A.defined,r=A.error,C=A.extend,y=A.merge,n=A.pick,f=A.splat,m=Math.max,I=Math.min;C(D.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",
|
|
684
|
+
verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var L=function(){function h(b){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(b)}h.prototype.init=function(b){this.chart=b;this.connections=[];e(b,"redraw",function(){this.pathfinder.update()})};h.prototype.update=function(b){var c=this.chart,e=this,a=e.connections;e.connections=[];c.series.forEach(function(a){a.visible&&
|
|
685
|
+
!a.options.isInternal&&a.points.forEach(function(a){var b=a.options;b&&b.dependency&&(b.connect=b.dependency);var g;b=a.options&&a.options.connect&&f(a.options.connect);a.visible&&!1!==a.isInside&&b&&b.forEach(function(b){g=c.get("string"===typeof b?b:b.to);g instanceof E&&g.series.visible&&g.visible&&!1!==g.isInside&&e.connections.push(new d(a,g,"string"===typeof b?{}:b))})})});for(var g=0,h=void 0,k=void 0,m=a.length,n=e.connections.length;g<m;++g){k=!1;for(h=0;h<n;++h)if(a[g].fromPoint===e.connections[h].fromPoint&&
|
|
686
|
+
a[g].toPoint===e.connections[h].toPoint){e.connections[h].graphics=a[g].graphics;k=!0;break}k||a[g].destroy()}delete this.chartObstacles;delete this.lineObstacles;e.renderConnections(b)};h.prototype.renderConnections=function(b){b?this.chart.series.forEach(function(b){var c=function(){var a=b.chart.pathfinder;(a&&a.connections||[]).forEach(function(a){a.fromPoint&&a.fromPoint.series===b&&a.render()});b.pathfinderRemoveRenderEvent&&(b.pathfinderRemoveRenderEvent(),delete b.pathfinderRemoveRenderEvent)};
|
|
687
|
+
!1===b.options.animation?c():b.pathfinderRemoveRenderEvent=e(b,"afterAnimate",c)}):this.connections.forEach(function(b){b.render()})};h.prototype.getChartObstacles=function(d){for(var c=[],e=this.chart.series,a=n(d.algorithmMargin,0),f,h=0,k=e.length;h<k;++h)if(e[h].visible&&!e[h].options.isInternal){var m=0,t=e[h].points.length,r=void 0;for(r=void 0;m<t;++m)r=e[h].points[m],r.visible&&(r=B(r))&&c.push({xMin:r.xMin-a,xMax:r.xMax+a,yMin:r.yMin-a,yMax:r.yMax+a})}c=c.sort(function(a,b){return a.xMin-
|
|
688
|
+
b.xMin});b(d.algorithmMargin)||(f=d.algorithmMargin=q(c),c.forEach(function(a){a.xMin-=f;a.xMax+=f;a.yMin-=f;a.yMax+=f}));return c};h.prototype.getObstacleMetrics=function(b){for(var c=0,d=0,a,e,f=b.length;f--;)a=b[f].xMax-b[f].xMin,e=b[f].yMax-b[f].yMin,c<a&&(c=a),d<e&&(d=e);return{maxHeight:d,maxWidth:c}};h.prototype.getAlgorithmStartDirection=function(b){var c="top"!==b.verticalAlign&&"bottom"!==b.verticalAlign;return"left"!==b.align&&"right"!==b.align?c?void 0:!1:c?!0:void 0};return h}();L.prototype.algorithms=
|
|
689
|
+
z;F.Pathfinder=L;C(E.prototype,{getPathfinderAnchorPoint:function(b){var d=B(this);switch(b.align){case "right":var c="xMax";break;case "left":c="xMin"}switch(b.verticalAlign){case "top":var e="yMin";break;case "bottom":e="yMax"}return{x:c?d[c]:(d.xMin+d.xMax)/2,y:e?d[e]:(d.yMin+d.yMax)/2}},getRadiansToVector:function(d,e){var c;b(e)||(c=B(this))&&(e={x:(c.xMin+c.xMax)/2,y:(c.yMin+c.yMax)/2});return Math.atan2(e.y-d.y,d.x-e.x)},getMarkerVector:function(b,d,c){var e=2*Math.PI,a=B(this),f=a.xMax-a.xMin,
|
|
690
|
+
h=a.yMax-a.yMin,k=Math.atan2(h,f),m=!1;f/=2;var n=h/2,q=a.xMin+f;a=a.yMin+n;for(var r=q,v=a,H=1,u=1;b<-Math.PI;)b+=e;for(;b>Math.PI;)b-=e;e=Math.tan(b);b>-k&&b<=k?(u=-1,m=!0):b>k&&b<=Math.PI-k?u=-1:b>Math.PI-k||b<=-(Math.PI-k)?(H=-1,m=!0):H=-1;m?(r+=H*f,v+=u*f*e):(r+=h/(2*e)*H,v+=u*n);c.x!==q&&(r=c.x);c.y!==a&&(v=c.y);return{x:r+d*Math.cos(b),y:v-d*Math.sin(b)}}});h.prototype.callbacks.push(function(b){!1!==b.options.connectors.enabled&&(k(b),this.pathfinder=new L(this),this.pathfinder.update(!0))});
|
|
691
|
+
return L});N(h,"Series/Gantt/GanttSeries.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Series/Gantt/GanttPoint.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Axis/Tick.js"],h["Core/Utilities.js"],h["Core/Axis/TreeGridAxis.js"]],function(d,h,F,D,E,A,z){var B=this&&this.__extends||function(){var b=function(d,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var e in d)d.hasOwnProperty(e)&&(b[e]=d[e])};return b(d,e)};return function(d,
|
|
692
|
+
e){function f(){this.constructor=d}b(d,e);d.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),q=D.series,k=D.seriesTypes.xrange,e=A.extend,b=A.isNumber,r=A.merge,C=A.splat;z.compose(d,h,q,E);d=function(d){function e(){var b=null!==d&&d.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(e,d);e.prototype.drawPoint=function(d,e){var f=this.options,h=this.chart.renderer,m=d.shapeArgs,n=d.plotY,c=d.graphic,l=d.selected&&"select",a=f.stacking&&!f.borderRadius;
|
|
693
|
+
if(d.options.milestone)if(b(n)&&null!==d.y&&!1!==d.visible){m=h.symbols.diamond(m.x||0,m.y||0,m.width||0,m.height||0);if(c)c[e]({d:m});else d.graphic=h.path(m).addClass(d.getClassName(),!0).add(d.group||this.group);this.chart.styledMode||d.graphic.attr(this.pointAttribs(d,l)).shadow(f.shadow,null,a)}else c&&(d.graphic=c.destroy());else k.prototype.drawPoint.call(this,d,e)};e.prototype.translatePoint=function(b){k.prototype.translatePoint.call(this,b);if(b.options.milestone){var d=b.shapeArgs;var e=
|
|
694
|
+
d.height||0;b.shapeArgs={x:(d.x||0)-e/2,y:d.y,width:e,height:e}}};e.defaultOptions=r(k.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var b=this.series,d=b.chart.tooltip,e=b.xAxis,h=b.tooltipOptions.dateTimeLabelFormats,k=e.options.startOfWeek,n=b.tooltipOptions,c=n.xDateFormat,l=this.options.milestone,a="<b>"+(this.name||this.yCategory)+"</b>";if(n.pointFormat)return this.tooltipFormatter(n.pointFormat);
|
|
695
|
+
c||(c=C(d.getDateFormat(e.closestPointRange,this.start,k,h))[0]);d=b.chart.time.dateFormat(c,this.start);b=b.chart.time.dateFormat(c,this.end);a+="<br/>";return l?a+(d+"<br/>"):a+("Start: "+d+"<br/>End: ")+(b+"<br/>")}},connectors:{type:"simpleConnect",animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return e}(k);e(d.prototype,{keyboardMoveVertical:!1,pointArrayMap:["start","end","y"],pointClass:F,setData:q.prototype.setData});
|
|
696
|
+
D.registerSeriesType("gantt",d);"";return d});N(h,"Core/Chart/GanttChart.js",[h["Core/Chart/Chart.js"],h["Core/DefaultOptions.js"],h["Core/Utilities.js"]],function(d,h,F){var D=this&&this.__extends||function(){var d=function(h,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var e in d)d.hasOwnProperty(e)&&(b[e]=d[e])};return d(h,e)};return function(h,e){function b(){this.constructor=h}d(h,e);h.prototype=null===e?Object.create(e):(b.prototype=
|
|
697
|
+
e.prototype,new b)}}(),E=h.getOptions,A=F.isArray,z=F.merge,B=F.splat;d=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}D(h,d);h.prototype.init=function(e,b){var h=E(),k=e.xAxis,q=e.yAxis,n;e.xAxis=e.yAxis=void 0;var f=z(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},e,{isGantt:!0});e.xAxis=k;e.yAxis=q;f.xAxis=(A(e.xAxis)?e.xAxis:[e.xAxis||{},{}]).map(function(b,d){1===d&&(n=0);return z(h.xAxis,{grid:{enabled:!0},
|
|
698
|
+
opposite:!0,linkedTo:n},b,{type:"datetime"})});f.yAxis=B(e.yAxis||{}).map(function(b){return z(h.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:b.categories?b.type:"treegrid"},b)});d.prototype.init.call(this,f,b)};return h}(d);(function(d){d.ganttChart=function(h,e,b){return new d(h,e,b)}})(d||(d={}));return d});N(h,"Core/Axis/ScrollbarAxis.js",[h["Core/Utilities.js"]],function(d){var h=d.addEvent,F=d.defined,D=d.pick;return function(){function d(){}d.compose=function(d,z){var A=function(d){var h=
|
|
699
|
+
D(d.options&&d.options.min,d.min),e=D(d.options&&d.options.max,d.max);return{axisMin:h,axisMax:e,scrollMin:F(d.dataMin)?Math.min(h,d.min,d.dataMin,D(d.threshold,Infinity)):h,scrollMax:F(d.dataMax)?Math.max(e,d.max,d.dataMax,D(d.threshold,-Infinity)):e}};h(d,"afterInit",function(){var d=this;d.options&&d.options.scrollbar&&d.options.scrollbar.enabled&&(d.options.scrollbar.vertical=!d.horiz,d.options.startOnTick=d.options.endOnTick=!1,d.scrollbar=new z(d.chart.renderer,d.options.scrollbar,d.chart),
|
|
700
|
+
h(d.scrollbar,"changed",function(h){var e=A(d),b=e.axisMax,k=e.scrollMin,q=e.scrollMax-k;F(e.axisMin)&&F(b)&&(d.horiz&&!d.reversed||!d.horiz&&d.reversed?(e=k+q*this.to,k+=q*this.from):(e=k+q*(1-this.from),k+=q*(1-this.to)),this.shouldUpdateExtremes(h.DOMType)?d.setExtremes(k,e,!0,"mousemove"!==h.DOMType&&"touchmove"!==h.DOMType,h):this.setRange(this.from,this.to))}))});h(d,"afterRender",function(){var d=A(this),h=d.scrollMin,e=d.scrollMax;d=this.scrollbar;var b=this.axisTitleMargin+(this.titleOffset||
|
|
701
|
+
0),r=this.chart.scrollbarsOffsets,z=this.options.margin||0;d&&(this.horiz?(this.opposite||(r[1]+=b),d.position(this.left,this.top+this.height+2+r[1]-(this.opposite?z:0),this.width,this.height),this.opposite||(r[1]+=z),b=1):(this.opposite&&(r[0]+=b),d.position(this.left+this.width+2+r[0]-(this.opposite?0:z),this.top,this.width,this.height),this.opposite&&(r[0]+=z),b=0),r[b]+=d.size+d.options.margin,isNaN(h)||isNaN(e)||!F(this.min)||!F(this.max)||this.min===this.max?d.setRange(0,1):(r=(this.min-h)/
|
|
702
|
+
(e-h),h=(this.max-h)/(e-h),this.horiz&&!this.reversed||!this.horiz&&this.reversed?d.setRange(r,h):d.setRange(1-h,1-r)))});h(d,"afterGetOffset",function(){var d=this.horiz?2:1,h=this.scrollbar;h&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[d]+=h.size+h.options.margin)});return d};return d}()});N(h,"Core/ScrollbarDefaults.js",[h["Core/Globals.js"],h["Core/Color/Palette.js"]],function(d,h){return{height:d.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,
|
|
703
|
+
minWidth:6,step:.2,zIndex:3,barBackgroundColor:h.neutralColor20,barBorderWidth:1,barBorderColor:h.neutralColor20,buttonArrowColor:h.neutralColor80,buttonBackgroundColor:h.neutralColor10,buttonBorderColor:h.neutralColor20,buttonBorderWidth:1,rifleColor:h.neutralColor80,trackBackgroundColor:h.neutralColor5,trackBorderColor:h.neutralColor5,trackBorderWidth:1}});N(h,"Core/Scrollbar.js",[h["Core/DefaultOptions.js"],h["Core/Globals.js"],h["Core/Axis/ScrollbarAxis.js"],h["Core/ScrollbarDefaults.js"],h["Core/Utilities.js"]],
|
|
704
|
+
function(d,h,F,D,E){var A=d.defaultOptions,z=E.addEvent,B=E.correctFloat,q=E.defined,k=E.destroyObjectProperties,e=E.fireEvent,b=E.merge,r=E.pick,C=E.removeEvent;d=function(){function d(b,d,e){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=
|
|
705
|
+
void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(b,d,e)}d.compose=function(b){F.compose(b,d)};d.swapXY=function(b,d){d&&b.forEach(function(b){for(var d=b.length,e,f=0;f<d;f+=2)e=b[f+1],"number"===typeof e&&(b[f+1]=b[f+2],b[f+2]=e)});return b};d.prototype.addEvents=function(){var b=this.options.inverted?[1,0]:[0,1],d=this.scrollbarButtons,e=this.scrollbarGroup.element,k=this.track.element,q=this.mouseDownHandler.bind(this),r=this.mouseMoveHandler.bind(this),x=this.mouseUpHandler.bind(this);
|
|
706
|
+
b=[[d[b[0]].element,"click",this.buttonToMinClick.bind(this)],[d[b[1]].element,"click",this.buttonToMaxClick.bind(this)],[k,"click",this.trackClick.bind(this)],[e,"mousedown",q],[e.ownerDocument,"mousemove",r],[e.ownerDocument,"mouseup",x]];h.hasTouch&&b.push([e,"touchstart",q],[e.ownerDocument,"touchmove",r],[e.ownerDocument,"touchend",x]);b.forEach(function(b){z.apply(null,b)});this._events=b};d.prototype.buttonToMaxClick=function(b){var d=(this.to-this.from)*r(this.options.step,.2);this.updatePosition(this.from+
|
|
707
|
+
d,this.to+d);e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};d.prototype.buttonToMinClick=function(b){var d=B(this.to-this.from)*r(this.options.step,.2);this.updatePosition(B(this.from-d),B(this.to-d));e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};d.prototype.cursorToScrollbarPosition=function(b){var d=this.options;d=d.minWidth>this.calculatedWidth?d.minWidth:0;return{chartX:(b.chartX-this.x-this.xOffset)/(this.barWidth-d),chartY:(b.chartY-
|
|
708
|
+
this.y-this.yOffset)/(this.barWidth-d)}};d.prototype.destroy=function(){var b=this,d=b.chart.scroller;b.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(d){b[d]&&b[d].destroy&&(b[d]=b[d].destroy())});d&&b===d.scrollbar&&(d.scrollbar=null,k(d.scrollbarButtons))};d.prototype.drawScrollbarButton=function(b){var e=this.renderer,h=this.scrollbarButtons,k=this.options,n=this.size,q=e.g().add(this.group);h.push(q);q=e.rect().addClass("highcharts-scrollbar-button").add(q);
|
|
709
|
+
this.chart.styledMode||q.attr({stroke:k.buttonBorderColor,"stroke-width":k.buttonBorderWidth,fill:k.buttonBackgroundColor});q.attr(q.crisp({x:-.5,y:-.5,width:n+1,height:n+1,r:k.buttonBorderRadius},q.strokeWidth()));q=e.path(d.swapXY([["M",n/2+(b?-1:1),n/2-3],["L",n/2+(b?-1:1),n/2+3],["L",n/2+(b?2:-2),n/2]],k.vertical)).addClass("highcharts-scrollbar-arrow").add(h[b]);this.chart.styledMode||q.attr({fill:k.buttonArrowColor})};d.prototype.init=function(d,e,h){this.scrollbarButtons=[];this.renderer=d;
|
|
710
|
+
this.userOptions=e;this.options=b(D,A.scrollbar,e);this.chart=h;this.size=r(this.options.size,this.options.height);e.enabled&&(this.render(),this.addEvents())};d.prototype.mouseDownHandler=function(b){b=this.chart.pointer.normalize(b);b=this.cursorToScrollbarPosition(b);this.chartX=b.chartX;this.chartY=b.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};d.prototype.mouseMoveHandler=function(b){var d=this.chart.pointer.normalize(b),h=this.options.vertical?"chartY":"chartX",k=this.initPositions||
|
|
711
|
+
[];!this.grabbedCenter||b.touches&&0===b.touches[0][h]||(d=this.cursorToScrollbarPosition(d)[h],h=this[h],h=d-h,this.hasDragged=!0,this.updatePosition(k[0]+h,k[1]+h),this.hasDragged&&e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};d.prototype.mouseUpHandler=function(b){this.hasDragged&&e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};d.prototype.position=
|
|
712
|
+
function(b,d,e,h){var f=this.options.vertical,k=this.rendered?"animate":"attr",m=0;this.x=b;this.y=d+this.trackBorderWidth;this.width=e;this.xOffset=this.height=h;this.yOffset=m;f?(this.width=this.yOffset=e=m=this.size,this.xOffset=d=0,this.barWidth=h-2*e,this.x=b+=this.options.margin):(this.height=this.xOffset=h=d=this.size,this.barWidth=e-2*h,this.y+=this.options.margin);this.group[k]({translateX:b,translateY:this.y});this.track[k]({width:e,height:h});this.scrollbarButtons[1][k]({translateX:f?0:
|
|
713
|
+
e-d,translateY:f?h-m:0})};d.prototype.removeEvents=function(){this._events.forEach(function(b){C.apply(null,b)});this._events.length=0};d.prototype.render=function(){var b=this.renderer,e=this.options,h=this.size,k=this.chart.styledMode,q=b.g("scrollbar").attr({zIndex:e.zIndex,translateY:-99999}).add();this.group=q;this.track=b.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:e.trackBorderRadius||0,height:h,width:h}).add(q);k||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,
|
|
714
|
+
"stroke-width":e.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=b.g().add(q);this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:h,width:h,r:e.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=b.path(d.swapXY([["M",-3,h/4],["L",-3,2*h/3],["M",0,h/4],["L",0,2*h/3],["M",3,h/4],["L",3,2*h/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);k||(this.scrollbar.attr({fill:e.barBackgroundColor,
|
|
715
|
+
stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};d.prototype.setRange=function(b,d){var e=this.options,f=e.vertical,h=e.minWidth,k=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?
|
|
716
|
+
"attr":"animate";if(q(k)){var c=k*Math.min(d,1);b=Math.max(b,0);var l=Math.ceil(k*b);this.calculatedWidth=c=B(c-l);c<h&&(l=(k-h+c)*b,c=h);h=Math.floor(l+this.xOffset+this.yOffset);k=c/2-.5;this.from=b;this.to=d;f?(this.scrollbarGroup[n]({translateY:h}),this.scrollbar[n]({height:c}),this.scrollbarRifles[n]({translateY:k}),this.scrollbarTop=h,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:h}),this.scrollbar[n]({width:c}),this.scrollbarRifles[n]({translateX:k}),this.scrollbarLeft=h,this.scrollbarTop=
|
|
717
|
+
0);12>=c?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===e.showFull&&(0>=b&&1<=d?this.group.hide():this.group.show());this.rendered=!0}};d.prototype.shouldUpdateExtremes=function(b){return r(this.options.liveRedraw,h.svg&&!h.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===b||"touchend"===b||!q(b)};d.prototype.trackClick=function(b){var d=this.chart.pointer.normalize(b),h=this.to-this.from,k=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&d.chartY>k||
|
|
718
|
+
!this.options.vertical&&d.chartX>n?this.updatePosition(this.from+h,this.to+h):this.updatePosition(this.from-h,this.to-h);e(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};d.prototype.update=function(d){this.destroy();this.init(this.chart.renderer,b(!0,this.options,d),this.chart)};d.prototype.updatePosition=function(b,d){1<d&&(b=B(1-B(d-b)),d=1);0>b&&(d=B(d-b),b=0);this.from=b;this.to=d};d.defaultOptions=D;return d}();A.scrollbar=b(!0,d.defaultOptions,A.scrollbar);return d});
|
|
719
|
+
N(h,"Extensions/RangeSelector.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Color/Palette.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A,z){function B(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),c="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var q=D.defaultOptions,
|
|
720
|
+
k=z.addEvent,e=z.createElement,b=z.css,r=z.defined,C=z.destroyObjectProperties,y=z.discardElement,n=z.extend,f=z.find,m=z.fireEvent,I=z.isNumber,L=z.merge,u=z.objectEach,x=z.pad,c=z.pick,l=z.pInt,a=z.splat;n(q,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",
|
|
721
|
+
inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:E.highlightColor80,cursor:"pointer"},labelStyle:{color:E.neutralColor60}}});n(q.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var g=function(){function f(a){this.buttons=void 0;this.buttonOptions=f.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;
|
|
722
|
+
this.chart=a;this.init(a)}f.prototype.clickButton=function(b,e){var f=this.chart,g=this.buttonOptions[b],h=f.xAxis[0],l=f.scroller&&f.scroller.getUnionExtremes()||h||{},n=l.dataMin,p=l.dataMax,t=h&&Math.round(Math.min(h.max,c(p,h.max))),q=g.type;l=g._range;var u,w=g.dataGrouping;if(null!==n&&null!==p){f.fixedRange=l;this.setSelected(b);w&&(this.forcedDataGrouping=!0,d.prototype.setDataGrouping.call(h||{chart:this.chart},w,!1),this.frozenStates=g.preserveDataGrouping);if("month"===q||"year"===q)if(h){q=
|
|
723
|
+
{range:g,max:t,chart:f,dataMin:n,dataMax:p};var x=h.minFromRange.call(q);I(q.newMax)&&(t=q.newMax)}else l=g;else if(l)x=Math.max(t-l,n),t=Math.min(x+l,p);else if("ytd"===q)if(h)"undefined"===typeof p&&(n=Number.MAX_VALUE,p=Number.MIN_VALUE,f.series.forEach(function(a){a=a.xData;n=Math.min(a[0],n);p=Math.max(a[a.length-1],p)}),e=!1),t=this.getYTDExtremes(p,n,f.time.useUTC),x=u=t.min,t=t.max;else{this.deferredYTDClick=b;return}else"all"===q&&h&&(f.navigator&&f.navigator.baseSeries[0]&&(f.navigator.baseSeries[0].xAxis.options.range=
|
|
724
|
+
void 0),x=n,t=p);r(x)&&(x+=g._offsetMin);r(t)&&(t+=g._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=b+1);if(h)h.setExtremes(x,t,c(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:g});else{var G=a(f.options.xAxis)[0];var y=G.range;G.range=l;var z=G.min;G.min=u;k(f,"load",function(){G.range=y;G.min=z})}m(this,"afterBtnClick")}};f.prototype.setSelected=function(a){this.selected=this.options.selected=a};f.prototype.init=function(a){var b=this,c=a.options.rangeSelector,d=c.buttons||
|
|
725
|
+
b.defaultButtons.slice(),e=c.selected,f=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&m(a,"blur");c&&c.blur&&m(c,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=d;this.eventsToUnbind=[];this.eventsToUnbind.push(k(a.container,"mousedown",f));this.eventsToUnbind.push(k(a,"resize",f));d.forEach(b.computeButtonRange);"undefined"!==typeof e&&d[e]&&this.clickButton(e,!1);this.eventsToUnbind.push(k(a,"load",function(){a.xAxis&&a.xAxis[0]&&k(a.xAxis[0],"setExtremes",function(c){this.max-
|
|
726
|
+
this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};f.prototype.updateButtonStates=function(){var a=this,b=this.chart,c=this.dropdown,d=b.xAxis[0],e=Math.round(d.max-d.min),f=!d.hasVisibleSeries,g=b.scroller&&b.scroller.getUnionExtremes()||d,h=g.dataMin,l=g.dataMax;b=a.getYTDExtremes(l,h,b.time.useUTC);var k=b.min,m=b.max,n=a.selected,q=I(n),r=a.options.allButtonsEnabled,u=a.buttons;a.buttonOptions.forEach(function(b,
|
|
727
|
+
g){var p=b._range,v=b.type,t=b.count||1,H=u[g],w=0,x=b._offsetMax-b._offsetMin;b=g===n;var y=p>l-h,G=p<d.minRange,z=!1,A=!1;p=p===e;("month"===v||"year"===v)&&e+36E5>=864E5*{month:28,year:365}[v]*t-x&&e-36E5<=864E5*{month:31,year:366}[v]*t+x?p=!0:"ytd"===v?(p=m-k+x===e,z=!b):"all"===v&&(p=d.max-d.min>=l-h,A=!b&&q&&p);v=!r&&(y||G||A||f);t=b&&p||p&&!q&&!z||b&&a.frozenStates;v?w=3:t&&(q=!0,w=2);H.state!==w&&(H.setState(w),c&&(c.options[g+1].disabled=v,2===w&&(c.selectedIndex=g+1)),0===w&&n===g&&a.setSelected())})};
|
|
728
728
|
f.prototype.computeButtonRange=function(a){var b=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*d;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*d;a._offsetMin=c(a.offsetMin,0);a._offsetMax=c(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};f.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||
|
|
729
|
-
this.defaultInputDateParser)(a.value,c.useUTC,c):0};f.prototype.setInputValue=function(a,b){var c=this.options,d=this.chart.time,e="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(e){var f=e.getAttribute("data-hc-time");f=
|
|
729
|
+
this.defaultInputDateParser)(a.value,c.useUTC,c):0};f.prototype.setInputValue=function(a,b){var c=this.options,d=this.chart.time,e="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(e){var f=e.getAttribute("data-hc-time");f=r(f)?Number(f):void 0;r(b)&&(r(f)&&e.setAttribute("data-hc-time-previous",f),e.setAttribute("data-hc-time",b),f=b);e.value=d.dateFormat(this.inputTypeFormats[e.type]||c.inputEditDateFormat,f);a&&a.attr({text:d.dateFormat(c.inputDateFormat,f)})}};
|
|
730
730
|
f.prototype.setInputExtremes=function(a,b,c){if(a="min"===a?this.minInput:this.maxInput){var d=this.inputTypeFormats[a.type],e=this.chart.time;d&&(b=e.dateFormat(d,b),a.min!==b&&(a.min=b),c=e.dateFormat(d,c),a.max!==c&&(a.max=c))}};f.prototype.showInput=function(a){var c="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&c&&this.inputGroup){var d="text"===a.type,e=this.inputGroup,f=e.translateX;e=e.translateY;var g=this.options.inputBoxWidth;b(a,{width:d?c.width+
|
|
731
731
|
(g?-2:20)+"px":"auto",height:d?c.height-2+"px":"auto",border:"2px solid silver"});d&&g?b(a,{left:f+c.x+"px",top:e+"px"}):b(a,{left:Math.min(Math.round(c.x+f-(a.offsetWidth-c.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:e-(a.offsetHeight-c.height)/2+"px"})}};f.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&b(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};f.prototype.defaultInputDateParser=function(a,b,c){var d=a.split("/").join("-").split(" ").join("T");
|
|
732
|
-
-1===d.indexOf("T")&&(d+="T00:00");if(b)d+="Z";else{var e;if(e=
|
|
733
|
-
c,f=
|
|
734
|
-
|
|
735
|
-
void 0,f);u.setAttribute("type",
|
|
736
|
-
function(){
|
|
737
|
-
f=d.get("FullYear",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}};f.prototype.render=function(a,b){var
|
|
738
|
-
g.parentNode&&g.parentNode.insertBefore(this.div,g),h&&(this.inputGroup=f.g("input-group").add(this.group),f=this.drawInput("min"),this.minDateBox=f.dateBox,this.minLabel=f.label,this.minInput=f.input,f=this.drawInput("max"),this.maxDateBox=f.dateBox,this.maxLabel=f.label,this.maxInput=f.input));if(h&&(this.setInputValue("min",a),this.setInputValue("max",b),a=
|
|
739
|
-
a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-
|
|
740
|
-
p=h.width||28;delete h.width;delete h.states;this.buttonGroup=g.g("range-selector-buttons").add(this.group);var
|
|
741
|
-
e||d)})});this.zoomText=g.label(f&&f.rangeSelectorZoom||"",0).attr({padding:
|
|
742
|
-
f;
|
|
743
|
-
|
|
744
|
-
0;g&&(b=
|
|
745
|
-
0)-10);if("top"===q)h.floating&&(
|
|
746
|
-
this.buttonGroup,f=this.options.buttonPosition,g=d.plotLeft-d.spacing[3],h=f.x-d.spacing[3];"right"===f.align?h+=a-g:"center"===f.align&&(h-=g/2);e&&e.align({y:f.y,width:c(b,this.initialButtonGroupWidth),align:f.align,x:h},!0,d.spacingBox)};f.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,d=this.options,e=this.zoomText,f=b.hasLoaded?"animate":"attr",g=d.buttonPosition,h=b.plotLeft,
|
|
747
|
-
c){if("hidden"!==a[c].visibility)a[c][f]({x:
|
|
748
|
-
d.getBBox().x;return h+b>c&&c+f>h&&g.y<
|
|
749
|
-
c.plotWidth?this.collapseButtons(a):this.expandButtons())};f.prototype.collapseButtons=function(a){var b=this.buttons,d=this.buttonOptions,e=this.chart,f=this.dropdown,g=this.options,h=this.zoomText,
|
|
750
|
-
c.state?c.hide():(c.show(),c.attr(
|
|
732
|
+
-1===d.indexOf("T")&&(d+="T00:00");if(b)d+="Z";else{var e;if(e=F.isSafari)e=d,e=!(6<e.length&&(e.lastIndexOf("-")===e.length-6||e.lastIndexOf("+")===e.length-6));e&&(e=(new Date(d)).getTimezoneOffset()/60,d+=0>=e?"+"+x(-e)+":00":"-"+x(e)+":00")}d=Date.parse(d);I(d)||(a=a.split("-"),d=Date.UTC(l(a[0]),l(a[1])-1,l(a[2])));c&&b&&I(d)&&(d+=c.getTimezoneOffset(d));return d};f.prototype.drawInput=function(a){function c(){var b=h.getInputValue(a),c=d.xAxis[0],e=d.scroller&&d.scroller.xAxis?d.scroller.xAxis:
|
|
733
|
+
c,f=e.dataMin;e=e.dataMax;var g=h.maxInput,l=h.minInput;b!==Number(u.getAttribute("data-hc-time-previous"))&&I(b)&&(u.setAttribute("data-hc-time-previous",b),t&&g&&I(f)?b>Number(g.getAttribute("data-hc-time"))?b=void 0:b<f&&(b=f):l&&I(e)&&(b<Number(l.getAttribute("data-hc-time"))?b=void 0:b>e&&(b=e)),"undefined"!==typeof b&&c.setExtremes(t?b:c.min,t?c.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var d=this.chart,f=this.div,g=this.inputGroup,h=this,l=d.renderer.style||{},k=d.renderer,m=d.options.rangeSelector,
|
|
734
|
+
t="min"===a,r=q.lang[t?"rangeSelectorFrom":"rangeSelectorTo"];r=k.label(r,0).addClass("highcharts-range-label").attr({padding:r?2:0,height:r?m.inputBoxHeight:0}).add(g);k=k.label("",0).addClass("highcharts-range-input").attr({padding:2,width:m.inputBoxWidth,height:m.inputBoxHeight,"text-align":"center"}).on("click",function(){h.showInput(a);h[a+"Input"].focus()});d.styledMode||k.attr({stroke:m.inputBoxBorderColor,"stroke-width":1});k.add(g);var u=e("input",{name:a,className:"highcharts-range-selector"},
|
|
735
|
+
void 0,f);u.setAttribute("type",B(m.inputDateFormat||"%b %e, %Y"));d.styledMode||(r.css(L(l,m.labelStyle)),k.css(L({color:E.neutralColor80},l,m.inputStyle)),b(u,n({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:l.fontSize,fontFamily:l.fontFamily,top:"-9999em"},m.inputStyle)));u.onfocus=function(){h.showInput(a)};u.onblur=function(){u===F.doc.activeElement&&c();h.hideInput(a);h.setInputValue(a);u.blur()};var w=!1;u.onchange=
|
|
736
|
+
function(){w||(c(),h.hideInput(a),u.blur())};u.onkeypress=function(a){13===a.keyCode&&c()};u.onkeydown=function(a){w=!0;38!==a.keyCode&&40!==a.keyCode||c()};u.onkeyup=function(){w=!1};return{dateBox:k,input:u,label:r}};f.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};f.prototype.getYTDExtremes=function(a,b,c){var d=this.chart.time,e=new d.Date(a),
|
|
737
|
+
f=d.get("FullYear",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}};f.prototype.render=function(a,b){var d=this.chart,f=d.renderer,g=d.container,h=d.options,l=h.rangeSelector,k=c(h.chart.style&&h.chart.style.zIndex,0)+1;h=l.inputEnabled;if(!1!==l.enabled){this.rendered||(this.group=f.g("range-selector-group").attr({zIndex:7}).add(),this.div=e("div",void 0,{position:"relative",height:0,zIndex:k}),this.buttonOptions.length&&this.renderButtons(),
|
|
738
|
+
g.parentNode&&g.parentNode.insertBefore(this.div,g),h&&(this.inputGroup=f.g("input-group").add(this.group),f=this.drawInput("min"),this.minDateBox=f.dateBox,this.minLabel=f.label,this.minInput=f.input,f=this.drawInput("max"),this.maxDateBox=f.dateBox,this.maxLabel=f.label,this.maxInput=f.input));if(h&&(this.setInputValue("min",a),this.setInputValue("max",b),a=d.scroller&&d.scroller.getUnionExtremes()||d.xAxis[0]||{},r(a.dataMin)&&r(a.dataMax)&&(d=d.xAxis[0].minRange||0,this.setInputExtremes("min",
|
|
739
|
+
a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-d),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+d,a.dataMax)),this.inputGroup)){var m=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:m}),m+=b+l.inputSpacing)}})}this.alignElements();this.rendered=!0}};f.prototype.renderButtons=function(){var a=this,b=this.buttons,d=this.options,f=q.lang,g=this.chart.renderer,h=L(d.buttonTheme),l=h&&h.states,
|
|
740
|
+
p=h.width||28;delete h.width;delete h.states;this.buttonGroup=g.g("range-selector-buttons").add(this.group);var n=this.dropdown=e("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);k(n,"touchstart",function(){n.style.fontSize="16px"});[[F.isMS?"mouseover":"mouseenter"],[F.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var d=c[0],e=c[1];k(n,d,function(){var c=b[a.currentButtonIndex()];c&&m(c.element,
|
|
741
|
+
e||d)})});this.zoomText=g.label(f&&f.rangeSelectorZoom||"",0).attr({padding:d.buttonTheme.padding,height:d.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(d.labelStyle),h["stroke-width"]=c(h["stroke-width"],0));e("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,n);this.buttonOptions.forEach(function(c,d){e("option",{textContent:c.title||c.text},void 0,n);b[d]=g.button(c.text,0,0,function(b){var e=c.events&&c.events.click,
|
|
742
|
+
f;e&&(f=e.call(c,b));!1!==f&&a.clickButton(d);a.isActive=!0},h,l&&l.hover,l&&l.select,l&&l.disabled).attr({"text-align":"center",width:p}).add(a.buttonGroup);c.title&&b[d].attr("title",c.title)})};f.prototype.alignElements=function(){var a=this,b=this.buttonGroup,d=this.buttons,e=this.chart,f=this.group,g=this.inputGroup,h=this.options,l=this.zoomText,k=e.options,m=k.exporting&&!1!==k.exporting.enabled&&k.navigation&&k.navigation.buttonOptions;k=h.buttonPosition;var n=h.inputPosition,q=h.verticalAlign,
|
|
743
|
+
r=function(b,c){return m&&a.titleCollision(e)&&"top"===q&&"right"===c.align&&c.y-b.getBBox().height-12<(m.y||0)+(m.height||0)+e.spacing[0]?-40:0},u=e.plotLeft;if(f&&k&&n){var w=k.x-e.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var x=0;l&&(x+=l.getBBox().width+5);d.forEach(function(a,b){x+=a.width;b!==d.length-1&&(x+=h.buttonSpacing)});this.initialButtonGroupWidth=x}u-=e.spacing[3];this.updateButtonStates();l=r(b,k);this.alignButtonGroup(l);f.placed=b.placed=e.hasLoaded}b=
|
|
744
|
+
0;g&&(b=r(g,n),"left"===n.align?w=u:"right"===n.align&&(w=-Math.max(e.axisOffset[1],-b)),g.align({y:n.y,width:g.getBBox().width,align:n.align,x:n.x+w-2},!0,e.spacingBox),g.placed=e.hasLoaded);this.handleCollision(b);f.align({verticalAlign:q},!0,e.spacingBox);g=f.alignAttr.translateY;b=f.getBBox().height+20;r=0;"bottom"===q&&(r=(r=e.legend&&e.legend.options)&&"bottom"===r.verticalAlign&&r.enabled&&!r.floating?e.legend.legendHeight+c(r.margin,10):0,b=b+r-20,r=g-b-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:
|
|
745
|
+
0)-10);if("top"===q)h.floating&&(r=0),e.titleOffset&&e.titleOffset[0]&&(r=e.titleOffset[0]),r+=e.margin[0]-e.spacing[0]||0;else if("middle"===q)if(n.y===k.y)r=g;else if(n.y||k.y)r=0>n.y||0>k.y?r-Math.min(n.y,k.y):g-b;f.translate(h.x,h.y+Math.floor(r));k=this.minInput;n=this.maxInput;g=this.dropdown;h.inputEnabled&&k&&n&&(k.style.marginTop=f.translateY+"px",n.style.marginTop=f.translateY+"px");g&&(g.style.marginTop=f.translateY+"px")}};f.prototype.alignButtonGroup=function(a,b){var d=this.chart,e=
|
|
746
|
+
this.buttonGroup,f=this.options.buttonPosition,g=d.plotLeft-d.spacing[3],h=f.x-d.spacing[3];"right"===f.align?h+=a-g:"center"===f.align&&(h-=g/2);e&&e.align({y:f.y,width:c(b,this.initialButtonGroupWidth),align:f.align,x:h},!0,d.spacingBox)};f.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,d=this.options,e=this.zoomText,f=b.hasLoaded?"animate":"attr",g=d.buttonPosition,h=b.plotLeft,l=h;e&&"hidden"!==e.visibility&&(e[f]({x:c(h+g.x,h)}),l+=g.x+e.getBBox().width+5);this.buttonOptions.forEach(function(b,
|
|
747
|
+
c){if("hidden"!==a[c].visibility)a[c][f]({x:l}),l+=a[c].width+d.buttonSpacing;else a[c][f]({x:h})})};f.prototype.handleCollision=function(a){var b=this,c=this.chart,d=this.buttonGroup,e=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,l=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var k=function(b){if(e&&d){var c=e.alignAttr.translateX+e.alignOptions.x-a+e.getBBox().x+2,f=e.alignOptions.width,h=d.alignAttr.translateX+
|
|
748
|
+
d.getBBox().x;return h+b>c&&c+f>h&&g.y<l.y+e.getBBox().height}return!1},m=function(){e&&d&&e.attr({translateX:e.alignAttr.translateX+(c.axisOffset[1]>=-a?0:-a),translateY:e.alignAttr.translateY+d.getBBox().height+10})};if(d){if("always"===h){this.collapseButtons(a);k(f())&&m();return}"never"===h&&this.expandButtons()}e&&d?l.align===g.align||k(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),k(f())&&m()):m():"responsive"===h&&this.expandButtons():d&&"responsive"===h&&(this.initialButtonGroupWidth>
|
|
749
|
+
c.plotWidth?this.collapseButtons(a):this.expandButtons())};f.prototype.collapseButtons=function(a){var b=this.buttons,d=this.buttonOptions,e=this.chart,f=this.dropdown,g=this.options,h=this.zoomText,l=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a?a+" \u25be":"\u25be",width:"auto",paddingLeft:c(g.buttonTheme.paddingLeft,l.padding,8),paddingRight:c(g.buttonTheme.paddingRight,l.padding,8)}};h&&h.hide();var m=!1;d.forEach(function(a,c){c=b[c];2!==
|
|
750
|
+
c.state?c.hide():(c.show(),c.attr(k(a.text)),m=!0)});m||(f&&(f.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));d=g.buttonPosition.align;this.positionButtons();"right"!==d&&"center"!==d||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};f.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,d=this.options,e=this.zoomText;this.hideDropdown();e&&e.show();b.forEach(function(b,e){e=a[e];e.show();e.attr({text:b.text,
|
|
751
751
|
width:d.buttonTheme.width||28,paddingLeft:c(d.buttonTheme.paddingLeft,"unset"),paddingRight:c(d.buttonTheme.paddingRight,"unset")});2>e.state&&e.setState(0)});this.positionButtons()};f.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};f.prototype.showDropdown=function(){var a=this.buttonGroup,c=this.buttons,d=this.chart,e=this.dropdown;if(a&&e){var f=a.translateX;a=a.translateY;c=c[this.currentButtonIndex()].getBBox();b(e,{left:d.plotLeft+
|
|
752
752
|
f+"px",top:a+.5+"px",width:c.width+"px",height:c.height+"px"});this.hasVisibleDropdown=!0}};f.prototype.hideDropdown=function(){var a=this.dropdown;a&&(b(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};f.prototype.getHeight=function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,e=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=b?b.getBBox(!0).height+13+c:0;b=Math.min(e,d);if(0>e&&0>d||0<e&&0<d)a+=Math.abs(b);return a};f.prototype.titleCollision=
|
|
753
|
-
function(a){return!(a.options.title.text||a.options.subtitle.text)};f.prototype.update=function(a){var b=this.chart;
|
|
754
|
-
b instanceof window.HTMLElement&&
|
|
755
|
-
time:"%H:%M:%S"};
|
|
756
|
-
void 0);return g};if(!
|
|
757
|
-
b)]]),b())};k(
|
|
758
|
-
!0)))});k(
|
|
759
|
-
d)&&(this.isDirtyBox=!0)});k(
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
!1:(!
|
|
763
|
-
|
|
764
|
-
c)};A="undefined"===typeof
|
|
753
|
+
function(a){return!(a.options.title.text||a.options.subtitle.text)};f.prototype.update=function(a){var b=this.chart;L(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};f.prototype.destroy=function(){var a=this,b=a.minInput,c=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(a){return a()}),a.eventsToUnbind=void 0);C(a.buttons);b&&(b.onfocus=b.onblur=b.onchange=null);c&&(c.onfocus=c.onblur=c.onchange=null);u(a,function(b,c){b&&"chart"!==c&&(b instanceof A?b.destroy():
|
|
754
|
+
b instanceof window.HTMLElement&&y(b));b!==f.prototype[c]&&(a[c]=null)},this)};return f}();g.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}];g.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",
|
|
755
|
+
time:"%H:%M:%S"};d.prototype.minFromRange=function(){var a=this.range,b=a.type,d=this.max,e=this.chart.time,f=function(a,c){var d="year"===b?"FullYear":"Month",f=new e.Date(a),g=e.get(d,f);e.set(d,f,g+c);g===e.get(d,f)&&e.set("Date",f,0);return f.getTime()-a};if(I(a)){var g=d-a;var h=a}else g=d+f(d,-a.count),this.chart&&(this.chart.fixedRange=d-g);var l=c(this.dataMin,Number.MIN_VALUE);I(g)||(g=l);g<=l&&(g=l,"undefined"===typeof h&&(h=f(g,a.count)),this.newMax=Math.min(g+h,this.dataMax));I(d)||(g=
|
|
756
|
+
void 0);return g};if(!F.RangeSelector){var w=[],J=function(a){function b(){d&&(c=a.xAxis[0].getExtremes(),e=a.legend,h=d&&d.options.verticalAlign,I(c.min)&&d.render(c.min,c.max),e.display&&"top"===h&&h===e.options.verticalAlign&&(g=L(a.spacingBox),g.y="vertical"===e.options.layout?a.plotTop:g.y+d.getHeight(),e.group.placed=!1,e.align(g)))}var c,d=a.rangeSelector,e,g,h;d&&(f(w,function(b){return b[0]===a})||w.push([a,[k(a.xAxis[0],"afterSetExtremes",function(a){d&&d.render(a.min,a.max)}),k(a,"redraw",
|
|
757
|
+
b)]]),b())};k(h,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new g(this))});k(h,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(I(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=
|
|
758
|
+
!0)))});k(h,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var c=this.extraBottomMargin,d=this.extraTopMargin;b&&b.enabled&&!r(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new g(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(J(this),b=b&&b.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==c||this.extraTopMargin!==
|
|
759
|
+
d)&&(this.isDirtyBox=!0)});k(h,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});k(h,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});h.prototype.callbacks.push(J);k(h,"destroy",function(){for(var a=0;a<w.length;a++){var b=w[a];if(b[0]===this){b[1].forEach(function(a){return a()});
|
|
760
|
+
w.splice(a,1);break}}});F.RangeSelector=g}return g});N(h,"Core/Axis/NavigatorAxis.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var F=d.isTouchDevice,D=h.addEvent,E=h.correctFloat,A=h.defined,z=h.isNumber,B=h.pick,q=function(){function d(d){this.axis=d}d.prototype.destroy=function(){this.axis=void 0};d.prototype.toFixedRange=function(d,b,h,k){var e=this.axis,n=e.chart;n=n&&n.fixedRange;var f=(e.pointRange||0)/2;d=B(h,e.translate(d,!0,!e.horiz));b=B(k,e.translate(b,!0,!e.horiz));
|
|
761
|
+
e=n&&(b-d)/n;A(h)||(d=E(d+f));A(k)||(b=E(b-f));.7<e&&1.3>e&&(k?d=b-n:b=d+n);z(d)&&z(b)||(d=b=void 0);return{min:d,max:b}};return d}();return function(){function d(){}d.compose=function(d){d.keepProps.push("navigatorAxis");D(d,"init",function(){this.navigatorAxis||(this.navigatorAxis=new q(this))});D(d,"zoom",function(b){var d=this.chart.options,e=d.navigator,h=this.navigatorAxis,k=d.chart.pinchType,f=d.rangeSelector;d=d.chart.zoomType;this.isXAxis&&(e&&e.enabled||f&&f.enabled)&&("y"===d?b.zoomed=
|
|
762
|
+
!1:(!F&&"xy"===d||F&&"xy"===k)&&this.options.range&&(e=h.previousZoom,A(b.newMin)?h.previousZoom=[this.min,this.max]:e&&(b.newMin=e[0],b.newMax=e[1],h.previousZoom=void 0)));"undefined"!==typeof b.zoomed&&b.preventDefault()})};d.AdditionsClass=q;return d}()});N(h,"Core/Navigator.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Axis/NavigatorAxis.js"],h["Core/DefaultOptions.js"],h["Core/Color/Palette.js"],h["Core/Renderer/RendererRegistry.js"],
|
|
763
|
+
h["Core/Scrollbar.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,F,D,E,A,z,B,q,k,e,b){F=F.parse;var r=D.hasTouch,C=D.isTouchDevice,y=A.defaultOptions,n=b.addEvent,f=b.clamp,m=b.correctFloat,I=b.defined,L=b.destroyObjectProperties,u=b.erase,x=b.extend,c=b.find,l=b.isArray,a=b.isNumber,g=b.merge,w=b.pick,J=b.removeEvent,K=b.splat,t=function(b){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];c=[].filter.call(c,a);if(c.length)return Math[b].apply(0,
|
|
764
|
+
c)};A="undefined"===typeof e.seriesTypes.areaspline?"line":"areaspline";x(y,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:z.neutralColor5,borderColor:z.neutralColor40},maskFill:F(z.highlightColor60).setOpacity(.3).get(),outlineColor:z.neutralColor20,outlineWidth:1,series:{type:A,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,
|
|
765
765
|
firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,
|
|
766
|
-
gridLineColor:
|
|
766
|
+
gridLineColor:z.neutralColor10,gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:z.neutralColor40},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});B.getRendererType().prototype.symbols["navigator-handle"]=function(a,b,c,d,e){a=(e&&e.width||0)/2;b=Math.round(a/3)+.5;e=e&&e.height||0;return[["M",-a-1,.5],["L",
|
|
767
767
|
a,.5],["L",a,e+.5],["L",-a-1,e+.5],["L",-a-1,.5],["M",-b,4],["L",-b,e-3],["M",b-1,4],["L",b-1,e-3]]};var G=function(){function b(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(a)}b.prototype.drawHandle=function(a,
|
|
768
|
-
b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})};b.prototype.drawOutline=function(a,b,c,d){var e=this.navigatorOptions.maskInside,f=this.outline.strokeWidth(),g=f/2,h=f%2/2;f=this.outlineHeight;var
|
|
769
|
-
h,b=n+a+h,h=[["M",m+f,n-
|
|
770
|
-
g,g];this.shades.forEach(function(a,b){a[d]({x:h[b],y:
|
|
768
|
+
b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})};b.prototype.drawOutline=function(a,b,c,d){var e=this.navigatorOptions.maskInside,f=this.outline.strokeWidth(),g=f/2,h=f%2/2;f=this.outlineHeight;var l=this.scrollbarHeight||0,k=this.size,m=this.left-l,n=this.top;c?(m-=g,c=n+b+
|
|
769
|
+
h,b=n+a+h,h=[["M",m+f,n-l-h],["L",m+f,c],["L",m,c],["L",m,b],["L",m+f,b],["L",m+f,n+k+l]],e&&h.push(["M",m+f,c-g],["L",m+f,b+g])):(a+=m+l-h,b+=m+l-h,n+=g,h=[["M",m,n],["L",a,n],["L",a,n+f],["L",b,n+f],["L",b,n],["L",m+k+2*l,n]],e&&h.push(["M",a-g,n],["L",b+g,n]));this.outline[d]({d:h})};b.prototype.drawMasks=function(a,b,c,d){var e=this.left,f=this.top,g=this.height;if(c){var h=[e,e,e];var l=[f,f+a,f+b];var k=[g,g,g];var m=[a,b-a,this.size-b]}else h=[e,e+a,e+b],l=[f,f,f],k=[a,b-a,this.size-b],m=[g,
|
|
770
|
+
g,g];this.shades.forEach(function(a,b){a[d]({x:h[b],y:l[b],width:k[b],height:m[b]})})};b.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.renderer,f,g={cursor:d.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=f=e.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,h){a.shades[h]=e.rect().addClass("highcharts-navigator-mask"+(1===h?"-inside":"-outside")).add(f);d.styledMode||a.shades[h].attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}).css(1===
|
|
771
771
|
h&&g)});a.outline=e.path().addClass("highcharts-navigator-outline").add(f);d.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=d.inverted;a.handles[c]=e.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(f);if(!d.styledMode){var h=b.handles;
|
|
772
|
-
a.handles[c].attr({fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.lineWidth}).css(g)}})};b.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();
|
|
773
|
-
var u=
|
|
774
|
-
(e=
|
|
775
|
-
(this.drawHandle(d,0,u,
|
|
776
|
-
d=a.getPartsEvents("mousedown");d.push(
|
|
777
|
-
"Mousedown"](a,f)}))})});return c};b.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,
|
|
778
|
-
h,b=d.navigatorAxis.toFixedRange(a,a+h,
|
|
779
|
-
function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,h&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-d)):b.grabbedCenter&&(b.hasDragged=!0,c<g?c=g:c>e+g-f&&(c=e+g-f),b.render(0,0,c-g,c-g+f)),b.hasDragged&&b.scrollbar&&
|
|
780
|
-
(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};b.prototype.onMouseUp=function(b){var c=this.chart,d=this.xAxis,e=this.scrollbar,f=b.DOMEvent||b,g=c.inverted,h=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===b.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var
|
|
781
|
-
e.dataMin:e.dataMax);0===this.zoomedMin&&(
|
|
772
|
+
a.handles[c].attr({fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.lineWidth}).css(g)}})};b.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();g(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};b.prototype.render=function(b,c,d,e){var g=this.chart,h=this.scrollbarHeight,l,k=this.xAxis,n=k.pointRange||0;var q=k.navigatorAxis.fake?g.xAxis[0]:k;var r=this.navigatorEnabled,v,t=this.rendered;
|
|
773
|
+
var u=g.inverted;var x=g.xAxis[0].minRange,y=g.xAxis[0].options.maxRange;if(!this.hasDragged||I(d)){b=m(b-n/2);c=m(c+n/2);if(!a(b)||!a(c))if(t)d=0,e=w(k.width,q.width);else return;this.left=w(k.left,g.plotLeft+h+(u?g.plotWidth:0));this.size=v=l=w(k.len,(u?g.plotHeight:g.plotWidth)-2*h);g=u?h:l+2*h;d=w(d,k.toPixels(b,!0));e=w(e,k.toPixels(c,!0));a(d)&&Infinity!==Math.abs(d)||(d=0,e=g);b=k.toValue(d,!0);c=k.toValue(e,!0);var z=Math.abs(m(c-b));z<x?this.grabbedLeft?d=k.toPixels(c-x-n,!0):this.grabbedRight&&
|
|
774
|
+
(e=k.toPixels(b+x+n,!0)):I(y)&&m(z-n)>y&&(this.grabbedLeft?d=k.toPixels(c-y-n,!0):this.grabbedRight&&(e=k.toPixels(b+y+n,!0)));this.zoomedMax=f(Math.max(d,e),0,v);this.zoomedMin=f(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,e),0,v);this.range=this.zoomedMax-this.zoomedMin;v=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);r&&(this.navigatorGroup.attr({visibility:"visible"}),t=t&&!this.hasDragged?"animate":"attr",this.drawMasks(d,v,u,t),this.drawOutline(d,v,u,t),this.navigatorOptions.handles.enabled&&
|
|
775
|
+
(this.drawHandle(d,0,u,t),this.drawHandle(v,1,u,t)));this.scrollbar&&(u?(u=this.top-h,q=this.left-h+(r||!q.opposite?0:(q.titleOffset||0)+q.axisTitleMargin),h=l+2*h):(u=this.top+(r?this.height:-h),q=this.left-h),this.scrollbar.position(q,u,g,h),this.scrollbar.setRange(this.zoomedMin/(l||1),this.zoomedMax/(l||1)));this.rendered=!0}};b.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};
|
|
776
|
+
d=a.getPartsEvents("mousedown");d.push(n(b.renderTo,"mousemove",e),n(c.ownerDocument,"mouseup",f));r&&(d.push(n(b.renderTo,"touchmove",e),n(c.ownerDocument,"touchend",f)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(n(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};b.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(d){b[d].forEach(function(e,f){c.push(n(e.element,a,function(a){b[d+
|
|
777
|
+
"Mousedown"](a,f)}))})});return c};b.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX;c.inverted&&(l=a.chartY,f=this.top);if(1===b)this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e;else{a=l-f-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=h;var k=this.getUnionExtremes().dataMin}else var m=this.getUnionExtremes().dataMax;a!==e&&(this.fixedWidth=
|
|
778
|
+
h,b=d.navigatorAxis.toFixedRange(a,a+h,k,m),I(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};b.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null};b.prototype.onMouseMove=
|
|
779
|
+
function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,h&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-d)):b.grabbedCenter&&(b.hasDragged=!0,c<g?c=g:c>e+g-f&&(c=e+g-f),b.render(0,0,c-g,c-g+f)),b.hasDragged&&b.scrollbar&&w(b.scrollbar.options.liveRedraw,D.svg&&!C&&!this.chart.isBoosting)&&
|
|
780
|
+
(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};b.prototype.onMouseUp=function(b){var c=this.chart,d=this.xAxis,e=this.scrollbar,f=b.DOMEvent||b,g=c.inverted,h=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===b.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var l=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var k=this.fixedExtreme;this.zoomedMax===this.size&&(k=this.reversedExtremes?
|
|
781
|
+
e.dataMin:e.dataMax);0===this.zoomedMin&&(l=this.reversedExtremes?e.dataMax:e.dataMin);d=d.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,l,k);I(d.min)&&c.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f})}"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=
|
|
782
782
|
null);this.navigatorEnabled&&a(this.zoomedMin)&&a(this.zoomedMax)&&(c=Math.round(this.zoomedMin),b=Math.round(this.zoomedMax),this.shades&&this.drawMasks(c,b,g,h),this.outline&&this.drawOutline(c,b,g,h),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(c,0,g,h),this.drawHandle(b,1,g,h)))};b.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};
|
|
783
|
-
b.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){
|
|
784
|
-
b;this.scrollbarHeight=
|
|
785
|
-
offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[
|
|
786
|
-
a.series.length&&!
|
|
787
|
-
|
|
788
|
-
b.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,f;a&&null===b.dataMin||(f={dataMin:
|
|
789
|
-
c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||e.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};b.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,e=c.baseSeries,
|
|
790
|
-
q=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>e.indexOf(b)?(b&&(
|
|
791
|
-
|
|
792
|
-
n,a);
|
|
793
|
-
!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(
|
|
794
|
-
function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};b.prototype.modifyBaseAxisExtremes=function(){var b=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax;c=c.max-c.min;var f=b.stickToMin,g=b.stickToMax,h=
|
|
783
|
+
b.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){J(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&J(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};b.prototype.init=function(a){var b=a.options,c=b.navigator,e=c.enabled,f=b.scrollbar,h=f.enabled;b=e?c.height:0;var l=h?f.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=
|
|
784
|
+
b;this.scrollbarHeight=l;this.scrollbarEnabled=h;this.navigatorEnabled=e;this.navigatorOptions=c;this.scrollbarOptions=f;this.outlineHeight=b+l;this.opposite=w(c.opposite,!(e||!a.inverted));var k=this;e=k.baseSeries;f=a.xAxis.length;h=a.yAxis.length;var m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new d(a,g({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:f,isInternal:!0,
|
|
785
|
+
offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[l,0,-l,0],width:b}:{offsets:[0,-l,0,l],height:b})),k.yAxis=new d(a,g(c.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:h,isInternal:!0,reversed:w(c.yAxis&&c.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=n(a,"beforeRedraw",function(){0<
|
|
786
|
+
a.series.length&&!k.series&&(k.setBaseSeries(),k.unbindRedraw())})),k.reversedExtremes=a.inverted&&!k.xAxis.reversed||!a.inverted&&k.xAxis.reversed,k.renderElements(),k.addMouseEvents()):(k.xAxis={chart:a,navigatorAxis:{fake:!0},translate:function(b,c){var d=a.xAxis[0],e=d.getExtremes(),f=d.len-2*l,g=t("min",d.options.min,e.dataMin);d=t("max",d.options.max,e.dataMax)-g;return c?b*d/f+g:f*(b-g)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)}},k.xAxis.navigatorAxis.axis=
|
|
787
|
+
k.xAxis,k.xAxis.navigatorAxis.toFixedRange=E.AdditionsClass.prototype.toFixedRange.bind(k.xAxis.navigatorAxis));a.options.scrollbar.enabled&&(a.scrollbar=k.scrollbar=new q(a.renderer,g(a.options.scrollbar,{margin:k.navigatorEnabled?0:10,vertical:a.inverted}),a),n(k.scrollbar,"changed",function(a){var b=k.size,c=b*this.to;b*=this.from;k.hasDragged=k.scrollbar.hasDragged;k.render(0,0,b,c);this.shouldUpdateExtremes(a.DOMType)&&setTimeout(function(){k.onMouseUp(a)})}));k.addBaseSeriesEvents();k.addChartEvents()};
|
|
788
|
+
b.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,f;a&&null===b.dataMin||(f={dataMin:w(d&&d.min,t("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:w(d&&d.max,t("max",e.max,b.dataMax,c.dataMax,c.max))});return f};b.prototype.setBaseSeries=function(a,b){var d=this.chart,e=this.baseSeries=[];a=a||d.options&&d.options.navigator.baseSeries||(d.series.length?c(d.series,function(a){return!a.options.isInternal}).index:0);(d.series||[]).forEach(function(b,
|
|
789
|
+
c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||e.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};b.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,e=c.baseSeries,f,h,k=c.navigatorOptions.series,m,n={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},
|
|
790
|
+
q=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>e.indexOf(b)?(b&&(J(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});e&&e.length&&e.forEach(function(a){var p=a.navigatorSeries,r=x({color:a.color,visible:a.visible},l(k)?y.navigator.series:k);p&&!1===c.navigatorOptions.adaptToUpdatedData||(n.name="Navigator "+e.length,f=a.options||{},m=f.navigatorOptions||{},r.dataLabels=K(r.dataLabels),h=g(f,n,r,m),h.pointRange=w(r.pointRange,m.pointRange,
|
|
791
|
+
y.plotOptions[h.type||"line"].pointRange),r=m.data||r.data,c.hasNavigatorData=c.hasNavigatorData||!!r,h.data=r||f.data&&f.data.slice(0),p&&p.options?p.update(h,b):(a.navigatorSeries=d.initSeries(h),a.navigatorSeries.baseSeries=a,q.push(a.navigatorSeries)))});if(k.data&&(!e||!e.length)||l(k))c.hasNavigatorData=!1,k=K(k),k.forEach(function(a,b){n.name="Navigator "+(q.length+1);h=g(y.navigator.series,{color:d.series[b]&&!d.series[b].options.isInternal&&d.series[b].color||d.options.colors[b]||d.options.colors[0]},
|
|
792
|
+
n,a);h.data=a.data;h.data&&(c.hasNavigatorData=!0,q.push(d.initSeries(h)))});a&&this.addBaseSeriesEvents()};b.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(n(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(n(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(n(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,
|
|
793
|
+
!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(n(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(n(b,"remove",function(){this.navigatorSeries&&(u(a.series,this.navigatorSeries),I(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};b.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)};b.prototype.modifyNavigatorAxisExtremes=
|
|
794
|
+
function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};b.prototype.modifyBaseAxisExtremes=function(){var b=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax;c=c.max-c.min;var f=b.stickToMin,g=b.stickToMax,h=w(this.options.overscroll,0),k=b.series&&b.series[0],l=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(f){var m=d;var n=
|
|
795
795
|
m+c}g&&(n=e+h,f||(m=Math.max(d,n-c,b.getBaseSeriesMin(k&&k.xData?k.xData[0]:-Number.MAX_VALUE))));l&&(f||g)&&a(m)&&(this.min=this.userMin=m,this.max=this.userMax=n)}b.stickToMin=b.stickToMax=null};b.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,a);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,
|
|
796
|
-
!1,null,!1))};b.prototype.shouldStickToMin=function(b,c){c=c.getBaseSeriesMin(b.xData[0]);var d=b.xAxis;b=d.max;var e=d.min;d=d.options.range;var f=!0;a(b)&&a(e)&&(f=d&&0<b-c?b-c<d&&!this.chart.fixedRange:e<=c);return f};b.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(
|
|
797
|
-
function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};b.prototype.destroy=function(){this.removeEvents();this.xAxis&&(
|
|
798
|
-
this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){
|
|
799
|
-
function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var e=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=
|
|
800
|
-
|
|
801
|
-
!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new G(this),
|
|
802
|
-
G;return
|
|
796
|
+
!1,null,!1))};b.prototype.shouldStickToMin=function(b,c){c=c.getBaseSeriesMin(b.xData[0]);var d=b.xAxis;b=d.max;var e=d.min;d=d.options.range;var f=!0;a(b)&&a(e)&&(f=d&&0<b-c?b-c<d&&!this.chart.fixedRange:e<=c);return f};b.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(n(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);b&&a.render(b.min,b.max)}),n(this.chart,"getMargins",
|
|
797
|
+
function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};b.prototype.destroy=function(){this.removeEvents();this.xAxis&&(u(this.chart.xAxis,this.xAxis),u(this.chart.axes,this.xAxis));this.yAxis&&(u(this.chart.yAxis,this.yAxis),u(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&
|
|
798
|
+
this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){L(a)},this)};return b}();D.Navigator||(D.Navigator=G,E.compose(d),n(h,"beforeShowResetZoom",function(){var a=this.options,b=a.navigator,c=a.rangeSelector;if((b&&b.enabled||c&&c.enabled)&&(!C&&"x"===a.chart.zoomType||C&&"x"===a.chart.pinchType))return!1}),n(h,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new G(this)}),n(h,"afterSetChartSize",
|
|
799
|
+
function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var e=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=w(d.left,this.plotLeft+f),b.top=b.navigatorOptions.top||this.chartHeight-b.height-f-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+
|
|
800
|
+
w(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&e&&(this.inverted?d.options.left=e.options.left=b.left:d.options.top=e.options.top=b.top,d.setAxisSize(),e.setAxisSize())}}),n(h,"update",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(g(!0,this.options.navigator,b),g(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),n(h,"afterUpdate",function(a){this.navigator||this.scroller||
|
|
801
|
+
!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new G(this),w(a.redraw,!0)&&this.redraw(a.animation))}),n(h,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),n(k,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),h.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));D.Navigator=
|
|
802
|
+
G;return D.Navigator});N(h,"masters/modules/gantt.src.js",[h["Core/Globals.js"],h["Core/Chart/GanttChart.js"]],function(d,h){d.GanttChart=h;d.ganttChart=h.ganttChart});N(h,"masters/highcharts-gantt.src.js",[h["masters/highcharts.src.js"]],function(d){d.product="Highcharts Gantt";return d});h["masters/highcharts-gantt.src.js"]._modules=h;return h["masters/highcharts-gantt.src.js"]});
|
|
803
803
|
//# sourceMappingURL=highcharts-gantt.js.map
|