highcharts 9.3.3 → 10.0.0
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/highcharts.css +19 -2
- package/css/highcharts.scss +17 -2
- package/css/themes/dark-unica.css +19 -2
- package/css/themes/grid-light.css +19 -2
- package/css/themes/sand-signika.css +19 -2
- package/es-modules/Accessibility/Accessibility.js +1 -1
- package/es-modules/Accessibility/Components/LegendComponent.js +31 -23
- package/es-modules/Accessibility/Components/MenuComponent.js +4 -5
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +2 -2
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +7 -6
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +0 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +3 -3
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +61 -29
- package/es-modules/Accessibility/Components/ZoomComponent.js +13 -10
- package/es-modules/Accessibility/HighContrastMode.js +2 -2
- package/es-modules/Accessibility/KeyboardNavigation.js +113 -98
- package/es-modules/Accessibility/ProxyElement.js +14 -6
- package/es-modules/Accessibility/ProxyProvider.js +10 -2
- package/es-modules/Core/Axis/Axis.js +150 -46
- package/es-modules/Core/Axis/Color/ColorAxis.js +22 -5
- package/es-modules/Core/Axis/GridAxis.js +10 -9
- package/es-modules/Core/Axis/TreeGridTick.js +11 -0
- package/es-modules/Core/Chart/Chart3D.js +1 -11
- package/es-modules/Core/Chart/ChartDefaults.js +32 -11
- package/es-modules/Core/Chart/MapChart.js +1 -6
- package/es-modules/Core/DefaultOptions.js +2 -0
- package/es-modules/Core/Geometry/PolygonClip.js +84 -0
- package/es-modules/Core/Globals.js +4 -18
- package/es-modules/Core/HttpUtilities.js +13 -8
- package/es-modules/Core/Legend/Legend.js +10 -8
- package/es-modules/Core/Navigator.js +9 -6
- package/es-modules/Core/Pointer.js +15 -11
- package/es-modules/Core/Renderer/HTML/AST.js +62 -5
- package/es-modules/Core/Renderer/SVG/SVGElement.js +25 -41
- package/es-modules/Core/Renderer/SVG/SVGElement3D.js +17 -5
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +17 -17
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +12 -10
- package/es-modules/Core/Series/DataLabel.js +11 -3
- package/es-modules/Core/Series/Point.js +2 -2
- package/es-modules/Core/Series/Series.js +33 -15
- package/es-modules/Core/Series/SeriesDefaults.js +4 -1
- package/es-modules/Core/Tooltip.js +14 -31
- package/es-modules/Core/Utilities.js +28 -28
- package/es-modules/Extensions/Annotations/Annotations.js +7 -0
- package/es-modules/Extensions/Annotations/MockPoint.js +1 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +1 -1
- package/es-modules/Extensions/Annotations/Popup.js +1 -1
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +5 -3
- package/es-modules/Extensions/Boost/BoostInit.js +6 -1
- package/es-modules/Extensions/Boost/BoostOptions.js +26 -0
- package/es-modules/Extensions/Boost/Boostables.js +1 -0
- package/es-modules/Extensions/Boost/WGLRenderer.js +48 -37
- package/es-modules/Extensions/Boost/WGLShader.js +4 -3
- package/es-modules/Extensions/Breadcrumbs.js +874 -0
- package/es-modules/Extensions/Data.js +26 -14
- package/es-modules/Extensions/DataGrouping.js +5 -2
- package/es-modules/Extensions/DraggablePoints.js +9 -7
- package/es-modules/Extensions/Drilldown.js +147 -94
- package/es-modules/Extensions/Exporting/Exporting.js +9 -7
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +49 -1
- package/es-modules/Extensions/GeoJSON.js +149 -124
- package/es-modules/Extensions/MarkerClusters.js +34 -20
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +110 -22
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +1 -1
- package/es-modules/Extensions/ScrollablePlotArea.js +5 -1
- package/es-modules/Extensions/Stacking.js +3 -2
- package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
- package/es-modules/Extensions/Themes/HighContrastLight.js +10 -10
- package/es-modules/Maps/MapNavigation.js +49 -8
- package/es-modules/Maps/MapPointer.js +16 -0
- package/es-modules/Maps/MapUtilities.js +56 -0
- package/es-modules/Maps/MapView.js +606 -135
- package/es-modules/Maps/MapViewInsetsOptionsDefault.js +148 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +58 -20
- package/es-modules/Maps/Projection.js +169 -77
- package/es-modules/Maps/Projections/EqualEarth.js +15 -6
- package/es-modules/Maps/Projections/LambertConformalConic.js +27 -19
- package/es-modules/Maps/Projections/Miller.js +23 -10
- package/es-modules/Maps/Projections/Orthographic.js +21 -10
- package/es-modules/Maps/Projections/WebMercator.js +25 -13
- package/es-modules/Series/ArcDiagram/ArcDiagramPoint.js +77 -0
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +581 -0
- package/es-modules/Series/Column/ColumnSeries.js +4 -3
- package/es-modules/Series/DataModifyComposition.js +1 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +2 -2
- package/es-modules/Series/DrawPointComposition.js +7 -4
- package/es-modules/Series/Lollipop/LollipopSeries.js +1 -1
- package/es-modules/Series/Map/MapPoint.js +24 -1
- package/es-modules/Series/Map/MapSeries.js +196 -169
- package/es-modules/Series/MapBubble/MapBubblePoint.js +16 -24
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +11 -0
- package/es-modules/Series/MapPoint/MapPointPoint.js +2 -8
- package/es-modules/Series/MapPoint/MapPointSeries.js +36 -14
- package/es-modules/Series/NodesComposition.js +60 -13
- package/es-modules/Series/OHLC/OHLCSeries.js +7 -0
- package/es-modules/Series/Organization/OrganizationPoint.js +68 -2
- package/es-modules/Series/Organization/OrganizationSeries.js +79 -25
- package/es-modules/Series/Pie/PiePoint.js +12 -5
- package/es-modules/Series/Pie3D/Pie3DSeries.js +19 -0
- package/es-modules/Series/Sankey/SankeyColumnComposition.js +193 -0
- package/es-modules/Series/Sankey/SankeyPoint.js +37 -1
- package/es-modules/Series/Sankey/SankeySeries.js +10 -127
- package/es-modules/Series/Scatter/ScatterSeries.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +13 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +88 -80
- package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -0
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +9 -2
- 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/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/arc-diagram.src.js +14 -0
- 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 +2 -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/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.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 +5 -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 +5 -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/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.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 +99 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +50 -20
- package/highcharts-gantt.js +800 -795
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +528 -290
- package/highcharts-more.js +195 -194
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +13 -2
- package/highcharts.d.ts +2162 -504
- package/highcharts.js +586 -581
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +2162 -504
- package/highcharts.src.js +494 -272
- package/highmaps.js +753 -723
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +3603 -2117
- package/highstock.js +790 -786
- package/highstock.js.map +1 -1
- package/highstock.src.js +519 -283
- package/indicators/acceleration-bands.js +12 -11
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +11 -2
- package/indicators/accumulation-distribution.js +5 -5
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +11 -2
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +11 -2
- package/indicators/apo.js +5 -5
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +11 -2
- package/indicators/aroon-oscillator.js +10 -10
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +11 -2
- package/indicators/aroon.js +11 -11
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +11 -2
- package/indicators/atr.js +5 -5
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +11 -2
- package/indicators/bollinger-bands.js +12 -12
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +11 -2
- package/indicators/cci.js +5 -5
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +11 -2
- package/indicators/chaikin.js +8 -8
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +11 -2
- package/indicators/cmf.js +6 -6
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +11 -2
- package/indicators/cmo.js +5 -5
- package/indicators/cmo.js.map +1 -1
- package/indicators/cmo.src.js +11 -2
- package/indicators/dema.js +5 -5
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +11 -2
- package/indicators/disparity-index.js +6 -6
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +11 -2
- package/indicators/dmi.js +12 -12
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +11 -2
- package/indicators/dpo.js +5 -5
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +11 -2
- package/indicators/ema.js +2 -1
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +10 -1
- package/indicators/ichimoku-kinko-hyo.js +16 -16
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +11 -2
- package/indicators/indicators-all.js +195 -194
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +21 -5
- package/indicators/indicators.js +13 -12
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +21 -5
- package/indicators/keltner-channels.js +12 -11
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +11 -2
- package/indicators/klinger.js +13 -13
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +11 -2
- package/indicators/macd.js +12 -11
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +11 -2
- package/indicators/mfi.js +6 -6
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +11 -2
- package/indicators/momentum.js +5 -5
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +11 -2
- package/indicators/natr.js +5 -4
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +11 -2
- package/indicators/obv.js +5 -5
- package/indicators/obv.js.map +1 -1
- package/indicators/obv.src.js +11 -2
- package/indicators/pivot-points.js +11 -11
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +11 -2
- package/indicators/ppo.js +5 -5
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +11 -2
- package/indicators/price-channel.js +11 -11
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +11 -2
- package/indicators/price-envelopes.js +8 -8
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +11 -2
- package/indicators/psar.js +7 -6
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +11 -2
- package/indicators/regressions.js +12 -12
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +11 -2
- package/indicators/roc.js +5 -5
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +11 -2
- package/indicators/rsi.js +6 -5
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +11 -2
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +11 -2
- package/indicators/stochastic.js +12 -12
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +11 -2
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +11 -2
- package/indicators/tema.js +6 -6
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +11 -2
- package/indicators/trendline.js +5 -5
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +11 -2
- package/indicators/trix.js +4 -4
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +11 -2
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +11 -2
- package/indicators/vwap.js +5 -5
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +11 -2
- package/indicators/williams-r.js +6 -5
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +11 -2
- package/indicators/wma.js +5 -5
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +11 -2
- package/indicators/zigzag.js +6 -6
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +11 -2
- package/lib/jspdf.js +299 -184
- package/lib/jspdf.src.js +25266 -18067
- package/lib/svg2pdf.js +35 -31
- package/lib/svg2pdf.src.js +5721 -4179
- package/modules/accessibility.js +231 -229
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +278 -197
- package/modules/annotations-advanced.js +144 -144
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +26 -8
- package/modules/annotations.js +79 -79
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +21 -5
- package/modules/arc-diagram.js +25 -0
- package/modules/arc-diagram.js.map +1 -0
- package/modules/arc-diagram.src.js +770 -0
- package/modules/arrow-symbols.js +4 -3
- package/modules/arrow-symbols.js.map +1 -1
- package/modules/arrow-symbols.src.js +11 -2
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +11 -2
- package/modules/boost.js +80 -79
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +71 -43
- package/modules/broken-axis.js +13 -13
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +11 -2
- package/modules/bullet.js +9 -9
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +11 -2
- package/modules/coloraxis.js +24 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +33 -7
- package/modules/current-date-indicator.js +5 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +11 -2
- package/modules/cylinder.js +11 -11
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +11 -2
- package/modules/data.js +34 -33
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +59 -32
- package/modules/datagrouping.js +21 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +16 -4
- package/modules/debugger.js +6 -6
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +11 -2
- package/modules/dependency-wheel.js +12 -11
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +14 -5
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +11 -2
- package/modules/drag-panes.js +10 -10
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +11 -2
- package/modules/draggable-points.js +35 -34
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +20 -9
- package/modules/drilldown.d.ts +19 -0
- package/modules/drilldown.js +37 -25
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +19 -0
- package/modules/drilldown.src.js +1090 -105
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +11 -2
- package/modules/export-data.js +21 -20
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +11 -2
- package/modules/exporting.js +39 -39
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +82 -18
- package/modules/full-screen.js +8 -7
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +11 -2
- package/modules/funnel.js +12 -12
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +11 -2
- package/modules/funnel3d.js +21 -21
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +11 -2
- package/modules/gantt.js +217 -217
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +45 -20
- package/modules/grid-axis.js +23 -23
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +22 -11
- package/modules/heatmap.js +40 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +33 -7
- package/modules/heikinashi.js +8 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.js +11 -2
- package/modules/histogram-bellcurve.js +13 -13
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +11 -2
- package/modules/hollowcandlestick.js +9 -9
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +11 -2
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +11 -2
- package/modules/lollipop.js +7 -7
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.js +12 -3
- package/modules/map.d.ts +80 -43
- package/modules/map.js +169 -144
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +80 -43
- package/modules/map.src.js +7960 -6687
- package/modules/marker-clusters.js +36 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +47 -23
- package/modules/networkgraph.d.ts +5 -0
- package/modules/networkgraph.js +49 -48
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +5 -0
- package/modules/networkgraph.src.js +77 -15
- package/modules/no-data-to-display.js +5 -5
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +11 -2
- package/modules/offline-exporting.js +20 -18
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +126 -25
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +11 -2
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +12 -3
- package/modules/organization.js +16 -14
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +166 -32
- package/modules/overlapping-datalabels.js +3 -2
- package/modules/overlapping-datalabels.js.map +1 -1
- package/modules/overlapping-datalabels.src.js +11 -2
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +11 -2
- package/modules/pareto.js +7 -7
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +11 -2
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +11 -2
- package/modules/pattern-fill.js +14 -14
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +11 -2
- package/modules/price-indicator.js +5 -5
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +11 -2
- package/modules/pyramid3d.js +4 -4
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +11 -2
- package/modules/sankey.d.ts +5 -0
- package/modules/sankey.js +32 -29
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +5 -0
- package/modules/sankey.src.js +338 -156
- package/modules/series-label.js +18 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +11 -2
- package/modules/solid-gauge.js +10 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +11 -2
- package/modules/sonification.js +59 -59
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +11 -2
- package/modules/static-scale.js +5 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +11 -2
- package/modules/stock-tools.js +78 -78
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +21 -5
- package/modules/stock.js +162 -162
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +36 -13
- package/modules/streamgraph.js +5 -4
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +11 -2
- package/modules/sunburst.d.ts +3 -0
- package/modules/sunburst.js +73 -60
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.d.ts +3 -0
- package/modules/sunburst.src.js +1049 -96
- package/modules/tilemap.js +17 -17
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +11 -2
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +11 -2
- package/modules/treegrid.js +57 -56
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +33 -11
- package/modules/treemap.d.ts +3 -0
- package/modules/treemap.js +53 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.d.ts +3 -0
- package/modules/treemap.src.js +1039 -95
- package/modules/variable-pie.js +9 -9
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +11 -2
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +11 -2
- package/modules/vector.js +8 -7
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +11 -2
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +18 -6
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +11 -2
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +18 -6
- package/modules/xrange.js +16 -16
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +11 -2
- package/package.json +1 -1
- package/themes/avocado.js +4 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +11 -2
- package/themes/brand-dark.js +9 -8
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.js +11 -2
- package/themes/brand-light.js +8 -8
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.js +11 -2
- package/themes/dark-blue.js +9 -8
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +11 -2
- package/themes/dark-green.js +9 -8
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +11 -2
- package/themes/dark-unica.js +8 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +11 -2
- package/themes/gray.js +9 -8
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +11 -2
- package/themes/grid-light.js +5 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +11 -2
- package/themes/grid.js +5 -5
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +11 -2
- package/themes/high-contrast-dark.js +7 -7
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +21 -12
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +21 -12
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +11 -2
- package/themes/skies.js +5 -5
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +11 -2
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +11 -2
- package/es-modules/Maps/ProjectionDefinition.js +0 -9
package/modules/map.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highmaps JS
|
|
2
|
+
Highmaps JS v10.0.0 (2022-03-07)
|
|
3
3
|
|
|
4
4
|
Highmaps as a plugin for Highcharts or Highcharts Stock.
|
|
5
5
|
|
|
@@ -7,147 +7,172 @@
|
|
|
7
7
|
|
|
8
8
|
License: www.highcharts.com/license
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
"undefined"!==typeof
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});
|
|
18
|
-
function(){var
|
|
19
|
-
"colorAxis";
|
|
20
|
-
|
|
21
|
-
b,b++,
|
|
22
|
-
this.options.crosshair=this.options.marker};
|
|
23
|
-
return 1-(this.max-
|
|
24
|
-
this.legendGroup,
|
|
25
|
-
b?
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};
|
|
29
|
-
this.series.forEach(function(
|
|
30
|
-
[].slice.call(arguments))};
|
|
31
|
-
(e+=" - ");"undefined"!==typeof
|
|
32
|
-
f.keepProps);"";return
|
|
33
|
-
{zoomIn:"Zoom in",zoomOut:"Zoom out"});return
|
|
34
|
-
this.chart,t=
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
b
|
|
40
|
-
function(
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
function(a,d
|
|
62
|
-
a.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
n=
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
u=
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
b=
|
|
89
|
-
this.
|
|
90
|
-
|
|
91
|
-
[
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
this.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
function(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
(
|
|
138
|
-
this
|
|
139
|
-
|
|
140
|
-
a.
|
|
141
|
-
|
|
142
|
-
this.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
c
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
c
|
|
150
|
-
a
|
|
151
|
-
|
|
152
|
-
|
|
10
|
+
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/map",["highcharts"],function(w){a(w);a.Highcharts=w;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function w(a,n,q,h){a.hasOwnProperty(n)||(a[n]=h.apply(null,q),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:a[n]}})))}a=a?a._modules:{};w(a,"Core/Axis/Color/ColorAxisComposition.js",
|
|
11
|
+
[a["Core/Color/Color.js"],a["Core/Utilities.js"]],function(a,n){var q=a.parse,h=n.addEvent,m=n.extend,d=n.merge,g=n.pick,u=n.splat,r;(function(l){function r(){var f=this,k=this.options;this.colorAxis=[];k.colorAxis&&(k.colorAxis=u(k.colorAxis),k.colorAxis.forEach(function(k,b){k.index=b;new B(f,k)}))}function e(f){var k=this,b=function(b){b=f.allItems.indexOf(b);-1!==b&&(k.destroyItem(f.allItems[b]),f.allItems.splice(b,1))},c=[],y,x;(this.chart.colorAxis||[]).forEach(function(f){(y=f.options)&&y.showInLegend&&
|
|
12
|
+
(y.dataClasses&&y.visible?c=c.concat(f.getDataClassLegendSymbols()):y.visible&&c.push(f),f.series.forEach(function(f){if(!f.options.showInLegend||y.dataClasses)"point"===f.options.legendType?f.points.forEach(function(f){b(f)}):b(f)}))});for(x=c.length;x--;)f.allItems.unshift(c[x])}function c(f){f.visible&&f.item.legendColor&&f.item.legendSymbol.attr({fill:f.item.legendColor})}function b(){var f=this.chart.colorAxis;f&&f.forEach(function(f,b,k){f.update({},k)})}function t(){(this.chart.colorAxis&&
|
|
13
|
+
this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function C(){var f=this.axisTypes;f?-1===f.indexOf("colorAxis")&&f.push("colorAxis"):this.axisTypes=["colorAxis"]}function F(f){var k=this,b=f?"show":"hide";k.visible=k.options.visible=!!f;["graphic","dataLabel"].forEach(function(f){if(k[f])k[f][b]()});this.series.buildKDTree()}function p(){var f=this,k=this.options.nullColor,b=this.colorAxis,c=this.colorKey;(this.data.length?this.data:this.points).forEach(function(y){var x=y.getNestedProperty(c);
|
|
14
|
+
(x=y.options.color||(y.isNull||null===y.value?k:b&&"undefined"!==typeof x?b.toColor(x,y):y.color||f.color))&&y.color!==x&&(y.color=x,"point"===f.options.legendType&&y.legendItem&&f.chart.legend.colorizeItem(y,y.visible))})}function z(f){var k=f.prototype.createAxis;f.prototype.createAxis=function(f,b){if("colorAxis"!==f)return k.apply(this,arguments);var c=new B(this,d(b.axis,{index:this[f].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(f){f.series=[]});this.series.forEach(function(f){f.bindAxes();
|
|
15
|
+
f.isDirtyData=!0});g(b.redraw,!0)&&this.redraw(b.animation);return c}}function x(){this.elem.attr("fill",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}function f(){this.elem.attr("stroke",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}var k=[],B;l.compose=function(l,d,g,v,y){B||(B=l);-1===k.indexOf(d)&&(k.push(d),l=d.prototype,l.collectionsWithUpdate.push("colorAxis"),l.collectionsWithInit.colorAxis=[l.addColorAxis],h(d,"afterGetAxes",r),z(d));-1===k.indexOf(g)&&(k.push(g),d=g.prototype,
|
|
16
|
+
d.fillSetter=x,d.strokeSetter=f);-1===k.indexOf(v)&&(k.push(v),h(v,"afterGetAllItems",e),h(v,"afterColorizeItem",c),h(v,"afterUpdate",b));-1===k.indexOf(y)&&(k.push(y),m(y.prototype,{optionalAxis:"colorAxis",translateColors:p}),m(y.prototype.pointClass.prototype,{setVisible:F}),h(y,"afterTranslate",t),h(y,"bindAxes",C))};l.pointSetVisible=F})(r||(r={}));return r});w(a,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
|
|
17
|
+
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});w(a,"Core/Axis/Color/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Color/Color.js"],a["Core/Axis/Color/ColorAxisComposition.js"],a["Core/Axis/Color/ColorAxisDefaults.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,
|
|
18
|
+
q,h,m,d,g,u){var r=this&&this.__extends||function(){var b=function(c,z){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var k in f)f.hasOwnProperty(k)&&(b[k]=f[k])};return b(c,z)};return function(c,z){function x(){this.constructor=c}b(c,z);c.prototype=null===z?Object.create(z):(x.prototype=z.prototype,new x)}}(),l=n.parse,v=m.noop,e=g.series,c=u.extend,b=u.isNumber,t=u.merge,C=u.pick;n=function(g){function p(b,c){var f=g.call(this,b,c)||this;
|
|
19
|
+
f.beforePadding=!1;f.chart=void 0;f.coll="colorAxis";f.dataClasses=void 0;f.legendItem=void 0;f.legendItems=void 0;f.name="";f.options=void 0;f.stops=void 0;f.visible=!0;f.init(b,c);return f}r(p,g);p.compose=function(b,c,f,k){q.compose(p,b,c,f,k)};p.prototype.init=function(b,c){var f=b.options.legend||{},k=c.layout?"vertical"!==c.layout:"vertical"!==f.layout,e=c.visible;f=t(p.defaultColorAxisOptions,c,{showEmpty:!1,title:null,visible:f.enabled&&!1!==e});this.coll="colorAxis";this.side=c.side||k?2:
|
|
20
|
+
1;this.reversed=c.reversed||!k;this.opposite=!k;g.prototype.init.call(this,b,f);this.userOptions.visible=e;c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1};p.prototype.initDataClasses=function(b){var c=this.chart,f=this.options,k=b.dataClasses.length,e,z=0,p=c.options.chart.colorCount;this.dataClasses=e=[];this.legendItems=[];(b.dataClasses||[]).forEach(function(b,x){b=t(b);e.push(b);if(c.styledMode||!b.color)"category"===f.dataClassColor?(c.styledMode||(x=
|
|
21
|
+
c.options.colors,p=x.length,b.color=x[z]),b.colorIndex=z,z++,z===p&&(z=0)):b.color=l(f.minColor).tweenTo(l(f.maxColor),2>k?.5:x/(k-1))})};p.prototype.hasData=function(){return!!(this.tickPositions||[]).length};p.prototype.setTickPositions=function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)};p.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(b){b.color=l(b[1])})};p.prototype.setOptions=
|
|
22
|
+
function(b){g.prototype.setOptions.call(this,b);this.options.crosshair=this.options.marker};p.prototype.setAxisSize=function(){var b=this.legendSymbol,c=this.chart,f=c.options.legend||{},k,e;b?(this.left=f=b.attr("x"),this.top=k=b.attr("y"),this.width=e=b.attr("width"),this.height=b=b.attr("height"),this.right=c.chartWidth-f-e,this.bottom=c.chartHeight-k-b,this.len=this.horiz?e:b,this.pos=this.horiz?f:k):this.len=(this.horiz?f.symbolWidth:f.symbolHeight)||p.defaultLegendLength};p.prototype.normalizedValue=
|
|
23
|
+
function(b){this.logarithmic&&(b=this.logarithmic.log2lin(b));return 1-(this.max-b)/(this.max-this.min||1)};p.prototype.toColor=function(b,c){var f=this.dataClasses,k=this.stops,e;if(f)for(e=f.length;e--;){var x=f[e];var t=x.from;k=x.to;if(("undefined"===typeof t||b>=t)&&("undefined"===typeof k||b<=k)){var p=x.color;c&&(c.dataClass=e,c.colorIndex=x.colorIndex);break}}else{b=this.normalizedValue(b);for(e=k.length;e--&&!(b>k[e][0]););t=k[e]||k[e+1];k=k[e+1]||t;b=1-(k[0]-b)/(k[0]-t[0]||1);p=t.color.tweenTo(k.color,
|
|
24
|
+
b)}return p};p.prototype.getOffset=function(){var b=this.legendGroup,c=this.chart.axisOffset[this.side];if(b){this.axisParent=b;g.prototype.getOffset.call(this);var f=this.chart.legend;f.allItems.forEach(function(b){b instanceof p&&b.drawLegendSymbol(f,b)});f.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=c}};p.prototype.setLegendColor=function(){var b=this.reversed,c=b?1:0;b=b?0:1;c=this.horiz?[c,0,b,0]:
|
|
25
|
+
[0,b,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};p.prototype.drawLegendSymbol=function(b,c){var f=b.padding,k=b.options,e=this.horiz,t=C(k.symbolWidth,e?p.defaultLegendLength:12),x=C(k.symbolHeight,e?12:p.defaultLegendLength),l=C(k.labelPadding,e?16:30);k=C(k.itemDistance,10);this.setLegendColor();c.legendSymbol||(c.legendSymbol=this.chart.renderer.rect(0,b.baseline-11,t,x).attr({zIndex:1}).add(c.legendGroup));this.legendItemWidth=t+f+(e?k:this.options.labels.x+
|
|
26
|
+
this.maxLabelLength);this.legendItemHeight=x+f+(e?l:0)};p.prototype.setState=function(b){this.series.forEach(function(c){c.setState(b)})};p.prototype.setVisible=function(){};p.prototype.getSeriesExtremes=function(){var b=this.series,c=b.length,f;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;){var k=b[c];var t=k.colorKey=C(k.options.colorKey,k.colorKey,k.pointValKey,k.zoneAxis,"y");var p=k.pointArrayMap;var l=k[t+"Min"]&&k[t+"Max"];if(k[t+"Data"])var d=k[t+"Data"];else if(p){d=[];p=p.indexOf(t);
|
|
27
|
+
var g=k.yData;if(0<=p&&g)for(f=0;f<g.length;f++)d.push(C(g[f][p],g[f]))}else d=k.yData;l?(k.minColorValue=k[t+"Min"],k.maxColorValue=k[t+"Max"]):(d=e.prototype.getExtremes.call(k,d),k.minColorValue=d.dataMin,k.maxColorValue=d.dataMax);"undefined"!==typeof k.minColorValue&&(this.dataMin=Math.min(this.dataMin,k.minColorValue),this.dataMax=Math.max(this.dataMax,k.maxColorValue));l||e.prototype.applyExtremes.call(k)}};p.prototype.drawCrosshair=function(b,c){var f=c&&c.plotX,k=c&&c.plotY,e=this.pos,t=
|
|
28
|
+
this.len;if(c){var p=this.toPixels(c.getNestedProperty(c.series.colorKey));p<e?p=e-2:p>e+t&&(p=e+t+2);c.plotX=p;c.plotY=this.len-p;g.prototype.drawCrosshair.call(this,b,c);c.plotX=f;c.plotY=k;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};p.prototype.getPlotLinePath=function(c){var e=
|
|
29
|
+
this.left,f=c.translatedValue,k=this.top;return b(f)?this.horiz?[["M",f-4,k-6],["L",f+4,k-6],["L",f,k],["Z"]]:[["M",e,f],["L",e-6,f+6],["L",e-6,f-6],["Z"]]:g.prototype.getPlotLinePath.call(this,c)};p.prototype.update=function(b,c){var f=this.chart.legend;this.series.forEach(function(b){b.isDirtyData=!0});(b.dataClasses&&f.allItems||this.dataClasses)&&this.destroyItems();g.prototype.update.call(this,b,c);this.legendItem&&(this.setLegendColor(),f.colorizeItem(this,!0))};p.prototype.destroyItems=function(){var b=
|
|
30
|
+
this.chart;this.legendItem?b.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(c){b.legend.destroyItem(c)});b.isDirtyLegend=!0};p.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();g.prototype.destroy.apply(this,[].slice.call(arguments))};p.prototype.remove=function(b){this.destroyItems();g.prototype.remove.call(this,b)};p.prototype.getDataClassLegendSymbols=function(){var b=this,e=b.chart,f=b.legendItems,k=e.options.legend,t=k.valueDecimals,p=
|
|
31
|
+
k.valueSuffix||"",l;f.length||b.dataClasses.forEach(function(k,g){var y=k.from,A=k.to,L=e.numberFormatter,J=!0;l="";"undefined"===typeof y?l="< ":"undefined"===typeof A&&(l="> ");"undefined"!==typeof y&&(l+=L(y,t)+p);"undefined"!==typeof y&&"undefined"!==typeof A&&(l+=" - ");"undefined"!==typeof A&&(l+=L(A,t)+p);f.push(c({chart:e,name:l,options:{},drawLegendSymbol:d.drawRectangle,visible:!0,setState:v,isDataClass:!0,setVisible:function(){J=b.visible=!J;b.series.forEach(function(b){b.points.forEach(function(b){b.dataClass===
|
|
32
|
+
g&&b.setVisible(J)})});e.legend.colorizeItem(this,J)}},k))});return f};p.defaultColorAxisOptions=h;p.defaultLegendLength=200;p.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return p}(a);Array.prototype.push.apply(a.keepProps,n.keepProps);"";return n});w(a,"Maps/MapNavigationOptionsDefault.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n){n=n.extend;var q={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,
|
|
33
|
+
height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};n(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation=q});w(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,q){function h(c){c&&
|
|
34
|
+
(c.preventDefault&&c.preventDefault(),c.stopPropagation&&c.stopPropagation(),c.cancelBubble=!0)}function m(c){this.navButtons=[];this.init(c)}var d=n.doc,g=q.addEvent,u=q.extend,r=q.isNumber,l=q.merge,v=q.objectEach,e=q.pick;m.prototype.init=function(c){this.chart=c};m.prototype.update=function(c){var b=this,t=this.chart,d=t.options.mapNavigation,r,p,a,x,f=function(b){this.handler.call(t,b);h(b)},k=b.navButtons;c&&(d=t.options.mapNavigation=l(t.options.mapNavigation,c));for(;k.length;)k.pop().destroy();
|
|
35
|
+
e(d.enableButtons,d.enabled)&&!t.renderer.forExport&&(b.navButtonsGroup||(b.navButtonsGroup=t.renderer.g().attr({zIndex:4}).add()),v(d.buttons,function(c,e){c=l(d.buttonOptions,c);!t.styledMode&&c.theme&&(r=c.theme,r.style=l(c.theme.style,c.style),a=(p=r.states)&&p.hover,x=p&&p.select,delete r.states);var v=t.renderer.button(c.text||"",0,0,f,r,a,x,void 0,"zoomIn"===e?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[e]).attr({width:c.width,
|
|
36
|
+
height:c.height,title:t.options.lang[e],padding:c.padding,zIndex:5}).add(b.navButtonsGroup);v.handler=c.onclick;g(v.element,"dblclick",h);k.push(v);u(c,{width:v.width,height:2*v.height});if(t.hasLoaded)v.align(c,!1,c.alignTo);else var m=g(t,"load",function(){v.element&&v.align(c,!1,c.alignTo);m()})}),c=function(){var c=t.exportingGroup&&t.exportingGroup.getBBox();if(c){var f=b.navButtonsGroup.getBBox();if(!(f.x>=c.x+c.width||f.x+f.width<=c.x||f.y>=c.y+c.height||f.y+f.height<=c.y)){var k=-f.y-f.height+
|
|
37
|
+
c.y-5;c=c.y+c.height-f.y+5;b.navButtonsGroup.attr({translateY:"bottom"===(d.buttonOptions&&d.buttonOptions.verticalAlign)?k:c})}}},t.hasLoaded||g(t,"render",c));this.updateEvents(d)};m.prototype.updateEvents=function(c){var b=this.chart;e(c.enableDoubleClickZoom,c.enabled)||c.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||g(b.container,"dblclick",function(c){b.pointer.onContainerDblClick(c)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(c.enableMouseWheelZoom,
|
|
38
|
+
c.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||g(b.container,void 0!==d.onwheel?"wheel":void 0!==d.onmousewheel?"mousewheel":"DOMMouseScroll",function(c){b.pointer.inClass(c.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(c),h(c));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(a.prototype,{fitToBox:function(c,b){[["x","width"],["y","height"]].forEach(function(e){var t=e[0];e=e[1];c[t]+c[e]>b[t]+b[e]&&(c[e]>b[e]?(c[e]=b[e],c[t]=b[t]):
|
|
39
|
+
c[t]=b[t]+b[e]-c[e]);c[e]>b[e]&&(c[e]=b[e]);c[t]<b[t]&&(c[t]=b[t])});return c},mapZoom:function(c,b,e,l,d){this.mapView&&(r(c)&&(c=Math.log(c)/Math.log(.5)),this.mapView.zoomBy(c,r(b)&&r(e)?this.mapView.projection.inverse([b,e]):void 0,r(l)&&r(d)?[l,d]:void 0))}});g(a,"beforeRender",function(){this.mapNavigation=new m(this);this.mapNavigation.update()});n.MapNavigation=m});w(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,n){var q=n.defined,h=n.extend,m=n.pick;n=n.wrap;
|
|
40
|
+
var d=a.prototype.normalize,g=0,u;h(a.prototype,{normalize:function(g,l){var r=this.chart;g=d.call(this,g,l);r&&r.mapView&&(l=r.mapView.pixelsToLonLat({x:g.chartX-r.plotLeft,y:g.chartY-r.plotTop}))&&h(g,l);return g},onContainerDblClick:function(d){var l=this.chart;d=this.normalize(d);l.options.mapNavigation.enableDoubleClickZoomTo?l.pointer.inClass(d.target,"highcharts-tracker")&&l.hoverPoint&&l.hoverPoint.zoomTo():l.isInsidePlot(d.chartX-l.plotLeft,d.chartY-l.plotTop)&&l.mapZoom(.5,void 0,void 0,
|
|
41
|
+
d.chartX,d.chartY)},onContainerMouseWheel:function(d){var l=this.chart;d=this.normalize(d);var a=q(d.wheelDelta)&&-d.wheelDelta/120||d.deltaY||d.detail;1<=Math.abs(a)&&(g+=Math.abs(a),u&&clearTimeout(u),u=setTimeout(function(){g=0},50));10>g&&l.isInsidePlot(d.chartX-l.plotLeft,d.chartY-l.plotTop)&&l.mapView&&l.mapView.zoomBy((l.options.mapNavigation.mouseWheelSensitivity-1)*-a,void 0,[d.chartX,d.chartY],1>Math.abs(a)?!1:void 0)}});n(a.prototype,"zoomOption",function(d){var l=this.chart.options.mapNavigation;
|
|
42
|
+
m(l.enableTouchZoom,l.enabled)&&(this.chart.options.chart.pinchType="xy");d.apply(this,[].slice.call(arguments,1))});n(a.prototype,"pinchTranslate",function(d,l,g,e,c,b,t){d.call(this,l,g,e,c,b,t);"map"===this.chart.options.chart.type&&this.hasZoom&&(d=e.scaleX>e.scaleY,this.pinchTranslateDirection(!d,l,g,e,c,b,t,d?e.scaleX:e.scaleY))})});w(a,"Series/ColorMapMixin.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,q){var h=a.noop;a=a.seriesTypes;var m=q.defined;
|
|
43
|
+
q=q.addEvent;q(n,"afterSetState",function(d){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:d&&"hover"===d.state?1:0})});return{PointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},SeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:h,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,
|
|
44
|
+
colorAttribs:function(d){var g={};!m(d.color)||d.state&&"normal"!==d.state||(g[this.colorProp||"fill"]=d.color);return g}}}});w(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function n(a,h,m,d,g,u,r,l){return[["M",a+g,h],["L",a+m-u,h],["C",a+m-u/2,h,a+m,h+u/2,a+m,h+u],["L",a+m,h+d-r],["C",a+m,h+d-r/2,a+m-r/2,h+d,a+m-r,h+d],["L",a+l,h+d],["C",a+l/2,h+d,a,h+d-l/2,a,h+d-l],["L",a,h+g],["C",a,h+g/2,a+g/2,h,a+g,h],["Z"]]}a=a.prototype.symbols;a.bottombutton=function(a,h,m,
|
|
45
|
+
d,g){g=g&&g.r||0;return n(a-1,h-1,m,d,0,0,g,g)};a.topbutton=function(a,h,m,d,g){g=g&&g.r||0;return n(a-1,h-1,m,d,g,g,0,0)};return a});w(a,"Core/Chart/MapChart.js",[a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,n,q,h){var m=this&&this.__extends||function(){var d=function(a,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,c){e.__proto__=c}||function(e,c){for(var b in c)c.hasOwnProperty(b)&&(e[b]=c[b])};
|
|
46
|
+
return d(a,g)};return function(a,g){function e(){this.constructor=a}d(a,g);a.prototype=null===g?Object.create(g):(e.prototype=g.prototype,new e)}}(),d=n.getOptions,g=h.merge,u=h.pick;a=function(a){function l(){return null!==a&&a.apply(this,arguments)||this}m(l,a);l.prototype.init=function(l,e){var c=d().credits;l=g({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:u(c.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:u(c.mapTextFull,"{geojson.copyright}")},
|
|
47
|
+
mapView:{},tooltip:{followTouchMove:!1}},l);a.prototype.init.call(this,l,e)};return l}(a);(function(d){d.maps={};d.mapChart=function(a,g,e){return new d(a,g,e)};d.splitPath=function(d){"string"===typeof d&&(d=d.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),d=d.split(/[ ,;]+/).map(function(d){return/[A-za-z]/.test(d)?d:parseFloat(d)}));return q.prototype.pathToSegments(d)}})(a||(a={}));return a});w(a,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(a){var n=
|
|
48
|
+
-Number.MAX_VALUE,q=Number.MAX_VALUE,h=-Number.MAX_VALUE,m=Number.MAX_VALUE,d;a.forEach(function(a){var g=a[a.length-2];a=a[a.length-1];"number"===typeof g&&"number"===typeof a&&(q=Math.min(q,g),n=Math.max(n,g),m=Math.min(m,a),h=Math.max(h,a),d=!0)});if(d)return{x1:q,y1:m,x2:n,y2:h}},pointInPolygon:function(a,n){var q,h=!1,m=a.x,d=a.y;a=0;for(q=n.length-1;a<n.length;q=a++){var g=n[a][1]>d;var u=n[q][1]>d;g!==u&&m<(n[q][0]-n[a][0])*(d-n[a][1])/(n[q][1]-n[a][1])+n[a][0]&&(h=!h)}return h}}});w(a,"Series/Map/MapPoint.js",
|
|
49
|
+
[a["Series/ColorMapMixin.js"],a["Maps/MapUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,q,h){var m=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var e in b)b.hasOwnProperty(e)&&(c[e]=b[e])};return a(d,e)};return function(d,e){function c(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),d=n.boundsFromPath,
|
|
50
|
+
g=h.extend,u=h.isNumber,r=h.pick;n=function(a){function l(){var e=null!==a&&a.apply(this,arguments)||this;e.options=void 0;e.path=void 0;e.series=void 0;return e}m(l,a);l.getProjectedPath=function(e,c){e.projectedPath||(c&&e.geometry?(c.hasCoordinates=!0,e.projectedPath=c.path(e.geometry)):e.projectedPath=e.path);return e.projectedPath||[]};l.prototype.applyOptions=function(e,c){var b=this.series;e=a.prototype.applyOptions.call(this,e,c);c=b.joinBy;b.mapData&&b.mapMap&&(c=a.prototype.getNestedProperty.call(e,
|
|
51
|
+
c[1]),(b="undefined"!==typeof c&&b.mapMap[c])?g(e,b):e.value=e.value||null);return e};l.prototype.getProjectedBounds=function(e){e=l.getProjectedPath(this,e);e=d(e);var c=this.properties;if(e){var b=c&&c["hc-middle-x"];c=c&&c["hc-middle-y"];e.midX=e.x1+(e.x2-e.x1)*r(this.middleX,u(b)?b:.5);b=r(this.middleY,u(c)?c:.5);this.geometry||(b=1-b);e.midY=e.y2-(e.y2-e.y1)*b;return e}};l.prototype.onMouseOver=function(e){h.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,
|
|
52
|
+
e);else this.series.onMouseOut(e)};l.prototype.zoomTo=function(){var e=this.series.chart;e.mapView&&this.bounds&&(e.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,e.redraw())};return l}(q.seriesTypes.scatter.prototype.pointClass);g(n.prototype,{dataLabelOnNull:a.PointMixin.dataLabelOnNull,isValid:a.PointMixin.isValid,moveToTopOnHover:a.PointMixin.moveToTopOnHover});return n});w(a,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,
|
|
53
|
+
parallels:void 0,rotation:void 0},zoom:void 0}});w(a,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}});w(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Maps/MapUtilities.js"],a["Core/Utilities.js"]],function(a,n,q,h,m){function d(c,b){b||(b=Object.keys(c.objects)[0]);b=c.objects[b];if(b["hc-decoded-geojson"])return b["hc-decoded-geojson"];
|
|
54
|
+
var e=c.arcs;if(c.transform){var a=c.transform,d=a.scale,p=a.translate;e=c.arcs.map(function(b){var c=0,e=0;return b.map(function(b){b=b.slice();b[0]=(c+=b[0])*d[0]+p[0];b[1]=(e+=b[1])*d[1]+p[1];return b})})}var g=function(b){return"number"===typeof b[0]?b.reduce(function(b,c,a){var f=0>c?e[~c]:e[c];0>c?(f=f.slice(0,0===a?f.length:f.length-1),f.reverse()):a&&(f=f.slice(1));return b.concat(f)},[]):b.map(g)};a=b.geometries.map(function(b){return{type:"Feature",properties:b.properties,geometry:{type:b.type,
|
|
55
|
+
coordinates:b.coordinates||g(b.arcs)}}});c={type:"FeatureCollection",copyright:c.copyright,copyrightShort:c.copyrightShort,copyrightUrl:c.copyrightUrl,features:a,"hc-recommended-mapview":b["hc-recommended-mapview"],bbox:c.bbox};return b["hc-decoded-geojson"]=c}function g(c,b,e){void 0===b&&(b="map");var a=[];c="Topology"===c.type?d(c):c;c.features.forEach(function(c){var e=c.geometry||{},d=e.type;e=e.coordinates;c=c.properties;var t;"map"!==b&&"mapbubble"!==b||"Polygon"!==d&&"MultiPolygon"!==d?"mapline"!==
|
|
56
|
+
b||"LineString"!==d&&"MultiLineString"!==d?"mappoint"===b&&"Point"===d&&e.length&&(t={geometry:{coordinates:e,type:d}}):e.length&&(t={geometry:{coordinates:e,type:d}}):e.length&&(t={geometry:{coordinates:e,type:d}});t&&(d=c&&(c.name||c.NAME),a.push(v(t,{name:"string"===typeof d?d:void 0,properties:c})))});e&&c.copyrightShort&&(e.chart.mapCredits=u(e.chart.options.credits.mapText,{geojson:c}),e.chart.mapCreditsFull=u(e.chart.options.credits.mapTextFull,{geojson:c}));return a}var u=n.format,r=q.win,
|
|
57
|
+
l=m.error,v=m.extend,e=m.merge;n=m.wrap;"";a.prototype.transformFromLatLon=function(c,b){var e=this.options.chart.proj4||r.proj4;if(e){var a=b.jsonmarginX;a=void 0===a?0:a;var d=b.jsonmarginY;d=void 0===d?0:d;var p=b.jsonres;p=void 0===p?1:p;var g=b.scale;g=void 0===g?1:g;var m=b.xoffset;m=void 0===m?0:m;var f=b.xpan;f=void 0===f?0:f;var k=b.yoffset;k=void 0===k?0:k;var h=b.ypan;h=void 0===h?0:h;c=e(b.crs,[c.lon,c.lat]);e=b.cosAngle||b.rotation&&Math.cos(b.rotation);var u=b.sinAngle||b.rotation&&
|
|
58
|
+
Math.sin(b.rotation);b=b.rotation?[c[0]*e+c[1]*u,-c[0]*u+c[1]*e]:c;return{x:((b[0]-m)*g+f)*p+a,y:-(((k-b[1])*g+h)*p-d)}}l(21,!1,this)};a.prototype.transformToLatLon=function(c,b){if(!this.options.chart.proj4&&!r.proj4)l(21,!1,this);else if(null!==c.y){var e=b.jsonmarginX,a=b.jsonmarginY,d=b.jsonres;d=void 0===d?1:d;var p=b.scale;p=void 0===p?1:p;var g=b.xoffset,m=b.xpan,f=b.yoffset,k=b.ypan;c={x:((c.x-(void 0===e?0:e))/d-(void 0===m?0:m))/p+(void 0===g?0:g),y:((c.y-(void 0===a?0:a))/d+(void 0===k?
|
|
59
|
+
0:k))/p+(void 0===f?0:f)};e=b.cosAngle||b.rotation&&Math.cos(b.rotation);a=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=r.proj4(b.crs,"WGS84",b.rotation?{x:c.x*e+c.y*-a,y:c.x*a+c.y*e}:c);return{lat:b.y,lon:b.x}}};a.prototype.fromPointToLatLon=function(c){return this.mapView&&this.mapView.projectedUnitsToLonLat(c)};a.prototype.fromLatLonToPoint=function(c){return this.mapView&&this.mapView.lonLatToProjectedUnits(c)};n(a.prototype,"addCredits",function(c,b){b=e(!0,this.options.credits,b);this.mapCredits&&
|
|
60
|
+
(b.href=null);c.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});q.geojson=g;return{geojson:g,topo2geo:d}});w(a,"Core/Geometry/PolygonClip.js",[],function(){var a=function(a,m,d){return(m[0]-a[0])*(d[1]-a[1])>(m[1]-a[1])*(d[0]-a[0])},n=function(a,m,d,g){var h=[a[0]-m[0],a[1]-m[1]],r=[d[0]-g[0],d[1]-g[1]];a=a[0]*m[1]-a[1]*m[0];d=d[0]*g[1]-d[1]*g[0];g=1/(h[0]*r[1]-h[1]*r[0]);h=[(a*r[0]-d*h[0])*g,(a*r[1]-d*h[1])*g];h.isIntersection=!0;return h},q;(function(h){h.clipLineString=
|
|
61
|
+
function(a,d){var g=[];a=h.clipPolygon(a,d,!1);for(d=1;d<a.length;d++)a[d].isIntersection&&a[d-1].isIntersection&&(g.push(a.splice(0,d)),d=0),d===a.length-1&&g.push(a);return g};h.clipPolygon=function(m,d,g){void 0===g&&(g=!0);for(var h=d[d.length-1],r,l,v=m,e=0;e<d.length;e++){var c=v;m=d[e];v=[];r=g?c[c.length-1]:c[0];for(var b=0;b<c.length;b++)l=c[b],a(h,m,l)?(a(h,m,r)||v.push(n(h,m,r,l)),v.push(l)):a(h,m,r)&&v.push(n(h,m,r,l)),r=l;h=m}return v}})(q||(q={}));return q});w(a,"Maps/Projections/LambertConformalConic.js",
|
|
62
|
+
[],function(){var a=Math.sign||function(a){return 0===a?0:0<a?1:-1},n=Math.PI/180,q=Math.PI/2;return function(){function h(h){var d,g=(h.parallels||[]).map(function(a){return a*n}),m=g[0]||0;g=null!==(d=g[1])&&void 0!==d?d:m;d=Math.cos(m);"object"===typeof h.projectedBounds&&(this.projectedBounds=h.projectedBounds);h=m===g?Math.sin(m):Math.log(d/Math.cos(g))/Math.log(Math.tan((q+g)/2)/Math.tan((q+m)/2));1e-10>Math.abs(h)&&(h=1e-10*(a(h)||1));this.n=h;this.c=d*Math.pow(Math.tan((q+m)/2),h)/h}h.prototype.forward=
|
|
63
|
+
function(a){var d=a[0]*n,g=this.c,h=this.n,m=this.projectedBounds;a=a[1]*n;0<g?a<-q+.000001&&(a=-q+.000001):a>q-.000001&&(a=q-.000001);var l=g/Math.pow(Math.tan((q+a)/2),h);a=l*Math.sin(h*d)*63.78137;d=63.78137*(g-l*Math.cos(h*d));g=[a,d];m&&(a<m.x1||a>m.x2||d<m.y1||d>m.y2)&&(g.outside=!0);return g};h.prototype.inverse=function(h){var d=h[0]/63.78137,g=this.c,m=this.n;h=g-h[1]/63.78137;var r=a(m)*Math.sqrt(d*d+h*h),l=Math.atan2(d,Math.abs(h))*a(h);0>h*m&&(l-=Math.PI*a(d)*a(h));return[l/m/n,(2*Math.atan(Math.pow(g/
|
|
64
|
+
r,1/m))-q)/n]};return h}()});w(a,"Maps/Projections/EqualEarth.js",[],function(){var a=Math.sqrt(3)/2;return function(){function n(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}n.prototype.forward=function(n){var h=Math.PI/180,m=Math.asin(a*Math.sin(n[1]*h)),d=m*m,g=d*d*d;return[n[0]*h*Math.cos(m)*74.03120656864502/(a*(1.340264+3*-.081106*d+g*(7*.000893+.034164*d))),74.03120656864502*m*(1.340264+-.081106*d+g*(.000893+.003796*d))]};n.prototype.inverse=
|
|
65
|
+
function(n){var h=n[0]/74.03120656864502;n=n[1]/74.03120656864502;var m=180/Math.PI,d=n,g;for(g=0;12>g;++g){var q=d*d;var r=q*q*q;var l=d*(1.340264+-.081106*q+r*(.000893+.003796*q))-n;q=1.340264+3*-.081106*q+r*(7*.000893+.034164*q);d-=l/=q;if(1e-9>Math.abs(l))break}q=d*d;return[m*a*h*(1.340264+3*-.081106*q+q*q*q*(7*.000893+.034164*q))/Math.cos(d),m*Math.asin(Math.sin(d)/a)]};return n}()});w(a,"Maps/Projections/Miller.js",[],function(){var a=Math.PI/4,n=Math.PI/180;return function(){function q(){this.bounds=
|
|
66
|
+
{x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}q.prototype.forward=function(h){return[h[0]*n*63.78137,79.7267125*Math.log(Math.tan(a+.4*h[1]*n))]};q.prototype.inverse=function(h){return[h[0]/63.78137/n,2.5*(Math.atan(Math.exp(h[1]/63.78137*.8))-a)/n]};return q}()});w(a,"Maps/Projections/Orthographic.js",[],function(){var a=Math.PI/180;return function(){function n(){this.antimeridianCutting=!1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,
|
|
67
|
+
y2:63.78460826781007}}n.prototype.forward=function(n){var h=n[0];n=n[1]*a;n=[Math.cos(n)*Math.sin(h*a)*63.78460826781007,63.78460826781007*Math.sin(n)];if(-90>h||90<h)n.outside=!0;return n};n.prototype.inverse=function(n){var h=n[0]/63.78460826781007;n=n[1]/63.78460826781007;var m=Math.sqrt(h*h+n*n),d=Math.asin(m),g=Math.sin(d);return[Math.atan2(h*g,m*Math.cos(d))/a,Math.asin(m&&n*g/m)/a]};return n}()});w(a,"Maps/Projections/WebMercator.js",[],function(){var a=Math.PI/180;return function(){function n(){this.bounds=
|
|
68
|
+
{x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071};this.maxLatitude=85.0511287798}n.prototype.forward=function(n){var h=Math.sin(n[1]*a);h=[63.78137*n[0]*a,63.78137*Math.log((1+h)/(1-h))/2];85.0511287798<Math.abs(n[1])&&(h.outside=!0);return h};n.prototype.inverse=function(n){return[n[0]/(63.78137*a),(2*Math.atan(Math.exp(n[1]/63.78137))-Math.PI/2)/a]};return n}()});w(a,"Maps/Projections/ProjectionRegistry.js",[a["Maps/Projections/LambertConformalConic.js"],
|
|
69
|
+
a["Maps/Projections/EqualEarth.js"],a["Maps/Projections/Miller.js"],a["Maps/Projections/Orthographic.js"],a["Maps/Projections/WebMercator.js"]],function(a,n,q,h,m){return{EqualEarth:n,LambertConformalConic:a,Miller:q,Orthographic:h,WebMercator:m}});w(a,"Maps/Projection.js",[a["Core/Geometry/PolygonClip.js"],a["Maps/Projections/ProjectionRegistry.js"],a["Core/Utilities.js"]],function(a,n,q){var h=this&&this.__spreadArrays||function(){for(var a=0,e=0,c=arguments.length;e<c;e++)a+=arguments[e].length;
|
|
70
|
+
a=Array(a);var b=0;for(e=0;e<c;e++)for(var d=arguments[e],g=0,l=d.length;g<l;g++,b++)a[b]=d[g];return a},m=a.clipLineString,d=a.clipPolygon,g=q.clamp,u=q.erase,r=2*Math.PI/360,l=function(a){-180>a&&(a+=360);180<a&&(a-=360);return a};return function(){function a(e){void 0===e&&(e={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=e;var c=e.name,b=e.projectedBounds,d=e.rotation;this.rotator=d?this.getRotator(d):void 0;if(c=c?a.registry[c]:void 0)this.def=new c(e);var g=
|
|
71
|
+
this.def,l=this.rotator;g&&(this.maxLatitude=g.maxLatitude||90,this.hasGeoProjection=!0);l&&g?(this.forward=function(b){return g.forward(l.forward(b))},this.inverse=function(b){return l.inverse(g.inverse(b))}):g?(this.forward=function(b){return g.forward(b)},this.inverse=function(b){return g.inverse(b)}):l&&(this.forward=l.forward,this.inverse=l.inverse);this.bounds="world"===b?g&&g.bounds:b}a.add=function(e,c){a.registry[e]=c};a.greatCircle=function(a,c,b){var e=Math.atan2,d=Math.cos,g=Math.sin,
|
|
72
|
+
l=Math.sqrt,h=a[1]*r,n=a[0]*r,f=c[1]*r,k=c[0]*r,m=f-h,q=k-n;m=g(m/2)*g(m/2)+d(h)*d(f)*g(q/2)*g(q/2);m=2*e(l(m),l(1-m));var v=Math.round(6371E3*m/5E5);q=[];b&&q.push(a);if(1<v)for(v=a=1/v;.999>v;v+=a){var u=g((1-v)*m)/g(m),E=g(v*m)/g(m),y=u*d(h)*d(n)+E*d(f)*d(k),A=u*d(h)*g(n)+E*d(f)*g(k);u=u*g(h)+E*g(f);u=e(u,l(y*y+A*A));y=e(A,y);q.push([y/r,u/r])}b&&q.push(c);return q};a.insertGreatCircles=function(e){for(var c=e.length-1;c--;)if(10<Math.max(Math.abs(e[c][0]-e[c+1][0]),Math.abs(e[c][1]-e[c+1][1]))){var b=
|
|
73
|
+
a.greatCircle(e[c],e[c+1]);b.length&&e.splice.apply(e,h([c+1,0],b))}};a.toString=function(a){a=a||{};var c=a.rotation;return[a.name,c&&c.join(",")].join(";")};a.prototype.lineIntersectsBounds=function(a){var c=this.bounds||{},b=c.x2,e=c.y1,d=c.y2,g=function(b,a,c){var f=b[0];b=b[1];var e=a?0:1;if("number"===typeof c&&f[a]>=c!==b[a]>=c)return f=f[e]+(c-f[a])/(b[a]-f[a])*(b[e]-f[e]),a?[f,c]:[c,f]},l=a[0];if(c=g(a,0,c.x1))l=c,a[1]=c;else if(c=g(a,0,b))l=c,a[1]=c;if(c=g(a,1,e))l=c;else if(c=g(a,1,d))l=
|
|
74
|
+
c;return l};a.prototype.getRotator=function(a){var c=a[0]*r,b=(a[1]||0)*r;a=(a[2]||0)*r;var e=Math.cos(b),d=Math.sin(b),g=Math.cos(a),l=Math.sin(a);if(0!==c||0!==b||0!==a)return{forward:function(a){var b=a[0]*r+c,f=a[1]*r,k=Math.cos(f);a=Math.cos(b)*k;b=Math.sin(b)*k;f=Math.sin(f);k=f*e+a*d;return[Math.atan2(b*g-k*l,a*e-f*d)/r,Math.asin(k*g+b*l)/r]},inverse:function(a){var b=a[0]*r,f=a[1]*r,k=Math.cos(f);a=Math.cos(b)*k;b=Math.sin(b)*k;f=Math.sin(f);k=f*g-b*l;return[(Math.atan2(b*g+f*l,a*e+k*d)-c)/
|
|
75
|
+
r,Math.asin(k*e-a*d)/r]}}};a.prototype.forward=function(a){return a};a.prototype.inverse=function(a){return a};a.prototype.cutOnAntimeridian=function(e,c){var b=[],d=[e];e.forEach(function(a,f){var d=e[f-1];if(!f){if(!c)return;d=e[e.length-1]}var k=d[0],y=a[0];(-90>k||90<k)&&(-90>y||90<y)&&0<k!==0<y&&(y=g((180-(k+360)%360)/((y+360)%360-(k+360)%360),0,1),b.push({i:f,lat:d[1]+y*(a[1]-d[1]),direction:0>k?1:-1,previousLonLat:d,lonLat:a}))});if(b.length)if(c){if(1===b.length%2){var n=b.slice().sort(function(a,
|
|
76
|
+
b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];u(b,n)}for(var m=b.length-2;0<=m;){var p=b[m].i,r=l(180+.000001*b[m].direction),x=l(180-.000001*b[m].direction);p=e.splice.apply(e,h([p,b[m+1].i-p],a.greatCircle([r,b[m].lat],[r,b[m+1].lat],!0)));p.push.apply(p,a.greatCircle([x,b[m+1].lat],[x,b[m].lat],!0));d.push(p);m-=2}if(n)for(r=0;r<d.length;r++){m=n.direction;var f=n.lat;x=d[r];p=x.indexOf(n.lonLat);if(-1<p){r=(0>f?-1:1)*this.maxLatitude;var k=l(180+.000001*m),q=l(180-.000001*m);f=a.greatCircle([k,
|
|
77
|
+
f],[k,r],!0);for(k+=120*m;-180<k&&180>k;k+=120*m)f.push([k,r]);f.push.apply(f,a.greatCircle([q,r],[q,n.lat],!0));x.splice.apply(x,h([p,0],f));break}}}else for(m=b.length;m--;)p=b[m].i,p=e.splice(p,e.length,[l(180+.000001*b[m].direction),b[m].lat]),p.unshift([l(180-.000001*b[m].direction),b[m].lat]),d.push(p);return d};a.prototype.path=function(e){var c=this,b=this.bounds,g=this.def,l=this.rotator,h=[],p="Polygon"===e.type||"MultiPolygon"===e.type,n=this.hasGeoProjection,r=!g||!1!==g.antimeridianCutting,
|
|
78
|
+
f=r?l:void 0,k=r?g||this:this,q;b&&(q=[[b.x1,b.y1],[b.x2,b.y1],[b.x2,b.y2],[b.x1,b.y2]]);var v=function(e){e=e.map(function(a){if(r){f&&(a=f.forward(a));var b=a[0];.000001>Math.abs(b-180)&&(b=180>b?179.999999:180.000001);a=[b,a[1]]}return a});var g=[e];n&&(a.insertGreatCircles(e),r&&(g=c.cutOnAntimeridian(e,p)));g.forEach(function(c){if(!(2>c.length)){var f=!1,e=!1,g=function(a){f?h.push(["L",a[0],a[1]]):(h.push(["M",a[0],a[1]]),f=!0)},l=!1,t=!1,x=c.map(function(a){a=k.forward(a);a.outside?l=!0:t=
|
|
79
|
+
!0;Infinity===a[1]?a[1]=1E10:-Infinity===a[1]&&(a[1]=-1E10);return a});if(r){p&&x.push(x[0]);if(l){if(!t)return;if(q)if(p)x=d(x,q);else if(b){m(x,q).forEach(function(a){f=!1;a.forEach(g)});return}}x.forEach(g)}else for(var K=0;K<x.length;K++){var v=c[K],u=x[K];if(u.outside)e=!0;else{if(p&&!E){var E=v;c.push(v);x.push(u)}e&&B&&(p&&n?a.greatCircle(B,v).forEach(function(a){return g(k.forward(a))}):f=!1);g(u);var B=v;e=!1}}}})};"LineString"===e.type?v(e.coordinates):"MultiLineString"===e.type?e.coordinates.forEach(function(a){return v(a)}):
|
|
80
|
+
"Polygon"===e.type?(e.coordinates.forEach(function(a){return v(a)}),h.length&&h.push(["Z"])):"MultiPolygon"===e.type&&(e.coordinates.forEach(function(a){a.forEach(function(a){return v(a)})}),h.length&&h.push(["Z"]));return h};a.registry=n;return a}()});w(a,"Maps/MapView.js",[a["Maps/MapViewOptionsDefault.js"],a["Maps/MapViewInsetsOptionsDefault.js"],a["Extensions/GeoJSON.js"],a["Core/Chart/MapChart.js"],a["Maps/MapUtilities.js"],a["Maps/Projection.js"],a["Core/Utilities.js"]],function(a,n,q,h,m,d,
|
|
81
|
+
g){var u=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),r=this&&this.__spreadArrays||function(){for(var a=0,b=0,c=arguments.length;b<c;b++)a+=arguments[b].length;a=Array(a);var f=0;for(b=0;b<c;b++)for(var e=
|
|
82
|
+
arguments[b],d=0,k=e.length;d<k;d++,f++)a[f]=e[d];return a},l=q.topo2geo,v=h.maps,e=m.boundsFromPath,c=m.pointInPolygon,b=g.addEvent,t=g.clamp,C=g.fireEvent,F=g.isArray,p=g.isNumber,z=g.isObject,x=g.isString,f=g.merge,k=g.pick,B=g.relativeLength,I=function(a,b){return Math.log(400.979322/Math.max((a.x2-a.x1)/(b.width/256),(a.y2-a.y1)/(b.height/256)))/Math.log(2)},G=function(){function e(c,k){var g=this;this.insets=[];this.padding=[0,0,0,0];this.eventsToUnbind=[];var y;if(!(this instanceof H)){var l=
|
|
83
|
+
r([c.options.chart.map],(c.options.series||[]).map(function(a){return a.mapData})).map(function(a){return g.getGeoMap(a)}),h=[];l.forEach(function(a){a&&(y||(y=a["hc-recommended-mapview"]),a.bbox&&(a=a.bbox,h.push({x1:a[0],y1:a[1],x2:a[2],y2:a[3]})))});var A=h.length&&e.compositeBounds(h);if(A){var m=A.x1;var n=A.y1,t=A.x2;A=A.y2;m=180<t-m&&90<A-n?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[n,A],rotation:[-(m+t)/2]}}this.geoMap=l[0]}this.userOptions=k||{};l=f(a,{projection:m},y,k);
|
|
84
|
+
A=y&&y.insets;k=k&&k.insets;A&&k&&(l.insets=e.mergeInsets(A,k));this.chart=c;this.center=l.center;this.options=l;this.projection=new d(l.projection);this.playingField=c.plotBox;this.zoom=l.zoom||0;this.createInsets();this.eventsToUnbind.push(b(c,"afterSetChartSize",function(){g.playingField=g.getField();if(void 0===g.minZoom||g.minZoom===g.zoom)g.fitToBounds(void 0,void 0,!1),p(g.userOptions.zoom)&&(g.zoom=g.userOptions.zoom),g.userOptions.center&&f(!0,g.center,g.userOptions.center)}));this.setUpEvents()}
|
|
85
|
+
e.mergeInsets=function(a,b){var c=function(a){var b={};a.forEach(function(a,c){b[a&&a.id||"i"+c]=a});return b},e=f(c(a),c(b));return Object.keys(e).map(function(a){return e[a]})};e.prototype.createInsets=function(){var a=this,b=this.options,c=b.insets;c&&c.forEach(function(c){c=new H(a,f(b.insetOptions,c));a.insets.push(c)})};e.prototype.fitToBounds=function(a,b,c,f){void 0===c&&(c=!0);var e=a||this.getProjectedBounds();if(e){var d=k(b,a?0:this.options.padding);b=this.getField(!1);d=F(d)?d:[d,d,d,
|
|
86
|
+
d];this.padding=[B(d[0],b.height),B(d[1],b.width),B(d[2],b.height),B(d[3],b.width)];this.playingField=this.getField();b=I(e,this.playingField);a||(this.minZoom=b);a=this.projection.inverse([(e.x2+e.x1)/2,(e.y2+e.y1)/2]);this.setView(a,b,c,f)}};e.prototype.getField=function(a){void 0===a&&(a=!0);a=a?this.padding:[0,0,0,0];return{x:a[3],y:a[0],width:this.chart.plotWidth-a[1]-a[3],height:this.chart.plotHeight-a[0]-a[2]}};e.prototype.getGeoMap=function(a){if(x(a))return v[a];if(z(a,!0)){if("FeatureCollection"===
|
|
87
|
+
a.type)return a;if("Topology"===a.type)return l(a)}};e.prototype.getMapBBox=function(){var a=this.getProjectedBounds(),b=this.getScale();if(a){var c=this.padding,f=this.projectedUnitsToPixels({x:a.x1,y:a.y2});return{width:(a.x2-a.x1)*b+c[1]+c[3],height:(a.y2-a.y1)*b+c[0]+c[2],x:f.x-c[3],y:f.y-c[0]}}};e.prototype.getProjectedBounds=function(){var a=this.chart.series.reduce(function(a,b){var c=b.getProjectedBounds&&b.getProjectedBounds();c&&!1!==b.options.affectsMapView&&a.push(c);return a},[]);return this.projection.bounds||
|
|
88
|
+
e.compositeBounds(a)};e.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};e.prototype.getSVGTransform=function(){var a=this.playingField,b=a.x,c=a.y,f=a.width;a=a.height;var e=this.projection.forward(this.center),d=this.projection.hasCoordinates?-1:1,k=this.getScale();d*=k;return{scaleX:k,scaleY:d,translateX:b+f/2-e[0]*k,translateY:c+a/2-e[1]*d}};e.prototype.lonLatToPixels=function(a){if(a=this.lonLatToProjectedUnits(a))return this.projectedUnitsToPixels(a)};e.prototype.lonLatToProjectedUnits=
|
|
89
|
+
function(a){var b=this.chart,f=b.mapTransforms;if(f){for(var e in f)if(Object.hasOwnProperty.call(f,e)&&f[e].hitZone){var d=b.transformFromLatLon(a,f[e]);if(d&&c(d,f[e].hitZone.coordinates[0]))return d}return b.transformFromLatLon(a,f["default"])}f=0;for(e=this.insets;f<e.length;f++)if(b=e[f],b.options.geoBounds&&c({x:a.lon,y:a.lat},b.options.geoBounds.coordinates[0]))return a=b.projection.forward([a.lon,a.lat]),a=b.projectedUnitsToPixels({x:a[0],y:a[1]}),this.pixelsToProjectedUnits(a);a=this.projection.forward([a.lon,
|
|
90
|
+
a.lat]);if(!a.outside)return{x:a[0],y:a[1]}};e.prototype.projectedUnitsToLonLat=function(a){var b=this.chart,f=b.mapTransforms;if(f){for(var e in f)if(Object.hasOwnProperty.call(f,e)&&f[e].hitZone&&c(a,f[e].hitZone.coordinates[0]))return b.transformToLatLon(a,f[e]);return b.transformToLatLon(a,f["default"])}f=this.projectedUnitsToPixels(a);e=0;for(var d=this.insets;e<d.length;e++)if(b=d[e],b.hitZone&&c(f,b.hitZone.coordinates[0]))return a=b.pixelsToProjectedUnits(f),a=b.projection.inverse([a.x,a.y]),
|
|
91
|
+
{lon:a[0],lat:a[1]};a=this.projection.inverse([a.x,a.y]);return{lon:a[0],lat:a[1]}};e.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};e.prototype.setView=function(a,b,c,f){void 0===c&&(c=!0);a&&(this.center=a);"number"===typeof b&&("number"===typeof this.minZoom&&(b=Math.max(b,this.minZoom)),"number"===typeof this.options.maxZoom&&(b=Math.min(b,this.options.maxZoom)),this.zoom=b);var e=this.getProjectedBounds();if(e){a=this.projection.forward(this.center);
|
|
92
|
+
var d=this.playingField;b=d.x;var k=d.y,g=d.width;d=d.height;var l=this.getScale(),h=this.projectedUnitsToPixels({x:e.x1,y:e.y1}),m=this.projectedUnitsToPixels({x:e.x2,y:e.y2});e=[(e.x1+e.x2)/2,(e.y1+e.y2)/2];var p=h.x,n=m.y;m=m.x;h=h.y;m-p<g?a[0]=e[0]:p<b&&m<b+g?a[0]+=Math.max(p-b,m-g-b)/l:m>b+g&&p>b&&(a[0]+=Math.min(m-g-b,p-b)/l);h-n<d?a[1]=e[1]:n<k&&h<k+d?a[1]-=Math.max(n-k,h-d-k)/l:h>k+d&&n>k&&(a[1]-=Math.min(h-d-k,n-k)/l);this.center=this.projection.inverse(a);this.insets.forEach(function(a){a.options.field&&
|
|
93
|
+
(a.hitZone=a.getHitZone(),a.playingField=a.getField())});this.render()}C(this,"afterSetView");c&&this.redraw(f)};e.prototype.projectedUnitsToPixels=function(a){var b=this.getScale(),c=this.projection.forward(this.center),f=this.playingField;return{x:f.x+f.width/2-b*(c[0]-a.x),y:f.y+f.height/2+b*(c[1]-a.y)}};e.prototype.pixelsToLonLat=function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))};e.prototype.pixelsToProjectedUnits=function(a){var b=a.x;a=a.y;var c=this.getScale(),
|
|
94
|
+
f=this.projection.forward(this.center),e=this.playingField;return{x:f[0]+(b-(e.x+e.width/2))/c,y:f[1]-(a-(e.y+e.height/2))/c}};e.prototype.setUpEvents=function(){var a=this,c=this.chart,f,e,d,k=function(b){var k=c.pointer.pinchDown,g=a.projection,l=c.mouseDownX,h=c.mouseDownY;1===k.length&&(l=k[0].chartX,h=k[0].chartY);if("number"===typeof l&&"number"===typeof h){var m=l+","+h,p=b.originalEvent;k=p.chartX;p=p.chartY;m!==e&&(e=m,f=a.projection.forward(a.center),d=(a.projection.options.rotation||[0,
|
|
95
|
+
0]).slice());m=(m=g.def&&g.def.bounds)&&I(m,a.playingField)||-Infinity;"Orthographic"===g.options.name&&(a.minZoom||Infinity)<1.1*m?(g=440/(a.getScale()*Math.min(c.plotWidth,c.plotHeight)),d&&(l=(l-k)*g-d[0],h=t(-d[1]-(h-p)*g,-80,80),k=a.zoom,a.update({projection:{rotation:[-l,-h]}},!1),a.zoom=k,c.redraw(!1))):(g=a.getScale(),h=a.projection.inverse([f[0]+(l-k)/g,f[1]-(h-p)/g]),a.setView(h,void 0,!0,!1));b.preventDefault()}};b(c,"pan",k);b(c,"touchpan",k);b(c,"selection",function(b){if(b.resetSelection)a.zoomBy();
|
|
96
|
+
else{var f=b.x-c.plotLeft,e=b.y-c.plotTop,d=a.pixelsToProjectedUnits({x:f,y:e}),k=d.y;d=d.x;f=a.pixelsToProjectedUnits({x:f+b.width,y:e+b.height});a.fitToBounds({x1:d,y1:k,x2:f.x,y2:f.y},void 0,!0,b.originalEvent.touches?!1:void 0);/^touch/.test(b.originalEvent.type)||c.showResetZoom();b.preventDefault()}})};e.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};e.prototype.update=function(a,b,c){void 0===b&&(b=!0);var e=a.projection;e=e&&
|
|
97
|
+
d.toString(e)!==d.toString(this.options.projection);var k=!1;f(!0,this.userOptions,a);f(!0,this.options,a);"insets"in a&&(this.insets.forEach(function(a){return a.destroy()}),this.insets.length=0,k=!0);if(e||k)this.chart.series.forEach(function(a){var b=a.transformGroups;a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0;if(k&&b)for(;1<b.length;)(a=b.pop())&&a.destroy()}),e&&(this.projection=new d(this.options.projection)),k&&this.createInsets(),a.center||p(a.zoom)||this.fitToBounds(void 0,
|
|
98
|
+
void 0,!1);(a.center||p(a.zoom))&&this.setView(this.options.center,a.zoom,!1);b&&this.chart.redraw(c)};e.prototype.zoomBy=function(a,b,c,f){var e=this.chart,d=this.projection.forward(this.center);b=b?this.projection.forward(b):[];var k=b[0],g=b[1];"number"===typeof a?(a=this.zoom+a,b=void 0,c&&(k=c[0],g=c[1],c=this.getScale(),k=k-e.plotLeft-e.plotWidth/2,e=g-e.plotTop-e.plotHeight/2,k=d[0]+k/c,g=d[1]+e/c),"number"===typeof k&&"number"===typeof g&&(c=1-Math.pow(2,this.zoom)/Math.pow(2,a),k=d[0]-k,
|
|
99
|
+
e=d[1]-g,d[0]-=k*c,d[1]+=e*c,b=this.projection.inverse(d)),this.setView(b,a,void 0,f)):this.fitToBounds(void 0,void 0,void 0,f)};e.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);return a},f(a[0]))};return e}(),H=function(a){function b(b,c){var d=a.call(this,b.chart,c)||this;d.id=c.id;d.mapView=b;d.options=f(n,c);d.allBounds=[];d.options.geoBounds&&(b=b.projection.path(d.options.geoBounds),
|
|
100
|
+
d.geoBoundsProjectedBox=e(b),d.geoBoundsProjectedPolygon=b.map(function(a){return[a[1]||0,a[2]||0]}));return d}u(b,a);b.prototype.getField=function(b){void 0===b&&(b=!0);var c=this.hitZone;if(c){var f=b?this.padding:[0,0,0,0];c=c.coordinates[0];var e=c.map(function(a){return a[0]}),d=c.map(function(a){return a[1]});c=Math.min.apply(0,e)+f[3];e=Math.max.apply(0,e)-f[1];var k=Math.min.apply(0,d)+f[0];f=Math.max.apply(0,d)-f[2];if(p(c)&&p(k))return{x:c,y:k,width:e-c,height:f-k}}return a.prototype.getField.call(this,
|
|
101
|
+
b)};b.prototype.getHitZone=function(){var a=this.chart,b=this.mapView,c=this.options,e=(c.field||{}).coordinates;if(e){e=e[0];if("percent"===c.units){var d="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||f(a.plotBox,{x:0,y:0});e=e.map(function(a){return[B(a[0]+"%",d.width,d.x),B(a[1]+"%",d.height,d.y)]})}return{type:"Polygon",coordinates:[e]}}};b.prototype.getProjectedBounds=function(){return G.compositeBounds(this.allBounds)};b.prototype.isInside=function(a){var b=this.geoBoundsProjectedBox,f=this.geoBoundsProjectedPolygon;
|
|
102
|
+
return!!(b&&a.x>=b.x1&&a.x<=b.x2&&a.y>=b.y1&&a.y<=b.y2&&f&&c(a,f))};b.prototype.render=function(){var a=this.chart,b=this.mapView,c=this.options,f=c.borderPath||c.field;if(f&&b.group){var e=!0;this.border||(this.border=a.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),e=!1);a.styledMode||this.border.attr({stroke:c.borderColor,"stroke-width":c.borderWidth});var d=Math.round(this.border.strokeWidth())%2/2,k="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||b.playingField;b=(f.coordinates||
|
|
103
|
+
[]).reduce(function(b,f){return f.reduce(function(b,f,e){var g=f[0];f=f[1];"percent"===c.units&&(g=a.plotLeft+B(g+"%",k.width,k.x),f=a.plotTop+B(f+"%",k.height,k.y));g=Math.floor(g)+d;f=Math.floor(f)+d;b.push(0===e?["M",g,f]:["L",g,f]);return b},b)},[]);this.border[e?"animate":"attr"]({d:b})}};b.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(a){return a()})};b.prototype.setUpEvents=function(){};return b}(G);b(h,"afterInit",function(){this.mapView=
|
|
104
|
+
new G(this,this.options.mapView)});return G});w(a,"Series/Map/MapSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Series/ColorMapMixin.js"],a["Series/CenteredUtilities.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Chart/MapChart.js"],a["Series/Map/MapPoint.js"],a["Maps/MapView.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,n,q,h,m,d,g,u,r,l,v,e){var c=this&&this.__extends||function(){var a=
|
|
105
|
+
function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),b=a.animObject;a=h.noop;var t=d.splitPath;d=l.seriesTypes;var C=d.column,F=d.scatter;d=e.extend;var p=e.find,z=e.fireEvent,x=e.getNestedProperty,f=e.isArray,k=e.isNumber,B=e.isObject,I=e.merge,
|
|
106
|
+
G=e.objectEach,H=e.pick,E=e.splat;e=function(a){function e(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.processedData=[];return b}c(e,a);e.prototype.animate=function(a){var c=this.chart,e=this.group,f=b(this.options.animation);c.renderer.isSVG&&(a?e.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.001,scaleY:.001}):e.animate({translateX:c.plotLeft,translateY:c.plotTop,
|
|
107
|
+
scaleX:1,scaleY:1},f))};e.prototype.animateDrilldown=function(a){var b=this.chart,c=this.group;b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),b.drilldown&&b.drilldown.fadeInGroup(this.dataLabelsGroup)))};e.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+
|
|
108
|
+
a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};e.prototype.animateDrillupTo=function(a){C.prototype.animateDrillupTo.call(this,a)};e.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;delete a.insetIndex;delete a.projectedPath});delete this.bounds};e.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};e.prototype.drawMapDataLabels=function(){r.prototype.drawDataLabels.call(this);
|
|
109
|
+
this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};e.prototype.drawPoints=function(){var a=this,b=this.chart,c=this.group,e=this.transformGroups,f=void 0===e?[]:e,d=b.mapView,k=b.renderer;d&&(this.transformGroups=f,f[0]||(f[0]=k.g().add(c)),d.insets.forEach(function(a,b){f[b+1]||f.push(k.g().add(c))}),this.doFullTranslate()&&(this.points.forEach(function(c){var e=c.graphic,d=c.shapeArgs;c.group=f["number"===typeof c.insetIndex?c.insetIndex+1:0];e&&e.parentGroup!==c.group&&e.add(c.group);
|
|
110
|
+
d&&b.hasRendered&&!b.styledMode&&(d.fill=a.pointAttribs(c,c.state).fill)}),C.prototype.drawPoints.apply(this),this.points.forEach(function(c){if(c.graphic){var e="";c.name&&(e+="highcharts-name-"+c.name.replace(/ /g,"-").toLowerCase());c.properties&&c.properties["hc-key"]&&(e+=" highcharts-key-"+c.properties["hc-key"].toString().toLowerCase());e&&c.graphic.addClass(e);b.styledMode&&c.graphic.css(a.pointAttribs(c,c.selected&&"select"||void 0))}})),f.forEach(function(c,e){var f=(0===e?d:d.insets[e-
|
|
111
|
+
1]).getSVGTransform(),g=H(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1),l=f.scaleX,h=0<f.scaleY?1:-1;if(k.globalAnimation&&b.hasRendered){var m=Number(c.attr("translateX")),p=Number(c.attr("translateY")),n=Number(c.attr("scaleX"));c.attr({animator:0}).animate({animator:1},{step:function(a,b){a=n+(l-n)*b.pos;c.attr({translateX:m+(f.translateX-m)*b.pos,translateY:p+(f.translateY-p)*b.pos,scaleX:a,scaleY:a*h});c.element.setAttribute("stroke-width",g/a)}})}else c.attr(f),
|
|
112
|
+
c.element.setAttribute("stroke-width",g/l)}),this.drawMapDataLabels())};e.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var a=this.chart.mapView,b=a.insets,c=a.projection,e=[];(this.points||[]).forEach(function(a){if(a.path||a.geometry){"string"===typeof a.path?a.path=t(a.path):f(a.path)&&"M"===a.path[0]&&(a.path=v.prototype.pathToSegments(a.path));if(!a.bounds){var d=a.getProjectedBounds(c);if(d){a.labelrank=H(a.labelrank,(d.x2-d.x1)*(d.y2-d.y1));var g=d.midX,l=d.midY;
|
|
113
|
+
if(b&&k(g)&&k(l)){var h=p(b,function(a){return a.isInside({x:g,y:l})});h&&(delete a.projectedPath,(d=a.getProjectedBounds(h.projection))&&h.allBounds.push(d),a.insetIndex=b.indexOf(h))}a.bounds=d}}a.bounds&&void 0===a.insetIndex&&e.push(a.bounds)}});this.bounds=u.compositeBounds(e)}return this.bounds};e.prototype.hasData=function(){return!!this.processedXData.length};e.prototype.pointAttribs=function(a,b){var c=a.series.chart,e=c.mapView;b=c.styledMode?this.colorAttribs(a):C.prototype.pointAttribs.call(this,
|
|
114
|
+
a,b);(a=a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&e&&(a/=e.getScale());b.dashstyle&&e&&this.options.borderWidth&&(a=this.options.borderWidth/e.getScale());b["stroke-width"]=H(a,"inherit");return b};e.prototype.setData=function(){a.prototype.setData.apply(this,arguments);this.processData();this.generatePoints()};e.prototype.processData=function(){var a=this.options,b=a.data,c=this.chart.options.chart,e=this.joinBy,d=a.keys||this.pointArrayMap,l=[],
|
|
115
|
+
m={},p=this.chart.mapView;p=p&&(B(a.mapData,!0)?p.getGeoMap(a.mapData):p.geoMap);var n=this.chart.mapTransforms;(this.chart.mapTransforms=n=c.mapTransforms||p&&p["hc-transform"]||n)&&G(n,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(f(a.mapData))var t=a.mapData;else p&&"FeatureCollection"===p.type&&(this.mapTitle=p.title,t=h.geojson(p,this.type,this));var r=this.processedData=[];b&&b.forEach(function(c,l){var h=0;if(k(c))r[l]={value:c};else if(f(c)){r[l]=
|
|
116
|
+
{};!a.keys&&c.length>d.length&&"string"===typeof c[0]&&(r[l]["hc-key"]=c[0],++h);for(var p=0;p<d.length;++p,++h)d[p]&&"undefined"!==typeof c[h]&&(0<d[p].indexOf(".")?g.prototype.setNestedProperty(r[l],c[h],d[p]):r[l][d[p]]=c[h])}else r[l]=b[l];e&&"_i"===e[0]&&(r[l]._i=l)});if(t){this.mapData=t;this.mapMap={};for(n=0;n<t.length;n++)c=t[n],p=c.properties,c._i=n,e[0]&&p&&p[e[0]]&&(c[e[0]]=p[e[0]]),m[c[e[0]]]=c;this.mapMap=m;if(e[1]){var q=e[1];r.forEach(function(a){a=x(q,a);m[a]&&l.push(m[a])})}if(a.allAreas){if(e[1]){var v=
|
|
117
|
+
e[1];r.forEach(function(a){l.push(x(v,a))})}var u="|"+l.map(function(a){return a&&a[e[0]]}).join("|")+"|";t.forEach(function(a){e[0]&&-1!==u.indexOf("|"+a[e[0]]+"|")||r.push(I(a,{value:null}))})}}this.processedXData=Array(r.length)};e.prototype.setOptions=function(a){a=r.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=E(b);b[1]||(b[1]=b[0]);return a};e.prototype.translate=function(){var a=this.doFullTranslate(),b=this.chart.mapView,c=b&&b.projection;!this.chart.hasRendered||
|
|
118
|
+
!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,this.getProjectedBounds());if(b){var e=b.getSVGTransform();this.points.forEach(function(f){var d=k(f.insetIndex)&&b.insets[f.insetIndex].getSVGTransform()||e;d&&f.bounds&&k(f.bounds.midX)&&k(f.bounds.midY)&&(f.plotX=f.bounds.midX*d.scaleX+d.translateX,f.plotY=f.bounds.midY*d.scaleY+d.translateY);a&&(f.shapeType="path",f.shapeArgs={d:g.getProjectedPath(f,c)})})}z(this,"afterTranslate")};e.defaultOptions=
|
|
119
|
+
I(F.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return k(b)?a(b,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},
|
|
120
|
+
inactive:{opacity:1}}});return e}(F);d(e.prototype,{type:"map",axisTypes:n.SeriesMixin.axisTypes,colorAttribs:n.SeriesMixin.colorAttribs,colorKey:n.SeriesMixin.colorKey,directTouch:!0,drawDataLabels:a,drawGraph:a,drawLegendSymbol:m.drawRectangle,forceDL:!0,getCenter:q.getCenter,getExtremesFromAll:!0,getSymbol:n.SeriesMixin.getSymbol,isCartesian:!1,parallelArrays:n.SeriesMixin.parallelArrays,pointArrayMap:n.SeriesMixin.pointArrayMap,pointClass:g,preserveAspectRatio:!0,searchPoint:a,trackerGroups:n.SeriesMixin.trackerGroups,
|
|
121
|
+
useMapGeometry:!0});l.registerSeriesType("map",e);"";return e});w(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,q){var h=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(d,g)};return function(d,g){function l(){this.constructor=d}a(d,g);d.prototype=
|
|
122
|
+
null===g?Object.create(g):(l.prototype=g.prototype,new l)}}(),m=n.series,d=q.extend,g=q.merge;q=function(d){function m(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(m,d);m.prototype.pointAttribs=function(d,g){d=a.prototype.pointAttribs.call(this,d,g);d.fill=this.options.fillColor;return d};m.defaultOptions=g(a.defaultOptions,{lineWidth:1,fillColor:"none"});return m}(a);d(q.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:m.prototype.drawLegendSymbol,
|
|
123
|
+
pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});n.registerSeriesType("mapline",q);"";return q});w(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var q=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g])};return a(d,g)};return function(d,g){function h(){this.constructor=
|
|
124
|
+
d}a(d,g);d.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)}}(),h=n.isNumber;return function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;d.series=void 0;return d}q(d,a);d.prototype.isValid=function(){return!!(this.options.geometry||h(this.x)&&h(this.y)||h(this.options.lon)&&h(this.options.lat))};return d}(a.seriesTypes.scatter.prototype.pointClass)});w(a,"Series/MapPoint/MapPointSeries.js",[a["Core/Globals.js"],a["Series/MapPoint/MapPointPoint.js"],
|
|
125
|
+
a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,q,h){var m=this&&this.__extends||function(){var a=function(e,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(e,c)};return function(e,c){function b(){this.constructor=e}a(e,c);e.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}();a=a.noop;var d=q.seriesTypes.scatter,g=h.extend,u=h.fireEvent,r=h.isNumber,
|
|
126
|
+
l=h.merge;h=function(a){function e(){var c=null!==a&&a.apply(this,arguments)||this;c.chart=void 0;c.data=void 0;c.options=void 0;c.points=void 0;return c}m(e,a);e.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};e.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var c=a.geometry,e=a.lon;a=a.lat;c=c&&"Point"===c.type&&c.coordinates;r(e)&&r(a)&&(c=[e,a]);if(c)return b.lonLatToProjectedUnits({lon:c[0],
|
|
127
|
+
lat:c[1]})}};e.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();if(b){var e=b.projection.hasCoordinates;this.points.forEach(function(c){var d=c.x;d=void 0===d?void 0:d;var g=c.y;g=void 0===g?void 0:g;var l=a.projectPoint(c.options);l?(d=l.x,g=l.y):c.bounds&&(d=c.bounds.midX,g=c.bounds.midY);r(d)&&r(g)?(d=b.projectedUnitsToPixels({x:d,y:g}),c.plotX=d.x,c.plotY=e?d.y:a.chart.plotHeight-d.y):c.y=c.plotX=c.plotY=void 0;c.isInside=
|
|
128
|
+
a.isPointInside(c);c.zone=a.zones.length?c.getZone():void 0})}u(this,"afterTranslate")};e.defaultOptions=l(d.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return e}(d);g(h.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:n,searchPoint:a,useMapGeometry:!0});q.registerSeriesType("mappoint",h);"";return h});w(a,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,
|
|
129
|
+
borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});w(a,"Series/Bubble/BubbleLegendItem.js",[a["Core/Color/Color.js"],
|
|
130
|
+
a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,q,h){var m=a.parse,d=q.noop,g=h.arrayMax,u=h.arrayMin,r=h.isNumber,l=h.merge,v=h.pick,e=h.stableSort;"";return function(){function a(a,c){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=d;this.init(a,c)}a.prototype.init=
|
|
131
|
+
function(a,c){this.options=a;this.visible=!0;this.chart=c.chart;this.legend=c};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(a){var b=this.chart,c=this.options,d=v(a.options.itemDistance,20),g=c.ranges,l=c.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(c.labels.style.fontSize);g&&g.length&&r(g[0].value)?(e(g,function(a,b){return b.value-a.value}),this.ranges=g,this.setOptions(),this.render(),a=this.getMaxLabelSize(),
|
|
132
|
+
g=this.ranges[0].radius,b=2*g,l=l-g+a.width,l=0<l?l:0,this.maxLabel=a,this.movementX="left"===c.labels.align?l:0,this.legendItemWidth=b+l+d,this.legendItemHeight=b+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,c=this.options,e=this.chart.series[c.seriesIndex],d=this.legend.baseline,g={zIndex:c.zIndex,"stroke-width":c.borderWidth},h={zIndex:c.zIndex,"stroke-width":c.connectorWidth},n={align:this.legend.options.rtl||"left"===c.labels.align?
|
|
133
|
+
"right":"left",zIndex:c.zIndex},f=e.options.marker.fillOpacity,k=this.chart.styledMode;a.forEach(function(b,p){k||(g.stroke=v(b.borderColor,c.borderColor,e.color),g.fill=v(b.color,c.color,1!==f?m(e.color).setOpacity(f).get("rgba"):e.color),h.stroke=v(b.connectorColor,c.connectorColor,e.color));a[p].radius=this.getRangeRadius(b.value);a[p]=l(a[p],{center:a[0].radius-a[p].radius+d});k||l(!0,a[p],{bubbleAttribs:l(g),connectorAttribs:l(h),labelAttribs:n})},this)};a.prototype.getRangeRadius=function(a){var b=
|
|
134
|
+
this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};a.prototype.render=function(){var a=this.chart.renderer,c=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=c&&this.renderRange(a)},
|
|
135
|
+
this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var b=this.options,c=b.labels,e=this.chart,d=e.series[b.seriesIndex],g=e.renderer,l=this.symbols;e=l.labels;var f=a.center,k=Math.abs(a.radius),h=b.connectorDistance||0,m=c.align,n=b.connectorWidth,r=this.ranges[0].radius||0,q=f-k-b.borderWidth/2+n/2,v=this.fontMetrics;v=v.f/2-(v.h-v.f)/2;var u=g.styledMode;h=this.legend.options.rtl||"left"===m?-h:h;
|
|
136
|
+
"center"===m&&(h=0,b.connectorDistance=0,a.labelAttribs.align="center");m=q+b.labels.y;var w=r+h+b.labels.x;l.bubbleItems.push(g.circle(r,f+((q%1?1:.5)-(n%2?0:.5)),k).attr(u?{}:a.bubbleAttribs).addClass((u?"highcharts-color-"+d.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));l.connectors.push(g.path(g.crispLine([["M",r,q],["L",r+h,q]],b.connectorWidth)).attr(u?{}:a.connectorAttribs).addClass((u?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+
|
|
137
|
+
(b.connectorClassName||"")).add(this.legendSymbol));a=g.text(this.formatLabel(a),w,m+v).attr(u?{}:a.labelAttribs).css(u?{}:c.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:w,y:m+v}};a.prototype.getMaxLabelSize=function(){var a,c;this.symbols.labels.forEach(function(b){c=b.getBBox(!0);a=a?c.width>a.width?c:a:c});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,c=b.labels.formatter;b=b.labels.format;
|
|
138
|
+
var e=this.chart.numberFormatter;return b?n.format(b,a):c?c.call(a):e(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,c=this.symbols;!this.options.labels.allowOverlap&&c&&(a.hideOverlappingLabels(c.labels),c.labels.forEach(function(a,b){a.newOpacity?a.newOpacity!==a.oldOpacity&&c.connectors[b].show():c.connectors[b].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,c=a.options.ranges,e,d=Number.MAX_VALUE,h=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&
|
|
139
|
+
!a.ignoreSeries&&(e=a.zData.filter(r),e.length&&(d=v(a.options.zMin,Math.min(d,Math.max(u(e),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),h=v(a.options.zMax,Math.max(h,g(e)))))});var m=d===h?[{value:h}]:[{value:d},{value:(d+h)/2},{value:h,autoRanges:!0}];c.length&&c[0].radius&&m.reverse();m.forEach(function(a,b){c&&c[b]&&(m[b]=l(c[b],a))});return m};a.prototype.predictBubbleSizes=function(){var a=this.chart,c=this.fontMetrics,e=a.legend.options,d=e.floating,g=(e="horizontal"===
|
|
140
|
+
e.layout)?a.legend.lastLineHeight:0,l=a.plotSizeX,h=a.plotSizeY,f=a.series[this.options.seriesIndex],k=f.getPxExtremes();a=Math.ceil(k.minPxSize);k=Math.ceil(k.maxPxSize);var m=Math.min(h,l);f=f.options.maxSize;if(d||!/%$/.test(f))c=k;else if(f=parseFloat(f),c=(m+g-c.h/2)*f/100/(f/100+1),e&&h-c>=l||!e&&l-c>=h)c=k;return[a,Math.ceil(c)]};a.prototype.updateRanges=function(a,c){var b=this.legend.options.bubbleLegend;b.minSize=a;b.maxSize=c;b.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=
|
|
141
|
+
this.legend,c=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(c.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,c.maxPxSize),a.render())};return a}()});w(a,"Series/Bubble/BubbleLegendComposition.js",[a["Series/Bubble/BubbleLegendDefaults.js"],a["Series/Bubble/BubbleLegendItem.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n,q,h){var m=q.setOptions,d=h.addEvent,g=h.objectEach,u=h.wrap,r;(function(l){function h(a,b,d){var f=
|
|
142
|
+
this.legend,k=0<=e(this);if(f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&k){var l=f.bubbleLegend.options;k=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(k[0],k[1]);l.placed||(f.group.placed=!1,f.allItems.forEach(function(a){a.legendGroup.translateY=null}));f.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();l.placed||(a.setScale(),a.updateNames(),g(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});l.placed=!0;this.getMargins();
|
|
143
|
+
a.call(this,b,d);f.bubbleLegend.correctSizes();q(f,c(f))}else a.call(this,b,d),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),q(f,c(f)))}function e(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1}function c(a){a=a.allItems;var b=[],c=a.length,e,d=0;for(e=0;e<c;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[c-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var g=
|
|
144
|
+
b[b.length-1];for(d;d<=e;d++)a[d].itemHeight>g.height&&(g.height=a[d].itemHeight);g.step=e}return b}function b(a){var b=this.bubbleLegend,c=this.options,d=c.bubbleLegend,g=e(this.chart);b&&b.ranges&&b.ranges.length&&(d.ranges.length&&(d.autoRanges=!!d.ranges[0].autoRanges),this.destroyItem(b));0<=g&&c.enabled&&d.enabled&&(d.seriesIndex=g,this.bubbleLegend=new n(d,this),this.bubbleLegend.addToLegend(a.allItems))}function r(){var a=this.chart,b=this.visible,c=this.chart.legend;c&&c.bubbleLegend&&(this.visible=
|
|
145
|
+
!b,this.ignoreSeries=b,a=0<=e(a),c.bubbleLegend.visible!==a&&(c.update({bubbleLegend:{enabled:a}}),c.bubbleLegend.visible=a),this.visible=b)}function q(a,b){var c=a.options.rtl,e,d,g,l=0;a.allItems.forEach(function(a,f){e=a.legendGroup.translateX;d=a._legendItemPos[1];if((g=a.movementX)||c&&a.ranges)g=c?e-a.options.maxSize/2:e+g,a.legendGroup.attr({translateX:g});f>b[l].step&&l++;a.legendGroup.attr({translateY:Math.round(d+b[l].height/2)});a._legendItemPos[1]=d+b[l].height/2})}var w=[];l.compose=
|
|
146
|
+
function(c,e,g){-1===w.indexOf(c)&&(w.push(c),m({legend:{bubbleLegend:a}}),u(c.prototype,"drawChartBox",h));-1===w.indexOf(e)&&(w.push(e),d(e,"afterGetAllItems",b));-1===w.indexOf(g)&&(w.push(g),d(g,"legendItemClick",r))}})(r||(r={}));return r});w(a,"Series/Bubble/BubblePoint.js",[a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,q){var h=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
|
|
147
|
+
d){a.__proto__=d}||function(a,d){for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g])};return a(d,g)};return function(d,g){function h(){this.constructor=d}a(d,g);d.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)}}();q=q.extend;n=function(m){function d(){var a=null!==m&&m.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}h(d,m);d.prototype.haloPath=function(d){return a.prototype.haloPath.call(this,0===d?0:(this.marker?this.marker.radius||0:0)+d)};return d}(n.seriesTypes.scatter.prototype.pointClass);
|
|
148
|
+
q(n.prototype,{ttBelow:!1});return n});w(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubbleLegendComposition.js"],a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,q,h,m,d,g,u){var r=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
|
|
149
|
+
(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),l=h.parse;h=m.noop;var v=g.seriesTypes;m=v.column;var e=v.scatter;v=u.addEvent;var c=u.arrayMax,b=u.arrayMin,t=u.clamp,w=u.extend,D=u.isNumber,p=u.merge,z=u.pick;u=function(a){function f(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options=void 0;b.points=void 0;b.radii=void 0;b.yData=
|
|
150
|
+
void 0;b.zData=void 0;return b}r(f,a);f.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};f.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,e=[],d=this.chart.bubbleZExtremes;var f=this.getPxExtremes();var g=f.minPxSize,l=f.maxPxSize;if(!d){var h=Number.MAX_VALUE,
|
|
151
|
+
m=-Number.MAX_VALUE,n;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=b.getZExtremes())&&(h=Math.min(h||b.zMin,b.zMin),m=Math.max(m||b.zMax,b.zMax),n=!0)});n?(d={zMin:h,zMax:m},this.chart.bubbleZExtremes=d):d={zMin:0,zMax:0}}var p=0;for(f=b.length;p<f;p++){var r=b[p];e.push(this.getRadius(d.zMin,d.zMax,g,l,r,c[p]))}this.radii=e};f.prototype.getRadius=function(a,b,c,e,d,f){var g=this.options,k="width"!==g.sizeBy,l=g.zThreshold,h=b-a,
|
|
152
|
+
m=.5;if(null===f||null===d)return null;if(D(d)){g.sizeByAbsoluteValue&&(d=Math.abs(d-l),h=Math.max(b-l,Math.abs(a-l)),a=0);if(d<a)return c/2-1;0<h&&(m=(d-a)/h)}k&&0<=m&&(m=Math.sqrt(m));return Math.ceil(c+m*(e-c))/2};f.prototype.hasData=function(){return!!this.processedXData.length};f.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=d.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=l(a.fill).setOpacity(c).get("rgba"));return a};f.prototype.translate=function(){a.prototype.translate.call(this);
|
|
153
|
+
this.getRadii();this.translateBubble()};f.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,c=this.getPxExtremes().minPxSize,e=a.length;e--;){var d=a[e],f=b?b[e]:0;D(f)&&f>=c/2?(d.marker=w(d.marker,{radius:f,width:2*f,height:2*f}),d.dlBox={x:d.plotX-f,y:d.plotY-f,width:2*f,height:2*f}):d.shapeArgs=d.plotY=d.dlBox=void 0}};f.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=/%$/.test(b);b=parseInt(b,
|
|
154
|
+
10)}return c?a*b/100:b},c=b(z(this.options.minSize,8));b=Math.max(b(z(this.options.maxSize,"20%")),c);return{minPxSize:c,maxPxSize:b}};f.prototype.getZExtremes=function(){var a=this.options,e=(this.zData||[]).filter(D);if(e.length){var d=z(a.zMin,t(b(e),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=z(a.zMax,c(e));if(D(d)&&D(a))return{zMin:d,zMax:a}}};f.compose=n.compose;f.defaultOptions=p(e.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,
|
|
155
|
+
b=this.point.z;return D(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return f}(e);w(u.prototype,{alignDataLabel:m.prototype.alignDataLabel,applyZones:h,bubblePadding:!0,buildKDTree:h,directTouch:!0,
|
|
156
|
+
isBubble:!0,pointArrayMap:["y","z"],pointClass:q,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});v(u,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});a.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,e=0,d=b,g=this.isXAxis,l=g?"xData":"yData",h=this.min,m=this.max-h,n=b/m,p;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!c.options.chart.ignoreHiddenSeries)){p=a.allowZoomOutside=!0;var f=
|
|
157
|
+
b[l];g&&b.getRadii(0,0,b);if(0<m)for(var k=f.length;k--;)if(D(f[k])&&a.dataMin<=f[k]&&f[k]<=a.max){var r=b.radii&&b.radii[k]||0;e=Math.min((f[k]-h)*n-r,e);d=Math.max((f[k]-h)*n+r,d)}}});p&&0<m&&!this.logarithmic&&(d-=b,n*=(b+Math.max(0,e)-Math.min(d,b))/b,[["min","userMin",e],["max","userMax",d]].forEach(function(b){"undefined"===typeof z(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/n)}))};g.registerSeriesType("bubble",u);"";"";return u});w(a,"Series/MapBubble/MapBubblePoint.js",[a["Series/Map/MapPoint.js"],
|
|
158
|
+
a["Core/Series/SeriesRegistry.js"]],function(a,n){var q=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g])};return a(d,g)};return function(d,g){function h(){this.constructor=d}a(d,g);d.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)}}();n=n.seriesTypes;var h=n.map;return function(m){function d(){var d=null!==m&&m.apply(this,arguments)||
|
|
159
|
+
this;d.applyOptions=h.prototype.pointClass.prototype.applyOptions;d.getProjectedBounds=a.prototype.getProjectedBounds;return d}q(d,m);d.prototype.isValid=function(){return"number"===typeof this.z};return d}(n.bubble.prototype.pointClass)});w(a,"Series/MapBubble/MapBubbleSeries.js",[a["Series/Bubble/BubbleSeries.js"],a["Series/MapBubble/MapBubblePoint.js"],a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,q,h,m,d){var g=this&&
|
|
160
|
+
this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(d,e)};return function(d,e){function c(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),u=h.seriesTypes.mappoint;m=d.extend;var r=d.merge;d=function(d){function h(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
|
|
161
|
+
void 0;return a}g(h,d);h.prototype.searchPoint=function(a,c){return this.searchKDTree({clientX:a.chartX-this.chart.plotLeft,plotY:a.chartY-this.chart.plotTop},c,a)};h.prototype.translate=function(){u.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.compose=a.compose;h.defaultOptions=r(a.defaultOptions,{animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(a);m(d.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:q.prototype.getProjectedBounds,
|
|
162
|
+
isCartesian:!1,pointArrayMap:["z"],pointClass:n,processData:q.prototype.processData,projectPoint:u.prototype.projectPoint,setData:q.prototype.setData,setOptions:q.prototype.setOptions,useMapGeometry:!0,xyFromShape:!0});h.registerSeriesType("mapbubble",d);"";return d});w(a,"Series/Heatmap/HeatmapPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var q=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
|
|
163
|
+
e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(d,g)};return function(d,g){function h(){this.constructor=d}a(d,g);d.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)}}(),h=n.clamp,m=n.defined,d=n.extend,g=n.pick;a=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;d.series=void 0;d.value=void 0;d.x=void 0;d.y=void 0;return d}q(d,a);d.prototype.applyOptions=function(d,g){d=a.prototype.applyOptions.call(this,
|
|
164
|
+
d,g);d.formatPrefix=d.isNull||null===d.value?"null":"point";return d};d.prototype.getCellAttributes=function(){var a=this.series,d=a.options,e=(d.colsize||1)/2,c=(d.rowsize||1)/2,b=a.xAxis,n=a.yAxis,q=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var r=g(this.pointPadding,d.pointPadding,0),p={x1:h(Math.round(b.len-(b.translate(this.x-e,!1,!0,!1,!0,-a)||0)),-b.len,2*b.len),x2:h(Math.round(b.len-(b.translate(this.x+e,!1,!0,!1,!0,-a)||0)),-b.len,2*b.len),y1:h(Math.round(n.translate(this.y-
|
|
165
|
+
c,!1,!0,!1,!0)||0),-n.len,2*n.len),y2:h(Math.round(n.translate(this.y+c,!1,!0,!1,!0)||0),-n.len,2*n.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var c=a+"1",d=a+"2",e=Math.abs(p[c]-p[d]),g=q&&q.lineWidth||0,h=Math.abs(p[c]+p[d])/2;b=q&&q[b];m(b)&&b<e&&(b=b/2+g/2,p[c]=h-b,p[d]=h+b);r&&("y"===a&&(c=d,d=a+"1"),p[c]+=r,p[d]-=r)});return p};d.prototype.haloPath=function(a){if(!a)return[];var d=this.shapeArgs;return["M",d.x-a,d.y-a,"L",d.x-a,d.y+d.height+a,d.x+d.width+a,d.y+
|
|
166
|
+
d.height+a,d.x+d.width+a,d.y-a,"Z"]};d.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return d}(a.seriesTypes.scatter.prototype.pointClass);d(a.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return a});w(a,"Series/Heatmap/HeatmapSeries.js",[a["Core/Color/Color.js"],a["Series/ColorMapMixin.js"],a["Series/Heatmap/HeatmapPoint.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],
|
|
167
|
+
function(a,n,q,h,m,d,g){var u=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),r=m.series,l=m.seriesTypes,v=l.column,e=l.scatter,c=d.prototype.symbols,b=g.extend,t=g.fireEvent,w=g.isNumber,D=g.merge,
|
|
168
|
+
p=g.pick;d=function(d){function g(){var a=null!==d&&d.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=NaN;return a}u(g,d);g.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)r.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),
|
|
169
|
+
(b.shapeArgs||{}).r=a.options.borderRadius,(b.shapeArgs||{}).d=b.graphic.pathArray,null===b.value&&b.graphic.addClass("highcharts-null-point"))})};g.prototype.getExtremes=function(){var a=r.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;w(b)&&(this.valueMin=b);w(a)&&(this.valueMax=a);return r.prototype.getExtremes.call(this)};g.prototype.getValidPoints=function(a,b){return r.prototype.getValidPoints.call(this,a,b,!0)};g.prototype.hasData=function(){return!!this.processedXData.length};
|
|
170
|
+
g.prototype.init=function(){r.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=p(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;c.ellipse=c.circle};g.prototype.markerAttribs=function(a,b){var c=a.marker||{},d=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var g=d.states[b]||{};var h=c.states&&c.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(h[a[0]]||g[a[0]]||e[a[0]])+(h[a[0]+"Plus"]||
|
|
171
|
+
g[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};g.prototype.pointAttribs=function(b,c){var d=r.prototype.pointAttribs.call(this,b,c),e=this.options||{},f=this.chart.options.plotOptions||{},g=f.series||{},h=f.heatmap||{};f=b&&b.options.borderColor||e.borderColor||h.borderColor||g.borderColor;g=b&&b.options.borderWidth||e.borderWidth||h.borderWidth||g.borderWidth||d["stroke-width"];d.stroke=b&&b.marker&&b.marker.lineColor||e.marker&&e.marker.lineColor||f||this.color;d["stroke-width"]=
|
|
172
|
+
g;c&&(b=D(e.states[c],e.marker&&e.marker.states[c],b&&b.options.states&&b.options.states[c]||{}),c=b.brightness,d.fill=b.color||a.parse(d.fill).brighten(c||0).get(),d.stroke=b.lineColor);return d};g.prototype.setClip=function(a){var b=this.chart;r.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};g.prototype.translate=function(){var a=this.options,d=a.marker&&a.marker.symbol||
|
|
173
|
+
"rect",e=c[d]?d:"rect",g=-1!==["circle","square"].indexOf(e);this.generatePoints();this.points.forEach(function(a){var f=a.getCellAttributes(),h={};h.x=Math.min(f.x1,f.x2);h.y=Math.min(f.y1,f.y2);h.width=Math.max(Math.abs(f.x2-f.x1),0);h.height=Math.max(Math.abs(f.y2-f.y1),0);var k=a.hasImage=0===(a.marker&&a.marker.symbol||d||"").indexOf("url");if(g){var l=Math.abs(h.width-h.height);h.x=Math.min(f.x1,f.x2)+(h.width<h.height?0:l/2);h.y=Math.min(f.y1,f.y2)+(h.width<h.height?l/2:0);h.width=h.height=
|
|
174
|
+
Math.min(h.width,h.height)}l={plotX:(f.x1+f.x2)/2,plotY:(f.y1+f.y2)/2,clientX:(f.x1+f.x2)/2,shapeType:"path",shapeArgs:D(!0,h,{d:c[e](h.x,h.y,h.width,h.height)})};k&&(a.marker={width:h.width,height:h.height});b(a,l)});t(this,"afterTranslate")};g.defaultOptions=D(e.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return w(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,
|
|
175
|
+
padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return g}(e);b(d.prototype,{alignDataLabel:v.prototype.alignDataLabel,axisTypes:n.SeriesMixin.axisTypes,colorAttribs:n.SeriesMixin.colorAttribs,colorKey:n.SeriesMixin.colorKey,directTouch:!0,drawLegendSymbol:h.drawRectangle,getExtremesFromAll:!0,getSymbol:r.prototype.getSymbol,
|
|
176
|
+
parallelArrays:n.SeriesMixin.parallelArrays,pointArrayMap:["y","value"],pointClass:q,trackerGroups:n.SeriesMixin.trackerGroups});m.registerSeriesType("heatmap",d);"";"";return d});w(a,"masters/modules/map.src.js",[a["Core/Globals.js"],a["Core/Axis/Color/ColorAxis.js"],a["Series/MapBubble/MapBubbleSeries.js"],a["Core/Chart/MapChart.js"],a["Maps/MapView.js"],a["Maps/Projection.js"]],function(a,n,q,h,m,d){a.ColorAxis=n;a.MapChart=h;a.mapChart=a.Map=h.mapChart;a.MapView=m;a.maps=h.maps;a.Projection=d;
|
|
177
|
+
n.compose(a.Chart,a.Fx,a.Legend,a.Series);q.compose(a.Chart,a.Legend,a.Series)})});
|
|
153
178
|
//# sourceMappingURL=map.js.map
|