highcharts 10.0.0 → 10.2.1

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.
Files changed (942) hide show
  1. package/bower.json +1 -1
  2. package/css/highcharts.css +10 -20
  3. package/css/themes/dark-unica.css +10 -20
  4. package/css/themes/grid-light.css +10 -20
  5. package/css/themes/sand-signika.css +10 -20
  6. package/es-modules/Accessibility/A11yI18n.js +4 -4
  7. package/es-modules/Accessibility/Accessibility.js +8 -3
  8. package/es-modules/Accessibility/Components/AnnotationsA11y.js +3 -3
  9. package/es-modules/Accessibility/Components/ContainerComponent.js +11 -10
  10. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +18 -11
  11. package/es-modules/Accessibility/Components/LegendComponent.js +11 -11
  12. package/es-modules/Accessibility/Components/MenuComponent.js +3 -1
  13. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +3 -1
  14. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -1
  15. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +34 -17
  16. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +35 -10
  17. package/es-modules/Accessibility/Components/ZoomComponent.js +30 -70
  18. package/es-modules/Accessibility/FocusBorder.js +6 -5
  19. package/es-modules/Accessibility/HighContrastMode.js +1 -1
  20. package/es-modules/Accessibility/KeyboardNavigation.js +2 -2
  21. package/es-modules/Accessibility/Options/{Options.js → A11yDefaults.js} +73 -5
  22. package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -2
  23. package/es-modules/Accessibility/Options/{LangOptions.js → LangDefaults.js} +46 -31
  24. package/es-modules/Accessibility/Utils/ChartUtilities.js +10 -5
  25. package/es-modules/Core/Animation/Fx.js +1 -1
  26. package/es-modules/Core/Axis/Axis.js +51 -46
  27. package/es-modules/Core/Axis/Axis3D.js +1 -1
  28. package/es-modules/Core/Axis/AxisDefaults.js +9 -9
  29. package/es-modules/Core/Axis/BrokenAxis.js +1 -1
  30. package/es-modules/Core/Axis/Color/ColorAxis.js +4 -2
  31. package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +7 -3
  32. package/es-modules/Core/Axis/DateTimeAxis.js +5 -3
  33. package/es-modules/Core/Axis/GridAxis.js +821 -822
  34. package/es-modules/Core/Axis/LogarithmicAxis.js +1 -1
  35. package/es-modules/Core/Axis/NavigatorAxis.js +2 -2
  36. package/es-modules/Core/Axis/OrdinalAxis.js +26 -3
  37. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
  38. package/es-modules/Core/Axis/RadialAxis.js +1 -1
  39. package/es-modules/Core/Axis/Stacking/StackItem.js +262 -0
  40. package/es-modules/Core/Axis/Stacking/StackingAxis.js +468 -0
  41. package/es-modules/Core/Axis/Tick.js +22 -18
  42. package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +732 -0
  43. package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +313 -0
  44. package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
  45. package/es-modules/Core/Axis/ZAxis.js +76 -71
  46. package/es-modules/Core/Chart/Chart.js +42 -9
  47. package/es-modules/Core/Chart/Chart3D.js +2 -2
  48. package/es-modules/Core/Chart/ChartDefaults.js +165 -5
  49. package/es-modules/Core/Chart/GanttChart.js +3 -1
  50. package/es-modules/Core/Chart/MapChart.js +3 -1
  51. package/es-modules/Core/Chart/StockChart.js +12 -8
  52. package/es-modules/Core/Color/Color.js +1 -1
  53. package/es-modules/Core/DefaultOptions.js +19 -16
  54. package/es-modules/Core/Geometry/CircleUtilities.js +4 -4
  55. package/es-modules/Core/Globals.js +2 -1
  56. package/es-modules/Core/HttpUtilities.js +39 -37
  57. package/es-modules/Core/Legend/Legend.js +4 -4
  58. package/es-modules/Core/MSPointer.js +3 -1
  59. package/es-modules/{Extensions → Core}/Math3D.js +48 -43
  60. package/es-modules/Core/Navigator.js +31 -14
  61. package/es-modules/Core/Pointer.js +8 -10
  62. package/es-modules/Core/Renderer/HTML/AST.js +13 -7
  63. package/es-modules/Core/Renderer/HTML/HTMLElement.js +3 -1
  64. package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +3 -1
  65. package/es-modules/Core/Renderer/SVG/SVGElement.js +132 -192
  66. package/es-modules/Core/Renderer/SVG/SVGLabel.js +32 -28
  67. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +50 -45
  68. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +5 -3
  69. package/es-modules/Core/Renderer/SVG/TextBuilder.js +5 -3
  70. package/es-modules/Core/Scrollbar.js +12 -6
  71. package/es-modules/Core/ScrollbarDefaults.js +8 -8
  72. package/es-modules/Core/Series/DataLabel.js +63 -40
  73. package/es-modules/Core/Series/Point.js +11 -2
  74. package/es-modules/Core/Series/Series.js +60 -43
  75. package/es-modules/Core/Series/Series3D.js +4 -2
  76. package/es-modules/Core/Series/SeriesDefaults.js +11 -6
  77. package/es-modules/Core/Series/SeriesRegistry.js +6 -29
  78. package/es-modules/Core/Time.js +6 -7
  79. package/es-modules/Core/Tooltip.js +17 -6
  80. package/es-modules/Core/Utilities.js +7 -9
  81. package/es-modules/Data/DataConverter.js +6 -1
  82. package/es-modules/Data/DataPromise.js +1 -1
  83. package/es-modules/Data/DataSeriesComposition.js +288 -0
  84. package/es-modules/Data/DataSeriesConverter.js +1 -1
  85. package/es-modules/Data/DataTable.js +14 -12
  86. package/es-modules/Data/Modifiers/ChainModifier.js +4 -2
  87. package/es-modules/Data/Modifiers/DataModifier.js +1 -1
  88. package/es-modules/Data/Modifiers/GroupModifier.js +4 -2
  89. package/es-modules/Data/Modifiers/InvertModifier.js +10 -8
  90. package/es-modules/Data/Modifiers/RangeModifier.js +4 -2
  91. package/es-modules/Data/Modifiers/SeriesPointsModifier.js +4 -2
  92. package/es-modules/Data/Modifiers/SortModifier.js +4 -2
  93. package/es-modules/Data/Parsers/CSVParser.js +3 -1
  94. package/es-modules/Data/Parsers/DataParser.js +2 -2
  95. package/es-modules/Data/Parsers/GoogleSheetsParser.js +3 -2
  96. package/es-modules/Data/Parsers/HTMLTableParser.js +3 -1
  97. package/es-modules/Data/Stores/CSVStore.js +8 -5
  98. package/es-modules/Data/Stores/DataStore.js +1 -1
  99. package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
  100. package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
  101. package/es-modules/Extensions/Annotations/Annotation.js +652 -0
  102. package/es-modules/Extensions/Annotations/AnnotationChart.js +291 -0
  103. package/es-modules/Extensions/Annotations/AnnotationDefaults.js +624 -0
  104. package/es-modules/Extensions/Annotations/ControlPoint.js +89 -64
  105. package/es-modules/Extensions/Annotations/{Mixins/ControllableMixin.js → Controllables/Controllable.js} +300 -241
  106. package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +63 -50
  107. package/es-modules/Extensions/Annotations/Controllables/ControllableDefaults.js +95 -0
  108. package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +95 -63
  109. package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +50 -44
  110. package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +95 -78
  111. package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +167 -51
  112. package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +53 -52
  113. package/es-modules/Extensions/Annotations/{Mixins/EventEmitterMixin.js → EventEmitter.js} +136 -116
  114. package/es-modules/Extensions/Annotations/MockPoint.js +210 -145
  115. package/es-modules/Extensions/Annotations/NavigationBindings.js +272 -663
  116. package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +396 -0
  117. package/es-modules/Extensions/Annotations/NavigationBindingsUtilities.js +98 -0
  118. package/es-modules/Extensions/Annotations/Popup/Popup.js +295 -0
  119. package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +177 -0
  120. package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +81 -0
  121. package/es-modules/Extensions/Annotations/Popup/PopupIndicators.js +609 -0
  122. package/es-modules/Extensions/Annotations/Popup/PopupTabs.js +134 -0
  123. package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +23 -23
  124. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +15 -21
  125. package/es-modules/Extensions/Annotations/Types/ElliottWave.js +14 -12
  126. package/es-modules/Extensions/Annotations/Types/Fibonacci.js +33 -23
  127. package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +67 -65
  128. package/es-modules/Extensions/Annotations/Types/InfinityLine.js +14 -21
  129. package/es-modules/Extensions/Annotations/Types/Measure.js +259 -251
  130. package/es-modules/Extensions/Annotations/Types/Pitchfork.js +15 -19
  131. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +24 -19
  132. package/es-modules/Extensions/Annotations/Types/Tunnel.js +17 -15
  133. package/es-modules/Extensions/Annotations/Types/VerticalLine.js +15 -17
  134. package/es-modules/Extensions/Boost/Boost.js +320 -15
  135. package/es-modules/Extensions/Boost/BoostChart.js +245 -0
  136. package/es-modules/Extensions/Boost/BoostSeries.js +927 -0
  137. package/es-modules/Extensions/Boost/BoostableMap.js +21 -5
  138. package/es-modules/Extensions/Boost/Boostables.js +13 -2
  139. package/es-modules/Extensions/Boost/NamedColors.js +15 -6
  140. package/es-modules/Extensions/Boost/WGLDrawMode.js +36 -0
  141. package/es-modules/Extensions/Boost/WGLRenderer.js +288 -295
  142. package/es-modules/Extensions/Boost/WGLShader.js +370 -376
  143. package/es-modules/Extensions/Boost/WGLVertexBuffer.js +192 -0
  144. package/es-modules/Extensions/BoostCanvas.js +70 -48
  145. package/es-modules/Extensions/Breadcrumbs.js +37 -9
  146. package/es-modules/Extensions/CurrentDateIndication.js +1 -1
  147. package/es-modules/Extensions/Data.js +638 -602
  148. package/es-modules/Extensions/DataGrouping.js +68 -28
  149. package/es-modules/Extensions/Debugger/Debugger.js +60 -22
  150. package/es-modules/Extensions/Debugger/ErrorMessages.js +4 -0
  151. package/es-modules/Extensions/DownloadURL.js +3 -3
  152. package/es-modules/Extensions/DragPanes.js +1 -1
  153. package/es-modules/Extensions/DraggablePoints.js +4 -3
  154. package/es-modules/Extensions/Drilldown.js +15 -14
  155. package/es-modules/Extensions/{ExportData.js → ExportData/ExportData.js} +358 -498
  156. package/es-modules/Extensions/ExportData/ExportDataDefaults.js +272 -0
  157. package/es-modules/Extensions/Exporting/Exporting.js +30 -17
  158. package/es-modules/Extensions/Exporting/ExportingDefaults.js +10 -8
  159. package/es-modules/Extensions/Exporting/Fullscreen.js +352 -0
  160. package/es-modules/Extensions/GeoJSON.js +3 -4
  161. package/es-modules/Extensions/MarkerClusters.js +5 -3
  162. package/es-modules/Extensions/NoDataToDisplay.js +1 -1
  163. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  164. package/es-modules/Extensions/Oldie/Oldie.js +2 -2
  165. package/es-modules/Extensions/OverlappingDataLabels.js +5 -4
  166. package/es-modules/Extensions/Pane.js +3 -3
  167. package/es-modules/Extensions/ParallelCoordinates.js +12 -8
  168. package/es-modules/Extensions/PatternFill.js +14 -2
  169. package/es-modules/Extensions/RangeSelector.js +29 -18
  170. package/es-modules/Extensions/ScrollablePlotArea.js +4 -4
  171. package/es-modules/Extensions/{SeriesLabel.js → SeriesLabel/SeriesLabel.js} +264 -386
  172. package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +124 -0
  173. package/es-modules/Extensions/SeriesLabel/SeriesLabelUtilities.js +67 -0
  174. package/es-modules/Extensions/Sonification/ChartSonify.js +1 -1
  175. package/es-modules/Extensions/Sonification/Earcon.js +1 -1
  176. package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
  177. package/es-modules/Extensions/Themes/HighContrastLight.js +9 -9
  178. package/es-modules/Maps/MapNavigation.js +3 -7
  179. package/es-modules/Maps/MapPointer.js +1 -1
  180. package/es-modules/Maps/MapView.js +31 -19
  181. package/es-modules/Maps/MapViewInsetsOptionsDefault.js +1 -1
  182. package/es-modules/Maps/MapViewOptionsDefault.js +3 -1
  183. package/es-modules/Maps/Projection.js +13 -11
  184. package/es-modules/Series/ArcDiagram/ArcDiagramPoint.js +3 -1
  185. package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +12 -2
  186. package/es-modules/Series/Area/AreaSeries.js +21 -14
  187. package/es-modules/Series/{Area3DSeries.js → Area3D/Area3DSeries.js} +42 -20
  188. package/es-modules/Series/AreaRange/AreaRangePoint.js +24 -11
  189. package/es-modules/Series/AreaRange/AreaRangeSeries.js +162 -149
  190. package/es-modules/Series/AreaSpline/AreaSplineSeries.js +45 -41
  191. package/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +43 -43
  192. package/es-modules/Series/Bar/BarSeries.js +3 -1
  193. package/es-modules/Series/Bellcurve/BellcurveSeries.js +3 -1
  194. package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -2
  195. package/es-modules/Series/Bubble/BubbleLegendComposition.js +223 -231
  196. package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -1
  197. package/es-modules/Series/Bubble/BubbleLegendItem.js +46 -45
  198. package/es-modules/Series/Bubble/BubblePoint.js +3 -1
  199. package/es-modules/Series/Bubble/BubbleSeries.js +96 -68
  200. package/es-modules/Series/Bullet/BulletPoint.js +3 -1
  201. package/es-modules/Series/Bullet/BulletSeries.js +4 -3
  202. package/es-modules/Series/Candlestick/CandlestickSeries.js +5 -3
  203. package/es-modules/Series/CenteredUtilities.js +8 -2
  204. package/es-modules/Series/ColorMapComposition.js +111 -0
  205. package/es-modules/Series/Column/ColumnSeries.js +8 -4
  206. package/es-modules/Series/Column3D/Column3DComposition.js +2 -2
  207. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +4 -2
  208. package/es-modules/Series/ColumnRange/ColumnRangePoint.js +17 -13
  209. package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +60 -57
  210. package/es-modules/Series/Cylinder/CylinderComposition.js +1 -1
  211. package/es-modules/Series/Cylinder/CylinderPoint.js +3 -1
  212. package/es-modules/Series/Cylinder/CylinderSeries.js +3 -1
  213. package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +27 -12
  214. package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +19 -3
  215. package/es-modules/Series/DotPlot/DotPlotSeries.js +3 -1
  216. package/es-modules/Series/DragNodesComposition.js +166 -0
  217. package/es-modules/Series/DrawPointUtilities.js +87 -0
  218. package/es-modules/Series/Dumbbell/DumbbellPoint.js +3 -1
  219. package/es-modules/Series/Dumbbell/DumbbellSeries.js +4 -2
  220. package/es-modules/Series/ErrorBar/ErrorBarSeries.js +4 -2
  221. package/es-modules/Series/Flags/FlagsPoint.js +4 -1
  222. package/es-modules/Series/Flags/FlagsSeries.js +13 -16
  223. package/es-modules/Series/Funnel/FunnelSeries.js +5 -3
  224. package/es-modules/Series/Funnel3D/Funnel3DPoint.js +3 -1
  225. package/es-modules/Series/Funnel3D/Funnel3DSeries.js +4 -2
  226. package/es-modules/Series/Gantt/GanttPoint.js +3 -1
  227. package/es-modules/Series/Gantt/GanttSeries.js +4 -2
  228. package/es-modules/Series/Gauge/GaugePoint.js +3 -1
  229. package/es-modules/Series/Gauge/GaugeSeries.js +196 -174
  230. package/es-modules/Series/GraphLayoutComposition.js +130 -0
  231. package/es-modules/Series/HLC/HLCPoint.js +3 -1
  232. package/es-modules/Series/HLC/HLCSeries.js +4 -2
  233. package/es-modules/Series/Heatmap/HeatmapPoint.js +7 -5
  234. package/es-modules/Series/Heatmap/HeatmapSeries.js +34 -34
  235. package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -1
  236. package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +3 -1
  237. package/es-modules/Series/Histogram/HistogramSeries.js +3 -1
  238. package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +3 -1
  239. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +11 -9
  240. package/es-modules/Series/Item/ItemPoint.js +3 -1
  241. package/es-modules/Series/Item/ItemSeries.js +3 -1
  242. package/es-modules/Series/Line/LineSeries.js +4 -2
  243. package/es-modules/Series/Lollipop/LollipopPoint.js +24 -12
  244. package/es-modules/Series/Lollipop/LollipopSeries.js +18 -11
  245. package/es-modules/Series/Map/MapPoint.js +8 -6
  246. package/es-modules/Series/Map/MapSeries.js +115 -28
  247. package/es-modules/Series/MapBubble/MapBubblePoint.js +18 -18
  248. package/es-modules/Series/MapBubble/MapBubbleSeries.js +69 -21
  249. package/es-modules/Series/MapLine/MapLineSeries.js +18 -1
  250. package/es-modules/Series/MapPoint/MapPointPoint.js +4 -2
  251. package/es-modules/Series/MapPoint/MapPointSeries.js +14 -2
  252. package/es-modules/Series/Networkgraph/EulerIntegration.js +199 -0
  253. package/es-modules/Series/Networkgraph/NetworkgraphPoint.js +290 -0
  254. package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +401 -0
  255. package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +545 -0
  256. package/es-modules/Series/Networkgraph/QuadTree.js +66 -272
  257. package/es-modules/Series/Networkgraph/QuadTreeNode.js +271 -0
  258. package/es-modules/Series/Networkgraph/{Layouts.js → ReingoldFruchtermanLayout.js} +240 -259
  259. package/es-modules/Series/Networkgraph/VerletIntegration.js +193 -0
  260. package/es-modules/Series/NodesComposition.js +45 -40
  261. package/es-modules/Series/OHLC/OHLCPoint.js +3 -1
  262. package/es-modules/Series/OHLC/OHLCSeries.js +3 -1
  263. package/es-modules/Series/Organization/OrganizationPoint.js +3 -1
  264. package/es-modules/Series/Organization/OrganizationSeries.js +14 -4
  265. package/es-modules/Series/PackedBubble/PackedBubbleIntegration.js +81 -0
  266. package/es-modules/Series/PackedBubble/{PackedBubbleComposition.js → PackedBubbleLayout.js} +114 -79
  267. package/es-modules/Series/PackedBubble/PackedBubblePoint.js +5 -3
  268. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +200 -571
  269. package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +394 -0
  270. package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -1
  271. package/es-modules/Series/Pie/PieDataLabel.js +4 -2
  272. package/es-modules/Series/Pie/PiePoint.js +3 -1
  273. package/es-modules/Series/Pie/PieSeries.js +54 -38
  274. package/es-modules/Series/Pie3D/Pie3DPoint.js +3 -1
  275. package/es-modules/Series/Pie3D/Pie3DSeries.js +3 -1
  276. package/es-modules/Series/PolarComposition.js +819 -0
  277. package/es-modules/Series/Polygon/PolygonSeries.js +3 -1
  278. package/es-modules/Series/Pyramid/PyramidSeries.js +3 -1
  279. package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +3 -1
  280. package/es-modules/Series/Sankey/SankeyPoint.js +3 -1
  281. package/es-modules/Series/Sankey/SankeySeries.js +38 -10
  282. package/es-modules/Series/Scatter/ScatterSeries.js +14 -6
  283. package/es-modules/Series/Scatter3D/Scatter3DPoint.js +3 -1
  284. package/es-modules/Series/Scatter3D/Scatter3DSeries.js +4 -2
  285. package/es-modules/Series/SeriesOnPointComposition.js +395 -0
  286. package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +6 -4
  287. package/es-modules/Series/Spline/SplineSeries.js +13 -4
  288. package/es-modules/Series/Streamgraph/StreamgraphSeries.js +3 -1
  289. package/es-modules/Series/Sunburst/SunburstPoint.js +8 -9
  290. package/es-modules/Series/Sunburst/SunburstSeries.js +32 -5
  291. package/es-modules/Series/Tilemap/TilemapPoint.js +3 -1
  292. package/es-modules/Series/Tilemap/TilemapSeries.js +3 -1
  293. package/es-modules/Series/Timeline/TimelinePoint.js +3 -1
  294. package/es-modules/Series/Timeline/TimelineSeries.js +8 -4
  295. package/es-modules/Series/Treemap/TreemapPoint.js +8 -4
  296. package/es-modules/Series/Treemap/TreemapSeries.js +12 -10
  297. package/es-modules/Series/VariablePie/VariablePieSeries.js +3 -1
  298. package/es-modules/Series/Variwide/VariwidePoint.js +3 -1
  299. package/es-modules/Series/Variwide/VariwideSeries.js +3 -1
  300. package/es-modules/Series/Vector/VectorSeries.js +5 -5
  301. package/es-modules/Series/Venn/VennPoint.js +5 -5
  302. package/es-modules/Series/Venn/VennSeries.js +9 -6
  303. package/es-modules/Series/Waterfall/WaterfallPoint.js +3 -1
  304. package/es-modules/Series/Waterfall/WaterfallSeries.js +14 -12
  305. package/es-modules/Series/Windbarb/WindbarbPoint.js +3 -1
  306. package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -1
  307. package/es-modules/Series/Wordcloud/WordcloudPoint.js +6 -6
  308. package/es-modules/Series/Wordcloud/WordcloudSeries.js +12 -9
  309. package/es-modules/Series/Wordcloud/WordcloudUtils.js +1 -1
  310. package/es-modules/Series/XRange/XRangePoint.js +57 -46
  311. package/es-modules/Series/XRange/XRangeSeries.js +124 -274
  312. package/es-modules/Series/XRange/XRangeSeriesDefaults.js +211 -0
  313. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +13 -3
  314. package/es-modules/Stock/Indicators/AD/ADIndicator.js +8 -1
  315. package/es-modules/Stock/Indicators/AO/AOIndicator.js +27 -14
  316. package/es-modules/Stock/Indicators/APO/APOIndicator.js +9 -2
  317. package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +19 -4
  318. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +18 -3
  319. package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +9 -3
  320. package/es-modules/Stock/Indicators/BB/BBIndicator.js +11 -5
  321. package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +19 -4
  322. package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +23 -1
  323. package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +18 -2
  324. package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +10 -3
  325. package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +28 -1
  326. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +18 -7
  327. package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +22 -9
  328. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -1
  329. package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +13 -1
  330. package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +37 -16
  331. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +28 -1
  332. package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +15 -2
  333. package/es-modules/Stock/Indicators/LinearRegression/{LinearRegression.js → LinearRegressionIndicator.js} +14 -2
  334. package/es-modules/Stock/Indicators/LinearRegressionAngle/{LinearRegressionAngle.js → LinearRegressionAngleIndicator.js} +15 -8
  335. package/es-modules/Stock/Indicators/LinearRegressionIntercept/{LinearRegressionIntercept.js → LinearRegressionInterceptIndicator.js} +14 -2
  336. package/es-modules/Stock/Indicators/LinearRegressionSlopes/{LinearRegressionSlopes.js → LinearRegressionSlopesIndicator.js} +14 -2
  337. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +47 -23
  338. package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +26 -11
  339. package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +33 -3
  340. package/es-modules/Stock/Indicators/MultipleLinesComposition.js +85 -95
  341. package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +19 -2
  342. package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +13 -1
  343. package/es-modules/Stock/Indicators/PC/PCIndicator.js +16 -9
  344. package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +17 -5
  345. package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +19 -4
  346. package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +19 -7
  347. package/es-modules/Stock/Indicators/PivotPoints/PivotPointsPoint.js +19 -13
  348. package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +28 -1
  349. package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +18 -3
  350. package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +23 -3
  351. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +4 -2
  352. package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +28 -1
  353. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +18 -1
  354. package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +23 -7
  355. package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +3 -1
  356. package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +28 -1
  357. package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +17 -5
  358. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +35 -4
  359. package/es-modules/Stock/Indicators/VBP/VBPPoint.js +9 -7
  360. package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +14 -2
  361. package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +33 -3
  362. package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +13 -1
  363. package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +14 -2
  364. package/es-modules/Stock/StockToolbar.js +568 -0
  365. package/es-modules/Stock/StockTools.js +256 -0
  366. package/es-modules/Stock/StockToolsBindings.js +140 -647
  367. package/es-modules/Stock/StockToolsDefaults.js +1190 -0
  368. package/es-modules/Stock/StockToolsGui.js +150 -1771
  369. package/es-modules/Stock/StockToolsUtilities.js +423 -0
  370. package/es-modules/masters/highcharts-3d.src.js +5 -4
  371. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  372. package/es-modules/masters/highcharts-more.src.js +7 -6
  373. package/es-modules/masters/highcharts.src.js +5 -2
  374. package/es-modules/masters/highmaps.src.js +1 -1
  375. package/es-modules/masters/highstock.src.js +1 -1
  376. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  377. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  378. package/es-modules/masters/indicators/ao.src.js +1 -1
  379. package/es-modules/masters/indicators/apo.src.js +1 -1
  380. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  381. package/es-modules/masters/indicators/aroon.src.js +1 -1
  382. package/es-modules/masters/indicators/atr.src.js +1 -1
  383. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  384. package/es-modules/masters/indicators/cci.src.js +1 -1
  385. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  386. package/es-modules/masters/indicators/cmf.src.js +1 -1
  387. package/es-modules/masters/indicators/cmo.src.js +1 -1
  388. package/es-modules/masters/indicators/dema.src.js +1 -1
  389. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  390. package/es-modules/masters/indicators/dmi.src.js +1 -1
  391. package/es-modules/masters/indicators/dpo.src.js +1 -1
  392. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  393. package/es-modules/masters/indicators/indicators-all.src.js +5 -7
  394. package/es-modules/masters/indicators/indicators.src.js +1 -1
  395. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  396. package/es-modules/masters/indicators/klinger.src.js +1 -1
  397. package/es-modules/masters/indicators/macd.src.js +1 -1
  398. package/es-modules/masters/indicators/mfi.src.js +1 -1
  399. package/es-modules/masters/indicators/momentum.src.js +1 -1
  400. package/es-modules/masters/indicators/natr.src.js +1 -1
  401. package/es-modules/masters/indicators/obv.src.js +1 -1
  402. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  403. package/es-modules/masters/indicators/ppo.src.js +1 -1
  404. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  405. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  406. package/es-modules/masters/indicators/psar.src.js +1 -1
  407. package/es-modules/masters/indicators/regressions.src.js +5 -5
  408. package/es-modules/masters/indicators/roc.src.js +1 -1
  409. package/es-modules/masters/indicators/rsi.src.js +1 -1
  410. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  411. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  412. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  413. package/es-modules/masters/indicators/tema.src.js +1 -1
  414. package/es-modules/masters/indicators/trendline.src.js +1 -1
  415. package/es-modules/masters/indicators/trix.src.js +1 -1
  416. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  417. package/es-modules/masters/indicators/vwap.src.js +1 -1
  418. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  419. package/es-modules/masters/indicators/wma.src.js +1 -1
  420. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  421. package/es-modules/masters/modules/accessibility.src.js +1 -1
  422. package/es-modules/masters/modules/annotations-advanced.src.js +6 -4
  423. package/es-modules/masters/modules/annotations.src.js +6 -4
  424. package/es-modules/masters/modules/arc-diagram.src.js +1 -1
  425. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  426. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  427. package/es-modules/masters/modules/boost.src.js +6 -2
  428. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  429. package/es-modules/masters/modules/bullet.src.js +1 -1
  430. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  431. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  432. package/es-modules/masters/modules/cylinder.src.js +1 -1
  433. package/es-modules/masters/modules/data.src.js +2 -1
  434. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  435. package/es-modules/masters/modules/debugger.src.js +5 -3
  436. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  437. package/es-modules/masters/modules/dotplot.src.js +1 -1
  438. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  439. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  440. package/es-modules/masters/modules/drilldown.src.js +1 -1
  441. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  442. package/es-modules/masters/modules/export-data.src.js +5 -2
  443. package/es-modules/masters/modules/exporting.src.js +1 -2
  444. package/es-modules/masters/modules/full-screen.src.js +6 -2
  445. package/es-modules/masters/modules/funnel.src.js +1 -1
  446. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  447. package/es-modules/masters/modules/gantt.src.js +3 -2
  448. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  449. package/es-modules/masters/modules/heatmap.src.js +1 -1
  450. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  451. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  452. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  453. package/es-modules/masters/modules/item-series.src.js +1 -1
  454. package/es-modules/masters/modules/lollipop.src.js +1 -1
  455. package/es-modules/masters/modules/map.src.js +2 -2
  456. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  457. package/es-modules/masters/modules/networkgraph.src.js +5 -2
  458. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  459. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  460. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  461. package/es-modules/masters/modules/oldie.src.js +1 -1
  462. package/es-modules/masters/modules/organization.src.js +1 -1
  463. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  464. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  465. package/es-modules/masters/modules/pareto.src.js +1 -1
  466. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  467. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  468. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  469. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  470. package/es-modules/masters/modules/sankey.src.js +1 -1
  471. package/es-modules/masters/modules/series-label.src.js +5 -2
  472. package/es-modules/masters/modules/series-on-point.src.js +16 -0
  473. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  474. package/es-modules/masters/modules/sonification.src.js +2 -6
  475. package/es-modules/masters/modules/static-scale.src.js +1 -1
  476. package/es-modules/masters/modules/stock-tools.src.js +10 -3
  477. package/es-modules/masters/modules/stock.src.js +1 -1
  478. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  479. package/es-modules/masters/modules/sunburst.src.js +1 -1
  480. package/es-modules/masters/modules/tilemap.src.js +1 -1
  481. package/es-modules/masters/modules/timeline.src.js +1 -1
  482. package/es-modules/masters/modules/treegrid.src.js +2 -2
  483. package/es-modules/masters/modules/treemap.src.js +1 -1
  484. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  485. package/es-modules/masters/modules/variwide.src.js +1 -1
  486. package/es-modules/masters/modules/vector.src.js +1 -1
  487. package/es-modules/masters/modules/venn.src.js +1 -1
  488. package/es-modules/masters/modules/windbarb.src.js +1 -1
  489. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  490. package/es-modules/masters/modules/xrange.src.js +5 -2
  491. package/es-modules/masters/themes/avocado.src.js +1 -1
  492. package/es-modules/masters/themes/brand-dark.src.js +1 -1
  493. package/es-modules/masters/themes/brand-light.src.js +1 -1
  494. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  495. package/es-modules/masters/themes/dark-green.src.js +1 -1
  496. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  497. package/es-modules/masters/themes/gray.src.js +1 -1
  498. package/es-modules/masters/themes/grid-light.src.js +1 -1
  499. package/es-modules/masters/themes/grid.src.js +1 -1
  500. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  501. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  502. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  503. package/es-modules/masters/themes/skies.src.js +1 -1
  504. package/es-modules/masters/themes/sunset.src.js +1 -1
  505. package/highcharts-3d.js +98 -99
  506. package/highcharts-3d.js.map +1 -1
  507. package/highcharts-3d.src.js +233 -212
  508. package/highcharts-gantt.js +809 -805
  509. package/highcharts-gantt.js.map +1 -1
  510. package/highcharts-gantt.src.js +3817 -3470
  511. package/highcharts-more.d.ts +15 -8
  512. package/highcharts-more.js +201 -195
  513. package/highcharts-more.js.map +1 -1
  514. package/highcharts-more.src.d.ts +15 -8
  515. package/highcharts-more.src.js +7994 -7461
  516. package/highcharts.d.ts +11364 -1136
  517. package/highcharts.js +593 -591
  518. package/highcharts.js.map +1 -1
  519. package/highcharts.src.d.ts +11364 -1136
  520. package/highcharts.src.js +1408 -1117
  521. package/highmaps.js +762 -758
  522. package/highmaps.js.map +1 -1
  523. package/highmaps.src.js +2237 -1721
  524. package/highstock.js +796 -792
  525. package/highstock.js.map +1 -1
  526. package/highstock.src.js +1617 -1224
  527. package/indicators/acceleration-bands.d.ts +1 -17
  528. package/indicators/acceleration-bands.js +11 -12
  529. package/indicators/acceleration-bands.js.map +1 -1
  530. package/indicators/acceleration-bands.src.d.ts +1 -17
  531. package/indicators/acceleration-bands.src.js +99 -101
  532. package/indicators/accumulation-distribution.js +1 -1
  533. package/indicators/accumulation-distribution.js.map +1 -1
  534. package/indicators/accumulation-distribution.src.js +6 -1
  535. package/indicators/ao.js +6 -6
  536. package/indicators/ao.js.map +1 -1
  537. package/indicators/ao.src.js +25 -16
  538. package/indicators/apo.js +1 -1
  539. package/indicators/apo.js.map +1 -1
  540. package/indicators/apo.src.js +6 -1
  541. package/indicators/aroon-oscillator.d.ts +1 -17
  542. package/indicators/aroon-oscillator.js +10 -10
  543. package/indicators/aroon-oscillator.js.map +1 -1
  544. package/indicators/aroon-oscillator.src.d.ts +1 -17
  545. package/indicators/aroon-oscillator.src.js +95 -101
  546. package/indicators/aroon.d.ts +1 -17
  547. package/indicators/aroon.js +11 -11
  548. package/indicators/aroon.js.map +1 -1
  549. package/indicators/aroon.src.d.ts +1 -17
  550. package/indicators/aroon.src.js +104 -101
  551. package/indicators/atr.js +1 -1
  552. package/indicators/atr.js.map +1 -1
  553. package/indicators/atr.src.js +17 -4
  554. package/indicators/bollinger-bands.d.ts +1 -17
  555. package/indicators/bollinger-bands.js +11 -12
  556. package/indicators/bollinger-bands.js.map +1 -1
  557. package/indicators/bollinger-bands.src.d.ts +1 -17
  558. package/indicators/bollinger-bands.src.js +97 -103
  559. package/indicators/cci.js +1 -1
  560. package/indicators/cci.js.map +1 -1
  561. package/indicators/cci.src.js +17 -4
  562. package/indicators/chaikin.js +8 -8
  563. package/indicators/chaikin.js.map +1 -1
  564. package/indicators/chaikin.src.js +13 -5
  565. package/indicators/cmf.js +1 -1
  566. package/indicators/cmf.js.map +1 -1
  567. package/indicators/cmf.src.js +21 -1
  568. package/indicators/cmo.js +1 -1
  569. package/indicators/cmo.js.map +1 -1
  570. package/indicators/cmo.src.js +16 -2
  571. package/indicators/dema.js +1 -1
  572. package/indicators/dema.js.map +1 -1
  573. package/indicators/dema.src.js +26 -1
  574. package/indicators/disparity-index.js +1 -1
  575. package/indicators/disparity-index.src.js +1 -1
  576. package/indicators/dmi.js +12 -12
  577. package/indicators/dmi.js.map +1 -1
  578. package/indicators/dmi.src.js +104 -105
  579. package/indicators/dpo.js +1 -1
  580. package/indicators/dpo.js.map +1 -1
  581. package/indicators/dpo.src.js +20 -9
  582. package/indicators/ichimoku-kinko-hyo.js +1 -1
  583. package/indicators/ichimoku-kinko-hyo.js.map +1 -1
  584. package/indicators/ichimoku-kinko-hyo.src.js +35 -16
  585. package/indicators/indicators-all.d.ts +1 -17
  586. package/indicators/indicators-all.js +200 -199
  587. package/indicators/indicators-all.js.map +1 -1
  588. package/indicators/indicators-all.src.d.ts +1 -17
  589. package/indicators/indicators-all.src.js +882 -284
  590. package/indicators/indicators.js +1 -1
  591. package/indicators/indicators.js.map +1 -1
  592. package/indicators/indicators.src.js +12 -2
  593. package/indicators/keltner-channels.d.ts +1 -17
  594. package/indicators/keltner-channels.js +11 -12
  595. package/indicators/keltner-channels.js.map +1 -1
  596. package/indicators/keltner-channels.src.d.ts +1 -17
  597. package/indicators/keltner-channels.src.js +114 -99
  598. package/indicators/klinger.js +14 -14
  599. package/indicators/klinger.js.map +1 -1
  600. package/indicators/klinger.src.js +101 -102
  601. package/indicators/macd.js +10 -9
  602. package/indicators/macd.js.map +1 -1
  603. package/indicators/macd.src.js +46 -25
  604. package/indicators/mfi.js +1 -1
  605. package/indicators/mfi.js.map +1 -1
  606. package/indicators/mfi.src.js +24 -11
  607. package/indicators/momentum.js +1 -1
  608. package/indicators/momentum.js.map +1 -1
  609. package/indicators/momentum.src.js +31 -3
  610. package/indicators/natr.js +1 -1
  611. package/indicators/natr.js.map +1 -1
  612. package/indicators/natr.src.js +17 -3
  613. package/indicators/obv.js +1 -1
  614. package/indicators/obv.js.map +1 -1
  615. package/indicators/obv.src.js +11 -1
  616. package/indicators/pivot-points.js +1 -1
  617. package/indicators/pivot-points.js.map +1 -1
  618. package/indicators/pivot-points.src.js +32 -19
  619. package/indicators/ppo.js +1 -1
  620. package/indicators/ppo.js.map +1 -1
  621. package/indicators/ppo.src.js +15 -5
  622. package/indicators/price-channel.d.ts +1 -17
  623. package/indicators/price-channel.js +11 -11
  624. package/indicators/price-channel.js.map +1 -1
  625. package/indicators/price-channel.src.d.ts +1 -17
  626. package/indicators/price-channel.src.js +102 -107
  627. package/indicators/price-envelopes.js +1 -1
  628. package/indicators/price-envelopes.js.map +1 -1
  629. package/indicators/price-envelopes.src.js +26 -1
  630. package/indicators/psar.js +1 -1
  631. package/indicators/psar.js.map +1 -1
  632. package/indicators/psar.src.js +17 -4
  633. package/indicators/regressions.js +12 -11
  634. package/indicators/regressions.js.map +1 -1
  635. package/indicators/regressions.src.js +50 -15
  636. package/indicators/roc.js +1 -1
  637. package/indicators/roc.js.map +1 -1
  638. package/indicators/roc.src.js +16 -3
  639. package/indicators/rsi.js +1 -1
  640. package/indicators/rsi.js.map +1 -1
  641. package/indicators/rsi.src.js +21 -3
  642. package/indicators/slow-stochastic.js +1 -1
  643. package/indicators/slow-stochastic.js.map +1 -1
  644. package/indicators/slow-stochastic.src.js +26 -1
  645. package/indicators/stochastic.d.ts +1 -17
  646. package/indicators/stochastic.js +12 -12
  647. package/indicators/stochastic.js.map +1 -1
  648. package/indicators/stochastic.src.d.ts +1 -17
  649. package/indicators/stochastic.src.js +104 -99
  650. package/indicators/supertrend.js +7 -7
  651. package/indicators/supertrend.js.map +1 -1
  652. package/indicators/supertrend.src.js +21 -9
  653. package/indicators/tema.js +1 -1
  654. package/indicators/tema.src.js +1 -1
  655. package/indicators/trendline.js +1 -1
  656. package/indicators/trendline.js.map +1 -1
  657. package/indicators/trendline.src.js +15 -5
  658. package/indicators/trix.js +1 -1
  659. package/indicators/trix.js.map +1 -1
  660. package/indicators/trix.src.js +26 -1
  661. package/indicators/volume-by-price.js +17 -17
  662. package/indicators/volume-by-price.js.map +1 -1
  663. package/indicators/volume-by-price.src.js +38 -10
  664. package/indicators/vwap.js +1 -1
  665. package/indicators/vwap.js.map +1 -1
  666. package/indicators/vwap.src.js +12 -2
  667. package/indicators/williams-r.js +1 -1
  668. package/indicators/williams-r.js.map +1 -1
  669. package/indicators/williams-r.src.js +11 -1
  670. package/indicators/wma.js +1 -1
  671. package/indicators/wma.js.map +1 -1
  672. package/indicators/wma.src.js +31 -3
  673. package/indicators/zigzag.js +1 -1
  674. package/indicators/zigzag.js.map +1 -1
  675. package/indicators/zigzag.src.js +12 -2
  676. package/modules/accessibility.js +246 -242
  677. package/modules/accessibility.js.map +1 -1
  678. package/modules/accessibility.src.js +797 -664
  679. package/modules/annotations-advanced.d.ts +1 -1
  680. package/modules/annotations-advanced.js +193 -192
  681. package/modules/annotations-advanced.js.map +1 -1
  682. package/modules/annotations-advanced.src.d.ts +1 -1
  683. package/modules/annotations-advanced.src.js +9229 -8589
  684. package/modules/annotations.d.ts +1 -1
  685. package/modules/annotations.js +128 -126
  686. package/modules/annotations.js.map +1 -1
  687. package/modules/annotations.src.d.ts +1 -1
  688. package/modules/annotations.src.js +6190 -5528
  689. package/modules/arc-diagram.js +7 -7
  690. package/modules/arc-diagram.js.map +1 -1
  691. package/modules/arc-diagram.src.js +10 -2
  692. package/modules/arrow-symbols.js +1 -1
  693. package/modules/arrow-symbols.src.js +1 -1
  694. package/modules/boost-canvas.d.ts +19 -0
  695. package/modules/boost-canvas.js +81 -15
  696. package/modules/boost-canvas.js.map +1 -1
  697. package/modules/boost-canvas.src.d.ts +19 -0
  698. package/modules/boost-canvas.src.js +3342 -52
  699. package/modules/boost.d.ts +8 -26
  700. package/modules/boost.js +88 -80
  701. package/modules/boost.js.map +1 -1
  702. package/modules/boost.src.d.ts +8 -26
  703. package/modules/boost.src.js +2435 -1889
  704. package/modules/broken-axis.js +2 -2
  705. package/modules/broken-axis.js.map +1 -1
  706. package/modules/broken-axis.src.js +2 -2
  707. package/modules/bullet.js +1 -1
  708. package/modules/bullet.js.map +1 -1
  709. package/modules/bullet.src.js +2 -5
  710. package/modules/coloraxis.js +2 -2
  711. package/modules/coloraxis.js.map +1 -1
  712. package/modules/coloraxis.src.js +9 -5
  713. package/modules/current-date-indicator.js +1 -1
  714. package/modules/current-date-indicator.src.js +2 -2
  715. package/modules/cylinder.js +9 -9
  716. package/modules/cylinder.js.map +1 -1
  717. package/modules/cylinder.src.js +2 -2
  718. package/modules/data.d.ts +12 -12
  719. package/modules/data.js +33 -34
  720. package/modules/data.js.map +1 -1
  721. package/modules/data.src.d.ts +12 -12
  722. package/modules/data.src.js +862 -829
  723. package/modules/datagrouping.d.ts +22 -0
  724. package/modules/datagrouping.js +9 -9
  725. package/modules/datagrouping.js.map +1 -1
  726. package/modules/datagrouping.src.d.ts +22 -0
  727. package/modules/datagrouping.src.js +69 -29
  728. package/modules/debugger.js +8 -6
  729. package/modules/debugger.js.map +1 -1
  730. package/modules/debugger.src.js +85 -40
  731. package/modules/dependency-wheel.js +12 -12
  732. package/modules/dependency-wheel.js.map +1 -1
  733. package/modules/dependency-wheel.src.js +41 -14
  734. package/modules/dotplot.js +1 -1
  735. package/modules/dotplot.src.js +1 -1
  736. package/modules/drag-panes.js +1 -1
  737. package/modules/drag-panes.src.js +2 -2
  738. package/modules/draggable-points.js +5 -5
  739. package/modules/draggable-points.js.map +1 -1
  740. package/modules/draggable-points.src.js +5 -4
  741. package/modules/drilldown.d.ts +0 -10
  742. package/modules/drilldown.js +37 -37
  743. package/modules/drilldown.js.map +1 -1
  744. package/modules/drilldown.src.d.ts +0 -10
  745. package/modules/drilldown.src.js +59 -25
  746. package/modules/dumbbell.d.ts +4 -0
  747. package/modules/dumbbell.js +17 -17
  748. package/modules/dumbbell.js.map +1 -1
  749. package/modules/dumbbell.src.d.ts +4 -0
  750. package/modules/dumbbell.src.js +24 -12
  751. package/modules/export-data.js +25 -22
  752. package/modules/export-data.js.map +1 -1
  753. package/modules/export-data.src.js +641 -469
  754. package/modules/exporting.d.ts +8 -8
  755. package/modules/exporting.js +39 -39
  756. package/modules/exporting.js.map +1 -1
  757. package/modules/exporting.src.d.ts +8 -8
  758. package/modules/exporting.src.js +442 -319
  759. package/modules/full-screen.js +8 -8
  760. package/modules/full-screen.js.map +1 -1
  761. package/modules/full-screen.src.js +196 -78
  762. package/modules/funnel.js +1 -1
  763. package/modules/funnel.src.js +3 -3
  764. package/modules/funnel3d.js +2 -2
  765. package/modules/funnel3d.js.map +1 -1
  766. package/modules/funnel3d.src.js +2 -2
  767. package/modules/gantt.js +219 -217
  768. package/modules/gantt.js.map +1 -1
  769. package/modules/gantt.src.js +2420 -2364
  770. package/modules/grid-axis.js +23 -23
  771. package/modules/grid-axis.js.map +1 -1
  772. package/modules/grid-axis.src.js +890 -891
  773. package/modules/heatmap.js +40 -40
  774. package/modules/heatmap.js.map +1 -1
  775. package/modules/heatmap.src.js +137 -108
  776. package/modules/heikinashi.js +1 -1
  777. package/modules/heikinashi.src.js +1 -1
  778. package/modules/histogram-bellcurve.js +1 -1
  779. package/modules/histogram-bellcurve.src.js +1 -1
  780. package/modules/hollowcandlestick.js +1 -1
  781. package/modules/hollowcandlestick.src.js +9 -9
  782. package/modules/item-series.js +1 -1
  783. package/modules/item-series.src.js +1 -1
  784. package/modules/lollipop.js +6 -6
  785. package/modules/lollipop.js.map +1 -1
  786. package/modules/lollipop.src.js +37 -22
  787. package/modules/map.d.ts +3 -3
  788. package/modules/map.js +171 -169
  789. package/modules/map.js.map +1 -1
  790. package/modules/map.src.d.ts +3 -3
  791. package/modules/map.src.js +830 -605
  792. package/modules/marker-clusters.js +1 -1
  793. package/modules/marker-clusters.js.map +1 -1
  794. package/modules/marker-clusters.src.js +4 -6
  795. package/modules/networkgraph.d.ts +1 -17
  796. package/modules/networkgraph.js +55 -50
  797. package/modules/networkgraph.js.map +1 -1
  798. package/modules/networkgraph.src.d.ts +1 -17
  799. package/modules/networkgraph.src.js +2339 -2008
  800. package/modules/no-data-to-display.js +1 -1
  801. package/modules/no-data-to-display.src.js +2 -2
  802. package/modules/offline-exporting.js +3 -3
  803. package/modules/offline-exporting.js.map +1 -1
  804. package/modules/offline-exporting.src.js +5 -5
  805. package/modules/oldie-polyfills.js +1 -1
  806. package/modules/oldie-polyfills.src.js +1 -1
  807. package/modules/oldie.js +2 -2
  808. package/modules/oldie.src.js +3 -3
  809. package/modules/organization.js +15 -15
  810. package/modules/organization.js.map +1 -1
  811. package/modules/organization.src.js +12 -4
  812. package/modules/overlapping-datalabels.js +1 -1
  813. package/modules/overlapping-datalabels.src.js +1 -1
  814. package/modules/parallel-coordinates.js +11 -11
  815. package/modules/parallel-coordinates.js.map +1 -1
  816. package/modules/parallel-coordinates.src.js +14 -9
  817. package/modules/pareto.js +1 -1
  818. package/modules/pareto.src.js +1 -1
  819. package/modules/pathfinder.js +1 -1
  820. package/modules/pathfinder.src.js +1 -1
  821. package/modules/pattern-fill.js +15 -14
  822. package/modules/pattern-fill.js.map +1 -1
  823. package/modules/pattern-fill.src.js +15 -2
  824. package/modules/price-indicator.js +1 -1
  825. package/modules/price-indicator.src.js +1 -1
  826. package/modules/pyramid3d.js +1 -1
  827. package/modules/pyramid3d.src.js +1 -1
  828. package/modules/sankey.d.ts +1 -17
  829. package/modules/sankey.js +32 -32
  830. package/modules/sankey.js.map +1 -1
  831. package/modules/sankey.src.d.ts +1 -17
  832. package/modules/sankey.src.js +102 -57
  833. package/modules/series-label.js +18 -18
  834. package/modules/series-label.js.map +1 -1
  835. package/modules/series-label.src.js +474 -387
  836. package/modules/series-on-point.js +18 -0
  837. package/modules/series-on-point.js.map +1 -0
  838. package/modules/series-on-point.src.js +468 -0
  839. package/modules/solid-gauge.js +4 -4
  840. package/modules/solid-gauge.js.map +1 -1
  841. package/modules/solid-gauge.src.js +6 -6
  842. package/modules/sonification.d.ts +2 -2
  843. package/modules/sonification.js +1 -1
  844. package/modules/sonification.js.map +1 -1
  845. package/modules/sonification.src.d.ts +2 -2
  846. package/modules/sonification.src.js +4 -8
  847. package/modules/static-scale.js +1 -1
  848. package/modules/static-scale.src.js +1 -1
  849. package/modules/stock-tools.d.ts +1 -23
  850. package/modules/stock-tools.js +109 -179
  851. package/modules/stock-tools.js.map +1 -1
  852. package/modules/stock-tools.src.d.ts +1 -23
  853. package/modules/stock-tools.src.js +2652 -6347
  854. package/modules/stock.d.ts +8 -0
  855. package/modules/stock.js +205 -204
  856. package/modules/stock.js.map +1 -1
  857. package/modules/stock.src.d.ts +8 -0
  858. package/modules/stock.src.js +208 -106
  859. package/modules/streamgraph.js +1 -1
  860. package/modules/streamgraph.src.js +1 -1
  861. package/modules/sunburst.js +73 -73
  862. package/modules/sunburst.js.map +1 -1
  863. package/modules/sunburst.src.js +251 -193
  864. package/modules/tilemap.js +1 -1
  865. package/modules/tilemap.src.js +1 -1
  866. package/modules/timeline.js +1 -1
  867. package/modules/timeline.js.map +1 -1
  868. package/modules/timeline.src.js +6 -4
  869. package/modules/treegrid.js +57 -57
  870. package/modules/treegrid.js.map +1 -1
  871. package/modules/treegrid.src.js +1908 -1901
  872. package/modules/treemap.js +54 -53
  873. package/modules/treemap.js.map +1 -1
  874. package/modules/treemap.src.js +217 -183
  875. package/modules/variable-pie.js +1 -1
  876. package/modules/variable-pie.src.js +1 -1
  877. package/modules/variwide.js +1 -1
  878. package/modules/variwide.src.js +1 -1
  879. package/modules/vector.js +2 -2
  880. package/modules/vector.js.map +1 -1
  881. package/modules/vector.src.js +3 -5
  882. package/modules/venn.js +31 -31
  883. package/modules/venn.js.map +1 -1
  884. package/modules/venn.src.js +82 -111
  885. package/modules/windbarb.js +1 -1
  886. package/modules/windbarb.src.js +1 -1
  887. package/modules/wordcloud.js +23 -23
  888. package/modules/wordcloud.js.map +1 -1
  889. package/modules/wordcloud.src.js +84 -113
  890. package/modules/xrange.js +17 -17
  891. package/modules/xrange.js.map +1 -1
  892. package/modules/xrange.src.js +411 -397
  893. package/package.json +1 -1
  894. package/themes/avocado.js +1 -1
  895. package/themes/avocado.src.js +1 -1
  896. package/themes/brand-dark.js +1 -1
  897. package/themes/brand-dark.src.js +1 -1
  898. package/themes/brand-light.js +1 -1
  899. package/themes/brand-light.src.js +1 -1
  900. package/themes/dark-blue.js +1 -1
  901. package/themes/dark-blue.src.js +1 -1
  902. package/themes/dark-green.js +1 -1
  903. package/themes/dark-green.src.js +1 -1
  904. package/themes/dark-unica.js +1 -1
  905. package/themes/dark-unica.src.js +1 -1
  906. package/themes/gray.js +1 -1
  907. package/themes/gray.src.js +1 -1
  908. package/themes/grid-light.js +1 -1
  909. package/themes/grid-light.src.js +1 -1
  910. package/themes/grid.js +1 -1
  911. package/themes/grid.src.js +1 -1
  912. package/themes/high-contrast-dark.js +2 -2
  913. package/themes/high-contrast-dark.src.js +11 -11
  914. package/themes/high-contrast-light.js +2 -2
  915. package/themes/high-contrast-light.src.js +10 -10
  916. package/themes/sand-signika.js +1 -1
  917. package/themes/sand-signika.src.js +1 -1
  918. package/themes/skies.js +1 -1
  919. package/themes/skies.src.js +1 -1
  920. package/themes/sunset.js +1 -1
  921. package/themes/sunset.src.js +1 -1
  922. package/es-modules/Core/Axis/StackingAxis.js +0 -216
  923. package/es-modules/Core/Axis/TreeGridAxis.js +0 -720
  924. package/es-modules/Core/Axis/TreeGridTick.js +0 -317
  925. package/es-modules/Extensions/Annotations/Annotations.js +0 -1449
  926. package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +0 -179
  927. package/es-modules/Extensions/Annotations/Popup.js +0 -1123
  928. package/es-modules/Extensions/Boost/BoostAttach.js +0 -150
  929. package/es-modules/Extensions/Boost/BoostInit.js +0 -323
  930. package/es-modules/Extensions/Boost/BoostOptions.js +0 -245
  931. package/es-modules/Extensions/Boost/BoostOverrides.js +0 -386
  932. package/es-modules/Extensions/Boost/BoostUtils.js +0 -255
  933. package/es-modules/Extensions/Boost/WGLVBuffer.js +0 -153
  934. package/es-modules/Extensions/FullScreen.js +0 -240
  935. package/es-modules/Extensions/Polar.js +0 -740
  936. package/es-modules/Extensions/Stacking.js +0 -517
  937. package/es-modules/Series/ColorMapMixin.js +0 -84
  938. package/es-modules/Series/DrawPointComposition.js +0 -114
  939. package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -132
  940. package/es-modules/Series/Networkgraph/Integrations.js +0 -348
  941. package/es-modules/Series/Networkgraph/Networkgraph.js +0 -1178
  942. package/es-modules/Series/XRange/XRangeComposition.js +0 -49
package/highmaps.js CHANGED
@@ -1,765 +1,769 @@
1
1
  /*
2
- Highmaps JS v10.0.0 (2022-03-07)
2
+ Highmaps JS v10.2.1 (2022-08-29)
3
3
 
4
4
  (c) 2011-2021 Torstein Honsi
5
5
 
6
6
  License: www.highcharts.com/license
7
7
  */
8
- (function(W,J){"object"===typeof module&&module.exports?(J["default"]=J,module.exports=W.document?J(W):J):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return J(W)}):(W.Highcharts&&W.Highcharts.error(16,!0),W.Highcharts=J(W))})("undefined"!==typeof window?window:this,function(W){function J(b,I,e,E){b.hasOwnProperty(I)||(b[I]=E.apply(null,e),"function"===typeof CustomEvent&&W.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:I,module:b[I]}})))}var e=
9
- {};J(e,"Core/Globals.js",[],function(){var b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="10.0.0";b.win="undefined"!==typeof W?W:{};b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=
10
- !b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(b.userAgent);b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var e=!1;if(!b.isMS){var I=Object.defineProperty({},"passive",{get:function(){e=!0}});
11
- b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",b.noop,I),b.win.removeEventListener("testPassive",b.noop,I))}return e}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});J(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(b){function e(c,u,g,h){var F=u?"Highcharts error":"Highcharts warning";32===c&&(c=F+": Deprecated member");var D=l(c),a=D?F+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();
12
- if("undefined"!==typeof h){var m="";D&&(a+="?");B(h,function(c,u){m+="\n - "+u+": "+c;D&&(a+=encodeURI(u)+"="+encodeURI(c))});a+=m}r(b,"displayError",{chart:g,code:c,message:a,params:h},function(){if(u)throw Error(a);p.console&&-1===e.messages.indexOf(a)&&console.warn(a)});e.messages.push(a)}function v(c,u){var F={};B(c,function(g,h){if(C(c[h],!0)&&!c.nodeType&&u[h])g=v(c[h],u[h]),Object.keys(g).length&&(F[h]=g);else if(C(c[h])||c[h]!==u[h]||h in c&&!(h in u))F[h]=c[h]});return F}function E(c,u){return parseInt(c,
13
- u||10)}function t(c){return"string"===typeof c}function A(c){c=Object.prototype.toString.call(c);return"[object Array]"===c||"[object Array Iterator]"===c}function C(c,u){return!!c&&"object"===typeof c&&(!u||!A(c))}function z(c){return C(c)&&"number"===typeof c.nodeType}function q(c){var u=c&&c.constructor;return!(!C(c,!0)||z(c)||!u||!u.name||"Object"===u.name)}function l(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function n(c){return"undefined"!==typeof c&&null!==c}function d(c,
14
- u,g){var h=t(u)&&!n(g),F,a=function(u,g){n(u)?c.setAttribute(g,u):h?(F=c.getAttribute(g))||"class"!==g||(F=c.getAttribute(g+"Name")):c.removeAttribute(g)};t(u)?a(g,u):B(u,a);return F}function a(c,u){var g;c||(c={});for(g in u)c[g]=u[g];return c}function f(){for(var c=arguments,u=c.length,g=0;g<u;g++){var h=c[g];if("undefined"!==typeof h&&null!==h)return h}}function k(c,u){b.isMS&&!b.svg&&u&&n(u.opacity)&&(u.filter="alpha(opacity="+100*u.opacity+")");a(c.style,u)}function G(c,u){return 1E14<c?c:parseFloat(c.toPrecision(u||
15
- 14))}function y(c,u,g){var h=b.getStyle||y;if("width"===u)return u=Math.min(c.offsetWidth,c.scrollWidth),g=c.getBoundingClientRect&&c.getBoundingClientRect().width,g<u&&g>=u-1&&(u=Math.floor(g)),Math.max(0,u-(h(c,"padding-left",!0)||0)-(h(c,"padding-right",!0)||0));if("height"===u)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(h(c,"padding-top",!0)||0)-(h(c,"padding-bottom",!0)||0));p.getComputedStyle||e(27,!0);if(c=p.getComputedStyle(c,void 0)){var a=c.getPropertyValue(u);f(g,"opacity"!==
16
- u)&&(a=E(a))}return a}function B(c,u,g){for(var h in c)Object.hasOwnProperty.call(c,h)&&u.call(g||c[h],c[h],h,c)}function x(c,u,g){function h(u,g){var h=c.removeEventListener||b.removeEventListenerPolyfill;h&&h.call(c,u,g,!1)}function a(g){var a;if(c.nodeName){if(u){var F={};F[u]=!0}else F=g;B(F,function(c,u){if(g[u])for(a=g[u].length;a--;)h(u,g[u][a].fn)})}}var F="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(F,"hcEvents")){var m=F.hcEvents;u?(F=m[u]||[],g?(m[u]=F.filter(function(c){return g!==
17
- c.fn}),h(u,g)):(a(m),m[u]=[])):(a(m),delete F.hcEvents)}}function r(c,u,g,m){g=g||{};if(h.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==b)){var F=h.createEvent("Events");F.initEvent(u,!0,!0);g=a(F,g);c.dispatchEvent?c.dispatchEvent(g):c.fireEvent(u,g)}else if(c.hcEvents){g.target||a(g,{preventDefault:function(){g.defaultPrevented=!0},target:c,type:u});F=[];for(var p=c,D=!1;p.hcEvents;)Object.hasOwnProperty.call(p,"hcEvents")&&p.hcEvents[u]&&(F.length&&(D=!0),F.unshift.apply(F,p.hcEvents[u])),p=
18
- Object.getPrototypeOf(p);D&&F.sort(function(c,g){return c.order-g.order});F.forEach(function(u){!1===u.fn.call(c,g)&&g.preventDefault()})}m&&!g.defaultPrevented&&m.call(c,g)}var m=b.charts,h=b.doc,p=b.win;(e||(e={})).messages=[];Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var c=Array.prototype.find?function(c,g){return c.find(g)}:function(c,g){var u,h=c.length;for(u=0;u<h;u++)if(g(c[u],u))return c[u]};B({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,
19
- g){b[g]=function(u){var h;e(32,!1,void 0,(h={},h["Highcharts."+g]="use Array."+c,h));return Array.prototype[c].apply(u,[].slice.call(arguments,1))}});var w,g=function(){var c=Math.random().toString(36).substring(2,9)+"-",g=0;return function(){return"highcharts-"+(w?"":c)+g++}}();p.jQuery&&(p.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (b[t(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):m[d(this[0],"data-highcharts-chart")]});c={addEvent:function(c,
20
- g,h,a){void 0===a&&(a={});var u="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(u,"hcEvents")||(u.hcEvents={});u=u.hcEvents;b.Point&&c instanceof b.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var m=c.addEventListener||b.addEventListenerPolyfill;m&&m.call(c,g,h,b.supportsPassiveEvents?{passive:void 0===a.passive?-1!==g.indexOf("touch"):a.passive,capture:!1}:!1);u[g]||(u[g]=[]);u[g].push({fn:h,order:"number"===typeof a.order?a.order:Infinity});u[g].sort(function(c,
21
- g){return c.order-g.order});return function(){x(c,g,h)}},arrayMax:function(c){for(var g=c.length,h=c[0];g--;)c[g]>h&&(h=c[g]);return h},arrayMin:function(c){for(var g=c.length,h=c[0];g--;)c[g]<h&&(h=c[g]);return h},attr:d,clamp:function(c,g,h){return c>g?c<h?c:h:g},cleanRecursively:v,clearTimeout:function(c){n(c)&&clearTimeout(c)},correctFloat:G,createElement:function(c,g,m,p,f){c=h.createElement(c);g&&a(c,g);f&&k(c,{padding:"0",border:"none",margin:"0"});m&&k(c,m);p&&p.appendChild(c);return c},css:k,
22
- defined:n,destroyObjectProperties:function(c,g){B(c,function(h,u){h&&h!==g&&h.destroy&&h.destroy();delete c[u]})},discardElement:function(c){c&&c.parentElement&&c.parentElement.removeChild(c)},erase:function(c,g){for(var h=c.length;h--;)if(c[h]===g){c.splice(h,1);break}},error:e,extend:a,extendClass:function(c,g){var h=function(){};h.prototype=new c;a(h.prototype,g);return h},find:c,fireEvent:r,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c,
23
- g){for(c=c.split(".");c.length&&n(g);){var h=c.shift();if("undefined"===typeof h||"__proto__"===h)return;g=g[h];if(!n(g)||"function"===typeof g||"number"===typeof g.nodeType||g===p)return}return g},getStyle:y,inArray:function(c,g,h){e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return g.indexOf(c,h)},isArray:A,isClass:q,isDOMElement:z,isFunction:function(c){return"function"===typeof c},isNumber:l,isObject:C,isString:t,keys:function(c){e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});
24
- return Object.keys(c)},merge:function(){var c,g=arguments,h={},a=function(c,g){"object"!==typeof c&&(c={});B(g,function(h,u){"__proto__"!==u&&"constructor"!==u&&(!C(h,!0)||q(h)||z(h)?c[u]=g[u]:c[u]=a(c[u]||{},h))});return c};!0===g[0]&&(h=g[1],g=Array.prototype.slice.call(g,2));var m=g.length;for(c=0;c<m;c++)h=a(h,g[c]);return h},normalizeTickInterval:function(c,g,h,a,m){var u=c;h=f(h,1);var p=c/h;g||(g=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===a&&(1===h?g=g.filter(function(c){return 0===
25
- c%1}):.1>=h&&(g=[1/h])));for(a=0;a<g.length&&!(u=g[a],m&&u*h>=c||!m&&p<=(g[a]+(g[a+1]||g[a]))/2);a++);return u=G(u*h,-Math.round(Math.log(.001)/Math.LN10))},objectEach:B,offset:function(c){var g=h.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(p.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(p.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:c.width,height:c.height}},pad:function(c,g,h){return Array((g||2)+1-String(c).replace("-",
26
- "").length).join(h||"0")+c},pick:f,pInt:E,relativeLength:function(c,g,h){return/%$/.test(c)?g*parseFloat(c)/100+(h||0):parseFloat(c)},removeEvent:x,splat:function(c){return A(c)?c:[c]},stableSort:function(c,g){var h=c.length,u,a;for(a=0;a<h;a++)c[a].safeI=a;c.sort(function(c,h){u=g(c,h);return 0===u?c.safeI-h.safeI:u});for(a=0;a<h;a++)delete c[a].safeI},syncTimeout:function(c,g,h){if(0<g)return setTimeout(c,g,h);c.call(0,h);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,
27
- week:6048E5,month:24192E5,year:314496E5},uniqueKey:g,useSerialIds:function(c){return w=f(c,w)},wrap:function(c,g,h){var a=c[g];c[g]=function(){var c=Array.prototype.slice.call(arguments),g=arguments,u=this;u.proceed=function(){a.apply(u,arguments.length?arguments:g)};c.unshift(a);c=h.apply(this,c);u.proceed=null;return c}}};"";return c});J(e,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",
28
- ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});J(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var I=e.isNumber,E=e.merge,t=e.pInt;e=function(){function e(C){this.rgba=[NaN,NaN,NaN,NaN];this.input=C;var z=b.Color;if(z&&z!==e)return new z(C);if(!(this instanceof e))return new e(C);
29
- this.init(C)}e.parse=function(b){return b?new e(b):e.None};e.prototype.init=function(b){var z;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(d){return new e(d[1])});else if("string"===typeof b){this.input=b=e.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var q=b.length;var l=parseInt(b.substr(1),16);7===q?z=[(l&16711680)>>16,(l&65280)>>8,l&255,1]:4===q&&(z=[(l&3840)>>4|(l&3840)>>8,(l&240)>>4|l&240,(l&15)<<4|l&15,1])}if(!z)for(l=e.parsers.length;l--&&!z;){var n=
30
- e.parsers[l];(q=n.regex.exec(b))&&(z=n.parse(q))}}z&&(this.rgba=z)};e.prototype.get=function(b){var z=this.input,q=this.rgba;if("object"===typeof z&&"undefined"!==typeof this.stops){var l=E(z);l.stops=[].slice.call(l.stops);this.stops.forEach(function(n,d){l.stops[d]=[l.stops[d][0],n.get(b)]});return l}return q&&I(q[0])?"rgb"===b||!b&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===b?""+q[3]:"rgba("+q.join(",")+")":z};e.prototype.brighten=function(b){var z=this.rgba;if(this.stops)this.stops.forEach(function(l){l.brighten(b)});
31
- else if(I(b)&&0!==b)for(var q=0;3>q;q++)z[q]+=t(255*b),0>z[q]&&(z[q]=0),255<z[q]&&(z[q]=255);return this};e.prototype.setOpacity=function(b){this.rgba[3]=b;return this};e.prototype.tweenTo=function(b,z){var q=this.rgba,l=b.rgba;if(!I(q[0])||!I(l[0]))return b.input||"none";b=1!==l[3]||1!==q[3];return(b?"rgba(":"rgb(")+Math.round(l[0]+(q[0]-l[0])*(1-z))+","+Math.round(l[1]+(q[1]-l[1])*(1-z))+","+Math.round(l[2]+(q[2]-l[2])*(1-z))+(b?","+(l[3]+(q[3]-l[3])*(1-z)):"")+")"};e.names={white:"#ffffff",black:"#000000"};
32
- e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(b){return[t(b[1]),t(b[2]),t(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[t(b[1]),t(b[2]),t(b[3]),1]}}];e.None=new e("");return e}();"";return e});J(e,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});
33
- J(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var I=b.win,E=e.defined,t=e.error,A=e.extend,C=e.isObject,z=e.merge,q=e.objectEach,l=e.pad,n=e.pick,d=e.splat,a=e.timeUnits,f=b.isSafari&&I.Intl&&I.Intl.DateTimeFormat.prototype.formatRange,k=b.isSafari&&I.Intl&&!I.Intl.DateTimeFormat.prototype.formatRange;e=function(){function G(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=I.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}
34
- G.prototype.get=function(a,f){if(this.variableTimezone||this.timezoneOffset){var d=f.getTime(),r=d-this.getTimezoneOffset(f);f.setTime(r);a=f["getUTC"+a]();f.setTime(d);return a}return this.useUTC?f["getUTC"+a]():f["get"+a]()};G.prototype.set=function(a,d,k){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(d)%36E5)return d["setUTC"+a](k);var r=this.getTimezoneOffset(d);r=d.getTime()-r;d.setTime(r);d["setUTC"+a](k);a=this.getTimezoneOffset(d);
35
- r=d.getTime()+a;return d.setTime(r)}return this.useUTC||f&&"FullYear"===a?d["setUTC"+a](k):d["set"+a](k)};G.prototype.update=function(a){var f=n(a&&a.useUTC,!0);this.options=a=z(!0,this.options||{},a);this.Date=a.Date||I.Date||Date;this.timezoneOffset=(this.useUTC=f)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=f&&!(!a.getTimezoneOffset&&!a.timezone)};G.prototype.makeTime=function(a,f,d,r,m,h){if(this.useUTC){var p=this.Date.UTC.apply(0,arguments);var c=
36
- this.getTimezoneOffset(p);p+=c;var w=this.getTimezoneOffset(p);c!==w?p+=w-c:c-36E5!==this.getTimezoneOffset(p-36E5)||k||(p-=36E5)}else p=(new this.Date(a,f,n(d,1),n(r,0),n(m,0),n(h,0))).getTime();return p};G.prototype.timezoneOffsetFunction=function(){var a=this,f=this.options,d=f.getTimezoneOffset,k=f.moment||I.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(f.timezone){if(k)return function(a){return 6E4*-k.tz(a,f.timezone).utcOffset()};t(25)}return this.useUTC&&
37
- d?function(a){return 6E4*d(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||0)}};G.prototype.dateFormat=function(a,f,d){if(!E(f)||isNaN(f))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=n(a,"%Y-%m-%d %H:%M:%S");var k=this,m=new this.Date(f),h=this.get("Hours",m),p=this.get("Day",m),c=this.get("Date",m),w=this.get("Month",m),g=this.get("FullYear",m),F=b.defaultOptions.lang,u=F&&F.weekdays,D=F&&F.shortWeekdays;m=A({a:D?D[p]:u[p].substr(0,3),A:u[p],d:l(c),e:l(c,2," "),w:p,
38
- b:F.shortMonths[w],B:F.months[w],m:l(w+1),o:w+1,y:g.toString().substr(2,2),Y:g,H:l(h),k:h,I:l(h%12||12),l:h%12||12,M:l(this.get("Minutes",m)),p:12>h?"AM":"PM",P:12>h?"am":"pm",S:l(m.getSeconds()),L:l(Math.floor(f%1E3),3)},b.dateFormats);q(m,function(c,g){for(;-1!==a.indexOf("%"+g);)a=a.replace("%"+g,"function"===typeof c?c.call(k,f):c)});return d?a.substr(0,1).toUpperCase()+a.substr(1):a};G.prototype.resolveDTLFormat=function(a){return C(a,!0)?a:(a=d(a),{main:a[0],from:a[1],to:a[2]})};G.prototype.getTimeTicks=
39
- function(f,d,k,r){var m=this,h=[],p={},c=new m.Date(d),w=f.unitRange,g=f.count||1,F;r=n(r,1);if(E(d)){m.set("Milliseconds",c,w>=a.second?0:g*Math.floor(m.get("Milliseconds",c)/g));w>=a.second&&m.set("Seconds",c,w>=a.minute?0:g*Math.floor(m.get("Seconds",c)/g));w>=a.minute&&m.set("Minutes",c,w>=a.hour?0:g*Math.floor(m.get("Minutes",c)/g));w>=a.hour&&m.set("Hours",c,w>=a.day?0:g*Math.floor(m.get("Hours",c)/g));w>=a.day&&m.set("Date",c,w>=a.month?1:Math.max(1,g*Math.floor(m.get("Date",c)/g)));if(w>=
40
- a.month){m.set("Month",c,w>=a.year?0:g*Math.floor(m.get("Month",c)/g));var u=m.get("FullYear",c)}w>=a.year&&m.set("FullYear",c,u-u%g);w===a.week&&(u=m.get("Day",c),m.set("Date",c,m.get("Date",c)-u+r+(u<r?-7:0)));u=m.get("FullYear",c);r=m.get("Month",c);var D=m.get("Date",c),x=m.get("Hours",c);d=c.getTime();!m.variableTimezone&&m.useUTC||!E(k)||(F=k-d>4*a.month||m.getTimezoneOffset(d)!==m.getTimezoneOffset(k));d=c.getTime();for(c=1;d<k;)h.push(d),d=w===a.year?m.makeTime(u+c*g,0):w===a.month?m.makeTime(u,
41
- r+c*g):!F||w!==a.day&&w!==a.week?F&&w===a.hour&&1<g?m.makeTime(u,r,D,x+c*g):d+w*g:m.makeTime(u,r,D+c*g*(w===a.day?1:7)),c++;h.push(d);w<=a.hour&&1E4>h.length&&h.forEach(function(c){0===c%18E5&&"000000000"===m.dateFormat("%H%M%S%L",c)&&(p[c]="day")})}h.info=A(f,{higherRanks:p,totalRange:w*g});return h};G.prototype.getDateFormat=function(f,d,k,r){var m=this.dateFormat("%m-%d %H:%M:%S.%L",d),h={millisecond:15,second:12,minute:9,hour:6,day:3},p="millisecond";for(c in a){if(f===a.week&&+this.dateFormat("%w",
42
- d)===k&&"00:00:00.000"===m.substr(6)){var c="week";break}if(a[c]>f){c=p;break}if(h[c]&&m.substr(h[c])!=="01-01 00:00:00.000".substr(h[c]))break;"week"!==c&&(p=c)}if(c)var w=this.resolveDTLFormat(r[c]).main;return w};return G}();"";return e});J(e,"Core/DefaultOptions.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A){e=e.parse;var I=A.merge,z={colors:E.colors,symbols:["circle",
43
- "diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,
44
- timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",
45
- inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,
46
- textAlign:"center"}},tooltip:{enabled:!0,animation:v.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:v.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',
47
- backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};z.chart.styledMode=!1;"";var q=new t(I(z.global,z.time));b={defaultOptions:z,defaultTime:q,getOptions:function(){return z},
48
- setOptions:function(l){I(!0,z,l);if(l.time||l.global)v.time?v.time.update(I(z.global,z.time,l.global,l.time)):v.time=q;return z}};"";return b});J(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,v){var I=b.parse,t=e.win,A=v.isNumber,C=v.objectEach;return function(){function b(b,l,n){this.pos=NaN;this.options=l;this.elem=b;this.prop=n}b.prototype.dSetter=function(){var b=this.paths,l=b&&b[0];b=b&&b[1];var n=this.now||0,d=[];if(1!==n&&l&&b)if(l.length===
49
- b.length&&1>n)for(var a=0;a<b.length;a++){for(var f=l[a],k=b[a],G=[],y=0;y<k.length;y++){var B=f[y],x=k[y];A(B)&&A(x)&&("A"!==k[0]||4!==y&&5!==y)?G[y]=B+n*(x-B):G[y]=x}d.push(G)}else d=b;else d=this.toD||[];this.elem.attr("d",d,void 0,!0)};b.prototype.update=function(){var b=this.elem,l=this.prop,n=this.now,d=this.options.step;if(this[l+"Setter"])this[l+"Setter"]();else b.attr?b.element&&b.attr(l,n,null,!0):b.style[l]=n+this.unit;d&&d.call(b,n,this)};b.prototype.run=function(q,l,n){var d=this,a=d.options,
50
- f=function(a){return f.stopped?!1:d.step(a)},k=t.requestAnimationFrame||function(a){setTimeout(a,13)},G=function(){for(var a=0;a<b.timers.length;a++)b.timers[a]()||b.timers.splice(a--,1);b.timers.length&&k(G)};q!==l||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=q,this.end=l,this.unit=n,this.now=this.start,this.pos=0,f.elem=this.elem,f.prop=this.prop,f()&&1===b.timers.push(f)&&k(G)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))};
51
- b.prototype.step=function(b){var l=+new Date,n=this.options,d=this.elem,a=n.complete,f=n.duration,k=n.curAnim;if(d.attr&&!d.element)b=!1;else if(b||l>=f+this.startTime){this.now=this.end;this.pos=1;this.update();var G=k[this.prop]=!0;C(k,function(a){!0!==a&&(G=!1)});G&&a&&a.call(d);b=!1}else this.pos=n.easing((l-this.startTime)/f),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b};b.prototype.initPath=function(b,l,n){function d(a,h){for(;a.length<r;){var f=a[0],c=h[r-
52
- a.length];c&&"M"===f[0]&&(a[0]="C"===c[0]?["C",f[1],f[2],f[1],f[2],f[1],f[2]]:["L",f[1],f[2]]);a.unshift(f);G&&(f=a.pop(),a.push(a[a.length-1],f))}}function a(a,h){for(;a.length<r;)if(h=a[Math.floor(a.length/y)-1].slice(),"C"===h[0]&&(h[1]=h[5],h[2]=h[6]),G){var f=a[Math.floor(a.length/y)].slice();a.splice(a.length/2,0,h,f)}else a.push(h)}var f=b.startX,k=b.endX;n=n.slice();var G=b.isArea,y=G?2:1;l=l&&l.slice();if(!l)return[n,n];if(f&&k&&k.length){for(b=0;b<f.length;b++)if(f[b]===k[0]){var B=b;break}else if(f[0]===
53
- k[k.length-f.length+b]){B=b;var x=!0;break}else if(f[f.length-1]===k[k.length-f.length+b]){B=f.length-b;break}"undefined"===typeof B&&(l=[])}if(l.length&&A(B)){var r=n.length+B*y;x?(d(l,n),a(n,l)):(d(n,l),a(l,n))}return[l,n]};b.prototype.fillSetter=function(){b.prototype.strokeSetter.apply(this,arguments)};b.prototype.strokeSetter=function(){this.elem.attr(this.prop,I(this.start).tweenTo(I(this.end),this.pos),void 0,!0)};b.timers=[];return b}()});J(e,"Core/Animation/AnimationUtilities.js",[e["Core/Animation/Fx.js"],
54
- e["Core/Utilities.js"]],function(b,e){function I(a){return q(a)?l({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function E(a,f){for(var d=b.timers.length;d--;)b.timers[d].elem!==a||f&&f!==b.timers[d].prop||(b.timers[d].stopped=!0)}var t=e.defined,A=e.getStyle,C=e.isArray,z=e.isNumber,q=e.isObject,l=e.merge,n=e.objectEach,d=e.pick;return{animate:function(a,f,d){var k,y="",B,x;if(!q(d)){var r=arguments;d={duration:r[2],easing:r[3],complete:r[4]}}z(d.duration)||(d.duration=400);d.easing="function"===
55
- typeof d.easing?d.easing:Math[d.easing]||Math.easeInOutSine;d.curAnim=l(f);n(f,function(m,h){E(a,h);x=new b(a,d,h);B=void 0;"d"===h&&C(f.d)?(x.paths=x.initPath(a,a.pathArray,f.d),x.toD=f.d,k=0,B=1):a.attr?k=a.attr(h):(k=parseFloat(A(a,h))||0,"opacity"!==h&&(y="px"));B||(B=m);"string"===typeof B&&B.match("px")&&(B=B.replace(/px/g,""));x.run(k,B,y)})},animObject:I,getDeferredAnimation:function(a,f,d){var k=I(f),y=0,B=0;(d?[d]:a.series).forEach(function(a){a=I(a.options.animation);y=f&&t(f.defer)?k.defer:
56
- Math.max(y,a.duration+a.defer);B=Math.min(k.duration,a.duration)});a.renderer.forExport&&(y=0);return{defer:Math.max(0,y-B),duration:Math.min(y,B)}},setAnimation:function(a,f){f.renderer.globalAnimation=d(a,f.options.chart.animation,!0)},stop:E}});J(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var I=b.SVG_NS,E=e.attr,t=e.createElement,A=e.css,C=e.error,z=e.isFunction,q=e.isString,l=e.objectEach,n=e.splat,d=(e=b.win.trustedTypes)&&z(e.createPolicy)&&e.createPolicy("highcharts",
57
- {createHTML:function(a){return a}}),a=d?d.createHTML(""):"";try{var f=!!(new DOMParser).parseFromString(a,"text/html")}catch(k){f=!1}z=function(){function k(a){this.nodes="string"===typeof a?this.parseMarkup(a):a}k.filterUserAttributes=function(a){l(a,function(f,d){var x=!0;-1===k.allowedAttributes.indexOf(d)&&(x=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(d)&&(x=q(f)&&k.allowedReferences.some(function(a){return 0===f.indexOf(a)}));x||(C("Highcharts warning: Invalid attribute '"+
58
- d+"' in config"),delete a[d])});return a};k.parseStyle=function(a){return a.split(";").reduce(function(a,f){f=f.split(":").map(function(a){return a.trim()});var d=f[0].replace(/-([a-z])/g,function(a){return a[1].toUpperCase()});f[1]&&(a[d]=f[1]);return a},{})};k.setElementHTML=function(a,f){a.innerHTML=k.emptyHTML;f&&(new k(f)).addToDOM(a)};k.prototype.addToDOM=function(a){function f(a,d){var r;n(a).forEach(function(a){var h=a.tagName,p=a.textContent?b.doc.createTextNode(a.textContent):void 0,c=k.bypassHTMLFiltering;
59
- if(h)if("#text"===h)var m=p;else if(-1!==k.allowedTags.indexOf(h)||c){h=b.doc.createElementNS("svg"===h?I:d.namespaceURI||I,h);var g=a.attributes||{};l(a,function(c,a){"tagName"!==a&&"attributes"!==a&&"children"!==a&&"style"!==a&&"textContent"!==a&&(g[a]=c)});E(h,c?g:k.filterUserAttributes(g));a.style&&A(h,a.style);p&&h.appendChild(p);f(a.children||[],h);m=h}else C("Highcharts warning: Invalid tagName "+h+" in config");m&&d.appendChild(m);r=m});return r}return f(this.nodes,a)};k.prototype.parseMarkup=
60
- function(a){var y=[];a=a.trim().replace(/ style="/g,' data-style="');if(f)a=(new DOMParser).parseFromString(d?d.createHTML(a):a,"text/html");else{var B=t("div");B.innerHTML=a;a={body:B}}var x=function(a,f){var h=a.nodeName.toLowerCase(),d={tagName:h};"#text"===h&&(d.textContent=a.textContent||"");if(h=a.attributes){var c={};[].forEach.call(h,function(a){"data-style"===a.name?d.style=k.parseStyle(a.value):c[a.name]=a.value});d.attributes=c}if(a.childNodes.length){var m=[];[].forEach.call(a.childNodes,
61
- function(c){x(c,m)});m.length&&(d.children=m)}f.push(d)};[].forEach.call(a.body.childNodes,function(a){return x(a,y)});return y};k.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
62
- k.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");k.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");k.emptyHTML=a;k.bypassHTMLFiltering=!1;return k}();"";return z});
63
- J(e,"Core/FormatUtilities.js",[e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e){function I(l,n,d,a){l=+l||0;n=+n;var f=E.lang,k=(l.toString().split(".")[1]||"").split("e")[0].length,G=l.toString().split("e"),y=n;if(-1===n)n=Math.min(k,20);else if(!C(n))n=2;else if(n&&G[1]&&0>G[1]){var B=n+ +G[1];0<=B?(G[0]=(+G[0]).toExponential(B).split("e")[0],n=B):(G[0]=G[0].split(".")[0]||0,l=20>n?(G[0]*Math.pow(10,G[1])).toFixed(n):0,G[1]=0)}B=(Math.abs(G[1]?G[0]:l)+Math.pow(10,-Math.max(n,k)-
64
- 1)).toFixed(n);k=String(q(B));var x=3<k.length?k.length%3:0;d=z(d,f.decimalPoint);a=z(a,f.thousandsSep);l=(0>l?"-":"")+(x?k.substr(0,x)+a:"");l=0>+G[1]&&!y?"0":l+k.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+a);n&&(l+=d+B.slice(-n));G[1]&&0!==+l&&(l+="e"+G[1]);return l}var E=b.defaultOptions,t=b.defaultTime,A=e.getNestedProperty,C=e.isNumber,z=e.pick,q=e.pInt;return{dateFormat:function(l,n,d){return t.dateFormat(l,n,d)},format:function(l,n,d){var a="{",f=!1,k=/f$/,G=/\.([0-9])/,y=E.lang,B=d&&d.time||
65
- t;d=d&&d.numberFormatter||I;for(var x=[];l;){var r=l.indexOf(a);if(-1===r)break;var m=l.slice(0,r);if(f){m=m.split(":");a=A(m.shift()||"",n);if(m.length&&"number"===typeof a)if(m=m.join(":"),k.test(m)){var h=parseInt((m.match(G)||["","-1"])[1],10);null!==a&&(a=d(a,h,y.decimalPoint,-1<m.indexOf(",")?y.thousandsSep:""))}else a=B.dateFormat(m,a);x.push(a)}else x.push(m);l=l.slice(r+1);a=(f=!f)?"}":"{"}x.push(l);return x.join("")},numberFormat:I}});J(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],
66
- function(b){var e=b.clamp,v=b.pick,E=b.stableSort,t;(function(b){function t(b,q,l){var n=b,d=n.reducedLen||q,a=function(a,f){return(f.rank||0)-(a.rank||0)},f=function(a,f){return a.target-f.target},k,G=!0,y=[],B=0;for(k=b.length;k--;)B+=b[k].size;if(B>d){E(b,a);for(B=k=0;B<=d;)B+=b[k].size,k++;y=b.splice(k-1,b.length)}E(b,f);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:v(a.align,.5)}});G;){for(k=b.length;k--;)d=b[k],a=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/
67
- 2,d.pos=e(a-d.size*d.align,0,q-d.size);k=b.length;for(G=!1;k--;)0<k&&b[k-1].pos+b[k-1].size>b[k].pos&&(b[k-1].size+=b[k].size,b[k-1].targets=b[k-1].targets.concat(b[k].targets),b[k-1].align=.5,b[k-1].pos+b[k-1].size>q&&(b[k-1].pos=q-b[k-1].size),b.splice(k,1),G=!0)}n.push.apply(n,y);k=0;b.some(function(a){var f=0;return(a.targets||[]).some(function(){n[k].pos=a.pos+f;if("undefined"!==typeof l&&Math.abs(n[k].pos-n[k].target)>l)return n.slice(0,k+1).forEach(function(a){return delete a.pos}),n.reducedLen=
68
- (n.reducedLen||q)-.1*q,n.reducedLen>.1*q&&t(n,q,l),!0;f+=n[k].size;k++;return!1})});E(n,f);return n}b.distribute=t})(t||(t={}));return t});J(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,v,E,t){var I=b.animate,C=b.animObject,z=b.stop,q=E.deg2rad,l=E.doc,n=E.noop,d=E.svg,a=E.SVG_NS,f=E.win,k=t.addEvent,G=t.attr,y=t.createElement,B=t.css,x=t.defined,r=t.erase,
69
- m=t.extend,h=t.fireEvent,p=t.isArray,c=t.isFunction,w=t.isNumber,g=t.isString,F=t.merge,u=t.objectEach,D=t.pick,H=t.pInt,L=t.syncTimeout,P=t.uniqueKey;b=function(){function b(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}b.prototype._defaultGetter=function(c){c=D(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&
70
- (c=parseFloat(c));return c};b.prototype._defaultSetter=function(c,a,g){g.setAttribute(a,c)};b.prototype.add=function(c){var a=this.renderer,g=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&a.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var h=this.zIndexSetter();h||(c?c.element:a.box).appendChild(g);if(this.onAdd)this.onAdd();return this};b.prototype.addClass=function(c,a){var g=a?"":this.attr("class")||
71
- "";c=(c||"").split(/ /g).reduce(function(c,a){-1===g.indexOf(a)&&c.push(a);return c},g?[g]:[]).join(" ");c!==g&&this.attr("class",c);return this};b.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};b.prototype.align=function(c,a,h){var u={},f=this.renderer,d=f.alignedObjects,m,p,w;if(c){if(this.alignOptions=c,this.alignByTranslate=a,!h||g(h))this.alignTo=m=h||"renderer",r(d,this),d.push(this),h=void 0}else c=this.alignOptions,a=this.alignByTranslate,
72
- m=this.alignTo;h=D(h,f[m],"scrollablePlotBox"===m?f.plotBox:void 0,f);m=c.align;var k=c.verticalAlign;f=(h.x||0)+(c.x||0);d=(h.y||0)+(c.y||0);"right"===m?p=1:"center"===m&&(p=2);p&&(f+=(h.width-(c.width||0))/p);u[a?"translateX":"x"]=Math.round(f);"bottom"===k?w=1:"middle"===k&&(w=2);w&&(d+=(h.height-(c.height||0))/w);u[a?"translateY":"y"]=Math.round(d);this[this.placed?"animate":"attr"](u);this.placed=!0;this.alignAttr=u;return this};b.prototype.alignSetter=function(c){var a={left:"start",center:"middle",
73
- right:"end"};a[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",a[c]))};b.prototype.animate=function(c,a,g){var h=this,f=C(D(a,this.renderer.globalAnimation,!0));a=f.defer;D(l.hidden,l.msHidden,l.webkitHidden,!1)&&(f.duration=0);0!==f.duration?(g&&(f.complete=g),L(function(){h.element&&I(h,c,f)},a)):(this.attr(c,void 0,g||f.complete),u(c,function(c,a){f.step&&f.step.call(this,c,{prop:a,pos:1,elem:this})},this));return this};b.prototype.applyTextOutline=function(c){var g=this.element;
74
- -1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(g.style.fill)));var h=c.split(" ");c=h[h.length-1];if((h=h[0])&&"none"!==h&&E.svg){this.fakeTS=!0;this.ySetter=this.xSetter;h=h.replace(/(^[\d\.]+)(.*?)$/g,function(c,a,g){return 2*Number(a)+g});this.removeTextOutline();var u=l.createElementNS(a,"tspan");G(u,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":h,"stroke-linejoin":"round"});[].forEach.call(g.childNodes,function(c){var a=c.cloneNode(!0);a.removeAttribute&&
75
- ["fill","stroke","stroke-width","stroke"].forEach(function(c){return a.removeAttribute(c)});u.appendChild(a)});var f=l.createElementNS(a,"tspan");f.textContent="\u200b";["x","y"].forEach(function(c){var a=g.getAttribute(c);a&&f.setAttribute(c,a)});u.appendChild(f);g.insertBefore(u,g.firstChild)}};b.prototype.attr=function(c,a,g,h){var f=this.element,d=this.symbolCustomAttribs,m,p=this,w,k;if("string"===typeof c&&"undefined"!==typeof a){var D=c;c={};c[D]=a}"string"===typeof c?p=(this[c+"Getter"]||
76
- this._defaultGetter).call(this,c,f):(u(c,function(a,g){w=!1;h||z(this,g);this.symbolName&&-1!==d.indexOf(g)&&(m||(this.symbolAttr(c),m=!0),w=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);w||(k=this[g+"Setter"]||this._defaultSetter,k.call(this,a,g,f),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,a,k))},this),this.afterSetters());g&&g.call(this);return p};b.prototype.clip=function(c){return this.attr("clip-path",c?"url("+
77
- this.renderer.url+"#"+c.id+")":"none")};b.prototype.crisp=function(c,a){a=a||c.strokeWidth||0;var g=Math.round(a)%2/2;c.x=Math.floor(c.x||this.x||0)+g;c.y=Math.floor(c.y||this.y||0)+g;c.width=Math.floor((c.width||this.width||0)-2*g);c.height=Math.floor((c.height||this.height||0)-2*g);x(c.strokeWidth)&&(c.strokeWidth=a);return c};b.prototype.complexColor=function(c,a,g){var f=this.renderer,d,m,w,k,D,Y,r,b,B,H,y=[],l;h(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?m="radialGradient":
78
- c.linearGradient&&(m="linearGradient");if(m){w=c[m];D=f.gradients;Y=c.stops;B=g.radialReference;p(w)&&(c[m]=w={x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===m&&B&&!x(w.gradientUnits)&&(k=w,w=F(w,f.getRadialAttr(B,k),{gradientUnits:"userSpaceOnUse"}));u(w,function(c,a){"id"!==a&&y.push(a,c)});u(Y,function(c){y.push(c)});y=y.join(",");if(D[y])H=D[y].attr("id");else{w.id=H=P();var h=D[y]=f.createElement(m).attr(w).add(f.defs);h.radAttr=k;h.stops=[];Y.forEach(function(c){0===
79
- c[1].indexOf("rgba")?(d=v.parse(c[1]),r=d.get("rgb"),b=d.get("a")):(r=c[1],b=1);c=f.createElement("stop").attr({offset:c[0],"stop-color":r,"stop-opacity":b}).add(h);h.stops.push(c)})}l="url("+f.url+"#"+H+")";g.setAttribute(a,l);g.gradient=y;c.toString=function(){return l}}})};b.prototype.css=function(c){var a=this.styles,g={},h=this.element,f=!a;c.color&&(c.fill=c.color);a&&u(c,function(c,h){a&&a[h]!==c&&(g[h]=c,f=!0)});if(f){a&&(c=m(a,g));if(null===c.width||"auto"===c.width)delete this.textWidth;
80
- else if("text"===h.nodeName.toLowerCase()&&c.width)var p=this.textWidth=H(c.width);this.styles=c;p&&!d&&this.renderer.forExport&&delete c.width;var w=F(c);h.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return w&&delete w[c]});B(h,w);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};b.prototype.dashstyleSetter=function(c){var a=this["stroke-width"];"inherit"===a&&(a=
81
- 1);if(c=c&&c.toLowerCase()){var g=c.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=g.length;c--;)g[c]=""+H(g[c])*D(a,NaN);c=g.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};b.prototype.destroy=function(){var c=this,a=c.element||{},g=c.renderer,h=a.ownerSVGElement,f=g.isSVG&&
82
- "SPAN"===a.nodeName&&c.parentGroup||void 0;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.point=null;z(c);if(c.clipPath&&h){var d=c.clipPath;[].forEach.call(h.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(d.element.id)&&c.removeAttribute("clip-path")});c.clipPath=d.destroy()}if(c.stops){for(h=0;h<c.stops.length;h++)c.stops[h].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(a);for(g.styledMode||c.destroyShadows();f&&f.div&&0===f.div.childNodes.length;)a=
83
- f.parentGroup,c.safeRemoveChild(f.div),delete f.div,f=a;c.alignTo&&r(g.alignedObjects,c);u(c,function(a,g){c[g]&&c[g].parentGroup===c&&c[g].destroy&&c[g].destroy();delete c[g]})};b.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};b.prototype.destroyTextPath=function(c,a){var g=c.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),a.element.setAttribute("id",""),this.textPathWrapper&&
84
- g.getElementsByTagName("textPath").length){for(c=this.textPathWrapper.element.childNodes;c.length;)g.appendChild(c[0]);g.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};b.prototype.dSetter=function(c,a,g){p(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,a,g){return a&&a.join?
85
- (g?c+" ":"")+a.join(" "):(a||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[a]!==c&&(g.setAttribute(a,c),this[a]=c)};b.prototype.fadeOut=function(c){var a=this;a.animate({opacity:0},{duration:D(c,150),complete:function(){a.attr({y:-9999}).hide()}})};b.prototype.fillSetter=function(c,a,g){"string"===typeof c?g.setAttribute(a,c):c&&this.complexColor(c,a,g)};b.prototype.getBBox=function(a,g){var h=this.renderer,f=this.element,u=this.styles,d=this.textStr,p=h.cache,w=h.cacheKeys,k=f.namespaceURI===
86
- this.SVG_NS;g=D(g,this.rotation,0);var F=h.styledMode?f&&b.prototype.getStyle.call(f,"font-size"):u&&u.fontSize,r;if(x(d)){var y=d.toString();-1===y.indexOf("<")&&(y=y.replace(/[0-9]/g,"0"));y+=["",g,F,this.textWidth,u&&u.textOverflow,u&&u.fontWeight].join()}y&&!a&&(r=p[y]);if(!r){if(k||h.forExport){try{var H=this.fakeTS&&function(c){var a=f.querySelector(".highcharts-text-outline");a&&B(a,{display:c})};c(H)&&H("none");r=f.getBBox?m({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight};c(H)&&
87
- H("")}catch(V){""}if(!r||0>r.width)r={width:0,height:0}}else r=this.htmlGetBBox();h.isSVG&&(a=r.width,h=r.height,k&&(r.height=h={"11px,17":14,"13px,20":16}[(F||"")+","+Math.round(h)]||h),g&&(k=g*q,r.width=Math.abs(h*Math.sin(k))+Math.abs(a*Math.cos(k)),r.height=Math.abs(h*Math.cos(k))+Math.abs(a*Math.sin(k))));if(y&&(""===d||0<r.height)){for(;250<w.length;)delete p[w.shift()];p[y]||w.push(y);p[y]=r}}return r};b.prototype.getStyle=function(c){return f.getComputedStyle(this.element||this,"").getPropertyValue(c)};
88
- b.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};b.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};b.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};b.prototype.init=function(c,a){this.element="span"===a?y(a):l.createElementNS(this.SVG_NS,a);this.renderer=c;h(this,"afterInit")};b.prototype.invert=function(c){this.inverted=c;this.updateTransform();return this};b.prototype.on=function(c,a){var g=
89
- this.onEvents;if(g[c])g[c]();g[c]=k(this.element,c,a);return this};b.prototype.opacitySetter=function(c,a,g){this.opacity=c=Number(Number(c).toFixed(3));g.setAttribute(a,c)};b.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(g(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};b.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");c&&this.safeRemoveChild(c)};b.prototype.safeRemoveChild=function(c){var a=
90
- c.parentNode;a&&a.removeChild(c)};b.prototype.setRadialReference=function(c){var a=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;a&&a.radAttr&&a.animate(this.renderer.getRadialAttr(c,a.radAttr));return this};b.prototype.setTextPath=function(c,a){var g=this.element,h=this.text?this.text.element:g,d={textAnchor:"text-anchor"},m=!1,p=this.textPathWrapper,k=!p;a=F(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},a);var D=e.filterUserAttributes(a.attributes);
91
- if(c&&a&&a.enabled){p&&null===p.element.parentNode?(k=!0,p=p.destroy()):p&&this.removeTextOutline.call(p.parentGroup);this.options&&this.options.padding&&(D.dx=-this.options.padding);p||(this.textPathWrapper=p=this.renderer.createElement("textPath"),m=!0);var r=p.element;(a=c.element.getAttribute("id"))||c.element.setAttribute("id",a=P());if(k)for(h.setAttribute("y",0),w(D.dx)&&h.setAttribute("x",-D.dx),c=[].slice.call(h.childNodes),k=0;k<c.length;k++){var b=c[k];b.nodeType!==f.Node.TEXT_NODE&&"tspan"!==
92
- b.nodeName||r.appendChild(b)}m&&p&&p.add({element:h});r.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+a);x(D.dy)&&(r.parentNode.setAttribute("dy",D.dy),delete D.dy);x(D.dx)&&(r.parentNode.setAttribute("dx",D.dx),delete D.dx);u(D,function(c,a){r.setAttribute(d[a]||a,c)});g.removeAttribute("transform");this.removeTextOutline.call(p);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=n}else p&&(delete this.updateTransform,
93
- delete this.applyTextOutline,this.destroyTextPath(g,c),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};b.prototype.shadow=function(c,a,g){var h=[],f=this.element,d=this.oldShadowOptions,p={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},w=!1,k;!0===c?k=p:"object"===typeof c&&(k=m(p,c));k&&(k&&d&&u(k,function(c,a){c!==d[a]&&(w=!0)}),w&&this.destroyShadows(),this.oldShadowOptions=
94
- k);if(!k)this.destroyShadows();else if(!this.shadows){var D=k.opacity/k.width;var r=this.parentInverted?"translate("+k.offsetY+", "+k.offsetX+")":"translate("+k.offsetX+", "+k.offsetY+")";for(p=1;p<=k.width;p++){var F=f.cloneNode(!1);var b=2*k.width+1-2*p;G(F,{stroke:c.color||"#000000","stroke-opacity":D*p,"stroke-width":b,transform:r,fill:"none"});F.setAttribute("class",(F.getAttribute("class")||"")+" highcharts-shadow");g&&(G(F,"height",Math.max(G(F,"height")-b,0)),F.cutHeight=b);a?a.element.appendChild(F):
95
- f.parentNode&&f.parentNode.insertBefore(F,f);h.push(F)}this.shadows=h}return this};b.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};b.prototype.strokeSetter=function(c,a,g){this[a]=c;this.stroke&&this["stroke-width"]?(b.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===a&&0===c&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&
96
- (g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};b.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),g=0;if(c.indexOf("px")===c.length-2)g=H(c);else if(""!==c){var h=l.createElementNS(a,"rect");G(h,{width:c,"stroke-width":0});this.element.parentNode.appendChild(h);g=h.getBBox().width;h.parentNode.removeChild(h)}return g};b.prototype.symbolAttr=function(c){var a=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g){a[g]=
97
- D(c[g],a[g])});a.attr({d:a.renderer.symbols[a.symbolName](a.x,a.y,a.width,a.height,a)})};b.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};b.prototype.titleSetter=function(c){var a=this.element,g=a.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");a.insertBefore?a.insertBefore(g,a.firstChild):a.appendChild(g);g.textContent=String(D(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,
98
- ">")};b.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};b.prototype.translate=function(c,a){return this.attr({translateX:c,translateY:a})};b.prototype.updateShadows=function(c,a,g){var h=this.shadows;if(h)for(var f=h.length;f--;)g.call(h[f],"height"===c?Math.max(a-(h[f].cutHeight||0),0):"d"===c?this.d:a,c,h[f])};b.prototype.updateTransform=function(){var c=this.scaleX,a=this.scaleY,g=this.inverted,h=this.rotation,f=this.matrix,u=this.element,d=this.translateX||
99
- 0,p=this.translateY||0;g&&(d+=this.width,p+=this.height);d=["translate("+d+","+p+")"];x(f)&&d.push("matrix("+f.join(",")+")");g?d.push("rotate(90) scale(-1,1)"):h&&d.push("rotate("+h+" "+D(this.rotationOriginX,u.getAttribute("x"),0)+" "+D(this.rotationOriginY,u.getAttribute("y")||0)+")");(x(c)||x(a))&&d.push("scale("+D(c,1)+" "+D(a,1)+")");d.length&&u.setAttribute("transform",d.join(" "))};b.prototype.visibilitySetter=function(c,a,g){"inherit"===c?g.removeAttribute(a):this[a]!==c&&g.setAttribute(a,
100
- c);this[a]=c};b.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};b.prototype.zIndexSetter=function(c,a){var g=this.renderer,h=this.parentGroup,f=(h||g).element||g.box,u=this.element;g=f===g.box;var d=!1;var p=this.added;var m;x(c)?(u.setAttribute("data-z-index",c),c=+c,this[a]===c&&(p=!1)):x(this[a])&&u.removeAttribute("data-z-index");this[a]=c;if(p){(c=this.zIndex)&&h&&(h.handleZ=!0);a=f.childNodes;for(m=a.length-1;0<=
101
- m&&!d;m--){h=a[m];p=h.getAttribute("data-z-index");var w=!x(p);if(h!==u)if(0>c&&w&&!g&&!m)f.insertBefore(u,a[m]),d=!0;else if(H(p)<=c||w&&(!x(c)||0<=c))f.insertBefore(u,a[m+1]||null),d=!0}d||(f.insertBefore(u,a[g?3:0]||null),d=!0)}return d};return b}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter=
102
- b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,a){this[a]=c;this.doTransform=!0};"";return b});J(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(b){var e;(function(e){e.rendererTypes={};var I;e.getRendererType=function(b){void 0===b&&(b=I);return e.rendererTypes[b]||e.rendererTypes[I]};e.registerRendererType=function(t,A,C){e.rendererTypes[t]=A;if(!I||C)I=t,b.Renderer=A}})(e||(e={}));return e});J(e,"Core/Renderer/SVG/SVGLabel.js",
103
- [e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e){var I=this&&this.__extends||function(){var b=function(l,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var d in f)f.hasOwnProperty(d)&&(a[d]=f[d])};return b(l,d)};return function(l,d){function a(){this.constructor=l}b(l,d);l.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),E=e.defined,t=e.extend,A=e.isNumber,C=e.merge,z=e.pick,q=e.removeEvent;
104
- return function(l){function n(d,a,f,k,b,y,B,x,r,m){var h=l.call(this)||this;h.paddingLeftSetter=h.paddingSetter;h.paddingRightSetter=h.paddingSetter;h.init(d,"g");h.textStr=a;h.x=f;h.y=k;h.anchorX=y;h.anchorY=B;h.baseline=r;h.className=m;h.addClass("button"===m?"highcharts-no-tooltip":"highcharts-label");m&&h.addClass("highcharts-"+m);h.text=d.text(void 0,0,0,x).attr({zIndex:1});var p;"string"===typeof b&&((p=/^url\((.*?)\)$/.test(b))||h.renderer.symbols[b])&&(h.symbolKey=b);h.bBox=n.emptyBBox;h.padding=
105
- 3;h.baselineOffset=0;h.needsBox=d.styledMode||p;h.deferredAttr={};h.alignFactor=0;return h}I(n,l);n.prototype.alignSetter=function(d){d={left:0,center:.5,right:1}[d];d!==this.alignFactor&&(this.alignFactor=d,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}))};n.prototype.anchorXSetter=function(d,a){this.anchorX=d;this.boxAttr(a,Math.round(d)-this.getCrispAdjust()-this.xSetting)};n.prototype.anchorYSetter=function(d,a){this.anchorY=d;this.boxAttr(a,d-this.ySetting)};n.prototype.boxAttr=function(d,
106
- a){this.box?this.box.attr(d,a):this.deferredAttr[d]=a};n.prototype.css=function(d){if(d){var a={};d=C(d);n.textProps.forEach(function(f){"undefined"!==typeof d[f]&&(a[f]=d[f],delete d[f])});this.text.css(a);var f="width"in a;"fontSize"in a||"fontWeight"in a?this.updateTextPadding():f&&this.updateBoxSize()}return b.prototype.css.call(this,d)};n.prototype.destroy=function(){q(this.element,"mouseenter");q(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());
107
- b.prototype.destroy.call(this)};n.prototype.fillSetter=function(d,a){d&&(this.needsBox=!0);this.fill=d;this.boxAttr(a,d)};n.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var d=this.padding,a=z(this.paddingLeft,d);return{width:this.width,height:this.height,x:this.bBox.x-a,y:this.bBox.y-d}};n.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],
108
- 10):0)%2/2};n.prototype.heightSetter=function(d){this.heightSetting=d};n.prototype.onAdd=function(){var d=this.textStr;this.text.add(this);this.attr({text:E(d)?d:"",x:this.x,y:this.y});this.box&&E(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};n.prototype.paddingSetter=function(d,a){A(d)?d!==this[a]&&(this[a]=d,this.updateTextPadding()):this[a]=void 0};n.prototype.rSetter=function(d,a){this.boxAttr(a,d)};n.prototype.shadow=function(d){d&&!this.renderer.styledMode&&(this.updateBoxSize(),
109
- this.box&&this.box.shadow(d));return this};n.prototype.strokeSetter=function(d,a){this.stroke=d;this.boxAttr(a,d)};n.prototype["stroke-widthSetter"]=function(d,a){d&&(this.needsBox=!0);this["stroke-width"]=d;this.boxAttr(a,d)};n.prototype["text-alignSetter"]=function(d){this.textAlign=d};n.prototype.textSetter=function(d){"undefined"!==typeof d&&this.text.attr({text:d});this.updateTextPadding()};n.prototype.updateBoxSize=function(){var d=this.text.element.style,a={},f=this.padding,k=this.bBox=A(this.widthSetting)&&
110
- A(this.heightSetting)&&!this.textAlign||!E(this.text.textStr)?n.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||k.height||0)+2*f;d=this.renderer.fontMetrics(d&&d.fontSize,this.text);this.baselineOffset=f+Math.min((this.text.firstLineMetrics||d).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2);this.needsBox&&(this.box||(f=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),f.addClass(("button"===
111
- this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),f.add(this)),f=this.getCrispAdjust(),a.x=f,a.y=(this.baseline?-this.baselineOffset:0)+f,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(t(a,this.deferredAttr)),this.deferredAttr={})};n.prototype.updateTextPadding=function(){var d=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,f=z(this.paddingLeft,this.padding);E(this.widthSetting)&&this.bBox&&
112
- ("center"===this.textAlign||"right"===this.textAlign)&&(f+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(f!==d.x||a!==d.y)d.attr("x",f),d.hasBoxWidthChanged&&(this.bBox=d.getBBox(!0)),"undefined"!==typeof a&&d.attr("y",a);d.x=f;d.y=a};n.prototype.widthSetter=function(d){this.widthSetting=A(d)?d:void 0};n.prototype.getPaddedWidth=function(){var d=this.padding,a=z(this.paddingLeft,d);d=z(this.paddingRight,d);return(this.widthSetting||this.bBox.width||0)+a+d};n.prototype.xSetter=
113
- function(d){this.x=d;this.alignFactor&&(d-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(d);this.attr("translateX",this.xSetting)};n.prototype.ySetter=function(d){this.ySetting=this.y=Math.round(d);this.attr("translateY",this.ySetting)};n.emptyBBox={width:0,height:0,x:0,y:0};n.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return n}(b)});J(e,"Core/Renderer/SVG/Symbols.js",
114
- [e["Core/Utilities.js"]],function(b){function e(b,e,l,n,d){var a=[];if(d){var f=d.start||0,k=C(d.r,l);l=C(d.r,n||l);var G=(d.end||0)-.001;n=d.innerR;var y=C(d.open,.001>Math.abs((d.end||0)-f-2*Math.PI)),B=Math.cos(f),x=Math.sin(f),r=Math.cos(G),m=Math.sin(G);f=C(d.longArc,.001>G-f-Math.PI?0:1);a.push(["M",b+k*B,e+l*x],["A",k,l,0,f,C(d.clockwise,1),b+k*r,e+l*m]);t(n)&&a.push(y?["M",b+n*r,e+n*m]:["L",b+n*r,e+n*m],["A",n,n,0,f,t(d.clockwise)?1-d.clockwise:0,b+n*B,e+n*x]);y||a.push(["Z"])}return a}function v(b,
115
- e,l,n,d){return d&&d.r?E(b,e,l,n,d):[["M",b,e],["L",b+l,e],["L",b+l,e+n],["L",b,e+n],["Z"]]}function E(b,e,l,n,d){d=d&&d.r||0;return[["M",b+d,e],["L",b+l-d,e],["C",b+l,e,b+l,e,b+l,e+d],["L",b+l,e+n-d],["C",b+l,e+n,b+l,e+n,b+l-d,e+n],["L",b+d,e+n],["C",b,e+n,b,e+n,b,e+n-d],["L",b,e+d],["C",b,e,b,e,b+d,e]]}var t=b.defined,A=b.isNumber,C=b.pick;return{arc:e,callout:function(b,e,l,n,d){var a=Math.min(d&&d.r||0,l,n),f=a+6,k=d&&d.anchorX;d=d&&d.anchorY||0;var G=E(b,e,l,n,{r:a});if(!A(k))return G;b+k>=l?
116
- d>e+f&&d<e+n-f?G.splice(3,1,["L",b+l,d-6],["L",b+l+6,d],["L",b+l,d+6],["L",b+l,e+n-a]):G.splice(3,1,["L",b+l,n/2],["L",k,d],["L",b+l,n/2],["L",b+l,e+n-a]):0>=b+k?d>e+f&&d<e+n-f?G.splice(7,1,["L",b,d+6],["L",b-6,d],["L",b,d-6],["L",b,e+a]):G.splice(7,1,["L",b,n/2],["L",k,d],["L",b,n/2],["L",b,e+a]):d&&d>n&&k>b+f&&k<b+l-f?G.splice(5,1,["L",k+6,e+n],["L",k,e+n+6],["L",k-6,e+n],["L",b+a,e+n]):d&&0>d&&k>b+f&&k<b+l-f&&G.splice(1,1,["L",k-6,e],["L",k,e-6],["L",k+6,e],["L",l-a,e]);return G},circle:function(b,
117
- q,l,n){return e(b+l/2,q+n/2,l/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,e,l,n){return[["M",b+l/2,e],["L",b+l,e+n/2],["L",b+l/2,e+n],["L",b,e+n/2],["Z"]]},rect:v,roundedRect:E,square:v,triangle:function(b,e,l,n){return[["M",b+l/2,e],["L",b+l,e+n],["L",b,e+n],["Z"]]},"triangle-down":function(b,e,l,n){return[["M",b,e],["L",b+l,e],["L",b+l/2,e+n],["Z"]]}}});J(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,
118
- e,v){var I=e.doc,t=e.SVG_NS,A=e.win,C=v.attr,z=v.extend,q=v.isString,l=v.objectEach,n=v.pick;return function(){function d(a){var f=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=f&&f.lineHeight;this.textOutline=f&&f.textOutline;this.ellipsis=!(!f||"ellipsis"!==f.textOverflow);this.noWrap=!(!f||"nowrap"!==f.whiteSpace);this.fontSize=f&&f.fontSize}d.prototype.buildSVG=function(){var a=this.svgElement,f=a.element,d=a.renderer,l=n(a.textStr,"").toString(),
119
- y=-1!==l.indexOf("<"),B=f.childNodes;d=this.width&&!a.added&&d.box;var x=/<br.*?>/g,r=[l,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(r!==a.textCache){a.textCache=r;delete a.actualWidth;for(r=B.length;r--;)f.removeChild(B[r]);y||this.ellipsis||this.width||-1!==l.indexOf(" ")&&(!this.noWrap||x.test(l))?""!==l&&(d&&d.appendChild(f),l=new b(l),this.modifyTree(l.nodes),l.addToDOM(a.element),this.modifyDOM(),this.ellipsis&&-1!==(f.textContent||"").indexOf("\u2026")&&
120
- a.attr("title",this.unescapeEntities(a.textStr||"",["&lt;","&gt;"])),d&&d.removeChild(f)):f.appendChild(I.createTextNode(this.unescapeEntities(l)));q(this.textOutline)&&a.applyTextOutline&&a.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var a=this,f=this.svgElement,d=C(f.element,"x");f.firstLineMetrics=void 0;for(var b;b=f.element.firstChild;)if(/^[\s\u200B]*$/.test(b.textContent||" "))f.element.removeChild(b);else break;[].forEach.call(f.element.querySelectorAll("tspan.highcharts-br"),
121
- function(b,m){b.nextSibling&&b.previousSibling&&(0===m&&1===b.previousSibling.nodeType&&(f.firstLineMetrics=f.renderer.fontMetrics(void 0,b.previousSibling)),C(b,{dy:a.getLineHeight(b.nextSibling),x:d}))});var y=this.width||0;if(y){var B=function(b,m){var h=b.textContent||"",p=h.replace(/([^\^])-/g,"$1- ").split(" "),c=!a.noWrap&&(1<p.length||1<f.element.childNodes.length),w=a.getLineHeight(m),g=0,k=f.actualWidth;if(a.ellipsis)h&&a.truncate(b,h,void 0,0,Math.max(0,y-parseInt(a.fontSize||12,10)),function(c,
122
- a){return c.substring(0,a)+"\u2026"});else if(c){h=[];for(c=[];m.firstChild&&m.firstChild!==b;)c.push(m.firstChild),m.removeChild(m.firstChild);for(;p.length;)p.length&&!a.noWrap&&0<g&&(h.push(b.textContent||""),b.textContent=p.join(" ").replace(/- /g,"-")),a.truncate(b,void 0,p,0===g?k||0:0,y,function(c,a){return p.slice(0,a).join(" ").replace(/- /g,"-")}),k=f.actualWidth,g++;c.forEach(function(c){m.insertBefore(c,b)});h.forEach(function(c){m.insertBefore(I.createTextNode(c),b);c=I.createElementNS(t,
123
- "tspan");c.textContent="\u200b";C(c,{dy:w,x:d});m.insertBefore(c,b)})}},x=function(a){[].slice.call(a.childNodes).forEach(function(d){d.nodeType===A.Node.TEXT_NODE?B(d,a):(-1!==d.className.baseVal.indexOf("highcharts-br")&&(f.actualWidth=0),x(d))})};x(f.element)}};d.prototype.getLineHeight=function(a){var f;a=a.nodeType===A.Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(f=a&&/(px|em)$/.test(a.style.fontSize)?a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?
124
- parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,a||this.svgElement.element).h};d.prototype.modifyTree=function(a){var f=this,d=function(b,k){var y=b.attributes;y=void 0===y?{}:y;var x=b.children,r=b.style;r=void 0===r?{}:r;var m=b.tagName,h=f.renderer.styledMode;if("b"===m||"strong"===m)h?y["class"]="highcharts-strong":r.fontWeight="bold";else if("i"===m||"em"===m)h?y["class"]="highcharts-emphasized":r.fontStyle="italic";r&&r.color&&(r.fill=r.color);"br"===m?(y["class"]="highcharts-br",
125
- b.textContent="\u200b",(k=a[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,""))):"a"===m&&x&&x.some(function(a){return"#text"===a.tagName})&&(b.children=[{children:x,tagName:"tspan"}]);"#text"!==m&&"a"!==m&&(b.tagName="tspan");z(b,{attributes:y,style:r});x&&x.filter(function(a){return"#text"!==a.tagName}).forEach(d)};a.forEach(d)};d.prototype.truncate=function(a,f,d,b,y,l){var k=this.svgElement,r=k.renderer,m=k.rotation,h=[],p=d?1:0,c=(f||d||"").length,w=c,g,F=function(c,g){g=
126
- g||c;var u=a.parentNode;if(u&&"undefined"===typeof h[g])if(u.getSubStringLength)try{h[g]=b+u.getSubStringLength(0,d?g+1:g)}catch(P){""}else r.getSpanWidth&&(a.textContent=l(f||d,c),h[g]=b+r.getSpanWidth(k,a));return h[g]};k.rotation=0;var u=F(a.textContent.length);if(b+u>y){for(;p<=c;)w=Math.ceil((p+c)/2),d&&(g=l(d,w)),u=F(w,g&&g.length-1),p===c?p=c+1:u>y?c=w-1:p=w;0===c?a.textContent="":f&&c===f.length-1||(a.textContent=g||l(f||d,w))}d&&d.splice(0,w);k.actualWidth=u;k.rotation=m};d.prototype.unescapeEntities=
127
- function(a,f){l(this.renderer.escapes,function(d,b){f&&-1!==f.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),b))});return a};return d}()});J(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C,z,q){var l=
128
- v.charts,n=v.deg2rad,d=v.doc,a=v.isFirefox,f=v.isMS,k=v.isWebKit,G=v.noop,y=v.SVG_NS,B=v.symbolSizes,x=v.win,r=q.addEvent,m=q.attr,h=q.createElement,p=q.css,c=q.defined,w=q.destroyObjectProperties,g=q.extend,F=q.isArray,u=q.isNumber,D=q.isObject,H=q.isString,L=q.merge,P=q.pick,K=q.pInt,I=q.uniqueKey,X;v=function(){function y(c,a,g,h,f,d,u){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=
129
- this.box=this.alignedObjects=void 0;this.init(c,a,g,h,f,d,u)}y.prototype.init=function(c,g,h,f,u,b,w){var k=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),D=k.element;w||k.css(this.getStyle(f));c.appendChild(D);m(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&m(D,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=D;this.boxWrapper=k;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 10.0.0"));
130
- this.defs=this.createElement("defs").add();this.allowHTML=b;this.forExport=u;this.styledMode=w;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,h,!1);var F;a&&c.getBoundingClientRect&&(g=function(){p(c,{left:0,top:0});F=c.getBoundingClientRect();p(c,{left:Math.ceil(F.left)-F.left+"px",top:Math.ceil(F.top)-F.top+"px"})},g(),this.unSubPixelFix=r(x,"resize",g))};y.prototype.definition=function(c){return(new b([c])).addToDOM(this.defs.element)};y.prototype.getReferenceURL=
131
- function(){if((a||k)&&d.getElementsByTagName("base").length){if(!c(X)){var g=I();g=(new b([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:g},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+g+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(d.body);p(g,{position:"fixed",top:0,left:0,zIndex:9E5});var h=d.elementFromPoint(6,6);X="hitme"===(h&&h.id);
132
- d.body.removeChild(g)}if(X)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};y.prototype.getStyle=function(c){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};y.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};y.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};y.prototype.destroy=function(){var c=this.defs;this.box=
133
- null;this.boxWrapper=this.boxWrapper.destroy();w(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};y.prototype.createElement=function(c){var a=new this.Element;a.init(this,c);return a};y.prototype.getRadialAttr=function(c,a){return{cx:c[0]-c[2]/2+(a.cx||0)*c[2],cy:c[1]-c[2]/2+(a.cy||0)*c[2],r:(a.r||0)*c[2]}};y.prototype.buildText=function(c){(new z(c)).buildSVG()};y.prototype.getContrast=function(c){c=e.parse(c).rgba;
134
- c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};y.prototype.button=function(c,a,h,d,u,p,m,w,k,F){var y=this.label(c,a,h,k,void 0,void 0,F,void 0,"button"),x=this.styledMode,l=0,H=u?L(u):{},B=L({color:"#333333",cursor:"pointer",fontWeight:"normal"},H.style);delete H.style;H=b.filterUserAttributes(H);y.attr(L({padding:8,r:2},H));if(!x){H=L({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},H);p=L(H,{fill:"#e6e6e6"},b.filterUserAttributes(p||{}));var n=p.style;delete p.style;
135
- m=L(H,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(m||{}));var e=m.style;delete m.style;w=L(H,{style:{color:"#cccccc"}},b.filterUserAttributes(w||{}));var Y=w.style;delete w.style}r(y.element,f?"mouseover":"mouseenter",function(){3!==l&&y.setState(1)});r(y.element,f?"mouseout":"mouseleave",function(){3!==l&&y.setState(l)});y.setState=function(c){1!==c&&(y.state=l=c);y.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+
136
- ["normal","hover","pressed","disabled"][c||0]);x||(y.attr([H,p,m,w][c||0]),c=[B,n,e,Y][c||0],D(c)&&y.css(c))};x||y.attr(H).css(g({cursor:"default"},B));return y.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==l&&d.call(y,c)})};y.prototype.crispLine=function(a,g,h){void 0===h&&(h="round");var f=a[0],d=a[1];c(f[1])&&f[1]===d[1]&&(f[1]=d[1]=Math[h](f[1])-g%2/2);c(f[2])&&f[2]===d[2]&&(f[2]=d[2]=Math[h](f[2])+g%2/2);return a};y.prototype.path=function(c){var a=this.styledMode?
137
- {}:{fill:"none"};F(c)?a.d=c:D(c)&&g(a,c);return this.createElement("path").attr(a)};y.prototype.circle=function(c,a,g){c=D(c)?c:"undefined"===typeof c?{}:{x:c,y:a,r:g};a=this.createElement("circle");a.xSetter=a.ySetter=function(c,a,g){g.setAttribute("c"+a,c)};return a.attr(c)};y.prototype.arc=function(c,a,g,h,f,d){D(c)?(h=c,a=h.y,g=h.r,c=h.x):h={innerR:h,start:f,end:d};c=this.symbol("arc",c,a,g,g,h);c.r=g;return c};y.prototype.rect=function(c,a,g,h,f,d){f=D(c)?c.r:f;var u=this.createElement("rect");
138
- c=D(c)?c:"undefined"===typeof c?{}:{x:c,y:a,width:Math.max(g,0),height:Math.max(h,0)};this.styledMode||("undefined"!==typeof d&&(c["stroke-width"]=d,c=u.crisp(c)),c.fill="none");f&&(c.r=f);u.rSetter=function(c,a,g){u.r=c;m(g,{rx:c,ry:c})};u.rGetter=function(){return u.r||0};return u.attr(c)};y.prototype.setSize=function(c,a,g){this.width=c;this.height=a;this.boxWrapper.animate({width:c,height:a},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:P(g,
139
- !0)?void 0:0});this.alignElements()};y.prototype.g=function(c){var a=this.createElement("g");return c?a.attr({"class":"highcharts-"+c}):a};y.prototype.image=function(c,a,g,h,f,d){var p={preserveAspectRatio:"none"},m=function(c,a){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink","href",a):c.setAttribute("hc-svg-href",a)};u(a)&&(p.x=a);u(g)&&(p.y=g);u(h)&&(p.width=h);u(f)&&(p.height=f);var b=this.createElement("image").attr(p);a=function(a){m(b.element,c);d.call(b,a)};d?(m(b.element,
140
- "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),g=new x.Image,r(g,"load",a),g.src=c,g.complete&&a({})):m(b.element,c);return b};y.prototype.symbol=function(a,f,u,m,b,w){var k=this,D=/^url\((.*?)\)$/,F=D.test(a),r=!F&&(this.symbols[a]?a:"circle"),y=r&&this.symbols[r],x;if(y){"number"===typeof f&&(x=y.call(this.symbols,Math.round(f||0),Math.round(u||0),m||0,b||0,w));var H=this.path(x);k.styledMode||H.attr("fill","none");g(H,{symbolName:r||void 0,x:f,y:u,width:m,height:b});
141
- w&&g(H,w)}else if(F){var n=a.match(D)[1];var e=H=this.image(n);e.imgwidth=P(B[n]&&B[n].width,w&&w.width);e.imgheight=P(B[n]&&B[n].height,w&&w.height);var Y=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(a){e[a+"Setter"]=function(a,g){var h=this["img"+g];this[g]=a;c(h)&&(w&&"within"===w.backgroundSize&&this.width&&this.height&&(h=Math.round(h*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(g,h),
142
- this.alignByTranslate||(a=((this[g]||0)-h)/2,this.attr("width"===g?{translateX:a}:{translateY:a})))}});c(f)&&e.attr({x:f,y:u});e.isImg=!0;c(e.imgwidth)&&c(e.imgheight)?Y(e):(e.attr({width:0,height:0}),h("img",{onload:function(){var c=l[k.chartIndex];0===this.width&&(p(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this));B[n]={width:this.width,height:this.height};e.imgwidth=this.width;e.imgheight=this.height;e.element&&Y(e);this.parentNode&&this.parentNode.removeChild(this);k.imgCount--;
143
- if(!k.imgCount&&c&&!c.hasLoaded)c.onload()},src:n}),this.imgCount++)}return H};y.prototype.clipRect=function(c,a,g,h){var f=I()+"-",d=this.createElement("clipPath").attr({id:f}).add(this.defs);c=this.rect(c,a,g,h,0).add(d);c.id=f;c.clipPath=d;c.count=0;return c};y.prototype.text=function(a,g,h,f){var d={};if(f&&(this.allowHTML||!this.forExport))return this.html(a,g,h);d.x=Math.round(g||0);h&&(d.y=Math.round(h));c(a)&&(d.text=a);a=this.createElement("text").attr(d);if(!f||this.forExport&&!this.allowHTML)a.xSetter=
144
- function(c,a,g){for(var h=g.getElementsByTagName("tspan"),f=g.getAttribute(a),d=0,u;d<h.length;d++)u=h[d],u.getAttribute(a)===f&&u.setAttribute(a,c);g.setAttribute(a,c)};return a};y.prototype.fontMetrics=function(c,a){c=!this.styledMode&&/px/.test(c)||!x.getComputedStyle?c||a&&a.style&&a.style.fontSize||this.style&&this.style.fontSize:a&&t.prototype.getStyle.call(a,"font-size");c=/px/.test(c)?K(c):12;a=24>c?c+3:Math.round(1.2*c);return{h:a,b:Math.round(.8*a),f:c}};y.prototype.rotCorr=function(c,a,
145
- g){var h=c;a&&g&&(h=Math.max(h*Math.cos(a*n),4));return{x:-c/3*Math.sin(a*n),y:h}};y.prototype.pathToSegments=function(c){for(var a=[],g=[],h={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},f=0;f<c.length;f++)H(g[0])&&u(c[f])&&g.length===h[g[0].toUpperCase()]&&c.splice(f,0,g[0].replace("M","L").replace("m","l")),"string"===typeof c[f]&&(g.length&&a.push(g.slice(0)),g.length=0),g.push(c[f]);a.push(g.slice(0));return a};y.prototype.label=function(c,a,g,h,f,d,u,p,m){return new A(this,c,a,g,h,f,d,u,p,m)};y.prototype.alignElements=
146
- function(){this.alignedObjects.forEach(function(c){return c.align()})};return y}();g(v.prototype,{Element:t,SVG_NS:y,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:C,draw:G});E.registerRendererType("svg",v,!0);"";return v});J(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e,v){var I=this&&this.__extends||function(){var a=function(f,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof
147
- Array&&function(a,f){a.__proto__=f}||function(a,f){for(var d in f)f.hasOwnProperty(d)&&(a[d]=f[d])};return a(f,d)};return function(f,d){function b(){this.constructor=f}a(f,d);f.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),t=b.isFirefox,A=b.isMS,C=b.isWebKit,z=b.win,q=v.css,l=v.defined,n=v.extend,d=v.pick,a=v.pInt;return function(f){function b(){return null!==f&&f.apply(this,arguments)||this}I(b,f);b.compose=function(a){if(-1===b.composedClasses.indexOf(a)){b.composedClasses.push(a);
148
- var f=b.prototype,d=a.prototype;d.getSpanCorrection=f.getSpanCorrection;d.htmlCss=f.htmlCss;d.htmlGetBBox=f.htmlGetBBox;d.htmlUpdateTransform=f.htmlUpdateTransform;d.setSpanRotation=f.setSpanRotation}return a};b.prototype.getSpanCorrection=function(a,f,d){this.xCorr=-a*d;this.yCorr=-f};b.prototype.htmlCss=function(a){var f="SPAN"===this.element.tagName&&a&&"width"in a,b=d(f&&a.width,void 0);if(f){delete a.width;this.textWidth=b;var k=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow=
149
- "hidden");this.styles=n(this.styles,a);q(this.element,a);k&&this.htmlUpdateTransform();return this};b.prototype.htmlGetBBox=function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};b.prototype.htmlUpdateTransform=function(){if(this.added){var f=this.renderer,d=this.element,b=this.translateX||0,k=this.translateY||0,r=this.x||0,m=this.y||0,h=this.textAlign||"left",p={left:0,center:.5,right:1}[h],c=this.styles;c=c&&c.whiteSpace;q(d,{marginLeft:b,marginTop:k});
150
- !f.styledMode&&this.shadows&&this.shadows.forEach(function(c){q(c,{marginLeft:b+1,marginTop:k+1})});this.inverted&&[].forEach.call(d.childNodes,function(c){f.invertChild(c,d)});if("SPAN"===d.tagName){var w=this.rotation,g=this.textWidth&&a(this.textWidth),F=[w,h,d.innerHTML,this.textWidth,this.textAlign].join(),u=void 0;u=!1;if(g!==this.oldTextWidth){if(this.textPxLength)var D=this.textPxLength;else q(d,{width:"",whiteSpace:c||"nowrap"}),D=d.offsetWidth;(g>this.oldTextWidth||D>g)&&(/[ \-]/.test(d.textContent||
151
- d.innerText)||"ellipsis"===d.style.textOverflow)&&(q(d,{width:D>g||w?g+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=g,u=!0)}this.hasBoxWidthChanged=u;F!==this.cTT&&(u=f.fontMetrics(d.style.fontSize,d).b,!l(w)||w===(this.oldRotation||0)&&h===this.oldAlign||this.setSpanRotation(w,p,u),this.getSpanCorrection(!l(w)&&this.textPxLength||d.offsetWidth,u,p,w,h));q(d,{left:r+(this.xCorr||0)+"px",top:m+(this.yCorr||0)+"px"});this.cTT=F;this.oldRotation=w;this.oldAlign=h}}else this.alignOnAdd=
152
- !0};b.prototype.setSpanRotation=function(a,f,d){var b={},k=A&&!/Edge/.test(z.navigator.userAgent)?"-ms-transform":C?"-webkit-transform":t?"MozTransform":z.opera?"-o-transform":void 0;k&&(b[k]=b.transform="rotate("+a+"deg)",b[k+(t?"Origin":"-origin")]=b.transformOrigin=100*f+"% "+d+"px",q(this.element,b))};b.composedClasses=[];return b}(e)});J(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],
153
- function(b,e,v,E){var t=this&&this.__extends||function(){var b=function(l,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var d in f)f.hasOwnProperty(d)&&(a[d]=f[d])};return b(l,d)};return function(l,d){function a(){this.constructor=l}b(l,d);l.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),I=E.attr,C=E.createElement,z=E.extend,q=E.pick;return function(l){function n(){return null!==l&&l.apply(this,arguments)||this}
154
- t(n,l);n.compose=function(d){-1===n.composedClasses.indexOf(d)&&(n.composedClasses.push(d),d.prototype.html=n.prototype.html);return d};n.prototype.html=function(d,a,f){var k=this.createElement("span"),l=k.element,y=k.renderer,n=y.isSVG,x=function(a,f){["opacity","visibility"].forEach(function(h){a[h+"Setter"]=function(d,c,b){var g=a.div?a.div.style:f;e.prototype[h+"Setter"].call(this,d,c,b);g&&(g[c]=d)}});a.addedSetters=!0};k.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,
155
- b.setElementHTML(this.element,q(a,"")),this.textStr=a,k.doTransform=!0)};n&&x(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(a,f){"align"===f?k.alignValue=k.textAlign=a:k[f]=a;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};k.attr({text:d,x:Math.round(a),y:Math.round(f)}).css({position:"absolute"});y.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});l.style.whiteSpace="nowrap";
156
- k.css=k.htmlCss;n&&(k.add=function(a){var f=y.box.parentNode,h=[];if(this.parentGroup=a){var d=a.div;if(!d){for(;a;)h.push(a),a=a.parentGroup;h.reverse().forEach(function(c){function a(a,g){c[g]=a;"translateX"===g?u.left=a+"px":u.top=a+"px";c.doTransform=!0}var g=I(c.element,"class"),b=c.styles||{};d=c.div=c.div||C("div",g?{className:g}:void 0,{position:"absolute",left:(c.translateX||0)+"px",top:(c.translateY||0)+"px",display:c.display,opacity:c.opacity,cursor:b.cursor,pointerEvents:b.pointerEvents,
157
- visibility:c.visibility},d||f);var u=d.style;z(c,{classSetter:function(c){return function(a){this.element.setAttribute("class",a);c.className=a}}(d),on:function(){h[0].div&&k.on.apply({element:h[0].div,onEvents:c.onEvents},arguments);return c},translateXSetter:a,translateYSetter:a});c.addedSetters||x(c)})}}else d=f;d.appendChild(l);k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};n.composedClasses=[];return n}(v)});J(e,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.defaultXAxisOptions=
158
- {alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,
159
- rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,
160
- style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};b.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",
161
- formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||
162
- (b={}));return b});J(e,"Core/Foundation.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,v=b.isFunction,E=b.objectEach,t=b.removeEvent,A;(function(b){b.registerEventOptions=function(b,q){b.eventOptions=b.eventOptions||{};E(q.events,function(l,n){b.eventOptions[n]!==l&&(b.eventOptions[n]&&(t(b,n,b.eventOptions[n]),delete b.eventOptions[n]),v(l)&&(b.eventOptions[n]=l,e(b,n,l)))})}})(A||(A={}));return A});J(e,"Core/Axis/Tick.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],
163
- function(b,e,v){var I=e.deg2rad,t=v.clamp,A=v.correctFloat,C=v.defined,z=v.destroyObjectProperties,q=v.extend,l=v.fireEvent,n=v.isNumber,d=v.merge,a=v.objectEach,f=v.pick;e=function(){function k(a,f,d,b,k){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=f;this.type=d||"";this.parameters=k||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;l(this,"init");d||b||this.addLabel()}k.prototype.addLabel=function(){var a=this,d=a.axis,k=d.options,x=d.chart,r=d.categories,
164
- m=d.logarithmic,h=d.names,p=a.pos,c=f(a.options&&a.options.labels,k.labels),w=d.tickPositions,g=p===w[0],F=p===w[w.length-1],u=(!c.step||1===c.step)&&1===d.tickInterval;w=w.info;var D=a.label,H;r=this.parameters.category||(r?f(r[p],h[p],p):p);m&&n(r)&&(r=A(m.lin2log(r)));if(d.dateTime)if(w){var e=x.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&&w.higherRanks[p]||w.unitName]);var P=e.main}else n(r)&&(P=d.dateTime.getXDateFormat(r,k.dateTimeLabelFormats||{}));a.isFirst=g;a.isLast=F;var K={axis:d,
165
- chart:x,dateTimeLabelFormat:P,isFirst:g,isLast:F,pos:p,tick:a,tickPositionInfo:w,value:r};l(this,"labelFormat",K);var t=function(a){return c.formatter?c.formatter.call(a,a):c.format?(a.text=d.defaultLabelFormatter.call(a),b.format(c.format,a,x)):d.defaultLabelFormatter.call(a,a)};k=t.call(K,K);var z=e&&e.list;a.shortenLabel=z?function(){for(H=0;H<z.length;H++)if(q(K,{dateTimeLabelFormat:z[H]}),D.attr({text:t.call(K,K)}),D.getBBox().width<d.getSlotWidth(a)-2*c.padding)return;D.attr({text:""})}:void 0;
166
- u&&d._addedPlotLB&&a.moveLabel(k,c);C(D)||a.movedLabel?D&&D.textStr!==k&&!u&&(!D.textWidth||c.style.width||D.styles.width||D.css({width:null}),D.attr({text:k}),D.textPxLength=D.getBBox().width):(a.label=D=a.createLabel({x:0,y:0},k,c),a.rotation=0)};k.prototype.createLabel=function(a,f,b){var k=this.axis,r=k.chart;if(a=C(f)&&b.enabled?r.renderer.text(f,a.x,a.y,b.useHTML).add(k.labelGroup):null)r.styledMode||a.css(d(b.style)),a.textPxLength=a.getBBox().width;return a};k.prototype.destroy=function(){z(this,
167
- this.axis)};k.prototype.getPosition=function(a,f,d,b){var k=this.axis,m=k.chart,h=b&&m.oldChartHeight||m.chartHeight;a={x:a?A(k.translate(f+d,null,null,b)+k.transB):k.left+k.offset+(k.opposite?(b&&m.oldChartWidth||m.chartWidth)-k.right-k.left:0),y:a?h-k.bottom+k.offset-(k.opposite?k.height:0):A(h-k.translate(f+d,null,null,b)-k.transB)};a.y=t(a.y,-1E5,1E5);l(this,"afterGetPosition",{pos:a});return a};k.prototype.getLabelPosition=function(a,f,d,b,k,m,h,p){var c=this.axis,w=c.transA,g=c.isLinked&&c.linkedParent?
168
- c.linkedParent.reversed:c.reversed,F=c.staggerLines,u=c.tickRotCorr||{x:0,y:0},D=b||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),r={},e=k.y;C(e)||(e=0===c.side?d.rotation?-8:-d.getBBox().height:2===c.side?u.y+8:Math.cos(d.rotation*I)*(u.y-d.getBBox(!1,0).height/2));a=a+k.x+D+u.x-(m&&b?m*w*(g?-1:1):0);f=f+e-(m&&!b?m*w*(g?1:-1):0);F&&(d=h/(p||1)%F,c.opposite&&(d=F-d-1),f+=c.labelOffset/F*d);r.x=a;r.y=Math.round(f);l(this,"afterGetLabelPosition",{pos:r,tickmarkOffset:m,index:h});
169
- return r};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=function(a,f,d,b,k,m){return m.crispLine([["M",a,f],["L",a+(k?0:-d),f+(k?d:0)]],b)};k.prototype.handleOverflow=function(a){var d=this.axis,b=d.options.labels,k=a.x,r=d.chart.chartWidth,m=d.chart.spacing,h=f(d.labelLeft,Math.min(d.pos,m[3]));m=f(d.labelRight,Math.max(d.isRadial?0:d.pos+d.len,r-m[1]));var p=this.label,c=this.rotation,w={left:0,center:.5,right:1}[d.labelAlign||
170
- p.attr("align")],g=p.getBBox().width,F=d.getSlotWidth(this),u={},D=F,l=1,e;if(c||"justify"!==b.overflow)0>c&&k-w*g<h?e=Math.round(k/Math.cos(c*I)-h):0<c&&k+w*g>m&&(e=Math.round((r-k)/Math.cos(c*I)));else if(r=k+(1-w)*g,k-w*g<h?D=a.x+D*(1-w)-h:r>m&&(D=m-a.x+D*w,l=-1),D=Math.min(F,D),D<F&&"center"===d.labelAlign&&(a.x+=l*(F-D-w*(F-Math.min(g,D)))),g>D||d.autoRotation&&(p.styles||{}).width)e=D;e&&(this.shortenLabel?this.shortenLabel():(u.width=Math.floor(e)+"px",(b.style||{}).textOverflow||(u.textOverflow=
171
- "ellipsis"),p.css(u)))};k.prototype.moveLabel=function(d,f){var b=this,k=b.label,r=b.axis,m=r.reversed,h=!1;k&&k.textStr===d?(b.movedLabel=k,h=!0,delete b.label):a(r.ticks,function(c){h||c.isNew||c===b||!c.label||c.label.textStr!==d||(b.movedLabel=c.label,h=!0,c.labelPos=b.movedLabel.xy,delete c.label)});if(!h&&(b.labelPos||k)){var p=b.labelPos||k.xy;k=r.horiz?m?0:r.width+r.left:p.x;r=r.horiz?p.y:m?r.width+r.left:0;b.movedLabel=b.createLabel({x:k,y:r},d,f);b.movedLabel&&b.movedLabel.attr({opacity:0})}};
172
- k.prototype.render=function(a,d,b){var k=this.axis,r=k.horiz,m=this.pos,h=f(this.tickmarkOffset,k.tickmarkOffset);m=this.getPosition(r,m,h,d);h=m.x;var p=m.y;k=r&&h===k.pos+k.len||!r&&p===k.pos?-1:1;r=f(b,this.label&&this.label.newOpacity,1);b=f(b,1);this.isActive=!0;this.renderGridLine(d,b,k);this.renderMark(m,b,k);this.renderLabel(m,d,r,a);this.isNew=!1;l(this,"afterRender")};k.prototype.renderGridLine=function(a,d,b){var k=this.axis,r=k.options,m={},h=this.pos,p=this.type,c=f(this.tickmarkOffset,
173
- k.tickmarkOffset),w=k.chart.renderer,g=this.gridLine,F=r.gridLineWidth,u=r.gridLineColor,D=r.gridLineDashStyle;"minor"===this.type&&(F=r.minorGridLineWidth,u=r.minorGridLineColor,D=r.minorGridLineDashStyle);g||(k.chart.styledMode||(m.stroke=u,m["stroke-width"]=F||0,m.dashstyle=D),p||(m.zIndex=1),a&&(d=0),this.gridLine=g=w.path().attr(m).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(k.gridGroup));if(g&&(b=k.getPlotLinePath({value:h+c,lineWidth:g.strokeWidth()*b,force:"pass",old:a})))g[a||this.isNew?
174
- "attr":"animate"]({d:b,opacity:d})};k.prototype.renderMark=function(a,d,b){var k=this.axis,r=k.options,m=k.chart.renderer,h=this.type,p=k.tickSize(h?h+"Tick":"tick"),c=a.x;a=a.y;var w=f(r["minor"!==h?"tickWidth":"minorTickWidth"],!h&&k.isXAxis?1:0);r=r["minor"!==h?"tickColor":"minorTickColor"];var g=this.mark,F=!g;p&&(k.opposite&&(p[0]=-p[0]),g||(this.mark=g=m.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||g.attr({stroke:r,"stroke-width":w})),g[F?"attr":"animate"]({d:this.getMarkPath(c,
175
- a,p[0],g.strokeWidth()*b,k.horiz,m),opacity:d}))};k.prototype.renderLabel=function(a,d,b,k){var r=this.axis,m=r.horiz,h=r.options,p=this.label,c=h.labels,w=c.step;r=f(this.tickmarkOffset,r.tickmarkOffset);var g=a.x;a=a.y;var F=!0;p&&n(g)&&(p.xy=a=this.getLabelPosition(g,a,p,m,c,r,k,w),this.isFirst&&!this.isLast&&!h.showFirstLabel||this.isLast&&!this.isFirst&&!h.showLastLabel?F=!1:!m||c.step||c.rotation||d||0===b||this.handleOverflow(a),w&&k%w&&(F=!1),F&&n(a.y)?(a.opacity=b,p[this.isNewLabel?"attr":
176
- "animate"](a),this.isNewLabel=!1):(p.attr("y",-9999),this.isNewLabel=!0))};k.prototype.replaceMovedLabel=function(){var a=this.label,d=this.axis,f=d.reversed;if(a&&!this.isNew){var b=d.horiz?f?d.left:d.width+d.left:a.xy.x;f=d.horiz?a.xy.y:f?d.width+d.top:d.top;a.animate({x:b,y:f,opacity:0},void 0,a.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return e});J(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],
177
- e["Core/Color/Color.js"],e["Core/DefaultOptions.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C,z){var q=b.animObject,l=E.defaultOptions,n=t.registerEventOptions,d=A.deg2rad,a=z.arrayMax,f=z.arrayMin,k=z.clamp,G=z.correctFloat,y=z.defined,B=z.destroyObjectProperties,x=z.erase,r=z.error,m=z.extend,h=z.fireEvent,p=z.getMagnitude,c=z.isArray,w=z.isNumber,g=z.isString,F=z.merge,u=z.normalizeTickInterval,D=z.objectEach,H=z.pick,L=
178
- z.relativeLength,P=z.removeEvent,K=z.splat,S=z.syncTimeout;b=function(){function b(c,a){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=
179
- this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(c,a)}b.prototype.init=function(c,a){var g=a.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!g:g;this.isXAxis=g;this.coll=this.coll||(g?"xAxis":"yAxis");
180
- h(this,"init",{userOptions:a});this.opposite=H(a.opposite,this.opposite);this.side=H(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var d=this.options,f=d.labels,b=d.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=H(d.reversed,this.reversed);this.visible=d.visible;this.zoomEnabled=d.zoomEnabled;this.hasNames="category"===b||!0===d.categories;this.categories=d.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups=
181
- {};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=y(d.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.min=this.max=null;a=H(d.crosshair,K(c.options.tooltip.crosshairs)[g?0:1]);this.crosshair=!0===a?{}:a;-1===c.axes.indexOf(this)&&(g?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),c[this.coll].push(this));this.series=
182
- this.series||[];c.inverted&&!this.isZAxis&&g&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=w(f.rotation)?f.rotation:void 0;n(this,d);h(this,"afterInit")};b.prototype.setOptions=function(c){this.options=F(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],F(l[this.coll],c));h(this,"afterSetOptions",{userOptions:c})};b.prototype.defaultLabelFormatter=
183
- function(c){var a=this.axis;c=this.chart.numberFormatter;var g=w(this.value)?this.value:NaN,h=a.chart.time,d=this.dateTimeLabelFormat,f=l.lang,b=f.numericSymbols;f=f.numericSymbolMagnitude||1E3;var u=a.logarithmic?Math.abs(g):a.tickInterval,p=b&&b.length;if(a.categories)var m=""+this.value;else if(d)m=h.dateFormat(d,g);else if(p&&1E3<=u)for(;p--&&"undefined"===typeof m;)a=Math.pow(f,p+1),u>=a&&0===10*g%a&&null!==b[p]&&0!==g&&(m=c(g/a,-1)+b[p]);"undefined"===typeof m&&(m=1E4<=Math.abs(g)?c(g,-1):c(g,
184
- -1,void 0,""));return m};b.prototype.getSeriesExtremes=function(){var c=this,a=c.chart,g;h(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(h){if(h.visible||!a.options.chart.ignoreHiddenSeries){var d=h.options,f=d.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=f&&(f=null);if(c.isXAxis){if(d=h.xData,d.length){d=c.logarithmic?d.filter(c.validatePositiveValue):
185
- d;g=h.getXExtremes(d);var b=g.min;var u=g.max;w(b)||b instanceof Date||(d=d.filter(w),g=h.getXExtremes(d),b=g.min,u=g.max);d.length&&(c.dataMin=Math.min(H(c.dataMin,b),b),c.dataMax=Math.max(H(c.dataMax,u),u))}}else if(h=h.applyExtremes(),w(h.dataMin)&&(b=h.dataMin,c.dataMin=Math.min(H(c.dataMin,b),b)),w(h.dataMax)&&(u=h.dataMax,c.dataMax=Math.max(H(c.dataMax,u),u)),y(f)&&(c.threshold=f),!d.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});h(this,"afterGetSeriesExtremes")};b.prototype.translate=
186
- function(c,a,g,h,d,f){var b=this.linkedParent||this,u=h&&b.old?b.old.min:b.min,p=b.minPixelPadding;d=(b.isOrdinal||b.brokenAxis&&b.brokenAxis.hasBreaks||b.logarithmic&&d)&&b.lin2val;var m=1,k=0;h=h&&b.old?b.old.transA:b.transA;h||(h=b.transA);g&&(m*=-1,k=b.len);b.reversed&&(m*=-1,k-=m*(b.sector||b.len));a?(f=(c*m+k-p)/h+u,d&&(f=b.lin2val(f))):(d&&(c=b.val2lin(c)),c=m*(c-u)*h,f=w(u)?(b.isRadial?c:G(c))+k+m*p+(w(f)?h*f:0):void 0);return f};b.prototype.toPixels=function(c,a){return this.translate(c,
187
- !1,!this.horiz,null,!0)+(a?0:this.pos)};b.prototype.toValue=function(c,a){return this.translate(c-(a?0:this.pos),!0,!this.horiz,null,!0)};b.prototype.getPlotLinePath=function(c){function a(c,a,g){if("pass"!==l&&c<a||c>g)l?c=k(c,a,g):L=!0;return c}var g=this,d=g.chart,f=g.left,b=g.top,u=c.old,p=c.value,m=c.lineWidth,D=u&&d.oldChartHeight||d.chartHeight,F=u&&d.oldChartWidth||d.chartWidth,r=g.transB,e=c.translatedValue,l=c.force,n,y,x,B,L;c={value:p,lineWidth:m,old:u,force:l,acrossPanes:c.acrossPanes,
188
- translatedValue:e};h(this,"getPlotLinePath",c,function(c){e=H(e,g.translate(p,null,null,u));e=k(e,-1E5,1E5);n=x=Math.round(e+r);y=B=Math.round(D-e-r);w(e)?g.horiz?(y=b,B=D-g.bottom,n=x=a(n,f,f+g.width)):(n=f,x=F-g.right,y=B=a(y,b,b+g.height)):(L=!0,l=!1);c.path=L&&!l?null:d.renderer.crispLine([["M",n,y],["L",x,B]],m||1)});return c.path};b.prototype.getLinearTickPositions=function(c,a,g){var h=G(Math.floor(a/c)*c);g=G(Math.ceil(g/c)*c);var d=[],f;G(h+c)===h&&(f=20);if(this.single)return[a];for(a=h;a<=
189
- g;){d.push(a);a=G(a+c,f);if(a===b)break;var b=a}return d};b.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?H(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};b.prototype.getMinorTickPositions=function(){var c=this.options,a=this.tickPositions,g=this.minorTickInterval,h=this.pointRangePadding||0,d=this.min-h;h=this.max+h;var f=h-d,b=[];if(f&&f/g<this.len/3){var u=this.logarithmic;if(u)this.paddedTicks.forEach(function(c,a,h){a&&b.push.apply(b,
190
- u.getLogTickPositions(g,h[a-1],h[a],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())b=b.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(g),d,h,c.startOfWeek));else for(c=d+(a[0]-d)%g;c<=h&&c!==b[0];c+=g)b.push(c)}0!==b.length&&this.trimTicks(b);return b};b.prototype.adjustForMinRange=function(){var c=this.options,g=this.logarithmic,h=this.min,d=this.max,b=0,u,p,m,k;this.isXAxis&&"undefined"===typeof this.minRange&&!g&&(y(c.min)||y(c.max)||y(c.floor)||y(c.ceiling)?
191
- this.minRange=null:(this.series.forEach(function(c){m=c.xData;k=c.xIncrement?1:m.length-1;if(1<m.length)for(u=k;0<u;u--)if(p=m[u]-m[u-1],!b||p<b)b=p}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(d-h<this.minRange){var w=this.dataMax-this.dataMin>=this.minRange;var D=this.minRange;var F=(D-d+h)/2;F=[h-F,H(c.min,h-F)];w&&(F[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);h=a(F);d=[h+D,H(c.max,h+D)];w&&(d[2]=g?g.log2lin(this.dataMax):this.dataMax);d=f(d);d-h<D&&
192
- (F[0]=d-D,F[1]=H(c.min,d-D),h=a(F))}this.min=h;this.max=d};b.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(a){var g=a.closestPointRange,h=a.visible||!a.chart.options.chart.ignoreHiddenSeries;!a.noSharedTooltip&&y(g)&&h&&(c=y(c)?Math.min(c,g):g)});return c};b.prototype.nameToX=function(a){var g=c(this.options.categories),h=g?this.categories:this.names,d=a.options.x;a.series.requireSorting=!1;y(d)||(d=this.options.uniqueNames&&h?g?h.indexOf(a.name):H(h.keys[a.name],
193
- -1):a.series.autoIncrement());if(-1===d){if(!g&&h)var f=h.length}else f=d;"undefined"!==typeof f&&(this.names[f]=a.name,this.names.keys[a.name]=f);return f};b.prototype.updateNames=function(){var c=this,a=this.names;0<a.length&&(Object.keys(a.keys).forEach(function(c){delete a.keys[c]}),a.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)c.max=Math.max(c.max,a.xData.length-1),a.processData(),a.generatePoints();a.data.forEach(function(g,
194
- h){if(g&&g.options&&"undefined"!==typeof g.name){var d=c.nameToX(g);"undefined"!==typeof d&&d!==g.x&&(g.x=d,a.xData[h]=d)}})}))};b.prototype.setAxisTranslation=function(){var c=this,a=c.max-c.min,d=c.linkedParent,f=!!c.categories,b=c.isXAxis,u=c.axisPointRange||0,m=0,p=0,k=c.transA;if(b||f||u){var w=c.getClosest();d?(m=d.minPointOffset,p=d.pointRangePadding):c.series.forEach(function(a){var h=f?1:b?H(a.options.pointRange,w,0):c.axisPointRange||0,d=a.options.pointPlacement;u=Math.max(u,h);if(!c.single||
195
- f)a=a.is("xrange")?!b:b,m=Math.max(m,a&&g(d)?0:h/2),p=Math.max(p,a&&"on"===d?0:h)});d=c.ordinal&&c.ordinal.slope&&w?c.ordinal.slope/w:1;c.minPointOffset=m*=d;c.pointRangePadding=p*=d;c.pointRange=Math.min(u,c.single&&f?1:a);b&&(c.closestPointRange=w)}c.translationSlope=c.transA=k=c.staticScale||c.len/(a+p||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=k*m;h(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=function(c){var a=
196
- this.chart,g=this.logarithmic,d=this.options,f=this.isXAxis,b=this.isLinked,m=d.tickPixelInterval,k=this.categories,D=this.softThreshold,F=d.maxPadding,e=d.minPadding,l=w(d.tickInterval)&&0<=d.tickInterval?d.tickInterval:void 0,n=w(this.threshold)?this.threshold:null;this.dateTime||k||b||this.getTickAmount();var x=H(this.userMin,d.min);var B=H(this.userMax,d.max);if(b){this.linkedParent=a[this.coll][d.linkedTo];var L=this.linkedParent.getExtremes();this.min=H(L.min,L.dataMin);this.max=H(L.max,L.dataMax);
197
- d.type!==this.linkedParent.options.type&&r(11,1,a)}else{if(D&&y(n))if(this.dataMin>=n)L=n,e=0;else if(this.dataMax<=n){var q=n;F=0}this.min=H(x,L,this.dataMin);this.max=H(B,q,this.dataMax)}g&&(this.positiveValuesOnly&&!c&&0>=Math.min(this.min,H(this.dataMin,this.min))&&r(10,1,a),this.min=G(g.log2lin(this.min),16),this.max=G(g.log2lin(this.max),16));this.range&&y(this.max)&&(this.userMin=this.min=x=Math.max(this.dataMin,this.minFromRange()),this.userMax=B=this.max,this.range=null);h(this,"foundExtremes");
198
- this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(k||this.axisPointRange||this.stacking&&this.stacking.usePercentage||b)&&y(this.min)&&y(this.max)&&(a=this.max-this.min)&&(!y(x)&&e&&(this.min-=a*e),!y(B)&&F&&(this.max+=a*F));w(this.userMin)||(w(d.softMin)&&d.softMin<this.min&&(this.min=x=d.softMin),w(d.floor)&&(this.min=Math.max(this.min,d.floor)));w(this.userMax)||(w(d.softMax)&&d.softMax>this.max&&(this.max=B=d.softMax),w(d.ceiling)&&(this.max=Math.min(this.max,d.ceiling)));D&&
199
- y(this.dataMin)&&(n=n||0,!y(x)&&this.min<n&&this.dataMin>=n?this.min=this.options.minRange?Math.min(n,this.max-this.minRange):n:!y(B)&&this.max>n&&this.dataMax<=n&&(this.max=this.options.minRange?Math.max(n,this.min+this.minRange):n));w(this.min)&&w(this.max)&&!this.chart.polar&&this.min>this.max&&(y(this.options.min)?this.max=this.min:y(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:b&&this.linkedParent&&
200
- !l&&m===this.linkedParent.options.tickPixelInterval?l=this.linkedParent.tickInterval:H(l,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(this.max-this.min)*m/Math.max(this.len,m));if(f&&!c){var Y=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(Y)});h(this,"postProcessData",{hasExtemesChanged:Y})}this.setAxisTranslation();h(this,"initialAxisTranslation");
201
- this.pointRange&&!l&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));c=H(d.minTickInterval,this.dateTime&&!this.series.some(function(c){return c.noSharedTooltip})?this.closestPointRange:0);!l&&this.tickInterval<c&&(this.tickInterval=c);this.dateTime||this.logarithmic||l||(this.tickInterval=u(this.tickInterval,void 0,p(this.tickInterval),H(d.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};
202
- b.prototype.setTickPositions=function(){var c=this.options,a=c.tickPositions,g=this.getMinorTickInterval(),d=this.hasVerticalPanning(),f="colorAxis"===this.coll,b=(f||!d)&&c.startOnTick;d=(f||!d)&&c.endOnTick;f=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===g&&this.tickInterval?this.tickInterval/5:g;this.single=this.min===this.max&&y(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==
203
- c.allowDecimals);this.tickPositions=g=a&&a.slice();!g&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?g=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,
204
- this.max):(g=[this.min,this.max],r(19,!1,this.chart)),g.length>this.len&&(g=[g[0],g.pop()],g[0]===g[1]&&(g.length=1)),this.tickPositions=g,f&&(f=f.apply(this,[this.min,this.max])))&&(this.tickPositions=g=f);this.paddedTicks=g.slice(0);this.trimTicks(g,b,d);this.isLinked||(this.single&&2>g.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),a||f||this.adjustTickAmount());h(this,"afterSetTickPositions")};
205
- b.prototype.trimTicks=function(c,a,g){var d=c[0],f=c[c.length-1],b=!this.isOrdinal&&this.minPointOffset||0;h(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==d)this.min=d;else for(;this.min-b>c[0];)c.shift();if(g)this.max=f;else for(;this.max+b<c[c.length-1];)c.pop();0===c.length&&y(d)&&!this.options.tickPositions&&c.push((f+d)/2)}};b.prototype.alignToOthers=function(){var c=this,a=[this],g=c.options,d="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,h=[],f;c.thresholdAlignment=
206
- void 0;if((!1!==this.chart.options.chart.alignTicks&&g.alignTicks||d)&&!1!==g.startOnTick&&!1!==g.endOnTick&&!c.logarithmic){var b=function(c){var a=c.options;return[c.horiz?a.left:a.top,a.width,a.height,a.pane].join()},u=b(this);this.chart[this.coll].forEach(function(g){var d=g.series;d.length&&d.some(function(c){return c.visible})&&g!==c&&b(g)===u&&(f=!0,a.push(g))})}if(f&&d){a.forEach(function(a){a=a.getThresholdAlignment(c);w(a)&&h.push(a)});var m=1<h.length?h.reduce(function(c,a){return c+a},
207
- 0)/h.length:void 0;a.forEach(function(c){c.thresholdAlignment=m})}return f};b.prototype.getThresholdAlignment=function(c){(!w(this.dataMin)||this!==c&&this.series.some(function(c){return c.isDirty||c.isDirtyData}))&&this.getSeriesExtremes();if(w(this.threshold))return c=k((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(c=1-c),c};b.prototype.getTickAmount=function(){var c=this.options,a=c.tickPixelInterval,g=c.tickAmount;!y(c.tickInterval)&&!g&&
208
- this.len<a&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(g=2);!g&&this.alignToOthers()&&(g=Math.ceil(this.len/a)+1);4>g&&(this.finalTickAmt=g,g=5);this.tickAmount=g};b.prototype.adjustTickAmount=function(){var c=this,a=c.finalTickAmt,g=c.max,d=c.min,h=c.options,f=c.tickPositions,b=c.tickAmount,u=c.thresholdAlignment,m=f&&f.length,p=H(c.threshold,c.softThreshold?0:null);var k=c.tickInterval;if(w(u)){var D=.5>u?Math.ceil(u*(b-1)):Math.floor(u*(b-1));h.reversed&&(D=b-1-D)}if(c.hasData()&&
209
- w(d)&&w(g)){u=function(){c.transA*=(m-1)/(b-1);c.min=h.startOnTick?f[0]:Math.min(d,f[0]);c.max=h.endOnTick?f[f.length-1]:Math.max(g,f[f.length-1])};if(w(D)&&w(c.threshold)){for(;f[D]!==p||f.length!==b||f[0]>d||f[f.length-1]<g;){f.length=0;for(f.push(c.threshold);f.length<b;)void 0===f[D]||f[D]>c.threshold?f.unshift(G(f[0]-k)):f.push(G(f[f.length-1]+k));if(k>8*c.tickInterval)break;k*=2}u()}else if(m<b){for(;f.length<b;)f.length%2||d===p?f.push(G(f[f.length-1]+k)):f.unshift(G(f[0]-k));u()}else m>b&&
210
- (c.tickInterval*=2,c.setTickPositions());if(y(a)){for(k=p=f.length;k--;)(3===a&&1===k%2||2>=a&&0<k&&k<p-1)&&f.splice(k,1);c.finalTickAmt=void 0}}};b.prototype.setScale=function(){var c=!1,a=!1;this.series.forEach(function(g){c=c||g.isDirtyData||g.isDirty;a=a||g.xAxis&&g.xAxis.isDirty||!1});this.setAxisSize();var g=this.len!==(this.old&&this.old.len);g||c||a||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?
211
- (this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=g||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);h(this,"afterSetScale")};b.prototype.setExtremes=function(c,a,g,d,f){var b=this,u=b.chart;g=H(g,!0);b.series.forEach(function(c){delete c.kdTree});f=m(f,{min:c,max:a});h(b,"setExtremes",f,
212
- function(){b.userMin=c;b.userMax=a;b.eventArgs=f;g&&u.redraw(d)})};b.prototype.zoom=function(c,a){var g=this,d=this.dataMin,f=this.dataMax,b=this.options,u=Math.min(d,H(b.min,d)),m=Math.max(f,H(b.max,f));c={newMin:c,newMax:a};h(this,"zoom",c,function(c){var a=c.newMin,h=c.newMax;if(a!==g.min||h!==g.max)g.allowZoomOutside||(y(d)&&(a<u&&(a=u),a>m&&(a=m)),y(f)&&(h<u&&(h=u),h>m&&(h=m))),g.displayBtn="undefined"!==typeof a||"undefined"!==typeof h,g.setExtremes(a,h,!1,void 0,{trigger:"zoom"});c.zoomed=
213
- !0});return c.zoomed};b.prototype.setAxisSize=function(){var c=this.chart,a=this.options,g=a.offsets||[0,0,0,0],d=this.horiz,h=this.width=Math.round(L(H(a.width,c.plotWidth-g[3]+g[1]),c.plotWidth)),f=this.height=Math.round(L(H(a.height,c.plotHeight-g[0]+g[2]),c.plotHeight)),b=this.top=Math.round(L(H(a.top,c.plotTop+g[0]),c.plotHeight,c.plotTop));a=this.left=Math.round(L(H(a.left,c.plotLeft+g[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-f-b;this.right=c.chartWidth-h-a;this.len=Math.max(d?
214
- h:f,0);this.pos=d?a:b};b.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?G(c.lin2log(this.min)):this.min,max:c?G(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(c){var a=this.logarithmic,g=a?a.lin2log(this.min):this.min;a=a?a.lin2log(this.max):this.max;null===c||-Infinity===c?c=g:Infinity===c?c=a:g>c?c=g:a<c&&(c=a);return this.translate(c,0,1,0,1)};b.prototype.autoLabelAlign=
215
- function(c){var a=(H(c,0)-90*this.side+720)%360;c={align:"center"};h(this,"autoLabelAlign",c,function(c){15<a&&165>a?c.align="right":195<a&&345>a&&(c.align="left")});return c.align};b.prototype.tickSize=function(c){var a=this.options,g=H(a["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),d=a["tick"===c?"tickLength":"minorTickLength"];if(g&&d){"inside"===a[c+"Position"]&&(d=-d);var f=[d,g]}c={tickSize:f};h(this,"afterTickSize",c);return c.tickSize};b.prototype.labelMetrics=
216
- function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[c]&&this.ticks[c].label)};b.prototype.unsquish=function(){var c=this.options.labels,a=this.horiz,g=this.tickInterval,h=this.len/(((this.categories?1:0)+this.max-this.min)/g),f=c.rotation,b=this.labelMetrics(),u=Math.max(this.max-this.min,0),m=function(c){var a=c/(h||1);a=1<a?Math.ceil(a):1;a*g>u&&Infinity!==c&&Infinity!==h&&u&&(a=Math.ceil(u/g));return G(a*
217
- g)},p=g,k,D,F=Number.MAX_VALUE;if(a){if(!c.staggerLines&&!c.step)if(w(f))var e=[f];else h<c.autoRotationLimit&&(e=c.autoRotation);e&&e.forEach(function(c){if(c===f||c&&-90<=c&&90>=c){D=m(Math.abs(b.h/Math.sin(d*c)));var a=D+Math.abs(c/360);a<F&&(F=a,k=c,p=D)}})}else c.step||(p=m(b.h));this.autoRotation=e;this.labelRotation=H(k,w(f)?f:0);return p};b.prototype.getSlotWidth=function(c){var a=this.chart,g=this.horiz,d=this.options.labels,h=Math.max(this.tickPositions.length-(this.categories?0:1),1),f=
218
- a.margin[3];if(c&&w(c.slotWidth))return c.slotWidth;if(g&&2>d.step)return d.rotation?0:(this.staggerLines||1)*this.len/h;if(!g){c=d.style.width;if(void 0!==c)return parseInt(String(c),10);if(f)return f-a.spacing[3]}return.33*a.chartWidth};b.prototype.renderUnsquish=function(){var c=this.chart,a=c.renderer,d=this.tickPositions,h=this.ticks,f=this.options.labels,b=f.style,u=this.horiz,m=this.getSlotWidth(),p=Math.max(1,Math.round(m-2*f.padding)),k={},w=this.labelMetrics(),D=b.textOverflow,F=0;g(f.rotation)||
219
- (k.rotation=f.rotation||0);d.forEach(function(c){c=h[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>F&&(F=c.label.textPxLength)});this.maxLabelLength=F;if(this.autoRotation)F>p&&F>w.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(m){var e=p;if(!D){var l="clip";for(p=d.length;!u&&p--;){var r=d[p];if(r=h[r].label)r.styles&&"ellipsis"===r.styles.textOverflow?r.css({textOverflow:"clip"}):r.textPxLength>m&&r.css({width:m+"px"}),r.getBBox().height>this.len/d.length-
220
- (w.h-w.f)&&(r.specificTextOverflow="ellipsis")}}}k.rotation&&(e=F>.5*c.chartHeight?.33*c.chartHeight:F,D||(l="ellipsis"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))k.align=this.labelAlign;d.forEach(function(c){var a=(c=h[c])&&c.label,g=b.width,d={};a&&(a.attr(k),c.shortenLabel?c.shortenLabel():e&&!g&&"nowrap"!==b.whiteSpace&&(e<a.textPxLength||"SPAN"===a.element.tagName)?(d.width=e+"px",D||(d.textOverflow=a.specificTextOverflow||l),a.css(d)):a.styles&&a.styles.width&&!d.width&&
221
- !g&&a.css({width:null}),delete a.specificTextOverflow,c.rotation=k.rotation)},this);this.tickRotCorr=a.rotCorr(w.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||this.options.showEmpty&&y(this.min)&&y(this.max)};b.prototype.addTitle=function(c){var a=this.chart.renderer,g=this.horiz,d=this.opposite,h=this.options.title,f=this.chart.styledMode,b;this.axisTitle||((b=h.textAlign)||(b=(g?{low:"left",middle:"center",high:"right"}:
222
- {low:d?"right":"left",middle:"center",high:d?"left":"right"})[h.align]),this.axisTitle=a.text(h.text||"",0,0,h.useHTML).attr({zIndex:7,rotation:h.rotation,align:b}).addClass("highcharts-axis-title"),f||this.axisTitle.css(F(h.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);f||h.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};b.prototype.generateTick=function(c){var a=this.ticks;a[c]?a[c].addLabel():a[c]=new C(this,c)};b.prototype.getOffset=
223
- function(){var c=this,a=this,g=a.chart,d=a.horiz,f=a.options,b=a.side,u=a.ticks,m=a.tickPositions,p=a.coll,k=a.axisParent,w=g.renderer,F=g.inverted&&!a.isZAxis?[1,0,3,2][b]:b,e=a.hasData(),r=f.title,l=f.labels,n=g.axisOffset;g=g.clipOffset;var x=[-1,1,1,-1][b],B=f.className,L,G=0,q=0,P=0;a.showAxis=L=e||f.showEmpty;a.staggerLines=a.horiz&&l.staggerLines||void 0;if(!a.axisGroup){var K=function(a,g,d){return w.g(a).attr({zIndex:d}).addClass("highcharts-"+p.toLowerCase()+g+" "+(c.isRadial?"highcharts-radial-axis"+
224
- g+" ":"")+(B||"")).add(k)};a.gridGroup=K("grid","-grid",f.gridZIndex);a.axisGroup=K("axis","",f.zIndex);a.labelGroup=K("axis-labels","-labels",l.zIndex)}e||a.isLinked?(m.forEach(function(c){a.generateTick(c)}),a.renderUnsquish(),a.reserveSpaceDefault=0===b||2===b||{1:"left",3:"right"}[b]===a.labelAlign,H(l.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&m.forEach(function(c){P=Math.max(u[c].getLabelSize(),P)}),a.staggerLines&&(P*=a.staggerLines),a.labelOffset=P*(a.opposite?-1:
225
- 1)):D(u,function(c,a){c.destroy();delete u[a]});if(r&&r.text&&!1!==r.enabled&&(a.addTitle(L),L&&!1!==r.reserveSpace)){a.titleOffset=G=a.axisTitle.getBBox()[d?"height":"width"];var t=r.offset;q=y(t)?0:H(r.margin,d?5:10)}a.renderLine();a.offset=x*H(f.offset,n[b]?n[b]+(f.margin||0):0);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};r=0===b?-a.labelMetrics().h:2===b?a.tickRotCorr.y:0;e=Math.abs(P)+q;P&&(e=e-r+x*(d?H(l.y,a.tickRotCorr.y+8*x):l.x));a.axisTitleMargin=H(t,e);a.getMaxLabelDimensions&&(a.maxLabelDimensions=
226
- a.getMaxLabelDimensions(u,m));"colorAxis"!==p&&(d=this.tickSize("tick"),n[b]=Math.max(n[b],(a.axisTitleMargin||0)+G+x*a.offset,e,m&&m.length&&d?d[0]+x*a.offset:0),f=!a.axisLine||f.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2),g[F]=Math.max(g[F],f));h(this,"afterGetOffset")};b.prototype.getLinePath=function(c){var a=this.chart,g=this.opposite,d=this.offset,h=this.horiz,f=this.left+(g?this.width:0)+d;d=a.chartHeight-this.bottom-(g?this.height:0)+d;g&&(c*=-1);return a.renderer.crispLine([["M",h?
227
- this.left:f,h?d:this.top],["L",h?a.chartWidth-this.right:f,h?d:a.chartHeight-this.bottom]],c)};b.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var c=this.horiz,a=this.left,g=this.top,d=this.len,f=this.options.title,b=c?a:g,u=this.opposite,m=
228
- this.offset,p=f.x,k=f.y,w=this.axisTitle,D=this.chart.renderer.fontMetrics(f.style.fontSize,w);w=Math.max(w.getBBox(null,0).height-D.h-1,0);d={low:b+(c?0:d),middle:b+d/2,high:b+(c?d:0)}[f.align];a=(c?g+this.height:a)+(c?1:-1)*(u?-1:1)*this.axisTitleMargin+[-w,w,D.f,-w][this.side];c={x:c?d+p:a+(u?this.width:0)+m+p,y:c?a+k-(u?this.height:0)+m:d+k};h(this,"afterGetTitlePosition",{titlePosition:c});return c};b.prototype.renderMinorTick=function(c,a){var g=this.minorTicks;g[c]||(g[c]=new C(this,c,"minor"));
229
- a&&g[c].isNew&&g[c].render(null,!0);g[c].render(null,!1,1)};b.prototype.renderTick=function(c,a,g){var d=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)d[c]||(d[c]=new C(this,c)),g&&d[c].isNew&&d[c].render(a,!0,-1),d[c].render(a)};b.prototype.render=function(){var c=this,a=c.chart,g=c.logarithmic,d=c.options,f=c.isLinked,b=c.tickPositions,u=c.axisTitle,m=c.ticks,p=c.minorTicks,k=c.alternateBands,F=d.stackLabels,e=d.alternateGridColor,r=c.tickmarkOffset,l=c.axisLine,
230
- n=c.showAxis,H=q(a.renderer.globalAnimation),x,y;c.labelEdge.length=0;c.overlap=!1;[m,p,k].forEach(function(c){D(c,function(c){c.isActive=!1})});if(c.hasData()||f){var B=c.chart.hasRendered&&c.old&&w(c.old.min);c.minorTickInterval&&!c.categories&&c.getMinorTickPositions().forEach(function(a){c.renderMinorTick(a,B)});b.length&&(b.forEach(function(a,g){c.renderTick(a,g,B)}),r&&(0===c.min||c.single)&&(m[-1]||(m[-1]=new C(c,-1,null,!0)),m[-1].render(-1)));e&&b.forEach(function(d,h){y="undefined"!==typeof b[h+
231
- 1]?b[h+1]+r:c.max-r;0===h%2&&d<c.max&&y<=c.max+(a.polar?-r:r)&&(k[d]||(k[d]=new A.PlotLineOrBand(c)),x=d+r,k[d].options={from:g?g.lin2log(x):x,to:g?g.lin2log(y):y,color:e,className:"highcharts-alternate-grid"},k[d].render(),k[d].isActive=!0)});c._addedPlotLB||(c._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||[]).forEach(function(a){c.addPlotBandOrLine(a)}))}[m,p,k].forEach(function(c){var g=[],d=H.duration;D(c,function(c,a){c.isActive||(c.render(a,!1,0),c.isActive=!1,g.push(a))});S(function(){for(var a=
232
- g.length;a--;)c[g[a]]&&!c[g[a]].isActive&&(c[g[a]].destroy(),delete c[g[a]])},c!==k&&a.hasRendered&&d?d:0)});l&&(l[l.isPlaced?"animate":"attr"]({d:this.getLinePath(l.strokeWidth())}),l.isPlaced=!0,l[n?"show":"hide"](n));u&&n&&(d=c.getTitlePosition(),w(d.y)?(u[u.isNew?"attr":"animate"](d),u.isNew=!1):(u.attr("y",-9999),u.isNew=!0));F&&F.enabled&&c.stacking&&c.stacking.renderStackTotals();c.old={len:c.len,max:c.max,min:c.min,transA:c.transA,userMax:c.userMax,userMin:c.userMin};c.isDirty=!1;h(this,"afterRender")};
233
- b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=function(c){var a=this,g=a.plotLinesAndBands,d=this.eventOptions;h(this,"destroy",{keepEvents:c});c||P(a);[a.ticks,a.minorTicks,a.alternateBands].forEach(function(c){B(c)});if(g)for(c=g.length;c--;)g[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){a[c]&&
234
- (a[c]=a[c].destroy())});for(var f in a.plotLinesAndBandsGroups)a.plotLinesAndBandsGroups[f]=a.plotLinesAndBandsGroups[f].destroy();D(a,function(c,g){-1===a.getKeepProps().indexOf(g)&&delete a[g]});this.eventOptions=d};b.prototype.drawCrosshair=function(c,a){var g=this.crosshair,d=H(g&&g.snap,!0),f=this.chart,b,u=this.cross;h(this,"drawCrosshair",{e:c,point:a});c||(c=this.cross&&this.cross.e);if(g&&!1!==(y(a)||!d)){d?y(a)&&(b=H("colorAxis"!==this.coll?a.crosshairPos:null,this.isXAxis?a.plotX:this.len-
235
- a.plotY)):b=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(y(b)){var p={value:a&&(this.isXAxis?a.x:H(a.stackY,a.y)),translatedValue:b};f.polar&&m(p,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:a});p=this.getPlotLinePath(p)||null}if(!y(p)){this.hideCrosshair();return}d=this.categories&&!this.isRadial;u||(this.cross=u=f.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(d?"category ":"thin ")+(g.className||"")).attr({zIndex:H(g.zIndex,2)}).add(),f.styledMode||
236
- (u.attr({stroke:g.color||(d?v.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":H(g.width,1)}).css({"pointer-events":"none"}),g.dashStyle&&u.attr({dashstyle:g.dashStyle})));u.show().attr({d:p});d&&!g.width&&u.attr({"stroke-width":this.transA});this.cross.e=c}else this.hideCrosshair();h(this,"afterDrawCrosshair",{e:c,point:a})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();h(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;
237
- return!!(c&&c.enabled&&/y/.test(c.type))};b.prototype.validatePositiveValue=function(c){return w(c)&&0<c};b.prototype.update=function(c,a){var g=this.chart;c=F(this.userOptions,c);this.destroy(!0);this.init(g,c);g.isDirtyBox=!0;H(a,!0)&&g.redraw()};b.prototype.remove=function(c){for(var a=this.chart,g=this.coll,d=this.series,h=d.length;h--;)d[h]&&d[h].remove(!1);x(a.axes,this);x(a[g],this);a[g].forEach(function(c,a){c.options.index=c.userOptions.index=a});this.destroy();a.isDirtyBox=!0;H(c,!0)&&a.redraw()};
238
- b.prototype.setTitle=function(c,a){this.update({title:c},a)};b.prototype.setCategories=function(c,a){this.update({categories:c},a)};b.defaultOptions=e.defaultXAxisOptions;b.keepProps="extKey hcEvents names series userMax userMin".split(" ");return b}();"";return b});J(e,"Core/Axis/DateTimeAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,v=b.getMagnitude,E=b.normalizeTickInterval,t=b.timeUnits,A;(function(b){function z(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}
239
- function q(d){"datetime"!==d.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new n(this))}var l=[];b.compose=function(d){-1===l.indexOf(d)&&(l.push(d),d.keepProps.push("dateTime"),d.prototype.getTimeTicks=z,e(d,"init",q));return d};var n=function(){function d(a){this.axis=a}d.prototype.normalizeTimeTickInterval=function(a,d){var f=d||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],
240
- ["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];d=f[f.length-1];var b=t[d[0]],e=d[1],l;for(l=0;l<f.length&&!(d=f[l],b=t[d[0]],e=d[1],f[l+1]&&a<=(b*e[e.length-1]+t[f[l+1][0]])/2);l++);b===t.year&&a<5*b&&(e=[1,2,5]);a=E(a/b,e,"year"===d[0]?Math.max(v(a/b),1):1);return{unitRange:b,count:a,unitName:d[0]}};d.prototype.getXDateFormat=function(a,d){var f=this.axis;return f.closestPointRange?f.chart.time.getDateFormat(f.closestPointRange,a,f.options.startOfWeek,d)||d.year:d.day};return d}();b.Additions=
241
- n})(A||(A={}));return A});J(e,"Core/Axis/LogarithmicAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,v=b.getMagnitude,E=b.normalizeTickInterval,t=b.pick,A;(function(b){function z(d){var a=this.logarithmic;"logarithmic"!==d.userOptions.type?this.logarithmic=void 0:a||(this.logarithmic=new n(this))}function q(){var d=this.logarithmic;d&&(this.lin2val=function(a){return d.lin2log(a)},this.val2lin=function(a){return d.log2lin(a)})}var l=[];b.compose=function(d){-1===l.indexOf(d)&&(l.push(d),
242
- d.keepProps.push("logarithmic"),e(d,"init",z),e(d,"afterInit",q));return d};var n=function(){function d(a){this.axis=a}d.prototype.getLogTickPositions=function(a,d,b,e){var f=this.axis,k=f.len,l=f.options,r=[];e||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),r=f.getLinearTickPositions(a,d,b);else if(.08<=a){var m=Math.floor(d),h,p=l=void 0;for(k=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];m<b+1&&!p;m++){var c=k.length;for(h=0;h<c&&!p;h++){var w=this.log2lin(this.lin2log(m)*k[h]);
243
- w>d&&(!e||l<=b)&&"undefined"!==typeof l&&r.push(l);l>b&&(p=!0);l=w}}}else d=this.lin2log(d),b=this.lin2log(b),a=e?f.getMinorTickInterval():l.tickInterval,a=t("auto"===a?null:a,this.minorAutoInterval,l.tickPixelInterval/(e?5:1)*(b-d)/((e?k/f.tickPositions.length:k)||1)),a=E(a,void 0,v(a)),r=f.getLinearTickPositions(a,d,b).map(this.log2lin),e||(this.minorAutoInterval=a/5);e||(f.tickInterval=a);return r};d.prototype.lin2log=function(a){return Math.pow(10,a)};d.prototype.log2lin=function(a){return Math.log(a)/
244
- Math.LN10};return d}();b.Additions=n})(A||(A={}));return A});J(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.erase,v=b.extend,E=b.isNumber,t;(function(b){var t=[],z;b.compose=function(b,e){z||(z=b);-1===t.indexOf(e)&&(t.push(e),v(e.prototype,q.prototype));return e};var q=function(){function b(){}b.prototype.getPlotBandPath=function(b,d,a){void 0===a&&(a=this.options);var f=this.getPlotLinePath({value:d,force:!0,acrossPanes:a.acrossPanes}),k=[],e=this.horiz;
245
- d=!E(this.min)||!E(this.max)||b<this.min&&d<this.min||b>this.max&&d>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:a.acrossPanes});a=1;if(b&&f){if(d){var l=b.toString()===f.toString();a=0}for(d=0;d<b.length;d+=2){var n=b[d],x=b[d+1],r=f[d],m=f[d+1];"M"!==n[0]&&"L"!==n[0]||"M"!==x[0]&&"L"!==x[0]||"M"!==r[0]&&"L"!==r[0]||"M"!==m[0]&&"L"!==m[0]||(e&&r[1]===n[1]?(r[1]+=a,m[1]+=a):e||r[2]!==n[2]||(r[2]+=a,m[2]+=a),k.push(["M",n[1],n[2]],["L",x[1],x[2]],["L",m[1],m[2]],["L",r[1],r[2]],["Z"]));
246
- k.isFlat=l}}return k};b.prototype.addPlotBand=function(b){return this.addPlotBandOrLine(b,"plotBands")};b.prototype.addPlotLine=function(b){return this.addPlotBandOrLine(b,"plotLines")};b.prototype.addPlotBandOrLine=function(b,d){var a=this,f=this.userOptions,k=new z(this,b);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(f.plotLines||[]).concat(f.plotBands||[]).forEach(function(d){a.addPlotBandOrLine(d)}));if(d){var e=f[d]||[];e.push(b);f[d]=e}this.plotLinesAndBands.push(k)}return k};
247
- b.prototype.removePlotBandOrLine=function(b){var d=this.plotLinesAndBands,a=this.options,f=this.userOptions;if(d){for(var k=d.length;k--;)d[k].id===b&&d[k].destroy();[a.plotLines||[],f.plotLines||[],a.plotBands||[],f.plotBands||[]].forEach(function(a){for(k=a.length;k--;)(a[k]||{}).id===b&&e(a,a[k])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(t||(t={}));return t});J(e,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",
248
- [e["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],e["Core/Utilities.js"]],function(b,e){var v=e.arrayMax,E=e.arrayMin,t=e.defined,A=e.destroyObjectProperties,C=e.erase,z=e.fireEvent,q=e.merge,l=e.objectEach,n=e.pick;e=function(){function d(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)}d.compose=function(a){return b.compose(d,a)};d.prototype.render=function(){z(this,"render");var a=this,d=a.axis,b=d.horiz,e=d.logarithmic,y=a.options,B=y.color,x=n(y.zIndex,0),r=y.events,m={},h=d.chart.renderer,
249
- p=y.label,c=a.label,w=y.to,g=y.from,F=y.value,u=a.svgElem,D=[],H=t(g)&&t(w);D=t(F);var L=!u,P={"class":"highcharts-plot-"+(H?"band ":"line ")+(y.className||"")},K=H?"bands":"lines";e&&(g=e.log2lin(g),w=e.log2lin(w),F=e.log2lin(F));d.chart.styledMode||(D?(P.stroke=B||"#999999",P["stroke-width"]=n(y.width,1),y.dashStyle&&(P.dashstyle=y.dashStyle)):H&&(P.fill=B||"#e6ebf5",y.borderWidth&&(P.stroke=y.borderColor,P["stroke-width"]=y.borderWidth)));m.zIndex=x;K+="-"+x;(e=d.plotLinesAndBandsGroups[K])||(d.plotLinesAndBandsGroups[K]=
250
- e=h.g("plot-"+K).attr(m).add());L&&(a.svgElem=u=h.path().attr(P).add(e));if(D)D=d.getPlotLinePath({value:F,lineWidth:u.strokeWidth(),acrossPanes:y.acrossPanes});else if(H)D=d.getPlotBandPath(g,w,y);else return;!a.eventsAdded&&r&&(l(r,function(c,g){u.on(g,function(c){r[g].apply(a,[c])})}),a.eventsAdded=!0);(L||!u.d)&&D&&D.length?u.attr({d:D}):u&&(D?(u.show(!0),u.animate({d:D})):u.d&&(u.hide(),c&&(a.label=c=c.destroy())));p&&(t(p.text)||t(p.formatter))&&D&&D.length&&0<d.width&&0<d.height&&!D.isFlat?
251
- (p=q({align:b&&H&&"center",x:b?!H&&4:10,verticalAlign:!b&&H&&"middle",y:b?H?16:10:H?6:-4,rotation:b&&!H&&90},p),this.renderLabel(p,D,H,x)):c&&c.hide();return a};d.prototype.renderLabel=function(a,d,b,e){var f=this.axis,k=f.chart.renderer,l=this.label;l||(this.label=l=k.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(b?"band":"line")+"-label "+(a.className||""),zIndex:e}).add(),f.chart.styledMode||l.css(q({textOverflow:"ellipsis"},
252
- a.style)));e=d.xBounds||[d[0][1],d[1][1],b?d[2][1]:d[0][1]];d=d.yBounds||[d[0][2],d[1][2],b?d[2][2]:d[0][2]];b=E(e);k=E(d);l.align(a,!1,{x:b,y:k,width:v(e)-b,height:v(d)-k});l.alignValue&&"left"!==l.alignValue||l.css({width:(90===l.rotation?f.height-(l.alignAttr.y-f.top):f.width-(l.alignAttr.x-f.left))+"px"});l.show(!0)};d.prototype.getLabelText=function(a){return t(a.formatter)?a.formatter.call(this):a.text};d.prototype.destroy=function(){C(this.axis.plotLinesAndBands,this);delete this.axis;A(this)};
253
- return d}();"";"";return e});J(e,"Core/Tooltip.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E,t){var A=b.format,C=e.doc,z=v.distribute,q=t.addEvent,l=t.clamp,n=t.css,d=t.defined,a=t.discardElement,f=t.extend,k=t.fireEvent,G=t.isArray,y=t.isNumber,B=t.isString,x=t.merge,r=t.pick,m=t.splat,h=t.syncTimeout;b=function(){function b(c,a){this.allowShared=!0;this.container=void 0;
254
- this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=c;this.init(c,a)}b.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},
255
- {tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};b.prototype.bodyFormatter=function(c){return c.map(function(c){var a=c.series.tooltipOptions;return(a[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,a[(c.point.formatPrefix||"point")+"Format"]||"")})};b.prototype.cleanSplit=function(c){this.chart.series.forEach(function(a){var g=a&&a.tt;g&&(!g.isActive||c?a.tt=g.destroy():g.isActive=!1)})};b.prototype.defaultFormatter=
256
- function(c){var a=this.points||m(this);var g=[c.tooltipFooterHeaderFormatter(a[0])];g=g.concat(c.bodyFormatter(a));g.push(c.tooltipFooterHeaderFormatter(a[0],!0));return g};b.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),a(this.container));t.clearTimeout(this.hideTimer);t.clearTimeout(this.tooltipTimeout)};b.prototype.getAnchor=function(c,a){var g=
257
- this.chart,d=g.pointer,b=g.inverted,h=g.plotTop,f=g.plotLeft,p,k,w=0,e=0;c=m(c);this.followPointer&&a?("undefined"===typeof a.chartX&&(a=d.normalize(a)),d=[a.chartX-f,a.chartY-h]):c[0].tooltipPos?d=c[0].tooltipPos:(c.forEach(function(c){p=c.series.yAxis;k=c.series.xAxis;w+=c.plotX||0;e+=c.plotLow?(c.plotLow+(c.plotHigh||0))/2:c.plotY||0;k&&p&&(b?(w+=h+g.plotHeight-k.len-k.pos,e+=f+g.plotWidth-p.len-p.pos):(w+=k.pos-f,e+=p.pos-h))}),w/=c.length,e/=c.length,d=[b?g.plotWidth-e:w,b?g.plotHeight-w:e],
258
- this.shared&&1<c.length&&a&&(b?d[0]=a.chartX-f:d[1]=a.chartY-h));return d.map(Math.round)};b.prototype.getLabel=function(){var c=this,a=this.chart.styledMode,g=this.options,b=this.split&&this.allowShared,h="tooltip"+(d(g.className)?" "+g.className:""),f=g.style.pointerEvents||(!this.followPointer&&g.stickOnContact?"auto":"none"),m=function(){c.inContact=!0},p=function(a){var g=c.chart.hoverSeries;c.inContact=c.shouldStickOnContact()&&c.chart.pointer.inClass(a.relatedTarget,"highcharts-tooltip");if(!c.inContact&&
259
- g&&g.onMouseOut)g.onMouseOut()},k,l=this.chart.renderer;if(c.label){var r=!c.label.hasClass("highcharts-label");(b&&!r||!b&&r)&&c.destroy()}if(!this.label){if(this.outside){r=this.chart.options.chart.style;var x=E.getRendererType();this.container=k=e.doc.createElement("div");k.className="highcharts-tooltip-container";n(k,{position:"absolute",top:"1px",pointerEvents:f,zIndex:Math.max(this.options.style.zIndex||0,(r&&r.zIndex||0)+3)});q(k,"mouseenter",m);q(k,"mouseleave",p);e.doc.body.appendChild(k);
260
- this.renderer=l=new x(k,0,0,r,void 0,void 0,l.styledMode)}b?this.label=l.g(h):(this.label=l.label("",0,0,g.shape,void 0,void 0,g.useHTML,void 0,h).attr({padding:g.padding,r:g.borderRadius}),a||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:f}).shadow(g.shadow));a&&g.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c.outside&&!c.split){var y=this.label,B=y.xSetter,G=y.ySetter;y.xSetter=function(a){B.call(y,
261
- c.distance);k.style.left=a+"px"};y.ySetter=function(a){G.call(y,c.distance);k.style.top=a+"px"}}this.label.on("mouseenter",m).on("mouseleave",p).attr({zIndex:8}).add()}return this.label};b.prototype.getPosition=function(c,a,g){var d=this.chart,b=this.distance,h={},f=d.inverted&&g.h||0,m=this.outside,p=m?C.documentElement.clientWidth-2*b:d.chartWidth,k=m?Math.max(C.body.scrollHeight,C.documentElement.scrollHeight,C.body.offsetHeight,C.documentElement.offsetHeight,C.documentElement.clientHeight):d.chartHeight,
262
- w=d.pointer.getChartPosition(),e=function(h){var f="x"===h;return[h,f?p:k,f?c:a].concat(m?[f?c*w.scaleX:a*w.scaleY,f?w.left-b+(g.plotX+d.plotLeft)*w.scaleX:w.top-b+(g.plotY+d.plotTop)*w.scaleY,0,f?p:k]:[f?c:a,f?g.plotX+d.plotLeft:g.plotY+d.plotTop,f?d.plotLeft:d.plotTop,f?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},l=e("y"),n=e("x"),x;e=!!g.negative;!d.polar&&d.hoverSeries&&d.hoverSeries.yAxis&&d.hoverSeries.yAxis.reversed&&(e=!e);var y=!this.followPointer&&r(g.ttBelow,!d.inverted===e),B=function(c,
263
- a,g,d,u,p,k){var e=m?"y"===c?b*w.scaleY:b*w.scaleX:b,D=(g-d)/2,F=d<u-b,l=u+b+d<a,r=u-e-g+D;u=u+e-D;if(y&&l)h[c]=u;else if(!y&&F)h[c]=r;else if(F)h[c]=Math.min(k-d,0>r-f?r:r-f);else if(l)h[c]=Math.max(p,u+f+g>a?u:u+f);else return!1},q=function(c,a,g,d,f){var u;f<b||f>a-b?u=!1:h[c]=f<g/2?1:f>a-d/2?a-d-2:f-g/2;return u},G=function(c){var a=l;l=n;n=a;x=c},t=function(){!1!==B.apply(0,l)?!1!==q.apply(0,n)||x||(G(!0),t()):x?h.x=h.y=0:(G(!0),t())};(d.inverted||1<this.len)&&G();t();return h};b.prototype.hide=
264
- function(c){var a=this;t.clearTimeout(this.hideTimer);c=r(c,this.options.hideDelay);this.isHidden||(this.hideTimer=h(function(){a.getLabel().fadeOut(c?void 0:c);a.isHidden=!0},c))};b.prototype.init=function(c,a){this.chart=c;this.options=a;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=a.split&&!c.inverted&&!c.polar;this.shared=a.shared||this.split;this.outside=r(a.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))};b.prototype.shouldStickOnContact=function(){return!(this.followPointer||
265
- !this.options.stickOnContact)};b.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};b.prototype.move=function(c,a,g,d){var b=this,h=b.now,m=!1!==b.options.animation&&!b.isHidden&&(1<Math.abs(c-h.x)||1<Math.abs(a-h.y)),p=b.followPointer||1<b.len;f(h,{x:m?(2*h.x+c)/3:c,y:m?(h.y+a)/2:a,anchorX:p?void 0:m?(2*h.anchorX+g)/3:g,anchorY:p?void 0:m?(h.anchorY+d)/2:d});b.getLabel().attr(h);b.drawTracker();m&&(t.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=
266
- setTimeout(function(){b&&b.move(c,a,g,d)},32))};b.prototype.refresh=function(c,a){var g=this.chart,d=this.options,b=m(c),h=b[0],f=[],p=d.formatter||this.defaultFormatter,w=this.shared,e=g.styledMode,l={};if(d.enabled&&h.series){t.clearTimeout(this.hideTimer);this.allowShared=!(!G(c)&&c.series&&c.series.noSharedTooltip);this.followPointer=!this.split&&h.series.tooltipOptions.followPointer;c=this.getAnchor(c,a);var n=c[0],x=c[1];w&&this.allowShared?(g.pointer.applyInactiveState(b),b.forEach(function(c){c.setState("hover");
267
- f.push(c.getLabelConfig())}),l={x:h.category,y:h.y},l.points=f):l=h.getLabelConfig();this.len=f.length;p=p.call(l,this);w=h.series;this.distance=r(w.tooltipOptions.distance,16);if(!1===p)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(p,b);else{var y=n,B=x;a&&g.pointer.isDirectTouch&&(y=a.chartX-g.plotLeft,B=a.chartY-g.plotTop);if(g.polar||!1===w.options.clip||b.some(function(c){return c.series.shouldShowTooltip(y,B)}))a=this.getLabel(),d.style.width&&!e||a.css({width:this.chart.spacingBox.width+
268
- "px"}),a.attr({text:p&&p.join?p.join(""):p}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+r(h.colorIndex,w.colorIndex)),e||a.attr({stroke:d.borderColor||h.color||w.color||"#666666"}),this.updatePosition({plotX:n,plotY:x,negative:h.negative,ttBelow:h.ttBelow,h:c[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}k(this,"refresh")}};b.prototype.renderSplit=function(c,a){function g(c,a,g,b,h){void 0===h&&(h=!0);g?
269
- (a=V?0:J,c=l(c-b/2,Q.left,Q.right-b-(d.outside?O:0))):(a-=da,c=h?c-b-A:c+A,c=l(c,h?c:Q.left,Q.right));return{x:c,y:a}}var d=this,b=d.chart,h=d.chart,m=h.chartWidth,p=h.chartHeight,k=h.plotHeight,w=h.plotLeft,e=h.plotTop,n=h.pointer,x=h.scrollablePixelsY;x=void 0===x?0:x;var y=h.scrollablePixelsX,q=h.scrollingContainer;q=void 0===q?{scrollLeft:0,scrollTop:0}:q;var G=q.scrollLeft;q=q.scrollTop;var t=h.styledMode,A=d.distance,R=d.options,v=d.options.positioner,Q=d.outside&&"number"!==typeof y?C.documentElement.getBoundingClientRect():
270
- {left:G,right:G+m,top:q,bottom:q+p},E=d.getLabel(),I=this.renderer||b.renderer,V=!(!b.xAxis[0]||!b.xAxis[0].opposite);b=n.getChartPosition();var O=b.left;b=b.top;var da=e+q,ea=0,J=k-x;B(c)&&(c=[!1,c]);c=c.slice(0,a.length+1).reduce(function(c,b,h){if(!1!==b&&""!==b){h=a[h-1]||{isHeader:!0,plotX:a[0].plotX,plotY:k,series:{}};var f=h.isHeader,u=f?d:h.series;b=b.toString();var m=u.tt,p=h.isHeader;var D=h.series;var F="highcharts-color-"+r(h.colorIndex,D.colorIndex,"none");m||(m={padding:R.padding,r:R.borderRadius},
271
- t||(m.fill=R.backgroundColor,m["stroke-width"]=R.borderWidth),m=I.label("",0,0,R[p?"headerShape":"shape"],void 0,void 0,R.useHTML).addClass((p?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+F).attr(m).add(E));m.isActive=!0;m.attr({text:b});t||m.css(R.style).shadow(R.shadow).attr({stroke:R.borderColor||h.color||D.color||"#333333"});u=u.tt=m;p=u.getBBox();b=p.width+u.strokeWidth();f&&(ea=p.height,J+=ea,V&&(da-=ea));D=h.plotX;D=void 0===D?0:D;F=h.plotY;F=void 0===F?0:F;m=h.series;if(h.isHeader){D=
272
- w+D;var n=e+k/2}else{var H=m.xAxis,x=m.yAxis;D=H.pos+l(D,-A,H.len+A);m.shouldShowTooltip(0,x.pos-e+F,{ignoreX:!0})&&(n=x.pos+F)}D=l(D,Q.left-A,Q.right+A);"number"===typeof n?(p=p.height+1,F=v?v.call(d,b,p,h):g(D,n,f,b),c.push({align:v?0:void 0,anchorX:D,anchorY:n,boxWidth:b,point:h,rank:r(F.rank,f?1:0),size:p,target:F.y,tt:u,x:F.x})):u.isActive=!1}return c},[]);!v&&c.some(function(c){var a=(d.outside?O:0)+c.anchorX;return a<Q.left&&a+c.boxWidth<Q.right?!0:a<O-Q.left+c.boxWidth&&Q.right-a>a})&&(c=
273
- c.map(function(c){var a=g(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return f(c,{target:a.y,x:a.x})}));d.cleanSplit();z(c,J);var ba=O,fa=O;c.forEach(function(c){var a=c.x,g=c.boxWidth;c=c.isHeader;c||(d.outside&&O+a<ba&&(ba=O+a),!c&&d.outside&&ba+g>fa&&(fa=O+a))});c.forEach(function(c){var a=c.x,g=c.anchorX,b=c.pos,h=c.point.isHeader;b={visibility:"undefined"===typeof b?"hidden":"inherit",x:a,y:b+da,anchorX:g,anchorY:c.anchorY};if(d.outside&&a<g){var f=O-ba;0<f&&(h||(b.x=a+f,b.anchorX=g+
274
- f),h&&(b.x=(fa-ba)/2,b.anchorX=g+f))}c.tt.attr(b)});c=d.container;x=d.renderer;d.outside&&c&&x&&(h=E.getBBox(),x.setSize(h.width+h.x,h.height+h.y,!1),c.style.left=ba+"px",c.style.top=b+"px")};b.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var c=this.chart,a=this.label,g=this.shared?c.hoverPoints:c.hoverPoint;if(a&&g){var d={x:0,y:0,width:0,height:0};g=this.getAnchor(g);var b=a.getBBox();g[0]+=c.plotLeft-a.translateX;
275
- g[1]+=c.plotTop-a.translateY;d.x=Math.min(0,g[0]);d.y=Math.min(0,g[1]);d.width=0>g[0]?Math.max(Math.abs(g[0]),b.width-g[0]):Math.max(Math.abs(g[0]),b.width);d.height=0>g[1]?Math.max(Math.abs(g[1]),b.height-Math.abs(g[1])):Math.max(Math.abs(g[1]),b.height);this.tracker?this.tracker.attr(d):(this.tracker=a.renderer.rect(d).addClass("highcharts-tracker").add(a),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};b.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"',
276
- 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};b.prototype.tooltipFooterHeaderFormatter=function(c,a){var g=c.series,d=g.tooltipOptions,b=g.xAxis,h=b&&b.dateTime;b={isFooter:a,labelConfig:c};var f=d.xDateFormat,m=d[a?"footerFormat":"headerFormat"];k(this,"headerFormatter",b,function(a){h&&!f&&y(c.key)&&(f=h.getXDateFormat(c.key,d.dateTimeLabelFormats));h&&f&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(c){m=
277
- m.replace("{point."+c+"}","{point."+c+":"+f+"}")});g.chart.styledMode&&(m=this.styledModeFormat(m));a.text=A(m,{point:c,series:g},this.chart)});return b.text};b.prototype.update=function(c){this.destroy();x(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,x(!0,this.options,c))};b.prototype.updatePosition=function(c){var a=this.chart,g=this.options,d=a.pointer,b=this.getLabel();d=d.getChartPosition();var h=(g.positioner||this.getPosition).call(this,b.width,b.height,c),f=c.plotX+a.plotLeft;
278
- c=c.plotY+a.plotTop;if(this.outside){g=g.borderWidth+2*this.distance;this.renderer.setSize(b.width+g,b.height+g,!1);if(1!==d.scaleX||1!==d.scaleY)n(this.container,{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),f*=d.scaleX,c*=d.scaleY;f+=d.left-h.x;c+=d.top-h.y}this.move(Math.round(h.x),Math.round(h.y||0),f,c)};return b}();"";return b});J(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/DefaultOptions.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],
279
- function(b,e,v,E,t){var A=e.animObject,C=v.defaultOptions,z=E.format,q=t.addEvent,l=t.defined,n=t.erase,d=t.extend,a=t.fireEvent,f=t.getNestedProperty,k=t.isArray,G=t.isFunction,y=t.isNumber,B=t.isObject,x=t.merge,r=t.objectEach,m=t.pick,h=t.syncTimeout,p=t.removeEvent,c=t.uniqueKey;e=function(){function e(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=
280
- !0;this.x=void 0}e.prototype.animateBeforeDestroy=function(){var c=this,a={x:c.startXPos,opacity:0},b=c.getGraphicalProps();b.singular.forEach(function(g){c[g]=c[g].animate("dataLabel"===g?{x:c[g].startXPos,y:c[g].startYPos,opacity:0}:a)});b.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.animate(d({x:c.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})};e.prototype.applyOptions=function(c,a){var g=this.series,b=g.options.pointValKey||g.pointValKey;c=e.prototype.optionsToObject.call(this,
281
- c);d(this,c);this.options=this.options?d(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;b&&(this.y=e.prototype.getNestedProperty.call(this,b));this.formatPrefix=(this.isNull=m(this.isValid&&!this.isValid(),null===this.x||!y(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof a&&g.xAxis&&g.xAxis.hasNames&&(this.x=g.xAxis.nameToX(this));"undefined"===typeof this.x&&g?this.x="undefined"===typeof a?g.autoIncrement():a:y(c.x)&&
282
- g.options.relativeXValue&&(this.x=g.autoIncrement(c.x));return this};e.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)p(a),a.destroyElements();for(k in a)a[k]=null}var a=this,d=a.series,b=d.chart;d=d.options.dataSorting;var f=b.hoverPoints,m=A(a.series.chart.renderer.globalAnimation),k;a.legendItem&&b.legend.destroyItem(a);f&&(a.setState(),n(f,a),f.length||(b.hoverPoints=null));if(a===b.hoverPoint)a.onMouseOut();d&&d.enabled?(this.animateBeforeDestroy(),h(c,m.duration)):
283
- c();b.pointCount--};e.prototype.destroyElements=function(c){var a=this;c=a.getGraphicalProps(c);c.singular.forEach(function(c){a[c]=a[c].destroy()});c.plural.forEach(function(c){a[c].forEach(function(c){c.element&&c.destroy()});delete a[c]})};e.prototype.firePointEvent=function(c,d,b){var g=this,h=this.series.options;(h.point.events[c]||g.options&&g.options.events&&g.options.events[c])&&g.importEvents();"click"===c&&h.allowPointSelect&&(b=function(c){g.select&&g.select(null,c.ctrlKey||c.metaKey||
284
- c.shiftKey)});a(g,c,d,b)};e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};e.prototype.getGraphicalProps=function(c){var a=this,g=
285
- [],d={singular:[],plural:[]},b;c=c||{graphic:1,dataLabel:1};c.graphic&&g.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&g.push("dataLabel","dataLabelUpper","connector");for(b=g.length;b--;){var h=g[b];a[h]&&d.singular.push(h)}["dataLabel","connector"].forEach(function(g){var b=g+"s";c[g]&&a[b]&&d.plural.push(b)});return d};e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,
286
- percentage:this.percentage,total:this.total||this.stackTotal}};e.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?f(c,this.options):this[c]};e.prototype.getZone=function(){var c=this.series,a=c.zones;c=c.zoneAxis||"y";var d,b=0;for(d=a[b];this[c]>=d.value;)d=a[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||
287
- this.graphic.element.nodeName))!==this.shapeType};e.prototype.init=function(g,d,b){this.series=g;this.applyOptions(d,b);this.id=l(this.id)?this.id:c();this.resolveColor();g.chart.pointCount++;a(this,"afterInit");return this};e.prototype.optionsToObject=function(c){var a=this.series,g=a.options.keys,d=g||a.pointArrayMap||["y"],b=d.length,h={},f=0,m=0;if(y(c)||null===c)h[d[0]]=c;else if(k(c))for(!g&&c.length>b&&(a=typeof c[0],"string"===a?h.name=c[0]:"number"===a&&(h.x=c[0]),f++);m<b;)g&&"undefined"===
288
- typeof c[f]||(0<d[m].indexOf(".")?e.prototype.setNestedProperty(h,c[f],d[m]):h[d[m]]=c[f]),f++,m++;else"object"===typeof c&&(h=c,c.dataLabels&&(a._hasPointLabels=!0),c.marker&&(a._hasPointMarkers=!0));return h};e.prototype.resolveColor=function(){var c=this.series,a=c.chart.styledMode;var d=c.chart.options.chart.colorCount;delete this.nonZonedColor;if(c.options.colorByPoint){if(!a){d=c.options.colors||c.chart.options.colors;var b=d[c.colorCounter];d=d.length}a=c.colorCounter;c.colorCounter++;c.colorCounter===
289
- d&&(c.colorCounter=0)}else a||(b=c.color),a=c.colorIndex;this.colorIndex=m(this.options.colorIndex,a);this.color=m(this.options.color,b)};e.prototype.setNestedProperty=function(c,a,d){d.split(".").reduce(function(c,d,g,b){c[d]=b.length-1===g?a:B(c[d],!0)?c[d]:{};return c[d]},c);return c};e.prototype.tooltipFormatter=function(c){var a=this.series,d=a.tooltipOptions,g=m(d.valueDecimals,""),b=d.valuePrefix||"",h=d.valueSuffix||"";a.chart.styledMode&&(c=a.chart.tooltip.styledModeFormat(c));(a.pointArrayMap||
290
- ["y"]).forEach(function(a){a="{point."+a;if(b||h)c=c.replace(RegExp(a+"}","g"),b+a+"}"+h);c=c.replace(RegExp(a+"}","g"),a+":,."+g+"f}")});return z(c,{point:this,series:this.series},a.chart)};e.prototype.update=function(c,a,d,b){function g(){h.applyOptions(c);var g=p&&h.hasDummyGraphic;g=null===h.y?!g:g;p&&g&&(h.graphic=p.destroy(),delete h.hasDummyGraphic);B(c,!0)&&(p&&p.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(h.graphic=p.destroy()),c&&c.dataLabels&&h.dataLabel&&(h.dataLabel=
291
- h.dataLabel.destroy()),h.connector&&(h.connector=h.connector.destroy()));e=h.index;f.updateParallelArrays(h,e);k.data[e]=B(k.data[e],!0)||B(c,!0)?h.options:m(c,k.data[e]);f.isDirty=f.isDirtyData=!0;!f.fixedBox&&f.hasCartesianSeries&&(u.isDirtyBox=!0);"point"===k.legendType&&(u.isDirtyLegend=!0);a&&u.redraw(d)}var h=this,f=h.series,p=h.graphic,u=f.chart,k=f.options,e;a=m(a,!0);!1===b?g():h.firePointEvent("update",{options:c},g)};e.prototype.remove=function(c,a){this.series.removePoint(this.series.data.indexOf(this),
292
- c,a)};e.prototype.select=function(c,a){var d=this,g=d.series,b=g.chart;this.selectedStaging=c=m(c,!d.selected);d.firePointEvent(c?"select":"unselect",{accumulate:a},function(){d.selected=d.options.selected=c;g.options.data[g.data.indexOf(d)]=d.options;d.setState(c&&"select");a||b.getSelectedPoints().forEach(function(c){var a=c.series;c.selected&&c!==d&&(c.selected=c.options.selected=!1,a.options.data[a.data.indexOf(c)]=c.options,c.setState(b.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),
293
- c.firePointEvent("unselect"))})});delete this.selectedStaging};e.prototype.onMouseOver=function(c){var a=this.series.chart,d=a.pointer;c=c?d.normalize(c):d.getChartCoordinatesFromPoint(this,a.inverted);d.runPointActions(c,this)};e.prototype.onMouseOut=function(){var c=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(c.hoverPoints||[]).forEach(function(c){c.setState()});c.hoverPoints=c.hoverPoint=null};e.prototype.importEvents=function(){if(!this.hasImportedEvents){var c=
294
- this,a=x(c.series.options.point,c.options).events;c.events=a;r(a,function(a,d){G(a)&&q(c,d,a)});this.hasImportedEvents=!0}};e.prototype.setState=function(c,h){var g=this.series,f=this.state,p=g.options.states[c||"normal"]||{},k=C.plotOptions[g.type].marker&&g.options.marker,e=k&&!1===k.enabled,w=k&&k.states&&k.states[c||"normal"]||{},l=!1===w.enabled,r=this.marker||{},n=g.chart,x=k&&g.markerAttribs,F=g.halo,B,q=g.stateMarkerGraphic;c=c||"";if(!(c===this.state&&!h||this.selected&&"select"!==c||!1===
295
- p.enabled||c&&(l||e&&!1===w.enabled)||c&&r.states&&r.states[c]&&!1===r.states[c].enabled)){this.state=c;x&&(B=g.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){f&&this.graphic.removeClass("highcharts-point-"+f);c&&this.graphic.addClass("highcharts-point-"+c);if(!n.styledMode){var G=g.pointAttribs(this,c);var R=m(n.options.chart.animation,p.animation);g.options.inactiveOtherPoints&&y(G.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:G.opacity},R)}),this.connector&&
296
- this.connector.animate({opacity:G.opacity},R));this.graphic.animate(G,R)}B&&this.graphic.animate(B,m(n.options.chart.animation,w.animation,k.animation));q&&q.hide()}else{if(c&&w){f=r.symbol||g.symbol;q&&q.currentSymbol!==f&&(q=q.destroy());if(B)if(q)q[h?"animate":"attr"]({x:B.x,y:B.y});else f&&(g.stateMarkerGraphic=q=n.renderer.symbol(f,B.x,B.y,B.width,B.height).add(g.markerGroup),q.currentSymbol=f);!n.styledMode&&q&&"inactive"!==this.state&&q.attr(g.pointAttribs(this,c))}q&&(q[c&&this.isInside?"show":
297
- "hide"](),q.element.point=this,q.addClass(this.getClassName(),!0))}p=p.halo;B=(q=this.graphic||q)&&q.visibility||"inherit";p&&p.size&&q&&"hidden"!==B&&!this.isCluster?(F||(g.halo=F=n.renderer.path().add(q.parentGroup)),F.show()[h?"animate":"attr"]({d:this.haloPath(p.size)}),F.attr({"class":"highcharts-halo highcharts-color-"+m(this.colorIndex,g.colorIndex)+(this.className?" "+this.className:""),visibility:B,zIndex:-1}),F.point=this,n.styledMode||F.attr(d({fill:this.color||g.color,"fill-opacity":p.opacity},
298
- b.filterUserAttributes(p.attributes||{})))):F&&F.point&&F.point.haloPath&&F.animate({d:F.point.haloPath(0)},null,F.hide);a(this,"afterSetState",{state:c})}};e.prototype.haloPath=function(c){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-c,this.plotY-c,2*c,2*c)};return e}();"";return e});J(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=b.parse,A=e.charts,C=e.noop,z=E.addEvent,q=E.attr,
299
- l=E.css,n=E.defined,d=E.extend,a=E.find,f=E.fireEvent,k=E.isNumber,G=E.isObject,y=E.objectEach,B=E.offset,x=E.pick,r=E.splat;b=function(){function b(a,d){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=!1;this.options=d;this.init(a,d)}b.prototype.applyInactiveState=function(a){var d=[],c;(a||[]).forEach(function(a){c=a.series;d.push(c);c.linkedParent&&d.push(c.linkedParent);c.linkedSeries&&(d=d.concat(c.linkedSeries));c.navigatorSeries&&
300
- d.push(c.navigatorSeries)});this.chart.series.forEach(function(c){-1===d.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});this.eventsToUnbind=[];e.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);
301
- y(a,function(d,c){a[c]=void 0})};b.prototype.drag=function(a){var d=this.chart,c=d.options.chart,b=this.zoomHor,g=this.zoomVert,h=d.plotLeft,f=d.plotTop,k=d.plotWidth,m=d.plotHeight,e=this.mouseDownX||0,l=this.mouseDownY||0,r=G(c.panning)?c.panning&&c.panning.enabled:c.panning,n=c.panKey&&a[c.panKey+"Key"],x=a.chartX,y=a.chartY,B=this.selectionMarker;if(!B||!B.touch)if(x<h?x=h:x>h+k&&(x=h+k),y<f?y=f:y>f+m&&(y=f+m),this.hasDragged=Math.sqrt(Math.pow(e-x,2)+Math.pow(l-y,2)),10<this.hasDragged){var q=
302
- d.isInsidePlot(e-h,l-f,{visiblePlotOnly:!0});!d.hasCartesianSeries&&!d.mapView||!this.zoomX&&!this.zoomY||!q||n||B||(this.selectionMarker=B=d.renderer.rect(h,f,b?1:k,g?1:m,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||B.attr({fill:c.selectionMarkerFill||t("#335cad").setOpacity(.25).get()}));B&&b&&(b=x-e,B.attr({width:Math.abs(b),x:(0<b?0:b)+e}));B&&g&&(b=y-l,B.attr({height:Math.abs(b),y:(0<b?0:b)+l}));q&&!B&&r&&d.pan(a,c.panning)}};b.prototype.dragStart=function(a){var d=
303
- this.chart;d.mouseIsDown=a.type;d.cancelClick=!1;d.mouseDownX=this.mouseDownX=a.chartX;d.mouseDownY=this.mouseDownY=a.chartY};b.prototype.drop=function(a){var b=this,c=this.chart,h=this.hasPinched;if(this.selectionMarker){var g=this.selectionMarker,m=g.attr?g.attr("x"):g.x,u=g.attr?g.attr("y"):g.y,e=g.attr?g.attr("width"):g.width,r=g.attr?g.attr("height"):g.height,x={originalEvent:a,xAxis:[],yAxis:[],x:m,y:u,width:e,height:r},y=!!c.mapView;if(this.hasDragged||h)c.axes.forEach(function(c){if(c.zoomEnabled&&
304
- n(c.min)&&(h||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])&&k(m)&&k(u)){var d=c.horiz,g="touchend"===a.type?c.minPixelPadding:0,f=c.toValue((d?m:u)+g);d=c.toValue((d?m+e:u+r)-g);x[c.coll].push({axis:c,min:Math.min(f,d),max:Math.max(f,d)});y=!0}}),y&&f(c,"selection",x,function(a){c.zoom(d(a,h?{animation:!1}:null))});k(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());h&&this.scaleGroups()}c&&k(c.index)&&(l(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=
305
- this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=function(a,d,c){var b=this.chart,g=b.hoverPoint;b=b.tooltip;if(g&&b&&b.isStickyOnContact())return g;var h;a.forEach(function(a){var b=!(a.noSharedTooltip&&d)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(c,b);if((b=G(a,!0)&&a.series)&&!(b=!G(h,!0))){b=h.distX-a.distX;var g=h.dist-a.dist,f=(a.series.group&&a.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);b=0<(0!==b&&d?b:0!==g?g:0!==f?f:h.series.index>
306
- a.series.index?-1:1)}b&&(h=a)});return h};b.prototype.getChartCoordinatesFromPoint=function(a,d){var c=a.series,b=c.xAxis;c=c.yAxis;var g=a.shapeArgs;if(b&&c){var h=x(a.clientX,a.plotX),f=a.plotY||0;a.isNode&&g&&k(g.x)&&k(g.y)&&(h=g.x,f=g.y);return d?{chartX:c.len+c.pos-f,chartY:b.len+b.pos-h}:{chartX:h+b.pos,chartY:f+c.pos}}if(g&&g.x&&g.y)return{chartX:g.x,chartY:g.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,d=B(a);this.chartPosition=
307
- {left:d.left,top:d.top,scaleX:1,scaleY:1};var c=a.offsetWidth;a=a.offsetHeight;2<c&&2<a&&(this.chartPosition.scaleX=d.width/c,this.chartPosition.scaleY=d.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var d={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){d[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return d};b.prototype.getHoverData=function(d,b,c,m,g,k){var h=[];m=!(!m||!d);var p={chartX:k?k.chartX:void 0,chartY:k?
308
- k.chartY:void 0,shared:g};f(this,"beforeGetHoverData",p);var e=b&&!b.stickyTracking?[b]:c.filter(function(c){return p.filter?p.filter(c):c.visible&&!(!g&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&c.stickyTracking});var l=m||!k?d:this.findNearestKDPoint(e,g,k);b=l&&l.series;l&&(g&&!b.noSharedTooltip?(e=c.filter(function(c){return p.filter?p.filter(c):c.visible&&!(!g&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&!c.noSharedTooltip}),e.forEach(function(c){var d=a(c.points,function(c){return c.x===
309
- l.x&&!c.isNull});G(d)&&(c.chart.isBoosting&&(d=c.getPoint(d)),h.push(d))})):h.push(l));p={hoverPoint:l};f(this,"afterGetHoverData",p);return{hoverPoint:p.hoverPoint,hoverSeries:b,hoverPoints:h}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var d;a&&!d;)d=a.point,a=a.parentNode;return d};b.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var d=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!d||!a||d.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,
310
- "highcharts-series-"+d.index)&&this.inClass(a,"highcharts-tracker")))d.onMouseOut()};b.prototype.inClass=function(a,d){for(var c;a;){if(c=q(a,"class")){if(-1!==c.indexOf(d))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentElement}};b.prototype.init=function(a,d){this.options=d;this.chart=a;this.runChartClick=!(!d.chart.events||!d.chart.events.click);this.pinchDown=[];this.lastValidTouch={};v&&(a.tooltip=new v(a,d.tooltip),this.followTouchMove=x(d.tooltip.followTouchMove,!0));
311
- this.setDOMEvents()};b.prototype.normalize=function(a,b){var c=a.touches,h=c?c.length?c.item(0):x(c.changedTouches,a.changedTouches)[0]:a;b||(b=this.getChartPosition());c=h.pageX-b.left;h=h.pageY-b.top;c/=b.scaleX;h/=b.scaleY;return d(a,{chartX:Math.round(c),chartY:Math.round(h)})};b.prototype.onContainerClick=function(a){var b=this.chart,c=b.hoverPoint;a=this.normalize(a);var h=b.plotLeft,g=b.plotTop;b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(f(c.series,"click",d(a,{point:c})),
312
- b.hoverPoint&&c.firePointEvent("click",a)):(d(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-h,a.chartY-g,{visiblePlotOnly:!0})&&f(b,"click",a)))};b.prototype.onContainerMouseDown=function(a){var d=1===((a.buttons||a.button)&1);a=this.normalize(a);if(e.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||d)this.zoomOption(a),d&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var d=A[x(b.hoverChartIndex,-1)],
313
- c=this.chart.tooltip;c&&c.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),c&&!c.isHidden&&this.reset())};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};b.prototype.onContainerMouseMove=function(a){var d=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===d.mouseIsDown||this.touchSelect(a))&&
314
- this.drag(a);d.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var d=A[x(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};b.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);
315
- else this.zoomOption(a),this.touch(a,!0)};b.prototype.onDocumentMouseMove=function(a){var d=this.chart,c=this.chartPosition;a=this.normalize(a,c);var b=d.tooltip;!c||b&&b.isStickyOnContact()||d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var d=A[x(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.pinch=function(a){var b=this,c=b.chart,h=b.pinchDown,g=a.touches||
316
- [],k=g.length,m=b.lastValidTouch,e=b.hasZoom,l={},r=1===k&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),n={},y=b.selectionMarker;1<k?b.initiated=!0:1===k&&this.followTouchMove&&(b.initiated=!1);e&&b.initiated&&!r&&!1!==a.cancelable&&a.preventDefault();[].map.call(g,function(c){return b.normalize(c)});"touchstart"===a.type?([].forEach.call(g,function(c,a){h[a]={chartX:c.chartX,chartY:c.chartY}}),m.x=[h[0].chartX,h[1]&&h[1].chartX],m.y=[h[0].chartY,h[1]&&h[1].chartY],
317
- c.axes.forEach(function(a){if(a.zoomEnabled){var d=c.bounds[a.horiz?"h":"v"],b=a.minPixelPadding,g=a.toPixels(Math.min(x(a.options.min,a.dataMin),a.dataMin)),f=a.toPixels(Math.max(x(a.options.max,a.dataMax),a.dataMax)),h=Math.max(g,f);d.min=Math.min(a.pos,Math.min(g,f)-b);d.max=Math.max(a.pos+a.len,h+b)}}),b.res=!0):b.followTouchMove&&1===k?this.runPointActions(b.normalize(a)):h.length&&(f(c,"touchpan",{originalEvent:a},function(){y||(b.selectionMarker=y=d({destroy:C,touch:!0},c.plotBox));b.pinchTranslate(h,
318
- g,l,y,n,m);b.hasPinched=e;b.scaleGroups(l,n)}),b.res&&(b.res=!1,this.reset(!1,0)))};b.prototype.pinchTranslate=function(a,d,c,b,g,f){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,c,b,g,f);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,c,b,g,f)};b.prototype.pinchTranslateDirection=function(a,d,c,b,g,f,k,m){var h=this.chart,e=a?"x":"y",u=a?"X":"Y",p="chart"+u,l=a?"width":"height",r=h["plot"+(a?"Left":"Top")],w=h.inverted,n=h.bounds[a?"h":"v"],D=1===d.length,x=d[0][p],y=!D&&d[1][p];d=function(){"number"===
319
- typeof t&&20<Math.abs(x-y)&&(q=m||Math.abs(G-t)/Math.abs(x-y));B=(r-G)/q+x;F=h["plot"+(a?"Width":"Height")]/q};var F,B,q=m||1,G=c[0][p],t=!D&&c[1][p];d();c=B;if(c<n.min){c=n.min;var z=!0}else c+F>n.max&&(c=n.max-F,z=!0);z?(G-=.8*(G-k[e][0]),"number"===typeof t&&(t-=.8*(t-k[e][1])),d()):k[e]=[G,t];w||(f[e]=B-r,f[l]=F);f=w?1/q:q;g[l]=F;g[e]=c;b[w?a?"scaleY":"scaleX":"scale"+u]=q;b["translate"+u]=f*r+(G-f*x)};b.prototype.reset=function(a,d){var c=this.chart,b=c.hoverSeries,g=c.hoverPoint,f=c.hoverPoints,
320
- h=c.tooltip,k=h&&h.shared?f:g;a&&k&&r(k).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)h&&k&&r(k).length&&(h.refresh(k),h.shared&&f?f.forEach(function(c){c.setState(c.state,!0);c.series.isCartesian&&(c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):g&&(g.setState(g.state,!0),c.axes.forEach(function(c){c.crosshair&&g.series[c.coll]===c&&c.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();
321
- f&&f.forEach(function(c){c.setState()});if(b)b.onMouseOut();h&&h.hide(d);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(c){c.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};b.prototype.runPointActions=function(d,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,g=h?h.shared:!1,k=f||c.hoverPoint,m=k&&k.series||c.hoverSeries;f=this.getHoverData(k,m,c.series,(!d||"touchmove"!==d.type)&&(!!f||m&&m.directTouch&&this.isDirectTouch),
322
- g,d);k=f.hoverPoint;m=f.hoverSeries;var e=f.hoverPoints;f=m&&m.tooltipOptions.followPointer&&!m.tooltipOptions.split;var p=g&&m&&!m.noSharedTooltip;if(k&&(k!==c.hoverPoint||h&&h.isHidden)){(c.hoverPoints||[]).forEach(function(c){-1===e.indexOf(c)&&c.setState()});if(c.hoverSeries!==m)m.onMouseOver();this.applyInactiveState(e);(e||[]).forEach(function(c){c.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;c.hoverPoints=e;c.hoverPoint=k;k.firePointEvent("mouseOver",
323
- void 0,function(){h&&k&&h.refresh(p?e:k,d)})}else f&&h&&!h.isHidden&&(g=h.getAnchor([{}],d),c.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&h.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(c.container.ownerDocument,"mousemove",function(c){var a=A[b.hoverChartIndex];if(a)a.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));c.axes.forEach(function(b){var g=x((b.crosshair||{}).snap,!0),f;g&&((f=c.hoverPoint)&&f.series[b.coll]===b||(f=
324
- a(e,function(c){return c.series&&c.series[b.coll]===b})));f||!g?b.drawCrosshair(d,f):b.hideCrosshair()})};b.prototype.scaleGroups=function(a,d){var c=this.chart;c.series.forEach(function(b){var g=a||b.getPlotBox();b.group&&(b.xAxis&&b.xAxis.zoomEnabled||c.mapView)&&(b.group.attr(g),b.markerGroup&&(b.markerGroup.attr(g),b.markerGroup.clip(d?c.clipRect:null)),b.dataLabelsGroup&&b.dataLabelsGroup.attr(g))});c.clipRect.attr(d||c.clipBox)};b.prototype.setDOMEvents=function(){var a=this,d=this.chart.container,
325
- c=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(z(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(z(d,"mouseleave",this.onContainerMouseLeave.bind(this)));b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=z(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var f=this.chart.renderTo.parentElement;f&&"BODY"!==f.tagName;)this.eventsToUnbind.push(z(f,
326
- "scroll",function(){delete a.chartPosition})),f=f.parentElement;e.hasTouch&&(this.eventsToUnbind.push(z(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=z(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,d=e.charts[x(b.hoverChartIndex,-1)];if(d&&d!==a)d.pointer.onContainerMouseLeave({relatedTarget:a.container});
327
- d&&d.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,d){var c=this.chart,b;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(b=c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0}))&&!c.openMenu){d&&this.runPointActions(a);if("touchmove"===a.type){d=this.pinchDown;var g=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2)):!1}x(g,!0)&&this.pinch(a)}else d&&this.reset();else 2===a.touches.length&&this.pinch(a)};
328
- b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var d=this.chart,c=d.options.chart;d=d.inverted;var b=c.zoomType||"";/touch/.test(a.type)&&(b=x(c.pinchType,b));this.zoomX=a=/x/.test(b);this.zoomY=c=/y/.test(b);this.zoomHor=a&&!d||c&&d;this.zoomVert=c&&!d||a&&d;this.hasZoom=a||c};return b}();"";return b});J(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],
329
- function(b,e,v){function E(){var d=[];d.item=function(a){return this[a]};a(k,function(a){d.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return d}function t(a,d,b,f){var k=C[e.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,f(a),k[d]({type:b,target:a.currentTarget,preventDefault:q,touches:E()}))}var A=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=
330
- d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,b)};return function(d,b){function f(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}(),C=b.charts,z=b.doc,q=b.noop,l=b.win,n=v.addEvent,d=v.css,a=v.objectEach,f=v.removeEvent,k={},G=!!l.PointerEvent;return function(a){function e(){return null!==a&&a.apply(this,arguments)||this}A(e,a);e.isRequired=function(){return!(b.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)};e.prototype.batchMSEvents=
331
- function(a){a(this.chart.container,G?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,G?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(z,G?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};e.prototype.destroy=function(){this.batchMSEvents(f);a.prototype.destroy.call(this)};e.prototype.init=function(b,f){a.prototype.init.call(this,b,f);this.hasZoom&&d(b.container,{"-ms-touch-action":"none","touch-action":"none"})};e.prototype.onContainerPointerDown=
332
- function(a){t(a,"onContainerTouchStart","touchstart",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};e.prototype.onContainerPointerMove=function(a){t(a,"onContainerTouchMove","touchmove",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY};k[a.pointerId].target||(k[a.pointerId].target=a.currentTarget)})};e.prototype.onDocumentPointerUp=function(a){t(a,"onDocumentTouchEnd","touchend",function(a){delete k[a.pointerId]})};e.prototype.setDOMEvents=function(){a.prototype.setDOMEvents.call(this);
333
- (this.hasZoom||this.followTouchMove)&&this.batchMSEvents(n)};return e}(e)});J(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A){var C=b.animObject,z=b.setAnimation,q=e.format;b=v.isFirefox;var l=v.marginNames;v=v.win;var n=t.distribute,d=A.addEvent,a=A.createElement,f=A.css,k=A.defined,G=A.discardElement,y=A.find,B=A.fireEvent,
334
- x=A.isNumber,r=A.merge,m=A.pick,h=A.relativeLength,p=A.stableSort,c=A.syncTimeout;t=A.wrap;A=function(){function b(c,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=
335
- void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=c;this.init(c,a)}b.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(c){var a=m(c.padding,
336
- 8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=r(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=m(c.symbolWidth,16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(c,a){var d=this.chart;this.setOptions(r(!0,this.options,c));this.destroy();d.isDirtyLegend=d.isDirtyBox=
337
- !0;m(a,!0)&&d.redraw();B(this,"afterUpdate")};b.prototype.colorizeItem=function(c,a){c.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,b=c.legendItem,g=c.legendLine,f=c.legendSymbol,h=this.itemHiddenStyle.color;d=a?d.itemStyle.color:h;var k=a?c.color||h:h,m=c.options&&c.options.marker,e={fill:k};b&&b.css({fill:d,color:d});g&&g.attr({stroke:k});f&&(m&&f.isMarker&&(e=c.pointAttribs(),a||(e.stroke=e.fill=h)),f.attr(e))}B(this,"afterColorizeItem",
338
- {item:c,visible:a})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(c){var a=this,d=this.options,b=d.symbolPadding,g=!d.rtl,f=c._legendItemPos;d=f[0];f=f[1];var h=c.checkbox,m=c.legendGroup;m&&m.element&&(b={translateX:g?d:this.legendWidth-d-2*b-4,translateY:f},g=function(){B(a,"afterPositionItem",{item:c})},k(m.translateY)?m.animate(b,void 0,g):(m.attr(b),g()));h&&(h.x=d,h.y=f)};
339
- b.prototype.destroyItem=function(c){var a=c.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){c[a]&&(c[a]=c[a].destroy())});a&&G(c.checkbox)};b.prototype.destroy=function(){function c(c){this[c]&&(this[c]=this[c].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(c,a)});"clipRect up down pager nav box title group".split(" ").forEach(c,this);this.display=null};b.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr,
340
- a=this.clipHeight||this.legendHeight,d=this.titleHeight;if(c){var b=c.translateY;this.allItems.forEach(function(g){var h=g.checkbox;if(h){var k=b+d+h.y+(this.scrollOffset||0)+3;f(h,{left:c.translateX+g.checkboxOffset+h.x-20+"px",top:k+"px",display:this.proximate||k>b-6&&k<b+a-6?"":"none"})}},this)}};b.prototype.renderTitle=function(){var c=this.options,a=this.padding,d=c.title,b=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,a-3,a-4,void 0,void 0,void 0,c.useHTML,void 0,"legend-title").attr({zIndex:1}),
341
- this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),c=this.title.getBBox(),b=c.height,this.offsetWidth=c.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};b.prototype.setText=function(c){var a=this.options;c.legendItem.attr({text:a.labelFormat?q(a.labelFormat,c,this.chart):a.labelFormatter.call(c)})};b.prototype.renderItem=function(c){var a=this.chart,d=a.renderer,b=this.options,g=this.symbolWidth,f=b.symbolPadding||
342
- 0,h=this.itemStyle,k=this.itemHiddenStyle,e="horizontal"===b.layout?m(b.itemDistance,20):0,p=!b.rtl,l=!c.series,n=!l&&c.series.drawLegendSymbol?c.series:c,w=n.options,x=this.createCheckboxForItem&&w&&w.showCheckbox,y=b.useHTML,B=c.options.className,q=c.legendItem;w=g+f+e+(x?20:0);q||(c.legendGroup=d.g("legend-item").addClass("highcharts-"+n.type+"-series highcharts-color-"+c.colorIndex+(B?" "+B:"")+(l?" highcharts-series-"+c.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.legendItem=q=d.text("",
343
- p?g+f:-f,this.baseline||0,y),a.styledMode||q.css(r(c.visible?h:k)),q.attr({align:p?"left":"right",zIndex:2}).add(c.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(a.styledMode?12:h.fontSize,q),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,q.attr("y",this.baseline),this.symbolHeight=b.symbolHeight||this.fontMetrics.f,b.squareSymbol&&(this.symbolWidth=m(b.symbolWidth,Math.max(this.symbolHeight,16)),w=this.symbolWidth+f+e+(x?20:0),p&&q.attr("x",this.symbolWidth+f))),n.drawLegendSymbol(this,
344
- c),this.setItemEvents&&this.setItemEvents(c,q,y));x&&!c.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(c);this.colorizeItem(c,c.visible);!a.styledMode&&h.width||q.css({width:(b.itemWidth||this.widthOption||a.spacingBox.width)-w+"px"});this.setText(c);a=q.getBBox();d=this.fontMetrics&&this.fontMetrics.h||0;c.itemWidth=c.checkboxOffset=b.itemWidth||c.legendItemWidth||a.width+w;this.maxItemWidth=Math.max(this.maxItemWidth,c.itemWidth);this.totalItemWidth+=c.itemWidth;this.itemHeight=
345
- c.itemHeight=Math.round(c.legendItemHeight||(a.height>1.5*d?a.height:d))};b.prototype.layoutItem=function(c){var a=this.options,d=this.padding,b="horizontal"===a.layout,g=c.itemHeight,f=this.itemMarginBottom,h=this.itemMarginTop,k=b?m(a.itemDistance,20):0,e=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>e?this.maxItemWidth:c.itemWidth;b&&this.itemX-d+a>e&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+f),this.lastLineHeight=0);this.lastItemY=h+this.itemY+f;this.lastLineHeight=
346
- Math.max(g,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=a:(this.itemY+=h+g+f,this.lastLineHeight=g);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(c.checkbox?0:k):a)+d,this.offsetWidth)};b.prototype.getAllItems=function(){var c=[];this.chart.series.forEach(function(a){var d=a&&a.options;a&&m(d.showInLegend,k(d.linkedTo)?!1:void 0,!0)&&(c=c.concat(a.legendItems||("point"===d.legendType?a.data:a)))});B(this,"afterGetAllItems",{allItems:c});return c};b.prototype.getAlignment=
347
- function(){var c=this.options;return this.proximate?c.align.charAt(0)+"tv":c.floating?"":c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0)};b.prototype.adjustMargins=function(c,a){var d=this.chart,b=this.options,f=this.getAlignment();f&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,h){g.test(f)&&!k(c[h])&&(d[l[h]]=Math.max(d[l[h]],d.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*b[h%2?"x":"y"]+m(b.margin,12)+a[h]+(d.titleOffset[h]||0)))})};
348
- b.prototype.proximatePositions=function(){var c=this.chart,a=[],d="left"===this.options.align;this.allItems.forEach(function(b){var f;var g=d;if(b.yAxis){b.xAxis.options.reversed&&(g=!g);b.points&&(f=y(g?b.points:b.points.slice(0).reverse(),function(c){return x(c.plotY)}));g=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;var h=b.yAxis.top-c.plotTop;b.visible?(f=f?f.plotY:b.yAxis.height,f+=h-.3*g):f=h+b.yAxis.height;a.push({target:f,size:g,item:b})}},this);n(a,c.plotHeight).forEach(function(a){a.item._legendItemPos&&
349
- (a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos)})};b.prototype.render=function(){var c=this.chart,a=c.renderer,d=this.options,b=this.padding,f=this.getAllItems(),k=this.group,m=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=h(d.width,c.spacingBox.width-b);var e=c.spacingBox.width-2*b-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(e/=2);this.maxLegendWidth=this.widthOption||e;k||(this.group=k=a.g("legend").addClass(d.className||
350
- "").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(k),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();p(f,function(c,a){return(c.options&&c.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});d.reversed&&f.reverse();this.allItems=f;this.display=e=!!f.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;f.forEach(this.renderItem,this);f.forEach(this.layoutItem,this);f=(this.widthOption||this.offsetWidth)+b;var l=this.lastItemY+
351
- this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l);l+=b;m||(this.box=m=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(k));c.styledMode||m.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);if(0<f&&0<l)m[m.placed?"animate":"attr"](m.crisp.call({},{x:0,y:0,width:f,height:l},m.strokeWidth()));m[e?"show":"hide"]();c.styledMode&&"none"===k.getStyle("display")&&(f=l=0);this.legendWidth=f;this.legendHeight=l;e&&
352
- this.align();this.proximate||this.positionItems();B(this,"afterRender")};b.prototype.align=function(c){void 0===c&&(c=this.chart.spacingBox);var a=this.chart,d=this.options,b=c.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?b+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(b-=a.titleOffset[2]);b!==c.y&&(c=r(c,{y:b}));a.hasRendered||(this.group.placed=!1);this.group.align(r(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?
353
- "top":d.verticalAlign}),!0,c)};b.prototype.handleOverflow=function(c){var a=this,d=this.chart,b=d.renderer,f=this.options,g=f.y,h="top"===f.verticalAlign,k=this.padding,e=f.maxHeight,p=f.navigation,l=m(p.animation,!0),r=p.arrowSize||12,n=this.pages,w=this.allItems,x=function(c){"number"===typeof c?t.attr({height:c}):t&&(a.clipRect=t.destroy(),a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=c?"rect("+k+"px,9999px,"+(k+c)+"px,0)":"auto")},y=function(c){a[c]=b.circle(0,0,1.3*
354
- r).translate(r/2,r/2).add(G);d.styledMode||a[c].attr("fill","rgba(0,0,0,0.0001)");return a[c]},B,q;g=d.spacingBox.height+(h?-g:g)-k;var G=this.nav,t=this.clipRect;"horizontal"!==f.layout||"middle"===f.verticalAlign||f.floating||(g/=2);e&&(g=Math.min(g,e));n.length=0;c&&0<g&&c>g&&!1!==p.enabled?(this.clipHeight=B=Math.max(g-20-this.titleHeight-k,0),this.currentPage=m(this.currentPage,1),this.fullHeight=c,w.forEach(function(c,a){var d=c._legendItemPos[1],b=Math.round(c.legendItem.getBBox().height),
355
- f=n.length;if(!f||d-n[f-1]>B&&(q||d)!==n[f-1])n.push(q||d),f++;c.pageIx=f-1;q&&(w[a-1].pageIx=f-1);a===w.length-1&&d+b-n[f-1]>B&&b<=B&&(n.push(d),c.pageIx=f);d!==q&&(q=d)}),t||(t=a.clipRect=b.clipRect(0,k,9999,0),a.contentGroup.clip(t)),x(B),G||(this.nav=G=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,r,r).add(G),y("upTracker").on("click",function(){a.scroll(-1,l)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),!d.styledMode&&p.style&&this.pager.css(p.style),
356
- this.pager.add(G),this.down=b.symbol("triangle-down",0,0,r,r).add(G),y("downTracker").on("click",function(){a.scroll(1,l)})),a.scroll(0),c=g):G&&(x(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};b.prototype.scroll=function(a,d){var b=this,f=this.chart,g=this.pages,h=g.length,k=this.clipHeight,e=this.options.navigation,p=this.pager,l=this.padding,r=this.currentPage+a;r>h&&(r=h);0<r&&("undefined"!==typeof d&&z(d,f),this.nav.attr({translateX:l,translateY:k+
357
- this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(c){c.attr({"class":1===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),p.attr({text:r+"/"+h}),[this.down,this.downTracker].forEach(function(c){c.attr({x:18+this.pager.getBBox().width,"class":r===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),f.styledMode||(this.up.attr({fill:1===r?e.inactiveColor:e.activeColor}),this.upTracker.css({cursor:1===r?"default":
358
- "pointer"}),this.down.attr({fill:r===h?e.inactiveColor:e.activeColor}),this.downTracker.css({cursor:r===h?"default":"pointer"})),this.scrollOffset=-g[r-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=r,this.positionCheckboxes(),a=C(m(d,f.renderer.globalAnimation,!0)),c(function(){B(b,"afterScroll",{currentPage:r})},a.duration))};b.prototype.setItemEvents=function(c,a,d){var b=this,f=b.chart.renderer.boxWrapper,g=c instanceof E,h="highcharts-legend-"+
359
- (g?"point":"series")+"-active",k=b.chart.styledMode,m=function(a){b.allItems.forEach(function(d){c!==d&&[d].concat(d.linkedSeries||[]).forEach(function(c){c.setState(a,!g)})})};(d?[a,c.legendSymbol]:[c.legendGroup]).forEach(function(d){if(d)d.on("mouseover",function(){c.visible&&m("inactive");c.setState("hover");c.visible&&f.addClass(h);k||a.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||a.css(r(c.visible?b.itemStyle:b.itemHiddenStyle));m("");f.removeClass(h);c.setState()}).on("click",
360
- function(a){var d=function(){c.setVisible&&c.setVisible();m(c.visible?"inactive":"")};f.removeClass(h);a={browserEvent:a};c.firePointEvent?c.firePointEvent("legendItemClick",a,d):B(c,"legendItemClick",a,d)})})};b.prototype.createCheckboxForItem=function(c){c.checkbox=a("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:c.selected,defaultChecked:c.selected},this.options.itemCheckboxStyle,this.chart.container);d(c.checkbox,"click",function(a){B(c.series||c,"checkboxClick",{checked:a.target.checked,
361
- item:c},function(){c.select()})})};return b}();(/Trident\/7\.0/.test(v.navigator&&v.navigator.userAgent)||b)&&t(A.prototype,"positionItem",function(c,a){var d=this,b=function(){a._legendItemPos&&c.call(d,a)};b();d.bubbleLegend||setTimeout(b)});"";return A});J(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/DefaultOptions.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=e.defaultOptions,A=E.error,C=E.extendClass,z=E.merge,q;(function(e){function l(d,a){var b=
362
- t.plotOptions||{},k=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=v);a.prototype.type=d;k&&(b[d]=k);e.seriesTypes[d]=a}e.seriesTypes=b.seriesTypes;e.getSeries=function(d,a){void 0===a&&(a={});var b=d.options.chart;b=a.type||b.type||b.defaultSeriesType||"";var k=e.seriesTypes[b];e||A(17,!0,d,{missingModuleFor:b});b=new k;"function"===typeof b.init&&b.init(d,a);return b};e.registerSeriesType=l;e.seriesType=function(d,a,b,k,n){var f=t.plotOptions||{};a=a||"";f[d]=z(f[a],b);l(d,C(e.seriesTypes[a]||
363
- function(){},k));e.seriesTypes[d].prototype.type=d;n&&(e.seriesTypes[d].prototype.pointClass=C(v,n));return e.seriesTypes[d]}})(q||(q={}));return q});J(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/FormatUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/Legend.js"],e["Core/MSPointer.js"],e["Core/DefaultOptions.js"],e["Core/Pointer.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],
364
- e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"]],function(b,e,v,E,t,A,C,z,q,l,n,d,a,f,k){var G=b.animate,y=b.animObject,B=b.setAnimation,x=v.numberFormat,r=E.registerEventOptions,m=t.charts,h=t.doc,p=t.marginNames,c=t.svg,w=t.win,g=z.defaultOptions,F=z.defaultTime,u=n.seriesTypes,D=f.addEvent,H=f.attr,L=f.cleanRecursively,I=f.createElement,K=f.css,S=f.defined,X=f.discardElement,J=f.erase,M=f.error,ca=f.extend,ha=f.find,N=f.fireEvent,Z=f.getStyle,R=f.isArray,aa=f.isNumber,Q=
365
- f.isObject,U=f.isString,T=f.merge,V=f.objectEach,O=f.pick,da=f.pInt,ea=f.relativeLength,ia=f.removeEvent,ba=f.splat,fa=f.syncTimeout,ja=f.uniqueKey;b=function(){function b(c,a,d){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=
366
- this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(c,a,d)}b.chart=function(c,a,d){return new b(c,a,d)};b.prototype.getArgs=function(c,a,d){U(c)||c.nodeName?(this.renderTo=c,this.init(a,d)):this.init(c,a)};b.prototype.init=function(c,d){var b=c.plotOptions||{};N(this,"init",{args:arguments},function(){var f=T(g,c),h=f.chart;V(f.plotOptions,
367
- function(c,a){Q(c)&&(c.tooltip=b[a]&&T(b[a].tooltip)||void 0)});f.tooltip.userOptions=c.chart&&c.chart.forExport&&c.tooltip.userOptions||c.tooltip;this.userOptions=c;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=d;this.isResizing=0;this.options=f;this.axes=[];this.series=[];this.time=c.time&&Object.keys(c.time).length?new a(c.time):t.time;this.numberFormatter=h.numberFormatter||x;this.styledMode=h.styledMode;this.hasCartesianSeries=h.showAxes;this.index=
368
- m.length;m.push(this);t.chartCount++;r(this,h);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;N(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(c){var a=this.options.chart;a=c.type||a.type||a.defaultSeriesType;var d=u[a];d||M(17,!0,this,{missingModuleFor:a});a=new d;"function"===typeof a.init&&a.init(this,c);return a};b.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(c){c.points||c.data||!c.enabledDataSorting||
369
- c.setData(c.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(c,a){return c.linkedSeries.length||a.linkedSeries.length?a.linkedSeries.length-c.linkedSeries.length:0})};b.prototype.orderSeries=function(c){var a=this.series;c=c||0;for(var d=a.length;c<d;++c)a[c]&&(a[c].index=c,a[c].name=a[c].getName())};b.prototype.isInsidePlot=function(c,a,d){void 0===d&&(d={});var b=this.inverted,f=this.plotBox,g=this.plotLeft,h=this.plotTop,k=this.scrollablePlotBox,
370
- m=0;var e=0;d.visiblePlotOnly&&this.scrollingContainer&&(e=this.scrollingContainer,m=e.scrollLeft,e=e.scrollTop);var p=d.series;f=d.visiblePlotOnly&&k||f;k=d.inverted?a:c;a=d.inverted?c:a;c={x:k,y:a,isInsidePlot:!0};if(!d.ignoreX){var l=p&&(b?p.yAxis:p.xAxis)||{pos:g,len:Infinity};k=d.paneCoordinates?l.pos+k:g+k;k>=Math.max(m+g,l.pos)&&k<=Math.min(m+g+f.width,l.pos+l.len)||(c.isInsidePlot=!1)}!d.ignoreY&&c.isInsidePlot&&(b=p&&(b?p.xAxis:p.yAxis)||{pos:h,len:Infinity},d=d.paneCoordinates?b.pos+a:h+
371
- a,d>=Math.max(e+h,b.pos)&&d<=Math.min(e+h+f.height,b.pos+b.len)||(c.isInsidePlot=!1));N(this,"afterIsInsidePlot",c);return c.isInsidePlot};b.prototype.redraw=function(c){N(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],d=this.series,b=this.pointer,f=this.legend,g=this.userOptions.legend,h=this.renderer,k=h.isHidden(),m=[],e=this.isDirtyBox,p=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);B(this.hasRendered?c:!1,this);k&&this.temporaryDisplay();this.layOutTitles();
372
- for(c=d.length;c--;){var l=d[c];if(l.options.stacking||l.options.centerInCategory){var u=!0;if(l.isDirty){var r=!0;break}}}if(r)for(c=d.length;c--;)l=d[c],l.options.stacking&&(l.isDirty=!0);d.forEach(function(c){c.isDirty&&("point"===c.options.legendType?("function"===typeof c.updateTotals&&c.updateTotals(),p=!0):g&&(g.labelFormatter||g.labelFormat)&&(p=!0));c.isDirtyData&&N(c,"updatedData")});p&&f&&f.options.enabled&&(f.render(),this.isDirtyLegend=!1);u&&this.getStacks();a.forEach(function(c){c.updateNames();
373
- c.setScale()});this.getMargins();a.forEach(function(c){c.isDirty&&(e=!0)});a.forEach(function(c){var a=c.min+","+c.max;c.extKey!==a&&(c.extKey=a,m.push(function(){N(c,"afterSetExtremes",ca(c.eventArgs,c.getExtremes()));delete c.eventArgs}));(e||u)&&c.redraw()});e&&this.drawChartBox();N(this,"predraw");d.forEach(function(c){(e||c.isDirty)&&c.visible&&c.redraw();c.isDirtyData=!1});b&&b.reset(!0);h.draw();N(this,"redraw");N(this,"render");k&&this.temporaryDisplay(!0);m.forEach(function(c){c.call()})};
374
- b.prototype.get=function(c){function a(a){return a.id===c||a.options&&a.options.id===c}for(var d=this.series,b=ha(this.axes,a)||ha(this.series,a),f=0;!b&&f<d.length;f++)b=ha(d[f].points||[],a);return b};b.prototype.getAxes=function(){var c=this,a=this.options,d=a.xAxis=ba(a.xAxis||{});a=a.yAxis=ba(a.yAxis||{});N(this,"getAxes");d.forEach(function(c,a){c.index=a;c.isX=!0});a.forEach(function(c,a){c.index=a});d.concat(a).forEach(function(a){new e(c,a)});N(this,"afterGetAxes")};b.prototype.getSelectedPoints=
375
- function(){return this.series.reduce(function(c,a){a.getPointsCollection().forEach(function(a){O(a.selectedStaging,a.selected)&&c.push(a)});return c},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(c){return c.selected})};b.prototype.setTitle=function(c,a,d){this.applyDescription("title",c);this.applyDescription("subtitle",a);this.applyDescription("caption",void 0);this.layOutTitles(d)};b.prototype.applyDescription=function(c,a){var d=this,b="title"===c?{color:"#333333",
376
- fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};b=this.options[c]=T(!this.styledMode&&{style:b},this.options[c],a);var f=this[c];f&&a&&(this[c]=f=f.destroy());b&&!f&&(f=this.renderer.text(b.text,0,0,b.useHTML).attr({align:b.align,"class":"highcharts-"+c,zIndex:b.zIndex||4}).add(),f.update=function(a){d[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[c]](a)},this.styledMode||f.css(b.style),this[c]=f)};b.prototype.layOutTitles=function(c){var a=[0,0,0],d=this.renderer,
377
- b=this.spacingBox;["title","subtitle","caption"].forEach(function(c){var f=this[c],g=this.options[c],h=g.verticalAlign||"top";c="title"===c?"top"===h?-3:0:"top"===h?a[0]+2:0;var k;if(f){this.styledMode||(k=g.style&&g.style.fontSize);k=d.fontMetrics(k,f).b;f.css({width:(g.width||b.width+(g.widthAdjust||0))+"px"});var m=Math.round(f.getBBox(g.useHTML).height);f.align(ca({y:"bottom"===h?k:c+k,height:m},g),!1,"spacingBox");g.floating||("top"===h?a[0]=Math.ceil(a[0]+m):"bottom"===h&&(a[2]=Math.ceil(a[2]+
378
- m)))}},this);a[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a[0]+=this.options.title.margin);a[2]&&"bottom"===this.options.caption.verticalAlign&&(a[2]+=this.options.caption.margin);var f=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a;N(this,"afterLayOutTitles");!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=f,this.hasRendered&&O(c,!0)&&this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var c=this.options.chart,a=c.width;c=c.height;
379
- var d=this.renderTo;S(a)||(this.containerWidth=Z(d,"width"));S(c)||(this.containerHeight=Z(d,"height"));this.chartWidth=Math.max(0,a||this.containerWidth||600);this.chartHeight=Math.max(0,ea(c,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(c){var a=this.renderTo;if(c)for(;a&&a.style;)a.hcOrigStyle&&(K(a,a.hcOrigStyle),delete a.hcOrigStyle),a.hcOrigDetached&&(h.body.removeChild(a),a.hcOrigDetached=!1),a=a.parentNode;else for(;a&&a.style;){h.body.contains(a)||
380
- a.parentNode||(a.hcOrigDetached=!0,h.body.appendChild(a));if("none"===Z(a,"display",!1)||a.hcOricDetached)a.hcOrigStyle={display:a.style.display,height:a.style.height,overflow:a.style.overflow},c={display:"block",overflow:"hidden"},a!==this.renderTo&&(c.height=0),K(a,c),a.offsetWidth||a.style.setProperty("display","block","important");a=a.parentNode;if(a===h.body)break}};b.prototype.setClassName=function(c){this.container.className="highcharts-container "+(c||"")};b.prototype.getContainer=function(){var a=
381
- this.options,b=a.chart,f=ja(),g,e=this.renderTo;e||(this.renderTo=e=b.renderTo);U(e)&&(this.renderTo=e=h.getElementById(e));e||M(13,!0,this);var p=da(H(e,"data-highcharts-chart"));aa(p)&&m[p]&&m[p].hasRendered&&m[p].destroy();H(e,"data-highcharts-chart",this.index);e.innerHTML=k.emptyHTML;b.skipClone||e.offsetWidth||this.temporaryDisplay();this.getChartSize();p=this.chartWidth;var u=this.chartHeight;K(e,{overflow:"hidden"});this.styledMode||(g=ca({position:"relative",overflow:"hidden",width:p+"px",
382
- height:u+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=f=I("div",{id:f},g,e);this._cursor=f.style.cursor;this.renderer=new (b.renderer||!c?l.getRendererType(b.renderer):d)(f,p,u,void 0,b.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);B(void 0,this);this.setClassName(b.className);if(this.styledMode)for(var r in a.defs)this.renderer.definition(a.defs[r]);
383
- else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;N(this,"afterGetContainer")};b.prototype.getMargins=function(c){var a=this.spacing,d=this.margin,b=this.titleOffset;this.resetMargins();b[0]&&!S(d[0])&&(this.plotTop=Math.max(this.plotTop,b[0]+a[0]));b[2]&&!S(d[2])&&(this.marginBottom=Math.max(this.marginBottom,b[2]+a[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(d,a);N(this,"getMargins");c||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var c=
384
- this,a=c.axisOffset=[0,0,0,0],d=c.colorAxis,b=c.margin,f=function(c){c.forEach(function(c){c.visible&&c.getOffset()})};c.hasCartesianSeries?f(c.axes):d&&d.length&&f(d);p.forEach(function(d,f){S(b[f])||(c[d]+=a[f])});c.setChartSize()};b.prototype.reflow=function(c){var a=this,d=a.options.chart,b=a.renderTo,g=S(d.width)&&S(d.height),k=d.width||Z(b,"width");d=d.height||Z(b,"height");b=c?c.target:w;delete a.pointer.chartPosition;if(!g&&!a.isPrinting&&k&&d&&(b===w||b===h)){if(k!==a.containerWidth||d!==
385
- a.containerHeight)f.clearTimeout(a.reflowTimeout),a.reflowTimeout=fa(function(){a.container&&a.setSize(void 0,void 0,!1)},c?100:0);a.containerWidth=k;a.containerHeight=d}};b.prototype.setReflow=function(c){var a=this;!1===c||this.unbindReflow?!1===c&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=D(w,"resize",function(c){a.options&&a.reflow(c)}),D(this,"destroy",this.unbindReflow))};b.prototype.setSize=function(c,a,d){var b=this,f=b.renderer;b.isResizing+=1;B(d,b);d=
386
- f.globalAnimation;b.oldChartHeight=b.chartHeight;b.oldChartWidth=b.chartWidth;"undefined"!==typeof c&&(b.options.chart.width=c);"undefined"!==typeof a&&(b.options.chart.height=a);b.getChartSize();b.styledMode||(d?G:K)(b.container,{width:b.chartWidth+"px",height:b.chartHeight+"px"},d);b.setChartSize(!0);f.setSize(b.chartWidth,b.chartHeight,d);b.axes.forEach(function(c){c.isDirty=!0;c.setScale()});b.isDirtyLegend=!0;b.isDirtyBox=!0;b.layOutTitles();b.getMargins();b.redraw(d);b.oldChartHeight=null;N(b,
387
- "resize");fa(function(){b&&N(b,"endResize",null,function(){--b.isResizing})},y(d).duration)};b.prototype.setChartSize=function(c){var a=this.inverted,d=this.renderer,b=this.chartWidth,f=this.chartHeight,g=this.options.chart,h=this.spacing,k=this.clipOffset,m,e,p,l;this.plotLeft=m=Math.round(this.plotLeft);this.plotTop=e=Math.round(this.plotTop);this.plotWidth=p=Math.max(0,Math.round(b-m-this.marginRight));this.plotHeight=l=Math.max(0,Math.round(f-e-this.marginBottom));this.plotSizeX=a?l:p;this.plotSizeY=
388
- a?p:l;this.plotBorderWidth=g.plotBorderWidth||0;this.spacingBox=d.spacingBox={x:h[3],y:h[0],width:b-h[3]-h[1],height:f-h[0]-h[2]};this.plotBox=d.plotBox={x:m,y:e,width:p,height:l};a=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(a,k[3])/2);f=Math.ceil(Math.max(a,k[0])/2);this.clipBox={x:b,y:f,width:Math.floor(this.plotSizeX-Math.max(a,k[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,k[2])/2-f))};c||(this.axes.forEach(function(c){c.setAxisSize();c.setAxisTranslation()}),
389
- d.alignElements());N(this,"afterSetChartSize",{skipAxes:c})};b.prototype.resetMargins=function(){N(this,"resetMargins");var c=this,a=c.options.chart;["margin","spacing"].forEach(function(d){var b=a[d],f=Q(b)?b:[b,b,b,b];["Top","Right","Bottom","Left"].forEach(function(b,g){c[d][g]=O(a[d+b],f[g])})});p.forEach(function(a,d){c[a]=O(c.margin[d],c.spacing[d])});c.axisOffset=[0,0,0,0];c.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var c=this.options.chart,a=this.renderer,d=this.chartWidth,
390
- b=this.chartHeight,f=this.styledMode,g=this.plotBGImage,h=c.backgroundColor,k=c.plotBackgroundColor,m=c.plotBackgroundImage,e=this.plotLeft,p=this.plotTop,l=this.plotWidth,u=this.plotHeight,r=this.plotBox,n=this.clipRect,w=this.clipBox,x=this.chartBackground,y=this.plotBackground,B=this.plotBorder,D,q="animate";x||(this.chartBackground=x=a.rect().addClass("highcharts-background").add(),q="attr");if(f)var H=D=x.strokeWidth();else{H=c.borderWidth||0;D=H+(c.shadow?8:0);h={fill:h||"none"};if(H||x["stroke-width"])h.stroke=
391
- c.borderColor,h["stroke-width"]=H;x.attr(h).shadow(c.shadow)}x[q]({x:D/2,y:D/2,width:d-D-H%2,height:b-D-H%2,r:c.borderRadius});q="animate";y||(q="attr",this.plotBackground=y=a.rect().addClass("highcharts-plot-background").add());y[q](r);f||(y.attr({fill:k||"none"}).shadow(c.plotShadow),m&&(g?(m!==g.attr("href")&&g.attr("href",m),g.animate(r)):this.plotBGImage=a.image(m,e,p,l,u).add()));n?n.animate({width:w.width,height:w.height}):this.clipRect=a.clipRect(w);q="animate";B||(q="attr",this.plotBorder=
392
- B=a.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f||B.attr({stroke:c.plotBorderColor,"stroke-width":c.plotBorderWidth||0,fill:"none"});B[q](B.crisp({x:e,y:p,width:l,height:u},-B.strokeWidth()));this.isDirtyBox=!1;N(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var c=this,a=c.options.chart,d=c.options.series,b,f,g;["inverted","angular","polar"].forEach(function(h){f=u[a.type||a.defaultSeriesType];g=a[h]||f&&f.prototype[h];for(b=d&&d.length;!g&&b--;)(f=u[d[b].type])&&
393
- f.prototype[h]&&(g=!0);c[h]=g})};b.prototype.linkSeries=function(){var c=this,a=c.series;a.forEach(function(c){c.linkedSeries.length=0});a.forEach(function(a){var d=a.options.linkedTo;U(d)&&(d=":previous"===d?c.series[a.index-1]:c.get(d))&&d.linkedParent!==a&&(d.linkedSeries.push(a),a.linkedParent=d,d.enabledDataSorting&&a.setDataSortingOptions(),a.visible=O(a.options.visible,d.options.visible,a.visible))});N(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(c){c.translate();
394
- c.render()})};b.prototype.renderLabels=function(){var c=this,a=c.options.labels;a.items&&a.items.forEach(function(d){var b=ca(a.style,d.style),f=da(b.left)+c.plotLeft,g=da(b.top)+c.plotTop+12;delete b.left;delete b.top;c.renderer.text(d.html,f,g).attr({zIndex:2}).css(b).add()})};b.prototype.render=function(){var c=this.axes,a=this.colorAxis,d=this.renderer,b=this.options,f=function(c){c.forEach(function(c){c.visible&&c.render()})},g=0;this.setTitle();this.legend=new A(this,b.legend);this.getStacks&&
395
- this.getStacks();this.getMargins(!0);this.setChartSize();b=this.plotWidth;c.some(function(c){if(c.horiz&&c.visible&&c.options.labels.enabled&&c.series.length)return g=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-g,0);c.forEach(function(c){c.setScale()});this.getAxisMargins();var k=1.1<b/this.plotWidth,m=1.05<h/this.plotHeight;if(k||m)c.forEach(function(c){(c.horiz&&k||!c.horiz&&m)&&c.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f(c):a&&a.length&&f(a);
396
- this.seriesGroup||(this.seriesGroup=d.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(c){var a=this,d=T(!0,this.options.credits,c);d.enabled&&!this.credits&&(this.credits=this.renderer.text(d.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){d.href&&(w.location.href=d.href)}).attr({align:d.position.align,zIndex:8}),a.styledMode||
397
- this.credits.css(d.style),this.credits.add().align(d.position),this.credits.update=function(c){a.credits=a.credits.destroy();a.addCredits(c)})};b.prototype.destroy=function(){var c=this,a=c.axes,d=c.series,b=c.container,f=b&&b.parentNode,g;N(c,"destroy");c.renderer.forExport?J(m,c):m[c.index]=void 0;t.chartCount--;c.renderTo.removeAttribute("data-highcharts-chart");ia(c);for(g=a.length;g--;)a[g]=a[g].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(g=d.length;g--;)d[g]=
398
- d[g].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(a){var d=c[a];d&&d.destroy&&(c[a]=d.destroy())});b&&(b.innerHTML=k.emptyHTML,ia(b),f&&X(b));V(c,function(a,d){delete c[d]})};b.prototype.firstRender=function(){var c=this,a=c.options;if(!c.isReadyToRender||c.isReadyToRender()){c.getContainer();c.resetMargins();c.setChartSize();c.propFromSeries();
399
- c.getAxes();(R(a.series)?a.series:[]).forEach(function(a){c.initSeries(a)});c.linkSeries();c.setSeriesData();N(c,"beforeRender");q&&(C.isRequired()?c.pointer=new C(c,a):c.pointer=new q(c,a));c.render();c.pointer.getChartPosition();if(!c.renderer.imgCount&&!c.hasLoaded)c.onload();c.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(c){c&&"undefined"!==typeof this.index&&c.apply(this,[this])},this);N(this,"load");N(this,"render");S(this.index)&&
400
- this.setReflow(this.options.chart.reflow);this.hasLoaded=!0};b.prototype.addSeries=function(c,a,d){var b=this,f;c&&(a=O(a,!0),N(b,"addSeries",{options:c},function(){f=b.initSeries(c);b.isDirtyLegend=!0;b.linkSeries();f.enabledDataSorting&&f.setData(c.data,!1);N(b,"afterAddSeries",{series:f});a&&b.redraw(d)}));return f};b.prototype.addAxis=function(c,a,d,b){return this.createAxis(a?"xAxis":"yAxis",{axis:c,redraw:d,animation:b})};b.prototype.addColorAxis=function(c,a,d){return this.createAxis("colorAxis",
401
- {axis:c,redraw:a,animation:d})};b.prototype.createAxis=function(c,a){c=new e(this,T(a.axis,{index:this[c].length,isX:"xAxis"===c}));O(a.redraw,!0)&&this.redraw(a.animation);return c};b.prototype.showLoading=function(c){var a=this,d=a.options,b=d.loading,f=function(){g&&K(g,{left:a.plotLeft+"px",top:a.plotTop+"px",width:a.plotWidth+"px",height:a.plotHeight+"px"})},g=a.loadingDiv,h=a.loadingSpan;g||(a.loadingDiv=g=I("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a.container));
402
- h||(a.loadingSpan=h=I("span",{className:"highcharts-loading-inner"},null,g),D(a,"redraw",f));g.className="highcharts-loading";k.setElementHTML(h,O(c,d.lang.loading,""));a.styledMode||(K(g,ca(b.style,{zIndex:10})),K(h,b.labelStyle),a.loadingShown||(K(g,{opacity:0,display:""}),G(g,{opacity:b.style.opacity||.5},{duration:b.showDuration||0})));a.loadingShown=!0;f()};b.prototype.hideLoading=function(){var c=this.options,a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden",this.styledMode||
403
- G(a,{opacity:0},{duration:c.loading.hideDuration||100,complete:function(){K(a,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(c,d,b,f){var g=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},k=c.isResponsiveOptions,m=[],e,p;N(g,"update",{options:c});k||g.setResponsive(!1,!0);c=L(c,g.options);g.userOptions=T(g.userOptions,c);var l=c.chart;if(l){T(!0,g.options.chart,l);"className"in l&&g.setClassName(l.className);"reflow"in l&&g.setReflow(l.reflow);
404
- if("inverted"in l||"polar"in l||"type"in l){g.propFromSeries();var u=!0}"alignTicks"in l&&(u=!0);"events"in l&&r(this,l);V(l,function(c,a){-1!==g.propsRequireUpdateSeries.indexOf("chart."+a)&&(e=!0);-1!==g.propsRequireDirtyBox.indexOf(a)&&(g.isDirtyBox=!0);-1!==g.propsRequireReflow.indexOf(a)&&(k?g.isDirtyBox=!0:p=!0)});!g.styledMode&&l.style&&g.renderer.setStyle(g.options.chart.style||{})}!g.styledMode&&c.colors&&(this.options.colors=c.colors);c.time&&(this.time===F&&(this.time=new a(c.time)),T(!0,
405
- g.options.time,c.time));V(c,function(a,d){if(g[d]&&"function"===typeof g[d].update)g[d].update(a,!1);else if("function"===typeof g[h[d]])g[h[d]](a);else"colors"!==d&&-1===g.collectionsWithUpdate.indexOf(d)&&T(!0,g.options[d],c[d]);"chart"!==d&&-1!==g.propsRequireUpdateSeries.indexOf(d)&&(e=!0)});this.collectionsWithUpdate.forEach(function(a){if(c[a]){var d=[];g[a].forEach(function(c,a){c.options.isInternal||d.push(O(c.options.index,a))});ba(c[a]).forEach(function(c,f){var h=S(c.id),k;h&&(k=g.get(c.id));
406
- !k&&g[a]&&(k=g[a][d?d[f]:f])&&h&&S(k.options.id)&&(k=void 0);k&&k.coll===a&&(k.update(c,!1),b&&(k.touched=!0));!k&&b&&g.collectionsWithInit[a]&&(g.collectionsWithInit[a][0].apply(g,[c].concat(g.collectionsWithInit[a][1]||[]).concat([!1])).touched=!0)});b&&g[a].forEach(function(c){c.touched||c.options.isInternal?delete c.touched:m.push(c)})}});m.forEach(function(c){c.chart&&c.remove&&c.remove(!1)});u&&g.axes.forEach(function(c){c.update({},!1)});e&&g.getSeriesOrderByLinks().forEach(function(c){c.chart&&
407
- c.update({},!1)},this);u=l&&l.width;l=l&&(U(l.height)?ea(l.height,u||g.chartWidth):l.height);p||aa(u)&&u!==g.chartWidth||aa(l)&&l!==g.chartHeight?g.setSize(u,l,f):O(d,!0)&&g.redraw(f);N(g,"afterUpdate",{options:c,redraw:d,animation:f})};b.prototype.setSubtitle=function(c,a){this.applyDescription("subtitle",c);this.layOutTitles(a)};b.prototype.setCaption=function(c,a){this.applyDescription("caption",c);this.layOutTitles(a)};b.prototype.showResetZoom=function(){function c(){a.zoomOut()}var a=this,d=
408
- g.lang,b=a.options.chart.resetZoomButton,f=b.theme,h=f.states,k="chart"===b.relativeTo||"spacingBox"===b.relativeTo?null:"scrollablePlotBox";N(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(d.resetZoom,null,null,c,f,h&&h.hover).attr({align:b.position.align,title:d.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(b.position,!1,k)});N(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){N(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=
409
- function(c){var a=this,d=a.pointer,b=a.inverted?d.mouseDownX:d.mouseDownY,f=!1,g;!c||c.resetSelection?(a.axes.forEach(function(c){g=c.zoom()}),d.initiated=!1):c.xAxis.concat(c.yAxis).forEach(function(c){var h=c.axis,k=a.inverted?h.left:h.top,m=a.inverted?k+h.width:k+h.height,e=h.isXAxis,l=!1;if(!e&&b>=k&&b<=m||e||!S(b))l=!0;d[e?"zoomX":"zoomY"]&&l&&(g=h.zoom(c.min,c.max),h.displayBtn&&(f=!0))});var h=a.resetZoomButton;f&&!h?a.showResetZoom():!f&&Q(h)&&(a.resetZoomButton=h.destroy());g&&a.redraw(O(a.options.chart.animation,
410
- c&&c.animation,100>a.pointCount))};b.prototype.pan=function(c,a){var d=this,b=d.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var f=d.options.chart,g=d.options.mapNavigation&&d.options.mapNavigation.enabled;f&&f.panning&&(f.panning=a);var h=a.type,k;N(this,"pan",{originalEvent:c},function(){b&&b.forEach(function(c){c.setState()});var a=d.xAxis;"xy"===h?a=a.concat(d.yAxis):"y"===h&&(a=d.yAxis);var f={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var b=a.horiz,
411
- m=c[b?"chartX":"chartY"];b=b?"mouseDownX":"mouseDownY";var e=d[b],l=a.minPointOffset||0,p=a.reversed&&!d.inverted||!a.reversed&&d.inverted?-1:1,u=a.getExtremes(),r=a.toValue(e-m,!0)+l*p,n=a.toValue(e+a.len-m,!0)-(l*p||a.isXAxis&&a.pointRangePadding||0),w=n<r;p=a.hasVerticalPanning();e=w?n:r;r=w?r:n;var x=a.panningState;!p||a.isXAxis||x&&!x.isDirty||a.series.forEach(function(c){var a=c.getProcessedData(!0);a=c.getExtremes(a.yData,!0);x||(x={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});aa(a.dataMin)&&
412
- aa(a.dataMax)&&(x.startMin=Math.min(O(c.options.threshold,Infinity),a.dataMin,x.startMin),x.startMax=Math.max(O(c.options.threshold,-Infinity),a.dataMax,x.startMax))});p=Math.min(O(x&&x.startMin,u.dataMin),l?u.min:a.toValue(a.toPixels(u.min)-a.minPixelPadding));n=Math.max(O(x&&x.startMax,u.dataMax),l?u.max:a.toValue(a.toPixels(u.max)+a.minPixelPadding));a.panningState=x;a.isOrdinal||(l=p-e,0<l&&(r+=l,e=p),l=r-n,0<l&&(r=n,e-=l),a.series.length&&e!==u.min&&r!==u.max&&e>=p&&r<=n&&(a.setExtremes(e,r,
413
- !1,!1,{trigger:"pan"}),d.resetZoomButton||g||e===p||r===n||!h.match("y")||(d.showResetZoom(),a.displayBtn=!1),k=!0),f[b]=m)}});V(f,function(c,a){d[a]=c});k&&d.redraw(!1);K(d.container,{cursor:"move"})})};return b}();ca(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
414
- propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});J(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],function(b){var e=b.merge,v=b.pick,E;(function(b){b.drawLineMarker=function(b){var t=this.options,z=b.symbolWidth,q=b.symbolHeight,l=q/2,n=this.chart.renderer,
415
- d=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var a={},f=t.marker;this.chart.styledMode||(a={"stroke-width":t.lineWidth||0},t.dashStyle&&(a.dashstyle=t.dashStyle));this.legendLine=n.path([["M",0,b],["L",z,b]]).addClass("highcharts-graph").attr(a).add(d);f&&!1!==f.enabled&&z&&(t=Math.min(v(f.radius,l),l),0===this.symbol.indexOf("url")&&(f=e(f,{width:q,height:q}),t=0),this.legendSymbol=z=n.symbol(this.symbol,z/2-t,b-t,2*t,2*t,f).addClass("highcharts-point").add(d),z.isMarker=!0)};b.drawRectangle=
416
- function(b,e){var t=b.symbolHeight,q=b.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(q?(b.symbolWidth-t)/2:0,b.baseline-t+1,q?t:b.symbolWidth,t,v(b.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}})(E||(E={}));return E});J(e,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},
417
- hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var b=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":b(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},
418
- hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});J(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/DefaultOptions.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],
419
- e["Core/Utilities.js"]],function(b,e,v,E,t,A,C,z,q,l){var n=b.animObject,d=b.setAnimation,a=e.defaultOptions,f=v.registerEventOptions,k=E.hasTouch,G=E.svg,y=E.win,B=z.seriesTypes,x=l.addEvent,r=l.arrayMax,m=l.arrayMin,h=l.clamp,p=l.cleanRecursively,c=l.correctFloat,w=l.defined,g=l.erase,F=l.error,u=l.extend,D=l.find,H=l.fireEvent,L=l.getNestedProperty,I=l.isArray,K=l.isNumber,S=l.isString,X=l.merge,J=l.objectEach,M=l.pick,ca=l.removeEvent,ha=l.splat,N=l.syncTimeout;b=function(){function b(){this.zones=
420
- this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(c,a){H(this,"init",{options:a});var b=this,d=c.series;this.eventsToUnbind=[];b.chart=c;b.options=b.setOptions(a);a=b.options;b.linkedSeries=[];b.bindAxes();u(b,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});f(this,a);var g=
421
- a.events;if(g&&g.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)c.runTrackerClick=!0;b.getColor();b.getSymbol();b.parallelArrays.forEach(function(c){b[c+"Data"]||(b[c+"Data"]=[])});b.isCartesian&&(c.hasCartesianSeries=!0);var h;d.length&&(h=d[d.length-1]);b._i=M(h&&h._i,-1)+1;b.opacity=b.options.opacity;c.orderSeries(this.insert(d));a.dataSorting&&a.dataSorting.enabled?b.setDataSortingOptions():b.points||b.data||b.setData(a.data,!1);H(this,"afterInit")};b.prototype.is=function(c){return B[c]&&
422
- this instanceof B[c]};b.prototype.insert=function(c){var a=this.options.index,b;if(K(a)){for(b=c.length;b--;)if(a>=M(c[b].options.index,c[b]._i)){c.splice(b+1,0,this);break}-1===b&&c.unshift(this);b+=1}else c.push(this);return M(b,c.length-1)};b.prototype.bindAxes=function(){var c=this,a=c.options,b=c.chart,d;H(this,"bindAxes",null,function(){(c.axisTypes||[]).forEach(function(f){var g=0;b[f].forEach(function(b){d=b.options;if(a[f]===g&&!d.isInternal||"undefined"!==typeof a[f]&&a[f]===d.id||"undefined"===
423
- typeof a[f]&&0===d.index)c.insert(b.series),c[f]=b,b.isDirty=!0;d.isInternal||g++});c[f]||c.optionalAxis===f||F(18,!0,b)})});H(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(c,a){var b=c.series,d=arguments,f=K(a)?function(d){var f="y"===d&&b.toYData?b.toYData(c):c[d];b[d+"Data"][a]=f}:function(c){Array.prototype[a].apply(b[c+"Data"],Array.prototype.slice.call(d,2))};b.parallelArrays.forEach(f)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&
424
- "undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(c){var a=this.options,b=a.pointIntervalUnit,d=a.relativeXValue,f=this.chart.time,g=this.xIncrement,h;g=M(g,a.pointStart,0);this.pointInterval=h=M(this.pointInterval,a.pointInterval,1);d&&K(c)&&(h*=c);b&&(a=new f.Date(g),"day"===b?f.set("Date",a,f.get("Date",a)+h):"month"===b?f.set("Month",a,f.get("Month",a)+h):"year"===b&&f.set("FullYear",a,f.get("FullYear",a)+h),h=a.getTime()-g);if(d&&
425
- K(c))return g+h;this.xIncrement=g+h;return g};b.prototype.setDataSortingOptions=function(){var c=this.options;u(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});w(c.pointRange)||(c.pointRange=1)};b.prototype.setOptions=function(c){var b=this.chart,d=b.options,f=d.plotOptions,g=b.userOptions||{};c=X(c);b=b.styledMode;var h={plotOptions:f,userOptions:c};H(this,"setOptions",h);var k=h.plotOptions[this.type],e=g.plotOptions||{};this.userOptions=h.userOptions;g=X(k,f.series,g.plotOptions&&
426
- g.plotOptions[this.type],c);this.tooltipOptions=X(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,d.tooltip.userOptions,f.series&&f.series.tooltip,f[this.type].tooltip,c.tooltip);this.stickyTracking=M(c.stickyTracking,e[this.type]&&e[this.type].stickyTracking,e.series&&e.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:g.stickyTracking);null===k.marker&&delete g.marker;this.zoneAxis=g.zoneAxis;f=this.zones=(g.zones||[]).slice();
427
- !g.negativeColor&&!g.negativeFillColor||g.zones||(d={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},b||(d.color=g.negativeColor,d.fillColor=g.negativeFillColor),f.push(d));f.length&&w(f[f.length-1].value)&&f.push(b?{}:{color:this.color,fillColor:this.fillColor});H(this,"afterSetOptions",{options:g});return g};b.prototype.getName=function(){return M(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(c,a,b){var d=this.chart,f=this.userOptions,
428
- g=c+"Index",h=c+"Counter",k=b?b.length:M(d.options.chart[c+"Count"],d[c+"Count"]);if(!a){var e=M(f[g],f["_"+g]);w(e)||(d.series.length||(d[h]=0),f["_"+g]=e=d[h]%k,d[h]+=1);b&&(a=b[e])}"undefined"!==typeof e&&(this[g]=e);this[c]=a};b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||a.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?
429
- this.points:this.data)||[]};b.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(c,a){var b=c.id,d=c.x,f=this.points,g=this.options.dataSorting,h,k;if(b)g=this.chart.get(b),g instanceof A&&(h=g);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(h=function(a){return!a.touched&&a.index===c.index},g&&g.matchByName?h=function(a){return!a.touched&&a.name===c.name}:this.options.relativeXValue&&
430
- (h=function(a){return!a.touched&&a.options.x===c.x}),h=D(f,h),!h)return;if(h){var e=h&&h.index;"undefined"!==typeof e&&(k=!0)}"undefined"===typeof e&&K(d)&&(e=this.xData.indexOf(d,a));-1!==e&&"undefined"!==typeof e&&this.cropped&&(e=e>=this.cropStart?e-this.cropStart:e);!k&&K(e)&&f[e]&&f[e].touched&&(e=void 0);return e};b.prototype.updateData=function(c,a){var b=this.options,d=b.dataSorting,f=this.points,g=[],h=this.requireSorting,k=c.length===f.length,e,m,l,p=!0;this.xIncrement=null;c.forEach(function(c,
431
- a){var m=w(c)&&this.pointClass.prototype.optionsToObject.call({series:this},c)||{},p=m.x;if(m.id||K(p)){if(m=this.findPointIndex(m,l),-1===m||"undefined"===typeof m?g.push(c):f[m]&&c!==b.data[m]?(f[m].update(c,!1,null,!1),f[m].touched=!0,h&&(l=m+1)):f[m]&&(f[m].touched=!0),!k||a!==m||d&&d.enabled||this.hasDerivedData)e=!0}else g.push(c)},this);if(e)for(c=f.length;c--;)(m=f[c])&&!m.touched&&m.remove&&m.remove(!1,a);else!k||d&&d.enabled?p=!1:(c.forEach(function(c,a){c!==f[a].y&&f[a].update&&f[a].update(c,
432
- !1,null,!1)}),g.length=0);f.forEach(function(c){c&&(c.touched=!1)});if(!p)return!1;g.forEach(function(c){this.addPoint(c,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=r(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(c,a,b,d){var f=this,g=f.points,h=g&&g.length||0,k=f.options,e=f.chart,m=k.dataSorting,l=f.xAxis,p=k.turboThreshold,u=this.xData,r=this.yData,n=f.pointArrayMap;n=n&&n.length;var w=k.keys,x,y=0,B=1,D=null;c=c||[];
433
- var q=c.length;a=M(a,!0);m&&m.enabled&&(c=this.sortData(c));!1!==d&&q&&h&&!f.cropped&&!f.hasGroupedData&&f.visible&&!f.isSeriesBoosting&&(x=this.updateData(c,b));if(!x){f.xIncrement=null;f.colorCounter=0;this.parallelArrays.forEach(function(c){f[c+"Data"].length=0});if(p&&q>p)if(D=f.getFirstValidPoint(c),K(D))for(b=0;b<q;b++)u[b]=this.autoIncrement(),r[b]=c[b];else if(I(D))if(n)if(D.length===n)for(b=0;b<q;b++)u[b]=this.autoIncrement(),r[b]=c[b];else for(b=0;b<q;b++)d=c[b],u[b]=d[0],r[b]=d.slice(1,
434
- n+1);else if(w&&(y=w.indexOf("x"),B=w.indexOf("y"),y=0<=y?y:0,B=0<=B?B:1),1===D.length&&(B=0),y===B)for(b=0;b<q;b++)u[b]=this.autoIncrement(),r[b]=c[b][B];else for(b=0;b<q;b++)d=c[b],u[b]=d[y],r[b]=d[B];else F(12,!1,e);else for(b=0;b<q;b++)"undefined"!==typeof c[b]&&(d={series:f},f.pointClass.prototype.applyOptions.apply(d,[c[b]]),f.updateParallelArrays(d,b));r&&S(r[0])&&F(14,!0,e);f.data=[];f.options.data=f.userOptions.data=c;for(b=h;b--;)g[b]&&g[b].destroy&&g[b].destroy();l&&(l.minRange=l.userMinRange);
435
- f.isDirty=e.isDirtyBox=!0;f.isDirtyData=!!g;b=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());a&&e.redraw(b)};b.prototype.sortData=function(c){var a=this,b=a.options.dataSorting.sortKey||"y",d=function(c,a){return w(a)&&c.pointClass.prototype.optionsToObject.call({series:c},a)||{}};c.forEach(function(b,f){c[f]=d(a,b);c[f].index=f},this);c.concat().sort(function(c,a){c=L(b,c);a=L(b,a);return a<c?-1:a>c?1:0}).forEach(function(c,a){c.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var b=
436
- a.options,f=b.data;b.dataSorting&&b.dataSorting.enabled||!f||(f.forEach(function(b,g){f[g]=d(a,b);c[g]&&(f[g].x=c[g].x,f[g].index=g)}),a.setData(f,!1))});return c};b.prototype.getProcessedData=function(c){var a=this.xAxis,b=this.options,d=b.cropThreshold,f=c||this.getExtremesFromAll||b.getExtremesFromAll,g=this.isCartesian;c=a&&a.val2lin;b=!(!a||!a.logarithmic);var h=0,k=this.xData,e=this.yData,m=this.requireSorting;var l=!1;var p=k.length;if(a){l=a.getExtremes();var u=l.min;var r=l.max;l=!(!a.categories||
437
- a.names.length)}if(g&&this.sorted&&!f&&(!d||p>d||this.forceCrop))if(k[p-1]<u||k[0]>r)k=[],e=[];else if(this.yData&&(k[0]<u||k[p-1]>r)){var n=this.cropData(this.xData,this.yData,u,r);k=n.xData;e=n.yData;h=n.start;n=!0}for(d=k.length||1;--d;)if(a=b?c(k[d])-c(k[d-1]):k[d]-k[d-1],0<a&&("undefined"===typeof w||a<w))var w=a;else 0>a&&m&&!l&&(F(15,!1,this.chart),m=!1);return{xData:k,yData:e,cropped:n,cropStart:h,closestPointRange:w}};b.prototype.processData=function(c){var a=this.xAxis;if(this.isCartesian&&
438
- !this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!c)return!1;c=this.getProcessedData();this.cropped=c.cropped;this.cropStart=c.cropStart;this.processedXData=c.xData;this.processedYData=c.yData;this.closestPointRange=this.basePointRange=c.closestPointRange;H(this,"afterProcessData")};b.prototype.cropData=function(c,a,b,d,f){var g=c.length,h,k=0,e=g;f=M(f,this.cropShoulder);for(h=0;h<g;h++)if(c[h]>=b){k=Math.max(0,h-f);break}for(b=h;b<g;b++)if(c[b]>d){e=b+f;break}return{xData:c.slice(k,e),yData:a.slice(k,
439
- e),start:k,end:e}};b.prototype.generatePoints=function(){var c=this.options,a=this.processedData||c.data,b=this.processedXData,d=this.processedYData,f=this.pointClass,g=b.length,h=this.cropStart||0,k=this.hasGroupedData,e=c.keys,m=[];c=c.dataGrouping&&c.dataGrouping.groupAll?h:0;var l,p,r=this.data;if(!r&&!k){var n=[];n.length=a.length;r=this.data=n}e&&k&&(this.options.keys=!1);for(p=0;p<g;p++){n=h+p;if(k){var w=(new f).init(this,[b[p]].concat(ha(d[p])));w.dataGroup=this.groupMap[c+p];w.dataGroup.options&&
440
- (w.options=w.dataGroup.options,u(w,w.dataGroup.options),delete w.dataLabels)}else(w=r[n])||"undefined"===typeof a[n]||(r[n]=w=(new f).init(this,a[n],b[p]));w&&(w.index=k?c+p:n,m[p]=w)}this.options.keys=e;if(r&&(g!==(l=r.length)||k))for(p=0;p<l;p++)p!==h||k||(p+=g),r[p]&&(r[p].destroyElements(),r[p].plotX=void 0);this.data=r;this.points=m;H(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(c){return{min:m(c),max:r(c)}};b.prototype.getExtremes=function(c,a){var b=this.xAxis,d=this.yAxis,
441
- f=this.processedXData||this.xData,g=[],h=this.requireSorting?this.cropShoulder:0;d=d?d.positiveValuesOnly:!1;var k,e=0,p=0,l=0;c=c||this.stackedYData||this.processedYData||[];var u=c.length;if(b){var n=b.getExtremes();e=n.min;p=n.max}for(k=0;k<u;k++){var w=f[k];n=c[k];var x=(K(n)||I(n))&&(n.length||0<n||!d);w=a||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(f[k+h]||w)>=e&&(f[k-h]||w)<=p;if(x&&w)if(x=n.length)for(;x--;)K(n[x])&&(g[l++]=n[x]);else g[l++]=n}c={activeYData:g,
442
- dataMin:m(g),dataMax:r(g)};H(this,"afterGetExtremes",{dataExtremes:c});return c};b.prototype.applyExtremes=function(){var c=this.getExtremes();this.dataMin=c.dataMin;this.dataMax=c.dataMax;return c};b.prototype.getFirstValidPoint=function(c){for(var a=c.length,b=0,d=null;null===d&&b<a;)d=c[b],b++;return d};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,d=this.xAxis,f=d.categories,g=this.enabledDataSorting,k=this.yAxis,
443
- e=this.points,m=e.length,p=this.pointPlacementToXValue(),l=!!p,u=a.threshold,r=a.startFromThreshold?u:0,n=this.zoneAxis||"y",x,y,B=Number.MAX_VALUE;for(x=0;x<m;x++){var D=e[x],q=D.x,F=void 0,G=void 0,t=D.y,z=D.low,L=b&&k.stacking&&k.stacking.stacks[(this.negStacks&&t<(r?0:u)?"-":"")+this.stackKey];if(k.positiveValuesOnly&&!k.validatePositiveValue(t)||d.positiveValuesOnly&&!d.validatePositiveValue(q))D.isNull=!0;D.plotX=y=c(h(d.translate(q,0,0,0,1,p,"flags"===this.type),-1E5,1E5));if(b&&this.visible&&
444
- L&&L[q]){var v=this.getStackIndicator(v,q,this.index);D.isNull||(F=L[q],G=F.points[v.key])}I(G)&&(z=G[0],t=G[1],z===r&&v.key===L[q].base&&(z=M(K(u)&&u,k.min)),k.positiveValuesOnly&&0>=z&&(z=null),D.total=D.stackTotal=F.total,D.percentage=F.total&&D.y/F.total*100,D.stackY=t,this.irregularWidths||F.setOffset(this.pointXOffset||0,this.barW||0));D.yBottom=w(z)?h(k.translate(z,0,1,0,1),-1E5,1E5):null;this.dataModify&&(t=this.dataModify.modifyValue(t,x));D.plotY=void 0;K(t)&&(F=k.translate(t,!1,!0,!1,!0),
445
- "undefined"!==typeof F&&(D.plotY=h(F,-1E5,1E5)));D.isInside=this.isPointInside(D);D.clientX=l?c(d.translate(q,0,0,0,1,p)):y;D.negative=D[n]<(a[n+"Threshold"]||u||0);D.category=M(f&&f[D.x],D.x);if(!D.isNull&&!1!==D.visible){"undefined"!==typeof A&&(B=Math.min(B,Math.abs(y-A)));var A=y}D.zone=this.zones.length?D.getZone():void 0;!D.graphic&&this.group&&g&&(D.isNew=!0)}this.closestPointRangePx=B;H(this,"afterTranslate")};b.prototype.getValidPoints=function(c,a,b){var d=this.chart;return(c||this.points||
446
- []).filter(function(c){return a&&!d.isInsidePlot(c.plotX,c.plotY,{inverted:d.inverted})?!1:!1!==c.visible&&(b||!c.isNull)})};b.prototype.getClipBox=function(){var c=this.chart,a=this.xAxis,b=this.yAxis,d=X(c.clipBox);a&&a.len!==c.plotSizeX&&(d.width=a.len);b&&b.len!==c.plotSizeY&&(d.height=b.len);return d};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};b.prototype.setClip=function(){var c=this.chart,a=this.group,b=this.markerGroup,
447
- d=c.sharedClips;c=c.renderer;var f=this.getClipBox(),g=this.getSharedClipKey(),h=d[g];h?h.animate(f):d[g]=h=c.clipRect(f);a&&a.clip(!1===this.options.clip?void 0:h);b&&b.clip()};b.prototype.animate=function(c){var a=this.chart,b=this.group,d=this.markerGroup,f=a.inverted,g=n(this.options.animation),h=[this.getSharedClipKey(),g.duration,g.easing,g.defer].join(),k=a.sharedClips[h],e=a.sharedClips[h+"m"];if(c&&b)g=this.getClipBox(),k?k.attr("height",g.height):(g.width=0,f&&(g.x=a.plotHeight),k=a.renderer.clipRect(g),
448
- a.sharedClips[h]=k,e=a.renderer.clipRect({x:f?(a.plotSizeX||0)+99:-99,y:f?-a.plotLeft:-a.plotTop,width:99,height:f?a.chartWidth:a.chartHeight}),a.sharedClips[h+"m"]=e),b.clip(k),d&&d.clip(e);else if(k&&!k.hasClass("highcharts-animating")){a=this.getClipBox();var m=g.step;d&&d.element.childNodes.length&&(g.step=function(c,a){m&&m.apply(a,arguments);e&&e.element&&e.attr(a.prop,"width"===a.prop?c+99:c)});k.addClass("highcharts-animating").animate(a,g)}};b.prototype.afterAnimate=function(){var c=this;
449
- this.setClip();J(this.chart.sharedClips,function(a,b,d){a&&!c.chart.container.querySelector('[clip-path="url(#'+a.id+')"]')&&(a.destroy(),delete d[b])});this.finishedAnimating=!0;H(this,"afterAnimate")};b.prototype.drawPoints=function(){var c=this.points,a=this.chart,b=this.options.marker,d=this[this.specialGroup]||this.markerGroup,f=this.xAxis,g=M(b.enabled,!f||f.isRadial?!0:null,this.closestPointRangePx>=b.enabledThreshold*b.radius),h,k;if(!1!==b.enabled||this._hasPointMarkers)for(h=0;h<c.length;h++){var e=
450
- c[h];var m=(k=e.graphic)?"animate":"attr";var p=e.marker||{};var l=!!e.marker;if((g&&"undefined"===typeof p.enabled||p.enabled)&&!e.isNull&&!1!==e.visible){var u=M(p.symbol,this.symbol,"rect");var r=this.markerAttribs(e,e.selected&&"select");this.enabledDataSorting&&(e.startXPos=f.reversed?-(r.width||0):f.width);var n=!1!==e.isInside;k?k[n?"show":"hide"](n).animate(r):n&&(0<(r.width||0)||e.hasImage)&&(e.graphic=k=a.renderer.symbol(u,r.x,r.y,r.width,r.height,l?p:b).add(d),this.enabledDataSorting&&
451
- a.hasRendered&&(k.attr({x:e.startXPos}),m="animate"));k&&"animate"===m&&k[n?"show":"hide"](n).animate(r);if(k&&!a.styledMode)k[m](this.pointAttribs(e,e.selected&&"select"));k&&k.addClass(e.getClassName(),!0)}else k&&(e.graphic=k.destroy())}};b.prototype.markerAttribs=function(c,a){var b=this.options,d=b.marker,f=c.marker||{},g=f.symbol||d.symbol,h=M(f.radius,d&&d.radius);a&&(d=d.states[a],a=f.states&&f.states[a],h=M(a&&a.radius,d&&d.radius,h&&h+(d&&d.radiusPlus||0)));c.hasImage=g&&0===g.indexOf("url");
452
- c.hasImage&&(h=0);c=K(h)?{x:b.crisp?Math.floor(c.plotX-h):c.plotX-h,y:c.plotY-h}:{};h&&(c.width=c.height=2*h);return c};b.prototype.pointAttribs=function(c,a){var b=this.options.marker,d=c&&c.options,f=d&&d.marker||{},g=d&&d.color,h=c&&c.color,k=c&&c.zone&&c.zone.color,e=this.color;c=M(f.lineWidth,b.lineWidth);d=1;e=g||k||h||e;g=f.fillColor||b.fillColor||e;h=f.lineColor||b.lineColor||e;a=a||"normal";b=b.states[a]||{};a=f.states&&f.states[a]||{};c=M(a.lineWidth,b.lineWidth,c+M(a.lineWidthPlus,b.lineWidthPlus,
453
- 0));g=a.fillColor||b.fillColor||g;h=a.lineColor||b.lineColor||h;d=M(a.opacity,b.opacity,d);return{stroke:h,"stroke-width":c,fill:g,opacity:d}};b.prototype.destroy=function(c){var a=this,b=a.chart,d=/AppleWebKit\/533/.test(y.navigator.userAgent),f=a.data||[],h,k,e,m;H(a,"destroy",{keepEventsForUpdate:c});this.removeEvents(c);(a.axisTypes||[]).forEach(function(c){(m=a[c])&&m.series&&(g(m.series,a),m.isDirty=m.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(k=f.length;k--;)(e=f[k])&&
454
- e.destroy&&e.destroy();a.clips&&a.clips.forEach(function(c){return c.destroy()});l.clearTimeout(a.animationTimeout);J(a,function(c,a){c instanceof q&&!c.survive&&(h=d&&"group"===a?"hide":"destroy",c[h]())});b.hoverSeries===a&&(b.hoverSeries=void 0);g(b.series,a);b.orderSeries();J(a,function(b,d){c&&"hcEvents"===d||delete a[d]})};b.prototype.applyZones=function(){var c=this,a=this.chart,b=a.renderer,d=this.zones,f=this.clips||[],g=this.graph,k=this.area,e=Math.max(a.chartWidth,a.chartHeight),m=this[(this.zoneAxis||
455
- "y")+"Axis"],p=a.inverted,l,u,r,n,w,x,y,D,B=!1;if(d.length&&(g||k)&&m&&"undefined"!==typeof m.min){var q=m.reversed;var F=m.horiz;g&&!this.showLine&&g.hide();k&&k.hide();var H=m.getExtremes();d.forEach(function(d,G){l=q?F?a.plotWidth:0:F?0:m.toPixels(H.min)||0;l=h(M(u,l),0,e);u=h(Math.round(m.toPixels(M(d.value,H.max),!0)||0),0,e);B&&(l=u=m.toPixels(H.max));n=Math.abs(l-u);w=Math.min(l,u);x=Math.max(l,u);m.isXAxis?(r={x:p?x:w,y:0,width:n,height:e},F||(r.x=a.plotHeight-r.x)):(r={x:0,y:p?x:w,width:e,
456
- height:n},F&&(r.y=a.plotWidth-r.y));p&&b.isVML&&(r=m.isXAxis?{x:0,y:q?w:x,height:r.width,width:a.chartWidth}:{x:r.y-a.plotLeft-a.spacingBox.x,y:0,width:r.height,height:a.chartHeight});f[G]?f[G].animate(r):f[G]=b.clipRect(r);y=c["zone-area-"+G];D=c["zone-graph-"+G];g&&D&&D.clip(f[G]);k&&y&&y.clip(f[G]);B=d.value>H.max;c.resetZones&&0===u&&(u=void 0)});this.clips=f}else c.visible&&(g&&g.show(!0),k&&k.show(!0))};b.prototype.invertGroups=function(c){function a(){["group","markerGroup"].forEach(function(a){b[a]&&
457
- (d.renderer.isVML&&b[a].attr({width:b.yAxis.len,height:b.xAxis.len}),b[a].width=b.yAxis.len,b[a].height=b.xAxis.len,b[a].invert(b.isRadialSeries?!1:c))})}var b=this,d=b.chart;b.xAxis&&(b.eventsToUnbind.push(x(d,"resize",a)),a(),b.invertGroups=a)};b.prototype.plotGroup=function(c,a,b,d,f){var g=this[c],h=!g;b={visibility:b,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(b.opacity=this.opacity);h&&(this[c]=g=this.chart.renderer.g().add(f));g.addClass("highcharts-"+
458
- a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(b)[h?"attr":"animate"](this.getPlotBox());return g};b.prototype.getPlotBox=function(){var c=this.chart,a=this.xAxis,b=this.yAxis;c.inverted&&(a=b,b=this.xAxis);return{translateX:a?a.left:c.plotLeft,translateY:b?b.top:c.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=
459
- function(c){c||ca(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(c){c()}),this.eventsToUnbind.length=0)};b.prototype.render=function(){var c=this,a=c.chart,b=c.options,d=n(b.animation),f=c.visible?"inherit":"hidden",g=b.zIndex,h=c.hasRendered,k=a.seriesGroup,e=a.inverted;a=!c.finishedAnimating&&a.renderer.isSVG?d.duration:0;H(this,"render");var m=c.plotGroup("group","series",f,g,k);c.markerGroup=c.plotGroup("markerGroup","markers",f,g,k);!1!==b.clip&&c.setClip();c.animate&&
460
- a&&c.animate(!0);m.inverted=M(c.invertible,c.isCartesian)?e:!1;c.drawGraph&&(c.drawGraph(),c.applyZones());c.visible&&c.drawPoints();c.drawDataLabels&&c.drawDataLabels();c.redrawPoints&&c.redrawPoints();c.drawTracker&&!1!==c.options.enableMouseTracking&&c.drawTracker();c.invertGroups(e);c.animate&&a&&c.animate();h||(a&&d.defer&&(a+=d.defer),c.animationTimeout=N(function(){c.afterAnimate()},a||0));c.isDirty=!1;c.hasRendered=!0;H(c,"afterRender")};b.prototype.redraw=function(){var c=this.chart,a=this.isDirty||
461
- this.isDirtyData,b=this.group,d=this.xAxis,f=this.yAxis;b&&(c.inverted&&b.attr({width:c.plotWidth,height:c.plotHeight}),b.animate({translateX:M(d&&d.left,c.plotLeft),translateY:M(f&&f.top,c.plotTop)}));this.translate();this.render();a&&delete this.kdTree};b.prototype.searchPoint=function(c,a){var b=this.xAxis,d=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?b.len-c.chartY+b.pos:c.chartX-b.pos,plotY:f?d.len-c.chartX+d.pos:c.chartY-d.pos},a,c)};b.prototype.buildKDTree=function(c){function a(c,
462
- d,f){var g=c&&c.length;if(g){var h=b.kdAxisArray[d%f];c.sort(function(c,a){return c[h]-a[h]});g=Math.floor(g/2);return{point:c[g],left:a(c.slice(0,g),d+1,f),right:a(c.slice(g+1),d+1,f)}}}this.buildingKdTree=!0;var b=this,d=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;N(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),d,d);b.buildingKdTree=!1},b.options.kdNow||c&&"touchstart"===c.type?0:1)};b.prototype.searchKDTree=function(c,a,b){function d(c,a,b,e){var m=a.point,p=
463
- f.kdAxisArray[b%e],l=m,u=w(c[g])&&w(m[g])?Math.pow(c[g]-m[g],2):null;var r=w(c[h])&&w(m[h])?Math.pow(c[h]-m[h],2):null;r=(u||0)+(r||0);m.dist=w(r)?Math.sqrt(r):Number.MAX_VALUE;m.distX=w(u)?Math.sqrt(u):Number.MAX_VALUE;p=c[p]-m[p];r=0>p?"left":"right";u=0>p?"right":"left";a[r]&&(r=d(c,a[r],b+1,e),l=r[k]<l[k]?r:m);a[u]&&Math.sqrt(p*p)<l[k]&&(c=d(c,a[u],b+1,e),l=c[k]<l[k]?c:l);return l}var f=this,g=this.kdAxisArray[0],h=this.kdAxisArray[1],k=a?"distX":"dist";a=-1<f.options.findNearestPointBy.indexOf("y")?
464
- 2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(b);if(this.kdTree)return d(c,this.kdTree,a,a)};b.prototype.pointPlacementToXValue=function(){var c=this.options,a=c.pointRange,b=this.xAxis;c=c.pointPlacement;"between"===c&&(c=b.reversed?-.5:.5);return K(c)?c*(a||b.pointRange):0};b.prototype.isPointInside=function(c){var a=this.chart,b=this.xAxis,d=this.yAxis;return"undefined"!==typeof c.plotY&&"undefined"!==typeof c.plotX&&0<=c.plotY&&c.plotY<=(d?d.len:a.plotHeight)&&0<=c.plotX&&c.plotX<=(b?
465
- b.len:a.plotWidth)};b.prototype.drawTracker=function(){var c=this,a=c.options,b=a.trackByArea,d=[].concat(b?c.areaPath:c.graphPath),f=c.chart,g=f.pointer,h=f.renderer,e=f.options.tooltip.snap,m=c.tracker,p=function(a){if(f.hoverSeries!==c)c.onMouseOver()},l="rgba(192,192,192,"+(G?.0001:.002)+")";m?m.attr({d:d}):c.graph&&(c.tracker=h.path(d).attr({visibility:c.visible?"visible":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":"highcharts-tracker-line").add(c.group),f.styledMode||c.tracker.attr({"stroke-linecap":"round",
466
- "stroke-linejoin":"round",stroke:l,fill:b?l:"none","stroke-width":c.graph.strokeWidth()+(b?0:2*e)}),[c.tracker,c.markerGroup,c.dataLabelsGroup].forEach(function(c){if(c&&(c.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(c){g.onTrackerMouseOut(c)}),a.cursor&&!f.styledMode&&c.css({cursor:a.cursor}),k))c.on("touchstart",p)}));H(this,"afterDrawTracker")};b.prototype.addPoint=function(c,a,b,d,f){var g=this.options,h=this.data,k=this.chart,e=this.xAxis;e=e&&e.hasNames&&e.names;
467
- var m=g.data,p=this.xData,l;a=M(a,!0);var r={series:this};this.pointClass.prototype.applyOptions.apply(r,[c]);var u=r.x;var n=p.length;if(this.requireSorting&&u<p[n-1])for(l=!0;n&&p[n-1]>u;)n--;this.updateParallelArrays(r,"splice",n,0,0);this.updateParallelArrays(r,n);e&&r.name&&(e[u]=r.name);m.splice(n,0,c);if(l||this.processedData)this.data.splice(n,0,null),this.processData();"point"===g.legendType&&this.generatePoints();b&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(r,
468
- "shift"),m.shift()));!1!==f&&H(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;a&&k.redraw(d)};b.prototype.removePoint=function(c,a,b){var f=this,g=f.data,h=g[c],k=f.points,e=f.chart,m=function(){k&&k.length===g.length&&k.splice(c,1);g.splice(c,1);f.options.data.splice(c,1);f.updateParallelArrays(h||{series:f},"splice",c,1);h&&h.destroy();f.isDirty=!0;f.isDirtyData=!0;a&&e.redraw()};d(b,e);a=M(a,!0);h?h.firePointEvent("remove",null,m):m()};b.prototype.remove=function(c,a,b,d){function f(){g.destroy(d);
469
- h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();M(c,!0)&&h.redraw(a)}var g=this,h=g.chart;!1!==b?H(g,"remove",null,f):f()};b.prototype.update=function(c,a){c=p(c,this.userOptions);H(this,"update",{options:c});var b=this,d=b.chart,f=b.userOptions,g=b.initialType||b.type,h=d.options.plotOptions,k=B[g].prototype,e=b.finishedAnimating&&{animation:!1},m={},l,r=["eventOptions","navigatorSeries","baseSeries"],n=c.type||f.type||d.options.chart.type,w=!(this.hasDerivedData||n&&n!==this.type||"undefined"!==
470
- typeof c.pointStart||"undefined"!==typeof c.pointInterval||"undefined"!==typeof c.relativeXValue||c.joinBy||c.mapData||b.hasOptionChanged("dataGrouping")||b.hasOptionChanged("pointStart")||b.hasOptionChanged("pointInterval")||b.hasOptionChanged("pointIntervalUnit")||b.hasOptionChanged("keys"));n=n||g;w&&(r.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY",
471
- "minX","maxX"),!1!==c.visible&&r.push("area","graph"),b.parallelArrays.forEach(function(c){r.push(c+"Data")}),c.data&&(c.dataSorting&&u(b.options.dataSorting,c.dataSorting),this.setData(c.data,!1)));c=X(f,e,{index:"undefined"===typeof f.index?b.index:f.index,pointStart:M(h&&h.series&&h.series.pointStart,f.pointStart,b.xData[0])},!w&&{data:b.options.data},c);w&&c.data&&(c.data=b.options.data);r=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(r);r.forEach(function(c){r[c]=b[c];delete b[c]});
472
- h=!1;if(B[n]){if(h=n!==b.type,b.remove(!1,!1,!1,!0),h)if(Object.setPrototypeOf)Object.setPrototypeOf(b,B[n].prototype);else{e=Object.hasOwnProperty.call(b,"hcEvents")&&b.hcEvents;for(l in k)b[l]=void 0;u(b,B[n].prototype);e?b.hcEvents=e:delete b.hcEvents}}else F(17,!0,d,{missingModuleFor:n});r.forEach(function(c){b[c]=r[c]});b.init(d,c);if(w&&this.points){var x=b.options;!1===x.visible?(m.graphic=1,m.dataLabel=1):b._hasPointLabels||(c=x.marker,k=x.dataLabels,!c||!1!==c.enabled&&(f.marker&&f.marker.symbol)===
473
- c.symbol||(m.graphic=1),k&&!1===k.enabled&&(m.dataLabel=1));this.points.forEach(function(c){c&&c.series&&(c.resolveColor(),Object.keys(m).length&&c.destroyElements(m),!1===x.showInLegend&&c.legendItem&&d.legend.destroyItem(c))},this)}b.initialType=g;d.linkSeries();h&&b.linkedSeries.length&&(b.isDirtyData=!0);H(this,"afterUpdate");M(a,!0)&&d.redraw(w?void 0:!1)};b.prototype.setName=function(c){this.name=this.options.name=this.userOptions.name=c;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=
474
- function(c){var a=this.options[c],b=this.chart.options.plotOptions,d=this.userOptions[c];return d?a!==d:a!==M(b&&b[this.type]&&b[this.type][c],b&&b.series&&b.series[c],a)};b.prototype.onMouseOver=function(){var c=this.chart,a=c.hoverSeries;c.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&H(this,"mouseOver");this.setState("hover");c.hoverSeries=this};b.prototype.onMouseOut=function(){var c=this.options,a=this.chart,b=a.tooltip,d=a.hoverPoint;a.hoverSeries=
475
- null;if(d)d.onMouseOut();this&&c.events.mouseOut&&H(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();a.series.forEach(function(c){c.setState("",!0)})};b.prototype.setState=function(c,a){var b=this,d=b.options,f=b.graph,g=d.inactiveOtherPoints,h=d.states,k=M(h[c||"normal"]&&h[c||"normal"].animation,b.chart.options.chart.animation),e=d.lineWidth,m=0,p=d.opacity;c=c||"";if(b.state!==c&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(a){a&&(b.state&&a.removeClass("highcharts-series-"+
476
- b.state),c&&a.addClass("highcharts-series-"+c))}),b.state=c,!b.chart.styledMode)){if(h[c]&&!1===h[c].enabled)return;c&&(e=h[c].lineWidth||e+(h[c].lineWidthPlus||0),p=M(h[c].opacity,p));if(f&&!f.dashstyle)for(d={"stroke-width":e},f.animate(d,k);b["zone-graph-"+m];)b["zone-graph-"+m].animate(d,k),m+=1;g||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(c){c&&c.animate({opacity:p},k)})}a&&g&&b.points&&b.setAllPointsToState(c||void 0)};b.prototype.setAllPointsToState=function(c){this.points.forEach(function(a){a.setState&&
477
- a.setState(c)})};b.prototype.setVisible=function(c,a){var b=this,d=b.chart,f=b.legendItem,g=d.options.chart.ignoreHiddenSeries,h=b.visible,k=(b.visible=c=b.options.visible=b.userOptions.visible="undefined"===typeof c?!h:c)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(c){if(b[c])b[c][k]()});if(d.hoverSeries===b||(d.hoverPoint&&d.hoverPoint.series)===b)b.onMouseOut();f&&d.legend.colorizeItem(b,c);b.isDirty=!0;b.options.stacking&&d.series.forEach(function(c){c.options.stacking&&
478
- c.visible&&(c.isDirty=!0)});b.linkedSeries.forEach(function(a){a.setVisible(c,!1)});g&&(d.isDirtyBox=!0);H(b,k);!1!==a&&d.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(c){this.selected=c=this.options.selected="undefined"===typeof c?!this.selected:c;this.checkbox&&(this.checkbox.checked=c);H(this,c?"select":"unselect")};b.prototype.shouldShowTooltip=function(c,a,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly=
479
- !0;return this.chart.isInsidePlot(c,a,b)};b.defaultOptions=C;return b}();u(b.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:t.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:A,requireSorting:!0,sorted:!0});z.series=b;"";"";return b});J(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],
480
- e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A){var C=b.stop,z=A.addEvent,q=A.createElement,l=A.merge,n=A.pick;z(v,"afterSetChartSize",function(b){var a=this.options.chart.scrollablePlotArea,d=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=
481
- d;var k={1:{name:"right",value:d}}}}else a&&(this.scrollablePixelsY=d=Math.max(0,a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,k={2:{name:"bottom",value:d}});k&&!b.skipAxes&&this.axes.forEach(function(a){k[a.side]?a.getPlotLinePath=function(){var b=k[a.side].name,d=this[b];this[b]=d-k[a.side].value;var f=e.prototype.getPlotLinePath.apply(this,arguments);
482
- this[b]=d;return f}:(a.setAxisSize(),a.setAxisTranslation())})}});z(v,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});v.prototype.setUpScrolling=function(){var b=this,a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"},
483
- {position:"relative"},this.renderTo);this.scrollingContainer=q("div",{className:"highcharts-scrolling"},a,this.scrollingParent);z(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};v.prototype.moveFixedElements=function(){var b=this.container,a=this.fixedRenderer,f=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
484
- k;this.scrollablePixelsX&&!this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&f.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");f.forEach(function(d){[].forEach.call(b.querySelectorAll(d),function(b){(b.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})};
485
- v.prototype.applyFixed=function(){var b=!this.fixedDiv,a=this.options.chart,f=a.scrollablePlotArea,k=t.getRendererType();b?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=a=new k(this.fixedDiv,this.chartWidth,this.chartHeight,
486
- this.options.chart.style),this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":n(f.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+
487
- (this.scrollablePixelsX||0);k=this.chartHeight+(this.scrollablePixelsY||0);C(this.container);this.container.style.width=a+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:a,height:k,viewBox:[0,0,a,k].join(" ")});this.chartBackground.attr({width:a,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(f.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*f.scrollPositionX),f.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
488
- f.scrollPositionY));k=this.axisOffset;b=this.plotTop-k[0]-1;f=this.plotLeft-k[3]-1;a=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var e=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",e,b],["L",this.chartWidth,b],["L",this.chartWidth,a],["L",e,a],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-
489
- 1],["L",k,this.plotTop-1],["L",k,0],["Z"],["M",f,l],["L",f,this.chartHeight],["L",k,this.chartHeight],["L",k,l],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};z(e,"afterInit",function(){this.chart.scrollableDirty=!0});z(E,"show",function(){this.chart.scrollableDirty=!0});""});J(e,"Core/Axis/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(b,e,v){var E=b.getDeferredAnimation,t=v.addEvent,A=
490
- v.destroyObjectProperties,C=v.fireEvent,z=v.isNumber,q=v.objectEach,l;(function(b){function d(){var a=this.stacking;if(a){var b=a.stacks;q(b,function(a,d){A(a);b[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function a(){this.stacking||(this.stacking=new k(this))}var f=[];b.compose=function(b){-1===f.indexOf(b)&&(f.push(b),t(b,"init",a),t(b,"destroy",d));return b};var k=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
491
- function(){var a=this.axis,b=a.series,d=a.options.reversedStacks,f=b.length,k;if(!a.isXAxis){this.usePercentage=!1;for(k=f;k--;){var h=b[d?k:f-k-1];h.setStackedPoints();h.setGroupedPoints()}for(k=0;k<f;k++)b[k].modifyStacks();C(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;q(a,function(a){q(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,b=a.stacks;a.axis.isXAxis||q(b,function(b){q(b,
492
- function(d,f){z(d.touched)&&d.touched<a.stacksTouched?(d.destroy(),delete b[f]):(d.total=null,d.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,b=a.chart,d=b.renderer,f=this.stacks;a=E(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var k=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();k.translate(b.plotLeft,b.plotTop);q(f,function(a){q(a,function(a){a.render(k)})});k.animate({opacity:1},
493
- a)};return a}();b.Additions=k})(l||(l={}));return l});J(e,"Extensions/Stacking.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Axis/StackingAxis.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C){var z=v.format,q=C.correctFloat,l=C.defined,n=C.destroyObjectProperties,d=C.isArray,a=C.isNumber,f=C.objectEach,k=C.pick,G=function(){function b(a,b,d,f,h){var k=a.chart.inverted;this.axis=a;this.isNegative=d;this.options=
494
- b=b||{};this.x=f;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=h;this.rightCliff=this.leftCliff=0;this.alignOptions={align:b.align||(k?d?"left":"right":"center"),verticalAlign:b.verticalAlign||(k?"middle":d?"bottom":"top"),y:b.y,x:b.x};this.textAlign=b.textAlign||(k?d?"right":"left":"center")}b.prototype.destroy=function(){n(this,this.axis)};b.prototype.render=function(a){var b=this.axis.chart,d=this.options,f=d.format;f=f?z(f,this,b):d.formatter.call(this);this.label?this.label.attr({text:f,
495
- visibility:"hidden"}):(this.label=b.renderer.label(f,null,null,d.shape,null,null,d.useHTML,!1,"stack-labels"),f={r:d.borderRadius||0,text:f,rotation:d.rotation,padding:k(d.padding,5),visibility:"hidden"},b.styledMode||(f.fill=d.backgroundColor,f.stroke=d.borderColor,f["stroke-width"]=d.borderWidth,this.label.css(d.style)),this.label.attr(f),this.label.added||this.label.add(a));this.label.labelrank=b.plotSizeY};b.prototype.setOffset=function(b,d,f,e,h){var m=this.axis,c=m.chart;e=m.translate(m.stacking.usePercentage?
496
- 100:e?e:this.total,0,0,0,1);f=m.translate(f?f:0);f=l(e)&&Math.abs(e-f);b=k(h,c.xAxis[0].translate(this.x))+b;m=l(e)&&this.getStackBox(c,this,b,e,d,f,m);d=this.label;f=this.isNegative;b="justify"===k(this.options.overflow,"justify");var r=this.textAlign;d&&m&&(h=d.getBBox(),e=d.padding,r="left"===r?c.inverted?-e:e:"right"===r?h.width:c.inverted&&"center"===r?h.width/2:c.inverted?f?h.width+e:-e:h.width/2,f=c.inverted?h.height/2:f?-e:h.height,this.alignOptions.x=k(this.options.x,0),this.alignOptions.y=
497
- k(this.options.y,0),m.x-=r,m.y-=f,d.align(this.alignOptions,null,m),c.isInsidePlot(d.alignAttr.x+r-this.alignOptions.x,d.alignAttr.y+f-this.alignOptions.y)?d.show():(d.alignAttr.y=-9999,b=!1),b&&t.prototype.justifyDataLabel.call(this.axis,d,this.alignOptions,d.alignAttr,h,m),d.attr({x:d.alignAttr.x,y:d.alignAttr.y}),k(!b&&this.options.crop,!0)&&((c=a(d.x)&&a(d.y)&&c.isInsidePlot(d.x-e+d.width,d.y)&&c.isInsidePlot(d.x+e,d.y))||d.hide()))};b.prototype.getStackBox=function(a,b,d,f,h,k,c){var e=b.axis.reversed,
498
- g=a.inverted,m=c.height+c.pos-(g?a.plotLeft:a.plotTop);b=b.isNegative&&!e||!b.isNegative&&e;return{x:g?b?f-c.right:f-k+c.pos-a.plotLeft:d+a.xAxis[0].transB-a.plotLeft,y:g?c.height-d-h:b?m-f-k:m-f,width:g?k:h,height:g?h:k}};return b}();e.prototype.getStacks=function(){var a=this,b=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(d){var f=d.xAxis&&d.xAxis.options||{};!d.options.stacking||!0!==
499
- d.visible&&!1!==a.options.chart.ignoreHiddenSeries||(d.stackKey=[d.type,k(d.options.stack,""),b?f.top:f.left,b?f.height:f.width].join())})};A.compose(b);t.prototype.setGroupedPoints=function(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?t.prototype.setStackedPoints.call(this,"group"):a&&f(a.stacks,function(b,d){"group"===d.slice(-5)&&(f(b,function(a){return a.destroy()}),delete a.stacks[d])})};
500
- t.prototype.setStackedPoints=function(a){var b=a||this.options.stacking;if(b&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var f=this.processedXData,e=this.processedYData,m=[],h=e.length,p=this.options,c=p.threshold,n=k(p.startFromThreshold&&c,0);p=p.stack;a=a?this.type+","+b:this.stackKey;var g="-"+a,y=this.negStacks,u=this.yAxis,D=u.stacking.stacks,H=u.stacking.oldStacks,t,z;u.stacking.stacksTouched+=1;for(z=0;z<h;z++){var v=f[z];var A=e[z];var C=this.getStackIndicator(C,
501
- v,this.index);var E=C.key;var I=(t=y&&A<(n?0:c))?g:a;D[I]||(D[I]={});D[I][v]||(H[I]&&H[I][v]?(D[I][v]=H[I][v],D[I][v].total=null):D[I][v]=new G(u,u.options.stackLabels,t,v,p));I=D[I][v];null!==A?(I.points[E]=I.points[this.index]=[k(I.cumulative,n)],l(I.cumulative)||(I.base=E),I.touched=u.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(I.points[E][0]=I.points[this.index+","+v+",0"][0])):I.points[E]=I.points[this.index]=null;"percent"===b?(t=t?a:g,y&&D[t]&&D[t][v]?(t=D[t][v],I.total=t.total=
502
- Math.max(t.total,I.total)+Math.abs(A)||0):I.total=q(I.total+(Math.abs(A)||0))):"group"===b?(d(A)&&(A=A[0]),null!==A&&(I.total=(I.total||0)+1)):I.total=q(I.total+(A||0));I.cumulative="group"===b?(I.total||1)-1:k(I.cumulative,n)+(A||0);null!==A&&(I.points[E].push(I.cumulative),m[z]=I.cumulative,I.hasValidPoints=!0)}"percent"===b&&(u.stacking.usePercentage=!0);"group"!==b&&(this.stackedYData=m);u.stacking.oldStacks={}}};t.prototype.modifyStacks=function(){var a=this,b=a.stackKey,d=a.yAxis.stacking.stacks,
503
- f=a.processedXData,k,h=a.options.stacking;a[h+"Stacker"]&&[b,"-"+b].forEach(function(b){for(var c=f.length,e,g;c--;)if(e=f[c],k=a.getStackIndicator(k,e,a.index,b),g=(e=d[b]&&d[b][e])&&e.points[k.key])a[h+"Stacker"](g,e,c)})};t.prototype.percentStacker=function(a,b,d){b=b.total?100/b.total:0;a[0]=q(a[0]*b);a[1]=q(a[1]*b);this.stackedYData[d]=a[1]};t.prototype.getStackIndicator=function(a,b,d,f){!l(a)||a.x!==b||f&&a.stackKey!==f?a={x:b,index:0,key:f,stackKey:f}:a.index++;a.key=[d,b,a.index].join();
504
- return a};E.StackItem=G;"";return E.StackItem});J(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v){var I=this&&this.__extends||function(){var b=function(e,q){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return b(e,q)};return function(e,q){function l(){this.constructor=e}b(e,q);e.prototype=null===q?Object.create(q):
505
- (l.prototype=q.prototype,new l)}}(),t=v.defined,A=v.merge;v=function(e){function z(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}I(z,e);z.prototype.drawGraph=function(){var b=this,e=this.options,n=(this.gappedPath||this.getGraphPath).call(this),d=this.chart.styledMode,a=[["graph","highcharts-graph"]];d||a[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle);a=b.getZonesGraphs(a);a.forEach(function(a,k){var f=a[0],l=b[f],q=l?"animate":"attr";
506
- l?(l.endX=b.preventGraphAnimation?null:n.xMap,l.animate({d:n})):n.length&&(b[f]=l=b.chart.renderer.path(n).addClass(a[1]).attr({zIndex:1}).add(b.group));l&&!d&&(f={stroke:a[2],"stroke-width":e.lineWidth,fill:b.fillGraph&&b.color||"none"},a[3]?f.dashstyle=a[3]:"square"!==e.linecap&&(f["stroke-linecap"]=f["stroke-linejoin"]="round"),l[q](f).shadow(2>k&&e.shadow));l&&(l.startX=n.xMap,l.isArea=n.isArea)})};z.prototype.getGraphPath=function(b,e,n){var d=this,a=d.options,f=[],k=[],l,y=a.step;b=b||d.points;
507
- var q=b.reversed;q&&b.reverse();(y={right:1,center:2}[y]||y&&3)&&q&&(y=4-y);b=this.getValidPoints(b,!1,!(a.connectNulls&&!e&&!n));b.forEach(function(x,r){var m=x.plotX,h=x.plotY,p=b[r-1];(x.leftCliff||p&&p.rightCliff)&&!n&&(l=!0);x.isNull&&!t(e)&&0<r?l=!a.connectNulls:x.isNull&&!e?l=!0:(0===r||l?r=[["M",x.plotX,x.plotY]]:d.getPointSpline?r=[d.getPointSpline(b,x,r)]:y?(r=1===y?[["L",p.plotX,h]]:2===y?[["L",(p.plotX+m)/2,p.plotY],["L",(p.plotX+m)/2,h]]:[["L",m,p.plotY]],r.push(["L",m,h])):r=[["L",m,
508
- h]],k.push(x.x),y&&(k.push(x.x),2===y&&k.push(x.x)),f.push.apply(f,r),l=!1)});f.xMap=k;return d.graphPath=f};z.prototype.getZonesGraphs=function(b){this.zones.forEach(function(e,n){n=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||"")];this.chart.styledMode||n.push(e.color||this.color,e.dashStyle||this.options.dashStyle);b.push(n)},this);return b};z.defaultOptions=A(b.defaultOptions,{});return z}(b);e.registerSeriesType("line",v);"";return v});J(e,"Series/Area/AreaSeries.js",
509
- [e["Core/Color/Color.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=this&&this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(d,a)};return function(d,a){function f(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),A=b.parse,
510
- I=v.seriesTypes.line;b=E.extend;var z=E.merge,q=E.objectEach,l=E.pick;E=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}t(d,b);d.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,d=this.areaPath,e=this.options,n=[["area","highcharts-area",this.color,e.fillColor]];this.zones.forEach(function(b,d){n.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+b.className,b.color||
511
- a.color,b.fillColor||e.fillColor])});n.forEach(function(b){var f=b[0],k=a[f],r=k?"animate":"attr",m={};k?(k.endX=a.preventGraphAnimation?null:d.xMap,k.animate({d:d})):(m.zIndex=0,k=a[f]=a.chart.renderer.path(d).addClass(b[1]).add(a.group),k.isArea=!0);a.chart.styledMode||(m.fill=l(b[3],A(b[2]).setOpacity(l(e.fillOpacity,.75)).get()));k[r](m);k.startX=d.xMap;k.shiftUnit=e.step?2:1})};d.prototype.getGraphPath=function(a){var b=I.prototype.getGraphPath,d=this.options,e=d.stacking,n=this.yAxis,q,x=[],
512
- r=[],m=this.index,h=n.stacking.stacks[this.stackKey],p=d.threshold,c=Math.round(n.getThreshold(d.threshold));d=l(d.connectNulls,"percent"===e);var w=function(b,d,f){var g=a[b];b=e&&h[g.x].points[m];var k=g[f+"Null"]||0;f=g[f+"Cliff"]||0;g=!0;if(f||k){var l=(k?b[0]:b[1])+f;var u=b[0]+f;g=!!k}else!e&&a[d]&&a[d].isNull&&(l=u=p);"undefined"!==typeof l&&(r.push({plotX:F,plotY:null===l?c:n.getThreshold(l),isNull:g,isCliff:!0}),x.push({plotX:F,plotY:null===u?c:n.getThreshold(u),doCurve:!1}))};a=a||this.points;
513
- e&&(a=this.getStackPoints(a));for(q=0;q<a.length;q++){e||(a[q].leftCliff=a[q].rightCliff=a[q].leftNull=a[q].rightNull=void 0);var g=a[q].isNull;var F=l(a[q].rectPlotX,a[q].plotX);var u=e?l(a[q].yBottom,c):c;if(!g||d)d||w(q,q-1,"left"),g&&!e&&d||(r.push(a[q]),x.push({x:q,plotX:F,plotY:u})),d||w(q,q+1,"right")}q=b.call(this,r,!0,!0);x.reversed=!0;g=b.call(this,x,!0,!0);(u=g[0])&&"M"===u[0]&&(g[0]=["L",u[1],u[2]]);g=q.concat(g);g.length&&g.push(["Z"]);b=b.call(this,r,!1,d);g.xMap=q.xMap;this.areaPath=
514
- g;return b};d.prototype.getStackPoints=function(a){var b=this,d=[],e=[],n=this.xAxis,B=this.yAxis,x=B.stacking.stacks[this.stackKey],r={},m=B.series,h=m.length,p=B.options.reversedStacks?1:-1,c=m.indexOf(b);a=a||this.points;if(this.options.stacking){for(var w=0;w<a.length;w++)a[w].leftNull=a[w].rightNull=void 0,r[a[w].x]=a[w];q(x,function(c,a){null!==c.total&&e.push(a)});e.sort(function(c,a){return c-a});var g=m.map(function(c){return c.visible});e.forEach(function(a,f){var k=0,u,w;if(r[a]&&!r[a].isNull)d.push(r[a]),
515
- [-1,1].forEach(function(d){var k=1===d?"rightNull":"leftNull",l=0,n=x[e[f+d]];if(n)for(var D=c;0<=D&&D<h;){var q=m[D].index;u=n.points[q];u||(q===b.index?r[a][k]=!0:g[D]&&(w=x[a].points[q])&&(l-=w[1]-w[0]));D+=p}r[a][1===d?"rightCliff":"leftCliff"]=l});else{for(var q=c;0<=q&&q<h;){if(u=x[a].points[m[q].index]){k=u[1];break}q+=p}k=l(k,0);k=B.translate(k,0,1,0,1);d.push({isNull:!0,plotX:n.translate(a,0,0,0,1),x:a,plotY:k,yBottom:k})}})}return d};d.defaultOptions=z(I.defaultOptions,{threshold:0});return d}(I);
516
- b(E.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle});v.registerSeriesType("area",E);"";return E});J(e,"Series/Spline/SplineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var v=this&&this.__extends||function(){var b=function(e,q){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return b(e,q)};return function(e,q){function l(){this.constructor=e}b(e,
517
- q);e.prototype=null===q?Object.create(q):(l.prototype=q.prototype,new l)}}(),I=b.seriesTypes.line,t=e.merge,A=e.pick;e=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}v(e,b);e.prototype.getPointSpline=function(b,e,n){var d=e.plotX||0,a=e.plotY||0,f=b[n-1];n=b[n+1];if(f&&!f.isNull&&!1!==f.doCurve&&!e.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff){b=f.plotY||0;var k=n.plotX||0;n=n.plotY||0;var l=0;var q=(1.5*d+(f.plotX||
518
- 0))/2.5;var B=(1.5*a+b)/2.5;k=(1.5*d+k)/2.5;var x=(1.5*a+n)/2.5;k!==q&&(l=(x-B)*(k-d)/(k-q)+a-x);B+=l;x+=l;B>b&&B>a?(B=Math.max(b,a),x=2*a-B):B<b&&B<a&&(B=Math.min(b,a),x=2*a-B);x>n&&x>a?(x=Math.max(n,a),B=2*a-x):x<n&&x<a&&(x=Math.min(n,a),B=2*a-x);e.rightContX=k;e.rightContY=x}e=["C",A(f.rightContX,f.plotX,0),A(f.rightContY,f.plotY,0),A(q,d,0),A(B,a,0),d,a];f.rightContX=f.rightContY=void 0;return e};e.defaultOptions=t(I.defaultOptions);return e}(I);b.registerSeriesType("spline",e);"";return e});
519
- J(e,"Series/AreaSpline/AreaSplineSeries.js",[e["Series/Area/AreaSeries.js"],e["Series/Spline/SplineSeries.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E,t){var A=this&&this.__extends||function(){var b=function(e,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,d)};return function(e,d){function a(){this.constructor=e}b(e,
520
- d);e.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),I=b.prototype,z=t.extend,q=t.merge;t=function(l){function n(){var b=null!==l&&l.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;return b}A(n,l);n.defaultOptions=q(e.defaultOptions,b.defaultOptions);return n}(e);z(t.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:v.drawRectangle});E.registerSeriesType("areaspline",t);"";return t});J(e,
521
- "Series/Column/ColumnSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C){var z=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return a(b,c)};return function(b,
522
- c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),q=b.animObject,l=e.parse,n=v.hasTouch;b=v.noop;var d=C.clamp,a=C.css,f=C.defined,k=C.extend,G=C.fireEvent,y=C.isArray,B=C.isNumber,x=C.merge,r=C.pick,m=C.objectEach;C=function(b){function h(){var c=null!==b&&b.apply(this,arguments)||this;c.borderWidth=void 0;c.data=void 0;c.group=void 0;c.options=void 0;c.points=void 0;return c}z(h,b);h.prototype.animate=function(c){var a=this,b=this.yAxis,
523
- f=a.options,h=this.chart.inverted,e={},m=h?"translateX":"translateY";if(c)e.scaleY=.001,c=d(b.toPixels(f.threshold),b.pos,b.pos+b.len),h?e.translateX=c-b.len:e.translateY=c,a.clipBox&&a.setClip(),a.group.attr(e);else{var l=Number(a.group.attr(m));a.group.animate({scaleY:1},k(q(a.options.animation),{step:function(c,d){a.group&&(e[m]=l+d.pos*(b.pos-l),a.group.attr(e))}}))}};h.prototype.init=function(c,a){b.prototype.init.apply(this,arguments);var d=this;c=d.chart;c.hasRendered&&c.series.forEach(function(c){c.type===
524
- d.type&&(c.isDirty=!0)})};h.prototype.getColumnMetrics=function(){var c=this,a=c.options,b=c.xAxis,d=c.yAxis,f=b.options.reversedStacks;f=b.reversed&&!f||!b.reversed&&f;var h={},e,k=0;!1===a.grouping?k=1:c.chart.series.forEach(function(a){var b=a.yAxis,f=a.options;if(a.type===c.type&&(a.visible||!c.chart.options.chart.ignoreHiddenSeries)&&d.len===b.len&&d.pos===b.pos){if(f.stacking&&"group"!==f.stacking){e=a.stackKey;"undefined"===typeof h[e]&&(h[e]=k++);var g=h[e]}else!1!==f.grouping&&(g=k++);a.columnIndex=
525
- g}});var m=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||a.pointRange||b.closestPointRange||b.tickInterval||1),b.len),l=m*a.groupPadding,p=(m-2*l)/(k||1);a=Math.min(a.maxPointWidth||b.len,r(a.pointWidth,p*(1-2*a.pointPadding)));c.columnMetrics={width:a,offset:(p-a)/2+(l+((c.columnIndex||0)+(f?1:0))*p-m/2)*(f?-1:1),paddedWidth:p,columnCount:k};return c.columnMetrics};h.prototype.crispCol=function(c,a,b,d){var f=this.chart,g=this.borderWidth,h=-(g%2?.5:0);g=g%2?.5:1;f.inverted&&f.renderer.isVML&&
526
- (g+=1);this.options.crisp&&(b=Math.round(c+b)+h,c=Math.round(c)+h,b-=c);d=Math.round(a+d)+g;h=.5>=Math.abs(a)&&.5<d;a=Math.round(a)+g;d-=a;h&&d&&(--a,d+=1);return{x:c,y:a,width:b,height:d}};h.prototype.adjustForMissingColumns=function(c,a,b,d){var f=this,g=this.options.stacking;if(!b.isNull&&1<d.columnCount){var h=this.yAxis.options.reversedStacks,e=0,k=h?0:-d.columnCount;m(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(c){if("number"===typeof b.x&&(c=c[b.x.toString()])){var a=c.points[f.index],
527
- d=c.total;g?(a&&(e=k),c.hasValidPoints&&(h?k++:k--)):y(a)&&(e=a[1],k=d||0)}});c=(b.plotX||0)+((k-1)*d.paddedWidth+a)/2-a-e*d.paddedWidth}return c};h.prototype.translate=function(){var c=this,a=c.chart,b=c.options,h=c.dense=2>c.closestPointRange*c.xAxis.transA;h=c.borderWidth=r(b.borderWidth,h?0:1);var e=c.xAxis,k=c.yAxis,m=b.threshold,l=c.translatedThreshold=k.getThreshold(m),p=r(b.minPointLength,5),n=c.getColumnMetrics(),x=n.width,q=c.pointXOffset=n.offset,y=c.dataMin,G=c.dataMax,z=c.barW=Math.max(x,
528
- 1+2*h);a.inverted&&(l-=.5);b.pointPadding&&(z=Math.ceil(z));t.prototype.translate.apply(c);c.points.forEach(function(g){var h=r(g.yBottom,l),u=999+Math.abs(h),w=g.plotX||0;u=d(g.plotY,-u,k.len+u);var D=Math.min(u,h),t=Math.max(u,h)-D,H=x,F=w+q,v=z;p&&Math.abs(t)<p&&(t=p,w=!k.reversed&&!g.negative||k.reversed&&g.negative,B(m)&&B(G)&&g.y===m&&G<=m&&(k.min||0)<m&&(y!==G||(k.max||0)<=m)&&(w=!w),D=Math.abs(D-l)>p?h-p:l-(w?p:0));f(g.options.pointWidth)&&(H=v=Math.ceil(g.options.pointWidth),F-=Math.round((H-
529
- x)/2));b.centerInCategory&&(F=c.adjustForMissingColumns(F,H,g,n));g.barX=F;g.pointWidth=H;g.tooltipPos=a.inverted?[d(k.len+k.pos-a.plotLeft-u,k.pos-a.plotLeft,k.len+k.pos-a.plotLeft),e.len+e.pos-a.plotTop-F-v/2,t]:[e.left-a.plotLeft+F+v/2,d(u+k.pos-a.plotTop,k.pos-a.plotTop,k.len+k.pos-a.plotTop),t];g.shapeType=c.pointClass.prototype.shapeType||"rect";g.shapeArgs=c.crispCol.apply(c,g.isNull?[F,l,v,0]:[F,D,v,t])})};h.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};
530
- h.prototype.pointAttribs=function(c,a){var b=this.options,d=this.pointAttrToOptions||{},f=d.stroke||"borderColor",h=d["stroke-width"]||"borderWidth",e=c&&c.color||this.color,k=c&&c[f]||b[f]||e;d=c&&c.options.dashStyle||b.dashStyle;var m=c&&c[h]||b[h]||this[h]||0,p=r(c&&c.opacity,b.opacity,1);if(c&&this.zones.length){var n=c.getZone();e=c.options.color||n&&(n.color||c.nonZonedColor)||this.color;n&&(k=n.borderColor||k,d=n.dashStyle||d,m=n.borderWidth||m)}a&&c&&(c=x(b.states[a],c.options.states&&c.options.states[a]||
531
- {}),a=c.brightness,e=c.color||"undefined"!==typeof a&&l(e).brighten(c.brightness).get()||e,k=c[f]||k,m=c[h]||m,d=c.dashStyle||d,p=r(c.opacity,p));f={fill:e,stroke:k,"stroke-width":m,opacity:p};d&&(f.dashstyle=d);return f};h.prototype.drawPoints=function(){var c=this,a=this.chart,b=c.options,d=a.renderer,f=b.animationLimit||250,h;c.points.forEach(function(g){var e=g.graphic,k=!!e,m=e&&a.pointCount<f?"animate":"attr";if(B(g.plotY)&&null!==g.y){h=g.shapeArgs;e&&g.hasNewShapeType()&&(e=e.destroy());c.enabledDataSorting&&
532
- (g.startXPos=c.xAxis.reversed?-(h?h.width||0:0):c.xAxis.width);e||(g.graphic=e=d[g.shapeType](h).add(g.group||c.group))&&c.enabledDataSorting&&a.hasRendered&&a.pointCount<f&&(e.attr({x:g.startXPos}),k=!0,m="animate");if(e&&k)e[m](x(h));if(b.borderRadius)e[m]({r:b.borderRadius});a.styledMode||e[m](c.pointAttribs(g,g.selected&&"select")).shadow(!1!==g.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);e&&(e.addClass(g.getClassName(),!0),e.attr({visibility:g.visible?"inherit":"hidden"}))}else e&&
533
- (g.graphic=e.destroy())})};h.prototype.drawTracker=function(){var c=this,b=c.chart,d=b.pointer,f=function(c){var a=d.getPointFromEvent(c);"undefined"!==typeof a&&(d.isDirectTouch=!0,a.onMouseOver(c))},h;c.points.forEach(function(c){h=y(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[];c.graphic&&(c.graphic.element.point=c);h.forEach(function(a){a.div?a.div.point=c:a.element.point=c})});c._hasTracking||(c.trackerGroups.forEach(function(g){if(c[g]){c[g].addClass("highcharts-tracker").on("mouseover",
534
- f).on("mouseout",function(c){d.onTrackerMouseOut(c)});if(n)c[g].on("touchstart",f);!b.styledMode&&c.options.cursor&&c[g].css(a).css({cursor:c.options.cursor})}}),c._hasTracking=!0);G(this,"afterDrawTracker")};h.prototype.remove=function(){var c=this,a=c.chart;a.hasRendered&&a.series.forEach(function(a){a.type===c.type&&(a.isDirty=!0)});t.prototype.remove.apply(c,arguments)};h.defaultOptions=x(t.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,
535
- cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return h}(t);k(C.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:E.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});A.registerSeriesType("column",C);"";"";return C});J(e,"Core/Series/DataLabel.js",
536
- [e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(b,e,v){var I=b.getDeferredAnimation,t=e.format,A=v.defined,C=v.extend,z=v.fireEvent,q=v.isArray,l=v.merge,n=v.objectEach,d=v.pick,a=v.splat,f;(function(b){function f(a,c,b,f,h){var g=this,e=this.chart,k=this.isCartesian&&e.inverted,m=this.enabledDataSorting,l=d(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),p=d(a.plotY,-9999),r=c.getBBox(),n=b.rotation,w=b.align,x=e.isInsidePlot(l,Math.round(p),{inverted:k,
537
- paneCoordinates:!0,series:g}),q=function(b){m&&g.xAxis&&!y&&g.setDataLabelStartPos(a,c,h,x,b)},y="justify"===d(b.overflow,m?"none":"justify"),B=this.visible&&!1!==a.visible&&(a.series.forceDL||m&&!y||x||d(b.inside,!!this.options.stacking)&&f&&e.isInsidePlot(l,k?f.x+1:f.y+f.height-1,{inverted:k,paneCoordinates:!0,series:g}));if(B){var t=e.renderer.fontMetrics(e.styledMode?void 0:b.style.fontSize,c).b;f=C({x:k?this.yAxis.len-p:l,y:Math.round(k?this.xAxis.len-l:p),width:0,height:0},f);C(b,{width:r.width,
538
- height:r.height});n?(y=!1,l=e.renderer.rotCorr(t,n),l={x:f.x+(b.x||0)+f.width/2+l.x,y:f.y+(b.y||0)+{top:0,middle:.5,bottom:1}[b.verticalAlign]*f.height},q(l),c[h?"attr":"animate"](l).attr({align:w}),q=(n+720)%360,q=180<q&&360>q,"left"===w?l.y-=q?r.height:0:"center"===w?(l.x-=r.width/2,l.y-=r.height/2):"right"===w&&(l.x-=r.width,l.y-=q?0:r.height),c.placed=!0,c.alignAttr=l):(q(f),c.align(b,void 0,f),l=c.alignAttr);y&&0<=f.height?this.justifyDataLabel(c,b,l,r,f,h):d(b.crop,!0)&&(B=e.isInsidePlot(l.x,
539
- l.y,{paneCoordinates:!0,series:g})&&e.isInsidePlot(l.x+r.width,l.y+r.height,{paneCoordinates:!0,series:g}));if(b.shape&&!n)c[h?"attr":"animate"]({anchorX:k?e.plotWidth-a.plotY:a.plotX,anchorY:k?e.plotHeight-a.plotX:a.plotY})}h&&m&&(c.placed=!1);B||m&&!y||(c.hide(!0),c.placed=!1)}function e(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a<b||">="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function k(){var b=this,c=b.chart,f=b.options,
540
- g=b.points,h=b.hasRendered||0,k=c.renderer,m=f.dataLabels,l,x=m.animation;x=m.defer?I(c,x,b):{defer:0,duration:0};m=r(r(c.options.plotOptions&&c.options.plotOptions.series&&c.options.plotOptions.series.dataLabels,c.options.plotOptions&&c.options.plotOptions[b.type]&&c.options.plotOptions[b.type].dataLabels),m);z(this,"drawDataLabels");if(q(m)||m.enabled||b._hasPointLabels){var y=b.plotGroup("dataLabelsGroup","data-labels",h?"inherit":"hidden",m.zIndex||6);y.attr({opacity:+h});!h&&(h=b.dataLabelsGroup)&&
541
- (b.visible&&y.show(!0),h[f.animation?"animate":"attr"]({opacity:1},x));g.forEach(function(g){l=a(r(m,g.dlOptions||g.options&&g.options.dataLabels));l.forEach(function(a,h){var m=a.enabled&&(!g.isNull||g.dataLabelOnNull)&&e(g,a),l=g.connectors?g.connectors[h]:g.connector,p=g.dataLabels?g.dataLabels[h]:g.dataLabel,r=!p,u=d(a.distance,g.labelDistance);if(m){var x=g.getLabelConfig();var w=d(a[g.formatPrefix+"Format"],a.format);x=A(w)?t(w,x,c):(a[g.formatPrefix+"Formatter"]||a.formatter).call(x,a);w=a.style;
542
- var q=a.rotation;c.styledMode||(w.color=d(a.color,w.color,b.color,"#000000"),"contrast"===w.color?(g.contrastColor=k.getContrast(g.color||b.color),w.color=!A(u)&&a.inside||0>u||f.stacking?g.contrastColor:"#000000"):delete g.contrastColor,f.cursor&&(w.cursor=f.cursor));var D={r:a.borderRadius||0,rotation:q,padding:a.padding,zIndex:1};c.styledMode||(D.fill=a.backgroundColor,D.stroke=a.borderColor,D["stroke-width"]=a.borderWidth);n(D,function(c,a){"undefined"===typeof c&&delete D[a]})}!p||m&&A(x)&&!!p.div===
543
- !!a.useHTML&&(p.rotation&&a.rotation||p.rotation===a.rotation)||(r=!0,g.dataLabel=p=g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[h]),h||delete g.dataLabel,l&&(g.connector=g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[h])));m&&A(x)&&(p?D.text=x:(g.dataLabels=g.dataLabels||[],p=g.dataLabels[h]=q?k.text(x,0,-9999,a.useHTML).addClass("highcharts-data-label"):k.label(x,0,-9999,a.shape,
544
- null,null,a.useHTML,null,"data-label"),h||(g.dataLabel=p),p.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(a.className||"")+(a.useHTML?" highcharts-tracker":""))),p.options=a,p.attr(D),c.styledMode||p.css(w).shadow(a.shadow),p.added||p.add(y),a.textPath&&!a.useHTML&&(p.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(p)||g.graphic,a.textPath),g.dataLabelPath&&!a.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),b.alignDataLabel(g,p,a,null,r))})})}z(this,"afterDrawDataLabels")}
545
- function x(a,c,b,d,f,h){var g=this.chart,e=c.align,k=c.verticalAlign,m=a.box?0:a.padding||0,l=c.x;l=void 0===l?0:l;var p=c.y;p=void 0===p?0:p;var r=(b.x||0)+m;if(0>r){"right"===e&&0<=l?(c.align="left",c.inside=!0):l-=r;var u=!0}r=(b.x||0)+d.width-m;r>g.plotWidth&&("left"===e&&0>=l?(c.align="right",c.inside=!0):l+=g.plotWidth-r,u=!0);r=b.y+m;0>r&&("bottom"===k&&0<=p?(c.verticalAlign="top",c.inside=!0):p-=r,u=!0);r=(b.y||0)+d.height-m;r>g.plotHeight&&("top"===k&&0>=p?(c.verticalAlign="bottom",c.inside=
546
- !0):p+=g.plotHeight-r,u=!0);u&&(c.x=l,c.y=p,a.placed=!h,a.align(c,void 0,f));return u}function r(a,c){var b=[],d;if(q(a)&&!q(c))b=a.map(function(a){return l(a,c)});else if(q(c)&&!q(a))b=c.map(function(c){return l(a,c)});else if(q(a)||q(c))for(d=Math.max(a.length,c.length);d--;)b[d]=l(a[d],c[d]);else b=l(a,c);return b}function m(a,c,b,d,f){var g=this.chart,h=g.inverted,e=this.xAxis,k=e.reversed,m=h?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=h?f.x:k?-m-a:e.width-m+a;c.startYPos=h?k?this.yAxis.height-
547
- m+a:-m-a:f.y;d?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);g.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var h=[];b.compose=function(a){if(-1===h.indexOf(a)){var c=a.prototype;h.push(a);c.alignDataLabel=f;c.drawDataLabels=k;c.justifyDataLabel=x;c.setDataLabelStartPos=m}}})(f||(f={}));"";return f});J(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Series/SeriesRegistry.js"],
548
- e["Core/Utilities.js"]],function(b,e,v){var I=e.series,t=v.merge,A=v.pick,C;(function(e){function q(b,d,a,f,e){var k=this.chart.inverted,l=b.series,n=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var x=b.dlBox||b.shapeArgs,r=A(b.below,b.plotY>A(this.translatedThreshold,l)),m=A(a.inside,!!this.options.stacking);x&&(f=t(x),0>f.y&&(f.height+=f.y,f.y=0),x=f.y+f.height-l,0<x&&x<f.height&&(f.height-=x),k&&(f={x:l-f.y-f.height,y:n-f.x-f.width,width:f.height,
549
- height:f.width}),m||(k?(f.x+=r?0:f.width,f.width=0):(f.y+=r?f.height:0,f.height=0)));a.align=A(a.align,!k||m?"center":r?"right":"left");a.verticalAlign=A(a.verticalAlign,k||m?"middle":r?"top":"bottom");I.prototype.alignDataLabel.call(this,b,d,a,f,e);a.inside&&b.contrastColor&&d.css({color:b.contrastColor})}var l=[];e.compose=function(e){b.compose(I);-1===l.indexOf(e)&&(l.push(e),e.prototype.alignDataLabel=q)}})(C||(C={}));return C});J(e,"Series/Bar/BarSeries.js",[e["Series/Column/ColumnSeries.js"],
550
- e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v){var I=this&&this.__extends||function(){var b=function(e,q){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return b(e,q)};return function(e,q){function l(){this.constructor=e}b(e,q);e.prototype=null===q?Object.create(q):(l.prototype=q.prototype,new l)}}(),t=v.extend,A=v.merge;v=function(e){function t(){var b=null!==e&&e.apply(this,
551
- arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}I(t,e);t.defaultOptions=A(b.defaultOptions,{});return t}(b);t(v.prototype,{inverted:!0});e.registerSeriesType("bar",v);"";return v});J(e,"Series/Scatter/ScatterSeries.js",[e["Series/Column/ColumnSeries.js"],e["Series/Line/LineSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=this&&this.__extends||function(){var b=function(e,n){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
552
- function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(e,n)};return function(e,n){function d(){this.constructor=e}b(e,n);e.prototype=null===n?Object.create(n):(d.prototype=n.prototype,new d)}}(),A=E.addEvent,I=E.extend,z=E.merge;E=function(b){function l(){var e=null!==b&&b.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}t(l,b);l.prototype.applyJitter=function(){var b=this,d=this.options.jitter,a=this.points.length;
553
- d&&this.points.forEach(function(f,e){["x","y"].forEach(function(k,l){var n="plot"+k.toUpperCase();if(d[k]&&!f.isNull){var x=b[k+"Axis"];var r=d[k]*x.transA;if(x&&!x.isLog){var m=Math.max(0,f[n]-r);x=Math.min(x.len,f[n]+r);l=1E4*Math.sin(e+l*a);f[n]=m+(x-m)*(l-Math.floor(l));"x"===k&&(f.clientX=f.plotX)}}})})};l.prototype.drawGraph=function(){this.options.lineWidth?b.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};l.defaultOptions=z(e.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",
554
- jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return l}(e);I(E.prototype,{drawTracker:b.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});A(E,"afterTranslate",function(){this.applyJitter()});v.registerSeriesType("scatter",
555
- E);"";return E});J(e,"Series/CenteredUtilities.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(b,e,v){var I=b.deg2rad,t=v.isNumber,A=v.pick,C=v.relativeLength,z;(function(b){b.getCenter=function(){var b=this.options,n=this.chart,d=2*(b.slicedOffset||0),a=n.plotWidth-2*d,f=n.plotHeight-2*d,k=b.center,q=Math.min(a,f),y=b.size,B=b.innerSize||0;"string"===typeof y&&(y=parseFloat(y));"string"===typeof B&&(B=parseFloat(B));b=[A(k[0],"50%"),A(k[1],"50%"),A(y&&0>y?void 0:
556
- b.size,"100%"),A(B&&0>B?void 0:b.innerSize||0,"0%")];!n.angular||this instanceof e||(b[3]=0);for(k=0;4>k;++k)y=b[k],n=2>k||2===k&&/%$/.test(y),b[k]=C(y,[a,f,q,b[2]][k])+(n?d:0);b[3]>b[2]&&(b[3]=b[2]);return b};b.getStartAndEndRadians=function(b,e){b=t(b)?b:0;e=t(e)&&e>b&&360>e-b?e:b+360;return{start:I*(b+-90),end:I*(e+-90)}}})(z||(z={}));"";return z});J(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(b,e,v){var I=this&&
557
- this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(d,a)};return function(d,a){function f(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),t=b.setAnimation,A=v.addEvent,C=v.defined;b=v.extend;var z=v.isNumber,q=v.pick,l=v.relativeLength;e=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||
558
- this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}I(d,b);d.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,d=this.connectorShapes,e=b.connectorShape;d[e]&&(e=d[e]);return e.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};d.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d.prototype.haloPath=function(a){var b=this.shapeArgs;return this.sliced||
559
- !this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:b.r-1,start:b.start,end:b.end})};d.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=q(this.name,"Slice");var d=function(b){a.slice("select"===b.type)};A(this,"select",d);A(this,"unselect",d);return this};d.prototype.isValid=function(){return z(this.y)&&0<=this.y};d.prototype.setVisible=function(a,b){var d=this,f=this.series,e=f.chart,l=f.options.ignoreHiddenPoint;b=q(b,l);a!==this.visible&&
560
- (this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,f.options.data[f.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(d[b])d[b][a?"show":"hide"](a)}),this.legendItem&&e.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),l&&(f.isDirty=!0),b&&e.redraw())};d.prototype.slice=function(a,b,d){var f=this.series;t(d,f.chart);q(b,!0);this.sliced=this.options.sliced=C(a)?a:!this.sliced;f.options.data[f.data.indexOf(this)]=
561
- this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d}(e);b(e.prototype,{connectorShapes:{fixedOffset:function(b,d,a){var f=d.breakAt;d=d.touchingSliceAt;return[["M",b.x,b.y],a.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*f.x-d.x,2*f.y-d.y,f.x,f.y]:["L",f.x,f.y],["L",d.x,d.y]]},straight:function(b,d){d=d.touchingSliceAt;return[["M",b.x,b.y],["L",d.x,d.y]]},crookedLine:function(b,d,a){d=d.touchingSliceAt;
562
- var f=this.series,e=f.center[0],n=f.chart.plotWidth,q=f.chart.plotLeft;f=b.alignment;var B=this.shapeArgs.r;a=l(a.crookDistance,1);n="left"===f?e+B+(n+q-e-B)*(1-a):q+(e-B)*a;a=["L",n,b.y];e=!0;if("left"===f?n>b.x||n<d.x:n<b.x||n>d.x)e=!1;b=[["M",b.x,b.y]];e&&b.push(a);b.push(["L",d.x,d.y]);return b}}});return e});J(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Series/Pie/PiePoint.js"],e["Core/Series/Series.js"],
563
- e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C,z,q){var l=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),n=b.getStartAndEndRadians;
564
- v=v.noop;var d=q.clamp,a=q.extend,f=q.fireEvent,k=q.merge,G=q.pick,y=q.relativeLength;q=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}l(b,a);b.prototype.animate=function(a){var b=this,d=b.points,f=b.startAngleRad;a||d.forEach(function(c){var a=c.graphic,d=c.shapeArgs;a&&d&&(a.attr({r:G(c.startR,b.center&&b.center[3]/2),start:f,end:f}),a.animate({r:d.r,start:d.start,end:d.end},
565
- b.options.animation))})};b.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var f=this.center[0];var c=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,c,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:z.arc(f,c,this.center[2]/2,0,{start:a,end:b,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",
566
- stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};b.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})};b.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};b.prototype.getX=function(a,b,f){var h=this.center,c=this.radii?this.radii[f.index]||
567
- 0:h[2]/2;a=Math.asin(d((a-h[1])/(c+f.labelDistance),-1,1));return h[0]+(b?-1:1)*Math.cos(a)*(c+f.labelDistance)+(0<f.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.redrawPoints=function(){var a=this,b=a.chart,d=b.renderer,f=a.options.shadow,c,e,g,l;this.drawEmpty();!f||a.shadowGroup||b.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(h){var m={};e=h.graphic;
568
- if(!h.isNull&&e){var p=void 0;l=h.shapeArgs;c=h.getTranslate();b.styledMode||(p=h.shadowGroup,f&&!p&&(p=h.shadowGroup=d.g("shadow").add(a.shadowGroup)),p&&p.attr(c),g=a.pointAttribs(h,h.selected&&"select"));h.delayedRendering?(e.setRadialReference(a.center).attr(l).attr(c),b.styledMode||e.attr(g).attr({"stroke-linejoin":"round"}).shadow(f,p),h.delayedRendering=!1):(e.setRadialReference(a.center),b.styledMode||k(!0,m,g),k(!0,m,l,c),e.animate(m));e.attr({visibility:h.visible?"inherit":"hidden"});e.addClass(h.getClassName(),
569
- !0)}else e&&(h.graphic=e.destroy())})};b.prototype.sortByAngle=function(a,b){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*b})};b.prototype.translate=function(a){this.generatePoints();var b=this.options,d=b.slicedOffset,e=d+(b.borderWidth||0),c=n(b.startAngle,b.endAngle),k=this.startAngleRad=c.start;c=(this.endAngleRad=c.end)-k;var g=this.points,l=b.dataLabels.distance;b=b.ignoreHiddenPoint;var u=g.length,r,x=0;a||(this.center=a=this.getCenter());for(r=0;r<u;r++){var q=
570
- g[r];var t=k+x*c;!q.isValid()||b&&!q.visible||(x+=q.percentage/100);var B=k+x*c;var v={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*t)/1E3,end:Math.round(1E3*B)/1E3};q.shapeType="arc";q.shapeArgs=v;q.labelDistance=G(q.options.dataLabels&&q.options.dataLabels.distance,l);q.labelDistance=y(q.labelDistance,v.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,q.labelDistance);B=(B+t)/2;B>1.5*Math.PI?B-=2*Math.PI:B<-Math.PI/2&&(B+=2*Math.PI);q.slicedTranslation={translateX:Math.round(Math.cos(B)*
571
- d),translateY:Math.round(Math.sin(B)*d)};v=Math.cos(B)*a[2]/2;var z=Math.sin(B)*a[2]/2;q.tooltipPos=[a[0]+.7*v,a[1]+.7*z];q.half=B<-Math.PI/2||B>Math.PI/2?1:0;q.angle=B;t=Math.min(e,q.labelDistance/5);q.labelPosition={natural:{x:a[0]+v+Math.cos(B)*q.labelDistance,y:a[1]+z+Math.sin(B)*q.labelDistance},"final":{},alignment:0>q.labelDistance?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+v+Math.cos(B)*t,y:a[1]+z+Math.sin(B)*t},touchingSliceAt:{x:a[0]+v,y:a[1]+z}}}}f(this,"afterTranslate")};
572
- b.prototype.updateTotals=function(){var a=this.points,b=a.length,d=this.options.ignoreHiddenPoint,f,c=0;for(f=0;f<b;f++){var e=a[f];!e.isValid()||d&&!e.visible||(c+=e.y)}this.total=c;for(f=0;f<b;f++)e=a[f],e.percentage=0<c&&(e.visible||!d)?e.y/c*100:0,e.total=c};b.defaultOptions=k(A.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?
573
- void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return b}(A);a(q.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:E.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:b.getCenter,getSymbol:v,isCartesian:!1,
574
- noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:t,requireSorting:!1,searchPoint:v,trackerGroups:["group","dataLabelsGroup"]});C.registerSeriesType("pie",q);"";return q});J(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E,t){var A=e.noop,I=v.distribute,z=E.series,q=t.arrayMax,l=t.clamp,n=t.defined,d=t.merge,a=t.pick,f=t.relativeLength,
575
- k;(function(e){function k(){var b=this,f=b.data,c=b.chart,e=b.options.dataLabels||{},g=e.connectorPadding,k=c.plotWidth,m=c.plotHeight,l=c.plotLeft,r=Math.round(c.chartWidth/3),x=b.center,y=x[2]/2,B=x[1],t=[[],[]],v=[0,0,0,0],G=b.dataLabelPositioners,A,E,C,J,Z,R,aa,Q,U,T,V,O;b.visible&&(e.enabled||b._hasPointLabels)&&(f.forEach(function(c){c.dataLabel&&c.visible&&c.dataLabel.shortened&&(c.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),c.dataLabel.shortened=!1)}),z.prototype.drawDataLabels.apply(b),
576
- f.forEach(function(c){c.dataLabel&&(c.visible?(t[c.half].push(c),c.dataLabel._pos=null,!n(e.style.width)&&!n(c.options.dataLabels&&c.options.dataLabels.style&&c.options.dataLabels.style.width)&&c.dataLabel.getBBox().width>r&&(c.dataLabel.css({width:Math.round(.7*r)+"px"}),c.dataLabel.shortened=!0)):(c.dataLabel=c.dataLabel.destroy(),c.dataLabels&&1===c.dataLabels.length&&delete c.dataLabels))}),t.forEach(function(d,f){var h=d.length,p=[],u;if(h){b.sortByAngle(d,f-.5);if(0<b.maxLabelDistance){var r=
577
- Math.max(0,B-y-b.maxLabelDistance);var q=Math.min(B+y+b.maxLabelDistance,c.plotHeight);d.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,B-y-a.labelDistance),a.bottom=Math.min(B+y+a.labelDistance,c.plotHeight),u=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+u/2,size:u,rank:a.y},p.push(a.distributeBox))});r=q+u-r;I(p,r,r/5)}for(V=0;V<h;V++){A=d[V];R=A.labelPosition;J=A.dataLabel;T=!1===A.visible?"hidden":"inherit";U=r=R.natural.y;p&&
578
- n(A.distributeBox)&&("undefined"===typeof A.distributeBox.pos?T="hidden":(aa=A.distributeBox.size,U=G.radialDistributionY(A)));delete A.positionIndex;if(e.justify)Q=G.justify(A,y,x);else switch(e.alignTo){case "connectors":Q=G.alignToConnectors(d,f,k,l);break;case "plotEdges":Q=G.alignToPlotEdges(J,f,k,l);break;default:Q=G.radialDistributionX(b,A,U,r)}J._attr={visibility:T,align:R.alignment};O=A.options.dataLabels||{};J._pos={x:Q+a(O.x,e.x)+({left:g,right:-g}[R.alignment]||0),y:U+a(O.y,e.y)-10};R.final.x=
579
- Q;R.final.y=U;a(e.crop,!0)&&(Z=J.getBBox().width,r=null,Q-Z<g&&1===f?(r=Math.round(Z-Q+g),v[3]=Math.max(r,v[3])):Q+Z>k-g&&0===f&&(r=Math.round(Q+Z-k+g),v[1]=Math.max(r,v[1])),0>U-aa/2?v[0]=Math.max(Math.round(-U+aa/2),v[0]):U+aa/2>m&&(v[2]=Math.max(Math.round(U+aa/2-m),v[2])),J.sideOverflow=r)}}}),0===q(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(f){O=d(e,f.options.dataLabels);if(E=a(O.connectorWidth,1)){var g;C=f.connector;if((J=f.dataLabel)&&J._pos&&
580
- f.visible&&0<f.labelDistance){T=J._attr.visibility;if(g=!C)f.connector=C=c.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+f.colorIndex+(f.className?" "+f.className:"")).add(b.dataLabelsGroup),c.styledMode||C.attr({"stroke-width":E,stroke:O.connectorColor||f.color||"#666666"});C[g?"attr":"animate"]({d:f.getConnectorPath()});C.attr("visibility",T)}else C&&(f.connector=C.destroy())}}))}function B(){this.points.forEach(function(a){var b=a.dataLabel,c;b&&a.visible&&((c=b._pos)?
581
- (b.sideOverflow&&(b._attr.width=Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](c),b.moved=!0):b&&b.attr({y:-9999}));delete a.distributeBox},this)}function x(a){var b=this.center,c=this.options,d=c.center,g=c.minSize||80,h=null!==c.size;if(!h){if(null!==d[0])var e=Math.max(b[2]-Math.max(a[1],a[3]),g);else e=Math.max(b[2]-a[1]-a[3],g),
582
- b[0]+=(a[3]-a[1])/2;null!==d[1]?e=l(e,g,b[2]-Math.max(a[0],a[2])):(e=l(e,g,b[2]-a[0]-a[2]),b[1]+=(a[0]-a[2])/2);e<b[2]?(b[2]=e,b[3]=Math.min(f(c.innerSize||0,e),e),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):h=!0}return h}var r=[],m={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,c,d){return a.getX(c<b.top+2||c>b.bottom-2?d:c,b.half,b)},justify:function(a,b,c){return c[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,
583
- b,c,d){a=a.getBBox().width;return b?a+d:c-a-d},alignToConnectors:function(a,b,c,d){var f=0,h;a.forEach(function(c){h=c.dataLabel.getBBox().width;h>f&&(f=h)});return b?f+d:c-f-d}};e.compose=function(a){b.compose(z);-1===r.indexOf(a)&&(r.push(a),a=a.prototype,a.dataLabelPositioners=m,a.alignDataLabel=A,a.drawDataLabels=k,a.placeDataLabels=B,a.verifyDataLabelOverflow=x)}})(k||(k={}));return k});J(e,"Extensions/OverlappingDataLabels.js",[e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(b,e){function v(b,
584
- e){var d=!1;if(b){var a=b.newOpacity;b.oldOpacity!==a&&(b.alignAttr&&b.placed?(b[a?"removeClass":"addClass"]("highcharts-data-label-hidden"),d=!0,b.alignAttr.opacity=a,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){e.styledMode||b.css({pointerEvents:a?"auto":"none"})}),t(e,"afterHideOverlappingLabel")):b.attr({opacity:a}));b.isOld=!0}return d}var I=e.addEvent,t=e.fireEvent,A=e.isArray,C=e.isNumber,z=e.objectEach,q=e.pick;I(b,"render",function(){var b=this,e=[];(this.labelCollectors||[]).forEach(function(b){e=
585
- e.concat(b())});(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&z(b.stacking.stacks,function(a){z(a,function(a){a.label&&"hidden"!==a.label.visibility&&e.push(a.label)})})});(this.series||[]).forEach(function(d){var a=d.options.dataLabels;d.visible&&(!1!==a.enabled||d._hasPointLabels)&&(a=function(a){return a.forEach(function(a){a.visible&&(A(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(d){var f=d.options;d.labelrank=
586
- q(f.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);f.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,v(d,b)):e.push(d)})})},a(d.nodes||[]),a(d.points))});this.hideOverlappingLabels(e)});b.prototype.hideOverlappingLabels=function(b){var e=this,d=b.length,a=e.renderer,f,k,l,q=!1;var B=function(b){var d,f=b.box?0:b.padding||0,c=d=0,e;if(b&&(!b.alignAttr||b.placed)){var g=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var k=b.parentGroup;b.width||(d=b.getBBox(),b.width=d.width,b.height=d.height,
587
- d=a.fontMetrics(null,b.element).h);var m=b.width-2*f;(e={left:"0",center:"0.5",right:"1"}[b.alignValue])?c=+e*m:C(b.x)&&Math.round(b.x)!==b.translateX&&(c=b.x-b.translateX);return{x:g.x+(k.translateX||0)+f-(c||0),y:g.y+(k.translateY||0)+f-d,width:b.width-2*f,height:b.height-2*f}}};for(k=0;k<d;k++)if(f=b[k])f.oldOpacity=f.opacity,f.newOpacity=1,f.absoluteBox=B(f);b.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(k=0;k<d;k++){var x=(B=b[k])&&B.absoluteBox;for(f=k+1;f<d;++f){var r=(l=
588
- b[f])&&l.absoluteBox;!x||!r||B===l||0===B.newOpacity||0===l.newOpacity||r.x>=x.x+x.width||r.x+r.width<=x.x||r.y>=x.y+x.height||r.y+r.height<=x.y||((B.labelrank<l.labelrank?B:l).newOpacity=0)}}b.forEach(function(a){v(a,e)&&(q=!0)});q&&t(e,"afterHideAllOverlappingLabels")}});J(e,"Core/Responsive.js",[e["Core/Utilities.js"]],function(b){var e=b.extend,v=b.find,E=b.isArray,t=b.isObject,A=b.merge,C=b.objectEach,z=b.pick,q=b.splat,l=b.uniqueKey,n;(function(b){var a=[];b.compose=function(b){-1===a.indexOf(b)&&
589
- (a.push(b),e(b.prototype,d.prototype));return b};var d=function(){function a(){}a.prototype.currentOptions=function(a){function b(a,f,h,e){var c;C(a,function(a,g){if(!e&&-1<d.collectionsWithUpdate.indexOf(g)&&f[g])for(a=q(a),h[g]=[],c=0;c<Math.max(a.length,f[g].length);c++)f[g][c]&&(void 0===a[c]?h[g][c]=f[g][c]:(h[g][c]={},b(a[c],f[g][c],h[g][c],e+1)));else t(a)?(h[g]=E(a)?[]:{},b(a,f[g]||{},h[g],e+1)):h[g]="undefined"===typeof f[g]?null:f[g]})}var d=this,f={};b(a,this.options,f,0);return f};a.prototype.matchResponsiveRule=
590
- function(a,b){var d=a.condition;(d.callback||function(){return this.chartWidth<=z(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=z(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=z(d.minWidth,0)&&this.chartHeight>=z(d.minHeight,0)}).call(this)&&b.push(a._id)};a.prototype.setResponsive=function(a,b){var d=this,f=this.options.responsive,e=this.currentResponsive,k=[];!b&&f&&f.rules&&f.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=l());d.matchResponsiveRule(a,k)},this);b=A.apply(void 0,
591
- k.map(function(a){return v((f||{}).rules||[],function(b){return b._id===a})}).map(function(a){return a&&a.chartOptions}));b.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(e&&e.ruleIds)&&(e&&this.update(e.undoOptions,a,!0),k?(e=this.currentOptions(b),e.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:b,undoOptions:e},this.update(b,a,!0)):this.currentResponsive=void 0)};return a}()})(n||(n={}));"";"";return n});J(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],
592
- e["Core/DefaultOptions.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/FormatUtilities.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Renderer/HTML/HTMLRenderer.js"],e["Core/Axis/Axis.js"],e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],
593
- e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/MSPointer.js"],e["Core/Legend/Legend.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnSeries.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieSeries.js"],e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],function(b,e,v,E,t,A,C,z,q,l,n,d,a,f,k,G,y,B,x,r,m,h,p,c,w,g,F,u,
594
- D,H,L,P,K){b.animate=t.animate;b.animObject=t.animObject;b.getDeferredAnimation=t.getDeferredAnimation;b.setAnimation=t.setAnimation;b.stop=t.stop;b.timers=E.timers;b.AST=A;b.Axis=a;b.Chart=p;b.chart=p.chart;b.Fx=E;b.Legend=h;b.PlotLineOrBand=G;b.Point=x;b.Pointer=m.isRequired()?m:r;b.Series=c;b.SVGElement=q;b.SVGRenderer=l;b.Tick=y;b.Time=K;b.Tooltip=B;b.Color=P;b.color=P.parse;d.compose(l);n.compose(q);b.defaultOptions=v.defaultOptions;b.getOptions=v.getOptions;b.time=v.defaultTime;b.setOptions=
595
- v.setOptions;b.dateFormat=C.dateFormat;b.format=C.format;b.numberFormat=C.numberFormat;b.addEvent=e.addEvent;b.arrayMax=e.arrayMax;b.arrayMin=e.arrayMin;b.attr=e.attr;b.clearTimeout=e.clearTimeout;b.correctFloat=e.correctFloat;b.createElement=e.createElement;b.css=e.css;b.defined=e.defined;b.destroyObjectProperties=e.destroyObjectProperties;b.discardElement=e.discardElement;b.distribute=z.distribute;b.erase=e.erase;b.error=e.error;b.extend=e.extend;b.extendClass=e.extendClass;b.find=e.find;b.fireEvent=
596
- e.fireEvent;b.getMagnitude=e.getMagnitude;b.getStyle=e.getStyle;b.inArray=e.inArray;b.isArray=e.isArray;b.isClass=e.isClass;b.isDOMElement=e.isDOMElement;b.isFunction=e.isFunction;b.isNumber=e.isNumber;b.isObject=e.isObject;b.isString=e.isString;b.keys=e.keys;b.merge=e.merge;b.normalizeTickInterval=e.normalizeTickInterval;b.objectEach=e.objectEach;b.offset=e.offset;b.pad=e.pad;b.pick=e.pick;b.pInt=e.pInt;b.relativeLength=e.relativeLength;b.removeEvent=e.removeEvent;b.seriesType=w.seriesType;b.splat=
597
- e.splat;b.stableSort=e.stableSort;b.syncTimeout=e.syncTimeout;b.timeUnits=e.timeUnits;b.uniqueKey=e.uniqueKey;b.useSerialIds=e.useSerialIds;b.wrap=e.wrap;F.compose(g);H.compose(c);f.compose(a);k.compose(a);D.compose(u);G.compose(a);L.compose(p);return b});J(e,"Core/Axis/Color/ColorAxisComposition.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(b,e){var v=b.parse,E=e.addEvent,t=e.extend,A=e.merge,C=e.pick,z=e.splat,q;(function(b){function e(){var c=this,a=this.options;this.colorAxis=
598
- [];a.colorAxis&&(a.colorAxis=z(a.colorAxis),a.colorAxis.forEach(function(a,b){a.index=b;new p(c,a)}))}function d(c){var a=this,b=function(b){b=c.allItems.indexOf(b);-1!==b&&(a.destroyItem(c.allItems[b]),c.allItems.splice(b,1))},d=[],f,e;(this.chart.colorAxis||[]).forEach(function(c){(f=c.options)&&f.showInLegend&&(f.dataClasses&&f.visible?d=d.concat(c.getDataClassLegendSymbols()):f.visible&&d.push(c),c.series.forEach(function(c){if(!c.options.showInLegend||f.dataClasses)"point"===c.options.legendType?
599
- c.points.forEach(function(c){b(c)}):b(c)}))});for(e=d.length;e--;)c.allItems.unshift(d[e])}function a(c){c.visible&&c.item.legendColor&&c.item.legendSymbol.attr({fill:c.item.legendColor})}function f(){var c=this.chart.colorAxis;c&&c.forEach(function(c,a,b){c.update({},b)})}function k(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function l(){var c=this.axisTypes;c?-1===c.indexOf("colorAxis")&&c.push("colorAxis"):this.axisTypes=["colorAxis"]}function q(c){var a=
600
- this,b=c?"show":"hide";a.visible=a.options.visible=!!c;["graphic","dataLabel"].forEach(function(c){if(a[c])a[c][b]()});this.series.buildKDTree()}function B(){var c=this,a=this.options.nullColor,b=this.colorAxis,d=this.colorKey;(this.data.length?this.data:this.points).forEach(function(f){var g=f.getNestedProperty(d);(g=f.options.color||(f.isNull||null===f.value?a:b&&"undefined"!==typeof g?b.toColor(g,f):f.color||c.color))&&f.color!==g&&(f.color=g,"point"===c.options.legendType&&f.legendItem&&c.chart.legend.colorizeItem(f,
601
- f.visible))})}function x(c){var a=c.prototype.createAxis;c.prototype.createAxis=function(c,b){if("colorAxis"!==c)return a.apply(this,arguments);var d=new p(this,A(b.axis,{index:this[c].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(c){c.series=[]});this.series.forEach(function(c){c.bindAxes();c.isDirtyData=!0});C(b.redraw,!0)&&this.redraw(b.animation);return d}}function r(){this.elem.attr("fill",v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)}function m(){this.elem.attr("stroke",
602
- v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)}var h=[],p;b.compose=function(c,b,g,n,u){p||(p=c);-1===h.indexOf(b)&&(h.push(b),c=b.prototype,c.collectionsWithUpdate.push("colorAxis"),c.collectionsWithInit.colorAxis=[c.addColorAxis],E(b,"afterGetAxes",e),x(b));-1===h.indexOf(g)&&(h.push(g),b=g.prototype,b.fillSetter=r,b.strokeSetter=m);-1===h.indexOf(n)&&(h.push(n),E(n,"afterGetAllItems",d),E(n,"afterColorizeItem",a),E(n,"afterUpdate",f));-1===h.indexOf(u)&&(h.push(u),t(u.prototype,{optionalAxis:"colorAxis",
603
- translateColors:B}),t(u.prototype.pointClass.prototype,{setVisible:q}),E(u,"afterTranslate",k),E(u,"bindAxes",l))};b.pointSetVisible=q})(q||(q={}));return q});J(e,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,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}});
604
- J(e,"Core/Axis/Color/ColorAxis.js",[e["Core/Axis/Axis.js"],e["Core/Color/Color.js"],e["Core/Axis/Color/ColorAxisComposition.js"],e["Core/Axis/Color/ColorAxisDefaults.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C,z){var q=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
605
- (a[d]=b[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),l=e.parse,n=t.noop,d=C.series,a=z.extend,f=z.isNumber,k=z.merge,G=z.pick;e=function(b){function e(a,d){var f=b.call(this,a,d)||this;f.beforePadding=!1;f.chart=void 0;f.coll="colorAxis";f.dataClasses=void 0;f.legendItem=void 0;f.legendItems=void 0;f.name="";f.options=void 0;f.stops=void 0;f.visible=!0;f.init(a,d);return f}q(e,b);e.compose=
606
- function(a,b,d,f){v.compose(e,a,b,d,f)};e.prototype.init=function(a,d){var f=a.options.legend||{},h=d.layout?"vertical"!==d.layout:"vertical"!==f.layout,l=d.visible;f=k(e.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:f.enabled&&!1!==l});this.coll="colorAxis";this.side=d.side||h?2:1;this.reversed=d.reversed||!h;this.opposite=!h;b.prototype.init.call(this,a,f);this.userOptions.visible=l;d.dataClasses&&this.initDataClasses(d);this.initStops();this.horiz=h;this.zoomEnabled=!1};e.prototype.initDataClasses=
607
- function(a){var b=this.chart,d=this.options,f=a.dataClasses.length,e,c=0,n=b.options.chart.colorCount;this.dataClasses=e=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,h){a=k(a);e.push(a);if(b.styledMode||!a.color)"category"===d.dataClassColor?(b.styledMode||(h=b.options.colors,n=h.length,a.color=h[c]),a.colorIndex=c,c++,c===n&&(c=0)):a.color=l(d.minColor).tweenTo(l(d.maxColor),2>f?.5:h/(f-1))})};e.prototype.hasData=function(){return!!(this.tickPositions||[]).length};e.prototype.setTickPositions=
608
- function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};e.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=l(a[1])})};e.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};e.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},f,k;a?(this.left=d=a.attr("x"),this.top=f=a.attr("y"),
609
- this.width=k=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-k,this.bottom=b.chartHeight-f-a,this.len=this.horiz?k:a,this.pos=this.horiz?d:f):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||e.defaultLegendLength};e.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};e.prototype.toColor=function(a,b){var d=this.dataClasses,f=this.stops,e;if(d)for(e=d.length;e--;){var c=d[e];var k=c.from;f=
610
- c.to;if(("undefined"===typeof k||a>=k)&&("undefined"===typeof f||a<=f)){var g=c.color;b&&(b.dataClass=e,b.colorIndex=c.colorIndex);break}}else{a=this.normalizedValue(a);for(e=f.length;e--&&!(a>f[e][0]););k=f[e]||f[e+1];f=f[e+1]||k;a=1-(f[0]-a)/(f[0]-k[0]||1);g=k.color.tweenTo(f.color,a)}return g};e.prototype.getOffset=function(){var a=this.legendGroup,d=this.chart.axisOffset[this.side];if(a){this.axisParent=a;b.prototype.getOffset.call(this);var f=this.chart.legend;f.allItems.forEach(function(a){a instanceof
611
- e&&a.drawLegendSymbol(f,a)});f.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=d}};e.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};e.prototype.drawLegendSymbol=function(a,b){var d=a.padding,f=a.options,k=this.horiz,c=G(f.symbolWidth,k?e.defaultLegendLength:12),l=G(f.symbolHeight,
612
- k?12:e.defaultLegendLength),g=G(f.labelPadding,k?16:30);f=G(f.itemDistance,10);this.setLegendColor();b.legendSymbol||(b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,l).attr({zIndex:1}).add(b.legendGroup));this.legendItemWidth=c+d+(k?f:this.options.labels.x+this.maxLabelLength);this.legendItemHeight=l+d+(k?g:0)};e.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};e.prototype.setVisible=function(){};e.prototype.getSeriesExtremes=function(){var a=this.series,
613
- b=a.length,f;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var e=a[b];var k=e.colorKey=G(e.options.colorKey,e.colorKey,e.pointValKey,e.zoneAxis,"y");var c=e.pointArrayMap;var l=e[k+"Min"]&&e[k+"Max"];if(e[k+"Data"])var g=e[k+"Data"];else if(c){g=[];c=c.indexOf(k);var n=e.yData;if(0<=c&&n)for(f=0;f<n.length;f++)g.push(G(n[f][c],n[f]))}else g=e.yData;l?(e.minColorValue=e[k+"Min"],e.maxColorValue=e[k+"Max"]):(g=d.prototype.getExtremes.call(e,g),e.minColorValue=g.dataMin,e.maxColorValue=g.dataMax);
614
- "undefined"!==typeof e.minColorValue&&(this.dataMin=Math.min(this.dataMin,e.minColorValue),this.dataMax=Math.max(this.dataMax,e.maxColorValue));l||d.prototype.applyExtremes.call(e)}};e.prototype.drawCrosshair=function(a,d){var f=d&&d.plotX,e=d&&d.plotY,k=this.pos,c=this.len;if(d){var l=this.toPixels(d.getNestedProperty(d.series.colorKey));l<k?l=k-2:l>k+c&&(l=k+c+2);d.plotX=l;d.plotY=this.len-l;b.prototype.drawCrosshair.call(this,a,d);d.plotX=f;d.plotY=e;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&
615
- (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}))}};e.prototype.getPlotLinePath=function(a){var d=this.left,e=a.translatedValue,h=this.top;return f(e)?this.horiz?[["M",e-4,h-6],["L",e+4,h-6],["L",e,h],["Z"]]:[["M",d,e],["L",d-6,e+6],["L",d-6,e-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};e.prototype.update=function(a,d){var f=this.chart.legend;
616
- this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&f.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,d);this.legendItem&&(this.setLegendColor(),f.colorizeItem(this,!0))};e.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};e.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this,
617
- [].slice.call(arguments))};e.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};e.prototype.getDataClassLegendSymbols=function(){var b=this,d=b.chart,f=b.legendItems,e=d.options.legend,k=e.valueDecimals,c=e.valueSuffix||"",l;f.length||b.dataClasses.forEach(function(e,h){var g=e.from,m=e.to,p=d.numberFormatter,r=!0;l="";"undefined"===typeof g?l="< ":"undefined"===typeof m&&(l="> ");"undefined"!==typeof g&&(l+=p(g,k)+c);"undefined"!==typeof g&&"undefined"!==typeof m&&
618
- (l+=" - ");"undefined"!==typeof m&&(l+=p(m,k)+c);f.push(a({chart:d,name:l,options:{},drawLegendSymbol:A.drawRectangle,visible:!0,setState:n,isDataClass:!0,setVisible:function(){r=b.visible=!r;b.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===h&&a.setVisible(r)})});d.legend.colorizeItem(this,r)}},e))});return f};e.defaultColorAxisOptions=E;e.defaultLegendLength=200;e.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return e}(b);Array.prototype.push.apply(b.keepProps,
619
- e.keepProps);"";return e});J(e,"Maps/MapNavigationOptionsDefault.js",[e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e){e=e.extend;var v={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,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};e(b.defaultOptions.lang,
620
- {zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=v});J(e,"Maps/MapNavigation.js",[e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,v){function E(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function t(a){this.navButtons=[];this.init(a)}var A=e.doc,C=v.addEvent,z=v.extend,q=v.isNumber,l=v.merge,n=v.objectEach,d=v.pick;t.prototype.init=function(a){this.chart=a};t.prototype.update=function(a){var b=
621
- this,e=this.chart,q=e.options.mapNavigation,t,B,x,r,m=function(a){this.handler.call(e,a);E(a)},h=b.navButtons;a&&(q=e.options.mapNavigation=l(e.options.mapNavigation,a));for(;h.length;)h.pop().destroy();d(q.enableButtons,q.enabled)&&!e.renderer.forExport&&(b.navButtonsGroup||(b.navButtonsGroup=e.renderer.g().attr({zIndex:4}).add()),n(q.buttons,function(a,c){a=l(q.buttonOptions,a);!e.styledMode&&a.theme&&(t=a.theme,t.style=l(a.theme.style,a.style),x=(B=t.states)&&B.hover,r=B&&B.select,delete t.states);
622
- var d=e.renderer.button(a.text||"",0,0,m,t,x,r,void 0,"zoomIn"===c?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[c]).attr({width:a.width,height:a.height,title:e.options.lang[c],padding:a.padding,zIndex:5}).add(b.navButtonsGroup);d.handler=a.onclick;C(d.element,"dblclick",E);h.push(d);z(a,{width:d.width,height:2*d.height});if(e.hasLoaded)d.align(a,!1,a.alignTo);else var f=C(e,"load",function(){d.element&&d.align(a,!1,a.alignTo);f()})}),
623
- a=function(){var a=e.exportingGroup&&e.exportingGroup.getBBox();if(a){var c=b.navButtonsGroup.getBBox();if(!(c.x>=a.x+a.width||c.x+c.width<=a.x||c.y>=a.y+a.height||c.y+c.height<=a.y)){var d=-c.y-c.height+a.y-5;a=a.y+a.height-c.y+5;b.navButtonsGroup.attr({translateY:"bottom"===(q.buttonOptions&&q.buttonOptions.verticalAlign)?d:a})}}},e.hasLoaded||C(e,"render",a));this.updateEvents(q)};t.prototype.updateEvents=function(a){var b=this.chart;d(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?
624
- this.unbindDblClick=this.unbindDblClick||C(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());d(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||C(b.container,void 0!==A.onwheel?"wheel":void 0!==A.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),E(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=
625
- this.unbindMouseWheel())};z(b.prototype,{fitToBox:function(a,b){[["x","width"],["y","height"]].forEach(function(d){var f=d[0];d=d[1];a[f]+a[d]>b[f]+b[d]&&(a[d]>b[d]?(a[d]=b[d],a[f]=b[f]):a[f]=b[f]+b[d]-a[d]);a[d]>b[d]&&(a[d]=b[d]);a[f]<b[f]&&(a[f]=b[f])});return a},mapZoom:function(a,b,d,e,l){this.mapView&&(q(a)&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,q(b)&&q(d)?this.mapView.projection.inverse([b,d]):void 0,q(e)&&q(l)?[e,l]:void 0))}});C(b,"beforeRender",function(){this.mapNavigation=
626
- new t(this);this.mapNavigation.update()});e.MapNavigation=t});J(e,"Maps/MapPointer.js",[e["Core/Pointer.js"],e["Core/Utilities.js"]],function(b,e){var v=e.defined,E=e.extend,t=e.pick;e=e.wrap;var A=b.prototype.normalize,C=0,z;E(b.prototype,{normalize:function(b,e){var l=this.chart;b=A.call(this,b,e);l&&l.mapView&&(e=l.mapView.pixelsToLonLat({x:b.chartX-l.plotLeft,y:b.chartY-l.plotTop}))&&E(b,e);return b},onContainerDblClick:function(b){var e=this.chart;b=this.normalize(b);e.options.mapNavigation.enableDoubleClickZoomTo?
627
- e.pointer.inClass(b.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,b.chartX,b.chartY)},onContainerMouseWheel:function(b){var e=this.chart;b=this.normalize(b);var n=v(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(n)&&(C+=Math.abs(n),z&&clearTimeout(z),z=setTimeout(function(){C=0},50));10>C&&e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)&&e.mapView&&e.mapView.zoomBy((e.options.mapNavigation.mouseWheelSensitivity-
628
- 1)*-n,void 0,[b.chartX,b.chartY],1>Math.abs(n)?!1:void 0)}});e(b.prototype,"zoomOption",function(b){var e=this.chart.options.mapNavigation;t(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.pinchType="xy");b.apply(this,[].slice.call(arguments,1))});e(b.prototype,"pinchTranslate",function(b,e,n,d,a,f,k){b.call(this,e,n,d,a,f,k);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=d.scaleX>d.scaleY,this.pinchTranslateDirection(!b,e,n,d,a,f,k,b?d.scaleX:d.scaleY))})});J(e,"Series/ColorMapMixin.js",
629
- [e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(b,e,v){var E=b.noop;b=b.seriesTypes;var t=v.defined;v=v.addEvent;v(e,"afterSetState",function(b){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:b&&"hover"===b.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",
630
- "markerGroup","dataLabelsGroup"],getSymbol:E,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:b.column.prototype.pointAttribs,colorAttribs:function(b){var e={};!t(b.color)||b.state&&"normal"!==b.state||(e[this.colorProp||"fill"]=b.color);return e}}}});J(e,"Maps/MapSymbols.js",[e["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function e(b,e,t,A,C,z,q,l){return[["M",b+C,e],["L",b+t-z,e],["C",b+t-z/2,e,b+t,e+z/2,b+t,e+z],["L",b+t,e+A-q],["C",b+t,e+A-q/2,b+t-q/2,e+A,b+t-q,e+A],["L",b+
631
- l,e+A],["C",b+l/2,e+A,b,e+A-l/2,b,e+A-l],["L",b,e+C],["C",b,e+C/2,b+C/2,e,b+C,e],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,E,t,A,C){C=C&&C.r||0;return e(b-1,E-1,t,A,0,0,C,C)};b.topbutton=function(b,E,t,A,C){C=C&&C.r||0;return e(b-1,E-1,t,A,C,C,0,0)};return b});J(e,"Core/Chart/MapChart.js",[e["Core/Chart/Chart.js"],e["Core/DefaultOptions.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=this&&this.__extends||function(){var b=function(e,n){b=Object.setPrototypeOf||
632
- {__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(e,n)};return function(e,n){function d(){this.constructor=e}b(e,n);e.prototype=null===n?Object.create(n):(d.prototype=n.prototype,new d)}}(),A=e.getOptions,C=E.merge,z=E.pick;b=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}t(e,b);e.prototype.init=function(e,d){var a=A().credits;e=C({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:z(a.mapText,
633
- ' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:z(a.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},e);b.prototype.init.call(this,e,d)};return e}(b);(function(b){b.maps={};b.mapChart=function(e,n,d){return new b(e,n,d)};b.splitPath=function(b){"string"===typeof b&&(b=b.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),b=b.split(/[ ,;]+/).map(function(b){return/[A-za-z]/.test(b)?b:parseFloat(b)}));return v.prototype.pathToSegments(b)}})(b||
634
- (b={}));return b});J(e,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(b){var e=-Number.MAX_VALUE,v=Number.MAX_VALUE,E=-Number.MAX_VALUE,t=Number.MAX_VALUE,A;b.forEach(function(b){var z=b[b.length-2];b=b[b.length-1];"number"===typeof z&&"number"===typeof b&&(v=Math.min(v,z),e=Math.max(e,z),t=Math.min(t,b),E=Math.max(E,b),A=!0)});if(A)return{x1:v,y1:t,x2:e,y2:E}},pointInPolygon:function(b,e){var v,E=!1,t=b.x,A=b.y;b=0;for(v=e.length-1;b<e.length;v=b++){var C=e[b][1]>A;var z=e[v][1]>
635
- A;C!==z&&t<(e[v][0]-e[b][0])*(A-e[b][1])/(e[v][1]-e[b][1])+e[b][0]&&(E=!E)}return E}}});J(e,"Series/Map/MapPoint.js",[e["Series/ColorMapMixin.js"],e["Maps/MapUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=this&&this.__extends||function(){var b=function(e,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,d)};return function(e,d){function a(){this.constructor=
636
- e}b(e,d);e.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),A=e.boundsFromPath,C=E.extend,z=E.isNumber,q=E.pick;e=function(b){function e(){var d=null!==b&&b.apply(this,arguments)||this;d.options=void 0;d.path=void 0;d.series=void 0;return d}t(e,b);e.getProjectedPath=function(b,a){b.projectedPath||(a&&b.geometry?(a.hasCoordinates=!0,b.projectedPath=a.path(b.geometry)):b.projectedPath=b.path);return b.projectedPath||[]};e.prototype.applyOptions=function(d,a){var f=this.series;
637
- d=b.prototype.applyOptions.call(this,d,a);a=f.joinBy;f.mapData&&f.mapMap&&(a=b.prototype.getNestedProperty.call(d,a[1]),(f="undefined"!==typeof a&&f.mapMap[a])?C(d,f):d.value=d.value||null);return d};e.prototype.getProjectedBounds=function(b){b=e.getProjectedPath(this,b);b=A(b);var a=this.properties;if(b){var d=a&&a["hc-middle-x"];a=a&&a["hc-middle-y"];b.midX=b.x1+(b.x2-b.x1)*q(this.middleX,z(d)?d:.5);d=q(this.middleY,z(a)?a:.5);this.geometry||(d=1-d);b.midY=b.y2-(b.y2-b.y1)*d;return b}};e.prototype.onMouseOver=
638
- function(d){E.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,d);else this.series.onMouseOut(d)};e.prototype.zoomTo=function(){var b=this.series.chart;b.mapView&&this.bounds&&(b.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,b.redraw())};return e}(v.seriesTypes.scatter.prototype.pointClass);C(e.prototype,{dataLabelOnNull:b.PointMixin.dataLabelOnNull,isValid:b.PointMixin.isValid,moveToTopOnHover:b.PointMixin.moveToTopOnHover});
639
- return e});J(e,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}});J(e,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}});J(e,"Extensions/GeoJSON.js",[e["Core/Chart/Chart.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Maps/MapUtilities.js"],e["Core/Utilities.js"]],
640
- function(b,e,v,E,t){function A(a,b){b||(b=Object.keys(a.objects)[0]);b=a.objects[b];if(b["hc-decoded-geojson"])return b["hc-decoded-geojson"];var d=a.arcs;if(a.transform){var f=a.transform,e=f.scale,l=f.translate;d=a.arcs.map(function(a){var b=0,d=0;return a.map(function(a){a=a.slice();a[0]=(b+=a[0])*e[0]+l[0];a[1]=(d+=a[1])*e[1]+l[1];return a})})}var n=function(a){return"number"===typeof a[0]?a.reduce(function(a,b,f){var c=0>b?d[~b]:d[b];0>b?(c=c.slice(0,0===f?c.length:c.length-1),c.reverse()):f&&
641
- (c=c.slice(1));return a.concat(c)},[]):a.map(n)};f=b.geometries.map(function(a){return{type:"Feature",properties:a.properties,geometry:{type:a.type,coordinates:a.coordinates||n(a.arcs)}}});a={type:"FeatureCollection",copyright:a.copyright,copyrightShort:a.copyrightShort,copyrightUrl:a.copyrightUrl,features:f,"hc-recommended-mapview":b["hc-recommended-mapview"],bbox:a.bbox};return b["hc-decoded-geojson"]=a}function C(a,b,d){void 0===b&&(b="map");var f=[];a="Topology"===a.type?A(a):a;a.features.forEach(function(a){var d=
642
- a.geometry||{},e=d.type;d=d.coordinates;a=a.properties;var k;"map"!==b&&"mapbubble"!==b||"Polygon"!==e&&"MultiPolygon"!==e?"mapline"!==b||"LineString"!==e&&"MultiLineString"!==e?"mappoint"===b&&"Point"===e&&d.length&&(k={geometry:{coordinates:d,type:e}}):d.length&&(k={geometry:{coordinates:d,type:e}}):d.length&&(k={geometry:{coordinates:d,type:e}});k&&(e=a&&(a.name||a.NAME),f.push(n(k,{name:"string"===typeof e?e:void 0,properties:a})))});d&&a.copyrightShort&&(d.chart.mapCredits=z(d.chart.options.credits.mapText,
643
- {geojson:a}),d.chart.mapCreditsFull=z(d.chart.options.credits.mapTextFull,{geojson:a}));return f}var z=e.format,q=v.win,l=t.error,n=t.extend,d=t.merge;e=t.wrap;"";b.prototype.transformFromLatLon=function(a,b){var d=this.options.chart.proj4||q.proj4;if(d){var f=b.jsonmarginX;f=void 0===f?0:f;var e=b.jsonmarginY;e=void 0===e?0:e;var n=b.jsonres;n=void 0===n?1:n;var t=b.scale;t=void 0===t?1:t;var r=b.xoffset;r=void 0===r?0:r;var m=b.xpan;m=void 0===m?0:m;var h=b.yoffset;h=void 0===h?0:h;var p=b.ypan;
644
- p=void 0===p?0:p;a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var c=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=b.rotation?[a[0]*d+a[1]*c,-a[0]*c+a[1]*d]:a;return{x:((b[0]-r)*t+m)*n+f,y:-(((h-b[1])*t+p)*n-e)}}l(21,!1,this)};b.prototype.transformToLatLon=function(a,b){if(!this.options.chart.proj4&&!q.proj4)l(21,!1,this);else if(null!==a.y){var d=b.jsonmarginX,f=b.jsonmarginY,e=b.jsonres;e=void 0===e?1:e;var n=b.scale;n=void 0===n?1:n;var t=b.xoffset,r=b.xpan,m=b.yoffset,
645
- h=b.ypan;a={x:((a.x-(void 0===d?0:d))/e-(void 0===r?0:r))/n+(void 0===t?0:t),y:((a.y-(void 0===f?0:f))/e+(void 0===h?0:h))/n+(void 0===m?0:m)};d=b.cosAngle||b.rotation&&Math.cos(b.rotation);f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=q.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-f,y:a.x*f+a.y*d}:a);return{lat:b.y,lon:b.x}}};b.prototype.fromPointToLatLon=function(a){return this.mapView&&this.mapView.projectedUnitsToLonLat(a)};b.prototype.fromLatLonToPoint=function(a){return this.mapView&&this.mapView.lonLatToProjectedUnits(a)};
646
- e(b.prototype,"addCredits",function(a,b){b=d(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});v.geojson=C;return{geojson:C,topo2geo:A}});J(e,"Core/Geometry/PolygonClip.js",[],function(){var b=function(b,e,v){return(e[0]-b[0])*(v[1]-b[1])>(e[1]-b[1])*(v[0]-b[0])},e=function(b,e,v,C){var t=[b[0]-e[0],b[1]-e[1]],q=[v[0]-C[0],v[1]-C[1]];b=b[0]*e[1]-b[1]*e[0];v=v[0]*C[1]-v[1]*C[0];C=1/(t[0]*q[1]-
647
- t[1]*q[0]);t=[(b*q[0]-v*t[0])*C,(b*q[1]-v*t[1])*C];t.isIntersection=!0;return t},v;(function(v){v.clipLineString=function(b,e){var t=[];b=v.clipPolygon(b,e,!1);for(e=1;e<b.length;e++)b[e].isIntersection&&b[e-1].isIntersection&&(t.push(b.splice(0,e)),e=0),e===b.length-1&&t.push(b);return t};v.clipPolygon=function(t,v,C){void 0===C&&(C=!0);for(var z=v[v.length-1],q,l,n=t,d=0;d<v.length;d++){var a=n;t=v[d];n=[];q=C?a[a.length-1]:a[0];for(var f=0;f<a.length;f++)l=a[f],b(z,t,l)?(b(z,t,q)||n.push(e(z,t,
648
- q,l)),n.push(l)):b(z,t,q)&&n.push(e(z,t,q,l)),q=l;z=t}return n}})(v||(v={}));return v});J(e,"Maps/Projections/LambertConformalConic.js",[],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},e=Math.PI/180,v=Math.PI/2;return function(){function E(t){var A,C=(t.parallels||[]).map(function(b){return b*e}),z=C[0]||0;C=null!==(A=C[1])&&void 0!==A?A:z;A=Math.cos(z);"object"===typeof t.projectedBounds&&(this.projectedBounds=t.projectedBounds);t=z===C?Math.sin(z):Math.log(A/Math.cos(C))/Math.log(Math.tan((v+
649
- C)/2)/Math.tan((v+z)/2));1e-10>Math.abs(t)&&(t=1e-10*(b(t)||1));this.n=t;this.c=A*Math.pow(Math.tan((v+z)/2),t)/t}E.prototype.forward=function(b){var t=b[0]*e,C=this.c,z=this.n,q=this.projectedBounds;b=b[1]*e;0<C?b<-v+.000001&&(b=-v+.000001):b>v-.000001&&(b=v-.000001);var l=C/Math.pow(Math.tan((v+b)/2),z);b=l*Math.sin(z*t)*63.78137;t=63.78137*(C-l*Math.cos(z*t));C=[b,t];q&&(b<q.x1||b>q.x2||t<q.y1||t>q.y2)&&(C.outside=!0);return C};E.prototype.inverse=function(t){var A=t[0]/63.78137,C=this.c,z=this.n;
650
- t=C-t[1]/63.78137;var q=b(z)*Math.sqrt(A*A+t*t),l=Math.atan2(A,Math.abs(t))*b(t);0>t*z&&(l-=Math.PI*b(A)*b(t));return[l/z/e,(2*Math.atan(Math.pow(C/q,1/z))-v)/e]};return E}()});J(e,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}e.prototype.forward=function(e){var v=Math.PI/180,t=Math.asin(b*Math.sin(e[1]*v)),A=t*t,C=A*A*A;return[e[0]*v*Math.cos(t)*
651
- 74.03120656864502/(b*(1.340264+3*-.081106*A+C*(7*.000893+.034164*A))),74.03120656864502*t*(1.340264+-.081106*A+C*(.000893+.003796*A))]};e.prototype.inverse=function(e){var v=e[0]/74.03120656864502;e=e[1]/74.03120656864502;var t=180/Math.PI,A=e,C;for(C=0;12>C;++C){var z=A*A;var q=z*z*z;var l=A*(1.340264+-.081106*z+q*(.000893+.003796*z))-e;z=1.340264+3*-.081106*z+q*(7*.000893+.034164*z);A-=l/=z;if(1e-9>Math.abs(l))break}z=A*A;return[t*b*v*(1.340264+3*-.081106*z+z*z*z*(7*.000893+.034164*z))/Math.cos(A),
652
- t*Math.asin(Math.sin(A)/b)]};return e}()});J(e,"Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,e=Math.PI/180;return function(){function v(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}v.prototype.forward=function(v){return[v[0]*e*63.78137,79.7267125*Math.log(Math.tan(b+.4*v[1]*e))]};v.prototype.inverse=function(v){return[v[0]/63.78137/e,2.5*(Math.atan(Math.exp(v[1]/63.78137*.8))-b)/e]};return v}()});J(e,"Maps/Projections/Orthographic.js",
653
- [],function(){var b=Math.PI/180;return function(){function e(){this.antimeridianCutting=!1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}e.prototype.forward=function(e){var v=e[0];e=e[1]*b;e=[Math.cos(e)*Math.sin(v*b)*63.78460826781007,63.78460826781007*Math.sin(e)];if(-90>v||90<v)e.outside=!0;return e};e.prototype.inverse=function(e){var v=e[0]/63.78460826781007;e=e[1]/63.78460826781007;var t=Math.sqrt(v*v+e*e),A=Math.asin(t),C=Math.sin(A);return[Math.atan2(v*
654
- C,t*Math.cos(A))/b,Math.asin(t&&e*C/t)/b]};return e}()});J(e,"Maps/Projections/WebMercator.js",[],function(){var b=Math.PI/180;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071};this.maxLatitude=85.0511287798}e.prototype.forward=function(e){var v=Math.sin(e[1]*b);v=[63.78137*e[0]*b,63.78137*Math.log((1+v)/(1-v))/2];85.0511287798<Math.abs(e[1])&&(v.outside=!0);return v};e.prototype.inverse=function(e){return[e[0]/(63.78137*
655
- b),(2*Math.atan(Math.exp(e[1]/63.78137))-Math.PI/2)/b]};return e}()});J(e,"Maps/Projections/ProjectionRegistry.js",[e["Maps/Projections/LambertConformalConic.js"],e["Maps/Projections/EqualEarth.js"],e["Maps/Projections/Miller.js"],e["Maps/Projections/Orthographic.js"],e["Maps/Projections/WebMercator.js"]],function(b,e,v,E,t){return{EqualEarth:e,LambertConformalConic:b,Miller:v,Orthographic:E,WebMercator:t}});J(e,"Maps/Projection.js",[e["Core/Geometry/PolygonClip.js"],e["Maps/Projections/ProjectionRegistry.js"],
656
- e["Core/Utilities.js"]],function(b,e,v){var E=this&&this.__spreadArrays||function(){for(var b=0,d=0,a=arguments.length;d<a;d++)b+=arguments[d].length;b=Array(b);var e=0;for(d=0;d<a;d++)for(var k=arguments[d],l=0,q=k.length;l<q;l++,e++)b[e]=k[l];return b},t=b.clipLineString,A=b.clipPolygon,C=v.clamp,z=v.erase,q=2*Math.PI/360,l=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function b(d){void 0===d&&(d={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=
657
- d;var a=d.name,e=d.projectedBounds,k=d.rotation;this.rotator=k?this.getRotator(k):void 0;if(a=a?b.registry[a]:void 0)this.def=new a(d);var l=this.def,n=this.rotator;l&&(this.maxLatitude=l.maxLatitude||90,this.hasGeoProjection=!0);n&&l?(this.forward=function(a){return l.forward(n.forward(a))},this.inverse=function(a){return n.inverse(l.inverse(a))}):l?(this.forward=function(a){return l.forward(a)},this.inverse=function(a){return l.inverse(a)}):n&&(this.forward=n.forward,this.inverse=n.inverse);this.bounds=
658
- "world"===e?l&&l.bounds:e}b.add=function(d,a){b.registry[d]=a};b.greatCircle=function(b,a,e){var d=Math.atan2,f=Math.cos,l=Math.sin,n=Math.sqrt,t=b[1]*q,r=b[0]*q,m=a[1]*q,h=a[0]*q,p=m-t,c=h-r;p=l(p/2)*l(p/2)+f(t)*f(m)*l(c/2)*l(c/2);p=2*d(n(p),n(1-p));var w=Math.round(6371E3*p/5E5);c=[];e&&c.push(b);if(1<w)for(w=b=1/w;.999>w;w+=b){var g=l((1-w)*p)/l(p),v=l(w*p)/l(p),u=g*f(t)*f(r)+v*f(m)*f(h),D=g*f(t)*l(r)+v*f(m)*l(h);g=g*l(t)+v*l(m);g=d(g,n(u*u+D*D));u=d(D,u);c.push([u/q,g/q])}e&&c.push(a);return c};
659
- b.insertGreatCircles=function(d){for(var a=d.length-1;a--;)if(10<Math.max(Math.abs(d[a][0]-d[a+1][0]),Math.abs(d[a][1]-d[a+1][1]))){var e=b.greatCircle(d[a],d[a+1]);e.length&&d.splice.apply(d,E([a+1,0],e))}};b.toString=function(b){b=b||{};var a=b.rotation;return[b.name,a&&a.join(",")].join(";")};b.prototype.lineIntersectsBounds=function(b){var a=this.bounds||{},d=a.x2,e=a.y1,l=a.y2,n=function(a,b,d){var e=a[0];a=a[1];var f=b?0:1;if("number"===typeof d&&e[b]>=d!==a[b]>=d)return e=e[f]+(d-e[b])/(a[b]-
660
- e[b])*(a[f]-e[f]),b?[e,d]:[d,e]},q=b[0];if(a=n(b,0,a.x1))q=a,b[1]=a;else if(a=n(b,0,d))q=a,b[1]=a;if(a=n(b,1,e))q=a;else if(a=n(b,1,l))q=a;return q};b.prototype.getRotator=function(b){var a=b[0]*q,d=(b[1]||0)*q;b=(b[2]||0)*q;var e=Math.cos(d),l=Math.sin(d),n=Math.cos(b),t=Math.sin(b);if(0!==a||0!==d||0!==b)return{forward:function(b){var d=b[0]*q+a,f=b[1]*q,h=Math.cos(f);b=Math.cos(d)*h;d=Math.sin(d)*h;f=Math.sin(f);h=f*e+b*l;return[Math.atan2(d*n-h*t,b*e-f*l)/q,Math.asin(h*n+d*t)/q]},inverse:function(b){var d=
661
- b[0]*q,f=b[1]*q,h=Math.cos(f);b=Math.cos(d)*h;d=Math.sin(d)*h;f=Math.sin(f);h=f*n-d*t;return[(Math.atan2(d*n+f*t,b*e+h*l)-a)/q,Math.asin(h*e-b*l)/q]}}};b.prototype.forward=function(b){return b};b.prototype.inverse=function(b){return b};b.prototype.cutOnAntimeridian=function(d,a){var e=[],k=[d];d.forEach(function(c,b){var f=d[b-1];if(!b){if(!a)return;f=d[d.length-1]}var h=f[0],k=c[0];(-90>h||90<h)&&(-90>k||90<k)&&0<h!==0<k&&(k=C((180-(h+360)%360)/((k+360)%360-(h+360)%360),0,1),e.push({i:b,lat:f[1]+
662
- k*(c[1]-f[1]),direction:0>h?1:-1,previousLonLat:f,lonLat:c}))});if(e.length)if(a){if(1===e.length%2){var n=e.slice().sort(function(a,b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];z(e,n)}for(var q=e.length-2;0<=q;){var t=e[q].i,x=l(180+.000001*e[q].direction),r=l(180-.000001*e[q].direction);t=d.splice.apply(d,E([t,e[q+1].i-t],b.greatCircle([x,e[q].lat],[x,e[q+1].lat],!0)));t.push.apply(t,b.greatCircle([r,e[q+1].lat],[r,e[q].lat],!0));k.push(t);q-=2}if(n)for(x=0;x<k.length;x++){q=n.direction;var m=
663
- n.lat;r=k[x];t=r.indexOf(n.lonLat);if(-1<t){x=(0>m?-1:1)*this.maxLatitude;var h=l(180+.000001*q),p=l(180-.000001*q);m=b.greatCircle([h,m],[h,x],!0);for(h+=120*q;-180<h&&180>h;h+=120*q)m.push([h,x]);m.push.apply(m,b.greatCircle([p,x],[p,n.lat],!0));r.splice.apply(r,E([t,0],m));break}}}else for(q=e.length;q--;)t=e[q].i,t=d.splice(t,d.length,[l(180+.000001*e[q].direction),e[q].lat]),t.unshift([l(180-.000001*e[q].direction),e[q].lat]),k.push(t);return k};b.prototype.path=function(d){var a=this,e=this.bounds,
664
- k=this.def,l=this.rotator,n=[],q="Polygon"===d.type||"MultiPolygon"===d.type,x=this.hasGeoProjection,r=!k||!1!==k.antimeridianCutting,m=r?l:void 0,h=r?k||this:this,p;e&&(p=[[e.x1,e.y1],[e.x2,e.y1],[e.x2,e.y2],[e.x1,e.y2]]);var c=function(c){c=c.map(function(a){if(r){m&&(a=m.forward(a));var c=a[0];.000001>Math.abs(c-180)&&(c=180>c?179.999999:180.000001);a=[c,a[1]]}return a});var d=[c];x&&(b.insertGreatCircles(c),r&&(d=a.cutOnAntimeridian(c,q)));d.forEach(function(a){if(!(2>a.length)){var c=!1,d=!1,
665
- f=function(a){c?n.push(["L",a[0],a[1]]):(n.push(["M",a[0],a[1]]),c=!0)},g=!1,k=!1,l=a.map(function(a){a=h.forward(a);a.outside?g=!0:k=!0;Infinity===a[1]?a[1]=1E10:-Infinity===a[1]&&(a[1]=-1E10);return a});if(r){q&&l.push(l[0]);if(g){if(!k)return;if(p)if(q)l=A(l,p);else if(e){t(l,p).forEach(function(a){c=!1;a.forEach(f)});return}}l.forEach(f)}else for(var m=0;m<l.length;m++){var w=a[m],y=l[m];if(y.outside)d=!0;else{if(q&&!v){var v=w;a.push(w);l.push(y)}d&&B&&(q&&x?b.greatCircle(B,w).forEach(function(a){return f(h.forward(a))}):
666
- c=!1);f(y);var B=w;d=!1}}}})};"LineString"===d.type?c(d.coordinates):"MultiLineString"===d.type?d.coordinates.forEach(function(a){return c(a)}):"Polygon"===d.type?(d.coordinates.forEach(function(a){return c(a)}),n.length&&n.push(["Z"])):"MultiPolygon"===d.type&&(d.coordinates.forEach(function(a){a.forEach(function(a){return c(a)})}),n.length&&n.push(["Z"]));return n};b.registry=e;return b}()});J(e,"Maps/MapView.js",[e["Maps/MapViewOptionsDefault.js"],e["Maps/MapViewInsetsOptionsDefault.js"],e["Extensions/GeoJSON.js"],
667
- e["Core/Chart/MapChart.js"],e["Maps/MapUtilities.js"],e["Maps/Projection.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C){var z=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),q=this&&this.__spreadArrays||
668
- function(){for(var a=0,c=0,b=arguments.length;c<b;c++)a+=arguments[c].length;a=Array(a);var d=0;for(c=0;c<b;c++)for(var e=arguments[c],f=0,g=e.length;f<g;f++,d++)a[d]=e[f];return a},l=v.topo2geo,n=E.maps,d=t.boundsFromPath,a=t.pointInPolygon,f=C.addEvent,k=C.clamp,G=C.fireEvent,y=C.isArray,B=C.isNumber,x=C.isObject,r=C.isString,m=C.merge,h=C.pick,p=C.relativeLength,c=function(a,c){return Math.log(400.979322/Math.max((a.x2-a.x1)/(c.width/256),(a.y2-a.y1)/(c.height/256)))/Math.log(2)},w=function(){function d(a,
669
- c){var e=this;this.insets=[];this.padding=[0,0,0,0];this.eventsToUnbind=[];var h;if(!(this instanceof g)){var k=q([a.options.chart.map],(a.options.series||[]).map(function(a){return a.mapData})).map(function(a){return e.getGeoMap(a)}),l=[];k.forEach(function(a){a&&(h||(h=a["hc-recommended-mapview"]),a.bbox&&(a=a.bbox,l.push({x1:a[0],y1:a[1],x2:a[2],y2:a[3]})))});var n=l.length&&d.compositeBounds(l);if(n){var u=n.x1;var p=n.y1,r=n.x2;n=n.y2;u=180<r-u&&90<n-p?{name:"EqualEarth"}:{name:"LambertConformalConic",
670
- parallels:[p,n],rotation:[-(u+r)/2]}}this.geoMap=k[0]}this.userOptions=c||{};k=m(b,{projection:u},h,c);n=h&&h.insets;c=c&&c.insets;n&&c&&(k.insets=d.mergeInsets(n,c));this.chart=a;this.center=k.center;this.options=k;this.projection=new A(k.projection);this.playingField=a.plotBox;this.zoom=k.zoom||0;this.createInsets();this.eventsToUnbind.push(f(a,"afterSetChartSize",function(){e.playingField=e.getField();if(void 0===e.minZoom||e.minZoom===e.zoom)e.fitToBounds(void 0,void 0,!1),B(e.userOptions.zoom)&&
671
- (e.zoom=e.userOptions.zoom),e.userOptions.center&&m(!0,e.center,e.userOptions.center)}));this.setUpEvents()}d.mergeInsets=function(a,c){var b=function(a){var c={};a.forEach(function(a,b){c[a&&a.id||"i"+b]=a});return c},d=m(b(a),b(c));return Object.keys(d).map(function(a){return d[a]})};d.prototype.createInsets=function(){var a=this,c=this.options,b=c.insets;b&&b.forEach(function(b){b=new g(a,m(c.insetOptions,b));a.insets.push(b)})};d.prototype.fitToBounds=function(a,b,d,e){void 0===d&&(d=!0);var f=
672
- a||this.getProjectedBounds();if(f){var g=h(b,a?0:this.options.padding);b=this.getField(!1);g=y(g)?g:[g,g,g,g];this.padding=[p(g[0],b.height),p(g[1],b.width),p(g[2],b.height),p(g[3],b.width)];this.playingField=this.getField();b=c(f,this.playingField);a||(this.minZoom=b);a=this.projection.inverse([(f.x2+f.x1)/2,(f.y2+f.y1)/2]);this.setView(a,b,d,e)}};d.prototype.getField=function(a){void 0===a&&(a=!0);a=a?this.padding:[0,0,0,0];return{x:a[3],y:a[0],width:this.chart.plotWidth-a[1]-a[3],height:this.chart.plotHeight-
673
- a[0]-a[2]}};d.prototype.getGeoMap=function(a){if(r(a))return n[a];if(x(a,!0)){if("FeatureCollection"===a.type)return a;if("Topology"===a.type)return l(a)}};d.prototype.getMapBBox=function(){var a=this.getProjectedBounds(),c=this.getScale();if(a){var b=this.padding,d=this.projectedUnitsToPixels({x:a.x1,y:a.y2});return{width:(a.x2-a.x1)*c+b[1]+b[3],height:(a.y2-a.y1)*c+b[0]+b[2],x:d.x-b[3],y:d.y-b[0]}}};d.prototype.getProjectedBounds=function(){var a=this.chart.series.reduce(function(a,c){var b=c.getProjectedBounds&&
674
- c.getProjectedBounds();b&&!1!==c.options.affectsMapView&&a.push(b);return a},[]);return this.projection.bounds||d.compositeBounds(a)};d.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};d.prototype.getSVGTransform=function(){var a=this.playingField,c=a.x,b=a.y,d=a.width;a=a.height;var e=this.projection.forward(this.center),f=this.projection.hasCoordinates?-1:1,g=this.getScale();f*=g;return{scaleX:g,scaleY:f,translateX:c+d/2-e[0]*g,translateY:b+a/2-e[1]*f}};d.prototype.lonLatToPixels=
675
- function(a){if(a=this.lonLatToProjectedUnits(a))return this.projectedUnitsToPixels(a)};d.prototype.lonLatToProjectedUnits=function(c){var b=this.chart,d=b.mapTransforms;if(d){for(var e in d)if(Object.hasOwnProperty.call(d,e)&&d[e].hitZone){var f=b.transformFromLatLon(c,d[e]);if(f&&a(f,d[e].hitZone.coordinates[0]))return f}return b.transformFromLatLon(c,d["default"])}d=0;for(e=this.insets;d<e.length;d++)if(b=e[d],b.options.geoBounds&&a({x:c.lon,y:c.lat},b.options.geoBounds.coordinates[0]))return c=
676
- b.projection.forward([c.lon,c.lat]),c=b.projectedUnitsToPixels({x:c[0],y:c[1]}),this.pixelsToProjectedUnits(c);c=this.projection.forward([c.lon,c.lat]);if(!c.outside)return{x:c[0],y:c[1]}};d.prototype.projectedUnitsToLonLat=function(c){var b=this.chart,d=b.mapTransforms;if(d){for(var e in d)if(Object.hasOwnProperty.call(d,e)&&d[e].hitZone&&a(c,d[e].hitZone.coordinates[0]))return b.transformToLatLon(c,d[e]);return b.transformToLatLon(c,d["default"])}d=this.projectedUnitsToPixels(c);e=0;for(var f=this.insets;e<
677
- f.length;e++)if(b=f[e],b.hitZone&&a(d,b.hitZone.coordinates[0]))return c=b.pixelsToProjectedUnits(d),c=b.projection.inverse([c.x,c.y]),{lon:c[0],lat:c[1]};c=this.projection.inverse([c.x,c.y]);return{lon:c[0],lat:c[1]}};d.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};d.prototype.setView=function(a,c,b,d){void 0===b&&(b=!0);a&&(this.center=a);"number"===typeof c&&("number"===typeof this.minZoom&&(c=Math.max(c,this.minZoom)),
678
- "number"===typeof this.options.maxZoom&&(c=Math.min(c,this.options.maxZoom)),this.zoom=c);var e=this.getProjectedBounds();if(e){a=this.projection.forward(this.center);var f=this.playingField;c=f.x;var g=f.y,h=f.width;f=f.height;var k=this.getScale(),l=this.projectedUnitsToPixels({x:e.x1,y:e.y1}),m=this.projectedUnitsToPixels({x:e.x2,y:e.y2});e=[(e.x1+e.x2)/2,(e.y1+e.y2)/2];var n=l.x,p=m.y;m=m.x;l=l.y;m-n<h?a[0]=e[0]:n<c&&m<c+h?a[0]+=Math.max(n-c,m-h-c)/k:m>c+h&&n>c&&(a[0]+=Math.min(m-h-c,n-c)/k);
679
- l-p<f?a[1]=e[1]:p<g&&l<g+f?a[1]-=Math.max(p-g,l-f-g)/k:l>g+f&&p>g&&(a[1]-=Math.min(l-f-g,p-g)/k);this.center=this.projection.inverse(a);this.insets.forEach(function(a){a.options.field&&(a.hitZone=a.getHitZone(),a.playingField=a.getField())});this.render()}G(this,"afterSetView");b&&this.redraw(d)};d.prototype.projectedUnitsToPixels=function(a){var c=this.getScale(),b=this.projection.forward(this.center),d=this.playingField;return{x:d.x+d.width/2-c*(b[0]-a.x),y:d.y+d.height/2+c*(b[1]-a.y)}};d.prototype.pixelsToLonLat=
680
- function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))};d.prototype.pixelsToProjectedUnits=function(a){var c=a.x;a=a.y;var b=this.getScale(),d=this.projection.forward(this.center),e=this.playingField;return{x:d[0]+(c-(e.x+e.width/2))/b,y:d[1]-(a-(e.y+e.height/2))/b}};d.prototype.setUpEvents=function(){var a=this,b=this.chart,d,e,g,h=function(f){var h=b.pointer.pinchDown,l=a.projection,m=b.mouseDownX,n=b.mouseDownY;1===h.length&&(m=h[0].chartX,n=h[0].chartY);if("number"===typeof m&&
681
- "number"===typeof n){var p=m+","+n,r=f.originalEvent;h=r.chartX;r=r.chartY;p!==e&&(e=p,d=a.projection.forward(a.center),g=(a.projection.options.rotation||[0,0]).slice());p=(p=l.def&&l.def.bounds)&&c(p,a.playingField)||-Infinity;"Orthographic"===l.options.name&&(a.minZoom||Infinity)<1.1*p?(l=440/(a.getScale()*Math.min(b.plotWidth,b.plotHeight)),g&&(m=(m-h)*l-g[0],n=k(-g[1]-(n-r)*l,-80,80),h=a.zoom,a.update({projection:{rotation:[-m,-n]}},!1),a.zoom=h,b.redraw(!1))):(l=a.getScale(),n=a.projection.inverse([d[0]+
682
- (m-h)/l,d[1]-(n-r)/l]),a.setView(n,void 0,!0,!1));f.preventDefault()}};f(b,"pan",h);f(b,"touchpan",h);f(b,"selection",function(c){if(c.resetSelection)a.zoomBy();else{var d=c.x-b.plotLeft,e=c.y-b.plotTop,f=a.pixelsToProjectedUnits({x:d,y:e}),g=f.y;f=f.x;d=a.pixelsToProjectedUnits({x:d+c.width,y:e+c.height});a.fitToBounds({x1:f,y1:g,x2:d.x,y2:d.y},void 0,!0,c.originalEvent.touches?!1:void 0);/^touch/.test(c.originalEvent.type)||b.showResetZoom();c.preventDefault()}})};d.prototype.render=function(){this.group||
683
- (this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};d.prototype.update=function(a,c,b){void 0===c&&(c=!0);var d=a.projection;d=d&&A.toString(d)!==A.toString(this.options.projection);var e=!1;m(!0,this.userOptions,a);m(!0,this.options,a);"insets"in a&&(this.insets.forEach(function(a){return a.destroy()}),this.insets.length=0,e=!0);if(d||e)this.chart.series.forEach(function(a){var c=a.transformGroups;a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0;if(e&&c)for(;1<c.length;)(a=
684
- c.pop())&&a.destroy()}),d&&(this.projection=new A(this.options.projection)),e&&this.createInsets(),a.center||B(a.zoom)||this.fitToBounds(void 0,void 0,!1);(a.center||B(a.zoom))&&this.setView(this.options.center,a.zoom,!1);c&&this.chart.redraw(b)};d.prototype.zoomBy=function(a,c,b,d){var e=this.chart,f=this.projection.forward(this.center);c=c?this.projection.forward(c):[];var g=c[0],h=c[1];"number"===typeof a?(a=this.zoom+a,c=void 0,b&&(g=b[0],h=b[1],b=this.getScale(),g=g-e.plotLeft-e.plotWidth/2,
685
- e=h-e.plotTop-e.plotHeight/2,g=f[0]+g/b,h=f[1]+e/b),"number"===typeof g&&"number"===typeof h&&(b=1-Math.pow(2,this.zoom)/Math.pow(2,a),g=f[0]-g,e=f[1]-h,f[0]-=g*b,f[1]+=e*b,c=this.projection.inverse(f)),this.setView(c,a,void 0,d)):this.fitToBounds(void 0,void 0,void 0,d)};d.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,c){a.x1=Math.min(a.x1,c.x1);a.y1=Math.min(a.y1,c.y1);a.x2=Math.max(a.x2,c.x2);a.y2=Math.max(a.y2,c.y2);return a},m(a[0]))};return d}(),g=function(c){function b(a,
686
- b){var f=c.call(this,a.chart,b)||this;f.id=b.id;f.mapView=a;f.options=m(e,b);f.allBounds=[];f.options.geoBounds&&(a=a.projection.path(f.options.geoBounds),f.geoBoundsProjectedBox=d(a),f.geoBoundsProjectedPolygon=a.map(function(a){return[a[1]||0,a[2]||0]}));return f}z(b,c);b.prototype.getField=function(a){void 0===a&&(a=!0);var b=this.hitZone;if(b){var d=a?this.padding:[0,0,0,0];b=b.coordinates[0];var e=b.map(function(a){return a[0]}),f=b.map(function(a){return a[1]});b=Math.min.apply(0,e)+d[3];e=
687
- Math.max.apply(0,e)-d[1];var g=Math.min.apply(0,f)+d[0];d=Math.max.apply(0,f)-d[2];if(B(b)&&B(g))return{x:b,y:g,width:e-b,height:d-g}}return c.prototype.getField.call(this,a)};b.prototype.getHitZone=function(){var a=this.chart,c=this.mapView,b=this.options,d=(b.field||{}).coordinates;if(d){d=d[0];if("percent"===b.units){var e="mapBoundingBox"===b.relativeTo&&c.getMapBBox()||m(a.plotBox,{x:0,y:0});d=d.map(function(a){return[p(a[0]+"%",e.width,e.x),p(a[1]+"%",e.height,e.y)]})}return{type:"Polygon",
688
- coordinates:[d]}}};b.prototype.getProjectedBounds=function(){return w.compositeBounds(this.allBounds)};b.prototype.isInside=function(c){var b=this.geoBoundsProjectedBox,d=this.geoBoundsProjectedPolygon;return!!(b&&c.x>=b.x1&&c.x<=b.x2&&c.y>=b.y1&&c.y<=b.y2&&d&&a(c,d))};b.prototype.render=function(){var a=this.chart,c=this.mapView,b=this.options,d=b.borderPath||b.field;if(d&&c.group){var e=!0;this.border||(this.border=a.renderer.path().addClass("highcharts-mapview-inset-border").add(c.group),e=!1);
689
- a.styledMode||this.border.attr({stroke:b.borderColor,"stroke-width":b.borderWidth});var f=Math.round(this.border.strokeWidth())%2/2,g="mapBoundingBox"===b.relativeTo&&c.getMapBBox()||c.playingField;c=(d.coordinates||[]).reduce(function(c,d){return d.reduce(function(c,d,e){var h=d[0];d=d[1];"percent"===b.units&&(h=a.plotLeft+p(h+"%",g.width,g.x),d=a.plotTop+p(d+"%",g.height,g.y));h=Math.floor(h)+f;d=Math.floor(d)+f;c.push(0===e?["M",h,d]:["L",h,d]);return c},c)},[]);this.border[e?"animate":"attr"]({d:c})}};
690
- b.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(a){return a()})};b.prototype.setUpEvents=function(){};return b}(w);f(E,"afterInit",function(){this.mapView=new w(this,this.options.mapView)});return w});J(e,"Series/Map/MapSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Series/ColorMapMixin.js"],e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Chart/MapChart.js"],e["Series/Map/MapPoint.js"],
691
- e["Maps/MapView.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C,z,q,l,n,d){var a=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):
692
- (d.prototype=b.prototype,new d)}}(),f=b.animObject;b=E.noop;var k=A.splitPath;A=l.seriesTypes;var G=A.column,y=A.scatter;A=d.extend;var B=d.find,x=d.fireEvent,r=d.getNestedProperty,m=d.isArray,h=d.isNumber,p=d.isObject,c=d.merge,w=d.objectEach,g=d.pick,F=d.splat;d=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.group=void 0;a.joinBy=void 0;a.options=void 0;a.points=void 0;a.processedData=[];return a}a(d,b);d.prototype.animate=function(a){var c=
693
- this.chart,b=this.group,d=f(this.options.animation);c.renderer.isSVG&&(a?b.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.001,scaleY:.001}):b.animate({translateX:c.plotLeft,translateY:c.plotTop,scaleX:1,scaleY:1},d))};d.prototype.animateDrilldown=function(a){var c=this.chart,b=this.group;c.renderer.isSVG&&(a?b.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(b.animate({translateX:c.plotLeft,translateY:c.plotTop,
694
- scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),c.drilldown&&c.drilldown.fadeInGroup(this.dataLabelsGroup)))};d.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};d.prototype.animateDrillupTo=function(a){G.prototype.animateDrillupTo.call(this,a)};d.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;
695
- delete a.insetIndex;delete a.projectedPath});delete this.bounds};d.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};d.prototype.drawMapDataLabels=function(){q.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};d.prototype.drawPoints=function(){var a=this,c=this.chart,b=this.group,d=this.transformGroups,e=void 0===d?[]:d,f=c.mapView,h=c.renderer;f&&(this.transformGroups=
696
- e,e[0]||(e[0]=h.g().add(b)),f.insets.forEach(function(a,c){e[c+1]||e.push(h.g().add(b))}),this.doFullTranslate()&&(this.points.forEach(function(b){var d=b.graphic,f=b.shapeArgs;b.group=e["number"===typeof b.insetIndex?b.insetIndex+1:0];d&&d.parentGroup!==b.group&&d.add(b.group);f&&c.hasRendered&&!c.styledMode&&(f.fill=a.pointAttribs(b,b.state).fill)}),G.prototype.drawPoints.apply(this),this.points.forEach(function(b){if(b.graphic){var d="";b.name&&(d+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase());
697
- b.properties&&b.properties["hc-key"]&&(d+=" highcharts-key-"+b.properties["hc-key"].toString().toLowerCase());d&&b.graphic.addClass(d);c.styledMode&&b.graphic.css(a.pointAttribs(b,b.selected&&"select"||void 0))}})),e.forEach(function(b,d){var e=(0===d?f:f.insets[d-1]).getSVGTransform(),k=g(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1),l=e.scaleX,m=0<e.scaleY?1:-1;if(h.globalAnimation&&c.hasRendered){var n=Number(b.attr("translateX")),p=Number(b.attr("translateY")),
698
- r=Number(b.attr("scaleX"));b.attr({animator:0}).animate({animator:1},{step:function(a,c){a=r+(l-r)*c.pos;b.attr({translateX:n+(e.translateX-n)*c.pos,translateY:p+(e.translateY-p)*c.pos,scaleX:a,scaleY:a*m});b.element.setAttribute("stroke-width",k/a)}})}else b.attr(e),b.element.setAttribute("stroke-width",k/l)}),this.drawMapDataLabels())};d.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var a=this.chart.mapView,c=a.insets,b=a.projection,d=[];(this.points||[]).forEach(function(a){if(a.path||
699
- a.geometry){"string"===typeof a.path?a.path=k(a.path):m(a.path)&&"M"===a.path[0]&&(a.path=n.prototype.pathToSegments(a.path));if(!a.bounds){var e=a.getProjectedBounds(b);if(e){a.labelrank=g(a.labelrank,(e.x2-e.x1)*(e.y2-e.y1));var f=e.midX,l=e.midY;if(c&&h(f)&&h(l)){var p=B(c,function(a){return a.isInside({x:f,y:l})});p&&(delete a.projectedPath,(e=a.getProjectedBounds(p.projection))&&p.allBounds.push(e),a.insetIndex=c.indexOf(p))}a.bounds=e}}a.bounds&&void 0===a.insetIndex&&d.push(a.bounds)}});this.bounds=
700
- z.compositeBounds(d)}return this.bounds};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.pointAttribs=function(a,c){var b=a.series.chart,d=b.mapView;c=b.styledMode?this.colorAttribs(a):G.prototype.pointAttribs.call(this,a,c);(a=a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&d&&(a/=d.getScale());c.dashstyle&&d&&this.options.borderWidth&&(a=this.options.borderWidth/d.getScale());c["stroke-width"]=g(a,"inherit");return c};d.prototype.setData=
701
- function(){b.prototype.setData.apply(this,arguments);this.processData();this.generatePoints()};d.prototype.processData=function(){var a=this.options,b=a.data,d=this.chart.options.chart,e=this.joinBy,f=a.keys||this.pointArrayMap,g=[],k={},l=this.chart.mapView;l=l&&(p(a.mapData,!0)?l.getGeoMap(a.mapData):l.geoMap);var n=this.chart.mapTransforms;(this.chart.mapTransforms=n=d.mapTransforms||l&&l["hc-transform"]||n)&&w(n,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});
702
- if(m(a.mapData))var q=a.mapData;else l&&"FeatureCollection"===l.type&&(this.mapTitle=l.title,q=E.geojson(l,this.type,this));var u=this.processedData=[];b&&b.forEach(function(c,d){var g=0;if(h(c))u[d]={value:c};else if(m(c)){u[d]={};!a.keys&&c.length>f.length&&"string"===typeof c[0]&&(u[d]["hc-key"]=c[0],++g);for(var k=0;k<f.length;++k,++g)f[k]&&"undefined"!==typeof c[g]&&(0<f[k].indexOf(".")?C.prototype.setNestedProperty(u[d],c[g],f[k]):u[d][f[k]]=c[g])}else u[d]=b[d];e&&"_i"===e[0]&&(u[d]._i=d)});
703
- if(q){this.mapData=q;this.mapMap={};for(n=0;n<q.length;n++)d=q[n],l=d.properties,d._i=n,e[0]&&l&&l[e[0]]&&(d[e[0]]=l[e[0]]),k[d[e[0]]]=d;this.mapMap=k;if(e[1]){var t=e[1];u.forEach(function(a){a=r(t,a);k[a]&&g.push(k[a])})}if(a.allAreas){if(e[1]){var x=e[1];u.forEach(function(a){g.push(r(x,a))})}var y="|"+g.map(function(a){return a&&a[e[0]]}).join("|")+"|";q.forEach(function(a){e[0]&&-1!==y.indexOf("|"+a[e[0]]+"|")||u.push(c(a,{value:null}))})}}this.processedXData=Array(u.length)};d.prototype.setOptions=
704
- function(a){a=q.prototype.setOptions.call(this,a);var c=a.joinBy;null===c&&(c="_i");c=this.joinBy=F(c);c[1]||(c[1]=c[0]);return a};d.prototype.translate=function(){var a=this.doFullTranslate(),c=this.chart.mapView,b=c&&c.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,this.getProjectedBounds());if(c){var d=c.getSVGTransform();this.points.forEach(function(e){var f=h(e.insetIndex)&&c.insets[e.insetIndex].getSVGTransform()||
705
- d;f&&e.bounds&&h(e.bounds.midX)&&h(e.bounds.midY)&&(e.plotX=e.bounds.midX*f.scaleX+f.translateX,e.plotY=e.bounds.midY*f.scaleY+f.translateY);a&&(e.shapeType="path",e.shapeArgs={d:C.getProjectedPath(e,b)})})}x(this,"afterTranslate")};d.defaultOptions=c(y.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,c=this.point.value;return h(c)?a(c,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",
706
- stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return d}(y);A(d.prototype,{type:"map",axisTypes:e.SeriesMixin.axisTypes,colorAttribs:e.SeriesMixin.colorAttribs,colorKey:e.SeriesMixin.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:t.drawRectangle,
707
- forceDL:!0,getCenter:v.getCenter,getExtremesFromAll:!0,getSymbol:e.SeriesMixin.getSymbol,isCartesian:!1,parallelArrays:e.SeriesMixin.parallelArrays,pointArrayMap:e.SeriesMixin.pointArrayMap,pointClass:C,preserveAspectRatio:!0,searchPoint:b,trackerGroups:e.SeriesMixin.trackerGroups,useMapGeometry:!0});l.registerSeriesType("map",d);"";return d});J(e,"Series/MapLine/MapLineSeries.js",[e["Series/Map/MapSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v){var E=this&&
708
- this.__extends||function(){var b=function(e,l){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var a in d)d.hasOwnProperty(a)&&(b[a]=d[a])};return b(e,l)};return function(e,l){function n(){this.constructor=e}b(e,l);e.prototype=null===l?Object.create(l):(n.prototype=l.prototype,new n)}}(),t=e.series,A=v.extend,C=v.merge;v=function(e){function q(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}
709
- E(q,e);q.prototype.pointAttribs=function(e,n){e=b.prototype.pointAttribs.call(this,e,n);e.fill=this.options.fillColor;return e};q.defaultOptions=C(b.defaultOptions,{lineWidth:1,fillColor:"none"});return q}(b);A(v.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:t.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});e.registerSeriesType("mapline",v);"";return v});J(e,"Series/MapPoint/MapPointPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],
710
- function(b,e){var v=this&&this.__extends||function(){var b=function(e,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var l in e)e.hasOwnProperty(l)&&(b[l]=e[l])};return b(e,t)};return function(e,t){function v(){this.constructor=e}b(e,t);e.prototype=null===t?Object.create(t):(v.prototype=t.prototype,new v)}}(),E=e.isNumber;return function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.series=void 0;return e}
711
- v(e,b);e.prototype.isValid=function(){return!!(this.options.geometry||E(this.x)&&E(this.y)||E(this.options.lon)&&E(this.options.lat))};return e}(b.seriesTypes.scatter.prototype.pointClass)});J(e,"Series/MapPoint/MapPointSeries.js",[e["Core/Globals.js"],e["Series/MapPoint/MapPointPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=this&&this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
712
- b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(d,a)};return function(d,a){function e(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();b=b.noop;var A=v.seriesTypes.scatter,C=E.extend,z=E.fireEvent,q=E.isNumber,l=E.merge;E=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}t(d,b);d.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);
713
- this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};d.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var d=a.geometry,e=a.lon;a=a.lat;d=d&&"Point"===d.type&&d.coordinates;q(e)&&q(a)&&(d=[e,a]);if(d)return b.lonLatToProjectedUnits({lon:d[0],lat:d[1]})}};d.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();if(b){var d=b.projection.hasCoordinates;this.points.forEach(function(e){var f=e.x;f=
714
- void 0===f?void 0:f;var k=e.y;k=void 0===k?void 0:k;var l=a.projectPoint(e.options);l?(f=l.x,k=l.y):e.bounds&&(f=e.bounds.midX,k=e.bounds.midY);q(f)&&q(k)?(f=b.projectedUnitsToPixels({x:f,y:k}),e.plotX=f.x,e.plotY=d?f.y:a.chart.plotHeight-f.y):e.y=e.plotX=e.plotY=void 0;e.isInside=a.isPointInside(e);e.zone=a.zones.length?e.getZone():void 0})}z(this,"afterTranslate")};d.defaultOptions=l(A.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,
715
- style:{color:"#000000"}}});return d}(A);C(E.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:e,searchPoint:b,useMapGeometry:!0});v.registerSeriesType("mappoint",E);"";return E});J(e,"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,
716
- align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});J(e,"Series/Bubble/BubbleLegendItem.js",[e["Core/Color/Color.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=b.parse,A=v.noop,C=E.arrayMax,z=E.arrayMin,q=E.isNumber,l=E.merge,n=E.pick,d=E.stableSort;"";return function(){function a(a,
717
- b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=A;this.init(a,b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(a){var b=this.chart,
718
- e=this.options,f=n(a.options.itemDistance,20),l=e.ranges,t=e.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(e.labels.style.fontSize);l&&l.length&&q(l[0].value)?(d(l,function(a,b){return b.value-a.value}),this.ranges=l,this.setOptions(),this.render(),a=this.getMaxLabelSize(),l=this.ranges[0].radius,b=2*l,t=t-l+a.width,t=0<t?t:0,this.maxLabel=a,this.movementX="left"===e.labels.align?t:0,this.legendItemWidth=b+t+f,this.legendItemHeight=b+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=
719
- !0};a.prototype.setOptions=function(){var a=this.ranges,b=this.options,d=this.chart.series[b.seriesIndex],e=this.legend.baseline,q={zIndex:b.zIndex,"stroke-width":b.borderWidth},x={zIndex:b.zIndex,"stroke-width":b.connectorWidth},r={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},m=d.options.marker.fillOpacity,h=this.chart.styledMode;a.forEach(function(f,c){h||(q.stroke=n(f.borderColor,b.borderColor,d.color),q.fill=n(f.color,b.color,1!==m?t(d.color).setOpacity(m).get("rgba"):
720
- d.color),x.stroke=n(f.connectorColor,b.connectorColor,d.color));a[c].radius=this.getRangeRadius(f.value);a[c]=l(a[c],{center:a[0].radius-a[c].radius+e});h||l(!0,a[c],{bubbleAttribs:l(q),connectorAttribs:l(x),labelAttribs:r})},this)};a.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};a.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;
721
- this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var b=this.options,d=b.labels,e=this.chart,f=e.series[b.seriesIndex],l=e.renderer,
722
- n=this.symbols;e=n.labels;var m=a.center,h=Math.abs(a.radius),p=b.connectorDistance||0,c=d.align,q=b.connectorWidth,g=this.ranges[0].radius||0,t=m-h-b.borderWidth/2+q/2,u=this.fontMetrics;u=u.f/2-(u.h-u.f)/2;var v=l.styledMode;p=this.legend.options.rtl||"left"===c?-p:p;"center"===c&&(p=0,b.connectorDistance=0,a.labelAttribs.align="center");c=t+b.labels.y;var z=g+p+b.labels.x;n.bubbleItems.push(l.circle(g,m+((t%1?1:.5)-(q%2?0:.5)),h).attr(v?{}:a.bubbleAttribs).addClass((v?"highcharts-color-"+f.colorIndex+
723
- " ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));n.connectors.push(l.path(l.crispLine([["M",g,t],["L",g+p,t]],b.connectorWidth)).attr(v?{}:a.connectorAttribs).addClass((v?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=l.text(this.formatLabel(a),z,c+u).attr(v?{}:a.labelAttribs).css(v?{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);
724
- e.push(a);a.placed=!0;a.alignAttr={x:z,y:c+u}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var f=this.chart.numberFormatter;return b?e.format(b,a):d?d.call(a):f(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),
725
- b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,d,e=Number.MAX_VALUE,t=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(d=a.zData.filter(q),d.length&&(e=n(a.options.zMin,Math.min(e,Math.max(z(d),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),t=n(a.options.zMax,Math.max(t,C(d)))))});
726
- var x=e===t?[{value:t}]:[{value:e},{value:(e+t)/2},{value:t,autoRanges:!0}];b.length&&b[0].radius&&x.reverse();x.forEach(function(a,d){b&&b[d]&&(x[d]=l(b[d],a))});return x};a.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,d=a.legend.options,e=d.floating,l=(d="horizontal"===d.layout)?a.legend.lastLineHeight:0,n=a.plotSizeX,r=a.plotSizeY,m=a.series[this.options.seriesIndex],h=m.getPxExtremes();a=Math.ceil(h.minPxSize);h=Math.ceil(h.maxPxSize);var p=Math.min(r,n);m=m.options.maxSize;
727
- if(e||!/%$/.test(m))b=h;else if(m=parseFloat(m),b=(p+l-b.h/2)*m/100/(m/100+1),d&&r-b>=n||!d&&n-b>=r)b=h;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}()});
728
- J(e,"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e,v,E){var t=v.setOptions,A=E.addEvent,C=E.objectEach,z=E.wrap,q;(function(l){function n(b,e,f){var k=this.legend,h=0<=d(this);if(k&&k.options.enabled&&k.bubbleLegend&&k.options.bubbleLegend.autoRanges&&h){var l=k.bubbleLegend.options;h=k.bubbleLegend.predictBubbleSizes();k.bubbleLegend.updateRanges(h[0],h[1]);
729
- l.placed||(k.group.placed=!1,k.allItems.forEach(function(a){a.legendGroup.translateY=null}));k.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();l.placed||(a.setScale(),a.updateNames(),C(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});l.placed=!0;this.getMargins();b.call(this,e,f);k.bubbleLegend.correctSizes();q(k,a(k))}else b.call(this,e,f),k&&k.options.enabled&&k.bubbleLegend&&(k.render(),q(k,a(k)))}function d(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&
730
- a[b].visible&&a[b].zData.length)return b;b++}return-1}function a(a){a=a.allItems;var b=[],d=a.length,e,f=0;for(e=0;e<d;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[d-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var k=b[b.length-1];for(f;f<=e;f++)a[f].itemHeight>k.height&&(k.height=a[f].itemHeight);k.step=e}return b}function f(a){var b=this.bubbleLegend,f=this.options,k=f.bubbleLegend,h=d(this.chart);b&&b.ranges&&b.ranges.length&&
731
- (k.ranges.length&&(k.autoRanges=!!k.ranges[0].autoRanges),this.destroyItem(b));0<=h&&f.enabled&&k.enabled&&(k.seriesIndex=h,this.bubbleLegend=new e(k,this),this.bubbleLegend.addToLegend(a.allItems))}function k(){var a=this.chart,b=this.visible,e=this.chart.legend;e&&e.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=d(a),e.bubbleLegend.visible!==a&&(e.update({bubbleLegend:{enabled:a}}),e.bubbleLegend.visible=a),this.visible=b)}function q(a,b){var d=a.options.rtl,e,f,k,c=0;a.allItems.forEach(function(a,
732
- g){e=a.legendGroup.translateX;f=a._legendItemPos[1];if((k=a.movementX)||d&&a.ranges)k=d?e-a.options.maxSize/2:e+k,a.legendGroup.attr({translateX:k});g>b[c].step&&c++;a.legendGroup.attr({translateY:Math.round(f+b[c].height/2)});a._legendItemPos[1]=f+b[c].height/2})}var v=[];l.compose=function(a,d,e){-1===v.indexOf(a)&&(v.push(a),t({legend:{bubbleLegend:b}}),z(a.prototype,"drawChartBox",n));-1===v.indexOf(d)&&(v.push(d),A(d,"afterGetAllItems",f));-1===v.indexOf(e)&&(v.push(e),A(e,"legendItemClick",
733
- k))}})(q||(q={}));return q});J(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v){var E=this&&this.__extends||function(){var b=function(e,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var l in e)e.hasOwnProperty(l)&&(b[l]=e[l])};return b(e,t)};return function(e,t){function v(){this.constructor=e}b(e,t);e.prototype=null===t?Object.create(t):(v.prototype=
734
- t.prototype,new v)}}();v=v.extend;e=function(e){function t(){var b=null!==e&&e.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}E(t,e);t.prototype.haloPath=function(e){return b.prototype.haloPath.call(this,0===e?0:(this.marker?this.marker.radius||0:0)+e)};return t}(e.seriesTypes.scatter.prototype.pointClass);v(e.prototype,{ttBelow:!1});return e});J(e,"Series/Bubble/BubbleSeries.js",[e["Core/Axis/Axis.js"],e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],
735
- e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C,z){var q=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,
736
- new e)}}(),l=E.parse;E=t.noop;var n=C.seriesTypes;t=n.column;var d=n.scatter;n=z.addEvent;var a=z.arrayMax,f=z.arrayMin,k=z.clamp,G=z.extend,y=z.isNumber,B=z.merge,x=z.pick;z=function(b){function m(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}q(m,b);m.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=
737
- 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)};m.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,d=[],e=this.chart.bubbleZExtremes;var f=this.getPxExtremes();var k=f.minPxSize,l=f.maxPxSize;if(!e){var m=Number.MAX_VALUE,n=-Number.MAX_VALUE,r;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=b.getZExtremes())&&(m=
738
- Math.min(m||b.zMin,b.zMin),n=Math.max(n||b.zMax,b.zMax),r=!0)});r?(e={zMin:m,zMax:n},this.chart.bubbleZExtremes=e):e={zMin:0,zMax:0}}var q=0;for(f=b.length;q<f;q++){var t=b[q];d.push(this.getRadius(e.zMin,e.zMax,k,l,t,c[q]))}this.radii=d};m.prototype.getRadius=function(a,b,c,d,e,f){var g=this.options,h="width"!==g.sizeBy,k=g.zThreshold,l=b-a,m=.5;if(null===f||null===e)return null;if(y(e)){g.sizeByAbsoluteValue&&(e=Math.abs(e-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(e<a)return c/2-1;0<l&&(m=(e-a)/
739
- l)}h&&0<=m&&(m=Math.sqrt(m));return Math.ceil(c+m*(d-c))/2};m.prototype.hasData=function(){return!!this.processedXData.length};m.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=A.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=l(a.fill).setOpacity(c).get("rgba"));return a};m.prototype.translate=function(){b.prototype.translate.call(this);this.getRadii();this.translateBubble()};m.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,c=this.getPxExtremes().minPxSize,
740
- d=a.length;d--;){var e=a[d],f=b?b[d]:0;y(f)&&f>=c/2?(e.marker=G(e.marker,{radius:f,width:2*f,height:2*f}),e.dlBox={x:e.plotX-f,y:e.plotY-f,width:2*f,height:2*f}):e.shapeArgs=e.plotY=e.dlBox=void 0}};m.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=/%$/.test(b);b=parseInt(b,10)}return c?a*b/100:b},c=b(x(this.options.minSize,8));b=Math.max(b(x(this.options.maxSize,"20%")),c);return{minPxSize:c,maxPxSize:b}};m.prototype.getZExtremes=
741
- function(){var b=this.options,d=(this.zData||[]).filter(y);if(d.length){var c=x(b.zMin,k(f(d),!1===b.displayNegative?b.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));b=x(b.zMax,a(d));if(y(c)&&y(b))return{zMin:c,zMax:b}}};m.compose=e.compose;m.defaultOptions=B(d.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return y(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,
742
- states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return m}(d);G(z.prototype,{alignDataLabel:t.prototype.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:v,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});
743
- n(z,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});b.prototype.beforePadding=function(){var a=this,b=this.len,d=this.chart,e=0,c=b,f=this.isXAxis,g=f?"xData":"yData",k=this.min,l=this.max-k,n=b/l,q;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!d.options.chart.ignoreHiddenSeries)){q=a.allowZoomOutside=!0;var h=b[g];f&&b.getRadii(0,0,b);if(0<l)for(var m=h.length;m--;)if(y(h[m])&&a.dataMin<=h[m]&&h[m]<=a.max){var p=b.radii&&b.radii[m]||0;e=Math.min((h[m]-k)*n-p,
744
- e);c=Math.max((h[m]-k)*n+p,c)}}});q&&0<l&&!this.logarithmic&&(c-=b,n*=(b+Math.max(0,e)-Math.min(c,b))/b,[["min","userMin",e],["max","userMax",c]].forEach(function(b){"undefined"===typeof x(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/n)}))};C.registerSeriesType("bubble",z);"";"";return z});J(e,"Series/MapBubble/MapBubblePoint.js",[e["Series/Map/MapPoint.js"],e["Core/Series/SeriesRegistry.js"]],function(b,e){var v=this&&this.__extends||function(){var b=function(e,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof
745
- Array&&function(b,e){b.__proto__=e}||function(b,e){for(var l in e)e.hasOwnProperty(l)&&(b[l]=e[l])};return b(e,t)};return function(e,t){function v(){this.constructor=e}b(e,t);e.prototype=null===t?Object.create(t):(v.prototype=t.prototype,new v)}}();e=e.seriesTypes;var E=e.map;return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;t.applyOptions=E.prototype.pointClass.prototype.applyOptions;t.getProjectedBounds=b.prototype.getProjectedBounds;return t}v(t,e);t.prototype.isValid=
746
- function(){return"number"===typeof this.z};return t}(e.bubble.prototype.pointClass)});J(e,"Series/MapBubble/MapBubbleSeries.js",[e["Series/Bubble/BubbleSeries.js"],e["Series/MapBubble/MapBubblePoint.js"],e["Series/Map/MapSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A){var C=this&&this.__extends||function(){var b=function(e,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
747
- (a[d]=b[d])};return b(e,d)};return function(e,d){function a(){this.constructor=e}b(e,d);e.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),z=E.seriesTypes.mappoint;t=A.extend;var q=A.merge;A=function(e){function l(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}C(l,e);l.prototype.searchPoint=function(b,a){return this.searchKDTree({clientX:b.chartX-this.chart.plotLeft,plotY:b.chartY-this.chart.plotTop},a,b)};l.prototype.translate=
748
- function(){z.prototype.translate.call(this);this.getRadii();this.translateBubble()};l.compose=b.compose;l.defaultOptions=q(b.defaultOptions,{animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}});return l}(b);t(A.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:v.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:e,processData:v.prototype.processData,projectPoint:z.prototype.projectPoint,setData:v.prototype.setData,setOptions:v.prototype.setOptions,
749
- useMapGeometry:!0,xyFromShape:!0});E.registerSeriesType("mapbubble",A);"";return A});J(e,"Series/Heatmap/HeatmapPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var v=this&&this.__extends||function(){var b=function(e,l){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var a in d)d.hasOwnProperty(a)&&(b[a]=d[a])};return b(e,l)};return function(e,l){function n(){this.constructor=e}b(e,l);e.prototype=null===l?
750
- Object.create(l):(n.prototype=l.prototype,new n)}}(),E=e.clamp,t=e.defined,A=e.extend,C=e.pick;b=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.series=void 0;e.value=void 0;e.x=void 0;e.y=void 0;return e}v(e,b);e.prototype.applyOptions=function(e,n){e=b.prototype.applyOptions.call(this,e,n);e.formatPrefix=e.isNull||null===e.value?"null":"point";return e};e.prototype.getCellAttributes=function(){var b=this.series,e=b.options,d=(e.colsize||1)/2,a=(e.rowsize||
751
- 1)/2,f=b.xAxis,k=b.yAxis,q=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();var v=C(this.pointPadding,e.pointPadding,0),z={x1:E(Math.round(f.len-(f.translate(this.x-d,!1,!0,!1,!0,-b)||0)),-f.len,2*f.len),x2:E(Math.round(f.len-(f.translate(this.x+d,!1,!0,!1,!0,-b)||0)),-f.len,2*f.len),y1:E(Math.round(k.translate(this.y-a,!1,!0,!1,!0)||0),-k.len,2*k.len),y2:E(Math.round(k.translate(this.y+a,!1,!0,!1,!0)||0),-k.len,2*k.len)};[["width","x"],["height","y"]].forEach(function(a){var b=
752
- a[0];a=a[1];var d=a+"1",e=a+"2",f=Math.abs(z[d]-z[e]),c=q&&q.lineWidth||0,k=Math.abs(z[d]+z[e])/2;b=q&&q[b];t(b)&&b<f&&(b=b/2+c/2,z[d]=k-b,z[e]=k+b);v&&("y"===a&&(d=e,e=a+"1"),z[d]+=v,z[e]-=v)});return z};e.prototype.haloPath=function(b){if(!b)return[];var e=this.shapeArgs;return["M",e.x-b,e.y-b,"L",e.x-b,e.y+e.height+b,e.x+e.width+b,e.y+e.height+b,e.x+e.width+b,e.y-b,"Z"]};e.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return e}(b.seriesTypes.scatter.prototype.pointClass);
753
- A(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});J(e,"Series/Heatmap/HeatmapSeries.js",[e["Core/Color/Color.js"],e["Series/ColorMapMixin.js"],e["Series/Heatmap/HeatmapPoint.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A,C){var z=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
754
- b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),q=t.series,l=t.seriesTypes,n=l.column,d=l.scatter,a=A.prototype.symbols,f=C.extend,k=C.fireEvent,G=C.isNumber,y=C.merge,B=C.pick;A=function(e){function l(){var a=null!==e&&e.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=
755
- NaN;return a}z(l,e);l.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)q.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),(b.shapeArgs||{}).r=a.options.borderRadius,(b.shapeArgs||{}).d=b.graphic.pathArray,null===b.value&&b.graphic.addClass("highcharts-null-point"))})};l.prototype.getExtremes=
756
- function(){var a=q.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;G(b)&&(this.valueMin=b);G(a)&&(this.valueMax=a);return q.prototype.getExtremes.call(this)};l.prototype.getValidPoints=function(a,b){return q.prototype.getValidPoints.call(this,a,b,!0)};l.prototype.hasData=function(){return!!this.processedXData.length};l.prototype.init=function(){q.prototype.init.apply(this,arguments);var b=this.options;b.pointRange=B(b.pointRange,b.colsize||1);this.yAxis.axisPointRange=b.rowsize||
757
- 1;a.ellipse=a.circle};l.prototype.markerAttribs=function(a,b){var d=a.marker||{},c=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var h=c.states[b]||{};var k=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(k[a[0]]||h[a[0]]||e[a[0]])+(k[a[0]+"Plus"]||h[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};l.prototype.pointAttribs=function(a,d){var e=q.prototype.pointAttribs.call(this,a,d),c=this.options||
758
- {},f=this.chart.options.plotOptions||{},g=f.series||{},h=f.heatmap||{};f=a&&a.options.borderColor||c.borderColor||h.borderColor||g.borderColor;g=a&&a.options.borderWidth||c.borderWidth||h.borderWidth||g.borderWidth||e["stroke-width"];e.stroke=a&&a.marker&&a.marker.lineColor||c.marker&&c.marker.lineColor||f||this.color;e["stroke-width"]=g;d&&(a=y(c.states[d],c.marker&&c.marker.states[d],a&&a.options.states&&a.options.states[d]||{}),d=a.brightness,e.fill=a.color||b.parse(e.fill).brighten(d||0).get(),
759
- e.stroke=a.lineColor);return e};l.prototype.setClip=function(a){var b=this.chart;q.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};l.prototype.translate=function(){var b=this.options,d=b.marker&&b.marker.symbol||"rect",e=a[d]?d:"rect",c=-1!==["circle","square"].indexOf(e);this.generatePoints();this.points.forEach(function(b){var g=b.getCellAttributes(),h={};h.x=Math.min(g.x1,
760
- g.x2);h.y=Math.min(g.y1,g.y2);h.width=Math.max(Math.abs(g.x2-g.x1),0);h.height=Math.max(Math.abs(g.y2-g.y1),0);var k=b.hasImage=0===(b.marker&&b.marker.symbol||d||"").indexOf("url");if(c){var l=Math.abs(h.width-h.height);h.x=Math.min(g.x1,g.x2)+(h.width<h.height?0:l/2);h.y=Math.min(g.y1,g.y2)+(h.width<h.height?l/2:0);h.width=h.height=Math.min(h.width,h.height)}l={plotX:(g.x1+g.x2)/2,plotY:(g.y1+g.y2)/2,clientX:(g.x1+g.x2)/2,shapeType:"path",shapeArgs:y(!0,h,{d:a[e](h.x,h.y,h.width,h.height)})};k&&
761
- (b.marker={width:h.width,height:h.height});f(b,l)});k(this,"afterTranslate")};l.defaultOptions=y(d.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return G(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},
762
- states:{hover:{halo:!1,brightness:.2}}});return l}(d);f(A.prototype,{alignDataLabel:n.prototype.alignDataLabel,axisTypes:e.SeriesMixin.axisTypes,colorAttribs:e.SeriesMixin.colorAttribs,colorKey:e.SeriesMixin.colorKey,directTouch:!0,drawLegendSymbol:E.drawRectangle,getExtremesFromAll:!0,getSymbol:q.prototype.getSymbol,parallelArrays:e.SeriesMixin.parallelArrays,pointArrayMap:["y","value"],pointClass:v,trackerGroups:e.SeriesMixin.trackerGroups});t.registerSeriesType("heatmap",A);"";"";return A});J(e,
763
- "masters/modules/map.src.js",[e["Core/Globals.js"],e["Core/Axis/Color/ColorAxis.js"],e["Series/MapBubble/MapBubbleSeries.js"],e["Core/Chart/MapChart.js"],e["Maps/MapView.js"],e["Maps/Projection.js"]],function(b,e,v,E,t,A){b.ColorAxis=e;b.MapChart=E;b.mapChart=b.Map=E.mapChart;b.MapView=t;b.maps=E.maps;b.Projection=A;e.compose(b.Chart,b.Fx,b.Legend,b.Series);v.compose(b.Chart,b.Legend,b.Series)});J(e,"masters/highmaps.src.js",[e["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});
764
- e["masters/highmaps.src.js"]._modules=e;return e["masters/highmaps.src.js"]});
8
+ (function(W,I){"object"===typeof module&&module.exports?(I["default"]=I,module.exports=W.document?I(W):I):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return I(W)}):(W.Highcharts&&W.Highcharts.error(16,!0),W.Highcharts=I(W))})("undefined"!==typeof window?window:this,function(W){function I(b,K,e,B){b.hasOwnProperty(K)||(b[K]=B.apply(null,e),"function"===typeof CustomEvent&&W.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:K,module:b[K]}})))}var e=
9
+ {};I(e,"Core/Globals.js",[],function(){var b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="10.2.1";b.win="undefined"!==typeof W?W:{};b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=
10
+ !b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(b.userAgent);b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var e=!1;if(!b.isMS){var K=Object.defineProperty({},"passive",{get:function(){e=!0}});
11
+ b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",b.noop,K),b.win.removeEventListener("testPassive",b.noop,K))}return e}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});I(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(b){function e(c,q,k,H){var a=q?"Highcharts error":"Highcharts warning";32===c&&(c=""+a+": Deprecated member");var l=p(c),E=l?""+a+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();
12
+ if("undefined"!==typeof H){var d="";l&&(E+="?");x(H,function(c,q){d+="\n - ".concat(q,": ").concat(c);l&&(E+=encodeURI(q)+"="+encodeURI(c))});E+=d}u(b,"displayError",{chart:k,code:c,message:E,params:H},function(){if(q)throw Error(E);f.console&&-1===e.messages.indexOf(E)&&console.warn(E)});e.messages.push(E)}function y(c,q){var f={};x(c,function(k,a){if(F(c[a],!0)&&!c.nodeType&&q[a])k=y(c[a],q[a]),Object.keys(k).length&&(f[a]=k);else if(F(c[a])||c[a]!==q[a]||a in c&&!(a in q))f[a]=c[a]});return f}
13
+ function B(c,q){return parseInt(c,q||10)}function v(c){return"string"===typeof c}function t(c){c=Object.prototype.toString.call(c);return"[object Array]"===c||"[object Array Iterator]"===c}function F(c,q){return!!c&&"object"===typeof c&&(!q||!t(c))}function z(c){return F(c)&&"number"===typeof c.nodeType}function r(c){var q=c&&c.constructor;return!(!F(c,!0)||z(c)||!q||!q.name||"Object"===q.name)}function p(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function h(c){return"undefined"!==
14
+ typeof c&&null!==c}function a(c,q,f){var k=v(q)&&!h(f),a,l=function(q,f){h(q)?c.setAttribute(f,q):k?(a=c.getAttribute(f))||"class"!==f||(a=c.getAttribute(f+"Name")):c.removeAttribute(f)};v(q)?l(f,q):x(q,l);return a}function d(c,q){var f;c||(c={});for(f in q)c[f]=q[f];return c}function g(){for(var c=arguments,q=c.length,f=0;f<q;f++){var k=c[f];if("undefined"!==typeof k&&null!==k)return k}}function m(c,q){b.isMS&&!b.svg&&q&&h(q.opacity)&&(q.filter="alpha(opacity=".concat(100*q.opacity,")"));d(c.style,
15
+ q)}function n(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))}function G(c,q){return 1E14<c?c:parseFloat(c.toPrecision(q||14))}function J(c,q,k){var H=b.getStyle||J;if("width"===q)return q=Math.min(c.offsetWidth,c.scrollWidth),k=c.getBoundingClientRect&&c.getBoundingClientRect().width,k<q&&k>=q-1&&(q=Math.floor(k)),Math.max(0,q-(H(c,"padding-left",!0)||0)-(H(c,"padding-right",!0)||0));if("height"===q)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(H(c,"padding-top",!0)||0)-(H(c,
16
+ "padding-bottom",!0)||0));f.getComputedStyle||e(27,!0);if(c=f.getComputedStyle(c,void 0)){var a=c.getPropertyValue(q);g(k,"opacity"!==q)&&(a=B(a))}return a}function x(c,q,f){for(var k in c)Object.hasOwnProperty.call(c,k)&&q.call(f||c[k],c[k],k,c)}function C(c,q,f){function k(q,f){var k=c.removeEventListener||b.removeEventListenerPolyfill;k&&k.call(c,q,f,!1)}function a(f){var H;if(c.nodeName){if(q){var a={};a[q]=!0}else a=f;x(a,function(c,q){if(f[q])for(H=f[q].length;H--;)k(q,f[q][H].fn)})}}var l=
17
+ "function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(l,"hcEvents")){var E=l.hcEvents;q?(l=E[q]||[],f?(E[q]=l.filter(function(c){return f!==c.fn}),k(q,f)):(a(E),E[q]=[])):(a(E),delete l.hcEvents)}}function u(c,q,f,k){f=f||{};if(A.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==b)){var H=A.createEvent("Events");H.initEvent(q,!0,!0);f=d(H,f);c.dispatchEvent?c.dispatchEvent(f):c.fireEvent(q,f)}else if(c.hcEvents){f.target||d(f,{preventDefault:function(){f.defaultPrevented=!0},target:c,
18
+ type:q});H=[];for(var a=c,l=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[q]&&(H.length&&(l=!0),H.unshift.apply(H,a.hcEvents[q])),a=Object.getPrototypeOf(a);l&&H.sort(function(c,f){return c.order-f.order});H.forEach(function(q){!1===q.fn.call(c,f)&&f.preventDefault()})}k&&!f.defaultPrevented&&k.call(c,f)}var l=b.charts,A=b.doc,f=b.win;(e||(e={})).messages=[];Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var w=Array.prototype.find?function(c,f){return c.find(f)}:
19
+ function(c,f){var q,k=c.length;for(q=0;q<k;q++)if(f(c[q],q))return c[q]};x({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,f){b[f]=function(q){var k;e(32,!1,void 0,(k={},k["Highcharts.".concat(f)]="use Array.".concat(c),k));return Array.prototype[c].apply(q,[].slice.call(arguments,1))}});var k,D=function(){var c=Math.random().toString(36).substring(2,9)+"-",f=0;return function(){return"highcharts-"+(k?"":c)+f++}}();f.jQuery&&(f.jQuery.fn.highcharts=function(){var c=
20
+ [].slice.call(arguments);if(this[0])return c[0]?(new (b[v(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):l[a(this[0],"data-highcharts-chart")]});w={addEvent:function(c,f,k,H){void 0===H&&(H={});var q="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(q,"hcEvents")||(q.hcEvents={});q=q.hcEvents;b.Point&&c instanceof b.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var a=c.addEventListener||b.addEventListenerPolyfill;a&&a.call(c,f,k,b.supportsPassiveEvents?{passive:void 0===
21
+ H.passive?-1!==f.indexOf("touch"):H.passive,capture:!1}:!1);q[f]||(q[f]=[]);q[f].push({fn:k,order:"number"===typeof H.order?H.order:Infinity});q[f].sort(function(c,f){return c.order-f.order});return function(){C(c,f,k)}},arrayMax:function(c){for(var f=c.length,k=c[0];f--;)c[f]>k&&(k=c[f]);return k},arrayMin:function(c){for(var f=c.length,k=c[0];f--;)c[f]<k&&(k=c[f]);return k},attr:a,clamp:function(c,f,k){return c>f?c<k?c:k:f},cleanRecursively:y,clearTimeout:function(c){h(c)&&clearTimeout(c)},correctFloat:G,
22
+ createElement:function(c,f,k,H,a){c=A.createElement(c);f&&d(c,f);a&&m(c,{padding:"0",border:"none",margin:"0"});k&&m(c,k);H&&H.appendChild(c);return c},css:m,defined:h,destroyObjectProperties:function(c,f){x(c,function(k,q){k&&k!==f&&k.destroy&&k.destroy();delete c[q]})},discardElement:function(c){c&&c.parentElement&&c.parentElement.removeChild(c)},erase:function(c,f){for(var k=c.length;k--;)if(c[k]===f){c.splice(k,1);break}},error:e,extend:d,extendClass:function(c,f){var k=function(){};k.prototype=
23
+ new c;d(k.prototype,f);return k},find:w,fireEvent:u,getMagnitude:n,getNestedProperty:function(c,k){for(c=c.split(".");c.length&&h(k);){var q=c.shift();if("undefined"===typeof q||"__proto__"===q)return;k=k[q];if(!h(k)||"function"===typeof k||"number"===typeof k.nodeType||k===f)return}return k},getStyle:J,inArray:function(c,f,k){e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return f.indexOf(c,k)},isArray:t,isClass:r,isDOMElement:z,isFunction:function(c){return"function"===typeof c},isNumber:p,
24
+ isObject:F,isString:v,keys:function(c){e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,f=arguments,k={},H=function(c,f){"object"!==typeof c&&(c={});x(f,function(k,q){"__proto__"!==q&&"constructor"!==q&&(!F(k,!0)||r(k)||z(k)?c[q]=f[q]:c[q]=H(c[q]||{},k))});return c};!0===f[0]&&(k=f[1],f=Array.prototype.slice.call(f,2));var a=f.length;for(c=0;c<a;c++)k=H(k,f[c]);return k},normalizeTickInterval:function(c,f,k,H,a){var q=c;k=g(k,n(c));var l=c/k;f||(f=
25
+ a?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===H&&(1===k?f=f.filter(function(c){return 0===c%1}):.1>=k&&(f=[1/k])));for(H=0;H<f.length&&!(q=f[H],a&&q*k>=c||!a&&l<=(f[H]+(f[H+1]||f[H]))/2);H++);return q=G(q*k,-Math.round(Math.log(.001)/Math.LN10))},objectEach:x,offset:function(c){var k=A.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(f.pageYOffset||k.scrollTop)-(k.clientTop||0),left:c.left+(f.pageXOffset||k.scrollLeft)-
26
+ (k.clientLeft||0),width:c.width,height:c.height}},pad:function(c,f,k){return Array((f||2)+1-String(c).replace("-","").length).join(k||"0")+c},pick:g,pInt:B,relativeLength:function(c,f,k){return/%$/.test(c)?f*parseFloat(c)/100+(k||0):parseFloat(c)},removeEvent:C,splat:function(c){return t(c)?c:[c]},stableSort:function(c,f){var k=c.length,q,a;for(a=0;a<k;a++)c[a].safeI=a;c.sort(function(c,k){q=f(c,k);return 0===q?c.safeI-k.safeI:q});for(a=0;a<k;a++)delete c[a].safeI},syncTimeout:function(c,f,k){if(0<
27
+ f)return setTimeout(c,f,k);c.call(0,k);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:D,useSerialIds:function(c){return k=g(c,k)},wrap:function(c,f,k){var q=c[f];c[f]=function(){var c=Array.prototype.slice.call(arguments),f=arguments,a=this;a.proceed=function(){q.apply(a,arguments.length?arguments:f)};c.unshift(q);c=k.apply(this,c);a.proceed=null;return c}}};"";return w});I(e,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,
28
+ panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});I(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],
29
+ function(b,e){var K=e.isNumber,B=e.merge,v=e.pInt;e=function(){function e(F){this.rgba=[NaN,NaN,NaN,NaN];this.input=F;var z=b.Color;if(z&&z!==e)return new z(F);if(!(this instanceof e))return new e(F);this.init(F)}e.parse=function(b){return b?new e(b):e.None};e.prototype.init=function(b){var z;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(a){return new e(a[1])});else if("string"===typeof b){this.input=b=e.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var r=
30
+ b.length;var p=parseInt(b.substr(1),16);7===r?z=[(p&16711680)>>16,(p&65280)>>8,p&255,1]:4===r&&(z=[(p&3840)>>4|(p&3840)>>8,(p&240)>>4|p&240,(p&15)<<4|p&15,1])}if(!z)for(p=e.parsers.length;p--&&!z;){var h=e.parsers[p];(r=h.regex.exec(b))&&(z=h.parse(r))}}z&&(this.rgba=z)};e.prototype.get=function(b){var z=this.input,r=this.rgba;if("object"===typeof z&&"undefined"!==typeof this.stops){var p=B(z);p.stops=[].slice.call(p.stops);this.stops.forEach(function(h,a){p.stops[a]=[p.stops[a][0],h.get(b)]});return p}return r&&
31
+ K(r[0])?"rgb"===b||!b&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===b?"".concat(r[3]):"rgba("+r.join(",")+")":z};e.prototype.brighten=function(b){var z=this.rgba;if(this.stops)this.stops.forEach(function(p){p.brighten(b)});else if(K(b)&&0!==b)for(var r=0;3>r;r++)z[r]+=v(255*b),0>z[r]&&(z[r]=0),255<z[r]&&(z[r]=255);return this};e.prototype.setOpacity=function(b){this.rgba[3]=b;return this};e.prototype.tweenTo=function(b,z){var r=this.rgba,p=b.rgba;if(!K(r[0])||!K(p[0]))return b.input||"none";b=
32
+ 1!==p[3]||1!==r[3];return(b?"rgba(":"rgb(")+Math.round(p[0]+(r[0]-p[0])*(1-z))+","+Math.round(p[1]+(r[1]-p[1])*(1-z))+","+Math.round(p[2]+(r[2]-p[2])*(1-z))+(b?","+(p[3]+(r[3]-p[3])*(1-z)):"")+")"};e.names={white:"#ffffff",black:"#000000"};e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(b){return[v(b[1]),v(b[2]),v(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[v(b[1]),
33
+ v(b[2]),v(b[3]),1]}}];e.None=new e("");return e}();"";return e});I(e,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});I(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var K=b.win,B=e.defined,v=e.error,t=e.extend,F=e.isObject,z=e.merge,r=e.objectEach,p=e.pad,h=e.pick,a=e.splat,d=e.timeUnits,g=b.isSafari&&K.Intl&&K.Intl.DateTimeFormat.prototype.formatRange,m=b.isSafari&&
34
+ K.Intl&&!K.Intl.DateTimeFormat.prototype.formatRange;e=function(){function n(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=K.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}n.prototype.get=function(a,d){if(this.variableTimezone||this.timezoneOffset){var g=d.getTime(),m=g-this.getTimezoneOffset(d);d.setTime(m);a=d["getUTC"+a]();d.setTime(g);return a}return this.useUTC?d["getUTC"+a]():d["get"+a]()};n.prototype.set=function(a,d,m){if(this.variableTimezone||
35
+ this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(d)%36E5)return d["setUTC"+a](m);var n=this.getTimezoneOffset(d);n=d.getTime()-n;d.setTime(n);d["setUTC"+a](m);a=this.getTimezoneOffset(d);n=d.getTime()+a;return d.setTime(n)}return this.useUTC||g&&"FullYear"===a?d["setUTC"+a](m):d["set"+a](m)};n.prototype.update=function(a){var d=h(a&&a.useUTC,!0);this.options=a=z(!0,this.options||{},a);this.Date=a.Date||K.Date||Date;this.timezoneOffset=(this.useUTC=
36
+ d)&&a.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=d&&!(!a.getTimezoneOffset&&!a.timezone)};n.prototype.makeTime=function(a,d,g,n,u,l){if(this.useUTC){var A=this.Date.UTC.apply(0,arguments);var f=this.getTimezoneOffset(A);A+=f;var w=this.getTimezoneOffset(A);f!==w?A+=w-f:f-36E5!==this.getTimezoneOffset(A-36E5)||m||(A-=36E5)}else A=(new this.Date(a,d,h(g,1),h(n,0),h(u,0),h(l,0))).getTime();return A};n.prototype.timezoneOffsetFunction=function(){var a=
37
+ this,d=this.options,g=d.getTimezoneOffset,m=d.moment||K.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(d.timezone){if(m)return function(a){return 6E4*-m.tz(a,d.timezone).utcOffset()};v(25)}return this.useUTC&&g?function(a){return 6E4*g(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||0)}};n.prototype.dateFormat=function(a,d,g){if(!B(d)||isNaN(d))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=h(a,"%Y-%m-%d %H:%M:%S");
38
+ var m=this,n=new this.Date(d),l=this.get("Hours",n),A=this.get("Day",n),f=this.get("Date",n),w=this.get("Month",n),k=this.get("FullYear",n),D=b.defaultOptions.lang,c=D&&D.weekdays,q=D&&D.shortWeekdays;n=t({a:q?q[A]:c[A].substr(0,3),A:c[A],d:p(f),e:p(f,2," "),w:A,b:D.shortMonths[w],B:D.months[w],m:p(w+1),o:w+1,y:k.toString().substr(2,2),Y:k,H:p(l),k:l,I:p(l%12||12),l:l%12||12,M:p(this.get("Minutes",n)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:p(n.getSeconds()),L:p(Math.floor(d%1E3),3)},b.dateFormats);r(n,
39
+ function(c,f){for(;-1!==a.indexOf("%"+f);)a=a.replace("%"+f,"function"===typeof c?c.call(m,d):c)});return g?a.substr(0,1).toUpperCase()+a.substr(1):a};n.prototype.resolveDTLFormat=function(d){return F(d,!0)?d:(d=a(d),{main:d[0],from:d[1],to:d[2]})};n.prototype.getTimeTicks=function(a,g,m,n){var u=this,l=[],A={},f=new u.Date(g),w=a.unitRange,k=a.count||1,D;n=h(n,1);if(B(g)){u.set("Milliseconds",f,w>=d.second?0:k*Math.floor(u.get("Milliseconds",f)/k));w>=d.second&&u.set("Seconds",f,w>=d.minute?0:k*
40
+ Math.floor(u.get("Seconds",f)/k));w>=d.minute&&u.set("Minutes",f,w>=d.hour?0:k*Math.floor(u.get("Minutes",f)/k));w>=d.hour&&u.set("Hours",f,w>=d.day?0:k*Math.floor(u.get("Hours",f)/k));w>=d.day&&u.set("Date",f,w>=d.month?1:Math.max(1,k*Math.floor(u.get("Date",f)/k)));if(w>=d.month){u.set("Month",f,w>=d.year?0:k*Math.floor(u.get("Month",f)/k));var c=u.get("FullYear",f)}w>=d.year&&u.set("FullYear",f,c-c%k);w===d.week&&(c=u.get("Day",f),u.set("Date",f,u.get("Date",f)-c+n+(c<n?-7:0)));c=u.get("FullYear",
41
+ f);n=u.get("Month",f);var q=u.get("Date",f),E=u.get("Hours",f);g=f.getTime();!u.variableTimezone&&u.useUTC||!B(m)||(D=m-g>4*d.month||u.getTimezoneOffset(g)!==u.getTimezoneOffset(m));g=f.getTime();for(f=1;g<m;)l.push(g),g=w===d.year?u.makeTime(c+f*k,0):w===d.month?u.makeTime(c,n+f*k):!D||w!==d.day&&w!==d.week?D&&w===d.hour&&1<k?u.makeTime(c,n,q,E+f*k):g+w*k:u.makeTime(c,n,q+f*k*(w===d.day?1:7)),f++;l.push(g);w<=d.hour&&1E4>l.length&&l.forEach(function(c){0===c%18E5&&"000000000"===u.dateFormat("%H%M%S%L",
42
+ c)&&(A[c]="day")})}l.info=t(a,{higherRanks:A,totalRange:w*k});return l};n.prototype.getDateFormat=function(a,g,n,m){var u=this.dateFormat("%m-%d %H:%M:%S.%L",g),l={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond";for(f in d){if(a===d.week&&+this.dateFormat("%w",g)===n&&"00:00:00.000"===u.substr(6)){var f="week";break}if(d[f]>a){f=h;break}if(l[f]&&u.substr(l[f])!=="01-01 00:00:00.000".substr(l[f]))break;"week"!==f&&(h=f)}return this.resolveDTLFormat(m[f]).main};return n}();"";return e});
43
+ I(e,"Core/DefaultOptions.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t){e=e.parse;var K=t.merge,z={colors:B.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
44
+ weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},
45
+ labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",
46
+ width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:y.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",
47
+ month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:y.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,
48
+ href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};z.chart.styledMode=!1;"";var r=new v(K(z.global,z.time));b={defaultOptions:z,defaultTime:r,getOptions:function(){return z},setOptions:function(p){K(!0,z,p);if(p.time||p.global)y.time?y.time.update(K(z.global,z.time,p.global,p.time)):y.time=r;return z}};"";return b});I(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],
49
+ e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y){var K=b.parse,v=e.win,t=y.isNumber,F=y.objectEach;return function(){function b(b,p,h){this.pos=NaN;this.options=p;this.elem=b;this.prop=h}b.prototype.dSetter=function(){var b=this.paths,p=b&&b[0];b=b&&b[1];var h=this.now||0,a=[];if(1!==h&&p&&b)if(p.length===b.length&&1>h)for(var d=0;d<b.length;d++){for(var g=p[d],m=b[d],n=[],G=0;G<m.length;G++){var J=g[G],x=m[G];t(J)&&t(x)&&("A"!==m[0]||4!==G&&5!==G)?n[G]=J+h*(x-J):n[G]=x}a.push(n)}else a=
50
+ b;else a=this.toD||[];this.elem.attr("d",a,void 0,!0)};b.prototype.update=function(){var b=this.elem,p=this.prop,h=this.now,a=this.options.step;if(this[p+"Setter"])this[p+"Setter"]();else b.attr?b.element&&b.attr(p,h,null,!0):b.style[p]=h+this.unit;a&&a.call(b,h,this)};b.prototype.run=function(r,p,h){var a=this,d=a.options,g=function(d){return g.stopped?!1:a.step(d)},m=v.requestAnimationFrame||function(a){setTimeout(a,13)},n=function(){for(var a=0;a<b.timers.length;a++)b.timers[a]()||b.timers.splice(a--,
51
+ 1);b.timers.length&&m(n)};r!==p||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=r,this.end=p,this.unit=h,this.now=this.start,this.pos=0,g.elem=this.elem,g.prop=this.prop,g()&&1===b.timers.push(g)&&m(n)):(delete d.curAnim[this.prop],d.complete&&0===Object.keys(d.curAnim).length&&d.complete.call(this.elem))};b.prototype.step=function(b){var p=+new Date,h=this.options,a=this.elem,d=h.complete,g=h.duration,m=h.curAnim;if(a.attr&&!a.element)b=!1;else if(b||p>=g+this.startTime){this.now=
52
+ this.end;this.pos=1;this.update();var n=m[this.prop]=!0;F(m,function(a){!0!==a&&(n=!1)});n&&d&&d.call(a);b=!1}else this.pos=h.easing((p-this.startTime)/g),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b};b.prototype.initPath=function(b,p,h){function a(a,d){for(;a.length<C;){var l=a[0],f=d[C-a.length];f&&"M"===l[0]&&(a[0]="C"===f[0]?["C",l[1],l[2],l[1],l[2],l[1],l[2]]:["L",l[1],l[2]]);a.unshift(l);n&&(l=a.pop(),a.push(a[a.length-1],l))}}function d(a,l){for(;a.length<
53
+ C;)if(l=a[Math.floor(a.length/G)-1].slice(),"C"===l[0]&&(l[1]=l[5],l[2]=l[6]),n){var d=a[Math.floor(a.length/G)].slice();a.splice(a.length/2,0,l,d)}else a.push(l)}var g=b.startX,m=b.endX;h=h.slice();var n=b.isArea,G=n?2:1;p=p&&p.slice();if(!p)return[h,h];if(g&&m&&m.length){for(b=0;b<g.length;b++)if(g[b]===m[0]){var J=b;break}else if(g[0]===m[m.length-g.length+b]){J=b;var x=!0;break}else if(g[g.length-1]===m[m.length-g.length+b]){J=g.length-b;break}"undefined"===typeof J&&(p=[])}if(p.length&&t(J)){var C=
54
+ h.length+J*G;x?(a(p,h),d(h,p)):(a(h,p),d(p,h))}return[p,h]};b.prototype.fillSetter=function(){b.prototype.strokeSetter.apply(this,arguments)};b.prototype.strokeSetter=function(){this.elem.attr(this.prop,K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)};b.timers=[];return b}()});I(e,"Core/Animation/AnimationUtilities.js",[e["Core/Animation/Fx.js"],e["Core/Utilities.js"]],function(b,e){function K(a){return r(a)?p({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function B(a,g){for(var d=b.timers.length;d--;)b.timers[d].elem!==
55
+ a||g&&g!==b.timers[d].prop||(b.timers[d].stopped=!0)}var v=e.defined,t=e.getStyle,F=e.isArray,z=e.isNumber,r=e.isObject,p=e.merge,h=e.objectEach,a=e.pick;return{animate:function(a,g,m){var d,G="",J,x;if(!r(m)){var C=arguments;m={duration:C[2],easing:C[3],complete:C[4]}}z(m.duration)||(m.duration=400);m.easing="function"===typeof m.easing?m.easing:Math[m.easing]||Math.easeInOutSine;m.curAnim=p(g);h(g,function(n,l){B(a,l);x=new b(a,m,l);J=void 0;"d"===l&&F(g.d)?(x.paths=x.initPath(a,a.pathArray,g.d),
56
+ x.toD=g.d,d=0,J=1):a.attr?d=a.attr(l):(d=parseFloat(t(a,l))||0,"opacity"!==l&&(G="px"));J||(J=n);"string"===typeof J&&J.match("px")&&(J=J.replace(/px/g,""));x.run(d,J,G)})},animObject:K,getDeferredAnimation:function(a,g,m){var d=K(g),h=0,b=0;(m?[m]:a.series).forEach(function(a){a=K(a.options.animation);h=g&&v(g.defer)?d.defer:Math.max(h,a.duration+a.defer);b=Math.min(d.duration,a.duration)});a.renderer.forExport&&(h=0);return{defer:Math.max(0,h-b),duration:Math.min(h,b)}},setAnimation:function(d,
57
+ g){g.renderer.globalAnimation=a(d,g.options.chart.animation,!0)},stop:B}});I(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var K=b.SVG_NS,B=e.attr,v=e.createElement,t=e.css,F=e.error,z=e.isFunction,r=e.isString,p=e.objectEach,h=e.splat,a=(e=b.win.trustedTypes)&&z(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(a){return a}}),d=a?a.createHTML(""):"";try{var g=!!(new DOMParser).parseFromString(d,"text/html")}catch(m){g=!1}z=function(){function m(a){this.nodes=
58
+ "string"===typeof a?this.parseMarkup(a):a}m.filterUserAttributes=function(a){p(a,function(d,g){var n=!0;-1===m.allowedAttributes.indexOf(g)&&(n=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(g)&&(n=r(d)&&m.allowedReferences.some(function(a){return 0===d.indexOf(a)}));n||(F(33,!1,void 0,{"Invalid attribute in config":"".concat(g)}),delete a[g])});return a};m.parseStyle=function(a){return a.split(";").reduce(function(a,d){d=d.split(":").map(function(a){return a.trim()});var g=d.shift();
59
+ g&&d.length&&(a[g.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})]=d.join(":"));return a},{})};m.setElementHTML=function(a,d){a.innerHTML=m.emptyHTML;d&&(new m(d)).addToDOM(a)};m.prototype.addToDOM=function(a){function d(a,g){var n;h(a).forEach(function(a){var l=a.tagName,h=a.textContent?b.doc.createTextNode(a.textContent):void 0,f=m.bypassHTMLFiltering;if(l)if("#text"===l)var w=h;else if(-1!==m.allowedTags.indexOf(l)||f){l=b.doc.createElementNS("svg"===l?K:g.namespaceURI||K,l);var k=
60
+ a.attributes||{};p(a,function(a,c){"tagName"!==c&&"attributes"!==c&&"children"!==c&&"style"!==c&&"textContent"!==c&&(k[c]=a)});B(l,f?k:m.filterUserAttributes(k));a.style&&t(l,a.style);h&&l.appendChild(h);d(a.children||[],l);w=l}else F(33,!1,void 0,{"Invalid tagName in config":l});w&&g.appendChild(w);n=w});return n}return d(this.nodes,a)};m.prototype.parseMarkup=function(d){var n=[];d=d.trim().replace(/ style=(["'])/g," data-style=$1");if(g)d=(new DOMParser).parseFromString(a?a.createHTML(d):d,"text/html");
61
+ else{var h=v("div");h.innerHTML=d;d={body:h}}var x=function(a,d){var l=a.nodeName.toLowerCase(),g={tagName:l};"#text"===l&&(g.textContent=a.textContent||"");if(l=a.attributes){var f={};[].forEach.call(l,function(a){"data-style"===a.name?g.style=m.parseStyle(a.value):f[a.name]=a.value});g.attributes=f}if(a.childNodes.length){var w=[];[].forEach.call(a.childNodes,function(a){x(a,w)});w.length&&(g.children=w)}d.push(g)};[].forEach.call(d.body.childNodes,function(a){return x(a,n)});return n};m.allowedAttributes=
62
+ "aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
63
+ m.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");m.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead tbody tspan td th tr u ul #text".split(" ");m.emptyHTML=d;m.bypassHTMLFiltering=!1;return m}();"";return z});
64
+ I(e,"Core/FormatUtilities.js",[e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e){function K(b,h,a,d){b=+b||0;h=+h;var g=B.lang,m=(b.toString().split(".")[1]||"").split("e")[0].length,n=b.toString().split("e"),G=h;if(-1===h)h=Math.min(m,20);else if(!F(h))h=2;else if(h&&n[1]&&0>n[1]){var p=h+ +n[1];0<=p?(n[0]=(+n[0]).toExponential(p).split("e")[0],h=p):(n[0]=n[0].split(".")[0]||0,b=20>h?(n[0]*Math.pow(10,n[1])).toFixed(h):0,n[1]=0)}p=(Math.abs(n[1]?n[0]:b)+Math.pow(10,-Math.max(h,m)-
65
+ 1)).toFixed(h);m=String(r(p));var x=3<m.length?m.length%3:0;a=z(a,g.decimalPoint);d=z(d,g.thousandsSep);b=(0>b?"-":"")+(x?m.substr(0,x)+d:"");b=0>+n[1]&&!G?"0":b+m.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+d);h&&(b+=a+p.slice(-h));n[1]&&0!==+b&&(b+="e"+n[1]);return b}var B=b.defaultOptions,v=b.defaultTime,t=e.getNestedProperty,F=e.isNumber,z=e.pick,r=e.pInt;return{dateFormat:function(b,h,a){return v.dateFormat(b,h,a)},format:function(b,h,a){var d="{",g=!1,m=/f$/,n=/\.([0-9])/,G=B.lang,p=a&&a.time||
66
+ v;a=a&&a.numberFormatter||K;for(var x=[];b;){var C=b.indexOf(d);if(-1===C)break;var u=b.slice(0,C);if(g){u=u.split(":");d=t(u.shift()||"",h);if(u.length&&"number"===typeof d)if(u=u.join(":"),m.test(u)){var l=parseInt((u.match(n)||["","-1"])[1],10);null!==d&&(d=a(d,l,G.decimalPoint,-1<u.indexOf(",")?G.thousandsSep:""))}else d=p.dateFormat(u,d);x.push(d)}else x.push(u);b=b.slice(C+1);d=(g=!g)?"}":"{"}x.push(b);return x.join("")},numberFormat:K}});I(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],
67
+ function(b){var e=b.clamp,y=b.pick,B=b.stableSort,v;(function(b){function t(b,r,p){var h=b,a=h.reducedLen||r,d=function(a,d){return(d.rank||0)-(a.rank||0)},g=function(a,d){return a.target-d.target},m,n=!0,G=[],J=0;for(m=b.length;m--;)J+=b[m].size;if(J>a){B(b,d);for(J=m=0;J<=a;)J+=b[m].size,m++;G=b.splice(m-1,b.length)}B(b,g);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});n;){for(m=b.length;m--;)a=b[m],d=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/
68
+ 2,a.pos=e(d-a.size*a.align,0,r-a.size);m=b.length;for(n=!1;m--;)0<m&&b[m-1].pos+b[m-1].size>b[m].pos&&(b[m-1].size+=b[m].size,b[m-1].targets=b[m-1].targets.concat(b[m].targets),b[m-1].align=.5,b[m-1].pos+b[m-1].size>r&&(b[m-1].pos=r-b[m-1].size),b.splice(m,1),n=!0)}h.push.apply(h,G);m=0;b.some(function(a){var d=0;return(a.targets||[]).some(function(){h[m].pos=a.pos+d;if("undefined"!==typeof p&&Math.abs(h[m].pos-h[m].target)>p)return h.slice(0,m+1).forEach(function(a){return delete a.pos}),h.reducedLen=
69
+ (h.reducedLen||r)-.1*r,h.reducedLen>.1*r&&t(h,r,p),!0;d+=h[m].size;m++;return!1})});B(h,g);return h}b.distribute=t})(v||(v={}));return v});I(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=b.animate,t=b.animObject,K=b.stop,z=y.deg2rad,r=y.doc,p=y.svg,h=y.SVG_NS,a=y.win,d=B.addEvent,g=B.attr,m=B.createElement,n=B.css,G=B.defined,J=B.erase,x=B.extend,C=B.fireEvent,u=B.isArray,
70
+ l=B.isFunction,A=B.isString,f=B.merge,w=B.objectEach,k=B.pick,D=B.pInt,c=B.syncTimeout,q=B.uniqueKey;b=function(){function E(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=h;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}E.prototype._defaultGetter=function(c){c=k(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};E.prototype._defaultSetter=
71
+ function(c,a,f){f.setAttribute(a,c)};E.prototype.add=function(c){var a=this.renderer,f=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&a.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var k=this.zIndexSetter();k||(c?c.element:a.box).appendChild(f);if(this.onAdd)this.onAdd();return this};E.prototype.addClass=function(c,a){var f=a?"":this.attr("class")||"";c=(c||"").split(/ /g).reduce(function(c,a){-1===
72
+ f.indexOf(a)&&c.push(a);return c},f?[f]:[]).join(" ");c!==f&&this.attr("class",c);return this};E.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};E.prototype.align=function(c,a,f){var q={},d=this.renderer,l=d.alignedObjects,H,g,w;if(c){if(this.alignOptions=c,this.alignByTranslate=a,!f||A(f))this.alignTo=H=f||"renderer",J(l,this),l.push(this),f=void 0}else c=this.alignOptions,a=this.alignByTranslate,H=this.alignTo;f=k(f,d[H],"scrollablePlotBox"===H?
73
+ d.plotBox:void 0,d);H=c.align;var D=c.verticalAlign;d=(f.x||0)+(c.x||0);l=(f.y||0)+(c.y||0);"right"===H?g=1:"center"===H&&(g=2);g&&(d+=(f.width-(c.width||0))/g);q[a?"translateX":"x"]=Math.round(d);"bottom"===D?w=1:"middle"===D&&(w=2);w&&(l+=(f.height-(c.height||0))/w);q[a?"translateY":"y"]=Math.round(l);this[this.placed?"animate":"attr"](q);this.placed=!0;this.alignAttr=q;return this};E.prototype.alignSetter=function(c){var a={left:"start",center:"middle",right:"end"};a[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",
74
+ a[c]))};E.prototype.animate=function(a,f,q){var d=this,l=t(k(f,this.renderer.globalAnimation,!0));f=l.defer;k(r.hidden,r.msHidden,r.webkitHidden,!1)&&(l.duration=0);0!==l.duration?(q&&(l.complete=q),c(function(){d.element&&v(d,a,l)},f)):(this.attr(a,void 0,q||l.complete),w(a,function(c,a){l.step&&l.step.call(this,c,{prop:a,pos:1,elem:this})},this));return this};E.prototype.applyTextOutline=function(c){var a=this.element;-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(a.style.fill)));
75
+ var f=c.split(" ");c=f[f.length-1];if((f=f[0])&&"none"!==f&&y.svg){this.fakeTS=!0;this.ySetter=this.xSetter;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(c,a,f){return 2*Number(a)+f});this.removeTextOutline();var k=r.createElementNS(h,"tspan");g(k,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":f,"stroke-linejoin":"round"});c=a.querySelector("textPath")||a;[].forEach.call(c.childNodes,function(c){var a=c.cloneNode(!0);a.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(c){return a.removeAttribute(c)});
76
+ k.appendChild(a)});var q=0;[].forEach.call(c.querySelectorAll("text tspan"),function(c){q+=Number(c.getAttribute("dy"))});f=r.createElementNS(h,"tspan");f.textContent="\u200b";g(f,{x:Number(a.getAttribute("x")),dy:-q});k.appendChild(f);c.insertBefore(k,c.firstChild)}};E.prototype.attr=function(c,a,f,k){var q=this.element,d=this.symbolCustomAttribs,l,g=this,H,D;if("string"===typeof c&&"undefined"!==typeof a){var m=c;c={};c[m]=a}"string"===typeof c?g=(this[c+"Getter"]||this._defaultGetter).call(this,
77
+ c,q):(w(c,function(a,f){H=!1;k||K(this,f);this.symbolName&&-1!==d.indexOf(f)&&(l||(this.symbolAttr(c),l=!0),H=!0);!this.rotation||"x"!==f&&"y"!==f||(this.doTransform=!0);H||(D=this[f+"Setter"]||this._defaultSetter,D.call(this,a,f,q),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f)&&this.updateShadows(f,a,D))},this),this.afterSetters());f&&f.call(this);return g};E.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+
78
+ ")":"none")};E.prototype.crisp=function(c,a){a=a||c.strokeWidth||0;var f=Math.round(a)%2/2;c.x=Math.floor(c.x||this.x||0)+f;c.y=Math.floor(c.y||this.y||0)+f;c.width=Math.floor((c.width||this.width||0)-2*f);c.height=Math.floor((c.height||this.height||0)-2*f);G(c.strokeWidth)&&(c.strokeWidth=a);return c};E.prototype.complexColor=function(c,a,k){var d=this.renderer,l,g,H,D,m,n,E,h,b,A,x=[],p;C(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?g="radialGradient":c.linearGradient&&
79
+ (g="linearGradient");if(g){H=c[g];m=d.gradients;n=c.stops;b=k.radialReference;u(H)&&(c[g]=H={x1:H[0],y1:H[1],x2:H[2],y2:H[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===g&&b&&!G(H.gradientUnits)&&(D=H,H=f(H,d.getRadialAttr(b,D),{gradientUnits:"userSpaceOnUse"}));w(H,function(c,a){"id"!==a&&x.push(a,c)});w(n,function(c){x.push(c)});x=x.join(",");if(m[x])A=m[x].attr("id");else{H.id=A=q();var P=m[x]=d.createElement(g).attr(H).add(d.defs);P.radAttr=D;P.stops=[];n.forEach(function(c){0===c[1].indexOf("rgba")?
80
+ (l=e.parse(c[1]),E=l.get("rgb"),h=l.get("a")):(E=c[1],h=1);c=d.createElement("stop").attr({offset:c[0],"stop-color":E,"stop-opacity":h}).add(P);P.stops.push(c)})}p="url("+d.url+"#"+A+")";k.setAttribute(a,p);k.gradient=x;c.toString=function(){return p}}})};E.prototype.css=function(c){var a=this.styles,k={},q=this.element,d=!a;c.color&&(c.fill=c.color);a&&w(c,function(c,f){a&&a[f]!==c&&(k[f]=c,d=!0)});if(d){a&&(c=x(a,k));if(null===c.width||"auto"===c.width)delete this.textWidth;else if("text"===q.nodeName.toLowerCase()&&
81
+ c.width)var l=this.textWidth=D(c.width);this.styles=c;l&&!p&&this.renderer.forExport&&delete c.width;var g=f(c);q.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return g&&delete g[c]});n(q,g);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};E.prototype.dashstyleSetter=function(c){var a=this["stroke-width"];"inherit"===a&&(a=1);if(c=c&&c.toLowerCase()){var f=c.replace("shortdashdotdot",
82
+ "3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=f.length;c--;)f[c]=""+D(f[c])*k(a,NaN);c=f.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};E.prototype.destroy=function(){var c=this,a=c.element||{},f=c.renderer,k=a.ownerSVGElement,q=f.isSVG&&"SPAN"===a.nodeName&&c.parentGroup||void 0;a.onclick=a.onmouseout=
83
+ a.onmouseover=a.onmousemove=a.point=null;K(c);if(c.clipPath&&k){var d=c.clipPath;[].forEach.call(k.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(d.element.id)&&c.removeAttribute("clip-path")});c.clipPath=d.destroy()}if(c.stops){for(k=0;k<c.stops.length;k++)c.stops[k].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(a);for(f.styledMode||c.destroyShadows();q&&q.div&&0===q.div.childNodes.length;)a=q.parentGroup,c.safeRemoveChild(q.div),delete q.div,
84
+ q=a;c.alignTo&&J(f.alignedObjects,c);w(c,function(a,f){c[f]&&c[f].parentGroup===c&&c[f].destroy&&c[f].destroy();delete c[f]})};E.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};E.prototype.dSetter=function(c,a,f){u(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,a,f){return a&&a.join?(f?c+" ":"")+a.join(" "):(a||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");
85
+ this[a]!==c&&(f.setAttribute(a,c),this[a]=c)};E.prototype.fadeOut=function(c){var a=this;a.animate({opacity:0},{duration:k(c,150),complete:function(){a.hide()}})};E.prototype.fillSetter=function(c,a,f){"string"===typeof c?f.setAttribute(a,c):c&&this.complexColor(c,a,f)};E.prototype.getBBox=function(c,a){var f=this.alignValue,q=this.element,d=this.renderer,g=this.styles,D=this.textStr,w=d.cache,m=d.cacheKeys,H=q.namespaceURI===this.SVG_NS;a=k(a,this.rotation,0);var h=d.styledMode?q&&E.prototype.getStyle.call(q,
86
+ "font-size"):g&&g.fontSize,u;if(G(D)){var b=D.toString();-1===b.indexOf("<")&&(b=b.replace(/[0-9]/g,"0"));b+=["",a,h,this.textWidth,f,g&&g.textOverflow,g&&g.fontWeight].join()}b&&!c&&(u=w[b]);if(!u){if(H||d.forExport){try{var A=this.fakeTS&&function(c){var a=q.querySelector(".highcharts-text-outline");a&&n(a,{display:c})};l(A)&&A("none");u=q.getBBox?x({},q.getBBox()):{width:q.offsetWidth,height:q.offsetHeight,x:0,y:0};l(A)&&A("")}catch(T){""}if(!u||0>u.width)u={x:0,y:0,width:0,height:0}}else u=this.htmlGetBBox();
87
+ if(d.isSVG&&(d=u.width,c=u.height,H&&(u.height=c={"11px,17":14,"13px,20":16}[""+(h||"")+",".concat(Math.round(c))]||c),a)){H=Number(q.getAttribute("y")||0)-u.y;f={right:1,center:.5}[f||0]||0;g=a*z;h=(a-90)*z;var C=d*Math.cos(g);a=d*Math.sin(g);A=Math.cos(h);g=Math.sin(h);d=u.x+f*(d-C)+H*A;h=d+C;A=h-c*A;C=A-C;H=u.y+H-f*a+H*g;f=H+a;c=f-c*g;a=c-a;u.x=Math.min(d,h,A,C);u.y=Math.min(H,f,c,a);u.width=Math.max(d,h,A,C)-u.x;u.height=Math.max(H,f,c,a)-u.y}if(b&&(""===D||0<u.height)){for(;250<m.length;)delete w[m.shift()];
88
+ w[b]||m.push(b);w[b]=u}}return u};E.prototype.getStyle=function(c){return a.getComputedStyle(this.element||this,"").getPropertyValue(c)};E.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};E.prototype.hide=function(){return this.attr({visibility:"hidden"})};E.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};E.prototype.init=function(c,a){this.element="span"===a?m(a):r.createElementNS(this.SVG_NS,a);this.renderer=c;C(this,"afterInit")};E.prototype.invert=
89
+ function(c){this.inverted=c;this.updateTransform();return this};E.prototype.on=function(c,a){var f=this.onEvents;if(f[c])f[c]();f[c]=d(this.element,c,a);return this};E.prototype.opacitySetter=function(c,a,f){this.opacity=c=Number(Number(c).toFixed(3));f.setAttribute(a,c)};E.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(A(c)?new RegExp("(^| )".concat(c,"( |$)")):c," ").replace(/ +/g," ").trim())};E.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");
90
+ c&&this.safeRemoveChild(c)};E.prototype.safeRemoveChild=function(c){var a=c.parentNode;a&&a.removeChild(c)};E.prototype.setRadialReference=function(c){var a=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;a&&a.radAttr&&a.animate(this.renderer.getRadialAttr(c,a.radAttr));return this};E.prototype.setTextPath=function(c,a){var k=this;a=f(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},a);var l=this.renderer.url,g=this.text||
91
+ this,D=g.textPath,w=a.attributes,m=a.enabled;c=c||D&&D.path;D&&D.undo();c&&m?(a=d(g,"afterModifyTree",function(a){if(c&&m){var f=c.attr("id");f||c.attr("id",f=q());var d={x:0,y:0};G(w.dx)&&(d.dx=w.dx,delete w.dx);G(w.dy)&&(d.dy=w.dy,delete w.dy);g.attr(d);k.attr({transform:""});k.box&&(k.box=k.box.destroy());d=a.nodes.slice(0);a.nodes.length=0;a.nodes[0]={tagName:"textPath",attributes:x(w,{"text-anchor":w.textAnchor,href:""+l+"#".concat(f)}),children:d}}}),g.textPath={path:c,undo:a}):(g.attr({dx:0,
92
+ dy:0}),delete g.textPath);this.added&&(g.textCache="",this.renderer.buildText(g));return this};E.prototype.shadow=function(c,a,f){var k=[],q=this.element,d=this.oldShadowOptions,l={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},D=!1,m;!0===c?m=l:"object"===typeof c&&(m=x(l,c));m&&(m&&d&&w(m,function(c,a){c!==d[a]&&(D=!0)}),D&&this.destroyShadows(),this.oldShadowOptions=m);if(!m)this.destroyShadows();else if(!this.shadows){var n=m.opacity/m.width;
93
+ var h=this.parentInverted?"translate(".concat(m.offsetY,", ").concat(m.offsetX,")"):"translate(".concat(m.offsetX,", ").concat(m.offsetY,")");for(l=1;l<=m.width;l++){var E=q.cloneNode(!1);var u=2*m.width+1-2*l;g(E,{stroke:c.color||"#000000","stroke-opacity":n*l,"stroke-width":u,transform:h,fill:"none"});E.setAttribute("class",(E.getAttribute("class")||"")+" highcharts-shadow");f&&(g(E,"height",Math.max(g(E,"height")-u,0)),E.cutHeight=u);a?a.element.appendChild(E):q.parentNode&&q.parentNode.insertBefore(E,
94
+ q);k.push(E)}this.shadows=k}return this};E.prototype.show=function(c){void 0===c&&(c=!0);return this.attr({visibility:c?"inherit":"visible"})};E.prototype.strokeSetter=function(c,a,f){this[a]=c;this.stroke&&this["stroke-width"]?(E.prototype.fillSetter.call(this,this.stroke,"stroke",f),f.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===a&&0===c&&this.hasStroke?(f.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(f.setAttribute("stroke-width",
95
+ this["stroke-width"]),this.hasStroke=!0)};E.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),a=0;if(c.indexOf("px")===c.length-2)a=D(c);else if(""!==c){var f=r.createElementNS(h,"rect");g(f,{width:c,"stroke-width":0});this.element.parentNode.appendChild(f);a=f.getBBox().width;f.parentNode.removeChild(f)}return a};E.prototype.symbolAttr=function(c){var a=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(f){a[f]=
96
+ k(c[f],a[f])});a.attr({d:a.renderer.symbols[a.symbolName](a.x,a.y,a.width,a.height,a)})};E.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};E.prototype.titleSetter=function(c){var a=this.element,f=a.getElementsByTagName("title")[0]||r.createElementNS(this.SVG_NS,"title");a.insertBefore?a.insertBefore(f,a.firstChild):a.appendChild(f);f.textContent=String(k(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,
97
+ ">")};E.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};E.prototype.translate=function(c,a){return this.attr({translateX:c,translateY:a})};E.prototype.updateShadows=function(c,a,f){var k=this.shadows;if(k)for(var q=k.length;q--;)f.call(k[q],"height"===c?Math.max(a-(k[q].cutHeight||0),0):"d"===c?this.d:a,c,k[q])};E.prototype.updateTransform=function(){var c=this.scaleX,a=this.scaleY,f=this.inverted,q=this.rotation,d=this.matrix,l=this.element,g=this.translateX||
98
+ 0,m=this.translateY||0;f&&(g+=this.width,m+=this.height);g=["translate("+g+","+m+")"];G(d)&&g.push("matrix("+d.join(",")+")");f?g.push("rotate(90) scale(-1,1)"):q&&g.push("rotate("+q+" "+k(this.rotationOriginX,l.getAttribute("x"),0)+" "+k(this.rotationOriginY,l.getAttribute("y")||0)+")");(G(c)||G(a))&&g.push("scale("+k(c,1)+" "+k(a,1)+")");g.length&&!(this.text||this).textPath&&l.setAttribute("transform",g.join(" "))};E.prototype.visibilitySetter=function(c,a,f){"inherit"===c?f.removeAttribute(a):
99
+ this[a]!==c&&f.setAttribute(a,c);this[a]=c};E.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};E.prototype.zIndexSetter=function(c,a){var f=this.renderer,k=this.parentGroup,q=(k||f).element||f.box,d=this.element;f=q===f.box;var l=!1;var g=this.added;var m;G(c)?(d.setAttribute("data-z-index",c),c=+c,this[a]===c&&(g=!1)):G(this[a])&&d.removeAttribute("data-z-index");this[a]=c;if(g){(c=this.zIndex)&&k&&(k.handleZ=!0);a=
100
+ q.childNodes;for(m=a.length-1;0<=m&&!l;m--){k=a[m];g=k.getAttribute("data-z-index");var w=!G(g);if(k!==d)if(0>c&&w&&!f&&!m)q.insertBefore(d,a[m]),l=!0;else if(D(g)<=c||w&&(!G(c)||0<=c))q.insertBefore(d,a[m+1]||null),l=!0}l||(q.insertBefore(d,a[f?3:0]||null),l=!0)}return l};return E}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=
101
+ b.prototype.scaleXSetter=b.prototype.scaleYSetter=b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,a){this[a]=c;this.doTransform=!0};"";return b});I(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(b){var e;(function(e){e.rendererTypes={};var K;e.getRendererType=function(b){void 0===b&&(b=K);return e.rendererTypes[b]||e.rendererTypes[K]};e.registerRendererType=function(v,t,F){e.rendererTypes[v]=t;if(!K||F)K=v,b.Renderer=t}})(e||
102
+ (e={}));return e});I(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e){var K=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var d in g)g.hasOwnProperty(d)&&(a[d]=g[d])};return b(h,a)};return function(h,a){function d(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),B=e.defined,
103
+ v=e.extend,t=e.isNumber,F=e.merge,z=e.pick,r=e.removeEvent;return function(p){function h(a,d,g,m,n,b,J,x,C,u){var l=p.call(this)||this;l.paddingLeftSetter=l.paddingSetter;l.paddingRightSetter=l.paddingSetter;l.init(a,"g");l.textStr=d;l.x=g;l.y=m;l.anchorX=b;l.anchorY=J;l.baseline=C;l.className=u;l.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label");u&&l.addClass("highcharts-"+u);l.text=a.text(void 0,0,0,x).attr({zIndex:1});var A;"string"===typeof n&&((A=/^url\((.*?)\)$/.test(n))||l.renderer.symbols[n])&&
104
+ (l.symbolKey=n);l.bBox=h.emptyBBox;l.padding=3;l.baselineOffset=0;l.needsBox=a.styledMode||A;l.deferredAttr={};l.alignFactor=0;return l}K(h,p);h.prototype.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==this.alignFactor&&(this.alignFactor=a,this.bBox&&t(this.xSetting)&&this.attr({x:this.xSetting}))};h.prototype.anchorXSetter=function(a,d){this.anchorX=a;this.boxAttr(d,Math.round(a)-this.getCrispAdjust()-this.xSetting)};h.prototype.anchorYSetter=function(a,d){this.anchorY=a;this.boxAttr(d,
105
+ a-this.ySetting)};h.prototype.boxAttr=function(a,d){this.box?this.box.attr(a,d):this.deferredAttr[a]=d};h.prototype.css=function(a){if(a){var d={};a=F(a);h.textProps.forEach(function(g){"undefined"!==typeof a[g]&&(d[g]=a[g],delete a[g])});this.text.css(d);var g="width"in d;"fontSize"in d||"fontWeight"in d?this.updateTextPadding():g&&this.updateBoxSize()}return b.prototype.css.call(this,a)};h.prototype.destroy=function(){r(this.element,"mouseenter");r(this.element,"mouseleave");this.text&&this.text.destroy();
106
+ this.box&&(this.box=this.box.destroy());b.prototype.destroy.call(this)};h.prototype.fillSetter=function(a,d){a&&(this.needsBox=!0);this.fill=a;this.boxAttr(d,a)};h.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var a=this.padding,d=z(this.paddingLeft,a);return{width:this.width,height:this.height,x:this.bBox.x-d,y:this.bBox.y-a}};h.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?
107
+ parseInt(this["stroke-width"],10):0)%2/2};h.prototype.heightSetter=function(a){this.heightSetting=a};h.prototype.onAdd=function(){var a=this.textStr;this.text.add(this);this.attr({text:B(a)?a:"",x:this.x,y:this.y});this.box&&B(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};h.prototype.paddingSetter=function(a,d){t(a)?a!==this[d]&&(this[d]=a,this.updateTextPadding()):this[d]=void 0};h.prototype.rSetter=function(a,d){this.boxAttr(d,a)};h.prototype.shadow=function(a){a&&!this.renderer.styledMode&&
108
+ (this.updateBoxSize(),this.box&&this.box.shadow(a));return this};h.prototype.strokeSetter=function(a,d){this.stroke=a;this.boxAttr(d,a)};h.prototype["stroke-widthSetter"]=function(a,d){a&&(this.needsBox=!0);this["stroke-width"]=a;this.boxAttr(d,a)};h.prototype["text-alignSetter"]=function(a){this.textAlign=a};h.prototype.textSetter=function(a){"undefined"!==typeof a&&this.text.attr({text:a});this.updateTextPadding()};h.prototype.updateBoxSize=function(){var a=this.text,d=a.element.style,g={},m=this.padding,
109
+ n=this.bBox=t(this.widthSetting)&&t(this.heightSetting)&&!this.textAlign||!B(a.textStr)?h.emptyBBox:a.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||n.height||0)+2*m;d=this.renderer.fontMetrics(d&&d.fontSize,a);this.baselineOffset=m+Math.min((this.text.firstLineMetrics||d).b,n.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2);this.needsBox&&!a.textPath&&(this.box||(a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),
110
+ a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(),g.x=a,g.y=(this.baseline?-this.baselineOffset:0)+a,g.width=Math.round(this.width),g.height=Math.round(this.height),this.box.attr(v(g,this.deferredAttr)),this.deferredAttr={})};h.prototype.updateTextPadding=function(){var a=this.text;if(!a.textPath){this.updateBoxSize();var d=this.baseline?0:this.baselineOffset,g=z(this.paddingLeft,this.padding);
111
+ B(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(g+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(g!==a.x||d!==a.y)a.attr("x",g),a.hasBoxWidthChanged&&(this.bBox=a.getBBox(!0)),"undefined"!==typeof d&&a.attr("y",d);a.x=g;a.y=d}};h.prototype.widthSetter=function(a){this.widthSetting=t(a)?a:void 0};h.prototype.getPaddedWidth=function(){var a=this.padding,d=z(this.paddingLeft,a);a=z(this.paddingRight,a);return(this.widthSetting||this.bBox.width||
112
+ 0)+d+a};h.prototype.xSetter=function(a){this.x=a;this.alignFactor&&(a-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(a);this.attr("translateX",this.xSetting)};h.prototype.ySetter=function(a){this.ySetting=this.y=Math.round(a);this.attr("translateY",this.ySetting)};h.emptyBBox={width:0,height:0,x:0,y:0};h.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return h}(b)});
113
+ I(e,"Core/Renderer/SVG/Symbols.js",[e["Core/Utilities.js"]],function(b){function e(b,e,p,h,a){var d=[];if(a){var g=a.start||0,m=F(a.r,p);p=F(a.r,h||p);var n=(a.end||0)-.001;h=a.innerR;var G=F(a.open,.001>Math.abs((a.end||0)-g-2*Math.PI)),J=Math.cos(g),x=Math.sin(g),C=Math.cos(n),u=Math.sin(n);g=F(a.longArc,.001>n-g-Math.PI?0:1);d.push(["M",b+m*J,e+p*x],["A",m,p,0,g,F(a.clockwise,1),b+m*C,e+p*u]);v(h)&&d.push(G?["M",b+h*C,e+h*u]:["L",b+h*C,e+h*u],["A",h,h,0,g,v(a.clockwise)?1-a.clockwise:0,b+h*J,e+
114
+ h*x]);G||d.push(["Z"])}return d}function y(b,e,p,h,a){return a&&a.r?B(b,e,p,h,a):[["M",b,e],["L",b+p,e],["L",b+p,e+h],["L",b,e+h],["Z"]]}function B(b,e,p,h,a){a=a&&a.r||0;return[["M",b+a,e],["L",b+p-a,e],["C",b+p,e,b+p,e,b+p,e+a],["L",b+p,e+h-a],["C",b+p,e+h,b+p,e+h,b+p-a,e+h],["L",b+a,e+h],["C",b,e+h,b,e+h,b,e+h-a],["L",b,e+a],["C",b,e,b,e,b+a,e]]}var v=b.defined,t=b.isNumber,F=b.pick;return{arc:e,callout:function(b,e,p,h,a){var d=Math.min(a&&a.r||0,p,h),g=d+6,m=a&&a.anchorX;a=a&&a.anchorY||0;var n=
115
+ B(b,e,p,h,{r:d});if(!t(m))return n;b+m>=p?a>e+g&&a<e+h-g?n.splice(3,1,["L",b+p,a-6],["L",b+p+6,a],["L",b+p,a+6],["L",b+p,e+h-d]):n.splice(3,1,["L",b+p,h/2],["L",m,a],["L",b+p,h/2],["L",b+p,e+h-d]):0>=b+m?a>e+g&&a<e+h-g?n.splice(7,1,["L",b,a+6],["L",b-6,a],["L",b,a-6],["L",b,e+d]):n.splice(7,1,["L",b,h/2],["L",m,a],["L",b,h/2],["L",b,e+d]):a&&a>h&&m>b+g&&m<b+p-g?n.splice(5,1,["L",m+6,e+h],["L",m,e+h+6],["L",m-6,e+h],["L",b+d,e+h]):a&&0>a&&m>b+g&&m<b+p-g&&n.splice(1,1,["L",m-6,e],["L",m,e-6],["L",m+
116
+ 6,e],["L",p-d,e]);return n},circle:function(b,r,p,h){return e(b+p/2,r+h/2,p/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,e,p,h){return[["M",b+p/2,e],["L",b+p,e+h/2],["L",b+p/2,e+h],["L",b,e+h/2],["Z"]]},rect:y,roundedRect:B,square:y,triangle:function(b,e,p,h){return[["M",b+p/2,e],["L",b+p,e+h],["L",b,e+h],["Z"]]},"triangle-down":function(b,e,p,h){return[["M",b,e],["L",b+p,e],["L",b+p/2,e+h],["Z"]]}}});I(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],
117
+ e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y){var K=e.doc,v=e.SVG_NS,t=e.win,F=y.attr,z=y.extend,r=y.fireEvent,p=y.isString,h=y.objectEach,a=y.pick;return function(){function d(a){var d=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=d&&d.lineHeight;this.textOutline=d&&d.textOutline;this.ellipsis=!(!d||"ellipsis"!==d.textOverflow);this.noWrap=!(!d||"nowrap"!==d.whiteSpace);this.fontSize=d&&d.fontSize}d.prototype.buildSVG=function(){var d=
118
+ this.svgElement,m=d.element,n=d.renderer,h=a(d.textStr,"").toString(),e=-1!==h.indexOf("<"),x=m.childNodes;n=this.width&&!d.added&&n.box;var C=/<br.*?>/g,u=[h,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(u!==d.textCache){d.textCache=u;delete d.actualWidth;for(u=x.length;u--;)m.removeChild(x[u]);e||this.ellipsis||this.width||d.textPath||-1!==h.indexOf(" ")&&(!this.noWrap||C.test(h))?""!==h&&(n&&n.appendChild(m),h=new b(h),this.modifyTree(h.nodes),
119
+ h.addToDOM(m),this.modifyDOM(),this.ellipsis&&-1!==(m.textContent||"").indexOf("\u2026")&&d.attr("title",this.unescapeEntities(d.textStr||"",["&lt;","&gt;"])),n&&n.removeChild(m)):m.appendChild(K.createTextNode(this.unescapeEntities(h)));p(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var a=this,d=this.svgElement,b=F(d.element,"x");d.firstLineMetrics=void 0;for(var h;h=d.element.firstChild;)if(/^[\s\u200B]*$/.test(h.textContent||" "))d.element.removeChild(h);
120
+ else break;[].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"),function(g,l){g.nextSibling&&g.previousSibling&&(0===l&&1===g.previousSibling.nodeType&&(d.firstLineMetrics=d.renderer.fontMetrics(void 0,g.previousSibling)),F(g,{dy:a.getLineHeight(g.nextSibling),x:b}))});var e=this.width||0;if(e){var x=function(g,l){var m=g.textContent||"",f=m.replace(/([^\^])-/g,"$1- ").split(" "),w=!a.noWrap&&(1<f.length||1<d.element.childNodes.length),k=a.getLineHeight(l),D=0,c=d.actualWidth;if(a.ellipsis)m&&
121
+ a.truncate(g,m,void 0,0,Math.max(0,e-parseInt(a.fontSize||12,10)),function(c,a){return c.substring(0,a)+"\u2026"});else if(w){m=[];for(w=[];l.firstChild&&l.firstChild!==g;)w.push(l.firstChild),l.removeChild(l.firstChild);for(;f.length;)f.length&&!a.noWrap&&0<D&&(m.push(g.textContent||""),g.textContent=f.join(" ").replace(/- /g,"-")),a.truncate(g,void 0,f,0===D?c||0:0,e,function(c,a){return f.slice(0,a).join(" ").replace(/- /g,"-")}),c=d.actualWidth,D++;w.forEach(function(c){l.insertBefore(c,g)});
122
+ m.forEach(function(c){l.insertBefore(K.createTextNode(c),g);c=K.createElementNS(v,"tspan");c.textContent="\u200b";F(c,{dy:k,x:b});l.insertBefore(c,g)})}},C=function(a){[].slice.call(a.childNodes).forEach(function(l){l.nodeType===t.Node.TEXT_NODE?x(l,a):(-1!==l.className.baseVal.indexOf("highcharts-br")&&(d.actualWidth=0),C(l))})};C(d.element)}};d.prototype.getLineHeight=function(a){var d;a=a.nodeType===t.Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(d=a&&/(px|em)$/.test(a.style.fontSize)?
123
+ a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(d,a||this.svgElement.element).h};d.prototype.modifyTree=function(a){var d=this,g=function(b,m){var h=b.attributes;h=void 0===h?{}:h;var n=b.children,u=b.style;u=void 0===u?{}:u;var l=b.tagName,A=d.renderer.styledMode;if("b"===l||"strong"===l)A?h["class"]="highcharts-strong":u.fontWeight="bold";else if("i"===l||"em"===l)A?h["class"]="highcharts-emphasized":
124
+ u.fontStyle="italic";u&&u.color&&(u.fill=u.color);"br"===l?(h["class"]="highcharts-br",b.textContent="\u200b",(m=a[m+1])&&m.textContent&&(m.textContent=m.textContent.replace(/^ +/gm,""))):"a"===l&&n&&n.some(function(a){return"#text"===a.tagName})&&(b.children=[{children:n,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(b.tagName="tspan");z(b,{attributes:h,style:u});n&&n.filter(function(a){return"#text"!==a.tagName}).forEach(g)};a.forEach(g);r(this.svgElement,"afterModifyTree",{nodes:a})};d.prototype.truncate=
125
+ function(a,d,b,h,e,x){var g=this.svgElement,m=g.renderer,l=g.rotation,n=[],f=b?1:0,w=(d||b||"").length,k=w,D,c=function(c,f){f=f||c;var k=a.parentNode;if(k&&"undefined"===typeof n[f])if(k.getSubStringLength)try{n[f]=h+k.getSubStringLength(0,b?f+1:f)}catch(L){""}else m.getSpanWidth&&(a.textContent=x(d||b,c),n[f]=h+m.getSpanWidth(g,a));return n[f]};g.rotation=0;var q=c(a.textContent.length);if(h+q>e){for(;f<=w;)k=Math.ceil((f+w)/2),b&&(D=x(b,k)),q=c(k,D&&D.length-1),f===w?f=w+1:q>e?w=k-1:f=k;0===w?
126
+ a.textContent="":d&&w===d.length-1||(a.textContent=D||x(d||b,k))}b&&b.splice(0,k);g.actualWidth=q;g.rotation=l};d.prototype.unescapeEntities=function(a,d){h(this.renderer.escapes,function(g,b){d&&-1!==d.indexOf(g)||(a=a.toString().replace(new RegExp(g,"g"),b))});return a};return d}()});I(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],
127
+ e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F,z,r){var p=y.charts,h=y.deg2rad,a=y.doc,d=y.isFirefox,g=y.isMS,m=y.isWebKit,n=y.noop,G=y.SVG_NS,J=y.symbolSizes,x=y.win,C=r.addEvent,u=r.attr,l=r.createElement,A=r.css,f=r.defined,w=r.destroyObjectProperties,k=r.extend,D=r.isArray,c=r.isNumber,q=r.isObject,E=r.isString,H=r.merge,Q=r.pick,L=r.pInt,K=r.uniqueKey,V;y=function(){function n(c,a,f,k,d,q,l){this.width=this.url=this.style=
128
+ this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,a,f,k,d,q,l)}n.prototype.init=function(c,f,k,q,l,g,b){var w=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),D=w.element;b||w.css(this.getStyle(q));c.appendChild(D);u(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&u(D,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=D;this.boxWrapper=w;this.alignedObjects=
129
+ [];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 10.2.1"));this.defs=this.createElement("defs").add();this.allowHTML=g;this.forExport=l;this.styledMode=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(f,k,!1);var n;d&&c.getBoundingClientRect&&(f=function(){A(c,{left:0,top:0});n=c.getBoundingClientRect();A(c,{left:Math.ceil(n.left)-n.left+"px",top:Math.ceil(n.top)-n.top+"px"})},f(),this.unSubPixelFix=
130
+ C(x,"resize",f))};n.prototype.definition=function(c){return(new b([c])).addToDOM(this.defs.element)};n.prototype.getReferenceURL=function(){if((d||m)&&a.getElementsByTagName("base").length){if(!f(V)){var c=K();c=(new b([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(c,")"),fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(a.body);
131
+ A(c,{position:"fixed",top:0,left:0,zIndex:9E5});var k=a.elementFromPoint(6,6);V="hitme"===(k&&k.id);a.body.removeChild(c)}if(V)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};n.prototype.getStyle=function(c){return this.style=k({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};n.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};
132
+ n.prototype.destroy=function(){var c=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();w(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};n.prototype.createElement=function(c){var a=new this.Element;a.init(this,c);return a};n.prototype.getRadialAttr=function(c,a){return{cx:c[0]-c[2]/2+(a.cx||0)*c[2],cy:c[1]-c[2]/2+(a.cy||0)*c[2],r:(a.r||0)*c[2]}};n.prototype.buildText=function(c){(new z(c)).buildSVG()};
133
+ n.prototype.getContrast=function(c){c=e.parse(c).rgba.map(function(c){c/=255;return.03928>=c?c/12.92:Math.pow((c+.055)/1.055,2.4)});c=.2126*c[0]+.7152*c[1]+.0722*c[2];return 1.05/(c+.05)>(c+.05)/.05?"#FFFFFF":"#000000"};n.prototype.button=function(c,a,f,d,l,w,D,n,m,h){void 0===l&&(l={});var E=this.label(c,a,f,m,void 0,void 0,h,void 0,"button"),u=this.styledMode;c=l.states||{};var A=0;l=H(l);delete l.states;var P=H({color:"#333333",cursor:"pointer",fontWeight:"normal"},l.style);delete l.style;var e=
134
+ b.filterUserAttributes(l);E.attr(H({padding:8,r:2},e));if(!u){e=H({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},e);w=H(e,{fill:"#e6e6e6"},b.filterUserAttributes(w||c.hover||{}));var x=w.style;delete w.style;D=H(e,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(D||c.select||{}));var G=D.style;delete D.style;n=H(e,{style:{color:"#cccccc"}},b.filterUserAttributes(n||c.disabled||{}));var R=n.style;delete n.style}C(E.element,g?"mouseover":"mouseenter",function(){3!==
135
+ A&&E.setState(1)});C(E.element,g?"mouseout":"mouseleave",function(){3!==A&&E.setState(A)});E.setState=function(c){1!==c&&(E.state=A=c);E.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][c||0]);u||(E.attr([e,w,D,n][c||0]),c=[P,x,G,R][c||0],q(c)&&E.css(c))};u||E.attr(e).css(k({cursor:"default"},P));return E.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==A&&d.call(E,c)})};n.prototype.crispLine=
136
+ function(c,a,k){void 0===k&&(k="round");var d=c[0],q=c[1];f(d[1])&&d[1]===q[1]&&(d[1]=q[1]=Math[k](d[1])-a%2/2);f(d[2])&&d[2]===q[2]&&(d[2]=q[2]=Math[k](d[2])+a%2/2);return c};n.prototype.path=function(c){var a=this.styledMode?{}:{fill:"none"};D(c)?a.d=c:q(c)&&k(a,c);return this.createElement("path").attr(a)};n.prototype.circle=function(c,a,f){c=q(c)?c:"undefined"===typeof c?{}:{x:c,y:a,r:f};a=this.createElement("circle");a.xSetter=a.ySetter=function(c,a,f){f.setAttribute("c"+a,c)};return a.attr(c)};
137
+ n.prototype.arc=function(c,a,f,k,d,l){q(c)?(k=c,a=k.y,f=k.r,c=k.x):k={innerR:k,start:d,end:l};c=this.symbol("arc",c,a,f,f,k);c.r=f;return c};n.prototype.rect=function(c,a,f,k,d,l){d=q(c)?c.r:d;var g=this.createElement("rect");c=q(c)?c:"undefined"===typeof c?{}:{x:c,y:a,width:Math.max(f,0),height:Math.max(k,0)};this.styledMode||("undefined"!==typeof l&&(c["stroke-width"]=l,c=g.crisp(c)),c.fill="none");d&&(c.r=d);g.rSetter=function(c,a,f){g.r=c;u(f,{rx:c,ry:c})};g.rGetter=function(){return g.r||0};
138
+ return g.attr(c)};n.prototype.setSize=function(c,a,f){this.width=c;this.height=a;this.boxWrapper.animate({width:c,height:a},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Q(f,!0)?void 0:0});this.alignElements()};n.prototype.g=function(c){var a=this.createElement("g");return c?a.attr({"class":"highcharts-"+c}):a};n.prototype.image=function(a,f,k,d,q,l){var g={preserveAspectRatio:"none"},b=function(c,a){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink",
139
+ "href",a):c.setAttribute("hc-svg-href",a)};c(f)&&(g.x=f);c(k)&&(g.y=k);c(d)&&(g.width=d);c(q)&&(g.height=q);var w=this.createElement("image").attr(g);f=function(c){b(w.element,a);l.call(w,c)};l?(b(w.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),k=new x.Image,C(k,"load",f),k.src=a,k.complete&&f({})):b(w.element,a);return w};n.prototype.symbol=function(c,d,q,g,w,b){var D=this,n=/^url\((.*?)\)$/,m=n.test(c),h=!m&&(this.symbols[c]?c:"circle"),E=h&&this.symbols[h],
140
+ u;if(E){"number"===typeof d&&(u=E.call(this.symbols,Math.round(d||0),Math.round(q||0),g||0,w||0,b));var P=this.path(u);D.styledMode||P.attr("fill","none");k(P,{symbolName:h||void 0,x:d,y:q,width:g,height:w});b&&k(P,b)}else if(m){var e=c.match(n)[1];var H=P=this.image(e);H.imgwidth=Q(J[e]&&J[e].width,b&&b.width);H.imgheight=Q(J[e]&&J[e].height,b&&b.height);var x=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(c){H[c+"Setter"]=function(c,a){var k=this["img"+
141
+ a];this[a]=c;f(k)&&(b&&"within"===b.backgroundSize&&this.width&&this.height&&(k=Math.round(k*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(a,k),this.alignByTranslate||(c=((this[a]||0)-k)/2,this.attr("width"===a?{translateX:c}:{translateY:c})))}});f(d)&&H.attr({x:d,y:q});H.isImg=!0;f(H.imgwidth)&&f(H.imgheight)?x(H):(H.attr({width:0,height:0}),l("img",{onload:function(){var c=p[D.chartIndex];0===this.width&&(A(this,{position:"absolute",top:"-999em"}),
142
+ a.body.appendChild(this));J[e]={width:this.width,height:this.height};H.imgwidth=this.width;H.imgheight=this.height;H.element&&x(H);this.parentNode&&this.parentNode.removeChild(this);D.imgCount--;if(!D.imgCount&&c&&!c.hasLoaded)c.onload()},src:e}),this.imgCount++)}return P};n.prototype.clipRect=function(c,a,f,k){var d=K()+"-",q=this.createElement("clipPath").attr({id:d}).add(this.defs);c=this.rect(c,a,f,k,0).add(q);c.id=d;c.clipPath=q;c.count=0;return c};n.prototype.text=function(c,a,k,d){var q={};
143
+ if(d&&(this.allowHTML||!this.forExport))return this.html(c,a,k);q.x=Math.round(a||0);k&&(q.y=Math.round(k));f(c)&&(q.text=c);c=this.createElement("text").attr(q);if(!d||this.forExport&&!this.allowHTML)c.xSetter=function(c,a,f){for(var k=f.getElementsByTagName("tspan"),d=f.getAttribute(a),q=0,l;q<k.length;q++)l=k[q],l.getAttribute(a)===d&&l.setAttribute(a,c);f.setAttribute(a,c)};return c};n.prototype.fontMetrics=function(c,a){c=!this.styledMode&&/px/.test(c)||!x.getComputedStyle?c||a&&a.style&&a.style.fontSize||
144
+ this.style&&this.style.fontSize:a&&v.prototype.getStyle.call(a,"font-size");c=/px/.test(c)?L(c):12;a=24>c?c+3:Math.round(1.2*c);return{h:a,b:Math.round(.8*a),f:c}};n.prototype.rotCorr=function(c,a,f){var k=c;a&&f&&(k=Math.max(k*Math.cos(a*h),4));return{x:-c/3*Math.sin(a*h),y:k}};n.prototype.pathToSegments=function(a){for(var f=[],k=[],d={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},q=0;q<a.length;q++)E(k[0])&&c(a[q])&&k.length===d[k[0].toUpperCase()]&&a.splice(q,0,k[0].replace("M","L").replace("m","l")),
145
+ "string"===typeof a[q]&&(k.length&&f.push(k.slice(0)),k.length=0),k.push(a[q]);f.push(k.slice(0));return f};n.prototype.label=function(c,a,f,k,d,q,l,g,b){return new t(this,c,a,f,k,d,q,l,g,b)};n.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return n}();k(y.prototype,{Element:v,SVG_NS:G,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:F,draw:n});B.registerRendererType("svg",y,!0);"";return y});I(e,"Core/Renderer/HTML/HTMLElement.js",
146
+ [e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e,y){var K=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g])};return a(d,g)};return function(d,g){function b(){this.constructor=d}a(d,g);d.prototype=null===g?Object.create(g):(b.prototype=g.prototype,new b)}}(),v=b.isFirefox,t=b.isMS,F=b.isWebKit,z=b.win,
147
+ r=y.css,p=y.defined,h=y.extend,a=y.pick,d=y.pInt;return function(g){function b(){return null!==g&&g.apply(this,arguments)||this}K(b,g);b.compose=function(a){if(-1===b.composedClasses.indexOf(a)){b.composedClasses.push(a);var d=b.prototype,g=a.prototype;g.getSpanCorrection=d.getSpanCorrection;g.htmlCss=d.htmlCss;g.htmlGetBBox=d.htmlGetBBox;g.htmlUpdateTransform=d.htmlUpdateTransform;g.setSpanRotation=d.setSpanRotation}return a};b.prototype.getSpanCorrection=function(a,d,g){this.xCorr=-a*g;this.yCorr=
148
+ -d};b.prototype.htmlCss=function(d){var g="SPAN"===this.element.tagName&&d&&"width"in d,b=a(g&&d.width,void 0);if(g){delete d.width;this.textWidth=b;var n=!0}d&&"ellipsis"===d.textOverflow&&(d.whiteSpace="nowrap",d.overflow="hidden");this.styles=h(this.styles,d);r(this.element,d);n&&this.htmlUpdateTransform();return this};b.prototype.htmlGetBBox=function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};b.prototype.htmlUpdateTransform=function(){if(this.added){var a=
149
+ this.renderer,g=this.element,b=this.translateX||0,h=this.translateY||0,m=this.x||0,u=this.y||0,l=this.textAlign||"left",A={left:0,center:.5,right:1}[l],f=this.styles;f=f&&f.whiteSpace;r(g,{marginLeft:b,marginTop:h});!a.styledMode&&this.shadows&&this.shadows.forEach(function(c){r(c,{marginLeft:b+1,marginTop:h+1})});this.inverted&&[].forEach.call(g.childNodes,function(c){a.invertChild(c,g)});if("SPAN"===g.tagName){var w=this.rotation,k=this.textWidth&&d(this.textWidth),D=[w,l,g.innerHTML,this.textWidth,
150
+ this.textAlign].join(),c=void 0;c=!1;if(k!==this.oldTextWidth){if(this.textPxLength)var q=this.textPxLength;else r(g,{width:"",whiteSpace:f||"nowrap"}),q=g.offsetWidth;(k>this.oldTextWidth||q>k)&&(/[ \-]/.test(g.textContent||g.innerText)||"ellipsis"===g.style.textOverflow)&&(r(g,{width:q>k||w?k+"px":"auto",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=k,c=!0)}this.hasBoxWidthChanged=c;D!==this.cTT&&(c=a.fontMetrics(g.style.fontSize,g).b,!p(w)||w===(this.oldRotation||0)&&l===this.oldAlign||
151
+ this.setSpanRotation(w,A,c),this.getSpanCorrection(!p(w)&&this.textPxLength||g.offsetWidth,c,A,w,l));r(g,{left:m+(this.xCorr||0)+"px",top:u+(this.yCorr||0)+"px"});this.cTT=D;this.oldRotation=w;this.oldAlign=l}}else this.alignOnAdd=!0};b.prototype.setSpanRotation=function(a,d,g){var b={},h=t&&!/Edge/.test(z.navigator.userAgent)?"-ms-transform":F?"-webkit-transform":v?"MozTransform":z.opera?"-o-transform":void 0;h&&(b[h]=b.transform="rotate("+a+"deg)",b[h+(v?"Origin":"-origin")]=b.transformOrigin=100*
152
+ d+"% "+g+"px",r(this.element,b))};b.composedClasses=[];return b}(e)});I(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var d in g)g.hasOwnProperty(d)&&(a[d]=g[d])};return b(h,a)};return function(h,
153
+ a){function d(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),t=B.attr,K=B.createElement,z=B.extend,r=B.pick;return function(p){function h(){return null!==p&&p.apply(this,arguments)||this}v(h,p);h.compose=function(a){-1===h.composedClasses.indexOf(a)&&(h.composedClasses.push(a),a.prototype.html=h.prototype.html);return a};h.prototype.html=function(a,d,g){var h=this.createElement("span"),n=h.element,p=h.renderer,J=p.isSVG,x=function(a,d){["opacity",
154
+ "visibility"].forEach(function(l){a[l+"Setter"]=function(g,f,b){var k=a.div?a.div.style:d;e.prototype[l+"Setter"].call(this,g,f,b);k&&(k[f]=g)}});a.addedSetters=!0};h.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,b.setElementHTML(this.element,r(a,"")),this.textStr=a,h.doTransform=!0)};J&&x(h,h.element.style);h.xSetter=h.ySetter=h.alignSetter=h.rotationSetter=function(a,d){"align"===d?h.alignValue=h.textAlign=a:h[d]=a;h.doTransform=!0};h.afterSetters=function(){this.doTransform&&
155
+ (this.htmlUpdateTransform(),this.doTransform=!1)};h.attr({text:a,x:Math.round(d),y:Math.round(g)}).css({position:"absolute"});p.styledMode||h.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});n.style.whiteSpace="nowrap";h.css=h.htmlCss;J&&(h.add=function(a){var d=p.box.parentNode,g=[];if(this.parentGroup=a){var b=a.div;if(!b){for(;a;)g.push(a),a=a.parentGroup;g.reverse().forEach(function(a){function f(f,k){a[k]=f;"translateX"===k?c.left=f+"px":c.top=f+"px";a.doTransform=!0}var k=
156
+ t(a.element,"class"),l=a.styles||{};b=a.div=a.div||K("div",k?{className:k}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,cursor:l.cursor,pointerEvents:l.pointerEvents,visibility:a.visibility},b||d);var c=b.style;z(a,{classSetter:function(c){return function(a){this.element.setAttribute("class",a);c.className=a}}(b),on:function(){g[0].div&&h.on.apply({element:g[0].div,onEvents:a.onEvents},arguments);return a},translateXSetter:f,
157
+ translateYSetter:f});a.addedSetters||x(a)})}}else b=d;b.appendChild(n);h.added=!0;h.alignOnAdd&&h.htmlUpdateTransform();return h});return h};h.composedClasses=[];return h}(y)});I(e,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},
158
+ week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,
159
+ reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};b.defaultYAxisOptions=
160
+ {reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};
161
+ b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||(b={}));return b});I(e,"Core/Foundation.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,y=b.isFunction,B=b.objectEach,v=b.removeEvent,t;(function(b){b.registerEventOptions=function(b,r){b.eventOptions=b.eventOptions||{};B(r.events,function(p,h){b.eventOptions[h]!==
162
+ p&&(b.eventOptions[h]&&(v(b,h,b.eventOptions[h]),delete b.eventOptions[h]),y(p)&&(b.eventOptions[h]=p,e(b,h,p)))})}})(t||(t={}));return t});I(e,"Core/Axis/Tick.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y){var K=e.deg2rad,v=y.clamp,t=y.correctFloat,F=y.defined,z=y.destroyObjectProperties,r=y.extend,p=y.fireEvent,h=y.isNumber,a=y.merge,d=y.objectEach,g=y.pick;e=function(){function m(a,d,g,b,h){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=d;this.type=
163
+ g||"";this.parameters=h||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;p(this,"init");g||b||this.addLabel()}m.prototype.addLabel=function(){var a=this,d=a.axis,m=d.options,e=d.chart,C=d.categories,u=d.logarithmic,l=d.names,A=a.pos,f=g(a.options&&a.options.labels,m.labels),w=d.tickPositions,k=A===w[0],D=A===w[w.length-1],c=(!f.step||1===f.step)&&1===d.tickInterval;w=w.info;var q=a.label,E;C=this.parameters.category||(C?g(C[A],l[A],A):A);u&&h(C)&&(C=t(u.lin2log(C)));
164
+ if(d.dateTime)if(w){var H=e.time.resolveDTLFormat(m.dateTimeLabelFormats[!m.grid&&w.higherRanks[A]||w.unitName]);var Q=H.main}else h(C)&&(Q=d.dateTime.getXDateFormat(C,m.dateTimeLabelFormats||{}));a.isFirst=k;a.isLast=D;var L={axis:d,chart:e,dateTimeLabelFormat:Q,isFirst:k,isLast:D,pos:A,tick:a,tickPositionInfo:w,value:C};p(this,"labelFormat",L);var v=function(c){return f.formatter?f.formatter.call(c,c):f.format?(c.text=d.defaultLabelFormatter.call(c),b.format(f.format,c,e)):d.defaultLabelFormatter.call(c,
165
+ c)};m=v.call(L,L);var z=H&&H.list;a.shortenLabel=z?function(){for(E=0;E<z.length;E++)if(r(L,{dateTimeLabelFormat:z[E]}),q.attr({text:v.call(L,L)}),q.getBBox().width<d.getSlotWidth(a)-2*f.padding)return;q.attr({text:""})}:void 0;c&&d._addedPlotLB&&a.moveLabel(m,f);F(q)||a.movedLabel?q&&q.textStr!==m&&!c&&(!q.textWidth||f.style.width||q.styles.width||q.css({width:null}),q.attr({text:m}),q.textPxLength=q.getBBox().width):(a.label=q=a.createLabel({x:0,y:0},m,f),a.rotation=0)};m.prototype.createLabel=
166
+ function(d,g,b){var h=this.axis,m=h.chart;if(d=F(g)&&b.enabled?m.renderer.text(g,d.x,d.y,b.useHTML).add(h.labelGroup):null)m.styledMode||d.css(a(b.style)),d.textPxLength=d.getBBox().width;return d};m.prototype.destroy=function(){z(this,this.axis)};m.prototype.getPosition=function(a,d,g,b){var h=this.axis,m=h.chart,l=b&&m.oldChartHeight||m.chartHeight;a={x:a?t(h.translate(d+g,void 0,void 0,b)+h.transB):h.left+h.offset+(h.opposite?(b&&m.oldChartWidth||m.chartWidth)-h.right-h.left:0),y:a?l-h.bottom+
167
+ h.offset-(h.opposite?h.height:0):t(l-h.translate(d+g,void 0,void 0,b)-h.transB)};a.y=v(a.y,-1E5,1E5);p(this,"afterGetPosition",{pos:a});return a};m.prototype.getLabelPosition=function(a,d,g,b,h,m,l,A){var f=this.axis,w=f.transA,k=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,D=f.staggerLines,c=f.tickRotCorr||{x:0,y:0},q=b||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?.5:1),E={};g=0===f.side?g.rotation?-8:-g.getBBox().height:2===f.side?c.y+8:Math.cos(g.rotation*K)*
168
+ (c.y-g.getBBox(!1,0).height/2);F(h.y)&&(g=0===f.side&&f.horiz?h.y+g:h.y);a=a+h.x+q+c.x-(m&&b?m*w*(k?-1:1):0);d=d+g-(m&&!b?m*w*(k?1:-1):0);D&&(b=l/(A||1)%D,f.opposite&&(b=D-b-1),d+=f.labelOffset/D*b);E.x=a;E.y=Math.round(d);p(this,"afterGetLabelPosition",{pos:E,tickmarkOffset:m,index:l});return E};m.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};m.prototype.getMarkPath=function(a,d,g,b,h,m){return m.crispLine([["M",a,d],["L",a+(h?0:-g),
169
+ d+(h?g:0)]],b)};m.prototype.handleOverflow=function(a){var d=this.axis,b=d.options.labels,h=a.x,m=d.chart.chartWidth,n=d.chart.spacing,l=g(d.labelLeft,Math.min(d.pos,n[3]));n=g(d.labelRight,Math.max(d.isRadial?0:d.pos+d.len,m-n[1]));var A=this.label,f=this.rotation,w={left:0,center:.5,right:1}[d.labelAlign||A.attr("align")],k=A.getBBox().width,D=d.getSlotWidth(this),c={},q=D,E=1,e;if(f||"justify"!==b.overflow)0>f&&h-w*k<l?e=Math.round(h/Math.cos(f*K)-l):0<f&&h+w*k>n&&(e=Math.round((m-h)/Math.cos(f*
170
+ K)));else if(m=h+(1-w)*k,h-w*k<l?q=a.x+q*(1-w)-l:m>n&&(q=n-a.x+q*w,E=-1),q=Math.min(D,q),q<D&&"center"===d.labelAlign&&(a.x+=E*(D-q-w*(D-Math.min(k,q)))),k>q||d.autoRotation&&(A.styles||{}).width)e=q;e&&(this.shortenLabel?this.shortenLabel():(c.width=Math.floor(e)+"px",(b.style||{}).textOverflow||(c.textOverflow="ellipsis"),A.css(c)))};m.prototype.moveLabel=function(a,g){var b=this,h=b.label,m=b.axis,n=m.reversed,l=!1;h&&h.textStr===a?(b.movedLabel=h,l=!0,delete b.label):d(m.ticks,function(f){l||
171
+ f.isNew||f===b||!f.label||f.label.textStr!==a||(b.movedLabel=f.label,l=!0,f.labelPos=b.movedLabel.xy,delete f.label)});if(!l&&(b.labelPos||h)){var A=b.labelPos||h.xy;h=m.horiz?n?0:m.width+m.left:A.x;m=m.horiz?A.y:n?m.width+m.left:0;b.movedLabel=b.createLabel({x:h,y:m},a,g);b.movedLabel&&b.movedLabel.attr({opacity:0})}};m.prototype.render=function(a,d,b){var h=this.axis,m=h.horiz,n=this.pos,l=g(this.tickmarkOffset,h.tickmarkOffset);n=this.getPosition(m,n,l,d);l=n.x;var A=n.y;h=m&&l===h.pos+h.len||
172
+ !m&&A===h.pos?-1:1;m=g(b,this.label&&this.label.newOpacity,1);b=g(b,1);this.isActive=!0;this.renderGridLine(d,b,h);this.renderMark(n,b,h);this.renderLabel(n,d,m,a);this.isNew=!1;p(this,"afterRender")};m.prototype.renderGridLine=function(a,d,b){var h=this.axis,m=h.options,n={},l=this.pos,A=this.type,f=g(this.tickmarkOffset,h.tickmarkOffset),w=h.chart.renderer,k=this.gridLine,D=m.gridLineWidth,c=m.gridLineColor,q=m.gridLineDashStyle;"minor"===this.type&&(D=m.minorGridLineWidth,c=m.minorGridLineColor,
173
+ q=m.minorGridLineDashStyle);k||(h.chart.styledMode||(n.stroke=c,n["stroke-width"]=D||0,n.dashstyle=q),A||(n.zIndex=1),a&&(d=0),this.gridLine=k=w.path().attr(n).addClass("highcharts-"+(A?A+"-":"")+"grid-line").add(h.gridGroup));if(k&&(b=h.getPlotLinePath({value:l+f,lineWidth:k.strokeWidth()*b,force:"pass",old:a})))k[a||this.isNew?"attr":"animate"]({d:b,opacity:d})};m.prototype.renderMark=function(a,d,b){var h=this.axis,m=h.options,n=h.chart.renderer,l=this.type,A=h.tickSize(l?l+"Tick":"tick"),f=a.x;
174
+ a=a.y;var w=g(m["minor"!==l?"tickWidth":"minorTickWidth"],!l&&h.isXAxis?1:0);m=m["minor"!==l?"tickColor":"minorTickColor"];var k=this.mark,D=!k;A&&(h.opposite&&(A[0]=-A[0]),k||(this.mark=k=n.path().addClass("highcharts-"+(l?l+"-":"")+"tick").add(h.axisGroup),h.chart.styledMode||k.attr({stroke:m,"stroke-width":w})),k[D?"attr":"animate"]({d:this.getMarkPath(f,a,A[0],k.strokeWidth()*b,h.horiz,n),opacity:d}))};m.prototype.renderLabel=function(a,d,b,m){var n=this.axis,u=n.horiz,l=n.options,A=this.label,
175
+ f=l.labels,w=f.step;n=g(this.tickmarkOffset,n.tickmarkOffset);var k=a.x;a=a.y;var D=!0;A&&h(k)&&(A.xy=a=this.getLabelPosition(k,a,A,u,f,n,m,w),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?D=!1:!u||f.step||f.rotation||d||0===b||this.handleOverflow(a),w&&m%w&&(D=!1),D&&h(a.y)?(a.opacity=b,A[this.isNewLabel?"attr":"animate"](a).show(!0),this.isNewLabel=!1):(A.hide(),this.isNewLabel=!0))};m.prototype.replaceMovedLabel=function(){var a=this.label,d=this.axis,
176
+ g=d.reversed;if(a&&!this.isNew){var b=d.horiz?g?d.left:d.width+d.left:a.xy.x;g=d.horiz?a.xy.y:g?d.width+d.top:d.top;a.animate({x:b,y:g,opacity:0},void 0,a.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return m}();"";return e});I(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/DefaultOptions.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],
177
+ function(b,e,y,B,v,t,F,z){var r=b.animObject,p=B.defaultOptions,h=v.registerEventOptions,a=t.deg2rad,d=z.arrayMax,g=z.arrayMin,m=z.clamp,n=z.correctFloat,G=z.defined,J=z.destroyObjectProperties,x=z.erase,C=z.error,u=z.extend,l=z.fireEvent,A=z.isArray,f=z.isNumber,w=z.isString,k=z.merge,D=z.normalizeTickInterval,c=z.objectEach,q=z.pick,E=z.relativeLength,H=z.removeEvent,Q=z.splat,L=z.syncTimeout,K=function(c,a){return D(a,void 0,void 0,q(c.options.allowDecimals,.5>a||void 0!==c.tickAmount),!!c.tickAmount)};
178
+ b=function(){function b(c,a){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=
179
+ this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(c,a)}b.prototype.init=function(c,a){var d=a.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!d:d;this.isXAxis=d;this.coll=this.coll||(d?"xAxis":"yAxis");l(this,"init",{userOptions:a});this.opposite=q(a.opposite,
180
+ this.opposite);this.side=q(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var k=this.options,b=k.labels,g=k.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=q(k.reversed,this.reversed);this.visible=k.visible;this.zoomEnabled=k.zoomEnabled;this.hasNames="category"===g||!0===k.categories;this.categories=k.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;
181
+ this.isLinked=G(k.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=k.minRange||k.maxZoom;this.range=k.range;this.offset=k.offset||0;this.min=this.max=null;a=q(k.crosshair,Q(c.options.tooltip.crosshairs)[d?0:1]);this.crosshair=!0===a?{}:a;-1===c.axes.indexOf(this)&&(d?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),c[this.coll].push(this));this.series=this.series||[];c.inverted&&!this.isZAxis&&
182
+ d&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=f(b.rotation)?b.rotation:void 0;h(this,k);l(this,"afterInit")};b.prototype.setOptions=function(c){this.options=k(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],k(p[this.coll],c));l(this,"afterSetOptions",{userOptions:c})};b.prototype.defaultLabelFormatter=function(c){var a=this.axis;c=this.chart.numberFormatter;
183
+ var d=f(this.value)?this.value:NaN,k=a.chart.time,b=this.dateTimeLabelFormat,q=p.lang,g=q.numericSymbols;q=q.numericSymbolMagnitude||1E3;var l=a.logarithmic?Math.abs(d):a.tickInterval,h=g&&g.length;if(a.categories)var w="".concat(this.value);else if(b)w=k.dateFormat(b,d);else if(h&&1E3<=l)for(;h--&&"undefined"===typeof w;)a=Math.pow(q,h+1),l>=a&&0===10*d%a&&null!==g[h]&&0!==d&&(w=c(d/a,-1)+g[h]);"undefined"===typeof w&&(w=1E4<=Math.abs(d)?c(d,-1):c(d,-1,void 0,""));return w};b.prototype.getSeriesExtremes=
184
+ function(){var c=this,a=c.chart,d;l(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(k){if(k.visible||!a.options.chart.ignoreHiddenSeries){var b=k.options,g=b.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=g&&(g=null);if(c.isXAxis){if(b=k.xData,b.length){b=c.logarithmic?b.filter(c.validatePositiveValue):b;d=k.getXExtremes(b);var l=d.min;var h=d.max;
185
+ f(l)||l instanceof Date||(b=b.filter(f),d=k.getXExtremes(b),l=d.min,h=d.max);b.length&&(c.dataMin=Math.min(q(c.dataMin,l),l),c.dataMax=Math.max(q(c.dataMax,h),h))}}else if(k=k.applyExtremes(),f(k.dataMin)&&(l=k.dataMin,c.dataMin=Math.min(q(c.dataMin,l),l)),f(k.dataMax)&&(h=k.dataMax,c.dataMax=Math.max(q(c.dataMax,h),h)),G(g)&&(c.threshold=g),!b.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});l(this,"afterGetSeriesExtremes")};b.prototype.translate=function(c,a,d,k,b,q){var g=this.linkedParent||
186
+ this,l=k&&g.old?g.old.min:g.min;if(!f(l))return NaN;var h=g.minPixelPadding;b=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&b)&&g.lin2val;var w=1,D=0;k=k&&g.old?g.old.transA:g.transA;k||(k=g.transA);d&&(w*=-1,D=g.len);g.reversed&&(w*=-1,D-=w*(g.sector||g.len));a?(q=(c*w+D-h)/k+l,b&&(q=g.lin2val(q))):(b&&(c=g.val2lin(c)),c=w*(c-l)*k,q=(g.isRadial?c:n(c))+D+w*h+(f(q)?k*q:0));return q};b.prototype.toPixels=function(c,a){return this.translate(c,!1,!this.horiz,void 0,!0)+(a?0:this.pos)};
187
+ b.prototype.toValue=function(c,a){return this.translate(c-(a?0:this.pos),!0,!this.horiz,void 0,!0)};b.prototype.getPlotLinePath=function(c){function a(c,a,f){if("pass"!==u&&c<a||c>f)u?c=m(c,a,f):C=!0;return c}var d=this,k=d.chart,b=d.left,g=d.top,h=c.old,w=c.value,D=c.lineWidth,E=h&&k.oldChartHeight||k.chartHeight,n=h&&k.oldChartWidth||k.chartWidth,A=d.transB,e=c.translatedValue,u=c.force,H,P,p,x,C;c={value:w,lineWidth:D,old:h,force:u,acrossPanes:c.acrossPanes,translatedValue:e};l(this,"getPlotLinePath",
188
+ c,function(c){e=q(e,d.translate(w,void 0,void 0,h));e=m(e,-1E5,1E5);H=p=Math.round(e+A);P=x=Math.round(E-e-A);f(e)?d.horiz?(P=g,x=E-d.bottom,H=p=a(H,b,b+d.width)):(H=b,p=n-d.right,P=x=a(P,g,g+d.height)):(C=!0,u=!1);c.path=C&&!u?null:k.renderer.crispLine([["M",H,P],["L",p,x]],D||1)});return c.path};b.prototype.getLinearTickPositions=function(c,a,f){var d=n(Math.floor(a/c)*c);f=n(Math.ceil(f/c)*c);var k=[],b;n(d+c)===d&&(b=20);if(this.single)return[a];for(a=d;a<=f;){k.push(a);a=n(a+c,b);if(a===q)break;
189
+ var q=a}return k};b.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?q(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};b.prototype.getMinorTickPositions=function(){var c=this.options,a=this.tickPositions,f=this.minorTickInterval,d=this.pointRangePadding||0,k=this.min-d;d=this.max+d;var b=d-k,q=[];if(b&&b/f<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(c,a,d){a&&q.push.apply(q,g.getLogTickPositions(f,d[a-1],d[a],
190
+ !0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())q=q.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(f),k,d,c.startOfWeek));else for(c=k+(a[0]-k)%f;c<=d&&c!==q[0];c+=f)q.push(c)}0!==q.length&&this.trimTicks(q);return q};b.prototype.adjustForMinRange=function(){var c=this.options,a=this.logarithmic,f=this.min,k=this.max,b=0,l,h,w,D;this.isXAxis&&"undefined"===typeof this.minRange&&!a&&(G(c.min)||G(c.max)||G(c.floor)||G(c.ceiling)?this.minRange=null:(this.series.forEach(function(c){w=
191
+ c.xData;D=c.xIncrement?1:w.length-1;if(1<w.length)for(l=D;0<l;l--)if(h=w[l]-w[l-1],!b||h<b)b=h}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(k-f<this.minRange){var m=this.dataMax-this.dataMin>=this.minRange;var E=this.minRange;var n=(E-k+f)/2;n=[f-n,q(c.min,f-n)];m&&(n[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f=d(n);k=[f+E,q(c.max,f+E)];m&&(k[2]=a?a.log2lin(this.dataMax):this.dataMax);k=g(k);k-f<E&&(n[0]=k-E,n[1]=q(c.min,k-E),f=d(n))}this.min=f;this.max=
192
+ k};b.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(a){var f=a.closestPointRange,d=a.visible||!a.chart.options.chart.ignoreHiddenSeries;!a.noSharedTooltip&&G(f)&&d&&(c=G(c)?Math.min(c,f):f)});return c};b.prototype.nameToX=function(c){var a=A(this.options.categories),f=a?this.categories:this.names,d=c.options.x;c.series.requireSorting=!1;G(d)||(d=this.options.uniqueNames&&f?a?f.indexOf(c.name):q(f.keys[c.name],-1):c.series.autoIncrement());if(-1===d){if(!a&&
193
+ f)var k=f.length}else k=d;"undefined"!==typeof k?(this.names[k]=c.name,this.names.keys[c.name]=k):c.x&&(k=c.x);return k};b.prototype.updateNames=function(){var c=this,a=this.names;0<a.length&&(Object.keys(a.keys).forEach(function(c){delete a.keys[c]}),a.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)c.max=Math.max(c.max,a.xData.length-1),a.processData(),a.generatePoints();a.data.forEach(function(f,d){if(f&&f.options&&"undefined"!==
194
+ typeof f.name){var k=c.nameToX(f);"undefined"!==typeof k&&k!==f.x&&(f.x=k,a.xData[d]=k)}})}))};b.prototype.setAxisTranslation=function(){var c=this,a=c.max-c.min,f=c.linkedParent,d=!!c.categories,k=c.isXAxis,b=c.axisPointRange||0,g=0,h=0,D=c.transA;if(k||d||b){var m=c.getClosest();f?(g=f.minPointOffset,h=f.pointRangePadding):c.series.forEach(function(a){var f=d?1:k?q(a.options.pointRange,m,0):c.axisPointRange||0,l=a.options.pointPlacement;b=Math.max(b,f);if(!c.single||d)a=a.is("xrange")?!k:k,g=Math.max(g,
195
+ a&&w(l)?0:f/2),h=Math.max(h,a&&"on"===l?0:f)});f=c.ordinal&&c.ordinal.slope&&m?c.ordinal.slope/m:1;c.minPointOffset=g*=f;c.pointRangePadding=h*=f;c.pointRange=Math.min(b,c.single&&d?1:a);k&&(c.closestPointRange=m)}c.translationSlope=c.transA=D=c.staticScale||c.len/(a+h||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=D*g;l(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=function(c){var a=this.chart,d=this.logarithmic,
196
+ k=this.options,b=this.isXAxis,g=this.isLinked,h=k.tickPixelInterval,w=this.categories,D=this.softThreshold,m=k.maxPadding,E=k.minPadding,e=f(k.tickInterval)&&0<=k.tickInterval?k.tickInterval:void 0,A=f(this.threshold)?this.threshold:null;this.dateTime||w||g||this.getTickAmount();var u=q(this.userMin,k.min);var H=q(this.userMax,k.max);if(g){this.linkedParent=a[this.coll][k.linkedTo];var p=this.linkedParent.getExtremes();this.min=q(p.min,p.dataMin);this.max=q(p.max,p.dataMax);k.type!==this.linkedParent.options.type&&
197
+ C(11,1,a)}else{if(D&&G(A))if(this.dataMin>=A)p=A,E=0;else if(this.dataMax<=A){var x=A;m=0}this.min=q(u,p,this.dataMin);this.max=q(H,x,this.dataMax)}d&&(this.positiveValuesOnly&&!c&&0>=Math.min(this.min,q(this.dataMin,this.min))&&C(10,1,a),this.min=n(d.log2lin(this.min),16),this.max=n(d.log2lin(this.max),16));this.range&&G(this.max)&&(this.userMin=this.min=u=Math.max(this.dataMin,this.minFromRange()),this.userMax=H=this.max,this.range=null);l(this,"foundExtremes");this.beforePadding&&this.beforePadding();
198
+ this.adjustForMinRange();!(w||this.axisPointRange||this.stacking&&this.stacking.usePercentage||g)&&G(this.min)&&G(this.max)&&(a=this.max-this.min)&&(!G(u)&&E&&(this.min-=a*E),!G(H)&&m&&(this.max+=a*m));f(this.userMin)||(f(k.softMin)&&k.softMin<this.min&&(this.min=u=k.softMin),f(k.floor)&&(this.min=Math.max(this.min,k.floor)));f(this.userMax)||(f(k.softMax)&&k.softMax>this.max&&(this.max=H=k.softMax),f(k.ceiling)&&(this.max=Math.min(this.max,k.ceiling)));D&&G(this.dataMin)&&(A=A||0,!G(u)&&this.min<
199
+ A&&this.dataMin>=A?this.min=this.options.minRange?Math.min(A,this.max-this.minRange):A:!G(H)&&this.max>A&&this.dataMax<=A&&(this.max=this.options.minRange?Math.max(A,this.min+this.minRange):A));f(this.min)&&f(this.max)&&!this.chart.polar&&this.min>this.max&&(G(this.options.min)?this.max=this.min:G(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:g&&this.linkedParent&&!e&&h===this.linkedParent.options.tickPixelInterval?
200
+ e=this.linkedParent.tickInterval:q(e,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,w?1:(this.max-this.min)*h/Math.max(this.len,h));if(b&&!c){var P=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(P)});l(this,"postProcessData",{hasExtemesChanged:P})}this.setAxisTranslation();l(this,"initialAxisTranslation");this.pointRange&&!e&&(this.tickInterval=Math.max(this.pointRange,
201
+ this.tickInterval));c=q(k.minTickInterval,this.dateTime&&!this.series.some(function(c){return c.noSharedTooltip})?this.closestPointRange:0);!e&&this.tickInterval<c&&(this.tickInterval=c);this.dateTime||this.logarithmic||e||(this.tickInterval=K(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};b.prototype.setTickPositions=function(){var c=this.options,a=c.tickPositions,f=this.getMinorTickInterval(),k=this.hasVerticalPanning(),d="colorAxis"===this.coll,
202
+ b=(d||!k)&&c.startOnTick;k=(d||!k)&&c.endOnTick;d=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===f&&this.tickInterval?this.tickInterval/5:f;this.single=this.min===this.max&&G(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=f=a&&a.slice();if(!f){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,
203
+ 200)))if(this.dateTime)f=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)f=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var q=c=this.tickInterval;q<=2*c;)if(f=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&f.length>this.tickAmount)this.tickInterval=K(this,q*=1.1);else break;
204
+ else f=[this.min,this.max],C(19,!1,this.chart);f.length>this.len&&(f=[f[0],f.pop()],f[0]===f[1]&&(f.length=1));this.tickPositions=f;d&&(d=d.apply(this,[this.min,this.max]))&&(this.tickPositions=f=d)}this.paddedTicks=f.slice(0);this.trimTicks(f,b,k);this.isLinked||(this.single&&2>f.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),a||d||this.adjustTickAmount());l(this,"afterSetTickPositions")};b.prototype.trimTicks=
205
+ function(c,a,f){var k=c[0],d=c[c.length-1],b=!this.isOrdinal&&this.minPointOffset||0;l(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==k)this.min=k;else for(;this.min-b>c[0];)c.shift();if(f)this.max=d;else for(;this.max+b<c[c.length-1];)c.pop();0===c.length&&G(k)&&!this.options.tickPositions&&c.push((d+k)/2)}};b.prototype.alignToOthers=function(){var c=this,a=[this],k=c.options,d="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,b=[],q;c.thresholdAlignment=void 0;if((!1!==this.chart.options.chart.alignTicks&&
206
+ k.alignTicks||d)&&!1!==k.startOnTick&&!1!==k.endOnTick&&!c.logarithmic){var g=function(c){var a=c.options;return[c.horiz?a.left:a.top,a.width,a.height,a.pane].join()},l=g(this);this.chart[this.coll].forEach(function(f){var k=f.series;k.length&&k.some(function(c){return c.visible})&&f!==c&&g(f)===l&&(q=!0,a.push(f))})}if(q&&d){a.forEach(function(a){a=a.getThresholdAlignment(c);f(a)&&b.push(a)});var h=1<b.length?b.reduce(function(c,a){return c+a},0)/b.length:void 0;a.forEach(function(c){c.thresholdAlignment=
207
+ h})}return q};b.prototype.getThresholdAlignment=function(c){(!f(this.dataMin)||this!==c&&this.series.some(function(c){return c.isDirty||c.isDirtyData}))&&this.getSeriesExtremes();if(f(this.threshold))return c=m((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(c=1-c),c};b.prototype.getTickAmount=function(){var c=this.options,a=c.tickPixelInterval,f=c.tickAmount;!G(c.tickInterval)&&!f&&this.len<a&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&
208
+ c.endOnTick&&(f=2);!f&&this.alignToOthers()&&(f=Math.ceil(this.len/a)+1);4>f&&(this.finalTickAmt=f,f=5);this.tickAmount=f};b.prototype.adjustTickAmount=function(){var c=this,a=c.finalTickAmt,k=c.max,d=c.min,b=c.options,g=c.tickPositions,l=c.tickAmount,h=c.thresholdAlignment,w=g&&g.length,D=q(c.threshold,c.softThreshold?0:null);var m=c.tickInterval;if(f(h)){var E=.5>h?Math.ceil(h*(l-1)):Math.floor(h*(l-1));b.reversed&&(E=l-1-E)}if(c.hasData()&&f(d)&&f(k)){h=function(){c.transA*=(w-1)/(l-1);c.min=b.startOnTick?
209
+ g[0]:Math.min(d,g[0]);c.max=b.endOnTick?g[g.length-1]:Math.max(k,g[g.length-1])};if(f(E)&&f(c.threshold)){for(;g[E]!==D||g.length!==l||g[0]>d||g[g.length-1]<k;){g.length=0;for(g.push(c.threshold);g.length<l;)void 0===g[E]||g[E]>c.threshold?g.unshift(n(g[0]-m)):g.push(n(g[g.length-1]+m));if(m>8*c.tickInterval)break;m*=2}h()}else if(w<l){for(;g.length<l;)g.length%2||d===D?g.push(n(g[g.length-1]+m)):g.unshift(n(g[0]-m));h()}if(G(a)){for(m=D=g.length;m--;)(3===a&&1===m%2||2>=a&&0<m&&m<D-1)&&g.splice(m,
210
+ 1);c.finalTickAmt=void 0}}};b.prototype.setScale=function(){var c=!1,a=!1;this.series.forEach(function(f){c=c||f.isDirtyData||f.isDirty;a=a||f.xAxis&&f.xAxis.isDirty||!1});this.setAxisSize();var f=this.len!==(this.old&&this.old.len);f||c||a||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||
211
+ (this.isDirty=f||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);l(this,"afterSetScale")};b.prototype.setExtremes=function(c,a,f,k,d){var b=this,g=b.chart;f=q(f,!0);b.series.forEach(function(c){delete c.kdTree});d=u(d,{min:c,max:a});l(b,"setExtremes",d,function(){b.userMin=c;b.userMax=a;b.eventArgs=d;f&&g.redraw(k)})};b.prototype.zoom=function(c,a){var f=this,k=this.dataMin,d=
212
+ this.dataMax,b=this.options,g=Math.min(k,q(b.min,k)),h=Math.max(d,q(b.max,d));c={newMin:c,newMax:a};l(this,"zoom",c,function(c){var a=c.newMin,b=c.newMax;if(a!==f.min||b!==f.max)f.allowZoomOutside||(G(k)&&(a<g&&(a=g),a>h&&(a=h)),G(d)&&(b<g&&(b=g),b>h&&(b=h))),f.displayBtn="undefined"!==typeof a||"undefined"!==typeof b,f.setExtremes(a,b,!1,void 0,{trigger:"zoom"});c.zoomed=!0});return c.zoomed};b.prototype.setAxisSize=function(){var c=this.chart,a=this.options,f=a.offsets||[0,0,0,0],k=this.horiz,d=
213
+ this.width=Math.round(E(q(a.width,c.plotWidth-f[3]+f[1]),c.plotWidth)),b=this.height=Math.round(E(q(a.height,c.plotHeight-f[0]+f[2]),c.plotHeight)),g=this.top=Math.round(E(q(a.top,c.plotTop+f[0]),c.plotHeight,c.plotTop));a=this.left=Math.round(E(q(a.left,c.plotLeft+f[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-b-g;this.right=c.chartWidth-d-a;this.len=Math.max(k?d:b,0);this.pos=k?a:g};b.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?n(c.lin2log(this.min)):this.min,
214
+ max:c?n(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(c){var a=this.logarithmic,f=a?a.lin2log(this.min):this.min;a=a?a.lin2log(this.max):this.max;null===c||-Infinity===c?c=f:Infinity===c?c=a:f>c?c=f:a<c&&(c=a);return this.translate(c,0,1,0,1)};b.prototype.autoLabelAlign=function(c){var a=(q(c,0)-90*this.side+720)%360;c={align:"center"};l(this,"autoLabelAlign",c,function(c){15<a&&165>a?c.align="right":
215
+ 195<a&&345>a&&(c.align="left")});return c.align};b.prototype.tickSize=function(c){var a=this.options,f=q(a["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),k=a["tick"===c?"tickLength":"minorTickLength"];if(f&&k){"inside"===a[c+"Position"]&&(k=-k);var d=[k,f]}c={tickSize:d};l(this,"afterTickSize",c);return c.tickSize};b.prototype.labelMetrics=function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,
216
+ this.ticks[c]&&this.ticks[c].label)};b.prototype.unsquish=function(){var c=this.options.labels,k=this.horiz,d=this.tickInterval,b=this.len/(((this.categories?1:0)+this.max-this.min)/d),g=c.rotation,l=this.labelMetrics(),h=Math.max(this.max-this.min,0),w=function(c){var a=c/(b||1);a=1<a?Math.ceil(a):1;a*d>h&&Infinity!==c&&Infinity!==b&&h&&(a=Math.ceil(h/d));return n(a*d)},D=d,m,E,A=Number.MAX_VALUE;if(k){if(!c.staggerLines&&!c.step)if(f(g))var e=[g];else b<c.autoRotationLimit&&(e=c.autoRotation);e&&
217
+ e.forEach(function(c){if(c===g||c&&-90<=c&&90>=c){E=w(Math.abs(l.h/Math.sin(a*c)));var f=E+Math.abs(c/360);f<A&&(A=f,m=c,D=E)}})}else c.step||(D=w(l.h));this.autoRotation=e;this.labelRotation=q(m,f(g)?g:0);return D};b.prototype.getSlotWidth=function(c){var a=this.chart,k=this.horiz,d=this.options.labels,b=Math.max(this.tickPositions.length-(this.categories?0:1),1),g=a.margin[3];if(c&&f(c.slotWidth))return c.slotWidth;if(k&&2>d.step)return d.rotation?0:(this.staggerLines||1)*this.len/b;if(!k){c=d.style.width;
218
+ if(void 0!==c)return parseInt(String(c),10);if(g)return g-a.spacing[3]}return.33*a.chartWidth};b.prototype.renderUnsquish=function(){var c=this.chart,a=c.renderer,f=this.tickPositions,k=this.ticks,d=this.options.labels,b=d.style,g=this.horiz,q=this.getSlotWidth(),l=Math.max(1,Math.round(q-2*d.padding)),h={},D=this.labelMetrics(),m=b.textOverflow,E=0;w(d.rotation)||(h.rotation=d.rotation||0);f.forEach(function(c){c=k[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>E&&(E=c.label.textPxLength)});
219
+ this.maxLabelLength=E;if(this.autoRotation)E>l&&E>D.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(q){var n=l;if(!m){var A="clip";for(l=f.length;!g&&l--;){var e=f[l];if(e=k[e].label)e.styles&&"ellipsis"===e.styles.textOverflow?e.css({textOverflow:"clip"}):e.textPxLength>q&&e.css({width:q+"px"}),e.getBBox().height>this.len/f.length-(D.h-D.f)&&(e.specificTextOverflow="ellipsis")}}}h.rotation&&(n=E>.5*c.chartHeight?.33*c.chartHeight:E,m||(A="ellipsis"));if(this.labelAlign=d.align||this.autoLabelAlign(this.labelRotation))h.align=
220
+ this.labelAlign;f.forEach(function(c){var a=(c=k[c])&&c.label,f=b.width,d={};a&&(a.attr(h),c.shortenLabel?c.shortenLabel():n&&!f&&"nowrap"!==b.whiteSpace&&(n<a.textPxLength||"SPAN"===a.element.tagName)?(d.width=n+"px",m||(d.textOverflow=a.specificTextOverflow||A),a.css(d)):a.styles&&a.styles.width&&!d.width&&!f&&a.css({width:null}),delete a.specificTextOverflow,c.rotation=h.rotation)},this);this.tickRotCorr=a.rotCorr(D.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||
221
+ this.options.showEmpty&&G(this.min)&&G(this.max)};b.prototype.addTitle=function(c){var a=this.chart.renderer,f=this.horiz,d=this.opposite,b=this.options.title,g=this.chart.styledMode,q;this.axisTitle||((q=b.textAlign)||(q=(f?{low:"left",middle:"center",high:"right"}:{low:d?"right":"left",middle:"center",high:d?"left":"right"})[b.align]),this.axisTitle=a.text(b.text||"",0,0,b.useHTML).attr({zIndex:7,rotation:b.rotation,align:q}).addClass("highcharts-axis-title"),g||this.axisTitle.css(k(b.style)),this.axisTitle.add(this.axisGroup),
222
+ this.axisTitle.isNew=!0);g||b.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};b.prototype.generateTick=function(c){var a=this.ticks;a[c]?a[c].addLabel():a[c]=new F(this,c)};b.prototype.getOffset=function(){var a=this,f=this,d=f.chart,k=f.horiz,b=f.options,g=f.side,h=f.ticks,w=f.tickPositions,D=f.coll,m=f.axisParent,E=d.renderer,n=d.inverted&&!f.isZAxis?[1,0,3,2][g]:g,e=f.hasData(),A=b.title,u=b.labels,H=d.axisOffset;d=d.clipOffset;var p=[-1,
223
+ 1,1,-1][g],x=b.className,C,r=0,J=0,Q=0;f.showAxis=C=e||b.showEmpty;f.staggerLines=f.horiz&&u.staggerLines||void 0;if(!f.axisGroup){var L=function(c,f,d){return E.g(c).attr({zIndex:d}).addClass("highcharts-".concat(D.toLowerCase()).concat(f," ")+(a.isRadial?"highcharts-radial-axis".concat(f," "):"")+(x||"")).add(m)};f.gridGroup=L("grid","-grid",b.gridZIndex);f.axisGroup=L("axis","",b.zIndex);f.labelGroup=L("axis-labels","-labels",u.zIndex)}e||f.isLinked?(w.forEach(function(c){f.generateTick(c)}),f.renderUnsquish(),
224
+ f.reserveSpaceDefault=0===g||2===g||{1:"left",3:"right"}[g]===f.labelAlign,q(u.reserveSpace,"center"===f.labelAlign?!0:null,f.reserveSpaceDefault)&&w.forEach(function(c){Q=Math.max(h[c].getLabelSize(),Q)}),f.staggerLines&&(Q*=f.staggerLines),f.labelOffset=Q*(f.opposite?-1:1)):c(h,function(c,a){c.destroy();delete h[a]});if(A&&A.text&&!1!==A.enabled&&(f.addTitle(C),C&&!1!==A.reserveSpace)){f.titleOffset=r=f.axisTitle.getBBox()[k?"height":"width"];var t=A.offset;J=G(t)?0:q(A.margin,k?5:10)}f.renderLine();
225
+ f.offset=p*q(b.offset,H[g]?H[g]+(b.margin||0):0);f.tickRotCorr=f.tickRotCorr||{x:0,y:0};A=0===g?-f.labelMetrics().h:2===g?f.tickRotCorr.y:0;e=Math.abs(Q)+J;Q&&(e=e-A+p*(k?q(u.y,f.tickRotCorr.y+8*p):u.x));f.axisTitleMargin=q(t,e);f.getMaxLabelDimensions&&(f.maxLabelDimensions=f.getMaxLabelDimensions(h,w));"colorAxis"!==D&&(k=this.tickSize("tick"),H[g]=Math.max(H[g],(f.axisTitleMargin||0)+r+p*f.offset,e,w&&w.length&&k?k[0]+p*f.offset:0),b=!f.axisLine||b.offset?0:2*Math.floor(f.axisLine.strokeWidth()/
226
+ 2),d[n]=Math.max(d[n],b));l(this,"afterGetOffset")};b.prototype.getLinePath=function(c){var a=this.chart,f=this.opposite,d=this.offset,k=this.horiz,b=this.left+(f?this.width:0)+d;d=a.chartHeight-this.bottom-(f?this.height:0)+d;f&&(c*=-1);return a.renderer.crispLine([["M",k?this.left:b,k?d:this.top],["L",k?a.chartWidth-this.right:b,k?d:a.chartHeight-this.bottom]],c)};b.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),
227
+ this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var c=this.horiz,a=this.left,f=this.top,d=this.len,k=this.options.title,b=c?a:f,g=this.opposite,q=this.offset,h=k.x,w=k.y,D=this.axisTitle,m=this.chart.renderer.fontMetrics(k.style.fontSize,D);D=D?Math.max(D.getBBox(!1,0).height-m.h-1,0):0;d={low:b+(c?0:d),middle:b+d/2,high:b+(c?d:0)}[k.align];a=(c?f+this.height:a)+(c?1:-1)*(g?-1:1)*(this.axisTitleMargin||
228
+ 0)+[-D,D,m.f,-D][this.side];c={x:c?d+h:a+(g?this.width:0)+q+h,y:c?a+w-(g?this.height:0)+q:d+w};l(this,"afterGetTitlePosition",{titlePosition:c});return c};b.prototype.renderMinorTick=function(c,a){var f=this.minorTicks;f[c]||(f[c]=new F(this,c,"minor"));a&&f[c].isNew&&f[c].render(null,!0);f[c].render(null,!1,1)};b.prototype.renderTick=function(c,a,f){var d=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)d[c]||(d[c]=new F(this,c)),f&&d[c].isNew&&d[c].render(a,
229
+ !0,-1),d[c].render(a)};b.prototype.render=function(){var a=this,d=a.chart,k=a.logarithmic,b=a.options,g=a.isLinked,q=a.tickPositions,h=a.axisTitle,w=a.ticks,D=a.minorTicks,m=a.alternateBands,E=b.stackLabels,n=b.alternateGridColor,e=a.tickmarkOffset,A=a.axisLine,u=a.showAxis,H=r(d.renderer.globalAnimation),p,x;a.labelEdge.length=0;a.overlap=!1;[w,D,m].forEach(function(a){c(a,function(c){c.isActive=!1})});if(a.hasData()||g){var C=a.chart.hasRendered&&a.old&&f(a.old.min);a.minorTickInterval&&!a.categories&&
230
+ a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c,C)});q.length&&(q.forEach(function(c,f){a.renderTick(c,f,C)}),e&&(0===a.min||a.single)&&(w[-1]||(w[-1]=new F(a,-1,null,!0)),w[-1].render(-1)));n&&q.forEach(function(c,f){x="undefined"!==typeof q[f+1]?q[f+1]+e:a.max-e;0===f%2&&c<a.max&&x<=a.max+(d.polar?-e:e)&&(m[c]||(m[c]=new t.PlotLineOrBand(a)),p=c+e,m[c].options={from:k?k.lin2log(p):p,to:k?k.lin2log(x):x,color:n,className:"highcharts-alternate-grid"},m[c].render(),m[c].isActive=
231
+ !0)});a._addedPlotLB||(a._addedPlotLB=!0,(b.plotLines||[]).concat(b.plotBands||[]).forEach(function(c){a.addPlotBandOrLine(c)}))}[w,D,m].forEach(function(a){var f=[],k=H.duration;c(a,function(c,a){c.isActive||(c.render(a,!1,0),c.isActive=!1,f.push(a))});L(function(){for(var c=f.length;c--;)a[f[c]]&&!a[f[c]].isActive&&(a[f[c]].destroy(),delete a[f[c]])},a!==m&&d.hasRendered&&k?k:0)});A&&(A[A.isPlaced?"animate":"attr"]({d:this.getLinePath(A.strokeWidth())}),A.isPlaced=!0,A[u?"show":"hide"](u));h&&u&&
232
+ (b=a.getTitlePosition(),h[h.isNew?"attr":"animate"](b),h.isNew=!1);E&&E.enabled&&a.stacking&&a.stacking.renderStackTotals();a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin};a.isDirty=!1;l(this,"afterRender")};b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=
233
+ function(a){var f=this,d=f.plotLinesAndBands,k=this.eventOptions;l(this,"destroy",{keepEvents:a});a||H(f);[f.ticks,f.minorTicks,f.alternateBands].forEach(function(c){J(c)});if(d)for(a=d.length;a--;)d[a].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){f[c]&&(f[c]=f[c].destroy())});for(var b in f.plotLinesAndBandsGroups)f.plotLinesAndBandsGroups[b]=f.plotLinesAndBandsGroups[b].destroy();c(f,function(c,a){-1===f.getKeepProps().indexOf(a)&&
234
+ delete f[a]});this.eventOptions=k};b.prototype.drawCrosshair=function(c,a){var f=this.crosshair,d=q(f&&f.snap,!0),k=this.chart,b,g=this.cross;l(this,"drawCrosshair",{e:c,point:a});c||(c=this.cross&&this.cross.e);if(f&&!1!==(G(a)||!d)){d?G(a)&&(b=q("colorAxis"!==this.coll?a.crosshairPos:null,this.isXAxis?a.plotX:this.len-a.plotY)):b=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(G(b)){var h={value:a&&(this.isXAxis?a.x:q(a.stackY,a.y)),translatedValue:b};k.polar&&u(h,{isCrosshair:!0,
235
+ chartX:c&&c.chartX,chartY:c&&c.chartY,point:a});h=this.getPlotLinePath(h)||null}if(!G(h)){this.hideCrosshair();return}d=this.categories&&!this.isRadial;g||(this.cross=g=k.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(d?"category ":"thin ")+(f.className||"")).attr({zIndex:q(f.zIndex,2)}).add(),k.styledMode||(g.attr({stroke:f.color||(d?y.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":q(f.width,1)}).css({"pointer-events":"none"}),f.dashStyle&&g.attr({dashstyle:f.dashStyle})));
236
+ g.show().attr({d:h});d&&!f.width&&g.attr({"stroke-width":this.transA});this.cross.e=c}else this.hideCrosshair();l(this,"afterDrawCrosshair",{e:c,point:a})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();l(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};b.prototype.validatePositiveValue=function(c){return f(c)&&0<c};b.prototype.update=function(c,a){var f=this.chart;c=k(this.userOptions,
237
+ c);this.destroy(!0);this.init(f,c);f.isDirtyBox=!0;q(a,!0)&&f.redraw()};b.prototype.remove=function(c){for(var a=this.chart,f=this.coll,d=this.series,k=d.length;k--;)d[k]&&d[k].remove(!1);x(a.axes,this);x(a[f],this);a[f].forEach(function(c,a){c.options.index=c.userOptions.index=a});this.destroy();a.isDirtyBox=!0;q(c,!0)&&a.redraw()};b.prototype.setTitle=function(c,a){this.update({title:c},a)};b.prototype.setCategories=function(c,a){this.update({categories:c},a)};b.defaultOptions=e.defaultXAxisOptions;
238
+ b.keepProps="extKey hcEvents names series userMax userMin".split(" ");return b}();"";return b});I(e,"Core/Axis/DateTimeAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,y=b.getMagnitude,B=b.normalizeTickInterval,v=b.timeUnits,t;(function(b){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function r(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var p=[];b.compose=function(a){-1===p.indexOf(a)&&(p.push(a),
239
+ a.keepProps.push("dateTime"),a.prototype.getTimeTicks=t,e(a,"init",r));return a};var h=function(){function a(a){this.axis=a}a.prototype.normalizeTimeTickInterval=function(a,b){var d=b||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];b=d[d.length-1];var g=v[b[0]],h=b[1],e;for(e=0;e<d.length&&!(b=d[e],g=v[b[0]],h=b[1],d[e+1]&&a<=(g*h[h.length-1]+v[d[e+
240
+ 1][0]])/2);e++);g===v.year&&a<5*g&&(h=[1,2,5]);a=B(a/g,h,"year"===b[0]?Math.max(y(a/g),1):1);return{unitRange:g,count:a,unitName:b[0]}};a.prototype.getXDateFormat=function(a,b){var d=this.axis,g=d.chart.time;return d.closestPointRange?g.getDateFormat(d.closestPointRange,a,d.options.startOfWeek,b)||g.resolveDTLFormat(b.year).main:g.resolveDTLFormat(b.day).main};return a}();b.Additions=h})(t||(t={}));return t});I(e,"Core/Axis/LogarithmicAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,
241
+ y=b.normalizeTickInterval,B=b.pick,v;(function(b){function t(b){var a=this.logarithmic;"logarithmic"!==b.userOptions.type?this.logarithmic=void 0:a||(this.logarithmic=new p(this))}function v(){var b=this.logarithmic;b&&(this.lin2val=function(a){return b.lin2log(a)},this.val2lin=function(a){return b.log2lin(a)})}var r=[];b.compose=function(b){-1===r.indexOf(b)&&(r.push(b),b.keepProps.push("logarithmic"),e(b,"init",t),e(b,"afterInit",v));return b};var p=function(){function b(a){this.axis=a}b.prototype.getLogTickPositions=
242
+ function(a,d,b,h){var g=this.axis,m=g.len,e=g.options,p=[];h||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),p=g.getLinearTickPositions(a,d,b);else if(.08<=a){var C=Math.floor(d),u,l=e=void 0;for(m=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];C<b+1&&!l;C++){var A=m.length;for(u=0;u<A&&!l;u++){var f=this.log2lin(this.lin2log(C)*m[u]);f>d&&(!h||e<=b)&&"undefined"!==typeof e&&p.push(e);e>b&&(l=!0);e=f}}}else d=this.lin2log(d),b=this.lin2log(b),a=h?g.getMinorTickInterval():e.tickInterval,
243
+ a=B("auto"===a?null:a,this.minorAutoInterval,e.tickPixelInterval/(h?5:1)*(b-d)/((h?m/g.tickPositions.length:m)||1)),a=y(a),p=g.getLinearTickPositions(a,d,b).map(this.log2lin),h||(this.minorAutoInterval=a/5);h||(g.tickInterval=a);return p};b.prototype.lin2log=function(a){return Math.pow(10,a)};b.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return b}();b.Additions=p})(v||(v={}));return v});I(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Utilities.js"]],function(b){var e=
244
+ b.erase,y=b.extend,B=b.isNumber,v;(function(b){var t=[],v;b.compose=function(b,h){v||(v=b);-1===t.indexOf(h)&&(t.push(h),y(h.prototype,r.prototype));return h};var r=function(){function b(){}b.prototype.getPlotBandPath=function(b,a,d){void 0===d&&(d=this.options);var g=this.getPlotLinePath({value:a,force:!0,acrossPanes:d.acrossPanes}),h=[],e=this.horiz;a=!B(this.min)||!B(this.max)||b<this.min&&a<this.min||b>this.max&&a>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:d.acrossPanes});d=
245
+ 1;if(b&&g){if(a){var p=b.toString()===g.toString();d=0}for(a=0;a<b.length;a+=2){var r=b[a],x=b[a+1],C=g[a],u=g[a+1];"M"!==r[0]&&"L"!==r[0]||"M"!==x[0]&&"L"!==x[0]||"M"!==C[0]&&"L"!==C[0]||"M"!==u[0]&&"L"!==u[0]||(e&&C[1]===r[1]?(C[1]+=d,u[1]+=d):e||C[2]!==r[2]||(C[2]+=d,u[2]+=d),h.push(["M",r[1],r[2]],["L",x[1],x[2]],["L",u[1],u[2]],["L",C[1],C[2]],["Z"]));h.isFlat=p}}return h};b.prototype.addPlotBand=function(b){return this.addPlotBandOrLine(b,"plotBands")};b.prototype.addPlotLine=function(b){return this.addPlotBandOrLine(b,
246
+ "plotLines")};b.prototype.addPlotBandOrLine=function(b,a){var d=this,g=this.userOptions,h=new v(this,b);this.visible&&(h=h.render());if(h){this._addedPlotLB||(this._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||[]).forEach(function(a){d.addPlotBandOrLine(a)}));if(a){var e=g[a]||[];e.push(b);g[a]=e}this.plotLinesAndBands.push(h)}return h};b.prototype.removePlotBandOrLine=function(b){var a=this.plotLinesAndBands,d=this.options,g=this.userOptions;if(a){for(var h=a.length;h--;)a[h].id===b&&a[h].destroy();
247
+ [d.plotLines||[],g.plotLines||[],d.plotBands||[],g.plotBands||[]].forEach(function(a){for(h=a.length;h--;)(a[h]||{}).id===b&&e(a,a[h])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(v||(v={}));return v});I(e,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[e["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],e["Core/Utilities.js"]],function(b,e){var y=e.arrayMax,B=e.arrayMin,v=e.defined,t=e.destroyObjectProperties,
248
+ F=e.erase,z=e.fireEvent,r=e.merge,p=e.objectEach,h=e.pick;e=function(){function a(a,b){this.axis=a;b&&(this.options=b,this.id=b.id)}a.compose=function(d){return b.compose(a,d)};a.prototype.render=function(){z(this,"render");var a=this,b=a.axis,m=b.horiz,e=b.logarithmic,G=a.options,J=G.color,x=h(G.zIndex,0),C=G.events,u={},l=b.chart.renderer,A=G.label,f=a.label,w=G.to,k=G.from,D=G.value,c=a.svgElem,q=[],E=v(k)&&v(w);q=v(D);var H=!c,Q={"class":"highcharts-plot-"+(E?"band ":"line ")+(G.className||"")},
249
+ L=E?"bands":"lines";e&&(k=e.log2lin(k),w=e.log2lin(w),D=e.log2lin(D));b.chart.styledMode||(q?(Q.stroke=J||"#999999",Q["stroke-width"]=h(G.width,1),G.dashStyle&&(Q.dashstyle=G.dashStyle)):E&&(Q.fill=J||"#e6ebf5",G.borderWidth&&(Q.stroke=G.borderColor,Q["stroke-width"]=G.borderWidth)));u.zIndex=x;L+="-"+x;(e=b.plotLinesAndBandsGroups[L])||(b.plotLinesAndBandsGroups[L]=e=l.g("plot-"+L).attr(u).add());H&&(a.svgElem=c=l.path().attr(Q).add(e));if(q)q=b.getPlotLinePath({value:D,lineWidth:c.strokeWidth(),
250
+ acrossPanes:G.acrossPanes});else if(E)q=b.getPlotBandPath(k,w,G);else return;!a.eventsAdded&&C&&(p(C,function(f,d){c.on(d,function(c){C[d].apply(a,[c])})}),a.eventsAdded=!0);(H||!c.d)&&q&&q.length?c.attr({d:q}):c&&(q?(c.show(),c.animate({d:q})):c.d&&(c.hide(),f&&(a.label=f=f.destroy())));A&&(v(A.text)||v(A.formatter))&&q&&q.length&&0<b.width&&0<b.height&&!q.isFlat?(A=r({align:m&&E&&"center",x:m?!E&&4:10,verticalAlign:!m&&E&&"middle",y:m?E?16:10:E?6:-4,rotation:m&&!E&&90},A),this.renderLabel(A,q,E,
251
+ x)):f&&f.hide();return a};a.prototype.renderLabel=function(a,b,h,e){var d=this.axis,g=d.chart.renderer,m=this.label;m||(this.label=m=g.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(h?"band":"line")+"-label "+(a.className||""),zIndex:e}).add(),d.chart.styledMode||m.css(r({textOverflow:"ellipsis"},a.style)));e=b.xBounds||[b[0][1],b[1][1],h?b[2][1]:b[0][1]];b=b.yBounds||[b[0][2],b[1][2],h?b[2][2]:b[0][2]];h=B(e);g=B(b);m.align(a,
252
+ !1,{x:h,y:g,width:y(e)-h,height:y(b)-g});m.alignValue&&"left"!==m.alignValue||m.css({width:(90===m.rotation?d.height-(m.alignAttr.y-d.top):d.width-(m.alignAttr.x-d.left))+"px"});m.show(!0)};a.prototype.getLabelText=function(a){return v(a.formatter)?a.formatter.call(this):a.text};a.prototype.destroy=function(){F(this.axis.plotLinesAndBands,this);delete this.axis;t(this)};return a}();"";"";return e});I(e,"Core/Tooltip.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],
253
+ e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v){var t=b.format,F=e.doc,z=y.distribute,r=v.addEvent,p=v.clamp,h=v.css,a=v.defined,d=v.discardElement,g=v.extend,m=v.fireEvent,n=v.isArray,G=v.isNumber,J=v.isString,x=v.merge,C=v.pick,u=v.splat,l=v.syncTimeout;b=function(){function b(a,d){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,d)}
254
+ b.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};b.prototype.bodyFormatter=
255
+ function(a){return a.map(function(a){var f=a.series.tooltipOptions;return(f[(a.point.formatPrefix||"point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,f[(a.point.formatPrefix||"point")+"Format"]||"")})};b.prototype.cleanSplit=function(a){this.chart.series.forEach(function(f){var d=f&&f.tt;d&&(!d.isActive||a?f.tt=d.destroy():d.isActive=!1)})};b.prototype.defaultFormatter=function(a){var f=this.points||u(this);var d=[a.tooltipFooterHeaderFormatter(f[0])];d=d.concat(a.bodyFormatter(f));d.push(a.tooltipFooterHeaderFormatter(f[0],
256
+ !0));return d};b.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),d(this.container));v.clearTimeout(this.hideTimer);v.clearTimeout(this.tooltipTimeout)};b.prototype.getAnchor=function(a,d){var f=this.chart,b=f.pointer,c=f.inverted,g=f.plotTop,l=f.plotLeft,h,w,m=0,e=0;a=u(a);this.followPointer&&d?("undefined"===typeof d.chartX&&(d=b.normalize(d)),b=[d.chartX-
257
+ l,d.chartY-g]):a[0].tooltipPos?b=a[0].tooltipPos:(a.forEach(function(a){h=a.series.yAxis;w=a.series.xAxis;m+=a.plotX||0;e+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;w&&h&&(c?(m+=g+f.plotHeight-w.len-w.pos,e+=l+f.plotWidth-h.len-h.pos):(m+=w.pos-l,e+=h.pos-g))}),m/=a.length,e/=a.length,b=[c?f.plotWidth-e:m,c?f.plotHeight-m:e],this.shared&&1<a.length&&d&&(c?b[0]=d.chartX-l:b[1]=d.chartY-g));return b.map(Math.round)};b.prototype.getLabel=function(){var f=this,d=this.chart.styledMode,k=this.options,
258
+ b=this.split&&this.allowShared,c="tooltip"+(a(k.className)?" "+k.className:""),g=k.style.pointerEvents||(!this.followPointer&&k.stickOnContact?"auto":"none"),l=function(){f.inContact=!0},m=function(c){var a=f.chart.hoverSeries;f.inContact=f.shouldStickOnContact()&&f.chart.pointer.inClass(c.relatedTarget,"highcharts-tooltip");if(!f.inContact&&a&&a.onMouseOut)a.onMouseOut()},n,A=this.chart.renderer;if(f.label){var u=!f.label.hasClass("highcharts-label");(b&&!u||!b&&u)&&f.destroy()}if(!this.label){if(this.outside){u=
259
+ this.chart.options.chart.style;var p=B.getRendererType();this.container=n=e.doc.createElement("div");n.className="highcharts-tooltip-container";h(n,{position:"absolute",top:"1px",pointerEvents:g,zIndex:Math.max(this.options.style.zIndex||0,(u&&u.zIndex||0)+3)});r(n,"mouseenter",l);r(n,"mouseleave",m);e.doc.body.appendChild(n);this.renderer=A=new p(n,0,0,u,void 0,void 0,A.styledMode)}b?this.label=A.g(c):(this.label=A.label("",0,0,k.shape,void 0,void 0,k.useHTML,void 0,c).attr({padding:k.padding,r:k.borderRadius}),
260
+ d||this.label.attr({fill:k.backgroundColor,"stroke-width":k.borderWidth}).css(k.style).css({pointerEvents:g}).shadow(k.shadow));d&&k.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(f.outside&&!f.split){var x=this.label,C=x.xSetter,G=x.ySetter;x.xSetter=function(c){C.call(x,f.distance);n.style.left=c+"px"};x.ySetter=function(c){G.call(x,f.distance);n.style.top=c+"px"}}this.label.on("mouseenter",l).on("mouseleave",m).attr({zIndex:8}).add()}return this.label};
261
+ b.prototype.getPosition=function(a,d,k){var f=this.chart,c=this.distance,b={},g=f.inverted&&k.h||0,l=this.outside,h=l?F.documentElement.clientWidth-2*c:f.chartWidth,w=l?Math.max(F.body.scrollHeight,F.documentElement.scrollHeight,F.body.offsetHeight,F.documentElement.offsetHeight,F.documentElement.clientHeight):f.chartHeight,m=f.pointer.getChartPosition(),e=function(b){var g="x"===b;return[b,g?h:w,g?a:d].concat(l?[g?a*m.scaleX:d*m.scaleY,g?m.left-c+(k.plotX+f.plotLeft)*m.scaleX:m.top-c+(k.plotY+f.plotTop)*
262
+ m.scaleY,0,g?h:w]:[g?a:d,g?k.plotX+f.plotLeft:k.plotY+f.plotTop,g?f.plotLeft:f.plotTop,g?f.plotLeft+f.plotWidth:f.plotTop+f.plotHeight])},n=e("y"),u=e("x"),A;e=!!k.negative;!f.polar&&f.hoverSeries&&f.hoverSeries.yAxis&&f.hoverSeries.yAxis.reversed&&(e=!e);var p=!this.followPointer&&C(k.ttBelow,!f.inverted===e),x=function(a,f,d,k,q,h,w){var D=l?"y"===a?c*m.scaleY:c*m.scaleX:c,e=(d-k)/2,E=k<q-c,n=q+c+k<f,u=q-D-d+e;q=q+D-e;if(p&&n)b[a]=q;else if(!p&&E)b[a]=u;else if(E)b[a]=Math.min(w-k,0>u-g?u:u-g);
263
+ else if(n)b[a]=Math.max(h,q+g+d>f?q:q+g);else return!1},r=function(a,f,d,k,g){var q;g<c||g>f-c?q=!1:b[a]=g<d/2?1:g>f-k/2?f-k-2:g-d/2;return q},G=function(c){var a=n;n=u;u=a;A=c},J=function(){!1!==x.apply(0,n)?!1!==r.apply(0,u)||A||(G(!0),J()):A?b.x=b.y=0:(G(!0),J())};(f.inverted||1<this.len)&&G();J();return b};b.prototype.hide=function(a){var f=this;v.clearTimeout(this.hideTimer);a=C(a,this.options.hideDelay);this.isHidden||(this.hideTimer=l(function(){f.getLabel().fadeOut(a?void 0:a);f.isHidden=
264
+ !0},a))};b.prototype.init=function(a,d){this.chart=a;this.options=d;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=d.split&&!a.inverted&&!a.polar;this.shared=d.shared||this.split;this.outside=C(d.outside,!(!a.scrollablePixelsX&&!a.scrollablePixelsY))};b.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};b.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};b.prototype.move=function(a,d,
265
+ k,b){var c=this,f=c.now,l=!1!==c.options.animation&&!c.isHidden&&(1<Math.abs(a-f.x)||1<Math.abs(d-f.y)),h=c.followPointer||1<c.len;g(f,{x:l?(2*f.x+a)/3:a,y:l?(f.y+d)/2:d,anchorX:h?void 0:l?(2*f.anchorX+k)/3:k,anchorY:h?void 0:l?(f.anchorY+b)/2:b});c.getLabel().attr(f);c.drawTracker();l&&(v.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){c&&c.move(a,d,k,b)},32))};b.prototype.refresh=function(a,d){var f=this.chart,b=this.options,c=u(a),g=c[0],l=[],h=b.formatter||this.defaultFormatter,
266
+ w=this.shared,e=f.styledMode,A={};if(b.enabled&&g.series){v.clearTimeout(this.hideTimer);this.allowShared=!(!n(a)&&a.series&&a.series.noSharedTooltip);this.followPointer=!this.split&&g.series.tooltipOptions.followPointer;a=this.getAnchor(a,d);var p=a[0],x=a[1];w&&this.allowShared?(f.pointer.applyInactiveState(c),c.forEach(function(c){c.setState("hover");l.push(c.getLabelConfig())}),A={x:g.category,y:g.y},A.points=l):A=g.getLabelConfig();this.len=l.length;h=h.call(A,this);w=g.series;this.distance=
267
+ C(w.tooltipOptions.distance,16);if(!1===h)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(h,c);else{var r=p,G=x;d&&f.pointer.isDirectTouch&&(r=d.chartX-f.plotLeft,G=d.chartY-f.plotTop);if(f.polar||!1===w.options.clip||c.some(function(c){return c.series.shouldShowTooltip(r,G)}))d=this.getLabel(),b.style.width&&!e||d.css({width:this.chart.spacingBox.width+"px"}),d.attr({text:h&&h.join?h.join(""):h}),d.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+C(g.colorIndex,
268
+ w.colorIndex)),e||d.attr({stroke:b.borderColor||g.color||w.color||"#666666"}),this.updatePosition({plotX:p,plotY:x,negative:g.negative,ttBelow:g.ttBelow,h:a[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}m(this,"refresh")}};b.prototype.renderSplit=function(a,d){function f(c,a,f,d,k){void 0===k&&(k=!0);f?(a=K?0:I,c=p(c-d/2,O.left,O.right-d-(b.outside?N:0))):(a-=aa,c=k?c-d-t:c+t,c=p(c,k?c:O.left,O.right));return{x:c,y:a}}var b=this,c=
269
+ b.chart,q=b.chart,l=q.chartWidth,h=q.chartHeight,m=q.plotHeight,w=q.plotLeft,e=q.plotTop,n=q.pointer,u=q.scrollablePixelsY;u=void 0===u?0:u;var A=q.scrollablePixelsX,x=q.scrollingContainer;x=void 0===x?{scrollLeft:0,scrollTop:0}:x;var r=x.scrollLeft;x=x.scrollTop;var G=q.styledMode,t=b.distance,R=b.options,v=b.options.positioner,O=b.outside&&"number"!==typeof A?F.documentElement.getBoundingClientRect():{left:r,right:r+l,top:x,bottom:x+h},y=b.getLabel(),B=this.renderer||c.renderer,K=!(!c.xAxis[0]||
270
+ !c.xAxis[0].opposite);c=n.getChartPosition();var N=c.left;c=c.top;var aa=e+x,ca=0,I=m-u;J(a)&&(a=[!1,a]);a=a.slice(0,d.length+1).reduce(function(c,a,k){if(!1!==a&&""!==a){k=d[k-1]||{isHeader:!0,plotX:d[0].plotX,plotY:m,series:{}};var g=k.isHeader,q=g?b:k.series;a=a.toString();var l=q.tt,h=k.isHeader;var D=k.series;var E="highcharts-color-"+C(k.colorIndex,D.colorIndex,"none");l||(l={padding:R.padding,r:R.borderRadius},G||(l.fill=R.backgroundColor,l["stroke-width"]=R.borderWidth),l=B.label("",0,0,R[h?
271
+ "headerShape":"shape"],void 0,void 0,R.useHTML).addClass((h?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+E).attr(l).add(y));l.isActive=!0;l.attr({text:a});G||l.css(R.style).shadow(R.shadow).attr({stroke:R.borderColor||k.color||D.color||"#333333"});q=q.tt=l;h=q.getBBox();a=h.width+q.strokeWidth();g&&(ca=h.height,I+=ca,K&&(aa-=ca));D=k.plotX;D=void 0===D?0:D;E=k.plotY;E=void 0===E?0:E;l=k.series;if(k.isHeader){D=w+D;var u=e+m/2}else{var n=l.xAxis,A=l.yAxis;D=n.pos+p(D,-t,n.len+t);l.shouldShowTooltip(0,
272
+ A.pos-e+E,{ignoreX:!0})&&(u=A.pos+E)}D=p(D,O.left-t,O.right+t);"number"===typeof u?(h=h.height+1,E=v?v.call(b,a,h,k):f(D,u,g,a),c.push({align:v?0:void 0,anchorX:D,anchorY:u,boxWidth:a,point:k,rank:C(E.rank,g?1:0),size:h,target:E.y,tt:q,x:E.x})):q.isActive=!1}return c},[]);!v&&a.some(function(c){var a=(b.outside?N:0)+c.anchorX;return a<O.left&&a+c.boxWidth<O.right?!0:a<N-O.left+c.boxWidth&&O.right-a>a})&&(a=a.map(function(c){var a=f(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return g(c,{target:a.y,
273
+ x:a.x})}));b.cleanSplit();z(a,I);var Z=N,da=N;a.forEach(function(c){var a=c.x,f=c.boxWidth;c=c.isHeader;c||(b.outside&&N+a<Z&&(Z=N+a),!c&&b.outside&&Z+f>da&&(da=N+a))});a.forEach(function(c){var a=c.x,f=c.anchorX,d=c.pos,k=c.point.isHeader;d={visibility:"undefined"===typeof d?"hidden":"inherit",x:a,y:d+aa,anchorX:f,anchorY:c.anchorY};if(b.outside&&a<f){var g=N-Z;0<g&&(k||(d.x=a+g,d.anchorX=f+g),k&&(d.x=(da-Z)/2,d.anchorX=f+g))}c.tt.attr(d)});a=b.container;u=b.renderer;b.outside&&a&&u&&(q=y.getBBox(),
274
+ u.setSize(q.width+q.x,q.height+q.y,!1),a.style.left=Z+"px",a.style.top=c+"px")};b.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var a=this.chart,d=this.label,b=this.shared?a.hoverPoints:a.hoverPoint;if(d&&b){var g={x:0,y:0,width:0,height:0};b=this.getAnchor(b);var c=d.getBBox();b[0]+=a.plotLeft-d.translateX;b[1]+=a.plotTop-d.translateY;g.x=Math.min(0,b[0]);g.y=Math.min(0,b[1]);g.width=0>b[0]?Math.max(Math.abs(b[0]),c.width-
275
+ b[0]):Math.max(Math.abs(b[0]),c.width);g.height=0>b[1]?Math.max(Math.abs(b[1]),c.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),c.height);this.tracker?this.tracker.attr(g):(this.tracker=d.renderer.rect(g).addClass("highcharts-tracker").add(d),a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};b.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};
276
+ b.prototype.tooltipFooterHeaderFormatter=function(a,d){var f=a.series,b=f.tooltipOptions,c=f.xAxis,g=c&&c.dateTime;c={isFooter:d,labelConfig:a};var l=b.xDateFormat,h=b[d?"footerFormat":"headerFormat"];m(this,"headerFormatter",c,function(c){g&&!l&&G(a.key)&&(l=g.getXDateFormat(a.key,b.dateTimeLabelFormats));g&&l&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(c){h=h.replace("{point."+c+"}","{point."+c+":"+l+"}")});f.chart.styledMode&&(h=this.styledModeFormat(h));c.text=t(h,{point:a,series:f},
277
+ this.chart)});return c.text};b.prototype.update=function(a){this.destroy();x(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,x(!0,this.options,a))};b.prototype.updatePosition=function(a){var f=this.chart,d=this.options,b=f.pointer,c=this.getLabel();b=b.getChartPosition();var g=(d.positioner||this.getPosition).call(this,c.width,c.height,a),l=a.plotX+f.plotLeft;a=a.plotY+f.plotTop;if(this.outside){d=d.borderWidth+2*this.distance;this.renderer.setSize(c.width+d,c.height+d,!1);if(1!==
278
+ b.scaleX||1!==b.scaleY)h(this.container,{transform:"scale(".concat(b.scaleX,", ").concat(b.scaleY,")")}),l*=b.scaleX,a*=b.scaleY;l+=b.left-g.x;a+=b.top-g.y}this.move(Math.round(g.x),Math.round(g.y||0),l,a)};return b}();"";return b});I(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/DefaultOptions.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(b,e,y,B,v){var t=e.animObject,F=y.defaultOptions,z=B.format,r=v.addEvent,p=v.defined,
279
+ h=v.erase,a=v.extend,d=v.fireEvent,g=v.getNestedProperty,m=v.isArray,n=v.isFunction,G=v.isNumber,J=v.isObject,x=v.merge,C=v.objectEach,u=v.pick,l=v.syncTimeout,A=v.removeEvent,f=v.uniqueKey;e=function(){function e(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.shapeArgs=this.series=void 0;this.visible=!0;this.x=void 0}e.prototype.animateBeforeDestroy=function(){var f=this,
280
+ d={x:f.startXPos,opacity:0},c=f.getGraphicalProps();c.singular.forEach(function(c){f[c]=f[c].animate("dataLabel"===c?{x:f[c].startXPos,y:f[c].startYPos,opacity:0}:d)});c.plural.forEach(function(c){f[c].forEach(function(c){c.element&&c.animate(a({x:f.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};e.prototype.applyOptions=function(f,d){var c=this.series,b=c.options.pointValKey||c.pointValKey;f=e.prototype.optionsToObject.call(this,f);a(this,f);this.options=this.options?a(this.options,
281
+ f):f;f.group&&delete this.group;f.dataLabels&&delete this.dataLabels;b&&(this.y=e.prototype.getNestedProperty.call(this,b));this.formatPrefix=(this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!G(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof d&&c.xAxis&&c.xAxis.hasNames&&(this.x=c.xAxis.nameToX(this));"undefined"===typeof this.x&&c?this.x="undefined"===typeof d?c.autoIncrement():d:G(f.x)&&c.options.relativeXValue&&(this.x=c.autoIncrement(f.x));
282
+ return this};e.prototype.destroy=function(){function a(){if(f.graphic||f.dataLabel||f.dataLabels)A(f),f.destroyElements();for(e in f)f[e]=null}var f=this,c=f.series,d=c.chart;c=c.options.dataSorting;var b=d.hoverPoints,g=t(f.series.chart.renderer.globalAnimation),e;f.legendItem&&d.legend.destroyItem(f);b&&(f.setState(),h(b,f),b.length||(d.hoverPoints=null));if(f===d.hoverPoint)f.onMouseOut();c&&c.enabled?(this.animateBeforeDestroy(),l(a,g.duration)):a();d.pointCount--};e.prototype.destroyElements=
283
+ function(a){var f=this;a=f.getGraphicalProps(a);a.singular.forEach(function(c){f[c]=f[c].destroy()});a.plural.forEach(function(c){f[c].forEach(function(c){c.element&&c.destroy()});delete f[c]})};e.prototype.firePointEvent=function(a,f,c){var b=this,k=this.series.options;(k.point.events[a]||b.options&&b.options.events&&b.options.events[a])&&b.importEvents();"click"===a&&k.allowPointSelect&&(c=function(c){b.select&&b.select(null,c.ctrlKey||c.metaKey||c.shiftKey)});d(b,a,f,c)};e.prototype.getClassName=
284
+ function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};e.prototype.getGraphicalProps=function(a){var f=this,c=[],d={singular:[],plural:[]},b;a=a||{graphic:1,dataLabel:1};
285
+ a.graphic&&c.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&c.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(b=c.length;b--;){var k=c[b];f[k]&&d.singular.push(k)}["dataLabel","connector"].forEach(function(c){var b=c+"s";a[c]&&f[b]&&d.plural.push(b)});return d};e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||
286
+ this.stackTotal}};e.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?g(a,this.options):this[a]};e.prototype.getZone=function(){var a=this.series,f=a.zones;a=a.zoneAxis||"y";var c,d=0;for(c=f[d];this[a]>=c.value;)c=f[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==
287
+ this.shapeType};e.prototype.init=function(a,b,c){this.series=a;this.applyOptions(b,c);this.id=p(this.id)?this.id:f();this.resolveColor();a.chart.pointCount++;d(this,"afterInit");return this};e.prototype.optionsToObject=function(a){var f=this.series,c=f.options.keys,d=c||f.pointArrayMap||["y"],b=d.length,k={},g=0,l=0;if(G(a)||null===a)k[d[0]]=a;else if(m(a))for(!c&&a.length>b&&(f=typeof a[0],"string"===f?k.name=a[0]:"number"===f&&(k.x=a[0]),g++);l<b;)c&&"undefined"===typeof a[g]||(0<d[l].indexOf(".")?
288
+ e.prototype.setNestedProperty(k,a[g],d[l]):k[d[l]]=a[g]),g++,l++;else"object"===typeof a&&(k=a,a.dataLabels&&(f._hasPointLabels=!0),a.marker&&(f._hasPointMarkers=!0));return k};e.prototype.resolveColor=function(){var a=this.series,f=a.chart.styledMode;var c=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!f){c=a.options.colors||a.chart.options.colors;var d=c[a.colorCounter];c=c.length}f=a.colorCounter;a.colorCounter++;a.colorCounter===c&&(a.colorCounter=0)}else f||
289
+ (d=a.color),f=a.colorIndex;this.colorIndex=u(this.options.colorIndex,f);this.color=u(this.options.color,d)};e.prototype.setNestedProperty=function(a,f,c){c.split(".").reduce(function(c,a,d,b){c[a]=b.length-1===d?f:J(c[a],!0)?c[a]:{};return c[a]},a);return a};e.prototype.tooltipFormatter=function(a){var f=this.series,c=f.tooltipOptions,d=u(c.valueDecimals,""),b=c.valuePrefix||"",k=c.valueSuffix||"";f.chart.styledMode&&(a=f.chart.tooltip.styledModeFormat(a));(f.pointArrayMap||["y"]).forEach(function(c){c=
290
+ "{point."+c;if(b||k)a=a.replace(RegExp(c+"}","g"),b+c+"}"+k);a=a.replace(RegExp(c+"}","g"),c+":,."+d+"f}")});return z(a,{point:this,series:this.series},f.chart)};e.prototype.update=function(a,f,c,d){function b(){k.applyOptions(a);var d=l&&k.hasDummyGraphic;d=null===k.y?!d:d;l&&d&&(k.graphic=l.destroy(),delete k.hasDummyGraphic);J(a,!0)&&(l&&l.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(k.graphic=l.destroy()),a&&a.dataLabels&&k.dataLabel&&(k.dataLabel=k.dataLabel.destroy()),k.connector&&
291
+ (k.connector=k.connector.destroy()));e=k.index;g.updateParallelArrays(k,e);q.data[e]=J(q.data[e],!0)||J(a,!0)?k.options:u(a,q.data[e]);g.isDirty=g.isDirtyData=!0;!g.fixedBox&&g.hasCartesianSeries&&(h.isDirtyBox=!0);"point"===q.legendType&&(h.isDirtyLegend=!0);f&&h.redraw(c)}var k=this,g=k.series,l=k.graphic,h=g.chart,q=g.options,e;f=u(f,!0);!1===d?b():k.firePointEvent("update",{options:a},b)};e.prototype.remove=function(a,f){this.series.removePoint(this.series.data.indexOf(this),a,f)};e.prototype.select=
292
+ function(a,f){var c=this,d=c.series,b=d.chart;this.selectedStaging=a=u(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:f},function(){c.selected=c.options.selected=a;d.options.data[d.data.indexOf(c)]=c.options;c.setState(a&&"select");f||b.getSelectedPoints().forEach(function(a){var f=a.series;a.selected&&a!==c&&(a.selected=a.options.selected=!1,f.options.data[f.data.indexOf(a)]=a.options,a.setState(b.hoverPoints&&f.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});
293
+ delete this.selectedStaging};e.prototype.onMouseOver=function(a){var f=this.series.chart,c=f.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,f.inverted);c.runPointActions(a,this)};e.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null};e.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,f=x(a.series.options.point,
294
+ a.options).events;a.events=f;C(f,function(c,f){n(c)&&r(a,f,c)});this.hasImportedEvents=!0}};e.prototype.setState=function(f,g){var c=this.series,k=this.state,l=c.options.states[f||"normal"]||{},h=F.plotOptions[c.type].marker&&c.options.marker,e=h&&!1===h.enabled,m=h&&h.states&&h.states[f||"normal"]||{},w=!1===m.enabled,n=this.marker||{},A=c.chart,D=h&&c.markerAttribs,p=c.halo,x,C=c.stateMarkerGraphic;f=f||"";if(!(f===this.state&&!g||this.selected&&"select"!==f||!1===l.enabled||f&&(w||e&&!1===m.enabled)||
295
+ f&&n.states&&n.states[f]&&!1===n.states[f].enabled)){this.state=f;D&&(x=c.markerAttribs(this,f));if(this.graphic&&!this.hasDummyGraphic){k&&this.graphic.removeClass("highcharts-point-"+k);f&&this.graphic.addClass("highcharts-point-"+f);if(!A.styledMode){var r=c.pointAttribs(this,f);var R=u(A.options.chart.animation,l.animation);c.options.inactiveOtherPoints&&G(r.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:r.opacity},R)}),this.connector&&this.connector.animate({opacity:r.opacity},
296
+ R));this.graphic.animate(r,R)}x&&this.graphic.animate(x,u(A.options.chart.animation,m.animation,h.animation));C&&C.hide()}else{if(f&&m){k=n.symbol||c.symbol;C&&C.currentSymbol!==k&&(C=C.destroy());if(x)if(C)C[g?"animate":"attr"]({x:x.x,y:x.y});else k&&(c.stateMarkerGraphic=C=A.renderer.symbol(k,x.x,x.y,x.width,x.height).add(c.markerGroup),C.currentSymbol=k);!A.styledMode&&C&&"inactive"!==this.state&&C.attr(c.pointAttribs(this,f))}C&&(C[f&&this.isInside?"show":"hide"](),C.element.point=this,C.addClass(this.getClassName(),
297
+ !0))}l=l.halo;x=(C=this.graphic||C)&&C.visibility||"inherit";l&&l.size&&C&&"hidden"!==x&&!this.isCluster?(p||(c.halo=p=A.renderer.path().add(C.parentGroup)),p.show()[g?"animate":"attr"]({d:this.haloPath(l.size)}),p.attr({"class":"highcharts-halo highcharts-color-"+u(this.colorIndex,c.colorIndex)+(this.className?" "+this.className:""),visibility:x,zIndex:-1}),p.point=this,A.styledMode||p.attr(a({fill:this.color||c.color,"fill-opacity":l.opacity},b.filterUserAttributes(l.attributes||{})))):p&&p.point&&
298
+ p.point.haloPath&&p.animate({d:p.point.haloPath(0)},null,p.hide);d(this,"afterSetState",{state:f})}};e.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)};return e}();"";return e});I(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=b.parse,t=e.charts,F=e.noop,z=B.addEvent,r=B.attr,p=B.css,h=B.defined,a=B.extend,d=B.find,g=B.fireEvent,m=
299
+ B.isNumber,n=B.isObject,G=B.objectEach,J=B.offset,x=B.pick,C=B.splat;b=function(){function b(a,b){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=!1;this.options=b;this.init(a,b)}b.prototype.applyInactiveState=function(a){var b=[],f;(a||[]).forEach(function(a){f=a.series;b.push(f);f.linkedParent&&b.push(f.linkedParent);f.linkedSeries&&(b=b.concat(f.linkedSeries));f.navigatorSeries&&b.push(f.navigatorSeries)});this.chart.series.forEach(function(a){-1===
300
+ b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});this.eventsToUnbind=[];e.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);G(a,function(b,f){a[f]=void 0})};b.prototype.drag=function(a){var b=this.chart,
301
+ f=b.options.chart,d=this.zoomHor,k=this.zoomVert,g=b.plotLeft,c=b.plotTop,l=b.plotWidth,h=b.plotHeight,e=this.mouseDownX||0,m=this.mouseDownY||0,u=n(f.panning)?f.panning&&f.panning.enabled:f.panning,p=f.panKey&&a[f.panKey+"Key"],x=a.chartX,C=a.chartY,r=this.selectionMarker;if(!r||!r.touch)if(x<g?x=g:x>g+l&&(x=g+l),C<c?C=c:C>c+h&&(C=c+h),this.hasDragged=Math.sqrt(Math.pow(e-x,2)+Math.pow(m-C,2)),10<this.hasDragged){var G=b.isInsidePlot(e-g,m-c,{visiblePlotOnly:!0});!b.hasCartesianSeries&&!b.mapView||
302
+ !this.zoomX&&!this.zoomY||!G||p||r||(this.selectionMarker=r=b.renderer.rect(g,c,d?1:l,k?1:h,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||r.attr({fill:f.selectionMarkerFill||v("#335cad").setOpacity(.25).get()}));r&&d&&(d=x-e,r.attr({width:Math.abs(d),x:(0<d?0:d)+e}));r&&k&&(d=C-m,r.attr({height:Math.abs(d),y:(0<d?0:d)+m}));G&&!r&&u&&b.pan(a,f.panning)}};b.prototype.dragStart=function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=
303
+ a.chartX;b.mouseDownY=this.mouseDownY=a.chartY};b.prototype.drop=function(b){var d=this,f=this.chart,l=this.hasPinched;if(this.selectionMarker){var k=this.selectionMarker,e=k.attr?k.attr("x"):k.x,c=k.attr?k.attr("y"):k.y,q=k.attr?k.attr("width"):k.width,n=k.attr?k.attr("height"):k.height,u={originalEvent:b,xAxis:[],yAxis:[],x:e,y:c,width:q,height:n},x=!!f.mapView;if(this.hasDragged||l)f.axes.forEach(function(a){if(a.zoomEnabled&&h(a.min)&&(l||d[{xAxis:"zoomX",yAxis:"zoomY"}[a.coll]])&&m(e)&&m(c)){var f=
304
+ a.horiz,k="touchend"===b.type?a.minPixelPadding:0,g=a.toValue((f?e:c)+k);f=a.toValue((f?e+q:c+n)-k);u[a.coll].push({axis:a,min:Math.min(g,f),max:Math.max(g,f)});x=!0}}),x&&g(f,"selection",u,function(c){f.zoom(a(c,l?{animation:!1}:null))});m(f.index)&&(this.selectionMarker=this.selectionMarker.destroy());l&&this.scaleGroups()}f&&m(f.index)&&(p(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=
305
+ function(a,b,f){var d=this.chart,k=d.hoverPoint;d=d.tooltip;if(k&&d&&d.isStickyOnContact())return k;var g;a.forEach(function(a){var c=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(f,c);if((c=n(a,!0)&&a.series)&&!(c=!n(g,!0))){c=g.distX-a.distX;var d=g.dist-a.dist,k=(a.series.group&&a.series.group.zIndex)-(g.series.group&&g.series.group.zIndex);c=0<(0!==c&&b?c:0!==d?d:0!==k?k:g.series.index>a.series.index?-1:1)}c&&(g=a)});return g};b.prototype.getChartCoordinatesFromPoint=
306
+ function(a,b){var f=a.series,d=f.xAxis;f=f.yAxis;var g=a.shapeArgs;if(d&&f){var l=x(a.clientX,a.plotX),c=a.plotY||0;a.isNode&&g&&m(g.x)&&m(g.y)&&(l=g.x,c=g.y);return b?{chartX:f.len+f.pos-c,chartY:d.len+d.pos-l}:{chartX:l+d.pos,chartY:c+f.pos}}if(g&&g.x&&g.y)return{chartX:g.x,chartY:g.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,b=J(a);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var f=a.offsetWidth;a=a.offsetHeight;
307
+ 2<f&&2<a&&(this.chartPosition.scaleX=b.width/f,this.chartPosition.scaleY=b.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var b={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(f){b[f.isXAxis?"xAxis":"yAxis"].push({axis:f,value:f.toValue(a[f.horiz?"chartX":"chartY"])})});return b};b.prototype.getHoverData=function(a,b,f,h,k,e){var c=[];h=!(!h||!a);var l=function(a){return a.visible&&!(!k&&a.directTouch)&&x(a.options.enableMouseTracking,!0)},m={chartX:e?e.chartX:void 0,
308
+ chartY:e?e.chartY:void 0,shared:k};g(this,"beforeGetHoverData",m);var w=b&&!b.stickyTracking?[b]:f.filter(function(a){return a.stickyTracking&&(m.filter||l)(a)});var u=h||!e?a:this.findNearestKDPoint(w,k,e);b=u&&u.series;u&&(k&&!b.noSharedTooltip?(w=f.filter(function(a){return m.filter?m.filter(a):l(a)&&!a.noSharedTooltip}),w.forEach(function(a){var f=d(a.points,function(a){return a.x===u.x&&!a.isNull});n(f)&&(a.boosted&&a.boost&&(f=a.boost.getPoint(f)),c.push(f))})):c.push(u));m={hoverPoint:u};g(this,
309
+ "afterGetHoverData",m);return{hoverPoint:m.hoverPoint,hoverSeries:b,hoverPoints:c}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b};b.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var b=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()};b.prototype.inClass=
310
+ function(a,b){for(var f;a;){if(f=r(a,"class")){if(-1!==f.indexOf(b))return!0;if(-1!==f.indexOf("highcharts-container"))return!1}a=a.parentElement}};b.prototype.init=function(a,b){this.options=b;this.chart=a;this.runChartClick=!(!b.chart.events||!b.chart.events.click);this.pinchDown=[];this.lastValidTouch={};y&&(a.tooltip=new y(a,b.tooltip),this.followTouchMove=x(b.tooltip.followTouchMove,!0));this.setDOMEvents()};b.prototype.normalize=function(b,d){var f=b.touches,g=f?f.length?f.item(0):x(f.changedTouches,
311
+ b.changedTouches)[0]:b;d||(d=this.getChartPosition());f=g.pageX-d.left;g=g.pageY-d.top;f/=d.scaleX;g/=d.scaleY;return a(b,{chartX:Math.round(f),chartY:Math.round(g)})};b.prototype.onContainerClick=function(b){var d=this.chart,f=d.hoverPoint;b=this.normalize(b);var h=d.plotLeft,k=d.plotTop;d.cancelClick||(f&&this.inClass(b.target,"highcharts-tracker")?(g(f.series,"click",a(b,{point:f})),d.hoverPoint&&f.firePointEvent("click",b)):(a(b,this.getCoordinates(b)),d.isInsidePlot(b.chartX-h,b.chartY-k,{visiblePlotOnly:!0})&&
312
+ g(d,"click",b)))};b.prototype.onContainerMouseDown=function(a){var b=1===((a.buttons||a.button)&1);a=this.normalize(a);if(e.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||b)this.zoomOption(a),b&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var d=t[x(b.hoverChartIndex,-1)],f=this.chart.tooltip;f&&f.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),
313
+ d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),f&&!f.isHidden&&this.reset())};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};b.prototype.onContainerMouseMove=function(a){var b=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===b.mouseIsDown||this.touchSelect(a))&&this.drag(a);b.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-
314
+ b.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var d=t[x(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};b.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};b.prototype.onDocumentMouseMove=
315
+ function(a){var b=this.chart,f=this.chartPosition;a=this.normalize(a,f);var d=b.tooltip;!f||d&&d.isStickyOnContact()||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop,{visiblePlotOnly:!0})||this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var d=t[x(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.pinch=function(b){var d=this,f=d.chart,h=d.pinchDown,k=b.touches||[],l=k.length,c=d.lastValidTouch,q=d.hasZoom,e={},m=1===l&&(d.inClass(b.target,
316
+ "highcharts-tracker")&&f.runTrackerClick||d.runChartClick),n={},u=d.selectionMarker;1<l?d.initiated=!0:1===l&&this.followTouchMove&&(d.initiated=!1);q&&d.initiated&&!m&&!1!==b.cancelable&&b.preventDefault();[].map.call(k,function(a){return d.normalize(a)});"touchstart"===b.type?([].forEach.call(k,function(a,c){h[c]={chartX:a.chartX,chartY:a.chartY}}),c.x=[h[0].chartX,h[1]&&h[1].chartX],c.y=[h[0].chartY,h[1]&&h[1].chartY],f.axes.forEach(function(a){if(a.zoomEnabled){var c=f.bounds[a.horiz?"h":"v"],
317
+ b=a.minPixelPadding,d=a.toPixels(Math.min(x(a.options.min,a.dataMin),a.dataMin)),g=a.toPixels(Math.max(x(a.options.max,a.dataMax),a.dataMax)),k=Math.max(d,g);c.min=Math.min(a.pos,Math.min(d,g)-b);c.max=Math.max(a.pos+a.len,k+b)}}),d.res=!0):d.followTouchMove&&1===l?this.runPointActions(d.normalize(b)):h.length&&(g(f,"touchpan",{originalEvent:b},function(){u||(d.selectionMarker=u=a({destroy:F,touch:!0},f.plotBox));d.pinchTranslate(h,k,e,u,n,c);d.hasPinched=q;d.scaleGroups(e,n)}),d.res&&(d.res=!1,this.reset(!1,
318
+ 0)))};b.prototype.pinchTranslate=function(a,b,f,d,g,h){this.zoomHor&&this.pinchTranslateDirection(!0,a,b,f,d,g,h);this.zoomVert&&this.pinchTranslateDirection(!1,a,b,f,d,g,h)};b.prototype.pinchTranslateDirection=function(a,b,f,d,g,h,c,q){var k=this.chart,l=a?"x":"y",e=a?"X":"Y",m="chart"+e,n=a?"width":"height",w=k["plot"+(a?"Left":"Top")],u=k.inverted,D=k.bounds[a?"h":"v"],p=1===b.length,x=b[0][m],A=!p&&b[1][m];b=function(){"number"===typeof J&&20<Math.abs(x-A)&&(G=q||Math.abs(O-J)/Math.abs(x-A));
319
+ r=(w-O)/G+x;C=k["plot"+(a?"Width":"Height")]/G};var C,r,G=q||1,O=f[0][m],J=!p&&f[1][m];b();f=r;if(f<D.min){f=D.min;var t=!0}else f+C>D.max&&(f=D.max-C,t=!0);t?(O-=.8*(O-c[l][0]),"number"===typeof J&&(J-=.8*(J-c[l][1])),b()):c[l]=[O,J];u||(h[l]=r-w,h[n]=C);h=u?1/G:G;g[n]=C;g[l]=f;d[u?a?"scaleY":"scaleX":"scale"+e]=G;d["translate"+e]=h*w+(O-h*x)};b.prototype.reset=function(a,b){var f=this.chart,d=f.hoverSeries,g=f.hoverPoint,h=f.hoverPoints,c=f.tooltip,q=c&&c.shared?h:g;a&&q&&C(q).forEach(function(c){c.series.isCartesian&&
320
+ "undefined"===typeof c.plotX&&(a=!1)});if(a)c&&q&&C(q).length&&(c.refresh(q),c.shared&&h?h.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):g&&(g.setState(g.state,!0),f.axes.forEach(function(a){a.crosshair&&g.series[a.coll]===a&&a.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();h&&h.forEach(function(a){a.setState()});if(d)d.onMouseOut();c&&c.hide(b);
321
+ this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());f.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=f.hoverPoints=f.hoverPoint=null}};b.prototype.runPointActions=function(a,g){var f=this.chart,h=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,k=h?h.shared:!1,l=g||f.hoverPoint,c=l&&l.series||f.hoverSeries;g=this.getHoverData(l,c,f.series,(!a||"touchmove"!==a.type)&&(!!g||c&&c.directTouch&&this.isDirectTouch),k,a);l=g.hoverPoint;c=g.hoverSeries;var q=g.hoverPoints;g=c&&
322
+ c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var e=k&&c&&!c.noSharedTooltip;if(l&&(l!==f.hoverPoint||h&&h.isHidden)){(f.hoverPoints||[]).forEach(function(a){-1===q.indexOf(a)&&a.setState()});if(f.hoverSeries!==c)c.onMouseOver();this.applyInactiveState(q);(q||[]).forEach(function(a){a.setState("hover")});f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!l.series)return;f.hoverPoints=q;f.hoverPoint=l;l.firePointEvent("mouseOver",void 0,function(){h&&l&&h.refresh(e?q:l,a)})}else g&&
323
+ h&&!h.isHidden&&(k=h.getAnchor([{}],a),f.isInsidePlot(k[0],k[1],{visiblePlotOnly:!0})&&h.updatePosition({plotX:k[0],plotY:k[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(f.container.ownerDocument,"mousemove",function(a){var c=t[b.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));f.axes.forEach(function(c){var b=x((c.crosshair||{}).snap,!0),g;b&&((g=f.hoverPoint)&&g.series[c.coll]===c||(g=d(q,function(a){return a.series&&a.series[c.coll]===
324
+ c})));g||!b?c.drawCrosshair(a,g):c.hideCrosshair()})};b.prototype.scaleGroups=function(a,b){var f=this.chart;f.series.forEach(function(d){var g=a||d.getPlotBox();d.group&&(d.xAxis&&d.xAxis.zoomEnabled||f.mapView)&&(d.group.attr(g),d.markerGroup&&(d.markerGroup.attr(g),d.markerGroup.clip(b?f.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(g))});f.clipRect.attr(b||f.clipBox)};b.prototype.setDOMEvents=function(){var a=this,d=this.chart.container,f=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);
325
+ d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(z(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(z(d,"mouseleave",this.onContainerMouseLeave.bind(this)));b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=z(f,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(z(g,"scroll",function(){delete a.chartPosition})),g=
326
+ g.parentElement;e.hasTouch&&(this.eventsToUnbind.push(z(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=z(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,d=e.charts[x(b.hoverChartIndex,-1)];if(d&&d!==a)d.pointer.onContainerMouseLeave({relatedTarget:a.container});
327
+ d&&d.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,b){var f=this.chart,d;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(d=f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop,{visiblePlotOnly:!0}))&&!f.openMenu){b&&this.runPointActions(a);if("touchmove"===a.type){b=this.pinchDown;var g=b[0]?4<=Math.sqrt(Math.pow(b[0].chartX-a.chartX,2)+Math.pow(b[0].chartY-a.chartY,2)):!1}x(g,!0)&&this.pinch(a)}else b&&this.reset();else 2===a.touches.length&&this.pinch(a)};
328
+ b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zooming.singleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var b=this.chart,f=b.options.chart;b=b.inverted;var d=f.zooming.type||"";/touch/.test(a.type)&&(d=x(f.zooming.pinchType,d));this.zoomX=a=/x/.test(d);this.zoomY=f=/y/.test(d);this.zoomHor=a&&!b||f&&b;this.zoomVert=f&&!b||a&&b;this.hasZoom=a||f};return b}();"";return b});I(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],
329
+ function(b,e,y){function B(){var a=[];a.item=function(a){return this[a]};d(m,function(b){a.push({pageX:b.pageX,pageY:b.pageY,target:b.target})});return a}function v(a,b,d,g){var h=F[e.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!h||(h=h.pointer,g(a),h[b]({type:d,target:a.currentTarget,preventDefault:r,touches:B()}))}var t=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
330
+ b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),F=b.charts,z=b.doc,r=b.noop,p=b.win,h=y.addEvent,a=y.css,d=y.objectEach,g=y.removeEvent,m={},n=!!p.PointerEvent;return function(d){function e(){return null!==d&&d.apply(this,arguments)||this}t(e,d);e.isRequired=function(){return!(b.hasTouch||!p.PointerEvent&&!p.MSPointerEvent)};e.prototype.batchMSEvents=
331
+ function(a){a(this.chart.container,n?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,n?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(z,n?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};e.prototype.destroy=function(){this.batchMSEvents(g);d.prototype.destroy.call(this)};e.prototype.init=function(b,g){d.prototype.init.call(this,b,g);this.hasZoom&&a(b.container,{"-ms-touch-action":"none","touch-action":"none"})};e.prototype.onContainerPointerDown=
332
+ function(a){v(a,"onContainerTouchStart","touchstart",function(a){m[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};e.prototype.onContainerPointerMove=function(a){v(a,"onContainerTouchMove","touchmove",function(a){m[a.pointerId]={pageX:a.pageX,pageY:a.pageY};m[a.pointerId].target||(m[a.pointerId].target=a.currentTarget)})};e.prototype.onDocumentPointerUp=function(a){v(a,"onDocumentTouchEnd","touchend",function(a){delete m[a.pointerId]})};e.prototype.setDOMEvents=function(){d.prototype.setDOMEvents.call(this);
333
+ (this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)};return e}(e)});I(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t){var F=b.animObject,z=b.setAnimation,r=e.format;b=y.isFirefox;var p=y.marginNames;y=y.win;var h=v.distribute,a=t.addEvent,d=t.createElement,g=t.css,m=t.defined,n=t.discardElement,G=t.find,J=t.fireEvent,
334
+ x=t.isNumber,C=t.merge,u=t.pick,l=t.relativeLength,A=t.stableSort,f=t.syncTimeout;v=t.wrap;t=function(){function b(a,b){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=
335
+ void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,b)}b.prototype.init=function(b,f){this.chart=b;this.setOptions(f);f.enabled&&(this.render(),a(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=a(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(a){var b=u(a.padding,
336
+ 8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=C(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=u(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(a,b){var c=this.chart;this.setOptions(C(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=
337
+ !0;u(b,!0)&&c.redraw();J(this,"afterUpdate")};b.prototype.colorizeItem=function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var c=this.options,f=a.legendItem,d=a.legendLine,g=a.legendSymbol,k=this.itemHiddenStyle.color;c=b?c.itemStyle.color:k;var h=b?a.color||k:k,e=a.options&&a.options.marker,l={fill:h};f&&f.css({fill:c,color:c});d&&d.attr({stroke:h});g&&(e&&g.isMarker&&(l=a.pointAttribs(),b||(l.stroke=l.fill=k)),g.attr(l))}J(this,"afterColorizeItem",
338
+ {item:a,visible:b})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(a){var b=this,c=this.options,f=c.symbolPadding,d=!c.rtl,g=a._legendItemPos;c=g[0];g=g[1];var k=a.checkbox,h=a.legendGroup;h&&h.element&&(f={translateX:d?c:this.legendWidth-c-2*f-4,translateY:g},d=function(){J(b,"afterPositionItem",{item:a})},m(h.translateY)?h.animate(f,void 0,d):(h.attr(f),d()));k&&(k.x=c,k.y=g)};
339
+ b.prototype.destroyItem=function(a){var b=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&(a[c]=a[c].destroy())});b&&n(a.checkbox)};b.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(b){["legendItem","legendGroup"].forEach(a,b)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};b.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,
340
+ b=this.clipHeight||this.legendHeight,c=this.titleHeight;if(a){var f=a.translateY;this.allItems.forEach(function(d){var k=d.checkbox;if(k){var h=f+c+k.y+(this.scrollOffset||0)+3;g(k,{left:a.translateX+d.checkboxOffset+k.x-20+"px",top:h+"px",display:this.proximate||h>f-6&&h<f+b-6?"":"none"})}},this)}};b.prototype.renderTitle=function(){var a=this.options,b=this.padding,c=a.title,f=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,b-3,b-4,void 0,void 0,void 0,a.useHTML,void 0,"legend-title").attr({zIndex:1}),
341
+ this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),f=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:f}));this.titleHeight=f};b.prototype.setText=function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?r(b.labelFormat,a,this.chart):b.labelFormatter.call(a)})};b.prototype.renderItem=function(a){var b=this.chart,c=b.renderer,f=this.options,d=this.symbolWidth,g=f.symbolPadding||
342
+ 0,k=this.itemStyle,h=this.itemHiddenStyle,e="horizontal"===f.layout?u(f.itemDistance,20):0,l=!f.rtl,m=!a.series,n=!m&&a.series.drawLegendSymbol?a.series:a,w=n.options,p=this.createCheckboxForItem&&w&&w.showCheckbox,x=f.useHTML,A=a.options.className,r=a.legendItem;w=d+g+e+(p?20:0);r||(a.legendGroup=c.g("legend-item").addClass("highcharts-"+n.type+"-series highcharts-color-"+a.colorIndex+(A?" "+A:"")+(m?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=r=c.text("",
343
+ l?d+g:-g,this.baseline||0,x),b.styledMode||r.css(C(a.visible?k:h)),r.attr({align:l?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(b.styledMode?12:k.fontSize,r),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,r.attr("y",this.baseline),this.symbolHeight=f.symbolHeight||this.fontMetrics.f,f.squareSymbol&&(this.symbolWidth=u(f.symbolWidth,Math.max(this.symbolHeight,16)),w=this.symbolWidth+g+e+(p?20:0),l&&r.attr("x",this.symbolWidth+g))),n.drawLegendSymbol(this,
344
+ a),this.setItemEvents&&this.setItemEvents(a,r,x));p&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!b.styledMode&&k.width||r.css({width:(f.itemWidth||this.widthOption||b.spacingBox.width)-w+"px"});this.setText(a);b=r.getBBox();c=this.fontMetrics&&this.fontMetrics.h||0;a.itemWidth=a.checkboxOffset=f.itemWidth||a.legendItemWidth||b.width+w;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=
345
+ a.itemHeight=Math.round(a.legendItemHeight||(b.height>1.5*c?b.height:c))};b.prototype.layoutItem=function(a){var b=this.options,c=this.padding,f="horizontal"===b.layout,d=a.itemHeight,g=this.itemMarginBottom,k=this.itemMarginTop,h=f?u(b.itemDistance,20):0,e=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>e?this.maxItemWidth:a.itemWidth;f&&this.itemX-c+b>e&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=k+this.lastLineHeight+g),this.lastLineHeight=0);this.lastItemY=k+this.itemY+g;this.lastLineHeight=
346
+ Math.max(d,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];f?this.itemX+=b:(this.itemY+=k+d+g,this.lastLineHeight=d);this.offsetWidth=this.widthOption||Math.max((f?this.itemX-c-(a.checkbox?0:h):b)+c,this.offsetWidth)};b.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(b){var c=b&&b.options;b&&u(c.showInLegend,m(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});J(this,"afterGetAllItems",{allItems:a});return a};b.prototype.getAlignment=
347
+ function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};b.prototype.adjustMargins=function(a,b){var c=this.chart,f=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,k){g.test(d)&&!m(a[k])&&(c[p[k]]=Math.max(c[p[k]],c.legend[(k+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][k]*f[k%2?"x":"y"]+u(f.margin,12)+b[k]+(c.titleOffset[k]||0)))})};
348
+ b.prototype.proximatePositions=function(){var a=this.chart,b=[],c="left"===this.options.align;this.allItems.forEach(function(f){var d;var g=c;if(f.yAxis){f.xAxis.options.reversed&&(g=!g);f.points&&(d=G(g?f.points:f.points.slice(0).reverse(),function(a){return x(a.plotY)}));g=this.itemMarginTop+f.legendItem.getBBox().height+this.itemMarginBottom;var k=f.yAxis.top-a.plotTop;f.visible?(d=d?d.plotY:f.yAxis.height,d+=k-.3*g):d=k+f.yAxis.height;b.push({target:d,size:g,item:f})}},this);h(b,a.plotHeight).forEach(function(c){c.item._legendItemPos&&
349
+ c.pos&&(c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos)})};b.prototype.render=function(){var a=this.chart,b=a.renderer,c=this.options,f=this.padding,d=this.getAllItems(),g=this.group,h=this.box;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=l(c.width,a.spacingBox.width-f);var e=a.spacingBox.width-2*f-c.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(e/=2);this.maxLegendWidth=this.widthOption||e;g||(this.group=g=b.g("legend").addClass(c.className||
350
+ "").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(g),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();A(d,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});c.reversed&&d.reverse();this.allItems=d;this.display=e=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;d.forEach(this.renderItem,this);d.forEach(this.layoutItem,this);d=(this.widthOption||this.offsetWidth)+f;var m=this.lastItemY+
351
+ this.lastLineHeight+this.titleHeight;m=this.handleOverflow(m);m+=f;h||(this.box=h=b.rect().addClass("highcharts-legend-box").attr({r:c.borderRadius}).add(g));a.styledMode||h.attr({stroke:c.borderColor,"stroke-width":c.borderWidth||0,fill:c.backgroundColor||"none"}).shadow(c.shadow);if(0<d&&0<m)h[h.placed?"animate":"attr"](h.crisp.call({},{x:0,y:0,width:d,height:m},h.strokeWidth()));g[e?"show":"hide"]();a.styledMode&&"none"===g.getStyle("display")&&(d=m=0);this.legendWidth=d;this.legendHeight=m;e&&
352
+ this.align();this.proximate||this.positionItems();J(this,"afterRender")};b.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var b=this.chart,c=this.options,f=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<b.titleOffset[0]?f+=b.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<b.titleOffset[2]&&(f-=b.titleOffset[2]);f!==a.y&&(a=C(a,{y:f}));b.hasRendered||(this.group.placed=!1);this.group.align(C(c,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?
353
+ "top":c.verticalAlign}),!0,a)};b.prototype.handleOverflow=function(a){var b=this,c=this.chart,f=c.renderer,d=this.options,g=d.y,h="top"===d.verticalAlign,k=this.padding,e=d.maxHeight,l=d.navigation,m=u(l.animation,!0),n=l.arrowSize||12,w=this.pages,p=this.allItems,x=function(a){"number"===typeof a?J.attr({height:a}):J&&(b.clipRect=J.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+k+"px,9999px,"+(k+a)+"px,0)":"auto")},A=function(a){b[a]=f.circle(0,0,1.3*
354
+ n).translate(n/2,n/2).add(G);c.styledMode||b[a].attr("fill","rgba(0,0,0,0.0001)");return b[a]},C,r;g=c.spacingBox.height+(h?-g:g)-k;var G=this.nav,J=this.clipRect;"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(g/=2);e&&(g=Math.min(g,e));w.length=0;a&&0<g&&a>g&&!1!==l.enabled?(this.clipHeight=C=Math.max(g-20-this.titleHeight-k,0),this.currentPage=u(this.currentPage,1),this.fullHeight=a,p.forEach(function(a,c){var b=a._legendItemPos[1],f=Math.round(a.legendItem.getBBox().height),
355
+ d=w.length;if(!d||b-w[d-1]>C&&(r||b)!==w[d-1])w.push(r||b),d++;a.pageIx=d-1;r&&(p[c-1].pageIx=d-1);c===p.length-1&&b+f-w[d-1]>C&&f<=C&&(w.push(b),a.pageIx=d);b!==r&&(r=b)}),J||(J=b.clipRect=f.clipRect(0,k,9999,0),b.contentGroup.clip(J)),x(C),G||(this.nav=G=f.g().attr({zIndex:1}).add(this.group),this.up=f.symbol("triangle",0,0,n,n).add(G),A("upTracker").on("click",function(){b.scroll(-1,m)}),this.pager=f.text("",15,10).addClass("highcharts-legend-navigation"),!c.styledMode&&l.style&&this.pager.css(l.style),
356
+ this.pager.add(G),this.down=f.symbol("triangle-down",0,0,n,n).add(G),A("downTracker").on("click",function(){b.scroll(1,m)})),b.scroll(0),a=g):G&&(x(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};b.prototype.scroll=function(a,b){var c=this,d=this.chart,g=this.pages,h=g.length,k=this.clipHeight,e=this.options.navigation,l=this.pager,m=this.padding,n=this.currentPage+a;n>h&&(n=h);0<n&&("undefined"!==typeof b&&z(b,d),this.nav.attr({translateX:m,translateY:k+
357
+ this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:n+"/"+h}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":n===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),d.styledMode||(this.up.attr({fill:1===n?e.inactiveColor:e.activeColor}),this.upTracker.css({cursor:1===n?"default":
358
+ "pointer"}),this.down.attr({fill:n===h?e.inactiveColor:e.activeColor}),this.downTracker.css({cursor:n===h?"default":"pointer"})),this.scrollOffset=-g[n-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=n,this.positionCheckboxes(),a=F(u(b,d.renderer.globalAnimation,!0)),f(function(){J(c,"afterScroll",{currentPage:n})},a.duration))};b.prototype.setItemEvents=function(a,b,c){var f=this,d=f.chart.renderer.boxWrapper,g=a instanceof B,h="highcharts-legend-"+
359
+ (g?"point":"series")+"-active",k=f.chart.styledMode,e=function(c){f.allItems.forEach(function(b){a!==b&&[b].concat(b.linkedSeries||[]).forEach(function(a){a.setState(c,!g)})})};(c?[b,a.legendSymbol]:[a.legendGroup]).forEach(function(c){if(c)c.on("mouseover",function(){a.visible&&e("inactive");a.setState("hover");a.visible&&d.addClass(h);k||b.css(f.options.itemHoverStyle)}).on("mouseout",function(){f.chart.styledMode||b.css(C(a.visible?f.itemStyle:f.itemHiddenStyle));e("");d.removeClass(h);a.setState()}).on("click",
360
+ function(c){var b=function(){a.setVisible&&a.setVisible();e(a.visible?"inactive":"")};d.removeClass(h);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,b):J(a,"legendItemClick",c,b)})})};b.prototype.createCheckboxForItem=function(b){b.checkbox=d("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:b.selected,defaultChecked:b.selected},this.options.itemCheckboxStyle,this.chart.container);a(b.checkbox,"click",function(a){J(b.series||b,"checkboxClick",{checked:a.target.checked,
361
+ item:b},function(){b.select()})})};return b}();(/Trident\/7\.0/.test(y.navigator&&y.navigator.userAgent)||b)&&v(t.prototype,"positionItem",function(a,b){var f=this,c=function(){b._legendItemPos&&a.call(f,b)};c();f.bubbleLegend||setTimeout(c)});"";return t});I(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/DefaultOptions.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=e.defaultOptions,t=B.extendClass,F=B.merge,z;(function(e){function p(b,a){var d=v.plotOptions||
362
+ {},g=a.defaultOptions,h=a.prototype;h.type=b;h.pointClass||(h.pointClass=y);g&&(d[b]=g);e.seriesTypes[b]=a}e.seriesTypes=b.seriesTypes;e.registerSeriesType=p;e.seriesType=function(b,a,d,g,m){var h=v.plotOptions||{};a=a||"";h[b]=F(h[a],d);p(b,t(e.seriesTypes[a]||function(){},g));e.seriesTypes[b].prototype.type=b;m&&(e.seriesTypes[b].prototype.pointClass=t(y,m));return e.seriesTypes[b]}})(z||(z={}));return z});I(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],
363
+ e["Core/FormatUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/Legend.js"],e["Core/MSPointer.js"],e["Core/DefaultOptions.js"],e["Core/Pointer.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"]],function(b,e,y,B,v,t,F,z,r,p,h,a,d,g,m){var n=b.animate,G=b.animObject,J=b.setAnimation,x=y.numberFormat,C=B.registerEventOptions,u=v.charts,l=
364
+ v.doc,A=v.marginNames,f=v.svg,w=v.win,k=z.defaultOptions,D=z.defaultTime,c=h.seriesTypes,q=g.addEvent,E=g.attr,H=g.cleanRecursively,K=g.createElement,L=g.css,S=g.defined,V=g.discardElement,P=g.erase,M=g.error,ba=g.extend,ea=g.find,I=g.fireEvent,fa=g.getStyle,R=g.isArray,X=g.isNumber,O=g.isObject,U=g.isString,T=g.merge,Y=g.objectEach,N=g.pick,aa=g.pInt,ca=g.relativeLength,ia=g.removeEvent,Z=g.splat,da=g.syncTimeout,ja=g.uniqueKey;b=function(){function b(a,c,b){this.series=this.renderTo=this.renderer=
365
+ this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(a,
366
+ c,b)}b.chart=function(a,c,f){return new b(a,c,f)};b.prototype.getArgs=function(a,c,b){U(a)||a.nodeName?(this.renderTo=a,this.init(c,b)):this.init(a,c)};b.prototype.init=function(a,c){var b=a.plotOptions||{};I(this,"init",{args:arguments},function(){var f=T(k,a),g=f.chart;Y(f.plotOptions,function(a,c){O(a)&&(a.tooltip=b[c]&&T(b[c].tooltip)||void 0)});f.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=[];this.bounds={h:{},
367
+ v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;var h=g.zooming=g.zooming||{};a.chart&&!a.chart.zooming&&(h.resetButton=g.resetZoomButton);h.key=N(h.key,g.zoomKey);h.pinchType=N(h.pinchType,g.pinchType);h.singleTouch=N(h.singleTouch,g.zoomBySingleTouch);h.type=N(h.type,g.zoomType);this.options=f;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new d(a.time):v.time;this.numberFormatter=g.numberFormatter||x;this.styledMode=g.styledMode;this.hasCartesianSeries=
368
+ g.showAxes;this.index=u.length;u.push(this);v.chartCount++;C(this,g);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;I(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(a){var b=this.options.chart;b=a.type||b.type||b.defaultSeriesType;var f=c[b];f||M(17,!0,this,{missingModuleFor:b});b=new f;"function"===typeof b.init&&b.init(this,a);return b};b.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||
369
+ !a.enabledDataSorting||a.setData(a.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};b.prototype.orderSeries=function(a){var c=this.series;a=a||0;for(var b=c.length;a<b;++a)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};b.prototype.isInsidePlot=function(a,c,b){void 0===b&&(b={});var f=this.inverted,d=this.plotBox,g=this.plotLeft,h=this.plotTop,
370
+ k=this.scrollablePlotBox,e=0;var l=0;b.visiblePlotOnly&&this.scrollingContainer&&(l=this.scrollingContainer,e=l.scrollLeft,l=l.scrollTop);var m=b.series;d=b.visiblePlotOnly&&k||d;k=b.inverted?c:a;c=b.inverted?a:c;a={x:k,y:c,isInsidePlot:!0};if(!b.ignoreX){var q=m&&(f?m.yAxis:m.xAxis)||{pos:g,len:Infinity};k=b.paneCoordinates?q.pos+k:g+k;k>=Math.max(e+g,q.pos)&&k<=Math.min(e+g+d.width,q.pos+q.len)||(a.isInsidePlot=!1)}!b.ignoreY&&a.isInsidePlot&&(f=m&&(f?m.xAxis:m.yAxis)||{pos:h,len:Infinity},b=b.paneCoordinates?
371
+ f.pos+c:h+c,b>=Math.max(l+h,f.pos)&&b<=Math.min(l+h+d.height,f.pos+f.len)||(a.isInsidePlot=!1));I(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){I(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],b=this.series,f=this.pointer,d=this.legend,g=this.userOptions.legend,h=this.renderer,k=h.isHidden(),e=[],l=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);J(this.hasRendered?a:!1,this);k&&this.temporaryDisplay();
372
+ this.layOutTitles();for(a=b.length;a--;){var q=b[a];if(q.options.stacking||q.options.centerInCategory){var n=!0;if(q.isDirty){var u=!0;break}}}if(u)for(a=b.length;a--;)q=b[a],q.options.stacking&&(q.isDirty=!0);b.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),m=!0):g&&(g.labelFormatter||g.labelFormat)&&(m=!0));a.isDirtyData&&I(a,"updatedData")});m&&d&&d.options.enabled&&(d.render(),this.isDirtyLegend=!1);n&&this.getStacks();c.forEach(function(a){a.updateNames();
373
+ a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(l=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,e.push(function(){I(a,"afterSetExtremes",ba(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(l||n)&&a.redraw()});l&&this.drawChartBox();I(this,"predraw");b.forEach(function(a){(l||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});f&&f.reset(!0);h.draw();I(this,"redraw");I(this,"render");k&&this.temporaryDisplay(!0);e.forEach(function(a){a.call()})};
374
+ b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var b=this.series,f=ea(this.axes,c)||ea(this.series,c),d=0;!f&&d<b.length;d++)f=ea(b[d].points||[],c);return f};b.prototype.getAxes=function(){var a=this,c=this.options,b=c.xAxis=Z(c.xAxis||{});c=c.yAxis=Z(c.yAxis||{});I(this,"getAxes");b.forEach(function(a,c){a.index=c;a.isX=!0});c.forEach(function(a,c){a.index=c});b.concat(c).forEach(function(c){new e(a,c)});I(this,"afterGetAxes")};b.prototype.getSelectedPoints=
375
+ function(){return this.series.reduce(function(a,c){c.getPointsCollection().forEach(function(c){N(c.selectedStaging,c.selected)&&a.push(c)});return a},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};b.prototype.setTitle=function(a,c,b){this.applyDescription("title",a);this.applyDescription("subtitle",c);this.applyDescription("caption",void 0);this.layOutTitles(b)};b.prototype.applyDescription=function(a,c){var b=this,f="title"===a?{color:"#333333",
376
+ fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};f=this.options[a]=T(!this.styledMode&&{style:f},this.options[a],c);var d=this[a];d&&c&&(this[a]=d=d.destroy());f&&!d&&(d=this.renderer.text(f.text,0,0,f.useHTML).attr({align:f.align,"class":"highcharts-"+a,zIndex:f.zIndex||4}).add(),d.update=function(c){b[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},this.styledMode||d.css(f.style),this[a]=d)};b.prototype.layOutTitles=function(a){var c=[0,0,0],b=this.renderer,
377
+ f=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var d=this[a],g=this.options[a],h=g.verticalAlign||"top";a="title"===a?"top"===h?-3:0:"top"===h?c[0]+2:0;var k;if(d){this.styledMode||(k=g.style&&g.style.fontSize);k=b.fontMetrics(k,d).b;d.css({width:(g.width||f.width+(g.widthAdjust||0))+"px"});var e=Math.round(d.getBBox(g.useHTML).height);d.align(ba({y:"bottom"===h?k:a+k,height:e},g),!1,"spacingBox");g.floating||("top"===h?c[0]=Math.ceil(c[0]+e):"bottom"===h&&(c[2]=Math.ceil(c[2]+
378
+ e)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var d=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;I(this,"afterLayOutTitles");!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&N(a,!0)&&this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;
379
+ var b=this.renderTo;S(c)||(this.containerWidth=fa(b,"width"));S(a)||(this.containerHeight=fa(b,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ca(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&(L(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(l.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){l.body.contains(c)||
380
+ c.parentNode||(c.hcOrigDetached=!0,l.body.appendChild(c));if("none"===fa(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),L(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===l.body)break}};b.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};b.prototype.getContainer=function(){var c=
381
+ this.options,b=c.chart,d=ja(),g,h=this.renderTo;h||(this.renderTo=h=b.renderTo);U(h)&&(this.renderTo=h=l.getElementById(h));h||M(13,!0,this);var k=aa(E(h,"data-highcharts-chart"));X(k)&&u[k]&&u[k].hasRendered&&u[k].destroy();E(h,"data-highcharts-chart",this.index);h.innerHTML=m.emptyHTML;b.skipClone||h.offsetWidth||this.temporaryDisplay();this.getChartSize();k=this.chartWidth;var e=this.chartHeight;L(h,{overflow:"hidden"});this.styledMode||(g=ba({position:"relative",overflow:"hidden",width:k+"px",
382
+ height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=d=K("div",{id:d},g,h);this._cursor=d.style.cursor;this.renderer=new (b.renderer||!f?p.getRendererType(b.renderer):a)(d,k,e,void 0,b.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);J(void 0,this);this.setClassName(b.className);if(this.styledMode)for(var q in c.defs)this.renderer.definition(c.defs[q]);
383
+ else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;I(this,"afterGetContainer")};b.prototype.getMargins=function(a){var c=this.spacing,b=this.margin,f=this.titleOffset;this.resetMargins();f[0]&&!S(b[0])&&(this.plotTop=Math.max(this.plotTop,f[0]+c[0]));f[2]&&!S(b[2])&&(this.marginBottom=Math.max(this.marginBottom,f[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(b,c);I(this,"getMargins");a||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var a=
384
+ this,c=a.axisOffset=[0,0,0,0],b=a.colorAxis,f=a.margin,d=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?d(a.axes):b&&b.length&&d(b);A.forEach(function(b,d){S(f[d])||(a[b]+=c[d])});a.setChartSize()};b.prototype.reflow=function(a){var c=this,b=c.options.chart,f=c.renderTo,d=S(b.width)&&S(b.height),h=b.width||fa(f,"width");b=b.height||fa(f,"height");f=a?a.target:w;delete c.pointer.chartPosition;if(!d&&!c.isPrinting&&h&&b&&(f===w||f===l)){if(h!==c.containerWidth||b!==
385
+ c.containerHeight)g.clearTimeout(c.reflowTimeout),c.reflowTimeout=da(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=h;c.containerHeight=b}};b.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=q(w,"resize",function(a){c.options&&c.reflow(a)}),q(this,"destroy",this.unbindReflow))};b.prototype.setSize=function(a,c,b){var f=this,d=f.renderer;f.isResizing+=1;J(b,f);b=
386
+ d.globalAnimation;f.oldChartHeight=f.chartHeight;f.oldChartWidth=f.chartWidth;"undefined"!==typeof a&&(f.options.chart.width=a);"undefined"!==typeof c&&(f.options.chart.height=c);f.getChartSize();f.styledMode||(b?n:L)(f.container,{width:f.chartWidth+"px",height:f.chartHeight+"px"},b);f.setChartSize(!0);d.setSize(f.chartWidth,f.chartHeight,b);f.axes.forEach(function(a){a.isDirty=!0;a.setScale()});f.isDirtyLegend=!0;f.isDirtyBox=!0;f.layOutTitles();f.getMargins();f.redraw(b);f.oldChartHeight=null;I(f,
387
+ "resize");da(function(){f&&I(f,"endResize",null,function(){--f.isResizing})},G(b).duration)};b.prototype.setChartSize=function(a){var c=this.inverted,b=this.renderer,f=this.chartWidth,d=this.chartHeight,g=this.options.chart,h=this.spacing,k=this.clipOffset,e,l,m,q;this.plotLeft=e=Math.round(this.plotLeft);this.plotTop=l=Math.round(this.plotTop);this.plotWidth=m=Math.max(0,Math.round(f-e-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(d-l-this.marginBottom));this.plotSizeX=c?q:m;this.plotSizeY=
388
+ c?m:q;this.plotBorderWidth=g.plotBorderWidth||0;this.spacingBox=b.spacingBox={x:h[3],y:h[0],width:f-h[3]-h[1],height:d-h[0]-h[2]};this.plotBox=b.plotBox={x:e,y:l,width:m,height:q};c=2*Math.floor(this.plotBorderWidth/2);f=Math.ceil(Math.max(c,k[3])/2);d=Math.ceil(Math.max(c,k[0])/2);this.clipBox={x:f,y:d,width:Math.floor(this.plotSizeX-Math.max(c,k[1])/2-f),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,k[2])/2-d))};a||(this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()}),
389
+ b.alignElements());I(this,"afterSetChartSize",{skipAxes:a})};b.prototype.resetMargins=function(){I(this,"resetMargins");var a=this,c=a.options.chart;["margin","spacing"].forEach(function(b){var f=c[b],d=O(f)?f:[f,f,f,f];["Top","Right","Bottom","Left"].forEach(function(f,g){a[b][g]=N(c[b+f],d[g])})});A.forEach(function(c,b){a[c]=N(a.margin[b],a.spacing[b])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,b=this.chartWidth,
390
+ f=this.chartHeight,d=this.styledMode,g=this.plotBGImage,h=a.backgroundColor,k=a.plotBackgroundColor,e=a.plotBackgroundImage,l=this.plotLeft,m=this.plotTop,q=this.plotWidth,n=this.plotHeight,u=this.plotBox,w=this.clipRect,p=this.clipBox,E=this.chartBackground,x=this.plotBackground,C=this.plotBorder,A,D="animate";E||(this.chartBackground=E=c.rect().addClass("highcharts-background").add(),D="attr");if(d)var r=A=E.strokeWidth();else{r=a.borderWidth||0;A=r+(a.shadow?8:0);h={fill:h||"none"};if(r||E["stroke-width"])h.stroke=
391
+ a.borderColor,h["stroke-width"]=r;E.attr(h).shadow(a.shadow)}E[D]({x:A/2,y:A/2,width:b-A-r%2,height:f-A-r%2,r:a.borderRadius});D="animate";x||(D="attr",this.plotBackground=x=c.rect().addClass("highcharts-plot-background").add());x[D](u);d||(x.attr({fill:k||"none"}).shadow(a.plotShadow),e&&(g?(e!==g.attr("href")&&g.attr("href",e),g.animate(u)):this.plotBGImage=c.image(e,l,m,q,n).add()));w?w.animate({width:p.width,height:p.height}):this.clipRect=c.clipRect(p);D="animate";C||(D="attr",this.plotBorder=
392
+ C=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());d||C.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});C[D](C.crisp({x:l,y:m,width:q,height:n},-C.strokeWidth()));this.isDirtyBox=!1;I(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var a=this,b=a.options.chart,f=a.options.series,d,g,h;["inverted","angular","polar"].forEach(function(k){g=c[b.type||b.defaultSeriesType];h=b[k]||g&&g.prototype[k];for(d=f&&f.length;!h&&d--;)(g=c[f[d].type])&&
393
+ g.prototype[k]&&(h=!0);a[k]=h})};b.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var b=c.options.linkedTo;U(b)&&(b=":previous"===b?a.series[c.index-1]:a.get(b))&&b.linkedParent!==c&&(b.linkedSeries.push(c),c.linkedParent=b,b.enabledDataSorting&&c.setDataSortingOptions(),c.visible=N(c.options.visible,b.options.visible,c.visible))});I(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
394
+ a.render()})};b.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(b){var f=ba(c.style,b.style),d=aa(f.left)+a.plotLeft,g=aa(f.top)+a.plotTop+12;delete f.left;delete f.top;a.renderer.text(b.html,d,g).attr({zIndex:2}).css(f).add()})};b.prototype.render=function(){var a=this.axes,c=this.colorAxis,b=this.renderer,f=this.options,d=function(a){a.forEach(function(a){a.visible&&a.render()})},g=0;this.setTitle();this.legend=new t(this,f.legend);this.getStacks&&
395
+ this.getStacks();this.getMargins(!0);this.setChartSize();f=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return g=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-g,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var k=1.1<f/this.plotWidth,e=1.05<h/this.plotHeight;if(k||e)a.forEach(function(a){(a.horiz&&k||!a.horiz&&e)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?d(a):c&&c.length&&d(c);
396
+ this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(a){var c=this,b=T(!0,this.options.credits,a);b.enabled&&!this.credits&&(this.credits=this.renderer.text(b.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){b.href&&(w.location.href=b.href)}).attr({align:b.position.align,zIndex:8}),c.styledMode||
397
+ this.credits.css(b.style),this.credits.add().align(b.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};b.prototype.destroy=function(){var a=this,c=a.axes,b=a.series,f=a.container,d=f&&f.parentNode,g;I(a,"destroy");a.renderer.forExport?P(u,a):u[a.index]=void 0;v.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");ia(a);for(g=c.length;g--;)c[g]=c[g].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(g=b.length;g--;)b[g]=
398
+ b[g].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var b=a[c];b&&b.destroy&&(a[c]=b.destroy())});f&&(f.innerHTML=m.emptyHTML,ia(f),d&&V(f));Y(a,function(c,b){delete a[b]})};b.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();
399
+ a.getAxes();(R(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();I(a,"beforeRender");r&&(F.isRequired()?a.pointer=new F(a,c):a.pointer=new r(a,c));a.render();a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);I(this,"load");I(this,"render");S(this.index)&&
400
+ this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=!0};b.prototype.warnIfA11yModuleNotLoaded=function(){var a=this.options,c=this.title;a&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":c&&c.element.textContent||""}),a.accessibility&&!1===a.accessibility.enabled||M('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',
401
+ !1,this))};b.prototype.addSeries=function(a,c,b){var f=this,d;a&&(c=N(c,!0),I(f,"addSeries",{options:a},function(){d=f.initSeries(a);f.isDirtyLegend=!0;f.linkSeries();d.enabledDataSorting&&d.setData(a.data,!1);I(f,"afterAddSeries",{series:d});c&&f.redraw(b)}));return d};b.prototype.addAxis=function(a,c,b,f){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:b,animation:f})};b.prototype.addColorAxis=function(a,c,b){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:b})};b.prototype.createAxis=
402
+ function(a,c){a=new e(this,T(c.axis,{index:this[a].length,isX:"xAxis"===a}));N(c.redraw,!0)&&this.redraw(c.animation);return a};b.prototype.showLoading=function(a){var c=this,b=c.options,f=b.loading,d=function(){g&&L(g,{left:c.plotLeft+"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})},g=c.loadingDiv,h=c.loadingSpan;g||(c.loadingDiv=g=K("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container));h||(c.loadingSpan=h=K("span",{className:"highcharts-loading-inner"},
403
+ null,g),q(c,"redraw",d));g.className="highcharts-loading";m.setElementHTML(h,N(a,b.lang.loading,""));c.styledMode||(L(g,ba(f.style,{zIndex:10})),L(h,f.labelStyle),c.loadingShown||(L(g,{opacity:0,display:""}),n(g,{opacity:f.style.opacity||.5},{duration:f.showDuration||0})));c.loadingShown=!0;d()};b.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||n(c,{opacity:0},{duration:a.loading.hideDuration||100,
404
+ complete:function(){L(c,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(a,c,b,f){var g=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},k=a.isResponsiveOptions,e=[],l,m;I(g,"update",{options:a});k||g.setResponsive(!1,!0);a=H(a,g.options);g.userOptions=T(g.userOptions,a);var q=a.chart;if(q){T(!0,g.options.chart,q);"className"in q&&g.setClassName(q.className);"reflow"in q&&g.setReflow(q.reflow);if("inverted"in q||"polar"in q||"type"in
405
+ q){g.propFromSeries();var n=!0}"alignTicks"in q&&(n=!0);"events"in q&&C(this,q);Y(q,function(a,c){-1!==g.propsRequireUpdateSeries.indexOf("chart."+c)&&(l=!0);-1!==g.propsRequireDirtyBox.indexOf(c)&&(g.isDirtyBox=!0);-1!==g.propsRequireReflow.indexOf(c)&&(k?g.isDirtyBox=!0:m=!0)});!g.styledMode&&q.style&&g.renderer.setStyle(g.options.chart.style||{})}!g.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===D&&(this.time=new d(a.time)),T(!0,g.options.time,a.time));Y(a,function(c,
406
+ b){if(g[b]&&"function"===typeof g[b].update)g[b].update(c,!1);else if("function"===typeof g[h[b]])g[h[b]](c);else"colors"!==b&&-1===g.collectionsWithUpdate.indexOf(b)&&T(!0,g.options[b],a[b]);"chart"!==b&&-1!==g.propsRequireUpdateSeries.indexOf(b)&&(l=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var f=[];g[c].forEach(function(a,c){a.options.isInternal||f.push(N(a.options.index,c))});Z(a[c]).forEach(function(a,d){var h=S(a.id),k;h&&(k=g.get(a.id));!k&&g[c]&&(k=g[c][f?f[d]:d])&&h&&
407
+ S(k.options.id)&&(k=void 0);k&&k.coll===c&&(k.update(a,!1),b&&(k.touched=!0));!k&&b&&g.collectionsWithInit[c]&&(g.collectionsWithInit[c][0].apply(g,[a].concat(g.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});b&&g[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:e.push(a)})}});e.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});n&&g.axes.forEach(function(a){a.update({},!1)});l&&g.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);n=q&&
408
+ q.width;q=q&&(U(q.height)?ca(q.height,n||g.chartWidth):q.height);m||X(n)&&n!==g.chartWidth||X(q)&&q!==g.chartHeight?g.setSize(n,q,f):N(c,!0)&&g.redraw(f);I(g,"afterUpdate",{options:a,redraw:c,animation:f})};b.prototype.setSubtitle=function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};b.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};b.prototype.showResetZoom=function(){function a(){c.zoomOut()}var c=this,b=k.lang,f=c.options.chart.zooming.resetButton,
409
+ d=f.theme,g="chart"===f.relativeTo||"spacingBox"===f.relativeTo?null:"scrollablePlotBox";I(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(b.resetZoom,null,null,a,d).attr({align:f.position.align,title:b.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(f.position,!1,g)});I(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){I(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(a){var c=this,b=c.pointer,f=c.inverted?b.mouseDownX:
410
+ b.mouseDownY,d=!1,g;!a||a.resetSelection?(c.axes.forEach(function(a){g=a.zoom()}),b.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var h=a.axis,k=c.inverted?h.left:h.top,e=c.inverted?k+h.width:k+h.height,l=h.isXAxis,q=!1;if(!l&&f>=k&&f<=e||l||!S(f))q=!0;b[l?"zoomX":"zoomY"]&&q&&(g=h.zoom(a.min,a.max),h.displayBtn&&(d=!0))});var h=c.resetZoomButton;d&&!h?c.showResetZoom():!d&&O(h)&&(c.resetZoomButton=h.destroy());g&&c.redraw(N(c.options.chart.animation,a&&a.animation,100>c.pointCount))};
411
+ b.prototype.pan=function(a,c){var b=this,f=b.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var d=b.options.chart;d&&d.panning&&(d.panning=c);var g=c.type,h;I(this,"pan",{originalEvent:a},function(){f&&f.forEach(function(a){a.setState()});var c=b.xAxis;"xy"===g?c=c.concat(b.yAxis):"y"===g&&(c=b.yAxis);var d={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var f=c.horiz,k=a[f?"chartX":"chartY"];f=f?"mouseDownX":"mouseDownY";var e=b[f],l=c.minPointOffset||0,q=c.reversed&&
412
+ !b.inverted||!c.reversed&&b.inverted?-1:1,m=c.getExtremes(),n=c.toValue(e-k,!0)+l*q,u=c.toValue(e+c.len-k,!0)-(l*q||c.isXAxis&&c.pointRangePadding||0),w=u<n;q=c.hasVerticalPanning();e=w?u:n;n=w?n:u;var p=c.panningState;!q||c.isXAxis||p&&!p.isDirty||c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);p||(p={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});X(c.dataMin)&&X(c.dataMax)&&(p.startMin=Math.min(N(a.options.threshold,Infinity),c.dataMin,p.startMin),p.startMax=
413
+ Math.max(N(a.options.threshold,-Infinity),c.dataMax,p.startMax))});q=Math.min(N(p&&p.startMin,m.dataMin),l?m.min:c.toValue(c.toPixels(m.min)-c.minPixelPadding));u=Math.max(N(p&&p.startMax,m.dataMax),l?m.max:c.toValue(c.toPixels(m.max)+c.minPixelPadding));c.panningState=p;c.isOrdinal||(l=q-e,0<l&&(n+=l,e=q),l=n-u,0<l&&(n=u,e-=l),c.series.length&&e!==m.min&&n!==m.max&&e>=q&&n<=u&&(c.setExtremes(e,n,!1,!1,{trigger:"pan"}),!b.resetZoomButton&&e!==q&&n!==u&&g.match("y")&&(b.showResetZoom(),c.displayBtn=
414
+ !1),h=!0),d[f]=k)}});Y(d,function(a,c){b[c]=a});h&&b.redraw(!1);L(b.container,{cursor:"move"})})};return b}();ba(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
415
+ propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});I(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],function(b){var e=b.merge,y=b.pick,B;(function(b){b.drawLineMarker=function(b){var t=this.options,v=b.symbolWidth,r=b.symbolHeight,p=r/2,h=this.chart.renderer,a=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var d={},g=t.marker;this.chart.styledMode||(d={"stroke-width":t.lineWidth||
416
+ 0},t.dashStyle&&(d.dashstyle=t.dashStyle));this.legendLine=h.path([["M",0,b],["L",v,b]]).addClass("highcharts-graph").attr(d).add(a);g&&!1!==g.enabled&&v&&(t=Math.min(y(g.radius,p),p),0===this.symbol.indexOf("url")&&(g=e(g,{width:r,height:r}),t=0),this.legendSymbol=v=h.symbol(this.symbol,v/2-t,b-t,2*t,2*t,g).addClass("highcharts-point").add(a),v.isMarker=!0)};b.drawRectangle=function(b,e){var t=b.symbolHeight,r=b.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(r?(b.symbolWidth-t)/2:0,
417
+ b.baseline-t+1,r?t:b.symbolWidth,t,y(b.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}})(B||(B={}));return B});I(e,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",
418
+ lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var b=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":b(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},
419
+ select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});I(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/DefaultOptions.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F,z,
420
+ r,p){var h=b.animObject,a=b.setAnimation,d=e.defaultOptions,g=y.registerEventOptions,m=B.hasTouch,n=B.svg,G=B.win,J=z.seriesTypes,x=p.addEvent,C=p.arrayMax,u=p.arrayMin,l=p.clamp,A=p.cleanRecursively,f=p.correctFloat,w=p.defined,k=p.erase,D=p.error,c=p.extend,q=p.find,E=p.fireEvent,H=p.getNestedProperty,K=p.isArray,L=p.isNumber,S=p.isString,V=p.merge,P=p.objectEach,M=p.pick,I=p.removeEvent,ea=p.splat,ha=p.syncTimeout;b=function(){function b(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=
421
+ this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(a,b){E(this,"init",{options:b});var f=this,d=a.series;this.eventsToUnbind=[];f.chart=a;f.options=f.setOptions(b);b=f.options;f.linkedSeries=[];f.bindAxes();c(f,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});g(this,b);var h=b.events;if(h&&h.click||b.point&&b.point.events&&b.point.events.click||
422
+ b.allowPointSelect)a.runTrackerClick=!0;f.getColor();f.getSymbol();f.parallelArrays.forEach(function(a){f[a+"Data"]||(f[a+"Data"]=[])});f.isCartesian&&(a.hasCartesianSeries=!0);var k;d.length&&(k=d[d.length-1]);f._i=M(k&&k._i,-1)+1;f.opacity=f.options.opacity;a.orderSeries(this.insert(d));b.dataSorting&&b.dataSorting.enabled?f.setDataSortingOptions():f.points||f.data||f.setData(b.data,!1);E(this,"afterInit")};b.prototype.is=function(a){return J[a]&&this instanceof J[a]};b.prototype.insert=function(a){var c=
423
+ this.options.index,b;if(L(c)){for(b=a.length;b--;)if(c>=M(a[b].options.index,a[b]._i)){a.splice(b+1,0,this);break}-1===b&&a.unshift(this);b+=1}else a.push(this);return M(b,a.length-1)};b.prototype.bindAxes=function(){var a=this,c=a.options,b=a.chart,f;E(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(d){var g=0;b[d].forEach(function(b){f=b.options;if(c[d]===g&&!f.isInternal||"undefined"!==typeof c[d]&&c[d]===f.id||"undefined"===typeof c[d]&&0===f.index)a.insert(b.series),a[d]=b,
424
+ b.isDirty=!0;f.isInternal||g++});a[d]||a.optionalAxis===d||D(18,!0,b)})});E(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(a,c){var b=a.series,f=arguments,d=L(c)?function(f){var d="y"===f&&b.toYData?b.toYData(a):a[f];b[f+"Data"][c]=d}:function(a){Array.prototype[c].apply(b[a+"Data"],Array.prototype.slice.call(f,2))};b.parallelArrays.forEach(d)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&
425
+ this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(a){var c=this.options,b=c.pointIntervalUnit,f=c.relativeXValue,d=this.chart.time,g=this.xIncrement,h;g=M(g,c.pointStart,0);this.pointInterval=h=M(this.pointInterval,c.pointInterval,1);f&&L(a)&&(h*=a);b&&(c=new d.Date(g),"day"===b?d.set("Date",c,d.get("Date",c)+h):"month"===b?d.set("Month",c,d.get("Month",c)+h):"year"===b&&d.set("FullYear",c,d.get("FullYear",c)+h),h=c.getTime()-g);if(f&&L(a))return g+h;this.xIncrement=g+h;return g};
426
+ b.prototype.setDataSortingOptions=function(){var a=this.options;c(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});w(a.pointRange)||(a.pointRange=1)};b.prototype.setOptions=function(a){var c=this.chart,b=c.options,f=b.plotOptions,g=c.userOptions||{};a=V(a);c=c.styledMode;var h={plotOptions:f,userOptions:a};E(this,"setOptions",h);var k=h.plotOptions[this.type],e=g.plotOptions||{};this.userOptions=h.userOptions;g=V(k,f.series,g.plotOptions&&g.plotOptions[this.type],a);this.tooltipOptions=
427
+ V(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,b.tooltip.userOptions,f.series&&f.series.tooltip,f[this.type].tooltip,a.tooltip);this.stickyTracking=M(a.stickyTracking,e[this.type]&&e[this.type].stickyTracking,e.series&&e.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:g.stickyTracking);null===k.marker&&delete g.marker;this.zoneAxis=g.zoneAxis;f=this.zones=(g.zones||[]).slice();!g.negativeColor&&!g.negativeFillColor||g.zones||
428
+ (b={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},c||(b.color=g.negativeColor,b.fillColor=g.negativeFillColor),f.push(b));f.length&&w(f[f.length-1].value)&&f.push(c?{}:{color:this.color,fillColor:this.fillColor});E(this,"afterSetOptions",{options:g});return g};b.prototype.getName=function(){return M(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(a,c,b){var f=this.chart,d=this.userOptions,g=a+"Index",h=a+"Counter",k=b?b.length:M(f.options.chart[a+
429
+ "Count"],f[a+"Count"]);if(!c){var e=M(d[g],d["_"+g]);w(e)||(f.series.length||(f[h]=0),d["_"+g]=e=f[h]%k,f[h]+=1);b&&(c=b[e])}"undefined"!==typeof e&&(this[g]=e);this[a]=c};b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};b.prototype.getSymbol=
430
+ function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(a,c){var b=a.id,f=a.x,d=this.points,g=this.options.dataSorting,h,k;if(b)g=this.chart.get(b),g instanceof t&&(h=g);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(h=function(c){return!c.touched&&c.index===a.index},g&&g.matchByName?h=function(c){return!c.touched&&c.name===a.name}:this.options.relativeXValue&&(h=function(c){return!c.touched&&
431
+ c.options.x===a.x}),h=q(d,h),!h)return;if(h){var e=h&&h.index;"undefined"!==typeof e&&(k=!0)}"undefined"===typeof e&&L(f)&&(e=this.xData.indexOf(f,c));-1!==e&&"undefined"!==typeof e&&this.cropped&&(e=e>=this.cropStart?e-this.cropStart:e);!k&&L(e)&&d[e]&&d[e].touched&&(e=void 0);return e};b.prototype.updateData=function(a,c){var b=this.options,f=b.dataSorting,d=this.points,g=[],h=this.requireSorting,k=a.length===d.length,e,l,q,m=!0;this.xIncrement=null;a.forEach(function(a,c){var l=w(a)&&this.pointClass.prototype.optionsToObject.call({series:this},
432
+ a)||{},m=l.x;if(l.id||L(m)){if(l=this.findPointIndex(l,q),-1===l||"undefined"===typeof l?g.push(a):d[l]&&a!==b.data[l]?(d[l].update(a,!1,null,!1),d[l].touched=!0,h&&(q=l+1)):d[l]&&(d[l].touched=!0),!k||c!==l||f&&f.enabled||this.hasDerivedData)e=!0}else g.push(a)},this);if(e)for(a=d.length;a--;)(l=d[a])&&!l.touched&&l.remove&&l.remove(!1,c);else!k||f&&f.enabled?m=!1:(a.forEach(function(a,c){a!==d[c].y&&d[c].update&&d[c].update(a,!1,null,!1)}),g.length=0);d.forEach(function(a){a&&(a.touched=!1)});if(!m)return!1;
433
+ g.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=C(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(a,c,b,f){void 0===c&&(c=!0);var d=this,g=d.points,h=g&&g.length||0,k=d.options,e=d.chart,l=k.dataSorting,q=d.xAxis,m=k.turboThreshold,n=this.xData,u=this.yData,w=d.pointArrayMap;w=w&&w.length;var p=k.keys,E,x=0,C=1,A=null;if(!e.options.chart.allowMutatingData){k.data&&delete d.options.data;d.userOptions.data&&
434
+ delete d.userOptions.data;var r=V(!0,a)}a=r||a||[];r=a.length;l&&l.enabled&&(a=this.sortData(a));e.options.chart.allowMutatingData&&!1!==f&&r&&h&&!d.cropped&&!d.hasGroupedData&&d.visible&&!d.boosted&&(E=this.updateData(a,b));if(!E){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(a){d[a+"Data"].length=0});if(m&&r>m)if(A=d.getFirstValidPoint(a),L(A))for(b=0;b<r;b++)n[b]=this.autoIncrement(),u[b]=a[b];else if(K(A))if(w)if(A.length===w)for(b=0;b<r;b++)n[b]=this.autoIncrement(),
435
+ u[b]=a[b];else for(b=0;b<r;b++)f=a[b],n[b]=f[0],u[b]=f.slice(1,w+1);else if(p&&(x=p.indexOf("x"),C=p.indexOf("y"),x=0<=x?x:0,C=0<=C?C:1),1===A.length&&(C=0),x===C)for(b=0;b<r;b++)n[b]=this.autoIncrement(),u[b]=a[b][C];else for(b=0;b<r;b++)f=a[b],n[b]=f[x],u[b]=f[C];else D(12,!1,e);else for(b=0;b<r;b++)"undefined"!==typeof a[b]&&(f={series:d},d.pointClass.prototype.applyOptions.apply(f,[a[b]]),d.updateParallelArrays(f,b));u&&S(u[0])&&D(14,!0,e);d.data=[];d.options.data=d.userOptions.data=a;for(b=h;b--;)g[b]&&
436
+ g[b].destroy&&g[b].destroy();q&&(q.minRange=q.userMinRange);d.isDirty=e.isDirtyBox=!0;d.isDirtyData=!!g;b=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());c&&e.redraw(b)};b.prototype.sortData=function(a){var c=this,b=c.options.dataSorting.sortKey||"y",f=function(a,c){return w(c)&&a.pointClass.prototype.optionsToObject.call({series:a},c)||{}};a.forEach(function(b,d){a[d]=f(c,b);a[d].index=d},this);a.concat().sort(function(a,c){a=H(b,a);c=H(b,c);return c<a?-1:c>a?1:0}).forEach(function(a,
437
+ c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var b=c.options,d=b.data;b.dataSorting&&b.dataSorting.enabled||!d||(d.forEach(function(b,g){d[g]=f(c,b);a[g]&&(d[g].x=a[g].x,d[g].index=g)}),c.setData(d,!1))});return a};b.prototype.getProcessedData=function(a){var c=this.xAxis,b=this.options,f=b.cropThreshold,d=a||this.getExtremesFromAll||b.getExtremesFromAll,g=this.isCartesian;a=c&&c.val2lin;b=!(!c||!c.logarithmic);var h=0,k=this.xData,e=this.yData,l=this.requireSorting;var q=!1;
438
+ var m=k.length;if(c){q=c.getExtremes();var n=q.min;var u=q.max;q=!(!c.categories||c.names.length)}if(g&&this.sorted&&!d&&(!f||m>f||this.forceCrop))if(k[m-1]<n||k[0]>u)k=[],e=[];else if(this.yData&&(k[0]<n||k[m-1]>u)){var w=this.cropData(this.xData,this.yData,n,u);k=w.xData;e=w.yData;h=w.start;w=!0}for(f=k.length||1;--f;)if(c=b?a(k[f])-a(k[f-1]):k[f]-k[f-1],0<c&&("undefined"===typeof p||c<p))var p=c;else 0>c&&l&&!q&&(D(15,!1,this.chart),l=!1);return{xData:k,yData:e,cropped:w,cropStart:h,closestPointRange:p}};
439
+ b.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange;E(this,"afterProcessData")};b.prototype.cropData=function(a,c,b,f,d){var g=a.length,h,k=0,e=g;d=M(d,this.cropShoulder);for(h=0;h<g;h++)if(a[h]>=b){k=Math.max(0,h-d);break}for(b=
440
+ h;b<g;b++)if(a[b]>f){e=b+d;break}return{xData:a.slice(k,e),yData:c.slice(k,e),start:k,end:e}};b.prototype.generatePoints=function(){var a=this.options,b=this.processedData||a.data,f=this.processedXData,d=this.processedYData,g=this.pointClass,h=f.length,k=this.cropStart||0,e=this.hasGroupedData,l=a.keys,q=[];a=a.dataGrouping&&a.dataGrouping.groupAll?k:0;var m,n,u=this.data;if(!u&&!e){var w=[];w.length=b.length;u=this.data=w}l&&e&&(this.options.keys=!1);for(n=0;n<h;n++){w=k+n;if(e){var p=(new g).init(this,
441
+ [f[n]].concat(ea(d[n])));p.dataGroup=this.groupMap[a+n];p.dataGroup.options&&(p.options=p.dataGroup.options,c(p,p.dataGroup.options),delete p.dataLabels)}else(p=u[w])||"undefined"===typeof b[w]||(u[w]=p=(new g).init(this,b[w],f[n]));p&&(p.index=e?a+n:w,q[n]=p)}this.options.keys=l;if(u&&(h!==(m=u.length)||e))for(n=0;n<m;n++)n!==k||e||(n+=h),u[n]&&(u[n].destroyElements(),u[n].plotX=void 0);this.data=u;this.points=q;E(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(a){return{min:u(a),
442
+ max:C(a)}};b.prototype.getExtremes=function(a,c){var b=this.xAxis,f=this.yAxis,d=this.processedXData||this.xData,g=[],h=this.requireSorting?this.cropShoulder:0;f=f?f.positiveValuesOnly:!1;var k,e=0,l=0,q=0;a=a||this.stackedYData||this.processedYData||[];var m=a.length;if(b){var n=b.getExtremes();e=n.min;l=n.max}for(k=0;k<m;k++){var w=d[k];n=a[k];var p=(L(n)||K(n))&&(n.length||0<n||!f);w=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(d[k+h]||w)>=e&&(d[k-h]||w)<=l;if(p&&
443
+ w)if(p=n.length)for(;p--;)L(n[p])&&(g[q++]=n[p]);else g[q++]=n}a={activeYData:g,dataMin:u(g),dataMax:C(g)};E(this,"afterGetExtremes",{dataExtremes:a});return a};b.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};b.prototype.getFirstValidPoint=function(a){for(var c=a.length,b=0,f=null;null===f&&b<c;)f=a[b],b++;return f};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,
444
+ c=a.stacking,b=this.xAxis,d=b.categories,g=this.enabledDataSorting,h=this.yAxis,k=this.points,e=k.length,q=this.pointPlacementToXValue(),m=!!q,n=a.threshold,u=a.startFromThreshold?n:0,p=this.zoneAxis||"y",x,C,A=Number.MAX_VALUE;for(x=0;x<e;x++){var D=k[x],r=D.x,G=void 0,H=void 0,J=D.y,t=D.low,v=c&&h.stacking&&h.stacking.stacks[(this.negStacks&&J<(u?0:n)?"-":"")+this.stackKey];if(h.positiveValuesOnly&&!h.validatePositiveValue(J)||b.positiveValuesOnly&&!b.validatePositiveValue(r))D.isNull=!0;D.plotX=
445
+ C=f(l(b.translate(r,0,0,0,1,q,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&v&&v[r]){var z=this.getStackIndicator(z,r,this.index);D.isNull||(G=v[r],H=G.points[z.key])}K(H)&&(t=H[0],J=H[1],t===u&&z.key===v[r].base&&(t=M(L(n)&&n,h.min)),h.positiveValuesOnly&&0>=t&&(t=null),D.total=D.stackTotal=G.total,D.percentage=G.total&&D.y/G.total*100,D.stackY=J,this.irregularWidths||G.setOffset(this.pointXOffset||0,this.barW||0));D.yBottom=w(t)?l(h.translate(t,0,1,0,1),-1E5,1E5):null;this.dataModify&&(J=
446
+ this.dataModify.modifyValue(J,x));D.plotY=void 0;L(J)&&(G=h.translate(J,!1,!0,!1,!0),"undefined"!==typeof G&&(D.plotY=l(G,-1E5,1E5)));D.isInside=this.isPointInside(D);D.clientX=m?f(b.translate(r,0,0,0,1,q)):C;D.negative=D[p]<(a[p+"Threshold"]||n||0);D.category=M(d&&d[D.x],D.x);if(!D.isNull&&!1!==D.visible){"undefined"!==typeof y&&(A=Math.min(A,Math.abs(C-y)));var y=C}D.zone=this.zones.length?D.getZone():void 0;!D.graphic&&this.group&&g&&(D.isNew=!0)}this.closestPointRangePx=A;E(this,"afterTranslate")};
447
+ b.prototype.getValidPoints=function(a,c,b){var f=this.chart;return(a||this.points||[]).filter(function(a){return c&&!f.isInsidePlot(a.plotX,a.plotY,{inverted:f.inverted})?!1:!1!==a.visible&&(b||!a.isNull)})};b.prototype.getClipBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis,f=V(a.clipBox);c&&c.len!==a.plotSizeX&&(f.width=c.len);b&&b.len!==a.plotSizeY&&(f.height=b.len);return f};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||
448
+ 0)};b.prototype.setClip=function(){var a=this.chart,c=this.group,b=this.markerGroup,f=a.sharedClips;a=a.renderer;var d=this.getClipBox(),g=this.getSharedClipKey(),h=f[g];h?h.animate(d):f[g]=h=a.clipRect(d);c&&c.clip(!1===this.options.clip?void 0:h);b&&b.clip()};b.prototype.animate=function(a){var c=this.chart,b=this.group,f=this.markerGroup,d=c.inverted,g=h(this.options.animation),k=[this.getSharedClipKey(),g.duration,g.easing,g.defer].join(),e=c.sharedClips[k],l=c.sharedClips[k+"m"];if(a&&b)g=this.getClipBox(),
449
+ e?e.attr("height",g.height):(g.width=0,d&&(g.x=c.plotHeight),e=c.renderer.clipRect(g),c.sharedClips[k]=e,l=c.renderer.clipRect({x:d?(c.plotSizeX||0)+99:-99,y:d?-c.plotLeft:-c.plotTop,width:99,height:d?c.chartWidth:c.chartHeight}),c.sharedClips[k+"m"]=l),b.clip(e),f&&f.clip(l);else if(e&&!e.hasClass("highcharts-animating")){c=this.getClipBox();var q=g.step;f&&f.element.childNodes.length&&(g.step=function(a,c){q&&q.apply(c,arguments);l&&l.element&&l.attr(c.prop,"width"===c.prop?a+99:a)});e.addClass("highcharts-animating").animate(c,
450
+ g)}};b.prototype.afterAnimate=function(){var a=this;this.setClip();P(this.chart.sharedClips,function(c,b,f){c&&!a.chart.container.querySelector('[clip-path="url(#'.concat(c.id,')"]'))&&(c.destroy(),delete f[b])});this.finishedAnimating=!0;E(this,"afterAnimate")};b.prototype.drawPoints=function(){var a=this.points,c=this.chart,b=this.options.marker,f=this[this.specialGroup]||this.markerGroup,d=this.xAxis,g=M(b.enabled,!d||d.isRadial?!0:null,this.closestPointRangePx>=b.enabledThreshold*b.radius),h,
451
+ k;if(!1!==b.enabled||this._hasPointMarkers)for(h=0;h<a.length;h++){var e=a[h];var l=(k=e.graphic)?"animate":"attr";var q=e.marker||{};var m=!!e.marker;if((g&&"undefined"===typeof q.enabled||q.enabled)&&!e.isNull&&!1!==e.visible){var n=M(q.symbol,this.symbol,"rect");var u=this.markerAttribs(e,e.selected&&"select");this.enabledDataSorting&&(e.startXPos=d.reversed?-(u.width||0):d.width);var w=!1!==e.isInside;k?k[w?"show":"hide"](w).animate(u):w&&(0<(u.width||0)||e.hasImage)&&(e.graphic=k=c.renderer.symbol(n,
452
+ u.x,u.y,u.width,u.height,m?q:b).add(f),this.enabledDataSorting&&c.hasRendered&&(k.attr({x:e.startXPos}),l="animate"));k&&"animate"===l&&k[w?"show":"hide"](w).animate(u);if(k&&!c.styledMode)k[l](this.pointAttribs(e,e.selected&&"select"));k&&k.addClass(e.getClassName(),!0)}else k&&(e.graphic=k.destroy())}};b.prototype.markerAttribs=function(a,c){var b=this.options,f=b.marker,d=a.marker||{},g=d.symbol||f.symbol,h=M(d.radius,f&&f.radius);c&&(f=f.states[c],c=d.states&&d.states[c],h=M(c&&c.radius,f&&f.radius,
453
+ h&&h+(f&&f.radiusPlus||0)));a.hasImage=g&&0===g.indexOf("url");a.hasImage&&(h=0);a=L(h)?{x:b.crisp?Math.floor(a.plotX-h):a.plotX-h,y:a.plotY-h}:{};h&&(a.width=a.height=2*h);return a};b.prototype.pointAttribs=function(a,c){var b=this.options.marker,f=a&&a.options,d=f&&f.marker||{},g=f&&f.color,h=a&&a.color,k=a&&a.zone&&a.zone.color,e=this.color;a=M(d.lineWidth,b.lineWidth);f=1;e=g||k||h||e;g=d.fillColor||b.fillColor||e;h=d.lineColor||b.lineColor||e;c=c||"normal";b=b.states[c]||{};c=d.states&&d.states[c]||
454
+ {};a=M(c.lineWidth,b.lineWidth,a+M(c.lineWidthPlus,b.lineWidthPlus,0));g=c.fillColor||b.fillColor||g;h=c.lineColor||b.lineColor||h;f=M(c.opacity,b.opacity,f);return{stroke:h,"stroke-width":a,fill:g,opacity:f}};b.prototype.destroy=function(a){var c=this,b=c.chart,f=/AppleWebKit\/533/.test(G.navigator.userAgent),d=c.data||[],g,h,e,l;E(c,"destroy",{keepEventsForUpdate:a});this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(l=c[a])&&l.series&&(k(l.series,c),l.isDirty=l.forceRedraw=!0)});c.legendItem&&
455
+ c.chart.legend.destroyItem(c);for(h=d.length;h--;)(e=d[h])&&e.destroy&&e.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});p.clearTimeout(c.animationTimeout);P(c,function(a,c){a instanceof r&&!a.survive&&(g=f&&"group"===c?"hide":"destroy",a[g]())});b.hoverSeries===c&&(b.hoverSeries=void 0);k(b.series,c);b.orderSeries();P(c,function(b,f){a&&"hcEvents"===f||delete c[f]})};b.prototype.applyZones=function(){var a=this,c=this.chart,b=c.renderer,f=this.zones,d=this.clips||[],g=this.graph,
456
+ h=this.area,k=Math.max(c.plotWidth,c.plotHeight),e=this[(this.zoneAxis||"y")+"Axis"],q=c.inverted,m,n,u,w,p,E,x,D,C=!1;if(f.length&&(g||h)&&e&&"undefined"!==typeof e.min){var A=e.reversed;var r=e.horiz;g&&!this.showLine&&g.hide();h&&h.hide();var G=e.getExtremes();f.forEach(function(f,H){m=A?r?c.plotWidth:0:r?0:e.toPixels(G.min)||0;m=l(M(n,m),0,k);n=l(Math.round(e.toPixels(M(f.value,G.max),!0)||0),0,k);C&&(m=n=e.toPixels(G.max));w=Math.abs(m-n);p=Math.min(m,n);E=Math.max(m,n);e.isXAxis?(u={x:q?E:p,
457
+ y:0,width:w,height:k},r||(u.x=c.plotHeight-u.x)):(u={x:0,y:q?E:p,width:k,height:w},r&&(u.y=c.plotWidth-u.y));q&&b.isVML&&(u=e.isXAxis?{x:0,y:A?p:E,height:u.width,width:c.chartWidth}:{x:u.y-c.plotLeft-c.spacingBox.x,y:0,width:u.height,height:c.chartHeight});d[H]?d[H].animate(u):d[H]=b.clipRect(u);x=a["zone-area-"+H];D=a["zone-graph-"+H];g&&D&&D.clip(d[H]);h&&x&&x.clip(d[H]);C=f.value>G.max;a.resetZones&&0===n&&(n=void 0)});this.clips=d}else a.visible&&(g&&g.show(),h&&h.show())};b.prototype.invertGroups=
458
+ function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(f.renderer.isVML&&b[c].attr({width:b.yAxis.len,height:b.xAxis.len}),b[c].width=b.yAxis.len,b[c].height=b.xAxis.len,b[c].invert(b.isRadialSeries?!1:a))})}var b=this,f=b.chart;b.xAxis&&(b.eventsToUnbind.push(x(f,"resize",c)),c(),b.invertGroups=c)};b.prototype.plotGroup=function(a,c,b,f,d){var g=this[a],h=!g;b={visibility:b,zIndex:f||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(b.opacity=
459
+ this.opacity);h&&(this[a]=g=this.chart.renderer.g().add(d));g.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(b)[h?"attr":"animate"](this.getPlotBox());return g};b.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis;a.inverted&&(c=b,b=this.xAxis);return{translateX:c?c.left:
460
+ a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(a){a||I(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};b.prototype.render=function(){var a=this,c=a.chart,b=a.options,f=h(b.animation),d=a.visible?"inherit":"hidden",g=b.zIndex,k=a.hasRendered,e=c.seriesGroup,l=c.inverted;c=!a.finishedAnimating&&c.renderer.isSVG?f.duration:0;E(this,"render");var q=a.plotGroup("group","series",d,g,e);a.markerGroup=
461
+ a.plotGroup("markerGroup","markers",d,g,e);!1!==b.clip&&a.setClip();a.animate&&c&&a.animate(!0);q.inverted=M(a.invertible,a.isCartesian)?l:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(l);a.animate&&c&&a.animate();k||(c&&f.defer&&(c+=f.defer),a.animationTimeout=ha(function(){a.afterAnimate()},c||0));a.isDirty=!1;a.hasRendered=
462
+ !0;E(a,"afterRender")};b.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,b=this.group,f=this.xAxis,d=this.yAxis;b&&(a.inverted&&b.attr({width:a.plotWidth,height:a.plotHeight}),b.animate({translateX:M(f&&f.left,a.plotLeft),translateY:M(d&&d.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};b.prototype.searchPoint=function(a,c){var b=this.xAxis,f=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?b.len-a.chartY+b.pos:a.chartX-b.pos,
463
+ plotY:d?f.len-a.chartX+f.pos:a.chartY-f.pos},c,a)};b.prototype.buildKDTree=function(a){function c(a,f,d){var g=a&&a.length;if(g){var h=b.kdAxisArray[f%d];a.sort(function(a,c){return a[h]-c[h]});g=Math.floor(g/2);return{point:a[g],left:c(a.slice(0,g),f+1,d),right:c(a.slice(g+1),f+1,d)}}}this.buildingKdTree=!0;var b=this,f=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;ha(function(){b.kdTree=c(b.getValidPoints(null,!b.directTouch),f,f);b.buildingKdTree=!1},b.options.kdNow||a&&"touchstart"===
464
+ a.type?0:1)};b.prototype.searchKDTree=function(a,c,b){function f(a,c,b,e){var l=c.point,q=d.kdAxisArray[b%e],m=l,n=w(a[g])&&w(l[g])?Math.pow(a[g]-l[g],2):null;var u=w(a[h])&&w(l[h])?Math.pow(a[h]-l[h],2):null;u=(n||0)+(u||0);l.dist=w(u)?Math.sqrt(u):Number.MAX_VALUE;l.distX=w(n)?Math.sqrt(n):Number.MAX_VALUE;q=a[q]-l[q];u=0>q?"left":"right";n=0>q?"right":"left";c[u]&&(u=f(a,c[u],b+1,e),m=u[k]<m[k]?u:l);c[n]&&Math.sqrt(q*q)<m[k]&&(a=f(a,c[n],b+1,e),m=a[k]<m[k]?a:m);return m}var d=this,g=this.kdAxisArray[0],
465
+ h=this.kdAxisArray[1],k=c?"distX":"dist";c=-1<d.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(b);if(this.kdTree)return f(a,this.kdTree,c,c)};b.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,b=this.xAxis;a=a.pointPlacement;"between"===a&&(a=b.reversed?-.5:.5);return L(a)?a*(c||b.pointRange):0};b.prototype.isPointInside=function(a){var c=this.chart,b=this.xAxis,f=this.yAxis;return"undefined"!==typeof a.plotY&&"undefined"!==
466
+ typeof a.plotX&&0<=a.plotY&&a.plotY<=(f?f.len:c.plotHeight)&&0<=a.plotX&&a.plotX<=(b?b.len:c.plotWidth)};b.prototype.drawTracker=function(){var a=this,c=a.options,b=c.trackByArea,f=[].concat(b?a.areaPath:a.graphPath),d=a.chart,g=d.pointer,h=d.renderer,k=d.options.tooltip.snap,e=a.tracker,l=function(c){if(d.hoverSeries!==a)a.onMouseOver()},q="rgba(192,192,192,"+(n?.0001:.002)+")";e?e.attr({d:f}):a.graph&&(a.tracker=h.path(f).attr({visibility:a.visible?"inherit":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":
467
+ "highcharts-tracker-line").add(a.group),d.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:q,fill:b?q:"none","stroke-width":a.graph.strokeWidth()+(b?0:2*k)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(a){g.onTrackerMouseOut(a)}),c.cursor&&!d.styledMode&&a.css({cursor:c.cursor}),m))a.on("touchstart",l)}));E(this,"afterDrawTracker")};b.prototype.addPoint=function(a,
468
+ c,b,f,d){var g=this.options,h=this.data,k=this.chart,e=this.xAxis;e=e&&e.hasNames&&e.names;var l=g.data,q=this.xData,m;c=M(c,!0);var n={series:this};this.pointClass.prototype.applyOptions.apply(n,[a]);var u=n.x;var w=q.length;if(this.requireSorting&&u<q[w-1])for(m=!0;w&&q[w-1]>u;)w--;this.updateParallelArrays(n,"splice",w,0,0);this.updateParallelArrays(n,w);e&&n.name&&(e[u]=n.name);l.splice(w,0,a);if(m||this.processedData)this.data.splice(w,0,null),this.processData();"point"===g.legendType&&this.generatePoints();
469
+ b&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(n,"shift"),l.shift()));!1!==d&&E(this,"addPoint",{point:n});this.isDirtyData=this.isDirty=!0;c&&k.redraw(f)};b.prototype.removePoint=function(c,b,f){var d=this,g=d.data,h=g[c],k=d.points,e=d.chart,l=function(){k&&k.length===g.length&&k.splice(c,1);g.splice(c,1);d.options.data.splice(c,1);d.updateParallelArrays(h||{series:d},"splice",c,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&e.redraw()};a(f,e);b=M(b,!0);h?h.firePointEvent("remove",
470
+ null,l):l()};b.prototype.remove=function(a,c,b,f){function d(){g.destroy(f);h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();M(a,!0)&&h.redraw(c)}var g=this,h=g.chart;!1!==b?E(g,"remove",null,d):d()};b.prototype.update=function(a,b){a=A(a,this.userOptions);E(this,"update",{options:a});var f=this,d=f.chart,g=f.userOptions,h=f.initialType||f.type,k=d.options.plotOptions,e=J[h].prototype,l=f.finishedAnimating&&{animation:!1},q={},m,n=["eventOptions","navigatorSeries","baseSeries"],u=a.type||g.type||d.options.chart.type,
471
+ w=!(this.hasDerivedData||u&&u!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||a.joinBy||a.mapData||f.hasOptionChanged("dataGrouping")||f.hasOptionChanged("pointStart")||f.hasOptionChanged("pointInterval")||f.hasOptionChanged("pointIntervalUnit")||f.hasOptionChanged("keys"));u=u||h;w&&(n.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels",
472
+ "clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&n.push("area","graph"),f.parallelArrays.forEach(function(a){n.push(a+"Data")}),a.data&&(a.dataSorting&&c(f.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=V(g,l,{index:"undefined"===typeof g.index?f.index:g.index,pointStart:M(k&&k.series&&k.series.pointStart,g.pointStart,f.xData[0])},!w&&{data:f.options.data},a);w&&a.data&&(a.data=f.options.data);n=["group","markerGroup","dataLabelsGroup",
473
+ "transformGroup"].concat(n);n.forEach(function(a){n[a]=f[a];delete f[a]});k=!1;if(J[u]){if(k=u!==f.type,f.remove(!1,!1,!1,!0),k)if(Object.setPrototypeOf)Object.setPrototypeOf(f,J[u].prototype);else{l=Object.hasOwnProperty.call(f,"hcEvents")&&f.hcEvents;for(m in e)f[m]=void 0;c(f,J[u].prototype);l?f.hcEvents=l:delete f.hcEvents}}else D(17,!0,d,{missingModuleFor:u});n.forEach(function(a){f[a]=n[a]});f.init(d,a);if(w&&this.points){var p=f.options;!1===p.visible?(q.graphic=1,q.dataLabel=1):f._hasPointLabels||
474
+ (a=p.marker,e=p.dataLabels,!a||!1!==a.enabled&&(g.marker&&g.marker.symbol)===a.symbol||(q.graphic=1),e&&!1===e.enabled&&(q.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(q).length&&a.destroyElements(q),!1===p.showInLegend&&a.legendItem&&d.legend.destroyItem(a))},this)}f.initialType=h;d.linkSeries();k&&f.linkedSeries.length&&(f.isDirtyData=!0);E(this,"afterUpdate");M(b,!0)&&d.redraw(w?void 0:!1)};b.prototype.setName=function(a){this.name=this.options.name=
475
+ this.userOptions.name=a;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(a){var c=this.options[a],b=this.chart.options.plotOptions,f=this.userOptions[a];return f?c!==f:c!==M(b&&b[this.type]&&b[this.type][a],b&&b.series&&b.series[a],c)};b.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&E(this,"mouseOver");this.setState("hover");a.hoverSeries=this};b.prototype.onMouseOut=function(){var a=
476
+ this.options,c=this.chart,b=c.tooltip,f=c.hoverPoint;c.hoverSeries=null;if(f)f.onMouseOut();this&&a.events.mouseOut&&E(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();c.series.forEach(function(a){a.setState("",!0)})};b.prototype.setState=function(a,c){var b=this,f=b.options,d=b.graph,g=f.inactiveOtherPoints,h=f.states,k=M(h[a||"normal"]&&h[a||"normal"].animation,b.chart.options.chart.animation),e=f.lineWidth,l=0,q=f.opacity;a=a||"";if(b.state!==a&&([b.group,b.markerGroup,
477
+ b.dataLabelsGroup].forEach(function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(h[a]&&!1===h[a].enabled)return;a&&(e=h[a].lineWidth||e+(h[a].lineWidthPlus||0),q=M(h[a].opacity,q));if(d&&!d.dashstyle)for(f={"stroke-width":e},d.animate(f,k);b["zone-graph-"+l];)b["zone-graph-"+l].animate(f,k),l+=1;g||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(a){a&&a.animate({opacity:q},k)})}c&&
478
+ g&&b.points&&b.setAllPointsToState(a||void 0)};b.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})};b.prototype.setVisible=function(a,c){var b=this,f=b.chart,d=b.legendItem,g=f.options.chart.ignoreHiddenSeries,h=b.visible,k=(b.visible=a=b.options.visible=b.userOptions.visible="undefined"===typeof a?!h:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(b[a])b[a][k]()});if(f.hoverSeries===b||(f.hoverPoint&&
479
+ f.hoverPoint.series)===b)b.onMouseOut();d&&f.legend.colorizeItem(b,a);b.isDirty=!0;b.options.stacking&&f.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});b.linkedSeries.forEach(function(c){c.setVisible(a,!1)});g&&(f.isDirtyBox=!0);E(b,k);!1!==c&&f.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&
480
+ (this.checkbox.checked=a);E(this,a?"select":"unselect")};b.prototype.shouldShowTooltip=function(a,c,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,c,b)};b.defaultOptions=F;b.types=z.seriesTypes;b.registerType=z.registerSeriesType;return b}();c(b.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:v.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:t,
481
+ requireSorting:!0,sorted:!0});z.series=b;"";"";return b});I(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t){var F=b.stop,z=t.addEvent,r=t.createElement,p=t.defined,h=t.merge,a=t.pick;z(y,"afterSetChartSize",function(a){var b=this.options.chart.scrollablePlotArea,d=b&&b.minWidth;b=b&&b.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=
482
+ d=Math.max(0,d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=d;var n={1:{name:"right",value:d}}}}else b&&(this.scrollablePixelsY=d=Math.max(0,b-this.chartHeight),p(d)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,n={2:{name:"bottom",value:d}}));
483
+ n&&!a.skipAxes&&this.axes.forEach(function(a){n[a.side]?a.getPlotLinePath=function(){var b=n[a.side].name,d=this[b];this[b]=d-n[a.side].value;var g=e.prototype.getPlotLinePath.apply(this,arguments);this[b]=d;return g}:(a.setAxisSize(),a.setAxisTranslation())})}});z(y,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});y.prototype.setUpScrolling=function(){var a=this,b={WebkitOverflowScrolling:"touch",
484
+ overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(b.overflowX="auto");this.scrollablePixelsY&&(b.overflowY="auto");this.scrollingParent=r("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=r("div",{className:"highcharts-scrolling"},b,this.scrollingParent);z(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=r("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);
485
+ this.innerContainer.appendChild(this.container);this.setUpScrolling=null};y.prototype.moveFixedElements=function(){var a=this.container,b=this.fixedRenderer,h=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),e;this.scrollablePixelsX&&
486
+ !this.inverted?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis");e&&h.push(""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)");h.forEach(function(d){[].forEach.call(a.querySelectorAll(d),function(a){(a.namespaceURI===b.SVG_NS?b.box:b.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};y.prototype.applyFixed=
487
+ function(){var b=!this.fixedDiv,g=this.options.chart,h=g.scrollablePlotArea,e=v.getRendererType();b?(this.fixedDiv=r("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(g.style&&g.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=g=new e(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),
488
+ this.scrollableMask=g.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":a(h.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();g=this.chartWidth+(this.scrollablePixelsX||
489
+ 0);e=this.chartHeight+(this.scrollablePixelsY||0);F(this.container);this.container.style.width=g+"px";this.container.style.height=e+"px";this.renderer.boxWrapper.attr({width:g,height:e,viewBox:[0,0,g,e].join(" ")});this.chartBackground.attr({width:g,height:e});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(h.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*h.scrollPositionX),h.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*h.scrollPositionY));
490
+ e=this.axisOffset;b=this.plotTop-e[0]-1;h=this.plotLeft-e[3]-1;g=this.plotTop+this.plotHeight+e[2]+1;e=this.plotLeft+this.plotWidth+e[1]+1;var p=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),J=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,g],["L",0,g],["Z"],["M",p,b],["L",this.chartWidth,b],["L",this.chartWidth,g],["L",p,g],["Z"]]:this.scrollablePixelsY?[["M",h,0],["L",h,this.plotTop-1],["L",e,this.plotTop-
491
+ 1],["L",e,0],["Z"],["M",h,J],["L",h,this.chartHeight],["L",e,this.chartHeight],["L",e,J],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};z(e,"afterInit",function(){this.chart.scrollableDirty=!0});z(B,"show",function(){this.chart.scrollableDirty=!0});""});I(e,"Core/Axis/Stacking/StackItem.js",[e["Core/FormatUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=b.format,v=e.series,t=y.defined,F=y.destroyObjectProperties,
492
+ z=y.isNumber,r=y.pick;b=function(){function b(b,a,d,g,e){var h=b.chart.inverted;this.axis=b;this.isNegative=d;this.options=a=a||{};this.x=g;this.cumulative=this.total=null;this.points={};this.hasValidPoints=!1;this.stack=e;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(h?d?"left":"right":"center"),verticalAlign:a.verticalAlign||(h?"middle":d?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(h?d?"right":"left":"center")}b.prototype.destroy=function(){F(this,this.axis)};
493
+ b.prototype.render=function(b){var a=this.axis.chart,d=this.options,g=d.format;g=g?B(g,this,a):d.formatter.call(this);this.label?this.label.attr({text:g,visibility:"hidden"}):(this.label=a.renderer.label(g,null,null,d.shape,null,null,d.useHTML,!1,"stack-labels"),g={r:d.borderRadius||0,text:g,rotation:d.rotation,padding:r(d.padding,5),visibility:"hidden"},a.styledMode||(g.fill=d.backgroundColor,g.stroke=d.borderColor,g["stroke-width"]=d.borderWidth,this.label.css(d.style)),this.label.attr(g),this.label.added||
494
+ this.label.add(b));this.label.labelrank=a.plotSizeY};b.prototype.setOffset=function(b,a,d,g,e){var h=this.axis,m=h.chart;g=h.translate(h.stacking.usePercentage?100:g?g:this.total,0,0,0,1);d=h.translate(d?d:0);b=r(e,m.xAxis[0].translate(this.x))+b;h=t(g)&&this.getStackBox(m,this,b,g,a,Math.abs(g-d),h);a=this.label;d=this.isNegative;var p=this.textAlign;a&&h&&(b=a.getBBox(),e=a.padding,g="justify"===r(this.options.overflow,"justify"),p="left"===p?m.inverted?-e:e:"right"===p?b.width:m.inverted&&"center"===
495
+ p?b.width/2:m.inverted?d?b.width+e:-e:b.width/2,d=m.inverted?b.height/2:d?-e:b.height,this.alignOptions.x=r(this.options.x,0),this.alignOptions.y=r(this.options.y,0),h.x-=p,h.y-=d,a.align(this.alignOptions,null,h),m.isInsidePlot(a.alignAttr.x+p-this.alignOptions.x,a.alignAttr.y+d-this.alignOptions.y)?a.show():(a.hide(),g=!1),g&&v.prototype.justifyDataLabel.call(this.axis,a,this.alignOptions,a.alignAttr,b,h),a.attr({x:a.alignAttr.x,y:a.alignAttr.y}),r(!g&&this.options.crop,!0)&&((m=z(a.x)&&z(a.y)&&
496
+ m.isInsidePlot(a.x-e+a.width,a.y)&&m.isInsidePlot(a.x+e,a.y))||a.hide()))};b.prototype.getStackBox=function(b,a,d,g,e,n,p){var h=a.axis.reversed,m=b.inverted,C=p.height+p.pos-(m?b.plotLeft:b.plotTop);a=a.isNegative&&!h||!a.isNegative&&h;return{x:m?a?g-p.right:g-n+p.pos-b.plotLeft:d+b.xAxis[0].transB-b.plotLeft,y:m?p.height-d-e:a?C-g-n:C-g,width:m?n:e,height:m?e:n}};return b}();"";return b});I(e,"Core/Axis/Stacking/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],
497
+ e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],function(b,e,y,B,v){function t(){var a=this,c=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(b){var d=b.xAxis&&b.xAxis.options||{};!b.options.stacking||!0!==b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=[b.type,f(b.options.stack,""),c?d.top:d.left,c?d.height:d.width].join())})}
498
+ function F(){var a=this.stacking;if(a){var c=a.stacks;A(c,function(a,b){x(a);c[b]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function z(){this.stacking||(this.stacking=new w(this))}function r(a,c,b,f){!J(a)||a.x!==c||f&&a.stackKey!==f?a={x:c,index:0,key:f,stackKey:f}:a.index++;a.key=[b,c,a.index].join();return a}function p(){var a=this,c=a.stackKey,b=a.yAxis.stacking.stacks,f=a.processedXData,d=a[a.options.stacking+"Stacker"],g;d&&[c,"-"+c].forEach(function(c){for(var h=f.length,k,
499
+ e;h--;)k=f[h],g=a.getStackIndicator(g,k,a.index,c),(e=(k=b[c]&&b[c][k])&&k.points[g.key])&&d.call(a,e,k,h)})}function h(a,c,b){c=c.total?100/c.total:0;a[0]=G(a[0]*c);a[1]=G(a[1]*c);this.stackedYData[b]=a[1]}function a(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):a&&A(a.stacks,function(c,b){"group"===b.slice(-5)&&(A(c,function(a){return a.destroy()}),delete a.stacks[b])})}
500
+ function d(a){var c=a||this.options.stacking;if(c&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var b=this.processedXData,d=this.processedYData,g=[],h=d.length,k=this.options,e=k.threshold,l=f(k.startFromThreshold&&e,0);k=k.stack;a=a?""+this.type+",".concat(c):this.stackKey;var m="-"+a,n=this.negStacks,w=this.yAxis,p=w.stacking.stacks,x=w.stacking.oldStacks,C,A;w.stacking.stacksTouched+=1;for(A=0;A<h;A++){var r=b[A];var D=d[A];var t=this.getStackIndicator(t,r,this.index);
501
+ var v=t.key;var z=(C=n&&D<(l?0:e))?m:a;p[z]||(p[z]={});p[z][r]||(x[z]&&x[z][r]?(p[z][r]=x[z][r],p[z][r].total=null):p[z][r]=new B(w,w.options.stackLabels,!!C,r,k));z=p[z][r];null!==D?(z.points[v]=z.points[this.index]=[f(z.cumulative,l)],J(z.cumulative)||(z.base=v),z.touched=w.stacking.stacksTouched,0<t.index&&!1===this.singleStacks&&(z.points[v][0]=z.points[this.index+","+r+",0"][0])):z.points[v]=z.points[this.index]=null;"percent"===c?(C=C?a:m,n&&p[C]&&p[C][r]?(C=p[C][r],z.total=C.total=Math.max(C.total,
502
+ z.total)+Math.abs(D)||0):z.total=G(z.total+(Math.abs(D)||0))):"group"===c?(u(D)&&(D=D[0]),null!==D&&(z.total=(z.total||0)+1)):z.total=G(z.total+(D||0));z.cumulative="group"===c?(z.total||1)-1:f(z.cumulative,l)+(D||0);null!==D&&(z.points[v].push(z.cumulative),g[A]=z.cumulative,z.hasValidPoints=!0)}"percent"===c&&(w.stacking.usePercentage=!0);"group"!==c&&(this.stackedYData=g);w.stacking.oldStacks={}}}var g=b.getDeferredAnimation,m=y.series.prototype,n=v.addEvent,G=v.correctFloat,J=v.defined,x=v.destroyObjectProperties,
503
+ C=v.fireEvent,u=v.isArray,l=v.isNumber,A=v.objectEach,f=v.pick,w=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=function(){var a=this.axis,b=a.series,f=a.options.reversedStacks,d=b.length,g;if(!a.isXAxis){this.usePercentage=!1;for(g=d;g--;){var h=b[f?g:d-g-1];h.setStackedPoints();h.setGroupedPoints()}for(g=0;g<d;g++)b[g].modifyStacks();C(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=
504
+ this.stacks=this.oldStacks;A(a,function(a){A(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,b=a.stacks;a.axis.isXAxis||A(b,function(c){A(c,function(b,f){l(b.touched)&&b.touched<a.stacksTouched?(b.destroy(),delete c[f]):(b.total=null,b.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,b=a.chart,f=b.renderer,d=this.stacks;a=g(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var h=this.stackTotalGroup=this.stackTotalGroup||
505
+ f.g("stack-labels").attr({zIndex:6,opacity:0}).add();h.translate(b.plotLeft,b.plotTop);A(d,function(a){A(a,function(a){a.render(h)})});h.animate({opacity:1},a)};return a}(),k;(function(b){var c=[];b.compose=function(b,f,g){-1===c.indexOf(b)&&(c.push(b),n(b,"init",z),n(b,"destroy",F));-1===c.indexOf(f)&&(c.push(f),f.prototype.getStacks=t);-1===c.indexOf(g)&&(c.push(g),b=g.prototype,b.getStackIndicator=r,b.modifyStacks=p,b.percentStacker=h,b.setGroupedPoints=a,b.setStackedPoints=d)}})(k||(k={}));return k});
506
+ I(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(e,r)};return function(e,r){function p(){this.constructor=e}b(e,r);e.prototype=null===r?Object.create(r):(p.prototype=r.prototype,new p)}}(),v=y.defined,
507
+ t=y.merge;y=function(e){function z(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(z,e);z.prototype.drawGraph=function(){var b=this,e=this.options,h=(this.gappedPath||this.getGraphPath).call(this),a=this.chart.styledMode,d=[["graph","highcharts-graph"]];a||d[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle);d=b.getZonesGraphs(d);d.forEach(function(d,m){var g=d[0],p=b[g],r=p?"animate":"attr";p?(p.endX=b.preventGraphAnimation?null:h.xMap,
508
+ p.animate({d:h})):h.length&&(b[g]=p=b.chart.renderer.path(h).addClass(d[1]).attr({zIndex:1}).add(b.group));p&&!a&&(g={stroke:d[2],"stroke-width":e.lineWidth,fill:b.fillGraph&&b.color||"none"},d[3]?g.dashstyle=d[3]:"square"!==e.linecap&&(g["stroke-linecap"]=g["stroke-linejoin"]="round"),p[r](g).shadow(2>m&&e.shadow));p&&(p.startX=h.xMap,p.isArea=h.isArea)})};z.prototype.getGraphPath=function(b,e,h){var a=this,d=a.options,g=[],m=[],n,p=d.step;b=b||a.points;var r=b.reversed;r&&b.reverse();(p={right:1,
509
+ center:2}[p]||p&&3)&&r&&(p=4-p);b=this.getValidPoints(b,!1,!(d.connectNulls&&!e&&!h));b.forEach(function(x,C){var u=x.plotX,l=x.plotY,A=b[C-1];(x.leftCliff||A&&A.rightCliff)&&!h&&(n=!0);x.isNull&&!v(e)&&0<C?n=!d.connectNulls:x.isNull&&!e?n=!0:(0===C||n?C=[["M",x.plotX,x.plotY]]:a.getPointSpline?C=[a.getPointSpline(b,x,C)]:p?(C=1===p?[["L",A.plotX,l]]:2===p?[["L",(A.plotX+u)/2,A.plotY],["L",(A.plotX+u)/2,l]]:[["L",u,A.plotY]],C.push(["L",u,l])):C=[["L",u,l]],m.push(x.x),p&&(m.push(x.x),2===p&&m.push(x.x)),
510
+ g.push.apply(g,C),n=!1)});g.xMap=m;return a.graphPath=g};z.prototype.getZonesGraphs=function(b){this.zones.forEach(function(e,h){h=["zone-graph-"+h,"highcharts-graph highcharts-zone-graph-"+h+" "+(e.className||"")];this.chart.styledMode||h.push(e.color||this.color,e.dashStyle||this.options.dashStyle);b.push(h)},this);return b};z.defaultOptions=t(b.defaultOptions,{});return z}(b);e.registerSeriesType("line",y);"";return y});I(e,"Series/Area/AreaSeries.js",[e["Core/Color/Color.js"],e["Core/Legend/LegendSymbol.js"],
511
+ e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function g(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),t=b.parse,F=y.seriesTypes.line;b=B.extend;var z=B.merge,r=B.objectEach,
512
+ p=B.pick;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(a,b);a.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,g=this.areaPath,h=this.options,e=[["area","highcharts-area",this.color,h.fillColor]];this.zones.forEach(function(b,d){e.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+b.className,b.color||a.color,b.fillColor||h.fillColor])});e.forEach(function(b){var d=
513
+ b[0],e={},m=a[d],n=m?"animate":"attr";m?(m.endX=a.preventGraphAnimation?null:g.xMap,m.animate({d:g})):(e.zIndex=0,m=a[d]=a.chart.renderer.path(g).addClass(b[1]).add(a.group),m.isArea=!0);a.chart.styledMode||(e.fill=p(b[3],t(b[2]).setOpacity(p(h.fillOpacity,.75)).get()));m[n](e);m.startX=g.xMap;m.shiftUnit=h.step?2:1})};a.prototype.getGraphPath=function(a){var b=F.prototype.getGraphPath,d=this.options,h=d.stacking,e=this.yAxis,r=[],x=[],C=this.index,u=e.stacking.stacks[this.stackKey],l=d.threshold,
514
+ A=Math.round(e.getThreshold(d.threshold));d=p(d.connectNulls,"percent"===h);var f=function(b,f,d){var g=a[b];b=h&&u[g.x].points[C];var k=g[d+"Null"]||0;d=g[d+"Cliff"]||0;g=!0;if(d||k){var q=(k?b[0]:b[1])+d;var m=b[0]+d;g=!!k}else!h&&a[f]&&a[f].isNull&&(q=m=l);"undefined"!==typeof q&&(x.push({plotX:c,plotY:null===q?A:e.getThreshold(q),isNull:g,isCliff:!0}),r.push({plotX:c,plotY:null===m?A:e.getThreshold(m),doCurve:!1}))};a=a||this.points;h&&(a=this.getStackPoints(a));for(var w=0,k=a.length;w<k;++w){h||
515
+ (a[w].leftCliff=a[w].rightCliff=a[w].leftNull=a[w].rightNull=void 0);var D=a[w].isNull;var c=p(a[w].rectPlotX,a[w].plotX);var q=h?p(a[w].yBottom,A):A;if(!D||d)d||f(w,w-1,"left"),D&&!h&&d||(x.push(a[w]),r.push({x:w,plotX:c,plotY:q})),d||f(w,w+1,"right")}f=b.call(this,x,!0,!0);r.reversed=!0;D=b.call(this,r,!0,!0);(q=D[0])&&"M"===q[0]&&(D[0]=["L",q[1],q[2]]);D=f.concat(D);D.length&&D.push(["Z"]);b=b.call(this,x,!1,d);D.xMap=f.xMap;this.areaPath=D;return b};a.prototype.getStackPoints=function(a){var b=
516
+ this,d=[],h=[],e=this.xAxis,t=this.yAxis,x=t.stacking.stacks[this.stackKey],C={},u=t.series,l=u.length,A=t.options.reversedStacks?1:-1,f=u.indexOf(b);a=a||this.points;if(this.options.stacking){for(var w=0;w<a.length;w++)a[w].leftNull=a[w].rightNull=void 0,C[a[w].x]=a[w];r(x,function(a,c){null!==a.total&&h.push(c)});h.sort(function(a,c){return a-c});var k=u.map(function(a){return a.visible});h.forEach(function(a,c){var g=0,m,n;if(C[a]&&!C[a].isNull)d.push(C[a]),[-1,1].forEach(function(d){var g=1===
517
+ d?"rightNull":"leftNull",e=x[h[c+d]],q=0;if(e)for(var w=f;0<=w&&w<l;){var p=u[w].index;m=e.points[p];m||(p===b.index?C[a][g]=!0:k[w]&&(n=x[a].points[p])&&(q-=n[1]-n[0]));w+=A}C[a][1===d?"rightCliff":"leftCliff"]=q});else{for(var w=f;0<=w&&w<l;){if(m=x[a].points[u[w].index]){g=m[1];break}w+=A}g=p(g,0);g=t.translate(g,0,1,0,1);d.push({isNull:!0,plotX:e.translate(a,0,0,0,1),x:a,plotY:g,yBottom:g})}})}return d};a.defaultOptions=z(F.defaultOptions,{threshold:0});return a}(F);b(B.prototype,{singleStacks:!1,
518
+ drawLegendSymbol:e.drawRectangle});y.registerSeriesType("area",B);"";return B});I(e,"Series/Spline/SplineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var y=this&&this.__extends||function(){var b=function(e,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(e,r)};return function(e,r){function p(){this.constructor=e}b(e,r);e.prototype=null===r?Object.create(r):
519
+ (p.prototype=r.prototype,new p)}}(),B=b.seriesTypes.line,v=e.merge,t=e.pick;e=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}y(e,b);e.prototype.getPointSpline=function(b,e,h){var a=e.plotX||0,d=e.plotY||0,g=b[h-1];h=b[h+1];if(g&&!g.isNull&&!1!==g.doCurve&&!e.isCliff&&h&&!h.isNull&&!1!==h.doCurve&&!e.isCliff){b=g.plotY||0;var m=h.plotX||0;h=h.plotY||0;var n=0;var p=(1.5*a+(g.plotX||0))/2.5;var r=(1.5*d+b)/2.5;m=(1.5*a+
520
+ m)/2.5;var x=(1.5*d+h)/2.5;m!==p&&(n=(x-r)*(m-a)/(m-p)+d-x);r+=n;x+=n;r>b&&r>d?(r=Math.max(b,d),x=2*d-r):r<b&&r<d&&(r=Math.min(b,d),x=2*d-r);x>h&&x>d?(x=Math.max(h,d),r=2*d-x):x<h&&x<d&&(x=Math.min(h,d),r=2*d-x);e.rightContX=m;e.rightContY=x}e=["C",t(g.rightContX,g.plotX,0),t(g.rightContY,g.plotY,0),t(p,a,0),t(r,d,0),a,d];g.rightContX=g.rightContY=void 0;return e};e.defaultOptions=v(B.defaultOptions);return e}(B);b.registerSeriesType("spline",e);"";return e});I(e,"Series/AreaSpline/AreaSplineSeries.js",
521
+ [e["Series/Spline/SplineSeries.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(h,a)};return function(h,a){function d(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),
522
+ t=y.seriesTypes,F=t.area;t=t.area.prototype;var z=B.extend,r=B.merge;B=function(e){function h(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}v(h,e);h.defaultOptions=r(b.defaultOptions,F.defaultOptions);return h}(b);z(B.prototype,{getGraphPath:t.getGraphPath,getStackPoints:t.getStackPoints,drawGraph:t.drawGraph,drawLegendSymbol:e.drawRectangle});y.registerSeriesType("areaspline",B);"";return B});I(e,"Series/Column/ColumnSeries.js",[e["Core/Animation/AnimationUtilities.js"],
523
+ e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F){var z=this&&this.__extends||function(){var a=function(b,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return a(b,f)};return function(b,f){function d(){this.constructor=b}a(b,f);b.prototype=null===f?Object.create(f):
524
+ (d.prototype=f.prototype,new d)}}(),r=b.animObject,p=e.parse,h=y.hasTouch;b=y.noop;var a=F.clamp,d=F.css,g=F.defined,m=F.extend,n=F.fireEvent,G=F.isArray,J=F.isNumber,x=F.merge,C=F.pick,u=F.objectEach;F=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}z(e,b);e.prototype.animate=function(b){var f=this,d=this.yAxis,g=f.options,c=this.chart.inverted,h={},e=c?"translateX":"translateY";if(b)h.scaleY=
525
+ .001,b=a(d.toPixels(g.threshold),d.pos,d.pos+d.len),c?h.translateX=b-d.len:h.translateY=b,f.clipBox&&f.setClip(),f.group.attr(h);else{var l=Number(f.group.attr(e));f.group.animate({scaleY:1},m(r(f.options.animation),{step:function(a,c){f.group&&(h[e]=l+c.pos*(d.pos-l),f.group.attr(h))}}))}};e.prototype.init=function(a,d){b.prototype.init.apply(this,arguments);var f=this;a=f.chart;a.hasRendered&&a.series.forEach(function(a){a.type===f.type&&(a.isDirty=!0)})};e.prototype.getColumnMetrics=function(){var a=
526
+ this,b=a.options,d=a.xAxis,g=a.yAxis,c=d.options.reversedStacks;c=d.reversed&&!c||!d.reversed&&c;var h={},e,l=0;!1===b.grouping?l=1:a.chart.series.forEach(function(c){var b=c.yAxis,f=c.options;if(c.type===a.type&&(c.visible||!a.chart.options.chart.ignoreHiddenSeries)&&g.len===b.len&&g.pos===b.pos){if(f.stacking&&"group"!==f.stacking){e=c.stackKey;"undefined"===typeof h[e]&&(h[e]=l++);var d=h[e]}else!1!==f.grouping&&(d=l++);c.columnIndex=d}});var m=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||
527
+ b.pointRange||d.closestPointRange||d.tickInterval||1),d.len),n=m*b.groupPadding,u=(m-2*n)/(l||1);b=Math.min(b.maxPointWidth||d.len,C(b.pointWidth,u*(1-2*b.pointPadding)));a.columnMetrics={width:b,offset:(u-b)/2+(n+((a.columnIndex||0)+(c?1:0))*u-m/2)*(c?-1:1),paddedWidth:u,columnCount:l};return a.columnMetrics};e.prototype.crispCol=function(a,b,d,g){var c=this.chart,f=this.borderWidth,h=-(f%2?.5:0);f=f%2?.5:1;c.inverted&&c.renderer.isVML&&(f+=1);this.options.crisp&&(d=Math.round(a+d)+h,a=Math.round(a)+
528
+ h,d-=a);g=Math.round(b+g)+f;h=.5>=Math.abs(b)&&.5<g;b=Math.round(b)+f;g-=b;h&&g&&(--b,g+=1);return{x:a,y:b,width:d,height:g}};e.prototype.adjustForMissingColumns=function(a,b,d,g){var c=this,f=this.options.stacking;if(!d.isNull&&1<g.columnCount){var h=this.yAxis.options.reversedStacks,e=0,k=h?0:-g.columnCount;u(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof d.x&&(a=a[d.x.toString()])){var b=a.points[c.index],g=a.total;f?(b&&(e=k),a.hasValidPoints&&(h?k++:k--)):G(b)&&
529
+ (e=b[1],k=g||0)}});a=(d.plotX||0)+((k-1)*g.paddedWidth+b)/2-b-e*g.paddedWidth}return a};e.prototype.translate=function(){var b=this,d=b.chart,h=b.options,e=b.dense=2>b.closestPointRange*b.xAxis.transA;e=b.borderWidth=C(h.borderWidth,e?0:1);var c=b.xAxis,l=b.yAxis,m=h.threshold,n=b.translatedThreshold=l.getThreshold(m),u=C(h.minPointLength,5),p=b.getColumnMetrics(),x=p.width,A=b.pointXOffset=p.offset,r=b.dataMin,G=b.dataMax,t=b.barW=Math.max(x,1+2*e);d.inverted&&(n-=.5);h.pointPadding&&(t=Math.ceil(t));
530
+ v.prototype.translate.apply(b);b.points.forEach(function(f){var e=C(f.yBottom,n),k=999+Math.abs(e),q=f.plotX||0;k=a(f.plotY,-k,l.len+k);var w=Math.min(k,e),E=Math.max(k,e)-w,D=x,H=q+A,v=t;u&&Math.abs(E)<u&&(E=u,q=!l.reversed&&!f.negative||l.reversed&&f.negative,J(m)&&J(G)&&f.y===m&&G<=m&&(l.min||0)<m&&(r!==G||(l.max||0)<=m)&&(q=!q),w=Math.abs(w-n)>u?e-u:n-(q?u:0));g(f.options.pointWidth)&&(D=v=Math.ceil(f.options.pointWidth),H-=Math.round((D-x)/2));h.centerInCategory&&(H=b.adjustForMissingColumns(H,
531
+ D,f,p));f.barX=H;f.pointWidth=D;f.tooltipPos=d.inverted?[a(l.len+l.pos-d.plotLeft-k,l.pos-d.plotLeft,l.len+l.pos-d.plotLeft),c.len+c.pos-d.plotTop-H-v/2,E]:[c.left-d.plotLeft+H+v/2,a(k+l.pos-d.plotTop,l.pos-d.plotTop,l.len+l.pos-d.plotTop),E];f.shapeType=b.pointClass.prototype.shapeType||"rect";f.shapeArgs=b.crispCol.apply(b,f.isNull?[H,n,v,0]:[H,w,v,E])})};e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(a,
532
+ b){var f=this.options,d=this.pointAttrToOptions||{},c=d.stroke||"borderColor",g=d["stroke-width"]||"borderWidth",h=a&&a.color||this.color,e=a&&a[c]||f[c]||h;d=a&&a.options.dashStyle||f.dashStyle;var l=a&&a[g]||f[g]||this[g]||0,m=C(a&&a.opacity,f.opacity,1);if(a&&this.zones.length){var n=a.getZone();h=a.options.color||n&&(n.color||a.nonZonedColor)||this.color;n&&(e=n.borderColor||e,d=n.dashStyle||d,l=n.borderWidth||l)}b&&a&&(a=x(f.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,
533
+ h=a.color||"undefined"!==typeof b&&p(h).brighten(a.brightness).get()||h,e=a[c]||e,l=a[g]||l,d=a.dashStyle||d,m=C(a.opacity,m));c={fill:h,stroke:e,"stroke-width":l,opacity:m};d&&(c.dashstyle=d);return c};e.prototype.drawPoints=function(){var a=this,b=this.chart,d=a.options,g=b.renderer,c=d.animationLimit||250,h;a.points.forEach(function(f){var e=f.graphic,k=!!e,l=e&&b.pointCount<c?"animate":"attr";if(J(f.plotY)&&null!==f.y){h=f.shapeArgs;e&&f.hasNewShapeType()&&(e=e.destroy());a.enabledDataSorting&&
534
+ (f.startXPos=a.xAxis.reversed?-(h?h.width||0:0):a.xAxis.width);e||(f.graphic=e=g[f.shapeType](h).add(f.group||a.group))&&a.enabledDataSorting&&b.hasRendered&&b.pointCount<c&&(e.attr({x:f.startXPos}),k=!0,l="animate");if(e&&k)e[l](x(h));if(d.borderRadius)e[l]({r:d.borderRadius});b.styledMode||e[l](a.pointAttribs(f,f.selected&&"select")).shadow(!1!==f.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);e&&(e.addClass(f.getClassName(),!0),e.attr({visibility:f.visible?"inherit":"hidden"}))}else e&&
535
+ (f.graphic=e.destroy())})};e.prototype.drawTracker=function(){var a=this,b=a.chart,g=b.pointer,e=function(a){var c=g.getPointFromEvent(a);"undefined"!==typeof c&&(g.isDirectTouch=!0,c.onMouseOver(a))},c;a.points.forEach(function(a){c=G(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);c.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(c){if(a[c]){a[c].addClass("highcharts-tracker").on("mouseover",
536
+ e).on("mouseout",function(a){g.onTrackerMouseOut(a)});if(h)a[c].on("touchstart",e);!b.styledMode&&a.options.cursor&&a[c].css(d).css({cursor:a.options.cursor})}}),a._hasTracking=!0);n(this,"afterDrawTracker")};e.prototype.remove=function(){var a=this,b=a.chart;b.hasRendered&&b.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});v.prototype.remove.apply(a,arguments)};e.defaultOptions=x(v.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,
537
+ cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return e}(v);m(F.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:B.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});t.registerSeriesType("column",F);"";"";return F});I(e,"Core/Series/DataLabel.js",
538
+ [e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(b,e,y){var B=b.getDeferredAnimation,v=e.format,t=y.defined,F=y.extend,z=y.fireEvent,r=y.isArray,p=y.isString,h=y.merge,a=y.objectEach,d=y.pick,g=y.splat,m;(function(b){function e(a,b,g,h,c){var f=this,e=this.chart,k=this.isCartesian&&e.inverted,l=this.enabledDataSorting,m=d(a.dlBox&&a.dlBox.centerX,a.plotX),n=a.plotY,u=g.rotation,p=g.align,w=t(m)&&t(n)&&e.isInsidePlot(m,Math.round(n),{inverted:k,
539
+ paneCoordinates:!0,series:f}),x=function(d){l&&f.xAxis&&!C&&f.setDataLabelStartPos(a,b,c,w,d)},C="justify"===d(g.overflow,l?"none":"justify"),A=this.visible&&!1!==a.visible&&(a.series.forceDL||l&&!C||w||d(g.inside,!!this.options.stacking)&&h&&e.isInsidePlot(m,k?h.x+1:h.y+h.height-1,{inverted:k,paneCoordinates:!0,series:f}));if(A&&t(m)&&t(n)){u&&b.attr({align:p});p=b.getBBox(!0);var r=[0,0];var D=e.renderer.fontMetrics(e.styledMode?void 0:g.style.fontSize,b).b;h=F({x:k?this.yAxis.len-n:m,y:Math.round(k?
540
+ this.xAxis.len-m:n),width:0,height:0},h);F(g,{width:p.width,height:p.height});u?(C=!1,r=e.renderer.rotCorr(D,u),m={x:h.x+(g.x||0)+h.width/2+r.x,y:h.y+(g.y||0)+{top:0,middle:.5,bottom:1}[g.verticalAlign]*h.height},r=[p.x-Number(b.attr("x")),p.y-Number(b.attr("y"))],x(m),b[c?"attr":"animate"](m)):(x(h),b.align(g,void 0,h),m=b.alignAttr);C&&0<=h.height?this.justifyDataLabel(b,g,m,p,h,c):d(g.crop,!0)&&(h=m.x,x=m.y,h+=r[0],x+=r[1],A=e.isInsidePlot(h,x,{paneCoordinates:!0,series:f})&&e.isInsidePlot(h+p.width,
541
+ x+p.height,{paneCoordinates:!0,series:f}));if(g.shape&&!u)b[c?"attr":"animate"]({anchorX:k?e.plotWidth-a.plotY:a.plotX,anchorY:k?e.plotHeight-a.plotX:a.plotY})}c&&l&&(b.placed=!1);A||l&&!C?b.show():(b.hide(),b.placed=!1)}function m(a,b){var f=b.filter;return f?(b=f.operator,a=a[f.property],f=f.value,">"===b&&a>f||"<"===b&&a<f||">="===b&&a>=f||"<="===b&&a<=f||"=="===b&&a==f||"==="===b&&a===f?!0:!1):!0}function n(){var b=this,h=b.chart,e=b.options,l=b.points,c=b.hasRendered||0,q=h.renderer,n=h.options.chart,
542
+ x=n.backgroundColor;n=n.plotBackgroundColor;var C=q.getContrast(p(n)&&n||p(x)&&x||"#000000"),A=e.dataLabels,G;x=A.animation;x=A.defer?B(h,x,b):{defer:0,duration:0};A=u(u(h.options.plotOptions&&h.options.plotOptions.series&&h.options.plotOptions.series.dataLabels,h.options.plotOptions&&h.options.plotOptions[b.type]&&h.options.plotOptions[b.type].dataLabels),A);z(this,"drawDataLabels");if(r(A)||A.enabled||b._hasPointLabels){var J=b.plotGroup("dataLabelsGroup","data-labels",c?"inherit":"hidden",A.zIndex||
543
+ 6);J.attr({opacity:+c});!c&&(c=b.dataLabelsGroup)&&(b.visible&&J.show(),c[e.animation?"animate":"attr"]({opacity:1},x));l.forEach(function(c){G=g(u(A,c.dlOptions||c.options&&c.options.dataLabels));G.forEach(function(f,g){var k=f.enabled&&(!c.isNull||c.dataLabelOnNull)&&m(c,f),l=c.connectors?c.connectors[g]:c.connector,n=c.dataLabels?c.dataLabels[g]:c.dataLabel,u=!n,p=d(f.distance,c.labelDistance);if(k){var w=c.getLabelConfig();var x=d(f[c.formatPrefix+"Format"],f.format);w=t(x)?v(x,w,h):(f[c.formatPrefix+
544
+ "Formatter"]||f.formatter).call(w,f);x=f.style;var A=f.rotation;h.styledMode||(x.color=d(f.color,x.color,b.color,"#000000"),"contrast"===x.color?(c.contrastColor=q.getContrast(c.color||b.color),x.color=!t(p)&&f.inside||0>p||e.stacking?c.contrastColor:C):delete c.contrastColor,e.cursor&&(x.cursor=e.cursor));var r={r:f.borderRadius||0,rotation:A,padding:f.padding,zIndex:1};h.styledMode||(r.fill=f.backgroundColor,r.stroke=f.borderColor,r["stroke-width"]=f.borderWidth);a(r,function(a,c){"undefined"===
545
+ typeof a&&delete r[c]})}!n||k&&t(w)&&!!n.div===!!f.useHTML&&(n.rotation&&f.rotation||n.rotation===f.rotation)||(u=!0,c.dataLabel=n=c.dataLabel&&c.dataLabel.destroy(),c.dataLabels&&(1===c.dataLabels.length?delete c.dataLabels:delete c.dataLabels[g]),g||delete c.dataLabel,l&&(c.connector=c.connector.destroy(),c.connectors&&(1===c.connectors.length?delete c.connectors:delete c.connectors[g])));k&&t(w)?(n?r.text=w:(c.dataLabels=c.dataLabels||[],n=c.dataLabels[g]=A?q.text(w,0,0,f.useHTML).addClass("highcharts-data-label"):
546
+ q.label(w,0,0,f.shape,null,null,f.useHTML,null,"data-label"),g||(c.dataLabel=n),n.addClass(" highcharts-data-label-color-"+c.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":""))),n.options=f,n.attr(r),h.styledMode||n.css(x).shadow(f.shadow),f.textPath&&!f.useHTML&&(n.setTextPath(c.getDataLabelPath&&c.getDataLabelPath(n)||c.graphic,f.textPath),c.dataLabelPath&&!f.textPath.enabled&&(c.dataLabelPath=c.dataLabelPath.destroy())),n.added||n.add(J),b.alignDataLabel(c,n,f,null,u)):n&&n.hide()})})}z(this,
547
+ "afterDrawDataLabels")}function C(a,b,d,g,c,h){var f=this.chart,e=b.align,k=b.verticalAlign,l=a.box?0:a.padding||0,m=b.x;m=void 0===m?0:m;var q=b.y;q=void 0===q?0:q;var n=(d.x||0)+l;if(0>n){"right"===e&&0<=m?(b.align="left",b.inside=!0):m-=n;var u=!0}n=(d.x||0)+g.width-l;n>f.plotWidth&&("left"===e&&0>=m?(b.align="right",b.inside=!0):m+=f.plotWidth-n,u=!0);n=d.y+l;0>n&&("bottom"===k&&0<=q?(b.verticalAlign="top",b.inside=!0):q-=n,u=!0);n=(d.y||0)+g.height-l;n>f.plotHeight&&("top"===k&&0>=q?(b.verticalAlign=
548
+ "bottom",b.inside=!0):q+=f.plotHeight-n,u=!0);u&&(b.x=m,b.y=q,a.placed=!h,a.align(b,void 0,c));return u}function u(a,b){var f=[],d;if(r(a)&&!r(b))f=a.map(function(a){return h(a,b)});else if(r(b)&&!r(a))f=b.map(function(c){return h(a,c)});else if(r(a)||r(b))for(d=Math.max(a.length,b.length);d--;)f[d]=h(a[d],b[d]);else f=h(a,b);return f}function l(a,b,d,g,c){var f=this.chart,h=f.inverted,e=this.xAxis,k=e.reversed,l=h?b.height/2:b.width/2;a=(a=a.pointWidth)?a/2:0;b.startXPos=h?c.x:k?-l-a:e.width-l+a;
549
+ b.startYPos=h?k?this.yAxis.height-l+a:-l-a:c.y;g?"hidden"===b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0},void 0,b.hide);f.hasRendered&&(d&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)}var A=[];b.compose=function(a){if(-1===A.indexOf(a)){var b=a.prototype;A.push(a);b.alignDataLabel=e;b.drawDataLabels=n;b.justifyDataLabel=C;b.setDataLabelStartPos=l}}})(m||(m={}));"";return m});I(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],
550
+ e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=e.series,v=y.merge,t=y.pick,F;(function(e){function r(b,a,d,g,e){var h=this.chart.inverted,m=b.series,p=(m.xAxis?m.xAxis.len:this.chart.plotSizeX)||0;m=(m.yAxis?m.yAxis.len:this.chart.plotSizeY)||0;var x=b.dlBox||b.shapeArgs,C=t(b.below,b.plotY>t(this.translatedThreshold,m)),u=t(d.inside,!!this.options.stacking);x&&(g=v(x),0>g.y&&(g.height+=g.y,g.y=0),x=g.y+g.height-m,0<x&&x<g.height&&(g.height-=x),h&&(g={x:m-g.y-g.height,
551
+ y:p-g.x-g.width,width:g.height,height:g.width}),u||(h?(g.x+=C?0:g.width,g.width=0):(g.y+=C?g.height:0,g.height=0)));d.align=t(d.align,!h||u?"center":C?"right":"left");d.verticalAlign=t(d.verticalAlign,h||u?"middle":C?"top":"bottom");B.prototype.alignDataLabel.call(this,b,a,d,g,e);d.inside&&b.contrastColor&&a.css({color:b.contrastColor})}var p=[];e.compose=function(h){b.compose(B);-1===p.indexOf(h)&&(p.push(h),h.prototype.alignDataLabel=r)}})(F||(F={}));return F});I(e,"Series/Bar/BarSeries.js",[e["Series/Column/ColumnSeries.js"],
552
+ e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(e,r)};return function(e,r){function p(){this.constructor=e}b(e,r);e.prototype=null===r?Object.create(r):(p.prototype=r.prototype,new p)}}(),v=y.extend,t=y.merge;y=function(e){function v(){var b=null!==e&&e.apply(this,
553
+ arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(v,e);v.defaultOptions=t(b.defaultOptions,{});return v}(b);v(y.prototype,{inverted:!0});e.registerSeriesType("bar",y);"";return y});I(e,"Series/Scatter/ScatterSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var y=this&&this.__extends||function(){var b=function(e,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
554
+ (a[d]=b[d])};return b(e,h)};return function(e,h){function a(){this.constructor=e}b(e,h);e.prototype=null===h?Object.create(h):(a.prototype=h.prototype,new a)}}(),B=b.seriesTypes,v=B.column,t=B.line;B=e.addEvent;var F=e.extend,z=e.merge;e=function(b){function e(){var h=null!==b&&b.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}y(e,b);e.prototype.applyJitter=function(){var b=this,a=this.options.jitter,d=this.points.length;a&&this.points.forEach(function(g,h){["x",
555
+ "y"].forEach(function(e,m){var n="plot"+e.toUpperCase();if(a[e]&&!g.isNull){var p=b[e+"Axis"];var C=a[e]*p.transA;if(p&&!p.isLog){var u=Math.max(0,g[n]-C);p=Math.min(p.len,g[n]+C);m=1E4*Math.sin(h+m*d);g[n]=u+(p-u)*(m-Math.floor(m));"x"===e&&(g.clientX=g.plotX)}}})})};e.prototype.drawGraph=function(){this.options.lineWidth?b.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};e.defaultOptions=z(t.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},
556
+ tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return e}(t);F(e.prototype,{drawTracker:v.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});B(e,"afterTranslate",function(){this.applyJitter()});b.registerSeriesType("scatter",e);"";return e});I(e,"Series/CenteredUtilities.js",
557
+ [e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(b,e,y){var B=b.deg2rad,v=y.fireEvent,t=y.isNumber,F=y.pick,z=y.relativeLength,r;(function(b){b.getCenter=function(){var b=this.options,a=this.chart,d=2*(b.slicedOffset||0),g=a.plotWidth-2*d,m=a.plotHeight-2*d,n=b.center,p=Math.min(g,m),r=b.thickness,x=b.size,C=b.innerSize||0;"string"===typeof x&&(x=parseFloat(x));"string"===typeof C&&(C=parseFloat(C));b=[F(n[0],"50%"),F(n[1],"50%"),F(x&&0>x?void 0:b.size,"100%"),F(C&&
558
+ 0>C?void 0:b.innerSize||0,"0%")];!a.angular||this instanceof e||(b[3]=0);for(n=0;4>n;++n)x=b[n],a=2>n||2===n&&/%$/.test(x),b[n]=z(x,[g,m,p,b[2]][n])+(a?d:0);b[3]>b[2]&&(b[3]=b[2]);t(r)&&2*r<b[2]&&0<r&&(b[3]=b[2]-2*r);v(this,"afterGetCenter",{positions:b});return b};b.getStartAndEndRadians=function(b,a){b=t(b)?b:0;a=t(a)&&a>b&&360>a-b?a:b+360;return{start:B*(b+-90),end:B*(a+-90)}}})(r||(r={}));"";return r});I(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],
559
+ e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function g(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),v=b.setAnimation,t=y.addEvent,F=y.defined;b=y.extend;var z=y.isNumber,r=y.pick,p=y.relativeLength;e=function(b){function a(){var a=
560
+ null!==b&&b.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}B(a,b);a.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,e=this.connectorShapes,h=b.connectorShape;e[h]&&(h=e[h]);return h.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};a.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};a.prototype.haloPath=function(a){var b=
561
+ this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:b.r-1,start:b.start,end:b.end})};a.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=r(this.name,"Slice");var g=function(b){a.slice("select"===b.type)};t(this,"select",g);t(this,"unselect",g);return this};a.prototype.isValid=function(){return z(this.y)&&0<=this.y};a.prototype.setVisible=function(a,b){var d=this,g=this.series,e=g.chart,h=g.options.ignoreHiddenPoint;
562
+ b=r(b,h);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(d[b])d[b][a?"show":"hide"](a)}),this.legendItem&&e.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),h&&(g.isDirty=!0),b&&e.redraw())};a.prototype.slice=function(a,b,e){var d=this.series;v(e,d.chart);r(b,!0);this.sliced=this.options.sliced=F(a)?a:!this.sliced;
563
+ d.options.data[d.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return a}(e);b(e.prototype,{connectorShapes:{fixedOffset:function(b,a,d){var g=a.breakAt;a=a.touchingSliceAt;return[["M",b.x,b.y],d.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*g.x-a.x,2*g.y-a.y,g.x,g.y]:["L",g.x,g.y],["L",a.x,a.y]]},straight:function(b,a){a=a.touchingSliceAt;return[["M",b.x,b.y],["L",a.x,a.y]]},crookedLine:function(b,
564
+ a,d){a=a.touchingSliceAt;var g=this.series,e=g.center[0],h=g.chart.plotWidth,r=g.chart.plotLeft;g=b.alignment;var t=this.shapeArgs.r;d=p(d.crookDistance,1);h="left"===g?e+t+(h+r-e-t)*(1-d):r+(e-t)*d;d=["L",h,b.y];e=!0;if("left"===g?h>b.x||h<a.x:h<b.x||h>a.x)e=!1;b=[["M",b.x,b.y]];e&&b.push(d);b.push(["L",a.x,a.y]);return b}}});return e});I(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Series/Pie/PiePoint.js"],
565
+ e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F,z,r){var p=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),
566
+ h=b.getStartAndEndRadians;y=y.noop;var a=r.clamp,d=r.extend,g=r.fireEvent,m=r.merge,n=r.pick,G=r.relativeLength;r=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.center=void 0;a.data=void 0;a.maxLabelDistance=void 0;a.options=void 0;a.points=void 0;return a}p(d,b);d.prototype.animate=function(a){var b=this,d=b.points,g=b.startAngleRad;a||d.forEach(function(a){var f=a.graphic,d=a.shapeArgs;f&&d&&(f.attr({r:n(a.startR,b.center&&b.center[3]/2),start:g,end:g}),f.animate({r:d.r,
567
+ start:d.start,end:d.end},b.options.animation))})};d.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var g=this.center[0];var f=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(g,f,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:z.arc(g,f,this.center[2]/2,0,{start:a,end:b,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,
568
+ fill:d.fillColor||"none",stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};d.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})};d.prototype.generatePoints=function(){b.prototype.generatePoints.call(this);this.updateTotals()};d.prototype.getX=function(b,d,g){var e=this.center,
569
+ f=this.radii?this.radii[g.index]||0:e[2]/2;b=Math.asin(a((b-e[1])/(f+g.labelDistance),-1,1));return e[0]+(d?-1:1)*Math.cos(b)*(f+g.labelDistance)+(0<g.labelDistance?(d?-1:1)*this.options.dataLabels.padding:0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.redrawPoints=function(){var a=this,b=a.chart,d=b.renderer,g=a.options.shadow,f,e,h,n;this.drawEmpty();!g||a.shadowGroup||b.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(c){var k=
570
+ {};e=c.graphic;if(!c.isNull&&e){var l=void 0;n=c.shapeArgs;f=c.getTranslate();b.styledMode||(l=c.shadowGroup,g&&!l&&(l=c.shadowGroup=d.g("shadow").add(a.shadowGroup)),l&&l.attr(f),h=a.pointAttribs(c,c.selected&&"select"));c.delayedRendering?(e.setRadialReference(a.center).attr(n).attr(f),b.styledMode||e.attr(h).attr({"stroke-linejoin":"round"}).shadow(g,l),c.delayedRendering=!1):(e.setRadialReference(a.center),b.styledMode||m(!0,k,h),m(!0,k,n,f),e.animate(k));e.attr({visibility:c.visible?"inherit":
571
+ "hidden"});e.addClass(c.getClassName(),!0)}else e&&(c.graphic=e.destroy())})};d.prototype.sortByAngle=function(a,b){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*b})};d.prototype.translate=function(a){g(this,"translate");this.generatePoints();var b=this.options,d=b.slicedOffset,e=d+(b.borderWidth||0),f=h(b.startAngle,b.endAngle),m=this.startAngleRad=f.start;f=(this.endAngleRad=f.end)-m;var k=this.points,p=b.dataLabels.distance;b=b.ignoreHiddenPoint;var c=k.length,q,x=
572
+ 0;a||(this.center=a=this.getCenter());for(q=0;q<c;q++){var r=k[q];var C=m+x*f;!r.isValid()||b&&!r.visible||(x+=r.percentage/100);var t=m+x*f;var v={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*C)/1E3,end:Math.round(1E3*t)/1E3};r.shapeType="arc";r.shapeArgs=v;r.labelDistance=n(r.options.dataLabels&&r.options.dataLabels.distance,p);r.labelDistance=G(r.labelDistance,v.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,r.labelDistance);t=(t+C)/2;t>1.5*Math.PI?t-=2*Math.PI:t<-Math.PI/
573
+ 2&&(t+=2*Math.PI);r.slicedTranslation={translateX:Math.round(Math.cos(t)*d),translateY:Math.round(Math.sin(t)*d)};v=Math.cos(t)*a[2]/2;var z=Math.sin(t)*a[2]/2;r.tooltipPos=[a[0]+.7*v,a[1]+.7*z];r.half=t<-Math.PI/2||t>Math.PI/2?1:0;r.angle=t;C=Math.min(e,r.labelDistance/5);r.labelPosition={natural:{x:a[0]+v+Math.cos(t)*r.labelDistance,y:a[1]+z+Math.sin(t)*r.labelDistance},"final":{},alignment:0>r.labelDistance?"center":r.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+v+Math.cos(t)*C,y:a[1]+
574
+ z+Math.sin(t)*C},touchingSliceAt:{x:a[0]+v,y:a[1]+z}}}}g(this,"afterTranslate")};d.prototype.updateTotals=function(){var a=this.points,b=a.length,d=this.options.ignoreHiddenPoint,g,f=0;for(g=0;g<b;g++){var e=a[g];!e.isValid()||d&&!e.visible||(f+=e.y)}this.total=f;for(g=0;g<b;g++)e=a[g],e.percentage=0<f&&(e.visible||!d)?e.y/f*100:0,e.total=f};d.defaultOptions=m(t.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",
575
+ distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return d}(t);d(r.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:B.drawRectangle,drawTracker:e.prototype.drawTracker,
576
+ getCenter:b.getCenter,getSymbol:y,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:v,requireSorting:!1,searchPoint:y,trackerGroups:["group","dataLabelsGroup"]});F.registerSeriesType("pie",r);"";return r});I(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v){var t=e.noop,F=y.distribute,z=B.series,r=v.arrayMax,p=v.clamp,
577
+ h=v.defined,a=v.merge,d=v.pick,g=v.relativeLength,m;(function(e){function m(){var b=this,g=b.data,f=b.chart,e=b.options.dataLabels||{},k=e.connectorPadding,m=f.plotWidth,c=f.plotHeight,q=f.plotLeft,n=Math.round(f.chartWidth/3),u=b.center,p=u[2]/2,x=u[1],C=[[],[]],t=[0,0,0,0],v=b.dataLabelPositioners,G,y,B,J,K,I,X,O,U,T,Y,N;b.visible&&(e.enabled||b._hasPointLabels)&&(g.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),
578
+ a.dataLabel.shortened=!1)}),z.prototype.drawDataLabels.apply(b),g.forEach(function(a){a.dataLabel&&(a.visible?(C[a.half].push(a),a.dataLabel._pos=null,!h(e.style.width)&&!h(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>n&&(a.dataLabel.css({width:Math.round(.7*n)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),C.forEach(function(a,g){var l=a.length,
579
+ n=[],r;if(l){b.sortByAngle(a,g-.5);if(0<b.maxLabelDistance){var w=Math.max(0,x-p-b.maxLabelDistance);var A=Math.min(x+p+b.maxLabelDistance,f.plotHeight);a.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,x-p-a.labelDistance),a.bottom=Math.min(x+p+a.labelDistance,f.plotHeight),r=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+r/2,size:r,rank:a.y},n.push(a.distributeBox))});w=A+r-w;F(n,w,w/5)}for(Y=0;Y<l;Y++){G=a[Y];I=G.labelPosition;J=G.dataLabel;
580
+ T=!1===G.visible?"hidden":"inherit";U=w=I.natural.y;n&&h(G.distributeBox)&&("undefined"===typeof G.distributeBox.pos?T="hidden":(X=G.distributeBox.size,U=v.radialDistributionY(G)));delete G.positionIndex;if(e.justify)O=v.justify(G,p,u);else switch(e.alignTo){case "connectors":O=v.alignToConnectors(a,g,m,q);break;case "plotEdges":O=v.alignToPlotEdges(J,g,m,q);break;default:O=v.radialDistributionX(b,G,U,w)}J._attr={visibility:T,align:I.alignment};N=G.options.dataLabels||{};J._pos={x:O+d(N.x,e.x)+({left:k,
581
+ right:-k}[I.alignment]||0),y:U+d(N.y,e.y)-10};I.final.x=O;I.final.y=U;d(e.crop,!0)&&(K=J.getBBox().width,w=null,O-K<k&&1===g?(w=Math.round(K-O+k),t[3]=Math.max(w,t[3])):O+K>m-k&&0===g&&(w=Math.round(O+K-m+k),t[1]=Math.max(w,t[1])),0>U-X/2?t[0]=Math.max(Math.round(-U+X/2),t[0]):U+X/2>c&&(t[2]=Math.max(Math.round(U+X/2-c),t[2])),J.sideOverflow=w)}}}),0===r(t)||this.verifyDataLabelOverflow(t))&&(this.placeDataLabels(),this.points.forEach(function(c){N=a(e,c.options.dataLabels);if(y=d(N.connectorWidth,
582
+ 1)){var g;B=c.connector;if((J=c.dataLabel)&&J._pos&&c.visible&&0<c.labelDistance){T=J._attr.visibility;if(g=!B)c.connector=B=f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+c.colorIndex+(c.className?" "+c.className:"")).add(b.dataLabelsGroup),f.styledMode||B.attr({"stroke-width":y,stroke:N.connectorColor||c.color||"#666666"});B[g?"attr":"animate"]({d:c.getConnectorPath()});B.attr("visibility",T)}else B&&(c.connector=B.destroy())}}))}function n(){this.points.forEach(function(a){var b=
583
+ a.dataLabel,d;b&&a.visible&&((d=b._pos)?(b.sideOverflow&&(b._attr.width=Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](d),b.moved=!0):b&&b.attr({y:-9999}));delete a.distributeBox},this)}function x(a){var b=this.center,d=this.options,e=d.center,h=d.minSize||80,l=null!==d.size;if(!l){if(null!==e[0])var c=Math.max(b[2]-Math.max(a[1],a[3]),
584
+ h);else c=Math.max(b[2]-a[1]-a[3],h),b[0]+=(a[3]-a[1])/2;null!==e[1]?c=p(c,h,b[2]-Math.max(a[0],a[2])):(c=p(c,h,b[2]-a[0]-a[2]),b[1]+=(a[0]-a[2])/2);c<b[2]?(b[2]=c,b[3]=Math.min(d.thickness?Math.max(0,c-2*d.thickness):Math.max(0,g(d.innerSize||0,c)),c),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):l=!0}return l}var C=[],u={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,d,g){return a.getX(d<b.top+2||d>b.bottom-2?g:d,b.half,b)},justify:function(a,
585
+ b,d){return d[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,d,g){a=a.getBBox().width;return b?a+g:d-a-g},alignToConnectors:function(a,b,d,g){var f=0,e;a.forEach(function(a){e=a.dataLabel.getBBox().width;e>f&&(f=e)});return b?f+g:d-f-g}};e.compose=function(a){b.compose(z);-1===C.indexOf(a)&&(C.push(a),a=a.prototype,a.dataLabelPositioners=u,a.alignDataLabel=t,a.drawDataLabels=m,a.placeDataLabels=n,a.verifyDataLabelOverflow=x)}})(m||(m={}));return m});I(e,"Extensions/OverlappingDataLabels.js",
586
+ [e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(b,e){function y(b,e){var a=!1;if(b){var d=b.newOpacity;b.oldOpacity!==d&&(b.alignAttr&&b.placed?(b[d?"removeClass":"addClass"]("highcharts-data-label-hidden"),a=!0,b.alignAttr.opacity=d,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){e.styledMode||b.css({pointerEvents:d?"auto":"none"})}),v(e,"afterHideOverlappingLabel")):b.attr({opacity:d}));b.isOld=!0}return a}var B=e.addEvent,v=e.fireEvent,t=e.isArray,F=e.isNumber,z=e.objectEach,
587
+ r=e.pick;B(b,"render",function(){var b=this,e=[];(this.labelCollectors||[]).forEach(function(a){e=e.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&z(a.stacking.stacks,function(a){z(a,function(a){a.label&&e.push(a.label)})})});(this.series||[]).forEach(function(a){var d=a.options.dataLabels;a.visible&&(!1!==d.enabled||a._hasPointLabels)&&(d=function(a){return a.forEach(function(a){a.visible&&(t(a.dataLabels)?a.dataLabels:a.dataLabel?
588
+ [a.dataLabel]:[]).forEach(function(d){var g=d.options;d.labelrank=r(g.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);g.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,y(d,b)):e.push(d)})})},d(a.nodes||[]),d(a.points))});this.hideOverlappingLabels(e)});b.prototype.hideOverlappingLabels=function(b){var e=this,a=b.length,d=e.renderer,g,m,n,p=!1;var r=function(a){var b,g=a.box?0:a.padding||0,f=b=0,e;if(a&&(!a.alignAttr||a.placed)){var h=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var m=a.parentGroup;
589
+ a.width||(b=a.getBBox(),a.width=b.width,a.height=b.height,b=d.fontMetrics(null,a.element).h);var c=a.width-2*g;(e={left:"0",center:"0.5",right:"1"}[a.alignValue])?f=+e*c:F(a.x)&&Math.round(a.x)!==a.translateX&&(f=a.x-a.translateX);return{x:h.x+(m.translateX||0)+g-(f||0),y:h.y+(m.translateY||0)+g-b,width:a.width-2*g,height:a.height-2*g}}};for(m=0;m<a;m++)if(g=b[m])g.oldOpacity=g.opacity,g.newOpacity=1,g.absoluteBox=r(g);b.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(m=0;m<a;m++){var x=
590
+ (r=b[m])&&r.absoluteBox;for(g=m+1;g<a;++g){var C=(n=b[g])&&n.absoluteBox;!x||!C||r===n||0===r.newOpacity||0===n.newOpacity||"hidden"===r.visibility||"hidden"===n.visibility||C.x>=x.x+x.width||C.x+C.width<=x.x||C.y>=x.y+x.height||C.y+C.height<=x.y||((r.labelrank<n.labelrank?r:n).newOpacity=0)}}b.forEach(function(a){y(a,e)&&(p=!0)});p&&v(e,"afterHideAllOverlappingLabels")}});I(e,"Core/Responsive.js",[e["Core/Utilities.js"]],function(b){var e=b.extend,y=b.find,B=b.isArray,v=b.isObject,t=b.merge,F=b.objectEach,
591
+ z=b.pick,r=b.splat,p=b.uniqueKey,h;(function(a){var b=[];a.compose=function(a){-1===b.indexOf(a)&&(b.push(a),e(a.prototype,g.prototype));return a};var g=function(){function a(){}a.prototype.currentOptions=function(a){function b(a,g,e,h){var f;F(a,function(a,k){if(!h&&-1<d.collectionsWithUpdate.indexOf(k)&&g[k])for(a=r(a),e[k]=[],f=0;f<Math.max(a.length,g[k].length);f++)g[k][f]&&(void 0===a[f]?e[k][f]=g[k][f]:(e[k][f]={},b(a[f],g[k][f],e[k][f],h+1)));else v(a)?(e[k]=B(a)?[]:{},b(a,g[k]||{},e[k],h+
592
+ 1)):e[k]="undefined"===typeof g[k]?null:g[k]})}var d=this,g={};b(a,this.options,g,0);return g};a.prototype.matchResponsiveRule=function(a,b){var d=a.condition;(d.callback||function(){return this.chartWidth<=z(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=z(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=z(d.minWidth,0)&&this.chartHeight>=z(d.minHeight,0)}).call(this)&&b.push(a._id)};a.prototype.setResponsive=function(a,b){var d=this,g=this.options.responsive,e=this.currentResponsive,h=[];!b&&g&&
593
+ g.rules&&g.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=p());d.matchResponsiveRule(a,h)},this);b=t.apply(void 0,h.map(function(a){return y((g||{}).rules||[],function(b){return b._id===a})}).map(function(a){return a&&a.chartOptions}));b.isResponsiveOptions=!0;h=h.toString()||void 0;h!==(e&&e.ruleIds)&&(e&&this.update(e.undoOptions,a,!0),h?(e=this.currentOptions(b),e.isResponsiveOptions=!0,this.currentResponsive={ruleIds:h,mergedOptions:b,undoOptions:e},this.update(b,a,!0)):this.currentResponsive=
594
+ void 0)};return a}()})(h||(h={}));"";"";return h});I(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/DefaultOptions.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/FormatUtilities.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Renderer/HTML/HTMLRenderer.js"],e["Core/Axis/Axis.js"],
595
+ e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/MSPointer.js"],e["Core/Legend/Legend.js"],e["Core/Chart/Chart.js"],e["Core/Axis/Stacking/StackingAxis.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnSeries.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieSeries.js"],
596
+ e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],function(b,e,y,B,v,t,F,z,r,p,h,a,d,g,m,n,G,J,x,C,u,l,A,f,w,k,D,c,q,E,H,Q,L,S,I){b.animate=v.animate;b.animObject=v.animObject;b.getDeferredAnimation=v.getDeferredAnimation;b.setAnimation=v.setAnimation;b.stop=v.stop;b.timers=B.timers;b.AST=t;b.Axis=d;b.Chart=A;b.chart=A.chart;b.Fx=B;b.Legend=l;b.PlotLineOrBand=n;b.Point=x;b.Pointer=u.isRequired()?u:C;b.Series=k;b.StackItem=
597
+ w;b.SVGElement=r;b.SVGRenderer=p;b.Tick=G;b.Time=I;b.Tooltip=J;b.Color=S;b.color=S.parse;a.compose(p);h.compose(r);b.defaultOptions=y.defaultOptions;b.getOptions=y.getOptions;b.time=y.defaultTime;b.setOptions=y.setOptions;b.dateFormat=F.dateFormat;b.format=F.format;b.numberFormat=F.numberFormat;b.addEvent=e.addEvent;b.arrayMax=e.arrayMax;b.arrayMin=e.arrayMin;b.attr=e.attr;b.clearTimeout=e.clearTimeout;b.correctFloat=e.correctFloat;b.createElement=e.createElement;b.css=e.css;b.defined=e.defined;b.destroyObjectProperties=
598
+ e.destroyObjectProperties;b.discardElement=e.discardElement;b.distribute=z.distribute;b.erase=e.erase;b.error=e.error;b.extend=e.extend;b.extendClass=e.extendClass;b.find=e.find;b.fireEvent=e.fireEvent;b.getMagnitude=e.getMagnitude;b.getStyle=e.getStyle;b.inArray=e.inArray;b.isArray=e.isArray;b.isClass=e.isClass;b.isDOMElement=e.isDOMElement;b.isFunction=e.isFunction;b.isNumber=e.isNumber;b.isObject=e.isObject;b.isString=e.isString;b.keys=e.keys;b.merge=e.merge;b.normalizeTickInterval=e.normalizeTickInterval;
599
+ b.objectEach=e.objectEach;b.offset=e.offset;b.pad=e.pad;b.pick=e.pick;b.pInt=e.pInt;b.relativeLength=e.relativeLength;b.removeEvent=e.removeEvent;b.seriesType=D.seriesType;b.splat=e.splat;b.stableSort=e.stableSort;b.syncTimeout=e.syncTimeout;b.timeUnits=e.timeUnits;b.uniqueKey=e.uniqueKey;b.useSerialIds=e.useSerialIds;b.wrap=e.wrap;q.compose(c);Q.compose(k);g.compose(d);m.compose(d);H.compose(E);n.compose(d);L.compose(A);f.compose(d,A,k);return b});I(e,"Core/Axis/Color/ColorAxisComposition.js",[e["Core/Color/Color.js"],
600
+ e["Core/Utilities.js"]],function(b,e){var y=b.parse,B=e.addEvent,v=e.extend,t=e.merge,F=e.pick,z=e.splat,r;(function(b){function e(){var a=this,b=this.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=z(b.colorAxis),b.colorAxis.forEach(function(b,d){b.index=d;new A(a,b)}))}function a(a){var b=this,d=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))},f=[],c,g;(this.chart.colorAxis||[]).forEach(function(a){(c=a.options)&&c.showInLegend&&(c.dataClasses&&
601
+ c.visible?f=f.concat(a.getDataClassLegendSymbols()):c.visible&&f.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||c.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){d(a)}):d(a)}))});for(g=f.length;g--;)a.allItems.unshift(f[g])}function d(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function g(){var a=this.chart.colorAxis;a&&a.forEach(function(a,b,d){a.update({},d)})}function m(){(this.chart.colorAxis&&this.chart.colorAxis.length||
602
+ this.colorAttribs)&&this.translateColors()}function n(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function p(a){var b=this,d=a?"show":"hide";b.visible=b.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(b[a])b[a][d]()});this.series.buildKDTree()}function r(){var a=this,b=this.options.nullColor,d=this.colorAxis,g=this.colorKey;(this.data.length?this.data:this.points).forEach(function(c){var f=c.getNestedProperty(g);(f=c.options.color||
603
+ (c.isNull||null===c.value?b:d&&"undefined"!==typeof f?d.toColor(f,c):c.color||a.color))&&c.color!==f&&(c.color=f,"point"===a.options.legendType&&c.legendItem&&a.chart.legend.colorizeItem(c,c.visible))})}function x(a){var b=a.prototype.createAxis;a.prototype.createAxis=function(a,d){if("colorAxis"!==a)return b.apply(this,arguments);var c=new A(this,t(d.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();
604
+ a.isDirtyData=!0});F(d.redraw,!0)&&this.redraw(d.animation);return c}}function C(){this.elem.attr("fill",y(this.start).tweenTo(y(this.end),this.pos),void 0,!0)}function u(){this.elem.attr("stroke",y(this.start).tweenTo(y(this.end),this.pos),void 0,!0)}var l=[],A;b.compose=function(b,h,k,t,c){A||(A=b);-1===l.indexOf(h)&&(l.push(h),b=h.prototype,b.collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],B(h,"afterGetAxes",e),x(h));-1===l.indexOf(k)&&(l.push(k),h=k.prototype,
605
+ h.fillSetter=C,h.strokeSetter=u);-1===l.indexOf(t)&&(l.push(t),B(t,"afterGetAllItems",a),B(t,"afterColorizeItem",d),B(t,"afterUpdate",g));-1===l.indexOf(c)&&(l.push(c),v(c.prototype,{optionalAxis:"colorAxis",translateColors:r}),v(c.prototype.pointClass.prototype,{setVisible:p}),B(c,"afterTranslate",m),B(c,"bindAxes",n))};b.pointSetVisible=p})(r||(r={}));return r});I(e,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
606
+ 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}});I(e,"Core/Axis/Color/ColorAxis.js",[e["Core/Axis/Axis.js"],e["Core/Color/Color.js"],e["Core/Axis/Color/ColorAxisComposition.js"],e["Core/Axis/Color/ColorAxisDefaults.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,
607
+ y,B,v,t,F,z){var r=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),p=e.parse,h=v.noop,a=F.series,d=z.extend,g=z.isNumber,m=z.merge,n=z.pick;e=function(b){function e(a,d){var g=b.call(this,a,d)||this;
608
+ 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(a,d);return g}r(e,b);e.compose=function(a,b,d,g){y.compose(e,a,b,d,g)};e.prototype.init=function(a,d){var g=a.options.legend||{},h=d.layout?"vertical"!==d.layout:"vertical"!==g.layout,n=d.visible;g=m(e.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:g.enabled&&!1!==n});this.coll="colorAxis";this.side=d.side||h?2:
609
+ 1;this.reversed=d.reversed||!h;this.opposite=!h;b.prototype.init.call(this,a,g);this.userOptions.visible=n;d.dataClasses&&this.initDataClasses(d);this.initStops();this.horiz=h;this.zoomEnabled=!1};e.prototype.initDataClasses=function(a){var b=this.chart,d=this.options,g=a.dataClasses.length,e,f=0,h=b.options.chart.colorCount;this.dataClasses=e=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,l){a=m(a);e.push(a);if(b.styledMode||!a.color)"category"===d.dataClassColor?(b.styledMode||(l=
610
+ b.options.colors,h=l.length,a.color=l[f]),a.colorIndex=f,f++,f===h&&(f=0)):a.color=p(d.minColor).tweenTo(p(d.maxColor),2>g?.5:l/(g-1))})};e.prototype.hasData=function(){return!!(this.tickPositions||[]).length};e.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};e.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=p(a[1])})};e.prototype.setOptions=
611
+ function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};e.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},g,h;a?(this.left=d=a.attr("x"),this.top=g=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-h,this.bottom=b.chartHeight-g-a,this.len=this.horiz?h:a,this.pos=this.horiz?d:g):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||e.defaultLegendLength};e.prototype.normalizedValue=
612
+ function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};e.prototype.toColor=function(a,b){var d=this.dataClasses,g=this.stops,e;if(d)for(e=d.length;e--;){var f=d[e];var h=f.from;g=f.to;if(("undefined"===typeof h||a>=h)&&("undefined"===typeof g||a<=g)){var k=f.color;b&&(b.dataClass=e,b.colorIndex=f.colorIndex);break}}else{a=this.normalizedValue(a);for(e=g.length;e--&&!(a>g[e][0]););h=g[e]||g[e+1];g=g[e+1]||h;a=1-(g[0]-a)/(g[0]-h[0]||1);k=h.color.tweenTo(g.color,
613
+ a)}return k};e.prototype.getOffset=function(){var a=this.legendGroup,d=this.chart.axisOffset[this.side];if(a){this.axisParent=a;b.prototype.getOffset.call(this);var g=this.chart.legend;g.allItems.forEach(function(a){a instanceof e&&a.drawLegendSymbol(g,a)});g.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=d}};e.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:
614
+ [0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};e.prototype.drawLegendSymbol=function(a,b){var d=a.padding,g=a.options,h=this.horiz,f=n(g.symbolWidth,h?e.defaultLegendLength:12),m=n(g.symbolHeight,h?12:e.defaultLegendLength),k=n(g.labelPadding,h?16:30);g=n(g.itemDistance,10);this.setLegendColor();b.legendSymbol||(b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,f,m).attr({zIndex:1}).add(b.legendGroup));this.legendItemWidth=f+d+(h?g:this.options.labels.x+
615
+ this.maxLabelLength);this.legendItemHeight=m+d+(h?k:0)};e.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};e.prototype.setVisible=function(){};e.prototype.getSeriesExtremes=function(){var b=this.series,d=b.length,g;this.dataMin=Infinity;for(this.dataMax=-Infinity;d--;){var e=b[d];var h=e.colorKey=n(e.options.colorKey,e.colorKey,e.pointValKey,e.zoneAxis,"y");var f=e.pointArrayMap;var m=e[h+"Min"]&&e[h+"Max"];if(e[h+"Data"])var k=e[h+"Data"];else if(f){k=[];f=f.indexOf(h);
616
+ var p=e.yData;if(0<=f&&p)for(g=0;g<p.length;g++)k.push(n(p[g][f],p[g]))}else k=e.yData;m?(e.minColorValue=e[h+"Min"],e.maxColorValue=e[h+"Max"]):(k=a.prototype.getExtremes.call(e,k),e.minColorValue=k.dataMin,e.maxColorValue=k.dataMax);"undefined"!==typeof e.minColorValue&&(this.dataMin=Math.min(this.dataMin,e.minColorValue),this.dataMax=Math.max(this.dataMax,e.maxColorValue));m||a.prototype.applyExtremes.call(e)}};e.prototype.drawCrosshair=function(a,d){var g=d&&d.plotX,e=d&&d.plotY,h=this.pos,f=
617
+ this.len;if(d){var m=this.toPixels(d.getNestedProperty(d.series.colorKey));m<h?m=h-2:m>h+f&&(m=h+f+2);d.plotX=m;d.plotY=this.len-m;b.prototype.drawCrosshair.call(this,a,d);d.plotX=g;d.plotY=e;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}))}};e.prototype.getPlotLinePath=function(a){var d=
618
+ this.left,e=a.translatedValue,h=this.top;return g(e)?this.horiz?[["M",e-4,h-6],["L",e+4,h-6],["L",e,h],["Z"]]:[["M",d,e],["L",d-6,e+6],["L",d-6,e-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};e.prototype.update=function(a,d){var g=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&g.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,d);this.legendItem&&(this.setLegendColor(),g.colorizeItem(this,!0))};e.prototype.destroyItems=function(){var a=
619
+ this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};e.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};e.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};e.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,g=a.legendItems,e=b.options.legend,m=e.valueDecimals,f=
620
+ e.valueSuffix||"",n;g.length||a.dataClasses.forEach(function(e,l){var c=e.from,k=e.to,p=b.numberFormatter,u=!0;n="";"undefined"===typeof c?n="< ":"undefined"===typeof k&&(n="> ");"undefined"!==typeof c&&(n+=p(c,m)+f);"undefined"!==typeof c&&"undefined"!==typeof k&&(n+=" - ");"undefined"!==typeof k&&(n+=p(k,m)+f);g.push(d({chart:b,name:n,options:{},drawLegendSymbol:t.drawRectangle,visible:!0,setState:h,isDataClass:!0,setVisible:function(){this.visible=u=a.visible=!u;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===
621
+ l&&a.setVisible(u)})});b.legend.colorizeItem(this,u)}},e))});return g};e.defaultColorAxisOptions=B;e.defaultLegendLength=200;e.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return e}(b);Array.prototype.push.apply(b.keepProps,e.keepProps);"";return e});I(e,"Maps/MapNavigationOptionsDefault.js",[e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e){e=e.extend;var y={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,
622
+ 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};e(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=y});I(e,"Maps/MapNavigation.js",[e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y){function B(a){a&&
623
+ (a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function v(a){this.navButtons=[];this.init(a)}var t=e.doc,F=y.addEvent,z=y.extend,r=y.isNumber,p=y.merge,h=y.objectEach,a=y.pick;v.prototype.init=function(a){this.chart=a};v.prototype.update=function(b){var d=this,e=this.chart,n=e.options.mapNavigation,r,t=function(a){this.handler.call(e,a);B(a)},x=d.navButtons;b&&(n=e.options.mapNavigation=p(e.options.mapNavigation,b));for(;x.length;)x.pop().destroy();
624
+ a(n.enableButtons,n.enabled)&&!e.renderer.forExport&&(d.navButtonsGroup||(d.navButtonsGroup=e.renderer.g().attr({zIndex:4}).add()),h(n.buttons,function(a,b){a=p(n.buttonOptions,a);!e.styledMode&&a.theme&&(r=a.theme,r.style=p(a.theme.style,a.style));var g=e.renderer.button(a.text||"",0,0,t,r,void 0,void 0,void 0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[b]).attr({width:a.width,height:a.height,title:e.options.lang[b],
625
+ padding:a.padding,zIndex:5}).add(d.navButtonsGroup);g.handler=a.onclick;F(g.element,"dblclick",B);x.push(g);z(a,{width:g.width,height:2*g.height});if(e.hasLoaded)g.align(a,!1,a.alignTo);else var h=F(e,"load",function(){g.element&&g.align(a,!1,a.alignTo);h()})}),b=function(){var a=e.exportingGroup&&e.exportingGroup.getBBox();if(a){var b=d.navButtonsGroup.getBBox();if(!(b.x>=a.x+a.width||b.x+b.width<=a.x||b.y>=a.y+a.height||b.y+b.height<=a.y)){var g=-b.y-b.height+a.y-5;a=a.y+a.height-b.y+5;d.navButtonsGroup.attr({translateY:"bottom"===
626
+ (n.buttonOptions&&n.buttonOptions.verticalAlign)?g:a})}}},e.hasLoaded||F(e,"render",b));this.updateEvents(n)};v.prototype.updateEvents=function(b){var d=this.chart;a(b.enableDoubleClickZoom,b.enabled)||b.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||F(d.container,"dblclick",function(a){d.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());a(b.enableMouseWheelZoom,b.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||F(d.container,
627
+ void 0!==t.onwheel?"wheel":void 0!==t.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){d.pointer.inClass(a.target,"highcharts-no-mousewheel")||(d.pointer.onContainerMouseWheel(a),B(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};z(b.prototype,{fitToBox:function(a,b){[["x","width"],["y","height"]].forEach(function(d){var g=d[0];d=d[1];a[g]+a[d]>b[g]+b[d]&&(a[d]>b[d]?(a[d]=b[d],a[g]=b[g]):a[g]=b[g]+b[d]-a[d]);a[d]>b[d]&&(a[d]=b[d]);a[g]<b[g]&&(a[g]=b[g])});
628
+ return a},mapZoom:function(a,b,e,h,p){this.mapView&&(r(a)&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,r(b)&&r(e)?this.mapView.projection.inverse([b,e]):void 0,r(h)&&r(p)?[h,p]:void 0))}});F(b,"beforeRender",function(){this.mapNavigation=new v(this);this.mapNavigation.update()});e.MapNavigation=v});I(e,"Maps/MapPointer.js",[e["Core/Pointer.js"],e["Core/Utilities.js"]],function(b,e){var y=e.defined,B=e.extend,v=e.pick;e=e.wrap;var t=b.prototype.normalize,F=0,z;B(b.prototype,{normalize:function(b,
629
+ e){var h=this.chart;b=t.call(this,b,e);h&&h.mapView&&(e=h.mapView.pixelsToLonLat({x:b.chartX-h.plotLeft,y:b.chartY-h.plotTop}))&&B(b,e);return b},onContainerDblClick:function(b){var e=this.chart;b=this.normalize(b);e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(b.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,b.chartX,b.chartY)},onContainerMouseWheel:function(b){var e=this.chart;
630
+ b=this.normalize(b);var h=y(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(h)&&(F+=Math.abs(h),z&&clearTimeout(z),z=setTimeout(function(){F=0},50));10>F&&e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)&&e.mapView&&e.mapView.zoomBy((e.options.mapNavigation.mouseWheelSensitivity-1)*-h,void 0,[b.chartX,b.chartY],1>Math.abs(h)?!1:void 0)}});e(b.prototype,"zoomOption",function(b){var e=this.chart.options.mapNavigation;v(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.zooming.pinchType=
631
+ "xy");b.apply(this,[].slice.call(arguments,1))});e(b.prototype,"pinchTranslate",function(b,e,h,a,d,g,m){b.call(this,e,h,a,d,g,m);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=a.scaleX>a.scaleY,this.pinchTranslateDirection(!b,e,h,a,d,g,m,b?a.scaleX:a.scaleY))})});I(e,"Series/ColorMapComposition.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var y=b.seriesTypes.column.prototype,B=e.addEvent,v=e.defined,t;(function(b){function e(b){this.moveToTopOnHover&&this.graphic&&
632
+ this.graphic.attr({zIndex:b&&"hover"===b.state?1:0})}var r=[];b.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};b.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(b){var e={};!v(b.color)||b.state&&"normal"!==
633
+ b.state||(e[this.colorProp||"fill"]=b.color);return e},pointAttribs:y.pointAttribs};b.compose=function(b){var h=b.prototype.pointClass;-1===r.indexOf(h)&&(r.push(h),B(h,"afterSetState",e));return b}})(t||(t={}));return t});I(e,"Maps/MapSymbols.js",[e["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function e(b,e,v,t,F,z,r,p){return[["M",b+F,e],["L",b+v-z,e],["C",b+v-z/2,e,b+v,e+z/2,b+v,e+z],["L",b+v,e+t-r],["C",b+v,e+t-r/2,b+v-r/2,e+t,b+v-r,e+t],["L",b+p,e+t],["C",b+p/2,e+t,b,e+t-p/2,b,e+t-p],["L",
634
+ b,e+F],["C",b,e+F/2,b+F/2,e,b+F,e],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,B,v,t,F){F=F&&F.r||0;return e(b-1,B-1,v,t,0,0,F,F)};b.topbutton=function(b,B,v,t,F){F=F&&F.r||0;return e(b-1,B-1,v,t,F,F,0,0)};return b});I(e,"Core/Chart/MapChart.js",[e["Core/Chart/Chart.js"],e["Core/DefaultOptions.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(e,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
635
+ function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,h)};return function(e,h){function a(){this.constructor=e}b(e,h);e.prototype=null===h?Object.create(h):(a.prototype=h.prototype,new a)}}(),t=e.getOptions,F=B.merge,z=B.pick;b=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}v(e,b);e.prototype.init=function(e,a){var d=t().credits;e=F({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:z(d.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),
636
+ mapTextFull:z(d.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},e);b.prototype.init.call(this,e,a)};return e}(b);(function(b){b.maps={};b.mapChart=function(e,h,a){return new b(e,h,a)};b.splitPath=function(b){"string"===typeof b&&(b=b.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),b=b.split(/[ ,;]+/).map(function(b){return/[A-za-z]/.test(b)?b:parseFloat(b)}));return y.prototype.pathToSegments(b)}})(b||(b={}));return b});I(e,"Maps/MapUtilities.js",[],
637
+ function(){return{boundsFromPath:function(b){var e=-Number.MAX_VALUE,y=Number.MAX_VALUE,B=-Number.MAX_VALUE,v=Number.MAX_VALUE,t;b.forEach(function(b){var z=b[b.length-2];b=b[b.length-1];"number"===typeof z&&"number"===typeof b&&(y=Math.min(y,z),e=Math.max(e,z),v=Math.min(v,b),B=Math.max(B,b),t=!0)});if(t)return{x1:y,y1:v,x2:e,y2:B}},pointInPolygon:function(b,e){var y,B=!1,v=b.x,t=b.y;b=0;for(y=e.length-1;b<e.length;y=b++){var F=e[b][1]>t;var z=e[y][1]>t;F!==z&&v<(e[y][0]-e[b][0])*(t-e[b][1])/(e[y][1]-
638
+ e[b][1])+e[b][0]&&(B=!B)}return B}}});I(e,"Series/Map/MapPoint.js",[e["Series/ColorMapComposition.js"],e["Maps/MapUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=
639
+ null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),t=e.boundsFromPath,F=B.extend,z=B.isNumber,r=B.pick;e=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.path=void 0;a.series=void 0;return a}v(e,b);e.getProjectedPath=function(a,b){a.projectedPath||(b&&a.geometry?(b.hasCoordinates=!0,a.projectedPath=b.path(a.geometry)):a.projectedPath=a.path);return a.projectedPath||[]};e.prototype.applyOptions=function(a,d){var e=this.series;a=b.prototype.applyOptions.call(this,
640
+ a,d);d=e.joinBy;e.mapData&&e.mapMap&&(d=b.prototype.getNestedProperty.call(a,d[1]),(e="undefined"!==typeof d&&e.mapMap[d])?F(a,e):a.value=a.value||null);return a};e.prototype.getProjectedBounds=function(a){a=e.getProjectedPath(this,a);a=t(a);var b=this.properties;if(a){var g=b&&b["hc-middle-x"];b=b&&b["hc-middle-y"];a.midX=a.x1+(a.x2-a.x1)*r(this.middleX,z(g)?g:.5);g=r(this.middleY,z(b)?b:.5);this.geometry||(g=1-g);a.midY=a.y2-(a.y2-a.y1)*g;return a}};e.prototype.onMouseOver=function(a){B.clearTimeout(this.colorInterval);
641
+ if(!this.isNull||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)};e.prototype.zoomTo=function(){var a=this.series.chart;a.mapView&&this.bounds&&(a.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,a.redraw())};return e}(y.seriesTypes.scatter.prototype.pointClass);F(e.prototype,{dataLabelOnNull:b.pointMembers.dataLabelOnNull,moveToTopOnHover:b.pointMembers.moveToTopOnHover,isValid:b.pointMembers.isValid});return e});I(e,"Maps/MapViewOptionsDefault.js",
642
+ [],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}});I(e,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}});I(e,"Extensions/GeoJSON.js",[e["Core/Chart/Chart.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y,B){function v(a,b){b||(b=Object.keys(a.objects)[0]);b=
643
+ a.objects[b];if(b["hc-decoded-geojson"])return b["hc-decoded-geojson"];var d=a.arcs;if(a.transform){var e=a.transform,h=e.scale,p=e.translate;d=a.arcs.map(function(a){var b=0,d=0;return a.map(function(a){a=a.slice();a[0]=(b+=a[0])*h[0]+p[0];a[1]=(d+=a[1])*h[1]+p[1];return a})})}var r=function(a){return"number"===typeof a[0]?a.reduce(function(a,b,e){var g=0>b?d[~b]:d[b];0>b?(g=g.slice(0,0===e?g.length:g.length-1),g.reverse()):e&&(g=g.slice(1));return a.concat(g)},[]):a.map(r)};e=b.geometries.map(function(a){return{type:"Feature",
644
+ properties:a.properties,geometry:{type:a.type,coordinates:a.coordinates||r(a.arcs)}}});a={type:"FeatureCollection",copyright:a.copyright,copyrightShort:a.copyrightShort,copyrightUrl:a.copyrightUrl,features:e,"hc-recommended-mapview":b["hc-recommended-mapview"],bbox:a.bbox,title:a.title};return b["hc-decoded-geojson"]=a}function t(a,b,e){void 0===b&&(b="map");var d=[];a="Topology"===a.type?v(a):a;a.features.forEach(function(a){var e=a.geometry||{},g=e.type;e=e.coordinates;a=a.properties;var h;"map"!==
645
+ b&&"mapbubble"!==b||"Polygon"!==g&&"MultiPolygon"!==g?"mapline"!==b||"LineString"!==g&&"MultiLineString"!==g?"mappoint"===b&&"Point"===g&&e.length&&(h={geometry:{coordinates:e,type:g}}):e.length&&(h={geometry:{coordinates:e,type:g}}):e.length&&(h={geometry:{coordinates:e,type:g}});h&&(g=a&&(a.name||a.NAME),d.push(p(h,{name:"string"===typeof g?g:void 0,properties:a})))});e&&a.copyrightShort&&(e.chart.mapCredits=F(e.chart.options.credits.mapText,{geojson:a}),e.chart.mapCreditsFull=F(e.chart.options.credits.mapTextFull,
646
+ {geojson:a}));return d}var F=e.format,z=y.win,r=B.error,p=B.extend,h=B.merge;e=B.wrap;"";b.prototype.transformFromLatLon=function(a,b){var d=this.options.chart.proj4||z.proj4;if(d){var e=b.jsonmarginX;e=void 0===e?0:e;var h=b.jsonmarginY;h=void 0===h?0:h;var p=b.jsonres;p=void 0===p?1:p;var t=b.scale;t=void 0===t?1:t;var x=b.xoffset;x=void 0===x?0:x;var v=b.xpan;v=void 0===v?0:v;var u=b.yoffset;u=void 0===u?0:u;var l=b.ypan;l=void 0===l?0:l;a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);
647
+ var A=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=b.rotation?[a[0]*d+a[1]*A,-a[0]*A+a[1]*d]:a;return{x:((b[0]-x)*t+v)*p+e,y:-(((u-b[1])*t+l)*p-h)}}r(21,!1,this)};b.prototype.transformToLatLon=function(a,b){var d=this.options.chart.proj4||z.proj4;if(!d)r(21,!1,this);else if(null!==a.y){var e=b.jsonmarginX,h=b.jsonmarginY,p=b.jsonres;p=void 0===p?1:p;var t=b.scale;t=void 0===t?1:t;var x=b.xoffset,v=b.xpan,u=b.yoffset,l=b.ypan;a={x:((a.x-(void 0===e?0:e))/p-(void 0===v?0:v))/t+(void 0===x?0:x),y:((a.y-
648
+ (void 0===h?0:h))/p+(void 0===l?0:l))/t+(void 0===u?0:u)};e=b.cosAngle||b.rotation&&Math.cos(b.rotation);h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=d(b.crs,"WGS84",b.rotation?{x:a.x*e+a.y*-h,y:a.x*h+a.y*e}:a);return{lat:b.y,lon:b.x}}};b.prototype.fromPointToLatLon=function(a){return this.mapView&&this.mapView.projectedUnitsToLonLat(a)};b.prototype.fromLatLonToPoint=function(a){return this.mapView&&this.mapView.lonLatToProjectedUnits(a)};e(b.prototype,"addCredits",function(a,b){b=h(!0,this.options.credits,
649
+ b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});y.geojson=t;return{geojson:t,topo2geo:v}});I(e,"Core/Geometry/PolygonClip.js",[],function(){var b=function(b,e,t){return(e[0]-b[0])*(t[1]-b[1])>(e[1]-b[1])*(t[0]-b[0])},e=function(b,e,t,y){var v=[b[0]-e[0],b[1]-e[1]],r=[t[0]-y[0],t[1]-y[1]];b=b[0]*e[1]-b[1]*e[0];t=t[0]*y[1]-t[1]*y[0];y=1/(v[0]*r[1]-v[1]*r[0]);v=[(b*r[0]-t*v[0])*y,(b*r[1]-t*v[1])*y];v.isIntersection=
650
+ !0;return v},y;(function(y){y.clipLineString=function(b,e){var t=[];b=y.clipPolygon(b,e,!1);for(e=1;e<b.length;e++)b[e].isIntersection&&b[e-1].isIntersection&&(t.push(b.splice(0,e)),e=0),e===b.length-1&&t.push(b);return t};y.clipPolygon=function(v,t,y){void 0===y&&(y=!0);for(var z=t[t.length-1],r,p,h=v,a=0;a<t.length;a++){var d=h;v=t[a];h=[];r=y?d[d.length-1]:d[0];for(var g=0;g<d.length;g++)p=d[g],b(z,v,p)?(b(z,v,r)||h.push(e(z,v,r,p)),h.push(p)):b(z,v,r)&&h.push(e(z,v,r,p)),r=p;z=v}return h}})(y||
651
+ (y={}));return y});I(e,"Maps/Projections/LambertConformalConic.js",[],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},e=Math.PI/180,y=Math.PI/2;return function(){function B(v){var t,B=(v.parallels||[]).map(function(b){return b*e}),z=B[0]||0;B=null!==(t=B[1])&&void 0!==t?t:z;t=Math.cos(z);"object"===typeof v.projectedBounds&&(this.projectedBounds=v.projectedBounds);v=z===B?Math.sin(z):Math.log(t/Math.cos(B))/Math.log(Math.tan((y+B)/2)/Math.tan((y+z)/2));1e-10>Math.abs(v)&&(v=1e-10*
652
+ (b(v)||1));this.n=v;this.c=t*Math.pow(Math.tan((y+z)/2),v)/v}B.prototype.forward=function(b){var t=b[0]*e,v=this.c,z=this.n,r=this.projectedBounds;b=b[1]*e;0<v?b<-y+.000001&&(b=-y+.000001):b>y-.000001&&(b=y-.000001);var p=v/Math.pow(Math.tan((y+b)/2),z);b=p*Math.sin(z*t)*63.78137;t=63.78137*(v-p*Math.cos(z*t));v=[b,t];r&&(b<r.x1||b>r.x2||t<r.y1||t>r.y2)&&(v.outside=!0);return v};B.prototype.inverse=function(v){var t=v[0]/63.78137,B=this.c,z=this.n;v=B-v[1]/63.78137;var r=b(z)*Math.sqrt(t*t+v*v),p=
653
+ Math.atan2(t,Math.abs(v))*b(v);0>v*z&&(p-=Math.PI*b(t)*b(v));return[p/z/e,(2*Math.atan(Math.pow(B/r,1/z))-y)/e]};return B}()});I(e,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}e.prototype.forward=function(e){var y=Math.PI/180,v=Math.asin(b*Math.sin(e[1]*y)),t=v*v,F=t*t*t;return[e[0]*y*Math.cos(v)*74.03120656864502/(b*(1.340264+3*-.081106*t+F*(7*
654
+ .000893+.034164*t))),74.03120656864502*v*(1.340264+-.081106*t+F*(.000893+.003796*t))]};e.prototype.inverse=function(e){var y=e[0]/74.03120656864502;e=e[1]/74.03120656864502;var v=180/Math.PI,t=e,F;for(F=0;12>F;++F){var z=t*t;var r=z*z*z;var p=t*(1.340264+-.081106*z+r*(.000893+.003796*z))-e;z=1.340264+3*-.081106*z+r*(7*.000893+.034164*z);t-=p/=z;if(1e-9>Math.abs(p))break}z=t*t;return[v*b*y*(1.340264+3*-.081106*z+z*z*z*(7*.000893+.034164*z))/Math.cos(t),v*Math.asin(Math.sin(t)/b)]};return e}()});I(e,
655
+ "Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,e=Math.PI/180;return function(){function y(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}y.prototype.forward=function(y){return[y[0]*e*63.78137,79.7267125*Math.log(Math.tan(b+.4*y[1]*e))]};y.prototype.inverse=function(y){return[y[0]/63.78137/e,2.5*(Math.atan(Math.exp(y[1]/63.78137*.8))-b)/e]};return y}()});I(e,"Maps/Projections/Orthographic.js",[],function(){var b=Math.PI/180;return function(){function e(){this.antimeridianCutting=
656
+ !1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}e.prototype.forward=function(e){var y=e[0];e=e[1]*b;e=[Math.cos(e)*Math.sin(y*b)*63.78460826781007,63.78460826781007*Math.sin(e)];if(-90>y||90<y)e.outside=!0;return e};e.prototype.inverse=function(e){var y=e[0]/63.78460826781007;e=e[1]/63.78460826781007;var v=Math.sqrt(y*y+e*e),t=Math.asin(v),F=Math.sin(t);return[Math.atan2(y*F,v*Math.cos(t))/b,Math.asin(v&&e*F/v)/b]};return e}()});I(e,"Maps/Projections/WebMercator.js",
657
+ [],function(){var b=Math.PI/180;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071};this.maxLatitude=85.0511287798}e.prototype.forward=function(e){var y=Math.sin(e[1]*b);y=[63.78137*e[0]*b,63.78137*Math.log((1+y)/(1-y))/2];85.0511287798<Math.abs(e[1])&&(y.outside=!0);return y};e.prototype.inverse=function(e){return[e[0]/(63.78137*b),(2*Math.atan(Math.exp(e[1]/63.78137))-Math.PI/2)/b]};return e}()});I(e,"Maps/Projections/ProjectionRegistry.js",
658
+ [e["Maps/Projections/LambertConformalConic.js"],e["Maps/Projections/EqualEarth.js"],e["Maps/Projections/Miller.js"],e["Maps/Projections/Orthographic.js"],e["Maps/Projections/WebMercator.js"]],function(b,e,y,B,v){return{EqualEarth:e,LambertConformalConic:b,Miller:y,Orthographic:B,WebMercator:v}});I(e,"Maps/Projection.js",[e["Core/Geometry/PolygonClip.js"],e["Maps/Projections/ProjectionRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__spreadArray||function(b,a,d){if(d||2===arguments.length)for(var e=
659
+ 0,h=a.length,n;e<h;e++)!n&&e in a||(n||(n=Array.prototype.slice.call(a,0,e)),n[e]=a[e]);return b.concat(n||Array.prototype.slice.call(a))},v=b.clipLineString,t=b.clipPolygon,F=y.clamp,z=y.erase,r=2*Math.PI/360,p=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function b(a){void 0===a&&(a={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=a;var d=a.name,e=a.projectedBounds,h=a.rotation;this.rotator=h?this.getRotator(h):void 0;if(d=d?b.registry[d]:
660
+ void 0)this.def=new d(a);var n=this.def,p=this.rotator;n&&(this.maxLatitude=n.maxLatitude||90,this.hasGeoProjection=!0);p&&n?(this.forward=function(a){return n.forward(p.forward(a))},this.inverse=function(a){return p.inverse(n.inverse(a))}):n?(this.forward=function(a){return n.forward(a)},this.inverse=function(a){return n.inverse(a)}):p&&(this.forward=p.forward,this.inverse=p.inverse);this.bounds="world"===e?n&&n.bounds:e}b.add=function(a,d){b.registry[a]=d};b.greatCircle=function(a,b,e){var d=Math.atan2,
661
+ g=Math.cos,h=Math.sin,p=Math.sqrt,x=a[1]*r,t=a[0]*r,u=b[1]*r,l=b[0]*r,A=u-x,f=l-t;A=h(A/2)*h(A/2)+g(x)*g(u)*h(f/2)*h(f/2);A=2*d(p(A),p(1-A));var w=Math.round(6371E3*A/5E5);f=[];e&&f.push(a);if(1<w)for(w=a=1/w;.999>w;w+=a){var k=h((1-w)*A)/h(A),v=h(w*A)/h(A),c=k*g(x)*g(t)+v*g(u)*g(l),q=k*g(x)*h(t)+v*g(u)*h(l);k=k*h(x)+v*h(u);k=d(k,p(c*c+q*q));c=d(q,c);f.push([c/r,k/r])}e&&f.push(b);return f};b.insertGreatCircles=function(a){for(var d=a.length-1;d--;)if(10<Math.max(Math.abs(a[d][0]-a[d+1][0]),Math.abs(a[d][1]-
662
+ a[d+1][1]))){var e=b.greatCircle(a[d],a[d+1]);e.length&&a.splice.apply(a,B([d+1,0],e,!1))}};b.toString=function(a){a=a||{};var b=a.rotation;return[a.name,b&&b.join(",")].join(";")};b.prototype.lineIntersectsBounds=function(a){var b=this.bounds||{},e=b.x2,h=b.y1,n=b.y2,p=function(a,b,d){var e=a[0];a=a[1];var g=b?0:1;if("number"===typeof d&&e[b]>=d!==a[b]>=d)return e=e[g]+(d-e[b])/(a[b]-e[b])*(a[g]-e[g]),b?[e,d]:[d,e]},r=a[0];if(b=p(a,0,b.x1))r=b,a[1]=b;else if(b=p(a,0,e))r=b,a[1]=b;if(b=p(a,1,h))r=
663
+ b;else if(b=p(a,1,n))r=b;return r};b.prototype.getRotator=function(a){var b=a[0]*r,e=(a[1]||0)*r;a=(a[2]||0)*r;var h=Math.cos(e),n=Math.sin(e),p=Math.cos(a),t=Math.sin(a);if(0!==b||0!==e||0!==a)return{forward:function(a){var d=a[0]*r+b,e=a[1]*r,g=Math.cos(e);a=Math.cos(d)*g;d=Math.sin(d)*g;e=Math.sin(e);g=e*h+a*n;return[Math.atan2(d*p-g*t,a*h-e*n)/r,Math.asin(g*p+d*t)/r]},inverse:function(a){var d=a[0]*r,e=a[1]*r,g=Math.cos(e);a=Math.cos(d)*g;d=Math.sin(d)*g;e=Math.sin(e);g=e*p-d*t;return[(Math.atan2(d*
664
+ p+e*t,a*h+g*n)-b)/r,Math.asin(g*h-a*n)/r]}}};b.prototype.forward=function(a){return a};b.prototype.inverse=function(a){return a};b.prototype.cutOnAntimeridian=function(a,d){var e=[],h=[a];a.forEach(function(b,g){var f=a[g-1];if(!g){if(!d)return;f=a[a.length-1]}var h=f[0],c=b[0];(-90>h||90<h)&&(-90>c||90<c)&&0<h!==0<c&&(c=F((180-(h+360)%360)/((c+360)%360-(h+360)%360),0,1),e.push({i:g,lat:f[1]+c*(b[1]-f[1]),direction:0>h?1:-1,previousLonLat:f,lonLat:b}))});if(e.length)if(d){if(1===e.length%2){var n=
665
+ e.slice().sort(function(a,b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];z(e,n)}for(var r=e.length-2;0<=r;){var t=e[r].i,x=p(180+.000001*e[r].direction),v=p(180-.000001*e[r].direction);t=a.splice.apply(a,B([t,e[r+1].i-t],b.greatCircle([x,e[r].lat],[x,e[r+1].lat],!0),!1));t.push.apply(t,b.greatCircle([v,e[r+1].lat],[v,e[r].lat],!0));h.push(t);r-=2}if(n)for(x=0;x<h.length;x++){r=n.direction;var u=n.lat;v=h[x];t=v.indexOf(n.lonLat);if(-1<t){x=(0>u?-1:1)*this.maxLatitude;var l=p(180+.000001*r),A=p(180-
666
+ .000001*r);u=b.greatCircle([l,u],[l,x],!0);for(l+=120*r;-180<l&&180>l;l+=120*r)u.push([l,x]);u.push.apply(u,b.greatCircle([A,x],[A,n.lat],!0));v.splice.apply(v,B([t,0],u,!1));break}}}else for(r=e.length;r--;)t=e[r].i,t=a.splice(t,a.length,[p(180+.000001*e[r].direction),e[r].lat]),t.unshift([p(180-.000001*e[r].direction),e[r].lat]),h.push(t);return h};b.prototype.path=function(a){var d=this,e=this.bounds,h=this.def,n=this.rotator,p=[],r="Polygon"===a.type||"MultiPolygon"===a.type,x=this.hasGeoProjection,
667
+ z=!h||!1!==h.antimeridianCutting,u=z?n:void 0,l=z?h||this:this,A;e&&(A=[[e.x1,e.y1],[e.x2,e.y1],[e.x2,e.y2],[e.x1,e.y2]]);var f=function(a){a=a.map(function(a){if(z){u&&(a=u.forward(a));var b=a[0];.000001>Math.abs(b-180)&&(b=180>b?179.999999:180.000001);a=[b,a[1]]}return a});var f=[a];x&&(b.insertGreatCircles(a),z&&(f=d.cutOnAntimeridian(a,r)));f.forEach(function(a){if(!(2>a.length)){var c=!1,d=!1,f=function(a){c?p.push(["L",a[0],a[1]]):(p.push(["M",a[0],a[1]]),c=!0)},g=!1,h=!1,k=a.map(function(a){a=
668
+ l.forward(a);a.outside?g=!0:h=!0;Infinity===a[1]?a[1]=1E10:-Infinity===a[1]&&(a[1]=-1E10);return a});if(z){r&&k.push(k[0]);if(g){if(!h)return;if(A)if(r)k=t(k,A);else if(e){v(k,A).forEach(function(a){c=!1;a.forEach(f)});return}}k.forEach(f)}else for(var m=0;m<k.length;m++){var n=a[m],u=k[m];if(u.outside)d=!0;else{if(r&&!w){var w=n;a.push(n);k.push(u)}d&&D&&(r&&x?b.greatCircle(D,n).forEach(function(a){return f(l.forward(a))}):c=!1);f(u);var D=n;d=!1}}}})};"LineString"===a.type?f(a.coordinates):"MultiLineString"===
669
+ a.type?a.coordinates.forEach(function(a){return f(a)}):"Polygon"===a.type?(a.coordinates.forEach(function(a){return f(a)}),p.length&&p.push(["Z"])):"MultiPolygon"===a.type&&(a.coordinates.forEach(function(a){a.forEach(function(a){return f(a)})}),p.length&&p.push(["Z"]));return p};b.registry=e;return b}()});I(e,"Maps/MapView.js",[e["Maps/MapViewOptionsDefault.js"],e["Maps/MapViewInsetsOptionsDefault.js"],e["Extensions/GeoJSON.js"],e["Core/Chart/MapChart.js"],e["Maps/MapUtilities.js"],e["Maps/Projection.js"],
670
+ e["Core/Utilities.js"]],function(b,e,y,B,v,t,F){var z=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),r=this&&this.__spreadArray||function(a,b,d){if(d||2===arguments.length)for(var c=0,f=b.length,e;c<
671
+ f;c++)!e&&c in b||(e||(e=Array.prototype.slice.call(b,0,c)),e[c]=b[c]);return a.concat(e||Array.prototype.slice.call(b))},p=y.topo2geo,h=B.maps,a=v.boundsFromPath,d=v.pointInPolygon,g=F.addEvent,m=F.clamp,n=F.fireEvent,G=F.isArray,J=F.isNumber,x=F.isObject,C=F.isString,u=F.merge,l=F.pick,A=F.relativeLength,f=function(a,b){return Math.log(400.979322/Math.max((a.x2-a.x1)/(b.width/256),(a.y2-a.y1)/(b.height/256)))/Math.log(2)},w=function(){function a(c,d){var f=this;this.insets=[];this.padding=[0,0,
672
+ 0,0];this.eventsToUnbind=[];var e;if(!(this instanceof k)){var h=r([c.options.chart.map],(c.options.series||[]).map(function(a){return a.mapData}),!0).map(function(a){return f.getGeoMap(a)}),l=[];h.forEach(function(a){a&&(e||(e=a["hc-recommended-mapview"]),a.bbox&&(a=a.bbox,l.push({x1:a[0],y1:a[1],x2:a[2],y2:a[3]})))});var m=l.length&&a.compositeBounds(l);if(m){var q=m.x1;var n=m.y1,p=m.x2;m=m.y2;q=180<p-q&&90<m-n?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[n,m],rotation:[-(q+p)/
673
+ 2]}}this.geoMap=h[0]}this.userOptions=d||{};h=u(b,{projection:q},e,d);m=e&&e.insets;d=d&&d.insets;m&&d&&(h.insets=a.mergeInsets(m,d));this.chart=c;this.center=h.center;this.options=h;this.projection=new t(h.projection);this.playingField=c.plotBox;this.zoom=h.zoom||0;this.createInsets();this.eventsToUnbind.push(g(c,"afterSetChartSize",function(){f.playingField=f.getField();if(void 0===f.minZoom||f.minZoom===f.zoom)f.fitToBounds(void 0,void 0,!1),!f.chart.hasRendered&&J(f.userOptions.zoom)&&(f.zoom=
674
+ f.userOptions.zoom),f.userOptions.center&&u(!0,f.center,f.userOptions.center)}));this.setUpEvents()}a.mergeInsets=function(a,b){var c=function(a){var b={};a.forEach(function(a,c){b[a&&a.id||"i".concat(c)]=a});return b},d=u(c(a),c(b));return Object.keys(d).map(function(a){return d[a]})};a.prototype.createInsets=function(){var a=this,b=this.options,d=b.insets;d&&d.forEach(function(c){c=new k(a,u(b.insetOptions,c));a.insets.push(c)})};a.prototype.fitToBounds=function(a,b,d,e){void 0===d&&(d=!0);var c=
675
+ a||this.getProjectedBounds();if(c){var g=l(b,a?0:this.options.padding);b=this.getField(!1);g=G(g)?g:[g,g,g,g];this.padding=[A(g[0],b.height),A(g[1],b.width),A(g[2],b.height),A(g[3],b.width)];this.playingField=this.getField();b=f(c,this.playingField);a||(this.minZoom=b);a=this.projection.inverse([(c.x2+c.x1)/2,(c.y2+c.y1)/2]);this.setView(a,b,d,e)}};a.prototype.getField=function(a){void 0===a&&(a=!0);a=a?this.padding:[0,0,0,0];return{x:a[3],y:a[0],width:this.chart.plotWidth-a[1]-a[3],height:this.chart.plotHeight-
676
+ a[0]-a[2]}};a.prototype.getGeoMap=function(a){if(C(a))return h[a];if(x(a,!0)){if("FeatureCollection"===a.type)return a;if("Topology"===a.type)return p(a)}};a.prototype.getMapBBox=function(){var a=this.getProjectedBounds(),b=this.getScale();if(a){var d=this.padding,f=this.projectedUnitsToPixels({x:a.x1,y:a.y2});return{width:(a.x2-a.x1)*b+d[1]+d[3],height:(a.y2-a.y1)*b+d[0]+d[2],x:f.x-d[3],y:f.y-d[0]}}};a.prototype.getProjectedBounds=function(){var b=this.chart.series.reduce(function(a,b){var c=b.getProjectedBounds&&
677
+ b.getProjectedBounds();c&&!1!==b.options.affectsMapView&&a.push(c);return a},[]);return this.projection.bounds||a.compositeBounds(b)};a.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};a.prototype.getSVGTransform=function(){var a=this.playingField,b=a.x,d=a.y,f=a.width;a=a.height;var e=this.projection.forward(this.center),g=this.projection.hasCoordinates?-1:1,h=this.getScale();g*=h;return{scaleX:h,scaleY:g,translateX:b+f/2-e[0]*h,translateY:d+a/2-e[1]*g}};a.prototype.lonLatToPixels=
678
+ function(a){if(a=this.lonLatToProjectedUnits(a))return this.projectedUnitsToPixels(a)};a.prototype.lonLatToProjectedUnits=function(a){var b=this.chart,c=b.mapTransforms;if(c){for(var f in c)if(Object.hasOwnProperty.call(c,f)&&c[f].hitZone){var e=b.transformFromLatLon(a,c[f]);if(e&&d(e,c[f].hitZone.coordinates[0]))return e}return b.transformFromLatLon(a,c["default"])}c=0;for(f=this.insets;c<f.length;c++)if(b=f[c],b.options.geoBounds&&d({x:a.lon,y:a.lat},b.options.geoBounds.coordinates[0]))return a=
679
+ b.projection.forward([a.lon,a.lat]),a=b.projectedUnitsToPixels({x:a[0],y:a[1]}),this.pixelsToProjectedUnits(a);a=this.projection.forward([a.lon,a.lat]);if(!a.outside)return{x:a[0],y:a[1]}};a.prototype.projectedUnitsToLonLat=function(a){var b=this.chart,c=b.mapTransforms;if(c){for(var f in c)if(Object.hasOwnProperty.call(c,f)&&c[f].hitZone&&d(a,c[f].hitZone.coordinates[0]))return b.transformToLatLon(a,c[f]);return b.transformToLatLon(a,c["default"])}c=this.projectedUnitsToPixels(a);f=0;for(var e=this.insets;f<
680
+ e.length;f++)if(b=e[f],b.hitZone&&d(c,b.hitZone.coordinates[0]))return a=b.pixelsToProjectedUnits(c),a=b.projection.inverse([a.x,a.y]),{lon:a[0],lat:a[1]};a=this.projection.inverse([a.x,a.y]);return{lon:a[0],lat:a[1]}};a.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};a.prototype.setView=function(a,b,d,f){void 0===d&&(d=!0);a&&(this.center=a);"number"===typeof b&&("number"===typeof this.minZoom&&(b=Math.max(b,this.minZoom)),
681
+ "number"===typeof this.options.maxZoom&&(b=Math.min(b,this.options.maxZoom)),J(b)&&(this.zoom=b));var c=this.getProjectedBounds();if(c){a=this.projection.forward(this.center);var e=this.playingField;b=e.x;var g=e.y,h=e.width;e=e.height;var k=this.getScale(),m=this.projectedUnitsToPixels({x:c.x1,y:c.y1}),l=this.projectedUnitsToPixels({x:c.x2,y:c.y2});c=[(c.x1+c.x2)/2,(c.y1+c.y2)/2];var q=m.x,p=l.y;l=l.x;m=m.y;l-q<h?a[0]=c[0]:q<b&&l<b+h?a[0]+=Math.max(q-b,l-h-b)/k:l>b+h&&q>b&&(a[0]+=Math.min(l-h-b,
682
+ q-b)/k);m-p<e?a[1]=c[1]:p<g&&m<g+e?a[1]-=Math.max(p-g,m-e-g)/k:m>g+e&&p>g&&(a[1]-=Math.min(m-e-g,p-g)/k);this.center=this.projection.inverse(a);this.insets.forEach(function(a){a.options.field&&(a.hitZone=a.getHitZone(),a.playingField=a.getField())});this.render()}n(this,"afterSetView");d&&this.redraw(f)};a.prototype.projectedUnitsToPixels=function(a){var b=this.getScale(),c=this.projection.forward(this.center),d=this.playingField;return{x:d.x+d.width/2-b*(c[0]-a.x),y:d.y+d.height/2+b*(c[1]-a.y)}};
683
+ a.prototype.pixelsToLonLat=function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))};a.prototype.pixelsToProjectedUnits=function(a){var b=a.x;a=a.y;var c=this.getScale(),d=this.projection.forward(this.center),f=this.playingField;return{x:d[0]+(b-(f.x+f.width/2))/c,y:d[1]-(a-(f.y+f.height/2))/c}};a.prototype.setUpEvents=function(){var a=this,b=this.chart,d,e,h,k=function(c){var g=b.pointer.pinchDown,k=a.projection,l=b.mouseDownX,n=b.mouseDownY;1===g.length&&(l=g[0].chartX,n=g[0].chartY);
684
+ if("number"===typeof l&&"number"===typeof n){var q=""+l+",".concat(n),p=c.originalEvent;g=p.chartX;p=p.chartY;q!==e&&(e=q,d=a.projection.forward(a.center),h=(a.projection.options.rotation||[0,0]).slice());q=(q=k.def&&k.def.bounds)&&f(q,a.playingField)||-Infinity;"Orthographic"===k.options.name&&(a.minZoom||Infinity)<1.1*q?(k=440/(a.getScale()*Math.min(b.plotWidth,b.plotHeight)),h&&(l=(l-g)*k-h[0],n=m(-h[1]-(n-p)*k,-80,80),g=a.zoom,a.update({projection:{rotation:[-l,-n]}},!1),a.zoom=g,b.redraw(!1))):
685
+ (k=a.getScale(),n=a.projection.inverse([d[0]+(l-g)/k,d[1]-(n-p)/k]),a.setView(n,void 0,!0,!1));c.preventDefault()}};g(b,"pan",k);g(b,"touchpan",k);g(b,"selection",function(c){if(c.resetSelection)a.zoomBy();else{var d=c.x-b.plotLeft,f=c.y-b.plotTop,e=a.pixelsToProjectedUnits({x:d,y:f}),g=e.y;e=e.x;d=a.pixelsToProjectedUnits({x:d+c.width,y:f+c.height});a.fitToBounds({x1:e,y1:g,x2:d.x,y2:d.y},void 0,!0,c.originalEvent.touches?!1:void 0);/^touch/.test(c.originalEvent.type)||b.showResetZoom();c.preventDefault()}})};
686
+ a.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};a.prototype.update=function(a,b,d){void 0===b&&(b=!0);var c=a.projection;c=c&&t.toString(c)!==t.toString(this.options.projection);var f=!1;u(!0,this.userOptions,a);u(!0,this.options,a);"insets"in a&&(this.insets.forEach(function(a){return a.destroy()}),this.insets.length=0,f=!0);if(c||f)this.chart.series.forEach(function(a){var b=a.transformGroups;a.clearBounds&&a.clearBounds();a.isDirty=
687
+ !0;a.isDirtyData=!0;if(f&&b)for(;1<b.length;)(a=b.pop())&&a.destroy()}),c&&(this.projection=new t(this.options.projection)),f&&this.createInsets(),a.center||J(a.zoom)||this.fitToBounds(void 0,void 0,!1);(a.center||J(a.zoom))&&this.setView(this.options.center,a.zoom,!1);b&&this.chart.redraw(d)};a.prototype.zoomBy=function(a,b,d,f){var c=this.chart,e=this.projection.forward(this.center);b=b?this.projection.forward(b):[];var g=b[0],h=b[1];"number"===typeof a?(a=this.zoom+a,b=void 0,d&&(g=d[0],h=d[1],
688
+ d=this.getScale(),g=g-c.plotLeft-c.plotWidth/2,c=h-c.plotTop-c.plotHeight/2,g=e[0]+g/d,h=e[1]+c/d),"number"===typeof g&&"number"===typeof h&&(d=1-Math.pow(2,this.zoom)/Math.pow(2,a),g=e[0]-g,c=e[1]-h,e[0]-=g*d,e[1]+=c*d,b=this.projection.inverse(e)),this.setView(b,a,void 0,f)):this.fitToBounds(void 0,void 0,void 0,f)};a.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);
689
+ return a},u(a[0]))};return a}(),k=function(b){function c(c,d){var f=b.call(this,c.chart,d)||this;f.id=d.id;f.mapView=c;f.options=u(e,d);f.allBounds=[];f.options.geoBounds&&(c=c.projection.path(f.options.geoBounds),f.geoBoundsProjectedBox=a(c),f.geoBoundsProjectedPolygon=c.map(function(a){return[a[1]||0,a[2]||0]}));return f}z(c,b);c.prototype.getField=function(a){void 0===a&&(a=!0);var c=this.hitZone;if(c){var d=a?this.padding:[0,0,0,0];c=c.coordinates[0];var f=c.map(function(a){return a[0]}),e=c.map(function(a){return a[1]});
690
+ c=Math.min.apply(0,f)+d[3];f=Math.max.apply(0,f)-d[1];var g=Math.min.apply(0,e)+d[0];d=Math.max.apply(0,e)-d[2];if(J(c)&&J(g))return{x:c,y:g,width:f-c,height:d-g}}return b.prototype.getField.call(this,a)};c.prototype.getHitZone=function(){var a=this.chart,b=this.mapView,c=this.options,d=(c.field||{}).coordinates;if(d){d=d[0];if("percent"===c.units){var f="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||u(a.plotBox,{x:0,y:0});d=d.map(function(a){return[A(""+a[0]+"%",f.width,f.x),A(""+a[1]+"%",f.height,
691
+ f.y)]})}return{type:"Polygon",coordinates:[d]}}};c.prototype.getProjectedBounds=function(){return w.compositeBounds(this.allBounds)};c.prototype.isInside=function(a){var b=this.geoBoundsProjectedBox,c=this.geoBoundsProjectedPolygon;return!!(b&&a.x>=b.x1&&a.x<=b.x2&&a.y>=b.y1&&a.y<=b.y2&&c&&d(a,c))};c.prototype.render=function(){var a=this.chart,b=this.mapView,c=this.options,d=c.borderPath||c.field;if(d&&b.group){var f=!0;this.border||(this.border=a.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),
692
+ f=!1);a.styledMode||this.border.attr({stroke:c.borderColor,"stroke-width":c.borderWidth});var e=Math.round(this.border.strokeWidth())%2/2,g="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||b.playingField;b=(d.coordinates||[]).reduce(function(b,d){return d.reduce(function(b,d,f){var h=d[0];d=d[1];"percent"===c.units&&(h=a.plotLeft+A(""+h+"%",g.width,g.x),d=a.plotTop+A(""+d+"%",g.height,g.y));h=Math.floor(h)+e;d=Math.floor(d)+e;b.push(0===f?["M",h,d]:["L",h,d]);return b},b)},[]);this.border[f?"animate":
693
+ "attr"]({d:b})}};c.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(a){return a()})};c.prototype.setUpEvents=function(){};return c}(w);g(B,"afterInit",function(){this.mapView=new w(this,this.options.mapView)});return w});I(e,"Series/Map/MapSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Series/ColorMapComposition.js"],e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Chart/MapChart.js"],
694
+ e["Series/Map/MapPoint.js"],e["Maps/MapView.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F,z,r,p,h,a){var d=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=
695
+ null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),g=b.animObject;b=B.noop;var m=t.splitPath;t=p.seriesTypes;var n=t.column,G=t.scatter;t=a.extend;var J=a.find,x=a.fireEvent,C=a.getNestedProperty,u=a.isArray,l=a.isNumber,A=a.isObject,f=a.merge,w=a.objectEach,k=a.pick,D=a.splat;a=function(a){function b(){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}d(b,a);b.prototype.animate=
696
+ function(a){var b=this.chart,c=this.group,d=g(this.options.animation);b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.001,scaleY:.001}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1},d))};b.prototype.animateDrilldown=function(a){var b=this.chart,c=this.group;b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(c.animate({translateX:b.plotLeft,
697
+ translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),b.drilldown&&b.drilldown.fadeInGroup(this.dataLabelsGroup)))};b.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};b.prototype.animateDrillupTo=function(a){n.prototype.animateDrillupTo.call(this,a)};b.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;
698
+ delete a.insetIndex;delete a.projectedPath});delete this.bounds};b.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};b.prototype.drawMapDataLabels=function(){r.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=function(){var a=this,b=this,c=this.chart,d=this.group,f=this.transformGroups,e=void 0===f?[]:f,g=c.mapView,h=c.renderer;g&&(this.transformGroups=
699
+ e,e[0]||(e[0]=h.g().add(d)),g.insets.forEach(function(a,b){e[b+1]||e.push(h.g().add(d))}),this.doFullTranslate()&&(this.points.forEach(function(b){var d=b.graphic,f=b.shapeArgs;b.group=e["number"===typeof b.insetIndex?b.insetIndex+1:0];d&&d.parentGroup!==b.group&&d.add(b.group);f&&c.hasRendered&&!c.styledMode&&(f.fill=a.pointAttribs(b,b.state).fill)}),n.prototype.drawPoints.apply(this),this.points.forEach(function(d){var f=d.graphic;if(f){var e=f.animate,g="";d.name&&(g+="highcharts-name-"+d.name.replace(/ /g,
700
+ "-").toLowerCase());d.properties&&d.properties["hc-key"]&&(g+=" highcharts-key-"+d.properties["hc-key"].toString().toLowerCase());g&&f.addClass(g);c.styledMode&&f.css(a.pointAttribs(d,d.selected&&"select"||void 0));f.animate=function(a,d,g){var h=!1;if(a["stroke-width"]){var l=k(b.getStrokeWidth(b.options),1)/(c.mapView&&c.mapView.getScale()||1);"inherit"===f["stroke-width"]&&(f["stroke-width"]=l);"inherit"===a["stroke-width"]&&(a["stroke-width"]=l,h=!0)}return e.call(f,a,d,h?function(){f.attr({"stroke-width":"inherit"});
701
+ g&&g.apply(this,arguments)}:g)}}})),e.forEach(function(b,d){var f=(0===d?g:g.insets[d-1]).getSVGTransform(),e=k(a.getStrokeWidth(a.options),1),l=f.scaleX,m=0<f.scaleY?1:-1;if(h.globalAnimation&&c.hasRendered){var n=Number(b.attr("translateX")),p=Number(b.attr("translateY")),q=Number(b.attr("scaleX"));b.attr({animator:0}).animate({animator:1},{step:function(a,c){a=q+(l-q)*c.pos;b.attr({translateX:n+(f.translateX-n)*c.pos,translateY:p+(f.translateY-p)*c.pos,scaleX:a,scaleY:a*m});b.element.setAttribute("stroke-width",
702
+ e/a)}})}else b.attr(f),b.element.setAttribute("stroke-width",e/l)}),this.drawMapDataLabels())};b.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var a=this.chart.mapView,b=a.insets,c=a.projection,d=[];(this.points||[]).forEach(function(a){if(a.path||a.geometry){"string"===typeof a.path?a.path=m(a.path):u(a.path)&&"M"===a.path[0]&&(a.path=h.prototype.pathToSegments(a.path));if(!a.bounds){var f=a.getProjectedBounds(c);if(f){a.labelrank=k(a.labelrank,(f.x2-f.x1)*(f.y2-f.y1));
703
+ var e=f.midX,g=f.midY;if(b&&l(e)&&l(g)){var n=J(b,function(a){return a.isInside({x:e,y:g})});n&&(delete a.projectedPath,(f=a.getProjectedBounds(n.projection))&&n.allBounds.push(f),a.insetIndex=b.indexOf(n))}a.bounds=f}}a.bounds&&void 0===a.insetIndex&&d.push(a.bounds)}});this.bounds=z.compositeBounds(d)}return this.bounds};b.prototype.getStrokeWidth=function(a){var b=this.pointAttrToOptions;return a[b&&b["stroke-width"]||"borderWidth"]};b.prototype.hasData=function(){return!!this.processedXData.length};
704
+ b.prototype.pointAttribs=function(a,b){var c=a.series.chart,d=c.mapView;c=c.styledMode?this.colorAttribs(a):n.prototype.pointAttribs.call(this,a,b);var e=this.getStrokeWidth(a.options);b&&(a=f(this.options.states[b],a.options.states&&a.options.states[b]||{}),e=this.getStrokeWidth(a));e&&d&&(e/=d.getScale());a=this.getStrokeWidth(this.options);c.dashstyle&&d&&l(a)&&(e=a/d.getScale());c["stroke-width"]=k(e,"inherit");return c};b.prototype.updateData=function(){return this.processedData?!1:a.prototype.updateData.apply(this,
705
+ arguments)};b.prototype.setData=function(b,c,d,f){void 0===c&&(c=!0);delete this.bounds;a.prototype.setData.call(this,b,!1,void 0,f);this.processData();this.generatePoints();c&&this.chart.redraw(d)};b.prototype.processData=function(){var a=this.options,b=a.data,c=this.chart.options.chart,d=this.joinBy,e=a.keys||this.pointArrayMap,g=[],h={},k=this.chart.mapView;k=k&&(A(a.mapData,!0)?k.getGeoMap(a.mapData):k.geoMap);var m=this.chart.mapTransforms;(this.chart.mapTransforms=m=c.mapTransforms||k&&k["hc-transform"]||
706
+ m)&&w(m,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(u(a.mapData))var n=a.mapData;else k&&"FeatureCollection"===k.type&&(this.mapTitle=k.title,n=B.geojson(k,this.type,this));var p=this.processedData=[];b&&b.forEach(function(c,f){var g=0;if(l(c))p[f]={value:c};else if(u(c)){p[f]={};!a.keys&&c.length>e.length&&"string"===typeof c[0]&&(p[f]["hc-key"]=c[0],++g);for(var h=0;h<e.length;++h,++g)e[h]&&"undefined"!==typeof c[g]&&(0<e[h].indexOf(".")?F.prototype.setNestedProperty(p[f],
707
+ c[g],e[h]):p[f][e[h]]=c[g])}else p[f]=b[f];d&&"_i"===d[0]&&(p[f]._i=f)});if(n){this.mapData=n;this.mapMap={};for(m=0;m<n.length;m++)c=n[m],k=c.properties,c._i=m,d[0]&&k&&k[d[0]]&&(c[d[0]]=k[d[0]]),h[c[d[0]]]=c;this.mapMap=h;if(d[1]){var q=d[1];p.forEach(function(a){a=C(q,a);h[a]&&g.push(h[a])})}if(a.allAreas){if(d[1]){var r=d[1];p.forEach(function(a){g.push(C(r,a))})}var t="|"+g.map(function(a){return a&&a[d[0]]}).join("|")+"|";n.forEach(function(a){d[0]&&-1!==t.indexOf("|"+a[d[0]]+"|")||p.push(f(a,
708
+ {value:null}))})}}this.processedXData=Array(p.length)};b.prototype.setOptions=function(a){a=r.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=D(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this.doFullTranslate(),b=this.chart.mapView,c=b&&b.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!b||b.userOptions.center||l(b.userOptions.zoom)?this.getProjectedBounds():
709
+ b.fitToBounds(void 0,void 0,!1));if(b){var d=b.getSVGTransform();this.points.forEach(function(f){var e=l(f.insetIndex)&&b.insets[f.insetIndex].getSVGTransform()||d;e&&f.bounds&&l(f.bounds.midX)&&l(f.bounds.midY)&&(f.plotX=f.bounds.midX*e.scaleX+e.translateX,f.plotY=f.bounds.midY*e.scaleY+e.translateY);a&&(f.shapeType="path",f.shapeArgs={d:F.getProjectedPath(f,c)})})}x(this,"afterTranslate")};b.defaultOptions=f(G.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var a=
710
+ this.series.chart.numberFormatter,b=this.point.value;return l(b)?a(b,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return b}(G);t(a.prototype,{type:"map",axisTypes:e.seriesMembers.axisTypes,
711
+ colorAttribs:e.seriesMembers.colorAttribs,colorKey:e.seriesMembers.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:v.drawRectangle,forceDL:!0,getCenter:y.getCenter,getExtremesFromAll:!0,getSymbol:b,isCartesian:!1,parallelArrays:e.seriesMembers.parallelArrays,pointArrayMap:e.seriesMembers.pointArrayMap,pointClass:F,preserveAspectRatio:!0,searchPoint:b,trackerGroups:e.seriesMembers.trackerGroups,useMapGeometry:!0});e.compose(a);p.registerSeriesType("map",a);"";return a});I(e,"Series/MapLine/MapLineSeries.js",
712
+ [e["Series/Map/MapSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,p){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(e,p)};return function(e,p){function h(){this.constructor=e}b(e,p);e.prototype=null===p?Object.create(p):(h.prototype=p.prototype,new h)}}(),v=e.series,t=y.extend,F=y.merge;y=function(e){function r(){var b=
713
+ null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(r,e);r.prototype.pointAttribs=function(e,h){e=b.prototype.pointAttribs.call(this,e,h);e.fill=this.options.fillColor;return e};r.defaultOptions=F(b.defaultOptions,{lineWidth:1,fillColor:"none"});return r}(b);t(y.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:v.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});e.registerSeriesType("mapline",y);"";
714
+ return y});I(e,"Series/MapPoint/MapPointPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var y=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var p in e)e.hasOwnProperty(p)&&(b[p]=e[p])};return b(e,v)};return function(e,v){function t(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}(),B=e.isNumber;return function(b){function e(){var e=
715
+ null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.series=void 0;return e}y(e,b);e.prototype.isValid=function(){return!!(this.options.geometry||B(this.x)&&B(this.y)||B(this.options.lon)&&B(this.options.lat))};return e}(b.seriesTypes.scatter.prototype.pointClass)});I(e,"Series/MapPoint/MapPointSeries.js",[e["Core/Globals.js"],e["Series/MapPoint/MapPointPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(a,
716
+ d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function e(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}();b=b.noop;var t=y.seriesTypes.scatter,F=B.extend,z=B.fireEvent,r=B.isNumber,p=B.merge;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.options=void 0;
717
+ a.points=void 0;return a}v(a,b);a.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};a.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var d=a.geometry,e=a.lon;a=a.lat;d=d&&"Point"===d.type&&d.coordinates;r(e)&&r(a)&&(d=[e,a]);if(d)return b.lonLatToProjectedUnits({lon:d[0],lat:d[1]})}};a.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();
718
+ this.generatePoints();this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds());if(b){var e=b.projection.hasCoordinates;this.points.forEach(function(d){var g=d.x;g=void 0===g?void 0:g;var h=d.y;h=void 0===h?void 0:h;var m=a.projectPoint(d.options);m?(g=m.x,h=m.y):d.bounds&&(g=d.bounds.midX,h=d.bounds.midY);r(g)&&r(h)?(g=b.projectedUnitsToPixels({x:g,y:h}),d.plotX=g.x,d.plotY=e?g.y:a.chart.plotHeight-g.y):d.y=d.plotX=d.plotY=void 0;d.isInside=a.isPointInside(d);d.zone=
719
+ a.zones.length?d.getZone():void 0})}z(this,"afterTranslate")};a.defaultOptions=p(t.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return a}(t);F(B.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:e,searchPoint:b,useMapGeometry:!0});y.registerSeriesType("mappoint",B);"";return B});I(e,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,
720
+ className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});I(e,"Series/Bubble/BubbleLegendItem.js",[e["Core/Color/Color.js"],e["Core/FormatUtilities.js"],
721
+ e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=b.parse,t=y.noop,F=B.arrayMax,z=B.arrayMin,r=B.isNumber,p=B.merge,h=B.pick,a=B.stableSort;b=function(){function b(a,b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=t;this.init(a,b)}b.prototype.init=function(a,b){this.options=a;this.visible=
722
+ !0;this.chart=b.chart;this.legend=b};b.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};b.prototype.drawLegendSymbol=function(b){var d=this.chart,e=this.options,g=h(b.options.itemDistance,20),p=e.ranges,t=e.connectorDistance;this.fontMetrics=d.renderer.fontMetrics(e.labels.style.fontSize);p&&p.length&&r(p[0].value)?(a(p,function(a,b){return b.value-a.value}),this.ranges=p,this.setOptions(),this.render(),b=this.getMaxLabelSize(),p=this.ranges[0].radius,d=2*p,t=t-p+b.width,
723
+ t=0<t?t:0,this.maxLabel=b,this.movementX="left"===e.labels.align?t:0,this.legendItemWidth=d+t+g,this.legendItemHeight=d+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};b.prototype.setOptions=function(){var a=this.ranges,b=this.options,d=this.chart.series[b.seriesIndex],e=this.legend.baseline,r={zIndex:b.zIndex,"stroke-width":b.borderWidth},t={zIndex:b.zIndex,"stroke-width":b.connectorWidth},z={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},u=d.options.marker.fillOpacity,
724
+ l=this.chart.styledMode;a.forEach(function(g,f){l||(r.stroke=h(g.borderColor,b.borderColor,d.color),r.fill=h(g.color,b.color,1!==u?v(d.color).setOpacity(u).get("rgba"):d.color),t.stroke=h(g.connectorColor,b.connectorColor,d.color));a[f].radius=this.getRangeRadius(g.value);a[f]=p(a[f],{center:a[0].radius-a[f].radius+e});l||p(!0,a[f],{bubbleAttribs:p(r),connectorAttribs:p(t),labelAttribs:z})},this)};b.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,
725
+ b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};b.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);
726
+ this.hideOverlappingLabels()};b.prototype.renderRange=function(a){var b=this.options,d=b.labels,e=this.chart,g=e.series[b.seriesIndex],h=e.renderer,p=this.symbols;e=p.labels;var u=a.center,l=Math.abs(a.radius),r=b.connectorDistance||0,f=d.align,t=b.connectorWidth,k=this.ranges[0].radius||0,v=u-l-b.borderWidth/2+t/2,c=this.fontMetrics;c=c.f/2-(c.h-c.f)/2;var q=h.styledMode;r=this.legend.options.rtl||"left"===f?-r:r;"center"===f&&(r=0,b.connectorDistance=0,a.labelAttribs.align="center");f=v+b.labels.y;
727
+ var z=k+r+b.labels.x;p.bubbleItems.push(h.circle(k,u+((v%1?1:.5)-(t%2?0:.5)),l).attr(q?{}:a.bubbleAttribs).addClass((q?"highcharts-color-"+g.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));p.connectors.push(h.path(h.crispLine([["M",k,v],["L",k+r,v]],b.connectorWidth)).attr(q?{}:a.connectorAttribs).addClass((q?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));
728
+ a=h.text(this.formatLabel(a),z,f+c).attr(q?{}:a.labelAttribs).css(q?{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:z,y:f+c}};b.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};b.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var g=this.chart.numberFormatter;return b?
729
+ e.format(b,a):d?d.call(a):g(a.value,1)};b.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};b.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,d,e=Number.MAX_VALUE,t=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&
730
+ (d=a.zData.filter(r),d.length&&(e=h(a.options.zMin,Math.min(e,Math.max(z(d),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),t=h(a.options.zMax,Math.max(t,F(d)))))});var x=e===t?[{value:t}]:[{value:e},{value:(e+t)/2},{value:t,autoRanges:!0}];b.length&&b[0].radius&&x.reverse();x.forEach(function(a,d){b&&b[d]&&(x[d]=p(b[d],a))});return x};b.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,d=a.legend.options,e=d.floating,h=(d="horizontal"===d.layout)?
731
+ a.legend.lastLineHeight:0,p=a.plotSizeX,r=a.plotSizeY,u=a.series[this.options.seriesIndex],l=u.getPxExtremes();a=Math.ceil(l.minPxSize);l=Math.ceil(l.maxPxSize);var t=Math.min(r,p);u=u.options.maxSize;if(e||!/%$/.test(u))b=l;else if(u=parseFloat(u),b=(t+h-b.h/2)*u/100/(u/100+1),d&&r-b>=p||!d&&p-b>=r)b=l;return[a,Math.ceil(b)]};b.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};b.prototype.correctSizes=function(){var a=this.legend,
732
+ b=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return b}();"";return b});I(e,"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e,y,B){function v(a,b,e){var g=this.legend,h=0<=t(this);if(g&&g.options.enabled&&g.bubbleLegend&&
733
+ g.options.bubbleLegend.autoRanges&&h){var m=g.bubbleLegend.options;h=g.bubbleLegend.predictBubbleSizes();g.bubbleLegend.updateRanges(h[0],h[1]);m.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&&a.render();m.placed||(a.setScale(),a.updateNames(),d(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});m.placed=!0;this.getMargins();a.call(this,b,e);g.bubbleLegend.correctSizes();p(g,F(g))}else a.call(this,
734
+ b,e),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),p(g,F(g)))}function t(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 F(a){a=a.allItems;var b=[],d=a.length,e,g=0;for(e=0;e<d;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[d-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var h=b[b.length-1];for(g;g<=e;g++)a[g].itemHeight>h.height&&(h.height=a[g].itemHeight);
735
+ h.step=e}return b}function z(a){var b=this.bubbleLegend,d=this.options,g=d.bubbleLegend,h=t(this.chart);b&&b.ranges&&b.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(b));0<=h&&d.enabled&&g.enabled&&(g.seriesIndex=h,this.bubbleLegend=new e(g,this),this.bubbleLegend.addToLegend(a.allItems))}function r(){var a=this.chart,b=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=t(a),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),
736
+ d.bubbleLegend.visible=a),this.visible=b)}function p(a,b){var d=a.options.rtl,e,g,h,l=0;a.allItems.forEach(function(a,f){e=a.legendGroup.translateX;g=a._legendItemPos[1];if((h=a.movementX)||d&&a.ranges)h=d?e-a.options.maxSize/2:e+h,a.legendGroup.attr({translateX:h});f>b[l].step&&l++;a.legendGroup.attr({translateY:Math.round(g+b[l].height/2)});a._legendItemPos[1]=g+b[l].height/2})}var h=y.setOptions,a=B.addEvent,d=B.objectEach,g=B.wrap,m=[];return{compose:function(d,e,p){-1===m.indexOf(d)&&(m.push(d),
737
+ h({legend:{bubbleLegend:b}}),g(d.prototype,"drawChartBox",v));-1===m.indexOf(e)&&(m.push(e),a(e,"afterGetAllItems",z));-1===m.indexOf(p)&&(m.push(p),a(p,"legendItemClick",r))}}});I(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var p in e)e.hasOwnProperty(p)&&
738
+ (b[p]=e[p])};return b(e,v)};return function(e,v){function t(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}();y=y.extend;e=function(e){function t(){var b=null!==e&&e.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}B(t,e);t.prototype.haloPath=function(e){return b.prototype.haloPath.call(this,0===e?0:(this.marker?this.marker.radius||0:0)+e)};return t}(e.seriesTypes.scatter.prototype.pointClass);y(e.prototype,{ttBelow:!1});return e});
739
+ I(e,"Series/Bubble/BubbleSeries.js",[e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t){function F(){var a=this,b=this.len,d=this.chart,e=this.isXAxis,g=e?"xData":"yData",h=this.min,m=this.max-h,c=0,p=b,n=b/m,r;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!d.options.chart.ignoreHiddenSeries)){r=a.allowZoomOutside=!0;var f=b[g];
740
+ e&&((b.onPoint||b).getRadii(0,0,b),b.onPoint&&(b.radii=b.onPoint.radii));if(0<m)for(var k=f.length;k--;)if(G(f[k])&&a.dataMin<=f[k]&&f[k]<=a.max){var l=b.radii&&b.radii[k]||0;c=Math.min((f[k]-h)*n-l,c);p=Math.max((f[k]-h)*n+l,p)}}});r&&0<m&&!this.logarithmic&&(p-=b,n*=(b+Math.max(0,c)-Math.min(p,b))/b,[["min","userMin",c],["max","userMax",p]].forEach(function(b){"undefined"===typeof x(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/n)}))}var z=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||
741
+ {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),r=y.parse;y=B.noop;var p=v.series,h=v.seriesTypes;B=h.column.prototype;var a=h.scatter;h=t.addEvent;var d=t.arrayMax,g=t.arrayMin,m=t.clamp,n=t.extend,G=t.isNumber,J=t.merge,x=t.pick,C=[];t=function(e){function h(){var a=null!==
742
+ e&&e.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}z(h,e);h.compose=function(a,d,e,g){b.compose(d,e,g);-1===C.indexOf(a)&&(C.push(a),a.prototype.beforePadding=F)};h.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),
743
+ this.options.animation))},this)};h.prototype.getRadii=function(){var a=this,b=this.zData,d=this.yData,e=[],g=this.chart.bubbleZExtremes;var c=this.getPxExtremes();var h=c.minPxSize,l=c.maxPxSize;if(!g){var m=Number.MAX_VALUE,p=-Number.MAX_VALUE,n;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=(b.onPoint||b).getZExtremes())&&(m=Math.min(m||b.zMin,b.zMin),p=Math.max(p||b.zMax,b.zMax),n=!0)});n?(g={zMin:m,zMax:p},this.chart.bubbleZExtremes=
744
+ g):g={zMin:0,zMax:0}}var r=0;for(c=b.length;r<c;r++){var u=b[r];e.push(this.getRadius(g.zMin,g.zMax,h,l,u,d&&d[r]))}this.radii=e};h.prototype.getRadius=function(a,b,d,e,g,c){var f=this.options,h="width"!==f.sizeBy,k=f.zThreshold,l=b-a,m=.5;if(null===c||null===g)return null;if(G(g)){f.sizeByAbsoluteValue&&(g=Math.abs(g-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(g<a)return d/2-1;0<l&&(m=(g-a)/l)}h&&0<=m&&(m=Math.sqrt(m));return Math.ceil(d+m*(e-d))/2};h.prototype.hasData=function(){return!!this.processedXData.length};
745
+ h.prototype.pointAttribs=function(a,b){var d=this.options.marker.fillOpacity;a=p.prototype.pointAttribs.call(this,a,b);1!==d&&(a.fill=r(a.fill).setOpacity(d).get("rgba"));return a};h.prototype.translate=function(){e.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,d=this.getPxExtremes().minPxSize,e=a.length;e--;){var g=a[e],c=b?b[e]:0;G(c)&&c>=d/2?(g.marker=n(g.marker,{radius:c,width:2*c,height:2*c}),g.dlBox=
746
+ {x:g.plotX-c,y:g.plotY-c,width:2*c,height:2*c}):(g.shapeArgs=g.dlBox=void 0,g.plotY=0,g.marker={width:0,height:0})}};h.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var d=/%$/.test(b);b=parseInt(b,10)}return d?a*b/100:b},d=b(x(this.options.minSize,8));b=Math.max(b(x(this.options.maxSize,"20%")),d);return{minPxSize:d,maxPxSize:b}};h.prototype.getZExtremes=function(){var a=this.options,b=(this.zData||[]).filter(G);
747
+ if(b.length){var e=x(a.zMin,m(g(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=x(a.zMax,d(b));if(G(e)&&G(a))return{zMin:e,zMax:a}}};h.defaultOptions=J(a.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return G(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",
748
+ softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return h}(a);n(t.prototype,{alignDataLabel:B.alignDataLabel,applyZones:y,bubblePadding:!0,buildKDTree:y,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});h(t,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});
749
+ h(t,"remove",function(a){delete a.target.chart.bubbleZExtremes});v.registerSeriesType("bubble",t);"";"";return t});I(e,"Series/MapBubble/MapBubblePoint.js",[e["Series/Bubble/BubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var p in e)e.hasOwnProperty(p)&&(b[p]=e[p])};return b(e,v)};return function(e,
750
+ v){function t(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}();e=e.seriesTypes.map.prototype.pointClass.prototype;y=y.extend;b=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}B(e,b);e.prototype.isValid=function(){return"number"===typeof this.z};return e}(b);y(b.prototype,{applyOptions:e.applyOptions,getProjectedBounds:e.getProjectedBounds});return b});I(e,"Series/MapBubble/MapBubbleSeries.js",[e["Series/Bubble/BubbleSeries.js"],
751
+ e["Series/MapBubble/MapBubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),t=y.seriesTypes,F=t.map.prototype,
752
+ z=t.mappoint.prototype;t=B.extend;var r=B.merge;B=function(e){function h(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(h,e);h.prototype.searchPoint=function(a,b){return this.searchKDTree({clientX:a.chartX-this.chart.plotLeft,plotY:a.chartY-this.chart.plotTop},b,a)};h.prototype.translate=function(){z.translate.call(this);this.getRadii();this.translateBubble()};h.defaultOptions=r(b.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",
753
+ tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(b);t(B.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:F.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:e,processData:F.processData,projectPoint:z.projectPoint,setData:F.setData,setOptions:F.setOptions,updateData:F.updateData,useMapGeometry:!0,xyFromShape:!0});y.registerSeriesType("mapbubble",B);"";return B});I(e,"Series/Heatmap/HeatmapPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],
754
+ function(b,e){var y=this&&this.__extends||function(){var b=function(e,p){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(e,p)};return function(e,p){function h(){this.constructor=e}b(e,p);e.prototype=null===p?Object.create(p):(h.prototype=p.prototype,new h)}}(),B=e.clamp,v=e.defined,t=e.extend,F=e.pick;b=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.options=void 0;
755
+ e.series=void 0;e.value=void 0;e.x=void 0;e.y=void 0;return e}y(e,b);e.prototype.applyOptions=function(e,h){e=b.prototype.applyOptions.call(this,e,h);e.formatPrefix=e.isNull||null===e.value?"null":"point";return e};e.prototype.getCellAttributes=function(){var b=this.series,e=b.options,a=(e.colsize||1)/2,d=(e.rowsize||1)/2,g=b.xAxis,m=b.yAxis,n=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();var r=F(this.pointPadding,e.pointPadding,0),t={x1:B(Math.round(g.len-g.translate(this.x-
756
+ a,!1,!0,!1,!0,-b)),-g.len,2*g.len),x2:B(Math.round(g.len-g.translate(this.x+a,!1,!0,!1,!0,-b)),-g.len,2*g.len),y1:B(Math.round(m.translate(this.y-d,!1,!0,!1,!0)),-m.len,2*m.len),y2:B(Math.round(m.translate(this.y+d,!1,!0,!1,!0)),-m.len,2*m.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",e=a+"2",g=Math.abs(t[d]-t[e]),f=n&&n.lineWidth||0,h=Math.abs(t[d]+t[e])/2;b=n&&n[b];v(b)&&b<g&&(b=b/2+f/2,t[d]=h-b,t[e]=h+b);r&&("y"===a&&(d=e,e=a+"1"),t[d]+=r,t[e]-=r)});return t};
757
+ e.prototype.haloPath=function(b){if(!b)return[];var e=this.shapeArgs;return["M",e.x-b,e.y-b,"L",e.x-b,e.y+e.height+b,e.x+e.width+b,e.y+e.height+b,e.x+e.width+b,e.y-b,"Z"]};e.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return e}(b.seriesTypes.scatter.prototype.pointClass);t(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});I(e,"Series/Heatmap/HeatmapSeries.js",[e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Series/Heatmap/HeatmapPoint.js"],
758
+ e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F){var z=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,
759
+ new e)}}(),r=v.series,p=v.seriesTypes,h=p.column,a=p.scatter,d=t.prototype.symbols,g=F.extend,m=F.fireEvent,n=F.isNumber,G=F.merge,I=F.pick;t=function(e){function h(){var a=null!==e&&e.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}z(h,e);h.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)r.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&
760
+ (b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};h.prototype.getExtremes=function(){var a=r.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;n(b)&&(this.valueMin=b);n(a)&&(this.valueMax=a);return r.prototype.getExtremes.call(this)};h.prototype.getValidPoints=function(a,b){return r.prototype.getValidPoints.call(this,a,b,!0)};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.init=
761
+ function(){r.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=I(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;d.ellipse=d.circle;a.marker&&(a.marker.r=a.borderRadius)};h.prototype.markerAttribs=function(a,b){var d=a.marker||{},e=this.options.marker||{},g=a.shapeArgs||{},h={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var l=e.states[b]||{};var c=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){h[a[0]]=(c[a[0]]||l[a[0]]||g[a[0]])+
762
+ (c[a[0]+"Plus"]||l[a[0]+"Plus"]||0);h[a[1]]=g[a[1]]+(g[a[0]]-h[a[0]])/2})}return b?h:g};h.prototype.pointAttribs=function(a,d){var e=r.prototype.pointAttribs.call(this,a,d),f=this.options||{},g=this.chart.options.plotOptions||{},h=g.series||{},l=g.heatmap||{};g=a&&a.options.borderColor||f.borderColor||l.borderColor||h.borderColor;h=a&&a.options.borderWidth||f.borderWidth||l.borderWidth||h.borderWidth||e["stroke-width"];e.stroke=a&&a.marker&&a.marker.lineColor||f.marker&&f.marker.lineColor||g||this.color;
763
+ e["stroke-width"]=h;d&&(a=G(f.states[d],f.marker&&f.marker.states[d],a&&a.options.states&&a.options.states[d]||{}),d=a.brightness,e.fill=a.color||b.parse(e.fill).brighten(d||0).get(),e.stroke=a.lineColor);return e};h.prototype.setClip=function(a){var b=this.chart;r.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};h.prototype.translate=function(){var a=this.options,b=a.marker&&
764
+ a.marker.symbol||"rect",e=d[b]?b:"rect",f=-1!==["circle","square"].indexOf(e);this.generatePoints();this.points.forEach(function(h){var k=h.getCellAttributes(),l={};l.x=Math.min(k.x1,k.x2);l.y=Math.min(k.y1,k.y2);l.width=Math.max(Math.abs(k.x2-k.x1),0);l.height=Math.max(Math.abs(k.y2-k.y1),0);var c=h.hasImage=0===(h.marker&&h.marker.symbol||b||"").indexOf("url");if(f){var m=Math.abs(l.width-l.height);l.x=Math.min(k.x1,k.x2)+(l.width<l.height?0:m/2);l.y=Math.min(k.y1,k.y2)+(l.width<l.height?m/2:0);
765
+ l.width=l.height=Math.min(l.width,l.height)}m={plotX:(k.x1+k.x2)/2,plotY:(k.y1+k.y2)/2,clientX:(k.x1+k.x2)/2,shapeType:"path",shapeArgs:G(!0,l,{d:d[e](l.x,l.y,l.width,l.height,{r:a.borderRadius})})};c&&(h.marker={width:l.width,height:l.height});g(h,m)});m(this,"afterTranslate")};h.defaultOptions=G(a.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return n(b)?a(b,-1):""},inside:!0,
766
+ 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 h}(a);g(t.prototype,{axisTypes:e.seriesMembers.axisTypes,colorKey:e.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:e.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:y,trackerGroups:e.seriesMembers.trackerGroups,
767
+ alignDataLabel:h.prototype.alignDataLabel,colorAttribs:e.seriesMembers.colorAttribs,drawLegendSymbol:B.drawRectangle,getSymbol:r.prototype.getSymbol});e.compose(t);v.registerSeriesType("heatmap",t);"";"";return t});I(e,"masters/modules/map.src.js",[e["Core/Globals.js"],e["Core/Axis/Color/ColorAxis.js"],e["Series/MapBubble/MapBubbleSeries.js"],e["Core/Chart/MapChart.js"],e["Maps/MapView.js"],e["Maps/Projection.js"]],function(b,e,y,B,v,t){b.ColorAxis=e;b.MapChart=B;b.mapChart=b.Map=B.mapChart;b.MapView=
768
+ v;b.maps=B.maps;b.Projection=t;e.compose(b.Chart,b.Fx,b.Legend,b.Series);y.compose(b.Axis,b.Chart,b.Legend,b.Series)});I(e,"masters/highmaps.src.js",[e["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});e["masters/highmaps.src.js"]._modules=e;return e["masters/highmaps.src.js"]});
765
769
  //# sourceMappingURL=highmaps.js.map