highcharts 9.1.1 → 9.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/bower.json +1 -1
  2. package/css/annotations/popup.css +29 -28
  3. package/css/annotations/popup.scss +29 -27
  4. package/es-modules/Core/Axis/Axis.js +24 -17
  5. package/es-modules/Core/Axis/AxisDefaults.js +0 -1
  6. package/es-modules/Core/Axis/OrdinalAxis.js +141 -61
  7. package/es-modules/Core/Globals.js +7 -1
  8. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
  9. package/es-modules/Core/Series/Series.js +16 -1
  10. package/es-modules/Core/Time.js +2 -2
  11. package/es-modules/Core/Tooltip.js +7 -11
  12. package/es-modules/Extensions/Annotations/NavigationBindings.js +1 -1
  13. package/es-modules/Extensions/Annotations/Popup.js +4 -1
  14. package/es-modules/Extensions/Boost/WGLRenderer.js +5 -0
  15. package/es-modules/Extensions/Drilldown.js +39 -12
  16. package/es-modules/Extensions/OfflineExporting.js +1 -1
  17. package/es-modules/Extensions/Oldie/Oldie.js +1 -1
  18. package/es-modules/Extensions/PatternFill.js +23 -10
  19. package/es-modules/Stock/StockToolsGui.js +1 -1
  20. package/es-modules/masters/highcharts-3d.src.js +1 -1
  21. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  22. package/es-modules/masters/highcharts-more.src.js +1 -1
  23. package/es-modules/masters/highcharts.src.js +1 -1
  24. package/es-modules/masters/highmaps.src.js +1 -1
  25. package/es-modules/masters/highstock.src.js +1 -1
  26. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  27. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  28. package/es-modules/masters/indicators/ao.src.js +1 -1
  29. package/es-modules/masters/indicators/apo.src.js +1 -1
  30. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  31. package/es-modules/masters/indicators/aroon.src.js +1 -1
  32. package/es-modules/masters/indicators/atr.src.js +1 -1
  33. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  34. package/es-modules/masters/indicators/cci.src.js +1 -1
  35. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  36. package/es-modules/masters/indicators/cmf.src.js +1 -1
  37. package/es-modules/masters/indicators/cmo.src.js +1 -1
  38. package/es-modules/masters/indicators/dema.src.js +1 -1
  39. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  40. package/es-modules/masters/indicators/dmi.src.js +1 -1
  41. package/es-modules/masters/indicators/dpo.src.js +1 -1
  42. package/es-modules/masters/indicators/ema.src.js +1 -1
  43. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  44. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  45. package/es-modules/masters/indicators/indicators.src.js +1 -1
  46. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  47. package/es-modules/masters/indicators/klinger.src.js +1 -1
  48. package/es-modules/masters/indicators/macd.src.js +1 -1
  49. package/es-modules/masters/indicators/mfi.src.js +1 -1
  50. package/es-modules/masters/indicators/momentum.src.js +1 -1
  51. package/es-modules/masters/indicators/natr.src.js +1 -1
  52. package/es-modules/masters/indicators/obv.src.js +1 -1
  53. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  54. package/es-modules/masters/indicators/ppo.src.js +1 -1
  55. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  56. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  57. package/es-modules/masters/indicators/psar.src.js +1 -1
  58. package/es-modules/masters/indicators/regressions.src.js +1 -1
  59. package/es-modules/masters/indicators/roc.src.js +1 -1
  60. package/es-modules/masters/indicators/rsi.src.js +1 -1
  61. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  62. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  63. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  64. package/es-modules/masters/indicators/tema.src.js +1 -1
  65. package/es-modules/masters/indicators/trendline.src.js +1 -1
  66. package/es-modules/masters/indicators/trix.src.js +1 -1
  67. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  68. package/es-modules/masters/indicators/vwap.src.js +1 -1
  69. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  70. package/es-modules/masters/indicators/wma.src.js +1 -1
  71. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  72. package/es-modules/masters/modules/accessibility.src.js +1 -1
  73. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  74. package/es-modules/masters/modules/annotations.src.js +1 -1
  75. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  76. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  77. package/es-modules/masters/modules/boost.src.js +1 -1
  78. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  79. package/es-modules/masters/modules/bullet.src.js +1 -1
  80. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  81. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  82. package/es-modules/masters/modules/cylinder.src.js +1 -1
  83. package/es-modules/masters/modules/data.src.js +1 -1
  84. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  85. package/es-modules/masters/modules/debugger.src.js +1 -1
  86. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  87. package/es-modules/masters/modules/dotplot.src.js +1 -1
  88. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  89. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  90. package/es-modules/masters/modules/drilldown.src.js +1 -1
  91. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  92. package/es-modules/masters/modules/export-data.src.js +1 -1
  93. package/es-modules/masters/modules/exporting.src.js +1 -1
  94. package/es-modules/masters/modules/full-screen.src.js +1 -1
  95. package/es-modules/masters/modules/funnel.src.js +1 -1
  96. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  97. package/es-modules/masters/modules/gantt.src.js +1 -1
  98. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  99. package/es-modules/masters/modules/heatmap.src.js +1 -1
  100. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  101. package/es-modules/masters/modules/item-series.src.js +1 -1
  102. package/es-modules/masters/modules/lollipop.src.js +1 -1
  103. package/es-modules/masters/modules/map.src.js +1 -1
  104. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  105. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  106. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  107. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  108. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  109. package/es-modules/masters/modules/oldie.src.js +1 -1
  110. package/es-modules/masters/modules/organization.src.js +1 -1
  111. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  112. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  113. package/es-modules/masters/modules/pareto.src.js +1 -1
  114. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  115. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  116. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  117. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  118. package/es-modules/masters/modules/sankey.src.js +1 -1
  119. package/es-modules/masters/modules/series-label.src.js +1 -1
  120. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  121. package/es-modules/masters/modules/sonification.src.js +1 -1
  122. package/es-modules/masters/modules/static-scale.src.js +1 -1
  123. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  124. package/es-modules/masters/modules/stock.src.js +1 -1
  125. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  126. package/es-modules/masters/modules/sunburst.src.js +1 -1
  127. package/es-modules/masters/modules/tilemap.src.js +1 -1
  128. package/es-modules/masters/modules/timeline.src.js +1 -1
  129. package/es-modules/masters/modules/treegrid.src.js +1 -1
  130. package/es-modules/masters/modules/treemap.src.js +1 -1
  131. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  132. package/es-modules/masters/modules/variwide.src.js +1 -1
  133. package/es-modules/masters/modules/vector.src.js +1 -1
  134. package/es-modules/masters/modules/venn.src.js +1 -1
  135. package/es-modules/masters/modules/windbarb.src.js +1 -1
  136. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  137. package/es-modules/masters/modules/xrange.src.js +1 -1
  138. package/es-modules/masters/themes/avocado.src.js +1 -1
  139. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  140. package/es-modules/masters/themes/dark-green.src.js +1 -1
  141. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  142. package/es-modules/masters/themes/gray.src.js +1 -1
  143. package/es-modules/masters/themes/grid-light.src.js +1 -1
  144. package/es-modules/masters/themes/grid.src.js +1 -1
  145. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  146. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  147. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  148. package/es-modules/masters/themes/skies.src.js +1 -1
  149. package/es-modules/masters/themes/sunset.src.js +1 -1
  150. package/highcharts-3d.js +1 -1
  151. package/highcharts-3d.src.js +1 -1
  152. package/highcharts-gantt.js +782 -782
  153. package/highcharts-gantt.js.map +1 -1
  154. package/highcharts-gantt.src.js +109 -87
  155. package/highcharts-more.js +1 -1
  156. package/highcharts-more.src.js +1 -1
  157. package/highcharts.d.ts +30 -9
  158. package/highcharts.js +467 -467
  159. package/highcharts.js.map +1 -1
  160. package/highcharts.src.d.ts +30 -9
  161. package/highcharts.src.js +109 -87
  162. package/highmaps.js +697 -697
  163. package/highmaps.js.map +1 -1
  164. package/highmaps.src.js +109 -87
  165. package/highstock.js +757 -755
  166. package/highstock.js.map +1 -1
  167. package/highstock.src.js +270 -157
  168. package/indicators/acceleration-bands.js +1 -1
  169. package/indicators/acceleration-bands.src.js +1 -1
  170. package/indicators/accumulation-distribution.js +1 -1
  171. package/indicators/accumulation-distribution.src.js +1 -1
  172. package/indicators/ao.js +1 -1
  173. package/indicators/ao.src.js +1 -1
  174. package/indicators/apo.js +1 -1
  175. package/indicators/apo.src.js +1 -1
  176. package/indicators/aroon-oscillator.js +1 -1
  177. package/indicators/aroon-oscillator.src.js +1 -1
  178. package/indicators/aroon.js +1 -1
  179. package/indicators/aroon.src.js +1 -1
  180. package/indicators/atr.js +1 -1
  181. package/indicators/atr.src.js +1 -1
  182. package/indicators/bollinger-bands.js +1 -1
  183. package/indicators/bollinger-bands.src.js +1 -1
  184. package/indicators/cci.js +1 -1
  185. package/indicators/cci.src.js +1 -1
  186. package/indicators/chaikin.js +1 -1
  187. package/indicators/chaikin.src.js +1 -1
  188. package/indicators/cmf.js +1 -1
  189. package/indicators/cmf.src.js +1 -1
  190. package/indicators/cmo.js +1 -1
  191. package/indicators/cmo.src.js +1 -1
  192. package/indicators/dema.js +1 -1
  193. package/indicators/dema.src.js +1 -1
  194. package/indicators/disparity-index.js +1 -1
  195. package/indicators/disparity-index.src.js +1 -1
  196. package/indicators/dmi.js +1 -1
  197. package/indicators/dmi.src.js +1 -1
  198. package/indicators/dpo.js +1 -1
  199. package/indicators/dpo.src.js +1 -1
  200. package/indicators/ema.js +1 -1
  201. package/indicators/ema.src.js +1 -1
  202. package/indicators/ichimoku-kinko-hyo.js +1 -1
  203. package/indicators/ichimoku-kinko-hyo.src.js +1 -1
  204. package/indicators/indicators-all.js +1 -1
  205. package/indicators/indicators-all.src.js +1 -1
  206. package/indicators/indicators.js +1 -1
  207. package/indicators/indicators.src.js +1 -1
  208. package/indicators/keltner-channels.js +1 -1
  209. package/indicators/keltner-channels.src.js +1 -1
  210. package/indicators/klinger.js +1 -1
  211. package/indicators/klinger.src.js +1 -1
  212. package/indicators/macd.js +1 -1
  213. package/indicators/macd.src.js +1 -1
  214. package/indicators/mfi.js +1 -1
  215. package/indicators/mfi.src.js +1 -1
  216. package/indicators/momentum.js +1 -1
  217. package/indicators/momentum.src.js +1 -1
  218. package/indicators/natr.js +1 -1
  219. package/indicators/natr.src.js +1 -1
  220. package/indicators/obv.js +1 -1
  221. package/indicators/obv.src.js +1 -1
  222. package/indicators/pivot-points.js +1 -1
  223. package/indicators/pivot-points.src.js +1 -1
  224. package/indicators/ppo.js +1 -1
  225. package/indicators/ppo.src.js +1 -1
  226. package/indicators/price-channel.js +1 -1
  227. package/indicators/price-channel.src.js +1 -1
  228. package/indicators/price-envelopes.js +1 -1
  229. package/indicators/price-envelopes.src.js +1 -1
  230. package/indicators/psar.js +1 -1
  231. package/indicators/psar.src.js +1 -1
  232. package/indicators/regressions.js +1 -1
  233. package/indicators/regressions.src.js +1 -1
  234. package/indicators/roc.js +1 -1
  235. package/indicators/roc.src.js +1 -1
  236. package/indicators/rsi.js +1 -1
  237. package/indicators/rsi.src.js +1 -1
  238. package/indicators/slow-stochastic.js +1 -1
  239. package/indicators/slow-stochastic.src.js +1 -1
  240. package/indicators/stochastic.js +1 -1
  241. package/indicators/stochastic.src.js +1 -1
  242. package/indicators/supertrend.js +1 -1
  243. package/indicators/supertrend.src.js +1 -1
  244. package/indicators/tema.js +1 -1
  245. package/indicators/tema.src.js +1 -1
  246. package/indicators/trendline.js +1 -1
  247. package/indicators/trendline.src.js +1 -1
  248. package/indicators/trix.js +1 -1
  249. package/indicators/trix.src.js +1 -1
  250. package/indicators/volume-by-price.js +1 -1
  251. package/indicators/volume-by-price.src.js +1 -1
  252. package/indicators/vwap.js +1 -1
  253. package/indicators/vwap.src.js +1 -1
  254. package/indicators/williams-r.js +1 -1
  255. package/indicators/williams-r.src.js +1 -1
  256. package/indicators/wma.js +1 -1
  257. package/indicators/wma.src.js +1 -1
  258. package/indicators/zigzag.js +1 -1
  259. package/indicators/zigzag.src.js +1 -1
  260. package/modules/accessibility.js +1 -1
  261. package/modules/accessibility.src.js +1 -1
  262. package/modules/annotations-advanced.js +16 -16
  263. package/modules/annotations-advanced.js.map +1 -1
  264. package/modules/annotations-advanced.src.js +6 -3
  265. package/modules/annotations.js +16 -16
  266. package/modules/annotations.js.map +1 -1
  267. package/modules/annotations.src.js +6 -3
  268. package/modules/arrow-symbols.js +1 -1
  269. package/modules/arrow-symbols.src.js +1 -1
  270. package/modules/boost-canvas.js +1 -1
  271. package/modules/boost-canvas.src.js +1 -1
  272. package/modules/boost.js +34 -34
  273. package/modules/boost.js.map +1 -1
  274. package/modules/boost.src.js +6 -1
  275. package/modules/broken-axis.js +1 -1
  276. package/modules/broken-axis.src.js +1 -1
  277. package/modules/bullet.js +1 -1
  278. package/modules/bullet.src.js +1 -1
  279. package/modules/coloraxis.js +1 -1
  280. package/modules/coloraxis.src.js +1 -1
  281. package/modules/current-date-indicator.js +1 -1
  282. package/modules/current-date-indicator.src.js +1 -1
  283. package/modules/cylinder.js +1 -1
  284. package/modules/cylinder.src.js +1 -1
  285. package/modules/data.js +1 -1
  286. package/modules/data.src.js +1 -1
  287. package/modules/datagrouping.js +1 -1
  288. package/modules/datagrouping.src.js +1 -1
  289. package/modules/debugger.js +1 -1
  290. package/modules/debugger.src.js +1 -1
  291. package/modules/dependency-wheel.js +1 -1
  292. package/modules/dependency-wheel.src.js +1 -1
  293. package/modules/dotplot.js +1 -1
  294. package/modules/dotplot.src.js +1 -1
  295. package/modules/drag-panes.js +1 -1
  296. package/modules/drag-panes.src.js +1 -1
  297. package/modules/draggable-points.js +1 -1
  298. package/modules/draggable-points.src.js +1 -1
  299. package/modules/drilldown.d.ts +27 -0
  300. package/modules/drilldown.js +16 -16
  301. package/modules/drilldown.js.map +1 -1
  302. package/modules/drilldown.src.d.ts +27 -0
  303. package/modules/drilldown.src.js +40 -14
  304. package/modules/dumbbell.js +1 -1
  305. package/modules/dumbbell.src.js +1 -1
  306. package/modules/export-data.js +1 -1
  307. package/modules/export-data.src.js +1 -1
  308. package/modules/exporting.js +1 -1
  309. package/modules/exporting.src.js +1 -1
  310. package/modules/full-screen.js +1 -1
  311. package/modules/full-screen.src.js +1 -1
  312. package/modules/funnel.js +1 -1
  313. package/modules/funnel.src.js +1 -1
  314. package/modules/funnel3d.js +1 -1
  315. package/modules/funnel3d.src.js +1 -1
  316. package/modules/gantt.js +1 -1
  317. package/modules/gantt.src.js +1 -1
  318. package/modules/grid-axis.js +1 -1
  319. package/modules/grid-axis.src.js +1 -1
  320. package/modules/heatmap.js +1 -1
  321. package/modules/heatmap.src.js +1 -1
  322. package/modules/histogram-bellcurve.js +1 -1
  323. package/modules/histogram-bellcurve.src.js +1 -1
  324. package/modules/item-series.js +1 -1
  325. package/modules/item-series.src.js +1 -1
  326. package/modules/lollipop.js +1 -1
  327. package/modules/lollipop.src.js +1 -1
  328. package/modules/map.js +1 -1
  329. package/modules/map.src.js +1 -1
  330. package/modules/marker-clusters.js +1 -1
  331. package/modules/marker-clusters.src.js +1 -1
  332. package/modules/networkgraph.js +1 -1
  333. package/modules/networkgraph.src.js +1 -1
  334. package/modules/no-data-to-display.js +1 -1
  335. package/modules/no-data-to-display.src.js +1 -1
  336. package/modules/offline-exporting.js +2 -2
  337. package/modules/offline-exporting.src.js +2 -2
  338. package/modules/oldie-polyfills.js +1 -1
  339. package/modules/oldie-polyfills.src.js +1 -1
  340. package/modules/oldie.js +2 -2
  341. package/modules/oldie.src.js +2 -2
  342. package/modules/organization.js +1 -1
  343. package/modules/organization.src.js +1 -1
  344. package/modules/overlapping-datalabels.js +1 -1
  345. package/modules/overlapping-datalabels.src.js +1 -1
  346. package/modules/parallel-coordinates.js +1 -1
  347. package/modules/parallel-coordinates.src.js +1 -1
  348. package/modules/pareto.js +1 -1
  349. package/modules/pareto.src.js +1 -1
  350. package/modules/pathfinder.js +1 -1
  351. package/modules/pathfinder.src.js +1 -1
  352. package/modules/pattern-fill.js +14 -14
  353. package/modules/pattern-fill.js.map +1 -1
  354. package/modules/pattern-fill.src.js +24 -12
  355. package/modules/price-indicator.js +1 -1
  356. package/modules/price-indicator.src.js +1 -1
  357. package/modules/pyramid3d.js +1 -1
  358. package/modules/pyramid3d.src.js +1 -1
  359. package/modules/sankey.js +1 -1
  360. package/modules/sankey.src.js +1 -1
  361. package/modules/series-label.js +1 -1
  362. package/modules/series-label.src.js +1 -1
  363. package/modules/solid-gauge.js +1 -1
  364. package/modules/solid-gauge.src.js +1 -1
  365. package/modules/sonification.js +1 -1
  366. package/modules/sonification.src.js +1 -1
  367. package/modules/static-scale.js +1 -1
  368. package/modules/static-scale.src.js +1 -1
  369. package/modules/stock-tools.js +2 -2
  370. package/modules/stock-tools.src.js +3 -3
  371. package/modules/stock.js +191 -189
  372. package/modules/stock.js.map +1 -1
  373. package/modules/stock.src.js +162 -71
  374. package/modules/streamgraph.js +1 -1
  375. package/modules/streamgraph.src.js +1 -1
  376. package/modules/sunburst.js +1 -1
  377. package/modules/sunburst.src.js +1 -1
  378. package/modules/tilemap.js +1 -1
  379. package/modules/tilemap.src.js +1 -1
  380. package/modules/timeline.js +1 -1
  381. package/modules/timeline.src.js +1 -1
  382. package/modules/treegrid.js +1 -1
  383. package/modules/treegrid.src.js +1 -1
  384. package/modules/treemap.js +1 -1
  385. package/modules/treemap.src.js +1 -1
  386. package/modules/variable-pie.js +1 -1
  387. package/modules/variable-pie.src.js +1 -1
  388. package/modules/variwide.js +1 -1
  389. package/modules/variwide.src.js +1 -1
  390. package/modules/vector.js +1 -1
  391. package/modules/vector.src.js +1 -1
  392. package/modules/venn.js +1 -1
  393. package/modules/venn.src.js +1 -1
  394. package/modules/windbarb.js +1 -1
  395. package/modules/windbarb.src.js +1 -1
  396. package/modules/wordcloud.js +1 -1
  397. package/modules/wordcloud.src.js +1 -1
  398. package/modules/xrange.js +1 -1
  399. package/modules/xrange.src.js +1 -1
  400. package/package.json +1 -1
  401. package/themes/avocado.js +1 -1
  402. package/themes/avocado.src.js +1 -1
  403. package/themes/dark-blue.js +1 -1
  404. package/themes/dark-blue.src.js +1 -1
  405. package/themes/dark-green.js +1 -1
  406. package/themes/dark-green.src.js +1 -1
  407. package/themes/dark-unica.js +1 -1
  408. package/themes/dark-unica.src.js +1 -1
  409. package/themes/gray.js +1 -1
  410. package/themes/gray.src.js +1 -1
  411. package/themes/grid-light.js +1 -1
  412. package/themes/grid-light.src.js +1 -1
  413. package/themes/grid.js +1 -1
  414. package/themes/grid.src.js +1 -1
  415. package/themes/high-contrast-dark.js +1 -1
  416. package/themes/high-contrast-dark.src.js +1 -1
  417. package/themes/high-contrast-light.js +1 -1
  418. package/themes/high-contrast-light.src.js +1 -1
  419. package/themes/sand-signika.js +1 -1
  420. package/themes/sand-signika.src.js +1 -1
  421. package/themes/skies.js +1 -1
  422. package/themes/skies.src.js +1 -1
  423. package/themes/sunset.js +1 -1
  424. package/themes/sunset.src.js +1 -1
package/highmaps.js CHANGED
@@ -1,705 +1,705 @@
1
1
  /*
2
- Highmaps JS v9.1.1 (2021-06-03)
2
+ Highmaps JS v9.1.2 (2021-06-16)
3
3
 
4
4
  (c) 2011-2021 Torstein Honsi
5
5
 
6
6
  License: www.highcharts.com/license
7
7
  */
8
- 'use strict';(function(X,J){"object"===typeof module&&module.exports?(J["default"]=J,module.exports=X.document?J(X):J):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return J(X)}):(X.Highcharts&&X.Highcharts.error(16,!0),X.Highcharts=J(X))})("undefined"!==typeof window?window:this,function(X){function J(u,a,C,D){u.hasOwnProperty(a)||(u[a]=D.apply(null,C))}var a={};J(a,"Core/Globals.js",[],function(){var u="undefined"!==typeof X?X:"undefined"!==typeof window?window:
9
- {},a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="9.1.1";a.win=u;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 u=!1;if(!a.isMS){var n=Object.defineProperty({},"passive",{get:function(){u=!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",
11
- a.noop,n),a.win.removeEventListener("testPassive",a.noop,n))}return u}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={}})(a||(a={}));return a});J(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function u(c,e,g,l){var G=e?"Highcharts error":"Highcharts warning";32===c&&(c=G+": Deprecated member");var b=d(c),v=b?G+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof l){var q="";b&&(v+="?");E(l,function(c,e){q+="\n - "+e+": "+c;b&&(v+=encodeURI(e)+
12
- "="+encodeURI(c))});v+=q}r(a,"displayError",{chart:g,code:c,message:v,params:l},function(){if(e)throw Error(v);m.console&&-1===u.messages.indexOf(v)&&console.warn(v)});u.messages.push(v)}function C(c,e){var g={};E(c,function(l,m){if(y(c[m],!0)&&!c.nodeType&&e[m])l=C(c[m],e[m]),Object.keys(l).length&&(g[m]=l);else if(y(c[m])||c[m]!==e[m])g[m]=c[m]});return g}function D(c,e){return parseInt(c,e||10)}function z(c){return"string"===typeof c}function A(c){c=Object.prototype.toString.call(c);return"[object Array]"===
13
- c||"[object Array Iterator]"===c}function y(c,e){return!!c&&"object"===typeof c&&(!e||!A(c))}function p(c){return y(c)&&"number"===typeof c.nodeType}function h(c){var e=c&&c.constructor;return!(!y(c,!0)||p(c)||!e||!e.name||"Object"===e.name)}function d(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function f(c){return"undefined"!==typeof c&&null!==c}function b(c,e,g){var l;z(e)?f(g)?c.setAttribute(e,g):c&&c.getAttribute&&((l=c.getAttribute(e))||"class"!==e||(l=c.getAttribute(e+
14
- "Name"))):E(e,function(e,g){c.setAttribute(g,e)});return l}function k(c,e){var g;c||(c={});for(g in e)c[g]=e[g];return c}function B(){for(var c=arguments,e=c.length,g=0;g<e;g++){var l=c[g];if("undefined"!==typeof l&&null!==l)return l}}function t(c,e){a.isMS&&!a.svg&&e&&"undefined"!==typeof e.opacity&&(e.filter="alpha(opacity="+100*e.opacity+")");k(c.style,e)}function H(c,g,l,m,b){c=e.createElement(c);g&&k(c,g);b&&t(c,{padding:"0",border:"none",margin:"0"});l&&t(c,l);m&&m.appendChild(c);return c}function K(c,
15
- e){return parseFloat(c.toPrecision(e||14))}function w(c,e,g){var l=a.getStyle||w;if("width"===e)return e=Math.min(c.offsetWidth,c.scrollWidth),g=c.getBoundingClientRect&&c.getBoundingClientRect().width,g<e&&g>=e-1&&(e=Math.floor(g)),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));m.getComputedStyle||u(27,!0);if(c=m.getComputedStyle(c,void 0)){var b=
16
- c.getPropertyValue(e);B(g,"opacity"!==e)&&(b=D(b))}return b}function E(c,e,g){for(var l in c)Object.hasOwnProperty.call(c,l)&&e.call(g||c[l],c[l],l,c)}function x(c,e,g){function l(e,g){var l=c.removeEventListener||a.removeEventListenerPolyfill;l&&l.call(c,e,g,!1)}function m(g){var I;if(c.nodeName){if(e){var m={};m[e]=!0}else m=g;E(m,function(c,e){if(g[e])for(I=g[e].length;I--;)l(e,g[e][I].fn)})}}var b="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(b,"hcEvents")){var v=b.hcEvents;
17
- e?(b=v[e]||[],g?(v[e]=b.filter(function(c){return g!==c.fn}),l(e,g)):(m(v),v[e]=[])):(m(v),delete b.hcEvents)}}function r(c,g,l,m){l=l||{};if(e.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==a)){var b=e.createEvent("Events");b.initEvent(g,!0,!0);l=k(b,l);c.dispatchEvent?c.dispatchEvent(l):c.fireEvent(g,l)}else if(c.hcEvents){l.target||k(l,{preventDefault:function(){l.defaultPrevented=!0},target:c,type:g});b=[];for(var v=c,q=!1;v.hcEvents;)Object.hasOwnProperty.call(v,"hcEvents")&&v.hcEvents[g]&&
18
- (b.length&&(q=!0),b.unshift.apply(b,v.hcEvents[g])),v=Object.getPrototypeOf(v);q&&b.sort(function(c,e){return c.order-e.order});b.forEach(function(e){!1===e.fn.call(c,l)&&l.preventDefault()})}m&&!l.defaultPrevented&&m.call(c,l)}var q=a.charts,e=a.doc,m=a.win;"";(u||(u={})).messages=[];var c;Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var g=Array.prototype.find?function(c,e){return c.find(e)}:function(c,e){var g,l=c.length;for(g=0;g<l;g++)if(e(c[g],g))return c[g]};E({map:"map",
19
- each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,e){a[e]=function(g){var l;u(32,!1,void 0,(l={},l["Highcharts."+e]="use Array."+c,l));return Array.prototype[c].apply(g,[].slice.call(arguments,1))}});var l,v=function(){var c=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(l?"":c)+e++}}();m.jQuery&&(m.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (a[z(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),
20
- this):q[b(this[0],"data-highcharts-chart")]});return{addEvent:function(c,e,g,l){void 0===l&&(l={});var m="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(m,"hcEvents")||(m.hcEvents={});m=m.hcEvents;a.Point&&c instanceof a.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var b=c.addEventListener||a.addEventListenerPolyfill;b&&b.call(c,e,g,a.supportsPassiveEvents?{passive:void 0===l.passive?-1!==e.indexOf("touch"):l.passive,capture:!1}:!1);m[e]||(m[e]=[]);m[e].push({fn:g,
21
- order:"number"===typeof l.order?l.order:Infinity});m[e].sort(function(c,e){return c.order-e.order});return function(){x(c,e,g)}},arrayMax:function(c){for(var e=c.length,g=c[0];e--;)c[e]>g&&(g=c[e]);return g},arrayMin:function(c){for(var e=c.length,g=c[0];e--;)c[e]<g&&(g=c[e]);return g},attr:b,clamp:function(c,e,g){return c>e?c<g?c:g:e},cleanRecursively:C,clearTimeout:function(c){f(c)&&clearTimeout(c)},correctFloat:K,createElement:H,css:t,defined:f,destroyObjectProperties:function(c,e){E(c,function(g,
22
- l){g&&g!==e&&g.destroy&&g.destroy();delete c[l]})},discardElement:function(e){c||(c=H("div"));e&&c.appendChild(e);c.innerHTML=""},erase:function(c,e){for(var g=c.length;g--;)if(c[g]===e){c.splice(g,1);break}},error:u,extend:k,extendClass:function(c,e){var g=function(){};g.prototype=new c;k(g.prototype,e);return g},find:g,fireEvent:r,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c,e){for(c=c.split(".");c.length&&f(e);){var g=c.shift();if("undefined"===
23
- typeof g||"__proto__"===g)return;e=e[g];if(!f(e)||"function"===typeof e||"number"===typeof e.nodeType||e===m)return}return e},getStyle:w,inArray:function(c,e,g){u(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return e.indexOf(c,g)},isArray:A,isClass:h,isDOMElement:p,isFunction:function(c){return"function"===typeof c},isNumber:d,isObject:y,isString:z,keys:function(c){u(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,e=arguments,g={},l=function(c,
24
- e){"object"!==typeof c&&(c={});E(e,function(g,m){"__proto__"!==m&&"constructor"!==m&&(!y(g,!0)||h(g)||p(g)?c[m]=e[m]:c[m]=l(c[m]||{},g))});return c};!0===e[0]&&(g=e[1],e=Array.prototype.slice.call(e,2));var m=e.length;for(c=0;c<m;c++)g=l(g,e[c]);return g},normalizeTickInterval:function(c,e,g,l,m){var b=c;g=B(g,1);var v=c/g;e||(e=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===l&&(1===g?e=e.filter(function(c){return 0===c%1}):.1>=g&&(e=[1/g])));for(l=0;l<e.length&&!(b=e[l],m&&b*g>=c||!m&&v<=(e[l]+
25
- (e[l+1]||e[l]))/2);l++);return b=K(b*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:E,offset:function(c){var g=e.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(m.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(m.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:c.width,height:c.height}},pad:function(c,e,g){return Array((e||2)+1-String(c).replace("-","").length).join(g||"0")+c},pick:B,pInt:D,relativeLength:function(c,
26
- e,g){return/%$/.test(c)?e*parseFloat(c)/100+(g||0):parseFloat(c)},removeEvent:x,splat:function(c){return A(c)?c:[c]},stableSort:function(c,e){var g=c.length,l,m;for(m=0;m<g;m++)c[m].safeI=m;c.sort(function(c,g){l=e(c,g);return 0===l?c.safeI-g.safeI:l});for(m=0;m<g;m++)delete c[m].safeI},syncTimeout:function(c,e,g){if(0<e)return setTimeout(c,e,g);c.call(0,g);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:v,useSerialIds:function(c){return l=
27
- B(c,l)},wrap:function(c,e,g){var l=c[e];c[e]=function(){var c=Array.prototype.slice.call(arguments),e=arguments,m=this;m.proceed=function(){l.apply(m,arguments.length?arguments:e)};c.unshift(l);c=g.apply(this,c);m.proceed=null;return c}}}});J(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",neutralColor40:"#999999",
28
- neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});J(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,spacing:[10,10,
29
- 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}});J(a,"Core/Color/Color.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=n.isNumber,D=n.merge,z=n.pInt;n=function(){function n(u){this.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(h){return[z(h[1]),
30
- z(h[2]),z(h[3]),parseFloat(h[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(h){return[z(h[1]),z(h[2]),z(h[3]),1]}}];this.rgba=[];var p=a.Color;if(p&&p!==n)return new p(u);if(!(this instanceof n))return new n(u);this.init(u)}n.parse=function(a){return new n(a)};n.prototype.init=function(a){var p,h;if((this.input=a=n.names[a&&a.toLowerCase?a.toLowerCase():""]||a)&&a.stops)this.stops=a.stops.map(function(b){return new n(b[1])});else{if(a&&a.charAt&&
31
- "#"===a.charAt()){var d=a.length;a=parseInt(a.substr(1),16);7===d?p=[(a&16711680)>>16,(a&65280)>>8,a&255,1]:4===d&&(p=[(a&3840)>>4|(a&3840)>>8,(a&240)>>4|a&240,(a&15)<<4|a&15,1])}if(!p)for(h=this.parsers.length;h--&&!p;){var f=this.parsers[h];(d=f.regex.exec(a))&&(p=f.parse(d))}}this.rgba=p||[]};n.prototype.get=function(a){var p=this.input,h=this.rgba;if("undefined"!==typeof this.stops){var d=D(p);d.stops=[].concat(d.stops);this.stops.forEach(function(f,b){d.stops[b]=[d.stops[b][0],f.get(a)]})}else d=
32
- h&&u(h[0])?"rgb"===a||!a&&1===h[3]?"rgb("+h[0]+","+h[1]+","+h[2]+")":"a"===a?h[3]:"rgba("+h.join(",")+")":p;return d};n.prototype.brighten=function(a){var p,h=this.rgba;if(this.stops)this.stops.forEach(function(d){d.brighten(a)});else if(u(a)&&0!==a)for(p=0;3>p;p++)h[p]+=z(255*a),0>h[p]&&(h[p]=0),255<h[p]&&(h[p]=255);return this};n.prototype.setOpacity=function(a){this.rgba[3]=a;return this};n.prototype.tweenTo=function(a,p){var h=this.rgba,d=a.rgba;d.length&&h&&h.length?(a=1!==d[3]||1!==h[3],p=(a?
33
- "rgba(":"rgb(")+Math.round(d[0]+(h[0]-d[0])*(1-p))+","+Math.round(d[1]+(h[1]-d[1])*(1-p))+","+Math.round(d[2]+(h[2]-d[2])*(1-p))+(a?","+(d[3]+(h[3]-d[3])*(1-p)):"")+")"):p=a.input||"none";return p};n.names={white:"#ffffff",black:"#000000"};return n}();"";return n});J(a,"Core/Time.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=a.win,D=n.defined,z=n.error,A=n.extend,y=n.isObject,p=n.merge,h=n.objectEach,d=n.pad,f=n.pick,b=n.splat,k=n.timeUnits,B=a.isSafari&&Intl.DateTimeFormat.prototype.formatRange,
34
- t=a.isSafari&&!Intl.DateTimeFormat.prototype.formatRange;n=function(){function H(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=u.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)}H.prototype.get=function(b,f){if(this.variableTimezone||this.timezoneOffset){var k=f.getTime(),d=k-this.getTimezoneOffset(f);f.setTime(d);b=f["getUTC"+b]();f.setTime(k);return b}return this.useUTC?f["getUTC"+b]():f["get"+b]()};H.prototype.set=function(b,f,k){if(this.variableTimezone||
35
- this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(f)%36E5)return f["setUTC"+b](k);var d=this.getTimezoneOffset(f);d=f.getTime()-d;f.setTime(d);f["setUTC"+b](k);b=this.getTimezoneOffset(f);d=f.getTime()+b;return f.setTime(d)}return this.useUTC||B&&"FullYear"===b?f["setUTC"+b](k):f["set"+b](k)};H.prototype.update=function(b){var k=f(b&&b.useUTC,!0);this.options=b=p(!0,this.options||{},b);this.Date=b.Date||u.Date||Date;this.timezoneOffset=(this.useUTC=
36
- k)&&b.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=k&&!(!b.getTimezoneOffset&&!b.timezone)};H.prototype.makeTime=function(b,k,d,h,r,q){if(this.useUTC){var e=this.Date.UTC.apply(0,arguments);var m=this.getTimezoneOffset(e);e+=m;var c=this.getTimezoneOffset(e);m!==c?e+=c-m:m-36E5!==this.getTimezoneOffset(e-36E5)||t||(e-=36E5)}else e=(new this.Date(b,k,f(d,1),f(h,0),f(r,0),f(q,0))).getTime();return e};H.prototype.timezoneOffsetFunction=function(){var b=this,
37
- f=this.options,k=f.moment||u.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(f.timezone){if(k)return function(b){return 6E4*-k.tz(b,f.timezone).utcOffset()};z(25)}return this.useUTC&&f.getTimezoneOffset?function(b){return 6E4*f.getTimezoneOffset(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};H.prototype.dateFormat=function(b,k,B){if(!D(k)||isNaN(k))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";b=f(b,"%Y-%m-%d %H:%M:%S");
38
- var w=this,r=new this.Date(k),q=this.get("Hours",r),e=this.get("Day",r),m=this.get("Date",r),c=this.get("Month",r),g=this.get("FullYear",r),l=a.defaultOptions.lang,v=l&&l.weekdays,G=l&&l.shortWeekdays;r=A({a:G?G[e]:v[e].substr(0,3),A:v[e],d:d(m),e:d(m,2," "),w:e,b:l.shortMonths[c],B:l.months[c],m:d(c+1),o:c+1,y:g.toString().substr(2,2),Y:g,H:d(q),k:q,I:d(q%12||12),l:q%12||12,M:d(this.get("Minutes",r)),p:12>q?"AM":"PM",P:12>q?"am":"pm",S:d(r.getSeconds()),L:d(Math.floor(k%1E3),3)},a.dateFormats);h(r,
39
- function(c,e){for(;-1!==b.indexOf("%"+e);)b=b.replace("%"+e,"function"===typeof c?c.call(w,k):c)});return B?b.substr(0,1).toUpperCase()+b.substr(1):b};H.prototype.resolveDTLFormat=function(f){return y(f,!0)?f:(f=b(f),{main:f[0],from:f[1],to:f[2]})};H.prototype.getTimeTicks=function(b,d,h,x){var r=this,q=[],e={},m=new r.Date(d),c=b.unitRange,g=b.count||1,l;x=f(x,1);if(D(d)){r.set("Milliseconds",m,c>=k.second?0:g*Math.floor(r.get("Milliseconds",m)/g));c>=k.second&&r.set("Seconds",m,c>=k.minute?0:g*
40
- Math.floor(r.get("Seconds",m)/g));c>=k.minute&&r.set("Minutes",m,c>=k.hour?0:g*Math.floor(r.get("Minutes",m)/g));c>=k.hour&&r.set("Hours",m,c>=k.day?0:g*Math.floor(r.get("Hours",m)/g));c>=k.day&&r.set("Date",m,c>=k.month?1:Math.max(1,g*Math.floor(r.get("Date",m)/g)));if(c>=k.month){r.set("Month",m,c>=k.year?0:g*Math.floor(r.get("Month",m)/g));var v=r.get("FullYear",m)}c>=k.year&&r.set("FullYear",m,v-v%g);c===k.week&&(v=r.get("Day",m),r.set("Date",m,r.get("Date",m)-v+x+(v<x?-7:0)));v=r.get("FullYear",
41
- m);x=r.get("Month",m);var w=r.get("Date",m),B=r.get("Hours",m);d=m.getTime();!r.variableTimezone&&r.useUTC||!D(h)||(l=h-d>4*k.month||r.getTimezoneOffset(d)!==r.getTimezoneOffset(h));d=m.getTime();for(m=1;d<h;)q.push(d),d=c===k.year?r.makeTime(v+m*g,0):c===k.month?r.makeTime(v,x+m*g):!l||c!==k.day&&c!==k.week?l&&c===k.hour&&1<g?r.makeTime(v,x,w,B+m*g):d+c*g:r.makeTime(v,x,w+m*g*(c===k.day?1:7)),m++;q.push(d);c<=k.hour&&1E4>q.length&&q.forEach(function(c){0===c%18E5&&"000000000"===r.dateFormat("%H%M%S%L",
42
- c)&&(e[c]="day")})}q.info=A(b,{higherRanks:e,totalRange:c*g});return q};return H}();"";return n});J(a,"Core/DefaultOptions.js",[a["Core/Globals.js"],a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Color/Palette.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=a.isTouchDevice,p=a.svg;C=C.parse;var h=A.merge;"";var d={colors:D.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),
43
- shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:n,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
8
+ 'use strict';(function(Y,K){"object"===typeof module&&module.exports?(K["default"]=K,module.exports=Y.document?K(Y):K):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return K(Y)}):(Y.Highcharts&&Y.Highcharts.error(16,!0),Y.Highcharts=K(Y))})("undefined"!==typeof window?window:this,function(Y){function K(v,a,C,D){v.hasOwnProperty(a)||(v[a]=D.apply(null,C))}var a={};K(a,"Core/Globals.js",[],function(){var v="undefined"!==typeof Y?Y:"undefined"!==typeof window?window:
9
+ {},a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="9.1.2";a.win=v;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 v=!1;if(!a.isMS){var q=Object.defineProperty({},"passive",{get:function(){v=!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",
11
+ a.noop,q),a.win.removeEventListener("testPassive",a.noop,q))}return v}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));return a});K(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function v(b,d,g,m){var J=d?"Highcharts error":"Highcharts warning";32===b&&(b=J+": Deprecated member");var c=f(b),x=c?J+" #"+b+": www.highcharts.com/errors/"+b+"/":b.toString();if("undefined"!==typeof m){var p="";c&&(x+="?");F(m,function(b,d){p+="\n - "+d+": "+b;c&&
12
+ (x+=encodeURI(d)+"="+encodeURI(b))});x+=p}r(a,"displayError",{chart:g,code:b,message:x,params:m},function(){if(d)throw Error(x);l.console&&-1===v.messages.indexOf(x)&&console.warn(x)});v.messages.push(x)}function C(b,d){var g={};F(b,function(m,l){if(w(b[l],!0)&&!b.nodeType&&d[l])m=C(b[l],d[l]),Object.keys(m).length&&(g[l]=m);else if(w(b[l])||b[l]!==d[l])g[l]=b[l]});return g}function D(b,d){return parseInt(b,d||10)}function A(b){return"string"===typeof b}function B(b){b=Object.prototype.toString.call(b);
13
+ return"[object Array]"===b||"[object Array Iterator]"===b}function w(b,d){return!!b&&"object"===typeof b&&(!d||!B(b))}function n(b){return w(b)&&"number"===typeof b.nodeType}function k(b){var d=b&&b.constructor;return!(!w(b,!0)||n(b)||!d||!d.name||"Object"===d.name)}function f(b){return"number"===typeof b&&!isNaN(b)&&Infinity>b&&-Infinity<b}function e(b){return"undefined"!==typeof b&&null!==b}function c(b,d,g){var m;A(d)?e(g)?b.setAttribute(d,g):b&&b.getAttribute&&((m=b.getAttribute(d))||"class"!==
14
+ d||(m=b.getAttribute(d+"Name"))):F(d,function(d,g){b.setAttribute(g,d)});return m}function h(b,d){var g;b||(b={});for(g in d)b[g]=d[g];return b}function t(){for(var b=arguments,d=b.length,g=0;g<d;g++){var m=b[g];if("undefined"!==typeof m&&null!==m)return m}}function z(b,d){a.isMS&&!a.svg&&d&&"undefined"!==typeof d.opacity&&(d.filter="alpha(opacity="+100*d.opacity+")");h(b.style,d)}function G(b,g,m,l,c){b=d.createElement(b);g&&h(b,g);c&&z(b,{padding:"0",border:"none",margin:"0"});m&&z(b,m);l&&l.appendChild(b);
15
+ return b}function H(b,d){return parseFloat(b.toPrecision(d||14))}function u(b,d,g){var m=a.getStyle||u;if("width"===d)return d=Math.min(b.offsetWidth,b.scrollWidth),g=b.getBoundingClientRect&&b.getBoundingClientRect().width,g<d&&g>=d-1&&(d=Math.floor(g)),Math.max(0,d-(m(b,"padding-left",!0)||0)-(m(b,"padding-right",!0)||0));if("height"===d)return Math.max(0,Math.min(b.offsetHeight,b.scrollHeight)-(m(b,"padding-top",!0)||0)-(m(b,"padding-bottom",!0)||0));l.getComputedStyle||v(27,!0);if(b=l.getComputedStyle(b,
16
+ void 0)){var c=b.getPropertyValue(d);t(g,"opacity"!==d)&&(c=D(c))}return c}function F(b,d,g){for(var m in b)Object.hasOwnProperty.call(b,m)&&d.call(g||b[m],b[m],m,b)}function y(b,d,g){function m(d,g){var m=b.removeEventListener||a.removeEventListenerPolyfill;m&&m.call(b,d,g,!1)}function l(g){var I;if(b.nodeName){if(d){var l={};l[d]=!0}else l=g;F(l,function(b,d){if(g[d])for(I=g[d].length;I--;)m(d,g[d][I].fn)})}}var c="function"===typeof b&&b.prototype||b;if(Object.hasOwnProperty.call(c,"hcEvents")){var x=
17
+ c.hcEvents;d?(c=x[d]||[],g?(x[d]=c.filter(function(b){return g!==b.fn}),m(d,g)):(l(x),x[d]=[])):(l(x),delete c.hcEvents)}}function r(b,g,m,l){m=m||{};if(d.createEvent&&(b.dispatchEvent||b.fireEvent&&b!==a)){var c=d.createEvent("Events");c.initEvent(g,!0,!0);m=h(c,m);b.dispatchEvent?b.dispatchEvent(m):b.fireEvent(g,m)}else if(b.hcEvents){m.target||h(m,{preventDefault:function(){m.defaultPrevented=!0},target:b,type:g});c=[];for(var x=b,p=!1;x.hcEvents;)Object.hasOwnProperty.call(x,"hcEvents")&&x.hcEvents[g]&&
18
+ (c.length&&(p=!0),c.unshift.apply(c,x.hcEvents[g])),x=Object.getPrototypeOf(x);p&&c.sort(function(b,d){return b.order-d.order});c.forEach(function(d){!1===d.fn.call(b,m)&&m.preventDefault()})}l&&!m.defaultPrevented&&l.call(b,m)}var p=a.charts,d=a.doc,l=a.win;"";(v||(v={})).messages=[];var b;Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};var g=Array.prototype.find?function(b,d){return b.find(d)}:function(b,d){var g,m=b.length;for(g=0;g<m;g++)if(d(b[g],g))return b[g]};F({map:"map",
19
+ each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(b,d){a[d]=function(g){var m;v(32,!1,void 0,(m={},m["Highcharts."+d]="use Array."+b,m));return Array.prototype[b].apply(g,[].slice.call(arguments,1))}});var m,x=function(){var b=Math.random().toString(36).substring(2,9)+"-",d=0;return function(){return"highcharts-"+(m?"":b)+d++}}();l.jQuery&&(l.jQuery.fn.highcharts=function(){var b=[].slice.call(arguments);if(this[0])return b[0]?(new (a[A(b[0])?b.shift():"Chart"])(this[0],b[0],b[1]),
20
+ this):p[c(this[0],"data-highcharts-chart")]});return{addEvent:function(b,d,g,m){void 0===m&&(m={});var l="function"===typeof b&&b.prototype||b;Object.hasOwnProperty.call(l,"hcEvents")||(l.hcEvents={});l=l.hcEvents;a.Point&&b instanceof a.Point&&b.series&&b.series.chart&&(b.series.chart.runTrackerClick=!0);var c=b.addEventListener||a.addEventListenerPolyfill;c&&c.call(b,d,g,a.supportsPassiveEvents?{passive:void 0===m.passive?-1!==d.indexOf("touch"):m.passive,capture:!1}:!1);l[d]||(l[d]=[]);l[d].push({fn:g,
21
+ order:"number"===typeof m.order?m.order:Infinity});l[d].sort(function(b,d){return b.order-d.order});return function(){y(b,d,g)}},arrayMax:function(b){for(var d=b.length,g=b[0];d--;)b[d]>g&&(g=b[d]);return g},arrayMin:function(b){for(var d=b.length,g=b[0];d--;)b[d]<g&&(g=b[d]);return g},attr:c,clamp:function(b,d,g){return b>d?b<g?b:g:d},cleanRecursively:C,clearTimeout:function(b){e(b)&&clearTimeout(b)},correctFloat:H,createElement:G,css:z,defined:e,destroyObjectProperties:function(b,d){F(b,function(g,
22
+ m){g&&g!==d&&g.destroy&&g.destroy();delete b[m]})},discardElement:function(d){b||(b=G("div"));d&&b.appendChild(d);b.innerHTML=""},erase:function(b,d){for(var g=b.length;g--;)if(b[g]===d){b.splice(g,1);break}},error:v,extend:h,extendClass:function(b,d){var g=function(){};g.prototype=new b;h(g.prototype,d);return g},find:g,fireEvent:r,getMagnitude:function(b){return Math.pow(10,Math.floor(Math.log(b)/Math.LN10))},getNestedProperty:function(b,d){for(b=b.split(".");b.length&&e(d);){var g=b.shift();if("undefined"===
23
+ typeof g||"__proto__"===g)return;d=d[g];if(!e(d)||"function"===typeof d||"number"===typeof d.nodeType||d===l)return}return d},getStyle:u,inArray:function(b,d,g){v(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d.indexOf(b,g)},isArray:B,isClass:k,isDOMElement:n,isFunction:function(b){return"function"===typeof b},isNumber:f,isObject:w,isString:A,keys:function(b){v(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(b)},merge:function(){var b,d=arguments,g={},m=function(b,
24
+ d){"object"!==typeof b&&(b={});F(d,function(g,l){"__proto__"!==l&&"constructor"!==l&&(!w(g,!0)||k(g)||n(g)?b[l]=d[l]:b[l]=m(b[l]||{},g))});return b};!0===d[0]&&(g=d[1],d=Array.prototype.slice.call(d,2));var l=d.length;for(b=0;b<l;b++)g=m(g,d[b]);return g},normalizeTickInterval:function(b,d,g,m,l){var c=b;g=t(g,1);var x=b/g;d||(d=l?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===m&&(1===g?d=d.filter(function(b){return 0===b%1}):.1>=g&&(d=[1/g])));for(m=0;m<d.length&&!(c=d[m],l&&c*g>=b||!l&&x<=(d[m]+
25
+ (d[m+1]||d[m]))/2);m++);return c=H(c*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:F,offset:function(b){var g=d.documentElement;b=b.parentElement||b.parentNode?b.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b.top+(l.pageYOffset||g.scrollTop)-(g.clientTop||0),left:b.left+(l.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:b.width,height:b.height}},pad:function(b,d,g){return Array((d||2)+1-String(b).replace("-","").length).join(g||"0")+b},pick:t,pInt:D,relativeLength:function(b,
26
+ d,g){return/%$/.test(b)?d*parseFloat(b)/100+(g||0):parseFloat(b)},removeEvent:y,splat:function(b){return B(b)?b:[b]},stableSort:function(b,d){var g=b.length,m,l;for(l=0;l<g;l++)b[l].safeI=l;b.sort(function(b,g){m=d(b,g);return 0===m?b.safeI-g.safeI:m});for(l=0;l<g;l++)delete b[l].safeI},syncTimeout:function(b,d,g){if(0<d)return setTimeout(b,d,g);b.call(0,g);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:x,useSerialIds:function(b){return m=
27
+ t(b,m)},wrap:function(b,d,g){var m=b[d];b[d]=function(){var b=Array.prototype.slice.call(arguments),d=arguments,l=this;l.proceed=function(){m.apply(l,arguments.length?arguments:d)};b.unshift(m);b=g.apply(this,b);l.proceed=null;return b}}}});K(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",neutralColor40:"#999999",
28
+ neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});K(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,spacing:[10,10,
29
+ 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}});K(a,"Core/Color/Color.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q){var v=q.isNumber,D=q.merge,A=q.pInt;q=function(){function q(w){this.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(k){return[A(k[1]),
30
+ A(k[2]),A(k[3]),parseFloat(k[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(k){return[A(k[1]),A(k[2]),A(k[3]),1]}}];this.rgba=[];var n=a.Color;if(n&&n!==q)return new n(w);if(!(this instanceof q))return new q(w);this.init(w)}q.parse=function(a){return new q(a)};q.prototype.init=function(a){var n,k;if((this.input=a=q.names[a&&a.toLowerCase?a.toLowerCase():""]||a)&&a.stops)this.stops=a.stops.map(function(c){return new q(c[1])});else{if(a&&a.charAt&&
31
+ "#"===a.charAt()){var f=a.length;a=parseInt(a.substr(1),16);7===f?n=[(a&16711680)>>16,(a&65280)>>8,a&255,1]:4===f&&(n=[(a&3840)>>4|(a&3840)>>8,(a&240)>>4|a&240,(a&15)<<4|a&15,1])}if(!n)for(k=this.parsers.length;k--&&!n;){var e=this.parsers[k];(f=e.regex.exec(a))&&(n=e.parse(f))}}this.rgba=n||[]};q.prototype.get=function(a){var n=this.input,k=this.rgba;if("undefined"!==typeof this.stops){var f=D(n);f.stops=[].concat(f.stops);this.stops.forEach(function(e,c){f.stops[c]=[f.stops[c][0],e.get(a)]})}else f=
32
+ k&&v(k[0])?"rgb"===a||!a&&1===k[3]?"rgb("+k[0]+","+k[1]+","+k[2]+")":"a"===a?k[3]:"rgba("+k.join(",")+")":n;return f};q.prototype.brighten=function(a){var n,k=this.rgba;if(this.stops)this.stops.forEach(function(f){f.brighten(a)});else if(v(a)&&0!==a)for(n=0;3>n;n++)k[n]+=A(255*a),0>k[n]&&(k[n]=0),255<k[n]&&(k[n]=255);return this};q.prototype.setOpacity=function(a){this.rgba[3]=a;return this};q.prototype.tweenTo=function(a,n){var k=this.rgba,f=a.rgba;f.length&&k&&k.length?(a=1!==f[3]||1!==k[3],n=(a?
33
+ "rgba(":"rgb(")+Math.round(f[0]+(k[0]-f[0])*(1-n))+","+Math.round(f[1]+(k[1]-f[1])*(1-n))+","+Math.round(f[2]+(k[2]-f[2])*(1-n))+(a?","+(f[3]+(k[3]-f[3])*(1-n)):"")+")"):n=a.input||"none";return n};q.names={white:"#ffffff",black:"#000000"};return q}();"";return q});K(a,"Core/Time.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q){var v=a.win,D=q.defined,A=q.error,B=q.extend,w=q.isObject,n=q.merge,k=q.objectEach,f=q.pad,e=q.pick,c=q.splat,h=q.timeUnits,t=a.isSafari&&Intl&&Intl.DateTimeFormat.prototype.formatRange,
34
+ z=a.isSafari&&Intl&&!Intl.DateTimeFormat.prototype.formatRange;q=function(){function G(c){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=v.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(c)}G.prototype.get=function(c,e){if(this.variableTimezone||this.timezoneOffset){var h=e.getTime(),f=h-this.getTimezoneOffset(e);e.setTime(f);c=e["getUTC"+c]();e.setTime(h);return c}return this.useUTC?e["getUTC"+c]():e["get"+c]()};G.prototype.set=function(c,e,h){if(this.variableTimezone||
35
+ this.timezoneOffset){if("Milliseconds"===c||"Seconds"===c||"Minutes"===c&&0===this.getTimezoneOffset(e)%36E5)return e["setUTC"+c](h);var f=this.getTimezoneOffset(e);f=e.getTime()-f;e.setTime(f);e["setUTC"+c](h);c=this.getTimezoneOffset(e);f=e.getTime()+c;return e.setTime(f)}return this.useUTC||t&&"FullYear"===c?e["setUTC"+c](h):e["set"+c](h)};G.prototype.update=function(c){var h=e(c&&c.useUTC,!0);this.options=c=n(!0,this.options||{},c);this.Date=c.Date||v.Date||Date;this.timezoneOffset=(this.useUTC=
36
+ h)&&c.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=h&&!(!c.getTimezoneOffset&&!c.timezone)};G.prototype.makeTime=function(c,h,f,y,r,p){if(this.useUTC){var d=this.Date.UTC.apply(0,arguments);var l=this.getTimezoneOffset(d);d+=l;var b=this.getTimezoneOffset(d);l!==b?d+=b-l:l-36E5!==this.getTimezoneOffset(d-36E5)||z||(d-=36E5)}else d=(new this.Date(c,h,e(f,1),e(y,0),e(r,0),e(p,0))).getTime();return d};G.prototype.timezoneOffsetFunction=function(){var c=this,
37
+ e=this.options,h=e.moment||v.moment;if(!this.useUTC)return function(c){return 6E4*(new Date(c.toString())).getTimezoneOffset()};if(e.timezone){if(h)return function(c){return 6E4*-h.tz(c,e.timezone).utcOffset()};A(25)}return this.useUTC&&e.getTimezoneOffset?function(c){return 6E4*e.getTimezoneOffset(c.valueOf())}:function(){return 6E4*(c.timezoneOffset||0)}};G.prototype.dateFormat=function(c,h,t){if(!D(h)||isNaN(h))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";c=e(c,"%Y-%m-%d %H:%M:%S");
38
+ var u=this,r=new this.Date(h),p=this.get("Hours",r),d=this.get("Day",r),l=this.get("Date",r),b=this.get("Month",r),g=this.get("FullYear",r),m=a.defaultOptions.lang,x=m&&m.weekdays,J=m&&m.shortWeekdays;r=B({a:J?J[d]:x[d].substr(0,3),A:x[d],d:f(l),e:f(l,2," "),w:d,b:m.shortMonths[b],B:m.months[b],m:f(b+1),o:b+1,y:g.toString().substr(2,2),Y:g,H:f(p),k:p,I:f(p%12||12),l:p%12||12,M:f(this.get("Minutes",r)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:f(r.getSeconds()),L:f(Math.floor(h%1E3),3)},a.dateFormats);k(r,
39
+ function(b,d){for(;-1!==c.indexOf("%"+d);)c=c.replace("%"+d,"function"===typeof b?b.call(u,h):b)});return t?c.substr(0,1).toUpperCase()+c.substr(1):c};G.prototype.resolveDTLFormat=function(e){return w(e,!0)?e:(e=c(e),{main:e[0],from:e[1],to:e[2]})};G.prototype.getTimeTicks=function(c,f,k,y){var r=this,p=[],d={},l=new r.Date(f),b=c.unitRange,g=c.count||1,m;y=e(y,1);if(D(f)){r.set("Milliseconds",l,b>=h.second?0:g*Math.floor(r.get("Milliseconds",l)/g));b>=h.second&&r.set("Seconds",l,b>=h.minute?0:g*
40
+ Math.floor(r.get("Seconds",l)/g));b>=h.minute&&r.set("Minutes",l,b>=h.hour?0:g*Math.floor(r.get("Minutes",l)/g));b>=h.hour&&r.set("Hours",l,b>=h.day?0:g*Math.floor(r.get("Hours",l)/g));b>=h.day&&r.set("Date",l,b>=h.month?1:Math.max(1,g*Math.floor(r.get("Date",l)/g)));if(b>=h.month){r.set("Month",l,b>=h.year?0:g*Math.floor(r.get("Month",l)/g));var x=r.get("FullYear",l)}b>=h.year&&r.set("FullYear",l,x-x%g);b===h.week&&(x=r.get("Day",l),r.set("Date",l,r.get("Date",l)-x+y+(x<y?-7:0)));x=r.get("FullYear",
41
+ l);y=r.get("Month",l);var u=r.get("Date",l),t=r.get("Hours",l);f=l.getTime();!r.variableTimezone&&r.useUTC||!D(k)||(m=k-f>4*h.month||r.getTimezoneOffset(f)!==r.getTimezoneOffset(k));f=l.getTime();for(l=1;f<k;)p.push(f),f=b===h.year?r.makeTime(x+l*g,0):b===h.month?r.makeTime(x,y+l*g):!m||b!==h.day&&b!==h.week?m&&b===h.hour&&1<g?r.makeTime(x,y,u,t+l*g):f+b*g:r.makeTime(x,y,u+l*g*(b===h.day?1:7)),l++;p.push(f);b<=h.hour&&1E4>p.length&&p.forEach(function(b){0===b%18E5&&"000000000"===r.dateFormat("%H%M%S%L",
42
+ b)&&(d[b]="day")})}p.info=B(c,{higherRanks:d,totalRange:b*g});return p};return G}();"";return q});K(a,"Core/DefaultOptions.js",[a["Core/Globals.js"],a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Color/Palette.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B){var v=a.isTouchDevice,n=a.svg;C=C.parse;var k=B.merge;"";var f={colors:D.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),
43
+ shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:q,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
44
44
  caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:D.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:D.neutralColor40,borderRadius:0,navigation:{activeColor:D.highlightColor100,inactiveColor:D.neutralColor20},itemStyle:{color:D.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},
45
- itemHoverStyle:{color:D.neutralColor100},itemHiddenStyle:{color:D.neutralColor20},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:D.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:p,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
46
- second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:u?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:C(D.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:D.neutralColor80,cursor:"default",fontSize:"12px",
47
- whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:D.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};d.chart.styledMode=!1;"";var f=new z(h(d.global,d.time));return{defaultOptions:d,defaultTime:f,getOptions:function(){return d},setOptions:function(b){h(!0,d,b);if(b.time||b.global)a.time?a.time.update(h(d.global,d.time,b.global,b.time)):a.time=f;return d}}});J(a,"Core/Animation/Fx.js",
48
- [a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){var u=a.parse,z=n.win,A=C.isNumber,y=C.objectEach;return function(){function a(h,d,f){this.pos=NaN;this.options=d;this.elem=h;this.prop=f}a.prototype.dSetter=function(){var h=this.paths,d=h&&h[0];h=h&&h[1];var f=this.now||0,b=[];if(1!==f&&d&&h)if(d.length===h.length&&1>f)for(var k=0;k<h.length;k++){for(var a=d[k],t=h[k],H=[],K=0;K<t.length;K++){var w=a[K],E=t[K];A(w)&&A(E)&&("A"!==t[0]||4!==K&&5!==K)?H[K]=w+f*(E-
49
- w):H[K]=E}b.push(H)}else b=h;else b=this.toD||[];this.elem.attr("d",b,void 0,!0)};a.prototype.update=function(){var h=this.elem,d=this.prop,f=this.now,b=this.options.step;if(this[d+"Setter"])this[d+"Setter"]();else h.attr?h.element&&h.attr(d,f,null,!0):h.style[d]=f+this.unit;b&&b.call(h,f,this)};a.prototype.run=function(h,d,f){var b=this,k=b.options,B=function(f){return B.stopped?!1:b.step(f)},t=z.requestAnimationFrame||function(b){setTimeout(b,13)},H=function(){for(var b=0;b<a.timers.length;b++)a.timers[b]()||
50
- a.timers.splice(b--,1);a.timers.length&&t(H)};h!==d||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=h,this.end=d,this.unit=f,this.now=this.start,this.pos=0,B.elem=this.elem,B.prop=this.prop,B()&&1===a.timers.push(B)&&t(H)):(delete k.curAnim[this.prop],k.complete&&0===Object.keys(k.curAnim).length&&k.complete.call(this.elem))};a.prototype.step=function(h){var d=+new Date,f=this.options,b=this.elem,k=f.complete,a=f.duration,t=f.curAnim;if(b.attr&&!b.element)h=!1;else if(h||
51
- d>=a+this.startTime){this.now=this.end;this.pos=1;this.update();var H=t[this.prop]=!0;y(t,function(b){!0!==b&&(H=!1)});H&&k&&k.call(b);h=!1}else this.pos=f.easing((d-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),h=!0;return h};a.prototype.initPath=function(h,d,f){function b(b,q){for(;b.length<x;){var e=b[0],m=q[x-b.length];m&&"M"===e[0]&&(b[0]="C"===m[0]?["C",e[1],e[2],e[1],e[2],e[1],e[2]]:["L",e[1],e[2]]);b.unshift(e);H&&(e=b.pop(),b.push(b[b.length-1],e))}}
52
- function k(b,q){for(;b.length<x;)if(q=b[Math.floor(b.length/K)-1].slice(),"C"===q[0]&&(q[1]=q[5],q[2]=q[6]),H){var e=b[Math.floor(b.length/K)].slice();b.splice(b.length/2,0,q,e)}else b.push(q)}var a=h.startX,t=h.endX;f=f.slice();var H=h.isArea,K=H?2:1;d=d&&d.slice();if(!d)return[f,f];if(a&&t&&t.length){for(h=0;h<a.length;h++)if(a[h]===t[0]){var w=h;break}else if(a[0]===t[t.length-a.length+h]){w=h;var E=!0;break}else if(a[a.length-1]===t[t.length-a.length+h]){w=a.length-h;break}"undefined"===typeof w&&
53
- (d=[])}if(d.length&&A(w)){var x=f.length+w*K;E?(b(d,f),k(f,d)):(b(f,d),k(d,f))}return[d,f]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,u(this.start).tweenTo(u(this.end),this.pos),null,!0)};a.timers=[];return a}()});J(a,"Core/Animation/AnimationUtilities.js",[a["Core/Animation/Fx.js"],a["Core/Utilities.js"]],function(a,n){function u(b){return h(b)?d({duration:500,defer:0},b):{duration:b?500:0,defer:0}}
54
- function D(b,f){for(var d=a.timers.length;d--;)a.timers[d].elem!==b||f&&f!==a.timers[d].prop||(a.timers[d].stopped=!0)}var z=n.defined,A=n.getStyle,y=n.isArray,p=n.isNumber,h=n.isObject,d=n.merge,f=n.objectEach,b=n.pick;return{animate:function(b,B,t){var k,K="",w,E;if(!h(t)){var x=arguments;t={duration:x[2],easing:x[3],complete:x[4]}}p(t.duration)||(t.duration=400);t.easing="function"===typeof t.easing?t.easing:Math[t.easing]||Math.easeInOutSine;t.curAnim=d(B);f(B,function(f,q){D(b,q);E=new a(b,t,
55
- q);w=void 0;"d"===q&&y(B.d)?(E.paths=E.initPath(b,b.pathArray,B.d),E.toD=B.d,k=0,w=1):b.attr?k=b.attr(q):(k=parseFloat(A(b,q))||0,"opacity"!==q&&(K="px"));w||(w=f);"string"===typeof w&&w.match("px")&&(w=w.replace(/px/g,""));E.run(k,w,K)})},animObject:u,getDeferredAnimation:function(b,f,d){var k=u(f),a=0,h=0;(d?[d]:b.series).forEach(function(b){b=u(b.options.animation);a=f&&z(f.defer)?k.defer:Math.max(a,b.duration+b.defer);h=Math.min(k.duration,b.duration)});b.renderer.forExport&&(a=0);return{defer:Math.max(0,
56
- a-h),duration:Math.min(a,h)}},setAnimation:function(f,d){d.renderer.globalAnimation=b(f,d.options.chart.animation,!0)},stop:D}});J(a,"Core/Renderer/HTML/AST.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=a.SVG_NS,D=n.attr,z=n.createElement,A=n.discardElement,y=n.error,p=n.isString,h=n.objectEach,d=n.splat;try{var f=!!(new DOMParser).parseFromString("","text/html")}catch(b){f=!1}n=function(){function b(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}b.filterUserAttributes=
57
- function(f){h(f,function(d,k){var a=!0;-1===b.allowedAttributes.indexOf(k)&&(a=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(k)&&(a=p(d)&&b.allowedReferences.some(function(b){return 0===d.indexOf(b)}));a||(y("Highcharts warning: Invalid attribute '"+k+"' in config"),delete f[k])});return f};b.setElementHTML=function(f,d){f.innerHTML="";d&&(new b(d)).addToDOM(f)};b.prototype.addToDOM=function(f){function k(f,B){var t;d(f).forEach(function(f){var d=f.tagName,w=f.textContent?a.doc.createTextNode(f.textContent):
58
- void 0;if(d)if("#text"===d)var r=w;else if(-1!==b.allowedTags.indexOf(d)){d=a.doc.createElementNS("svg"===d?u:B.namespaceURI||u,d);var q=f.attributes||{};h(f,function(e,b){"tagName"!==b&&"attributes"!==b&&"children"!==b&&"textContent"!==b&&(q[b]=e)});D(d,b.filterUserAttributes(q));w&&d.appendChild(w);k(f.children||[],d);r=d}else y("Highcharts warning: Invalid tagName '"+d+"' in config");r&&B.appendChild(r);t=r});return t}return k(this.nodes,f)};b.prototype.parseMarkup=function(b){var d=[];if(f)b=
59
- (new DOMParser).parseFromString(b,"text/html");else{var k=z("div");k.innerHTML=b;b={body:k}}var a=function(b,f){var d=b.nodeName.toLowerCase(),k={tagName:d};if("#text"===d){d=b.textContent||"";if(/^[\s]*$/.test(d))return;k.textContent=d}if(d=b.attributes){var r={};[].forEach.call(d,function(e){r[e.name]=e.value});k.attributes=r}if(b.childNodes.length){var q=[];[].forEach.call(b.childNodes,function(e){a(e,q)});q.length&&(k.children=q)}f.push(k)};[].forEach.call(b.body.childNodes,function(b){return a(b,
60
- d)});k&&A(k);return d};b.allowedTags="a b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");b.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 x2 y y1 y2 zIndex".split(" ");
61
- b.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");return b}();"";return n});J(a,"Core/FormatUtilities.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n){function u(d,f,b,k){d=+d||0;f=+f;var a=D.lang,t=(d.toString().split(".")[1]||"").split("e")[0].length,H=d.toString().split("e"),K=f;if(-1===f)f=Math.min(t,20);else if(!y(f))f=2;else if(f&&H[1]&&0>H[1]){var w=f+ +H[1];0<=w?(H[0]=(+H[0]).toExponential(w).split("e")[0],f=w):(H[0]=H[0].split(".")[0]||0,d=20>f?(H[0]*
62
- Math.pow(10,H[1])).toFixed(f):0,H[1]=0)}w=(Math.abs(H[1]?H[0]:d)+Math.pow(10,-Math.max(f,t)-1)).toFixed(f);t=String(h(w));var E=3<t.length?t.length%3:0;b=p(b,a.decimalPoint);k=p(k,a.thousandsSep);d=(0>d?"-":"")+(E?t.substr(0,E)+k:"");d=0>+H[1]&&!K?"0":d+t.substr(E).replace(/(\d{3})(?=\d)/g,"$1"+k);f&&(d+=b+w.slice(-f));H[1]&&0!==+d&&(d+="e"+H[1]);return d}var D=a.defaultOptions,z=a.defaultTime,A=n.getNestedProperty,y=n.isNumber,p=n.pick,h=n.pInt;return{dateFormat:function(d,f,b){return z.dateFormat(d,
63
- f,b)},format:function(d,f,b){var k="{",a=!1,h=/f$/,p=/\.([0-9])/,K=D.lang,w=b&&b.time||z;b=b&&b.numberFormatter||u;for(var E=[];d;){var x=d.indexOf(k);if(-1===x)break;var r=d.slice(0,x);if(a){r=r.split(":");k=A(r.shift()||"",f);if(r.length&&"number"===typeof k)if(r=r.join(":"),h.test(r)){var q=parseInt((r.match(p)||["","-1"])[1],10);null!==k&&(k=b(k,q,K.decimalPoint,-1<r.indexOf(",")?K.thousandsSep:""))}else k=w.dateFormat(r,k);E.push(k)}else E.push(r);d=d.slice(x+1);k=(a=!a)?"}":"{"}E.push(d);return E.join("")},
64
- numberFormat:u}});J(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,n,C,D,z,A){var u=a.animate,p=a.animObject,h=a.stop,d=D.deg2rad,f=D.doc,b=D.noop,k=D.svg,B=D.SVG_NS,t=D.win,H=A.addEvent,K=A.attr,w=A.createElement,E=A.css,x=A.defined,r=A.erase,q=A.extend,e=A.fireEvent,m=A.isArray,c=A.isFunction,g=A.isNumber,l=A.isString,v=A.merge,
65
- G=A.objectEach,L=A.pick,F=A.pInt,N=A.syncTimeout,O=A.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=B;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(c){c=L(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};a.prototype._defaultSetter=function(c,e,g){g.setAttribute(e,
66
- c)};a.prototype.add=function(c){var e=this.renderer,g=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(g);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(c,e){var g=e?"":this.attr("class")||"";c=(c||"").split(/ /g).reduce(function(c,e){-1===g.indexOf(e)&&c.push(e);return c},
67
- g?[g]:[]).join(" ");c!==g&&this.attr("class",c);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(c,e,g){var b={},m=this.renderer,I=m.alignedObjects,v,f,q;if(c){if(this.alignOptions=c,this.alignByTranslate=e,!g||l(g))this.alignTo=v=g||"renderer",r(I,this),I.push(this),g=void 0}else c=this.alignOptions,e=this.alignByTranslate,v=this.alignTo;g=L(g,m[v],"scrollablePlotBox"===v?m.plotBox:void 0,m);v=c.align;var d=
68
- c.verticalAlign;m=(g.x||0)+(c.x||0);I=(g.y||0)+(c.y||0);"right"===v?f=1:"center"===v&&(f=2);f&&(m+=(g.width-(c.width||0))/f);b[e?"translateX":"x"]=Math.round(m);"bottom"===d?q=1:"middle"===d&&(q=2);q&&(I+=(g.height-(c.height||0))/q);b[e?"translateY":"y"]=Math.round(I);this[this.placed?"animate":"attr"](b);this.placed=!0;this.alignAttr=b;return this};a.prototype.alignSetter=function(c){var e={left:"start",center:"middle",right:"end"};e[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",
69
- e[c]))};a.prototype.animate=function(c,e,g){var l=this,b=p(L(e,this.renderer.globalAnimation,!0));e=b.defer;L(f.hidden,f.msHidden,f.webkitHidden,!1)&&(b.duration=0);0!==b.duration?(g&&(b.complete=g),N(function(){l.element&&u(l,c,b)},e)):(this.attr(c,void 0,g),G(c,function(c,e){b.step&&b.step.call(this,c,{prop:e,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(c){var e=this.element;-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));
70
- var g=c.split(" ");c=g[g.length-1];if((g=g[0])&&"none"!==g&&D.svg){this.fakeTS=!0;this.ySetter=this.xSetter;g=g.replace(/(^[\d\.]+)(.*?)$/g,function(c,e,g){return 2*Number(e)+g});this.removeTextOutline();var l=f.createElementNS(B,"tspan");K(l,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":g,"stroke-linejoin":"round"});[].forEach.call(e.childNodes,function(c){var e=c.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(c){return e.removeAttribute(c)});
71
- l.appendChild(e)});var b=f.createElementNS(B,"tspan");b.textContent="\u200b";["x","y"].forEach(function(c){var g=e.getAttribute(c);g&&b.setAttribute(c,g)});l.appendChild(b);e.insertBefore(l,e.firstChild)}};a.prototype.attr=function(c,e,g,l){var b=this.element,m=this.symbolCustomAttribs,I,v=this,f,q;if("string"===typeof c&&"undefined"!==typeof e){var P=c;c={};c[P]=e}"string"===typeof c?v=(this[c+"Getter"]||this._defaultGetter).call(this,c,b):(G(c,function(e,g){f=!1;l||h(this,g);this.symbolName&&-1!==
72
- m.indexOf(g)&&(I||(this.symbolAttr(c),I=!0),f=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);f||(q=this[g+"Setter"]||this._defaultSetter,q.call(this,e,g,b),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,e,q))},this),this.afterSetters());g&&g.call(this);return v};a.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+")":"none")};a.prototype.crisp=function(c,e){e=e||c.strokeWidth||
73
- 0;var g=Math.round(e)%2/2;c.x=Math.floor(c.x||this.x||0)+g;c.y=Math.floor(c.y||this.y||0)+g;c.width=Math.floor((c.width||this.width||0)-2*g);c.height=Math.floor((c.height||this.height||0)-2*g);x(c.strokeWidth)&&(c.strokeWidth=e);return c};a.prototype.complexColor=function(c,g,l){var b=this.renderer,I,f,q,d,a,k,r,h,w,F,L=[],B;e(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?f="radialGradient":c.linearGradient&&(f="linearGradient");if(f){q=c[f];a=b.gradients;k=c.stops;w=l.radialReference;
74
- m(q)&&(c[f]=q={x1:q[0],y1:q[1],x2:q[2],y2:q[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===f&&w&&!x(q.gradientUnits)&&(d=q,q=v(q,b.getRadialAttr(w,d),{gradientUnits:"userSpaceOnUse"}));G(q,function(c,e){"id"!==e&&L.push(e,c)});G(k,function(c){L.push(c)});L=L.join(",");if(a[L])F=a[L].attr("id");else{q.id=F=O();var e=a[L]=b.createElement(f).attr(q).add(b.defs);e.radAttr=d;e.stops=[];k.forEach(function(c){0===c[1].indexOf("rgba")?(I=C.parse(c[1]),r=I.get("rgb"),h=I.get("a")):(r=c[1],h=1);c=b.createElement("stop").attr({offset:c[0],
75
- "stop-color":r,"stop-opacity":h}).add(e);e.stops.push(c)})}B="url("+b.url+"#"+F+")";l.setAttribute(g,B);l.gradient=L;c.toString=function(){return B}}})};a.prototype.css=function(c){var e=this.styles,g={},l=this.element,b=["textOutline","textOverflow","width"],m="",v=!e;c&&c.color&&(c.fill=c.color);e&&G(c,function(c,l){e&&e[l]!==c&&(g[l]=c,v=!0)});if(v){e&&(c=q(e,g));if(c)if(null===c.width||"auto"===c.width)delete this.textWidth;else if("text"===l.nodeName.toLowerCase()&&c.width)var f=this.textWidth=
76
- F(c.width);this.styles=c;f&&!k&&this.renderer.forExport&&delete c.width;if(l.namespaceURI===this.SVG_NS){var d=function(c,e){return"-"+e.toLowerCase()};G(c,function(c,e){-1===b.indexOf(e)&&(m+=e.replace(/([A-Z])/g,d)+":"+c+";")});m&&K(l,"style",m)}else E(l,c);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c&&c.textOutline&&this.applyTextOutline(c.textOutline))}return this};a.prototype.dashstyleSetter=function(c){var e=this["stroke-width"];"inherit"===e&&(e=1);if(c=c&&c.toLowerCase()){var g=
77
- c.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=g.length;c--;)g[c]=""+F(g[c])*L(e,NaN);c=g.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};a.prototype.destroy=function(){var c=this,e=c.element||{},g=c.renderer,l=e.ownerSVGElement,b=g.isSVG&&"SPAN"===e.nodeName&&c.parentGroup||
78
- void 0;e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null;h(c);if(c.clipPath&&l){var m=c.clipPath;[].forEach.call(l.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(m.element.id)&&c.removeAttribute("clip-path")});c.clipPath=m.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);for(g.styledMode||c.destroyShadows();b&&b.div&&0===b.div.childNodes.length;)e=b.parentGroup,
79
- c.safeRemoveChild(b.div),delete b.div,b=e;c.alignTo&&r(g.alignedObjects,c);G(c,function(e,g){c[g]&&c[g].parentGroup===c&&c[g].destroy&&c[g].destroy();delete c[g]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};a.prototype.destroyTextPath=function(c,e){var g=c.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&g.getElementsByTagName("textPath").length){for(c=
80
- this.textPathWrapper.element.childNodes;c.length;)g.appendChild(c[0]);g.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};a.prototype.dSetter=function(c,e,g){m(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,e,g){return e&&e.join?(g?c+" ":"")+e.join(" "):(e||"").toString()},""));
81
- /(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[e]!==c&&(g.setAttribute(e,c),this[e]=c)};a.prototype.fadeOut=function(c){var e=this;e.animate({opacity:0},{duration:L(c,150),complete:function(){e.attr({y:-9999}).hide()}})};a.prototype.fillSetter=function(c,e,g){"string"===typeof c?g.setAttribute(e,c):c&&this.complexColor(c,e,g)};a.prototype.getBBox=function(e,g){var l=this.renderer,b=this.element,m=this.styles,v=this.textStr,f=l.cache,M=l.cacheKeys,k=b.namespaceURI===this.SVG_NS;g=L(g,this.rotation,0);var r=
82
- l.styledMode?b&&a.prototype.getStyle.call(b,"font-size"):m&&m.fontSize,h;if(x(v)){var w=v.toString();-1===w.indexOf("<")&&(w=w.replace(/[0-9]/g,"0"));w+=["",g,r,this.textWidth,m&&m.textOverflow,m&&m.fontWeight].join()}w&&!e&&(h=f[w]);if(!h){if(k||l.forExport){try{var G=this.fakeTS&&function(c){var e=b.querySelector(".highcharts-text-outline");e&&E(e,{display:c})};c(G)&&G("none");h=b.getBBox?q({},b.getBBox()):{width:b.offsetWidth,height:b.offsetHeight};c(G)&&G("")}catch(W){""}if(!h||0>h.width)h={width:0,
83
- height:0}}else h=this.htmlGetBBox();l.isSVG&&(e=h.width,l=h.height,k&&(h.height=l={"11px,17":14,"13px,20":16}[m&&m.fontSize+","+Math.round(l)]||l),g&&(m=g*d,h.width=Math.abs(l*Math.sin(m))+Math.abs(e*Math.cos(m)),h.height=Math.abs(l*Math.cos(m))+Math.abs(e*Math.sin(m))));if(w&&0<h.height){for(;250<M.length;)delete f[M.shift()];f[w]||M.push(w);f[w]=h}}return h};a.prototype.getStyle=function(c){return t.getComputedStyle(this.element||this,"").getPropertyValue(c)};a.prototype.hasClass=function(c){return-1!==
84
- (""+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,g){this.element="span"===g?w(g):f.createElementNS(this.SVG_NS,g);this.renderer=c;e(this,"afterInit")};a.prototype.invert=function(c){this.inverted=c;this.updateTransform();return this};a.prototype.on=function(c,e){var g=this.onEvents;if(g[c])g[c]();g[c]=H(this.element,
85
- c,e);return this};a.prototype.opacitySetter=function(c,e,g){this.opacity=c=Number(Number(c).toFixed(3));g.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");c&&this.safeRemoveChild(c)};a.prototype.safeRemoveChild=function(c){var e=c.parentNode;e&&e.removeChild(c)};
86
- 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(c,e){var l=this.element,m=this.text?this.text.element:l,f={textAnchor:"text-anchor"},q=!1,d=this.textPathWrapper,a=!d;e=v(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var k=n.filterUserAttributes(e.attributes);
87
- if(c&&e&&e.enabled){d&&null===d.element.parentNode?(a=!0,d=d.destroy()):d&&this.removeTextOutline.call(d.parentGroup);this.options&&this.options.padding&&(k.dx=-this.options.padding);d||(this.textPathWrapper=d=this.renderer.createElement("textPath"),q=!0);var r=d.element;(e=c.element.getAttribute("id"))||c.element.setAttribute("id",e=O());if(a)for(m.setAttribute("y",0),g(k.dx)&&m.setAttribute("x",-k.dx),c=[].slice.call(m.childNodes),a=0;a<c.length;a++){var h=c[a];h.nodeType!==Node.TEXT_NODE&&"tspan"!==
88
- h.nodeName||r.appendChild(h)}q&&d&&d.add({element:m});r.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+e);x(k.dy)&&(r.parentNode.setAttribute("dy",k.dy),delete k.dy);x(k.dx)&&(r.parentNode.setAttribute("dx",k.dx),delete k.dx);G(k,function(c,e){r.setAttribute(f[e]||e,c)});l.removeAttribute("transform");this.removeTextOutline.call(d);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=b}else d&&(delete this.updateTransform,
89
- delete this.applyTextOutline,this.destroyTextPath(l,c),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};a.prototype.shadow=function(c,e,g){var l=[],b=this.element,m=this.oldShadowOptions,v={color:z.neutralColor100,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},f=!1,I;!0===c?I=v:"object"===typeof c&&(I=q(v,c));I&&(I&&m&&G(I,function(c,e){c!==m[e]&&(f=!0)}),f&&this.destroyShadows(),
90
- this.oldShadowOptions=I);if(!I)this.destroyShadows();else if(!this.shadows){var d=I.opacity/I.width;var a=this.parentInverted?"translate("+I.offsetY+", "+I.offsetX+")":"translate("+I.offsetX+", "+I.offsetY+")";for(v=1;v<=I.width;v++){var k=b.cloneNode(!1);var r=2*I.width+1-2*v;K(k,{stroke:c.color||z.neutralColor100,"stroke-opacity":d*v,"stroke-width":r,transform:a,fill:"none"});k.setAttribute("class",(k.getAttribute("class")||"")+" highcharts-shadow");g&&(K(k,"height",Math.max(K(k,"height")-r,0)),
91
- k.cutHeight=r);e?e.element.appendChild(k):b.parentNode&&b.parentNode.insertBefore(k,b);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,g){this[e]=c;this.stroke&&this["stroke-width"]?(a.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===c&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=
92
- !1):this.renderer.styledMode&&this["stroke-width"]&&(g.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=F(c);else if(""!==c){var g=f.createElementNS(B,"rect");K(g,{width:c,"stroke-width":0});this.element.parentNode.appendChild(g);e=g.getBBox().width;g.parentNode.removeChild(g)}return e};a.prototype.symbolAttr=
93
- function(c){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g){e[g]=L(c[g],e[g])});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=this.element,g=e.getElementsByTagName("title")[0]||f.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(g,
94
- e.firstChild):e.appendChild(g);g.textContent=String(L(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,g){var l=this.shadows;if(l)for(var b=l.length;b--;)g.call(l[b],"height"===c?Math.max(e-(l[b].cutHeight||0),0):"d"===c?this.d:e,c,l[b])};a.prototype.updateTransform=
95
- function(){var c=this.scaleX,e=this.scaleY,g=this.inverted,l=this.rotation,b=this.matrix,m=this.element,v=this.translateX||0,f=this.translateY||0;g&&(v+=this.width,f+=this.height);v=["translate("+v+","+f+")"];x(b)&&v.push("matrix("+b.join(",")+")");g?v.push("rotate(90) scale(-1,1)"):l&&v.push("rotate("+l+" "+L(this.rotationOriginX,m.getAttribute("x"),0)+" "+L(this.rotationOriginY,m.getAttribute("y")||0)+")");(x(c)||x(e))&&v.push("scale("+L(c,1)+" "+L(e,1)+")");v.length&&m.setAttribute("transform",
96
- v.join(" "))};a.prototype.visibilitySetter=function(c,e,g){"inherit"===c?g.removeAttribute(e):this[e]!==c&&g.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 g=this.renderer,l=this.parentGroup,b=(l||g).element||g.box,m=this.element;g=b===g.box;var v=!1;var f=this.added;var q;x(c)?(m.setAttribute("data-z-index",c),c=+c,this[e]===c&&(f=!1)):x(this[e])&&
97
- m.removeAttribute("data-z-index");this[e]=c;if(f){(c=this.zIndex)&&l&&(l.handleZ=!0);e=b.childNodes;for(q=e.length-1;0<=q&&!v;q--){l=e[q];f=l.getAttribute("data-z-index");var d=!x(f);if(l!==m)if(0>c&&d&&!g&&!q)b.insertBefore(m,e[q]),v=!0;else if(F(f)<=c||d&&(!x(c)||0<=c))b.insertBefore(m,e[q+1]||null),v=!0}v||(b.insertBefore(m,e[g?3:0]||null),v=!0)}return v};return a}();a.prototype["stroke-widthSetter"]=a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=
98
- 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});J(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var u;(function(u){var n;u.rendererTypes={};u.getRendererType=function(a){void 0===a&&(a=n);return u.rendererTypes[a]||u.rendererTypes[n]};u.registerRendererType=function(z,
99
- A,y){u.rendererTypes[z]=A;if(!n||y)n=z,a.Renderer=A}})(u||(u={}));return u});J(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var d=function(f,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var d in f)f.hasOwnProperty(d)&&(b[d]=f[d])};return d(f,b)};return function(f,b){function a(){this.constructor=f}d(f,b);f.prototype=null===b?Object.create(b):
100
- (a.prototype=b.prototype,new a)}}(),D=n.defined,z=n.extend,A=n.isNumber,y=n.merge,p=n.pick,h=n.removeEvent;return function(d){function f(b,a,h,t,p,K,w,E,x,r){var q=d.call(this)||this;q.paddingLeftSetter=q.paddingSetter;q.paddingRightSetter=q.paddingSetter;q.init(b,"g");q.textStr=a;q.x=h;q.y=t;q.anchorX=K;q.anchorY=w;q.baseline=x;q.className=r;q.addClass("button"===r?"highcharts-no-tooltip":"highcharts-label");r&&q.addClass("highcharts-"+r);q.text=b.text("",0,0,E).attr({zIndex:1});var e;"string"===
101
- typeof p&&((e=/^url\((.*?)\)$/.test(p))||q.renderer.symbols[p])&&(q.symbolKey=p);q.bBox=f.emptyBBox;q.padding=3;q.baselineOffset=0;q.needsBox=b.styledMode||e;q.deferredAttr={};q.alignFactor=0;return q}u(f,d);f.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}))};f.prototype.anchorXSetter=function(b,f){this.anchorX=b;this.boxAttr(f,Math.round(b)-this.getCrispAdjust()-this.xSetting)};f.prototype.anchorYSetter=
102
- function(b,f){this.anchorY=b;this.boxAttr(f,b-this.ySetting)};f.prototype.boxAttr=function(b,f){this.box?this.box.attr(b,f):this.deferredAttr[b]=f};f.prototype.css=function(b){if(b){var d={};b=y(b);f.textProps.forEach(function(f){"undefined"!==typeof b[f]&&(d[f]=b[f],delete b[f])});this.text.css(d);var h="width"in d;"fontSize"in d||"fontWeight"in d?this.updateTextPadding():h&&this.updateBoxSize()}return a.prototype.css.call(this,b)};f.prototype.destroy=function(){h(this.element,"mouseenter");h(this.element,
103
- "mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};f.prototype.fillSetter=function(b,f){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(f,b)};f.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,f=p(this.paddingLeft,b);return{width:this.width,height:this.height,x:this.bBox.x-f,y:this.bBox.y-b}};f.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&
104
- this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};f.prototype.heightSetter=function(b){this.heightSetting=b};f.prototype.on=function(b,f){var d=this,k=d.text,h=k&&"SPAN"===k.element.tagName?k:void 0;if(h){var p=function(a){("mouseenter"===b||"mouseleave"===b)&&a.relatedTarget instanceof Element&&(d.element.compareDocumentPosition(a.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||h.element.compareDocumentPosition(a.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||
105
- f.call(d.element,a)};h.on(b,p)}a.prototype.on.call(d,b,p||f);return d};f.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:D(b)?b:"",x:this.x,y:this.y});this.box&&D(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};f.prototype.paddingSetter=function(b,f){A(b)?b!==this[f]&&(this[f]=b,this.updateTextPadding()):this[f]=void 0};f.prototype.rSetter=function(b,f){this.boxAttr(f,b)};f.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(),
106
- this.box&&this.box.shadow(b));return this};f.prototype.strokeSetter=function(b,f){this.stroke=b;this.boxAttr(f,b)};f.prototype["stroke-widthSetter"]=function(b,f){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(f,b)};f.prototype["text-alignSetter"]=function(b){this.textAlign=b};f.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};f.prototype.updateBoxSize=function(){var b=this.text.element.style,d={},a=this.padding,h=this.bBox=A(this.widthSetting)&&
107
- A(this.heightSetting)&&!this.textAlign||!D(this.text.textStr)?f.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||h.height||0)+2*a;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=a+Math.min((this.text.firstLineMetrics||b).b,h.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),a.addClass(("button"===
108
- this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(),d.x=a,d.y=(this.baseline?-this.baselineOffset:0)+a,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(z(d,this.deferredAttr)),this.deferredAttr={})};f.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var f=this.baseline?0:this.baselineOffset,d=p(this.paddingLeft,this.padding);D(this.widthSetting)&&this.bBox&&
109
- ("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==b.x||f!==b.y)b.attr("x",d),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof f&&b.attr("y",f);b.x=d;b.y=f};f.prototype.widthSetter=function(b){this.widthSetting=A(b)?b:void 0};f.prototype.getPaddedWidth=function(){var b=this.padding,f=p(this.paddingLeft,b);b=p(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+f+b};f.prototype.xSetter=
110
- function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};f.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};f.emptyBBox={width:0,height:0,x:0,y:0};f.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return f}(a)});J(a,"Core/Renderer/SVG/Symbols.js",
111
- [a["Core/Utilities.js"]],function(a){function u(a,h,d,f,b){var k=[];if(b){var p=b.start||0,t=y(b.r,d);d=y(b.r,f||d);var H=(b.end||0)-.001;f=b.innerR;var K=y(b.open,.001>Math.abs((b.end||0)-p-2*Math.PI)),w=Math.cos(p),E=Math.sin(p),x=Math.cos(H),r=Math.sin(H);p=y(b.longArc,.001>H-p-Math.PI?0:1);k.push(["M",a+t*w,h+d*E],["A",t,d,0,p,y(b.clockwise,1),a+t*x,h+d*r]);z(f)&&k.push(K?["M",a+f*x,h+f*r]:["L",a+f*x,h+f*r],["A",f,f,0,p,z(b.clockwise)?1-b.clockwise:0,a+f*w,h+f*E]);K||k.push(["Z"])}return k}function C(a,
112
- h,d,f,b){return b&&b.r?D(a,h,d,f,b):[["M",a,h],["L",a+d,h],["L",a+d,h+f],["L",a,h+f],["Z"]]}function D(a,h,d,f,b){b=b&&b.r||0;return[["M",a+b,h],["L",a+d-b,h],["C",a+d,h,a+d,h,a+d,h+b],["L",a+d,h+f-b],["C",a+d,h+f,a+d,h+f,a+d-b,h+f],["L",a+b,h+f],["C",a,h+f,a,h+f,a,h+f-b],["L",a,h+b],["C",a,h,a,h,a+b,h]]}var z=a.defined,A=a.isNumber,y=a.pick;return{arc:u,callout:function(a,h,d,f,b){var k=Math.min(b&&b.r||0,d,f),B=k+6,t=b&&b.anchorX;b=b&&b.anchorY||0;var H=D(a,h,d,f,{r:k});if(!A(t))return H;a+t>=d?
113
- b>h+B&&b<h+f-B?H.splice(3,1,["L",a+d,b-6],["L",a+d+6,b],["L",a+d,b+6],["L",a+d,h+f-k]):H.splice(3,1,["L",a+d,f/2],["L",t,b],["L",a+d,f/2],["L",a+d,h+f-k]):0>=a+t?b>h+B&&b<h+f-B?H.splice(7,1,["L",a,b+6],["L",a-6,b],["L",a,b-6],["L",a,h+k]):H.splice(7,1,["L",a,f/2],["L",t,b],["L",a,f/2],["L",a,h+k]):b&&b>f&&t>a+B&&t<a+d-B?H.splice(5,1,["L",t+6,h+f],["L",t,h+f+6],["L",t-6,h+f],["L",a+k,h+f]):b&&0>b&&t>a+B&&t<a+d-B&&H.splice(1,1,["L",t-6,h],["L",t,h-6],["L",t+6,h],["L",d-k,h]);return H},circle:function(a,
114
- h,d,f){return u(a+d/2,h+f/2,d/2,f/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,h,d,f){return[["M",a+d/2,h],["L",a+d,h+f/2],["L",a+d/2,h+f],["L",a,h+f/2],["Z"]]},rect:C,roundedRect:D,square:C,triangle:function(a,h,d,f){return[["M",a+d/2,h],["L",a+d,h+f],["L",a,h+f],["Z"]]},"triangle-down":function(a,h,d,f){return[["M",a,h],["L",a+d,h],["L",a+d/2,h+f],["Z"]]}}});J(a,"Core/Renderer/SVG/TextBuilder.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,
115
- n,C){var u=n.doc,z=n.SVG_NS,A=C.attr,y=C.isString,p=C.objectEach,h=C.pick;return function(){function d(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=!(!b||"ellipsis"!==b.textOverflow);this.noWrap=!(!b||"nowrap"!==b.whiteSpace);this.fontSize=b&&b.fontSize}d.prototype.buildSVG=function(){var f=this.svgElement,b=f.element,d=f.renderer,B=h(f.textStr,"").toString(),t=-1!==B.indexOf("<"),
116
- H=b.childNodes,K=H.length;d=this.width&&!f.added&&d.box;var w=/<br.*?>/g;var E=[B,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(E!==f.textCache){f.textCache=E;for(delete f.actualWidth;K--;)b.removeChild(H[K]);t||this.ellipsis||this.width||-1!==B.indexOf(" ")&&(!this.noWrap||w.test(B))?""!==B&&(d&&d.appendChild(b),B=new a(B),this.modifyTree(B.nodes),B.addToDOM(f.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&&
117
- f.attr("title",this.unescapeEntities(f.textStr||"",["&lt;","&gt;"])),d&&d.removeChild(b)):b.appendChild(u.createTextNode(this.unescapeEntities(B)));y(this.textOutline)&&f.applyTextOutline&&f.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var a=this,b=this.svgElement,d=A(b.element,"x");b.firstLineMetrics=void 0;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(f,h){f.nextSibling&&f.previousSibling&&(0===h&&1===f.previousSibling.nodeType&&(b.firstLineMetrics=
118
- b.renderer.fontMetrics(void 0,f.previousSibling)),A(f,{dy:a.getLineHeight(f.nextSibling),x:d}))});var h=this.width||0;if(h){var t=function(f,k){var w=f.textContent||"",x=w.replace(/([^\^])-/g,"$1- ").split(" "),r=!a.noWrap&&(1<x.length||1<b.element.childNodes.length),q=a.getLineHeight(k),e=0,m=b.actualWidth;if(a.ellipsis)w&&a.truncate(f,w,void 0,0,Math.max(0,h-parseInt(a.fontSize||12,10)),function(c,e){return c.substring(0,e)+"\u2026"});else if(r){w=[];for(r=[];k.firstChild&&k.firstChild!==f;)r.push(k.firstChild),
119
- k.removeChild(k.firstChild);for(;x.length;)x.length&&!a.noWrap&&0<e&&(w.push(f.textContent||""),f.textContent=x.join(" ").replace(/- /g,"-")),a.truncate(f,void 0,x,0===e?m||0:0,h,function(c,e){return x.slice(0,e).join(" ").replace(/- /g,"-")}),m=b.actualWidth,e++;r.forEach(function(c){k.insertBefore(c,f)});w.forEach(function(c){k.insertBefore(u.createTextNode(c),f);c=u.createElementNS(z,"tspan");c.textContent="\u200b";A(c,{dy:q,x:d});k.insertBefore(c,f)})}},H=function(a){[].slice.call(a.childNodes).forEach(function(f){f.nodeType===
120
- Node.TEXT_NODE?t(f,a):(-1!==f.className.baseVal.indexOf("highcharts-br")&&(b.actualWidth=0),H(f))})};H(b.element)}};d.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)?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};d.prototype.modifyTree=function(a){var b=
121
- this,f=function(d,k){var h=d.tagName,t=b.renderer.styledMode,w=d.attributes||{};if("b"===h||"strong"===h)t?w["class"]="highcharts-strong":w.style="font-weight:bold;"+(w.style||"");else if("i"===h||"em"===h)t?w["class"]="highcharts-emphasized":w.style="font-style:italic;"+(w.style||"");y(w.style)&&(w.style=w.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===h&&(w["class"]="highcharts-br",d.textContent="\u200b",(k=a[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,"")));"#text"!==
122
- h&&"a"!==h&&(d.tagName="tspan");d.attributes=w;d.children&&d.children.filter(function(b){return"#text"!==b.tagName}).forEach(f)};for(a.forEach(f);a[0]&&"tspan"===a[0].tagName&&!a[0].children;)a.splice(0,1)};d.prototype.truncate=function(a,b,d,h,t,H){var f=this.svgElement,k=f.renderer,E=f.rotation,x=[],r=d?1:0,q=(b||d||"").length,e=q,m,c=function(c,e){e=e||c;var g=a.parentNode;if(g&&"undefined"===typeof x[e])if(g.getSubStringLength)try{x[e]=h+g.getSubStringLength(0,d?e+1:e)}catch(L){""}else k.getSpanWidth&&
123
- (a.textContent=H(b||d,c),x[e]=h+k.getSpanWidth(f,a));return x[e]};f.rotation=0;var g=c(a.textContent.length);if(h+g>t){for(;r<=q;)e=Math.ceil((r+q)/2),d&&(m=H(d,e)),g=c(e,m&&m.length-1),r===q?r=q+1:g>t?q=e-1:r=e;0===q?a.textContent="":b&&q===b.length-1||(a.textContent=m||H(b||d,e))}d&&d.splice(0,e);f.actualWidth=g;f.rotation=E};d.prototype.unescapeEntities=function(a,b){p(this.renderer.escapes,function(d,f){b&&-1!==b.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),f))});return a};return d}()});
124
- J(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"],a["Core/Renderer/SVG/TextBuilder.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d){var f=C.charts,b=C.deg2rad,k=C.doc,B=C.isFirefox,t=C.isMS,H=C.isWebKit,K=C.noop,w=C.SVG_NS,E=C.symbolSizes,x=C.win,r=d.addEvent,
125
- q=d.attr,e=d.createElement,m=d.css,c=d.defined,g=d.destroyObjectProperties,l=d.extend,v=d.isArray,G=d.isNumber,L=d.isObject,F=d.isString,N=d.merge,u=d.pick,aa=d.pInt,V=d.uniqueKey,ba;C=function(){function d(c,e,g,l,b,m,a){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(c,e,g,l,b,m,a)}d.prototype.init=function(c,e,g,l,b,a,d){var f=
126
- this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),v=f.element;d||f.css(this.getStyle(l));c.appendChild(v);q(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&q(v,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=v;this.boxWrapper=f;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 9.1.1"));this.defs=this.createElement("defs").add();this.allowHTML=a;this.forExport=b;this.styledMode=
127
- d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(e,g,!1);var I;B&&c.getBoundingClientRect&&(e=function(){m(c,{left:0,top:0});I=c.getBoundingClientRect();m(c,{left:Math.ceil(I.left)-I.left+"px",top:Math.ceil(I.top)-I.top+"px"})},e(),this.unSubPixelFix=r(x,"resize",e))};d.prototype.definition=function(c){return(new a([c])).addToDOM(this.defs.element)};d.prototype.getReferenceURL=function(){if((B||H)&&k.getElementsByTagName("base").length){if(!c(ba)){var e=V();e=(new a([{tagName:"svg",
128
- attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(k.body);m(e,{position:"fixed",top:0,left:0,zIndex:9E5});var g=k.elementFromPoint(6,6);ba="hitme"===(g&&g.id);k.body.removeChild(e)}if(ba)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,
129
- "\\$1").replace(/ /g,"%20")}return""};d.prototype.getStyle=function(c){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};d.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};d.prototype.destroy=function(){var c=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();g(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());
130
- this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};d.prototype.createElement=function(c){var e=new this.Element;e.init(this,c);return e};d.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]}};d.prototype.buildText=function(c){(new h(c)).buildSVG()};d.prototype.getContrast=function(c){c=n.parse(c).rgba;c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};d.prototype.button=function(c,e,
131
- g,b,m,d,f,v,q,I){var M=this.label(c,e,g,q,void 0,void 0,I,void 0,"button"),h=this.styledMode,k=0,P=m?N(m):{};c=P&&P.style||{};P=a.filterUserAttributes(P);M.attr(N({padding:8,r:2},P));if(!h){P=N({fill:D.neutralColor3,stroke:D.neutralColor20,"stroke-width":1,style:{color:D.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:c},P);var G=P.style;delete P.style;d=N(P,{fill:D.neutralColor10},a.filterUserAttributes(d||{}));var w=d.style;delete d.style;f=N(P,{fill:D.highlightColor10,style:{color:D.neutralColor100,
132
- fontWeight:"bold"}},a.filterUserAttributes(f||{}));var F=f.style;delete f.style;v=N(P,{style:{color:D.neutralColor20}},a.filterUserAttributes(v||{}));var x=v.style;delete v.style}r(M.element,t?"mouseover":"mouseenter",function(){3!==k&&M.setState(1)});r(M.element,t?"mouseout":"mouseleave",function(){3!==k&&M.setState(k)});M.setState=function(c){1!==c&&(M.state=k=c);M.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][c||
133
- 0]);h||M.attr([P,d,f,v][c||0]).css([G,w,F,x][c||0])};h||M.attr(P).css(l({cursor:"default"},G));return M.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==k&&b.call(M,c)})};d.prototype.crispLine=function(e,g,l){void 0===l&&(l="round");var b=e[0],m=e[1];c(b[1])&&b[1]===m[1]&&(b[1]=m[1]=Math[l](b[1])-g%2/2);c(b[2])&&b[2]===m[2]&&(b[2]=m[2]=Math[l](b[2])+g%2/2);return e};d.prototype.path=function(c){var e=this.styledMode?{}:{fill:"none"};v(c)?e.d=c:L(c)&&l(e,c);return this.createElement("path").attr(e)};
134
- d.prototype.circle=function(c,e,g){c=L(c)?c:"undefined"===typeof c?{}:{x:c,y:e,r:g};e=this.createElement("circle");e.xSetter=e.ySetter=function(c,e,g){g.setAttribute("c"+e,c)};return e.attr(c)};d.prototype.arc=function(c,e,g,b,l,m){L(c)?(b=c,e=b.y,g=b.r,c=b.x):b={innerR:b,start:l,end:m};c=this.symbol("arc",c,e,g,g,b);c.r=g;return c};d.prototype.rect=function(c,e,g,b,l,m){l=L(c)?c.r:l;var a=this.createElement("rect");c=L(c)?c:"undefined"===typeof c?{}:{x:c,y:e,width:Math.max(g,0),height:Math.max(b,
135
- 0)};this.styledMode||("undefined"!==typeof m&&(c["stroke-width"]=m,c=a.crisp(c)),c.fill="none");l&&(c.r=l);a.rSetter=function(c,e,g){a.r=c;q(g,{rx:c,ry:c})};a.rGetter=function(){return a.r||0};return a.attr(c)};d.prototype.setSize=function(c,e,g){this.width=c;this.height=e;this.boxWrapper.animate({width:c,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:u(g,!0)?void 0:0});this.alignElements()};d.prototype.g=function(c){var e=this.createElement("g");
136
- return c?e.attr({"class":"highcharts-"+c}):e};d.prototype.image=function(c,e,g,b,m,a){var d={preserveAspectRatio:"none"},f=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:g,width:b,height:m});var v=this.createElement("image").attr(d);d=function(e){f(v.element,c);a.call(v,e)};if(a){f(v.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var q=new x.Image;r(q,"load",
137
- d);q.src=c;q.complete&&d({})}else f(v.element,c);return v};d.prototype.symbol=function(g,b,a,d,v,q){var I=this,h=/^url\((.*?)\)$/,M=h.test(g),r=!M&&(this.symbols[g]?g:"circle"),G=r&&this.symbols[r],P;if(G){"number"===typeof b&&(P=G.call(this.symbols,Math.round(b||0),Math.round(a||0),d||0,v||0,q));var w=this.path(P);I.styledMode||w.attr("fill","none");l(w,{symbolName:r||void 0,x:b,y:a,width:d,height:v});q&&l(w,q)}else if(M){var F=g.match(h)[1];var x=w=this.image(F);x.imgwidth=u(E[F]&&E[F].width,q&&
138
- q.width);x.imgheight=u(E[F]&&E[F].height,q&&q.height);var L=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(e){x[e+"Setter"]=function(e,g){var b=this["img"+g];this[g]=e;c(b)&&(q&&"within"===q.backgroundSize&&this.width&&this.height&&(b=Math.round(b*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(g,b),this.alignByTranslate||(e=((this[g]||0)-b)/2,this.attr("width"===g?{translateX:e}:{translateY:e})))}});
139
- c(b)&&x.attr({x:b,y:a});x.isImg=!0;c(x.imgwidth)&&c(x.imgheight)?L(x):(x.attr({width:0,height:0}),e("img",{onload:function(){var c=f[I.chartIndex];0===this.width&&(m(this,{position:"absolute",top:"-999em"}),k.body.appendChild(this));E[F]={width:this.width,height:this.height};x.imgwidth=this.width;x.imgheight=this.height;x.element&&L(x);this.parentNode&&this.parentNode.removeChild(this);I.imgCount--;if(!I.imgCount&&c&&!c.hasLoaded)c.onload()},src:F}),this.imgCount++)}return w};d.prototype.clipRect=
140
- function(c,e,g,b){var l=V()+"-",m=this.createElement("clipPath").attr({id:l}).add(this.defs);c=this.rect(c,e,g,b,0).add(m);c.id=l;c.clipPath=m;c.count=0;return c};d.prototype.text=function(e,g,b,l){var m={};if(l&&(this.allowHTML||!this.forExport))return this.html(e,g,b);m.x=Math.round(g||0);b&&(m.y=Math.round(b));c(e)&&(m.text=e);e=this.createElement("text").attr(m);l||(e.xSetter=function(c,e,g){for(var b=g.getElementsByTagName("tspan"),l=g.getAttribute(e),m=0,a;m<b.length;m++)a=b[m],a.getAttribute(e)===
141
- l&&a.setAttribute(e,c);g.setAttribute(e,c)});return e};d.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&&A.prototype.getStyle.call(e,"font-size");c=/px/.test(c)?aa(c):12;e=24>c?c+3:Math.round(1.2*c);return{h:e,b:Math.round(.8*e),f:c}};d.prototype.rotCorr=function(c,e,g){var l=c;e&&g&&(l=Math.max(l*Math.cos(e*b),4));return{x:-c/3*Math.sin(e*b),y:l}};d.prototype.pathToSegments=function(c){for(var e=
142
- [],g=[],b={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l<c.length;l++)F(g[0])&&G(c[l])&&g.length===b[g[0].toUpperCase()]&&c.splice(l,0,g[0].replace("M","L").replace("m","l")),"string"===typeof c[l]&&(g.length&&e.push(g.slice(0)),g.length=0),g.push(c[l]);e.push(g.slice(0));return e};d.prototype.label=function(c,e,g,b,l,m,a,d,f){return new y(this,c,e,g,b,l,m,a,d,f)};d.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return d}();l(C.prototype,{Element:A,SVG_NS:w,
143
- escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:p,draw:K});z.registerRendererType("svg",C,!0);"";return C});J(a,"Core/Renderer/HTML/HTMLElement.js",[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n,C){var u=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 d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,
144
- d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=a.isFirefox,A=a.isMS,y=a.isWebKit,p=a.win,h=C.css,d=C.defined,f=C.extend,b=C.pick,k=C.pInt;return function(a){function t(){return null!==a&&a.apply(this,arguments)||this}u(t,a);t.compose=function(b){b=b.prototype;var a=t.prototype;b.getSpanCorrection=a.getSpanCorrection;b.htmlCss=a.htmlCss;b.htmlGetBBox=a.htmlGetBBox;b.htmlUpdateTransform=a.htmlUpdateTransform;b.setSpanRotation=a.setSpanRotation};
145
- t.prototype.getSpanCorrection=function(b,a,d){this.xCorr=-b*d;this.yCorr=-a};t.prototype.htmlCss=function(a){var d="SPAN"===this.element.tagName&&a&&"width"in a,k=b(d&&a.width,void 0);if(d){delete a.width;this.textWidth=k;var E=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=f(this.styles,a);h(this.element,a);E&&this.htmlUpdateTransform();return this};t.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,
146
- height:b.offsetHeight}};t.prototype.htmlUpdateTransform=function(){if(this.added){var b=this.renderer,a=this.element,f=this.translateX||0,E=this.translateY||0,x=this.x||0,r=this.y||0,q=this.textAlign||"left",e={left:0,center:.5,right:1}[q],m=this.styles;m=m&&m.whiteSpace;h(a,{marginLeft:f,marginTop:E});!b.styledMode&&this.shadows&&this.shadows.forEach(function(c){h(c,{marginLeft:f+1,marginTop:E+1})});this.inverted&&[].forEach.call(a.childNodes,function(c){b.invertChild(c,a)});if("SPAN"===a.tagName){var c=
147
- this.rotation,g=this.textWidth&&k(this.textWidth),l=[c,q,a.innerHTML,this.textWidth,this.textAlign].join(),v=void 0;(v=g!==this.oldTextWidth)&&!(v=g>this.oldTextWidth)&&((v=this.textPxLength)||(h(a,{width:"",whiteSpace:m||"nowrap"}),v=a.offsetWidth),v=v>g);v&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(h(a,{width:g+"px",display:"block",whiteSpace:m||"normal"}),this.oldTextWidth=g,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;l!==this.cTT&&(v=b.fontMetrics(a.style.fontSize,
148
- a).b,!d(c)||c===(this.oldRotation||0)&&q===this.oldAlign||this.setSpanRotation(c,e,v),this.getSpanCorrection(!d(c)&&this.textPxLength||a.offsetWidth,v,e,c,q));h(a,{left:x+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"});this.cTT=l;this.oldRotation=c;this.oldAlign=q}}else this.alignOnAdd=!0};t.prototype.setSpanRotation=function(b,a,d){var f={},k=A&&!/Edge/.test(p.navigator.userAgent)?"-ms-transform":y?"-webkit-transform":z?"MozTransform":p.opera?"-o-transform":void 0;k&&(f[k]=f.transform="rotate("+
149
- b+"deg)",f[k+(z?"Origin":"-origin")]=f.transformOrigin=100*a+"% "+d+"px",h(this.element,f))};return t}(n)});J(a,"Core/Renderer/HTML/HTMLRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,n,C,D){var u=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])};
150
- return a(d,b)};return function(d,b){function f(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}(),A=D.attr,y=D.createElement,p=D.extend,h=D.pick;return function(d){function f(){return null!==d&&d.apply(this,arguments)||this}u(f,d);f.compose=function(b){b.prototype.html=f.prototype.html};f.prototype.html=function(b,d,f){var k=this.createElement("span"),B=k.element,K=k.renderer,w=K.isSVG,E=function(b,a){["opacity","visibility"].forEach(function(d){b[d+
151
- "Setter"]=function(e,m,c){var g=b.div?b.div.style:a;n.prototype[d+"Setter"].call(this,e,m,c);g&&(g[m]=e)}});b.addedSetters=!0};k.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,h(b,"")),this.textStr=b,k.doTransform=!0)};w&&E(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(b,a){"align"===a?k.alignValue=k.textAlign=b:k[a]=b;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),
152
- this.doTransform=!1)};k.attr({text:b,x:Math.round(d),y:Math.round(f)}).css({position:"absolute"});K.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});B.style.whiteSpace="nowrap";k.css=k.htmlCss;w&&(k.add=function(b){var a=K.box.parentNode,d=[];if(this.parentGroup=b){var e=b.div;if(!e){for(;b;)d.push(b),b=b.parentGroup;d.reverse().forEach(function(b){function c(c,e){b[e]=c;"translateX"===e?m.left=c+"px":m.top=c+"px";b.doTransform=!0}var g=A(b.element,"class"),l=b.styles||
153
- {};e=b.div=b.div||y("div",g?{className:g}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:l.cursor,pointerEvents:l.pointerEvents},e||a);var m=e.style;p(b,{classSetter:function(c){return function(e){this.element.setAttribute("class",e);c.className=e}}(e),on:function(){d[0].div&&k.on.apply({element:d[0].div,onEvents:k.onEvents},arguments);return b},translateXSetter:c,translateYSetter:c});b.addedSetters||E(b)})}}else e=a;e.appendChild(B);
154
- k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};return f}(C)});J(a,"Core/Axis/AxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){var u;(function(u){u.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"}},
155
- 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: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,
156
- 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: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};u.defaultYAxisOptions={reversedStacks:!0,
157
- 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 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};u.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};u.defaultRightAxisOptions=
158
- {labels:{x:15},title:{rotation:90}};u.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};u.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(u||(u={}));return u});J(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var u=a.addEvent,C=a.isFunction,D=a.objectEach,z=a.removeEvent;return{registerEventOptions:function(a,n){a.eventOptions=a.eventOptions||{};D(n.events,function(p,h){C(p)&&a.eventOptions[h]!==p&&(C(a.eventOptions[h])&&
159
- z(a,h,a.eventOptions[h]),a.eventOptions[h]=p,u(a,h,p))})}}});J(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){var u=n.deg2rad,z=C.clamp,A=C.correctFloat,y=C.defined,p=C.destroyObjectProperties,h=C.extend,d=C.fireEvent,f=C.isNumber,b=C.merge,k=C.objectEach,B=C.pick;n=function(){function t(b,a,f,k,h){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=a;this.type=f||"";this.parameters=h||{};this.tickmarkOffset=this.parameters.tickmarkOffset;
160
- this.options=this.parameters.options;d(this,"init");f||k||this.addLabel()}t.prototype.addLabel=function(){var b=this,k=b.axis,w=k.options,E=k.chart,x=k.categories,r=k.logarithmic,q=k.names,e=b.pos,m=B(b.options&&b.options.labels,w.labels),c=k.tickPositions,g=e===c[0],l=e===c[c.length-1],v=(!m.step||1===m.step)&&1===k.tickInterval;c=c.info;var G=b.label,L;x=this.parameters.category||(x?B(x[e],q[e],e):e);r&&f(x)&&(x=A(r.lin2log(x)));if(k.dateTime&&c){var F=E.time.resolveDTLFormat(w.dateTimeLabelFormats[!w.grid&&
161
- c.higherRanks[e]||c.unitName]);var t=F.main}b.isFirst=g;b.isLast=l;var p={axis:k,chart:E,dateTimeLabelFormat:t,isFirst:g,isLast:l,pos:e,tick:b,tickPositionInfo:c,value:x};d(this,"labelFormat",p);var u=function(c){return m.formatter?m.formatter.call(c,c):m.format?(c.text=k.defaultLabelFormatter.call(c),a.format(m.format,c,E)):k.defaultLabelFormatter.call(c,c)};w=u.call(p,p);var n=F&&F.list;b.shortenLabel=n?function(){for(L=0;L<n.length;L++)if(h(p,{dateTimeLabelFormat:n[L]}),G.attr({text:u.call(p,p)}),
162
- G.getBBox().width<k.getSlotWidth(b)-2*m.padding)return;G.attr({text:""})}:void 0;v&&k._addedPlotLB&&b.moveLabel(w,m);y(G)||b.movedLabel?G&&G.textStr!==w&&!v&&(!G.textWidth||m.style.width||G.styles.width||G.css({width:null}),G.attr({text:w}),G.textPxLength=G.getBBox().width):(b.label=G=b.createLabel({x:0,y:0},w,m),b.rotation=0)};t.prototype.createLabel=function(a,d,f){var k=this.axis,h=k.chart;if(a=y(d)&&f.enabled?h.renderer.text(d,a.x,a.y,f.useHTML).add(k.labelGroup):null)h.styledMode||a.css(b(f.style)),
163
- a.textPxLength=a.getBBox().width;return a};t.prototype.destroy=function(){p(this,this.axis)};t.prototype.getPosition=function(b,a,f,k){var h=this.axis,r=h.chart,q=k&&r.oldChartHeight||r.chartHeight;b={x:b?A(h.translate(a+f,null,null,k)+h.transB):h.left+h.offset+(h.opposite?(k&&r.oldChartWidth||r.chartWidth)-h.right-h.left:0),y:b?q-h.bottom+h.offset-(h.opposite?h.height:0):A(q-h.translate(a+f,null,null,k)-h.transB)};b.y=z(b.y,-1E5,1E5);d(this,"afterGetPosition",{pos:b});return b};t.prototype.getLabelPosition=
164
- function(b,a,f,k,h,r,q,e){var m=this.axis,c=m.transA,g=m.isLinked&&m.linkedParent?m.linkedParent.reversed:m.reversed,l=m.staggerLines,v=m.tickRotCorr||{x:0,y:0},G=k||m.reserveSpaceDefault?0:-m.labelOffset*("center"===m.labelAlign?.5:1),w={},F=h.y;y(F)||(F=0===m.side?f.rotation?-8:-f.getBBox().height:2===m.side?v.y+8:Math.cos(f.rotation*u)*(v.y-f.getBBox(!1,0).height/2));b=b+h.x+G+v.x-(r&&k?r*c*(g?-1:1):0);a=a+F-(r&&!k?r*c*(g?1:-1):0);l&&(f=q/(e||1)%l,m.opposite&&(f=l-f-1),a+=m.labelOffset/l*f);w.x=
165
- b;w.y=Math.round(a);d(this,"afterGetLabelPosition",{pos:w,tickmarkOffset:r,index:q});return w};t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};t.prototype.getMarkPath=function(b,a,d,f,k,h){return h.crispLine([["M",b,a],["L",b+(k?0:-d),a+(k?d:0)]],f)};t.prototype.handleOverflow=function(b){var a=this.axis,d=a.options.labels,f=b.x,k=a.chart.chartWidth,h=a.chart.spacing,q=B(a.labelLeft,Math.min(a.pos,h[3]));h=B(a.labelRight,Math.max(a.isRadial?
166
- 0:a.pos+a.len,k-h[1]));var e=this.label,m=this.rotation,c={left:0,center:.5,right:1}[a.labelAlign||e.attr("align")],g=e.getBBox().width,l=a.getSlotWidth(this),v={},G=l,L=1,F;if(m||"justify"!==d.overflow)0>m&&f-c*g<q?F=Math.round(f/Math.cos(m*u)-q):0<m&&f+c*g>h&&(F=Math.round((k-f)/Math.cos(m*u)));else if(k=f+(1-c)*g,f-c*g<q?G=b.x+G*(1-c)-q:k>h&&(G=h-b.x+G*c,L=-1),G=Math.min(l,G),G<l&&"center"===a.labelAlign&&(b.x+=L*(l-G-c*(l-Math.min(g,G)))),g>G||a.autoRotation&&(e.styles||{}).width)F=G;F&&(this.shortenLabel?
167
- this.shortenLabel():(v.width=Math.floor(F)+"px",(d.style||{}).textOverflow||(v.textOverflow="ellipsis"),e.css(v)))};t.prototype.moveLabel=function(b,a){var d=this,f=d.label,h=d.axis,r=h.reversed,q=!1;f&&f.textStr===b?(d.movedLabel=f,q=!0,delete d.label):k(h.ticks,function(e){q||e.isNew||e===d||!e.label||e.label.textStr!==b||(d.movedLabel=e.label,q=!0,e.labelPos=d.movedLabel.xy,delete e.label)});if(!q&&(d.labelPos||f)){var e=d.labelPos||f.xy;f=h.horiz?r?0:h.width+h.left:e.x;h=h.horiz?e.y:r?h.width+
168
- h.left:0;d.movedLabel=d.createLabel({x:f,y:h},b,a);d.movedLabel&&d.movedLabel.attr({opacity:0})}};t.prototype.render=function(b,a,f){var k=this.axis,h=k.horiz,r=this.pos,q=B(this.tickmarkOffset,k.tickmarkOffset);r=this.getPosition(h,r,q,a);q=r.x;var e=r.y;k=h&&q===k.pos+k.len||!h&&e===k.pos?-1:1;h=B(f,this.label&&this.label.newOpacity,1);f=B(f,1);this.isActive=!0;this.renderGridLine(a,f,k);this.renderMark(r,f,k);this.renderLabel(r,a,h,b);this.isNew=!1;d(this,"afterRender")};t.prototype.renderGridLine=
169
- function(b,a,d){var f=this.axis,k=f.options,h={},q=this.pos,e=this.type,m=B(this.tickmarkOffset,f.tickmarkOffset),c=f.chart.renderer,g=this.gridLine,l=k.gridLineWidth,v=k.gridLineColor,G=k.gridLineDashStyle;"minor"===this.type&&(l=k.minorGridLineWidth,v=k.minorGridLineColor,G=k.minorGridLineDashStyle);g||(f.chart.styledMode||(h.stroke=v,h["stroke-width"]=l||0,h.dashstyle=G),e||(h.zIndex=1),b&&(a=0),this.gridLine=g=c.path().attr(h).addClass("highcharts-"+(e?e+"-":"")+"grid-line").add(f.gridGroup));
170
- if(g&&(d=f.getPlotLinePath({value:q+m,lineWidth:g.strokeWidth()*d,force:"pass",old:b})))g[b||this.isNew?"attr":"animate"]({d:d,opacity:a})};t.prototype.renderMark=function(b,a,d){var f=this.axis,k=f.options,h=f.chart.renderer,q=this.type,e=f.tickSize(q?q+"Tick":"tick"),m=b.x;b=b.y;var c=B(k["minor"!==q?"tickWidth":"minorTickWidth"],!q&&f.isXAxis?1:0);k=k["minor"!==q?"tickColor":"minorTickColor"];var g=this.mark,l=!g;e&&(f.opposite&&(e[0]=-e[0]),g||(this.mark=g=h.path().addClass("highcharts-"+(q?q+
171
- "-":"")+"tick").add(f.axisGroup),f.chart.styledMode||g.attr({stroke:k,"stroke-width":c})),g[l?"attr":"animate"]({d:this.getMarkPath(m,b,e[0],g.strokeWidth()*d,f.horiz,h),opacity:a}))};t.prototype.renderLabel=function(b,a,d,k){var h=this.axis,r=h.horiz,q=h.options,e=this.label,m=q.labels,c=m.step;h=B(this.tickmarkOffset,h.tickmarkOffset);var g=b.x;b=b.y;var l=!0;e&&f(g)&&(e.xy=b=this.getLabelPosition(g,b,e,r,m,h,k,c),this.isFirst&&!this.isLast&&!q.showFirstLabel||this.isLast&&!this.isFirst&&!q.showLastLabel?
172
- l=!1:!r||m.step||m.rotation||a||0===d||this.handleOverflow(b),c&&k%c&&(l=!1),l&&f(b.y)?(b.opacity=d,e[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(e.attr("y",-9999),this.isNewLabel=!0))};t.prototype.replaceMovedLabel=function(){var b=this.label,a=this.axis,d=a.reversed;if(b&&!this.isNew){var f=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:f,y:d,opacity:0},void 0,b.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};
173
- return t}();"";return n});J(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Color/Color.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/DefaultOptions.js"],a["Core/Axis/Tick.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h){var d=a.animObject,f=D.registerEventOptions,b=z.deg2rad,k=y.defaultOptions,B=h.arrayMax,t=h.arrayMin,u=h.clamp,K=h.correctFloat,w=h.defined,E=h.destroyObjectProperties,x=h.erase,
174
- r=h.error,q=h.extend,e=h.fireEvent,m=h.getMagnitude,c=h.isArray,g=h.isNumber,l=h.isString,v=h.merge,G=h.normalizeTickInterval,L=h.objectEach,F=h.pick,N=h.relativeLength,O=h.removeEvent,aa=h.splat,V=h.syncTimeout;a=function(){function a(c,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=
175
- this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(c,
176
- e)}a.prototype.init=function(c,b){var a=b.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!a:a;this.isXAxis=a;this.coll=this.coll||(a?"xAxis":"yAxis");e(this,"init",{userOptions:b});this.opposite=F(b.opposite,this.opposite);this.side=F(b.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var l=this.options,m=l.labels,d=l.type;this.userOptions=b;this.minPixelPadding=0;this.reversed=F(l.reversed,this.reversed);this.visible=l.visible;this.zoomEnabled=l.zoomEnabled;
177
- this.hasNames="category"===d||!0===l.categories;this.categories=l.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=w(l.linkedTo);this.ticks={};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;b=F(l.crosshair,aa(c.options.tooltip.crosshairs)[a?
178
- 0:1]);this.crosshair=!0===b?{}:b;-1===c.axes.indexOf(this)&&(a?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),c[this.coll].push(this));this.series=this.series||[];c.inverted&&!this.isZAxis&&a&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=g(m.rotation)?m.rotation:void 0;f(this,l);e(this,"afterInit")};a.prototype.setOptions=function(c){this.options=v(n.defaultXAxisOptions,"yAxis"===this.coll&&n.defaultYAxisOptions,[n.defaultTopAxisOptions,n.defaultRightAxisOptions,
179
- n.defaultBottomAxisOptions,n.defaultLeftAxisOptions][this.side],v(k[this.coll],c));e(this,"afterSetOptions",{userOptions:c})};a.prototype.defaultLabelFormatter=function(c){var e=this.axis;c=this.chart.numberFormatter;var b=g(this.value)?this.value:NaN,a=e.chart.time,l=this.dateTimeLabelFormat,m=k.lang,d=m.numericSymbols;m=m.numericSymbolMagnitude||1E3;var f=e.logarithmic?Math.abs(b):e.tickInterval,v=d&&d.length;if(e.categories)var q=""+this.value;else if(l)q=a.dateFormat(l,b);else if(v&&1E3<=f)for(;v--&&
180
- "undefined"===typeof q;)e=Math.pow(m,v+1),f>=e&&0===10*b%e&&null!==d[v]&&0!==b&&(q=c(b/e,-1)+d[v]);"undefined"===typeof q&&(q=1E4<=Math.abs(b)?c(b,-1):c(b,-1,void 0,""));return q};a.prototype.getSeriesExtremes=function(){var c=this,b=c.chart,a;e(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(e){if(e.visible||!b.options.chart.ignoreHiddenSeries){var l=e.options,
181
- m=l.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=m&&(m=null);if(c.isXAxis){if(l=e.xData,l.length){l=c.logarithmic?l.filter(c.validatePositiveValue):l;a=e.getXExtremes(l);var d=a.min;var f=a.max;g(d)||d instanceof Date||(l=l.filter(g),a=e.getXExtremes(l),d=a.min,f=a.max);l.length&&(c.dataMin=Math.min(F(c.dataMin,d),d),c.dataMax=Math.max(F(c.dataMax,f),f))}}else if(e=e.applyExtremes(),g(e.dataMin)&&(d=e.dataMin,c.dataMin=Math.min(F(c.dataMin,d),d)),g(e.dataMax)&&(f=e.dataMax,c.dataMax=Math.max(F(c.dataMax,
182
- f),f)),w(m)&&(c.threshold=m),!l.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});e(this,"afterGetSeriesExtremes")};a.prototype.translate=function(c,e,b,a,l,d){var m=this.linkedParent||this,f=a&&m.old?m.old.min:m.min,v=m.minPixelPadding;l=(m.isOrdinal||m.brokenAxis&&m.brokenAxis.hasBreaks||m.logarithmic&&l)&&m.lin2val;var q=1,k=0;a=a&&m.old?m.old.transA:m.transA;a||(a=m.transA);b&&(q*=-1,k=m.len);m.reversed&&(q*=-1,k-=q*(m.sector||m.len));e?(c=(c*q+k-v)/a+f,l&&(c=m.lin2val(c))):(l&&(c=m.val2lin(c)),
183
- c=g(f)?q*(c-f)*a+k+q*v+(g(d)?a*d:0):void 0);return c};a.prototype.toPixels=function(c,e){return this.translate(c,!1,!this.horiz,null,!0)+(e?0:this.pos)};a.prototype.toValue=function(c,e){return this.translate(c-(e?0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(c){function b(c,e,g){if("pass"!==G&&c<e||c>g)G?c=u(c,e,g):t=!0;return c}var a=this,l=a.chart,m=a.left,d=a.top,f=c.old,v=c.value,q=c.lineWidth,k=f&&l.oldChartHeight||l.chartHeight,h=f&&l.oldChartWidth||l.chartWidth,
184
- I=a.transB,r=c.translatedValue,G=c.force,L,w,x,B,t;c={value:v,lineWidth:q,old:f,force:G,acrossPanes:c.acrossPanes,translatedValue:r};e(this,"getPlotLinePath",c,function(c){r=F(r,a.translate(v,null,null,f));r=u(r,-1E5,1E5);L=x=Math.round(r+I);w=B=Math.round(k-r-I);g(r)?a.horiz?(w=d,B=k-a.bottom,L=x=b(L,m,m+a.width)):(L=m,x=h-a.right,w=B=b(w,d,d+a.height)):(t=!0,G=!1);c.path=t&&!G?null:l.renderer.crispLine([["M",L,w],["L",x,B]],q||1)});return c.path};a.prototype.getLinearTickPositions=function(c,e,
185
- g){var b=K(Math.floor(e/c)*c);g=K(Math.ceil(g/c)*c);var a=[],l;K(b+c)===b&&(l=20);if(this.single)return[e];for(e=b;e<=g;){a.push(e);e=K(e+c,l);if(e===m)break;var m=e}return a};a.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?F(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};a.prototype.getMinorTickPositions=function(){var c=this.options,e=this.tickPositions,g=this.minorTickInterval,b=this.pointRangePadding||0,a=this.min-b;b=this.max+b;
186
- var l=b-a,m=[];if(l&&l/g<this.len/3){var d=this.logarithmic;if(d)this.paddedTicks.forEach(function(c,e,b){e&&m.push.apply(m,d.getLogTickPositions(g,b[e-1],b[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())m=m.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(g),a,b,c.startOfWeek));else for(c=a+(e[0]-a)%g;c<=b&&c!==m[0];c+=g)m.push(c)}0!==m.length&&this.trimTicks(m);return m};a.prototype.adjustForMinRange=function(){var c=this.options,e=this.logarithmic,b=this.min,
187
- g=this.max,a=0,l,m,d,f;this.isXAxis&&"undefined"===typeof this.minRange&&!e&&(w(c.min)||w(c.max)?this.minRange=null:(this.series.forEach(function(c){d=c.xData;f=c.xIncrement?1:d.length-1;if(1<d.length)for(l=f;0<l;l--)if(m=d[l]-d[l-1],!a||m<a)a=m}),this.minRange=Math.min(5*a,this.dataMax-this.dataMin)));if(g-b<this.minRange){var v=this.dataMax-this.dataMin>=this.minRange;var q=this.minRange;var k=(q-g+b)/2;k=[b-k,F(c.min,b-k)];v&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);
188
- b=B(k);g=[b+q,F(c.max,b+q)];v&&(g[2]=e?e.log2lin(this.dataMax):this.dataMax);g=t(g);g-b<q&&(k[0]=g-q,k[1]=F(c.min,g-q),b=B(k))}this.min=b;this.max=g};a.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(e){var b=e.closestPointRange,g=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&w(b)&&g&&(c=w(c)?Math.min(c,b):b)});return c};a.prototype.nameToX=function(e){var b=c(this.categories),g=b?this.categories:this.names,a=e.options.x;e.series.requireSorting=
189
- !1;w(a)||(a=this.options.uniqueNames?b?g.indexOf(e.name):F(g.keys[e.name],-1):e.series.autoIncrement());if(-1===a){if(!b)var l=g.length}else l=a;"undefined"!==typeof l&&(this.names[l]=e.name,this.names.keys[e.name]=l);return l};a.prototype.updateNames=function(){var c=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(c){delete e.keys[c]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null;if(!e.points||e.isDirtyData)c.max=Math.max(c.max,
190
- e.xData.length-1),e.processData(),e.generatePoints();e.data.forEach(function(b,g){if(b&&b.options&&"undefined"!==typeof b.name){var a=c.nameToX(b);"undefined"!==typeof a&&a!==b.x&&(b.x=a,e.xData[g]=a)}})}))};a.prototype.setAxisTranslation=function(){var c=this,b=c.max-c.min,g=c.linkedParent,a=!!c.categories,m=c.isXAxis,d=c.axisPointRange||0,f=0,v=0,q=c.transA;if(m||a||d){var k=c.getClosest();g?(f=g.minPointOffset,v=g.pointRangePadding):c.series.forEach(function(e){var b=a?1:m?F(e.options.pointRange,
191
- k,0):c.axisPointRange||0,g=e.options.pointPlacement;d=Math.max(d,b);if(!c.single||a)e=e.is("xrange")?!m:m,f=Math.max(f,e&&l(g)?0:b/2),v=Math.max(v,e&&"on"===g?0:b)});g=c.ordinal&&c.ordinal.slope&&k?c.ordinal.slope/k:1;c.minPointOffset=f*=g;c.pointRangePadding=v*=g;c.pointRange=Math.min(d,c.single&&a?1:b);m&&(c.closestPointRange=k)}c.translationSlope=c.transA=q=c.staticScale||c.len/(b+v||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=q*f;e(this,"afterSetAxisTranslation")};a.prototype.minFromRange=
192
- function(){return this.max-this.range};a.prototype.setTickInterval=function(c){var b=this,a=b.chart,l=b.logarithmic,d=b.options,f=b.isXAxis,v=b.isLinked,q=d.tickPixelInterval,k=b.categories,h=b.softThreshold,I=d.maxPadding,L=d.minPadding,x=d.tickInterval,B=g(b.threshold)?b.threshold:null;b.dateTime||k||v||this.getTickAmount();var t=F(b.userMin,d.min);var p=F(b.userMax,d.max);if(v){b.linkedParent=a[b.coll][d.linkedTo];var E=b.linkedParent.getExtremes();b.min=F(E.min,E.dataMin);b.max=F(E.max,E.dataMax);
193
- d.type!==b.linkedParent.options.type&&r(11,1,a)}else{if(h&&w(B))if(b.dataMin>=B)E=B,L=0;else if(b.dataMax<=B){var u=B;I=0}b.min=F(t,E,b.dataMin);b.max=F(p,u,b.dataMax)}l&&(b.positiveValuesOnly&&!c&&0>=Math.min(b.min,F(b.dataMin,b.min))&&r(10,1,a),b.min=K(l.log2lin(b.min),16),b.max=K(l.log2lin(b.max),16));b.range&&w(b.max)&&(b.userMin=b.min=t=Math.max(b.dataMin,b.minFromRange()),b.userMax=p=b.max,b.range=null);e(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(k||b.axisPointRange||
194
- b.stacking&&b.stacking.usePercentage||v)&&w(b.min)&&w(b.max)&&(a=b.max-b.min)&&(!w(t)&&L&&(b.min-=a*L),!w(p)&&I&&(b.max+=a*I));g(b.userMin)||(g(d.softMin)&&d.softMin<b.min&&(b.min=t=d.softMin),g(d.floor)&&(b.min=Math.max(b.min,d.floor)));g(b.userMax)||(g(d.softMax)&&d.softMax>b.max&&(b.max=p=d.softMax),g(d.ceiling)&&(b.max=Math.min(b.max,d.ceiling)));h&&w(b.dataMin)&&(B=B||0,!w(t)&&b.min<B&&b.dataMin>=B?b.min=b.options.minRange?Math.min(B,b.max-b.minRange):B:!w(p)&&b.max>B&&b.dataMax<=B&&(b.max=b.options.minRange?
195
- Math.max(B,b.min+b.minRange):B));g(b.min)&&g(b.max)&&!this.chart.polar&&b.min>b.max&&(w(b.options.min)?b.max=b.min:w(b.options.max)&&(b.min=b.max));b.tickInterval=b.min===b.max||"undefined"===typeof b.min||"undefined"===typeof b.max?1:v&&b.linkedParent&&!x&&q===b.linkedParent.options.tickPixelInterval?x=b.linkedParent.tickInterval:F(x,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(b.max-b.min)*q/Math.max(b.len,q));f&&!c&&b.series.forEach(function(c){c.processData(b.min!==
196
- (b.old&&b.old.min)||b.max!==(b.old&&b.old.max))});b.setAxisTranslation();e(this,"initialAxisTranslation");b.pointRange&&!x&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));c=F(d.minTickInterval,b.dateTime&&!b.series.some(function(c){return c.noSharedTooltip})?b.closestPointRange:0);!x&&b.tickInterval<c&&(b.tickInterval=c);b.dateTime||b.logarithmic||x||(b.tickInterval=G(b.tickInterval,void 0,m(b.tickInterval),F(d.allowDecimals,.5>b.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));
197
- this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var c=this.options,b=c.tickPositions,g=this.getMinorTickInterval(),a=this.hasVerticalPanning(),l="colorAxis"===this.coll,m=(l||!a)&&c.startOnTick;a=(l||!a)&&c.endOnTick;l=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===g&&this.tickInterval?this.tickInterval/5:g;this.single=this.min===this.max&&
198
- w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=g=b&&b.slice();!g&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?g=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,
199
- this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(g=[this.min,this.max],r(19,!1,this.chart)),g.length>this.len&&(g=[g[0],g.pop()],g[0]===g[1]&&(g.length=1)),this.tickPositions=g,l&&(l=l.apply(this,[this.min,this.max])))&&(this.tickPositions=g=l);this.paddedTicks=g.slice(0);this.trimTicks(g,m,a);this.isLinked||(this.single&&2>g.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),
200
- b||l||this.adjustTickAmount());e(this,"afterSetTickPositions")};a.prototype.trimTicks=function(c,b,g){var a=c[0],l=c[c.length-1],m=!this.isOrdinal&&this.minPointOffset||0;e(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==a)this.min=a;else for(;this.min-m>c[0];)c.shift();if(g)this.max=l;else for(;this.max+m<c[c.length-1];)c.pop();0===c.length&&w(a)&&!this.options.tickPositions&&c.push((l+a)/2)}};a.prototype.alignToOthers=function(){var c={},e=this.options,b;!1!==this.chart.options.chart.alignTicks&&
201
- e.alignTicks&&!1!==e.startOnTick&&!1!==e.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(e){var g=e.options;g=[e.horiz?g.left:g.top,g.width,g.height,g.pane].join();e.series.length&&(c[g]?b=!0:c[g]=1)});return b};a.prototype.getTickAmount=function(){var c=this.options,e=c.tickPixelInterval,b=c.tickAmount;!w(c.tickInterval)&&!b&&this.len<e&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/e)+1);4>b&&(this.finalTickAmt=
202
- b,b=5);this.tickAmount=b};a.prototype.adjustTickAmount=function(){var c=this.options,e=this.tickInterval,b=this.tickPositions,a=this.tickAmount,l=this.finalTickAmt,m=b&&b.length,d=F(this.threshold,this.softThreshold?0:null);if(this.hasData()&&g(this.min)&&g(this.max)){if(m<a){for(;b.length<a;)b.length%2||this.min===d?b.push(K(b[b.length-1]+e)):b.unshift(K(b[0]-e));this.transA*=(m-1)/(a-1);this.min=c.startOnTick?b[0]:Math.min(this.min,b[0]);this.max=c.endOnTick?b[b.length-1]:Math.max(this.max,b[b.length-
203
- 1])}else m>a&&(this.tickInterval*=2,this.setTickPositions());if(w(l)){for(e=c=b.length;e--;)(3===l&&1===e%2||2>=l&&0<e&&e<c-1)&&b.splice(e,1);this.finalTickAmt=void 0}}};a.prototype.setScale=function(){var c=!1,b=!1;this.series.forEach(function(e){c=c||e.isDirtyData||e.isDirty;b=b||e.xAxis&&e.xAxis.isDirty||!1});this.setAxisSize();var g=this.len!==(this.old&&this.old.len);g||c||b||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||
204
- this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=g||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);e(this,"afterSetScale")};a.prototype.setExtremes=function(c,b,g,a,l){var m=this,d=m.chart;g=F(g,!0);m.series.forEach(function(c){delete c.kdTree});l=q(l,{min:c,max:b});
205
- e(m,"setExtremes",l,function(){m.userMin=c;m.userMax=b;m.eventArgs=l;g&&d.redraw(a)})};a.prototype.zoom=function(c,b){var g=this,a=this.dataMin,l=this.dataMax,m=this.options,d=Math.min(a,F(m.min,a)),f=Math.max(l,F(m.max,l));c={newMin:c,newMax:b};e(this,"zoom",c,function(c){var e=c.newMin,b=c.newMax;if(e!==g.min||b!==g.max)g.allowZoomOutside||(w(a)&&(e<d&&(e=d),e>f&&(e=f)),w(l)&&(b<d&&(b=d),b>f&&(b=f))),g.displayBtn="undefined"!==typeof e||"undefined"!==typeof b,g.setExtremes(e,b,!1,void 0,{trigger:"zoom"});
206
- c.zoomed=!0});return c.zoomed};a.prototype.setAxisSize=function(){var c=this.chart,e=this.options,b=e.offsets||[0,0,0,0],g=this.horiz,a=this.width=Math.round(N(F(e.width,c.plotWidth-b[3]+b[1]),c.plotWidth)),l=this.height=Math.round(N(F(e.height,c.plotHeight-b[0]+b[2]),c.plotHeight)),m=this.top=Math.round(N(F(e.top,c.plotTop+b[0]),c.plotHeight,c.plotTop));e=this.left=Math.round(N(F(e.left,c.plotLeft+b[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-l-m;this.right=c.chartWidth-a-e;this.len=Math.max(g?
207
- a:l,0);this.pos=g?e:m};a.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?K(c.lin2log(this.min)):this.min,max:c?K(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(c){var e=this.logarithmic,b=e?e.lin2log(this.min):this.min;e=e?e.lin2log(this.max):this.max;null===c||-Infinity===c?c=b:Infinity===c?c=e:b>c?c=b:e<c&&(c=e);return this.translate(c,0,1,0,1)};a.prototype.autoLabelAlign=
208
- function(c){var b=(F(c,0)-90*this.side+720)%360;c={align:"center"};e(this,"autoLabelAlign",c,function(c){15<b&&165>b?c.align="right":195<b&&345>b&&(c.align="left")});return c.align};a.prototype.tickSize=function(c){var b=this.options,g=F(b["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),a=b["tick"===c?"tickLength":"minorTickLength"];if(g&&a){"inside"===b[c+"Position"]&&(a=-a);var l=[a,g]}c={tickSize:l};e(this,"afterTickSize",c);return c.tickSize};a.prototype.labelMetrics=
209
- 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 c=this.options.labels,e=this.horiz,a=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/a),m=c.rotation,d=this.labelMetrics(),f=Math.max(this.max-this.min,0),v=function(c){var e=c/(l||1);e=1<e?Math.ceil(e):1;e*a>f&&Infinity!==c&&Infinity!==l&&f&&(e=Math.ceil(f/a));return K(e*
210
- a)},q=a,k,h,r=Number.MAX_VALUE;if(e){if(!c.staggerLines&&!c.step)if(g(m))var G=[m];else l<c.autoRotationLimit&&(G=c.autoRotation);G&&G.forEach(function(c){if(c===m||c&&-90<=c&&90>=c){h=v(Math.abs(d.h/Math.sin(b*c)));var e=h+Math.abs(c/360);e<r&&(r=e,k=c,q=h)}})}else c.step||(q=v(d.h));this.autoRotation=G;this.labelRotation=F(k,g(m)?m:0);return q};a.prototype.getSlotWidth=function(c){var e=this.chart,b=this.horiz,a=this.options.labels,l=Math.max(this.tickPositions.length-(this.categories?0:1),1),m=
211
- e.margin[3];if(c&&g(c.slotWidth))return c.slotWidth;if(b&&2>a.step)return a.rotation?0:(this.staggerLines||1)*this.len/l;if(!b){c=a.style.width;if(void 0!==c)return parseInt(String(c),10);if(m)return m-e.spacing[3]}return.33*e.chartWidth};a.prototype.renderUnsquish=function(){var c=this.chart,e=c.renderer,b=this.tickPositions,g=this.ticks,a=this.options.labels,m=a.style,d=this.horiz,f=this.getSlotWidth(),v=Math.max(1,Math.round(f-2*a.padding)),q={},k=this.labelMetrics(),h=m.textOverflow,r=0;l(a.rotation)||
212
- (q.rotation=a.rotation||0);b.forEach(function(c){c=g[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>r&&(r=c.label.textPxLength)});this.maxLabelLength=r;if(this.autoRotation)r>v&&r>k.h?q.rotation=this.labelRotation:this.labelRotation=0;else if(f){var G=v;if(!h){var F="clip";for(v=b.length;!d&&v--;){var L=b[v];if(L=g[L].label)L.styles&&"ellipsis"===L.styles.textOverflow?L.css({textOverflow:"clip"}):L.textPxLength>f&&L.css({width:f+"px"}),L.getBBox().height>this.len/b.length-
213
- (k.h-k.f)&&(L.specificTextOverflow="ellipsis")}}}q.rotation&&(G=r>.5*c.chartHeight?.33*c.chartHeight:r,h||(F="ellipsis"));if(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))q.align=this.labelAlign;b.forEach(function(c){var e=(c=g[c])&&c.label,b=m.width,a={};e&&(e.attr(q),c.shortenLabel?c.shortenLabel():G&&!b&&"nowrap"!==m.whiteSpace&&(G<e.textPxLength||"SPAN"===e.element.tagName)?(a.width=G+"px",h||(a.textOverflow=e.specificTextOverflow||F),e.css(a)):e.styles&&e.styles.width&&!a.width&&
214
- !b&&e.css({width:null}),delete e.specificTextOverflow,c.rotation=q.rotation)},this);this.tickRotCorr=e.rotCorr(k.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||this.options.showEmpty&&w(this.min)&&w(this.max)};a.prototype.addTitle=function(c){var e=this.chart.renderer,b=this.horiz,g=this.opposite,a=this.options.title,l=this.chart.styledMode,m;this.axisTitle||((m=a.textAlign)||(m=(b?{low:"left",middle:"center",high:"right"}:
215
- {low:g?"right":"left",middle:"center",high:g?"left":"right"})[a.align]),this.axisTitle=e.text(a.text||"",0,0,a.useHTML).attr({zIndex:7,rotation:a.rotation,align:m}).addClass("highcharts-axis-title"),l||this.axisTitle.css(v(a.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);l||a.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};a.prototype.generateTick=function(c){var e=this.ticks;e[c]?e[c].addLabel():e[c]=new p(this,c)};a.prototype.getOffset=
216
- function(){var c=this,b=this,g=b.chart,a=g.renderer,l=b.options,m=b.tickPositions,d=b.ticks,f=b.horiz,v=b.side,q=g.inverted&&!b.isZAxis?[1,0,3,2][v]:v,k=b.hasData(),h=l.title,r=l.labels,G=g.axisOffset;g=g.clipOffset;var x=[-1,1,1,-1][v],B=l.className,t=b.axisParent,p,E=0,u=0,N=0;b.showAxis=p=k||l.showEmpty;b.staggerLines=b.horiz&&r.staggerLines||void 0;if(!b.axisGroup){var n=function(e,b,g){return a.g(e).attr({zIndex:g}).addClass("highcharts-"+c.coll.toLowerCase()+b+" "+(c.isRadial?"highcharts-radial-axis"+
217
- b+" ":"")+(B||"")).add(t)};b.gridGroup=n("grid","-grid",l.gridZIndex);b.axisGroup=n("axis","",l.zIndex);b.labelGroup=n("axis-labels","-labels",r.zIndex)}k||b.isLinked?(m.forEach(function(c){b.generateTick(c)}),b.renderUnsquish(),b.reserveSpaceDefault=0===v||2===v||{1:"left",3:"right"}[v]===b.labelAlign,F(r.reserveSpace,"center"===b.labelAlign?!0:null,b.reserveSpaceDefault)&&m.forEach(function(c){N=Math.max(d[c].getLabelSize(),N)}),b.staggerLines&&(N*=b.staggerLines),b.labelOffset=N*(b.opposite?-1:
218
- 1)):L(d,function(c,e){c.destroy();delete d[e]});if(h&&h.text&&!1!==h.enabled&&(b.addTitle(p),p&&!1!==h.reserveSpace)){b.titleOffset=E=b.axisTitle.getBBox()[f?"height":"width"];var y=h.offset;u=w(y)?0:F(h.margin,f?5:10)}b.renderLine();b.offset=x*F(l.offset,G[v]?G[v]+(l.margin||0):0);b.tickRotCorr=b.tickRotCorr||{x:0,y:0};h=0===v?-b.labelMetrics().h:2===v?b.tickRotCorr.y:0;k=Math.abs(N)+u;N&&(k=k-h+x*(f?F(r.y,b.tickRotCorr.y+8*x):r.x));b.axisTitleMargin=F(y,k);b.getMaxLabelDimensions&&(b.maxLabelDimensions=
219
- b.getMaxLabelDimensions(d,m));f=this.tickSize("tick");G[v]=Math.max(G[v],(b.axisTitleMargin||0)+E+x*b.offset,k,m&&m.length&&f?f[0]+x*b.offset:0);l=l.offset?0:2*Math.floor(b.axisLine.strokeWidth()/2);g[q]=Math.max(g[q],l);e(this,"afterGetOffset")};a.prototype.getLinePath=function(c){var e=this.chart,b=this.opposite,g=this.offset,a=this.horiz,l=this.left+(b?this.width:0)+g;g=e.chartHeight-this.bottom-(b?this.height:0)+g;b&&(c*=-1);return e.renderer.crispLine([["M",a?this.left:l,a?g:this.top],["L",a?
220
- e.chartWidth-this.right:l,a?g:e.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,zIndex:7}))};a.prototype.getTitlePosition=function(){var c=this.horiz,b=this.left,g=this.top,a=this.len,l=this.options.title,m=c?b:g,d=this.opposite,f=this.offset,v=l.x,q=l.y,k=this.axisTitle,
221
- h=this.chart.renderer.fontMetrics(l.style.fontSize,k);k=Math.max(k.getBBox(null,0).height-h.h-1,0);a={low:m+(c?0:a),middle:m+a/2,high:m+(c?a:0)}[l.align];b=(c?g+this.height:b)+(c?1:-1)*(d?-1:1)*this.axisTitleMargin+[-k,k,h.f,-k][this.side];c={x:c?a+v:b+(d?this.width:0)+f+v,y:c?b+q-(d?this.height:0)+f:a+q};e(this,"afterGetTitlePosition",{titlePosition:c});return c};a.prototype.renderMinorTick=function(c){var e=this.chart.hasRendered&&this.old,b=this.minorTicks;b[c]||(b[c]=new p(this,c,"minor"));e&&
222
- b[c].isNew&&b[c].render(null,!0);b[c].render(null,!1,1)};a.prototype.renderTick=function(c,e){var b=this.ticks,g=this.chart.hasRendered&&this.old;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)b[c]||(b[c]=new p(this,c)),g&&b[c].isNew&&b[c].render(e,!0,-1),b[c].render(e)};a.prototype.render=function(){var c=this,b=c.chart,a=c.logarithmic,l=c.options,m=c.isLinked,f=c.tickPositions,v=c.axisTitle,q=c.ticks,k=c.minorTicks,h=c.alternateBands,r=l.stackLabels,G=l.alternateGridColor,
223
- F=c.tickmarkOffset,w=c.axisLine,x=c.showAxis,B=d(b.renderer.globalAnimation),t,E;c.labelEdge.length=0;c.overlap=!1;[q,k,h].forEach(function(c){L(c,function(c){c.isActive=!1})});if(c.hasData()||m)c.minorTickInterval&&!c.categories&&c.getMinorTickPositions().forEach(function(e){c.renderMinorTick(e)}),f.length&&(f.forEach(function(e,b){c.renderTick(e,b)}),F&&(0===c.min||c.single)&&(q[-1]||(q[-1]=new p(c,-1,null,!0)),q[-1].render(-1))),G&&f.forEach(function(e,g){E="undefined"!==typeof f[g+1]?f[g+1]+F:
224
- c.max-F;0===g%2&&e<c.max&&E<=c.max+(b.polar?-F:F)&&(h[e]||(h[e]=new z.PlotLineOrBand(c)),t=e+F,h[e].options={from:a?a.lin2log(t):t,to:a?a.lin2log(E):E,color:G,className:"highcharts-alternate-grid"},h[e].render(),h[e].isActive=!0)}),c._addedPlotLB||(c._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||[]).forEach(function(e){c.addPlotBandOrLine(e)}));[q,k,h].forEach(function(c){var e=[],g=B.duration;L(c,function(c,b){c.isActive||(c.render(b,!1,0),c.isActive=!1,e.push(b))});V(function(){for(var b=
225
- e.length;b--;)c[e[b]]&&!c[e[b]].isActive&&(c[e[b]].destroy(),delete c[e[b]])},c!==h&&b.hasRendered&&g?g:0)});w&&(w[w.isPlaced?"animate":"attr"]({d:this.getLinePath(w.strokeWidth())}),w.isPlaced=!0,w[x?"show":"hide"](x));v&&x&&(l=c.getTitlePosition(),g(l.y)?(v[v.isNew?"attr":"animate"](l),v.isNew=!1):(v.attr("y",-9999),v.isNew=!0));r&&r.enabled&&c.stacking&&c.stacking.renderStackTotals();c.old={len:c.len,max:c.max,min:c.min,transA:c.transA,userMax:c.userMax,userMin:c.userMin};c.isDirty=!1;e(this,"afterRender")};
226
- 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 b=this,g=b.plotLinesAndBands,a=this.eventOptions;e(this,"destroy",{keepEvents:c});c||O(b);[b.ticks,b.minorTicks,b.alternateBands].forEach(function(c){E(c)});if(g)for(c=g.length;c--;)g[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){b[c]&&
227
- (b[c]=b[c].destroy())});for(var l in b.plotLinesAndBandsGroups)b.plotLinesAndBandsGroups[l]=b.plotLinesAndBandsGroups[l].destroy();L(b,function(c,e){-1===b.getKeepProps().indexOf(e)&&delete b[e]});this.eventOptions=a};a.prototype.drawCrosshair=function(c,b){var g=this.crosshair,a=F(g&&g.snap,!0),l=this.chart,m,d=this.cross;e(this,"drawCrosshair",{e:c,point:b});c||(c=this.cross&&this.cross.e);if(g&&!1!==(w(b)||!a)){a?w(b)&&(m=F("colorAxis"!==this.coll?b.crosshairPos:null,this.isXAxis?b.plotX:this.len-
228
- b.plotY)):m=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(w(m)){var f={value:b&&(this.isXAxis?b.x:F(b.stackY,b.y)),translatedValue:m};l.polar&&q(f,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:b});f=this.getPlotLinePath(f)||null}if(!w(f)){this.hideCrosshair();return}a=this.categories&&!this.isRadial;d||(this.cross=d=l.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(a?"category ":"thin ")+(g.className||"")).attr({zIndex:F(g.zIndex,2)}).add(),l.styledMode||
229
- (d.attr({stroke:g.color||(a?C.parse(A.highlightColor20).setOpacity(.25).get():A.neutralColor20),"stroke-width":F(g.width,1)}).css({"pointer-events":"none"}),g.dashStyle&&d.attr({dashstyle:g.dashStyle})));d.show().attr({d:f});a&&!g.width&&d.attr({"stroke-width":this.transA});this.cross.e=c}else this.hideCrosshair();e(this,"afterDrawCrosshair",{e:c,point:b})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();e(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var c=
230
- this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};a.prototype.validatePositiveValue=function(c){return g(c)&&0<c};a.prototype.update=function(c,b){var e=this.chart;c=v(this.userOptions,c);this.destroy(!0);this.init(e,c);e.isDirtyBox=!0;F(b,!0)&&e.redraw()};a.prototype.remove=function(c){for(var b=this.chart,e=this.coll,g=this.series,a=g.length;a--;)g[a]&&g[a].remove(!1);x(b.axes,this);x(b[e],this);b[e].forEach(function(c,b){c.options.index=c.userOptions.index=b});this.destroy();
231
- b.isDirtyBox=!0;F(c,!0)&&b.redraw()};a.prototype.setTitle=function(c,b){this.update({title:c},b)};a.prototype.setCategories=function(c,b){this.update({categories:c},b)};a.defaultOptions=n.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a}();"";return a});J(a,"Core/Axis/DateTimeAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,n){var u=n.addEvent,D=n.getMagnitude,z=n.normalizeTickInterval,A=n.timeUnits,y=function(){function a(a){this.axis=
232
- a}a.prototype.normalizeTimeTickInterval=function(a,d){var f=d||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];d=f[f.length-1];var b=A[d[0]],k=d[1],h;for(h=0;h<f.length&&!(d=f[h],b=A[d[0]],k=d[1],f[h+1]&&a<=(b*k[k.length-1]+A[f[h+1][0]])/2);h++);b===A.year&&a<5*b&&(k=[1,2,5]);a=z(a/b,k,"year"===d[0]?Math.max(D(a/b),1):1);return{unitRange:b,count:a,unitName:d[0]}};
233
- return a}();n=function(){function a(){}a.compose=function(a){a.keepProps.push("dateTime");a.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};u(a,"init",function(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new y(this))})};a.AdditionsClass=y;return a}();n.compose(a);return n});J(a,"Core/Axis/LogarithmicAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,n){var u=n.addEvent,D=n.getMagnitude,
234
- z=n.normalizeTickInterval,A=n.pick,y=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,d,f,b){var k=this.axis,h=k.len,t=k.options,p=[];b||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),p=k.getLinearTickPositions(a,d,f);else if(.08<=a){var u=Math.floor(d),w,E=t=void 0;for(h=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];u<f+1&&!E;u++){var x=h.length;for(w=0;w<x&&!E;w++){var r=this.log2lin(this.lin2log(u)*h[w]);r>d&&(!b||t<=f)&&"undefined"!==typeof t&&p.push(t);
235
- t>f&&(E=!0);t=r}}}else d=this.lin2log(d),f=this.lin2log(f),a=b?k.getMinorTickInterval():t.tickInterval,a=A("auto"===a?null:a,this.minorAutoInterval,t.tickPixelInterval/(b?5:1)*(f-d)/((b?h/k.tickPositions.length:h)||1)),a=z(a,void 0,D(a)),p=k.getLinearTickPositions(a,d,f).map(this.log2lin),b||(this.minorAutoInterval=a/5);b||(k.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}();n=function(){function a(){}
236
- a.compose=function(a){a.keepProps.push("logarithmic");u(a,"init",function(a){var d=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:d||(this.logarithmic=new y(this))});u(a,"afterInit",function(){var a=this.logarithmic;a&&(this.lin2val=function(d){return a.lin2log(d)},this.val2lin=function(d){return a.log2lin(d)})})};return a}();n.compose(a);return n});J(a,"Core/Axis/PlotLineOrBand.js",[a["Core/Axis/Axis.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,
237
- n,C){var u=C.arrayMax,z=C.arrayMin,A=C.defined,y=C.destroyObjectProperties,p=C.erase,h=C.extend,d=C.fireEvent,f=C.isNumber,b=C.merge,k=C.objectEach,B=C.pick,t=function(){function a(b,a){this.axis=b;a&&(this.options=a,this.id=a.id)}a.prototype.render=function(){d(this,"render");var a=this,f=a.axis,h=f.horiz,x=f.logarithmic,r=a.options,q=r.label,e=a.label,m=r.to,c=r.from,g=r.value,l=A(c)&&A(m),v=A(g),G=a.svgElem,L=!G,F=[],t=r.color,p=B(r.zIndex,0),u=r.events;F={"class":"highcharts-plot-"+(l?"band ":
238
- "line ")+(r.className||"")};var y={},H=f.chart.renderer,I=l?"bands":"lines";x&&(c=x.log2lin(c),m=x.log2lin(m),g=x.log2lin(g));f.chart.styledMode||(v?(F.stroke=t||n.neutralColor40,F["stroke-width"]=B(r.width,1),r.dashStyle&&(F.dashstyle=r.dashStyle)):l&&(F.fill=t||n.highlightColor10,r.borderWidth&&(F.stroke=r.borderColor,F["stroke-width"]=r.borderWidth)));y.zIndex=p;I+="-"+p;(x=f.plotLinesAndBandsGroups[I])||(f.plotLinesAndBandsGroups[I]=x=H.g("plot-"+I).attr(y).add());L&&(a.svgElem=G=H.path().attr(F).add(x));
239
- if(v)F=f.getPlotLinePath({value:g,lineWidth:G.strokeWidth(),acrossPanes:r.acrossPanes});else if(l)F=f.getPlotBandPath(c,m,r);else return;!a.eventsAdded&&u&&(k(u,function(c,b){G.on(b,function(c){u[b].apply(a,[c])})}),a.eventsAdded=!0);(L||!G.d)&&F&&F.length?G.attr({d:F}):G&&(F?(G.show(!0),G.animate({d:F})):G.d&&(G.hide(),e&&(a.label=e=e.destroy())));q&&(A(q.text)||A(q.formatter))&&F&&F.length&&0<f.width&&0<f.height&&!F.isFlat?(q=b({align:h&&l&&"center",x:h?!l&&4:10,verticalAlign:!h&&l&&"middle",y:h?
240
- l?16:10:l?6:-4,rotation:h&&!l&&90},q),this.renderLabel(q,F,l,p)):e&&e.hide();return a};a.prototype.renderLabel=function(b,a,d,f){var k=this.label,q=this.axis.chart.renderer;k||(k={align:b.textAlign||b.align,rotation:b.rotation,"class":"highcharts-plot-"+(d?"band":"line")+"-label "+(b.className||"")},k.zIndex=f,f=this.getLabelText(b),this.label=k=q.text(f,0,0,b.useHTML).attr(k).add(),this.axis.chart.styledMode||k.css(b.style));q=a.xBounds||[a[0][1],a[1][1],d?a[2][1]:a[0][1]];a=a.yBounds||[a[0][2],
241
- a[1][2],d?a[2][2]:a[0][2]];d=z(q);f=z(a);k.align(b,!1,{x:d,y:f,width:u(q)-d,height:u(a)-f});k.show(!0)};a.prototype.getLabelText=function(b){return A(b.formatter)?b.formatter.call(this):b.text};a.prototype.destroy=function(){p(this.axis.plotLinesAndBands,this);delete this.axis;y(this)};return a}();h(a.prototype,{getPlotBandPath:function(b,a,d){void 0===d&&(d=this.options);var k=this.getPlotLinePath({value:a,force:!0,acrossPanes:d.acrossPanes});d=this.getPlotLinePath({value:b,force:!0,acrossPanes:d.acrossPanes});
242
- var h=[],r=this.horiz,q=1;b=!f(this.min)||!f(this.max)||b<this.min&&a<this.min||b>this.max&&a>this.max;if(d&&k){if(b){var e=d.toString()===k.toString();q=0}for(b=0;b<d.length;b+=2){a=d[b];var m=d[b+1],c=k[b],g=k[b+1];"M"!==a[0]&&"L"!==a[0]||"M"!==m[0]&&"L"!==m[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==g[0]&&"L"!==g[0]||(r&&c[1]===a[1]?(c[1]+=q,g[1]+=q):r||c[2]!==a[2]||(c[2]+=q,g[2]+=q),h.push(["M",a[1],a[2]],["L",m[1],m[2]],["L",g[1],g[2]],["L",c[1],c[2]],["Z"]));h.isFlat=e}}return h},addPlotBand:function(b){return this.addPlotBandOrLine(b,
243
- "plotBands")},addPlotLine:function(b){return this.addPlotBandOrLine(b,"plotLines")},addPlotBandOrLine:function(b,a){var d=this,f=new t(this,b),k=this.userOptions;this.visible&&(f=f.render());if(f){this._addedPlotLB||(this._addedPlotLB=!0,(k.plotLines||[]).concat(k.plotBands||[]).forEach(function(b){d.addPlotBandOrLine(b)}));if(a){var h=k[a]||[];h.push(b);k[a]=h}this.plotLinesAndBands.push(f)}return f},removePlotBandOrLine:function(b){var a=this.plotLinesAndBands,d=this.options,f=this.userOptions;
244
- if(a){for(var k=a.length;k--;)a[k].id===b&&a[k].destroy();[d.plotLines||[],f.plotLines||[],d.plotBands||[],f.plotBands||[]].forEach(function(a){for(k=a.length;k--;)(a[k]||{}).id===b&&p(a,a[k])})}},removePlotBand:function(b){this.removePlotBandOrLine(b)},removePlotLine:function(b){this.removePlotBandOrLine(b)}});return t});J(a,"Core/Tooltip.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,
245
- D,z){var u=a.format,y=n.doc,p=z.clamp,h=z.css,d=z.defined,f=z.discardElement,b=z.extend,k=z.fireEvent,B=z.isArray,t=z.isNumber,H=z.isString,K=z.merge,w=z.pick,E=z.splat,x=z.syncTimeout,r=z.timeUnits;"";a=function(){function a(b,a){this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=b;this.init(b,a)}a.prototype.applyFilter=function(){var b=this.chart;b.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+
246
- b.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.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+b.index+"{filter:url(#drop-shadow-"+b.index+")}"})};a.prototype.bodyFormatter=
247
- function(b){return b.map(function(b){var c=b.series.tooltipOptions;return(c[(b.point.formatPrefix||"point")+"Formatter"]||b.point.tooltipFormatter).call(b.point,c[(b.point.formatPrefix||"point")+"Format"]||"")})};a.prototype.cleanSplit=function(b){this.chart.series.forEach(function(e){var c=e&&e.tt;c&&(!c.isActive||b?e.tt=c.destroy():c.isActive=!1)})};a.prototype.defaultFormatter=function(b){var e=this.points||E(this);var c=[b.tooltipFooterHeaderFormatter(e[0])];c=c.concat(b.bodyFormatter(e));c.push(b.tooltipFooterHeaderFormatter(e[0],
248
- !0));return c};a.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),f(this.container));z.clearTimeout(this.hideTimer);z.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(b,a){var c=this.chart;var e=c.pointer;var l=c.inverted,d=c.plotTop,m=c.plotLeft,f=0,k=0,q,h;b=E(b);this.followPointer&&a?("undefined"===typeof a.chartX&&(a=e.normalize(a)),
249
- e=[a.chartX-m,a.chartY-d]):b[0].tooltipPos?e=b[0].tooltipPos:(b.forEach(function(b){q=b.series.yAxis;h=b.series.xAxis;f+=b.plotX||0;k+=b.plotLow?(b.plotLow+(b.plotHigh||0))/2:b.plotY||0;h&&q&&(l?(f+=d+c.plotHeight-h.len-h.pos,k+=m+c.plotWidth-q.len-q.pos):(f+=h.pos-m,k+=q.pos-d))}),f/=b.length,k/=b.length,e=[l?c.plotWidth-k:f,l?c.plotHeight-f:k],this.shared&&1<b.length&&a&&(l?e[0]=a.chartX-m:e[1]=a.chartY-d));return e.map(Math.round)};a.prototype.getDateFormat=function(b,a,c,g){var e=this.chart.time,
250
- d=e.dateFormat("%m-%d %H:%M:%S.%L",a),m={millisecond:15,second:12,minute:9,hour:6,day:3},f="millisecond";for(k in r){if(b===r.week&&+e.dateFormat("%w",a)===c&&"00:00:00.000"===d.substr(6)){var k="week";break}if(r[k]>b){k=f;break}if(m[k]&&d.substr(m[k])!=="01-01 00:00:00.000".substr(m[k]))break;"week"!==k&&(f=k)}if(k)var q=e.resolveDTLFormat(g[k]).main;return q};a.prototype.getLabel=function(){var b=this,a=this.chart.renderer,c=this.chart.styledMode,g=this.options,l="tooltip"+(d(g.className)?" "+g.className:
251
- ""),f=g.style&&g.style.pointerEvents||(!this.followPointer&&g.stickOnContact?"auto":"none"),k,q=function(){b.inContact=!0},r=function(){var c=b.chart.hoverSeries;b.inContact=!1;if(c&&c.onMouseOut)c.onMouseOut()};if(!this.label){if(this.outside){var w=this.chart.options.chart.style,x=D.getRendererType();this.container=k=n.doc.createElement("div");k.className="highcharts-tooltip-container";h(k,{position:"absolute",top:"1px",pointerEvents:f,zIndex:Math.max(this.options.style&&this.options.style.zIndex||
252
- 0,(w&&w.zIndex||0)+3)});n.doc.body.appendChild(k);this.renderer=a=new x(k,0,0,w,void 0,void 0,a.styledMode)}this.split?this.label=a.g(l):(this.label=a.label("",0,0,g.shape||"callout",null,null,g.useHTML,null,l).attr({padding:g.padding,r:g.borderRadius}),c||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:f}).shadow(g.shadow));c&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(b.outside&&!b.split){var t=this.label,
253
- B=t.xSetter,p=t.ySetter;t.xSetter=function(c){B.call(t,b.distance);k.style.left=c+"px"};t.ySetter=function(c){p.call(t,b.distance);k.style.top=c+"px"}}this.label.on("mouseenter",q).on("mouseleave",r).attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(b,a,c){var e=this.chart,l=this.distance,d={},m=e.inverted&&c.h||0,f,k=this.outside,q=k?y.documentElement.clientWidth-2*l:e.chartWidth,h=k?Math.max(y.body.scrollHeight,y.documentElement.scrollHeight,y.body.offsetHeight,y.documentElement.offsetHeight,
254
- y.documentElement.clientHeight):e.chartHeight,r=e.pointer.getChartPosition(),x=function(g){var d="x"===g;return[g,d?q:h,d?b:a].concat(k?[d?b*r.scaleX:a*r.scaleY,d?r.left-l+(c.plotX+e.plotLeft)*r.scaleX:r.top-l+(c.plotY+e.plotTop)*r.scaleY,0,d?q:h]:[d?b:a,d?c.plotX+e.plotLeft:c.plotY+e.plotTop,d?e.plotLeft:e.plotTop,d?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},t=x("y"),B=x("x"),p=!this.followPointer&&w(c.ttBelow,!e.inverted===!!c.negative),E=function(c,b,e,a,g,f,v){var q=k?"y"===c?l*r.scaleY:
255
- l*r.scaleX:l,h=(e-a)/2,G=a<g-l,F=g+l+a<b,L=g-q-e+h;g=g+q-h;if(p&&F)d[c]=g;else if(!p&&G)d[c]=L;else if(G)d[c]=Math.min(v-a,0>L-m?L:L-m);else if(F)d[c]=Math.max(f,g+m+e>b?g:g+m);else return!1},u=function(c,b,e,a,g){var m;g<l||g>b-l?m=!1:d[c]=g<e/2?1:g>b-a/2?b-a-2:g-e/2;return m},n=function(c){var b=t;t=B;B=b;f=c},M=function(){!1!==E.apply(0,t)?!1!==u.apply(0,B)||f||(n(!0),M()):f?d.x=d.y=0:(n(!0),M())};(e.inverted||1<this.len)&&n();M();return d};a.prototype.getXDateFormat=function(b,a,c){a=a.dateTimeLabelFormats;
256
- var e=c&&c.closestPointRange;return(e?this.getDateFormat(e,b.x,c.options.startOfWeek,a):a.day)||a.year};a.prototype.hide=function(b){var e=this;z.clearTimeout(this.hideTimer);b=w(b,this.options.hideDelay,500);this.isHidden||(this.hideTimer=x(function(){e.getLabel().fadeOut(b?void 0:b);e.isHidden=!0},b))};a.prototype.init=function(b,a){this.chart=b;this.options=a;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=a.split&&!b.inverted&&!b.polar;this.shared=a.shared||this.split;this.outside=
257
- w(a.outside,!(!b.scrollablePixelsX&&!b.scrollablePixelsY))};a.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)};a.prototype.move=function(e,a,c,g){var l=this,d=l.now,m=!1!==l.options.animation&&!l.isHidden&&(1<Math.abs(e-d.x)||1<Math.abs(a-d.y)),f=l.followPointer||1<l.len;b(d,{x:m?(2*d.x+e)/3:e,y:m?(d.y+a)/2:a,anchorX:f?void 0:m?(2*d.anchorX+c)/3:c,anchorY:f?void 0:m?(d.anchorY+g)/2:g});l.getLabel().attr(d);l.drawTracker();m&&(z.clearTimeout(this.tooltipTimeout),
258
- this.tooltipTimeout=setTimeout(function(){l&&l.move(e,a,c,g)},32))};a.prototype.refresh=function(b,a){var c=this.chart,e=this.options,l=E(b),d=l[0],m={},f=[],q=e.formatter||this.defaultFormatter;m=this.shared;var h=c.styledMode;if(e.enabled){z.clearTimeout(this.hideTimer);this.followPointer=!this.split&&d.series.tooltipOptions.followPointer;var r=this.getAnchor(b,a);var x=r[0];var t=r[1];!m||!B(b)&&b.series&&b.series.noSharedTooltip?m=d.getLabelConfig():(c.pointer.applyInactiveState(l),l.forEach(function(c){c.setState("hover");
259
- f.push(c.getLabelConfig())}),m={x:d.category,y:d.y},m.points=f);this.len=f.length;b=q.call(m,this);q=d.series;this.distance=w(q.tooltipOptions.distance,16);if(!1===b)this.hide();else{if(this.split)this.renderSplit(b,l);else if(l=x,m=t,a&&c.pointer.isDirectTouch&&(l=a.chartX-c.plotLeft,m=a.chartY-c.plotTop),c.polar||!1===q.options.clip||q.shouldShowTooltip(l,m))a=this.getLabel(),e.style.width&&!h||a.css({width:this.chart.spacingBox.width+"px"}),a.attr({text:b&&b.join?b.join(""):b}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+
260
- w(d.colorIndex,q.colorIndex)),h||a.attr({stroke:e.borderColor||d.color||q.color||C.neutralColor60}),this.updatePosition({plotX:x,plotY:t,negative:d.negative,ttBelow:d.ttBelow,h:r[2]||0});else{this.hide();return}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}k(this,"refresh")}};a.prototype.renderSplit=function(e,a){function c(c,b,e,a,l){void 0===l&&(l=!0);e?(b=S?0:da,c=p(c-a/2,Q.left,Q.right-a-(g.outside?K:0))):(b-=D,c=l?c-a-z:c+z,c=p(c,l?c:Q.left,Q.right));return{x:c,
261
- y:b}}var g=this,l=g.chart,d=g.chart,m=d.chartWidth,f=d.chartHeight,k=d.plotHeight,q=d.plotLeft,h=d.plotTop,r=d.pointer,x=d.scrollablePixelsY;x=void 0===x?0:x;var t=d.scrollablePixelsX,B=d.scrollingContainer;B=void 0===B?{scrollLeft:0,scrollTop:0}:B;var E=B.scrollLeft;B=B.scrollTop;var u=d.styledMode,z=g.distance,A=g.options,M=g.options.positioner,Q=g.outside&&"number"!==typeof t?y.documentElement.getBoundingClientRect():{left:E,right:E+m,top:B,bottom:B+f},U=g.getLabel(),T=this.renderer||l.renderer,
262
- S=!(!l.xAxis[0]||!l.xAxis[0].opposite);l=r.getChartPosition();var K=l.left;l=l.top;var D=h+B,ca=0,da=k-x;H(e)&&(e=[!1,e]);e=e.slice(0,a.length+1).reduce(function(b,e,l){if(!1!==e&&""!==e){l=a[l-1]||{isHeader:!0,plotX:a[0].plotX,plotY:k,series:{}};var d=l.isHeader,m=d?g:l.series;e=e.toString();var f=m.tt,v=l.isHeader;var r=l.series;var G="highcharts-color-"+w(l.colorIndex,r.colorIndex,"none");f||(f={padding:A.padding,r:A.borderRadius},u||(f.fill=A.backgroundColor,f["stroke-width"]=A.borderWidth),f=
263
- T.label("",0,0,A[v?"headerShape":"shape"]||"callout",void 0,void 0,A.useHTML).addClass((v?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+G).attr(f).add(U));f.isActive=!0;f.attr({text:e});u||f.css(A.style).shadow(A.shadow).attr({stroke:A.borderColor||l.color||r.color||C.neutralColor80});m=m.tt=f;v=m.getBBox();e=v.width+m.strokeWidth();d&&(ca=v.height,da+=ca,S&&(D-=ca));r=l.plotX;r=void 0===r?0:r;G=l.plotY;G=void 0===G?0:G;f=l.series;if(l.isHeader){r=q+r;var F=h+k/2}else{var L=f.xAxis,x=
264
- f.yAxis;r=L.pos+p(r,-z,L.len+z);f.shouldShowTooltip(0,x.pos-h+G,{ignoreX:!0})&&(F=x.pos+G)}r=p(r,Q.left-z,Q.right+z);"number"===typeof F?(v=v.height+1,G=M?M.call(g,e,v,l):c(r,F,d,e),b.push({align:M?0:void 0,anchorX:r,anchorY:F,boxWidth:e,point:l,rank:w(G.rank,d?1:0),size:v,target:G.y,tt:m,x:G.x})):m.isActive=!1}return b},[]);!M&&e.some(function(c){var b=(g.outside?K:0)+c.anchorX;return b<Q.left&&b+c.boxWidth<Q.right?!0:b<K-Q.left+c.boxWidth&&Q.right-b>b})&&(e=e.map(function(e){var a=c(e.anchorX,e.anchorY,
265
- e.point.isHeader,e.boxWidth,!1);return b(e,{target:a.y,x:a.x})}));g.cleanSplit();n.distribute(e,da);var Y=K,J=K;e.forEach(function(c){var b=c.x,e=c.boxWidth;c=c.isHeader;c||(g.outside&&K+b<Y&&(Y=K+b),!c&&g.outside&&Y+e>J&&(J=K+b))});e.forEach(function(c){var b=c.x,e=c.anchorX,a=c.pos,l=c.point.isHeader;a={visibility:"undefined"===typeof a?"hidden":"inherit",x:b,y:a+D,anchorX:e,anchorY:c.anchorY};if(g.outside&&b<e){var d=K-Y;0<d&&(l||(a.x=b+d,a.anchorX=e+d),l&&(a.x=(J-Y)/2,a.anchorX=e+d))}c.tt.attr(a)});
266
- e=g.container;x=g.renderer;g.outside&&e&&x&&(d=U.getBBox(),x.setSize(d.width+d.x,d.height+d.y,!1),e.style.left=Y+"px",e.style.top=l+"px")};a.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var b=this.chart,a=this.label,c=b.hoverPoint;if(a&&c){var g={x:0,y:0,width:0,height:0};c=this.getAnchor(c);var l=a.getBBox();c[0]+=b.plotLeft-a.translateX;c[1]+=b.plotTop-a.translateY;g.x=Math.min(0,c[0]);g.y=Math.min(0,c[1]);g.width=
267
- 0>c[0]?Math.max(Math.abs(c[0]),l.width-c[0]):Math.max(Math.abs(c[0]),l.width);g.height=0>c[1]?Math.max(Math.abs(c[1]),l.height-Math.abs(c[1])):Math.max(Math.abs(c[1]),l.height);this.tracker?this.tracker.attr(g):(this.tracker=a.renderer.rect(g).addClass("highcharts-tracker").add(a),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,
268
- 'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(b,a){var c=a?"footer":"header",e=b.series,l=e.tooltipOptions,d=l.xDateFormat,f=e.xAxis,m=f&&"datetime"===f.options.type&&t(b.key),q=l[c+"Format"];a={isFooter:a,labelConfig:b};k(this,"headerFormatter",a,function(c){m&&!d&&(d=this.getXDateFormat(b,l,f));m&&d&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(c){q=q.replace("{point."+c+"}","{point."+c+":"+d+"}")});e.chart.styledMode&&(q=this.styledModeFormat(q));
269
- c.text=u(q,{point:b,series:e},this.chart)});return a.text};a.prototype.update=function(b){this.destroy();K(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,K(!0,this.options,b))};a.prototype.updatePosition=function(b){var e=this.chart,c=e.pointer,a=this.getLabel(),l=b.plotX+e.plotLeft;e=b.plotY+e.plotTop;c=c.getChartPosition();b=(this.options.positioner||this.getPosition).call(this,a.width,a.height,b);if(this.outside){var d=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(a.width+
270
- d,a.height+d,!1);if(1!==c.scaleX||1!==c.scaleY)h(this.container,{transform:"scale("+c.scaleX+", "+c.scaleY+")"}),l*=c.scaleX,e*=c.scaleY;l+=c.left-b.x;e+=c.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),l,e)};return a}();n.Tooltip=a;return n.Tooltip});J(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,n,C,D,z){var u=a.parse,y=n.charts,p=n.noop,h=z.addEvent,d=z.attr,f=z.css,b=z.defined,k=z.extend,
271
- B=z.find,t=z.fireEvent,H=z.isNumber,K=z.isObject,w=z.objectEach,E=z.offset,x=z.pick,r=z.splat;a=function(){function a(b,a){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=b;this.hasDragged=!1;this.options=a;this.init(b,a)}a.prototype.applyInactiveState=function(b){var a=[],c;(b||[]).forEach(function(b){c=b.series;a.push(c);c.linkedParent&&a.push(c.linkedParent);c.linkedSeries&&(a=a.concat(c.linkedSeries));c.navigatorSeries&&a.push(c.navigatorSeries)});
272
- this.chart.series.forEach(function(c){-1===a.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var b=this;this.eventsToUnbind.forEach(function(b){return b()});this.eventsToUnbind=[];n.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);w(b,function(a,c){b[c]=void 0})};
273
- a.prototype.drag=function(b){var a=this.chart,c=a.options.chart,e=this.zoomHor,l=this.zoomVert,d=a.plotLeft,f=a.plotTop,k=a.plotWidth,q=a.plotHeight,h=this.mouseDownX||0,r=this.mouseDownY||0,x=K(c.panning)?c.panning&&c.panning.enabled:c.panning,w=c.panKey&&b[c.panKey+"Key"],t=b.chartX,B=b.chartY,p=this.selectionMarker;if(!p||!p.touch)if(t<d?t=d:t>d+k&&(t=d+k),B<f?B=f:B>f+q&&(B=f+q),this.hasDragged=Math.sqrt(Math.pow(h-t,2)+Math.pow(r-B,2)),10<this.hasDragged){var E=a.isInsidePlot(h-d,r-f,{visiblePlotOnly:!0});
274
- a.hasCartesianSeries&&(this.zoomX||this.zoomY)&&E&&!w&&!p&&(this.selectionMarker=p=a.renderer.rect(d,f,e?1:k,l?1:q,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||p.attr({fill:c.selectionMarkerFill||u(C.highlightColor80).setOpacity(.25).get()}));p&&e&&(e=t-h,p.attr({width:Math.abs(e),x:(0<e?0:e)+h}));p&&l&&(e=B-r,p.attr({height:Math.abs(e),y:(0<e?0:e)+r}));E&&!p&&x&&a.pan(b,c.panning)}};a.prototype.dragStart=function(b){var a=this.chart;a.mouseIsDown=b.type;a.cancelClick=
275
- !1;a.mouseDownX=this.mouseDownX=b.chartX;a.mouseDownY=this.mouseDownY=b.chartY};a.prototype.drop=function(a){var e=this,c=this.chart,g=this.hasPinched;if(this.selectionMarker){var l={originalEvent:a,xAxis:[],yAxis:[]},d=this.selectionMarker,q=d.attr?d.attr("x"):d.x,h=d.attr?d.attr("y"):d.y,r=d.attr?d.attr("width"):d.width,x=d.attr?d.attr("height"):d.height,w;if(this.hasDragged||g)c.axes.forEach(function(c){if(c.zoomEnabled&&b(c.min)&&(g||e[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])&&H(q)&&H(h)){var d=
276
- c.horiz,f="touchend"===a.type?c.minPixelPadding:0,m=c.toValue((d?q:h)+f);d=c.toValue((d?q+r:h+x)-f);l[c.coll].push({axis:c,min:Math.min(m,d),max:Math.max(m,d)});w=!0}}),w&&t(c,"selection",l,function(b){c.zoom(k(b,g?{animation:!1}:null))});H(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());g&&this.scaleGroups()}c&&H(c.index)&&(f(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=
277
- function(b,a,c){var e=this.chart,l=e.hoverPoint;e=e.tooltip;if(l&&e&&e.isStickyOnContact())return l;var d;b.forEach(function(b){var e=!(b.noSharedTooltip&&a)&&0>b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(c,e);if((e=K(b,!0)&&b.series)&&!(e=!K(d,!0))){e=d.distX-b.distX;var g=d.dist-b.dist,l=(b.series.group&&b.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);e=0<(0!==e&&a?e:0!==g?g:0!==l?l:d.series.index>b.series.index?-1:1)}e&&(d=b)});return d};a.prototype.getChartCoordinatesFromPoint=
278
- function(b,a){var c=b.series,e=c.xAxis;c=c.yAxis;var l=b.shapeArgs;if(e&&c){var d=x(b.clientX,b.plotX),f=b.plotY||0;b.isNode&&l&&H(l.x)&&H(l.y)&&(d=l.x,f=l.y);return a?{chartX:c.len+c.pos-f,chartY:e.len+e.pos-d}:{chartX:d+e.pos,chartY:f+c.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var b=this.chart.container,a=E(b);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};var c=b.offsetWidth;b=b.offsetHeight;
279
- 2<c&&2<b&&(this.chartPosition.scaleX=a.width/c,this.chartPosition.scaleY=a.height/b);return this.chartPosition};a.prototype.getCoordinates=function(b){var a={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){a[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(b[c.horiz?"chartX":"chartY"])})});return a};a.prototype.getHoverData=function(b,a,c,g,l,d){var e=[];g=!(!g||!b);var f={chartX:d?d.chartX:void 0,chartY:d?d.chartY:void 0,shared:l};t(this,"beforeGetHoverData",f);var m=a&&!a.stickyTracking?
280
- [a]:c.filter(function(c){return f.filter?f.filter(c):c.visible&&!(!l&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&c.stickyTracking});var k=g||!d?b:this.findNearestKDPoint(m,l,d);a=k&&k.series;k&&(l&&!a.noSharedTooltip?(m=c.filter(function(c){return f.filter?f.filter(c):c.visible&&!(!l&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&!c.noSharedTooltip}),m.forEach(function(c){var b=B(c.points,function(c){return c.x===k.x&&!c.isNull});K(b)&&(c.chart.isBoosting&&(b=c.getPoint(b)),e.push(b))})):
281
- e.push(k));f={hoverPoint:k};t(this,"afterGetHoverData",f);return{hoverPoint:f.hoverPoint,hoverSeries:a,hoverPoints:e}};a.prototype.getPointFromEvent=function(b){b=b.target;for(var a;b&&!a;)a=b.point,b=b.parentNode;return a};a.prototype.onTrackerMouseOut=function(b){b=b.relatedTarget||b.toElement;var a=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!a||!b||a.stickyTracking||this.inClass(b,"highcharts-tooltip")||this.inClass(b,"highcharts-series-"+a.index)&&this.inClass(b,"highcharts-tracker")))a.onMouseOut()};
282
- a.prototype.inClass=function(b,a){for(var c;b;){if(c=d(b,"class")){if(-1!==c.indexOf(a))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}b=b.parentNode}};a.prototype.init=function(b,a){this.options=a;this.chart=b;this.runChartClick=!(!a.chart.events||!a.chart.events.click);this.pinchDown=[];this.lastValidTouch={};D&&(b.tooltip=new D(b,a.tooltip),this.followTouchMove=x(a.tooltip.followTouchMove,!0));this.setDOMEvents()};a.prototype.normalize=function(b,a){var c=b.touches,e=c?c.length?c.item(0):
283
- x(c.changedTouches,b.changedTouches)[0]:b;a||(a=this.getChartPosition());c=e.pageX-a.left;e=e.pageY-a.top;c/=a.scaleX;e/=a.scaleY;return k(b,{chartX:Math.round(c),chartY:Math.round(e)})};a.prototype.onContainerClick=function(b){var a=this.chart,c=a.hoverPoint;b=this.normalize(b);var e=a.plotLeft,l=a.plotTop;a.cancelClick||(c&&this.inClass(b.target,"highcharts-tracker")?(t(c.series,"click",k(b,{point:c})),a.hoverPoint&&c.firePointEvent("click",b)):(k(b,this.getCoordinates(b)),a.isInsidePlot(b.chartX-
284
- e,b.chartY-l,{visiblePlotOnly:!0})&&t(a,"click",b)))};a.prototype.onContainerMouseDown=function(b){var a=1===((b.buttons||b.button)&1);b=this.normalize(b);if(n.isFirefox&&0!==b.button)this.onContainerMouseMove(b);if("undefined"===typeof b.button||a)this.zoomOption(b),a&&b.preventDefault&&b.preventDefault(),this.dragStart(b)};a.prototype.onContainerMouseLeave=function(b){var e=y[x(a.hoverChartIndex,-1)],c=this.chart.tooltip;b=this.normalize(b);e&&(b.relatedTarget||b.toElement)&&(e.pointer.reset(),
285
- e.pointer.chartPosition=void 0);c&&!c.isHidden&&this.reset()};a.prototype.onContainerMouseEnter=function(b){delete this.chartPosition};a.prototype.onContainerMouseMove=function(b){var a=this.chart;b=this.normalize(b);this.setHoverChartIndex();b.preventDefault||(b.returnValue=!1);("mousedown"===a.mouseIsDown||this.touchSelect(b))&&this.drag(b);a.openMenu||!this.inClass(b.target,"highcharts-tracker")&&!a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop,{visiblePlotOnly:!0})||(this.inClass(b.target,
286
- "highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(b))};a.prototype.onDocumentTouchEnd=function(b){var e=y[x(a.hoverChartIndex,-1)];e&&e.pointer.drop(b)};a.prototype.onContainerTouchMove=function(b){if(this.touchSelect(b))this.onContainerMouseMove(b);else this.touch(b)};a.prototype.onContainerTouchStart=function(b){if(this.touchSelect(b))this.onContainerMouseDown(b);else this.zoomOption(b),this.touch(b,!0)};a.prototype.onDocumentMouseMove=function(b){var a=this.chart,c=this.chartPosition;
287
- b=this.normalize(b,c);var e=a.tooltip;!c||e&&e.isStickyOnContact()||a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop,{visiblePlotOnly:!0})||this.inClass(b.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(b){var e=y[x(a.hoverChartIndex,-1)];e&&e.pointer.drop(b)};a.prototype.pinch=function(b){var a=this,c=a.chart,e=a.pinchDown,l=b.touches||[],d=l.length,f=a.lastValidTouch,q=a.hasZoom,h={},r=1===d&&(a.inClass(b.target,"highcharts-tracker")&&c.runTrackerClick||a.runChartClick),
288
- w={},t=a.selectionMarker;1<d&&(a.initiated=!0);q&&a.initiated&&!r&&!1!==b.cancelable&&b.preventDefault();[].map.call(l,function(c){return a.normalize(c)});"touchstart"===b.type?([].forEach.call(l,function(c,b){e[b]={chartX:c.chartX,chartY:c.chartY}}),f.x=[e[0].chartX,e[1]&&e[1].chartX],f.y=[e[0].chartY,e[1]&&e[1].chartY],c.axes.forEach(function(b){if(b.zoomEnabled){var a=c.bounds[b.horiz?"h":"v"],e=b.minPixelPadding,g=b.toPixels(Math.min(x(b.options.min,b.dataMin),b.dataMin)),l=b.toPixels(Math.max(x(b.options.max,
289
- b.dataMax),b.dataMax)),d=Math.max(g,l);a.min=Math.min(b.pos,Math.min(g,l)-e);a.max=Math.max(b.pos+b.len,d+e)}}),a.res=!0):a.followTouchMove&&1===d?this.runPointActions(a.normalize(b)):e.length&&(t||(a.selectionMarker=t=k({destroy:p,touch:!0},c.plotBox)),a.pinchTranslate(e,l,h,t,w,f),a.hasPinched=q,a.scaleGroups(h,w),a.res&&(a.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(b,a,c,g,l,d){this.zoomHor&&this.pinchTranslateDirection(!0,b,a,c,g,l,d);this.zoomVert&&this.pinchTranslateDirection(!1,
290
- b,a,c,g,l,d)};a.prototype.pinchTranslateDirection=function(b,a,c,g,l,d,f,k){var e=this.chart,m=b?"x":"y",q=b?"X":"Y",h="chart"+q,v=b?"width":"height",r=e["plot"+(b?"Left":"Top")],G=e.inverted,x=e.bounds[b?"h":"v"],w=1===a.length,L=a[0][h],t=!w&&a[1][h];a=function(){"number"===typeof u&&20<Math.abs(L-t)&&(p=k||Math.abs(E-u)/Math.abs(L-t));B=(r-E)/p+L;M=e["plot"+(b?"Width":"Height")]/p};var M,B,p=k||1,E=c[0][h],u=!w&&c[1][h];a();c=B;if(c<x.min){c=x.min;var n=!0}else c+M>x.max&&(c=x.max-M,n=!0);n?(E-=
291
- .8*(E-f[m][0]),"number"===typeof u&&(u-=.8*(u-f[m][1])),a()):f[m]=[E,u];G||(d[m]=B-r,d[v]=M);d=G?1/p:p;l[v]=M;l[m]=c;g[G?b?"scaleY":"scaleX":"scale"+q]=p;g["translate"+q]=d*r+(E-d*L)};a.prototype.reset=function(b,a){var c=this.chart,e=c.hoverSeries,l=c.hoverPoint,d=c.hoverPoints,f=c.tooltip,m=f&&f.shared?d:l;b&&m&&r(m).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(b=!1)});if(b)f&&m&&r(m).length&&(f.refresh(m),f.shared&&d?d.forEach(function(c){c.setState(c.state,!0);c.series.isCartesian&&
292
- (c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):l&&(l.setState(l.state,!0),c.axes.forEach(function(c){c.crosshair&&l.series[c.coll]===c&&c.drawCrosshair(null,l)})));else{if(l)l.onMouseOut();d&&d.forEach(function(c){c.setState()});if(e)e.onMouseOut();f&&f.hide(a);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(c){c.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};
293
- a.prototype.runPointActions=function(b,d){var c=this.chart,e=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,l=e?e.shared:!1,f=d||c.hoverPoint,m=f&&f.series||c.hoverSeries;d=this.getHoverData(f,m,c.series,(!b||"touchmove"!==b.type)&&(!!d||m&&m.directTouch&&this.isDirectTouch),l,b);f=d.hoverPoint;m=d.hoverSeries;var k=d.hoverPoints;d=m&&m.tooltipOptions.followPointer&&!m.tooltipOptions.split;l=l&&m&&!m.noSharedTooltip;if(f&&(f!==c.hoverPoint||e&&e.isHidden)){(c.hoverPoints||[]).forEach(function(c){-1===
294
- k.indexOf(c)&&c.setState()});if(c.hoverSeries!==m)m.onMouseOver();this.applyInactiveState(k);(k||[]).forEach(function(c){c.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!f.series)return;c.hoverPoints=k;c.hoverPoint=f;f.firePointEvent("mouseOver");e&&e.refresh(l?k:f,b)}else d&&e&&!e.isHidden&&(f=e.getAnchor([{}],b),c.isInsidePlot(f[0],f[1],{visiblePlotOnly:!0})&&e.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=h(c.container.ownerDocument,
295
- "mousemove",function(c){var b=y[a.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));c.axes.forEach(function(a){var e=x((a.crosshair||{}).snap,!0),g;e&&((g=c.hoverPoint)&&g.series[a.coll]===a||(g=B(k,function(c){return c.series[a.coll]===a})));g||!e?a.drawCrosshair(b,g):a.hideCrosshair()})};a.prototype.scaleGroups=function(b,a){var c=this.chart;c.series.forEach(function(e){var g=b||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&e.group&&(e.group.attr(g),
296
- e.markerGroup&&(e.markerGroup.attr(g),e.markerGroup.clip(a?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(g))});c.clipRect.attr(a||c.clipBox)};a.prototype.setDOMEvents=function(){var b=this,d=this.chart.container,c=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(h(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(h(d,"mouseleave",
297
- this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=h(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(h(g,"scroll",function(){delete b.chartPosition})),g=g.parentElement;n.hasTouch&&(this.eventsToUnbind.push(h(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(h(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),
298
- a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=h(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var b=this.chart,d=n.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(b,a){var c=this.chart,e;this.setHoverChartIndex();if(1===b.touches.length)if(b=this.normalize(b),(e=c.isInsidePlot(b.chartX-c.plotLeft,b.chartY-c.plotTop,
299
- {visiblePlotOnly:!0}))&&!c.openMenu){a&&this.runPointActions(b);if("touchmove"===b.type){a=this.pinchDown;var d=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-b.chartX,2)+Math.pow(a[0].chartY-b.chartY,2)):!1}x(d,!0)&&this.pinch(b)}else a&&this.reset();else 2===b.touches.length&&this.pinch(b)};a.prototype.touchSelect=function(b){return!(!this.chart.options.chart.zoomBySingleTouch||!b.touches||1!==b.touches.length)};a.prototype.zoomOption=function(b){var a=this.chart,c=a.options.chart;a=a.inverted;var e=c.zoomType||
300
- "";/touch/.test(b.type)&&(e=x(c.pinchType,e));this.zoomX=b=/x/.test(e);this.zoomY=c=/y/.test(e);this.zoomHor=b&&!a||c&&a;this.zoomVert=c&&!a||b&&a;this.hasZoom=b||c};return a}();"";return a});J(a,"Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,n,C){function u(){var b=[];b.item=function(b){return this[b]};k(t,function(a){b.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return b}function z(b,a,d,f){var k=y[n.hoverChartIndex||NaN];"touch"!==b.pointerType&&
301
- b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,f(b),k[a]({type:d,target:b.currentTarget,preventDefault:h,touches:u()}))}var A=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 d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),y=a.charts,p=
302
- a.doc,h=a.noop,d=a.win,f=C.addEvent,b=C.css,k=C.objectEach,B=C.removeEvent,t={},H=!!d.PointerEvent;return function(k){function h(){return null!==k&&k.apply(this,arguments)||this}A(h,k);h.isRequired=function(){return!(a.hasTouch||!d.PointerEvent&&!d.MSPointerEvent)};h.prototype.batchMSEvents=function(b){b(this.chart.container,H?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,H?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(p,H?"pointerup":"MSPointerUp",
303
- this.onDocumentPointerUp)};h.prototype.destroy=function(){this.batchMSEvents(B);k.prototype.destroy.call(this)};h.prototype.init=function(a,d){k.prototype.init.call(this,a,d);this.hasZoom&&b(a.container,{"-ms-touch-action":"none","touch-action":"none"})};h.prototype.onContainerPointerDown=function(b){z(b,"onContainerTouchStart","touchstart",function(b){t[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};h.prototype.onContainerPointerMove=function(b){z(b,"onContainerTouchMove","touchmove",
304
- function(b){t[b.pointerId]={pageX:b.pageX,pageY:b.pageY};t[b.pointerId].target||(t[b.pointerId].target=b.currentTarget)})};h.prototype.onDocumentPointerUp=function(b){z(b,"onDocumentTouchEnd","touchend",function(b){delete t[b.pointerId]})};h.prototype.setDOMEvents=function(){k.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(f)};return h}(n)});J(a,"Core/Series/Point.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],
305
- a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=n.animObject,p=C.format,h=z.defaultOptions,d=A.addEvent,f=A.defined,b=A.erase,k=A.extend,B=A.fireEvent,t=A.getNestedProperty,H=A.isArray,K=A.isFunction,w=A.isNumber,E=A.isObject,x=A.merge,r=A.objectEach,q=A.pick,e=A.syncTimeout,m=A.removeEvent,c=A.uniqueKey;"";n=function(){function g(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=
306
- this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}g.prototype.animateBeforeDestroy=function(){var c=this,b={x:c.startXPos,opacity:0},a,e=c.getGraphicalProps();e.singular.forEach(function(e){a="dataLabel"===e;c[e]=c[e].animate(a?{x:c[e].startXPos,y:c[e].startYPos,opacity:0}:b)});e.plural.forEach(function(b){c[b].forEach(function(b){b.element&&b.animate(k({x:c.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})};g.prototype.applyOptions=function(c,
307
- b){var a=this.series,e=a.options.pointValKey||a.pointValKey;c=g.prototype.optionsToObject.call(this,c);k(this,c);this.options=this.options?k(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;e&&(this.y=g.prototype.getNestedProperty.call(this,e));this.formatPrefix=(this.isNull=q(this.isValid&&!this.isValid(),null===this.x||!w(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof b&&a.xAxis&&a.xAxis.hasNames&&(this.x=a.xAxis.nameToX(this));
308
- "undefined"===typeof this.x&&a&&(this.x="undefined"===typeof b?a.autoIncrement(this):b);return this};g.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)m(a),a.destroyElements();for(h in a)a[h]=null}var a=this,g=a.series,d=g.chart;g=g.options.dataSorting;var f=d.hoverPoints,k=u(a.series.chart.renderer.globalAnimation),h;a.legendItem&&d.legend.destroyItem(a);f&&(a.setState(),b(f,a),f.length||(d.hoverPoints=null));if(a===d.hoverPoint)a.onMouseOut();g&&g.enabled?(this.animateBeforeDestroy(),
309
- e(c,k.duration)):c();d.pointCount--};g.prototype.destroyElements=function(c){var b=this;c=b.getGraphicalProps(c);c.singular.forEach(function(c){b[c]=b[c].destroy()});c.plural.forEach(function(c){b[c].forEach(function(c){c.element&&c.destroy()});delete b[c]})};g.prototype.firePointEvent=function(c,b,a){var e=this,g=this.series.options;(g.point.events[c]||e.options&&e.options.events&&e.options.events[c])&&e.importEvents();"click"===c&&g.allowPointSelect&&(a=function(c){e.select&&e.select(null,c.ctrlKey||
310
- c.metaKey||c.shiftKey)});B(e,c,b,a)};g.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};g.prototype.getGraphicalProps=function(c){var b=
311
- this,a=[],e,g={singular:[],plural:[]};c=c||{graphic:1,dataLabel:1};c.graphic&&a.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&a.push("dataLabel","dataLabelUpper","connector");for(e=a.length;e--;){var d=a[e];b[d]&&g.singular.push(d)}["dataLabel","connector"].forEach(function(a){var e=a+"s";c[a]&&b[e]&&g.plural.push(e)});return g};g.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,
312
- point:this,percentage:this.percentage,total:this.total||this.stackTotal}};g.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?t(c,this.options):this[c]};g.prototype.getZone=function(){var c=this.series,b=c.zones;c=c.zoneAxis||"y";var a=0,e;for(e=b[a];this[c]>=e.value;)e=b[++a];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=e&&e.color&&!this.options.color?e.color:this.nonZonedColor;return e};g.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||
313
- this.graphic.element.nodeName))!==this.shapeType};g.prototype.init=function(b,a,e){this.series=b;this.applyOptions(a,e);this.id=f(this.id)?this.id:c();this.resolveColor();b.chart.pointCount++;B(this,"afterInit");return this};g.prototype.optionsToObject=function(c){var b={},a=this.series,e=a.options.keys,d=e||a.pointArrayMap||["y"],l=d.length,f=0,k=0;if(w(c)||null===c)b[d[0]]=c;else if(H(c))for(!e&&c.length>l&&(a=typeof c[0],"string"===a?b.name=c[0]:"number"===a&&(b.x=c[0]),f++);k<l;)e&&"undefined"===
314
- typeof c[f]||(0<d[k].indexOf(".")?g.prototype.setNestedProperty(b,c[f],d[k]):b[d[k]]=c[f]),f++,k++;else"object"===typeof c&&(b=c,c.dataLabels&&(a._hasPointLabels=!0),c.marker&&(a._hasPointMarkers=!0));return b};g.prototype.resolveColor=function(){var c=this.series;var b=c.chart.options.chart.colorCount;var a=c.chart.styledMode;delete this.nonZonedColor;if(c.options.colorByPoint){if(!a){b=c.options.colors||c.chart.options.colors;var e=b[c.colorCounter];b=b.length}a=c.colorCounter;c.colorCounter++;
315
- c.colorCounter===b&&(c.colorCounter=0)}else a||(e=c.color),a=c.colorIndex;this.colorIndex=q(this.options.colorIndex,a);this.color=q(this.options.color,e)};g.prototype.setNestedProperty=function(c,b,a){a.split(".").reduce(function(c,a,e,g){c[a]=g.length-1===e?b:E(c[a],!0)?c[a]:{};return c[a]},c);return c};g.prototype.tooltipFormatter=function(c){var b=this.series,a=b.tooltipOptions,e=q(a.valueDecimals,""),g=a.valuePrefix||"",d=a.valueSuffix||"";b.chart.styledMode&&(c=b.chart.tooltip.styledModeFormat(c));
316
- (b.pointArrayMap||["y"]).forEach(function(b){b="{point."+b;if(g||d)c=c.replace(RegExp(b+"}","g"),g+b+"}"+d);c=c.replace(RegExp(b+"}","g"),b+":,."+e+"f}")});return p(c,{point:this,series:this.series},b.chart)};g.prototype.update=function(c,b,a,e){function g(){d.applyOptions(c);var e=l&&d.hasDummyGraphic;e=null===d.y?!e:e;l&&e&&(d.graphic=l.destroy(),delete d.hasDummyGraphic);E(c,!0)&&(l&&l.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(d.graphic=l.destroy()),c&&c.dataLabels&&d.dataLabel&&
317
- (d.dataLabel=d.dataLabel.destroy()),d.connector&&(d.connector=d.connector.destroy()));k=d.index;f.updateParallelArrays(d,k);h.data[k]=E(h.data[k],!0)||E(c,!0)?d.options:q(c,h.data[k]);f.isDirty=f.isDirtyData=!0;!f.fixedBox&&f.hasCartesianSeries&&(m.isDirtyBox=!0);"point"===h.legendType&&(m.isDirtyLegend=!0);b&&m.redraw(a)}var d=this,f=d.series,l=d.graphic,k,m=f.chart,h=f.options;b=q(b,!0);!1===e?g():d.firePointEvent("update",{options:c},g)};g.prototype.remove=function(c,b){this.series.removePoint(this.series.data.indexOf(this),
318
- c,b)};g.prototype.select=function(c,b){var a=this,e=a.series,g=e.chart;this.selectedStaging=c=q(c,!a.selected);a.firePointEvent(c?"select":"unselect",{accumulate:b},function(){a.selected=a.options.selected=c;e.options.data[e.data.indexOf(a)]=a.options;a.setState(c&&"select");b||g.getSelectedPoints().forEach(function(c){var b=c.series;c.selected&&c!==a&&(c.selected=c.options.selected=!1,b.options.data[b.data.indexOf(c)]=c.options,c.setState(g.hoverPoints&&b.options.inactiveOtherPoints?"inactive":""),
319
- c.firePointEvent("unselect"))})});delete this.selectedStaging};g.prototype.onMouseOver=function(c){var b=this.series.chart,a=b.pointer;c=c?a.normalize(c):a.getChartCoordinatesFromPoint(this,b.inverted);a.runPointActions(c,this)};g.prototype.onMouseOut=function(){var c=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(c.hoverPoints||[]).forEach(function(c){c.setState()});c.hoverPoints=c.hoverPoint=null};g.prototype.importEvents=function(){if(!this.hasImportedEvents){var c=
320
- this,b=x(c.series.options.point,c.options).events;c.events=b;r(b,function(b,a){K(b)&&d(c,a,b)});this.hasImportedEvents=!0}};g.prototype.setState=function(c,b){var e=this.series,g=this.state,d=e.options.states[c||"normal"]||{},f=h.plotOptions[e.type].marker&&e.options.marker,l=f&&!1===f.enabled,m=f&&f.states&&f.states[c||"normal"]||{},v=!1===m.enabled,r=e.stateMarkerGraphic,t=this.marker||{},x=e.chart,p=e.halo,u,E=f&&e.markerAttribs;c=c||"";if(!(c===this.state&&!b||this.selected&&"select"!==c||!1===
321
- d.enabled||c&&(v||l&&!1===m.enabled)||c&&t.states&&t.states[c]&&!1===t.states[c].enabled)){this.state=c;E&&(u=e.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){g&&this.graphic.removeClass("highcharts-point-"+g);c&&this.graphic.addClass("highcharts-point-"+c);if(!x.styledMode){var M=e.pointAttribs(this,c);var n=q(x.options.chart.animation,d.animation);e.options.inactiveOtherPoints&&w(M.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:M.opacity},n)}),this.connector&&
322
- this.connector.animate({opacity:M.opacity},n));this.graphic.animate(M,n)}u&&this.graphic.animate(u,q(x.options.chart.animation,m.animation,f.animation));r&&r.hide()}else{if(c&&m){g=t.symbol||e.symbol;r&&r.currentSymbol!==g&&(r=r.destroy());if(u)if(r)r[b?"animate":"attr"]({x:u.x,y:u.y});else g&&(e.stateMarkerGraphic=r=x.renderer.symbol(g,u.x,u.y,u.width,u.height).add(e.markerGroup),r.currentSymbol=g);!x.styledMode&&r&&r.attr(e.pointAttribs(this,c))}r&&(r[c&&this.isInside?"show":"hide"](),r.element.point=
323
- this)}d=d.halo;u=(r=this.graphic||r)&&r.visibility||"inherit";d&&d.size&&r&&"hidden"!==u&&!this.isCluster?(p||(e.halo=p=x.renderer.path().add(r.parentGroup)),p.show()[b?"animate":"attr"]({d:this.haloPath(d.size)}),p.attr({"class":"highcharts-halo highcharts-color-"+q(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:u,zIndex:-1}),p.point=this,x.styledMode||p.attr(k({fill:this.color||e.color,"fill-opacity":d.opacity},a.filterUserAttributes(d.attributes||{})))):p&&p.point&&
324
- p.point.haloPath&&p.animate({d:p.point.haloPath(0)},null,p.hide);B(this,"afterSetState",{state:c})}};g.prototype.haloPath=function(c){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-c,this.plotY-c,2*c,2*c)};return g}();return D.Point=n});J(a,"Core/Legend.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,C,D,z){var u=a.animObject,y=a.setAnimation,p=n.format;a=C.isFirefox;
325
- var h=C.marginNames;n=C.win;var d=z.addEvent,f=z.createElement,b=z.css,k=z.defined,B=z.discardElement,t=z.find,H=z.fireEvent,K=z.isNumber,w=z.merge,E=z.pick,x=z.relativeLength,r=z.stableSort,q=z.syncTimeout;z=z.wrap;var e=function(){function a(c,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=
326
- this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=c;this.init(c,b)}a.prototype.init=function(c,b){this.chart=c;this.setOptions(b);b.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions();
327
- this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(c){var b=E(c.padding,8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=w(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=E(c.symbolWidth,16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};
328
- a.prototype.update=function(c,b){var a=this.chart;this.setOptions(w(!0,this.options,c));this.destroy();a.isDirtyLegend=a.isDirtyBox=!0;E(b,!0)&&a.redraw();H(this,"afterUpdate")};a.prototype.colorizeItem=function(c,b){c.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var a=this.options,e=c.legendItem,d=c.legendLine,g=c.legendSymbol,f=this.itemHiddenStyle.color;a=b?a.itemStyle.color:f;var k=b?c.color||f:f,m=c.options&&c.options.marker,h={fill:k};e&&
329
- e.css({fill:a,color:a});d&&d.attr({stroke:k});g&&(m&&g.isMarker&&(h=c.pointAttribs(),b||(h.stroke=h.fill=f)),g.attr(h))}H(this,"afterColorizeItem",{item:c,visible:b})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(c){var b=this,a=this.options,e=a.symbolPadding,d=!a.rtl,f=c._legendItemPos;a=f[0];f=f[1];var m=c.checkbox,h=c.legendGroup;h&&h.element&&(e={translateX:d?a:this.legendWidth-
330
- a-2*e-4,translateY:f},d=function(){H(b,"afterPositionItem",{item:c})},k(h.translateY)?h.animate(e,void 0,d):(h.attr(e),d()));m&&(m.x=a,m.y=f)};a.prototype.destroyItem=function(c){var b=c.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(b){c[b]&&(c[b]=c[b].destroy())});b&&B(c.checkbox)};a.prototype.destroy=function(){function c(c){this[c]&&(this[c]=this[c].destroy())}this.getAllItems().forEach(function(b){["legendItem","legendGroup"].forEach(c,b)});"clipRect up down pager nav box title group".split(" ").forEach(c,
331
- this);this.display=null};a.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,e=this.titleHeight;if(c){var d=c.translateY;this.allItems.forEach(function(g){var f=g.checkbox;if(f){var l=d+e+f.y+(this.scrollOffset||0)+3;b(f,{left:c.translateX+g.checkboxOffset+f.x-20+"px",top:l+"px",display:this.proximate||l>d-6&&l<d+a-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var c=this.options,b=this.padding,a=c.title,e=0;a.text&&(this.title||
332
- (this.title=this.chart.renderer.label(a.text,b-3,b-4,null,null,null,c.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(a.style),this.title.add(this.group)),a.width||this.title.css({width:this.maxLegendWidth+"px"}),c=this.title.getBBox(),e=c.height,this.offsetWidth=c.width,this.contentGroup.attr({translateY:e}));this.titleHeight=e};a.prototype.setText=function(c){var b=this.options;c.legendItem.attr({text:b.labelFormat?p(b.labelFormat,c,this.chart):b.labelFormatter.call(c)})};
333
- a.prototype.renderItem=function(c){var b=this.chart,a=b.renderer,e=this.options,d=this.symbolWidth,f=e.symbolPadding||0,k=this.itemStyle,m=this.itemHiddenStyle,h="horizontal"===e.layout?E(e.itemDistance,20):0,q=!e.rtl,r=c.legendItem,t=!c.series,x=!t&&c.series.drawLegendSymbol?c.series:c,B=x.options,p=this.createCheckboxForItem&&B&&B.showCheckbox;B=d+f+h+(p?20:0);var u=e.useHTML,n=c.options.className;r||(c.legendGroup=a.g("legend-item").addClass("highcharts-"+x.type+"-series highcharts-color-"+c.colorIndex+
334
- (n?" "+n:"")+(t?" highcharts-series-"+c.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.legendItem=r=a.text("",q?d+f:-f,this.baseline||0,u),b.styledMode||r.css(w(c.visible?k:m)),r.attr({align:q?"left":"right",zIndex:2}).add(c.legendGroup),this.baseline||(this.fontMetrics=a.fontMetrics(b.styledMode?12:k.fontSize,r),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,r.attr("y",this.baseline),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,e.squareSymbol&&(this.symbolWidth=E(e.symbolWidth,
335
- Math.max(this.symbolHeight,16)),B=this.symbolWidth+f+h+(p?20:0),q&&r.attr("x",this.symbolWidth+f))),x.drawLegendSymbol(this,c),this.setItemEvents&&this.setItemEvents(c,r,u));p&&!c.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(c);this.colorizeItem(c,c.visible);!b.styledMode&&k.width||r.css({width:(e.itemWidth||this.widthOption||b.spacingBox.width)-B+"px"});this.setText(c);b=r.getBBox();c.itemWidth=c.checkboxOffset=e.itemWidth||c.legendItemWidth||b.width+B;this.maxItemWidth=Math.max(this.maxItemWidth,
336
- c.itemWidth);this.totalItemWidth+=c.itemWidth;this.itemHeight=c.itemHeight=Math.round(c.legendItemHeight||b.height||this.symbolHeight)};a.prototype.layoutItem=function(c){var b=this.options,a=this.padding,e="horizontal"===b.layout,d=c.itemHeight,f=this.itemMarginBottom,k=this.itemMarginTop,m=e?E(b.itemDistance,20):0,h=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:c.itemWidth;e&&this.itemX-a+b>h&&(this.itemX=a,this.lastLineHeight&&(this.itemY+=k+this.lastLineHeight+
337
- f),this.lastLineHeight=0);this.lastItemY=k+this.itemY+f;this.lastLineHeight=Math.max(d,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=b:(this.itemY+=k+d+f,this.lastLineHeight=d);this.offsetWidth=this.widthOption||Math.max((e?this.itemX-a-(c.checkbox?0:m):b)+a,this.offsetWidth)};a.prototype.getAllItems=function(){var c=[];this.chart.series.forEach(function(b){var a=b&&b.options;b&&E(a.showInLegend,k(a.linkedTo)?!1:void 0,!0)&&(c=c.concat(b.legendItems||("point"===a.legendType?
338
- b.data:b)))});H(this,"afterGetAllItems",{allItems:c});return c};a.prototype.getAlignment=function(){var c=this.options;return this.proximate?c.align.charAt(0)+"tv":c.floating?"":c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0)};a.prototype.adjustMargins=function(c,b){var a=this.chart,e=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,f){g.test(d)&&!k(c[f])&&(a[h[f]]=Math.max(a[h[f]],a.legend[(f+1)%2?"legendHeight":
339
- "legendWidth"]+[1,-1,-1,1][f]*e[f%2?"x":"y"]+E(e.margin,12)+b[f]+(a.titleOffset[f]||0)))})};a.prototype.proximatePositions=function(){var c=this.chart,b=[],a="left"===this.options.align;this.allItems.forEach(function(e){var d;var g=a;if(e.yAxis){e.xAxis.options.reversed&&(g=!g);e.points&&(d=t(g?e.points:e.points.slice(0).reverse(),function(c){return K(c.plotY)}));g=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var f=e.yAxis.top-c.plotTop;e.visible?(d=d?d.plotY:e.yAxis.height,
340
- d+=f-.3*g):d=f+e.yAxis.height;b.push({target:d,size:g,item:e})}},this);C.distribute(b,c.plotHeight);b.forEach(function(b){b.item._legendItemPos[1]=c.plotTop-c.spacing[0]+b.pos})};a.prototype.render=function(){var c=this.chart,b=c.renderer,a=this.group,e=this.box,d=this.options,f=this.padding;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=x(d.width,c.spacingBox.width-f);var k=c.spacingBox.width-2*f-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,
341
- 2))&&(k/=2);this.maxLegendWidth=this.widthOption||k;a||(this.group=a=b.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(a),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();var m=this.getAllItems();r(m,function(c,b){return(c.options&&c.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});d.reversed&&m.reverse();this.allItems=m;this.display=k=!!m.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=
342
- 0;m.forEach(this.renderItem,this);m.forEach(this.layoutItem,this);m=(this.widthOption||this.offsetWidth)+f;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h);h+=f;e||(this.box=e=b.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(a),e.isNew=!0);c.styledMode||e.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0<m&&0<h&&(e[e.isNew?"attr":"animate"](e.crisp.call({},{x:0,y:0,width:m,height:h},
343
- e.strokeWidth())),e.isNew=!1);e[k?"show":"hide"]();c.styledMode&&"none"===a.getStyle("display")&&(m=h=0);this.legendWidth=m;this.legendHeight=h;k&&this.align();this.proximate||this.positionItems();H(this,"afterRender")};a.prototype.align=function(c){void 0===c&&(c=this.chart.spacingBox);var b=this.chart,a=this.options,e=c.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<b.titleOffset[0]?e+=b.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<b.titleOffset[2]&&(e-=b.titleOffset[2]);e!==c.y&&(c=
344
- w(c,{y:e}));this.group.align(w(a,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":a.verticalAlign}),!0,c)};a.prototype.handleOverflow=function(c){var b=this,a=this.chart,e=a.renderer,d=this.options,f=d.y,k=this.padding;f=a.spacingBox.height+("top"===d.verticalAlign?-f:f)-k;var m=d.maxHeight,h,q=this.clipRect,r=d.navigation,t=E(r.animation,!0),B=r.arrowSize||12,x=this.nav,p=this.pages,w,u=this.allItems,M=function(c){"number"===typeof c?q.attr({height:c}):q&&(b.clipRect=
345
- q.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=c?"rect("+k+"px,9999px,"+(k+c)+"px,0)":"auto")},n=function(c){b[c]=e.circle(0,0,1.3*B).translate(B/2,B/2).add(x);a.styledMode||b[c].attr("fill","rgba(0,0,0,0.0001)");return b[c]};"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(f/=2);m&&(f=Math.min(f,m));p.length=0;c&&0<f&&c>f&&!1!==r.enabled?(this.clipHeight=h=Math.max(f-20-this.titleHeight-k,0),this.currentPage=E(this.currentPage,1),this.fullHeight=
346
- c,u.forEach(function(c,b){var a=c._legendItemPos[1],e=Math.round(c.legendItem.getBBox().height),d=p.length;if(!d||a-p[d-1]>h&&(w||a)!==p[d-1])p.push(w||a),d++;c.pageIx=d-1;w&&(u[b-1].pageIx=d-1);b===u.length-1&&a+e-p[d-1]>h&&a!==w&&(p.push(a),c.pageIx=d);a!==w&&(w=a)}),q||(q=b.clipRect=e.clipRect(0,k,9999,0),b.contentGroup.clip(q)),M(h),x||(this.nav=x=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,B,B).add(x),n("upTracker").on("click",function(){b.scroll(-1,t)}),this.pager=
347
- e.text("",15,10).addClass("highcharts-legend-navigation"),a.styledMode||this.pager.css(r.style),this.pager.add(x),this.down=e.symbol("triangle-down",0,0,B,B).add(x),n("downTracker").on("click",function(){b.scroll(1,t)})),b.scroll(0),c=f):x&&(M(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};a.prototype.scroll=function(c,b){var a=this,e=this.chart,d=this.pages,g=d.length,f=this.currentPage+c;c=this.clipHeight;var k=this.options.navigation,m=this.pager,h=this.padding;
348
- f>g&&(f=g);0<f&&("undefined"!==typeof b&&y(b,e),this.nav.attr({translateX:h,translateY:c+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(c){c.attr({"class":1===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),m.attr({text:f+"/"+g}),[this.down,this.downTracker].forEach(function(c){c.attr({x:18+this.pager.getBBox().width,"class":f===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:1===
349
- f?k.inactiveColor:k.activeColor}),this.upTracker.css({cursor:1===f?"default":"pointer"}),this.down.attr({fill:f===g?k.inactiveColor:k.activeColor}),this.downTracker.css({cursor:f===g?"default":"pointer"})),this.scrollOffset=-d[f-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=f,this.positionCheckboxes(),b=u(E(b,e.renderer.globalAnimation,!0)),q(function(){H(a,"afterScroll",{currentPage:f})},b.duration))};a.prototype.setItemEvents=function(c,b,a){var e=
350
- this,d=e.chart.renderer.boxWrapper,g=c instanceof D,f="highcharts-legend-"+(g?"point":"series")+"-active",l=e.chart.styledMode;(a?[b,c.legendSymbol]:[c.legendGroup]).forEach(function(a){if(a)a.on("mouseover",function(){c.visible&&e.allItems.forEach(function(b){c!==b&&b.setState("inactive",!g)});c.setState("hover");c.visible&&d.addClass(f);l||b.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||b.css(w(c.visible?e.itemStyle:e.itemHiddenStyle));e.allItems.forEach(function(b){c!==
351
- b&&b.setState("",!g)});d.removeClass(f);c.setState()}).on("click",function(b){var a=function(){c.setVisible&&c.setVisible();e.allItems.forEach(function(b){c!==b&&b.setState(c.visible?"inactive":"",!g)})};d.removeClass(f);b={browserEvent:b};c.firePointEvent?c.firePointEvent("legendItemClick",b,a):H(c,"legendItemClick",b,a)})})};a.prototype.createCheckboxForItem=function(c){c.checkbox=f("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:c.selected,defaultChecked:c.selected},this.options.itemCheckboxStyle,
352
- this.chart.container);d(c.checkbox,"click",function(b){H(c.series||c,"checkboxClick",{checked:b.target.checked,item:c},function(){c.select()})})};return a}();(/Trident\/7\.0/.test(n.navigator&&n.navigator.userAgent)||a)&&z(e.prototype,"positionItem",function(b,c){var a=this,e=function(){c._legendItemPos&&b.call(a,c)};e();a.bubbleLegend||setTimeout(e)});C.Legend=e;return C.Legend});J(a,"Core/Series/SeriesRegistry.js",[a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],
353
- function(a,n,C,D){var u=n.defaultOptions,A=D.error,y=D.extendClass,p=D.merge,h;(function(d){function f(b,a){var f=u.plotOptions||{},k=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=C);a.prototype.type=b;k&&(f[b]=k);d.seriesTypes[b]=a}d.seriesTypes=a.seriesTypes;d.getSeries=function(b,a){void 0===a&&(a={});var f=b.options.chart;f=a.type||f.type||f.defaultSeriesType||"";var k=d.seriesTypes[f];d||A(17,!0,b,{missingModuleFor:f});f=new k;"function"===typeof f.init&&f.init(b,a);return f};
354
- d.registerSeriesType=f;d.seriesType=function(b,a,h,t,n){var k=u.plotOptions||{};a=a||"";k[b]=p(k[a],h);f(b,y(d.seriesTypes[a]||function(){},t));d.seriesTypes[b].prototype.type=b;n&&(d.seriesTypes[b].prototype.pointClass=y(C,n));return d.seriesTypes[b]}})(h||(h={}));a.seriesType=h.seriesType;return h});J(a,"Core/Chart/Chart.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/FormatUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Core/MSPointer.js"],
355
- 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/Time.js"],a["Core/Utilities.js"],a["Core/Renderer/HTML/AST.js"]],function(a,n,C,D,z,A,y,p,h,d,f,b,k,B,t){var u=a.animate,K=a.animObject,w=a.setAnimation,E=C.numberFormat,x=D.registerEventOptions,r=z.charts,q=z.doc,e=z.marginNames,m=z.win,c=p.defaultOptions,g=p.defaultTime,l=b.seriesTypes,v=B.addEvent,G=B.attr,L=B.cleanRecursively,F=B.createElement,
356
- N=B.css,O=B.defined,aa=B.discardElement,V=B.erase,ba=B.error,I=B.extend,P=B.find,J=B.fireEvent,Z=B.getStyle,ha=B.isArray,M=B.isNumber,Q=B.isObject,U=B.isString,T=B.merge,S=B.objectEach,R=B.pick,W=B.pInt,ca=B.relativeLength,da=B.removeEvent,Y=B.splat,ea=B.syncTimeout,ia=B.uniqueKey;a=function(){function b(c,b,a){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=
357
- this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(c,b,a)}b.chart=function(c,a,e){return new b(c,a,e)};b.prototype.getArgs=function(c,b,a){U(c)||c.nodeName?(this.renderTo=c,this.init(b,a)):this.init(c,b)};b.prototype.init=
358
- function(b,a){var e=b.plotOptions||{};J(this,"init",{args:arguments},function(){var d=T(c,b),g=d.chart;S(d.plotOptions,function(c,b){Q(c)&&(c.tooltip=e[b]&&T(e[b].tooltip)||void 0)});d.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;this.userOptions=b;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=a;this.isResizing=0;this.options=d;this.axes=[];this.series=[];this.time=b.time&&Object.keys(b.time).length?new k(b.time):z.time;
359
- this.numberFormatter=g.numberFormatter||E;this.styledMode=g.styledMode;this.hasCartesianSeries=g.showAxes;this.index=r.length;r.push(this);z.chartCount++;x(this,g);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;J(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(c){var b=this.options.chart;b=c.type||b.type||b.defaultSeriesType;var a=l[b];a||ba(17,!0,this,{missingModuleFor:b});b=new a;"function"===typeof b.init&&b.init(this,c);return b};b.prototype.setSeriesData=
360
- function(){this.getSeriesOrderByLinks().forEach(function(c){c.points||c.data||!c.enabledDataSorting||c.setData(c.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(c,b){return c.linkedSeries.length||b.linkedSeries.length?b.linkedSeries.length-c.linkedSeries.length:0})};b.prototype.orderSeries=function(c){var b=this.series;c=c||0;for(var a=b.length;c<a;++c)b[c]&&(b[c].index=c,b[c].name=b[c].getName())};b.prototype.isInsidePlot=function(c,b,a){void 0===
361
- a&&(a={});var e=this.inverted,d=this.plotBox,g=this.plotLeft,f=this.plotTop,l=this.scrollablePlotBox,k=0;var m=0;a.visiblePlotOnly&&this.scrollingContainer&&(m=this.scrollingContainer,k=m.scrollLeft,m=m.scrollTop);var h=a.series;d=a.visiblePlotOnly&&l||d;l=a.inverted?b:c;b=a.inverted?c:b;c={x:l,y:b,isInsidePlot:!0};if(!a.ignoreX){var q=h&&(e?h.yAxis:h.xAxis)||{pos:g,len:Infinity};l=a.paneCoordinates?q.pos+l:g+l;l>=Math.max(k+g,q.pos)&&l<=Math.min(k+g+d.width,q.pos+q.len)||(c.isInsidePlot=!1)}!a.ignoreY&&
362
- c.isInsidePlot&&(e=h&&(e?h.xAxis:h.yAxis)||{pos:f,len:Infinity},a=a.paneCoordinates?e.pos+b:f+b,a>=Math.max(m+f,e.pos)&&a<=Math.min(m+f+d.height,e.pos+e.len)||(c.isInsidePlot=!1));J(this,"afterIsInsidePlot",c);return c.isInsidePlot};b.prototype.redraw=function(c){J(this,"beforeRedraw");var b=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,e=this.pointer,d=this.legend,g=this.userOptions.legend,f=this.renderer,l=f.isHidden(),k=[],m=this.isDirtyBox,h=this.isDirtyLegend;this.setResponsive&&
363
- this.setResponsive(!1);w(this.hasRendered?c:!1,this);l&&this.temporaryDisplay();this.layOutTitles();for(c=a.length;c--;){var q=a[c];if(q.options.stacking||q.options.centerInCategory){var r=!0;if(q.isDirty){var v=!0;break}}}if(v)for(c=a.length;c--;)q=a[c],q.options.stacking&&(q.isDirty=!0);a.forEach(function(c){c.isDirty&&("point"===c.options.legendType?("function"===typeof c.updateTotals&&c.updateTotals(),h=!0):g&&(g.labelFormatter||g.labelFormat)&&(h=!0));c.isDirtyData&&J(c,"updatedData")});h&&d&&
364
- d.options.enabled&&(d.render(),this.isDirtyLegend=!1);r&&this.getStacks();b.forEach(function(c){c.updateNames();c.setScale()});this.getMargins();b.forEach(function(c){c.isDirty&&(m=!0)});b.forEach(function(c){var b=c.min+","+c.max;c.extKey!==b&&(c.extKey=b,k.push(function(){J(c,"afterSetExtremes",I(c.eventArgs,c.getExtremes()));delete c.eventArgs}));(m||r)&&c.redraw()});m&&this.drawChartBox();J(this,"predraw");a.forEach(function(c){(m||c.isDirty)&&c.visible&&c.redraw();c.isDirtyData=!1});e&&e.reset(!0);
365
- f.draw();J(this,"redraw");J(this,"render");l&&this.temporaryDisplay(!0);k.forEach(function(c){c.call()})};b.prototype.get=function(c){function b(b){return b.id===c||b.options&&b.options.id===c}for(var a=this.series,e=P(this.axes,b)||P(this.series,b),d=0;!e&&d<a.length;d++)e=P(a[d].points||[],b);return e};b.prototype.getAxes=function(){var c=this,b=this.options,a=b.xAxis=Y(b.xAxis||{});b=b.yAxis=Y(b.yAxis||{});J(this,"getAxes");a.forEach(function(c,b){c.index=b;c.isX=!0});b.forEach(function(c,b){c.index=
366
- b});a.concat(b).forEach(function(b){new n(c,b)});J(this,"afterGetAxes")};b.prototype.getSelectedPoints=function(){var c=[];this.series.forEach(function(b){c=c.concat(b.getPointsCollection().filter(function(c){return R(c.selectedStaging,c.selected)}))});return c};b.prototype.getSelectedSeries=function(){return this.series.filter(function(c){return c.selected})};b.prototype.setTitle=function(c,b,a){this.applyDescription("title",c);this.applyDescription("subtitle",b);this.applyDescription("caption",
367
- void 0);this.layOutTitles(a)};b.prototype.applyDescription=function(c,b){var a=this,e="title"===c?{color:h.neutralColor80,fontSize:this.options.isStock?"16px":"18px"}:{color:h.neutralColor60};e=this.options[c]=T(!this.styledMode&&{style:e},this.options[c],b);var d=this[c];d&&b&&(this[c]=d=d.destroy());e&&!d&&(d=this.renderer.text(e.text,0,0,e.useHTML).attr({align:e.align,"class":"highcharts-"+c,zIndex:e.zIndex||4}).add(),d.update=function(b){a[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[c]](b)},
368
- this.styledMode||d.css(e.style),this[c]=d)};b.prototype.layOutTitles=function(c){var b=[0,0,0],a=this.renderer,e=this.spacingBox;["title","subtitle","caption"].forEach(function(c){var d=this[c],g=this.options[c],f=g.verticalAlign||"top";c="title"===c?"top"===f?-3:0:"top"===f?b[0]+2:0;var l;if(d){this.styledMode||(l=g.style&&g.style.fontSize);l=a.fontMetrics(l,d).b;d.css({width:(g.width||e.width+(g.widthAdjust||0))+"px"});var k=Math.round(d.getBBox(g.useHTML).height);d.align(I({y:"bottom"===f?l:c+
369
- l,height:k},g),!1,"spacingBox");g.floating||("top"===f?b[0]=Math.ceil(b[0]+k):"bottom"===f&&(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);var d=!this.titleOffset||this.titleOffset.join(",")!==b.join(",");this.titleOffset=b;J(this,"afterLayOutTitles");!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&R(c,!0)&&
370
- this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var c=this.options.chart,b=c.width;c=c.height;var a=this.renderTo;O(b)||(this.containerWidth=Z(a,"width"));O(c)||(this.containerHeight=Z(a,"height"));this.chartWidth=Math.max(0,b||this.containerWidth||600);this.chartHeight=Math.max(0,ca(c,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(c){var b=this.renderTo;if(c)for(;b&&b.style;)b.hcOrigStyle&&(N(b,b.hcOrigStyle),delete b.hcOrigStyle),
371
- 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,overflow:b.style.overflow},c={display:"block",overflow:"hidden"},b!==this.renderTo&&(c.height=0),N(b,c),b.offsetWidth||b.style.setProperty("display","block","important");b=b.parentNode;if(b===q.body)break}};b.prototype.setClassName=
372
- function(c){this.container.className="highcharts-container "+(c||"")};b.prototype.getContainer=function(){var c=this.options,b=c.chart,a=ia(),e,d=this.renderTo;d||(this.renderTo=d=b.renderTo);U(d)&&(this.renderTo=d=q.getElementById(d));d||ba(13,!0,this);var g=W(G(d,"data-highcharts-chart"));M(g)&&r[g]&&r[g].hasRendered&&r[g].destroy();G(d,"data-highcharts-chart",this.index);d.innerHTML="";b.skipClone||d.offsetWidth||this.temporaryDisplay();this.getChartSize();g=this.chartWidth;var l=this.chartHeight;
373
- N(d,{overflow:"hidden"});this.styledMode||(e=I({position:"relative",overflow:"hidden",width:g+"px",height:l+"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=a=F("div",{id:a},e,d);this._cursor=a.style.cursor;this.renderer=new (f.getRendererType(b.renderer))(a,g,l,void 0,b.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);w(void 0,this);this.setClassName(b.className);
374
- if(this.styledMode)for(var k in c.defs)this.renderer.definition(c.defs[k]);else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;J(this,"afterGetContainer")};b.prototype.getMargins=function(c){var b=this.spacing,a=this.margin,e=this.titleOffset;this.resetMargins();e[0]&&!O(a[0])&&(this.plotTop=Math.max(this.plotTop,e[0]+b[0]));e[2]&&!O(a[2])&&(this.marginBottom=Math.max(this.marginBottom,e[2]+b[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(a,b);J(this,"getMargins");
375
- c||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var c=this,b=c.axisOffset=[0,0,0,0],a=c.colorAxis,d=c.margin,g=function(c){c.forEach(function(c){c.visible&&c.getOffset()})};c.hasCartesianSeries?g(c.axes):a&&a.length&&g(a);e.forEach(function(a,e){O(d[e])||(c[a]+=b[e])});c.setChartSize()};b.prototype.reflow=function(c){var b=this,a=b.options.chart,e=b.renderTo,d=O(a.width)&&O(a.height),g=a.width||Z(e,"width");a=a.height||Z(e,"height");e=c?c.target:m;delete b.pointer.chartPosition;if(!d&&
376
- !b.isPrinting&&g&&a&&(e===m||e===q)){if(g!==b.containerWidth||a!==b.containerHeight)B.clearTimeout(b.reflowTimeout),b.reflowTimeout=ea(function(){b.container&&b.setSize(void 0,void 0,!1)},c?100:0);b.containerWidth=g;b.containerHeight=a}};b.prototype.setReflow=function(c){var b=this;!1===c||this.unbindReflow?!1===c&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=v(m,"resize",function(c){b.options&&b.reflow(c)}),v(this,"destroy",this.unbindReflow))};b.prototype.setSize=
377
- function(c,b,a){var e=this,d=e.renderer;e.isResizing+=1;w(a,e);a=d.globalAnimation;e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;"undefined"!==typeof c&&(e.options.chart.width=c);"undefined"!==typeof b&&(e.options.chart.height=b);e.getChartSize();e.styledMode||(a?u:N)(e.container,{width:e.chartWidth+"px",height:e.chartHeight+"px"},a);e.setChartSize(!0);d.setSize(e.chartWidth,e.chartHeight,a);e.axes.forEach(function(c){c.isDirty=!0;c.setScale()});e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();
378
- e.getMargins();e.redraw(a);e.oldChartHeight=null;J(e,"resize");ea(function(){e&&J(e,"endResize",null,function(){--e.isResizing})},K(a).duration)};b.prototype.setChartSize=function(c){var b=this.inverted,a=this.renderer,e=this.chartWidth,d=this.chartHeight,g=this.options.chart,f=this.spacing,l=this.clipOffset,k,m,h,q;this.plotLeft=k=Math.round(this.plotLeft);this.plotTop=m=Math.round(this.plotTop);this.plotWidth=h=Math.max(0,Math.round(e-k-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(d-
379
- m-this.marginBottom));this.plotSizeX=b?q:h;this.plotSizeY=b?h:q;this.plotBorderWidth=g.plotBorderWidth||0;this.spacingBox=a.spacingBox={x:f[3],y:f[0],width:e-f[3]-f[1],height:d-f[0]-f[2]};this.plotBox=a.plotBox={x:k,y:m,width:h,height:q};b=2*Math.floor(this.plotBorderWidth/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))};c||(this.axes.forEach(function(c){c.setAxisSize();
380
- c.setAxisTranslation()}),a.alignElements());J(this,"afterSetChartSize",{skipAxes:c})};b.prototype.resetMargins=function(){J(this,"resetMargins");var c=this,b=c.options.chart;["margin","spacing"].forEach(function(a){var e=b[a],d=Q(e)?e:[e,e,e,e];["Top","Right","Bottom","Left"].forEach(function(e,g){c[a][g]=R(b[a+e],d[g])})});e.forEach(function(b,a){c[b]=R(c.margin[a],c.spacing[a])});c.axisOffset=[0,0,0,0];c.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var c=this.options.chart,b=this.renderer,
381
- a=this.chartWidth,e=this.chartHeight,d=this.styledMode,g=this.plotBGImage,f=c.backgroundColor,l=c.plotBackgroundColor,k=c.plotBackgroundImage,m=this.plotLeft,h=this.plotTop,q=this.plotWidth,r=this.plotHeight,v=this.plotBox,M=this.clipRect,x=this.clipBox,t=this.chartBackground,p=this.plotBackground,B=this.plotBorder,w,u="animate";t||(this.chartBackground=t=b.rect().addClass("highcharts-background").add(),u="attr");if(d)var E=w=t.strokeWidth();else{E=c.borderWidth||0;w=E+(c.shadow?8:0);f={fill:f||"none"};
382
- if(E||t["stroke-width"])f.stroke=c.borderColor,f["stroke-width"]=E;t.attr(f).shadow(c.shadow)}t[u]({x:w/2,y:w/2,width:a-w-E%2,height:e-w-E%2,r:c.borderRadius});u="animate";p||(u="attr",this.plotBackground=p=b.rect().addClass("highcharts-plot-background").add());p[u](v);d||(p.attr({fill:l||"none"}).shadow(c.plotShadow),k&&(g?(k!==g.attr("href")&&g.attr("href",k),g.animate(v)):this.plotBGImage=b.image(k,m,h,q,r).add()));M?M.animate({width:x.width,height:x.height}):this.clipRect=b.clipRect(x);u="animate";
383
- B||(u="attr",this.plotBorder=B=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());d||B.attr({stroke:c.plotBorderColor,"stroke-width":c.plotBorderWidth||0,fill:"none"});B[u](B.crisp({x:m,y:h,width:q,height:r},-B.strokeWidth()));this.isDirtyBox=!1;J(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var c=this,b=c.options.chart,a=c.options.series,e,d,g;["inverted","angular","polar"].forEach(function(f){d=l[b.type||b.defaultSeriesType];g=b[f]||d&&d.prototype[f];for(e=a&&
384
- a.length;!g&&e--;)(d=l[a[e].type])&&d.prototype[f]&&(g=!0);c[f]=g})};b.prototype.linkSeries=function(){var c=this,b=c.series;b.forEach(function(c){c.linkedSeries.length=0});b.forEach(function(b){var a=b.options.linkedTo;U(a)&&(a=":previous"===a?c.series[b.index-1]:c.get(a))&&a.linkedParent!==b&&(a.linkedSeries.push(b),b.linkedParent=a,a.enabledDataSorting&&b.setDataSortingOptions(),b.visible=R(b.options.visible,a.options.visible,b.visible))});J(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(c){c.translate();
385
- c.render()})};b.prototype.renderLabels=function(){var c=this,b=c.options.labels;b.items&&b.items.forEach(function(a){var e=I(b.style,a.style),d=W(e.left)+c.plotLeft,g=W(e.top)+c.plotTop+12;delete e.left;delete e.top;c.renderer.text(a.html,d,g).attr({zIndex:2}).css(e).add()})};b.prototype.render=function(){var c=this.axes,b=this.colorAxis,a=this.renderer,e=this.options,d=function(c){c.forEach(function(c){c.visible&&c.render()})},g=0;this.setTitle();this.legend=new A(this,e.legend);this.getStacks&&
386
- this.getStacks();this.getMargins(!0);this.setChartSize();e=this.plotWidth;c.some(function(c){if(c.horiz&&c.visible&&c.options.labels.enabled&&c.series.length)return g=21,!0});var f=this.plotHeight=Math.max(this.plotHeight-g,0);c.forEach(function(c){c.setScale()});this.getAxisMargins();var l=1.1<e/this.plotWidth,k=1.05<f/this.plotHeight;if(l||k)c.forEach(function(c){(c.horiz&&l||!c.horiz&&k)&&c.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?d(c):b&&b.length&&d(b);
387
- this.seriesGroup||(this.seriesGroup=a.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(c){var b=this,a=T(!0,this.options.credits,c);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(m.location.href=a.href)}).attr({align:a.position.align,zIndex:8}),b.styledMode||
388
- this.credits.css(a.style),this.credits.add().align(a.position),this.credits.update=function(c){b.credits=b.credits.destroy();b.addCredits(c)})};b.prototype.destroy=function(){var c=this,b=c.axes,a=c.series,e=c.container,d=e&&e.parentNode,g;J(c,"destroy");c.renderer.forExport?V(r,c):r[c.index]=void 0;z.chartCount--;c.renderTo.removeAttribute("data-highcharts-chart");da(c);for(g=b.length;g--;)b[g]=b[g].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(g=a.length;g--;)a[g]=
389
- a[g].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(b){var a=c[b];a&&a.destroy&&(c[b]=a.destroy())});e&&(e.innerHTML="",da(e),d&&aa(e));S(c,function(b,a){delete c[a]})};b.prototype.firstRender=function(){var c=this,b=c.options;if(!c.isReadyToRender||c.isReadyToRender()){c.getContainer();c.resetMargins();c.setChartSize();c.propFromSeries();c.getAxes();
390
- (ha(b.series)?b.series:[]).forEach(function(b){c.initSeries(b)});c.linkSeries();c.setSeriesData();J(c,"beforeRender");d&&(y.isRequired()?c.pointer=new y(c,b):c.pointer=new d(c,b));c.render();c.pointer.getChartPosition();if(!c.renderer.imgCount&&!c.hasLoaded)c.onload();c.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(c){c&&"undefined"!==typeof this.index&&c.apply(this,[this])},this);J(this,"load");J(this,"render");O(this.index)&&this.setReflow(this.options.chart.reflow);
391
- this.hasLoaded=!0};b.prototype.addSeries=function(c,b,a){var e=this,d;c&&(b=R(b,!0),J(e,"addSeries",{options:c},function(){d=e.initSeries(c);e.isDirtyLegend=!0;e.linkSeries();d.enabledDataSorting&&d.setData(c.data,!1);J(e,"afterAddSeries",{series:d});b&&e.redraw(a)}));return d};b.prototype.addAxis=function(c,b,a,e){return this.createAxis(b?"xAxis":"yAxis",{axis:c,redraw:a,animation:e})};b.prototype.addColorAxis=function(c,b,a){return this.createAxis("colorAxis",{axis:c,redraw:b,animation:a})};b.prototype.createAxis=
392
- function(c,b){var a="colorAxis"===c,e=b.redraw,d=b.animation;c=T(b.axis,{index:this[c].length,isX:"xAxis"===c});c=a?new z.ColorAxis(this,c):new n(this,c);a&&(this.isDirtyLegend=!0,this.axes.forEach(function(c){c.series=[]}),this.series.forEach(function(c){c.bindAxes();c.isDirtyData=!0}));R(e,!0)&&this.redraw(d);return c};b.prototype.showLoading=function(c){var b=this,a=b.options,e=a.loading,d=function(){g&&N(g,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})},
393
- g=b.loadingDiv,f=b.loadingSpan;g||(b.loadingDiv=g=F("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container));f||(b.loadingSpan=f=F("span",{className:"highcharts-loading-inner"},null,g),v(b,"redraw",d));g.className="highcharts-loading";t.setElementHTML(f,R(c,a.lang.loading,""));b.styledMode||(N(g,I(e.style,{zIndex:10})),N(f,e.labelStyle),b.loadingShown||(N(g,{opacity:0,display:""}),u(g,{opacity:e.style.opacity||.5},{duration:e.showDuration||0})));b.loadingShown=!0;d()};b.prototype.hideLoading=
394
- function(){var c=this.options,b=this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",this.styledMode||u(b,{opacity:0},{duration:c.loading.hideDuration||100,complete:function(){N(b,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(c,b,a,e){var d=this,f={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=c.isResponsiveOptions,m=[],h,q;J(d,"update",{options:c});l||d.setResponsive(!1,!0);c=L(c,d.options);d.userOptions=T(d.userOptions,
395
- c);var r=c.chart;if(r){T(!0,d.options.chart,r);"className"in r&&d.setClassName(r.className);"reflow"in r&&d.setReflow(r.reflow);if("inverted"in r||"polar"in r||"type"in r){d.propFromSeries();var v=!0}"alignTicks"in r&&(v=!0);"events"in r&&x(this,r);S(r,function(c,b){-1!==d.propsRequireUpdateSeries.indexOf("chart."+b)&&(h=!0);-1!==d.propsRequireDirtyBox.indexOf(b)&&(d.isDirtyBox=!0);-1!==d.propsRequireReflow.indexOf(b)&&(l?d.isDirtyBox=!0:q=!0)});!d.styledMode&&"style"in r&&d.renderer.setStyle(r.style)}!d.styledMode&&
396
- c.colors&&(this.options.colors=c.colors);c.time&&(this.time===g&&(this.time=new k(c.time)),T(!0,d.options.time,c.time));S(c,function(b,a){if(d[a]&&"function"===typeof d[a].update)d[a].update(b,!1);else if("function"===typeof d[f[a]])d[f[a]](b);else"colors"!==a&&-1===d.collectionsWithUpdate.indexOf(a)&&T(!0,d.options[a],c[a]);"chart"!==a&&-1!==d.propsRequireUpdateSeries.indexOf(a)&&(h=!0)});this.collectionsWithUpdate.forEach(function(b){if(c[b]){var e=[];d[b].forEach(function(c,b){c.options.isInternal||
397
- e.push(R(c.options.index,b))});Y(c[b]).forEach(function(c,g){var f=O(c.id),l;f&&(l=d.get(c.id));!l&&d[b]&&(l=d[b][e?e[g]:g])&&f&&O(l.options.id)&&(l=void 0);l&&l.coll===b&&(l.update(c,!1),a&&(l.touched=!0));!l&&a&&d.collectionsWithInit[b]&&(d.collectionsWithInit[b][0].apply(d,[c].concat(d.collectionsWithInit[b][1]||[]).concat([!1])).touched=!0)});a&&d[b].forEach(function(c){c.touched||c.options.isInternal?delete c.touched:m.push(c)})}});m.forEach(function(c){c.chart&&c.remove(!1)});v&&d.axes.forEach(function(c){c.update({},
398
- !1)});h&&d.getSeriesOrderByLinks().forEach(function(c){c.chart&&c.update({},!1)},this);v=r&&r.width;r=r&&(U(r.height)?ca(r.height,v||d.chartWidth):r.height);q||M(v)&&v!==d.chartWidth||M(r)&&r!==d.chartHeight?d.setSize(v,r,e):R(b,!0)&&d.redraw(e);J(d,"afterUpdate",{options:c,redraw:b,animation:e})};b.prototype.setSubtitle=function(c,b){this.applyDescription("subtitle",c);this.layOutTitles(b)};b.prototype.setCaption=function(c,b){this.applyDescription("caption",c);this.layOutTitles(b)};b.prototype.showResetZoom=
399
- function(){function b(){a.zoomOut()}var a=this,e=c.lang,d=a.options.chart.resetZoomButton,g=d.theme,f=g.states,l="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";J(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(e.resetZoom,null,null,b,g,f&&f.hover).attr({align:d.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,l)});J(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){J(this,"selection",
400
- {resetSelection:!0},this.zoom)};b.prototype.zoom=function(c){var b=this,a=b.pointer,e=b.inverted?a.mouseDownX:a.mouseDownY,d=!1,g;!c||c.resetSelection?(b.axes.forEach(function(c){g=c.zoom()}),a.initiated=!1):c.xAxis.concat(c.yAxis).forEach(function(c){var f=c.axis,l=b.inverted?f.left:f.top,k=b.inverted?l+f.width:l+f.height,m=f.isXAxis,h=!1;if(!m&&e>=l&&e<=k||m||!O(e))h=!0;a[m?"zoomX":"zoomY"]&&h&&(g=f.zoom(c.min,c.max),f.displayBtn&&(d=!0))});var f=b.resetZoomButton;d&&!f?b.showResetZoom():!d&&Q(f)&&
401
- (b.resetZoomButton=f.destroy());g&&b.redraw(R(b.options.chart.animation,c&&c.animation,100>b.pointCount))};b.prototype.pan=function(c,b){var a=this,e=a.hoverPoints;b="object"===typeof b?b:{enabled:b,type:"x"};var d=a.options.chart,g=a.options.mapNavigation&&a.options.mapNavigation.enabled;d&&d.panning&&(d.panning=b);var f=b.type,l;J(this,"pan",{originalEvent:c},function(){e&&e.forEach(function(c){c.setState()});var b=a.xAxis;"xy"===f?b=b.concat(a.yAxis):"y"===f&&(b=a.yAxis);var d={};b.forEach(function(b){if(b.options.panningEnabled&&
402
- !b.options.isInternal){var e=b.horiz,k=c[e?"chartX":"chartY"];e=e?"mouseDownX":"mouseDownY";var m=a[e],h=b.minPointOffset||0,q=b.reversed&&!a.inverted||!b.reversed&&a.inverted?-1:1,r=b.getExtremes(),v=b.toValue(m-k,!0)+h*q,t=b.toValue(m+b.len-k,!0)-(h*q||b.isXAxis&&b.pointRangePadding||0),x=t<v;q=b.hasVerticalPanning();m=x?t:v;v=x?v:t;var p=b.panningState;!q||b.isXAxis||p&&!p.isDirty||b.series.forEach(function(c){var b=c.getProcessedData(!0);b=c.getExtremes(b.yData,!0);p||(p={startMin:Number.MAX_VALUE,
403
- startMax:-Number.MAX_VALUE});M(b.dataMin)&&M(b.dataMax)&&(p.startMin=Math.min(R(c.options.threshold,Infinity),b.dataMin,p.startMin),p.startMax=Math.max(R(c.options.threshold,-Infinity),b.dataMax,p.startMax))});q=Math.min(R(p&&p.startMin,r.dataMin),h?r.min:b.toValue(b.toPixels(r.min)-b.minPixelPadding));t=Math.max(R(p&&p.startMax,r.dataMax),h?r.max:b.toValue(b.toPixels(r.max)+b.minPixelPadding));b.panningState=p;b.isOrdinal||(h=q-m,0<h&&(v+=h,m=q),h=v-t,0<h&&(v=t,m-=h),b.series.length&&m!==r.min&&
404
- v!==r.max&&m>=q&&v<=t&&(b.setExtremes(m,v,!1,!1,{trigger:"pan"}),a.resetZoomButton||g||m===q||v===t||!f.match("y")||(a.showResetZoom(),b.displayBtn=!1),l=!0),d[e]=k)}});S(d,function(c,b){a[b]=c});l&&a.redraw(!1);N(a.container,{cursor:"move"})})};return b}();I(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
405
- 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 a});J(a,"Mixins/LegendSymbol.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=n.merge,D=n.pick;return a.LegendSymbolMixin={drawRectangle:function(a,u){var n=a.symbolHeight,p=a.options.squareSymbol;
406
- u.legendSymbol=this.chart.renderer.rect(p?(a.symbolWidth-n)/2:0,a.baseline-n+1,p?n:a.symbolWidth,n,D(a.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(u.legendGroup)},drawLineMarker:function(a){var n=this.options,y=n.marker,p=a.symbolWidth,h=a.symbolHeight,d=h/2,f=this.chart.renderer,b=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var k={};this.chart.styledMode||(k={"stroke-width":n.lineWidth||0},n.dashStyle&&(k.dashstyle=n.dashStyle));this.legendLine=f.path([["M",
407
- 0,a],["L",p,a]]).addClass("highcharts-graph").attr(k).add(b);y&&!1!==y.enabled&&p&&(n=Math.min(D(y.radius,d),d),0===this.symbol.indexOf("url")&&(y=u(y,{width:h,height:h}),n=0),this.legendSymbol=y=f.symbol(this.symbol,p/2-n,a-n,2*n,2*n,y).addClass("highcharts-point").add(b),y.isMarker=!0)}}});J(a,"Core/Series/Series.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],
408
- a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d){var f=a.animObject,b=a.setAnimation,k=n.registerEventOptions,B=C.hasTouch,t=C.svg,u=C.win,K=z.defaultOptions,w=p.seriesTypes,E=d.addEvent,x=d.arrayMax,r=d.arrayMin,q=d.clamp,e=d.cleanRecursively,m=d.correctFloat,c=d.defined,g=d.erase,l=d.error,v=d.extend,G=d.find,L=d.fireEvent,F=d.getNestedProperty,N=d.isArray,O=d.isNumber,aa=d.isString,V=d.merge,J=d.objectEach,I=d.pick,P=
409
- d.removeEvent,fa=d.splat,Z=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=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}a.prototype.init=function(c,b){L(this,"init",{options:b});var a=this,e=c.series;this.eventsToUnbind=[];a.chart=c;a.options=a.setOptions(b);b=a.options;a.linkedSeries=[];a.bindAxes();v(a,{name:b.name,
410
- 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)c.runTrackerClick=!0;a.getColor();a.getSymbol();a.parallelArrays.forEach(function(c){a[c+"Data"]||(a[c+"Data"]=[])});a.isCartesian&&(c.hasCartesianSeries=!0);var g;e.length&&(g=e[e.length-1]);a._i=I(g&&g._i,-1)+1;a.opacity=a.options.opacity;c.orderSeries(this.insert(e));b.dataSorting&&b.dataSorting.enabled?a.setDataSortingOptions():a.points||
411
- a.data||a.setData(b.data,!1);L(this,"afterInit")};a.prototype.is=function(c){return w[c]&&this instanceof w[c]};a.prototype.insert=function(c){var b=this.options.index,a;if(O(b)){for(a=c.length;a--;)if(b>=I(c[a].options.index,c[a]._i)){c.splice(a+1,0,this);break}-1===a&&c.unshift(this);a+=1}else c.push(this);return I(a,c.length-1)};a.prototype.bindAxes=function(){var c=this,b=c.options,a=c.chart,e;L(this,"bindAxes",null,function(){(c.axisTypes||[]).forEach(function(d){var g=0;a[d].forEach(function(a){e=
412
- a.options;if(b[d]===g&&!e.isInternal||"undefined"!==typeof b[d]&&b[d]===e.id||"undefined"===typeof b[d]&&0===e.index)c.insert(a.series),c[d]=a,a.isDirty=!0;e.isInternal||g++});c[d]||c.optionalAxis===d||l(18,!0,a)})});L(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(c,b){var a=c.series,e=arguments,d=O(b)?function(e){var d="y"===e&&a.toYData?a.toYData(c):c[e];a[e+"Data"][b]=d}:function(c){Array.prototype[b].apply(a[c+"Data"],Array.prototype.slice.call(e,2))};a.parallelArrays.forEach(d)};
413
- 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(){var c=this.options,b=this.xIncrement,a,e=c.pointIntervalUnit,d=this.chart.time;b=I(b,c.pointStart,0);this.pointInterval=a=I(this.pointInterval,c.pointInterval,1);e&&(c=new d.Date(b),"day"===e?d.set("Date",c,d.get("Date",c)+a):"month"===e?d.set("Month",c,d.get("Month",c)+a):"year"===e&&d.set("FullYear",
414
- c,d.get("FullYear",c)+a),a=c.getTime()-b);this.xIncrement=b+a;return b};a.prototype.setDataSortingOptions=function(){var b=this.options;v(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});c(b.pointRange)||(b.pointRange=1)};a.prototype.setOptions=function(b){var a=this.chart,e=a.options,d=e.plotOptions,g=a.userOptions||{};b=V(b);a=a.styledMode;var f={plotOptions:d,userOptions:b};L(this,"setOptions",f);var l=f.plotOptions[this.type],k=g.plotOptions||{};this.userOptions=f.userOptions;
415
- g=V(l,d.series,g.plotOptions&&g.plotOptions[this.type],b);this.tooltipOptions=V(K.tooltip,K.plotOptions.series&&K.plotOptions.series.tooltip,K.plotOptions[this.type].tooltip,e.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,b.tooltip);this.stickyTracking=I(b.stickyTracking,k[this.type]&&k[this.type].stickyTracking,k.series&&k.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:g.stickyTracking);null===l.marker&&delete g.marker;this.zoneAxis=g.zoneAxis;e=
416
- this.zones=(g.zones||[]).slice();!g.negativeColor&&!g.negativeFillColor||g.zones||(d={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},a||(d.color=g.negativeColor,d.fillColor=g.negativeFillColor),e.push(d));e.length&&c(e[e.length-1].value)&&e.push(a?{}:{color:this.color,fillColor:this.fillColor});L(this,"afterSetOptions",{options:g});return g};a.prototype.getName=function(){return I(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(b,a,
417
- e){var d=this.chart,g=this.userOptions,f=b+"Index",l=b+"Counter",k=e?e.length:I(d.options.chart[b+"Count"],d[b+"Count"]);if(!a){var m=I(g[f],g["_"+f]);c(m)||(d.series.length||(d[l]=0),g["_"+f]=m=d[l]%k,d[l]+=1);e&&(a=e[m])}"undefined"!==typeof m&&(this[f]=m);this[b]=a};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=A.neutralColor20:this.getCyclic("color",this.options.color||K.plotOptions[this.type].color,this.chart.options.colors)};
418
- 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)};a.prototype.findPointIndex=function(c,b){var a=c.id,e=c.x,d=this.points,g,f=this.options.dataSorting;if(a)var l=this.chart.get(a);else if(this.linkedParent||this.enabledDataSorting){var k=f&&f.matchByName?"name":"index";l=G(d,function(b){return!b.touched&&b[k]===c[k]});if(!l)return}if(l){var m=
419
- l&&l.index;"undefined"!==typeof m&&(g=!0)}"undefined"===typeof m&&O(e)&&(m=this.xData.indexOf(e,b));-1!==m&&"undefined"!==typeof m&&this.cropped&&(m=m>=this.cropStart?m-this.cropStart:m);!g&&d[m]&&d[m].touched&&(m=void 0);return m};a.prototype.updateData=function(b,a){var e=this.options,d=e.dataSorting,g=this.points,f=[],l,k,m,h=this.requireSorting,q=b.length===g.length,r=!0;this.xIncrement=null;b.forEach(function(b,a){var k=c(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{};
420
- var r=k.x;if(k.id||O(r)){if(r=this.findPointIndex(k,m),-1===r||"undefined"===typeof r?f.push(b):g[r]&&b!==e.data[r]?(g[r].update(b,!1,null,!1),g[r].touched=!0,h&&(m=r+1)):g[r]&&(g[r].touched=!0),!q||a!==r||d&&d.enabled||this.hasDerivedData)l=!0}else f.push(b)},this);if(l)for(b=g.length;b--;)(k=g[b])&&!k.touched&&k.remove&&k.remove(!1,a);else!q||d&&d.enabled?r=!1:(b.forEach(function(c,b){c!==g[b].y&&g[b].update&&g[b].update(c,!1,null,!1)}),f.length=0);g.forEach(function(c){c&&(c.touched=!1)});if(!r)return!1;
421
- f.forEach(function(c){this.addPoint(c,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(c,b,a,e){var d=this,g=d.points,f=g&&g.length||0,k,m=d.options,h=d.chart,q=m.dataSorting,r=null,v=d.xAxis;r=m.turboThreshold;var t=this.xData,p=this.yData,x=(k=d.pointArrayMap)&&k.length,B=m.keys,w=0,M=1,u;c=c||[];k=c.length;b=I(b,!0);q&&q.enabled&&(c=this.sortData(c));!1!==e&&k&&f&&!d.cropped&&
422
- !d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&(u=this.updateData(c,a));if(!u){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(c){d[c+"Data"].length=0});if(r&&k>r)if(r=d.getFirstValidPoint(c),O(r))for(a=0;a<k;a++)t[a]=this.autoIncrement(),p[a]=c[a];else if(N(r))if(x)for(a=0;a<k;a++)e=c[a],t[a]=e[0],p[a]=e.slice(1,x+1);else for(B&&(w=B.indexOf("x"),M=B.indexOf("y"),w=0<=w?w:0,M=0<=M?M:1),a=0;a<k;a++)e=c[a],t[a]=e[w],p[a]=e[M];else l(12,!1,h);else for(a=0;a<k;a++)"undefined"!==
423
- typeof c[a]&&(e={series:d},d.pointClass.prototype.applyOptions.apply(e,[c[a]]),d.updateParallelArrays(e,a));p&&aa(p[0])&&l(14,!0,h);d.data=[];d.options.data=d.userOptions.data=c;for(a=f;a--;)g[a]&&g[a].destroy&&g[a].destroy();v&&(v.minRange=v.userMinRange);d.isDirty=h.isDirtyBox=!0;d.isDirtyData=!!g;a=!1}"point"===m.legendType&&(this.processData(),this.generatePoints());b&&h.redraw(a)};a.prototype.sortData=function(b){var a=this,e=a.options.dataSorting.sortKey||"y",d=function(b,a){return c(a)&&b.pointClass.prototype.optionsToObject.call({series:b},
424
- a)||{}};b.forEach(function(c,e){b[e]=d(a,c);b[e].index=e},this);b.concat().sort(function(c,b){c=F(e,c);b=F(e,b);return b<c?-1:b>c?1:0}).forEach(function(c,b){c.x=b},this);a.linkedSeries&&a.linkedSeries.forEach(function(c){var a=c.options,e=a.data;a.dataSorting&&a.dataSorting.enabled||!e||(e.forEach(function(a,g){e[g]=d(c,a);b[g]&&(e[g].x=b[g].x,e[g].index=g)}),c.setData(e,!1))});return b};a.prototype.getProcessedData=function(c){var b=this.xData,a=this.yData,e=b.length;var d=0;var g=this.xAxis,f=
425
- this.options;var k=f.cropThreshold;var m=c||this.getExtremesFromAll||f.getExtremesFromAll,h=this.isCartesian;c=g&&g.val2lin;f=!(!g||!g.logarithmic);var q=this.requireSorting;if(g){g=g.getExtremes();var r=g.min;var v=g.max}if(h&&this.sorted&&!m&&(!k||e>k||this.forceCrop))if(b[e-1]<r||b[0]>v)b=[],a=[];else if(this.yData&&(b[0]<r||b[e-1]>v)){d=this.cropData(this.xData,this.yData,r,v);b=d.xData;a=d.yData;d=d.start;var t=!0}for(k=b.length||1;--k;)if(e=f?c(b[k])-c(b[k-1]):b[k]-b[k-1],0<e&&("undefined"===
426
- typeof p||e<p))var p=e;else 0>e&&q&&(l(15,!1,this.chart),q=!1);return{xData:b,yData:a,cropped:t,cropStart:d,closestPointRange:p}};a.prototype.processData=function(c){var b=this.xAxis;if(this.isCartesian&&!this.isDirty&&!b.isDirty&&!this.yAxis.isDirty&&!c)return!1;c=this.getProcessedData();this.cropped=c.cropped;this.cropStart=c.cropStart;this.processedXData=c.xData;this.processedYData=c.yData;this.closestPointRange=this.basePointRange=c.closestPointRange};a.prototype.cropData=function(c,b,a,e,d){var g=
427
- c.length,f=0,l=g,k;d=I(d,this.cropShoulder);for(k=0;k<g;k++)if(c[k]>=a){f=Math.max(0,k-d);break}for(a=k;a<g;a++)if(c[a]>e){l=a+d;break}return{xData:c.slice(f,l),yData:b.slice(f,l),start:f,end:l}};a.prototype.generatePoints=function(){var c=this.options,b=c.data,a=this.data,e,d=this.processedXData,g=this.processedYData,f=this.pointClass,l=d.length,k=this.cropStart||0,m=this.hasGroupedData,h=c.keys,q=[],r;c=c.dataGrouping&&c.dataGrouping.groupAll?k:0;a||m||(a=[],a.length=b.length,a=this.data=a);h&&
428
- m&&(this.options.keys=!1);for(r=0;r<l;r++){var p=k+r;if(m){var t=(new f).init(this,[d[r]].concat(fa(g[r])));t.dataGroup=this.groupMap[c+r];t.dataGroup.options&&(t.options=t.dataGroup.options,v(t,t.dataGroup.options),delete t.dataLabels)}else(t=a[p])||"undefined"===typeof b[p]||(a[p]=t=(new f).init(this,b[p],d[r]));t&&(t.index=m?c+r:p,q[r]=t)}this.options.keys=h;if(a&&(l!==(e=a.length)||m))for(r=0;r<e;r++)r!==k||m||(r+=l),a[r]&&(a[r].destroyElements(),a[r].plotX=void 0);this.data=a;this.points=q;L(this,
429
- "afterGeneratePoints")};a.prototype.getXExtremes=function(c){return{min:r(c),max:x(c)}};a.prototype.getExtremes=function(c,b){var a=this.xAxis,e=this.yAxis,d=this.processedXData||this.xData,g=[],f=0,l=0;var k=0;var m=this.requireSorting?this.cropShoulder:0,h=e?e.positiveValuesOnly:!1,q;c=c||this.stackedYData||this.processedYData||[];e=c.length;a&&(k=a.getExtremes(),l=k.min,k=k.max);for(q=0;q<e;q++){var v=d[q];var t=c[q];var p=(O(t)||N(t))&&(t.length||0<t||!h);v=b||this.getExtremesFromAll||this.options.getExtremesFromAll||
430
- this.cropped||!a||(d[q+m]||v)>=l&&(d[q-m]||v)<=k;if(p&&v)if(p=t.length)for(;p--;)O(t[p])&&(g[f++]=t[p]);else g[f++]=t}c={dataMin:r(g),dataMax:x(g)};L(this,"afterGetExtremes",{dataExtremes:c});return c};a.prototype.applyExtremes=function(){var c=this.getExtremes();this.dataMin=c.dataMin;this.dataMax=c.dataMax;return c};a.prototype.getFirstValidPoint=function(c){for(var b=null,a=c.length,e=0;null===b&&e<a;)b=c[e],e++;return b};a.prototype.translate=function(){this.processedXData||this.processData();
431
- this.generatePoints();var b=this.options,a=b.stacking,e=this.xAxis,d=e.categories,g=this.enabledDataSorting,f=this.yAxis,l=this.points,k=l.length,h=!!this.modifyValue,r,v=this.pointPlacementToXValue(),t=!!v,p=b.threshold,x=b.startFromThreshold?p:0,B,w=this.zoneAxis||"y",u=Number.MAX_VALUE;for(r=0;r<k;r++){var n=l[r],E=n.x,F=n.y,G=n.low,y=a&&f.stacking&&f.stacking.stacks[(this.negStacks&&F<(x?0:p)?"-":"")+this.stackKey],z=void 0,A=void 0;if(f.positiveValuesOnly&&!f.validatePositiveValue(F)||e.positiveValuesOnly&&
432
- !e.validatePositiveValue(E))n.isNull=!0;n.plotX=B=m(q(e.translate(E,0,0,0,1,v,"flags"===this.type),-1E5,1E5));if(a&&this.visible&&y&&y[E]){var H=this.getStackIndicator(H,E,this.index);n.isNull||(z=y[E],A=z.points[H.key])}N(A)&&(G=A[0],F=A[1],G===x&&H.key===y[E].base&&(G=I(O(p)&&p,f.min)),f.positiveValuesOnly&&0>=G&&(G=null),n.total=n.stackTotal=z.total,n.percentage=z.total&&n.y/z.total*100,n.stackY=F,this.irregularWidths||z.setOffset(this.pointXOffset||0,this.barW||0));n.yBottom=c(G)?q(f.translate(G,
433
- 0,1,0,1),-1E5,1E5):null;h&&(F=this.modifyValue(F,n));n.plotY=void 0;O(F)&&(F=f.translate(F,!1,!0,!1,!0),"undefined"!==typeof F&&(n.plotY=q(F,-1E5,1E5)));n.isInside=this.isPointInside(n);n.clientX=t?m(e.translate(E,0,0,0,1,v)):B;n.negative=n[w]<(b[w+"Threshold"]||p||0);n.category=d&&"undefined"!==typeof d[n.x]?d[n.x]:n.x;if(!n.isNull&&!1!==n.visible){"undefined"!==typeof C&&(u=Math.min(u,Math.abs(B-C)));var C=B}n.zone=this.zones.length&&n.getZone();!n.graphic&&this.group&&g&&(n.isNew=!0)}this.closestPointRangePx=
434
- u;L(this,"afterTranslate")};a.prototype.getValidPoints=function(c,b,a){var e=this.chart;return(c||this.points||[]).filter(function(c){return b&&!e.isInsidePlot(c.plotX,c.plotY,{inverted:e.inverted})?!1:!1!==c.visible&&(a||!c.isNull)})};a.prototype.getClipBox=function(c,b){var a=this.options,e=this.chart,d=e.inverted,g=this.xAxis,f=g&&this.yAxis,l=e.options.chart.scrollablePlotArea||{};c&&!1===a.clip&&f?c=d?{y:-e.chartWidth+f.len+f.pos,height:e.chartWidth,width:e.chartHeight,x:-e.chartHeight+g.len+
435
- g.pos}:{y:-f.pos,height:e.chartHeight,width:e.chartWidth,x:-g.pos}:(c=this.clipBox||e.clipBox,b&&(c.width=e.plotSizeX,c.x=(e.scrollablePixelsX||0)*(l.scrollPositionX||0)));return b?{width:c.width,x:c.x}:c};a.prototype.getSharedClipKey=function(c){if(this.sharedClipKey)return this.sharedClipKey;var b=[c&&c.duration,c&&c.easing,c&&c.defer,this.getClipBox(c).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||c)this.sharedClipKey=b;return b};a.prototype.setClip=function(c){var b=
436
- this.chart,a=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,f=this.getClipBox(c),l=this.getSharedClipKey(c),k=b.sharedClips[l],m=b.sharedClips[l+"m"];c&&(f.width=0,d&&(f.x=b.plotHeight+(!1!==a.clip?0:b.plotTop)));k?b.hasLoaded||k.attr(f):(c&&(b.sharedClips[l+"m"]=m=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(f),k.count={length:0});c&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);if(!1!==a.clip||
437
- c)this.group.clip(c||g?k:b.clipRect),this.markerGroup.clip(m);c||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&(g||(b.sharedClips[l]=k.destroy()),m&&(b.sharedClips[l+"m"]=m.destroy())))};a.prototype.animate=function(c){var b=this.chart,a=f(this.options.animation),e=this.sharedClipKey;if(c)this.setClip(a);else if(e){c=b.sharedClips[e];e=b.sharedClips[e+"m"];var d=this.getClipBox(a,!0);c&&c.animate(d,a);e&&e.animate({width:d.width+99,x:d.x-(b.inverted?0:99)},
438
- a)}};a.prototype.afterAnimate=function(){this.setClip();L(this,"afterAnimate");this.finishedAnimating=!0};a.prototype.drawPoints=function(){var c=this.points,b=this.chart,a,e,d=this.options.marker,g=this[this.specialGroup]||this.markerGroup,f=this.xAxis,l=I(d.enabled,!f||f.isRadial?!0:null,this.closestPointRangePx>=d.enabledThreshold*d.radius);if(!1!==d.enabled||this._hasPointMarkers)for(a=0;a<c.length;a++){var k=c[a];var m=(e=k.graphic)?"animate":"attr";var h=k.marker||{};var q=!!k.marker;if((l&&
439
- "undefined"===typeof h.enabled||h.enabled)&&!k.isNull&&!1!==k.visible){var r=I(h.symbol,this.symbol,"rect");var v=this.markerAttribs(k,k.selected&&"select");this.enabledDataSorting&&(k.startXPos=f.reversed?-(v.width||0):f.width);var t=!1!==k.isInside;e?e[t?"show":"hide"](t).animate(v):t&&(0<(v.width||0)||k.hasImage)&&(k.graphic=e=b.renderer.symbol(r,v.x,v.y,v.width,v.height,q?h:d).add(g),this.enabledDataSorting&&b.hasRendered&&(e.attr({x:k.startXPos}),m="animate"));e&&"animate"===m&&e[t?"show":"hide"](t).animate(v);
440
- if(e&&!b.styledMode)e[m](this.pointAttribs(k,k.selected&&"select"));e&&e.addClass(k.getClassName(),!0)}else e&&(k.graphic=e.destroy())}};a.prototype.markerAttribs=function(c,b){var a=this.options,e=a.marker,d=c.marker||{},g=d.symbol||e.symbol,f=I(d.radius,e.radius);b&&(e=e.states[b],b=d.states&&d.states[b],f=I(b&&b.radius,e&&e.radius,f+(e&&e.radiusPlus||0)));c.hasImage=g&&0===g.indexOf("url");c.hasImage&&(f=0);c={x:a.crisp?Math.floor(c.plotX-f):c.plotX-f,y:c.plotY-f};f&&(c.width=c.height=2*f);return c};
441
- a.prototype.pointAttribs=function(c,b){var a=this.options.marker,e=c&&c.options,d=e&&e.marker||{},g=this.color,f=e&&e.color,l=c&&c.color;e=I(d.lineWidth,a.lineWidth);var k=c&&c.zone&&c.zone.color;c=1;g=f||k||l||g;f=d.fillColor||a.fillColor||g;g=d.lineColor||a.lineColor||g;b=b||"normal";a=a.states[b];b=d.states&&d.states[b]||{};e=I(b.lineWidth,a.lineWidth,e+I(b.lineWidthPlus,a.lineWidthPlus,0));f=b.fillColor||a.fillColor||f;g=b.lineColor||a.lineColor||g;c=I(b.opacity,a.opacity,c);return{stroke:g,"stroke-width":e,
442
- fill:f,opacity:c}};a.prototype.destroy=function(c){var b=this,a=b.chart,e=/AppleWebKit\/533/.test(u.navigator.userAgent),f,l,k=b.data||[],m,q;L(b,"destroy");this.removeEvents(c);(b.axisTypes||[]).forEach(function(c){(q=b[c])&&q.series&&(g(q.series,b),q.isDirty=q.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(l=k.length;l--;)(m=k[l])&&m.destroy&&m.destroy();b.clips&&b.clips.forEach(function(c){return c.destroy()});d.clearTimeout(b.animationTimeout);J(b,function(c,b){c instanceof
443
- h&&!c.survive&&(f=e&&"group"===b?"hide":"destroy",c[f]())});a.hoverSeries===b&&(a.hoverSeries=void 0);g(a.series,b);a.orderSeries();J(b,function(a,e){c&&"hcEvents"===e||delete b[e]})};a.prototype.applyZones=function(){var c=this,b=this.chart,a=b.renderer,e=this.zones,d,g,f=this.clips||[],l,k=this.graph,m=this.area,h=Math.max(b.chartWidth,b.chartHeight),r=this[(this.zoneAxis||"y")+"Axis"],v=b.inverted,t,p,x,B=!1,w,n;if(e.length&&(k||m)&&r&&"undefined"!==typeof r.min){var u=r.reversed;var E=r.horiz;
444
- k&&!this.showLine&&k.hide();m&&m.hide();var F=r.getExtremes();e.forEach(function(e,G){d=u?E?b.plotWidth:0:E?0:r.toPixels(F.min)||0;d=q(I(g,d),0,h);g=q(Math.round(r.toPixels(I(e.value,F.max),!0)||0),0,h);B&&(d=g=r.toPixels(F.max));t=Math.abs(d-g);p=Math.min(d,g);x=Math.max(d,g);r.isXAxis?(l={x:v?x:p,y:0,width:t,height:h},E||(l.x=b.plotHeight-l.x)):(l={x:0,y:v?x:p,width:h,height:t},E&&(l.y=b.plotWidth-l.y));v&&a.isVML&&(l=r.isXAxis?{x:0,y:u?p:x,height:l.width,width:b.chartWidth}:{x:l.y-b.plotLeft-b.spacingBox.x,
445
- y:0,width:l.height,height:b.chartHeight});f[G]?f[G].animate(l):f[G]=a.clipRect(l);w=c["zone-area-"+G];n=c["zone-graph-"+G];k&&n&&n.clip(f[G]);m&&w&&w.clip(f[G]);B=e.value>F.max;c.resetZones&&0===g&&(g=void 0)});this.clips=f}else c.visible&&(k&&k.show(!0),m&&m.show(!0))};a.prototype.invertGroups=function(c){function b(){["group","markerGroup"].forEach(function(b){a[b]&&(e.renderer.isVML&&a[b].attr({width:a.yAxis.len,height:a.xAxis.len}),a[b].width=a.yAxis.len,a[b].height=a.xAxis.len,a[b].invert(a.isRadialSeries?
446
- !1:c))})}var a=this,e=a.chart;a.xAxis&&(a.eventsToUnbind.push(E(e,"resize",b)),b(),a.invertGroups=b)};a.prototype.plotGroup=function(b,a,e,d,g){var f=this[b],l=!f;e={visibility:e,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);l&&(this[b]=f=this.chart.renderer.g().add(g));f.addClass("highcharts-"+a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(c(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":
447
- "")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(e)[l?"attr":"animate"](this.getPlotBox());return f};a.prototype.getPlotBox=function(){var c=this.chart,b=this.xAxis,a=this.yAxis;c.inverted&&(b=a,a=this.xAxis);return{translateX:b?b.left:c.plotLeft,translateY:a?a.top:c.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=function(c){c||P(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(c){c()}),this.eventsToUnbind.length=
448
- 0)};a.prototype.render=function(){var c=this,b=c.chart,a=c.options,e=f(a.animation),d=!c.finishedAnimating&&b.renderer.isSVG&&e.duration,g=c.visible?"inherit":"hidden",l=a.zIndex,k=c.hasRendered,m=b.seriesGroup,h=b.inverted;L(this,"render");var q=c.plotGroup("group","series",g,l,m);c.markerGroup=c.plotGroup("markerGroup","markers",g,l,m);d&&c.animate&&c.animate(!0);q.inverted=I(c.invertible,c.isCartesian)?h:!1;c.drawGraph&&(c.drawGraph(),c.applyZones());c.visible&&c.drawPoints();c.drawDataLabels&&
449
- c.drawDataLabels();c.redrawPoints&&c.redrawPoints();c.drawTracker&&!1!==c.options.enableMouseTracking&&c.drawTracker();c.invertGroups(h);!1===a.clip||c.sharedClipKey||k||q.clip(b.clipRect);d&&c.animate&&c.animate();k||(d&&e.defer&&(d+=e.defer),c.animationTimeout=Z(function(){c.afterAnimate()},d||0));c.isDirty=!1;c.hasRendered=!0;L(c,"afterRender")};a.prototype.redraw=function(){var c=this.chart,b=this.isDirty||this.isDirtyData,a=this.group,e=this.xAxis,d=this.yAxis;a&&(c.inverted&&a.attr({width:c.plotWidth,
450
- height:c.plotHeight}),a.animate({translateX:I(e&&e.left,c.plotLeft),translateY:I(d&&d.top,c.plotTop)}));this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=function(c,b){var a=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?a.len-c.chartY+a.pos:c.chartX-a.pos,plotY:d?e.len-c.chartX+e.pos:c.chartY-e.pos},b,c)};a.prototype.buildKDTree=function(c){function b(c,e,d){var g;if(g=c&&c.length){var f=a.kdAxisArray[e%d];c.sort(function(c,b){return c[f]-
451
- b[f]});g=Math.floor(g/2);return{point:c[g],left:b(c.slice(0,g),e+1,d),right:b(c.slice(g+1),e+1,d)}}}this.buildingKdTree=!0;var a=this,e=-1<a.options.findNearestPointBy.indexOf("y")?2:1;delete a.kdTree;Z(function(){a.kdTree=b(a.getValidPoints(null,!a.directTouch),e,e);a.buildingKdTree=!1},a.options.kdNow||c&&"touchstart"===c.type?0:1)};a.prototype.searchKDTree=function(b,a,e){function d(b,a,e,m){var h=a.point,q=g.kdAxisArray[e%m],r=h;var v=c(b[f])&&c(h[f])?Math.pow(b[f]-h[f],2):null;var t=c(b[l])&&
452
- c(h[l])?Math.pow(b[l]-h[l],2):null;t=(v||0)+(t||0);h.dist=c(t)?Math.sqrt(t):Number.MAX_VALUE;h.distX=c(v)?Math.sqrt(v):Number.MAX_VALUE;q=b[q]-h[q];t=0>q?"left":"right";v=0>q?"right":"left";a[t]&&(t=d(b,a[t],e+1,m),r=t[k]<r[k]?t:h);a[v]&&Math.sqrt(q*q)<r[k]&&(b=d(b,a[v],e+1,m),r=b[k]<r[k]?b:r);return r}var g=this,f=this.kdAxisArray[0],l=this.kdAxisArray[1],k=a?"distX":"dist";a=-1<g.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(e);if(this.kdTree)return d(b,
453
- this.kdTree,a,a)};a.prototype.pointPlacementToXValue=function(){var c=this.options,b=c.pointRange,a=this.xAxis;c=c.pointPlacement;"between"===c&&(c=a.reversed?-.5:.5);return O(c)?c*(b||a.pointRange):0};a.prototype.isPointInside=function(c){return"undefined"!==typeof c.plotY&&"undefined"!==typeof c.plotX&&0<=c.plotY&&c.plotY<=this.yAxis.len&&0<=c.plotX&&c.plotX<=this.xAxis.len};a.prototype.drawTracker=function(){var c=this,b=c.options,a=b.trackByArea,e=[].concat(a?c.areaPath:c.graphPath),d=c.chart,
454
- g=d.pointer,f=d.renderer,l=d.options.tooltip.snap,k=c.tracker,m=function(b){if(d.hoverSeries!==c)c.onMouseOver()},h="rgba(192,192,192,"+(t?.0001:.002)+")";k?k.attr({d:e}):c.graph&&(c.tracker=f.path(e).attr({visibility:c.visible?"visible":"hidden",zIndex:2}).addClass(a?"highcharts-tracker-area":"highcharts-tracker-line").add(c.group),d.styledMode||c.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:h,fill:a?h:"none","stroke-width":c.graph.strokeWidth()+(a?0:2*l)}),[c.tracker,
455
- c.markerGroup,c.dataLabelsGroup].forEach(function(c){if(c&&(c.addClass("highcharts-tracker").on("mouseover",m).on("mouseout",function(c){g.onTrackerMouseOut(c)}),b.cursor&&!d.styledMode&&c.css({cursor:b.cursor}),B))c.on("touchstart",m)}));L(this,"afterDrawTracker")};a.prototype.addPoint=function(c,b,a,e,d){var g=this.options,f=this.data,l=this.chart,k=this.xAxis;k=k&&k.hasNames&&k.names;var m=g.data,h=this.xData,q;b=I(b,!0);var r={series:this};this.pointClass.prototype.applyOptions.apply(r,[c]);var v=
456
- r.x;var t=h.length;if(this.requireSorting&&v<h[t-1])for(q=!0;t&&h[t-1]>v;)t--;this.updateParallelArrays(r,"splice",t,0,0);this.updateParallelArrays(r,t);k&&r.name&&(k[v]=r.name);m.splice(t,0,c);q&&(this.data.splice(t,0,null),this.processData());"point"===g.legendType&&this.generatePoints();a&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(r,"shift"),m.shift()));!1!==d&&L(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;b&&l.redraw(e)};a.prototype.removePoint=function(c,
457
- a,e){var d=this,g=d.data,f=g[c],l=d.points,k=d.chart,m=function(){l&&l.length===g.length&&l.splice(c,1);g.splice(c,1);d.options.data.splice(c,1);d.updateParallelArrays(f||{series:d},"splice",c,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&k.redraw()};b(e,k);a=I(a,!0);f?f.firePointEvent("remove",null,m):m()};a.prototype.remove=function(c,b,a,e){function d(){g.destroy(e);f.isDirtyLegend=f.isDirtyBox=!0;f.linkSeries();I(c,!0)&&f.redraw(b)}var g=this,f=g.chart;!1!==a?L(g,"remove",null,d):d()};a.prototype.update=
458
- function(c,b){c=e(c,this.userOptions);L(this,"update",{options:c});var a=this,d=a.chart,g=a.userOptions,f=a.initialType||a.type,k=d.options.plotOptions,m=c.type||g.type||d.options.chart.type,h=!(this.hasDerivedData||m&&m!==this.type||"undefined"!==typeof c.pointStart||"undefined"!==typeof c.pointInterval||a.hasOptionChanged("dataGrouping")||a.hasOptionChanged("pointStart")||a.hasOptionChanged("pointInterval")||a.hasOptionChanged("pointIntervalUnit")||a.hasOptionChanged("keys")),q=w[f].prototype,r,
459
- t=["eventOptions","navigatorSeries","baseSeries"],p=a.finishedAnimating&&{animation:!1},x={};m=m||f;h&&(t.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==c.visible&&t.push("area","graph"),a.parallelArrays.forEach(function(c){t.push(c+"Data")}),c.data&&(c.dataSorting&&v(a.options.dataSorting,c.dataSorting),this.setData(c.data,!1)));c=V(g,p,{index:"undefined"===
460
- typeof g.index?a.index:g.index,pointStart:I(k&&k.series&&k.series.pointStart,g.pointStart,a.xData[0])},!h&&{data:a.options.data},c);h&&c.data&&(c.data=a.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(t);t.forEach(function(c){t[c]=a[c];delete a[c]});g=!1;if(w[m]){if(g=m!==a.type,a.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(a,w[m].prototype);else{k=Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents;for(r in q)a[r]=void 0;v(a,w[m].prototype);
461
- k?a.hcEvents=k:delete a.hcEvents}}else l(17,!0,d,{missingModuleFor:m});t.forEach(function(c){a[c]=t[c]});a.init(d,c);if(h&&this.points){var B=a.options;!1===B.visible?(x.graphic=1,x.dataLabel=1):a._hasPointLabels||(c=B.marker,m=B.dataLabels,c&&(!1===c.enabled||"symbol"in c)&&(x.graphic=1),m&&!1===m.enabled&&(x.dataLabel=1));this.points.forEach(function(c){c&&c.series&&(c.resolveColor(),Object.keys(x).length&&c.destroyElements(x),!1===B.showInLegend&&c.legendItem&&d.legend.destroyItem(c))},this)}a.initialType=
462
- f;d.linkSeries();g&&a.linkedSeries.length&&(a.isDirtyData=!0);L(this,"afterUpdate");I(b,!0)&&d.redraw(h?void 0:!1)};a.prototype.setName=function(c){this.name=this.options.name=this.userOptions.name=c;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(c){var b=this.options[c],a=this.chart.options.plotOptions,e=this.userOptions[c];return e?b!==e:b!==I(a&&a[this.type]&&a[this.type][c],a&&a.series&&a.series[c],b)};a.prototype.onMouseOver=function(){var c=this.chart,b=c.hoverSeries;c.pointer.setHoverChartIndex();
463
- if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&L(this,"mouseOver");this.setState("hover");c.hoverSeries=this};a.prototype.onMouseOut=function(){var c=this.options,b=this.chart,a=b.tooltip,e=b.hoverPoint;b.hoverSeries=null;if(e)e.onMouseOut();this&&c.events.mouseOut&&L(this,"mouseOut");!a||this.stickyTracking||a.shared&&!this.noSharedTooltip||a.hide();b.series.forEach(function(c){c.setState("",!0)})};a.prototype.setState=function(c,b){var a=this,e=a.options,d=a.graph,g=e.inactiveOtherPoints,
464
- f=e.states,l=e.lineWidth,k=e.opacity,m=I(f[c||"normal"]&&f[c||"normal"].animation,a.chart.options.chart.animation);e=0;c=c||"";if(a.state!==c&&([a.group,a.markerGroup,a.dataLabelsGroup].forEach(function(b){b&&(a.state&&b.removeClass("highcharts-series-"+a.state),c&&b.addClass("highcharts-series-"+c))}),a.state=c,!a.chart.styledMode)){if(f[c]&&!1===f[c].enabled)return;c&&(l=f[c].lineWidth||l+(f[c].lineWidthPlus||0),k=I(f[c].opacity,k));if(d&&!d.dashstyle)for(f={"stroke-width":l},d.animate(f,m);a["zone-graph-"+
465
- e];)a["zone-graph-"+e].animate(f,m),e+=1;g||[a.group,a.markerGroup,a.dataLabelsGroup,a.labelBySeries].forEach(function(c){c&&c.animate({opacity:k},m)})}b&&g&&a.points&&a.setAllPointsToState(c||void 0)};a.prototype.setAllPointsToState=function(c){this.points.forEach(function(b){b.setState&&b.setState(c)})};a.prototype.setVisible=function(c,b){var a=this,e=a.chart,d=a.legendItem,g=e.options.chart.ignoreHiddenSeries,f=a.visible;var l=(a.visible=c=a.options.visible=a.userOptions.visible="undefined"===
466
- typeof c?!f:c)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(c){if(a[c])a[c][l]()});if(e.hoverSeries===a||(e.hoverPoint&&e.hoverPoint.series)===a)a.onMouseOut();d&&e.legend.colorizeItem(a,c);a.isDirty=!0;a.options.stacking&&e.series.forEach(function(c){c.options.stacking&&c.visible&&(c.isDirty=!0)});a.linkedSeries.forEach(function(b){b.setVisible(c,!1)});g&&(e.isDirtyBox=!0);L(a,l);!1!==b&&e.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=
467
- function(){this.setVisible(!1)};a.prototype.select=function(c){this.selected=c=this.options.selected="undefined"===typeof c?!this.selected:c;this.checkbox&&(this.checkbox.checked=c);L(this,c?"select":"unselect")};a.prototype.shouldShowTooltip=function(c,b,a){void 0===a&&(a={});a.series=this;a.visiblePlotOnly=!0;return this.chart.isInsidePlot(c,b,a)};a.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:A.backgroundColor,
468
- lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:A.neutralColor20,lineColor:A.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var c=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":c(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},
469
- cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"};return a}();v(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:D.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],
470
- parallelArrays:["x","y"],pointClass:y,requireSorting:!0,sorted:!0});p.series=a;"";"";return a});J(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,n,C,D,z,A){var u=a.stop,p=A.addEvent,h=A.createElement,d=A.merge,f=A.pick;p(C,"afterSetChartSize",function(b){var a=this.options.chart.scrollablePlotArea,f=a&&a.minWidth;a=a&&
471
- a.minHeight;if(!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox);this.plotBox.width=this.plotWidth+=f;this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var h={1:{name:"right",value:f}}}}else a&&(this.scrollablePixelsY=f=Math.max(0,a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=
472
- f:this.clipBox.height+=f,h={2:{name:"bottom",value:f}});h&&!b.skipAxes&&this.axes.forEach(function(b){h[b.side]?b.getPlotLinePath=function(){var a=h[b.side].name,d=this[a];this[a]=d-h[b.side].value;var f=n.prototype.getPlotLinePath.apply(this,arguments);this[a]=d;return f}:(b.setAxisSize(),b.setAxisTranslation())})}});p(C,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});C.prototype.setUpScrolling=
473
- function(){var b=this,a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=h("div",{className:"highcharts-scrolling"},a,this.scrollingParent);p(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=h("div",
474
- {className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};C.prototype.moveFixedElements=function(){var b=this.container,a=this.fixedRenderer,d=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
475
- f;this.scrollablePixelsX&&!this.inverted?f=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?f=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?f=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(f=".highcharts-yaxis");f&&d.push(f+":not(.highcharts-radial-axis)",f+"-labels:not(.highcharts-radial-axis-labels)");d.forEach(function(d){[].forEach.call(b.querySelectorAll(d),function(b){(b.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})};
476
- C.prototype.applyFixed=function(){var b=!this.fixedDiv,a=this.options.chart,d=a.scrollablePlotArea,t=z.getRendererType();b?(this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=a=new t(this.fixedDiv,this.chartWidth,this.chartHeight,
477
- this.options.chart.style),this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":f(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),p(this,"afterShowResetZoom",this.moveFixedElements),p(this,"afterDrilldown",this.moveFixedElements),p(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+
478
- (this.scrollablePixelsX||0);t=this.chartHeight+(this.scrollablePixelsY||0);u(this.container);this.container.style.width=a+"px";this.container.style.height=t+"px";this.renderer.boxWrapper.attr({width:a,height:t,viewBox:[0,0,a,t].join(" ")});this.chartBackground.attr({width:a,height:t});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
479
- d.scrollPositionY));t=this.axisOffset;b=this.plotTop-t[0]-1;d=this.plotLeft-t[3]-1;a=this.plotTop+this.plotHeight+t[2]+1;t=this.plotLeft+this.plotWidth+t[1]+1;var n=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),y=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",n,b],["L",this.chartWidth,b],["L",this.chartWidth,a],["L",n,a],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop-
480
- 1],["L",t,this.plotTop-1],["L",t,0],["Z"],["M",d,y],["L",d,this.chartHeight],["L",t,this.chartHeight],["L",t,y],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};p(n,"afterInit",function(){this.chart.scrollableDirty=!0});p(D,"show",function(){this.chart.scrollableDirty=!0});""});J(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Utilities.js"]],function(a,n){var u=a.getDeferredAnimation,D=n.addEvent,z=n.destroyObjectProperties,
481
- A=n.fireEvent,y=n.isNumber,p=n.objectEach,h=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=function(){var a=this.axis,b=a.series,d=a.options.reversedStacks,h=b.length,t;if(!a.isXAxis){this.usePercentage=!1;for(t=h;t--;){var p=b[d?t:h-t-1];p.setStackedPoints();p.setGroupedPoints()}for(t=0;t<h;t++)b[t].modifyStacks();A(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=
482
- this.oldStacks;p(a,function(b){p(b,function(b){b.cumulative=b.total})})}};a.prototype.resetStacks=function(){var a=this,b=this.stacks;this.axis.isXAxis||p(b,function(b){p(b,function(d,f){y(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,h=this.stacks;a=u(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var t=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({visibility:"visible",
483
- zIndex:6,opacity:0}).add();t.translate(b.plotLeft,b.plotTop);p(h,function(b){p(b,function(b){b.render(t)})});t.animate({opacity:1},a)};return a}();return function(){function a(){}a.compose=function(d){D(d,"init",a.onInit);D(d,"destroy",a.onDestroy)};a.onDestroy=function(){var a=this.stacking;if(a){var b=a.stacks;p(b,function(a,d){z(a);b[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}};a.onInit=function(){this.stacking||(this.stacking=new h(this))};return a}()});J(a,"Extensions/Stacking.js",
484
- [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,n,C,D,z,A,y){var p=C.format,h=y.correctFloat,d=y.defined,f=y.destroyObjectProperties,b=y.isArray,k=y.isNumber,B=y.objectEach,t=y.pick,u=function(){function b(b,a,d,f,k){var e=b.chart.inverted;this.axis=b;this.isNegative=d;this.options=a=a||{};this.x=f;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=
485
- k;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(e?d?"left":"right":"center"),verticalAlign:a.verticalAlign||(e?"middle":d?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(e?d?"right":"left":"center")}b.prototype.destroy=function(){f(this,this.axis)};b.prototype.render=function(b){var a=this.axis.chart,d=this.options,f=d.format;f=f?p(f,this,a):d.formatter.call(this);this.label?this.label.attr({text:f,visibility:"hidden"}):(this.label=a.renderer.label(f,null,null,d.shape,
486
- null,null,d.useHTML,!1,"stack-labels"),f={r:d.borderRadius||0,text:f,rotation:d.rotation,padding:t(d.padding,5),visibility:"hidden"},a.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(b));this.label.labelrank=a.plotSizeY};b.prototype.setOffset=function(b,a,f,h,q){var e=this.axis,m=e.chart;h=e.translate(e.stacking.usePercentage?100:h?h:this.total,0,0,0,1);f=e.translate(f?f:0);f=
487
- d(h)&&Math.abs(h-f);b=t(q,m.xAxis[0].translate(this.x))+b;e=d(h)&&this.getStackBox(m,this,b,h,a,f,e);a=this.label;f=this.isNegative;b="justify"===t(this.options.overflow,"justify");var c=this.textAlign;a&&e&&(q=a.getBBox(),h=a.padding,c="left"===c?m.inverted?-h:h:"right"===c?q.width:m.inverted&&"center"===c?q.width/2:m.inverted?f?q.width+h:-h:q.width/2,f=m.inverted?q.height/2:f?-h:q.height,this.alignOptions.x=t(this.options.x,0),this.alignOptions.y=t(this.options.y,0),e.x-=c,e.y-=f,a.align(this.alignOptions,
488
- null,e),m.isInsidePlot(a.alignAttr.x+c-this.alignOptions.x,a.alignAttr.y+f-this.alignOptions.y)?a.show():(a.alignAttr.y=-9999,b=!1),b&&z.prototype.justifyDataLabel.call(this.axis,a,this.alignOptions,a.alignAttr,q,e),a.attr({x:a.alignAttr.x,y:a.alignAttr.y}),t(!b&&this.options.crop,!0)&&((m=k(a.x)&&k(a.y)&&m.isInsidePlot(a.x-h+a.width,a.y)&&m.isInsidePlot(a.x+h,a.y))||a.hide()))};b.prototype.getStackBox=function(b,a,d,f,k,e,m){var c=a.axis.reversed,g=b.inverted,l=m.height+m.pos-(g?b.plotLeft:b.plotTop);
489
- a=a.isNegative&&!c||!a.isNegative&&c;return{x:g?a?f-m.right:f-e+m.pos-b.plotLeft:d+b.xAxis[0].transB-b.plotLeft,y:g?m.height-d-k:a?l-f-e:l-f,width:g?e:k,height:g?k:e}};return b}();n.prototype.getStacks=function(){var b=this,a=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(d){var f=d.xAxis&&d.xAxis.options||{};!d.options.stacking||!0!==d.visible&&!1!==b.options.chart.ignoreHiddenSeries||
490
- (d.stackKey=[d.type,t(d.options.stack,""),a?f.top:f.left,a?f.height:f.width].join())})};A.compose(a);z.prototype.setGroupedPoints=function(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?z.prototype.setStackedPoints.call(this,"group"):b&&B(b.stacks,function(a,d){"group"===d.slice(-5)&&(B(a,function(b){return b.destroy()}),delete b.stacks[d])})};z.prototype.setStackedPoints=function(a){var f=
491
- a||this.options.stacking;if(f&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var k=this.processedXData,p=this.processedYData,r=[],q=p.length,e=this.options,m=e.threshold,c=t(e.startFromThreshold&&m,0);e=e.stack;a=a?this.type+","+f:this.stackKey;var g="-"+a,l=this.negStacks,v=this.yAxis,B=v.stacking.stacks,n=v.stacking.oldStacks,F,y;v.stacking.stacksTouched+=1;for(y=0;y<q;y++){var z=k[y];var A=p[y];var C=this.getStackIndicator(C,z,this.index);var H=C.key;var I=(F=l&&A<(c?0:
492
- m))?g:a;B[I]||(B[I]={});B[I][z]||(n[I]&&n[I][z]?(B[I][z]=n[I][z],B[I][z].total=null):B[I][z]=new u(v,v.options.stackLabels,F,z,e));I=B[I][z];null!==A?(I.points[H]=I.points[this.index]=[t(I.cumulative,c)],d(I.cumulative)||(I.base=H),I.touched=v.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(I.points[H][0]=I.points[this.index+","+z+",0"][0])):I.points[H]=I.points[this.index]=null;"percent"===f?(F=F?a:g,l&&B[F]&&B[F][z]?(F=B[F][z],I.total=F.total=Math.max(F.total,I.total)+Math.abs(A)||0):
493
- I.total=h(I.total+(Math.abs(A)||0))):"group"===f?(b(A)&&(A=A[0]),null!==A&&(I.total=(I.total||0)+1)):I.total=h(I.total+(A||0));I.cumulative="group"===f?(I.total||1)-1:t(I.cumulative,c)+(A||0);null!==A&&(I.points[H].push(I.cumulative),r[y]=I.cumulative,I.hasValidPoints=!0)}"percent"===f&&(v.stacking.usePercentage=!0);"group"!==f&&(this.stackedYData=r);v.stacking.oldStacks={}}};z.prototype.modifyStacks=function(){var b=this,a=b.stackKey,d=b.yAxis.stacking.stacks,f=b.processedXData,k,h=b.options.stacking;
494
- b[h+"Stacker"]&&[a,"-"+a].forEach(function(a){for(var e=f.length,c,g;e--;)if(c=f[e],k=b.getStackIndicator(k,c,b.index,a),g=(c=d[a]&&d[a][c])&&c.points[k.key])b[h+"Stacker"](g,c,e)})};z.prototype.percentStacker=function(b,a,d){a=a.total?100/a.total:0;b[0]=h(b[0]*a);b[1]=h(b[1]*a);this.stackedYData[d]=b[1]};z.prototype.getStackIndicator=function(b,a,f,k){!d(b)||b.x!==a||k&&b.key!==k?b={x:a,index:0,key:k}:b.index++;b.key=[f,a,b.index].join();return b};D.StackItem=u;"";return D.StackItem});J(a,"Series/Line/LineSeries.js",
495
- [a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D){var u=this&&this.__extends||function(){var a=function(h,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(h,d)};return function(h,d){function f(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),A=D.defined,
496
- y=D.merge;D=function(p){function h(){var a=null!==p&&p.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}u(h,p);h.prototype.drawGraph=function(){var d=this,f=this.options,b=(this.gappedPath||this.getGraphPath).call(this),k=this.chart.styledMode,h=[["graph","highcharts-graph"]];k||h[0].push(f.lineColor||this.color||a.neutralColor20,f.dashStyle);h=d.getZonesGraphs(h);h.forEach(function(a,h){var t=a[0],p=d[t],B=p?"animate":"attr";p?(p.endX=d.preventGraphAnimation?null:
497
- b.xMap,p.animate({d:b})):b.length&&(d[t]=p=d.chart.renderer.path(b).addClass(a[1]).attr({zIndex:1}).add(d.group));p&&!k&&(t={stroke:a[2],"stroke-width":f.lineWidth,fill:d.fillGraph&&d.color||"none"},a[3]?t.dashstyle=a[3]:"square"!==f.linecap&&(t["stroke-linecap"]=t["stroke-linejoin"]="round"),p[B](t).shadow(2>h&&f.shadow));p&&(p.startX=b.xMap,p.isArea=b.isArea)})};h.prototype.getGraphPath=function(a,f,b){var d=this,h=d.options,t=h.step,p,n=[],u=[],y;a=a||d.points;(p=a.reversed)&&a.reverse();(t={right:1,
498
- center:2}[t]||t&&3)&&p&&(t=4-t);a=this.getValidPoints(a,!1,!(h.connectNulls&&!f&&!b));a.forEach(function(k,r){var q=k.plotX,e=k.plotY,m=a[r-1];(k.leftCliff||m&&m.rightCliff)&&!b&&(y=!0);k.isNull&&!A(f)&&0<r?y=!h.connectNulls:k.isNull&&!f?y=!0:(0===r||y?r=[["M",k.plotX,k.plotY]]:d.getPointSpline?r=[d.getPointSpline(a,k,r)]:t?(r=1===t?[["L",m.plotX,e]]:2===t?[["L",(m.plotX+q)/2,m.plotY],["L",(m.plotX+q)/2,e]]:[["L",q,m.plotY]],r.push(["L",q,e])):r=[["L",q,e]],u.push(k.x),t&&(u.push(k.x),2===t&&u.push(k.x)),
499
- n.push.apply(n,r),y=!1)});n.xMap=u;return d.graphPath=n};h.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};h.defaultOptions=y(n.defaultOptions,{});return h}(n);C.registerSeriesType("line",D);"";return D});J(a,"Series/Area/AreaSeries.js",[a["Core/Color/Color.js"],a["Mixins/LegendSymbol.js"],
500
- a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D){var u=this&&this.__extends||function(){var a=function(b,d){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(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)}}(),A=a.parse,y=C.seriesTypes.line;a=D.extend;var p=D.merge,h=D.objectEach,
501
- d=D.pick;D=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}u(b,a);b.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var b=this,f=this.areaPath,h=this.options,p=[["area","highcharts-area",this.color,h.fillColor]];this.zones.forEach(function(a,d){p.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className,a.color||b.color,a.fillColor||h.fillColor])});p.forEach(function(a){var k=
502
- a[0],p=b[k],t=p?"animate":"attr",r={};p?(p.endX=b.preventGraphAnimation?null:f.xMap,p.animate({d:f})):(r.zIndex=0,p=b[k]=b.chart.renderer.path(f).addClass(a[1]).add(b.group),p.isArea=!0);b.chart.styledMode||(r.fill=d(a[3],A(a[2]).setOpacity(d(h.fillOpacity,.75)).get()));p[t](r);p.startX=f.xMap;p.shiftUnit=h.step?2:1})};b.prototype.getGraphPath=function(b){var a=y.prototype.getGraphPath,f=this.options,k=f.stacking,h=this.yAxis,p,n=[],x=[],r=this.index,q=h.stacking.stacks[this.stackKey],e=f.threshold,
503
- m=Math.round(h.getThreshold(f.threshold));f=d(f.connectNulls,"percent"===k);var c=function(c,a,d){var g=b[c];c=k&&q[g.x].points[r];var f=g[d+"Null"]||0;d=g[d+"Cliff"]||0;g=!0;if(d||f){var v=(f?c[0]:c[1])+d;var p=c[0]+d;g=!!f}else!k&&b[a]&&b[a].isNull&&(v=p=e);"undefined"!==typeof v&&(x.push({plotX:l,plotY:null===v?m:h.getThreshold(v),isNull:g,isCliff:!0}),n.push({plotX:l,plotY:null===p?m:h.getThreshold(p),doCurve:!1}))};b=b||this.points;k&&(b=this.getStackPoints(b));for(p=0;p<b.length;p++){k||(b[p].leftCliff=
504
- b[p].rightCliff=b[p].leftNull=b[p].rightNull=void 0);var g=b[p].isNull;var l=d(b[p].rectPlotX,b[p].plotX);var v=k?d(b[p].yBottom,m):m;if(!g||f)f||c(p,p-1,"left"),g&&!k&&f||(x.push(b[p]),n.push({x:p,plotX:l,plotY:v})),f||c(p,p+1,"right")}p=a.call(this,x,!0,!0);n.reversed=!0;g=a.call(this,n,!0,!0);(v=g[0])&&"M"===v[0]&&(g[0]=["L",v[1],v[2]]);g=p.concat(g);g.length&&g.push(["Z"]);a=a.call(this,x,!1,f);g.xMap=p.xMap;this.areaPath=g;return a};b.prototype.getStackPoints=function(b){var a=this,f=[],k=[],
505
- p=this.xAxis,n=this.yAxis,u=n.stacking.stacks[this.stackKey],x={},r=n.series,q=r.length,e=n.options.reversedStacks?1:-1,m=r.indexOf(a);b=b||this.points;if(this.options.stacking){for(var c=0;c<b.length;c++)b[c].leftNull=b[c].rightNull=void 0,x[b[c].x]=b[c];h(u,function(c,b){null!==c.total&&k.push(b)});k.sort(function(c,b){return c-b});var g=r.map(function(c){return c.visible});k.forEach(function(c,b){var l=0,h,v;if(x[c]&&!x[c].isNull)f.push(x[c]),[-1,1].forEach(function(d){var f=1===d?"rightNull":
506
- "leftNull",l=0,p=u[k[b+d]];if(p)for(var t=m;0<=t&&t<q;){var n=r[t].index;h=p.points[n];h||(n===a.index?x[c][f]=!0:g[t]&&(v=u[c].points[n])&&(l-=v[1]-v[0]));t+=e}x[c][1===d?"rightCliff":"leftCliff"]=l});else{for(var t=m;0<=t&&t<q;){if(h=u[c].points[r[t].index]){l=h[1];break}t+=e}l=d(l,0);l=n.translate(l,0,1,0,1);f.push({isNull:!0,plotX:p.translate(c,0,0,0,1),x:c,plotY:l,yBottom:l})}})}return f};b.defaultOptions=p(y.defaultOptions,{threshold:0});return b}(y);a(D.prototype,{singleStacks:!1,drawLegendSymbol:n.drawRectangle});
507
- C.registerSeriesType("area",D);"";return D});J(a,"Series/Spline/SplineSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var a=function(p,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var b in f)f.hasOwnProperty(b)&&(a[b]=f[b])};return a(p,h)};return function(p,h){function d(){this.constructor=p}a(p,h);p.prototype=null===h?Object.create(h):(d.prototype=h.prototype,
508
- new d)}}(),D=a.seriesTypes.line,z=n.merge,A=n.pick;n=function(a){function p(){var h=null!==a&&a.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}u(p,a);p.prototype.getPointSpline=function(a,d,f){var b=d.plotX||0,k=d.plotY||0,h=a[f-1];f=a[f+1];if(h&&!h.isNull&&!1!==h.doCurve&&!d.isCliff&&f&&!f.isNull&&!1!==f.doCurve&&!d.isCliff){a=h.plotY||0;var p=f.plotX||0;f=f.plotY||0;var n=0;var u=(1.5*b+(h.plotX||0))/2.5;var w=(1.5*k+a)/2.5;p=(1.5*b+p)/2.5;var y=(1.5*k+f)/2.5;
509
- p!==u&&(n=(y-w)*(p-b)/(p-u)+k-y);w+=n;y+=n;w>a&&w>k?(w=Math.max(a,k),y=2*k-w):w<a&&w<k&&(w=Math.min(a,k),y=2*k-w);y>f&&y>k?(y=Math.max(f,k),w=2*k-y):y<f&&y<k&&(y=Math.min(f,k),w=2*k-y);d.rightContX=p;d.rightContY=y}d=["C",A(h.rightContX,h.plotX,0),A(h.rightContY,h.plotY,0),A(u,b,0),A(w,k,0),b,k];h.rightContX=h.rightContY=void 0;return d};p.defaultOptions=z(D.defaultOptions);return p}(D);a.registerSeriesType("spline",n);"";return n});J(a,"Series/AreaSpline/AreaSplineSeries.js",[a["Series/Area/AreaSeries.js"],
510
- a["Series/Spline/SplineSeries.js"],a["Mixins/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z){var u=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 f(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}(),y=
511
- a.prototype,p=z.extend,h=z.merge;z=function(d){function f(){var b=null!==d&&d.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;return b}u(f,d);f.defaultOptions=h(n.defaultOptions,a.defaultOptions);return f}(n);p(z.prototype,{getGraphPath:y.getGraphPath,getStackPoints:y.getStackPoints,drawGraph:y.drawGraph,drawLegendSymbol:C.drawRectangle});D.registerSeriesType("areaspline",z);"";return z});J(a,"Series/Column/ColumnSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Color/Color.js"],
512
- a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p){var h=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):
513
- (e.prototype=c.prototype,new e)}}(),d=a.animObject,f=n.parse,b=C.hasTouch;a=C.noop;var k=p.clamp,u=p.css,t=p.defined,H=p.extend,K=p.fireEvent,w=p.isArray,E=p.isNumber,x=p.merge,r=p.pick,q=p.objectEach;p=function(a){function e(){var c=null!==a&&a.apply(this,arguments)||this;c.borderWidth=void 0;c.data=void 0;c.group=void 0;c.options=void 0;c.points=void 0;return c}h(e,a);e.prototype.animate=function(c){var b=this,a=this.yAxis,e=b.options,f=this.chart.inverted,h={},m=f?"translateX":"translateY";if(c)h.scaleY=
514
- .001,c=k(a.toPixels(e.threshold),a.pos,a.pos+a.len),f?h.translateX=c-a.len:h.translateY=c,b.clipBox&&b.setClip(),b.group.attr(h);else{var q=Number(b.group.attr(m));b.group.animate({scaleY:1},H(d(b.options.animation),{step:function(c,e){b.group&&(h[m]=q+e.pos*(a.pos-q),b.group.attr(h))}}))}};e.prototype.init=function(c,b){a.prototype.init.apply(this,arguments);var e=this;c=e.chart;c.hasRendered&&c.series.forEach(function(c){c.type===e.type&&(c.isDirty=!0)})};e.prototype.getColumnMetrics=function(){var c=
515
- this,b=c.options,a=c.xAxis,e=c.yAxis,d=a.options.reversedStacks;d=a.reversed&&!d||!a.reversed&&d;var f,k={},h=0;!1===b.grouping?h=1:c.chart.series.forEach(function(b){var a=b.yAxis,d=b.options;if(b.type===c.type&&(b.visible||!c.chart.options.chart.ignoreHiddenSeries)&&e.len===a.len&&e.pos===a.pos){if(d.stacking&&"group"!==d.stacking){f=b.stackKey;"undefined"===typeof k[f]&&(k[f]=h++);var g=k[f]}else!1!==d.grouping&&(g=h++);b.columnIndex=g}});var m=Math.min(Math.abs(a.transA)*(a.ordinal&&a.ordinal.slope||
516
- b.pointRange||a.closestPointRange||a.tickInterval||1),a.len),q=m*b.groupPadding,p=(m-2*q)/(h||1);b=Math.min(b.maxPointWidth||a.len,r(b.pointWidth,p*(1-2*b.pointPadding)));c.columnMetrics={width:b,offset:(p-b)/2+(q+((c.columnIndex||0)+(d?1:0))*p-m/2)*(d?-1:1),paddedWidth:p,columnCount:h};return c.columnMetrics};e.prototype.crispCol=function(c,b,a,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&&(a=Math.round(c+a)+g,c=Math.round(c)+
517
- g,a-=c);e=Math.round(b+e)+f;g=.5>=Math.abs(b)&&.5<e;b=Math.round(b)+f;e-=b;g&&e&&(--b,e+=1);return{x:c,y:b,width:a,height:e}};e.prototype.adjustForMissingColumns=function(c,b,a,e){var d=this,f=this.options.stacking;if(!a.isNull&&1<e.columnCount){var g=0,l=0;q(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(c){if("number"===typeof a.x&&(c=c[a.x.toString()])){var b=c.points[d.index],e=c.total;f?(b&&(g=l),c.hasValidPoints&&l++):w(b)&&(g=b[1],l=e||0)}});c=(a.plotX||0)+((l-1)*e.paddedWidth+b)/
518
- 2-b-g*e.paddedWidth}return c};e.prototype.translate=function(){var c=this,b=c.chart,a=c.options,e=c.dense=2>c.closestPointRange*c.xAxis.transA;e=c.borderWidth=r(a.borderWidth,e?0:1);var d=c.xAxis,f=c.yAxis,h=a.threshold,m=c.translatedThreshold=f.getThreshold(h),q=r(a.minPointLength,5),p=c.getColumnMetrics(),n=p.width,x=c.barW=Math.max(n,1+2*e),u=c.pointXOffset=p.offset,B=c.dataMin,w=c.dataMax;b.inverted&&(m-=.5);a.pointPadding&&(x=Math.ceil(x));A.prototype.translate.apply(c);c.points.forEach(function(e){var g=
519
- r(e.yBottom,m),l=999+Math.abs(g),v=n,y=e.plotX||0;l=k(e.plotY,-l,f.len+l);y+=u;var F=x,G=Math.min(l,g),z=Math.max(l,g)-G;if(q&&Math.abs(z)<q){z=q;var A=!f.reversed&&!e.negative||f.reversed&&e.negative;E(h)&&E(w)&&e.y===h&&w<=h&&(f.min||0)<h&&(B!==w||(f.max||0)<=h)&&(A=!A);G=Math.abs(G-m)>q?g-q:m-(A?q:0)}t(e.options.pointWidth)&&(v=F=Math.ceil(e.options.pointWidth),y-=Math.round((v-n)/2));a.centerInCategory&&(y=c.adjustForMissingColumns(y,v,e,p));e.barX=y;e.pointWidth=v;e.tooltipPos=b.inverted?[k(f.len+
520
- f.pos-b.plotLeft-l,f.pos-b.plotLeft,f.len+f.pos-b.plotLeft),d.len+d.pos-b.plotTop-y-F/2,z]:[d.left-b.plotLeft+y+F/2,k(l+f.pos-b.plotTop,f.pos-b.plotTop,f.len+f.pos-b.plotTop),z];e.shapeType=c.pointClass.prototype.shapeType||"rect";e.shapeArgs=c.crispCol.apply(c,e.isNull?[y,m,F,0]:[y,G,F,z])})};e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(c,b){var a=this.options,e=this.pointAttrToOptions||{};var d=e.stroke||
521
- "borderColor";var g=e["stroke-width"]||"borderWidth",k=c&&c.color||this.color,h=c&&c[d]||a[d]||k,m=c&&c[g]||a[g]||this[g]||0;e=c&&c.options.dashStyle||a.dashStyle;var q=r(c&&c.opacity,a.opacity,1);if(c&&this.zones.length){var p=c.getZone();k=c.options.color||p&&(p.color||c.nonZonedColor)||this.color;p&&(h=p.borderColor||h,e=p.dashStyle||e,m=p.borderWidth||m)}b&&c&&(c=x(a.states[b],c.options.states&&c.options.states[b]||{}),b=c.brightness,k=c.color||"undefined"!==typeof b&&f(k).brighten(c.brightness).get()||
522
- k,h=c[d]||h,m=c[g]||m,e=c.dashStyle||e,q=r(c.opacity,q));d={fill:k,stroke:h,"stroke-width":m,opacity:q};e&&(d.dashstyle=e);return d};e.prototype.drawPoints=function(){var c=this,b=this.chart,a=c.options,e=b.renderer,d=a.animationLimit||250,f;c.points.forEach(function(g){var l=g.graphic,k=!!l,h=l&&b.pointCount<d?"animate":"attr";if(E(g.plotY)&&null!==g.y){f=g.shapeArgs;l&&g.hasNewShapeType()&&(l=l.destroy());c.enabledDataSorting&&(g.startXPos=c.xAxis.reversed?-(f?f.width||0:0):c.xAxis.width);l||(g.graphic=
523
- l=e[g.shapeType](f).add(g.group||c.group))&&c.enabledDataSorting&&b.hasRendered&&b.pointCount<d&&(l.attr({x:g.startXPos}),k=!0,h="animate");if(l&&k)l[h](x(f));if(a.borderRadius)l[h]({r:a.borderRadius});b.styledMode||l[h](c.pointAttribs(g,g.selected&&"select")).shadow(!1!==g.allowShadow&&a.shadow,null,a.stacking&&!a.borderRadius);l&&(l.addClass(g.getClassName(),!0),l.attr({visibility:g.visible?"inherit":"hidden"}))}else l&&(g.graphic=l.destroy())})};e.prototype.drawTracker=function(){var c=this,a=
524
- c.chart,e=a.pointer,d=function(c){var b=e.getPointFromEvent(c);"undefined"!==typeof b&&(e.isDirectTouch=!0,b.onMouseOver(c))},f;c.points.forEach(function(c){f=w(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[];c.graphic&&(c.graphic.element.point=c);f.forEach(function(b){b.div?b.div.point=c:b.element.point=c})});c._hasTracking||(c.trackerGroups.forEach(function(f){if(c[f]){c[f].addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(c){e.onTrackerMouseOut(c)});if(b)c[f].on("touchstart",
525
- d);!a.styledMode&&c.options.cursor&&c[f].css(u).css({cursor:c.options.cursor})}}),c._hasTracking=!0);K(this,"afterDrawTracker")};e.prototype.remove=function(){var c=this,b=c.chart;b.hasRendered&&b.series.forEach(function(b){b.type===c.type&&(b.isDirty=!0)});A.prototype.remove.apply(c,arguments)};e.defaultOptions=x(A.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
526
- select:{color:z.neutralColor20,borderColor:z.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:z.backgroundColor});return e}(A);H(p.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:D.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});y.registerSeriesType("column",p);"";"";return p});J(a,"Series/Bar/BarSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/SeriesRegistry.js"],
527
- a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(p,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var b in f)f.hasOwnProperty(b)&&(a[b]=f[b])};return a(p,h)};return function(p,h){function d(){this.constructor=p}a(p,h);p.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),z=C.extend,A=C.merge;C=function(n){function p(){var a=null!==n&&n.apply(this,arguments)||this;a.data=void 0;
528
- a.options=void 0;a.points=void 0;return a}u(p,n);p.defaultOptions=A(a.defaultOptions,{});return p}(a);z(C.prototype,{inverted:!0});n.registerSeriesType("bar",C);"";return C});J(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,n,C,D){var u=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||
529
- function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),A=D.addEvent,y=D.extend,p=D.merge;D=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}u(d,a);d.prototype.applyJitter=function(){var a=this,b=this.options.jitter,d=this.points.length;b&&this.points.forEach(function(f,
530
- k){["x","y"].forEach(function(h,p){var t="plot"+h.toUpperCase();if(b[h]&&!f.isNull){var n=a[h+"Axis"];var x=b[h]*n.transA;if(n&&!n.isLog){var r=Math.max(0,f[t]-x);n=Math.min(n.len,f[t]+x);p=1E4*Math.sin(k+p*d);f[t]=r+(n-r)*(p-Math.floor(p));"x"===h&&(f.clientX=f.plotX)}}})})};d.prototype.drawGraph=function(){this.options.lineWidth?a.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};d.defaultOptions=p(n.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},
531
- marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return d}(n);y(D.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});A(D,"afterTranslate",function(){this.applyJitter()});C.registerSeriesType("scatter",D);"";return D});
532
- J(a,"Mixins/CenteredSeries.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C){var u=C.isNumber,z=C.pick,A=C.relativeLength,y=a.deg2rad;return a.CenteredSeriesMixin={getCenter:function(){var a=this.options,h=this.chart,d=2*(a.slicedOffset||0),f=h.plotWidth-2*d,b=h.plotHeight-2*d,k=a.center,u=Math.min(f,b),t=a.size,y=a.innerSize||0;"string"===typeof t&&(t=parseFloat(t));"string"===typeof y&&(y=parseFloat(y));a=[z(k[0],"50%"),z(k[1],"50%"),z(t&&0>t?void 0:a.size,
533
- "100%"),z(y&&0>y?void 0:a.innerSize||0,"0%")];!h.angular||this instanceof n||(a[3]=0);for(k=0;4>k;++k)t=a[k],h=2>k||2===k&&/%$/.test(t),a[k]=A(t,[f,b,u,a[2]][k])+(h?d:0);a[3]>a[2]&&(a[3]=a[2]);return a},getStartAndEndRadians:function(a,h){a=u(a)?a:0;h=u(h)&&h>a&&360>h-a?h:a+360;return{start:y*(a+-90),end:y*(h+-90)}}}});J(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=
534
- function(b,d){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(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)}}(),z=a.setAnimation,A=C.addEvent,y=C.defined;a=C.extend;var p=C.isNumber,h=C.pick,d=C.relativeLength;C=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.labelDistance=void 0;
535
- b.options=void 0;b.series=void 0;return b}u(b,a);b.prototype.getConnectorPath=function(){var b=this.labelPosition,a=this.series.options.dataLabels,d=a.connectorShape,f=this.connectorShapes;f[d]&&(d=f[d]);return d.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,a)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(b){var a=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(a.x,
536
- a.y,a.r+b,a.r+b,{innerR:a.r-1,start:a.start,end:a.end})};b.prototype.init=function(){n.prototype.init.apply(this,arguments);var b=this;b.name=h(b.name,"Slice");var a=function(a){b.slice("select"===a.type)};A(b,"select",a);A(b,"unselect",a);return b};b.prototype.isValid=function(){return p(this.y)&&0<=this.y};b.prototype.setVisible=function(b,a){var d=this,f=d.series,k=f.chart,p=f.options.ignoreHiddenPoint;a=h(a,p);b!==d.visible&&(d.visible=d.options.visible=b="undefined"===typeof b?!d.visible:b,f.options.data[f.data.indexOf(d)]=
537
- d.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(d[a])d[a][b?"show":"hide"](b)}),d.legendItem&&k.legend.colorizeItem(d,b),b||"hover"!==d.state||d.setState(""),p&&(f.isDirty=!0),a&&k.redraw())};b.prototype.slice=function(b,a,d){var f=this.series;z(d,f.chart);h(a,!0);this.sliced=this.options.sliced=y(b)?b:!this.sliced;f.options.data[f.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};
538
- return b}(n);a(C.prototype,{connectorShapes:{fixedOffset:function(a,b,d){var f=b.breakAt;b=b.touchingSliceAt;return[["M",a.x,a.y],d.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*f.x-b.x,2*f.y-b.y,f.x,f.y]:["L",f.x,f.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,h){b=b.touchingSliceAt;var f=this.series,k=f.center[0],p=f.chart.plotWidth,n=f.chart.plotLeft;f=a.alignment;var u=this.shapeArgs.r;h=d(h.crookDistance,
539
- 1);p="left"===f?k+u+(p+n-k-u)*(1-h):n+(k-u)*h;h=["L",p,a.y];k=!0;if("left"===f?p>a.x||p<b.x:p<a.x||p>b.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(h);a.push(["L",b.x,b.y]);return a}}});return C});J(a,"Series/Pie/PieSeries.js",[a["Mixins/CenteredSeries.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Mixins/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"]],
540
- function(a,n,C,D,z,A,y,p,h,d){var f=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 e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),b=a.getStartAndEndRadians;C=C.noop;var k=d.clamp,u=d.extend,t=d.fireEvent,H=d.merge,K=d.pick,w=d.relativeLength;d=
541
- function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}f(d,a);d.prototype.animate=function(b){var a=this,e=a.points,d=a.startAngleRad;b||e.forEach(function(c){var b=c.graphic,e=c.shapeArgs;b&&e&&(b.attr({r:K(c.startR,a.center&&a.center[3]/2),start:d,end:d}),b.animate({r:e.r,start:e.start,end:e.end},a.options.animation))})};d.prototype.drawEmpty=function(){var b=this.startAngleRad,a=this.endAngleRad,
542
- e=this.options;if(0===this.total&&this.center){var d=this.center[0];var c=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(d,c,this.center[1]/2,0,b,a).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:h.arc(d,c,this.center[2]/2,0,{start:b,end:a,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":e.borderWidth,fill:e.fillColor||"none",stroke:e.color||z.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};d.prototype.drawPoints=
543
- function(){var b=this.chart.renderer;this.points.forEach(function(a){a.graphic&&a.hasNewShapeType()&&(a.graphic=a.graphic.destroy());a.graphic||(a.graphic=b[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})};d.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};d.prototype.getX=function(b,a,e){var d=this.center,c=this.radii?this.radii[e.index]||0:d[2]/2;b=Math.asin(k((b-d[1])/(c+e.labelDistance),-1,1));return d[0]+(a?-1:1)*Math.cos(b)*
544
- (c+e.labelDistance)+(0<e.labelDistance?(a?-1:1)*this.options.dataLabels.padding:0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.redrawPoints=function(){var b=this,a=b.chart,e=a.renderer,d,c,f,l,h=b.options.shadow;this.drawEmpty();!h||b.shadowGroup||a.styledMode||(b.shadowGroup=e.g("shadow").attr({zIndex:-1}).add(b.group));b.points.forEach(function(g){var k={};c=g.graphic;if(!g.isNull&&c){var m=void 0;l=g.shapeArgs;d=g.getTranslate();a.styledMode||(m=g.shadowGroup,
545
- h&&!m&&(m=g.shadowGroup=e.g("shadow").add(b.shadowGroup)),m&&m.attr(d),f=b.pointAttribs(g,g.selected&&"select"));g.delayedRendering?(c.setRadialReference(b.center).attr(l).attr(d),a.styledMode||c.attr(f).attr({"stroke-linejoin":"round"}).shadow(h,m),g.delayedRendering=!1):(c.setRadialReference(b.center),a.styledMode||H(!0,k,f),H(!0,k,l,d),c.animate(k));c.attr({visibility:g.visible?"inherit":"hidden"});c.addClass(g.getClassName(),!0)}else c&&(g.graphic=c.destroy())})};d.prototype.sortByAngle=function(b,
546
- a){b.sort(function(b,d){return"undefined"!==typeof b.angle&&(d.angle-b.angle)*a})};d.prototype.translate=function(a){this.generatePoints();var d=0,e=this.options,f=e.slicedOffset,c=f+(e.borderWidth||0),g=b(e.startAngle,e.endAngle),l=this.startAngleRad=g.start;g=(this.endAngleRad=g.end)-l;var h=this.points,k=e.dataLabels.distance;e=e.ignoreHiddenPoint;var r,p=h.length;a||(this.center=a=this.getCenter());for(r=0;r<p;r++){var n=h[r];var u=l+d*g;!n.isValid()||e&&!n.visible||(d+=n.percentage/100);var x=
547
- l+d*g;var y={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*u)/1E3,end:Math.round(1E3*x)/1E3};n.shapeType="arc";n.shapeArgs=y;n.labelDistance=K(n.options.dataLabels&&n.options.dataLabels.distance,k);n.labelDistance=w(n.labelDistance,y.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,n.labelDistance);x=(x+u)/2;x>1.5*Math.PI?x-=2*Math.PI:x<-Math.PI/2&&(x+=2*Math.PI);n.slicedTranslation={translateX:Math.round(Math.cos(x)*f),translateY:Math.round(Math.sin(x)*f)};y=Math.cos(x)*a[2]/
548
- 2;var B=Math.sin(x)*a[2]/2;n.tooltipPos=[a[0]+.7*y,a[1]+.7*B];n.half=x<-Math.PI/2||x>Math.PI/2?1:0;n.angle=x;u=Math.min(c,n.labelDistance/5);n.labelPosition={natural:{x:a[0]+y+Math.cos(x)*n.labelDistance,y:a[1]+B+Math.sin(x)*n.labelDistance},"final":{},alignment:0>n.labelDistance?"center":n.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+y+Math.cos(x)*u,y:a[1]+B+Math.sin(x)*u},touchingSliceAt:{x:a[0]+y,y:a[1]+B}}}}t(this,"afterTranslate")};d.prototype.updateTotals=function(){var b,a=0,e=this.points,
549
- d=e.length,c=this.options.ignoreHiddenPoint;for(b=0;b<d;b++){var f=e[b];!f.isValid()||c&&!f.visible||(a+=f.y)}this.total=a;for(b=0;b<d;b++)f=e[b],f.percentage=0<a&&(f.visible||!c)?f.y/a*100:0,f.total=a};d.defaultOptions=H(y.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,
550
- ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:z.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return d}(y);u(d.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:D.drawRectangle,drawTracker:n.prototype.drawTracker,getCenter:a.getCenter,getSymbol:C,isCartesian:!1,noSharedTooltip:!0,pointAttribs:n.prototype.pointAttribs,
551
- pointClass:A,requireSorting:!1,searchPoint:C,trackerGroups:["group","dataLabelsGroup"]});p.registerSeriesType("pie",d);"";return d});J(a,"Core/Series/DataLabels.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y){var p=a.getDeferredAnimation,h=n.format;a=C.noop;A=A.seriesTypes;var d=y.arrayMax,f=y.clamp,b=y.defined,k=
552
- y.extend,u=y.fireEvent,t=y.isArray,H=y.merge,K=y.objectEach,w=y.pick,E=y.relativeLength,x=y.splat,r=y.stableSort;"";C.distribute=function(b,a,d){function c(c,b){return c.target-b.target}var e,l=!0,h=b,k=[];var m=0;var q=h.reducedLen||a;for(e=b.length;e--;)m+=b[e].size;if(m>q){r(b,function(c,b){return(b.rank||0)-(c.rank||0)});for(m=e=0;m<=q;)m+=b[e].size,e++;k=b.splice(e-1,b.length)}r(b,c);for(b=b.map(function(c){return{size:c.size,targets:[c.target],align:w(c.align,.5)}});l;){for(e=b.length;e--;)l=
553
- b[e],m=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=f(m-l.size*l.align,0,a-l.size);e=b.length;for(l=!1;e--;)0<e&&b[e-1].pos+b[e-1].size>b[e].pos&&(b[e-1].size+=b[e].size,b[e-1].targets=b[e-1].targets.concat(b[e].targets),b[e-1].align=.5,b[e-1].pos+b[e-1].size>a&&(b[e-1].pos=a-b[e-1].size),b.splice(e,1),l=!0)}h.push.apply(h,k);e=0;b.some(function(c){var b=0;if(c.targets.some(function(){h[e].pos=c.pos+b;if("undefined"!==typeof d&&Math.abs(h[e].pos-h[e].target)>d)return h.slice(0,
554
- e+1).forEach(function(c){delete c.pos}),h.reducedLen=(h.reducedLen||a)-.1*a,h.reducedLen>.1*a&&C.distribute(h,a,d),!0;b+=h[e].size;e++}))return!0});r(h,c)};z.prototype.drawDataLabels=function(){function a(c,b){var a=b.filter;return a?(b=a.operator,c=c[a.property],a=a.value,">"===b&&c>a||"<"===b&&c<a||">="===b&&c>=a||"<="===b&&c<=a||"=="===b&&c==a||"==="===b&&c===a?!0:!1):!0}function e(c,b){var a=[],e;if(t(c)&&!t(b))a=c.map(function(c){return H(c,b)});else if(t(b)&&!t(c))a=b.map(function(b){return H(c,
555
- b)});else if(t(c)||t(b))for(e=Math.max(c.length,b.length);e--;)a[e]=H(c[e],b[e]);else a=H(c,b);return a}var d=this,c=d.chart,f=d.options,l=f.dataLabels,k=d.points,r,n=d.hasRendered||0,y=l.animation;y=l.defer?p(c,y,d):{defer:0,duration:0};var B=c.renderer;l=e(e(c.options.plotOptions&&c.options.plotOptions.series&&c.options.plotOptions.series.dataLabels,c.options.plotOptions&&c.options.plotOptions[d.type]&&c.options.plotOptions[d.type].dataLabels),l);u(this,"drawDataLabels");if(t(l)||l.enabled||d._hasPointLabels){var z=
556
- d.plotGroup("dataLabelsGroup","data-labels",n?"inherit":"hidden",l.zIndex||6);z.attr({opacity:+n});!n&&(n=d.dataLabelsGroup)&&(d.visible&&z.show(!0),n[f.animation?"animate":"attr"]({opacity:1},y));k.forEach(function(g){r=x(e(l,g.dlOptions||g.options&&g.options.dataLabels));r.forEach(function(e,l){var k=e.enabled&&(!g.isNull||g.dataLabelOnNull)&&a(g,e),m=g.dataLabels?g.dataLabels[l]:g.dataLabel,q=g.connectors?g.connectors[l]:g.connector,r=w(e.distance,g.labelDistance),p=!m;if(k){var v=g.getLabelConfig();
557
- var n=w(e[g.formatPrefix+"Format"],e.format);v=b(n)?h(n,v,c):(e[g.formatPrefix+"Formatter"]||e.formatter).call(v,e);n=e.style;var t=e.rotation;c.styledMode||(n.color=w(e.color,n.color,d.color,D.neutralColor100),"contrast"===n.color?(g.contrastColor=B.getContrast(g.color||d.color),n.color=!b(r)&&e.inside||0>r||f.stacking?g.contrastColor:D.neutralColor100):delete g.contrastColor,f.cursor&&(n.cursor=f.cursor));var x={r:e.borderRadius||0,rotation:t,padding:e.padding,zIndex:1};c.styledMode||(x.fill=e.backgroundColor,
558
- x.stroke=e.borderColor,x["stroke-width"]=e.borderWidth);K(x,function(c,b){"undefined"===typeof c&&delete x[b]})}!m||k&&b(v)?k&&b(v)&&(m?x.text=v:(g.dataLabels=g.dataLabels||[],m=g.dataLabels[l]=t?B.text(v,0,-9999,e.useHTML).addClass("highcharts-data-label"):B.label(v,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),l||(g.dataLabel=m),m.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),m.options=e,m.attr(x),c.styledMode||m.css(n).shadow(e.shadow),
559
- m.added||m.add(z),e.textPath&&!e.useHTML&&(m.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(m)||g.graphic,e.textPath),g.dataLabelPath&&!e.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),d.alignDataLabel(g,m,e,null,p)):(g.dataLabel=g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[l]),l||delete g.dataLabel,q&&(g.connector=g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[l])))})})}u(this,
560
- "afterDrawDataLabels")};z.prototype.alignDataLabel=function(b,a,d,c,f){var e=this,g=this.chart,h=this.isCartesian&&g.inverted,m=this.enabledDataSorting,q=w(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),r=w(b.plotY,-9999),p=a.getBBox(),n=d.rotation,t=d.align,x=g.isInsidePlot(q,Math.round(r),{inverted:h,paneCoordinates:!0,series:e}),u="justify"===w(d.overflow,m?"none":"justify"),y=this.visible&&!1!==b.visible&&(b.series.forceDL||m&&!u||x||w(d.inside,!!this.options.stacking)&&c&&g.isInsidePlot(q,h?c.x+1:c.y+
561
- c.height-1,{inverted:h,paneCoordinates:!0,series:e}));var B=function(c){m&&e.xAxis&&!u&&e.setDataLabelStartPos(b,a,f,x,c)};if(y){var z=g.renderer.fontMetrics(g.styledMode?void 0:d.style.fontSize,a).b;c=k({x:h?this.yAxis.len-r:q,y:Math.round(h?this.xAxis.len-q:r),width:0,height:0},c);k(d,{width:p.width,height:p.height});n?(u=!1,q=g.renderer.rotCorr(z,n),q={x:c.x+(d.x||0)+c.width/2+q.x,y:c.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*c.height},B(q),a[f?"attr":"animate"](q).attr({align:t}),
562
- B=(n+720)%360,B=180<B&&360>B,"left"===t?q.y-=B?p.height:0:"center"===t?(q.x-=p.width/2,q.y-=p.height/2):"right"===t&&(q.x-=p.width,q.y-=B?0:p.height),a.placed=!0,a.alignAttr=q):(B(c),a.align(d,void 0,c),q=a.alignAttr);u&&0<=c.height?this.justifyDataLabel(a,d,q,p,c,f):w(d.crop,!0)&&(y=g.isInsidePlot(q.x,q.y,{paneCoordinates:!0,series:e})&&g.isInsidePlot(q.x+p.width,q.y+p.height,{paneCoordinates:!0,series:e}));if(d.shape&&!n)a[f?"attr":"animate"]({anchorX:h?g.plotWidth-b.plotY:b.plotX,anchorY:h?g.plotHeight-
563
- b.plotX:b.plotY})}f&&m&&(a.placed=!1);y||m&&!u||(a.hide(!0),a.placed=!1)};z.prototype.setDataLabelStartPos=function(b,a,d,c,f){var e=this.chart,g=e.inverted,h=this.xAxis,k=h.reversed,m=g?a.height/2:a.width/2;b=(b=b.pointWidth)?b/2:0;h=g?f.x:k?-m-b:h.width-m+b;f=g?k?this.yAxis.height-m+b:-m-b:f.y;a.startXPos=h;a.startYPos=f;c?"hidden"===a.visibility&&(a.show(),a.attr({opacity:0}).animate({opacity:1})):a.attr({opacity:1}).animate({opacity:0},void 0,a.hide);e.hasRendered&&(d&&a.attr({x:a.startXPos,y:a.startYPos}),
564
- a.placed=!0)};z.prototype.justifyDataLabel=function(b,a,d,c,f,l){var e=this.chart,g=a.align,h=a.verticalAlign,k=b.box?0:b.padding||0,m=a.x;m=void 0===m?0:m;var q=a.y;var r=void 0===q?0:q;q=(d.x||0)+k;if(0>q){"right"===g&&0<=m?(a.align="left",a.inside=!0):m-=q;var p=!0}q=(d.x||0)+c.width-k;q>e.plotWidth&&("left"===g&&0>=m?(a.align="right",a.inside=!0):m+=e.plotWidth-q,p=!0);q=d.y+k;0>q&&("bottom"===h&&0<=r?(a.verticalAlign="top",a.inside=!0):r-=q,p=!0);q=(d.y||0)+c.height-k;q>e.plotHeight&&("top"===
565
- h&&0>=r?(a.verticalAlign="bottom",a.inside=!0):r+=e.plotHeight-q,p=!0);p&&(a.x=m,a.y=r,b.placed=!l,b.align(a,void 0,f));return p};A.pie&&(A.pie.prototype.dataLabelPositioners={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,a,d,c){return b.getX(d<a.top+2||d>a.bottom-2?c:d,a.half,a)},justify:function(b,a,d){return d[0]+(b.half?-1:1)*(a+b.labelDistance)},alignToPlotEdges:function(b,a,d,c){b=b.getBBox().width;return a?b+c:d-b-c},alignToConnectors:function(b,
566
- a,d,c){var e=0,f;b.forEach(function(c){f=c.dataLabel.getBBox().width;f>e&&(e=f)});return a?e+c:d-e-c}},A.pie.prototype.drawDataLabels=function(){var a=this,e=a.data,f,c=a.chart,g=a.options.dataLabels||{},l=g.connectorPadding,h,k=c.plotWidth,r=c.plotHeight,p=c.plotLeft,n=Math.round(c.chartWidth/3),t,x=a.center,u=x[2]/2,y=x[1],B,A,E,K,J=[[],[]],M,Q,U,T,S=[0,0,0,0],R=a.dataLabelPositioners,W;a.visible&&(g.enabled||a._hasPointLabels)&&(e.forEach(function(c){c.dataLabel&&c.visible&&c.dataLabel.shortened&&
567
- (c.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),c.dataLabel.shortened=!1)}),z.prototype.drawDataLabels.apply(a),e.forEach(function(c){c.dataLabel&&(c.visible?(J[c.half].push(c),c.dataLabel._pos=null,!b(g.style.width)&&!b(c.options.dataLabels&&c.options.dataLabels.style&&c.options.dataLabels.style.width)&&c.dataLabel.getBBox().width>n&&(c.dataLabel.css({width:Math.round(.7*n)+"px"}),c.dataLabel.shortened=!0)):(c.dataLabel=c.dataLabel.destroy(),c.dataLabels&&1===c.dataLabels.length&&
568
- delete c.dataLabels))}),J.forEach(function(e,d){var h=e.length,m=[],q;if(h){a.sortByAngle(e,d-.5);if(0<a.maxLabelDistance){var v=Math.max(0,y-u-a.maxLabelDistance);var n=Math.min(y+u+a.maxLabelDistance,c.plotHeight);e.forEach(function(b){0<b.labelDistance&&b.dataLabel&&(b.top=Math.max(0,y-u-b.labelDistance),b.bottom=Math.min(y+u+b.labelDistance,c.plotHeight),q=b.dataLabel.getBBox().height||21,b.distributeBox={target:b.labelPosition.natural.y-b.top+q/2,size:q,rank:b.y},m.push(b.distributeBox))});v=
569
- n+q-v;C.distribute(m,v,v/5)}for(T=0;T<h;T++){f=e[T];E=f.labelPosition;B=f.dataLabel;U=!1===f.visible?"hidden":"inherit";Q=v=E.natural.y;m&&b(f.distributeBox)&&("undefined"===typeof f.distributeBox.pos?U="hidden":(K=f.distributeBox.size,Q=R.radialDistributionY(f)));delete f.positionIndex;if(g.justify)M=R.justify(f,u,x);else switch(g.alignTo){case "connectors":M=R.alignToConnectors(e,d,k,p);break;case "plotEdges":M=R.alignToPlotEdges(B,d,k,p);break;default:M=R.radialDistributionX(a,f,Q,v)}B._attr={visibility:U,
570
- align:E.alignment};W=f.options.dataLabels||{};B._pos={x:M+w(W.x,g.x)+({left:l,right:-l}[E.alignment]||0),y:Q+w(W.y,g.y)-10};E.final.x=M;E.final.y=Q;w(g.crop,!0)&&(A=B.getBBox().width,v=null,M-A<l&&1===d?(v=Math.round(A-M+l),S[3]=Math.max(v,S[3])):M+A>k-l&&0===d&&(v=Math.round(M+A-k+l),S[1]=Math.max(v,S[1])),0>Q-K/2?S[0]=Math.max(Math.round(-Q+K/2),S[0]):Q+K/2>r&&(S[2]=Math.max(Math.round(Q+K/2-r),S[2])),B.sideOverflow=v)}}}),0===d(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),this.points.forEach(function(b){W=
571
- H(g,b.options.dataLabels);if(h=w(W.connectorWidth,1)){var e;t=b.connector;if((B=b.dataLabel)&&B._pos&&b.visible&&0<b.labelDistance){U=B._attr.visibility;if(e=!t)b.connector=t=c.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),c.styledMode||t.attr({"stroke-width":h,stroke:W.connectorColor||b.color||D.neutralColor60});t[e?"attr":"animate"]({d:b.getConnectorPath()});t.attr("visibility",U)}else t&&(b.connector=
572
- t.destroy())}}))},A.pie.prototype.placeDataLabels=function(){this.points.forEach(function(b){var a=b.dataLabel,d;a&&b.visible&&((d=a._pos)?(a.sideOverflow&&(a._attr.width=Math.max(a.getBBox().width-a.sideOverflow,0),a.css({width:a._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),a.shortened=!0),a.attr(a._attr),a[a.moved?"animate":"attr"](d),a.moved=!0):a&&a.attr({y:-9999}));delete b.distributeBox},this)},A.pie.prototype.alignDataLabel=a,A.pie.prototype.verifyDataLabelOverflow=
573
- function(b){var a=this.center,d=this.options,c=d.center,g=d.minSize||80,l=null!==d.size;if(!l){if(null!==c[0])var h=Math.max(a[2]-Math.max(b[1],b[3]),g);else h=Math.max(a[2]-b[1]-b[3],g),a[0]+=(b[3]-b[1])/2;null!==c[1]?h=f(h,g,a[2]-Math.max(b[0],b[2])):(h=f(h,g,a[2]-b[0]-b[2]),a[1]+=(b[0]-b[2])/2);h<a[2]?(a[2]=h,a[3]=Math.min(E(d.innerSize||0,h),h),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):l=!0}return l});A.column&&(A.column.prototype.alignDataLabel=function(b,a,d,c,f){var e=this.chart.inverted,
574
- g=b.series,h=b.dlBox||b.shapeArgs,k=w(b.below,b.plotY>w(this.translatedThreshold,g.yAxis.len)),m=w(d.inside,!!this.options.stacking);h&&(c=H(h),0>c.y&&(c.height+=c.y,c.y=0),h=c.y+c.height-g.yAxis.len,0<h&&h<c.height&&(c.height-=h),e&&(c={x:g.yAxis.len-c.y-c.height,y:g.xAxis.len-c.x-c.width,width:c.height,height:c.width}),m||(e?(c.x+=k?0:c.width,c.width=0):(c.y+=k?c.height:0,c.height=0)));d.align=w(d.align,!e||m?"center":k?"right":"left");d.verticalAlign=w(d.verticalAlign,e||m?"middle":k?"top":"bottom");
575
- z.prototype.alignDataLabel.call(this,b,a,d,c,f);d.inside&&b.contrastColor&&a.css({color:b.contrastColor})})});J(a,"Extensions/OverlappingDataLabels.js",[a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,n){function u(a,f){var b=!1;if(a){var d=a.newOpacity;a.oldOpacity!==d&&(a.alignAttr&&a.placed?(a[d?"removeClass":"addClass"]("highcharts-data-label-hidden"),b=!0,a.alignAttr.opacity=d,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){f.styledMode||a.css({pointerEvents:d?"auto":"none"})}),
576
- z(f,"afterHideOverlappingLabel")):a.attr({opacity:d}));a.isOld=!0}return b}var D=n.addEvent,z=n.fireEvent,A=n.isArray,y=n.isNumber,p=n.objectEach,h=n.pick;D(a,"render",function(){var a=this,f=[];(this.labelCollectors||[]).forEach(function(b){f=f.concat(b())});(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&p(b.stacking.stacks,function(b){p(b,function(b){b.label&&"hidden"!==b.label.visibility&&f.push(b.label)})})});(this.series||[]).forEach(function(b){var d=
577
- b.options.dataLabels;b.visible&&(!1!==d.enabled||b._hasPointLabels)&&(d=function(b){return b.forEach(function(b){b.visible&&(A(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(d){var k=d.options;d.labelrank=h(k.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height);k.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,u(d,a)):f.push(d)})})},d(b.nodes||[]),d(b.points))});this.hideOverlappingLabels(f)});a.prototype.hideOverlappingLabels=function(a){var d=this,b=a.length,h=d.renderer,
578
- p,n,A,C=!1;var w=function(b){var a,e=b.box?0:b.padding||0,d=a=0,c;if(b&&(!b.alignAttr||b.placed)){var f=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var l=b.parentGroup;b.width||(a=b.getBBox(),b.width=a.width,b.height=a.height,a=h.fontMetrics(null,b.element).h);var k=b.width-2*e;(c={left:"0",center:"0.5",right:"1"}[b.alignValue])?d=+c*k:y(b.x)&&Math.round(b.x)!==b.translateX&&(d=b.x-b.translateX);return{x:f.x+(l.translateX||0)+e-(d||0),y:f.y+(l.translateY||0)+e-a,width:b.width-2*e,height:b.height-2*
579
- e}}};for(n=0;n<b;n++)if(p=a[n])p.oldOpacity=p.opacity,p.newOpacity=1,p.absoluteBox=w(p);a.sort(function(b,a){return(a.labelrank||0)-(b.labelrank||0)});for(n=0;n<b;n++){var E=(w=a[n])&&w.absoluteBox;for(p=n+1;p<b;++p){var x=(A=a[p])&&A.absoluteBox;!E||!x||w===A||0===w.newOpacity||0===A.newOpacity||x.x>=E.x+E.width||x.x+x.width<=E.x||x.y>=E.y+E.height||x.y+x.height<=E.y||((w.labelrank<A.labelrank?w:A).newOpacity=0)}}a.forEach(function(b){u(b,d)&&(C=!0)});C&&z(d,"afterHideAllOverlappingLabels")}});J(a,
580
- "Core/Responsive.js",[a["Core/Utilities.js"]],function(a){var n=a.extend,u=a.find,D=a.isArray,z=a.isObject,A=a.merge,y=a.objectEach,p=a.pick,h=a.splat,d=a.uniqueKey,f=function(){function b(){}b.prototype.currentOptions=function(b){function a(b,f,k,p){var r;y(b,function(b,e){if(!p&&-1<d.collectionsWithUpdate.indexOf(e)&&f[e])for(b=h(b),k[e]=[],r=0;r<Math.max(b.length,f[e].length);r++)f[e][r]&&(void 0===b[r]?k[e][r]=f[e][r]:(k[e][r]={},a(b[r],f[e][r],k[e][r],p+1)));else z(b)?(k[e]=D(b)?[]:{},a(b,f[e]||
581
- {},k[e],p+1)):k[e]="undefined"===typeof f[e]?null:f[e]})}var d=this,f={};a(b,this.options,f,0);return f};b.prototype.matchResponsiveRule=function(b,a){var d=b.condition;(d.callback||function(){return this.chartWidth<=p(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=p(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=p(d.minWidth,0)&&this.chartHeight>=p(d.minHeight,0)}).call(this)&&a.push(b._id)};b.prototype.setResponsive=function(b,a){var f=this.options.responsive,h=this.currentResponsive,k=[];!a&&
582
- f&&f.rules&&f.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=d());this.matchResponsiveRule(b,k)},this);a=A.apply(void 0,k.map(function(b){return u((f||{}).rules||[],function(a){return a._id===b})}).map(function(b){return b&&b.chartOptions}));a.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,b,!0),k?(h=this.currentOptions(a),h.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:a,undoOptions:h},this.update(a,b,!0)):this.currentResponsive=
583
- void 0)};return b}();a=function(){function b(){}b.compose=function(b){n(b.prototype,f.prototype);return b};return b}();"";"";return a});J(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"],a["Core/FormatUtilities.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"],
584
- a["Core/Axis/Axis.js"],a["Core/Axis/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,n,C,D,z,A,y,p,h,d,f,b,k,B,t,H,K,w,E,x,r){a.animate=z.animate;a.animObject=z.animObject;a.getDeferredAnimation=z.getDeferredAnimation;a.setAnimation=z.setAnimation;a.stop=z.stop;a.timers=D.timers;a.AST=A;a.Axis=b;a.Chart=K;a.chart=K.chart;a.Fx=D;a.PlotLineOrBand=
585
- k;a.Pointer=H.isRequired()?H:t;a.Series=w;a.SVGElement=p;a.SVGRenderer=h;a.Tick=B;a.Time=r;a.Color=x;a.color=x.parse;f.compose(h);d.compose(p);a.defaultOptions=C.defaultOptions;a.getOptions=C.getOptions;a.time=C.defaultTime;a.setOptions=C.setOptions;a.dateFormat=y.dateFormat;a.format=y.format;a.numberFormat=y.numberFormat;a.addEvent=n.addEvent;a.arrayMax=n.arrayMax;a.arrayMin=n.arrayMin;a.attr=n.attr;a.clearTimeout=n.clearTimeout;a.correctFloat=n.correctFloat;a.createElement=n.createElement;a.css=
586
- n.css;a.defined=n.defined;a.destroyObjectProperties=n.destroyObjectProperties;a.discardElement=n.discardElement;a.erase=n.erase;a.error=n.error;a.extend=n.extend;a.extendClass=n.extendClass;a.find=n.find;a.fireEvent=n.fireEvent;a.getMagnitude=n.getMagnitude;a.getStyle=n.getStyle;a.inArray=n.inArray;a.isArray=n.isArray;a.isClass=n.isClass;a.isDOMElement=n.isDOMElement;a.isFunction=n.isFunction;a.isNumber=n.isNumber;a.isObject=n.isObject;a.isString=n.isString;a.keys=n.keys;a.merge=n.merge;a.normalizeTickInterval=
587
- n.normalizeTickInterval;a.objectEach=n.objectEach;a.offset=n.offset;a.pad=n.pad;a.pick=n.pick;a.pInt=n.pInt;a.relativeLength=n.relativeLength;a.removeEvent=n.removeEvent;a.splat=n.splat;a.stableSort=n.stableSort;a.syncTimeout=n.syncTimeout;a.timeUnits=n.timeUnits;a.uniqueKey=n.uniqueKey;a.useSerialIds=n.useSerialIds;a.wrap=n.wrap;E.compose(K);return a});J(a,"Core/Axis/MapAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,n){var u=n.addEvent,D=n.pick,z=function(){return function(a){this.axis=
588
- a}}();n=function(){function a(){}a.compose=function(a){a.keepProps.push("mapAxis");u(a,"init",function(){this.mapAxis||(this.mapAxis=new z(this))});u(a,"getSeriesExtremes",function(){if(this.mapAxis){var a=[];this.isXAxis&&(this.series.forEach(function(h,d){h.useMapGeometry&&(a[d]=h.xData,h.xData=[])}),this.mapAxis.seriesXData=a)}});u(a,"afterGetSeriesExtremes",function(){if(this.mapAxis){var a=this.mapAxis.seriesXData||[],h;if(this.isXAxis){var d=D(this.dataMin,Number.MAX_VALUE);var f=D(this.dataMax,
589
- -Number.MAX_VALUE);this.series.forEach(function(b,k){b.useMapGeometry&&(d=Math.min(d,D(b.minX,d)),f=Math.max(f,D(b.maxX,f)),b.xData=a[k],h=!0)});h&&(this.dataMin=d,this.dataMax=f);this.mapAxis.seriesXData=void 0}}});u(a,"afterSetAxisTranslation",function(){if(this.mapAxis){var a=this.chart,h=a.plotWidth/a.plotHeight;a=a.xAxis[0];var d;"yAxis"===this.coll&&"undefined"!==typeof a.transA&&this.series.forEach(function(a){a.preserveAspectRatio&&(d=!0)});if(d&&(this.transA=a.transA=Math.min(this.transA,
590
- a.transA),h/=(a.max-a.min)/(this.max-this.min),h=1>h?this:a,a=(h.max-h.min)*h.transA,h.mapAxis.pixelPadding=h.len-a,h.minPixelPadding=h.mapAxis.pixelPadding/2,a=h.mapAxis.fixTo)){a=a[1]-h.toValue(a[0],!0);a*=h.transA;if(Math.abs(a)>h.minPixelPadding||h.min===h.dataMin&&h.max===h.dataMax)a=0;h.minPixelPadding-=a}}});u(a,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return a}();n.compose(a);return n});J(a,"Mixins/ColorSeries.js",[],function(){return{colorPointMixin:{setVisible:function(a){var n=
591
- this,u=a?"show":"hide";n.visible=n.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(n[a])n[a][u]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",colorAxis:0,translateColors:function(){var a=this,n=this.options.nullColor,C=this.colorAxis,D=this.colorKey;(this.data.length?this.data:this.points).forEach(function(u){var A=u.getNestedProperty(D);(A=u.options.color||(u.isNull||null===u.value?n:C&&"undefined"!==typeof A?C.toColor(A,u):u.color||a.color))&&u.color!==
592
- A&&(u.color=A,"point"===a.options.legendType&&u.legendItem&&a.chart.legend.colorizeItem(u,u.visible))})}}}});J(a,"Core/Axis/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Mixins/ColorSeries.js"],a["Core/Animation/Fx.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d,f,b){var k=this&&this.__extends||function(){var b=
593
- function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),u=C.parse;C=D.colorPointMixin;D=D.colorSeriesMixin;var t=A.noop,H=b.addEvent,K=b.extend,w=b.isNumber,E=b.merge,x=b.pick,r=b.splat;"";K(f.prototype,D);K(d.prototype,C);n.prototype.collectionsWithUpdate.push("colorAxis");
594
- n.prototype.collectionsWithInit.colorAxis=[n.prototype.addColorAxis];var q=function(b){function a(a,e){var c=b.call(this,a,e)||this;c.beforePadding=!1;c.chart=void 0;c.coll="colorAxis";c.dataClasses=void 0;c.legendItem=void 0;c.legendItems=void 0;c.name="";c.options=void 0;c.stops=void 0;c.visible=!0;c.init(a,e);return c}k(a,b);a.prototype.init=function(c,e){var d=c.options.legend||{},f=e.layout?"vertical"!==e.layout:"vertical"!==d.layout;d=E(a.defaultColorAxisOptions,e,{showEmpty:!1,title:null,visible:d.enabled&&
595
- (e?!1!==e.visible:!0)});this.coll="colorAxis";this.side=e.side||f?2:1;this.reversed=e.reversed||!f;this.opposite=!f;b.prototype.init.call(this,c,d);e.dataClasses&&this.initDataClasses(e);this.initStops();this.horiz=f;this.zoomEnabled=!1};a.prototype.initDataClasses=function(a){var b=this.chart,c,e=0,d=b.options.chart.colorCount,f=this.options,h=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];a.dataClasses.forEach(function(a,g){a=E(a);c.push(a);if(b.styledMode||!a.color)"category"===
596
- f.dataClassColor?(b.styledMode||(g=b.options.colors,d=g.length,a.color=g[e]),a.colorIndex=e,e++,e===d&&(e=0)):a.color=u(f.minColor).tweenTo(u(f.maxColor),2>h?.5:g/(h-1))})};a.prototype.hasData=function(){return!!(this.tickPositions||[]).length};a.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};a.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=
597
- u(a[1])})};a.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};a.prototype.setAxisSize=function(){var b=this.legendSymbol,e=this.chart,d=e.options.legend||{},f,h;b?(this.left=d=b.attr("x"),this.top=f=b.attr("y"),this.width=h=b.attr("width"),this.height=b=b.attr("height"),this.right=e.chartWidth-d-h,this.bottom=e.chartHeight-f-b,this.len=this.horiz?h:b,this.pos=this.horiz?d:f):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||a.defaultLegendLength};
598
- a.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};a.prototype.toColor=function(a,b){var c=this.dataClasses,e=this.stops,d;if(c)for(d=c.length;d--;){var f=c[d];var g=f.from;e=f.to;if(("undefined"===typeof g||a>=g)&&("undefined"===typeof e||a<=e)){var h=f.color;b&&(b.dataClass=d,b.colorIndex=f.colorIndex);break}}else{a=this.normalizedValue(a);for(d=e.length;d--&&!(a>e[d][0]););g=e[d]||e[d+1];e=e[d+1]||g;a=1-(e[0]-
599
- a)/(e[0]-g[0]||1);h=g.color.tweenTo(e.color,a)}return h};a.prototype.getOffset=function(){var a=this.legendGroup,e=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]=e)};a.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}};
600
- a.prototype.drawLegendSymbol=function(b,e){var c=b.padding,d=b.options,f=this.horiz,g=x(d.symbolWidth,f?a.defaultLegendLength:12),h=x(d.symbolHeight,f?12:a.defaultLegendLength),k=x(d.labelPadding,f?16:30);d=x(d.itemDistance,10);this.setLegendColor();e.legendSymbol=this.chart.renderer.rect(0,b.baseline-11,g,h).attr({zIndex:1}).add(e.legendGroup);this.legendItemWidth=g+c+(f?d:k);this.legendItemHeight=h+c+(f?k:0)};a.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};a.prototype.setVisible=
601
- function(){};a.prototype.getSeriesExtremes=function(){var a=this.series,b=a.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var d=a[b];var h=d.colorKey=x(d.options.colorKey,d.colorKey,d.pointValKey,d.zoneAxis,"y");var k=d.pointArrayMap;var m=d[h+"Min"]&&d[h+"Max"];if(d[h+"Data"])var q=d[h+"Data"];else if(k){q=[];k=k.indexOf(h);var r=d.yData;if(0<=k&&r)for(e=0;e<r.length;e++)q.push(x(r[e][k],r[e]))}else q=d.yData;m?(d.minColorValue=d[h+"Min"],d.maxColorValue=d[h+"Max"]):(q=f.prototype.getExtremes.call(d,
602
- q),d.minColorValue=q.dataMin,d.maxColorValue=q.dataMax);"undefined"!==typeof d.minColorValue&&(this.dataMin=Math.min(this.dataMin,d.minColorValue),this.dataMax=Math.max(this.dataMax,d.maxColorValue));m||f.prototype.applyExtremes.call(d)}};a.prototype.drawCrosshair=function(a,e){var c=e&&e.plotX,d=e&&e.plotY,f=this.pos,g=this.len;if(e){var h=this.toPixels(e.getNestedProperty(e.series.colorKey));h<f?h=f-2:h>f+g&&(h=f+g+2);e.plotX=h;e.plotY=this.len-h;b.prototype.drawCrosshair.call(this,a,e);e.plotX=
603
- c;e.plotY=d;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};a.prototype.getPlotLinePath=function(a){var c=this.left,e=a.translatedValue,d=this.top;return w(e)?this.horiz?[["M",e-4,d-6],["L",e+4,d-6],["L",e,d],["Z"]]:[["M",c,e],["L",c-6,e+6],["L",c-6,e-6],["Z"]]:b.prototype.getPlotLinePath.call(this,
604
- a)};a.prototype.update=function(a,e){var c=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&c.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,e);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))};a.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};a.prototype.destroy=function(){this.chart.isDirtyLegend=
605
- !0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};a.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};a.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,e=a.legendItems,d=b.options.legend,f=d.valueDecimals,h=d.valueSuffix||"",k;e.length||a.dataClasses.forEach(function(c,d){var g=!0,l=c.from,m=c.to,q=b.numberFormatter;k="";"undefined"===typeof l?k="< ":"undefined"===typeof m&&(k="> ");"undefined"!==typeof l&&(k+=q(l,
606
- f)+h);"undefined"!==typeof l&&"undefined"!==typeof m&&(k+=" - ");"undefined"!==typeof m&&(k+=q(m,f)+h);e.push(K({chart:b,name:k,options:{},drawLegendSymbol:p.drawRectangle,visible:!0,setState:t,isDataClass:!0,setVisible:function(){g=a.visible=!g;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===d&&a.setVisible(g)})});b.legend.colorizeItem(this,g)}},c))});return e};a.defaultLegendLength=200;a.defaultColorAxisOptions={lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
607
- startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:h.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:h.highlightColor10,maxColor:h.highlightColor100,tickLength:5,showInLegend:!0};a.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return a}(a);Array.prototype.push.apply(a.keepProps,q.keepProps);A.ColorAxis=q;["fill","stroke"].forEach(function(a){z.prototype[a+"Setter"]=function(){this.elem.attr(a,u(this.start).tweenTo(u(this.end),
608
- this.pos),null,!0)}});H(n,"afterGetAxes",function(){var a=this,b=a.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=r(b.colorAxis),b.colorAxis.forEach(function(b,e){b.index=e;new q(a,b)}))});H(f,"bindAxes",function(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]});H(y,"afterGetAllItems",function(a){var b=this,c=[],e,d,f=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))};(this.chart.colorAxis||
609
- []).forEach(function(a){(e=a.options)&&e.showInLegend&&(e.dataClasses&&e.visible?c=c.concat(a.getDataClassLegendSymbols()):e.visible&&c.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||e.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){f(a)}):f(a)}))});for(d=c.length;d--;)a.allItems.unshift(c[d])});H(y,"afterColorizeItem",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})});H(y,"afterUpdate",function(){var a=this.chart.colorAxis;
610
- a&&a.forEach(function(a,b,e){a.update({},e)})});H(f,"afterTranslate",function(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()});return q});J(a,"Mixins/ColorMapSeries.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,C){var u=C.defined;C=C.addEvent;var z=a.noop;a=a.seriesTypes;C(n,"afterSetState",function(a){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:a&&"hover"===a.state?1:0})});return{colorMapPointMixin:{dataLabelOnNull:!0,
611
- moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:z,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(a){var n={};!u(a.color)||a.state&&"normal"!==a.state||(n[this.colorProp||"fill"]=a.color);return n}}}});J(a,"Maps/MapNavigationOptionsDefault.js",
612
- [a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n){n=n.extend;var u={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};n(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation=
613
- u});J(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){function u(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function z(a){this.init(a)}var A=n.doc,y=C.addEvent,p=C.extend,h=C.merge,d=C.objectEach,f=C.pick;z.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};z.prototype.update=function(a){var b=this.chart,n=b.options.mapNavigation,t,z,A,w,E=function(a){this.handler.call(b,
614
- a);u(a)},x=b.mapNavButtons;a&&(n=b.options.mapNavigation=h(b.options.mapNavigation,a));for(;x.length;)x.pop().destroy();f(n.enableButtons,n.enabled)&&!b.renderer.forExport&&d(n.buttons,function(a,d){a=h(n.buttonOptions,a);!b.styledMode&&a.theme&&(t=a.theme,t.style=h(a.theme.style,a.style),A=(z=t.states)&&z.hover,w=z&&z.select,delete t.states);var e=b.renderer.button(a.text||"",0,0,E,t,A,w,void 0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",
615
- zoomOut:"zoom-out"}[d]).attr({width:a.width,height:a.height,title:b.options.lang[d],padding:a.padding,zIndex:5}).add();e.handler=a.onclick;y(e.element,"dblclick",u);x.push(e);p(a,{width:e.width,height:2*e.height});if(b.hasLoaded)e.align(a,!1,a.alignTo);else var f=y(b,"load",function(){e.element&&e.align(a,!1,a.alignTo);f()})});this.updateEvents(n)};z.prototype.updateEvents=function(a){var b=this.chart;f(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||
616
- y(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());f(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||y(b.container,void 0!==A.onwheel?"wheel":void 0!==A.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),u(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};
617
- p(a.prototype,{fitToBox:function(a,d){[["x","width"],["y","height"]].forEach(function(b){var f=b[0];b=b[1];a[f]+a[b]>d[f]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[f]=d[f]):a[f]=d[f]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[f]<d[f]&&(a[f]=d[f])});return a},mapZoom:function(a,d,h,p,n,u){var b=this.xAxis[0],k=b.max-b.min,t=f(d,b.min+k/2),r=k*a;k=this.yAxis[0];var q=k.max-k.min,e=f(h,k.min+q/2);q*=a;t=this.fitToBox({x:t-r*(p?(p-b.pos)/b.len:.5),y:e-q*(n?(n-k.pos)/k.len:.5),width:r,height:q},{x:b.dataMin,y:k.dataMin,
618
- width:b.dataMax-b.dataMin,height:k.dataMax-k.dataMin});r=t.x<=b.dataMin&&t.width>=b.dataMax-b.dataMin&&t.y<=k.dataMin&&t.height>=k.dataMax-k.dataMin;p&&b.mapAxis&&(b.mapAxis.fixTo=[p-b.pos,d]);n&&k.mapAxis&&(k.mapAxis.fixTo=[n-k.pos,h]);"undefined"===typeof a||r?(b.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(b.setExtremes(t.x,t.x+t.width,!1),k.setExtremes(t.y,t.y+t.height,!1));this.redraw(u)}});y(a,"beforeRender",function(){this.mapNavigation=new z(this);this.mapNavigation.update()});
619
- n.MapNavigation=z});J(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,n){var u=n.extend,D=n.pick;n=n.wrap;var z=0,A;u(a.prototype,{onContainerDblClick:function(a){var p=this.chart;a=this.normalize(a);p.options.mapNavigation.enableDoubleClickZoomTo?p.pointer.inClass(a.target,"highcharts-tracker")&&p.hoverPoint&&p.hoverPoint.zoomTo():p.isInsidePlot(a.chartX-p.plotLeft,a.chartY-p.plotTop)&&p.mapZoom(.5,p.xAxis[0].toValue(a.chartX),p.yAxis[0].toValue(a.chartY),a.chartX,
620
- a.chartY)},onContainerMouseWheel:function(a){var p=this.chart;a=this.normalize(a);var h=a.deltaY||a.detail||-(a.wheelDelta/120);1<=Math.abs(h)&&(z+=Math.abs(h),A&&clearTimeout(A),A=setTimeout(function(){z=0},50));10>z&&p.isInsidePlot(a.chartX-p.plotLeft,a.chartY-p.plotTop)&&p.mapZoom(Math.pow(p.options.mapNavigation.mouseWheelSensitivity,h),p.xAxis[0].toValue(a.chartX),p.yAxis[0].toValue(a.chartY),a.chartX,a.chartY,1>Math.abs(h)?!1:void 0)}});n(a.prototype,"zoomOption",function(a){var p=this.chart.options.mapNavigation;
621
- D(p.enableTouchZoom,p.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});n(a.prototype,"pinchTranslate",function(a,p,h,d,f,b,k){a.call(this,p,h,d,f,b,k);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=d.scaleX>d.scaleY,this.pinchTranslateDirection(!a,p,h,d,f,b,k,a?d.scaleX:d.scaleY))})});J(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function n(a,n,u,A,y,p,h,d){return[["M",a+y,n],["L",a+u-p,n],["C",a+u-p/2,n,a+u,n+p/
622
- 2,a+u,n+p],["L",a+u,n+A-h],["C",a+u,n+A-h/2,a+u-h/2,n+A,a+u-h,n+A],["L",a+d,n+A],["C",a+d/2,n+A,a,n+A-d/2,a,n+A-d],["L",a,n+y],["C",a,n+y/2,a+y/2,n,a+y,n],["Z"]]}a=a.prototype.symbols;a.bottombutton=function(a,u,z,A,y){y=y&&y.r||0;return n(a-1,u-1,z,A,0,0,y,y)};a.topbutton=function(a,u,z,A,y){y=y&&y.r||0;return n(a-1,u-1,z,A,y,y,0,0)};return a});J(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,
623
- n,C,D){var u=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),A=n.getOptions,y=D.merge,p=D.pick;a=function(a){function d(){return null!==a&&a.apply(this,arguments)||this}u(d,a);d.prototype.init=function(d,
624
- b){var f={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h=A().credits;d=y({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:p(h.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:p(h.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:f,yAxis:y(f,{reversed:!0})},d,{chart:{inverted:!1,alignTicks:!1}});a.prototype.init.call(this,d,b)};return d}(a);(function(a){a.maps={};a.mapChart=function(d,f,b){return new a(d,
625
- f,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 C.prototype.pathToSegments(a)}})(a||(a={}));return a});J(a,"Series/Map/MapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(n,p){a=Object.setPrototypeOf||{__proto__:[]}instanceof
626
- Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(n,p)};return function(n,p){function h(){this.constructor=n}a(n,p);n.prototype=null===p?Object.create(p):(h.prototype=p.prototype,new h)}}();a=a.colorMapPointMixin;var z=C.extend;n=function(a){function n(){var p=null!==a&&a.apply(this,arguments)||this;p.options=void 0;p.path=void 0;p.series=void 0;return p}u(n,a);n.prototype.applyOptions=function(p,h){var d=this.series;p=a.prototype.applyOptions.call(this,
627
- p,h);h=d.joinBy;d.mapData&&d.mapMap&&(h=a.prototype.getNestedProperty.call(p,h[1]),(h="undefined"!==typeof h&&d.mapMap[h])?(d.xyFromShape&&(p.x=h._midX,p.y=h._midY),z(p,h)):p.value=p.value||null);return p};n.prototype.onMouseOver=function(p){C.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,p);else this.series.onMouseOut(p)};n.prototype.zoomTo=function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,
628
- this._maxY,!1);a.chart.redraw()};return n}(n.seriesTypes.scatter.prototype.pointClass);z(n.prototype,{dataLabelOnNull:a.dataLabelOnNull,isValid:a.isValid,moveToTopOnHover:a.moveToTopOnHover});return n});J(a,"Series/Map/MapSeries.js",[a["Mixins/ColorMapSeries.js"],a["Core/Globals.js"],a["Mixins/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"]],
629
- function(a,n,C,D,z,A,y,p,h,d){var f=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,new e)}}();a=a.colorMapSeriesMixin;var b=n.noop,k=D.maps,u=D.splitPath;D=p.seriesTypes;var t=D.column,H=D.scatter;D=d.extend;
630
- var K=d.fireEvent,w=d.getNestedProperty,E=d.isArray,x=d.isNumber,r=d.merge,q=d.objectEach,e=d.pick,m=d.splat;d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.baseTrans=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}f(b,a);b.prototype.animate=function(a){var b=this.options.animation,c=this.group,e=this.xAxis,d=this.yAxis,f=e.pos,g=d.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),
631
- a?c.attr({translateX:f+e.len/2,translateY:g+d.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,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],e=c.bBox,d=this.chart.options.drilldown.animation;a||(a=Math.min(e.width/b.width,e.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:e.x,translateY:e.y},this.points.forEach(function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,
632
- scaleY:1,translateX:0,translateY:0},d)}))};b.prototype.animateDrillupFrom=function(a){t.prototype.animateDrillupFrom.call(this,a)};b.prototype.animateDrillupTo=function(a){t.prototype.animateDrillupTo.call(this,a)};b.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans};b.prototype.drawMapDataLabels=function(){y.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=
633
- function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,f=a.chart,g=f.renderer,h=this.baseTrans;a.transformGroup||(a.transformGroup=g.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);if(a.doFullTranslate())f.hasRendered&&!f.styledMode&&a.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,t.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,
634
- "-").toLowerCase());b.properties&&b.properties["hc-key"]&&(c+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());c&&b.graphic.addClass(c);f.styledMode&&b.graphic.css(a.pointAttribs(b,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 k=b.transA/h.transAX;var m=c.transA/
635
- h.transAY;var q=b.toPixels(h.originX,!0);var r=c.toPixels(h.originY,!0);.99<k&&1.01>k&&.99<m&&1.01>m&&(m=k=1,q=Math.round(q),r=Math.round(r));var p=this.transformGroup;if(f.renderer.globalAnimation){var n=p.attr("translateX");var x=p.attr("translateY");var u=p.attr("scaleX");var w=p.attr("scaleY");p.attr({animator:0}).animate({animator:1},{step:function(a,b){p.attr({translateX:n+(q-n)*b.pos,translateY:x+(r-x)*b.pos,scaleX:u+(k-u)*b.pos,scaleY:w+(m-w)*b.pos})}})}else p.attr({translateX:q,translateY:r,
636
- scaleX:k,scaleY:m})}f.styledMode||d.element.setAttribute("stroke-width",e(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(k||1));this.drawMapDataLabels()};b.prototype.getBox=function(a){var b=Number.MAX_VALUE,c=-b,d=b,f=-b,g=b,k=b,l=this.xAxis,m=this.yAxis,q;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=u(a.path):"M"===a.path[0]&&(a.path=h.prototype.pathToSegments(a.path));var l=a.path||[],m=-b,r=b,p=-b,n=b,t=a.properties;a._foundBox||
637
- (l.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(r=Math.min(r,b),m=Math.max(m,b),n=Math.min(n,a),p=Math.max(p,a))}),a._midX=r+(m-r)*e(a.middleX,t&&t["hc-middle-x"],.5),a._midY=n+(p-n)*e(a.middleY,t&&t["hc-middle-y"],.5),a._maxX=m,a._minX=r,a._maxY=p,a._minY=n,a.labelrank=e(a.labelrank,(m-r)*(p-n)),a._foundBox=!0);c=Math.max(c,a._maxX);d=Math.min(d,a._minX);f=Math.max(f,a._maxY);g=Math.min(g,a._minY);k=Math.min(a._maxX-a._minX,a._maxY-a._minY,k);
638
- q=!0}});q&&(this.minY=Math.min(g,e(this.minY,b)),this.maxY=Math.max(f,e(this.maxY,-b)),this.minX=Math.min(d,e(this.minX,b)),this.maxX=Math.max(c,e(this.maxX,-b)),l&&"undefined"===typeof l.options.minRange&&(l.minRange=Math.min(5*k,(this.maxX-this.minX)/5,l.minRange||b)),m&&"undefined"===typeof m.options.minRange&&(m.minRange=Math.min(5*k,(this.maxY-this.minY)/5,m.minRange||b)))};b.prototype.getExtremes=function(){var a=y.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&&
639
- 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};b.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode?this.colorAttribs(a):t.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=e(a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};b.prototype.render=function(){var a=
640
- this,b=y.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,e){var d=this.options,f=this.chart.options.chart,g=f&&f.map,h=d.mapData,l=this.joinBy,m=d.keys||this.pointArrayMap,p=[],t={},v=this.chart.mapTransforms;!h&&g&&(h="string"===typeof g?k[g]:g);a&&a.forEach(function(b,c){var e=0;if(x(b))a[c]={value:b};else if(E(b)){a[c]={};!d.keys&&b.length>m.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++e);for(var f=
641
- 0;f<m.length;++f,++e)m[f]&&"undefined"!==typeof b[e]&&(0<m[f].indexOf(".")?z.prototype.setNestedProperty(a[c],b[e],m[f]):a[c][m[f]]=b[e])}l&&"_i"===l[0]&&(a[c]._i=c)});this.getBox(a);(this.chart.mapTransforms=v=f.mapTransforms||h&&h["hc-transform"]||v)&&q(v,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(h){"FeatureCollection"===h.type&&(this.mapTitle=h.title,h=n.geojson(h,this.type,this));this.mapData=h;this.mapMap={};for(v=0;v<h.length;v++)f=h[v],g=
642
- f.properties,f._i=v,l[0]&&g&&g[l[0]]&&(f[l[0]]=g[l[0]]),t[f[l[0]]]=f;this.mapMap=t;if(a&&l[1]){var u=l[1];a.forEach(function(a){a=w(u,a);t[a]&&p.push(t[a])})}if(d.allAreas){this.getBox(h);a=a||[];if(l[1]){var B=l[1];a.forEach(function(a){p.push(w(B,a))})}p="|"+p.map(function(a){return a&&a[l[0]]}).join("|")+"|";h.forEach(function(b){l[0]&&-1!==p.indexOf("|"+b[l[0]]+"|")||(a.push(r(b,{value:null})),e=!1)})}else this.getBox(p)}y.prototype.setData.call(this,a,b,c,e)};b.prototype.setOptions=function(a){a=
643
- y.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=m(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this,b=a.xAxis,c=a.yAxis,e=a.doFullTranslate();a.generatePoints();a.data.forEach(function(d){x(d._midX)&&x(d._midY)&&(d.plotX=b.toPixels(d._midX,!0),d.plotY=c.toPixels(d._midY,!0));e&&(d.shapeType="path",d.shapeArgs={d:a.translatePath(d.path)})});K(a,"afterTranslate")};b.prototype.translatePath=function(a){var b=this.xAxis,c=this.yAxis,e=b.min,
644
- d=b.transA,f=b.minPixelPadding,g=c.min,h=c.transA,k=c.minPixelPadding,l=[];a&&a.forEach(function(a){"M"===a[0]?l.push(["M",(a[1]-(e||0))*d+f,(a[2]-(g||0))*h+k]):"L"===a[0]?l.push(["L",(a[1]-(e||0))*d+f,(a[2]-(g||0))*h+k]):"C"===a[0]?l.push(["C",(a[1]-(e||0))*d+f,(a[2]-(g||0))*h+k,(a[3]-(e||0))*d+f,(a[4]-(g||0))*h+k,(a[5]-(e||0))*d+f,(a[6]-(g||0))*h+k]):"Q"===a[0]?l.push(["Q",(a[1]-(e||0))*d+f,(a[2]-(g||0))*h+k,(a[3]-(e||0))*d+f,(a[4]-(g||0))*h+k]):"Z"===a[0]&&l.push(["Z"])});return l};b.defaultOptions=
645
- r(H.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){return this.point.value},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:A.neutralColor3,stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:A.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:A.neutralColor20},inactive:{opacity:1}}});return b}(H);
646
- D(d.prototype,{type:"map",axisTypes:a.axisTypes,colorAttribs:a.colorAttribs,colorKey:a.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:C.drawRectangle,forceDL:!0,getExtremesFromAll:!0,getSymbol:a.getSymbol,parallelArrays:a.parallelArrays,pointArrayMap:a.pointArrayMap,pointClass:z,preserveAspectRatio:!0,searchPoint:b,trackerGroups:a.trackerGroups,useMapGeometry:!0});p.registerSeriesType("map",d);"";return d});J(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"],
647
- a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(h,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(h,d)};return function(h,d){function f(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=n.series,A=C.extend,y=C.merge;C=function(p){function h(){var a=null!==
648
- p&&p.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}u(h,p);h.prototype.pointAttribs=function(d,f){d=a.prototype.pointAttribs.call(this,d,f);d.fill=this.options.fillColor;return d};h.defaultOptions=y(a.defaultOptions,{lineWidth:1,fillColor:"none"});return h}(a);A(C.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});n.registerSeriesType("mapline",C);"";return C});
649
- J(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var a=function(n,u){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(n,u)};return function(n,u){function p(){this.constructor=n}a(n,u);n.prototype=null===u?Object.create(u):(p.prototype=u.prototype,new p)}}(),D=n.merge;return function(a){function n(){var n=
650
- null!==a&&a.apply(this,arguments)||this;n.options=void 0;n.series=void 0;return n}u(n,a);n.prototype.applyOptions=function(n,p){n="undefined"!==typeof n.lat&&"undefined"!==typeof n.lon?D(n,this.series.chart.fromLatLonToPoint(n)):n;return a.prototype.applyOptions.call(this,n,p)};return n}(a.seriesTypes.scatter.prototype.pointClass)});J(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,
651
- n,C,D){var u=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),A=C.seriesTypes.scatter,y=D.extend,p=D.merge;D=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=
652
- void 0;d.points=void 0;return d}u(d,a);d.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};d.defaultOptions=p(A.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:n.neutralColor100}}});return d}(A);y(D.prototype,{type:"mappoint",forceDL:!0,pointClass:a});C.registerSeriesType("mappoint",D);"";return D});J(a,"Series/Bubble/BubblePoint.js",
653
- [a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(n,u){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(n,u)};return function(n,u){function p(){this.constructor=n}a(n,u);n.prototype=null===u?Object.create(u):(p.prototype=u.prototype,new p)}}();C=C.extend;n=function(n){function z(){var a=
654
- null!==n&&n.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}u(z,n);z.prototype.haloPath=function(n){return a.prototype.haloPath.call(this,0===n?0:(this.marker?this.marker.radius||0:0)+n)};return z}(n.seriesTypes.scatter.prototype.pointClass);C(n.prototype,{ttBelow:!1});return n});J(a,"Series/Bubble/BubbleLegend.js",[a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],
655
- a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h){var d=n.parse,f=D.noop;A=A.setOptions;n=h.addEvent;var b=h.arrayMax,k=h.arrayMin,u=h.isNumber,t=h.merge,H=h.objectEach,K=h.pick,w=h.stableSort;h=h.wrap;"";A({legend:{bubbleLegend:{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",
656
- style:{fontSize:"10px",color:y.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}}});y=function(){function a(a,b){this.options=this.symbols=this.visible=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=f;this.init(a,
657
- b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(a){var b=this.chart,d=this.options,e=K(a.options.itemDistance,20),f=d.ranges;var c=d.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(d.labels.style.fontSize);f&&f.length&&u(f[0].value)?(w(f,function(a,b){return b.value-a.value}),this.ranges=f,this.setOptions(),this.render(),
658
- b=this.getMaxLabelSize(),f=this.ranges[0].radius,a=2*f,c=c-f+b.width,c=0<c?c:0,this.maxLabel=b,this.movementX="left"===d.labels.align?c:0,this.legendItemWidth=a+c+e,this.legendItemHeight=a+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,b=this.options,f=this.chart.series[b.seriesIndex],e=this.legend.baseline,h={zIndex:b.zIndex,"stroke-width":b.borderWidth},c={zIndex:b.zIndex,"stroke-width":b.connectorWidth},g={align:this.legend.options.rtl||
659
- "left"===b.labels.align?"right":"left",zIndex:b.zIndex},k=f.options.marker.fillOpacity,n=this.chart.styledMode;a.forEach(function(l,m){n||(h.stroke=K(l.borderColor,b.borderColor,f.color),h.fill=K(l.color,b.color,1!==k?d(f.color).setOpacity(k).get("rgba"):f.color),c.stroke=K(l.connectorColor,b.connectorColor,f.color));a[m].radius=this.getRangeRadius(l.value);a[m]=t(a[m],{center:a[0].radius-a[m].radius+e});n||t(!0,a[m],{bubbleAttribs:t(h),connectorAttribs:t(c),labelAttribs:g})},this)};a.prototype.getRangeRadius=
660
- function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};a.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;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>=
661
- b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var b=this.options,d=b.labels,e=this.chart,f=e.series[b.seriesIndex],c=e.renderer,g=this.symbols;e=g.labels;var h=a.center,k=Math.abs(a.radius),n=b.connectorDistance||0,p=d.align;n=this.legend.options.rtl||"left"===p?-n:n;var t=b.connectorWidth,x=this.ranges[0].radius||0,u=h-k-b.borderWidth/2+t/2,w=this.fontMetrics;w=w.f/2-(w.h-
662
- w.f)/2;var B=c.styledMode;"center"===p&&(n=0,b.connectorDistance=0,a.labelAttribs.align="center");p=u+b.labels.y;var y=x+n+b.labels.x;g.bubbleItems.push(c.circle(x,h+((u%1?1:.5)-(t%2?0:.5)),k).attr(B?{}:a.bubbleAttribs).addClass((B?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));g.connectors.push(c.path(c.crispLine([["M",x,u],["L",x+n,u]],b.connectorWidth)).attr(B?{}:a.connectorAttribs).addClass((B?"highcharts-color-"+this.options.seriesIndex+
663
- " ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=c.text(this.formatLabel(a),y,p+w).attr(B?{}:a.labelAttribs).css(B?{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:y,y:p+w}};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=
664
- this.options,d=b.labels.formatter;b=b.labels.format;var e=this.chart.numberFormatter;return b?C.format(b,a):d?d.call(a):e(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,e){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[e].show():b.connectors[e].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,d=a.options.ranges,f,e=Number.MAX_VALUE,
665
- h=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(f=a.zData.filter(u),f.length&&(e=K(a.options.zMin,Math.min(e,Math.max(k(f),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),h=K(a.options.zMax,Math.max(h,b(f)))))});var c=e===h?[{value:h}]:[{value:e},{value:(e+h)/2},{value:h,autoRanges:!0}];d.length&&d[0].radius&&c.reverse();c.forEach(function(a,b){d&&d[b]&&(c[b]=t(d[b],a))});return c};a.prototype.predictBubbleSizes=function(){var a=this.chart,
666
- b=this.fontMetrics,d=a.legend.options,e="horizontal"===d.layout,f=e?a.legend.lastLineHeight:0,c=a.plotSizeX,g=a.plotSizeY,h=a.series[this.options.seriesIndex];a=Math.ceil(h.minPxSize);var k=Math.ceil(h.maxPxSize);h=h.options.maxSize;var n=Math.min(g,c);if(d.floating||!/%$/.test(h))b=k;else if(h=parseFloat(h),b=(n+f-b.h/2)*h/100/(h/100+1),e&&g-b>=c||!e&&c-b>=g)b=k;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=
667
- 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)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}();n(z,"afterGetAllItems",function(a){var b=this.bubbleLegend,d=this.options,f=d.bubbleLegend,e=this.chart.getVisibleBubbleSeriesIndex();b&&b.ranges&&b.ranges.length&&(f.ranges.length&&(f.autoRanges=!!f.ranges[0].autoRanges),this.destroyItem(b));0<=e&&
668
- d.enabled&&f.enabled&&(f.seriesIndex=e,this.bubbleLegend=new D.BubbleLegend(f,this),this.bubbleLegend.addToLegend(a.allItems))});a.prototype.getVisibleBubbleSeriesIndex=function(){for(var a=this.series,b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1};z.prototype.getLinesHeights=function(){var a=this.allItems,b=[],d=a.length,f,e=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]!==
669
- a[f+1]._legendItemPos[1]){b.push({height:0});var h=b[b.length-1];for(e;e<=f;e++)a[e].itemHeight>h.height&&(h.height=a[e].itemHeight);h.step=f}return b};z.prototype.retranslateItems=function(a){var b,d,f,e=this.options.rtl,h=0;this.allItems.forEach(function(c,g){b=c.legendGroup.translateX;d=c._legendItemPos[1];if((f=c.movementX)||e&&c.ranges)f=e?b-c.options.maxSize/2:b+f,c.legendGroup.attr({translateX:f});g>a[h].step&&h++;c.legendGroup.attr({translateY:Math.round(d+a[h].height/2)});c._legendItemPos[1]=
670
- d+a[h].height/2})};n(p,"legendItemClick",function(){var a=this.chart,b=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=a.getVisibleBubbleSeriesIndex(),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),d.bubbleLegend.visible=a),this.visible=b)});h(a.prototype,"drawChartBox",function(a,b,d){var f=this.legend,e=0<=this.getVisibleBubbleSeriesIndex();if(f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&e){var h=f.bubbleLegend.options;
671
- e=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(e[0],e[1]);h.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();h.placed||(a.setScale(),a.updateNames(),H(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});h.placed=!0;this.getMargins();a.call(this,b,d);f.bubbleLegend.correctSizes();f.retranslateItems(f.getLinesHeights())}else a.call(this,b,d),f&&f.options.enabled&&
672
- f.bubbleLegend&&(f.render(),f.retranslateItems(f.getLinesHeights()))});D.BubbleLegend=y;return D.BubbleLegend});J(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y){var p=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
673
- b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),h=C.parse;C=D.noop;var d=A.seriesTypes;D=d.column;var f=d.scatter,b=y.arrayMax,k=y.arrayMin,u=y.clamp,t=y.extend,H=y.isNumber,K=y.merge,w=y.pick,E=y.pInt;y=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options=
674
- void 0;b.points=void 0;b.radii=void 0;b.yData=void 0;b.zData=void 0;return b}p(b,a);b.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};b.prototype.getRadii=function(a,b,d){var c=this.zData,e=this.yData,f=d.minPxSize,h=d.maxPxSize,k=[];var m=0;for(d=c.length;m<d;m++){var n=c[m];
675
- k.push(this.getRadius(a,b,f,h,n,e[m]))}this.radii=k};b.prototype.getRadius=function(a,b,d,c,f,h){var e=this.options,g="width"!==e.sizeBy,k=e.zThreshold,l=b-a,m=.5;if(null===h||null===f)return null;if(H(f)){e.sizeByAbsoluteValue&&(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&&(m=(f-a)/l)}g&&0<=m&&(m=Math.sqrt(m));return Math.ceil(d+m*(c-d))/2};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){var e=this.options.marker.fillOpacity;
676
- a=z.prototype.pointAttribs.call(this,a,b);1!==e&&(a.fill=h(a.fill).setOpacity(e).get("rgba"));return a};b.prototype.translate=function(){var b,e=this.data,d=this.radii;a.prototype.translate.call(this);for(b=e.length;b--;){var c=e[b];var f=d?d[b]:0;H(f)&&f>=this.minPxSize/2?(c.marker=t(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}};b.defaultOptions=K(f.defaultOptions,{dataLabels:{formatter:function(){return this.point.z},
677
- inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return b}(f);t(y.prototype,{alignDataLabel:D.prototype.alignDataLabel,applyZones:C,bubblePadding:!0,buildKDTree:C,directTouch:!0,isBubble:!0,pointArrayMap:["y",
678
- "z"],pointClass:n,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});a.prototype.beforePadding=function(){var a=this,d=this.len,f=this.chart,e=0,h=d,c=this.isXAxis,g=c?"xData":"yData",l=this.min,n={},p=Math.min(f.plotWidth,f.plotHeight),t=Number.MAX_VALUE,B=-Number.MAX_VALUE,y=this.max-l,z=d/y,A=[];this.series.forEach(function(e){var d=e.options;!e.bubblePadding||!e.visible&&f.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,A.push(e),
679
- c&&(["minSize","maxSize"].forEach(function(a){var b=d[a],c=/%$/.test(b);b=E(b);n[a]=c?p*b/100:b}),e.minPxSize=n.minSize,e.maxPxSize=Math.max(n.maxSize,n.minSize),e=e.zData.filter(H),e.length&&(t=w(d.zMin,u(k(e),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE,t)),B=w(d.zMax,Math.max(B,b(e))))))});A.forEach(function(b){var d=b[g],f=d.length;c&&b.getRadii(t,B,b);if(0<y)for(;f--;)if(H(d[f])&&a.dataMin<=d[f]&&d[f]<=a.max){var k=b.radii?b.radii[f]:0;e=Math.min((d[f]-l)*z-k,e);h=Math.max((d[f]-l)*
680
- z+k,h)}});A.length&&0<y&&!this.logarithmic&&(h-=d,z*=(d+Math.max(0,e)-Math.min(h,d))/d,[["min","userMin",e],["max","userMax",h]].forEach(function(b){"undefined"===typeof w(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/z)}))};A.registerSeriesType("bubble",y);"";"";return y});J(a,"Series/MapBubble/MapBubblePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var a=function(n,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
681
- function(a,f){a.__proto__=f}||function(a,f){for(var b in f)f.hasOwnProperty(b)&&(a[b]=f[b])};return a(n,h)};return function(n,h){function d(){this.constructor=n}a(n,h);n.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),D=a.seriesTypes,z=D.map;a=n.extend;var A=n.merge;n=function(a){function n(){return null!==a&&a.apply(this,arguments)||this}u(n,a);n.prototype.applyOptions=function(h,d){return h&&"undefined"!==typeof h.lat&&"undefined"!==typeof h.lon?a.prototype.applyOptions.call(this,
682
- A(h,this.series.chart.fromLatLonToPoint(h)),d):z.prototype.pointClass.prototype.applyOptions.call(this,h,d)};n.prototype.isValid=function(){return"number"===typeof this.z};return n}(D.bubble.prototype.pointClass);a(n.prototype,{ttBelow:!1});return n});J(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,n,C,D,z){var u=this&&this.__extends||
683
- function(){var a=function(d,f){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(d,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),y=z.extend,p=z.merge;z=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}u(d,h);d.defaultOptions=
684
- p(a.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return d}(a);y(z.prototype,{type:"mapbubble",getBox:C.prototype.getBox,pointArrayMap:["z"],pointClass:n,setData:C.prototype.setData,setOptions:C.prototype.setOptions,xyFromShape:!0});D.registerSeriesType("mapbubble",z);"";return z});J(a,"Series/Heatmap/HeatmapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=
685
- function(h,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(h,d)};return function(h,d){function f(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}();a=a.colorMapPointMixin;var z=C.clamp,A=C.extend,y=C.pick;n=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;d.series=void 0;d.value=void 0;d.x=void 0;
686
- d.y=void 0;return d}u(h,a);h.prototype.applyOptions=function(d,f){d=a.prototype.applyOptions.call(this,d,f);d.formatPrefix=d.isNull||null===d.value?"null":"point";return d};h.prototype.getCellAttributes=function(){var a=this.series,f=a.options,b=(f.colsize||1)/2,h=(f.rowsize||1)/2,n=a.xAxis,p=a.yAxis,u=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var A=y(this.pointPadding,f.pointPadding,0),w={x1:z(Math.round(n.len-(n.translate(this.x-b,!1,!0,!1,!0,-a)||0)),-n.len,2*n.len),x2:z(Math.round(n.len-
687
- (n.translate(this.x+b,!1,!0,!1,!0,-a)||0)),-n.len,2*n.len),y1:z(Math.round(p.translate(this.y-h,!1,!0,!1,!0)||0),-p.len,2*p.len),y2:z(Math.round(p.translate(this.y+h,!1,!0,!1,!0)||0),-p.len,2*p.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",f=a+"2",e=Math.abs(w[d]-w[f]),h=u&&u.lineWidth||0,c=Math.abs(w[d]+w[f])/2;u[b]&&u[b]<e&&(w[d]=c-u[b]/2-h/2,w[f]=c+u[b]/2+h/2);A&&("y"===a&&(d=f,f=a+"1"),w[d]+=A,w[f]-=A)});return w};h.prototype.haloPath=function(a){if(!a)return[];
688
- 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"]};h.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return h}(n.seriesTypes.scatter.prototype.pointClass);A(n.prototype,{dataLabelOnNull:a.dataLabelOnNull,moveToTopOnHover:a.moveToTopOnHover});return n});J(a,"Series/Heatmap/HeatmapSeries.js",[a["Core/Color/Color.js"],a["Mixins/ColorMapSeries.js"],a["Series/Heatmap/HeatmapPoint.js"],a["Mixins/LegendSymbol.js"],
689
- a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p){var h=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}();
690
- n=n.colorMapSeriesMixin;var d=A.series,f=A.seriesTypes,b=f.column,k=f.scatter,u=y.prototype.symbols,t=p.extend,H=p.fireEvent,K=p.isNumber,w=p.merge,E=p.pick;y=function(b){function f(){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}h(f,b);f.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)d.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&
691
- (b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};f.prototype.getExtremes=function(){var a=d.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;K(b)&&(this.valueMin=b);K(a)&&(this.valueMax=a);return d.prototype.getExtremes.call(this)};f.prototype.getValidPoints=function(a,b){return d.prototype.getValidPoints.call(this,a,b,!0)};f.prototype.hasData=
692
- function(){return!!this.processedXData.length};f.prototype.init=function(){d.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=E(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;u.ellipse=u.circle};f.prototype.markerAttribs=function(a,b){var d=a.marker||{},c=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var h=c.states[b]||{};var k=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=
693
- (k[a[0]]||h[a[0]]||e[a[0]])+(k[a[0]+"Plus"]||h[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};f.prototype.pointAttribs=function(b,e){var f=d.prototype.pointAttribs.call(this,b,e),c=this.options||{},g=this.chart.options.plotOptions||{},h=g.series||{},k=g.heatmap||{};g=c.borderColor||k.borderColor||h.borderColor;h=c.borderWidth||k.borderWidth||h.borderWidth||f["stroke-width"];f.stroke=b&&b.marker&&b.marker.lineColor||c.marker&&c.marker.lineColor||g||this.color;f["stroke-width"]=
694
- h;e&&(b=w(c.states[e],c.marker&&c.marker.states[e],b&&b.options.states&&b.options.states[e]||{}),e=b.brightness,f.fill=b.color||a.parse(f.fill).brighten(e||0).get(),f.stroke=b.lineColor);return f};f.prototype.setClip=function(a){var b=this.chart;d.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};f.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||
695
- "rect",d=u[b]?b:"rect",c=-1!==["circle","square"].indexOf(d);this.generatePoints();this.points.forEach(function(a){var e=a.getCellAttributes(),f={};f.x=Math.min(e.x1,e.x2);f.y=Math.min(e.y1,e.y2);f.width=Math.max(Math.abs(e.x2-e.x1),0);f.height=Math.max(Math.abs(e.y2-e.y1),0);var g=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(c){var h=Math.abs(f.width-f.height);f.x=Math.min(e.x1,e.x2)+(f.width<f.height?0:h/2);f.y=Math.min(e.y1,e.y2)+(f.width<f.height?h/2:0);f.width=f.height=
696
- Math.min(f.width,f.height)}h={plotX:(e.x1+e.x2)/2,plotY:(e.y1+e.y2)/2,clientX:(e.x1+e.x2)/2,shapeType:"path",shapeArgs:w(!0,f,{d:u[d](f.x,f.y,f.width,f.height)})};g&&(a.marker={width:f.width,height:f.height});t(a,h)});H(this,"afterTranslate")};f.defaultOptions=w(k.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:z.neutralColor3,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,
697
- lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return f}(k);t(y.prototype,{alignDataLabel:b.prototype.alignDataLabel,axisTypes:n.axisTypes,colorAttribs:n.colorAttribs,colorKey:n.colorKey,directTouch:!0,drawLegendSymbol:D.drawRectangle,getExtremesFromAll:!0,getSymbol:d.prototype.getSymbol,parallelArrays:n.parallelArrays,pointArrayMap:["y","value"],pointClass:C,
698
- trackerGroups:n.trackerGroups});A.registerSeriesType("heatmap",y);"";"";return y});J(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C,D){function u(a,b){var d,f=!1,h=a.x,n=a.y;a=0;for(d=b.length-1;a<b.length;d=a++){var p=b[a][1]>n;var u=b[d][1]>n;p!==u&&h<(b[d][0]-b[a][0])*(n-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(f=!f)}return f}var A=n.format,y=C.win,p=D.error,h=D.extend,d=D.merge;n=D.wrap;"";a.prototype.transformFromLatLon=
699
- function(a,b){var d=this.userOptions.chart&&this.userOptions.chart.proj4||y.proj4;if(!d)return p(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 f=b.sinAngle||b.rotation&&Math.sin(b.rotation);a=b.rotation?[a[0]*d+a[1]*f,-a[0]*f+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,
700
- b){if("undefined"===typeof y.proj4)p(21,!1,this);else{a={x:((a.x-(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),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=y.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-f,y:a.x*f+a.y*d}:a);return{lat:b.y,lon:b.x}}};a.prototype.fromPointToLatLon=function(a){var b=this.mapTransforms,d;if(b){for(d in b)if(Object.hasOwnProperty.call(b,
701
- d)&&b[d].hitZone&&u({x:a.x,y:-a.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(a,b[d]);return this.transformToLatLon(a,b["default"])}p(22,!1,this)};a.prototype.fromLatLonToPoint=function(a){var b=this.mapTransforms,d;if(!b)return p(22,!1,this),{x:0,y:null};for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone){var f=this.transformFromLatLon(a,b[d]);if(u({x:f.x,y:-f.y},b[d].hitZone.coordinates[0]))return f}return this.transformFromLatLon(a,b["default"])};C.geojson=function(a,b,
702
- d){var f=[],k=[],n=function(a){a.forEach(function(a,b){0===b?k.push(["M",a[0],-a[1]]):k.push(["L",a[0],-a[1]])})};b=b||"map";a.features.forEach(function(a){var d=a.geometry,p=d.type;d=d.coordinates;a=a.properties;var t;k=[];"map"===b||"mapbubble"===b?("Polygon"===p?(d.forEach(n),k.push(["Z"])):"MultiPolygon"===p&&(d.forEach(function(a){a.forEach(n)}),k.push(["Z"])),k.length&&(t={path:k})):"mapline"===b?("LineString"===p?n(d):"MultiLineString"===p&&d.forEach(n),k.length&&(t={path:k})):"mappoint"===
703
- b&&"Point"===p&&(t={x:d[0],y:-d[1]});t&&f.push(h(t,{name:a.name||a.NAME,properties:a}))});d&&a.copyrightShort&&(d.chart.mapCredits=A(d.chart.options.credits.mapText,{geojson:a}),d.chart.mapCreditsFull=A(d.chart.options.credits.mapTextFull,{geojson:a}));return f};n(a.prototype,"addCredits",function(a,b){b=d(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});J(a,"masters/modules/map.src.js",[a["Core/Globals.js"],
704
- a["Core/Chart/MapChart.js"]],function(a,n){a.MapChart=n;a.mapChart=a.Map=n.mapChart;a.maps=n.maps});J(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"]});
45
+ itemHoverStyle:{color:D.neutralColor100},itemHiddenStyle:{color:D.neutralColor20},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:D.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
46
+ second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:v?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:C(D.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:D.neutralColor80,cursor:"default",fontSize:"12px",
47
+ whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:D.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};f.chart.styledMode=!1;"";var e=new A(k(f.global,f.time));return{defaultOptions:f,defaultTime:e,getOptions:function(){return f},setOptions:function(c){k(!0,f,c);if(c.time||c.global)a.time?a.time.update(k(f.global,f.time,c.global,c.time)):a.time=e;return f}}});K(a,"Core/Animation/Fx.js",
48
+ [a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q,C){var v=a.parse,A=q.win,B=C.isNumber,w=C.objectEach;return function(){function a(a,f,e){this.pos=NaN;this.options=f;this.elem=a;this.prop=e}a.prototype.dSetter=function(){var a=this.paths,f=a&&a[0];a=a&&a[1];var e=this.now||0,c=[];if(1!==e&&f&&a)if(f.length===a.length&&1>e)for(var h=0;h<a.length;h++){for(var t=f[h],z=a[h],G=[],H=0;H<z.length;H++){var u=t[H],F=z[H];B(u)&&B(F)&&("A"!==z[0]||4!==H&&5!==H)?G[H]=u+e*(F-
49
+ u):G[H]=F}c.push(G)}else c=a;else c=this.toD||[];this.elem.attr("d",c,void 0,!0)};a.prototype.update=function(){var a=this.elem,f=this.prop,e=this.now,c=this.options.step;if(this[f+"Setter"])this[f+"Setter"]();else a.attr?a.element&&a.attr(f,e,null,!0):a.style[f]=e+this.unit;c&&c.call(a,e,this)};a.prototype.run=function(k,f,e){var c=this,h=c.options,t=function(e){return t.stopped?!1:c.step(e)},z=A.requestAnimationFrame||function(c){setTimeout(c,13)},G=function(){for(var c=0;c<a.timers.length;c++)a.timers[c]()||
50
+ a.timers.splice(c--,1);a.timers.length&&z(G)};k!==f||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=k,this.end=f,this.unit=e,this.now=this.start,this.pos=0,t.elem=this.elem,t.prop=this.prop,t()&&1===a.timers.push(t)&&z(G)):(delete h.curAnim[this.prop],h.complete&&0===Object.keys(h.curAnim).length&&h.complete.call(this.elem))};a.prototype.step=function(a){var f=+new Date,e=this.options,c=this.elem,h=e.complete,t=e.duration,k=e.curAnim;if(c.attr&&!c.element)a=!1;else if(a||
51
+ f>=t+this.startTime){this.now=this.end;this.pos=1;this.update();var G=k[this.prop]=!0;w(k,function(c){!0!==c&&(G=!1)});G&&h&&h.call(c);a=!1}else this.pos=e.easing((f-this.startTime)/t),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,f,e){function c(c,p){for(;c.length<y;){var d=c[0],l=p[y-c.length];l&&"M"===d[0]&&(c[0]="C"===l[0]?["C",d[1],d[2],d[1],d[2],d[1],d[2]]:["L",d[1],d[2]]);c.unshift(d);G&&(d=c.pop(),c.push(c[c.length-1],d))}}
52
+ function h(c,p){for(;c.length<y;)if(p=c[Math.floor(c.length/H)-1].slice(),"C"===p[0]&&(p[1]=p[5],p[2]=p[6]),G){var d=c[Math.floor(c.length/H)].slice();c.splice(c.length/2,0,p,d)}else c.push(p)}var t=a.startX,k=a.endX;e=e.slice();var G=a.isArea,H=G?2:1;f=f&&f.slice();if(!f)return[e,e];if(t&&k&&k.length){for(a=0;a<t.length;a++)if(t[a]===k[0]){var u=a;break}else if(t[0]===k[k.length-t.length+a]){u=a;var F=!0;break}else if(t[t.length-1]===k[k.length-t.length+a]){u=t.length-a;break}"undefined"===typeof u&&
53
+ (f=[])}if(f.length&&B(u)){var y=e.length+u*H;F?(c(f,e),h(e,f)):(c(e,f),h(f,e))}return[f,e]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,v(this.start).tweenTo(v(this.end),this.pos),null,!0)};a.timers=[];return a}()});K(a,"Core/Animation/AnimationUtilities.js",[a["Core/Animation/Fx.js"],a["Core/Utilities.js"]],function(a,q){function v(c){return k(c)?f({duration:500,defer:0},c):{duration:c?500:0,defer:0}}
54
+ function D(c,e){for(var f=a.timers.length;f--;)a.timers[f].elem!==c||e&&e!==a.timers[f].prop||(a.timers[f].stopped=!0)}var A=q.defined,B=q.getStyle,w=q.isArray,n=q.isNumber,k=q.isObject,f=q.merge,e=q.objectEach,c=q.pick;return{animate:function(c,t,z){var h,H="",u,F;if(!k(z)){var y=arguments;z={duration:y[2],easing:y[3],complete:y[4]}}n(z.duration)||(z.duration=400);z.easing="function"===typeof z.easing?z.easing:Math[z.easing]||Math.easeInOutSine;z.curAnim=f(t);e(t,function(e,p){D(c,p);F=new a(c,z,
55
+ p);u=void 0;"d"===p&&w(t.d)?(F.paths=F.initPath(c,c.pathArray,t.d),F.toD=t.d,h=0,u=1):c.attr?h=c.attr(p):(h=parseFloat(B(c,p))||0,"opacity"!==p&&(H="px"));u||(u=e);"string"===typeof u&&u.match("px")&&(u=u.replace(/px/g,""));F.run(h,u,H)})},animObject:v,getDeferredAnimation:function(c,e,f){var h=v(e),a=0,u=0;(f?[f]:c.series).forEach(function(c){c=v(c.options.animation);a=e&&A(e.defer)?h.defer:Math.max(a,c.duration+c.defer);u=Math.min(h.duration,c.duration)});c.renderer.forExport&&(a=0);return{defer:Math.max(0,
56
+ a-u),duration:Math.min(a,u)}},setAnimation:function(e,f){f.renderer.globalAnimation=c(e,f.options.chart.animation,!0)},stop:D}});K(a,"Core/Renderer/HTML/AST.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q){var v=a.SVG_NS,D=q.attr,A=q.createElement,B=q.discardElement,w=q.error,n=q.isString,k=q.objectEach,f=q.splat;try{var e=!!(new DOMParser).parseFromString("","text/html")}catch(c){e=!1}q=function(){function c(c){this.nodes="string"===typeof c?this.parseMarkup(c):c}c.filterUserAttributes=
57
+ function(e){k(e,function(f,h){var a=!0;-1===c.allowedAttributes.indexOf(h)&&(a=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(h)&&(a=n(f)&&c.allowedReferences.some(function(c){return 0===f.indexOf(c)}));a||(w("Highcharts warning: Invalid attribute '"+h+"' in config"),delete e[h])});return e};c.setElementHTML=function(e,f){e.innerHTML="";f&&(new c(f)).addToDOM(e)};c.prototype.addToDOM=function(e){function h(e,t){var z;f(e).forEach(function(e){var f=e.tagName,u=e.textContent?a.doc.createTextNode(e.textContent):
58
+ void 0;if(f)if("#text"===f)var r=u;else if(-1!==c.allowedTags.indexOf(f)){f=a.doc.createElementNS("svg"===f?v:t.namespaceURI||v,f);var p=e.attributes||{};k(e,function(d,c){"tagName"!==c&&"attributes"!==c&&"children"!==c&&"textContent"!==c&&(p[c]=d)});D(f,c.filterUserAttributes(p));u&&f.appendChild(u);h(e.children||[],f);r=f}else w("Highcharts warning: Invalid tagName '"+f+"' in config");r&&t.appendChild(r);z=r});return z}return h(this.nodes,e)};c.prototype.parseMarkup=function(c){var f=[];if(e)c=
59
+ (new DOMParser).parseFromString(c,"text/html");else{var h=A("div");h.innerHTML=c;c={body:h}}var a=function(c,e){var f=c.nodeName.toLowerCase(),h={tagName:f};if("#text"===f){f=c.textContent||"";if(/^[\s]*$/.test(f))return;h.textContent=f}if(f=c.attributes){var r={};[].forEach.call(f,function(d){r[d.name]=d.value});h.attributes=r}if(c.childNodes.length){var p=[];[].forEach.call(c.childNodes,function(d){a(d,p)});p.length&&(h.children=p)}e.push(h)};[].forEach.call(c.body.childNodes,function(c){return a(c,
60
+ f)});h&&B(h);return f};c.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(" ");c.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 x2 y y1 y2 zIndex".split(" ");
61
+ c.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");return c}();"";return q});K(a,"Core/FormatUtilities.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,q){function v(f,e,c,h){f=+f||0;e=+e;var a=D.lang,z=(f.toString().split(".")[1]||"").split("e")[0].length,G=f.toString().split("e"),H=e;if(-1===e)e=Math.min(z,20);else if(!w(e))e=2;else if(e&&G[1]&&0>G[1]){var u=e+ +G[1];0<=u?(G[0]=(+G[0]).toExponential(u).split("e")[0],e=u):(G[0]=G[0].split(".")[0]||0,f=20>e?(G[0]*
62
+ Math.pow(10,G[1])).toFixed(e):0,G[1]=0)}u=(Math.abs(G[1]?G[0]:f)+Math.pow(10,-Math.max(e,z)-1)).toFixed(e);z=String(k(u));var F=3<z.length?z.length%3:0;c=n(c,a.decimalPoint);h=n(h,a.thousandsSep);f=(0>f?"-":"")+(F?z.substr(0,F)+h:"");f=0>+G[1]&&!H?"0":f+z.substr(F).replace(/(\d{3})(?=\d)/g,"$1"+h);e&&(f+=c+u.slice(-e));G[1]&&0!==+f&&(f+="e"+G[1]);return f}var D=a.defaultOptions,A=a.defaultTime,B=q.getNestedProperty,w=q.isNumber,n=q.pick,k=q.pInt;return{dateFormat:function(f,e,c){return A.dateFormat(f,
63
+ e,c)},format:function(f,e,c){var h="{",a=!1,k=/f$/,n=/\.([0-9])/,H=D.lang,u=c&&c.time||A;c=c&&c.numberFormatter||v;for(var F=[];f;){var y=f.indexOf(h);if(-1===y)break;var r=f.slice(0,y);if(a){r=r.split(":");h=B(r.shift()||"",e);if(r.length&&"number"===typeof h)if(r=r.join(":"),k.test(r)){var p=parseInt((r.match(n)||["","-1"])[1],10);null!==h&&(h=c(h,p,H.decimalPoint,-1<r.indexOf(",")?H.thousandsSep:""))}else h=u.dateFormat(r,h);F.push(h)}else F.push(r);f=f.slice(y+1);h=(a=!a)?"}":"{"}F.push(f);return F.join("")},
64
+ numberFormat:v}});K(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,q,C,D,A,B){var v=a.animate,n=a.animObject,k=a.stop,f=D.deg2rad,e=D.doc,c=D.noop,h=D.svg,t=D.SVG_NS,z=D.win,G=B.addEvent,H=B.attr,u=B.createElement,F=B.css,y=B.defined,r=B.erase,p=B.extend,d=B.fireEvent,l=B.isArray,b=B.isFunction,g=B.isNumber,m=B.isString,x=B.merge,
65
+ J=B.objectEach,L=B.pick,E=B.pInt,O=B.syncTimeout,P=B.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=t;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(b){b=L(this[b+"Value"],this[b],this.element?this.element.getAttribute(b):null,0);/^[\-0-9\.]+$/.test(b)&&(b=parseFloat(b));return b};a.prototype._defaultSetter=function(b,d,g){g.setAttribute(d,
66
+ b)};a.prototype.add=function(b){var d=this.renderer,g=this.element;b&&(this.parentGroup=b);this.parentInverted=b&&b.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&d.buildText(this);this.added=!0;if(!b||b.handleZ||this.zIndex)var m=this.zIndexSetter();m||(b?b.element:d.box).appendChild(g);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(b,d){var g=d?"":this.attr("class")||"";b=(b||"").split(/ /g).reduce(function(b,d){-1===g.indexOf(d)&&b.push(d);return b},
67
+ g?[g]:[]).join(" ");b!==g&&this.attr("class",b);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(b,d,g){var c={},l=this.renderer,I=l.alignedObjects,x,e,p;if(b){if(this.alignOptions=b,this.alignByTranslate=d,!g||m(g))this.alignTo=x=g||"renderer",r(I,this),I.push(this),g=void 0}else b=this.alignOptions,d=this.alignByTranslate,x=this.alignTo;g=L(g,l[x],"scrollablePlotBox"===x?l.plotBox:void 0,l);x=b.align;var a=
68
+ b.verticalAlign;l=(g.x||0)+(b.x||0);I=(g.y||0)+(b.y||0);"right"===x?e=1:"center"===x&&(e=2);e&&(l+=(g.width-(b.width||0))/e);c[d?"translateX":"x"]=Math.round(l);"bottom"===a?p=1:"middle"===a&&(p=2);p&&(I+=(g.height-(b.height||0))/p);c[d?"translateY":"y"]=Math.round(I);this[this.placed?"animate":"attr"](c);this.placed=!0;this.alignAttr=c;return this};a.prototype.alignSetter=function(b){var d={left:"start",center:"middle",right:"end"};d[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor",
69
+ d[b]))};a.prototype.animate=function(b,d,g){var m=this,c=n(L(d,this.renderer.globalAnimation,!0));d=c.defer;L(e.hidden,e.msHidden,e.webkitHidden,!1)&&(c.duration=0);0!==c.duration?(g&&(c.complete=g),O(function(){m.element&&v(m,b,c)},d)):(this.attr(b,void 0,g),J(b,function(b,d){c.step&&c.step.call(this,b,{prop:d,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(b){var d=this.element;-1!==b.indexOf("contrast")&&(b=b.replace(/contrast/g,this.renderer.getContrast(d.style.fill)));
70
+ var g=b.split(" ");b=g[g.length-1];if((g=g[0])&&"none"!==g&&D.svg){this.fakeTS=!0;this.ySetter=this.xSetter;g=g.replace(/(^[\d\.]+)(.*?)$/g,function(b,d,g){return 2*Number(d)+g});this.removeTextOutline();var m=e.createElementNS(t,"tspan");H(m,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":g,"stroke-linejoin":"round"});[].forEach.call(d.childNodes,function(b){var d=b.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(b){return d.removeAttribute(b)});
71
+ m.appendChild(d)});var c=e.createElementNS(t,"tspan");c.textContent="\u200b";["x","y"].forEach(function(b){var g=d.getAttribute(b);g&&c.setAttribute(b,g)});m.appendChild(c);d.insertBefore(m,d.firstChild)}};a.prototype.attr=function(b,d,g,m){var c=this.element,l=this.symbolCustomAttribs,I,x=this,e,p;if("string"===typeof b&&"undefined"!==typeof d){var a=b;b={};b[a]=d}"string"===typeof b?x=(this[b+"Getter"]||this._defaultGetter).call(this,b,c):(J(b,function(d,g){e=!1;m||k(this,g);this.symbolName&&-1!==
72
+ l.indexOf(g)&&(I||(this.symbolAttr(b),I=!0),e=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);e||(p=this[g+"Setter"]||this._defaultSetter,p.call(this,d,g,c),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,d,p))},this),this.afterSetters());g&&g.call(this);return x};a.prototype.clip=function(b){return this.attr("clip-path",b?"url("+this.renderer.url+"#"+b.id+")":"none")};a.prototype.crisp=function(b,d){d=d||b.strokeWidth||
73
+ 0;var g=Math.round(d)%2/2;b.x=Math.floor(b.x||this.x||0)+g;b.y=Math.floor(b.y||this.y||0)+g;b.width=Math.floor((b.width||this.width||0)-2*g);b.height=Math.floor((b.height||this.height||0)-2*g);y(b.strokeWidth)&&(b.strokeWidth=d);return b};a.prototype.complexColor=function(b,g,m){var c=this.renderer,I,e,p,a,f,h,r,u,E,k,t=[],L;d(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?e="radialGradient":b.linearGradient&&(e="linearGradient");if(e){p=b[e];f=c.gradients;h=b.stops;E=m.radialReference;
74
+ l(p)&&(b[e]=p={x1:p[0],y1:p[1],x2:p[2],y2:p[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===e&&E&&!y(p.gradientUnits)&&(a=p,p=x(p,c.getRadialAttr(E,a),{gradientUnits:"userSpaceOnUse"}));J(p,function(b,d){"id"!==d&&t.push(d,b)});J(h,function(b){t.push(b)});t=t.join(",");if(f[t])k=f[t].attr("id");else{p.id=k=P();var d=f[t]=c.createElement(e).attr(p).add(c.defs);d.radAttr=a;d.stops=[];h.forEach(function(b){0===b[1].indexOf("rgba")?(I=C.parse(b[1]),r=I.get("rgb"),u=I.get("a")):(r=b[1],u=1);b=c.createElement("stop").attr({offset:b[0],
75
+ "stop-color":r,"stop-opacity":u}).add(d);d.stops.push(b)})}L="url("+c.url+"#"+k+")";m.setAttribute(g,L);m.gradient=t;b.toString=function(){return L}}})};a.prototype.css=function(b){var d=this.styles,g={},m=this.element,c=["textOutline","textOverflow","width"],l="",x=!d;b&&b.color&&(b.fill=b.color);d&&J(b,function(b,m){d&&d[m]!==b&&(g[m]=b,x=!0)});if(x){d&&(b=p(d,g));if(b)if(null===b.width||"auto"===b.width)delete this.textWidth;else if("text"===m.nodeName.toLowerCase()&&b.width)var e=this.textWidth=
76
+ E(b.width);this.styles=b;e&&!h&&this.renderer.forExport&&delete b.width;if(m.namespaceURI===this.SVG_NS){var a=function(b,d){return"-"+d.toLowerCase()};J(b,function(b,d){-1===c.indexOf(d)&&(l+=d.replace(/([A-Z])/g,a)+":"+b+";")});l&&H(m,"style",l)}else F(m,b);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b&&b.textOutline&&this.applyTextOutline(b.textOutline))}return this};a.prototype.dashstyleSetter=function(b){var d=this["stroke-width"];"inherit"===d&&(d=1);if(b=b&&b.toLowerCase()){var g=
77
+ b.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(b=g.length;b--;)g[b]=""+E(g[b])*L(d,NaN);b=g.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",b)}};a.prototype.destroy=function(){var b=this,d=b.element||{},g=b.renderer,m=d.ownerSVGElement,c=g.isSVG&&"SPAN"===d.nodeName&&b.parentGroup||
78
+ void 0;d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null;k(b);if(b.clipPath&&m){var l=b.clipPath;[].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1<b.getAttribute("clip-path").indexOf(l.element.id)&&b.removeAttribute("clip-path")});b.clipPath=l.destroy()}if(b.stops){for(m=0;m<b.stops.length;m++)b.stops[m].destroy();b.stops.length=0;b.stops=void 0}b.safeRemoveChild(d);for(g.styledMode||b.destroyShadows();c&&c.div&&0===c.div.childNodes.length;)d=c.parentGroup,
79
+ b.safeRemoveChild(c.div),delete c.div,c=d;b.alignTo&&r(g.alignedObjects,b);J(b,function(d,g){b[g]&&b[g].parentGroup===b&&b[g].destroy&&b[g].destroy();delete b[g]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(b){this.safeRemoveChild(b)},this);this.shadows=void 0};a.prototype.destroyTextPath=function(b,d){var g=b.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),d.element.setAttribute("id",""),this.textPathWrapper&&g.getElementsByTagName("textPath").length){for(b=
80
+ this.textPathWrapper.element.childNodes;b.length;)g.appendChild(b[0]);g.removeChild(this.textPathWrapper.element)}}else if(b.getAttribute("dx")||b.getAttribute("dy"))b.removeAttribute("dx"),b.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};a.prototype.dSetter=function(b,d,g){l(b)&&("string"===typeof b[0]&&(b=this.renderer.pathToSegments(b)),this.pathArray=b,b=b.reduce(function(b,d,g){return d&&d.join?(g?b+" ":"")+d.join(" "):(d||"").toString()},""));
81
+ /(NaN| {2}|^$)/.test(b)&&(b="M 0 0");this[d]!==b&&(g.setAttribute(d,b),this[d]=b)};a.prototype.fadeOut=function(b){var d=this;d.animate({opacity:0},{duration:L(b,150),complete:function(){d.attr({y:-9999}).hide()}})};a.prototype.fillSetter=function(b,d,g){"string"===typeof b?g.setAttribute(d,b):b&&this.complexColor(b,d,g)};a.prototype.getBBox=function(d,g){var m=this.renderer,c=this.element,l=this.styles,x=this.textStr,e=m.cache,M=m.cacheKeys,h=c.namespaceURI===this.SVG_NS;g=L(g,this.rotation,0);var r=
82
+ m.styledMode?c&&a.prototype.getStyle.call(c,"font-size"):l&&l.fontSize,u;if(y(x)){var J=x.toString();-1===J.indexOf("<")&&(J=J.replace(/[0-9]/g,"0"));J+=["",g,r,this.textWidth,l&&l.textOverflow,l&&l.fontWeight].join()}J&&!d&&(u=e[J]);if(!u){if(h||m.forExport){try{var E=this.fakeTS&&function(b){var d=c.querySelector(".highcharts-text-outline");d&&F(d,{display:b})};b(E)&&E("none");u=c.getBBox?p({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight};b(E)&&E("")}catch(V){""}if(!u||0>u.width)u={width:0,
83
+ height:0}}else u=this.htmlGetBBox();m.isSVG&&(d=u.width,m=u.height,h&&(u.height=m={"11px,17":14,"13px,20":16}[l&&l.fontSize+","+Math.round(m)]||m),g&&(l=g*f,u.width=Math.abs(m*Math.sin(l))+Math.abs(d*Math.cos(l)),u.height=Math.abs(m*Math.cos(l))+Math.abs(d*Math.sin(l))));if(J&&0<u.height){for(;250<M.length;)delete e[M.shift()];e[J]||M.push(J);e[J]=u}}return u};a.prototype.getStyle=function(b){return z.getComputedStyle(this.element||this,"").getPropertyValue(b)};a.prototype.hasClass=function(b){return-1!==
84
+ (""+this.attr("class")).split(" ").indexOf(b)};a.prototype.hide=function(b){b?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(b,g){this.element="span"===g?u(g):e.createElementNS(this.SVG_NS,g);this.renderer=b;d(this,"afterInit")};a.prototype.invert=function(b){this.inverted=b;this.updateTransform();return this};a.prototype.on=function(b,d){var g=this.onEvents;if(g[b])g[b]();g[b]=G(this.element,
85
+ b,d);return this};a.prototype.opacitySetter=function(b,d,g){this.opacity=b=Number(Number(b).toFixed(3));g.setAttribute(d,b)};a.prototype.removeClass=function(b){return this.attr("class",(""+this.attr("class")).replace(m(b)?new RegExp("(^| )"+b+"( |$)"):b," ").replace(/ +/g," ").trim())};a.prototype.removeTextOutline=function(){var b=this.element.querySelector("tspan.highcharts-text-outline");b&&this.safeRemoveChild(b)};a.prototype.safeRemoveChild=function(b){var d=b.parentNode;d&&d.removeChild(b)};
86
+ a.prototype.setRadialReference=function(b){var d=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b;d&&d.radAttr&&d.animate(this.renderer.getRadialAttr(b,d.radAttr));return this};a.prototype.setTextPath=function(b,d){var m=this.element,l=this.text?this.text.element:m,e={textAnchor:"text-anchor"},p=!1,a=this.textPathWrapper,f=!a;d=x(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},d);var h=q.filterUserAttributes(d.attributes);
87
+ if(b&&d&&d.enabled){a&&null===a.element.parentNode?(f=!0,a=a.destroy()):a&&this.removeTextOutline.call(a.parentGroup);this.options&&this.options.padding&&(h.dx=-this.options.padding);a||(this.textPathWrapper=a=this.renderer.createElement("textPath"),p=!0);var r=a.element;(d=b.element.getAttribute("id"))||b.element.setAttribute("id",d=P());if(f)for(l.setAttribute("y",0),g(h.dx)&&l.setAttribute("x",-h.dx),b=[].slice.call(l.childNodes),f=0;f<b.length;f++){var u=b[f];u.nodeType!==Node.TEXT_NODE&&"tspan"!==
88
+ u.nodeName||r.appendChild(u)}p&&a&&a.add({element:l});r.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+d);y(h.dy)&&(r.parentNode.setAttribute("dy",h.dy),delete h.dy);y(h.dx)&&(r.parentNode.setAttribute("dx",h.dx),delete h.dx);J(h,function(b,d){r.setAttribute(e[d]||d,b)});m.removeAttribute("transform");this.removeTextOutline.call(a);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=c}else a&&(delete this.updateTransform,
89
+ delete this.applyTextOutline,this.destroyTextPath(m,b),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};a.prototype.shadow=function(b,d,g){var m=[],c=this.element,l=this.oldShadowOptions,x={color:A.neutralColor100,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},I=!1,e;!0===b?e=x:"object"===typeof b&&(e=p(x,b));e&&(e&&l&&J(e,function(b,d){b!==l[d]&&(I=!0)}),I&&this.destroyShadows(),
90
+ this.oldShadowOptions=e);if(!e)this.destroyShadows();else if(!this.shadows){var a=e.opacity/e.width;var f=this.parentInverted?"translate("+e.offsetY+", "+e.offsetX+")":"translate("+e.offsetX+", "+e.offsetY+")";for(x=1;x<=e.width;x++){var h=c.cloneNode(!1);var r=2*e.width+1-2*x;H(h,{stroke:b.color||A.neutralColor100,"stroke-opacity":a*x,"stroke-width":r,transform:f,fill:"none"});h.setAttribute("class",(h.getAttribute("class")||"")+" highcharts-shadow");g&&(H(h,"height",Math.max(H(h,"height")-r,0)),
91
+ h.cutHeight=r);d?d.element.appendChild(h):c.parentNode&&c.parentNode.insertBefore(h,c);m.push(h)}this.shadows=m}return this};a.prototype.show=function(b){return this.attr({visibility:b?"inherit":"visible"})};a.prototype.strokeSetter=function(b,d,g){this[d]=b;this.stroke&&this["stroke-width"]?(a.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===d&&0===b&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=
92
+ !1):this.renderer.styledMode&&this["stroke-width"]&&(g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var b=this.getStyle("stroke-width"),d=0;if(b.indexOf("px")===b.length-2)d=E(b);else if(""!==b){var g=e.createElementNS(t,"rect");H(g,{width:b,"stroke-width":0});this.element.parentNode.appendChild(g);d=g.getBBox().width;g.parentNode.removeChild(g)}return d};a.prototype.symbolAttr=
93
+ function(b){var d=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g){d[g]=L(b[g],d[g])});d.attr({d:d.renderer.symbols[d.symbolName](d.x,d.y,d.width,d.height,d)})};a.prototype.textSetter=function(b){b!==this.textStr&&(delete this.textPxLength,this.textStr=b,this.added&&this.renderer.buildText(this))};a.prototype.titleSetter=function(b){var d=this.element,g=d.getElementsByTagName("title")[0]||e.createElementNS(this.SVG_NS,"title");d.insertBefore?d.insertBefore(g,
94
+ d.firstChild):d.appendChild(g);g.textContent=String(L(b,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};a.prototype.toFront=function(){var b=this.element;b.parentNode.appendChild(b);return this};a.prototype.translate=function(b,d){return this.attr({translateX:b,translateY:d})};a.prototype.updateShadows=function(b,d,g){var m=this.shadows;if(m)for(var c=m.length;c--;)g.call(m[c],"height"===b?Math.max(d-(m[c].cutHeight||0),0):"d"===b?this.d:d,b,m[c])};a.prototype.updateTransform=
95
+ function(){var b=this.scaleX,d=this.scaleY,g=this.inverted,m=this.rotation,c=this.matrix,l=this.element,x=this.translateX||0,e=this.translateY||0;g&&(x+=this.width,e+=this.height);x=["translate("+x+","+e+")"];y(c)&&x.push("matrix("+c.join(",")+")");g?x.push("rotate(90) scale(-1,1)"):m&&x.push("rotate("+m+" "+L(this.rotationOriginX,l.getAttribute("x"),0)+" "+L(this.rotationOriginY,l.getAttribute("y")||0)+")");(y(b)||y(d))&&x.push("scale("+L(b,1)+" "+L(d,1)+")");x.length&&l.setAttribute("transform",
96
+ x.join(" "))};a.prototype.visibilitySetter=function(b,d,g){"inherit"===b?g.removeAttribute(d):this[d]!==b&&g.setAttribute(d,b);this[d]=b};a.prototype.xGetter=function(b){"circle"===this.element.nodeName&&("x"===b?b="cx":"y"===b&&(b="cy"));return this._defaultGetter(b)};a.prototype.zIndexSetter=function(b,d){var g=this.renderer,m=this.parentGroup,c=(m||g).element||g.box,l=this.element;g=c===g.box;var x=!1;var e=this.added;var p;y(b)?(l.setAttribute("data-z-index",b),b=+b,this[d]===b&&(e=!1)):y(this[d])&&
97
+ l.removeAttribute("data-z-index");this[d]=b;if(e){(b=this.zIndex)&&m&&(m.handleZ=!0);d=c.childNodes;for(p=d.length-1;0<=p&&!x;p--){m=d[p];e=m.getAttribute("data-z-index");var a=!y(e);if(m!==l)if(0>b&&a&&!g&&!p)c.insertBefore(l,d[p]),x=!0;else if(E(e)<=b||a&&(!y(b)||0<=b))c.insertBefore(l,d[p+1]||null),x=!0}x||(c.insertBefore(l,d[g?3:0]||null),x=!0)}return x};return a}();a.prototype["stroke-widthSetter"]=a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=
98
+ a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(b,d){this[d]=b;this.doTransform=!0};"";return a});K(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var v;(function(v){var q;v.rendererTypes={};v.getRendererType=function(a){void 0===a&&(a=q);return v.rendererTypes[a]||v.rendererTypes[q]};v.registerRendererType=function(A,
99
+ B,w){v.rendererTypes[A]=B;if(!q||w)q=A,a.Renderer=B}})(v||(v={}));return v});K(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q){var v=this&&this.__extends||function(){var a=function(e,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,e){c.__proto__=e}||function(c,e){for(var a in e)e.hasOwnProperty(a)&&(c[a]=e[a])};return a(e,c)};return function(e,c){function f(){this.constructor=e}a(e,c);e.prototype=null===c?Object.create(c):
100
+ (f.prototype=c.prototype,new f)}}(),D=q.defined,A=q.extend,B=q.isNumber,w=q.merge,n=q.pick,k=q.removeEvent;return function(f){function e(c,a,k,n,G,H,u,F,y,r){var p=f.call(this)||this;p.paddingLeftSetter=p.paddingSetter;p.paddingRightSetter=p.paddingSetter;p.init(c,"g");p.textStr=a;p.x=k;p.y=n;p.anchorX=H;p.anchorY=u;p.baseline=y;p.className=r;p.addClass("button"===r?"highcharts-no-tooltip":"highcharts-label");r&&p.addClass("highcharts-"+r);p.text=c.text("",0,0,F).attr({zIndex:1});var d;"string"===
101
+ typeof G&&((d=/^url\((.*?)\)$/.test(G))||p.renderer.symbols[G])&&(p.symbolKey=G);p.bBox=e.emptyBBox;p.padding=3;p.baselineOffset=0;p.needsBox=c.styledMode||d;p.deferredAttr={};p.alignFactor=0;return p}v(e,f);e.prototype.alignSetter=function(c){c={left:0,center:.5,right:1}[c];c!==this.alignFactor&&(this.alignFactor=c,this.bBox&&B(this.xSetting)&&this.attr({x:this.xSetting}))};e.prototype.anchorXSetter=function(c,e){this.anchorX=c;this.boxAttr(e,Math.round(c)-this.getCrispAdjust()-this.xSetting)};e.prototype.anchorYSetter=
102
+ function(c,e){this.anchorY=c;this.boxAttr(e,c-this.ySetting)};e.prototype.boxAttr=function(c,e){this.box?this.box.attr(c,e):this.deferredAttr[c]=e};e.prototype.css=function(c){if(c){var f={};c=w(c);e.textProps.forEach(function(e){"undefined"!==typeof c[e]&&(f[e]=c[e],delete c[e])});this.text.css(f);var k="width"in f;"fontSize"in f||"fontWeight"in f?this.updateTextPadding():k&&this.updateBoxSize()}return a.prototype.css.call(this,c)};e.prototype.destroy=function(){k(this.element,"mouseenter");k(this.element,
103
+ "mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};e.prototype.fillSetter=function(c,e){c&&(this.needsBox=!0);this.fill=c;this.boxAttr(e,c)};e.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var c=this.padding,e=n(this.paddingLeft,c);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-c}};e.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&
104
+ this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};e.prototype.heightSetter=function(c){this.heightSetting=c};e.prototype.on=function(c,e){var f=this,h=f.text,k=h&&"SPAN"===h.element.tagName?h:void 0;if(k){var n=function(a){("mouseenter"===c||"mouseleave"===c)&&a.relatedTarget instanceof Element&&(f.element.compareDocumentPosition(a.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||k.element.compareDocumentPosition(a.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||
105
+ e.call(f.element,a)};k.on(c,n)}a.prototype.on.call(f,c,n||e);return f};e.prototype.onAdd=function(){var c=this.textStr;this.text.add(this);this.attr({text:D(c)?c:"",x:this.x,y:this.y});this.box&&D(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};e.prototype.paddingSetter=function(c,e){B(c)?c!==this[e]&&(this[e]=c,this.updateTextPadding()):this[e]=void 0};e.prototype.rSetter=function(c,e){this.boxAttr(e,c)};e.prototype.shadow=function(c){c&&!this.renderer.styledMode&&(this.updateBoxSize(),
106
+ this.box&&this.box.shadow(c));return this};e.prototype.strokeSetter=function(c,e){this.stroke=c;this.boxAttr(e,c)};e.prototype["stroke-widthSetter"]=function(c,e){c&&(this.needsBox=!0);this["stroke-width"]=c;this.boxAttr(e,c)};e.prototype["text-alignSetter"]=function(c){this.textAlign=c};e.prototype.textSetter=function(c){"undefined"!==typeof c&&this.text.attr({text:c});this.updateTextPadding()};e.prototype.updateBoxSize=function(){var c=this.text.element.style,a={},f=this.padding,k=this.bBox=B(this.widthSetting)&&
107
+ B(this.heightSetting)&&!this.textAlign||!D(this.text.textStr)?e.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||k.height||0)+2*f;c=this.renderer.fontMetrics(c&&c.fontSize,this.text);this.baselineOffset=f+Math.min((this.text.firstLineMetrics||c).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-c.h)/2);this.needsBox&&(this.box||(f=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),f.addClass(("button"===
108
+ this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),f.add(this)),f=this.getCrispAdjust(),a.x=f,a.y=(this.baseline?-this.baselineOffset:0)+f,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(A(a,this.deferredAttr)),this.deferredAttr={})};e.prototype.updateTextPadding=function(){var c=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,a=n(this.paddingLeft,this.padding);D(this.widthSetting)&&this.bBox&&
109
+ ("center"===this.textAlign||"right"===this.textAlign)&&(a+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(a!==c.x||e!==c.y)c.attr("x",a),c.hasBoxWidthChanged&&(this.bBox=c.getBBox(!0)),"undefined"!==typeof e&&c.attr("y",e);c.x=a;c.y=e};e.prototype.widthSetter=function(c){this.widthSetting=B(c)?c:void 0};e.prototype.getPaddedWidth=function(){var c=this.padding,e=n(this.paddingLeft,c);c=n(this.paddingRight,c);return(this.widthSetting||this.bBox.width||0)+e+c};e.prototype.xSetter=
110
+ function(c){this.x=c;this.alignFactor&&(c-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(c);this.attr("translateX",this.xSetting)};e.prototype.ySetter=function(c){this.ySetting=this.y=Math.round(c);this.attr("translateY",this.ySetting)};e.emptyBBox={width:0,height:0,x:0,y:0};e.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return e}(a)});K(a,"Core/Renderer/SVG/Symbols.js",
111
+ [a["Core/Utilities.js"]],function(a){function v(a,k,f,e,c){var h=[];if(c){var t=c.start||0,n=w(c.r,f);f=w(c.r,e||f);var G=(c.end||0)-.001;e=c.innerR;var H=w(c.open,.001>Math.abs((c.end||0)-t-2*Math.PI)),u=Math.cos(t),F=Math.sin(t),y=Math.cos(G),r=Math.sin(G);t=w(c.longArc,.001>G-t-Math.PI?0:1);h.push(["M",a+n*u,k+f*F],["A",n,f,0,t,w(c.clockwise,1),a+n*y,k+f*r]);A(e)&&h.push(H?["M",a+e*y,k+e*r]:["L",a+e*y,k+e*r],["A",e,e,0,t,A(c.clockwise)?1-c.clockwise:0,a+e*u,k+e*F]);H||h.push(["Z"])}return h}function C(a,
112
+ k,f,e,c){return c&&c.r?D(a,k,f,e,c):[["M",a,k],["L",a+f,k],["L",a+f,k+e],["L",a,k+e],["Z"]]}function D(a,k,f,e,c){c=c&&c.r||0;return[["M",a+c,k],["L",a+f-c,k],["C",a+f,k,a+f,k,a+f,k+c],["L",a+f,k+e-c],["C",a+f,k+e,a+f,k+e,a+f-c,k+e],["L",a+c,k+e],["C",a,k+e,a,k+e,a,k+e-c],["L",a,k+c],["C",a,k,a,k,a+c,k]]}var A=a.defined,B=a.isNumber,w=a.pick;return{arc:v,callout:function(a,k,f,e,c){var h=Math.min(c&&c.r||0,f,e),t=h+6,z=c&&c.anchorX;c=c&&c.anchorY||0;var G=D(a,k,f,e,{r:h});if(!B(z))return G;a+z>=f?
113
+ c>k+t&&c<k+e-t?G.splice(3,1,["L",a+f,c-6],["L",a+f+6,c],["L",a+f,c+6],["L",a+f,k+e-h]):G.splice(3,1,["L",a+f,e/2],["L",z,c],["L",a+f,e/2],["L",a+f,k+e-h]):0>=a+z?c>k+t&&c<k+e-t?G.splice(7,1,["L",a,c+6],["L",a-6,c],["L",a,c-6],["L",a,k+h]):G.splice(7,1,["L",a,e/2],["L",z,c],["L",a,e/2],["L",a,k+h]):c&&c>e&&z>a+t&&z<a+f-t?G.splice(5,1,["L",z+6,k+e],["L",z,k+e+6],["L",z-6,k+e],["L",a+h,k+e]):c&&0>c&&z>a+t&&z<a+f-t&&G.splice(1,1,["L",z-6,k],["L",z,k-6],["L",z+6,k],["L",f-h,k]);return G},circle:function(a,
114
+ k,f,e){return v(a+f/2,k+e/2,f/2,e/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,k,f,e){return[["M",a+f/2,k],["L",a+f,k+e/2],["L",a+f/2,k+e],["L",a,k+e/2],["Z"]]},rect:C,roundedRect:D,square:C,triangle:function(a,k,f,e){return[["M",a+f/2,k],["L",a+f,k+e],["L",a,k+e],["Z"]]},"triangle-down":function(a,k,f,e){return[["M",a,k],["L",a+f,k],["L",a+f/2,k+e],["Z"]]}}});K(a,"Core/Renderer/SVG/TextBuilder.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,
115
+ q,C){var v=q.doc,A=q.SVG_NS,B=C.attr,w=C.isString,n=C.objectEach,k=C.pick;return function(){function f(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}f.prototype.buildSVG=function(){var e=this.svgElement,c=e.element,f=e.renderer,t=k(e.textStr,"").toString(),z=-1!==t.indexOf("<"),
116
+ G=c.childNodes,H=G.length;f=this.width&&!e.added&&f.box;var u=/<br.*?>/g;var F=[t,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(F!==e.textCache){e.textCache=F;for(delete e.actualWidth;H--;)c.removeChild(G[H]);z||this.ellipsis||this.width||-1!==t.indexOf(" ")&&(!this.noWrap||u.test(t))?""!==t&&(f&&f.appendChild(c),t=new a(t),this.modifyTree(t.nodes),t.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(c.textContent||"").indexOf("\u2026")&&
117
+ e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),f&&f.removeChild(c)):c.appendChild(v.createTextNode(this.unescapeEntities(t)));w(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}};f.prototype.modifyDOM=function(){var a=this,c=this.svgElement,f=B(c.element,"x");c.firstLineMetrics=void 0;[].forEach.call(c.element.querySelectorAll("tspan.highcharts-br"),function(e,h){e.nextSibling&&e.previousSibling&&(0===h&&1===e.previousSibling.nodeType&&(c.firstLineMetrics=
118
+ c.renderer.fontMetrics(void 0,e.previousSibling)),B(e,{dy:a.getLineHeight(e.nextSibling),x:f}))});var k=this.width||0;if(k){var z=function(e,h){var u=e.textContent||"",y=u.replace(/([^\^])-/g,"$1- ").split(" "),r=!a.noWrap&&(1<y.length||1<c.element.childNodes.length),p=a.getLineHeight(h),d=0,l=c.actualWidth;if(a.ellipsis)u&&a.truncate(e,u,void 0,0,Math.max(0,k-parseInt(a.fontSize||12,10)),function(b,d){return b.substring(0,d)+"\u2026"});else if(r){u=[];for(r=[];h.firstChild&&h.firstChild!==e;)r.push(h.firstChild),
119
+ h.removeChild(h.firstChild);for(;y.length;)y.length&&!a.noWrap&&0<d&&(u.push(e.textContent||""),e.textContent=y.join(" ").replace(/- /g,"-")),a.truncate(e,void 0,y,0===d?l||0:0,k,function(b,d){return y.slice(0,d).join(" ").replace(/- /g,"-")}),l=c.actualWidth,d++;r.forEach(function(b){h.insertBefore(b,e)});u.forEach(function(b){h.insertBefore(v.createTextNode(b),e);b=v.createElementNS(A,"tspan");b.textContent="\u200b";B(b,{dy:p,x:f});h.insertBefore(b,e)})}},G=function(a){[].slice.call(a.childNodes).forEach(function(e){e.nodeType===
120
+ Node.TEXT_NODE?z(e,a):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(c.actualWidth=0),G(e))})};G(c.element)}};f.prototype.getLineHeight=function(a){var c;a=a.nodeType===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(),10):this.renderer.fontMetrics(c,a||this.svgElement.element).h};f.prototype.modifyTree=function(a){var c=
121
+ this,e=function(f,h){var k=f.tagName,t=c.renderer.styledMode,u=f.attributes||{};if("b"===k||"strong"===k)t?u["class"]="highcharts-strong":u.style="font-weight:bold;"+(u.style||"");else if("i"===k||"em"===k)t?u["class"]="highcharts-emphasized":u.style="font-style:italic;"+(u.style||"");w(u.style)&&(u.style=u.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===k&&(u["class"]="highcharts-br",f.textContent="\u200b",(h=a[h+1])&&h.textContent&&(h.textContent=h.textContent.replace(/^ +/gm,"")));"#text"!==
122
+ k&&"a"!==k&&(f.tagName="tspan");f.attributes=u;f.children&&f.children.filter(function(c){return"#text"!==c.tagName}).forEach(e)};for(a.forEach(e);a[0]&&"tspan"===a[0].tagName&&!a[0].children;)a.splice(0,1)};f.prototype.truncate=function(a,c,f,k,z,G){var e=this.svgElement,h=e.renderer,t=e.rotation,y=[],r=f?1:0,p=(c||f||"").length,d=p,l,b=function(b,d){d=d||b;var g=a.parentNode;if(g&&"undefined"===typeof y[d])if(g.getSubStringLength)try{y[d]=k+g.getSubStringLength(0,f?d+1:d)}catch(L){""}else h.getSpanWidth&&
123
+ (a.textContent=G(c||f,b),y[d]=k+h.getSpanWidth(e,a));return y[d]};e.rotation=0;var g=b(a.textContent.length);if(k+g>z){for(;r<=p;)d=Math.ceil((r+p)/2),f&&(l=G(f,d)),g=b(d,l&&l.length-1),r===p?r=p+1:g>z?p=d-1:r=d;0===p?a.textContent="":c&&p===c.length-1||(a.textContent=l||G(c||f,d))}f&&f.splice(0,d);e.actualWidth=g;e.rotation=t};f.prototype.unescapeEntities=function(a,c){n(this.renderer.escapes,function(e,f){c&&-1!==c.indexOf(e)||(a=a.toString().replace(new RegExp(e,"g"),f))});return a};return f}()});
124
+ K(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"],a["Core/Renderer/SVG/TextBuilder.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B,w,n,k,f){var e=C.charts,c=C.deg2rad,h=C.doc,t=C.isFirefox,z=C.isMS,G=C.isWebKit,H=C.noop,u=C.SVG_NS,F=C.symbolSizes,y=C.win,r=f.addEvent,
125
+ p=f.attr,d=f.createElement,l=f.css,b=f.defined,g=f.destroyObjectProperties,m=f.extend,x=f.isArray,J=f.isNumber,L=f.isObject,E=f.isString,O=f.merge,v=f.pick,ca=f.pInt,X=f.uniqueKey,aa;C=function(){function f(b,d,g,m,c,l,a){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(b,d,g,m,c,l,a)}f.prototype.init=function(b,d,g,m,c,a,e){var f=
126
+ this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),x=f.element;e||f.css(this.getStyle(m));b.appendChild(x);p(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&p(x,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=x;this.boxWrapper=f;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(h.createTextNode("Created with Highcharts 9.1.2"));this.defs=this.createElement("defs").add();this.allowHTML=a;this.forExport=c;this.styledMode=
127
+ e;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(d,g,!1);var I;t&&b.getBoundingClientRect&&(d=function(){l(b,{left:0,top:0});I=b.getBoundingClientRect();l(b,{left:Math.ceil(I.left)-I.left+"px",top:Math.ceil(I.top)-I.top+"px"})},d(),this.unSubPixelFix=r(y,"resize",d))};f.prototype.definition=function(b){return(new a([b])).addToDOM(this.defs.element)};f.prototype.getReferenceURL=function(){if((t||G)&&h.getElementsByTagName("base").length){if(!b(aa)){var d=X();d=(new a([{tagName:"svg",
128
+ attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:d},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+d+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(h.body);l(d,{position:"fixed",top:0,left:0,zIndex:9E5});var g=h.elementFromPoint(6,6);aa="hitme"===(g&&g.id);h.body.removeChild(d)}if(aa)return y.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,
129
+ "\\$1").replace(/ /g,"%20")}return""};f.prototype.getStyle=function(b){return this.style=m({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},b)};f.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};f.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};f.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();g(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());
130
+ this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};f.prototype.createElement=function(b){var d=new this.Element;d.init(this,b);return d};f.prototype.getRadialAttr=function(b,d){return{cx:b[0]-b[2]/2+(d.cx||0)*b[2],cy:b[1]-b[2]/2+(d.cy||0)*b[2],r:(d.r||0)*b[2]}};f.prototype.buildText=function(b){(new k(b)).buildSVG()};f.prototype.getContrast=function(b){b=q.parse(b).rgba;b[0]*=1;b[1]*=1.2;b[2]*=.5;return 459<b[0]+b[1]+b[2]?"#000000":"#FFFFFF"};f.prototype.button=function(b,d,
131
+ g,c,l,e,f,x,p,I){var M=this.label(b,d,g,p,void 0,void 0,I,void 0,"button"),h=this.styledMode,W=0,u=l?O(l):{};b=u&&u.style||{};u=a.filterUserAttributes(u);M.attr(O({padding:8,r:2},u));if(!h){u=O({fill:D.neutralColor3,stroke:D.neutralColor20,"stroke-width":1,style:{color:D.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:b},u);var J=u.style;delete u.style;e=O(u,{fill:D.neutralColor10},a.filterUserAttributes(e||{}));var k=e.style;delete e.style;f=O(u,{fill:D.highlightColor10,style:{color:D.neutralColor100,
132
+ fontWeight:"bold"}},a.filterUserAttributes(f||{}));var E=f.style;delete f.style;x=O(u,{style:{color:D.neutralColor20}},a.filterUserAttributes(x||{}));var y=x.style;delete x.style}r(M.element,z?"mouseover":"mouseenter",function(){3!==W&&M.setState(1)});r(M.element,z?"mouseout":"mouseleave",function(){3!==W&&M.setState(W)});M.setState=function(b){1!==b&&(M.state=W=b);M.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b||
133
+ 0]);h||M.attr([u,e,f,x][b||0]).css([J,k,E,y][b||0])};h||M.attr(u).css(m({cursor:"default"},J));return M.on("touchstart",function(b){return b.stopPropagation()}).on("click",function(b){3!==W&&c.call(M,b)})};f.prototype.crispLine=function(d,g,m){void 0===m&&(m="round");var c=d[0],l=d[1];b(c[1])&&c[1]===l[1]&&(c[1]=l[1]=Math[m](c[1])-g%2/2);b(c[2])&&c[2]===l[2]&&(c[2]=l[2]=Math[m](c[2])+g%2/2);return d};f.prototype.path=function(b){var d=this.styledMode?{}:{fill:"none"};x(b)?d.d=b:L(b)&&m(d,b);return this.createElement("path").attr(d)};
134
+ f.prototype.circle=function(b,d,g){b=L(b)?b:"undefined"===typeof b?{}:{x:b,y:d,r:g};d=this.createElement("circle");d.xSetter=d.ySetter=function(b,d,g){g.setAttribute("c"+d,b)};return d.attr(b)};f.prototype.arc=function(b,d,g,c,m,l){L(b)?(c=b,d=c.y,g=c.r,b=c.x):c={innerR:c,start:m,end:l};b=this.symbol("arc",b,d,g,g,c);b.r=g;return b};f.prototype.rect=function(b,d,g,c,m,l){m=L(b)?b.r:m;var a=this.createElement("rect");b=L(b)?b:"undefined"===typeof b?{}:{x:b,y:d,width:Math.max(g,0),height:Math.max(c,
135
+ 0)};this.styledMode||("undefined"!==typeof l&&(b["stroke-width"]=l,b=a.crisp(b)),b.fill="none");m&&(b.r=m);a.rSetter=function(b,d,g){a.r=b;p(g,{rx:b,ry:b})};a.rGetter=function(){return a.r||0};return a.attr(b)};f.prototype.setSize=function(b,d,g){this.width=b;this.height=d;this.boxWrapper.animate({width:b,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:v(g,!0)?void 0:0});this.alignElements()};f.prototype.g=function(b){var d=this.createElement("g");
136
+ return b?d.attr({"class":"highcharts-"+b}):d};f.prototype.image=function(b,d,g,c,l,a){var e={preserveAspectRatio:"none"},f=function(b,d){b.setAttributeNS?b.setAttributeNS("http://www.w3.org/1999/xlink","href",d):b.setAttribute("hc-svg-href",d)};1<arguments.length&&m(e,{x:d,y:g,width:c,height:l});var x=this.createElement("image").attr(e);e=function(d){f(x.element,b);a.call(x,d)};if(a){f(x.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var p=new y.Image;r(p,"load",
137
+ e);p.src=b;p.complete&&e({})}else f(x.element,b);return x};f.prototype.symbol=function(g,c,a,f,x,p){var I=this,M=/^url\((.*?)\)$/,r=M.test(g),u=!r&&(this.symbols[g]?g:"circle"),J=u&&this.symbols[u],k;if(J){"number"===typeof c&&(k=J.call(this.symbols,Math.round(c||0),Math.round(a||0),f||0,x||0,p));var E=this.path(k);I.styledMode||E.attr("fill","none");m(E,{symbolName:u||void 0,x:c,y:a,width:f,height:x});p&&m(E,p)}else if(r){var W=g.match(M)[1];var y=E=this.image(W);y.imgwidth=v(F[W]&&F[W].width,p&&
138
+ p.width);y.imgheight=v(F[W]&&F[W].height,p&&p.height);var L=function(b){return b.attr({width:b.width,height:b.height})};["width","height"].forEach(function(d){y[d+"Setter"]=function(d,g){var c=this["img"+g];this[g]=d;b(c)&&(p&&"within"===p.backgroundSize&&this.width&&this.height&&(c=Math.round(c*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(g,c),this.alignByTranslate||(d=((this[g]||0)-c)/2,this.attr("width"===g?{translateX:d}:{translateY:d})))}});
139
+ b(c)&&y.attr({x:c,y:a});y.isImg=!0;b(y.imgwidth)&&b(y.imgheight)?L(y):(y.attr({width:0,height:0}),d("img",{onload:function(){var b=e[I.chartIndex];0===this.width&&(l(this,{position:"absolute",top:"-999em"}),h.body.appendChild(this));F[W]={width:this.width,height:this.height};y.imgwidth=this.width;y.imgheight=this.height;y.element&&L(y);this.parentNode&&this.parentNode.removeChild(this);I.imgCount--;if(!I.imgCount&&b&&!b.hasLoaded)b.onload()},src:W}),this.imgCount++)}return E};f.prototype.clipRect=
140
+ function(b,d,g,c){var m=X()+"-",a=this.createElement("clipPath").attr({id:m}).add(this.defs);b=this.rect(b,d,g,c,0).add(a);b.id=m;b.clipPath=a;b.count=0;return b};f.prototype.text=function(d,g,c,m){var a={};if(m&&(this.allowHTML||!this.forExport))return this.html(d,g,c);a.x=Math.round(g||0);c&&(a.y=Math.round(c));b(d)&&(a.text=d);d=this.createElement("text").attr(a);m||(d.xSetter=function(b,d,g){for(var c=g.getElementsByTagName("tspan"),m=g.getAttribute(d),a=0,l;a<c.length;a++)l=c[a],l.getAttribute(d)===
141
+ m&&l.setAttribute(d,b);g.setAttribute(d,b)});return d};f.prototype.fontMetrics=function(b,d){b=!this.styledMode&&/px/.test(b)||!y.getComputedStyle?b||d&&d.style&&d.style.fontSize||this.style&&this.style.fontSize:d&&B.prototype.getStyle.call(d,"font-size");b=/px/.test(b)?ca(b):12;d=24>b?b+3:Math.round(1.2*b);return{h:d,b:Math.round(.8*d),f:b}};f.prototype.rotCorr=function(b,d,g){var m=b;d&&g&&(m=Math.max(m*Math.cos(d*c),4));return{x:-b/3*Math.sin(d*c),y:m}};f.prototype.pathToSegments=function(b){for(var d=
142
+ [],g=[],c={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},m=0;m<b.length;m++)E(g[0])&&J(b[m])&&g.length===c[g[0].toUpperCase()]&&b.splice(m,0,g[0].replace("M","L").replace("m","l")),"string"===typeof b[m]&&(g.length&&d.push(g.slice(0)),g.length=0),g.push(b[m]);d.push(g.slice(0));return d};f.prototype.label=function(b,d,g,c,m,a,l,e,f){return new w(this,b,d,g,c,m,a,l,e,f)};f.prototype.alignElements=function(){this.alignedObjects.forEach(function(b){return b.align()})};return f}();m(C.prototype,{Element:B,SVG_NS:u,
143
+ escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:n,draw:H});A.registerRendererType("svg",C,!0);"";return C});K(a,"Core/Renderer/HTML/HTMLElement.js",[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q,C){var v=this&&this.__extends||function(){var c=function(a,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return c(a,e)};return function(a,
144
+ e){function f(){this.constructor=a}c(a,e);a.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),A=a.isFirefox,B=a.isMS,w=a.isWebKit,n=a.win,k=C.css,f=C.defined,e=C.extend,c=C.pick,h=C.pInt;return function(a){function t(){return null!==a&&a.apply(this,arguments)||this}v(t,a);t.compose=function(c){c=c.prototype;var a=t.prototype;c.getSpanCorrection=a.getSpanCorrection;c.htmlCss=a.htmlCss;c.htmlGetBBox=a.htmlGetBBox;c.htmlUpdateTransform=a.htmlUpdateTransform;c.setSpanRotation=a.setSpanRotation};
145
+ t.prototype.getSpanCorrection=function(c,a,e){this.xCorr=-c*e;this.yCorr=-a};t.prototype.htmlCss=function(a){var f="SPAN"===this.element.tagName&&a&&"width"in a,h=c(f&&a.width,void 0);if(f){delete a.width;this.textWidth=h;var t=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=e(this.styles,a);k(this.element,a);t&&this.htmlUpdateTransform();return this};t.prototype.htmlGetBBox=function(){var c=this.element;return{x:c.offsetLeft,y:c.offsetTop,width:c.offsetWidth,
146
+ height:c.offsetHeight}};t.prototype.htmlUpdateTransform=function(){if(this.added){var c=this.renderer,a=this.element,e=this.translateX||0,t=this.translateY||0,y=this.x||0,r=this.y||0,p=this.textAlign||"left",d={left:0,center:.5,right:1}[p],l=this.styles;l=l&&l.whiteSpace;k(a,{marginLeft:e,marginTop:t});!c.styledMode&&this.shadows&&this.shadows.forEach(function(b){k(b,{marginLeft:e+1,marginTop:t+1})});this.inverted&&[].forEach.call(a.childNodes,function(b){c.invertChild(b,a)});if("SPAN"===a.tagName){var b=
147
+ this.rotation,g=this.textWidth&&h(this.textWidth),m=[b,p,a.innerHTML,this.textWidth,this.textAlign].join(),x=void 0;(x=g!==this.oldTextWidth)&&!(x=g>this.oldTextWidth)&&((x=this.textPxLength)||(k(a,{width:"",whiteSpace:l||"nowrap"}),x=a.offsetWidth),x=x>g);x&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(k(a,{width:g+"px",display:"block",whiteSpace:l||"normal"}),this.oldTextWidth=g,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;m!==this.cTT&&(x=c.fontMetrics(a.style.fontSize,
148
+ a).b,!f(b)||b===(this.oldRotation||0)&&p===this.oldAlign||this.setSpanRotation(b,d,x),this.getSpanCorrection(!f(b)&&this.textPxLength||a.offsetWidth,x,d,b,p));k(a,{left:y+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"});this.cTT=m;this.oldRotation=b;this.oldAlign=p}}else this.alignOnAdd=!0};t.prototype.setSpanRotation=function(c,a,e){var f={},h=B&&!/Edge/.test(n.navigator.userAgent)?"-ms-transform":w?"-webkit-transform":A?"MozTransform":n.opera?"-o-transform":void 0;h&&(f[h]=f.transform="rotate("+
149
+ c+"deg)",f[h+(A?"Origin":"-origin")]=f.transformOrigin=100*a+"% "+e+"px",k(this.element,f))};return t}(q)});K(a,"Core/Renderer/HTML/HTMLRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,q,C,D){var v=this&&this.__extends||function(){var a=function(e,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};
150
+ return a(e,c)};return function(e,c){function f(){this.constructor=e}a(e,c);e.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),B=D.attr,w=D.createElement,n=D.extend,k=D.pick;return function(f){function e(){return null!==f&&f.apply(this,arguments)||this}v(e,f);e.compose=function(c){c.prototype.html=e.prototype.html};e.prototype.html=function(c,e,f){var h=this.createElement("span"),t=h.element,H=h.renderer,u=H.isSVG,F=function(c,a){["opacity","visibility"].forEach(function(e){c[e+
151
+ "Setter"]=function(d,l,b){var g=c.div?c.div.style:a;q.prototype[e+"Setter"].call(this,d,l,b);g&&(g[l]=d)}});c.addedSetters=!0};h.textSetter=function(c){c!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,k(c,"")),this.textStr=c,h.doTransform=!0)};u&&F(h,h.element.style);h.xSetter=h.ySetter=h.alignSetter=h.rotationSetter=function(c,a){"align"===a?h.alignValue=h.textAlign=c:h[a]=c;h.doTransform=!0};h.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),
152
+ this.doTransform=!1)};h.attr({text:c,x:Math.round(e),y:Math.round(f)}).css({position:"absolute"});H.styledMode||h.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});t.style.whiteSpace="nowrap";h.css=h.htmlCss;u&&(h.add=function(c){var a=H.box.parentNode,e=[];if(this.parentGroup=c){var d=c.div;if(!d){for(;c;)e.push(c),c=c.parentGroup;e.reverse().forEach(function(c){function b(b,d){c[d]=b;"translateX"===d?l.left=b+"px":l.top=b+"px";c.doTransform=!0}var g=B(c.element,"class"),m=c.styles||
153
+ {};d=c.div=c.div||w("div",g?{className:g}:void 0,{position:"absolute",left:(c.translateX||0)+"px",top:(c.translateY||0)+"px",display:c.display,opacity:c.opacity,cursor:m.cursor,pointerEvents:m.pointerEvents},d||a);var l=d.style;n(c,{classSetter:function(b){return function(d){this.element.setAttribute("class",d);b.className=d}}(d),on:function(){e[0].div&&h.on.apply({element:e[0].div,onEvents:h.onEvents},arguments);return c},translateXSetter:b,translateYSetter:b});c.addedSetters||F(c)})}}else d=a;d.appendChild(t);
154
+ h.added=!0;h.alignOnAdd&&h.htmlUpdateTransform();return h});return h};return e}(C)});K(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var v=a.addEvent,C=a.isFunction,D=a.objectEach,A=a.removeEvent;return{registerEventOptions:function(a,w){a.eventOptions=a.eventOptions||{};D(w.events,function(n,k){C(n)&&a.eventOptions[k]!==n&&(C(a.eventOptions[k])&&A(a,k,a.eventOptions[k]),a.eventOptions[k]=n,v(a,k,n))})}}});K(a,"Core/Axis/AxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){var v;
155
+ (function(v){v.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",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",
156
+ 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,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",
157
+ 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};v.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},
158
+ allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var 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};v.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};v.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};v.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};v.defaultTopAxisOptions={labels:{autoRotation:[-45],
159
+ x:0},margin:15,title:{rotation:0}}})(v||(v={}));return v});K(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q,C){var v=q.deg2rad,A=C.clamp,B=C.correctFloat,w=C.defined,n=C.destroyObjectProperties,k=C.extend,f=C.fireEvent,e=C.isNumber,c=C.merge,h=C.objectEach,t=C.pick;q=function(){function z(c,a,e,h,k){this.isNewLabel=this.isNew=!0;this.axis=c;this.pos=a;this.type=e||"";this.parameters=k||{};this.tickmarkOffset=this.parameters.tickmarkOffset;
160
+ this.options=this.parameters.options;f(this,"init");e||h||this.addLabel()}z.prototype.addLabel=function(){var c=this,h=c.axis,u=h.options,F=h.chart,y=h.categories,r=h.logarithmic,p=h.names,d=c.pos,l=t(c.options&&c.options.labels,u.labels),b=h.tickPositions,g=d===b[0],m=d===b[b.length-1],x=(!l.step||1===l.step)&&1===h.tickInterval;b=b.info;var J=c.label,L;y=this.parameters.category||(y?t(y[d],p[d],d):d);r&&e(y)&&(y=B(r.lin2log(y)));if(h.dateTime&&b){var E=F.time.resolveDTLFormat(u.dateTimeLabelFormats[!u.grid&&
161
+ b.higherRanks[d]||b.unitName]);var n=E.main}c.isFirst=g;c.isLast=m;var z={axis:h,chart:F,dateTimeLabelFormat:n,isFirst:g,isLast:m,pos:d,tick:c,tickPositionInfo:b,value:y};f(this,"labelFormat",z);var v=function(b){return l.formatter?l.formatter.call(b,b):l.format?(b.text=h.defaultLabelFormatter.call(b),a.format(l.format,b,F)):h.defaultLabelFormatter.call(b,b)};u=v.call(z,z);var q=E&&E.list;c.shortenLabel=q?function(){for(L=0;L<q.length;L++)if(k(z,{dateTimeLabelFormat:q[L]}),J.attr({text:v.call(z,z)}),
162
+ J.getBBox().width<h.getSlotWidth(c)-2*l.padding)return;J.attr({text:""})}:void 0;x&&h._addedPlotLB&&c.moveLabel(u,l);w(J)||c.movedLabel?J&&J.textStr!==u&&!x&&(!J.textWidth||l.style.width||J.styles.width||J.css({width:null}),J.attr({text:u}),J.textPxLength=J.getBBox().width):(c.label=J=c.createLabel({x:0,y:0},u,l),c.rotation=0)};z.prototype.createLabel=function(a,e,f){var h=this.axis,u=h.chart;if(a=w(e)&&f.enabled?u.renderer.text(e,a.x,a.y,f.useHTML).add(h.labelGroup):null)u.styledMode||a.css(c(f.style)),
163
+ a.textPxLength=a.getBBox().width;return a};z.prototype.destroy=function(){n(this,this.axis)};z.prototype.getPosition=function(c,a,e,h){var u=this.axis,r=u.chart,p=h&&r.oldChartHeight||r.chartHeight;c={x:c?B(u.translate(a+e,null,null,h)+u.transB):u.left+u.offset+(u.opposite?(h&&r.oldChartWidth||r.chartWidth)-u.right-u.left:0),y:c?p-u.bottom+u.offset-(u.opposite?u.height:0):B(p-u.translate(a+e,null,null,h)-u.transB)};c.y=A(c.y,-1E5,1E5);f(this,"afterGetPosition",{pos:c});return c};z.prototype.getLabelPosition=
164
+ function(c,a,e,h,k,r,p,d){var l=this.axis,b=l.transA,g=l.isLinked&&l.linkedParent?l.linkedParent.reversed:l.reversed,m=l.staggerLines,x=l.tickRotCorr||{x:0,y:0},u=h||l.reserveSpaceDefault?0:-l.labelOffset*("center"===l.labelAlign?.5:1),y={},E=k.y;w(E)||(E=0===l.side?e.rotation?-8:-e.getBBox().height:2===l.side?x.y+8:Math.cos(e.rotation*v)*(x.y-e.getBBox(!1,0).height/2));c=c+k.x+u+x.x-(r&&h?r*b*(g?-1:1):0);a=a+E-(r&&!h?r*b*(g?1:-1):0);m&&(e=p/(d||1)%m,l.opposite&&(e=m-e-1),a+=l.labelOffset/m*e);y.x=
165
+ c;y.y=Math.round(a);f(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:r,index:p});return y};z.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};z.prototype.getMarkPath=function(c,a,e,f,h,r){return r.crispLine([["M",c,a],["L",c+(h?0:-e),a+(h?e:0)]],f)};z.prototype.handleOverflow=function(c){var a=this.axis,e=a.options.labels,f=c.x,h=a.chart.chartWidth,r=a.chart.spacing,p=t(a.labelLeft,Math.min(a.pos,r[3]));r=t(a.labelRight,Math.max(a.isRadial?
166
+ 0:a.pos+a.len,h-r[1]));var d=this.label,l=this.rotation,b={left:0,center:.5,right:1}[a.labelAlign||d.attr("align")],g=d.getBBox().width,m=a.getSlotWidth(this),x={},k=m,L=1,E;if(l||"justify"!==e.overflow)0>l&&f-b*g<p?E=Math.round(f/Math.cos(l*v)-p):0<l&&f+b*g>r&&(E=Math.round((h-f)/Math.cos(l*v)));else if(h=f+(1-b)*g,f-b*g<p?k=c.x+k*(1-b)-p:h>r&&(k=r-c.x+k*b,L=-1),k=Math.min(m,k),k<m&&"center"===a.labelAlign&&(c.x+=L*(m-k-b*(m-Math.min(g,k)))),g>k||a.autoRotation&&(d.styles||{}).width)E=k;E&&(this.shortenLabel?
167
+ this.shortenLabel():(x.width=Math.floor(E)+"px",(e.style||{}).textOverflow||(x.textOverflow="ellipsis"),d.css(x)))};z.prototype.moveLabel=function(c,a){var e=this,f=e.label,k=e.axis,r=k.reversed,p=!1;f&&f.textStr===c?(e.movedLabel=f,p=!0,delete e.label):h(k.ticks,function(d){p||d.isNew||d===e||!d.label||d.label.textStr!==c||(e.movedLabel=d.label,p=!0,d.labelPos=e.movedLabel.xy,delete d.label)});if(!p&&(e.labelPos||f)){var d=e.labelPos||f.xy;f=k.horiz?r?0:k.width+k.left:d.x;k=k.horiz?d.y:r?k.width+
168
+ k.left:0;e.movedLabel=e.createLabel({x:f,y:k},c,a);e.movedLabel&&e.movedLabel.attr({opacity:0})}};z.prototype.render=function(c,a,e){var h=this.axis,k=h.horiz,r=this.pos,p=t(this.tickmarkOffset,h.tickmarkOffset);r=this.getPosition(k,r,p,a);p=r.x;var d=r.y;h=k&&p===h.pos+h.len||!k&&d===h.pos?-1:1;k=t(e,this.label&&this.label.newOpacity,1);e=t(e,1);this.isActive=!0;this.renderGridLine(a,e,h);this.renderMark(r,e,h);this.renderLabel(r,a,k,c);this.isNew=!1;f(this,"afterRender")};z.prototype.renderGridLine=
169
+ function(c,a,e){var f=this.axis,h=f.options,r={},p=this.pos,d=this.type,l=t(this.tickmarkOffset,f.tickmarkOffset),b=f.chart.renderer,g=this.gridLine,m=h.gridLineWidth,x=h.gridLineColor,k=h.gridLineDashStyle;"minor"===this.type&&(m=h.minorGridLineWidth,x=h.minorGridLineColor,k=h.minorGridLineDashStyle);g||(f.chart.styledMode||(r.stroke=x,r["stroke-width"]=m||0,r.dashstyle=k),d||(r.zIndex=1),c&&(a=0),this.gridLine=g=b.path().attr(r).addClass("highcharts-"+(d?d+"-":"")+"grid-line").add(f.gridGroup));
170
+ if(g&&(e=f.getPlotLinePath({value:p+l,lineWidth:g.strokeWidth()*e,force:"pass",old:c})))g[c||this.isNew?"attr":"animate"]({d:e,opacity:a})};z.prototype.renderMark=function(c,a,e){var f=this.axis,h=f.options,r=f.chart.renderer,p=this.type,d=f.tickSize(p?p+"Tick":"tick"),l=c.x;c=c.y;var b=t(h["minor"!==p?"tickWidth":"minorTickWidth"],!p&&f.isXAxis?1:0);h=h["minor"!==p?"tickColor":"minorTickColor"];var g=this.mark,m=!g;d&&(f.opposite&&(d[0]=-d[0]),g||(this.mark=g=r.path().addClass("highcharts-"+(p?p+
171
+ "-":"")+"tick").add(f.axisGroup),f.chart.styledMode||g.attr({stroke:h,"stroke-width":b})),g[m?"attr":"animate"]({d:this.getMarkPath(l,c,d[0],g.strokeWidth()*e,f.horiz,r),opacity:a}))};z.prototype.renderLabel=function(c,a,f,h){var k=this.axis,r=k.horiz,p=k.options,d=this.label,l=p.labels,b=l.step;k=t(this.tickmarkOffset,k.tickmarkOffset);var g=c.x;c=c.y;var m=!0;d&&e(g)&&(d.xy=c=this.getLabelPosition(g,c,d,r,l,k,h,b),this.isFirst&&!this.isLast&&!p.showFirstLabel||this.isLast&&!this.isFirst&&!p.showLastLabel?
172
+ m=!1:!r||l.step||l.rotation||a||0===f||this.handleOverflow(c),b&&h%b&&(m=!1),m&&e(c.y)?(c.opacity=f,d[this.isNewLabel?"attr":"animate"](c),this.isNewLabel=!1):(d.attr("y",-9999),this.isNewLabel=!0))};z.prototype.replaceMovedLabel=function(){var c=this.label,a=this.axis,e=a.reversed;if(c&&!this.isNew){var f=a.horiz?e?a.left:a.width+a.left:c.xy.x;e=a.horiz?c.xy.y:e?a.width+a.top:a.top;c.animate({x:f,y:e,opacity:0},void 0,c.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};
173
+ return z}();"";return q});K(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.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/Utilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Axis/Tick.js"]],function(a,q,C,D,A,B,w,n,k){var f=a.animObject,e=A.registerEventOptions,c=B.deg2rad,h=D.defaultOptions,t=w.arrayMax,z=w.arrayMin,v=w.clamp,H=w.correctFloat,u=w.defined,F=w.destroyObjectProperties,y=w.erase,
174
+ r=w.error,p=w.extend,d=w.fireEvent,l=w.getMagnitude,b=w.isArray,g=w.isNumber,m=w.isString,x=w.merge,J=w.normalizeTickInterval,L=w.objectEach,E=w.pick,O=w.relativeLength,P=w.removeEvent,ca=w.splat,X=w.syncTimeout;a=function(){function a(b,d){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=
175
+ this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(b,
176
+ d)}a.prototype.init=function(b,a){var c=a.isX;this.chart=b;this.horiz=b.inverted&&!this.isZAxis?!c:c;this.isXAxis=c;this.coll=this.coll||(c?"xAxis":"yAxis");d(this,"init",{userOptions:a});this.opposite=E(a.opposite,this.opposite);this.side=E(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var m=this.options,l=m.labels,f=m.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=E(m.reversed,this.reversed);this.visible=m.visible;this.zoomEnabled=m.zoomEnabled;
177
+ this.hasNames="category"===f||!0===m.categories;this.categories=m.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=u(m.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=m.minRange||m.maxZoom;this.range=m.range;this.offset=m.offset||0;this.min=this.max=null;a=E(m.crosshair,ca(b.options.tooltip.crosshairs)[c?
178
+ 0:1]);this.crosshair=!0===a?{}:a;-1===b.axes.indexOf(this)&&(c?b.axes.splice(b.xAxis.length,0,this):b.axes.push(this),b[this.coll].push(this));this.series=this.series||[];b.inverted&&!this.isZAxis&&c&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=g(l.rotation)?l.rotation:void 0;e(this,m);d(this,"afterInit")};a.prototype.setOptions=function(b){this.options=x(n.defaultXAxisOptions,"yAxis"===this.coll&&n.defaultYAxisOptions,[n.defaultTopAxisOptions,n.defaultRightAxisOptions,
179
+ n.defaultBottomAxisOptions,n.defaultLeftAxisOptions][this.side],x(h[this.coll],b));d(this,"afterSetOptions",{userOptions:b})};a.prototype.defaultLabelFormatter=function(b){var d=this.axis;b=this.chart.numberFormatter;var a=g(this.value)?this.value:NaN,c=d.chart.time,m=this.dateTimeLabelFormat,l=h.lang,e=l.numericSymbols;l=l.numericSymbolMagnitude||1E3;var f=d.logarithmic?Math.abs(a):d.tickInterval,x=e&&e.length;if(d.categories)var p=""+this.value;else if(m)p=c.dateFormat(m,a);else if(x&&1E3<=f)for(;x--&&
180
+ "undefined"===typeof p;)d=Math.pow(l,x+1),f>=d&&0===10*a%d&&null!==e[x]&&0!==a&&(p=b(a/d,-1)+e[x]);"undefined"===typeof p&&(p=1E4<=Math.abs(a)?b(a,-1):b(a,-1,void 0,""));return p};a.prototype.getSeriesExtremes=function(){var b=this,a=b.chart,c;d(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.stacking&&b.stacking.buildStacks();b.series.forEach(function(d){if(d.visible||!a.options.chart.ignoreHiddenSeries){var m=d.options,
181
+ l=m.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=l&&(l=null);if(b.isXAxis){if(m=d.xData,m.length){m=b.logarithmic?m.filter(b.validatePositiveValue):m;c=d.getXExtremes(m);var e=c.min;var f=c.max;g(e)||e instanceof Date||(m=m.filter(g),c=d.getXExtremes(m),e=c.min,f=c.max);m.length&&(b.dataMin=Math.min(E(b.dataMin,e),e),b.dataMax=Math.max(E(b.dataMax,f),f))}}else if(d=d.applyExtremes(),g(d.dataMin)&&(e=d.dataMin,b.dataMin=Math.min(E(b.dataMin,e),e)),g(d.dataMax)&&(f=d.dataMax,b.dataMax=Math.max(E(b.dataMax,
182
+ f),f)),u(l)&&(b.threshold=l),!m.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});d(this,"afterGetSeriesExtremes")};a.prototype.translate=function(b,d,a,c,m,e){var l=this.linkedParent||this,f=c&&l.old?l.old.min:l.min,x=l.minPixelPadding;m=(l.isOrdinal||l.brokenAxis&&l.brokenAxis.hasBreaks||l.logarithmic&&m)&&l.lin2val;var p=1,h=0;c=c&&l.old?l.old.transA:l.transA;c||(c=l.transA);a&&(p*=-1,h=l.len);l.reversed&&(p*=-1,h-=p*(l.sector||l.len));d?(b=(b*p+h-x)/c+f,m&&(b=l.lin2val(b))):(m&&(b=l.val2lin(b)),
183
+ b=g(f)?p*(b-f)*c+h+p*x+(g(e)?c*e:0):void 0);return b};a.prototype.toPixels=function(b,d){return this.translate(b,!1,!this.horiz,null,!0)+(d?0:this.pos)};a.prototype.toValue=function(b,d){return this.translate(b-(d?0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(b){function a(b,d,a){if("pass"!==J&&b<d||b>a)J?b=v(b,d,a):n=!0;return b}var c=this,m=c.chart,l=c.left,e=c.top,f=b.old,x=b.value,p=b.lineWidth,h=f&&m.oldChartHeight||m.chartHeight,I=f&&m.oldChartWidth||m.chartWidth,
184
+ r=c.transB,k=b.translatedValue,J=b.force,u,L,t,y,n;b={value:x,lineWidth:p,old:f,force:J,acrossPanes:b.acrossPanes,translatedValue:k};d(this,"getPlotLinePath",b,function(b){k=E(k,c.translate(x,null,null,f));k=v(k,-1E5,1E5);u=t=Math.round(k+r);L=y=Math.round(h-k-r);g(k)?c.horiz?(L=e,y=h-c.bottom,u=t=a(u,l,l+c.width)):(u=l,t=I-c.right,L=y=a(L,e,e+c.height)):(n=!0,J=!1);b.path=n&&!J?null:m.renderer.crispLine([["M",u,L],["L",t,y]],p||1)});return b.path};a.prototype.getLinearTickPositions=function(b,d,
185
+ a){var c=H(Math.floor(d/b)*b);a=H(Math.ceil(a/b)*b);var g=[],m;H(c+b)===c&&(m=20);if(this.single)return[d];for(d=c;d<=a;){g.push(d);d=H(d+b,m);if(d===l)break;var l=d}return g};a.prototype.getMinorTickInterval=function(){var b=this.options;return!0===b.minorTicks?E(b.minorTickInterval,"auto"):!1===b.minorTicks?null:b.minorTickInterval};a.prototype.getMinorTickPositions=function(){var b=this.options,d=this.tickPositions,a=this.minorTickInterval,c=this.pointRangePadding||0,g=this.min-c;c=this.max+c;
186
+ var m=c-g,l=[];if(m&&m/a<this.len/3){var e=this.logarithmic;if(e)this.paddedTicks.forEach(function(b,d,c){d&&l.push.apply(l,e.getLogTickPositions(a,c[d-1],c[d],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(a),g,c,b.startOfWeek));else for(b=g+(d[0]-g)%a;b<=c&&b!==l[0];b+=a)l.push(b)}0!==l.length&&this.trimTicks(l);return l};a.prototype.adjustForMinRange=function(){var b=this.options,d=this.logarithmic,a=this.min,
187
+ c=this.max,g=0,m,l,e,f;this.isXAxis&&"undefined"===typeof this.minRange&&!d&&(u(b.min)||u(b.max)?this.minRange=null:(this.series.forEach(function(b){e=b.xData;f=b.xIncrement?1:e.length-1;if(1<e.length)for(m=f;0<m;m--)if(l=e[m]-e[m-1],!g||l<g)g=l}),this.minRange=Math.min(5*g,this.dataMax-this.dataMin)));if(c-a<this.minRange){var x=this.dataMax-this.dataMin>=this.minRange;var p=this.minRange;var h=(p-c+a)/2;h=[a-h,E(b.min,a-h)];x&&(h[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);
188
+ a=t(h);c=[a+p,E(b.max,a+p)];x&&(c[2]=d?d.log2lin(this.dataMax):this.dataMax);c=z(c);c-a<p&&(h[0]=c-p,h[1]=E(b.min,c-p),a=t(h))}this.min=a;this.max=c};a.prototype.getClosest=function(){var b;this.categories?b=1:this.series.forEach(function(d){var a=d.closestPointRange,c=d.visible||!d.chart.options.chart.ignoreHiddenSeries;!d.noSharedTooltip&&u(a)&&c&&(b=u(b)?Math.min(b,a):a)});return b};a.prototype.nameToX=function(d){var a=b(this.categories),c=a?this.categories:this.names,g=d.options.x;d.series.requireSorting=
189
+ !1;u(g)||(g=this.options.uniqueNames?a?c.indexOf(d.name):E(c.keys[d.name],-1):d.series.autoIncrement());if(-1===g){if(!a)var m=c.length}else m=g;"undefined"!==typeof m&&(this.names[m]=d.name,this.names.keys[d.name]=m);return m};a.prototype.updateNames=function(){var b=this,d=this.names;0<d.length&&(Object.keys(d.keys).forEach(function(b){delete d.keys[b]}),d.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(d){d.xIncrement=null;if(!d.points||d.isDirtyData)b.max=Math.max(b.max,
190
+ d.xData.length-1),d.processData(),d.generatePoints();d.data.forEach(function(a,c){if(a&&a.options&&"undefined"!==typeof a.name){var g=b.nameToX(a);"undefined"!==typeof g&&g!==a.x&&(a.x=g,d.xData[c]=g)}})}))};a.prototype.setAxisTranslation=function(){var b=this,a=b.max-b.min,c=b.linkedParent,g=!!b.categories,l=b.isXAxis,e=b.axisPointRange||0,f=0,x=0,p=b.transA;if(l||g||e){var h=b.getClosest();c?(f=c.minPointOffset,x=c.pointRangePadding):b.series.forEach(function(d){var a=g?1:l?E(d.options.pointRange,
191
+ h,0):b.axisPointRange||0,c=d.options.pointPlacement;e=Math.max(e,a);if(!b.single||g)d=d.is("xrange")?!l:l,f=Math.max(f,d&&m(c)?0:a/2),x=Math.max(x,d&&"on"===c?0:a)});c=b.ordinal&&b.ordinal.slope&&h?b.ordinal.slope/h:1;b.minPointOffset=f*=c;b.pointRangePadding=x*=c;b.pointRange=Math.min(e,b.single&&g?1:a);l&&(b.closestPointRange=h)}b.translationSlope=b.transA=p=b.staticScale||b.len/(a+x||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=p*f;d(this,"afterSetAxisTranslation")};a.prototype.minFromRange=
192
+ function(){return this.max-this.range};a.prototype.setTickInterval=function(b){var a=this,c=a.chart,m=a.logarithmic,e=a.options,f=a.isXAxis,x=a.isLinked,p=e.tickPixelInterval,h=a.categories,k=a.softThreshold,I=e.maxPadding,L=e.minPadding,t=e.tickInterval,y=g(a.threshold)?a.threshold:null;a.dateTime||h||x||this.getTickAmount();var n=E(a.userMin,e.min);var z=E(a.userMax,e.max);if(x){a.linkedParent=c[a.coll][e.linkedTo];var F=a.linkedParent.getExtremes();a.min=E(F.min,F.dataMin);a.max=E(F.max,F.dataMax);
193
+ e.type!==a.linkedParent.options.type&&r(11,1,c)}else{if(k&&u(y))if(a.dataMin>=y)F=y,L=0;else if(a.dataMax<=y){var v=y;I=0}a.min=E(n,F,a.dataMin);a.max=E(z,v,a.dataMax)}m&&(a.positiveValuesOnly&&!b&&0>=Math.min(a.min,E(a.dataMin,a.min))&&r(10,1,c),a.min=H(m.log2lin(a.min),16),a.max=H(m.log2lin(a.max),16));a.range&&u(a.max)&&(a.userMin=a.min=n=Math.max(a.dataMin,a.minFromRange()),a.userMax=z=a.max,a.range=null);d(a,"foundExtremes");a.beforePadding&&a.beforePadding();a.adjustForMinRange();!(h||a.axisPointRange||
194
+ a.stacking&&a.stacking.usePercentage||x)&&u(a.min)&&u(a.max)&&(c=a.max-a.min)&&(!u(n)&&L&&(a.min-=c*L),!u(z)&&I&&(a.max+=c*I));g(a.userMin)||(g(e.softMin)&&e.softMin<a.min&&(a.min=n=e.softMin),g(e.floor)&&(a.min=Math.max(a.min,e.floor)));g(a.userMax)||(g(e.softMax)&&e.softMax>a.max&&(a.max=z=e.softMax),g(e.ceiling)&&(a.max=Math.min(a.max,e.ceiling)));k&&u(a.dataMin)&&(y=y||0,!u(n)&&a.min<y&&a.dataMin>=y?a.min=a.options.minRange?Math.min(y,a.max-a.minRange):y:!u(z)&&a.max>y&&a.dataMax<=y&&(a.max=a.options.minRange?
195
+ Math.max(y,a.min+a.minRange):y));g(a.min)&&g(a.max)&&!this.chart.polar&&a.min>a.max&&(u(a.options.min)?a.max=a.min:u(a.options.max)&&(a.min=a.max));a.tickInterval=a.min===a.max||"undefined"===typeof a.min||"undefined"===typeof a.max?1:x&&a.linkedParent&&!t&&p===a.linkedParent.options.tickPixelInterval?t=a.linkedParent.tickInterval:E(t,this.tickAmount?(a.max-a.min)/Math.max(this.tickAmount-1,1):void 0,h?1:(a.max-a.min)*p/Math.max(a.len,p));f&&!b&&a.series.forEach(function(b){b.processData(a.min!==
196
+ (a.old&&a.old.min)||a.max!==(a.old&&a.old.max))});a.setAxisTranslation();d(this,"initialAxisTranslation");a.pointRange&&!t&&(a.tickInterval=Math.max(a.pointRange,a.tickInterval));b=E(e.minTickInterval,a.dateTime&&!a.series.some(function(b){return b.noSharedTooltip})?a.closestPointRange:0);!t&&a.tickInterval<b&&(a.tickInterval=b);a.dateTime||a.logarithmic||t||(a.tickInterval=J(a.tickInterval,void 0,l(a.tickInterval),E(e.allowDecimals,.5>a.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));
197
+ this.tickAmount||(a.tickInterval=a.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var b=this.options,a=b.tickPositions,c=this.getMinorTickInterval(),g=this.hasVerticalPanning(),m="colorAxis"===this.coll,l=(m||!g)&&b.startOnTick;g=(m||!g)&&b.endOnTick;m=b.tickPositioner;this.tickmarkOffset=this.categories&&"between"===b.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===c&&this.tickInterval?this.tickInterval/5:c;this.single=this.min===this.max&&
198
+ u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==b.allowDecimals);this.tickPositions=c=a&&a.slice();!c&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?c=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b.units),this.min,this.max,b.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,
199
+ this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(c=[this.min,this.max],r(19,!1,this.chart)),c.length>this.len&&(c=[c[0],c.pop()],c[0]===c[1]&&(c.length=1)),this.tickPositions=c,m&&(m=m.apply(this,[this.min,this.max])))&&(this.tickPositions=c=m);this.paddedTicks=c.slice(0);this.trimTicks(c,l,g);this.isLinked||(this.single&&2>c.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&(this.min-=.5,this.max+=.5),
200
+ a||m||this.adjustTickAmount());d(this,"afterSetTickPositions")};a.prototype.trimTicks=function(b,a,c){var g=b[0],m=b[b.length-1],l=!this.isOrdinal&&this.minPointOffset||0;d(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==g)this.min=g;else for(;this.min-l>b[0];)b.shift();if(c)this.max=m;else for(;this.max+l<b[b.length-1];)b.pop();0===b.length&&u(g)&&!this.options.tickPositions&&b.push((m+g)/2)}};a.prototype.alignToOthers=function(){var b={},d=this.options,a;!1!==this.chart.options.chart.alignTicks&&
201
+ d.alignTicks&&!1!==d.startOnTick&&!1!==d.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(d){var c=d.options;c=[d.horiz?c.left:c.top,c.width,c.height,c.pane].join();d.series.length&&(b[c]?a=!0:b[c]=1)});return a};a.prototype.getTickAmount=function(){var b=this.options,d=b.tickPixelInterval,a=b.tickAmount;!u(b.tickInterval)&&!a&&this.len<d&&!this.isRadial&&!this.logarithmic&&b.startOnTick&&b.endOnTick&&(a=2);!a&&this.alignToOthers()&&(a=Math.ceil(this.len/d)+1);4>a&&(this.finalTickAmt=
202
+ a,a=5);this.tickAmount=a};a.prototype.adjustTickAmount=function(){var b=this.options,d=this.tickInterval,a=this.tickPositions,c=this.tickAmount,m=this.finalTickAmt,l=a&&a.length,e=E(this.threshold,this.softThreshold?0:null);if(this.hasData()&&g(this.min)&&g(this.max)){if(l<c){for(;a.length<c;)a.length%2||this.min===e?a.push(H(a[a.length-1]+d)):a.unshift(H(a[0]-d));this.transA*=(l-1)/(c-1);this.min=b.startOnTick?a[0]:Math.min(this.min,a[0]);this.max=b.endOnTick?a[a.length-1]:Math.max(this.max,a[a.length-
203
+ 1])}else l>c&&(this.tickInterval*=2,this.setTickPositions());if(u(m)){for(d=b=a.length;d--;)(3===m&&1===d%2||2>=m&&0<d&&d<b-1)&&a.splice(d,1);this.finalTickAmt=void 0}}};a.prototype.setScale=function(){var b=!1,a=!1;this.series.forEach(function(d){b=b||d.isDirtyData||d.isDirty;a=a||d.xAxis&&d.xAxis.isDirty||!1});this.setAxisSize();var c=this.len!==(this.old&&this.old.len);c||b||a||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||
204
+ this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=c||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();b&&this.panningState&&(this.panningState.isDirty=!0);d(this,"afterSetScale")};a.prototype.setExtremes=function(b,a,c,g,m){var l=this,e=l.chart;c=E(c,!0);l.series.forEach(function(b){delete b.kdTree});m=p(m,{min:b,max:a});
205
+ d(l,"setExtremes",m,function(){l.userMin=b;l.userMax=a;l.eventArgs=m;c&&e.redraw(g)})};a.prototype.zoom=function(b,a){var c=this,g=this.dataMin,m=this.dataMax,l=this.options,e=Math.min(g,E(l.min,g)),f=Math.max(m,E(l.max,m));b={newMin:b,newMax:a};d(this,"zoom",b,function(b){var d=b.newMin,a=b.newMax;if(d!==c.min||a!==c.max)c.allowZoomOutside||(u(g)&&(d<e&&(d=e),d>f&&(d=f)),u(m)&&(a<e&&(a=e),a>f&&(a=f))),c.displayBtn="undefined"!==typeof d||"undefined"!==typeof a,c.setExtremes(d,a,!1,void 0,{trigger:"zoom"});
206
+ b.zoomed=!0});return b.zoomed};a.prototype.setAxisSize=function(){var b=this.chart,d=this.options,a=d.offsets||[0,0,0,0],c=this.horiz,g=this.width=Math.round(O(E(d.width,b.plotWidth-a[3]+a[1]),b.plotWidth)),m=this.height=Math.round(O(E(d.height,b.plotHeight-a[0]+a[2]),b.plotHeight)),l=this.top=Math.round(O(E(d.top,b.plotTop+a[0]),b.plotHeight,b.plotTop));d=this.left=Math.round(O(E(d.left,b.plotLeft+a[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-m-l;this.right=b.chartWidth-g-d;this.len=Math.max(c?
207
+ g:m,0);this.pos=c?d:l};a.prototype.getExtremes=function(){var b=this.logarithmic;return{min:b?H(b.lin2log(this.min)):this.min,max:b?H(b.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(b){var d=this.logarithmic,a=d?d.lin2log(this.min):this.min;d=d?d.lin2log(this.max):this.max;null===b||-Infinity===b?b=a:Infinity===b?b=d:a>b?b=a:d<b&&(b=d);return this.translate(b,0,1,0,1)};a.prototype.autoLabelAlign=
208
+ function(b){var a=(E(b,0)-90*this.side+720)%360;b={align:"center"};d(this,"autoLabelAlign",b,function(b){15<a&&165>a?b.align="right":195<a&&345>a&&(b.align="left")});return b.align};a.prototype.tickSize=function(b){var a=this.options,c=E(a["tick"===b?"tickWidth":"minorTickWidth"],"tick"===b&&this.isXAxis&&!this.categories?1:0),g=a["tick"===b?"tickLength":"minorTickLength"];if(c&&g){"inside"===a[b+"Position"]&&(g=-g);var m=[g,c]}b={tickSize:m};d(this,"afterTickSize",b);return b.tickSize};a.prototype.labelMetrics=
209
+ function(){var b=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[b]&&this.ticks[b].label)};a.prototype.unsquish=function(){var b=this.options.labels,d=this.horiz,a=this.tickInterval,m=this.len/(((this.categories?1:0)+this.max-this.min)/a),l=b.rotation,e=this.labelMetrics(),f=Math.max(this.max-this.min,0),x=function(b){var d=b/(m||1);d=1<d?Math.ceil(d):1;d*a>f&&Infinity!==b&&Infinity!==m&&f&&(d=Math.ceil(f/a));return H(d*
210
+ a)},p=a,h,k,r=Number.MAX_VALUE;if(d){if(!b.staggerLines&&!b.step)if(g(l))var J=[l];else m<b.autoRotationLimit&&(J=b.autoRotation);J&&J.forEach(function(b){if(b===l||b&&-90<=b&&90>=b){k=x(Math.abs(e.h/Math.sin(c*b)));var d=k+Math.abs(b/360);d<r&&(r=d,h=b,p=k)}})}else b.step||(p=x(e.h));this.autoRotation=J;this.labelRotation=E(h,g(l)?l:0);return p};a.prototype.getSlotWidth=function(b){var d=this.chart,a=this.horiz,c=this.options.labels,m=Math.max(this.tickPositions.length-(this.categories?0:1),1),l=
211
+ d.margin[3];if(b&&g(b.slotWidth))return b.slotWidth;if(a&&2>c.step)return c.rotation?0:(this.staggerLines||1)*this.len/m;if(!a){b=c.style.width;if(void 0!==b)return parseInt(String(b),10);if(l)return l-d.spacing[3]}return.33*d.chartWidth};a.prototype.renderUnsquish=function(){var b=this.chart,d=b.renderer,a=this.tickPositions,c=this.ticks,g=this.options.labels,l=g.style,e=this.horiz,f=this.getSlotWidth(),x=Math.max(1,Math.round(f-2*g.padding)),p={},h=this.labelMetrics(),k=l.textOverflow,r=0;m(g.rotation)||
212
+ (p.rotation=g.rotation||0);a.forEach(function(b){b=c[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>r&&(r=b.label.textPxLength)});this.maxLabelLength=r;if(this.autoRotation)r>x&&r>h.h?p.rotation=this.labelRotation:this.labelRotation=0;else if(f){var E=x;if(!k){var J="clip";for(x=a.length;!e&&x--;){var u=a[x];if(u=c[u].label)u.styles&&"ellipsis"===u.styles.textOverflow?u.css({textOverflow:"clip"}):u.textPxLength>f&&u.css({width:f+"px"}),u.getBBox().height>this.len/a.length-
213
+ (h.h-h.f)&&(u.specificTextOverflow="ellipsis")}}}p.rotation&&(E=r>.5*b.chartHeight?.33*b.chartHeight:r,k||(J="ellipsis"));if(this.labelAlign=g.align||this.autoLabelAlign(this.labelRotation))p.align=this.labelAlign;a.forEach(function(b){var d=(b=c[b])&&b.label,a=l.width,g={};d&&(d.attr(p),b.shortenLabel?b.shortenLabel():E&&!a&&"nowrap"!==l.whiteSpace&&(E<d.textPxLength||"SPAN"===d.element.tagName)?(g.width=E+"px",k||(g.textOverflow=d.specificTextOverflow||J),d.css(g)):d.styles&&d.styles.width&&!g.width&&
214
+ !a&&d.css({width:null}),delete d.specificTextOverflow,b.rotation=p.rotation)},this);this.tickRotCorr=d.rotCorr(h.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(b){return b.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)};a.prototype.addTitle=function(b){var d=this.chart.renderer,a=this.horiz,c=this.opposite,g=this.options.title,m=this.chart.styledMode,l;this.axisTitle||((l=g.textAlign)||(l=(a?{low:"left",middle:"center",high:"right"}:
215
+ {low:c?"right":"left",middle:"center",high:c?"left":"right"})[g.align]),this.axisTitle=d.text(g.text||"",0,0,g.useHTML).attr({zIndex:7,rotation:g.rotation,align:l}).addClass("highcharts-axis-title"),m||this.axisTitle.css(x(g.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);m||g.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[b?"show":"hide"](b)};a.prototype.generateTick=function(b){var d=this.ticks;d[b]?d[b].addLabel():d[b]=new k(this,b)};a.prototype.getOffset=
216
+ function(){var b=this,a=this,c=a.chart,g=c.renderer,m=a.options,l=a.tickPositions,e=a.ticks,f=a.horiz,x=a.side,p=c.inverted&&!a.isZAxis?[1,0,3,2][x]:x,h=a.hasData(),k=m.title,r=m.labels,J=c.axisOffset;c=c.clipOffset;var t=[-1,1,1,-1][x],y=m.className,n=a.axisParent,z,F=0,ia=0,v=0;a.showAxis=z=h||m.showEmpty;a.staggerLines=a.horiz&&r.staggerLines||void 0;if(!a.axisGroup){var O=function(a,d,c){return g.g(a).attr({zIndex:c}).addClass("highcharts-"+b.coll.toLowerCase()+d+" "+(b.isRadial?"highcharts-radial-axis"+
217
+ d+" ":"")+(y||"")).add(n)};a.gridGroup=O("grid","-grid",m.gridZIndex);a.axisGroup=O("axis","",m.zIndex);a.labelGroup=O("axis-labels","-labels",r.zIndex)}h||a.isLinked?(l.forEach(function(b){a.generateTick(b)}),a.renderUnsquish(),a.reserveSpaceDefault=0===x||2===x||{1:"left",3:"right"}[x]===a.labelAlign,E(r.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&l.forEach(function(b){v=Math.max(e[b].getLabelSize(),v)}),a.staggerLines&&(v*=a.staggerLines),a.labelOffset=v*(a.opposite?-1:
218
+ 1)):L(e,function(b,a){b.destroy();delete e[a]});if(k&&k.text&&!1!==k.enabled&&(a.addTitle(z),z&&!1!==k.reserveSpace)){a.titleOffset=F=a.axisTitle.getBBox()[f?"height":"width"];var w=k.offset;ia=u(w)?0:E(k.margin,f?5:10)}a.renderLine();a.offset=t*E(m.offset,J[x]?J[x]+(m.margin||0):0);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};k=0===x?-a.labelMetrics().h:2===x?a.tickRotCorr.y:0;h=Math.abs(v)+ia;v&&(h=h-k+t*(f?E(r.y,a.tickRotCorr.y+8*t):r.x));a.axisTitleMargin=E(w,h);a.getMaxLabelDimensions&&(a.maxLabelDimensions=
219
+ a.getMaxLabelDimensions(e,l));f=this.tickSize("tick");J[x]=Math.max(J[x],(a.axisTitleMargin||0)+F+t*a.offset,h,l&&l.length&&f?f[0]+t*a.offset:0);m=m.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);c[p]=Math.max(c[p],m);d(this,"afterGetOffset")};a.prototype.getLinePath=function(b){var a=this.chart,d=this.opposite,c=this.offset,g=this.horiz,m=this.left+(d?this.width:0)+c;c=a.chartHeight-this.bottom-(d?this.height:0)+c;d&&(b*=-1);return a.renderer.crispLine([["M",g?this.left:m,g?c:this.top],["L",g?
220
+ a.chartWidth-this.right:m,g?c:a.chartHeight-this.bottom]],b)};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,zIndex:7}))};a.prototype.getTitlePosition=function(){var b=this.horiz,a=this.left,c=this.top,g=this.len,m=this.options.title,l=b?a:c,e=this.opposite,f=this.offset,x=m.x,p=m.y,h=this.axisTitle,
221
+ k=this.chart.renderer.fontMetrics(m.style.fontSize,h);h=Math.max(h.getBBox(null,0).height-k.h-1,0);g={low:l+(b?0:g),middle:l+g/2,high:l+(b?g:0)}[m.align];a=(b?c+this.height:a)+(b?1:-1)*(e?-1:1)*this.axisTitleMargin+[-h,h,k.f,-h][this.side];b={x:b?g+x:a+(e?this.width:0)+f+x,y:b?a+p-(e?this.height:0)+f:g+p};d(this,"afterGetTitlePosition",{titlePosition:b});return b};a.prototype.renderMinorTick=function(b,a){var d=this.minorTicks;d[b]||(d[b]=new k(this,b,"minor"));a&&d[b].isNew&&d[b].render(null,!0);
222
+ d[b].render(null,!1,1)};a.prototype.renderTick=function(b,a,d){var c=this.ticks;if(!this.isLinked||b>=this.min&&b<=this.max||this.grid&&this.grid.isColumn)c[b]||(c[b]=new k(this,b)),d&&c[b].isNew&&c[b].render(a,!0,-1),c[b].render(a)};a.prototype.render=function(){var b=this,a=b.chart,c=b.logarithmic,m=b.options,l=b.isLinked,e=b.tickPositions,x=b.axisTitle,p=b.ticks,h=b.minorTicks,r=b.alternateBands,J=m.stackLabels,E=m.alternateGridColor,u=b.tickmarkOffset,t=b.axisLine,y=b.showAxis,n=f(a.renderer.globalAnimation),
223
+ z,F;b.labelEdge.length=0;b.overlap=!1;[p,h,r].forEach(function(b){L(b,function(b){b.isActive=!1})});if(b.hasData()||l){var v=b.chart.hasRendered&&b.old&&g(b.old.min);b.minorTickInterval&&!b.categories&&b.getMinorTickPositions().forEach(function(a){b.renderMinorTick(a,v)});e.length&&(e.forEach(function(a,d){b.renderTick(a,d,v)}),u&&(0===b.min||b.single)&&(p[-1]||(p[-1]=new k(b,-1,null,!0)),p[-1].render(-1)));E&&e.forEach(function(d,g){F="undefined"!==typeof e[g+1]?e[g+1]+u:b.max-u;0===g%2&&d<b.max&&
224
+ F<=b.max+(a.polar?-u:u)&&(r[d]||(r[d]=new B.PlotLineOrBand(b)),z=d+u,r[d].options={from:c?c.lin2log(z):z,to:c?c.lin2log(F):F,color:E,className:"highcharts-alternate-grid"},r[d].render(),r[d].isActive=!0)});b._addedPlotLB||(b._addedPlotLB=!0,(m.plotLines||[]).concat(m.plotBands||[]).forEach(function(a){b.addPlotBandOrLine(a)}))}[p,h,r].forEach(function(b){var d=[],c=n.duration;L(b,function(b,a){b.isActive||(b.render(a,!1,0),b.isActive=!1,d.push(a))});X(function(){for(var a=d.length;a--;)b[d[a]]&&!b[d[a]].isActive&&
225
+ (b[d[a]].destroy(),delete b[d[a]])},b!==r&&a.hasRendered&&c?c:0)});t&&(t[t.isPlaced?"animate":"attr"]({d:this.getLinePath(t.strokeWidth())}),t.isPlaced=!0,t[y?"show":"hide"](y));x&&y&&(m=b.getTitlePosition(),g(m.y)?(x[x.isNew?"attr":"animate"](m),x.isNew=!1):(x.attr("y",-9999),x.isNew=!0));J&&J.enabled&&b.stacking&&b.stacking.renderStackTotals();b.old={len:b.len,max:b.max,min:b.min,transA:b.transA,userMax:b.userMax,userMin:b.userMin};b.isDirty=!1;d(this,"afterRender")};a.prototype.redraw=function(){this.visible&&
226
+ (this.render(),this.plotLinesAndBands.forEach(function(b){b.render()}));this.series.forEach(function(b){b.isDirty=!0})};a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps};a.prototype.destroy=function(b){var a=this,c=a.plotLinesAndBands,g=this.eventOptions;d(this,"destroy",{keepEvents:b});b||P(a);[a.ticks,a.minorTicks,a.alternateBands].forEach(function(b){F(b)});if(c)for(b=c.length;b--;)c[b].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(b){a[b]&&
227
+ (a[b]=a[b].destroy())});for(var m in a.plotLinesAndBandsGroups)a.plotLinesAndBandsGroups[m]=a.plotLinesAndBandsGroups[m].destroy();L(a,function(b,d){-1===a.getKeepProps().indexOf(d)&&delete a[d]});this.eventOptions=g};a.prototype.drawCrosshair=function(b,a){var c=this.crosshair,g=E(c&&c.snap,!0),m=this.chart,l,e=this.cross;d(this,"drawCrosshair",{e:b,point:a});b||(b=this.cross&&this.cross.e);if(c&&!1!==(u(a)||!g)){g?u(a)&&(l=E("colorAxis"!==this.coll?a.crosshairPos:null,this.isXAxis?a.plotX:this.len-
228
+ a.plotY)):l=b&&(this.horiz?b.chartX-this.pos:this.len-b.chartY+this.pos);if(u(l)){var f={value:a&&(this.isXAxis?a.x:E(a.stackY,a.y)),translatedValue:l};m.polar&&p(f,{isCrosshair:!0,chartX:b&&b.chartX,chartY:b&&b.chartY,point:a});f=this.getPlotLinePath(f)||null}if(!u(f)){this.hideCrosshair();return}g=this.categories&&!this.isRadial;e||(this.cross=e=m.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(g?"category ":"thin ")+(c.className||"")).attr({zIndex:E(c.zIndex,2)}).add(),m.styledMode||
229
+ (e.attr({stroke:c.color||(g?q.parse(C.highlightColor20).setOpacity(.25).get():C.neutralColor20),"stroke-width":E(c.width,1)}).css({"pointer-events":"none"}),c.dashStyle&&e.attr({dashstyle:c.dashStyle})));e.show().attr({d:f});g&&!c.width&&e.attr({"stroke-width":this.transA});this.cross.e=b}else this.hideCrosshair();d(this,"afterDrawCrosshair",{e:b,point:a})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();d(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var b=
230
+ this.chart.options.chart.panning;return!!(b&&b.enabled&&/y/.test(b.type))};a.prototype.validatePositiveValue=function(b){return g(b)&&0<b};a.prototype.update=function(b,a){var d=this.chart;b=x(this.userOptions,b);this.destroy(!0);this.init(d,b);d.isDirtyBox=!0;E(a,!0)&&d.redraw()};a.prototype.remove=function(b){for(var a=this.chart,d=this.coll,c=this.series,g=c.length;g--;)c[g]&&c[g].remove(!1);y(a.axes,this);y(a[d],this);a[d].forEach(function(b,a){b.options.index=b.userOptions.index=a});this.destroy();
231
+ a.isDirtyBox=!0;E(b,!0)&&a.redraw()};a.prototype.setTitle=function(b,a){this.update({title:b},a)};a.prototype.setCategories=function(b,a){this.update({categories:b},a)};a.defaultOptions=n.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a}();"";return a});K(a,"Core/Axis/DateTimeAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,q){var v=q.addEvent,D=q.getMagnitude,A=q.normalizeTickInterval,B=q.timeUnits,w=function(){function a(a){this.axis=
232
+ a}a.prototype.normalizeTimeTickInterval=function(a,f){var e=f||[["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]];f=e[e.length-1];var c=B[f[0]],h=f[1],k;for(k=0;k<e.length&&!(f=e[k],c=B[f[0]],h=f[1],e[k+1]&&a<=(c*h[h.length-1]+B[e[k+1][0]])/2);k++);c===B.year&&a<5*c&&(h=[1,2,5]);a=A(a/c,h,"year"===f[0]?Math.max(D(a/c),1):1);return{unitRange:c,count:a,unitName:f[0]}};
233
+ return a}();q=function(){function a(){}a.compose=function(a){a.keepProps.push("dateTime");a.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};v(a,"init",function(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new w(this))})};a.AdditionsClass=w;return a}();q.compose(a);return q});K(a,"Core/Axis/LogarithmicAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,q){var v=q.addEvent,D=q.getMagnitude,
234
+ A=q.normalizeTickInterval,B=q.pick,w=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,f,e,c){var h=this.axis,k=h.len,n=h.options,v=[];c||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),v=h.getLinearTickPositions(a,f,e);else if(.08<=a){var w=Math.floor(f),u,F=n=void 0;for(k=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];w<e+1&&!F;w++){var y=k.length;for(u=0;u<y&&!F;u++){var r=this.log2lin(this.lin2log(w)*k[u]);r>f&&(!c||n<=e)&&"undefined"!==typeof n&&v.push(n);
235
+ n>e&&(F=!0);n=r}}}else f=this.lin2log(f),e=this.lin2log(e),a=c?h.getMinorTickInterval():n.tickInterval,a=B("auto"===a?null:a,this.minorAutoInterval,n.tickPixelInterval/(c?5:1)*(e-f)/((c?k/h.tickPositions.length:k)||1)),a=A(a,void 0,D(a)),v=h.getLinearTickPositions(a,f,e).map(this.log2lin),c||(this.minorAutoInterval=a/5);c||(h.tickInterval=a);return v};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();q=function(){function a(){}
236
+ a.compose=function(a){a.keepProps.push("logarithmic");v(a,"init",function(a){var e=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new w(this))});v(a,"afterInit",function(){var a=this.logarithmic;a&&(this.lin2val=function(e){return a.lin2log(e)},this.val2lin=function(e){return a.log2lin(e)})})};return a}();q.compose(a);return q});K(a,"Core/Axis/PlotLineOrBand.js",[a["Core/Axis/Axis.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,
237
+ q,C){var v=C.arrayMax,A=C.arrayMin,B=C.defined,w=C.destroyObjectProperties,n=C.erase,k=C.extend,f=C.fireEvent,e=C.isNumber,c=C.merge,h=C.objectEach,t=C.pick,z=function(){function a(a,c){this.axis=a;c&&(this.options=c,this.id=c.id)}a.prototype.render=function(){f(this,"render");var a=this,e=a.axis,k=e.horiz,y=e.logarithmic,r=a.options,p=r.label,d=a.label,l=r.to,b=r.from,g=r.value,m=B(b)&&B(l),x=B(g),J=a.svgElem,L=!J,E=[],n=r.color,z=t(r.zIndex,0),v=r.events;E={"class":"highcharts-plot-"+(m?"band ":
238
+ "line ")+(r.className||"")};var w={},G=e.chart.renderer,A=m?"bands":"lines";y&&(b=y.log2lin(b),l=y.log2lin(l),g=y.log2lin(g));e.chart.styledMode||(x?(E.stroke=n||q.neutralColor40,E["stroke-width"]=t(r.width,1),r.dashStyle&&(E.dashstyle=r.dashStyle)):m&&(E.fill=n||q.highlightColor10,r.borderWidth&&(E.stroke=r.borderColor,E["stroke-width"]=r.borderWidth)));w.zIndex=z;A+="-"+z;(y=e.plotLinesAndBandsGroups[A])||(e.plotLinesAndBandsGroups[A]=y=G.g("plot-"+A).attr(w).add());L&&(a.svgElem=J=G.path().attr(E).add(y));
239
+ if(x)E=e.getPlotLinePath({value:g,lineWidth:J.strokeWidth(),acrossPanes:r.acrossPanes});else if(m)E=e.getPlotBandPath(b,l,r);else return;!a.eventsAdded&&v&&(h(v,function(b,d){J.on(d,function(b){v[d].apply(a,[b])})}),a.eventsAdded=!0);(L||!J.d)&&E&&E.length?J.attr({d:E}):J&&(E?(J.show(!0),J.animate({d:E})):J.d&&(J.hide(),d&&(a.label=d=d.destroy())));p&&(B(p.text)||B(p.formatter))&&E&&E.length&&0<e.width&&0<e.height&&!E.isFlat?(p=c({align:k&&m&&"center",x:k?!m&&4:10,verticalAlign:!k&&m&&"middle",y:k?
240
+ m?16:10:m?6:-4,rotation:k&&!m&&90},p),this.renderLabel(p,E,m,z)):d&&d.hide();return a};a.prototype.renderLabel=function(a,c,e,f){var h=this.label,p=this.axis.chart.renderer;h||(h={align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(e?"band":"line")+"-label "+(a.className||"")},h.zIndex=f,f=this.getLabelText(a),this.label=h=p.text(f,0,0,a.useHTML).attr(h).add(),this.axis.chart.styledMode||h.css(a.style));p=c.xBounds||[c[0][1],c[1][1],e?c[2][1]:c[0][1]];c=c.yBounds||[c[0][2],
241
+ c[1][2],e?c[2][2]:c[0][2]];e=A(p);f=A(c);h.align(a,!1,{x:e,y:f,width:v(p)-e,height:v(c)-f});h.show(!0)};a.prototype.getLabelText=function(a){return B(a.formatter)?a.formatter.call(this):a.text};a.prototype.destroy=function(){n(this.axis.plotLinesAndBands,this);delete this.axis;w(this)};return a}();k(a.prototype,{getPlotBandPath:function(a,c,f){void 0===f&&(f=this.options);var h=this.getPlotLinePath({value:c,force:!0,acrossPanes:f.acrossPanes});f=this.getPlotLinePath({value:a,force:!0,acrossPanes:f.acrossPanes});
242
+ var k=[],r=this.horiz,p=1;a=!e(this.min)||!e(this.max)||a<this.min&&c<this.min||a>this.max&&c>this.max;if(f&&h){if(a){var d=f.toString()===h.toString();p=0}for(a=0;a<f.length;a+=2){c=f[a];var l=f[a+1],b=h[a],g=h[a+1];"M"!==c[0]&&"L"!==c[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==b[0]&&"L"!==b[0]||"M"!==g[0]&&"L"!==g[0]||(r&&b[1]===c[1]?(b[1]+=p,g[1]+=p):r||b[2]!==c[2]||(b[2]+=p,g[2]+=p),k.push(["M",c[1],c[2]],["L",l[1],l[2]],["L",g[1],g[2]],["L",b[1],b[2]],["Z"]));k.isFlat=d}}return k},addPlotBand:function(a){return this.addPlotBandOrLine(a,
243
+ "plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(a,c){var e=this,f=new z(this,a),h=this.userOptions;this.visible&&(f=f.render());if(f){this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(a){e.addPlotBandOrLine(a)}));if(c){var r=h[c]||[];r.push(a);h[c]=r}this.plotLinesAndBands.push(f)}return f},removePlotBandOrLine:function(a){var c=this.plotLinesAndBands,e=this.options,f=this.userOptions;
244
+ if(c){for(var h=c.length;h--;)c[h].id===a&&c[h].destroy();[e.plotLines||[],f.plotLines||[],e.plotBands||[],f.plotBands||[]].forEach(function(c){for(h=c.length;h--;)(c[h]||{}).id===a&&n(c,c[h])})}},removePlotBand:function(a){this.removePlotBandOrLine(a)},removePlotLine:function(a){this.removePlotBandOrLine(a)}});return z});K(a,"Core/Tooltip.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,q,C,
245
+ D,A){var v=a.format,w=q.doc,n=A.clamp,k=A.css,f=A.defined,e=A.discardElement,c=A.extend,h=A.fireEvent,t=A.isArray,z=A.isNumber,G=A.isString,H=A.merge,u=A.pick,F=A.splat,y=A.syncTimeout,r=A.timeUnits;"";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",attributes:{id:"drop-shadow-"+
246
+ 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(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||"point")+"Formatter"]||
247
+ a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||"point")+"Format"]||"")})};a.prototype.cleanSplit=function(a){this.chart.series.forEach(function(d){var b=d&&d.tt;b&&(!b.isActive||a?d.tt=b.destroy():b.isActive=!1)})};a.prototype.defaultFormatter=function(a){var d=this.points||F(this);var b=[a.tooltipFooterHeaderFormatter(d[0])];b=b.concat(a.bodyFormatter(d));b.push(a.tooltipFooterHeaderFormatter(d[0],!0));return b};a.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());
248
+ this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),e(this.container));A.clearTimeout(this.hideTimer);A.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(a,c){var b=this.chart;var d=b.pointer;var m=b.inverted,e=b.plotTop,l=b.plotLeft,f=0,h=0,p,r;a=F(a);this.followPointer&&c?("undefined"===typeof c.chartX&&(c=d.normalize(c)),d=[c.chartX-l,c.chartY-e]):a[0].tooltipPos?d=a[0].tooltipPos:(a.forEach(function(a){p=
249
+ a.series.yAxis;r=a.series.xAxis;f+=a.plotX||0;h+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;r&&p&&(m?(f+=e+b.plotHeight-r.len-r.pos,h+=l+b.plotWidth-p.len-p.pos):(f+=r.pos-l,h+=p.pos-e))}),f/=a.length,h/=a.length,d=[m?b.plotWidth-h:f,m?b.plotHeight-f:h],this.shared&&1<a.length&&c&&(m?d[0]=c.chartX-l:d[1]=c.chartY-e));return d.map(Math.round)};a.prototype.getDateFormat=function(a,c,b,g){var d=this.chart.time,e=d.dateFormat("%m-%d %H:%M:%S.%L",c),l={millisecond:15,second:12,minute:9,hour:6,
250
+ day:3},f="millisecond";for(h in r){if(a===r.week&&+d.dateFormat("%w",c)===b&&"00:00:00.000"===e.substr(6)){var h="week";break}if(r[h]>a){h=f;break}if(l[h]&&e.substr(l[h])!=="01-01 00:00:00.000".substr(l[h]))break;"week"!==h&&(f=h)}if(h)var p=d.resolveDTLFormat(g[h]).main;return p};a.prototype.getLabel=function(){var a=this,c=this.chart.renderer,b=this.chart.styledMode,g=this.options,m="tooltip"+(f(g.className)?" "+g.className:""),e=g.style&&g.style.pointerEvents||(!this.followPointer&&g.stickOnContact?
251
+ "auto":"none"),h,p=function(){a.inContact=!0},r=function(){var b=a.chart.hoverSeries;a.inContact=!1;if(b&&b.onMouseOut)b.onMouseOut()};if(!this.label){if(this.outside){var u=this.chart.options.chart.style,t=D.getRendererType();this.container=h=q.doc.createElement("div");h.className="highcharts-tooltip-container";k(h,{position:"absolute",top:"1px",pointerEvents:e,zIndex:Math.max(this.options.style&&this.options.style.zIndex||0,(u&&u.zIndex||0)+3)});q.doc.body.appendChild(h);this.renderer=c=new t(h,
252
+ 0,0,u,void 0,void 0,c.styledMode)}this.split?this.label=c.g(m):(this.label=c.label("",0,0,g.shape||"callout",null,null,g.useHTML,null,m).attr({padding:g.padding,r:g.borderRadius}),b||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:e}).shadow(g.shadow));b&&g.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a.outside&&!a.split){var y=this.label,n=y.xSetter,z=y.ySetter;y.xSetter=function(b){n.call(y,
253
+ a.distance);h.style.left=b+"px"};y.ySetter=function(b){z.call(y,a.distance);h.style.top=b+"px"}}this.label.on("mouseenter",p).on("mouseleave",r).attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(a,c,b){var d=this.chart,m=this.distance,e={},l=d.inverted&&b.h||0,f,h=this.outside,p=h?w.documentElement.clientWidth-2*m:d.chartWidth,r=h?Math.max(w.body.scrollHeight,w.documentElement.scrollHeight,w.body.offsetHeight,w.documentElement.offsetHeight,w.documentElement.clientHeight):
254
+ d.chartHeight,k=d.pointer.getChartPosition(),t=function(g){var e="x"===g;return[g,e?p:r,e?a:c].concat(h?[e?a*k.scaleX:c*k.scaleY,e?k.left-m+(b.plotX+d.plotLeft)*k.scaleX:k.top-m+(b.plotY+d.plotTop)*k.scaleY,0,e?p:r]:[e?a:c,e?b.plotX+d.plotLeft:b.plotY+d.plotTop,e?d.plotLeft:d.plotTop,e?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},y=t("y"),n=t("x"),z=!this.followPointer&&u(b.ttBelow,!d.inverted===!!b.negative),v=function(b,a,d,c,g,f,x){var p=h?"y"===b?m*k.scaleY:m*k.scaleX:m,r=(d-c)/2,J=c<g-m,
255
+ E=g+m+c<a,u=g-p-d+r;g=g+p-r;if(z&&E)e[b]=g;else if(!z&&J)e[b]=u;else if(J)e[b]=Math.min(x-c,0>u-l?u:u-l);else if(E)e[b]=Math.max(f,g+l+d>a?g:g+l);else return!1},F=function(b,a,d,c,g){var l;g<m||g>a-m?l=!1:e[b]=g<d/2?1:g>a-c/2?a-c-2:g-d/2;return l},q=function(b){var a=y;y=n;n=a;f=b},M=function(){!1!==v.apply(0,y)?!1!==F.apply(0,n)||f||(q(!0),M()):f?e.x=e.y=0:(q(!0),M())};(d.inverted||1<this.len)&&q();M();return e};a.prototype.getXDateFormat=function(a,c,b){c=c.dateTimeLabelFormats;var d=b&&b.closestPointRange;
256
+ return(d?this.getDateFormat(d,a.x,b.options.startOfWeek,c):c.day)||c.year};a.prototype.hide=function(a){var d=this;A.clearTimeout(this.hideTimer);a=u(a,this.options.hideDelay,500);this.isHidden||(this.hideTimer=y(function(){d.getLabel().fadeOut(a?void 0:a);d.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&&
257
+ !a.scrollablePixelsY))};a.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)};a.prototype.move=function(a,e,b,g){var d=this,l=d.now,f=!1!==d.options.animation&&!d.isHidden&&(1<Math.abs(a-l.x)||1<Math.abs(e-l.y)),h=d.followPointer||1<d.len;c(l,{x:f?(2*l.x+a)/3:a,y:f?(l.y+e)/2:e,anchorX:h?void 0:f?(2*l.anchorX+b)/3:b,anchorY:h?void 0:f?(l.anchorY+g)/2:g});d.getLabel().attr(l);d.drawTracker();f&&(A.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=
258
+ setTimeout(function(){d&&d.move(a,e,b,g)},32))};a.prototype.refresh=function(a,c){var b=this.chart,d=this.options,m=F(a),e=m[0],l={},f=[],p=d.formatter||this.defaultFormatter;l=this.shared;var r=b.styledMode;if(d.enabled){A.clearTimeout(this.hideTimer);this.followPointer=!this.split&&e.series.tooltipOptions.followPointer;var k=this.getAnchor(a,c);var y=k[0];var n=k[1];!l||!t(a)&&a.series&&a.series.noSharedTooltip?l=e.getLabelConfig():(b.pointer.applyInactiveState(m),m.forEach(function(b){b.setState("hover");
259
+ f.push(b.getLabelConfig())}),l={x:e.category,y:e.y},l.points=f);this.len=f.length;a=p.call(l,this);p=e.series;this.distance=u(p.tooltipOptions.distance,16);if(!1===a)this.hide();else{if(this.split)this.renderSplit(a,m);else if(m=y,l=n,c&&b.pointer.isDirectTouch&&(m=c.chartX-b.plotLeft,l=c.chartY-b.plotTop),b.polar||!1===p.options.clip||p.shouldShowTooltip(m,l))c=this.getLabel(),d.style.width&&!r||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:a&&a.join?a.join(""):a}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+
260
+ u(e.colorIndex,p.colorIndex)),r||c.attr({stroke:d.borderColor||e.color||p.color||C.neutralColor60}),this.updatePosition({plotX:y,plotY:n,negative:e.negative,ttBelow:e.ttBelow,h:k[2]||0});else{this.hide();return}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}h(this,"refresh")}};a.prototype.renderSplit=function(a,e){function b(b,a,c,g,m){void 0===m&&(m=!0);c?(a=T?0:ea,b=n(b-g/2,Q.left,Q.right-g-(d.outside?D:0))):(a-=V,b=m?b-g-B:b+B,b=n(b,m?b:Q.left,Q.right));return{x:b,
261
+ y:a}}var d=this,m=d.chart,l=d.chart,f=l.chartWidth,h=l.chartHeight,p=l.plotHeight,r=l.plotLeft,k=l.plotTop,t=l.pointer,y=l.scrollablePixelsY;y=void 0===y?0:y;var z=l.scrollablePixelsX,v=l.scrollingContainer;v=void 0===v?{scrollLeft:0,scrollTop:0}:v;var F=v.scrollLeft;v=v.scrollTop;var A=l.styledMode,B=d.distance,H=d.options,M=d.options.positioner,Q=d.outside&&"number"!==typeof z?w.documentElement.getBoundingClientRect():{left:F,right:F+f,top:v,bottom:v+h},S=d.getLabel(),U=this.renderer||m.renderer,
262
+ T=!(!m.xAxis[0]||!m.xAxis[0].opposite);m=t.getChartPosition();var D=m.left;m=m.top;var V=k+v,da=0,ea=p-y;G(a)&&(a=[!1,a]);a=a.slice(0,e.length+1).reduce(function(a,c,g){if(!1!==c&&""!==c){g=e[g-1]||{isHeader:!0,plotX:e[0].plotX,plotY:p,series:{}};var m=g.isHeader,l=m?d:g.series;c=c.toString();var f=l.tt,h=g.isHeader;var x=g.series;var E="highcharts-color-"+u(g.colorIndex,x.colorIndex,"none");f||(f={padding:H.padding,r:H.borderRadius},A||(f.fill=H.backgroundColor,f["stroke-width"]=H.borderWidth),f=
263
+ U.label("",0,0,H[h?"headerShape":"shape"]||"callout",void 0,void 0,H.useHTML).addClass((h?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+E).attr(f).add(S));f.isActive=!0;f.attr({text:c});A||f.css(H.style).shadow(H.shadow).attr({stroke:H.borderColor||g.color||x.color||C.neutralColor80});l=l.tt=f;h=l.getBBox();c=h.width+l.strokeWidth();m&&(da=h.height,ea+=da,T&&(V-=da));x=g.plotX;x=void 0===x?0:x;E=g.plotY;E=void 0===E?0:E;f=g.series;if(g.isHeader){x=r+x;var J=k+p/2}else{var t=f.xAxis,y=
264
+ f.yAxis;x=t.pos+n(x,-B,t.len+B);f.shouldShowTooltip(0,y.pos-k+E,{ignoreX:!0})&&(J=y.pos+E)}x=n(x,Q.left-B,Q.right+B);"number"===typeof J?(h=h.height+1,E=M?M.call(d,c,h,g):b(x,J,m,c),a.push({align:M?0:void 0,anchorX:x,anchorY:J,boxWidth:c,point:g,rank:u(E.rank,m?1:0),size:h,target:E.y,tt:l,x:E.x})):l.isActive=!1}return a},[]);!M&&a.some(function(b){var a=(d.outside?D:0)+b.anchorX;return a<Q.left&&a+b.boxWidth<Q.right?!0:a<D-Q.left+b.boxWidth&&Q.right-a>a})&&(a=a.map(function(a){var d=b(a.anchorX,a.anchorY,
265
+ a.point.isHeader,a.boxWidth,!1);return c(a,{target:d.y,x:d.x})}));d.cleanSplit();q.distribute(a,ea);var Z=D,K=D;a.forEach(function(b){var a=b.x,c=b.boxWidth;b=b.isHeader;b||(d.outside&&D+a<Z&&(Z=D+a),!b&&d.outside&&Z+c>K&&(K=D+a))});a.forEach(function(b){var a=b.x,c=b.anchorX,g=b.pos,m=b.point.isHeader;g={visibility:"undefined"===typeof g?"hidden":"inherit",x:a,y:g+V,anchorX:c,anchorY:b.anchorY};if(d.outside&&a<c){var e=D-Z;0<e&&(m||(g.x=a+e,g.anchorX=c+e),m&&(g.x=(K-Z)/2,g.anchorX=c+e))}b.tt.attr(g)});
266
+ a=d.container;y=d.renderer;d.outside&&a&&y&&(l=S.getBBox(),y.setSize(l.width+l.x,l.height+l.y,!1),a.style.left=Z+"px",a.style.top=m+"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 g={x:0,y:0,width:0,height:0};b=this.getAnchor(b);var m=c.getBBox();b[0]+=a.plotLeft-c.translateX;b[1]+=a.plotTop-c.translateY;g.x=Math.min(0,b[0]);g.y=
267
+ Math.min(0,b[1]);g.width=0>b[0]?Math.max(Math.abs(b[0]),m.width-b[0]):Math.max(Math.abs(b[0]),m.width);g.height=0>b[1]?Math.max(Math.abs(b[1]),m.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),m.height);this.tracker?this.tracker.attr(g):(this.tracker=c.renderer.rect(g).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"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,
268
+ 'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(a,c){var b=c?"footer":"header",d=a.series,m=d.tooltipOptions,e=m.xDateFormat,l=d.xAxis,f=l&&"datetime"===l.options.type&&z(a.key),p=m[b+"Format"];c={isFooter:c,labelConfig:a};h(this,"headerFormatter",c,function(b){f&&!e&&(e=this.getXDateFormat(a,m,l));f&&e&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(b){p=p.replace("{point."+b+"}","{point."+b+":"+e+"}")});d.chart.styledMode&&(p=this.styledModeFormat(p));
269
+ b.text=v(p,{point:a,series:d},this.chart)});return c.text};a.prototype.update=function(a){this.destroy();H(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,H(!0,this.options,a))};a.prototype.updatePosition=function(a){var d=this.chart,b=d.pointer,c=this.getLabel(),m=a.plotX+d.plotLeft;d=a.plotY+d.plotTop;b=b.getChartPosition();a=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);if(this.outside){var e=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(c.width+
270
+ e,c.height+e,!1);if(1!==b.scaleX||1!==b.scaleY)k(this.container,{transform:"scale("+b.scaleX+", "+b.scaleY+")"}),m*=b.scaleX,d*=b.scaleY;m+=b.left-a.x;d+=b.top-a.y}this.move(Math.round(a.x),Math.round(a.y||0),m,d)};return a}();q.Tooltip=a;return q.Tooltip});K(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,q,C,D,A){var v=a.parse,w=q.charts,n=q.noop,k=A.addEvent,f=A.attr,e=A.css,c=A.defined,h=A.extend,
271
+ t=A.find,z=A.fireEvent,G=A.isNumber,H=A.isObject,u=A.objectEach,F=A.offset,y=A.pick,r=A.splat;a=function(){function a(a,c){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=!1;this.options=c;this.init(a,c)}a.prototype.applyInactiveState=function(a){var d=[],b;(a||[]).forEach(function(a){b=a.series;d.push(b);b.linkedParent&&d.push(b.linkedParent);b.linkedSeries&&(d=d.concat(b.linkedSeries));b.navigatorSeries&&d.push(b.navigatorSeries)});
272
+ this.chart.series.forEach(function(b){-1===d.indexOf(b)?b.setState("inactive",!0):b.options.inactiveOtherPoints&&b.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var d=this;this.eventsToUnbind.forEach(function(a){return a()});this.eventsToUnbind=[];q.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(d.tooltipTimeout);u(d,function(a,b){d[b]=void 0})};
273
+ a.prototype.drag=function(a){var d=this.chart,b=d.options.chart,c=this.zoomHor,m=this.zoomVert,e=d.plotLeft,f=d.plotTop,h=d.plotWidth,p=d.plotHeight,r=this.mouseDownX||0,k=this.mouseDownY||0,u=H(b.panning)?b.panning&&b.panning.enabled:b.panning,t=b.panKey&&a[b.panKey+"Key"],y=a.chartX,n=a.chartY,z=this.selectionMarker;if(!z||!z.touch)if(y<e?y=e:y>e+h&&(y=e+h),n<f?n=f:n>f+p&&(n=f+p),this.hasDragged=Math.sqrt(Math.pow(r-y,2)+Math.pow(k-n,2)),10<this.hasDragged){var F=d.isInsidePlot(r-e,k-f,{visiblePlotOnly:!0});
274
+ d.hasCartesianSeries&&(this.zoomX||this.zoomY)&&F&&!t&&!z&&(this.selectionMarker=z=d.renderer.rect(e,f,c?1:h,m?1:p,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||z.attr({fill:b.selectionMarkerFill||v(C.highlightColor80).setOpacity(.25).get()}));z&&c&&(c=y-r,z.attr({width:Math.abs(c),x:(0<c?0:c)+r}));z&&m&&(c=n-k,z.attr({height:Math.abs(c),y:(0<c?0:c)+k}));F&&!z&&u&&d.pan(a,b.panning)}};a.prototype.dragStart=function(a){var d=this.chart;d.mouseIsDown=a.type;d.cancelClick=
275
+ !1;d.mouseDownX=this.mouseDownX=a.chartX;d.mouseDownY=this.mouseDownY=a.chartY};a.prototype.drop=function(a){var d=this,b=this.chart,g=this.hasPinched;if(this.selectionMarker){var m={originalEvent:a,xAxis:[],yAxis:[]},f=this.selectionMarker,p=f.attr?f.attr("x"):f.x,r=f.attr?f.attr("y"):f.y,k=f.attr?f.attr("width"):f.width,u=f.attr?f.attr("height"):f.height,y;if(this.hasDragged||g)b.axes.forEach(function(b){if(b.zoomEnabled&&c(b.min)&&(g||d[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&G(p)&&G(r)){var e=
276
+ b.horiz,f="touchend"===a.type?b.minPixelPadding:0,l=b.toValue((e?p:r)+f);e=b.toValue((e?p+k:r+u)-f);m[b.coll].push({axis:b,min:Math.min(l,e),max:Math.max(l,e)});y=!0}}),y&&z(b,"selection",m,function(a){b.zoom(h(a,g?{animation:!1}:null))});G(b.index)&&(this.selectionMarker=this.selectionMarker.destroy());g&&this.scaleGroups()}b&&G(b.index)&&(e(b.container,{cursor:b._cursor}),b.cancelClick=10<this.hasDragged,b.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=
277
+ function(a,c,b){var d=this.chart,m=d.hoverPoint;d=d.tooltip;if(m&&d&&d.isStickyOnContact())return m;var e;a.forEach(function(a){var d=!(a.noSharedTooltip&&c)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(b,d);if((d=H(a,!0)&&a.series)&&!(d=!H(e,!0))){d=e.distX-a.distX;var g=e.dist-a.dist,m=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);d=0<(0!==d&&c?d:0!==g?g:0!==m?m:e.series.index>a.series.index?-1:1)}d&&(e=a)});return e};a.prototype.getChartCoordinatesFromPoint=
278
+ function(a,c){var b=a.series,d=b.xAxis;b=b.yAxis;var m=a.shapeArgs;if(d&&b){var e=y(a.clientX,a.plotX),f=a.plotY||0;a.isNode&&m&&G(m.x)&&G(m.y)&&(e=m.x,f=m.y);return c?{chartX:b.len+b.pos-f,chartY:d.len+d.pos-e}:{chartX:e+d.pos,chartY:f+b.pos}}if(m&&m.x&&m.y)return{chartX:m.x,chartY:m.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,c=F(a);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var b=a.offsetWidth;a=a.offsetHeight;
279
+ 2<b&&2<a&&(this.chartPosition.scaleX=c.width/b,this.chartPosition.scaleY=c.height/a);return this.chartPosition};a.prototype.getCoordinates=function(a){var d={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(b){d[b.isXAxis?"xAxis":"yAxis"].push({axis:b,value:b.toValue(a[b.horiz?"chartX":"chartY"])})});return d};a.prototype.getHoverData=function(a,c,b,g,m,e){var d=[];g=!(!g||!a);var f={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:m};z(this,"beforeGetHoverData",f);var l=c&&!c.stickyTracking?
280
+ [c]:b.filter(function(b){return f.filter?f.filter(b):b.visible&&!(!m&&b.directTouch)&&y(b.options.enableMouseTracking,!0)&&b.stickyTracking});var h=g||!e?a:this.findNearestKDPoint(l,m,e);c=h&&h.series;h&&(m&&!c.noSharedTooltip?(l=b.filter(function(b){return f.filter?f.filter(b):b.visible&&!(!m&&b.directTouch)&&y(b.options.enableMouseTracking,!0)&&!b.noSharedTooltip}),l.forEach(function(b){var a=t(b.points,function(b){return b.x===h.x&&!b.isNull});H(a)&&(b.chart.isBoosting&&(a=b.getPoint(a)),d.push(a))})):
281
+ d.push(h));f={hoverPoint:h};z(this,"afterGetHoverData",f);return{hoverPoint:f.hoverPoint,hoverSeries:c,hoverPoints:d}};a.prototype.getPointFromEvent=function(a){a=a.target;for(var d;a&&!d;)d=a.point,a=a.parentNode;return d};a.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var d=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!d||!a||d.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+d.index)&&this.inClass(a,"highcharts-tracker")))d.onMouseOut()};
282
+ a.prototype.inClass=function(a,c){for(var b;a;){if(b=f(a,"class")){if(-1!==b.indexOf(c))return!0;if(-1!==b.indexOf("highcharts-container"))return!1}a=a.parentNode}};a.prototype.init=function(a,c){this.options=c;this.chart=a;this.runChartClick=!(!c.chart.events||!c.chart.events.click);this.pinchDown=[];this.lastValidTouch={};D&&(a.tooltip=new D(a,c.tooltip),this.followTouchMove=y(c.tooltip.followTouchMove,!0));this.setDOMEvents()};a.prototype.normalize=function(a,c){var b=a.touches,d=b?b.length?b.item(0):
283
+ y(b.changedTouches,a.changedTouches)[0]:a;c||(c=this.getChartPosition());b=d.pageX-c.left;d=d.pageY-c.top;b/=c.scaleX;d/=c.scaleY;return h(a,{chartX:Math.round(b),chartY:Math.round(d)})};a.prototype.onContainerClick=function(a){var c=this.chart,b=c.hoverPoint;a=this.normalize(a);var d=c.plotLeft,m=c.plotTop;c.cancelClick||(b&&this.inClass(a.target,"highcharts-tracker")?(z(b.series,"click",h(a,{point:b})),c.hoverPoint&&b.firePointEvent("click",a)):(h(a,this.getCoordinates(a)),c.isInsidePlot(a.chartX-
284
+ d,a.chartY-m,{visiblePlotOnly:!0})&&z(c,"click",a)))};a.prototype.onContainerMouseDown=function(a){var c=1===((a.buttons||a.button)&1);a=this.normalize(a);if(q.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||c)this.zoomOption(a),c&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};a.prototype.onContainerMouseLeave=function(c){var d=w[y(a.hoverChartIndex,-1)],b=this.chart.tooltip;c=this.normalize(c);d&&(c.relatedTarget||c.toElement)&&(d.pointer.reset(),
285
+ d.pointer.chartPosition=void 0);b&&!b.isHidden&&this.reset()};a.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};a.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,
286
+ "highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};a.prototype.onDocumentTouchEnd=function(c){var d=w[y(a.hoverChartIndex,-1)];d&&d.pointer.drop(c)};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=function(a){var c=this.chart,b=this.chartPosition;
287
+ a=this.normalize(a,b);var d=c.tooltip;!b||d&&d.isStickyOnContact()||c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||this.inClass(a.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(c){var d=w[y(a.hoverChartIndex,-1)];d&&d.pointer.drop(c)};a.prototype.pinch=function(a){var c=this,b=c.chart,d=c.pinchDown,m=a.touches||[],e=m.length,f=c.lastValidTouch,p=c.hasZoom,r={},k=1===e&&(c.inClass(a.target,"highcharts-tracker")&&b.runTrackerClick||c.runChartClick),
288
+ u={},t=c.selectionMarker;1<e&&(c.initiated=!0);p&&c.initiated&&!k&&!1!==a.cancelable&&a.preventDefault();[].map.call(m,function(b){return c.normalize(b)});"touchstart"===a.type?([].forEach.call(m,function(b,a){d[a]={chartX:b.chartX,chartY:b.chartY}}),f.x=[d[0].chartX,d[1]&&d[1].chartX],f.y=[d[0].chartY,d[1]&&d[1].chartY],b.axes.forEach(function(a){if(a.zoomEnabled){var c=b.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,g=a.toPixels(Math.min(y(a.options.min,a.dataMin),a.dataMin)),m=a.toPixels(Math.max(y(a.options.max,
289
+ a.dataMax),a.dataMax)),e=Math.max(g,m);c.min=Math.min(a.pos,Math.min(g,m)-d);c.max=Math.max(a.pos+a.len,e+d)}}),c.res=!0):c.followTouchMove&&1===e?this.runPointActions(c.normalize(a)):d.length&&(t||(c.selectionMarker=t=h({destroy:n,touch:!0},b.plotBox)),c.pinchTranslate(d,m,r,t,u,f),c.hasPinched=p,c.scaleGroups(r,u),c.res&&(c.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(a,c,b,g,m,e){this.zoomHor&&this.pinchTranslateDirection(!0,a,c,b,g,m,e);this.zoomVert&&this.pinchTranslateDirection(!1,
290
+ a,c,b,g,m,e)};a.prototype.pinchTranslateDirection=function(a,c,b,g,m,e,f,h){var d=this.chart,l=a?"x":"y",p=a?"X":"Y",x="chart"+p,r=a?"width":"height",k=d["plot"+(a?"Left":"Top")],u=d.inverted,t=d.bounds[a?"h":"v"],y=1===c.length,J=c[0][x],L=!y&&c[1][x];c=function(){"number"===typeof F&&20<Math.abs(J-L)&&(z=h||Math.abs(v-F)/Math.abs(J-L));n=(k-v)/z+J;M=d["plot"+(a?"Width":"Height")]/z};var M,n,z=h||1,v=b[0][x],F=!y&&b[1][x];c();b=n;if(b<t.min){b=t.min;var w=!0}else b+M>t.max&&(b=t.max-M,w=!0);w?(v-=
291
+ .8*(v-f[l][0]),"number"===typeof F&&(F-=.8*(F-f[l][1])),c()):f[l]=[v,F];u||(e[l]=n-k,e[r]=M);e=u?1/z:z;m[r]=M;m[l]=b;g[u?a?"scaleY":"scaleX":"scale"+p]=z;g["translate"+p]=e*k+(v-e*J)};a.prototype.reset=function(a,c){var b=this.chart,d=b.hoverSeries,m=b.hoverPoint,e=b.hoverPoints,f=b.tooltip,l=f&&f.shared?e:m;a&&l&&r(l).forEach(function(b){b.series.isCartesian&&"undefined"===typeof b.plotX&&(a=!1)});if(a)f&&l&&r(l).length&&(f.refresh(l),f.shared&&e?e.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&
292
+ (b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):m&&(m.setState(m.state,!0),b.axes.forEach(function(b){b.crosshair&&m.series[b.coll]===b&&b.drawCrosshair(null,m)})));else{if(m)m.onMouseOut();e&&e.forEach(function(b){b.setState()});if(d)d.onMouseOut();f&&f.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());b.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=b.hoverPoints=b.hoverPoint=null}};
293
+ a.prototype.runPointActions=function(c,e){var b=this.chart,d=b.tooltip&&b.tooltip.options.enabled?b.tooltip:void 0,m=d?d.shared:!1,f=e||b.hoverPoint,l=f&&f.series||b.hoverSeries;e=this.getHoverData(f,l,b.series,(!c||"touchmove"!==c.type)&&(!!e||l&&l.directTouch&&this.isDirectTouch),m,c);f=e.hoverPoint;l=e.hoverSeries;var h=e.hoverPoints;e=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split;m=m&&l&&!l.noSharedTooltip;if(f&&(f!==b.hoverPoint||d&&d.isHidden)){(b.hoverPoints||[]).forEach(function(b){-1===
294
+ h.indexOf(b)&&b.setState()});if(b.hoverSeries!==l)l.onMouseOver();this.applyInactiveState(h);(h||[]).forEach(function(b){b.setState("hover")});b.hoverPoint&&b.hoverPoint.firePointEvent("mouseOut");if(!f.series)return;b.hoverPoints=h;b.hoverPoint=f;f.firePointEvent("mouseOver");d&&d.refresh(m?h:f,c)}else e&&d&&!d.isHidden&&(f=d.getAnchor([{}],c),b.isInsidePlot(f[0],f[1],{visiblePlotOnly:!0})&&d.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=k(b.container.ownerDocument,
295
+ "mousemove",function(b){var c=w[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));b.axes.forEach(function(a){var d=y((a.crosshair||{}).snap,!0),g;d&&((g=b.hoverPoint)&&g.series[a.coll]===a||(g=t(h,function(b){return b.series[a.coll]===a})));g||!d?a.drawCrosshair(c,g):a.hideCrosshair()})};a.prototype.scaleGroups=function(a,c){var b=this.chart;b.series.forEach(function(d){var g=a||d.getPlotBox();d.xAxis&&d.xAxis.zoomEnabled&&d.group&&(d.group.attr(g),
296
+ d.markerGroup&&(d.markerGroup.attr(g),d.markerGroup.clip(c?b.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(g))});b.clipRect.attr(c||b.clipBox)};a.prototype.setDOMEvents=function(){var c=this,e=this.chart.container,b=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this);e.onmousemove=this.onContainerMouseMove.bind(this);e.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(k(e,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(k(e,"mouseleave",
297
+ this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=k(b,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(k(g,"scroll",function(){delete c.chartPosition})),g=g.parentElement;q.hasTouch&&(this.eventsToUnbind.push(k(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(k(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),
298
+ a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=k(b,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var c=this.chart,e=q.charts[y(a.hoverChartIndex,-1)];if(e&&e!==c)e.pointer.onContainerMouseLeave({relatedTarget:!0});e&&e.mouseIsDown||(a.hoverChartIndex=c.index)};a.prototype.touch=function(a,c){var b=this.chart,d;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(d=b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop,
299
+ {visiblePlotOnly:!0}))&&!b.openMenu){c&&this.runPointActions(a);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}y(e,!0)&&this.pinch(a)}else c&&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)};a.prototype.zoomOption=function(a){var c=this.chart,b=c.options.chart;c=c.inverted;var d=b.zoomType||
300
+ "";/touch/.test(a.type)&&(d=y(b.pinchType,d));this.zoomX=a=/x/.test(d);this.zoomY=b=/y/.test(d);this.zoomHor=a&&!c||b&&c;this.zoomVert=b&&!c||a&&c;this.hasZoom=a||b};return a}();"";return a});K(a,"Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,q,C){function v(){var a=[];a.item=function(a){return this[a]};h(z,function(c){a.push({pageX:c.pageX,pageY:c.pageY,target:c.target})});return a}function A(a,c,e,f){var h=w[q.hoverChartIndex||NaN];"touch"!==a.pointerType&&
301
+ a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!h||(h=h.pointer,f(a),h[c]({type:e,target:a.currentTarget,preventDefault:k,touches:v()}))}var B=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,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),w=a.charts,n=
302
+ a.doc,k=a.noop,f=a.win,e=C.addEvent,c=C.css,h=C.objectEach,t=C.removeEvent,z={},G=!!f.PointerEvent;return function(h){function k(){return null!==h&&h.apply(this,arguments)||this}B(k,h);k.isRequired=function(){return!(a.hasTouch||!f.PointerEvent&&!f.MSPointerEvent)};k.prototype.batchMSEvents=function(a){a(this.chart.container,G?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,G?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(n,G?"pointerup":"MSPointerUp",
303
+ this.onDocumentPointerUp)};k.prototype.destroy=function(){this.batchMSEvents(t);h.prototype.destroy.call(this)};k.prototype.init=function(a,e){h.prototype.init.call(this,a,e);this.hasZoom&&c(a.container,{"-ms-touch-action":"none","touch-action":"none"})};k.prototype.onContainerPointerDown=function(a){A(a,"onContainerTouchStart","touchstart",function(a){z[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};k.prototype.onContainerPointerMove=function(a){A(a,"onContainerTouchMove","touchmove",
304
+ function(a){z[a.pointerId]={pageX:a.pageX,pageY:a.pageY};z[a.pointerId].target||(z[a.pointerId].target=a.currentTarget)})};k.prototype.onDocumentPointerUp=function(a){A(a,"onDocumentTouchEnd","touchend",function(a){delete z[a.pointerId]})};k.prototype.setDOMEvents=function(){h.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(e)};return k}(q)});K(a,"Core/Series/Point.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],
305
+ a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B){var v=q.animObject,n=C.format,k=A.defaultOptions,f=B.addEvent,e=B.defined,c=B.erase,h=B.extend,t=B.fireEvent,z=B.getNestedProperty,G=B.isArray,H=B.isFunction,u=B.isNumber,F=B.isObject,y=B.merge,r=B.objectEach,p=B.pick,d=B.syncTimeout,l=B.removeEvent,b=B.uniqueKey;"";q=function(){function g(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=
306
+ this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}g.prototype.animateBeforeDestroy=function(){var b=this,a={x:b.startXPos,opacity:0},c,d=b.getGraphicalProps();d.singular.forEach(function(d){c="dataLabel"===d;b[d]=b[d].animate(c?{x:b[d].startXPos,y:b[d].startYPos,opacity:0}:a)});d.plural.forEach(function(a){b[a].forEach(function(a){a.element&&a.animate(h({x:b.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})};g.prototype.applyOptions=function(b,
307
+ a){var c=this.series,d=c.options.pointValKey||c.pointValKey;b=g.prototype.optionsToObject.call(this,b);h(this,b);this.options=this.options?h(this.options,b):b;b.group&&delete this.group;b.dataLabels&&delete this.dataLabels;d&&(this.y=g.prototype.getNestedProperty.call(this,d));this.formatPrefix=(this.isNull=p(this.isValid&&!this.isValid(),null===this.x||!u(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof a&&c.xAxis&&c.xAxis.hasNames&&(this.x=c.xAxis.nameToX(this));
308
+ "undefined"===typeof this.x&&c&&(this.x="undefined"===typeof a?c.autoIncrement(this):a);return this};g.prototype.destroy=function(){function b(){if(a.graphic||a.dataLabel||a.dataLabels)l(a),a.destroyElements();for(p in a)a[p]=null}var a=this,g=a.series,e=g.chart;g=g.options.dataSorting;var f=e.hoverPoints,h=v(a.series.chart.renderer.globalAnimation),p;a.legendItem&&e.legend.destroyItem(a);f&&(a.setState(),c(f,a),f.length||(e.hoverPoints=null));if(a===e.hoverPoint)a.onMouseOut();g&&g.enabled?(this.animateBeforeDestroy(),
309
+ d(b,h.duration)):b();e.pointCount--};g.prototype.destroyElements=function(b){var a=this;b=a.getGraphicalProps(b);b.singular.forEach(function(b){a[b]=a[b].destroy()});b.plural.forEach(function(b){a[b].forEach(function(b){b.element&&b.destroy()});delete a[b]})};g.prototype.firePointEvent=function(b,a,c){var d=this,g=this.series.options;(g.point.events[b]||d.options&&d.options.events&&d.options.events[b])&&d.importEvents();"click"===b&&g.allowPointSelect&&(c=function(b){d.select&&d.select(null,b.ctrlKey||
310
+ b.metaKey||b.shiftKey)});t(d,b,a,c)};g.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};g.prototype.getGraphicalProps=function(b){var a=
311
+ this,c=[],d,g={singular:[],plural:[]};b=b||{graphic:1,dataLabel:1};b.graphic&&c.push("graphic","upperGraphic","shadowGroup");b.dataLabel&&c.push("dataLabel","dataLabelUpper","connector");for(d=c.length;d--;){var e=c[d];a[e]&&g.singular.push(e)}["dataLabel","connector"].forEach(function(c){var d=c+"s";b[c]&&a[d]&&g.plural.push(d)});return g};g.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,
312
+ point:this,percentage:this.percentage,total:this.total||this.stackTotal}};g.prototype.getNestedProperty=function(b){if(b)return 0===b.indexOf("custom.")?z(b,this.options):this[b]};g.prototype.getZone=function(){var b=this.series,a=b.zones;b=b.zoneAxis||"y";var c=0,d;for(d=a[c];this[b]>=d.value;)d=a[++c];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};g.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||
313
+ this.graphic.element.nodeName))!==this.shapeType};g.prototype.init=function(a,c,d){this.series=a;this.applyOptions(c,d);this.id=e(this.id)?this.id:b();this.resolveColor();a.chart.pointCount++;t(this,"afterInit");return this};g.prototype.optionsToObject=function(b){var a={},c=this.series,d=c.options.keys,e=d||c.pointArrayMap||["y"],f=e.length,m=0,h=0;if(u(b)||null===b)a[e[0]]=b;else if(G(b))for(!d&&b.length>f&&(c=typeof b[0],"string"===c?a.name=b[0]:"number"===c&&(a.x=b[0]),m++);h<f;)d&&"undefined"===
314
+ typeof b[m]||(0<e[h].indexOf(".")?g.prototype.setNestedProperty(a,b[m],e[h]):a[e[h]]=b[m]),m++,h++;else"object"===typeof b&&(a=b,b.dataLabels&&(c._hasPointLabels=!0),b.marker&&(c._hasPointMarkers=!0));return a};g.prototype.resolveColor=function(){var b=this.series;var a=b.chart.options.chart.colorCount;var c=b.chart.styledMode;delete this.nonZonedColor;if(b.options.colorByPoint){if(!c){a=b.options.colors||b.chart.options.colors;var d=a[b.colorCounter];a=a.length}c=b.colorCounter;b.colorCounter++;
315
+ b.colorCounter===a&&(b.colorCounter=0)}else c||(d=b.color),c=b.colorIndex;this.colorIndex=p(this.options.colorIndex,c);this.color=p(this.options.color,d)};g.prototype.setNestedProperty=function(b,a,c){c.split(".").reduce(function(b,c,d,g){b[c]=g.length-1===d?a:F(b[c],!0)?b[c]:{};return b[c]},b);return b};g.prototype.tooltipFormatter=function(b){var a=this.series,c=a.tooltipOptions,d=p(c.valueDecimals,""),g=c.valuePrefix||"",e=c.valueSuffix||"";a.chart.styledMode&&(b=a.chart.tooltip.styledModeFormat(b));
316
+ (a.pointArrayMap||["y"]).forEach(function(a){a="{point."+a;if(g||e)b=b.replace(RegExp(a+"}","g"),g+a+"}"+e);b=b.replace(RegExp(a+"}","g"),a+":,."+d+"f}")});return n(b,{point:this,series:this.series},a.chart)};g.prototype.update=function(b,a,c,d){function g(){e.applyOptions(b);var d=m&&e.hasDummyGraphic;d=null===e.y?!d:d;m&&d&&(e.graphic=m.destroy(),delete e.hasDummyGraphic);F(b,!0)&&(m&&m.element&&b&&b.marker&&"undefined"!==typeof b.marker.symbol&&(e.graphic=m.destroy()),b&&b.dataLabels&&e.dataLabel&&
317
+ (e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));h=e.index;f.updateParallelArrays(e,h);x.data[h]=F(x.data[h],!0)||F(b,!0)?e.options:p(b,x.data[h]);f.isDirty=f.isDirtyData=!0;!f.fixedBox&&f.hasCartesianSeries&&(l.isDirtyBox=!0);"point"===x.legendType&&(l.isDirtyLegend=!0);a&&l.redraw(c)}var e=this,f=e.series,m=e.graphic,h,l=f.chart,x=f.options;a=p(a,!0);!1===d?g():e.firePointEvent("update",{options:b},g)};g.prototype.remove=function(b,a){this.series.removePoint(this.series.data.indexOf(this),
318
+ b,a)};g.prototype.select=function(b,a){var c=this,d=c.series,g=d.chart;this.selectedStaging=b=p(b,!c.selected);c.firePointEvent(b?"select":"unselect",{accumulate:a},function(){c.selected=c.options.selected=b;d.options.data[d.data.indexOf(c)]=c.options;c.setState(b&&"select");a||g.getSelectedPoints().forEach(function(b){var a=b.series;b.selected&&b!==c&&(b.selected=b.options.selected=!1,a.options.data[a.data.indexOf(b)]=b.options,b.setState(g.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),
319
+ b.firePointEvent("unselect"))})});delete this.selectedStaging};g.prototype.onMouseOver=function(b){var a=this.series.chart,c=a.pointer;b=b?c.normalize(b):c.getChartCoordinatesFromPoint(this,a.inverted);c.runPointActions(b,this)};g.prototype.onMouseOut=function(){var b=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(b.hoverPoints||[]).forEach(function(b){b.setState()});b.hoverPoints=b.hoverPoint=null};g.prototype.importEvents=function(){if(!this.hasImportedEvents){var b=
320
+ this,a=y(b.series.options.point,b.options).events;b.events=a;r(a,function(a,c){H(a)&&f(b,c,a)});this.hasImportedEvents=!0}};g.prototype.setState=function(b,c){var d=this.series,g=this.state,e=d.options.states[b||"normal"]||{},f=k.plotOptions[d.type].marker&&d.options.marker,m=f&&!1===f.enabled,l=f&&f.states&&f.states[b||"normal"]||{},x=!1===l.enabled,r=d.stateMarkerGraphic,y=this.marker||{},n=d.chart,z=d.halo,v,F=f&&d.markerAttribs;b=b||"";if(!(b===this.state&&!c||this.selected&&"select"!==b||!1===
321
+ e.enabled||b&&(x||m&&!1===l.enabled)||b&&y.states&&y.states[b]&&!1===y.states[b].enabled)){this.state=b;F&&(v=d.markerAttribs(this,b));if(this.graphic&&!this.hasDummyGraphic){g&&this.graphic.removeClass("highcharts-point-"+g);b&&this.graphic.addClass("highcharts-point-"+b);if(!n.styledMode){var M=d.pointAttribs(this,b);var w=p(n.options.chart.animation,e.animation);d.options.inactiveOtherPoints&&u(M.opacity)&&((this.dataLabels||[]).forEach(function(b){b&&b.animate({opacity:M.opacity},w)}),this.connector&&
322
+ this.connector.animate({opacity:M.opacity},w));this.graphic.animate(M,w)}v&&this.graphic.animate(v,p(n.options.chart.animation,l.animation,f.animation));r&&r.hide()}else{if(b&&l){g=y.symbol||d.symbol;r&&r.currentSymbol!==g&&(r=r.destroy());if(v)if(r)r[c?"animate":"attr"]({x:v.x,y:v.y});else g&&(d.stateMarkerGraphic=r=n.renderer.symbol(g,v.x,v.y,v.width,v.height).add(d.markerGroup),r.currentSymbol=g);!n.styledMode&&r&&r.attr(d.pointAttribs(this,b))}r&&(r[b&&this.isInside?"show":"hide"](),r.element.point=
323
+ this)}e=e.halo;v=(r=this.graphic||r)&&r.visibility||"inherit";e&&e.size&&r&&"hidden"!==v&&!this.isCluster?(z||(d.halo=z=n.renderer.path().add(r.parentGroup)),z.show()[c?"animate":"attr"]({d:this.haloPath(e.size)}),z.attr({"class":"highcharts-halo highcharts-color-"+p(this.colorIndex,d.colorIndex)+(this.className?" "+this.className:""),visibility:v,zIndex:-1}),z.point=this,n.styledMode||z.attr(h({fill:this.color||d.color,"fill-opacity":e.opacity},a.filterUserAttributes(e.attributes||{})))):z&&z.point&&
324
+ z.point.haloPath&&z.animate({d:z.point.haloPath(0)},null,z.hide);t(this,"afterSetState",{state:b})}};g.prototype.haloPath=function(b){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-b,this.plotY-b,2*b,2*b)};return g}();return D.Point=q});K(a,"Core/Legend.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,q,C,D,A){var v=a.animObject,w=a.setAnimation,n=q.format;a=C.isFirefox;
325
+ var k=C.marginNames;q=C.win;var f=A.addEvent,e=A.createElement,c=A.css,h=A.defined,t=A.discardElement,z=A.find,G=A.fireEvent,H=A.isNumber,u=A.merge,F=A.pick,y=A.relativeLength,r=A.stableSort,p=A.syncTimeout;A=A.wrap;var d=function(){function a(b,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=
326
+ this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=b;this.init(b,a)}a.prototype.init=function(b,a){this.chart=b;this.setOptions(a);a.enabled&&(this.render(),f(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=f(this.chart,"render",function(){this.legend.proximatePositions();
327
+ this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(b){var a=F(b.padding,8);this.options=b;this.chart.styledMode||(this.itemStyle=b.itemStyle,this.itemHiddenStyle=u(this.itemStyle,b.itemHiddenStyle));this.itemMarginTop=b.itemMarginTop||0;this.itemMarginBottom=b.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=F(b.symbolWidth,16);this.pages=[];this.proximate="proximate"===b.layout&&!this.chart.inverted;this.baseline=void 0};
328
+ a.prototype.update=function(b,a){var c=this.chart;this.setOptions(u(!0,this.options,b));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;F(a,!0)&&c.redraw();G(this,"afterUpdate")};a.prototype.colorizeItem=function(b,a){b.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var c=this.options,d=b.legendItem,e=b.legendLine,g=b.legendSymbol,f=this.itemHiddenStyle.color;c=a?c.itemStyle.color:f;var h=a?b.color||f:f,l=b.options&&b.options.marker,p={fill:h};d&&
329
+ d.css({fill:c,color:c});e&&e.attr({stroke:h});g&&(l&&g.isMarker&&(p=b.pointAttribs(),a||(p.stroke=p.fill=f)),g.attr(p))}G(this,"afterColorizeItem",{item:b,visible:a})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(b){var a=this,c=this.options,d=c.symbolPadding,e=!c.rtl,f=b._legendItemPos;c=f[0];f=f[1];var l=b.checkbox,p=b.legendGroup;p&&p.element&&(d={translateX:e?c:this.legendWidth-
330
+ c-2*d-4,translateY:f},e=function(){G(a,"afterPositionItem",{item:b})},h(p.translateY)?p.animate(d,void 0,e):(p.attr(d),e()));l&&(l.x=c,l.y=f)};a.prototype.destroyItem=function(b){var a=b.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){b[a]&&(b[a]=b[a].destroy())});a&&t(b.checkbox)};a.prototype.destroy=function(){function b(b){this[b]&&(this[b]=this[b].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(b,a)});"clipRect up down pager nav box title group".split(" ").forEach(b,
331
+ this);this.display=null};a.prototype.positionCheckboxes=function(){var b=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,d=this.titleHeight;if(b){var e=b.translateY;this.allItems.forEach(function(g){var f=g.checkbox;if(f){var m=e+d+f.y+(this.scrollOffset||0)+3;c(f,{left:b.translateX+g.checkboxOffset+f.x-20+"px",top:m+"px",display:this.proximate||m>e-6&&m<e+a-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var b=this.options,a=this.padding,c=b.title,d=0;c.text&&(this.title||
332
+ (this.title=this.chart.renderer.label(c.text,a-3,a-4,null,null,null,b.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+"px"}),b=this.title.getBBox(),d=b.height,this.offsetWidth=b.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d};a.prototype.setText=function(b){var a=this.options;b.legendItem.attr({text:a.labelFormat?n(a.labelFormat,b,this.chart):a.labelFormatter.call(b)})};
333
+ a.prototype.renderItem=function(b){var a=this.chart,c=a.renderer,d=this.options,e=this.symbolWidth,f=d.symbolPadding||0,h=this.itemStyle,l=this.itemHiddenStyle,p="horizontal"===d.layout?F(d.itemDistance,20):0,r=!d.rtl,k=b.legendItem,t=!b.series,y=!t&&b.series.drawLegendSymbol?b.series:b,n=y.options,z=this.createCheckboxForItem&&n&&n.showCheckbox;n=e+f+p+(z?20:0);var v=d.useHTML,w=b.options.className;k||(b.legendGroup=c.g("legend-item").addClass("highcharts-"+y.type+"-series highcharts-color-"+b.colorIndex+
334
+ (w?" "+w:"")+(t?" highcharts-series-"+b.index:"")).attr({zIndex:1}).add(this.scrollGroup),b.legendItem=k=c.text("",r?e+f:-f,this.baseline||0,v),a.styledMode||k.css(u(b.visible?h:l)),k.attr({align:r?"left":"right",zIndex:2}).add(b.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(a.styledMode?12:h.fontSize,k),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,k.attr("y",this.baseline),this.symbolHeight=d.symbolHeight||this.fontMetrics.f,d.squareSymbol&&(this.symbolWidth=F(d.symbolWidth,
335
+ Math.max(this.symbolHeight,16)),n=this.symbolWidth+f+p+(z?20:0),r&&k.attr("x",this.symbolWidth+f))),y.drawLegendSymbol(this,b),this.setItemEvents&&this.setItemEvents(b,k,v));z&&!b.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(b);this.colorizeItem(b,b.visible);!a.styledMode&&h.width||k.css({width:(d.itemWidth||this.widthOption||a.spacingBox.width)-n+"px"});this.setText(b);a=k.getBBox();b.itemWidth=b.checkboxOffset=d.itemWidth||b.legendItemWidth||a.width+n;this.maxItemWidth=Math.max(this.maxItemWidth,
336
+ b.itemWidth);this.totalItemWidth+=b.itemWidth;this.itemHeight=b.itemHeight=Math.round(b.legendItemHeight||a.height||this.symbolHeight)};a.prototype.layoutItem=function(b){var a=this.options,c=this.padding,d="horizontal"===a.layout,e=b.itemHeight,f=this.itemMarginBottom,h=this.itemMarginTop,l=d?F(a.itemDistance,20):0,p=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>p?this.maxItemWidth:b.itemWidth;d&&this.itemX-c+a>p&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+
337
+ f),this.lastLineHeight=0);this.lastItemY=h+this.itemY+f;this.lastLineHeight=Math.max(e,this.lastLineHeight);b._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=a:(this.itemY+=h+e+f,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((d?this.itemX-c-(b.checkbox?0:l):a)+c,this.offsetWidth)};a.prototype.getAllItems=function(){var b=[];this.chart.series.forEach(function(a){var c=a&&a.options;a&&F(c.showInLegend,h(c.linkedTo)?!1:void 0,!0)&&(b=b.concat(a.legendItems||("point"===c.legendType?
338
+ a.data:a)))});G(this,"afterGetAllItems",{allItems:b});return b};a.prototype.getAlignment=function(){var b=this.options;return this.proximate?b.align.charAt(0)+"tv":b.floating?"":b.align.charAt(0)+b.verticalAlign.charAt(0)+b.layout.charAt(0)};a.prototype.adjustMargins=function(b,a){var c=this.chart,d=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,f){g.test(e)&&!h(b[f])&&(c[k[f]]=Math.max(c[k[f]],c.legend[(f+1)%2?"legendHeight":
339
+ "legendWidth"]+[1,-1,-1,1][f]*d[f%2?"x":"y"]+F(d.margin,12)+a[f]+(c.titleOffset[f]||0)))})};a.prototype.proximatePositions=function(){var b=this.chart,a=[],c="left"===this.options.align;this.allItems.forEach(function(d){var e;var g=c;if(d.yAxis){d.xAxis.options.reversed&&(g=!g);d.points&&(e=z(g?d.points:d.points.slice(0).reverse(),function(b){return H(b.plotY)}));g=this.itemMarginTop+d.legendItem.getBBox().height+this.itemMarginBottom;var f=d.yAxis.top-b.plotTop;d.visible?(e=e?e.plotY:d.yAxis.height,
340
+ e+=f-.3*g):e=f+d.yAxis.height;a.push({target:e,size:g,item:d})}},this);C.distribute(a,b.plotHeight);a.forEach(function(a){a.item._legendItemPos[1]=b.plotTop-b.spacing[0]+a.pos})};a.prototype.render=function(){var b=this.chart,a=b.renderer,c=this.group,d=this.box,e=this.options,f=this.padding;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=y(e.width,b.spacingBox.width-f);var h=b.spacingBox.width-2*f-e.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,
341
+ 2))&&(h/=2);this.maxLegendWidth=this.widthOption||h;c||(this.group=c=a.g("legend").addClass(e.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(c),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();var l=this.getAllItems();r(l,function(b,a){return(b.options&&b.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});e.reversed&&l.reverse();this.allItems=l;this.display=h=!!l.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=
342
+ 0;l.forEach(this.renderItem,this);l.forEach(this.layoutItem,this);l=(this.widthOption||this.offsetWidth)+f;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=f;d||(this.box=d=a.rect().addClass("highcharts-legend-box").attr({r:e.borderRadius}).add(c),d.isNew=!0);b.styledMode||d.attr({stroke:e.borderColor,"stroke-width":e.borderWidth||0,fill:e.backgroundColor||"none"}).shadow(e.shadow);0<l&&0<p&&(d[d.isNew?"attr":"animate"](d.crisp.call({},{x:0,y:0,width:l,height:p},
343
+ d.strokeWidth())),d.isNew=!1);d[h?"show":"hide"]();b.styledMode&&"none"===c.getStyle("display")&&(l=p=0);this.legendWidth=l;this.legendHeight=p;h&&this.align();this.proximate||this.positionItems();G(this,"afterRender")};a.prototype.align=function(b){void 0===b&&(b=this.chart.spacingBox);var a=this.chart,c=this.options,d=b.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?d+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(d-=a.titleOffset[2]);d!==b.y&&(b=
344
+ u(b,{y:d}));this.group.align(u(c,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":c.verticalAlign}),!0,b)};a.prototype.handleOverflow=function(b){var a=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,h=this.padding;f=c.spacingBox.height+("top"===e.verticalAlign?-f:f)-h;var l=e.maxHeight,p,r=this.clipRect,k=e.navigation,t=F(k.animation,!0),u=k.arrowSize||12,y=this.nav,n=this.pages,z,v=this.allItems,M=function(b){"number"===typeof b?r.attr({height:b}):r&&(a.clipRect=
345
+ r.destroy(),a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=b?"rect("+h+"px,9999px,"+(h+b)+"px,0)":"auto")},w=function(b){a[b]=d.circle(0,0,1.3*u).translate(u/2,u/2).add(y);c.styledMode||a[b].attr("fill","rgba(0,0,0,0.0001)");return a[b]};"horizontal"!==e.layout||"middle"===e.verticalAlign||e.floating||(f/=2);l&&(f=Math.min(f,l));n.length=0;b&&0<f&&b>f&&!1!==k.enabled?(this.clipHeight=p=Math.max(f-20-this.titleHeight-h,0),this.currentPage=F(this.currentPage,1),this.fullHeight=
346
+ b,v.forEach(function(b,a){var c=b._legendItemPos[1],d=Math.round(b.legendItem.getBBox().height),e=n.length;if(!e||c-n[e-1]>p&&(z||c)!==n[e-1])n.push(z||c),e++;b.pageIx=e-1;z&&(v[a-1].pageIx=e-1);a===v.length-1&&c+d-n[e-1]>p&&c!==z&&(n.push(c),b.pageIx=e);c!==z&&(z=c)}),r||(r=a.clipRect=d.clipRect(0,h,9999,0),a.contentGroup.clip(r)),M(p),y||(this.nav=y=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,u,u).add(y),w("upTracker").on("click",function(){a.scroll(-1,t)}),this.pager=
347
+ d.text("",15,10).addClass("highcharts-legend-navigation"),c.styledMode||this.pager.css(k.style),this.pager.add(y),this.down=d.symbol("triangle-down",0,0,u,u).add(y),w("downTracker").on("click",function(){a.scroll(1,t)})),a.scroll(0),b=f):y&&(M(),this.nav=y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};a.prototype.scroll=function(b,a){var c=this,d=this.chart,e=this.pages,g=e.length,f=this.currentPage+b;b=this.clipHeight;var h=this.options.navigation,l=this.pager,r=this.padding;
348
+ f>g&&(f=g);0<f&&("undefined"!==typeof a&&w(a,d),this.nav.attr({translateX:r,translateY:b+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(b){b.attr({"class":1===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:f+"/"+g}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+this.pager.getBBox().width,"class":f===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),d.styledMode||(this.up.attr({fill:1===
349
+ f?h.inactiveColor:h.activeColor}),this.upTracker.css({cursor:1===f?"default":"pointer"}),this.down.attr({fill:f===g?h.inactiveColor:h.activeColor}),this.downTracker.css({cursor:f===g?"default":"pointer"})),this.scrollOffset=-e[f-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=f,this.positionCheckboxes(),a=v(F(a,d.renderer.globalAnimation,!0)),p(function(){G(c,"afterScroll",{currentPage:f})},a.duration))};a.prototype.setItemEvents=function(b,a,c){var d=
350
+ this,e=d.chart.renderer.boxWrapper,f=b instanceof D,g="highcharts-legend-"+(f?"point":"series")+"-active",m=d.chart.styledMode;(c?[a,b.legendSymbol]:[b.legendGroup]).forEach(function(c){if(c)c.on("mouseover",function(){b.visible&&d.allItems.forEach(function(a){b!==a&&a.setState("inactive",!f)});b.setState("hover");b.visible&&e.addClass(g);m||a.css(d.options.itemHoverStyle)}).on("mouseout",function(){d.chart.styledMode||a.css(u(b.visible?d.itemStyle:d.itemHiddenStyle));d.allItems.forEach(function(a){b!==
351
+ a&&a.setState("",!f)});e.removeClass(g);b.setState()}).on("click",function(a){var c=function(){b.setVisible&&b.setVisible();d.allItems.forEach(function(a){b!==a&&a.setState(b.visible?"inactive":"",!f)})};e.removeClass(g);a={browserEvent:a};b.firePointEvent?b.firePointEvent("legendItemClick",a,c):G(b,"legendItemClick",a,c)})})};a.prototype.createCheckboxForItem=function(b){b.checkbox=e("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:b.selected,defaultChecked:b.selected},this.options.itemCheckboxStyle,
352
+ this.chart.container);f(b.checkbox,"click",function(a){G(b.series||b,"checkboxClick",{checked:a.target.checked,item:b},function(){b.select()})})};return a}();(/Trident\/7\.0/.test(q.navigator&&q.navigator.userAgent)||a)&&A(d.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();c.bubbleLegend||setTimeout(d)});C.Legend=d;return C.Legend});K(a,"Core/Series/SeriesRegistry.js",[a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],
353
+ function(a,q,C,D){var v=q.defaultOptions,B=D.error,w=D.extendClass,n=D.merge,k;(function(f){function e(a,e){var c=v.plotOptions||{},h=e.defaultOptions;e.prototype.pointClass||(e.prototype.pointClass=C);e.prototype.type=a;h&&(c[a]=h);f.seriesTypes[a]=e}f.seriesTypes=a.seriesTypes;f.getSeries=function(a,e){void 0===e&&(e={});var c=a.options.chart;c=e.type||c.type||c.defaultSeriesType||"";var h=f.seriesTypes[c];f||B(17,!0,a,{missingModuleFor:c});c=new h;"function"===typeof c.init&&c.init(a,e);return c};
354
+ f.registerSeriesType=e;f.seriesType=function(a,h,k,z,q){var c=v.plotOptions||{};h=h||"";c[a]=n(c[h],k);e(a,w(f.seriesTypes[h]||function(){},z));f.seriesTypes[a].prototype.type=a;q&&(f.seriesTypes[a].prototype.pointClass=w(C,q));return f.seriesTypes[a]}})(k||(k={}));a.seriesType=k.seriesType;return k});K(a,"Core/Chart/Chart.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/FormatUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Core/MSPointer.js"],
355
+ 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/Time.js"],a["Core/Utilities.js"],a["Core/Renderer/HTML/AST.js"]],function(a,q,C,D,A,B,w,n,k,f,e,c,h,t,z){var v=a.animate,H=a.animObject,u=a.setAnimation,F=C.numberFormat,y=D.registerEventOptions,r=A.charts,p=A.doc,d=A.marginNames,l=A.win,b=n.defaultOptions,g=n.defaultTime,m=c.seriesTypes,x=t.addEvent,J=t.attr,L=t.cleanRecursively,E=t.createElement,
356
+ O=t.css,P=t.defined,ca=t.discardElement,X=t.erase,aa=t.error,I=t.extend,K=t.find,N=t.fireEvent,ba=t.getStyle,fa=t.isArray,M=t.isNumber,Q=t.isObject,S=t.isString,U=t.merge,T=t.objectEach,R=t.pick,V=t.pInt,da=t.relativeLength,ea=t.removeEvent,Z=t.splat,ha=t.syncTimeout,ja=t.uniqueKey;a=function(){function a(a,b,c){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=
357
+ this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(a,b,c)}a.chart=function(b,c,d){return new a(b,c,d)};a.prototype.getArgs=function(a,b,c){S(a)||a.nodeName?(this.renderTo=a,this.init(b,c)):this.init(a,b)};a.prototype.init=
358
+ function(a,c){var d=a.plotOptions||{};N(this,"init",{args:arguments},function(){var e=U(b,a),f=e.chart;T(e.plotOptions,function(a,b){Q(a)&&(a.tooltip=d[b]&&U(d[b].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=c;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new h(a.time):A.time;
359
+ this.numberFormatter=f.numberFormatter||F;this.styledMode=f.styledMode;this.hasCartesianSeries=f.showAxes;this.index=r.length;r.push(this);A.chartCount++;y(this,f);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;N(this,"afterInit");this.firstRender()})};a.prototype.initSeries=function(a){var b=this.options.chart;b=a.type||b.type||b.defaultSeriesType;var c=m[b];c||aa(17,!0,this,{missingModuleFor:b});b=new c;"function"===typeof b.init&&b.init(this,a);return b};a.prototype.setSeriesData=
360
+ 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-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===
361
+ c&&(c={});var d=this.inverted,e=this.plotBox,f=this.plotLeft,g=this.plotTop,m=this.scrollablePlotBox,h=0;var l=0;c.visiblePlotOnly&&this.scrollingContainer&&(l=this.scrollingContainer,h=l.scrollLeft,l=l.scrollTop);var p=c.series;e=c.visiblePlotOnly&&m||e;m=c.inverted?b:a;b=c.inverted?a:b;a={x:m,y:b,isInsidePlot:!0};if(!c.ignoreX){var r=p&&(d?p.yAxis:p.xAxis)||{pos:f,len:Infinity};m=c.paneCoordinates?r.pos+m:f+m;m>=Math.max(h+f,r.pos)&&m<=Math.min(h+f+e.width,r.pos+r.len)||(a.isInsidePlot=!1)}!c.ignoreY&&
362
+ a.isInsidePlot&&(d=p&&(d?p.xAxis:p.yAxis)||{pos:g,len:Infinity},c=c.paneCoordinates?d.pos+b:g+b,c>=Math.max(l+g,d.pos)&&c<=Math.min(l+g+e.height,d.pos+d.len)||(a.isInsidePlot=!1));N(this,"afterIsInsidePlot",a);return a.isInsidePlot};a.prototype.redraw=function(a){N(this,"beforeRedraw");var b=this.hasCartesianSeries?this.axes:this.colorAxis||[],c=this.series,d=this.pointer,e=this.legend,f=this.userOptions.legend,g=this.renderer,m=g.isHidden(),h=[],l=this.isDirtyBox,p=this.isDirtyLegend;this.setResponsive&&
363
+ this.setResponsive(!1);u(this.hasRendered?a:!1,this);m&&this.temporaryDisplay();this.layOutTitles();for(a=c.length;a--;){var r=c[a];if(r.options.stacking||r.options.centerInCategory){var k=!0;if(r.isDirty){var x=!0;break}}}if(x)for(a=c.length;a--;)r=c[a],r.options.stacking&&(r.isDirty=!0);c.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&&N(a,"updatedData")});p&&e&&
364
+ e.options.enabled&&(e.render(),this.isDirtyLegend=!1);k&&this.getStacks();b.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();b.forEach(function(a){a.isDirty&&(l=!0)});b.forEach(function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,h.push(function(){N(a,"afterSetExtremes",I(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(l||k)&&a.redraw()});l&&this.drawChartBox();N(this,"predraw");c.forEach(function(a){(l||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});d&&d.reset(!0);
365
+ g.draw();N(this,"redraw");N(this,"render");m&&this.temporaryDisplay(!0);h.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,d=K(this.axes,b)||K(this.series,b),e=0;!d&&e<c.length;e++)d=K(c[e].points||[],b);return d};a.prototype.getAxes=function(){var a=this,b=this.options,c=b.xAxis=Z(b.xAxis||{});b=b.yAxis=Z(b.yAxis||{});N(this,"getAxes");c.forEach(function(a,b){a.index=b;a.isX=!0});b.forEach(function(a,b){a.index=
366
+ b});c.concat(b).forEach(function(b){new q(a,b)});N(this,"afterGetAxes")};a.prototype.getSelectedPoints=function(){var a=[];this.series.forEach(function(b){a=a.concat(b.getPointsCollection().filter(function(a){return R(a.selectedStaging,a.selected)}))});return a};a.prototype.getSelectedSeries=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",
367
+ void 0);this.layOutTitles(c)};a.prototype.applyDescription=function(a,b){var c=this,d="title"===a?{color:k.neutralColor80,fontSize:this.options.isStock?"16px":"18px"}:{color:k.neutralColor60};d=this.options[a]=U(!this.styledMode&&{style:d},this.options[a],b);var e=this[a];e&&b&&(this[a]=e=e.destroy());d&&!e&&(e=this.renderer.text(d.text,0,0,d.useHTML).attr({align:d.align,"class":"highcharts-"+a,zIndex:d.zIndex||4}).add(),e.update=function(b){c[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](b)},
368
+ this.styledMode||e.css(d.style),this[a]=e)};a.prototype.layOutTitles=function(a){var b=[0,0,0],c=this.renderer,d=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?b[0]+2:0;var m;if(e){this.styledMode||(m=f.style&&f.style.fontSize);m=c.fontMetrics(m,e).b;e.css({width:(f.width||d.width+(f.widthAdjust||0))+"px"});var h=Math.round(e.getBBox(f.useHTML).height);e.align(I({y:"bottom"===g?m:a+
369
+ m,height:h},f),!1,"spacingBox");f.floating||("top"===g?b[0]=Math.ceil(b[0]+h):"bottom"===g&&(b[2]=Math.ceil(b[2]+h)))}},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);var e=!this.titleOffset||this.titleOffset.join(",")!==b.join(",");this.titleOffset=b;N(this,"afterLayOutTitles");!this.isDirtyBox&&e&&(this.isDirtyBox=this.isDirtyLegend=e,this.hasRendered&&R(a,!0)&&
370
+ this.isDirtyBox&&this.redraw())};a.prototype.getChartSize=function(){var a=this.options.chart,b=a.width;a=a.height;var c=this.renderTo;P(b)||(this.containerWidth=ba(c,"width"));P(a)||(this.containerHeight=ba(c,"height"));this.chartWidth=Math.max(0,b||this.containerWidth||600);this.chartHeight=Math.max(0,da(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&&(O(b,b.hcOrigStyle),delete b.hcOrigStyle),
371
+ b.hcOrigDetached&&(p.body.removeChild(b),b.hcOrigDetached=!1),b=b.parentNode;else for(;b&&b.style;){p.body.contains(b)||b.parentNode||(b.hcOrigDetached=!0,p.body.appendChild(b));if("none"===ba(b,"display",!1)||b.hcOricDetached)b.hcOrigStyle={display:b.style.display,height:b.style.height,overflow:b.style.overflow},a={display:"block",overflow:"hidden"},b!==this.renderTo&&(a.height=0),O(b,a),b.offsetWidth||b.style.setProperty("display","block","important");b=b.parentNode;if(b===p.body)break}};a.prototype.setClassName=
372
+ function(a){this.container.className="highcharts-container "+(a||"")};a.prototype.getContainer=function(){var a=this.options,b=a.chart,c=ja(),d,f=this.renderTo;f||(this.renderTo=f=b.renderTo);S(f)&&(this.renderTo=f=p.getElementById(f));f||aa(13,!0,this);var g=V(J(f,"data-highcharts-chart"));M(g)&&r[g]&&r[g].hasRendered&&r[g].destroy();J(f,"data-highcharts-chart",this.index);f.innerHTML="";b.skipClone||f.offsetWidth||this.temporaryDisplay();this.getChartSize();g=this.chartWidth;var m=this.chartHeight;
373
+ O(f,{overflow:"hidden"});this.styledMode||(d=I({position:"relative",overflow:"hidden",width:g+"px",height:m+"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=c=E("div",{id:c},d,f);this._cursor=c.style.cursor;this.renderer=new (e.getRendererType(b.renderer))(c,g,m,void 0,b.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);u(void 0,this);this.setClassName(b.className);
374
+ if(this.styledMode)for(var h in a.defs)this.renderer.definition(a.defs[h]);else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;N(this,"afterGetContainer")};a.prototype.getMargins=function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();d[0]&&!P(c[0])&&(this.plotTop=Math.max(this.plotTop,d[0]+b[0]));d[2]&&!P(c[2])&&(this.marginBottom=Math.max(this.marginBottom,d[2]+b[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,b);N(this,"getMargins");
375
+ a||this.getAxisMargins()};a.prototype.getAxisMargins=function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.colorAxis,e=a.margin,f=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?f(a.axes):c&&c.length&&f(c);d.forEach(function(c,d){P(e[d])||(a[c]+=b[d])});a.setChartSize()};a.prototype.reflow=function(a){var b=this,c=b.options.chart,d=b.renderTo,e=P(c.width)&&P(c.height),f=c.width||ba(d,"width");c=c.height||ba(d,"height");d=a?a.target:l;delete b.pointer.chartPosition;
376
+ if(!e&&!b.isPrinting&&f&&c&&(d===l||d===p)){if(f!==b.containerWidth||c!==b.containerHeight)t.clearTimeout(b.reflowTimeout),b.reflowTimeout=ha(function(){b.container&&b.setSize(void 0,void 0,!1)},a?100:0);b.containerWidth=f;b.containerHeight=c}};a.prototype.setReflow=function(a){var b=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=x(l,"resize",function(a){b.options&&b.reflow(a)}),x(this,"destroy",this.unbindReflow))};a.prototype.setSize=
377
+ function(a,b,c){var d=this,e=d.renderer;d.isResizing+=1;u(c,d);c=e.globalAnimation;d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;"undefined"!==typeof a&&(d.options.chart.width=a);"undefined"!==typeof b&&(d.options.chart.height=b);d.getChartSize();d.styledMode||(c?v:O)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},c);d.setChartSize(!0);e.setSize(d.chartWidth,d.chartHeight,c);d.axes.forEach(function(a){a.isDirty=!0;a.setScale()});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();
378
+ d.getMargins();d.redraw(c);d.oldChartHeight=null;N(d,"resize");ha(function(){d&&N(d,"endResize",null,function(){--d.isResizing})},H(c).duration)};a.prototype.setChartSize=function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,m=this.clipOffset,h,l,p,r;this.plotLeft=h=Math.round(this.plotLeft);this.plotTop=l=Math.round(this.plotTop);this.plotWidth=p=Math.max(0,Math.round(d-h-this.marginRight));this.plotHeight=r=Math.max(0,Math.round(e-
379
+ l-this.marginBottom));this.plotSizeX=b?r:p;this.plotSizeY=b?p:r;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:d-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=c.plotBox={x:h,y:l,width:p,height:r};b=2*Math.floor(this.plotBorderWidth/2);d=Math.ceil(Math.max(b,m[3])/2);e=Math.ceil(Math.max(b,m[0])/2);this.clipBox={x:d,y:e,width:Math.floor(this.plotSizeX-Math.max(b,m[1])/2-d),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(b,m[2])/2-e))};a||(this.axes.forEach(function(a){a.setAxisSize();
380
+ a.setAxisTranslation()}),c.alignElements());N(this,"afterSetChartSize",{skipAxes:a})};a.prototype.resetMargins=function(){N(this,"resetMargins");var a=this,b=a.options.chart;["margin","spacing"].forEach(function(c){var d=b[c],e=Q(d)?d:[d,d,d,d];["Top","Right","Bottom","Left"].forEach(function(d,f){a[c][f]=R(b[c+d],e[f])})});d.forEach(function(b,c){a[b]=R(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,
381
+ c=this.chartWidth,d=this.chartHeight,e=this.styledMode,f=this.plotBGImage,g=a.backgroundColor,m=a.plotBackgroundColor,h=a.plotBackgroundImage,l=this.plotLeft,p=this.plotTop,r=this.plotWidth,k=this.plotHeight,x=this.plotBox,u=this.clipRect,t=this.clipBox,y=this.chartBackground,M=this.plotBackground,n=this.plotBorder,z,v="animate";y||(this.chartBackground=y=b.rect().addClass("highcharts-background").add(),v="attr");if(e)var S=z=y.strokeWidth();else{S=a.borderWidth||0;z=S+(a.shadow?8:0);g={fill:g||"none"};
382
+ if(S||y["stroke-width"])g.stroke=a.borderColor,g["stroke-width"]=S;y.attr(g).shadow(a.shadow)}y[v]({x:z/2,y:z/2,width:c-z-S%2,height:d-z-S%2,r:a.borderRadius});v="animate";M||(v="attr",this.plotBackground=M=b.rect().addClass("highcharts-plot-background").add());M[v](x);e||(M.attr({fill:m||"none"}).shadow(a.plotShadow),h&&(f?(h!==f.attr("href")&&f.attr("href",h),f.animate(x)):this.plotBGImage=b.image(h,l,p,r,k).add()));u?u.animate({width:t.width,height:t.height}):this.clipRect=b.clipRect(t);v="animate";
383
+ n||(v="attr",this.plotBorder=n=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());e||n.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});n[v](n.crisp({x:l,y:p,width:r,height:k},-n.strokeWidth()));this.isDirtyBox=!1;N(this,"afterDrawChartBox")};a.prototype.propFromSeries=function(){var a=this,b=a.options.chart,c=a.options.series,d,e,f;["inverted","angular","polar"].forEach(function(g){e=m[b.type||b.defaultSeriesType];f=b[g]||e&&e.prototype[g];for(d=c&&
384
+ c.length;!f&&d--;)(e=m[c[d].type])&&e.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;S(c)&&(c=":previous"===c?a.series[b.index-1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,c.enabledDataSorting&&b.setDataSortingOptions(),b.visible=R(b.options.visible,c.options.visible,b.visible))});N(this,"afterLinkSeries")};a.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
385
+ a.render()})};a.prototype.renderLabels=function(){var a=this,b=a.options.labels;b.items&&b.items.forEach(function(c){var d=I(b.style,c.style),e=V(d.left)+a.plotLeft,f=V(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,e,f).attr({zIndex:2}).css(d).add()})};a.prototype.render=function(){var a=this.axes,b=this.colorAxis,c=this.renderer,d=this.options,e=function(a){a.forEach(function(a){a.visible&&a.render()})},f=0;this.setTitle();this.legend=new B(this,d.legend);this.getStacks&&
386
+ this.getStacks();this.getMargins(!0);this.setChartSize();d=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 m=1.1<d/this.plotWidth,h=1.05<g/this.plotHeight;if(m||h)a.forEach(function(a){(a.horiz&&m||!a.horiz&&h)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?e(a):b&&b.length&&e(b);
387
+ 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=function(a){var b=this,c=U(!0,this.options.credits,a);c.enabled&&!this.credits&&(this.credits=this.renderer.text(c.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){c.href&&(l.location.href=c.href)}).attr({align:c.position.align,zIndex:8}),b.styledMode||
388
+ this.credits.css(c.style),this.credits.add().align(c.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,d=a.container,e=d&&d.parentNode,f;N(a,"destroy");a.renderer.forExport?X(r,a):r[a.index]=void 0;A.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");ea(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]=
389
+ 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&&c.destroy&&(a[b]=c.destroy())});d&&(d.innerHTML="",ea(d),e&&ca(d));T(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();
390
+ (fa(b.series)?b.series:[]).forEach(function(b){a.initSeries(b)});a.linkSeries();a.setSeriesData();N(a,"beforeRender");f&&(w.isRequired()?a.pointer=new w(a,b):a.pointer=new f(a,b));a.render();a.pointer.getChartPosition();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);N(this,"load");N(this,"render");P(this.index)&&this.setReflow(this.options.chart.reflow);
391
+ this.hasLoaded=!0};a.prototype.addSeries=function(a,b,c){var d=this,e;a&&(b=R(b,!0),N(d,"addSeries",{options:a},function(){e=d.initSeries(a);d.isDirtyLegend=!0;d.linkSeries();e.enabledDataSorting&&e.setData(a.data,!1);N(d,"afterAddSeries",{series:e});b&&d.redraw(c)}));return e};a.prototype.addAxis=function(a,b,c,d){return this.createAxis(b?"xAxis":"yAxis",{axis:a,redraw:c,animation:d})};a.prototype.addColorAxis=function(a,b,c){return this.createAxis("colorAxis",{axis:a,redraw:b,animation:c})};a.prototype.createAxis=
392
+ function(a,b){var c="colorAxis"===a,d=b.redraw,e=b.animation;a=U(b.axis,{index:this[a].length,isX:"xAxis"===a});a=c?new A.ColorAxis(this,a):new q(this,a);c&&(this.isDirtyLegend=!0,this.axes.forEach(function(a){a.series=[]}),this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0}));R(d,!0)&&this.redraw(e);return a};a.prototype.showLoading=function(a){var b=this,c=b.options,d=c.loading,e=function(){f&&O(f,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})},
393
+ f=b.loadingDiv,g=b.loadingSpan;f||(b.loadingDiv=f=E("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container));g||(b.loadingSpan=g=E("span",{className:"highcharts-loading-inner"},null,f),x(b,"redraw",e));f.className="highcharts-loading";z.setElementHTML(g,R(a,c.lang.loading,""));b.styledMode||(O(f,I(d.style,{zIndex:10})),O(g,d.labelStyle),b.loadingShown||(O(f,{opacity:0,display:""}),v(f,{opacity:d.style.opacity||.5},{duration:d.showDuration||0})));b.loadingShown=!0;e()};a.prototype.hideLoading=
394
+ function(){var a=this.options,b=this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",this.styledMode||v(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){O(b,{display:"none"})}}));this.loadingShown=!1};a.prototype.update=function(a,b,c,d){var e=this,f={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},m=a.isResponsiveOptions,l=[],p,r;N(e,"update",{options:a});m||e.setResponsive(!1,!0);a=L(a,e.options);e.userOptions=U(e.userOptions,
395
+ a);var k=a.chart;if(k){U(!0,e.options.chart,k);"className"in k&&e.setClassName(k.className);"reflow"in k&&e.setReflow(k.reflow);if("inverted"in k||"polar"in k||"type"in k){e.propFromSeries();var x=!0}"alignTicks"in k&&(x=!0);"events"in k&&y(this,k);T(k,function(a,b){-1!==e.propsRequireUpdateSeries.indexOf("chart."+b)&&(p=!0);-1!==e.propsRequireDirtyBox.indexOf(b)&&(e.isDirtyBox=!0);-1!==e.propsRequireReflow.indexOf(b)&&(m?e.isDirtyBox=!0:r=!0)});!e.styledMode&&"style"in k&&e.renderer.setStyle(k.style)}!e.styledMode&&
396
+ a.colors&&(this.options.colors=a.colors);a.time&&(this.time===g&&(this.time=new h(a.time)),U(!0,e.options.time,a.time));T(a,function(b,c){if(e[c]&&"function"===typeof e[c].update)e[c].update(b,!1);else if("function"===typeof e[f[c]])e[f[c]](b);else"colors"!==c&&-1===e.collectionsWithUpdate.indexOf(c)&&U(!0,e.options[c],a[c]);"chart"!==c&&-1!==e.propsRequireUpdateSeries.indexOf(c)&&(p=!0)});this.collectionsWithUpdate.forEach(function(b){if(a[b]){var d=[];e[b].forEach(function(a,b){a.options.isInternal||
397
+ d.push(R(a.options.index,b))});Z(a[b]).forEach(function(a,f){var g=P(a.id),m;g&&(m=e.get(a.id));!m&&e[b]&&(m=e[b][d?d[f]:f])&&g&&P(m.options.id)&&(m=void 0);m&&m.coll===b&&(m.update(a,!1),c&&(m.touched=!0));!m&&c&&e.collectionsWithInit[b]&&(e.collectionsWithInit[b][0].apply(e,[a].concat(e.collectionsWithInit[b][1]||[]).concat([!1])).touched=!0)});c&&e[b].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:l.push(a)})}});l.forEach(function(a){a.chart&&a.remove(!1)});x&&e.axes.forEach(function(a){a.update({},
398
+ !1)});p&&e.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);x=k&&k.width;k=k&&(S(k.height)?da(k.height,x||e.chartWidth):k.height);r||M(x)&&x!==e.chartWidth||M(k)&&k!==e.chartHeight?e.setSize(x,k,d):R(b,!0)&&e.redraw(d);N(e,"afterUpdate",{options:a,redraw:b,animation:d})};a.prototype.setSubtitle=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=
399
+ function(){function a(){c.zoomOut()}var c=this,d=b.lang,e=c.options.chart.resetZoomButton,f=e.theme,g=f.states,m="chart"===e.relativeTo||"spacingBox"===e.relativeTo?null:"scrollablePlotBox";N(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(d.resetZoom,null,null,a,f,g&&g.hover).attr({align:e.position.align,title:d.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(e.position,!1,m)});N(this,"afterShowResetZoom")};a.prototype.zoomOut=function(){N(this,"selection",
400
+ {resetSelection:!0},this.zoom)};a.prototype.zoom=function(a){var b=this,c=b.pointer,d=b.inverted?c.mouseDownX:c.mouseDownY,e=!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,m=b.inverted?g.left:g.top,h=b.inverted?m+g.width:m+g.height,l=g.isXAxis,p=!1;if(!l&&d>=m&&d<=h||l||!P(d))p=!0;c[l?"zoomX":"zoomY"]&&p&&(f=g.zoom(a.min,a.max),g.displayBtn&&(e=!0))});var g=b.resetZoomButton;e&&!g?b.showResetZoom():!e&&Q(g)&&
401
+ (b.resetZoomButton=g.destroy());f&&b.redraw(R(b.options.chart.animation,a&&a.animation,100>b.pointCount))};a.prototype.pan=function(a,b){var c=this,d=c.hoverPoints;b="object"===typeof b?b:{enabled:b,type:"x"};var e=c.options.chart,f=c.options.mapNavigation&&c.options.mapNavigation.enabled;e&&e.panning&&(e.panning=b);var g=b.type,m;N(this,"pan",{originalEvent:a},function(){d&&d.forEach(function(a){a.setState()});var b=c.xAxis;"xy"===g?b=b.concat(c.yAxis):"y"===g&&(b=c.yAxis);var e={};b.forEach(function(b){if(b.options.panningEnabled&&
402
+ !b.options.isInternal){var d=b.horiz,h=a[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var l=c[d],p=b.minPointOffset||0,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,r=b.getExtremes(),x=b.toValue(l-h,!0)+p*k,u=b.toValue(l+b.len-h,!0)-(p*k||b.isXAxis&&b.pointRangePadding||0),y=u<x;k=b.hasVerticalPanning();l=y?u:x;x=y?x:u;var t=b.panningState;!k||b.isXAxis||t&&!t.isDirty||b.series.forEach(function(a){var b=a.getProcessedData(!0);b=a.getExtremes(b.yData,!0);t||(t={startMin:Number.MAX_VALUE,
403
+ startMax:-Number.MAX_VALUE});M(b.dataMin)&&M(b.dataMax)&&(t.startMin=Math.min(R(a.options.threshold,Infinity),b.dataMin,t.startMin),t.startMax=Math.max(R(a.options.threshold,-Infinity),b.dataMax,t.startMax))});k=Math.min(R(t&&t.startMin,r.dataMin),p?r.min:b.toValue(b.toPixels(r.min)-b.minPixelPadding));u=Math.max(R(t&&t.startMax,r.dataMax),p?r.max:b.toValue(b.toPixels(r.max)+b.minPixelPadding));b.panningState=t;b.isOrdinal||(p=k-l,0<p&&(x+=p,l=k),p=x-u,0<p&&(x=u,l-=p),b.series.length&&l!==r.min&&
404
+ x!==r.max&&l>=k&&x<=u&&(b.setExtremes(l,x,!1,!1,{trigger:"pan"}),c.resetZoomButton||f||l===k||x===u||!g.match("y")||(c.showResetZoom(),b.displayBtn=!1),m=!0),e[d]=h)}});T(e,function(a,b){c[b]=a});m&&c.redraw(!1);O(c.container,{cursor:"move"})})};return a}();I(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
405
+ 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 a});K(a,"Mixins/LegendSymbol.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q){var v=q.merge,D=q.pick;return a.LegendSymbolMixin={drawRectangle:function(a,v){var w=a.symbolHeight,n=a.options.squareSymbol;
406
+ v.legendSymbol=this.chart.renderer.rect(n?(a.symbolWidth-w)/2:0,a.baseline-w+1,n?w:a.symbolWidth,w,D(a.options.symbolRadius,w/2)).addClass("highcharts-point").attr({zIndex:3}).add(v.legendGroup)},drawLineMarker:function(a){var q=this.options,w=q.marker,n=a.symbolWidth,k=a.symbolHeight,f=k/2,e=this.chart.renderer,c=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var h={};this.chart.styledMode||(h={"stroke-width":q.lineWidth||0},q.dashStyle&&(h.dashstyle=q.dashStyle));this.legendLine=e.path([["M",
407
+ 0,a],["L",n,a]]).addClass("highcharts-graph").attr(h).add(c);w&&!1!==w.enabled&&n&&(q=Math.min(D(w.radius,f),f),0===this.symbol.indexOf("url")&&(w=v(w,{width:k,height:k}),q=0),this.legendSymbol=w=e.symbol(this.symbol,n/2-q,a-q,2*q,2*q,w).addClass("highcharts-point").add(c),w.isMarker=!0)}}});K(a,"Core/Series/Series.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],
408
+ a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B,w,n,k,f){var e=a.animObject,c=a.setAnimation,h=q.registerEventOptions,t=C.hasTouch,z=C.svg,v=C.win,H=A.defaultOptions,u=n.seriesTypes,F=f.addEvent,y=f.arrayMax,r=f.arrayMin,p=f.clamp,d=f.cleanRecursively,l=f.correctFloat,b=f.defined,g=f.erase,m=f.error,x=f.extend,J=f.find,L=f.fireEvent,E=f.getNestedProperty,O=f.isArray,P=f.isNumber,ca=f.isString,X=f.merge,aa=f.objectEach,I=f.pick,K=
409
+ f.removeEvent,N=f.splat,ba=f.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=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}a.prototype.init=function(a,b){L(this,"init",{options:b});var c=this,d=a.series;this.eventsToUnbind=[];c.chart=a;c.options=c.setOptions(b);b=c.options;c.linkedSeries=[];c.bindAxes();x(c,{name:b.name,
410
+ state:"",visible:!1!==b.visible,selected:!0===b.selected});h(this,b);var e=b.events;if(e&&e.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+"Data"]||(c[a+"Data"]=[])});c.isCartesian&&(a.hasCartesianSeries=!0);var f;d.length&&(f=d[d.length-1]);c._i=I(f&&f._i,-1)+1;c.opacity=c.options.opacity;a.orderSeries(this.insert(d));b.dataSorting&&b.dataSorting.enabled?c.setDataSortingOptions():c.points||
411
+ c.data||c.setData(b.data,!1);L(this,"afterInit")};a.prototype.is=function(a){return u[a]&&this instanceof u[a]};a.prototype.insert=function(a){var b=this.options.index,c;if(P(b)){for(c=a.length;c--;)if(b>=I(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return I(c,a.length-1)};a.prototype.bindAxes=function(){var a=this,b=a.options,c=a.chart,d;L(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(e){var f=0;c[e].forEach(function(c){d=
412
+ c.options;if(b[e]===f&&!d.isInternal||"undefined"!==typeof b[e]&&b[e]===d.id||"undefined"===typeof b[e]&&0===d.index)a.insert(c.series),a[e]=c,c.isDirty=!0;d.isInternal||f++});a[e]||a.optionalAxis===e||m(18,!0,c)})});L(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(a,b){var c=a.series,d=arguments,e=P(b)?function(d){var e="y"===d&&c.toYData?c.toYData(a):a[d];c[d+"Data"][b]=e}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,2))};c.parallelArrays.forEach(e)};
413
+ 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(){var a=this.options,b=this.xIncrement,c,d=a.pointIntervalUnit,e=this.chart.time;b=I(b,a.pointStart,0);this.pointInterval=c=I(this.pointInterval,a.pointInterval,1);d&&(a=new e.Date(b),"day"===d?e.set("Date",a,e.get("Date",a)+c):"month"===d?e.set("Month",a,e.get("Month",a)+c):"year"===d&&e.set("FullYear",
414
+ a,e.get("FullYear",a)+c),c=a.getTime()-b);this.xIncrement=b+c;return b};a.prototype.setDataSortingOptions=function(){var a=this.options;x(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});b(a.pointRange)||(a.pointRange=1)};a.prototype.setOptions=function(a){var c=this.chart,d=c.options,e=d.plotOptions,f=c.userOptions||{};a=X(a);c=c.styledMode;var g={plotOptions:e,userOptions:a};L(this,"setOptions",g);var m=g.plotOptions[this.type],h=f.plotOptions||{};this.userOptions=g.userOptions;
415
+ f=X(m,e.series,f.plotOptions&&f.plotOptions[this.type],a);this.tooltipOptions=X(H.tooltip,H.plotOptions.series&&H.plotOptions.series.tooltip,H.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=I(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===m.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;d=
416
+ this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||(e={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},c||(e.color=f.negativeColor,e.fillColor=f.negativeFillColor),d.push(e));d.length&&b(d[d.length-1].value)&&d.push(c?{}:{color:this.color,fillColor:this.fillColor});L(this,"afterSetOptions",{options:f});return f};a.prototype.getName=function(){return I(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(a,c,
417
+ d){var e=this.chart,f=this.userOptions,g=a+"Index",m=a+"Counter",h=d?d.length:I(e.options.chart[a+"Count"],e[a+"Count"]);if(!c){var l=I(f[g],f["_"+g]);b(l)||(e.series.length||(e[m]=0),f["_"+g]=l=e[m]%h,e[m]+=1);d&&(c=d[l])}"undefined"!==typeof l&&(this[g]=l);this[a]=c};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=B.neutralColor20:this.getCyclic("color",this.options.color||H.plotOptions[this.type].color,this.chart.options.colors)};
418
+ 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)};a.prototype.findPointIndex=function(a,b){var c=a.id,d=a.x,e=this.points,f,g=this.options.dataSorting;if(c)var m=this.chart.get(c);else if(this.linkedParent||this.enabledDataSorting){var h=g&&g.matchByName?"name":"index";m=J(e,function(b){return!b.touched&&b[h]===a[h]});if(!m)return}if(m){var l=
419
+ m&&m.index;"undefined"!==typeof l&&(f=!0)}"undefined"===typeof l&&P(d)&&(l=this.xData.indexOf(d,b));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!f&&e[l]&&e[l].touched&&(l=void 0);return l};a.prototype.updateData=function(a,c){var d=this.options,e=d.dataSorting,f=this.points,g=[],m,h,l,p=this.requireSorting,k=a.length===f.length,r=!0;this.xIncrement=null;a.forEach(function(a,c){var h=b(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};
420
+ var r=h.x;if(h.id||P(r)){if(r=this.findPointIndex(h,l),-1===r||"undefined"===typeof r?g.push(a):f[r]&&a!==d.data[r]?(f[r].update(a,!1,null,!1),f[r].touched=!0,p&&(l=r+1)):f[r]&&(f[r].touched=!0),!k||c!==r||e&&e.enabled||this.hasDerivedData)m=!0}else g.push(a)},this);if(m)for(a=f.length;a--;)(h=f[a])&&!h.touched&&h.remove&&h.remove(!1,c);else!k||e&&e.enabled?r=!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(!r)return!1;
421
+ g.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(a,b,c,d){var e=this,f=e.points,g=f&&f.length||0,h,l=e.options,p=e.chart,r=l.dataSorting,k=null,x=e.xAxis;k=l.turboThreshold;var u=this.xData,t=this.yData,y=(h=e.pointArrayMap)&&h.length,n=l.keys,z=0,v=1,M;a=a||[];h=a.length;b=I(b,!0);r&&r.enabled&&(a=this.sortData(a));!1!==d&&h&&g&&!e.cropped&&
422
+ !e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(M=this.updateData(a,c));if(!M){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(a){e[a+"Data"].length=0});if(k&&h>k)if(k=e.getFirstValidPoint(a),P(k))for(c=0;c<h;c++)u[c]=this.autoIncrement(),t[c]=a[c];else if(O(k))if(y)for(c=0;c<h;c++)d=a[c],u[c]=d[0],t[c]=d.slice(1,y+1);else for(n&&(z=n.indexOf("x"),v=n.indexOf("y"),z=0<=z?z:0,v=0<=v?v:1),c=0;c<h;c++)d=a[c],u[c]=d[z],t[c]=d[v];else m(12,!1,p);else for(c=0;c<h;c++)"undefined"!==
423
+ typeof a[c]&&(d={series:e},e.pointClass.prototype.applyOptions.apply(d,[a[c]]),e.updateParallelArrays(d,c));t&&ca(t[0])&&m(14,!0,p);e.data=[];e.options.data=e.userOptions.data=a;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();x&&(x.minRange=x.userMinRange);e.isDirty=p.isDirtyBox=!0;e.isDirtyData=!!f;c=!1}"point"===l.legendType&&(this.processData(),this.generatePoints());b&&p.redraw(c)};a.prototype.sortData=function(a){var c=this,d=c.options.dataSorting.sortKey||"y",e=function(a,c){return b(c)&&a.pointClass.prototype.optionsToObject.call({series:a},
424
+ c)||{}};a.forEach(function(b,d){a[d]=e(c,b);a[d].index=d},this);a.concat().sort(function(a,b){a=E(d,a);b=E(d,b);return b<a?-1:b>a?1:0}).forEach(function(a,b){a.x=b},this);c.linkedSeries&&c.linkedSeries.forEach(function(b){var c=b.options,d=c.data;c.dataSorting&&c.dataSorting.enabled||!d||(d.forEach(function(c,f){d[f]=e(b,c);a[f]&&(d[f].x=a[f].x,d[f].index=f)}),b.setData(d,!1))});return a};a.prototype.getProcessedData=function(a){var b=this.xData,c=this.yData,d=b.length;var e=0;var f=this.xAxis,g=
425
+ this.options;var h=g.cropThreshold;var l=a||this.getExtremesFromAll||g.getExtremesFromAll,p=this.isCartesian;a=f&&f.val2lin;g=!(!f||!f.logarithmic);var r=this.requireSorting;if(f){f=f.getExtremes();var k=f.min;var x=f.max}if(p&&this.sorted&&!l&&(!h||d>h||this.forceCrop))if(b[d-1]<k||b[0]>x)b=[],c=[];else if(this.yData&&(b[0]<k||b[d-1]>x)){e=this.cropData(this.xData,this.yData,k,x);b=e.xData;c=e.yData;e=e.start;var u=!0}for(h=b.length||1;--h;)if(d=g?a(b[h])-a(b[h-1]):b[h]-b[h-1],0<d&&("undefined"===
426
+ typeof t||d<t))var t=d;else 0>d&&r&&(m(15,!1,this.chart),r=!1);return{xData:b,yData:c,cropped:u,cropStart:e,closestPointRange:t}};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,d,e){var f=
427
+ a.length,g=0,m=f,h;e=I(e,this.cropShoulder);for(h=0;h<f;h++)if(a[h]>=c){g=Math.max(0,h-e);break}for(c=h;c<f;c++)if(a[c]>d){m=c+e;break}return{xData:a.slice(g,m),yData:b.slice(g,m),start:g,end:m}};a.prototype.generatePoints=function(){var a=this.options,b=a.data,c=this.data,d,e=this.processedXData,f=this.processedYData,g=this.pointClass,m=e.length,h=this.cropStart||0,l=this.hasGroupedData,p=a.keys,r=[],k;a=a.dataGrouping&&a.dataGrouping.groupAll?h:0;c||l||(c=[],c.length=b.length,c=this.data=c);p&&
428
+ l&&(this.options.keys=!1);for(k=0;k<m;k++){var u=h+k;if(l){var t=(new g).init(this,[e[k]].concat(N(f[k])));t.dataGroup=this.groupMap[a+k];t.dataGroup.options&&(t.options=t.dataGroup.options,x(t,t.dataGroup.options),delete t.dataLabels)}else(t=c[u])||"undefined"===typeof b[u]||(c[u]=t=(new g).init(this,b[u],e[k]));t&&(t.index=l?a+k:u,r[k]=t)}this.options.keys=p;if(c&&(m!==(d=c.length)||l))for(k=0;k<d;k++)k!==h||l||(k+=m),c[k]&&(c[k].destroyElements(),c[k].plotX=void 0);this.data=c;this.points=r;L(this,
429
+ "afterGeneratePoints")};a.prototype.getXExtremes=function(a){return{min:r(a),max:y(a)}};a.prototype.getExtremes=function(a,b){var c=this.xAxis,d=this.yAxis,e=this.processedXData||this.xData,f=[],g=0,m=0;var h=0;var l=this.requireSorting?this.cropShoulder:0,p=d?d.positiveValuesOnly:!1,k;a=a||this.stackedYData||this.processedYData||[];d=a.length;c&&(h=c.getExtremes(),m=h.min,h=h.max);for(k=0;k<d;k++){var x=e[k];var t=a[k];var u=(P(t)||O(t))&&(t.length||0<t||!p);x=b||this.getExtremesFromAll||this.options.getExtremesFromAll||
430
+ this.cropped||!c||(e[k+l]||x)>=m&&(e[k-l]||x)<=h;if(u&&x)if(u=t.length)for(;u--;)P(t[u])&&(f[g++]=t[u]);else f[g++]=t}a={dataMin:r(f),dataMax:y(f)};L(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=null,c=a.length,d=0;null===b&&d<c;)b=a[d],d++;return b};a.prototype.translate=function(){this.processedXData||this.processData();
431
+ this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,e=d.categories,f=this.enabledDataSorting,g=this.yAxis,m=this.points,h=m.length,k=!!this.modifyValue,r,x=this.pointPlacementToXValue(),t=!!x,u=a.threshold,y=a.startFromThreshold?u:0,n,z=this.zoneAxis||"y",v=Number.MAX_VALUE;for(r=0;r<h;r++){var w=m[r],F=w.x,q=w.y,E=w.low,J=c&&g.stacking&&g.stacking.stacks[(this.negStacks&&q<(y?0:u)?"-":"")+this.stackKey],A=void 0,G=void 0;if(g.positiveValuesOnly&&!g.validatePositiveValue(q)||d.positiveValuesOnly&&
432
+ !d.validatePositiveValue(F))w.isNull=!0;w.plotX=n=l(p(d.translate(F,0,0,0,1,x,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&J&&J[F]){var B=this.getStackIndicator(B,F,this.index);w.isNull||(A=J[F],G=A.points[B.key])}O(G)&&(E=G[0],q=G[1],E===y&&B.key===J[F].base&&(E=I(P(u)&&u,g.min)),g.positiveValuesOnly&&0>=E&&(E=null),w.total=w.stackTotal=A.total,w.percentage=A.total&&w.y/A.total*100,w.stackY=q,this.irregularWidths||A.setOffset(this.pointXOffset||0,this.barW||0));w.yBottom=b(E)?p(g.translate(E,
433
+ 0,1,0,1),-1E5,1E5):null;k&&(q=this.modifyValue(q,w));w.plotY=void 0;P(q)&&(q=g.translate(q,!1,!0,!1,!0),"undefined"!==typeof q&&(w.plotY=p(q,-1E5,1E5)));w.isInside=this.isPointInside(w);w.clientX=t?l(d.translate(F,0,0,0,1,x)):n;w.negative=w[z]<(a[z+"Threshold"]||u||0);w.category=e&&"undefined"!==typeof e[w.x]?e[w.x]:w.x;if(!w.isNull&&!1!==w.visible){"undefined"!==typeof C&&(v=Math.min(v,Math.abs(n-C)));var C=n}w.zone=this.zones.length&&w.getZone();!w.graphic&&this.group&&f&&(w.isNew=!0)}this.closestPointRangePx=
434
+ v;L(this,"afterTranslate")};a.prototype.getValidPoints=function(a,b,c){var d=this.chart;return(a||this.points||[]).filter(function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,{inverted:d.inverted})?!1:!1!==a.visible&&(c||!a.isNull)})};a.prototype.getClipBox=function(a,b){var c=this.options,d=this.chart,e=d.inverted,f=this.xAxis,g=f&&this.yAxis,m=d.options.chart.scrollablePlotArea||{};a&&!1===c.clip&&g?a=e?{y:-d.chartWidth+g.len+g.pos,height:d.chartWidth,width:d.chartHeight,x:-d.chartHeight+f.len+
435
+ f.pos}:{y:-g.pos,height:d.chartHeight,width:d.chartWidth,x:-f.pos}:(a=this.clipBox||d.clipBox,b&&(a.width=d.plotSizeX,a.x=(d.scrollablePixelsX||0)*(m.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=function(a){var b=
436
+ this.chart,c=this.options,d=b.renderer,e=b.inverted,f=this.clipBox,g=this.getClipBox(a),m=this.getSharedClipKey(a),h=b.sharedClips[m],l=b.sharedClips[m+"m"];a&&(g.width=0,e&&(g.x=b.plotHeight+(!1!==c.clip?0:b.plotTop)));h?b.hasLoaded||h.attr(g):(a&&(b.sharedClips[m+"m"]=l=d.clipRect(e?(b.plotSizeX||0)+99:-99,e?-b.plotLeft:-b.plotTop,99,e?b.chartWidth:b.chartHeight)),b.sharedClips[m]=h=d.clipRect(g),h.count={length:0});a&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1);if(!1!==c.clip||
437
+ a)this.group.clip(a||f?h:b.clipRect),this.markerGroup.clip(l);a||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&(f||(b.sharedClips[m]=h.destroy()),l&&(b.sharedClips[m+"m"]=l.destroy())))};a.prototype.animate=function(a){var b=this.chart,c=e(this.options.animation),d=this.sharedClipKey;if(a)this.setClip(c);else if(d){a=b.sharedClips[d];d=b.sharedClips[d+"m"];var f=this.getClipBox(c,!0);a&&a.animate(f,c);d&&d.animate({width:f.width+99,x:f.x-(b.inverted?0:99)},
438
+ c)}};a.prototype.afterAnimate=function(){this.setClip();L(this,"afterAnimate");this.finishedAnimating=!0};a.prototype.drawPoints=function(){var a=this.points,b=this.chart,c,d,e=this.options.marker,f=this[this.specialGroup]||this.markerGroup,g=this.xAxis,m=I(e.enabled,!g||g.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(c=0;c<a.length;c++){var h=a[c];var l=(d=h.graphic)?"animate":"attr";var p=h.marker||{};var k=!!h.marker;if((m&&
439
+ "undefined"===typeof p.enabled||p.enabled)&&!h.isNull&&!1!==h.visible){var r=I(p.symbol,this.symbol,"rect");var x=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&(h.startXPos=g.reversed?-(x.width||0):g.width);var t=!1!==h.isInside;d?d[t?"show":"hide"](t).animate(x):t&&(0<(x.width||0)||h.hasImage)&&(h.graphic=d=b.renderer.symbol(r,x.x,x.y,x.width,x.height,k?p:e).add(f),this.enabledDataSorting&&b.hasRendered&&(d.attr({x:h.startXPos}),l="animate"));d&&"animate"===l&&d[t?"show":"hide"](t).animate(x);
440
+ if(d&&!b.styledMode)d[l](this.pointAttribs(h,h.selected&&"select"));d&&d.addClass(h.getClassName(),!0)}else d&&(h.graphic=d.destroy())}};a.prototype.markerAttribs=function(a,b){var c=this.options,d=c.marker,e=a.marker||{},f=e.symbol||d.symbol,g=I(e.radius,d.radius);b&&(d=d.states[b],b=e.states&&e.states[b],g=I(b&&b.radius,d&&d.radius,g+(d&&d.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-g};g&&(a.width=a.height=2*g);return a};
441
+ a.prototype.pointAttribs=function(a,b){var c=this.options.marker,d=a&&a.options,e=d&&d.marker||{},f=this.color,g=d&&d.color,m=a&&a.color;d=I(e.lineWidth,c.lineWidth);var h=a&&a.zone&&a.zone.color;a=1;f=g||h||m||f;g=e.fillColor||c.fillColor||f;f=e.lineColor||c.lineColor||f;b=b||"normal";c=c.states[b];b=e.states&&e.states[b]||{};d=I(b.lineWidth,c.lineWidth,d+I(b.lineWidthPlus,c.lineWidthPlus,0));g=b.fillColor||c.fillColor||g;f=b.lineColor||c.lineColor||f;a=I(b.opacity,c.opacity,a);return{stroke:f,"stroke-width":d,
442
+ fill:g,opacity:a}};a.prototype.destroy=function(a){var b=this,c=b.chart,d=/AppleWebKit\/533/.test(v.navigator.userAgent),e,m,h=b.data||[],l,p;L(b,"destroy");this.removeEvents(a);(b.axisTypes||[]).forEach(function(a){(p=b[a])&&p.series&&(g(p.series,b),p.isDirty=p.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(m=h.length;m--;)(l=h[m])&&l.destroy&&l.destroy();b.clips&&b.clips.forEach(function(a){return a.destroy()});f.clearTimeout(b.animationTimeout);aa(b,function(a,b){a instanceof
443
+ k&&!a.survive&&(e=d&&"group"===b?"hide":"destroy",a[e]())});c.hoverSeries===b&&(c.hoverSeries=void 0);g(c.series,b);c.orderSeries();aa(b,function(c,d){a&&"hcEvents"===d||delete b[d]})};a.prototype.applyZones=function(){var a=this,b=this.chart,c=b.renderer,d=this.zones,e,f,g=this.clips||[],m,h=this.graph,l=this.area,k=Math.max(b.chartWidth,b.chartHeight),r=this[(this.zoneAxis||"y")+"Axis"],x=b.inverted,t,u,y,n=!1,z,v;if(d.length&&(h||l)&&r&&"undefined"!==typeof r.min){var w=r.reversed;var F=r.horiz;
444
+ h&&!this.showLine&&h.hide();l&&l.hide();var q=r.getExtremes();d.forEach(function(d,E){e=w?F?b.plotWidth:0:F?0:r.toPixels(q.min)||0;e=p(I(f,e),0,k);f=p(Math.round(r.toPixels(I(d.value,q.max),!0)||0),0,k);n&&(e=f=r.toPixels(q.max));t=Math.abs(e-f);u=Math.min(e,f);y=Math.max(e,f);r.isXAxis?(m={x:x?y:u,y:0,width:t,height:k},F||(m.x=b.plotHeight-m.x)):(m={x:0,y:x?y:u,width:k,height:t},F&&(m.y=b.plotWidth-m.y));x&&c.isVML&&(m=r.isXAxis?{x:0,y:w?u:y,height:m.width,width:b.chartWidth}:{x:m.y-b.plotLeft-b.spacingBox.x,
445
+ y:0,width:m.height,height:b.chartHeight});g[E]?g[E].animate(m):g[E]=c.clipRect(m);z=a["zone-area-"+E];v=a["zone-graph-"+E];h&&v&&v.clip(g[E]);l&&z&&z.clip(g[E]);n=d.value>q.max;a.resetZones&&0===f&&(f=void 0)});this.clips=g}else a.visible&&(h&&h.show(!0),l&&l.show(!0))};a.prototype.invertGroups=function(a){function b(){["group","markerGroup"].forEach(function(b){c[b]&&(d.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(c.isRadialSeries?
446
+ !1:a))})}var c=this,d=c.chart;c.xAxis&&(c.eventsToUnbind.push(F(d,"resize",b)),b(),c.invertGroups=b)};a.prototype.plotGroup=function(a,c,d,e,f){var g=this[a],m=!g;d={visibility:d,zIndex:e||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(d.opacity=this.opacity);m&&(this[a]=g=this.chart.renderer.g().add(f));g.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(b(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":
447
+ "")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(d)[m?"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||K(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=
448
+ 0)};a.prototype.render=function(){var a=this,b=a.chart,c=a.options,d=e(c.animation),f=!a.finishedAnimating&&b.renderer.isSVG&&d.duration,g=a.visible?"inherit":"hidden",m=c.zIndex,h=a.hasRendered,l=b.seriesGroup,p=b.inverted;L(this,"render");var k=a.plotGroup("group","series",g,m,l);a.markerGroup=a.plotGroup("markerGroup","markers",g,m,l);f&&a.animate&&a.animate(!0);k.inverted=I(a.invertible,a.isCartesian)?p:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&
449
+ a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(p);!1===c.clip||a.sharedClipKey||h||k.clip(b.clipRect);f&&a.animate&&a.animate();h||(f&&d.defer&&(f+=d.defer),a.animationTimeout=ba(function(){a.afterAnimate()},f||0));a.isDirty=!1;a.hasRendered=!0;L(a,"afterRender")};a.prototype.redraw=function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,d=this.xAxis,e=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,
450
+ height:a.plotHeight}),c.animate({translateX:I(d&&d.left,a.plotLeft),translateY:I(e&&e.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=function(a,b){var c=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:e?d.len-a.chartX+d.pos:a.chartY-d.pos},b,a)};a.prototype.buildKDTree=function(a){function b(a,d,e){var f;if(f=a&&a.length){var g=c.kdAxisArray[d%e];a.sort(function(a,b){return a[g]-
451
+ b[g]});f=Math.floor(f/2);return{point:a[f],left:b(a.slice(0,f),d+1,e),right:b(a.slice(f+1),d+1,e)}}}this.buildingKdTree=!0;var c=this,d=-1<c.options.findNearestPointBy.indexOf("y")?2:1;delete c.kdTree;ba(function(){c.kdTree=b(c.getValidPoints(null,!c.directTouch),d,d);c.buildingKdTree=!1},c.options.kdNow||a&&"touchstart"===a.type?0:1)};a.prototype.searchKDTree=function(a,c,d){function e(a,c,d,l){var p=c.point,k=f.kdAxisArray[d%l],r=p;var x=b(a[g])&&b(p[g])?Math.pow(a[g]-p[g],2):null;var t=b(a[m])&&
452
+ b(p[m])?Math.pow(a[m]-p[m],2):null;t=(x||0)+(t||0);p.dist=b(t)?Math.sqrt(t):Number.MAX_VALUE;p.distX=b(x)?Math.sqrt(x):Number.MAX_VALUE;k=a[k]-p[k];t=0>k?"left":"right";x=0>k?"right":"left";c[t]&&(t=e(a,c[t],d+1,l),r=t[h]<r[h]?t:p);c[x]&&Math.sqrt(k*k)<r[h]&&(a=e(a,c[x],d+1,l),r=a[h]<r[h]?a:r);return r}var f=this,g=this.kdAxisArray[0],m=this.kdAxisArray[1],h=c?"distX":"dist";c=-1<f.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(d);if(this.kdTree)return e(a,
453
+ this.kdTree,c,c)};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 P(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,d=[].concat(c?a.areaPath:a.graphPath),e=a.chart,
454
+ f=e.pointer,g=e.renderer,m=e.options.tooltip.snap,h=a.tracker,l=function(b){if(e.hoverSeries!==a)a.onMouseOver()},p="rgba(192,192,192,"+(z?.0001:.002)+")";h?h.attr({d:d}):a.graph&&(a.tracker=g.path(d).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),e.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:p,fill:c?p:"none","stroke-width":a.graph.strokeWidth()+(c?0:2*m)}),[a.tracker,
455
+ a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(a){f.onTrackerMouseOut(a)}),b.cursor&&!e.styledMode&&a.css({cursor:b.cursor}),t))a.on("touchstart",l)}));L(this,"afterDrawTracker")};a.prototype.addPoint=function(a,b,c,d,e){var f=this.options,g=this.data,m=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l=f.data,p=this.xData,k;b=I(b,!0);var r={series:this};this.pointClass.prototype.applyOptions.apply(r,[a]);var x=
456
+ r.x;var t=p.length;if(this.requireSorting&&x<p[t-1])for(k=!0;t&&p[t-1]>x;)t--;this.updateParallelArrays(r,"splice",t,0,0);this.updateParallelArrays(r,t);h&&r.name&&(h[x]=r.name);l.splice(t,0,a);k&&(this.data.splice(t,0,null),this.processData());"point"===f.legendType&&this.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(r,"shift"),l.shift()));!1!==e&&L(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;b&&m.redraw(d)};a.prototype.removePoint=function(a,
457
+ b,d){var e=this,f=e.data,g=f[a],m=e.points,h=e.chart,l=function(){m&&m.length===f.length&&m.splice(a,1);f.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(g||{series:e},"splice",a,1);g&&g.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&h.redraw()};c(d,h);b=I(b,!0);g?g.firePointEvent("remove",null,l):l()};a.prototype.remove=function(a,b,c,d){function e(){f.destroy(d);g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();I(a,!0)&&g.redraw(b)}var f=this,g=f.chart;!1!==c?L(f,"remove",null,e):e()};a.prototype.update=
458
+ function(a,b){a=d(a,this.userOptions);L(this,"update",{options:a});var c=this,e=c.chart,f=c.userOptions,g=c.initialType||c.type,h=e.options.plotOptions,l=a.type||f.type||e.options.chart.type,p=!(this.hasDerivedData||l&&l!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||c.hasOptionChanged("dataGrouping")||c.hasOptionChanged("pointStart")||c.hasOptionChanged("pointInterval")||c.hasOptionChanged("pointIntervalUnit")||c.hasOptionChanged("keys")),k=u[g].prototype,r,
459
+ t=["eventOptions","navigatorSeries","baseSeries"],y=c.finishedAnimating&&{animation:!1},n={};l=l||g;p&&(t.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&t.push("area","graph"),c.parallelArrays.forEach(function(a){t.push(a+"Data")}),a.data&&(a.dataSorting&&x(c.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=X(f,y,{index:"undefined"===
460
+ typeof f.index?c.index:f.index,pointStart:I(h&&h.series&&h.series.pointStart,f.pointStart,c.xData[0])},!p&&{data:c.options.data},a);p&&a.data&&(a.data=c.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(t);t.forEach(function(a){t[a]=c[a];delete c[a]});f=!1;if(u[l]){if(f=l!==c.type,c.remove(!1,!1,!1,!0),f)if(Object.setPrototypeOf)Object.setPrototypeOf(c,u[l].prototype);else{h=Object.hasOwnProperty.call(c,"hcEvents")&&c.hcEvents;for(r in k)c[r]=void 0;x(c,u[l].prototype);
461
+ h?c.hcEvents=h:delete c.hcEvents}}else m(17,!0,e,{missingModuleFor:l});t.forEach(function(a){c[a]=t[a]});c.init(e,a);if(p&&this.points){var z=c.options;!1===z.visible?(n.graphic=1,n.dataLabel=1):c._hasPointLabels||(a=z.marker,l=z.dataLabels,a&&(!1===a.enabled||"symbol"in a)&&(n.graphic=1),l&&!1===l.enabled&&(n.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(n).length&&a.destroyElements(n),!1===z.showInLegend&&a.legendItem&&e.legend.destroyItem(a))},this)}c.initialType=
462
+ g;e.linkSeries();f&&c.linkedSeries.length&&(c.isDirtyData=!0);L(this,"afterUpdate");I(b,!0)&&e.redraw(p?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,d=this.userOptions[a];return d?b!==d:b!==I(c&&c[this.type]&&c[this.type][a],c&&c.series&&c.series[a],b)};a.prototype.onMouseOver=function(){var a=this.chart,b=a.hoverSeries;a.pointer.setHoverChartIndex();
463
+ if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&L(this,"mouseOver");this.setState("hover");a.hoverSeries=this};a.prototype.onMouseOut=function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&L(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();b.series.forEach(function(a){a.setState("",!0)})};a.prototype.setState=function(a,b){var c=this,d=c.options,e=c.graph,f=d.inactiveOtherPoints,
464
+ g=d.states,m=d.lineWidth,h=d.opacity,l=I(g[a||"normal"]&&g[a||"normal"].animation,c.chart.options.chart.animation);d=0;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&&(m=g[a].lineWidth||m+(g[a].lineWidthPlus||0),h=I(g[a].opacity,h));if(e&&!e.dashstyle)for(g={"stroke-width":m},e.animate(g,l);c["zone-graph-"+
465
+ d];)c["zone-graph-"+d].animate(g,l),d+=1;f||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(a){a&&a.animate({opacity:h},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,d=c.chart,e=c.legendItem,f=d.options.chart.ignoreHiddenSeries,g=c.visible;var m=(c.visible=a=c.options.visible=c.userOptions.visible="undefined"===
466
+ typeof a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(c[a])c[a][m]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&d.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});c.linkedSeries.forEach(function(b){b.setVisible(a,!1)});f&&(d.isDirtyBox=!0);L(c,m);!1!==b&&d.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=
467
+ 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);L(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={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:B.backgroundColor,
468
+ lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:B.neutralColor20,lineColor:B.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",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},
469
+ cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"};return a}();x(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:D.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],
470
+ parallelArrays:["x","y"],pointClass:w,requireSorting:!0,sorted:!0});n.series=a;"";"";return a});K(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,q,C,D,A,B){var v=a.stop,n=B.addEvent,k=B.createElement,f=B.merge,e=B.pick;n(C,"afterSetChartSize",function(a){var c=this.options.chart.scrollablePlotArea,e=c&&c.minWidth;c=c&&
471
+ c.minHeight;if(!this.renderer.forExport){if(e){if(this.scrollablePixelsX=e=Math.max(0,e-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=f(this.plotBox);this.plotBox.width=this.plotWidth+=e;this.inverted?this.clipBox.height+=e:this.clipBox.width+=e;var k={1:{name:"right",value:e}}}}else c&&(this.scrollablePixelsY=e=Math.max(0,c-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=f(this.plotBox),this.plotBox.height=this.plotHeight+=e,this.inverted?this.clipBox.width+=
472
+ e:this.clipBox.height+=e,k={2:{name:"bottom",value:e}});k&&!a.skipAxes&&this.axes.forEach(function(a){k[a.side]?a.getPlotLinePath=function(){var c=k[a.side].name,e=this[c];this[c]=e-k[a.side].value;var f=q.prototype.getPlotLinePath.apply(this,arguments);this[c]=e;return f}:(a.setAxisSize(),a.setAxisTranslation())})}});n(C,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});C.prototype.setUpScrolling=
473
+ function(){var a=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto");this.scrollablePixelsY&&(e.overflowY="auto");this.scrollingParent=k("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=k("div",{className:"highcharts-scrolling"},e,this.scrollingParent);n(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=k("div",
474
+ {className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};C.prototype.moveFixedElements=function(){var a=this.container,e=this.fixedRenderer,f=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
475
+ k;this.scrollablePixelsX&&!this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&f.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");f.forEach(function(c){[].forEach.call(a.querySelectorAll(c),function(a){(a.namespaceURI===e.SVG_NS?e.box:e.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};
476
+ C.prototype.applyFixed=function(){var a=!this.fixedDiv,f=this.options.chart,t=f.scrollablePlotArea,z=A.getRendererType();a?(this.fixedDiv=k("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(f.style&&f.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=f=new z(this.fixedDiv,this.chartWidth,this.chartHeight,
477
+ this.options.chart.style),this.scrollableMask=f.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":e(t.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),n(this,"afterShowResetZoom",this.moveFixedElements),n(this,"afterDrilldown",this.moveFixedElements),n(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();f=this.chartWidth+
478
+ (this.scrollablePixelsX||0);z=this.chartHeight+(this.scrollablePixelsY||0);v(this.container);this.container.style.width=f+"px";this.container.style.height=z+"px";this.renderer.boxWrapper.attr({width:f,height:z,viewBox:[0,0,f,z].join(" ")});this.chartBackground.attr({width:f,height:z});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(t.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*t.scrollPositionX),t.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
479
+ t.scrollPositionY));z=this.axisOffset;a=this.plotTop-z[0]-1;t=this.plotLeft-z[3]-1;f=this.plotTop+this.plotHeight+z[2]+1;z=this.plotLeft+this.plotWidth+z[1]+1;var w=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),q=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,f],["L",0,f],["Z"],["M",w,a],["L",this.chartWidth,a],["L",this.chartWidth,f],["L",w,f],["Z"]]:this.scrollablePixelsY?[["M",t,0],["L",t,this.plotTop-
480
+ 1],["L",z,this.plotTop-1],["L",z,0],["Z"],["M",t,q],["L",t,this.chartHeight],["L",z,this.chartHeight],["L",z,q],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};n(q,"afterInit",function(){this.chart.scrollableDirty=!0});n(D,"show",function(){this.chart.scrollableDirty=!0});""});K(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Utilities.js"]],function(a,q){var v=a.getDeferredAnimation,D=q.addEvent,A=q.destroyObjectProperties,
481
+ B=q.fireEvent,w=q.isNumber,n=q.objectEach,k=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=function(){var a=this.axis,c=a.series,f=a.options.reversedStacks,k=c.length,n;if(!a.isXAxis){this.usePercentage=!1;for(n=k;n--;){var v=c[f?n:k-n-1];v.setStackedPoints();v.setGroupedPoints()}for(n=0;n<k;n++)c[n].modifyStacks();B(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=
482
+ this.oldStacks;n(a,function(a){n(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,c=this.stacks;this.axis.isXAxis||n(c,function(c){n(c,function(e,f){w(e.touched)&&e.touched<a.stacksTouched?(e.destroy(),delete c[f]):(e.total=null,e.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,c=a.chart,f=c.renderer,k=this.stacks;a=v(c,a.options.stackLabels&&a.options.stackLabels.animation||!1);var z=this.stackTotalGroup=this.stackTotalGroup||f.g("stack-labels").attr({visibility:"visible",
483
+ zIndex:6,opacity:0}).add();z.translate(c.plotLeft,c.plotTop);n(k,function(a){n(a,function(a){a.render(z)})});z.animate({opacity:1},a)};return a}();return function(){function a(){}a.compose=function(e){D(e,"init",a.onInit);D(e,"destroy",a.onDestroy)};a.onDestroy=function(){var a=this.stacking;if(a){var c=a.stacks;n(c,function(a,e){A(a);c[e]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}};a.onInit=function(){this.stacking||(this.stacking=new k(this))};return a}()});K(a,"Extensions/Stacking.js",
484
+ [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,q,C,D,A,B,w){var n=C.format,k=w.correctFloat,f=w.defined,e=w.destroyObjectProperties,c=w.isArray,h=w.isNumber,t=w.objectEach,z=w.pick,v=function(){function a(a,c,e,f,h){var d=a.chart.inverted;this.axis=a;this.isNegative=e;this.options=c=c||{};this.x=f;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=
485
+ h;this.rightCliff=this.leftCliff=0;this.alignOptions={align:c.align||(d?e?"left":"right":"center"),verticalAlign:c.verticalAlign||(d?"middle":e?"bottom":"top"),y:c.y,x:c.x};this.textAlign=c.textAlign||(d?e?"right":"left":"center")}a.prototype.destroy=function(){e(this,this.axis)};a.prototype.render=function(a){var c=this.axis.chart,e=this.options,f=e.format;f=f?n(f,this,c):e.formatter.call(this);this.label?this.label.attr({text:f,visibility:"hidden"}):(this.label=c.renderer.label(f,null,null,e.shape,
486
+ null,null,e.useHTML,!1,"stack-labels"),f={r:e.borderRadius||0,text:f,rotation:e.rotation,padding:z(e.padding,5),visibility:"hidden"},c.styledMode||(f.fill=e.backgroundColor,f.stroke=e.borderColor,f["stroke-width"]=e.borderWidth,this.label.css(e.style)),this.label.attr(f),this.label.added||this.label.add(a));this.label.labelrank=c.plotSizeY};a.prototype.setOffset=function(a,c,e,k,p){var d=this.axis,l=d.chart;k=d.translate(d.stacking.usePercentage?100:k?k:this.total,0,0,0,1);e=d.translate(e?e:0);e=
487
+ f(k)&&Math.abs(k-e);a=z(p,l.xAxis[0].translate(this.x))+a;d=f(k)&&this.getStackBox(l,this,a,k,c,e,d);c=this.label;e=this.isNegative;a="justify"===z(this.options.overflow,"justify");var b=this.textAlign;c&&d&&(p=c.getBBox(),k=c.padding,b="left"===b?l.inverted?-k:k:"right"===b?p.width:l.inverted&&"center"===b?p.width/2:l.inverted?e?p.width+k:-k:p.width/2,e=l.inverted?p.height/2:e?-k:p.height,this.alignOptions.x=z(this.options.x,0),this.alignOptions.y=z(this.options.y,0),d.x-=b,d.y-=e,c.align(this.alignOptions,
488
+ null,d),l.isInsidePlot(c.alignAttr.x+b-this.alignOptions.x,c.alignAttr.y+e-this.alignOptions.y)?c.show():(c.alignAttr.y=-9999,a=!1),a&&A.prototype.justifyDataLabel.call(this.axis,c,this.alignOptions,c.alignAttr,p,d),c.attr({x:c.alignAttr.x,y:c.alignAttr.y}),z(!a&&this.options.crop,!0)&&((l=h(c.x)&&h(c.y)&&l.isInsidePlot(c.x-k+c.width,c.y)&&l.isInsidePlot(c.x+k,c.y))||c.hide()))};a.prototype.getStackBox=function(a,c,e,f,h,d,l){var b=c.axis.reversed,g=a.inverted,m=l.height+l.pos-(g?a.plotLeft:a.plotTop);
489
+ c=c.isNegative&&!b||!c.isNegative&&b;return{x:g?c?f-l.right:f-d+l.pos-a.plotLeft:e+a.xAxis[0].transB-a.plotLeft,y:g?l.height-e-h:c?m-f-d:m-f,width:g?d:h,height:g?h:d}};return a}();q.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(e){var f=e.xAxis&&e.xAxis.options||{};!e.options.stacking||!0!==e.visible&&!1!==a.options.chart.ignoreHiddenSeries||
490
+ (e.stackKey=[e.type,z(e.options.stack,""),c?f.top:f.left,c?f.height:f.width].join())})};B.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&&t(a.stacks,function(c,e){"group"===e.slice(-5)&&(t(c,function(a){return a.destroy()}),delete a.stacks[e])})};A.prototype.setStackedPoints=function(a){var e=
491
+ a||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var h=this.processedXData,t=this.processedYData,r=[],p=t.length,d=this.options,l=d.threshold,b=z(d.startFromThreshold&&l,0);d=d.stack;a=a?this.type+","+e:this.stackKey;var g="-"+a,m=this.negStacks,x=this.yAxis,n=x.stacking.stacks,w=x.stacking.oldStacks,q,A;x.stacking.stacksTouched+=1;for(A=0;A<p;A++){var B=h[A];var C=t[A];var G=this.getStackIndicator(G,B,this.index);var D=G.key;var I=(q=m&&C<(b?0:
492
+ l))?g:a;n[I]||(n[I]={});n[I][B]||(w[I]&&w[I][B]?(n[I][B]=w[I][B],n[I][B].total=null):n[I][B]=new v(x,x.options.stackLabels,q,B,d));I=n[I][B];null!==C?(I.points[D]=I.points[this.index]=[z(I.cumulative,b)],f(I.cumulative)||(I.base=D),I.touched=x.stacking.stacksTouched,0<G.index&&!1===this.singleStacks&&(I.points[D][0]=I.points[this.index+","+B+",0"][0])):I.points[D]=I.points[this.index]=null;"percent"===e?(q=q?a:g,m&&n[q]&&n[q][B]?(q=n[q][B],I.total=q.total=Math.max(q.total,I.total)+Math.abs(C)||0):
493
+ I.total=k(I.total+(Math.abs(C)||0))):"group"===e?(c(C)&&(C=C[0]),null!==C&&(I.total=(I.total||0)+1)):I.total=k(I.total+(C||0));I.cumulative="group"===e?(I.total||1)-1:z(I.cumulative,b)+(C||0);null!==C&&(I.points[D].push(I.cumulative),r[A]=I.cumulative,I.hasValidPoints=!0)}"percent"===e&&(x.stacking.usePercentage=!0);"group"!==e&&(this.stackedYData=r);x.stacking.oldStacks={}}};A.prototype.modifyStacks=function(){var a=this,c=a.stackKey,e=a.yAxis.stacking.stacks,f=a.processedXData,h,p=a.options.stacking;
494
+ a[p+"Stacker"]&&[c,"-"+c].forEach(function(c){for(var d=f.length,b,g;d--;)if(b=f[d],h=a.getStackIndicator(h,b,a.index,c),g=(b=e[c]&&e[c][b])&&b.points[h.key])a[p+"Stacker"](g,b,d)})};A.prototype.percentStacker=function(a,c,e){c=c.total?100/c.total:0;a[0]=k(a[0]*c);a[1]=k(a[1]*c);this.stackedYData[e]=a[1]};A.prototype.getStackIndicator=function(a,c,e,h){!f(a)||a.x!==c||h&&a.key!==h?a={x:c,index:0,key:h}:a.index++;a.key=[e,c,a.index].join();return a};D.StackItem=v;"";return D.StackItem});K(a,"Series/Line/LineSeries.js",
495
+ [a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C,D){var v=this&&this.__extends||function(){var a=function(k,f){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(k,f)};return function(k,f){function e(){this.constructor=k}a(k,f);k.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}(),B=D.defined,
496
+ w=D.merge;D=function(n){function k(){var a=null!==n&&n.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(k,n);k.prototype.drawGraph=function(){var f=this,e=this.options,c=(this.gappedPath||this.getGraphPath).call(this),h=this.chart.styledMode,k=[["graph","highcharts-graph"]];h||k[0].push(e.lineColor||this.color||a.neutralColor20,e.dashStyle);k=f.getZonesGraphs(k);k.forEach(function(a,k){var t=a[0],n=f[t],z=n?"animate":"attr";n?(n.endX=f.preventGraphAnimation?null:
497
+ c.xMap,n.animate({d:c})):c.length&&(f[t]=n=f.chart.renderer.path(c).addClass(a[1]).attr({zIndex:1}).add(f.group));n&&!h&&(t={stroke:a[2],"stroke-width":e.lineWidth,fill:f.fillGraph&&f.color||"none"},a[3]?t.dashstyle=a[3]:"square"!==e.linecap&&(t["stroke-linecap"]=t["stroke-linejoin"]="round"),n[z](t).shadow(2>k&&e.shadow));n&&(n.startX=c.xMap,n.isArea=c.isArea)})};k.prototype.getGraphPath=function(a,e,c){var f=this,k=f.options,n=k.step,v,w=[],u=[],q;a=a||f.points;(v=a.reversed)&&a.reverse();(n={right:1,
498
+ center:2}[n]||n&&3)&&v&&(n=4-n);a=this.getValidPoints(a,!1,!(k.connectNulls&&!e&&!c));a.forEach(function(h,r){var p=h.plotX,d=h.plotY,l=a[r-1];(h.leftCliff||l&&l.rightCliff)&&!c&&(q=!0);h.isNull&&!B(e)&&0<r?q=!k.connectNulls:h.isNull&&!e?q=!0:(0===r||q?r=[["M",h.plotX,h.plotY]]:f.getPointSpline?r=[f.getPointSpline(a,h,r)]:n?(r=1===n?[["L",l.plotX,d]]:2===n?[["L",(l.plotX+p)/2,l.plotY],["L",(l.plotX+p)/2,d]]:[["L",p,l.plotY]],r.push(["L",p,d])):r=[["L",p,d]],u.push(h.x),n&&(u.push(h.x),2===n&&u.push(h.x)),
499
+ w.push.apply(w,r),q=!1)});w.xMap=u;return f.graphPath=w};k.prototype.getZonesGraphs=function(a){this.zones.forEach(function(e,c){c=["zone-graph-"+c,"highcharts-graph highcharts-zone-graph-"+c+" "+(e.className||"")];this.chart.styledMode||c.push(e.color||this.color,e.dashStyle||this.options.dashStyle);a.push(c)},this);return a};k.defaultOptions=w(q.defaultOptions,{});return k}(q);C.registerSeriesType("line",D);"";return D});K(a,"Series/Area/AreaSeries.js",[a["Core/Color/Color.js"],a["Mixins/LegendSymbol.js"],
500
+ a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C,D){var v=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,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),B=a.parse,w=C.seriesTypes.line;a=D.extend;var n=D.merge,k=D.objectEach,
501
+ f=D.pick;D=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}v(c,a);c.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var c=this,e=this.areaPath,k=this.options,n=[["area","highcharts-area",this.color,k.fillColor]];this.zones.forEach(function(a,e){n.push(["zone-area-"+e,"highcharts-area highcharts-zone-area-"+e+" "+a.className,a.color||c.color,a.fillColor||k.fillColor])});n.forEach(function(a){var h=
502
+ a[0],t=c[h],n=t?"animate":"attr",r={};t?(t.endX=c.preventGraphAnimation?null:e.xMap,t.animate({d:e})):(r.zIndex=0,t=c[h]=c.chart.renderer.path(e).addClass(a[1]).add(c.group),t.isArea=!0);c.chart.styledMode||(r.fill=f(a[3],B(a[2]).setOpacity(f(k.fillOpacity,.75)).get()));t[n](r);t.startX=e.xMap;t.shiftUnit=k.step?2:1})};c.prototype.getGraphPath=function(a){var c=w.prototype.getGraphPath,e=this.options,h=e.stacking,k=this.yAxis,n,v=[],y=[],r=this.index,p=k.stacking.stacks[this.stackKey],d=e.threshold,
503
+ l=Math.round(k.getThreshold(e.threshold));e=f(e.connectNulls,"percent"===h);var b=function(b,c,e){var f=a[b];b=h&&p[f.x].points[r];var g=f[e+"Null"]||0;e=f[e+"Cliff"]||0;f=!0;if(e||g){var x=(g?b[0]:b[1])+e;var t=b[0]+e;f=!!g}else!h&&a[c]&&a[c].isNull&&(x=t=d);"undefined"!==typeof x&&(y.push({plotX:m,plotY:null===x?l:k.getThreshold(x),isNull:f,isCliff:!0}),v.push({plotX:m,plotY:null===t?l:k.getThreshold(t),doCurve:!1}))};a=a||this.points;h&&(a=this.getStackPoints(a));for(n=0;n<a.length;n++){h||(a[n].leftCliff=
504
+ a[n].rightCliff=a[n].leftNull=a[n].rightNull=void 0);var g=a[n].isNull;var m=f(a[n].rectPlotX,a[n].plotX);var x=h?f(a[n].yBottom,l):l;if(!g||e)e||b(n,n-1,"left"),g&&!h&&e||(y.push(a[n]),v.push({x:n,plotX:m,plotY:x})),e||b(n,n+1,"right")}n=c.call(this,y,!0,!0);v.reversed=!0;g=c.call(this,v,!0,!0);(x=g[0])&&"M"===x[0]&&(g[0]=["L",x[1],x[2]]);g=n.concat(g);g.length&&g.push(["Z"]);c=c.call(this,y,!1,e);g.xMap=n.xMap;this.areaPath=g;return c};c.prototype.getStackPoints=function(a){var c=this,e=[],h=[],
505
+ n=this.xAxis,u=this.yAxis,v=u.stacking.stacks[this.stackKey],y={},r=u.series,p=r.length,d=u.options.reversedStacks?1:-1,l=r.indexOf(c);a=a||this.points;if(this.options.stacking){for(var b=0;b<a.length;b++)a[b].leftNull=a[b].rightNull=void 0,y[a[b].x]=a[b];k(v,function(a,b){null!==a.total&&h.push(b)});h.sort(function(a,b){return a-b});var g=r.map(function(a){return a.visible});h.forEach(function(a,b){var m=0,k,x;if(y[a]&&!y[a].isNull)e.push(y[a]),[-1,1].forEach(function(e){var f=1===e?"rightNull":
506
+ "leftNull",m=0,t=v[h[b+e]];if(t)for(var n=l;0<=n&&n<p;){var u=r[n].index;k=t.points[u];k||(u===c.index?y[a][f]=!0:g[n]&&(x=v[a].points[u])&&(m-=x[1]-x[0]));n+=d}y[a][1===e?"rightCliff":"leftCliff"]=m});else{for(var t=l;0<=t&&t<p;){if(k=v[a].points[r[t].index]){m=k[1];break}t+=d}m=f(m,0);m=u.translate(m,0,1,0,1);e.push({isNull:!0,plotX:n.translate(a,0,0,0,1),x:a,plotY:m,yBottom:m})}})}return e};c.defaultOptions=n(w.defaultOptions,{threshold:0});return c}(w);a(D.prototype,{singleStacks:!1,drawLegendSymbol:q.drawRectangle});
507
+ C.registerSeriesType("area",D);"";return D});K(a,"Series/Spline/SplineSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q){var v=this&&this.__extends||function(){var a=function(n,k){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(n,k)};return function(n,k){function f(){this.constructor=n}a(n,k);n.prototype=null===k?Object.create(k):(f.prototype=k.prototype,
508
+ new f)}}(),D=a.seriesTypes.line,A=q.merge,B=q.pick;q=function(a){function n(){var k=null!==a&&a.apply(this,arguments)||this;k.data=void 0;k.options=void 0;k.points=void 0;return k}v(n,a);n.prototype.getPointSpline=function(a,f,e){var c=f.plotX||0,h=f.plotY||0,k=a[e-1];e=a[e+1];if(k&&!k.isNull&&!1!==k.doCurve&&!f.isCliff&&e&&!e.isNull&&!1!==e.doCurve&&!f.isCliff){a=k.plotY||0;var n=e.plotX||0;e=e.plotY||0;var v=0;var w=(1.5*c+(k.plotX||0))/2.5;var u=(1.5*h+a)/2.5;n=(1.5*c+n)/2.5;var q=(1.5*h+e)/2.5;
509
+ n!==w&&(v=(q-u)*(n-c)/(n-w)+h-q);u+=v;q+=v;u>a&&u>h?(u=Math.max(a,h),q=2*h-u):u<a&&u<h&&(u=Math.min(a,h),q=2*h-u);q>e&&q>h?(q=Math.max(e,h),u=2*h-q):q<e&&q<h&&(q=Math.min(e,h),u=2*h-q);f.rightContX=n;f.rightContY=q}f=["C",B(k.rightContX,k.plotX,0),B(k.rightContY,k.plotY,0),B(w,c,0),B(u,h,0),c,h];k.rightContX=k.rightContY=void 0;return f};n.defaultOptions=A(D.defaultOptions);return n}(D);a.registerSeriesType("spline",q);"";return q});K(a,"Series/AreaSpline/AreaSplineSeries.js",[a["Series/Area/AreaSeries.js"],
510
+ a["Series/Spline/SplineSeries.js"],a["Mixins/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C,D,A){var v=this&&this.__extends||function(){var a=function(e,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(e,c)};return function(e,c){function f(){this.constructor=e}a(e,c);e.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),w=
511
+ a.prototype,n=A.extend,k=A.merge;A=function(f){function e(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}v(e,f);e.defaultOptions=k(q.defaultOptions,a.defaultOptions);return e}(q);n(A.prototype,{getGraphPath:w.getGraphPath,getStackPoints:w.getStackPoints,drawGraph:w.drawGraph,drawLegendSymbol:C.drawRectangle});D.registerSeriesType("areaspline",A);"";return A});K(a,"Series/Column/ColumnSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Color/Color.js"],
512
+ a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B,w,n){var k=this&&this.__extends||function(){var a=function(c,b){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(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):
513
+ (d.prototype=b.prototype,new d)}}(),f=a.animObject,e=q.parse,c=C.hasTouch;a=C.noop;var h=n.clamp,t=n.css,v=n.defined,G=n.extend,H=n.fireEvent,u=n.isArray,F=n.isNumber,y=n.merge,r=n.pick,p=n.objectEach;n=function(a){function d(){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}k(d,a);d.prototype.animate=function(a){var b=this,c=this.yAxis,d=b.options,e=this.chart.inverted,l={},p=e?"translateX":"translateY";if(a)l.scaleY=
514
+ .001,a=h(c.toPixels(d.threshold),c.pos,c.pos+c.len),e?l.translateX=a-c.len:l.translateY=a,b.clipBox&&b.setClip(),b.group.attr(l);else{var k=Number(b.group.attr(p));b.group.animate({scaleY:1},G(f(b.options.animation),{step:function(a,d){b.group&&(l[p]=k+d.pos*(c.pos-k),b.group.attr(l))}}))}};d.prototype.init=function(b,c){a.prototype.init.apply(this,arguments);var d=this;b=d.chart;b.hasRendered&&b.series.forEach(function(a){a.type===d.type&&(a.isDirty=!0)})};d.prototype.getColumnMetrics=function(){var a=
515
+ this,c=a.options,d=a.xAxis,e=a.yAxis,f=d.options.reversedStacks;f=d.reversed&&!f||!d.reversed&&f;var h,l={},p=0;!1===c.grouping?p=1:a.chart.series.forEach(function(b){var c=b.yAxis,d=b.options;if(b.type===a.type&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&e.len===c.len&&e.pos===c.pos){if(d.stacking&&"group"!==d.stacking){h=b.stackKey;"undefined"===typeof l[h]&&(l[h]=p++);var f=l[h]}else!1!==d.grouping&&(f=p++);b.columnIndex=f}});var k=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||
516
+ c.pointRange||d.closestPointRange||d.tickInterval||1),d.len),n=k*c.groupPadding,t=(k-2*n)/(p||1);c=Math.min(c.maxPointWidth||d.len,r(c.pointWidth,t*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(t-c)/2+(n+((a.columnIndex||0)+(f?1:0))*t-k/2)*(f?-1:1),paddedWidth:t,columnCount:p};return a.columnMetrics};d.prototype.crispCol=function(a,c,d,e){var b=this.chart,f=this.borderWidth,g=-(f%2?.5:0);f=f%2?.5:1;b.inverted&&b.renderer.isVML&&(f+=1);this.options.crisp&&(d=Math.round(a+d)+g,a=Math.round(a)+
517
+ g,d-=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:d,height:e}};d.prototype.adjustForMissingColumns=function(a,c,d,e){var b=this,f=this.options.stacking;if(!d.isNull&&1<e.columnCount){var g=0,m=0;p(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof d.x&&(a=a[d.x.toString()])){var c=a.points[b.index],e=a.total;f?(c&&(g=m),a.hasValidPoints&&m++):u(c)&&(g=c[1],m=e||0)}});a=(d.plotX||0)+((m-1)*e.paddedWidth+c)/
518
+ 2-c-g*e.paddedWidth}return a};d.prototype.translate=function(){var a=this,c=a.chart,d=a.options,e=a.dense=2>a.closestPointRange*a.xAxis.transA;e=a.borderWidth=r(d.borderWidth,e?0:1);var f=a.xAxis,l=a.yAxis,p=d.threshold,k=a.translatedThreshold=l.getThreshold(p),n=r(d.minPointLength,5),t=a.getColumnMetrics(),u=t.width,y=a.barW=Math.max(u,1+2*e),w=a.pointXOffset=t.offset,q=a.dataMin,z=a.dataMax;c.inverted&&(k-=.5);d.pointPadding&&(y=Math.ceil(y));B.prototype.translate.apply(a);a.points.forEach(function(b){var e=
519
+ r(b.yBottom,k),g=999+Math.abs(e),m=u,x=b.plotX||0;g=h(b.plotY,-g,l.len+g);x+=w;var E=y,A=Math.min(g,e),B=Math.max(g,e)-A;if(n&&Math.abs(B)<n){B=n;var J=!l.reversed&&!b.negative||l.reversed&&b.negative;F(p)&&F(z)&&b.y===p&&z<=p&&(l.min||0)<p&&(q!==z||(l.max||0)<=p)&&(J=!J);A=Math.abs(A-k)>n?e-n:k-(J?n:0)}v(b.options.pointWidth)&&(m=E=Math.ceil(b.options.pointWidth),x-=Math.round((m-u)/2));d.centerInCategory&&(x=a.adjustForMissingColumns(x,m,b,t));b.barX=x;b.pointWidth=m;b.tooltipPos=c.inverted?[h(l.len+
520
+ l.pos-c.plotLeft-g,l.pos-c.plotLeft,l.len+l.pos-c.plotLeft),f.len+f.pos-c.plotTop-x-E/2,B]:[f.left-c.plotLeft+x+E/2,h(g+l.pos-c.plotTop,l.pos-c.plotTop,l.len+l.pos-c.plotTop),B];b.shapeType=a.pointClass.prototype.shapeType||"rect";b.shapeArgs=a.crispCol.apply(a,b.isNull?[x,k,E,0]:[x,A,E,B])})};d.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};d.prototype.pointAttribs=function(a,c){var b=this.options,d=this.pointAttrToOptions||{};var f=d.stroke||
521
+ "borderColor";var g=d["stroke-width"]||"borderWidth",h=a&&a.color||this.color,l=a&&a[f]||b[f]||h,p=a&&a[g]||b[g]||this[g]||0;d=a&&a.options.dashStyle||b.dashStyle;var k=r(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var n=a.getZone();h=a.options.color||n&&(n.color||a.nonZonedColor)||this.color;n&&(l=n.borderColor||l,d=n.dashStyle||d,p=n.borderWidth||p)}c&&a&&(a=y(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,h=a.color||"undefined"!==typeof c&&e(h).brighten(a.brightness).get()||
522
+ h,l=a[f]||l,p=a[g]||p,d=a.dashStyle||d,k=r(a.opacity,k));f={fill:h,stroke:l,"stroke-width":p,opacity:k};d&&(f.dashstyle=d);return f};d.prototype.drawPoints=function(){var a=this,c=this.chart,d=a.options,e=c.renderer,f=d.animationLimit||250,h;a.points.forEach(function(b){var g=b.graphic,m=!!g,l=g&&c.pointCount<f?"animate":"attr";if(F(b.plotY)&&null!==b.y){h=b.shapeArgs;g&&b.hasNewShapeType()&&(g=g.destroy());a.enabledDataSorting&&(b.startXPos=a.xAxis.reversed?-(h?h.width||0:0):a.xAxis.width);g||(b.graphic=
523
+ g=e[b.shapeType](h).add(b.group||a.group))&&a.enabledDataSorting&&c.hasRendered&&c.pointCount<f&&(g.attr({x:b.startXPos}),m=!0,l="animate");if(g&&m)g[l](y(h));if(d.borderRadius)g[l]({r:d.borderRadius});c.styledMode||g[l](a.pointAttribs(b,b.selected&&"select")).shadow(!1!==b.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);g&&(g.addClass(b.getClassName(),!0),g.attr({visibility:b.visible?"inherit":"hidden"}))}else g&&(b.graphic=g.destroy())})};d.prototype.drawTracker=function(){var a=this,d=
524
+ a.chart,e=d.pointer,f=function(a){var b=e.getPointFromEvent(a);"undefined"!==typeof b&&(e.isDirectTouch=!0,b.onMouseOver(a))},h;a.points.forEach(function(a){h=u(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);h.forEach(function(b){b.div?b.div.point=a:b.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(b){if(a[b]){a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){e.onTrackerMouseOut(a)});if(c)a[b].on("touchstart",
525
+ f);!d.styledMode&&a.options.cursor&&a[b].css(t).css({cursor:a.options.cursor})}}),a._hasTracking=!0);H(this,"afterDrawTracker")};d.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});B.prototype.remove.apply(a,arguments)};d.defaultOptions=y(B.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
526
+ select:{color: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 d}(B);G(n.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:D.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});w.registerSeriesType("column",n);"";"";return n});K(a,"Series/Bar/BarSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/SeriesRegistry.js"],
527
+ a["Core/Utilities.js"]],function(a,q,C){var v=this&&this.__extends||function(){var a=function(n,k){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(n,k)};return function(n,k){function f(){this.constructor=n}a(n,k);n.prototype=null===k?Object.create(k):(f.prototype=k.prototype,new f)}}(),A=C.extend,B=C.merge;C=function(q){function n(){var a=null!==q&&q.apply(this,arguments)||this;a.data=void 0;
528
+ a.options=void 0;a.points=void 0;return a}v(n,q);n.defaultOptions=B(a.defaultOptions,{});return n}(a);A(C.prototype,{inverted:!0});q.registerSeriesType("bar",C);"";return C});K(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,q,C,D){var v=this&&this.__extends||function(){var a=function(f,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||
529
+ function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(f,e)};return function(f,e){function c(){this.constructor=f}a(f,e);f.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),B=D.addEvent,w=D.extend,n=D.merge;D=function(a){function f(){var e=null!==a&&a.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}v(f,a);f.prototype.applyJitter=function(){var a=this,c=this.options.jitter,f=this.points.length;c&&this.points.forEach(function(e,
530
+ h){["x","y"].forEach(function(k,n){var t="plot"+k.toUpperCase();if(c[k]&&!e.isNull){var v=a[k+"Axis"];var y=c[k]*v.transA;if(v&&!v.isLog){var r=Math.max(0,e[t]-y);v=Math.min(v.len,e[t]+y);n=1E4*Math.sin(h+n*f);e[t]=r+(v-r)*(n-Math.floor(n));"x"===k&&(e.clientX=e.plotX)}}})})};f.prototype.drawGraph=function(){this.options.lineWidth?a.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};f.defaultOptions=n(q.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},
531
+ marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return f}(q);w(D.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});B(D,"afterTranslate",function(){this.applyJitter()});C.registerSeriesType("scatter",D);"";return D});
532
+ K(a,"Mixins/CenteredSeries.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,q,C){var v=C.isNumber,A=C.pick,B=C.relativeLength,w=a.deg2rad;return a.CenteredSeriesMixin={getCenter:function(){var a=this.options,k=this.chart,f=2*(a.slicedOffset||0),e=k.plotWidth-2*f,c=k.plotHeight-2*f,h=a.center,t=Math.min(e,c),v=a.size,w=a.innerSize||0;"string"===typeof v&&(v=parseFloat(v));"string"===typeof w&&(w=parseFloat(w));a=[A(h[0],"50%"),A(h[1],"50%"),A(v&&0>v?void 0:a.size,
533
+ "100%"),A(w&&0>w?void 0:a.innerSize||0,"0%")];!k.angular||this instanceof q||(a[3]=0);for(h=0;4>h;++h)v=a[h],k=2>h||2===h&&/%$/.test(v),a[h]=B(v,[e,c,t,a[2]][h])+(k?f:0);a[3]>a[2]&&(a[3]=a[2]);return a},getStartAndEndRadians:function(a,k){a=v(a)?a:0;k=v(k)&&k>a&&360>k-a?k:a+360;return{start:w*(a+-90),end:w*(k+-90)}}}});K(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,q,C){var v=this&&this.__extends||function(){var a=
534
+ 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,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),A=a.setAnimation,B=C.addEvent,w=C.defined;a=C.extend;var n=C.isNumber,k=C.pick,f=C.relativeLength;C=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.labelDistance=void 0;
535
+ c.options=void 0;c.series=void 0;return c}v(c,a);c.prototype.getConnectorPath=function(){var a=this.labelPosition,c=this.series.options.dataLabels,e=c.connectorShape,f=this.connectorShapes;f[e]&&(e=f[e]);return e.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,c)};c.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};c.prototype.haloPath=function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,
536
+ c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};c.prototype.init=function(){q.prototype.init.apply(this,arguments);var a=this;a.name=k(a.name,"Slice");var c=function(c){a.slice("select"===c.type)};B(a,"select",c);B(a,"unselect",c);return a};c.prototype.isValid=function(){return n(this.y)&&0<=this.y};c.prototype.setVisible=function(a,c){var e=this,f=e.series,h=f.chart,n=f.options.ignoreHiddenPoint;c=k(c,n);a!==e.visible&&(e.visible=e.options.visible=a="undefined"===typeof a?!e.visible:a,f.options.data[f.data.indexOf(e)]=
537
+ e.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(c){if(e[c])e[c][a?"show":"hide"](a)}),e.legendItem&&h.legend.colorizeItem(e,a),a||"hover"!==e.state||e.setState(""),n&&(f.isDirty=!0),c&&h.redraw())};c.prototype.slice=function(a,c,e){var f=this.series;A(e,f.chart);k(c,!0);this.sliced=this.options.sliced=w(a)?a:!this.sliced;f.options.data[f.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};
538
+ return c}(q);a(C.prototype,{connectorShapes:{fixedOffset:function(a,c,f){var e=c.breakAt;c=c.touchingSliceAt;return[["M",a.x,a.y],f.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*e.x-c.x,2*e.y-c.y,e.x,e.y]:["L",e.x,e.y],["L",c.x,c.y]]},straight:function(a,c){c=c.touchingSliceAt;return[["M",a.x,a.y],["L",c.x,c.y]]},crookedLine:function(a,c,h){c=c.touchingSliceAt;var e=this.series,k=e.center[0],n=e.chart.plotWidth,v=e.chart.plotLeft;e=a.alignment;var u=this.shapeArgs.r;h=f(h.crookDistance,
539
+ 1);n="left"===e?k+u+(n+v-k-u)*(1-h):v+(k-u)*h;h=["L",n,a.y];k=!0;if("left"===e?n>a.x||n<c.x:n<a.x||n>c.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(h);a.push(["L",c.x,c.y]);return a}}});return C});K(a,"Series/Pie/PieSeries.js",[a["Mixins/CenteredSeries.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Mixins/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"]],
540
+ function(a,q,C,D,A,B,w,n,k,f){var e=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 d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(c,e)};return function(c,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),c=a.getStartAndEndRadians;C=C.noop;var h=f.clamp,t=f.extend,v=f.fireEvent,G=f.merge,H=f.pick,u=f.relativeLength;f=
541
+ function(a){function f(){var c=null!==a&&a.apply(this,arguments)||this;c.center=void 0;c.data=void 0;c.maxLabelDistance=void 0;c.options=void 0;c.points=void 0;return c}e(f,a);f.prototype.animate=function(a){var c=this,d=c.points,e=c.startAngleRad;a||d.forEach(function(a){var b=a.graphic,d=a.shapeArgs;b&&d&&(b.attr({r:H(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))})};f.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,
542
+ d=this.options;if(0===this.total&&this.center){var e=this.center[0];var b=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,b,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:k.arc(e,b,this.center[2]/2,0,{start:a,end:c,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())};f.prototype.drawPoints=
543
+ function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||(c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};f.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};f.prototype.getX=function(a,c,d){var e=this.center,b=this.radii?this.radii[d.index]||0:e[2]/2;a=Math.asin(h((a-e[1])/(b+d.labelDistance),-1,1));return e[0]+(c?-1:1)*Math.cos(a)*
544
+ (b+d.labelDistance)+(0<d.labelDistance?(c?-1:1)*this.options.dataLabels.padding:0)};f.prototype.hasData=function(){return!!this.processedXData.length};f.prototype.redrawPoints=function(){var a=this,c=a.chart,d=c.renderer,e,b,f,m,h=a.options.shadow;this.drawEmpty();!h||a.shadowGroup||c.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(g){var l={};b=g.graphic;if(!g.isNull&&b){var p=void 0;m=g.shapeArgs;e=g.getTranslate();c.styledMode||(p=g.shadowGroup,
545
+ h&&!p&&(p=g.shadowGroup=d.g("shadow").add(a.shadowGroup)),p&&p.attr(e),f=a.pointAttribs(g,g.selected&&"select"));g.delayedRendering?(b.setRadialReference(a.center).attr(m).attr(e),c.styledMode||b.attr(f).attr({"stroke-linejoin":"round"}).shadow(h,p),g.delayedRendering=!1):(b.setRadialReference(a.center),c.styledMode||G(!0,l,f),G(!0,l,m,e),b.animate(l));b.attr({visibility:g.visible?"inherit":"hidden"});b.addClass(g.getClassName(),!0)}else b&&(g.graphic=b.destroy())})};f.prototype.sortByAngle=function(a,
546
+ c){a.sort(function(a,e){return"undefined"!==typeof a.angle&&(e.angle-a.angle)*c})};f.prototype.translate=function(a){this.generatePoints();var e=0,d=this.options,f=d.slicedOffset,b=f+(d.borderWidth||0),g=c(d.startAngle,d.endAngle),m=this.startAngleRad=g.start;g=(this.endAngleRad=g.end)-m;var h=this.points,k=d.dataLabels.distance;d=d.ignoreHiddenPoint;var r,n=h.length;a||(this.center=a=this.getCenter());for(r=0;r<n;r++){var t=h[r];var y=m+e*g;!t.isValid()||d&&!t.visible||(e+=t.percentage/100);var q=
547
+ m+e*g;var w={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*y)/1E3,end:Math.round(1E3*q)/1E3};t.shapeType="arc";t.shapeArgs=w;t.labelDistance=H(t.options.dataLabels&&t.options.dataLabels.distance,k);t.labelDistance=u(t.labelDistance,w.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,t.labelDistance);q=(q+y)/2;q>1.5*Math.PI?q-=2*Math.PI:q<-Math.PI/2&&(q+=2*Math.PI);t.slicedTranslation={translateX:Math.round(Math.cos(q)*f),translateY:Math.round(Math.sin(q)*f)};w=Math.cos(q)*a[2]/
548
+ 2;var z=Math.sin(q)*a[2]/2;t.tooltipPos=[a[0]+.7*w,a[1]+.7*z];t.half=q<-Math.PI/2||q>Math.PI/2?1:0;t.angle=q;y=Math.min(b,t.labelDistance/5);t.labelPosition={natural:{x:a[0]+w+Math.cos(q)*t.labelDistance,y:a[1]+z+Math.sin(q)*t.labelDistance},"final":{},alignment:0>t.labelDistance?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+w+Math.cos(q)*y,y:a[1]+z+Math.sin(q)*y},touchingSliceAt:{x:a[0]+w,y:a[1]+z}}}}v(this,"afterTranslate")};f.prototype.updateTotals=function(){var a,c=0,d=this.points,
549
+ e=d.length,b=this.options.ignoreHiddenPoint;for(a=0;a<e;a++){var f=d[a];!f.isValid()||b&&!f.visible||(c+=f.y)}this.total=c;for(a=0;a<e;a++)f=d[a],f.percentage=0<c&&(f.visible||!b)?f.y/c*100:0,f.total=c};f.defaultOptions=G(w.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,
550
+ ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:A.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return f}(w);t(f.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:D.drawRectangle,drawTracker:q.prototype.drawTracker,getCenter:a.getCenter,getSymbol:C,isCartesian:!1,noSharedTooltip:!0,pointAttribs:q.prototype.pointAttribs,
551
+ pointClass:B,requireSorting:!1,searchPoint:C,trackerGroups:["group","dataLabelsGroup"]});n.registerSeriesType("pie",f);"";return f});K(a,"Core/Series/DataLabels.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B,w){var n=a.getDeferredAnimation,k=q.format;a=C.noop;B=B.seriesTypes;var f=w.arrayMax,e=w.clamp,c=w.defined,h=
552
+ w.extend,t=w.fireEvent,v=w.isArray,G=w.merge,H=w.objectEach,u=w.pick,F=w.relativeLength,y=w.splat,r=w.stableSort;"";C.distribute=function(a,c,f){function b(a,b){return a.target-b.target}var d,m=!0,h=a,l=[];var k=0;var p=h.reducedLen||c;for(d=a.length;d--;)k+=a[d].size;if(k>p){r(a,function(a,b){return(b.rank||0)-(a.rank||0)});for(k=d=0;k<=p;)k+=a[d].size,d++;l=a.splice(d-1,a.length)}r(a,b);for(a=a.map(function(a){return{size:a.size,targets:[a.target],align:u(a.align,.5)}});m;){for(d=a.length;d--;)m=
553
+ a[d],k=(Math.min.apply(0,m.targets)+Math.max.apply(0,m.targets))/2,m.pos=e(k-m.size*m.align,0,c-m.size);d=a.length;for(m=!1;d--;)0<d&&a[d-1].pos+a[d-1].size>a[d].pos&&(a[d-1].size+=a[d].size,a[d-1].targets=a[d-1].targets.concat(a[d].targets),a[d-1].align=.5,a[d-1].pos+a[d-1].size>c&&(a[d-1].pos=c-a[d-1].size),a.splice(d,1),m=!0)}h.push.apply(h,l);d=0;a.some(function(a){var b=0;if(a.targets.some(function(){h[d].pos=a.pos+b;if("undefined"!==typeof f&&Math.abs(h[d].pos-h[d].target)>f)return h.slice(0,
554
+ d+1).forEach(function(a){delete a.pos}),h.reducedLen=(h.reducedLen||c)-.1*c,h.reducedLen>.1*c&&C.distribute(h,c,f),!0;b+=h[d].size;d++}))return!0});r(h,b)};A.prototype.drawDataLabels=function(){function a(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:!1):!0}function d(a,b){var c=[],d;if(v(a)&&!v(b))c=a.map(function(a){return G(a,b)});else if(v(b)&&!v(a))c=b.map(function(b){return G(a,
555
+ b)});else if(v(a)||v(b))for(d=Math.max(a.length,b.length);d--;)c[d]=G(a[d],b[d]);else c=G(a,b);return c}var e=this,b=e.chart,f=e.options,m=f.dataLabels,h=e.points,r,q=e.hasRendered||0,w=m.animation;w=m.defer?n(b,w,e):{defer:0,duration:0};var z=b.renderer;m=d(d(b.options.plotOptions&&b.options.plotOptions.series&&b.options.plotOptions.series.dataLabels,b.options.plotOptions&&b.options.plotOptions[e.type]&&b.options.plotOptions[e.type].dataLabels),m);t(this,"drawDataLabels");if(v(m)||m.enabled||e._hasPointLabels){var A=
556
+ e.plotGroup("dataLabelsGroup","data-labels",q?"inherit":"hidden",m.zIndex||6);A.attr({opacity:+q});!q&&(q=e.dataLabelsGroup)&&(e.visible&&A.show(!0),q[f.animation?"animate":"attr"]({opacity:1},w));h.forEach(function(g){r=y(d(m,g.dlOptions||g.options&&g.options.dataLabels));r.forEach(function(d,m){var h=d.enabled&&(!g.isNull||g.dataLabelOnNull)&&a(g,d),l=g.dataLabels?g.dataLabels[m]:g.dataLabel,p=g.connectors?g.connectors[m]:g.connector,r=u(d.distance,g.labelDistance),n=!l;if(h){var x=g.getLabelConfig();
557
+ var t=u(d[g.formatPrefix+"Format"],d.format);x=c(t)?k(t,x,b):(d[g.formatPrefix+"Formatter"]||d.formatter).call(x,d);t=d.style;var v=d.rotation;b.styledMode||(t.color=u(d.color,t.color,e.color,D.neutralColor100),"contrast"===t.color?(g.contrastColor=z.getContrast(g.color||e.color),t.color=!c(r)&&d.inside||0>r||f.stacking?g.contrastColor:D.neutralColor100):delete g.contrastColor,f.cursor&&(t.cursor=f.cursor));var q={r:d.borderRadius||0,rotation:v,padding:d.padding,zIndex:1};b.styledMode||(q.fill=d.backgroundColor,
558
+ q.stroke=d.borderColor,q["stroke-width"]=d.borderWidth);H(q,function(a,b){"undefined"===typeof a&&delete q[b]})}!l||h&&c(x)?h&&c(x)&&(l?q.text=x:(g.dataLabels=g.dataLabels||[],l=g.dataLabels[m]=v?z.text(x,0,-9999,d.useHTML).addClass("highcharts-data-label"):z.label(x,0,-9999,d.shape,null,null,d.useHTML,null,"data-label"),m||(g.dataLabel=l),l.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(d.className||"")+(d.useHTML?" highcharts-tracker":""))),l.options=d,l.attr(q),b.styledMode||l.css(t).shadow(d.shadow),
559
+ l.added||l.add(A),d.textPath&&!d.useHTML&&(l.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(l)||g.graphic,d.textPath),g.dataLabelPath&&!d.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),e.alignDataLabel(g,l,d,null,n)):(g.dataLabel=g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[m]),m||delete g.dataLabel,p&&(g.connector=g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[m])))})})}t(this,
560
+ "afterDrawDataLabels")};A.prototype.alignDataLabel=function(a,c,e,b,f){var d=this,g=this.chart,l=this.isCartesian&&g.inverted,k=this.enabledDataSorting,p=u(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),r=u(a.plotY,-9999),n=c.getBBox(),t=e.rotation,v=e.align,q=g.isInsidePlot(p,Math.round(r),{inverted:l,paneCoordinates:!0,series:d}),y="justify"===u(e.overflow,k?"none":"justify"),w=this.visible&&!1!==a.visible&&(a.series.forceDL||k&&!y||q||u(e.inside,!!this.options.stacking)&&b&&g.isInsidePlot(p,l?b.x+1:b.y+
561
+ b.height-1,{inverted:l,paneCoordinates:!0,series:d}));var z=function(b){k&&d.xAxis&&!y&&d.setDataLabelStartPos(a,c,f,q,b)};if(w){var A=g.renderer.fontMetrics(g.styledMode?void 0:e.style.fontSize,c).b;b=h({x:l?this.yAxis.len-r:p,y:Math.round(l?this.xAxis.len-p:r),width:0,height:0},b);h(e,{width:n.width,height:n.height});t?(y=!1,p=g.renderer.rotCorr(A,t),p={x:b.x+(e.x||0)+b.width/2+p.x,y:b.y+(e.y||0)+{top:0,middle:.5,bottom:1}[e.verticalAlign]*b.height},z(p),c[f?"attr":"animate"](p).attr({align:v}),
562
+ z=(t+720)%360,z=180<z&&360>z,"left"===v?p.y-=z?n.height:0:"center"===v?(p.x-=n.width/2,p.y-=n.height/2):"right"===v&&(p.x-=n.width,p.y-=z?0:n.height),c.placed=!0,c.alignAttr=p):(z(b),c.align(e,void 0,b),p=c.alignAttr);y&&0<=b.height?this.justifyDataLabel(c,e,p,n,b,f):u(e.crop,!0)&&(w=g.isInsidePlot(p.x,p.y,{paneCoordinates:!0,series:d})&&g.isInsidePlot(p.x+n.width,p.y+n.height,{paneCoordinates:!0,series:d}));if(e.shape&&!t)c[f?"attr":"animate"]({anchorX:l?g.plotWidth-a.plotY:a.plotX,anchorY:l?g.plotHeight-
563
+ a.plotX:a.plotY})}f&&k&&(c.placed=!1);w||k&&!y||(c.hide(!0),c.placed=!1)};A.prototype.setDataLabelStartPos=function(a,c,e,b,f){var d=this.chart,g=d.inverted,h=this.xAxis,l=h.reversed,k=g?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;h=g?f.x:l?-k-a:h.width-k+a;f=g?l?this.yAxis.height-k+a:-k-a:f.y;c.startXPos=h;c.startYPos=f;b?"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&&(e&&c.attr({x:c.startXPos,y:c.startYPos}),
564
+ c.placed=!0)};A.prototype.justifyDataLabel=function(a,c,e,b,f,m){var d=this.chart,g=c.align,h=c.verticalAlign,l=a.box?0:a.padding||0,k=c.x;k=void 0===k?0:k;var p=c.y;var r=void 0===p?0:p;p=(e.x||0)+l;if(0>p){"right"===g&&0<=k?(c.align="left",c.inside=!0):k-=p;var n=!0}p=(e.x||0)+b.width-l;p>d.plotWidth&&("left"===g&&0>=k?(c.align="right",c.inside=!0):k+=d.plotWidth-p,n=!0);p=e.y+l;0>p&&("bottom"===h&&0<=r?(c.verticalAlign="top",c.inside=!0):r-=p,n=!0);p=(e.y||0)+b.height-l;p>d.plotHeight&&("top"===
565
+ h&&0>=r?(c.verticalAlign="bottom",c.inside=!0):r+=d.plotHeight-p,n=!0);n&&(c.x=k,c.y=r,a.placed=!m,a.align(c,void 0,f));return n};B.pie&&(B.pie.prototype.dataLabelPositioners={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,c,e,b){return a.getX(e<c.top+2||e>c.bottom-2?b:e,c.half,c)},justify:function(a,c,e){return e[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,e,b){a=a.getBBox().width;return c?a+b:e-a-b},alignToConnectors:function(a,
566
+ c,e,b){var d=0,f;a.forEach(function(a){f=a.dataLabel.getBBox().width;f>d&&(d=f)});return c?d+b:e-d-b}},B.pie.prototype.drawDataLabels=function(){var a=this,d=a.data,e,b=a.chart,g=a.options.dataLabels||{},h=g.connectorPadding,k,r=b.plotWidth,n=b.plotHeight,t=b.plotLeft,v=Math.round(b.chartWidth/3),q,y=a.center,w=y[2]/2,z=y[1],B,F,H,K,fa=[[],[]],M,Q,S,U,T=[0,0,0,0],R=a.dataLabelPositioners,V;a.visible&&(g.enabled||a._hasPointLabels)&&(d.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&
567
+ (a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),A.prototype.drawDataLabels.apply(a),d.forEach(function(a){a.dataLabel&&(a.visible?(fa[a.half].push(a),a.dataLabel._pos=null,!c(g.style.width)&&!c(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>v&&(a.dataLabel.css({width:Math.round(.7*v)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&
568
+ delete a.dataLabels))}),fa.forEach(function(d,f){var m=d.length,l=[],k;if(m){a.sortByAngle(d,f-.5);if(0<a.maxLabelDistance){var p=Math.max(0,z-w-a.maxLabelDistance);var x=Math.min(z+w+a.maxLabelDistance,b.plotHeight);d.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,z-w-a.labelDistance),a.bottom=Math.min(z+w+a.labelDistance,b.plotHeight),k=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+k/2,size:k,rank:a.y},l.push(a.distributeBox))});
569
+ p=x+k-p;C.distribute(l,p,p/5)}for(U=0;U<m;U++){e=d[U];H=e.labelPosition;B=e.dataLabel;S=!1===e.visible?"hidden":"inherit";Q=p=H.natural.y;l&&c(e.distributeBox)&&("undefined"===typeof e.distributeBox.pos?S="hidden":(K=e.distributeBox.size,Q=R.radialDistributionY(e)));delete e.positionIndex;if(g.justify)M=R.justify(e,w,y);else switch(g.alignTo){case "connectors":M=R.alignToConnectors(d,f,r,t);break;case "plotEdges":M=R.alignToPlotEdges(B,f,r,t);break;default:M=R.radialDistributionX(a,e,Q,p)}B._attr=
570
+ {visibility:S,align:H.alignment};V=e.options.dataLabels||{};B._pos={x:M+u(V.x,g.x)+({left:h,right:-h}[H.alignment]||0),y:Q+u(V.y,g.y)-10};H.final.x=M;H.final.y=Q;u(g.crop,!0)&&(F=B.getBBox().width,p=null,M-F<h&&1===f?(p=Math.round(F-M+h),T[3]=Math.max(p,T[3])):M+F>r-h&&0===f&&(p=Math.round(M+F-r+h),T[1]=Math.max(p,T[1])),0>Q-K/2?T[0]=Math.max(Math.round(-Q+K/2),T[0]):Q+K/2>n&&(T[2]=Math.max(Math.round(Q+K/2-n),T[2])),B.sideOverflow=p)}}}),0===f(T)||this.verifyDataLabelOverflow(T))&&(this.placeDataLabels(),
571
+ this.points.forEach(function(c){V=G(g,c.options.dataLabels);if(k=u(V.connectorWidth,1)){var d;q=c.connector;if((B=c.dataLabel)&&B._pos&&c.visible&&0<c.labelDistance){S=B._attr.visibility;if(d=!q)c.connector=q=b.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+c.colorIndex+(c.className?" "+c.className:"")).add(a.dataLabelsGroup),b.styledMode||q.attr({"stroke-width":k,stroke:V.connectorColor||c.color||D.neutralColor60});q[d?"attr":"animate"]({d:c.getConnectorPath()});q.attr("visibility",
572
+ S)}else q&&(c.connector=q.destroy())}}))},B.pie.prototype.placeDataLabels=function(){this.points.forEach(function(a){var c=a.dataLabel,e;c&&a.visible&&((e=c._pos)?(c.sideOverflow&&(c._attr.width=Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),c[c.moved?"animate":"attr"](e),c.moved=!0):c&&c.attr({y:-9999}));delete a.distributeBox},this)},B.pie.prototype.alignDataLabel=
573
+ a,B.pie.prototype.verifyDataLabelOverflow=function(a){var c=this.center,f=this.options,b=f.center,g=f.minSize||80,h=null!==f.size;if(!h){if(null!==b[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!==b[1]?k=e(k,g,c[2]-Math.max(a[0],a[2])):(k=e(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(F(f.innerSize||0,k),k),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):h=!0}return h});B.column&&(B.column.prototype.alignDataLabel=
574
+ function(a,c,e,b,f){var d=this.chart.inverted,g=a.series,h=a.dlBox||a.shapeArgs,l=u(a.below,a.plotY>u(this.translatedThreshold,g.yAxis.len)),k=u(e.inside,!!this.options.stacking);h&&(b=G(h),0>b.y&&(b.height+=b.y,b.y=0),h=b.y+b.height-g.yAxis.len,0<h&&h<b.height&&(b.height-=h),d&&(b={x:g.yAxis.len-b.y-b.height,y:g.xAxis.len-b.x-b.width,width:b.height,height:b.width}),k||(d?(b.x+=l?0:b.width,b.width=0):(b.y+=l?b.height:0,b.height=0)));e.align=u(e.align,!d||k?"center":l?"right":"left");e.verticalAlign=
575
+ u(e.verticalAlign,d||k?"middle":l?"top":"bottom");A.prototype.alignDataLabel.call(this,a,c,e,b,f);e.inside&&a.contrastColor&&c.css({color:a.contrastColor})})});K(a,"Extensions/OverlappingDataLabels.js",[a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,q){function v(a,e){var c=!1;if(a){var f=a.newOpacity;a.oldOpacity!==f&&(a.alignAttr&&a.placed?(a[f?"removeClass":"addClass"]("highcharts-data-label-hidden"),c=!0,a.alignAttr.opacity=f,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){e.styledMode||
576
+ a.css({pointerEvents:f?"auto":"none"})}),A(e,"afterHideOverlappingLabel")):a.attr({opacity:f}));a.isOld=!0}return c}var D=q.addEvent,A=q.fireEvent,B=q.isArray,w=q.isNumber,n=q.objectEach,k=q.pick;D(a,"render",function(){var a=this,e=[];(this.labelCollectors||[]).forEach(function(a){e=e.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&n(a.stacking.stacks,function(a){n(a,function(a){a.label&&"hidden"!==a.label.visibility&&e.push(a.label)})})});
577
+ (this.series||[]).forEach(function(c){var f=c.options.dataLabels;c.visible&&(!1!==f.enabled||c._hasPointLabels)&&(f=function(c){return c.forEach(function(c){c.visible&&(B(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[]).forEach(function(f){var h=f.options;f.labelrank=k(h.labelrank,c.labelrank,c.shapeArgs&&c.shapeArgs.height);h.allowOverlap?(f.oldOpacity=f.opacity,f.newOpacity=1,v(f,a)):e.push(f)})})},f(c.nodes||[]),f(c.points))});this.hideOverlappingLabels(e)});a.prototype.hideOverlappingLabels=
578
+ function(a){var e=this,c=a.length,f=e.renderer,k,n,q,B=!1;var u=function(a){var c,d=a.box?0:a.padding||0,e=c=0,b;if(a&&(!a.alignAttr||a.placed)){var g=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var h=a.parentGroup;a.width||(c=a.getBBox(),a.width=c.width,a.height=c.height,c=f.fontMetrics(null,a.element).h);var k=a.width-2*d;(b={left:"0",center:"0.5",right:"1"}[a.alignValue])?e=+b*k:w(a.x)&&Math.round(a.x)!==a.translateX&&(e=a.x-a.translateX);return{x:g.x+(h.translateX||0)+d-(e||0),y:g.y+(h.translateY||
579
+ 0)+d-c,width:a.width-2*d,height:a.height-2*d}}};for(n=0;n<c;n++)if(k=a[n])k.oldOpacity=k.opacity,k.newOpacity=1,k.absoluteBox=u(k);a.sort(function(a,c){return(c.labelrank||0)-(a.labelrank||0)});for(n=0;n<c;n++){var C=(u=a[n])&&u.absoluteBox;for(k=n+1;k<c;++k){var y=(q=a[k])&&q.absoluteBox;!C||!y||u===q||0===u.newOpacity||0===q.newOpacity||y.x>=C.x+C.width||y.x+y.width<=C.x||y.y>=C.y+C.height||y.y+y.height<=C.y||((u.labelrank<q.labelrank?u:q).newOpacity=0)}}a.forEach(function(a){v(a,e)&&(B=!0)});B&&
580
+ A(e,"afterHideAllOverlappingLabels")}});K(a,"Core/Responsive.js",[a["Core/Utilities.js"]],function(a){var q=a.extend,v=a.find,D=a.isArray,A=a.isObject,B=a.merge,w=a.objectEach,n=a.pick,k=a.splat,f=a.uniqueKey,e=function(){function a(){}a.prototype.currentOptions=function(a){function c(a,f,h,n){var r;w(a,function(a,d){if(!n&&-1<e.collectionsWithUpdate.indexOf(d)&&f[d])for(a=k(a),h[d]=[],r=0;r<Math.max(a.length,f[d].length);r++)f[d][r]&&(void 0===a[r]?h[d][r]=f[d][r]:(h[d][r]={},c(a[r],f[d][r],h[d][r],
581
+ n+1)));else A(a)?(h[d]=D(a)?[]:{},c(a,f[d]||{},h[d],n+1)):h[d]="undefined"===typeof f[d]?null:f[d]})}var e=this,f={};c(a,this.options,f,0);return f};a.prototype.matchResponsiveRule=function(a,c){var e=a.condition;(e.callback||function(){return this.chartWidth<=n(e.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=n(e.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=n(e.minWidth,0)&&this.chartHeight>=n(e.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=function(a,c){var e=this.options.responsive,
582
+ h=this.currentResponsive,k=[];!c&&e&&e.rules&&e.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=f());this.matchResponsiveRule(a,k)},this);c=B.apply(void 0,k.map(function(a){return v((e||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));c.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,a,!0),k?(h=this.currentOptions(c),h.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:c,undoOptions:h},
583
+ this.update(c,a,!0)):this.currentResponsive=void 0)};return a}();a=function(){function a(){}a.compose=function(a){q(a.prototype,e.prototype);return a};return a}();"";"";return a});K(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"],a["Core/FormatUtilities.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Renderer/HTML/HTMLElement.js"],
584
+ a["Core/Renderer/HTML/HTMLRenderer.js"],a["Core/Axis/Axis.js"],a["Core/Axis/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,q,C,D,A,B,w,n,k,f,e,c,h,t,z,G,H,u,F,y,r){a.animate=A.animate;a.animObject=A.animObject;a.getDeferredAnimation=A.getDeferredAnimation;a.setAnimation=A.setAnimation;a.stop=A.stop;a.timers=D.timers;a.AST=B;a.Axis=
585
+ c;a.Chart=H;a.chart=H.chart;a.Fx=D;a.PlotLineOrBand=h;a.Pointer=G.isRequired()?G:z;a.Series=u;a.SVGElement=n;a.SVGRenderer=k;a.Tick=t;a.Time=r;a.Color=y;a.color=y.parse;e.compose(k);f.compose(n);a.defaultOptions=C.defaultOptions;a.getOptions=C.getOptions;a.time=C.defaultTime;a.setOptions=C.setOptions;a.dateFormat=w.dateFormat;a.format=w.format;a.numberFormat=w.numberFormat;a.addEvent=q.addEvent;a.arrayMax=q.arrayMax;a.arrayMin=q.arrayMin;a.attr=q.attr;a.clearTimeout=q.clearTimeout;a.correctFloat=
586
+ q.correctFloat;a.createElement=q.createElement;a.css=q.css;a.defined=q.defined;a.destroyObjectProperties=q.destroyObjectProperties;a.discardElement=q.discardElement;a.erase=q.erase;a.error=q.error;a.extend=q.extend;a.extendClass=q.extendClass;a.find=q.find;a.fireEvent=q.fireEvent;a.getMagnitude=q.getMagnitude;a.getStyle=q.getStyle;a.inArray=q.inArray;a.isArray=q.isArray;a.isClass=q.isClass;a.isDOMElement=q.isDOMElement;a.isFunction=q.isFunction;a.isNumber=q.isNumber;a.isObject=q.isObject;a.isString=
587
+ q.isString;a.keys=q.keys;a.merge=q.merge;a.normalizeTickInterval=q.normalizeTickInterval;a.objectEach=q.objectEach;a.offset=q.offset;a.pad=q.pad;a.pick=q.pick;a.pInt=q.pInt;a.relativeLength=q.relativeLength;a.removeEvent=q.removeEvent;a.splat=q.splat;a.stableSort=q.stableSort;a.syncTimeout=q.syncTimeout;a.timeUnits=q.timeUnits;a.uniqueKey=q.uniqueKey;a.useSerialIds=q.useSerialIds;a.wrap=q.wrap;F.compose(H);return a});K(a,"Core/Axis/MapAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,
588
+ q){var v=q.addEvent,D=q.pick,A=function(){return function(a){this.axis=a}}();q=function(){function a(){}a.compose=function(a){a.keepProps.push("mapAxis");v(a,"init",function(){this.mapAxis||(this.mapAxis=new A(this))});v(a,"getSeriesExtremes",function(){if(this.mapAxis){var a=[];this.isXAxis&&(this.series.forEach(function(k,f){k.useMapGeometry&&(a[f]=k.xData,k.xData=[])}),this.mapAxis.seriesXData=a)}});v(a,"afterGetSeriesExtremes",function(){if(this.mapAxis){var a=this.mapAxis.seriesXData||[],k;if(this.isXAxis){var f=
589
+ D(this.dataMin,Number.MAX_VALUE);var e=D(this.dataMax,-Number.MAX_VALUE);this.series.forEach(function(c,h){c.useMapGeometry&&(f=Math.min(f,D(c.minX,f)),e=Math.max(e,D(c.maxX,e)),c.xData=a[h],k=!0)});k&&(this.dataMin=f,this.dataMax=e);this.mapAxis.seriesXData=void 0}}});v(a,"afterSetAxisTranslation",function(){if(this.mapAxis){var a=this.chart,k=a.plotWidth/a.plotHeight;a=a.xAxis[0];var f;"yAxis"===this.coll&&"undefined"!==typeof a.transA&&this.series.forEach(function(a){a.preserveAspectRatio&&(f=
590
+ !0)});if(f&&(this.transA=a.transA=Math.min(this.transA,a.transA),k/=(a.max-a.min)/(this.max-this.min),k=1>k?this:a,a=(k.max-k.min)*k.transA,k.mapAxis.pixelPadding=k.len-a,k.minPixelPadding=k.mapAxis.pixelPadding/2,a=k.mapAxis.fixTo)){a=a[1]-k.toValue(a[0],!0);a*=k.transA;if(Math.abs(a)>k.minPixelPadding||k.min===k.dataMin&&k.max===k.dataMax)a=0;k.minPixelPadding-=a}}});v(a,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return a}();q.compose(a);return q});K(a,"Mixins/ColorSeries.js",
591
+ [],function(){return{colorPointMixin:{setVisible:function(a){var q=this,v=a?"show":"hide";q.visible=q.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(q[a])q[a][v]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",colorAxis:0,translateColors:function(){var a=this,q=this.options.nullColor,C=this.colorAxis,D=this.colorKey;(this.data.length?this.data:this.points).forEach(function(v){var B=v.getNestedProperty(D);(B=v.options.color||(v.isNull||null===v.value?
592
+ q:C&&"undefined"!==typeof B?C.toColor(B,v):v.color||a.color))&&v.color!==B&&(v.color=B,"point"===a.options.legendType&&v.legendItem&&a.chart.legend.colorizeItem(v,v.visible))})}}}});K(a,"Core/Axis/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Mixins/ColorSeries.js"],a["Core/Animation/Fx.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],
593
+ function(a,q,C,D,A,B,w,n,k,f,e,c){var h=this&&this.__extends||function(){var a=function(c,b){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(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),t=C.parse;C=D.colorPointMixin;D=D.colorSeriesMixin;var v=B.noop,G=c.addEvent,H=c.extend,u=c.isNumber,F=c.merge,
594
+ y=c.pick,r=c.splat;"";H(e.prototype,D);H(f.prototype,C);q.prototype.collectionsWithUpdate.push("colorAxis");q.prototype.collectionsWithInit.colorAxis=[q.prototype.addColorAxis];var p=function(a){function c(b,c){var d=a.call(this,b,c)||this;d.beforePadding=!1;d.chart=void 0;d.coll="colorAxis";d.dataClasses=void 0;d.legendItem=void 0;d.legendItems=void 0;d.name="";d.options=void 0;d.stops=void 0;d.visible=!0;d.init(b,c);return d}h(c,a);c.prototype.init=function(b,d){var e=b.options.legend||{},f=d.layout?
595
+ "vertical"!==d.layout:"vertical"!==e.layout;e=F(c.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:e.enabled&&(d?!1!==d.visible:!0)});this.coll="colorAxis";this.side=d.side||f?2:1;this.reversed=d.reversed||!f;this.opposite=!f;a.prototype.init.call(this,b,e);d.dataClasses&&this.initDataClasses(d);this.initStops();this.horiz=f;this.zoomEnabled=!1};c.prototype.initDataClasses=function(a){var b=this.chart,c,d=0,e=b.options.chart.colorCount,f=this.options,h=a.dataClasses.length;this.dataClasses=
596
+ c=[];this.legendItems=[];a.dataClasses.forEach(function(a,g){a=F(a);c.push(a);if(b.styledMode||!a.color)"category"===f.dataClassColor?(b.styledMode||(g=b.options.colors,e=g.length,a.color=g[d]),a.colorIndex=d,d++,d===e&&(d=0)):a.color=t(f.minColor).tweenTo(t(f.maxColor),2>h?.5:g/(h-1))})};c.prototype.hasData=function(){return!!(this.tickPositions||[]).length};c.prototype.setTickPositions=function(){if(!this.dataClasses)return a.prototype.setTickPositions.call(this)};c.prototype.initStops=function(){this.stops=
597
+ this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=t(a[1])})};c.prototype.setOptions=function(b){a.prototype.setOptions.call(this,b);this.options.crosshair=this.options.marker};c.prototype.setAxisSize=function(){var a=this.legendSymbol,d=this.chart,e=d.options.legend||{},f,h;a?(this.left=e=a.attr("x"),this.top=f=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=d.chartWidth-e-h,this.bottom=d.chartHeight-
598
+ f-a,this.len=this.horiz?h:a,this.pos=this.horiz?e:f):this.len=(this.horiz?e.symbolWidth:e.symbolHeight)||c.defaultLegendLength};c.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};c.prototype.toColor=function(a,c){var b=this.dataClasses,d=this.stops,e;if(b)for(e=b.length;e--;){var f=b[e];var g=f.from;d=f.to;if(("undefined"===typeof g||a>=g)&&("undefined"===typeof d||a<=d)){var h=f.color;c&&(c.dataClass=e,c.colorIndex=
599
+ f.colorIndex);break}}else{a=this.normalizedValue(a);for(e=d.length;e--&&!(a>d[e][0]););g=d[e]||d[e+1];d=d[e+1]||g;a=1-(d[0]-a)/(d[0]-g[0]||1);h=g.color.tweenTo(d.color,a)}return h};c.prototype.getOffset=function(){var b=this.legendGroup,c=this.chart.axisOffset[this.side];b&&(this.axisParent=b,a.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)};c.prototype.setLegendColor=function(){var a=this.reversed,c=a?1:0;
600
+ 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}};c.prototype.drawLegendSymbol=function(a,d){var b=a.padding,e=a.options,f=this.horiz,g=y(e.symbolWidth,f?c.defaultLegendLength:12),h=y(e.symbolHeight,f?12:c.defaultLegendLength),k=y(e.labelPadding,f?16:30);e=y(e.itemDistance,10);this.setLegendColor();d.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,g,h).attr({zIndex:1}).add(d.legendGroup);this.legendItemWidth=g+b+(f?
601
+ e:k);this.legendItemHeight=h+b+(f?k:0)};c.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};c.prototype.setVisible=function(){};c.prototype.getSeriesExtremes=function(){var a=this.series,c=a.length,d;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;){var f=a[c];var h=f.colorKey=y(f.options.colorKey,f.colorKey,f.pointValKey,f.zoneAxis,"y");var k=f.pointArrayMap;var l=f[h+"Min"]&&f[h+"Max"];if(f[h+"Data"])var p=f[h+"Data"];else if(k){p=[];k=k.indexOf(h);var r=f.yData;
602
+ if(0<=k&&r)for(d=0;d<r.length;d++)p.push(y(r[d][k],r[d]))}else p=f.yData;l?(f.minColorValue=f[h+"Min"],f.maxColorValue=f[h+"Max"]):(p=e.prototype.getExtremes.call(f,p),f.minColorValue=p.dataMin,f.maxColorValue=p.dataMax);"undefined"!==typeof f.minColorValue&&(this.dataMin=Math.min(this.dataMin,f.minColorValue),this.dataMax=Math.max(this.dataMax,f.maxColorValue));l||e.prototype.applyExtremes.call(f)}};c.prototype.drawCrosshair=function(b,c){var d=c&&c.plotX,e=c&&c.plotY,f=this.pos,g=this.len;if(c){var h=
603
+ this.toPixels(c.getNestedProperty(c.series.colorKey));h<f?h=f-2:h>f+g&&(h=f+g+2);c.plotX=h;c.plotY=this.len-h;a.prototype.drawCrosshair.call(this,b,c);c.plotX=d;c.plotY=e;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};c.prototype.getPlotLinePath=function(b){var c=this.left,d=b.translatedValue,
604
+ e=this.top;return u(d)?this.horiz?[["M",d-4,e-6],["L",d+4,e-6],["L",d,e],["Z"]]:[["M",c,d],["L",c-6,d+6],["L",c-6,d-6],["Z"]]:a.prototype.getPlotLinePath.call(this,b)};c.prototype.update=function(b,c){var d=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(b.dataClasses&&d.allItems||this.dataClasses)&&this.destroyItems();a.prototype.update.call(this,b,c);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))};c.prototype.destroyItems=function(){var a=this.chart;this.legendItem?
605
+ a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};c.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();a.prototype.destroy.apply(this,[].slice.call(arguments))};c.prototype.remove=function(b){this.destroyItems();a.prototype.remove.call(this,b)};c.prototype.getDataClassLegendSymbols=function(){var a=this,c=a.chart,d=a.legendItems,e=c.options.legend,f=e.valueDecimals,h=e.valueSuffix||"",k;d.length||
606
+ a.dataClasses.forEach(function(b,e){var g=!0,m=b.from,l=b.to,p=c.numberFormatter;k="";"undefined"===typeof m?k="< ":"undefined"===typeof l&&(k="> ");"undefined"!==typeof m&&(k+=p(m,f)+h);"undefined"!==typeof m&&"undefined"!==typeof l&&(k+=" - ");"undefined"!==typeof l&&(k+=p(l,f)+h);d.push(H({chart:c,name:k,options:{},drawLegendSymbol:n.drawRectangle,visible:!0,setState:v,isDataClass:!0,setVisible:function(){g=a.visible=!g;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===e&&
607
+ a.setVisible(g)})});c.legend.colorizeItem(this,g)}},b))});return d};c.defaultLegendLength=200;c.defaultColorAxisOptions={lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:k.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:k.highlightColor10,maxColor:k.highlightColor100,tickLength:5,showInLegend:!0};c.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem",
608
+ "legendSymbol"];return c}(a);Array.prototype.push.apply(a.keepProps,p.keepProps);B.ColorAxis=p;["fill","stroke"].forEach(function(a){A.prototype[a+"Setter"]=function(){this.elem.attr(a,t(this.start).tweenTo(t(this.end),this.pos),null,!0)}});G(q,"afterGetAxes",function(){var a=this,c=a.options;this.colorAxis=[];c.colorAxis&&(c.colorAxis=r(c.colorAxis),c.colorAxis.forEach(function(b,c){b.index=c;new p(a,b)}))});G(e,"bindAxes",function(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):
609
+ this.axisTypes=["colorAxis"]});G(w,"afterGetAllItems",function(a){var c=this,b=[],d,e,f=function(b){b=a.allItems.indexOf(b);-1!==b&&(c.destroyItem(a.allItems[b]),a.allItems.splice(b,1))};(this.chart.colorAxis||[]).forEach(function(a){(d=a.options)&&d.showInLegend&&(d.dataClasses&&d.visible?b=b.concat(a.getDataClassLegendSymbols()):d.visible&&b.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||d.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){f(a)}):f(a)}))});
610
+ for(e=b.length;e--;)a.allItems.unshift(b[e])});G(w,"afterColorizeItem",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})});G(w,"afterUpdate",function(){var a=this.chart.colorAxis;a&&a.forEach(function(a,b,c){a.update({},c)})});G(e,"afterTranslate",function(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()});return p});K(a,"Mixins/ColorMapSeries.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],
611
+ function(a,q,C){var v=C.defined;C=C.addEvent;var A=a.noop;a=a.seriesTypes;C(q,"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","dataLabelsGroup"],getSymbol:A,
612
+ parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(a){var q={};!v(a.color)||a.state&&"normal"!==a.state||(q[this.colorProp||"fill"]=a.color);return q}}}});K(a,"Maps/MapNavigationOptionsDefault.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,q){q=q.extend;var v={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,
613
+ "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};q(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation=v});K(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q,C){function v(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=
614
+ !0)}function A(a){this.init(a)}var B=q.doc,w=C.addEvent,n=C.extend,k=C.merge,f=C.objectEach,e=C.pick;A.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};A.prototype.update=function(a){var c=this.chart,t=c.options.mapNavigation,q,A,B,u,C=function(a){this.handler.call(c,a);v(a)},y=c.mapNavButtons;a&&(t=c.options.mapNavigation=k(c.options.mapNavigation,a));for(;y.length;)y.pop().destroy();e(t.enableButtons,t.enabled)&&!c.renderer.forExport&&f(t.buttons,function(a,e){a=k(t.buttonOptions,a);
615
+ !c.styledMode&&a.theme&&(q=a.theme,q.style=k(a.theme.style,a.style),B=(A=q.states)&&A.hover,u=A&&A.select,delete q.states);var d=c.renderer.button(a.text||"",0,0,C,q,B,u,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();d.handler=a.onclick;w(d.element,"dblclick",v);y.push(d);n(a,{width:d.width,height:2*d.height});if(c.hasLoaded)d.align(a,
616
+ !1,a.alignTo);else var f=w(c,"load",function(){d.element&&d.align(a,!1,a.alignTo);f()})});this.updateEvents(t)};A.prototype.updateEvents=function(a){var c=this.chart;e(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());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||w(c.container,
617
+ void 0!==B.onwheel?"wheel":void 0!==B.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){c.pointer.inClass(a.target,"highcharts-no-mousewheel")||(c.pointer.onContainerMouseWheel(a),v(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};n(a.prototype,{fitToBox:function(a,e){[["x","width"],["y","height"]].forEach(function(c){var f=c[0];c=c[1];a[f]+a[c]>e[f]+e[c]&&(a[c]>e[c]?(a[c]=e[c],a[f]=e[f]):a[f]=e[f]+e[c]-a[c]);a[c]>e[c]&&(a[c]=e[c]);a[f]<e[f]&&(a[f]=e[f])});
618
+ return a},mapZoom:function(a,f,k,n,q,w){var c=this.xAxis[0],h=c.max-c.min,t=e(f,c.min+h/2),r=h*a;h=this.yAxis[0];var p=h.max-h.min,d=e(k,h.min+p/2);p*=a;t=this.fitToBox({x:t-r*(n?(n-c.pos)/c.len:.5),y:d-p*(q?(q-h.pos)/h.len:.5),width:r,height:p},{x:c.dataMin,y:h.dataMin,width:c.dataMax-c.dataMin,height:h.dataMax-h.dataMin});r=t.x<=c.dataMin&&t.width>=c.dataMax-c.dataMin&&t.y<=h.dataMin&&t.height>=h.dataMax-h.dataMin;n&&c.mapAxis&&(c.mapAxis.fixTo=[n-c.pos,f]);q&&h.mapAxis&&(h.mapAxis.fixTo=[q-h.pos,
619
+ k]);"undefined"===typeof a||r?(c.setExtremes(void 0,void 0,!1),h.setExtremes(void 0,void 0,!1)):(c.setExtremes(t.x,t.x+t.width,!1),h.setExtremes(t.y,t.y+t.height,!1));this.redraw(w)}});w(a,"beforeRender",function(){this.mapNavigation=new A(this);this.mapNavigation.update()});q.MapNavigation=A});K(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,q){var v=q.extend,D=q.pick;q=q.wrap;var A=0,B;v(a.prototype,{onContainerDblClick:function(a){var n=this.chart;a=this.normalize(a);
620
+ n.options.mapNavigation.enableDoubleClickZoomTo?n.pointer.inClass(a.target,"highcharts-tracker")&&n.hoverPoint&&n.hoverPoint.zoomTo():n.isInsidePlot(a.chartX-n.plotLeft,a.chartY-n.plotTop)&&n.mapZoom(.5,n.xAxis[0].toValue(a.chartX),n.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var n=this.chart;a=this.normalize(a);var k=a.deltaY||a.detail||-(a.wheelDelta/120);1<=Math.abs(k)&&(A+=Math.abs(k),B&&clearTimeout(B),B=setTimeout(function(){A=0},50));10>A&&n.isInsidePlot(a.chartX-
621
+ n.plotLeft,a.chartY-n.plotTop)&&n.mapZoom(Math.pow(n.options.mapNavigation.mouseWheelSensitivity,k),n.xAxis[0].toValue(a.chartX),n.yAxis[0].toValue(a.chartY),a.chartX,a.chartY,1>Math.abs(k)?!1:void 0)}});q(a.prototype,"zoomOption",function(a){var n=this.chart.options.mapNavigation;D(n.enableTouchZoom,n.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});q(a.prototype,"pinchTranslate",function(a,n,k,f,e,c,h){a.call(this,n,k,f,e,c,h);"map"===this.chart.options.chart.type&&
622
+ this.hasZoom&&(a=f.scaleX>f.scaleY,this.pinchTranslateDirection(!a,n,k,f,e,c,h,a?f.scaleX:f.scaleY))})});K(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function q(a,q,v,B,w,n,k,f){return[["M",a+w,q],["L",a+v-n,q],["C",a+v-n/2,q,a+v,q+n/2,a+v,q+n],["L",a+v,q+B-k],["C",a+v,q+B-k/2,a+v-k/2,q+B,a+v-k,q+B],["L",a+f,q+B],["C",a+f/2,q+B,a,q+B-f/2,a,q+B-f],["L",a,q+w],["C",a,q+w/2,a+w/2,q,a+w,q],["Z"]]}a=a.prototype.symbols;a.bottombutton=function(a,v,A,B,w){w=w&&w.r||0;return q(a-
623
+ 1,v-1,A,B,0,0,w,w)};a.topbutton=function(a,v,A,B,w){w=w&&w.r||0;return q(a-1,v-1,A,B,w,w,0,0)};return a});K(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,q,C,D){var v=this&&this.__extends||function(){var a=function(f,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(f,e)};return function(f,
624
+ e){function c(){this.constructor=f}a(f,e);f.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),B=q.getOptions,w=D.merge,n=D.pick;a=function(a){function f(){return null!==a&&a.apply(this,arguments)||this}v(f,a);f.prototype.init=function(e,c){var f={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},k=B().credits;e=w({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:n(k.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),
625
+ mapTextFull:n(k.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:f,yAxis:w(f,{reversed:!0})},e,{chart:{inverted:!1,alignTicks:!1}});a.prototype.init.call(this,e,c)};return f}(a);(function(a){a.maps={};a.mapChart=function(f,e,c){return new a(f,e,c)};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 C.prototype.pathToSegments(a)}})(a||
626
+ (a={}));return a});K(a,"Series/Map/MapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C){var v=this&&this.__extends||function(){var a=function(q,n){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var e in f)f.hasOwnProperty(e)&&(a[e]=f[e])};return a(q,n)};return function(q,n){function k(){this.constructor=q}a(q,n);q.prototype=null===n?Object.create(n):(k.prototype=n.prototype,
627
+ new k)}}();a=a.colorMapPointMixin;var A=C.extend;q=function(a){function q(){var n=null!==a&&a.apply(this,arguments)||this;n.options=void 0;n.path=void 0;n.series=void 0;return n}v(q,a);q.prototype.applyOptions=function(n,k){var f=this.series;n=a.prototype.applyOptions.call(this,n,k);k=f.joinBy;f.mapData&&f.mapMap&&(k=a.prototype.getNestedProperty.call(n,k[1]),(k="undefined"!==typeof k&&f.mapMap[k])?(f.xyFromShape&&(n.x=k._midX,n.y=k._midY),A(n,k)):n.value=n.value||null);return n};q.prototype.onMouseOver=
628
+ function(n){C.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,n);else this.series.onMouseOut(n)};q.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 q}(q.seriesTypes.scatter.prototype.pointClass);A(q.prototype,{dataLabelOnNull:a.dataLabelOnNull,isValid:a.isValid,moveToTopOnHover:a.moveToTopOnHover});return q});
629
+ K(a,"Series/Map/MapSeries.js",[a["Mixins/ColorMapSeries.js"],a["Core/Globals.js"],a["Mixins/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,q,C,D,A,B,w,n,k,f){var e=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
630
+ 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)}}();a=a.colorMapSeriesMixin;var c=q.noop,h=D.maps,t=D.splitPath;D=n.seriesTypes;var v=D.column,G=D.scatter;D=f.extend;var H=f.fireEvent,u=f.getNestedProperty,F=f.isArray,y=f.isNumber,r=f.merge,p=f.objectEach,d=f.pick,l=f.splat;f=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.baseTrans=
631
+ 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}e(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,
632
+ 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){v.prototype.animateDrillupFrom.call(this,a)};b.prototype.animateDrillupTo=function(a){v.prototype.animateDrillupTo.call(this,
633
+ a)};b.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans};b.prototype.drawMapDataLabels=function(){w.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,e=a.group,f=a.chart,g=f.renderer,h=this.baseTrans;a.transformGroup||(a.transformGroup=g.g().attr({scaleX:1,scaleY:1}).add(e),a.transformGroup.survive=!0);
634
+ if(a.doFullTranslate())f.hasRendered&&!f.styledMode&&a.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,v.prototype.drawPoints.apply(a),a.group=e,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);f.styledMode&&b.graphic.css(a.pointAttribs(b,
635
+ 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 k=b.transA/h.transAX;var l=c.transA/h.transAY;var p=b.toPixels(h.originX,!0);var r=c.toPixels(h.originY,!0);.99<k&&1.01>k&&.99<l&&1.01>l&&(l=k=1,p=Math.round(p),r=Math.round(r));var n=this.transformGroup;if(f.renderer.globalAnimation){var q=
636
+ n.attr("translateX");var t=n.attr("translateY");var y=n.attr("scaleX");var u=n.attr("scaleY");n.attr({animator:0}).animate({animator:1},{step:function(a,b){n.attr({translateX:q+(p-q)*b.pos,translateY:t+(r-t)*b.pos,scaleX:y+(k-y)*b.pos,scaleY:u+(l-u)*b.pos})}})}else n.attr({translateX:p,translateY:r,scaleX:k,scaleY:l})}f.styledMode||e.element.setAttribute("stroke-width",d(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(k||1));this.drawMapDataLabels()};b.prototype.getBox=
637
+ function(a){var b=Number.MAX_VALUE,c=-b,e=b,f=-b,g=b,h=b,l=this.xAxis,m=this.yAxis,p;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=t(a.path):"M"===a.path[0]&&(a.path=k.prototype.pathToSegments(a.path));var l=a.path||[],m=-b,r=b,n=-b,q=b,y=a.properties;a._foundBox||(l.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(r=Math.min(r,b),m=Math.max(m,b),q=Math.min(q,a),n=Math.max(n,a))}),a._midX=r+(m-r)*d(a.middleX,y&&y["hc-middle-x"],
638
+ .5),a._midY=q+(n-q)*d(a.middleY,y&&y["hc-middle-y"],.5),a._maxX=m,a._minX=r,a._maxY=n,a._minY=q,a.labelrank=d(a.labelrank,(m-r)*(n-q)),a._foundBox=!0);c=Math.max(c,a._maxX);e=Math.min(e,a._minX);f=Math.max(f,a._maxY);g=Math.min(g,a._minY);h=Math.min(a._maxX-a._minX,a._maxY-a._minY,h);p=!0}});p&&(this.minY=Math.min(g,d(this.minY,b)),this.maxY=Math.max(f,d(this.maxY,-b)),this.minX=Math.min(e,d(this.minX,b)),this.maxX=Math.max(c,d(this.maxX,-b)),l&&"undefined"===typeof l.options.minRange&&(l.minRange=
639
+ Math.min(5*h,(this.maxX-this.minX)/5,l.minRange||b)),m&&"undefined"===typeof m.options.minRange&&(m.minRange=Math.min(5*h,(this.maxY-this.minY)/5,m.minRange||b)))};b.prototype.getExtremes=function(){var a=w.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);y(b)&&(this.valueMin=b);y(a)&&(this.valueMax=a);return{dataMin:this.minY,dataMax:this.maxY}};b.prototype.hasData=function(){return!!this.processedXData.length};
640
+ b.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode?this.colorAttribs(a):v.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=d(a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};b.prototype.render=function(){var a=this,b=w.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,f=this.chart.options.chart,g=f&&f.map,
641
+ k=e.mapData,l=this.joinBy,m=e.keys||this.pointArrayMap,n=[],t={},x=this.chart.mapTransforms;!k&&g&&(k="string"===typeof g?h[g]:g);a&&a.forEach(function(b,c){var d=0;if(y(b))a[c]={value:b};else if(F(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])}l&&"_i"===l[0]&&(a[c]._i=c)});this.getBox(a);(this.chart.mapTransforms=
642
+ x=f.mapTransforms||k&&k["hc-transform"]||x)&&p(x,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(k){"FeatureCollection"===k.type&&(this.mapTitle=k.title,k=q.geojson(k,this.type,this));this.mapData=k;this.mapMap={};for(x=0;x<k.length;x++)f=k[x],g=f.properties,f._i=x,l[0]&&g&&g[l[0]]&&(f[l[0]]=g[l[0]]),t[f[l[0]]]=f;this.mapMap=t;if(a&&l[1]){var v=l[1];a.forEach(function(a){a=u(v,a);t[a]&&n.push(t[a])})}if(e.allAreas){this.getBox(k);a=a||[];if(l[1]){var z=
643
+ l[1];a.forEach(function(a){n.push(u(z,a))})}n="|"+n.map(function(a){return a&&a[l[0]]}).join("|")+"|";k.forEach(function(b){l[0]&&-1!==n.indexOf("|"+b[l[0]]+"|")||(a.push(r(b,{value:null})),d=!1)})}else this.getBox(n)}w.prototype.setData.call(this,a,b,c,d)};b.prototype.setOptions=function(a){a=w.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=l(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();
644
+ a.data.forEach(function(e){y(e._midX)&&y(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)})});H(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,h=c.transA,k=c.minPixelPadding,l=[];a&&a.forEach(function(a){"M"===a[0]?l.push(["M",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k]):"L"===a[0]?l.push(["L",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k]):
645
+ "C"===a[0]?l.push(["C",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k,(a[3]-(d||0))*e+f,(a[4]-(g||0))*h+k,(a[5]-(d||0))*e+f,(a[6]-(g||0))*h+k]):"Q"===a[0]?l.push(["Q",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k,(a[3]-(d||0))*e+f,(a[4]-(g||0))*h+k]):"Z"===a[0]&&l.push(["Z"])});return l};b.defaultOptions=r(G.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){return this.point.value},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:B.neutralColor3,stickyTracking:!1,tooltip:{followPointer:!0,
646
+ pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:B.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:B.neutralColor20},inactive:{opacity:1}}});return b}(G);D(f.prototype,{type:"map",axisTypes:a.axisTypes,colorAttribs:a.colorAttribs,colorKey:a.colorKey,directTouch:!0,drawDataLabels:c,drawGraph:c,drawLegendSymbol:C.drawRectangle,forceDL:!0,getExtremesFromAll:!0,getSymbol:a.getSymbol,parallelArrays:a.parallelArrays,
647
+ pointArrayMap:a.pointArrayMap,pointClass:A,preserveAspectRatio:!0,searchPoint:c,trackerGroups:a.trackerGroups,useMapGeometry:!0});n.registerSeriesType("map",f);"";return f});K(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C){var v=this&&this.__extends||function(){var a=function(k,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&
648
+ (a[e]=c[e])};return a(k,f)};return function(k,f){function e(){this.constructor=k}a(k,f);k.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}(),A=q.series,B=C.extend,w=C.merge;C=function(n){function k(){var a=null!==n&&n.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(k,n);k.prototype.pointAttribs=function(f,e){f=a.prototype.pointAttribs.call(this,f,e);f.fill=this.options.fillColor;return f};k.defaultOptions=w(a.defaultOptions,{lineWidth:1,fillColor:"none"});
649
+ return k}(a);B(C.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:A.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});q.registerSeriesType("mapline",C);"";return C});K(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q){var v=this&&this.__extends||function(){var a=function(q,v){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,k){a.__proto__=k}||function(a,k){for(var f in k)k.hasOwnProperty(f)&&
650
+ (a[f]=k[f])};return a(q,v)};return function(q,v){function n(){this.constructor=q}a(q,v);q.prototype=null===v?Object.create(v):(n.prototype=v.prototype,new n)}}(),D=q.merge;return function(a){function q(){var q=null!==a&&a.apply(this,arguments)||this;q.options=void 0;q.series=void 0;return q}v(q,a);q.prototype.applyOptions=function(q,n){q="undefined"!==typeof q.lat&&"undefined"!==typeof q.lon?D(q,this.series.chart.fromLatLonToPoint(q)):q;return a.prototype.applyOptions.call(this,q,n)};return q}(a.seriesTypes.scatter.prototype.pointClass)});
651
+ K(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,q,C,D){var v=this&&this.__extends||function(){var a=function(f,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(f,e)};return function(f,e){function c(){this.constructor=f}a(f,e);f.prototype=null===e?Object.create(e):
652
+ (c.prototype=e.prototype,new c)}}(),B=C.seriesTypes.scatter,w=D.extend,n=D.merge;D=function(a){function f(){var e=null!==a&&a.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}v(f,a);f.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};f.defaultOptions=n(B.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:q.neutralColor100}}});
653
+ return f}(B);w(D.prototype,{type:"mappoint",forceDL:!0,pointClass:a});C.registerSeriesType("mappoint",D);"";return D});K(a,"Series/Bubble/BubblePoint.js",[a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C){var v=this&&this.__extends||function(){var a=function(q,v){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,k){a.__proto__=k}||function(a,k){for(var f in k)k.hasOwnProperty(f)&&(a[f]=k[f])};return a(q,v)};return function(q,v){function n(){this.constructor=
654
+ q}a(q,v);q.prototype=null===v?Object.create(v):(n.prototype=v.prototype,new n)}}();C=C.extend;q=function(q){function A(){var a=null!==q&&q.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}v(A,q);A.prototype.haloPath=function(q){return a.prototype.haloPath.call(this,0===q?0:(this.marker?this.marker.radius||0:0)+q)};return A}(q.seriesTypes.scatter.prototype.pointClass);C(q.prototype,{ttBelow:!1});return q});K(a,"Series/Bubble/BubbleLegend.js",[a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],
655
+ a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B,w,n,k){var f=q.parse,e=D.noop;B=B.setOptions;q=k.addEvent;var c=k.arrayMax,h=k.arrayMin,t=k.isNumber,v=k.merge,G=k.objectEach,H=k.pick,u=k.stableSort;k=k.wrap;"";B({legend:{bubbleLegend:{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,
656
+ connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:w.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}}});w=function(){function a(a,c){this.options=this.symbols=this.visible=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=
657
+ this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=e;this.init(a,c)}a.prototype.init=function(a,c){this.options=a;this.visible=!0;this.chart=c.chart;this.legend=c};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(a){var c=this.chart,e=this.options,d=H(a.options.itemDistance,20),f=e.ranges;var b=e.connectorDistance;this.fontMetrics=c.renderer.fontMetrics(e.labels.style.fontSize);f&&f.length&&
658
+ t(f[0].value)?(u(f,function(a,b){return b.value-a.value}),this.ranges=f,this.setOptions(),this.render(),c=this.getMaxLabelSize(),f=this.ranges[0].radius,a=2*f,b=b-f+c.width,b=0<b?b:0,this.maxLabel=c,this.movementX="left"===e.labels.align?b:0,this.legendItemWidth=a+b+d,this.legendItemHeight=a+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,c=this.options,e=this.chart.series[c.seriesIndex],d=this.legend.baseline,h={zIndex:c.zIndex,"stroke-width":c.borderWidth},
659
+ b={zIndex:c.zIndex,"stroke-width":c.connectorWidth},g={align:this.legend.options.rtl||"left"===c.labels.align?"right":"left",zIndex:c.zIndex},k=e.options.marker.fillOpacity,n=this.chart.styledMode;a.forEach(function(l,m){n||(h.stroke=H(l.borderColor,c.borderColor,e.color),h.fill=H(l.color,c.color,1!==k?f(e.color).setOpacity(k).get("rgba"):e.color),b.stroke=H(l.connectorColor,c.connectorColor,e.color));a[m].radius=this.getRangeRadius(l.value);a[m]=v(a[m],{center:a[0].radius-a[m].radius+d});n||v(!0,
660
+ a[m],{bubbleAttribs:v(h),connectorAttribs:v(b),labelAttribs:g})},this)};a.prototype.getRangeRadius=function(a){var c=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,c.ranges[c.ranges.length-1].value,c.ranges[0].value,c.minSize,c.maxSize,a)};a.prototype.render=function(){var a=this.chart.renderer,c=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");
661
+ this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=c&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var c=this.options,e=c.labels,d=this.chart,f=d.series[c.seriesIndex],b=d.renderer,g=this.symbols;d=g.labels;var h=a.center,k=Math.abs(a.radius),n=c.connectorDistance||0,q=e.align;n=this.legend.options.rtl||"left"===q?-n:n;var t=
662
+ c.connectorWidth,u=this.ranges[0].radius||0,v=h-k-c.borderWidth/2+t/2,y=this.fontMetrics;y=y.f/2-(y.h-y.f)/2;var w=b.styledMode;"center"===q&&(n=0,c.connectorDistance=0,a.labelAttribs.align="center");q=v+c.labels.y;var z=u+n+c.labels.x;g.bubbleItems.push(b.circle(u,h+((v%1?1:.5)-(t%2?0:.5)),k).attr(w?{}:a.bubbleAttribs).addClass((w?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(c.className||"")).add(this.legendSymbol));g.connectors.push(b.path(b.crispLine([["M",u,v],
663
+ ["L",u+n,v]],c.connectorWidth)).attr(w?{}:a.connectorAttribs).addClass((w?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(c.connectorClassName||"")).add(this.legendSymbol));a=b.text(this.formatLabel(a),z,q+y).attr(w?{}:a.labelAttribs).css(w?{}:e.style).addClass("highcharts-bubble-legend-labels "+(c.labels.className||"")).add(this.legendSymbol);d.push(a);a.placed=!0;a.alignAttr={x:z,y:q+y}};a.prototype.getMaxLabelSize=function(){var a,c;this.symbols.labels.forEach(function(e){c=
664
+ e.getBBox(!0);a=a?c.width>a.width?c:a:c});return a||{}};a.prototype.formatLabel=function(a){var c=this.options,e=c.labels.formatter;c=c.labels.format;var d=this.chart.numberFormatter;return c?C.format(c,a):e?e.call(a):d(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,c=this.symbols;!this.options.labels.allowOverlap&&c&&(a.hideOverlappingLabels(c.labels),c.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&c.connectors[d].show():c.connectors[d].hide()}))};
665
+ a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,e=a.options.ranges,f,d=Number.MAX_VALUE,k=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(f=a.zData.filter(t),f.length&&(d=H(a.options.zMin,Math.min(d,Math.max(h(f),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),k=H(a.options.zMax,Math.max(k,c(f)))))});var b=d===k?[{value:k}]:[{value:d},{value:(d+k)/2},{value:k,autoRanges:!0}];e.length&&e[0].radius&&b.reverse();b.forEach(function(a,
666
+ c){e&&e[c]&&(b[c]=v(e[c],a))});return b};a.prototype.predictBubbleSizes=function(){var a=this.chart,c=this.fontMetrics,e=a.legend.options,d="horizontal"===e.layout,f=d?a.legend.lastLineHeight:0,b=a.plotSizeX,g=a.plotSizeY,h=a.series[this.options.seriesIndex];a=Math.ceil(h.minPxSize);var k=Math.ceil(h.maxPxSize);h=h.options.maxSize;var n=Math.min(g,b);if(e.floating||!/%$/.test(h))c=k;else if(h=parseFloat(h),c=(n+f-c.h/2)*h/100/(h/100+1),d&&g-c>=b||!d&&b-c>=g)c=k;return[a,Math.ceil(c)]};a.prototype.updateRanges=
667
+ function(a,c){var e=this.legend.options.bubbleLegend;e.minSize=a;e.maxSize=c;e.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,c=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(c.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,c.maxPxSize),a.render())};return a}();q(A,"afterGetAllItems",function(a){var c=this.bubbleLegend,e=this.options,f=e.bubbleLegend,d=this.chart.getVisibleBubbleSeriesIndex();c&&c.ranges&&c.ranges.length&&
668
+ (f.ranges.length&&(f.autoRanges=!!f.ranges[0].autoRanges),this.destroyItem(c));0<=d&&e.enabled&&f.enabled&&(f.seriesIndex=d,this.bubbleLegend=new D.BubbleLegend(f,this),this.bubbleLegend.addToLegend(a.allItems))});a.prototype.getVisibleBubbleSeriesIndex=function(){for(var a=this.series,c=0;c<a.length;){if(a[c]&&a[c].isBubble&&a[c].visible&&a[c].zData.length)return c;c++}return-1};A.prototype.getLinesHeights=function(){var a=this.allItems,c=[],e=a.length,f,d=0;for(f=0;f<e;f++)if(a[f].legendItemHeight&&
669
+ (a[f].itemHeight=a[f].legendItemHeight),a[f]===a[e-1]||a[f+1]&&a[f]._legendItemPos[1]!==a[f+1]._legendItemPos[1]){c.push({height:0});var h=c[c.length-1];for(d;d<=f;d++)a[d].itemHeight>h.height&&(h.height=a[d].itemHeight);h.step=f}return c};A.prototype.retranslateItems=function(a){var c,e,f,d=this.options.rtl,h=0;this.allItems.forEach(function(b,g){c=b.legendGroup.translateX;e=b._legendItemPos[1];if((f=b.movementX)||d&&b.ranges)f=d?c-b.options.maxSize/2:c+f,b.legendGroup.attr({translateX:f});g>a[h].step&&
670
+ h++;b.legendGroup.attr({translateY:Math.round(e+a[h].height/2)});b._legendItemPos[1]=e+a[h].height/2})};q(n,"legendItemClick",function(){var a=this.chart,c=this.visible,e=this.chart.legend;e&&e.bubbleLegend&&(this.visible=!c,this.ignoreSeries=c,a=0<=a.getVisibleBubbleSeriesIndex(),e.bubbleLegend.visible!==a&&(e.update({bubbleLegend:{enabled:a}}),e.bubbleLegend.visible=a),this.visible=c)});k(a.prototype,"drawChartBox",function(a,c,e){var f=this.legend,d=0<=this.getVisibleBubbleSeriesIndex();if(f&&
671
+ f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&d){var h=f.bubbleLegend.options;d=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(d[0],d[1]);h.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();h.placed||(a.setScale(),a.updateNames(),G(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});h.placed=!0;this.getMargins();a.call(this,c,e);f.bubbleLegend.correctSizes();
672
+ f.retranslateItems(f.getLinesHeights())}else a.call(this,c,e),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),f.retranslateItems(f.getLinesHeights()))});D.BubbleLegend=w;return D.BubbleLegend});K(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B,w){var n=this&&this.__extends||function(){var a=function(c,
673
+ e){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,e)};return function(c,e){function d(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(d.prototype=e.prototype,new d)}}(),k=C.parse;C=D.noop;var f=B.seriesTypes;D=f.column;var e=f.scatter,c=w.arrayMax,h=w.arrayMin,t=w.clamp,v=w.extend,G=w.isNumber,H=w.merge,u=w.pick,F=w.pInt;w=function(a){function c(){var c=null!==a&&a.apply(this,
674
+ arguments)||this;c.data=void 0;c.maxPxSize=void 0;c.minPxSize=void 0;c.options=void 0;c.points=void 0;c.radii=void 0;c.yData=void 0;c.zData=void 0;return c}n(c,a);c.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var c=a.graphic;c&&c.width&&(this.hasRendered||c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(this.markerAttribs(a),this.options.animation))},this)};c.prototype.getRadii=function(a,c,e){var b=this.zData,d=this.yData,
675
+ f=e.minPxSize,h=e.maxPxSize,k=[];var l=0;for(e=b.length;l<e;l++){var p=b[l];k.push(this.getRadius(a,c,f,h,p,d[l]))}this.radii=k};c.prototype.getRadius=function(a,c,e,b,f,h){var d=this.options,g="width"!==d.sizeBy,k=d.zThreshold,l=c-a,m=.5;if(null===h||null===f)return null;if(G(f)){d.sizeByAbsoluteValue&&(f=Math.abs(f-k),l=Math.max(c-k,Math.abs(a-k)),a=0);if(f<a)return e/2-1;0<l&&(m=(f-a)/l)}g&&0<=m&&(m=Math.sqrt(m));return Math.ceil(e+m*(b-e))/2};c.prototype.hasData=function(){return!!this.processedXData.length};
676
+ c.prototype.pointAttribs=function(a,c){var d=this.options.marker.fillOpacity;a=A.prototype.pointAttribs.call(this,a,c);1!==d&&(a.fill=k(a.fill).setOpacity(d).get("rgba"));return a};c.prototype.translate=function(){var c,d=this.data,e=this.radii;a.prototype.translate.call(this);for(c=d.length;c--;){var b=d[c];var f=e?e[c]:0;G(f)&&f>=this.minPxSize/2?(b.marker=v(b.marker,{radius:f,width:2*f,height:2*f}),b.dlBox={x:b.plotX-f,y:b.plotY-f,width:2*f,height:2*f}):b.shapeArgs=b.plotY=b.dlBox=void 0}};c.defaultOptions=
677
+ H(e.defaultOptions,{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return c}(e);v(w.prototype,{alignDataLabel:D.prototype.alignDataLabel,applyZones:C,bubblePadding:!0,
678
+ buildKDTree:C,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:q,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});a.prototype.beforePadding=function(){var a=this,e=this.len,f=this.chart,d=0,k=e,b=this.isXAxis,g=b?"xData":"yData",m=this.min,n={},q=Math.min(f.plotWidth,f.plotHeight),v=Number.MAX_VALUE,w=-Number.MAX_VALUE,z=this.max-m,A=e/z,B=[];this.series.forEach(function(d){var e=d.options;!d.bubblePadding||!d.visible&&f.options.chart.ignoreHiddenSeries||
679
+ (a.allowZoomOutside=!0,B.push(d),b&&(["minSize","maxSize"].forEach(function(a){var b=e[a],c=/%$/.test(b);b=F(b);n[a]=c?q*b/100:b}),d.minPxSize=n.minSize,d.maxPxSize=Math.max(n.maxSize,n.minSize),d=d.zData.filter(G),d.length&&(v=u(e.zMin,t(h(d),!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE,v)),w=u(e.zMax,Math.max(w,c(d))))))});B.forEach(function(c){var e=c[g],f=e.length;b&&c.getRadii(v,w,c);if(0<z)for(;f--;)if(G(e[f])&&a.dataMin<=e[f]&&e[f]<=a.max){var h=c.radii?c.radii[f]:0;d=Math.min((e[f]-
680
+ m)*A-h,d);k=Math.max((e[f]-m)*A+h,k)}});B.length&&0<z&&!this.logarithmic&&(k-=e,A*=(e+Math.max(0,d)-Math.min(k,e))/e,[["min","userMin",d],["max","userMax",k]].forEach(function(b){"undefined"===typeof u(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/A)}))};B.registerSeriesType("bubble",w);"";"";return w});K(a,"Series/MapBubble/MapBubblePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q){var v=this&&this.__extends||function(){var a=function(n,k){a=Object.setPrototypeOf||{__proto__:[]}instanceof
681
+ Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(n,k)};return function(n,k){function f(){this.constructor=n}a(n,k);n.prototype=null===k?Object.create(k):(f.prototype=k.prototype,new f)}}(),D=a.seriesTypes,A=D.map;a=q.extend;var B=q.merge;q=function(a){function n(){return null!==a&&a.apply(this,arguments)||this}v(n,a);n.prototype.applyOptions=function(k,f){return k&&"undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?a.prototype.applyOptions.call(this,
682
+ B(k,this.series.chart.fromLatLonToPoint(k)),f):A.prototype.pointClass.prototype.applyOptions.call(this,k,f)};n.prototype.isValid=function(){return"number"===typeof this.z};return n}(D.bubble.prototype.pointClass);a(q.prototype,{ttBelow:!1});return q});K(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,q,C,D,A){var v=this&&this.__extends||
683
+ function(){var a=function(f,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return a(f,e)};return function(f,e){function c(){this.constructor=f}a(f,e);f.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),w=A.extend,n=A.merge;A=function(k){function f(){var a=null!==k&&k.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(f,k);f.defaultOptions=
684
+ n(a.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return f}(a);w(A.prototype,{type:"mapbubble",getBox:C.prototype.getBox,pointArrayMap:["z"],pointClass:q,setData:C.prototype.setData,setOptions:C.prototype.setOptions,xyFromShape:!0});D.registerSeriesType("mapbubble",A);"";return A});K(a,"Series/Heatmap/HeatmapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,q,C){var v=this&&this.__extends||function(){var a=
685
+ function(k,f){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(k,f)};return function(k,f){function e(){this.constructor=k}a(k,f);k.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}();a=a.colorMapPointMixin;var A=C.clamp,B=C.extend,w=C.pick;q=function(a){function k(){var f=null!==a&&a.apply(this,arguments)||this;f.options=void 0;f.series=void 0;f.value=void 0;f.x=void 0;
686
+ f.y=void 0;return f}v(k,a);k.prototype.applyOptions=function(f,e){f=a.prototype.applyOptions.call(this,f,e);f.formatPrefix=f.isNull||null===f.value?"null":"point";return f};k.prototype.getCellAttributes=function(){var a=this.series,e=a.options,c=(e.colsize||1)/2,h=(e.rowsize||1)/2,k=a.xAxis,n=a.yAxis,q=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var v=w(this.pointPadding,e.pointPadding,0),u={x1:A(Math.round(k.len-(k.translate(this.x-c,!1,!0,!1,!0,-a)||0)),-k.len,2*k.len),x2:A(Math.round(k.len-
687
+ (k.translate(this.x+c,!1,!0,!1,!0,-a)||0)),-k.len,2*k.len),y1:A(Math.round(n.translate(this.y-h,!1,!0,!1,!0)||0),-n.len,2*n.len),y2:A(Math.round(n.translate(this.y+h,!1,!0,!1,!0)||0),-n.len,2*n.len)};[["width","x"],["height","y"]].forEach(function(a){var c=a[0];a=a[1];var e=a+"1",f=a+"2",d=Math.abs(u[e]-u[f]),h=q&&q.lineWidth||0,b=Math.abs(u[e]+u[f])/2;q[c]&&q[c]<d&&(u[e]=b-q[c]/2-h/2,u[f]=b+q[c]/2+h/2);v&&("y"===a&&(e=f,f=a+"1"),u[e]+=v,u[f]-=v)});return u};k.prototype.haloPath=function(a){if(!a)return[];
688
+ var e=this.shapeArgs;return["M",e.x-a,e.y-a,"L",e.x-a,e.y+e.height+a,e.x+e.width+a,e.y+e.height+a,e.x+e.width+a,e.y-a,"Z"]};k.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return k}(q.seriesTypes.scatter.prototype.pointClass);B(q.prototype,{dataLabelOnNull:a.dataLabelOnNull,moveToTopOnHover:a.moveToTopOnHover});return q});K(a,"Series/Heatmap/HeatmapSeries.js",[a["Core/Color/Color.js"],a["Mixins/ColorMapSeries.js"],a["Series/Heatmap/HeatmapPoint.js"],a["Mixins/LegendSymbol.js"],
689
+ a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,q,C,D,A,B,w,n){var k=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 b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,e)};return function(c,e){function d(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(d.prototype=e.prototype,new d)}}();
690
+ q=q.colorMapSeriesMixin;var f=B.series,e=B.seriesTypes,c=e.column,h=e.scatter,t=w.prototype.symbols,v=n.extend,G=n.fireEvent,H=n.isNumber,u=n.merge,F=n.pick;w=function(c){function e(){var a=null!==c&&c.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}k(e,c);e.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)f.prototype.drawPoints.call(this),this.points.forEach(function(c){c.graphic&&
691
+ (c.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(c)),a.options.borderRadius&&c.graphic.attr({r:a.options.borderRadius}),null===c.value&&c.graphic.addClass("highcharts-null-point"))})};e.prototype.getExtremes=function(){var a=f.prototype.getExtremes.call(this,this.valueData),c=a.dataMin;a=a.dataMax;H(c)&&(this.valueMin=c);H(a)&&(this.valueMax=a);return f.prototype.getExtremes.call(this)};e.prototype.getValidPoints=function(a,c){return f.prototype.getValidPoints.call(this,a,c,!0)};e.prototype.hasData=
692
+ function(){return!!this.processedXData.length};e.prototype.init=function(){f.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=F(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;t.ellipse=t.circle};e.prototype.markerAttribs=function(a,c){var d=a.marker||{},b=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(c){var h=b.states[c]||{};var k=d.states&&d.states[c]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=
693
+ (k[a[0]]||h[a[0]]||e[a[0]])+(k[a[0]+"Plus"]||h[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return c?f:e};e.prototype.pointAttribs=function(c,d){var e=f.prototype.pointAttribs.call(this,c,d),b=this.options||{},g=this.chart.options.plotOptions||{},h=g.series||{},k=g.heatmap||{};g=b.borderColor||k.borderColor||h.borderColor;h=b.borderWidth||k.borderWidth||h.borderWidth||e["stroke-width"];e.stroke=c&&c.marker&&c.marker.lineColor||b.marker&&b.marker.lineColor||g||this.color;e["stroke-width"]=
694
+ h;d&&(c=u(b.states[d],b.marker&&b.marker.states[d],c&&c.options.states&&c.options.states[d]||{}),d=c.brightness,e.fill=c.color||a.parse(e.fill).brighten(d||0).get(),e.stroke=c.lineColor);return e};e.prototype.setClip=function(a){var c=this.chart;f.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?c.sharedClips[this.sharedClipKey]:c.clipRect)};e.prototype.translate=function(){var a=this.options,c=a.marker&&a.marker.symbol||
695
+ "rect",e=t[c]?c:"rect",b=-1!==["circle","square"].indexOf(e);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),0);f.height=Math.max(Math.abs(d.y2-d.y1),0);var g=a.hasImage=0===(a.marker&&a.marker.symbol||c||"").indexOf("url");if(b){var h=Math.abs(f.width-f.height);f.x=Math.min(d.x1,d.x2)+(f.width<f.height?0:h/2);f.y=Math.min(d.y1,d.y2)+(f.width<f.height?h/2:0);f.width=f.height=
696
+ Math.min(f.width,f.height)}h={plotX:(d.x1+d.x2)/2,plotY:(d.y1+d.y2)/2,clientX:(d.x1+d.x2)/2,shapeType:"path",shapeArgs:u(!0,f,{d:t[e](f.x,f.y,f.width,f.height)})};g&&(a.marker={width:f.width,height:f.height});v(a,h)});G(this,"afterTranslate")};e.defaultOptions=u(h.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:A.neutralColor3,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,
697
+ lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return e}(h);v(w.prototype,{alignDataLabel:c.prototype.alignDataLabel,axisTypes:q.axisTypes,colorAttribs:q.colorAttribs,colorKey:q.colorKey,directTouch:!0,drawLegendSymbol:D.drawRectangle,getExtremesFromAll:!0,getSymbol:f.prototype.getSymbol,parallelArrays:q.parallelArrays,pointArrayMap:["y","value"],pointClass:C,
698
+ trackerGroups:q.trackerGroups});B.registerSeriesType("heatmap",w);"";"";return w});K(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,q,C,D){function v(a,c){var e,f=!1,k=a.x,n=a.y;a=0;for(e=c.length-1;a<c.length;e=a++){var q=c[a][1]>n;var u=c[e][1]>n;q!==u&&k<(c[e][0]-c[a][0])*(n-c[a][1])/(c[e][1]-c[a][1])+c[a][0]&&(f=!f)}return f}var B=q.format,w=C.win,n=D.error,k=D.extend,f=D.merge;q=D.wrap;"";a.prototype.transformFromLatLon=
699
+ function(a,c){var e=this.userOptions.chart&&this.userOptions.chart.proj4||w.proj4;if(!e)return n(21,!1,this),{x:0,y:null};a=e(c.crs,[a.lon,a.lat]);e=c.cosAngle||c.rotation&&Math.cos(c.rotation);var f=c.sinAngle||c.rotation&&Math.sin(c.rotation);a=c.rotation?[a[0]*e+a[1]*f,-a[0]*f+a[1]*e]:a;return{x:((a[0]-(c.xoffset||0))*(c.scale||1)+(c.xpan||0))*(c.jsonres||1)+(c.jsonmarginX||0),y:(((c.yoffset||0)-a[1])*(c.scale||1)+(c.ypan||0))*(c.jsonres||1)-(c.jsonmarginY||0)}};a.prototype.transformToLatLon=function(a,
700
+ c){if("undefined"===typeof w.proj4)n(21,!1,this);else{a={x:((a.x-(c.jsonmarginX||0))/(c.jsonres||1)-(c.xpan||0))/(c.scale||1)+(c.xoffset||0),y:((-a.y-(c.jsonmarginY||0))/(c.jsonres||1)+(c.ypan||0))/(c.scale||1)+(c.yoffset||0)};var e=c.cosAngle||c.rotation&&Math.cos(c.rotation),f=c.sinAngle||c.rotation&&Math.sin(c.rotation);c=w.proj4(c.crs,"WGS84",c.rotation?{x:a.x*e+a.y*-f,y:a.x*f+a.y*e}:a);return{lat:c.y,lon:c.x}}};a.prototype.fromPointToLatLon=function(a){var c=this.mapTransforms,e;if(c){for(e in c)if(Object.hasOwnProperty.call(c,
701
+ e)&&c[e].hitZone&&v({x:a.x,y:-a.y},c[e].hitZone.coordinates[0]))return this.transformToLatLon(a,c[e]);return this.transformToLatLon(a,c["default"])}n(22,!1,this)};a.prototype.fromLatLonToPoint=function(a){var c=this.mapTransforms,e;if(!c)return n(22,!1,this),{x:0,y:null};for(e in c)if(Object.hasOwnProperty.call(c,e)&&c[e].hitZone){var f=this.transformFromLatLon(a,c[e]);if(v({x:f.x,y:-f.y},c[e].hitZone.coordinates[0]))return f}return this.transformFromLatLon(a,c["default"])};C.geojson=function(a,c,
702
+ f){var e=[],h=[],n=function(a){a.forEach(function(a,c){0===c?h.push(["M",a[0],-a[1]]):h.push(["L",a[0],-a[1]])})};c=c||"map";a.features.forEach(function(a){var f=a.geometry,q=f.type;f=f.coordinates;a=a.properties;var t;h=[];"map"===c||"mapbubble"===c?("Polygon"===q?(f.forEach(n),h.push(["Z"])):"MultiPolygon"===q&&(f.forEach(function(a){a.forEach(n)}),h.push(["Z"])),h.length&&(t={path:h})):"mapline"===c?("LineString"===q?n(f):"MultiLineString"===q&&f.forEach(n),h.length&&(t={path:h})):"mappoint"===
703
+ c&&"Point"===q&&(t={x:f[0],y:-f[1]});t&&e.push(k(t,{name:a.name||a.NAME,properties:a}))});f&&a.copyrightShort&&(f.chart.mapCredits=B(f.chart.options.credits.mapText,{geojson:a}),f.chart.mapCreditsFull=B(f.chart.options.credits.mapTextFull,{geojson:a}));return e};q(a.prototype,"addCredits",function(a,c){c=f(!0,this.options.credits,c);this.mapCredits&&(c.href=null);a.call(this,c);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});K(a,"masters/modules/map.src.js",[a["Core/Globals.js"],
704
+ a["Core/Chart/MapChart.js"]],function(a,q){a.MapChart=q;a.mapChart=a.Map=q.mapChart;a.maps=q.maps});K(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"]});
705
705
  //# sourceMappingURL=highmaps.js.map