highcharts 9.2.0 → 9.3.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 (755) hide show
  1. package/README.md +13 -6
  2. package/bower.json +1 -1
  3. package/css/annotations/popup.css +48 -8
  4. package/css/annotations/popup.scss +70 -22
  5. package/css/highcharts.css +45 -0
  6. package/css/highcharts.scss +40 -0
  7. package/css/themes/dark-unica.css +45 -0
  8. package/css/themes/grid-light.css +45 -0
  9. package/css/themes/sand-signika.css +45 -0
  10. package/es-modules/Accessibility/A11yI18n.js +273 -224
  11. package/es-modules/Accessibility/Accessibility.js +237 -128
  12. package/es-modules/Accessibility/AccessibilityComponent.js +79 -314
  13. package/es-modules/Accessibility/Components/AnnotationsA11y.js +10 -0
  14. package/es-modules/Accessibility/Components/ContainerComponent.js +52 -27
  15. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +173 -104
  16. package/es-modules/Accessibility/Components/LegendComponent.js +97 -65
  17. package/es-modules/Accessibility/Components/MenuComponent.js +243 -149
  18. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +170 -88
  19. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +152 -115
  20. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +133 -68
  21. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +64 -27
  22. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +38 -21
  23. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +380 -325
  24. package/es-modules/Accessibility/Components/ZoomComponent.js +28 -20
  25. package/es-modules/Accessibility/FocusBorder.js +192 -147
  26. package/es-modules/Accessibility/HighContrastMode.js +78 -66
  27. package/es-modules/Accessibility/HighContrastTheme.js +10 -0
  28. package/es-modules/Accessibility/KeyboardNavigation.js +146 -71
  29. package/es-modules/Accessibility/KeyboardNavigationHandler.js +71 -44
  30. package/es-modules/Accessibility/Options/DeprecatedOptions.js +11 -1
  31. package/es-modules/Accessibility/Options/LangOptions.js +1 -2
  32. package/es-modules/Accessibility/Options/Options.js +32 -17
  33. package/es-modules/Accessibility/ProxyElement.js +212 -0
  34. package/es-modules/Accessibility/ProxyProvider.js +305 -0
  35. package/es-modules/Accessibility/Utils/Announcer.js +15 -8
  36. package/es-modules/Accessibility/Utils/ChartUtilities.js +41 -16
  37. package/es-modules/Accessibility/Utils/DOMElementProvider.js +27 -15
  38. package/es-modules/Accessibility/Utils/EventProvider.js +27 -17
  39. package/es-modules/Accessibility/Utils/HTMLUtilities.js +125 -30
  40. package/es-modules/Core/Axis/Axis.js +37 -30
  41. package/es-modules/Core/Axis/AxisDefaults.js +35 -24
  42. package/es-modules/Core/Axis/Color/ColorAxisComposition.js +54 -4
  43. package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +5 -5
  44. package/es-modules/Core/Axis/OrdinalAxis.js +5 -13
  45. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +4 -5
  46. package/es-modules/Core/Axis/ScrollbarAxis.js +10 -3
  47. package/es-modules/Core/Axis/TreeGridAxis.js +2 -2
  48. package/es-modules/Core/Axis/TreeGridTick.js +1 -2
  49. package/es-modules/Core/Chart/Chart.js +2 -3
  50. package/es-modules/Core/Chart/ChartDefaults.js +3 -4
  51. package/es-modules/Core/Chart/ChartNavigationComposition.js +92 -0
  52. package/es-modules/Core/Chart/MapChart.js +10 -22
  53. package/es-modules/Core/Chart/StockChart.js +3 -293
  54. package/es-modules/Core/Color/Palettes.js +22 -0
  55. package/es-modules/Core/DefaultOptions.js +19 -17
  56. package/es-modules/Core/Foundation.js +39 -31
  57. package/es-modules/Core/Globals.js +1 -1
  58. package/es-modules/Core/HttpUtilities.js +3 -3
  59. package/es-modules/Core/Legend/Legend.js +7 -3
  60. package/es-modules/Core/Navigator.js +7 -8
  61. package/es-modules/Core/Pointer.js +39 -36
  62. package/es-modules/Core/Renderer/HTML/AST.js +3 -6
  63. package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -18
  64. package/es-modules/Core/Renderer/SVG/SVGElement.js +3 -4
  65. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +21 -18
  66. package/es-modules/Core/Renderer/SVG/TextBuilder.js +17 -13
  67. package/es-modules/Core/ScrollbarDefaults.js +10 -9
  68. package/es-modules/Core/Series/DataLabel.js +2 -3
  69. package/es-modules/Core/Series/Point.js +5 -3
  70. package/es-modules/Core/Series/Series.js +156 -162
  71. package/es-modules/Core/Series/SeriesDefaults.js +3 -4
  72. package/es-modules/Core/Series/SeriesRegistry.js +1 -2
  73. package/es-modules/Core/Tooltip.js +44 -17
  74. package/es-modules/Core/Utilities.js +15 -7
  75. package/es-modules/Data/DataConverter.js +489 -0
  76. package/es-modules/Data/DataPromise.js +252 -0
  77. package/es-modules/Data/DataSeriesConverter.js +203 -0
  78. package/es-modules/Data/DataTable.js +1204 -0
  79. package/es-modules/Data/Modifiers/ChainModifier.js +299 -0
  80. package/es-modules/Data/Modifiers/DataModifier.js +303 -0
  81. package/es-modules/Data/Modifiers/GroupModifier.js +144 -0
  82. package/es-modules/Data/Modifiers/InvertModifier.js +254 -0
  83. package/es-modules/Data/Modifiers/RangeModifier.js +143 -0
  84. package/es-modules/Data/Modifiers/SeriesPointsModifier.js +110 -0
  85. package/es-modules/Data/Modifiers/SortModifier.js +249 -0
  86. package/es-modules/Data/Parsers/CSVParser.js +399 -0
  87. package/es-modules/Data/Parsers/DataParser.js +101 -0
  88. package/es-modules/Data/Parsers/GoogleSheetsParser.js +220 -0
  89. package/es-modules/Data/Parsers/HTMLTableParser.js +213 -0
  90. package/es-modules/Data/Stores/CSVStore.js +317 -0
  91. package/es-modules/Data/Stores/DataStore.js +276 -0
  92. package/es-modules/Data/Stores/GoogleSheetsStore.js +167 -0
  93. package/es-modules/Data/Stores/HTMLTableStore.js +351 -0
  94. package/es-modules/Extensions/Annotations/Annotations.js +61 -11
  95. package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
  96. package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +199 -0
  97. package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +7 -1
  98. package/es-modules/Extensions/Annotations/NavigationBindings.js +90 -28
  99. package/es-modules/Extensions/Annotations/Popup.js +479 -141
  100. package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +51 -2
  101. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +1 -1
  102. package/es-modules/Extensions/Annotations/Types/Fibonacci.js +2 -3
  103. package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +219 -0
  104. package/es-modules/Extensions/Annotations/Types/InfinityLine.js +1 -1
  105. package/es-modules/Extensions/Annotations/Types/Measure.js +14 -8
  106. package/es-modules/Extensions/Annotations/Types/Pitchfork.js +5 -5
  107. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +207 -0
  108. package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -5
  109. package/es-modules/Extensions/Annotations/Types/VerticalLine.js +1 -1
  110. package/es-modules/Extensions/Boost/BoostOptions.js +2 -2
  111. package/es-modules/Extensions/Boost/BoostOverrides.js +3 -1
  112. package/es-modules/Extensions/Boost/WGLShader.js +4 -3
  113. package/es-modules/Extensions/BoostCanvas.js +1 -2
  114. package/es-modules/Extensions/CurrentDateIndication.js +2 -3
  115. package/es-modules/Extensions/Data.js +73 -67
  116. package/es-modules/Extensions/DataGrouping.js +33 -18
  117. package/es-modules/Extensions/Debugger/ErrorMessages.js +2 -2
  118. package/es-modules/Extensions/DownloadURL.js +2 -2
  119. package/es-modules/Extensions/DragPanes.js +1 -2
  120. package/es-modules/Extensions/Drilldown.js +2 -3
  121. package/es-modules/Extensions/Exporting/Exporting.js +12 -11
  122. package/es-modules/Extensions/Exporting/ExportingDefaults.js +8 -15
  123. package/es-modules/Extensions/GeoJSON.js +39 -63
  124. package/es-modules/Extensions/MarkerClusters.js +115 -97
  125. package/es-modules/Extensions/NoDataToDisplay.js +1 -2
  126. package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +10 -9
  127. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  128. package/es-modules/Extensions/Oldie/Oldie.js +2 -3
  129. package/es-modules/Extensions/Pane.js +5 -6
  130. package/es-modules/Extensions/Polar.js +1 -1
  131. package/es-modules/Extensions/RangeSelector.js +3 -4
  132. package/es-modules/Extensions/Sonification/ChartSonify.js +247 -637
  133. package/es-modules/Extensions/Sonification/Earcon.js +136 -102
  134. package/es-modules/Extensions/Sonification/Instrument.js +496 -426
  135. package/es-modules/Extensions/Sonification/MusicalFrequencies.js +10 -0
  136. package/es-modules/Extensions/Sonification/Options.js +10 -0
  137. package/es-modules/Extensions/Sonification/PointSonify.js +203 -152
  138. package/es-modules/Extensions/Sonification/SeriesSonify.js +459 -0
  139. package/es-modules/Extensions/Sonification/SignalHandler.js +124 -0
  140. package/es-modules/Extensions/Sonification/Sonification.js +26 -52
  141. package/es-modules/Extensions/Sonification/{Utilities.js → SonificationUtilities.js} +62 -84
  142. package/es-modules/Extensions/Sonification/Timeline.js +255 -567
  143. package/es-modules/Extensions/Sonification/TimelineEvent.js +158 -0
  144. package/es-modules/Extensions/Sonification/TimelinePath.js +311 -0
  145. package/es-modules/Maps/MapNavigation.js +27 -64
  146. package/es-modules/Maps/MapNavigationOptionsDefault.js +3 -0
  147. package/es-modules/Maps/MapPointer.js +7 -5
  148. package/es-modules/Maps/MapView.js +450 -0
  149. package/es-modules/Maps/MapViewOptionsDefault.js +97 -0
  150. package/es-modules/Maps/Projection.js +436 -0
  151. package/es-modules/Maps/ProjectionDefinition.js +9 -0
  152. package/es-modules/Maps/Projections/EqualEarth.js +42 -0
  153. package/es-modules/Maps/Projections/LambertConformalConic.js +52 -0
  154. package/es-modules/Maps/Projections/Miller.js +16 -0
  155. package/es-modules/Maps/Projections/Orthographic.js +26 -0
  156. package/es-modules/Maps/Projections/ProjectionRegistry.js +19 -0
  157. package/es-modules/Maps/Projections/WebMercator.js +24 -0
  158. package/es-modules/Series/AreaRange/AreaRangeSeries.js +4 -5
  159. package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -8
  160. package/es-modules/Series/BoxPlot/BoxPlotSeries.js +1 -2
  161. package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -2
  162. package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
  163. package/es-modules/Series/Bubble/BubblePoint.js +5 -0
  164. package/es-modules/Series/Bubble/BubbleSeries.js +90 -50
  165. package/es-modules/Series/Candlestick/CandlestickSeries.js +10 -18
  166. package/es-modules/{Mixins/CenteredSeries.js → Series/CenteredUtilities.js} +45 -23
  167. package/es-modules/Series/ColorMapComposition.js +109 -0
  168. package/es-modules/Series/Column/ColumnDataLabel.js +5 -5
  169. package/es-modules/Series/Column/ColumnSeries.js +3 -4
  170. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +6 -6
  171. package/es-modules/Series/DataModifyComposition.js +539 -0
  172. package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +2 -6
  173. package/es-modules/Series/DerivedComposition.js +137 -0
  174. package/es-modules/Series/DrawPointComposition.js +111 -0
  175. package/es-modules/Series/Dumbbell/DumbbellSeries.js +2 -3
  176. package/es-modules/Series/ErrorBar/ErrorBarSeries.js +1 -2
  177. package/es-modules/Series/Flags/FlagsSeries.js +18 -25
  178. package/es-modules/Series/Funnel/FunnelSeries.js +6 -5
  179. package/es-modules/Series/Gantt/GanttSeries.js +0 -2
  180. package/es-modules/Series/Gauge/GaugePoint.js +1 -1
  181. package/es-modules/Series/Gauge/GaugeSeries.js +7 -7
  182. package/es-modules/Series/HLC/HLCPoint.js +55 -0
  183. package/es-modules/Series/HLC/HLCSeries.js +383 -0
  184. package/es-modules/Series/Heatmap/HeatmapPoint.js +3 -4
  185. package/es-modules/Series/Heatmap/HeatmapSeries.js +19 -6
  186. package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +2 -3
  187. package/es-modules/Series/Histogram/HistogramSeries.js +3 -7
  188. package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +2 -2
  189. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +33 -34
  190. package/es-modules/Series/Line/LineSeries.js +1 -2
  191. package/es-modules/Series/Map/MapPoint.js +23 -16
  192. package/es-modules/Series/Map/MapSeries.js +271 -309
  193. package/es-modules/Series/MapBubble/MapBubblePoint.js +0 -3
  194. package/es-modules/Series/MapBubble/MapBubbleSeries.js +10 -1
  195. package/es-modules/Series/MapLine/MapLineSeries.js +2 -0
  196. package/es-modules/Series/MapPoint/MapPointPoint.js +5 -1
  197. package/es-modules/Series/MapPoint/MapPointSeries.js +99 -14
  198. package/es-modules/Series/Networkgraph/Networkgraph.js +5 -5
  199. package/es-modules/{Mixins/Nodes.js → Series/NodesComposition.js} +76 -29
  200. package/es-modules/Series/OHLC/OHLCPoint.js +2 -6
  201. package/es-modules/Series/OHLC/OHLCSeries.js +55 -183
  202. package/es-modules/{Mixins/OnSeries.js → Series/OnSeriesComposition.js} +53 -21
  203. package/es-modules/Series/Organization/OrganizationSeries.js +2 -3
  204. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +46 -6
  205. package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -7
  206. package/es-modules/Series/Pie/PieDataLabel.js +1 -2
  207. package/es-modules/Series/Pie/PieSeries.js +6 -7
  208. package/es-modules/Series/Sankey/SankeyPoint.js +0 -4
  209. package/es-modules/Series/Sankey/SankeySeries.js +89 -20
  210. package/es-modules/Series/Sunburst/SunburstPoint.js +2 -3
  211. package/es-modules/Series/Sunburst/SunburstSeries.js +4 -4
  212. package/es-modules/Series/Tilemap/TilemapPoint.js +2 -3
  213. package/es-modules/Series/Timeline/TimelineSeries.js +3 -4
  214. package/es-modules/{Mixins/TreeSeries.js → Series/TreeUtilities.js} +86 -76
  215. package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
  216. package/es-modules/Series/Treemap/TreemapSeries.js +8 -8
  217. package/es-modules/Series/Venn/VennPoint.js +16 -7
  218. package/es-modules/Series/Venn/VennSeries.js +5 -8
  219. package/es-modules/Series/Venn/VennUtils.js +550 -439
  220. package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -3
  221. package/es-modules/Series/Windbarb/WindbarbSeries.js +23 -24
  222. package/es-modules/Series/Wordcloud/WordcloudPoint.js +8 -6
  223. package/es-modules/Series/Wordcloud/WordcloudSeries.js +24 -20
  224. package/es-modules/Series/Wordcloud/WordcloudUtils.js +673 -484
  225. package/es-modules/Series/XRange/XRangePoint.js +1 -0
  226. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -6
  227. package/es-modules/Stock/Indicators/AO/AOIndicator.js +2 -3
  228. package/es-modules/Stock/Indicators/APO/APOIndicator.js +14 -20
  229. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -6
  230. package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +11 -13
  231. package/es-modules/Stock/Indicators/ArrayUtilities.js +47 -0
  232. package/es-modules/Stock/Indicators/BB/BBIndicator.js +27 -11
  233. package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +6 -12
  234. package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -11
  235. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +19 -11
  236. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +17 -11
  237. package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +1 -3
  238. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +11 -9
  239. package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -16
  240. package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +2 -2
  241. package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +2 -2
  242. package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +2 -2
  243. package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +2 -2
  244. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
  245. package/es-modules/{Mixins/MultipleLines.js → Stock/Indicators/MultipleLinesComposition.js} +136 -87
  246. package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +1 -3
  247. package/es-modules/Stock/Indicators/PC/PCIndicator.js +14 -13
  248. package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -11
  249. package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -26
  250. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +32 -49
  251. package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +0 -8
  252. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +15 -8
  253. package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +4 -6
  254. package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +26 -11
  255. package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +6 -12
  256. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +23 -7
  257. package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +2 -3
  258. package/es-modules/Stock/StockToolsBindings.js +144 -42
  259. package/es-modules/Stock/StockToolsGui.js +409 -15
  260. package/es-modules/masters/highcharts-3d.src.js +1 -1
  261. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  262. package/es-modules/masters/highcharts-more.src.js +1 -1
  263. package/es-modules/masters/highcharts.src.js +1 -1
  264. package/es-modules/masters/highmaps.src.js +1 -1
  265. package/es-modules/masters/highstock.src.js +1 -1
  266. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  267. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  268. package/es-modules/masters/indicators/ao.src.js +1 -1
  269. package/es-modules/masters/indicators/apo.src.js +1 -1
  270. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  271. package/es-modules/masters/indicators/aroon.src.js +1 -1
  272. package/es-modules/masters/indicators/atr.src.js +1 -1
  273. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  274. package/es-modules/masters/indicators/cci.src.js +1 -1
  275. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  276. package/es-modules/masters/indicators/cmf.src.js +1 -1
  277. package/es-modules/masters/indicators/cmo.src.js +1 -1
  278. package/es-modules/masters/indicators/dema.src.js +1 -1
  279. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  280. package/es-modules/masters/indicators/dmi.src.js +1 -1
  281. package/es-modules/masters/indicators/dpo.src.js +1 -1
  282. package/es-modules/masters/indicators/ema.src.js +4 -10
  283. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  284. package/es-modules/masters/indicators/indicators-all.src.js +2 -2
  285. package/es-modules/masters/indicators/indicators.src.js +2 -1
  286. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  287. package/es-modules/masters/indicators/klinger.src.js +1 -1
  288. package/es-modules/masters/indicators/macd.src.js +1 -1
  289. package/es-modules/masters/indicators/mfi.src.js +1 -1
  290. package/es-modules/masters/indicators/momentum.src.js +1 -1
  291. package/es-modules/masters/indicators/natr.src.js +1 -1
  292. package/es-modules/masters/indicators/obv.src.js +1 -1
  293. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  294. package/es-modules/masters/indicators/ppo.src.js +1 -1
  295. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  296. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  297. package/es-modules/masters/indicators/psar.src.js +1 -1
  298. package/es-modules/masters/indicators/regressions.src.js +1 -1
  299. package/es-modules/masters/indicators/roc.src.js +1 -1
  300. package/es-modules/masters/indicators/rsi.src.js +1 -1
  301. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  302. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  303. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  304. package/es-modules/masters/indicators/tema.src.js +1 -1
  305. package/es-modules/masters/indicators/trendline.src.js +1 -1
  306. package/es-modules/masters/indicators/trix.src.js +1 -1
  307. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  308. package/es-modules/masters/indicators/vwap.src.js +1 -1
  309. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  310. package/es-modules/masters/indicators/wma.src.js +1 -1
  311. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  312. package/es-modules/masters/modules/accessibility.src.js +16 -2
  313. package/es-modules/masters/modules/annotations-advanced.src.js +3 -1
  314. package/es-modules/masters/modules/annotations.src.js +1 -1
  315. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  316. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  317. package/es-modules/masters/modules/boost.src.js +1 -1
  318. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  319. package/es-modules/masters/modules/bullet.src.js +1 -1
  320. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  321. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  322. package/es-modules/masters/modules/cylinder.src.js +1 -1
  323. package/es-modules/masters/modules/data.src.js +6 -3
  324. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  325. package/es-modules/masters/modules/debugger.src.js +1 -1
  326. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  327. package/es-modules/masters/modules/dotplot.src.js +1 -1
  328. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  329. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  330. package/es-modules/masters/modules/drilldown.src.js +1 -1
  331. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  332. package/es-modules/masters/modules/export-data.src.js +1 -1
  333. package/es-modules/masters/modules/exporting.src.js +1 -1
  334. package/es-modules/masters/modules/full-screen.src.js +1 -1
  335. package/es-modules/masters/modules/funnel.src.js +1 -1
  336. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  337. package/es-modules/masters/modules/gantt.src.js +1 -1
  338. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  339. package/es-modules/masters/modules/heatmap.src.js +1 -2
  340. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  341. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  342. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  343. package/es-modules/masters/modules/item-series.src.js +1 -1
  344. package/es-modules/masters/modules/lollipop.src.js +1 -1
  345. package/es-modules/masters/modules/map.src.js +1 -3
  346. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  347. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  348. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  349. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  350. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  351. package/es-modules/masters/modules/oldie.src.js +1 -1
  352. package/es-modules/masters/modules/organization.src.js +1 -1
  353. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  354. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  355. package/es-modules/masters/modules/pareto.src.js +1 -1
  356. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  357. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  358. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  359. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  360. package/es-modules/masters/modules/sankey.src.js +1 -1
  361. package/es-modules/masters/modules/series-label.src.js +1 -1
  362. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  363. package/es-modules/masters/modules/sonification.src.js +33 -2
  364. package/es-modules/masters/modules/static-scale.src.js +1 -1
  365. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  366. package/es-modules/masters/modules/stock.src.js +4 -1
  367. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  368. package/es-modules/masters/modules/sunburst.src.js +1 -1
  369. package/es-modules/masters/modules/tilemap.src.js +1 -1
  370. package/es-modules/masters/modules/timeline.src.js +1 -1
  371. package/es-modules/masters/modules/treegrid.src.js +1 -1
  372. package/es-modules/masters/modules/treemap.src.js +1 -1
  373. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  374. package/es-modules/masters/modules/variwide.src.js +1 -1
  375. package/es-modules/masters/modules/vector.src.js +1 -1
  376. package/es-modules/masters/modules/venn.src.js +1 -1
  377. package/es-modules/masters/modules/windbarb.src.js +1 -1
  378. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  379. package/es-modules/masters/modules/xrange.src.js +1 -1
  380. package/es-modules/masters/themes/avocado.src.js +1 -1
  381. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  382. package/es-modules/masters/themes/dark-green.src.js +1 -1
  383. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  384. package/es-modules/masters/themes/gray.src.js +1 -1
  385. package/es-modules/masters/themes/grid-light.src.js +1 -1
  386. package/es-modules/masters/themes/grid.src.js +1 -1
  387. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  388. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  389. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  390. package/es-modules/masters/themes/skies.src.js +1 -1
  391. package/es-modules/masters/themes/sunset.src.js +1 -1
  392. package/highcharts-3d.js +1 -1
  393. package/highcharts-3d.src.js +1 -1
  394. package/highcharts-gantt.js +799 -801
  395. package/highcharts-gantt.js.map +1 -1
  396. package/highcharts-gantt.src.js +793 -755
  397. package/highcharts-more.js +194 -193
  398. package/highcharts-more.js.map +1 -1
  399. package/highcharts-more.src.js +208 -120
  400. package/highcharts.d.ts +9814 -4231
  401. package/highcharts.js +585 -587
  402. package/highcharts.js.map +1 -1
  403. package/highcharts.src.d.ts +9814 -4231
  404. package/highcharts.src.js +626 -603
  405. package/highmaps.js +728 -707
  406. package/highmaps.js.map +1 -1
  407. package/highmaps.src.js +2824 -1613
  408. package/highstock.js +788 -782
  409. package/highstock.js.map +1 -1
  410. package/highstock.src.js +1913 -1284
  411. package/indicators/acceleration-bands.js +10 -9
  412. package/indicators/acceleration-bands.js.map +1 -1
  413. package/indicators/acceleration-bands.src.js +156 -112
  414. package/indicators/accumulation-distribution.js +1 -1
  415. package/indicators/accumulation-distribution.src.js +1 -1
  416. package/indicators/ao.js +6 -6
  417. package/indicators/ao.js.map +1 -1
  418. package/indicators/ao.src.js +4 -4
  419. package/indicators/apo.js +5 -6
  420. package/indicators/apo.js.map +1 -1
  421. package/indicators/apo.src.js +16 -84
  422. package/indicators/aroon-oscillator.js +9 -9
  423. package/indicators/aroon-oscillator.js.map +1 -1
  424. package/indicators/aroon-oscillator.src.js +160 -177
  425. package/indicators/aroon.js +9 -9
  426. package/indicators/aroon.js.map +1 -1
  427. package/indicators/aroon.src.js +156 -112
  428. package/indicators/atr.js +1 -1
  429. package/indicators/atr.src.js +1 -1
  430. package/indicators/bollinger-bands.js +10 -9
  431. package/indicators/bollinger-bands.js.map +1 -1
  432. package/indicators/bollinger-bands.src.js +180 -117
  433. package/indicators/cci.js +1 -1
  434. package/indicators/cci.src.js +1 -1
  435. package/indicators/chaikin.js +8 -9
  436. package/indicators/chaikin.js.map +1 -1
  437. package/indicators/chaikin.src.js +8 -76
  438. package/indicators/cmf.js +1 -1
  439. package/indicators/cmf.src.js +1 -1
  440. package/indicators/cmo.js +1 -1
  441. package/indicators/cmo.src.js +1 -1
  442. package/indicators/dema.js +5 -6
  443. package/indicators/dema.js.map +1 -1
  444. package/indicators/dema.src.js +3 -75
  445. package/indicators/disparity-index.js +6 -7
  446. package/indicators/disparity-index.js.map +1 -1
  447. package/indicators/disparity-index.src.js +19 -74
  448. package/indicators/dmi.js +11 -11
  449. package/indicators/dmi.js.map +1 -1
  450. package/indicators/dmi.src.js +173 -116
  451. package/indicators/dpo.js +1 -1
  452. package/indicators/dpo.src.js +1 -1
  453. package/indicators/ema.js +1 -13
  454. package/indicators/ema.js.map +1 -1
  455. package/indicators/ema.src.js +7 -188
  456. package/indicators/ichimoku-kinko-hyo.js +1 -1
  457. package/indicators/ichimoku-kinko-hyo.src.js +1 -1
  458. package/indicators/indicators-all.js +197 -203
  459. package/indicators/indicators-all.js.map +1 -1
  460. package/indicators/indicators-all.src.js +677 -743
  461. package/indicators/indicators.js +12 -12
  462. package/indicators/indicators.js.map +1 -1
  463. package/indicators/indicators.src.js +213 -143
  464. package/indicators/keltner-channels.js +10 -10
  465. package/indicators/keltner-channels.js.map +1 -1
  466. package/indicators/keltner-channels.src.js +164 -118
  467. package/indicators/klinger.js +12 -13
  468. package/indicators/klinger.js.map +1 -1
  469. package/indicators/klinger.src.js +161 -184
  470. package/indicators/macd.js +2 -2
  471. package/indicators/macd.js.map +1 -1
  472. package/indicators/macd.src.js +2 -3
  473. package/indicators/mfi.js +1 -1
  474. package/indicators/mfi.src.js +1 -1
  475. package/indicators/momentum.js +1 -1
  476. package/indicators/momentum.src.js +1 -1
  477. package/indicators/natr.js +3 -3
  478. package/indicators/natr.js.map +1 -1
  479. package/indicators/natr.src.js +2 -4
  480. package/indicators/obv.js +1 -1
  481. package/indicators/obv.src.js +1 -1
  482. package/indicators/pivot-points.js +1 -1
  483. package/indicators/pivot-points.src.js +1 -1
  484. package/indicators/ppo.js +5 -6
  485. package/indicators/ppo.js.map +1 -1
  486. package/indicators/ppo.src.js +3 -75
  487. package/indicators/price-channel.js +9 -9
  488. package/indicators/price-channel.js.map +1 -1
  489. package/indicators/price-channel.src.js +207 -168
  490. package/indicators/price-envelopes.js +1 -1
  491. package/indicators/price-envelopes.src.js +1 -1
  492. package/indicators/psar.js +1 -1
  493. package/indicators/psar.src.js +1 -1
  494. package/indicators/regressions.js +1 -1
  495. package/indicators/regressions.src.js +9 -9
  496. package/indicators/roc.js +1 -1
  497. package/indicators/roc.src.js +1 -1
  498. package/indicators/rsi.js +1 -1
  499. package/indicators/rsi.src.js +1 -1
  500. package/indicators/slow-stochastic.js +5 -6
  501. package/indicators/slow-stochastic.js.map +1 -1
  502. package/indicators/slow-stochastic.src.js +2 -72
  503. package/indicators/stochastic.js +10 -10
  504. package/indicators/stochastic.js.map +1 -1
  505. package/indicators/stochastic.src.js +209 -164
  506. package/indicators/supertrend.js +10 -10
  507. package/indicators/supertrend.js.map +1 -1
  508. package/indicators/supertrend.src.js +6 -7
  509. package/indicators/tema.js +6 -7
  510. package/indicators/tema.js.map +1 -1
  511. package/indicators/tema.src.js +28 -75
  512. package/indicators/trendline.js +1 -1
  513. package/indicators/trendline.src.js +1 -1
  514. package/indicators/trix.js +4 -5
  515. package/indicators/trix.js.map +1 -1
  516. package/indicators/trix.src.js +8 -76
  517. package/indicators/volume-by-price.js +16 -16
  518. package/indicators/volume-by-price.js.map +1 -1
  519. package/indicators/volume-by-price.src.js +24 -7
  520. package/indicators/vwap.js +1 -1
  521. package/indicators/vwap.src.js +1 -1
  522. package/indicators/williams-r.js +5 -6
  523. package/indicators/williams-r.js.map +1 -1
  524. package/indicators/williams-r.src.js +41 -51
  525. package/indicators/wma.js +1 -1
  526. package/indicators/wma.src.js +1 -1
  527. package/indicators/zigzag.js +1 -1
  528. package/indicators/zigzag.src.js +1 -1
  529. package/modules/accessibility.d.ts +5 -0
  530. package/modules/accessibility.js +237 -216
  531. package/modules/accessibility.js.map +1 -1
  532. package/modules/accessibility.src.d.ts +5 -0
  533. package/modules/accessibility.src.js +7400 -6078
  534. package/modules/annotations-advanced.d.ts +30 -0
  535. package/modules/annotations-advanced.js +192 -165
  536. package/modules/annotations-advanced.js.map +1 -1
  537. package/modules/annotations-advanced.src.d.ts +30 -0
  538. package/modules/annotations-advanced.src.js +1604 -332
  539. package/modules/annotations.js +121 -106
  540. package/modules/annotations.js.map +1 -1
  541. package/modules/annotations.src.js +981 -238
  542. package/modules/arrow-symbols.js +1 -1
  543. package/modules/arrow-symbols.src.js +1 -1
  544. package/modules/boost-canvas.js +15 -15
  545. package/modules/boost-canvas.js.map +1 -1
  546. package/modules/boost-canvas.src.js +3 -3
  547. package/modules/boost.js +79 -79
  548. package/modules/boost.js.map +1 -1
  549. package/modules/boost.src.js +10 -9
  550. package/modules/broken-axis.js +1 -1
  551. package/modules/broken-axis.src.js +1 -1
  552. package/modules/bullet.js +1 -1
  553. package/modules/bullet.src.js +1 -1
  554. package/modules/coloraxis.js +24 -24
  555. package/modules/coloraxis.js.map +1 -1
  556. package/modules/coloraxis.src.js +69 -98
  557. package/modules/current-date-indicator.js +4 -4
  558. package/modules/current-date-indicator.js.map +1 -1
  559. package/modules/current-date-indicator.src.js +4 -4
  560. package/modules/cylinder.js +1 -1
  561. package/modules/cylinder.src.js +1 -1
  562. package/modules/data.js +32 -32
  563. package/modules/data.js.map +1 -1
  564. package/modules/data.src.js +85 -88
  565. package/modules/datagrouping.js +20 -20
  566. package/modules/datagrouping.js.map +1 -1
  567. package/modules/datagrouping.src.js +35 -19
  568. package/modules/debugger.js +3 -3
  569. package/modules/debugger.js.map +1 -1
  570. package/modules/debugger.src.js +3 -3
  571. package/modules/dependency-wheel.js +11 -11
  572. package/modules/dependency-wheel.js.map +1 -1
  573. package/modules/dependency-wheel.src.js +4 -7
  574. package/modules/dotplot.js +1 -1
  575. package/modules/dotplot.src.js +1 -1
  576. package/modules/drag-panes.js +8 -8
  577. package/modules/drag-panes.js.map +1 -1
  578. package/modules/drag-panes.src.js +3 -3
  579. package/modules/draggable-points.js +1 -1
  580. package/modules/draggable-points.src.js +1 -1
  581. package/modules/drilldown.js +24 -24
  582. package/modules/drilldown.js.map +1 -1
  583. package/modules/drilldown.src.js +4 -4
  584. package/modules/dumbbell.js +17 -17
  585. package/modules/dumbbell.js.map +1 -1
  586. package/modules/dumbbell.src.js +4 -4
  587. package/modules/export-data.js +1 -1
  588. package/modules/export-data.js.map +1 -1
  589. package/modules/export-data.src.js +3 -3
  590. package/modules/exporting.js +39 -38
  591. package/modules/exporting.js.map +1 -1
  592. package/modules/exporting.src.js +102 -72
  593. package/modules/full-screen.js +1 -1
  594. package/modules/full-screen.src.js +1 -1
  595. package/modules/funnel.js +12 -12
  596. package/modules/funnel.js.map +1 -1
  597. package/modules/funnel.src.js +9 -6
  598. package/modules/funnel3d.js +1 -1
  599. package/modules/funnel3d.src.js +1 -1
  600. package/modules/gantt.js +217 -218
  601. package/modules/gantt.js.map +1 -1
  602. package/modules/gantt.src.js +167 -152
  603. package/modules/grid-axis.js +1 -1
  604. package/modules/grid-axis.src.js +1 -1
  605. package/modules/heatmap.js +39 -39
  606. package/modules/heatmap.js.map +1 -1
  607. package/modules/heatmap.src.js +177 -162
  608. package/modules/heikinashi.js +1 -1
  609. package/modules/heikinashi.src.js +4 -4
  610. package/modules/histogram-bellcurve.js +13 -13
  611. package/modules/histogram-bellcurve.js.map +1 -1
  612. package/modules/histogram-bellcurve.src.js +91 -86
  613. package/modules/hollowcandlestick.js +9 -9
  614. package/modules/hollowcandlestick.js.map +1 -1
  615. package/modules/hollowcandlestick.src.js +37 -37
  616. package/modules/item-series.js +1 -1
  617. package/modules/item-series.src.js +1 -1
  618. package/modules/lollipop.js +1 -1
  619. package/modules/lollipop.src.js +1 -1
  620. package/modules/map.d.ts +136 -14
  621. package/modules/map.js +144 -122
  622. package/modules/map.js.map +1 -1
  623. package/modules/map.src.d.ts +136 -14
  624. package/modules/map.src.js +2227 -1039
  625. package/modules/marker-clusters.js +36 -36
  626. package/modules/marker-clusters.js.map +1 -1
  627. package/modules/marker-clusters.src.js +173 -142
  628. package/modules/networkgraph.d.ts +12 -1
  629. package/modules/networkgraph.js +49 -49
  630. package/modules/networkgraph.js.map +1 -1
  631. package/modules/networkgraph.src.d.ts +12 -1
  632. package/modules/networkgraph.src.js +91 -43
  633. package/modules/no-data-to-display.js +5 -5
  634. package/modules/no-data-to-display.js.map +1 -1
  635. package/modules/no-data-to-display.src.js +3 -3
  636. package/modules/offline-exporting.js +18 -17
  637. package/modules/offline-exporting.js.map +1 -1
  638. package/modules/offline-exporting.src.js +14 -14
  639. package/modules/oldie-polyfills.js +1 -1
  640. package/modules/oldie-polyfills.src.js +1 -1
  641. package/modules/oldie.js +26 -26
  642. package/modules/oldie.js.map +1 -1
  643. package/modules/oldie.src.js +4 -4
  644. package/modules/organization.js +13 -13
  645. package/modules/organization.js.map +1 -1
  646. package/modules/organization.src.js +4 -4
  647. package/modules/overlapping-datalabels.js +1 -1
  648. package/modules/overlapping-datalabels.src.js +1 -1
  649. package/modules/parallel-coordinates.js +1 -1
  650. package/modules/parallel-coordinates.src.js +1 -1
  651. package/modules/pareto.js +7 -7
  652. package/modules/pareto.js.map +1 -1
  653. package/modules/pareto.src.js +89 -78
  654. package/modules/pathfinder.js +1 -1
  655. package/modules/pathfinder.src.js +1 -1
  656. package/modules/pattern-fill.js +1 -1
  657. package/modules/pattern-fill.src.js +1 -1
  658. package/modules/price-indicator.js +1 -1
  659. package/modules/price-indicator.src.js +1 -1
  660. package/modules/pyramid3d.js +1 -1
  661. package/modules/pyramid3d.src.js +1 -1
  662. package/modules/sankey.d.ts +12 -1
  663. package/modules/sankey.js +29 -29
  664. package/modules/sankey.js.map +1 -1
  665. package/modules/sankey.src.d.ts +12 -1
  666. package/modules/sankey.src.js +300 -176
  667. package/modules/series-label.js +1 -1
  668. package/modules/series-label.src.js +1 -1
  669. package/modules/solid-gauge.js +1 -1
  670. package/modules/solid-gauge.src.js +1 -1
  671. package/modules/sonification.js +59 -55
  672. package/modules/sonification.js.map +1 -1
  673. package/modules/sonification.src.js +3034 -2553
  674. package/modules/static-scale.js +1 -1
  675. package/modules/static-scale.src.js +1 -1
  676. package/modules/stock-tools.js +178 -163
  677. package/modules/stock-tools.js.map +1 -1
  678. package/modules/stock-tools.src.js +1028 -144
  679. package/modules/stock.d.ts +39 -6
  680. package/modules/stock.js +204 -196
  681. package/modules/stock.js.map +1 -1
  682. package/modules/stock.src.d.ts +39 -6
  683. package/modules/stock.src.js +1667 -1061
  684. package/modules/streamgraph.js +1 -1
  685. package/modules/streamgraph.src.js +1 -1
  686. package/modules/sunburst.js +61 -60
  687. package/modules/sunburst.js.map +1 -1
  688. package/modules/sunburst.src.js +329 -266
  689. package/modules/tilemap.js +17 -17
  690. package/modules/tilemap.js.map +1 -1
  691. package/modules/tilemap.src.js +3 -4
  692. package/modules/timeline.js +18 -18
  693. package/modules/timeline.js.map +1 -1
  694. package/modules/timeline.src.js +5 -5
  695. package/modules/treegrid.js +56 -57
  696. package/modules/treegrid.js.map +1 -1
  697. package/modules/treegrid.src.js +126 -120
  698. package/modules/treemap.js +41 -41
  699. package/modules/treemap.js.map +1 -1
  700. package/modules/treemap.src.js +319 -254
  701. package/modules/variable-pie.js +1 -1
  702. package/modules/variable-pie.src.js +1 -1
  703. package/modules/variwide.js +1 -1
  704. package/modules/variwide.src.js +1 -1
  705. package/modules/vector.js +1 -1
  706. package/modules/vector.src.js +1 -1
  707. package/modules/venn.js +31 -31
  708. package/modules/venn.js.map +1 -1
  709. package/modules/venn.src.js +731 -721
  710. package/modules/windbarb.js +15 -15
  711. package/modules/windbarb.js.map +1 -1
  712. package/modules/windbarb.src.js +90 -62
  713. package/modules/wordcloud.js +23 -24
  714. package/modules/wordcloud.js.map +1 -1
  715. package/modules/wordcloud.src.js +897 -949
  716. package/modules/xrange.js +2 -2
  717. package/modules/xrange.js.map +1 -1
  718. package/modules/xrange.src.js +2 -1
  719. package/package.json +1 -1
  720. package/themes/avocado.js +1 -1
  721. package/themes/avocado.src.js +1 -1
  722. package/themes/dark-blue.js +1 -1
  723. package/themes/dark-blue.src.js +1 -1
  724. package/themes/dark-green.js +1 -1
  725. package/themes/dark-green.src.js +1 -1
  726. package/themes/dark-unica.js +1 -1
  727. package/themes/dark-unica.src.js +1 -1
  728. package/themes/gray.js +1 -1
  729. package/themes/gray.src.js +1 -1
  730. package/themes/grid-light.js +1 -1
  731. package/themes/grid-light.src.js +1 -1
  732. package/themes/grid.js +1 -1
  733. package/themes/grid.src.js +1 -1
  734. package/themes/high-contrast-dark.js +1 -1
  735. package/themes/high-contrast-dark.src.js +1 -1
  736. package/themes/high-contrast-light.js +1 -1
  737. package/themes/high-contrast-light.src.js +1 -1
  738. package/themes/sand-signika.js +1 -1
  739. package/themes/sand-signika.src.js +1 -1
  740. package/themes/skies.js +1 -1
  741. package/themes/skies.src.js +1 -1
  742. package/themes/sunset.js +1 -1
  743. package/themes/sunset.src.js +1 -1
  744. package/es-modules/Core/Axis/MapAxis.js +0 -157
  745. package/es-modules/Core/Color/Palette.js +0 -82
  746. package/es-modules/Extensions/Sonification/InstrumentDefinitions.js +0 -32
  747. package/es-modules/Mixins/ColorMapSeries.js +0 -82
  748. package/es-modules/Mixins/ColorSeries.js +0 -77
  749. package/es-modules/Mixins/DerivedSeries.js +0 -118
  750. package/es-modules/Mixins/DrawPoint.js +0 -81
  751. package/es-modules/Mixins/IndicatorRequired.js +0 -56
  752. package/es-modules/Mixins/Navigation.js +0 -54
  753. package/es-modules/Mixins/NelderMead.js +0 -132
  754. package/es-modules/Mixins/Polygon.js +0 -259
  755. package/es-modules/Mixins/ReduceArray.js +0 -54
package/highmaps.js CHANGED
@@ -1,714 +1,735 @@
1
1
  /*
2
- Highmaps JS v9.2.0 (2021-08-18)
2
+ Highmaps JS v9.3.1 (2021-11-05)
3
3
 
4
4
  (c) 2011-2021 Torstein Honsi
5
5
 
6
6
  License: www.highcharts.com/license
7
7
  */
8
- 'use strict';(function(aa,H){"object"===typeof module&&module.exports?(H["default"]=H,module.exports=aa.document?H(aa):H):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return H(aa)}):(aa.Highcharts&&aa.Highcharts.error(16,!0),aa.Highcharts=H(aa))})("undefined"!==typeof window?window:this,function(aa){function H(r,a,y,z){r.hasOwnProperty(a)||(r[a]=z.apply(null,y))}var a={};H(a,"Core/Globals.js",[],function(){var r="undefined"!==typeof aa?aa:"undefined"!==typeof window?
9
- window:{},a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="9.2.0";a.win=r;a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=
10
- /(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var r=!1;if(!a.isMS){var v=Object.defineProperty({},"passive",{get:function(){r=!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",
11
- a.noop,v),a.win.removeEventListener("testPassive",a.noop,v))}return r}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});H(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function r(c,e,b,l){var G=e?"Highcharts error":"Highcharts warning";32===c&&(c=G+": Deprecated member");var f=h(c),q=f?G+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof l){var g="";f&&(q+="?");B(l,function(c,e){g+="\n - "+e+": "+c;
12
- f&&(q+=encodeURI(e)+"="+encodeURI(c))});q+=g}u(a,"displayError",{chart:b,code:c,message:q,params:l},function(){if(e)throw Error(q);n.console&&-1===r.messages.indexOf(q)&&console.warn(q)});r.messages.push(q)}function y(c,e){var G={};B(c,function(b,l){if(C(c[l],!0)&&!c.nodeType&&e[l])b=y(c[l],e[l]),Object.keys(b).length&&(G[l]=b);else if(C(c[l])||c[l]!==e[l])G[l]=c[l]});return G}function z(c,e){return parseInt(c,e||10)}function A(c){return"string"===typeof c}function w(c){c=Object.prototype.toString.call(c);
13
- return"[object Array]"===c||"[object Array Iterator]"===c}function C(c,e){return!!c&&"object"===typeof c&&(!e||!w(c))}function t(c){return C(c)&&"number"===typeof c.nodeType}function m(c){var e=c&&c.constructor;return!(!C(c,!0)||t(c)||!e||!e.name||"Object"===e.name)}function h(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function d(c){return"undefined"!==typeof c&&null!==c}function b(c,e,b){var l;A(e)?d(b)?c.setAttribute(e,b):c&&c.getAttribute&&((l=c.getAttribute(e))||"class"!==
14
- e||(l=c.getAttribute(e+"Name"))):B(e,function(e,b){c.setAttribute(b,e)});return l}function g(c,e){var b;c||(c={});for(b in e)c[b]=e[b];return c}function p(){for(var c=arguments,e=c.length,b=0;b<e;b++){var l=c[b];if("undefined"!==typeof l&&null!==l)return l}}function k(c,e){a.isMS&&!a.svg&&e&&"undefined"!==typeof e.opacity&&(e.filter="alpha(opacity="+100*e.opacity+")");g(c.style,e)}function J(c,e,b,l,n){c=q.createElement(c);e&&g(c,e);n&&k(c,{padding:"0",border:"none",margin:"0"});b&&k(c,b);l&&l.appendChild(c);
15
- return c}function F(c,e){return parseFloat(c.toPrecision(e||14))}function f(c,e,b){var l=a.getStyle||f;if("width"===e)return e=Math.min(c.offsetWidth,c.scrollWidth),b=c.getBoundingClientRect&&c.getBoundingClientRect().width,b<e&&b>=e-1&&(e=Math.floor(b)),Math.max(0,e-(l(c,"padding-left",!0)||0)-(l(c,"padding-right",!0)||0));if("height"===e)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(l(c,"padding-top",!0)||0)-(l(c,"padding-bottom",!0)||0));n.getComputedStyle||r(27,!0);if(c=n.getComputedStyle(c,
16
- void 0)){var q=c.getPropertyValue(e);p(b,"opacity"!==e)&&(q=z(q))}return q}function B(c,e,b){for(var l in c)Object.hasOwnProperty.call(c,l)&&e.call(b||c[l],c[l],l,c)}function x(c,e,b){function l(e,b){var l=c.removeEventListener||a.removeEventListenerPolyfill;l&&l.call(c,e,b,!1)}function q(b){var K;if(c.nodeName){if(e){var N={};N[e]=!0}else N=b;B(N,function(c,e){if(b[e])for(K=b[e].length;K--;)l(e,b[e][K].fn)})}}var n="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(n,"hcEvents")){var f=
17
- n.hcEvents;e?(n=f[e]||[],b?(f[e]=n.filter(function(c){return b!==c.fn}),l(e,b)):(q(f),f[e]=[])):(q(f),delete n.hcEvents)}}function u(c,e,b,l){b=b||{};if(q.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==a)){var n=q.createEvent("Events");n.initEvent(e,!0,!0);b=g(n,b);c.dispatchEvent?c.dispatchEvent(b):c.fireEvent(e,b)}else if(c.hcEvents){b.target||g(b,{preventDefault:function(){b.defaultPrevented=!0},target:c,type:e});n=[];for(var f=c,d=!1;f.hcEvents;)Object.hasOwnProperty.call(f,"hcEvents")&&f.hcEvents[e]&&
18
- (n.length&&(d=!0),n.unshift.apply(n,f.hcEvents[e])),f=Object.getPrototypeOf(f);d&&n.sort(function(c,e){return c.order-e.order});n.forEach(function(e){!1===e.fn.call(c,b)&&b.preventDefault()})}l&&!b.defaultPrevented&&l.call(c,b)}var E=a.charts,q=a.doc,n=a.win;(r||(r={})).messages=[];var e;Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var c=Array.prototype.find?function(c,e){return c.find(e)}:function(c,e){var b,l=c.length;for(b=0;b<l;b++)if(e(c[b],b))return c[b]};B({map:"map",each:"forEach",
19
- grep:"filter",reduce:"reduce",some:"some"},function(c,e){a[e]=function(b){var l;r(32,!1,void 0,(l={},l["Highcharts."+e]="use Array."+c,l));return Array.prototype[c].apply(b,[].slice.call(arguments,1))}});var l,D=function(){var c=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(l?"":c)+e++}}();n.jQuery&&(n.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (a[A(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):E[b(this[0],
20
- "data-highcharts-chart")]});c={addEvent:function(c,e,b,l){void 0===l&&(l={});var n="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(n,"hcEvents")||(n.hcEvents={});n=n.hcEvents;a.Point&&c instanceof a.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var f=c.addEventListener||a.addEventListenerPolyfill;f&&f.call(c,e,b,a.supportsPassiveEvents?{passive:void 0===l.passive?-1!==e.indexOf("touch"):l.passive,capture:!1}:!1);n[e]||(n[e]=[]);n[e].push({fn:b,order:"number"===
21
- typeof l.order?l.order:Infinity});n[e].sort(function(c,e){return c.order-e.order});return function(){x(c,e,b)}},arrayMax:function(c){for(var e=c.length,b=c[0];e--;)c[e]>b&&(b=c[e]);return b},arrayMin:function(c){for(var e=c.length,b=c[0];e--;)c[e]<b&&(b=c[e]);return b},attr:b,clamp:function(c,e,b){return c>e?c<b?c:b:e},cleanRecursively:y,clearTimeout:function(c){d(c)&&clearTimeout(c)},correctFloat:F,createElement:J,css:k,defined:d,destroyObjectProperties:function(c,e){B(c,function(b,l){b&&b!==e&&
22
- b.destroy&&b.destroy();delete c[l]})},discardElement:function(c){e||(e=J("div"));c&&e.appendChild(c);e.innerHTML=""},erase:function(c,e){for(var b=c.length;b--;)if(c[b]===e){c.splice(b,1);break}},error:r,extend:g,extendClass:function(c,e){var b=function(){};b.prototype=new c;g(b.prototype,e);return b},find:c,fireEvent:u,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c,e){for(c=c.split(".");c.length&&d(e);){var b=c.shift();if("undefined"===
23
- typeof b||"__proto__"===b)return;e=e[b];if(!d(e)||"function"===typeof e||"number"===typeof e.nodeType||e===n)return}return e},getStyle:f,inArray:function(c,e,b){r(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return e.indexOf(c,b)},isArray:w,isClass:m,isDOMElement:t,isFunction:function(c){return"function"===typeof c},isNumber:h,isObject:C,isString:A,keys:function(c){r(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,e=arguments,b={},l=function(c,
24
- e){"object"!==typeof c&&(c={});B(e,function(b,K){"__proto__"!==K&&"constructor"!==K&&(!C(b,!0)||m(b)||t(b)?c[K]=e[K]:c[K]=l(c[K]||{},b))});return c};!0===e[0]&&(b=e[1],e=Array.prototype.slice.call(e,2));var n=e.length;for(c=0;c<n;c++)b=l(b,e[c]);return b},normalizeTickInterval:function(c,e,b,l,n){var f=c;b=p(b,1);var q=c/b;e||(e=n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===l&&(1===b?e=e.filter(function(c){return 0===c%1}):.1>=b&&(e=[1/b])));for(l=0;l<e.length&&!(f=e[l],n&&f*b>=c||!n&&q<=(e[l]+
25
- (e[l+1]||e[l]))/2);l++);return f=F(f*b,-Math.round(Math.log(.001)/Math.LN10))},objectEach:B,offset:function(c){var e=q.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:c.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:c.width,height:c.height}},pad:function(c,e,b){return Array((e||2)+1-String(c).replace("-","").length).join(b||"0")+c},pick:p,pInt:z,relativeLength:function(c,
26
- e,b){return/%$/.test(c)?e*parseFloat(c)/100+(b||0):parseFloat(c)},removeEvent:x,splat:function(c){return w(c)?c:[c]},stableSort:function(c,e){var b=c.length,l,n;for(n=0;n<b;n++)c[n].safeI=n;c.sort(function(c,b){l=e(c,b);return 0===l?c.safeI-b.safeI:l});for(n=0;n<b;n++)delete c[n].safeI},syncTimeout:function(c,e,b){if(0<e)return setTimeout(c,e,b);c.call(0,b);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:D,useSerialIds:function(c){return l=
27
- p(c,l)},wrap:function(c,e,b){var l=c[e];c[e]=function(){var c=Array.prototype.slice.call(arguments),e=arguments,n=this;n.proceed=function(){l.apply(n,arguments.length?arguments:e)};c.unshift(l);c=b.apply(this,c);n.proceed=null;return c}}};"";return c});H(a,"Core/Color/Palette.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),backgroundColor:"#ffffff",neutralColor100:"#000000",neutralColor80:"#333333",neutralColor60:"#666666",
28
- neutralColor40:"#999999",neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});H(a,"Core/Chart/ChartDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,
29
- spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:a.highlightColor80,backgroundColor:a.backgroundColor,plotBorderColor:a.neutralColor20}});H(a,"Core/Color/Color.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=v.isNumber,z=v.merge,A=v.pInt;v=function(){function w(r){this.rgba=[NaN,NaN,NaN,NaN];this.input=r;var t=a.Color;if(t&&t!==w)return new t(r);if(!(this instanceof w))return new w(r);
30
- this.init(r)}w.parse=function(a){return a?new w(a):w.None};w.prototype.init=function(a){var t;if("object"===typeof a&&"undefined"!==typeof a.stops)this.stops=a.stops.map(function(b){return new w(b[1])});else if("string"===typeof a){this.input=a=w.names[a.toLowerCase()]||a;if("#"===a.charAt(0)){var m=a.length;var h=parseInt(a.substr(1),16);7===m?t=[(h&16711680)>>16,(h&65280)>>8,h&255,1]:4===m&&(t=[(h&3840)>>4|(h&3840)>>8,(h&240)>>4|h&240,(h&15)<<4|h&15,1])}if(!t)for(h=w.parsers.length;h--&&!t;){var d=
31
- w.parsers[h];(m=d.regex.exec(a))&&(t=d.parse(m))}}t&&(this.rgba=t)};w.prototype.get=function(a){var t=this.input,m=this.rgba;if("object"===typeof t&&"undefined"!==typeof this.stops){var h=z(t);h.stops=[].slice.call(h.stops);this.stops.forEach(function(d,b){h.stops[b]=[h.stops[b][0],d.get(a)]});return h}return m&&r(m[0])?"rgb"===a||!a&&1===m[3]?"rgb("+m[0]+","+m[1]+","+m[2]+")":"a"===a?""+m[3]:"rgba("+m.join(",")+")":t};w.prototype.brighten=function(a){var t=this.rgba;if(this.stops)this.stops.forEach(function(h){h.brighten(a)});
32
- else if(r(a)&&0!==a)for(var m=0;3>m;m++)t[m]+=A(255*a),0>t[m]&&(t[m]=0),255<t[m]&&(t[m]=255);return this};w.prototype.setOpacity=function(a){this.rgba[3]=a;return this};w.prototype.tweenTo=function(a,t){var m=this.rgba,h=a.rgba;if(!r(m[0])||!r(h[0]))return a.input||"none";a=1!==h[3]||1!==m[3];return(a?"rgba(":"rgb(")+Math.round(h[0]+(m[0]-h[0])*(1-t))+","+Math.round(h[1]+(m[1]-h[1])*(1-t))+","+Math.round(h[2]+(m[2]-h[2])*(1-t))+(a?","+(h[3]+(m[3]-h[3])*(1-t)):"")+")"};w.names={white:"#ffffff",black:"#000000"};
33
- w.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[A(a[1]),A(a[2]),A(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[A(a[1]),A(a[2]),A(a[3]),1]}}];w.None=new w("");return w}();"";return v});H(a,"Core/Time.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=a.win,z=v.defined,A=v.error,w=v.extend,C=v.isObject,t=v.merge,
34
- m=v.objectEach,h=v.pad,d=v.pick,b=v.splat,g=v.timeUnits,p=a.isSafari&&r.Intl&&r.Intl.DateTimeFormat.prototype.formatRange,k=a.isSafari&&r.Intl&&!r.Intl.DateTimeFormat.prototype.formatRange;v=function(){function J(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=r.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)}J.prototype.get=function(b,f){if(this.variableTimezone||this.timezoneOffset){var g=f.getTime(),d=g-this.getTimezoneOffset(f);f.setTime(d);b=f["getUTC"+
35
- b]();f.setTime(g);return b}return this.useUTC?f["getUTC"+b]():f["get"+b]()};J.prototype.set=function(b,f,g){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(f)%36E5)return f["setUTC"+b](g);var d=this.getTimezoneOffset(f);d=f.getTime()-d;f.setTime(d);f["setUTC"+b](g);b=this.getTimezoneOffset(f);d=f.getTime()+b;return f.setTime(d)}return this.useUTC||p&&"FullYear"===b?f["setUTC"+b](g):f["set"+b](g)};J.prototype.update=function(b){var f=
36
- d(b&&b.useUTC,!0);this.options=b=t(!0,this.options||{},b);this.Date=b.Date||r.Date||Date;this.timezoneOffset=(this.useUTC=f)&&b.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=f&&!(!b.getTimezoneOffset&&!b.timezone)};J.prototype.makeTime=function(b,f,g,p,u,h){if(this.useUTC){var q=this.Date.UTC.apply(0,arguments);var n=this.getTimezoneOffset(q);q+=n;var e=this.getTimezoneOffset(q);n!==e?q+=e-n:n-36E5!==this.getTimezoneOffset(q-36E5)||k||(q-=36E5)}else q=(new this.Date(b,
37
- f,d(g,1),d(p,0),d(u,0),d(h,0))).getTime();return q};J.prototype.timezoneOffsetFunction=function(){var b=this,f=this.options,g=f.moment||r.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(f.timezone){if(g)return function(b){return 6E4*-g.tz(b,f.timezone).utcOffset()};A(25)}return this.useUTC&&f.getTimezoneOffset?function(b){return 6E4*f.getTimezoneOffset(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};J.prototype.dateFormat=function(b,
38
- f,g){if(!z(f)||isNaN(f))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";b=d(b,"%Y-%m-%d %H:%M:%S");var k=this,u=new this.Date(f),p=this.get("Hours",u),q=this.get("Day",u),n=this.get("Date",u),e=this.get("Month",u),c=this.get("FullYear",u),l=a.defaultOptions.lang,D=l&&l.weekdays,B=l&&l.shortWeekdays;u=w({a:B?B[q]:D[q].substr(0,3),A:D[q],d:h(n),e:h(n,2," "),w:q,b:l.shortMonths[e],B:l.months[e],m:h(e+1),o:e+1,y:c.toString().substr(2,2),Y:c,H:h(p),k:p,I:h(p%12||12),l:p%12||12,M:h(this.get("Minutes",
39
- u)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:h(u.getSeconds()),L:h(Math.floor(f%1E3),3)},a.dateFormats);m(u,function(c,e){for(;-1!==b.indexOf("%"+e);)b=b.replace("%"+e,"function"===typeof c?c.call(k,f):c)});return g?b.substr(0,1).toUpperCase()+b.substr(1):b};J.prototype.resolveDTLFormat=function(g){return C(g,!0)?g:(g=b(g),{main:g[0],from:g[1],to:g[2]})};J.prototype.getTimeTicks=function(b,f,k,p){var u=this,h=[],q={},n=new u.Date(f),e=b.unitRange,c=b.count||1,l;p=d(p,1);if(z(f)){u.set("Milliseconds",n,
40
- e>=g.second?0:c*Math.floor(u.get("Milliseconds",n)/c));e>=g.second&&u.set("Seconds",n,e>=g.minute?0:c*Math.floor(u.get("Seconds",n)/c));e>=g.minute&&u.set("Minutes",n,e>=g.hour?0:c*Math.floor(u.get("Minutes",n)/c));e>=g.hour&&u.set("Hours",n,e>=g.day?0:c*Math.floor(u.get("Hours",n)/c));e>=g.day&&u.set("Date",n,e>=g.month?1:Math.max(1,c*Math.floor(u.get("Date",n)/c)));if(e>=g.month){u.set("Month",n,e>=g.year?0:c*Math.floor(u.get("Month",n)/c));var D=u.get("FullYear",n)}e>=g.year&&u.set("FullYear",
41
- n,D-D%c);e===g.week&&(D=u.get("Day",n),u.set("Date",n,u.get("Date",n)-D+p+(D<p?-7:0)));D=u.get("FullYear",n);p=u.get("Month",n);var B=u.get("Date",n),x=u.get("Hours",n);f=n.getTime();!u.variableTimezone&&u.useUTC||!z(k)||(l=k-f>4*g.month||u.getTimezoneOffset(f)!==u.getTimezoneOffset(k));f=n.getTime();for(n=1;f<k;)h.push(f),f=e===g.year?u.makeTime(D+n*c,0):e===g.month?u.makeTime(D,p+n*c):!l||e!==g.day&&e!==g.week?l&&e===g.hour&&1<c?u.makeTime(D,p,B,x+n*c):f+e*c:u.makeTime(D,p,B+n*c*(e===g.day?1:7)),
42
- n++;h.push(f);e<=g.hour&&1E4>h.length&&h.forEach(function(c){0===c%18E5&&"000000000"===u.dateFormat("%H%M%S%L",c)&&(q[c]="day")})}h.info=w(b,{higherRanks:q,totalRange:e*c});return h};J.prototype.getDateFormat=function(b,f,d,k){var u=this.dateFormat("%m-%d %H:%M:%S.%L",f),p={millisecond:15,second:12,minute:9,hour:6,day:3},q="millisecond";for(n in g){if(b===g.week&&+this.dateFormat("%w",f)===d&&"00:00:00.000"===u.substr(6)){var n="week";break}if(g[n]>b){n=q;break}if(p[n]&&u.substr(p[n])!=="01-01 00:00:00.000".substr(p[n]))break;
43
- "week"!==n&&(q=n)}if(n)var e=this.resolveDTLFormat(k[n]).main;return e};return J}();"";return v});H(a,"Core/DefaultOptions.js",[a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w){v=v.parse;var r=w.merge,t={colors:z.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),
44
- shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:a,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
45
- caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:z.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:z.neutralColor40,borderRadius:0,navigation:{activeColor:z.highlightColor100,inactiveColor:z.neutralColor20},itemStyle:{color:z.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},
46
- itemHoverStyle:{color:z.neutralColor100},itemHiddenStyle:{color:z.neutralColor20},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:z.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:y.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
47
- second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap: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:v(z.neutralColor3).setOpacity(.85).get(),borderWidth:1,
48
- shadow:!0,stickOnContact:!1,style:{color:z.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:z.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};t.chart.styledMode=!1;"";var m=new A(r(t.global,t.time));a={defaultOptions:t,defaultTime:m,getOptions:function(){return t},setOptions:function(h){r(!0,t,h);if(h.time||h.global)y.time?
49
- y.time.update(r(t.global,t.time,h.global,h.time)):y.time=m;return t}};"";return a});H(a,"Core/Animation/Fx.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,y){var r=a.parse,A=v.win,w=y.isNumber,C=y.objectEach;return function(){function a(a,h,d){this.pos=NaN;this.options=h;this.elem=a;this.prop=d}a.prototype.dSetter=function(){var a=this.paths,h=a&&a[0];a=a&&a[1];var d=this.now||0,b=[];if(1!==d&&h&&a)if(h.length===a.length&&1>d)for(var g=0;g<a.length;g++){for(var p=
50
- h[g],k=a[g],J=[],F=0;F<k.length;F++){var f=p[F],B=k[F];w(f)&&w(B)&&("A"!==k[0]||4!==F&&5!==F)?J[F]=f+d*(B-f):J[F]=B}b.push(J)}else b=a;else b=this.toD||[];this.elem.attr("d",b,void 0,!0)};a.prototype.update=function(){var a=this.elem,h=this.prop,d=this.now,b=this.options.step;if(this[h+"Setter"])this[h+"Setter"]();else a.attr?a.element&&a.attr(h,d,null,!0):a.style[h]=d+this.unit;b&&b.call(a,d,this)};a.prototype.run=function(m,h,d){var b=this,g=b.options,p=function(g){return p.stopped?!1:b.step(g)},
51
- k=A.requestAnimationFrame||function(b){setTimeout(b,13)},J=function(){for(var b=0;b<a.timers.length;b++)a.timers[b]()||a.timers.splice(b--,1);a.timers.length&&k(J)};m!==h||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=m,this.end=h,this.unit=d,this.now=this.start,this.pos=0,p.elem=this.elem,p.prop=this.prop,p()&&1===a.timers.push(p)&&k(J)):(delete g.curAnim[this.prop],g.complete&&0===Object.keys(g.curAnim).length&&g.complete.call(this.elem))};a.prototype.step=function(a){var h=
52
- +new Date,d=this.options,b=this.elem,g=d.complete,p=d.duration,k=d.curAnim;if(b.attr&&!b.element)a=!1;else if(a||h>=p+this.startTime){this.now=this.end;this.pos=1;this.update();var J=k[this.prop]=!0;C(k,function(b){!0!==b&&(J=!1)});J&&g&&g.call(b);a=!1}else this.pos=d.easing((h-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,h,d){function b(b,f){for(;b.length<x;){var q=b[0],n=f[x-b.length];n&&"M"===q[0]&&(b[0]="C"===
53
- n[0]?["C",q[1],q[2],q[1],q[2],q[1],q[2]]:["L",q[1],q[2]]);b.unshift(q);J&&(q=b.pop(),b.push(b[b.length-1],q))}}function g(b,f){for(;b.length<x;)if(f=b[Math.floor(b.length/F)-1].slice(),"C"===f[0]&&(f[1]=f[5],f[2]=f[6]),J){var q=b[Math.floor(b.length/F)].slice();b.splice(b.length/2,0,f,q)}else b.push(f)}var p=a.startX,k=a.endX;d=d.slice();var J=a.isArea,F=J?2:1;h=h&&h.slice();if(!h)return[d,d];if(p&&k&&k.length){for(a=0;a<p.length;a++)if(p[a]===k[0]){var f=a;break}else if(p[0]===k[k.length-p.length+
54
- a]){f=a;var B=!0;break}else if(p[p.length-1]===k[k.length-p.length+a]){f=p.length-a;break}"undefined"===typeof f&&(h=[])}if(h.length&&w(f)){var x=d.length+f*F;B?(b(h,d),g(d,h)):(b(d,h),g(h,d))}return[h,d]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,r(this.start).tweenTo(r(this.end),this.pos),null,!0)};a.timers=[];return a}()});H(a,"Core/Animation/AnimationUtilities.js",[a["Core/Animation/Fx.js"],a["Core/Utilities.js"]],
55
- function(a,v){function r(b){return m(b)?h({duration:500,defer:0},b):{duration:b?500:0,defer:0}}function z(b,d){for(var g=a.timers.length;g--;)a.timers[g].elem!==b||d&&d!==a.timers[g].prop||(a.timers[g].stopped=!0)}var A=v.defined,w=v.getStyle,C=v.isArray,t=v.isNumber,m=v.isObject,h=v.merge,d=v.objectEach,b=v.pick;return{animate:function(b,p,k){var g,F="",f,B;if(!m(k)){var x=arguments;k={duration:x[2],easing:x[3],complete:x[4]}}t(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?
56
- k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=h(p);d(p,function(d,h){z(b,h);B=new a(b,k,h);f=void 0;"d"===h&&C(p.d)?(B.paths=B.initPath(b,b.pathArray,p.d),B.toD=p.d,g=0,f=1):b.attr?g=b.attr(h):(g=parseFloat(w(b,h))||0,"opacity"!==h&&(F="px"));f||(f=d);"string"===typeof f&&f.match("px")&&(f=f.replace(/px/g,""));B.run(g,f,F)})},animObject:r,getDeferredAnimation:function(b,d,k){var g=r(d),p=0,f=0;(k?[k]:b.series).forEach(function(b){b=r(b.options.animation);p=d&&A(d.defer)?g.defer:Math.max(p,
57
- b.duration+b.defer);f=Math.min(g.duration,b.duration)});b.renderer.forExport&&(p=0);return{defer:Math.max(0,p-f),duration:Math.min(p,f)}},setAnimation:function(g,d){d.renderer.globalAnimation=b(g,d.options.chart.animation,!0)},stop:z}});H(a,"Core/Renderer/HTML/AST.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=a.SVG_NS,z=v.attr,A=v.createElement,w=v.discardElement,C=v.error,t=v.isString,m=v.objectEach,h=v.splat;try{var d=!!(new DOMParser).parseFromString("","text/html")}catch(b){d=
58
- !1}v=function(){function b(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}b.filterUserAttributes=function(g){m(g,function(d,k){var p=!0;-1===b.allowedAttributes.indexOf(k)&&(p=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(k)&&(p=t(d)&&b.allowedReferences.some(function(b){return 0===d.indexOf(b)}));p||(C("Highcharts warning: Invalid attribute '"+k+"' in config"),delete g[k])});return g};b.setElementHTML=function(d,p){d.innerHTML="";p&&(new b(p)).addToDOM(d)};b.prototype.addToDOM=
59
- function(d){function g(d,p){var k;h(d).forEach(function(f){var d=f.tagName,h=f.textContent?a.doc.createTextNode(f.textContent):void 0;if(d)if("#text"===d)var u=h;else if(-1!==b.allowedTags.indexOf(d)){d=a.doc.createElementNS("svg"===d?r:p.namespaceURI||r,d);var E=f.attributes||{};m(f,function(b,n){"tagName"!==n&&"attributes"!==n&&"children"!==n&&"textContent"!==n&&(E[n]=b)});z(d,b.filterUserAttributes(E));h&&d.appendChild(h);g(f.children||[],d);u=d}else C("Highcharts warning: Invalid tagName '"+d+
60
- "' in config");u&&p.appendChild(u);k=u});return k}return g(this.nodes,d)};b.prototype.parseMarkup=function(b){var g=[];b=b.trim();if(d)b=(new DOMParser).parseFromString(b,"text/html");else{var k=A("div");k.innerHTML=b;b={body:k}}var h=function(b,f){var d=b.nodeName.toLowerCase(),k={tagName:d};if("#text"===d){d=b.textContent||"";if(0===g.length&&/^[\s]*$/.test(d))return;k.textContent=d}if(d=b.attributes){var p={};[].forEach.call(d,function(b){p[b.name]=b.value});k.attributes=p}if(b.childNodes.length){var a=
61
- [];[].forEach.call(b.childNodes,function(b){h(b,a)});a.length&&(k.children=a)}f.push(k)};[].forEach.call(b.body.childNodes,function(b){return h(b,g)});k&&w(k);return g};b.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 x2 y y1 y2 zIndex".split(" ");
62
- b.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");b.allowedTags="a b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");return b}();"";return v});H(a,"Core/FormatUtilities.js",[a["Core/DefaultOptions.js"],
63
- a["Core/Utilities.js"]],function(a,v){function r(h,d,b,g){h=+h||0;d=+d;var p=z.lang,k=(h.toString().split(".")[1]||"").split("e")[0].length,a=h.toString().split("e"),F=d;if(-1===d)d=Math.min(k,20);else if(!C(d))d=2;else if(d&&a[1]&&0>a[1]){var f=d+ +a[1];0<=f?(a[0]=(+a[0]).toExponential(f).split("e")[0],d=f):(a[0]=a[0].split(".")[0]||0,h=20>d?(a[0]*Math.pow(10,a[1])).toFixed(d):0,a[1]=0)}f=(Math.abs(a[1]?a[0]:h)+Math.pow(10,-Math.max(d,k)-1)).toFixed(d);k=String(m(f));var B=3<k.length?k.length%3:
64
- 0;b=t(b,p.decimalPoint);g=t(g,p.thousandsSep);h=(0>h?"-":"")+(B?k.substr(0,B)+g:"");h=0>+a[1]&&!F?"0":h+k.substr(B).replace(/(\d{3})(?=\d)/g,"$1"+g);d&&(h+=b+f.slice(-d));a[1]&&0!==+h&&(h+="e"+a[1]);return h}var z=a.defaultOptions,A=a.defaultTime,w=v.getNestedProperty,C=v.isNumber,t=v.pick,m=v.pInt;return{dateFormat:function(a,d,b){return A.dateFormat(a,d,b)},format:function(a,d,b){var g="{",p=!1,k=/f$/,h=/\.([0-9])/,t=z.lang,f=b&&b.time||A;b=b&&b.numberFormatter||r;for(var B=[];a;){var x=a.indexOf(g);
65
- if(-1===x)break;var u=a.slice(0,x);if(p){u=u.split(":");g=w(u.shift()||"",d);if(u.length&&"number"===typeof g)if(u=u.join(":"),k.test(u)){var E=parseInt((u.match(h)||["","-1"])[1],10);null!==g&&(g=b(g,E,t.decimalPoint,-1<u.indexOf(",")?t.thousandsSep:""))}else g=f.dateFormat(u,g);B.push(g)}else B.push(u);a=a.slice(x+1);g=(p=!p)?"}":"{"}B.push(a);return B.join("")},numberFormat:r}});H(a,"Core/Renderer/RendererUtilities.js",[a["Core/Utilities.js"]],function(a){var r=a.clamp,y=a.pick,z=a.stableSort,
66
- A;(function(a){function w(a,m,h){var d=a,b=d.reducedLen||m,g=function(b,f){return(f.rank||0)-(b.rank||0)},p=function(b,f){return b.target-f.target},k,J=!0,F=[],f=0;for(k=a.length;k--;)f+=a[k].size;if(f>b){z(a,g);for(f=k=0;f<=b;)f+=a[k].size,k++;F=a.splice(k-1,a.length)}z(a,p);for(a=a.map(function(b){return{size:b.size,targets:[b.target],align:y(b.align,.5)}});J;){for(k=a.length;k--;)b=a[k],g=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=r(g-b.size*b.align,0,m-b.size);k=a.length;
67
- for(J=!1;k--;)0<k&&a[k-1].pos+a[k-1].size>a[k].pos&&(a[k-1].size+=a[k].size,a[k-1].targets=a[k-1].targets.concat(a[k].targets),a[k-1].align=.5,a[k-1].pos+a[k-1].size>m&&(a[k-1].pos=m-a[k-1].size),a.splice(k,1),J=!0)}d.push.apply(d,F);k=0;a.some(function(b){var f=0;return(b.targets||[]).some(function(){d[k].pos=b.pos+f;if("undefined"!==typeof h&&Math.abs(d[k].pos-d[k].target)>h)return d.slice(0,k+1).forEach(function(b){return delete b.pos}),d.reducedLen=(d.reducedLen||m)-.1*m,d.reducedLen>.1*m&&w(d,
68
- m,h),!0;f+=d[k].size;k++;return!1})});z(d,p);return d}a.distribute=w})(A||(A={}));return A});H(a,"Core/Renderer/SVG/SVGElement.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w){var r=a.animate,t=a.animObject,m=a.stop,h=z.deg2rad,d=z.doc,b=z.noop,g=z.svg,p=z.SVG_NS,k=z.win,J=w.addEvent,F=w.attr,f=w.createElement,B=w.css,x=w.defined,u=w.erase,E=w.extend,
69
- q=w.fireEvent,n=w.isArray,e=w.isFunction,c=w.isNumber,l=w.isString,D=w.merge,G=w.objectEach,M=w.pick,I=w.pInt,W=w.syncTimeout,S=w.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=p;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(c){c=M(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));
70
- return c};a.prototype._defaultSetter=function(c,e,b){b.setAttribute(e,c)};a.prototype.add=function(c){var e=this.renderer,b=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&e.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var l=this.zIndexSetter();l||(c?c.element:e.box).appendChild(b);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(c,e){var b=e?"":this.attr("class")||"";c=(c||
71
- "").split(/ /g).reduce(function(c,e){-1===b.indexOf(e)&&c.push(e);return c},b?[b]:[]).join(" ");c!==b&&this.attr("class",c);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(c,e,b){var a={},n=this.renderer,f=n.alignedObjects,K,d,q;if(c){if(this.alignOptions=c,this.alignByTranslate=e,!b||l(b))this.alignTo=K=b||"renderer",u(f,this),f.push(this),b=void 0}else c=this.alignOptions,e=this.alignByTranslate,K=this.alignTo;
72
- b=M(b,n[K],"scrollablePlotBox"===K?n.plotBox:void 0,n);K=c.align;var g=c.verticalAlign;n=(b.x||0)+(c.x||0);f=(b.y||0)+(c.y||0);"right"===K?d=1:"center"===K&&(d=2);d&&(n+=(b.width-(c.width||0))/d);a[e?"translateX":"x"]=Math.round(n);"bottom"===g?q=1:"middle"===g&&(q=2);q&&(f+=(b.height-(c.height||0))/q);a[e?"translateY":"y"]=Math.round(f);this[this.placed?"animate":"attr"](a);this.placed=!0;this.alignAttr=a;return this};a.prototype.alignSetter=function(c){var b={left:"start",center:"middle",right:"end"};
73
- b[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",b[c]))};a.prototype.animate=function(c,b,e){var l=this,a=t(M(b,this.renderer.globalAnimation,!0));b=a.defer;M(d.hidden,d.msHidden,d.webkitHidden,!1)&&(a.duration=0);0!==a.duration?(e&&(a.complete=e),W(function(){l.element&&r(l,c,a)},b)):(this.attr(c,void 0,e),G(c,function(c,b){a.step&&a.step.call(this,c,{prop:b,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(c){var b=this.element;-1!==c.indexOf("contrast")&&
74
- (c=c.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var e=c.split(" ");c=e[e.length-1];if((e=e[0])&&"none"!==e&&z.svg){this.fakeTS=!0;this.ySetter=this.xSetter;e=e.replace(/(^[\d\.]+)(.*?)$/g,function(c,b,e){return 2*Number(b)+e});this.removeTextOutline();var l=d.createElementNS(p,"tspan");F(l,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":e,"stroke-linejoin":"round"});[].forEach.call(b.childNodes,function(c){var b=c.cloneNode(!0);b.removeAttribute&&["fill","stroke",
75
- "stroke-width","stroke"].forEach(function(c){return b.removeAttribute(c)});l.appendChild(b)});var a=d.createElementNS(p,"tspan");a.textContent="\u200b";["x","y"].forEach(function(c){var e=b.getAttribute(c);e&&a.setAttribute(c,e)});l.appendChild(a);b.insertBefore(l,b.firstChild)}};a.prototype.attr=function(c,b,e,l){var a=this.element,n=this.symbolCustomAttribs,f,d=this,K,N;if("string"===typeof c&&"undefined"!==typeof b){var q=c;c={};c[q]=b}"string"===typeof c?d=(this[c+"Getter"]||this._defaultGetter).call(this,
76
- c,a):(G(c,function(b,e){K=!1;l||m(this,e);this.symbolName&&-1!==n.indexOf(e)&&(f||(this.symbolAttr(c),f=!0),K=!0);!this.rotation||"x"!==e&&"y"!==e||(this.doTransform=!0);K||(N=this[e+"Setter"]||this._defaultSetter,N.call(this,b,e,a),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(e)&&this.updateShadows(e,b,N))},this),this.afterSetters());e&&e.call(this);return d};a.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+
77
- ")":"none")};a.prototype.crisp=function(c,e){e=e||c.strokeWidth||0;var b=Math.round(e)%2/2;c.x=Math.floor(c.x||this.x||0)+b;c.y=Math.floor(c.y||this.y||0)+b;c.width=Math.floor((c.width||this.width||0)-2*b);c.height=Math.floor((c.height||this.height||0)-2*b);x(c.strokeWidth)&&(c.strokeWidth=e);return c};a.prototype.complexColor=function(c,e,b){var l=this.renderer,a,f,d,K,g,k,p,u,h,B,E=[],F;q(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?f="radialGradient":c.linearGradient&&
78
- (f="linearGradient");if(f){d=c[f];g=l.gradients;k=c.stops;h=b.radialReference;n(d)&&(c[f]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===f&&h&&!x(d.gradientUnits)&&(K=d,d=D(d,l.getRadialAttr(h,K),{gradientUnits:"userSpaceOnUse"}));G(d,function(c,e){"id"!==e&&E.push(e,c)});G(k,function(c){E.push(c)});E=E.join(",");if(g[E])B=g[E].attr("id");else{d.id=B=S();var q=g[E]=l.createElement(f).attr(d).add(l.defs);q.radAttr=K;q.stops=[];k.forEach(function(c){0===c[1].indexOf("rgba")?
79
- (a=y.parse(c[1]),p=a.get("rgb"),u=a.get("a")):(p=c[1],u=1);c=l.createElement("stop").attr({offset:c[0],"stop-color":p,"stop-opacity":u}).add(q);q.stops.push(c)})}F="url("+l.url+"#"+B+")";b.setAttribute(e,F);b.gradient=E;c.toString=function(){return F}}})};a.prototype.css=function(c){var e=this.styles,b={},l=this.element,a=["textOutline","textOverflow","width"],n="",f=!e;c&&c.color&&(c.fill=c.color);e&&G(c,function(c,l){e&&e[l]!==c&&(b[l]=c,f=!0)});if(f){e&&(c=E(e,b));if(c)if(null===c.width||"auto"===
80
- c.width)delete this.textWidth;else if("text"===l.nodeName.toLowerCase()&&c.width)var d=this.textWidth=I(c.width);this.styles=c;d&&!g&&this.renderer.forExport&&delete c.width;if(l.namespaceURI===this.SVG_NS){var q=function(c,e){return"-"+e.toLowerCase()};G(c,function(c,e){-1===a.indexOf(e)&&(n+=e.replace(/([A-Z])/g,q)+":"+c+";")});n&&F(l,"style",n)}else B(l,c);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c&&c.textOutline&&this.applyTextOutline(c.textOutline))}return this};
81
- a.prototype.dashstyleSetter=function(c){var e=this["stroke-width"];"inherit"===e&&(e=1);if(c=c&&c.toLowerCase()){var b=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=b.length;c--;)b[c]=""+I(b[c])*M(e,NaN);c=b.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};a.prototype.destroy=
82
- function(){var c=this,e=c.element||{},b=c.renderer,l=e.ownerSVGElement,a=b.isSVG&&"SPAN"===e.nodeName&&c.parentGroup||void 0;e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null;m(c);if(c.clipPath&&l){var n=c.clipPath;[].forEach.call(l.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(n.element.id)&&c.removeAttribute("clip-path")});c.clipPath=n.destroy()}if(c.stops){for(l=0;l<c.stops.length;l++)c.stops[l].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(e);
83
- for(b.styledMode||c.destroyShadows();a&&a.div&&0===a.div.childNodes.length;)e=a.parentGroup,c.safeRemoveChild(a.div),delete a.div,a=e;c.alignTo&&u(b.alignedObjects,c);G(c,function(e,b){c[b]&&c[b].parentGroup===c&&c[b].destroy&&c[b].destroy();delete c[b]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};a.prototype.destroyTextPath=function(c,e){var b=c.getElementsByTagName("text")[0];if(b){if(b.removeAttribute("dx"),
84
- b.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&b.getElementsByTagName("textPath").length){for(c=this.textPathWrapper.element.childNodes;c.length;)b.appendChild(c[0]);b.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};a.prototype.dSetter=function(c,e,b){n(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),
85
- this.pathArray=c,c=c.reduce(function(c,e,b){return e&&e.join?(b?c+" ":"")+e.join(" "):(e||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[e]!==c&&(b.setAttribute(e,c),this[e]=c)};a.prototype.fadeOut=function(c){var e=this;e.animate({opacity:0},{duration:M(c,150),complete:function(){e.attr({y:-9999}).hide()}})};a.prototype.fillSetter=function(c,e,b){"string"===typeof c?b.setAttribute(e,c):c&&this.complexColor(c,e,b)};a.prototype.getBBox=function(c,b){var l=this.renderer,n=this.element,
86
- f=this.styles,d=this.textStr,q=l.cache,g=l.cacheKeys,k=n.namespaceURI===this.SVG_NS;b=M(b,this.rotation,0);var p=l.styledMode?n&&a.prototype.getStyle.call(n,"font-size"):f&&f.fontSize,D;if(x(d)){var u=d.toString();-1===u.indexOf("<")&&(u=u.replace(/[0-9]/g,"0"));u+=["",b,p,this.textWidth,f&&f.textOverflow,f&&f.fontWeight].join()}u&&!c&&(D=q[u]);if(!D){if(k||l.forExport){try{var G=this.fakeTS&&function(c){var e=n.querySelector(".highcharts-text-outline");e&&B(e,{display:c})};e(G)&&G("none");D=n.getBBox?
87
- E({},n.getBBox()):{width:n.offsetWidth,height:n.offsetHeight};e(G)&&G("")}catch(Y){""}if(!D||0>D.width)D={width:0,height:0}}else D=this.htmlGetBBox();l.isSVG&&(c=D.width,l=D.height,k&&(D.height=l={"11px,17":14,"13px,20":16}[f&&f.fontSize+","+Math.round(l)]||l),b&&(f=b*h,D.width=Math.abs(l*Math.sin(f))+Math.abs(c*Math.cos(f)),D.height=Math.abs(l*Math.cos(f))+Math.abs(c*Math.sin(f))));if(u&&(""===d||0<D.height)){for(;250<g.length;)delete q[g.shift()];q[u]||g.push(u);q[u]=D}}return D};a.prototype.getStyle=
88
- function(c){return k.getComputedStyle(this.element||this,"").getPropertyValue(c)};a.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};a.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};a.prototype.init=function(c,e){this.element="span"===e?f(e):d.createElementNS(this.SVG_NS,e);this.renderer=c;q(this,"afterInit")};a.prototype.invert=function(c){this.inverted=
89
- c;this.updateTransform();return this};a.prototype.on=function(c,e){var b=this.onEvents;if(b[c])b[c]();b[c]=J(this.element,c,e);return this};a.prototype.opacitySetter=function(c,e,b){this.opacity=c=Number(Number(c).toFixed(3));b.setAttribute(e,c)};a.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(l(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};a.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");
90
- c&&this.safeRemoveChild(c)};a.prototype.safeRemoveChild=function(c){var e=c.parentNode;e&&e.removeChild(c)};a.prototype.setRadialReference=function(c){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(c,e.radAttr));return this};a.prototype.setTextPath=function(e,l){var a=this.element,f=this.text?this.text.element:a,n={textAnchor:"text-anchor"},d=!1,q=this.textPathWrapper,g=!q;l=D(!0,{enabled:!0,
91
- attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},l);var k=v.filterUserAttributes(l.attributes);if(e&&l&&l.enabled){q&&null===q.element.parentNode?(g=!0,q=q.destroy()):q&&this.removeTextOutline.call(q.parentGroup);this.options&&this.options.padding&&(k.dx=-this.options.padding);q||(this.textPathWrapper=q=this.renderer.createElement("textPath"),d=!0);var p=q.element;(l=e.element.getAttribute("id"))||e.element.setAttribute("id",l=S());if(g)for(f.setAttribute("y",0),c(k.dx)&&f.setAttribute("x",
92
- -k.dx),e=[].slice.call(f.childNodes),g=0;g<e.length;g++){var u=e[g];u.nodeType!==Node.TEXT_NODE&&"tspan"!==u.nodeName||p.appendChild(u)}d&&q&&q.add({element:f});p.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+l);x(k.dy)&&(p.parentNode.setAttribute("dy",k.dy),delete k.dy);x(k.dx)&&(p.parentNode.setAttribute("dx",k.dx),delete k.dx);G(k,function(c,e){p.setAttribute(n[e]||e,c)});a.removeAttribute("transform");this.removeTextOutline.call(q);this.text&&!this.renderer.styledMode&&
93
- this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=b}else q&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(a,e),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};a.prototype.shadow=function(c,e,b){var l=[],a=this.element,f=this.oldShadowOptions,n={color:A.neutralColor100,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},
94
- d=!1,q;!0===c?q=n:"object"===typeof c&&(q=E(n,c));q&&(q&&f&&G(q,function(c,e){c!==f[e]&&(d=!0)}),d&&this.destroyShadows(),this.oldShadowOptions=q);if(!q)this.destroyShadows();else if(!this.shadows){var g=q.opacity/q.width;var K=this.parentInverted?"translate("+q.offsetY+", "+q.offsetX+")":"translate("+q.offsetX+", "+q.offsetY+")";for(n=1;n<=q.width;n++){var k=a.cloneNode(!1);var D=2*q.width+1-2*n;F(k,{stroke:c.color||A.neutralColor100,"stroke-opacity":g*n,"stroke-width":D,transform:K,fill:"none"});
95
- k.setAttribute("class",(k.getAttribute("class")||"")+" highcharts-shadow");b&&(F(k,"height",Math.max(F(k,"height")-D,0)),k.cutHeight=D);e?e.element.appendChild(k):a.parentNode&&a.parentNode.insertBefore(k,a);l.push(k)}this.shadows=l}return this};a.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};a.prototype.strokeSetter=function(c,e,b){this[e]=c;this.stroke&&this["stroke-width"]?(a.prototype.fillSetter.call(this,this.stroke,"stroke",b),b.setAttribute("stroke-width",
96
- this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===c&&this.hasStroke?(b.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(b.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),e=0;if(c.indexOf("px")===c.length-2)e=I(c);else if(""!==c){var b=d.createElementNS(p,"rect");F(b,{width:c,"stroke-width":0});
97
- this.element.parentNode.appendChild(b);e=b.getBBox().width;b.parentNode.removeChild(b)}return e};a.prototype.symbolAttr=function(c){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){e[b]=M(c[b],e[b])});e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})};a.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};a.prototype.titleSetter=function(c){var e=
98
- this.element,b=e.getElementsByTagName("title")[0]||d.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(b,e.firstChild):e.appendChild(b);b.textContent=String(M(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};a.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};a.prototype.translate=function(c,e){return this.attr({translateX:c,translateY:e})};a.prototype.updateShadows=function(c,e,b){var l=this.shadows;if(l)for(var a=l.length;a--;)b.call(l[a],
99
- "height"===c?Math.max(e-(l[a].cutHeight||0),0):"d"===c?this.d:e,c,l[a])};a.prototype.updateTransform=function(){var c=this.scaleX,e=this.scaleY,b=this.inverted,l=this.rotation,a=this.matrix,n=this.element,f=this.translateX||0,d=this.translateY||0;b&&(f+=this.width,d+=this.height);f=["translate("+f+","+d+")"];x(a)&&f.push("matrix("+a.join(",")+")");b?f.push("rotate(90) scale(-1,1)"):l&&f.push("rotate("+l+" "+M(this.rotationOriginX,n.getAttribute("x"),0)+" "+M(this.rotationOriginY,n.getAttribute("y")||
100
- 0)+")");(x(c)||x(e))&&f.push("scale("+M(c,1)+" "+M(e,1)+")");f.length&&n.setAttribute("transform",f.join(" "))};a.prototype.visibilitySetter=function(c,e,b){"inherit"===c?b.removeAttribute(e):this[e]!==c&&b.setAttribute(e,c);this[e]=c};a.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};a.prototype.zIndexSetter=function(c,e){var b=this.renderer,l=this.parentGroup,a=(l||b).element||b.box,f=this.element;b=a===b.box;var n=
101
- !1;var d=this.added;var q;x(c)?(f.setAttribute("data-z-index",c),c=+c,this[e]===c&&(d=!1)):x(this[e])&&f.removeAttribute("data-z-index");this[e]=c;if(d){(c=this.zIndex)&&l&&(l.handleZ=!0);e=a.childNodes;for(q=e.length-1;0<=q&&!n;q--){l=e[q];d=l.getAttribute("data-z-index");var g=!x(d);if(l!==f)if(0>c&&g&&!b&&!q)a.insertBefore(f,e[q]),n=!0;else if(I(d)<=c||g&&(!x(c)||0<=c))a.insertBefore(f,e[q+1]||null),n=!0}n||(a.insertBefore(f,e[b?3:0]||null),n=!0)}return n};return a}();a.prototype["stroke-widthSetter"]=
102
- a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(c,e){this[e]=c;this.doTransform=!0};"";return a});H(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var r;(function(r){r.rendererTypes={};var v;
103
- r.getRendererType=function(a){void 0===a&&(a=v);return r.rendererTypes[a]||r.rendererTypes[v]};r.registerRendererType=function(z,w,C){r.rendererTypes[z]=w;if(!v||C)v=z,a.Renderer=w}})(r||(r={}));return r});H(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&
104
- (b[d]=a[d])};return a(d,b)};return function(d,b){function g(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),z=v.defined,A=v.extend,w=v.isNumber,C=v.merge,t=v.pick,m=v.removeEvent;return function(h){function d(b,a,p,k,m,F,f,B,x,u){var g=h.call(this)||this;g.paddingLeftSetter=g.paddingSetter;g.paddingRightSetter=g.paddingSetter;g.init(b,"g");g.textStr=a;g.x=p;g.y=k;g.anchorX=F;g.anchorY=f;g.baseline=x;g.className=u;g.addClass("button"===u?"highcharts-no-tooltip":
105
- "highcharts-label");u&&g.addClass("highcharts-"+u);g.text=b.text(void 0,0,0,B).attr({zIndex:1});var q;"string"===typeof m&&((q=/^url\((.*?)\)$/.test(m))||g.renderer.symbols[m])&&(g.symbolKey=m);g.bBox=d.emptyBBox;g.padding=3;g.baselineOffset=0;g.needsBox=b.styledMode||q;g.deferredAttr={};g.alignFactor=0;return g}r(d,h);d.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&w(this.xSetting)&&this.attr({x:this.xSetting}))};d.prototype.anchorXSetter=
106
- function(b,a){this.anchorX=b;this.boxAttr(a,Math.round(b)-this.getCrispAdjust()-this.xSetting)};d.prototype.anchorYSetter=function(b,a){this.anchorY=b;this.boxAttr(a,b-this.ySetting)};d.prototype.boxAttr=function(b,a){this.box?this.box.attr(b,a):this.deferredAttr[b]=a};d.prototype.css=function(b){if(b){var g={};b=C(b);d.textProps.forEach(function(a){"undefined"!==typeof b[a]&&(g[a]=b[a],delete b[a])});this.text.css(g);var p="width"in g;"fontSize"in g||"fontWeight"in g?this.updateTextPadding():p&&
107
- this.updateBoxSize()}return a.prototype.css.call(this,b)};d.prototype.destroy=function(){m(this.element,"mouseenter");m(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};d.prototype.fillSetter=function(b,a){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(a,b)};d.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,a=t(this.paddingLeft,b);return{width:this.width,
108
- height:this.height,x:this.bBox.x-a,y:this.bBox.y-b}};d.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};d.prototype.heightSetter=function(b){this.heightSetting=b};d.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:z(b)?b:"",x:this.x,y:this.y});this.box&&z(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};d.prototype.paddingSetter=
109
- function(b,a){w(b)?b!==this[a]&&(this[a]=b,this.updateTextPadding()):this[a]=void 0};d.prototype.rSetter=function(b,a){this.boxAttr(a,b)};d.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(b));return this};d.prototype.strokeSetter=function(b,a){this.stroke=b;this.boxAttr(a,b)};d.prototype["stroke-widthSetter"]=function(b,a){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(a,b)};d.prototype["text-alignSetter"]=function(b){this.textAlign=
110
- b};d.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};d.prototype.updateBoxSize=function(){var b=this.text.element.style,a={},p=this.padding,k=this.bBox=w(this.widthSetting)&&w(this.heightSetting)&&!this.textAlign||!z(this.text.textStr)?d.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||k.height||0)+2*p;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=p+Math.min((this.text.firstLineMetrics||
111
- b).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(p=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),p.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),p.add(this)),p=this.getCrispAdjust(),a.x=p,a.y=(this.baseline?-this.baselineOffset:0)+p,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(A(a,this.deferredAttr)),
112
- this.deferredAttr={})};d.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,d=t(this.paddingLeft,this.padding);z(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==b.x||a!==b.y)b.attr("x",d),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof a&&b.attr("y",a);b.x=d;b.y=a};d.prototype.widthSetter=function(b){this.widthSetting=
113
- w(b)?b:void 0};d.prototype.getPaddedWidth=function(){var b=this.padding,a=t(this.paddingLeft,b);b=t(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+a+b};d.prototype.xSetter=function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};d.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};d.emptyBBox={width:0,height:0,
114
- x:0,y:0};d.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return d}(a)});H(a,"Core/Renderer/SVG/Symbols.js",[a["Core/Utilities.js"]],function(a){function r(a,m,h,d,b){var g=[];if(b){var p=b.start||0,k=C(b.r,h);h=C(b.r,d||h);var J=(b.end||0)-.001;d=b.innerR;var F=C(b.open,.001>Math.abs((b.end||0)-p-2*Math.PI)),f=Math.cos(p),B=Math.sin(p),x=Math.cos(J),u=Math.sin(J);p=C(b.longArc,.001>J-p-Math.PI?0:1);
115
- g.push(["M",a+k*f,m+h*B],["A",k,h,0,p,C(b.clockwise,1),a+k*x,m+h*u]);A(d)&&g.push(F?["M",a+d*x,m+d*u]:["L",a+d*x,m+d*u],["A",d,d,0,p,A(b.clockwise)?1-b.clockwise:0,a+d*f,m+d*B]);F||g.push(["Z"])}return g}function y(a,m,h,d,b){return b&&b.r?z(a,m,h,d,b):[["M",a,m],["L",a+h,m],["L",a+h,m+d],["L",a,m+d],["Z"]]}function z(a,m,h,d,b){b=b&&b.r||0;return[["M",a+b,m],["L",a+h-b,m],["C",a+h,m,a+h,m,a+h,m+b],["L",a+h,m+d-b],["C",a+h,m+d,a+h,m+d,a+h-b,m+d],["L",a+b,m+d],["C",a,m+d,a,m+d,a,m+d-b],["L",a,m+b],
116
- ["C",a,m,a,m,a+b,m]]}var A=a.defined,w=a.isNumber,C=a.pick;return{arc:r,callout:function(a,m,h,d,b){var g=Math.min(b&&b.r||0,h,d),p=g+6,k=b&&b.anchorX;b=b&&b.anchorY||0;var J=z(a,m,h,d,{r:g});if(!w(k))return J;a+k>=h?b>m+p&&b<m+d-p?J.splice(3,1,["L",a+h,b-6],["L",a+h+6,b],["L",a+h,b+6],["L",a+h,m+d-g]):J.splice(3,1,["L",a+h,d/2],["L",k,b],["L",a+h,d/2],["L",a+h,m+d-g]):0>=a+k?b>m+p&&b<m+d-p?J.splice(7,1,["L",a,b+6],["L",a-6,b],["L",a,b-6],["L",a,m+g]):J.splice(7,1,["L",a,d/2],["L",k,b],["L",a,d/2],
117
- ["L",a,m+g]):b&&b>d&&k>a+p&&k<a+h-p?J.splice(5,1,["L",k+6,m+d],["L",k,m+d+6],["L",k-6,m+d],["L",a+g,m+d]):b&&0>b&&k>a+p&&k<a+h-p&&J.splice(1,1,["L",k-6,m],["L",k,m-6],["L",k+6,m],["L",h-g,m]);return J},circle:function(a,m,h,d){return r(a+h/2,m+d/2,h/2,d/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,m,h,d){return[["M",a+h/2,m],["L",a+h,m+d/2],["L",a+h/2,m+d],["L",a,m+d/2],["Z"]]},rect:y,roundedRect:z,square:y,triangle:function(a,m,h,d){return[["M",a+h/2,m],["L",a+h,m+d],["L",a,
118
- m+d],["Z"]]},"triangle-down":function(a,m,h,d){return[["M",a,m],["L",a+h,m],["L",a+h/2,m+d],["Z"]]}}});H(a,"Core/Renderer/SVG/TextBuilder.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,y){var r=v.doc,A=v.SVG_NS,w=y.attr,C=y.isString,t=y.objectEach,m=y.pick;return function(){function h(a){var b=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=b&&b.lineHeight;this.textOutline=b&&b.textOutline;this.ellipsis=
119
- !(!b||"ellipsis"!==b.textOverflow);this.noWrap=!(!b||"nowrap"!==b.whiteSpace);this.fontSize=b&&b.fontSize}h.prototype.buildSVG=function(){var d=this.svgElement,b=d.element,g=d.renderer,p=m(d.textStr,"").toString(),k=-1!==p.indexOf("<"),h=b.childNodes;g=this.width&&!d.added&&g.box;var F=/<br.*?>/g,f=[p,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(f!==d.textCache){d.textCache=f;delete d.actualWidth;for(f=h.length;f--;)b.removeChild(h[f]);k||this.ellipsis||
120
- this.width||-1!==p.indexOf(" ")&&(!this.noWrap||F.test(p))?""!==p&&(g&&g.appendChild(b),p=new a(p),this.modifyTree(p.nodes),p.addToDOM(d.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&&d.attr("title",this.unescapeEntities(d.textStr||"",["&lt;","&gt;"])),g&&g.removeChild(b)):b.appendChild(r.createTextNode(this.unescapeEntities(p)));C(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var a=this,b=this.svgElement,
121
- g=w(b.element,"x");b.firstLineMetrics=void 0;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(d,f){d.nextSibling&&d.previousSibling&&(0===f&&1===d.previousSibling.nodeType&&(b.firstLineMetrics=b.renderer.fontMetrics(void 0,d.previousSibling)),w(d,{dy:a.getLineHeight(d.nextSibling),x:g}))});var p=this.width||0;if(p){var k=function(d,f){var k=d.textContent||"",h=k.replace(/([^\^])-/g,"$1- ").split(" "),u=!a.noWrap&&(1<h.length||1<b.element.childNodes.length),E=a.getLineHeight(f),
122
- q=0,n=b.actualWidth;if(a.ellipsis)k&&a.truncate(d,k,void 0,0,Math.max(0,p-parseInt(a.fontSize||12,10)),function(e,c){return e.substring(0,c)+"\u2026"});else if(u){k=[];for(u=[];f.firstChild&&f.firstChild!==d;)u.push(f.firstChild),f.removeChild(f.firstChild);for(;h.length;)h.length&&!a.noWrap&&0<q&&(k.push(d.textContent||""),d.textContent=h.join(" ").replace(/- /g,"-")),a.truncate(d,void 0,h,0===q?n||0:0,p,function(e,c){return h.slice(0,c).join(" ").replace(/- /g,"-")}),n=b.actualWidth,q++;u.forEach(function(e){f.insertBefore(e,
123
- d)});k.forEach(function(e){f.insertBefore(r.createTextNode(e),d);e=r.createElementNS(A,"tspan");e.textContent="\u200b";w(e,{dy:E,x:g});f.insertBefore(e,d)})}},h=function(a){[].slice.call(a.childNodes).forEach(function(f){f.nodeType===Node.TEXT_NODE?k(f,a):(-1!==f.className.baseVal.indexOf("highcharts-br")&&(b.actualWidth=0),h(f))})};h(b.element)}};h.prototype.getLineHeight=function(a){var b;a=a.nodeType===Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(b=a&&/(px|em)$/.test(a.style.fontSize)?
124
- a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(b,a||this.svgElement.element).h};h.prototype.modifyTree=function(a){var b=this,d=function(g,k){var h=g.tagName,p=b.renderer.styledMode,f=g.attributes||{};if("b"===h||"strong"===h)p?f["class"]="highcharts-strong":f.style="font-weight:bold;"+(f.style||"");else if("i"===h||"em"===h)p?f["class"]="highcharts-emphasized":f.style="font-style:italic;"+
125
- (f.style||"");C(f.style)&&(f.style=f.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===h&&(f["class"]="highcharts-br",g.textContent="\u200b",(k=a[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,"")));"#text"!==h&&"a"!==h&&(g.tagName="tspan");g.attributes=f;g.children&&g.children.filter(function(b){return"#text"!==b.tagName}).forEach(d)};for(a.forEach(d);a[0]&&"tspan"===a[0].tagName&&!a[0].children;)a.splice(0,1)};h.prototype.truncate=function(a,b,g,h,k,m){var d=this.svgElement,
126
- f=d.renderer,p=d.rotation,x=[],u=g?1:0,E=(b||g||"").length,q=E,n,e=function(c,e){e=e||c;var l=a.parentNode;if(l&&"undefined"===typeof x[e])if(l.getSubStringLength)try{x[e]=h+l.getSubStringLength(0,g?e+1:e)}catch(M){""}else f.getSpanWidth&&(a.textContent=m(b||g,c),x[e]=h+f.getSpanWidth(d,a));return x[e]};d.rotation=0;var c=e(a.textContent.length);if(h+c>k){for(;u<=E;)q=Math.ceil((u+E)/2),g&&(n=m(g,q)),c=e(q,n&&n.length-1),u===E?u=E+1:c>k?E=q-1:u=q;0===E?a.textContent="":b&&E===b.length-1||(a.textContent=
127
- n||m(b||g,q))}g&&g.splice(0,q);d.actualWidth=c;d.rotation=p};h.prototype.unescapeEntities=function(a,b){t(this.renderer.escapes,function(d,h){b&&-1!==b.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),h))});return a};return h}()});H(a,"Core/Renderer/SVG/SVGRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGLabel.js"],a["Core/Renderer/SVG/Symbols.js"],
128
- a["Core/Renderer/SVG/TextBuilder.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t,m,h){var d=y.charts,b=y.deg2rad,g=y.doc,p=y.isFirefox,k=y.isMS,J=y.isWebKit,F=y.noop,f=y.SVG_NS,B=y.symbolSizes,x=y.win,u=h.addEvent,E=h.attr,q=h.createElement,n=h.css,e=h.defined,c=h.destroyObjectProperties,l=h.extend,D=h.isArray,G=h.isNumber,M=h.isObject,I=h.isString,r=h.merge,S=h.pick,R=h.pInt,T=h.uniqueKey,ba;y=function(){function f(c,e,b,a,l,f,n){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=
129
- this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,e,b,a,l,f,n)}f.prototype.init=function(c,e,b,a,l,f,d){var q=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),k=q.element;d||q.css(this.getStyle(a));c.appendChild(k);E(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&E(k,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=k;this.boxWrapper=q;this.alignedObjects=[];this.url=this.getReferenceURL();
130
- this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 9.2.0"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=l;this.styledMode=d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(e,b,!1);var N;p&&c.getBoundingClientRect&&(e=function(){n(c,{left:0,top:0});N=c.getBoundingClientRect();n(c,{left:Math.ceil(N.left)-N.left+"px",top:Math.ceil(N.top)-N.top+"px"})},e(),this.unSubPixelFix=u(x,"resize",e))};f.prototype.definition=
131
- function(c){return(new a([c])).addToDOM(this.defs.element)};f.prototype.getReferenceURL=function(){if((p||J)&&g.getElementsByTagName("base").length){if(!e(ba)){var c=T();c=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+c+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(g.body);n(c,{position:"fixed",
132
- top:0,left:0,zIndex:9E5});var b=g.elementFromPoint(6,6);ba="hitme"===(b&&b.id);g.body.removeChild(c)}if(ba)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};f.prototype.getStyle=function(c){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};f.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};f.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};
133
- f.prototype.destroy=function(){var e=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;e&&(this.defs=e.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};f.prototype.createElement=function(c){var e=new this.Element;e.init(this,c);return e};f.prototype.getRadialAttr=function(c,e){return{cx:c[0]-c[2]/2+(e.cx||0)*c[2],cy:c[1]-c[2]/2+(e.cy||0)*c[2],r:(e.r||0)*c[2]}};f.prototype.buildText=function(c){(new m(c)).buildSVG()};
134
- f.prototype.getContrast=function(c){c=v.parse(c).rgba;c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};f.prototype.button=function(c,e,b,f,n,d,q,g,h,D){var p=this.label(c,e,b,h,void 0,void 0,D,void 0,"button"),K=this.styledMode,N=0,L=n?r(n):{};c=L&&L.style||{};L=a.filterUserAttributes(L);p.attr(r({padding:8,r:2},L));if(!K){L=r({fill:z.neutralColor3,stroke:z.neutralColor20,"stroke-width":1,style:{color:z.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:c},L);var B=
135
- L.style;delete L.style;d=r(L,{fill:z.neutralColor10},a.filterUserAttributes(d||{}));var x=d.style;delete d.style;q=r(L,{fill:z.highlightColor10,style:{color:z.neutralColor100,fontWeight:"bold"}},a.filterUserAttributes(q||{}));var G=q.style;delete q.style;g=r(L,{style:{color:z.neutralColor20}},a.filterUserAttributes(g||{}));var E=g.style;delete g.style}u(p.element,k?"mouseover":"mouseenter",function(){3!==N&&p.setState(1)});u(p.element,k?"mouseout":"mouseleave",function(){3!==N&&p.setState(N)});p.setState=
136
- function(c){1!==c&&(p.state=N=c);p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][c||0]);K||p.attr([L,d,q,g][c||0]).css([B,x,G,E][c||0])};K||p.attr(L).css(l({cursor:"default"},B));return p.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==N&&f.call(p,c)})};f.prototype.crispLine=function(c,b,a){void 0===a&&(a="round");var l=c[0],f=c[1];e(l[1])&&l[1]===f[1]&&(l[1]=f[1]=Math[a](l[1])-
137
- b%2/2);e(l[2])&&l[2]===f[2]&&(l[2]=f[2]=Math[a](l[2])+b%2/2);return c};f.prototype.path=function(c){var e=this.styledMode?{}:{fill:"none"};D(c)?e.d=c:M(c)&&l(e,c);return this.createElement("path").attr(e)};f.prototype.circle=function(c,e,b){c=M(c)?c:"undefined"===typeof c?{}:{x:c,y:e,r:b};e=this.createElement("circle");e.xSetter=e.ySetter=function(c,e,b){b.setAttribute("c"+e,c)};return e.attr(c)};f.prototype.arc=function(c,e,b,a,l,f){M(c)?(a=c,e=a.y,b=a.r,c=a.x):a={innerR:a,start:l,end:f};c=this.symbol("arc",
138
- c,e,b,b,a);c.r=b;return c};f.prototype.rect=function(c,e,b,a,l,f){l=M(c)?c.r:l;var n=this.createElement("rect");c=M(c)?c:"undefined"===typeof c?{}:{x:c,y:e,width:Math.max(b,0),height:Math.max(a,0)};this.styledMode||("undefined"!==typeof f&&(c["stroke-width"]=f,c=n.crisp(c)),c.fill="none");l&&(c.r=l);n.rSetter=function(c,e,b){n.r=c;E(b,{rx:c,ry:c})};n.rGetter=function(){return n.r||0};return n.attr(c)};f.prototype.setSize=function(c,e,b){this.width=c;this.height=e;this.boxWrapper.animate({width:c,
139
- height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:S(b,!0)?void 0:0});this.alignElements()};f.prototype.g=function(c){var e=this.createElement("g");return c?e.attr({"class":"highcharts-"+c}):e};f.prototype.image=function(c,e,b,a,f,n){var d={preserveAspectRatio:"none"},q=function(c,e){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink","href",e):c.setAttribute("hc-svg-href",e)};1<arguments.length&&l(d,{x:e,y:b,width:a,height:f});
140
- var g=this.createElement("image").attr(d);d=function(e){q(g.element,c);n.call(g,e)};if(n){q(g.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var k=new x.Image;u(k,"load",d);k.src=c;k.complete&&d({})}else q(g.element,c);return g};f.prototype.symbol=function(c,b,a,f,k,h){var D=this,u=/^url\((.*?)\)$/,p=u.test(c),K=!p&&(this.symbols[c]?c:"circle"),L=K&&this.symbols[K],N;if(L){"number"===typeof b&&(N=L.call(this.symbols,Math.round(b||0),Math.round(a||0),f||0,k||
141
- 0,h));var x=this.path(N);D.styledMode||x.attr("fill","none");l(x,{symbolName:K||void 0,x:b,y:a,width:f,height:k});h&&l(x,h)}else if(p){var G=c.match(u)[1];var E=x=this.image(G);E.imgwidth=S(B[G]&&B[G].width,h&&h.width);E.imgheight=S(B[G]&&B[G].height,h&&h.height);var m=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(c){E[c+"Setter"]=function(c,b){var a=this["img"+b];this[b]=c;e(a)&&(h&&"within"===h.backgroundSize&&this.width&&this.height&&(a=Math.round(a*
142
- Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(b,a),this.alignByTranslate||(c=((this[b]||0)-a)/2,this.attr("width"===b?{translateX:c}:{translateY:c})))}});e(b)&&E.attr({x:b,y:a});E.isImg=!0;e(E.imgwidth)&&e(E.imgheight)?m(E):(E.attr({width:0,height:0}),q("img",{onload:function(){var c=d[D.chartIndex];0===this.width&&(n(this,{position:"absolute",top:"-999em"}),g.body.appendChild(this));B[G]={width:this.width,height:this.height};E.imgwidth=this.width;
143
- E.imgheight=this.height;E.element&&m(E);this.parentNode&&this.parentNode.removeChild(this);D.imgCount--;if(!D.imgCount&&c&&!c.hasLoaded)c.onload()},src:G}),this.imgCount++)}return x};f.prototype.clipRect=function(c,e,b,a){var l=T()+"-",f=this.createElement("clipPath").attr({id:l}).add(this.defs);c=this.rect(c,e,b,a,0).add(f);c.id=l;c.clipPath=f;c.count=0;return c};f.prototype.text=function(c,b,a,l){var f={};if(l&&(this.allowHTML||!this.forExport))return this.html(c,b,a);f.x=Math.round(b||0);a&&(f.y=
144
- Math.round(a));e(c)&&(f.text=c);c=this.createElement("text").attr(f);if(!l||this.forExport&&!this.allowHTML)c.xSetter=function(c,e,b){for(var a=b.getElementsByTagName("tspan"),l=b.getAttribute(e),f=0,n;f<a.length;f++)n=a[f],n.getAttribute(e)===l&&n.setAttribute(e,c);b.setAttribute(e,c)};return c};f.prototype.fontMetrics=function(c,e){c=!this.styledMode&&/px/.test(c)||!x.getComputedStyle?c||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&w.prototype.getStyle.call(e,"font-size");c=
145
- /px/.test(c)?R(c):12;e=24>c?c+3:Math.round(1.2*c);return{h:e,b:Math.round(.8*e),f:c}};f.prototype.rotCorr=function(c,e,a){var l=c;e&&a&&(l=Math.max(l*Math.cos(e*b),4));return{x:-c/3*Math.sin(e*b),y:l}};f.prototype.pathToSegments=function(c){for(var e=[],b=[],a={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l<c.length;l++)I(b[0])&&G(c[l])&&b.length===a[b[0].toUpperCase()]&&c.splice(l,0,b[0].replace("M","L").replace("m","l")),"string"===typeof c[l]&&(b.length&&e.push(b.slice(0)),b.length=0),b.push(c[l]);
146
- e.push(b.slice(0));return e};f.prototype.label=function(c,e,b,a,l,f,n,d,q){return new C(this,c,e,b,a,l,f,n,d,q)};f.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return f}();l(y.prototype,{Element:w,SVG_NS:f,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:t,draw:F});A.registerRendererType("svg",y,!0);"";return y});H(a,"Core/Renderer/HTML/HTMLElement.js",[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],
147
- function(a,v,y){var r=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var f in a)a.hasOwnProperty(f)&&(b[f]=a[f])};return b(a,d)};return function(a,d){function g(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),A=a.isFirefox,w=a.isMS,C=a.isWebKit,t=a.win,m=y.css,h=y.defined,d=y.extend,b=y.pick,g=y.pInt;return function(a){function k(){return null!==
148
- a&&a.apply(this,arguments)||this}r(k,a);k.compose=function(b){if(-1===k.composedClasses.indexOf(b)){k.composedClasses.push(b);var a=k.prototype,f=b.prototype;f.getSpanCorrection=a.getSpanCorrection;f.htmlCss=a.htmlCss;f.htmlGetBBox=a.htmlGetBBox;f.htmlUpdateTransform=a.htmlUpdateTransform;f.setSpanRotation=a.setSpanRotation}return b};k.prototype.getSpanCorrection=function(b,a,f){this.xCorr=-b*f;this.yCorr=-a};k.prototype.htmlCss=function(a){var g="SPAN"===this.element.tagName&&a&&"width"in a,f=b(g&&
149
- a.width,void 0);if(g){delete a.width;this.textWidth=f;var k=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=d(this.styles,a);m(this.element,a);k&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var b=this.renderer,a=this.element,f=this.translateX||0,d=this.translateY||0,k=this.x||
150
- 0,u=this.y||0,p=this.textAlign||"left",q={left:0,center:.5,right:1}[p],n=this.styles;n=n&&n.whiteSpace;m(a,{marginLeft:f,marginTop:d});!b.styledMode&&this.shadows&&this.shadows.forEach(function(c){m(c,{marginLeft:f+1,marginTop:d+1})});this.inverted&&[].forEach.call(a.childNodes,function(c){b.invertChild(c,a)});if("SPAN"===a.tagName){var e=this.rotation,c=this.textWidth&&g(this.textWidth),l=[e,p,a.innerHTML,this.textWidth,this.textAlign].join(),D=void 0;(D=c!==this.oldTextWidth)&&!(D=c>this.oldTextWidth)&&
151
- ((D=this.textPxLength)||(m(a,{width:"",whiteSpace:n||"nowrap"}),D=a.offsetWidth),D=D>c);D&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(m(a,{width:c+"px",display:"block",whiteSpace:n||"normal"}),this.oldTextWidth=c,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;l!==this.cTT&&(D=b.fontMetrics(a.style.fontSize,a).b,!h(e)||e===(this.oldRotation||0)&&p===this.oldAlign||this.setSpanRotation(e,q,D),this.getSpanCorrection(!h(e)&&this.textPxLength||a.offsetWidth,
152
- D,q,e,p));m(a,{left:k+(this.xCorr||0)+"px",top:u+(this.yCorr||0)+"px"});this.cTT=l;this.oldRotation=e;this.oldAlign=p}}else this.alignOnAdd=!0};k.prototype.setSpanRotation=function(b,a,f){var d={},g=w&&!/Edge/.test(t.navigator.userAgent)?"-ms-transform":C?"-webkit-transform":A?"MozTransform":t.opera?"-o-transform":void 0;g&&(d[g]=d.transform="rotate("+b+"deg)",d[g+(A?"Origin":"-origin")]=d.transformOrigin=100*a+"% "+f+"px",m(this.element,d))};k.composedClasses=[];return k}(v)});H(a,"Core/Renderer/HTML/HTMLRenderer.js",
153
- [a["Core/Renderer/HTML/AST.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,b)};return function(d,b){function g(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),
154
- w=z.attr,C=z.createElement,t=z.extend,m=z.pick;return function(h){function d(){return null!==h&&h.apply(this,arguments)||this}r(d,h);d.compose=function(b){-1===d.composedClasses.indexOf(b)&&(d.composedClasses.push(b),b.prototype.html=d.prototype.html);return b};d.prototype.html=function(b,d,h){var g=this.createElement("span"),p=g.element,F=g.renderer,f=F.isSVG,B=function(b,a){["opacity","visibility"].forEach(function(f){b[f+"Setter"]=function(d,n,e){var c=b.div?b.div.style:a;v.prototype[f+"Setter"].call(this,
155
- d,n,e);c&&(c[n]=d)}});b.addedSetters=!0};g.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,m(b,"")),this.textStr=b,g.doTransform=!0)};f&&B(g,g.element.style);g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(b,a){"align"===a?g.alignValue=g.textAlign=b:g[a]=b;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};g.attr({text:b,x:Math.round(d),y:Math.round(h)}).css({position:"absolute"});
156
- F.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p.style.whiteSpace="nowrap";g.css=g.htmlCss;f&&(g.add=function(b){var a=F.box.parentNode,f=[];if(this.parentGroup=b){var d=b.div;if(!d){for(;b;)f.push(b),b=b.parentGroup;f.reverse().forEach(function(b){function e(c,e){b[e]=c;"translateX"===e?n.left=c+"px":n.top=c+"px";b.doTransform=!0}var c=w(b.element,"class"),l=b.styles||{};d=b.div=b.div||C("div",c?{className:c}:void 0,{position:"absolute",left:(b.translateX||0)+
157
- "px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:l.cursor,pointerEvents:l.pointerEvents,visibility:b.visibility},d||a);var n=d.style;t(b,{classSetter:function(c){return function(e){this.element.setAttribute("class",e);c.className=e}}(d),on:function(){f[0].div&&g.on.apply({element:f[0].div,onEvents:b.onEvents},arguments);return b},translateXSetter:e,translateYSetter:e});b.addedSetters||B(b)})}}else d=a;d.appendChild(p);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});
158
- return g};d.composedClasses=[];return d}(y)});H(a,"Core/Axis/AxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){var r;(function(r){r.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",
159
- gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:a.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,
160
- startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:a.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:a.neutralColor5,minorGridLineWidth:1,minorTickColor:a.neutralColor40,lineColor:a.highlightColor20,lineWidth:1,gridLineColor:a.neutralColor10,gridLineWidth:void 0,tickColor:a.highlightColor20};r.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,
161
- minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:a.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};r.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};r.defaultRightAxisOptions={labels:{x:15},
162
- title:{rotation:90}};r.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};r.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(r||(r={}));return r});H(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,y=a.isFunction,z=a.objectEach,A=a.removeEvent;return{registerEventOptions:function(a,C){a.eventOptions=a.eventOptions||{};z(C.events,function(t,m){a.eventOptions[m]!==t&&(a.eventOptions[m]&&(A(a,m,a.eventOptions[m]),
163
- delete a.eventOptions[m]),y(t)&&(a.eventOptions[m]=t,r(a,m,t)))})}}});H(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,y){var r=v.deg2rad,A=y.clamp,w=y.correctFloat,C=y.defined,t=y.destroyObjectProperties,m=y.extend,h=y.fireEvent,d=y.isNumber,b=y.merge,g=y.objectEach,p=y.pick;v=function(){function k(b,a,f,d,g){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=a;this.type=f||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;
164
- this.options=this.parameters.options;h(this,"init");f||d||this.addLabel()}k.prototype.addLabel=function(){var b=this,g=b.axis,f=g.options,k=g.chart,x=g.categories,u=g.logarithmic,E=g.names,q=b.pos,n=p(b.options&&b.options.labels,f.labels),e=g.tickPositions,c=q===e[0],l=q===e[e.length-1],D=(!n.step||1===n.step)&&1===g.tickInterval;e=e.info;var G=b.label,M;x=this.parameters.category||(x?p(x[q],E[q],q):q);u&&d(x)&&(x=w(u.lin2log(x)));if(g.dateTime)if(e){var I=k.time.resolveDTLFormat(f.dateTimeLabelFormats[!f.grid&&
165
- e.higherRanks[q]||e.unitName]);var r=I.main}else d(x)&&(r=g.dateTime.getXDateFormat(x,f.dateTimeLabelFormats||{}));b.isFirst=c;b.isLast=l;var t={axis:g,chart:k,dateTimeLabelFormat:r,isFirst:c,isLast:l,pos:q,tick:b,tickPositionInfo:e,value:x};h(this,"labelFormat",t);var v=function(c){return n.formatter?n.formatter.call(c,c):n.format?(c.text=g.defaultLabelFormatter.call(c),a.format(n.format,c,k)):g.defaultLabelFormatter.call(c,c)};f=v.call(t,t);var z=I&&I.list;b.shortenLabel=z?function(){for(M=0;M<
166
- z.length;M++)if(m(t,{dateTimeLabelFormat:z[M]}),G.attr({text:v.call(t,t)}),G.getBBox().width<g.getSlotWidth(b)-2*n.padding)return;G.attr({text:""})}:void 0;D&&g._addedPlotLB&&b.moveLabel(f,n);C(G)||b.movedLabel?G&&G.textStr!==f&&!D&&(!G.textWidth||n.style.width||G.styles.width||G.css({width:null}),G.attr({text:f}),G.textPxLength=G.getBBox().width):(b.label=G=b.createLabel({x:0,y:0},f,n),b.rotation=0)};k.prototype.createLabel=function(a,d,f){var g=this.axis,k=g.chart;if(a=C(d)&&f.enabled?k.renderer.text(d,
167
- a.x,a.y,f.useHTML).add(g.labelGroup):null)k.styledMode||a.css(b(f.style)),a.textPxLength=a.getBBox().width;return a};k.prototype.destroy=function(){t(this,this.axis)};k.prototype.getPosition=function(b,a,f,d){var g=this.axis,k=g.chart,p=d&&k.oldChartHeight||k.chartHeight;b={x:b?w(g.translate(a+f,null,null,d)+g.transB):g.left+g.offset+(g.opposite?(d&&k.oldChartWidth||k.chartWidth)-g.right-g.left:0),y:b?p-g.bottom+g.offset-(g.opposite?g.height:0):w(p-g.translate(a+f,null,null,d)-g.transB)};b.y=A(b.y,
168
- -1E5,1E5);h(this,"afterGetPosition",{pos:b});return b};k.prototype.getLabelPosition=function(b,a,f,d,g,k,p,q){var n=this.axis,e=n.transA,c=n.isLinked&&n.linkedParent?n.linkedParent.reversed:n.reversed,l=n.staggerLines,D=n.tickRotCorr||{x:0,y:0},u=d||n.reserveSpaceDefault?0:-n.labelOffset*("center"===n.labelAlign?.5:1),B={},x=g.y;C(x)||(x=0===n.side?f.rotation?-8:-f.getBBox().height:2===n.side?D.y+8:Math.cos(f.rotation*r)*(D.y-f.getBBox(!1,0).height/2));b=b+g.x+u+D.x-(k&&d?k*e*(c?-1:1):0);a=a+x-(k&&
169
- !d?k*e*(c?1:-1):0);l&&(f=p/(q||1)%l,n.opposite&&(f=l-f-1),a+=n.labelOffset/l*f);B.x=b;B.y=Math.round(a);h(this,"afterGetLabelPosition",{pos:B,tickmarkOffset:k,index:p});return B};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=function(b,a,f,d,g,k){return k.crispLine([["M",b,a],["L",b+(g?0:-f),a+(g?f:0)]],d)};k.prototype.handleOverflow=function(b){var a=this.axis,f=a.options.labels,d=b.x,g=a.chart.chartWidth,k=
170
- a.chart.spacing,h=p(a.labelLeft,Math.min(a.pos,k[3]));k=p(a.labelRight,Math.max(a.isRadial?0:a.pos+a.len,g-k[1]));var q=this.label,n=this.rotation,e={left:0,center:.5,right:1}[a.labelAlign||q.attr("align")],c=q.getBBox().width,l=a.getSlotWidth(this),D={},G=l,m=1,I;if(n||"justify"!==f.overflow)0>n&&d-e*c<h?I=Math.round(d/Math.cos(n*r)-h):0<n&&d+e*c>k&&(I=Math.round((g-d)/Math.cos(n*r)));else if(g=d+(1-e)*c,d-e*c<h?G=b.x+G*(1-e)-h:g>k&&(G=k-b.x+G*e,m=-1),G=Math.min(l,G),G<l&&"center"===a.labelAlign&&
171
- (b.x+=m*(l-G-e*(l-Math.min(c,G)))),c>G||a.autoRotation&&(q.styles||{}).width)I=G;I&&(this.shortenLabel?this.shortenLabel():(D.width=Math.floor(I)+"px",(f.style||{}).textOverflow||(D.textOverflow="ellipsis"),q.css(D)))};k.prototype.moveLabel=function(b,a){var f=this,d=f.label,k=f.axis,h=k.reversed,p=!1;d&&d.textStr===b?(f.movedLabel=d,p=!0,delete f.label):g(k.ticks,function(a){p||a.isNew||a===f||!a.label||a.label.textStr!==b||(f.movedLabel=a.label,p=!0,a.labelPos=f.movedLabel.xy,delete a.label)});
172
- if(!p&&(f.labelPos||d)){var q=f.labelPos||d.xy;d=k.horiz?h?0:k.width+k.left:q.x;k=k.horiz?q.y:h?k.width+k.left:0;f.movedLabel=f.createLabel({x:d,y:k},b,a);f.movedLabel&&f.movedLabel.attr({opacity:0})}};k.prototype.render=function(b,a,f){var d=this.axis,g=d.horiz,k=this.pos,m=p(this.tickmarkOffset,d.tickmarkOffset);k=this.getPosition(g,k,m,a);m=k.x;var q=k.y;d=g&&m===d.pos+d.len||!g&&q===d.pos?-1:1;g=p(f,this.label&&this.label.newOpacity,1);f=p(f,1);this.isActive=!0;this.renderGridLine(a,f,d);this.renderMark(k,
173
- f,d);this.renderLabel(k,a,g,b);this.isNew=!1;h(this,"afterRender")};k.prototype.renderGridLine=function(b,a,f){var d=this.axis,g=d.options,k={},h=this.pos,q=this.type,n=p(this.tickmarkOffset,d.tickmarkOffset),e=d.chart.renderer,c=this.gridLine,l=g.gridLineWidth,D=g.gridLineColor,G=g.gridLineDashStyle;"minor"===this.type&&(l=g.minorGridLineWidth,D=g.minorGridLineColor,G=g.minorGridLineDashStyle);c||(d.chart.styledMode||(k.stroke=D,k["stroke-width"]=l||0,k.dashstyle=G),q||(k.zIndex=1),b&&(a=0),this.gridLine=
174
- c=e.path().attr(k).addClass("highcharts-"+(q?q+"-":"")+"grid-line").add(d.gridGroup));if(c&&(f=d.getPlotLinePath({value:h+n,lineWidth:c.strokeWidth()*f,force:"pass",old:b})))c[b||this.isNew?"attr":"animate"]({d:f,opacity:a})};k.prototype.renderMark=function(b,a,f){var d=this.axis,g=d.options,k=d.chart.renderer,h=this.type,q=d.tickSize(h?h+"Tick":"tick"),n=b.x;b=b.y;var e=p(g["minor"!==h?"tickWidth":"minorTickWidth"],!h&&d.isXAxis?1:0);g=g["minor"!==h?"tickColor":"minorTickColor"];var c=this.mark,
175
- l=!c;q&&(d.opposite&&(q[0]=-q[0]),c||(this.mark=c=k.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(d.axisGroup),d.chart.styledMode||c.attr({stroke:g,"stroke-width":e})),c[l?"attr":"animate"]({d:this.getMarkPath(n,b,q[0],c.strokeWidth()*f,d.horiz,k),opacity:a}))};k.prototype.renderLabel=function(b,a,f,g){var k=this.axis,h=k.horiz,m=k.options,q=this.label,n=m.labels,e=n.step;k=p(this.tickmarkOffset,k.tickmarkOffset);var c=b.x;b=b.y;var l=!0;q&&d(c)&&(q.xy=b=this.getLabelPosition(c,b,q,h,n,k,
176
- g,e),this.isFirst&&!this.isLast&&!m.showFirstLabel||this.isLast&&!this.isFirst&&!m.showLastLabel?l=!1:!h||n.step||n.rotation||a||0===f||this.handleOverflow(b),e&&g%e&&(l=!1),l&&d(b.y)?(b.opacity=f,q[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(q.attr("y",-9999),this.isNewLabel=!0))};k.prototype.replaceMovedLabel=function(){var b=this.label,a=this.axis,d=a.reversed;if(b&&!this.isNew){var g=a.horiz?d?a.left:a.width+a.left:b.xy.x;d=a.horiz?b.xy.y:d?a.width+a.top:a.top;b.animate({x:g,y:d,
177
- opacity:0},void 0,b.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return v});H(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Color/Color.js"],a["Core/Color/Palette.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Axis/Tick.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t,m){var h=a.animObject,d=A.defaultOptions,b=w.registerEventOptions,g=C.deg2rad,
178
- p=m.arrayMax,k=m.arrayMin,r=m.clamp,F=m.correctFloat,f=m.defined,B=m.destroyObjectProperties,x=m.erase,u=m.error,E=m.extend,q=m.fireEvent,n=m.getMagnitude,e=m.isArray,c=m.isNumber,l=m.isString,D=m.merge,G=m.normalizeTickInterval,M=m.objectEach,I=m.pick,W=m.relativeLength,S=m.removeEvent,R=m.splat,T=m.syncTimeout;a=function(){function a(c,b){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=
179
- this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=
180
- this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(c,b)}a.prototype.init=function(e,a){var l=a.isX;this.chart=e;this.horiz=e.inverted&&!this.isZAxis?!l:l;this.isXAxis=l;this.coll=this.coll||(l?"xAxis":"yAxis");q(this,"init",{userOptions:a});this.opposite=I(a.opposite,this.opposite);this.side=I(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var d=this.options,g=d.labels,n=d.type;this.userOptions=a;this.minPixelPadding=
181
- 0;this.reversed=I(d.reversed,this.reversed);this.visible=d.visible;this.zoomEnabled=d.zoomEnabled;this.hasNames="category"===n||!0===d.categories;this.categories=d.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=f(d.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;
182
- this.range=d.range;this.offset=d.offset||0;this.min=this.max=null;a=I(d.crosshair,R(e.options.tooltip.crosshairs)[l?0:1]);this.crosshair=!0===a?{}:a;-1===e.axes.indexOf(this)&&(l?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this));this.series=this.series||[];e.inverted&&!this.isZAxis&&l&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=c(g.rotation)?g.rotation:void 0;b(this,d);q(this,"afterInit")};a.prototype.setOptions=function(c){this.options=
183
- D(v.defaultXAxisOptions,"yAxis"===this.coll&&v.defaultYAxisOptions,[v.defaultTopAxisOptions,v.defaultRightAxisOptions,v.defaultBottomAxisOptions,v.defaultLeftAxisOptions][this.side],D(d[this.coll],c));q(this,"afterSetOptions",{userOptions:c})};a.prototype.defaultLabelFormatter=function(b){var e=this.axis;b=this.chart.numberFormatter;var a=c(this.value)?this.value:NaN,l=e.chart.time,f=this.dateTimeLabelFormat,g=d.lang,n=g.numericSymbols;g=g.numericSymbolMagnitude||1E3;var q=e.logarithmic?Math.abs(a):
184
- e.tickInterval,k=n&&n.length;if(e.categories)var h=""+this.value;else if(f)h=l.dateFormat(f,a);else if(k&&1E3<=q)for(;k--&&"undefined"===typeof h;)e=Math.pow(g,k+1),q>=e&&0===10*a%e&&null!==n[k]&&0!==a&&(h=b(a/e,-1)+n[k]);"undefined"===typeof h&&(h=1E4<=Math.abs(a)?b(a,-1):b(a,-1,void 0,""));return h};a.prototype.getSeriesExtremes=function(){var b=this,e=b.chart,a;q(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.stacking&&
185
- b.stacking.buildStacks();b.series.forEach(function(l){if(l.visible||!e.options.chart.ignoreHiddenSeries){var d=l.options,g=d.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=g&&(g=null);if(b.isXAxis){if(d=l.xData,d.length){d=b.logarithmic?d.filter(b.validatePositiveValue):d;a=l.getXExtremes(d);var n=a.min;var q=a.max;c(n)||n instanceof Date||(d=d.filter(c),a=l.getXExtremes(d),n=a.min,q=a.max);d.length&&(b.dataMin=Math.min(I(b.dataMin,n),n),b.dataMax=Math.max(I(b.dataMax,q),q))}}else if(l=
186
- l.applyExtremes(),c(l.dataMin)&&(n=l.dataMin,b.dataMin=Math.min(I(b.dataMin,n),n)),c(l.dataMax)&&(q=l.dataMax,b.dataMax=Math.max(I(b.dataMax,q),q)),f(g)&&(b.threshold=g),!d.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});q(this,"afterGetSeriesExtremes")};a.prototype.translate=function(b,e,a,l,d,f){var g=this.linkedParent||this,n=l&&g.old?g.old.min:g.min,q=g.minPixelPadding;d=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&d)&&g.lin2val;var k=1,h=0;l=l&&g.old?g.old.transA:
187
- g.transA;l||(l=g.transA);a&&(k*=-1,h=g.len);g.reversed&&(k*=-1,h-=k*(g.sector||g.len));e?(b=(b*k+h-q)/l+n,d&&(b=g.lin2val(b))):(d&&(b=g.val2lin(b)),b=c(n)?k*(b-n)*l+h+k*q+(c(f)?l*f:0):void 0);return b};a.prototype.toPixels=function(c,b){return this.translate(c,!1,!this.horiz,null,!0)+(b?0:this.pos)};a.prototype.toValue=function(c,b){return this.translate(c-(b?0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(b){function e(c,b,a){if("pass"!==K&&c<b||c>a)K?c=r(c,b,a):E=!0;return c}
188
- var a=this,l=a.chart,d=a.left,f=a.top,g=b.old,n=b.value,k=b.lineWidth,h=g&&l.oldChartHeight||l.chartHeight,D=g&&l.oldChartWidth||l.chartWidth,p=a.transB,u=b.translatedValue,K=b.force,G,m,B,x,E;b={value:n,lineWidth:k,old:g,force:K,acrossPanes:b.acrossPanes,translatedValue:u};q(this,"getPlotLinePath",b,function(b){u=I(u,a.translate(n,null,null,g));u=r(u,-1E5,1E5);G=B=Math.round(u+p);m=x=Math.round(h-u-p);c(u)?a.horiz?(m=f,x=h-a.bottom,G=B=e(G,d,d+a.width)):(G=d,B=D-a.right,m=x=e(m,f,f+a.height)):(E=
189
- !0,K=!1);b.path=E&&!K?null:l.renderer.crispLine([["M",G,m],["L",B,x]],k||1)});return b.path};a.prototype.getLinearTickPositions=function(c,b,a){var e=F(Math.floor(b/c)*c);a=F(Math.ceil(a/c)*c);var l=[],d;F(e+c)===e&&(d=20);if(this.single)return[b];for(b=e;b<=a;){l.push(b);b=F(b+c,d);if(b===f)break;var f=b}return l};a.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?I(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};a.prototype.getMinorTickPositions=
190
- function(){var c=this.options,b=this.tickPositions,a=this.minorTickInterval,e=this.pointRangePadding||0,l=this.min-e;e=this.max+e;var d=e-l,f=[];if(d&&d/a<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(c,b,e){b&&f.push.apply(f,g.getLogTickPositions(a,e[b-1],e[b],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())f=f.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(a),l,e,c.startOfWeek));else for(c=l+(b[0]-l)%a;c<=e&&c!==f[0];c+=a)f.push(c)}0!==
191
- f.length&&this.trimTicks(f);return f};a.prototype.adjustForMinRange=function(){var c=this.options,b=this.logarithmic,a=this.min,e=this.max,l=0,d,g,n,q;this.isXAxis&&"undefined"===typeof this.minRange&&!b&&(f(c.min)||f(c.max)?this.minRange=null:(this.series.forEach(function(c){n=c.xData;q=c.xIncrement?1:n.length-1;if(1<n.length)for(d=q;0<d;d--)if(g=n[d]-n[d-1],!l||g<l)l=g}),this.minRange=Math.min(5*l,this.dataMax-this.dataMin)));if(e-a<this.minRange){var h=this.dataMax-this.dataMin>=this.minRange;
192
- var D=this.minRange;var u=(D-e+a)/2;u=[a-u,I(c.min,a-u)];h&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);a=p(u);e=[a+D,I(c.max,a+D)];h&&(e[2]=b?b.log2lin(this.dataMax):this.dataMax);e=k(e);e-a<D&&(u[0]=e-D,u[1]=I(c.min,e-D),a=p(u))}this.min=a;this.max=e};a.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(b){var a=b.closestPointRange,e=b.visible||!b.chart.options.chart.ignoreHiddenSeries;!b.noSharedTooltip&&f(a)&&e&&(c=f(c)?Math.min(c,
193
- a):a)});return c};a.prototype.nameToX=function(c){var b=e(this.categories),a=b?this.categories:this.names,l=c.options.x;c.series.requireSorting=!1;f(l)||(l=this.options.uniqueNames?b?a.indexOf(c.name):I(a.keys[c.name],-1):c.series.autoIncrement());if(-1===l){if(!b)var d=a.length}else d=l;"undefined"!==typeof d&&(this.names[d]=c.name,this.names.keys[c.name]=d);return d};a.prototype.updateNames=function(){var c=this,b=this.names;0<b.length&&(Object.keys(b.keys).forEach(function(c){delete b.keys[c]}),
194
- b.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(b){b.xIncrement=null;if(!b.points||b.isDirtyData)c.max=Math.max(c.max,b.xData.length-1),b.processData(),b.generatePoints();b.data.forEach(function(a,e){if(a&&a.options&&"undefined"!==typeof a.name){var l=c.nameToX(a);"undefined"!==typeof l&&l!==a.x&&(a.x=l,b.xData[e]=l)}})}))};a.prototype.setAxisTranslation=function(){var c=this,b=c.max-c.min,a=c.linkedParent,e=!!c.categories,d=c.isXAxis,f=c.axisPointRange||0,g=0,n=0,k=
195
- c.transA;if(d||e||f){var h=c.getClosest();a?(g=a.minPointOffset,n=a.pointRangePadding):c.series.forEach(function(b){var a=e?1:d?I(b.options.pointRange,h,0):c.axisPointRange||0,q=b.options.pointPlacement;f=Math.max(f,a);if(!c.single||e)b=b.is("xrange")?!d:d,g=Math.max(g,b&&l(q)?0:a/2),n=Math.max(n,b&&"on"===q?0:a)});a=c.ordinal&&c.ordinal.slope&&h?c.ordinal.slope/h:1;c.minPointOffset=g*=a;c.pointRangePadding=n*=a;c.pointRange=Math.min(f,c.single&&e?1:b);d&&(c.closestPointRange=h)}c.translationSlope=
196
- c.transA=k=c.staticScale||c.len/(b+n||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=k*g;q(this,"afterSetAxisTranslation")};a.prototype.minFromRange=function(){return this.max-this.range};a.prototype.setTickInterval=function(b){var a=this,e=a.chart,l=a.logarithmic,d=a.options,g=a.isXAxis,k=a.isLinked,h=d.tickPixelInterval,D=a.categories,p=a.softThreshold,m=d.maxPadding,B=d.minPadding,K=d.tickInterval,x=c(a.threshold)?a.threshold:null;a.dateTime||D||k||this.getTickAmount();var E=I(a.userMin,
197
- d.min);var M=I(a.userMax,d.max);if(k){a.linkedParent=e[a.coll][d.linkedTo];var r=a.linkedParent.getExtremes();a.min=I(r.min,r.dataMin);a.max=I(r.max,r.dataMax);d.type!==a.linkedParent.options.type&&u(11,1,e)}else{if(p&&f(x))if(a.dataMin>=x)r=x,B=0;else if(a.dataMax<=x){var t=x;m=0}a.min=I(E,r,a.dataMin);a.max=I(M,t,a.dataMax)}l&&(a.positiveValuesOnly&&!b&&0>=Math.min(a.min,I(a.dataMin,a.min))&&u(10,1,e),a.min=F(l.log2lin(a.min),16),a.max=F(l.log2lin(a.max),16));a.range&&f(a.max)&&(a.userMin=a.min=
198
- E=Math.max(a.dataMin,a.minFromRange()),a.userMax=M=a.max,a.range=null);q(a,"foundExtremes");a.beforePadding&&a.beforePadding();a.adjustForMinRange();!(D||a.axisPointRange||a.stacking&&a.stacking.usePercentage||k)&&f(a.min)&&f(a.max)&&(e=a.max-a.min)&&(!f(E)&&B&&(a.min-=e*B),!f(M)&&m&&(a.max+=e*m));c(a.userMin)||(c(d.softMin)&&d.softMin<a.min&&(a.min=E=d.softMin),c(d.floor)&&(a.min=Math.max(a.min,d.floor)));c(a.userMax)||(c(d.softMax)&&d.softMax>a.max&&(a.max=M=d.softMax),c(d.ceiling)&&(a.max=Math.min(a.max,
199
- d.ceiling)));p&&f(a.dataMin)&&(x=x||0,!f(E)&&a.min<x&&a.dataMin>=x?a.min=a.options.minRange?Math.min(x,a.max-a.minRange):x:!f(M)&&a.max>x&&a.dataMax<=x&&(a.max=a.options.minRange?Math.max(x,a.min+a.minRange):x));c(a.min)&&c(a.max)&&!this.chart.polar&&a.min>a.max&&(f(a.options.min)?a.max=a.min:f(a.options.max)&&(a.min=a.max));a.tickInterval=a.min===a.max||"undefined"===typeof a.min||"undefined"===typeof a.max?1:k&&a.linkedParent&&!K&&h===a.linkedParent.options.tickPixelInterval?K=a.linkedParent.tickInterval:
200
- I(K,this.tickAmount?(a.max-a.min)/Math.max(this.tickAmount-1,1):void 0,D?1:(a.max-a.min)*h/Math.max(a.len,h));g&&!b&&(a.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(a.min!==(a.old&&a.old.min)||a.max!==(a.old&&a.old.max))}),q(this,"postProcessData"));a.setAxisTranslation();q(this,"initialAxisTranslation");a.pointRange&&!K&&(a.tickInterval=Math.max(a.pointRange,a.tickInterval));b=I(d.minTickInterval,a.dateTime&&!a.series.some(function(c){return c.noSharedTooltip})?
201
- a.closestPointRange:0);!K&&a.tickInterval<b&&(a.tickInterval=b);a.dateTime||a.logarithmic||K||(a.tickInterval=G(a.tickInterval,void 0,n(a.tickInterval),I(d.allowDecimals,.5>a.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(a.tickInterval=a.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var c=this.options,a=c.tickPositions,b=this.getMinorTickInterval(),e=this.hasVerticalPanning(),l="colorAxis"===this.coll,d=(l||!e)&&c.startOnTick;e=(l||!e)&&
202
- c.endOnTick;l=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&f(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=b=a&&a.slice();!b&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?b=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,
203
- c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(b=[this.min,this.max],u(19,!1,this.chart)),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,l&&(l=l.apply(this,[this.min,this.max])))&&(this.tickPositions=b=l);this.paddedTicks=b.slice(0);this.trimTicks(b,
204
- d,e);this.isLinked||(this.single&&2>b.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),a||l||this.adjustTickAmount());q(this,"afterSetTickPositions")};a.prototype.trimTicks=function(c,a,b){var e=c[0],l=c[c.length-1],d=!this.isOrdinal&&this.minPointOffset||0;q(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==e)this.min=e;else for(;this.min-d>c[0];)c.shift();if(b)this.max=l;else for(;this.max+d<
205
- c[c.length-1];)c.pop();0===c.length&&f(e)&&!this.options.tickPositions&&c.push((l+e)/2)}};a.prototype.alignToOthers=function(){var c={},a=this.options,b;!1!==this.chart.options.chart.alignTicks&&a.alignTicks&&!1!==a.startOnTick&&!1!==a.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(a){var e=a.options;e=[a.horiz?e.left:e.top,e.width,e.height,e.pane].join();a.series.length&&(c[e]?b=!0:c[e]=1)});return b};a.prototype.getTickAmount=function(){var c=this.options,a=c.tickPixelInterval,
206
- b=c.tickAmount;!f(c.tickInterval)&&!b&&this.len<a&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/a)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b};a.prototype.adjustTickAmount=function(){var a=this.options,b=this.tickInterval,e=this.tickPositions,l=this.tickAmount,d=this.finalTickAmt,g=e&&e.length,n=I(this.threshold,this.softThreshold?0:null);if(this.hasData()&&c(this.min)&&c(this.max)){if(g<l){for(;e.length<l;)e.length%
207
- 2||this.min===n?e.push(F(e[e.length-1]+b)):e.unshift(F(e[0]-b));this.transA*=(g-1)/(l-1);this.min=a.startOnTick?e[0]:Math.min(this.min,e[0]);this.max=a.endOnTick?e[e.length-1]:Math.max(this.max,e[e.length-1])}else g>l&&(this.tickInterval*=2,this.setTickPositions());if(f(d)){for(b=a=e.length;b--;)(3===d&&1===b%2||2>=d&&0<b&&b<a-1)&&e.splice(b,1);this.finalTickAmt=void 0}}};a.prototype.setScale=function(){var c=!1,a=!1;this.series.forEach(function(b){c=c||b.isDirtyData||b.isDirty;a=a||b.xAxis&&b.xAxis.isDirty||
208
- !1});this.setAxisSize();var b=this.len!==(this.old&&this.old.len);b||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||(this.isDirty=b||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&
209
- (this.panningState.isDirty=!0);q(this,"afterSetScale")};a.prototype.setExtremes=function(c,a,b,e,l){var d=this,f=d.chart;b=I(b,!0);d.series.forEach(function(c){delete c.kdTree});l=E(l,{min:c,max:a});q(d,"setExtremes",l,function(){d.userMin=c;d.userMax=a;d.eventArgs=l;b&&f.redraw(e)})};a.prototype.zoom=function(c,a){var b=this,e=this.dataMin,l=this.dataMax,d=this.options,g=Math.min(e,I(d.min,e)),n=Math.max(l,I(d.max,l));c={newMin:c,newMax:a};q(this,"zoom",c,function(c){var a=c.newMin,d=c.newMax;if(a!==
210
- b.min||d!==b.max)b.allowZoomOutside||(f(e)&&(a<g&&(a=g),a>n&&(a=n)),f(l)&&(d<g&&(d=g),d>n&&(d=n))),b.displayBtn="undefined"!==typeof a||"undefined"!==typeof d,b.setExtremes(a,d,!1,void 0,{trigger:"zoom"});c.zoomed=!0});return c.zoomed};a.prototype.setAxisSize=function(){var c=this.chart,a=this.options,b=a.offsets||[0,0,0,0],e=this.horiz,l=this.width=Math.round(W(I(a.width,c.plotWidth-b[3]+b[1]),c.plotWidth)),d=this.height=Math.round(W(I(a.height,c.plotHeight-b[0]+b[2]),c.plotHeight)),f=this.top=Math.round(W(I(a.top,
211
- c.plotTop+b[0]),c.plotHeight,c.plotTop));a=this.left=Math.round(W(I(a.left,c.plotLeft+b[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-d-f;this.right=c.chartWidth-l-a;this.len=Math.max(e?l:d,0);this.pos=e?a:f};a.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?F(c.lin2log(this.min)):this.min,max:c?F(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(c){var a=this.logarithmic,
212
- b=a?a.lin2log(this.min):this.min;a=a?a.lin2log(this.max):this.max;null===c||-Infinity===c?c=b:Infinity===c?c=a:b>c?c=b:a<c&&(c=a);return this.translate(c,0,1,0,1)};a.prototype.autoLabelAlign=function(c){var a=(I(c,0)-90*this.side+720)%360;c={align:"center"};q(this,"autoLabelAlign",c,function(c){15<a&&165>a?c.align="right":195<a&&345>a&&(c.align="left")});return c.align};a.prototype.tickSize=function(c){var a=this.options,b=I(a["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?
213
- 1:0),e=a["tick"===c?"tickLength":"minorTickLength"];if(b&&e){"inside"===a[c+"Position"]&&(e=-e);var l=[e,b]}c={tickSize:l};q(this,"afterTickSize",c);return c.tickSize};a.prototype.labelMetrics=function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[c]&&this.ticks[c].label)};a.prototype.unsquish=function(){var a=this.options.labels,b=this.horiz,e=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-
214
- this.min)/e),d=a.rotation,f=this.labelMetrics(),n=Math.max(this.max-this.min,0),q=function(c){var a=c/(l||1);a=1<a?Math.ceil(a):1;a*e>n&&Infinity!==c&&Infinity!==l&&n&&(a=Math.ceil(n/e));return F(a*e)},k=e,h,D,p=Number.MAX_VALUE;if(b){if(!a.staggerLines&&!a.step)if(c(d))var u=[d];else l<a.autoRotationLimit&&(u=a.autoRotation);u&&u.forEach(function(c){if(c===d||c&&-90<=c&&90>=c){D=q(Math.abs(f.h/Math.sin(g*c)));var a=D+Math.abs(c/360);a<p&&(p=a,h=c,k=D)}})}else a.step||(k=q(f.h));this.autoRotation=
215
- u;this.labelRotation=I(h,c(d)?d:0);return k};a.prototype.getSlotWidth=function(a){var b=this.chart,e=this.horiz,l=this.options.labels,d=Math.max(this.tickPositions.length-(this.categories?0:1),1),f=b.margin[3];if(a&&c(a.slotWidth))return a.slotWidth;if(e&&2>l.step)return l.rotation?0:(this.staggerLines||1)*this.len/d;if(!e){a=l.style.width;if(void 0!==a)return parseInt(String(a),10);if(f)return f-b.spacing[3]}return.33*b.chartWidth};a.prototype.renderUnsquish=function(){var c=this.chart,a=c.renderer,
216
- b=this.tickPositions,e=this.ticks,d=this.options.labels,f=d.style,g=this.horiz,n=this.getSlotWidth(),q=Math.max(1,Math.round(n-2*d.padding)),k={},h=this.labelMetrics(),D=f.textOverflow,p=0;l(d.rotation)||(k.rotation=d.rotation||0);b.forEach(function(c){c=e[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>p&&(p=c.label.textPxLength)});this.maxLabelLength=p;if(this.autoRotation)p>q&&p>h.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(n){var u=q;if(!D){var G="clip";
217
- for(q=b.length;!g&&q--;){var m=b[q];if(m=e[m].label)m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>n&&m.css({width:n+"px"}),m.getBBox().height>this.len/b.length-(h.h-h.f)&&(m.specificTextOverflow="ellipsis")}}}k.rotation&&(u=p>.5*c.chartHeight?.33*c.chartHeight:p,D||(G="ellipsis"));if(this.labelAlign=d.align||this.autoLabelAlign(this.labelRotation))k.align=this.labelAlign;b.forEach(function(c){var a=(c=e[c])&&c.label,b=f.width,l={};a&&(a.attr(k),c.shortenLabel?
218
- c.shortenLabel():u&&!b&&"nowrap"!==f.whiteSpace&&(u<a.textPxLength||"SPAN"===a.element.tagName)?(l.width=u+"px",D||(l.textOverflow=a.specificTextOverflow||G),a.css(l)):a.styles&&a.styles.width&&!l.width&&!b&&a.css({width:null}),delete a.specificTextOverflow,c.rotation=k.rotation)},this);this.tickRotCorr=a.rotCorr(h.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||this.options.showEmpty&&f(this.min)&&f(this.max)};a.prototype.addTitle=
219
- function(c){var a=this.chart.renderer,b=this.horiz,e=this.opposite,l=this.options.title,d=this.chart.styledMode,f;this.axisTitle||((f=l.textAlign)||(f=(b?{low:"left",middle:"center",high:"right"}:{low:e?"right":"left",middle:"center",high:e?"left":"right"})[l.align]),this.axisTitle=a.text(l.text||"",0,0,l.useHTML).attr({zIndex:7,rotation:l.rotation,align:f}).addClass("highcharts-axis-title"),d||this.axisTitle.css(D(l.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);d||l.style.width||
220
- this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};a.prototype.generateTick=function(c){var a=this.ticks;a[c]?a[c].addLabel():a[c]=new t(this,c)};a.prototype.getOffset=function(){var c=this,a=this,b=a.chart,e=b.renderer,l=a.options,d=a.tickPositions,g=a.ticks,n=a.horiz,k=a.side,h=b.inverted&&!a.isZAxis?[1,0,3,2][k]:k,D=a.hasData(),p=l.title,u=l.labels,G=b.axisOffset;b=b.clipOffset;var m=[-1,1,1,-1][k],B=l.className,x=a.axisParent,E,r=0,t=0,ha=0;a.showAxis=
221
- E=D||l.showEmpty;a.staggerLines=a.horiz&&u.staggerLines||void 0;if(!a.axisGroup){var F=function(a,b,l){return e.g(a).attr({zIndex:l}).addClass("highcharts-"+c.coll.toLowerCase()+b+" "+(c.isRadial?"highcharts-radial-axis"+b+" ":"")+(B||"")).add(x)};a.gridGroup=F("grid","-grid",l.gridZIndex);a.axisGroup=F("axis","",l.zIndex);a.labelGroup=F("axis-labels","-labels",u.zIndex)}D||a.isLinked?(d.forEach(function(c){a.generateTick(c)}),a.renderUnsquish(),a.reserveSpaceDefault=0===k||2===k||{1:"left",3:"right"}[k]===
222
- a.labelAlign,I(u.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&d.forEach(function(c){ha=Math.max(g[c].getLabelSize(),ha)}),a.staggerLines&&(ha*=a.staggerLines),a.labelOffset=ha*(a.opposite?-1:1)):M(g,function(c,a){c.destroy();delete g[a]});if(p&&p.text&&!1!==p.enabled&&(a.addTitle(E),E&&!1!==p.reserveSpace)){a.titleOffset=r=a.axisTitle.getBBox()[n?"height":"width"];var J=p.offset;t=f(J)?0:I(p.margin,n?5:10)}a.renderLine();a.offset=m*I(l.offset,G[k]?G[k]+(l.margin||0):0);a.tickRotCorr=
223
- a.tickRotCorr||{x:0,y:0};p=0===k?-a.labelMetrics().h:2===k?a.tickRotCorr.y:0;D=Math.abs(ha)+t;ha&&(D=D-p+m*(n?I(u.y,a.tickRotCorr.y+8*m):u.x));a.axisTitleMargin=I(J,D);a.getMaxLabelDimensions&&(a.maxLabelDimensions=a.getMaxLabelDimensions(g,d));n=this.tickSize("tick");G[k]=Math.max(G[k],(a.axisTitleMargin||0)+r+m*a.offset,D,d&&d.length&&n?n[0]+m*a.offset:0);l=l.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);b[h]=Math.max(b[h],l);q(this,"afterGetOffset")};a.prototype.getLinePath=function(c){var a=
224
- this.chart,b=this.opposite,e=this.offset,l=this.horiz,d=this.left+(b?this.width:0)+e;e=a.chartHeight-this.bottom-(b?this.height:0)+e;b&&(c*=-1);return a.renderer.crispLine([["M",l?this.left:d,l?e:this.top],["L",l?a.chartWidth-this.right:d,l?e:a.chartHeight-this.bottom]],c)};a.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,
225
- zIndex:7}))};a.prototype.getTitlePosition=function(){var c=this.horiz,a=this.left,b=this.top,e=this.len,l=this.options.title,d=c?a:b,f=this.opposite,g=this.offset,n=l.x,k=l.y,h=this.axisTitle,D=this.chart.renderer.fontMetrics(l.style.fontSize,h);h=Math.max(h.getBBox(null,0).height-D.h-1,0);e={low:d+(c?0:e),middle:d+e/2,high:d+(c?e:0)}[l.align];a=(c?b+this.height:a)+(c?1:-1)*(f?-1:1)*this.axisTitleMargin+[-h,h,D.f,-h][this.side];c={x:c?e+n:a+(f?this.width:0)+g+n,y:c?a+k-(f?this.height:0)+g:e+k};q(this,
226
- "afterGetTitlePosition",{titlePosition:c});return c};a.prototype.renderMinorTick=function(c,a){var b=this.minorTicks;b[c]||(b[c]=new t(this,c,"minor"));a&&b[c].isNew&&b[c].render(null,!0);b[c].render(null,!1,1)};a.prototype.renderTick=function(c,a,b){var e=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)e[c]||(e[c]=new t(this,c)),b&&e[c].isNew&&e[c].render(a,!0,-1),e[c].render(a)};a.prototype.render=function(){var a=this,b=a.chart,e=a.logarithmic,l=a.options,
227
- d=a.isLinked,f=a.tickPositions,g=a.axisTitle,n=a.ticks,k=a.minorTicks,D=a.alternateBands,p=l.stackLabels,u=l.alternateGridColor,G=a.tickmarkOffset,m=a.axisLine,B=a.showAxis,I=h(b.renderer.globalAnimation),x,E;a.labelEdge.length=0;a.overlap=!1;[n,k,D].forEach(function(c){M(c,function(c){c.isActive=!1})});if(a.hasData()||d){var r=a.chart.hasRendered&&a.old&&c(a.old.min);a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c,r)});f.length&&(f.forEach(function(c,
228
- b){a.renderTick(c,b,r)}),G&&(0===a.min||a.single)&&(n[-1]||(n[-1]=new t(a,-1,null,!0)),n[-1].render(-1)));u&&f.forEach(function(c,l){E="undefined"!==typeof f[l+1]?f[l+1]+G:a.max-G;0===l%2&&c<a.max&&E<=a.max+(b.polar?-G:G)&&(D[c]||(D[c]=new C.PlotLineOrBand(a)),x=c+G,D[c].options={from:e?e.lin2log(x):x,to:e?e.lin2log(E):E,color:u,className:"highcharts-alternate-grid"},D[c].render(),D[c].isActive=!0)});a._addedPlotLB||(a._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||[]).forEach(function(c){a.addPlotBandOrLine(c)}))}[n,
229
- k,D].forEach(function(c){var a=[],e=I.duration;M(c,function(c,b){c.isActive||(c.render(b,!1,0),c.isActive=!1,a.push(b))});T(function(){for(var b=a.length;b--;)c[a[b]]&&!c[a[b]].isActive&&(c[a[b]].destroy(),delete c[a[b]])},c!==D&&b.hasRendered&&e?e:0)});m&&(m[m.isPlaced?"animate":"attr"]({d:this.getLinePath(m.strokeWidth())}),m.isPlaced=!0,m[B?"show":"hide"](B));g&&B&&(l=a.getTitlePosition(),c(l.y)?(g[g.isNew?"attr":"animate"](l),g.isNew=!1):(g.attr("y",-9999),g.isNew=!0));p&&p.enabled&&a.stacking&&
230
- 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;q(this,"afterRender")};a.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps};a.prototype.destroy=function(c){var a=this,b=a.plotLinesAndBands,e=this.eventOptions;q(this,"destroy",{keepEvents:c});
231
- c||S(a);[a.ticks,a.minorTicks,a.alternateBands].forEach(function(c){B(c)});if(b)for(c=b.length;c--;)b[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){a[c]&&(a[c]=a[c].destroy())});for(var l in a.plotLinesAndBandsGroups)a.plotLinesAndBandsGroups[l]=a.plotLinesAndBandsGroups[l].destroy();M(a,function(c,b){-1===a.getKeepProps().indexOf(b)&&delete a[b]});this.eventOptions=e};a.prototype.drawCrosshair=function(c,a){var b=this.crosshair,e=
232
- I(b&&b.snap,!0),l=this.chart,d,g=this.cross;q(this,"drawCrosshair",{e:c,point:a});c||(c=this.cross&&this.cross.e);if(b&&!1!==(f(a)||!e)){e?f(a)&&(d=I("colorAxis"!==this.coll?a.crosshairPos:null,this.isXAxis?a.plotX:this.len-a.plotY)):d=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(f(d)){var n={value:a&&(this.isXAxis?a.x:I(a.stackY,a.y)),translatedValue:d};l.polar&&E(n,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:a});n=this.getPlotLinePath(n)||null}if(!f(n)){this.hideCrosshair();
233
- return}e=this.categories&&!this.isRadial;g||(this.cross=g=l.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(e?"category ":"thin ")+(b.className||"")).attr({zIndex:I(b.zIndex,2)}).add(),l.styledMode||(g.attr({stroke:b.color||(e?y.parse(z.highlightColor20).setOpacity(.25).get():z.neutralColor20),"stroke-width":I(b.width,1)}).css({"pointer-events":"none"}),b.dashStyle&&g.attr({dashstyle:b.dashStyle})));g.show().attr({d:n});e&&!b.width&&g.attr({"stroke-width":this.transA});this.cross.e=
234
- c}else this.hideCrosshair();q(this,"afterDrawCrosshair",{e:c,point:a})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();q(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};a.prototype.validatePositiveValue=function(a){return c(a)&&0<a};a.prototype.update=function(c,a){var b=this.chart;c=D(this.userOptions,c);this.destroy(!0);this.init(b,c);b.isDirtyBox=!0;I(a,!0)&&b.redraw()};a.prototype.remove=
235
- function(c){for(var a=this.chart,b=this.coll,e=this.series,l=e.length;l--;)e[l]&&e[l].remove(!1);x(a.axes,this);x(a[b],this);a[b].forEach(function(c,a){c.options.index=c.userOptions.index=a});this.destroy();a.isDirtyBox=!0;I(c,!0)&&a.redraw()};a.prototype.setTitle=function(c,a){this.update({title:c},a)};a.prototype.setCategories=function(c,a){this.update({categories:c},a)};a.defaultOptions=v.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a}();"";return a});
236
- H(a,"Core/Axis/DateTimeAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,y=a.getMagnitude,z=a.normalizeTickInterval,A=a.timeUnits,w;(function(a){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function m(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new d(this))}var h=[];a.compose=function(a){-1===h.indexOf(a)&&(h.push(a),a.keepProps.push("dateTime"),a.prototype.getTimeTicks=t,r(a,"init",m));return a};var d=function(){function a(a){this.axis=
237
- 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=A[b[0]],h=b[1],f;for(f=0;f<d.length&&!(b=d[f],g=A[b[0]],h=b[1],d[f+1]&&a<=(g*h[h.length-1]+A[d[f+1][0]])/2);f++);g===A.year&&a<5*g&&(h=[1,2,5]);a=z(a/g,h,"year"===b[0]?Math.max(y(a/g),1):1);return{unitRange:g,count:a,unitName:b[0]}};
238
- a.prototype.getXDateFormat=function(a,b){var d=this.axis;return d.closestPointRange?d.chart.time.getDateFormat(d.closestPointRange,a,d.options.startOfWeek,b)||b.year:b.day};return a}();a.Additions=d})(w||(w={}));return w});H(a,"Core/Axis/LogarithmicAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,y=a.getMagnitude,z=a.normalizeTickInterval,A=a.pick,w;(function(a){function t(a){var b=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:b||(this.logarithmic=new d(this))}
239
- function m(){var a=this.logarithmic;a&&(this.lin2val=function(b){return a.lin2log(b)},this.val2lin=function(b){return a.log2lin(b)})}var h=[];a.compose=function(a){-1===h.indexOf(a)&&(h.push(a),a.keepProps.push("logarithmic"),r(a,"init",t),r(a,"afterInit",m));return a};var d=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,b,d,h){var g=this.axis,f=g.len,k=g.options,p=[];h||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),p=g.getLinearTickPositions(a,b,d);else if(.08<=
240
- a){var u=Math.floor(b),m,q=k=void 0;for(f=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];u<d+1&&!q;u++){var n=f.length;for(m=0;m<n&&!q;m++){var e=this.log2lin(this.lin2log(u)*f[m]);e>b&&(!h||k<=d)&&"undefined"!==typeof k&&p.push(k);k>d&&(q=!0);k=e}}}else b=this.lin2log(b),d=this.lin2log(d),a=h?g.getMinorTickInterval():k.tickInterval,a=A("auto"===a?null:a,this.minorAutoInterval,k.tickPixelInterval/(h?5:1)*(d-b)/((h?f/g.tickPositions.length:f)||1)),a=z(a,void 0,y(a)),p=g.getLinearTickPositions(a,
241
- b,d).map(this.log2lin),h||(this.minorAutoInterval=a/5);h||(g.tickInterval=a);return p};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();a.Additions=d})(w||(w={}));return w});H(a,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.erase,y=a.extend,z=a.isNumber,A;(function(a){var w=[],t;a.compose=function(a,d){t||(t=a);-1===w.indexOf(d)&&(w.push(d),y(d.prototype,m.prototype));return d};
242
- var m=function(){function a(){}a.prototype.getPlotBandPath=function(a,b,g){void 0===g&&(g=this.options);var d=this.getPlotLinePath({value:b,force:!0,acrossPanes:g.acrossPanes}),k=[],h=this.horiz;b=!z(this.min)||!z(this.max)||a<this.min&&b<this.min||a>this.max&&b>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:g.acrossPanes});g=1;if(a&&d){if(b){var m=a.toString()===d.toString();g=0}for(b=0;b<a.length;b+=2){var f=a[b],B=a[b+1],x=d[b],u=d[b+1];"M"!==f[0]&&"L"!==f[0]||"M"!==B[0]&&"L"!==
243
- B[0]||"M"!==x[0]&&"L"!==x[0]||"M"!==u[0]&&"L"!==u[0]||(h&&x[1]===f[1]?(x[1]+=g,u[1]+=g):h||x[2]!==f[2]||(x[2]+=g,u[2]+=g),k.push(["M",f[1],f[2]],["L",B[1],B[2]],["L",u[1],u[2]],["L",x[1],x[2]],["Z"]));k.isFlat=m}}return k};a.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};a.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};a.prototype.addPlotBandOrLine=function(a,b){var d=this,h=this.userOptions,k=new t(this,a);this.visible&&(k=k.render());
244
- if(k){this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(a){d.addPlotBandOrLine(a)}));if(b){var m=h[b]||[];m.push(a);h[b]=m}this.plotLinesAndBands.push(k)}return k};a.prototype.removePlotBandOrLine=function(a){var b=this.plotLinesAndBands,d=this.options,h=this.userOptions;if(b){for(var k=b.length;k--;)b[k].id===a&&b[k].destroy();[d.plotLines||[],h.plotLines||[],d.plotBands||[],h.plotBands||[]].forEach(function(b){for(k=b.length;k--;)(b[k]||{}).id===
245
- a&&r(b,b[k])})}};a.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};a.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return a}()})(A||(A={}));return A});H(a,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[a["Core/Color/Palette.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],a["Core/Utilities.js"]],function(a,v,y){var r=y.arrayMax,A=y.arrayMin,w=y.defined,C=y.destroyObjectProperties,t=y.erase,m=y.fireEvent,h=y.merge,d=y.objectEach,b=y.pick;y=function(){function g(a,
246
- b){this.axis=a;b&&(this.options=b,this.id=b.id)}g.compose=function(a){return v.compose(g,a)};g.prototype.render=function(){m(this,"render");var g=this,k=g.axis,r=k.horiz,t=k.logarithmic,f=g.options,B=f.color,x=b(f.zIndex,0),u=f.events,E={},q=k.chart.renderer,n=f.label,e=g.label,c=f.to,l=f.from,D=f.value,G=g.svgElem,M=[],I=w(l)&&w(c);M=w(D);var W=!G,v={"class":"highcharts-plot-"+(I?"band ":"line ")+(f.className||"")},C=I?"bands":"lines";t&&(l=t.log2lin(l),c=t.log2lin(c),D=t.log2lin(D));k.chart.styledMode||
247
- (M?(v.stroke=B||a.neutralColor40,v["stroke-width"]=b(f.width,1),f.dashStyle&&(v.dashstyle=f.dashStyle)):I&&(v.fill=B||a.highlightColor10,f.borderWidth&&(v.stroke=f.borderColor,v["stroke-width"]=f.borderWidth)));E.zIndex=x;C+="-"+x;(t=k.plotLinesAndBandsGroups[C])||(k.plotLinesAndBandsGroups[C]=t=q.g("plot-"+C).attr(E).add());W&&(g.svgElem=G=q.path().attr(v).add(t));if(M)M=k.getPlotLinePath({value:D,lineWidth:G.strokeWidth(),acrossPanes:f.acrossPanes});else if(I)M=k.getPlotBandPath(l,c,f);else return;
248
- !g.eventsAdded&&u&&(d(u,function(c,a){G.on(a,function(c){u[a].apply(g,[c])})}),g.eventsAdded=!0);(W||!G.d)&&M&&M.length?G.attr({d:M}):G&&(M?(G.show(!0),G.animate({d:M})):G.d&&(G.hide(),e&&(g.label=e=e.destroy())));n&&(w(n.text)||w(n.formatter))&&M&&M.length&&0<k.width&&0<k.height&&!M.isFlat?(n=h({align:r&&I&&"center",x:r?!I&&4:10,verticalAlign:!r&&I&&"middle",y:r?I?16:10:I?6:-4,rotation:r&&!I&&90},n),this.renderLabel(n,M,I,x)):e&&e.hide();return g};g.prototype.renderLabel=function(a,b,d,g){var f=
249
- this.axis,k=f.chart.renderer,p=this.label;p||(this.label=p=k.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(d?"band":"line")+"-label "+(a.className||""),zIndex:g}).add(),f.chart.styledMode||p.css(h({textOverflow:"ellipsis"},a.style)));g=b.xBounds||[b[0][1],b[1][1],d?b[2][1]:b[0][1]];b=b.yBounds||[b[0][2],b[1][2],d?b[2][2]:b[0][2]];d=A(g);k=A(b);p.align(a,!1,{x:d,y:k,width:r(g)-d,height:r(b)-k});p.alignValue&&"left"!==p.alignValue||
250
- p.css({width:(90===p.rotation?f.height-(p.alignAttr.y-f.top):f.width-(p.alignAttr.x-f.left))+"px"});p.show(!0)};g.prototype.getLabelText=function(a){return w(a.formatter)?a.formatter.call(this):a.text};g.prototype.destroy=function(){t(this.axis.plotLinesAndBands,this);delete this.axis;C(this)};return g}();"";"";return y});H(a,"Core/Tooltip.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Renderer/RendererRegistry.js"],
251
- a["Core/Utilities.js"]],function(a,v,y,z,A,w){var r=a.format,t=v.doc,m=z.distribute,h=w.addEvent,d=w.clamp,b=w.css,g=w.defined,p=w.discardElement,k=w.extend,J=w.fireEvent,F=w.isArray,f=w.isNumber,B=w.isString,x=w.merge,u=w.pick,E=w.splat,q=w.syncTimeout;a=function(){function a(a,c){this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,c)}a.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",
252
- 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"}}]}]})};a.prototype.bodyFormatter=function(a){return a.map(function(c){var a=c.series.tooltipOptions;return(a[(c.point.formatPrefix||
253
- "point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,a[(c.point.formatPrefix||"point")+"Format"]||"")})};a.prototype.cleanSplit=function(a){this.chart.series.forEach(function(c){var b=c&&c.tt;b&&(!b.isActive||a?c.tt=b.destroy():b.isActive=!1)})};a.prototype.defaultFormatter=function(a){var c=this.points||E(this);var b=[a.tooltipFooterHeaderFormatter(c[0])];b=b.concat(a.bodyFormatter(c));b.push(a.tooltipFooterHeaderFormatter(c[0],!0));return b};a.prototype.destroy=function(){this.label&&(this.label=
254
- this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),p(this.container));w.clearTimeout(this.hideTimer);w.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(a,c){var b=this.chart,e=b.pointer,d=b.inverted,f=b.plotTop,g=b.plotLeft,n,q,k=0,h=0;a=E(a);this.followPointer&&c?("undefined"===typeof c.chartX&&(c=e.normalize(c)),e=[c.chartX-g,c.chartY-f]):a[0].tooltipPos?e=a[0].tooltipPos:(a.forEach(function(c){n=
255
- c.series.yAxis;q=c.series.xAxis;k+=c.plotX||0;h+=c.plotLow?(c.plotLow+(c.plotHigh||0))/2:c.plotY||0;q&&n&&(d?(k+=f+b.plotHeight-q.len-q.pos,h+=g+b.plotWidth-n.len-n.pos):(k+=q.pos-g,h+=n.pos-f))}),k/=a.length,h/=a.length,e=[d?b.plotWidth-h:k,d?b.plotHeight-k:h],this.shared&&1<a.length&&c&&(d?e[0]=c.chartX-g:e[1]=c.chartY-f));return e.map(Math.round)};a.prototype.getLabel=function(){var a=this,c=this.chart.styledMode,l=this.options,d="tooltip"+(g(l.className)?" "+l.className:""),f=l.style.pointerEvents||
256
- (!this.followPointer&&l.stickOnContact?"auto":"none"),n=function(){a.inContact=!0},q=function(c){var b=a.chart.hoverSeries;a.inContact=a.shouldStickOnContact()&&a.chart.pointer.inClass(c.relatedTarget,"highcharts-tooltip");if(!a.inContact&&b&&b.onMouseOut)b.onMouseOut()},k,u=this.chart.renderer;if(!this.label){if(this.outside){var p=this.chart.options.chart.style,m=A.getRendererType();this.container=k=v.doc.createElement("div");k.className="highcharts-tooltip-container";b(k,{position:"absolute",top:"1px",
257
- pointerEvents:f,zIndex:Math.max(this.options.style.zIndex||0,(p&&p.zIndex||0)+3)});h(k,"mouseenter",n);h(k,"mouseleave",q);v.doc.body.appendChild(k);this.renderer=u=new m(k,0,0,p,void 0,void 0,u.styledMode)}this.split?this.label=u.g(d):(this.label=u.label("",0,0,l.shape,void 0,void 0,l.useHTML,void 0,d).attr({padding:l.padding,r:l.borderRadius}),c||this.label.attr({fill:l.backgroundColor,"stroke-width":l.borderWidth}).css(l.style).css({pointerEvents:f}).shadow(l.shadow));c&&l.shadow&&(this.applyFilter(),
258
- this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a.outside&&!a.split){var B=this.label,E=B.xSetter,x=B.ySetter;B.xSetter=function(c){E.call(B,a.distance);k.style.left=c+"px"};B.ySetter=function(c){x.call(B,a.distance);k.style.top=c+"px"}}this.label.on("mouseenter",n).on("mouseleave",q).attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(a,c,b){var e=this.chart,d=this.distance,l={},f=e.inverted&&b.h||0,g=this.outside,n=g?t.documentElement.clientWidth-2*
259
- d:e.chartWidth,q=g?Math.max(t.body.scrollHeight,t.documentElement.scrollHeight,t.body.offsetHeight,t.documentElement.offsetHeight,t.documentElement.clientHeight):e.chartHeight,k=e.pointer.getChartPosition(),h=function(l){var f="x"===l;return[l,f?n:q,f?a:c].concat(g?[f?a*k.scaleX:c*k.scaleY,f?k.left-d+(b.plotX+e.plotLeft)*k.scaleX:k.top-d+(b.plotY+e.plotTop)*k.scaleY,0,f?n:q]:[f?a:c,f?b.plotX+e.plotLeft:b.plotY+e.plotTop,f?e.plotLeft:e.plotTop,f?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},p=h("y"),
260
- m=h("x"),B,E=!this.followPointer&&u(b.ttBelow,!e.inverted===!!b.negative),x=function(c,a,b,e,n,q,h){var D=g?"y"===c?d*k.scaleY:d*k.scaleX:d,u=(b-e)/2,p=e<n-d,m=n+d+e<a,G=n-D-b+u;n=n+D-u;if(E&&m)l[c]=n;else if(!E&&p)l[c]=G;else if(p)l[c]=Math.min(h-e,0>G-f?G:G-f);else if(m)l[c]=Math.max(q,n+f+b>a?n:n+f);else return!1},r=function(c,a,b,e,f){var g;f<d||f>a-d?g=!1:l[c]=f<b/2?1:f>a-e/2?a-e-2:f-b/2;return g},L=function(c){var a=p;p=m;m=a;B=c},F=function(){!1!==x.apply(0,p)?!1!==r.apply(0,m)||B||(L(!0),
261
- F()):B?l.x=l.y=0:(L(!0),F())};(e.inverted||1<this.len)&&L();F();return l};a.prototype.hide=function(a){var c=this;w.clearTimeout(this.hideTimer);a=u(a,this.options.hideDelay);this.isHidden||(this.hideTimer=q(function(){c.getLabel().fadeOut(a?void 0:a);c.isHidden=!0},a))};a.prototype.init=function(a,c){this.chart=a;this.options=c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=c.split&&!a.inverted&&!a.polar;this.shared=c.shared||this.split;this.outside=u(c.outside,!(!a.scrollablePixelsX&&
262
- !a.scrollablePixelsY))};a.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};a.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};a.prototype.move=function(a,c,b,d){var e=this,l=e.now,f=!1!==e.options.animation&&!e.isHidden&&(1<Math.abs(a-l.x)||1<Math.abs(c-l.y)),g=e.followPointer||1<e.len;k(l,{x:f?(2*l.x+a)/3:a,y:f?(l.y+c)/2:c,anchorX:g?void 0:f?(2*l.anchorX+b)/3:b,anchorY:g?void 0:f?(l.anchorY+d)/2:d});
263
- e.getLabel().attr(l);e.drawTracker();f&&(w.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,c,b,d)},32))};a.prototype.refresh=function(a,c){var b=this.chart,e=this.options,d=E(a),f=d[0],g=[],n=e.formatter||this.defaultFormatter,q=this.shared,k=b.styledMode,h={};if(e.enabled){w.clearTimeout(this.hideTimer);this.followPointer=!this.split&&f.series.tooltipOptions.followPointer;var p=this.getAnchor(a,c),m=p[0],B=p[1];!q||!F(a)&&a.series&&a.series.noSharedTooltip?
264
- h=f.getLabelConfig():(b.pointer.applyInactiveState(d),d.forEach(function(c){c.setState("hover");g.push(c.getLabelConfig())}),h={x:f.category,y:f.y},h.points=g);this.len=g.length;a=n.call(h,this);n=f.series;this.distance=u(n.tooltipOptions.distance,16);if(!1===a)this.hide();else{if(this.split)this.renderSplit(a,d);else if(d=m,q=B,c&&b.pointer.isDirectTouch&&(d=c.chartX-b.plotLeft,q=c.chartY-b.plotTop),b.polar||!1===n.options.clip||n.shouldShowTooltip(d,q))c=this.getLabel(),e.style.width&&!k||c.css({width:this.chart.spacingBox.width+
265
- "px"}),c.attr({text:a&&a.join?a.join(""):a}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+u(f.colorIndex,n.colorIndex)),k||c.attr({stroke:e.borderColor||f.color||n.color||y.neutralColor60}),this.updatePosition({plotX:m,plotY:B,negative:f.negative,ttBelow:f.ttBelow,h:p[2]||0});else{this.hide();return}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}J(this,"refresh")}};a.prototype.renderSplit=function(a,c){function b(c,a,b,l,f){void 0===f&&(f=
266
- !0);b?(a=Y?0:H,c=d(c-l/2,P.left,P.right-l-(e.outside?Q:0))):(a-=da,c=f?c-l-J:c+J,c=d(c,f?c:P.left,P.right));return{x:c,y:a}}var e=this,f=e.chart,g=e.chart,n=g.chartWidth,q=g.chartHeight,h=g.plotHeight,p=g.plotLeft,E=g.plotTop,x=g.pointer,r=g.scrollablePixelsY;r=void 0===r?0:r;var F=g.scrollablePixelsX,w=g.scrollingContainer;w=void 0===w?{scrollLeft:0,scrollTop:0}:w;var v=w.scrollLeft;w=w.scrollTop;var C=g.styledMode,J=e.distance,L=e.options,U=e.options.positioner,P=e.outside&&"number"!==typeof F?
267
- t.documentElement.getBoundingClientRect():{left:v,right:v+n,top:w,bottom:w+q},z=e.getLabel(),A=this.renderer||f.renderer,Y=!(!f.xAxis[0]||!f.xAxis[0].opposite);f=x.getChartPosition();var Q=f.left;f=f.top;var da=E+w,ea=0,H=h-r;B(a)&&(a=[!1,a]);a=a.slice(0,c.length+1).reduce(function(a,l,f){if(!1!==l&&""!==l){f=c[f-1]||{isHeader:!0,plotX:c[0].plotX,plotY:h,series:{}};var g=f.isHeader,n=g?e:f.series;l=l.toString();var q=n.tt,k=f.isHeader;var D=f.series;var m="highcharts-color-"+u(f.colorIndex,D.colorIndex,
268
- "none");q||(q={padding:L.padding,r:L.borderRadius},C||(q.fill=L.backgroundColor,q["stroke-width"]=L.borderWidth),q=A.label("",0,0,L[k?"headerShape":"shape"],void 0,void 0,L.useHTML).addClass((k?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+m).attr(q).add(z));q.isActive=!0;q.attr({text:l});C||q.css(L.style).shadow(L.shadow).attr({stroke:L.borderColor||f.color||D.color||y.neutralColor80});n=n.tt=q;k=n.getBBox();l=k.width+n.strokeWidth();g&&(ea=k.height,H+=ea,Y&&(da-=ea));D=f.plotX;D=void 0===
269
- D?0:D;m=f.plotY;m=void 0===m?0:m;q=f.series;if(f.isHeader){D=p+D;var G=E+h/2}else{var B=q.xAxis,x=q.yAxis;D=B.pos+d(D,-J,B.len+J);q.shouldShowTooltip(0,x.pos-E+m,{ignoreX:!0})&&(G=x.pos+m)}D=d(D,P.left-J,P.right+J);"number"===typeof G?(k=k.height+1,m=U?U.call(e,l,k,f):b(D,G,g,l),a.push({align:U?0:void 0,anchorX:D,anchorY:G,boxWidth:l,point:f,rank:u(m.rank,g?1:0),size:k,target:m.y,tt:n,x:m.x})):n.isActive=!1}return a},[]);!U&&a.some(function(c){var a=(e.outside?Q:0)+c.anchorX;return a<P.left&&a+c.boxWidth<
270
- P.right?!0:a<Q-P.left+c.boxWidth&&P.right-a>a})&&(a=a.map(function(c){var a=b(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return k(c,{target:a.y,x:a.x})}));e.cleanSplit();m(a,H);var ca=Q,fa=Q;a.forEach(function(c){var a=c.x,b=c.boxWidth;c=c.isHeader;c||(e.outside&&Q+a<ca&&(ca=Q+a),!c&&e.outside&&ca+b>fa&&(fa=Q+a))});a.forEach(function(c){var a=c.x,b=c.anchorX,d=c.pos,l=c.point.isHeader;d={visibility:"undefined"===typeof d?"hidden":"inherit",x:a,y:d+da,anchorX:b,anchorY:c.anchorY};if(e.outside&&
271
- a<b){var f=Q-ca;0<f&&(l||(d.x=a+f,d.anchorX=b+f),l&&(d.x=(fa-ca)/2,d.anchorX=b+f))}c.tt.attr(d)});a=e.container;r=e.renderer;e.outside&&a&&r&&(g=z.getBBox(),r.setSize(g.width+g.x,g.height+g.y,!1),a.style.left=ca+"px",a.style.top=f+"px")};a.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var a=this.chart,c=this.label,b=this.shared?a.hoverPoints:a.hoverPoint;if(c&&b){var d={x:0,y:0,width:0,height:0};b=this.getAnchor(b);var f=
272
- c.getBBox();b[0]+=a.plotLeft-c.translateX;b[1]+=a.plotTop-c.translateY;d.x=Math.min(0,b[0]);d.y=Math.min(0,b[1]);d.width=0>b[0]?Math.max(Math.abs(b[0]),f.width-b[0]):Math.max(Math.abs(b[0]),f.width);d.height=0>b[1]?Math.max(Math.abs(b[1]),f.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),f.height);this.tracker?this.tracker.attr(d):(this.tracker=c.renderer.rect(d).addClass("highcharts-tracker").add(c),a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"',
273
- 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(a,c){var b=a.series,e=b.tooltipOptions,d=b.xAxis,g=d&&d.dateTime;d={isFooter:c,labelConfig:a};var n=e.xDateFormat,q=e[c?"footerFormat":"headerFormat"];J(this,"headerFormatter",d,function(c){g&&!n&&f(a.key)&&(n=g.getXDateFormat(a.key,e.dateTimeLabelFormats));g&&n&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(c){q=
274
- q.replace("{point."+c+"}","{point."+c+":"+n+"}")});b.chart.styledMode&&(q=this.styledModeFormat(q));c.text=r(q,{point:a,series:b},this.chart)});return d.text};a.prototype.update=function(a){this.destroy();x(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,x(!0,this.options,a))};a.prototype.updatePosition=function(a){var c=this.chart,e=this.options,d=c.pointer,f=this.getLabel();d=d.getChartPosition();var g=(e.positioner||this.getPosition).call(this,f.width,f.height,a),n=a.plotX+c.plotLeft;
275
- a=a.plotY+c.plotTop;if(this.outside){e=e.borderWidth+2*this.distance;this.renderer.setSize(f.width+e,f.height+e,!1);if(1!==d.scaleX||1!==d.scaleY)b(this.container,{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),n*=d.scaleX,a*=d.scaleY;n+=d.left-g.x;a+=d.top-g.y}this.move(Math.round(g.x),Math.round(g.y||0),n,a)};return a}();"";return a});H(a,"Core/Series/Point.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/FormatUtilities.js"],a["Core/Utilities.js"]],
276
- function(a,v,y,z,A){var r=v.animObject,C=y.defaultOptions,t=z.format,m=A.addEvent,h=A.defined,d=A.erase,b=A.extend,g=A.fireEvent,p=A.getNestedProperty,k=A.isArray,J=A.isFunction,F=A.isNumber,f=A.isObject,B=A.merge,x=A.objectEach,u=A.pick,E=A.syncTimeout,q=A.removeEvent,n=A.uniqueKey;v=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=
277
- !0;this.x=void 0}e.prototype.animateBeforeDestroy=function(){var c=this,a={x:c.startXPos,opacity:0},e=c.getGraphicalProps();e.singular.forEach(function(b){c[b]=c[b].animate("dataLabel"===b?{x:c[b].startXPos,y:c[b].startYPos,opacity:0}:a)});e.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.animate(b({x:c.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})};e.prototype.applyOptions=function(c,a){var d=this.series,l=d.options.pointValKey||d.pointValKey;c=e.prototype.optionsToObject.call(this,
278
- c);b(this,c);this.options=this.options?b(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;l&&(this.y=e.prototype.getNestedProperty.call(this,l));this.formatPrefix=(this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!F(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof a&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));"undefined"===typeof this.x&&d?this.x="undefined"===typeof a?d.autoIncrement():a:F(c.x)&&
279
- d.options.relativeXValue&&(this.x=d.autoIncrement(c.x));return this};e.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)q(a),a.destroyElements();for(n in a)a[n]=null}var a=this,b=a.series,e=b.chart;b=b.options.dataSorting;var f=e.hoverPoints,g=r(a.series.chart.renderer.globalAnimation),n;a.legendItem&&e.legend.destroyItem(a);f&&(a.setState(),d(f,a),f.length||(e.hoverPoints=null));if(a===e.hoverPoint)a.onMouseOut();b&&b.enabled?(this.animateBeforeDestroy(),E(c,g.duration)):
280
- c();e.pointCount--};e.prototype.destroyElements=function(a){var c=this;a=c.getGraphicalProps(a);a.singular.forEach(function(a){c[a]=c[a].destroy()});a.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.destroy()});delete c[a]})};e.prototype.firePointEvent=function(a,b,e){var c=this,d=this.series.options;(d.point.events[a]||c.options&&c.options.events&&c.options.events[a])&&c.importEvents();"click"===a&&d.allowPointSelect&&(e=function(a){c.select&&c.select(null,a.ctrlKey||a.metaKey||
281
- a.shiftKey)});g(c,a,b,e)};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(a){var c=this,b=
282
- [],e={singular:[],plural:[]},d;a=a||{graphic:1,dataLabel:1};a.graphic&&b.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&b.push("dataLabel","dataLabelUpper","connector");for(d=b.length;d--;){var f=b[d];c[f]&&e.singular.push(f)}["dataLabel","connector"].forEach(function(b){var d=b+"s";a[b]&&c[d]&&e.plural.push(d)});return e};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,
283
- percentage:this.percentage,total:this.total||this.stackTotal}};e.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?p(a,this.options):this[a]};e.prototype.getZone=function(){var a=this.series,b=a.zones;a=a.zoneAxis||"y";var e,d=0;for(e=b[d];this[a]>=e.value;)e=b[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=e&&e.color&&!this.options.color?e.color:this.nonZonedColor;return e};e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||
284
- this.graphic.element.nodeName))!==this.shapeType};e.prototype.init=function(a,b,e){this.series=a;this.applyOptions(b,e);this.id=h(this.id)?this.id:n();this.resolveColor();a.chart.pointCount++;g(this,"afterInit");return this};e.prototype.optionsToObject=function(a){var c=this.series,b=c.options.keys,d=b||c.pointArrayMap||["y"],f=d.length,g={},n=0,q=0;if(F(a)||null===a)g[d[0]]=a;else if(k(a))for(!b&&a.length>f&&(c=typeof a[0],"string"===c?g.name=a[0]:"number"===c&&(g.x=a[0]),n++);q<f;)b&&"undefined"===
285
- typeof a[n]||(0<d[q].indexOf(".")?e.prototype.setNestedProperty(g,a[n],d[q]):g[d[q]]=a[n]),n++,q++;else"object"===typeof a&&(g=a,a.dataLabels&&(c._hasPointLabels=!0),a.marker&&(c._hasPointMarkers=!0));return g};e.prototype.resolveColor=function(){var a=this.series,b=a.chart.styledMode;var e=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!b){e=a.options.colors||a.chart.options.colors;var d=e[a.colorCounter];e=e.length}b=a.colorCounter;a.colorCounter++;a.colorCounter===
286
- e&&(a.colorCounter=0)}else b||(d=a.color),b=a.colorIndex;this.colorIndex=u(this.options.colorIndex,b);this.color=u(this.options.color,d)};e.prototype.setNestedProperty=function(a,b,e){e.split(".").reduce(function(a,c,e,d){a[c]=d.length-1===e?b:f(a[c],!0)?a[c]:{};return a[c]},a);return a};e.prototype.tooltipFormatter=function(a){var c=this.series,b=c.tooltipOptions,e=u(b.valueDecimals,""),d=b.valuePrefix||"",f=b.valueSuffix||"";c.chart.styledMode&&(a=c.chart.tooltip.styledModeFormat(a));(c.pointArrayMap||
287
- ["y"]).forEach(function(c){c="{point."+c;if(d||f)a=a.replace(RegExp(c+"}","g"),d+c+"}"+f);a=a.replace(RegExp(c+"}","g"),c+":,."+e+"f}")});return t(a,{point:this,series:this.series},c.chart)};e.prototype.update=function(a,b,e,d){function c(){l.applyOptions(a);var c=n&&l.hasDummyGraphic;c=null===l.y?!c:c;n&&c&&(l.graphic=n.destroy(),delete l.hasDummyGraphic);f(a,!0)&&(n&&n.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(l.graphic=n.destroy()),a&&a.dataLabels&&l.dataLabel&&(l.dataLabel=
288
- l.dataLabel.destroy()),l.connector&&(l.connector=l.connector.destroy()));h=l.index;g.updateParallelArrays(l,h);k.data[h]=f(k.data[h],!0)||f(a,!0)?l.options:u(a,k.data[h]);g.isDirty=g.isDirtyData=!0;!g.fixedBox&&g.hasCartesianSeries&&(q.isDirtyBox=!0);"point"===k.legendType&&(q.isDirtyLegend=!0);b&&q.redraw(e)}var l=this,g=l.series,n=l.graphic,q=g.chart,k=g.options,h;b=u(b,!0);!1===d?c():l.firePointEvent("update",{options:a},c)};e.prototype.remove=function(a,b){this.series.removePoint(this.series.data.indexOf(this),
289
- a,b)};e.prototype.select=function(a,b){var c=this,e=c.series,d=e.chart;this.selectedStaging=a=u(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;e.options.data[e.data.indexOf(c)]=c.options;c.setState(a&&"select");b||d.getSelectedPoints().forEach(function(a){var b=a.series;a.selected&&a!==c&&(a.selected=a.options.selected=!1,b.options.data[b.data.indexOf(a)]=a.options,a.setState(d.hoverPoints&&b.options.inactiveOtherPoints?"inactive":""),
290
- a.firePointEvent("unselect"))})});delete this.selectedStaging};e.prototype.onMouseOver=function(a){var c=this.series.chart,b=c.pointer;a=a?b.normalize(a):b.getChartCoordinatesFromPoint(this,c.inverted);b.runPointActions(a,this)};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=
291
- this,b=B(a.series.options.point,a.options).events;a.events=b;x(b,function(c,b){J(c)&&m(a,b,c)});this.hasImportedEvents=!0}};e.prototype.setState=function(c,e){var d=this.series,f=this.state,l=d.options.states[c||"normal"]||{},n=C.plotOptions[d.type].marker&&d.options.marker,q=n&&!1===n.enabled,k=n&&n.states&&n.states[c||"normal"]||{},h=!1===k.enabled,p=this.marker||{},m=d.chart,B=n&&d.markerAttribs,E=d.halo,x,r=d.stateMarkerGraphic;c=c||"";if(!(c===this.state&&!e||this.selected&&"select"!==c||!1===
292
- l.enabled||c&&(h||q&&!1===k.enabled)||c&&p.states&&p.states[c]&&!1===p.states[c].enabled)){this.state=c;B&&(x=d.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){f&&this.graphic.removeClass("highcharts-point-"+f);c&&this.graphic.addClass("highcharts-point-"+c);if(!m.styledMode){var t=d.pointAttribs(this,c);var w=u(m.options.chart.animation,l.animation);d.options.inactiveOtherPoints&&F(t.opacity)&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:t.opacity},w)}),this.connector&&
293
- this.connector.animate({opacity:t.opacity},w));this.graphic.animate(t,w)}x&&this.graphic.animate(x,u(m.options.chart.animation,k.animation,n.animation));r&&r.hide()}else{if(c&&k){f=p.symbol||d.symbol;r&&r.currentSymbol!==f&&(r=r.destroy());if(x)if(r)r[e?"animate":"attr"]({x:x.x,y:x.y});else f&&(d.stateMarkerGraphic=r=m.renderer.symbol(f,x.x,x.y,x.width,x.height).add(d.markerGroup),r.currentSymbol=f);!m.styledMode&&r&&r.attr(d.pointAttribs(this,c))}r&&(r[c&&this.isInside?"show":"hide"](),r.element.point=
294
- this,r.addClass(this.getClassName(),!0))}l=l.halo;x=(r=this.graphic||r)&&r.visibility||"inherit";l&&l.size&&r&&"hidden"!==x&&!this.isCluster?(E||(d.halo=E=m.renderer.path().add(r.parentGroup)),E.show()[e?"animate":"attr"]({d:this.haloPath(l.size)}),E.attr({"class":"highcharts-halo highcharts-color-"+u(this.colorIndex,d.colorIndex)+(this.className?" "+this.className:""),visibility:x,zIndex:-1}),E.point=this,m.styledMode||E.attr(b({fill:this.color||d.color,"fill-opacity":l.opacity},a.filterUserAttributes(l.attributes||
295
- {})))):E&&E.point&&E.point.haloPath&&E.animate({d:E.point.haloPath(0)},null,E.hide);g(this,"afterSetState",{state:c})}};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 v});H(a,"Core/Pointer.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Tooltip.js"],a["Core/Utilities.js"]],function(a,v,y,z,A){var r=a.parse,C=v.charts,t=v.noop,m=A.addEvent,h=A.attr,d=A.css,
296
- b=A.defined,g=A.extend,p=A.find,k=A.fireEvent,J=A.isNumber,F=A.isObject,f=A.objectEach,B=A.offset,x=A.pick,u=A.splat;a=function(){function a(a,b){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=!1;this.options=b;this.init(a,b)}a.prototype.applyInactiveState=function(a){var b=[],e;(a||[]).forEach(function(a){e=a.series;b.push(e);e.linkedParent&&b.push(e.linkedParent);e.linkedSeries&&(b=b.concat(e.linkedSeries));e.navigatorSeries&&b.push(e.navigatorSeries)});
297
- this.chart.series.forEach(function(a){-1===b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var b=this;this.eventsToUnbind.forEach(function(a){return a()});this.eventsToUnbind=[];v.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);f(b,function(a,e){b[e]=void 0})};
298
- a.prototype.drag=function(a){var b=this.chart,e=b.options.chart,c=this.zoomHor,d=this.zoomVert,f=b.plotLeft,g=b.plotTop,q=b.plotWidth,k=b.plotHeight,h=this.mouseDownX||0,p=this.mouseDownY||0,u=F(e.panning)?e.panning&&e.panning.enabled:e.panning,m=e.panKey&&a[e.panKey+"Key"],B=a.chartX,x=a.chartY,E=this.selectionMarker;if(!E||!E.touch)if(B<f?B=f:B>f+q&&(B=f+q),x<g?x=g:x>g+k&&(x=g+k),this.hasDragged=Math.sqrt(Math.pow(h-B,2)+Math.pow(p-x,2)),10<this.hasDragged){var t=b.isInsidePlot(h-f,p-g,{visiblePlotOnly:!0});
299
- b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&t&&!m&&!E&&(this.selectionMarker=E=b.renderer.rect(f,g,c?1:q,d?1:k,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||E.attr({fill:e.selectionMarkerFill||r(y.highlightColor80).setOpacity(.25).get()}));E&&c&&(c=B-h,E.attr({width:Math.abs(c),x:(0<c?0:c)+h}));E&&d&&(c=x-p,E.attr({height:Math.abs(c),y:(0<c?0:c)+p}));t&&!E&&u&&b.pan(a,e.panning)}};a.prototype.dragStart=function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=
300
- !1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY};a.prototype.drop=function(a){var f=this,e=this.chart,c=this.hasPinched;if(this.selectionMarker){var l={originalEvent:a,xAxis:[],yAxis:[]},q=this.selectionMarker,h=q.attr?q.attr("x"):q.x,p=q.attr?q.attr("y"):q.y,u=q.attr?q.attr("width"):q.width,m=q.attr?q.attr("height"):q.height,B;if(this.hasDragged||c)e.axes.forEach(function(e){if(e.zoomEnabled&&b(e.min)&&(c||f[{xAxis:"zoomX",yAxis:"zoomY"}[e.coll]])&&J(h)&&J(p)){var d=
301
- e.horiz,g="touchend"===a.type?e.minPixelPadding:0,n=e.toValue((d?h:p)+g);d=e.toValue((d?h+u:p+m)-g);l[e.coll].push({axis:e,min:Math.min(n,d),max:Math.max(n,d)});B=!0}}),B&&k(e,"selection",l,function(a){e.zoom(g(a,c?{animation:!1}:null))});J(e.index)&&(this.selectionMarker=this.selectionMarker.destroy());c&&this.scaleGroups()}e&&J(e.index)&&(d(e.container,{cursor:e._cursor}),e.cancelClick=10<this.hasDragged,e.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=
302
- function(a,b,e){var c=this.chart,d=c.hoverPoint;c=c.tooltip;if(d&&c&&c.isStickyOnContact())return d;var f;a.forEach(function(a){var c=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(e,c);if((c=F(a,!0)&&a.series)&&!(c=!F(f,!0))){c=f.distX-a.distX;var d=f.dist-a.dist,l=(a.series.group&&a.series.group.zIndex)-(f.series.group&&f.series.group.zIndex);c=0<(0!==c&&b?c:0!==d?d:0!==l?l:f.series.index>a.series.index?-1:1)}c&&(f=a)});return f};a.prototype.getChartCoordinatesFromPoint=
303
- function(a,b){var e=a.series,c=e.xAxis;e=e.yAxis;var d=a.shapeArgs;if(c&&e){var f=x(a.clientX,a.plotX),g=a.plotY||0;a.isNode&&d&&J(d.x)&&J(d.y)&&(f=d.x,g=d.y);return b?{chartX:e.len+e.pos-g,chartY:c.len+c.pos-f}:{chartX:f+c.pos,chartY:g+e.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,b=B(a);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var e=a.offsetWidth;a=a.offsetHeight;
304
- 2<e&&2<a&&(this.chartPosition.scaleX=b.width/e,this.chartPosition.scaleY=b.height/a);return this.chartPosition};a.prototype.getCoordinates=function(a){var b={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(e){b[e.isXAxis?"xAxis":"yAxis"].push({axis:e,value:e.toValue(a[e.horiz?"chartX":"chartY"])})});return b};a.prototype.getHoverData=function(a,b,e,c,d,f){var l=[];c=!(!c||!a);var g={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:d};k(this,"beforeGetHoverData",g);var n=b&&!b.stickyTracking?
305
- [b]:e.filter(function(a){return g.filter?g.filter(a):a.visible&&!(!d&&a.directTouch)&&x(a.options.enableMouseTracking,!0)&&a.stickyTracking});var q=c||!f?a:this.findNearestKDPoint(n,d,f);b=q&&q.series;q&&(d&&!b.noSharedTooltip?(n=e.filter(function(a){return g.filter?g.filter(a):a.visible&&!(!d&&a.directTouch)&&x(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),n.forEach(function(a){var c=p(a.points,function(a){return a.x===q.x&&!a.isNull});F(c)&&(a.chart.isBoosting&&(c=a.getPoint(c)),l.push(c))})):
306
- l.push(q));g={hoverPoint:q};k(this,"afterGetHoverData",g);return{hoverPoint:g.hoverPoint,hoverSeries:b,hoverPoints:l}};a.prototype.getPointFromEvent=function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b};a.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()};
307
- a.prototype.inClass=function(a,b){for(var e;a;){if(e=h(a,"class")){if(-1!==e.indexOf(b))return!0;if(-1!==e.indexOf("highcharts-container"))return!1}a=a.parentNode}};a.prototype.init=function(a,b){this.options=b;this.chart=a;this.runChartClick=!(!b.chart.events||!b.chart.events.click);this.pinchDown=[];this.lastValidTouch={};z&&(a.tooltip=new z(a,b.tooltip),this.followTouchMove=x(b.tooltip.followTouchMove,!0));this.setDOMEvents()};a.prototype.normalize=function(a,b){var e=a.touches,c=e?e.length?e.item(0):
308
- x(e.changedTouches,a.changedTouches)[0]:a;b||(b=this.getChartPosition());e=c.pageX-b.left;c=c.pageY-b.top;e/=b.scaleX;c/=b.scaleY;return g(a,{chartX:Math.round(e),chartY:Math.round(c)})};a.prototype.onContainerClick=function(a){var b=this.chart,e=b.hoverPoint;a=this.normalize(a);var c=b.plotLeft,d=b.plotTop;b.cancelClick||(e&&this.inClass(a.target,"highcharts-tracker")?(k(e.series,"click",g(a,{point:e})),b.hoverPoint&&e.firePointEvent("click",a)):(g(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-
309
- c,a.chartY-d,{visiblePlotOnly:!0})&&k(b,"click",a)))};a.prototype.onContainerMouseDown=function(a){var b=1===((a.buttons||a.button)&1);a=this.normalize(a);if(v.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||b)this.zoomOption(a),b&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};a.prototype.onContainerMouseLeave=function(b){var d=C[x(a.hoverChartIndex,-1)],e=this.chart.tooltip;e&&e.shouldStickOnContact()&&this.inClass(b.relatedTarget,"highcharts-tooltip-container")||
310
- (b=this.normalize(b),d&&(b.relatedTarget||b.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),e&&!e.isHidden&&this.reset())};a.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};a.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-
311
- b.plotLeft,a.chartY-b.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};a.prototype.onDocumentTouchEnd=function(b){var d=C[x(a.hoverChartIndex,-1)];d&&d.pointer.drop(b)};a.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};a.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};a.prototype.onDocumentMouseMove=
312
- function(a){var b=this.chart,e=this.chartPosition;a=this.normalize(a,e);var c=b.tooltip;!e||c&&c.isStickyOnContact()||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop,{visiblePlotOnly:!0})||this.inClass(a.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(b){var d=C[x(a.hoverChartIndex,-1)];d&&d.pointer.drop(b)};a.prototype.pinch=function(a){var b=this,e=b.chart,c=b.pinchDown,d=a.touches||[],f=d.length,k=b.lastValidTouch,h=b.hasZoom,q={},p=1===f&&(b.inClass(a.target,
313
- "highcharts-tracker")&&e.runTrackerClick||b.runChartClick),u={},m=b.selectionMarker;1<f?b.initiated=!0:1===f&&this.followTouchMove&&(b.initiated=!1);h&&b.initiated&&!p&&!1!==a.cancelable&&a.preventDefault();[].map.call(d,function(a){return b.normalize(a)});"touchstart"===a.type?([].forEach.call(d,function(a,b){c[b]={chartX:a.chartX,chartY:a.chartY}}),k.x=[c[0].chartX,c[1]&&c[1].chartX],k.y=[c[0].chartY,c[1]&&c[1].chartY],e.axes.forEach(function(a){if(a.zoomEnabled){var c=e.bounds[a.horiz?"h":"v"],
314
- b=a.minPixelPadding,d=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)),g=Math.max(d,f);c.min=Math.min(a.pos,Math.min(d,f)-b);c.max=Math.max(a.pos+a.len,g+b)}}),b.res=!0):b.followTouchMove&&1===f?this.runPointActions(b.normalize(a)):c.length&&(m||(b.selectionMarker=m=g({destroy:t,touch:!0},e.plotBox)),b.pinchTranslate(c,d,q,m,u,k),b.hasPinched=h,b.scaleGroups(q,u),b.res&&(b.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=
315
- function(a,b,e,c,d,f){this.zoomHor&&this.pinchTranslateDirection(!0,a,b,e,c,d,f);this.zoomVert&&this.pinchTranslateDirection(!1,a,b,e,c,d,f)};a.prototype.pinchTranslateDirection=function(a,b,e,c,d,f,g,k){var l=this.chart,n=a?"x":"y",h=a?"X":"Y",q="chart"+h,p=a?"width":"height",u=l["plot"+(a?"Left":"Top")],m=l.inverted,B=l.bounds[a?"h":"v"],x=1===b.length,D=b[0][q],r=!x&&b[1][q];b=function(){"number"===typeof F&&20<Math.abs(D-r)&&(t=k||Math.abs(G-F)/Math.abs(D-r));L=(u-G)/t+D;E=l["plot"+(a?"Width":
316
- "Height")]/t};var E,L,t=k||1,G=e[0][q],F=!x&&e[1][q];b();e=L;if(e<B.min){e=B.min;var w=!0}else e+E>B.max&&(e=B.max-E,w=!0);w?(G-=.8*(G-g[n][0]),"number"===typeof F&&(F-=.8*(F-g[n][1])),b()):g[n]=[G,F];m||(f[n]=L-u,f[p]=E);f=m?1/t:t;d[p]=E;d[n]=e;c[m?a?"scaleY":"scaleX":"scale"+h]=t;c["translate"+h]=f*u+(G-f*D)};a.prototype.reset=function(a,b){var e=this.chart,c=e.hoverSeries,d=e.hoverPoint,f=e.hoverPoints,g=e.tooltip,k=g&&g.shared?f:d;a&&k&&u(k).forEach(function(c){c.series.isCartesian&&"undefined"===
317
- typeof c.plotX&&(a=!1)});if(a)g&&k&&u(k).length&&(g.refresh(k),g.shared&&f?f.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))}):d&&(d.setState(d.state,!0),e.axes.forEach(function(a){a.crosshair&&d.series[a.coll]===a&&a.drawCrosshair(null,d)})));else{if(d)d.onMouseOut();f&&f.forEach(function(a){a.setState()});if(c)c.onMouseOut();g&&g.hide(b);this.unDocMouseMove&&
318
- (this.unDocMouseMove=this.unDocMouseMove());e.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=e.hoverPoints=e.hoverPoint=null}};a.prototype.runPointActions=function(b,d){var e=this.chart,c=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,f=c?c.shared:!1,g=d||e.hoverPoint,k=g&&g.series||e.hoverSeries;d=this.getHoverData(g,k,e.series,(!b||"touchmove"!==b.type)&&(!!d||k&&k.directTouch&&this.isDirectTouch),f,b);g=d.hoverPoint;k=d.hoverSeries;var n=d.hoverPoints;d=k&&k.tooltipOptions.followPointer&&
319
- !k.tooltipOptions.split;f=f&&k&&!k.noSharedTooltip;if(g&&(g!==e.hoverPoint||c&&c.isHidden)){(e.hoverPoints||[]).forEach(function(a){-1===n.indexOf(a)&&a.setState()});if(e.hoverSeries!==k)k.onMouseOver();this.applyInactiveState(n);(n||[]).forEach(function(a){a.setState("hover")});e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut");if(!g.series)return;e.hoverPoints=n;e.hoverPoint=g;g.firePointEvent("mouseOver");c&&c.refresh(f?n:g,b)}else d&&c&&!c.isHidden&&(g=c.getAnchor([{}],b),e.isInsidePlot(g[0],
320
- g[1],{visiblePlotOnly:!0})&&c.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=m(e.container.ownerDocument,"mousemove",function(c){var b=C[a.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));e.axes.forEach(function(a){var c=x((a.crosshair||{}).snap,!0),d;c&&((d=e.hoverPoint)&&d.series[a.coll]===a||(d=p(n,function(c){return c.series[a.coll]===a})));d||!c?a.drawCrosshair(b,d):a.hideCrosshair()})};a.prototype.scaleGroups=
321
- function(a,b){var e=this.chart;e.series.forEach(function(c){var d=a||c.getPlotBox();c.xAxis&&c.xAxis.zoomEnabled&&c.group&&(c.group.attr(d),c.markerGroup&&(c.markerGroup.attr(d),c.markerGroup.clip(b?e.clipRect:null)),c.dataLabelsGroup&&c.dataLabelsGroup.attr(d))});e.clipRect.attr(b||e.clipBox)};a.prototype.setDOMEvents=function(){var b=this,d=this.chart.container,e=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);
322
- this.eventsToUnbind.push(m(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(m(d,"mouseleave",this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=m(e,"mouseup",this.onDocumentMouseUp.bind(this)));for(var c=this.chart.renderTo.parentElement;c&&"BODY"!==c.tagName;)this.eventsToUnbind.push(m(c,"scroll",function(){delete b.chartPosition})),c=c.parentElement;v.hasTouch&&(this.eventsToUnbind.push(m(d,"touchstart",this.onContainerTouchStart.bind(this),
323
- {passive:!1})),this.eventsToUnbind.push(m(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=m(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var b=this.chart,d=v.charts[x(a.hoverChartIndex,-1)];if(d&&d!==b)d.pointer.onContainerMouseLeave({relatedTarget:!0});d&&d.mouseIsDown||(a.hoverChartIndex=b.index)};a.prototype.touch=function(a,b){var e=this.chart,c;this.setHoverChartIndex();
324
- if(1===a.touches.length)if(a=this.normalize(a),(c=e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!e.openMenu){b&&this.runPointActions(a);if("touchmove"===a.type){b=this.pinchDown;var d=b[0]?4<=Math.sqrt(Math.pow(b[0].chartX-a.chartX,2)+Math.pow(b[0].chartY-a.chartY,2)):!1}x(d,!0)&&this.pinch(a)}else b&&this.reset();else 2===a.touches.length&&this.pinch(a)};a.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};
325
- a.prototype.zoomOption=function(a){var b=this.chart,e=b.options.chart;b=b.inverted;var c=e.zoomType||"";/touch/.test(a.type)&&(c=x(e.pinchType,c));this.zoomX=a=/x/.test(c);this.zoomY=e=/y/.test(c);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e};return a}();"";return a});H(a,"Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,v,y){function r(){var a=[];a.item=function(a){return this[a]};g(k,function(b){a.push({pageX:b.pageX,pageY:b.pageY,
326
- target:b.target})});return a}function A(a,b,d,g){var f=C[v.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!f||(f=f.pointer,g(a),f[b]({type:d,target:a.currentTarget,preventDefault:m,touches:r()}))}var w=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=
327
- b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),C=a.charts,t=a.doc,m=a.noop,h=a.win,d=y.addEvent,b=y.css,g=y.objectEach,p=y.removeEvent,k={},J=!!h.PointerEvent;return function(g){function f(){return null!==g&&g.apply(this,arguments)||this}w(f,g);f.isRequired=function(){return!(a.hasTouch||!h.PointerEvent&&!h.MSPointerEvent)};f.prototype.batchMSEvents=function(a){a(this.chart.container,J?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,
328
- J?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(t,J?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};f.prototype.destroy=function(){this.batchMSEvents(p);g.prototype.destroy.call(this)};f.prototype.init=function(a,d){g.prototype.init.call(this,a,d);this.hasZoom&&b(a.container,{"-ms-touch-action":"none","touch-action":"none"})};f.prototype.onContainerPointerDown=function(a){A(a,"onContainerTouchStart","touchstart",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};
329
- f.prototype.onContainerPointerMove=function(a){A(a,"onContainerTouchMove","touchmove",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY};k[a.pointerId].target||(k[a.pointerId].target=a.currentTarget)})};f.prototype.onDocumentPointerUp=function(a){A(a,"onDocumentTouchEnd","touchend",function(a){delete k[a.pointerId]})};f.prototype.setDOMEvents=function(){g.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(d)};return f}(v)});H(a,"Core/Legend/Legend.js",
330
- [a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w){var r=a.animObject,t=a.setAnimation,m=v.format;a=y.isFirefox;var h=y.marginNames;y=y.win;var d=A.distribute,b=w.addEvent,g=w.createElement,p=w.css,k=w.defined,J=w.discardElement,F=w.find,f=w.fireEvent,B=w.isNumber,x=w.merge,u=w.pick,E=w.relativeLength,q=w.stableSort,n=w.syncTimeout;A=w.wrap;w=function(){function a(a,
331
- 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={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=
332
- a;this.init(a,b)}a.prototype.init=function(a,e){this.chart=a;this.setOptions(e);e.enabled&&(this.render(),b(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=b(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(a){var c=u(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=x(this.itemStyle,
333
- a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=c;this.initialItemY=c-5;this.symbolWidth=u(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};a.prototype.update=function(a,b){var c=this.chart;this.setOptions(x(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;u(b,!0)&&c.redraw();f(this,"afterUpdate")};a.prototype.colorizeItem=function(a,b){a.legendGroup[b?
334
- "removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var c=this.options,e=a.legendItem,d=a.legendLine,g=a.legendSymbol,l=this.itemHiddenStyle.color;c=b?c.itemStyle.color:l;var k=b?a.color||l:l,h=a.options&&a.options.marker,n={fill:k};e&&e.css({fill:c,color:c});d&&d.attr({stroke:k});g&&(h&&g.isMarker&&(n=a.pointAttribs(),b||(n.stroke=n.fill=l)),g.attr(n))}f(this,"afterColorizeItem",{item:a,visible:b})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,
335
- this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(a){var c=this,b=this.options,e=b.symbolPadding,d=!b.rtl,g=a._legendItemPos;b=g[0];g=g[1];var h=a.checkbox,n=a.legendGroup;n&&n.element&&(e={translateX:d?b:this.legendWidth-b-2*e-4,translateY:g},d=function(){f(c,"afterPositionItem",{item:a})},k(n.translateY)?n.animate(e,void 0,d):(n.attr(e),d()));h&&(h.x=b,h.y=g)};a.prototype.destroyItem=function(a){var c=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&
336
- (a[c]=a[c].destroy())});c&&J(a.checkbox)};a.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(c){["legendItem","legendGroup"].forEach(a,c)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};a.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,b=this.clipHeight||this.legendHeight,e=this.titleHeight;if(a){var d=a.translateY;this.allItems.forEach(function(c){var f=c.checkbox;
337
- if(f){var g=d+e+f.y+(this.scrollOffset||0)+3;p(f,{left:a.translateX+c.checkboxOffset+f.x-20+"px",top:g+"px",display:this.proximate||g>d-6&&g<d+b-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var a=this.options,b=this.padding,e=a.title,d=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,b-3,b-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+
338
- "px"}),a=this.title.getBBox(),d=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d};a.prototype.setText=function(a){var c=this.options;a.legendItem.attr({text:c.labelFormat?m(c.labelFormat,a,this.chart):c.labelFormatter.call(a)})};a.prototype.renderItem=function(a){var c=this.chart,b=c.renderer,e=this.options,d=this.symbolWidth,f=e.symbolPadding||0,g=this.itemStyle,k=this.itemHiddenStyle,h="horizontal"===e.layout?u(e.itemDistance,20):0,n=!e.rtl,q=!a.series,
339
- p=!q&&a.series.drawLegendSymbol?a.series:a,m=p.options,B=this.createCheckboxForItem&&m&&m.showCheckbox,E=e.useHTML,r=a.options.className,t=a.legendItem;m=d+f+h+(B?20:0);t||(a.legendGroup=b.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+a.colorIndex+(r?" "+r:"")+(q?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=t=b.text("",n?d+f:-f,this.baseline||0,E),c.styledMode||t.css(x(a.visible?g:k)),t.attr({align:n?"left":"right",zIndex:2}).add(a.legendGroup),
340
- this.baseline||(this.fontMetrics=b.fontMetrics(c.styledMode?12:g.fontSize,t),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,t.attr("y",this.baseline),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,e.squareSymbol&&(this.symbolWidth=u(e.symbolWidth,Math.max(this.symbolHeight,16)),m=this.symbolWidth+f+h+(B?20:0),n&&t.attr("x",this.symbolWidth+f))),p.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,t,E));B&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);
341
- this.colorizeItem(a,a.visible);!c.styledMode&&g.width||t.css({width:(e.itemWidth||this.widthOption||c.spacingBox.width)-m+"px"});this.setText(a);c=t.getBBox();a.itemWidth=a.checkboxOffset=e.itemWidth||a.legendItemWidth||c.width+m;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||c.height||this.symbolHeight)};a.prototype.layoutItem=function(a){var c=this.options,b=this.padding,e="horizontal"===c.layout,
342
- d=a.itemHeight,f=this.itemMarginBottom,g=this.itemMarginTop,k=e?u(c.itemDistance,20):0,h=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:a.itemWidth;e&&this.itemX-b+c>h&&(this.itemX=b,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+f),this.lastLineHeight=0);this.lastItemY=g+this.itemY+f;this.lastLineHeight=Math.max(d,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=c:(this.itemY+=g+d+f,this.lastLineHeight=d);this.offsetWidth=this.widthOption||
343
- Math.max((e?this.itemX-b-(a.checkbox?0:k):c)+b,this.offsetWidth)};a.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(c){var b=c&&c.options;c&&u(b.showInLegend,k(b.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===b.legendType?c.data:c)))});f(this,"afterGetAllItems",{allItems:a});return a};a.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};
344
- a.prototype.adjustMargins=function(a,b){var c=this.chart,e=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,g){f.test(d)&&!k(a[g])&&(c[h[g]]=Math.max(c[h[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*e[g%2?"x":"y"]+u(e.margin,12)+b[g]+(c.titleOffset[g]||0)))})};a.prototype.proximatePositions=function(){var a=this.chart,b=[],e="left"===this.options.align;this.allItems.forEach(function(c){var d;var f=e;if(c.yAxis){c.xAxis.options.reversed&&
345
- (f=!f);c.points&&(d=F(f?c.points:c.points.slice(0).reverse(),function(a){return B(a.plotY)}));f=this.itemMarginTop+c.legendItem.getBBox().height+this.itemMarginBottom;var g=c.yAxis.top-a.plotTop;c.visible?(d=d?d.plotY:c.yAxis.height,d+=g-.3*f):d=g+c.yAxis.height;b.push({target:d,size:f,item:c})}},this);d(b,a.plotHeight).forEach(function(c){c.item._legendItemPos&&(c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos)})};a.prototype.render=function(){var a=this.chart,b=a.renderer,e=this.options,d=
346
- this.padding,g=this.getAllItems(),k=this.group,h=this.box;this.itemX=d;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=E(e.width,a.spacingBox.width-d);var n=a.spacingBox.width-2*d-e.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(n/=2);this.maxLegendWidth=this.widthOption||n;k||(this.group=k=b.g("legend").addClass(e.className||"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(k),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();
347
- q(g,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});e.reversed&&g.reverse();this.allItems=g;this.display=n=!!g.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;g.forEach(this.renderItem,this);g.forEach(this.layoutItem,this);g=(this.widthOption||this.offsetWidth)+d;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=d;h||(this.box=h=b.rect().addClass("highcharts-legend-box").attr({r:e.borderRadius}).add(k),
348
- h.isNew=!0);a.styledMode||h.attr({stroke:e.borderColor,"stroke-width":e.borderWidth||0,fill:e.backgroundColor||"none"}).shadow(e.shadow);0<g&&0<p&&(h[h.isNew?"attr":"animate"](h.crisp.call({},{x:0,y:0,width:g,height:p},h.strokeWidth())),h.isNew=!1);h[n?"show":"hide"]();a.styledMode&&"none"===k.getStyle("display")&&(g=p=0);this.legendWidth=g;this.legendHeight=p;n&&this.align();this.proximate||this.positionItems();f(this,"afterRender")};a.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);
349
- var c=this.chart,b=this.options,e=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?e+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<c.titleOffset[2]&&(e-=c.titleOffset[2]);e!==a.y&&(a=x(a,{y:e}));this.group.align(x(b,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":b.verticalAlign}),!0,a)};a.prototype.handleOverflow=function(a){var c=this,b=this.chart,e=b.renderer,d=this.options,f=d.y,g="top"===d.verticalAlign,k=this.padding,h=d.maxHeight,
350
- n=d.navigation,q=u(n.animation,!0),p=n.arrowSize||12,m=this.pages,B=this.allItems,x=function(a){"number"===typeof a?P.attr({height:a}):P&&(c.clipRect=P.destroy(),c.contentGroup.clip());c.contentGroup.div&&(c.contentGroup.div.style.clip=a?"rect("+k+"px,9999px,"+(k+a)+"px,0)":"auto")},E=function(a){c[a]=e.circle(0,0,1.3*p).translate(p/2,p/2).add(t);b.styledMode||c[a].attr("fill","rgba(0,0,0,0.0001)");return c[a]},r,L;f=b.spacingBox.height+(g?-f:f)-k;var t=this.nav,P=this.clipRect;"horizontal"!==d.layout||
351
- "middle"===d.verticalAlign||d.floating||(f/=2);h&&(f=Math.min(f,h));m.length=0;a&&0<f&&a>f&&!1!==n.enabled?(this.clipHeight=r=Math.max(f-20-this.titleHeight-k,0),this.currentPage=u(this.currentPage,1),this.fullHeight=a,B.forEach(function(a,c){var b=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),d=m.length;if(!d||b-m[d-1]>r&&(L||b)!==m[d-1])m.push(L||b),d++;a.pageIx=d-1;L&&(B[c-1].pageIx=d-1);c===B.length-1&&b+e-m[d-1]>r&&b!==L&&(m.push(b),a.pageIx=d);b!==L&&(L=b)}),P||(P=c.clipRect=
352
- e.clipRect(0,k,9999,0),c.contentGroup.clip(P)),x(r),t||(this.nav=t=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,p,p).add(t),E("upTracker").on("click",function(){c.scroll(-1,q)}),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation"),b.styledMode||this.pager.css(n.style),this.pager.add(t),this.down=e.symbol("triangle-down",0,0,p,p).add(t),E("downTracker").on("click",function(){c.scroll(1,q)})),c.scroll(0),a=f):t&&(x(),this.nav=t.destroy(),this.scrollGroup.attr({translateY:1}),
353
- this.clipHeight=0);return a};a.prototype.scroll=function(a,b){var c=this,e=this.chart,d=this.pages,g=d.length,l=this.clipHeight,k=this.options.navigation,h=this.pager,q=this.padding,p=this.currentPage+a;p>g&&(p=g);0<p&&("undefined"!==typeof b&&t(b,e),this.nav.attr({translateX:q,translateY:l+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),h.attr({text:p+"/"+
354
- g}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":p===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:1===p?k.inactiveColor:k.activeColor}),this.upTracker.css({cursor:1===p?"default":"pointer"}),this.down.attr({fill:p===g?k.inactiveColor:k.activeColor}),this.downTracker.css({cursor:p===g?"default":"pointer"})),this.scrollOffset=-d[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),
355
- this.currentPage=p,this.positionCheckboxes(),a=r(u(b,e.renderer.globalAnimation,!0)),n(function(){f(c,"afterScroll",{currentPage:p})},a.duration))};a.prototype.setItemEvents=function(a,b,e){var c=this,d=c.chart.renderer.boxWrapper,g=a instanceof z,l="highcharts-legend-"+(g?"point":"series")+"-active",k=c.chart.styledMode,h=function(b){c.allItems.forEach(function(c){a!==c&&[c].concat(c.linkedSeries||[]).forEach(function(a){a.setState(b,!g)})})};(e?[b,a.legendSymbol]:[a.legendGroup]).forEach(function(e){if(e)e.on("mouseover",
356
- function(){a.visible&&h("inactive");a.setState("hover");a.visible&&d.addClass(l);k||b.css(c.options.itemHoverStyle)}).on("mouseout",function(){c.chart.styledMode||b.css(x(a.visible?c.itemStyle:c.itemHiddenStyle));h("");d.removeClass(l);a.setState()}).on("click",function(c){var b=function(){a.setVisible&&a.setVisible();h(a.visible?"inactive":"")};d.removeClass(l);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,b):f(a,"legendItemClick",c,b)})})};a.prototype.createCheckboxForItem=
357
- function(a){a.checkbox=g("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);b(a.checkbox,"click",function(b){f(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})};return a}();(/Trident\/7\.0/.test(y.navigator&&y.navigator.userAgent)||a)&&A(w.prototype,"positionItem",function(a,b){var c=this,e=function(){b._legendItemPos&&a.call(c,b)};e();c.bubbleLegend||
358
- setTimeout(e)});"";return w});H(a,"Core/Series/SeriesRegistry.js",[a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=v.defaultOptions,w=z.error,C=z.extendClass,t=z.merge,m;(function(h){function d(a,d){var b=r.plotOptions||{},g=d.defaultOptions;d.prototype.pointClass||(d.prototype.pointClass=y);d.prototype.type=a;g&&(b[a]=g);h.seriesTypes[a]=d}h.seriesTypes=a.seriesTypes;h.getSeries=function(a,d){void 0===d&&(d={});var b=a.options.chart;
359
- b=d.type||b.type||b.defaultSeriesType||"";var g=h.seriesTypes[b];h||w(17,!0,a,{missingModuleFor:b});b=new g;"function"===typeof b.init&&b.init(a,d);return b};h.registerSeriesType=d;h.seriesType=function(a,g,p,k,m){var b=r.plotOptions||{};g=g||"";b[a]=t(b[g],p);d(a,C(h.seriesTypes[g]||function(){},k));h.seriesTypes[a].prototype.type=a;m&&(h.seriesTypes[a].prototype.pointClass=C(y,m));return h.seriesTypes[a]}})(m||(m={}));return m});H(a,"Core/Chart/Chart.js",[a["Core/Animation/AnimationUtilities.js"],
360
- a["Core/Axis/Axis.js"],a["Core/FormatUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend/Legend.js"],a["Core/MSPointer.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Pointer.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Time.js"],a["Core/Utilities.js"],a["Core/Renderer/HTML/AST.js"]],function(a,v,y,z,A,w,C,t,m,h,d,b,g,p,k,J){var r=a.animate,f=a.animObject,B=a.setAnimation,x=y.numberFormat,
361
- u=z.registerEventOptions,E=A.charts,q=A.doc,n=A.marginNames,e=A.svg,c=A.win,l=t.defaultOptions,D=t.defaultTime,G=b.seriesTypes,M=k.addEvent,I=k.attr,W=k.cleanRecursively,S=k.createElement,R=k.css,T=k.defined,ba=k.discardElement,K=k.erase,N=k.error,H=k.extend,ia=k.find,O=k.fireEvent,Z=k.getStyle,L=k.isArray,U=k.isNumber,P=k.isObject,X=k.isString,V=k.merge,Y=k.objectEach,Q=k.pick,da=k.pInt,ea=k.relativeLength,ja=k.removeEvent,ca=k.splat,fa=k.syncTimeout,ka=k.uniqueKey;a=function(){function a(a,b,c){this.series=
362
- 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=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=
363
- void 0;this.getArgs(a,b,c)}a.chart=function(b,c,e){return new a(b,c,e)};a.prototype.getArgs=function(a,b,c){X(a)||a.nodeName?(this.renderTo=a,this.init(b,c)):this.init(a,b)};a.prototype.init=function(a,b){var c=a.plotOptions||{};O(this,"init",{args:arguments},function(){var e=V(l,a),d=e.chart;Y(e.plotOptions,function(a,b){P(a)&&(a.tooltip=c[b]&&V(c[b].tooltip)||void 0)});e.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=
364
- [];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=b;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new p(a.time):A.time;this.numberFormatter=d.numberFormatter||x;this.styledMode=d.styledMode;this.hasCartesianSeries=d.showAxes;this.index=E.length;E.push(this);A.chartCount++;u(this,d);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;O(this,"afterInit");this.firstRender()})};a.prototype.initSeries=
365
- function(a){var b=this.options.chart;b=a.type||b.type||b.defaultSeriesType;var c=G[b];c||N(17,!0,this,{missingModuleFor:b});b=new c;"function"===typeof b.init&&b.init(this,a);return b};a.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,!1)})};a.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,b){return a.linkedSeries.length||b.linkedSeries.length?b.linkedSeries.length-
366
- a.linkedSeries.length:0})};a.prototype.orderSeries=function(a){var b=this.series;a=a||0;for(var c=b.length;a<c;++a)b[a]&&(b[a].index=a,b[a].name=b[a].getName())};a.prototype.isInsidePlot=function(a,b,c){void 0===c&&(c={});var e=this.inverted,d=this.plotBox,f=this.plotLeft,g=this.plotTop,l=this.scrollablePlotBox,k=0;var h=0;c.visiblePlotOnly&&this.scrollingContainer&&(h=this.scrollingContainer,k=h.scrollLeft,h=h.scrollTop);var n=c.series;d=c.visiblePlotOnly&&l||d;l=c.inverted?b:a;b=c.inverted?a:b;
367
- a={x:l,y:b,isInsidePlot:!0};if(!c.ignoreX){var q=n&&(e?n.yAxis:n.xAxis)||{pos:f,len:Infinity};l=c.paneCoordinates?q.pos+l:f+l;l>=Math.max(k+f,q.pos)&&l<=Math.min(k+f+d.width,q.pos+q.len)||(a.isInsidePlot=!1)}!c.ignoreY&&a.isInsidePlot&&(e=n&&(e?n.xAxis:n.yAxis)||{pos:g,len:Infinity},c=c.paneCoordinates?e.pos+b:g+b,c>=Math.max(h+g,e.pos)&&c<=Math.min(h+g+d.height,e.pos+e.len)||(a.isInsidePlot=!1));O(this,"afterIsInsidePlot",a);return a.isInsidePlot};a.prototype.redraw=function(a){O(this,"beforeRedraw");
368
- var b=this.hasCartesianSeries?this.axes:this.colorAxis||[],c=this.series,e=this.pointer,d=this.legend,f=this.userOptions.legend,g=this.renderer,l=g.isHidden(),k=[],h=this.isDirtyBox,n=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);B(this.hasRendered?a:!1,this);l&&this.temporaryDisplay();this.layOutTitles();for(a=c.length;a--;){var q=c[a];if(q.options.stacking||q.options.centerInCategory){var p=!0;if(q.isDirty){var u=!0;break}}}if(u)for(a=c.length;a--;)q=c[a],q.options.stacking&&(q.isDirty=
369
- !0);c.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),n=!0):f&&(f.labelFormatter||f.labelFormat)&&(n=!0));a.isDirtyData&&O(a,"updatedData")});n&&d&&d.options.enabled&&(d.render(),this.isDirtyLegend=!1);p&&this.getStacks();b.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();b.forEach(function(a){a.isDirty&&(h=!0)});b.forEach(function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,k.push(function(){O(a,"afterSetExtremes",
370
- H(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(h||p)&&a.redraw()});h&&this.drawChartBox();O(this,"predraw");c.forEach(function(a){(h||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});e&&e.reset(!0);g.draw();O(this,"redraw");O(this,"render");l&&this.temporaryDisplay(!0);k.forEach(function(a){a.call()})};a.prototype.get=function(a){function b(b){return b.id===a||b.options&&b.options.id===a}for(var c=this.series,e=ia(this.axes,b)||ia(this.series,b),d=0;!e&&d<c.length;d++)e=ia(c[d].points||
371
- [],b);return e};a.prototype.getAxes=function(){var a=this,b=this.options,c=b.xAxis=ca(b.xAxis||{});b=b.yAxis=ca(b.yAxis||{});O(this,"getAxes");c.forEach(function(a,b){a.index=b;a.isX=!0});b.forEach(function(a,b){a.index=b});c.concat(b).forEach(function(b){new v(a,b)});O(this,"afterGetAxes")};a.prototype.getSelectedPoints=function(){return this.series.reduce(function(a,b){b.getPointsCollection().forEach(function(b){Q(b.selectedStaging,b.selected)&&a.push(b)});return a},[])};a.prototype.getSelectedSeries=
372
- function(){return this.series.filter(function(a){return a.selected})};a.prototype.setTitle=function(a,b,c){this.applyDescription("title",a);this.applyDescription("subtitle",b);this.applyDescription("caption",void 0);this.layOutTitles(c)};a.prototype.applyDescription=function(a,b){var c=this,e="title"===a?{color:m.neutralColor80,fontSize:this.options.isStock?"16px":"18px"}:{color:m.neutralColor60};e=this.options[a]=V(!this.styledMode&&{style:e},this.options[a],b);var d=this[a];d&&b&&(this[a]=d=d.destroy());
373
- e&&!d&&(d=this.renderer.text(e.text,0,0,e.useHTML).attr({align:e.align,"class":"highcharts-"+a,zIndex:e.zIndex||4}).add(),d.update=function(b){c[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](b)},this.styledMode||d.css(e.style),this[a]=d)};a.prototype.layOutTitles=function(a){var b=[0,0,0],c=this.renderer,e=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var d=this[a],f=this.options[a],g=f.verticalAlign||"top";a="title"===a?"top"===g?-3:0:"top"===g?b[0]+2:0;
374
- var l;if(d){this.styledMode||(l=f.style&&f.style.fontSize);l=c.fontMetrics(l,d).b;d.css({width:(f.width||e.width+(f.widthAdjust||0))+"px"});var k=Math.round(d.getBBox(f.useHTML).height);d.align(H({y:"bottom"===g?l:a+l,height:k},f),!1,"spacingBox");f.floating||("top"===g?b[0]=Math.ceil(b[0]+k):"bottom"===g&&(b[2]=Math.ceil(b[2]+k)))}},this);b[0]&&"top"===(this.options.title.verticalAlign||"top")&&(b[0]+=this.options.title.margin);b[2]&&"bottom"===this.options.caption.verticalAlign&&(b[2]+=this.options.caption.margin);
375
- var d=!this.titleOffset||this.titleOffset.join(",")!==b.join(",");this.titleOffset=b;O(this,"afterLayOutTitles");!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&Q(a,!0)&&this.isDirtyBox&&this.redraw())};a.prototype.getChartSize=function(){var a=this.options.chart,b=a.width;a=a.height;var c=this.renderTo;T(b)||(this.containerWidth=Z(c,"width"));T(a)||(this.containerHeight=Z(c,"height"));this.chartWidth=Math.max(0,b||this.containerWidth||600);this.chartHeight=Math.max(0,
376
- ea(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};a.prototype.temporaryDisplay=function(a){var b=this.renderTo;if(a)for(;b&&b.style;)b.hcOrigStyle&&(R(b,b.hcOrigStyle),delete b.hcOrigStyle),b.hcOrigDetached&&(q.body.removeChild(b),b.hcOrigDetached=!1),b=b.parentNode;else for(;b&&b.style;){q.body.contains(b)||b.parentNode||(b.hcOrigDetached=!0,q.body.appendChild(b));if("none"===Z(b,"display",!1)||b.hcOricDetached)b.hcOrigStyle={display:b.style.display,height:b.style.height,
377
- overflow:b.style.overflow},a={display:"block",overflow:"hidden"},b!==this.renderTo&&(a.height=0),R(b,a),b.offsetWidth||b.style.setProperty("display","block","important");b=b.parentNode;if(b===q.body)break}};a.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};a.prototype.getContainer=function(){var a=this.options,b=a.chart,c=ka(),f,l=this.renderTo;l||(this.renderTo=l=b.renderTo);X(l)&&(this.renderTo=l=q.getElementById(l));l||N(13,!0,this);var k=da(I(l,"data-highcharts-chart"));
378
- U(k)&&E[k]&&E[k].hasRendered&&E[k].destroy();I(l,"data-highcharts-chart",this.index);l.innerHTML="";b.skipClone||l.offsetWidth||this.temporaryDisplay();this.getChartSize();k=this.chartWidth;var h=this.chartHeight;R(l,{overflow:"hidden"});this.styledMode||(f=H({position:"relative",overflow:"hidden",width:k+"px",height:h+"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=
379
- c=S("div",{id:c},f,l);this._cursor=c.style.cursor;this.renderer=new (b.renderer||!e?d.getRendererType(b.renderer):g)(c,k,h,void 0,b.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);B(void 0,this);this.setClassName(b.className);if(this.styledMode)for(var n in a.defs)this.renderer.definition(a.defs[n]);else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;O(this,"afterGetContainer")};a.prototype.getMargins=function(a){var b=this.spacing,c=this.margin,e=this.titleOffset;
380
- this.resetMargins();e[0]&&!T(c[0])&&(this.plotTop=Math.max(this.plotTop,e[0]+b[0]));e[2]&&!T(c[2])&&(this.marginBottom=Math.max(this.marginBottom,e[2]+b[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,b);O(this,"getMargins");a||this.getAxisMargins()};a.prototype.getAxisMargins=function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.colorAxis,e=a.margin,d=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?d(a.axes):c&&c.length&&d(c);n.forEach(function(c,
381
- d){T(e[d])||(a[c]+=b[d])});a.setChartSize()};a.prototype.reflow=function(a){var b=this,e=b.options.chart,d=b.renderTo,f=T(e.width)&&T(e.height),g=e.width||Z(d,"width");e=e.height||Z(d,"height");d=a?a.target:c;delete b.pointer.chartPosition;if(!f&&!b.isPrinting&&g&&e&&(d===c||d===q)){if(g!==b.containerWidth||e!==b.containerHeight)k.clearTimeout(b.reflowTimeout),b.reflowTimeout=fa(function(){b.container&&b.setSize(void 0,void 0,!1)},a?100:0);b.containerWidth=g;b.containerHeight=e}};a.prototype.setReflow=
382
- function(a){var b=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=M(c,"resize",function(a){b.options&&b.reflow(a)}),M(this,"destroy",this.unbindReflow))};a.prototype.setSize=function(a,b,c){var e=this,d=e.renderer;e.isResizing+=1;B(c,e);c=d.globalAnimation;e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;"undefined"!==typeof a&&(e.options.chart.width=a);"undefined"!==typeof b&&(e.options.chart.height=b);e.getChartSize();
383
- e.styledMode||(c?r:R)(e.container,{width:e.chartWidth+"px",height:e.chartHeight+"px"},c);e.setChartSize(!0);d.setSize(e.chartWidth,e.chartHeight,c);e.axes.forEach(function(a){a.isDirty=!0;a.setScale()});e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();e.getMargins();e.redraw(c);e.oldChartHeight=null;O(e,"resize");fa(function(){e&&O(e,"endResize",null,function(){--e.isResizing})},f(c).duration)};a.prototype.setChartSize=function(a){var b=this.inverted,c=this.renderer,e=this.chartWidth,d=this.chartHeight,
384
- f=this.options.chart,g=this.spacing,l=this.clipOffset,k,h,n,q;this.plotLeft=k=Math.round(this.plotLeft);this.plotTop=h=Math.round(this.plotTop);this.plotWidth=n=Math.max(0,Math.round(e-k-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(d-h-this.marginBottom));this.plotSizeX=b?q:n;this.plotSizeY=b?n:q;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:e-g[3]-g[1],height:d-g[0]-g[2]};this.plotBox=c.plotBox={x:k,y:h,width:n,height:q};b=2*Math.floor(this.plotBorderWidth/
385
- 2);e=Math.ceil(Math.max(b,l[3])/2);d=Math.ceil(Math.max(b,l[0])/2);this.clipBox={x:e,y:d,width:Math.floor(this.plotSizeX-Math.max(b,l[1])/2-e),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(b,l[2])/2-d))};a||(this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()}),c.alignElements());O(this,"afterSetChartSize",{skipAxes:a})};a.prototype.resetMargins=function(){O(this,"resetMargins");var a=this,b=a.options.chart;["margin","spacing"].forEach(function(c){var e=b[c],d=P(e)?e:[e,e,
386
- e,e];["Top","Right","Bottom","Left"].forEach(function(e,f){a[c][f]=Q(b[c+e],d[f])})});n.forEach(function(b,c){a[b]=Q(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};a.prototype.drawChartBox=function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,e=this.chartHeight,d=this.styledMode,f=this.plotBGImage,g=a.backgroundColor,l=a.plotBackgroundColor,k=a.plotBackgroundImage,h=this.plotLeft,n=this.plotTop,q=this.plotWidth,p=this.plotHeight,u=this.plotBox,m=this.clipRect,
387
- B=this.clipBox,x=this.chartBackground,L=this.plotBackground,E=this.plotBorder,t,r="animate";x||(this.chartBackground=x=b.rect().addClass("highcharts-background").add(),r="attr");if(d)var D=t=x.strokeWidth();else{D=a.borderWidth||0;t=D+(a.shadow?8:0);g={fill:g||"none"};if(D||x["stroke-width"])g.stroke=a.borderColor,g["stroke-width"]=D;x.attr(g).shadow(a.shadow)}x[r]({x:t/2,y:t/2,width:c-t-D%2,height:e-t-D%2,r:a.borderRadius});r="animate";L||(r="attr",this.plotBackground=L=b.rect().addClass("highcharts-plot-background").add());
388
- L[r](u);d||(L.attr({fill:l||"none"}).shadow(a.plotShadow),k&&(f?(k!==f.attr("href")&&f.attr("href",k),f.animate(u)):this.plotBGImage=b.image(k,h,n,q,p).add()));m?m.animate({width:B.width,height:B.height}):this.clipRect=b.clipRect(B);r="animate";E||(r="attr",this.plotBorder=E=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());d||E.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});E[r](E.crisp({x:h,y:n,width:q,height:p},-E.strokeWidth()));this.isDirtyBox=
389
- !1;O(this,"afterDrawChartBox")};a.prototype.propFromSeries=function(){var a=this,b=a.options.chart,c=a.options.series,e,d,f;["inverted","angular","polar"].forEach(function(g){d=G[b.type||b.defaultSeriesType];f=b[g]||d&&d.prototype[g];for(e=c&&c.length;!f&&e--;)(d=G[c[e].type])&&d.prototype[g]&&(f=!0);a[g]=f})};a.prototype.linkSeries=function(){var a=this,b=a.series;b.forEach(function(a){a.linkedSeries.length=0});b.forEach(function(b){var c=b.options.linkedTo;X(c)&&(c=":previous"===c?a.series[b.index-
390
- 1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,c.enabledDataSorting&&b.setDataSortingOptions(),b.visible=Q(b.options.visible,c.options.visible,b.visible))});O(this,"afterLinkSeries")};a.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();a.render()})};a.prototype.renderLabels=function(){var a=this,b=a.options.labels;b.items&&b.items.forEach(function(c){var e=H(b.style,c.style),d=da(e.left)+a.plotLeft,f=da(e.top)+a.plotTop+12;delete e.left;delete e.top;
391
- a.renderer.text(c.html,d,f).attr({zIndex:2}).css(e).add()})};a.prototype.render=function(){var a=this.axes,b=this.colorAxis,c=this.renderer,e=this.options,d=function(a){a.forEach(function(a){a.visible&&a.render()})},f=0;this.setTitle();this.legend=new w(this,e.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();e=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return f=21,!0});var g=this.plotHeight=Math.max(this.plotHeight-
392
- f,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var l=1.1<e/this.plotWidth,k=1.05<g/this.plotHeight;if(l||k)a.forEach(function(a){(a.horiz&&l||!a.horiz&&k)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?d(a):b&&b.length&&d(b);this.seriesGroup||(this.seriesGroup=c.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};a.prototype.addCredits=
393
- function(a){var b=this,e=V(!0,this.options.credits,a);e.enabled&&!this.credits&&(this.credits=this.renderer.text(e.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){e.href&&(c.location.href=e.href)}).attr({align:e.position.align,zIndex:8}),b.styledMode||this.credits.css(e.style),this.credits.add().align(e.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})};a.prototype.destroy=function(){var a=this,b=a.axes,c=a.series,e=a.container,
394
- d=e&&e.parentNode,f;O(a,"destroy");a.renderer.forExport?K(E,a):E[a.index]=void 0;A.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");ja(a);for(f=b.length;f--;)b[f]=b[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=c.length;f--;)c[f]=c[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(b){var c=a[b];c&&
395
- c.destroy&&(a[b]=c.destroy())});e&&(e.innerHTML="",ja(e),d&&ba(e));Y(a,function(b,c){delete a[c]})};a.prototype.firstRender=function(){var a=this,b=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();(L(b.series)?b.series:[]).forEach(function(b){a.initSeries(b)});a.linkSeries();a.setSeriesData();O(a,"beforeRender");h&&(C.isRequired()?a.pointer=new C(a,b):a.pointer=new h(a,b));a.render();a.pointer.getChartPosition();
396
- if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};a.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);O(this,"load");O(this,"render");T(this.index)&&this.setReflow(this.options.chart.reflow);this.hasLoaded=!0};a.prototype.addSeries=function(a,b,c){var e=this,d;a&&(b=Q(b,!0),O(e,"addSeries",{options:a},function(){d=e.initSeries(a);e.isDirtyLegend=!0;e.linkSeries();d.enabledDataSorting&&
397
- d.setData(a.data,!1);O(e,"afterAddSeries",{series:d});b&&e.redraw(c)}));return d};a.prototype.addAxis=function(a,b,c,e){return this.createAxis(b?"xAxis":"yAxis",{axis:a,redraw:c,animation:e})};a.prototype.addColorAxis=function(a,b,c){return this.createAxis("colorAxis",{axis:a,redraw:b,animation:c})};a.prototype.createAxis=function(a,b){a=new v(this,V(b.axis,{index:this[a].length,isX:"xAxis"===a}));Q(b.redraw,!0)&&this.redraw(b.animation);return a};a.prototype.showLoading=function(a){var b=this,c=
398
- b.options,e=c.loading,d=function(){f&&R(f,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})},f=b.loadingDiv,g=b.loadingSpan;f||(b.loadingDiv=f=S("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container));g||(b.loadingSpan=g=S("span",{className:"highcharts-loading-inner"},null,f),M(b,"redraw",d));f.className="highcharts-loading";J.setElementHTML(g,Q(a,c.lang.loading,""));b.styledMode||(R(f,H(e.style,{zIndex:10})),R(g,e.labelStyle),b.loadingShown||
399
- (R(f,{opacity:0,display:""}),r(f,{opacity:e.style.opacity||.5},{duration:e.showDuration||0})));b.loadingShown=!0;d()};a.prototype.hideLoading=function(){var a=this.options,b=this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",this.styledMode||r(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){R(b,{display:"none"})}}));this.loadingShown=!1};a.prototype.update=function(a,b,c,e){var d=this,f={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",
400
- caption:"setCaption"},g=a.isResponsiveOptions,l=[],k,h;O(d,"update",{options:a});g||d.setResponsive(!1,!0);a=W(a,d.options);d.userOptions=V(d.userOptions,a);var n=a.chart;if(n){V(!0,d.options.chart,n);"className"in n&&d.setClassName(n.className);"reflow"in n&&d.setReflow(n.reflow);if("inverted"in n||"polar"in n||"type"in n){d.propFromSeries();var q=!0}"alignTicks"in n&&(q=!0);"events"in n&&u(this,n);Y(n,function(a,b){-1!==d.propsRequireUpdateSeries.indexOf("chart."+b)&&(k=!0);-1!==d.propsRequireDirtyBox.indexOf(b)&&
401
- (d.isDirtyBox=!0);-1!==d.propsRequireReflow.indexOf(b)&&(g?d.isDirtyBox=!0:h=!0)});!d.styledMode&&n.style&&d.renderer.setStyle(d.options.chart.style||{})}!d.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===D&&(this.time=new p(a.time)),V(!0,d.options.time,a.time));Y(a,function(b,c){if(d[c]&&"function"===typeof d[c].update)d[c].update(b,!1);else if("function"===typeof d[f[c]])d[f[c]](b);else"colors"!==c&&-1===d.collectionsWithUpdate.indexOf(c)&&V(!0,d.options[c],a[c]);"chart"!==
402
- c&&-1!==d.propsRequireUpdateSeries.indexOf(c)&&(k=!0)});this.collectionsWithUpdate.forEach(function(b){if(a[b]){var e=[];d[b].forEach(function(a,b){a.options.isInternal||e.push(Q(a.options.index,b))});ca(a[b]).forEach(function(a,f){var g=T(a.id),l;g&&(l=d.get(a.id));!l&&d[b]&&(l=d[b][e?e[f]:f])&&g&&T(l.options.id)&&(l=void 0);l&&l.coll===b&&(l.update(a,!1),c&&(l.touched=!0));!l&&c&&d.collectionsWithInit[b]&&(d.collectionsWithInit[b][0].apply(d,[a].concat(d.collectionsWithInit[b][1]||[]).concat([!1])).touched=
403
- !0)});c&&d[b].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:l.push(a)})}});l.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});q&&d.axes.forEach(function(a){a.update({},!1)});k&&d.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);q=n&&n.width;n=n&&(X(n.height)?ea(n.height,q||d.chartWidth):n.height);h||U(q)&&q!==d.chartWidth||U(n)&&n!==d.chartHeight?d.setSize(q,n,e):Q(b,!0)&&d.redraw(e);O(d,"afterUpdate",{options:a,redraw:b,animation:e})};a.prototype.setSubtitle=
404
- function(a,b){this.applyDescription("subtitle",a);this.layOutTitles(b)};a.prototype.setCaption=function(a,b){this.applyDescription("caption",a);this.layOutTitles(b)};a.prototype.showResetZoom=function(){function a(){b.zoomOut()}var b=this,c=l.lang,e=b.options.chart.resetZoomButton,d=e.theme,f=d.states,g="chart"===e.relativeTo||"spacingBox"===e.relativeTo?null:"scrollablePlotBox";O(this,"beforeShowResetZoom",null,function(){b.resetZoomButton=b.renderer.button(c.resetZoom,null,null,a,d,f&&f.hover).attr({align:e.position.align,
405
- title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(e.position,!1,g)});O(this,"afterShowResetZoom")};a.prototype.zoomOut=function(){O(this,"selection",{resetSelection:!0},this.zoom)};a.prototype.zoom=function(a){var b=this,c=b.pointer,e=b.inverted?c.mouseDownX:c.mouseDownY,d=!1,f;!a||a.resetSelection?(b.axes.forEach(function(a){f=a.zoom()}),c.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var g=a.axis,l=b.inverted?g.left:g.top,k=b.inverted?l+g.width:l+g.height,h=g.isXAxis,
406
- n=!1;if(!h&&e>=l&&e<=k||h||!T(e))n=!0;c[h?"zoomX":"zoomY"]&&n&&(f=g.zoom(a.min,a.max),g.displayBtn&&(d=!0))});var g=b.resetZoomButton;d&&!g?b.showResetZoom():!d&&P(g)&&(b.resetZoomButton=g.destroy());f&&b.redraw(Q(b.options.chart.animation,a&&a.animation,100>b.pointCount))};a.prototype.pan=function(a,b){var c=this,e=c.hoverPoints;b="object"===typeof b?b:{enabled:b,type:"x"};var d=c.options.chart,f=c.options.mapNavigation&&c.options.mapNavigation.enabled;d&&d.panning&&(d.panning=b);var g=b.type,l;
407
- O(this,"pan",{originalEvent:a},function(){e&&e.forEach(function(a){a.setState()});var b=c.xAxis;"xy"===g?b=b.concat(c.yAxis):"y"===g&&(b=c.yAxis);var d={};b.forEach(function(b){if(b.options.panningEnabled&&!b.options.isInternal){var e=b.horiz,k=a[e?"chartX":"chartY"];e=e?"mouseDownX":"mouseDownY";var h=c[e],n=b.minPointOffset||0,q=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,p=b.getExtremes(),u=b.toValue(h-k,!0)+n*q,m=b.toValue(h+b.len-k,!0)-(n*q||b.isXAxis&&b.pointRangePadding||0),B=m<u;
408
- q=b.hasVerticalPanning();h=B?m:u;u=B?u:m;var x=b.panningState;!q||b.isXAxis||x&&!x.isDirty||b.series.forEach(function(a){var b=a.getProcessedData(!0);b=a.getExtremes(b.yData,!0);x||(x={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});U(b.dataMin)&&U(b.dataMax)&&(x.startMin=Math.min(Q(a.options.threshold,Infinity),b.dataMin,x.startMin),x.startMax=Math.max(Q(a.options.threshold,-Infinity),b.dataMax,x.startMax))});q=Math.min(Q(x&&x.startMin,p.dataMin),n?p.min:b.toValue(b.toPixels(p.min)-b.minPixelPadding));
409
- m=Math.max(Q(x&&x.startMax,p.dataMax),n?p.max:b.toValue(b.toPixels(p.max)+b.minPixelPadding));b.panningState=x;b.isOrdinal||(n=q-h,0<n&&(u+=n,h=q),n=u-m,0<n&&(u=m,h-=n),b.series.length&&h!==p.min&&u!==p.max&&h>=q&&u<=m&&(b.setExtremes(h,u,!1,!1,{trigger:"pan"}),c.resetZoomButton||f||h===q||u===m||!g.match("y")||(c.showResetZoom(),b.displayBtn=!1),l=!0),d[e]=k)}});Y(d,function(a,b){c[b]=a});l&&c.redraw(!1);R(c.container,{cursor:"move"})})};return a}();H(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,
410
- [!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),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(" ")});
411
- "";return a});H(a,"Core/Legend/LegendSymbol.js",[a["Core/Utilities.js"]],function(a){var r=a.merge,y=a.pick,z;(function(a){a.drawLineMarker=function(a){var w=this.options,t=a.symbolWidth,m=a.symbolHeight,h=m/2,d=this.chart.renderer,b=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var g={},p=w.marker;this.chart.styledMode||(g={"stroke-width":w.lineWidth||0},w.dashStyle&&(g.dashstyle=w.dashStyle));this.legendLine=d.path([["M",0,a],["L",t,a]]).addClass("highcharts-graph").attr(g).add(b);
412
- p&&!1!==p.enabled&&t&&(w=Math.min(y(p.radius,h),h),0===this.symbol.indexOf("url")&&(p=r(p,{width:m,height:m}),w=0),this.legendSymbol=t=d.symbol(this.symbol,t/2-w,a-w,2*w,2*w,p).addClass("highcharts-point").add(b),t.isMarker=!0)};a.drawRectangle=function(a,r){var t=a.symbolHeight,m=a.options.squareSymbol;r.legendSymbol=this.chart.renderer.rect(m?(a.symbolWidth-t)/2:0,a.baseline-t+1,m?t:a.symbolWidth,t,y(a.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(r.legendGroup)}})(z||
413
- (z={}));return z});H(a,"Core/Series/SeriesDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:a.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:a.neutralColor20,lineColor:a.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",
414
- defer:!0,formatter:function(){var a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,
415
- turboThreshold:1E3,findNearestPointBy:"x"}});H(a,"Core/Series/Series.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],a["Core/Series/SeriesDefaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t,m,h,d){var b=a.animObject,g=a.setAnimation,p=v.defaultOptions,k=y.registerEventOptions,
416
- r=z.hasTouch,F=z.svg,f=z.win,B=m.seriesTypes,x=d.addEvent,u=d.arrayMax,E=d.arrayMin,q=d.clamp,n=d.cleanRecursively,e=d.correctFloat,c=d.defined,l=d.erase,D=d.error,G=d.extend,M=d.find,I=d.fireEvent,W=d.getNestedProperty,S=d.isArray,R=d.isNumber,T=d.isString,ba=d.merge,K=d.objectEach,N=d.pick,H=d.removeEvent,ia=d.splat,O=d.syncTimeout;a=function(){function a(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=
417
- this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}a.prototype.init=function(a,b){I(this,"init",{options:b});var c=this,e=a.series;this.eventsToUnbind=[];c.chart=a;c.options=c.setOptions(b);b=c.options;c.linkedSeries=[];c.bindAxes();G(c,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});k(this,b);var d=b.events;if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();c.parallelArrays.forEach(function(a){c[a+
418
- "Data"]||(c[a+"Data"]=[])});c.isCartesian&&(a.hasCartesianSeries=!0);var f;e.length&&(f=e[e.length-1]);c._i=N(f&&f._i,-1)+1;c.opacity=c.options.opacity;a.orderSeries(this.insert(e));b.dataSorting&&b.dataSorting.enabled?c.setDataSortingOptions():c.points||c.data||c.setData(b.data,!1);I(this,"afterInit")};a.prototype.is=function(a){return B[a]&&this instanceof B[a]};a.prototype.insert=function(a){var b=this.options.index,c;if(R(b)){for(c=a.length;c--;)if(b>=N(a[c].options.index,a[c]._i)){a.splice(c+
419
- 1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return N(c,a.length-1)};a.prototype.bindAxes=function(){var a=this,b=a.options,c=a.chart,e;I(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(d){var f=0;c[d].forEach(function(c){e=c.options;if(b[d]===f&&!e.isInternal||"undefined"!==typeof b[d]&&b[d]===e.id||"undefined"===typeof b[d]&&0===e.index)a.insert(c.series),a[d]=c,c.isDirty=!0;e.isInternal||f++});a[d]||a.optionalAxis===d||D(18,!0,c)})});I(this,"afterBindAxes")};
420
- a.prototype.updateParallelArrays=function(a,b){var c=a.series,e=arguments,d=R(b)?function(e){var d="y"===e&&c.toYData?c.toYData(a):a[e];c[e+"Data"][b]=d}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(e,2))};c.parallelArrays.forEach(d)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};a.prototype.autoIncrement=function(a){var b=this.options,c=b.pointIntervalUnit,
421
- e=b.relativeXValue,d=this.chart.time,f=this.xIncrement,g;f=N(f,b.pointStart,0);this.pointInterval=g=N(this.pointInterval,b.pointInterval,1);e&&R(a)&&(g*=a);c&&(b=new d.Date(f),"day"===c?d.set("Date",b,d.get("Date",b)+g):"month"===c?d.set("Month",b,d.get("Month",b)+g):"year"===c&&d.set("FullYear",b,d.get("FullYear",b)+g),g=b.getTime()-f);if(e&&R(a))return f+g;this.xIncrement=f+g;return f};a.prototype.setDataSortingOptions=function(){var a=this.options;G(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,
422
- allowDG:!1});c(a.pointRange)||(a.pointRange=1)};a.prototype.setOptions=function(a){var b=this.chart,e=b.options,d=e.plotOptions,f=b.userOptions||{};a=ba(a);b=b.styledMode;var g={plotOptions:d,userOptions:a};I(this,"setOptions",g);var l=g.plotOptions[this.type],k=f.plotOptions||{};this.userOptions=g.userOptions;f=ba(l,d.series,f.plotOptions&&f.plotOptions[this.type],a);this.tooltipOptions=ba(p.tooltip,p.plotOptions.series&&p.plotOptions.series.tooltip,p.plotOptions[this.type].tooltip,e.tooltip.userOptions,
423
- d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=N(a.stickyTracking,k[this.type]&&k[this.type].stickyTracking,k.series&&k.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===l.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;d=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||(e={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},b||(e.color=f.negativeColor,
424
- e.fillColor=f.negativeFillColor),d.push(e));d.length&&c(d[d.length-1].value)&&d.push(b?{}:{color:this.color,fillColor:this.fillColor});I(this,"afterSetOptions",{options:f});return f};a.prototype.getName=function(){return N(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(a,b,e){var d=this.chart,f=this.userOptions,g=a+"Index",l=a+"Counter",k=e?e.length:N(d.options.chart[a+"Count"],d[a+"Count"]);if(!b){var h=N(f[g],f["_"+g]);c(h)||(d.series.length||(d[l]=0),f["_"+g]=h=d[l]%
425
- k,d[l]+=1);e&&(b=e[h])}"undefined"!==typeof h&&(this[g]=h);this[a]=b};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=w.neutralColor20:this.getCyclic("color",this.options.color||p.plotOptions[this.type].color,this.chart.options.colors)};a.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};a.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};
426
- a.prototype.findPointIndex=function(a,b){var c=a.id,e=a.x,d=this.points,f=this.options.dataSorting,g,l;if(c)f=this.chart.get(c),f instanceof C&&(g=f);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(g=function(b){return!b.touched&&b.index===a.index},f&&f.matchByName?g=function(b){return!b.touched&&b.name===a.name}:this.options.relativeXValue&&(g=function(b){return!b.touched&&b.options.x===a.x}),g=M(d,g),!g)return;if(g){var k=g&&g.index;"undefined"!==typeof k&&(l=
427
- !0)}"undefined"===typeof k&&R(e)&&(k=this.xData.indexOf(e,b));-1!==k&&"undefined"!==typeof k&&this.cropped&&(k=k>=this.cropStart?k-this.cropStart:k);!l&&R(k)&&d[k]&&d[k].touched&&(k=void 0);return k};a.prototype.updateData=function(a,b){var e=this.options,d=e.dataSorting,f=this.points,g=[],l=this.requireSorting,k=a.length===f.length,h,n,q,p=!0;this.xIncrement=null;a.forEach(function(a,b){var n=c(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{},p=n.x;if(n.id||R(p)){if(n=this.findPointIndex(n,
428
- q),-1===n||"undefined"===typeof n?g.push(a):f[n]&&a!==e.data[n]?(f[n].update(a,!1,null,!1),f[n].touched=!0,l&&(q=n+1)):f[n]&&(f[n].touched=!0),!k||b!==n||d&&d.enabled||this.hasDerivedData)h=!0}else g.push(a)},this);if(h)for(a=f.length;a--;)(n=f[a])&&!n.touched&&n.remove&&n.remove(!1,b);else!k||d&&d.enabled?p=!1:(a.forEach(function(a,b){a!==f[b].y&&f[b].update&&f[b].update(a,!1,null,!1)}),g.length=0);f.forEach(function(a){a&&(a.touched=!1)});if(!p)return!1;g.forEach(function(a){this.addPoint(a,!1,
429
- null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=u(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(a,b,c,e){var d=this,f=d.points,g=f&&f.length||0,l=d.options,k=d.chart,h=l.dataSorting,n=d.xAxis,q=l.turboThreshold,p=this.xData,u=this.yData,m=d.pointArrayMap;m=m&&m.length;var B=l.keys,x,E=0,t=1,r=null;a=a||[];var L=a.length;b=N(b,!0);h&&h.enabled&&(a=this.sortData(a));!1!==e&&L&&g&&!d.cropped&&!d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&
430
- (x=this.updateData(a,c));if(!x){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(a){d[a+"Data"].length=0});if(q&&L>q)if(r=d.getFirstValidPoint(a),R(r))for(c=0;c<L;c++)p[c]=this.autoIncrement(),u[c]=a[c];else if(S(r))if(m)for(c=0;c<L;c++)e=a[c],p[c]=e[0],u[c]=e.slice(1,m+1);else for(B&&(E=B.indexOf("x"),t=B.indexOf("y"),E=0<=E?E:0,t=0<=t?t:1),c=0;c<L;c++)e=a[c],p[c]=e[E],u[c]=e[t];else D(12,!1,k);else for(c=0;c<L;c++)"undefined"!==typeof a[c]&&(e={series:d},d.pointClass.prototype.applyOptions.apply(e,
431
- [a[c]]),d.updateParallelArrays(e,c));u&&T(u[0])&&D(14,!0,k);d.data=[];d.options.data=d.userOptions.data=a;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();n&&(n.minRange=n.userMinRange);d.isDirty=k.isDirtyBox=!0;d.isDirtyData=!!f;c=!1}"point"===l.legendType&&(this.processData(),this.generatePoints());b&&k.redraw(c)};a.prototype.sortData=function(a){var b=this,e=b.options.dataSorting.sortKey||"y",d=function(a,b){return c(b)&&a.pointClass.prototype.optionsToObject.call({series:a},b)||{}};a.forEach(function(c,
432
- e){a[e]=d(b,c);a[e].index=e},this);a.concat().sort(function(a,b){a=W(e,a);b=W(e,b);return b<a?-1:b>a?1:0}).forEach(function(a,b){a.x=b},this);b.linkedSeries&&b.linkedSeries.forEach(function(b){var c=b.options,e=c.data;c.dataSorting&&c.dataSorting.enabled||!e||(e.forEach(function(c,f){e[f]=d(b,c);a[f]&&(e[f].x=a[f].x,e[f].index=f)}),b.setData(e,!1))});return a};a.prototype.getProcessedData=function(a){var b=this.xAxis,c=this.options,e=c.cropThreshold,d=a||this.getExtremesFromAll||c.getExtremesFromAll,
433
- f=this.isCartesian;a=b&&b.val2lin;c=!(!b||!b.logarithmic);var g=0,l=this.xData,k=this.yData,n=this.requireSorting;var h=!1;var q=l.length;if(b){h=b.getExtremes();var p=h.min;var u=h.max;h=b.categories&&!b.names.length}if(f&&this.sorted&&!d&&(!e||q>e||this.forceCrop))if(l[q-1]<p||l[0]>u)l=[],k=[];else if(this.yData&&(l[0]<p||l[q-1]>u)){var m=this.cropData(this.xData,this.yData,p,u);l=m.xData;k=m.yData;g=m.start;m=!0}for(e=l.length||1;--e;)if(b=c?a(l[e])-a(l[e-1]):l[e]-l[e-1],0<b&&("undefined"===typeof B||
434
- b<B))var B=b;else 0>b&&n&&!h&&(D(15,!1,this.chart),n=!1);return{xData:l,yData:k,cropped:m,cropStart:g,closestPointRange:B}};a.prototype.processData=function(a){var b=this.xAxis;if(this.isCartesian&&!this.isDirty&&!b.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};a.prototype.cropData=function(a,b,c,e,d){var f=
435
- a.length,g,l=0,k=f;d=N(d,this.cropShoulder);for(g=0;g<f;g++)if(a[g]>=c){l=Math.max(0,g-d);break}for(c=g;c<f;c++)if(a[c]>e){k=c+d;break}return{xData:a.slice(l,k),yData:b.slice(l,k),start:l,end:k}};a.prototype.generatePoints=function(){var a=this.options,b=a.data,c=this.processedXData,e=this.processedYData,d=this.pointClass,f=c.length,g=this.cropStart||0,l=this.hasGroupedData,k=a.keys,h=[];a=a.dataGrouping&&a.dataGrouping.groupAll?g:0;var n,q,p=this.data;if(!p&&!l){var u=[];u.length=b.length;p=this.data=
436
- u}k&&l&&(this.options.keys=!1);for(q=0;q<f;q++){u=g+q;if(l){var m=(new d).init(this,[c[q]].concat(ia(e[q])));m.dataGroup=this.groupMap[a+q];m.dataGroup.options&&(m.options=m.dataGroup.options,G(m,m.dataGroup.options),delete m.dataLabels)}else(m=p[u])||"undefined"===typeof b[u]||(p[u]=m=(new d).init(this,b[u],c[q]));m&&(m.index=l?a+q:u,h[q]=m)}this.options.keys=k;if(p&&(f!==(n=p.length)||l))for(q=0;q<n;q++)q!==g||l||(q+=f),p[q]&&(p[q].destroyElements(),p[q].plotX=void 0);this.data=p;this.points=h;
437
- I(this,"afterGeneratePoints")};a.prototype.getXExtremes=function(a){return{min:E(a),max:u(a)}};a.prototype.getExtremes=function(a,b){var c=this.xAxis,e=this.yAxis,d=this.processedXData||this.xData,f=[],g=this.requireSorting?this.cropShoulder:0;e=e?e.positiveValuesOnly:!1;var l,k=0,h=0,n=0;a=a||this.stackedYData||this.processedYData||[];var q=a.length;if(c){var p=c.getExtremes();k=p.min;h=p.max}for(l=0;l<q;l++){var m=d[l];p=a[l];var B=(R(p)||S(p))&&(p.length||0<p||!e);m=b||this.getExtremesFromAll||
438
- this.options.getExtremesFromAll||this.cropped||!c||(d[l+g]||m)>=k&&(d[l-g]||m)<=h;if(B&&m)if(B=p.length)for(;B--;)R(p[B])&&(f[n++]=p[B]);else f[n++]=p}a={dataMin:E(f),dataMax:u(f)};I(this,"afterGetExtremes",{dataExtremes:a});return a};a.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};a.prototype.getFirstValidPoint=function(a){for(var b=a.length,c=0,e=null;null===e&&c<b;)e=a[c],c++;return e};a.prototype.translate=function(){this.processedXData||
439
- this.processData();this.generatePoints();var a=this.options,b=a.stacking,d=this.xAxis,f=d.categories,g=this.enabledDataSorting,l=this.yAxis,k=this.points,h=k.length,n=!!this.modifyValue,p=this.pointPlacementToXValue(),u=!!p,m=a.threshold,B=a.startFromThreshold?m:0,x=this.zoneAxis||"y",E,t,r=Number.MAX_VALUE;for(E=0;E<h;E++){var D=k[E],w=D.x,F=void 0,v=void 0,G=D.y,J=D.low,C=b&&l.stacking&&l.stacking.stacks[(this.negStacks&&G<(B?0:m)?"-":"")+this.stackKey];if(l.positiveValuesOnly&&!l.validatePositiveValue(G)||
440
- d.positiveValuesOnly&&!d.validatePositiveValue(w))D.isNull=!0;D.plotX=t=e(q(d.translate(w,0,0,0,1,p,"flags"===this.type),-1E5,1E5));if(b&&this.visible&&C&&C[w]){var z=this.getStackIndicator(z,w,this.index);D.isNull||(F=C[w],v=F.points[z.key])}S(v)&&(J=v[0],G=v[1],J===B&&z.key===C[w].base&&(J=N(R(m)&&m,l.min)),l.positiveValuesOnly&&0>=J&&(J=null),D.total=D.stackTotal=F.total,D.percentage=F.total&&D.y/F.total*100,D.stackY=G,this.irregularWidths||F.setOffset(this.pointXOffset||0,this.barW||0));D.yBottom=
441
- c(J)?q(l.translate(J,0,1,0,1),-1E5,1E5):null;n&&(G=this.modifyValue(G,D));D.plotY=void 0;R(G)&&(F=l.translate(G,!1,!0,!1,!0),"undefined"!==typeof F&&(D.plotY=q(F,-1E5,1E5)));D.isInside=this.isPointInside(D);D.clientX=u?e(d.translate(w,0,0,0,1,p)):t;D.negative=D[x]<(a[x+"Threshold"]||m||0);D.category=f&&"undefined"!==typeof f[D.x]?f[D.x]:D.x;if(!D.isNull&&!1!==D.visible){"undefined"!==typeof y&&(r=Math.min(r,Math.abs(t-y)));var y=t}D.zone=this.zones.length&&D.getZone();!D.graphic&&this.group&&g&&(D.isNew=
442
- !0)}this.closestPointRangePx=r;I(this,"afterTranslate")};a.prototype.getValidPoints=function(a,b,c){var e=this.chart;return(a||this.points||[]).filter(function(a){return b&&!e.isInsidePlot(a.plotX,a.plotY,{inverted:e.inverted})?!1:!1!==a.visible&&(c||!a.isNull)})};a.prototype.getClipBox=function(a,b){var c=this.options,e=this.chart,d=e.inverted,f=this.xAxis,g=f&&this.yAxis,l=e.options.chart.scrollablePlotArea||{};a&&!1===c.clip&&g?a=d?{y:-e.chartWidth+g.len+g.pos,height:e.chartWidth,width:e.chartHeight,
443
- x:-e.chartHeight+f.len+f.pos}:{y:-g.pos,height:e.chartHeight,width:e.chartWidth,x:-f.pos}:(a=this.clipBox||e.clipBox,b&&(a.width=e.plotSizeX,a.x=(e.scrollablePixelsX||0)*(l.scrollPositionX||0)));return b?{width:a.width,x:a.x}:a};a.prototype.getSharedClipKey=function(a){if(this.sharedClipKey)return this.sharedClipKey;var b=[a&&a.duration,a&&a.easing,a&&a.defer,this.getClipBox(a).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||a)this.sharedClipKey=b;return b};a.prototype.setClip=
444
- function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,f=this.clipBox,g=this.getClipBox(a),l=this.getSharedClipKey(a),k=b.sharedClips[l],h=b.sharedClips[l+"m"];a&&(g.width=0,d&&(g.x=b.plotHeight+(!1!==c.clip?0:b.plotTop)));k?b.hasLoaded||k.attr(g):(a&&(b.sharedClips[l+"m"]=h=e.clipRect(d?(b.plotSizeX||0)+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b.sharedClips[l]=k=e.clipRect(g),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=
445
- 1);if(!1!==c.clip||a)this.group.clip(a||f?k:b.clipRect),this.markerGroup.clip(h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&(f||(b.sharedClips[l]=k.destroy()),h&&(b.sharedClips[l+"m"]=h.destroy())))};a.prototype.animate=function(a){var c=this.chart,e=b(this.options.animation),d=this.sharedClipKey;if(a)this.setClip(e);else if(d){a=c.sharedClips[d];d=c.sharedClips[d+"m"];var f=this.getClipBox(e,!0);a&&a.animate(f,e);d&&d.animate({width:f.width+99,x:f.x-
446
- (c.inverted?0:99)},e)}};a.prototype.afterAnimate=function(){this.setClip();I(this,"afterAnimate");this.finishedAnimating=!0};a.prototype.drawPoints=function(){var a=this.points,b=this.chart,c=this.options.marker,e=this[this.specialGroup]||this.markerGroup,d=this.xAxis,f=N(c.enabled,!d||d.isRadial?!0:null,this.closestPointRangePx>=c.enabledThreshold*c.radius),g,l;if(!1!==c.enabled||this._hasPointMarkers)for(g=0;g<a.length;g++){var k=a[g];var h=(l=k.graphic)?"animate":"attr";var n=k.marker||{};var q=
447
- !!k.marker;if((f&&"undefined"===typeof n.enabled||n.enabled)&&!k.isNull&&!1!==k.visible){var p=N(n.symbol,this.symbol,"rect");var u=this.markerAttribs(k,k.selected&&"select");this.enabledDataSorting&&(k.startXPos=d.reversed?-(u.width||0):d.width);var m=!1!==k.isInside;l?l[m?"show":"hide"](m).animate(u):m&&(0<(u.width||0)||k.hasImage)&&(k.graphic=l=b.renderer.symbol(p,u.x,u.y,u.width,u.height,q?n:c).add(e),this.enabledDataSorting&&b.hasRendered&&(l.attr({x:k.startXPos}),h="animate"));l&&"animate"===
448
- h&&l[m?"show":"hide"](m).animate(u);if(l&&!b.styledMode)l[h](this.pointAttribs(k,k.selected&&"select"));l&&l.addClass(k.getClassName(),!0)}else l&&(k.graphic=l.destroy())}};a.prototype.markerAttribs=function(a,b){var c=this.options,e=c.marker,d=a.marker||{},f=d.symbol||e.symbol,g=N(d.radius,e.radius);b&&(e=e.states[b],b=d.states&&d.states[b],g=N(b&&b.radius,e&&e.radius,g+(e&&e.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a.hasImage&&(g=0);a={x:c.crisp?Math.floor(a.plotX-g):a.plotX-g,y:a.plotY-
449
- g};g&&(a.width=a.height=2*g);return a};a.prototype.pointAttribs=function(a,b){var c=this.options.marker,e=a&&a.options,d=e&&e.marker||{},f=e&&e.color,g=a&&a.color,l=a&&a.zone&&a.zone.color,k=this.color;a=N(d.lineWidth,c.lineWidth);e=1;k=f||l||g||k;f=d.fillColor||c.fillColor||k;g=d.lineColor||c.lineColor||k;b=b||"normal";c=c.states[b];b=d.states&&d.states[b]||{};a=N(b.lineWidth,c.lineWidth,a+N(b.lineWidthPlus,c.lineWidthPlus,0));f=b.fillColor||c.fillColor||f;g=b.lineColor||c.lineColor||g;e=N(b.opacity,
450
- c.opacity,e);return{stroke:g,"stroke-width":a,fill:f,opacity:e}};a.prototype.destroy=function(a){var b=this,c=b.chart,e=/AppleWebKit\/533/.test(f.navigator.userAgent),g=b.data||[],k,n,q,p;I(b,"destroy");this.removeEvents(a);(b.axisTypes||[]).forEach(function(a){(p=b[a])&&p.series&&(l(p.series,b),p.isDirty=p.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(n=g.length;n--;)(q=g[n])&&q.destroy&&q.destroy();b.clips&&b.clips.forEach(function(a){return a.destroy()});d.clearTimeout(b.animationTimeout);
451
- K(b,function(a,b){a instanceof h&&!a.survive&&(k=e&&"group"===b?"hide":"destroy",a[k]())});c.hoverSeries===b&&(c.hoverSeries=void 0);l(c.series,b);c.orderSeries();K(b,function(c,e){a&&"hcEvents"===e||delete b[e]})};a.prototype.applyZones=function(){var a=this,b=this.chart,c=b.renderer,e=this.zones,d=this.clips||[],f=this.graph,g=this.area,l=Math.max(b.chartWidth,b.chartHeight),k=this[(this.zoneAxis||"y")+"Axis"],h=b.inverted,n,p,u,m,B,x,E,t,r=!1;if(e.length&&(f||g)&&k&&"undefined"!==typeof k.min){var D=
452
- k.reversed;var w=k.horiz;f&&!this.showLine&&f.hide();g&&g.hide();var F=k.getExtremes();e.forEach(function(e,v){n=D?w?b.plotWidth:0:w?0:k.toPixels(F.min)||0;n=q(N(p,n),0,l);p=q(Math.round(k.toPixels(N(e.value,F.max),!0)||0),0,l);r&&(n=p=k.toPixels(F.max));m=Math.abs(n-p);B=Math.min(n,p);x=Math.max(n,p);k.isXAxis?(u={x:h?x:B,y:0,width:m,height:l},w||(u.x=b.plotHeight-u.x)):(u={x:0,y:h?x:B,width:l,height:m},w&&(u.y=b.plotWidth-u.y));h&&c.isVML&&(u=k.isXAxis?{x:0,y:D?B:x,height:u.width,width:b.chartWidth}:
453
- {x:u.y-b.plotLeft-b.spacingBox.x,y:0,width:u.height,height:b.chartHeight});d[v]?d[v].animate(u):d[v]=c.clipRect(u);E=a["zone-area-"+v];t=a["zone-graph-"+v];f&&t&&t.clip(d[v]);g&&E&&E.clip(d[v]);r=e.value>F.max;a.resetZones&&0===p&&(p=void 0)});this.clips=d}else a.visible&&(f&&f.show(!0),g&&g.show(!0))};a.prototype.invertGroups=function(a){function b(){["group","markerGroup"].forEach(function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=
454
- c.xAxis.len,c[b].invert(c.isRadialSeries?!1:a))})}var c=this,e=c.chart;c.xAxis&&(c.eventsToUnbind.push(x(e,"resize",b)),b(),c.invertGroups=b)};a.prototype.plotGroup=function(a,b,e,d,f){var g=this[a],l=!g;e={visibility:e,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);l&&(this[a]=g=this.chart.renderer.g().add(f));g.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(c(this.colorIndex)?
455
- "highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(e)[l?"attr":"animate"](this.getPlotBox());return g};a.prototype.getPlotBox=function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=function(a){a||H(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),
456
- this.eventsToUnbind.length=0)};a.prototype.render=function(){var a=this,c=a.chart,e=a.options,d=b(e.animation),f=a.visible?"inherit":"hidden",g=e.zIndex,l=a.hasRendered,k=c.seriesGroup,n=c.inverted,h=!a.finishedAnimating&&c.renderer.isSVG&&d.duration;I(this,"render");var q=a.plotGroup("group","series",f,g,k);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,k);h&&a.animate&&a.animate(!0);q.inverted=N(a.invertible,a.isCartesian)?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();
457
- a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);!1===e.clip||a.sharedClipKey||l||q.clip(c.clipRect);h&&a.animate&&a.animate();l||(h&&d.defer&&(h+=d.defer),a.animationTimeout=O(function(){a.afterAnimate()},h||0));a.isDirty=!1;a.hasRendered=!0;I(a,"afterRender")};a.prototype.redraw=function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&
458
- c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:N(e&&e.left,a.plotLeft),translateY:N(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b,a)};a.prototype.buildKDTree=function(a){function b(a,e,d){var f=a&&a.length;if(f){var g=c.kdAxisArray[e%d];a.sort(function(a,
459
- b){return a[g]-b[g]});f=Math.floor(f/2);return{point:a[f],left:b(a.slice(0,f),e+1,d),right:b(a.slice(f+1),e+1,d)}}}this.buildingKdTree=!0;var c=this,e=-1<c.options.findNearestPointBy.indexOf("y")?2:1;delete c.kdTree;O(function(){c.kdTree=b(c.getValidPoints(null,!c.directTouch),e,e);c.buildingKdTree=!1},c.options.kdNow||a&&"touchstart"===a.type?0:1)};a.prototype.searchKDTree=function(a,b,e){function d(a,b,e,h){var n=b.point,q=f.kdAxisArray[e%h],p=n,u=c(a[g])&&c(n[g])?Math.pow(a[g]-n[g],2):null;var m=
460
- c(a[l])&&c(n[l])?Math.pow(a[l]-n[l],2):null;m=(u||0)+(m||0);n.dist=c(m)?Math.sqrt(m):Number.MAX_VALUE;n.distX=c(u)?Math.sqrt(u):Number.MAX_VALUE;q=a[q]-n[q];m=0>q?"left":"right";u=0>q?"right":"left";b[m]&&(m=d(a,b[m],e+1,h),p=m[k]<p[k]?m:n);b[u]&&Math.sqrt(q*q)<p[k]&&(a=d(a,b[u],e+1,h),p=a[k]<p[k]?a:p);return p}var f=this,g=this.kdAxisArray[0],l=this.kdAxisArray[1],k=b?"distX":"dist";b=-1<f.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(e);if(this.kdTree)return d(a,
461
- this.kdTree,b,b)};a.prototype.pointPlacementToXValue=function(){var a=this.options,b=a.pointRange,c=this.xAxis;a=a.pointPlacement;"between"===a&&(a=c.reversed?-.5:.5);return R(a)?a*(b||c.pointRange):0};a.prototype.isPointInside=function(a){return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=this.yAxis.len&&0<=a.plotX&&a.plotX<=this.xAxis.len};a.prototype.drawTracker=function(){var a=this,b=a.options,c=b.trackByArea,e=[].concat(c?a.areaPath:a.graphPath),d=a.chart,
462
- f=d.pointer,g=d.renderer,l=d.options.tooltip.snap,k=a.tracker,n=function(b){if(d.hoverSeries!==a)a.onMouseOver()},h="rgba(192,192,192,"+(F?.0001:.002)+")";k?k.attr({d:e}):a.graph&&(a.tracker=g.path(e).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),d.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:h,fill:c?h:"none","stroke-width":a.graph.strokeWidth()+(c?0:2*l)}),[a.tracker,
463
- a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(a){f.onTrackerMouseOut(a)}),b.cursor&&!d.styledMode&&a.css({cursor:b.cursor}),r))a.on("touchstart",n)}));I(this,"afterDrawTracker")};a.prototype.addPoint=function(a,b,c,e,d){var f=this.options,g=this.data,l=this.chart,k=this.xAxis;k=k&&k.hasNames&&k.names;var n=f.data,h=this.xData,q;b=N(b,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[a]);var u=
464
- p.x;var m=h.length;if(this.requireSorting&&u<h[m-1])for(q=!0;m&&h[m-1]>u;)m--;this.updateParallelArrays(p,"splice",m,0,0);this.updateParallelArrays(p,m);k&&p.name&&(k[u]=p.name);n.splice(m,0,a);q&&(this.data.splice(m,0,null),this.processData());"point"===f.legendType&&this.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(p,"shift"),n.shift()));!1!==d&&I(this,"addPoint",{point:p});this.isDirtyData=this.isDirty=!0;b&&l.redraw(e)};a.prototype.removePoint=function(a,
465
- b,c){var e=this,d=e.data,f=d[a],l=e.points,k=e.chart,n=function(){l&&l.length===d.length&&l.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(f||{series:e},"splice",a,1);f&&f.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};g(c,k);b=N(b,!0);f?f.firePointEvent("remove",null,n):n()};a.prototype.remove=function(a,b,c,e){function d(){f.destroy(e);g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();N(a,!0)&&g.redraw(b)}var f=this,g=f.chart;!1!==c?I(f,"remove",null,d):d()};a.prototype.update=
466
- function(a,b){a=n(a,this.userOptions);I(this,"update",{options:a});var c=this,e=c.chart,d=c.userOptions,f=c.initialType||c.type,g=e.options.plotOptions,l=B[f].prototype,k=c.finishedAnimating&&{animation:!1},h={},q,p=["eventOptions","navigatorSeries","baseSeries"],u=a.type||d.type||e.options.chart.type,m=!(this.hasDerivedData||u&&u!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||c.hasOptionChanged("dataGrouping")||c.hasOptionChanged("pointStart")||
467
- c.hasOptionChanged("pointInterval")||c.hasOptionChanged("pointIntervalUnit")||c.hasOptionChanged("keys"));u=u||f;m&&(p.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&p.push("area","graph"),c.parallelArrays.forEach(function(a){p.push(a+"Data")}),a.data&&(a.dataSorting&&G(c.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));
468
- a=ba(d,k,{index:"undefined"===typeof d.index?c.index:d.index,pointStart:N(g&&g.series&&g.series.pointStart,d.pointStart,c.xData[0])},!m&&{data:c.options.data},a);m&&a.data&&(a.data=c.options.data);p=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(p);p.forEach(function(a){p[a]=c[a];delete c[a]});g=!1;if(B[u]){if(g=u!==c.type,c.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(c,B[u].prototype);else{k=Object.hasOwnProperty.call(c,"hcEvents")&&c.hcEvents;for(q in l)c[q]=
469
- void 0;G(c,B[u].prototype);k?c.hcEvents=k:delete c.hcEvents}}else D(17,!0,e,{missingModuleFor:u});p.forEach(function(a){c[a]=p[a]});c.init(e,a);if(m&&this.points){var x=c.options;!1===x.visible?(h.graphic=1,h.dataLabel=1):c._hasPointLabels||(a=x.marker,l=x.dataLabels,!a||!1!==a.enabled&&(d.marker&&d.marker.symbol)===a.symbol||(h.graphic=1),l&&!1===l.enabled&&(h.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(h).length&&a.destroyElements(h),!1===x.showInLegend&&
470
- a.legendItem&&e.legend.destroyItem(a))},this)}c.initialType=f;e.linkSeries();g&&c.linkedSeries.length&&(c.isDirtyData=!0);I(this,"afterUpdate");N(b,!0)&&e.redraw(m?void 0:!1)};a.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(a){var b=this.options[a],c=this.chart.options.plotOptions,e=this.userOptions[a];return e?b!==e:b!==N(c&&c[this.type]&&c[this.type][a],c&&c.series&&c.series[a],b)};a.prototype.onMouseOver=
471
- function(){var a=this.chart,b=a.hoverSeries;a.pointer.setHoverChartIndex();if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&I(this,"mouseOver");this.setState("hover");a.hoverSeries=this};a.prototype.onMouseOut=function(){var a=this.options,b=this.chart,c=b.tooltip,e=b.hoverPoint;b.hoverSeries=null;if(e)e.onMouseOut();this&&a.events.mouseOut&&I(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();b.series.forEach(function(a){a.setState("",!0)})};a.prototype.setState=
472
- function(a,b){var c=this,e=c.options,d=c.graph,f=e.inactiveOtherPoints,g=e.states,l=N(g[a||"normal"]&&g[a||"normal"].animation,c.chart.options.chart.animation),k=e.lineWidth,h=0,n=e.opacity;a=a||"";if(c.state!==a&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(b){b&&(c.state&&b.removeClass("highcharts-series-"+c.state),a&&b.addClass("highcharts-series-"+a))}),c.state=a,!c.chart.styledMode)){if(g[a]&&!1===g[a].enabled)return;a&&(k=g[a].lineWidth||k+(g[a].lineWidthPlus||0),n=N(g[a].opacity,
473
- n));if(d&&!d.dashstyle)for(e={"stroke-width":k},d.animate(e,l);c["zone-graph-"+h];)c["zone-graph-"+h].animate(e,l),h+=1;f||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(a){a&&a.animate({opacity:n},l)})}b&&f&&c.points&&c.setAllPointsToState(a||void 0)};a.prototype.setAllPointsToState=function(a){this.points.forEach(function(b){b.setState&&b.setState(a)})};a.prototype.setVisible=function(a,b){var c=this,e=c.chart,d=c.legendItem,f=e.options.chart.ignoreHiddenSeries,g=c.visible,
474
- l=(c.visible=a=c.options.visible=c.userOptions.visible="undefined"===typeof a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(c[a])c[a][l]()});if(e.hoverSeries===c||(e.hoverPoint&&e.hoverPoint.series)===c)c.onMouseOut();d&&e.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&e.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});c.linkedSeries.forEach(function(b){b.setVisible(a,!1)});f&&(e.isDirtyBox=!0);I(c,l);!1!==
475
- b&&e.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);I(this,a?"select":"unselect")};a.prototype.shouldShowTooltip=function(a,b,c){void 0===c&&(c={});c.series=this;c.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,b,c)};a.defaultOptions=t;return a}();G(a.prototype,{axisTypes:["xAxis","yAxis"],
476
- coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:A.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:C,requireSorting:!0,sorted:!0});m.series=a;"";"";return a});H(a,"Extensions/ScrollablePlotArea.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w){var r=a.stop,t=w.addEvent,
477
- m=w.createElement,h=w.merge,d=w.pick;t(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=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 k={1:{name:"right",value:d}}}}else b&&(this.scrollablePixelsY=d=Math.max(0,b-this.chartHeight))&&
478
- (this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,k={2:{name:"bottom",value:d}});k&&!a.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 g=v.prototype.getPlotLinePath.apply(this,arguments);this[b]=d;return g}:(a.setAxisSize(),a.setAxisTranslation())})}});t(y,"render",function(){this.scrollablePixelsX||
479
- this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});y.prototype.setUpScrolling=function(){var a=this,d={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(d.overflowX="auto");this.scrollablePixelsY&&(d.overflowY="auto");this.scrollingParent=m("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=m("div",{className:"highcharts-scrolling"},
480
- d,this.scrollingParent);t(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=m("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};y.prototype.moveFixedElements=function(){var a=this.container,d=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(" "),
481
- 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&&h.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");h.forEach(function(b){[].forEach.call(a.querySelectorAll(b),function(a){(a.namespaceURI===d.SVG_NS?d.box:d.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};
482
- y.prototype.applyFixed=function(){var a=!this.fixedDiv,g=this.options.chart,h=g.scrollablePlotArea,k=A.getRendererType();a?(this.fixedDiv=m("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 k(this.fixedDiv,this.chartWidth,this.chartHeight,
483
- this.options.chart.style),this.scrollableMask=g.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(h.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),t(this,"afterShowResetZoom",this.moveFixedElements),t(this,"afterDrilldown",this.moveFixedElements),t(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();g=this.chartWidth+
484
- (this.scrollablePixelsX||0);k=this.chartHeight+(this.scrollablePixelsY||0);r(this.container);this.container.style.width=g+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:g,height:k,viewBox:[0,0,g,k].join(" ")});this.chartBackground.attr({width:g,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(h.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*h.scrollPositionX),h.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
485
- h.scrollPositionY));k=this.axisOffset;a=this.plotTop-k[0]-1;h=this.plotLeft-k[3]-1;g=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var w=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),F=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,g],["L",0,g],["Z"],["M",w,a],["L",this.chartWidth,a],["L",this.chartWidth,g],["L",w,g],["Z"]]:this.scrollablePixelsY?[["M",h,0],["L",h,this.plotTop-
486
- 1],["L",k,this.plotTop-1],["L",k,0],["Z"],["M",h,F],["L",h,this.chartHeight],["L",k,this.chartHeight],["L",k,F],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};t(v,"afterInit",function(){this.chart.scrollableDirty=!0});t(z,"show",function(){this.chart.scrollableDirty=!0});""});H(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,v,y){var r=a.getDeferredAnimation,A=y.addEvent,w=
487
- y.destroyObjectProperties,C=y.fireEvent,t=y.isNumber,m=y.objectEach,h;(function(a){function b(){var a=this.stacking;if(a){var b=a.stacks;m(b,function(a,d){w(a);b[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function d(){this.stacking||(this.stacking=new k(this))}var h=[];a.compose=function(a){-1===h.indexOf(a)&&(h.push(a),A(a,"init",d),A(a,"destroy",b));return a};var k=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
488
- function(){var a=this.axis,b=a.series,d=a.options.reversedStacks,g=b.length,k;if(!a.isXAxis){this.usePercentage=!1;for(k=g;k--;){var h=b[d?k:g-k-1];h.setStackedPoints();h.setGroupedPoints()}for(k=0;k<g;k++)b[k].modifyStacks();C(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;m(a,function(a){m(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,b=a.stacks;a.axis.isXAxis||m(b,function(b){m(b,
489
- function(d,f){t(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,g=this.stacks;a=r(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);m(g,function(a){m(a,function(a){a.render(k)})});k.animate({opacity:1},
490
- a)};return a}();a.Additions=k})(h||(h={}));return h});H(a,"Extensions/Stacking.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Axis/StackingAxis.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C){var t=y.format,m=C.correctFloat,h=C.defined,d=C.destroyObjectProperties,b=C.isArray,g=C.isNumber,p=C.objectEach,k=C.pick,r=function(){function a(a,b,d,g,k){var f=a.chart.inverted;this.axis=a;this.isNegative=d;this.options=
491
- b=b||{};this.x=g;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=k;this.rightCliff=this.leftCliff=0;this.alignOptions={align:b.align||(f?d?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":d?"bottom":"top"),y:b.y,x:b.x};this.textAlign=b.textAlign||(f?d?"right":"left":"center")}a.prototype.destroy=function(){d(this,this.axis)};a.prototype.render=function(a){var b=this.axis.chart,d=this.options,f=d.format;f=f?t(f,this,b):d.formatter.call(this);this.label?this.label.attr({text:f,
492
- 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};a.prototype.setOffset=function(a,b,d,p,m){var f=this.axis,n=f.chart;p=f.translate(f.stacking.usePercentage?
493
- 100:p?p:this.total,0,0,0,1);d=f.translate(d?d:0);d=h(p)&&Math.abs(p-d);a=k(m,n.xAxis[0].translate(this.x))+a;f=h(p)&&this.getStackBox(n,this,a,p,b,d,f);b=this.label;d=this.isNegative;a="justify"===k(this.options.overflow,"justify");var e=this.textAlign;b&&f&&(m=b.getBBox(),p=b.padding,e="left"===e?n.inverted?-p:p:"right"===e?m.width:n.inverted&&"center"===e?m.width/2:n.inverted?d?m.width+p:-p:m.width/2,d=n.inverted?m.height/2:d?-p:m.height,this.alignOptions.x=k(this.options.x,0),this.alignOptions.y=
494
- k(this.options.y,0),f.x-=e,f.y-=d,b.align(this.alignOptions,null,f),n.isInsidePlot(b.alignAttr.x+e-this.alignOptions.x,b.alignAttr.y+d-this.alignOptions.y)?b.show():(b.alignAttr.y=-9999,a=!1),a&&A.prototype.justifyDataLabel.call(this.axis,b,this.alignOptions,b.alignAttr,m,f),b.attr({x:b.alignAttr.x,y:b.alignAttr.y}),k(!a&&this.options.crop,!0)&&((n=g(b.x)&&g(b.y)&&n.isInsidePlot(b.x-p+b.width,b.y)&&n.isInsidePlot(b.x+p,b.y))||b.hide()))};a.prototype.getStackBox=function(a,b,d,g,k,h,n){var e=b.axis.reversed,
495
- c=a.inverted,f=n.height+n.pos-(c?a.plotLeft:a.plotTop);b=b.isNegative&&!e||!b.isNegative&&e;return{x:c?b?g-n.right:g-h+n.pos-a.plotLeft:d+a.xAxis[0].transB-a.plotLeft,y:c?n.height-d-k:b?f-g-h:f-g,width:c?h:k,height:c?k:h}};return a}();v.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!==
496
- 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())})};w.compose(a);A.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?A.prototype.setStackedPoints.call(this,"group"):a&&p(a.stacks,function(b,d){"group"===d.slice(-5)&&(p(b,function(a){return a.destroy()}),delete a.stacks[d])})};
497
- A.prototype.setStackedPoints=function(a){var d=a||this.options.stacking;if(d&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var g=this.processedXData,p=this.processedYData,u=[],t=p.length,q=this.options,n=q.threshold,e=k(q.startFromThreshold&&n,0);q=q.stack;a=a?this.type+","+d:this.stackKey;var c="-"+a,l=this.negStacks,D=this.yAxis,w=D.stacking.stacks,v=D.stacking.oldStacks,C,F;D.stacking.stacksTouched+=1;for(F=0;F<t;F++){var z=g[F];var y=p[F];var J=this.getStackIndicator(J,
498
- z,this.index);var A=J.key;var K=(C=l&&y<(e?0:n))?c:a;w[K]||(w[K]={});w[K][z]||(v[K]&&v[K][z]?(w[K][z]=v[K][z],w[K][z].total=null):w[K][z]=new r(D,D.options.stackLabels,C,z,q));K=w[K][z];null!==y?(K.points[A]=K.points[this.index]=[k(K.cumulative,e)],h(K.cumulative)||(K.base=A),K.touched=D.stacking.stacksTouched,0<J.index&&!1===this.singleStacks&&(K.points[A][0]=K.points[this.index+","+z+",0"][0])):K.points[A]=K.points[this.index]=null;"percent"===d?(C=C?a:c,l&&w[C]&&w[C][z]?(C=w[C][z],K.total=C.total=
499
- Math.max(C.total,K.total)+Math.abs(y)||0):K.total=m(K.total+(Math.abs(y)||0))):"group"===d?(b(y)&&(y=y[0]),null!==y&&(K.total=(K.total||0)+1)):K.total=m(K.total+(y||0));K.cumulative="group"===d?(K.total||1)-1:k(K.cumulative,e)+(y||0);null!==y&&(K.points[A].push(K.cumulative),u[F]=K.cumulative,K.hasValidPoints=!0)}"percent"===d&&(D.stacking.usePercentage=!0);"group"!==d&&(this.stackedYData=u);D.stacking.oldStacks={}}};A.prototype.modifyStacks=function(){var a=this,b=a.stackKey,d=a.yAxis.stacking.stacks,
500
- g=a.processedXData,k,h=a.options.stacking;a[h+"Stacker"]&&[b,"-"+b].forEach(function(b){for(var f=g.length,e,c;f--;)if(e=g[f],k=a.getStackIndicator(k,e,a.index,b),c=(e=d[b]&&d[b][e])&&e.points[k.key])a[h+"Stacker"](c,e,f)})};A.prototype.percentStacker=function(a,b,d){b=b.total?100/b.total:0;a[0]=m(a[0]*b);a[1]=m(a[1]*b);this.stackedYData[d]=a[1]};A.prototype.getStackIndicator=function(a,b,d,g){!h(a)||a.x!==b||g&&a.key!==g?a={x:b,index:0,key:g}:a.index++;a.key=[d,b,a.index].join();return a};z.StackItem=
501
- r;"";return z.StackItem});H(a,"Series/Line/LineSeries.js",[a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=this&&this.__extends||function(){var a=function(m,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(m,h)};return function(m,h){function d(){this.constructor=m}a(m,h);m.prototype=null===h?Object.create(h):
502
- (d.prototype=h.prototype,new d)}}(),w=z.defined,C=z.merge;z=function(t){function m(){var a=null!==t&&t.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(m,t);m.prototype.drawGraph=function(){var h=this,d=this.options,b=(this.gappedPath||this.getGraphPath).call(this),g=this.chart.styledMode,p=[["graph","highcharts-graph"]];g||p[0].push(d.lineColor||this.color||a.neutralColor20,d.dashStyle);p=h.getZonesGraphs(p);p.forEach(function(a,p){var k=a[0],f=h[k],m=f?"animate":
503
- "attr";f?(f.endX=h.preventGraphAnimation?null:b.xMap,f.animate({d:b})):b.length&&(h[k]=f=h.chart.renderer.path(b).addClass(a[1]).attr({zIndex:1}).add(h.group));f&&!g&&(k={stroke:a[2],"stroke-width":d.lineWidth,fill:h.fillGraph&&h.color||"none"},a[3]?k.dashstyle=a[3]:"square"!==d.linecap&&(k["stroke-linecap"]=k["stroke-linejoin"]="round"),f[m](k).shadow(2>p&&d.shadow));f&&(f.startX=b.xMap,f.isArea=b.isArea)})};m.prototype.getGraphPath=function(a,d,b){var g=this,h=g.options,k=[],m=[],t,f=h.step;a=a||
504
- g.points;var r=a.reversed;r&&a.reverse();(f={right:1,center:2}[f]||f&&3)&&r&&(f=4-f);a=this.getValidPoints(a,!1,!(h.connectNulls&&!d&&!b));a.forEach(function(p,u){var r=p.plotX,q=p.plotY,n=a[u-1];(p.leftCliff||n&&n.rightCliff)&&!b&&(t=!0);p.isNull&&!w(d)&&0<u?t=!h.connectNulls:p.isNull&&!d?t=!0:(0===u||t?u=[["M",p.plotX,p.plotY]]:g.getPointSpline?u=[g.getPointSpline(a,p,u)]:f?(u=1===f?[["L",n.plotX,q]]:2===f?[["L",(n.plotX+r)/2,n.plotY],["L",(n.plotX+r)/2,q]]:[["L",r,n.plotY]],u.push(["L",r,q])):
505
- u=[["L",r,q]],m.push(p.x),f&&(m.push(p.x),2===f&&m.push(p.x)),k.push.apply(k,u),t=!1)});k.xMap=m;return g.graphPath=k};m.prototype.getZonesGraphs=function(a){this.zones.forEach(function(d,b){b=["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+b+" "+(d.className||"")];this.chart.styledMode||b.push(d.color||this.color,d.dashStyle||this.options.dashStyle);a.push(b)},this);return a};m.defaultOptions=C(v.defaultOptions,{});return m}(v);y.registerSeriesType("line",z);"";return z});H(a,"Series/Area/AreaSeries.js",
506
- [a["Core/Color/Color.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,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)}}(),w=a.parse,
507
- C=y.seriesTypes.line;a=z.extend;var t=z.merge,m=z.objectEach,h=z.pick;z=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}r(b,a);b.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var b=this,d=this.areaPath,k=this.options,m=[["area","highcharts-area",this.color,k.fillColor]];this.zones.forEach(function(a,d){m.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className,a.color||
508
- b.color,a.fillColor||k.fillColor])});m.forEach(function(a){var f=a[0],g=b[f],p=g?"animate":"attr",m={};g?(g.endX=b.preventGraphAnimation?null:d.xMap,g.animate({d:d})):(m.zIndex=0,g=b[f]=b.chart.renderer.path(d).addClass(a[1]).add(b.group),g.isArea=!0);b.chart.styledMode||(m.fill=h(a[3],w(a[2]).setOpacity(h(k.fillOpacity,.75)).get()));g[p](m);g.startX=d.xMap;g.shiftUnit=k.step?2:1})};b.prototype.getGraphPath=function(a){var b=C.prototype.getGraphPath,d=this.options,g=d.stacking,m=this.yAxis,f,t=[],
509
- r=[],u=this.index,E=m.stacking.stacks[this.stackKey],q=d.threshold,n=Math.round(m.getThreshold(d.threshold));d=h(d.connectNulls,"percent"===g);var e=function(b,c,e){var d=a[b];b=g&&E[d.x].points[u];var f=d[e+"Null"]||0;e=d[e+"Cliff"]||0;d=!0;if(e||f){var k=(f?b[0]:b[1])+e;var h=b[0]+e;d=!!f}else!g&&a[c]&&a[c].isNull&&(k=h=q);"undefined"!==typeof k&&(r.push({plotX:l,plotY:null===k?n:m.getThreshold(k),isNull:d,isCliff:!0}),t.push({plotX:l,plotY:null===h?n:m.getThreshold(h),doCurve:!1}))};a=a||this.points;
510
- g&&(a=this.getStackPoints(a));for(f=0;f<a.length;f++){g||(a[f].leftCliff=a[f].rightCliff=a[f].leftNull=a[f].rightNull=void 0);var c=a[f].isNull;var l=h(a[f].rectPlotX,a[f].plotX);var D=g?h(a[f].yBottom,n):n;if(!c||d)d||e(f,f-1,"left"),c&&!g&&d||(r.push(a[f]),t.push({x:f,plotX:l,plotY:D})),d||e(f,f+1,"right")}f=b.call(this,r,!0,!0);t.reversed=!0;c=b.call(this,t,!0,!0);(D=c[0])&&"M"===D[0]&&(c[0]=["L",D[1],D[2]]);c=f.concat(c);c.length&&c.push(["Z"]);b=b.call(this,r,!1,d);c.xMap=f.xMap;this.areaPath=
511
- c;return b};b.prototype.getStackPoints=function(a){var b=this,d=[],g=[],t=this.xAxis,f=this.yAxis,r=f.stacking.stacks[this.stackKey],x={},u=f.series,E=u.length,q=f.options.reversedStacks?1:-1,n=u.indexOf(b);a=a||this.points;if(this.options.stacking){for(var e=0;e<a.length;e++)a[e].leftNull=a[e].rightNull=void 0,x[a[e].x]=a[e];m(r,function(a,b){null!==a.total&&g.push(b)});g.sort(function(a,b){return a-b});var c=u.map(function(a){return a.visible});g.forEach(function(a,e){var l=0,k,p;if(x[a]&&!x[a].isNull)d.push(x[a]),
512
- [-1,1].forEach(function(d){var f=1===d?"rightNull":"leftNull",l=0,h=r[g[e+d]];if(h)for(var m=n;0<=m&&m<E;){var t=u[m].index;k=h.points[t];k||(t===b.index?x[a][f]=!0:c[m]&&(p=r[a].points[t])&&(l-=p[1]-p[0]));m+=q}x[a][1===d?"rightCliff":"leftCliff"]=l});else{for(var m=n;0<=m&&m<E;){if(k=r[a].points[u[m].index]){l=k[1];break}m+=q}l=h(l,0);l=f.translate(l,0,1,0,1);d.push({isNull:!0,plotX:t.translate(a,0,0,0,1),x:a,plotY:l,yBottom:l})}})}return d};b.defaultOptions=t(C.defaultOptions,{threshold:0});return b}(C);
513
- a(z.prototype,{singleStacks:!1,drawLegendSymbol:v.drawRectangle});y.registerSeriesType("area",z);"";return z});H(a,"Series/Spline/SplineSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(t,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(t,m)};return function(t,m){function h(){this.constructor=t}a(t,
514
- m);t.prototype=null===m?Object.create(m):(h.prototype=m.prototype,new h)}}(),z=a.seriesTypes.line,A=v.merge,w=v.pick;v=function(a){function t(){var m=null!==a&&a.apply(this,arguments)||this;m.data=void 0;m.options=void 0;m.points=void 0;return m}r(t,a);t.prototype.getPointSpline=function(a,h,d){var b=h.plotX||0,g=h.plotY||0,p=a[d-1];d=a[d+1];if(p&&!p.isNull&&!1!==p.doCurve&&!h.isCliff&&d&&!d.isNull&&!1!==d.doCurve&&!h.isCliff){a=p.plotY||0;var k=d.plotX||0;d=d.plotY||0;var m=0;var t=(1.5*b+(p.plotX||
515
- 0))/2.5;var f=(1.5*g+a)/2.5;k=(1.5*b+k)/2.5;var r=(1.5*g+d)/2.5;k!==t&&(m=(r-f)*(k-b)/(k-t)+g-r);f+=m;r+=m;f>a&&f>g?(f=Math.max(a,g),r=2*g-f):f<a&&f<g&&(f=Math.min(a,g),r=2*g-f);r>d&&r>g?(r=Math.max(d,g),f=2*g-r):r<d&&r<g&&(r=Math.min(d,g),f=2*g-r);h.rightContX=k;h.rightContY=r}h=["C",w(p.rightContX,p.plotX,0),w(p.rightContY,p.plotY,0),w(t,b,0),w(f,g,0),b,g];p.rightContX=p.rightContY=void 0;return h};t.defaultOptions=A(z.defaultOptions);return t}(z);a.registerSeriesType("spline",v);"";return v});
516
- H(a,"Series/AreaSpline/AreaSplineSeries.js",[a["Series/Area/AreaSeries.js"],a["Series/Spline/SplineSeries.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z,A){var r=this&&this.__extends||function(){var a=function(d,b){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(d,b)};return function(d,b){function g(){this.constructor=d}a(d,
517
- b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),C=a.prototype,t=A.extend,m=A.merge;A=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}r(d,h);d.defaultOptions=m(v.defaultOptions,a.defaultOptions);return d}(v);t(A.prototype,{getGraphPath:C.getGraphPath,getStackPoints:C.getStackPoints,drawGraph:C.drawGraph,drawLegendSymbol:y.drawRectangle});z.registerSeriesType("areaspline",A);"";return A});H(a,
518
- "Series/Column/ColumnSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t){var m=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};
519
- return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),h=a.animObject,d=v.parse,b=y.hasTouch;a=y.noop;var g=t.clamp,p=t.css,k=t.defined,r=t.extend,F=t.fireEvent,f=t.isArray,B=t.isNumber,x=t.merge,u=t.pick,E=t.objectEach;t=function(a){function n(){var b=null!==a&&a.apply(this,arguments)||this;b.borderWidth=void 0;b.data=void 0;b.group=void 0;b.options=void 0;b.points=void 0;return b}m(n,a);n.prototype.animate=
520
- function(a){var b=this,e=this.yAxis,d=b.options,f=this.chart.inverted,k={},n=f?"translateX":"translateY";if(a)k.scaleY=.001,a=g(e.toPixels(d.threshold),e.pos,e.pos+e.len),f?k.translateX=a-e.len:k.translateY=a,b.clipBox&&b.setClip(),b.group.attr(k);else{var p=Number(b.group.attr(n));b.group.animate({scaleY:1},r(h(b.options.animation),{step:function(a,c){b.group&&(k[n]=p+c.pos*(e.pos-p),b.group.attr(k))}}))}};n.prototype.init=function(b,c){a.prototype.init.apply(this,arguments);var e=this;b=e.chart;
521
- b.hasRendered&&b.series.forEach(function(a){a.type===e.type&&(a.isDirty=!0)})};n.prototype.getColumnMetrics=function(){var a=this,b=a.options,d=a.xAxis,f=a.yAxis,g=d.options.reversedStacks;g=d.reversed&&!g||!d.reversed&&g;var k={},h,n=0;!1===b.grouping?n=1:a.chart.series.forEach(function(b){var c=b.yAxis,e=b.options;if(b.type===a.type&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&f.len===c.len&&f.pos===c.pos){if(e.stacking&&"group"!==e.stacking){h=b.stackKey;"undefined"===typeof k[h]&&
522
- (k[h]=n++);var d=k[h]}else!1!==e.grouping&&(d=n++);b.columnIndex=d}});var p=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||b.pointRange||d.closestPointRange||d.tickInterval||1),d.len),q=p*b.groupPadding,m=(p-2*q)/(n||1);b=Math.min(b.maxPointWidth||d.len,u(b.pointWidth,m*(1-2*b.pointPadding)));a.columnMetrics={width:b,offset:(m-b)/2+(q+((a.columnIndex||0)+(g?1:0))*m-p/2)*(g?-1:1),paddedWidth:m,columnCount:n};return a.columnMetrics};n.prototype.crispCol=function(a,b,d,f){var c=this.chart,
523
- e=this.borderWidth,g=-(e%2?.5:0);e=e%2?.5:1;c.inverted&&c.renderer.isVML&&(e+=1);this.options.crisp&&(d=Math.round(a+d)+g,a=Math.round(a)+g,d-=a);f=Math.round(b+f)+e;g=.5>=Math.abs(b)&&.5<f;b=Math.round(b)+e;f-=b;g&&f&&(--b,f+=1);return{x:a,y:b,width:d,height:f}};n.prototype.adjustForMissingColumns=function(a,b,d,g){var c=this,e=this.options.stacking;if(!d.isNull&&1<g.columnCount){var k=0,l=0;E(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof d.x&&(a=a[d.x.toString()])){var b=
524
- a.points[c.index],g=a.total;e?(b&&(k=l),a.hasValidPoints&&l++):f(b)&&(k=b[1],l=g||0)}});a=(d.plotX||0)+((l-1)*g.paddedWidth+b)/2-b-k*g.paddedWidth}return a};n.prototype.translate=function(){var a=this,b=a.chart,d=a.options,f=a.dense=2>a.closestPointRange*a.xAxis.transA;f=a.borderWidth=u(d.borderWidth,f?0:1);var h=a.xAxis,n=a.yAxis,p=d.threshold,q=a.translatedThreshold=n.getThreshold(p),m=u(d.minPointLength,5),t=a.getColumnMetrics(),r=t.width,E=a.pointXOffset=t.offset,x=a.dataMin,v=a.dataMax,C=a.barW=
525
- Math.max(r,1+2*f);b.inverted&&(q-=.5);d.pointPadding&&(C=Math.ceil(C));w.prototype.translate.apply(a);a.points.forEach(function(c){var e=u(c.yBottom,q),f=999+Math.abs(e),l=c.plotX||0;f=g(c.plotY,-f,n.len+f);var D=Math.min(f,e),w=Math.max(f,e)-D,z=r,y=l+E,A=C;m&&Math.abs(w)<m&&(w=m,l=!n.reversed&&!c.negative||n.reversed&&c.negative,B(p)&&B(v)&&c.y===p&&v<=p&&(n.min||0)<p&&(x!==v||(n.max||0)<=p)&&(l=!l),D=Math.abs(D-q)>m?e-m:q-(l?m:0));k(c.options.pointWidth)&&(z=A=Math.ceil(c.options.pointWidth),y-=
526
- Math.round((z-r)/2));d.centerInCategory&&(y=a.adjustForMissingColumns(y,z,c,t));c.barX=y;c.pointWidth=z;c.tooltipPos=b.inverted?[g(n.len+n.pos-b.plotLeft-f,n.pos-b.plotLeft,n.len+n.pos-b.plotLeft),h.len+h.pos-b.plotTop-y-A/2,w]:[h.left-b.plotLeft+y+A/2,g(f+n.pos-b.plotTop,n.pos-b.plotTop,n.len+n.pos-b.plotTop),w];c.shapeType=a.pointClass.prototype.shapeType||"rect";c.shapeArgs=a.crispCol.apply(a,c.isNull?[y,q,A,0]:[y,D,A,w])})};n.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};
527
- n.prototype.pointAttribs=function(a,b){var c=this.options,e=this.pointAttrToOptions||{},f=e.stroke||"borderColor",g=e["stroke-width"]||"borderWidth",k=a&&a.color||this.color,h=a&&a[f]||c[f]||k;e=a&&a.options.dashStyle||c.dashStyle;var n=a&&a[g]||c[g]||this[g]||0,p=u(a&&a.opacity,c.opacity,1);if(a&&this.zones.length){var q=a.getZone();k=a.options.color||q&&(q.color||a.nonZonedColor)||this.color;q&&(h=q.borderColor||h,e=q.dashStyle||e,n=q.borderWidth||n)}b&&a&&(a=x(c.states[b],a.options.states&&a.options.states[b]||
528
- {}),b=a.brightness,k=a.color||"undefined"!==typeof b&&d(k).brighten(a.brightness).get()||k,h=a[f]||h,n=a[g]||n,e=a.dashStyle||e,p=u(a.opacity,p));f={fill:k,stroke:h,"stroke-width":n,opacity:p};e&&(f.dashstyle=e);return f};n.prototype.drawPoints=function(){var a=this,b=this.chart,d=a.options,f=b.renderer,g=d.animationLimit||250,k;a.points.forEach(function(c){var e=c.graphic,l=!!e,h=e&&b.pointCount<g?"animate":"attr";if(B(c.plotY)&&null!==c.y){k=c.shapeArgs;e&&c.hasNewShapeType()&&(e=e.destroy());a.enabledDataSorting&&
529
- (c.startXPos=a.xAxis.reversed?-(k?k.width||0:0):a.xAxis.width);e||(c.graphic=e=f[c.shapeType](k).add(c.group||a.group))&&a.enabledDataSorting&&b.hasRendered&&b.pointCount<g&&(e.attr({x:c.startXPos}),l=!0,h="animate");if(e&&l)e[h](x(k));if(d.borderRadius)e[h]({r:d.borderRadius});b.styledMode||e[h](a.pointAttribs(c,c.selected&&"select")).shadow(!1!==c.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);e&&(e.addClass(c.getClassName(),!0),e.attr({visibility:c.visible?"inherit":"hidden"}))}else e&&
530
- (c.graphic=e.destroy())})};n.prototype.drawTracker=function(){var a=this,c=a.chart,d=c.pointer,g=function(a){var b=d.getPointFromEvent(a);"undefined"!==typeof b&&(d.isDirectTouch=!0,b.onMouseOver(a))},k;a.points.forEach(function(a){k=f(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);k.forEach(function(b){b.div?b.div.point=a:b.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(e){if(a[e]){a[e].addClass("highcharts-tracker").on("mouseover",
531
- g).on("mouseout",function(a){d.onTrackerMouseOut(a)});if(b)a[e].on("touchstart",g);!c.styledMode&&a.options.cursor&&a[e].css(p).css({cursor:a.options.cursor})}}),a._hasTracking=!0);F(this,"afterDrawTracker")};n.prototype.remove=function(){var a=this,b=a.chart;b.hasRendered&&b.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});w.prototype.remove.apply(a,arguments)};n.defaultOptions=x(w.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,
532
- cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:A.neutralColor20,borderColor:A.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:A.backgroundColor});return n}(w);r(t.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:z.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});C.registerSeriesType("column",t);"";"";return t});
533
- H(a,"Core/Series/DataLabel.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=a.getDeferredAnimation,w=v.format,C=z.defined,t=z.extend,m=z.fireEvent,h=z.isArray,d=z.merge,b=z.objectEach,g=z.pick,p=z.splat,k;(function(a){function k(a,b,c,d,f){var e=this,k=this.chart,l=this.isCartesian&&k.inverted,h=this.enabledDataSorting,n=g(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),p=g(a.plotY,-9999),q=b.getBBox(),m=
534
- c.rotation,u=c.align,r=k.isInsidePlot(n,Math.round(p),{inverted:l,paneCoordinates:!0,series:e}),E=function(c){h&&e.xAxis&&!x&&e.setDataLabelStartPos(a,b,f,r,c)},x="justify"===g(c.overflow,h?"none":"justify"),B=this.visible&&!1!==a.visible&&(a.series.forceDL||h&&!x||r||g(c.inside,!!this.options.stacking)&&d&&k.isInsidePlot(n,l?d.x+1:d.y+d.height-1,{inverted:l,paneCoordinates:!0,series:e}));if(B){var D=k.renderer.fontMetrics(k.styledMode?void 0:c.style.fontSize,b).b;d=t({x:l?this.yAxis.len-p:n,y:Math.round(l?
535
- this.xAxis.len-n:p),width:0,height:0},d);t(c,{width:q.width,height:q.height});m?(x=!1,n=k.renderer.rotCorr(D,m),n={x:d.x+(c.x||0)+d.width/2+n.x,y:d.y+(c.y||0)+{top:0,middle:.5,bottom:1}[c.verticalAlign]*d.height},E(n),b[f?"attr":"animate"](n).attr({align:u}),E=(m+720)%360,E=180<E&&360>E,"left"===u?n.y-=E?q.height:0:"center"===u?(n.x-=q.width/2,n.y-=q.height/2):"right"===u&&(n.x-=q.width,n.y-=E?0:q.height),b.placed=!0,b.alignAttr=n):(E(d),b.align(c,void 0,d),n=b.alignAttr);x&&0<=d.height?this.justifyDataLabel(b,
536
- c,n,q,d,f):g(c.crop,!0)&&(B=k.isInsidePlot(n.x,n.y,{paneCoordinates:!0,series:e})&&k.isInsidePlot(n.x+q.width,n.y+q.height,{paneCoordinates:!0,series:e}));if(c.shape&&!m)b[f?"attr":"animate"]({anchorX:l?k.plotWidth-a.plotY:a.plotX,anchorY:l?k.plotHeight-a.plotX:a.plotY})}f&&h&&(b.placed=!1);B||h&&!x||(b.hide(!0),b.placed=!1)}function f(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,">"===b&&a>c||"<"===b&&a<c||">="===b&&a>=c||"<="===b&&a<=c||"=="===b&&a==c||"==="===b&&a===c?!0:
537
- !1):!0}function B(){var a=this,d=a.chart,c=a.options,k=a.points,q=a.hasRendered||0,t=d.renderer,E=c.dataLabels,x,B=E.animation;B=E.defer?r(d,B,a):{defer:0,duration:0};E=u(u(d.options.plotOptions&&d.options.plotOptions.series&&d.options.plotOptions.series.dataLabels,d.options.plotOptions&&d.options.plotOptions[a.type]&&d.options.plotOptions[a.type].dataLabels),E);m(this,"drawDataLabels");if(h(E)||E.enabled||a._hasPointLabels){var v=a.plotGroup("dataLabelsGroup","data-labels",q?"inherit":"hidden",E.zIndex||
538
- 6);v.attr({opacity:+q});!q&&(q=a.dataLabelsGroup)&&(a.visible&&v.show(!0),q[c.animation?"animate":"attr"]({opacity:1},B));k.forEach(function(e){x=p(u(E,e.dlOptions||e.options&&e.options.dataLabels));x.forEach(function(k,l){var h=k.enabled&&(!e.isNull||e.dataLabelOnNull)&&f(e,k),n=e.connectors?e.connectors[l]:e.connector,q=e.dataLabels?e.dataLabels[l]:e.dataLabel,p=g(k.distance,e.labelDistance),m=!q;if(h){var u=e.getLabelConfig();var r=g(k[e.formatPrefix+"Format"],k.format);u=C(r)?w(r,u,d):(k[e.formatPrefix+
539
- "Formatter"]||k.formatter).call(u,k);r=k.style;var E=k.rotation;d.styledMode||(r.color=g(k.color,r.color,a.color,y.neutralColor100),"contrast"===r.color?(e.contrastColor=t.getContrast(e.color||a.color),r.color=!C(p)&&k.inside||0>p||c.stacking?e.contrastColor:y.neutralColor100):delete e.contrastColor,c.cursor&&(r.cursor=c.cursor));var x={r:k.borderRadius||0,rotation:E,padding:k.padding,zIndex:1};d.styledMode||(x.fill=k.backgroundColor,x.stroke=k.borderColor,x["stroke-width"]=k.borderWidth);b(x,function(a,
540
- b){"undefined"===typeof a&&delete x[b]})}!q||h&&C(u)?h&&C(u)&&(q?x.text=u:(e.dataLabels=e.dataLabels||[],q=e.dataLabels[l]=E?t.text(u,0,-9999,k.useHTML).addClass("highcharts-data-label"):t.label(u,0,-9999,k.shape,null,null,k.useHTML,null,"data-label"),l||(e.dataLabel=q),q.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(k.className||"")+(k.useHTML?" highcharts-tracker":""))),q.options=k,q.attr(x),d.styledMode||q.css(r).shadow(k.shadow),q.added||q.add(v),k.textPath&&!k.useHTML&&(q.setTextPath(e.getDataLabelPath&&
541
- e.getDataLabelPath(q)||e.graphic,k.textPath),e.dataLabelPath&&!k.textPath.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),a.alignDataLabel(e,q,k,null,m)):(e.dataLabel=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(1===e.dataLabels.length?delete e.dataLabels:delete e.dataLabels[l]),l||delete e.dataLabel,n&&(e.connector=e.connector.destroy(),e.connectors&&(1===e.connectors.length?delete e.connectors:delete e.connectors[l])))})})}m(this,"afterDrawDataLabels")}function x(a,b,c,d,f,g){var e=this.chart,
542
- k=b.align,l=b.verticalAlign,h=a.box?0:a.padding||0,n=b.x;n=void 0===n?0:n;var q=b.y;q=void 0===q?0:q;var p=(c.x||0)+h;if(0>p){"right"===k&&0<=n?(b.align="left",b.inside=!0):n-=p;var m=!0}p=(c.x||0)+d.width-h;p>e.plotWidth&&("left"===k&&0>=n?(b.align="right",b.inside=!0):n+=e.plotWidth-p,m=!0);p=c.y+h;0>p&&("bottom"===l&&0<=q?(b.verticalAlign="top",b.inside=!0):q-=p,m=!0);p=(c.y||0)+d.height-h;p>e.plotHeight&&("top"===l&&0>=q?(b.verticalAlign="bottom",b.inside=!0):q+=e.plotHeight-p,m=!0);m&&(b.x=n,
543
- b.y=q,a.placed=!g,a.align(b,void 0,f));return m}function u(a,b){var c=[],e;if(h(a)&&!h(b))c=a.map(function(a){return d(a,b)});else if(h(b)&&!h(a))c=b.map(function(b){return d(a,b)});else if(h(a)||h(b))for(e=Math.max(a.length,b.length);e--;)c[e]=d(a[e],b[e]);else c=d(a,b);return c}function E(a,b,c,d,f){var e=this.chart,g=e.inverted,k=this.xAxis,l=k.reversed,h=g?b.height/2:b.width/2;a=(a=a.pointWidth)?a/2:0;b.startXPos=g?f.x:l?-h-a:k.width-h+a;b.startYPos=g?l?this.yAxis.height-h+a:-h-a:f.y;d?"hidden"===
544
- b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0},void 0,b.hide);e.hasRendered&&(c&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)}var q=[];a.compose=function(a){if(-1===q.indexOf(a)){var b=a.prototype;q.push(a);b.alignDataLabel=k;b.drawDataLabels=B;b.justifyDataLabel=x;b.setDataLabelStartPos=E}}})(k||(k={}));"";return k});H(a,"Series/Column/ColumnDataLabel.js",[a["Core/Series/DataLabel.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],
545
- function(a,v,y){var r=v.series,A=y.merge,w=y.pick,C;(function(t){function m(a,b,g,h,k){var d=this.chart.inverted,p=a.series,f=a.dlBox||a.shapeArgs,m=w(a.below,a.plotY>w(this.translatedThreshold,p.yAxis.len)),t=w(g.inside,!!this.options.stacking);f&&(h=A(f),0>h.y&&(h.height+=h.y,h.y=0),f=h.y+h.height-p.yAxis.len,0<f&&f<h.height&&(h.height-=f),d&&(h={x:p.yAxis.len-h.y-h.height,y:p.xAxis.len-h.x-h.width,width:h.height,height:h.width}),t||(d?(h.x+=m?0:h.width,h.width=0):(h.y+=m?h.height:0,h.height=0)));
546
- g.align=w(g.align,!d||t?"center":m?"right":"left");g.verticalAlign=w(g.verticalAlign,d||t?"middle":m?"top":"bottom");r.prototype.alignDataLabel.call(this,a,b,g,h,k);g.inside&&a.contrastColor&&b.css({color:a.contrastColor})}var h=[];t.compose=function(d){a.compose(r);-1===h.indexOf(d)&&(h.push(d),d.prototype.alignDataLabel=m)}})(C||(C={}));return C});H(a,"Series/Bar/BarSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y){var r=this&&
547
- this.__extends||function(){var a=function(r,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(r,m)};return function(r,m){function h(){this.constructor=r}a(r,m);r.prototype=null===m?Object.create(m):(h.prototype=m.prototype,new h)}}(),A=y.extend,w=y.merge;y=function(v){function t(){var a=null!==v&&v.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(t,v);
548
- t.defaultOptions=w(a.defaultOptions,{});return t}(a);A(y.prototype,{inverted:!0});v.registerSeriesType("bar",y);"";return y});H(a,"Series/Scatter/ScatterSeries.js",[a["Series/Column/ColumnSeries.js"],a["Series/Line/LineSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
549
- (a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=z.addEvent,C=z.extend,t=z.merge;z=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}r(h,a);h.prototype.applyJitter=function(){var a=this,b=this.options.jitter,g=this.points.length;b&&this.points.forEach(function(d,k){["x","y"].forEach(function(h,p){var f="plot"+
550
- h.toUpperCase();if(b[h]&&!d.isNull){var m=a[h+"Axis"];var r=b[h]*m.transA;if(m&&!m.isLog){var u=Math.max(0,d[f]-r);m=Math.min(m.len,d[f]+r);p=1E4*Math.sin(k+p*g);d[f]=u+(m-u)*(p-Math.floor(p));"x"===h&&(d.clientX=d.plotX)}}})})};h.prototype.drawGraph=function(){this.options.lineWidth?a.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};h.defaultOptions=t(v.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',
551
- pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return h}(v);C(z.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});w(z,"afterTranslate",function(){this.applyJitter()});y.registerSeriesType("scatter",z);"";return z});H(a,"Mixins/CenteredSeries.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,v,y){var r=y.isNumber,A=y.pick,
552
- w=y.relativeLength,C=a.deg2rad;return a.CenteredSeriesMixin={getCenter:function(){var a=this.options,m=this.chart,h=2*(a.slicedOffset||0),d=m.plotWidth-2*h,b=m.plotHeight-2*h,g=a.center,p=Math.min(d,b),k=a.size,r=a.innerSize||0;"string"===typeof k&&(k=parseFloat(k));"string"===typeof r&&(r=parseFloat(r));a=[A(g[0],"50%"),A(g[1],"50%"),A(k&&0>k?void 0:a.size,"100%"),A(r&&0>r?void 0:a.innerSize||0,"0%")];!m.angular||this instanceof v||(a[3]=0);for(g=0;4>g;++g)k=a[g],m=2>g||2===g&&/%$/.test(k),a[g]=
553
- w(k,[d,b,p,a[2]][g])+(m?h:0);a[3]>a[2]&&(a[3]=a[2]);return a},getStartAndEndRadians:function(a,m){a=r(a)?a:0;m=r(m)&&m>a&&360>m-a?m:a+360;return{start:C*(a+-90),end:C*(m+-90)}}}});H(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,v,y){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)&&
554
- (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)}}(),A=a.setAnimation,w=y.addEvent,C=y.defined;a=y.extend;var t=y.isNumber,m=y.pick,h=y.relativeLength;v=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.labelDistance=void 0;b.options=void 0;b.series=void 0;return b}r(b,a);b.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,
555
- d=this.connectorShapes,h=b.connectorShape;d[h]&&(h=d[h]);return h.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(a){var b=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})};b.prototype.init=function(){var b=this;a.prototype.init.apply(this,
556
- arguments);this.name=m(this.name,"Slice");var d=function(a){b.slice("select"===a.type)};w(this,"select",d);w(this,"unselect",d);return this};b.prototype.isValid=function(){return t(this.y)&&0<=this.y};b.prototype.setVisible=function(a,b){var d=this,g=this.series,h=g.chart,f=g.options.ignoreHiddenPoint;b=m(b,f);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?
557
- "show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),f&&(g.isDirty=!0),b&&h.redraw())};b.prototype.slice=function(a,b,d){var g=this.series;A(d,g.chart);m(b,!0);this.sliced=this.options.sliced=C(a)?a:!this.sliced;g.options.data[g.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return b}(v);a(v.prototype,{connectorShapes:{fixedOffset:function(a,
558
- b,g){var d=b.breakAt;b=b.touchingSliceAt;return[["M",a.x,a.y],g.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*d.x-b.x,2*d.y-b.y,d.x,d.y]:["L",d.x,d.y],["L",b.x,b.y]]},straight:function(a,b){b=b.touchingSliceAt;return[["M",a.x,a.y],["L",b.x,b.y]]},crookedLine:function(a,b,g){b=b.touchingSliceAt;var d=this.series,k=d.center[0],m=d.chart.plotWidth,r=d.chart.plotLeft;d=a.alignment;var f=this.shapeArgs.r;g=h(g.crookDistance,1);m="left"===d?k+f+(m+r-k-f)*(1-g):r+(k-f)*g;g=["L",m,a.y];k=!0;if("left"===
559
- d?m>a.x||m<b.x:m<a.x||m>b.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(g);a.push(["L",b.x,b.y]);return a}}});return v});H(a,"Series/Pie/PieSeries.js",[a["Mixins/CenteredSeries.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Series/Pie/PiePoint.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t,m,h){var d=this&&this.__extends||function(){var a=
560
- 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)}}(),b=a.getStartAndEndRadians;y=y.noop;var g=h.clamp,p=h.extend,k=h.fireEvent,r=h.merge,F=h.pick,f=h.relativeLength;h=function(a){function h(){var b=null!==a&&a.apply(this,arguments)||this;b.center=
561
- void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}d(h,a);h.prototype.animate=function(a){var b=this,d=b.points,f=b.startAngleRad;a||d.forEach(function(a){var c=a.graphic,d=a.shapeArgs;c&&d&&(c.attr({r:F(a.startR,b.center&&b.center[3]/2),start:f,end:f}),c.animate({r:d.r,start:d.start,end:d.end},b.options.animation))})};h.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var f=this.center[0];
562
- var e=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,e,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:m.arc(f,e,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",stroke:d.color||A.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};h.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&
563
- b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})};h.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};h.prototype.getX=function(a,b,d){var f=this.center,e=this.radii?this.radii[d.index]||0:f[2]/2;a=Math.asin(g((a-f[1])/(e+d.labelDistance),-1,1));return f[0]+(b?-1:1)*Math.cos(a)*(e+d.labelDistance)+(0<d.labelDistance?(b?-1:1)*this.options.dataLabels.padding:
564
- 0)};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.redrawPoints=function(){var a=this,b=a.chart,d=b.renderer,f=a.options.shadow,e,c,g,k;this.drawEmpty();!f||a.shadowGroup||b.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(h){var l={};c=h.graphic;if(!h.isNull&&c){var n=void 0;k=h.shapeArgs;e=h.getTranslate();b.styledMode||(n=h.shadowGroup,f&&!n&&(n=h.shadowGroup=d.g("shadow").add(a.shadowGroup)),n&&n.attr(e),g=a.pointAttribs(h,
565
- h.selected&&"select"));h.delayedRendering?(c.setRadialReference(a.center).attr(k).attr(e),b.styledMode||c.attr(g).attr({"stroke-linejoin":"round"}).shadow(f,n),h.delayedRendering=!1):(c.setRadialReference(a.center),b.styledMode||r(!0,l,g),r(!0,l,k,e),c.animate(l));c.attr({visibility:h.visible?"inherit":"hidden"});c.addClass(h.getClassName(),!0)}else c&&(h.graphic=c.destroy())})};h.prototype.sortByAngle=function(a,b){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*b})};h.prototype.translate=
566
- function(a){this.generatePoints();var d=this.options,g=d.slicedOffset,h=g+(d.borderWidth||0),e=b(d.startAngle,d.endAngle),c=this.startAngleRad=e.start;e=(this.endAngleRad=e.end)-c;var l=this.points,m=d.dataLabels.distance;d=d.ignoreHiddenPoint;var p=l.length,u,r=0;a||(this.center=a=this.getCenter());for(u=0;u<p;u++){var t=l[u];var x=c+r*e;!t.isValid()||d&&!t.visible||(r+=t.percentage/100);var B=c+r*e;var w={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*x)/1E3,end:Math.round(1E3*B)/1E3};
567
- t.shapeType="arc";t.shapeArgs=w;t.labelDistance=F(t.options.dataLabels&&t.options.dataLabels.distance,m);t.labelDistance=f(t.labelDistance,w.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,t.labelDistance);B=(B+x)/2;B>1.5*Math.PI?B-=2*Math.PI:B<-Math.PI/2&&(B+=2*Math.PI);t.slicedTranslation={translateX:Math.round(Math.cos(B)*g),translateY:Math.round(Math.sin(B)*g)};w=Math.cos(B)*a[2]/2;var v=Math.sin(B)*a[2]/2;t.tooltipPos=[a[0]+.7*w,a[1]+.7*v];t.half=B<-Math.PI/2||B>Math.PI/2?1:0;t.angle=
568
- B;x=Math.min(h,t.labelDistance/5);t.labelPosition={natural:{x:a[0]+w+Math.cos(B)*t.labelDistance,y:a[1]+v+Math.sin(B)*t.labelDistance},"final":{},alignment:0>t.labelDistance?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+w+Math.cos(B)*x,y:a[1]+v+Math.sin(B)*x},touchingSliceAt:{x:a[0]+w,y:a[1]+v}}}}k(this,"afterTranslate")};h.prototype.updateTotals=function(){var a=this.points,b=a.length,d=this.options.ignoreHiddenPoint,f,e=0;for(f=0;f<b;f++){var c=a[f];!c.isValid()||d&&!c.visible||
569
- (e+=c.y)}this.total=e;for(f=0;f<b;f++)c=a[f],c.percentage=0<e&&(c.visible||!d)?c.y/e*100:0,c.total=e};h.defaultOptions=r(C.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,
570
- slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:A.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return h}(C);p(h.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:z.drawRectangle,drawTracker:v.prototype.drawTracker,getCenter:a.getCenter,getSymbol:y,isCartesian:!1,noSharedTooltip:!0,pointAttribs:v.prototype.pointAttribs,pointClass:w,requireSorting:!1,searchPoint:y,trackerGroups:["group","dataLabelsGroup"]});t.registerSeriesType("pie",
571
- h);"";return h});H(a,"Series/Pie/PieDataLabel.js",[a["Core/Series/DataLabel.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w){var r=v.noop,t=z.distribute,m=A.series,h=w.arrayMax,d=w.clamp,b=w.defined,g=w.merge,p=w.pick,k=w.relativeLength,J;(function(w){function f(){var a=this,d=a.data,e=a.chart,c=a.options.dataLabels||{},f=c.connectorPadding,k=e.plotWidth,u=e.plotHeight,r=e.plotLeft,
572
- x=Math.round(e.chartWidth/3),E=a.center,B=E[2]/2,w=E[1],v=[[],[]],C=[0,0,0,0],z=a.dataLabelPositioners,A,F,J,H,Z,L,U,P,X,V,Y,Q;a.visible&&(c.enabled||a._hasPointLabels)&&(d.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),m.prototype.drawDataLabels.apply(a),d.forEach(function(a){a.dataLabel&&(a.visible?(v[a.half].push(a),a.dataLabel._pos=null,!b(c.style.width)&&!b(a.options.dataLabels&&
573
- a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:Math.round(.7*x)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),v.forEach(function(d,g){var h=d.length,l=[],n;if(h){a.sortByAngle(d,g-.5);if(0<a.maxLabelDistance){var q=Math.max(0,w-B-a.maxLabelDistance);var m=Math.min(w+B+a.maxLabelDistance,e.plotHeight);d.forEach(function(a){0<a.labelDistance&&a.dataLabel&&
574
- (a.top=Math.max(0,w-B-a.labelDistance),a.bottom=Math.min(w+B+a.labelDistance,e.plotHeight),n=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+n/2,size:n,rank:a.y},l.push(a.distributeBox))});q=m+n-q;t(l,q,q/5)}for(Y=0;Y<h;Y++){A=d[Y];L=A.labelPosition;H=A.dataLabel;V=!1===A.visible?"hidden":"inherit";X=q=L.natural.y;l&&b(A.distributeBox)&&("undefined"===typeof A.distributeBox.pos?V="hidden":(U=A.distributeBox.size,X=z.radialDistributionY(A)));delete A.positionIndex;
575
- if(c.justify)P=z.justify(A,B,E);else switch(c.alignTo){case "connectors":P=z.alignToConnectors(d,g,k,r);break;case "plotEdges":P=z.alignToPlotEdges(H,g,k,r);break;default:P=z.radialDistributionX(a,A,X,q)}H._attr={visibility:V,align:L.alignment};Q=A.options.dataLabels||{};H._pos={x:P+p(Q.x,c.x)+({left:f,right:-f}[L.alignment]||0),y:X+p(Q.y,c.y)-10};L.final.x=P;L.final.y=X;p(c.crop,!0)&&(Z=H.getBBox().width,q=null,P-Z<f&&1===g?(q=Math.round(Z-P+f),C[3]=Math.max(q,C[3])):P+Z>k-f&&0===g&&(q=Math.round(P+
576
- Z-k+f),C[1]=Math.max(q,C[1])),0>X-U/2?C[0]=Math.max(Math.round(-X+U/2),C[0]):X+U/2>u&&(C[2]=Math.max(Math.round(X+U/2-u),C[2])),H.sideOverflow=q)}}}),0===h(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),this.points.forEach(function(b){Q=g(c,b.options.dataLabels);if(F=p(Q.connectorWidth,1)){var d;J=b.connector;if((H=b.dataLabel)&&H._pos&&b.visible&&0<b.labelDistance){V=H._attr.visibility;if(d=!J)b.connector=J=e.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+
577
- b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),e.styledMode||J.attr({"stroke-width":F,stroke:Q.connectorColor||b.color||y.neutralColor60});J[d?"attr":"animate"]({d:b.getConnectorPath()});J.attr("visibility",V)}else J&&(b.connector=J.destroy())}}))}function B(){this.points.forEach(function(a){var b=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||
578
- {}).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,e=this.options,c=e.center,f=e.minSize||80,g=null!==e.size;if(!g){if(null!==c[0])var h=Math.max(b[2]-Math.max(a[1],a[3]),f);else h=Math.max(b[2]-a[1]-a[3],f),b[0]+=(a[3]-a[1])/2;null!==c[1]?h=d(h,f,b[2]-Math.max(a[0],a[2])):(h=d(h,f,b[2]-a[0]-a[2]),b[1]+=(a[0]-a[2])/2);h<b[2]?(b[2]=h,b[3]=Math.min(k(e.innerSize||
579
- 0,h),h),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):g=!0}return g}var u=[],E={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,d,c){return a.getX(d<b.top+2||d>b.bottom-2?c:d,b.half,b)},justify:function(a,b,d){return d[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,d,c){a=a.getBBox().width;return b?a+c:d-a-c},alignToConnectors:function(a,b,d,c){var e=0,f;a.forEach(function(a){f=a.dataLabel.getBBox().width;f>e&&
580
- (e=f)});return b?e+c:d-e-c}};w.compose=function(b){a.compose(m);-1===u.indexOf(b)&&(u.push(b),b=b.prototype,b.dataLabelPositioners=E,b.alignDataLabel=r,b.drawDataLabels=f,b.placeDataLabels=B,b.verifyDataLabelOverflow=x)}})(J||(J={}));return J});H(a,"Extensions/OverlappingDataLabels.js",[a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,v){function r(a,d){var b=!1;if(a){var g=a.newOpacity;a.oldOpacity!==g&&(a.alignAttr&&a.placed?(a[g?"removeClass":"addClass"]("highcharts-data-label-hidden"),
581
- b=!0,a.alignAttr.opacity=g,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){d.styledMode||a.css({pointerEvents:g?"auto":"none"})}),A(d,"afterHideOverlappingLabel")):a.attr({opacity:g}));a.isOld=!0}return b}var z=v.addEvent,A=v.fireEvent,w=v.isArray,C=v.isNumber,t=v.objectEach,m=v.pick;z(a,"render",function(){var a=this,d=[];(this.labelCollectors||[]).forEach(function(a){d=d.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&
582
- t(a.stacking.stacks,function(a){t(a,function(a){a.label&&"hidden"!==a.label.visibility&&d.push(a.label)})})});(this.series||[]).forEach(function(b){var g=b.options.dataLabels;b.visible&&(!1!==g.enabled||b._hasPointLabels)&&(g=function(b){return b.forEach(function(b){b.visible&&(w(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(g){var k=g.options;g.labelrank=m(k.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height);k.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,r(g,
583
- a)):d.push(g)})})},g(b.nodes||[]),g(b.points))});this.hideOverlappingLabels(d)});a.prototype.hideOverlappingLabels=function(a){var d=this,b=a.length,g=d.renderer,h,k,m,t=!1;var f=function(a){var b,d=a.box?0:a.padding||0,f=b=0,e;if(a&&(!a.alignAttr||a.placed)){var c=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup;a.width||(b=a.getBBox(),a.width=b.width,a.height=b.height,b=g.fontMetrics(null,a.element).h);var h=a.width-2*d;(e={left:"0",center:"0.5",right:"1"}[a.alignValue])?f=+e*h:C(a.x)&&
584
- Math.round(a.x)!==a.translateX&&(f=a.x-a.translateX);return{x:c.x+(k.translateX||0)+d-(f||0),y:c.y+(k.translateY||0)+d-b,width:a.width-2*d,height:a.height-2*d}}};for(k=0;k<b;k++)if(h=a[k])h.oldOpacity=h.opacity,h.newOpacity=1,h.absoluteBox=f(h);a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(k=0;k<b;k++){var B=(f=a[k])&&f.absoluteBox;for(h=k+1;h<b;++h){var x=(m=a[h])&&m.absoluteBox;!B||!x||f===m||0===f.newOpacity||0===m.newOpacity||x.x>=B.x+B.width||x.x+x.width<=B.x||x.y>=B.y+B.height||
585
- x.y+x.height<=B.y||((f.labelrank<m.labelrank?f:m).newOpacity=0)}}a.forEach(function(a){r(a,d)&&(t=!0)});t&&A(d,"afterHideAllOverlappingLabels")}});H(a,"Core/Responsive.js",[a["Core/Utilities.js"]],function(a){var r=a.extend,y=a.find,z=a.isArray,A=a.isObject,w=a.merge,C=a.objectEach,t=a.pick,m=a.splat,h=a.uniqueKey,d;(function(a){var b=[];a.compose=function(a){-1===b.indexOf(a)&&(b.push(a),r(a.prototype,d.prototype));return a};var d=function(){function a(){}a.prototype.currentOptions=function(a){function b(a,
586
- f,g,k){var h;C(a,function(a,c){if(!k&&-1<d.collectionsWithUpdate.indexOf(c)&&f[c])for(a=m(a),g[c]=[],h=0;h<Math.max(a.length,f[c].length);h++)f[c][h]&&(void 0===a[h]?g[c][h]=f[c][h]:(g[c][h]={},b(a[h],f[c][h],g[c][h],k+1)));else A(a)?(g[c]=z(a)?[]:{},b(a,f[c]||{},g[c],k+1)):g[c]="undefined"===typeof f[c]?null:f[c]})}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<=t(d.maxWidth,Number.MAX_VALUE)&&
587
- this.chartHeight<=t(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=t(d.minWidth,0)&&this.chartHeight>=t(d.minHeight,0)}).call(this)&&b.push(a._id)};a.prototype.setResponsive=function(a,b){var d=this,g=this.options.responsive,k=this.currentResponsive,m=[];!b&&g&&g.rules&&g.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=h());d.matchResponsiveRule(a,m)},this);b=w.apply(void 0,m.map(function(a){return y((g||{}).rules||[],function(b){return b._id===a})}).map(function(a){return a&&a.chartOptions}));
588
- b.isResponsiveOptions=!0;m=m.toString()||void 0;m!==(k&&k.ruleIds)&&(k&&this.update(k.undoOptions,a,!0),m?(k=this.currentOptions(b),k.isResponsiveOptions=!0,this.currentResponsive={ruleIds:m,mergedOptions:b,undoOptions:k},this.update(b,a,!0)):this.currentResponsive=void 0)};return a}()})(d||(d={}));"";"";return d});H(a,"masters/highcharts.src.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/DefaultOptions.js"],a["Core/Animation/Fx.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],
589
- a["Core/FormatUtilities.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Renderer/HTML/HTMLElement.js"],a["Core/Renderer/HTML/HTMLRenderer.js"],a["Core/Axis/Axis.js"],a["Core/Axis/DateTimeAxis.js"],a["Core/Axis/LogarithmicAxis.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Tooltip.js"],a["Core/Series/Point.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Legend/Legend.js"],a["Core/Chart/Chart.js"],
590
- a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Column/ColumnSeries.js"],a["Series/Column/ColumnDataLabel.js"],a["Series/Pie/PieSeries.js"],a["Series/Pie/PieDataLabel.js"],a["Core/Series/DataLabel.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,v,y,z,A,w,C,t,m,h,d,b,g,p,k,J,F,f,B,x,u,E,q,n,e,c,l,D,G,M,I,H,S){a.animate=A.animate;a.animObject=A.animObject;a.getDeferredAnimation=A.getDeferredAnimation;a.setAnimation=A.setAnimation;a.stop=A.stop;
591
- a.timers=z.timers;a.AST=w;a.Axis=g;a.Chart=q;a.chart=q.chart;a.Fx=z;a.Legend=E;a.PlotLineOrBand=J;a.Point=B;a.Pointer=u.isRequired()?u:x;a.Series=n;a.SVGElement=m;a.SVGRenderer=h;a.Tick=F;a.Time=S;a.Tooltip=f;a.Color=H;a.color=H.parse;b.compose(h);d.compose(m);a.defaultOptions=y.defaultOptions;a.getOptions=y.getOptions;a.time=y.defaultTime;a.setOptions=y.setOptions;a.dateFormat=C.dateFormat;a.format=C.format;a.numberFormat=C.numberFormat;a.addEvent=v.addEvent;a.arrayMax=v.arrayMax;a.arrayMin=v.arrayMin;
592
- a.attr=v.attr;a.clearTimeout=v.clearTimeout;a.correctFloat=v.correctFloat;a.createElement=v.createElement;a.css=v.css;a.defined=v.defined;a.destroyObjectProperties=v.destroyObjectProperties;a.discardElement=v.discardElement;a.distribute=t.distribute;a.erase=v.erase;a.error=v.error;a.extend=v.extend;a.extendClass=v.extendClass;a.find=v.find;a.fireEvent=v.fireEvent;a.getMagnitude=v.getMagnitude;a.getStyle=v.getStyle;a.inArray=v.inArray;a.isArray=v.isArray;a.isClass=v.isClass;a.isDOMElement=v.isDOMElement;
593
- a.isFunction=v.isFunction;a.isNumber=v.isNumber;a.isObject=v.isObject;a.isString=v.isString;a.keys=v.keys;a.merge=v.merge;a.normalizeTickInterval=v.normalizeTickInterval;a.objectEach=v.objectEach;a.offset=v.offset;a.pad=v.pad;a.pick=v.pick;a.pInt=v.pInt;a.relativeLength=v.relativeLength;a.removeEvent=v.removeEvent;a.seriesType=e.seriesType;a.splat=v.splat;a.stableSort=v.stableSort;a.syncTimeout=v.syncTimeout;a.timeUnits=v.timeUnits;a.uniqueKey=v.uniqueKey;a.useSerialIds=v.useSerialIds;a.wrap=v.wrap;
594
- l.compose(c);M.compose(n);p.compose(g);k.compose(g);G.compose(D);J.compose(g);I.compose(q);return a});H(a,"Core/Axis/MapAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,v){var r=v.addEvent,z=v.pick,A=function(){return function(a){this.axis=a}}();v=function(){function a(){}a.compose=function(a){a.keepProps.push("mapAxis");r(a,"init",function(){this.mapAxis||(this.mapAxis=new A(this))});r(a,"getSeriesExtremes",function(){if(this.mapAxis){var a=[];this.isXAxis&&(this.series.forEach(function(m,
595
- h){m.useMapGeometry&&(a[h]=m.xData,m.xData=[])}),this.mapAxis.seriesXData=a)}});r(a,"afterGetSeriesExtremes",function(){if(this.mapAxis){var a=this.mapAxis.seriesXData||[],m;if(this.isXAxis){var h=z(this.dataMin,Number.MAX_VALUE);var d=z(this.dataMax,-Number.MAX_VALUE);this.series.forEach(function(b,g){b.useMapGeometry&&(h=Math.min(h,z(b.minX,h)),d=Math.max(d,z(b.maxX,d)),b.xData=a[g],m=!0)});m&&(this.dataMin=h,this.dataMax=d);this.mapAxis.seriesXData=void 0}}});r(a,"afterSetAxisTranslation",function(){if(this.mapAxis){var a=
596
- this.chart,m=a.plotWidth/a.plotHeight;a=a.xAxis[0];var h;"yAxis"===this.coll&&"undefined"!==typeof a.transA&&this.series.forEach(function(a){a.preserveAspectRatio&&(h=!0)});if(h&&(this.transA=a.transA=Math.min(this.transA,a.transA),m/=(a.max-a.min)/(this.max-this.min),m=1>m?this:a,a=(m.max-m.min)*m.transA,m.mapAxis.pixelPadding=m.len-a,m.minPixelPadding=m.mapAxis.pixelPadding/2,a=m.mapAxis.fixTo)){a=a[1]-m.toValue(a[0],!0);a*=m.transA;if(Math.abs(a)>m.minPixelPadding||m.min===m.dataMin&&m.max===m.dataMax)a=
597
- 0;m.minPixelPadding-=a}}});r(a,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return a}();v.compose(a);return v});H(a,"Mixins/ColorSeries.js",[],function(){return{colorPointMixin:{setVisible:function(a){var r=this,y=a?"show":"hide";r.visible=r.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(r[a])r[a][y]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",translateColors:function(){var a=this,v=this.options.nullColor,y=this.colorAxis,z=this.colorKey;
598
- (this.data.length?this.data:this.points).forEach(function(r){var w=r.getNestedProperty(z);(w=r.options.color||(r.isNull||null===r.value?v:y&&"undefined"!==typeof w?y.toColor(w,r):r.color||a.color))&&r.color!==w&&(r.color=w,"point"===a.options.legendType&&r.legendItem&&a.chart.legend.colorizeItem(r,r.visible))})}}}});H(a,"Core/Axis/Color/ColorAxisComposition.js",[a["Core/Color/Color.js"],a["Mixins/ColorSeries.js"],a["Core/Utilities.js"]],function(a,v,y){var r=a.parse,A=v.colorPointMixin,w=v.colorSeriesMixin,
599
- C=y.addEvent,t=y.extend,m=y.merge,h=y.pick,d=y.splat,b;(function(a){function b(){var a=this,b=this.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=d(b.colorAxis),b.colorAxis.forEach(function(b,c){b.index=c;new n(a,b)}))}function g(a){var b=this,d=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))},e=[],f,g;(this.chart.colorAxis||[]).forEach(function(a){(f=a.options)&&f.showInLegend&&(f.dataClasses&&f.visible?e=e.concat(a.getDataClassLegendSymbols()):
600
- f.visible&&e.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||f.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){d(a)}):d(a)}))});for(g=e.length;g--;)a.allItems.unshift(e[g])}function v(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function y(){var a=this.chart.colorAxis;a&&a.forEach(function(a,b,d){a.update({},d)})}function f(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}
601
- function B(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function x(a){var b=a.prototype.createAxis;a.prototype.createAxis=function(a,c){if("colorAxis"!==a)return b.apply(this,arguments);var d=new n(this,m(c.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0});h(c.redraw,!0)&&this.redraw(c.animation);return d}}function u(){this.elem.attr("fill",
602
- r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}function E(){this.elem.attr("stroke",r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}var q=[],n;a.compose=function(a,c,d,k,h){n||(n=a);-1===q.indexOf(c)&&(q.push(c),a=c.prototype,a.collectionsWithUpdate.push("colorAxis"),a.collectionsWithInit.colorAxis=[a.addColorAxis],C(c,"afterGetAxes",b),x(c));-1===q.indexOf(d)&&(q.push(d),c=d.prototype,c.fillSetter=u,c.strokeSetter=E);-1===q.indexOf(k)&&(q.push(k),C(k,"afterGetAllItems",g),C(k,"afterColorizeItem",
603
- v),C(k,"afterUpdate",y));-1===q.indexOf(h)&&(q.push(h),t(h.prototype,w),t(h.prototype.pointClass.prototype,A),C(h,"afterTranslate",f),C(h,"bindAxes",B))}})(b||(b={}));return b});H(a,"Core/Axis/Color/ColorAxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:a.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:a.highlightColor10,
604
- maxColor:a.highlightColor100,tickLength:5,showInLegend:!0}});H(a,"Core/Axis/Color/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Color/Color.js"],a["Core/Axis/Color/ColorAxisComposition.js"],a["Core/Axis/Color/ColorAxisDefaults.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t){var m=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
605
- b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),h=v.parse,d=A.noop,b=C.series,g=t.extend,p=t.isNumber,k=t.merge,r=t.pick;v=function(a){function f(b,d){var f=a.call(this,b,d)||this;f.beforePadding=!1;f.chart=void 0;f.coll="colorAxis";f.dataClasses=void 0;f.legendItem=void 0;f.legendItems=void 0;f.name="";f.options=void 0;f.stops=void 0;
606
- f.visible=!0;f.init(b,d);return f}m(f,a);f.compose=function(a,b,d,g){y.compose(f,a,b,d,g)};f.prototype.init=function(b,d){var g=b.options.legend||{},h=d.layout?"vertical"!==d.layout:"vertical"!==g.layout,m=d.visible;g=k(f.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:g.enabled&&!1!==m});this.coll="colorAxis";this.side=d.side||h?2:1;this.reversed=d.reversed||!h;this.opposite=!h;a.prototype.init.call(this,b,g);this.userOptions.visible=m;d.dataClasses&&this.initDataClasses(d);this.initStops();
607
- this.horiz=h;this.zoomEnabled=!1};f.prototype.initDataClasses=function(a){var b=this.chart,d=this.options,f=a.dataClasses.length,g,n=0,e=b.options.chart.colorCount;this.dataClasses=g=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,l){a=k(a);g.push(a);if(b.styledMode||!a.color)"category"===d.dataClassColor?(b.styledMode||(l=b.options.colors,e=l.length,a.color=l[n]),a.colorIndex=n,n++,n===e&&(n=0)):a.color=h(d.minColor).tweenTo(h(d.maxColor),2>f?.5:l/(f-1))})};f.prototype.hasData=function(){return!!(this.tickPositions||
608
- []).length};f.prototype.setTickPositions=function(){if(!this.dataClasses)return a.prototype.setTickPositions.call(this)};f.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=h(a[1])})};f.prototype.setOptions=function(b){a.prototype.setOptions.call(this,b);this.options.crosshair=this.options.marker};f.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},g,
609
- k;a?(this.left=d=a.attr("x"),this.top=g=a.attr("y"),this.width=k=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-k,this.bottom=b.chartHeight-g-a,this.len=this.horiz?k:a,this.pos=this.horiz?d:g):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||f.defaultLegendLength};f.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};f.prototype.toColor=function(a,b){var d=this.dataClasses,f=this.stops,g;
610
- if(d)for(g=d.length;g--;){var k=d[g];var e=k.from;f=k.to;if(("undefined"===typeof e||a>=e)&&("undefined"===typeof f||a<=f)){var c=k.color;b&&(b.dataClass=g,b.colorIndex=k.colorIndex);break}}else{a=this.normalizedValue(a);for(g=f.length;g--&&!(a>f[g][0]););e=f[g]||f[g+1];f=f[g+1]||e;a=1-(f[0]-a)/(f[0]-e[0]||1);c=e.color.tweenTo(f.color,a)}return c};f.prototype.getOffset=function(){var b=this.legendGroup,d=this.chart.axisOffset[this.side];b&&(this.axisParent=b,a.prototype.getOffset.call(this),this.added||
611
- (this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=d)};f.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};f.prototype.drawLegendSymbol=function(a,b){var d=a.padding,g=a.options,k=this.horiz,h=r(g.symbolWidth,k?f.defaultLegendLength:12),e=r(g.symbolHeight,k?12:f.defaultLegendLength),c=r(g.labelPadding,k?16:30);g=r(g.itemDistance,
612
- 10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,h,e).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=h+d+(k?g:c);this.legendItemHeight=e+d+(k?c:0)};f.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};f.prototype.setVisible=function(){};f.prototype.getSeriesExtremes=function(){var a=this.series,d=a.length,f;this.dataMin=Infinity;for(this.dataMax=-Infinity;d--;){var g=a[d];var k=g.colorKey=r(g.options.colorKey,g.colorKey,g.pointValKey,
613
- g.zoneAxis,"y");var h=g.pointArrayMap;var e=g[k+"Min"]&&g[k+"Max"];if(g[k+"Data"])var c=g[k+"Data"];else if(h){c=[];h=h.indexOf(k);var l=g.yData;if(0<=h&&l)for(f=0;f<l.length;f++)c.push(r(l[f][h],l[f]))}else c=g.yData;e?(g.minColorValue=g[k+"Min"],g.maxColorValue=g[k+"Max"]):(c=b.prototype.getExtremes.call(g,c),g.minColorValue=c.dataMin,g.maxColorValue=c.dataMax);"undefined"!==typeof g.minColorValue&&(this.dataMin=Math.min(this.dataMin,g.minColorValue),this.dataMax=Math.max(this.dataMax,g.maxColorValue));
614
- e||b.prototype.applyExtremes.call(g)}};f.prototype.drawCrosshair=function(b,d){var f=d&&d.plotX,g=d&&d.plotY,k=this.pos,h=this.len;if(d){var e=this.toPixels(d.getNestedProperty(d.series.colorKey));e<k?e=k-2:e>k+h&&(e=k+h+2);d.plotX=e;d.plotY=this.len-e;a.prototype.drawCrosshair.call(this,b,d);d.plotX=f;d.plotY=g;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||
615
- "object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};f.prototype.getPlotLinePath=function(b){var d=this.left,f=b.translatedValue,g=this.top;return p(f)?this.horiz?[["M",f-4,g-6],["L",f+4,g-6],["L",f,g],["Z"]]:[["M",d,f],["L",d-6,f+6],["L",d-6,f-6],["Z"]]:a.prototype.getPlotLinePath.call(this,b)};f.prototype.update=function(b,d){var f=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(b.dataClasses&&f.allItems||this.dataClasses)&&this.destroyItems();
616
- a.prototype.update.call(this,b,d);this.legendItem&&(this.setLegendColor(),f.colorizeItem(this,!0))};f.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};f.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();a.prototype.destroy.apply(this,[].slice.call(arguments))};f.prototype.remove=function(b){this.destroyItems();a.prototype.remove.call(this,
617
- b)};f.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,f=a.legendItems,k=b.options.legend,h=k.valueDecimals,n=k.valueSuffix||"",e;f.length||a.dataClasses.forEach(function(c,k){var l=c.from,m=c.to,p=b.numberFormatter,q=!0;e="";"undefined"===typeof l?e="< ":"undefined"===typeof m&&(e="> ");"undefined"!==typeof l&&(e+=p(l,h)+n);"undefined"!==typeof l&&"undefined"!==typeof m&&(e+=" - ");"undefined"!==typeof m&&(e+=p(m,h)+n);f.push(g({chart:b,name:e,options:{},drawLegendSymbol:w.drawRectangle,
618
- visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=a.visible=!q;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===k&&a.setVisible(q)})});b.legend.colorizeItem(this,q)}},c))});return f};f.defaultColorAxisOptions=z;f.defaultLegendLength=200;f.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return f}(a);Array.prototype.push.apply(a.keepProps,v.keepProps);"";return v});H(a,"Mixins/ColorMapSeries.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],
619
- a["Core/Utilities.js"]],function(a,v,y){var r=y.defined;y=y.addEvent;var A=a.noop;a=a.seriesTypes;y(v,"afterSetState",function(a){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:a&&"hover"===a.state?1:0})});return{colorMapPointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup",
620
- "dataLabelsGroup"],getSymbol:A,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(a){var w={};!r(a.color)||a.state&&"normal"!==a.state||(w[this.colorProp||"fill"]=a.color);return w}}}});H(a,"Maps/MapNavigationOptionsDefault.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,v){v=v.extend;var r={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",
621
- fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};v(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation=r});H(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,y){function r(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&
622
- a.stopPropagation(),a.cancelBubble=!0)}function A(a){this.init(a)}var w=v.doc,C=y.addEvent,t=y.extend,m=y.merge,h=y.objectEach,d=y.pick;A.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};A.prototype.update=function(a){var b=this.chart,p=b.options.mapNavigation,k,w,v,f,B=function(a){this.handler.call(b,a);r(a)},x=b.mapNavButtons;a&&(p=b.options.mapNavigation=m(b.options.mapNavigation,a));for(;x.length;)x.pop().destroy();d(p.enableButtons,p.enabled)&&!b.renderer.forExport&&h(p.buttons,function(a,
623
- d){a=m(p.buttonOptions,a);!b.styledMode&&a.theme&&(k=a.theme,k.style=m(a.theme.style,a.style),v=(w=k.states)&&w.hover,f=w&&w.select,delete k.states);var g=b.renderer.button(a.text||"",0,0,B,k,v,f,void 0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[d]).attr({width:a.width,height:a.height,title:b.options.lang[d],padding:a.padding,zIndex:5}).add();g.handler=a.onclick;C(g.element,"dblclick",r);x.push(g);t(a,{width:g.width,
624
- height:2*g.height});if(b.hasLoaded)g.align(a,!1,a.alignTo);else var h=C(b,"load",function(){g.element&&g.align(a,!1,a.alignTo);h()})});this.updateEvents(p)};A.prototype.updateEvents=function(a){var b=this.chart;d(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?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=
625
- this.unbindMouseWheel||C(b.container,void 0!==w.onwheel?"wheel":void 0!==w.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),r(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};t(a.prototype,{fitToBox:function(a,d){[["x","width"],["y","height"]].forEach(function(b){var g=b[0];b=b[1];a[g]+a[b]>d[g]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[g]=d[g]):a[g]=d[g]+d[b]-a[b]);a[b]>d[b]&&
626
- (a[b]=d[b]);a[g]<d[g]&&(a[g]=d[g])});return a},mapZoom:function(a,g,h,k,m,t){var b=this.xAxis[0],p=b.max-b.min,r=d(g,b.min+p/2),u=p*a;p=this.yAxis[0];var w=p.max-p.min,q=d(h,p.min+w/2);w*=a;r=this.fitToBox({x:r-u*(k?(k-b.pos)/b.len:.5),y:q-w*(m?(m-p.pos)/p.len:.5),width:u,height:w},{x:b.dataMin,y:p.dataMin,width:b.dataMax-b.dataMin,height:p.dataMax-p.dataMin});u=r.x<=b.dataMin&&r.width>=b.dataMax-b.dataMin&&r.y<=p.dataMin&&r.height>=p.dataMax-p.dataMin;k&&b.mapAxis&&(b.mapAxis.fixTo=[k-b.pos,g]);
627
- m&&p.mapAxis&&(p.mapAxis.fixTo=[m-p.pos,h]);"undefined"===typeof a||u?(b.setExtremes(void 0,void 0,!1),p.setExtremes(void 0,void 0,!1)):(b.setExtremes(r.x,r.x+r.width,!1),p.setExtremes(r.y,r.y+r.height,!1));this.redraw(t)}});C(a,"beforeRender",function(){this.mapNavigation=new A(this);this.mapNavigation.update()});v.MapNavigation=A});H(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,v){var r=v.extend,z=v.pick;v=v.wrap;var A=0,w;r(a.prototype,{onContainerDblClick:function(a){var t=
628
- this.chart;a=this.normalize(a);t.options.mapNavigation.enableDoubleClickZoomTo?t.pointer.inClass(a.target,"highcharts-tracker")&&t.hoverPoint&&t.hoverPoint.zoomTo():t.isInsidePlot(a.chartX-t.plotLeft,a.chartY-t.plotTop)&&t.mapZoom(.5,t.xAxis[0].toValue(a.chartX),t.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var t=this.chart;a=this.normalize(a);var m=a.deltaY||a.detail||-(a.wheelDelta/120);1<=Math.abs(m)&&(A+=Math.abs(m),w&&clearTimeout(w),w=setTimeout(function(){A=
629
- 0},50));10>A&&t.isInsidePlot(a.chartX-t.plotLeft,a.chartY-t.plotTop)&&t.mapZoom(Math.pow(t.options.mapNavigation.mouseWheelSensitivity,m),t.xAxis[0].toValue(a.chartX),t.yAxis[0].toValue(a.chartY),a.chartX,a.chartY,1>Math.abs(m)?!1:void 0)}});v(a.prototype,"zoomOption",function(a){var t=this.chart.options.mapNavigation;z(t.enableTouchZoom,t.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});v(a.prototype,"pinchTranslate",function(a,t,m,h,d,b,g){a.call(this,
630
- t,m,h,d,b,g);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=h.scaleX>h.scaleY,this.pinchTranslateDirection(!a,t,m,h,d,b,g,a?h.scaleX:h.scaleY))})});H(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function r(a,r,v,w,C,t,m,h){return[["M",a+C,r],["L",a+v-t,r],["C",a+v-t/2,r,a+v,r+t/2,a+v,r+t],["L",a+v,r+w-m],["C",a+v,r+w-m/2,a+v-m/2,r+w,a+v-m,r+w],["L",a+h,r+w],["C",a+h/2,r+w,a,r+w-h/2,a,r+w-h],["L",a,r+C],["C",a,r+C/2,a+C/2,r,a+C,r],["Z"]]}a=a.prototype.symbols;
631
- a.bottombutton=function(a,v,A,w,C){C=C&&C.r||0;return r(a-1,v-1,A,w,0,0,C,C)};a.topbutton=function(a,v,A,w,C){C=C&&C.r||0;return r(a-1,v-1,A,w,C,C,0,0)};return a});H(a,"Core/Chart/MapChart.js",[a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
632
- (a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=v.getOptions,C=z.merge,t=z.pick;a=function(a){function h(){return null!==a&&a.apply(this,arguments)||this}r(h,a);h.prototype.init=function(d,b){var g={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h=w().credits;d=C({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:t(h.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),
633
- mapTextFull:t(h.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:g,yAxis:C(g,{reversed:!0})},d,{chart:{inverted:!1,alignTicks:!1}});a.prototype.init.call(this,d,b)};return h}(a);(function(a){a.maps={};a.mapChart=function(h,d,b){return new a(h,d,b)};a.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?a:parseFloat(a)}));return y.prototype.pathToSegments(a)}})(a||
634
- (a={}));return a});H(a,"Series/Map/MapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y){var r=this&&this.__extends||function(){var a=function(r,t){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var d in h)h.hasOwnProperty(d)&&(a[d]=h[d])};return a(r,t)};return function(r,t){function m(){this.constructor=r}a(r,t);r.prototype=null===t?Object.create(t):(m.prototype=t.prototype,
635
- new m)}}();a=a.colorMapPointMixin;var A=y.extend;v=function(a){function w(){var r=null!==a&&a.apply(this,arguments)||this;r.options=void 0;r.path=void 0;r.series=void 0;return r}r(w,a);w.prototype.applyOptions=function(r,m){var h=this.series;r=a.prototype.applyOptions.call(this,r,m);m=h.joinBy;h.mapData&&h.mapMap&&(m=a.prototype.getNestedProperty.call(r,m[1]),(m="undefined"!==typeof m&&h.mapMap[m])?(h.xyFromShape&&(r.x=m._midX,r.y=m._midY),A(r,m)):r.value=r.value||null);return r};w.prototype.onMouseOver=
636
- function(r){y.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,r);else this.series.onMouseOut(r)};w.prototype.zoomTo=function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()};return w}(v.seriesTypes.scatter.prototype.pointClass);A(v.prototype,{dataLabelOnNull:a.dataLabelOnNull,isValid:a.isValid,moveToTopOnHover:a.moveToTopOnHover});return v});
637
- H(a,"Series/Map/MapSeries.js",[a["Mixins/ColorMapSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Chart/MapChart.js"],a["Series/Map/MapPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t,m,h){var d=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
638
- b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}();a=a.colorMapSeriesMixin;var b=v.noop,g=z.maps,p=z.splitPath;z=t.seriesTypes;var k=z.column,r=z.scatter;z=h.extend;var F=h.fireEvent,f=h.getNestedProperty,B=h.isArray,x=h.isNumber,u=h.merge,E=h.objectEach,q=h.pick,n=h.splat;h=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.baseTrans=
639
- void 0;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.transformGroup=void 0;return b}d(b,a);b.prototype.animate=function(a){var b=this.options.animation,c=this.group,d=this.xAxis,e=this.yAxis,f=d.pos,g=e.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:f+d.len/2,translateY:g+e.len/2,scaleX:.001,scaleY:.001}):c.animate({translateX:f,translateY:g,scaleX:1,scaleY:1},b))};b.prototype.animateDrilldown=function(a){var b=this.chart.plotBox,
640
- c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=c.bBox,e=this.chart.options.drilldown.animation;a||(a=Math.min(d.width/b.width,d.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:d.x,translateY:d.y},this.points.forEach(function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},e)}))};b.prototype.animateDrillupFrom=function(a){k.prototype.animateDrillupFrom.call(this,a)};b.prototype.animateDrillupTo=function(a){k.prototype.animateDrillupTo.call(this,
641
- a)};b.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans};b.prototype.drawMapDataLabels=function(){C.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,e=a.chart,f=e.renderer,g=this.baseTrans;a.transformGroup||(a.transformGroup=f.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);
642
- if(a.doFullTranslate())e.hasRendered&&!e.styledMode&&a.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,k.prototype.drawPoints.apply(a),a.group=d,a.points.forEach(function(b){if(b.graphic){var c="";b.name&&(c+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase());b.properties&&b.properties["hc-key"]&&(c+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());c&&b.graphic.addClass(c);e.styledMode&&b.graphic.css(a.pointAttribs(b,
643
- b.selected&&"select"||void 0))}}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1});else{var h=b.transA/g.transAX;var n=c.transA/g.transAY;var m=b.toPixels(g.originX,!0);var p=c.toPixels(g.originY,!0);.99<h&&1.01>h&&.99<n&&1.01>n&&(n=h=1,m=Math.round(m),p=Math.round(p));var r=this.transformGroup;if(e.renderer.globalAnimation){var u=
644
- r.attr("translateX");var t=r.attr("translateY");var w=r.attr("scaleX");var v=r.attr("scaleY");r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(m-u)*b.pos,translateY:t+(p-t)*b.pos,scaleX:w+(h-w)*b.pos,scaleY:v+(n-v)*b.pos})}})}else r.attr({translateX:m,translateY:p,scaleX:h,scaleY:n})}e.styledMode||d.element.setAttribute("stroke-width",q(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(h||1));this.drawMapDataLabels()};b.prototype.getBox=
645
- function(a){var b=Number.MAX_VALUE,c=-b,d=b,e=-b,f=b,g=b,k=this.xAxis,h=this.yAxis,l;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=p(a.path):"M"===a.path[0]&&(a.path=m.prototype.pathToSegments(a.path));var k=a.path||[],h=-b,n=b,r=-b,u=b,t=a.properties;a._foundBox||(k.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(n=Math.min(n,b),h=Math.max(h,b),u=Math.min(u,a),r=Math.max(r,a))}),a._midX=n+(h-n)*q(a.middleX,t&&t["hc-middle-x"],
646
- .5),a._midY=u+(r-u)*q(a.middleY,t&&t["hc-middle-y"],.5),a._maxX=h,a._minX=n,a._maxY=r,a._minY=u,a.labelrank=q(a.labelrank,(h-n)*(r-u)),a._foundBox=!0);c=Math.max(c,a._maxX);d=Math.min(d,a._minX);e=Math.max(e,a._maxY);f=Math.min(f,a._minY);g=Math.min(a._maxX-a._minX,a._maxY-a._minY,g);l=!0}});l&&(this.minY=Math.min(f,q(this.minY,b)),this.maxY=Math.max(e,q(this.maxY,-b)),this.minX=Math.min(d,q(this.minX,b)),this.maxX=Math.max(c,q(this.maxX,-b)),k&&"undefined"===typeof k.options.minRange&&(k.minRange=
647
- Math.min(5*g,(this.maxX-this.minX)/5,k.minRange||b)),h&&"undefined"===typeof h.options.minRange&&(h.minRange=Math.min(5*g,(this.maxY-this.minY)/5,h.minRange||b)))};b.prototype.getExtremes=function(){var a=C.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);x(b)&&(this.valueMin=b);x(a)&&(this.valueMax=a);return{dataMin:this.minY,dataMax:this.maxY}};b.prototype.hasData=function(){return!!this.processedXData.length};
648
- b.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode?this.colorAttribs(a):k.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=q(a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};b.prototype.render=function(){var a=this,b=C.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)};b.prototype.setData=function(a,b,c,d){var e=this.options,k=this.chart.options.chart,h=k&&k.map,
649
- l=e.mapData,n=this.joinBy,m=e.keys||this.pointArrayMap,p=[],q={},r=this.chart.mapTransforms;!l&&h&&(l="string"===typeof h?g[h]:h);a&&a.forEach(function(b,c){var d=0;if(x(b))a[c]={value:b};else if(B(b)){a[c]={};!e.keys&&b.length>m.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++d);for(var f=0;f<m.length;++f,++d)m[f]&&"undefined"!==typeof b[d]&&(0<m[f].indexOf(".")?A.prototype.setNestedProperty(a[c],b[d],m[f]):a[c][m[f]]=b[d])}n&&"_i"===n[0]&&(a[c]._i=c)});this.getBox(a);(this.chart.mapTransforms=
650
- r=k.mapTransforms||l&&l["hc-transform"]||r)&&E(r,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(l){"FeatureCollection"===l.type&&(this.mapTitle=l.title,l=v.geojson(l,this.type,this));this.mapData=l;this.mapMap={};for(r=0;r<l.length;r++)k=l[r],h=k.properties,k._i=r,n[0]&&h&&h[n[0]]&&(k[n[0]]=h[n[0]]),q[k[n[0]]]=k;this.mapMap=q;if(a&&n[1]){var t=n[1];a.forEach(function(a){a=f(t,a);q[a]&&p.push(q[a])})}if(e.allAreas){this.getBox(l);a=a||[];if(n[1]){var w=
651
- n[1];a.forEach(function(a){p.push(f(w,a))})}p="|"+p.map(function(a){return a&&a[n[0]]}).join("|")+"|";l.forEach(function(b){n[0]&&-1!==p.indexOf("|"+b[n[0]]+"|")||(a.push(u(b,{value:null})),d=!1)})}else this.getBox(p)}C.prototype.setData.call(this,a,b,c,d)};b.prototype.setOptions=function(a){a=C.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=n(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.doFullTranslate();a.generatePoints();
652
- a.data.forEach(function(e){x(e._midX)&&x(e._midY)&&(e.plotX=b.toPixels(e._midX,!0),e.plotY=c.toPixels(e._midY,!0));d&&(e.shapeType="path",e.shapeArgs={d:a.translatePath(e.path)})});F(a,"afterTranslate")};b.prototype.translatePath=function(a){var b=this.xAxis,c=this.yAxis,d=b.min,e=b.transA,f=b.minPixelPadding,g=c.min,k=c.transA,h=c.minPixelPadding,l=[];a&&a.forEach(function(a){"M"===a[0]?l.push(["M",(a[1]-(d||0))*e+f,(a[2]-(g||0))*k+h]):"L"===a[0]?l.push(["L",(a[1]-(d||0))*e+f,(a[2]-(g||0))*k+h]):
653
- "C"===a[0]?l.push(["C",(a[1]-(d||0))*e+f,(a[2]-(g||0))*k+h,(a[3]-(d||0))*e+f,(a[4]-(g||0))*k+h,(a[5]-(d||0))*e+f,(a[6]-(g||0))*k+h]):"Q"===a[0]?l.push(["Q",(a[1]-(d||0))*e+f,(a[2]-(g||0))*k+h,(a[3]-(d||0))*e+f,(a[4]-(g||0))*k+h]):"Z"===a[0]&&l.push(["Z"])});return l};b.defaultOptions=u(r.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return x(b)?a(b,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,
654
- nullColor:w.neutralColor3,stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:w.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:w.neutralColor20},inactive:{opacity:1}}});return b}(r);z(h.prototype,{type:"map",axisTypes:a.axisTypes,colorAttribs:a.colorAttribs,colorKey:a.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:y.drawRectangle,
655
- forceDL:!0,getExtremesFromAll:!0,getSymbol:a.getSymbol,parallelArrays:a.parallelArrays,pointArrayMap:a.pointArrayMap,pointClass:A,preserveAspectRatio:!0,searchPoint:b,trackerGroups:a.trackerGroups,useMapGeometry:!0});t.registerSeriesType("map",h);"";return h});H(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y){var r=this&&this.__extends||function(){var a=function(m,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof
656
- Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(m,h)};return function(m,h){function d(){this.constructor=m}a(m,h);m.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),A=v.series,w=y.extend,C=y.merge;y=function(t){function m(){var a=null!==t&&t.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(m,t);m.prototype.pointAttribs=function(h,d){h=a.prototype.pointAttribs.call(this,h,d);h.fill=
657
- this.options.fillColor;return h};m.defaultOptions=C(a.defaultOptions,{lineWidth:1,fillColor:"none"});return m}(a);w(y.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:A.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});v.registerSeriesType("mapline",y);"";return y});H(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(r,v){a=Object.setPrototypeOf||
658
- {__proto__:[]}instanceof Array&&function(a,m){a.__proto__=m}||function(a,m){for(var h in m)m.hasOwnProperty(h)&&(a[h]=m[h])};return a(r,v)};return function(r,v){function t(){this.constructor=r}a(r,v);r.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}(),z=v.merge;return function(a){function w(){var r=null!==a&&a.apply(this,arguments)||this;r.options=void 0;r.series=void 0;return r}r(w,a);w.prototype.applyOptions=function(r,t){r="undefined"!==typeof r.lat&&"undefined"!==typeof r.lon?
659
- z(r,this.series.chart.fromLatLonToPoint(r)):r;return a.prototype.applyOptions.call(this,r,t)};return w}(a.seriesTypes.scatter.prototype.pointClass)});H(a,"Series/MapPoint/MapPointSeries.js",[a["Series/MapPoint/MapPointPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
660
- (a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=y.seriesTypes.scatter,C=z.extend,t=z.merge;z=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}r(h,a);h.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};h.defaultOptions=
661
- t(w.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:v.neutralColor100}}});return h}(w);C(z.prototype,{type:"mappoint",forceDL:!0,pointClass:a});y.registerSeriesType("mappoint",z);"";return z});H(a,"Series/Bubble/BubbleLegendDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,
662
- enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:a.neutralColor100},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});H(a,"Series/Bubble/BubbleLegendItem.js",[a["Core/Color/Color.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=a.parse,w=y.noop,
663
- C=z.arrayMax,t=z.arrayMin,m=z.isNumber,h=z.merge,d=z.pick,b=z.stableSort;"";return function(){function a(a,b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=w;this.init(a,b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,
664
- 0,this)};a.prototype.drawLegendSymbol=function(a){var g=this.chart,h=this.options,p=d(a.options.itemDistance,20),f=h.ranges,r=h.connectorDistance;this.fontMetrics=g.renderer.fontMetrics(h.labels.style.fontSize);f&&f.length&&m(f[0].value)?(b(f,function(a,b){return b.value-a.value}),this.ranges=f,this.setOptions(),this.render(),a=this.getMaxLabelSize(),f=this.ranges[0].radius,g=2*f,r=r-f+a.width,r=0<r?r:0,this.maxLabel=a,this.movementX="left"===h.labels.align?r:0,this.legendItemWidth=g+r+p,this.legendItemHeight=
665
- g+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,b=this.options,g=this.chart.series[b.seriesIndex],m=this.legend.baseline,f={zIndex:b.zIndex,"stroke-width":b.borderWidth},t={zIndex:b.zIndex,"stroke-width":b.connectorWidth},w={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},u=g.options.marker.fillOpacity,v=this.chart.styledMode;a.forEach(function(k,n){v||(f.stroke=d(k.borderColor,b.borderColor,g.color),
666
- f.fill=d(k.color,b.color,1!==u?r(g.color).setOpacity(u).get("rgba"):g.color),t.stroke=d(k.connectorColor,b.connectorColor,g.color));a[n].radius=this.getRangeRadius(k.value);a[n]=h(a[n],{center:a[0].radius-a[n].radius+m});v||h(!0,a[n],{bubbleAttribs:h(f),connectorAttribs:h(t),labelAttribs:w})},this)};a.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,
667
- a)};a.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=
668
- function(a){var b=this.options,d=b.labels,g=this.chart,f=g.series[b.seriesIndex],h=g.renderer,m=this.symbols;g=m.labels;var p=a.center,r=Math.abs(a.radius),q=b.connectorDistance||0,n=d.align,e=b.connectorWidth,c=this.ranges[0].radius||0,l=p-r-b.borderWidth/2+e/2,t=this.fontMetrics;t=t.f/2-(t.h-t.f)/2;var w=h.styledMode;q=this.legend.options.rtl||"left"===n?-q:q;"center"===n&&(q=0,b.connectorDistance=0,a.labelAttribs.align="center");n=l+b.labels.y;var v=c+q+b.labels.x;m.bubbleItems.push(h.circle(c,
669
- p+((l%1?1:.5)-(e%2?0:.5)),r).attr(w?{}:a.bubbleAttribs).addClass((w?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));m.connectors.push(h.path(h.crispLine([["M",c,l],["L",c+q,l]],b.connectorWidth)).attr(w?{}:a.connectorAttribs).addClass((w?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=h.text(this.formatLabel(a),v,n+t).attr(w?{}:a.labelAttribs).css(w?
670
- {}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);g.push(a);a.placed=!0;a.alignAttr={x:v,y:n+t}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var g=this.chart.numberFormatter;return b?v.format(b,a):d?d.call(a):g(a.value,1)};a.prototype.hideOverlappingLabels=
671
- function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,g,r=Number.MAX_VALUE,f=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(g=a.zData.filter(m),g.length&&(r=d(a.options.zMin,Math.min(r,Math.max(t(g),
672
- !1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),f=d(a.options.zMax,Math.max(f,C(g)))))});var w=r===f?[{value:f}]:[{value:r},{value:(r+f)/2},{value:f,autoRanges:!0}];b.length&&b[0].radius&&w.reverse();w.forEach(function(a,d){b&&b[d]&&(w[d]=h(b[d],a))});return w};a.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,d=a.legend.options,g="horizontal"===d.layout,f=g?a.legend.lastLineHeight:0,h=a.plotSizeX,m=a.plotSizeY,r=a.series[this.options.seriesIndex];
673
- a=Math.ceil(r.minPxSize);var t=Math.ceil(r.maxPxSize),q=Math.min(m,h);r=r.options.maxSize;if(d.floating||!/%$/.test(r))b=t;else if(r=parseFloat(r),b=(q+f-b.h/2)*r/100/(r/100+1),g&&m-b>=h||!g&&h-b>=m)b=t;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&
674
- (this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}()});H(a,"Series/Bubble/BubbleLegendComposition.js",[a["Series/Bubble/BubbleLegendDefaults.js"],a["Series/Bubble/BubbleLegendItem.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,v,y,z){var r=y.setOptions,w=z.addEvent,C=z.objectEach,t=z.wrap,m;(function(h){function d(a,d,h){var f=this.legend,k=0<=b(this);if(f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&k){var m=f.bubbleLegend.options;
675
- k=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(k[0],k[1]);m.placed||(f.group.placed=!1,f.allItems.forEach(function(a){a.legendGroup.translateY=null}));f.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();m.placed||(a.setScale(),a.updateNames(),C(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});m.placed=!0;this.getMargins();a.call(this,d,h);f.bubbleLegend.correctSizes();y(f,g(f))}else a.call(this,d,h),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),
676
- y(f,g(f)))}function b(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1}function g(a){a=a.allItems;var b=[],d=a.length,f,g=0;for(f=0;f<d;f++)if(a[f].legendItemHeight&&(a[f].itemHeight=a[f].legendItemHeight),a[f]===a[d-1]||a[f+1]&&a[f]._legendItemPos[1]!==a[f+1]._legendItemPos[1]){b.push({height:0});var h=b[b.length-1];for(g;g<=f;g++)a[g].itemHeight>h.height&&(h.height=a[g].itemHeight);h.step=f}return b}function m(a){var d=this.bubbleLegend,
677
- f=this.options,g=f.bubbleLegend,h=b(this.chart);d&&d.ranges&&d.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(d));0<=h&&f.enabled&&g.enabled&&(g.seriesIndex=h,this.bubbleLegend=new v(g,this),this.bubbleLegend.addToLegend(a.allItems))}function k(){var a=this.chart,d=this.visible,g=this.chart.legend;g&&g.bubbleLegend&&(this.visible=!d,this.ignoreSeries=d,a=0<=b(a),g.bubbleLegend.visible!==a&&(g.update({bubbleLegend:{enabled:a}}),g.bubbleLegend.visible=a),this.visible=
678
- d)}function y(a,b){var d=a.options.rtl,f,g,h,k=0;a.allItems.forEach(function(a,c){f=a.legendGroup.translateX;g=a._legendItemPos[1];if((h=a.movementX)||d&&a.ranges)h=d?f-a.options.maxSize/2:f+h,a.legendGroup.attr({translateX:h});c>b[k].step&&k++;a.legendGroup.attr({translateY:Math.round(g+b[k].height/2)});a._legendItemPos[1]=g+b[k].height/2})}var z=[];h.compose=function(b,g,h){-1===z.indexOf(b)&&(z.push(b),r({legend:{bubbleLegend:a}}),t(b.prototype,"drawChartBox",d));-1===z.indexOf(g)&&(z.push(g),
679
- w(g,"afterGetAllItems",m));-1===z.indexOf(h)&&(z.push(h),w(h,"legendItemClick",k))}})(m||(m={}));return m});H(a,"Series/Bubble/BubblePoint.js",[a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y){var r=this&&this.__extends||function(){var a=function(r,v){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,m){a.__proto__=m}||function(a,m){for(var h in m)m.hasOwnProperty(h)&&(a[h]=m[h])};return a(r,v)};return function(r,v){function t(){this.constructor=
680
- r}a(r,v);r.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}();y=y.extend;v=function(v){function w(){var a=null!==v&&v.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}r(w,v);w.prototype.haloPath=function(r){return a.prototype.haloPath.call(this,0===r?0:(this.marker?this.marker.radius||0:0)+r)};return w}(v.seriesTypes.scatter.prototype.pointClass);y(v.prototype,{ttBelow:!1});return v});H(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubbleLegendComposition.js"],
681
- a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t){var m=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):
682
- (f.prototype=d.prototype,new f)}}(),h=z.parse;z=A.noop;var d=C.seriesTypes;A=d.column;var b=d.scatter,g=t.arrayMax,p=t.arrayMin,k=t.clamp,r=t.extend,F=t.isNumber,f=t.merge,B=t.pick,x=t.pInt;t=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options=void 0;b.points=void 0;b.radii=void 0;b.yData=void 0;b.zData=void 0;return b}m(d,a);d.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=
683
- a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};d.prototype.getRadii=function(a,b,d){var c=this.zData,e=this.yData,f=d.minPxSize,g=d.maxPxSize,h=[];var k=0;for(d=c.length;k<d;k++){var n=c[k];h.push(this.getRadius(a,b,f,g,n,e[k]))}this.radii=h};d.prototype.getRadius=function(a,b,d,c,f,g){var e=this.options,h="width"!==e.sizeBy,k=e.zThreshold,l=b-a,n=.5;if(null===g||null===f)return null;if(F(f)){e.sizeByAbsoluteValue&&
684
- (f=Math.abs(f-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(f<a)return d/2-1;0<l&&(n=(f-a)/l)}h&&0<=n&&(n=Math.sqrt(n));return Math.ceil(d+n*(c-d))/2};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.pointAttribs=function(a,b){var d=this.options.marker.fillOpacity;a=w.prototype.pointAttribs.call(this,a,b);1!==d&&(a.fill=h(a.fill).setOpacity(d).get("rgba"));return a};d.prototype.translate=function(){var b,d=this.data,e=this.radii;a.prototype.translate.call(this);for(b=d.length;b--;){var c=
685
- d[b];var f=e?e[b]:0;F(f)&&f>=this.minPxSize/2?(c.marker=r(c.marker,{radius:f,width:2*f,height:2*f}),c.dlBox={x:c.plotX-f,y:c.plotY-f,width:2*f,height:2*f}):c.shapeArgs=c.plotY=c.dlBox=void 0}};d.compose=v.compose;d.defaultOptions=f(b.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return F(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},
686
- symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return d}(b);r(t.prototype,{alignDataLabel:A.prototype.alignDataLabel,applyZones:z,bubblePadding:!0,buildKDTree:z,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:y,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});a.prototype.beforePadding=
687
- function(){var a=this,b=this.len,d=this.chart,f=0,e=b,c=this.isXAxis,h=c?"xData":"yData",m=this.min,r={},t=Math.min(d.plotWidth,d.plotHeight),v=Number.MAX_VALUE,w=-Number.MAX_VALUE,y=this.max-m,z=b/y,A=[];this.series.forEach(function(b){var e=b.options;!b.bubblePadding||!b.visible&&d.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,A.push(b),c&&(["minSize","maxSize"].forEach(function(a){var b=e[a],c=/%$/.test(b);b=x(b);r[a]=c?t*b/100:b}),b.minPxSize=r.minSize,b.maxPxSize=Math.max(r.maxSize,
688
- r.minSize),b=b.zData.filter(F),b.length&&(v=B(e.zMin,k(p(b),!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE,v)),w=B(e.zMax,Math.max(w,g(b))))))});A.forEach(function(b){var d=b[h],g=d.length;c&&b.getRadii(v,w,b);if(0<y)for(;g--;)if(F(d[g])&&a.dataMin<=d[g]&&d[g]<=a.max){var k=b.radii?b.radii[g]:0;f=Math.min((d[g]-m)*z-k,f);e=Math.max((d[g]-m)*z+k,e)}});A.length&&0<y&&!this.logarithmic&&(e-=b,z*=(b+Math.max(0,f)-Math.min(e,b))/b,[["min","userMin",f],["max","userMax",e]].forEach(function(b){"undefined"===
689
- typeof B(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/z)}))};C.registerSeriesType("bubble",t);"";"";return t});H(a,"Series/MapBubble/MapBubblePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(r,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(r,m)};return function(r,m){function h(){this.constructor=r}a(r,
690
- m);r.prototype=null===m?Object.create(m):(h.prototype=m.prototype,new h)}}(),z=a.seriesTypes,A=z.map;a=v.extend;var w=v.merge;v=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}r(t,a);t.prototype.applyOptions=function(m,h){return m&&"undefined"!==typeof m.lat&&"undefined"!==typeof m.lon?a.prototype.applyOptions.call(this,w(m,this.series.chart.fromLatLonToPoint(m)),h):A.prototype.pointClass.prototype.applyOptions.call(this,m,h)};t.prototype.isValid=function(){return"number"===
691
- typeof this.z};return t}(z.bubble.prototype.pointClass);a(v.prototype,{ttBelow:!1});return v});H(a,"Series/MapBubble/MapBubbleSeries.js",[a["Series/Bubble/BubbleSeries.js"],a["Series/MapBubble/MapBubblePoint.js"],a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y,z,A){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
692
- (a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),C=A.extend,t=A.merge;A=function(m){function h(){var a=null!==m&&m.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(h,m);h.compose=a.compose;h.defaultOptions=t(a.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(a);C(A.prototype,{type:"mapbubble",getBox:y.prototype.getBox,
693
- pointArrayMap:["z"],pointClass:v,setData:y.prototype.setData,setOptions:y.prototype.setOptions,xyFromShape:!0});z.registerSeriesType("mapbubble",A);"";return A});H(a,"Series/Heatmap/HeatmapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,y){var r=this&&this.__extends||function(){var a=function(m,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
694
- (a[d]=b[d])};return a(m,h)};return function(m,h){function d(){this.constructor=m}a(m,h);m.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}();a=a.colorMapPointMixin;var A=y.clamp,w=y.extend,C=y.pick;v=function(a){function m(){var h=null!==a&&a.apply(this,arguments)||this;h.options=void 0;h.series=void 0;h.value=void 0;h.x=void 0;h.y=void 0;return h}r(m,a);m.prototype.applyOptions=function(h,d){h=a.prototype.applyOptions.call(this,h,d);h.formatPrefix=h.isNull||null===h.value?"null":
695
- "point";return h};m.prototype.getCellAttributes=function(){var a=this.series,d=a.options,b=(d.colsize||1)/2,g=(d.rowsize||1)/2,m=a.xAxis,k=a.yAxis,r=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var t=C(this.pointPadding,d.pointPadding,0),f={x1:A(Math.round(m.len-(m.translate(this.x-b,!1,!0,!1,!0,-a)||0)),-m.len,2*m.len),x2:A(Math.round(m.len-(m.translate(this.x+b,!1,!0,!1,!0,-a)||0)),-m.len,2*m.len),y1:A(Math.round(k.translate(this.y-g,!1,!0,!1,!0)||0),-k.len,2*k.len),y2:A(Math.round(k.translate(this.y+
696
- g,!1,!0,!1,!0)||0),-k.len,2*k.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",g=a+"2",h=Math.abs(f[d]-f[g]),k=r&&r.lineWidth||0,e=Math.abs(f[d]+f[g])/2;r[b]&&r[b]<h&&(f[d]=e-r[b]/2-k/2,f[g]=e+r[b]/2+k/2);t&&("y"===a&&(d=g,g=a+"1"),f[d]+=t,f[g]-=t)});return f};m.prototype.haloPath=function(a){if(!a)return[];var d=this.shapeArgs;return["M",d.x-a,d.y-a,"L",d.x-a,d.y+d.height+a,d.x+d.width+a,d.y+d.height+a,d.x+d.width+a,d.y-a,"Z"]};m.prototype.isValid=function(){return Infinity!==
697
- this.value&&-Infinity!==this.value};return m}(v.seriesTypes.scatter.prototype.pointClass);w(v.prototype,{dataLabelOnNull:a.dataLabelOnNull,moveToTopOnHover:a.moveToTopOnHover});return v});H(a,"Series/Heatmap/HeatmapSeries.js",[a["Core/Color/Color.js"],a["Mixins/ColorMapSeries.js"],a["Series/Heatmap/HeatmapPoint.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,y,z,A,w,C,t){var m=
698
- this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}();v=v.colorMapSeriesMixin;var h=w.series,d=w.seriesTypes,b=d.column,g=d.scatter,p=C.prototype.symbols,k=t.extend,r=t.fireEvent,F=t.isNumber,f=t.merge,B=
699
- t.pick;C=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=NaN;return a}m(d,b);d.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)h.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),
700
- null===b.value&&b.graphic.addClass("highcharts-null-point"))})};d.prototype.getExtremes=function(){var a=h.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;F(b)&&(this.valueMin=b);F(a)&&(this.valueMax=a);return h.prototype.getExtremes.call(this)};d.prototype.getValidPoints=function(a,b){return h.prototype.getValidPoints.call(this,a,b,!0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.init=function(){h.prototype.init.apply(this,arguments);var a=
701
- this.options;a.pointRange=B(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;p.ellipse=p.circle};d.prototype.markerAttribs=function(a,b){var d=a.marker||{},e=this.options.marker||{},c=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var g=e.states[b]||{};var h=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(h[a[0]]||g[a[0]]||c[a[0]])+(h[a[0]+"Plus"]||g[a[0]+"Plus"]||0);f[a[1]]=c[a[1]]+(c[a[0]]-f[a[0]])/2})}return b?f:c};d.prototype.pointAttribs=
702
- function(b,d){var g=h.prototype.pointAttribs.call(this,b,d),e=this.options||{},c=this.chart.options.plotOptions||{},k=c.series||{},m=c.heatmap||{};c=b&&b.options.borderColor||e.borderColor||m.borderColor||k.borderColor;k=b&&b.options.borderWidth||e.borderWidth||m.borderWidth||k.borderWidth||g["stroke-width"];g.stroke=b&&b.marker&&b.marker.lineColor||e.marker&&e.marker.lineColor||c||this.color;g["stroke-width"]=k;d&&(b=f(e.states[d],e.marker&&e.marker.states[d],b&&b.options.states&&b.options.states[d]||
703
- {}),d=b.brightness,g.fill=b.color||a.parse(g.fill).brighten(d||0).get(),g.stroke=b.lineColor);return g};d.prototype.setClip=function(a){var b=this.chart;h.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};d.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",d=p[b]?b:"rect",e=-1!==["circle","square"].indexOf(d);this.generatePoints();this.points.forEach(function(a){var c=
704
- a.getCellAttributes(),g={};g.x=Math.min(c.x1,c.x2);g.y=Math.min(c.y1,c.y2);g.width=Math.max(Math.abs(c.x2-c.x1),0);g.height=Math.max(Math.abs(c.y2-c.y1),0);var h=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(e){var m=Math.abs(g.width-g.height);g.x=Math.min(c.x1,c.x2)+(g.width<g.height?0:m/2);g.y=Math.min(c.y1,c.y2)+(g.width<g.height?m/2:0);g.width=g.height=Math.min(g.width,g.height)}m={plotX:(c.x1+c.x2)/2,plotY:(c.y1+c.y2)/2,clientX:(c.x1+c.x2)/2,shapeType:"path",shapeArgs:f(!0,
705
- g,{d:p[d](g.x,g.y,g.width,g.height)})};h&&(a.marker={width:g.width,height:g.height});k(a,m)});r(this,"afterTranslate")};d.defaultOptions=f(g.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:A.neutralColor3,dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return F(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,
706
- pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return d}(g);k(C.prototype,{alignDataLabel:b.prototype.alignDataLabel,axisTypes:v.axisTypes,colorAttribs:v.colorAttribs,colorKey:v.colorKey,directTouch:!0,drawLegendSymbol:z.drawRectangle,getExtremesFromAll:!0,getSymbol:h.prototype.getSymbol,parallelArrays:v.parallelArrays,pointArrayMap:["y","value"],pointClass:y,trackerGroups:v.trackerGroups});w.registerSeriesType("heatmap",C);
707
- "";"";return C});H(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,y,z){function r(a,b){var d,h=!1,k=a.x,m=a.y;a=0;for(d=b.length-1;a<b.length;d=a++){var r=b[a][1]>m;var f=b[d][1]>m;r!==f&&k<(b[d][0]-b[a][0])*(m-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(h=!h)}return h}var w=v.format,C=y.win,t=z.error,m=z.extend,h=z.merge;v=z.wrap;"";a.prototype.transformFromLatLon=function(a,b){var d=this.userOptions.chart&&this.userOptions.chart.proj4||
708
- C.proj4;if(!d)return t(21,!1,this),{x:0,y:null};a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var h=b.sinAngle||b.rotation&&Math.sin(b.rotation);a=b.rotation?[a[0]*d+a[1]*h,-a[0]*h+a[1]*d]:a;return{x:((a[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-a[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};a.prototype.transformToLatLon=function(a,b){if("undefined"===typeof C.proj4)t(21,!1,this);else{a={x:((a.x-
709
- (b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-a.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=C.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-h,y:a.x*h+a.y*d}:a);return{lat:b.y,lon:b.x}}};a.prototype.fromPointToLatLon=function(a){var b=this.mapTransforms,d;if(b){for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone&&r({x:a.x,y:-a.y},
710
- b[d].hitZone.coordinates[0]))return this.transformToLatLon(a,b[d]);return this.transformToLatLon(a,b["default"])}t(22,!1,this)};a.prototype.fromLatLonToPoint=function(a){var b=this.mapTransforms,d;if(!b)return t(22,!1,this),{x:0,y:null};for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone){var h=this.transformFromLatLon(a,b[d]);if(r({x:h.x,y:-h.y},b[d].hitZone.coordinates[0]))return h}return this.transformFromLatLon(a,b["default"])};y.geojson=function(a,b,g){var d=[],h=[],r=function(a){a.forEach(function(a,
711
- b){0===b?h.push(["M",a[0],-a[1]]):h.push(["L",a[0],-a[1]])})};b=b||"map";a.features.forEach(function(a){var f=a.geometry,g=f.type;f=f.coordinates;a=a.properties;var k;h=[];"map"===b||"mapbubble"===b?("Polygon"===g?(f.forEach(r),h.push(["Z"])):"MultiPolygon"===g&&(f.forEach(function(a){a.forEach(r)}),h.push(["Z"])),h.length&&(k={path:h})):"mapline"===b?("LineString"===g?r(f):"MultiLineString"===g&&f.forEach(r),h.length&&(k={path:h})):"mappoint"===b&&"Point"===g&&(k={x:f[0],y:-f[1]});k&&d.push(m(k,
712
- {name:a.name||a.NAME,properties:a}))});g&&a.copyrightShort&&(g.chart.mapCredits=w(g.chart.options.credits.mapText,{geojson:a}),g.chart.mapCreditsFull=w(g.chart.options.credits.mapTextFull,{geojson:a}));return d};v(a.prototype,"addCredits",function(a,b){b=h(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});H(a,"masters/modules/map.src.js",[a["Core/Globals.js"],a["Core/Axis/Color/ColorAxis.js"],
713
- a["Series/MapBubble/MapBubbleSeries.js"],a["Core/Chart/MapChart.js"]],function(a,v,y,z){a.ColorAxis=v;a.MapChart=z;a.mapChart=a.Map=z.mapChart;a.maps=z.maps;v.compose(a.Chart,a.Fx,a.Legend,a.Series);y.compose(a.Chart,a.Legend,a.Series)});H(a,"masters/highmaps.src.js",[a["masters/highcharts.src.js"]],function(a){a.product="Highmaps";return a});a["masters/highmaps.src.js"]._modules=a;return a["masters/highmaps.src.js"]});
8
+ 'use strict';(function(Z,F){"object"===typeof module&&module.exports?(F["default"]=F,module.exports=Z.document?F(Z):F):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return F(Z)}):(Z.Highcharts&&Z.Highcharts.error(16,!0),Z.Highcharts=F(Z))})("undefined"!==typeof window?window:this,function(Z){function F(x,b,A,B){x.hasOwnProperty(b)||(x[b]=B.apply(null,A))}var b={};F(b,"Core/Globals.js",[],function(){var x="undefined"!==typeof Z?Z:"undefined"!==typeof window?window:
9
+ {},b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="9.3.1";b.win=x;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=!b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=
10
+ /(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 x=!1;if(!b.isMS){var u=Object.defineProperty({},"passive",{get:function(){x=!0}});b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",
11
+ b.noop,u),b.win.removeEventListener("testPassive",b.noop,u))}return x}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});F(b,"Core/Utilities.js",[b["Core/Globals.js"]],function(b){function x(a,c,l,f){var I=c?"Highcharts error":"Highcharts warning";32===a&&(a=I+": Deprecated member");var q=m(a),e=q?I+" #"+a+": www.highcharts.com/errors/"+a+"/":a.toString();if("undefined"!==typeof f){var P="";q&&(e+="?");p(f,function(a,d){P+="\n - "+d+": "+a;
12
+ q&&(e+=encodeURI(d)+"="+encodeURI(a))});e+=P}n(b,"displayError",{chart:l,code:a,message:e,params:f},function(){if(c)throw Error(e);d.console&&-1===x.messages.indexOf(e)&&console.warn(e)});x.messages.push(e)}function A(a,d){var c={};p(a,function(l,f){if(w(a[f],!0)&&!a.nodeType&&d[f])l=A(a[f],d[f]),Object.keys(l).length&&(c[f]=l);else if(w(a[f])||a[f]!==d[f])c[f]=a[f]});return c}function B(a,d){return parseInt(a,d||10)}function v(a){return"string"===typeof a}function E(a){a=Object.prototype.toString.call(a);
13
+ return"[object Array]"===a||"[object Array Iterator]"===a}function w(a,d){return!!a&&"object"===typeof a&&(!d||!E(a))}function k(a){return w(a)&&"number"===typeof a.nodeType}function r(a){var d=a&&a.constructor;return!(!w(a,!0)||k(a)||!d||!d.name||"Object"===d.name)}function m(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a}function h(a){return"undefined"!==typeof a&&null!==a}function a(a,d,c){var f;v(d)?h(c)?a.setAttribute(d,c):a&&a.getAttribute&&((f=a.getAttribute(d))||"class"!==
14
+ d||(f=a.getAttribute(d+"Name"))):p(d,function(d,c){h(d)?a.setAttribute(c,d):a.removeAttribute(c)});return f}function c(a,d){var c;a||(a={});for(c in d)a[c]=d[c];return a}function e(){for(var a=arguments,d=a.length,c=0;c<d;c++){var f=a[c];if("undefined"!==typeof f&&null!==f)return f}}function g(a,d){b.isMS&&!b.svg&&d&&"undefined"!==typeof d.opacity&&(d.filter="alpha(opacity="+100*d.opacity+")");c(a.style,d)}function C(a,d,f,l,e){a=q.createElement(a);d&&c(a,d);e&&g(a,{padding:"0",border:"none",margin:"0"});
15
+ f&&g(a,f);l&&l.appendChild(a);return a}function y(a,d){return 1E14<a?a:parseFloat(a.toPrecision(d||14))}function t(a,c,f){var l=b.getStyle||t;if("width"===c)return c=Math.min(a.offsetWidth,a.scrollWidth),f=a.getBoundingClientRect&&a.getBoundingClientRect().width,f<c&&f>=c-1&&(c=Math.floor(f)),Math.max(0,c-(l(a,"padding-left",!0)||0)-(l(a,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(l(a,"padding-top",!0)||0)-(l(a,"padding-bottom",!0)||0));d.getComputedStyle||
16
+ x(27,!0);if(a=d.getComputedStyle(a,void 0)){var q=a.getPropertyValue(c);e(f,"opacity"!==c)&&(q=B(q))}return q}function p(a,d,c){for(var f in a)Object.hasOwnProperty.call(a,f)&&d.call(c||a[f],a[f],f,a)}function D(a,d,c){function f(d,c){var f=a.removeEventListener||b.removeEventListenerPolyfill;f&&f.call(a,d,c,!1)}function l(c){var l;if(a.nodeName){if(d){var q={};q[d]=!0}else q=c;p(q,function(a,d){if(c[d])for(l=c[d].length;l--;)f(d,c[d][l].fn)})}}var q="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(q,
17
+ "hcEvents")){var e=q.hcEvents;d?(q=e[d]||[],c?(e[d]=q.filter(function(a){return c!==a.fn}),f(d,c)):(l(e),e[d]=[])):(l(e),delete q.hcEvents)}}function n(a,d,f,l){f=f||{};if(q.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==b)){var e=q.createEvent("Events");e.initEvent(d,!0,!0);f=c(e,f);a.dispatchEvent?a.dispatchEvent(f):a.fireEvent(d,f)}else if(a.hcEvents){f.target||c(f,{preventDefault:function(){f.defaultPrevented=!0},target:a,type:d});e=[];for(var p=a,n=!1;p.hcEvents;)Object.hasOwnProperty.call(p,
18
+ "hcEvents")&&p.hcEvents[d]&&(e.length&&(n=!0),e.unshift.apply(e,p.hcEvents[d])),p=Object.getPrototypeOf(p);n&&e.sort(function(a,d){return a.order-d.order});e.forEach(function(d){!1===d.fn.call(a,f)&&f.preventDefault()})}l&&!f.defaultPrevented&&l.call(a,f)}var f=b.charts,q=b.doc,d=b.win;(x||(x={})).messages=[];var z;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var l=Array.prototype.find?function(a,d){return a.find(d)}:function(a,d){var c,f=a.length;for(c=0;c<f;c++)if(d(a[c],c))return a[c]};
19
+ p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,d){b[d]=function(c){var f;x(32,!1,void 0,(f={},f["Highcharts."+d]="use Array."+a,f));return Array.prototype[a].apply(c,[].slice.call(arguments,1))}});var G,K=function(){var a=Math.random().toString(36).substring(2,9)+"-",d=0;return function(){return"highcharts-"+(G?"":a)+d++}}();d.jQuery&&(d.jQuery.fn.highcharts=function(){var d=[].slice.call(arguments);if(this[0])return d[0]?(new (b[v(d[0])?d.shift():"Chart"])(this[0],
20
+ d[0],d[1]),this):f[a(this[0],"data-highcharts-chart")]});l={addEvent:function(a,d,c,f){void 0===f&&(f={});var l="function"===typeof a&&a.prototype||a;Object.hasOwnProperty.call(l,"hcEvents")||(l.hcEvents={});l=l.hcEvents;b.Point&&a instanceof b.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);var e=a.addEventListener||b.addEventListenerPolyfill;e&&e.call(a,d,c,b.supportsPassiveEvents?{passive:void 0===f.passive?-1!==d.indexOf("touch"):f.passive,capture:!1}:!1);l[d]||(l[d]=[]);
21
+ l[d].push({fn:c,order:"number"===typeof f.order?f.order:Infinity});l[d].sort(function(a,d){return a.order-d.order});return function(){D(a,d,c)}},arrayMax:function(a){for(var d=a.length,c=a[0];d--;)a[d]>c&&(c=a[d]);return c},arrayMin:function(a){for(var d=a.length,c=a[0];d--;)a[d]<c&&(c=a[d]);return c},attr:a,clamp:function(a,d,c){return a>d?a<c?a:c:d},cleanRecursively:A,clearTimeout:function(a){h(a)&&clearTimeout(a)},correctFloat:y,createElement:C,css:g,defined:h,destroyObjectProperties:function(a,
22
+ d){p(a,function(c,f){c&&c!==d&&c.destroy&&c.destroy();delete a[f]})},discardElement:function(a){z||(z=C("div"));a&&z.appendChild(a);z.innerHTML=""},erase:function(a,d){for(var c=a.length;c--;)if(a[c]===d){a.splice(c,1);break}},error:x,extend:c,extendClass:function(a,d){var f=function(){};f.prototype=new a;c(f.prototype,d);return f},find:l,fireEvent:n,getMagnitude:function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},getNestedProperty:function(a,c){for(a=a.split(".");a.length&&h(c);){var f=
23
+ a.shift();if("undefined"===typeof f||"__proto__"===f)return;c=c[f];if(!h(c)||"function"===typeof c||"number"===typeof c.nodeType||c===d)return}return c},getStyle:t,inArray:function(a,d,c){x(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d.indexOf(a,c)},isArray:E,isClass:r,isDOMElement:k,isFunction:function(a){return"function"===typeof a},isNumber:m,isObject:w,isString:v,keys:function(a){x(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:function(){var a,
24
+ d=arguments,c={},f=function(a,d){"object"!==typeof a&&(a={});p(d,function(c,l){"__proto__"!==l&&"constructor"!==l&&(!w(c,!0)||r(c)||k(c)?a[l]=d[l]:a[l]=f(a[l]||{},c))});return a};!0===d[0]&&(c=d[1],d=Array.prototype.slice.call(d,2));var l=d.length;for(a=0;a<l;a++)c=f(c,d[a]);return c},normalizeTickInterval:function(a,d,c,f,l){var q=a;c=e(c,1);var p=a/c;d||(d=l?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===f&&(1===c?d=d.filter(function(a){return 0===a%1}):.1>=c&&(d=[1/c])));for(f=0;f<d.length&&
25
+ !(q=d[f],l&&q*c>=a||!l&&p<=(d[f]+(d[f+1]||d[f]))/2);f++);return q=y(q*c,-Math.round(Math.log(.001)/Math.LN10))},objectEach:p,offset:function(a){var c=q.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(d.pageYOffset||c.scrollTop)-(c.clientTop||0),left:a.left+(d.pageXOffset||c.scrollLeft)-(c.clientLeft||0),width:a.width,height:a.height}},pad:function(a,d,c){return Array((d||2)+1-String(a).replace("-","").length).join(c||"0")+
26
+ a},pick:e,pInt:B,relativeLength:function(a,d,c){return/%$/.test(a)?d*parseFloat(a)/100+(c||0):parseFloat(a)},removeEvent:D,splat:function(a){return E(a)?a:[a]},stableSort:function(a,d){var c=a.length,f,l;for(l=0;l<c;l++)a[l].safeI=l;a.sort(function(a,c){f=d(a,c);return 0===f?a.safeI-c.safeI:f});for(l=0;l<c;l++)delete a[l].safeI},syncTimeout:function(a,d,c){if(0<d)return setTimeout(a,d,c);a.call(0,c);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,
27
+ year:314496E5},uniqueKey:K,useSerialIds:function(a){return G=e(a,G)},wrap:function(a,d,c){var f=a[d];a[d]=function(){var a=Array.prototype.slice.call(arguments),d=arguments,l=this;l.proceed=function(){f.apply(l,arguments.length?arguments:d)};a.unshift(f);a=c.apply(this,a);l.proceed=null;return a}}};"";return l});F(b,"Core/Chart/ChartDefaults.js",[],function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,
28
+ 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"}});F(b,"Core/Color/Color.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u){var x=u.isNumber,B=u.merge,v=u.pInt;u=function(){function u(w){this.rgba=[NaN,NaN,NaN,NaN];this.input=w;var k=b.Color;if(k&&k!==u)return new k(w);if(!(this instanceof u))return new u(w);this.init(w)}u.parse=function(b){return b?
29
+ new u(b):u.None};u.prototype.init=function(b){var k;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(a){return new u(a[1])});else if("string"===typeof b){this.input=b=u.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var r=b.length;var m=parseInt(b.substr(1),16);7===r?k=[(m&16711680)>>16,(m&65280)>>8,m&255,1]:4===r&&(k=[(m&3840)>>4|(m&3840)>>8,(m&240)>>4|m&240,(m&15)<<4|m&15,1])}if(!k)for(m=u.parsers.length;m--&&!k;){var h=u.parsers[m];(r=h.regex.exec(b))&&(k=h.parse(r))}}k&&
30
+ (this.rgba=k)};u.prototype.get=function(b){var k=this.input,r=this.rgba;if("object"===typeof k&&"undefined"!==typeof this.stops){var m=B(k);m.stops=[].slice.call(m.stops);this.stops.forEach(function(h,a){m.stops[a]=[m.stops[a][0],h.get(b)]});return m}return r&&x(r[0])?"rgb"===b||!b&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===b?""+r[3]:"rgba("+r.join(",")+")":k};u.prototype.brighten=function(b){var k=this.rgba;if(this.stops)this.stops.forEach(function(m){m.brighten(b)});else if(x(b)&&0!==b)for(var r=
31
+ 0;3>r;r++)k[r]+=v(255*b),0>k[r]&&(k[r]=0),255<k[r]&&(k[r]=255);return this};u.prototype.setOpacity=function(b){this.rgba[3]=b;return this};u.prototype.tweenTo=function(b,k){var r=this.rgba,m=b.rgba;if(!x(r[0])||!x(m[0]))return b.input||"none";b=1!==m[3]||1!==r[3];return(b?"rgba(":"rgb(")+Math.round(m[0]+(r[0]-m[0])*(1-k))+","+Math.round(m[1]+(r[1]-m[1])*(1-k))+","+Math.round(m[2]+(r[2]-m[2])*(1-k))+(b?","+(m[3]+(r[3]-m[3])*(1-k)):"")+")"};u.names={white:"#ffffff",black:"#000000"};u.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*\)/,
32
+ 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]),v(b[2]),v(b[3]),1]}}];u.None=new u("");return u}();"";return u});F(b,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});F(b,"Core/Time.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u){var x=b.win,B=u.defined,v=
33
+ u.error,E=u.extend,w=u.isObject,k=u.merge,r=u.objectEach,m=u.pad,h=u.pick,a=u.splat,c=u.timeUnits,e=b.isSafari&&x.Intl&&x.Intl.DateTimeFormat.prototype.formatRange,g=b.isSafari&&x.Intl&&!x.Intl.DateTimeFormat.prototype.formatRange;u=function(){function C(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=x.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}C.prototype.get=function(a,c){if(this.variableTimezone||this.timezoneOffset){var e=c.getTime(),g=e-this.getTimezoneOffset(c);
34
+ c.setTime(g);a=c["getUTC"+a]();c.setTime(e);return a}return this.useUTC?c["getUTC"+a]():c["get"+a]()};C.prototype.set=function(a,c,p){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(c)%36E5)return c["setUTC"+a](p);var g=this.getTimezoneOffset(c);g=c.getTime()-g;c.setTime(g);c["setUTC"+a](p);a=this.getTimezoneOffset(c);g=c.getTime()+a;return c.setTime(g)}return this.useUTC||e&&"FullYear"===a?c["setUTC"+a](p):c["set"+a](p)};
35
+ C.prototype.update=function(a){var c=h(a&&a.useUTC,!0);this.options=a=k(!0,this.options||{},a);this.Date=a.Date||x.Date||Date;this.timezoneOffset=(this.useUTC=c)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=c&&!(!a.getTimezoneOffset&&!a.timezone)};C.prototype.makeTime=function(a,c,e,D,n,f){if(this.useUTC){var q=this.Date.UTC.apply(0,arguments);var d=this.getTimezoneOffset(q);q+=d;var p=this.getTimezoneOffset(q);d!==p?q+=p-d:d-36E5!==this.getTimezoneOffset(q-
36
+ 36E5)||g||(q-=36E5)}else q=(new this.Date(a,c,h(e,1),h(D,0),h(n,0),h(f,0))).getTime();return q};C.prototype.timezoneOffsetFunction=function(){var a=this,c=this.options,e=c.moment||x.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(c.timezone){if(e)return function(a){return 6E4*-e.tz(a,c.timezone).utcOffset()};v(25)}return this.useUTC&&c.getTimezoneOffset?function(a){return 6E4*c.getTimezoneOffset(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||
37
+ 0)}};C.prototype.dateFormat=function(a,c,e){if(!B(c)||isNaN(c))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=h(a,"%Y-%m-%d %H:%M:%S");var p=this,n=new this.Date(c),f=this.get("Hours",n),q=this.get("Day",n),d=this.get("Date",n),g=this.get("Month",n),l=this.get("FullYear",n),t=b.defaultOptions.lang,y=t&&t.weekdays,C=t&&t.shortWeekdays;n=E({a:C?C[q]:y[q].substr(0,3),A:y[q],d:m(d),e:m(d,2," "),w:q,b:t.shortMonths[g],B:t.months[g],m:m(g+1),o:g+1,y:l.toString().substr(2,2),Y:l,H:m(f),
38
+ k:f,I:m(f%12||12),l:f%12||12,M:m(this.get("Minutes",n)),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:m(n.getSeconds()),L:m(Math.floor(c%1E3),3)},b.dateFormats);r(n,function(d,f){for(;-1!==a.indexOf("%"+f);)a=a.replace("%"+f,"function"===typeof d?d.call(p,c):d)});return e?a.substr(0,1).toUpperCase()+a.substr(1):a};C.prototype.resolveDTLFormat=function(c){return w(c,!0)?c:(c=a(c),{main:c[0],from:c[1],to:c[2]})};C.prototype.getTimeTicks=function(a,e,p,g){var n=this,f=[],q={},d=new n.Date(e),z=a.unitRange,l=a.count||
39
+ 1,D;g=h(g,1);if(B(e)){n.set("Milliseconds",d,z>=c.second?0:l*Math.floor(n.get("Milliseconds",d)/l));z>=c.second&&n.set("Seconds",d,z>=c.minute?0:l*Math.floor(n.get("Seconds",d)/l));z>=c.minute&&n.set("Minutes",d,z>=c.hour?0:l*Math.floor(n.get("Minutes",d)/l));z>=c.hour&&n.set("Hours",d,z>=c.day?0:l*Math.floor(n.get("Hours",d)/l));z>=c.day&&n.set("Date",d,z>=c.month?1:Math.max(1,l*Math.floor(n.get("Date",d)/l)));if(z>=c.month){n.set("Month",d,z>=c.year?0:l*Math.floor(n.get("Month",d)/l));var t=n.get("FullYear",
40
+ d)}z>=c.year&&n.set("FullYear",d,t-t%l);z===c.week&&(t=n.get("Day",d),n.set("Date",d,n.get("Date",d)-t+g+(t<g?-7:0)));t=n.get("FullYear",d);g=n.get("Month",d);var y=n.get("Date",d),C=n.get("Hours",d);e=d.getTime();!n.variableTimezone&&n.useUTC||!B(p)||(D=p-e>4*c.month||n.getTimezoneOffset(e)!==n.getTimezoneOffset(p));e=d.getTime();for(d=1;e<p;)f.push(e),e=z===c.year?n.makeTime(t+d*l,0):z===c.month?n.makeTime(t,g+d*l):!D||z!==c.day&&z!==c.week?D&&z===c.hour&&1<l?n.makeTime(t,g,y,C+d*l):e+z*l:n.makeTime(t,
41
+ g,y+d*l*(z===c.day?1:7)),d++;f.push(e);z<=c.hour&&1E4>f.length&&f.forEach(function(a){0===a%18E5&&"000000000"===n.dateFormat("%H%M%S%L",a)&&(q[a]="day")})}f.info=E(a,{higherRanks:q,totalRange:z*l});return f};C.prototype.getDateFormat=function(a,e,p,g){var n=this.dateFormat("%m-%d %H:%M:%S.%L",e),f={millisecond:15,second:12,minute:9,hour:6,day:3},q="millisecond";for(d in c){if(a===c.week&&+this.dateFormat("%w",e)===p&&"00:00:00.000"===n.substr(6)){var d="week";break}if(c[d]>a){d=q;break}if(f[d]&&n.substr(f[d])!==
42
+ "01-01 00:00:00.000".substr(f[d]))break;"week"!==d&&(q=d)}if(d)var z=this.resolveDTLFormat(g[d]).main;return z};return C}();"";return u});F(b,"Core/DefaultOptions.js",[b["Core/Chart/ChartDefaults.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palettes.js"],b["Core/Time.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E){u=u.parse;var x=E.merge,k={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(" "),
43
+ shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
44
+ caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#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"},
45
+ 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,textAlign:"center"}},tooltip:{enabled:!0,animation:A.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",
46
+ minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:A.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:u("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,
47
+ 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"}};k.chart.styledMode=!1;"";var r=new v(x(k.global,k.time));b={defaultOptions:k,defaultTime:r,getOptions:function(){return k},setOptions:function(m){x(!0,k,m);if(m.time||m.global)A.time?A.time.update(x(k.global,k.time,
48
+ m.global,m.time)):A.time=r;return k}};"";return b});F(b,"Core/Animation/Fx.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A){var x=b.parse,v=u.win,E=A.isNumber,w=A.objectEach;return function(){function k(k,m,h){this.pos=NaN;this.options=m;this.elem=k;this.prop=h}k.prototype.dSetter=function(){var k=this.paths,m=k&&k[0];k=k&&k[1];var h=this.now||0,a=[];if(1!==h&&m&&k)if(m.length===k.length&&1>h)for(var c=0;c<k.length;c++){for(var e=m[c],g=k[c],C=[],y=0;y<g.length;y++){var t=
49
+ e[y],p=g[y];E(t)&&E(p)&&("A"!==g[0]||4!==y&&5!==y)?C[y]=t+h*(p-t):C[y]=p}a.push(C)}else a=k;else a=this.toD||[];this.elem.attr("d",a,void 0,!0)};k.prototype.update=function(){var k=this.elem,m=this.prop,h=this.now,a=this.options.step;if(this[m+"Setter"])this[m+"Setter"]();else k.attr?k.element&&k.attr(m,h,null,!0):k.style[m]=h+this.unit;a&&a.call(k,h,this)};k.prototype.run=function(b,m,h){var a=this,c=a.options,e=function(c){return e.stopped?!1:a.step(c)},g=v.requestAnimationFrame||function(a){setTimeout(a,
50
+ 13)},C=function(){for(var a=0;a<k.timers.length;a++)k.timers[a]()||k.timers.splice(a--,1);k.timers.length&&g(C)};b!==m||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=b,this.end=m,this.unit=h,this.now=this.start,this.pos=0,e.elem=this.elem,e.prop=this.prop,e()&&1===k.timers.push(e)&&g(C)):(delete c.curAnim[this.prop],c.complete&&0===Object.keys(c.curAnim).length&&c.complete.call(this.elem))};k.prototype.step=function(k){var m=+new Date,h=this.options,a=this.elem,c=h.complete,
51
+ e=h.duration,g=h.curAnim;if(a.attr&&!a.element)k=!1;else if(k||m>=e+this.startTime){this.now=this.end;this.pos=1;this.update();var C=g[this.prop]=!0;w(g,function(a){!0!==a&&(C=!1)});C&&c&&c.call(a);k=!1}else this.pos=h.easing((m-this.startTime)/e),this.now=this.start+(this.end-this.start)*this.pos,this.update(),k=!0;return k};k.prototype.initPath=function(k,m,h){function a(a,c){for(;a.length<D;){var f=a[0],d=c[D-a.length];d&&"M"===f[0]&&(a[0]="C"===d[0]?["C",f[1],f[2],f[1],f[2],f[1],f[2]]:["L",f[1],
52
+ f[2]]);a.unshift(f);C&&(f=a.pop(),a.push(a[a.length-1],f))}}function c(a,c){for(;a.length<D;)if(c=a[Math.floor(a.length/y)-1].slice(),"C"===c[0]&&(c[1]=c[5],c[2]=c[6]),C){var f=a[Math.floor(a.length/y)].slice();a.splice(a.length/2,0,c,f)}else a.push(c)}var e=k.startX,g=k.endX;h=h.slice();var C=k.isArea,y=C?2:1;m=m&&m.slice();if(!m)return[h,h];if(e&&g&&g.length){for(k=0;k<e.length;k++)if(e[k]===g[0]){var t=k;break}else if(e[0]===g[g.length-e.length+k]){t=k;var p=!0;break}else if(e[e.length-1]===g[g.length-
53
+ e.length+k]){t=e.length-k;break}"undefined"===typeof t&&(m=[])}if(m.length&&E(t)){var D=h.length+t*y;p?(a(m,h),c(h,m)):(a(h,m),c(m,h))}return[m,h]};k.prototype.fillSetter=function(){k.prototype.strokeSetter.apply(this,arguments)};k.prototype.strokeSetter=function(){this.elem.attr(this.prop,x(this.start).tweenTo(x(this.end),this.pos),null,!0)};k.timers=[];return k}()});F(b,"Core/Animation/AnimationUtilities.js",[b["Core/Animation/Fx.js"],b["Core/Utilities.js"]],function(b,u){function x(a){return r(a)?
54
+ m({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function B(a,e){for(var c=b.timers.length;c--;)b.timers[c].elem!==a||e&&e!==b.timers[c].prop||(b.timers[c].stopped=!0)}var v=u.defined,E=u.getStyle,w=u.isArray,k=u.isNumber,r=u.isObject,m=u.merge,h=u.objectEach,a=u.pick;return{animate:function(a,e,g){var c,y="",t,p;if(!r(g)){var D=arguments;g={duration:D[2],easing:D[3],complete:D[4]}}k(g.duration)||(g.duration=400);g.easing="function"===typeof g.easing?g.easing:Math[g.easing]||Math.easeInOutSine;
55
+ g.curAnim=m(e);h(e,function(n,f){B(a,f);p=new b(a,g,f);t=void 0;"d"===f&&w(e.d)?(p.paths=p.initPath(a,a.pathArray,e.d),p.toD=e.d,c=0,t=1):a.attr?c=a.attr(f):(c=parseFloat(E(a,f))||0,"opacity"!==f&&(y="px"));t||(t=n);"string"===typeof t&&t.match("px")&&(t=t.replace(/px/g,""));p.run(c,t,y)})},animObject:x,getDeferredAnimation:function(a,e,g){var c=x(e),h=0,t=0;(g?[g]:a.series).forEach(function(a){a=x(a.options.animation);h=e&&v(e.defer)?c.defer:Math.max(h,a.duration+a.defer);t=Math.min(c.duration,a.duration)});
56
+ a.renderer.forExport&&(h=0);return{defer:Math.max(0,h-t),duration:Math.min(h,t)}},setAnimation:function(c,e){e.renderer.globalAnimation=a(c,e.options.chart.animation,!0)},stop:B}});F(b,"Core/Renderer/HTML/AST.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u){var x=b.SVG_NS,B=u.attr,v=u.createElement,E=u.discardElement,w=u.error,k=u.isString,r=u.objectEach,m=u.splat;try{var h=!!(new DOMParser).parseFromString("","text/html")}catch(a){h=!1}u=function(){function a(a){this.nodes="string"===
57
+ typeof a?this.parseMarkup(a):a}a.filterUserAttributes=function(c){r(c,function(e,g){var h=!0;-1===a.allowedAttributes.indexOf(g)&&(h=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(g)&&(h=k(e)&&a.allowedReferences.some(function(a){return 0===e.indexOf(a)}));h||(w("Highcharts warning: Invalid attribute '"+g+"' in config"),delete c[g])});return c};a.setElementHTML=function(c,e){c.innerHTML="";e&&(new a(e)).addToDOM(c)};a.prototype.addToDOM=function(c){function e(c,h){var g;m(c).forEach(function(c){var p=
58
+ c.tagName,D=c.textContent?b.doc.createTextNode(c.textContent):void 0;if(p)if("#text"===p)var n=D;else if(-1!==a.allowedTags.indexOf(p)){p=b.doc.createElementNS("svg"===p?x:h.namespaceURI||x,p);var f=c.attributes||{};r(c,function(a,d){"tagName"!==d&&"attributes"!==d&&"children"!==d&&"textContent"!==d&&(f[d]=a)});B(p,a.filterUserAttributes(f));D&&p.appendChild(D);e(c.children||[],p);n=p}else w("Highcharts warning: Invalid tagName '"+p+"' in config");n&&h.appendChild(n);g=n});return g}return e(this.nodes,
59
+ c)};a.prototype.parseMarkup=function(a){var c=[];a=a.trim();if(h)a=(new DOMParser).parseFromString(a,"text/html");else{var g=v("div");g.innerHTML=a;a={body:g}}var k=function(a,c){var e=a.nodeName.toLowerCase(),g={tagName:e};"#text"===e&&(g.textContent=a.textContent||"");if(e=a.attributes){var n={};[].forEach.call(e,function(a){n[a.name]=a.value});g.attributes=n}if(a.childNodes.length){var f=[];[].forEach.call(a.childNodes,function(a){k(a,f)});f.length&&(g.children=f)}c.push(g)};[].forEach.call(a.body.childNodes,
60
+ function(a){return k(a,c)});g&&E(g);return c};a.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(" ");
61
+ a.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");a.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(" ");return a}();"";return u});F(b,"Core/FormatUtilities.js",[b["Core/DefaultOptions.js"],
62
+ b["Core/Utilities.js"]],function(b,u){function x(m,h,a,c){m=+m||0;h=+h;var e=B.lang,g=(m.toString().split(".")[1]||"").split("e")[0].length,C=m.toString().split("e"),y=h;if(-1===h)h=Math.min(g,20);else if(!w(h))h=2;else if(h&&C[1]&&0>C[1]){var t=h+ +C[1];0<=t?(C[0]=(+C[0]).toExponential(t).split("e")[0],h=t):(C[0]=C[0].split(".")[0]||0,m=20>h?(C[0]*Math.pow(10,C[1])).toFixed(h):0,C[1]=0)}t=(Math.abs(C[1]?C[0]:m)+Math.pow(10,-Math.max(h,g)-1)).toFixed(h);g=String(r(t));var p=3<g.length?g.length%3:
63
+ 0;a=k(a,e.decimalPoint);c=k(c,e.thousandsSep);m=(0>m?"-":"")+(p?g.substr(0,p)+c:"");m=0>+C[1]&&!y?"0":m+g.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+c);h&&(m+=a+t.slice(-h));C[1]&&0!==+m&&(m+="e"+C[1]);return m}var B=b.defaultOptions,v=b.defaultTime,E=u.getNestedProperty,w=u.isNumber,k=u.pick,r=u.pInt;return{dateFormat:function(k,h,a){return v.dateFormat(k,h,a)},format:function(k,h,a){var c="{",e=!1,g=/f$/,C=/\.([0-9])/,y=B.lang,t=a&&a.time||v;a=a&&a.numberFormatter||x;for(var p=[];k;){var D=k.indexOf(c);
64
+ if(-1===D)break;var n=k.slice(0,D);if(e){n=n.split(":");c=E(n.shift()||"",h);if(n.length&&"number"===typeof c)if(n=n.join(":"),g.test(n)){var f=parseInt((n.match(C)||["","-1"])[1],10);null!==c&&(c=a(c,f,y.decimalPoint,-1<n.indexOf(",")?y.thousandsSep:""))}else c=t.dateFormat(n,c);p.push(c)}else p.push(n);k=k.slice(D+1);c=(e=!e)?"}":"{"}p.push(k);return p.join("")},numberFormat:x}});F(b,"Core/Renderer/RendererUtilities.js",[b["Core/Utilities.js"]],function(b){var x=b.clamp,A=b.pick,B=b.stableSort,
65
+ v;(function(b){function w(k,b,m){var h=k,a=h.reducedLen||b,c=function(a,c){return(c.rank||0)-(a.rank||0)},e=function(a,c){return a.target-c.target},g,C=!0,y=[],t=0;for(g=k.length;g--;)t+=k[g].size;if(t>a){B(k,c);for(t=g=0;t<=a;)t+=k[g].size,g++;y=k.splice(g-1,k.length)}B(k,e);for(k=k.map(function(a){return{size:a.size,targets:[a.target],align:A(a.align,.5)}});C;){for(g=k.length;g--;)a=k[g],c=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=x(c-a.size*a.align,0,b-a.size);g=k.length;
66
+ for(C=!1;g--;)0<g&&k[g-1].pos+k[g-1].size>k[g].pos&&(k[g-1].size+=k[g].size,k[g-1].targets=k[g-1].targets.concat(k[g].targets),k[g-1].align=.5,k[g-1].pos+k[g-1].size>b&&(k[g-1].pos=b-k[g-1].size),k.splice(g,1),C=!0)}h.push.apply(h,y);g=0;k.some(function(a){var c=0;return(a.targets||[]).some(function(){h[g].pos=a.pos+c;if("undefined"!==typeof m&&Math.abs(h[g].pos-h[g].target)>m)return h.slice(0,g+1).forEach(function(a){return delete a.pos}),h.reducedLen=(h.reducedLen||b)-.1*b,h.reducedLen>.1*b&&w(h,
67
+ b,m),!0;c+=h[g].size;g++;return!1})});B(h,e);return h}b.distribute=w})(v||(v={}));return v});F(b,"Core/Renderer/SVG/SVGElement.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=b.animate,w=b.animObject,k=b.stop,r=B.deg2rad,m=B.doc,h=B.noop,a=B.svg,c=B.SVG_NS,e=B.win,g=v.addEvent,C=v.attr,y=v.createElement,t=v.css,p=v.defined,D=v.erase,n=v.extend,f=v.fireEvent,q=v.isArray,d=v.isFunction,
68
+ z=v.isNumber,l=v.isString,G=v.merge,K=v.objectEach,I=v.pick,H=v.pInt,N=v.syncTimeout,aa=v.uniqueKey;b=function(){function b(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=c;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}b.prototype._defaultGetter=function(a){a=I(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a};b.prototype._defaultSetter=
69
+ function(a,c,d){d.setAttribute(c,a)};b.prototype.add=function(a){var c=this.renderer,d=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var f=this.zIndexSetter();f||(a?a.element:c.box).appendChild(d);if(this.onAdd)this.onAdd();return this};b.prototype.addClass=function(a,c){var d=c?"":this.attr("class")||"";a=(a||"").split(/ /g).reduce(function(a,c){-1===
70
+ d.indexOf(c)&&a.push(c);return a},d?[d]:[]).join(" ");a!==d&&this.attr("class",a);return this};b.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};b.prototype.align=function(a,c,d){var f={},e=this.renderer,q=e.alignedObjects,p,n,g;if(a){if(this.alignOptions=a,this.alignByTranslate=c,!d||l(d))this.alignTo=p=d||"renderer",D(q,this),q.push(this),d=void 0}else a=this.alignOptions,c=this.alignByTranslate,p=this.alignTo;d=I(d,e[p],"scrollablePlotBox"===p?
71
+ e.plotBox:void 0,e);p=a.align;var z=a.verticalAlign;e=(d.x||0)+(a.x||0);q=(d.y||0)+(a.y||0);"right"===p?n=1:"center"===p&&(n=2);n&&(e+=(d.width-(a.width||0))/n);f[c?"translateX":"x"]=Math.round(e);"bottom"===z?g=1:"middle"===z&&(g=2);g&&(q+=(d.height-(a.height||0))/g);f[c?"translateY":"y"]=Math.round(q);this[this.placed?"animate":"attr"](f);this.placed=!0;this.alignAttr=f;return this};b.prototype.alignSetter=function(a){var d={left:"start",center:"middle",right:"end"};d[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",
72
+ d[a]))};b.prototype.animate=function(a,d,c){var f=this,l=w(I(d,this.renderer.globalAnimation,!0));d=l.defer;I(m.hidden,m.msHidden,m.webkitHidden,!1)&&(l.duration=0);0!==l.duration?(c&&(l.complete=c),N(function(){f.element&&x(f,a,l)},d)):(this.attr(a,void 0,c),K(a,function(a,d){l.step&&l.step.call(this,a,{prop:d,pos:1,elem:this})},this));return this};b.prototype.applyTextOutline=function(a){var d=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(d.style.fill)));
73
+ var f=a.split(" ");a=f[f.length-1];if((f=f[0])&&"none"!==f&&B.svg){this.fakeTS=!0;this.ySetter=this.xSetter;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(a,d,c){return 2*Number(d)+c});this.removeTextOutline();var l=m.createElementNS(c,"tspan");C(l,{"class":"highcharts-text-outline",fill:a,stroke:a,"stroke-width":f,"stroke-linejoin":"round"});[].forEach.call(d.childNodes,function(a){var d=a.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(a){return d.removeAttribute(a)});
74
+ l.appendChild(d)});var e=m.createElementNS(c,"tspan");e.textContent="\u200b";["x","y"].forEach(function(a){var c=d.getAttribute(a);c&&e.setAttribute(a,c)});l.appendChild(e);d.insertBefore(l,d.firstChild)}};b.prototype.attr=function(a,d,c,f){var l=this.element,e=this.symbolCustomAttribs,q,p=this,n,g;if("string"===typeof a&&"undefined"!==typeof d){var z=a;a={};a[z]=d}"string"===typeof a?p=(this[a+"Getter"]||this._defaultGetter).call(this,a,l):(K(a,function(d,c){n=!1;f||k(this,c);this.symbolName&&-1!==
75
+ e.indexOf(c)&&(q||(this.symbolAttr(a),q=!0),n=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);n||(g=this[c+"Setter"]||this._defaultSetter,g.call(this,d,c,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d,g))},this),this.afterSetters());c&&c.call(this);return p};b.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")};b.prototype.crisp=function(a,d){d=d||a.strokeWidth||
76
+ 0;var c=Math.round(d)%2/2;a.x=Math.floor(a.x||this.x||0)+c;a.y=Math.floor(a.y||this.y||0)+c;a.width=Math.floor((a.width||this.width||0)-2*c);a.height=Math.floor((a.height||this.height||0)-2*c);p(a.strokeWidth)&&(a.strokeWidth=d);return a};b.prototype.complexColor=function(a,d,c){var l=this.renderer,e,n,g,z,h,P,b,t,D,k,y=[],C;f(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?n="radialGradient":a.linearGradient&&(n="linearGradient");if(n){g=a[n];h=l.gradients;P=a.stops;D=c.radialReference;
77
+ q(g)&&(a[n]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===n&&D&&!p(g.gradientUnits)&&(z=g,g=G(g,l.getRadialAttr(D,z),{gradientUnits:"userSpaceOnUse"}));K(g,function(a,d){"id"!==d&&y.push(d,a)});K(P,function(a){y.push(a)});y=y.join(",");if(h[y])k=h[y].attr("id");else{g.id=k=aa();var f=h[y]=l.createElement(n).attr(g).add(l.defs);f.radAttr=z;f.stops=[];P.forEach(function(a){0===a[1].indexOf("rgba")?(e=A.parse(a[1]),b=e.get("rgb"),t=e.get("a")):(b=a[1],t=1);a=
78
+ l.createElement("stop").attr({offset:a[0],"stop-color":b,"stop-opacity":t}).add(f);f.stops.push(a)})}C="url("+l.url+"#"+k+")";c.setAttribute(d,C);c.gradient=y;a.toString=function(){return C}}})};b.prototype.css=function(d){var c=this.styles,f={},l=this.element,e=["textOutline","textOverflow","width"],q="",g=!c;d&&d.color&&(d.fill=d.color);c&&K(d,function(a,d){c&&c[d]!==a&&(f[d]=a,g=!0)});if(g){c&&(d=n(c,f));if(d)if(null===d.width||"auto"===d.width)delete this.textWidth;else if("text"===l.nodeName.toLowerCase()&&
79
+ d.width)var p=this.textWidth=H(d.width);this.styles=d;p&&!a&&this.renderer.forExport&&delete d.width;if(l.namespaceURI===this.SVG_NS){var z=function(a,d){return"-"+d.toLowerCase()};K(d,function(a,d){-1===e.indexOf(d)&&(q+=d.replace(/([A-Z])/g,z)+":"+a+";")});q&&C(l,"style",q)}else t(l,d);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),d&&d.textOutline&&this.applyTextOutline(d.textOutline))}return this};b.prototype.dashstyleSetter=function(a){var d=this["stroke-width"];"inherit"===
80
+ d&&(d=1);if(a=a&&a.toLowerCase()){var c=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=c.length;a--;)c[a]=""+H(c[a])*I(d,NaN);a=c.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}};b.prototype.destroy=function(){var a=this,d=a.element||{},c=a.renderer,f=d.ownerSVGElement,l=c.isSVG&&
81
+ "SPAN"===d.nodeName&&a.parentGroup||void 0;d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null;k(a);if(a.clipPath&&f){var e=a.clipPath;[].forEach.call(f.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(e.element.id)&&a.removeAttribute("clip-path")});a.clipPath=e.destroy()}if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f].destroy();a.stops.length=0;a.stops=void 0}a.safeRemoveChild(d);for(c.styledMode||a.destroyShadows();l&&l.div&&0===l.div.childNodes.length;)d=
82
+ l.parentGroup,a.safeRemoveChild(l.div),delete l.div,l=d;a.alignTo&&D(c.alignedObjects,a);K(a,function(d,c){a[c]&&a[c].parentGroup===a&&a[c].destroy&&a[c].destroy();delete a[c]})};b.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0};b.prototype.destroyTextPath=function(a,d){var c=a.getElementsByTagName("text")[0];if(c){if(c.removeAttribute("dx"),c.removeAttribute("dy"),d.element.setAttribute("id",""),this.textPathWrapper&&
83
+ c.getElementsByTagName("textPath").length){for(a=this.textPathWrapper.element.childNodes;a.length;)c.appendChild(a[0]);c.removeChild(this.textPathWrapper.element)}}else if(a.getAttribute("dx")||a.getAttribute("dy"))a.removeAttribute("dx"),a.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};b.prototype.dSetter=function(a,d,c){q(a)&&("string"===typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(a,d,c){return d&&d.join?
84
+ (c?a+" ":"")+d.join(" "):(d||"").toString()},""));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[d]!==a&&(c.setAttribute(d,a),this[d]=a)};b.prototype.fadeOut=function(a){var d=this;d.animate({opacity:0},{duration:I(a,150),complete:function(){d.attr({y:-9999}).hide()}})};b.prototype.fillSetter=function(a,d,c){"string"===typeof a?c.setAttribute(d,a):a&&this.complexColor(a,d,c)};b.prototype.getBBox=function(a,c){var f=this.renderer,l=this.element,e=this.styles,q=this.textStr,g=f.cache,z=f.cacheKeys,h=l.namespaceURI===
85
+ this.SVG_NS;c=I(c,this.rotation,0);var D=f.styledMode?l&&b.prototype.getStyle.call(l,"font-size"):e&&e.fontSize,k;if(p(q)){var y=q.toString();-1===y.indexOf("<")&&(y=y.replace(/[0-9]/g,"0"));y+=["",c,D,this.textWidth,e&&e.textOverflow,e&&e.fontWeight].join()}y&&!a&&(k=g[y]);if(!k){if(h||f.forExport){try{var G=this.fakeTS&&function(a){var d=l.querySelector(".highcharts-text-outline");d&&t(d,{display:a})};d(G)&&G("none");k=l.getBBox?n({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight};d(G)&&
86
+ G("")}catch(W){""}if(!k||0>k.width)k={width:0,height:0}}else k=this.htmlGetBBox();f.isSVG&&(a=k.width,f=k.height,h&&(k.height=f={"11px,17":14,"13px,20":16}[e&&e.fontSize+","+Math.round(f)]||f),c&&(e=c*r,k.width=Math.abs(f*Math.sin(e))+Math.abs(a*Math.cos(e)),k.height=Math.abs(f*Math.cos(e))+Math.abs(a*Math.sin(e))));if(y&&(""===q||0<k.height)){for(;250<z.length;)delete g[z.shift()];g[y]||z.push(y);g[y]=k}}return k};b.prototype.getStyle=function(a){return e.getComputedStyle(this.element||this,"").getPropertyValue(a)};
87
+ b.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)};b.prototype.hide=function(a){a?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(a,d){this.element="span"===d?y(d):m.createElementNS(this.SVG_NS,d);this.renderer=a;f(this,"afterInit")};b.prototype.invert=function(a){this.inverted=a;this.updateTransform();return this};b.prototype.on=function(a,d){var c=
88
+ this.onEvents;if(c[a])c[a]();c[a]=g(this.element,a,d);return this};b.prototype.opacitySetter=function(a,d,c){this.opacity=a=Number(Number(a).toFixed(3));c.setAttribute(d,a)};b.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(l(a)?new RegExp("(^| )"+a+"( |$)"):a," ").replace(/ +/g," ").trim())};b.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)};b.prototype.safeRemoveChild=function(a){var d=
89
+ a.parentNode;d&&d.removeChild(a)};b.prototype.setRadialReference=function(a){var d=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;d&&d.radAttr&&d.animate(this.renderer.getRadialAttr(a,d.radAttr));return this};b.prototype.setTextPath=function(a,d){var c=this.element,f=this.text?this.text.element:c,l={textAnchor:"text-anchor"},q=!1,g=this.textPathWrapper,n=!g;d=G(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},d);var b=u.filterUserAttributes(d.attributes);
90
+ if(a&&d&&d.enabled){g&&null===g.element.parentNode?(n=!0,g=g.destroy()):g&&this.removeTextOutline.call(g.parentGroup);this.options&&this.options.padding&&(b.dx=-this.options.padding);g||(this.textPathWrapper=g=this.renderer.createElement("textPath"),q=!0);var t=g.element;(d=a.element.getAttribute("id"))||a.element.setAttribute("id",d=aa());if(n)for(f.setAttribute("y",0),z(b.dx)&&f.setAttribute("x",-b.dx),a=[].slice.call(f.childNodes),n=0;n<a.length;n++){var k=a[n];k.nodeType!==e.Node.TEXT_NODE&&"tspan"!==
91
+ k.nodeName||t.appendChild(k)}q&&g&&g.add({element:f});t.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+d);p(b.dy)&&(t.parentNode.setAttribute("dy",b.dy),delete b.dy);p(b.dx)&&(t.parentNode.setAttribute("dx",b.dx),delete b.dx);K(b,function(a,d){t.setAttribute(l[d]||d,a)});c.removeAttribute("transform");this.removeTextOutline.call(g);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=h}else g&&(delete this.updateTransform,
92
+ delete this.applyTextOutline,this.destroyTextPath(c,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};b.prototype.shadow=function(a,d,c){var f=[],l=this.element,e=this.oldShadowOptions,q={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},g=!1,p;!0===a?p=q:"object"===typeof a&&(p=n(q,a));p&&(p&&e&&K(p,function(a,d){a!==e[d]&&(g=!0)}),g&&this.destroyShadows(),this.oldShadowOptions=
93
+ p);if(!p)this.destroyShadows();else if(!this.shadows){var z=p.opacity/p.width;var h=this.parentInverted?"translate("+p.offsetY+", "+p.offsetX+")":"translate("+p.offsetX+", "+p.offsetY+")";for(q=1;q<=p.width;q++){var b=l.cloneNode(!1);var t=2*p.width+1-2*q;C(b,{stroke:a.color||"#000000","stroke-opacity":z*q,"stroke-width":t,transform:h,fill:"none"});b.setAttribute("class",(b.getAttribute("class")||"")+" highcharts-shadow");c&&(C(b,"height",Math.max(C(b,"height")-t,0)),b.cutHeight=t);d?d.element.appendChild(b):
94
+ l.parentNode&&l.parentNode.insertBefore(b,l);f.push(b)}this.shadows=f}return this};b.prototype.show=function(a){return this.attr({visibility:a?"inherit":"visible"})};b.prototype.strokeSetter=function(a,d,c){this[d]=a;this.stroke&&this["stroke-width"]?(b.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===d&&0===a&&this.hasStroke?(c.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&
95
+ (c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};b.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),d=0;if(a.indexOf("px")===a.length-2)d=H(a);else if(""!==a){var f=m.createElementNS(c,"rect");C(f,{width:a,"stroke-width":0});this.element.parentNode.appendChild(f);d=f.getBBox().width;f.parentNode.removeChild(f)}return d};b.prototype.symbolAttr=function(a){var d=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(c){d[c]=
96
+ I(a[c],d[c])});d.attr({d:d.renderer.symbols[d.symbolName](d.x,d.y,d.width,d.height,d)})};b.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))};b.prototype.titleSetter=function(a){var d=this.element,c=d.getElementsByTagName("title")[0]||m.createElementNS(this.SVG_NS,"title");d.insertBefore?d.insertBefore(c,d.firstChild):d.appendChild(c);c.textContent=String(I(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,
97
+ ">")};b.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};b.prototype.translate=function(a,d){return this.attr({translateX:a,translateY:d})};b.prototype.updateShadows=function(a,d,c){var f=this.shadows;if(f)for(var l=f.length;l--;)c.call(f[l],"height"===a?Math.max(d-(f[l].cutHeight||0),0):"d"===a?this.d:d,a,f[l])};b.prototype.updateTransform=function(){var a=this.scaleX,d=this.scaleY,c=this.inverted,f=this.rotation,l=this.matrix,e=this.element,q=this.translateX||
98
+ 0,g=this.translateY||0;c&&(q+=this.width,g+=this.height);q=["translate("+q+","+g+")"];p(l)&&q.push("matrix("+l.join(",")+")");c?q.push("rotate(90) scale(-1,1)"):f&&q.push("rotate("+f+" "+I(this.rotationOriginX,e.getAttribute("x"),0)+" "+I(this.rotationOriginY,e.getAttribute("y")||0)+")");(p(a)||p(d))&&q.push("scale("+I(a,1)+" "+I(d,1)+")");q.length&&e.setAttribute("transform",q.join(" "))};b.prototype.visibilitySetter=function(a,d,c){"inherit"===a?c.removeAttribute(d):this[d]!==a&&c.setAttribute(d,
99
+ a);this[d]=a};b.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};b.prototype.zIndexSetter=function(a,d){var c=this.renderer,f=this.parentGroup,l=(f||c).element||c.box,e=this.element;c=l===c.box;var q=!1;var g=this.added;var n;p(a)?(e.setAttribute("data-z-index",a),a=+a,this[d]===a&&(g=!1)):p(this[d])&&e.removeAttribute("data-z-index");this[d]=a;if(g){(a=this.zIndex)&&f&&(f.handleZ=!0);d=l.childNodes;for(n=d.length-1;0<=
100
+ n&&!q;n--){f=d[n];g=f.getAttribute("data-z-index");var z=!p(g);if(f!==e)if(0>a&&z&&!c&&!n)l.insertBefore(e,d[n]),q=!0;else if(H(g)<=a||z&&(!p(a)||0<=a))l.insertBefore(e,d[n+1]||null),q=!0}q||(l.insertBefore(e,d[c?3:0]||null),q=!0)}return q};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=
101
+ b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(a,d){this[d]=a;this.doTransform=!0};"";return b});F(b,"Core/Renderer/RendererRegistry.js",[b["Core/Globals.js"]],function(b){var x;(function(x){x.rendererTypes={};var u;x.getRendererType=function(b){void 0===b&&(b=u);return x.rendererTypes[b]||x.rendererTypes[u]};x.registerRendererType=function(v,E,w){x.rendererTypes[v]=E;if(!u||w)u=v,b.Renderer=E}})(x||(x={}));return x});F(b,"Core/Renderer/SVG/SVGLabel.js",
102
+ [b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),B=u.defined,v=u.extend,E=u.isNumber,w=u.merge,k=u.pick,r=u.removeEvent;
103
+ return function(m){function h(a,c,e,g,b,k,t,p,D,n){var f=m.call(this)||this;f.paddingLeftSetter=f.paddingSetter;f.paddingRightSetter=f.paddingSetter;f.init(a,"g");f.textStr=c;f.x=e;f.y=g;f.anchorX=k;f.anchorY=t;f.baseline=D;f.className=n;f.addClass("button"===n?"highcharts-no-tooltip":"highcharts-label");n&&f.addClass("highcharts-"+n);f.text=a.text(void 0,0,0,p).attr({zIndex:1});var q;"string"===typeof b&&((q=/^url\((.*?)\)$/.test(b))||f.renderer.symbols[b])&&(f.symbolKey=b);f.bBox=h.emptyBBox;f.padding=
104
+ 3;f.baselineOffset=0;f.needsBox=a.styledMode||q;f.deferredAttr={};f.alignFactor=0;return f}x(h,m);h.prototype.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==this.alignFactor&&(this.alignFactor=a,this.bBox&&E(this.xSetting)&&this.attr({x:this.xSetting}))};h.prototype.anchorXSetter=function(a,c){this.anchorX=a;this.boxAttr(c,Math.round(a)-this.getCrispAdjust()-this.xSetting)};h.prototype.anchorYSetter=function(a,c){this.anchorY=a;this.boxAttr(c,a-this.ySetting)};h.prototype.boxAttr=function(a,
105
+ c){this.box?this.box.attr(a,c):this.deferredAttr[a]=c};h.prototype.css=function(a){if(a){var c={};a=w(a);h.textProps.forEach(function(e){"undefined"!==typeof a[e]&&(c[e]=a[e],delete a[e])});this.text.css(c);var e="width"in c;"fontSize"in c||"fontWeight"in c?this.updateTextPadding():e&&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();this.box&&(this.box=this.box.destroy());
106
+ b.prototype.destroy.call(this)};h.prototype.fillSetter=function(a,c){a&&(this.needsBox=!0);this.fill=a;this.boxAttr(c,a)};h.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var a=this.padding,c=k(this.paddingLeft,a);return{width:this.width,height:this.height,x:this.bBox.x-c,y:this.bBox.y-a}};h.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],
107
+ 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,c){E(a)?a!==this[c]&&(this[c]=a,this.updateTextPadding()):this[c]=void 0};h.prototype.rSetter=function(a,c){this.boxAttr(c,a)};h.prototype.shadow=function(a){a&&!this.renderer.styledMode&&(this.updateBoxSize(),
108
+ this.box&&this.box.shadow(a));return this};h.prototype.strokeSetter=function(a,c){this.stroke=a;this.boxAttr(c,a)};h.prototype["stroke-widthSetter"]=function(a,c){a&&(this.needsBox=!0);this["stroke-width"]=a;this.boxAttr(c,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.element.style,c={},e=this.padding,g=this.bBox=E(this.widthSetting)&&
109
+ E(this.heightSetting)&&!this.textAlign||!B(this.text.textStr)?h.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||g.height||0)+2*e;a=this.renderer.fontMetrics(a&&a.fontSize,this.text);this.baselineOffset=e+Math.min((this.text.firstLineMetrics||a).b,g.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2);this.needsBox&&(this.box||(e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),e.addClass(("button"===
110
+ this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)),e=this.getCrispAdjust(),c.x=e,c.y=(this.baseline?-this.baselineOffset:0)+e,c.width=Math.round(this.width),c.height=Math.round(this.height),this.box.attr(v(c,this.deferredAttr)),this.deferredAttr={})};h.prototype.updateTextPadding=function(){var a=this.text;this.updateBoxSize();var c=this.baseline?0:this.baselineOffset,e=k(this.paddingLeft,this.padding);B(this.widthSetting)&&this.bBox&&
111
+ ("center"===this.textAlign||"right"===this.textAlign)&&(e+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(e!==a.x||c!==a.y)a.attr("x",e),a.hasBoxWidthChanged&&(this.bBox=a.getBBox(!0)),"undefined"!==typeof c&&a.attr("y",c);a.x=e;a.y=c};h.prototype.widthSetter=function(a){this.widthSetting=E(a)?a:void 0};h.prototype.getPaddedWidth=function(){var a=this.padding,c=k(this.paddingLeft,a);a=k(this.paddingRight,a);return(this.widthSetting||this.bBox.width||0)+c+a};h.prototype.xSetter=
112
+ 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)});F(b,"Core/Renderer/SVG/Symbols.js",
113
+ [b["Core/Utilities.js"]],function(b){function x(b,r,m,h,a){var c=[];if(a){var e=a.start||0,g=w(a.r,m);m=w(a.r,h||m);var k=(a.end||0)-.001;h=a.innerR;var y=w(a.open,.001>Math.abs((a.end||0)-e-2*Math.PI)),t=Math.cos(e),p=Math.sin(e),D=Math.cos(k),n=Math.sin(k);e=w(a.longArc,.001>k-e-Math.PI?0:1);c.push(["M",b+g*t,r+m*p],["A",g,m,0,e,w(a.clockwise,1),b+g*D,r+m*n]);v(h)&&c.push(y?["M",b+h*D,r+h*n]:["L",b+h*D,r+h*n],["A",h,h,0,e,v(a.clockwise)?1-a.clockwise:0,b+h*t,r+h*p]);y||c.push(["Z"])}return c}function A(b,
114
+ r,m,h,a){return a&&a.r?B(b,r,m,h,a):[["M",b,r],["L",b+m,r],["L",b+m,r+h],["L",b,r+h],["Z"]]}function B(b,r,m,h,a){a=a&&a.r||0;return[["M",b+a,r],["L",b+m-a,r],["C",b+m,r,b+m,r,b+m,r+a],["L",b+m,r+h-a],["C",b+m,r+h,b+m,r+h,b+m-a,r+h],["L",b+a,r+h],["C",b,r+h,b,r+h,b,r+h-a],["L",b,r+a],["C",b,r,b,r,b+a,r]]}var v=b.defined,E=b.isNumber,w=b.pick;return{arc:x,callout:function(b,r,m,h,a){var c=Math.min(a&&a.r||0,m,h),e=c+6,g=a&&a.anchorX;a=a&&a.anchorY||0;var k=B(b,r,m,h,{r:c});if(!E(g))return k;b+g>=m?
115
+ a>r+e&&a<r+h-e?k.splice(3,1,["L",b+m,a-6],["L",b+m+6,a],["L",b+m,a+6],["L",b+m,r+h-c]):k.splice(3,1,["L",b+m,h/2],["L",g,a],["L",b+m,h/2],["L",b+m,r+h-c]):0>=b+g?a>r+e&&a<r+h-e?k.splice(7,1,["L",b,a+6],["L",b-6,a],["L",b,a-6],["L",b,r+c]):k.splice(7,1,["L",b,h/2],["L",g,a],["L",b,h/2],["L",b,r+c]):a&&a>h&&g>b+e&&g<b+m-e?k.splice(5,1,["L",g+6,r+h],["L",g,r+h+6],["L",g-6,r+h],["L",b+c,r+h]):a&&0>a&&g>b+e&&g<b+m-e&&k.splice(1,1,["L",g-6,r],["L",g,r-6],["L",g+6,r],["L",m-c,r]);return k},circle:function(b,
116
+ r,m,h){return x(b+m/2,r+h/2,m/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,r,m,h){return[["M",b+m/2,r],["L",b+m,r+h/2],["L",b+m/2,r+h],["L",b,r+h/2],["Z"]]},rect:A,roundedRect:B,square:A,triangle:function(b,r,m,h){return[["M",b+m/2,r],["L",b+m,r+h],["L",b,r+h],["Z"]]},"triangle-down":function(b,r,m,h){return[["M",b,r],["L",b+m,r],["L",b+m/2,r+h],["Z"]]}}});F(b,"Core/Renderer/SVG/TextBuilder.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,
117
+ u,A){var x=u.doc,v=u.SVG_NS,E=u.win,w=A.attr,k=A.isString,r=A.objectEach,m=A.pick;return function(){function h(a){var c=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=c&&c.lineHeight;this.textOutline=c&&c.textOutline;this.ellipsis=!(!c||"ellipsis"!==c.textOverflow);this.noWrap=!(!c||"nowrap"!==c.whiteSpace);this.fontSize=c&&c.fontSize}h.prototype.buildSVG=function(){var a=this.svgElement,c=a.element,e=a.renderer,g=m(a.textStr,"").toString(),h=-1!==g.indexOf("<"),
118
+ y=c.childNodes;e=this.width&&!a.added&&e.box;var t=/<br.*?>/g,p=[g,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(p!==a.textCache){a.textCache=p;delete a.actualWidth;for(p=y.length;p--;)c.removeChild(y[p]);h||this.ellipsis||this.width||-1!==g.indexOf(" ")&&(!this.noWrap||t.test(g))?""!==g&&(e&&e.appendChild(c),g=new b(g),this.modifyTree(g.nodes),g.addToDOM(a.element),this.modifyDOM(),this.ellipsis&&-1!==(c.textContent||"").indexOf("\u2026")&&a.attr("title",
119
+ this.unescapeEntities(a.textStr||"",["&lt;","&gt;"])),e&&e.removeChild(c)):c.appendChild(x.createTextNode(this.unescapeEntities(g)));k(this.textOutline)&&a.applyTextOutline&&a.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var a=this,c=this.svgElement,e=w(c.element,"x");c.firstLineMetrics=void 0;for(var g;g=c.element.firstChild;)if(/^[\s\u200B]*$/.test(g.textContent||" "))c.element.removeChild(g);else break;[].forEach.call(c.element.querySelectorAll("tspan.highcharts-br"),function(g,
120
+ b){g.nextSibling&&g.previousSibling&&(0===b&&1===g.previousSibling.nodeType&&(c.firstLineMetrics=c.renderer.fontMetrics(void 0,g.previousSibling)),w(g,{dy:a.getLineHeight(g.nextSibling),x:e}))});var b=this.width||0;if(b){var h=function(g,h){var n=g.textContent||"",f=n.replace(/([^\^])-/g,"$1- ").split(" "),q=!a.noWrap&&(1<f.length||1<c.element.childNodes.length),d=a.getLineHeight(h),p=0,l=c.actualWidth;if(a.ellipsis)n&&a.truncate(g,n,void 0,0,Math.max(0,b-parseInt(a.fontSize||12,10)),function(a,d){return a.substring(0,
121
+ d)+"\u2026"});else if(q){n=[];for(q=[];h.firstChild&&h.firstChild!==g;)q.push(h.firstChild),h.removeChild(h.firstChild);for(;f.length;)f.length&&!a.noWrap&&0<p&&(n.push(g.textContent||""),g.textContent=f.join(" ").replace(/- /g,"-")),a.truncate(g,void 0,f,0===p?l||0:0,b,function(a,d){return f.slice(0,d).join(" ").replace(/- /g,"-")}),l=c.actualWidth,p++;q.forEach(function(a){h.insertBefore(a,g)});n.forEach(function(a){h.insertBefore(x.createTextNode(a),g);a=x.createElementNS(v,"tspan");a.textContent=
122
+ "\u200b";w(a,{dy:d,x:e});h.insertBefore(a,g)})}},t=function(a){[].slice.call(a.childNodes).forEach(function(e){e.nodeType===E.Node.TEXT_NODE?h(e,a):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(c.actualWidth=0),t(e))})};t(c.element)}};h.prototype.getLineHeight=function(a){var c;a=a.nodeType===E.Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(c=a&&/(px|em)$/.test(a.style.fontSize)?a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),
123
+ 10):this.renderer.fontMetrics(c,a||this.svgElement.element).h};h.prototype.modifyTree=function(a){var c=this,e=function(g,b){var h=g.tagName,t=c.renderer.styledMode,p=g.attributes||{};if("b"===h||"strong"===h)t?p["class"]="highcharts-strong":p.style="font-weight:bold;"+(p.style||"");else if("i"===h||"em"===h)t?p["class"]="highcharts-emphasized":p.style="font-style:italic;"+(p.style||"");k(p.style)&&(p.style=p.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===h&&(p["class"]="highcharts-br",g.textContent=
124
+ "\u200b",(b=a[b+1])&&b.textContent&&(b.textContent=b.textContent.replace(/^ +/gm,"")));"#text"!==h&&"a"!==h&&(g.tagName="tspan");g.attributes=p;g.children&&g.children.filter(function(a){return"#text"!==a.tagName}).forEach(e)};a.forEach(e)};h.prototype.truncate=function(a,c,e,g,b,h){var t=this.svgElement,p=t.renderer,D=t.rotation,n=[],f=e?1:0,q=(c||e||"").length,d=q,z,l=function(d,f){f=f||d;var l=a.parentNode;if(l&&"undefined"===typeof n[f])if(l.getSubStringLength)try{n[f]=g+l.getSubStringLength(0,
125
+ e?f+1:f)}catch(N){""}else p.getSpanWidth&&(a.textContent=h(c||e,d),n[f]=g+p.getSpanWidth(t,a));return n[f]};t.rotation=0;var y=l(a.textContent.length);if(g+y>b){for(;f<=q;)d=Math.ceil((f+q)/2),e&&(z=h(e,d)),y=l(d,z&&z.length-1),f===q?f=q+1:y>b?q=d-1:f=d;0===q?a.textContent="":c&&q===c.length-1||(a.textContent=z||h(c||e,d))}e&&e.splice(0,d);t.actualWidth=y;t.rotation=D};h.prototype.unescapeEntities=function(a,c){r(this.renderer.escapes,function(e,g){c&&-1!==c.indexOf(e)||(a=a.toString().replace(new RegExp(e,
126
+ "g"),g))});return a};return h}()});F(b,"Core/Renderer/SVG/SVGRenderer.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGLabel.js"],b["Core/Renderer/SVG/Symbols.js"],b["Core/Renderer/SVG/TextBuilder.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k,r){var m=A.charts,h=A.deg2rad,a=A.doc,c=A.isFirefox,e=A.isMS,g=A.isWebKit,C=A.noop,y=A.SVG_NS,t=A.symbolSizes,p=A.win,
127
+ D=r.addEvent,n=r.attr,f=r.createElement,q=r.css,d=r.defined,z=r.destroyObjectProperties,l=r.extend,G=r.isArray,K=r.isNumber,I=r.isObject,H=r.isString,N=r.merge,x=r.pick,Q=r.pInt,S=r.uniqueKey,X;A=function(){function y(a,d,c,f,l,e,q){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(a,d,c,f,l,e,q)}y.prototype.init=function(d,f,l,e,g,
128
+ b,z){var h=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),t=h.element;z||h.css(this.getStyle(e));d.appendChild(t);n(d,"dir","ltr");-1===d.innerHTML.indexOf("xmlns")&&n(t,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=t;this.boxWrapper=h;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 9.3.1"));this.defs=this.createElement("defs").add();this.allowHTML=b;this.forExport=g;this.styledMode=
129
+ z;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(f,l,!1);var y;c&&d.getBoundingClientRect&&(f=function(){q(d,{left:0,top:0});y=d.getBoundingClientRect();q(d,{left:Math.ceil(y.left)-y.left+"px",top:Math.ceil(y.top)-y.top+"px"})},f(),this.unSubPixelFix=D(p,"resize",f))};y.prototype.definition=function(a){return(new b([a])).addToDOM(this.defs.element)};y.prototype.getReferenceURL=function(){if((c||g)&&a.getElementsByTagName("base").length){if(!d(X)){var f=S();f=(new b([{tagName:"svg",
130
+ attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:f},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+f+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(a.body);q(f,{position:"fixed",top:0,left:0,zIndex:9E5});var l=a.elementFromPoint(6,6);X="hitme"===(l&&l.id);a.body.removeChild(f)}if(X)return p.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,
131
+ "\\$1").replace(/ /g,"%20")}return""};y.prototype.getStyle=function(a){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)};y.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};y.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};y.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();z(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());
132
+ this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};y.prototype.createElement=function(a){var d=new this.Element;d.init(this,a);return d};y.prototype.getRadialAttr=function(a,d){return{cx:a[0]-a[2]/2+(d.cx||0)*a[2],cy:a[1]-a[2]/2+(d.cy||0)*a[2],r:(d.r||0)*a[2]}};y.prototype.buildText=function(a){(new k(a)).buildSVG()};y.prototype.getContrast=function(a){a=u.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"};y.prototype.button=function(a,d,
133
+ c,f,q,g,n,p,z,h){var t=this.label(a,d,c,z,void 0,void 0,h,void 0,"button"),y=this.styledMode,k=0,G=q?N(q):{};a=G&&G.style||{};G=b.filterUserAttributes(G);t.attr(N({padding:8,r:2},G));if(!y){G=N({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:a},G);var m=G.style;delete G.style;g=N(G,{fill:"#e6e6e6"},b.filterUserAttributes(g||{}));var L=g.style;delete g.style;n=N(G,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(n||
134
+ {}));var C=n.style;delete n.style;p=N(G,{style:{color:"#cccccc"}},b.filterUserAttributes(p||{}));var P=p.style;delete p.style}D(t.element,e?"mouseover":"mouseenter",function(){3!==k&&t.setState(1)});D(t.element,e?"mouseout":"mouseleave",function(){3!==k&&t.setState(k)});t.setState=function(a){1!==a&&(t.state=k=a);t.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);y||t.attr([G,g,n,p][a||0]).css([m,L,C,P][a||
135
+ 0])};y||t.attr(G).css(l({cursor:"default"},m));return t.on("touchstart",function(a){return a.stopPropagation()}).on("click",function(a){3!==k&&f.call(t,a)})};y.prototype.crispLine=function(a,c,f){void 0===f&&(f="round");var l=a[0],e=a[1];d(l[1])&&l[1]===e[1]&&(l[1]=e[1]=Math[f](l[1])-c%2/2);d(l[2])&&l[2]===e[2]&&(l[2]=e[2]=Math[f](l[2])+c%2/2);return a};y.prototype.path=function(a){var d=this.styledMode?{}:{fill:"none"};G(a)?d.d=a:I(a)&&l(d,a);return this.createElement("path").attr(d)};y.prototype.circle=
136
+ function(a,d,c){a=I(a)?a:"undefined"===typeof a?{}:{x:a,y:d,r:c};d=this.createElement("circle");d.xSetter=d.ySetter=function(a,d,c){c.setAttribute("c"+d,a)};return d.attr(a)};y.prototype.arc=function(a,d,c,f,l,e){I(a)?(f=a,d=f.y,c=f.r,a=f.x):f={innerR:f,start:l,end:e};a=this.symbol("arc",a,d,c,c,f);a.r=c;return a};y.prototype.rect=function(a,d,c,f,l,e){l=I(a)?a.r:l;var q=this.createElement("rect");a=I(a)?a:"undefined"===typeof a?{}:{x:a,y:d,width:Math.max(c,0),height:Math.max(f,0)};this.styledMode||
137
+ ("undefined"!==typeof e&&(a["stroke-width"]=e,a=q.crisp(a)),a.fill="none");l&&(a.r=l);q.rSetter=function(a,d,c){q.r=a;n(c,{rx:a,ry:a})};q.rGetter=function(){return q.r||0};return q.attr(a)};y.prototype.setSize=function(a,d,c){this.width=a;this.height=d;this.boxWrapper.animate({width:a,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:x(c,!0)?void 0:0});this.alignElements()};y.prototype.g=function(a){var d=this.createElement("g");return a?d.attr({"class":"highcharts-"+
138
+ a}):d};y.prototype.image=function(a,d,c,f,l,e){var q={preserveAspectRatio:"none"},g=function(a,d){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink","href",d):a.setAttribute("hc-svg-href",d)};K(d)&&(q.x=d);K(c)&&(q.y=c);K(f)&&(q.width=f);K(l)&&(q.height=l);var b=this.createElement("image").attr(q);d=function(d){g(b.element,a);e.call(b,d)};e?(g(b.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),c=new p.Image,D(c,"load",d),c.src=a,c.complete&&d({})):
139
+ g(b.element,a);return b};y.prototype.symbol=function(c,e,g,b,n,p){var z=this,h=/^url\((.*?)\)$/,y=h.test(c),D=!y&&(this.symbols[c]?c:"circle"),G=D&&this.symbols[D],k;if(G){"number"===typeof e&&(k=G.call(this.symbols,Math.round(e||0),Math.round(g||0),b||0,n||0,p));var C=this.path(k);z.styledMode||C.attr("fill","none");l(C,{symbolName:D||void 0,x:e,y:g,width:b,height:n});p&&l(C,p)}else if(y){var L=c.match(h)[1];var P=C=this.image(L);P.imgwidth=x(t[L]&&t[L].width,p&&p.width);P.imgheight=x(t[L]&&t[L].height,
140
+ p&&p.height);var K=function(a){return a.attr({width:a.width,height:a.height})};["width","height"].forEach(function(a){P[a+"Setter"]=function(a,c){var f=this["img"+c];this[c]=a;d(f)&&(p&&"within"===p.backgroundSize&&this.width&&this.height&&(f=Math.round(f*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(c,f),this.alignByTranslate||(a=((this[c]||0)-f)/2,this.attr("width"===c?{translateX:a}:{translateY:a})))}});d(e)&&P.attr({x:e,y:g});P.isImg=!0;
141
+ d(P.imgwidth)&&d(P.imgheight)?K(P):(P.attr({width:0,height:0}),f("img",{onload:function(){var d=m[z.chartIndex];0===this.width&&(q(this,{position:"absolute",top:"-999em"}),a.body.appendChild(this));t[L]={width:this.width,height:this.height};P.imgwidth=this.width;P.imgheight=this.height;P.element&&K(P);this.parentNode&&this.parentNode.removeChild(this);z.imgCount--;if(!z.imgCount&&d&&!d.hasLoaded)d.onload()},src:L}),this.imgCount++)}return C};y.prototype.clipRect=function(a,d,c,f){var l=S()+"-",e=
142
+ this.createElement("clipPath").attr({id:l}).add(this.defs);a=this.rect(a,d,c,f,0).add(e);a.id=l;a.clipPath=e;a.count=0;return a};y.prototype.text=function(a,c,f,l){var e={};if(l&&(this.allowHTML||!this.forExport))return this.html(a,c,f);e.x=Math.round(c||0);f&&(e.y=Math.round(f));d(a)&&(e.text=a);a=this.createElement("text").attr(e);if(!l||this.forExport&&!this.allowHTML)a.xSetter=function(a,d,c){for(var f=c.getElementsByTagName("tspan"),l=c.getAttribute(d),e=0,q;e<f.length;e++)q=f[e],q.getAttribute(d)===
143
+ l&&q.setAttribute(d,a);c.setAttribute(d,a)};return a};y.prototype.fontMetrics=function(a,d){a=!this.styledMode&&/px/.test(a)||!p.getComputedStyle?a||d&&d.style&&d.style.fontSize||this.style&&this.style.fontSize:d&&v.prototype.getStyle.call(d,"font-size");a=/px/.test(a)?Q(a):12;d=24>a?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}};y.prototype.rotCorr=function(a,d,c){var f=a;d&&c&&(f=Math.max(f*Math.cos(d*h),4));return{x:-a/3*Math.sin(d*h),y:f}};y.prototype.pathToSegments=function(a){for(var d=
144
+ [],c=[],f={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l<a.length;l++)H(c[0])&&K(a[l])&&c.length===f[c[0].toUpperCase()]&&a.splice(l,0,c[0].replace("M","L").replace("m","l")),"string"===typeof a[l]&&(c.length&&d.push(c.slice(0)),c.length=0),c.push(a[l]);d.push(c.slice(0));return d};y.prototype.label=function(a,d,c,f,l,e,q,g,b){return new E(this,a,d,c,f,l,e,q,g,b)};y.prototype.alignElements=function(){this.alignedObjects.forEach(function(a){return a.align()})};return y}();l(A.prototype,{Element:v,SVG_NS:y,
145
+ escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:w,draw:C});B.registerRendererType("svg",A,!0);"";return A});F(b,"Core/Renderer/HTML/HTMLElement.js",[b["Core/Globals.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(c,e)};return function(c,
146
+ e){function b(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(b.prototype=e.prototype,new b)}}(),v=b.isFirefox,E=b.isMS,w=b.isWebKit,k=b.win,r=A.css,m=A.defined,h=A.extend,a=A.pick,c=A.pInt;return function(e){function b(){return null!==e&&e.apply(this,arguments)||this}x(b,e);b.compose=function(a){if(-1===b.composedClasses.indexOf(a)){b.composedClasses.push(a);var c=b.prototype,e=a.prototype;e.getSpanCorrection=c.getSpanCorrection;e.htmlCss=c.htmlCss;e.htmlGetBBox=c.htmlGetBBox;
147
+ e.htmlUpdateTransform=c.htmlUpdateTransform;e.setSpanRotation=c.setSpanRotation}return a};b.prototype.getSpanCorrection=function(a,c,e){this.xCorr=-a*e;this.yCorr=-c};b.prototype.htmlCss=function(c){var e="SPAN"===this.element.tagName&&c&&"width"in c,b=a(e&&c.width,void 0);if(e){delete c.width;this.textWidth=b;var g=!0}c&&"ellipsis"===c.textOverflow&&(c.whiteSpace="nowrap",c.overflow="hidden");this.styles=h(this.styles,c);r(this.element,c);g&&this.htmlUpdateTransform();return this};b.prototype.htmlGetBBox=
148
+ 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=this.renderer,e=this.element,b=this.translateX||0,g=this.translateY||0,h=this.x||0,n=this.y||0,f=this.textAlign||"left",q={left:0,center:.5,right:1}[f],d=this.styles;d=d&&d.whiteSpace;r(e,{marginLeft:b,marginTop:g});!a.styledMode&&this.shadows&&this.shadows.forEach(function(a){r(a,{marginLeft:b+1,marginTop:g+1})});this.inverted&&
149
+ [].forEach.call(e.childNodes,function(d){a.invertChild(d,e)});if("SPAN"===e.tagName){var z=this.rotation,l=this.textWidth&&c(this.textWidth),G=[z,f,e.innerHTML,this.textWidth,this.textAlign].join(),k=void 0;k=!1;if(l!==this.oldTextWidth){if(this.textPxLength)var I=this.textPxLength;else r(e,{width:"",whiteSpace:d||"nowrap"}),I=e.offsetWidth;(l>this.oldTextWidth||I>l)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(r(e,{width:I>l||z?l+"px":"auto",display:"block",whiteSpace:d||
150
+ "normal"}),this.oldTextWidth=l,k=!0)}this.hasBoxWidthChanged=k;G!==this.cTT&&(k=a.fontMetrics(e.style.fontSize,e).b,!m(z)||z===(this.oldRotation||0)&&f===this.oldAlign||this.setSpanRotation(z,q,k),this.getSpanCorrection(!m(z)&&this.textPxLength||e.offsetWidth,k,q,z,f));r(e,{left:h+(this.xCorr||0)+"px",top:n+(this.yCorr||0)+"px"});this.cTT=G;this.oldRotation=z;this.oldAlign=f}}else this.alignOnAdd=!0};b.prototype.setSpanRotation=function(a,c,e){var b={},g=E&&!/Edge/.test(k.navigator.userAgent)?"-ms-transform":
151
+ w?"-webkit-transform":v?"MozTransform":k.opera?"-o-transform":void 0;g&&(b[g]=b.transform="rotate("+a+"deg)",b[g+(v?"Origin":"-origin")]=b.transformOrigin=100*c+"% "+e+"px",r(this.element,b))};b.composedClasses=[];return b}(u)});F(b,"Core/Renderer/HTML/HTMLRenderer.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,u,A,B){var x=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||
152
+ {__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),E=B.attr,w=B.createElement,k=B.extend,r=B.pick;return function(m){function h(){return null!==m&&m.apply(this,arguments)||this}x(h,m);h.compose=function(a){-1===h.composedClasses.indexOf(a)&&(h.composedClasses.push(a),a.prototype.html=
153
+ h.prototype.html);return a};h.prototype.html=function(a,c,e){var g=this.createElement("span"),h=g.element,y=g.renderer,t=y.isSVG,p=function(a,c){["opacity","visibility"].forEach(function(f){a[f+"Setter"]=function(e,d,b){var l=a.div?a.div.style:c;u.prototype[f+"Setter"].call(this,e,d,b);l&&(l[d]=e)}});a.addedSetters=!0};g.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,b.setElementHTML(this.element,r(a,"")),this.textStr=a,g.doTransform=!0)};t&&p(g,g.element.style);
154
+ g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(a,c){"align"===c?g.alignValue=g.textAlign=a:g[c]=a;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};g.attr({text:a,x:Math.round(c),y:Math.round(e)}).css({position:"absolute"});y.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});h.style.whiteSpace="nowrap";g.css=g.htmlCss;t&&(g.add=function(a){var c=y.box.parentNode,f=[];if(this.parentGroup=a){var e=
155
+ a.div;if(!e){for(;a;)f.push(a),a=a.parentGroup;f.reverse().forEach(function(a){function d(d,c){a[c]=d;"translateX"===c?q.left=d+"px":q.top=d+"px";a.doTransform=!0}var l=E(a.element,"class"),b=a.styles||{};e=a.div=a.div||w("div",l?{className:l}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,cursor:b.cursor,pointerEvents:b.pointerEvents,visibility:a.visibility},e||c);var q=e.style;k(a,{classSetter:function(a){return function(d){this.element.setAttribute("class",
156
+ d);a.className=d}}(e),on:function(){f[0].div&&g.on.apply({element:f[0].div,onEvents:a.onEvents},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||p(a)})}}else e=c;e.appendChild(h);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};h.composedClasses=[];return h}(A)});F(b,"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",
157
+ 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,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,
158
+ 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,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",
159
+ 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",formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",
160
+ 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||(b={}));return b});F(b,"Core/Foundation.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,A=b.isFunction,B=b.objectEach,v=b.removeEvent,
161
+ E;(function(b){b.registerEventOptions=function(b,r){b.eventOptions=b.eventOptions||{};B(r.events,function(k,h){b.eventOptions[h]!==k&&(b.eventOptions[h]&&(v(b,h,b.eventOptions[h]),delete b.eventOptions[h]),A(k)&&(b.eventOptions[h]=k,x(b,h,k)))})}})(E||(E={}));return E});F(b,"Core/Axis/Tick.js",[b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A){var x=u.deg2rad,v=A.clamp,E=A.correctFloat,w=A.defined,k=A.destroyObjectProperties,r=A.extend,m=A.fireEvent,h=A.isNumber,
162
+ a=A.merge,c=A.objectEach,e=A.pick;u=function(){function g(a,c,e,b,g){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=c;this.type=e||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;m(this,"init");e||b||this.addLabel()}g.prototype.addLabel=function(){var a=this,c=a.axis,g=c.options,p=c.chart,k=c.categories,n=c.logarithmic,f=c.names,q=a.pos,d=e(a.options&&a.options.labels,g.labels),z=c.tickPositions,l=q===z[0],G=q===z[z.length-1],K=
163
+ (!d.step||1===d.step)&&1===c.tickInterval;z=z.info;var I=a.label,H;k=this.parameters.category||(k?e(k[q],f[q],q):q);n&&h(k)&&(k=E(n.lin2log(k)));if(c.dateTime)if(z){var N=p.time.resolveDTLFormat(g.dateTimeLabelFormats[!g.grid&&z.higherRanks[q]||z.unitName]);var x=N.main}else h(k)&&(x=c.dateTime.getXDateFormat(k,g.dateTimeLabelFormats||{}));a.isFirst=l;a.isLast=G;var u={axis:c,chart:p,dateTimeLabelFormat:x,isFirst:l,isLast:G,pos:q,tick:a,tickPositionInfo:z,value:k};m(this,"labelFormat",u);var v=function(a){return d.formatter?
164
+ d.formatter.call(a,a):d.format?(a.text=c.defaultLabelFormatter.call(a),b.format(d.format,a,p)):c.defaultLabelFormatter.call(a,a)};g=v.call(u,u);var A=N&&N.list;a.shortenLabel=A?function(){for(H=0;H<A.length;H++)if(r(u,{dateTimeLabelFormat:A[H]}),I.attr({text:v.call(u,u)}),I.getBBox().width<c.getSlotWidth(a)-2*d.padding)return;I.attr({text:""})}:void 0;K&&c._addedPlotLB&&a.moveLabel(g,d);w(I)||a.movedLabel?I&&I.textStr!==g&&!K&&(!I.textWidth||d.style.width||I.styles.width||I.css({width:null}),I.attr({text:g}),
165
+ I.textPxLength=I.getBBox().width):(a.label=I=a.createLabel({x:0,y:0},g,d),a.rotation=0)};g.prototype.createLabel=function(c,e,b){var g=this.axis,h=g.chart;if(c=w(e)&&b.enabled?h.renderer.text(e,c.x,c.y,b.useHTML).add(g.labelGroup):null)h.styledMode||c.css(a(b.style)),c.textPxLength=c.getBBox().width;return c};g.prototype.destroy=function(){k(this,this.axis)};g.prototype.getPosition=function(a,c,e,b){var g=this.axis,n=g.chart,f=b&&n.oldChartHeight||n.chartHeight;a={x:a?E(g.translate(c+e,null,null,
166
+ b)+g.transB):g.left+g.offset+(g.opposite?(b&&n.oldChartWidth||n.chartWidth)-g.right-g.left:0),y:a?f-g.bottom+g.offset-(g.opposite?g.height:0):E(f-g.translate(c+e,null,null,b)-g.transB)};a.y=v(a.y,-1E5,1E5);m(this,"afterGetPosition",{pos:a});return a};g.prototype.getLabelPosition=function(a,c,e,b,g,n,f,q){var d=this.axis,p=d.transA,l=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,h=d.staggerLines,t=d.tickRotCorr||{x:0,y:0},k=b||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?
167
+ .5:1),y={},D=g.y;w(D)||(D=0===d.side?e.rotation?-8:-e.getBBox().height:2===d.side?t.y+8:Math.cos(e.rotation*x)*(t.y-e.getBBox(!1,0).height/2));a=a+g.x+k+t.x-(n&&b?n*p*(l?-1:1):0);c=c+D-(n&&!b?n*p*(l?1:-1):0);h&&(e=f/(q||1)%h,d.opposite&&(e=h-e-1),c+=d.labelOffset/h*e);y.x=a;y.y=Math.round(c);m(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:n,index:f});return y};g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};g.prototype.getMarkPath=
168
+ function(a,c,e,b,g,n){return n.crispLine([["M",a,c],["L",a+(g?0:-e),c+(g?e:0)]],b)};g.prototype.handleOverflow=function(a){var c=this.axis,b=c.options.labels,g=a.x,h=c.chart.chartWidth,n=c.chart.spacing,f=e(c.labelLeft,Math.min(c.pos,n[3]));n=e(c.labelRight,Math.max(c.isRadial?0:c.pos+c.len,h-n[1]));var q=this.label,d=this.rotation,z={left:0,center:.5,right:1}[c.labelAlign||q.attr("align")],l=q.getBBox().width,k=c.getSlotWidth(this),m={},I=k,H=1,r;if(d||"justify"!==b.overflow)0>d&&g-z*l<f?r=Math.round(g/
169
+ Math.cos(d*x)-f):0<d&&g+z*l>n&&(r=Math.round((h-g)/Math.cos(d*x)));else if(h=g+(1-z)*l,g-z*l<f?I=a.x+I*(1-z)-f:h>n&&(I=n-a.x+I*z,H=-1),I=Math.min(k,I),I<k&&"center"===c.labelAlign&&(a.x+=H*(k-I-z*(k-Math.min(l,I)))),l>I||c.autoRotation&&(q.styles||{}).width)r=I;r&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(r)+"px",(b.style||{}).textOverflow||(m.textOverflow="ellipsis"),q.css(m)))};g.prototype.moveLabel=function(a,e){var b=this,g=b.label,h=b.axis,n=h.reversed,f=!1;g&&g.textStr===a?
170
+ (b.movedLabel=g,f=!0,delete b.label):c(h.ticks,function(d){f||d.isNew||d===b||!d.label||d.label.textStr!==a||(b.movedLabel=d.label,f=!0,d.labelPos=b.movedLabel.xy,delete d.label)});if(!f&&(b.labelPos||g)){var q=b.labelPos||g.xy;g=h.horiz?n?0:h.width+h.left:q.x;h=h.horiz?q.y:n?h.width+h.left:0;b.movedLabel=b.createLabel({x:g,y:h},a,e);b.movedLabel&&b.movedLabel.attr({opacity:0})}};g.prototype.render=function(a,c,b){var g=this.axis,h=g.horiz,n=this.pos,f=e(this.tickmarkOffset,g.tickmarkOffset);n=this.getPosition(h,
171
+ n,f,c);f=n.x;var q=n.y;g=h&&f===g.pos+g.len||!h&&q===g.pos?-1:1;h=e(b,this.label&&this.label.newOpacity,1);b=e(b,1);this.isActive=!0;this.renderGridLine(c,b,g);this.renderMark(n,b,g);this.renderLabel(n,c,h,a);this.isNew=!1;m(this,"afterRender")};g.prototype.renderGridLine=function(a,c,b){var g=this.axis,h=g.options,n={},f=this.pos,q=this.type,d=e(this.tickmarkOffset,g.tickmarkOffset),z=g.chart.renderer,l=this.gridLine,k=h.gridLineWidth,t=h.gridLineColor,m=h.gridLineDashStyle;"minor"===this.type&&
172
+ (k=h.minorGridLineWidth,t=h.minorGridLineColor,m=h.minorGridLineDashStyle);l||(g.chart.styledMode||(n.stroke=t,n["stroke-width"]=k||0,n.dashstyle=m),q||(n.zIndex=1),a&&(c=0),this.gridLine=l=z.path().attr(n).addClass("highcharts-"+(q?q+"-":"")+"grid-line").add(g.gridGroup));if(l&&(b=g.getPlotLinePath({value:f+d,lineWidth:l.strokeWidth()*b,force:"pass",old:a})))l[a||this.isNew?"attr":"animate"]({d:b,opacity:c})};g.prototype.renderMark=function(a,c,b){var g=this.axis,h=g.options,n=g.chart.renderer,f=
173
+ this.type,q=g.tickSize(f?f+"Tick":"tick"),d=a.x;a=a.y;var z=e(h["minor"!==f?"tickWidth":"minorTickWidth"],!f&&g.isXAxis?1:0);h=h["minor"!==f?"tickColor":"minorTickColor"];var l=this.mark,k=!l;q&&(g.opposite&&(q[0]=-q[0]),l||(this.mark=l=n.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(g.axisGroup),g.chart.styledMode||l.attr({stroke:h,"stroke-width":z})),l[k?"attr":"animate"]({d:this.getMarkPath(d,a,q[0],l.strokeWidth()*b,g.horiz,n),opacity:c}))};g.prototype.renderLabel=function(a,c,b,g){var p=
174
+ this.axis,n=p.horiz,f=p.options,q=this.label,d=f.labels,z=d.step;p=e(this.tickmarkOffset,p.tickmarkOffset);var l=a.x;a=a.y;var k=!0;q&&h(l)&&(q.xy=a=this.getLabelPosition(l,a,q,n,d,p,g,z),this.isFirst&&!this.isLast&&!f.showFirstLabel||this.isLast&&!this.isFirst&&!f.showLastLabel?k=!1:!n||d.step||d.rotation||c||0===b||this.handleOverflow(a),z&&g%z&&(k=!1),k&&h(a.y)?(a.opacity=b,q[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(q.attr("y",-9999),this.isNewLabel=!0))};g.prototype.replaceMovedLabel=
175
+ function(){var a=this.label,c=this.axis,e=c.reversed;if(a&&!this.isNew){var b=c.horiz?e?c.left:c.width+c.left:a.xy.x;e=c.horiz?a.xy.y:e?c.width+c.top:c.top;a.animate({x:b,y:e,opacity:0},void 0,a.destroy);delete this.label}c.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return g}();"";return u});F(b,"Core/Axis/Axis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/AxisDefaults.js"],b["Core/Color/Color.js"],b["Core/DefaultOptions.js"],b["Core/Foundation.js"],b["Core/Globals.js"],
176
+ b["Core/Axis/Tick.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k){var r=b.animObject,m=B.defaultOptions,h=v.registerEventOptions,a=E.deg2rad,c=k.arrayMax,e=k.arrayMin,g=k.clamp,C=k.correctFloat,y=k.defined,t=k.destroyObjectProperties,p=k.erase,D=k.error,n=k.extend,f=k.fireEvent,q=k.getMagnitude,d=k.isArray,z=k.isNumber,l=k.isString,G=k.merge,K=k.normalizeTickInterval,I=k.objectEach,H=k.pick,N=k.relativeLength,x=k.removeEvent,Q=k.splat,S=k.syncTimeout;b=function(){function b(a,c){this.zoomEnabled=
177
+ 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=this.minorTickInterval=this.min=this.maxLabelLength=
178
+ this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a,c)}b.prototype.init=function(a,c){var d=c.isX;this.chart=a;this.horiz=a.inverted&&!this.isZAxis?!d:d;this.isXAxis=d;this.coll=this.coll||(d?"xAxis":"yAxis");f(this,"init",{userOptions:c});this.opposite=H(c.opposite,this.opposite);this.side=H(c.side,
179
+ this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(c);var l=this.options,b=l.labels,e=l.type;this.userOptions=c;this.minPixelPadding=0;this.reversed=H(l.reversed,this.reversed);this.visible=l.visible;this.zoomEnabled=l.zoomEnabled;this.hasNames="category"===e||!0===l.categories;this.categories=l.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=y(l.linkedTo);this.ticks=
180
+ {};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l.minRange||l.maxZoom;this.range=l.range;this.offset=l.offset||0;this.min=this.max=null;c=H(l.crosshair,Q(a.options.tooltip.crosshairs)[d?0:1]);this.crosshair=!0===c?{}:c;-1===a.axes.indexOf(this)&&(d?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&!this.isZAxis&&d&&"undefined"===typeof this.reversed&&
181
+ (this.reversed=!0);this.labelRotation=z(b.rotation)?b.rotation:void 0;h(this,l);f(this,"afterInit")};b.prototype.setOptions=function(a){this.options=G(u.defaultXAxisOptions,"yAxis"===this.coll&&u.defaultYAxisOptions,[u.defaultTopAxisOptions,u.defaultRightAxisOptions,u.defaultBottomAxisOptions,u.defaultLeftAxisOptions][this.side],G(m[this.coll],a));f(this,"afterSetOptions",{userOptions:a})};b.prototype.defaultLabelFormatter=function(a){var c=this.axis;a=this.chart.numberFormatter;var d=z(this.value)?
182
+ this.value:NaN,f=c.chart.time,l=this.dateTimeLabelFormat,b=m.lang,e=b.numericSymbols;b=b.numericSymbolMagnitude||1E3;var g=c.logarithmic?Math.abs(d):c.tickInterval,q=e&&e.length;if(c.categories)var n=""+this.value;else if(l)n=f.dateFormat(l,d);else if(q&&1E3<=g)for(;q--&&"undefined"===typeof n;)c=Math.pow(b,q+1),g>=c&&0===10*d%c&&null!==e[q]&&0!==d&&(n=a(d/c,-1)+e[q]);"undefined"===typeof n&&(n=1E4<=Math.abs(d)?a(d,-1):a(d,-1,void 0,""));return n};b.prototype.getSeriesExtremes=function(){var a=this,
183
+ c=a.chart,d;f(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.stacking&&a.stacking.buildStacks();a.series.forEach(function(f){if(f.visible||!c.options.chart.ignoreHiddenSeries){var l=f.options,b=l.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=b&&(b=null);if(a.isXAxis){if(l=f.xData,l.length){l=a.logarithmic?l.filter(a.validatePositiveValue):l;d=f.getXExtremes(l);var e=d.min;var g=d.max;z(e)||e instanceof Date||
184
+ (l=l.filter(z),d=f.getXExtremes(l),e=d.min,g=d.max);l.length&&(a.dataMin=Math.min(H(a.dataMin,e),e),a.dataMax=Math.max(H(a.dataMax,g),g))}}else if(f=f.applyExtremes(),z(f.dataMin)&&(e=f.dataMin,a.dataMin=Math.min(H(a.dataMin,e),e)),z(f.dataMax)&&(g=f.dataMax,a.dataMax=Math.max(H(a.dataMax,g),g)),y(b)&&(a.threshold=b),!l.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});f(this,"afterGetSeriesExtremes")};b.prototype.translate=function(a,c,d,f,l,b){var e=this.linkedParent||this,g=f&&e.old?
185
+ e.old.min:e.min,q=e.minPixelPadding;l=(e.isOrdinal||e.brokenAxis&&e.brokenAxis.hasBreaks||e.logarithmic&&l)&&e.lin2val;var n=1,h=0;f=f&&e.old?e.old.transA:e.transA;f||(f=e.transA);d&&(n*=-1,h=e.len);e.reversed&&(n*=-1,h-=n*(e.sector||e.len));c?(a=(a*n+h-q)/f+g,l&&(a=e.lin2val(a))):(l&&(a=e.val2lin(a)),a=z(g)?n*(a-g)*f+h+n*q+(z(b)?f*b:0):void 0);return a};b.prototype.toPixels=function(a,c){return this.translate(a,!1,!this.horiz,null,!0)+(c?0:this.pos)};b.prototype.toValue=function(a,c){return this.translate(a-
186
+ (c?0:this.pos),!0,!this.horiz,null,!0)};b.prototype.getPlotLinePath=function(a){function c(a,c,d){if("pass"!==m&&a<c||a>d)m?a=g(a,c,d):r=!0;return a}var d=this,l=d.chart,e=d.left,b=d.top,q=a.old,n=a.value,h=a.lineWidth,p=q&&l.oldChartHeight||l.chartHeight,k=q&&l.oldChartWidth||l.chartWidth,t=d.transB,G=a.translatedValue,m=a.force,y,D,K,I,r;a={value:n,lineWidth:h,old:q,force:m,acrossPanes:a.acrossPanes,translatedValue:G};f(this,"getPlotLinePath",a,function(a){G=H(G,d.translate(n,null,null,q));G=g(G,
187
+ -1E5,1E5);y=K=Math.round(G+t);D=I=Math.round(p-G-t);z(G)?d.horiz?(D=b,I=p-d.bottom,y=K=c(y,e,e+d.width)):(y=e,K=k-d.right,D=I=c(D,b,b+d.height)):(r=!0,m=!1);a.path=r&&!m?null:l.renderer.crispLine([["M",y,D],["L",K,I]],h||1)});return a.path};b.prototype.getLinearTickPositions=function(a,c,d){var f=C(Math.floor(c/a)*a);d=C(Math.ceil(d/a)*a);var l=[],e;C(f+a)===f&&(e=20);if(this.single)return[c];for(c=f;c<=d;){l.push(c);c=C(c+a,e);if(c===b)break;var b=c}return l};b.prototype.getMinorTickInterval=function(){var a=
188
+ this.options;return!0===a.minorTicks?H(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};b.prototype.getMinorTickPositions=function(){var a=this.options,c=this.tickPositions,d=this.minorTickInterval,f=this.pointRangePadding||0,l=this.min-f;f=this.max+f;var e=f-l,b=[];if(e&&e/d<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(a,c,f){c&&b.push.apply(b,g.getLogTickPositions(d,f[c-1],f[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())b=
189
+ b.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(d),l,f,a.startOfWeek));else for(a=l+(c[0]-l)%d;a<=f&&a!==b[0];a+=d)b.push(a)}0!==b.length&&this.trimTicks(b);return b};b.prototype.adjustForMinRange=function(){var a=this.options,d=this.logarithmic,f=this.min,l=this.max,b=0,g,q,n,h;this.isXAxis&&"undefined"===typeof this.minRange&&!d&&(y(a.min)||y(a.max)||y(a.floor)||y(a.ceiling)?this.minRange=null:(this.series.forEach(function(a){n=a.xData;h=a.xIncrement?1:n.length-1;if(1<n.length)for(g=
190
+ h;0<g;g--)if(q=n[g]-n[g-1],!b||q<b)b=q}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(l-f<this.minRange){var z=this.dataMax-this.dataMin>=this.minRange;var p=this.minRange;var k=(p-l+f)/2;k=[f-k,H(a.min,f-k)];z&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f=c(k);l=[f+p,H(a.max,f+p)];z&&(l[2]=d?d.log2lin(this.dataMax):this.dataMax);l=e(l);l-f<p&&(k[0]=l-p,k[1]=H(a.min,l-p),f=c(k))}this.min=f;this.max=l};b.prototype.getClosest=function(){var a;this.categories?
191
+ a=1:this.series.forEach(function(c){var d=c.closestPointRange,f=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&y(d)&&f&&(a=y(a)?Math.min(a,d):d)});return a};b.prototype.nameToX=function(a){var c=d(this.categories),f=c?this.categories:this.names,l=a.options.x;a.series.requireSorting=!1;y(l)||(l=this.options.uniqueNames?c?f.indexOf(a.name):H(f.keys[a.name],-1):a.series.autoIncrement());if(-1===l){if(!c)var b=f.length}else b=l;"undefined"!==typeof b&&(this.names[b]=a.name,this.names.keys[a.name]=
192
+ b);return b};b.prototype.updateNames=function(){var a=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(a){delete c.keys[a]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)a.max=Math.max(a.max,c.xData.length-1),c.processData(),c.generatePoints();c.data.forEach(function(d,f){if(d&&d.options&&"undefined"!==typeof d.name){var l=a.nameToX(d);"undefined"!==typeof l&&l!==d.x&&(d.x=l,c.xData[f]=l)}})}))};b.prototype.setAxisTranslation=
193
+ function(){var a=this,c=a.max-a.min,d=a.linkedParent,b=!!a.categories,e=a.isXAxis,g=a.axisPointRange||0,q=0,n=0,h=a.transA;if(e||b||g){var z=a.getClosest();d?(q=d.minPointOffset,n=d.pointRangePadding):a.series.forEach(function(c){var d=b?1:e?H(c.options.pointRange,z,0):a.axisPointRange||0,f=c.options.pointPlacement;g=Math.max(g,d);if(!a.single||b)c=c.is("xrange")?!e:e,q=Math.max(q,c&&l(f)?0:d/2),n=Math.max(n,c&&"on"===f?0:d)});d=a.ordinal&&a.ordinal.slope&&z?a.ordinal.slope/z:1;a.minPointOffset=q*=
194
+ d;a.pointRangePadding=n*=d;a.pointRange=Math.min(g,a.single&&b?1:c);e&&(a.closestPointRange=z)}a.translationSlope=a.transA=h=a.staticScale||a.len/(c+n||1);a.transB=a.horiz?a.left:a.bottom;a.minPixelPadding=h*q;f(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=function(a){var c=this.chart,d=this.logarithmic,l=this.options,b=this.isXAxis,e=this.isLinked,g=l.tickPixelInterval,n=this.categories,h=this.softThreshold,p=l.maxPadding,
195
+ k=l.minPadding,G=z(l.tickInterval)&&0<=l.tickInterval?l.tickInterval:void 0,t=z(this.threshold)?this.threshold:null;this.dateTime||n||e||this.getTickAmount();var m=H(this.userMin,l.min);var I=H(this.userMax,l.max);if(e){this.linkedParent=c[this.coll][l.linkedTo];var r=this.linkedParent.getExtremes();this.min=H(r.min,r.dataMin);this.max=H(r.max,r.dataMax);l.type!==this.linkedParent.options.type&&D(11,1,c)}else{if(h&&y(t))if(this.dataMin>=t)r=t,k=0;else if(this.dataMax<=t){var N=t;p=0}this.min=H(m,
196
+ r,this.dataMin);this.max=H(I,N,this.dataMax)}d&&(this.positiveValuesOnly&&!a&&0>=Math.min(this.min,H(this.dataMin,this.min))&&D(10,1,c),this.min=C(d.log2lin(this.min),16),this.max=C(d.log2lin(this.max),16));this.range&&y(this.max)&&(this.userMin=this.min=m=Math.max(this.dataMin,this.minFromRange()),this.userMax=I=this.max,this.range=null);f(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(n||this.axisPointRange||this.stacking&&this.stacking.usePercentage||
197
+ e)&&y(this.min)&&y(this.max)&&(c=this.max-this.min)&&(!y(m)&&k&&(this.min-=c*k),!y(I)&&p&&(this.max+=c*p));z(this.userMin)||(z(l.softMin)&&l.softMin<this.min&&(this.min=m=l.softMin),z(l.floor)&&(this.min=Math.max(this.min,l.floor)));z(this.userMax)||(z(l.softMax)&&l.softMax>this.max&&(this.max=I=l.softMax),z(l.ceiling)&&(this.max=Math.min(this.max,l.ceiling)));h&&y(this.dataMin)&&(t=t||0,!y(m)&&this.min<t&&this.dataMin>=t?this.min=this.options.minRange?Math.min(t,this.max-this.minRange):t:!y(I)&&
198
+ this.max>t&&this.dataMax<=t&&(this.max=this.options.minRange?Math.max(t,this.min+this.minRange):t));z(this.min)&&z(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:e&&this.linkedParent&&!G&&g===this.linkedParent.options.tickPixelInterval?G=this.linkedParent.tickInterval:H(G,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-
199
+ 1,1):void 0,n?1:(this.max-this.min)*g/Math.max(this.len,g));if(b&&!a){var P=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(a){a.forceCrop=a.forceCropping&&a.forceCropping();a.processData(P)});f(this,"postProcessData",{hasExtemesChanged:P})}this.setAxisTranslation();f(this,"initialAxisTranslation");this.pointRange&&!G&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));a=H(l.minTickInterval,this.dateTime&&!this.series.some(function(a){return a.noSharedTooltip})?
200
+ this.closestPointRange:0);!G&&this.tickInterval<a&&(this.tickInterval=a);this.dateTime||this.logarithmic||G||(this.tickInterval=K(this.tickInterval,void 0,q(this.tickInterval),H(l.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};b.prototype.setTickPositions=function(){var a=this.options,c=a.tickPositions,d=this.getMinorTickInterval(),l=this.hasVerticalPanning(),b="colorAxis"===this.coll,
201
+ e=(b||!l)&&a.startOnTick;l=(b||!l)&&a.endOnTick;b=a.tickPositioner;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&y(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=c&&c.slice();!d&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?
202
+ d=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(d=[this.min,this.max],D(19,!1,this.chart)),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,b&&(b=b.apply(this,
203
+ [this.min,this.max])))&&(this.tickPositions=d=b);this.paddedTicks=d.slice(0);this.trimTicks(d,e,l);this.isLinked||(this.single&&2>d.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5),c||b||this.adjustTickAmount());f(this,"afterSetTickPositions")};b.prototype.trimTicks=function(a,c,d){var l=a[0],b=a[a.length-1],e=!this.isOrdinal&&this.minPointOffset||0;f(this,"trimTicks");if(!this.isLinked){if(c&&-Infinity!==
204
+ l)this.min=l;else for(;this.min-e>a[0];)a.shift();if(d)this.max=b;else for(;this.max+e<a[a.length-1];)a.pop();0===a.length&&y(l)&&!this.options.tickPositions&&a.push((b+l)/2)}};b.prototype.alignToOthers=function(){var a={},c=this.options,d;!1!==this.chart.options.chart.alignTicks&&c.alignTicks&&!1!==c.startOnTick&&!1!==c.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(c){var f=c.options;f=[c.horiz?f.left:f.top,f.width,f.height,f.pane].join();c.series.length&&(a[f]?d=!0:a[f]=1)});
205
+ return d};b.prototype.getTickAmount=function(){var a=this.options,c=a.tickPixelInterval,d=a.tickAmount;!y(a.tickInterval)&&!d&&this.len<c&&!this.isRadial&&!this.logarithmic&&a.startOnTick&&a.endOnTick&&(d=2);!d&&this.alignToOthers()&&(d=Math.ceil(this.len/c)+1);4>d&&(this.finalTickAmt=d,d=5);this.tickAmount=d};b.prototype.adjustTickAmount=function(){var a=this.options,c=this.tickInterval,d=this.tickPositions,f=this.tickAmount,l=this.finalTickAmt,b=d&&d.length,e=H(this.threshold,this.softThreshold?
206
+ 0:null);if(this.hasData()&&z(this.min)&&z(this.max)){if(b<f){for(;d.length<f;)d.length%2||this.min===e?d.push(C(d[d.length-1]+c)):d.unshift(C(d[0]-c));this.transA*=(b-1)/(f-1);this.min=a.startOnTick?d[0]:Math.min(this.min,d[0]);this.max=a.endOnTick?d[d.length-1]:Math.max(this.max,d[d.length-1])}else b>f&&(this.tickInterval*=2,this.setTickPositions());if(y(l)){for(c=a=d.length;c--;)(3===l&&1===c%2||2>=l&&0<c&&c<a-1)&&d.splice(c,1);this.finalTickAmt=void 0}}};b.prototype.setScale=function(){var a=!1,
207
+ c=!1;this.series.forEach(function(d){a=a||d.isDirtyData||d.isDirty;c=c||d.xAxis&&d.xAxis.isDirty||!1});this.setAxisSize();var d=this.len!==(this.old&&this.old.len);d||a||c||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=d||this.min!==(this.old&&this.old.min)||this.max!==
208
+ (this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();a&&this.panningState&&(this.panningState.isDirty=!0);f(this,"afterSetScale")};b.prototype.setExtremes=function(a,c,d,l,b){var e=this,g=e.chart;d=H(d,!0);e.series.forEach(function(a){delete a.kdTree});b=n(b,{min:a,max:c});f(e,"setExtremes",b,function(){e.userMin=a;e.userMax=c;e.eventArgs=b;d&&g.redraw(l)})};b.prototype.zoom=function(a,d){var c=this,l=this.dataMin,b=this.dataMax,e=this.options,g=Math.min(l,H(e.min,l)),q=Math.max(b,
209
+ H(e.max,b));a={newMin:a,newMax:d};f(this,"zoom",a,function(a){var d=a.newMin,f=a.newMax;if(d!==c.min||f!==c.max)c.allowZoomOutside||(y(l)&&(d<g&&(d=g),d>q&&(d=q)),y(b)&&(f<g&&(f=g),f>q&&(f=q))),c.displayBtn="undefined"!==typeof d||"undefined"!==typeof f,c.setExtremes(d,f,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed};b.prototype.setAxisSize=function(){var a=this.chart,d=this.options,c=d.offsets||[0,0,0,0],f=this.horiz,l=this.width=Math.round(N(H(d.width,a.plotWidth-c[3]+c[1]),a.plotWidth)),
210
+ b=this.height=Math.round(N(H(d.height,a.plotHeight-c[0]+c[2]),a.plotHeight)),e=this.top=Math.round(N(H(d.top,a.plotTop+c[0]),a.plotHeight,a.plotTop));d=this.left=Math.round(N(H(d.left,a.plotLeft+c[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-b-e;this.right=a.chartWidth-l-d;this.len=Math.max(f?l:b,0);this.pos=f?d:e};b.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?C(a.lin2log(this.min)):this.min,max:a?C(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,
211
+ userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(a){var d=this.logarithmic,c=d?d.lin2log(this.min):this.min;d=d?d.lin2log(this.max):this.max;null===a||-Infinity===a?a=c:Infinity===a?a=d:c>a?a=c:d<a&&(a=d);return this.translate(a,0,1,0,1)};b.prototype.autoLabelAlign=function(a){var d=(H(a,0)-90*this.side+720)%360;a={align:"center"};f(this,"autoLabelAlign",a,function(a){15<d&&165>d?a.align="right":195<d&&345>d&&(a.align="left")});return a.align};b.prototype.tickSize=function(a){var d=
212
+ this.options,c=H(d["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0),l=d["tick"===a?"tickLength":"minorTickLength"];if(c&&l){"inside"===d[a+"Position"]&&(l=-l);var b=[l,c]}a={tickSize:b};f(this,"afterTickSize",a);return a.tickSize};b.prototype.labelMetrics=function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};b.prototype.unsquish=function(){var d=
213
+ this.options.labels,c=this.horiz,f=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/f),b=d.rotation,e=this.labelMetrics(),g=Math.max(this.max-this.min,0),q=function(a){var d=a/(l||1);d=1<d?Math.ceil(d):1;d*f>g&&Infinity!==a&&Infinity!==l&&g&&(d=Math.ceil(g/f));return C(d*f)},n=f,h,p,k=Number.MAX_VALUE;if(c){if(!d.staggerLines&&!d.step)if(z(b))var t=[b];else l<d.autoRotationLimit&&(t=d.autoRotation);t&&t.forEach(function(d){if(d===b||d&&-90<=d&&90>=d){p=q(Math.abs(e.h/Math.sin(a*
214
+ d)));var c=p+Math.abs(d/360);c<k&&(k=c,h=d,n=p)}})}else d.step||(n=q(e.h));this.autoRotation=t;this.labelRotation=H(h,z(b)?b:0);return n};b.prototype.getSlotWidth=function(a){var d=this.chart,c=this.horiz,f=this.options.labels,l=Math.max(this.tickPositions.length-(this.categories?0:1),1),b=d.margin[3];if(a&&z(a.slotWidth))return a.slotWidth;if(c&&2>f.step)return f.rotation?0:(this.staggerLines||1)*this.len/l;if(!c){a=f.style.width;if(void 0!==a)return parseInt(String(a),10);if(b)return b-d.spacing[3]}return.33*
215
+ d.chartWidth};b.prototype.renderUnsquish=function(){var a=this.chart,d=a.renderer,c=this.tickPositions,f=this.ticks,b=this.options.labels,e=b.style,g=this.horiz,q=this.getSlotWidth(),n=Math.max(1,Math.round(q-2*b.padding)),h={},z=this.labelMetrics(),p=e.textOverflow,k=0;l(b.rotation)||(h.rotation=b.rotation||0);c.forEach(function(a){a=f[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>k&&(k=a.label.textPxLength)});this.maxLabelLength=k;if(this.autoRotation)k>n&&k>z.h?h.rotation=
216
+ this.labelRotation:this.labelRotation=0;else if(q){var t=n;if(!p){var G="clip";for(n=c.length;!g&&n--;){var m=c[n];if(m=f[m].label)m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>q&&m.css({width:q+"px"}),m.getBBox().height>this.len/c.length-(z.h-z.f)&&(m.specificTextOverflow="ellipsis")}}}h.rotation&&(t=k>.5*a.chartHeight?.33*a.chartHeight:k,p||(G="ellipsis"));if(this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation))h.align=this.labelAlign;c.forEach(function(a){var d=
217
+ (a=f[a])&&a.label,c=e.width,l={};d&&(d.attr(h),a.shortenLabel?a.shortenLabel():t&&!c&&"nowrap"!==e.whiteSpace&&(t<d.textPxLength||"SPAN"===d.element.tagName)?(l.width=t+"px",p||(l.textOverflow=d.specificTextOverflow||G),d.css(l)):d.styles&&d.styles.width&&!l.width&&!c&&d.css({width:null}),delete d.specificTextOverflow,a.rotation=h.rotation)},this);this.tickRotCorr=d.rotCorr(z.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(a){return a.hasData()})||
218
+ this.options.showEmpty&&y(this.min)&&y(this.max)};b.prototype.addTitle=function(a){var d=this.chart.renderer,c=this.horiz,f=this.opposite,l=this.options.title,b=this.chart.styledMode,e;this.axisTitle||((e=l.textAlign)||(e=(c?{low:"left",middle:"center",high:"right"}:{low:f?"right":"left",middle:"center",high:f?"left":"right"})[l.align]),this.axisTitle=d.text(l.text||"",0,0,l.useHTML).attr({zIndex:7,rotation:l.rotation,align:e}).addClass("highcharts-axis-title"),b||this.axisTitle.css(G(l.style)),this.axisTitle.add(this.axisGroup),
219
+ this.axisTitle.isNew=!0);b||l.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[a?"show":"hide"](a)};b.prototype.generateTick=function(a){var d=this.ticks;d[a]?d[a].addLabel():d[a]=new w(this,a)};b.prototype.getOffset=function(){var a=this,d=this,c=d.chart,l=d.horiz,b=d.options,e=d.side,g=d.ticks,q=d.tickPositions,n=d.coll,h=d.axisParent,z=c.renderer,p=c.inverted&&!d.isZAxis?[1,0,3,2][e]:e,k=d.hasData(),t=b.title,G=b.labels,m=c.axisOffset;c=c.clipOffset;var D=[-1,
220
+ 1,1,-1][e],K=b.className,r,C=0,N=0,x=0;d.showAxis=r=k||b.showEmpty;d.staggerLines=d.horiz&&G.staggerLines||void 0;if(!d.axisGroup){var w=function(d,c,f){return z.g(d).attr({zIndex:f}).addClass("highcharts-"+n.toLowerCase()+c+" "+(a.isRadial?"highcharts-radial-axis"+c+" ":"")+(K||"")).add(h)};d.gridGroup=w("grid","-grid",b.gridZIndex);d.axisGroup=w("axis","",b.zIndex);d.labelGroup=w("axis-labels","-labels",G.zIndex)}k||d.isLinked?(q.forEach(function(a){d.generateTick(a)}),d.renderUnsquish(),d.reserveSpaceDefault=
221
+ 0===e||2===e||{1:"left",3:"right"}[e]===d.labelAlign,H(G.reserveSpace,"center"===d.labelAlign?!0:null,d.reserveSpaceDefault)&&q.forEach(function(a){x=Math.max(g[a].getLabelSize(),x)}),d.staggerLines&&(x*=d.staggerLines),d.labelOffset=x*(d.opposite?-1:1)):I(g,function(a,d){a.destroy();delete g[d]});if(t&&t.text&&!1!==t.enabled&&(d.addTitle(r),r&&!1!==t.reserveSpace)){d.titleOffset=C=d.axisTitle.getBBox()[l?"height":"width"];var u=t.offset;N=y(u)?0:H(t.margin,l?5:10)}d.renderLine();d.offset=D*H(b.offset,
222
+ m[e]?m[e]+(b.margin||0):0);d.tickRotCorr=d.tickRotCorr||{x:0,y:0};t=0===e?-d.labelMetrics().h:2===e?d.tickRotCorr.y:0;k=Math.abs(x)+N;x&&(k=k-t+D*(l?H(G.y,d.tickRotCorr.y+8*D):G.x));d.axisTitleMargin=H(u,k);d.getMaxLabelDimensions&&(d.maxLabelDimensions=d.getMaxLabelDimensions(g,q));"colorAxis"!==n&&(l=this.tickSize("tick"),m[e]=Math.max(m[e],(d.axisTitleMargin||0)+C+D*d.offset,k,q&&q.length&&l?l[0]+D*d.offset:0),b=!d.axisLine||b.offset?0:2*Math.floor(d.axisLine.strokeWidth()/2),c[p]=Math.max(c[p],
223
+ b));f(this,"afterGetOffset")};b.prototype.getLinePath=function(a){var d=this.chart,c=this.opposite,f=this.offset,l=this.horiz,b=this.left+(c?this.width:0)+f;f=d.chartHeight-this.bottom-(c?this.height:0)+f;c&&(a*=-1);return d.renderer.crispLine([["M",l?this.left:b,l?f:this.top],["L",l?d.chartWidth-this.right:b,l?f:d.chartHeight-this.bottom]],a)};b.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||
224
+ this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var a=this.horiz,d=this.left,c=this.top,l=this.len,b=this.options.title,e=a?d:c,g=this.opposite,q=this.offset,n=b.x,h=b.y,z=this.axisTitle,p=this.chart.renderer.fontMetrics(b.style.fontSize,z);z=Math.max(z.getBBox(null,0).height-p.h-1,0);l={low:e+(a?0:l),middle:e+l/2,high:e+(a?l:0)}[b.align];d=(a?c+this.height:d)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+[-z,z,
225
+ p.f,-z][this.side];a={x:a?l+n:d+(g?this.width:0)+q+n,y:a?d+h-(g?this.height:0)+q:l+h};f(this,"afterGetTitlePosition",{titlePosition:a});return a};b.prototype.renderMinorTick=function(a,d){var c=this.minorTicks;c[a]||(c[a]=new w(this,a,"minor"));d&&c[a].isNew&&c[a].render(null,!0);c[a].render(null,!1,1)};b.prototype.renderTick=function(a,d,c){var f=this.ticks;if(!this.isLinked||a>=this.min&&a<=this.max||this.grid&&this.grid.isColumn)f[a]||(f[a]=new w(this,a)),c&&f[a].isNew&&f[a].render(d,!0,-1),f[a].render(d)};
226
+ b.prototype.render=function(){var a=this,d=a.chart,c=a.logarithmic,l=a.options,b=a.isLinked,e=a.tickPositions,g=a.axisTitle,q=a.ticks,n=a.minorTicks,h=a.alternateBands,p=l.stackLabels,k=l.alternateGridColor,t=a.tickmarkOffset,G=a.axisLine,m=a.showAxis,y=r(d.renderer.globalAnimation),D,K;a.labelEdge.length=0;a.overlap=!1;[q,n,h].forEach(function(a){I(a,function(a){a.isActive=!1})});if(a.hasData()||b){var H=a.chart.hasRendered&&a.old&&z(a.old.min);a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(d){a.renderMinorTick(d,
227
+ H)});e.length&&(e.forEach(function(d,c){a.renderTick(d,c,H)}),t&&(0===a.min||a.single)&&(q[-1]||(q[-1]=new w(a,-1,null,!0)),q[-1].render(-1)));k&&e.forEach(function(f,l){K="undefined"!==typeof e[l+1]?e[l+1]+t:a.max-t;0===l%2&&f<a.max&&K<=a.max+(d.polar?-t:t)&&(h[f]||(h[f]=new E.PlotLineOrBand(a)),D=f+t,h[f].options={from:c?c.lin2log(D):D,to:c?c.lin2log(K):K,color:k,className:"highcharts-alternate-grid"},h[f].render(),h[f].isActive=!0)});a._addedPlotLB||(a._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||
228
+ []).forEach(function(d){a.addPlotBandOrLine(d)}))}[q,n,h].forEach(function(a){var c=[],f=y.duration;I(a,function(a,d){a.isActive||(a.render(d,!1,0),a.isActive=!1,c.push(d))});S(function(){for(var d=c.length;d--;)a[c[d]]&&!a[c[d]].isActive&&(a[c[d]].destroy(),delete a[c[d]])},a!==h&&d.hasRendered&&f?f:0)});G&&(G[G.isPlaced?"animate":"attr"]({d:this.getLinePath(G.strokeWidth())}),G.isPlaced=!0,G[m?"show":"hide"](m));g&&m&&(l=a.getTitlePosition(),z(l.y)?(g[g.isNew?"attr":"animate"](l),g.isNew=!1):(g.attr("y",
229
+ -9999),g.isNew=!0));p&&p.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;f(this,"afterRender")};b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=function(a){var d=this,c=d.plotLinesAndBands,
230
+ l=this.eventOptions;f(this,"destroy",{keepEvents:a});a||x(d);[d.ticks,d.minorTicks,d.alternateBands].forEach(function(a){t(a)});if(c)for(a=c.length;a--;)c[a].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){d[a]&&(d[a]=d[a].destroy())});for(var b in d.plotLinesAndBandsGroups)d.plotLinesAndBandsGroups[b]=d.plotLinesAndBandsGroups[b].destroy();I(d,function(a,c){-1===d.getKeepProps().indexOf(c)&&delete d[c]});this.eventOptions=l};b.prototype.drawCrosshair=
231
+ function(a,d){var c=this.crosshair,l=H(c&&c.snap,!0),b=this.chart,e,g=this.cross;f(this,"drawCrosshair",{e:a,point:d});a||(a=this.cross&&this.cross.e);if(c&&!1!==(y(d)||!l)){l?y(d)&&(e=H("colorAxis"!==this.coll?d.crosshairPos:null,this.isXAxis?d.plotX:this.len-d.plotY)):e=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos);if(y(e)){var q={value:d&&(this.isXAxis?d.x:H(d.stackY,d.y)),translatedValue:e};b.polar&&n(q,{isCrosshair:!0,chartX:a&&a.chartX,chartY:a&&a.chartY,point:d});q=this.getPlotLinePath(q)||
232
+ null}if(!y(q)){this.hideCrosshair();return}l=this.categories&&!this.isRadial;g||(this.cross=g=b.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(l?"category ":"thin ")+(c.className||"")).attr({zIndex:H(c.zIndex,2)}).add(),b.styledMode||(g.attr({stroke:c.color||(l?A.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":H(c.width,1)}).css({"pointer-events":"none"}),c.dashStyle&&g.attr({dashstyle:c.dashStyle})));g.show().attr({d:q});l&&!c.width&&g.attr({"stroke-width":this.transA});
233
+ this.cross.e=a}else this.hideCrosshair();f(this,"afterDrawCrosshair",{e:a,point:d})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();f(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var a=this.chart.options.chart.panning;return!!(a&&a.enabled&&/y/.test(a.type))};b.prototype.validatePositiveValue=function(a){return z(a)&&0<a};b.prototype.update=function(a,d){var c=this.chart;a=G(this.userOptions,a);this.destroy(!0);this.init(c,a);c.isDirtyBox=!0;H(d,!0)&&c.redraw()};
234
+ b.prototype.remove=function(a){for(var d=this.chart,c=this.coll,f=this.series,l=f.length;l--;)f[l]&&f[l].remove(!1);p(d.axes,this);p(d[c],this);d[c].forEach(function(a,d){a.options.index=a.userOptions.index=d});this.destroy();d.isDirtyBox=!0;H(a,!0)&&d.redraw()};b.prototype.setTitle=function(a,d){this.update({title:a},d)};b.prototype.setCategories=function(a,d){this.update({categories:a},d)};b.defaultOptions=u.defaultXAxisOptions;b.keepProps="extKey hcEvents names series userMax userMin".split(" ");
235
+ return b}();"";return b});F(b,"Core/Axis/DateTimeAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,A=b.getMagnitude,B=b.normalizeTickInterval,v=b.timeUnits,E;(function(b){function k(){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 m=[];b.compose=function(a){-1===m.indexOf(a)&&(m.push(a),a.keepProps.push("dateTime"),a.prototype.getTimeTicks=k,x(a,"init",
236
+ r));return a};var h=function(){function a(a){this.axis=a}a.prototype.normalizeTimeTickInterval=function(a,b){var c=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=c[c.length-1];var e=v[b[0]],h=b[1],k;for(k=0;k<c.length&&!(b=c[k],e=v[b[0]],h=b[1],c[k+1]&&a<=(e*h[h.length-1]+v[c[k+1][0]])/2);k++);e===v.year&&a<5*e&&(h=[1,2,5]);a=B(a/e,h,"year"===b[0]?
237
+ Math.max(A(a/e),1):1);return{unitRange:e,count:a,unitName:b[0]}};a.prototype.getXDateFormat=function(a,b){var c=this.axis;return c.closestPointRange?c.chart.time.getDateFormat(c.closestPointRange,a,c.options.startOfWeek,b)||b.year:b.day};return a}();b.Additions=h})(E||(E={}));return E});F(b,"Core/Axis/LogarithmicAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,A=b.getMagnitude,B=b.normalizeTickInterval,v=b.pick,E;(function(b){function k(a){var c=this.logarithmic;"logarithmic"!==a.userOptions.type?
238
+ this.logarithmic=void 0:c||(this.logarithmic=new h(this))}function r(){var a=this.logarithmic;a&&(this.lin2val=function(c){return a.lin2log(c)},this.val2lin=function(c){return a.log2lin(c)})}var m=[];b.compose=function(a){-1===m.indexOf(a)&&(m.push(a),a.keepProps.push("logarithmic"),x(a,"init",k),x(a,"afterInit",r));return a};var h=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,b,g,h){var c=this.axis,e=c.len,p=c.options,k=[];h||(this.minorAutoInterval=void 0);if(.5<=
239
+ a)a=Math.round(a),k=c.getLinearTickPositions(a,b,g);else if(.08<=a){var n=Math.floor(b),f,q=p=void 0;for(e=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];n<g+1&&!q;n++){var d=e.length;for(f=0;f<d&&!q;f++){var z=this.log2lin(this.lin2log(n)*e[f]);z>b&&(!h||p<=g)&&"undefined"!==typeof p&&k.push(p);p>g&&(q=!0);p=z}}}else b=this.lin2log(b),g=this.lin2log(g),a=h?c.getMinorTickInterval():p.tickInterval,a=v("auto"===a?null:a,this.minorAutoInterval,p.tickPixelInterval/(h?5:1)*(g-b)/((h?e/c.tickPositions.length:
240
+ e)||1)),a=B(a,void 0,A(a)),k=c.getLinearTickPositions(a,b,g).map(this.log2lin),h||(this.minorAutoInterval=a/5);h||(c.tickInterval=a);return k};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();b.Additions=h})(E||(E={}));return E});F(b,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.erase,A=b.extend,B=b.isNumber,v;(function(b){var w=[],k;b.compose=function(b,h){k||(k=b);-1===
241
+ w.indexOf(h)&&(w.push(h),A(h.prototype,r.prototype));return h};var r=function(){function b(){}b.prototype.getPlotBandPath=function(b,a,c){void 0===c&&(c=this.options);var e=this.getPlotLinePath({value:a,force:!0,acrossPanes:c.acrossPanes}),g=[],h=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:c.acrossPanes});c=1;if(b&&e){if(a){var k=b.toString()===e.toString();c=0}for(a=0;a<b.length;a+=2){var t=b[a],p=b[a+
242
+ 1],m=e[a],n=e[a+1];"M"!==t[0]&&"L"!==t[0]||"M"!==p[0]&&"L"!==p[0]||"M"!==m[0]&&"L"!==m[0]||"M"!==n[0]&&"L"!==n[0]||(h&&m[1]===t[1]?(m[1]+=c,n[1]+=c):h||m[2]!==t[2]||(m[2]+=c,n[2]+=c),g.push(["M",t[1],t[2]],["L",p[1],p[2]],["L",n[1],n[2]],["L",m[1],m[2]],["Z"]));g.isFlat=k}}return g};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,a){var c=this,
243
+ e=this.userOptions,g=new k(this,b);this.visible&&(g=g.render());if(g){this._addedPlotLB||(this._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||[]).forEach(function(a){c.addPlotBandOrLine(a)}));if(a){var h=e[a]||[];h.push(b);e[a]=h}this.plotLinesAndBands.push(g)}return g};b.prototype.removePlotBandOrLine=function(b){var a=this.plotLinesAndBands,c=this.options,e=this.userOptions;if(a){for(var g=a.length;g--;)a[g].id===b&&a[g].destroy();[c.plotLines||[],e.plotLines||[],c.plotBands||[],e.plotBands||
244
+ []].forEach(function(a){for(g=a.length;g--;)(a[g]||{}).id===b&&x(a,a[g])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(v||(v={}));return v});F(b,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[b["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],b["Core/Utilities.js"]],function(b,u){var x=u.arrayMax,B=u.arrayMin,v=u.defined,E=u.destroyObjectProperties,w=u.erase,k=u.fireEvent,r=u.merge,m=u.objectEach,
245
+ h=u.pick;u=function(){function a(a,b){this.axis=a;b&&(this.options=b,this.id=b.id)}a.compose=function(c){return b.compose(a,c)};a.prototype.render=function(){k(this,"render");var a=this,b=a.axis,g=b.horiz,C=b.logarithmic,y=a.options,t=y.color,p=h(y.zIndex,0),D=y.events,n={},f=b.chart.renderer,q=y.label,d=a.label,z=y.to,l=y.from,G=y.value,K=a.svgElem,I=[],H=v(l)&&v(z);I=v(G);var N=!K,x={"class":"highcharts-plot-"+(H?"band ":"line ")+(y.className||"")},w=H?"bands":"lines";C&&(l=C.log2lin(l),z=C.log2lin(z),
246
+ G=C.log2lin(G));b.chart.styledMode||(I?(x.stroke=t||"#999999",x["stroke-width"]=h(y.width,1),y.dashStyle&&(x.dashstyle=y.dashStyle)):H&&(x.fill=t||"#e6ebf5",y.borderWidth&&(x.stroke=y.borderColor,x["stroke-width"]=y.borderWidth)));n.zIndex=p;w+="-"+p;(C=b.plotLinesAndBandsGroups[w])||(b.plotLinesAndBandsGroups[w]=C=f.g("plot-"+w).attr(n).add());N&&(a.svgElem=K=f.path().attr(x).add(C));if(I)I=b.getPlotLinePath({value:G,lineWidth:K.strokeWidth(),acrossPanes:y.acrossPanes});else if(H)I=b.getPlotBandPath(l,
247
+ z,y);else return;!a.eventsAdded&&D&&(m(D,function(d,c){K.on(c,function(d){D[c].apply(a,[d])})}),a.eventsAdded=!0);(N||!K.d)&&I&&I.length?K.attr({d:I}):K&&(I?(K.show(!0),K.animate({d:I})):K.d&&(K.hide(),d&&(a.label=d=d.destroy())));q&&(v(q.text)||v(q.formatter))&&I&&I.length&&0<b.width&&0<b.height&&!I.isFlat?(q=r({align:g&&H&&"center",x:g?!H&&4:10,verticalAlign:!g&&H&&"middle",y:g?H?16:10:H?6:-4,rotation:g&&!H&&90},q),this.renderLabel(q,I,H,p)):d&&d.hide();return a};a.prototype.renderLabel=function(a,
248
+ b,g,h){var c=this.axis,e=c.chart.renderer,p=this.label;p||(this.label=p=e.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(g?"band":"line")+"-label "+(a.className||""),zIndex:h}).add(),c.chart.styledMode||p.css(r({textOverflow:"ellipsis"},a.style)));h=b.xBounds||[b[0][1],b[1][1],g?b[2][1]:b[0][1]];b=b.yBounds||[b[0][2],b[1][2],g?b[2][2]:b[0][2]];g=B(h);e=B(b);p.align(a,!1,{x:g,y:e,width:x(h)-g,height:x(b)-e});p.alignValue&&"left"!==
249
+ p.alignValue||p.css({width:(90===p.rotation?c.height-(p.alignAttr.y-c.top):c.width-(p.alignAttr.x-c.left))+"px"});p.show(!0)};a.prototype.getLabelText=function(a){return v(a.formatter)?a.formatter.call(this):a.text};a.prototype.destroy=function(){w(this.axis.plotLinesAndBands,this);delete this.axis;E(this)};return a}();"";"";return u});F(b,"Core/Tooltip.js",[b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],
250
+ function(b,u,A,B,v){var x=b.format,w=u.doc,k=A.distribute,r=v.addEvent,m=v.clamp,h=v.css,a=v.defined,c=v.discardElement,e=v.extend,g=v.fireEvent,C=v.isArray,y=v.isNumber,t=v.isString,p=v.merge,D=v.pick,n=v.splat,f=v.syncTimeout;b=function(){function b(a,c){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,c)}b.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",
251
+ 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=function(a){return a.map(function(a){var d=a.series.tooltipOptions;return(d[(a.point.formatPrefix||
252
+ "point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,d[(a.point.formatPrefix||"point")+"Format"]||"")})};b.prototype.cleanSplit=function(a){this.chart.series.forEach(function(d){var c=d&&d.tt;c&&(!c.isActive||a?d.tt=c.destroy():c.isActive=!1)})};b.prototype.defaultFormatter=function(a){var d=this.points||n(this);var c=[a.tooltipFooterHeaderFormatter(d[0])];c=c.concat(a.bodyFormatter(d));c.push(a.tooltipFooterHeaderFormatter(d[0],!0));return c};b.prototype.destroy=function(){this.label&&(this.label=
253
+ this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),c(this.container));v.clearTimeout(this.hideTimer);v.clearTimeout(this.tooltipTimeout)};b.prototype.getAnchor=function(a,c){var d=this.chart,b=d.pointer,f=d.inverted,e=d.plotTop,g=d.plotLeft,q,h,p=0,z=0;a=n(a);this.followPointer&&c?("undefined"===typeof c.chartX&&(c=b.normalize(c)),b=[c.chartX-g,c.chartY-e]):a[0].tooltipPos?b=a[0].tooltipPos:(a.forEach(function(a){q=
254
+ a.series.yAxis;h=a.series.xAxis;p+=a.plotX||0;z+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;h&&q&&(f?(p+=e+d.plotHeight-h.len-h.pos,z+=g+d.plotWidth-q.len-q.pos):(p+=h.pos-g,z+=q.pos-e))}),p/=a.length,z/=a.length,b=[f?d.plotWidth-z:p,f?d.plotHeight-p:z],this.shared&&1<a.length&&c&&(f?b[0]=c.chartX-g:b[1]=c.chartY-e));return b.map(Math.round)};b.prototype.getLabel=function(){var d=this,c=this.chart.styledMode,b=this.options,f=this.split&&this.allowShared,e="tooltip"+(a(b.className)?" "+b.className:
255
+ ""),g=b.style.pointerEvents||(!this.followPointer&&b.stickOnContact?"auto":"none"),q=function(){d.inContact=!0},n=function(a){var c=d.chart.hoverSeries;d.inContact=d.shouldStickOnContact()&&d.chart.pointer.inClass(a.relatedTarget,"highcharts-tooltip");if(!d.inContact&&c&&c.onMouseOut)c.onMouseOut()},p,k=this.chart.renderer;if(d.label){var t=!d.label.hasClass("highcharts-label");(f&&!t||!f&&t)&&d.destroy()}if(!this.label){if(this.outside){t=this.chart.options.chart.style;var m=B.getRendererType();
256
+ this.container=p=u.doc.createElement("div");p.className="highcharts-tooltip-container";h(p,{position:"absolute",top:"1px",pointerEvents:g,zIndex:Math.max(this.options.style.zIndex||0,(t&&t.zIndex||0)+3)});r(p,"mouseenter",q);r(p,"mouseleave",n);u.doc.body.appendChild(p);this.renderer=k=new m(p,0,0,t,void 0,void 0,k.styledMode)}f?this.label=k.g(e):(this.label=k.label("",0,0,b.shape,void 0,void 0,b.useHTML,void 0,e).attr({padding:b.padding,r:b.borderRadius}),c||this.label.attr({fill:b.backgroundColor,
257
+ "stroke-width":b.borderWidth}).css(b.style).css({pointerEvents:g}).shadow(b.shadow));c&&b.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(d.outside&&!d.split){var y=this.label,D=y.xSetter,C=y.ySetter;y.xSetter=function(a){D.call(y,d.distance);p.style.left=a+"px"};y.ySetter=function(a){C.call(y,d.distance);p.style.top=a+"px"}}this.label.on("mouseenter",q).on("mouseleave",n).attr({zIndex:8}).add()}return this.label};b.prototype.getPosition=function(a,
258
+ c,b){var d=this.chart,f=this.distance,l={},e=d.inverted&&b.h||0,g=this.outside,q=g?w.documentElement.clientWidth-2*f:d.chartWidth,n=g?Math.max(w.body.scrollHeight,w.documentElement.scrollHeight,w.body.offsetHeight,w.documentElement.offsetHeight,w.documentElement.clientHeight):d.chartHeight,h=d.pointer.getChartPosition(),p=function(l){var e="x"===l;return[l,e?q:n,e?a:c].concat(g?[e?a*h.scaleX:c*h.scaleY,e?h.left-f+(b.plotX+d.plotLeft)*h.scaleX:h.top-f+(b.plotY+d.plotTop)*h.scaleY,0,e?q:n]:[e?a:c,e?
259
+ b.plotX+d.plotLeft:b.plotY+d.plotTop,e?d.plotLeft:d.plotTop,e?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},z=p("y"),k=p("x"),t;p=!!b.negative;!d.polar&&d.hoverSeries&&d.hoverSeries.yAxis&&d.hoverSeries.yAxis.reversed&&(p=!p);var m=!this.followPointer&&D(b.ttBelow,!d.inverted===p),y=function(a,d,c,b,q,n,p){var z=g?"y"===a?f*h.scaleY:f*h.scaleX:f,k=(c-b)/2,t=b<q-f,G=q+f+b<d,y=q-z-c+k;q=q+z-k;if(m&&G)l[a]=q;else if(!m&&t)l[a]=y;else if(t)l[a]=Math.min(p-b,0>y-e?y:y-e);else if(G)l[a]=Math.max(n,q+
260
+ e+c>d?q:q+e);else return!1},r=function(a,d,c,b,e){var g;e<f||e>d-f?g=!1:l[a]=e<c/2?1:e>d-b/2?d-b-2:e-c/2;return g},L=function(a){var d=z;z=k;k=d;t=a},C=function(){!1!==y.apply(0,z)?!1!==r.apply(0,k)||t||(L(!0),C()):t?l.x=l.y=0:(L(!0),C())};(d.inverted||1<this.len)&&L();C();return l};b.prototype.hide=function(a){var d=this;v.clearTimeout(this.hideTimer);a=D(a,this.options.hideDelay);this.isHidden||(this.hideTimer=f(function(){d.getLabel().fadeOut(a?void 0:a);d.isHidden=!0},a))};b.prototype.init=function(a,
261
+ c){this.chart=a;this.options=c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=c.split&&!a.inverted&&!a.polar;this.shared=c.shared||this.split;this.outside=D(c.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,c,b,f){var d=this,l=d.now,g=!1!==d.options.animation&&
262
+ !d.isHidden&&(1<Math.abs(a-l.x)||1<Math.abs(c-l.y)),q=d.followPointer||1<d.len;e(l,{x:g?(2*l.x+a)/3:a,y:g?(l.y+c)/2:c,anchorX:q?void 0:g?(2*l.anchorX+b)/3:b,anchorY:q?void 0:g?(l.anchorY+f)/2:f});d.getLabel().attr(l);d.drawTracker();g&&(v.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){d&&d.move(a,c,b,f)},32))};b.prototype.refresh=function(a,c){var d=this.chart,b=this.options,f=n(a),e=f[0],q=[],h=b.formatter||this.defaultFormatter,p=this.shared,k=d.styledMode,z={};if(b.enabled){v.clearTimeout(this.hideTimer);
263
+ this.allowShared=!(!C(a)&&a.series&&a.series.noSharedTooltip);this.followPointer=!this.split&&e.series.tooltipOptions.followPointer;a=this.getAnchor(a,c);var t=a[0],m=a[1];p&&this.allowShared?(d.pointer.applyInactiveState(f),f.forEach(function(a){a.setState("hover");q.push(a.getLabelConfig())}),z={x:e.category,y:e.y},z.points=q):z=e.getLabelConfig();this.len=q.length;h=h.call(z,this);p=e.series;this.distance=D(p.tooltipOptions.distance,16);if(!1===h)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(h,
264
+ f);else{var y=t,r=m;c&&d.pointer.isDirectTouch&&(y=c.chartX-d.plotLeft,r=c.chartY-d.plotTop);if(d.polar||!1===p.options.clip||f.some(function(a){return a.series.shouldShowTooltip(y,r)}))c=this.getLabel(),b.style.width&&!k||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:h&&h.join?h.join(""):h}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+D(e.colorIndex,p.colorIndex)),k||c.attr({stroke:b.borderColor||e.color||p.color||"#666666"}),this.updatePosition({plotX:t,
265
+ plotY:m,negative:e.negative,ttBelow:e.ttBelow,h:a[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}g(this,"refresh")}};b.prototype.renderSplit=function(a,c){function d(a,d,c,f,l){void 0===l&&(l=!0);c?(d=W?0:F,a=m(a-f/2,R.left,R.right-f-(b.outside?O:0))):(d-=da,a=l?a-f-E:a+E,a=m(a,l?a:R.left,R.right));return{x:a,y:d}}var b=this,f=b.chart,g=b.chart,q=g.chartWidth,n=g.chartHeight,h=g.plotHeight,p=g.plotLeft,z=g.plotTop,y=g.pointer,r=g.scrollablePixelsY;
266
+ r=void 0===r?0:r;var C=g.scrollablePixelsX,x=g.scrollingContainer;x=void 0===x?{scrollLeft:0,scrollTop:0}:x;var u=x.scrollLeft;x=x.scrollTop;var v=g.styledMode,E=b.distance,L=b.options,T=b.options.positioner,R=b.outside&&"number"!==typeof C?w.documentElement.getBoundingClientRect():{left:u,right:u+q,top:x,bottom:x+n},A=b.getLabel(),B=this.renderer||f.renderer,W=!(!f.xAxis[0]||!f.xAxis[0].opposite);f=y.getChartPosition();var O=f.left;f=f.top;var da=z+x,ea=0,F=h-r;t(a)&&(a=[!1,a]);a=a.slice(0,c.length+
267
+ 1).reduce(function(a,f,l){if(!1!==f&&""!==f){l=c[l-1]||{isHeader:!0,plotX:c[0].plotX,plotY:h,series:{}};var e=l.isHeader,g=e?b:l.series;f=f.toString();var q=g.tt,n=l.isHeader;var k=l.series;var t="highcharts-color-"+D(l.colorIndex,k.colorIndex,"none");q||(q={padding:L.padding,r:L.borderRadius},v||(q.fill=L.backgroundColor,q["stroke-width"]=L.borderWidth),q=B.label("",0,0,L[n?"headerShape":"shape"],void 0,void 0,L.useHTML).addClass((n?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+t).attr(q).add(A));
268
+ q.isActive=!0;q.attr({text:f});v||q.css(L.style).shadow(L.shadow).attr({stroke:L.borderColor||l.color||k.color||"#333333"});g=g.tt=q;n=g.getBBox();f=n.width+g.strokeWidth();e&&(ea=n.height,F+=ea,W&&(da-=ea));k=l.plotX;k=void 0===k?0:k;t=l.plotY;t=void 0===t?0:t;q=l.series;if(l.isHeader){k=p+k;var y=z+h/2}else{var G=q.xAxis,r=q.yAxis;k=G.pos+m(k,-E,G.len+E);q.shouldShowTooltip(0,r.pos-z+t,{ignoreX:!0})&&(y=r.pos+t)}k=m(k,R.left-E,R.right+E);"number"===typeof y?(n=n.height+1,t=T?T.call(b,f,n,l):d(k,
269
+ y,e,f),a.push({align:T?0:void 0,anchorX:k,anchorY:y,boxWidth:f,point:l,rank:D(t.rank,e?1:0),size:n,target:t.y,tt:g,x:t.x})):g.isActive=!1}return a},[]);!T&&a.some(function(a){var d=(b.outside?O:0)+a.anchorX;return d<R.left&&d+a.boxWidth<R.right?!0:d<O-R.left+a.boxWidth&&R.right-d>d})&&(a=a.map(function(a){var c=d(a.anchorX,a.anchorY,a.point.isHeader,a.boxWidth,!1);return e(a,{target:c.y,x:c.x})}));b.cleanSplit();k(a,F);var ba=O,fa=O;a.forEach(function(a){var d=a.x,c=a.boxWidth;a=a.isHeader;a||(b.outside&&
270
+ O+d<ba&&(ba=O+d),!a&&b.outside&&ba+c>fa&&(fa=O+d))});a.forEach(function(a){var d=a.x,c=a.anchorX,f=a.pos,l=a.point.isHeader;f={visibility:"undefined"===typeof f?"hidden":"inherit",x:d,y:f+da,anchorX:c,anchorY:a.anchorY};if(b.outside&&d<c){var e=O-ba;0<e&&(l||(f.x=d+e,f.anchorX=c+e),l&&(f.x=(fa-ba)/2,f.anchorX=c+e))}a.tt.attr(f)});a=b.container;r=b.renderer;b.outside&&a&&r&&(g=A.getBBox(),r.setSize(g.width+g.x,g.height+g.y,!1),a.style.left=ba+"px",a.style.top=f+"px")};b.prototype.drawTracker=function(){if(this.followPointer||
271
+ !this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var a=this.chart,c=this.label,b=this.shared?a.hoverPoints:a.hoverPoint;if(c&&b){var f={x:0,y:0,width:0,height:0};b=this.getAnchor(b);var e=c.getBBox();b[0]+=a.plotLeft-c.translateX;b[1]+=a.plotTop-c.translateY;f.x=Math.min(0,b[0]);f.y=Math.min(0,b[1]);f.width=0>b[0]?Math.max(Math.abs(b[0]),e.width-b[0]):Math.max(Math.abs(b[0]),e.width);f.height=0>b[1]?Math.max(Math.abs(b[1]),e.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),e.height);
272
+ this.tracker?this.tracker.attr(f):(this.tracker=c.renderer.rect(f).addClass("highcharts-tracker").add(c),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}"')};b.prototype.tooltipFooterHeaderFormatter=function(a,c){var d=a.series,b=d.tooltipOptions,f=d.xAxis,e=f&&f.dateTime;f={isFooter:c,
273
+ labelConfig:a};var q=b.xDateFormat,n=b[c?"footerFormat":"headerFormat"];g(this,"headerFormatter",f,function(c){e&&!q&&y(a.key)&&(q=e.getXDateFormat(a.key,b.dateTimeLabelFormats));e&&q&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(a){n=n.replace("{point."+a+"}","{point."+a+":"+q+"}")});d.chart.styledMode&&(n=this.styledModeFormat(n));c.text=x(n,{point:a,series:d},this.chart)});return f.text};b.prototype.update=function(a){this.destroy();p(!0,this.chart.options.tooltip.userOptions,a);
274
+ this.init(this.chart,p(!0,this.options,a))};b.prototype.updatePosition=function(a){var d=this.chart,c=this.options,b=d.pointer,f=this.getLabel();b=b.getChartPosition();var e=(c.positioner||this.getPosition).call(this,f.width,f.height,a),g=a.plotX+d.plotLeft;a=a.plotY+d.plotTop;if(this.outside){c=c.borderWidth+2*this.distance;this.renderer.setSize(f.width+c,f.height+c,!1);if(1!==b.scaleX||1!==b.scaleY)h(this.container,{transform:"scale("+b.scaleX+", "+b.scaleY+")"}),g*=b.scaleX,a*=b.scaleY;g+=b.left-
275
+ e.x;a+=b.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),g,a)};return b}();"";return b});F(b,"Core/Series/Point.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/DefaultOptions.js"],b["Core/FormatUtilities.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=u.animObject,w=A.defaultOptions,k=B.format,r=v.addEvent,m=v.defined,h=v.erase,a=v.extend,c=v.fireEvent,e=v.getNestedProperty,g=v.isArray,C=v.isFunction,y=v.isNumber,t=v.isObject,p=v.merge,D=v.objectEach,
276
+ n=v.pick,f=v.syncTimeout,q=v.removeEvent,d=v.uniqueKey;u=function(){function z(){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=!0;this.x=void 0}z.prototype.animateBeforeDestroy=function(){var d=this,c={x:d.startXPos,opacity:0},b=d.getGraphicalProps();b.singular.forEach(function(a){d[a]=d[a].animate("dataLabel"===a?{x:d[a].startXPos,y:d[a].startYPos,
277
+ opacity:0}:c)});b.plural.forEach(function(c){d[c].forEach(function(c){c.element&&c.animate(a({x:d.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};z.prototype.applyOptions=function(d,c){var b=this.series,f=b.options.pointValKey||b.pointValKey;d=z.prototype.optionsToObject.call(this,d);a(this,d);this.options=this.options?a(this.options,d):d;d.group&&delete this.group;d.dataLabels&&delete this.dataLabels;f&&(this.y=z.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=
278
+ n(this.isValid&&!this.isValid(),null===this.x||!y(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c&&b.xAxis&&b.xAxis.hasNames&&(this.x=b.xAxis.nameToX(this));"undefined"===typeof this.x&&b?this.x="undefined"===typeof c?b.autoIncrement():c:y(d.x)&&b.options.relativeXValue&&(this.x=b.autoIncrement(d.x));return this};z.prototype.destroy=function(){function a(){if(d.graphic||d.dataLabel||d.dataLabels)q(d),d.destroyElements();for(n in d)d[n]=null}var d=
279
+ this,c=d.series,b=c.chart;c=c.options.dataSorting;var e=b.hoverPoints,g=x(d.series.chart.renderer.globalAnimation),n;d.legendItem&&b.legend.destroyItem(d);e&&(d.setState(),h(e,d),e.length||(b.hoverPoints=null));if(d===b.hoverPoint)d.onMouseOut();c&&c.enabled?(this.animateBeforeDestroy(),f(a,g.duration)):a();b.pointCount--};z.prototype.destroyElements=function(a){var d=this;a=d.getGraphicalProps(a);a.singular.forEach(function(a){d[a]=d[a].destroy()});a.plural.forEach(function(a){d[a].forEach(function(a){a.element&&
280
+ a.destroy()});delete d[a]})};z.prototype.firePointEvent=function(a,d,b){var f=this,e=this.series.options;(e.point.events[a]||f.options&&f.options.events&&f.options.events[a])&&f.importEvents();"click"===a&&e.allowPointSelect&&(b=function(a){f.select&&f.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});c(f,a,d,b)};z.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+
281
+ ("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",""):"")};z.prototype.getGraphicalProps=function(a){var d=this,c=[],b={singular:[],plural:[]},f;a=a||{graphic:1,dataLabel:1};a.graphic&&c.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&c.push("dataLabel","dataLabelUpper","connector");for(f=c.length;f--;){var e=c[f];d[e]&&
282
+ b.singular.push(e)}["dataLabel","connector"].forEach(function(c){var f=c+"s";a[c]&&d[f]&&b.plural.push(f)});return b};z.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||this.stackTotal}};z.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?e(a,this.options):this[a]};z.prototype.getZone=function(){var a=this.series,
283
+ d=a.zones;a=a.zoneAxis||"y";var c,b=0;for(c=d[b];this[a]>=c.value;)c=d[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};z.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};z.prototype.init=function(a,b,f){this.series=a;this.applyOptions(b,f);this.id=m(this.id)?this.id:d();this.resolveColor();a.chart.pointCount++;c(this,"afterInit");
284
+ return this};z.prototype.optionsToObject=function(a){var d=this.series,c=d.options.keys,b=c||d.pointArrayMap||["y"],f=b.length,e={},l=0,q=0;if(y(a)||null===a)e[b[0]]=a;else if(g(a))for(!c&&a.length>f&&(d=typeof a[0],"string"===d?e.name=a[0]:"number"===d&&(e.x=a[0]),l++);q<f;)c&&"undefined"===typeof a[l]||(0<b[q].indexOf(".")?z.prototype.setNestedProperty(e,a[l],b[q]):e[b[q]]=a[l]),l++,q++;else"object"===typeof a&&(e=a,a.dataLabels&&(d._hasPointLabels=!0),a.marker&&(d._hasPointMarkers=!0));return e};
285
+ z.prototype.resolveColor=function(){var a=this.series,d=a.chart.styledMode;var c=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!d){c=a.options.colors||a.chart.options.colors;var b=c[a.colorCounter];c=c.length}d=a.colorCounter;a.colorCounter++;a.colorCounter===c&&(a.colorCounter=0)}else d||(b=a.color),d=a.colorIndex;this.colorIndex=n(this.options.colorIndex,d);this.color=n(this.options.color,b)};z.prototype.setNestedProperty=function(a,d,c){c.split(".").reduce(function(a,
286
+ c,b,f){a[c]=f.length-1===b?d:t(a[c],!0)?a[c]:{};return a[c]},a);return a};z.prototype.tooltipFormatter=function(a){var d=this.series,c=d.tooltipOptions,b=n(c.valueDecimals,""),f=c.valuePrefix||"",e=c.valueSuffix||"";d.chart.styledMode&&(a=d.chart.tooltip.styledModeFormat(a));(d.pointArrayMap||["y"]).forEach(function(d){d="{point."+d;if(f||e)a=a.replace(RegExp(d+"}","g"),f+d+"}"+e);a=a.replace(RegExp(d+"}","g"),d+":,."+b+"f}")});return k(a,{point:this,series:this.series},d.chart)};z.prototype.update=
287
+ function(a,d,c,b){function f(){e.applyOptions(a);var b=g&&e.hasDummyGraphic;b=null===e.y?!b:b;g&&b&&(e.graphic=g.destroy(),delete e.hasDummyGraphic);t(a,!0)&&(g&&g.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(e.graphic=g.destroy()),a&&a.dataLabels&&e.dataLabel&&(e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));p=e.index;l.updateParallelArrays(e,p);h.data[p]=t(h.data[p],!0)||t(a,!0)?e.options:n(a,h.data[p]);l.isDirty=l.isDirtyData=!0;!l.fixedBox&&
288
+ l.hasCartesianSeries&&(q.isDirtyBox=!0);"point"===h.legendType&&(q.isDirtyLegend=!0);d&&q.redraw(c)}var e=this,l=e.series,g=e.graphic,q=l.chart,h=l.options,p;d=n(d,!0);!1===b?f():e.firePointEvent("update",{options:a},f)};z.prototype.remove=function(a,d){this.series.removePoint(this.series.data.indexOf(this),a,d)};z.prototype.select=function(a,d){var c=this,b=c.series,f=b.chart;this.selectedStaging=a=n(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:d},function(){c.selected=c.options.selected=
289
+ a;b.options.data[b.data.indexOf(c)]=c.options;c.setState(a&&"select");d||f.getSelectedPoints().forEach(function(a){var d=a.series;a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[d.data.indexOf(a)]=a.options,a.setState(f.hoverPoints&&d.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging};z.prototype.onMouseOver=function(a){var d=this.series.chart,c=d.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,d.inverted);c.runPointActions(a,
290
+ this)};z.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};z.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,d=p(a.series.options.point,a.options).events;a.events=d;D(d,function(d,c){C(d)&&r(a,c,d)});this.hasImportedEvents=!0}};z.prototype.setState=function(d,f){var e=this.series,l=this.state,g=e.options.states[d||
291
+ "normal"]||{},q=w.plotOptions[e.type].marker&&e.options.marker,h=q&&!1===q.enabled,p=q&&q.states&&q.states[d||"normal"]||{},k=!1===p.enabled,z=this.marker||{},t=e.chart,m=q&&e.markerAttribs,r=e.halo,D,G=e.stateMarkerGraphic;d=d||"";if(!(d===this.state&&!f||this.selected&&"select"!==d||!1===g.enabled||d&&(k||h&&!1===p.enabled)||d&&z.states&&z.states[d]&&!1===z.states[d].enabled)){this.state=d;m&&(D=e.markerAttribs(this,d));if(this.graphic&&!this.hasDummyGraphic){l&&this.graphic.removeClass("highcharts-point-"+
292
+ l);d&&this.graphic.addClass("highcharts-point-"+d);if(!t.styledMode){var C=e.pointAttribs(this,d);var L=n(t.options.chart.animation,g.animation);e.options.inactiveOtherPoints&&y(C.opacity)&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:C.opacity},L)}),this.connector&&this.connector.animate({opacity:C.opacity},L));this.graphic.animate(C,L)}D&&this.graphic.animate(D,n(t.options.chart.animation,p.animation,q.animation));G&&G.hide()}else{if(d&&p){l=z.symbol||e.symbol;G&&G.currentSymbol!==
293
+ l&&(G=G.destroy());if(D)if(G)G[f?"animate":"attr"]({x:D.x,y:D.y});else l&&(e.stateMarkerGraphic=G=t.renderer.symbol(l,D.x,D.y,D.width,D.height).add(e.markerGroup),G.currentSymbol=l);!t.styledMode&&G&&"inactive"!==this.state&&G.attr(e.pointAttribs(this,d))}G&&(G[d&&this.isInside?"show":"hide"](),G.element.point=this,G.addClass(this.getClassName(),!0))}g=g.halo;D=(G=this.graphic||G)&&G.visibility||"inherit";g&&g.size&&G&&"hidden"!==D&&!this.isCluster?(r||(e.halo=r=t.renderer.path().add(G.parentGroup)),
294
+ r.show()[f?"animate":"attr"]({d:this.haloPath(g.size)}),r.attr({"class":"highcharts-halo highcharts-color-"+n(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:D,zIndex:-1}),r.point=this,t.styledMode||r.attr(a({fill:this.color||e.color,"fill-opacity":g.opacity},b.filterUserAttributes(g.attributes||{})))):r&&r.point&&r.point.haloPath&&r.animate({d:r.point.haloPath(0)},null,r.hide);c(this,"afterSetState",{state:d})}};z.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
295
+ a,this.plotY-a,2*a,2*a)};return z}();"";return u});F(b,"Core/Pointer.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Tooltip.js"],b["Core/Utilities.js"]],function(b,u,A,B){var x=b.parse,E=u.charts,w=u.noop,k=B.addEvent,r=B.attr,m=B.css,h=B.defined,a=B.extend,c=B.find,e=B.fireEvent,g=B.isNumber,C=B.isObject,y=B.objectEach,t=B.offset,p=B.pick,D=B.splat;b=function(){function b(a,c){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=
296
+ !1;this.options=c;this.init(a,c)}b.prototype.applyInactiveState=function(a){var c=[],d;(a||[]).forEach(function(a){d=a.series;c.push(d);d.linkedParent&&c.push(d.linkedParent);d.linkedSeries&&(c=c.concat(d.linkedSeries));d.navigatorSeries&&c.push(d.navigatorSeries)});this.chart.series.forEach(function(a){-1===c.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()});
297
+ this.eventsToUnbind=[];u.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);y(a,function(c,d){a[d]=void 0})};b.prototype.drag=function(a){var c=this.chart,d=c.options.chart,b=this.zoomHor,f=this.zoomVert,e=c.plotLeft,g=c.plotTop,h=c.plotWidth,n=c.plotHeight,p=this.mouseDownX||0,k=this.mouseDownY||0,t=C(d.panning)?d.panning&&d.panning.enabled:d.panning,
298
+ m=d.panKey&&a[d.panKey+"Key"],y=a.chartX,r=a.chartY,D=this.selectionMarker;if(!D||!D.touch)if(y<e?y=e:y>e+h&&(y=e+h),r<g?r=g:r>g+n&&(r=g+n),this.hasDragged=Math.sqrt(Math.pow(p-y,2)+Math.pow(k-r,2)),10<this.hasDragged){var w=c.isInsidePlot(p-e,k-g,{visiblePlotOnly:!0});!c.hasCartesianSeries&&!c.mapView||!this.zoomX&&!this.zoomY||!w||m||D||(this.selectionMarker=D=c.renderer.rect(e,g,b?1:h,f?1:n,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),c.styledMode||D.attr({fill:d.selectionMarkerFill||
299
+ x("#335cad").setOpacity(.25).get()}));D&&b&&(b=y-p,D.attr({width:Math.abs(b),x:(0<b?0:b)+p}));D&&f&&(b=r-k,D.attr({height:Math.abs(b),y:(0<b?0:b)+k}));w&&!D&&t&&c.pan(a,d.panning)}};b.prototype.dragStart=function(a){var c=this.chart;c.mouseIsDown=a.type;c.cancelClick=!1;c.mouseDownX=this.mouseDownX=a.chartX;c.mouseDownY=this.mouseDownY=a.chartY};b.prototype.drop=function(c){var b=this,d=this.chart,f=this.hasPinched;if(this.selectionMarker){var l=this.selectionMarker,n=l.attr?l.attr("x"):l.x,p=l.attr?
300
+ l.attr("y"):l.y,k=l.attr?l.attr("width"):l.width,t=l.attr?l.attr("height"):l.height,y={originalEvent:c,xAxis:[],yAxis:[],x:n,y:p,width:k,height:t},r=!!d.mapView;if(this.hasDragged||f)d.axes.forEach(function(a){if(a.zoomEnabled&&h(a.min)&&(f||b[{xAxis:"zoomX",yAxis:"zoomY"}[a.coll]])&&g(n)&&g(p)){var d=a.horiz,e="touchend"===c.type?a.minPixelPadding:0,l=a.toValue((d?n:p)+e);d=a.toValue((d?n+k:p+t)-e);y[a.coll].push({axis:a,min:Math.min(l,d),max:Math.max(l,d)});r=!0}}),r&&e(d,"selection",y,function(c){d.zoom(a(c,
301
+ f?{animation:!1}:null))});g(d.index)&&(this.selectionMarker=this.selectionMarker.destroy());f&&this.scaleGroups()}d&&g(d.index)&&(m(d.container,{cursor:d._cursor}),d.cancelClick=10<this.hasDragged,d.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=function(a,c,d){var b=this.chart,f=b.hoverPoint;b=b.tooltip;if(f&&b&&b.isStickyOnContact())return f;var e;a.forEach(function(a){var b=!(a.noSharedTooltip&&c)&&0>a.options.findNearestPointBy.indexOf("y");a=
302
+ a.searchPoint(d,b);if((b=C(a,!0)&&a.series)&&!(b=!C(e,!0))){b=e.distX-a.distX;var f=e.dist-a.dist,l=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);b=0<(0!==b&&c?b:0!==f?f:0!==l?l:e.series.index>a.series.index?-1:1)}b&&(e=a)});return e};b.prototype.getChartCoordinatesFromPoint=function(a,c){var d=a.series,b=d.xAxis;d=d.yAxis;var f=a.shapeArgs;if(b&&d){var e=p(a.clientX,a.plotX),q=a.plotY||0;a.isNode&&f&&g(f.x)&&g(f.y)&&(e=f.x,q=f.y);return c?{chartX:d.len+d.pos-q,chartY:b.len+
303
+ b.pos-e}:{chartX:e+b.pos,chartY:q+d.pos}}if(f&&f.x&&f.y)return{chartX:f.x,chartY:f.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,c=t(a);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var d=a.offsetWidth;a=a.offsetHeight;2<d&&2<a&&(this.chartPosition.scaleX=c.width/d,this.chartPosition.scaleY=c.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var c={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(d){c[d.isXAxis?
304
+ "xAxis":"yAxis"].push({axis:d,value:d.toValue(a[d.horiz?"chartX":"chartY"])})});return c};b.prototype.getHoverData=function(a,b,d,g,l,h){var f=[];g=!(!g||!a);var q={chartX:h?h.chartX:void 0,chartY:h?h.chartY:void 0,shared:l};e(this,"beforeGetHoverData",q);var n=b&&!b.stickyTracking?[b]:d.filter(function(a){return q.filter?q.filter(a):a.visible&&!(!l&&a.directTouch)&&p(a.options.enableMouseTracking,!0)&&a.stickyTracking});var k=g||!h?a:this.findNearestKDPoint(n,l,h);b=k&&k.series;k&&(l&&!b.noSharedTooltip?
305
+ (n=d.filter(function(a){return q.filter?q.filter(a):a.visible&&!(!l&&a.directTouch)&&p(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),n.forEach(function(a){var d=c(a.points,function(a){return a.x===k.x&&!a.isNull});C(d)&&(a.chart.isBoosting&&(d=a.getPoint(d)),f.push(d))})):f.push(k));q={hoverPoint:k};e(this,"afterGetHoverData",q);return{hoverPoint:q.hoverPoint,hoverSeries:b,hoverPoints:f}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var c;a&&!c;)c=a.point,a=a.parentNode;return c};
306
+ b.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var c=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!c||!a||c.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+c.index)&&this.inClass(a,"highcharts-tracker")))c.onMouseOut()};b.prototype.inClass=function(a,c){for(var d;a;){if(d=r(a,"class")){if(-1!==d.indexOf(c))return!0;if(-1!==d.indexOf("highcharts-container"))return!1}a=a.parentNode}};b.prototype.init=function(a,c){this.options=
307
+ c;this.chart=a;this.runChartClick=!(!c.chart.events||!c.chart.events.click);this.pinchDown=[];this.lastValidTouch={};A&&(a.tooltip=new A(a,c.tooltip),this.followTouchMove=p(c.tooltip.followTouchMove,!0));this.setDOMEvents()};b.prototype.normalize=function(c,b){var d=c.touches,f=d?d.length?d.item(0):p(d.changedTouches,c.changedTouches)[0]:c;b||(b=this.getChartPosition());d=f.pageX-b.left;f=f.pageY-b.top;d/=b.scaleX;f/=b.scaleY;return a(c,{chartX:Math.round(d),chartY:Math.round(f)})};b.prototype.onContainerClick=
308
+ function(c){var b=this.chart,d=b.hoverPoint;c=this.normalize(c);var f=b.plotLeft,g=b.plotTop;b.cancelClick||(d&&this.inClass(c.target,"highcharts-tracker")?(e(d.series,"click",a(c,{point:d})),b.hoverPoint&&d.firePointEvent("click",c)):(a(c,this.getCoordinates(c)),b.isInsidePlot(c.chartX-f,c.chartY-g,{visiblePlotOnly:!0})&&e(b,"click",c)))};b.prototype.onContainerMouseDown=function(a){var c=1===((a.buttons||a.button)&1);a=this.normalize(a);if(u.isFirefox&&0!==a.button)this.onContainerMouseMove(a);
309
+ if("undefined"===typeof a.button||c)this.zoomOption(a),c&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var c=E[p(b.hoverChartIndex,-1)],d=this.chart.tooltip;d&&d.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),c&&(a.relatedTarget||a.toElement)&&(c.pointer.reset(),c.pointer.chartPosition=void 0),d&&!d.isHidden&&this.reset())};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};
310
+ b.prototype.onContainerMouseMove=function(a){var c=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===c.mouseIsDown||this.touchSelect(a))&&this.drag(a);c.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var c=E[p(b.hoverChartIndex,
311
+ -1)];c&&c.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=function(a){var c=this.chart,d=this.chartPosition;a=this.normalize(a,d);var b=c.tooltip;!d||b&&b.isStickyOnContact()||c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||
312
+ this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var c=E[p(b.hoverChartIndex,-1)];c&&c.pointer.drop(a)};b.prototype.pinch=function(c){var b=this,d=b.chart,f=b.pinchDown,g=c.touches||[],h=g.length,n=b.lastValidTouch,k=b.hasZoom,t={},m=1===h&&(b.inClass(c.target,"highcharts-tracker")&&d.runTrackerClick||b.runChartClick),y={},r=b.selectionMarker;1<h?b.initiated=!0:1===h&&this.followTouchMove&&(b.initiated=!1);k&&b.initiated&&!m&&!1!==c.cancelable&&
313
+ c.preventDefault();[].map.call(g,function(a){return b.normalize(a)});"touchstart"===c.type?([].forEach.call(g,function(a,c){f[c]={chartX:a.chartX,chartY:a.chartY}}),n.x=[f[0].chartX,f[1]&&f[1].chartX],n.y=[f[0].chartY,f[1]&&f[1].chartY],d.axes.forEach(function(a){if(a.zoomEnabled){var c=d.bounds[a.horiz?"h":"v"],b=a.minPixelPadding,f=a.toPixels(Math.min(p(a.options.min,a.dataMin),a.dataMin)),e=a.toPixels(Math.max(p(a.options.max,a.dataMax),a.dataMax)),g=Math.max(f,e);c.min=Math.min(a.pos,Math.min(f,
314
+ e)-b);c.max=Math.max(a.pos+a.len,g+b)}}),b.res=!0):b.followTouchMove&&1===h?this.runPointActions(b.normalize(c)):f.length&&(e(d,"touchpan",{originalEvent:c},function(){r||(b.selectionMarker=r=a({destroy:w,touch:!0},d.plotBox));b.pinchTranslate(f,g,t,r,y,n);b.hasPinched=k;b.scaleGroups(t,y)}),b.res&&(b.res=!1,this.reset(!1,0)))};b.prototype.pinchTranslate=function(a,c,d,b,e,g){this.zoomHor&&this.pinchTranslateDirection(!0,a,c,d,b,e,g);this.zoomVert&&this.pinchTranslateDirection(!1,a,c,d,b,e,g)};b.prototype.pinchTranslateDirection=
315
+ function(a,c,d,b,e,g,h,n){var f=this.chart,l=a?"x":"y",q=a?"X":"Y",p="chart"+q,k=a?"width":"height",t=f["plot"+(a?"Left":"Top")],m=f.inverted,z=f.bounds[a?"h":"v"],y=1===c.length,r=c[0][p],D=!y&&c[1][p];c=function(){"number"===typeof I&&20<Math.abs(r-D)&&(x=n||Math.abs(w-I)/Math.abs(r-D));G=(t-w)/x+r;C=f["plot"+(a?"Width":"Height")]/x};var C,G,x=n||1,w=d[0][p],I=!y&&d[1][p];c();d=G;if(d<z.min){d=z.min;var u=!0}else d+C>z.max&&(d=z.max-C,u=!0);u?(w-=.8*(w-h[l][0]),"number"===typeof I&&(I-=.8*(I-h[l][1])),
316
+ c()):h[l]=[w,I];m||(g[l]=G-t,g[k]=C);g=m?1/x:x;e[k]=C;e[l]=d;b[m?a?"scaleY":"scaleX":"scale"+q]=x;b["translate"+q]=g*t+(w-g*r)};b.prototype.reset=function(a,c){var d=this.chart,b=d.hoverSeries,e=d.hoverPoint,f=d.hoverPoints,g=d.tooltip,h=g&&g.shared?f:e;a&&h&&D(h).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)g&&h&&D(h).length&&(g.refresh(h),g.shared&&f?f.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,
317
+ a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):e&&(e.setState(e.state,!0),d.axes.forEach(function(a){a.crosshair&&e.series[a.coll]===a&&a.drawCrosshair(null,e)})));else{if(e)e.onMouseOut();f&&f.forEach(function(a){a.setState()});if(b)b.onMouseOut();g&&g.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=d.hoverPoints=d.hoverPoint=null}};b.prototype.runPointActions=function(a,e){var d=this.chart,
318
+ f=d.tooltip&&d.tooltip.options.enabled?d.tooltip:void 0,g=f?f.shared:!1,h=e||d.hoverPoint,n=h&&h.series||d.hoverSeries;e=this.getHoverData(h,n,d.series,(!a||"touchmove"!==a.type)&&(!!e||n&&n.directTouch&&this.isDirectTouch),g,a);h=e.hoverPoint;n=e.hoverSeries;var q=e.hoverPoints;e=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split;g=g&&n&&!n.noSharedTooltip;if(h&&(h!==d.hoverPoint||f&&f.isHidden)){(d.hoverPoints||[]).forEach(function(a){-1===q.indexOf(a)&&a.setState()});if(d.hoverSeries!==
319
+ n)n.onMouseOver();this.applyInactiveState(q);(q||[]).forEach(function(a){a.setState("hover")});d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut");if(!h.series)return;d.hoverPoints=q;d.hoverPoint=h;h.firePointEvent("mouseOver");f&&f.refresh(g?q:h,a)}else e&&f&&!f.isHidden&&(h=f.getAnchor([{}],a),d.isInsidePlot(h[0],h[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=k(d.container.ownerDocument,"mousemove",function(a){var c=E[b.hoverChartIndex];
320
+ if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));d.axes.forEach(function(b){var e=p((b.crosshair||{}).snap,!0),f;e&&((f=d.hoverPoint)&&f.series[b.coll]===b||(f=c(q,function(a){return a.series[b.coll]===b})));f||!e?b.drawCrosshair(a,f):b.hideCrosshair()})};b.prototype.scaleGroups=function(a,c){var d=this.chart;d.series.forEach(function(b){var e=a||b.getPlotBox();b.group&&(b.xAxis&&b.xAxis.zoomEnabled||d.mapView)&&(b.group.attr(e),b.markerGroup&&(b.markerGroup.attr(e),
321
+ b.markerGroup.clip(c?d.clipRect:null)),b.dataLabelsGroup&&b.dataLabelsGroup.attr(e))});d.clipRect.attr(c||d.clipBox)};b.prototype.setDOMEvents=function(){var a=this,c=this.chart.container,d=c.ownerDocument;c.onmousedown=this.onContainerMouseDown.bind(this);c.onmousemove=this.onContainerMouseMove.bind(this);c.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(k(c,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(k(c,"mouseleave",this.onContainerMouseLeave.bind(this)));
322
+ b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=k(d,"mouseup",this.onDocumentMouseUp.bind(this)));for(var e=this.chart.renderTo.parentElement;e&&"BODY"!==e.tagName;)this.eventsToUnbind.push(k(e,"scroll",function(){delete a.chartPosition})),e=e.parentElement;u.hasTouch&&(this.eventsToUnbind.push(k(c,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(k(c,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=
323
+ k(d,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,c=u.charts[p(b.hoverChartIndex,-1)];if(c&&c!==a)c.pointer.onContainerMouseLeave({relatedTarget:!0});c&&c.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,c){var d=this.chart,b;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(b=d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0}))&&!d.openMenu){c&&this.runPointActions(a);
324
+ if("touchmove"===a.type){c=this.pinchDown;var e=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-a.chartX,2)+Math.pow(c[0].chartY-a.chartY,2)):!1}p(e,!0)&&this.pinch(a)}else c&&this.reset();else 2===a.touches.length&&this.pinch(a)};b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var c=this.chart,d=c.options.chart;c=c.inverted;var b=d.zoomType||"";/touch/.test(a.type)&&(b=p(d.pinchType,b));this.zoomX=
325
+ a=/x/.test(b);this.zoomY=d=/y/.test(b);this.zoomHor=a&&!c||d&&c;this.zoomVert=d&&!c||a&&c;this.hasZoom=a||d};return b}();"";return b});F(b,"Core/MSPointer.js",[b["Core/Globals.js"],b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,u,A){function x(){var a=[];a.item=function(a){return this[a]};c(g,function(c){a.push({pageX:c.pageX,pageY:c.pageY,target:c.target})});return a}function v(a,c,b,e){var g=w[u.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!g||
326
+ (g=g.pointer,e(a),g[c]({type:b,target:a.currentTarget,preventDefault:r,touches:x()}))}var E=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 e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),w=b.charts,k=b.doc,r=b.noop,m=b.win,h=A.addEvent,a=A.css,
327
+ c=A.objectEach,e=A.removeEvent,g={},C=!!m.PointerEvent;return function(c){function t(){return null!==c&&c.apply(this,arguments)||this}E(t,c);t.isRequired=function(){return!(b.hasTouch||!m.PointerEvent&&!m.MSPointerEvent)};t.prototype.batchMSEvents=function(a){a(this.chart.container,C?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,C?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(k,C?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};t.prototype.destroy=
328
+ function(){this.batchMSEvents(e);c.prototype.destroy.call(this)};t.prototype.init=function(b,e){c.prototype.init.call(this,b,e);this.hasZoom&&a(b.container,{"-ms-touch-action":"none","touch-action":"none"})};t.prototype.onContainerPointerDown=function(a){v(a,"onContainerTouchStart","touchstart",function(a){g[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};t.prototype.onContainerPointerMove=function(a){v(a,"onContainerTouchMove","touchmove",function(a){g[a.pointerId]={pageX:a.pageX,
329
+ pageY:a.pageY};g[a.pointerId].target||(g[a.pointerId].target=a.currentTarget)})};t.prototype.onDocumentPointerUp=function(a){v(a,"onDocumentTouchEnd","touchend",function(a){delete g[a.pointerId]})};t.prototype.setDOMEvents=function(){c.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)};return t}(u)});F(b,"Core/Legend/Legend.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Series/Point.js"],b["Core/Renderer/RendererUtilities.js"],
330
+ b["Core/Utilities.js"]],function(b,u,A,B,v,E){var x=b.animObject,k=b.setAnimation,r=u.format;b=A.isFirefox;var m=A.marginNames;A=A.win;var h=v.distribute,a=E.addEvent,c=E.createElement,e=E.css,g=E.defined,C=E.discardElement,y=E.find,t=E.fireEvent,p=E.isNumber,D=E.merge,n=E.pick,f=E.relativeLength,q=E.stableSort,d=E.syncTimeout;v=E.wrap;E=function(){function b(a,c){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=
331
+ this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,c)}b.prototype.init=function(c,d){this.chart=c;this.setOptions(d);d.enabled&&(this.render(),a(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),
332
+ 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 c=n(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=D(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=c;this.initialItemY=c-5;this.symbolWidth=n(a.symbolWidth,
333
+ 16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(a,c){var d=this.chart;this.setOptions(D(!0,this.options,a));this.destroy();d.isDirtyLegend=d.isDirtyBox=!0;n(c,!0)&&d.redraw();t(this,"afterUpdate")};b.prototype.colorizeItem=function(a,c){a.legendGroup[c?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,b=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color;
334
+ d=c?d.itemStyle.color:g;var l=c?a.color||g:g,h=a.options&&a.options.marker,n={fill:l};b&&b.css({fill:d,color:d});e&&e.attr({stroke:l});f&&(h&&f.isMarker&&(n=a.pointAttribs(),c||(n.stroke=n.fill=g)),f.attr(n))}t(this,"afterColorizeItem",{item:a,visible:c})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(a){var c=this,d=this.options,b=d.symbolPadding,e=!d.rtl,f=a._legendItemPos;d=
335
+ f[0];f=f[1];var l=a.checkbox,h=a.legendGroup;h&&h.element&&(b={translateX:e?d:this.legendWidth-d-2*b-4,translateY:f},e=function(){t(c,"afterPositionItem",{item:a})},g(h.translateY)?h.animate(b,void 0,e):(h.attr(b),e()));l&&(l.x=d,l.y=f)};b.prototype.destroyItem=function(a){var c=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&(a[c]=a[c].destroy())});c&&C(a.checkbox)};b.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(c){["legendItem",
336
+ "legendGroup"].forEach(a,c)});"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,c=this.clipHeight||this.legendHeight,d=this.titleHeight;if(a){var b=a.translateY;this.allItems.forEach(function(f){var g=f.checkbox;if(g){var l=b+d+g.y+(this.scrollOffset||0)+3;e(g,{left:a.translateX+f.checkboxOffset+g.x-20+"px",top:l+"px",display:this.proximate||l>b-6&&l<b+c-6?"":"none"})}},this)}};
337
+ b.prototype.renderTitle=function(){var a=this.options,c=this.padding,d=a.title,b=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,c-3,c-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),b=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};b.prototype.setText=function(a){var c=
338
+ this.options;a.legendItem.attr({text:c.labelFormat?r(c.labelFormat,a,this.chart):c.labelFormatter.call(a)})};b.prototype.renderItem=function(a){var c=this.chart,d=c.renderer,b=this.options,e=this.symbolWidth,f=b.symbolPadding||0,g=this.itemStyle,l=this.itemHiddenStyle,h="horizontal"===b.layout?n(b.itemDistance,20):0,q=!b.rtl,p=!a.series,k=!p&&a.series.drawLegendSymbol?a.series:a,t=k.options,m=this.createCheckboxForItem&&t&&t.showCheckbox,r=b.useHTML,y=a.options.className,z=a.legendItem;t=e+f+h+(m?
339
+ 20:0);z||(a.legendGroup=d.g("legend-item").addClass("highcharts-"+k.type+"-series highcharts-color-"+a.colorIndex+(y?" "+y:"")+(p?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=z=d.text("",q?e+f:-f,this.baseline||0,r),c.styledMode||z.css(D(a.visible?g:l)),z.attr({align:q?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(c.styledMode?12:g.fontSize,z),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,z.attr("y",this.baseline),
340
+ this.symbolHeight=b.symbolHeight||this.fontMetrics.f,b.squareSymbol&&(this.symbolWidth=n(b.symbolWidth,Math.max(this.symbolHeight,16)),t=this.symbolWidth+f+h+(m?20:0),q&&z.attr("x",this.symbolWidth+f))),k.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,z,r));m&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!c.styledMode&&g.width||z.css({width:(b.itemWidth||this.widthOption||c.spacingBox.width)-t+"px"});this.setText(a);c=z.getBBox();
341
+ a.itemWidth=a.checkboxOffset=b.itemWidth||a.legendItemWidth||c.width+t;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||c.height||this.symbolHeight)};b.prototype.layoutItem=function(a){var c=this.options,d=this.padding,b="horizontal"===c.layout,e=a.itemHeight,f=this.itemMarginBottom,g=this.itemMarginTop,l=b?n(c.itemDistance,20):0,h=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:
342
+ a.itemWidth;b&&this.itemX-d+c>h&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+f),this.lastLineHeight=0);this.lastItemY=g+this.itemY+f;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=c:(this.itemY+=g+e+f,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(a.checkbox?0:l):c)+d,this.offsetWidth)};b.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(c){var d=c&&
343
+ c.options;c&&n(d.showInLegend,g(d.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===d.legendType?c.data:c)))});t(this,"afterGetAllItems",{allItems:a});return a};b.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};b.prototype.adjustMargins=function(a,c){var d=this.chart,b=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,
344
+ l){f.test(e)&&!g(a[l])&&(d[m[l]]=Math.max(d[m[l]],d.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*b[l%2?"x":"y"]+n(b.margin,12)+c[l]+(d.titleOffset[l]||0)))})};b.prototype.proximatePositions=function(){var a=this.chart,c=[],d="left"===this.options.align;this.allItems.forEach(function(b){var e;var f=d;if(b.yAxis){b.xAxis.options.reversed&&(f=!f);b.points&&(e=y(f?b.points:b.points.slice(0).reverse(),function(a){return p(a.plotY)}));f=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;
345
+ var g=b.yAxis.top-a.plotTop;b.visible?(e=e?e.plotY:b.yAxis.height,e+=g-.3*f):e=g+b.yAxis.height;c.push({target:e,size:f,item:b})}},this);h(c,a.plotHeight).forEach(function(c){c.item._legendItemPos&&(c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos)})};b.prototype.render=function(){var a=this.chart,c=a.renderer,d=this.options,b=this.padding,e=this.getAllItems(),g=this.group,h=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=f(d.width,a.spacingBox.width-
346
+ b);var n=a.spacingBox.width-2*b-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(n/=2);this.maxLegendWidth=this.widthOption||n;g||(this.group=g=c.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(g),this.scrollGroup=c.g().add(this.contentGroup));this.renderTitle();q(e,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});d.reversed&&e.reverse();this.allItems=e;this.display=n=!!e.length;
347
+ this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e.forEach(this.renderItem,this);e.forEach(this.layoutItem,this);e=(this.widthOption||this.offsetWidth)+b;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=b;h||(this.box=h=c.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(g),h.isNew=!0);a.styledMode||h.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0<e&&
348
+ 0<p&&(h[h.isNew?"attr":"animate"](h.crisp.call({},{x:0,y:0,width:e,height:p},h.strokeWidth())),h.isNew=!1);h[n?"show":"hide"]();a.styledMode&&"none"===g.getStyle("display")&&(e=p=0);this.legendWidth=e;this.legendHeight=p;n&&this.align();this.proximate||this.positionItems();t(this,"afterRender")};b.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var c=this.chart,d=this.options,b=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?b+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&
349
+ 0<c.titleOffset[2]&&(b-=c.titleOffset[2]);b!==a.y&&(a=D(a,{y:b}));this.group.align(D(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":d.verticalAlign}),!0,a)};b.prototype.handleOverflow=function(a){var c=this,d=this.chart,b=d.renderer,e=this.options,f=e.y,g="top"===e.verticalAlign,h=this.padding,l=e.maxHeight,p=e.navigation,q=n(p.animation,!0),k=p.arrowSize||12,t=this.pages,m=this.allItems,r=function(a){"number"===typeof a?x.attr({height:a}):x&&(c.clipRect=x.destroy(),
350
+ c.contentGroup.clip());c.contentGroup.div&&(c.contentGroup.div.style.clip=a?"rect("+h+"px,9999px,"+(h+a)+"px,0)":"auto")},z=function(a){c[a]=b.circle(0,0,1.3*k).translate(k/2,k/2).add(C);d.styledMode||c[a].attr("fill","rgba(0,0,0,0.0001)");return c[a]},y,D;f=d.spacingBox.height+(g?-f:f)-h;var C=this.nav,x=this.clipRect;"horizontal"!==e.layout||"middle"===e.verticalAlign||e.floating||(f/=2);l&&(f=Math.min(f,l));t.length=0;a&&0<f&&a>f&&!1!==p.enabled?(this.clipHeight=y=Math.max(f-20-this.titleHeight-
351
+ h,0),this.currentPage=n(this.currentPage,1),this.fullHeight=a,m.forEach(function(a,c){var d=a._legendItemPos[1],b=Math.round(a.legendItem.getBBox().height),e=t.length;if(!e||d-t[e-1]>y&&(D||d)!==t[e-1])t.push(D||d),e++;a.pageIx=e-1;D&&(m[c-1].pageIx=e-1);c===m.length-1&&d+b-t[e-1]>y&&b<=y&&(t.push(d),a.pageIx=e);d!==D&&(D=d)}),x||(x=c.clipRect=b.clipRect(0,h,9999,0),c.contentGroup.clip(x)),r(y),C||(this.nav=C=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,k,k).add(C),z("upTracker").on("click",
352
+ function(){c.scroll(-1,q)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),d.styledMode||this.pager.css(p.style),this.pager.add(C),this.down=b.symbol("triangle-down",0,0,k,k).add(C),z("downTracker").on("click",function(){c.scroll(1,q)})),c.scroll(0),a=f):C&&(r(),this.nav=C.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};b.prototype.scroll=function(a,c){var b=this,e=this.chart,f=this.pages,g=f.length,h=this.clipHeight,l=this.options.navigation,p=this.pager,
353
+ q=this.padding,m=this.currentPage+a;m>g&&(m=g);0<m&&("undefined"!==typeof c&&k(c,e),this.nav.attr({translateX:q,translateY:h+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===m?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),p.attr({text:m+"/"+g}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":m===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},
354
+ this),e.styledMode||(this.up.attr({fill:1===m?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===m?"default":"pointer"}),this.down.attr({fill:m===g?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:m===g?"default":"pointer"})),this.scrollOffset=-f[m-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=m,this.positionCheckboxes(),a=x(n(c,e.renderer.globalAnimation,!0)),d(function(){t(b,"afterScroll",{currentPage:m})},a.duration))};b.prototype.setItemEvents=
355
+ function(a,c,d){var b=this,e=b.chart.renderer.boxWrapper,f=a instanceof B,g="highcharts-legend-"+(f?"point":"series")+"-active",h=b.chart.styledMode,l=function(c){b.allItems.forEach(function(d){a!==d&&[d].concat(d.linkedSeries||[]).forEach(function(a){a.setState(c,!f)})})};(d?[c,a.legendSymbol]:[a.legendGroup]).forEach(function(d){if(d)d.on("mouseover",function(){a.visible&&l("inactive");a.setState("hover");a.visible&&e.addClass(g);h||c.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||
356
+ c.css(D(a.visible?b.itemStyle:b.itemHiddenStyle));l("");e.removeClass(g);a.setState()}).on("click",function(c){var d=function(){a.setVisible&&a.setVisible();l(a.visible?"inactive":"")};e.removeClass(g);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,d):t(a,"legendItemClick",c,d)})})};b.prototype.createCheckboxForItem=function(d){d.checkbox=c("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:d.selected,defaultChecked:d.selected},this.options.itemCheckboxStyle,
357
+ this.chart.container);a(d.checkbox,"click",function(a){t(d.series||d,"checkboxClick",{checked:a.target.checked,item:d},function(){d.select()})})};return b}();(/Trident\/7\.0/.test(A.navigator&&A.navigator.userAgent)||b)&&v(E.prototype,"positionItem",function(a,c){var d=this,b=function(){c._legendItemPos&&a.call(d,c)};b();d.bubbleLegend||setTimeout(b)});"";return E});F(b,"Core/Series/SeriesRegistry.js",[b["Core/Globals.js"],b["Core/DefaultOptions.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],
358
+ function(b,u,A,B){var x=u.defaultOptions,E=B.error,w=B.extendClass,k=B.merge,r;(function(m){function h(a,c){var b=x.plotOptions||{},g=c.defaultOptions;c.prototype.pointClass||(c.prototype.pointClass=A);c.prototype.type=a;g&&(b[a]=g);m.seriesTypes[a]=c}m.seriesTypes=b.seriesTypes;m.getSeries=function(a,c){void 0===c&&(c={});var b=a.options.chart;b=c.type||b.type||b.defaultSeriesType||"";var g=m.seriesTypes[b];m||E(17,!0,a,{missingModuleFor:b});b=new g;"function"===typeof b.init&&b.init(a,c);return b};
359
+ m.registerSeriesType=h;m.seriesType=function(a,c,b,g,r){var e=x.plotOptions||{};c=c||"";e[a]=k(e[c],b);h(a,w(m.seriesTypes[c]||function(){},g));m.seriesTypes[a].prototype.type=a;r&&(m.seriesTypes[a].prototype.pointClass=w(A,r));return m.seriesTypes[a]}})(r||(r={}));return r});F(b,"Core/Chart/Chart.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/FormatUtilities.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Legend/Legend.js"],b["Core/MSPointer.js"],b["Core/DefaultOptions.js"],
360
+ b["Core/Pointer.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Time.js"],b["Core/Utilities.js"],b["Core/Renderer/HTML/AST.js"]],function(b,u,A,B,v,E,w,k,r,m,h,a,c,e,g){var C=b.animate,y=b.animObject,t=b.setAnimation,p=A.numberFormat,D=B.registerEventOptions,n=v.charts,f=v.doc,q=v.marginNames,d=v.svg,z=v.win,l=k.defaultOptions,x=k.defaultTime,K=h.seriesTypes,I=e.addEvent,H=e.attr,N=e.cleanRecursively,aa=e.createElement,Q=
361
+ e.css,S=e.defined,X=e.discardElement,F=e.erase,J=e.error,ca=e.extend,ha=e.find,M=e.fireEvent,Y=e.getStyle,L=e.isArray,T=e.isNumber,R=e.isObject,V=e.isString,U=e.merge,W=e.objectEach,O=e.pick,da=e.pInt,ea=e.relativeLength,ia=e.removeEvent,ba=e.splat,fa=e.syncTimeout,ja=e.uniqueKey;b=function(){function b(a,c,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=
362
+ this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(a,c,d)}b.chart=function(a,c,d){return new b(a,c,d)};b.prototype.getArgs=function(a,c,d){V(a)||a.nodeName?(this.renderTo=a,this.init(c,d)):this.init(a,c)};b.prototype.init=
363
+ function(a,d){var b=a.plotOptions||{};M(this,"init",{args:arguments},function(){var e=U(l,a),f=e.chart;W(e.plotOptions,function(a,c){R(a)&&(a.tooltip=b[c]&&U(b[c].tooltip)||void 0)});e.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=d;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new c(a.time):v.time;
364
+ this.numberFormatter=f.numberFormatter||p;this.styledMode=f.styledMode;this.hasCartesianSeries=f.showAxes;this.index=n.length;n.push(this);v.chartCount++;D(this,f);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;M(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(a){var c=this.options.chart;c=a.type||c.type||c.defaultSeriesType;var d=K[c];d||J(17,!0,this,{missingModuleFor:c});c=new d;"function"===typeof c.init&&c.init(this,a);return c};b.prototype.setSeriesData=
365
+ function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};b.prototype.orderSeries=function(a){var c=this.series;a=a||0;for(var d=c.length;a<d;++a)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};b.prototype.isInsidePlot=function(a,c,d){void 0===
366
+ d&&(d={});var b=this.inverted,e=this.plotBox,f=this.plotLeft,g=this.plotTop,h=this.scrollablePlotBox,l=0;var n=0;d.visiblePlotOnly&&this.scrollingContainer&&(n=this.scrollingContainer,l=n.scrollLeft,n=n.scrollTop);var p=d.series;e=d.visiblePlotOnly&&h||e;h=d.inverted?c:a;c=d.inverted?a:c;a={x:h,y:c,isInsidePlot:!0};if(!d.ignoreX){var q=p&&(b?p.yAxis:p.xAxis)||{pos:f,len:Infinity};h=d.paneCoordinates?q.pos+h:f+h;h>=Math.max(l+f,q.pos)&&h<=Math.min(l+f+e.width,q.pos+q.len)||(a.isInsidePlot=!1)}!d.ignoreY&&
367
+ a.isInsidePlot&&(b=p&&(b?p.xAxis:p.yAxis)||{pos:g,len:Infinity},d=d.paneCoordinates?b.pos+c:g+c,d>=Math.max(n+g,b.pos)&&d<=Math.min(n+g+e.height,b.pos+b.len)||(a.isInsidePlot=!1));M(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){M(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],d=this.series,b=this.pointer,e=this.legend,f=this.userOptions.legend,g=this.renderer,h=g.isHidden(),l=[],n=this.isDirtyBox,p=this.isDirtyLegend;this.setResponsive&&
368
+ this.setResponsive(!1);t(this.hasRendered?a:!1,this);h&&this.temporaryDisplay();this.layOutTitles();for(a=d.length;a--;){var q=d[a];if(q.options.stacking||q.options.centerInCategory){var k=!0;if(q.isDirty){var m=!0;break}}}if(m)for(a=d.length;a--;)q=d[a],q.options.stacking&&(q.isDirty=!0);d.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),p=!0):f&&(f.labelFormatter||f.labelFormat)&&(p=!0));a.isDirtyData&&M(a,"updatedData")});p&&e&&
369
+ e.options.enabled&&(e.render(),this.isDirtyLegend=!1);k&&this.getStacks();c.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(n=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,l.push(function(){M(a,"afterSetExtremes",ca(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(n||k)&&a.redraw()});n&&this.drawChartBox();M(this,"predraw");d.forEach(function(a){(n||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});b&&b.reset(!0);
370
+ g.draw();M(this,"redraw");M(this,"render");h&&this.temporaryDisplay(!0);l.forEach(function(a){a.call()})};b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var d=this.series,b=ha(this.axes,c)||ha(this.series,c),e=0;!b&&e<d.length;e++)b=ha(d[e].points||[],c);return b};b.prototype.getAxes=function(){var a=this,c=this.options,d=c.xAxis=ba(c.xAxis||{});c=c.yAxis=ba(c.yAxis||{});M(this,"getAxes");d.forEach(function(a,c){a.index=c;a.isX=!0});c.forEach(function(a,
371
+ c){a.index=c});d.concat(c).forEach(function(c){new u(a,c)});M(this,"afterGetAxes")};b.prototype.getSelectedPoints=function(){return this.series.reduce(function(a,c){c.getPointsCollection().forEach(function(c){O(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,d){this.applyDescription("title",a);this.applyDescription("subtitle",c);this.applyDescription("caption",
372
+ void 0);this.layOutTitles(d)};b.prototype.applyDescription=function(a,c){var d=this,b="title"===a?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};b=this.options[a]=U(!this.styledMode&&{style:b},this.options[a],c);var e=this[a];e&&c&&(this[a]=e=e.destroy());b&&!e&&(e=this.renderer.text(b.text,0,0,b.useHTML).attr({align:b.align,"class":"highcharts-"+a,zIndex:b.zIndex||4}).add(),e.update=function(c){d[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},
373
+ this.styledMode||e.css(b.style),this[a]=e)};b.prototype.layOutTitles=function(a){var c=[0,0,0],d=this.renderer,b=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var e=this[a],f=this.options[a],g=f.verticalAlign||"top";a="title"===a?"top"===g?-3:0:"top"===g?c[0]+2:0;var h;if(e){this.styledMode||(h=f.style&&f.style.fontSize);h=d.fontMetrics(h,e).b;e.css({width:(f.width||b.width+(f.widthAdjust||0))+"px"});var l=Math.round(e.getBBox(f.useHTML).height);e.align(ca({y:"bottom"===g?h:a+
374
+ h,height:l},f),!1,"spacingBox");f.floating||("top"===g?c[0]=Math.ceil(c[0]+l):"bottom"===g&&(c[2]=Math.ceil(c[2]+l)))}},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 e=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;M(this,"afterLayOutTitles");!this.isDirtyBox&&e&&(this.isDirtyBox=this.isDirtyLegend=e,this.hasRendered&&O(a,!0)&&
375
+ this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;var d=this.renderTo;S(c)||(this.containerWidth=Y(d,"width"));S(a)||(this.containerHeight=Y(d,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ea(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&&(Q(c,c.hcOrigStyle),delete c.hcOrigStyle),
376
+ c.hcOrigDetached&&(f.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){f.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,f.body.appendChild(c));if("none"===Y(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),Q(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===f.body)break}};b.prototype.setClassName=
377
+ function(a){this.container.className="highcharts-container "+(a||"")};b.prototype.getContainer=function(){var c=this.options,b=c.chart,e=ja(),g,h=this.renderTo;h||(this.renderTo=h=b.renderTo);V(h)&&(this.renderTo=h=f.getElementById(h));h||J(13,!0,this);var l=da(H(h,"data-highcharts-chart"));T(l)&&n[l]&&n[l].hasRendered&&n[l].destroy();H(h,"data-highcharts-chart",this.index);h.innerHTML="";b.skipClone||h.offsetWidth||this.temporaryDisplay();this.getChartSize();l=this.chartWidth;var p=this.chartHeight;
378
+ Q(h,{overflow:"hidden"});this.styledMode||(g=ca({position:"relative",overflow:"hidden",width:l+"px",height:p+"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=e=aa("div",{id:e},g,h);this._cursor=e.style.cursor;this.renderer=new (b.renderer||!d?m.getRendererType(b.renderer):a)(e,l,p,void 0,b.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);t(void 0,
379
+ this);this.setClassName(b.className);if(this.styledMode)for(var q in c.defs)this.renderer.definition(c.defs[q]);else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;M(this,"afterGetContainer")};b.prototype.getMargins=function(a){var c=this.spacing,d=this.margin,b=this.titleOffset;this.resetMargins();b[0]&&!S(d[0])&&(this.plotTop=Math.max(this.plotTop,b[0]+c[0]));b[2]&&!S(d[2])&&(this.marginBottom=Math.max(this.marginBottom,b[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(d,
380
+ c);M(this,"getMargins");a||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var a=this,c=a.axisOffset=[0,0,0,0],d=a.colorAxis,b=a.margin,e=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?e(a.axes):d&&d.length&&e(d);q.forEach(function(d,e){S(b[e])||(a[d]+=c[e])});a.setChartSize()};b.prototype.reflow=function(a){var c=this,d=c.options.chart,b=c.renderTo,g=S(d.width)&&S(d.height),h=d.width||Y(b,"width");d=d.height||Y(b,"height");b=a?a.target:z;delete c.pointer.chartPosition;
381
+ if(!g&&!c.isPrinting&&h&&d&&(b===z||b===f)){if(h!==c.containerWidth||d!==c.containerHeight)e.clearTimeout(c.reflowTimeout),c.reflowTimeout=fa(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=h;c.containerHeight=d}};b.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=I(z,"resize",function(a){c.options&&c.reflow(a)}),I(this,"destroy",this.unbindReflow))};b.prototype.setSize=
382
+ function(a,c,d){var b=this,e=b.renderer;b.isResizing+=1;t(d,b);d=e.globalAnimation;b.oldChartHeight=b.chartHeight;b.oldChartWidth=b.chartWidth;"undefined"!==typeof a&&(b.options.chart.width=a);"undefined"!==typeof c&&(b.options.chart.height=c);b.getChartSize();b.styledMode||(d?C:Q)(b.container,{width:b.chartWidth+"px",height:b.chartHeight+"px"},d);b.setChartSize(!0);e.setSize(b.chartWidth,b.chartHeight,d);b.axes.forEach(function(a){a.isDirty=!0;a.setScale()});b.isDirtyLegend=!0;b.isDirtyBox=!0;b.layOutTitles();
383
+ b.getMargins();b.redraw(d);b.oldChartHeight=null;M(b,"resize");fa(function(){b&&M(b,"endResize",null,function(){--b.isResizing})},y(d).duration)};b.prototype.setChartSize=function(a){var c=this.inverted,d=this.renderer,b=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,l,n,p,q;this.plotLeft=l=Math.round(this.plotLeft);this.plotTop=n=Math.round(this.plotTop);this.plotWidth=p=Math.max(0,Math.round(b-l-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(e-
384
+ n-this.marginBottom));this.plotSizeX=c?q:p;this.plotSizeY=c?p:q;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=d.spacingBox={x:g[3],y:g[0],width:b-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=d.plotBox={x:l,y:n,width:p,height:q};c=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(c,h[3])/2);e=Math.ceil(Math.max(c,h[0])/2);this.clipBox={x:b,y:e,width:Math.floor(this.plotSizeX-Math.max(c,h[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,h[2])/2-e))};a||(this.axes.forEach(function(a){a.setAxisSize();
385
+ a.setAxisTranslation()}),d.alignElements());M(this,"afterSetChartSize",{skipAxes:a})};b.prototype.resetMargins=function(){M(this,"resetMargins");var a=this,c=a.options.chart;["margin","spacing"].forEach(function(d){var b=c[d],e=R(b)?b:[b,b,b,b];["Top","Right","Bottom","Left"].forEach(function(b,f){a[d][f]=O(c[d+b],e[f])})});q.forEach(function(c,d){a[c]=O(a.margin[d],a.spacing[d])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,
386
+ d=this.chartWidth,b=this.chartHeight,e=this.styledMode,f=this.plotBGImage,g=a.backgroundColor,h=a.plotBackgroundColor,l=a.plotBackgroundImage,n=this.plotLeft,p=this.plotTop,q=this.plotWidth,k=this.plotHeight,t=this.plotBox,m=this.clipRect,r=this.clipBox,z=this.chartBackground,y=this.plotBackground,D=this.plotBorder,C,L="animate";z||(this.chartBackground=z=c.rect().addClass("highcharts-background").add(),L="attr");if(e)var x=C=z.strokeWidth();else{x=a.borderWidth||0;C=x+(a.shadow?8:0);g={fill:g||"none"};
387
+ if(x||z["stroke-width"])g.stroke=a.borderColor,g["stroke-width"]=x;z.attr(g).shadow(a.shadow)}z[L]({x:C/2,y:C/2,width:d-C-x%2,height:b-C-x%2,r:a.borderRadius});L="animate";y||(L="attr",this.plotBackground=y=c.rect().addClass("highcharts-plot-background").add());y[L](t);e||(y.attr({fill:h||"none"}).shadow(a.plotShadow),l&&(f?(l!==f.attr("href")&&f.attr("href",l),f.animate(t)):this.plotBGImage=c.image(l,n,p,q,k).add()));m?m.animate({width:r.width,height:r.height}):this.clipRect=c.clipRect(r);L="animate";
388
+ D||(L="attr",this.plotBorder=D=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());e||D.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});D[L](D.crisp({x:n,y:p,width:q,height:k},-D.strokeWidth()));this.isDirtyBox=!1;M(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var a=this,c=a.options.chart,d=a.options.series,b,e,f;["inverted","angular","polar"].forEach(function(g){e=K[c.type||c.defaultSeriesType];f=c[g]||e&&e.prototype[g];for(b=d&&
389
+ d.length;!f&&b--;)(e=K[d[b].type])&&e.prototype[g]&&(f=!0);a[g]=f})};b.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var d=c.options.linkedTo;V(d)&&(d=":previous"===d?a.series[c.index-1]:a.get(d))&&d.linkedParent!==c&&(d.linkedSeries.push(c),c.linkedParent=d,d.enabledDataSorting&&c.setDataSortingOptions(),c.visible=O(c.options.visible,d.options.visible,c.visible))});M(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
390
+ a.render()})};b.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(d){var b=ca(c.style,d.style),e=da(b.left)+a.plotLeft,f=da(b.top)+a.plotTop+12;delete b.left;delete b.top;a.renderer.text(d.html,e,f).attr({zIndex:2}).css(b).add()})};b.prototype.render=function(){var a=this.axes,c=this.colorAxis,d=this.renderer,b=this.options,e=function(a){a.forEach(function(a){a.visible&&a.render()})},f=0;this.setTitle();this.legend=new E(this,b.legend);this.getStacks&&
391
+ this.getStacks();this.getMargins(!0);this.setChartSize();b=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return f=21,!0});var g=this.plotHeight=Math.max(this.plotHeight-f,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var h=1.1<b/this.plotWidth,l=1.05<g/this.plotHeight;if(h||l)a.forEach(function(a){(a.horiz&&h||!a.horiz&&l)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?e(a):c&&c.length&&e(c);
392
+ 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(a){var c=this,d=U(!0,this.options.credits,a);d.enabled&&!this.credits&&(this.credits=this.renderer.text(d.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){d.href&&(z.location.href=d.href)}).attr({align:d.position.align,zIndex:8}),c.styledMode||
393
+ this.credits.css(d.style),this.credits.add().align(d.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};b.prototype.destroy=function(){var a=this,c=a.axes,d=a.series,b=a.container,e=b&&b.parentNode,f;M(a,"destroy");a.renderer.forExport?F(n,a):n[a.index]=void 0;v.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");ia(a);for(f=c.length;f--;)c[f]=c[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=d.length;f--;)d[f]=
394
+ d[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var d=a[c];d&&d.destroy&&(a[c]=d.destroy())});b&&(b.innerHTML="",ia(b),e&&X(b));W(a,function(c,d){delete a[d]})};b.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();
395
+ (L(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();M(a,"beforeRender");r&&(w.isRequired()?a.pointer=new w(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);M(this,"load");M(this,"render");S(this.index)&&this.setReflow(this.options.chart.reflow);
396
+ this.hasLoaded=!0};b.prototype.addSeries=function(a,c,d){var b=this,e;a&&(c=O(c,!0),M(b,"addSeries",{options:a},function(){e=b.initSeries(a);b.isDirtyLegend=!0;b.linkSeries();e.enabledDataSorting&&e.setData(a.data,!1);M(b,"afterAddSeries",{series:e});c&&b.redraw(d)}));return e};b.prototype.addAxis=function(a,c,d,b){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:d,animation:b})};b.prototype.addColorAxis=function(a,c,d){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:d})};b.prototype.createAxis=
397
+ function(a,c){a=new u(this,U(c.axis,{index:this[a].length,isX:"xAxis"===a}));O(c.redraw,!0)&&this.redraw(c.animation);return a};b.prototype.showLoading=function(a){var c=this,d=c.options,b=d.loading,e=function(){f&&Q(f,{left:c.plotLeft+"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})},f=c.loadingDiv,h=c.loadingSpan;f||(c.loadingDiv=f=aa("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container));h||(c.loadingSpan=h=aa("span",{className:"highcharts-loading-inner"},
398
+ null,f),I(c,"redraw",e));f.className="highcharts-loading";g.setElementHTML(h,O(a,d.lang.loading,""));c.styledMode||(Q(f,ca(b.style,{zIndex:10})),Q(h,b.labelStyle),c.loadingShown||(Q(f,{opacity:0,display:""}),C(f,{opacity:b.style.opacity||.5},{duration:b.showDuration||0})));c.loadingShown=!0;e()};b.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||C(c,{opacity:0},{duration:a.loading.hideDuration||100,
399
+ complete:function(){Q(c,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(a,d,b,e){var f=this,g={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=a.isResponsiveOptions,l=[],n,p;M(f,"update",{options:a});h||f.setResponsive(!1,!0);a=N(a,f.options);f.userOptions=U(f.userOptions,a);var q=a.chart;if(q){U(!0,f.options.chart,q);"className"in q&&f.setClassName(q.className);"reflow"in q&&f.setReflow(q.reflow);if("inverted"in q||"polar"in q||"type"in
400
+ q){f.propFromSeries();var k=!0}"alignTicks"in q&&(k=!0);"events"in q&&D(this,q);W(q,function(a,c){-1!==f.propsRequireUpdateSeries.indexOf("chart."+c)&&(n=!0);-1!==f.propsRequireDirtyBox.indexOf(c)&&(f.isDirtyBox=!0);-1!==f.propsRequireReflow.indexOf(c)&&(h?f.isDirtyBox=!0:p=!0)});!f.styledMode&&q.style&&f.renderer.setStyle(f.options.chart.style||{})}!f.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===x&&(this.time=new c(a.time)),U(!0,f.options.time,a.time));W(a,function(c,
401
+ d){if(f[d]&&"function"===typeof f[d].update)f[d].update(c,!1);else if("function"===typeof f[g[d]])f[g[d]](c);else"colors"!==d&&-1===f.collectionsWithUpdate.indexOf(d)&&U(!0,f.options[d],a[d]);"chart"!==d&&-1!==f.propsRequireUpdateSeries.indexOf(d)&&(n=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var d=[];f[c].forEach(function(a,c){a.options.isInternal||d.push(O(a.options.index,c))});ba(a[c]).forEach(function(a,e){var g=S(a.id),h;g&&(h=f.get(a.id));!h&&f[c]&&(h=f[c][d?d[e]:e])&&g&&
402
+ S(h.options.id)&&(h=void 0);h&&h.coll===c&&(h.update(a,!1),b&&(h.touched=!0));!h&&b&&f.collectionsWithInit[c]&&(f.collectionsWithInit[c][0].apply(f,[a].concat(f.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});b&&f[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:l.push(a)})}});l.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});k&&f.axes.forEach(function(a){a.update({},!1)});n&&f.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);k=q&&
403
+ q.width;q=q&&(V(q.height)?ea(q.height,k||f.chartWidth):q.height);p||T(k)&&k!==f.chartWidth||T(q)&&q!==f.chartHeight?f.setSize(k,q,e):O(d,!0)&&f.redraw(e);M(f,"afterUpdate",{options:a,redraw:d,animation:e})};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,d=l.lang,b=c.options.chart.resetZoomButton,
404
+ e=b.theme,f=e.states,g="chart"===b.relativeTo||"spacingBox"===b.relativeTo?null:"scrollablePlotBox";M(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(d.resetZoom,null,null,a,e,f&&f.hover).attr({align:b.position.align,title:d.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(b.position,!1,g)});M(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){M(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(a){var c=this,d=c.pointer,
405
+ b=c.inverted?d.mouseDownX:d.mouseDownY,e=!1,f;!a||a.resetSelection?(c.axes.forEach(function(a){f=a.zoom()}),d.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var g=a.axis,h=c.inverted?g.left:g.top,l=c.inverted?h+g.width:h+g.height,n=g.isXAxis,q=!1;if(!n&&b>=h&&b<=l||n||!S(b))q=!0;d[n?"zoomX":"zoomY"]&&q&&(f=g.zoom(a.min,a.max),g.displayBtn&&(e=!0))});var g=c.resetZoomButton;e&&!g?c.showResetZoom():!e&&R(g)&&(c.resetZoomButton=g.destroy());f&&c.redraw(O(c.options.chart.animation,a&&a.animation,
406
+ 100>c.pointCount))};b.prototype.pan=function(a,c){var d=this,b=d.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var e=d.options.chart,f=d.options.mapNavigation&&d.options.mapNavigation.enabled;e&&e.panning&&(e.panning=c);var g=c.type,h;M(this,"pan",{originalEvent:a},function(){b&&b.forEach(function(a){a.setState()});var c=d.xAxis;"xy"===g?c=c.concat(d.yAxis):"y"===g&&(c=d.yAxis);var e={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var b=c.horiz,l=a[b?"chartX":
407
+ "chartY"];b=b?"mouseDownX":"mouseDownY";var n=d[b],q=c.minPointOffset||0,p=c.reversed&&!d.inverted||!c.reversed&&d.inverted?-1:1,k=c.getExtremes(),t=c.toValue(n-l,!0)+q*p,m=c.toValue(n+c.len-l,!0)-(q*p||c.isXAxis&&c.pointRangePadding||0),r=m<t;p=c.hasVerticalPanning();n=r?m:t;t=r?t:m;var z=c.panningState;!p||c.isXAxis||z&&!z.isDirty||c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);z||(z={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});T(c.dataMin)&&T(c.dataMax)&&
408
+ (z.startMin=Math.min(O(a.options.threshold,Infinity),c.dataMin,z.startMin),z.startMax=Math.max(O(a.options.threshold,-Infinity),c.dataMax,z.startMax))});p=Math.min(O(z&&z.startMin,k.dataMin),q?k.min:c.toValue(c.toPixels(k.min)-c.minPixelPadding));m=Math.max(O(z&&z.startMax,k.dataMax),q?k.max:c.toValue(c.toPixels(k.max)+c.minPixelPadding));c.panningState=z;c.isOrdinal||(q=p-n,0<q&&(t+=q,n=p),q=t-m,0<q&&(t=m,n-=q),c.series.length&&n!==k.min&&t!==k.max&&n>=p&&t<=m&&(c.setExtremes(n,t,!1,!1,{trigger:"pan"}),
409
+ d.resetZoomButton||f||n===p||t===m||!g.match("y")||(d.showResetZoom(),c.displayBtn=!1),h=!0),e[b]=l)}});W(e,function(a,c){d[c]=a});h&&d.redraw(!1);Q(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(" "),
410
+ 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});F(b,"Core/Legend/LegendSymbol.js",[b["Core/Utilities.js"]],function(b){var x=b.merge,A=b.pick,B;(function(b){b.drawLineMarker=function(b){var w=this.options,k=b.symbolWidth,r=b.symbolHeight,m=r/2,h=this.chart.renderer,
411
+ a=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var c={},e=w.marker;this.chart.styledMode||(c={"stroke-width":w.lineWidth||0},w.dashStyle&&(c.dashstyle=w.dashStyle));this.legendLine=h.path([["M",0,b],["L",k,b]]).addClass("highcharts-graph").attr(c).add(a);e&&!1!==e.enabled&&k&&(w=Math.min(A(e.radius,m),m),0===this.symbol.indexOf("url")&&(e=x(e,{width:r,height:r}),w=0),this.legendSymbol=k=h.symbol(this.symbol,k/2-w,b-w,2*w,2*w,e).addClass("highcharts-point").add(a),k.isMarker=!0)};b.drawRectangle=
412
+ function(b,x){var k=b.symbolHeight,r=b.options.squareSymbol;x.legendSymbol=this.chart.renderer.rect(r?(b.symbolWidth-k)/2:0,b.baseline-k+1,r?k:b.symbolWidth,k,A(b.options.symbolRadius,k/2)).addClass("highcharts-point").attr({zIndex:3}).add(x.legendGroup)}})(B||(B={}));return B});F(b,"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},
413
+ 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},
414
+ 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"}});F(b,"Core/Series/Series.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/DefaultOptions.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/Point.js"],b["Core/Series/SeriesDefaults.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],
415
+ b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k,r,m){var h=b.animObject,a=b.setAnimation,c=u.defaultOptions,e=A.registerEventOptions,g=B.hasTouch,C=B.svg,y=B.win,t=k.seriesTypes,p=m.addEvent,D=m.arrayMax,n=m.arrayMin,f=m.clamp,q=m.cleanRecursively,d=m.correctFloat,z=m.defined,l=m.erase,x=m.error,K=m.extend,I=m.find,H=m.fireEvent,N=m.getNestedProperty,aa=m.isArray,Q=m.isNumber,S=m.isString,X=m.merge,F=m.objectEach,J=m.pick,ca=m.removeEvent,ha=m.splat,M=m.syncTimeout;b=function(){function b(){this.zones=
416
+ 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(a,c){H(this,"init",{options:c});var d=this,b=a.series;this.eventsToUnbind=[];d.chart=a;d.options=d.setOptions(c);c=d.options;d.linkedSeries=[];d.bindAxes();K(d,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});e(this,c);var f=
417
+ c.events;if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();d.parallelArrays.forEach(function(a){d[a+"Data"]||(d[a+"Data"]=[])});d.isCartesian&&(a.hasCartesianSeries=!0);var g;b.length&&(g=b[b.length-1]);d._i=J(g&&g._i,-1)+1;d.opacity=d.options.opacity;a.orderSeries(this.insert(b));c.dataSorting&&c.dataSorting.enabled?d.setDataSortingOptions():d.points||d.data||d.setData(c.data,!1);H(this,"afterInit")};b.prototype.is=function(a){return t[a]&&
418
+ this instanceof t[a]};b.prototype.insert=function(a){var c=this.options.index,d;if(Q(c)){for(d=a.length;d--;)if(c>=J(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return J(d,a.length-1)};b.prototype.bindAxes=function(){var a=this,c=a.options,d=a.chart,b;H(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(e){var f=0;d[e].forEach(function(d){b=d.options;if(c[e]===f&&!b.isInternal||"undefined"!==typeof c[e]&&c[e]===b.id||"undefined"===
419
+ typeof c[e]&&0===b.index)a.insert(d.series),a[e]=d,d.isDirty=!0;b.isInternal||f++});a[e]||a.optionalAxis===e||x(18,!0,d)})});H(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(a,c){var d=a.series,b=arguments,e=Q(c)?function(b){var e="y"===b&&d.toYData?d.toYData(a):a[b];d[b+"Data"][c]=e}:function(a){Array.prototype[c].apply(d[a+"Data"],Array.prototype.slice.call(b,2))};d.parallelArrays.forEach(e)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&
420
+ "undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(a){var c=this.options,d=c.pointIntervalUnit,b=c.relativeXValue,e=this.chart.time,f=this.xIncrement,g;f=J(f,c.pointStart,0);this.pointInterval=g=J(this.pointInterval,c.pointInterval,1);b&&Q(a)&&(g*=a);d&&(c=new e.Date(f),"day"===d?e.set("Date",c,e.get("Date",c)+g):"month"===d?e.set("Month",c,e.get("Month",c)+g):"year"===d&&e.set("FullYear",c,e.get("FullYear",c)+g),g=c.getTime()-f);if(b&&
421
+ Q(a))return f+g;this.xIncrement=f+g;return f};b.prototype.setDataSortingOptions=function(){var a=this.options;K(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});z(a.pointRange)||(a.pointRange=1)};b.prototype.setOptions=function(a){var d=this.chart,b=d.options,e=b.plotOptions,f=d.userOptions||{};a=X(a);d=d.styledMode;var g={plotOptions:e,userOptions:a};H(this,"setOptions",g);var h=g.plotOptions[this.type],l=f.plotOptions||{};this.userOptions=g.userOptions;f=X(h,e.series,f.plotOptions&&
422
+ f.plotOptions[this.type],a);this.tooltipOptions=X(c.tooltip,c.plotOptions.series&&c.plotOptions.series.tooltip,c.plotOptions[this.type].tooltip,b.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=J(a.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===h.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;e=this.zones=(f.zones||[]).slice();
423
+ !f.negativeColor&&!f.negativeFillColor||f.zones||(b={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},d||(b.color=f.negativeColor,b.fillColor=f.negativeFillColor),e.push(b));e.length&&z(e[e.length-1].value)&&e.push(d?{}:{color:this.color,fillColor:this.fillColor});H(this,"afterSetOptions",{options:f});return f};b.prototype.getName=function(){return J(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(a,c,d){var b=this.chart,e=this.userOptions,
424
+ f=a+"Index",g=a+"Counter",h=d?d.length:J(b.options.chart[a+"Count"],b[a+"Count"]);if(!c){var l=J(e[f],e["_"+f]);z(l)||(b.series.length||(b[g]=0),e["_"+f]=l=b[g]%h,b[g]+=1);d&&(c=d[l])}"undefined"!==typeof l&&(this[f]=l);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||c.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?
425
+ this.points:this.data)||[]};b.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(a,c){var d=a.id,b=a.x,e=this.points,f=this.options.dataSorting,g,h;if(d)f=this.chart.get(d),f instanceof E&&(g=f);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(g=function(c){return!c.touched&&c.index===a.index},f&&f.matchByName?g=function(c){return!c.touched&&c.name===a.name}:this.options.relativeXValue&&
426
+ (g=function(c){return!c.touched&&c.options.x===a.x}),g=I(e,g),!g)return;if(g){var l=g&&g.index;"undefined"!==typeof l&&(h=!0)}"undefined"===typeof l&&Q(b)&&(l=this.xData.indexOf(b,c));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!h&&Q(l)&&e[l]&&e[l].touched&&(l=void 0);return l};b.prototype.updateData=function(a,c){var d=this.options,b=d.dataSorting,e=this.points,f=[],g=this.requireSorting,h=a.length===e.length,l,n,q,p=!0;this.xIncrement=null;a.forEach(function(a,
427
+ c){var n=z(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{},p=n.x;if(n.id||Q(p)){if(n=this.findPointIndex(n,q),-1===n||"undefined"===typeof n?f.push(a):e[n]&&a!==d.data[n]?(e[n].update(a,!1,null,!1),e[n].touched=!0,g&&(q=n+1)):e[n]&&(e[n].touched=!0),!h||c!==n||b&&b.enabled||this.hasDerivedData)l=!0}else f.push(a)},this);if(l)for(a=e.length;a--;)(n=e[a])&&!n.touched&&n.remove&&n.remove(!1,c);else!h||b&&b.enabled?p=!1:(a.forEach(function(a,c){a!==e[c].y&&e[c].update&&e[c].update(a,
428
+ !1,null,!1)}),f.length=0);e.forEach(function(a){a&&(a.touched=!1)});if(!p)return!1;f.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=D(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(a,c,d,b){var e=this,f=e.points,g=f&&f.length||0,h=e.options,l=e.chart,n=h.dataSorting,q=e.xAxis,p=h.turboThreshold,k=this.xData,t=this.yData,m=e.pointArrayMap;m=m&&m.length;var z=h.keys,r,y=0,D=1,C=null;a=a||[];
429
+ var w=a.length;c=J(c,!0);n&&n.enabled&&(a=this.sortData(a));!1!==b&&w&&g&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(r=this.updateData(a,d));if(!r){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(a){e[a+"Data"].length=0});if(p&&w>p)if(C=e.getFirstValidPoint(a),Q(C))for(d=0;d<w;d++)k[d]=this.autoIncrement(),t[d]=a[d];else if(aa(C))if(m)if(C.length===m)for(d=0;d<w;d++)k[d]=this.autoIncrement(),t[d]=a[d];else for(d=0;d<w;d++)b=a[d],k[d]=b[0],t[d]=b.slice(1,
430
+ m+1);else if(z&&(y=z.indexOf("x"),D=z.indexOf("y"),y=0<=y?y:0,D=0<=D?D:1),1===C.length&&(D=0),y===D)for(d=0;d<w;d++)k[d]=this.autoIncrement(),t[d]=a[d][D];else for(d=0;d<w;d++)b=a[d],k[d]=b[y],t[d]=b[D];else x(12,!1,l);else for(d=0;d<w;d++)"undefined"!==typeof a[d]&&(b={series:e},e.pointClass.prototype.applyOptions.apply(b,[a[d]]),e.updateParallelArrays(b,d));t&&S(t[0])&&x(14,!0,l);e.data=[];e.options.data=e.userOptions.data=a;for(d=g;d--;)f[d]&&f[d].destroy&&f[d].destroy();q&&(q.minRange=q.userMinRange);
431
+ e.isDirty=l.isDirtyBox=!0;e.isDirtyData=!!f;d=!1}"point"===h.legendType&&(this.processData(),this.generatePoints());c&&l.redraw(d)};b.prototype.sortData=function(a){var c=this,d=c.options.dataSorting.sortKey||"y",b=function(a,c){return z(c)&&a.pointClass.prototype.optionsToObject.call({series:a},c)||{}};a.forEach(function(d,e){a[e]=b(c,d);a[e].index=e},this);a.concat().sort(function(a,c){a=N(d,a);c=N(d,c);return c<a?-1:c>a?1:0}).forEach(function(a,c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var d=
432
+ c.options,e=d.data;d.dataSorting&&d.dataSorting.enabled||!e||(e.forEach(function(d,f){e[f]=b(c,d);a[f]&&(e[f].x=a[f].x,e[f].index=f)}),c.setData(e,!1))});return a};b.prototype.getProcessedData=function(a){var c=this.xAxis,d=this.options,b=d.cropThreshold,e=a||this.getExtremesFromAll||d.getExtremesFromAll,f=this.isCartesian;a=c&&c.val2lin;d=!(!c||!c.logarithmic);var g=0,h=this.xData,l=this.yData,n=this.requireSorting;var q=!1;var p=h.length;if(c){q=c.getExtremes();var k=q.min;var t=q.max;q=c.categories&&
433
+ !c.names.length}if(f&&this.sorted&&!e&&(!b||p>b||this.forceCrop))if(h[p-1]<k||h[0]>t)h=[],l=[];else if(this.yData&&(h[0]<k||h[p-1]>t)){var m=this.cropData(this.xData,this.yData,k,t);h=m.xData;l=m.yData;g=m.start;m=!0}for(b=h.length||1;--b;)if(c=d?a(h[b])-a(h[b-1]):h[b]-h[b-1],0<c&&("undefined"===typeof z||c<z))var z=c;else 0>c&&n&&!q&&(x(15,!1,this.chart),n=!1);return{xData:h,yData:l,cropped:m,cropStart:g,closestPointRange:z}};b.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&
434
+ !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;H(this,"afterProcessData")};b.prototype.cropData=function(a,c,d,b,e){var f=a.length,g,h=0,l=f;e=J(e,this.cropShoulder);for(g=0;g<f;g++)if(a[g]>=d){h=Math.max(0,g-e);break}for(d=g;d<f;d++)if(a[d]>b){l=d+e;break}return{xData:a.slice(h,l),yData:c.slice(h,
435
+ l),start:h,end:l}};b.prototype.generatePoints=function(){var a=this.options,c=a.data,d=this.processedXData,b=this.processedYData,e=this.pointClass,f=d.length,g=this.cropStart||0,h=this.hasGroupedData,l=a.keys,n=[];a=a.dataGrouping&&a.dataGrouping.groupAll?g:0;var q,p,k=this.data;if(!k&&!h){var t=[];t.length=c.length;k=this.data=t}l&&h&&(this.options.keys=!1);for(p=0;p<f;p++){t=g+p;if(h){var m=(new e).init(this,[d[p]].concat(ha(b[p])));m.dataGroup=this.groupMap[a+p];m.dataGroup.options&&(m.options=
436
+ m.dataGroup.options,K(m,m.dataGroup.options),delete m.dataLabels)}else(m=k[t])||"undefined"===typeof c[t]||(k[t]=m=(new e).init(this,c[t],d[p]));m&&(m.index=h?a+p:t,n[p]=m)}this.options.keys=l;if(k&&(f!==(q=k.length)||h))for(p=0;p<q;p++)p!==g||h||(p+=f),k[p]&&(k[p].destroyElements(),k[p].plotX=void 0);this.data=k;this.points=n;H(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(a){return{min:n(a),max:D(a)}};b.prototype.getExtremes=function(a,c){var d=this.xAxis,b=this.yAxis,e=this.processedXData||
437
+ this.xData,f=[],g=this.requireSorting?this.cropShoulder:0;b=b?b.positiveValuesOnly:!1;var h,l=0,q=0,p=0;a=a||this.stackedYData||this.processedYData||[];var k=a.length;if(d){var t=d.getExtremes();l=t.min;q=t.max}for(h=0;h<k;h++){var m=e[h];t=a[h];var z=(Q(t)||aa(t))&&(t.length||0<t||!b);m=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!d||(e[h+g]||m)>=l&&(e[h-g]||m)<=q;if(z&&m)if(z=t.length)for(;z--;)Q(t[z])&&(f[p++]=t[z]);else f[p++]=t}a={activeYData:f,dataMin:n(f),dataMax:D(f)};
438
+ H(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,d=0,b=null;null===b&&d<c;)b=a[d],d++;return b};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,b=this.xAxis,e=b.categories,g=this.enabledDataSorting,h=this.yAxis,l=this.points,n=l.length,q=
439
+ this.pointPlacementToXValue(),p=!!q,k=a.threshold,t=a.startFromThreshold?k:0,m=this.zoneAxis||"y",r,y,D=Number.MAX_VALUE;for(r=0;r<n;r++){var C=l[r],x=C.x,w=void 0,u=void 0,v=C.y,G=C.low,A=c&&h.stacking&&h.stacking.stacks[(this.negStacks&&v<(t?0:k)?"-":"")+this.stackKey];if(h.positiveValuesOnly&&!h.validatePositiveValue(v)||b.positiveValuesOnly&&!b.validatePositiveValue(x))C.isNull=!0;C.plotX=y=d(f(b.translate(x,0,0,0,1,q,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&A&&A[x]){var E=this.getStackIndicator(E,
440
+ x,this.index);C.isNull||(w=A[x],u=w.points[E.key])}aa(u)&&(G=u[0],v=u[1],G===t&&E.key===A[x].base&&(G=J(Q(k)&&k,h.min)),h.positiveValuesOnly&&0>=G&&(G=null),C.total=C.stackTotal=w.total,C.percentage=w.total&&C.y/w.total*100,C.stackY=v,this.irregularWidths||w.setOffset(this.pointXOffset||0,this.barW||0));C.yBottom=z(G)?f(h.translate(G,0,1,0,1),-1E5,1E5):null;this.dataModify&&(v=this.dataModify.modifyValue(v,r));C.plotY=void 0;Q(v)&&(w=h.translate(v,!1,!0,!1,!0),"undefined"!==typeof w&&(C.plotY=f(w,
441
+ -1E5,1E5)));C.isInside=this.isPointInside(C);C.clientX=p?d(b.translate(x,0,0,0,1,q)):y;C.negative=C[m]<(a[m+"Threshold"]||k||0);C.category=e&&"undefined"!==typeof e[C.x]?e[C.x]:C.x;if(!C.isNull&&!1!==C.visible){"undefined"!==typeof I&&(D=Math.min(D,Math.abs(y-I)));var I=y}C.zone=this.zones.length?C.getZone():void 0;!C.graphic&&this.group&&g&&(C.isNew=!0)}this.closestPointRangePx=D;H(this,"afterTranslate")};b.prototype.getValidPoints=function(a,c,d){var b=this.chart;return(a||this.points||[]).filter(function(a){return c&&
442
+ !b.isInsidePlot(a.plotX,a.plotY,{inverted:b.inverted})?!1:!1!==a.visible&&(d||!a.isNull)})};b.prototype.getClipBox=function(){var a=this.chart,c=this.xAxis,d=this.yAxis,b=X(a.clipBox);c&&c.len!==a.plotSizeX&&(b.width=c.len);d&&d.len!==a.plotSizeY&&(b.height=d.len);return b};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};b.prototype.setClip=function(){var a=this.chart,c=this.group,d=this.markerGroup,b=a.sharedClips;a=a.renderer;
443
+ var e=this.getClipBox(),f=this.getSharedClipKey(),g=b[f];g?g.animate(e):b[f]=g=a.clipRect(e);c&&c.clip(!1===this.options.clip?void 0:g);d&&d.clip()};b.prototype.animate=function(a){var c=this.chart,d=this.group,b=this.markerGroup,e=c.inverted,f=h(this.options.animation),g=[this.getSharedClipKey(),f.duration,f.easing,f.defer].join(),l=c.sharedClips[g],n=c.sharedClips[g+"m"];if(a&&d)f=this.getClipBox(),l?l.attr("height",f.height):(f.width=0,e&&(f.x=c.plotHeight),l=c.renderer.clipRect(f),c.sharedClips[g]=
444
+ l,n=c.renderer.clipRect({x:e?(c.plotSizeX||0)+99:-99,y:e?-c.plotLeft:-c.plotTop,width:99,height:e?c.chartWidth:c.chartHeight}),c.sharedClips[g+"m"]=n),d.clip(l),b&&b.clip(n);else if(l&&!l.hasClass("highcharts-animating")){c=this.getClipBox();var q=f.step;b&&b.element.childNodes.length&&(f.step=function(a,c){q&&q.apply(c,arguments);n&&n.element&&n.attr(c.prop,"width"===c.prop?a+99:a)});l.addClass("highcharts-animating").animate(c,f)}};b.prototype.afterAnimate=function(){var a=this;this.setClip();F(this.chart.sharedClips,
445
+ function(c,d,b){c&&!a.chart.container.querySelector('[clip-path="url(#'+c.id+')"]')&&(c.destroy(),delete b[d])});this.finishedAnimating=!0;H(this,"afterAnimate")};b.prototype.drawPoints=function(){var a=this.points,c=this.chart,d=this.options.marker,b=this[this.specialGroup]||this.markerGroup,e=this.xAxis,f=J(d.enabled,!e||e.isRadial?!0:null,this.closestPointRangePx>=d.enabledThreshold*d.radius),g,h;if(!1!==d.enabled||this._hasPointMarkers)for(g=0;g<a.length;g++){var l=a[g];var n=(h=l.graphic)?"animate":
446
+ "attr";var q=l.marker||{};var p=!!l.marker;if((f&&"undefined"===typeof q.enabled||q.enabled)&&!l.isNull&&!1!==l.visible){var k=J(q.symbol,this.symbol,"rect");var t=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=e.reversed?-(t.width||0):e.width);var m=!1!==l.isInside;h?h[m?"show":"hide"](m).animate(t):m&&(0<(t.width||0)||l.hasImage)&&(l.graphic=h=c.renderer.symbol(k,t.x,t.y,t.width,t.height,p?q:d).add(b),this.enabledDataSorting&&c.hasRendered&&(h.attr({x:l.startXPos}),
447
+ n="animate"));h&&"animate"===n&&h[m?"show":"hide"](m).animate(t);if(h&&!c.styledMode)h[n](this.pointAttribs(l,l.selected&&"select"));h&&h.addClass(l.getClassName(),!0)}else h&&(l.graphic=h.destroy())}};b.prototype.markerAttribs=function(a,c){var d=this.options,b=d.marker,e=a.marker||{},f=e.symbol||b.symbol,g=J(e.radius,b.radius);c&&(b=b.states[c],c=e.states&&e.states[c],g=J(c&&c.radius,b&&b.radius,g+(b&&b.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a.hasImage&&(g=0);a={x:d.crisp?Math.floor(a.plotX-
448
+ g):a.plotX-g,y:a.plotY-g};g&&(a.width=a.height=2*g);return a};b.prototype.pointAttribs=function(a,c){var d=this.options.marker,b=a&&a.options,e=b&&b.marker||{},f=b&&b.color,g=a&&a.color,h=a&&a.zone&&a.zone.color,l=this.color;a=J(e.lineWidth,d.lineWidth);b=1;l=f||h||g||l;f=e.fillColor||d.fillColor||l;g=e.lineColor||d.lineColor||l;c=c||"normal";d=d.states[c]||{};c=e.states&&e.states[c]||{};a=J(c.lineWidth,d.lineWidth,a+J(c.lineWidthPlus,d.lineWidthPlus,0));f=c.fillColor||d.fillColor||f;g=c.lineColor||
449
+ d.lineColor||g;b=J(c.opacity,d.opacity,b);return{stroke:g,"stroke-width":a,fill:f,opacity:b}};b.prototype.destroy=function(a){var c=this,d=c.chart,b=/AppleWebKit\/533/.test(y.navigator.userAgent),e=c.data||[],f,g,h,n;H(c,"destroy");this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(n=c[a])&&n.series&&(l(n.series,c),n.isDirty=n.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(g=e.length;g--;)(h=e[g])&&h.destroy&&h.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});
450
+ m.clearTimeout(c.animationTimeout);F(c,function(a,c){a instanceof r&&!a.survive&&(f=b&&"group"===c?"hide":"destroy",a[f]())});d.hoverSeries===c&&(d.hoverSeries=void 0);l(d.series,c);d.orderSeries();F(c,function(d,b){a&&"hcEvents"===b||delete c[b]})};b.prototype.applyZones=function(){var a=this,c=this.chart,d=c.renderer,b=this.zones,e=this.clips||[],g=this.graph,h=this.area,l=Math.max(c.chartWidth,c.chartHeight),n=this[(this.zoneAxis||"y")+"Axis"],q=c.inverted,p,k,t,m,z,r,y,D,C=!1;if(b.length&&(g||
451
+ h)&&n&&"undefined"!==typeof n.min){var x=n.reversed;var w=n.horiz;g&&!this.showLine&&g.hide();h&&h.hide();var u=n.getExtremes();b.forEach(function(b,v){p=x?w?c.plotWidth:0:w?0:n.toPixels(u.min)||0;p=f(J(k,p),0,l);k=f(Math.round(n.toPixels(J(b.value,u.max),!0)||0),0,l);C&&(p=k=n.toPixels(u.max));m=Math.abs(p-k);z=Math.min(p,k);r=Math.max(p,k);n.isXAxis?(t={x:q?r:z,y:0,width:m,height:l},w||(t.x=c.plotHeight-t.x)):(t={x:0,y:q?r:z,width:l,height:m},w&&(t.y=c.plotWidth-t.y));q&&d.isVML&&(t=n.isXAxis?{x:0,
452
+ y:x?z:r,height:t.width,width:c.chartWidth}:{x:t.y-c.plotLeft-c.spacingBox.x,y:0,width:t.height,height:c.chartHeight});e[v]?e[v].animate(t):e[v]=d.clipRect(t);y=a["zone-area-"+v];D=a["zone-graph-"+v];g&&D&&D.clip(e[v]);h&&y&&y.clip(e[v]);C=b.value>u.max;a.resetZones&&0===k&&(k=void 0)});this.clips=e}else a.visible&&(g&&g.show(!0),h&&h.show(!0))};b.prototype.invertGroups=function(a){function c(){["group","markerGroup"].forEach(function(c){d[c]&&(b.renderer.isVML&&d[c].attr({width:d.yAxis.len,height:d.xAxis.len}),
453
+ d[c].width=d.yAxis.len,d[c].height=d.xAxis.len,d[c].invert(d.isRadialSeries?!1:a))})}var d=this,b=d.chart;d.xAxis&&(d.eventsToUnbind.push(p(b,"resize",c)),c(),d.invertGroups=c)};b.prototype.plotGroup=function(a,c,d,b,e){var f=this[a],g=!f;d={visibility:d,zIndex:b||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(d.opacity=this.opacity);g&&(this[a]=f=this.chart.renderer.g().add(e));f.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+
454
+ "-series "+(z(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(d)[g?"attr":"animate"](this.getPlotBox());return f};b.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,d=this.yAxis;a.inverted&&(c=d,d=this.xAxis);return{translateX:c?c.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(a){a||ca(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),
455
+ this.eventsToUnbind.length=0)};b.prototype.render=function(){var a=this,c=a.chart,d=a.options,b=h(d.animation),e=a.visible?"inherit":"hidden",f=d.zIndex,g=a.hasRendered,l=c.seriesGroup,n=c.inverted;c=!a.finishedAnimating&&c.renderer.isSVG?b.duration:0;H(this,"render");var q=a.plotGroup("group","series",e,f,l);a.markerGroup=a.plotGroup("markerGroup","markers",e,f,l);!1!==d.clip&&a.setClip();a.animate&&c&&a.animate(!0);q.inverted=J(a.invertible,a.isCartesian)?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());
456
+ a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);a.animate&&c&&a.animate();g||(c&&b.defer&&(c+=b.defer),a.animationTimeout=M(function(){a.afterAnimate()},c||0));a.isDirty=!1;a.hasRendered=!0;H(a,"afterRender")};b.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,d=this.group,b=this.xAxis,e=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,
457
+ height:a.plotHeight}),d.animate({translateX:J(b&&b.left,a.plotLeft),translateY:J(e&&e.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};b.prototype.searchPoint=function(a,c){var d=this.xAxis,b=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:e?b.len-a.chartX+b.pos:a.chartY-b.pos},c,a)};b.prototype.buildKDTree=function(a){function c(a,b,e){var f=a&&a.length;if(f){var g=d.kdAxisArray[b%e];a.sort(function(a,c){return a[g]-
458
+ c[g]});f=Math.floor(f/2);return{point:a[f],left:c(a.slice(0,f),b+1,e),right:c(a.slice(f+1),b+1,e)}}}this.buildingKdTree=!0;var d=this,b=-1<d.options.findNearestPointBy.indexOf("y")?2:1;delete d.kdTree;M(function(){d.kdTree=c(d.getValidPoints(null,!d.directTouch),b,b);d.buildingKdTree=!1},d.options.kdNow||a&&"touchstart"===a.type?0:1)};b.prototype.searchKDTree=function(a,c,d){function b(a,c,d,l){var n=c.point,q=e.kdAxisArray[d%l],p=n,k=z(a[f])&&z(n[f])?Math.pow(a[f]-n[f],2):null;var t=z(a[g])&&z(n[g])?
459
+ Math.pow(a[g]-n[g],2):null;t=(k||0)+(t||0);n.dist=z(t)?Math.sqrt(t):Number.MAX_VALUE;n.distX=z(k)?Math.sqrt(k):Number.MAX_VALUE;q=a[q]-n[q];t=0>q?"left":"right";k=0>q?"right":"left";c[t]&&(t=b(a,c[t],d+1,l),p=t[h]<p[h]?t:n);c[k]&&Math.sqrt(q*q)<p[h]&&(a=b(a,c[k],d+1,l),p=a[h]<p[h]?a:p);return p}var e=this,f=this.kdAxisArray[0],g=this.kdAxisArray[1],h=c?"distX":"dist";c=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(d);if(this.kdTree)return b(a,
460
+ this.kdTree,c,c)};b.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,d=this.xAxis;a=a.pointPlacement;"between"===a&&(a=d.reversed?-.5:.5);return Q(a)?a*(c||d.pointRange):0};b.prototype.isPointInside=function(a){var c=this.chart,d=this.xAxis,b=this.yAxis;return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=(b?b.len:c.plotHeight)&&0<=a.plotX&&a.plotX<=(d?d.len:c.plotWidth)};b.prototype.drawTracker=function(){var a=this,c=a.options,d=c.trackByArea,
461
+ b=[].concat(d?a.areaPath:a.graphPath),e=a.chart,f=e.pointer,h=e.renderer,l=e.options.tooltip.snap,n=a.tracker,q=function(c){if(e.hoverSeries!==a)a.onMouseOver()},p="rgba(192,192,192,"+(C?.0001:.002)+")";n?n.attr({d:b}):a.graph&&(a.tracker=h.path(b).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(d?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),e.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:p,fill:d?p:"none","stroke-width":a.graph.strokeWidth()+
462
+ (d?0:2*l)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",q).on("mouseout",function(a){f.onTrackerMouseOut(a)}),c.cursor&&!e.styledMode&&a.css({cursor:c.cursor}),g))a.on("touchstart",q)}));H(this,"afterDrawTracker")};b.prototype.addPoint=function(a,c,d,b,e){var f=this.options,g=this.data,h=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var n=f.data,q=this.xData,p;c=J(c,!0);var k={series:this};this.pointClass.prototype.applyOptions.apply(k,
463
+ [a]);var t=k.x;var m=q.length;if(this.requireSorting&&t<q[m-1])for(p=!0;m&&q[m-1]>t;)m--;this.updateParallelArrays(k,"splice",m,0,0);this.updateParallelArrays(k,m);l&&k.name&&(l[t]=k.name);n.splice(m,0,a);p&&(this.data.splice(m,0,null),this.processData());"point"===f.legendType&&this.generatePoints();d&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(k,"shift"),n.shift()));!1!==e&&H(this,"addPoint",{point:k});this.isDirtyData=this.isDirty=!0;c&&h.redraw(b)};b.prototype.removePoint=
464
+ function(c,d,b){var e=this,f=e.data,g=f[c],h=e.points,l=e.chart,n=function(){h&&h.length===f.length&&h.splice(c,1);f.splice(c,1);e.options.data.splice(c,1);e.updateParallelArrays(g||{series:e},"splice",c,1);g&&g.destroy();e.isDirty=!0;e.isDirtyData=!0;d&&l.redraw()};a(b,l);d=J(d,!0);g?g.firePointEvent("remove",null,n):n()};b.prototype.remove=function(a,c,d,b){function e(){f.destroy(b);g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();J(a,!0)&&g.redraw(c)}var f=this,g=f.chart;!1!==d?H(f,"remove",null,
465
+ e):e()};b.prototype.update=function(a,c){a=q(a,this.userOptions);H(this,"update",{options:a});var d=this,b=d.chart,e=d.userOptions,f=d.initialType||d.type,g=b.options.plotOptions,h=t[f].prototype,l=d.finishedAnimating&&{animation:!1},n={},p,k=["eventOptions","navigatorSeries","baseSeries"],m=a.type||e.type||b.options.chart.type,z=!(this.hasDerivedData||m&&m!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||d.hasOptionChanged("dataGrouping")||
466
+ d.hasOptionChanged("pointStart")||d.hasOptionChanged("pointInterval")||d.hasOptionChanged("pointIntervalUnit")||d.hasOptionChanged("keys"));m=m||f;z&&(k.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&k.push("area","graph"),d.parallelArrays.forEach(function(a){k.push(a+"Data")}),a.data&&(a.dataSorting&&K(d.options.dataSorting,a.dataSorting),
467
+ this.setData(a.data,!1)));a=X(e,l,{index:"undefined"===typeof e.index?d.index:e.index,pointStart:J(g&&g.series&&g.series.pointStart,e.pointStart,d.xData[0])},!z&&{data:d.options.data},a);z&&a.data&&(a.data=d.options.data);k=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(k);k.forEach(function(a){k[a]=d[a];delete d[a]});g=!1;if(t[m]){if(g=m!==d.type,d.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(d,t[m].prototype);else{l=Object.hasOwnProperty.call(d,"hcEvents")&&
468
+ d.hcEvents;for(p in h)d[p]=void 0;K(d,t[m].prototype);l?d.hcEvents=l:delete d.hcEvents}}else x(17,!0,b,{missingModuleFor:m});k.forEach(function(a){d[a]=k[a]});d.init(b,a);if(z&&this.points){var r=d.options;!1===r.visible?(n.graphic=1,n.dataLabel=1):d._hasPointLabels||(a=r.marker,h=r.dataLabels,!a||!1!==a.enabled&&(e.marker&&e.marker.symbol)===a.symbol||(n.graphic=1),h&&!1===h.enabled&&(n.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(n).length&&a.destroyElements(n),
469
+ !1===r.showInLegend&&a.legendItem&&b.legend.destroyItem(a))},this)}d.initialType=f;b.linkSeries();g&&d.linkedSeries.length&&(d.isDirtyData=!0);H(this,"afterUpdate");J(c,!0)&&b.redraw(z?void 0:!1)};b.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(a){var c=this.options[a],d=this.chart.options.plotOptions,b=this.userOptions[a];return b?c!==b:c!==J(d&&d[this.type]&&d[this.type][a],d&&d.series&&d.series[a],
470
+ 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&&H(this,"mouseOver");this.setState("hover");a.hoverSeries=this};b.prototype.onMouseOut=function(){var a=this.options,c=this.chart,d=c.tooltip,b=c.hoverPoint;c.hoverSeries=null;if(b)b.onMouseOut();this&&a.events.mouseOut&&H(this,"mouseOut");!d||this.stickyTracking||d.shared&&!this.noSharedTooltip||d.hide();c.series.forEach(function(a){a.setState("",
471
+ !0)})};b.prototype.setState=function(a,c){var d=this,b=d.options,e=d.graph,f=b.inactiveOtherPoints,g=b.states,h=J(g[a||"normal"]&&g[a||"normal"].animation,d.chart.options.chart.animation),l=b.lineWidth,n=0,q=b.opacity;a=a||"";if(d.state!==a&&([d.group,d.markerGroup,d.dataLabelsGroup].forEach(function(c){c&&(d.state&&c.removeClass("highcharts-series-"+d.state),a&&c.addClass("highcharts-series-"+a))}),d.state=a,!d.chart.styledMode)){if(g[a]&&!1===g[a].enabled)return;a&&(l=g[a].lineWidth||l+(g[a].lineWidthPlus||
472
+ 0),q=J(g[a].opacity,q));if(e&&!e.dashstyle)for(b={"stroke-width":l},e.animate(b,h);d["zone-graph-"+n];)d["zone-graph-"+n].animate(b,h),n+=1;f||[d.group,d.markerGroup,d.dataLabelsGroup,d.labelBySeries].forEach(function(a){a&&a.animate({opacity:q},h)})}c&&f&&d.points&&d.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 d=this,b=d.chart,e=d.legendItem,f=b.options.chart.ignoreHiddenSeries,
473
+ g=d.visible,h=(d.visible=a=d.options.visible=d.userOptions.visible="undefined"===typeof a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(d[a])d[a][h]()});if(b.hoverSeries===d||(b.hoverPoint&&b.hoverPoint.series)===d)d.onMouseOut();e&&b.legend.colorizeItem(d,a);d.isDirty=!0;d.options.stacking&&b.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});d.linkedSeries.forEach(function(c){c.setVisible(a,!1)});f&&(b.isDirtyBox=!0);
474
+ H(d,h);!1!==c&&b.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&&(this.checkbox.checked=a);H(this,a?"select":"unselect")};b.prototype.shouldShowTooltip=function(a,c,d){void 0===d&&(d={});d.series=this;d.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,c,d)};b.defaultOptions=w;return b}();K(b.prototype,{axisTypes:["xAxis",
475
+ "yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:v.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:E,requireSorting:!0,sorted:!0});k.series=b;"";"";return b});F(b,"Extensions/ScrollablePlotArea.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Series/Series.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E){var x=b.stop,k=
476
+ E.addEvent,r=E.createElement,m=E.merge,h=E.pick;k(A,"afterSetChartSize",function(a){var c=this.options.chart.scrollablePlotArea,b=c&&c.minWidth;c=c&&c.minHeight;if(!this.renderer.forExport){if(b){if(this.scrollablePixelsX=b=Math.max(0,b-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=m(this.plotBox);this.plotBox.width=this.plotWidth+=b;this.inverted?this.clipBox.height+=b:this.clipBox.width+=b;var g={1:{name:"right",value:b}}}}else c&&(this.scrollablePixelsY=b=Math.max(0,
477
+ c-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=m(this.plotBox),this.plotBox.height=this.plotHeight+=b,this.inverted?this.clipBox.width+=b:this.clipBox.height+=b,g={2:{name:"bottom",value:b}});g&&!a.skipAxes&&this.axes.forEach(function(a){g[a.side]?a.getPlotLinePath=function(){var c=g[a.side].name,b=this[c];this[c]=b-g[a.side].value;var e=u.prototype.getPlotLinePath.apply(this,arguments);this[c]=b;return e}:(a.setAxisSize(),a.setAxisTranslation())})}});k(A,"render",function(){this.scrollablePixelsX||
478
+ this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var a=this,c={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(c.overflowX="auto");this.scrollablePixelsY&&(c.overflowY="auto");this.scrollingParent=r("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=r("div",{className:"highcharts-scrolling"},
479
+ c,this.scrollingParent);k(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=r("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var a=this.container,c=this.fixedRenderer,b=".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(" "),
480
+ g;this.scrollablePixelsX&&!this.inverted?g=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis");g&&b.push(g+":not(.highcharts-radial-axis)",g+"-labels:not(.highcharts-radial-axis-labels)");b.forEach(function(b){[].forEach.call(a.querySelectorAll(b),function(a){(a.namespaceURI===c.SVG_NS?c.box:c.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};
481
+ A.prototype.applyFixed=function(){var a=!this.fixedDiv,c=this.options.chart,b=c.scrollablePlotArea,g=v.getRendererType();a?(this.fixedDiv=r("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c.style&&c.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=c=new g(this.fixedDiv,this.chartWidth,this.chartHeight,
482
+ this.options.chart.style),this.scrollableMask=c.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":h(b.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),k(this,"afterShowResetZoom",this.moveFixedElements),k(this,"afterDrilldown",this.moveFixedElements),k(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();c=this.chartWidth+
483
+ (this.scrollablePixelsX||0);g=this.chartHeight+(this.scrollablePixelsY||0);x(this.container);this.container.style.width=c+"px";this.container.style.height=g+"px";this.renderer.boxWrapper.attr({width:c,height:g,viewBox:[0,0,c,g].join(" ")});this.chartBackground.attr({width:c,height:g});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(b.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*b.scrollPositionX),b.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
484
+ b.scrollPositionY));g=this.axisOffset;a=this.plotTop-g[0]-1;b=this.plotLeft-g[3]-1;c=this.plotTop+this.plotHeight+g[2]+1;g=this.plotLeft+this.plotWidth+g[1]+1;var m=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),y=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M",m,a],["L",this.chartWidth,a],["L",this.chartWidth,c],["L",m,c],["Z"]]:this.scrollablePixelsY?[["M",b,0],["L",b,this.plotTop-
485
+ 1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",b,y],["L",b,this.chartHeight],["L",g,this.chartHeight],["L",g,y],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};k(u,"afterInit",function(){this.chart.scrollableDirty=!0});k(B,"show",function(){this.chart.scrollableDirty=!0});""});F(b,"Core/Axis/StackingAxis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Utilities.js"]],function(b,u,A){var x=b.getDeferredAnimation,v=A.addEvent,E=
486
+ A.destroyObjectProperties,w=A.fireEvent,k=A.isNumber,r=A.objectEach,m;(function(b){function a(){var a=this.stacking;if(a){var c=a.stacks;r(c,function(a,b){E(a);c[b]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function c(){this.stacking||(this.stacking=new g(this))}var e=[];b.compose=function(b){-1===e.indexOf(b)&&(e.push(b),v(b,"init",c),v(b,"destroy",a));return b};var g=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
487
+ function(){var a=this.axis,c=a.series,b=a.options.reversedStacks,e=c.length,g;if(!a.isXAxis){this.usePercentage=!1;for(g=e;g--;){var f=c[b?g:e-g-1];f.setStackedPoints();f.setGroupedPoints()}for(g=0;g<e;g++)c[g].modifyStacks();w(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;r(a,function(a){r(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,c=a.stacks;a.axis.isXAxis||r(c,function(c){r(c,
488
+ function(b,e){k(b.touched)&&b.touched<a.stacksTouched?(b.destroy(),delete c[e]):(b.total=null,b.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,c=a.chart,b=c.renderer,e=this.stacks;a=x(c,a.options.stackLabels&&a.options.stackLabels.animation||!1);var g=this.stackTotalGroup=this.stackTotalGroup||b.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();g.translate(c.plotLeft,c.plotTop);r(e,function(a){r(a,function(a){a.render(g)})});g.animate({opacity:1},
489
+ a)};return a}();b.Additions=g})(m||(m={}));return m});F(b,"Extensions/Stacking.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Axis/StackingAxis.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w){var k=A.format,r=w.correctFloat,m=w.defined,h=w.destroyObjectProperties,a=w.isArray,c=w.isNumber,e=w.objectEach,g=w.pick,C=function(){function a(a,c,b,e,f){var g=a.chart.inverted;this.axis=a;this.isNegative=b;this.options=
490
+ c=c||{};this.x=e;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=f;this.rightCliff=this.leftCliff=0;this.alignOptions={align:c.align||(g?b?"left":"right":"center"),verticalAlign:c.verticalAlign||(g?"middle":b?"bottom":"top"),y:c.y,x:c.x};this.textAlign=c.textAlign||(g?b?"right":"left":"center")}a.prototype.destroy=function(){h(this,this.axis)};a.prototype.render=function(a){var c=this.axis.chart,b=this.options,e=b.format;e=e?k(e,this,c):b.formatter.call(this);this.label?this.label.attr({text:e,
491
+ visibility:"hidden"}):(this.label=c.renderer.label(e,null,null,b.shape,null,null,b.useHTML,!1,"stack-labels"),e={r:b.borderRadius||0,text:e,rotation:b.rotation,padding:g(b.padding,5),visibility:"hidden"},c.styledMode||(e.fill=b.backgroundColor,e.stroke=b.borderColor,e["stroke-width"]=b.borderWidth,this.label.css(b.style)),this.label.attr(e),this.label.added||this.label.add(a));this.label.labelrank=c.plotSizeY};a.prototype.setOffset=function(a,b,e,h,f){var n=this.axis,d=n.chart;h=n.translate(n.stacking.usePercentage?
492
+ 100:h?h:this.total,0,0,0,1);e=n.translate(e?e:0);e=m(h)&&Math.abs(h-e);a=g(f,d.xAxis[0].translate(this.x))+a;n=m(h)&&this.getStackBox(d,this,a,h,b,e,n);b=this.label;e=this.isNegative;a="justify"===g(this.options.overflow,"justify");var k=this.textAlign;b&&n&&(f=b.getBBox(),h=b.padding,k="left"===k?d.inverted?-h:h:"right"===k?f.width:d.inverted&&"center"===k?f.width/2:d.inverted?e?f.width+h:-h:f.width/2,e=d.inverted?f.height/2:e?-h:f.height,this.alignOptions.x=g(this.options.x,0),this.alignOptions.y=
493
+ g(this.options.y,0),n.x-=k,n.y-=e,b.align(this.alignOptions,null,n),d.isInsidePlot(b.alignAttr.x+k-this.alignOptions.x,b.alignAttr.y+e-this.alignOptions.y)?b.show():(b.alignAttr.y=-9999,a=!1),a&&v.prototype.justifyDataLabel.call(this.axis,b,this.alignOptions,b.alignAttr,f,n),b.attr({x:b.alignAttr.x,y:b.alignAttr.y}),g(!a&&this.options.crop,!0)&&((d=c(b.x)&&c(b.y)&&d.isInsidePlot(b.x-h+b.width,b.y)&&d.isInsidePlot(b.x+h,b.y))||b.hide()))};a.prototype.getStackBox=function(a,c,b,e,f,g,d){var h=c.axis.reversed,
494
+ l=a.inverted,n=d.height+d.pos-(l?a.plotLeft:a.plotTop);c=c.isNegative&&!h||!c.isNegative&&h;return{x:l?c?e-d.right:e-g+d.pos-a.plotLeft:b+a.xAxis[0].transB-a.plotLeft,y:l?d.height-b-f:c?n-e-g:n-e,width:l?g:f,height:l?f:g}};return a}();u.prototype.getStacks=function(){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 e=b.xAxis&&b.xAxis.options||{};!b.options.stacking||!0!==
495
+ b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=[b.type,g(b.options.stack,""),c?e.top:e.left,c?e.height:e.width].join())})};E.compose(b);v.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?v.prototype.setStackedPoints.call(this,"group"):a&&e(a.stacks,function(c,b){"group"===b.slice(-5)&&(e(c,function(a){return a.destroy()}),delete a.stacks[b])})};
496
+ v.prototype.setStackedPoints=function(c){var b=c||this.options.stacking;if(b&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,h=this.processedYData,n=[],f=h.length,q=this.options,d=q.threshold,k=g(q.startFromThreshold&&d,0);q=q.stack;c=c?this.type+","+b:this.stackKey;var l="-"+c,y=this.negStacks,x=this.yAxis,w=x.stacking.stacks,u=x.stacking.oldStacks,v,A;x.stacking.stacksTouched+=1;for(A=0;A<f;A++){var E=e[A];var B=h[A];var F=this.getStackIndicator(F,
497
+ E,this.index);var P=F.key;var J=(v=y&&B<(k?0:d))?l:c;w[J]||(w[J]={});w[J][E]||(u[J]&&u[J][E]?(w[J][E]=u[J][E],w[J][E].total=null):w[J][E]=new C(x,x.options.stackLabels,v,E,q));J=w[J][E];null!==B?(J.points[P]=J.points[this.index]=[g(J.cumulative,k)],m(J.cumulative)||(J.base=P),J.touched=x.stacking.stacksTouched,0<F.index&&!1===this.singleStacks&&(J.points[P][0]=J.points[this.index+","+E+",0"][0])):J.points[P]=J.points[this.index]=null;"percent"===b?(v=v?c:l,y&&w[v]&&w[v][E]?(v=w[v][E],J.total=v.total=
498
+ Math.max(v.total,J.total)+Math.abs(B)||0):J.total=r(J.total+(Math.abs(B)||0))):"group"===b?(a(B)&&(B=B[0]),null!==B&&(J.total=(J.total||0)+1)):J.total=r(J.total+(B||0));J.cumulative="group"===b?(J.total||1)-1:g(J.cumulative,k)+(B||0);null!==B&&(J.points[P].push(J.cumulative),n[A]=J.cumulative,J.hasValidPoints=!0)}"percent"===b&&(x.stacking.usePercentage=!0);"group"!==b&&(this.stackedYData=n);x.stacking.oldStacks={}}};v.prototype.modifyStacks=function(){var a=this,c=a.stackKey,b=a.yAxis.stacking.stacks,
499
+ e=a.processedXData,g,f=a.options.stacking;a[f+"Stacker"]&&[c,"-"+c].forEach(function(c){for(var d=e.length,h,l;d--;)if(h=e[d],g=a.getStackIndicator(g,h,a.index,c),l=(h=b[c]&&b[c][h])&&h.points[g.key])a[f+"Stacker"](l,h,d)})};v.prototype.percentStacker=function(a,c,b){c=c.total?100/c.total:0;a[0]=r(a[0]*c);a[1]=r(a[1]*c);this.stackedYData[b]=a[1]};v.prototype.getStackIndicator=function(a,c,b,e){!m(a)||a.x!==c||e&&a.key!==e?a={x:c,index:0,key:e}:a.index++;a.key=[b,c,a.index].join();return a};B.StackItem=
500
+ C;"";return B.StackItem});F(b,"Series/Line/LineSeries.js",[b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(k,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(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,
501
+ new m)}}(),v=A.defined,E=A.merge;A=function(w){function k(){var b=null!==w&&w.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(k,w);k.prototype.drawGraph=function(){var b=this,k=this.options,h=(this.gappedPath||this.getGraphPath).call(this),a=this.chart.styledMode,c=[["graph","highcharts-graph"]];a||c[0].push(k.lineColor||this.color||"#cccccc",k.dashStyle);c=b.getZonesGraphs(c);c.forEach(function(c,g){var e=c[0],m=b[e],t=m?"animate":"attr";m?(m.endX=b.preventGraphAnimation?
502
+ null:h.xMap,m.animate({d:h})):h.length&&(b[e]=m=b.chart.renderer.path(h).addClass(c[1]).attr({zIndex:1}).add(b.group));m&&!a&&(e={stroke:c[2],"stroke-width":k.lineWidth,fill:b.fillGraph&&b.color||"none"},c[3]?e.dashstyle=c[3]:"square"!==k.linecap&&(e["stroke-linecap"]=e["stroke-linejoin"]="round"),m[t](e).shadow(2>g&&k.shadow));m&&(m.startX=h.xMap,m.isArea=h.isArea)})};k.prototype.getGraphPath=function(b,k,h){var a=this,c=a.options,e=[],g=[],m,r=c.step;b=b||a.points;var t=b.reversed;t&&b.reverse();
503
+ (r={right:1,center:2}[r]||r&&3)&&t&&(r=4-r);b=this.getValidPoints(b,!1,!(c.connectNulls&&!k&&!h));b.forEach(function(p,t){var n=p.plotX,f=p.plotY,q=b[t-1];(p.leftCliff||q&&q.rightCliff)&&!h&&(m=!0);p.isNull&&!v(k)&&0<t?m=!c.connectNulls:p.isNull&&!k?m=!0:(0===t||m?t=[["M",p.plotX,p.plotY]]:a.getPointSpline?t=[a.getPointSpline(b,p,t)]:r?(t=1===r?[["L",q.plotX,f]]:2===r?[["L",(q.plotX+n)/2,q.plotY],["L",(q.plotX+n)/2,f]]:[["L",n,q.plotY]],t.push(["L",n,f])):t=[["L",n,f]],g.push(p.x),r&&(g.push(p.x),
504
+ 2===r&&g.push(p.x)),e.push.apply(e,t),m=!1)});e.xMap=g;return a.graphPath=e};k.prototype.getZonesGraphs=function(b){this.zones.forEach(function(k,h){h=["zone-graph-"+h,"highcharts-graph highcharts-zone-graph-"+h+" "+(k.className||"")];this.chart.styledMode||h.push(k.color||this.color,k.dashStyle||this.options.dashStyle);b.push(h)},this);return b};k.defaultOptions=E(b.defaultOptions,{});return k}(b);u.registerSeriesType("line",A);"";return A});F(b,"Series/Area/AreaSeries.js",[b["Core/Color/Color.js"],
505
+ b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B){var x=this&&this.__extends||function(){var b=function(a,c){b=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 b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),E=b.parse,w=A.seriesTypes.line;b=
506
+ B.extend;var k=B.merge,r=B.objectEach,m=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}x(a,b);a.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,e=this.areaPath,g=this.options,h=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(c,b){h.push(["zone-area-"+b,"highcharts-area highcharts-zone-area-"+b+" "+c.className,c.color||a.color,c.fillColor||
507
+ g.fillColor])});h.forEach(function(c){var b=c[0],h=a[b],k=h?"animate":"attr",n={};h?(h.endX=a.preventGraphAnimation?null:e.xMap,h.animate({d:e})):(n.zIndex=0,h=a[b]=a.chart.renderer.path(e).addClass(c[1]).add(a.group),h.isArea=!0);a.chart.styledMode||(n.fill=m(c[3],E(c[2]).setOpacity(m(g.fillOpacity,.75)).get()));h[k](n);h.startX=e.xMap;h.shiftUnit=g.step?2:1})};a.prototype.getGraphPath=function(a){var c=w.prototype.getGraphPath,b=this.options,h=b.stacking,k=this.yAxis,t,p=[],r=[],n=this.index,f=
508
+ k.stacking.stacks[this.stackKey],q=b.threshold,d=Math.round(k.getThreshold(b.threshold));b=m(b.connectNulls,"percent"===h);var z=function(c,b,e){var g=a[c];c=h&&f[g.x].points[n];var l=g[e+"Null"]||0;e=g[e+"Cliff"]||0;g=!0;if(e||l){var m=(l?c[0]:c[1])+e;var t=c[0]+e;g=!!l}else!h&&a[b]&&a[b].isNull&&(m=t=q);"undefined"!==typeof m&&(r.push({plotX:x,plotY:null===m?d:k.getThreshold(m),isNull:g,isCliff:!0}),p.push({plotX:x,plotY:null===t?d:k.getThreshold(t),doCurve:!1}))};a=a||this.points;h&&(a=this.getStackPoints(a));
509
+ for(t=0;t<a.length;t++){h||(a[t].leftCliff=a[t].rightCliff=a[t].leftNull=a[t].rightNull=void 0);var l=a[t].isNull;var x=m(a[t].rectPlotX,a[t].plotX);var u=h?m(a[t].yBottom,d):d;if(!l||b)b||z(t,t-1,"left"),l&&!h&&b||(r.push(a[t]),p.push({x:t,plotX:x,plotY:u})),b||z(t,t+1,"right")}t=c.call(this,r,!0,!0);p.reversed=!0;l=c.call(this,p,!0,!0);(u=l[0])&&"M"===u[0]&&(l[0]=["L",u[1],u[2]]);l=t.concat(l);l.length&&l.push(["Z"]);c=c.call(this,r,!1,b);l.xMap=t.xMap;this.areaPath=l;return c};a.prototype.getStackPoints=
510
+ function(a){var c=this,b=[],h=[],k=this.xAxis,t=this.yAxis,p=t.stacking.stacks[this.stackKey],D={},n=t.series,f=n.length,q=t.options.reversedStacks?1:-1,d=n.indexOf(c);a=a||this.points;if(this.options.stacking){for(var z=0;z<a.length;z++)a[z].leftNull=a[z].rightNull=void 0,D[a[z].x]=a[z];r(p,function(a,c){null!==a.total&&h.push(c)});h.sort(function(a,c){return a-c});var l=n.map(function(a){return a.visible});h.forEach(function(a,e){var g=0,r,z;if(D[a]&&!D[a].isNull)b.push(D[a]),[-1,1].forEach(function(b){var g=
511
+ 1===b?"rightNull":"leftNull",k=0,m=p[h[e+b]];if(m)for(var t=d;0<=t&&t<f;){var y=n[t].index;r=m.points[y];r||(y===c.index?D[a][g]=!0:l[t]&&(z=p[a].points[y])&&(k-=z[1]-z[0]));t+=q}D[a][1===b?"rightCliff":"leftCliff"]=k});else{for(var y=d;0<=y&&y<f;){if(r=p[a].points[n[y].index]){g=r[1];break}y+=q}g=m(g,0);g=t.translate(g,0,1,0,1);b.push({isNull:!0,plotX:k.translate(a,0,0,0,1),x:a,plotY:g,yBottom:g})}})}return b};a.defaultOptions=k(w.defaultOptions,{threshold:0});return a}(w);b(B.prototype,{singleStacks:!1,
512
+ drawLegendSymbol:u.drawRectangle});A.registerSeriesType("area",B);"";return B});F(b,"Series/Spline/SplineSeries.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(k,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(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):
513
+ (m.prototype=r.prototype,new m)}}(),B=b.seriesTypes.line,v=u.merge,E=u.pick;u=function(b){function k(){var k=null!==b&&b.apply(this,arguments)||this;k.data=void 0;k.options=void 0;k.points=void 0;return k}x(k,b);k.prototype.getPointSpline=function(b,k,h){var a=k.plotX||0,c=k.plotY||0,e=b[h-1];h=b[h+1];if(e&&!e.isNull&&!1!==e.doCurve&&!k.isCliff&&h&&!h.isNull&&!1!==h.doCurve&&!k.isCliff){b=e.plotY||0;var g=h.plotX||0;h=h.plotY||0;var m=0;var r=(1.5*a+(e.plotX||0))/2.5;var t=(1.5*c+b)/2.5;g=(1.5*a+
514
+ g)/2.5;var p=(1.5*c+h)/2.5;g!==r&&(m=(p-t)*(g-a)/(g-r)+c-p);t+=m;p+=m;t>b&&t>c?(t=Math.max(b,c),p=2*c-t):t<b&&t<c&&(t=Math.min(b,c),p=2*c-t);p>h&&p>c?(p=Math.max(h,c),t=2*c-p):p<h&&p<c&&(p=Math.min(h,c),t=2*c-p);k.rightContX=g;k.rightContY=p}k=["C",E(e.rightContX,e.plotX,0),E(e.rightContY,e.plotY,0),E(r,a,0),E(t,c,0),a,c];e.rightContX=e.rightContY=void 0;return k};k.defaultOptions=v(B.defaultOptions);return k}(B);b.registerSeriesType("spline",u);"";return u});F(b,"Series/AreaSpline/AreaSplineSeries.js",
515
+ [b["Series/Area/AreaSeries.js"],b["Series/Spline/SplineSeries.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=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 c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):
516
+ (c.prototype=a.prototype,new c)}}(),w=b.prototype,k=v.extend,r=v.merge;v=function(k){function h(){var a=null!==k&&k.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}x(h,k);h.defaultOptions=r(u.defaultOptions,b.defaultOptions);return h}(u);k(v.prototype,{getGraphPath:w.getGraphPath,getStackPoints:w.getStackPoints,drawGraph:w.drawGraph,drawLegendSymbol:A.drawRectangle});B.registerSeriesType("areaspline",v);"";return v});F(b,"Series/Column/ColumnSeries.js",[b["Core/Animation/AnimationUtilities.js"],
517
+ b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w){var k=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):
518
+ (d.prototype=b.prototype,new d)}}(),r=b.animObject,m=u.parse,h=A.hasTouch;b=A.noop;var a=w.clamp,c=w.css,e=w.defined,g=w.extend,C=w.fireEvent,y=w.isArray,t=w.isNumber,p=w.merge,D=w.pick,n=w.objectEach;w=function(b){function f(){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}k(f,b);f.prototype.animate=function(c){var b=this,d=this.yAxis,e=b.options,f=this.chart.inverted,h={},n=f?"translateX":"translateY";if(c)h.scaleY=
519
+ .001,c=a(d.toPixels(e.threshold),d.pos,d.pos+d.len),f?h.translateX=c-d.len:h.translateY=c,b.clipBox&&b.setClip(),b.group.attr(h);else{var k=Number(b.group.attr(n));b.group.animate({scaleY:1},g(r(b.options.animation),{step:function(a,c){b.group&&(h[n]=k+c.pos*(d.pos-k),b.group.attr(h))}}))}};f.prototype.init=function(a,c){b.prototype.init.apply(this,arguments);var d=this;a=d.chart;a.hasRendered&&a.series.forEach(function(a){a.type===d.type&&(a.isDirty=!0)})};f.prototype.getColumnMetrics=function(){var a=
520
+ this,c=a.options,b=a.xAxis,e=a.yAxis,f=b.options.reversedStacks;f=b.reversed&&!f||!b.reversed&&f;var g={},h,n=0;!1===c.grouping?n=1:a.chart.series.forEach(function(c){var b=c.yAxis,d=c.options;if(c.type===a.type&&(c.visible||!a.chart.options.chart.ignoreHiddenSeries)&&e.len===b.len&&e.pos===b.pos){if(d.stacking&&"group"!==d.stacking){h=c.stackKey;"undefined"===typeof g[h]&&(g[h]=n++);var f=g[h]}else!1!==d.grouping&&(f=n++);c.columnIndex=f}});var k=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||
521
+ c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),q=k*c.groupPadding,p=(k-2*q)/(n||1);c=Math.min(c.maxPointWidth||b.len,D(c.pointWidth,p*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(p-c)/2+(q+((a.columnIndex||0)+(f?1:0))*p-k/2)*(f?-1:1),paddedWidth:p,columnCount:n};return a.columnMetrics};f.prototype.crispCol=function(a,c,b,e){var d=this.chart,f=this.borderWidth,g=-(f%2?.5:0);f=f%2?.5:1;d.inverted&&d.renderer.isVML&&(f+=1);this.options.crisp&&(b=Math.round(a+b)+g,a=Math.round(a)+
522
+ g,b-=a);e=Math.round(c+e)+f;g=.5>=Math.abs(c)&&.5<e;c=Math.round(c)+f;e-=c;g&&e&&(--c,e+=1);return{x:a,y:c,width:b,height:e}};f.prototype.adjustForMissingColumns=function(a,c,b,e){var d=this,f=this.options.stacking;if(!b.isNull&&1<e.columnCount){var g=0,h=0;n(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x&&(a=a[b.x.toString()])){var c=a.points[d.index],e=a.total;f?(c&&(g=h),a.hasValidPoints&&h++):y(c)&&(g=c[1],h=e||0)}});a=(b.plotX||0)+((h-1)*e.paddedWidth+c)/
523
+ 2-c-g*e.paddedWidth}return a};f.prototype.translate=function(){var c=this,b=c.chart,f=c.options,g=c.dense=2>c.closestPointRange*c.xAxis.transA;g=c.borderWidth=D(f.borderWidth,g?0:1);var h=c.xAxis,n=c.yAxis,k=f.threshold,q=c.translatedThreshold=n.getThreshold(k),p=D(f.minPointLength,5),m=c.getColumnMetrics(),r=m.width,y=c.pointXOffset=m.offset,C=c.dataMin,x=c.dataMax,w=c.barW=Math.max(r,1+2*g);b.inverted&&(q-=.5);f.pointPadding&&(w=Math.ceil(w));v.prototype.translate.apply(c);c.points.forEach(function(d){var g=
524
+ D(d.yBottom,q),l=999+Math.abs(g),z=d.plotX||0;l=a(d.plotY,-l,n.len+l);var u=Math.min(l,g),v=Math.max(l,g)-u,E=r,A=z+y,B=w;p&&Math.abs(v)<p&&(v=p,z=!n.reversed&&!d.negative||n.reversed&&d.negative,t(k)&&t(x)&&d.y===k&&x<=k&&(n.min||0)<k&&(C!==x||(n.max||0)<=k)&&(z=!z),u=Math.abs(u-q)>p?g-p:q-(z?p:0));e(d.options.pointWidth)&&(E=B=Math.ceil(d.options.pointWidth),A-=Math.round((E-r)/2));f.centerInCategory&&(A=c.adjustForMissingColumns(A,E,d,m));d.barX=A;d.pointWidth=E;d.tooltipPos=b.inverted?[a(n.len+
525
+ n.pos-b.plotLeft-l,n.pos-b.plotLeft,n.len+n.pos-b.plotLeft),h.len+h.pos-b.plotTop-A-B/2,v]:[h.left-b.plotLeft+A+B/2,a(l+n.pos-b.plotTop,n.pos-b.plotTop,n.len+n.pos-b.plotTop),v];d.shapeType=c.pointClass.prototype.shapeType||"rect";d.shapeArgs=c.crispCol.apply(c,d.isNull?[A,q,B,0]:[A,u,B,v])})};f.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};f.prototype.pointAttribs=function(a,c){var b=this.options,d=this.pointAttrToOptions||{},e=d.stroke||
526
+ "borderColor",f=d["stroke-width"]||"borderWidth",g=a&&a.color||this.color,h=a&&a[e]||b[e]||g;d=a&&a.options.dashStyle||b.dashStyle;var n=a&&a[f]||b[f]||this[f]||0,k=D(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var q=a.getZone();g=a.options.color||q&&(q.color||a.nonZonedColor)||this.color;q&&(h=q.borderColor||h,d=q.dashStyle||d,n=q.borderWidth||n)}c&&a&&(a=p(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,g=a.color||"undefined"!==typeof c&&m(g).brighten(a.brightness).get()||
527
+ g,h=a[e]||h,n=a[f]||n,d=a.dashStyle||d,k=D(a.opacity,k));e={fill:g,stroke:h,"stroke-width":n,opacity:k};d&&(e.dashstyle=d);return e};f.prototype.drawPoints=function(){var a=this,c=this.chart,b=a.options,e=c.renderer,f=b.animationLimit||250,g;a.points.forEach(function(d){var h=d.graphic,l=!!h,n=h&&c.pointCount<f?"animate":"attr";if(t(d.plotY)&&null!==d.y){g=d.shapeArgs;h&&d.hasNewShapeType()&&(h=h.destroy());a.enabledDataSorting&&(d.startXPos=a.xAxis.reversed?-(g?g.width||0:0):a.xAxis.width);h||(d.graphic=
528
+ h=e[d.shapeType](g).add(d.group||a.group))&&a.enabledDataSorting&&c.hasRendered&&c.pointCount<f&&(h.attr({x:d.startXPos}),l=!0,n="animate");if(h&&l)h[n](p(g));if(b.borderRadius)h[n]({r:b.borderRadius});c.styledMode||h[n](a.pointAttribs(d,d.selected&&"select")).shadow(!1!==d.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);h&&(h.addClass(d.getClassName(),!0),h.attr({visibility:d.visible?"inherit":"hidden"}))}else h&&(d.graphic=h.destroy())})};f.prototype.drawTracker=function(){var a=this,b=
529
+ a.chart,e=b.pointer,f=function(a){var c=e.getPointFromEvent(a);"undefined"!==typeof c&&(e.isDirectTouch=!0,c.onMouseOver(a))},g;a.points.forEach(function(a){g=y(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);g.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(d){if(a[d]){a[d].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){e.onTrackerMouseOut(a)});if(h)a[d].on("touchstart",
530
+ f);!b.styledMode&&a.options.cursor&&a[d].css(c).css({cursor:a.options.cursor})}}),a._hasTracking=!0);C(this,"afterDrawTracker")};f.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(c){c.type===a.type&&(c.isDirty=!0)});v.prototype.remove.apply(a,arguments)};f.defaultOptions=p(v.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
531
+ 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 f}(v);g(w.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:B.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});E.registerSeriesType("column",w);"";"";return w});F(b,"Core/Series/DataLabel.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/FormatUtilities.js"],
532
+ b["Core/Utilities.js"]],function(b,u,A){var x=b.getDeferredAnimation,v=u.format,E=A.defined,w=A.extend,k=A.fireEvent,r=A.isArray,m=A.merge,h=A.objectEach,a=A.pick,c=A.splat,e;(function(b){function e(c,b,e,f,g){var d=this,h=this.chart,l=this.isCartesian&&h.inverted,n=this.enabledDataSorting,k=a(c.dlBox&&c.dlBox.centerX,c.plotX,-9999),q=a(c.plotY,-9999),p=b.getBBox(),m=e.rotation,t=e.align,r=h.isInsidePlot(k,Math.round(q),{inverted:l,paneCoordinates:!0,series:d}),z=function(a){n&&d.xAxis&&!D&&d.setDataLabelStartPos(c,
533
+ b,g,r,a)},D="justify"===a(e.overflow,n?"none":"justify"),y=this.visible&&!1!==c.visible&&(c.series.forceDL||n&&!D||r||a(e.inside,!!this.options.stacking)&&f&&h.isInsidePlot(k,l?f.x+1:f.y+f.height-1,{inverted:l,paneCoordinates:!0,series:d}));if(y){var x=h.renderer.fontMetrics(h.styledMode?void 0:e.style.fontSize,b).b;f=w({x:l?this.yAxis.len-q:k,y:Math.round(l?this.xAxis.len-k:q),width:0,height:0},f);w(e,{width:p.width,height:p.height});m?(D=!1,k=h.renderer.rotCorr(x,m),k={x:f.x+(e.x||0)+f.width/2+
534
+ k.x,y:f.y+(e.y||0)+{top:0,middle:.5,bottom:1}[e.verticalAlign]*f.height},z(k),b[g?"attr":"animate"](k).attr({align:t}),z=(m+720)%360,z=180<z&&360>z,"left"===t?k.y-=z?p.height:0:"center"===t?(k.x-=p.width/2,k.y-=p.height/2):"right"===t&&(k.x-=p.width,k.y-=z?0:p.height),b.placed=!0,b.alignAttr=k):(z(f),b.align(e,void 0,f),k=b.alignAttr);D&&0<=f.height?this.justifyDataLabel(b,e,k,p,f,g):a(e.crop,!0)&&(y=h.isInsidePlot(k.x,k.y,{paneCoordinates:!0,series:d})&&h.isInsidePlot(k.x+p.width,k.y+p.height,{paneCoordinates:!0,
535
+ series:d}));if(e.shape&&!m)b[g?"attr":"animate"]({anchorX:l?h.plotWidth-c.plotY:c.plotX,anchorY:l?h.plotHeight-c.plotX:c.plotY})}g&&n&&(b.placed=!1);y||n&&!D||(b.hide(!0),b.placed=!1)}function g(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 t(){var b=this,d=b.chart,e=b.options,f=b.points,n=b.hasRendered||0,p=d.renderer,m=e.dataLabels,t,y=m.animation;y=m.defer?x(d,
536
+ y,b):{defer:0,duration:0};m=D(D(d.options.plotOptions&&d.options.plotOptions.series&&d.options.plotOptions.series.dataLabels,d.options.plotOptions&&d.options.plotOptions[b.type]&&d.options.plotOptions[b.type].dataLabels),m);k(this,"drawDataLabels");if(r(m)||m.enabled||b._hasPointLabels){var C=b.plotGroup("dataLabelsGroup","data-labels",n?"inherit":"hidden",m.zIndex||6);C.attr({opacity:+n});!n&&(n=b.dataLabelsGroup)&&(b.visible&&C.show(!0),n[e.animation?"animate":"attr"]({opacity:1},y));f.forEach(function(f){t=
537
+ c(D(m,f.dlOptions||f.options&&f.options.dataLabels));t.forEach(function(c,n){var l=c.enabled&&(!f.isNull||f.dataLabelOnNull)&&g(f,c),k=f.connectors?f.connectors[n]:f.connector,q=f.dataLabels?f.dataLabels[n]:f.dataLabel,m=a(c.distance,f.labelDistance),t=!q;if(l){var r=f.getLabelConfig();var z=a(c[f.formatPrefix+"Format"],c.format);r=E(z)?v(z,r,d):(c[f.formatPrefix+"Formatter"]||c.formatter).call(r,c);z=c.style;var D=c.rotation;d.styledMode||(z.color=a(c.color,z.color,b.color,"#000000"),"contrast"===
538
+ z.color?(f.contrastColor=p.getContrast(f.color||b.color),z.color=!E(m)&&c.inside||0>m||e.stacking?f.contrastColor:"#000000"):delete f.contrastColor,e.cursor&&(z.cursor=e.cursor));var y={r:c.borderRadius||0,rotation:D,padding:c.padding,zIndex:1};d.styledMode||(y.fill=c.backgroundColor,y.stroke=c.borderColor,y["stroke-width"]=c.borderWidth);h(y,function(a,c){"undefined"===typeof a&&delete y[c]})}!q||l&&E(r)?l&&E(r)&&(q?y.text=r:(f.dataLabels=f.dataLabels||[],q=f.dataLabels[n]=D?p.text(r,0,-9999,c.useHTML).addClass("highcharts-data-label"):
539
+ p.label(r,0,-9999,c.shape,null,null,c.useHTML,null,"data-label"),n||(f.dataLabel=q),q.addClass(" highcharts-data-label-color-"+f.colorIndex+" "+(c.className||"")+(c.useHTML?" highcharts-tracker":""))),q.options=c,q.attr(y),d.styledMode||q.css(z).shadow(c.shadow),q.added||q.add(C),c.textPath&&!c.useHTML&&(q.setTextPath(f.getDataLabelPath&&f.getDataLabelPath(q)||f.graphic,c.textPath),f.dataLabelPath&&!c.textPath.enabled&&(f.dataLabelPath=f.dataLabelPath.destroy())),b.alignDataLabel(f,q,c,null,t)):(f.dataLabel=
540
+ f.dataLabel&&f.dataLabel.destroy(),f.dataLabels&&(1===f.dataLabels.length?delete f.dataLabels:delete f.dataLabels[n]),n||delete f.dataLabel,k&&(f.connector=f.connector.destroy(),f.connectors&&(1===f.connectors.length?delete f.connectors:delete f.connectors[n])))})})}k(this,"afterDrawDataLabels")}function p(a,c,b,e,f,g){var d=this.chart,h=c.align,n=c.verticalAlign,l=a.box?0:a.padding||0,k=c.x;k=void 0===k?0:k;var q=c.y;q=void 0===q?0:q;var p=(b.x||0)+l;if(0>p){"right"===h&&0<=k?(c.align="left",c.inside=
541
+ !0):k-=p;var m=!0}p=(b.x||0)+e.width-l;p>d.plotWidth&&("left"===h&&0>=k?(c.align="right",c.inside=!0):k+=d.plotWidth-p,m=!0);p=b.y+l;0>p&&("bottom"===n&&0<=q?(c.verticalAlign="top",c.inside=!0):q-=p,m=!0);p=(b.y||0)+e.height-l;p>d.plotHeight&&("top"===n&&0>=q?(c.verticalAlign="bottom",c.inside=!0):q+=d.plotHeight-p,m=!0);m&&(c.x=k,c.y=q,a.placed=!g,a.align(c,void 0,f));return m}function D(a,c){var b=[],d;if(r(a)&&!r(c))b=a.map(function(a){return m(a,c)});else if(r(c)&&!r(a))b=c.map(function(c){return m(a,
542
+ c)});else if(r(a)||r(c))for(d=Math.max(a.length,c.length);d--;)b[d]=m(a[d],c[d]);else b=m(a,c);return b}function n(a,c,b,e,f){var d=this.chart,g=d.inverted,h=this.xAxis,n=h.reversed,k=g?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=g?f.x:n?-k-a:h.width-k+a;c.startYPos=g?n?this.yAxis.height-k+a:-k-a:f.y;e?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);d.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),
543
+ c.placed=!0)}var f=[];b.compose=function(a){if(-1===f.indexOf(a)){var c=a.prototype;f.push(a);c.alignDataLabel=e;c.drawDataLabels=t;c.justifyDataLabel=p;c.setDataLabelStartPos=n}}})(e||(e={}));"";return e});F(b,"Series/Column/ColumnDataLabel.js",[b["Core/Series/DataLabel.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=u.series,v=A.merge,E=A.pick,w;(function(k){function r(b,a,c,e,g){var h=this.chart.inverted,k=b.series,m=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||
544
+ 0;k=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0;var p=b.dlBox||b.shapeArgs,r=E(b.below,b.plotY>E(this.translatedThreshold,k)),n=E(c.inside,!!this.options.stacking);p&&(e=v(p),0>e.y&&(e.height+=e.y,e.y=0),p=e.y+e.height-k,0<p&&p<e.height&&(e.height-=p),h&&(e={x:k-e.y-e.height,y:m-e.x-e.width,width:e.height,height:e.width}),n||(h?(e.x+=r?0:e.width,e.width=0):(e.y+=r?e.height:0,e.height=0)));c.align=E(c.align,!h||n?"center":r?"right":"left");c.verticalAlign=E(c.verticalAlign,h||n?"middle":r?"top":
545
+ "bottom");x.prototype.alignDataLabel.call(this,b,a,c,e,g);c.inside&&b.contrastColor&&a.css({color:b.contrastColor})}var m=[];k.compose=function(h){b.compose(x);-1===m.indexOf(h)&&(m.push(h),h.prototype.alignDataLabel=r)}})(w||(w={}));return w});F(b,"Series/Bar/BarSeries.js",[b["Series/Column/ColumnSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
546
+ function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}}(),v=A.extend,E=A.merge;A=function(w){function k(){var b=null!==w&&w.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(k,w);k.defaultOptions=E(b.defaultOptions,{});return k}(b);v(A.prototype,{inverted:!0});u.registerSeriesType("bar",
547
+ A);"";return A});F(b,"Series/Scatter/ScatterSeries.js",[b["Series/Column/ColumnSeries.js"],b["Series/Line/LineSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B){var x=this&&this.__extends||function(){var b=function(k,h){b=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 b(k,h)};return function(k,h){function a(){this.constructor=k}b(k,h);k.prototype=null===
548
+ h?Object.create(h):(a.prototype=h.prototype,new a)}}(),E=B.addEvent,w=B.extend,k=B.merge;B=function(b){function m(){var h=null!==b&&b.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}x(m,b);m.prototype.applyJitter=function(){var b=this,a=this.options.jitter,c=this.points.length;a&&this.points.forEach(function(e,g){["x","y"].forEach(function(h,k){var m="plot"+h.toUpperCase();if(a[h]&&!e.isNull){var p=b[h+"Axis"];var r=a[h]*p.transA;if(p&&!p.isLog){var n=Math.max(0,
549
+ e[m]-r);p=Math.min(p.len,e[m]+r);k=1E4*Math.sin(g+k*c);e[m]=n+(p-n)*(k-Math.floor(k));"x"===h&&(e.clientX=e.plotX)}}})})};m.prototype.drawGraph=function(){this.options.lineWidth?b.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};m.defaultOptions=k(u.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});
550
+ return m}(u);w(B.prototype,{drawTracker:b.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});E(B,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",B);"";return B});F(b,"Series/CenteredUtilities.js",[b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,u,A){var x=b.deg2rad,v=A.isNumber,E=A.pick,w=A.relativeLength,k;(function(b){b.getCenter=function(){var b=
551
+ this.options,h=this.chart,a=2*(b.slicedOffset||0),c=h.plotWidth-2*a,e=h.plotHeight-2*a,g=b.center,k=Math.min(c,e),r=b.size,t=b.innerSize||0;"string"===typeof r&&(r=parseFloat(r));"string"===typeof t&&(t=parseFloat(t));b=[E(g[0],"50%"),E(g[1],"50%"),E(r&&0>r?void 0:b.size,"100%"),E(t&&0>t?void 0:b.innerSize||0,"0%")];!h.angular||this instanceof u||(b[3]=0);for(g=0;4>g;++g)r=b[g],h=2>g||2===g&&/%$/.test(r),b[g]=w(r,[c,e,k,b[2]][g])+(h?a:0);b[3]>b[2]&&(b[3]=b[2]);return b};b.getStartAndEndRadians=function(b,
552
+ h){b=v(b)?b:0;h=v(h)&&h>b&&360>h-b?h:b+360;return{start:x*(b+-90),end:x*(h+-90)}}})(k||(k={}));"";return k});F(b,"Series/Pie/PiePoint.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(a,c){b=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 b(a,c)};return function(a,c){function e(){this.constructor=
553
+ a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),v=b.setAnimation,E=A.addEvent,w=A.defined;b=A.extend;var k=A.isNumber,r=A.pick,m=A.relativeLength;u=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}x(a,b);a.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,g=this.connectorShapes,h=b.connectorShape;g[h]&&(h=g[h]);return h.call(this,{x:a.final.x,
554
+ 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 c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};a.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=r(this.name,"Slice");var e=function(c){a.slice("select"===
555
+ c.type)};E(this,"select",e);E(this,"unselect",e);return this};a.prototype.isValid=function(){return k(this.y)&&0<=this.y};a.prototype.setVisible=function(a,b){var c=this,e=this.series,h=e.chart,k=e.options.ignoreHiddenPoint;b=r(b,k);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(c[b])c[b][a?"show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,
556
+ a),a||"hover"!==this.state||this.setState(""),k&&(e.isDirty=!0),b&&h.redraw())};a.prototype.slice=function(a,b,g){var c=this.series;v(g,c.chart);r(b,!0);this.sliced=this.options.sliced=w(a)?a:!this.sliced;c.options.data[c.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return a}(u);b(u.prototype,{connectorShapes:{fixedOffset:function(b,a,c){var e=a.breakAt;a=a.touchingSliceAt;return[["M",b.x,
557
+ b.y],c.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*e.x-a.x,2*e.y-a.y,e.x,e.y]:["L",e.x,e.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,a,c){a=a.touchingSliceAt;var e=this.series,g=e.center[0],h=e.chart.plotWidth,k=e.chart.plotLeft;e=b.alignment;var t=this.shapeArgs.r;c=m(c.crookDistance,1);h="left"===e?g+t+(h+k-g-t)*(1-c):k+(g-t)*c;c=["L",h,b.y];g=!0;if("left"===e?h>b.x||h<a.x:h<b.x||h>a.x)g=!1;b=[["M",b.x,b.y]];
558
+ g&&b.push(c);b.push(["L",a.x,a.y]);return b}}});return u});F(b,"Series/Pie/PieSeries.js",[b["Series/CenteredUtilities.js"],b["Series/Column/ColumnSeries.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Series/Pie/PiePoint.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/Symbols.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k,r){var m=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
559
+ 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 e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),h=b.getStartAndEndRadians;A=A.noop;var a=r.clamp,c=r.extend,e=r.fireEvent,g=r.merge,x=r.pick,y=r.relativeLength;r=function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.center=void 0;a.data=void 0;a.maxLabelDistance=void 0;a.options=void 0;a.points=
560
+ void 0;return a}m(b,c);b.prototype.animate=function(a){var c=this,b=c.points,e=c.startAngleRad;a||b.forEach(function(a){var b=a.graphic,d=a.shapeArgs;b&&d&&(b.attr({r:x(a.startR,c.center&&c.center[3]/2),start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))})};b.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,b=this.options;if(0===this.total&&this.center){var e=this.center[0];var d=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,
561
+ d,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:k.arc(e,d,this.center[2]/2,0,{start:a,end:c,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};b.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||
562
+ (c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};b.prototype.generatePoints=function(){c.prototype.generatePoints.call(this);this.updateTotals()};b.prototype.getX=function(c,b,e){var f=this.center,d=this.radii?this.radii[e.index]||0:f[2]/2;c=Math.asin(a((c-f[1])/(d+e.labelDistance),-1,1));return f[0]+(b?-1:1)*Math.cos(c)*(d+e.labelDistance)+(0<e.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};b.prototype.hasData=function(){return!!this.processedXData.length};
563
+ b.prototype.redrawPoints=function(){var a=this,c=a.chart,b=c.renderer,e=a.options.shadow,d,h,k,p;this.drawEmpty();!e||a.shadowGroup||c.styledMode||(a.shadowGroup=b.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(f){var l={};h=f.graphic;if(!f.isNull&&h){var n=void 0;p=f.shapeArgs;d=f.getTranslate();c.styledMode||(n=f.shadowGroup,e&&!n&&(n=f.shadowGroup=b.g("shadow").add(a.shadowGroup)),n&&n.attr(d),k=a.pointAttribs(f,f.selected&&"select"));f.delayedRendering?(h.setRadialReference(a.center).attr(p).attr(d),
564
+ c.styledMode||h.attr(k).attr({"stroke-linejoin":"round"}).shadow(e,n),f.delayedRendering=!1):(h.setRadialReference(a.center),c.styledMode||g(!0,l,k),g(!0,l,p,d),h.animate(l));h.attr({visibility:f.visible?"inherit":"hidden"});h.addClass(f.getClassName(),!0)}else h&&(f.graphic=h.destroy())})};b.prototype.sortByAngle=function(a,c){a.sort(function(a,b){return"undefined"!==typeof a.angle&&(b.angle-a.angle)*c})};b.prototype.translate=function(a){this.generatePoints();var c=this.options,b=c.slicedOffset,
565
+ g=b+(c.borderWidth||0),d=h(c.startAngle,c.endAngle),k=this.startAngleRad=d.start;d=(this.endAngleRad=d.end)-k;var l=this.points,p=c.dataLabels.distance;c=c.ignoreHiddenPoint;var m=l.length,t,r=0;a||(this.center=a=this.getCenter());for(t=0;t<m;t++){var D=l[t];var w=k+r*d;!D.isValid()||c&&!D.visible||(r+=D.percentage/100);var u=k+r*d;var C={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*w)/1E3,end:Math.round(1E3*u)/1E3};D.shapeType="arc";D.shapeArgs=C;D.labelDistance=x(D.options.dataLabels&&
566
+ D.options.dataLabels.distance,p);D.labelDistance=y(D.labelDistance,C.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,D.labelDistance);u=(u+w)/2;u>1.5*Math.PI?u-=2*Math.PI:u<-Math.PI/2&&(u+=2*Math.PI);D.slicedTranslation={translateX:Math.round(Math.cos(u)*b),translateY:Math.round(Math.sin(u)*b)};C=Math.cos(u)*a[2]/2;var v=Math.sin(u)*a[2]/2;D.tooltipPos=[a[0]+.7*C,a[1]+.7*v];D.half=u<-Math.PI/2||u>Math.PI/2?1:0;D.angle=u;w=Math.min(g,D.labelDistance/5);D.labelPosition={natural:{x:a[0]+C+
567
+ Math.cos(u)*D.labelDistance,y:a[1]+v+Math.sin(u)*D.labelDistance},"final":{},alignment:0>D.labelDistance?"center":D.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+C+Math.cos(u)*w,y:a[1]+v+Math.sin(u)*w},touchingSliceAt:{x:a[0]+C,y:a[1]+v}}}}e(this,"afterTranslate")};b.prototype.updateTotals=function(){var a=this.points,c=a.length,b=this.options.ignoreHiddenPoint,e,d=0;for(e=0;e<c;e++){var g=a[e];!g.isValid()||b&&!g.visible||(d+=g.y)}this.total=d;for(e=0;e<c;e++)g=a[e],g.percentage=0<d&&(g.visible||
568
+ !b)?g.y/d*100:0,g.total=d};b.defaultOptions=g(E.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",
569
+ borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return b}(E);c(r.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:B.drawRectangle,drawTracker:u.prototype.drawTracker,getCenter:b.getCenter,getSymbol:A,isCartesian:!1,noSharedTooltip:!0,pointAttribs:u.prototype.pointAttribs,pointClass:v,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]});w.registerSeriesType("pie",r);"";return r});F(b,"Series/Pie/PieDataLabel.js",[b["Core/Series/DataLabel.js"],
570
+ b["Core/Globals.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=u.noop,w=A.distribute,k=B.series,r=v.arrayMax,m=v.clamp,h=v.defined,a=v.merge,c=v.pick,e=v.relativeLength,g;(function(g){function y(){var b=this,e=b.data,d=b.chart,g=b.options.dataLabels||{},l=g.connectorPadding,n=d.plotWidth,p=d.plotHeight,m=d.plotLeft,t=Math.round(d.chartWidth/3),y=b.center,D=y[2]/2,x=y[1],u=[[],[]],C=[0,0,0,0],v=b.dataLabelPositioners,
571
+ A,E,B,F,Y,L,T,R,V,U,W,O;b.visible&&(g.enabled||b._hasPointLabels)&&(e.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),k.prototype.drawDataLabels.apply(b),e.forEach(function(a){a.dataLabel&&(a.visible?(u[a.half].push(a),a.dataLabel._pos=null,!h(g.style.width)&&!h(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>t&&(a.dataLabel.css({width:Math.round(.7*
572
+ t)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),u.forEach(function(a,e){var f=a.length,k=[],q;if(f){b.sortByAngle(a,e-.5);if(0<b.maxLabelDistance){var t=Math.max(0,x-D-b.maxLabelDistance);var r=Math.min(x+D+b.maxLabelDistance,d.plotHeight);a.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,x-D-a.labelDistance),a.bottom=Math.min(x+D+a.labelDistance,d.plotHeight),q=a.dataLabel.getBBox().height||
573
+ 21,a.distributeBox={target:a.labelPosition.natural.y-a.top+q/2,size:q,rank:a.y},k.push(a.distributeBox))});t=r+q-t;w(k,t,t/5)}for(W=0;W<f;W++){A=a[W];L=A.labelPosition;F=A.dataLabel;U=!1===A.visible?"hidden":"inherit";V=t=L.natural.y;k&&h(A.distributeBox)&&("undefined"===typeof A.distributeBox.pos?U="hidden":(T=A.distributeBox.size,V=v.radialDistributionY(A)));delete A.positionIndex;if(g.justify)R=v.justify(A,D,y);else switch(g.alignTo){case "connectors":R=v.alignToConnectors(a,e,n,m);break;case "plotEdges":R=
574
+ v.alignToPlotEdges(F,e,n,m);break;default:R=v.radialDistributionX(b,A,V,t)}F._attr={visibility:U,align:L.alignment};O=A.options.dataLabels||{};F._pos={x:R+c(O.x,g.x)+({left:l,right:-l}[L.alignment]||0),y:V+c(O.y,g.y)-10};L.final.x=R;L.final.y=V;c(g.crop,!0)&&(Y=F.getBBox().width,t=null,R-Y<l&&1===e?(t=Math.round(Y-R+l),C[3]=Math.max(t,C[3])):R+Y>n-l&&0===e&&(t=Math.round(R+Y-n+l),C[1]=Math.max(t,C[1])),0>V-T/2?C[0]=Math.max(Math.round(-V+T/2),C[0]):V+T/2>p&&(C[2]=Math.max(Math.round(V+T/2-p),C[2])),
575
+ F.sideOverflow=t)}}}),0===r(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),this.points.forEach(function(e){O=a(g,e.options.dataLabels);if(E=c(O.connectorWidth,1)){var f;B=e.connector;if((F=e.dataLabel)&&F._pos&&e.visible&&0<e.labelDistance){U=F._attr.visibility;if(f=!B)e.connector=B=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(b.dataLabelsGroup),d.styledMode||B.attr({"stroke-width":E,stroke:O.connectorColor||
576
+ e.color||"#666666"});B[f?"attr":"animate"]({d:e.getConnectorPath()});B.attr("visibility",U)}else B&&(e.connector=B.destroy())}}))}function t(){this.points.forEach(function(a){var c=a.dataLabel,b;c&&a.visible&&((b=c._pos)?(c.sideOverflow&&(c._attr.width=Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),c[c.moved?"animate":"attr"](b),c.moved=!0):c&&c.attr({y:-9999}));
577
+ delete a.distributeBox},this)}function p(a){var c=this.center,b=this.options,f=b.center,g=b.minSize||80,h=null!==b.size;if(!h){if(null!==f[0])var k=Math.max(c[2]-Math.max(a[1],a[3]),g);else k=Math.max(c[2]-a[1]-a[3],g),c[0]+=(a[3]-a[1])/2;null!==f[1]?k=m(k,g,c[2]-Math.max(a[0],a[2])):(k=m(k,g,c[2]-a[0]-a[2]),c[1]+=(a[0]-a[2])/2);k<c[2]?(c[2]=k,c[3]=Math.min(e(b.innerSize||0,k),k),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):h=!0}return h}var D=[],n={radialDistributionY:function(a){return a.top+
578
+ a.distributeBox.pos},radialDistributionX:function(a,c,b,e){return a.getX(b<c.top+2||b>c.bottom-2?e:b,c.half,c)},justify:function(a,c,b){return b[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,b,e){a=a.getBBox().width;return c?a+e:b-a-e},alignToConnectors:function(a,c,b,e){var d=0,f;a.forEach(function(a){f=a.dataLabel.getBBox().width;f>d&&(d=f)});return c?d+e:b-d-e}};g.compose=function(a){b.compose(k);-1===D.indexOf(a)&&(D.push(a),a=a.prototype,a.dataLabelPositioners=n,a.alignDataLabel=
579
+ x,a.drawDataLabels=y,a.placeDataLabels=t,a.verifyDataLabelOverflow=p)}})(g||(g={}));return g});F(b,"Extensions/OverlappingDataLabels.js",[b["Core/Chart/Chart.js"],b["Core/Utilities.js"]],function(b,u){function x(b,h){var a=!1;if(b){var c=b.newOpacity;b.oldOpacity!==c&&(b.alignAttr&&b.placed?(b[c?"removeClass":"addClass"]("highcharts-data-label-hidden"),a=!0,b.alignAttr.opacity=c,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){h.styledMode||b.css({pointerEvents:c?"auto":"none"})}),v(h,"afterHideOverlappingLabel")):
580
+ b.attr({opacity:c}));b.isOld=!0}return a}var B=u.addEvent,v=u.fireEvent,E=u.isArray,w=u.isNumber,k=u.objectEach,r=u.pick;B(b,"render",function(){var b=this,h=[];(this.labelCollectors||[]).forEach(function(a){h=h.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&k(a.stacking.stacks,function(a){k(a,function(a){a.label&&"hidden"!==a.label.visibility&&h.push(a.label)})})});(this.series||[]).forEach(function(a){var c=a.options.dataLabels;
581
+ a.visible&&(!1!==c.enabled||a._hasPointLabels)&&(c=function(a){return a.forEach(function(a){a.visible&&(E(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(c){var e=c.options;c.labelrank=r(e.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);e.allowOverlap?(c.oldOpacity=c.opacity,c.newOpacity=1,x(c,b)):h.push(c)})})},c(a.nodes||[]),c(a.points))});this.hideOverlappingLabels(h)});b.prototype.hideOverlappingLabels=function(b){var h=this,a=b.length,c=h.renderer,e,g,k,m=!1;
582
+ var t=function(a){var b,e=a.box?0:a.padding||0,d=b=0,g;if(a&&(!a.alignAttr||a.placed)){var h=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup;a.width||(b=a.getBBox(),a.width=b.width,a.height=b.height,b=c.fontMetrics(null,a.element).h);var n=a.width-2*e;(g={left:"0",center:"0.5",right:"1"}[a.alignValue])?d=+g*n:w(a.x)&&Math.round(a.x)!==a.translateX&&(d=a.x-a.translateX);return{x:h.x+(k.translateX||0)+e-(d||0),y:h.y+(k.translateY||0)+e-b,width:a.width-2*e,height:a.height-2*e}}};for(g=
583
+ 0;g<a;g++)if(e=b[g])e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=t(e);b.sort(function(a,c){return(c.labelrank||0)-(a.labelrank||0)});for(g=0;g<a;g++){var p=(t=b[g])&&t.absoluteBox;for(e=g+1;e<a;++e){var r=(k=b[e])&&k.absoluteBox;!p||!r||t===k||0===t.newOpacity||0===k.newOpacity||r.x>=p.x+p.width||r.x+r.width<=p.x||r.y>=p.y+p.height||r.y+r.height<=p.y||((t.labelrank<k.labelrank?t:k).newOpacity=0)}}b.forEach(function(a){x(a,h)&&(m=!0)});m&&v(h,"afterHideAllOverlappingLabels")}});F(b,"Core/Responsive.js",
584
+ [b["Core/Utilities.js"]],function(b){var x=b.extend,A=b.find,B=b.isArray,v=b.isObject,E=b.merge,w=b.objectEach,k=b.pick,r=b.splat,m=b.uniqueKey,h;(function(a){var c=[];a.compose=function(a){-1===c.indexOf(a)&&(c.push(a),x(a.prototype,b.prototype));return a};var b=function(){function a(){}a.prototype.currentOptions=function(a){function c(a,e,f,g){var d;w(a,function(a,h){if(!g&&-1<b.collectionsWithUpdate.indexOf(h)&&e[h])for(a=r(a),f[h]=[],d=0;d<Math.max(a.length,e[h].length);d++)e[h][d]&&(void 0===
585
+ a[d]?f[h][d]=e[h][d]:(f[h][d]={},c(a[d],e[h][d],f[h][d],g+1)));else v(a)?(f[h]=B(a)?[]:{},c(a,e[h]||{},f[h],g+1)):f[h]="undefined"===typeof e[h]?null:e[h]})}var b=this,e={};c(a,this.options,e,0);return e};a.prototype.matchResponsiveRule=function(a,c){var b=a.condition;(b.callback||function(){return this.chartWidth<=k(b.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=k(b.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=k(b.minWidth,0)&&this.chartHeight>=k(b.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=
586
+ function(a,c){var b=this,e=this.options.responsive,g=this.currentResponsive,h=[];!c&&e&&e.rules&&e.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=m());b.matchResponsiveRule(a,h)},this);c=E.apply(void 0,h.map(function(a){return A((e||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));c.isResponsiveOptions=!0;h=h.toString()||void 0;h!==(g&&g.ruleIds)&&(g&&this.update(g.undoOptions,a,!0),h?(g=this.currentOptions(c),g.isResponsiveOptions=!0,this.currentResponsive=
587
+ {ruleIds:h,mergedOptions:c,undoOptions:g},this.update(c,a,!0)):this.currentResponsive=void 0)};return a}()})(h||(h={}));"";"";return h});F(b,"masters/highcharts.src.js",[b["Core/Globals.js"],b["Core/Utilities.js"],b["Core/DefaultOptions.js"],b["Core/Animation/Fx.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/FormatUtilities.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Renderer/HTML/HTMLElement.js"],
588
+ b["Core/Renderer/HTML/HTMLRenderer.js"],b["Core/Axis/Axis.js"],b["Core/Axis/DateTimeAxis.js"],b["Core/Axis/LogarithmicAxis.js"],b["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],b["Core/Axis/Tick.js"],b["Core/Tooltip.js"],b["Core/Series/Point.js"],b["Core/Pointer.js"],b["Core/MSPointer.js"],b["Core/Legend/Legend.js"],b["Core/Chart/Chart.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Series/Column/ColumnSeries.js"],b["Series/Column/ColumnDataLabel.js"],b["Series/Pie/PieSeries.js"],
589
+ b["Series/Pie/PieDataLabel.js"],b["Core/Series/DataLabel.js"],b["Core/Responsive.js"],b["Core/Color/Color.js"],b["Core/Time.js"]],function(b,u,A,B,v,E,w,k,r,m,h,a,c,e,g,C,y,t,p,D,n,f,q,d,z,l,G,K,I,H,N,F,Q){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=E;b.Axis=c;b.Chart=q;b.chart=q.chart;b.Fx=B;b.Legend=f;b.PlotLineOrBand=C;b.Point=p;b.Pointer=n.isRequired()?n:D;b.Series=d;b.SVGElement=
590
+ r;b.SVGRenderer=m;b.Tick=y;b.Time=Q;b.Tooltip=t;b.Color=F;b.color=F.parse;a.compose(m);h.compose(r);b.defaultOptions=A.defaultOptions;b.getOptions=A.getOptions;b.time=A.defaultTime;b.setOptions=A.setOptions;b.dateFormat=w.dateFormat;b.format=w.format;b.numberFormat=w.numberFormat;b.addEvent=u.addEvent;b.arrayMax=u.arrayMax;b.arrayMin=u.arrayMin;b.attr=u.attr;b.clearTimeout=u.clearTimeout;b.correctFloat=u.correctFloat;b.createElement=u.createElement;b.css=u.css;b.defined=u.defined;b.destroyObjectProperties=
591
+ u.destroyObjectProperties;b.discardElement=u.discardElement;b.distribute=k.distribute;b.erase=u.erase;b.error=u.error;b.extend=u.extend;b.extendClass=u.extendClass;b.find=u.find;b.fireEvent=u.fireEvent;b.getMagnitude=u.getMagnitude;b.getStyle=u.getStyle;b.inArray=u.inArray;b.isArray=u.isArray;b.isClass=u.isClass;b.isDOMElement=u.isDOMElement;b.isFunction=u.isFunction;b.isNumber=u.isNumber;b.isObject=u.isObject;b.isString=u.isString;b.keys=u.keys;b.merge=u.merge;b.normalizeTickInterval=u.normalizeTickInterval;
592
+ b.objectEach=u.objectEach;b.offset=u.offset;b.pad=u.pad;b.pick=u.pick;b.pInt=u.pInt;b.relativeLength=u.relativeLength;b.removeEvent=u.removeEvent;b.seriesType=z.seriesType;b.splat=u.splat;b.stableSort=u.stableSort;b.syncTimeout=u.syncTimeout;b.timeUnits=u.timeUnits;b.uniqueKey=u.uniqueKey;b.useSerialIds=u.useSerialIds;b.wrap=u.wrap;G.compose(l);H.compose(d);e.compose(c);g.compose(c);I.compose(K);C.compose(c);N.compose(q);return b});F(b,"Core/Axis/Color/ColorAxisComposition.js",[b["Core/Color/Color.js"],
593
+ b["Core/Utilities.js"]],function(b,u){var x=b.parse,B=u.addEvent,v=u.extend,E=u.merge,w=u.pick,k=u.splat,r;(function(b){function h(){var a=this,c=this.options;this.colorAxis=[];c.colorAxis&&(c.colorAxis=k(c.colorAxis),c.colorAxis.forEach(function(c,b){c.index=b;new q(a,c)}))}function a(a){var c=this,b=function(b){b=a.allItems.indexOf(b);-1!==b&&(c.destroyItem(a.allItems[b]),a.allItems.splice(b,1))},d=[],e,f;(this.chart.colorAxis||[]).forEach(function(a){(e=a.options)&&e.showInLegend&&(e.dataClasses&&
594
+ e.visible?d=d.concat(a.getDataClassLegendSymbols()):e.visible&&d.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||e.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){b(a)}):b(a)}))});for(f=d.length;f--;)a.allItems.unshift(d[f])}function c(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function e(){var a=this.chart.colorAxis;a&&a.forEach(function(a,c,b){a.update({},b)})}function g(){(this.chart.colorAxis&&this.chart.colorAxis.length||
595
+ this.colorAttribs)&&this.translateColors()}function m(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function r(a){var c=this,b=a?"show":"hide";c.visible=c.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(c[a])c[a][b]()});this.series.buildKDTree()}function t(){var a=this,c=this.options.nullColor,b=this.colorAxis,e=this.colorKey;(this.data.length?this.data:this.points).forEach(function(d){var f=d.getNestedProperty(e);(f=d.options.color||
596
+ (d.isNull||null===d.value?c:b&&"undefined"!==typeof f?b.toColor(f,d):d.color||a.color))&&d.color!==f&&(d.color=f,"point"===a.options.legendType&&d.legendItem&&a.chart.legend.colorizeItem(d,d.visible))})}function p(a){var c=a.prototype.createAxis;a.prototype.createAxis=function(a,b){if("colorAxis"!==a)return c.apply(this,arguments);var d=new q(this,E(b.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();
597
+ a.isDirtyData=!0});w(b.redraw,!0)&&this.redraw(b.animation);return d}}function D(){this.elem.attr("fill",x(this.start).tweenTo(x(this.end),this.pos),void 0,!0)}function n(){this.elem.attr("stroke",x(this.start).tweenTo(x(this.end),this.pos),void 0,!0)}var f=[],q;b.compose=function(b,k,l,y,w){q||(q=b);-1===f.indexOf(k)&&(f.push(k),b=k.prototype,b.collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],B(k,"afterGetAxes",h),p(k));-1===f.indexOf(l)&&(f.push(l),k=l.prototype,
598
+ k.fillSetter=D,k.strokeSetter=n);-1===f.indexOf(y)&&(f.push(y),B(y,"afterGetAllItems",a),B(y,"afterColorizeItem",c),B(y,"afterUpdate",e));-1===f.indexOf(w)&&(f.push(w),v(w.prototype,{optionalAxis:"colorAxis",translateColors:t}),v(w.prototype.pointClass.prototype,{setVisible:r}),B(w,"afterTranslate",g),B(w,"bindAxes",m))};b.pointSetVisible=r})(r||(r={}));return r});F(b,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
599
+ 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}});F(b,"Core/Axis/Color/ColorAxis.js",[b["Core/Axis/Axis.js"],b["Core/Color/Color.js"],b["Core/Axis/Color/ColorAxisComposition.js"],b["Core/Axis/Color/ColorAxisDefaults.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,
600
+ A,B,v,E,w,k){var r=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 e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),m=u.parse,h=v.noop,a=w.series,c=k.extend,e=k.isNumber,g=k.merge,C=k.pick;u=function(b){function k(a,c){var e=b.call(this,a,c)||this;
601
+ e.beforePadding=!1;e.chart=void 0;e.coll="colorAxis";e.dataClasses=void 0;e.legendItem=void 0;e.legendItems=void 0;e.name="";e.options=void 0;e.stops=void 0;e.visible=!0;e.init(a,c);return e}r(k,b);k.compose=function(a,c,b,e){A.compose(k,a,c,b,e)};k.prototype.init=function(a,c){var e=a.options.legend||{},f=c.layout?"vertical"!==c.layout:"vertical"!==e.layout,h=c.visible;e=g(k.defaultColorAxisOptions,c,{showEmpty:!1,title:null,visible:e.enabled&&!1!==h});this.coll="colorAxis";this.side=c.side||f?2:
602
+ 1;this.reversed=c.reversed||!f;this.opposite=!f;b.prototype.init.call(this,a,e);this.userOptions.visible=h;c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=f;this.zoomEnabled=!1};k.prototype.initDataClasses=function(a){var c=this.chart,b=this.options,e=a.dataClasses.length,h,d=0,k=c.options.chart.colorCount;this.dataClasses=h=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,f){a=g(a);h.push(a);if(c.styledMode||!a.color)"category"===b.dataClassColor?(c.styledMode||(f=
603
+ c.options.colors,k=f.length,a.color=f[d]),a.colorIndex=d,d++,d===k&&(d=0)):a.color=m(b.minColor).tweenTo(m(b.maxColor),2>e?.5:f/(e-1))})};k.prototype.hasData=function(){return!!(this.tickPositions||[]).length};k.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};k.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=m(a[1])})};k.prototype.setOptions=
604
+ function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};k.prototype.setAxisSize=function(){var a=this.legendSymbol,c=this.chart,b=c.options.legend||{},e,g;a?(this.left=b=a.attr("x"),this.top=e=a.attr("y"),this.width=g=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-b-g,this.bottom=c.chartHeight-e-a,this.len=this.horiz?g:a,this.pos=this.horiz?b:e):this.len=(this.horiz?b.symbolWidth:b.symbolHeight)||k.defaultLegendLength};k.prototype.normalizedValue=
605
+ function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};k.prototype.toColor=function(a,c){var b=this.dataClasses,e=this.stops,g;if(b)for(g=b.length;g--;){var d=b[g];var h=d.from;e=d.to;if(("undefined"===typeof h||a>=h)&&("undefined"===typeof e||a<=e)){var k=d.color;c&&(c.dataClass=g,c.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(g=e.length;g--&&!(a>e[g][0]););h=e[g]||e[g+1];e=e[g+1]||h;a=1-(e[0]-a)/(e[0]-h[0]||1);k=h.color.tweenTo(e.color,
606
+ a)}return k};k.prototype.getOffset=function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,b.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)};k.prototype.setLegendColor=function(){var a=this.reversed,c=a?1:0;a=a?0:1;c=this.horiz?[c,0,a,0]:[0,a,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};k.prototype.drawLegendSymbol=function(a,
607
+ c){var b=a.padding,e=a.options,g=this.horiz,d=C(e.symbolWidth,g?k.defaultLegendLength:12),h=C(e.symbolHeight,g?12:k.defaultLegendLength),l=C(e.labelPadding,g?16:30);e=C(e.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,d,h).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=d+b+(g?e:l);this.legendItemHeight=h+b+(g?l:0)};k.prototype.setState=function(a){this.series.forEach(function(c){c.setState(a)})};k.prototype.setVisible=function(){};k.prototype.getSeriesExtremes=
608
+ function(){var c=this.series,b=c.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var f=c[b];var g=f.colorKey=C(f.options.colorKey,f.colorKey,f.pointValKey,f.zoneAxis,"y");var d=f.pointArrayMap;var h=f[g+"Min"]&&f[g+"Max"];if(f[g+"Data"])var k=f[g+"Data"];else if(d){k=[];d=d.indexOf(g);var m=f.yData;if(0<=d&&m)for(e=0;e<m.length;e++)k.push(C(m[e][d],m[e]))}else k=f.yData;h?(f.minColorValue=f[g+"Min"],f.maxColorValue=f[g+"Max"]):(k=a.prototype.getExtremes.call(f,k),f.minColorValue=k.dataMin,
609
+ f.maxColorValue=k.dataMax);"undefined"!==typeof f.minColorValue&&(this.dataMin=Math.min(this.dataMin,f.minColorValue),this.dataMax=Math.max(this.dataMax,f.maxColorValue));h||a.prototype.applyExtremes.call(f)}};k.prototype.drawCrosshair=function(a,c){var e=c&&c.plotX,f=c&&c.plotY,g=this.pos,d=this.len;if(c){var h=this.toPixels(c.getNestedProperty(c.series.colorKey));h<g?h=g-2:h>g+d&&(h=g+d+2);c.plotX=h;c.plotY=this.len-h;b.prototype.drawCrosshair.call(this,a,c);c.plotX=e;c.plotY=f;this.cross&&!this.cross.addedToColorAxis&&
610
+ 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}))}};k.prototype.getPlotLinePath=function(a){var c=this.left,g=a.translatedValue,f=this.top;return e(g)?this.horiz?[["M",g-4,f-6],["L",g+4,f-6],["L",g,f],["Z"]]:[["M",c,g],["L",c-6,g+6],["L",c-6,g-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};k.prototype.update=function(a,
611
+ c){var e=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&e.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))};k.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(c){a.legend.destroyItem(c)});a.isDirtyLegend=!0};k.prototype.destroy=function(){this.chart.isDirtyLegend=!0;
612
+ this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};k.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};k.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,e=a.legendItems,f=b.options.legend,g=f.valueDecimals,d=f.valueSuffix||"",k;e.length||a.dataClasses.forEach(function(f,n){var l=f.from,p=f.to,m=b.numberFormatter,q=!0;k="";"undefined"===typeof l?k="< ":"undefined"===typeof p&&(k="> ");"undefined"!==typeof l&&(k+=m(l,g)+
613
+ d);"undefined"!==typeof l&&"undefined"!==typeof p&&(k+=" - ");"undefined"!==typeof p&&(k+=m(p,g)+d);e.push(c({chart:b,name:k,options:{},drawLegendSymbol:E.drawRectangle,visible:!0,setState:h,isDataClass:!0,setVisible:function(){q=a.visible=!q;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===n&&a.setVisible(q)})});b.legend.colorizeItem(this,q)}},f))});return e};k.defaultColorAxisOptions=B;k.defaultLegendLength=200;k.keepProps=["legendGroup","legendItemHeight","legendItemWidth",
614
+ "legendItem","legendSymbol"];return k}(b);Array.prototype.push.apply(b.keepProps,u.keepProps);"";return u});F(b,"Maps/MapNavigationOptionsDefault.js",[b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,u){u=u.extend;var x={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)},
615
+ text:"-",y:28}},mouseWheelSensitivity:1.1};u(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=x});F(b,"Maps/MapNavigation.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A){function x(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function v(a){this.init(a)}var E=u.doc,w=A.addEvent,k=A.extend,r=A.merge,m=A.objectEach,h=A.pick;v.prototype.init=function(a){this.chart=
616
+ a;a.mapNavButtons=[]};v.prototype.update=function(a){var c=this.chart,b=c.options.mapNavigation,g,u,y,t,p=function(a){this.handler.call(c,a);x(a)},v=c.mapNavButtons;a&&(b=c.options.mapNavigation=r(c.options.mapNavigation,a));for(;v.length;)v.pop().destroy();h(b.enableButtons,b.enabled)&&!c.renderer.forExport&&m(b.buttons,function(a,e){a=r(b.buttonOptions,a);!c.styledMode&&a.theme&&(g=a.theme,g.style=r(a.theme.style,a.style),y=(u=g.states)&&u.hover,t=u&&u.select,delete g.states);var f=c.renderer.button(a.text||
617
+ "",0,0,p,g,y,t,void 0,"zoomIn"===e?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[e]).attr({width:a.width,height:a.height,title:c.options.lang[e],padding:a.padding,zIndex:5}).add();f.handler=a.onclick;w(f.element,"dblclick",x);v.push(f);k(a,{width:f.width,height:2*f.height});if(c.hasLoaded)f.align(a,!1,a.alignTo);else var d=w(c,"load",function(){f.element&&f.align(a,!1,a.alignTo);d()})});this.updateEvents(b)};v.prototype.updateEvents=
618
+ function(a){var c=this.chart;h(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||w(c.container,"dblclick",function(a){c.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());h(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||w(c.container,void 0!==E.onwheel?"wheel":void 0!==E.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){c.pointer.inClass(a.target,"highcharts-no-mousewheel")||
619
+ (c.pointer.onContainerMouseWheel(a),x(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};k(b.prototype,{fitToBox:function(a,c){[["x","width"],["y","height"]].forEach(function(b){var e=b[0];b=b[1];a[e]+a[b]>c[e]+c[b]&&(a[b]>c[b]?(a[b]=c[b],a[e]=c[e]):a[e]=c[e]+c[b]-a[b]);a[b]>c[b]&&(a[b]=c[b]);a[e]<c[e]&&(a[e]=c[e])});return a},mapZoom:function(a,c,b,g,h){this.mapView&&("number"===typeof a&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,"number"===typeof c&&
620
+ "number"===typeof b?this.mapView.projection.inverse([c,b]):void 0,"number"===typeof g&&"number"===typeof h?[g,h]:void 0))}});w(b,"beforeRender",function(){this.mapNavigation=new v(this);this.mapNavigation.update()});u.MapNavigation=v});F(b,"Maps/MapPointer.js",[b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,u){var x=u.defined,B=u.extend,v=u.pick;u=u.wrap;var E=0,w;B(b.prototype,{onContainerDblClick:function(b){var k=this.chart;b=this.normalize(b);k.options.mapNavigation.enableDoubleClickZoomTo?
621
+ k.pointer.inClass(b.target,"highcharts-tracker")&&k.hoverPoint&&k.hoverPoint.zoomTo():k.isInsidePlot(b.chartX-k.plotLeft,b.chartY-k.plotTop)&&k.mapZoom(.5,void 0,void 0,b.chartX,b.chartY)},onContainerMouseWheel:function(b){var k=this.chart;b=this.normalize(b);var m=x(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(m)&&(E+=Math.abs(m),w&&clearTimeout(w),w=setTimeout(function(){E=0},50));10>E&&k.isInsidePlot(b.chartX-k.plotLeft,b.chartY-k.plotTop)&&k.mapView&&k.mapView.zoomBy((k.options.mapNavigation.mouseWheelSensitivity-
622
+ 1)*-m,void 0,[b.chartX,b.chartY],1>Math.abs(m)?!1:void 0)}});u(b.prototype,"zoomOption",function(b){var k=this.chart.options.mapNavigation;v(k.enableTouchZoom,k.enabled)&&(this.chart.options.chart.pinchType="xy");b.apply(this,[].slice.call(arguments,1))});u(b.prototype,"pinchTranslate",function(b,r,m,h,a,c,e){b.call(this,r,m,h,a,c,e);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=h.scaleX>h.scaleY,this.pinchTranslateDirection(!b,r,m,h,a,c,e,b?h.scaleX:h.scaleY))})});F(b,"Series/ColorMapComposition.js",
623
+ [b["Core/Utilities.js"]],function(b){var u=b.defined,x=b.wrap,B={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],parallelArrays:["x","y","value"],colorKey:"value"},v;(function(b){function w(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}function k(b){var a={};!u(b.color)||b.state&&"normal"!==b.state||(a[this.colorProp||"fill"]=b.color);return a}function r(b,a,c){b=b.call(this,a,c);a.moveToTopOnHover&&
624
+ (b.zIndex="hover"===c?1:0);return b}b.colorMapSeriesMixin=B;var m=[];b.compose=function(b,a){a&&-1===m.indexOf(a)&&(m.push(a),a=a.prototype,a.dataLabelOnNull=!0,a.moveToTopOnHover=!0,a.isValid=w);-1===m.indexOf(b)&&(m.push(b),a=b.prototype,a.colorAttribs=k,x(a,"pointAttribs",r));return b};b.seriesColorAttribs=k})(v||(v={}));return v});F(b,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:void 0,zoom:void 0}});F(b,"Maps/Projections/LambertConformalConic.js",
625
+ [],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},u=Math.PI/180,A=Math.PI/2,B=0,v=0;return{init:function(x){var w=(x.parallels||[]).map(function(b){return b*u});x=w[0]||0;w=w[1]||x;var k=Math.cos(x);B=x===w?Math.sin(x):Math.log(k/Math.cos(w))/Math.log(Math.tan((A+w)/2)/Math.tan((A+x)/2));1e-10>Math.abs(B)&&(B=1e-10*(b(B)||1));v=k*Math.pow(Math.tan((A+x)/2),B)/B},forward:function(b){var w=b[0]*u;b=b[1]*u;0<v?b<-A+.000001&&(b=-A+.000001):b>A-.000001&&(b=A-.000001);b=v/Math.pow(Math.tan((A+
626
+ b)/2),B);return[b*Math.sin(B*w)*63.78137,63.78137*(v-b*Math.cos(B*w))]},inverse:function(x){var w=x[0]/63.78137;x=v-x[1]/63.78137;var k=b(B)*Math.sqrt(w*w+x*x),r=Math.atan2(w,Math.abs(x))*b(x);0>x*B&&(r-=Math.PI*b(w)*b(x));return[r/B/u,(2*Math.atan(Math.pow(v/k,1/B))-A)/u]}}});F(b,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return{forward:function(u){var x=Math.PI/180,B=Math.asin(b*Math.sin(u[1]*x)),v=B*B,E=v*v*v;return[u[0]*x*Math.cos(B)*74.03120656864502/(b*(1.340264+3*-.081106*
627
+ v+E*(7*.000893+.034164*v))),74.03120656864502*B*(1.340264+-.081106*v+E*(.000893+.003796*v))]},inverse:function(u){var x=u[0]/74.03120656864502;u=u[1]/74.03120656864502;var B=180/Math.PI,v=u,E;for(E=0;12>E;++E){var w=v*v;var k=w*w*w;var r=v*(1.340264+-.081106*w+k*(.000893+.003796*w))-u;w=1.340264+3*-.081106*w+k*(7*.000893+.034164*w);v-=r/=w;if(1e-9>Math.abs(r))break}w=v*v;return[B*b*x*(1.340264+3*-.081106*w+w*w*w*(7*.000893+.034164*w))/Math.cos(v),B*Math.asin(Math.sin(v)/b)]}}});F(b,"Maps/Projections/Miller.js",
628
+ [],function(){var b=Math.PI/4,u=Math.PI/180;return{forward:function(x){return[x[0]*u*63.78137,79.7267125*Math.log(Math.tan(b+.4*x[1]*u))]},inverse:function(x){return[x[0]/63.78137/u,2.5*(Math.atan(Math.exp(x[1]/63.78137*.8))-b)/u]}}});F(b,"Maps/Projections/Orthographic.js",[],function(){var b=Math.PI/180;return{forward:function(u){var x=u[0];if(-90>x||90<x)return[NaN,NaN];u=u[1]*b;return[Math.cos(u)*Math.sin(x*b)*63.78460826781007,63.78460826781007*Math.sin(u)]},inverse:function(u){var x=u[0]/63.78460826781007;
629
+ u=u[1]/63.78460826781007;var B=Math.sqrt(x*x+u*u),v=Math.asin(B),E=Math.sin(v);return[Math.atan2(x*E,B*Math.cos(v))/b,Math.asin(B&&u*E/B)/b]}}});F(b,"Maps/Projections/WebMercator.js",[],function(){var b=Math.PI/180;return{forward:function(u){if(85.0511287798<Math.abs(u[1]))return[NaN,NaN];var x=Math.sin(u[1]*b);return[63.78137*u[0]*b,63.78137*Math.log((1+x)/(1-x))/2]},inverse:function(u){return[u[0]/(63.78137*b),(2*Math.atan(Math.exp(u[1]/63.78137))-Math.PI/2)/b]},maxLatitude:85.0511287798}});F(b,
630
+ "Maps/Projections/ProjectionRegistry.js",[b["Maps/Projections/LambertConformalConic.js"],b["Maps/Projections/EqualEarth.js"],b["Maps/Projections/Miller.js"],b["Maps/Projections/Orthographic.js"],b["Maps/Projections/WebMercator.js"]],function(b,u,A,B,v){return{EqualEarth:u,LambertConformalConic:b,Miller:A,Orthographic:B,WebMercator:v}});F(b,"Maps/Projection.js",[b["Maps/Projections/ProjectionRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__spreadArrays||function(){for(var b=0,
631
+ k=0,r=arguments.length;k<r;k++)b+=arguments[k].length;b=Array(b);var m=0;for(k=0;k<r;k++)for(var h=arguments[k],a=0,c=h.length;a<c;a++,m++)b[m]=h[a];return b},B=u.erase,v=2*Math.PI/360,E=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function u(b){void 0===b&&(b={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=b;var k=b.name,m=b.rotation;this.rotator=m?this.getRotator(m):void 0;var h=this.def=k?u.registry[k]:void 0,a=this.rotator;h&&(h.init&&
632
+ h.init(b),this.maxLatitude=h.maxLatitude||90,this.hasGeoProjection=!0);a&&h?(this.forward=function(b){b=a.forward(b);return h.forward(b)},this.inverse=function(b){b=h.inverse(b);return a.inverse(b)}):h?(this.forward=h.forward,this.inverse=h.inverse):a&&(this.forward=a.forward,this.inverse=a.inverse)}u.add=function(b,r){u.registry[b]=r};u.greatCircle=function(b,r,m){var h=Math.atan2,a=Math.cos,c=Math.sin,e=Math.sqrt,g=b[1]*v,k=b[0]*v,u=r[1]*v,t=r[0]*v,p=u-g,w=t-k;p=c(p/2)*c(p/2)+a(g)*a(u)*c(w/2)*c(w/
633
+ 2);p=2*h(e(p),e(1-p));var n=Math.round(6371E3*p/5E5);w=[];m&&w.push(b);if(1<n)for(n=b=1/n;.999>n;n+=b){var f=c((1-n)*p)/c(p),q=c(n*p)/c(p),d=f*a(g)*a(k)+q*a(u)*a(t),z=f*a(g)*c(k)+q*a(u)*c(t);f=f*c(g)+q*c(u);f=h(f,e(d*d+z*z));d=h(z,d);w.push([d/v,f/v])}m&&w.push(r);return w};u.insertGreatCircles=function(b){for(var k=b.length-1;k--;)if(10<Math.max(Math.abs(b[k][0]-b[k+1][0]),Math.abs(b[k][1]-b[k+1][1]))){var m=u.greatCircle(b[k],b[k+1]);m.length&&b.splice.apply(b,x([k+1,0],m))}};u.toString=function(b){b=
634
+ b||{};var k=b.rotation;return[b.name,k&&k.join(",")].join(";")};u.prototype.getRotator=function(b){var k=b[0]*v,m=(b[1]||0)*v;b=(b[2]||0)*v;var h=Math.cos(m),a=Math.sin(m),c=Math.cos(b),e=Math.sin(b);if(0!==k||0!==m||0!==b)return{forward:function(b){var g=b[0]*v+k,m=b[1]*v,t=Math.cos(m);b=Math.cos(g)*t;g=Math.sin(g)*t;m=Math.sin(m);t=m*h+b*a;return[Math.atan2(g*c-t*e,b*h-m*a)/v,Math.asin(t*c+g*e)/v]},inverse:function(b){var g=b[0]*v,m=b[1]*v,t=Math.cos(m);b=Math.cos(g)*t;g=Math.sin(g)*t;m=Math.sin(m);
635
+ t=m*c-g*e;return[(Math.atan2(g*c+m*e,b*h+t*a)-k)/v,Math.asin(t*h-b*a)/v]}}};u.prototype.forward=function(b){return b};u.prototype.inverse=function(b){return b};u.prototype.clipOnAntimeridian=function(b,r){var k=[],h=[b];b.forEach(function(a,c){var e=b[c-1];if(!c){if(!r)return;e=b[b.length-1]}var g=e[0],f=a[0];(-90>g||90<g)&&(-90>f||90<f)&&0<g!==0<f&&k.push({i:c,lat:e[1]+(180-e[0])/(a[0]-e[0])*(a[1]-e[1]),direction:0>g?1:-1,previousLonLat:e,lonLat:a})});if(k.length)if(r){if(1===k.length%2){var a=k.slice().sort(function(a,
636
+ b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];B(k,a)}for(var c=k.length-2;0<=c;){var e=k[c].i,g=E(180+.000001*k[c].direction),w=E(180-.000001*k[c].direction);e=b.splice.apply(b,x([e,k[c+1].i-e],u.greatCircle([g,k[c].lat],[g,k[c+1].lat],!0)));e.push.apply(e,u.greatCircle([w,k[c+1].lat],[w,k[c].lat],!0));h.push(e);c-=2}if(a)for(e=0;e<h.length;e++)if(c=h[e],w=c.indexOf(a.lonLat),-1<w){e=(0>a.lat?-1:1)*this.maxLatitude;g=E(180+.000001*a.direction);var y=E(180-.000001*a.direction);a=u.greatCircle([g,
637
+ a.lat],[g,e],!0).concat(u.greatCircle([y,e],[y,a.lat],!0));c.splice.apply(c,x([w,0],a));break}}else for(c=k.length;c--;)e=k[c].i,e=b.splice(e,b.length,[E(180+.000001*k[c].direction),k[c].lat]),e.unshift([E(180-.000001*k[c].direction),k[c].lat]),h.push(e);return h};u.prototype.path=function(b){var k=this,m=this.def,h=this.rotator,a=[],c="Polygon"===b.type||"MultiPolygon"===b.type,e=this.hasGeoProjection,g="Orthographic"!==this.options.name,w=g?h:void 0,y=g?m||this:this,t=function(b){b=b.map(function(a){if(g){w&&
638
+ (a=w.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 h=[b];e&&(u.insertGreatCircles(b),g&&(h=k.clipOnAntimeridian(b,c)));h.forEach(function(b){if(!(2>b.length))for(var f=!1,g,d,h=!1,l=function(b){f?a.push(["L",b[0],b[1]]):(a.push(["M",b[0],b[1]]),f=!0)},n=0;n<b.length;n++){var p=b[n],m=y.forward(p);isNaN(m[0])||isNaN(m[1])||e&&!(p[1]<=k.maxLatitude&&p[1]>=-k.maxLatitude)?h=!0:(c&&!g&&(g=p,b.push(p)),h&&d&&(c&&e?u.greatCircle(d,p).forEach(function(a){return l(y.forward(a))}):
639
+ f=!1),l(m),d=p,h=!1)}})};"LineString"===b.type?t(b.coordinates):"MultiLineString"===b.type?b.coordinates.forEach(function(a){return t(a)}):"Polygon"===b.type?(b.coordinates.forEach(function(a){return t(a)}),a.length&&a.push(["Z"])):"MultiPolygon"===b.type&&(b.coordinates.forEach(function(a){a.forEach(function(a){return t(a)})}),a.length&&a.push(["Z"]));return a};u.registry=b;return u}()});F(b,"Maps/MapView.js",[b["Maps/MapViewOptionsDefault.js"],b["Maps/Projection.js"],b["Core/Utilities.js"]],function(b,
640
+ u,A){var x=A.addEvent,v=A.clamp,E=A.fireEvent,w=A.isNumber,k=A.merge,r=A.pick,m=A.relativeLength;return function(){function h(a,c){var e=this;this.userOptions=c||{};c=k(b,c);this.chart=a;this.center=c.center;this.options=c;this.projection=new u(c.projection);this.zoom=c.zoom||0;x(a,"afterSetChartSize",function(){if(void 0===e.minZoom||e.minZoom===e.zoom)e.fitToBounds(void 0,void 0,!1),w(e.userOptions.zoom)&&(e.zoom=e.userOptions.zoom),e.userOptions.center&&k(!0,e.center,e.userOptions.center)});var g,
641
+ h,m;c=function(b){var c=a.pointer.pinchDown,k=a.mouseDownX,n=a.mouseDownY;1===c.length&&(k=c[0].chartX,n=c[0].chartY);if("number"===typeof k&&"number"===typeof n){var f=k+","+n,q=b.originalEvent;c=q.chartX;q=q.chartY;f!==h&&(h=f,g=e.projection.forward(e.center),m=(e.projection.options.rotation||[0,0]).slice());"Orthographic"===e.projection.options.name&&3>(e.minZoom||Infinity)?(f=440/(e.getScale()*Math.min(a.plotWidth,a.plotHeight)),m&&(k=(k-c)*f-m[0],n=v(-m[1]-(n-q)*f,-80,80),e.update({projection:{rotation:[-k,
642
+ -n]},center:[k,n],zoom:e.zoom},!0,!1))):(f=e.getScale(),n=e.projection.inverse([g[0]+(k-c)/f,g[1]-(n-q)/f]),e.setView(n,void 0,!0,!1));b.preventDefault()}};x(a,"pan",c);x(a,"touchpan",c);x(a,"selection",function(b){if(b.resetSelection)e.zoomBy();else{var c=b.x-a.plotLeft,g=b.y-a.plotTop,h=e.pixelsToProjectedUnits({x:c,y:g}),f=h.y;h=h.x;c=e.pixelsToProjectedUnits({x:c+b.width,y:g+b.height});e.fitToBounds({x1:h,y1:f,x2:c.x,y2:c.y},void 0,!0,b.originalEvent.touches?!1:void 0);/^touch/.test(b.originalEvent.type)||
643
+ a.showResetZoom();b.preventDefault()}})}h.prototype.fitToBounds=function(a,b,e,g){void 0===e&&(e=!0);var c=a||this.getProjectedBounds();if(c){var h=this.chart,k=h.plotWidth;h=h.plotHeight;var p=r(b,a?0:this.options.padding);b=m(p,k);p=m(p,h);k=Math.log(400.979322/Math.max((c.x2-c.x1)/((k-b)/256),(c.y2-c.y1)/((h-p)/256)))/Math.log(2);a||(this.minZoom=k);a=this.projection.inverse([(c.x2+c.x1)/2,(c.y2+c.y1)/2]);this.setView(a,k,e,g)}};h.prototype.getProjectedBounds=function(){var a=this.chart.series.reduce(function(a,
644
+ b){(b=b.getProjectedBounds&&b.getProjectedBounds())&&a.push(b);return a},[]);return h.compositeBounds(a)};h.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};h.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};h.prototype.setView=function(a,b,e,g){void 0===e&&(e=!0);var c=!1;a&&(this.center=a);"number"===typeof b&&("number"===typeof this.minZoom&&(b=Math.max(b,this.minZoom)),"number"===typeof this.options.maxZoom&&
645
+ (b=Math.min(b,this.options.maxZoom)),c=b>this.zoom,this.zoom=b);var h=this.getProjectedBounds();if(h&&!c){c=this.projection.forward(this.center);b=this.chart;a=b.plotWidth;b=b.plotHeight;var k=this.getScale(),m=this.projectedUnitsToPixels({x:h.x1,y:h.y1}),r=this.projectedUnitsToPixels({x:h.x2,y:h.y2});h=[(h.x1+h.x2)/2,(h.y1+h.y2)/2];var n=m.x,f=r.y;r=r.x;m=m.y;r-n<a?c[0]=h[0]:0>n&&r<a?c[0]+=Math.max(n,r-a)/k:r>a&&0<n&&(c[0]+=Math.min(r-a,n)/k);m-f<b?c[1]=h[1]:0>f&&m<b?c[1]-=Math.max(f,m-b)/k:m>b&&
646
+ 0<f&&(c[1]-=Math.min(m-b,f)/k);this.center=this.projection.inverse(c)}E(this,"afterSetView");e&&this.redraw(g)};h.prototype.projectedUnitsToPixels=function(a){var b=this.getScale(),e=this.projection.forward(this.center);return{x:this.chart.plotWidth/2-b*(e[0]-a.x),y:this.chart.plotHeight/2+b*(e[1]-a.y)}};h.prototype.pixelsToProjectedUnits=function(a){var b=a.x;a=a.y;var e=this.getScale(),g=this.projection.forward(this.center);return{x:g[0]+(b-this.chart.plotWidth/2)/e,y:g[1]-(a-this.chart.plotHeight/
647
+ 2)/e}};h.prototype.update=function(a,b,e){void 0===b&&(b=!0);var c=a.projection;c=c&&u.toString(c)!==u.toString(this.options.projection);k(!0,this.userOptions,a);k(!0,this.options,a);c&&(this.chart.series.forEach(function(a){a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0}),this.projection=new u(this.options.projection),a.center||w(a.zoom)||this.fitToBounds(void 0,void 0,!1));(a.center||w(a.zoom))&&this.setView(this.options.center,a.zoom,!1);b&&this.chart.redraw(e)};h.prototype.zoomBy=
648
+ function(a,b,e,g){var c=this.chart,h=this.projection.forward(this.center);b=b?this.projection.forward(b):[];var k=b[0],m=b[1];"number"===typeof a?(a=this.zoom+a,b=void 0,e&&(k=e[0],m=e[1],e=this.getScale(),k=k-c.plotLeft-c.plotWidth/2,c=m-c.plotTop-c.plotHeight/2,k=h[0]+k/e,m=h[1]+c/e),"number"===typeof k&&"number"===typeof m&&(e=1-Math.pow(2,this.zoom)/Math.pow(2,a),k=h[0]-k,c=h[1]-m,h[0]-=k*e,h[1]+=c*e,b=this.projection.inverse(h)),this.setView(b,a,void 0,g)):this.fitToBounds(void 0,void 0,void 0,
649
+ g)};h.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);return a},k(a[0]))};return h}()});F(b,"Maps/MapSymbols.js",[b["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function u(b,u,v,x,w,k,r,m){return[["M",b+w,u],["L",b+v-k,u],["C",b+v-k/2,u,b+v,u+k/2,b+v,u+k],["L",b+v,u+x-r],["C",b+v,u+x-r/2,b+v-r/2,u+x,b+v-r,u+x],["L",b+m,u+x],["C",b+m/2,u+x,b,u+x-m/2,b,u+x-m],["L",b,
650
+ u+w],["C",b,u+w/2,b+w/2,u,b+w,u],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,x,v,E,w){w=w&&w.r||0;return u(b-1,x-1,v,E,0,0,w,w)};b.topbutton=function(b,x,v,E,w){w=w&&w.r||0;return u(b-1,x-1,v,E,w,w,0,0)};return b});F(b,"Core/Chart/MapChart.js",[b["Core/Chart/Chart.js"],b["Core/DefaultOptions.js"],b["Maps/MapView.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof
651
+ Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),w=u.getOptions,k=v.addEvent,r=v.merge,m=v.pick;b=function(b){function a(){return null!==b&&b.apply(this,arguments)||this}x(a,b);a.prototype.init=function(a,e){k(this,"afterInit",function(){this.mapView=new A(this,this.options.mapView)});var c=w().credits;
652
+ a=r({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:m(c.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:m(c.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},a);b.prototype.init.call(this,a,e)};return a}(b);(function(b){b.maps={};b.mapChart=function(a,c,e){return new b(a,c,e)};b.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?
653
+ a:parseFloat(a)}));return B.prototype.pathToSegments(a)}})(b||(b={}));return b});F(b,"Series/Map/MapPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(u,w){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,r){b.__proto__=r}||function(b,r){for(var k in r)r.hasOwnProperty(k)&&(b[k]=r[k])};return b(u,w)};return function(u,w){function k(){this.constructor=u}b(u,w);u.prototype=null===w?Object.create(w):
654
+ (k.prototype=w.prototype,new k)}}(),B=u.extend;return function(b){function v(){var u=null!==b&&b.apply(this,arguments)||this;u.options=void 0;u.path=void 0;u.series=void 0;return u}x(v,b);v.getProjectedPath=function(b,k){b.projectedPath||(k&&b.geometry?(k.hasCoordinates=!0,b.projectedPath=k.path(b.geometry)):b.projectedPath=b.path);return b.projectedPath||[]};v.prototype.applyOptions=function(u,k){var r=this.series;u=b.prototype.applyOptions.call(this,u,k);k=r.joinBy;r.mapData&&r.mapMap&&(k=b.prototype.getNestedProperty.call(u,
655
+ k[1]),(r="undefined"!==typeof k&&r.mapMap[k])?B(u,r):u.value=u.value||null);return u};v.prototype.onMouseOver=function(w){u.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,w);else this.series.onMouseOut(w)};v.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 v}(b.seriesTypes.scatter.prototype.pointClass)});F(b,
656
+ "Series/Map/MapSeries.js",[b["Core/Animation/AnimationUtilities.js"],b["Series/ColorMapComposition.js"],b["Series/CenteredUtilities.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Chart/MapChart.js"],b["Series/Map/MapPoint.js"],b["Maps/MapView.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k,r,m,h,a){var c=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
657
+ {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),e=b.animObject;b=u.colorMapSeriesMixin;var g=B.noop,x=E.maps,y=E.splitPath;E=m.seriesTypes;var t=E.column,p=E.scatter;E=a.extend;var D=a.fireEvent,n=a.getNestedProperty,f=a.isArray,q=a.isNumber,d=a.merge,z=a.objectEach,l=a.pick,
658
+ G=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.transformGroup=void 0;return b}c(b,a);b.prototype.animate=function(a){var b=this.chart,c=this.group,d=e(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},
659
+ 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,translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1}))};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})};
660
+ b.prototype.animateDrillupTo=function(a){t.prototype.animateDrillupTo.call(this,a)};b.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;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=
661
+ function(){var a=this,b=this.chart,c=this.group,d=this.svgTransform,e=b.mapView,f=b.renderer;this.transformGroup||(this.transformGroup=f.g().add(c),this.transformGroup.survive=!0);this.doFullTranslate()&&(b.hasRendered&&!b.styledMode&&this.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),this.group=this.transformGroup,t.prototype.drawPoints.apply(this),this.group=c,this.points.forEach(function(c){if(c.graphic){var d="";c.name&&(d+="highcharts-name-"+c.name.replace(/ /g,
662
+ "-").toLowerCase());c.properties&&c.properties["hc-key"]&&(d+=" highcharts-key-"+c.properties["hc-key"].toLowerCase());d&&c.graphic.addClass(d);b.styledMode&&c.graphic.css(a.pointAttribs(c,c.selected&&"select"||void 0))}}));if(e&&d){var g=l(this.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],1),h=d.scaleX,k=0<d.scaleY?1:-1,n=this.transformGroup;if(f.globalAnimation&&b.hasRendered){var m=Number(n.attr("translateX")),q=Number(n.attr("translateY")),p=Number(n.attr("scaleX"));
663
+ n.attr({animator:0}).animate({animator:1},{step:function(a,b){a=p+(h-p)*b.pos;n.attr({translateX:m+(d.translateX-m)*b.pos,translateY:q+(d.translateY-q)*b.pos,scaleX:a,scaleY:a*k});c.element.setAttribute("stroke-width",g/a)}})}else n.attr(d),c.element.setAttribute("stroke-width",g/h)}this.drawMapDataLabels()};b.prototype.getProjectedBounds=function(){if(!this.bounds){var a=Number.MAX_VALUE,b=this.chart.mapView&&this.chart.mapView.projection,c=[];(this.points||[]).forEach(function(d){if(d.path||d.geometry){"string"===
664
+ typeof d.path?d.path=y(d.path):f(d.path)&&"M"===d.path[0]&&(d.path=h.prototype.pathToSegments(d.path));if(!d.bounds){var e=w.getProjectedPath(d,b),g=d.properties,k=-a,n=a,m=-a,p=a,t;e.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(n=Math.min(n,b),k=Math.max(k,b),p=Math.min(p,a),m=Math.max(m,a),t=!0)});t&&(e=g&&g["hc-middle-x"],e=n+(k-n)*l(d.middleX,q(e)?e:.5),g=g&&g["hc-middle-y"],g=l(d.middleY,q(g)?g:.5),d.geometry||(g=1-g),d.bounds={midX:e,midY:m-
665
+ (m-p)*g,x1:n,y1:p,x2:k,y2:m},d.labelrank=l(d.labelrank,(k-n)*(m-p)))}d.bounds&&c.push(d.bounds)}});this.bounds=k.compositeBounds(c)}return this.bounds};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){var c=a.series.chart,d=c.mapView;b=c.styledMode?this.colorAttribs(a):t.prototype.pointAttribs.call(this,a,b);(a=a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&d&&(a/=d.getScale());b.dashstyle&&d&&this.options.borderWidth&&
666
+ (a=this.options.borderWidth/d.getScale());b["stroke-width"]=l(a,"inherit");return b};b.prototype.setData=function(a,b,c,e){var g=this.options,h=this.chart.options.chart,k=h&&h.map,l=g.mapData,m=this.joinBy,p=g.keys||this.pointArrayMap,t=[],u={},y=this.chart.mapTransforms;!l&&k&&(l="string"===typeof k?x[k]:k);a&&a.forEach(function(b,c){var d=0;if(q(b))a[c]={value:b};else if(f(b)){a[c]={};!g.keys&&b.length>p.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++d);for(var e=0;e<p.length;++e,++d)p[e]&&
667
+ "undefined"!==typeof b[d]&&(0<p[e].indexOf(".")?w.prototype.setNestedProperty(a[c],b[d],p[e]):a[c][p[e]]=b[d])}m&&"_i"===m[0]&&(a[c]._i=c)});(this.chart.mapTransforms=y=h.mapTransforms||l&&l["hc-transform"]||y)&&z(y,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(l){"FeatureCollection"===l.type&&(this.mapTitle=l.title,l=B.geojson(l,this.type,this));this.mapData=l;this.mapMap={};for(y=0;y<l.length;y++)h=l[y],k=h.properties,h._i=y,m[0]&&k&&k[m[0]]&&(h[m[0]]=
668
+ k[m[0]]),u[h[m[0]]]=h;this.mapMap=u;if(a&&m[1]){var v=m[1];a.forEach(function(a){a=n(v,a);u[a]&&t.push(u[a])})}if(g.allAreas){a=a||[];if(m[1]){var D=m[1];a.forEach(function(a){t.push(n(D,a))})}t="|"+t.map(function(a){return a&&a[m[0]]}).join("|")+"|";l.forEach(function(b){m[0]&&-1!==t.indexOf("|"+b[m[0]]+"|")||(a.push(d(b,{value:null})),e=!1)})}}r.prototype.setData.call(this,a,b,c,e);this.processData();this.generatePoints()};b.prototype.setOptions=function(a){a=r.prototype.setOptions.call(this,a);
669
+ var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=G(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,this.getProjectedBounds());var d;if(b){var e=b.getScale(),f=b.projection.forward(b.center);b=b.projection.hasCoordinates?-1:1;this.svgTransform=d={scaleX:e,scaleY:e*b,translateX:this.chart.plotWidth/
670
+ 2-f[0]*e,translateY:this.chart.plotHeight/2-f[1]*e*b}}this.points.forEach(function(b){d&&b.bounds&&q(b.bounds.midX)&&q(b.bounds.midY)&&(b.plotX=b.bounds.midX*d.scaleX+d.translateX,b.plotY=b.bounds.midY*d.scaleY+d.translateY);a&&(b.shapeType="path",b.shapeArgs={d:w.getProjectedPath(b,c)})});D(this,"afterTranslate")};b.defaultOptions=d(p.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return q(b)?a(b,-1):""},inside:!0,
671
+ 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}(p);E(a.prototype,{type:"map",axisTypes:["colorAxis"],colorKey:"value",directTouch:!0,drawDataLabels:g,drawGraph:g,drawLegendSymbol:v.drawRectangle,
672
+ forceDL:!0,getCenter:A.getCenter,getExtremesFromAll:!0,getSymbol:g,isCartesian:!1,parallelArrays:b.parallelArrays,pointArrayMap:b.pointArrayMap,pointClass:w,preserveAspectRatio:!0,searchPoint:g,trackerGroups:b.trackerGroups,useMapGeometry:!0});u.compose(a,w);m.registerSeriesType("map",a);"";return a});F(b,"Series/MapLine/MapLineSeries.js",[b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(k,
673
+ m){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(k,m)};return function(k,m){function h(){this.constructor=k}b(k,m);k.prototype=null===m?Object.create(m):(h.prototype=m.prototype,new h)}}(),v=u.series,E=A.extend,w=A.merge;A=function(k){function r(){var b=null!==k&&k.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(r,k);r.prototype.pointAttribs=function(k,
674
+ h){k=b.prototype.pointAttribs.call(this,k,h);k.fill=this.options.fillColor;return k};r.defaultOptions=w(b.defaultOptions,{lineWidth:1,fillColor:"none"});return r}(b);E(A.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:v.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});u.registerSeriesType("mapline",A);"";return A});F(b,"Series/MapPoint/MapPointPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||
675
+ function(){var b=function(u,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=k[h])};return b(u,k)};return function(u,k){function r(){this.constructor=u}b(u,k);u.prototype=null===k?Object.create(k):(r.prototype=k.prototype,new r)}}(),B=u.isNumber,v=u.merge;return function(b){function u(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.series=void 0;return k}x(u,b);u.prototype.applyOptions=
676
+ function(k,r){k="undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?v(k,this.series.chart.fromLatLonToPoint(k)):k;return b.prototype.applyOptions.call(this,k,r)};u.prototype.isValid=function(){return!!(this.options.geometry||B(this.x)&&B(this.y))};return u}(b.seriesTypes.scatter.prototype.pointClass)});F(b,"Series/MapPoint/MapPointSeries.js",[b["Core/Globals.js"],b["Series/MapPoint/MapPointPoint.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B){var v=this&&this.__extends||
677
+ function(){var b=function(a,c){b=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 b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();b=b.noop;var x=A.seriesTypes.scatter,w=B.extend,k=B.fireEvent,r=B.isNumber,m=B.merge;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;
678
+ a.options=void 0;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.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();if(b){var g=b.projection,h=g.forward,m=g.hasCoordinates;this.points.forEach(function(c){var e=c.x;e=void 0===e?void 0:e;var g=c.y;g=void 0===g?void 0:g;var k=c.options.geometry;(k=
679
+ k&&"Point"===k.type&&k.coordinates)?(g=h(k),e=g[0],g=g[1]):c.bounds&&(e=c.bounds.midX,g=c.bounds.midY);r(e)&&r(g)?(e=b.projectedUnitsToPixels({x:e,y:g}),c.plotX=e.x,c.plotY=m?e.y:a.chart.plotHeight-e.y):(c.plotX=void 0,c.plotY=void 0);c.isInside=a.isPointInside(c);c.zone=a.zones.length?c.getZone():void 0})}k(this,"afterTranslate")};a.defaultOptions=m(x.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return a}(x);
680
+ w(B.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:u,searchPoint:b,useMapGeometry:!0});A.registerSeriesType("mappoint",B);"";return B});F(b,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",
681
+ 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}});F(b,"Series/Bubble/BubbleLegendItem.js",[b["Core/Color/Color.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,u,A,B){var v=b.parse,x=A.noop,w=B.arrayMax,k=B.arrayMin,r=B.isNumber,m=B.merge,h=B.pick,a=B.stableSort;"";return function(){function b(a,b){this.options=
682
+ 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=x;this.init(a,b)}b.prototype.init=function(a,b){this.options=a;this.visible=!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 c=this.chart,e=this.options,
683
+ k=h(b.options.itemDistance,20),m=e.ranges,p=e.connectorDistance;this.fontMetrics=c.renderer.fontMetrics(e.labels.style.fontSize);m&&m.length&&r(m[0].value)?(a(m,function(a,b){return b.value-a.value}),this.ranges=m,this.setOptions(),this.render(),b=this.getMaxLabelSize(),m=this.ranges[0].radius,c=2*m,p=p-m+b.width,p=0<p?p:0,this.maxLabel=b,this.movementX="left"===e.labels.align?p:0,this.legendItemWidth=c+p+k,this.legendItemHeight=c+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};b.prototype.setOptions=
684
+ function(){var a=this.ranges,b=this.options,c=this.chart.series[b.seriesIndex],k=this.legend.baseline,t={zIndex:b.zIndex,"stroke-width":b.borderWidth},p={zIndex:b.zIndex,"stroke-width":b.connectorWidth},r={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},n=c.options.marker.fillOpacity,f=this.chart.styledMode;a.forEach(function(e,d){f||(t.stroke=h(e.borderColor,b.borderColor,c.color),t.fill=h(e.color,b.color,1!==n?v(c.color).setOpacity(n).get("rgba"):c.color),
685
+ p.stroke=h(e.connectorColor,b.connectorColor,c.color));a[d].radius=this.getRangeRadius(e.value);a[d]=m(a[d],{center:a[0].radius-a[d].radius+k});f||m(!0,a[d],{bubbleAttribs:m(t),connectorAttribs:m(p),labelAttribs:r})},this)};b.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)};b.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;
686
+ 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()};b.prototype.renderRange=function(a){var b=this.options,c=b.labels,e=this.chart,h=e.series[b.seriesIndex],k=e.renderer,
687
+ m=this.symbols;e=m.labels;var n=a.center,f=Math.abs(a.radius),q=b.connectorDistance||0,d=c.align,r=b.connectorWidth,l=this.ranges[0].radius||0,u=n-f-b.borderWidth/2+r/2,v=this.fontMetrics;v=v.f/2-(v.h-v.f)/2;var w=k.styledMode;q=this.legend.options.rtl||"left"===d?-q:q;"center"===d&&(q=0,b.connectorDistance=0,a.labelAttribs.align="center");d=u+b.labels.y;var x=l+q+b.labels.x;m.bubbleItems.push(k.circle(l,n+((u%1?1:.5)-(r%2?0:.5)),f).attr(w?{}:a.bubbleAttribs).addClass((w?"highcharts-color-"+h.colorIndex+
688
+ " ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));m.connectors.push(k.path(k.crispLine([["M",l,u],["L",l+q,u]],b.connectorWidth)).attr(w?{}:a.connectorAttribs).addClass((w?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=k.text(this.formatLabel(a),x,d+v).attr(w?{}:a.labelAttribs).css(w?{}:c.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);
689
+ e.push(a);a.placed=!0;a.alignAttr={x:x,y:d+v}};b.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(c){b=c.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};b.prototype.formatLabel=function(a){var b=this.options,c=b.labels.formatter;b=b.labels.format;var e=this.chart.numberFormatter;return b?u.format(b,a):c?c.call(a):e(a.value,1)};b.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),
690
+ b.labels.forEach(function(a,c){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[c].show():b.connectors[c].hide()}))};b.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,c,u=Number.MAX_VALUE,t=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(c=a.zData.filter(r),c.length&&(u=h(a.options.zMin,Math.min(u,Math.max(k(c),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),t=h(a.options.zMax,Math.max(t,w(c)))))});
691
+ var p=u===t?[{value:t}]:[{value:u},{value:(u+t)/2},{value:t,autoRanges:!0}];b.length&&b[0].radius&&p.reverse();p.forEach(function(a,c){b&&b[c]&&(p[c]=m(b[c],a))});return p};b.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,c=a.legend.options,h=c.floating,k=(c="horizontal"===c.layout)?a.legend.lastLineHeight:0,m=a.plotSizeX,r=a.plotSizeY,n=a.series[this.options.seriesIndex],f=n.getPxExtremes();a=Math.ceil(f.minPxSize);f=Math.ceil(f.maxPxSize);var q=Math.min(r,m);n=n.options.maxSize;
692
+ if(h||!/%$/.test(n))b=f;else if(n=parseFloat(n),b=(q+k-b.h/2)*n/100/(n/100+1),c&&r-b>=m||!c&&m-b>=r)b=f;return[a,Math.ceil(b)]};b.prototype.updateRanges=function(a,b){var c=this.legend.options.bubbleLegend;c.minSize=a;c.maxSize=b;c.ranges=this.getRanges()};b.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 b}()});
693
+ F(b,"Series/Bubble/BubbleLegendComposition.js",[b["Series/Bubble/BubbleLegendDefaults.js"],b["Series/Bubble/BubbleLegendItem.js"],b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,u,A,B){var v=A.setOptions,x=B.addEvent,w=B.objectEach,k=B.wrap,r;(function(m){function h(b,e,g){var h=this.legend,f=0<=a(this);if(h&&h.options.enabled&&h.bubbleLegend&&h.options.bubbleLegend.autoRanges&&f){var k=h.bubbleLegend.options;f=h.bubbleLegend.predictBubbleSizes();h.bubbleLegend.updateRanges(f[0],f[1]);
694
+ k.placed||(h.group.placed=!1,h.allItems.forEach(function(a){a.legendGroup.translateY=null}));h.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();k.placed||(a.setScale(),a.updateNames(),w(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});k.placed=!0;this.getMargins();b.call(this,e,g);h.bubbleLegend.correctSizes();r(h,c(h))}else b.call(this,e,g),h&&h.options.enabled&&h.bubbleLegend&&(h.render(),r(h,c(h)))}function a(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&
695
+ a[b].visible&&a[b].zData.length)return b;b++}return-1}function c(a){a=a.allItems;var b=[],c=a.length,e,f=0;for(e=0;e<c;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[c-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var g=b[b.length-1];for(f;f<=e;f++)a[f].itemHeight>g.height&&(g.height=a[f].itemHeight);g.step=e}return b}function e(b){var c=this.bubbleLegend,e=this.options,g=e.bubbleLegend,f=a(this.chart);c&&c.ranges&&c.ranges.length&&
696
+ (g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(c));0<=f&&e.enabled&&g.enabled&&(g.seriesIndex=f,this.bubbleLegend=new u(g,this),this.bubbleLegend.addToLegend(b.allItems))}function g(){var b=this.chart,c=this.visible,e=this.chart.legend;e&&e.bubbleLegend&&(this.visible=!c,this.ignoreSeries=c,b=0<=a(b),e.bubbleLegend.visible!==b&&(e.update({bubbleLegend:{enabled:b}}),e.bubbleLegend.visible=b),this.visible=c)}function r(a,b){var c=a.options.rtl,e,f,g,d=0;a.allItems.forEach(function(a,
697
+ h){e=a.legendGroup.translateX;f=a._legendItemPos[1];if((g=a.movementX)||c&&a.ranges)g=c?e-a.options.maxSize/2:e+g,a.legendGroup.attr({translateX:g});h>b[d].step&&d++;a.legendGroup.attr({translateY:Math.round(f+b[d].height/2)});a._legendItemPos[1]=f+b[d].height/2})}var y=[];m.compose=function(a,c,m){-1===y.indexOf(a)&&(y.push(a),v({legend:{bubbleLegend:b}}),k(a.prototype,"drawChartBox",h));-1===y.indexOf(c)&&(y.push(c),x(c,"afterGetAllItems",e));-1===y.indexOf(m)&&(y.push(m),x(m,"legendItemClick",
698
+ g))}})(r||(r={}));return r});F(b,"Series/Bubble/BubblePoint.js",[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A){var x=this&&this.__extends||function(){var b=function(u,w){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,r){b.__proto__=r}||function(b,r){for(var k in r)r.hasOwnProperty(k)&&(b[k]=r[k])};return b(u,w)};return function(u,w){function k(){this.constructor=u}b(u,w);u.prototype=null===w?Object.create(w):(k.prototype=
699
+ w.prototype,new k)}}();A=A.extend;u=function(u){function v(){var b=null!==u&&u.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}x(v,u);v.prototype.haloPath=function(u){return b.prototype.haloPath.call(this,0===u?0:(this.marker?this.marker.radius||0:0)+u)};return v}(u.seriesTypes.scatter.prototype.pointClass);A(u.prototype,{ttBelow:!1});return u});F(b,"Series/Bubble/BubbleSeries.js",[b["Core/Axis/Axis.js"],b["Series/Bubble/BubbleLegendComposition.js"],b["Series/Bubble/BubblePoint.js"],
700
+ b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w,k){var r=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,
701
+ new e)}}(),m=B.parse;B=v.noop;var h=w.seriesTypes;v=h.column;var a=h.scatter;h=k.addEvent;var c=k.arrayMax,e=k.arrayMin,g=k.clamp,x=k.extend,y=k.isNumber,t=k.merge,p=k.pick;k=function(b){function h(){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}r(h,b);h.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=
702
+ 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)};h.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,e=[],g=this.chart.bubbleZExtremes;var h=this.getPxExtremes();var k=h.minPxSize,m=h.maxPxSize;if(!g){var n=Number.MAX_VALUE,p=-Number.MAX_VALUE,r;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=b.getZExtremes())&&(n=
703
+ Math.min(n||b.zMin,b.zMin),p=Math.max(p||b.zMax,b.zMax),r=!0)});r?(g={zMin:n,zMax:p},this.chart.bubbleZExtremes=g):g={zMin:0,zMax:0}}var t=0;for(h=b.length;t<h;t++){var u=b[t];e.push(this.getRadius(g.zMin,g.zMax,k,m,u,c[t]))}this.radii=e};h.prototype.getRadius=function(a,b,c,e,g,h){var d=this.options,f="width"!==d.sizeBy,k=d.zThreshold,l=b-a,m=.5;if(null===h||null===g)return null;if(y(g)){d.sizeByAbsoluteValue&&(g=Math.abs(g-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(g<a)return c/2-1;0<l&&(m=(g-a)/
704
+ l)}f&&0<=m&&(m=Math.sqrt(m));return Math.ceil(c+m*(e-c))/2};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=E.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=m(a.fill).setOpacity(c).get("rgba"));return a};h.prototype.translate=function(){b.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,c=this.getPxExtremes().minPxSize,
705
+ e=a.length;e--;){var g=a[e],h=b?b[e]:0;y(h)&&h>=c/2?(g.marker=x(g.marker,{radius:h,width:2*h,height:2*h}),g.dlBox={x:g.plotX-h,y:g.plotY-h,width:2*h,height:2*h}):g.shapeArgs=g.plotY=g.dlBox=void 0}};h.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(p(this.options.minSize,8));b=Math.max(b(p(this.options.maxSize,"20%")),c);return{minPxSize:c,maxPxSize:b}};h.prototype.getZExtremes=
706
+ function(){var a=this.options,b=(this.zData||[]).filter(y);if(b.length){var d=p(a.zMin,g(e(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=p(a.zMax,c(b));if(y(d)&&y(a))return{zMin:d,zMax:a}}};h.compose=u.compose;h.defaultOptions=t(a.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,
707
+ 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 h}(a);x(k.prototype,{alignDataLabel:v.prototype.alignDataLabel,applyZones:B,bubblePadding:!0,buildKDTree:B,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:A,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});
708
+ h(k,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});b.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,e=0,d=b,g=this.isXAxis,h=g?"xData":"yData",k=this.min,m=this.max-k,r=b/m,t;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!c.options.chart.ignoreHiddenSeries)){t=a.allowZoomOutside=!0;var f=b[h];g&&b.getRadii(0,0,b);if(0<m)for(var l=f.length;l--;)if(y(f[l])&&a.dataMin<=f[l]&&f[l]<=a.max){var n=b.radii&&b.radii[l]||0;e=Math.min((f[l]-k)*r-n,
709
+ e);d=Math.max((f[l]-k)*r+n,d)}}});t&&0<m&&!this.logarithmic&&(d-=b,r*=(b+Math.max(0,e)-Math.min(d,b))/b,[["min","userMin",e],["max","userMax",d]].forEach(function(b){"undefined"===typeof p(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/r)}))};w.registerSeriesType("bubble",k);"";"";return k});F(b,"Series/MapBubble/MapBubblePoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(u,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof
710
+ Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=k[h])};return b(u,k)};return function(u,k){function r(){this.constructor=u}b(u,k);u.prototype=null===k?Object.create(k):(r.prototype=k.prototype,new r)}}();b=b.seriesTypes;var B=b.map,v=u.merge;return function(b){function u(){return null!==b&&b.apply(this,arguments)||this}x(u,b);u.prototype.applyOptions=function(k,r){return k&&"undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?b.prototype.applyOptions.call(this,
711
+ v(k,this.series.chart.fromLatLonToPoint(k)),r):B.prototype.pointClass.prototype.applyOptions.call(this,k,r)};u.prototype.isValid=function(){return"number"===typeof this.z};return u}(b.bubble.prototype.pointClass)});F(b,"Series/MapBubble/MapBubbleSeries.js",[b["Series/Bubble/BubbleSeries.js"],b["Series/MapBubble/MapBubblePoint.js"],b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u,A,B,v){var x=this&&this.__extends||function(){var b=function(h,a){b=
712
+ 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 b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),w=B.seriesTypes.mappoint,k=v.extend,r=v.merge;v=function(k){function h(){var a=null!==k&&k.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}x(h,k);h.prototype.translate=
713
+ function(){w.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.compose=b.compose;h.defaultOptions=r(b.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(b);k(v.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:A.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:u,setData:A.prototype.setData,setOptions:A.prototype.setOptions,useMapGeometry:!0,xyFromShape:!0});B.registerSeriesType("mapbubble",
714
+ v);"";return v});F(b,"Series/Heatmap/HeatmapPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,u){var x=this&&this.__extends||function(){var b=function(k,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(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}}(),B=u.clamp,v=u.extend,
715
+ E=u.pick;b=function(b){function k(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.series=void 0;k.value=void 0;k.x=void 0;k.y=void 0;return k}x(k,b);k.prototype.applyOptions=function(k,m){k=b.prototype.applyOptions.call(this,k,m);k.formatPrefix=k.isNull||null===k.value?"null":"point";return k};k.prototype.getCellAttributes=function(){var b=this.series,k=b.options,h=(k.colsize||1)/2,a=(k.rowsize||1)/2,c=b.xAxis,e=b.yAxis,g=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();
716
+ var u=E(this.pointPadding,k.pointPadding,0),v={x1:B(Math.round(c.len-(c.translate(this.x-h,!1,!0,!1,!0,-b)||0)),-c.len,2*c.len),x2:B(Math.round(c.len-(c.translate(this.x+h,!1,!0,!1,!0,-b)||0)),-c.len,2*c.len),y1:B(Math.round(e.translate(this.y-a,!1,!0,!1,!0)||0),-e.len,2*e.len),y2:B(Math.round(e.translate(this.y+a,!1,!0,!1,!0)||0),-e.len,2*e.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var c=a+"1",e=a+"2",f=Math.abs(v[c]-v[e]),h=g&&g.lineWidth||0,d=Math.abs(v[c]+v[e])/
717
+ 2;g[b]&&g[b]<f&&(v[c]=d-g[b]/2-h/2,v[e]=d+g[b]/2+h/2);u&&("y"===a&&(c=e,e=a+"1"),v[c]+=u,v[e]-=u)});return v};k.prototype.haloPath=function(b){if(!b)return[];var k=this.shapeArgs;return["M",k.x-b,k.y-b,"L",k.x-b,k.y+k.height+b,k.x+k.width+b,k.y+k.height+b,k.x+k.width+b,k.y-b,"Z"]};k.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return k}(b.seriesTypes.scatter.prototype.pointClass);v(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});F(b,
718
+ "Series/Heatmap/HeatmapSeries.js",[b["Core/Color/Color.js"],b["Series/ColorMapComposition.js"],b["Series/Heatmap/HeatmapPoint.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,u,A,B,v,E,w){var k=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,
719
+ c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),r=u.colorMapSeriesMixin,m=v.series,h=v.seriesTypes,a=h.column,c=h.scatter,e=E.prototype.symbols,g=w.extend,x=w.fireEvent,y=w.isNumber,t=w.merge,p=w.pick;E=function(a){function h(){var b=null!==a&&a.apply(this,arguments)||this;b.colorAxis=void 0;b.data=void 0;b.options=void 0;b.points=void 0;b.valueMax=NaN;b.valueMin=NaN;return b}k(h,a);h.prototype.drawPoints=function(){var a=
720
+ this;if((this.options.marker||{}).enabled||this._hasPointMarkers)m.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"))})};h.prototype.getExtremes=function(){var a=m.prototype.getExtremes.call(this,this.valueData),
721
+ b=a.dataMin;a=a.dataMax;y(b)&&(this.valueMin=b);y(a)&&(this.valueMax=a);return m.prototype.getExtremes.call(this)};h.prototype.getValidPoints=function(a,b){return m.prototype.getValidPoints.call(this,a,b,!0)};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.init=function(){m.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=p(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;e.ellipse=e.circle};h.prototype.markerAttribs=function(a,b){var c=
722
+ a.marker||{},e=this.options.marker||{},f=a.shapeArgs||{},g={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var h=e.states[b]||{};var k=c.states&&c.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){g[a[0]]=(k[a[0]]||h[a[0]]||f[a[0]])+(k[a[0]+"Plus"]||h[a[0]+"Plus"]||0);g[a[1]]=f[a[1]]+(f[a[0]]-g[a[0]])/2})}return b?g:f};h.prototype.pointAttribs=function(a,c){var d=m.prototype.pointAttribs.call(this,a,c),e=this.options||{},f=this.chart.options.plotOptions||{},g=f.series||{},h=f.heatmap||
723
+ {};f=a&&a.options.borderColor||e.borderColor||h.borderColor||g.borderColor;g=a&&a.options.borderWidth||e.borderWidth||h.borderWidth||g.borderWidth||d["stroke-width"];d.stroke=a&&a.marker&&a.marker.lineColor||e.marker&&e.marker.lineColor||f||this.color;d["stroke-width"]=g;c&&(a=t(e.states[c],e.marker&&e.marker.states[c],a&&a.options.states&&a.options.states[c]||{}),c=a.brightness,d.fill=a.color||b.parse(d.fill).brighten(c||0).get(),d.stroke=a.lineColor);return d};h.prototype.setClip=function(a){var b=
724
+ this.chart;m.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&&a.marker.symbol||"rect",c=e[b]?b:"rect",h=-1!==["circle","square"].indexOf(c);this.generatePoints();this.points.forEach(function(a){var d=a.getCellAttributes(),f={};f.x=Math.min(d.x1,d.x2);f.y=Math.min(d.y1,d.y2);f.width=Math.max(Math.abs(d.x2-d.x1),
725
+ 0);f.height=Math.max(Math.abs(d.y2-d.y1),0);var k=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(h){var l=Math.abs(f.width-f.height);f.x=Math.min(d.x1,d.x2)+(f.width<f.height?0:l/2);f.y=Math.min(d.y1,d.y2)+(f.width<f.height?l/2:0);f.width=f.height=Math.min(f.width,f.height)}l={plotX:(d.x1+d.x2)/2,plotY:(d.y1+d.y2)/2,clientX:(d.x1+d.x2)/2,shapeType:"path",shapeArgs:t(!0,f,{d:e[c](f.x,f.y,f.width,f.height)})};k&&(a.marker={width:f.width,height:f.height});g(a,l)});x(this,"afterTranslate")};
726
+ h.defaultOptions=t(c.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return y(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/>"},states:{hover:{halo:!1,brightness:.2}}});
727
+ return h}(c);g(E.prototype,{alignDataLabel:a.prototype.alignDataLabel,axisTypes:r.axisTypes,colorKey:"value",directTouch:!0,drawLegendSymbol:B.drawRectangle,getExtremesFromAll:!0,getSymbol:m.prototype.getSymbol,parallelArrays:r.parallelArrays,pointArrayMap:["y","value"],pointClass:A,trackerGroups:r.trackerGroups});u.compose(E);v.registerSeriesType("heatmap",E);"";"";return E});F(b,"Extensions/GeoJSON.js",[b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],
728
+ function(b,u,A,B){function v(b,a){var c,e=!1,g=b.x,h=b.y;b=0;for(c=a.length-1;b<a.length;c=b++){var k=a[b][1]>h;var m=a[c][1]>h;k!==m&&g<(a[c][0]-a[b][0])*(h-a[b][1])/(a[c][1]-a[b][1])+a[b][0]&&(e=!e)}return e}var x=u.format,w=A.win,k=B.error,r=B.extend,m=B.merge;u=B.wrap;"";b.prototype.transformFromLatLon=function(b,a){var c=this.options.chart.proj4||w.proj4;if(!c)return k(21,!1,this),{x:0,y:null};var e=a.jsonmarginX;e=void 0===e?0:e;var g=a.jsonmarginY;g=void 0===g?0:g;var h=a.jsonres;h=void 0===
729
+ h?1:h;var m=a.scale;m=void 0===m?1:m;var t=a.xoffset;t=void 0===t?0:t;var p=a.xpan;p=void 0===p?0:p;var r=a.yoffset;r=void 0===r?0:r;var n=a.ypan;n=void 0===n?0:n;b=c(a.crs,[b.lon,b.lat]);c=a.cosAngle||a.rotation&&Math.cos(a.rotation);var f=a.sinAngle||a.rotation&&Math.sin(a.rotation);a=a.rotation?[b[0]*c+b[1]*f,-b[0]*f+b[1]*c]:b;return{x:((a[0]-t)*m+p)*h+e,y:-(((r-a[1])*m+n)*h-g)}};b.prototype.transformToLatLon=function(b,a){if(!this.options.chart.proj4&&!w.proj4)k(21,!1,this);else if(null!==b.y){var c=
730
+ a.jsonmarginX,e=a.jsonmarginY,g=a.jsonres;g=void 0===g?1:g;var h=a.scale;h=void 0===h?1:h;var m=a.xoffset,r=a.xpan,p=a.yoffset,u=a.ypan;b={x:((b.x-(void 0===c?0:c))/g-(void 0===r?0:r))/h+(void 0===m?0:m),y:((b.y-(void 0===e?0:e))/g+(void 0===u?0:u))/h+(void 0===p?0:p)};c=a.cosAngle||a.rotation&&Math.cos(a.rotation);e=a.sinAngle||a.rotation&&Math.sin(a.rotation);a=w.proj4(a.crs,"WGS84",a.rotation?{x:b.x*c+b.y*-e,y:b.x*e+b.y*c}:b);return{lat:a.y,lon:a.x}}};b.prototype.fromPointToLatLon=function(b){var a=
731
+ this.mapTransforms;if(a){for(var c in a)if(Object.hasOwnProperty.call(a,c)&&a[c].hitZone&&v(b,a[c].hitZone.coordinates[0]))return this.transformToLatLon(b,a[c]);return this.transformToLatLon(b,a["default"])}k(22,!1,this)};b.prototype.fromLatLonToPoint=function(b){var a=this.mapTransforms,c;if(!a)return k(22,!1,this),{x:0,y:null};for(c in a)if(Object.hasOwnProperty.call(a,c)&&a[c].hitZone){var e=this.transformFromLatLon(b,a[c]);if(v(e,a[c].hitZone.coordinates[0]))return e}return this.transformFromLatLon(b,
732
+ a["default"])};A.geojson=function(b,a,c){void 0===a&&(a="map");var e=[];b.features.forEach(function(b){var c=b.geometry||{},g=c.type;c=c.coordinates;b=b.properties;var h;"map"!==a&&"mapbubble"!==a||"Polygon"!==g&&"MultiPolygon"!==g?"mapline"!==a||"LineString"!==g&&"MultiLineString"!==g?"mappoint"===a&&"Point"===g&&c.length&&(h={geometry:{coordinates:c,type:g}}):c.length&&(h={geometry:{coordinates:c,type:g}}):c.length&&(h={geometry:{coordinates:c,type:g}});h&&e.push(r(h,{name:b.name||b.NAME,properties:b}))});
733
+ c&&b.copyrightShort&&(c.chart.mapCredits=x(c.chart.options.credits.mapText,{geojson:b}),c.chart.mapCreditsFull=x(c.chart.options.credits.mapTextFull,{geojson:b}));return e};u(b.prototype,"addCredits",function(b,a){a=m(!0,this.options.credits,a);this.mapCredits&&(a.href=null);b.call(this,a);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});F(b,"masters/modules/map.src.js",[b["Core/Globals.js"],b["Core/Axis/Color/ColorAxis.js"],b["Series/MapBubble/MapBubbleSeries.js"],
734
+ b["Core/Chart/MapChart.js"]],function(b,u,A,B){b.ColorAxis=u;b.MapChart=B;b.mapChart=b.Map=B.mapChart;b.maps=B.maps;u.compose(b.Chart,b.Fx,b.Legend,b.Series);A.compose(b.Chart,b.Legend,b.Series)});F(b,"masters/highmaps.src.js",[b["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});b["masters/highmaps.src.js"]._modules=b;return b["masters/highmaps.src.js"]});
714
735
  //# sourceMappingURL=highmaps.js.map