highcharts 9.3.2 → 10.1.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/A11yI18n.js +4 -4
- package/es-modules/Accessibility/Accessibility.js +1 -1
- package/es-modules/Accessibility/Components/ContainerComponent.js +8 -9
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +14 -9
- package/es-modules/Accessibility/Components/LegendComponent.js +31 -23
- package/es-modules/Accessibility/Components/MenuComponent.js +15 -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 +34 -18
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +84 -33
- package/es-modules/Accessibility/Components/ZoomComponent.js +13 -10
- package/es-modules/Accessibility/FocusBorder.js +6 -5
- package/es-modules/Accessibility/HighContrastMode.js +2 -2
- package/es-modules/Accessibility/KeyboardNavigation.js +113 -98
- package/es-modules/Accessibility/Options/LangOptions.js +36 -31
- package/es-modules/Accessibility/Options/Options.js +66 -3
- package/es-modules/Accessibility/ProxyElement.js +14 -6
- package/es-modules/Accessibility/ProxyProvider.js +10 -2
- package/es-modules/Accessibility/Utils/ChartUtilities.js +9 -4
- package/es-modules/Core/Axis/Axis.js +180 -73
- package/es-modules/Core/Axis/Color/ColorAxis.js +22 -5
- package/es-modules/Core/Axis/GridAxis.js +15 -11
- package/es-modules/Core/Axis/LogarithmicAxis.js +1 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +3 -2
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +1 -1
- package/es-modules/Core/Axis/StackingAxis.js +0 -1
- package/es-modules/Core/Axis/Tick.js +2 -2
- package/es-modules/Core/Axis/TreeGridTick.js +11 -0
- package/es-modules/Core/Chart/Chart.js +21 -3
- package/es-modules/Core/Chart/Chart3D.js +1 -11
- package/es-modules/Core/Chart/ChartDefaults.js +43 -11
- package/es-modules/Core/Chart/MapChart.js +1 -6
- package/es-modules/Core/Chart/StockChart.js +1 -1
- package/es-modules/Core/DefaultOptions.js +8 -4
- 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 +11 -9
- package/es-modules/Core/Navigator.js +10 -7
- package/es-modules/Core/Pointer.js +15 -11
- package/es-modules/Core/Renderer/HTML/AST.js +68 -8
- package/es-modules/Core/Renderer/SVG/SVGElement.js +47 -63
- package/es-modules/Core/Renderer/SVG/SVGElement3D.js +17 -5
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +31 -28
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +12 -10
- package/es-modules/Core/Scrollbar.js +9 -5
- package/es-modules/Core/Series/DataLabel.js +65 -36
- package/es-modules/Core/Series/Point.js +2 -2
- package/es-modules/Core/Series/Series.js +52 -22
- package/es-modules/Core/Series/SeriesDefaults.js +4 -1
- package/es-modules/Core/Tooltip.js +14 -31
- package/es-modules/Core/Utilities.js +29 -29
- package/es-modules/Extensions/Annotations/Annotations.js +9 -2
- package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
- package/es-modules/Extensions/Annotations/MockPoint.js +1 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +9 -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 +873 -0
- package/es-modules/Extensions/Data.js +26 -14
- package/es-modules/Extensions/DataGrouping.js +8 -3
- package/es-modules/Extensions/Debugger/ErrorMessages.js +4 -0
- package/es-modules/Extensions/DraggablePoints.js +9 -7
- package/es-modules/Extensions/Drilldown.js +150 -95
- package/es-modules/Extensions/ExportData.js +1 -2
- package/es-modules/Extensions/Exporting/Exporting.js +31 -20
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +49 -1
- package/es-modules/Extensions/FullScreen.js +121 -54
- package/es-modules/Extensions/GeoJSON.js +151 -125
- 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/OverlappingDataLabels.js +5 -4
- package/es-modules/Extensions/Polar.js +4 -1
- package/es-modules/Extensions/ScrollablePlotArea.js +5 -1
- package/es-modules/Extensions/Stacking.js +4 -3
- package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
- package/es-modules/Extensions/Themes/HighContrastLight.js +10 -10
- package/es-modules/Maps/MapNavigation.js +50 -13
- package/es-modules/Maps/MapPointer.js +16 -0
- package/es-modules/Maps/MapUtilities.js +56 -0
- package/es-modules/Maps/MapView.js +611 -136
- package/es-modules/Maps/MapViewInsetsOptionsDefault.js +148 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +60 -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 +589 -0
- package/es-modules/Series/CenteredUtilities.js +6 -1
- 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/Flags/FlagsSeries.js +7 -12
- package/es-modules/Series/Gauge/GaugeSeries.js +1 -1
- package/es-modules/Series/Heatmap/HeatmapSeries.js +13 -20
- 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 +206 -169
- package/es-modules/Series/MapBubble/MapBubblePoint.js +16 -24
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +58 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +2 -8
- package/es-modules/Series/MapPoint/MapPointSeries.js +40 -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/PieDataLabel.js +3 -1
- package/es-modules/Series/Pie/PiePoint.js +12 -5
- package/es-modules/Series/Pie/PieSeries.js +12 -1
- 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 +13 -128
- package/es-modules/Series/Scatter/ScatterSeries.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +14 -3
- package/es-modules/Series/Treemap/TreemapSeries.js +88 -80
- package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -0
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +4 -4
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +9 -2
- package/es-modules/Stock/StockToolsBindings.js +31 -24
- 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 +51 -21
- package/highcharts-gantt.js +808 -800
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +781 -426
- package/highcharts-more.js +195 -194
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +18 -4
- package/highcharts.d.ts +3224 -542
- package/highcharts.js +592 -584
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +3224 -542
- package/highcharts.src.js +732 -400
- package/highmaps.js +760 -728
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +3840 -2189
- package/highstock.js +793 -786
- package/highstock.js.map +1 -1
- package/highstock.src.js +783 -432
- 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 +245 -240
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +510 -283
- package/modules/annotations-advanced.js +144 -144
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +37 -11
- package/modules/annotations.js +79 -79
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +32 -8
- package/modules/arc-diagram.js +25 -0
- package/modules/arc-diagram.js.map +1 -0
- package/modules/arc-diagram.src.js +778 -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 +19 -5
- package/modules/debugger.js +8 -7
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +15 -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 +36 -25
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +19 -0
- package/modules/drilldown.src.js +1091 -106
- 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 +12 -4
- package/modules/exporting.js +39 -39
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +227 -92
- package/modules/full-screen.js +8 -7
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +135 -58
- 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 +216 -215
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +60 -28
- package/modules/grid-axis.js +23 -23
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +27 -13
- package/modules/heatmap.js +40 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +46 -27
- 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 +8024 -6696
- 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 +341 -157
- 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 +145 -145
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +64 -32
- package/modules/stock.js +204 -204
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +62 -34
- 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 +1048 -97
- 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 +38 -13
- 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 +1037 -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 +24 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +22 -10
- 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.1.0 (2022-04-29)
|
|
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
|
-
g.visible&&
|
|
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
|
-
typeof l.minColorValue&&(this.dataMin=Math.min(this.dataMin,l.minColorValue),this.dataMax=Math.max(this.dataMax,l.maxColorValue));
|
|
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
|
|
32
|
-
|
|
33
|
-
{zoomIn:"Zoom in",zoomOut:"Zoom out"});return
|
|
34
|
-
|
|
35
|
-
"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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=b.projection.hasCoordinates?-1:1
|
|
89
|
-
this.
|
|
90
|
-
|
|
91
|
-
[
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
this.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
function(a){
|
|
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
|
-
b.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
a
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
f
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
a
|
|
151
|
-
c
|
|
152
|
-
c[
|
|
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,h,q,k){a.hasOwnProperty(h)||(a[h]=k.apply(null,q),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h,module:a[h]}})))}a=a?a._modules:{};w(a,"Core/Axis/Color/ColorAxisComposition.js",
|
|
11
|
+
[a["Core/Color/Color.js"],a["Core/Utilities.js"]],function(a,h){var q=a.parse,k=h.addEvent,n=h.extend,f=h.merge,d=h.pick,u=h.splat,p;(function(m){function p(){var g=this,l=this.options;this.colorAxis=[];l.colorAxis&&(l.colorAxis=u(l.colorAxis),l.colorAxis.forEach(function(l,b){l.index=b;new A(g,l)}))}function e(g){var l=this,b=function(b){b=g.allItems.indexOf(b);-1!==b&&(l.destroyItem(g.allItems[b]),g.allItems.splice(b,1))},v=[],x,c;(this.chart.colorAxis||[]).forEach(function(g){(x=g.options)&&x.showInLegend&&
|
|
12
|
+
(x.dataClasses&&x.visible?v=v.concat(g.getDataClassLegendSymbols()):x.visible&&v.push(g),g.series.forEach(function(g){if(!g.options.showInLegend||x.dataClasses)"point"===g.options.legendType?g.points.forEach(function(g){b(g)}):b(g)}))});for(c=v.length;c--;)g.allItems.unshift(v[c])}function c(g){g.visible&&g.item.legendColor&&g.item.legendSymbol.attr({fill:g.item.legendColor})}function b(){var g=this.chart.colorAxis;g&&g.forEach(function(g,l,b){g.update({},b)})}function t(){(this.chart.colorAxis&&
|
|
13
|
+
this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function B(){var g=this.axisTypes;g?-1===g.indexOf("colorAxis")&&g.push("colorAxis"):this.axisTypes=["colorAxis"]}function E(g){var l=this,b=g?"show":"hide";l.visible=l.options.visible=!!g;["graphic","dataLabel"].forEach(function(g){if(l[g])l[g][b]()});this.series.buildKDTree()}function r(){var g=this,l=this.options.nullColor,b=this.colorAxis,v=this.colorKey;(this.data.length?this.data:this.points).forEach(function(x){var c=x.getNestedProperty(v);
|
|
14
|
+
(c=x.options.color||(x.isNull||null===x.value?l:b&&"undefined"!==typeof c?b.toColor(c,x):x.color||g.color))&&x.color!==c&&(x.color=c,"point"===g.options.legendType&&x.legendItem&&g.chart.legend.colorizeItem(x,x.visible))})}function y(g){var l=g.prototype.createAxis;g.prototype.createAxis=function(g,b){if("colorAxis"!==g)return l.apply(this,arguments);var v=new A(this,f(b.axis,{index:this[g].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(g){g.series=[]});this.series.forEach(function(g){g.bindAxes();
|
|
15
|
+
g.isDirtyData=!0});d(b.redraw,!0)&&this.redraw(b.animation);return v}}function v(){this.elem.attr("fill",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}function g(){this.elem.attr("stroke",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}var l=[],A;m.compose=function(m,f,d,z,x){A||(A=m);-1===l.indexOf(f)&&(l.push(f),m=f.prototype,m.collectionsWithUpdate.push("colorAxis"),m.collectionsWithInit.colorAxis=[m.addColorAxis],k(f,"afterGetAxes",p),y(f));-1===l.indexOf(d)&&(l.push(d),f=d.prototype,
|
|
16
|
+
f.fillSetter=v,f.strokeSetter=g);-1===l.indexOf(z)&&(l.push(z),k(z,"afterGetAllItems",e),k(z,"afterColorizeItem",c),k(z,"afterUpdate",b));-1===l.indexOf(x)&&(l.push(x),n(x.prototype,{optionalAxis:"colorAxis",translateColors:r}),n(x.prototype.pointClass.prototype,{setVisible:E}),k(x,"afterTranslate",t),k(x,"bindAxes",B))};m.pointSetVisible=E})(p||(p={}));return p});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,h,
|
|
18
|
+
q,k,n,f,d,u){var p=this&&this.__extends||function(){var b=function(c,y){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var l in g)g.hasOwnProperty(l)&&(b[l]=g[l])};return b(c,y)};return function(c,y){function v(){this.constructor=c}b(c,y);c.prototype=null===y?Object.create(y):(v.prototype=y.prototype,new v)}}(),m=h.parse,z=n.noop,e=d.series,c=u.extend,b=u.isNumber,t=u.merge,B=u.pick;h=function(d){function r(b,c){var g=d.call(this,b,c)||this;
|
|
19
|
+
g.beforePadding=!1;g.chart=void 0;g.coll="colorAxis";g.dataClasses=void 0;g.legendItem=void 0;g.legendItems=void 0;g.name="";g.options=void 0;g.stops=void 0;g.visible=!0;g.init(b,c);return g}p(r,d);r.compose=function(b,c,g,l){q.compose(r,b,c,g,l)};r.prototype.init=function(b,c){var g=b.options.legend||{},l=c.layout?"vertical"!==c.layout:"vertical"!==g.layout,v=c.visible;g=t(r.defaultColorAxisOptions,c,{showEmpty:!1,title:null,visible:g.enabled&&!1!==v});this.coll="colorAxis";this.side=c.side||l?2:
|
|
20
|
+
1;this.reversed=c.reversed||!l;this.opposite=!l;d.prototype.init.call(this,b,g);this.userOptions.visible=v;c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=l;this.zoomEnabled=!1};r.prototype.initDataClasses=function(b){var c=this.chart,g=this.options,l=b.dataClasses.length,e,y=0,r=c.options.chart.colorCount;this.dataClasses=e=[];this.legendItems=[];(b.dataClasses||[]).forEach(function(b,v){b=t(b);e.push(b);if(c.styledMode||!b.color)"category"===g.dataClassColor?(c.styledMode||(v=
|
|
21
|
+
c.options.colors,r=v.length,b.color=v[y]),b.colorIndex=y,y++,y===r&&(y=0)):b.color=m(g.minColor).tweenTo(m(g.maxColor),2>l?.5:v/(l-1))})};r.prototype.hasData=function(){return!!(this.tickPositions||[]).length};r.prototype.setTickPositions=function(){if(!this.dataClasses)return d.prototype.setTickPositions.call(this)};r.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(b){b.color=m(b[1])})};r.prototype.setOptions=
|
|
22
|
+
function(b){d.prototype.setOptions.call(this,b);this.options.crosshair=this.options.marker};r.prototype.setAxisSize=function(){var b=this.legendSymbol,c=this.chart,g=c.options.legend||{},l,e;b?(this.left=g=b.attr("x"),this.top=l=b.attr("y"),this.width=e=b.attr("width"),this.height=b=b.attr("height"),this.right=c.chartWidth-g-e,this.bottom=c.chartHeight-l-b,this.len=this.horiz?e:b,this.pos=this.horiz?g:l):this.len=(this.horiz?g.symbolWidth:g.symbolHeight)||r.defaultLegendLength};r.prototype.normalizedValue=
|
|
23
|
+
function(b){this.logarithmic&&(b=this.logarithmic.log2lin(b));return 1-(this.max-b)/(this.max-this.min||1)};r.prototype.toColor=function(b,c){var g=this.dataClasses,l=this.stops,v;if(g)for(v=g.length;v--;){var e=g[v];var t=e.from;l=e.to;if(("undefined"===typeof t||b>=t)&&("undefined"===typeof l||b<=l)){var y=e.color;c&&(c.dataClass=v,c.colorIndex=e.colorIndex);break}}else{b=this.normalizedValue(b);for(v=l.length;v--&&!(b>l[v][0]););t=l[v]||l[v+1];l=l[v+1]||t;b=1-(l[0]-b)/(l[0]-t[0]||1);y=t.color.tweenTo(l.color,
|
|
24
|
+
b)}return y};r.prototype.getOffset=function(){var b=this.legendGroup,c=this.chart.axisOffset[this.side];if(b){this.axisParent=b;d.prototype.getOffset.call(this);var g=this.chart.legend;g.allItems.forEach(function(b){b instanceof r&&b.drawLegendSymbol(g,b)});g.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=c}};r.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}};r.prototype.drawLegendSymbol=function(b,c){var g=b.padding,l=b.options,v=this.horiz,e=B(l.symbolWidth,v?r.defaultLegendLength:12),t=B(l.symbolHeight,v?12:r.defaultLegendLength),y=B(l.labelPadding,v?16:30);l=B(l.itemDistance,10);this.setLegendColor();c.legendSymbol||(c.legendSymbol=this.chart.renderer.rect(0,b.baseline-11,e,t).attr({zIndex:1}).add(c.legendGroup));this.legendItemWidth=e+g+(v?l:this.options.labels.x+
|
|
26
|
+
this.maxLabelLength);this.legendItemHeight=t+g+(v?y:0)};r.prototype.setState=function(b){this.series.forEach(function(c){c.setState(b)})};r.prototype.setVisible=function(){};r.prototype.getSeriesExtremes=function(){var b=this.series,c=b.length,g;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;){var l=b[c];var t=l.colorKey=B(l.options.colorKey,l.colorKey,l.pointValKey,l.zoneAxis,"y");var r=l.pointArrayMap;var m=l[t+"Min"]&&l[t+"Max"];if(l[t+"Data"])var d=l[t+"Data"];else if(r){d=[];r=r.indexOf(t);
|
|
27
|
+
var p=l.yData;if(0<=r&&p)for(g=0;g<p.length;g++)d.push(B(p[g][r],p[g]))}else d=l.yData;m?(l.minColorValue=l[t+"Min"],l.maxColorValue=l[t+"Max"]):(d=e.prototype.getExtremes.call(l,d),l.minColorValue=d.dataMin,l.maxColorValue=d.dataMax);"undefined"!==typeof l.minColorValue&&(this.dataMin=Math.min(this.dataMin,l.minColorValue),this.dataMax=Math.max(this.dataMax,l.maxColorValue));m||e.prototype.applyExtremes.call(l)}};r.prototype.drawCrosshair=function(b,c){var g=c&&c.plotX,l=c&&c.plotY,e=this.pos,v=
|
|
28
|
+
this.len;if(c){var t=this.toPixels(c.getNestedProperty(c.series.colorKey));t<e?t=e-2:t>e+v&&(t=e+v+2);c.plotX=t;c.plotY=this.len-t;d.prototype.drawCrosshair.call(this,b,c);c.plotX=g;c.plotY=l;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}))}};r.prototype.getPlotLinePath=function(c){var e=
|
|
29
|
+
this.left,g=c.translatedValue,l=this.top;return b(g)?this.horiz?[["M",g-4,l-6],["L",g+4,l-6],["L",g,l],["Z"]]:[["M",e,g],["L",e-6,g+6],["L",e-6,g-6],["Z"]]:d.prototype.getPlotLinePath.call(this,c)};r.prototype.update=function(b,c){var g=this.chart.legend;this.series.forEach(function(b){b.isDirtyData=!0});(b.dataClasses&&g.allItems||this.dataClasses)&&this.destroyItems();d.prototype.update.call(this,b,c);this.legendItem&&(this.setLegendColor(),g.colorizeItem(this,!0))};r.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};r.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();d.prototype.destroy.apply(this,[].slice.call(arguments))};r.prototype.remove=function(b){this.destroyItems();d.prototype.remove.call(this,b)};r.prototype.getDataClassLegendSymbols=function(){var b=this,e=b.chart,g=b.legendItems,l=e.options.legend,t=l.valueDecimals,r=
|
|
31
|
+
l.valueSuffix||"",m;g.length||b.dataClasses.forEach(function(l,v){var x=l.from,C=l.to,K=e.numberFormatter,d=!0;m="";"undefined"===typeof x?m="< ":"undefined"===typeof C&&(m="> ");"undefined"!==typeof x&&(m+=K(x,t)+r);"undefined"!==typeof x&&"undefined"!==typeof C&&(m+=" - ");"undefined"!==typeof C&&(m+=K(C,t)+r);g.push(c({chart:e,name:m,options:{},drawLegendSymbol:f.drawRectangle,visible:!0,setState:z,isDataClass:!0,setVisible:function(){d=b.visible=!d;b.series.forEach(function(b){b.points.forEach(function(b){b.dataClass===
|
|
32
|
+
v&&b.setVisible(d)})});e.legend.colorizeItem(this,d)}},l))});return g};r.defaultColorAxisOptions=k;r.defaultLegendLength=200;r.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return r}(a);Array.prototype.push.apply(a.keepProps,h.keepProps);"";return h});w(a,"Maps/MapNavigationOptionsDefault.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,h){h=h.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};h(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,h,q){function k(c){c&&
|
|
34
|
+
(c.preventDefault&&c.preventDefault(),c.stopPropagation&&c.stopPropagation(),c.cancelBubble=!0)}function n(c){this.navButtons=[];this.init(c)}var f=h.doc,d=q.addEvent,u=q.extend,p=q.isNumber,m=q.merge,z=q.objectEach,e=q.pick;n.prototype.init=function(c){this.chart=c};n.prototype.update=function(c){var b=this,t=this.chart,p=t.options.mapNavigation,f,r=function(b){this.handler.call(t,b);k(b)},y=b.navButtons;c&&(p=t.options.mapNavigation=m(t.options.mapNavigation,c));for(;y.length;)y.pop().destroy();
|
|
35
|
+
e(p.enableButtons,p.enabled)&&!t.renderer.forExport&&(b.navButtonsGroup||(b.navButtonsGroup=t.renderer.g().attr({zIndex:4}).add()),z(p.buttons,function(c,g){c=m(p.buttonOptions,c);!t.styledMode&&c.theme&&(f=c.theme,f.style=m(c.theme.style,c.style));var l=t.renderer.button(c.text||"",0,0,r,f,void 0,void 0,void 0,"zoomIn"===g?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[g]).attr({width:c.width,height:c.height,title:t.options.lang[g],
|
|
36
|
+
padding:c.padding,zIndex:5}).add(b.navButtonsGroup);l.handler=c.onclick;d(l.element,"dblclick",k);y.push(l);u(c,{width:l.width,height:2*l.height});if(t.hasLoaded)l.align(c,!1,c.alignTo);else var e=d(t,"load",function(){l.element&&l.align(c,!1,c.alignTo);e()})}),c=function(){var c=t.exportingGroup&&t.exportingGroup.getBBox();if(c){var g=b.navButtonsGroup.getBBox();if(!(g.x>=c.x+c.width||g.x+g.width<=c.x||g.y>=c.y+c.height||g.y+g.height<=c.y)){var l=-g.y-g.height+c.y-5;c=c.y+c.height-g.y+5;b.navButtonsGroup.attr({translateY:"bottom"===
|
|
37
|
+
(p.buttonOptions&&p.buttonOptions.verticalAlign)?l:c})}}},t.hasLoaded||d(t,"render",c));this.updateEvents(p)};n.prototype.updateEvents=function(c){var b=this.chart;e(c.enableDoubleClickZoom,c.enabled)||c.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||d(b.container,"dblclick",function(c){b.pointer.onContainerDblClick(c)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(c.enableMouseWheelZoom,c.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||d(b.container,
|
|
38
|
+
void 0!==f.onwheel?"wheel":void 0!==f.onmousewheel?"mousewheel":"DOMMouseScroll",function(c){b.pointer.inClass(c.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(c),k(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]):c[t]=b[t]+b[e]-c[e]);c[e]>b[e]&&(c[e]=b[e]);c[t]<b[t]&&(c[t]=b[t])});
|
|
39
|
+
return c},mapZoom:function(c,b,e,m,d){this.mapView&&(p(c)&&(c=Math.log(c)/Math.log(.5)),this.mapView.zoomBy(c,p(b)&&p(e)?this.mapView.projection.inverse([b,e]):void 0,p(m)&&p(d)?[m,d]:void 0))}});d(a,"beforeRender",function(){this.mapNavigation=new n(this);this.mapNavigation.update()});h.MapNavigation=n});w(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,h){var q=h.defined,k=h.extend,n=h.pick;h=h.wrap;var f=a.prototype.normalize,d=0,u;k(a.prototype,{normalize:function(d,
|
|
40
|
+
m){var p=this.chart;d=f.call(this,d,m);p&&p.mapView&&(m=p.mapView.pixelsToLonLat({x:d.chartX-p.plotLeft,y:d.chartY-p.plotTop}))&&k(d,m);return d},onContainerDblClick:function(d){var m=this.chart;d=this.normalize(d);m.options.mapNavigation.enableDoubleClickZoomTo?m.pointer.inClass(d.target,"highcharts-tracker")&&m.hoverPoint&&m.hoverPoint.zoomTo():m.isInsidePlot(d.chartX-m.plotLeft,d.chartY-m.plotTop)&&m.mapZoom(.5,void 0,void 0,d.chartX,d.chartY)},onContainerMouseWheel:function(p){var m=this.chart;
|
|
41
|
+
p=this.normalize(p);var f=q(p.wheelDelta)&&-p.wheelDelta/120||p.deltaY||p.detail;1<=Math.abs(f)&&(d+=Math.abs(f),u&&clearTimeout(u),u=setTimeout(function(){d=0},50));10>d&&m.isInsidePlot(p.chartX-m.plotLeft,p.chartY-m.plotTop)&&m.mapView&&m.mapView.zoomBy((m.options.mapNavigation.mouseWheelSensitivity-1)*-f,void 0,[p.chartX,p.chartY],1>Math.abs(f)?!1:void 0)}});h(a.prototype,"zoomOption",function(d){var m=this.chart.options.mapNavigation;n(m.enableTouchZoom,m.enabled)&&(this.chart.options.chart.pinchType=
|
|
42
|
+
"xy");d.apply(this,[].slice.call(arguments,1))});h(a.prototype,"pinchTranslate",function(d,m,f,e,c,b,t){d.call(this,m,f,e,c,b,t);"map"===this.chart.options.chart.type&&this.hasZoom&&(d=e.scaleX>e.scaleY,this.pinchTranslateDirection(!d,m,f,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,h,q){var k=a.noop;a=a.seriesTypes;var n=q.defined;q=q.addEvent;q(h,"afterSetState",function(f){this.moveToTopOnHover&&
|
|
43
|
+
this.graphic&&this.graphic.attr({zIndex:f&&"hover"===f.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:k,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(f){var d={};!n(f.color)||
|
|
44
|
+
f.state&&"normal"!==f.state||(d[this.colorProp||"fill"]=f.color);return d}}}});w(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function h(a,k,n,f,d,u,p,m){return[["M",a+d,k],["L",a+n-u,k],["C",a+n-u/2,k,a+n,k+u/2,a+n,k+u],["L",a+n,k+f-p],["C",a+n,k+f-p/2,a+n-p/2,k+f,a+n-p,k+f],["L",a+m,k+f],["C",a+m/2,k+f,a,k+f-m/2,a,k+f-m],["L",a,k+d],["C",a,k+d/2,a+d/2,k,a+d,k],["Z"]]}a=a.prototype.symbols;a.bottombutton=function(a,k,n,f,d){d=d&&d.r||0;return h(a-1,k-1,n,f,0,0,d,d)};
|
|
45
|
+
a.topbutton=function(a,k,n,f,d){d=d&&d.r||0;return h(a-1,k-1,n,f,d,d,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,h,q,k){var n=this&&this.__extends||function(){var d=function(a,f){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])};return d(a,f)};return function(a,f){function e(){this.constructor=
|
|
46
|
+
a}d(a,f);a.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}(),f=h.getOptions,d=k.merge,u=k.pick;a=function(a){function m(){return null!==a&&a.apply(this,arguments)||this}n(m,a);m.prototype.init=function(m,e){var c=f().credits;m=d({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}")},mapView:{},tooltip:{followTouchMove:!1}},m);a.prototype.init.call(this,
|
|
47
|
+
m,e)};return m}(a);(function(d){d.maps={};d.mapChart=function(a,f,e){return new d(a,f,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 h=-Number.MAX_VALUE,q=Number.MAX_VALUE,k=-Number.MAX_VALUE,n=Number.MAX_VALUE,
|
|
48
|
+
f;a.forEach(function(d){var a=d[d.length-2];d=d[d.length-1];"number"===typeof a&&"number"===typeof d&&(q=Math.min(q,a),h=Math.max(h,a),n=Math.min(n,d),k=Math.max(k,d),f=!0)});if(f)return{x1:q,y1:n,x2:h,y2:k}},pointInPolygon:function(a,h){var q,k=!1,n=a.x,f=a.y;a=0;for(q=h.length-1;a<h.length;q=a++){var d=h[a][1]>f;var u=h[q][1]>f;d!==u&&n<(h[q][0]-h[a][0])*(f-h[a][1])/(h[q][1]-h[a][1])+h[a][0]&&(k=!k)}return k}}});w(a,"Series/Map/MapPoint.js",[a["Series/ColorMapMixin.js"],a["Maps/MapUtilities.js"],
|
|
49
|
+
a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,h,q,k){var n=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)}}(),f=h.boundsFromPath,d=k.extend,u=k.isNumber,p=k.pick;h=function(a){function m(){var e=
|
|
50
|
+
null!==a&&a.apply(this,arguments)||this;e.options=void 0;e.path=void 0;e.series=void 0;return e}n(m,a);m.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||[]};m.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,c[1]),(b="undefined"!==typeof c&&b.mapMap[c])?d(e,b):
|
|
51
|
+
e.value=e.value||null);return e};m.prototype.getProjectedBounds=function(e){e=m.getProjectedPath(this,e);e=f(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)*p(this.middleX,u(b)?b:.5);b=p(this.middleY,u(c)?c:.5);this.geometry||(b=1-b);e.midY=e.y2-(e.y2-e.y1)*b;return e}};m.prototype.onMouseOver=function(e){k.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,e);else this.series.onMouseOut(e)};
|
|
52
|
+
m.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 m}(q.seriesTypes.scatter.prototype.pointClass);d(h.prototype,{dataLabelOnNull:a.PointMixin.dataLabelOnNull,isValid:a.PointMixin.isValid,moveToTopOnHover:a.PointMixin.moveToTopOnHover});return h});w(a,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},
|
|
53
|
+
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,h,q,k,n){function f(c,b){b||(b=Object.keys(c.objects)[0]);b=c.objects[b];if(b["hc-decoded-geojson"])return b["hc-decoded-geojson"];var e=c.arcs;if(c.transform){var a=
|
|
54
|
+
c.transform,d=a.scale,r=a.translate;e=c.arcs.map(function(b){var c=0,l=0;return b.map(function(b){b=b.slice();b[0]=(c+=b[0])*d[0]+r[0];b[1]=(l+=b[1])*d[1]+r[1];return b})})}var f=function(b){return"number"===typeof b[0]?b.reduce(function(b,c,a){var g=0>c?e[~c]:e[c];0>c?(g=g.slice(0,0===a?g.length:g.length-1),g.reverse()):a&&(g=g.slice(1));return b.concat(g)},[]):b.map(f)};a=b.geometries.map(function(b){return{type:"Feature",properties:b.properties,geometry:{type:b.type,coordinates:b.coordinates||
|
|
55
|
+
f(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,title:c.title};return b["hc-decoded-geojson"]=c}function d(c,b,e){void 0===b&&(b="map");var a=[];c="Topology"===c.type?f(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"!==b||
|
|
56
|
+
"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(z(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=h.format,p=q.win,m=
|
|
57
|
+
n.error,z=n.extend,e=n.merge;h=n.wrap;"";a.prototype.transformFromLatLon=function(c,b){var e=this.options.chart.proj4||p.proj4;if(e){var a=b.jsonmarginX;a=void 0===a?0:a;var d=b.jsonmarginY;d=void 0===d?0:d;var f=b.jsonres;f=void 0===f?1:f;var n=b.scale;n=void 0===n?1:n;var v=b.xoffset;v=void 0===v?0:v;var g=b.xpan;g=void 0===g?0:g;var l=b.yoffset;l=void 0===l?0:l;var k=b.ypan;k=void 0===k?0:k;c=e(b.crs,[c.lon,c.lat]);e=b.cosAngle||b.rotation&&Math.cos(b.rotation);var u=b.sinAngle||b.rotation&&Math.sin(b.rotation);
|
|
58
|
+
b=b.rotation?[c[0]*e+c[1]*u,-c[0]*u+c[1]*e]:c;return{x:((b[0]-v)*n+g)*f+a,y:-(((l-b[1])*n+k)*f-d)}}m(21,!1,this)};a.prototype.transformToLatLon=function(c,b){var e=this.options.chart.proj4||p.proj4;if(!e)m(21,!1,this);else if(null!==c.y){var a=b.jsonmarginX,d=b.jsonmarginY,f=b.jsonres;f=void 0===f?1:f;var n=b.scale;n=void 0===n?1:n;var v=b.xoffset,g=b.xpan,l=b.yoffset,k=b.ypan;c={x:((c.x-(void 0===a?0:a))/f-(void 0===g?0:g))/n+(void 0===v?0:v),y:((c.y-(void 0===d?0:d))/f+(void 0===k?0:k))/n+(void 0===
|
|
59
|
+
l?0:l)};a=b.cosAngle||b.rotation&&Math.cos(b.rotation);d=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=e(b.crs,"WGS84",b.rotation?{x:c.x*a+c.y*-d,y:c.x*d+c.y*a}: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)};h(a.prototype,"addCredits",function(c,b){b=e(!0,this.options.credits,b);this.mapCredits&&(b.href=null);c.call(this,
|
|
60
|
+
b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});q.geojson=d;return{geojson:d,topo2geo:f}});w(a,"Core/Geometry/PolygonClip.js",[],function(){var a=function(a,n,f){return(n[0]-a[0])*(f[1]-a[1])>(n[1]-a[1])*(f[0]-a[0])},h=function(a,n,f,d){var k=[a[0]-n[0],a[1]-n[1]],p=[f[0]-d[0],f[1]-d[1]];a=a[0]*n[1]-a[1]*n[0];f=f[0]*d[1]-f[1]*d[0];d=1/(k[0]*p[1]-k[1]*p[0]);k=[(a*p[0]-f*k[0])*d,(a*p[1]-f*k[1])*d];k.isIntersection=!0;return k},q;(function(k){k.clipLineString=function(a,
|
|
61
|
+
f){var d=[];a=k.clipPolygon(a,f,!1);for(f=1;f<a.length;f++)a[f].isIntersection&&a[f-1].isIntersection&&(d.push(a.splice(0,f)),f=0),f===a.length-1&&d.push(a);return d};k.clipPolygon=function(n,f,d){void 0===d&&(d=!0);for(var k=f[f.length-1],p,m,q=n,e=0;e<f.length;e++){var c=q;n=f[e];q=[];p=d?c[c.length-1]:c[0];for(var b=0;b<c.length;b++)m=c[b],a(k,n,m)?(a(k,n,p)||q.push(h(k,n,p,m)),q.push(m)):a(k,n,p)&&q.push(h(k,n,p,m)),p=m;k=n}return q}})(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},h=Math.PI/180,q=Math.PI/2;return function(){function k(n){var f,d=(n.parallels||[]).map(function(a){return a*h}),k=d[0]||0;d=null!==(f=d[1])&&void 0!==f?f:k;f=Math.cos(k);"object"===typeof n.projectedBounds&&(this.projectedBounds=n.projectedBounds);n=k===d?Math.sin(k):Math.log(f/Math.cos(d))/Math.log(Math.tan((q+d)/2)/Math.tan((q+k)/2));1e-10>Math.abs(n)&&(n=1e-10*(a(n)||1));this.n=n;this.c=f*Math.pow(Math.tan((q+k)/2),n)/n}k.prototype.forward=
|
|
63
|
+
function(a){var f=a[0]*h,d=this.c,k=this.n,p=this.projectedBounds;a=a[1]*h;0<d?a<-q+.000001&&(a=-q+.000001):a>q-.000001&&(a=q-.000001);var m=d/Math.pow(Math.tan((q+a)/2),k);a=m*Math.sin(k*f)*63.78137;f=63.78137*(d-m*Math.cos(k*f));d=[a,f];p&&(a<p.x1||a>p.x2||f<p.y1||f>p.y2)&&(d.outside=!0);return d};k.prototype.inverse=function(k){var f=k[0]/63.78137,d=this.c,n=this.n;k=d-k[1]/63.78137;var p=a(n)*Math.sqrt(f*f+k*k),m=Math.atan2(f,Math.abs(k))*a(k);0>k*n&&(m-=Math.PI*a(f)*a(k));return[m/n/h,(2*Math.atan(Math.pow(d/
|
|
64
|
+
p,1/n))-q)/h]};return k}()});w(a,"Maps/Projections/EqualEarth.js",[],function(){var a=Math.sqrt(3)/2;return function(){function h(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}h.prototype.forward=function(q){var k=Math.PI/180,n=Math.asin(a*Math.sin(q[1]*k)),f=n*n,d=f*f*f;return[q[0]*k*Math.cos(n)*74.03120656864502/(a*(1.340264+3*-.081106*f+d*(7*.000893+.034164*f))),74.03120656864502*n*(1.340264+-.081106*f+d*(.000893+.003796*f))]};h.prototype.inverse=
|
|
65
|
+
function(q){var k=q[0]/74.03120656864502;q=q[1]/74.03120656864502;var n=180/Math.PI,f=q,d;for(d=0;12>d;++d){var h=f*f;var p=h*h*h;var m=f*(1.340264+-.081106*h+p*(.000893+.003796*h))-q;h=1.340264+3*-.081106*h+p*(7*.000893+.034164*h);f-=m/=h;if(1e-9>Math.abs(m))break}h=f*f;return[n*a*k*(1.340264+3*-.081106*h+h*h*h*(7*.000893+.034164*h))/Math.cos(f),n*Math.asin(Math.sin(f)/a)]};return h}()});w(a,"Maps/Projections/Miller.js",[],function(){var a=Math.PI/4,h=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(k){return[k[0]*h*63.78137,79.7267125*Math.log(Math.tan(a+.4*k[1]*h))]};q.prototype.inverse=function(k){return[k[0]/63.78137/h,2.5*(Math.atan(Math.exp(k[1]/63.78137*.8))-a)/h]};return q}()});w(a,"Maps/Projections/Orthographic.js",[],function(){var a=Math.PI/180;return function(){function h(){this.antimeridianCutting=!1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,
|
|
67
|
+
y2:63.78460826781007}}h.prototype.forward=function(h){var k=h[0];h=h[1]*a;h=[Math.cos(h)*Math.sin(k*a)*63.78460826781007,63.78460826781007*Math.sin(h)];if(-90>k||90<k)h.outside=!0;return h};h.prototype.inverse=function(h){var k=h[0]/63.78460826781007;h=h[1]/63.78460826781007;var n=Math.sqrt(k*k+h*h),f=Math.asin(n),d=Math.sin(f);return[Math.atan2(k*d,n*Math.cos(f))/a,Math.asin(n&&h*d/n)/a]};return h}()});w(a,"Maps/Projections/WebMercator.js",[],function(){var a=Math.PI/180;return function(){function h(){this.bounds=
|
|
68
|
+
{x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071};this.maxLatitude=85.0511287798}h.prototype.forward=function(h){var k=Math.sin(h[1]*a);k=[63.78137*h[0]*a,63.78137*Math.log((1+k)/(1-k))/2];85.0511287798<Math.abs(h[1])&&(k.outside=!0);return k};h.prototype.inverse=function(h){return[h[0]/(63.78137*a),(2*Math.atan(Math.exp(h[1]/63.78137))-Math.PI/2)/a]};return h}()});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,h,q,k,n){return{EqualEarth:h,LambertConformalConic:a,Miller:q,Orthographic:k,WebMercator:n}});w(a,"Maps/Projection.js",[a["Core/Geometry/PolygonClip.js"],a["Maps/Projections/ProjectionRegistry.js"],a["Core/Utilities.js"]],function(a,h,q){var k=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],f=0,m=d.length;f<m;f++,b++)a[b]=d[f];return a},n=a.clipLineString,f=a.clipPolygon,d=q.clamp,u=q.erase,p=2*Math.PI/360,m=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 f=
|
|
71
|
+
this.def,m=this.rotator;f&&(this.maxLatitude=f.maxLatitude||90,this.hasGeoProjection=!0);m&&f?(this.forward=function(b){return f.forward(m.forward(b))},this.inverse=function(b){return m.inverse(f.inverse(b))}):f?(this.forward=function(b){return f.forward(b)},this.inverse=function(b){return f.inverse(b)}):m&&(this.forward=m.forward,this.inverse=m.inverse);this.bounds="world"===b?f&&f.bounds:b}a.add=function(e,c){a.registry[e]=c};a.greatCircle=function(a,c,b){var e=Math.atan2,d=Math.cos,f=Math.sin,
|
|
72
|
+
m=Math.sqrt,k=a[1]*p,v=a[0]*p,g=c[1]*p,l=c[0]*p,h=g-k,n=l-v;h=f(h/2)*f(h/2)+d(k)*d(g)*f(n/2)*f(n/2);h=2*e(m(h),m(1-h));var q=Math.round(6371E3*h/5E5);n=[];b&&n.push(a);if(1<q)for(q=a=1/q;.999>q;q+=a){var u=f((1-q)*h)/f(h),F=f(q*h)/f(h),x=u*d(k)*d(v)+F*d(g)*d(l),C=u*d(k)*f(v)+F*d(g)*f(l);u=u*f(k)+F*f(g);u=e(u,m(x*x+C*C));x=e(C,x);n.push([x/p,u/p])}b&&n.push(c);return n};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,k([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,f=function(b,a,c){var g=b[0];b=b[1];var e=a?0:1;if("number"===typeof c&&g[a]>=c!==b[a]>=c)return g=g[e]+(c-g[a])/(b[a]-g[a])*(b[e]-g[e]),a?[g,c]:[c,g]},m=a[0];if(c=f(a,0,c.x1))m=c,a[1]=c;else if(c=f(a,0,b))m=c,a[1]=c;if(c=f(a,1,e))m=c;else if(c=f(a,1,d))m=
|
|
74
|
+
c;return m};a.prototype.getRotator=function(a){var c=a[0]*p,b=(a[1]||0)*p;a=(a[2]||0)*p;var e=Math.cos(b),d=Math.sin(b),f=Math.cos(a),m=Math.sin(a);if(0!==c||0!==b||0!==a)return{forward:function(b){var a=b[0]*p+c,g=b[1]*p,l=Math.cos(g);b=Math.cos(a)*l;a=Math.sin(a)*l;g=Math.sin(g);l=g*e+b*d;return[Math.atan2(a*f-l*m,b*e-g*d)/p,Math.asin(l*f+a*m)/p]},inverse:function(b){var a=b[0]*p,g=b[1]*p,l=Math.cos(g);b=Math.cos(a)*l;a=Math.sin(a)*l;g=Math.sin(g);l=g*f-a*m;return[(Math.atan2(a*f+g*m,b*e+l*d)-c)/
|
|
75
|
+
p,Math.asin(l*e-b*d)/p]}}};a.prototype.forward=function(a){return a};a.prototype.inverse=function(a){return a};a.prototype.cutOnAntimeridian=function(e,c){var b=[],f=[e];e.forEach(function(a,g){var l=e[g-1];if(!g){if(!c)return;l=e[e.length-1]}var f=l[0],x=a[0];(-90>f||90<f)&&(-90>x||90<x)&&0<f!==0<x&&(x=d((180-(f+360)%360)/((x+360)%360-(f+360)%360),0,1),b.push({i:g,lat:l[1]+x*(a[1]-l[1]),direction:0>f?1:-1,previousLonLat:l,lonLat:a}))});if(b.length)if(c){if(1===b.length%2){var h=b.slice().sort(function(b,
|
|
76
|
+
a){return Math.abs(a.lat)-Math.abs(b.lat)})[0];u(b,h)}for(var n=b.length-2;0<=n;){var r=b[n].i,p=m(180+.000001*b[n].direction),v=m(180-.000001*b[n].direction);r=e.splice.apply(e,k([r,b[n+1].i-r],a.greatCircle([p,b[n].lat],[p,b[n+1].lat],!0)));r.push.apply(r,a.greatCircle([v,b[n+1].lat],[v,b[n].lat],!0));f.push(r);n-=2}if(h)for(p=0;p<f.length;p++){n=h.direction;var g=h.lat;v=f[p];r=v.indexOf(h.lonLat);if(-1<r){p=(0>g?-1:1)*this.maxLatitude;var l=m(180+.000001*n),q=m(180-.000001*n);g=a.greatCircle([l,
|
|
77
|
+
g],[l,p],!0);for(l+=120*n;-180<l&&180>l;l+=120*n)g.push([l,p]);g.push.apply(g,a.greatCircle([q,p],[q,h.lat],!0));v.splice.apply(v,k([r,0],g));break}}}else for(n=b.length;n--;)r=b[n].i,r=e.splice(r,e.length,[m(180+.000001*b[n].direction),b[n].lat]),r.unshift([m(180-.000001*b[n].direction),b[n].lat]),f.push(r);return f};a.prototype.path=function(e){var c=this,b=this.bounds,d=this.def,m=this.rotator,k=[],h="Polygon"===e.type||"MultiPolygon"===e.type,p=this.hasGeoProjection,v=!d||!1!==d.antimeridianCutting,
|
|
78
|
+
g=v?m:void 0,l=v?d||this:this,q;b&&(q=[[b.x1,b.y1],[b.x2,b.y1],[b.x2,b.y2],[b.x1,b.y2]]);var u=function(d){d=d.map(function(b){if(v){g&&(b=g.forward(b));var a=b[0];.000001>Math.abs(a-180)&&(a=180>a?179.999999:180.000001);b=[a,b[1]]}return b});var e=[d];p&&(a.insertGreatCircles(d),v&&(e=c.cutOnAntimeridian(d,h)));e.forEach(function(c){if(!(2>c.length)){var g=!1,d=!1,e=function(b){g?k.push(["L",b[0],b[1]]):(k.push(["M",b[0],b[1]]),g=!0)},m=!1,t=!1,r=c.map(function(b){b=l.forward(b);b.outside?m=!0:t=
|
|
79
|
+
!0;Infinity===b[1]?b[1]=1E10:-Infinity===b[1]&&(b[1]=-1E10);return b});if(v){h&&r.push(r[0]);if(m){if(!t)return;if(q)if(h)r=f(r,q);else if(b){n(r,q).forEach(function(b){g=!1;b.forEach(e)});return}}r.forEach(e)}else for(var J=0;J<r.length;J++){var u=c[J],y=r[J];if(y.outside)d=!0;else{if(h&&!F){var F=u;c.push(u);r.push(y)}d&&A&&(h&&p?a.greatCircle(A,u).forEach(function(b){return e(l.forward(b))}):g=!1);e(y);var A=u;d=!1}}}})};"LineString"===e.type?u(e.coordinates):"MultiLineString"===e.type?e.coordinates.forEach(function(b){return u(b)}):
|
|
80
|
+
"Polygon"===e.type?(e.coordinates.forEach(function(b){return u(b)}),k.length&&k.push(["Z"])):"MultiPolygon"===e.type&&(e.coordinates.forEach(function(b){b.forEach(function(b){return u(b)})}),k.length&&k.push(["Z"]));return k};a.registry=h;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,h,q,k,n,f,
|
|
81
|
+
d){var u=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function g(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)}}(),p=this&&this.__spreadArrays||function(){for(var b=0,a=0,c=arguments.length;a<c;a++)b+=arguments[a].length;b=Array(b);var g=0;for(a=0;a<c;a++)for(var d=
|
|
82
|
+
arguments[a],e=0,l=d.length;e<l;e++,g++)b[g]=d[e];return b},m=q.topo2geo,z=k.maps,e=n.boundsFromPath,c=n.pointInPolygon,b=d.addEvent,t=d.clamp,B=d.fireEvent,E=d.isArray,r=d.isNumber,y=d.isObject,v=d.isString,g=d.merge,l=d.pick,A=d.relativeLength,I=function(b,a){return Math.log(400.979322/Math.max((b.x2-b.x1)/(a.width/256),(b.y2-b.y1)/(a.height/256)))/Math.log(2)},G=function(){function d(c,e){var l=this;this.insets=[];this.padding=[0,0,0,0];this.eventsToUnbind=[];var x;if(!(this instanceof H)){var m=
|
|
83
|
+
p([c.options.chart.map],(c.options.series||[]).map(function(b){return b.mapData})).map(function(b){return l.getGeoMap(b)}),k=[];m.forEach(function(b){b&&(x||(x=b["hc-recommended-mapview"]),b.bbox&&(b=b.bbox,k.push({x1:b[0],y1:b[1],x2:b[2],y2:b[3]})))});var h=k.length&&d.compositeBounds(k);if(h){var C=h.x1;var n=h.y1,t=h.x2;h=h.y2;C=180<t-C&&90<h-n?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[n,h],rotation:[-(C+t)/2]}}this.geoMap=m[0]}this.userOptions=e||{};m=g(a,{projection:C},x,e);
|
|
84
|
+
h=x&&x.insets;e=e&&e.insets;h&&e&&(m.insets=d.mergeInsets(h,e));this.chart=c;this.center=m.center;this.options=m;this.projection=new f(m.projection);this.playingField=c.plotBox;this.zoom=m.zoom||0;this.createInsets();this.eventsToUnbind.push(b(c,"afterSetChartSize",function(){l.playingField=l.getField();if(void 0===l.minZoom||l.minZoom===l.zoom)l.fitToBounds(void 0,void 0,!1),!l.chart.hasRendered&&r(l.userOptions.zoom)&&(l.zoom=l.userOptions.zoom),l.userOptions.center&&g(!0,l.center,l.userOptions.center)}));
|
|
85
|
+
this.setUpEvents()}d.mergeInsets=function(b,a){var c=function(b){var a={};b.forEach(function(b,c){a[b&&b.id||"i"+c]=b});return a},d=g(c(b),c(a));return Object.keys(d).map(function(b){return d[b]})};d.prototype.createInsets=function(){var b=this,a=this.options,c=a.insets;c&&c.forEach(function(c){c=new H(b,g(a.insetOptions,c));b.insets.push(c)})};d.prototype.fitToBounds=function(b,a,c,g){void 0===c&&(c=!0);var d=b||this.getProjectedBounds();if(d){var e=l(a,b?0:this.options.padding);a=this.getField(!1);
|
|
86
|
+
e=E(e)?e:[e,e,e,e];this.padding=[A(e[0],a.height),A(e[1],a.width),A(e[2],a.height),A(e[3],a.width)];this.playingField=this.getField();a=I(d,this.playingField);b||(this.minZoom=a);b=this.projection.inverse([(d.x2+d.x1)/2,(d.y2+d.y1)/2]);this.setView(b,a,c,g)}};d.prototype.getField=function(b){void 0===b&&(b=!0);b=b?this.padding:[0,0,0,0];return{x:b[3],y:b[0],width:this.chart.plotWidth-b[1]-b[3],height:this.chart.plotHeight-b[0]-b[2]}};d.prototype.getGeoMap=function(b){if(v(b))return z[b];if(y(b,!0)){if("FeatureCollection"===
|
|
87
|
+
b.type)return b;if("Topology"===b.type)return m(b)}};d.prototype.getMapBBox=function(){var b=this.getProjectedBounds(),a=this.getScale();if(b){var c=this.padding,g=this.projectedUnitsToPixels({x:b.x1,y:b.y2});return{width:(b.x2-b.x1)*a+c[1]+c[3],height:(b.y2-b.y1)*a+c[0]+c[2],x:g.x-c[3],y:g.y-c[0]}}};d.prototype.getProjectedBounds=function(){var b=this.chart.series.reduce(function(b,a){var c=a.getProjectedBounds&&a.getProjectedBounds();c&&!1!==a.options.affectsMapView&&b.push(c);return b},[]);return this.projection.bounds||
|
|
88
|
+
d.compositeBounds(b)};d.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};d.prototype.getSVGTransform=function(){var b=this.playingField,a=b.x,c=b.y,g=b.width;b=b.height;var d=this.projection.forward(this.center),e=this.projection.hasCoordinates?-1:1,l=this.getScale();e*=l;return{scaleX:l,scaleY:e,translateX:a+g/2-d[0]*l,translateY:c+b/2-d[1]*e}};d.prototype.lonLatToPixels=function(b){if(b=this.lonLatToProjectedUnits(b))return this.projectedUnitsToPixels(b)};d.prototype.lonLatToProjectedUnits=
|
|
89
|
+
function(b){var a=this.chart,g=a.mapTransforms;if(g){for(var d in g)if(Object.hasOwnProperty.call(g,d)&&g[d].hitZone){var e=a.transformFromLatLon(b,g[d]);if(e&&c(e,g[d].hitZone.coordinates[0]))return e}return a.transformFromLatLon(b,g["default"])}g=0;for(d=this.insets;g<d.length;g++)if(a=d[g],a.options.geoBounds&&c({x:b.lon,y:b.lat},a.options.geoBounds.coordinates[0]))return b=a.projection.forward([b.lon,b.lat]),b=a.projectedUnitsToPixels({x:b[0],y:b[1]}),this.pixelsToProjectedUnits(b);b=this.projection.forward([b.lon,
|
|
90
|
+
b.lat]);if(!b.outside)return{x:b[0],y:b[1]}};d.prototype.projectedUnitsToLonLat=function(b){var a=this.chart,g=a.mapTransforms;if(g){for(var d in g)if(Object.hasOwnProperty.call(g,d)&&g[d].hitZone&&c(b,g[d].hitZone.coordinates[0]))return a.transformToLatLon(b,g[d]);return a.transformToLatLon(b,g["default"])}g=this.projectedUnitsToPixels(b);d=0;for(var e=this.insets;d<e.length;d++)if(a=e[d],a.hitZone&&c(g,a.hitZone.coordinates[0]))return b=a.pixelsToProjectedUnits(g),b=a.projection.inverse([b.x,b.y]),
|
|
91
|
+
{lon:b[0],lat:b[1]};b=this.projection.inverse([b.x,b.y]);return{lon:b[0],lat:b[1]}};d.prototype.redraw=function(b){this.chart.series.forEach(function(b){b.useMapGeometry&&(b.isDirty=!0)});this.chart.redraw(b)};d.prototype.setView=function(b,a,c,g){void 0===c&&(c=!0);b&&(this.center=b);"number"===typeof a&&("number"===typeof this.minZoom&&(a=Math.max(a,this.minZoom)),"number"===typeof this.options.maxZoom&&(a=Math.min(a,this.options.maxZoom)),this.zoom=a);var d=this.getProjectedBounds();if(d){b=this.projection.forward(this.center);
|
|
92
|
+
var e=this.playingField;a=e.x;var l=e.y,f=e.width;e=e.height;var m=this.getScale(),h=this.projectedUnitsToPixels({x:d.x1,y:d.y1}),k=this.projectedUnitsToPixels({x:d.x2,y:d.y2});d=[(d.x1+d.x2)/2,(d.y1+d.y2)/2];var n=h.x,t=k.y;k=k.x;h=h.y;k-n<f?b[0]=d[0]:n<a&&k<a+f?b[0]+=Math.max(n-a,k-f-a)/m:k>a+f&&n>a&&(b[0]+=Math.min(k-f-a,n-a)/m);h-t<e?b[1]=d[1]:t<l&&h<l+e?b[1]-=Math.max(t-l,h-e-l)/m:h>l+e&&t>l&&(b[1]-=Math.min(h-e-l,t-l)/m);this.center=this.projection.inverse(b);this.insets.forEach(function(b){b.options.field&&
|
|
93
|
+
(b.hitZone=b.getHitZone(),b.playingField=b.getField())});this.render()}B(this,"afterSetView");c&&this.redraw(g)};d.prototype.projectedUnitsToPixels=function(b){var a=this.getScale(),c=this.projection.forward(this.center),g=this.playingField;return{x:g.x+g.width/2-a*(c[0]-b.x),y:g.y+g.height/2+a*(c[1]-b.y)}};d.prototype.pixelsToLonLat=function(b){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(b))};d.prototype.pixelsToProjectedUnits=function(b){var a=b.x;b=b.y;var c=this.getScale(),
|
|
94
|
+
g=this.projection.forward(this.center),d=this.playingField;return{x:g[0]+(a-(d.x+d.width/2))/c,y:g[1]-(b-(d.y+d.height/2))/c}};d.prototype.setUpEvents=function(){var a=this,c=this.chart,g,d,e,l=function(b){var l=c.pointer.pinchDown,f=a.projection,m=c.mouseDownX,h=c.mouseDownY;1===l.length&&(m=l[0].chartX,h=l[0].chartY);if("number"===typeof m&&"number"===typeof h){var k=m+","+h,n=b.originalEvent;l=n.chartX;n=n.chartY;k!==d&&(d=k,g=a.projection.forward(a.center),e=(a.projection.options.rotation||[0,
|
|
95
|
+
0]).slice());k=(k=f.def&&f.def.bounds)&&I(k,a.playingField)||-Infinity;"Orthographic"===f.options.name&&(a.minZoom||Infinity)<1.1*k?(f=440/(a.getScale()*Math.min(c.plotWidth,c.plotHeight)),e&&(m=(m-l)*f-e[0],h=t(-e[1]-(h-n)*f,-80,80),l=a.zoom,a.update({projection:{rotation:[-m,-h]}},!1),a.zoom=l,c.redraw(!1))):(f=a.getScale(),h=a.projection.inverse([g[0]+(m-l)/f,g[1]-(h-n)/f]),a.setView(h,void 0,!0,!1));b.preventDefault()}};b(c,"pan",l);b(c,"touchpan",l);b(c,"selection",function(b){if(b.resetSelection)a.zoomBy();
|
|
96
|
+
else{var g=b.x-c.plotLeft,d=b.y-c.plotTop,e=a.pixelsToProjectedUnits({x:g,y:d}),l=e.y;e=e.x;g=a.pixelsToProjectedUnits({x:g+b.width,y:d+b.height});a.fitToBounds({x1:e,y1:l,x2:g.x,y2:g.y},void 0,!0,b.originalEvent.touches?!1:void 0);/^touch/.test(b.originalEvent.type)||c.showResetZoom();b.preventDefault()}})};d.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};d.prototype.update=function(b,a,c){void 0===a&&(a=!0);var d=b.projection;d=d&&
|
|
97
|
+
f.toString(d)!==f.toString(this.options.projection);var e=!1;g(!0,this.userOptions,b);g(!0,this.options,b);"insets"in b&&(this.insets.forEach(function(b){return b.destroy()}),this.insets.length=0,e=!0);if(d||e)this.chart.series.forEach(function(b){var a=b.transformGroups;b.clearBounds&&b.clearBounds();b.isDirty=!0;b.isDirtyData=!0;if(e&&a)for(;1<a.length;)(b=a.pop())&&b.destroy()}),d&&(this.projection=new f(this.options.projection)),e&&this.createInsets(),b.center||r(b.zoom)||this.fitToBounds(void 0,
|
|
98
|
+
void 0,!1);(b.center||r(b.zoom))&&this.setView(this.options.center,b.zoom,!1);a&&this.chart.redraw(c)};d.prototype.zoomBy=function(b,a,c,g){var d=this.chart,e=this.projection.forward(this.center);a=a?this.projection.forward(a):[];var l=a[0],f=a[1];"number"===typeof b?(b=this.zoom+b,a=void 0,c&&(l=c[0],f=c[1],c=this.getScale(),l=l-d.plotLeft-d.plotWidth/2,d=f-d.plotTop-d.plotHeight/2,l=e[0]+l/c,f=e[1]+d/c),"number"===typeof l&&"number"===typeof f&&(c=1-Math.pow(2,this.zoom)/Math.pow(2,b),l=e[0]-l,
|
|
99
|
+
d=e[1]-f,e[0]-=l*c,e[1]+=d*c,a=this.projection.inverse(e)),this.setView(a,b,void 0,g)):this.fitToBounds(void 0,void 0,void 0,g)};d.compositeBounds=function(b){if(b.length)return b.slice(1).reduce(function(b,a){b.x1=Math.min(b.x1,a.x1);b.y1=Math.min(b.y1,a.y1);b.x2=Math.max(b.x2,a.x2);b.y2=Math.max(b.y2,a.y2);return b},g(b[0]))};return d}(),H=function(b){function a(a,c){var d=b.call(this,a.chart,c)||this;d.id=c.id;d.mapView=a;d.options=g(h,c);d.allBounds=[];d.options.geoBounds&&(a=a.projection.path(d.options.geoBounds),
|
|
100
|
+
d.geoBoundsProjectedBox=e(a),d.geoBoundsProjectedPolygon=a.map(function(b){return[b[1]||0,b[2]||0]}));return d}u(a,b);a.prototype.getField=function(a){void 0===a&&(a=!0);var c=this.hitZone;if(c){var g=a?this.padding:[0,0,0,0];c=c.coordinates[0];var d=c.map(function(b){return b[0]}),e=c.map(function(b){return b[1]});c=Math.min.apply(0,d)+g[3];d=Math.max.apply(0,d)-g[1];var l=Math.min.apply(0,e)+g[0];g=Math.max.apply(0,e)-g[2];if(r(c)&&r(l))return{x:c,y:l,width:d-c,height:g-l}}return b.prototype.getField.call(this,
|
|
101
|
+
a)};a.prototype.getHitZone=function(){var b=this.chart,a=this.mapView,c=this.options,d=(c.field||{}).coordinates;if(d){d=d[0];if("percent"===c.units){var e="mapBoundingBox"===c.relativeTo&&a.getMapBBox()||g(b.plotBox,{x:0,y:0});d=d.map(function(b){return[A(b[0]+"%",e.width,e.x),A(b[1]+"%",e.height,e.y)]})}return{type:"Polygon",coordinates:[d]}}};a.prototype.getProjectedBounds=function(){return G.compositeBounds(this.allBounds)};a.prototype.isInside=function(b){var a=this.geoBoundsProjectedBox,g=this.geoBoundsProjectedPolygon;
|
|
102
|
+
return!!(a&&b.x>=a.x1&&b.x<=a.x2&&b.y>=a.y1&&b.y<=a.y2&&g&&c(b,g))};a.prototype.render=function(){var b=this.chart,a=this.mapView,c=this.options,g=c.borderPath||c.field;if(g&&a.group){var d=!0;this.border||(this.border=b.renderer.path().addClass("highcharts-mapview-inset-border").add(a.group),d=!1);b.styledMode||this.border.attr({stroke:c.borderColor,"stroke-width":c.borderWidth});var e=Math.round(this.border.strokeWidth())%2/2,l="mapBoundingBox"===c.relativeTo&&a.getMapBBox()||a.playingField;a=(g.coordinates||
|
|
103
|
+
[]).reduce(function(a,g){return g.reduce(function(a,g,d){var f=g[0];g=g[1];"percent"===c.units&&(f=b.plotLeft+A(f+"%",l.width,l.x),g=b.plotTop+A(g+"%",l.height,l.y));f=Math.floor(f)+e;g=Math.floor(g)+e;a.push(0===d?["M",f,g]:["L",f,g]);return a},a)},[]);this.border[d?"animate":"attr"]({d:a})}};a.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(b){return b()})};a.prototype.setUpEvents=function(){};return a}(G);b(k,"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,h,q,k,n,f,d,u,p,m,z,e){var c=this&&this.__extends||function(){var b=
|
|
105
|
+
function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function g(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)}}(),b=a.animObject;a=k.noop;var t=f.splitPath;f=m.seriesTypes;var B=f.column,E=f.scatter;f=e.extend;var r=e.find,y=e.fireEvent,v=e.getNestedProperty,g=e.isArray,l=e.isNumber,A=e.isObject,I=e.merge,
|
|
106
|
+
G=e.objectEach,H=e.pick,F=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,g=this.group,d=b(this.options.animation);c.renderer.isSVG&&(a?g.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.001,scaleY:.001}):g.animate({translateX:c.plotLeft,translateY:c.plotTop,
|
|
107
|
+
scaleX:1,scaleY:1},d))};e.prototype.animateDrilldown=function(b){var a=this.chart,c=this.group;a.renderer.isSVG&&(b?c.attr({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(c.animate({translateX:a.plotLeft,translateY:a.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),a.drilldown&&a.drilldown.fadeInGroup(this.dataLabelsGroup)))};e.prototype.animateDrillupFrom=function(){var b=this.chart;b.renderer.isSVG&&this.group.animate({translateX:b.plotLeft+
|
|
108
|
+
b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};e.prototype.animateDrillupTo=function(b){B.prototype.animateDrillupTo.call(this,b)};e.prototype.clearBounds=function(){this.points.forEach(function(b){delete b.bounds;delete b.insetIndex;delete b.projectedPath});delete this.bounds};e.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};e.prototype.drawMapDataLabels=function(){p.prototype.drawDataLabels.call(this);
|
|
109
|
+
this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};e.prototype.drawPoints=function(){var b=this,a=this.chart,c=this.group,g=this.transformGroups,d=void 0===g?[]:g,e=a.mapView,l=a.renderer;e&&(this.transformGroups=d,d[0]||(d[0]=l.g().add(c)),e.insets.forEach(function(b,a){d[a+1]||d.push(l.g().add(c))}),this.doFullTranslate()&&(this.points.forEach(function(c){var g=c.graphic,e=c.shapeArgs;c.group=d["number"===typeof c.insetIndex?c.insetIndex+1:0];g&&g.parentGroup!==c.group&&g.add(c.group);
|
|
110
|
+
e&&a.hasRendered&&!a.styledMode&&(e.fill=b.pointAttribs(c,c.state).fill)}),B.prototype.drawPoints.apply(this),this.points.forEach(function(c){if(c.graphic){var g="";c.name&&(g+="highcharts-name-"+c.name.replace(/ /g,"-").toLowerCase());c.properties&&c.properties["hc-key"]&&(g+=" highcharts-key-"+c.properties["hc-key"].toString().toLowerCase());g&&c.graphic.addClass(g);a.styledMode&&c.graphic.css(b.pointAttribs(c,c.selected&&"select"||void 0))}})),d.forEach(function(c,g){var d=(0===g?e:e.insets[g-
|
|
111
|
+
1]).getSVGTransform(),f=H(b.options[b.pointAttrToOptions&&b.pointAttrToOptions["stroke-width"]||"borderWidth"],1),m=d.scaleX,h=0<d.scaleY?1:-1;if(l.globalAnimation&&a.hasRendered){var k=Number(c.attr("translateX")),n=Number(c.attr("translateY")),t=Number(c.attr("scaleX"));c.attr({animator:0}).animate({animator:1},{step:function(b,a){b=t+(m-t)*a.pos;c.attr({translateX:k+(d.translateX-k)*a.pos,translateY:n+(d.translateY-n)*a.pos,scaleX:b,scaleY:b*h});c.element.setAttribute("stroke-width",f/b)}})}else c.attr(d),
|
|
112
|
+
c.element.setAttribute("stroke-width",f/m)}),this.drawMapDataLabels())};e.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var b=this.chart.mapView,a=b.insets,c=b.projection,d=[];(this.points||[]).forEach(function(b){if(b.path||b.geometry){"string"===typeof b.path?b.path=t(b.path):g(b.path)&&"M"===b.path[0]&&(b.path=z.prototype.pathToSegments(b.path));if(!b.bounds){var e=b.getProjectedBounds(c);if(e){b.labelrank=H(b.labelrank,(e.x2-e.x1)*(e.y2-e.y1));var f=e.midX,m=e.midY;
|
|
113
|
+
if(a&&l(f)&&l(m)){var h=r(a,function(b){return b.isInside({x:f,y:m})});h&&(delete b.projectedPath,(e=b.getProjectedBounds(h.projection))&&h.allBounds.push(e),b.insetIndex=a.indexOf(h))}b.bounds=e}}b.bounds&&void 0===b.insetIndex&&d.push(b.bounds)}});this.bounds=u.compositeBounds(d)}return this.bounds};e.prototype.hasData=function(){return!!this.processedXData.length};e.prototype.pointAttribs=function(b,a){var c=b.series.chart,g=c.mapView;a=c.styledMode?this.colorAttribs(b):B.prototype.pointAttribs.call(this,
|
|
114
|
+
b,a);(b=b.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&g&&(b/=g.getScale());a.dashstyle&&g&&this.options.borderWidth&&(b=this.options.borderWidth/g.getScale());a["stroke-width"]=H(b,"inherit");return a};e.prototype.updateData=function(){return this.processedData?!1:a.prototype.updateData.apply(this,arguments)};e.prototype.setData=function(){a.prototype.setData.apply(this,arguments);this.processData();this.generatePoints()};e.prototype.processData=function(){var b=
|
|
115
|
+
this.options,a=b.data,c=this.chart.options.chart,e=this.joinBy,f=b.keys||this.pointArrayMap,m=[],h={},n=this.chart.mapView;n=n&&(A(b.mapData,!0)?n.getGeoMap(b.mapData):n.geoMap);var t=this.chart.mapTransforms;(this.chart.mapTransforms=t=c.mapTransforms||n&&n["hc-transform"]||t)&&G(t,function(b){b.rotation&&(b.cosAngle=Math.cos(b.rotation),b.sinAngle=Math.sin(b.rotation))});if(g(b.mapData))var p=b.mapData;else n&&"FeatureCollection"===n.type&&(this.mapTitle=n.title,p=k.geojson(n,this.type,this));var r=
|
|
116
|
+
this.processedData=[];a&&a.forEach(function(c,m){var h=0;if(l(c))r[m]={value:c};else if(g(c)){r[m]={};!b.keys&&c.length>f.length&&"string"===typeof c[0]&&(r[m]["hc-key"]=c[0],++h);for(var k=0;k<f.length;++k,++h)f[k]&&"undefined"!==typeof c[h]&&(0<f[k].indexOf(".")?d.prototype.setNestedProperty(r[m],c[h],f[k]):r[m][f[k]]=c[h])}else r[m]=a[m];e&&"_i"===e[0]&&(r[m]._i=m)});if(p){this.mapData=p;this.mapMap={};for(t=0;t<p.length;t++)c=p[t],n=c.properties,c._i=t,e[0]&&n&&n[e[0]]&&(c[e[0]]=n[e[0]]),h[c[e[0]]]=
|
|
117
|
+
c;this.mapMap=h;if(e[1]){var q=e[1];r.forEach(function(b){b=v(q,b);h[b]&&m.push(h[b])})}if(b.allAreas){if(e[1]){var u=e[1];r.forEach(function(b){m.push(v(u,b))})}var y="|"+m.map(function(b){return b&&b[e[0]]}).join("|")+"|";p.forEach(function(b){e[0]&&-1!==y.indexOf("|"+b[e[0]]+"|")||r.push(I(b,{value:null}))})}}this.processedXData=Array(r.length)};e.prototype.setOptions=function(b){b=p.prototype.setOptions.call(this,b);var a=b.joinBy;null===a&&(a="_i");a=this.joinBy=F(a);a[1]||(a[1]=a[0]);return b};
|
|
118
|
+
e.prototype.translate=function(){var b=this.doFullTranslate(),a=this.chart.mapView,c=a&&a.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,this.getProjectedBounds());if(a){var g=a.getSVGTransform();this.points.forEach(function(e){var f=l(e.insetIndex)&&a.insets[e.insetIndex].getSVGTransform()||g;f&&e.bounds&&l(e.bounds.midX)&&l(e.bounds.midY)&&(e.plotX=e.bounds.midX*f.scaleX+f.translateX,e.plotY=e.bounds.midY*f.scaleY+
|
|
119
|
+
f.translateY);b&&(e.shapeType="path",e.shapeArgs={d:d.getProjectedPath(e,c)})})}y(this,"afterTranslate")};e.defaultOptions=I(E.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var b=this.series.chart.numberFormatter,a=this.point.value;return l(a)?b(a,-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,
|
|
120
|
+
borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return e}(E);f(e.prototype,{type:"map",axisTypes:h.SeriesMixin.axisTypes,colorAttribs:h.SeriesMixin.colorAttribs,colorKey:h.SeriesMixin.colorKey,directTouch:!0,drawDataLabels:a,drawGraph:a,drawLegendSymbol:n.drawRectangle,forceDL:!0,getCenter:q.getCenter,getExtremesFromAll:!0,getSymbol:h.SeriesMixin.getSymbol,isCartesian:!1,parallelArrays:h.SeriesMixin.parallelArrays,
|
|
121
|
+
pointArrayMap:h.SeriesMixin.pointArrayMap,pointClass:d,preserveAspectRatio:!0,searchPoint:a,trackerGroups:h.SeriesMixin.trackerGroups,useMapGeometry:!0});m.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,h,q){var k=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var c in d)d.hasOwnProperty(c)&&
|
|
122
|
+
(a[c]=d[c])};return a(d,f)};return function(d,f){function m(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(m.prototype=f.prototype,new m)}}(),n=h.series,f=q.extend,d=q.merge;q=function(f){function h(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(h,f);h.prototype.pointAttribs=function(d,f){d=a.prototype.pointAttribs.call(this,d,f);d.fill=this.options.fillColor;return d};h.defaultOptions=d(a.defaultOptions,{lineWidth:1,fillColor:"none"});
|
|
123
|
+
return h}(a);f(q.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:n.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});h.registerSeriesType("mapline",q);"";return q});w(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,h){var q=this&&this.__extends||function(){var a=function(f,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&
|
|
124
|
+
(a[f]=d[f])};return a(f,d)};return function(f,d){function h(){this.constructor=f}a(f,d);f.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)}}(),k=h.isNumber;return function(a){function f(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;d.series=void 0;return d}q(f,a);f.prototype.isValid=function(){return!!(this.options.geometry||k(this.x)&&k(this.y)||k(this.options.lon)&&k(this.options.lat))};return f}(a.seriesTypes.scatter.prototype.pointClass)});w(a,"Series/MapPoint/MapPointSeries.js",
|
|
125
|
+
[a["Core/Globals.js"],a["Series/MapPoint/MapPointPoint.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,h,q,k){var n=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return a(d,c)};return function(d,c){function b(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}();a=a.noop;
|
|
126
|
+
var f=q.seriesTypes.scatter,d=k.extend,u=k.fireEvent,p=k.isNumber,m=k.merge;k=function(a){function d(){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}n(d,a);d.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};d.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var c=a.geometry,d=a.lon;a=a.lat;c=c&&"Point"===c.type&&c.coordinates;
|
|
127
|
+
p(d)&&p(a)&&(c=[d,a]);if(c)return b.lonLatToProjectedUnits({lon:c[0],lat:c[1]})}};d.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds());if(b){var d=b.projection.hasCoordinates;this.points.forEach(function(c){var e=c.x;e=void 0===e?void 0:e;var f=c.y;f=void 0===f?void 0:f;var h=a.projectPoint(c.options);h?(e=h.x,f=h.y):c.bounds&&(e=c.bounds.midX,
|
|
128
|
+
f=c.bounds.midY);p(e)&&p(f)?(e=b.projectedUnitsToPixels({x:e,y:f}),c.plotX=e.x,c.plotY=d?e.y:a.chart.plotHeight-e.y):c.y=c.plotX=c.plotY=void 0;c.isInside=a.isPointInside(c);c.zone=a.zones.length?c.getZone():void 0})}u(this,"afterTranslate")};d.defaultOptions=m(f.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return d}(f);d(k.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:h,
|
|
129
|
+
searchPoint:a,useMapGeometry:!0});q.registerSeriesType("mappoint",k);"";return k});w(a,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,
|
|
130
|
+
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"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,h,q,k){var n=a.parse,f=q.noop,d=k.arrayMax,u=k.arrayMin,p=k.isNumber,m=k.merge,z=k.pick,e=k.stableSort;"";return function(){function a(b,a){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=
|
|
131
|
+
this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=f;this.init(b,a)}a.prototype.init=function(b,a){this.options=b;this.visible=!0;this.chart=a.chart;this.legend=a};a.prototype.addToLegend=function(b){b.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(b){var a=this.chart,c=this.options,d=z(b.options.itemDistance,20),f=c.ranges,h=c.connectorDistance;this.fontMetrics=a.renderer.fontMetrics(c.labels.style.fontSize);
|
|
132
|
+
f&&f.length&&p(f[0].value)?(e(f,function(b,a){return a.value-b.value}),this.ranges=f,this.setOptions(),this.render(),b=this.getMaxLabelSize(),f=this.ranges[0].radius,a=2*f,h=h-f+b.width,h=0<h?h:0,this.maxLabel=b,this.movementX="left"===c.labels.align?h:0,this.legendItemWidth=a+h+d,this.legendItemHeight=a+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var b=this.ranges,a=this.options,c=this.chart.series[a.seriesIndex],d=this.legend.baseline,e={zIndex:a.zIndex,
|
|
133
|
+
"stroke-width":a.borderWidth},f={zIndex:a.zIndex,"stroke-width":a.connectorWidth},h={align:this.legend.options.rtl||"left"===a.labels.align?"right":"left",zIndex:a.zIndex},g=c.options.marker.fillOpacity,l=this.chart.styledMode;b.forEach(function(k,p){l||(e.stroke=z(k.borderColor,a.borderColor,c.color),e.fill=z(k.color,a.color,1!==g?n(c.color).setOpacity(g).get("rgba"):c.color),f.stroke=z(k.connectorColor,a.connectorColor,c.color));b[p].radius=this.getRangeRadius(k.value);b[p]=m(b[p],{center:b[0].radius-
|
|
134
|
+
b[p].radius+d});l||m(!0,b[p],{bubbleAttribs:m(e),connectorAttribs:m(f),labelAttribs:h})},this)};a.prototype.getRangeRadius=function(b){var a=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,a.ranges[a.ranges.length-1].value,a.ranges[0].value,a.minSize,a.maxSize,b)};a.prototype.render=function(){var b=this.chart.renderer,a=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=b.g("bubble-legend");this.legendItem=
|
|
135
|
+
b.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(b){b.value>=a&&this.renderRange(b)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=function(b){var a=this.options,c=a.labels,d=this.chart,e=d.series[a.seriesIndex],f=d.renderer,h=this.symbols;d=h.labels;var g=b.center,l=Math.abs(b.radius),m=a.connectorDistance||0,k=c.align,n=a.connectorWidth,p=
|
|
136
|
+
this.ranges[0].radius||0,q=g-l-a.borderWidth/2+n/2,u=this.fontMetrics;u=u.f/2-(u.h-u.f)/2;var z=f.styledMode;m=this.legend.options.rtl||"left"===k?-m:m;"center"===k&&(m=0,a.connectorDistance=0,b.labelAttribs.align="center");k=q+a.labels.y;var w=p+m+a.labels.x;h.bubbleItems.push(f.circle(p,g+((q%1?1:.5)-(n%2?0:.5)),l).attr(z?{}:b.bubbleAttribs).addClass((z?"highcharts-color-"+e.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(a.className||"")).add(this.legendSymbol));h.connectors.push(f.path(f.crispLine([["M",
|
|
137
|
+
p,q],["L",p+m,q]],a.connectorWidth)).attr(z?{}:b.connectorAttribs).addClass((z?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(a.connectorClassName||"")).add(this.legendSymbol));b=f.text(this.formatLabel(b),w,k+u).attr(z?{}:b.labelAttribs).css(z?{}:c.style).addClass("highcharts-bubble-legend-labels "+(a.labels.className||"")).add(this.legendSymbol);d.push(b);b.placed=!0;b.alignAttr={x:w,y:k+u}};a.prototype.getMaxLabelSize=function(){var b,a;this.symbols.labels.forEach(function(c){a=
|
|
138
|
+
c.getBBox(!0);b=b?a.width>b.width?a:b:a});return b||{}};a.prototype.formatLabel=function(b){var a=this.options,c=a.labels.formatter;a=a.labels.format;var d=this.chart.numberFormatter;return a?h.format(a,b):c?c.call(b):d(b.value,1)};a.prototype.hideOverlappingLabels=function(){var b=this.chart,a=this.symbols;!this.options.labels.allowOverlap&&a&&(b.hideOverlappingLabels(a.labels),a.labels.forEach(function(b,c){b.newOpacity?b.newOpacity!==b.oldOpacity&&a.connectors[c].show():a.connectors[c].hide()}))};
|
|
139
|
+
a.prototype.getRanges=function(){var b=this.legend.bubbleLegend,a=b.options.ranges,c,e=Number.MAX_VALUE,f=-Number.MAX_VALUE;b.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(c=a.zData.filter(p),c.length&&(e=z(a.options.zMin,Math.min(e,Math.max(u(c),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),f=z(a.options.zMax,Math.max(f,d(c)))))});var h=e===f?[{value:f}]:[{value:e},{value:(e+f)/2},{value:f,autoRanges:!0}];a.length&&a[0].radius&&h.reverse();h.forEach(function(b,
|
|
140
|
+
c){a&&a[c]&&(h[c]=m(a[c],b))});return h};a.prototype.predictBubbleSizes=function(){var a=this.chart,c=this.fontMetrics,d=a.legend.options,e=d.floating,f=(d="horizontal"===d.layout)?a.legend.lastLineHeight:0,h=a.plotSizeX,m=a.plotSizeY,g=a.series[this.options.seriesIndex],l=g.getPxExtremes();a=Math.ceil(l.minPxSize);l=Math.ceil(l.maxPxSize);var k=Math.min(m,h);g=g.options.maxSize;if(e||!/%$/.test(g))c=l;else if(g=parseFloat(g),c=(k+f-c.h/2)*g/100/(g/100+1),d&&m-c>=h||!d&&h-c>=m)c=l;return[a,Math.ceil(c)]};
|
|
141
|
+
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=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"],
|
|
142
|
+
a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,h,q,k){var n=q.setOptions,f=k.addEvent,d=k.objectEach,u=k.wrap,p;(function(m){function k(a,b,f){var g=this.legend,l=0<=e(this);if(g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&l){var h=g.bubbleLegend.options;l=g.bubbleLegend.predictBubbleSizes();g.bubbleLegend.updateRanges(l[0],l[1]);h.placed||(g.group.placed=!1,g.allItems.forEach(function(a){a.legendGroup.translateY=null}));g.render();this.getMargins();this.axes.forEach(function(a){a.visible&&
|
|
143
|
+
a.render();h.placed||(a.setScale(),a.updateNames(),d(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});h.placed=!0;this.getMargins();a.call(this,b,f);g.bubbleLegend.correctSizes();q(g,c(g))}else a.call(this,b,f),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),q(g,c(g)))}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,d,e=0;for(d=0;d<c;d++)if(a[d].legendItemHeight&&(a[d].itemHeight=
|
|
144
|
+
a[d].legendItemHeight),a[d]===a[c-1]||a[d+1]&&a[d]._legendItemPos[1]!==a[d+1]._legendItemPos[1]){b.push({height:0});var f=b[b.length-1];for(e;e<=d;e++)a[e].itemHeight>f.height&&(f.height=a[e].itemHeight);f.step=d}return b}function b(a){var b=this.bubbleLegend,c=this.options,d=c.bubbleLegend,f=e(this.chart);b&&b.ranges&&b.ranges.length&&(d.ranges.length&&(d.autoRanges=!!d.ranges[0].autoRanges),this.destroyItem(b));0<=f&&c.enabled&&d.enabled&&(d.seriesIndex=f,this.bubbleLegend=new h(d,this),this.bubbleLegend.addToLegend(a.allItems))}
|
|
145
|
+
function p(){var a=this.chart,b=this.visible,c=this.chart.legend;c&&c.bubbleLegend&&(this.visible=!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,d,e,f,h=0;a.allItems.forEach(function(a,g){d=a.legendGroup.translateX;e=a._legendItemPos[1];if((f=a.movementX)||c&&a.ranges)f=c?d-a.options.maxSize/2:d+f,a.legendGroup.attr({translateX:f});g>b[h].step&&h++;a.legendGroup.attr({translateY:Math.round(e+
|
|
146
|
+
b[h].height/2)});a._legendItemPos[1]=e+b[h].height/2})}var w=[];m.compose=function(c,d,e){-1===w.indexOf(c)&&(w.push(c),n({legend:{bubbleLegend:a}}),u(c.prototype,"drawChartBox",k));-1===w.indexOf(d)&&(w.push(d),f(d,"afterGetAllItems",b));-1===w.indexOf(e)&&(w.push(e),f(e,"legendItemClick",p))}})(p||(p={}));return p});w(a,"Series/Bubble/BubblePoint.js",[a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,h,q){var k=this&&this.__extends||function(){var a=
|
|
147
|
+
function(f,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(f,d)};return function(f,d){function h(){this.constructor=f}a(f,d);f.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)}}();q=q.extend;h=function(h){function f(){var a=null!==h&&h.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}k(f,h);f.prototype.haloPath=function(d){return a.prototype.haloPath.call(this,
|
|
148
|
+
0===d?0:(this.marker?this.marker.radius||0:0)+d)};return f}(h.seriesTypes.scatter.prototype.pointClass);q(h.prototype,{ttBelow:!1});return h});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,h,q,k,n,f,d,u){var p=this&&this.__extends||function(){var a=function(b,c){a=
|
|
149
|
+
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)}}(),m=k.parse;k=n.noop;var z=d.seriesTypes;n=z.column;var e=z.scatter;z=u.addEvent;var c=u.arrayMax,b=u.arrayMin,t=u.clamp,w=u.extend,D=u.isNumber,r=u.merge,y=u.pick;u=function(a){function d(){var b=null!==a&&
|
|
150
|
+
a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options=void 0;b.points=void 0;b.radii=void 0;b.yData=void 0;b.zData=void 0;return b}p(d,a);d.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)};d.prototype.getRadii=function(){var a=this,b=this.zData,
|
|
151
|
+
c=this.yData,d=[],e=this.chart.bubbleZExtremes;var g=this.getPxExtremes();var f=g.minPxSize,h=g.maxPxSize;if(!e){var m=Number.MAX_VALUE,k=-Number.MAX_VALUE,n;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=b.getZExtremes())&&(m=Math.min(m||b.zMin,b.zMin),k=Math.max(k||b.zMax,b.zMax),n=!0)});n?(e={zMin:m,zMax:k},this.chart.bubbleZExtremes=e):e={zMin:0,zMax:0}}var p=0;for(g=b.length;p<g;p++){var q=b[p];d.push(this.getRadius(e.zMin,e.zMax,
|
|
152
|
+
f,h,q,c[p]))}this.radii=d};d.prototype.getRadius=function(a,b,c,d,e,g){var f=this.options,l="width"!==f.sizeBy,h=f.zThreshold,m=b-a,k=.5;if(null===g||null===e)return null;if(D(e)){f.sizeByAbsoluteValue&&(e=Math.abs(e-h),m=Math.max(b-h,Math.abs(a-h)),a=0);if(e<a)return c/2-1;0<m&&(k=(e-a)/m)}l&&0<=k&&(k=Math.sqrt(k));return Math.ceil(c+k*(d-c))/2};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=f.prototype.pointAttribs.call(this,
|
|
153
|
+
a,b);1!==c&&(a.fill=m(a.fill).setOpacity(c).get("rgba"));return a};d.prototype.translate=function(){a.prototype.translate.call(this);this.getRadii();this.translateBubble()};d.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,c=this.getPxExtremes().minPxSize,d=a.length;d--;){var e=a[d],g=b?b[d]:0;D(g)&&g>=c/2?(e.marker=w(e.marker,{radius:g,width:2*g,height:2*g}),e.dlBox={x:e.plotX-g,y:e.plotY-g,width:2*g,height:2*g}):e.shapeArgs=e.plotY=e.dlBox=void 0}};d.prototype.getPxExtremes=
|
|
154
|
+
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,10)}return c?a*b/100:b},c=b(y(this.options.minSize,8));b=Math.max(b(y(this.options.maxSize,"20%")),c);return{minPxSize:c,maxPxSize:b}};d.prototype.getZExtremes=function(){var a=this.options,d=(this.zData||[]).filter(D);if(d.length){var e=y(a.zMin,t(b(d),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=y(a.zMax,c(d));if(D(e)&&D(a))return{zMin:e,
|
|
155
|
+
zMax:a}}};d.compose=h.compose;d.defaultOptions=r(e.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,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,
|
|
156
|
+
zoneAxis:"z"});return d}(e);w(u.prototype,{alignDataLabel:n.prototype.alignDataLabel,applyZones:k,bubblePadding:!0,buildKDTree:k,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:q,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});z(u,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});a.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,e=b,f=this.isXAxis,h=f?"xData":"yData",m=this.min,k=this.max-
|
|
157
|
+
m,n=b/k,p;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!c.options.chart.ignoreHiddenSeries)){p=a.allowZoomOutside=!0;var g=b[h];f&&b.getRadii(0,0,b);if(0<k)for(var l=g.length;l--;)if(D(g[l])&&a.dataMin<=g[l]&&g[l]<=a.max){var q=b.radii&&b.radii[l]||0;d=Math.min((g[l]-m)*n-q,d);e=Math.max((g[l]-m)*n+q,e)}}});p&&0<k&&!this.logarithmic&&(e-=b,n*=(b+Math.max(0,d)-Math.min(e,b))/b,[["min","userMin",d],["max","userMax",e]].forEach(function(b){"undefined"===typeof y(a.options[b[0]],a[b[1]])&&
|
|
158
|
+
(a[b[0]]+=b[2]/n)}))};d.registerSeriesType("bubble",u);"";"";return u});w(a,"Series/MapBubble/MapBubblePoint.js",[a["Series/Map/MapPoint.js"],a["Core/Series/SeriesRegistry.js"]],function(a,h){var q=this&&this.__extends||function(){var a=function(f,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(f,d)};return function(f,d){function h(){this.constructor=f}a(f,d);f.prototype=null===d?Object.create(d):
|
|
159
|
+
(h.prototype=d.prototype,new h)}}();h=h.seriesTypes;var k=h.map;return function(h){function f(){var d=null!==h&&h.apply(this,arguments)||this;d.applyOptions=k.prototype.pointClass.prototype.applyOptions;d.getProjectedBounds=a.prototype.getProjectedBounds;return d}q(f,h);f.prototype.isValid=function(){return"number"===typeof this.z};return f}(h.bubble.prototype.pointClass)});w(a,"Series/MapBubble/MapBubbleSeries.js",[a["Series/Bubble/BubbleSeries.js"],a["Series/MapBubble/MapBubblePoint.js"],a["Series/Map/MapSeries.js"],
|
|
160
|
+
a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,h,q,k,n){var f=this&&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)}}(),d=k.seriesTypes.mappoint,u=n.extend,p=n.merge;n=function(h){function k(){var a=
|
|
161
|
+
null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}f(k,h);k.prototype.searchPoint=function(a,c){return this.searchKDTree({clientX:a.chartX-this.chart.plotLeft,plotY:a.chartY-this.chart.plotTop},c,a)};k.prototype.translate=function(){d.prototype.translate.call(this);this.getRadii();this.translateBubble()};k.compose=a.compose;k.defaultOptions=p(a.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}});
|
|
162
|
+
return k}(a);u(n.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:q.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:h,processData:q.prototype.processData,projectPoint:d.prototype.projectPoint,setData:q.prototype.setData,setOptions:q.prototype.setOptions,updateData:q.prototype.updateData,useMapGeometry:!0,xyFromShape:!0});k.registerSeriesType("mapbubble",n);"";return n});w(a,"Series/Heatmap/HeatmapPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],
|
|
163
|
+
function(a,h){var q=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var c in d)d.hasOwnProperty(c)&&(a[c]=d[c])};return a(d,f)};return function(d,f){function h(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)}}(),k=h.clamp,n=h.defined,f=h.extend,d=h.pick;a=function(a){function f(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;
|
|
164
|
+
d.series=void 0;d.value=void 0;d.x=void 0;d.y=void 0;return d}q(f,a);f.prototype.applyOptions=function(d,f){d=a.prototype.applyOptions.call(this,d,f);d.formatPrefix=d.isNull||null===d.value?"null":"point";return d};f.prototype.getCellAttributes=function(){var a=this.series,f=a.options,e=(f.colsize||1)/2,c=(f.rowsize||1)/2,b=a.xAxis,h=a.yAxis,p=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var q=d(this.pointPadding,f.pointPadding,0),r={x1:k(Math.round(b.len-(b.translate(this.x-
|
|
165
|
+
e,!1,!0,!1,!0,-a)||0)),-b.len,2*b.len),x2:k(Math.round(b.len-(b.translate(this.x+e,!1,!0,!1,!0,-a)||0)),-b.len,2*b.len),y1:k(Math.round(h.translate(this.y-c,!1,!0,!1,!0)||0),-h.len,2*h.len),y2:k(Math.round(h.translate(this.y+c,!1,!0,!1,!0)||0),-h.len,2*h.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(r[c]-r[d]),f=p&&p.lineWidth||0,h=Math.abs(r[c]+r[d])/2;b=p&&p[b];n(b)&&b<e&&(b=b/2+f/2,r[c]=h-b,r[d]=h+b);q&&("y"===a&&(c=d,d=a+"1"),r[c]+=q,
|
|
166
|
+
r[d]-=q)});return r};f.prototype.haloPath=function(a){if(!a)return[];var d=this.shapeArgs;return["M",d.x-a,d.y-a,"L",d.x-a,d.y+d.height+a,d.x+d.width+a,d.y+d.height+a,d.x+d.width+a,d.y-a,"Z"]};f.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return f}(a.seriesTypes.scatter.prototype.pointClass);f(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"],
|
|
167
|
+
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"]],function(a,h,q,k,n,f,d){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):
|
|
168
|
+
(d.prototype=c.prototype,new d)}}(),p=n.series,m=n.seriesTypes,w=m.column,e=m.scatter,c=f.prototype.symbols,b=d.extend,t=d.fireEvent,D=d.isNumber,E=d.merge,r=d.pick;f=function(d){function f(){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(f,d);f.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)p.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&
|
|
169
|
+
(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};f.prototype.getExtremes=function(){var a=p.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;D(b)&&(this.valueMin=b);D(a)&&(this.valueMax=a);return p.prototype.getExtremes.call(this)};f.prototype.getValidPoints=function(a,b){return p.prototype.getValidPoints.call(this,a,b,!0)};f.prototype.hasData=function(){return!!this.processedXData.length};f.prototype.init=
|
|
170
|
+
function(){p.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=r(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;c.ellipse=c.circle;a.marker&&(a.marker.r=a.borderRadius)};f.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]])+
|
|
171
|
+
(h[a[0]+"Plus"]||g[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};f.prototype.pointAttribs=function(b,c){var d=p.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;
|
|
172
|
+
d["stroke-width"]=g;c&&(b=E(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};f.prototype.setClip=function(a){var b=this.chart;p.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};f.prototype.translate=function(){var a=this.options,d=a.marker&&
|
|
173
|
+
a.marker.symbol||"rect",e=c[d]?d:"rect",f=-1!==["circle","square"].indexOf(e);this.generatePoints();this.points.forEach(function(g){var h=g.getCellAttributes(),k={};k.x=Math.min(h.x1,h.x2);k.y=Math.min(h.y1,h.y2);k.width=Math.max(Math.abs(h.x2-h.x1),0);k.height=Math.max(Math.abs(h.y2-h.y1),0);var l=g.hasImage=0===(g.marker&&g.marker.symbol||d||"").indexOf("url");if(f){var m=Math.abs(k.width-k.height);k.x=Math.min(h.x1,h.x2)+(k.width<k.height?0:m/2);k.y=Math.min(h.y1,h.y2)+(k.width<k.height?m/2:0);
|
|
174
|
+
k.width=k.height=Math.min(k.width,k.height)}m={plotX:(h.x1+h.x2)/2,plotY:(h.y1+h.y2)/2,clientX:(h.x1+h.x2)/2,shapeType:"path",shapeArgs:E(!0,k,{d:c[e](k.x,k.y,k.width,k.height,{r:a.borderRadius})})};l&&(g.marker={width:k.width,height:k.height});b(g,m)});t(this,"afterTranslate")};f.defaultOptions=E(e.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return D(b)?a(b,-1):""},inside:!0,
|
|
175
|
+
verticalAlign:"middle",crop:!1,overflow:!1,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 f}(e);b(f.prototype,{alignDataLabel:w.prototype.alignDataLabel,axisTypes:h.SeriesMixin.axisTypes,colorAttribs:h.SeriesMixin.colorAttribs,colorKey:h.SeriesMixin.colorKey,directTouch:!0,drawLegendSymbol:k.drawRectangle,getExtremesFromAll:!0,
|
|
176
|
+
getSymbol:p.prototype.getSymbol,parallelArrays:h.SeriesMixin.parallelArrays,pointArrayMap:["y","value"],pointClass:q,trackerGroups:h.SeriesMixin.trackerGroups});n.registerSeriesType("heatmap",f);"";"";return f});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,h,q,k,n,f){a.ColorAxis=h;a.MapChart=k;a.mapChart=a.Map=k.mapChart;a.MapView=
|
|
177
|
+
n;a.maps=k.maps;a.Projection=f;h.compose(a.Chart,a.Fx,a.Legend,a.Series);q.compose(a.Chart,a.Legend,a.Series)})});
|
|
153
178
|
//# sourceMappingURL=map.js.map
|