highcharts 9.3.1 → 9.3.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 (752) hide show
  1. package/bower.json +1 -1
  2. package/css/annotations/popup.css +1 -1
  3. package/css/highcharts.css +2 -2
  4. package/css/highcharts.scss +1 -1
  5. package/css/stocktools/gui.css +1 -1
  6. package/css/themes/dark-unica.css +2 -2
  7. package/css/themes/grid-light.css +2 -2
  8. package/css/themes/sand-signika.css +2 -2
  9. package/es-modules/Accessibility/A11yI18n.js +1 -5
  10. package/es-modules/Accessibility/Accessibility.js +11 -5
  11. package/es-modules/Accessibility/AccessibilityComponent.js +1 -1
  12. package/es-modules/Accessibility/Components/AnnotationsA11y.js +9 -5
  13. package/es-modules/Accessibility/Components/ContainerComponent.js +1 -1
  14. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +8 -19
  15. package/es-modules/Accessibility/Components/LegendComponent.js +176 -86
  16. package/es-modules/Accessibility/Components/MenuComponent.js +1 -10
  17. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +10 -13
  18. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +15 -6
  19. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +8 -4
  20. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -1
  21. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -41
  22. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +20 -31
  23. package/es-modules/Accessibility/Components/ZoomComponent.js +135 -57
  24. package/es-modules/Accessibility/FocusBorder.js +0 -5
  25. package/es-modules/Accessibility/HighContrastMode.js +2 -1
  26. package/es-modules/Accessibility/KeyboardNavigation.js +5 -4
  27. package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -5
  28. package/es-modules/Accessibility/Options/LangOptions.js +3 -3
  29. package/es-modules/Accessibility/ProxyElement.js +12 -6
  30. package/es-modules/Accessibility/ProxyProvider.js +0 -3
  31. package/es-modules/Accessibility/Utils/Announcer.js +2 -2
  32. package/es-modules/Accessibility/Utils/ChartUtilities.js +17 -32
  33. package/es-modules/Accessibility/Utils/HTMLUtilities.js +0 -12
  34. package/es-modules/Core/Animation/Fx.js +5 -14
  35. package/es-modules/Core/Axis/Axis.js +42 -68
  36. package/es-modules/Core/Axis/Axis3D.js +10 -4
  37. package/es-modules/Core/Axis/BrokenAxis.js +17 -11
  38. package/es-modules/Core/Axis/Color/ColorAxis.js +7 -4
  39. package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -3
  40. package/es-modules/Core/Axis/DateTimeAxis.js +3 -14
  41. package/es-modules/Core/Axis/GridAxis.js +26 -16
  42. package/es-modules/Core/Axis/NavigatorAxis.js +0 -5
  43. package/es-modules/Core/Axis/OrdinalAxis.js +83 -79
  44. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +0 -5
  45. package/es-modules/Core/Axis/RadialAxis.js +7 -28
  46. package/es-modules/Core/Axis/ScrollbarAxis.js +18 -10
  47. package/es-modules/Core/Axis/StackingAxis.js +2 -1
  48. package/es-modules/Core/Axis/Tick.js +2 -4
  49. package/es-modules/Core/Axis/TreeGridAxis.js +26 -17
  50. package/es-modules/Core/Axis/TreeGridTick.js +4 -1
  51. package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
  52. package/es-modules/Core/Axis/ZAxis.js +1 -1
  53. package/es-modules/Core/Chart/Chart.js +42 -44
  54. package/es-modules/Core/Chart/Chart3D.js +23 -10
  55. package/es-modules/Core/Chart/GanttChart.js +4 -4
  56. package/es-modules/Core/Chart/MapChart.js +3 -3
  57. package/es-modules/Core/Chart/StockChart.js +10 -23
  58. package/es-modules/Core/DefaultOptions.js +3 -2
  59. package/es-modules/Core/Geometry/CircleUtilities.js +2 -1
  60. package/es-modules/Core/Globals.js +1 -1
  61. package/es-modules/Core/HttpUtilities.js +5 -4
  62. package/es-modules/Core/Legend/Legend.js +12 -13
  63. package/es-modules/Core/Navigator.js +34 -22
  64. package/es-modules/Core/Pointer.js +13 -9
  65. package/es-modules/Core/Renderer/HTML/AST.js +27 -14
  66. package/es-modules/Core/Renderer/HTML/HTMLElement.js +4 -2
  67. package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +8 -6
  68. package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
  69. package/es-modules/Core/Renderer/SVG/SVGElement.js +8 -16
  70. package/es-modules/Core/Renderer/SVG/SVGLabel.js +17 -8
  71. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +5 -12
  72. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +12 -5
  73. package/es-modules/Core/Renderer/SVG/TextBuilder.js +16 -10
  74. package/es-modules/Core/Responsive.js +2 -3
  75. package/es-modules/Core/Scrollbar.js +14 -12
  76. package/es-modules/Core/Series/DataLabel.js +17 -12
  77. package/es-modules/Core/Series/Point.js +17 -16
  78. package/es-modules/Core/Series/Series.js +44 -73
  79. package/es-modules/Core/Series/SeriesDefaults.js +5 -4
  80. package/es-modules/Core/Time.js +14 -11
  81. package/es-modules/Core/Tooltip.js +19 -36
  82. package/es-modules/Core/Utilities.js +5 -17
  83. package/es-modules/Data/DataConverter.js +0 -6
  84. package/es-modules/Data/DataSeriesConverter.js +9 -5
  85. package/es-modules/Data/DataTable.js +2 -1
  86. package/es-modules/Data/Modifiers/DataModifier.js +1 -1
  87. package/es-modules/Data/Parsers/CSVParser.js +3 -2
  88. package/es-modules/Data/Parsers/GoogleSheetsParser.js +5 -2
  89. package/es-modules/Data/Stores/CSVStore.js +2 -2
  90. package/es-modules/Data/Stores/DataStore.js +1 -1
  91. package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
  92. package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
  93. package/es-modules/Extensions/Annotations/Annotations.js +11 -10
  94. package/es-modules/Extensions/Annotations/ControlPoint.js +0 -2
  95. package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +1 -1
  96. package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +1 -1
  97. package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +1 -1
  98. package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +3 -6
  99. package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -2
  100. package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +1 -1
  101. package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +6 -3
  102. package/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +0 -1
  103. package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +5 -4
  104. package/es-modules/Extensions/Annotations/NavigationBindings.js +34 -29
  105. package/es-modules/Extensions/Annotations/Popup.js +40 -32
  106. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
  107. package/es-modules/Extensions/Annotations/Types/ElliottWave.js +1 -1
  108. package/es-modules/Extensions/Annotations/Types/Measure.js +15 -11
  109. package/es-modules/Extensions/Annotations/Types/Pitchfork.js +2 -1
  110. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +8 -4
  111. package/es-modules/Extensions/Annotations/Types/Tunnel.js +10 -5
  112. package/es-modules/Extensions/Boost/BoostOverrides.js +3 -9
  113. package/es-modules/Extensions/Boost/BoostUtils.js +0 -6
  114. package/es-modules/Extensions/Boost/WGLRenderer.js +16 -12
  115. package/es-modules/Extensions/Boost/WGLShader.js +9 -8
  116. package/es-modules/Extensions/Boost/WGLVBuffer.js +4 -7
  117. package/es-modules/Extensions/Data.js +4 -48
  118. package/es-modules/Extensions/DataGrouping.js +22 -15
  119. package/es-modules/Extensions/DraggablePoints.js +7 -8
  120. package/es-modules/Extensions/Drilldown.js +9 -4
  121. package/es-modules/Extensions/ExportData.js +6 -5
  122. package/es-modules/Extensions/Exporting/Exporting.js +23 -37
  123. package/es-modules/Extensions/FullScreen.js +4 -3
  124. package/es-modules/Extensions/GeoJSON.js +3 -3
  125. package/es-modules/Extensions/MarkerClusters.js +3 -1
  126. package/es-modules/Extensions/Math3D.js +4 -4
  127. package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +23 -24
  128. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  129. package/es-modules/Extensions/Oldie/Oldie.js +13 -77
  130. package/es-modules/Extensions/Oldie/VMLAxis3D.js +5 -1
  131. package/es-modules/Extensions/OverlappingDataLabels.js +10 -6
  132. package/es-modules/Extensions/Pane.js +6 -6
  133. package/es-modules/Extensions/ParallelCoordinates.js +5 -3
  134. package/es-modules/Extensions/PatternFill.js +17 -11
  135. package/es-modules/Extensions/Polar.js +6 -3
  136. package/es-modules/Extensions/PriceIndication.js +2 -1
  137. package/es-modules/Extensions/RangeSelector.js +19 -55
  138. package/es-modules/Extensions/ScrollablePlotArea.js +2 -2
  139. package/es-modules/Extensions/SeriesLabel.js +1 -1
  140. package/es-modules/Extensions/Sonification/ChartSonify.js +32 -26
  141. package/es-modules/Extensions/Sonification/Instrument.js +12 -15
  142. package/es-modules/Extensions/Sonification/PointSonify.js +12 -8
  143. package/es-modules/Extensions/Sonification/SeriesSonify.js +33 -18
  144. package/es-modules/Extensions/Sonification/SignalHandler.js +4 -6
  145. package/es-modules/Extensions/Sonification/Sonification.js +1 -1
  146. package/es-modules/Extensions/Sonification/SonificationUtilities.js +11 -7
  147. package/es-modules/Extensions/Sonification/Timeline.js +2 -7
  148. package/es-modules/Extensions/Sonification/TimelineEvent.js +0 -1
  149. package/es-modules/Extensions/Sonification/TimelinePath.js +8 -8
  150. package/es-modules/Extensions/Stacking.js +5 -23
  151. package/es-modules/Extensions/Themes/BrandDark.js +293 -0
  152. package/es-modules/Extensions/Themes/BrandLight.js +259 -0
  153. package/es-modules/Extensions/Themes/DarkUnica.js +4 -2
  154. package/es-modules/Extensions/Themes/Grid.js +4 -2
  155. package/es-modules/Extensions/Themes/GridLight.js +4 -2
  156. package/es-modules/Gantt/Connection.js +2 -2
  157. package/es-modules/Gantt/Pathfinder.js +6 -5
  158. package/es-modules/Gantt/PathfinderAlgorithms.js +12 -12
  159. package/es-modules/Maps/MapNavigation.js +6 -7
  160. package/es-modules/Maps/MapPointer.js +2 -1
  161. package/es-modules/Maps/MapSymbols.js +23 -3
  162. package/es-modules/Maps/MapViewOptionsDefault.js +1 -1
  163. package/es-modules/Series/Area/AreaSeries.js +13 -13
  164. package/es-modules/Series/Area3DSeries.js +4 -2
  165. package/es-modules/Series/AreaRange/AreaRangeSeries.js +24 -12
  166. package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -1
  167. package/es-modules/Series/Bubble/BubbleLegendItem.js +2 -12
  168. package/es-modules/Series/Candlestick/CandlestickSeries.js +0 -1
  169. package/es-modules/Series/ColorMapMixin.js +84 -0
  170. package/es-modules/Series/Column/ColumnSeries.js +16 -14
  171. package/es-modules/Series/Column3D/Column3DComposition.js +1 -2
  172. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +5 -2
  173. package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
  174. package/es-modules/Series/Cylinder/CylinderComposition.js +36 -4
  175. package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +1 -1
  176. package/es-modules/Series/Dumbbell/DumbbellPoint.js +0 -1
  177. package/es-modules/Series/Dumbbell/DumbbellSeries.js +0 -3
  178. package/es-modules/Series/Flags/FlagsSymbols.js +2 -2
  179. package/es-modules/Series/Funnel3D/Funnel3DComposition.js +14 -8
  180. package/es-modules/Series/Funnel3D/Funnel3DSeries.js +2 -1
  181. package/es-modules/Series/Gantt/GanttPoint.js +1 -1
  182. package/es-modules/Series/Gantt/GanttSeries.js +3 -1
  183. package/es-modules/Series/HLC/HLCSeries.js +1 -6
  184. package/es-modules/Series/Heatmap/HeatmapPoint.js +10 -10
  185. package/es-modules/Series/Heatmap/HeatmapSeries.js +9 -10
  186. package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +8 -6
  187. package/es-modules/Series/Histogram/HistogramSeries.js +4 -4
  188. package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +1 -4
  189. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +19 -20
  190. package/es-modules/Series/Item/ItemSeries.js +4 -5
  191. package/es-modules/Series/Map/MapPoint.js +6 -0
  192. package/es-modules/Series/Map/MapSeries.js +24 -25
  193. package/es-modules/Series/MapLine/MapLineSeries.js +0 -4
  194. package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -4
  195. package/es-modules/Series/Networkgraph/Integrations.js +8 -22
  196. package/es-modules/Series/Networkgraph/Networkgraph.js +1 -5
  197. package/es-modules/Series/Networkgraph/QuadTree.js +1 -3
  198. package/es-modules/Series/NodesComposition.js +2 -1
  199. package/es-modules/Series/OHLC/OHLCPoint.js +0 -1
  200. package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
  201. package/es-modules/Series/Organization/OrganizationSeries.js +4 -2
  202. package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +1 -0
  203. package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
  204. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +2 -4
  205. package/es-modules/Series/Pie/PiePoint.js +2 -2
  206. package/es-modules/Series/Pie/PieSeries.js +1 -1
  207. package/es-modules/Series/Pie3D/Pie3DComposition.js +2 -1
  208. package/es-modules/Series/Pie3D/Pie3DPoint.js +2 -1
  209. package/es-modules/Series/Pie3D/Pie3DSeries.js +1 -1
  210. package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +2 -1
  211. package/es-modules/Series/Sankey/SankeySeries.js +3 -2
  212. package/es-modules/Series/SolidGauge/SolidGaugeComposition.js +3 -1
  213. package/es-modules/Series/Spline/SplineSeries.js +0 -8
  214. package/es-modules/Series/Sunburst/SunburstSeries.js +2 -2
  215. package/es-modules/Series/Sunburst/SunburstUtilities.js +3 -2
  216. package/es-modules/Series/Tilemap/TilemapPoint.js +0 -2
  217. package/es-modules/Series/Tilemap/TilemapShapes.js +0 -7
  218. package/es-modules/Series/TreeUtilities.js +2 -2
  219. package/es-modules/Series/Treemap/TreemapSeries.js +18 -21
  220. package/es-modules/Series/Variwide/VariwideSeries.js +5 -1
  221. package/es-modules/Series/Venn/VennSeries.js +6 -9
  222. package/es-modules/Series/Venn/VennUtils.js +8 -7
  223. package/es-modules/Series/Waterfall/WaterfallSeries.js +6 -3
  224. package/es-modules/Series/Wordcloud/WordcloudSeries.js +2 -2
  225. package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -10
  226. package/es-modules/Series/XRange/XRangePoint.js +6 -12
  227. package/es-modules/Series/XRange/XRangeSeries.js +4 -20
  228. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +12 -0
  229. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -0
  230. package/es-modules/Stock/Indicators/BB/BBIndicator.js +12 -0
  231. package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +35 -15
  232. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +9 -5
  233. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +2 -1
  234. package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +6 -6
  235. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +12 -0
  236. package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -3
  237. package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +30 -12
  238. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -1
  239. package/es-modules/Stock/Indicators/MultipleLinesComposition.js +70 -6
  240. package/es-modules/Stock/Indicators/PC/PCIndicator.js +11 -0
  241. package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -1
  242. package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +2 -1
  243. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -3
  244. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
  245. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -3
  246. package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +19 -7
  247. package/es-modules/Stock/StockToolsBindings.js +13 -6
  248. package/es-modules/Stock/StockToolsGui.js +34 -23
  249. package/es-modules/masters/highcharts-3d.src.js +1 -1
  250. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  251. package/es-modules/masters/highcharts-more.src.js +1 -1
  252. package/es-modules/masters/highcharts.src.js +1 -1
  253. package/es-modules/masters/highmaps.src.js +1 -1
  254. package/es-modules/masters/highstock.src.js +1 -1
  255. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  256. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  257. package/es-modules/masters/indicators/ao.src.js +1 -1
  258. package/es-modules/masters/indicators/apo.src.js +1 -1
  259. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  260. package/es-modules/masters/indicators/aroon.src.js +1 -1
  261. package/es-modules/masters/indicators/atr.src.js +1 -1
  262. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  263. package/es-modules/masters/indicators/cci.src.js +1 -1
  264. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  265. package/es-modules/masters/indicators/cmf.src.js +1 -1
  266. package/es-modules/masters/indicators/cmo.src.js +1 -1
  267. package/es-modules/masters/indicators/dema.src.js +1 -1
  268. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  269. package/es-modules/masters/indicators/dmi.src.js +1 -1
  270. package/es-modules/masters/indicators/dpo.src.js +1 -1
  271. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  272. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  273. package/es-modules/masters/indicators/indicators.src.js +1 -1
  274. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  275. package/es-modules/masters/indicators/klinger.src.js +1 -1
  276. package/es-modules/masters/indicators/macd.src.js +1 -1
  277. package/es-modules/masters/indicators/mfi.src.js +1 -1
  278. package/es-modules/masters/indicators/momentum.src.js +1 -1
  279. package/es-modules/masters/indicators/natr.src.js +1 -1
  280. package/es-modules/masters/indicators/obv.src.js +1 -1
  281. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  282. package/es-modules/masters/indicators/ppo.src.js +1 -1
  283. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  284. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  285. package/es-modules/masters/indicators/psar.src.js +1 -1
  286. package/es-modules/masters/indicators/regressions.src.js +1 -1
  287. package/es-modules/masters/indicators/roc.src.js +1 -1
  288. package/es-modules/masters/indicators/rsi.src.js +1 -1
  289. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  290. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  291. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  292. package/es-modules/masters/indicators/tema.src.js +1 -1
  293. package/es-modules/masters/indicators/trendline.src.js +1 -1
  294. package/es-modules/masters/indicators/trix.src.js +1 -1
  295. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  296. package/es-modules/masters/indicators/vwap.src.js +1 -1
  297. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  298. package/es-modules/masters/indicators/wma.src.js +1 -1
  299. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  300. package/es-modules/masters/modules/accessibility.src.js +2 -2
  301. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  302. package/es-modules/masters/modules/annotations.src.js +1 -1
  303. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  304. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  305. package/es-modules/masters/modules/boost.src.js +1 -1
  306. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  307. package/es-modules/masters/modules/bullet.src.js +1 -1
  308. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  309. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  310. package/es-modules/masters/modules/cylinder.src.js +1 -1
  311. package/es-modules/masters/modules/data.src.js +1 -1
  312. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  313. package/es-modules/masters/modules/debugger.src.js +1 -1
  314. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  315. package/es-modules/masters/modules/dotplot.src.js +1 -1
  316. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  317. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  318. package/es-modules/masters/modules/drilldown.src.js +1 -1
  319. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  320. package/es-modules/masters/modules/export-data.src.js +1 -1
  321. package/es-modules/masters/modules/exporting.src.js +1 -1
  322. package/es-modules/masters/modules/full-screen.src.js +1 -1
  323. package/es-modules/masters/modules/funnel.src.js +1 -1
  324. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  325. package/es-modules/masters/modules/gantt.src.js +1 -1
  326. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  327. package/es-modules/masters/modules/heatmap.src.js +1 -1
  328. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  329. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  330. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  331. package/es-modules/masters/modules/item-series.src.js +1 -1
  332. package/es-modules/masters/modules/lollipop.src.js +1 -1
  333. package/es-modules/masters/modules/map.src.js +1 -1
  334. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  335. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  336. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  337. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  338. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  339. package/es-modules/masters/modules/oldie.src.js +1 -1
  340. package/es-modules/masters/modules/organization.src.js +1 -1
  341. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  342. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  343. package/es-modules/masters/modules/pareto.src.js +1 -1
  344. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  345. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  346. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  347. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  348. package/es-modules/masters/modules/sankey.src.js +1 -1
  349. package/es-modules/masters/modules/series-label.src.js +1 -1
  350. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  351. package/es-modules/masters/modules/sonification.src.js +1 -1
  352. package/es-modules/masters/modules/static-scale.src.js +1 -1
  353. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  354. package/es-modules/masters/modules/stock.src.js +1 -1
  355. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  356. package/es-modules/masters/modules/sunburst.src.js +1 -1
  357. package/es-modules/masters/modules/tilemap.src.js +1 -1
  358. package/es-modules/masters/modules/timeline.src.js +1 -1
  359. package/es-modules/masters/modules/treegrid.src.js +1 -1
  360. package/es-modules/masters/modules/treemap.src.js +1 -1
  361. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  362. package/es-modules/masters/modules/variwide.src.js +1 -1
  363. package/es-modules/masters/modules/vector.src.js +1 -1
  364. package/es-modules/masters/modules/venn.src.js +1 -1
  365. package/es-modules/masters/modules/windbarb.src.js +1 -1
  366. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  367. package/es-modules/masters/modules/xrange.src.js +1 -1
  368. package/es-modules/masters/themes/avocado.src.js +1 -1
  369. package/es-modules/masters/themes/brand-dark.src.js +14 -0
  370. package/es-modules/masters/themes/brand-light.src.js +14 -0
  371. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  372. package/es-modules/masters/themes/dark-green.src.js +1 -1
  373. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  374. package/es-modules/masters/themes/gray.src.js +1 -1
  375. package/es-modules/masters/themes/grid-light.src.js +1 -1
  376. package/es-modules/masters/themes/grid.src.js +1 -1
  377. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  378. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  379. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  380. package/es-modules/masters/themes/skies.src.js +1 -1
  381. package/es-modules/masters/themes/sunset.src.js +1 -1
  382. package/highcharts-3d.js +1 -1
  383. package/highcharts-3d.js.map +1 -1
  384. package/highcharts-3d.src.js +65 -35
  385. package/highcharts-gantt.js +799 -799
  386. package/highcharts-gantt.js.map +1 -1
  387. package/highcharts-gantt.src.js +589 -698
  388. package/highcharts-more.js +1 -1
  389. package/highcharts-more.js.map +1 -1
  390. package/highcharts-more.src.js +73 -103
  391. package/highcharts.d.ts +5586 -1709
  392. package/highcharts.js +577 -577
  393. package/highcharts.js.map +1 -1
  394. package/highcharts.src.d.ts +5586 -1709
  395. package/highcharts.src.js +391 -486
  396. package/highmaps.js +723 -723
  397. package/highmaps.js.map +1 -1
  398. package/highmaps.src.js +552 -656
  399. package/highstock.js +782 -782
  400. package/highstock.js.map +1 -1
  401. package/highstock.src.js +612 -731
  402. package/indicators/acceleration-bands.d.ts +17 -1
  403. package/indicators/acceleration-bands.js +11 -10
  404. package/indicators/acceleration-bands.js.map +1 -1
  405. package/indicators/acceleration-bands.src.d.ts +17 -1
  406. package/indicators/acceleration-bands.src.js +88 -6
  407. package/indicators/accumulation-distribution.js +1 -1
  408. package/indicators/accumulation-distribution.src.js +1 -1
  409. package/indicators/ao.js +1 -1
  410. package/indicators/ao.src.js +1 -1
  411. package/indicators/apo.js +1 -1
  412. package/indicators/apo.src.js +1 -1
  413. package/indicators/aroon-oscillator.d.ts +17 -1
  414. package/indicators/aroon-oscillator.js +10 -9
  415. package/indicators/aroon-oscillator.js.map +1 -1
  416. package/indicators/aroon-oscillator.src.d.ts +17 -1
  417. package/indicators/aroon-oscillator.src.js +76 -6
  418. package/indicators/aroon.d.ts +17 -1
  419. package/indicators/aroon.js +11 -9
  420. package/indicators/aroon.js.map +1 -1
  421. package/indicators/aroon.src.d.ts +17 -1
  422. package/indicators/aroon.src.js +77 -6
  423. package/indicators/atr.js +1 -1
  424. package/indicators/atr.src.js +1 -1
  425. package/indicators/bollinger-bands.d.ts +17 -1
  426. package/indicators/bollinger-bands.js +12 -10
  427. package/indicators/bollinger-bands.js.map +1 -1
  428. package/indicators/bollinger-bands.src.d.ts +17 -1
  429. package/indicators/bollinger-bands.src.js +88 -6
  430. package/indicators/cci.js +1 -1
  431. package/indicators/cci.src.js +1 -1
  432. package/indicators/chaikin.js +1 -1
  433. package/indicators/chaikin.src.js +1 -1
  434. package/indicators/cmf.js +1 -1
  435. package/indicators/cmf.js.map +1 -1
  436. package/indicators/cmf.src.js +36 -16
  437. package/indicators/cmo.js +1 -1
  438. package/indicators/cmo.src.js +1 -1
  439. package/indicators/dema.js +1 -1
  440. package/indicators/dema.src.js +1 -1
  441. package/indicators/disparity-index.js +1 -1
  442. package/indicators/disparity-index.js.map +1 -1
  443. package/indicators/disparity-index.src.js +3 -2
  444. package/indicators/dmi.js +12 -11
  445. package/indicators/dmi.js.map +1 -1
  446. package/indicators/dmi.src.js +85 -11
  447. package/indicators/dpo.js +1 -1
  448. package/indicators/dpo.src.js +1 -1
  449. package/indicators/ichimoku-kinko-hyo.js +1 -1
  450. package/indicators/ichimoku-kinko-hyo.js.map +1 -1
  451. package/indicators/ichimoku-kinko-hyo.src.js +7 -7
  452. package/indicators/indicators-all.d.ts +17 -1
  453. package/indicators/indicators-all.js +198 -197
  454. package/indicators/indicators-all.js.map +1 -1
  455. package/indicators/indicators-all.src.d.ts +17 -1
  456. package/indicators/indicators-all.src.js +246 -65
  457. package/indicators/indicators.js +1 -1
  458. package/indicators/indicators.js.map +1 -1
  459. package/indicators/indicators.src.js +3 -4
  460. package/indicators/keltner-channels.d.ts +17 -1
  461. package/indicators/keltner-channels.js +11 -10
  462. package/indicators/keltner-channels.js.map +1 -1
  463. package/indicators/keltner-channels.src.d.ts +17 -1
  464. package/indicators/keltner-channels.src.js +88 -6
  465. package/indicators/klinger.js +14 -12
  466. package/indicators/klinger.js.map +1 -1
  467. package/indicators/klinger.src.js +84 -9
  468. package/indicators/macd.js +1 -1
  469. package/indicators/macd.js.map +1 -1
  470. package/indicators/macd.src.js +2 -2
  471. package/indicators/mfi.js +1 -1
  472. package/indicators/mfi.src.js +1 -1
  473. package/indicators/momentum.js +1 -1
  474. package/indicators/momentum.src.js +1 -1
  475. package/indicators/natr.js +1 -1
  476. package/indicators/natr.src.js +1 -1
  477. package/indicators/obv.js +1 -1
  478. package/indicators/obv.src.js +1 -1
  479. package/indicators/pivot-points.js +1 -1
  480. package/indicators/pivot-points.js.map +1 -1
  481. package/indicators/pivot-points.src.js +3 -2
  482. package/indicators/ppo.js +1 -1
  483. package/indicators/ppo.src.js +1 -1
  484. package/indicators/price-channel.d.ts +17 -1
  485. package/indicators/price-channel.js +11 -9
  486. package/indicators/price-channel.js.map +1 -1
  487. package/indicators/price-channel.src.d.ts +17 -1
  488. package/indicators/price-channel.src.js +87 -6
  489. package/indicators/price-envelopes.js +1 -1
  490. package/indicators/price-envelopes.src.js +1 -1
  491. package/indicators/psar.js +1 -1
  492. package/indicators/psar.src.js +1 -1
  493. package/indicators/regressions.js +1 -1
  494. package/indicators/regressions.js.map +1 -1
  495. package/indicators/regressions.src.js +31 -13
  496. package/indicators/roc.js +1 -1
  497. package/indicators/roc.src.js +1 -1
  498. package/indicators/rsi.js +1 -1
  499. package/indicators/rsi.js.map +1 -1
  500. package/indicators/rsi.src.js +3 -2
  501. package/indicators/slow-stochastic.js +1 -1
  502. package/indicators/slow-stochastic.src.js +1 -1
  503. package/indicators/stochastic.d.ts +17 -1
  504. package/indicators/stochastic.js +12 -10
  505. package/indicators/stochastic.js.map +1 -1
  506. package/indicators/stochastic.src.d.ts +17 -1
  507. package/indicators/stochastic.src.js +79 -7
  508. package/indicators/supertrend.js +1 -1
  509. package/indicators/supertrend.src.js +1 -1
  510. package/indicators/tema.js +1 -1
  511. package/indicators/tema.src.js +1 -1
  512. package/indicators/trendline.js +1 -1
  513. package/indicators/trendline.src.js +1 -1
  514. package/indicators/trix.js +1 -1
  515. package/indicators/trix.src.js +1 -1
  516. package/indicators/volume-by-price.js +1 -1
  517. package/indicators/volume-by-price.src.js +4 -4
  518. package/indicators/vwap.js +1 -1
  519. package/indicators/vwap.js.map +1 -1
  520. package/indicators/vwap.src.js +20 -8
  521. package/indicators/williams-r.js +1 -1
  522. package/indicators/williams-r.src.js +1 -1
  523. package/indicators/wma.js +1 -1
  524. package/indicators/wma.src.js +1 -1
  525. package/indicators/zigzag.js +1 -1
  526. package/indicators/zigzag.src.js +1 -1
  527. package/modules/accessibility.d.ts +0 -35
  528. package/modules/accessibility.js +225 -222
  529. package/modules/accessibility.js.map +1 -1
  530. package/modules/accessibility.src.d.ts +0 -35
  531. package/modules/accessibility.src.js +503 -418
  532. package/modules/annotations-advanced.js +128 -128
  533. package/modules/annotations-advanced.js.map +1 -1
  534. package/modules/annotations-advanced.src.js +152 -124
  535. package/modules/annotations.js +122 -122
  536. package/modules/annotations.js.map +1 -1
  537. package/modules/annotations.src.js +112 -100
  538. package/modules/arrow-symbols.js +1 -1
  539. package/modules/arrow-symbols.src.js +1 -1
  540. package/modules/boost-canvas.js +1 -1
  541. package/modules/boost-canvas.src.js +1 -1
  542. package/modules/boost.js +1 -1
  543. package/modules/boost.js.map +1 -1
  544. package/modules/boost.src.js +33 -43
  545. package/modules/broken-axis.js +1 -1
  546. package/modules/broken-axis.js.map +1 -1
  547. package/modules/broken-axis.src.js +18 -12
  548. package/modules/bullet.js +1 -1
  549. package/modules/bullet.src.js +1 -1
  550. package/modules/coloraxis.js +1 -1
  551. package/modules/coloraxis.js.map +1 -1
  552. package/modules/coloraxis.src.js +11 -8
  553. package/modules/current-date-indicator.js +1 -1
  554. package/modules/current-date-indicator.src.js +1 -1
  555. package/modules/cylinder.js +1 -1
  556. package/modules/cylinder.js.map +1 -1
  557. package/modules/cylinder.src.js +37 -5
  558. package/modules/data.d.ts +6 -6
  559. package/modules/data.js +31 -31
  560. package/modules/data.js.map +1 -1
  561. package/modules/data.src.d.ts +6 -6
  562. package/modules/data.src.js +10 -53
  563. package/modules/datagrouping.js +2 -2
  564. package/modules/datagrouping.js.map +1 -1
  565. package/modules/datagrouping.src.js +23 -16
  566. package/modules/debugger.js +1 -1
  567. package/modules/debugger.src.js +1 -1
  568. package/modules/dependency-wheel.js +3 -3
  569. package/modules/dependency-wheel.js.map +1 -1
  570. package/modules/dependency-wheel.src.js +2 -2
  571. package/modules/dotplot.js +1 -1
  572. package/modules/dotplot.src.js +1 -1
  573. package/modules/drag-panes.js +1 -1
  574. package/modules/drag-panes.src.js +1 -1
  575. package/modules/draggable-points.js +1 -1
  576. package/modules/draggable-points.js.map +1 -1
  577. package/modules/draggable-points.src.js +8 -9
  578. package/modules/drilldown.js +1 -1
  579. package/modules/drilldown.js.map +1 -1
  580. package/modules/drilldown.src.js +10 -5
  581. package/modules/dumbbell.js +1 -1
  582. package/modules/dumbbell.js.map +1 -1
  583. package/modules/dumbbell.src.js +1 -5
  584. package/modules/export-data.js +19 -19
  585. package/modules/export-data.js.map +1 -1
  586. package/modules/export-data.src.js +7 -6
  587. package/modules/exporting.js +1 -1
  588. package/modules/exporting.js.map +1 -1
  589. package/modules/exporting.src.js +33 -45
  590. package/modules/full-screen.js +1 -1
  591. package/modules/full-screen.js.map +1 -1
  592. package/modules/full-screen.src.js +5 -4
  593. package/modules/funnel.js +1 -1
  594. package/modules/funnel.src.js +1 -1
  595. package/modules/funnel3d.js +1 -1
  596. package/modules/funnel3d.js.map +1 -1
  597. package/modules/funnel3d.src.js +17 -10
  598. package/modules/gantt.js +1 -1
  599. package/modules/gantt.js.map +1 -1
  600. package/modules/gantt.src.js +199 -213
  601. package/modules/grid-axis.js +1 -1
  602. package/modules/grid-axis.js.map +1 -1
  603. package/modules/grid-axis.src.js +27 -19
  604. package/modules/heatmap.js +39 -39
  605. package/modules/heatmap.js.map +1 -1
  606. package/modules/heatmap.src.js +88 -112
  607. package/modules/heikinashi.js +1 -1
  608. package/modules/heikinashi.js.map +1 -1
  609. package/modules/heikinashi.src.js +9 -7
  610. package/modules/histogram-bellcurve.js +1 -1
  611. package/modules/histogram-bellcurve.js.map +1 -1
  612. package/modules/histogram-bellcurve.src.js +7 -6
  613. package/modules/hollowcandlestick.js +1 -1
  614. package/modules/hollowcandlestick.js.map +1 -1
  615. package/modules/hollowcandlestick.src.js +21 -25
  616. package/modules/item-series.js +6 -6
  617. package/modules/item-series.js.map +1 -1
  618. package/modules/item-series.src.js +6 -6
  619. package/modules/lollipop.js +1 -1
  620. package/modules/lollipop.src.js +1 -1
  621. package/modules/map.d.ts +2 -0
  622. package/modules/map.js +144 -144
  623. package/modules/map.js.map +1 -1
  624. package/modules/map.src.d.ts +2 -0
  625. package/modules/map.src.js +162 -171
  626. package/modules/marker-clusters.js +1 -1
  627. package/modules/marker-clusters.js.map +1 -1
  628. package/modules/marker-clusters.src.js +4 -2
  629. package/modules/networkgraph.js +1 -1
  630. package/modules/networkgraph.js.map +1 -1
  631. package/modules/networkgraph.src.js +13 -36
  632. package/modules/no-data-to-display.js +1 -1
  633. package/modules/no-data-to-display.src.js +1 -1
  634. package/modules/offline-exporting.js +18 -18
  635. package/modules/offline-exporting.js.map +1 -1
  636. package/modules/offline-exporting.src.js +27 -32
  637. package/modules/oldie-polyfills.js +1 -1
  638. package/modules/oldie-polyfills.src.js +1 -1
  639. package/modules/oldie.js +2 -2
  640. package/modules/oldie.js.map +1 -1
  641. package/modules/oldie.src.js +19 -79
  642. package/modules/organization.js +1 -1
  643. package/modules/organization.js.map +1 -1
  644. package/modules/organization.src.js +5 -3
  645. package/modules/overlapping-datalabels.js +1 -1
  646. package/modules/overlapping-datalabels.src.js +1 -1
  647. package/modules/parallel-coordinates.js +1 -1
  648. package/modules/parallel-coordinates.js.map +1 -1
  649. package/modules/parallel-coordinates.src.js +6 -4
  650. package/modules/pareto.js +1 -1
  651. package/modules/pareto.src.js +1 -1
  652. package/modules/pathfinder.js +1 -1
  653. package/modules/pathfinder.js.map +1 -1
  654. package/modules/pathfinder.src.js +21 -20
  655. package/modules/pattern-fill.js +1 -1
  656. package/modules/pattern-fill.js.map +1 -1
  657. package/modules/pattern-fill.src.js +18 -12
  658. package/modules/price-indicator.js +1 -1
  659. package/modules/price-indicator.js.map +1 -1
  660. package/modules/price-indicator.src.js +3 -2
  661. package/modules/pyramid3d.js +1 -1
  662. package/modules/pyramid3d.js.map +1 -1
  663. package/modules/pyramid3d.src.js +3 -2
  664. package/modules/sankey.js +1 -1
  665. package/modules/sankey.js.map +1 -1
  666. package/modules/sankey.src.js +8 -6
  667. package/modules/series-label.js +1 -1
  668. package/modules/series-label.js.map +1 -1
  669. package/modules/series-label.src.js +2 -2
  670. package/modules/solid-gauge.js +1 -1
  671. package/modules/solid-gauge.js.map +1 -1
  672. package/modules/solid-gauge.src.js +17 -2
  673. package/modules/sonification.js +53 -53
  674. package/modules/sonification.js.map +1 -1
  675. package/modules/sonification.src.js +121 -103
  676. package/modules/static-scale.js +1 -1
  677. package/modules/static-scale.src.js +1 -1
  678. package/modules/stock-tools.js +66 -66
  679. package/modules/stock-tools.js.map +1 -1
  680. package/modules/stock-tools.src.js +119 -96
  681. package/modules/stock.js +3 -3
  682. package/modules/stock.js.map +1 -1
  683. package/modules/stock.src.js +222 -246
  684. package/modules/streamgraph.js +1 -1
  685. package/modules/streamgraph.src.js +1 -1
  686. package/modules/sunburst.js +60 -61
  687. package/modules/sunburst.js.map +1 -1
  688. package/modules/sunburst.src.js +83 -113
  689. package/modules/tilemap.js +1 -1
  690. package/modules/tilemap.js.map +1 -1
  691. package/modules/tilemap.src.js +1 -10
  692. package/modules/timeline.js +1 -1
  693. package/modules/timeline.src.js +1 -1
  694. package/modules/treegrid.js +1 -1
  695. package/modules/treegrid.js.map +1 -1
  696. package/modules/treegrid.src.js +76 -50
  697. package/modules/treemap.js +41 -41
  698. package/modules/treemap.js.map +1 -1
  699. package/modules/treemap.src.js +78 -109
  700. package/modules/variable-pie.js +1 -1
  701. package/modules/variable-pie.src.js +1 -1
  702. package/modules/variwide.js +1 -1
  703. package/modules/variwide.js.map +1 -1
  704. package/modules/variwide.src.js +7 -3
  705. package/modules/vector.js +1 -1
  706. package/modules/vector.src.js +1 -1
  707. package/modules/venn.js +1 -1
  708. package/modules/venn.js.map +1 -1
  709. package/modules/venn.src.js +17 -18
  710. package/modules/windbarb.js +1 -1
  711. package/modules/windbarb.src.js +1 -1
  712. package/modules/wordcloud.js +1 -1
  713. package/modules/wordcloud.js.map +1 -1
  714. package/modules/wordcloud.src.js +9 -13
  715. package/modules/xrange.js +1 -1
  716. package/modules/xrange.js.map +1 -1
  717. package/modules/xrange.src.js +11 -33
  718. package/package.json +1 -1
  719. package/themes/avocado.js +1 -1
  720. package/themes/avocado.src.js +1 -1
  721. package/themes/brand-dark.js +15 -0
  722. package/themes/brand-dark.js.map +1 -0
  723. package/themes/brand-dark.src.js +328 -0
  724. package/themes/brand-light.js +15 -0
  725. package/themes/brand-light.js.map +1 -0
  726. package/themes/brand-light.src.js +294 -0
  727. package/themes/dark-blue.js +1 -1
  728. package/themes/dark-blue.src.js +1 -1
  729. package/themes/dark-green.js +1 -1
  730. package/themes/dark-green.src.js +1 -1
  731. package/themes/dark-unica.js +1 -1
  732. package/themes/dark-unica.js.map +1 -1
  733. package/themes/dark-unica.src.js +5 -3
  734. package/themes/gray.js +1 -1
  735. package/themes/gray.src.js +1 -1
  736. package/themes/grid-light.js +1 -1
  737. package/themes/grid-light.js.map +1 -1
  738. package/themes/grid-light.src.js +5 -3
  739. package/themes/grid.js +1 -1
  740. package/themes/grid.js.map +1 -1
  741. package/themes/grid.src.js +5 -3
  742. package/themes/high-contrast-dark.js +1 -1
  743. package/themes/high-contrast-dark.src.js +1 -1
  744. package/themes/high-contrast-light.js +1 -1
  745. package/themes/high-contrast-light.src.js +1 -1
  746. package/themes/sand-signika.js +1 -1
  747. package/themes/sand-signika.src.js +1 -1
  748. package/themes/skies.js +1 -1
  749. package/themes/skies.src.js +1 -1
  750. package/themes/sunset.js +1 -1
  751. package/themes/sunset.src.js +1 -1
  752. package/es-modules/Series/ColorMapComposition.js +0 -109
package/highstock.js CHANGED
@@ -1,795 +1,795 @@
1
1
  /*
2
- Highstock JS v9.3.1 (2021-11-05)
2
+ Highstock JS v9.3.2 (2021-11-29)
3
3
 
4
4
  (c) 2009-2021 Torstein Honsi
5
5
 
6
6
  License: www.highcharts.com/license
7
7
  */
8
- 'use strict';(function(V,M){"object"===typeof module&&module.exports?(M["default"]=M,module.exports=V.document?M(V):M):"function"===typeof define&&define.amd?define("highcharts/highstock",function(){return M(V)}):(V.Highcharts&&V.Highcharts.error(16,!0),V.Highcharts=M(V))})("undefined"!==typeof window?window:this,function(V){function M(h,D,A,E){h.hasOwnProperty(D)||(h[D]=E.apply(null,A))}var h={};M(h,"Core/Globals.js",[],function(){var h="undefined"!==typeof V?V:"undefined"!==typeof window?window:
9
- {},D;(function(e){e.SVG_NS="http://www.w3.org/2000/svg";e.product="Highcharts";e.version="9.3.1";e.win=h;e.doc=e.win.document;e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect;e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"";e.isChrome=-1!==e.userAgent.indexOf("Chrome");e.isFirefox=-1!==e.userAgent.indexOf("Firefox");e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera;e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari");e.isTouchDevice=
10
- /(Mobile|Android|Windows Phone)/.test(e.userAgent);e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit");e.deg2rad=2*Math.PI/360;e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10);e.hasTouch=!!e.win.TouchEvent;e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];e.noop=function(){};e.supportsPassiveEvents=function(){var h=!1;if(!e.isMS){var D=Object.defineProperty({},"passive",{get:function(){h=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",
11
- e.noop,D),e.win.removeEventListener("testPassive",e.noop,D))}return h}();e.charts=[];e.dateFormats={};e.seriesTypes={};e.symbolSizes={};e.chartCount=0})(D||(D={}));"";return D});M(h,"Core/Utilities.js",[h["Core/Globals.js"]],function(e){function h(b,r,g,m){var n=r?"Highcharts error":"Highcharts warning";32===b&&(b=n+": Deprecated member");var N=l(b),G=N?n+" #"+b+": www.highcharts.com/errors/"+b+"/":b.toString();if("undefined"!==typeof m){var P="";N&&(G+="?");K(m,function(b,m){P+="\n - "+m+": "+b;
12
- N&&(G+=encodeURI(m)+"="+encodeURI(b))});G+=P}y(e,"displayError",{chart:g,code:b,message:G,params:m},function(){if(r)throw Error(G);c.console&&-1===h.messages.indexOf(G)&&console.warn(G)});h.messages.push(G)}function A(b,r){var c={};K(b,function(m,g){if(I(b[g],!0)&&!b.nodeType&&r[g])m=A(b[g],r[g]),Object.keys(m).length&&(c[g]=m);else if(I(b[g])||b[g]!==r[g])c[g]=b[g]});return c}function E(b,r){return parseInt(b,r||10)}function v(b){return"string"===typeof b}function H(b){b=Object.prototype.toString.call(b);
13
- return"[object Array]"===b||"[object Array Iterator]"===b}function I(b,r){return!!b&&"object"===typeof b&&(!r||!H(b))}function z(b){return I(b)&&"number"===typeof b.nodeType}function q(b){var r=b&&b.constructor;return!(!I(b,!0)||z(b)||!r||!r.name||"Object"===r.name)}function l(b){return"number"===typeof b&&!isNaN(b)&&Infinity>b&&-Infinity<b}function f(b){return"undefined"!==typeof b&&null!==b}function d(b,r,c){var m;v(r)?f(c)?b.setAttribute(r,c):b&&b.getAttribute&&((m=b.getAttribute(r))||"class"!==
14
- r||(m=b.getAttribute(r+"Name"))):K(r,function(m,r){f(m)?b.setAttribute(r,m):b.removeAttribute(r)});return m}function a(b,r){var c;b||(b={});for(c in r)b[c]=r[c];return b}function p(){for(var b=arguments,r=b.length,c=0;c<r;c++){var m=b[c];if("undefined"!==typeof m&&null!==m)return m}}function k(b,r){e.isMS&&!e.svg&&r&&"undefined"!==typeof r.opacity&&(r.filter="alpha(opacity="+100*r.opacity+")");a(b.style,r)}function F(b,r,c,m,g){b=x.createElement(b);r&&a(b,r);g&&k(b,{padding:"0",border:"none",margin:"0"});
15
- c&&k(b,c);m&&m.appendChild(b);return b}function B(b,r){return 1E14<b?b:parseFloat(b.toPrecision(r||14))}function J(b,r,g){var m=e.getStyle||J;if("width"===r)return r=Math.min(b.offsetWidth,b.scrollWidth),g=b.getBoundingClientRect&&b.getBoundingClientRect().width,g<r&&g>=r-1&&(r=Math.floor(g)),Math.max(0,r-(m(b,"padding-left",!0)||0)-(m(b,"padding-right",!0)||0));if("height"===r)return Math.max(0,Math.min(b.offsetHeight,b.scrollHeight)-(m(b,"padding-top",!0)||0)-(m(b,"padding-bottom",!0)||0));c.getComputedStyle||
16
- h(27,!0);if(b=c.getComputedStyle(b,void 0)){var n=b.getPropertyValue(r);p(g,"opacity"!==r)&&(n=E(n))}return n}function K(b,r,c){for(var m in b)Object.hasOwnProperty.call(b,m)&&r.call(c||b[m],b[m],m,b)}function L(b,r,c){function m(m,r){var P=b.removeEventListener||e.removeEventListenerPolyfill;P&&P.call(b,m,r,!1)}function g(P){var c;if(b.nodeName){if(r){var g={};g[r]=!0}else g=P;K(g,function(b,r){if(P[r])for(c=P[r].length;c--;)m(r,P[r][c].fn)})}}var n="function"===typeof b&&b.prototype||b;if(Object.hasOwnProperty.call(n,
17
- "hcEvents")){var G=n.hcEvents;r?(n=G[r]||[],c?(G[r]=n.filter(function(b){return c!==b.fn}),m(r,c)):(g(G),G[r]=[])):(g(G),delete n.hcEvents)}}function y(b,r,c,m){c=c||{};if(x.createEvent&&(b.dispatchEvent||b.fireEvent&&b!==e)){var g=x.createEvent("Events");g.initEvent(r,!0,!0);c=a(g,c);b.dispatchEvent?b.dispatchEvent(c):b.fireEvent(r,c)}else if(b.hcEvents){c.target||a(c,{preventDefault:function(){c.defaultPrevented=!0},target:b,type:r});g=[];for(var n=b,u=!1;n.hcEvents;)Object.hasOwnProperty.call(n,
18
- "hcEvents")&&n.hcEvents[r]&&(g.length&&(u=!0),g.unshift.apply(g,n.hcEvents[r])),n=Object.getPrototypeOf(n);u&&g.sort(function(b,c){return b.order-c.order});g.forEach(function(r){!1===r.fn.call(b,c)&&c.preventDefault()})}m&&!c.defaultPrevented&&m.call(b,c)}var C=e.charts,x=e.doc,c=e.win;(h||(h={})).messages=[];var t;Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};var g=Array.prototype.find?function(b,c){return b.find(c)}:function(b,c){var r,m=b.length;for(r=0;r<m;r++)if(c(b[r],r))return b[r]};
19
- K({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(b,c){e[c]=function(r){var m;h(32,!1,void 0,(m={},m["Highcharts."+c]="use Array."+b,m));return Array.prototype[b].apply(r,[].slice.call(arguments,1))}});var u,n=function(){var b=Math.random().toString(36).substring(2,9)+"-",c=0;return function(){return"highcharts-"+(u?"":b)+c++}}();c.jQuery&&(c.jQuery.fn.highcharts=function(){var b=[].slice.call(arguments);if(this[0])return b[0]?(new (e[v(b[0])?b.shift():"Chart"])(this[0],
20
- b[0],b[1]),this):C[d(this[0],"data-highcharts-chart")]});g={addEvent:function(b,c,g,m){void 0===m&&(m={});var r="function"===typeof b&&b.prototype||b;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});r=r.hcEvents;e.Point&&b instanceof e.Point&&b.series&&b.series.chart&&(b.series.chart.runTrackerClick=!0);var n=b.addEventListener||e.addEventListenerPolyfill;n&&n.call(b,c,g,e.supportsPassiveEvents?{passive:void 0===m.passive?-1!==c.indexOf("touch"):m.passive,capture:!1}:!1);r[c]||(r[c]=[]);
21
- r[c].push({fn:g,order:"number"===typeof m.order?m.order:Infinity});r[c].sort(function(b,c){return b.order-c.order});return function(){L(b,c,g)}},arrayMax:function(b){for(var c=b.length,g=b[0];c--;)b[c]>g&&(g=b[c]);return g},arrayMin:function(b){for(var c=b.length,g=b[0];c--;)b[c]<g&&(g=b[c]);return g},attr:d,clamp:function(b,c,g){return b>c?b<g?b:g:c},cleanRecursively:A,clearTimeout:function(b){f(b)&&clearTimeout(b)},correctFloat:B,createElement:F,css:k,defined:f,destroyObjectProperties:function(b,
22
- c){K(b,function(g,m){g&&g!==c&&g.destroy&&g.destroy();delete b[m]})},discardElement:function(b){t||(t=F("div"));b&&t.appendChild(b);t.innerHTML=""},erase:function(b,c){for(var g=b.length;g--;)if(b[g]===c){b.splice(g,1);break}},error:h,extend:a,extendClass:function(b,c){var g=function(){};g.prototype=new b;a(g.prototype,c);return g},find:g,fireEvent:y,getMagnitude:function(b){return Math.pow(10,Math.floor(Math.log(b)/Math.LN10))},getNestedProperty:function(b,g){for(b=b.split(".");b.length&&f(g);){var r=
23
- b.shift();if("undefined"===typeof r||"__proto__"===r)return;g=g[r];if(!f(g)||"function"===typeof g||"number"===typeof g.nodeType||g===c)return}return g},getStyle:J,inArray:function(b,c,g){h(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c.indexOf(b,g)},isArray:H,isClass:q,isDOMElement:z,isFunction:function(b){return"function"===typeof b},isNumber:l,isObject:I,isString:v,keys:function(b){h(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(b)},merge:function(){var b,
24
- c=arguments,g={},m=function(b,c){"object"!==typeof b&&(b={});K(c,function(g,r){"__proto__"!==r&&"constructor"!==r&&(!I(g,!0)||q(g)||z(g)?b[r]=c[r]:b[r]=m(b[r]||{},g))});return b};!0===c[0]&&(g=c[1],c=Array.prototype.slice.call(c,2));var n=c.length;for(b=0;b<n;b++)g=m(g,c[b]);return g},normalizeTickInterval:function(b,c,g,m,n){var r=b;g=p(g,1);var u=b/g;c||(c=n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===m&&(1===g?c=c.filter(function(b){return 0===b%1}):.1>=g&&(c=[1/g])));for(m=0;m<c.length&&
25
- !(r=c[m],n&&r*g>=b||!n&&u<=(c[m]+(c[m+1]||c[m]))/2);m++);return r=B(r*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:K,offset:function(b){var g=x.documentElement;b=b.parentElement||b.parentNode?b.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b.top+(c.pageYOffset||g.scrollTop)-(g.clientTop||0),left:b.left+(c.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:b.width,height:b.height}},pad:function(b,c,g){return Array((c||2)+1-String(b).replace("-","").length).join(g||"0")+
26
- b},pick:p,pInt:E,relativeLength:function(b,c,g){return/%$/.test(b)?c*parseFloat(b)/100+(g||0):parseFloat(b)},removeEvent:L,splat:function(b){return H(b)?b:[b]},stableSort:function(b,c){var g=b.length,m,n;for(n=0;n<g;n++)b[n].safeI=n;b.sort(function(b,g){m=c(b,g);return 0===m?b.safeI-g.safeI:m});for(n=0;n<g;n++)delete b[n].safeI},syncTimeout:function(b,c,g){if(0<c)return setTimeout(b,c,g);b.call(0,g);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,
27
- year:314496E5},uniqueKey:n,useSerialIds:function(b){return u=p(b,u)},wrap:function(b,c,g){var m=b[c];b[c]=function(){var b=Array.prototype.slice.call(arguments),c=arguments,n=this;n.proceed=function(){m.apply(n,arguments.length?arguments:c)};b.unshift(m);b=g.apply(this,b);n.proceed=null;return b}}};"";return g});M(h,"Core/Chart/ChartDefaults.js",[],function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,
28
- 10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});M(h,"Core/Color/Color.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(e,h){var D=h.isNumber,E=h.merge,v=h.pInt;h=function(){function h(D){this.rgba=[NaN,NaN,NaN,NaN];this.input=D;var z=e.Color;if(z&&z!==h)return new z(D);if(!(this instanceof h))return new h(D);this.init(D)}h.parse=function(e){return e?
29
- new h(e):h.None};h.prototype.init=function(e){var z;if("object"===typeof e&&"undefined"!==typeof e.stops)this.stops=e.stops.map(function(d){return new h(d[1])});else if("string"===typeof e){this.input=e=h.names[e.toLowerCase()]||e;if("#"===e.charAt(0)){var q=e.length;var l=parseInt(e.substr(1),16);7===q?z=[(l&16711680)>>16,(l&65280)>>8,l&255,1]:4===q&&(z=[(l&3840)>>4|(l&3840)>>8,(l&240)>>4|l&240,(l&15)<<4|l&15,1])}if(!z)for(l=h.parsers.length;l--&&!z;){var f=h.parsers[l];(q=f.regex.exec(e))&&(z=f.parse(q))}}z&&
30
- (this.rgba=z)};h.prototype.get=function(e){var z=this.input,q=this.rgba;if("object"===typeof z&&"undefined"!==typeof this.stops){var l=E(z);l.stops=[].slice.call(l.stops);this.stops.forEach(function(f,d){l.stops[d]=[l.stops[d][0],f.get(e)]});return l}return q&&D(q[0])?"rgb"===e||!e&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===e?""+q[3]:"rgba("+q.join(",")+")":z};h.prototype.brighten=function(e){var z=this.rgba;if(this.stops)this.stops.forEach(function(l){l.brighten(e)});else if(D(e)&&0!==e)for(var q=
31
- 0;3>q;q++)z[q]+=v(255*e),0>z[q]&&(z[q]=0),255<z[q]&&(z[q]=255);return this};h.prototype.setOpacity=function(e){this.rgba[3]=e;return this};h.prototype.tweenTo=function(e,z){var q=this.rgba,l=e.rgba;if(!D(q[0])||!D(l[0]))return e.input||"none";e=1!==l[3]||1!==q[3];return(e?"rgba(":"rgb(")+Math.round(l[0]+(q[0]-l[0])*(1-z))+","+Math.round(l[1]+(q[1]-l[1])*(1-z))+","+Math.round(l[2]+(q[2]-l[2])*(1-z))+(e?","+(l[3]+(q[3]-l[3])*(1-z)):"")+")"};h.names={white:"#ffffff",black:"#000000"};h.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
32
- parse:function(e){return[v(e[1]),v(e[2]),v(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[v(e[1]),v(e[2]),v(e[3]),1]}}];h.None=new h("");return h}();"";return h});M(h,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});M(h,"Core/Time.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(e,h){var D=e.win,E=h.defined,v=
33
- h.error,H=h.extend,I=h.isObject,z=h.merge,q=h.objectEach,l=h.pad,f=h.pick,d=h.splat,a=h.timeUnits,p=e.isSafari&&D.Intl&&D.Intl.DateTimeFormat.prototype.formatRange,k=e.isSafari&&D.Intl&&!D.Intl.DateTimeFormat.prototype.formatRange;h=function(){function F(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=D.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}F.prototype.get=function(a,d){if(this.variableTimezone||this.timezoneOffset){var B=d.getTime(),f=B-this.getTimezoneOffset(d);
34
- d.setTime(f);a=d["getUTC"+a]();d.setTime(B);return a}return this.useUTC?d["getUTC"+a]():d["get"+a]()};F.prototype.set=function(a,d,f){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(d)%36E5)return d["setUTC"+a](f);var B=this.getTimezoneOffset(d);B=d.getTime()-B;d.setTime(B);d["setUTC"+a](f);a=this.getTimezoneOffset(d);B=d.getTime()+a;return d.setTime(B)}return this.useUTC||p&&"FullYear"===a?d["setUTC"+a](f):d["set"+a](f)};
35
- F.prototype.update=function(a){var d=f(a&&a.useUTC,!0);this.options=a=z(!0,this.options||{},a);this.Date=a.Date||D.Date||Date;this.timezoneOffset=(this.useUTC=d)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=d&&!(!a.getTimezoneOffset&&!a.timezone)};F.prototype.makeTime=function(a,d,p,F,y,C){if(this.useUTC){var x=this.Date.UTC.apply(0,arguments);var c=this.getTimezoneOffset(x);x+=c;var t=this.getTimezoneOffset(x);c!==t?x+=t-c:c-36E5!==this.getTimezoneOffset(x-
36
- 36E5)||k||(x-=36E5)}else x=(new this.Date(a,d,f(p,1),f(F,0),f(y,0),f(C,0))).getTime();return x};F.prototype.timezoneOffsetFunction=function(){var a=this,d=this.options,f=d.moment||D.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(d.timezone){if(f)return function(a){return 6E4*-f.tz(a,d.timezone).utcOffset()};v(25)}return this.useUTC&&d.getTimezoneOffset?function(a){return 6E4*d.getTimezoneOffset(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||
37
- 0)}};F.prototype.dateFormat=function(a,d,p){if(!E(d)||isNaN(d))return e.defaultOptions.lang&&e.defaultOptions.lang.invalidDate||"";a=f(a,"%Y-%m-%d %H:%M:%S");var B=this,y=new this.Date(d),C=this.get("Hours",y),x=this.get("Day",y),c=this.get("Date",y),t=this.get("Month",y),g=this.get("FullYear",y),u=e.defaultOptions.lang,n=u&&u.weekdays,b=u&&u.shortWeekdays;y=H({a:b?b[x]:n[x].substr(0,3),A:n[x],d:l(c),e:l(c,2," "),w:x,b:u.shortMonths[t],B:u.months[t],m:l(t+1),o:t+1,y:g.toString().substr(2,2),Y:g,H:l(C),
38
- k:C,I:l(C%12||12),l:C%12||12,M:l(this.get("Minutes",y)),p:12>C?"AM":"PM",P:12>C?"am":"pm",S:l(y.getSeconds()),L:l(Math.floor(d%1E3),3)},e.dateFormats);q(y,function(b,c){for(;-1!==a.indexOf("%"+c);)a=a.replace("%"+c,"function"===typeof b?b.call(B,d):b)});return p?a.substr(0,1).toUpperCase()+a.substr(1):a};F.prototype.resolveDTLFormat=function(a){return I(a,!0)?a:(a=d(a),{main:a[0],from:a[1],to:a[2]})};F.prototype.getTimeTicks=function(d,p,k,F){var y=this,C=[],x={},c=new y.Date(p),t=d.unitRange,g=d.count||
39
- 1,u;F=f(F,1);if(E(p)){y.set("Milliseconds",c,t>=a.second?0:g*Math.floor(y.get("Milliseconds",c)/g));t>=a.second&&y.set("Seconds",c,t>=a.minute?0:g*Math.floor(y.get("Seconds",c)/g));t>=a.minute&&y.set("Minutes",c,t>=a.hour?0:g*Math.floor(y.get("Minutes",c)/g));t>=a.hour&&y.set("Hours",c,t>=a.day?0:g*Math.floor(y.get("Hours",c)/g));t>=a.day&&y.set("Date",c,t>=a.month?1:Math.max(1,g*Math.floor(y.get("Date",c)/g)));if(t>=a.month){y.set("Month",c,t>=a.year?0:g*Math.floor(y.get("Month",c)/g));var n=y.get("FullYear",
40
- c)}t>=a.year&&y.set("FullYear",c,n-n%g);t===a.week&&(n=y.get("Day",c),y.set("Date",c,y.get("Date",c)-n+F+(n<F?-7:0)));n=y.get("FullYear",c);F=y.get("Month",c);var b=y.get("Date",c),r=y.get("Hours",c);p=c.getTime();!y.variableTimezone&&y.useUTC||!E(k)||(u=k-p>4*a.month||y.getTimezoneOffset(p)!==y.getTimezoneOffset(k));p=c.getTime();for(c=1;p<k;)C.push(p),p=t===a.year?y.makeTime(n+c*g,0):t===a.month?y.makeTime(n,F+c*g):!u||t!==a.day&&t!==a.week?u&&t===a.hour&&1<g?y.makeTime(n,F,b,r+c*g):p+t*g:y.makeTime(n,
41
- F,b+c*g*(t===a.day?1:7)),c++;C.push(p);t<=a.hour&&1E4>C.length&&C.forEach(function(b){0===b%18E5&&"000000000"===y.dateFormat("%H%M%S%L",b)&&(x[b]="day")})}C.info=H(d,{higherRanks:x,totalRange:t*g});return C};F.prototype.getDateFormat=function(d,p,f,k){var y=this.dateFormat("%m-%d %H:%M:%S.%L",p),C={millisecond:15,second:12,minute:9,hour:6,day:3},x="millisecond";for(c in a){if(d===a.week&&+this.dateFormat("%w",p)===f&&"00:00:00.000"===y.substr(6)){var c="week";break}if(a[c]>d){c=x;break}if(C[c]&&y.substr(C[c])!==
42
- "01-01 00:00:00.000".substr(C[c]))break;"week"!==c&&(x=c)}if(c)var t=this.resolveDTLFormat(k[c]).main;return t};return F}();"";return h});M(h,"Core/DefaultOptions.js",[h["Core/Chart/ChartDefaults.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Color/Palettes.js"],h["Core/Time.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H){h=h.parse;var D=H.merge,z={colors:E.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:e,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
8
+ 'use strict';(function(V,N){"object"===typeof module&&module.exports?(N["default"]=N,module.exports=V.document?N(V):N):"function"===typeof define&&define.amd?define("highcharts/highstock",function(){return N(V)}):(V.Highcharts&&V.Highcharts.error(16,!0),V.Highcharts=N(V))})("undefined"!==typeof window?window:this,function(V){function N(h,E,A,F){h.hasOwnProperty(E)||(h[E]=F.apply(null,A))}var h={};N(h,"Core/Globals.js",[],function(){var h="undefined"!==typeof V?V:"undefined"!==typeof window?window:
9
+ {},E;(function(d){d.SVG_NS="http://www.w3.org/2000/svg";d.product="Highcharts";d.version="9.3.2";d.win=h;d.doc=d.win.document;d.svg=d.doc&&d.doc.createElementNS&&!!d.doc.createElementNS(d.SVG_NS,"svg").createSVGRect;d.userAgent=d.win.navigator&&d.win.navigator.userAgent||"";d.isChrome=-1!==d.userAgent.indexOf("Chrome");d.isFirefox=-1!==d.userAgent.indexOf("Firefox");d.isMS=/(edge|msie|trident)/i.test(d.userAgent)&&!d.win.opera;d.isSafari=!d.isChrome&&-1!==d.userAgent.indexOf("Safari");d.isTouchDevice=
10
+ /(Mobile|Android|Windows Phone)/.test(d.userAgent);d.isWebKit=-1!==d.userAgent.indexOf("AppleWebKit");d.deg2rad=2*Math.PI/360;d.hasBidiBug=d.isFirefox&&4>parseInt(d.userAgent.split("Firefox/")[1],10);d.hasTouch=!!d.win.TouchEvent;d.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];d.noop=function(){};d.supportsPassiveEvents=function(){var h=!1;if(!d.isMS){var E=Object.defineProperty({},"passive",{get:function(){h=!0}});d.win.addEventListener&&d.win.removeEventListener&&(d.win.addEventListener("testPassive",
11
+ d.noop,E),d.win.removeEventListener("testPassive",d.noop,E))}return h}();d.charts=[];d.dateFormats={};d.seriesTypes={};d.symbolSizes={};d.chartCount=0})(E||(E={}));"";return E});N(h,"Core/Utilities.js",[h["Core/Globals.js"]],function(d){function h(e,g,b,k){var l=g?"Highcharts error":"Highcharts warning";32===e&&(e=l+": Deprecated member");var r=p(e),B=r?l+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if("undefined"!==typeof k){var M="";r&&(B+="?");I(k,function(b,e){M+="\n - "+e+": "+b;
12
+ r&&(B+=encodeURI(e)+"="+encodeURI(b))});B+=M}K(d,"displayError",{chart:b,code:e,message:B,params:k},function(){if(g)throw Error(B);u.console&&-1===h.messages.indexOf(B)&&console.warn(B)});h.messages.push(B)}function A(e,g){var b={};I(e,function(k,l){if(H(e[l],!0)&&!e.nodeType&&g[l])k=A(e[l],g[l]),Object.keys(k).length&&(b[l]=k);else if(H(e[l])||e[l]!==g[l])b[l]=e[l]});return b}function F(e,g){return parseInt(e,g||10)}function t(e){return"string"===typeof e}function G(e){e=Object.prototype.toString.call(e);
13
+ return"[object Array]"===e||"[object Array Iterator]"===e}function H(e,g){return!!e&&"object"===typeof e&&(!g||!G(e))}function y(e){return H(e)&&"number"===typeof e.nodeType}function q(e){var g=e&&e.constructor;return!(!H(e,!0)||y(e)||!g||!g.name||"Object"===g.name)}function p(e){return"number"===typeof e&&!isNaN(e)&&Infinity>e&&-Infinity<e}function f(e){return"undefined"!==typeof e&&null!==e}function c(e,g,b){var l;t(g)?f(b)?e.setAttribute(g,b):e&&e.getAttribute&&((l=e.getAttribute(g))||"class"!==
14
+ g||(l=e.getAttribute(g+"Name"))):I(g,function(b,g){f(b)?e.setAttribute(g,b):e.removeAttribute(g)});return l}function a(e,g){var b;e||(e={});for(b in g)e[b]=g[b];return e}function n(){for(var e=arguments,g=e.length,b=0;b<g;b++){var l=e[b];if("undefined"!==typeof l&&null!==l)return l}}function m(e,g){d.isMS&&!d.svg&&g&&"undefined"!==typeof g.opacity&&(g.filter="alpha(opacity="+100*g.opacity+")");a(e.style,g)}function D(e,g){return 1E14<e?e:parseFloat(e.toPrecision(g||14))}function C(e,g,b){var l=d.getStyle||
15
+ C;if("width"===g)return g=Math.min(e.offsetWidth,e.scrollWidth),b=e.getBoundingClientRect&&e.getBoundingClientRect().width,b<g&&b>=g-1&&(g=Math.floor(b)),Math.max(0,g-(l(e,"padding-left",!0)||0)-(l(e,"padding-right",!0)||0));if("height"===g)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(l(e,"padding-top",!0)||0)-(l(e,"padding-bottom",!0)||0));u.getComputedStyle||h(27,!0);if(e=u.getComputedStyle(e,void 0)){var k=e.getPropertyValue(g);n(b,"opacity"!==g)&&(k=F(k))}return k}function I(e,g,
16
+ b){for(var l in e)Object.hasOwnProperty.call(e,l)&&g.call(b||e[l],e[l],l,e)}function L(e,g,b){function l(b,g){var l=e.removeEventListener||d.removeEventListenerPolyfill;l&&l.call(e,b,g,!1)}function k(b){var k;if(e.nodeName){if(g){var P={};P[g]=!0}else P=b;I(P,function(e,g){if(b[g])for(k=b[g].length;k--;)l(g,b[g][k].fn)})}}var r="function"===typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(r,"hcEvents")){var x=r.hcEvents;g?(r=x[g]||[],b?(x[g]=r.filter(function(e){return b!==e.fn}),l(g,b)):(k(x),
17
+ x[g]=[])):(k(x),delete r.hcEvents)}}function K(e,g,b,l){b=b||{};if(z.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==d)){var k=z.createEvent("Events");k.initEvent(g,!0,!0);b=a(k,b);e.dispatchEvent?e.dispatchEvent(b):e.fireEvent(g,b)}else if(e.hcEvents){b.target||a(b,{preventDefault:function(){b.defaultPrevented=!0},target:e,type:g});k=[];for(var r=e,B=!1;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[g]&&(k.length&&(B=!0),k.unshift.apply(k,r.hcEvents[g])),r=Object.getPrototypeOf(r);
18
+ B&&k.sort(function(b,e){return b.order-e.order});k.forEach(function(g){!1===g.fn.call(e,b)&&b.preventDefault()})}l&&!b.defaultPrevented&&l.call(e,b)}var v=d.charts,z=d.doc,u=d.win;(h||(h={})).messages=[];Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var k=Array.prototype.find?function(e,g){return e.find(g)}:function(e,g){var b,l=e.length;for(b=0;b<l;b++)if(g(e[b],b))return e[b]};I({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,g){d[g]=function(b){var l;
19
+ h(32,!1,void 0,(l={},l["Highcharts."+g]="use Array."+e,l));return Array.prototype[e].apply(b,[].slice.call(arguments,1))}});var w,l=function(){var e=Math.random().toString(36).substring(2,9)+"-",g=0;return function(){return"highcharts-"+(w?"":e)+g++}}();u.jQuery&&(u.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new (d[t(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):v[c(this[0],"data-highcharts-chart")]});k={addEvent:function(e,g,b,l){void 0===l&&(l={});
20
+ var k="function"===typeof e&&e.prototype||e;Object.hasOwnProperty.call(k,"hcEvents")||(k.hcEvents={});k=k.hcEvents;d.Point&&e instanceof d.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var r=e.addEventListener||d.addEventListenerPolyfill;r&&r.call(e,g,b,d.supportsPassiveEvents?{passive:void 0===l.passive?-1!==g.indexOf("touch"):l.passive,capture:!1}:!1);k[g]||(k[g]=[]);k[g].push({fn:b,order:"number"===typeof l.order?l.order:Infinity});k[g].sort(function(b,e){return b.order-
21
+ e.order});return function(){L(e,g,b)}},arrayMax:function(e){for(var g=e.length,b=e[0];g--;)e[g]>b&&(b=e[g]);return b},arrayMin:function(e){for(var g=e.length,b=e[0];g--;)e[g]<b&&(b=e[g]);return b},attr:c,clamp:function(e,g,b){return e>g?e<b?e:b:g},cleanRecursively:A,clearTimeout:function(e){f(e)&&clearTimeout(e)},correctFloat:D,createElement:function(e,g,b,l,k){e=z.createElement(e);g&&a(e,g);k&&m(e,{padding:"0",border:"none",margin:"0"});b&&m(e,b);l&&l.appendChild(e);return e},css:m,defined:f,destroyObjectProperties:function(e,
22
+ g){I(e,function(b,l){b&&b!==g&&b.destroy&&b.destroy();delete e[l]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,g){for(var b=e.length;b--;)if(e[b]===g){e.splice(b,1);break}},error:h,extend:a,extendClass:function(e,g){var b=function(){};b.prototype=new e;a(b.prototype,g);return b},find:k,fireEvent:K,getMagnitude:function(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))},getNestedProperty:function(e,g){for(e=e.split(".");e.length&&f(g);){var b=
23
+ e.shift();if("undefined"===typeof b||"__proto__"===b)return;g=g[b];if(!f(g)||"function"===typeof g||"number"===typeof g.nodeType||g===u)return}return g},getStyle:C,inArray:function(e,g,b){h(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return g.indexOf(e,b)},isArray:G,isClass:q,isDOMElement:y,isFunction:function(e){return"function"===typeof e},isNumber:p,isObject:H,isString:t,keys:function(e){h(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(e)},merge:function(){var e,
24
+ g=arguments,b={},l=function(b,e){"object"!==typeof b&&(b={});I(e,function(g,k){"__proto__"!==k&&"constructor"!==k&&(!H(g,!0)||q(g)||y(g)?b[k]=e[k]:b[k]=l(b[k]||{},g))});return b};!0===g[0]&&(b=g[1],g=Array.prototype.slice.call(g,2));var k=g.length;for(e=0;e<k;e++)b=l(b,g[e]);return b},normalizeTickInterval:function(e,g,b,l,k){var r=e;b=n(b,1);var B=e/b;g||(g=k?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===l&&(1===b?g=g.filter(function(b){return 0===b%1}):.1>=b&&(g=[1/b])));for(l=0;l<g.length&&
25
+ !(r=g[l],k&&r*b>=e||!k&&B<=(g[l]+(g[l+1]||g[l]))/2);l++);return r=D(r*b,-Math.round(Math.log(.001)/Math.LN10))},objectEach:I,offset:function(e){var g=z.documentElement;e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(u.pageYOffset||g.scrollTop)-(g.clientTop||0),left:e.left+(u.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:e.width,height:e.height}},pad:function(e,g,b){return Array((g||2)+1-String(e).replace("-","").length).join(b||"0")+
26
+ e},pick:n,pInt:F,relativeLength:function(e,g,b){return/%$/.test(e)?g*parseFloat(e)/100+(b||0):parseFloat(e)},removeEvent:L,splat:function(e){return G(e)?e:[e]},stableSort:function(e,g){var b=e.length,l,k;for(k=0;k<b;k++)e[k].safeI=k;e.sort(function(b,e){l=g(b,e);return 0===l?b.safeI-e.safeI:l});for(k=0;k<b;k++)delete e[k].safeI},syncTimeout:function(e,g,b){if(0<g)return setTimeout(e,g,b);e.call(0,b);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,
27
+ year:314496E5},uniqueKey:l,useSerialIds:function(e){return w=n(e,w)},wrap:function(e,g,b){var l=e[g];e[g]=function(){var e=Array.prototype.slice.call(arguments),g=arguments,k=this;k.proceed=function(){l.apply(k,arguments.length?arguments:g)};e.unshift(l);e=b.apply(this,e);k.proceed=null;return e}}};"";return k});N(h,"Core/Chart/ChartDefaults.js",[],function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,
28
+ 10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});N(h,"Core/Color/Color.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var E=h.isNumber,F=h.merge,t=h.pInt;h=function(){function h(E){this.rgba=[NaN,NaN,NaN,NaN];this.input=E;var y=d.Color;if(y&&y!==h)return new y(E);if(!(this instanceof h))return new h(E);this.init(E)}h.parse=function(d){return d?
29
+ new h(d):h.None};h.prototype.init=function(d){var y;if("object"===typeof d&&"undefined"!==typeof d.stops)this.stops=d.stops.map(function(c){return new h(c[1])});else if("string"===typeof d){this.input=d=h.names[d.toLowerCase()]||d;if("#"===d.charAt(0)){var q=d.length;var p=parseInt(d.substr(1),16);7===q?y=[(p&16711680)>>16,(p&65280)>>8,p&255,1]:4===q&&(y=[(p&3840)>>4|(p&3840)>>8,(p&240)>>4|p&240,(p&15)<<4|p&15,1])}if(!y)for(p=h.parsers.length;p--&&!y;){var f=h.parsers[p];(q=f.regex.exec(d))&&(y=f.parse(q))}}y&&
30
+ (this.rgba=y)};h.prototype.get=function(d){var y=this.input,q=this.rgba;if("object"===typeof y&&"undefined"!==typeof this.stops){var p=F(y);p.stops=[].slice.call(p.stops);this.stops.forEach(function(f,c){p.stops[c]=[p.stops[c][0],f.get(d)]});return p}return q&&E(q[0])?"rgb"===d||!d&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===d?""+q[3]:"rgba("+q.join(",")+")":y};h.prototype.brighten=function(d){var y=this.rgba;if(this.stops)this.stops.forEach(function(p){p.brighten(d)});else if(E(d)&&0!==d)for(var q=
31
+ 0;3>q;q++)y[q]+=t(255*d),0>y[q]&&(y[q]=0),255<y[q]&&(y[q]=255);return this};h.prototype.setOpacity=function(d){this.rgba[3]=d;return this};h.prototype.tweenTo=function(d,y){var q=this.rgba,p=d.rgba;if(!E(q[0])||!E(p[0]))return d.input||"none";d=1!==p[3]||1!==q[3];return(d?"rgba(":"rgb(")+Math.round(p[0]+(q[0]-p[0])*(1-y))+","+Math.round(p[1]+(q[1]-p[1])*(1-y))+","+Math.round(p[2]+(q[2]-p[2])*(1-y))+(d?","+(p[3]+(q[3]-p[3])*(1-y)):"")+")"};h.names={white:"#ffffff",black:"#000000"};h.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
32
+ parse:function(d){return[t(d[1]),t(d[2]),t(d[3]),parseFloat(d[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(d){return[t(d[1]),t(d[2]),t(d[3]),1]}}];h.None=new h("");return h}();"";return h});N(h,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});N(h,"Core/Time.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var E=d.win,F=h.defined,t=
33
+ h.error,G=h.extend,H=h.isObject,y=h.merge,q=h.objectEach,p=h.pad,f=h.pick,c=h.splat,a=h.timeUnits,n=d.isSafari&&E.Intl&&E.Intl.DateTimeFormat.prototype.formatRange,m=d.isSafari&&E.Intl&&!E.Intl.DateTimeFormat.prototype.formatRange;h=function(){function D(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=E.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}D.prototype.get=function(a,c){if(this.variableTimezone||this.timezoneOffset){var C=c.getTime(),f=C-this.getTimezoneOffset(c);
34
+ c.setTime(f);a=c["getUTC"+a]();c.setTime(C);return a}return this.useUTC?c["getUTC"+a]():c["get"+a]()};D.prototype.set=function(a,c,f){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(c)%36E5)return c["setUTC"+a](f);var C=this.getTimezoneOffset(c);C=c.getTime()-C;c.setTime(C);c["setUTC"+a](f);a=this.getTimezoneOffset(c);C=c.getTime()+a;return c.setTime(C)}return this.useUTC||n&&"FullYear"===a?c["setUTC"+a](f):c["set"+a](f)};
35
+ D.prototype.update=function(a){var c=f(a&&a.useUTC,!0);this.options=a=y(!0,this.options||{},a);this.Date=a.Date||E.Date||Date;this.timezoneOffset=(this.useUTC=c)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=c&&!(!a.getTimezoneOffset&&!a.timezone)};D.prototype.makeTime=function(a,c,n,D,v,z){if(this.useUTC){var u=this.Date.UTC.apply(0,arguments);var k=this.getTimezoneOffset(u);u+=k;var w=this.getTimezoneOffset(u);k!==w?u+=w-k:k-36E5!==this.getTimezoneOffset(u-
36
+ 36E5)||m||(u-=36E5)}else u=(new this.Date(a,c,f(n,1),f(D,0),f(v,0),f(z,0))).getTime();return u};D.prototype.timezoneOffsetFunction=function(){var a=this,c=this.options,f=c.getTimezoneOffset,n=c.moment||E.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(c.timezone){if(n)return function(a){return 6E4*-n.tz(a,c.timezone).utcOffset()};t(25)}return this.useUTC&&f?function(a){return 6E4*f(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||0)}};D.prototype.dateFormat=
37
+ function(a,c,n){if(!F(c)||isNaN(c))return d.defaultOptions.lang&&d.defaultOptions.lang.invalidDate||"";a=f(a,"%Y-%m-%d %H:%M:%S");var C=this,v=new this.Date(c),z=this.get("Hours",v),u=this.get("Day",v),k=this.get("Date",v),w=this.get("Month",v),l=this.get("FullYear",v),e=d.defaultOptions.lang,g=e&&e.weekdays,b=e&&e.shortWeekdays;v=G({a:b?b[u]:g[u].substr(0,3),A:g[u],d:p(k),e:p(k,2," "),w:u,b:e.shortMonths[w],B:e.months[w],m:p(w+1),o:w+1,y:l.toString().substr(2,2),Y:l,H:p(z),k:z,I:p(z%12||12),l:z%
38
+ 12||12,M:p(this.get("Minutes",v)),p:12>z?"AM":"PM",P:12>z?"am":"pm",S:p(v.getSeconds()),L:p(Math.floor(c%1E3),3)},d.dateFormats);q(v,function(b,e){for(;-1!==a.indexOf("%"+e);)a=a.replace("%"+e,"function"===typeof b?b.call(C,c):b)});return n?a.substr(0,1).toUpperCase()+a.substr(1):a};D.prototype.resolveDTLFormat=function(a){return H(a,!0)?a:(a=c(a),{main:a[0],from:a[1],to:a[2]})};D.prototype.getTimeTicks=function(c,n,m,D){var v=this,z=[],u={},k=new v.Date(n),w=c.unitRange,l=c.count||1,e;D=f(D,1);if(F(n)){v.set("Milliseconds",
39
+ k,w>=a.second?0:l*Math.floor(v.get("Milliseconds",k)/l));w>=a.second&&v.set("Seconds",k,w>=a.minute?0:l*Math.floor(v.get("Seconds",k)/l));w>=a.minute&&v.set("Minutes",k,w>=a.hour?0:l*Math.floor(v.get("Minutes",k)/l));w>=a.hour&&v.set("Hours",k,w>=a.day?0:l*Math.floor(v.get("Hours",k)/l));w>=a.day&&v.set("Date",k,w>=a.month?1:Math.max(1,l*Math.floor(v.get("Date",k)/l)));if(w>=a.month){v.set("Month",k,w>=a.year?0:l*Math.floor(v.get("Month",k)/l));var g=v.get("FullYear",k)}w>=a.year&&v.set("FullYear",
40
+ k,g-g%l);w===a.week&&(g=v.get("Day",k),v.set("Date",k,v.get("Date",k)-g+D+(g<D?-7:0)));g=v.get("FullYear",k);D=v.get("Month",k);var b=v.get("Date",k),B=v.get("Hours",k);n=k.getTime();!v.variableTimezone&&v.useUTC||!F(m)||(e=m-n>4*a.month||v.getTimezoneOffset(n)!==v.getTimezoneOffset(m));n=k.getTime();for(k=1;n<m;)z.push(n),n=w===a.year?v.makeTime(g+k*l,0):w===a.month?v.makeTime(g,D+k*l):!e||w!==a.day&&w!==a.week?e&&w===a.hour&&1<l?v.makeTime(g,D,b,B+k*l):n+w*l:v.makeTime(g,D,b+k*l*(w===a.day?1:7)),
41
+ k++;z.push(n);w<=a.hour&&1E4>z.length&&z.forEach(function(b){0===b%18E5&&"000000000"===v.dateFormat("%H%M%S%L",b)&&(u[b]="day")})}z.info=G(c,{higherRanks:u,totalRange:w*l});return z};D.prototype.getDateFormat=function(c,n,f,m){var v=this.dateFormat("%m-%d %H:%M:%S.%L",n),z={millisecond:15,second:12,minute:9,hour:6,day:3},u="millisecond";for(k in a){if(c===a.week&&+this.dateFormat("%w",n)===f&&"00:00:00.000"===v.substr(6)){var k="week";break}if(a[k]>c){k=u;break}if(z[k]&&v.substr(z[k])!=="01-01 00:00:00.000".substr(z[k]))break;
42
+ "week"!==k&&(u=k)}if(k)var w=this.resolveDTLFormat(m[k]).main;return w};return D}();"";return h});N(h,"Core/DefaultOptions.js",[h["Core/Chart/ChartDefaults.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Color/Palettes.js"],h["Core/Time.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G){h=h.parse;var E=G.merge,y={colors:F.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:d,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:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},
45
45
  itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:A.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",
46
46
  minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:A.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:h("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,
47
- style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};z.chart.styledMode=!1;"";var q=new v(D(z.global,z.time));e={defaultOptions:z,defaultTime:q,getOptions:function(){return z},setOptions:function(l){D(!0,z,l);if(l.time||l.global)A.time?A.time.update(D(z.global,z.time,
48
- l.global,l.time)):A.time=q;return z}};"";return e});M(h,"Core/Animation/Fx.js",[h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(e,h,A){var D=e.parse,v=h.win,H=A.isNumber,I=A.objectEach;return function(){function e(q,l,f){this.pos=NaN;this.options=l;this.elem=q;this.prop=f}e.prototype.dSetter=function(){var q=this.paths,l=q&&q[0];q=q&&q[1];var f=this.now||0,d=[];if(1!==f&&l&&q)if(l.length===q.length&&1>f)for(var a=0;a<q.length;a++){for(var p=l[a],k=q[a],F=[],B=0;B<k.length;B++){var J=
49
- p[B],K=k[B];H(J)&&H(K)&&("A"!==k[0]||4!==B&&5!==B)?F[B]=J+f*(K-J):F[B]=K}d.push(F)}else d=q;else d=this.toD||[];this.elem.attr("d",d,void 0,!0)};e.prototype.update=function(){var q=this.elem,l=this.prop,f=this.now,d=this.options.step;if(this[l+"Setter"])this[l+"Setter"]();else q.attr?q.element&&q.attr(l,f,null,!0):q.style[l]=f+this.unit;d&&d.call(q,f,this)};e.prototype.run=function(q,l,f){var d=this,a=d.options,p=function(a){return p.stopped?!1:d.step(a)},k=v.requestAnimationFrame||function(a){setTimeout(a,
50
- 13)},F=function(){for(var a=0;a<e.timers.length;a++)e.timers[a]()||e.timers.splice(a--,1);e.timers.length&&k(F)};q!==l||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=q,this.end=l,this.unit=f,this.now=this.start,this.pos=0,p.elem=this.elem,p.prop=this.prop,p()&&1===e.timers.push(p)&&k(F)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))};e.prototype.step=function(q){var l=+new Date,f=this.options,d=this.elem,a=f.complete,
51
- p=f.duration,k=f.curAnim;if(d.attr&&!d.element)q=!1;else if(q||l>=p+this.startTime){this.now=this.end;this.pos=1;this.update();var F=k[this.prop]=!0;I(k,function(a){!0!==a&&(F=!1)});F&&a&&a.call(d);q=!1}else this.pos=f.easing((l-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0;return q};e.prototype.initPath=function(q,l,f){function d(a,d){for(;a.length<L;){var x=a[0],c=d[L-a.length];c&&"M"===x[0]&&(a[0]="C"===c[0]?["C",x[1],x[2],x[1],x[2],x[1],x[2]]:["L",x[1],
52
- x[2]]);a.unshift(x);F&&(x=a.pop(),a.push(a[a.length-1],x))}}function a(a,d){for(;a.length<L;)if(d=a[Math.floor(a.length/B)-1].slice(),"C"===d[0]&&(d[1]=d[5],d[2]=d[6]),F){var x=a[Math.floor(a.length/B)].slice();a.splice(a.length/2,0,d,x)}else a.push(d)}var p=q.startX,k=q.endX;f=f.slice();var F=q.isArea,B=F?2:1;l=l&&l.slice();if(!l)return[f,f];if(p&&k&&k.length){for(q=0;q<p.length;q++)if(p[q]===k[0]){var J=q;break}else if(p[0]===k[k.length-p.length+q]){J=q;var K=!0;break}else if(p[p.length-1]===k[k.length-
53
- p.length+q]){J=p.length-q;break}"undefined"===typeof J&&(l=[])}if(l.length&&H(J)){var L=f.length+J*B;K?(d(l,f),a(f,l)):(d(f,l),a(l,f))}return[l,f]};e.prototype.fillSetter=function(){e.prototype.strokeSetter.apply(this,arguments)};e.prototype.strokeSetter=function(){this.elem.attr(this.prop,D(this.start).tweenTo(D(this.end),this.pos),null,!0)};e.timers=[];return e}()});M(h,"Core/Animation/AnimationUtilities.js",[h["Core/Animation/Fx.js"],h["Core/Utilities.js"]],function(e,h){function D(a){return q(a)?
54
- l({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function E(a,d){for(var f=e.timers.length;f--;)e.timers[f].elem!==a||d&&d!==e.timers[f].prop||(e.timers[f].stopped=!0)}var v=h.defined,H=h.getStyle,I=h.isArray,z=h.isNumber,q=h.isObject,l=h.merge,f=h.objectEach,d=h.pick;return{animate:function(a,d,k){var p,B="",J,K;if(!q(k)){var L=arguments;k={duration:L[2],easing:L[3],complete:L[4]}}z(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?k.easing:Math[k.easing]||Math.easeInOutSine;
55
- k.curAnim=l(d);f(d,function(f,C){E(a,C);K=new e(a,k,C);J=void 0;"d"===C&&I(d.d)?(K.paths=K.initPath(a,a.pathArray,d.d),K.toD=d.d,p=0,J=1):a.attr?p=a.attr(C):(p=parseFloat(H(a,C))||0,"opacity"!==C&&(B="px"));J||(J=f);"string"===typeof J&&J.match("px")&&(J=J.replace(/px/g,""));K.run(p,J,B)})},animObject:D,getDeferredAnimation:function(a,d,f){var p=D(d),k=0,l=0;(f?[f]:a.series).forEach(function(a){a=D(a.options.animation);k=d&&v(d.defer)?p.defer:Math.max(k,a.duration+a.defer);l=Math.min(p.duration,a.duration)});
56
- a.renderer.forExport&&(k=0);return{defer:Math.max(0,k-l),duration:Math.min(k,l)}},setAnimation:function(a,f){f.renderer.globalAnimation=d(a,f.options.chart.animation,!0)},stop:E}});M(h,"Core/Renderer/HTML/AST.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(e,h){var D=e.SVG_NS,E=h.attr,v=h.createElement,H=h.discardElement,I=h.error,z=h.isString,q=h.objectEach,l=h.splat;try{var f=!!(new DOMParser).parseFromString("","text/html")}catch(d){f=!1}h=function(){function d(a){this.nodes="string"===
57
- typeof a?this.parseMarkup(a):a}d.filterUserAttributes=function(a){q(a,function(f,k){var p=!0;-1===d.allowedAttributes.indexOf(k)&&(p=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(k)&&(p=z(f)&&d.allowedReferences.some(function(a){return 0===f.indexOf(a)}));p||(I("Highcharts warning: Invalid attribute '"+k+"' in config"),delete a[k])});return a};d.setElementHTML=function(a,f){a.innerHTML="";f&&(new d(f)).addToDOM(a)};d.prototype.addToDOM=function(a){function f(a,p){var k;l(a).forEach(function(a){var B=
58
- a.tagName,l=a.textContent?e.doc.createTextNode(a.textContent):void 0;if(B)if("#text"===B)var y=l;else if(-1!==d.allowedTags.indexOf(B)){B=e.doc.createElementNS("svg"===B?D:p.namespaceURI||D,B);var C=a.attributes||{};q(a,function(a,c){"tagName"!==c&&"attributes"!==c&&"children"!==c&&"textContent"!==c&&(C[c]=a)});E(B,d.filterUserAttributes(C));l&&B.appendChild(l);f(a.children||[],B);y=B}else I("Highcharts warning: Invalid tagName '"+B+"' in config");y&&p.appendChild(y);k=y});return k}return f(this.nodes,
59
- a)};d.prototype.parseMarkup=function(a){var d=[];a=a.trim();if(f)a=(new DOMParser).parseFromString(a,"text/html");else{var k=v("div");k.innerHTML=a;a={body:k}}var l=function(a,d){var f=a.nodeName.toLowerCase(),p={tagName:f};"#text"===f&&(p.textContent=a.textContent||"");if(f=a.attributes){var k={};[].forEach.call(f,function(a){k[a.name]=a.value});p.attributes=k}if(a.childNodes.length){var C=[];[].forEach.call(a.childNodes,function(a){l(a,C)});C.length&&(p.children=C)}d.push(p)};[].forEach.call(a.body.childNodes,
60
- function(a){return l(a,d)});k&&H(k);return d};d.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
61
- d.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");d.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");return d}();"";return h});M(h,"Core/FormatUtilities.js",[h["Core/DefaultOptions.js"],
62
- h["Core/Utilities.js"]],function(e,h){function D(l,f,d,a){l=+l||0;f=+f;var p=E.lang,k=(l.toString().split(".")[1]||"").split("e")[0].length,F=l.toString().split("e"),B=f;if(-1===f)f=Math.min(k,20);else if(!I(f))f=2;else if(f&&F[1]&&0>F[1]){var J=f+ +F[1];0<=J?(F[0]=(+F[0]).toExponential(J).split("e")[0],f=J):(F[0]=F[0].split(".")[0]||0,l=20>f?(F[0]*Math.pow(10,F[1])).toFixed(f):0,F[1]=0)}J=(Math.abs(F[1]?F[0]:l)+Math.pow(10,-Math.max(f,k)-1)).toFixed(f);k=String(q(J));var K=3<k.length?k.length%3:
63
- 0;d=z(d,p.decimalPoint);a=z(a,p.thousandsSep);l=(0>l?"-":"")+(K?k.substr(0,K)+a:"");l=0>+F[1]&&!B?"0":l+k.substr(K).replace(/(\d{3})(?=\d)/g,"$1"+a);f&&(l+=d+J.slice(-f));F[1]&&0!==+l&&(l+="e"+F[1]);return l}var E=e.defaultOptions,v=e.defaultTime,H=h.getNestedProperty,I=h.isNumber,z=h.pick,q=h.pInt;return{dateFormat:function(l,f,d){return v.dateFormat(l,f,d)},format:function(l,f,d){var a="{",p=!1,k=/f$/,F=/\.([0-9])/,B=E.lang,J=d&&d.time||v;d=d&&d.numberFormatter||D;for(var K=[];l;){var q=l.indexOf(a);
64
- if(-1===q)break;var y=l.slice(0,q);if(p){y=y.split(":");a=H(y.shift()||"",f);if(y.length&&"number"===typeof a)if(y=y.join(":"),k.test(y)){var C=parseInt((y.match(F)||["","-1"])[1],10);null!==a&&(a=d(a,C,B.decimalPoint,-1<y.indexOf(",")?B.thousandsSep:""))}else a=J.dateFormat(y,a);K.push(a)}else K.push(y);l=l.slice(q+1);a=(p=!p)?"}":"{"}K.push(l);return K.join("")},numberFormat:D}});M(h,"Core/Renderer/RendererUtilities.js",[h["Core/Utilities.js"]],function(e){var h=e.clamp,A=e.pick,E=e.stableSort,
65
- v;(function(e){function v(e,q,l){var f=e,d=f.reducedLen||q,a=function(a,d){return(d.rank||0)-(a.rank||0)},p=function(a,d){return a.target-d.target},k,F=!0,B=[],J=0;for(k=e.length;k--;)J+=e[k].size;if(J>d){E(e,a);for(J=k=0;J<=d;)J+=e[k].size,k++;B=e.splice(k-1,e.length)}E(e,p);for(e=e.map(function(a){return{size:a.size,targets:[a.target],align:A(a.align,.5)}});F;){for(k=e.length;k--;)d=e[k],a=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=h(a-d.size*d.align,0,q-d.size);k=e.length;
66
- for(F=!1;k--;)0<k&&e[k-1].pos+e[k-1].size>e[k].pos&&(e[k-1].size+=e[k].size,e[k-1].targets=e[k-1].targets.concat(e[k].targets),e[k-1].align=.5,e[k-1].pos+e[k-1].size>q&&(e[k-1].pos=q-e[k-1].size),e.splice(k,1),F=!0)}f.push.apply(f,B);k=0;e.some(function(a){var d=0;return(a.targets||[]).some(function(){f[k].pos=a.pos+d;if("undefined"!==typeof l&&Math.abs(f[k].pos-f[k].target)>l)return f.slice(0,k+1).forEach(function(a){return delete a.pos}),f.reducedLen=(f.reducedLen||q)-.1*q,f.reducedLen>.1*q&&v(f,
67
- q,l),!0;d+=f[k].size;k++;return!1})});E(f,p);return f}e.distribute=v})(v||(v={}));return v});M(h,"Core/Renderer/SVG/SVGElement.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Renderer/HTML/AST.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(e,h,A,E,v){var D=e.animate,I=e.animObject,z=e.stop,q=E.deg2rad,l=E.doc,f=E.noop,d=E.svg,a=E.SVG_NS,p=E.win,k=v.addEvent,F=v.attr,B=v.createElement,J=v.css,K=v.defined,L=v.erase,y=v.extend,C=v.fireEvent,x=v.isArray,c=v.isFunction,
68
- t=v.isNumber,g=v.isString,u=v.merge,n=v.objectEach,b=v.pick,r=v.pInt,G=v.syncTimeout,m=v.uniqueKey;e=function(){function w(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}w.prototype._defaultGetter=function(c){c=b(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};w.prototype._defaultSetter=
69
- function(b,c,g){g.setAttribute(c,b)};w.prototype.add=function(b){var c=this.renderer,g=this.element;b&&(this.parentGroup=b);this.parentInverted=b&&b.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!b||b.handleZ||this.zIndex)var m=this.zIndexSetter();m||(b?b.element:c.box).appendChild(g);if(this.onAdd)this.onAdd();return this};w.prototype.addClass=function(b,c){var g=c?"":this.attr("class")||"";b=(b||"").split(/ /g).reduce(function(b,c){-1===
70
- g.indexOf(c)&&b.push(c);return b},g?[g]:[]).join(" ");b!==g&&this.attr("class",b);return this};w.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};w.prototype.align=function(c,m,n){var P={},a=this.renderer,r=a.alignedObjects,u,N,d;if(c){if(this.alignOptions=c,this.alignByTranslate=m,!n||g(n))this.alignTo=u=n||"renderer",L(r,this),r.push(this),n=void 0}else c=this.alignOptions,m=this.alignByTranslate,u=this.alignTo;n=b(n,a[u],"scrollablePlotBox"===u?
71
- a.plotBox:void 0,a);u=c.align;var t=c.verticalAlign;a=(n.x||0)+(c.x||0);r=(n.y||0)+(c.y||0);"right"===u?N=1:"center"===u&&(N=2);N&&(a+=(n.width-(c.width||0))/N);P[m?"translateX":"x"]=Math.round(a);"bottom"===t?d=1:"middle"===t&&(d=2);d&&(r+=(n.height-(c.height||0))/d);P[m?"translateY":"y"]=Math.round(r);this[this.placed?"animate":"attr"](P);this.placed=!0;this.alignAttr=P;return this};w.prototype.alignSetter=function(b){var c={left:"start",center:"middle",right:"end"};c[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor",
72
- c[b]))};w.prototype.animate=function(c,g,m){var a=this,r=I(b(g,this.renderer.globalAnimation,!0));g=r.defer;b(l.hidden,l.msHidden,l.webkitHidden,!1)&&(r.duration=0);0!==r.duration?(m&&(r.complete=m),G(function(){a.element&&D(a,c,r)},g)):(this.attr(c,void 0,m),n(c,function(b,c){r.step&&r.step.call(this,b,{prop:c,pos:1,elem:this})},this));return this};w.prototype.applyTextOutline=function(b){var c=this.element;-1!==b.indexOf("contrast")&&(b=b.replace(/contrast/g,this.renderer.getContrast(c.style.fill)));
73
- var g=b.split(" ");b=g[g.length-1];if((g=g[0])&&"none"!==g&&E.svg){this.fakeTS=!0;this.ySetter=this.xSetter;g=g.replace(/(^[\d\.]+)(.*?)$/g,function(b,c,g){return 2*Number(c)+g});this.removeTextOutline();var m=l.createElementNS(a,"tspan");F(m,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":g,"stroke-linejoin":"round"});[].forEach.call(c.childNodes,function(b){var c=b.cloneNode(!0);c.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(b){return c.removeAttribute(b)});
74
- m.appendChild(c)});var n=l.createElementNS(a,"tspan");n.textContent="\u200b";["x","y"].forEach(function(b){var g=c.getAttribute(b);g&&n.setAttribute(b,g)});m.appendChild(n);c.insertBefore(m,c.firstChild)}};w.prototype.attr=function(b,c,g,m){var r=this.element,a=this.symbolCustomAttribs,P,O=this,u,N;if("string"===typeof b&&"undefined"!==typeof c){var d=b;b={};b[d]=c}"string"===typeof b?O=(this[b+"Getter"]||this._defaultGetter).call(this,b,r):(n(b,function(c,g){u=!1;m||z(this,g);this.symbolName&&-1!==
75
- a.indexOf(g)&&(P||(this.symbolAttr(b),P=!0),u=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);u||(N=this[g+"Setter"]||this._defaultSetter,N.call(this,c,g,r),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,c,N))},this),this.afterSetters());g&&g.call(this);return O};w.prototype.clip=function(b){return this.attr("clip-path",b?"url("+this.renderer.url+"#"+b.id+")":"none")};w.prototype.crisp=function(b,c){c=c||b.strokeWidth||
76
- 0;var g=Math.round(c)%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);K(b.strokeWidth)&&(b.strokeWidth=c);return b};w.prototype.complexColor=function(b,c,g){var r=this.renderer,a,P,d,t,w,N,G,f,p,k,y=[],B;C(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?P="radialGradient":b.linearGradient&&(P="linearGradient");if(P){d=b[P];w=r.gradients;N=b.stops;p=g.radialReference;
77
- x(d)&&(b[P]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===P&&p&&!K(d.gradientUnits)&&(t=d,d=u(d,r.getRadialAttr(p,t),{gradientUnits:"userSpaceOnUse"}));n(d,function(b,c){"id"!==c&&y.push(c,b)});n(N,function(b){y.push(b)});y=y.join(",");if(w[y])k=w[y].attr("id");else{d.id=k=m();var O=w[y]=r.createElement(P).attr(d).add(r.defs);O.radAttr=t;O.stops=[];N.forEach(function(b){0===b[1].indexOf("rgba")?(a=A.parse(b[1]),G=a.get("rgb"),f=a.get("a")):(G=b[1],f=1);b=r.createElement("stop").attr({offset:b[0],
78
- "stop-color":G,"stop-opacity":f}).add(O);O.stops.push(b)})}B="url("+r.url+"#"+k+")";g.setAttribute(c,B);g.gradient=y;b.toString=function(){return B}}})};w.prototype.css=function(b){var c=this.styles,g={},m=this.element,a=["textOutline","textOverflow","width"],u="",t=!c;b&&b.color&&(b.fill=b.color);c&&n(b,function(b,m){c&&c[m]!==b&&(g[m]=b,t=!0)});if(t){c&&(b=y(c,g));if(b)if(null===b.width||"auto"===b.width)delete this.textWidth;else if("text"===m.nodeName.toLowerCase()&&b.width)var w=this.textWidth=
79
- r(b.width);this.styles=b;w&&!d&&this.renderer.forExport&&delete b.width;if(m.namespaceURI===this.SVG_NS){var N=function(b,c){return"-"+c.toLowerCase()};n(b,function(b,c){-1===a.indexOf(c)&&(u+=c.replace(/([A-Z])/g,N)+":"+b+";")});u&&F(m,"style",u)}else J(m,b);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b&&b.textOutline&&this.applyTextOutline(b.textOutline))}return this};w.prototype.dashstyleSetter=function(c){var g=this["stroke-width"];"inherit"===g&&(g=1);if(c=c&&c.toLowerCase()){var m=
80
- 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=m.length;c--;)m[c]=""+r(m[c])*b(g,NaN);c=m.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};w.prototype.destroy=function(){var b=this,c=b.element||{},g=b.renderer,m=c.ownerSVGElement,r=g.isSVG&&"SPAN"===c.nodeName&&b.parentGroup||
81
- void 0;c.onclick=c.onmouseout=c.onmouseover=c.onmousemove=c.point=null;z(b);if(b.clipPath&&m){var a=b.clipPath;[].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1<b.getAttribute("clip-path").indexOf(a.element.id)&&b.removeAttribute("clip-path")});b.clipPath=a.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(c);for(g.styledMode||b.destroyShadows();r&&r.div&&0===r.div.childNodes.length;)c=r.parentGroup,
82
- b.safeRemoveChild(r.div),delete r.div,r=c;b.alignTo&&L(g.alignedObjects,b);n(b,function(c,g){b[g]&&b[g].parentGroup===b&&b[g].destroy&&b[g].destroy();delete b[g]})};w.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(b){this.safeRemoveChild(b)},this);this.shadows=void 0};w.prototype.destroyTextPath=function(b,c){var g=b.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),c.element.setAttribute("id",""),this.textPathWrapper&&g.getElementsByTagName("textPath").length){for(b=
83
- 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())};w.prototype.dSetter=function(b,c,g){x(b)&&("string"===typeof b[0]&&(b=this.renderer.pathToSegments(b)),this.pathArray=b,b=b.reduce(function(b,c,g){return c&&c.join?(g?b+" ":"")+c.join(" "):(c||"").toString()},""));
84
- /(NaN| {2}|^$)/.test(b)&&(b="M 0 0");this[c]!==b&&(g.setAttribute(c,b),this[c]=b)};w.prototype.fadeOut=function(c){var g=this;g.animate({opacity:0},{duration:b(c,150),complete:function(){g.attr({y:-9999}).hide()}})};w.prototype.fillSetter=function(b,c,g){"string"===typeof b?g.setAttribute(c,b):b&&this.complexColor(b,c,g)};w.prototype.getBBox=function(g,m){var n=this.renderer,r=this.element,a=this.styles,u=this.textStr,d=n.cache,t=n.cacheKeys,Q=r.namespaceURI===this.SVG_NS;m=b(m,this.rotation,0);var x=
85
- n.styledMode?r&&w.prototype.getStyle.call(r,"font-size"):a&&a.fontSize,G;if(K(u)){var f=u.toString();-1===f.indexOf("<")&&(f=f.replace(/[0-9]/g,"0"));f+=["",m,x,this.textWidth,a&&a.textOverflow,a&&a.fontWeight].join()}f&&!g&&(G=d[f]);if(!G){if(Q||n.forExport){try{var N=this.fakeTS&&function(b){var c=r.querySelector(".highcharts-text-outline");c&&J(c,{display:b})};c(N)&&N("none");G=r.getBBox?y({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight};c(N)&&N("")}catch(U){""}if(!G||0>G.width)G={width:0,
86
- height:0}}else G=this.htmlGetBBox();n.isSVG&&(g=G.width,n=G.height,Q&&(G.height=n={"11px,17":14,"13px,20":16}[a&&a.fontSize+","+Math.round(n)]||n),m&&(a=m*q,G.width=Math.abs(n*Math.sin(a))+Math.abs(g*Math.cos(a)),G.height=Math.abs(n*Math.cos(a))+Math.abs(g*Math.sin(a))));if(f&&(""===u||0<G.height)){for(;250<t.length;)delete d[t.shift()];d[f]||t.push(f);d[f]=G}}return G};w.prototype.getStyle=function(b){return p.getComputedStyle(this.element||this,"").getPropertyValue(b)};w.prototype.hasClass=function(b){return-1!==
87
- (""+this.attr("class")).split(" ").indexOf(b)};w.prototype.hide=function(b){b?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};w.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};w.prototype.init=function(b,c){this.element="span"===c?B(c):l.createElementNS(this.SVG_NS,c);this.renderer=b;C(this,"afterInit")};w.prototype.invert=function(b){this.inverted=b;this.updateTransform();return this};w.prototype.on=function(b,c){var g=this.onEvents;if(g[b])g[b]();g[b]=k(this.element,
88
- b,c);return this};w.prototype.opacitySetter=function(b,c,g){this.opacity=b=Number(Number(b).toFixed(3));g.setAttribute(c,b)};w.prototype.removeClass=function(b){return this.attr("class",(""+this.attr("class")).replace(g(b)?new RegExp("(^| )"+b+"( |$)"):b," ").replace(/ +/g," ").trim())};w.prototype.removeTextOutline=function(){var b=this.element.querySelector("tspan.highcharts-text-outline");b&&this.safeRemoveChild(b)};w.prototype.safeRemoveChild=function(b){var c=b.parentNode;c&&c.removeChild(b)};
89
- w.prototype.setRadialReference=function(b){var c=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b;c&&c.radAttr&&c.animate(this.renderer.getRadialAttr(b,c.radAttr));return this};w.prototype.setTextPath=function(b,c){var g=this.element,r=this.text?this.text.element:g,a={textAnchor:"text-anchor"},d=!1,w=this.textPathWrapper,G=!w;c=u(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},c);var x=h.filterUserAttributes(c.attributes);
90
- if(b&&c&&c.enabled){w&&null===w.element.parentNode?(G=!0,w=w.destroy()):w&&this.removeTextOutline.call(w.parentGroup);this.options&&this.options.padding&&(x.dx=-this.options.padding);w||(this.textPathWrapper=w=this.renderer.createElement("textPath"),d=!0);var C=w.element;(c=b.element.getAttribute("id"))||b.element.setAttribute("id",c=m());if(G)for(r.setAttribute("y",0),t(x.dx)&&r.setAttribute("x",-x.dx),b=[].slice.call(r.childNodes),G=0;G<b.length;G++){var k=b[G];k.nodeType!==p.Node.TEXT_NODE&&"tspan"!==
91
- k.nodeName||C.appendChild(k)}d&&w&&w.add({element:r});C.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+c);K(x.dy)&&(C.parentNode.setAttribute("dy",x.dy),delete x.dy);K(x.dx)&&(C.parentNode.setAttribute("dx",x.dx),delete x.dx);n(x,function(b,c){C.setAttribute(a[c]||c,b)});g.removeAttribute("transform");this.removeTextOutline.call(w);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=f}else w&&(delete this.updateTransform,
92
- delete this.applyTextOutline,this.destroyTextPath(g,b),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};w.prototype.shadow=function(b,c,g){var m=[],r=this.element,a=this.oldShadowOptions,u={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},P=!1,d;!0===b?d=u:"object"===typeof b&&(d=y(u,b));d&&(d&&a&&n(d,function(b,c){b!==a[c]&&(P=!0)}),P&&this.destroyShadows(),this.oldShadowOptions=
93
- d);if(!d)this.destroyShadows();else if(!this.shadows){var w=d.opacity/d.width;var t=this.parentInverted?"translate("+d.offsetY+", "+d.offsetX+")":"translate("+d.offsetX+", "+d.offsetY+")";for(u=1;u<=d.width;u++){var G=r.cloneNode(!1);var x=2*d.width+1-2*u;F(G,{stroke:b.color||"#000000","stroke-opacity":w*u,"stroke-width":x,transform:t,fill:"none"});G.setAttribute("class",(G.getAttribute("class")||"")+" highcharts-shadow");g&&(F(G,"height",Math.max(F(G,"height")-x,0)),G.cutHeight=x);c?c.element.appendChild(G):
94
- r.parentNode&&r.parentNode.insertBefore(G,r);m.push(G)}this.shadows=m}return this};w.prototype.show=function(b){return this.attr({visibility:b?"inherit":"visible"})};w.prototype.strokeSetter=function(b,c,g){this[c]=b;this.stroke&&this["stroke-width"]?(w.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===c&&0===b&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&
95
- (g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};w.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var b=this.getStyle("stroke-width"),c=0;if(b.indexOf("px")===b.length-2)c=r(b);else if(""!==b){var g=l.createElementNS(a,"rect");F(g,{width:b,"stroke-width":0});this.element.parentNode.appendChild(g);c=g.getBBox().width;g.parentNode.removeChild(g)}return c};w.prototype.symbolAttr=function(c){var g=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(m){g[m]=
96
- b(c[m],g[m])});g.attr({d:g.renderer.symbols[g.symbolName](g.x,g.y,g.width,g.height,g)})};w.prototype.textSetter=function(b){b!==this.textStr&&(delete this.textPxLength,this.textStr=b,this.added&&this.renderer.buildText(this))};w.prototype.titleSetter=function(c){var g=this.element,m=g.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");g.insertBefore?g.insertBefore(m,g.firstChild):g.appendChild(m);m.textContent=String(b(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,
97
- ">")};w.prototype.toFront=function(){var b=this.element;b.parentNode.appendChild(b);return this};w.prototype.translate=function(b,c){return this.attr({translateX:b,translateY:c})};w.prototype.updateShadows=function(b,c,g){var m=this.shadows;if(m)for(var n=m.length;n--;)g.call(m[n],"height"===b?Math.max(c-(m[n].cutHeight||0),0):"d"===b?this.d:c,b,m[n])};w.prototype.updateTransform=function(){var c=this.scaleX,g=this.scaleY,m=this.inverted,n=this.rotation,r=this.matrix,a=this.element,u=this.translateX||
98
- 0,d=this.translateY||0;m&&(u+=this.width,d+=this.height);u=["translate("+u+","+d+")"];K(r)&&u.push("matrix("+r.join(",")+")");m?u.push("rotate(90) scale(-1,1)"):n&&u.push("rotate("+n+" "+b(this.rotationOriginX,a.getAttribute("x"),0)+" "+b(this.rotationOriginY,a.getAttribute("y")||0)+")");(K(c)||K(g))&&u.push("scale("+b(c,1)+" "+b(g,1)+")");u.length&&a.setAttribute("transform",u.join(" "))};w.prototype.visibilitySetter=function(b,c,g){"inherit"===b?g.removeAttribute(c):this[c]!==b&&g.setAttribute(c,
99
- b);this[c]=b};w.prototype.xGetter=function(b){"circle"===this.element.nodeName&&("x"===b?b="cx":"y"===b&&(b="cy"));return this._defaultGetter(b)};w.prototype.zIndexSetter=function(b,c){var g=this.renderer,m=this.parentGroup,n=(m||g).element||g.box,a=this.element;g=n===g.box;var u=!1;var d=this.added;var w;K(b)?(a.setAttribute("data-z-index",b),b=+b,this[c]===b&&(d=!1)):K(this[c])&&a.removeAttribute("data-z-index");this[c]=b;if(d){(b=this.zIndex)&&m&&(m.handleZ=!0);c=n.childNodes;for(w=c.length-1;0<=
100
- w&&!u;w--){m=c[w];d=m.getAttribute("data-z-index");var t=!K(d);if(m!==a)if(0>b&&t&&!g&&!w)n.insertBefore(a,c[w]),u=!0;else if(r(d)<=b||t&&(!K(b)||0<=b))n.insertBefore(a,c[w+1]||null),u=!0}u||(n.insertBefore(a,c[g?3:0]||null),u=!0)}return u};return w}();e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter;e.prototype.yGetter=e.prototype.xGetter;e.prototype.matrixSetter=e.prototype.rotationOriginXSetter=e.prototype.rotationOriginYSetter=e.prototype.rotationSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=
101
- e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.verticalAlignSetter=function(b,c){this[c]=b;this.doTransform=!0};"";return e});M(h,"Core/Renderer/RendererRegistry.js",[h["Core/Globals.js"]],function(e){var h;(function(h){h.rendererTypes={};var D;h.getRendererType=function(e){void 0===e&&(e=D);return h.rendererTypes[e]||h.rendererTypes[D]};h.registerRendererType=function(v,A,I){h.rendererTypes[v]=A;if(!D||I)D=v,e.Renderer=A}})(h||(h={}));return h});M(h,"Core/Renderer/SVG/SVGLabel.js",
102
- [h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(e,h){var D=this&&this.__extends||function(){var l=function(f,d){l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return l(f,d)};return function(f,d){function a(){this.constructor=f}l(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),E=h.defined,v=h.extend,H=h.isNumber,I=h.merge,z=h.pick,q=h.removeEvent;
103
- return function(l){function f(d,a,p,k,F,B,J,K,e,y){var C=l.call(this)||this;C.paddingLeftSetter=C.paddingSetter;C.paddingRightSetter=C.paddingSetter;C.init(d,"g");C.textStr=a;C.x=p;C.y=k;C.anchorX=B;C.anchorY=J;C.baseline=e;C.className=y;C.addClass("button"===y?"highcharts-no-tooltip":"highcharts-label");y&&C.addClass("highcharts-"+y);C.text=d.text(void 0,0,0,K).attr({zIndex:1});var x;"string"===typeof F&&((x=/^url\((.*?)\)$/.test(F))||C.renderer.symbols[F])&&(C.symbolKey=F);C.bBox=f.emptyBBox;C.padding=
104
- 3;C.baselineOffset=0;C.needsBox=d.styledMode||x;C.deferredAttr={};C.alignFactor=0;return C}D(f,l);f.prototype.alignSetter=function(d){d={left:0,center:.5,right:1}[d];d!==this.alignFactor&&(this.alignFactor=d,this.bBox&&H(this.xSetting)&&this.attr({x:this.xSetting}))};f.prototype.anchorXSetter=function(d,a){this.anchorX=d;this.boxAttr(a,Math.round(d)-this.getCrispAdjust()-this.xSetting)};f.prototype.anchorYSetter=function(d,a){this.anchorY=d;this.boxAttr(a,d-this.ySetting)};f.prototype.boxAttr=function(d,
105
- a){this.box?this.box.attr(d,a):this.deferredAttr[d]=a};f.prototype.css=function(d){if(d){var a={};d=I(d);f.textProps.forEach(function(f){"undefined"!==typeof d[f]&&(a[f]=d[f],delete d[f])});this.text.css(a);var p="width"in a;"fontSize"in a||"fontWeight"in a?this.updateTextPadding():p&&this.updateBoxSize()}return e.prototype.css.call(this,d)};f.prototype.destroy=function(){q(this.element,"mouseenter");q(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());
106
- e.prototype.destroy.call(this)};f.prototype.fillSetter=function(d,a){d&&(this.needsBox=!0);this.fill=d;this.boxAttr(a,d)};f.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var d=this.padding,a=z(this.paddingLeft,d);return{width:this.width,height:this.height,x:this.bBox.x-a,y:this.bBox.y-d}};f.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],
107
- 10):0)%2/2};f.prototype.heightSetter=function(d){this.heightSetting=d};f.prototype.onAdd=function(){var d=this.textStr;this.text.add(this);this.attr({text:E(d)?d:"",x:this.x,y:this.y});this.box&&E(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};f.prototype.paddingSetter=function(d,a){H(d)?d!==this[a]&&(this[a]=d,this.updateTextPadding()):this[a]=void 0};f.prototype.rSetter=function(d,a){this.boxAttr(a,d)};f.prototype.shadow=function(d){d&&!this.renderer.styledMode&&(this.updateBoxSize(),
108
- this.box&&this.box.shadow(d));return this};f.prototype.strokeSetter=function(d,a){this.stroke=d;this.boxAttr(a,d)};f.prototype["stroke-widthSetter"]=function(d,a){d&&(this.needsBox=!0);this["stroke-width"]=d;this.boxAttr(a,d)};f.prototype["text-alignSetter"]=function(d){this.textAlign=d};f.prototype.textSetter=function(d){"undefined"!==typeof d&&this.text.attr({text:d});this.updateTextPadding()};f.prototype.updateBoxSize=function(){var d=this.text.element.style,a={},p=this.padding,k=this.bBox=H(this.widthSetting)&&
109
- H(this.heightSetting)&&!this.textAlign||!E(this.text.textStr)?f.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||k.height||0)+2*p;d=this.renderer.fontMetrics(d&&d.fontSize,this.text);this.baselineOffset=p+Math.min((this.text.firstLineMetrics||d).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2);this.needsBox&&(this.box||(p=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),p.addClass(("button"===
110
- this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),p.add(this)),p=this.getCrispAdjust(),a.x=p,a.y=(this.baseline?-this.baselineOffset:0)+p,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(v(a,this.deferredAttr)),this.deferredAttr={})};f.prototype.updateTextPadding=function(){var d=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,f=z(this.paddingLeft,this.padding);E(this.widthSetting)&&this.bBox&&
111
- ("center"===this.textAlign||"right"===this.textAlign)&&(f+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(f!==d.x||a!==d.y)d.attr("x",f),d.hasBoxWidthChanged&&(this.bBox=d.getBBox(!0)),"undefined"!==typeof a&&d.attr("y",a);d.x=f;d.y=a};f.prototype.widthSetter=function(d){this.widthSetting=H(d)?d:void 0};f.prototype.getPaddedWidth=function(){var d=this.padding,a=z(this.paddingLeft,d);d=z(this.paddingRight,d);return(this.widthSetting||this.bBox.width||0)+a+d};f.prototype.xSetter=
112
- function(d){this.x=d;this.alignFactor&&(d-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(d);this.attr("translateX",this.xSetting)};f.prototype.ySetter=function(d){this.ySetting=this.y=Math.round(d);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}(e)});M(h,"Core/Renderer/SVG/Symbols.js",
113
- [h["Core/Utilities.js"]],function(e){function h(e,q,l,f,d){var a=[];if(d){var p=d.start||0,k=I(d.r,l);l=I(d.r,f||l);var F=(d.end||0)-.001;f=d.innerR;var B=I(d.open,.001>Math.abs((d.end||0)-p-2*Math.PI)),J=Math.cos(p),K=Math.sin(p),h=Math.cos(F),y=Math.sin(F);p=I(d.longArc,.001>F-p-Math.PI?0:1);a.push(["M",e+k*J,q+l*K],["A",k,l,0,p,I(d.clockwise,1),e+k*h,q+l*y]);v(f)&&a.push(B?["M",e+f*h,q+f*y]:["L",e+f*h,q+f*y],["A",f,f,0,p,v(d.clockwise)?1-d.clockwise:0,e+f*J,q+f*K]);B||a.push(["Z"])}return a}function A(e,
114
- q,l,f,d){return d&&d.r?E(e,q,l,f,d):[["M",e,q],["L",e+l,q],["L",e+l,q+f],["L",e,q+f],["Z"]]}function E(e,q,l,f,d){d=d&&d.r||0;return[["M",e+d,q],["L",e+l-d,q],["C",e+l,q,e+l,q,e+l,q+d],["L",e+l,q+f-d],["C",e+l,q+f,e+l,q+f,e+l-d,q+f],["L",e+d,q+f],["C",e,q+f,e,q+f,e,q+f-d],["L",e,q+d],["C",e,q,e,q,e+d,q]]}var v=e.defined,H=e.isNumber,I=e.pick;return{arc:h,callout:function(e,q,l,f,d){var a=Math.min(d&&d.r||0,l,f),p=a+6,k=d&&d.anchorX;d=d&&d.anchorY||0;var F=E(e,q,l,f,{r:a});if(!H(k))return F;e+k>=l?
115
- d>q+p&&d<q+f-p?F.splice(3,1,["L",e+l,d-6],["L",e+l+6,d],["L",e+l,d+6],["L",e+l,q+f-a]):F.splice(3,1,["L",e+l,f/2],["L",k,d],["L",e+l,f/2],["L",e+l,q+f-a]):0>=e+k?d>q+p&&d<q+f-p?F.splice(7,1,["L",e,d+6],["L",e-6,d],["L",e,d-6],["L",e,q+a]):F.splice(7,1,["L",e,f/2],["L",k,d],["L",e,f/2],["L",e,q+a]):d&&d>f&&k>e+p&&k<e+l-p?F.splice(5,1,["L",k+6,q+f],["L",k,q+f+6],["L",k-6,q+f],["L",e+a,q+f]):d&&0>d&&k>e+p&&k<e+l-p&&F.splice(1,1,["L",k-6,q],["L",k,q-6],["L",k+6,q],["L",l-a,q]);return F},circle:function(e,
116
- q,l,f){return h(e+l/2,q+f/2,l/2,f/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,q,l,f){return[["M",e+l/2,q],["L",e+l,q+f/2],["L",e+l/2,q+f],["L",e,q+f/2],["Z"]]},rect:A,roundedRect:E,square:A,triangle:function(e,q,l,f){return[["M",e+l/2,q],["L",e+l,q+f],["L",e,q+f],["Z"]]},"triangle-down":function(e,q,l,f){return[["M",e,q],["L",e+l,q],["L",e+l/2,q+f],["Z"]]}}});M(h,"Core/Renderer/SVG/TextBuilder.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(e,
117
- h,A){var D=h.doc,v=h.SVG_NS,H=h.win,I=A.attr,z=A.isString,q=A.objectEach,l=A.pick;return function(){function f(d){var a=d.styles;this.renderer=d.renderer;this.svgElement=d;this.width=d.textWidth;this.textLineHeight=a&&a.lineHeight;this.textOutline=a&&a.textOutline;this.ellipsis=!(!a||"ellipsis"!==a.textOverflow);this.noWrap=!(!a||"nowrap"!==a.whiteSpace);this.fontSize=a&&a.fontSize}f.prototype.buildSVG=function(){var d=this.svgElement,a=d.element,f=d.renderer,k=l(d.textStr,"").toString(),F=-1!==k.indexOf("<"),
118
- B=a.childNodes;f=this.width&&!d.added&&f.box;var J=/<br.*?>/g,K=[k,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(K!==d.textCache){d.textCache=K;delete d.actualWidth;for(K=B.length;K--;)a.removeChild(B[K]);F||this.ellipsis||this.width||-1!==k.indexOf(" ")&&(!this.noWrap||J.test(k))?""!==k&&(f&&f.appendChild(a),k=new e(k),this.modifyTree(k.nodes),k.addToDOM(d.element),this.modifyDOM(),this.ellipsis&&-1!==(a.textContent||"").indexOf("\u2026")&&d.attr("title",
119
- this.unescapeEntities(d.textStr||"",["&lt;","&gt;"])),f&&f.removeChild(a)):a.appendChild(D.createTextNode(this.unescapeEntities(k)));z(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};f.prototype.modifyDOM=function(){var d=this,a=this.svgElement,f=I(a.element,"x");a.firstLineMetrics=void 0;for(var k;k=a.element.firstChild;)if(/^[\s\u200B]*$/.test(k.textContent||" "))a.element.removeChild(k);else break;[].forEach.call(a.element.querySelectorAll("tspan.highcharts-br"),function(k,
120
- p){k.nextSibling&&k.previousSibling&&(0===p&&1===k.previousSibling.nodeType&&(a.firstLineMetrics=a.renderer.fontMetrics(void 0,k.previousSibling)),I(k,{dy:d.getLineHeight(k.nextSibling),x:f}))});var e=this.width||0;if(e){var B=function(k,p){var y=k.textContent||"",C=y.replace(/([^\^])-/g,"$1- ").split(" "),x=!d.noWrap&&(1<C.length||1<a.element.childNodes.length),c=d.getLineHeight(p),t=0,g=a.actualWidth;if(d.ellipsis)y&&d.truncate(k,y,void 0,0,Math.max(0,e-parseInt(d.fontSize||12,10)),function(c,g){return c.substring(0,
121
- g)+"\u2026"});else if(x){y=[];for(x=[];p.firstChild&&p.firstChild!==k;)x.push(p.firstChild),p.removeChild(p.firstChild);for(;C.length;)C.length&&!d.noWrap&&0<t&&(y.push(k.textContent||""),k.textContent=C.join(" ").replace(/- /g,"-")),d.truncate(k,void 0,C,0===t?g||0:0,e,function(c,g){return C.slice(0,g).join(" ").replace(/- /g,"-")}),g=a.actualWidth,t++;x.forEach(function(c){p.insertBefore(c,k)});y.forEach(function(g){p.insertBefore(D.createTextNode(g),k);g=D.createElementNS(v,"tspan");g.textContent=
122
- "\u200b";I(g,{dy:c,x:f});p.insertBefore(g,k)})}},l=function(d){[].slice.call(d.childNodes).forEach(function(f){f.nodeType===H.Node.TEXT_NODE?B(f,d):(-1!==f.className.baseVal.indexOf("highcharts-br")&&(a.actualWidth=0),l(f))})};l(a.element)}};f.prototype.getLineHeight=function(d){var a;d=d.nodeType===H.Node.TEXT_NODE?d.parentElement:d;this.renderer.styledMode||(a=d&&/(px|em)$/.test(d.style.fontSize)?d.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),
123
- 10):this.renderer.fontMetrics(a,d||this.svgElement.element).h};f.prototype.modifyTree=function(d){var a=this,f=function(k,p){var B=k.tagName,e=a.renderer.styledMode,l=k.attributes||{};if("b"===B||"strong"===B)e?l["class"]="highcharts-strong":l.style="font-weight:bold;"+(l.style||"");else if("i"===B||"em"===B)e?l["class"]="highcharts-emphasized":l.style="font-style:italic;"+(l.style||"");z(l.style)&&(l.style=l.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===B&&(l["class"]="highcharts-br",k.textContent=
124
- "\u200b",(p=d[p+1])&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,"")));"#text"!==B&&"a"!==B&&(k.tagName="tspan");k.attributes=l;k.children&&k.children.filter(function(a){return"#text"!==a.tagName}).forEach(f)};d.forEach(f)};f.prototype.truncate=function(d,a,f,k,l,B){var p=this.svgElement,e=p.renderer,F=p.rotation,y=[],C=f?1:0,x=(a||f||"").length,c=x,t,g=function(c,b){b=b||c;var g=d.parentNode;if(g&&"undefined"===typeof y[b])if(g.getSubStringLength)try{y[b]=k+g.getSubStringLength(0,
125
- f?b+1:b)}catch(G){""}else e.getSpanWidth&&(d.textContent=B(a||f,c),y[b]=k+e.getSpanWidth(p,d));return y[b]};p.rotation=0;var u=g(d.textContent.length);if(k+u>l){for(;C<=x;)c=Math.ceil((C+x)/2),f&&(t=B(f,c)),u=g(c,t&&t.length-1),C===x?C=x+1:u>l?x=c-1:C=c;0===x?d.textContent="":a&&x===a.length-1||(d.textContent=t||B(a||f,c))}f&&f.splice(0,c);p.actualWidth=u;p.rotation=F};f.prototype.unescapeEntities=function(d,a){q(this.renderer.escapes,function(f,k){a&&-1!==a.indexOf(f)||(d=d.toString().replace(new RegExp(f,
126
- "g"),k))});return d};return f}()});M(h,"Core/Renderer/SVG/SVGRenderer.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGLabel.js"],h["Core/Renderer/SVG/Symbols.js"],h["Core/Renderer/SVG/TextBuilder.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H,I,z,q){var l=A.charts,f=A.deg2rad,d=A.doc,a=A.isFirefox,p=A.isMS,k=A.isWebKit,F=A.noop,B=A.SVG_NS,J=A.symbolSizes,K=A.win,
127
- L=q.addEvent,y=q.attr,C=q.createElement,x=q.css,c=q.defined,t=q.destroyObjectProperties,g=q.extend,u=q.isArray,n=q.isNumber,b=q.isObject,r=q.isString,G=q.merge,m=q.pick,w=q.pInt,N=q.uniqueKey,X;A=function(){function P(b,c,g,m,n,a,r){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,c,g,m,n,a,r)}P.prototype.init=function(b,c,g,m,n,
128
- r,u){var O=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),w=O.element;u||O.css(this.getStyle(m));b.appendChild(w);y(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&y(w,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=w;this.boxWrapper=O;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 9.3.1"));this.defs=this.createElement("defs").add();this.allowHTML=r;this.forExport=n;this.styledMode=
129
- u;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(c,g,!1);var P;a&&b.getBoundingClientRect&&(c=function(){x(b,{left:0,top:0});P=b.getBoundingClientRect();x(b,{left:Math.ceil(P.left)-P.left+"px",top:Math.ceil(P.top)-P.top+"px"})},c(),this.unSubPixelFix=L(K,"resize",c))};P.prototype.definition=function(b){return(new e([b])).addToDOM(this.defs.element)};P.prototype.getReferenceURL=function(){if((a||k)&&d.getElementsByTagName("base").length){if(!c(X)){var b=N();b=(new e([{tagName:"svg",
130
- attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+b+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(d.body);x(b,{position:"fixed",top:0,left:0,zIndex:9E5});var g=d.elementFromPoint(6,6);X="hitme"===(g&&g.id);d.body.removeChild(b)}if(X)return K.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,
131
- "\\$1").replace(/ /g,"%20")}return""};P.prototype.getStyle=function(b){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},b)};P.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};P.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};P.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();t(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());
132
- this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};P.prototype.createElement=function(b){var c=new this.Element;c.init(this,b);return c};P.prototype.getRadialAttr=function(b,c){return{cx:b[0]-b[2]/2+(c.cx||0)*b[2],cy:b[1]-b[2]/2+(c.cy||0)*b[2],r:(c.r||0)*b[2]}};P.prototype.buildText=function(b){(new z(b)).buildSVG()};P.prototype.getContrast=function(b){b=h.parse(b).rgba;b[0]*=1;b[1]*=1.2;b[2]*=.5;return 459<b[0]+b[1]+b[2]?"#000000":"#FFFFFF"};P.prototype.button=function(b,c,
133
- m,n,a,r,u,d,w,P){var t=this.label(b,c,m,w,void 0,void 0,P,void 0,"button"),x=this.styledMode,O=0,f=a?G(a):{};b=f&&f.style||{};f=e.filterUserAttributes(f);t.attr(G({padding:8,r:2},f));if(!x){f=G({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:b},f);var Q=f.style;delete f.style;r=G(f,{fill:"#e6e6e6"},e.filterUserAttributes(r||{}));var C=r.style;delete r.style;u=G(f,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},e.filterUserAttributes(u||
134
- {}));var k=u.style;delete u.style;d=G(f,{style:{color:"#cccccc"}},e.filterUserAttributes(d||{}));var W=d.style;delete d.style}L(t.element,p?"mouseover":"mouseenter",function(){3!==O&&t.setState(1)});L(t.element,p?"mouseout":"mouseleave",function(){3!==O&&t.setState(O)});t.setState=function(b){1!==b&&(t.state=O=b);t.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b||0]);x||t.attr([f,r,u,d][b||0]).css([Q,C,k,W][b||
135
- 0])};x||t.attr(f).css(g({cursor:"default"},Q));return t.on("touchstart",function(b){return b.stopPropagation()}).on("click",function(b){3!==O&&n.call(t,b)})};P.prototype.crispLine=function(b,g,m){void 0===m&&(m="round");var n=b[0],r=b[1];c(n[1])&&n[1]===r[1]&&(n[1]=r[1]=Math[m](n[1])-g%2/2);c(n[2])&&n[2]===r[2]&&(n[2]=r[2]=Math[m](n[2])+g%2/2);return b};P.prototype.path=function(c){var m=this.styledMode?{}:{fill:"none"};u(c)?m.d=c:b(c)&&g(m,c);return this.createElement("path").attr(m)};P.prototype.circle=
136
- function(c,g,m){c=b(c)?c:"undefined"===typeof c?{}:{x:c,y:g,r:m};g=this.createElement("circle");g.xSetter=g.ySetter=function(b,c,g){g.setAttribute("c"+c,b)};return g.attr(c)};P.prototype.arc=function(c,g,m,n,r,a){b(c)?(n=c,g=n.y,m=n.r,c=n.x):n={innerR:n,start:r,end:a};c=this.symbol("arc",c,g,m,m,n);c.r=m;return c};P.prototype.rect=function(c,g,m,n,r,a){r=b(c)?c.r:r;var u=this.createElement("rect");c=b(c)?c:"undefined"===typeof c?{}:{x:c,y:g,width:Math.max(m,0),height:Math.max(n,0)};this.styledMode||
137
- ("undefined"!==typeof a&&(c["stroke-width"]=a,c=u.crisp(c)),c.fill="none");r&&(c.r=r);u.rSetter=function(b,c,g){u.r=b;y(g,{rx:b,ry:b})};u.rGetter=function(){return u.r||0};return u.attr(c)};P.prototype.setSize=function(b,c,g){this.width=b;this.height=c;this.boxWrapper.animate({width:b,height:c},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:m(g,!0)?void 0:0});this.alignElements()};P.prototype.g=function(b){var c=this.createElement("g");return b?c.attr({"class":"highcharts-"+
138
- b}):c};P.prototype.image=function(b,c,g,m,r,a){var u={preserveAspectRatio:"none"},d=function(b,c){b.setAttributeNS?b.setAttributeNS("http://www.w3.org/1999/xlink","href",c):b.setAttribute("hc-svg-href",c)};n(c)&&(u.x=c);n(g)&&(u.y=g);n(m)&&(u.width=m);n(r)&&(u.height=r);var w=this.createElement("image").attr(u);c=function(c){d(w.element,b);a.call(w,c)};a?(d(w.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),g=new K.Image,L(g,"load",c),g.src=b,g.complete&&c({})):
139
- d(w.element,b);return w};P.prototype.symbol=function(b,n,r,a,u,w){var t=this,P=/^url\((.*?)\)$/,G=P.test(b),f=!G&&(this.symbols[b]?b:"circle"),O=f&&this.symbols[f],Q;if(O){"number"===typeof n&&(Q=O.call(this.symbols,Math.round(n||0),Math.round(r||0),a||0,u||0,w));var k=this.path(Q);t.styledMode||k.attr("fill","none");g(k,{symbolName:f||void 0,x:n,y:r,width:a,height:u});w&&g(k,w)}else if(G){var p=b.match(P)[1];var y=k=this.image(p);y.imgwidth=m(J[p]&&J[p].width,w&&w.width);y.imgheight=m(J[p]&&J[p].height,
140
- w&&w.height);var e=function(b){return b.attr({width:b.width,height:b.height})};["width","height"].forEach(function(b){y[b+"Setter"]=function(b,g){var m=this["img"+g];this[g]=b;c(m)&&(w&&"within"===w.backgroundSize&&this.width&&this.height&&(m=Math.round(m*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(g,m),this.alignByTranslate||(b=((this[g]||0)-m)/2,this.attr("width"===g?{translateX:b}:{translateY:b})))}});c(n)&&y.attr({x:n,y:r});y.isImg=!0;
141
- c(y.imgwidth)&&c(y.imgheight)?e(y):(y.attr({width:0,height:0}),C("img",{onload:function(){var b=l[t.chartIndex];0===this.width&&(x(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this));J[p]={width:this.width,height:this.height};y.imgwidth=this.width;y.imgheight=this.height;y.element&&e(y);this.parentNode&&this.parentNode.removeChild(this);t.imgCount--;if(!t.imgCount&&b&&!b.hasLoaded)b.onload()},src:p}),this.imgCount++)}return k};P.prototype.clipRect=function(b,c,g,m){var n=N()+"-",r=
142
- this.createElement("clipPath").attr({id:n}).add(this.defs);b=this.rect(b,c,g,m,0).add(r);b.id=n;b.clipPath=r;b.count=0;return b};P.prototype.text=function(b,g,m,n){var r={};if(n&&(this.allowHTML||!this.forExport))return this.html(b,g,m);r.x=Math.round(g||0);m&&(r.y=Math.round(m));c(b)&&(r.text=b);b=this.createElement("text").attr(r);if(!n||this.forExport&&!this.allowHTML)b.xSetter=function(b,c,g){for(var m=g.getElementsByTagName("tspan"),n=g.getAttribute(c),r=0,a;r<m.length;r++)a=m[r],a.getAttribute(c)===
143
- n&&a.setAttribute(c,b);g.setAttribute(c,b)};return b};P.prototype.fontMetrics=function(b,c){b=!this.styledMode&&/px/.test(b)||!K.getComputedStyle?b||c&&c.style&&c.style.fontSize||this.style&&this.style.fontSize:c&&v.prototype.getStyle.call(c,"font-size");b=/px/.test(b)?w(b):12;c=24>b?b+3:Math.round(1.2*b);return{h:c,b:Math.round(.8*c),f:b}};P.prototype.rotCorr=function(b,c,g){var m=b;c&&g&&(m=Math.max(m*Math.cos(c*f),4));return{x:-b/3*Math.sin(c*f),y:m}};P.prototype.pathToSegments=function(b){for(var c=
144
- [],g=[],m={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},a=0;a<b.length;a++)r(g[0])&&n(b[a])&&g.length===m[g[0].toUpperCase()]&&b.splice(a,0,g[0].replace("M","L").replace("m","l")),"string"===typeof b[a]&&(g.length&&c.push(g.slice(0)),g.length=0),g.push(b[a]);c.push(g.slice(0));return c};P.prototype.label=function(b,c,g,m,n,r,a,u,d){return new H(this,b,c,g,m,n,r,a,u,d)};P.prototype.alignElements=function(){this.alignedObjects.forEach(function(b){return b.align()})};return P}();g(A.prototype,{Element:v,SVG_NS:B,
145
- escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:I,draw:F});E.registerRendererType("svg",A,!0);"";return A});M(h,"Core/Renderer/HTML/HTMLElement.js",[h["Core/Globals.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(e,h,A){var D=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 f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(d,f)};return function(d,
146
- f){function k(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(k.prototype=f.prototype,new k)}}(),v=e.isFirefox,H=e.isMS,I=e.isWebKit,z=e.win,q=A.css,l=A.defined,f=A.extend,d=A.pick,a=A.pInt;return function(p){function k(){return null!==p&&p.apply(this,arguments)||this}D(k,p);k.compose=function(a){if(-1===k.composedClasses.indexOf(a)){k.composedClasses.push(a);var d=k.prototype,f=a.prototype;f.getSpanCorrection=d.getSpanCorrection;f.htmlCss=d.htmlCss;f.htmlGetBBox=d.htmlGetBBox;
147
- f.htmlUpdateTransform=d.htmlUpdateTransform;f.setSpanRotation=d.setSpanRotation}return a};k.prototype.getSpanCorrection=function(a,d,f){this.xCorr=-a*f;this.yCorr=-d};k.prototype.htmlCss=function(a){var k="SPAN"===this.element.tagName&&a&&"width"in a,p=d(k&&a.width,void 0);if(k){delete a.width;this.textWidth=p;var l=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=f(this.styles,a);q(this.element,a);l&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=
148
- function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var d=this.renderer,f=this.element,k=this.translateX||0,p=this.translateY||0,e=this.x||0,y=this.y||0,C=this.textAlign||"left",x={left:0,center:.5,right:1}[C],c=this.styles;c=c&&c.whiteSpace;q(f,{marginLeft:k,marginTop:p});!d.styledMode&&this.shadows&&this.shadows.forEach(function(b){q(b,{marginLeft:k+1,marginTop:p+1})});this.inverted&&
149
- [].forEach.call(f.childNodes,function(b){d.invertChild(b,f)});if("SPAN"===f.tagName){var t=this.rotation,g=this.textWidth&&a(this.textWidth),u=[t,C,f.innerHTML,this.textWidth,this.textAlign].join(),n=void 0;n=!1;if(g!==this.oldTextWidth){if(this.textPxLength)var b=this.textPxLength;else q(f,{width:"",whiteSpace:c||"nowrap"}),b=f.offsetWidth;(g>this.oldTextWidth||b>g)&&(/[ \-]/.test(f.textContent||f.innerText)||"ellipsis"===f.style.textOverflow)&&(q(f,{width:b>g||t?g+"px":"auto",display:"block",whiteSpace:c||
150
- "normal"}),this.oldTextWidth=g,n=!0)}this.hasBoxWidthChanged=n;u!==this.cTT&&(n=d.fontMetrics(f.style.fontSize,f).b,!l(t)||t===(this.oldRotation||0)&&C===this.oldAlign||this.setSpanRotation(t,x,n),this.getSpanCorrection(!l(t)&&this.textPxLength||f.offsetWidth,n,x,t,C));q(f,{left:e+(this.xCorr||0)+"px",top:y+(this.yCorr||0)+"px"});this.cTT=u;this.oldRotation=t;this.oldAlign=C}}else this.alignOnAdd=!0};k.prototype.setSpanRotation=function(a,d,f){var k={},p=H&&!/Edge/.test(z.navigator.userAgent)?"-ms-transform":
151
- I?"-webkit-transform":v?"MozTransform":z.opera?"-o-transform":void 0;p&&(k[p]=k.transform="rotate("+a+"deg)",k[p+(v?"Origin":"-origin")]=k.transformOrigin=100*d+"% "+f+"px",q(this.element,k))};k.composedClasses=[];return k}(h)});M(h,"Core/Renderer/HTML/HTMLRenderer.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Utilities.js"]],function(e,h,A,E){var v=this&&this.__extends||function(){var l=function(f,d){l=Object.setPrototypeOf||
152
- {__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return l(f,d)};return function(f,d){function a(){this.constructor=f}l(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),D=E.attr,I=E.createElement,z=E.extend,q=E.pick;return function(l){function f(){return null!==l&&l.apply(this,arguments)||this}v(f,l);f.compose=function(d){-1===f.composedClasses.indexOf(d)&&(f.composedClasses.push(d),d.prototype.html=
153
- f.prototype.html);return d};f.prototype.html=function(d,a,f){var k=this.createElement("span"),p=k.element,l=k.renderer,J=l.isSVG,K=function(a,d){["opacity","visibility"].forEach(function(f){a[f+"Setter"]=function(x,c,t){var g=a.div?a.div.style:d;h.prototype[f+"Setter"].call(this,x,c,t);g&&(g[c]=x)}});a.addedSetters=!0};k.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,q(a,"")),this.textStr=a,k.doTransform=!0)};J&&K(k,k.element.style);
154
- k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(a,d){"align"===d?k.alignValue=k.textAlign=a:k[d]=a;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};k.attr({text:d,x:Math.round(a),y:Math.round(f)}).css({position:"absolute"});l.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p.style.whiteSpace="nowrap";k.css=k.htmlCss;J&&(k.add=function(a){var d=l.box.parentNode,f=[];if(this.parentGroup=a){var x=
155
- a.div;if(!x){for(;a;)f.push(a),a=a.parentGroup;f.reverse().forEach(function(c){function a(b,g){c[g]=b;"translateX"===g?n.left=b+"px":n.top=b+"px";c.doTransform=!0}var g=D(c.element,"class"),u=c.styles||{};x=c.div=c.div||I("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:u.cursor,pointerEvents:u.pointerEvents,visibility:c.visibility},x||d);var n=x.style;z(c,{classSetter:function(b){return function(c){this.element.setAttribute("class",
156
- c);b.className=c}}(x),on:function(){f[0].div&&k.on.apply({element:f[0].div,onEvents:c.onEvents},arguments);return c},translateXSetter:a,translateYSetter:a});c.addedSetters||K(c)})}}else x=d;x.appendChild(p);k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};f.composedClasses=[];return f}(A)});M(h,"Core/Axis/AxisDefaults.js",[],function(){var e;(function(e){e.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",
157
- range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,
158
- minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",
159
- lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};e.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var e=this.axis.chart.numberFormatter;return e(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",
160
- textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};e.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};e.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};e.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};e.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(e||(e={}));return e});M(h,"Core/Foundation.js",[h["Core/Utilities.js"]],function(e){var h=e.addEvent,A=e.isFunction,E=e.objectEach,v=e.removeEvent,
161
- H;(function(e){e.registerEventOptions=function(e,q){e.eventOptions=e.eventOptions||{};E(q.events,function(l,f){e.eventOptions[f]!==l&&(e.eventOptions[f]&&(v(e,f,e.eventOptions[f]),delete e.eventOptions[f]),A(l)&&(e.eventOptions[f]=l,h(e,f,l)))})}})(H||(H={}));return H});M(h,"Core/Axis/Tick.js",[h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(e,h,A){var D=h.deg2rad,v=A.clamp,H=A.correctFloat,I=A.defined,z=A.destroyObjectProperties,q=A.extend,l=A.fireEvent,f=A.isNumber,
162
- d=A.merge,a=A.objectEach,p=A.pick;h=function(){function k(a,d,f,k,e){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=d;this.type=f||"";this.parameters=e||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;l(this,"init");f||k||this.addLabel()}k.prototype.addLabel=function(){var a=this,d=a.axis,k=d.options,h=d.chart,L=d.categories,y=d.logarithmic,C=d.names,x=a.pos,c=p(a.options&&a.options.labels,k.labels),t=d.tickPositions,g=x===t[0],u=x===t[t.length-1],n=
163
- (!c.step||1===c.step)&&1===d.tickInterval;t=t.info;var b=a.label,r;L=this.parameters.category||(L?p(L[x],C[x],x):x);y&&f(L)&&(L=H(y.lin2log(L)));if(d.dateTime)if(t){var G=h.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&&t.higherRanks[x]||t.unitName]);var m=G.main}else f(L)&&(m=d.dateTime.getXDateFormat(L,k.dateTimeLabelFormats||{}));a.isFirst=g;a.isLast=u;var w={axis:d,chart:h,dateTimeLabelFormat:m,isFirst:g,isLast:u,pos:x,tick:a,tickPositionInfo:t,value:L};l(this,"labelFormat",w);var N=function(b){return c.formatter?
164
- c.formatter.call(b,b):c.format?(b.text=d.defaultLabelFormatter.call(b),e.format(c.format,b,h)):d.defaultLabelFormatter.call(b,b)};k=N.call(w,w);var X=G&&G.list;a.shortenLabel=X?function(){for(r=0;r<X.length;r++)if(q(w,{dateTimeLabelFormat:X[r]}),b.attr({text:N.call(w,w)}),b.getBBox().width<d.getSlotWidth(a)-2*c.padding)return;b.attr({text:""})}:void 0;n&&d._addedPlotLB&&a.moveLabel(k,c);I(b)||a.movedLabel?b&&b.textStr!==k&&!n&&(!b.textWidth||c.style.width||b.styles.width||b.css({width:null}),b.attr({text:k}),
165
- b.textPxLength=b.getBBox().width):(a.label=b=a.createLabel({x:0,y:0},k,c),a.rotation=0)};k.prototype.createLabel=function(a,f,k){var e=this.axis,p=e.chart;if(a=I(f)&&k.enabled?p.renderer.text(f,a.x,a.y,k.useHTML).add(e.labelGroup):null)p.styledMode||a.css(d(k.style)),a.textPxLength=a.getBBox().width;return a};k.prototype.destroy=function(){z(this,this.axis)};k.prototype.getPosition=function(a,d,f,k){var e=this.axis,p=e.chart,C=k&&p.oldChartHeight||p.chartHeight;a={x:a?H(e.translate(d+f,null,null,
166
- k)+e.transB):e.left+e.offset+(e.opposite?(k&&p.oldChartWidth||p.chartWidth)-e.right-e.left:0),y:a?C-e.bottom+e.offset-(e.opposite?e.height:0):H(C-e.translate(d+f,null,null,k)-e.transB)};a.y=v(a.y,-1E5,1E5);l(this,"afterGetPosition",{pos:a});return a};k.prototype.getLabelPosition=function(a,d,f,k,e,p,C,x){var c=this.axis,t=c.transA,g=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,u=c.staggerLines,n=c.tickRotCorr||{x:0,y:0},b=k||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?
167
- .5:1),r={},G=e.y;I(G)||(G=0===c.side?f.rotation?-8:-f.getBBox().height:2===c.side?n.y+8:Math.cos(f.rotation*D)*(n.y-f.getBBox(!1,0).height/2));a=a+e.x+b+n.x-(p&&k?p*t*(g?-1:1):0);d=d+G-(p&&!k?p*t*(g?1:-1):0);u&&(f=C/(x||1)%u,c.opposite&&(f=u-f-1),d+=c.labelOffset/u*f);r.x=a;r.y=Math.round(d);l(this,"afterGetLabelPosition",{pos:r,tickmarkOffset:p,index:C});return r};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=
168
- function(a,d,f,k,e,p){return p.crispLine([["M",a,d],["L",a+(e?0:-f),d+(e?f:0)]],k)};k.prototype.handleOverflow=function(a){var d=this.axis,f=d.options.labels,k=a.x,e=d.chart.chartWidth,l=d.chart.spacing,C=p(d.labelLeft,Math.min(d.pos,l[3]));l=p(d.labelRight,Math.max(d.isRadial?0:d.pos+d.len,e-l[1]));var x=this.label,c=this.rotation,t={left:0,center:.5,right:1}[d.labelAlign||x.attr("align")],g=x.getBBox().width,u=d.getSlotWidth(this),n={},b=u,r=1,G;if(c||"justify"!==f.overflow)0>c&&k-t*g<C?G=Math.round(k/
169
- Math.cos(c*D)-C):0<c&&k+t*g>l&&(G=Math.round((e-k)/Math.cos(c*D)));else if(e=k+(1-t)*g,k-t*g<C?b=a.x+b*(1-t)-C:e>l&&(b=l-a.x+b*t,r=-1),b=Math.min(u,b),b<u&&"center"===d.labelAlign&&(a.x+=r*(u-b-t*(u-Math.min(g,b)))),g>b||d.autoRotation&&(x.styles||{}).width)G=b;G&&(this.shortenLabel?this.shortenLabel():(n.width=Math.floor(G)+"px",(f.style||{}).textOverflow||(n.textOverflow="ellipsis"),x.css(n)))};k.prototype.moveLabel=function(d,f){var k=this,e=k.label,p=k.axis,l=p.reversed,C=!1;e&&e.textStr===d?
170
- (k.movedLabel=e,C=!0,delete k.label):a(p.ticks,function(c){C||c.isNew||c===k||!c.label||c.label.textStr!==d||(k.movedLabel=c.label,C=!0,c.labelPos=k.movedLabel.xy,delete c.label)});if(!C&&(k.labelPos||e)){var x=k.labelPos||e.xy;e=p.horiz?l?0:p.width+p.left:x.x;p=p.horiz?x.y:l?p.width+p.left:0;k.movedLabel=k.createLabel({x:e,y:p},d,f);k.movedLabel&&k.movedLabel.attr({opacity:0})}};k.prototype.render=function(a,d,f){var k=this.axis,e=k.horiz,y=this.pos,C=p(this.tickmarkOffset,k.tickmarkOffset);y=this.getPosition(e,
171
- y,C,d);C=y.x;var x=y.y;k=e&&C===k.pos+k.len||!e&&x===k.pos?-1:1;e=p(f,this.label&&this.label.newOpacity,1);f=p(f,1);this.isActive=!0;this.renderGridLine(d,f,k);this.renderMark(y,f,k);this.renderLabel(y,d,e,a);this.isNew=!1;l(this,"afterRender")};k.prototype.renderGridLine=function(a,d,f){var k=this.axis,e=k.options,l={},C=this.pos,x=this.type,c=p(this.tickmarkOffset,k.tickmarkOffset),t=k.chart.renderer,g=this.gridLine,u=e.gridLineWidth,n=e.gridLineColor,b=e.gridLineDashStyle;"minor"===this.type&&
172
- (u=e.minorGridLineWidth,n=e.minorGridLineColor,b=e.minorGridLineDashStyle);g||(k.chart.styledMode||(l.stroke=n,l["stroke-width"]=u||0,l.dashstyle=b),x||(l.zIndex=1),a&&(d=0),this.gridLine=g=t.path().attr(l).addClass("highcharts-"+(x?x+"-":"")+"grid-line").add(k.gridGroup));if(g&&(f=k.getPlotLinePath({value:C+c,lineWidth:g.strokeWidth()*f,force:"pass",old:a})))g[a||this.isNew?"attr":"animate"]({d:f,opacity:d})};k.prototype.renderMark=function(a,d,f){var k=this.axis,e=k.options,l=k.chart.renderer,C=
173
- this.type,x=k.tickSize(C?C+"Tick":"tick"),c=a.x;a=a.y;var t=p(e["minor"!==C?"tickWidth":"minorTickWidth"],!C&&k.isXAxis?1:0);e=e["minor"!==C?"tickColor":"minorTickColor"];var g=this.mark,u=!g;x&&(k.opposite&&(x[0]=-x[0]),g||(this.mark=g=l.path().addClass("highcharts-"+(C?C+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||g.attr({stroke:e,"stroke-width":t})),g[u?"attr":"animate"]({d:this.getMarkPath(c,a,x[0],g.strokeWidth()*f,k.horiz,l),opacity:d}))};k.prototype.renderLabel=function(a,d,k,e){var l=
174
- this.axis,y=l.horiz,C=l.options,x=this.label,c=C.labels,t=c.step;l=p(this.tickmarkOffset,l.tickmarkOffset);var g=a.x;a=a.y;var u=!0;x&&f(g)&&(x.xy=a=this.getLabelPosition(g,a,x,y,c,l,e,t),this.isFirst&&!this.isLast&&!C.showFirstLabel||this.isLast&&!this.isFirst&&!C.showLastLabel?u=!1:!y||c.step||c.rotation||d||0===k||this.handleOverflow(a),t&&e%t&&(u=!1),u&&f(a.y)?(a.opacity=k,x[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(x.attr("y",-9999),this.isNewLabel=!0))};k.prototype.replaceMovedLabel=
175
- function(){var a=this.label,d=this.axis,f=d.reversed;if(a&&!this.isNew){var k=d.horiz?f?d.left:d.width+d.left:a.xy.x;f=d.horiz?a.xy.y:f?d.width+d.top:d.top;a.animate({x:k,y:f,opacity:0},void 0,a.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return h});M(h,"Core/Axis/Axis.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/AxisDefaults.js"],h["Core/Color/Color.js"],h["Core/DefaultOptions.js"],h["Core/Foundation.js"],h["Core/Globals.js"],
176
- h["Core/Axis/Tick.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H,I,z){var q=e.animObject,l=E.defaultOptions,f=v.registerEventOptions,d=H.deg2rad,a=z.arrayMax,p=z.arrayMin,k=z.clamp,F=z.correctFloat,B=z.defined,J=z.destroyObjectProperties,K=z.erase,L=z.error,y=z.extend,C=z.fireEvent,x=z.getMagnitude,c=z.isArray,t=z.isNumber,g=z.isString,u=z.merge,n=z.normalizeTickInterval,b=z.objectEach,r=z.pick,G=z.relativeLength,m=z.removeEvent,w=z.splat,N=z.syncTimeout;e=function(){function e(b,c){this.zoomEnabled=
177
- this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=
178
- this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(b,c)}e.prototype.init=function(b,c){var g=c.isX;this.chart=b;this.horiz=b.inverted&&!this.isZAxis?!g:g;this.isXAxis=g;this.coll=this.coll||(g?"xAxis":"yAxis");C(this,"init",{userOptions:c});this.opposite=r(c.opposite,this.opposite);this.side=r(c.side,
179
- this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(c);var a=this.options,m=a.labels,n=a.type;this.userOptions=c;this.minPixelPadding=0;this.reversed=r(a.reversed,this.reversed);this.visible=a.visible;this.zoomEnabled=a.zoomEnabled;this.hasNames="category"===n||!0===a.categories;this.categories=a.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=B(a.linkedTo);this.ticks=
180
- {};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=a.minRange||a.maxZoom;this.range=a.range;this.offset=a.offset||0;this.min=this.max=null;c=r(a.crosshair,w(b.options.tooltip.crosshairs)[g?0:1]);this.crosshair=!0===c?{}:c;-1===b.axes.indexOf(this)&&(g?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&&g&&"undefined"===typeof this.reversed&&
181
- (this.reversed=!0);this.labelRotation=t(m.rotation)?m.rotation:void 0;f(this,a);C(this,"afterInit")};e.prototype.setOptions=function(b){this.options=u(h.defaultXAxisOptions,"yAxis"===this.coll&&h.defaultYAxisOptions,[h.defaultTopAxisOptions,h.defaultRightAxisOptions,h.defaultBottomAxisOptions,h.defaultLeftAxisOptions][this.side],u(l[this.coll],b));C(this,"afterSetOptions",{userOptions:b})};e.prototype.defaultLabelFormatter=function(b){var c=this.axis;b=this.chart.numberFormatter;var g=t(this.value)?
182
- this.value:NaN,a=c.chart.time,m=this.dateTimeLabelFormat,n=l.lang,d=n.numericSymbols;n=n.numericSymbolMagnitude||1E3;var r=c.logarithmic?Math.abs(g):c.tickInterval,u=d&&d.length;if(c.categories)var f=""+this.value;else if(m)f=a.dateFormat(m,g);else if(u&&1E3<=r)for(;u--&&"undefined"===typeof f;)c=Math.pow(n,u+1),r>=c&&0===10*g%c&&null!==d[u]&&0!==g&&(f=b(g/c,-1)+d[u]);"undefined"===typeof f&&(f=1E4<=Math.abs(g)?b(g,-1):b(g,-1,void 0,""));return f};e.prototype.getSeriesExtremes=function(){var b=this,
183
- c=b.chart,g;C(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(a){if(a.visible||!c.options.chart.ignoreHiddenSeries){var m=a.options,n=m.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=n&&(n=null);if(b.isXAxis){if(m=a.xData,m.length){m=b.logarithmic?m.filter(b.validatePositiveValue):m;g=a.getXExtremes(m);var d=g.min;var u=g.max;t(d)||d instanceof Date||
184
- (m=m.filter(t),g=a.getXExtremes(m),d=g.min,u=g.max);m.length&&(b.dataMin=Math.min(r(b.dataMin,d),d),b.dataMax=Math.max(r(b.dataMax,u),u))}}else if(a=a.applyExtremes(),t(a.dataMin)&&(d=a.dataMin,b.dataMin=Math.min(r(b.dataMin,d),d)),t(a.dataMax)&&(u=a.dataMax,b.dataMax=Math.max(r(b.dataMax,u),u)),B(n)&&(b.threshold=n),!m.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});C(this,"afterGetSeriesExtremes")};e.prototype.translate=function(b,c,g,a,m,n){var d=this.linkedParent||this,r=a&&d.old?
185
- d.old.min:d.min,u=d.minPixelPadding;m=(d.isOrdinal||d.brokenAxis&&d.brokenAxis.hasBreaks||d.logarithmic&&m)&&d.lin2val;var f=1,w=0;a=a&&d.old?d.old.transA:d.transA;a||(a=d.transA);g&&(f*=-1,w=d.len);d.reversed&&(f*=-1,w-=f*(d.sector||d.len));c?(b=(b*f+w-u)/a+r,m&&(b=d.lin2val(b))):(m&&(b=d.val2lin(b)),b=t(r)?f*(b-r)*a+w+f*u+(t(n)?a*n:0):void 0);return b};e.prototype.toPixels=function(b,c){return this.translate(b,!1,!this.horiz,null,!0)+(c?0:this.pos)};e.prototype.toValue=function(b,c){return this.translate(b-
186
- (c?0:this.pos),!0,!this.horiz,null,!0)};e.prototype.getPlotLinePath=function(b){function c(b,c,g){if("pass"!==P&&b<c||b>g)P?b=k(b,c,g):h=!0;return b}var g=this,a=g.chart,m=g.left,n=g.top,d=b.old,u=b.value,f=b.lineWidth,w=d&&a.oldChartHeight||a.chartHeight,G=d&&a.oldChartWidth||a.chartWidth,e=g.transB,x=b.translatedValue,P=b.force,p,l,y,N,h;b={value:u,lineWidth:f,old:d,force:P,acrossPanes:b.acrossPanes,translatedValue:x};C(this,"getPlotLinePath",b,function(b){x=r(x,g.translate(u,null,null,d));x=k(x,
187
- -1E5,1E5);p=y=Math.round(x+e);l=N=Math.round(w-x-e);t(x)?g.horiz?(l=n,N=w-g.bottom,p=y=c(p,m,m+g.width)):(p=m,y=G-g.right,l=N=c(l,n,n+g.height)):(h=!0,P=!1);b.path=h&&!P?null:a.renderer.crispLine([["M",p,l],["L",y,N]],f||1)});return b.path};e.prototype.getLinearTickPositions=function(b,c,g){var a=F(Math.floor(c/b)*b);g=F(Math.ceil(g/b)*b);var m=[],n;F(a+b)===a&&(n=20);if(this.single)return[c];for(c=a;c<=g;){m.push(c);c=F(c+b,n);if(c===d)break;var d=c}return m};e.prototype.getMinorTickInterval=function(){var b=
188
- this.options;return!0===b.minorTicks?r(b.minorTickInterval,"auto"):!1===b.minorTicks?null:b.minorTickInterval};e.prototype.getMinorTickPositions=function(){var b=this.options,c=this.tickPositions,g=this.minorTickInterval,a=this.pointRangePadding||0,m=this.min-a;a=this.max+a;var n=a-m,d=[];if(n&&n/g<this.len/3){var r=this.logarithmic;if(r)this.paddedTicks.forEach(function(b,c,a){c&&d.push.apply(d,r.getLogTickPositions(g,a[c-1],a[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())d=
189
- d.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(g),m,a,b.startOfWeek));else for(b=m+(c[0]-m)%g;b<=a&&b!==d[0];b+=g)d.push(b)}0!==d.length&&this.trimTicks(d);return d};e.prototype.adjustForMinRange=function(){var b=this.options,c=this.logarithmic,g=this.min,m=this.max,d=0,n,u,f,w;this.isXAxis&&"undefined"===typeof this.minRange&&!c&&(B(b.min)||B(b.max)||B(b.floor)||B(b.ceiling)?this.minRange=null:(this.series.forEach(function(b){f=b.xData;w=b.xIncrement?1:f.length-1;if(1<f.length)for(n=
190
- w;0<n;n--)if(u=f[n]-f[n-1],!d||u<d)d=u}),this.minRange=Math.min(5*d,this.dataMax-this.dataMin)));if(m-g<this.minRange){var t=this.dataMax-this.dataMin>=this.minRange;var G=this.minRange;var e=(G-m+g)/2;e=[g-e,r(b.min,g-e)];t&&(e[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);g=a(e);m=[g+G,r(b.max,g+G)];t&&(m[2]=c?c.log2lin(this.dataMax):this.dataMax);m=p(m);m-g<G&&(e[0]=m-G,e[1]=r(b.min,m-G),g=a(e))}this.min=g;this.max=m};e.prototype.getClosest=function(){var b;this.categories?
191
- b=1:this.series.forEach(function(c){var g=c.closestPointRange,a=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&B(g)&&a&&(b=B(b)?Math.min(b,g):g)});return b};e.prototype.nameToX=function(b){var g=c(this.categories),a=g?this.categories:this.names,m=b.options.x;b.series.requireSorting=!1;B(m)||(m=this.options.uniqueNames?g?a.indexOf(b.name):r(a.keys[b.name],-1):b.series.autoIncrement());if(-1===m){if(!g)var d=a.length}else d=m;"undefined"!==typeof d&&(this.names[d]=b.name,this.names.keys[b.name]=
192
- d);return d};e.prototype.updateNames=function(){var b=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(b){delete c.keys[b]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)b.max=Math.max(b.max,c.xData.length-1),c.processData(),c.generatePoints();c.data.forEach(function(g,a){if(g&&g.options&&"undefined"!==typeof g.name){var m=b.nameToX(g);"undefined"!==typeof m&&m!==g.x&&(g.x=m,c.xData[a]=m)}})}))};e.prototype.setAxisTranslation=
193
- function(){var b=this,c=b.max-b.min,a=b.linkedParent,m=!!b.categories,d=b.isXAxis,n=b.axisPointRange||0,u=0,f=0,w=b.transA;if(d||m||n){var t=b.getClosest();a?(u=a.minPointOffset,f=a.pointRangePadding):b.series.forEach(function(c){var a=m?1:d?r(c.options.pointRange,t,0):b.axisPointRange||0,w=c.options.pointPlacement;n=Math.max(n,a);if(!b.single||m)c=c.is("xrange")?!d:d,u=Math.max(u,c&&g(w)?0:a/2),f=Math.max(f,c&&"on"===w?0:a)});a=b.ordinal&&b.ordinal.slope&&t?b.ordinal.slope/t:1;b.minPointOffset=u*=
194
- a;b.pointRangePadding=f*=a;b.pointRange=Math.min(n,b.single&&m?1:c);d&&(b.closestPointRange=t)}b.translationSlope=b.transA=w=b.staticScale||b.len/(c+f||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=w*u;C(this,"afterSetAxisTranslation")};e.prototype.minFromRange=function(){return this.max-this.range};e.prototype.setTickInterval=function(b){var c=this.chart,g=this.logarithmic,a=this.options,m=this.isXAxis,d=this.isLinked,u=a.tickPixelInterval,f=this.categories,w=this.softThreshold,G=a.maxPadding,
195
- e=a.minPadding,k=t(a.tickInterval)&&0<=a.tickInterval?a.tickInterval:void 0,p=t(this.threshold)?this.threshold:null;this.dateTime||f||d||this.getTickAmount();var l=r(this.userMin,a.min);var P=r(this.userMax,a.max);if(d){this.linkedParent=c[this.coll][a.linkedTo];var y=this.linkedParent.getExtremes();this.min=r(y.min,y.dataMin);this.max=r(y.max,y.dataMax);a.type!==this.linkedParent.options.type&&L(11,1,c)}else{if(w&&B(p))if(this.dataMin>=p)y=p,e=0;else if(this.dataMax<=p){var N=p;G=0}this.min=r(l,
196
- y,this.dataMin);this.max=r(P,N,this.dataMax)}g&&(this.positiveValuesOnly&&!b&&0>=Math.min(this.min,r(this.dataMin,this.min))&&L(10,1,c),this.min=F(g.log2lin(this.min),16),this.max=F(g.log2lin(this.max),16));this.range&&B(this.max)&&(this.userMin=this.min=l=Math.max(this.dataMin,this.minFromRange()),this.userMax=P=this.max,this.range=null);C(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(f||this.axisPointRange||this.stacking&&this.stacking.usePercentage||
197
- d)&&B(this.min)&&B(this.max)&&(c=this.max-this.min)&&(!B(l)&&e&&(this.min-=c*e),!B(P)&&G&&(this.max+=c*G));t(this.userMin)||(t(a.softMin)&&a.softMin<this.min&&(this.min=l=a.softMin),t(a.floor)&&(this.min=Math.max(this.min,a.floor)));t(this.userMax)||(t(a.softMax)&&a.softMax>this.max&&(this.max=P=a.softMax),t(a.ceiling)&&(this.max=Math.min(this.max,a.ceiling)));w&&B(this.dataMin)&&(p=p||0,!B(l)&&this.min<p&&this.dataMin>=p?this.min=this.options.minRange?Math.min(p,this.max-this.minRange):p:!B(P)&&
198
- this.max>p&&this.dataMax<=p&&(this.max=this.options.minRange?Math.max(p,this.min+this.minRange):p));t(this.min)&&t(this.max)&&!this.chart.polar&&this.min>this.max&&(B(this.options.min)?this.max=this.min:B(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:d&&this.linkedParent&&!k&&u===this.linkedParent.options.tickPixelInterval?k=this.linkedParent.tickInterval:r(k,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-
199
- 1,1):void 0,f?1:(this.max-this.min)*u/Math.max(this.len,u));if(m&&!b){var h=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(b){b.forceCrop=b.forceCropping&&b.forceCropping();b.processData(h)});C(this,"postProcessData",{hasExtemesChanged:h})}this.setAxisTranslation();C(this,"initialAxisTranslation");this.pointRange&&!k&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b=r(a.minTickInterval,this.dateTime&&!this.series.some(function(b){return b.noSharedTooltip})?
200
- this.closestPointRange:0);!k&&this.tickInterval<b&&(this.tickInterval=b);this.dateTime||this.logarithmic||k||(this.tickInterval=n(this.tickInterval,void 0,x(this.tickInterval),r(a.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};e.prototype.setTickPositions=function(){var b=this.options,c=b.tickPositions,g=this.getMinorTickInterval(),a=this.hasVerticalPanning(),m="colorAxis"===this.coll,
201
- d=(m||!a)&&b.startOnTick;a=(m||!a)&&b.endOnTick;m=b.tickPositioner;this.tickmarkOffset=this.categories&&"between"===b.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===g&&this.tickInterval?this.tickInterval/5:g;this.single=this.min===this.max&&B(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==b.allowDecimals);this.tickPositions=g=c&&c.slice();!g&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?
202
- g=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,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(g=[this.min,this.max],L(19,!1,this.chart)),g.length>this.len&&(g=[g[0],g.pop()],g[0]===g[1]&&(g.length=1)),this.tickPositions=g,m&&(m=m.apply(this,
203
- [this.min,this.max])))&&(this.tickPositions=g=m);this.paddedTicks=g.slice(0);this.trimTicks(g,d,a);this.isLinked||(this.single&&2>g.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&(this.min-=.5,this.max+=.5),c||m||this.adjustTickAmount());C(this,"afterSetTickPositions")};e.prototype.trimTicks=function(b,c,g){var a=b[0],m=b[b.length-1],d=!this.isOrdinal&&this.minPointOffset||0;C(this,"trimTicks");if(!this.isLinked){if(c&&-Infinity!==
204
- a)this.min=a;else for(;this.min-d>b[0];)b.shift();if(g)this.max=m;else for(;this.max+d<b[b.length-1];)b.pop();0===b.length&&B(a)&&!this.options.tickPositions&&b.push((m+a)/2)}};e.prototype.alignToOthers=function(){var b={},c=this.options,g;!1!==this.chart.options.chart.alignTicks&&c.alignTicks&&!1!==c.startOnTick&&!1!==c.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(c){var a=c.options;a=[c.horiz?a.left:a.top,a.width,a.height,a.pane].join();c.series.length&&(b[a]?g=!0:b[a]=1)});
205
- return g};e.prototype.getTickAmount=function(){var b=this.options,c=b.tickPixelInterval,g=b.tickAmount;!B(b.tickInterval)&&!g&&this.len<c&&!this.isRadial&&!this.logarithmic&&b.startOnTick&&b.endOnTick&&(g=2);!g&&this.alignToOthers()&&(g=Math.ceil(this.len/c)+1);4>g&&(this.finalTickAmt=g,g=5);this.tickAmount=g};e.prototype.adjustTickAmount=function(){var b=this.options,c=this.tickInterval,g=this.tickPositions,a=this.tickAmount,m=this.finalTickAmt,d=g&&g.length,n=r(this.threshold,this.softThreshold?
206
- 0:null);if(this.hasData()&&t(this.min)&&t(this.max)){if(d<a){for(;g.length<a;)g.length%2||this.min===n?g.push(F(g[g.length-1]+c)):g.unshift(F(g[0]-c));this.transA*=(d-1)/(a-1);this.min=b.startOnTick?g[0]:Math.min(this.min,g[0]);this.max=b.endOnTick?g[g.length-1]:Math.max(this.max,g[g.length-1])}else d>a&&(this.tickInterval*=2,this.setTickPositions());if(B(m)){for(c=b=g.length;c--;)(3===m&&1===c%2||2>=m&&0<c&&c<b-1)&&g.splice(c,1);this.finalTickAmt=void 0}}};e.prototype.setScale=function(){var b=!1,
207
- c=!1;this.series.forEach(function(g){b=b||g.isDirtyData||g.isDirty;c=c||g.xAxis&&g.xAxis.isDirty||!1});this.setAxisSize();var g=this.len!==(this.old&&this.old.len);g||b||c||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=g||this.min!==(this.old&&this.old.min)||this.max!==
208
- (this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();b&&this.panningState&&(this.panningState.isDirty=!0);C(this,"afterSetScale")};e.prototype.setExtremes=function(b,c,g,a,m){var d=this,n=d.chart;g=r(g,!0);d.series.forEach(function(b){delete b.kdTree});m=y(m,{min:b,max:c});C(d,"setExtremes",m,function(){d.userMin=b;d.userMax=c;d.eventArgs=m;g&&n.redraw(a)})};e.prototype.zoom=function(b,c){var g=this,a=this.dataMin,m=this.dataMax,d=this.options,n=Math.min(a,r(d.min,a)),u=Math.max(m,
209
- r(d.max,m));b={newMin:b,newMax:c};C(this,"zoom",b,function(b){var c=b.newMin,d=b.newMax;if(c!==g.min||d!==g.max)g.allowZoomOutside||(B(a)&&(c<n&&(c=n),c>u&&(c=u)),B(m)&&(d<n&&(d=n),d>u&&(d=u))),g.displayBtn="undefined"!==typeof c||"undefined"!==typeof d,g.setExtremes(c,d,!1,void 0,{trigger:"zoom"});b.zoomed=!0});return b.zoomed};e.prototype.setAxisSize=function(){var b=this.chart,c=this.options,g=c.offsets||[0,0,0,0],a=this.horiz,m=this.width=Math.round(G(r(c.width,b.plotWidth-g[3]+g[1]),b.plotWidth)),
210
- d=this.height=Math.round(G(r(c.height,b.plotHeight-g[0]+g[2]),b.plotHeight)),n=this.top=Math.round(G(r(c.top,b.plotTop+g[0]),b.plotHeight,b.plotTop));c=this.left=Math.round(G(r(c.left,b.plotLeft+g[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-d-n;this.right=b.chartWidth-m-c;this.len=Math.max(a?m:d,0);this.pos=a?c:n};e.prototype.getExtremes=function(){var b=this.logarithmic;return{min:b?F(b.lin2log(this.min)):this.min,max:b?F(b.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,
211
- userMin:this.userMin,userMax:this.userMax}};e.prototype.getThreshold=function(b){var c=this.logarithmic,g=c?c.lin2log(this.min):this.min;c=c?c.lin2log(this.max):this.max;null===b||-Infinity===b?b=g:Infinity===b?b=c:g>b?b=g:c<b&&(b=c);return this.translate(b,0,1,0,1)};e.prototype.autoLabelAlign=function(b){var c=(r(b,0)-90*this.side+720)%360;b={align:"center"};C(this,"autoLabelAlign",b,function(b){15<c&&165>c?b.align="right":195<c&&345>c&&(b.align="left")});return b.align};e.prototype.tickSize=function(b){var c=
212
- this.options,g=r(c["tick"===b?"tickWidth":"minorTickWidth"],"tick"===b&&this.isXAxis&&!this.categories?1:0),a=c["tick"===b?"tickLength":"minorTickLength"];if(g&&a){"inside"===c[b+"Position"]&&(a=-a);var m=[a,g]}b={tickSize:m};C(this,"afterTickSize",b);return b.tickSize};e.prototype.labelMetrics=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)};e.prototype.unsquish=function(){var b=
213
- this.options.labels,c=this.horiz,g=this.tickInterval,a=this.len/(((this.categories?1:0)+this.max-this.min)/g),m=b.rotation,n=this.labelMetrics(),u=Math.max(this.max-this.min,0),f=function(b){var c=b/(a||1);c=1<c?Math.ceil(c):1;c*g>u&&Infinity!==b&&Infinity!==a&&u&&(c=Math.ceil(u/g));return F(c*g)},w=g,G,e,x=Number.MAX_VALUE;if(c){if(!b.staggerLines&&!b.step)if(t(m))var k=[m];else a<b.autoRotationLimit&&(k=b.autoRotation);k&&k.forEach(function(b){if(b===m||b&&-90<=b&&90>=b){e=f(Math.abs(n.h/Math.sin(d*
214
- b)));var c=e+Math.abs(b/360);c<x&&(x=c,G=b,w=e)}})}else b.step||(w=f(n.h));this.autoRotation=k;this.labelRotation=r(G,t(m)?m:0);return w};e.prototype.getSlotWidth=function(b){var c=this.chart,g=this.horiz,a=this.options.labels,m=Math.max(this.tickPositions.length-(this.categories?0:1),1),d=c.margin[3];if(b&&t(b.slotWidth))return b.slotWidth;if(g&&2>a.step)return a.rotation?0:(this.staggerLines||1)*this.len/m;if(!g){b=a.style.width;if(void 0!==b)return parseInt(String(b),10);if(d)return d-c.spacing[3]}return.33*
215
- c.chartWidth};e.prototype.renderUnsquish=function(){var b=this.chart,c=b.renderer,a=this.tickPositions,m=this.ticks,d=this.options.labels,n=d.style,r=this.horiz,u=this.getSlotWidth(),f=Math.max(1,Math.round(u-2*d.padding)),w={},t=this.labelMetrics(),G=n.textOverflow,e=0;g(d.rotation)||(w.rotation=d.rotation||0);a.forEach(function(b){b=m[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>e&&(e=b.label.textPxLength)});this.maxLabelLength=e;if(this.autoRotation)e>f&&e>t.h?w.rotation=
216
- this.labelRotation:this.labelRotation=0;else if(u){var x=f;if(!G){var k="clip";for(f=a.length;!r&&f--;){var p=a[f];if(p=m[p].label)p.styles&&"ellipsis"===p.styles.textOverflow?p.css({textOverflow:"clip"}):p.textPxLength>u&&p.css({width:u+"px"}),p.getBBox().height>this.len/a.length-(t.h-t.f)&&(p.specificTextOverflow="ellipsis")}}}w.rotation&&(x=e>.5*b.chartHeight?.33*b.chartHeight:e,G||(k="ellipsis"));if(this.labelAlign=d.align||this.autoLabelAlign(this.labelRotation))w.align=this.labelAlign;a.forEach(function(b){var c=
217
- (b=m[b])&&b.label,g=n.width,a={};c&&(c.attr(w),b.shortenLabel?b.shortenLabel():x&&!g&&"nowrap"!==n.whiteSpace&&(x<c.textPxLength||"SPAN"===c.element.tagName)?(a.width=x+"px",G||(a.textOverflow=c.specificTextOverflow||k),c.css(a)):c.styles&&c.styles.width&&!a.width&&!g&&c.css({width:null}),delete c.specificTextOverflow,b.rotation=w.rotation)},this);this.tickRotCorr=c.rotCorr(t.b,this.labelRotation||0,0!==this.side)};e.prototype.hasData=function(){return this.series.some(function(b){return b.hasData()})||
218
- this.options.showEmpty&&B(this.min)&&B(this.max)};e.prototype.addTitle=function(b){var c=this.chart.renderer,g=this.horiz,a=this.opposite,m=this.options.title,d=this.chart.styledMode,n;this.axisTitle||((n=m.textAlign)||(n=(g?{low:"left",middle:"center",high:"right"}:{low:a?"right":"left",middle:"center",high:a?"left":"right"})[m.align]),this.axisTitle=c.text(m.text||"",0,0,m.useHTML).attr({zIndex:7,rotation:m.rotation,align:n}).addClass("highcharts-axis-title"),d||this.axisTitle.css(u(m.style)),this.axisTitle.add(this.axisGroup),
219
- this.axisTitle.isNew=!0);d||m.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[b?"show":"hide"](b)};e.prototype.generateTick=function(b){var c=this.ticks;c[b]?c[b].addLabel():c[b]=new I(this,b)};e.prototype.getOffset=function(){var c=this,g=this,a=g.chart,m=g.horiz,d=g.options,n=g.side,u=g.ticks,f=g.tickPositions,w=g.coll,t=g.axisParent,e=a.renderer,G=a.inverted&&!g.isZAxis?[1,0,3,2][n]:n,x=g.hasData(),k=d.title,p=d.labels,l=a.axisOffset;a=a.clipOffset;var y=[-1,
220
- 1,1,-1][n],N=d.className,h,q=0,J=0,F=0;g.showAxis=h=x||d.showEmpty;g.staggerLines=g.horiz&&p.staggerLines||void 0;if(!g.axisGroup){var K=function(b,g,a){return e.g(b).attr({zIndex:a}).addClass("highcharts-"+w.toLowerCase()+g+" "+(c.isRadial?"highcharts-radial-axis"+g+" ":"")+(N||"")).add(t)};g.gridGroup=K("grid","-grid",d.gridZIndex);g.axisGroup=K("axis","",d.zIndex);g.labelGroup=K("axis-labels","-labels",p.zIndex)}x||g.isLinked?(f.forEach(function(b){g.generateTick(b)}),g.renderUnsquish(),g.reserveSpaceDefault=
221
- 0===n||2===n||{1:"left",3:"right"}[n]===g.labelAlign,r(p.reserveSpace,"center"===g.labelAlign?!0:null,g.reserveSpaceDefault)&&f.forEach(function(b){F=Math.max(u[b].getLabelSize(),F)}),g.staggerLines&&(F*=g.staggerLines),g.labelOffset=F*(g.opposite?-1:1)):b(u,function(b,c){b.destroy();delete u[c]});if(k&&k.text&&!1!==k.enabled&&(g.addTitle(h),h&&!1!==k.reserveSpace)){g.titleOffset=q=g.axisTitle.getBBox()[m?"height":"width"];var L=k.offset;J=B(L)?0:r(k.margin,m?5:10)}g.renderLine();g.offset=y*r(d.offset,
222
- l[n]?l[n]+(d.margin||0):0);g.tickRotCorr=g.tickRotCorr||{x:0,y:0};k=0===n?-g.labelMetrics().h:2===n?g.tickRotCorr.y:0;x=Math.abs(F)+J;F&&(x=x-k+y*(m?r(p.y,g.tickRotCorr.y+8*y):p.x));g.axisTitleMargin=r(L,x);g.getMaxLabelDimensions&&(g.maxLabelDimensions=g.getMaxLabelDimensions(u,f));"colorAxis"!==w&&(m=this.tickSize("tick"),l[n]=Math.max(l[n],(g.axisTitleMargin||0)+q+y*g.offset,x,f&&f.length&&m?m[0]+y*g.offset:0),d=!g.axisLine||d.offset?0:2*Math.floor(g.axisLine.strokeWidth()/2),a[G]=Math.max(a[G],
223
- d));C(this,"afterGetOffset")};e.prototype.getLinePath=function(b){var c=this.chart,g=this.opposite,a=this.offset,m=this.horiz,d=this.left+(g?this.width:0)+a;a=c.chartHeight-this.bottom-(g?this.height:0)+a;g&&(b*=-1);return c.renderer.crispLine([["M",m?this.left:d,m?a:this.top],["L",m?c.chartWidth-this.right:d,m?a:c.chartHeight-this.bottom]],b)};e.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||
224
- this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};e.prototype.getTitlePosition=function(){var b=this.horiz,c=this.left,g=this.top,a=this.len,m=this.options.title,d=b?c:g,n=this.opposite,r=this.offset,u=m.x,f=m.y,w=this.axisTitle,t=this.chart.renderer.fontMetrics(m.style.fontSize,w);w=Math.max(w.getBBox(null,0).height-t.h-1,0);a={low:d+(b?0:a),middle:d+a/2,high:d+(b?a:0)}[m.align];c=(b?g+this.height:c)+(b?1:-1)*(n?-1:1)*this.axisTitleMargin+[-w,w,
225
- t.f,-w][this.side];b={x:b?a+u:c+(n?this.width:0)+r+u,y:b?c+f-(n?this.height:0)+r:a+f};C(this,"afterGetTitlePosition",{titlePosition:b});return b};e.prototype.renderMinorTick=function(b,c){var g=this.minorTicks;g[b]||(g[b]=new I(this,b,"minor"));c&&g[b].isNew&&g[b].render(null,!0);g[b].render(null,!1,1)};e.prototype.renderTick=function(b,c,g){var a=this.ticks;if(!this.isLinked||b>=this.min&&b<=this.max||this.grid&&this.grid.isColumn)a[b]||(a[b]=new I(this,b)),g&&a[b].isNew&&a[b].render(c,!0,-1),a[b].render(c)};
226
- e.prototype.render=function(){var c=this,g=c.chart,a=c.logarithmic,m=c.options,d=c.isLinked,n=c.tickPositions,r=c.axisTitle,u=c.ticks,f=c.minorTicks,w=c.alternateBands,e=m.stackLabels,G=m.alternateGridColor,x=c.tickmarkOffset,k=c.axisLine,p=c.showAxis,l=q(g.renderer.globalAnimation),y,h;c.labelEdge.length=0;c.overlap=!1;[u,f,w].forEach(function(c){b(c,function(b){b.isActive=!1})});if(c.hasData()||d){var B=c.chart.hasRendered&&c.old&&t(c.old.min);c.minorTickInterval&&!c.categories&&c.getMinorTickPositions().forEach(function(b){c.renderMinorTick(b,
227
- B)});n.length&&(n.forEach(function(b,g){c.renderTick(b,g,B)}),x&&(0===c.min||c.single)&&(u[-1]||(u[-1]=new I(c,-1,null,!0)),u[-1].render(-1)));G&&n.forEach(function(b,m){h="undefined"!==typeof n[m+1]?n[m+1]+x:c.max-x;0===m%2&&b<c.max&&h<=c.max+(g.polar?-x:x)&&(w[b]||(w[b]=new H.PlotLineOrBand(c)),y=b+x,w[b].options={from:a?a.lin2log(y):y,to:a?a.lin2log(h):h,color:G,className:"highcharts-alternate-grid"},w[b].render(),w[b].isActive=!0)});c._addedPlotLB||(c._addedPlotLB=!0,(m.plotLines||[]).concat(m.plotBands||
228
- []).forEach(function(b){c.addPlotBandOrLine(b)}))}[u,f,w].forEach(function(c){var a=[],m=l.duration;b(c,function(b,c){b.isActive||(b.render(c,!1,0),b.isActive=!1,a.push(c))});N(function(){for(var b=a.length;b--;)c[a[b]]&&!c[a[b]].isActive&&(c[a[b]].destroy(),delete c[a[b]])},c!==w&&g.hasRendered&&m?m:0)});k&&(k[k.isPlaced?"animate":"attr"]({d:this.getLinePath(k.strokeWidth())}),k.isPlaced=!0,k[p?"show":"hide"](p));r&&p&&(m=c.getTitlePosition(),t(m.y)?(r[r.isNew?"attr":"animate"](m),r.isNew=!1):(r.attr("y",
229
- -9999),r.isNew=!0));e&&e.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;C(this,"afterRender")};e.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(b){b.render()}));this.series.forEach(function(b){b.isDirty=!0})};e.prototype.getKeepProps=function(){return this.keepProps||e.keepProps};e.prototype.destroy=function(c){var g=this,a=g.plotLinesAndBands,
230
- d=this.eventOptions;C(this,"destroy",{keepEvents:c});c||m(g);[g.ticks,g.minorTicks,g.alternateBands].forEach(function(b){J(b)});if(a)for(c=a.length;c--;)a[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(b){g[b]&&(g[b]=g[b].destroy())});for(var n in g.plotLinesAndBandsGroups)g.plotLinesAndBandsGroups[n]=g.plotLinesAndBandsGroups[n].destroy();b(g,function(b,c){-1===g.getKeepProps().indexOf(c)&&delete g[c]});this.eventOptions=d};e.prototype.drawCrosshair=
231
- function(b,c){var g=this.crosshair,a=r(g&&g.snap,!0),m=this.chart,d,n=this.cross;C(this,"drawCrosshair",{e:b,point:c});b||(b=this.cross&&this.cross.e);if(g&&!1!==(B(c)||!a)){a?B(c)&&(d=r("colorAxis"!==this.coll?c.crosshairPos:null,this.isXAxis?c.plotX:this.len-c.plotY)):d=b&&(this.horiz?b.chartX-this.pos:this.len-b.chartY+this.pos);if(B(d)){var u={value:c&&(this.isXAxis?c.x:r(c.stackY,c.y)),translatedValue:d};m.polar&&y(u,{isCrosshair:!0,chartX:b&&b.chartX,chartY:b&&b.chartY,point:c});u=this.getPlotLinePath(u)||
232
- null}if(!B(u)){this.hideCrosshair();return}a=this.categories&&!this.isRadial;n||(this.cross=n=m.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(a?"category ":"thin ")+(g.className||"")).attr({zIndex:r(g.zIndex,2)}).add(),m.styledMode||(n.attr({stroke:g.color||(a?A.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":r(g.width,1)}).css({"pointer-events":"none"}),g.dashStyle&&n.attr({dashstyle:g.dashStyle})));n.show().attr({d:u});a&&!g.width&&n.attr({"stroke-width":this.transA});
233
- this.cross.e=b}else this.hideCrosshair();C(this,"afterDrawCrosshair",{e:b,point:c})};e.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();C(this,"afterHideCrosshair")};e.prototype.hasVerticalPanning=function(){var b=this.chart.options.chart.panning;return!!(b&&b.enabled&&/y/.test(b.type))};e.prototype.validatePositiveValue=function(b){return t(b)&&0<b};e.prototype.update=function(b,c){var g=this.chart;b=u(this.userOptions,b);this.destroy(!0);this.init(g,b);g.isDirtyBox=!0;r(c,!0)&&g.redraw()};
234
- e.prototype.remove=function(b){for(var c=this.chart,g=this.coll,a=this.series,m=a.length;m--;)a[m]&&a[m].remove(!1);K(c.axes,this);K(c[g],this);c[g].forEach(function(b,c){b.options.index=b.userOptions.index=c});this.destroy();c.isDirtyBox=!0;r(b,!0)&&c.redraw()};e.prototype.setTitle=function(b,c){this.update({title:b},c)};e.prototype.setCategories=function(b,c){this.update({categories:b},c)};e.defaultOptions=h.defaultXAxisOptions;e.keepProps="extKey hcEvents names series userMax userMin".split(" ");
235
- return e}();"";return e});M(h,"Core/Axis/DateTimeAxis.js",[h["Core/Utilities.js"]],function(e){var h=e.addEvent,A=e.getMagnitude,E=e.normalizeTickInterval,v=e.timeUnits,H;(function(e){function z(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function q(d){"datetime"!==d.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new f(this))}var l=[];e.compose=function(d){-1===l.indexOf(d)&&(l.push(d),d.keepProps.push("dateTime"),d.prototype.getTimeTicks=z,h(d,"init",
236
- q));return d};var f=function(){function d(a){this.axis=a}d.prototype.normalizeTimeTickInterval=function(a,d){var f=d||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];d=f[f.length-1];var e=v[d[0]],p=d[1],l;for(l=0;l<f.length&&!(d=f[l],e=v[d[0]],p=d[1],f[l+1]&&a<=(e*p[p.length-1]+v[f[l+1][0]])/2);l++);e===v.year&&a<5*e&&(p=[1,2,5]);a=E(a/e,p,"year"===d[0]?
237
- Math.max(A(a/e),1):1);return{unitRange:e,count:a,unitName:d[0]}};d.prototype.getXDateFormat=function(a,d){var f=this.axis;return f.closestPointRange?f.chart.time.getDateFormat(f.closestPointRange,a,f.options.startOfWeek,d)||d.year:d.day};return d}();e.Additions=f})(H||(H={}));return H});M(h,"Core/Axis/LogarithmicAxis.js",[h["Core/Utilities.js"]],function(e){var h=e.addEvent,A=e.getMagnitude,E=e.normalizeTickInterval,v=e.pick,H;(function(e){function z(d){var a=this.logarithmic;"logarithmic"!==d.userOptions.type?
238
- this.logarithmic=void 0:a||(this.logarithmic=new f(this))}function q(){var d=this.logarithmic;d&&(this.lin2val=function(a){return d.lin2log(a)},this.val2lin=function(a){return d.log2lin(a)})}var l=[];e.compose=function(d){-1===l.indexOf(d)&&(l.push(d),d.keepProps.push("logarithmic"),h(d,"init",z),h(d,"afterInit",q));return d};var f=function(){function d(a){this.axis=a}d.prototype.getLogTickPositions=function(a,d,f,e){var k=this.axis,p=k.len,l=k.options,h=[];e||(this.minorAutoInterval=void 0);if(.5<=
239
- a)a=Math.round(a),h=k.getLinearTickPositions(a,d,f);else if(.08<=a){var y=Math.floor(d),C,x=l=void 0;for(p=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];y<f+1&&!x;y++){var c=p.length;for(C=0;C<c&&!x;C++){var t=this.log2lin(this.lin2log(y)*p[C]);t>d&&(!e||l<=f)&&"undefined"!==typeof l&&h.push(l);l>f&&(x=!0);l=t}}}else d=this.lin2log(d),f=this.lin2log(f),a=e?k.getMinorTickInterval():l.tickInterval,a=v("auto"===a?null:a,this.minorAutoInterval,l.tickPixelInterval/(e?5:1)*(f-d)/((e?p/k.tickPositions.length:
240
- p)||1)),a=E(a,void 0,A(a)),h=k.getLinearTickPositions(a,d,f).map(this.log2lin),e||(this.minorAutoInterval=a/5);e||(k.tickInterval=a);return h};d.prototype.lin2log=function(a){return Math.pow(10,a)};d.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return d}();e.Additions=f})(H||(H={}));return H});M(h,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[h["Core/Utilities.js"]],function(e){var h=e.erase,A=e.extend,E=e.isNumber,v;(function(e){var v=[],z;e.compose=function(e,f){z||(z=e);-1===
241
- v.indexOf(f)&&(v.push(f),A(f.prototype,q.prototype));return f};var q=function(){function e(){}e.prototype.getPlotBandPath=function(f,d,a){void 0===a&&(a=this.options);var e=this.getPlotLinePath({value:d,force:!0,acrossPanes:a.acrossPanes}),k=[],l=this.horiz;d=!E(this.min)||!E(this.max)||f<this.min&&d<this.min||f>this.max&&d>this.max;f=this.getPlotLinePath({value:f,force:!0,acrossPanes:a.acrossPanes});a=1;if(f&&e){if(d){var h=f.toString()===e.toString();a=0}for(d=0;d<f.length;d+=2){var q=f[d],K=f[d+
242
- 1],L=e[d],y=e[d+1];"M"!==q[0]&&"L"!==q[0]||"M"!==K[0]&&"L"!==K[0]||"M"!==L[0]&&"L"!==L[0]||"M"!==y[0]&&"L"!==y[0]||(l&&L[1]===q[1]?(L[1]+=a,y[1]+=a):l||L[2]!==q[2]||(L[2]+=a,y[2]+=a),k.push(["M",q[1],q[2]],["L",K[1],K[2]],["L",y[1],y[2]],["L",L[1],L[2]],["Z"]));k.isFlat=h}}return k};e.prototype.addPlotBand=function(f){return this.addPlotBandOrLine(f,"plotBands")};e.prototype.addPlotLine=function(f){return this.addPlotBandOrLine(f,"plotLines")};e.prototype.addPlotBandOrLine=function(f,d){var a=this,
243
- e=this.userOptions,k=new z(this,f);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||[]).forEach(function(d){a.addPlotBandOrLine(d)}));if(d){var l=e[d]||[];l.push(f);e[d]=l}this.plotLinesAndBands.push(k)}return k};e.prototype.removePlotBandOrLine=function(f){var d=this.plotLinesAndBands,a=this.options,e=this.userOptions;if(d){for(var k=d.length;k--;)d[k].id===f&&d[k].destroy();[a.plotLines||[],e.plotLines||[],a.plotBands||[],e.plotBands||
244
- []].forEach(function(a){for(k=a.length;k--;)(a[k]||{}).id===f&&h(a,a[k])})}};e.prototype.removePlotBand=function(f){this.removePlotBandOrLine(f)};e.prototype.removePlotLine=function(f){this.removePlotBandOrLine(f)};return e}()})(v||(v={}));return v});M(h,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[h["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],h["Core/Utilities.js"]],function(e,h){var A=h.arrayMax,D=h.arrayMin,v=h.defined,H=h.destroyObjectProperties,I=h.erase,z=h.fireEvent,q=h.merge,l=h.objectEach,
245
- f=h.pick;h=function(){function d(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)}d.compose=function(a){return e.compose(d,a)};d.prototype.render=function(){z(this,"render");var a=this,d=a.axis,e=d.horiz,h=d.logarithmic,B=a.options,J=B.color,K=f(B.zIndex,0),L=B.events,y={},C=d.chart.renderer,x=B.label,c=a.label,t=B.to,g=B.from,u=B.value,n=a.svgElem,b=[],r=v(g)&&v(t);b=v(u);var G=!n,m={"class":"highcharts-plot-"+(r?"band ":"line ")+(B.className||"")},w=r?"bands":"lines";h&&(g=h.log2lin(g),t=h.log2lin(t),
246
- u=h.log2lin(u));d.chart.styledMode||(b?(m.stroke=J||"#999999",m["stroke-width"]=f(B.width,1),B.dashStyle&&(m.dashstyle=B.dashStyle)):r&&(m.fill=J||"#e6ebf5",B.borderWidth&&(m.stroke=B.borderColor,m["stroke-width"]=B.borderWidth)));y.zIndex=K;w+="-"+K;(h=d.plotLinesAndBandsGroups[w])||(d.plotLinesAndBandsGroups[w]=h=C.g("plot-"+w).attr(y).add());G&&(a.svgElem=n=C.path().attr(m).add(h));if(b)b=d.getPlotLinePath({value:u,lineWidth:n.strokeWidth(),acrossPanes:B.acrossPanes});else if(r)b=d.getPlotBandPath(g,
247
- t,B);else return;!a.eventsAdded&&L&&(l(L,function(b,c){n.on(c,function(b){L[c].apply(a,[b])})}),a.eventsAdded=!0);(G||!n.d)&&b&&b.length?n.attr({d:b}):n&&(b?(n.show(!0),n.animate({d:b})):n.d&&(n.hide(),c&&(a.label=c=c.destroy())));x&&(v(x.text)||v(x.formatter))&&b&&b.length&&0<d.width&&0<d.height&&!b.isFlat?(x=q({align:e&&r&&"center",x:e?!r&&4:10,verticalAlign:!e&&r&&"middle",y:e?r?16:10:r?6:-4,rotation:e&&!r&&90},x),this.renderLabel(x,b,r,K)):c&&c.hide();return a};d.prototype.renderLabel=function(a,
248
- d,f,e){var k=this.axis,l=k.chart.renderer,p=this.label;p||(this.label=p=l.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(f?"band":"line")+"-label "+(a.className||""),zIndex:e}).add(),k.chart.styledMode||p.css(q({textOverflow:"ellipsis"},a.style)));e=d.xBounds||[d[0][1],d[1][1],f?d[2][1]:d[0][1]];d=d.yBounds||[d[0][2],d[1][2],f?d[2][2]:d[0][2]];f=D(e);l=D(d);p.align(a,!1,{x:f,y:l,width:A(e)-f,height:A(d)-l});p.alignValue&&"left"!==
249
- p.alignValue||p.css({width:(90===p.rotation?k.height-(p.alignAttr.y-k.top):k.width-(p.alignAttr.x-k.left))+"px"});p.show(!0)};d.prototype.getLabelText=function(a){return v(a.formatter)?a.formatter.call(this):a.text};d.prototype.destroy=function(){I(this.axis.plotLinesAndBands,this);delete this.axis;H(this)};return d}();"";"";return h});M(h,"Core/Tooltip.js",[h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Renderer/RendererUtilities.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Utilities.js"]],
250
- function(e,h,A,E,v){var D=e.format,I=h.doc,z=A.distribute,q=v.addEvent,l=v.clamp,f=v.css,d=v.defined,a=v.discardElement,p=v.extend,k=v.fireEvent,F=v.isArray,B=v.isNumber,J=v.isString,K=v.merge,L=v.pick,y=v.splat,C=v.syncTimeout;e=function(){function e(c,a){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=c;this.init(c,a)}e.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",
251
- attributes:{id:"drop-shadow-"+c.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};e.prototype.bodyFormatter=function(c){return c.map(function(c){var g=c.series.tooltipOptions;return(g[(c.point.formatPrefix||
252
- "point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,g[(c.point.formatPrefix||"point")+"Format"]||"")})};e.prototype.cleanSplit=function(c){this.chart.series.forEach(function(a){var g=a&&a.tt;g&&(!g.isActive||c?a.tt=g.destroy():g.isActive=!1)})};e.prototype.defaultFormatter=function(c){var a=this.points||y(this);var g=[c.tooltipFooterHeaderFormatter(a[0])];g=g.concat(c.bodyFormatter(a));g.push(c.tooltipFooterHeaderFormatter(a[0],!0));return g};e.prototype.destroy=function(){this.label&&(this.label=
253
- this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),a(this.container));v.clearTimeout(this.hideTimer);v.clearTimeout(this.tooltipTimeout)};e.prototype.getAnchor=function(c,a){var g=this.chart,d=g.pointer,n=g.inverted,b=g.plotTop,r=g.plotLeft,f,m,e=0,t=0;c=y(c);this.followPointer&&a?("undefined"===typeof a.chartX&&(a=d.normalize(a)),d=[a.chartX-r,a.chartY-b]):c[0].tooltipPos?d=c[0].tooltipPos:(c.forEach(function(c){f=
254
- c.series.yAxis;m=c.series.xAxis;e+=c.plotX||0;t+=c.plotLow?(c.plotLow+(c.plotHigh||0))/2:c.plotY||0;m&&f&&(n?(e+=b+g.plotHeight-m.len-m.pos,t+=r+g.plotWidth-f.len-f.pos):(e+=m.pos-r,t+=f.pos-b))}),e/=c.length,t/=c.length,d=[n?g.plotWidth-t:e,n?g.plotHeight-e:t],this.shared&&1<c.length&&a&&(n?d[0]=a.chartX-r:d[1]=a.chartY-b));return d.map(Math.round)};e.prototype.getLabel=function(){var c=this,a=this.chart.styledMode,g=this.options,u=this.split&&this.allowShared,n="tooltip"+(d(g.className)?" "+g.className:
255
- ""),b=g.style.pointerEvents||(!this.followPointer&&g.stickOnContact?"auto":"none"),r=function(){c.inContact=!0},e=function(b){var g=c.chart.hoverSeries;c.inContact=c.shouldStickOnContact()&&c.chart.pointer.inClass(b.relatedTarget,"highcharts-tooltip");if(!c.inContact&&g&&g.onMouseOut)g.onMouseOut()},m,w=this.chart.renderer;if(c.label){var x=!c.label.hasClass("highcharts-label");(u&&!x||!u&&x)&&c.destroy()}if(!this.label){if(this.outside){x=this.chart.options.chart.style;var k=E.getRendererType();
256
- this.container=m=h.doc.createElement("div");m.className="highcharts-tooltip-container";f(m,{position:"absolute",top:"1px",pointerEvents:b,zIndex:Math.max(this.options.style.zIndex||0,(x&&x.zIndex||0)+3)});q(m,"mouseenter",r);q(m,"mouseleave",e);h.doc.body.appendChild(m);this.renderer=w=new k(m,0,0,x,void 0,void 0,w.styledMode)}u?this.label=w.g(n):(this.label=w.label("",0,0,g.shape,void 0,void 0,g.useHTML,void 0,n).attr({padding:g.padding,r:g.borderRadius}),a||this.label.attr({fill:g.backgroundColor,
257
- "stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:b}).shadow(g.shadow));a&&g.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c.outside&&!c.split){var l=this.label,p=l.xSetter,C=l.ySetter;l.xSetter=function(b){p.call(l,c.distance);m.style.left=b+"px"};l.ySetter=function(b){C.call(l,c.distance);m.style.top=b+"px"}}this.label.on("mouseenter",r).on("mouseleave",e).attr({zIndex:8}).add()}return this.label};e.prototype.getPosition=function(c,
258
- a,g){var d=this.chart,n=this.distance,b={},r=d.inverted&&g.h||0,f=this.outside,m=f?I.documentElement.clientWidth-2*n:d.chartWidth,e=f?Math.max(I.body.scrollHeight,I.documentElement.scrollHeight,I.body.offsetHeight,I.documentElement.offsetHeight,I.documentElement.clientHeight):d.chartHeight,t=d.pointer.getChartPosition(),x=function(b){var r="x"===b;return[b,r?m:e,r?c:a].concat(f?[r?c*t.scaleX:a*t.scaleY,r?t.left-n+(g.plotX+d.plotLeft)*t.scaleX:t.top-n+(g.plotY+d.plotTop)*t.scaleY,0,r?m:e]:[r?c:a,r?
259
- g.plotX+d.plotLeft:g.plotY+d.plotTop,r?d.plotLeft:d.plotTop,r?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},k=x("y"),l=x("x"),p;x=!!g.negative;!d.polar&&d.hoverSeries&&d.hoverSeries.yAxis&&d.hoverSeries.yAxis.reversed&&(x=!x);var C=!this.followPointer&&L(g.ttBelow,!d.inverted===x),y=function(c,g,a,m,d,u,e){var w=f?"y"===c?n*t.scaleY:n*t.scaleX:n,G=(a-m)/2,x=m<d-n,k=d+n+m<g,l=d-w-a+G;d=d+w-G;if(C&&k)b[c]=d;else if(!C&&x)b[c]=l;else if(x)b[c]=Math.min(e-m,0>l-r?l:l-r);else if(k)b[c]=Math.max(u,d+
260
- r+a>g?d:d+r);else return!1},h=function(c,g,a,m,d){var r;d<n||d>g-n?r=!1:b[c]=d<a/2?1:d>g-m/2?g-m-2:d-a/2;return r},Q=function(b){var c=k;k=l;l=c;p=b},q=function(){!1!==y.apply(0,k)?!1!==h.apply(0,l)||p||(Q(!0),q()):p?b.x=b.y=0:(Q(!0),q())};(d.inverted||1<this.len)&&Q();q();return b};e.prototype.hide=function(c){var a=this;v.clearTimeout(this.hideTimer);c=L(c,this.options.hideDelay);this.isHidden||(this.hideTimer=C(function(){a.getLabel().fadeOut(c?void 0:c);a.isHidden=!0},c))};e.prototype.init=function(c,
261
- a){this.chart=c;this.options=a;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=a.split&&!c.inverted&&!c.polar;this.shared=a.shared||this.split;this.outside=L(a.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))};e.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};e.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};e.prototype.move=function(c,a,g,d){var n=this,b=n.now,r=!1!==n.options.animation&&
262
- !n.isHidden&&(1<Math.abs(c-b.x)||1<Math.abs(a-b.y)),f=n.followPointer||1<n.len;p(b,{x:r?(2*b.x+c)/3:c,y:r?(b.y+a)/2:a,anchorX:f?void 0:r?(2*b.anchorX+g)/3:g,anchorY:f?void 0:r?(b.anchorY+d)/2:d});n.getLabel().attr(b);n.drawTracker();r&&(v.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){n&&n.move(c,a,g,d)},32))};e.prototype.refresh=function(c,a){var g=this.chart,d=this.options,n=y(c),b=n[0],r=[],f=d.formatter||this.defaultFormatter,m=this.shared,e=g.styledMode,x={};if(d.enabled){v.clearTimeout(this.hideTimer);
263
- this.allowShared=!(!F(c)&&c.series&&c.series.noSharedTooltip);this.followPointer=!this.split&&b.series.tooltipOptions.followPointer;c=this.getAnchor(c,a);var t=c[0],l=c[1];m&&this.allowShared?(g.pointer.applyInactiveState(n),n.forEach(function(b){b.setState("hover");r.push(b.getLabelConfig())}),x={x:b.category,y:b.y},x.points=r):x=b.getLabelConfig();this.len=r.length;f=f.call(x,this);m=b.series;this.distance=L(m.tooltipOptions.distance,16);if(!1===f)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(f,
264
- n);else{var p=t,C=l;a&&g.pointer.isDirectTouch&&(p=a.chartX-g.plotLeft,C=a.chartY-g.plotTop);if(g.polar||!1===m.options.clip||n.some(function(b){return b.series.shouldShowTooltip(p,C)}))a=this.getLabel(),d.style.width&&!e||a.css({width:this.chart.spacingBox.width+"px"}),a.attr({text:f&&f.join?f.join(""):f}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+L(b.colorIndex,m.colorIndex)),e||a.attr({stroke:d.borderColor||b.color||m.color||"#666666"}),this.updatePosition({plotX:t,
265
- plotY:l,negative:b.negative,ttBelow:b.ttBelow,h:c[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}k(this,"refresh")}};e.prototype.renderSplit=function(c,a){function g(b,c,g,a,m){void 0===m&&(m=!0);g?(c=A?0:ea,b=l(b-a/2,R.left,R.right-a-(d.outside?D:0))):(c-=H,b=m?b-a-B:b+B,b=l(b,m?b:R.left,R.right));return{x:b,y:c}}var d=this,n=d.chart,b=d.chart,r=b.chartWidth,f=b.chartHeight,m=b.plotHeight,e=b.plotLeft,x=b.plotTop,t=b.pointer,k=b.scrollablePixelsY;
266
- k=void 0===k?0:k;var C=b.scrollablePixelsX,y=b.scrollingContainer;y=void 0===y?{scrollLeft:0,scrollTop:0}:y;var h=y.scrollLeft;y=y.scrollTop;var q=b.styledMode,B=d.distance,Q=d.options,F=d.options.positioner,R=d.outside&&"number"!==typeof C?I.documentElement.getBoundingClientRect():{left:h,right:h+r,top:y,bottom:y+f},K=d.getLabel(),v=this.renderer||n.renderer,A=!(!n.xAxis[0]||!n.xAxis[0].opposite);n=t.getChartPosition();var D=n.left;n=n.top;var H=x+y,E=0,ea=m-k;J(c)&&(c=[!1,c]);c=c.slice(0,a.length+
267
- 1).reduce(function(b,c,n){if(!1!==c&&""!==c){n=a[n-1]||{isHeader:!0,plotX:a[0].plotX,plotY:m,series:{}};var r=n.isHeader,f=r?d:n.series;c=c.toString();var u=f.tt,w=n.isHeader;var t=n.series;var G="highcharts-color-"+L(n.colorIndex,t.colorIndex,"none");u||(u={padding:Q.padding,r:Q.borderRadius},q||(u.fill=Q.backgroundColor,u["stroke-width"]=Q.borderWidth),u=v.label("",0,0,Q[w?"headerShape":"shape"],void 0,void 0,Q.useHTML).addClass((w?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+G).attr(u).add(K));
268
- u.isActive=!0;u.attr({text:c});q||u.css(Q.style).shadow(Q.shadow).attr({stroke:Q.borderColor||n.color||t.color||"#333333"});f=f.tt=u;w=f.getBBox();c=w.width+f.strokeWidth();r&&(E=w.height,ea+=E,A&&(H-=E));t=n.plotX;t=void 0===t?0:t;G=n.plotY;G=void 0===G?0:G;u=n.series;if(n.isHeader){t=e+t;var k=x+m/2}else{var C=u.xAxis,p=u.yAxis;t=C.pos+l(t,-B,C.len+B);u.shouldShowTooltip(0,p.pos-x+G,{ignoreX:!0})&&(k=p.pos+G)}t=l(t,R.left-B,R.right+B);"number"===typeof k?(w=w.height+1,G=F?F.call(d,c,w,n):g(t,k,
269
- r,c),b.push({align:F?0:void 0,anchorX:t,anchorY:k,boxWidth:c,point:n,rank:L(G.rank,r?1:0),size:w,target:G.y,tt:f,x:G.x})):f.isActive=!1}return b},[]);!F&&c.some(function(b){var c=(d.outside?D:0)+b.anchorX;return c<R.left&&c+b.boxWidth<R.right?!0:c<D-R.left+b.boxWidth&&R.right-c>c})&&(c=c.map(function(b){var c=g(b.anchorX,b.anchorY,b.point.isHeader,b.boxWidth,!1);return p(b,{target:c.y,x:c.x})}));d.cleanSplit();z(c,ea);var M=D,Y=D;c.forEach(function(b){var c=b.x,g=b.boxWidth;b=b.isHeader;b||(d.outside&&
270
- D+c<M&&(M=D+c),!b&&d.outside&&M+g>Y&&(Y=D+c))});c.forEach(function(b){var c=b.x,g=b.anchorX,a=b.pos,m=b.point.isHeader;a={visibility:"undefined"===typeof a?"hidden":"inherit",x:c,y:a+H,anchorX:g,anchorY:b.anchorY};if(d.outside&&c<g){var n=D-M;0<n&&(m||(a.x=c+n,a.anchorX=g+n),m&&(a.x=(Y-M)/2,a.anchorX=g+n))}b.tt.attr(a)});c=d.container;k=d.renderer;d.outside&&c&&k&&(b=K.getBBox(),k.setSize(b.width+b.x,b.height+b.y,!1),c.style.left=M+"px",c.style.top=n+"px")};e.prototype.drawTracker=function(){if(this.followPointer||
271
- !this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var c=this.chart,a=this.label,g=this.shared?c.hoverPoints:c.hoverPoint;if(a&&g){var d={x:0,y:0,width:0,height:0};g=this.getAnchor(g);var n=a.getBBox();g[0]+=c.plotLeft-a.translateX;g[1]+=c.plotTop-a.translateY;d.x=Math.min(0,g[0]);d.y=Math.min(0,g[1]);d.width=0>g[0]?Math.max(Math.abs(g[0]),n.width-g[0]):Math.max(Math.abs(g[0]),n.width);d.height=0>g[1]?Math.max(Math.abs(g[1]),n.height-Math.abs(g[1])):Math.max(Math.abs(g[1]),n.height);
272
- this.tracker?this.tracker.attr(d):(this.tracker=a.renderer.rect(d).addClass("highcharts-tracker").add(a),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};e.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};e.prototype.tooltipFooterHeaderFormatter=function(c,a){var g=c.series,d=g.tooltipOptions,n=g.xAxis,b=n&&n.dateTime;n={isFooter:a,
273
- labelConfig:c};var r=d.xDateFormat,f=d[a?"footerFormat":"headerFormat"];k(this,"headerFormatter",n,function(a){b&&!r&&B(c.key)&&(r=b.getXDateFormat(c.key,d.dateTimeLabelFormats));b&&r&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(b){f=f.replace("{point."+b+"}","{point."+b+":"+r+"}")});g.chart.styledMode&&(f=this.styledModeFormat(f));a.text=D(f,{point:c,series:g},this.chart)});return n.text};e.prototype.update=function(c){this.destroy();K(!0,this.chart.options.tooltip.userOptions,c);
274
- this.init(this.chart,K(!0,this.options,c))};e.prototype.updatePosition=function(c){var a=this.chart,g=this.options,d=a.pointer,n=this.getLabel();d=d.getChartPosition();var b=(g.positioner||this.getPosition).call(this,n.width,n.height,c),r=c.plotX+a.plotLeft;c=c.plotY+a.plotTop;if(this.outside){g=g.borderWidth+2*this.distance;this.renderer.setSize(n.width+g,n.height+g,!1);if(1!==d.scaleX||1!==d.scaleY)f(this.container,{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),r*=d.scaleX,c*=d.scaleY;r+=d.left-
275
- b.x;c+=d.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),r,c)};return e}();"";return e});M(h,"Core/Series/Point.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Animation/AnimationUtilities.js"],h["Core/DefaultOptions.js"],h["Core/FormatUtilities.js"],h["Core/Utilities.js"]],function(e,h,A,E,v){var D=h.animObject,I=A.defaultOptions,z=E.format,q=v.addEvent,l=v.defined,f=v.erase,d=v.extend,a=v.fireEvent,p=v.getNestedProperty,k=v.isArray,F=v.isFunction,B=v.isNumber,J=v.isObject,K=v.merge,L=v.objectEach,
276
- y=v.pick,C=v.syncTimeout,x=v.removeEvent,c=v.uniqueKey;h=function(){function t(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}t.prototype.animateBeforeDestroy=function(){var c=this,a={x:c.startXPos,opacity:0},n=c.getGraphicalProps();n.singular.forEach(function(b){c[b]=c[b].animate("dataLabel"===b?{x:c[b].startXPos,y:c[b].startYPos,
277
- opacity:0}:a)});n.plural.forEach(function(b){c[b].forEach(function(b){b.element&&b.animate(d({x:c.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})};t.prototype.applyOptions=function(c,a){var g=this.series,b=g.options.pointValKey||g.pointValKey;c=t.prototype.optionsToObject.call(this,c);d(this,c);this.options=this.options?d(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;b&&(this.y=t.prototype.getNestedProperty.call(this,b));this.formatPrefix=(this.isNull=
278
- y(this.isValid&&!this.isValid(),null===this.x||!B(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof a&&g.xAxis&&g.xAxis.hasNames&&(this.x=g.xAxis.nameToX(this));"undefined"===typeof this.x&&g?this.x="undefined"===typeof a?g.autoIncrement():a:B(c.x)&&g.options.relativeXValue&&(this.x=g.autoIncrement(c.x));return this};t.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)x(a),a.destroyElements();for(m in a)a[m]=null}var a=
279
- this,d=a.series,b=d.chart;d=d.options.dataSorting;var r=b.hoverPoints,e=D(a.series.chart.renderer.globalAnimation),m;a.legendItem&&b.legend.destroyItem(a);r&&(a.setState(),f(r,a),r.length||(b.hoverPoints=null));if(a===b.hoverPoint)a.onMouseOut();d&&d.enabled?(this.animateBeforeDestroy(),C(c,e.duration)):c();b.pointCount--};t.prototype.destroyElements=function(c){var g=this;c=g.getGraphicalProps(c);c.singular.forEach(function(c){g[c]=g[c].destroy()});c.plural.forEach(function(c){g[c].forEach(function(b){b.element&&
280
- b.destroy()});delete g[c]})};t.prototype.firePointEvent=function(c,d,n){var b=this,g=this.series.options;(g.point.events[c]||b.options&&b.options.events&&b.options.events[c])&&b.importEvents();"click"===c&&g.allowPointSelect&&(n=function(c){b.select&&b.select(null,c.ctrlKey||c.metaKey||c.shiftKey)});a(b,c,d,n)};t.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+
281
- ("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};t.prototype.getGraphicalProps=function(c){var g=this,a=[],b={singular:[],plural:[]},d;c=c||{graphic:1,dataLabel:1};c.graphic&&a.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&a.push("dataLabel","dataLabelUpper","connector");for(d=a.length;d--;){var f=a[d];g[f]&&
282
- b.singular.push(f)}["dataLabel","connector"].forEach(function(a){var d=a+"s";c[a]&&g[d]&&b.plural.push(d)});return b};t.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};t.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?p(c,this.options):this[c]};t.prototype.getZone=function(){var c=this.series,
283
- a=c.zones;c=c.zoneAxis||"y";var d,b=0;for(d=a[b];this[c]>=d.value;)d=a[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};t.prototype.init=function(g,d,n){this.series=g;this.applyOptions(d,n);this.id=l(this.id)?this.id:c();this.resolveColor();g.chart.pointCount++;a(this,"afterInit");
284
- return this};t.prototype.optionsToObject=function(c){var g=this.series,a=g.options.keys,b=a||g.pointArrayMap||["y"],d=b.length,f={},m=0,e=0;if(B(c)||null===c)f[b[0]]=c;else if(k(c))for(!a&&c.length>d&&(g=typeof c[0],"string"===g?f.name=c[0]:"number"===g&&(f.x=c[0]),m++);e<d;)a&&"undefined"===typeof c[m]||(0<b[e].indexOf(".")?t.prototype.setNestedProperty(f,c[m],b[e]):f[b[e]]=c[m]),m++,e++;else"object"===typeof c&&(f=c,c.dataLabels&&(g._hasPointLabels=!0),c.marker&&(g._hasPointMarkers=!0));return f};
285
- t.prototype.resolveColor=function(){var c=this.series,a=c.chart.styledMode;var d=c.chart.options.chart.colorCount;delete this.nonZonedColor;if(c.options.colorByPoint){if(!a){d=c.options.colors||c.chart.options.colors;var b=d[c.colorCounter];d=d.length}a=c.colorCounter;c.colorCounter++;c.colorCounter===d&&(c.colorCounter=0)}else a||(b=c.color),a=c.colorIndex;this.colorIndex=y(this.options.colorIndex,a);this.color=y(this.options.color,b)};t.prototype.setNestedProperty=function(c,a,d){d.split(".").reduce(function(b,
286
- c,g,d){b[c]=d.length-1===g?a:J(b[c],!0)?b[c]:{};return b[c]},c);return c};t.prototype.tooltipFormatter=function(c){var g=this.series,a=g.tooltipOptions,b=y(a.valueDecimals,""),d=a.valuePrefix||"",f=a.valueSuffix||"";g.chart.styledMode&&(c=g.chart.tooltip.styledModeFormat(c));(g.pointArrayMap||["y"]).forEach(function(g){g="{point."+g;if(d||f)c=c.replace(RegExp(g+"}","g"),d+g+"}"+f);c=c.replace(RegExp(g+"}","g"),g+":,."+b+"f}")});return z(c,{point:this,series:this.series},g.chart)};t.prototype.update=
287
- function(c,a,d,b){function g(){n.applyOptions(c);var b=f&&n.hasDummyGraphic;b=null===n.y?!b:b;f&&b&&(n.graphic=f.destroy(),delete n.hasDummyGraphic);J(c,!0)&&(f&&f.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(n.graphic=f.destroy()),c&&c.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy()));x=n.index;m.updateParallelArrays(n,x);u.data[x]=J(u.data[x],!0)||J(c,!0)?n.options:y(c,u.data[x]);m.isDirty=m.isDirtyData=!0;!m.fixedBox&&
288
- m.hasCartesianSeries&&(e.isDirtyBox=!0);"point"===u.legendType&&(e.isDirtyLegend=!0);a&&e.redraw(d)}var n=this,m=n.series,f=n.graphic,e=m.chart,u=m.options,x;a=y(a,!0);!1===b?g():n.firePointEvent("update",{options:c},g)};t.prototype.remove=function(c,a){this.series.removePoint(this.series.data.indexOf(this),c,a)};t.prototype.select=function(c,a){var g=this,b=g.series,d=b.chart;this.selectedStaging=c=y(c,!g.selected);g.firePointEvent(c?"select":"unselect",{accumulate:a},function(){g.selected=g.options.selected=
289
- c;b.options.data[b.data.indexOf(g)]=g.options;g.setState(c&&"select");a||d.getSelectedPoints().forEach(function(b){var c=b.series;b.selected&&b!==g&&(b.selected=b.options.selected=!1,c.options.data[c.data.indexOf(b)]=b.options,b.setState(d.hoverPoints&&c.options.inactiveOtherPoints?"inactive":""),b.firePointEvent("unselect"))})});delete this.selectedStaging};t.prototype.onMouseOver=function(c){var a=this.series.chart,g=a.pointer;c=c?g.normalize(c):g.getChartCoordinatesFromPoint(this,a.inverted);g.runPointActions(c,
290
- this)};t.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};t.prototype.importEvents=function(){if(!this.hasImportedEvents){var c=this,a=K(c.series.options.point,c.options).events;c.events=a;L(a,function(a,b){F(a)&&q(c,b,a)});this.hasImportedEvents=!0}};t.prototype.setState=function(c,f){var g=this.series,b=this.state,r=g.options.states[c||
291
- "normal"]||{},u=I.plotOptions[g.type].marker&&g.options.marker,m=u&&!1===u.enabled,w=u&&u.states&&u.states[c||"normal"]||{},x=!1===w.enabled,k=this.marker||{},t=g.chart,l=u&&g.markerAttribs,C=g.halo,p,h=g.stateMarkerGraphic;c=c||"";if(!(c===this.state&&!f||this.selected&&"select"!==c||!1===r.enabled||c&&(x||m&&!1===w.enabled)||c&&k.states&&k.states[c]&&!1===k.states[c].enabled)){this.state=c;l&&(p=g.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){b&&this.graphic.removeClass("highcharts-point-"+
292
- b);c&&this.graphic.addClass("highcharts-point-"+c);if(!t.styledMode){var q=g.pointAttribs(this,c);var Q=y(t.options.chart.animation,r.animation);g.options.inactiveOtherPoints&&B(q.opacity)&&((this.dataLabels||[]).forEach(function(b){b&&b.animate({opacity:q.opacity},Q)}),this.connector&&this.connector.animate({opacity:q.opacity},Q));this.graphic.animate(q,Q)}p&&this.graphic.animate(p,y(t.options.chart.animation,w.animation,u.animation));h&&h.hide()}else{if(c&&w){b=k.symbol||g.symbol;h&&h.currentSymbol!==
293
- b&&(h=h.destroy());if(p)if(h)h[f?"animate":"attr"]({x:p.x,y:p.y});else b&&(g.stateMarkerGraphic=h=t.renderer.symbol(b,p.x,p.y,p.width,p.height).add(g.markerGroup),h.currentSymbol=b);!t.styledMode&&h&&"inactive"!==this.state&&h.attr(g.pointAttribs(this,c))}h&&(h[c&&this.isInside?"show":"hide"](),h.element.point=this,h.addClass(this.getClassName(),!0))}r=r.halo;p=(h=this.graphic||h)&&h.visibility||"inherit";r&&r.size&&h&&"hidden"!==p&&!this.isCluster?(C||(g.halo=C=t.renderer.path().add(h.parentGroup)),
294
- C.show()[f?"animate":"attr"]({d:this.haloPath(r.size)}),C.attr({"class":"highcharts-halo highcharts-color-"+y(this.colorIndex,g.colorIndex)+(this.className?" "+this.className:""),visibility:p,zIndex:-1}),C.point=this,t.styledMode||C.attr(d({fill:this.color||g.color,"fill-opacity":r.opacity},e.filterUserAttributes(r.attributes||{})))):C&&C.point&&C.point.haloPath&&C.animate({d:C.point.haloPath(0)},null,C.hide);a(this,"afterSetState",{state:c})}};t.prototype.haloPath=function(c){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
295
- c,this.plotY-c,2*c,2*c)};return t}();"";return h});M(h,"Core/Pointer.js",[h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Tooltip.js"],h["Core/Utilities.js"]],function(e,h,A,E){var v=e.parse,D=h.charts,I=h.noop,z=E.addEvent,q=E.attr,l=E.css,f=E.defined,d=E.extend,a=E.find,p=E.fireEvent,k=E.isNumber,F=E.isObject,B=E.objectEach,J=E.offset,K=E.pick,L=E.splat;e=function(){function e(a,d){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=
296
- !1;this.options=d;this.init(a,d)}e.prototype.applyInactiveState=function(a){var d=[],c;(a||[]).forEach(function(a){c=a.series;d.push(c);c.linkedParent&&d.push(c.linkedParent);c.linkedSeries&&(d=d.concat(c.linkedSeries));c.navigatorSeries&&d.push(c.navigatorSeries)});this.chart.series.forEach(function(c){-1===d.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};e.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});
297
- this.eventsToUnbind=[];h.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);B(a,function(d,c){a[c]=void 0})};e.prototype.drag=function(a){var d=this.chart,c=d.options.chart,f=this.zoomHor,g=this.zoomVert,e=d.plotLeft,n=d.plotTop,b=d.plotWidth,r=d.plotHeight,k=this.mouseDownX||0,m=this.mouseDownY||0,w=F(c.panning)?c.panning&&c.panning.enabled:c.panning,
298
- l=c.panKey&&a[c.panKey+"Key"],p=a.chartX,C=a.chartY,h=this.selectionMarker;if(!h||!h.touch)if(p<e?p=e:p>e+b&&(p=e+b),C<n?C=n:C>n+r&&(C=n+r),this.hasDragged=Math.sqrt(Math.pow(k-p,2)+Math.pow(m-C,2)),10<this.hasDragged){var y=d.isInsidePlot(k-e,m-n,{visiblePlotOnly:!0});!d.hasCartesianSeries&&!d.mapView||!this.zoomX&&!this.zoomY||!y||l||h||(this.selectionMarker=h=d.renderer.rect(e,n,f?1:b,g?1:r,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||h.attr({fill:c.selectionMarkerFill||
299
- v("#335cad").setOpacity(.25).get()}));h&&f&&(f=p-k,h.attr({width:Math.abs(f),x:(0<f?0:f)+k}));h&&g&&(f=C-m,h.attr({height:Math.abs(f),y:(0<f?0:f)+m}));y&&!h&&w&&d.pan(a,c.panning)}};e.prototype.dragStart=function(a){var d=this.chart;d.mouseIsDown=a.type;d.cancelClick=!1;d.mouseDownX=this.mouseDownX=a.chartX;d.mouseDownY=this.mouseDownY=a.chartY};e.prototype.drop=function(a){var e=this,c=this.chart,t=this.hasPinched;if(this.selectionMarker){var g=this.selectionMarker,u=g.attr?g.attr("x"):g.x,n=g.attr?
300
- g.attr("y"):g.y,b=g.attr?g.attr("width"):g.width,r=g.attr?g.attr("height"):g.height,G={originalEvent:a,xAxis:[],yAxis:[],x:u,y:n,width:b,height:r},m=!!c.mapView;if(this.hasDragged||t)c.axes.forEach(function(c){if(c.zoomEnabled&&f(c.min)&&(t||e[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])&&k(u)&&k(n)){var g=c.horiz,d="touchend"===a.type?c.minPixelPadding:0,w=c.toValue((g?u:n)+d);g=c.toValue((g?u+b:n+r)-d);G[c.coll].push({axis:c,min:Math.min(w,g),max:Math.max(w,g)});m=!0}}),m&&p(c,"selection",G,function(b){c.zoom(d(b,
301
- t?{animation:!1}:null))});k(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());t&&this.scaleGroups()}c&&k(c.index)&&(l(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};e.prototype.findNearestKDPoint=function(a,d,c){var f=this.chart,g=f.hoverPoint;f=f.tooltip;if(g&&f&&f.isStickyOnContact())return g;var e;a.forEach(function(a){var b=!(a.noSharedTooltip&&d)&&0>a.options.findNearestPointBy.indexOf("y");a=
302
- a.searchPoint(c,b);if((b=F(a,!0)&&a.series)&&!(b=!F(e,!0))){b=e.distX-a.distX;var g=e.dist-a.dist,f=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);b=0<(0!==b&&d?b:0!==g?g:0!==f?f:e.series.index>a.series.index?-1:1)}b&&(e=a)});return e};e.prototype.getChartCoordinatesFromPoint=function(a,d){var c=a.series,f=c.xAxis;c=c.yAxis;var g=a.shapeArgs;if(f&&c){var e=K(a.clientX,a.plotX),n=a.plotY||0;a.isNode&&g&&k(g.x)&&k(g.y)&&(e=g.x,n=g.y);return d?{chartX:c.len+c.pos-n,chartY:f.len+
303
- f.pos-e}:{chartX:e+f.pos,chartY:n+c.pos}}if(g&&g.x&&g.y)return{chartX:g.x,chartY:g.y}};e.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,d=J(a);this.chartPosition={left:d.left,top:d.top,scaleX:1,scaleY:1};var c=a.offsetWidth;a=a.offsetHeight;2<c&&2<a&&(this.chartPosition.scaleX=d.width/c,this.chartPosition.scaleY=d.height/a);return this.chartPosition};e.prototype.getCoordinates=function(a){var d={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){d[c.isXAxis?
304
- "xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return d};e.prototype.getHoverData=function(d,f,c,e,g,u){var n=[];e=!(!e||!d);var b={chartX:u?u.chartX:void 0,chartY:u?u.chartY:void 0,shared:g};p(this,"beforeGetHoverData",b);var r=f&&!f.stickyTracking?[f]:c.filter(function(c){return b.filter?b.filter(c):c.visible&&!(!g&&c.directTouch)&&K(c.options.enableMouseTracking,!0)&&c.stickyTracking});var k=e||!u?d:this.findNearestKDPoint(r,g,u);f=k&&k.series;k&&(g&&!f.noSharedTooltip?
305
- (r=c.filter(function(c){return b.filter?b.filter(c):c.visible&&!(!g&&c.directTouch)&&K(c.options.enableMouseTracking,!0)&&!c.noSharedTooltip}),r.forEach(function(b){var c=a(b.points,function(b){return b.x===k.x&&!b.isNull});F(c)&&(b.chart.isBoosting&&(c=b.getPoint(c)),n.push(c))})):n.push(k));b={hoverPoint:k};p(this,"afterGetHoverData",b);return{hoverPoint:b.hoverPoint,hoverSeries:f,hoverPoints:n}};e.prototype.getPointFromEvent=function(a){a=a.target;for(var d;a&&!d;)d=a.point,a=a.parentNode;return d};
306
- e.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()};e.prototype.inClass=function(a,d){for(var c;a;){if(c=q(a,"class")){if(-1!==c.indexOf(d))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentNode}};e.prototype.init=function(a,d){this.options=
307
- d;this.chart=a;this.runChartClick=!(!d.chart.events||!d.chart.events.click);this.pinchDown=[];this.lastValidTouch={};A&&(a.tooltip=new A(a,d.tooltip),this.followTouchMove=K(d.tooltip.followTouchMove,!0));this.setDOMEvents()};e.prototype.normalize=function(a,f){var c=a.touches,e=c?c.length?c.item(0):K(c.changedTouches,a.changedTouches)[0]:a;f||(f=this.getChartPosition());c=e.pageX-f.left;e=e.pageY-f.top;c/=f.scaleX;e/=f.scaleY;return d(a,{chartX:Math.round(c),chartY:Math.round(e)})};e.prototype.onContainerClick=
308
- function(a){var f=this.chart,c=f.hoverPoint;a=this.normalize(a);var e=f.plotLeft,g=f.plotTop;f.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(p(c.series,"click",d(a,{point:c})),f.hoverPoint&&c.firePointEvent("click",a)):(d(a,this.getCoordinates(a)),f.isInsidePlot(a.chartX-e,a.chartY-g,{visiblePlotOnly:!0})&&p(f,"click",a)))};e.prototype.onContainerMouseDown=function(a){var d=1===((a.buttons||a.button)&1);a=this.normalize(a);if(h.isFirefox&&0!==a.button)this.onContainerMouseMove(a);
309
- if("undefined"===typeof a.button||d)this.zoomOption(a),d&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};e.prototype.onContainerMouseLeave=function(a){var d=D[K(e.hoverChartIndex,-1)],c=this.chart.tooltip;c&&c.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),c&&!c.isHidden&&this.reset())};e.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};
310
- e.prototype.onContainerMouseMove=function(a){var d=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===d.mouseIsDown||this.touchSelect(a))&&this.drag(a);d.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};e.prototype.onDocumentTouchEnd=function(a){var d=D[K(e.hoverChartIndex,
311
- -1)];d&&d.pointer.drop(a)};e.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};e.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};e.prototype.onDocumentMouseMove=function(a){var d=this.chart,c=this.chartPosition;a=this.normalize(a,c);var f=d.tooltip;!c||f&&f.isStickyOnContact()||d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||
312
- this.inClass(a.target,"highcharts-tracker")||this.reset()};e.prototype.onDocumentMouseUp=function(a){var d=D[K(e.hoverChartIndex,-1)];d&&d.pointer.drop(a)};e.prototype.pinch=function(a){var f=this,c=f.chart,e=f.pinchDown,g=a.touches||[],u=g.length,n=f.lastValidTouch,b=f.hasZoom,r={},k=1===u&&(f.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||f.runChartClick),m={},w=f.selectionMarker;1<u?f.initiated=!0:1===u&&this.followTouchMove&&(f.initiated=!1);b&&f.initiated&&!k&&!1!==a.cancelable&&
313
- a.preventDefault();[].map.call(g,function(b){return f.normalize(b)});"touchstart"===a.type?([].forEach.call(g,function(b,c){e[c]={chartX:b.chartX,chartY:b.chartY}}),n.x=[e[0].chartX,e[1]&&e[1].chartX],n.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"],g=b.minPixelPadding,d=b.toPixels(Math.min(K(b.options.min,b.dataMin),b.dataMin)),m=b.toPixels(Math.max(K(b.options.max,b.dataMax),b.dataMax)),f=Math.max(d,m);a.min=Math.min(b.pos,Math.min(d,
314
- m)-g);a.max=Math.max(b.pos+b.len,f+g)}}),f.res=!0):f.followTouchMove&&1===u?this.runPointActions(f.normalize(a)):e.length&&(p(c,"touchpan",{originalEvent:a},function(){w||(f.selectionMarker=w=d({destroy:I,touch:!0},c.plotBox));f.pinchTranslate(e,g,r,w,m,n);f.hasPinched=b;f.scaleGroups(r,m)}),f.res&&(f.res=!1,this.reset(!1,0)))};e.prototype.pinchTranslate=function(a,d,c,f,g,e){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,c,f,g,e);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,c,f,g,e)};e.prototype.pinchTranslateDirection=
315
- function(a,d,c,f,g,e,n,b){var r=this.chart,k=a?"x":"y",m=a?"X":"Y",w="chart"+m,u=a?"width":"height",t=r["plot"+(a?"Left":"Top")],l=r.inverted,p=r.bounds[a?"h":"v"],x=1===d.length,h=d[0][w],y=!x&&d[1][w];d=function(){"number"===typeof J&&20<Math.abs(h-y)&&(B=b||Math.abs(R-J)/Math.abs(h-y));C=(t-R)/B+h;q=r["plot"+(a?"Width":"Height")]/B};var q,C,B=b||1,R=c[0][w],J=!x&&c[1][w];d();c=C;if(c<p.min){c=p.min;var F=!0}else c+q>p.max&&(c=p.max-q,F=!0);F?(R-=.8*(R-n[k][0]),"number"===typeof J&&(J-=.8*(J-n[k][1])),
316
- d()):n[k]=[R,J];l||(e[k]=C-t,e[u]=q);e=l?1/B:B;g[u]=q;g[k]=c;f[l?a?"scaleY":"scaleX":"scale"+m]=B;f["translate"+m]=e*t+(R-e*h)};e.prototype.reset=function(a,d){var c=this.chart,f=c.hoverSeries,g=c.hoverPoint,e=c.hoverPoints,n=c.tooltip,b=n&&n.shared?e:g;a&&b&&L(b).forEach(function(b){b.series.isCartesian&&"undefined"===typeof b.plotX&&(a=!1)});if(a)n&&b&&L(b).length&&(n.refresh(b),n.shared&&e?e.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,
317
- b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):g&&(g.setState(g.state,!0),c.axes.forEach(function(b){b.crosshair&&g.series[b.coll]===b&&b.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();e&&e.forEach(function(b){b.setState()});if(f)f.onMouseOut();n&&n.hide(d);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};e.prototype.runPointActions=function(d,f){var c=this.chart,
318
- k=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,g=k?k.shared:!1,u=f||c.hoverPoint,n=u&&u.series||c.hoverSeries;f=this.getHoverData(u,n,c.series,(!d||"touchmove"!==d.type)&&(!!f||n&&n.directTouch&&this.isDirectTouch),g,d);u=f.hoverPoint;n=f.hoverSeries;var b=f.hoverPoints;f=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split;g=g&&n&&!n.noSharedTooltip;if(u&&(u!==c.hoverPoint||k&&k.isHidden)){(c.hoverPoints||[]).forEach(function(c){-1===b.indexOf(c)&&c.setState()});if(c.hoverSeries!==
319
- n)n.onMouseOver();this.applyInactiveState(b);(b||[]).forEach(function(b){b.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!u.series)return;c.hoverPoints=b;c.hoverPoint=u;u.firePointEvent("mouseOver");k&&k.refresh(g?b:u,d)}else f&&k&&!k.isHidden&&(u=k.getAnchor([{}],d),c.isInsidePlot(u[0],u[1],{visiblePlotOnly:!0})&&k.updatePosition({plotX:u[0],plotY:u[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(c.container.ownerDocument,"mousemove",function(b){var c=D[e.hoverChartIndex];
320
- if(c)c.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));c.axes.forEach(function(g){var f=K((g.crosshair||{}).snap,!0),m;f&&((m=c.hoverPoint)&&m.series[g.coll]===g||(m=a(b,function(b){return b.series[g.coll]===g})));m||!f?g.drawCrosshair(d,m):g.hideCrosshair()})};e.prototype.scaleGroups=function(a,d){var c=this.chart;c.series.forEach(function(f){var g=a||f.getPlotBox();f.group&&(f.xAxis&&f.xAxis.zoomEnabled||c.mapView)&&(f.group.attr(g),f.markerGroup&&(f.markerGroup.attr(g),
321
- f.markerGroup.clip(d?c.clipRect:null)),f.dataLabelsGroup&&f.dataLabelsGroup.attr(g))});c.clipRect.attr(d||c.clipBox)};e.prototype.setDOMEvents=function(){var a=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(z(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(z(d,"mouseleave",this.onContainerMouseLeave.bind(this)));
322
- e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=z(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var f=this.chart.renderTo.parentElement;f&&"BODY"!==f.tagName;)this.eventsToUnbind.push(z(f,"scroll",function(){delete a.chartPosition})),f=f.parentElement;h.hasTouch&&(this.eventsToUnbind.push(z(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=
323
- z(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};e.prototype.setHoverChartIndex=function(){var a=this.chart,d=h.charts[K(e.hoverChartIndex,-1)];if(d&&d!==a)d.pointer.onContainerMouseLeave({relatedTarget:!0});d&&d.mouseIsDown||(e.hoverChartIndex=a.index)};e.prototype.touch=function(a,d){var c=this.chart,f;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(f=c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0}))&&!c.openMenu){d&&this.runPointActions(a);
324
- if("touchmove"===a.type){d=this.pinchDown;var g=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2)):!1}K(g,!0)&&this.pinch(a)}else d&&this.reset();else 2===a.touches.length&&this.pinch(a)};e.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};e.prototype.zoomOption=function(a){var d=this.chart,c=d.options.chart;d=d.inverted;var f=c.zoomType||"";/touch/.test(a.type)&&(f=K(c.pinchType,f));this.zoomX=
325
- a=/x/.test(f);this.zoomY=c=/y/.test(f);this.zoomHor=a&&!d||c&&d;this.zoomVert=c&&!d||a&&d;this.hasZoom=a||c};return e}();"";return e});M(h,"Core/MSPointer.js",[h["Core/Globals.js"],h["Core/Pointer.js"],h["Core/Utilities.js"]],function(e,h,A){function D(){var d=[];d.item=function(a){return this[a]};a(k,function(a){d.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return d}function v(a,d,f,e){var k=I[h.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!k||
326
- (k=k.pointer,e(a),k[d]({type:f,target:a.currentTarget,preventDefault:q,touches:D()}))}var H=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 f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(d,f)};return function(d,f){function e(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}(),I=e.charts,z=e.doc,q=e.noop,l=e.win,f=A.addEvent,d=A.css,
327
- a=A.objectEach,p=A.removeEvent,k={},F=!!l.PointerEvent;return function(a){function h(){return null!==a&&a.apply(this,arguments)||this}H(h,a);h.isRequired=function(){return!(e.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)};h.prototype.batchMSEvents=function(a){a(this.chart.container,F?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,F?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(z,F?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};h.prototype.destroy=
328
- function(){this.batchMSEvents(p);a.prototype.destroy.call(this)};h.prototype.init=function(f,e){a.prototype.init.call(this,f,e);this.hasZoom&&d(f.container,{"-ms-touch-action":"none","touch-action":"none"})};h.prototype.onContainerPointerDown=function(a){v(a,"onContainerTouchStart","touchstart",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};h.prototype.onContainerPointerMove=function(a){v(a,"onContainerTouchMove","touchmove",function(a){k[a.pointerId]={pageX:a.pageX,
329
- pageY:a.pageY};k[a.pointerId].target||(k[a.pointerId].target=a.currentTarget)})};h.prototype.onDocumentPointerUp=function(a){v(a,"onDocumentTouchEnd","touchend",function(a){delete k[a.pointerId]})};h.prototype.setDOMEvents=function(){a.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(f)};return h}(h)});M(h,"Core/Legend/Legend.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Series/Point.js"],h["Core/Renderer/RendererUtilities.js"],
330
- h["Core/Utilities.js"]],function(e,h,A,E,v,H){var D=e.animObject,z=e.setAnimation,q=h.format;e=A.isFirefox;var l=A.marginNames;A=A.win;var f=v.distribute,d=H.addEvent,a=H.createElement,p=H.css,k=H.defined,F=H.discardElement,B=H.find,J=H.fireEvent,K=H.isNumber,L=H.merge,y=H.pick,C=H.relativeLength,x=H.stableSort,c=H.syncTimeout;v=H.wrap;H=function(){function e(c,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=
331
- this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=c;this.init(c,a)}e.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),
332
- this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};e.prototype.setOptions=function(c){var a=y(c.padding,8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=L(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=y(c.symbolWidth,
333
- 16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};e.prototype.update=function(c,a){var d=this.chart;this.setOptions(L(!0,this.options,c));this.destroy();d.isDirtyLegend=d.isDirtyBox=!0;y(a,!0)&&d.redraw();J(this,"afterUpdate")};e.prototype.colorizeItem=function(c,a){c.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,b=c.legendItem,g=c.legendLine,f=c.legendSymbol,m=this.itemHiddenStyle.color;
334
- d=a?d.itemStyle.color:m;var e=a?c.color||m:m,k=c.options&&c.options.marker,u={fill:e};b&&b.css({fill:d,color:d});g&&g.attr({stroke:e});f&&(k&&f.isMarker&&(u=c.pointAttribs(),a||(u.stroke=u.fill=m)),f.attr(u))}J(this,"afterColorizeItem",{item:c,visible:a})};e.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};e.prototype.positionItem=function(c){var a=this,d=this.options,b=d.symbolPadding,g=!d.rtl,f=c._legendItemPos;d=
335
- f[0];f=f[1];var m=c.checkbox,e=c.legendGroup;e&&e.element&&(b={translateX:g?d:this.legendWidth-d-2*b-4,translateY:f},g=function(){J(a,"afterPositionItem",{item:c})},k(e.translateY)?e.animate(b,void 0,g):(e.attr(b),g()));m&&(m.x=d,m.y=f)};e.prototype.destroyItem=function(c){var a=c.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){c[a]&&(c[a]=c[a].destroy())});a&&F(c.checkbox)};e.prototype.destroy=function(){function c(c){this[c]&&(this[c]=this[c].destroy())}this.getAllItems().forEach(function(a){["legendItem",
336
- "legendGroup"].forEach(c,a)});"clipRect up down pager nav box title group".split(" ").forEach(c,this);this.display=null};e.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,d=this.titleHeight;if(c){var b=c.translateY;this.allItems.forEach(function(g){var f=g.checkbox;if(f){var m=b+d+f.y+(this.scrollOffset||0)+3;p(f,{left:c.translateX+g.checkboxOffset+f.x-20+"px",top:m+"px",display:this.proximate||m>b-6&&m<b+a-6?"":"none"})}},this)}};
337
- e.prototype.renderTitle=function(){var c=this.options,a=this.padding,d=c.title,b=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,a-3,a-4,null,null,null,c.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),c=this.title.getBBox(),b=c.height,this.offsetWidth=c.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};e.prototype.setText=function(c){var a=
338
- this.options;c.legendItem.attr({text:a.labelFormat?q(a.labelFormat,c,this.chart):a.labelFormatter.call(c)})};e.prototype.renderItem=function(c){var a=this.chart,d=a.renderer,b=this.options,g=this.symbolWidth,f=b.symbolPadding||0,m=this.itemStyle,e=this.itemHiddenStyle,k="horizontal"===b.layout?y(b.itemDistance,20):0,l=!b.rtl,p=!c.series,h=!p&&c.series.drawLegendSymbol?c.series:c,t=h.options,x=this.createCheckboxForItem&&t&&t.showCheckbox,q=b.useHTML,C=c.options.className,Q=c.legendItem;t=g+f+k+(x?
339
- 20:0);Q||(c.legendGroup=d.g("legend-item").addClass("highcharts-"+h.type+"-series highcharts-color-"+c.colorIndex+(C?" "+C:"")+(p?" highcharts-series-"+c.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.legendItem=Q=d.text("",l?g+f:-f,this.baseline||0,q),a.styledMode||Q.css(L(c.visible?m:e)),Q.attr({align:l?"left":"right",zIndex:2}).add(c.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(a.styledMode?12:m.fontSize,Q),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,Q.attr("y",this.baseline),
340
- this.symbolHeight=b.symbolHeight||this.fontMetrics.f,b.squareSymbol&&(this.symbolWidth=y(b.symbolWidth,Math.max(this.symbolHeight,16)),t=this.symbolWidth+f+k+(x?20:0),l&&Q.attr("x",this.symbolWidth+f))),h.drawLegendSymbol(this,c),this.setItemEvents&&this.setItemEvents(c,Q,q));x&&!c.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(c);this.colorizeItem(c,c.visible);!a.styledMode&&m.width||Q.css({width:(b.itemWidth||this.widthOption||a.spacingBox.width)-t+"px"});this.setText(c);a=Q.getBBox();
341
- c.itemWidth=c.checkboxOffset=b.itemWidth||c.legendItemWidth||a.width+t;this.maxItemWidth=Math.max(this.maxItemWidth,c.itemWidth);this.totalItemWidth+=c.itemWidth;this.itemHeight=c.itemHeight=Math.round(c.legendItemHeight||a.height||this.symbolHeight)};e.prototype.layoutItem=function(c){var a=this.options,d=this.padding,b="horizontal"===a.layout,g=c.itemHeight,f=this.itemMarginBottom,m=this.itemMarginTop,e=b?y(a.itemDistance,20):0,k=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:
342
- c.itemWidth;b&&this.itemX-d+a>k&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=m+this.lastLineHeight+f),this.lastLineHeight=0);this.lastItemY=m+this.itemY+f;this.lastLineHeight=Math.max(g,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=a:(this.itemY+=m+g+f,this.lastLineHeight=g);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(c.checkbox?0:e):a)+d,this.offsetWidth)};e.prototype.getAllItems=function(){var c=[];this.chart.series.forEach(function(a){var d=a&&
343
- a.options;a&&y(d.showInLegend,k(d.linkedTo)?!1:void 0,!0)&&(c=c.concat(a.legendItems||("point"===d.legendType?a.data:a)))});J(this,"afterGetAllItems",{allItems:c});return c};e.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)};e.prototype.adjustMargins=function(c,a){var d=this.chart,b=this.options,g=this.getAlignment();g&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,
344
- m){f.test(g)&&!k(c[m])&&(d[l[m]]=Math.max(d[l[m]],d.legend[(m+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][m]*b[m%2?"x":"y"]+y(b.margin,12)+a[m]+(d.titleOffset[m]||0)))})};e.prototype.proximatePositions=function(){var c=this.chart,a=[],d="left"===this.options.align;this.allItems.forEach(function(b){var g;var f=d;if(b.yAxis){b.xAxis.options.reversed&&(f=!f);b.points&&(g=B(f?b.points:b.points.slice(0).reverse(),function(b){return K(b.plotY)}));f=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;
345
- var m=b.yAxis.top-c.plotTop;b.visible?(g=g?g.plotY:b.yAxis.height,g+=m-.3*f):g=m+b.yAxis.height;a.push({target:g,size:f,item:b})}},this);f(a,c.plotHeight).forEach(function(b){b.item._legendItemPos&&(b.item._legendItemPos[1]=c.plotTop-c.spacing[0]+b.pos)})};e.prototype.render=function(){var c=this.chart,a=c.renderer,d=this.options,b=this.padding,f=this.getAllItems(),e=this.group,m=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=C(d.width,c.spacingBox.width-
346
- b);var k=c.spacingBox.width-2*b-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(k/=2);this.maxLegendWidth=this.widthOption||k;e||(this.group=e=a.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(e),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();x(f,function(b,c){return(b.options&&b.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});d.reversed&&f.reverse();this.allItems=f;this.display=k=!!f.length;
347
- this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;f.forEach(this.renderItem,this);f.forEach(this.layoutItem,this);f=(this.widthOption||this.offsetWidth)+b;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l);l+=b;m||(this.box=m=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(e),m.isNew=!0);c.styledMode||m.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0<f&&
348
- 0<l&&(m[m.isNew?"attr":"animate"](m.crisp.call({},{x:0,y:0,width:f,height:l},m.strokeWidth())),m.isNew=!1);m[k?"show":"hide"]();c.styledMode&&"none"===e.getStyle("display")&&(f=l=0);this.legendWidth=f;this.legendHeight=l;k&&this.align();this.proximate||this.positionItems();J(this,"afterRender")};e.prototype.align=function(c){void 0===c&&(c=this.chart.spacingBox);var a=this.chart,d=this.options,b=c.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?b+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&
349
- 0<a.titleOffset[2]&&(b-=a.titleOffset[2]);b!==c.y&&(c=L(c,{y:b}));this.group.align(L(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":d.verticalAlign}),!0,c)};e.prototype.handleOverflow=function(c){var a=this,d=this.chart,b=d.renderer,g=this.options,f=g.y,m="top"===g.verticalAlign,e=this.padding,k=g.maxHeight,l=g.navigation,p=y(l.animation,!0),h=l.arrowSize||12,t=this.pages,x=this.allItems,q=function(b){"number"===typeof b?F.attr({height:b}):F&&(a.clipRect=F.destroy(),
350
- a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=b?"rect("+e+"px,9999px,"+(e+b)+"px,0)":"auto")},C=function(c){a[c]=b.circle(0,0,1.3*h).translate(h/2,h/2).add(R);d.styledMode||a[c].attr("fill","rgba(0,0,0,0.0001)");return a[c]},Q,B;f=d.spacingBox.height+(m?-f:f)-e;var R=this.nav,F=this.clipRect;"horizontal"!==g.layout||"middle"===g.verticalAlign||g.floating||(f/=2);k&&(f=Math.min(f,k));t.length=0;c&&0<f&&c>f&&!1!==l.enabled?(this.clipHeight=Q=Math.max(f-20-this.titleHeight-
351
- e,0),this.currentPage=y(this.currentPage,1),this.fullHeight=c,x.forEach(function(b,c){var a=b._legendItemPos[1],d=Math.round(b.legendItem.getBBox().height),g=t.length;if(!g||a-t[g-1]>Q&&(B||a)!==t[g-1])t.push(B||a),g++;b.pageIx=g-1;B&&(x[c-1].pageIx=g-1);c===x.length-1&&a+d-t[g-1]>Q&&d<=Q&&(t.push(a),b.pageIx=g);a!==B&&(B=a)}),F||(F=a.clipRect=b.clipRect(0,e,9999,0),a.contentGroup.clip(F)),q(Q),R||(this.nav=R=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,h,h).add(R),C("upTracker").on("click",
352
- function(){a.scroll(-1,p)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),d.styledMode||this.pager.css(l.style),this.pager.add(R),this.down=b.symbol("triangle-down",0,0,h,h).add(R),C("downTracker").on("click",function(){a.scroll(1,p)})),a.scroll(0),c=f):R&&(q(),this.nav=R.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};e.prototype.scroll=function(a,d){var g=this,b=this.chart,f=this.pages,e=f.length,m=this.clipHeight,k=this.options.navigation,l=this.pager,
353
- p=this.padding,u=this.currentPage+a;u>e&&(u=e);0<u&&("undefined"!==typeof d&&z(d,b),this.nav.attr({translateX:p,translateY:m+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(b){b.attr({"class":1===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:u+"/"+e}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+this.pager.getBBox().width,"class":u===e?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},
354
- this),b.styledMode||(this.up.attr({fill:1===u?k.inactiveColor:k.activeColor}),this.upTracker.css({cursor:1===u?"default":"pointer"}),this.down.attr({fill:u===e?k.inactiveColor:k.activeColor}),this.downTracker.css({cursor:u===e?"default":"pointer"})),this.scrollOffset=-f[u-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=u,this.positionCheckboxes(),a=D(y(d,b.renderer.globalAnimation,!0)),c(function(){J(g,"afterScroll",{currentPage:u})},a.duration))};e.prototype.setItemEvents=
355
- function(c,a,d){var b=this,g=b.chart.renderer.boxWrapper,f=c instanceof E,m="highcharts-legend-"+(f?"point":"series")+"-active",e=b.chart.styledMode,n=function(a){b.allItems.forEach(function(b){c!==b&&[b].concat(b.linkedSeries||[]).forEach(function(b){b.setState(a,!f)})})};(d?[a,c.legendSymbol]:[c.legendGroup]).forEach(function(d){if(d)d.on("mouseover",function(){c.visible&&n("inactive");c.setState("hover");c.visible&&g.addClass(m);e||a.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||
356
- a.css(L(c.visible?b.itemStyle:b.itemHiddenStyle));n("");g.removeClass(m);c.setState()}).on("click",function(b){var a=function(){c.setVisible&&c.setVisible();n(c.visible?"inactive":"")};g.removeClass(m);b={browserEvent:b};c.firePointEvent?c.firePointEvent("legendItemClick",b,a):J(c,"legendItemClick",b,a)})})};e.prototype.createCheckboxForItem=function(c){c.checkbox=a("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:c.selected,defaultChecked:c.selected},this.options.itemCheckboxStyle,
357
- this.chart.container);d(c.checkbox,"click",function(a){J(c.series||c,"checkboxClick",{checked:a.target.checked,item:c},function(){c.select()})})};return e}();(/Trident\/7\.0/.test(A.navigator&&A.navigator.userAgent)||e)&&v(H.prototype,"positionItem",function(c,a){var d=this,g=function(){a._legendItemPos&&c.call(d,a)};g();d.bubbleLegend||setTimeout(g)});"";return H});M(h,"Core/Series/SeriesRegistry.js",[h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"]],
358
- function(e,h,A,E){var v=h.defaultOptions,D=E.error,I=E.extendClass,z=E.merge,q;(function(l){function f(d,a){var f=v.plotOptions||{},e=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=A);a.prototype.type=d;e&&(f[d]=e);l.seriesTypes[d]=a}l.seriesTypes=e.seriesTypes;l.getSeries=function(d,a){void 0===a&&(a={});var f=d.options.chart;f=a.type||f.type||f.defaultSeriesType||"";var e=l.seriesTypes[f];l||D(17,!0,d,{missingModuleFor:f});f=new e;"function"===typeof f.init&&f.init(d,a);return f};
359
- l.registerSeriesType=f;l.seriesType=function(d,a,e,k,h){var p=v.plotOptions||{};a=a||"";p[d]=z(p[a],e);f(d,I(l.seriesTypes[a]||function(){},k));l.seriesTypes[d].prototype.type=d;h&&(l.seriesTypes[d].prototype.pointClass=I(A,h));return l.seriesTypes[d]}})(q||(q={}));return q});M(h,"Core/Chart/Chart.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/FormatUtilities.js"],h["Core/Foundation.js"],h["Core/Globals.js"],h["Core/Legend/Legend.js"],h["Core/MSPointer.js"],h["Core/DefaultOptions.js"],
360
- h["Core/Pointer.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Time.js"],h["Core/Utilities.js"],h["Core/Renderer/HTML/AST.js"]],function(e,h,A,E,v,H,I,z,q,l,f,d,a,p,k){var F=e.animate,B=e.animObject,J=e.setAnimation,K=A.numberFormat,L=E.registerEventOptions,y=v.charts,C=v.doc,x=v.marginNames,c=v.svg,t=v.win,g=z.defaultOptions,u=z.defaultTime,n=f.seriesTypes,b=p.addEvent,r=p.attr,G=p.cleanRecursively,m=p.createElement,w=
361
- p.css,N=p.defined,X=p.discardElement,P=p.erase,O=p.error,W=p.extend,Z=p.find,D=p.fireEvent,aa=p.getStyle,Q=p.isArray,ba=p.isNumber,R=p.isObject,ca=p.isString,T=p.merge,U=p.objectEach,S=p.pick,da=p.pInt,ia=p.relativeLength,M=p.removeEvent,fa=p.splat,Y=p.syncTimeout,ja=p.uniqueKey;e=function(){function f(b,c,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=
362
- this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b,c,a)}f.chart=function(b,c,a){return new f(b,c,a)};f.prototype.getArgs=function(b,c,a){ca(b)||b.nodeName?(this.renderTo=b,this.init(c,a)):this.init(b,c)};f.prototype.init=
363
- function(b,c){var d=b.plotOptions||{};D(this,"init",{args:arguments},function(){var f=T(g,b),m=f.chart;U(f.plotOptions,function(b,c){R(b)&&(b.tooltip=d[c]&&T(d[c].tooltip)||void 0)});f.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=c;this.isResizing=0;this.options=f;this.axes=[];this.series=[];this.time=b.time&&Object.keys(b.time).length?new a(b.time):v.time;
364
- this.numberFormatter=m.numberFormatter||K;this.styledMode=m.styledMode;this.hasCartesianSeries=m.showAxes;this.index=y.length;y.push(this);v.chartCount++;L(this,m);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;D(this,"afterInit");this.firstRender()})};f.prototype.initSeries=function(b){var c=this.options.chart;c=b.type||c.type||c.defaultSeriesType;var a=n[c];a||O(17,!0,this,{missingModuleFor:c});c=new a;"function"===typeof c.init&&c.init(this,b);return c};f.prototype.setSeriesData=
365
- function(){this.getSeriesOrderByLinks().forEach(function(b){b.points||b.data||!b.enabledDataSorting||b.setData(b.options.data,!1)})};f.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(b,c){return b.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-b.linkedSeries.length:0})};f.prototype.orderSeries=function(b){var c=this.series;b=b||0;for(var a=c.length;b<a;++b)c[b]&&(c[b].index=b,c[b].name=c[b].getName())};f.prototype.isInsidePlot=function(b,c,a){void 0===
366
- a&&(a={});var d=this.inverted,g=this.plotBox,f=this.plotLeft,m=this.plotTop,e=this.scrollablePlotBox,n=0;var r=0;a.visiblePlotOnly&&this.scrollingContainer&&(r=this.scrollingContainer,n=r.scrollLeft,r=r.scrollTop);var k=a.series;g=a.visiblePlotOnly&&e||g;e=a.inverted?c:b;c=a.inverted?b:c;b={x:e,y:c,isInsidePlot:!0};if(!a.ignoreX){var w=k&&(d?k.yAxis:k.xAxis)||{pos:f,len:Infinity};e=a.paneCoordinates?w.pos+e:f+e;e>=Math.max(n+f,w.pos)&&e<=Math.min(n+f+g.width,w.pos+w.len)||(b.isInsidePlot=!1)}!a.ignoreY&&
367
- b.isInsidePlot&&(d=k&&(d?k.xAxis:k.yAxis)||{pos:m,len:Infinity},a=a.paneCoordinates?d.pos+c:m+c,a>=Math.max(r+m,d.pos)&&a<=Math.min(r+m+g.height,d.pos+d.len)||(b.isInsidePlot=!1));D(this,"afterIsInsidePlot",b);return b.isInsidePlot};f.prototype.redraw=function(b){D(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,d=this.pointer,g=this.legend,f=this.userOptions.legend,m=this.renderer,e=m.isHidden(),n=[],r=this.isDirtyBox,k=this.isDirtyLegend;this.setResponsive&&
368
- this.setResponsive(!1);J(this.hasRendered?b:!1,this);e&&this.temporaryDisplay();this.layOutTitles();for(b=a.length;b--;){var w=a[b];if(w.options.stacking||w.options.centerInCategory){var l=!0;if(w.isDirty){var p=!0;break}}}if(p)for(b=a.length;b--;)w=a[b],w.options.stacking&&(w.isDirty=!0);a.forEach(function(b){b.isDirty&&("point"===b.options.legendType?("function"===typeof b.updateTotals&&b.updateTotals(),k=!0):f&&(f.labelFormatter||f.labelFormat)&&(k=!0));b.isDirtyData&&D(b,"updatedData")});k&&g&&
369
- g.options.enabled&&(g.render(),this.isDirtyLegend=!1);l&&this.getStacks();c.forEach(function(b){b.updateNames();b.setScale()});this.getMargins();c.forEach(function(b){b.isDirty&&(r=!0)});c.forEach(function(b){var c=b.min+","+b.max;b.extKey!==c&&(b.extKey=c,n.push(function(){D(b,"afterSetExtremes",W(b.eventArgs,b.getExtremes()));delete b.eventArgs}));(r||l)&&b.redraw()});r&&this.drawChartBox();D(this,"predraw");a.forEach(function(b){(r||b.isDirty)&&b.visible&&b.redraw();b.isDirtyData=!1});d&&d.reset(!0);
370
- m.draw();D(this,"redraw");D(this,"render");e&&this.temporaryDisplay(!0);n.forEach(function(b){b.call()})};f.prototype.get=function(b){function c(c){return c.id===b||c.options&&c.options.id===b}for(var a=this.series,d=Z(this.axes,c)||Z(this.series,c),g=0;!d&&g<a.length;g++)d=Z(a[g].points||[],c);return d};f.prototype.getAxes=function(){var b=this,c=this.options,a=c.xAxis=fa(c.xAxis||{});c=c.yAxis=fa(c.yAxis||{});D(this,"getAxes");a.forEach(function(b,c){b.index=c;b.isX=!0});c.forEach(function(b,c){b.index=
371
- c});a.concat(c).forEach(function(c){new h(b,c)});D(this,"afterGetAxes")};f.prototype.getSelectedPoints=function(){return this.series.reduce(function(b,c){c.getPointsCollection().forEach(function(c){S(c.selectedStaging,c.selected)&&b.push(c)});return b},[])};f.prototype.getSelectedSeries=function(){return this.series.filter(function(b){return b.selected})};f.prototype.setTitle=function(b,c,a){this.applyDescription("title",b);this.applyDescription("subtitle",c);this.applyDescription("caption",void 0);
372
- this.layOutTitles(a)};f.prototype.applyDescription=function(b,c){var a=this,d="title"===b?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};d=this.options[b]=T(!this.styledMode&&{style:d},this.options[b],c);var g=this[b];g&&c&&(this[b]=g=g.destroy());d&&!g&&(g=this.renderer.text(d.text,0,0,d.useHTML).attr({align:d.align,"class":"highcharts-"+b,zIndex:d.zIndex||4}).add(),g.update=function(c){a[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b]](c)},this.styledMode||
373
- g.css(d.style),this[b]=g)};f.prototype.layOutTitles=function(b){var c=[0,0,0],a=this.renderer,d=this.spacingBox;["title","subtitle","caption"].forEach(function(b){var g=this[b],f=this.options[b],m=f.verticalAlign||"top";b="title"===b?"top"===m?-3:0:"top"===m?c[0]+2:0;var e;if(g){this.styledMode||(e=f.style&&f.style.fontSize);e=a.fontMetrics(e,g).b;g.css({width:(f.width||d.width+(f.widthAdjust||0))+"px"});var n=Math.round(g.getBBox(f.useHTML).height);g.align(W({y:"bottom"===m?e:b+e,height:n},f),!1,
374
- "spacingBox");f.floating||("top"===m?c[0]=Math.ceil(c[0]+n):"bottom"===m&&(c[2]=Math.ceil(c[2]+n)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var g=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;D(this,"afterLayOutTitles");!this.isDirtyBox&&g&&(this.isDirtyBox=this.isDirtyLegend=g,this.hasRendered&&S(b,!0)&&this.isDirtyBox&&
375
- this.redraw())};f.prototype.getChartSize=function(){var b=this.options.chart,c=b.width;b=b.height;var a=this.renderTo;N(c)||(this.containerWidth=aa(a,"width"));N(b)||(this.containerHeight=aa(a,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ia(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};f.prototype.temporaryDisplay=function(b){var c=this.renderTo;if(b)for(;c&&c.style;)c.hcOrigStyle&&(w(c,c.hcOrigStyle),delete c.hcOrigStyle),
376
- c.hcOrigDetached&&(C.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){C.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,C.body.appendChild(c));if("none"===aa(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},b={display:"block",overflow:"hidden"},c!==this.renderTo&&(b.height=0),w(c,b),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===C.body)break}};f.prototype.setClassName=
377
- function(b){this.container.className="highcharts-container "+(b||"")};f.prototype.getContainer=function(){var b=this.options,a=b.chart,g=ja(),f,e=this.renderTo;e||(this.renderTo=e=a.renderTo);ca(e)&&(this.renderTo=e=C.getElementById(e));e||O(13,!0,this);var n=da(r(e,"data-highcharts-chart"));ba(n)&&y[n]&&y[n].hasRendered&&y[n].destroy();r(e,"data-highcharts-chart",this.index);e.innerHTML="";a.skipClone||e.offsetWidth||this.temporaryDisplay();this.getChartSize();n=this.chartWidth;var k=this.chartHeight;
378
- w(e,{overflow:"hidden"});this.styledMode||(f=W({position:"relative",overflow:"hidden",width:n+"px",height:k+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},a.style||{}));this.container=g=m("div",{id:g},f,e);this._cursor=g.style.cursor;this.renderer=new (a.renderer||!c?l.getRendererType(a.renderer):d)(g,n,k,void 0,a.forExport,b.exporting&&b.exporting.allowHTML,this.styledMode);J(void 0,
379
- this);this.setClassName(a.className);if(this.styledMode)for(var p in b.defs)this.renderer.definition(b.defs[p]);else this.renderer.setStyle(a.style);this.renderer.chartIndex=this.index;D(this,"afterGetContainer")};f.prototype.getMargins=function(b){var c=this.spacing,a=this.margin,d=this.titleOffset;this.resetMargins();d[0]&&!N(a[0])&&(this.plotTop=Math.max(this.plotTop,d[0]+c[0]));d[2]&&!N(a[2])&&(this.marginBottom=Math.max(this.marginBottom,d[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(a,
380
- c);D(this,"getMargins");b||this.getAxisMargins()};f.prototype.getAxisMargins=function(){var b=this,c=b.axisOffset=[0,0,0,0],a=b.colorAxis,d=b.margin,g=function(b){b.forEach(function(b){b.visible&&b.getOffset()})};b.hasCartesianSeries?g(b.axes):a&&a.length&&g(a);x.forEach(function(a,g){N(d[g])||(b[a]+=c[g])});b.setChartSize()};f.prototype.reflow=function(b){var c=this,a=c.options.chart,d=c.renderTo,g=N(a.width)&&N(a.height),f=a.width||aa(d,"width");a=a.height||aa(d,"height");d=b?b.target:t;delete c.pointer.chartPosition;
381
- if(!g&&!c.isPrinting&&f&&a&&(d===t||d===C)){if(f!==c.containerWidth||a!==c.containerHeight)p.clearTimeout(c.reflowTimeout),c.reflowTimeout=Y(function(){c.container&&c.setSize(void 0,void 0,!1)},b?100:0);c.containerWidth=f;c.containerHeight=a}};f.prototype.setReflow=function(c){var a=this;!1===c||this.unbindReflow?!1===c&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=b(t,"resize",function(b){a.options&&a.reflow(b)}),b(this,"destroy",this.unbindReflow))};f.prototype.setSize=
382
- function(b,c,a){var d=this,g=d.renderer;d.isResizing+=1;J(a,d);a=g.globalAnimation;d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;"undefined"!==typeof b&&(d.options.chart.width=b);"undefined"!==typeof c&&(d.options.chart.height=c);d.getChartSize();d.styledMode||(a?F:w)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},a);d.setChartSize(!0);g.setSize(d.chartWidth,d.chartHeight,a);d.axes.forEach(function(b){b.isDirty=!0;b.setScale()});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();
383
- d.getMargins();d.redraw(a);d.oldChartHeight=null;D(d,"resize");Y(function(){d&&D(d,"endResize",null,function(){--d.isResizing})},B(a).duration)};f.prototype.setChartSize=function(b){var c=this.inverted,a=this.renderer,d=this.chartWidth,g=this.chartHeight,f=this.options.chart,m=this.spacing,e=this.clipOffset,n,r,k,w;this.plotLeft=n=Math.round(this.plotLeft);this.plotTop=r=Math.round(this.plotTop);this.plotWidth=k=Math.max(0,Math.round(d-n-this.marginRight));this.plotHeight=w=Math.max(0,Math.round(g-
384
- r-this.marginBottom));this.plotSizeX=c?w:k;this.plotSizeY=c?k:w;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=a.spacingBox={x:m[3],y:m[0],width:d-m[3]-m[1],height:g-m[0]-m[2]};this.plotBox=a.plotBox={x:n,y:r,width:k,height:w};c=2*Math.floor(this.plotBorderWidth/2);d=Math.ceil(Math.max(c,e[3])/2);g=Math.ceil(Math.max(c,e[0])/2);this.clipBox={x:d,y:g,width:Math.floor(this.plotSizeX-Math.max(c,e[1])/2-d),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,e[2])/2-g))};b||(this.axes.forEach(function(b){b.setAxisSize();
385
- b.setAxisTranslation()}),a.alignElements());D(this,"afterSetChartSize",{skipAxes:b})};f.prototype.resetMargins=function(){D(this,"resetMargins");var b=this,c=b.options.chart;["margin","spacing"].forEach(function(a){var d=c[a],g=R(d)?d:[d,d,d,d];["Top","Right","Bottom","Left"].forEach(function(d,f){b[a][f]=S(c[a+d],g[f])})});x.forEach(function(c,a){b[c]=S(b.margin[a],b.spacing[a])});b.axisOffset=[0,0,0,0];b.clipOffset=[0,0,0,0]};f.prototype.drawChartBox=function(){var b=this.options.chart,c=this.renderer,
386
- a=this.chartWidth,d=this.chartHeight,g=this.styledMode,f=this.plotBGImage,m=b.backgroundColor,e=b.plotBackgroundColor,n=b.plotBackgroundImage,r=this.plotLeft,k=this.plotTop,w=this.plotWidth,l=this.plotHeight,p=this.plotBox,u=this.clipRect,h=this.clipBox,t=this.chartBackground,G=this.plotBackground,x=this.plotBorder,y,q="animate";t||(this.chartBackground=t=c.rect().addClass("highcharts-background").add(),q="attr");if(g)var Q=y=t.strokeWidth();else{Q=b.borderWidth||0;y=Q+(b.shadow?8:0);m={fill:m||"none"};
387
- if(Q||t["stroke-width"])m.stroke=b.borderColor,m["stroke-width"]=Q;t.attr(m).shadow(b.shadow)}t[q]({x:y/2,y:y/2,width:a-y-Q%2,height:d-y-Q%2,r:b.borderRadius});q="animate";G||(q="attr",this.plotBackground=G=c.rect().addClass("highcharts-plot-background").add());G[q](p);g||(G.attr({fill:e||"none"}).shadow(b.plotShadow),n&&(f?(n!==f.attr("href")&&f.attr("href",n),f.animate(p)):this.plotBGImage=c.image(n,r,k,w,l).add()));u?u.animate({width:h.width,height:h.height}):this.clipRect=c.clipRect(h);q="animate";
388
- x||(q="attr",this.plotBorder=x=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());g||x.attr({stroke:b.plotBorderColor,"stroke-width":b.plotBorderWidth||0,fill:"none"});x[q](x.crisp({x:r,y:k,width:w,height:l},-x.strokeWidth()));this.isDirtyBox=!1;D(this,"afterDrawChartBox")};f.prototype.propFromSeries=function(){var b=this,c=b.options.chart,a=b.options.series,d,g,f;["inverted","angular","polar"].forEach(function(m){g=n[c.type||c.defaultSeriesType];f=c[m]||g&&g.prototype[m];for(d=a&&
389
- a.length;!f&&d--;)(g=n[a[d].type])&&g.prototype[m]&&(f=!0);b[m]=f})};f.prototype.linkSeries=function(){var b=this,c=b.series;c.forEach(function(b){b.linkedSeries.length=0});c.forEach(function(c){var a=c.options.linkedTo;ca(a)&&(a=":previous"===a?b.series[c.index-1]:b.get(a))&&a.linkedParent!==c&&(a.linkedSeries.push(c),c.linkedParent=a,a.enabledDataSorting&&c.setDataSortingOptions(),c.visible=S(c.options.visible,a.options.visible,c.visible))});D(this,"afterLinkSeries")};f.prototype.renderSeries=function(){this.series.forEach(function(b){b.translate();
390
- b.render()})};f.prototype.renderLabels=function(){var b=this,c=b.options.labels;c.items&&c.items.forEach(function(a){var d=W(c.style,a.style),g=da(d.left)+b.plotLeft,f=da(d.top)+b.plotTop+12;delete d.left;delete d.top;b.renderer.text(a.html,g,f).attr({zIndex:2}).css(d).add()})};f.prototype.render=function(){var b=this.axes,c=this.colorAxis,a=this.renderer,d=this.options,g=function(b){b.forEach(function(b){b.visible&&b.render()})},f=0;this.setTitle();this.legend=new H(this,d.legend);this.getStacks&&
391
- this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;b.some(function(b){if(b.horiz&&b.visible&&b.options.labels.enabled&&b.series.length)return f=21,!0});var m=this.plotHeight=Math.max(this.plotHeight-f,0);b.forEach(function(b){b.setScale()});this.getAxisMargins();var e=1.1<d/this.plotWidth,n=1.05<m/this.plotHeight;if(e||n)b.forEach(function(b){(b.horiz&&e||!b.horiz&&n)&&b.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?g(b):c&&c.length&&g(c);
392
- 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};f.prototype.addCredits=function(b){var c=this,a=T(!0,this.options.credits,b);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(t.location.href=a.href)}).attr({align:a.position.align,zIndex:8}),c.styledMode||
393
- this.credits.css(a.style),this.credits.add().align(a.position),this.credits.update=function(b){c.credits=c.credits.destroy();c.addCredits(b)})};f.prototype.destroy=function(){var b=this,c=b.axes,a=b.series,d=b.container,g=d&&d.parentNode,f;D(b,"destroy");b.renderer.forExport?P(y,b):y[b.index]=void 0;v.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");M(b);for(f=c.length;f--;)c[f]=c[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=a.length;f--;)a[f]=a[f].destroy();
394
- "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var a=b[c];a&&a.destroy&&(b[c]=a.destroy())});d&&(d.innerHTML="",M(d),g&&X(d));U(b,function(c,a){delete b[a]})};f.prototype.firstRender=function(){var b=this,c=b.options;if(!b.isReadyToRender||b.isReadyToRender()){b.getContainer();b.resetMargins();b.setChartSize();b.propFromSeries();b.getAxes();(Q(c.series)?
395
- c.series:[]).forEach(function(c){b.initSeries(c)});b.linkSeries();b.setSeriesData();D(b,"beforeRender");q&&(I.isRequired()?b.pointer=new I(b,c):b.pointer=new q(b,c));b.render();b.pointer.getChartPosition();if(!b.renderer.imgCount&&!b.hasLoaded)b.onload();b.temporaryDisplay(!0)}};f.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(b){b&&"undefined"!==typeof this.index&&b.apply(this,[this])},this);D(this,"load");D(this,"render");N(this.index)&&this.setReflow(this.options.chart.reflow);
396
- this.hasLoaded=!0};f.prototype.addSeries=function(b,c,a){var d=this,g;b&&(c=S(c,!0),D(d,"addSeries",{options:b},function(){g=d.initSeries(b);d.isDirtyLegend=!0;d.linkSeries();g.enabledDataSorting&&g.setData(b.data,!1);D(d,"afterAddSeries",{series:g});c&&d.redraw(a)}));return g};f.prototype.addAxis=function(b,c,a,d){return this.createAxis(c?"xAxis":"yAxis",{axis:b,redraw:a,animation:d})};f.prototype.addColorAxis=function(b,c,a){return this.createAxis("colorAxis",{axis:b,redraw:c,animation:a})};f.prototype.createAxis=
397
- function(b,c){b=new h(this,T(c.axis,{index:this[b].length,isX:"xAxis"===b}));S(c.redraw,!0)&&this.redraw(c.animation);return b};f.prototype.showLoading=function(c){var a=this,d=a.options,g=d.loading,f=function(){e&&w(e,{left:a.plotLeft+"px",top:a.plotTop+"px",width:a.plotWidth+"px",height:a.plotHeight+"px"})},e=a.loadingDiv,n=a.loadingSpan;e||(a.loadingDiv=e=m("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a.container));n||(a.loadingSpan=n=m("span",{className:"highcharts-loading-inner"},
398
- null,e),b(a,"redraw",f));e.className="highcharts-loading";k.setElementHTML(n,S(c,d.lang.loading,""));a.styledMode||(w(e,W(g.style,{zIndex:10})),w(n,g.labelStyle),a.loadingShown||(w(e,{opacity:0,display:""}),F(e,{opacity:g.style.opacity||.5},{duration:g.showDuration||0})));a.loadingShown=!0;f()};f.prototype.hideLoading=function(){var b=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||F(c,{opacity:0},{duration:b.loading.hideDuration||100,
399
- complete:function(){w(c,{display:"none"})}}));this.loadingShown=!1};f.prototype.update=function(b,c,d,g){var f=this,m={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},e=b.isResponsiveOptions,n=[],r,k;D(f,"update",{options:b});e||f.setResponsive(!1,!0);b=G(b,f.options);f.userOptions=T(f.userOptions,b);var w=b.chart;if(w){T(!0,f.options.chart,w);"className"in w&&f.setClassName(w.className);"reflow"in w&&f.setReflow(w.reflow);if("inverted"in w||"polar"in w||"type"in
400
- w){f.propFromSeries();var l=!0}"alignTicks"in w&&(l=!0);"events"in w&&L(this,w);U(w,function(b,c){-1!==f.propsRequireUpdateSeries.indexOf("chart."+c)&&(r=!0);-1!==f.propsRequireDirtyBox.indexOf(c)&&(f.isDirtyBox=!0);-1!==f.propsRequireReflow.indexOf(c)&&(e?f.isDirtyBox=!0:k=!0)});!f.styledMode&&w.style&&f.renderer.setStyle(f.options.chart.style||{})}!f.styledMode&&b.colors&&(this.options.colors=b.colors);b.time&&(this.time===u&&(this.time=new a(b.time)),T(!0,f.options.time,b.time));U(b,function(c,
401
- a){if(f[a]&&"function"===typeof f[a].update)f[a].update(c,!1);else if("function"===typeof f[m[a]])f[m[a]](c);else"colors"!==a&&-1===f.collectionsWithUpdate.indexOf(a)&&T(!0,f.options[a],b[a]);"chart"!==a&&-1!==f.propsRequireUpdateSeries.indexOf(a)&&(r=!0)});this.collectionsWithUpdate.forEach(function(c){if(b[c]){var a=[];f[c].forEach(function(b,c){b.options.isInternal||a.push(S(b.options.index,c))});fa(b[c]).forEach(function(b,g){var m=N(b.id),e;m&&(e=f.get(b.id));!e&&f[c]&&(e=f[c][a?a[g]:g])&&m&&
402
- N(e.options.id)&&(e=void 0);e&&e.coll===c&&(e.update(b,!1),d&&(e.touched=!0));!e&&d&&f.collectionsWithInit[c]&&(f.collectionsWithInit[c][0].apply(f,[b].concat(f.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});d&&f[c].forEach(function(b){b.touched||b.options.isInternal?delete b.touched:n.push(b)})}});n.forEach(function(b){b.chart&&b.remove&&b.remove(!1)});l&&f.axes.forEach(function(b){b.update({},!1)});r&&f.getSeriesOrderByLinks().forEach(function(b){b.chart&&b.update({},!1)},this);l=w&&
403
- w.width;w=w&&(ca(w.height)?ia(w.height,l||f.chartWidth):w.height);k||ba(l)&&l!==f.chartWidth||ba(w)&&w!==f.chartHeight?f.setSize(l,w,g):S(c,!0)&&f.redraw(g);D(f,"afterUpdate",{options:b,redraw:c,animation:g})};f.prototype.setSubtitle=function(b,c){this.applyDescription("subtitle",b);this.layOutTitles(c)};f.prototype.setCaption=function(b,c){this.applyDescription("caption",b);this.layOutTitles(c)};f.prototype.showResetZoom=function(){function b(){c.zoomOut()}var c=this,a=g.lang,d=c.options.chart.resetZoomButton,
404
- f=d.theme,m=f.states,e="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";D(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(a.resetZoom,null,null,b,f,m&&m.hover).attr({align:d.position.align,title:a.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,e)});D(this,"afterShowResetZoom")};f.prototype.zoomOut=function(){D(this,"selection",{resetSelection:!0},this.zoom)};f.prototype.zoom=function(b){var c=this,a=c.pointer,
405
- d=c.inverted?a.mouseDownX:a.mouseDownY,g=!1,f;!b||b.resetSelection?(c.axes.forEach(function(b){f=b.zoom()}),a.initiated=!1):b.xAxis.concat(b.yAxis).forEach(function(b){var m=b.axis,e=c.inverted?m.left:m.top,n=c.inverted?e+m.width:e+m.height,r=m.isXAxis,k=!1;if(!r&&d>=e&&d<=n||r||!N(d))k=!0;a[r?"zoomX":"zoomY"]&&k&&(f=m.zoom(b.min,b.max),m.displayBtn&&(g=!0))});var m=c.resetZoomButton;g&&!m?c.showResetZoom():!g&&R(m)&&(c.resetZoomButton=m.destroy());f&&c.redraw(S(c.options.chart.animation,b&&b.animation,
406
- 100>c.pointCount))};f.prototype.pan=function(b,c){var a=this,d=a.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var g=a.options.chart,f=a.options.mapNavigation&&a.options.mapNavigation.enabled;g&&g.panning&&(g.panning=c);var m=c.type,e;D(this,"pan",{originalEvent:b},function(){d&&d.forEach(function(b){b.setState()});var c=a.xAxis;"xy"===m?c=c.concat(a.yAxis):"y"===m&&(c=a.yAxis);var g={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var d=c.horiz,n=b[d?"chartX":
407
- "chartY"];d=d?"mouseDownX":"mouseDownY";var r=a[d],k=c.minPointOffset||0,w=c.reversed&&!a.inverted||!c.reversed&&a.inverted?-1:1,l=c.getExtremes(),p=c.toValue(r-n,!0)+k*w,u=c.toValue(r+c.len-n,!0)-(k*w||c.isXAxis&&c.pointRangePadding||0),h=u<p;w=c.hasVerticalPanning();r=h?u:p;p=h?p:u;var t=c.panningState;!w||c.isXAxis||t&&!t.isDirty||c.series.forEach(function(b){var c=b.getProcessedData(!0);c=b.getExtremes(c.yData,!0);t||(t={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});ba(c.dataMin)&&ba(c.dataMax)&&
408
- (t.startMin=Math.min(S(b.options.threshold,Infinity),c.dataMin,t.startMin),t.startMax=Math.max(S(b.options.threshold,-Infinity),c.dataMax,t.startMax))});w=Math.min(S(t&&t.startMin,l.dataMin),k?l.min:c.toValue(c.toPixels(l.min)-c.minPixelPadding));u=Math.max(S(t&&t.startMax,l.dataMax),k?l.max:c.toValue(c.toPixels(l.max)+c.minPixelPadding));c.panningState=t;c.isOrdinal||(k=w-r,0<k&&(p+=k,r=w),k=p-u,0<k&&(p=u,r-=k),c.series.length&&r!==l.min&&p!==l.max&&r>=w&&p<=u&&(c.setExtremes(r,p,!1,!1,{trigger:"pan"}),
409
- a.resetZoomButton||f||r===w||p===u||!m.match("y")||(a.showResetZoom(),c.displayBtn=!1),e=!0),g[d]=n)}});U(g,function(b,c){a[c]=b});e&&a.redraw(!1);w(a.container,{cursor:"move"})})};return f}();W(e.prototype,{callbacks:[],collectionsWithInit:{xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],series:[e.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
410
- propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return e});M(h,"Core/Legend/LegendSymbol.js",[h["Core/Utilities.js"]],function(e){var h=e.merge,A=e.pick,E;(function(e){e.drawLineMarker=function(e){var v=this.options,z=e.symbolWidth,q=e.symbolHeight,l=q/2,f=this.chart.renderer,
411
- d=this.legendGroup;e=e.baseline-Math.round(.3*e.fontMetrics.b);var a={},p=v.marker;this.chart.styledMode||(a={"stroke-width":v.lineWidth||0},v.dashStyle&&(a.dashstyle=v.dashStyle));this.legendLine=f.path([["M",0,e],["L",z,e]]).addClass("highcharts-graph").attr(a).add(d);p&&!1!==p.enabled&&z&&(v=Math.min(A(p.radius,l),l),0===this.symbol.indexOf("url")&&(p=h(p,{width:q,height:q}),v=0),this.legendSymbol=z=f.symbol(this.symbol,z/2-v,e-v,2*v,2*v,p).addClass("highcharts-point").add(d),z.isMarker=!0)};e.drawRectangle=
412
- function(e,h){var v=e.symbolHeight,q=e.options.squareSymbol;h.legendSymbol=this.chart.renderer.rect(q?(e.symbolWidth-v)/2:0,e.baseline-v+1,q?v:e.symbolWidth,v,A(e.options.symbolRadius,v/2)).addClass("highcharts-point").attr({zIndex:3}).add(h.legendGroup)}})(E||(E={}));return E});M(h,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},
413
- hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var e=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},
414
- hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});M(h,"Core/Series/Series.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/DefaultOptions.js"],h["Core/Foundation.js"],h["Core/Globals.js"],h["Core/Legend/LegendSymbol.js"],h["Core/Series/Point.js"],h["Core/Series/SeriesDefaults.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Renderer/SVG/SVGElement.js"],
415
- h["Core/Utilities.js"]],function(e,h,A,E,v,H,I,z,q,l){var f=e.animObject,d=e.setAnimation,a=h.defaultOptions,p=A.registerEventOptions,k=E.hasTouch,F=E.svg,B=E.win,J=z.seriesTypes,K=l.addEvent,L=l.arrayMax,y=l.arrayMin,C=l.clamp,x=l.cleanRecursively,c=l.correctFloat,t=l.defined,g=l.erase,u=l.error,n=l.extend,b=l.find,r=l.fireEvent,G=l.getNestedProperty,m=l.isArray,w=l.isNumber,N=l.isString,D=l.merge,P=l.objectEach,O=l.pick,W=l.removeEvent,Z=l.splat,ha=l.syncTimeout;e=function(){function e(){this.zones=
416
- this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}e.prototype.init=function(b,c){r(this,"init",{options:c});var a=this,d=b.series;this.eventsToUnbind=[];a.chart=b;a.options=a.setOptions(c);c=a.options;a.linkedSeries=[];a.bindAxes();n(a,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});p(this,c);var g=
417
- c.events;if(g&&g.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)b.runTrackerClick=!0;a.getColor();a.getSymbol();a.parallelArrays.forEach(function(b){a[b+"Data"]||(a[b+"Data"]=[])});a.isCartesian&&(b.hasCartesianSeries=!0);var f;d.length&&(f=d[d.length-1]);a._i=O(f&&f._i,-1)+1;a.opacity=a.options.opacity;b.orderSeries(this.insert(d));c.dataSorting&&c.dataSorting.enabled?a.setDataSortingOptions():a.points||a.data||a.setData(c.data,!1);r(this,"afterInit")};e.prototype.is=function(b){return J[b]&&
418
- this instanceof J[b]};e.prototype.insert=function(b){var c=this.options.index,a;if(w(c)){for(a=b.length;a--;)if(c>=O(b[a].options.index,b[a]._i)){b.splice(a+1,0,this);break}-1===a&&b.unshift(this);a+=1}else b.push(this);return O(a,b.length-1)};e.prototype.bindAxes=function(){var b=this,c=b.options,a=b.chart,d;r(this,"bindAxes",null,function(){(b.axisTypes||[]).forEach(function(g){var f=0;a[g].forEach(function(a){d=a.options;if(c[g]===f&&!d.isInternal||"undefined"!==typeof c[g]&&c[g]===d.id||"undefined"===
419
- typeof c[g]&&0===d.index)b.insert(a.series),b[g]=a,a.isDirty=!0;d.isInternal||f++});b[g]||b.optionalAxis===g||u(18,!0,a)})});r(this,"afterBindAxes")};e.prototype.updateParallelArrays=function(b,c){var a=b.series,d=arguments,g=w(c)?function(d){var g="y"===d&&a.toYData?a.toYData(b):b[d];a[d+"Data"][c]=g}:function(b){Array.prototype[c].apply(a[b+"Data"],Array.prototype.slice.call(d,2))};a.parallelArrays.forEach(g)};e.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&
420
- "undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};e.prototype.autoIncrement=function(b){var c=this.options,a=c.pointIntervalUnit,d=c.relativeXValue,g=this.chart.time,f=this.xIncrement,e;f=O(f,c.pointStart,0);this.pointInterval=e=O(this.pointInterval,c.pointInterval,1);d&&w(b)&&(e*=b);a&&(c=new g.Date(f),"day"===a?g.set("Date",c,g.get("Date",c)+e):"month"===a?g.set("Month",c,g.get("Month",c)+e):"year"===a&&g.set("FullYear",c,g.get("FullYear",c)+e),e=c.getTime()-f);if(d&&
421
- w(b))return f+e;this.xIncrement=f+e;return f};e.prototype.setDataSortingOptions=function(){var b=this.options;n(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});t(b.pointRange)||(b.pointRange=1)};e.prototype.setOptions=function(b){var c=this.chart,d=c.options,g=d.plotOptions,f=c.userOptions||{};b=D(b);c=c.styledMode;var e={plotOptions:g,userOptions:b};r(this,"setOptions",e);var m=e.plotOptions[this.type],n=f.plotOptions||{};this.userOptions=e.userOptions;f=D(m,g.series,f.plotOptions&&
422
- f.plotOptions[this.type],b);this.tooltipOptions=D(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,d.tooltip.userOptions,g.series&&g.series.tooltip,g[this.type].tooltip,b.tooltip);this.stickyTracking=O(b.stickyTracking,n[this.type]&&n[this.type].stickyTracking,n.series&&n.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===m.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;g=this.zones=(f.zones||[]).slice();
423
- !f.negativeColor&&!f.negativeFillColor||f.zones||(d={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},c||(d.color=f.negativeColor,d.fillColor=f.negativeFillColor),g.push(d));g.length&&t(g[g.length-1].value)&&g.push(c?{}:{color:this.color,fillColor:this.fillColor});r(this,"afterSetOptions",{options:f});return f};e.prototype.getName=function(){return O(this.options.name,"Series "+(this.index+1))};e.prototype.getCyclic=function(b,c,a){var d=this.chart,g=this.userOptions,
424
- f=b+"Index",e=b+"Counter",m=a?a.length:O(d.options.chart[b+"Count"],d[b+"Count"]);if(!c){var n=O(g[f],g["_"+f]);t(n)||(d.series.length||(d[e]=0),g["_"+f]=n=d[e]%m,d[e]+=1);a&&(c=a[n])}"undefined"!==typeof n&&(this[f]=n);this[b]=c};e.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||a.plotOptions[this.type].color,this.chart.options.colors)};e.prototype.getPointsCollection=function(){return(this.hasGroupedData?
425
- this.points:this.data)||[]};e.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};e.prototype.findPointIndex=function(c,a){var d=c.id,g=c.x,f=this.points,e=this.options.dataSorting,m,n;if(d)e=this.chart.get(d),e instanceof H&&(m=e);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(m=function(b){return!b.touched&&b.index===c.index},e&&e.matchByName?m=function(b){return!b.touched&&b.name===c.name}:this.options.relativeXValue&&
426
- (m=function(b){return!b.touched&&b.options.x===c.x}),m=b(f,m),!m)return;if(m){var r=m&&m.index;"undefined"!==typeof r&&(n=!0)}"undefined"===typeof r&&w(g)&&(r=this.xData.indexOf(g,a));-1!==r&&"undefined"!==typeof r&&this.cropped&&(r=r>=this.cropStart?r-this.cropStart:r);!n&&w(r)&&f[r]&&f[r].touched&&(r=void 0);return r};e.prototype.updateData=function(b,c){var a=this.options,d=a.dataSorting,g=this.points,f=[],e=this.requireSorting,m=b.length===g.length,n,r,k,l=!0;this.xIncrement=null;b.forEach(function(b,
427
- c){var r=t(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{},l=r.x;if(r.id||w(l)){if(r=this.findPointIndex(r,k),-1===r||"undefined"===typeof r?f.push(b):g[r]&&b!==a.data[r]?(g[r].update(b,!1,null,!1),g[r].touched=!0,e&&(k=r+1)):g[r]&&(g[r].touched=!0),!m||c!==r||d&&d.enabled||this.hasDerivedData)n=!0}else f.push(b)},this);if(n)for(b=g.length;b--;)(r=g[b])&&!r.touched&&r.remove&&r.remove(!1,c);else!m||d&&d.enabled?l=!1:(b.forEach(function(b,c){b!==g[c].y&&g[c].update&&g[c].update(b,
428
- !1,null,!1)}),f.length=0);g.forEach(function(b){b&&(b.touched=!1)});if(!l)return!1;f.forEach(function(b){this.addPoint(b,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=L(this.xData),this.autoIncrement());return!0};e.prototype.setData=function(b,c,a,d){var g=this,f=g.points,e=f&&f.length||0,n=g.options,r=g.chart,k=n.dataSorting,l=g.xAxis,p=n.turboThreshold,h=this.xData,t=this.yData,x=g.pointArrayMap;x=x&&x.length;var G=n.keys,y,q=0,C=1,B=null;b=b||[];
429
- var Q=b.length;c=O(c,!0);k&&k.enabled&&(b=this.sortData(b));!1!==d&&Q&&e&&!g.cropped&&!g.hasGroupedData&&g.visible&&!g.isSeriesBoosting&&(y=this.updateData(b,a));if(!y){g.xIncrement=null;g.colorCounter=0;this.parallelArrays.forEach(function(b){g[b+"Data"].length=0});if(p&&Q>p)if(B=g.getFirstValidPoint(b),w(B))for(a=0;a<Q;a++)h[a]=this.autoIncrement(),t[a]=b[a];else if(m(B))if(x)if(B.length===x)for(a=0;a<Q;a++)h[a]=this.autoIncrement(),t[a]=b[a];else for(a=0;a<Q;a++)d=b[a],h[a]=d[0],t[a]=d.slice(1,
430
- x+1);else if(G&&(q=G.indexOf("x"),C=G.indexOf("y"),q=0<=q?q:0,C=0<=C?C:1),1===B.length&&(C=0),q===C)for(a=0;a<Q;a++)h[a]=this.autoIncrement(),t[a]=b[a][C];else for(a=0;a<Q;a++)d=b[a],h[a]=d[q],t[a]=d[C];else u(12,!1,r);else for(a=0;a<Q;a++)"undefined"!==typeof b[a]&&(d={series:g},g.pointClass.prototype.applyOptions.apply(d,[b[a]]),g.updateParallelArrays(d,a));t&&N(t[0])&&u(14,!0,r);g.data=[];g.options.data=g.userOptions.data=b;for(a=e;a--;)f[a]&&f[a].destroy&&f[a].destroy();l&&(l.minRange=l.userMinRange);
431
- g.isDirty=r.isDirtyBox=!0;g.isDirtyData=!!f;a=!1}"point"===n.legendType&&(this.processData(),this.generatePoints());c&&r.redraw(a)};e.prototype.sortData=function(b){var c=this,a=c.options.dataSorting.sortKey||"y",d=function(b,c){return t(c)&&b.pointClass.prototype.optionsToObject.call({series:b},c)||{}};b.forEach(function(a,g){b[g]=d(c,a);b[g].index=g},this);b.concat().sort(function(b,c){b=G(a,b);c=G(a,c);return c<b?-1:c>b?1:0}).forEach(function(b,c){b.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var a=
432
- c.options,g=a.data;a.dataSorting&&a.dataSorting.enabled||!g||(g.forEach(function(a,f){g[f]=d(c,a);b[f]&&(g[f].x=b[f].x,g[f].index=f)}),c.setData(g,!1))});return b};e.prototype.getProcessedData=function(b){var c=this.xAxis,a=this.options,d=a.cropThreshold,g=b||this.getExtremesFromAll||a.getExtremesFromAll,f=this.isCartesian;b=c&&c.val2lin;a=!(!c||!c.logarithmic);var e=0,m=this.xData,n=this.yData,r=this.requireSorting;var k=!1;var w=m.length;if(c){k=c.getExtremes();var l=k.min;var p=k.max;k=c.categories&&
433
- !c.names.length}if(f&&this.sorted&&!g&&(!d||w>d||this.forceCrop))if(m[w-1]<l||m[0]>p)m=[],n=[];else if(this.yData&&(m[0]<l||m[w-1]>p)){var h=this.cropData(this.xData,this.yData,l,p);m=h.xData;n=h.yData;e=h.start;h=!0}for(d=m.length||1;--d;)if(c=a?b(m[d])-b(m[d-1]):m[d]-m[d-1],0<c&&("undefined"===typeof t||c<t))var t=c;else 0>c&&r&&!k&&(u(15,!1,this.chart),r=!1);return{xData:m,yData:n,cropped:h,cropStart:e,closestPointRange:t}};e.prototype.processData=function(b){var c=this.xAxis;if(this.isCartesian&&
434
- !this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!b)return!1;b=this.getProcessedData();this.cropped=b.cropped;this.cropStart=b.cropStart;this.processedXData=b.xData;this.processedYData=b.yData;this.closestPointRange=this.basePointRange=b.closestPointRange;r(this,"afterProcessData")};e.prototype.cropData=function(b,c,a,d,g){var f=b.length,e,m=0,n=f;g=O(g,this.cropShoulder);for(e=0;e<f;e++)if(b[e]>=a){m=Math.max(0,e-g);break}for(a=e;a<f;a++)if(b[a]>d){n=a+g;break}return{xData:b.slice(m,n),yData:c.slice(m,
435
- n),start:m,end:n}};e.prototype.generatePoints=function(){var b=this.options,c=b.data,a=this.processedXData,d=this.processedYData,g=this.pointClass,f=a.length,e=this.cropStart||0,m=this.hasGroupedData,k=b.keys,w=[];b=b.dataGrouping&&b.dataGrouping.groupAll?e:0;var l,p,h=this.data;if(!h&&!m){var u=[];u.length=c.length;h=this.data=u}k&&m&&(this.options.keys=!1);for(p=0;p<f;p++){u=e+p;if(m){var t=(new g).init(this,[a[p]].concat(Z(d[p])));t.dataGroup=this.groupMap[b+p];t.dataGroup.options&&(t.options=
436
- t.dataGroup.options,n(t,t.dataGroup.options),delete t.dataLabels)}else(t=h[u])||"undefined"===typeof c[u]||(h[u]=t=(new g).init(this,c[u],a[p]));t&&(t.index=m?b+p:u,w[p]=t)}this.options.keys=k;if(h&&(f!==(l=h.length)||m))for(p=0;p<l;p++)p!==e||m||(p+=f),h[p]&&(h[p].destroyElements(),h[p].plotX=void 0);this.data=h;this.points=w;r(this,"afterGeneratePoints")};e.prototype.getXExtremes=function(b){return{min:y(b),max:L(b)}};e.prototype.getExtremes=function(b,c){var a=this.xAxis,d=this.yAxis,g=this.processedXData||
437
- this.xData,f=[],e=this.requireSorting?this.cropShoulder:0;d=d?d.positiveValuesOnly:!1;var n,k=0,l=0,p=0;b=b||this.stackedYData||this.processedYData||[];var h=b.length;if(a){var t=a.getExtremes();k=t.min;l=t.max}for(n=0;n<h;n++){var u=g[n];t=b[n];var x=(w(t)||m(t))&&(t.length||0<t||!d);u=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!a||(g[n+e]||u)>=k&&(g[n-e]||u)<=l;if(x&&u)if(x=t.length)for(;x--;)w(t[x])&&(f[p++]=t[x]);else f[p++]=t}b={activeYData:f,dataMin:y(f),dataMax:L(f)};
438
- r(this,"afterGetExtremes",{dataExtremes:b});return b};e.prototype.applyExtremes=function(){var b=this.getExtremes();this.dataMin=b.dataMin;this.dataMax=b.dataMax;return b};e.prototype.getFirstValidPoint=function(b){for(var c=b.length,a=0,d=null;null===d&&a<c;)d=b[a],a++;return d};e.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b=this.options,a=b.stacking,d=this.xAxis,g=d.categories,f=this.enabledDataSorting,e=this.yAxis,n=this.points,k=n.length,l=
439
- this.pointPlacementToXValue(),p=!!l,h=b.threshold,u=b.startFromThreshold?h:0,x=this.zoneAxis||"y",G,q,y=Number.MAX_VALUE;for(G=0;G<k;G++){var B=n[G],N=B.x,F=void 0,J=void 0,K=B.y,L=B.low,v=a&&e.stacking&&e.stacking.stacks[(this.negStacks&&K<(u?0:h)?"-":"")+this.stackKey];if(e.positiveValuesOnly&&!e.validatePositiveValue(K)||d.positiveValuesOnly&&!d.validatePositiveValue(N))B.isNull=!0;B.plotX=q=c(C(d.translate(N,0,0,0,1,l,"flags"===this.type),-1E5,1E5));if(a&&this.visible&&v&&v[N]){var z=this.getStackIndicator(z,
440
- N,this.index);B.isNull||(F=v[N],J=F.points[z.key])}m(J)&&(L=J[0],K=J[1],L===u&&z.key===v[N].base&&(L=O(w(h)&&h,e.min)),e.positiveValuesOnly&&0>=L&&(L=null),B.total=B.stackTotal=F.total,B.percentage=F.total&&B.y/F.total*100,B.stackY=K,this.irregularWidths||F.setOffset(this.pointXOffset||0,this.barW||0));B.yBottom=t(L)?C(e.translate(L,0,1,0,1),-1E5,1E5):null;this.dataModify&&(K=this.dataModify.modifyValue(K,G));B.plotY=void 0;w(K)&&(F=e.translate(K,!1,!0,!1,!0),"undefined"!==typeof F&&(B.plotY=C(F,
441
- -1E5,1E5)));B.isInside=this.isPointInside(B);B.clientX=p?c(d.translate(N,0,0,0,1,l)):q;B.negative=B[x]<(b[x+"Threshold"]||h||0);B.category=g&&"undefined"!==typeof g[B.x]?g[B.x]:B.x;if(!B.isNull&&!1!==B.visible){"undefined"!==typeof P&&(y=Math.min(y,Math.abs(q-P)));var P=q}B.zone=this.zones.length?B.getZone():void 0;!B.graphic&&this.group&&f&&(B.isNew=!0)}this.closestPointRangePx=y;r(this,"afterTranslate")};e.prototype.getValidPoints=function(b,c,a){var d=this.chart;return(b||this.points||[]).filter(function(b){return c&&
442
- !d.isInsidePlot(b.plotX,b.plotY,{inverted:d.inverted})?!1:!1!==b.visible&&(a||!b.isNull)})};e.prototype.getClipBox=function(){var b=this.chart,c=this.xAxis,a=this.yAxis,d=D(b.clipBox);c&&c.len!==b.plotSizeX&&(d.width=c.len);a&&a.len!==b.plotSizeY&&(d.height=a.len);return d};e.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};e.prototype.setClip=function(){var b=this.chart,c=this.group,a=this.markerGroup,d=b.sharedClips;b=b.renderer;
443
- var g=this.getClipBox(),f=this.getSharedClipKey(),e=d[f];e?e.animate(g):d[f]=e=b.clipRect(g);c&&c.clip(!1===this.options.clip?void 0:e);a&&a.clip()};e.prototype.animate=function(b){var c=this.chart,a=this.group,d=this.markerGroup,g=c.inverted,e=f(this.options.animation),m=[this.getSharedClipKey(),e.duration,e.easing,e.defer].join(),n=c.sharedClips[m],r=c.sharedClips[m+"m"];if(b&&a)e=this.getClipBox(),n?n.attr("height",e.height):(e.width=0,g&&(e.x=c.plotHeight),n=c.renderer.clipRect(e),c.sharedClips[m]=
444
- n,r=c.renderer.clipRect({x:g?(c.plotSizeX||0)+99:-99,y:g?-c.plotLeft:-c.plotTop,width:99,height:g?c.chartWidth:c.chartHeight}),c.sharedClips[m+"m"]=r),a.clip(n),d&&d.clip(r);else if(n&&!n.hasClass("highcharts-animating")){c=this.getClipBox();var k=e.step;d&&d.element.childNodes.length&&(e.step=function(b,c){k&&k.apply(c,arguments);r&&r.element&&r.attr(c.prop,"width"===c.prop?b+99:b)});n.addClass("highcharts-animating").animate(c,e)}};e.prototype.afterAnimate=function(){var b=this;this.setClip();P(this.chart.sharedClips,
445
- function(c,a,d){c&&!b.chart.container.querySelector('[clip-path="url(#'+c.id+')"]')&&(c.destroy(),delete d[a])});this.finishedAnimating=!0;r(this,"afterAnimate")};e.prototype.drawPoints=function(){var b=this.points,c=this.chart,a=this.options.marker,d=this[this.specialGroup]||this.markerGroup,g=this.xAxis,f=O(a.enabled,!g||g.isRadial?!0:null,this.closestPointRangePx>=a.enabledThreshold*a.radius),e,m;if(!1!==a.enabled||this._hasPointMarkers)for(e=0;e<b.length;e++){var n=b[e];var r=(m=n.graphic)?"animate":
446
- "attr";var k=n.marker||{};var w=!!n.marker;if((f&&"undefined"===typeof k.enabled||k.enabled)&&!n.isNull&&!1!==n.visible){var l=O(k.symbol,this.symbol,"rect");var p=this.markerAttribs(n,n.selected&&"select");this.enabledDataSorting&&(n.startXPos=g.reversed?-(p.width||0):g.width);var t=!1!==n.isInside;m?m[t?"show":"hide"](t).animate(p):t&&(0<(p.width||0)||n.hasImage)&&(n.graphic=m=c.renderer.symbol(l,p.x,p.y,p.width,p.height,w?k:a).add(d),this.enabledDataSorting&&c.hasRendered&&(m.attr({x:n.startXPos}),
447
- r="animate"));m&&"animate"===r&&m[t?"show":"hide"](t).animate(p);if(m&&!c.styledMode)m[r](this.pointAttribs(n,n.selected&&"select"));m&&m.addClass(n.getClassName(),!0)}else m&&(n.graphic=m.destroy())}};e.prototype.markerAttribs=function(b,c){var a=this.options,d=a.marker,g=b.marker||{},f=g.symbol||d.symbol,e=O(g.radius,d.radius);c&&(d=d.states[c],c=g.states&&g.states[c],e=O(c&&c.radius,d&&d.radius,e+(d&&d.radiusPlus||0)));b.hasImage=f&&0===f.indexOf("url");b.hasImage&&(e=0);b={x:a.crisp?Math.floor(b.plotX-
448
- e):b.plotX-e,y:b.plotY-e};e&&(b.width=b.height=2*e);return b};e.prototype.pointAttribs=function(b,c){var a=this.options.marker,d=b&&b.options,g=d&&d.marker||{},f=d&&d.color,e=b&&b.color,m=b&&b.zone&&b.zone.color,n=this.color;b=O(g.lineWidth,a.lineWidth);d=1;n=f||m||e||n;f=g.fillColor||a.fillColor||n;e=g.lineColor||a.lineColor||n;c=c||"normal";a=a.states[c]||{};c=g.states&&g.states[c]||{};b=O(c.lineWidth,a.lineWidth,b+O(c.lineWidthPlus,a.lineWidthPlus,0));f=c.fillColor||a.fillColor||f;e=c.lineColor||
449
- a.lineColor||e;d=O(c.opacity,a.opacity,d);return{stroke:e,"stroke-width":b,fill:f,opacity:d}};e.prototype.destroy=function(b){var c=this,a=c.chart,d=/AppleWebKit\/533/.test(B.navigator.userAgent),f=c.data||[],e,m,n,k;r(c,"destroy");this.removeEvents(b);(c.axisTypes||[]).forEach(function(b){(k=c[b])&&k.series&&(g(k.series,c),k.isDirty=k.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(m=f.length;m--;)(n=f[m])&&n.destroy&&n.destroy();c.clips&&c.clips.forEach(function(b){return b.destroy()});
450
- l.clearTimeout(c.animationTimeout);P(c,function(b,c){b instanceof q&&!b.survive&&(e=d&&"group"===c?"hide":"destroy",b[e]())});a.hoverSeries===c&&(a.hoverSeries=void 0);g(a.series,c);a.orderSeries();P(c,function(a,d){b&&"hcEvents"===d||delete c[d]})};e.prototype.applyZones=function(){var b=this,c=this.chart,a=c.renderer,d=this.zones,g=this.clips||[],f=this.graph,e=this.area,m=Math.max(c.chartWidth,c.chartHeight),n=this[(this.zoneAxis||"y")+"Axis"],r=c.inverted,k,w,l,p,t,h,u,x,G=!1;if(d.length&&(f||
451
- e)&&n&&"undefined"!==typeof n.min){var q=n.reversed;var y=n.horiz;f&&!this.showLine&&f.hide();e&&e.hide();var B=n.getExtremes();d.forEach(function(d,N){k=q?y?c.plotWidth:0:y?0:n.toPixels(B.min)||0;k=C(O(w,k),0,m);w=C(Math.round(n.toPixels(O(d.value,B.max),!0)||0),0,m);G&&(k=w=n.toPixels(B.max));p=Math.abs(k-w);t=Math.min(k,w);h=Math.max(k,w);n.isXAxis?(l={x:r?h:t,y:0,width:p,height:m},y||(l.x=c.plotHeight-l.x)):(l={x:0,y:r?h:t,width:m,height:p},y&&(l.y=c.plotWidth-l.y));r&&a.isVML&&(l=n.isXAxis?{x:0,
452
- y:q?t:h,height:l.width,width:c.chartWidth}:{x:l.y-c.plotLeft-c.spacingBox.x,y:0,width:l.height,height:c.chartHeight});g[N]?g[N].animate(l):g[N]=a.clipRect(l);u=b["zone-area-"+N];x=b["zone-graph-"+N];f&&x&&x.clip(g[N]);e&&u&&u.clip(g[N]);G=d.value>B.max;b.resetZones&&0===w&&(w=void 0)});this.clips=g}else b.visible&&(f&&f.show(!0),e&&e.show(!0))};e.prototype.invertGroups=function(b){function c(){["group","markerGroup"].forEach(function(c){a[c]&&(d.renderer.isVML&&a[c].attr({width:a.yAxis.len,height:a.xAxis.len}),
453
- a[c].width=a.yAxis.len,a[c].height=a.xAxis.len,a[c].invert(a.isRadialSeries?!1:b))})}var a=this,d=a.chart;a.xAxis&&(a.eventsToUnbind.push(K(d,"resize",c)),c(),a.invertGroups=c)};e.prototype.plotGroup=function(b,c,a,d,g){var f=this[b],e=!f;a={visibility:a,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(a.opacity=this.opacity);e&&(this[b]=f=this.chart.renderer.g().add(g));f.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+
454
- "-series "+(t(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(a)[e?"attr":"animate"](this.getPlotBox());return f};e.prototype.getPlotBox=function(){var b=this.chart,c=this.xAxis,a=this.yAxis;b.inverted&&(c=a,a=this.xAxis);return{translateX:c?c.left:b.plotLeft,translateY:a?a.top:b.plotTop,scaleX:1,scaleY:1}};e.prototype.removeEvents=function(b){b||W(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(b){b()}),
455
- this.eventsToUnbind.length=0)};e.prototype.render=function(){var b=this,c=b.chart,a=b.options,d=f(a.animation),g=b.visible?"inherit":"hidden",e=a.zIndex,m=b.hasRendered,n=c.seriesGroup,k=c.inverted;c=!b.finishedAnimating&&c.renderer.isSVG?d.duration:0;r(this,"render");var w=b.plotGroup("group","series",g,e,n);b.markerGroup=b.plotGroup("markerGroup","markers",g,e,n);!1!==a.clip&&b.setClip();b.animate&&c&&b.animate(!0);w.inverted=O(b.invertible,b.isCartesian)?k:!1;b.drawGraph&&(b.drawGraph(),b.applyZones());
456
- b.visible&&b.drawPoints();b.drawDataLabels&&b.drawDataLabels();b.redrawPoints&&b.redrawPoints();b.drawTracker&&!1!==b.options.enableMouseTracking&&b.drawTracker();b.invertGroups(k);b.animate&&c&&b.animate();m||(c&&d.defer&&(c+=d.defer),b.animationTimeout=ha(function(){b.afterAnimate()},c||0));b.isDirty=!1;b.hasRendered=!0;r(b,"afterRender")};e.prototype.redraw=function(){var b=this.chart,c=this.isDirty||this.isDirtyData,a=this.group,d=this.xAxis,g=this.yAxis;a&&(b.inverted&&a.attr({width:b.plotWidth,
457
- height:b.plotHeight}),a.animate({translateX:O(d&&d.left,b.plotLeft),translateY:O(g&&g.top,b.plotTop)}));this.translate();this.render();c&&delete this.kdTree};e.prototype.searchPoint=function(b,c){var a=this.xAxis,d=this.yAxis,g=this.chart.inverted;return this.searchKDTree({clientX:g?a.len-b.chartY+a.pos:b.chartX-a.pos,plotY:g?d.len-b.chartX+d.pos:b.chartY-d.pos},c,b)};e.prototype.buildKDTree=function(b){function c(b,d,g){var f=b&&b.length;if(f){var e=a.kdAxisArray[d%g];b.sort(function(b,c){return b[e]-
458
- c[e]});f=Math.floor(f/2);return{point:b[f],left:c(b.slice(0,f),d+1,g),right:c(b.slice(f+1),d+1,g)}}}this.buildingKdTree=!0;var a=this,d=-1<a.options.findNearestPointBy.indexOf("y")?2:1;delete a.kdTree;ha(function(){a.kdTree=c(a.getValidPoints(null,!a.directTouch),d,d);a.buildingKdTree=!1},a.options.kdNow||b&&"touchstart"===b.type?0:1)};e.prototype.searchKDTree=function(b,c,a){function d(b,c,a,n){var r=c.point,k=g.kdAxisArray[a%n],w=r,l=t(b[f])&&t(r[f])?Math.pow(b[f]-r[f],2):null;var p=t(b[e])&&t(r[e])?
459
- Math.pow(b[e]-r[e],2):null;p=(l||0)+(p||0);r.dist=t(p)?Math.sqrt(p):Number.MAX_VALUE;r.distX=t(l)?Math.sqrt(l):Number.MAX_VALUE;k=b[k]-r[k];p=0>k?"left":"right";l=0>k?"right":"left";c[p]&&(p=d(b,c[p],a+1,n),w=p[m]<w[m]?p:r);c[l]&&Math.sqrt(k*k)<w[m]&&(b=d(b,c[l],a+1,n),w=b[m]<w[m]?b:w);return w}var g=this,f=this.kdAxisArray[0],e=this.kdAxisArray[1],m=c?"distX":"dist";c=-1<g.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(a);if(this.kdTree)return d(b,
460
- this.kdTree,c,c)};e.prototype.pointPlacementToXValue=function(){var b=this.options,c=b.pointRange,a=this.xAxis;b=b.pointPlacement;"between"===b&&(b=a.reversed?-.5:.5);return w(b)?b*(c||a.pointRange):0};e.prototype.isPointInside=function(b){var c=this.chart,a=this.xAxis,d=this.yAxis;return"undefined"!==typeof b.plotY&&"undefined"!==typeof b.plotX&&0<=b.plotY&&b.plotY<=(d?d.len:c.plotHeight)&&0<=b.plotX&&b.plotX<=(a?a.len:c.plotWidth)};e.prototype.drawTracker=function(){var b=this,c=b.options,a=c.trackByArea,
461
- d=[].concat(a?b.areaPath:b.graphPath),g=b.chart,f=g.pointer,e=g.renderer,m=g.options.tooltip.snap,n=b.tracker,w=function(c){if(g.hoverSeries!==b)b.onMouseOver()},l="rgba(192,192,192,"+(F?.0001:.002)+")";n?n.attr({d:d}):b.graph&&(b.tracker=e.path(d).attr({visibility:b.visible?"visible":"hidden",zIndex:2}).addClass(a?"highcharts-tracker-area":"highcharts-tracker-line").add(b.group),g.styledMode||b.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:l,fill:a?l:"none","stroke-width":b.graph.strokeWidth()+
462
- (a?0:2*m)}),[b.tracker,b.markerGroup,b.dataLabelsGroup].forEach(function(b){if(b&&(b.addClass("highcharts-tracker").on("mouseover",w).on("mouseout",function(b){f.onTrackerMouseOut(b)}),c.cursor&&!g.styledMode&&b.css({cursor:c.cursor}),k))b.on("touchstart",w)}));r(this,"afterDrawTracker")};e.prototype.addPoint=function(b,c,a,d,g){var f=this.options,e=this.data,m=this.chart,n=this.xAxis;n=n&&n.hasNames&&n.names;var k=f.data,w=this.xData,l;c=O(c,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,
463
- [b]);var t=p.x;var h=w.length;if(this.requireSorting&&t<w[h-1])for(l=!0;h&&w[h-1]>t;)h--;this.updateParallelArrays(p,"splice",h,0,0);this.updateParallelArrays(p,h);n&&p.name&&(n[t]=p.name);k.splice(h,0,b);l&&(this.data.splice(h,0,null),this.processData());"point"===f.legendType&&this.generatePoints();a&&(e[0]&&e[0].remove?e[0].remove(!1):(e.shift(),this.updateParallelArrays(p,"shift"),k.shift()));!1!==g&&r(this,"addPoint",{point:p});this.isDirtyData=this.isDirty=!0;c&&m.redraw(d)};e.prototype.removePoint=
464
- function(b,c,a){var g=this,f=g.data,e=f[b],m=g.points,n=g.chart,r=function(){m&&m.length===f.length&&m.splice(b,1);f.splice(b,1);g.options.data.splice(b,1);g.updateParallelArrays(e||{series:g},"splice",b,1);e&&e.destroy();g.isDirty=!0;g.isDirtyData=!0;c&&n.redraw()};d(a,n);c=O(c,!0);e?e.firePointEvent("remove",null,r):r()};e.prototype.remove=function(b,c,a,d){function g(){f.destroy(d);e.isDirtyLegend=e.isDirtyBox=!0;e.linkSeries();O(b,!0)&&e.redraw(c)}var f=this,e=f.chart;!1!==a?r(f,"remove",null,
465
- g):g()};e.prototype.update=function(b,c){b=x(b,this.userOptions);r(this,"update",{options:b});var a=this,d=a.chart,g=a.userOptions,f=a.initialType||a.type,e=d.options.plotOptions,m=J[f].prototype,k=a.finishedAnimating&&{animation:!1},w={},l,p=["eventOptions","navigatorSeries","baseSeries"],t=b.type||g.type||d.options.chart.type,h=!(this.hasDerivedData||t&&t!==this.type||"undefined"!==typeof b.pointStart||"undefined"!==typeof b.pointInterval||"undefined"!==typeof b.relativeXValue||a.hasOptionChanged("dataGrouping")||
466
- a.hasOptionChanged("pointStart")||a.hasOptionChanged("pointInterval")||a.hasOptionChanged("pointIntervalUnit")||a.hasOptionChanged("keys"));t=t||f;h&&(p.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==b.visible&&p.push("area","graph"),a.parallelArrays.forEach(function(b){p.push(b+"Data")}),b.data&&(b.dataSorting&&n(a.options.dataSorting,b.dataSorting),
467
- this.setData(b.data,!1)));b=D(g,k,{index:"undefined"===typeof g.index?a.index:g.index,pointStart:O(e&&e.series&&e.series.pointStart,g.pointStart,a.xData[0])},!h&&{data:a.options.data},b);h&&b.data&&(b.data=a.options.data);p=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(p);p.forEach(function(b){p[b]=a[b];delete a[b]});e=!1;if(J[t]){if(e=t!==a.type,a.remove(!1,!1,!1,!0),e)if(Object.setPrototypeOf)Object.setPrototypeOf(a,J[t].prototype);else{k=Object.hasOwnProperty.call(a,"hcEvents")&&
468
- a.hcEvents;for(l in m)a[l]=void 0;n(a,J[t].prototype);k?a.hcEvents=k:delete a.hcEvents}}else u(17,!0,d,{missingModuleFor:t});p.forEach(function(b){a[b]=p[b]});a.init(d,b);if(h&&this.points){var G=a.options;!1===G.visible?(w.graphic=1,w.dataLabel=1):a._hasPointLabels||(b=G.marker,m=G.dataLabels,!b||!1!==b.enabled&&(g.marker&&g.marker.symbol)===b.symbol||(w.graphic=1),m&&!1===m.enabled&&(w.dataLabel=1));this.points.forEach(function(b){b&&b.series&&(b.resolveColor(),Object.keys(w).length&&b.destroyElements(w),
469
- !1===G.showInLegend&&b.legendItem&&d.legend.destroyItem(b))},this)}a.initialType=f;d.linkSeries();e&&a.linkedSeries.length&&(a.isDirtyData=!0);r(this,"afterUpdate");O(c,!0)&&d.redraw(h?void 0:!1)};e.prototype.setName=function(b){this.name=this.options.name=this.userOptions.name=b;this.chart.isDirtyLegend=!0};e.prototype.hasOptionChanged=function(b){var c=this.options[b],a=this.chart.options.plotOptions,d=this.userOptions[b];return d?c!==d:c!==O(a&&a[this.type]&&a[this.type][b],a&&a.series&&a.series[b],
470
- c)};e.prototype.onMouseOver=function(){var b=this.chart,c=b.hoverSeries;b.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&r(this,"mouseOver");this.setState("hover");b.hoverSeries=this};e.prototype.onMouseOut=function(){var b=this.options,c=this.chart,a=c.tooltip,d=c.hoverPoint;c.hoverSeries=null;if(d)d.onMouseOut();this&&b.events.mouseOut&&r(this,"mouseOut");!a||this.stickyTracking||a.shared&&!this.noSharedTooltip||a.hide();c.series.forEach(function(b){b.setState("",
471
- !0)})};e.prototype.setState=function(b,c){var a=this,d=a.options,g=a.graph,f=d.inactiveOtherPoints,e=d.states,m=O(e[b||"normal"]&&e[b||"normal"].animation,a.chart.options.chart.animation),n=d.lineWidth,r=0,k=d.opacity;b=b||"";if(a.state!==b&&([a.group,a.markerGroup,a.dataLabelsGroup].forEach(function(c){c&&(a.state&&c.removeClass("highcharts-series-"+a.state),b&&c.addClass("highcharts-series-"+b))}),a.state=b,!a.chart.styledMode)){if(e[b]&&!1===e[b].enabled)return;b&&(n=e[b].lineWidth||n+(e[b].lineWidthPlus||
472
- 0),k=O(e[b].opacity,k));if(g&&!g.dashstyle)for(d={"stroke-width":n},g.animate(d,m);a["zone-graph-"+r];)a["zone-graph-"+r].animate(d,m),r+=1;f||[a.group,a.markerGroup,a.dataLabelsGroup,a.labelBySeries].forEach(function(b){b&&b.animate({opacity:k},m)})}c&&f&&a.points&&a.setAllPointsToState(b||void 0)};e.prototype.setAllPointsToState=function(b){this.points.forEach(function(c){c.setState&&c.setState(b)})};e.prototype.setVisible=function(b,c){var a=this,d=a.chart,g=a.legendItem,f=d.options.chart.ignoreHiddenSeries,
473
- e=a.visible,m=(a.visible=b=a.options.visible=a.userOptions.visible="undefined"===typeof b?!e:b)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(b){if(a[b])a[b][m]()});if(d.hoverSeries===a||(d.hoverPoint&&d.hoverPoint.series)===a)a.onMouseOut();g&&d.legend.colorizeItem(a,b);a.isDirty=!0;a.options.stacking&&d.series.forEach(function(b){b.options.stacking&&b.visible&&(b.isDirty=!0)});a.linkedSeries.forEach(function(c){c.setVisible(b,!1)});f&&(d.isDirtyBox=!0);
474
- r(a,m);!1!==c&&d.redraw()};e.prototype.show=function(){this.setVisible(!0)};e.prototype.hide=function(){this.setVisible(!1)};e.prototype.select=function(b){this.selected=b=this.options.selected="undefined"===typeof b?!this.selected:b;this.checkbox&&(this.checkbox.checked=b);r(this,b?"select":"unselect")};e.prototype.shouldShowTooltip=function(b,c,a){void 0===a&&(a={});a.series=this;a.visiblePlotOnly=!0;return this.chart.isInsidePlot(b,c,a)};e.defaultOptions=I;return e}();n(e.prototype,{axisTypes:["xAxis",
475
- "yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:v.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:H,requireSorting:!0,sorted:!0});z.series=e;"";"";return e});M(h,"Extensions/ScrollablePlotArea.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Series/Series.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H){var D=e.stop,z=
476
- H.addEvent,q=H.createElement,l=H.merge,f=H.pick;z(A,"afterSetChartSize",function(d){var a=this.options.chart.scrollablePlotArea,f=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox);this.plotBox.width=this.plotWidth+=f;this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var e={1:{name:"right",value:f}}}}else a&&(this.scrollablePixelsY=f=Math.max(0,
477
- a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,e={2:{name:"bottom",value:f}});e&&!d.skipAxes&&this.axes.forEach(function(a){e[a.side]?a.getPlotLinePath=function(){var d=e[a.side].name,f=this[d];this[d]=f-e[a.side].value;var k=h.prototype.getPlotLinePath.apply(this,arguments);this[d]=f;return k}:(a.setAxisSize(),a.setAxisTranslation())})}});z(A,"render",function(){this.scrollablePixelsX||
478
- this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var d=this,a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=q("div",{className:"highcharts-scrolling"},
479
- a,this.scrollingParent);z(this.scrollingContainer,"scroll",function(){d.pointer&&delete d.pointer.chartPosition});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var d=this.container,a=this.fixedRenderer,f=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
480
- e;this.scrollablePixelsX&&!this.inverted?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis");e&&f.push(e+":not(.highcharts-radial-axis)",e+"-labels:not(.highcharts-radial-axis-labels)");f.forEach(function(f){[].forEach.call(d.querySelectorAll(f),function(d){(d.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(d);d.style.pointerEvents="auto"})})};
481
- A.prototype.applyFixed=function(){var d=!this.fixedDiv,a=this.options.chart,e=a.scrollablePlotArea,k=v.getRendererType();d?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=a=new k(this.fixedDiv,this.chartWidth,this.chartHeight,
482
- this.options.chart.style),this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":f(e.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||d)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+
483
- (this.scrollablePixelsX||0);k=this.chartHeight+(this.scrollablePixelsY||0);D(this.container);this.container.style.width=a+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:a,height:k,viewBox:[0,0,a,k].join(" ")});this.chartBackground.attr({width:a,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";d&&(e.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*e.scrollPositionX),e.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
484
- e.scrollPositionY));k=this.axisOffset;d=this.plotTop-k[0]-1;e=this.plotLeft-k[3]-1;a=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var l=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),h=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);d=this.scrollablePixelsX?[["M",0,d],["L",this.plotLeft-1,d],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",l,d],["L",this.chartWidth,d],["L",this.chartWidth,a],["L",l,a],["Z"]]:this.scrollablePixelsY?[["M",e,0],["L",e,this.plotTop-
485
- 1],["L",k,this.plotTop-1],["L",k,0],["Z"],["M",e,h],["L",e,this.chartHeight],["L",k,this.chartHeight],["L",k,h],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:d})};z(h,"afterInit",function(){this.chart.scrollableDirty=!0});z(E,"show",function(){this.chart.scrollableDirty=!0});""});M(h,"Core/Axis/StackingAxis.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/Utilities.js"]],function(e,h,A){var D=e.getDeferredAnimation,v=A.addEvent,H=
486
- A.destroyObjectProperties,I=A.fireEvent,z=A.isNumber,q=A.objectEach,l;(function(f){function d(){var a=this.stacking;if(a){var d=a.stacks;q(d,function(a,f){H(a);d[f]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function a(){this.stacking||(this.stacking=new k(this))}var e=[];f.compose=function(f){-1===e.indexOf(f)&&(e.push(f),v(f,"init",a),v(f,"destroy",d));return f};var k=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
487
- function(){var a=this.axis,d=a.series,f=a.options.reversedStacks,e=d.length,k;if(!a.isXAxis){this.usePercentage=!1;for(k=e;k--;){var l=d[f?k:e-k-1];l.setStackedPoints();l.setGroupedPoints()}for(k=0;k<e;k++)d[k].modifyStacks();I(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;q(a,function(a){q(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,d=a.stacks;a.axis.isXAxis||q(d,function(d){q(d,
488
- function(f,e){z(f.touched)&&f.touched<a.stacksTouched?(f.destroy(),delete d[e]):(f.total=null,f.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,d=a.chart,f=d.renderer,e=this.stacks;a=D(d,a.options.stackLabels&&a.options.stackLabels.animation||!1);var k=this.stackTotalGroup=this.stackTotalGroup||f.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();k.translate(d.plotLeft,d.plotTop);q(e,function(a){q(a,function(a){a.render(k)})});k.animate({opacity:1},
489
- a)};return a}();f.Additions=k})(l||(l={}));return l});M(h,"Extensions/Stacking.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Series/Series.js"],h["Core/Axis/StackingAxis.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H,I){var z=A.format,q=I.correctFloat,l=I.defined,f=I.destroyObjectProperties,d=I.isArray,a=I.isNumber,p=I.objectEach,k=I.pick,F=function(){function d(a,d,f,e,k){var l=a.chart.inverted;this.axis=a;this.isNegative=f;this.options=
490
- d=d||{};this.x=e;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=k;this.rightCliff=this.leftCliff=0;this.alignOptions={align:d.align||(l?f?"left":"right":"center"),verticalAlign:d.verticalAlign||(l?"middle":f?"bottom":"top"),y:d.y,x:d.x};this.textAlign=d.textAlign||(l?f?"right":"left":"center")}d.prototype.destroy=function(){f(this,this.axis)};d.prototype.render=function(a){var d=this.axis.chart,f=this.options,e=f.format;e=e?z(e,this,d):f.formatter.call(this);this.label?this.label.attr({text:e,
491
- visibility:"hidden"}):(this.label=d.renderer.label(e,null,null,f.shape,null,null,f.useHTML,!1,"stack-labels"),e={r:f.borderRadius||0,text:e,rotation:f.rotation,padding:k(f.padding,5),visibility:"hidden"},d.styledMode||(e.fill=f.backgroundColor,e.stroke=f.borderColor,e["stroke-width"]=f.borderWidth,this.label.css(f.style)),this.label.attr(e),this.label.added||this.label.add(a));this.label.labelrank=d.plotSizeY};d.prototype.setOffset=function(d,f,e,p,h){var x=this.axis,c=x.chart;p=x.translate(x.stacking.usePercentage?
492
- 100:p?p:this.total,0,0,0,1);e=x.translate(e?e:0);e=l(p)&&Math.abs(p-e);d=k(h,c.xAxis[0].translate(this.x))+d;x=l(p)&&this.getStackBox(c,this,d,p,f,e,x);f=this.label;e=this.isNegative;d="justify"===k(this.options.overflow,"justify");var t=this.textAlign;f&&x&&(h=f.getBBox(),p=f.padding,t="left"===t?c.inverted?-p:p:"right"===t?h.width:c.inverted&&"center"===t?h.width/2:c.inverted?e?h.width+p:-p:h.width/2,e=c.inverted?h.height/2:e?-p:h.height,this.alignOptions.x=k(this.options.x,0),this.alignOptions.y=
493
- k(this.options.y,0),x.x-=t,x.y-=e,f.align(this.alignOptions,null,x),c.isInsidePlot(f.alignAttr.x+t-this.alignOptions.x,f.alignAttr.y+e-this.alignOptions.y)?f.show():(f.alignAttr.y=-9999,d=!1),d&&v.prototype.justifyDataLabel.call(this.axis,f,this.alignOptions,f.alignAttr,h,x),f.attr({x:f.alignAttr.x,y:f.alignAttr.y}),k(!d&&this.options.crop,!0)&&((c=a(f.x)&&a(f.y)&&c.isInsidePlot(f.x-p+f.width,f.y)&&c.isInsidePlot(f.x+p,f.y))||f.hide()))};d.prototype.getStackBox=function(a,d,f,e,k,l,c){var p=d.axis.reversed,
494
- g=a.inverted,h=c.height+c.pos-(g?a.plotLeft:a.plotTop);d=d.isNegative&&!p||!d.isNegative&&p;return{x:g?d?e-c.right:e-l+c.pos-a.plotLeft:f+a.xAxis[0].transB-a.plotLeft,y:g?c.height-f-k:d?h-e-l:h-e,width:g?l:k,height:g?k:l}};return d}();h.prototype.getStacks=function(){var a=this,d=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(f){var e=f.xAxis&&f.xAxis.options||{};!f.options.stacking||!0!==
495
- f.visible&&!1!==a.options.chart.ignoreHiddenSeries||(f.stackKey=[f.type,k(f.options.stack,""),d?e.top:e.left,d?e.height:e.width].join())})};H.compose(e);v.prototype.setGroupedPoints=function(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?v.prototype.setStackedPoints.call(this,"group"):a&&p(a.stacks,function(d,f){"group"===f.slice(-5)&&(p(d,function(a){return a.destroy()}),delete a.stacks[f])})};
496
- v.prototype.setStackedPoints=function(a){var f=a||this.options.stacking;if(f&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,p=this.processedYData,h=[],C=p.length,x=this.options,c=x.threshold,t=k(x.startFromThreshold&&c,0);x=x.stack;a=a?this.type+","+f:this.stackKey;var g="-"+a,u=this.negStacks,n=this.yAxis,b=n.stacking.stacks,r=n.stacking.oldStacks,G,m;n.stacking.stacksTouched+=1;for(m=0;m<C;m++){var w=e[m];var N=p[m];var B=this.getStackIndicator(B,
497
- w,this.index);var v=B.key;var O=(G=u&&N<(t?0:c))?g:a;b[O]||(b[O]={});b[O][w]||(r[O]&&r[O][w]?(b[O][w]=r[O][w],b[O][w].total=null):b[O][w]=new F(n,n.options.stackLabels,G,w,x));O=b[O][w];null!==N?(O.points[v]=O.points[this.index]=[k(O.cumulative,t)],l(O.cumulative)||(O.base=v),O.touched=n.stacking.stacksTouched,0<B.index&&!1===this.singleStacks&&(O.points[v][0]=O.points[this.index+","+w+",0"][0])):O.points[v]=O.points[this.index]=null;"percent"===f?(G=G?a:g,u&&b[G]&&b[G][w]?(G=b[G][w],O.total=G.total=
498
- Math.max(G.total,O.total)+Math.abs(N)||0):O.total=q(O.total+(Math.abs(N)||0))):"group"===f?(d(N)&&(N=N[0]),null!==N&&(O.total=(O.total||0)+1)):O.total=q(O.total+(N||0));O.cumulative="group"===f?(O.total||1)-1:k(O.cumulative,t)+(N||0);null!==N&&(O.points[v].push(O.cumulative),h[m]=O.cumulative,O.hasValidPoints=!0)}"percent"===f&&(n.stacking.usePercentage=!0);"group"!==f&&(this.stackedYData=h);n.stacking.oldStacks={}}};v.prototype.modifyStacks=function(){var a=this,d=a.stackKey,f=a.yAxis.stacking.stacks,
499
- e=a.processedXData,k,l=a.options.stacking;a[l+"Stacker"]&&[d,"-"+d].forEach(function(d){for(var c=e.length,p,g;c--;)if(p=e[c],k=a.getStackIndicator(k,p,a.index,d),g=(p=f[d]&&f[d][p])&&p.points[k.key])a[l+"Stacker"](g,p,c)})};v.prototype.percentStacker=function(a,d,f){d=d.total?100/d.total:0;a[0]=q(a[0]*d);a[1]=q(a[1]*d);this.stackedYData[f]=a[1]};v.prototype.getStackIndicator=function(a,d,f,e){!l(a)||a.x!==d||e&&a.key!==e?a={x:d,index:0,key:e}:a.index++;a.key=[f,d,a.index].join();return a};E.StackItem=
500
- F;"";return E.StackItem});M(h,"Series/Line/LineSeries.js",[h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A){var D=this&&this.__extends||function(){var e=function(h,q){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var d in f)f.hasOwnProperty(d)&&(e[d]=f[d])};return e(h,q)};return function(h,q){function l(){this.constructor=h}e(h,q);h.prototype=null===q?Object.create(q):(l.prototype=q.prototype,
501
- new l)}}(),v=A.defined,H=A.merge;A=function(h){function z(){var e=null!==h&&h.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}D(z,h);z.prototype.drawGraph=function(){var e=this,l=this.options,f=(this.gappedPath||this.getGraphPath).call(this),d=this.chart.styledMode,a=[["graph","highcharts-graph"]];d||a[0].push(l.lineColor||this.color||"#cccccc",l.dashStyle);a=e.getZonesGraphs(a);a.forEach(function(a,k){var p=a[0],h=e[p],q=h?"animate":"attr";h?(h.endX=e.preventGraphAnimation?
502
- null:f.xMap,h.animate({d:f})):f.length&&(e[p]=h=e.chart.renderer.path(f).addClass(a[1]).attr({zIndex:1}).add(e.group));h&&!d&&(p={stroke:a[2],"stroke-width":l.lineWidth,fill:e.fillGraph&&e.color||"none"},a[3]?p.dashstyle=a[3]:"square"!==l.linecap&&(p["stroke-linecap"]=p["stroke-linejoin"]="round"),h[q](p).shadow(2>k&&l.shadow));h&&(h.startX=f.xMap,h.isArea=f.isArea)})};z.prototype.getGraphPath=function(e,l,f){var d=this,a=d.options,h=[],k=[],q,B=a.step;e=e||d.points;var J=e.reversed;J&&e.reverse();
503
- (B={right:1,center:2}[B]||B&&3)&&J&&(B=4-B);e=this.getValidPoints(e,!1,!(a.connectNulls&&!l&&!f));e.forEach(function(p,F){var y=p.plotX,C=p.plotY,x=e[F-1];(p.leftCliff||x&&x.rightCliff)&&!f&&(q=!0);p.isNull&&!v(l)&&0<F?q=!a.connectNulls:p.isNull&&!l?q=!0:(0===F||q?F=[["M",p.plotX,p.plotY]]:d.getPointSpline?F=[d.getPointSpline(e,p,F)]:B?(F=1===B?[["L",x.plotX,C]]:2===B?[["L",(x.plotX+y)/2,x.plotY],["L",(x.plotX+y)/2,C]]:[["L",y,x.plotY]],F.push(["L",y,C])):F=[["L",y,C]],k.push(p.x),B&&(k.push(p.x),
504
- 2===B&&k.push(p.x)),h.push.apply(h,F),q=!1)});h.xMap=k;return d.graphPath=h};z.prototype.getZonesGraphs=function(e){this.zones.forEach(function(l,f){f=["zone-graph-"+f,"highcharts-graph highcharts-zone-graph-"+f+" "+(l.className||"")];this.chart.styledMode||f.push(l.color||this.color,l.dashStyle||this.options.dashStyle);e.push(f)},this);return e};z.defaultOptions=H(e.defaultOptions,{});return z}(e);h.registerSeriesType("line",A);"";return A});M(h,"Series/Area/AreaSeries.js",[h["Core/Color/Color.js"],
505
- h["Core/Legend/LegendSymbol.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A,E){var v=this&&this.__extends||function(){var f=function(d,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return f(d,a)};return function(d,a){function e(){this.constructor=d}f(d,a);d.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),D=e.parse,I=A.seriesTypes.line;e=
506
- E.extend;var z=E.merge,q=E.objectEach,l=E.pick;E=function(f){function d(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(d,f);d.prototype.drawGraph=function(){this.areaPath=[];f.prototype.drawGraph.apply(this);var a=this,d=this.areaPath,e=this.options,h=[["area","highcharts-area",this.color,e.fillColor]];this.zones.forEach(function(d,f){h.push(["zone-area-"+f,"highcharts-area highcharts-zone-area-"+f+" "+d.className,d.color||a.color,d.fillColor||
507
- e.fillColor])});h.forEach(function(f){var k=f[0],h=a[k],p=h?"animate":"attr",q={};h?(h.endX=a.preventGraphAnimation?null:d.xMap,h.animate({d:d})):(q.zIndex=0,h=a[k]=a.chart.renderer.path(d).addClass(f[1]).add(a.group),h.isArea=!0);a.chart.styledMode||(q.fill=l(f[3],D(f[2]).setOpacity(l(e.fillOpacity,.75)).get()));h[p](q);h.startX=d.xMap;h.shiftUnit=e.step?2:1})};d.prototype.getGraphPath=function(a){var d=I.prototype.getGraphPath,f=this.options,e=f.stacking,h=this.yAxis,q,v=[],z=[],y=this.index,C=
508
- h.stacking.stacks[this.stackKey],x=f.threshold,c=Math.round(h.getThreshold(f.threshold));f=l(f.connectNulls,"percent"===e);var t=function(b,d,f){var g=a[b];b=e&&C[g.x].points[y];var n=g[f+"Null"]||0;f=g[f+"Cliff"]||0;g=!0;if(f||n){var r=(n?b[0]:b[1])+f;var k=b[0]+f;g=!!n}else!e&&a[d]&&a[d].isNull&&(r=k=x);"undefined"!==typeof r&&(z.push({plotX:u,plotY:null===r?c:h.getThreshold(r),isNull:g,isCliff:!0}),v.push({plotX:u,plotY:null===k?c:h.getThreshold(k),doCurve:!1}))};a=a||this.points;e&&(a=this.getStackPoints(a));
509
- for(q=0;q<a.length;q++){e||(a[q].leftCliff=a[q].rightCliff=a[q].leftNull=a[q].rightNull=void 0);var g=a[q].isNull;var u=l(a[q].rectPlotX,a[q].plotX);var n=e?l(a[q].yBottom,c):c;if(!g||f)f||t(q,q-1,"left"),g&&!e&&f||(z.push(a[q]),v.push({x:q,plotX:u,plotY:n})),f||t(q,q+1,"right")}q=d.call(this,z,!0,!0);v.reversed=!0;g=d.call(this,v,!0,!0);(n=g[0])&&"M"===n[0]&&(g[0]=["L",n[1],n[2]]);g=q.concat(g);g.length&&g.push(["Z"]);d=d.call(this,z,!1,f);g.xMap=q.xMap;this.areaPath=g;return d};d.prototype.getStackPoints=
510
- function(a){var d=this,f=[],e=[],h=this.xAxis,v=this.yAxis,z=v.stacking.stacks[this.stackKey],D={},y=v.series,C=y.length,x=v.options.reversedStacks?1:-1,c=y.indexOf(d);a=a||this.points;if(this.options.stacking){for(var t=0;t<a.length;t++)a[t].leftNull=a[t].rightNull=void 0,D[a[t].x]=a[t];q(z,function(c,a){null!==c.total&&e.push(a)});e.sort(function(c,a){return c-a});var g=y.map(function(c){return c.visible});e.forEach(function(a,n){var b=0,r,k;if(D[a]&&!D[a].isNull)f.push(D[a]),[-1,1].forEach(function(b){var f=
511
- 1===b?"rightNull":"leftNull",m=0,w=z[e[n+b]];if(w)for(var h=c;0<=h&&h<C;){var l=y[h].index;r=w.points[l];r||(l===d.index?D[a][f]=!0:g[h]&&(k=z[a].points[l])&&(m-=k[1]-k[0]));h+=x}D[a][1===b?"rightCliff":"leftCliff"]=m});else{for(var m=c;0<=m&&m<C;){if(r=z[a].points[y[m].index]){b=r[1];break}m+=x}b=l(b,0);b=v.translate(b,0,1,0,1);f.push({isNull:!0,plotX:h.translate(a,0,0,0,1),x:a,plotY:b,yBottom:b})}})}return f};d.defaultOptions=z(I.defaultOptions,{threshold:0});return d}(I);e(E.prototype,{singleStacks:!1,
512
- drawLegendSymbol:h.drawRectangle});A.registerSeriesType("area",E);"";return E});M(h,"Series/Spline/SplineSeries.js",[h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h){var D=this&&this.__extends||function(){var e=function(h,q){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var d in f)f.hasOwnProperty(d)&&(e[d]=f[d])};return e(h,q)};return function(h,q){function l(){this.constructor=h}e(h,q);h.prototype=null===q?Object.create(q):
513
- (l.prototype=q.prototype,new l)}}(),E=e.seriesTypes.line,v=h.merge,H=h.pick;h=function(e){function h(){var h=null!==e&&e.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}D(h,e);h.prototype.getPointSpline=function(e,h,f){var d=h.plotX||0,a=h.plotY||0,l=e[f-1];f=e[f+1];if(l&&!l.isNull&&!1!==l.doCurve&&!h.isCliff&&f&&!f.isNull&&!1!==f.doCurve&&!h.isCliff){e=l.plotY||0;var k=f.plotX||0;f=f.plotY||0;var q=0;var B=(1.5*d+(l.plotX||0))/2.5;var v=(1.5*a+e)/2.5;k=(1.5*d+
514
- k)/2.5;var z=(1.5*a+f)/2.5;k!==B&&(q=(z-v)*(k-d)/(k-B)+a-z);v+=q;z+=q;v>e&&v>a?(v=Math.max(e,a),z=2*a-v):v<e&&v<a&&(v=Math.min(e,a),z=2*a-v);z>f&&z>a?(z=Math.max(f,a),v=2*a-z):z<f&&z<a&&(z=Math.min(f,a),v=2*a-z);h.rightContX=k;h.rightContY=z}h=["C",H(l.rightContX,l.plotX,0),H(l.rightContY,l.plotY,0),H(B,d,0),H(v,a,0),d,a];l.rightContX=l.rightContY=void 0;return h};h.defaultOptions=v(E.defaultOptions);return h}(E);e.registerSeriesType("spline",h);"";return h});M(h,"Series/AreaSpline/AreaSplineSeries.js",
515
- [h["Series/Area/AreaSeries.js"],h["Series/Spline/SplineSeries.js"],h["Core/Legend/LegendSymbol.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A,E,v){var D=this&&this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):
516
- (a.prototype=d.prototype,new a)}}(),I=e.prototype,z=v.extend,q=v.merge;v=function(l){function f(){var d=null!==l&&l.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=void 0;return d}D(f,l);f.defaultOptions=q(h.defaultOptions,e.defaultOptions);return f}(h);z(v.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:A.drawRectangle});E.registerSeriesType("areaspline",v);"";return v});M(h,"Series/Column/ColumnSeries.js",[h["Core/Animation/AnimationUtilities.js"],
517
- h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Legend/LegendSymbol.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H,I){var z=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d])};return a(d,c)};return function(d,c){function f(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):
518
- (f.prototype=c.prototype,new f)}}(),q=e.animObject,l=h.parse,f=A.hasTouch;e=A.noop;var d=I.clamp,a=I.css,p=I.defined,k=I.extend,F=I.fireEvent,B=I.isArray,J=I.isNumber,D=I.merge,L=I.pick,y=I.objectEach;I=function(e){function h(){var c=null!==e&&e.apply(this,arguments)||this;c.borderWidth=void 0;c.data=void 0;c.group=void 0;c.options=void 0;c.points=void 0;return c}z(h,e);h.prototype.animate=function(c){var a=this,f=this.yAxis,e=a.options,n=this.chart.inverted,b={},r=n?"translateX":"translateY";if(c)b.scaleY=
519
- .001,c=d(f.toPixels(e.threshold),f.pos,f.pos+f.len),n?b.translateX=c-f.len:b.translateY=c,a.clipBox&&a.setClip(),a.group.attr(b);else{var h=Number(a.group.attr(r));a.group.animate({scaleY:1},k(q(a.options.animation),{step:function(c,d){a.group&&(b[r]=h+d.pos*(f.pos-h),a.group.attr(b))}}))}};h.prototype.init=function(c,a){e.prototype.init.apply(this,arguments);var d=this;c=d.chart;c.hasRendered&&c.series.forEach(function(c){c.type===d.type&&(c.isDirty=!0)})};h.prototype.getColumnMetrics=function(){var c=
520
- this,a=c.options,d=c.xAxis,f=c.yAxis,e=d.options.reversedStacks;e=d.reversed&&!e||!d.reversed&&e;var b={},r,k=0;!1===a.grouping?k=1:c.chart.series.forEach(function(a){var d=a.yAxis,g=a.options;if(a.type===c.type&&(a.visible||!c.chart.options.chart.ignoreHiddenSeries)&&f.len===d.len&&f.pos===d.pos){if(g.stacking&&"group"!==g.stacking){r=a.stackKey;"undefined"===typeof b[r]&&(b[r]=k++);var e=b[r]}else!1!==g.grouping&&(e=k++);a.columnIndex=e}});var m=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||
521
- a.pointRange||d.closestPointRange||d.tickInterval||1),d.len),h=m*a.groupPadding,l=(m-2*h)/(k||1);a=Math.min(a.maxPointWidth||d.len,L(a.pointWidth,l*(1-2*a.pointPadding)));c.columnMetrics={width:a,offset:(l-a)/2+(h+((c.columnIndex||0)+(e?1:0))*l-m/2)*(e?-1:1),paddedWidth:l,columnCount:k};return c.columnMetrics};h.prototype.crispCol=function(c,a,d,f){var g=this.chart,b=this.borderWidth,e=-(b%2?.5:0);b=b%2?.5:1;g.inverted&&g.renderer.isVML&&(b+=1);this.options.crisp&&(d=Math.round(c+d)+e,c=Math.round(c)+
522
- e,d-=c);f=Math.round(a+f)+b;e=.5>=Math.abs(a)&&.5<f;a=Math.round(a)+b;f-=a;e&&f&&(--a,f+=1);return{x:c,y:a,width:d,height:f}};h.prototype.adjustForMissingColumns=function(c,a,d,f){var g=this,b=this.options.stacking;if(!d.isNull&&1<f.columnCount){var e=0,k=0;y(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(c){if("number"===typeof d.x&&(c=c[d.x.toString()])){var a=c.points[g.index],f=c.total;b?(a&&(e=k),c.hasValidPoints&&k++):B(a)&&(e=a[1],k=f||0)}});c=(d.plotX||0)+((k-1)*f.paddedWidth+a)/
523
- 2-a-e*f.paddedWidth}return c};h.prototype.translate=function(){var c=this,a=c.chart,f=c.options,e=c.dense=2>c.closestPointRange*c.xAxis.transA;e=c.borderWidth=L(f.borderWidth,e?0:1);var n=c.xAxis,b=c.yAxis,r=f.threshold,k=c.translatedThreshold=b.getThreshold(r),m=L(f.minPointLength,5),h=c.getColumnMetrics(),l=h.width,x=c.pointXOffset=h.offset,q=c.dataMin,y=c.dataMax,C=c.barW=Math.max(l,1+2*e);a.inverted&&(k-=.5);f.pointPadding&&(C=Math.ceil(C));v.prototype.translate.apply(c);c.points.forEach(function(g){var e=
524
- L(g.yBottom,k),w=999+Math.abs(e),t=g.plotX||0;w=d(g.plotY,-w,b.len+w);var u=Math.min(w,e),G=Math.max(w,e)-u,N=l,B=t+x,F=C;m&&Math.abs(G)<m&&(G=m,t=!b.reversed&&!g.negative||b.reversed&&g.negative,J(r)&&J(y)&&g.y===r&&y<=r&&(b.min||0)<r&&(q!==y||(b.max||0)<=r)&&(t=!t),u=Math.abs(u-k)>m?e-m:k-(t?m:0));p(g.options.pointWidth)&&(N=F=Math.ceil(g.options.pointWidth),B-=Math.round((N-l)/2));f.centerInCategory&&(B=c.adjustForMissingColumns(B,N,g,h));g.barX=B;g.pointWidth=N;g.tooltipPos=a.inverted?[d(b.len+
525
- b.pos-a.plotLeft-w,b.pos-a.plotLeft,b.len+b.pos-a.plotLeft),n.len+n.pos-a.plotTop-B-F/2,G]:[n.left-a.plotLeft+B+F/2,d(w+b.pos-a.plotTop,b.pos-a.plotTop,b.len+b.pos-a.plotTop),G];g.shapeType=c.pointClass.prototype.shapeType||"rect";g.shapeArgs=c.crispCol.apply(c,g.isNull?[B,k,F,0]:[B,u,F,G])})};h.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};h.prototype.pointAttribs=function(c,a){var d=this.options,f=this.pointAttrToOptions||{},e=f.stroke||
526
- "borderColor",b=f["stroke-width"]||"borderWidth",r=c&&c.color||this.color,k=c&&c[e]||d[e]||r;f=c&&c.options.dashStyle||d.dashStyle;var m=c&&c[b]||d[b]||this[b]||0,h=L(c&&c.opacity,d.opacity,1);if(c&&this.zones.length){var p=c.getZone();r=c.options.color||p&&(p.color||c.nonZonedColor)||this.color;p&&(k=p.borderColor||k,f=p.dashStyle||f,m=p.borderWidth||m)}a&&c&&(c=D(d.states[a],c.options.states&&c.options.states[a]||{}),a=c.brightness,r=c.color||"undefined"!==typeof a&&l(r).brighten(c.brightness).get()||
527
- r,k=c[e]||k,m=c[b]||m,f=c.dashStyle||f,h=L(c.opacity,h));e={fill:r,stroke:k,"stroke-width":m,opacity:h};f&&(e.dashstyle=f);return e};h.prototype.drawPoints=function(){var c=this,a=this.chart,d=c.options,f=a.renderer,e=d.animationLimit||250,b;c.points.forEach(function(g){var n=g.graphic,m=!!n,k=n&&a.pointCount<e?"animate":"attr";if(J(g.plotY)&&null!==g.y){b=g.shapeArgs;n&&g.hasNewShapeType()&&(n=n.destroy());c.enabledDataSorting&&(g.startXPos=c.xAxis.reversed?-(b?b.width||0:0):c.xAxis.width);n||(g.graphic=
528
- n=f[g.shapeType](b).add(g.group||c.group))&&c.enabledDataSorting&&a.hasRendered&&a.pointCount<e&&(n.attr({x:g.startXPos}),m=!0,k="animate");if(n&&m)n[k](D(b));if(d.borderRadius)n[k]({r:d.borderRadius});a.styledMode||n[k](c.pointAttribs(g,g.selected&&"select")).shadow(!1!==g.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);n&&(n.addClass(g.getClassName(),!0),n.attr({visibility:g.visible?"inherit":"hidden"}))}else n&&(g.graphic=n.destroy())})};h.prototype.drawTracker=function(){var c=this,d=
529
- c.chart,g=d.pointer,e=function(b){var c=g.getPointFromEvent(b);"undefined"!==typeof c&&(g.isDirectTouch=!0,c.onMouseOver(b))},n;c.points.forEach(function(b){n=B(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[];b.graphic&&(b.graphic.element.point=b);n.forEach(function(c){c.div?c.div.point=b:c.element.point=b})});c._hasTracking||(c.trackerGroups.forEach(function(b){if(c[b]){c[b].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(b){g.onTrackerMouseOut(b)});if(f)c[b].on("touchstart",
530
- e);!d.styledMode&&c.options.cursor&&c[b].css(a).css({cursor:c.options.cursor})}}),c._hasTracking=!0);F(this,"afterDrawTracker")};h.prototype.remove=function(){var c=this,a=c.chart;a.hasRendered&&a.series.forEach(function(a){a.type===c.type&&(a.isDirty=!0)});v.prototype.remove.apply(c,arguments)};h.defaultOptions=D(v.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
531
- select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return h}(v);k(I.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:E.drawRectangle,getSymbol:e,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});H.registerSeriesType("column",I);"";"";return I});M(h,"Core/Series/DataLabel.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/FormatUtilities.js"],
532
- h["Core/Utilities.js"]],function(e,h,A){var D=e.getDeferredAnimation,v=h.format,H=A.defined,I=A.extend,z=A.fireEvent,q=A.isArray,l=A.merge,f=A.objectEach,d=A.pick,a=A.splat,p;(function(e){function k(a,c,f,g,e){var n=this,b=this.chart,k=this.isCartesian&&b.inverted,h=this.enabledDataSorting,m=d(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),w=d(a.plotY,-9999),l=c.getBBox(),p=f.rotation,t=f.align,u=b.isInsidePlot(m,Math.round(w),{inverted:k,paneCoordinates:!0,series:n}),x=function(b){h&&n.xAxis&&!q&&n.setDataLabelStartPos(a,
533
- c,e,u,b)},q="justify"===d(f.overflow,h?"none":"justify"),y=this.visible&&!1!==a.visible&&(a.series.forceDL||h&&!q||u||d(f.inside,!!this.options.stacking)&&g&&b.isInsidePlot(m,k?g.x+1:g.y+g.height-1,{inverted:k,paneCoordinates:!0,series:n}));if(y){var C=b.renderer.fontMetrics(b.styledMode?void 0:f.style.fontSize,c).b;g=I({x:k?this.yAxis.len-w:m,y:Math.round(k?this.xAxis.len-m:w),width:0,height:0},g);I(f,{width:l.width,height:l.height});p?(q=!1,m=b.renderer.rotCorr(C,p),m={x:g.x+(f.x||0)+g.width/2+
534
- m.x,y:g.y+(f.y||0)+{top:0,middle:.5,bottom:1}[f.verticalAlign]*g.height},x(m),c[e?"attr":"animate"](m).attr({align:t}),x=(p+720)%360,x=180<x&&360>x,"left"===t?m.y-=x?l.height:0:"center"===t?(m.x-=l.width/2,m.y-=l.height/2):"right"===t&&(m.x-=l.width,m.y-=x?0:l.height),c.placed=!0,c.alignAttr=m):(x(g),c.align(f,void 0,g),m=c.alignAttr);q&&0<=g.height?this.justifyDataLabel(c,f,m,l,g,e):d(f.crop,!0)&&(y=b.isInsidePlot(m.x,m.y,{paneCoordinates:!0,series:n})&&b.isInsidePlot(m.x+l.width,m.y+l.height,{paneCoordinates:!0,
535
- series:n}));if(f.shape&&!p)c[e?"attr":"animate"]({anchorX:k?b.plotWidth-a.plotY:a.plotX,anchorY:k?b.plotHeight-a.plotX:a.plotY})}e&&h&&(c.placed=!1);y||h&&!q||(c.hide(!0),c.placed=!1)}function h(a,c){var d=c.filter;return d?(c=d.operator,a=a[d.property],d=d.value,">"===c&&a>d||"<"===c&&a<d||">="===c&&a>=d||"<="===c&&a<=d||"=="===c&&a==d||"==="===c&&a===d?!0:!1):!0}function p(){var e=this,c=e.chart,k=e.options,g=e.points,l=e.hasRendered||0,n=c.renderer,b=k.dataLabels,r,p=b.animation;p=b.defer?D(c,
536
- p,e):{defer:0,duration:0};b=L(L(c.options.plotOptions&&c.options.plotOptions.series&&c.options.plotOptions.series.dataLabels,c.options.plotOptions&&c.options.plotOptions[e.type]&&c.options.plotOptions[e.type].dataLabels),b);z(this,"drawDataLabels");if(q(b)||b.enabled||e._hasPointLabels){var m=e.plotGroup("dataLabelsGroup","data-labels",l?"inherit":"hidden",b.zIndex||6);m.attr({opacity:+l});!l&&(l=e.dataLabelsGroup)&&(e.visible&&m.show(!0),l[k.animation?"animate":"attr"]({opacity:1},p));g.forEach(function(g){r=
537
- a(L(b,g.dlOptions||g.options&&g.options.dataLabels));r.forEach(function(b,a){var r=b.enabled&&(!g.isNull||g.dataLabelOnNull)&&h(g,b),l=g.connectors?g.connectors[a]:g.connector,w=g.dataLabels?g.dataLabels[a]:g.dataLabel,p=d(b.distance,g.labelDistance),u=!w;if(r){var t=g.getLabelConfig();var q=d(b[g.formatPrefix+"Format"],b.format);t=H(q)?v(q,t,c):(b[g.formatPrefix+"Formatter"]||b.formatter).call(t,b);q=b.style;var x=b.rotation;c.styledMode||(q.color=d(b.color,q.color,e.color,"#000000"),"contrast"===
538
- q.color?(g.contrastColor=n.getContrast(g.color||e.color),q.color=!H(p)&&b.inside||0>p||k.stacking?g.contrastColor:"#000000"):delete g.contrastColor,k.cursor&&(q.cursor=k.cursor));var G={r:b.borderRadius||0,rotation:x,padding:b.padding,zIndex:1};c.styledMode||(G.fill=b.backgroundColor,G.stroke=b.borderColor,G["stroke-width"]=b.borderWidth);f(G,function(b,c){"undefined"===typeof b&&delete G[c]})}!w||r&&H(t)?r&&H(t)&&(w?G.text=t:(g.dataLabels=g.dataLabels||[],w=g.dataLabels[a]=x?n.text(t,0,-9999,b.useHTML).addClass("highcharts-data-label"):
539
- n.label(t,0,-9999,b.shape,null,null,b.useHTML,null,"data-label"),a||(g.dataLabel=w),w.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(b.className||"")+(b.useHTML?" highcharts-tracker":""))),w.options=b,w.attr(G),c.styledMode||w.css(q).shadow(b.shadow),w.added||w.add(m),b.textPath&&!b.useHTML&&(w.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(w)||g.graphic,b.textPath),g.dataLabelPath&&!b.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),e.alignDataLabel(g,w,b,null,u)):(g.dataLabel=
540
- g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[a]),a||delete g.dataLabel,l&&(g.connector=g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[a])))})})}z(this,"afterDrawDataLabels")}function A(a,c,d,f,e,n){var b=this.chart,g=c.align,k=c.verticalAlign,m=a.box?0:a.padding||0,h=c.x;h=void 0===h?0:h;var l=c.y;l=void 0===l?0:l;var p=(d.x||0)+m;if(0>p){"right"===g&&0<=h?(c.align="left",c.inside=
541
- !0):h-=p;var u=!0}p=(d.x||0)+f.width-m;p>b.plotWidth&&("left"===g&&0>=h?(c.align="right",c.inside=!0):h+=b.plotWidth-p,u=!0);p=d.y+m;0>p&&("bottom"===k&&0<=l?(c.verticalAlign="top",c.inside=!0):l-=p,u=!0);p=(d.y||0)+f.height-m;p>b.plotHeight&&("top"===k&&0>=l?(c.verticalAlign="bottom",c.inside=!0):l+=b.plotHeight-p,u=!0);u&&(c.x=h,c.y=l,a.placed=!n,a.align(c,void 0,e));return u}function L(a,c){var d=[],f;if(q(a)&&!q(c))d=a.map(function(a){return l(a,c)});else if(q(c)&&!q(a))d=c.map(function(c){return l(a,
542
- c)});else if(q(a)||q(c))for(f=Math.max(a.length,c.length);f--;)d[f]=l(a[f],c[f]);else d=l(a,c);return d}function y(a,c,d,f,e){var g=this.chart,b=g.inverted,k=this.xAxis,h=k.reversed,m=b?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=b?e.x:h?-m-a:k.width-m+a;c.startYPos=b?h?this.yAxis.height-m+a:-m-a:e.y;f?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);g.hasRendered&&(d&&c.attr({x:c.startXPos,y:c.startYPos}),
543
- c.placed=!0)}var C=[];e.compose=function(a){if(-1===C.indexOf(a)){var c=a.prototype;C.push(a);c.alignDataLabel=k;c.drawDataLabels=p;c.justifyDataLabel=A;c.setDataLabelStartPos=y}}})(p||(p={}));"";return p});M(h,"Series/Column/ColumnDataLabel.js",[h["Core/Series/DataLabel.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A){var D=h.series,v=A.merge,H=A.pick,I;(function(h){function q(f,d,a,e,k){var h=this.chart.inverted,l=f.series,p=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||
544
- 0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var q=f.dlBox||f.shapeArgs,z=H(f.below,f.plotY>H(this.translatedThreshold,l)),y=H(a.inside,!!this.options.stacking);q&&(e=v(q),0>e.y&&(e.height+=e.y,e.y=0),q=e.y+e.height-l,0<q&&q<e.height&&(e.height-=q),h&&(e={x:l-e.y-e.height,y:p-e.x-e.width,width:e.height,height:e.width}),y||(h?(e.x+=z?0:e.width,e.width=0):(e.y+=z?e.height:0,e.height=0)));a.align=H(a.align,!h||y?"center":z?"right":"left");a.verticalAlign=H(a.verticalAlign,h||y?"middle":z?"top":
545
- "bottom");D.prototype.alignDataLabel.call(this,f,d,a,e,k);a.inside&&f.contrastColor&&d.css({color:f.contrastColor})}var l=[];h.compose=function(f){e.compose(D);-1===l.indexOf(f)&&(l.push(f),f.prototype.alignDataLabel=q)}})(I||(I={}));return I});M(h,"Series/Bar/BarSeries.js",[h["Series/Column/ColumnSeries.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A){var D=this&&this.__extends||function(){var e=function(h,q){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
546
- function(e,f){e.__proto__=f}||function(e,f){for(var d in f)f.hasOwnProperty(d)&&(e[d]=f[d])};return e(h,q)};return function(h,q){function l(){this.constructor=h}e(h,q);h.prototype=null===q?Object.create(q):(l.prototype=q.prototype,new l)}}(),v=A.extend,H=A.merge;A=function(h){function v(){var e=null!==h&&h.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}D(v,h);v.defaultOptions=H(e.defaultOptions,{});return v}(e);v(A.prototype,{inverted:!0});h.registerSeriesType("bar",
547
- A);"";return A});M(h,"Series/Scatter/ScatterSeries.js",[h["Series/Column/ColumnSeries.js"],h["Series/Line/LineSeries.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A,E){var v=this&&this.__extends||function(){var e=function(h,f){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var f in a)a.hasOwnProperty(f)&&(d[f]=a[f])};return e(h,f)};return function(h,f){function d(){this.constructor=h}e(h,f);h.prototype=null===
548
- f?Object.create(f):(d.prototype=f.prototype,new d)}}(),D=E.addEvent,I=E.extend,z=E.merge;E=function(e){function l(){var f=null!==e&&e.apply(this,arguments)||this;f.data=void 0;f.options=void 0;f.points=void 0;return f}v(l,e);l.prototype.applyJitter=function(){var f=this,d=this.options.jitter,a=this.points.length;d&&this.points.forEach(function(e,k){["x","y"].forEach(function(h,l){var p="plot"+h.toUpperCase();if(d[h]&&!e.isNull){var q=f[h+"Axis"];var B=d[h]*q.transA;if(q&&!q.isLog){var y=Math.max(0,
549
- e[p]-B);q=Math.min(q.len,e[p]+B);l=1E4*Math.sin(k+l*a);e[p]=y+(q-y)*(l-Math.floor(l));"x"===h&&(e.clientX=e.plotX)}}})})};l.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};l.defaultOptions=z(h.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});
550
- return l}(h);I(E.prototype,{drawTracker:e.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});D(E,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",E);"";return E});M(h,"Series/CenteredUtilities.js",[h["Core/Globals.js"],h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(e,h,A){var D=e.deg2rad,v=A.isNumber,H=A.pick,I=A.relativeLength,z;(function(e){e.getCenter=function(){var e=
551
- this.options,f=this.chart,d=2*(e.slicedOffset||0),a=f.plotWidth-2*d,p=f.plotHeight-2*d,k=e.center,q=Math.min(a,p),B=e.size,v=e.innerSize||0;"string"===typeof B&&(B=parseFloat(B));"string"===typeof v&&(v=parseFloat(v));e=[H(k[0],"50%"),H(k[1],"50%"),H(B&&0>B?void 0:e.size,"100%"),H(v&&0>v?void 0:e.innerSize||0,"0%")];!f.angular||this instanceof h||(e[3]=0);for(k=0;4>k;++k)B=e[k],f=2>k||2===k&&/%$/.test(B),e[k]=I(B,[a,p,q,e[2]][k])+(f?d:0);e[3]>e[2]&&(e[3]=e[2]);return e};e.getStartAndEndRadians=function(e,
552
- f){e=v(e)?e:0;f=v(f)&&f>e&&360>f-e?f:e+360;return{start:D*(e+-90),end:D*(f+-90)}}})(z||(z={}));"";return z});M(h,"Series/Pie/PiePoint.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"]],function(e,h,A){var D=this&&this.__extends||function(){var f=function(d,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return f(d,a)};return function(d,a){function e(){this.constructor=
553
- d}f(d,a);d.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),v=e.setAnimation,H=A.addEvent,I=A.defined;e=A.extend;var z=A.isNumber,q=A.pick,l=A.relativeLength;h=function(f){function d(){var a=null!==f&&f.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}D(d,f);d.prototype.getConnectorPath=function(){var a=this.labelPosition,d=this.series.options.dataLabels,f=this.connectorShapes,e=d.connectorShape;f[e]&&(e=f[e]);return e.call(this,{x:a.final.x,
554
- y:a.final.y,alignment:a.alignment},a.connectorPosition,d)};d.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d.prototype.haloPath=function(a){var d=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d.x,d.y,d.r+a,d.r+a,{innerR:d.r-1,start:d.start,end:d.end})};d.prototype.init=function(){var a=this;f.prototype.init.apply(this,arguments);this.name=q(this.name,"Slice");var d=function(d){a.slice("select"===
555
- d.type)};H(this,"select",d);H(this,"unselect",d);return this};d.prototype.isValid=function(){return z(this.y)&&0<=this.y};d.prototype.setVisible=function(a,d){var f=this,e=this.series,h=e.chart,l=e.options.ignoreHiddenPoint;d=q(d,l);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(d){if(f[d])f[d][a?"show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,
556
- a),a||"hover"!==this.state||this.setState(""),l&&(e.isDirty=!0),d&&h.redraw())};d.prototype.slice=function(a,d,f){var e=this.series;v(f,e.chart);q(d,!0);this.sliced=this.options.sliced=I(a)?a:!this.sliced;e.options.data[e.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d}(h);e(h.prototype,{connectorShapes:{fixedOffset:function(f,d,a){var e=d.breakAt;d=d.touchingSliceAt;return[["M",f.x,
557
- f.y],a.softConnector?["C",f.x+("left"===f.alignment?-5:5),f.y,2*e.x-d.x,2*e.y-d.y,e.x,e.y]:["L",e.x,e.y],["L",d.x,d.y]]},straight:function(e,d){d=d.touchingSliceAt;return[["M",e.x,e.y],["L",d.x,d.y]]},crookedLine:function(e,d,a){d=d.touchingSliceAt;var f=this.series,h=f.center[0],q=f.chart.plotWidth,B=f.chart.plotLeft;f=e.alignment;var v=this.shapeArgs.r;a=l(a.crookDistance,1);q="left"===f?h+v+(q+B-h-v)*(1-a):B+(h-v)*a;a=["L",q,e.y];h=!0;if("left"===f?q>e.x||q<d.x:q<e.x||q>d.x)h=!1;e=[["M",e.x,e.y]];
558
- h&&e.push(a);e.push(["L",d.x,d.y]);return e}}});return h});M(h,"Series/Pie/PieSeries.js",[h["Series/CenteredUtilities.js"],h["Series/Column/ColumnSeries.js"],h["Core/Globals.js"],h["Core/Legend/LegendSymbol.js"],h["Series/Pie/PiePoint.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Renderer/SVG/Symbols.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H,I,z,q){var l=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
559
- function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function f(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),f=e.getStartAndEndRadians;A=A.noop;var d=q.clamp,a=q.extend,p=q.fireEvent,k=q.merge,F=q.pick,B=q.relativeLength;q=function(a){function e(){var d=null!==a&&a.apply(this,arguments)||this;d.center=void 0;d.data=void 0;d.maxLabelDistance=void 0;d.options=void 0;d.points=
560
- void 0;return d}l(e,a);e.prototype.animate=function(a){var d=this,e=d.points,f=d.startAngleRad;a||e.forEach(function(c){var a=c.graphic,e=c.shapeArgs;a&&e&&(a.attr({r:F(c.startR,d.center&&d.center[3]/2),start:f,end:f}),a.animate({r:e.r,start:e.start,end:e.end},d.options.animation))})};e.prototype.drawEmpty=function(){var a=this.startAngleRad,d=this.endAngleRad,e=this.options;if(0===this.total&&this.center){var f=this.center[0];var c=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,
561
- c,this.center[1]/2,0,a,d).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:z.arc(f,c,this.center[2]/2,0,{start:a,end:d,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":e.borderWidth,fill:e.fillColor||"none",stroke:e.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};e.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(d){d.graphic&&d.hasNewShapeType()&&(d.graphic=d.graphic.destroy());d.graphic||
562
- (d.graphic=a[d.shapeType](d.shapeArgs).add(d.series.group),d.delayedRendering=!0)})};e.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};e.prototype.getX=function(a,e,f){var h=this.center,c=this.radii?this.radii[f.index]||0:h[2]/2;a=Math.asin(d((a-h[1])/(c+f.labelDistance),-1,1));return h[0]+(e?-1:1)*Math.cos(a)*(c+f.labelDistance)+(0<f.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)};e.prototype.hasData=function(){return!!this.processedXData.length};
563
- e.prototype.redrawPoints=function(){var a=this,d=a.chart,e=d.renderer,f=a.options.shadow,c,h,g,l;this.drawEmpty();!f||a.shadowGroup||d.styledMode||(a.shadowGroup=e.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(n){var b={};h=n.graphic;if(!n.isNull&&h){var r=void 0;l=n.shapeArgs;c=n.getTranslate();d.styledMode||(r=n.shadowGroup,f&&!r&&(r=n.shadowGroup=e.g("shadow").add(a.shadowGroup)),r&&r.attr(c),g=a.pointAttribs(n,n.selected&&"select"));n.delayedRendering?(h.setRadialReference(a.center).attr(l).attr(c),
564
- d.styledMode||h.attr(g).attr({"stroke-linejoin":"round"}).shadow(f,r),n.delayedRendering=!1):(h.setRadialReference(a.center),d.styledMode||k(!0,b,g),k(!0,b,l,c),h.animate(b));h.attr({visibility:n.visible?"inherit":"hidden"});h.addClass(n.getClassName(),!0)}else h&&(n.graphic=h.destroy())})};e.prototype.sortByAngle=function(a,d){a.sort(function(a,e){return"undefined"!==typeof a.angle&&(e.angle-a.angle)*d})};e.prototype.translate=function(a){this.generatePoints();var d=this.options,e=d.slicedOffset,
565
- h=e+(d.borderWidth||0),c=f(d.startAngle,d.endAngle),k=this.startAngleRad=c.start;c=(this.endAngleRad=c.end)-k;var g=this.points,l=d.dataLabels.distance;d=d.ignoreHiddenPoint;var n=g.length,b,r=0;a||(this.center=a=this.getCenter());for(b=0;b<n;b++){var q=g[b];var m=k+r*c;!q.isValid()||d&&!q.visible||(r+=q.percentage/100);var w=k+r*c;var N={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*m)/1E3,end:Math.round(1E3*w)/1E3};q.shapeType="arc";q.shapeArgs=N;q.labelDistance=F(q.options.dataLabels&&
566
- q.options.dataLabels.distance,l);q.labelDistance=B(q.labelDistance,N.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,q.labelDistance);w=(w+m)/2;w>1.5*Math.PI?w-=2*Math.PI:w<-Math.PI/2&&(w+=2*Math.PI);q.slicedTranslation={translateX:Math.round(Math.cos(w)*e),translateY:Math.round(Math.sin(w)*e)};N=Math.cos(w)*a[2]/2;var v=Math.sin(w)*a[2]/2;q.tooltipPos=[a[0]+.7*N,a[1]+.7*v];q.half=w<-Math.PI/2||w>Math.PI/2?1:0;q.angle=w;m=Math.min(h,q.labelDistance/5);q.labelPosition={natural:{x:a[0]+N+
567
- Math.cos(w)*q.labelDistance,y:a[1]+v+Math.sin(w)*q.labelDistance},"final":{},alignment:0>q.labelDistance?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+N+Math.cos(w)*m,y:a[1]+v+Math.sin(w)*m},touchingSliceAt:{x:a[0]+N,y:a[1]+v}}}}p(this,"afterTranslate")};e.prototype.updateTotals=function(){var a=this.points,d=a.length,e=this.options.ignoreHiddenPoint,f,c=0;for(f=0;f<d;f++){var h=a[f];!h.isValid()||e&&!h.visible||(c+=h.y)}this.total=c;for(f=0;f<d;f++)h=a[f],h.percentage=0<c&&(h.visible||
568
- !e)?h.y/c*100:0,h.total=c};e.defaultOptions=k(H.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",
569
- borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return e}(H);a(q.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:E.drawRectangle,drawTracker:h.prototype.drawTracker,getCenter:e.getCenter,getSymbol:A,isCartesian:!1,noSharedTooltip:!0,pointAttribs:h.prototype.pointAttribs,pointClass:v,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]});I.registerSeriesType("pie",q);"";return q});M(h,"Series/Pie/PieDataLabel.js",[h["Core/Series/DataLabel.js"],
570
- h["Core/Globals.js"],h["Core/Renderer/RendererUtilities.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A,E,v){var D=h.noop,I=A.distribute,z=E.series,q=v.arrayMax,l=v.clamp,f=v.defined,d=v.merge,a=v.pick,p=v.relativeLength,k;(function(h){function k(){var e=this,h=e.data,c=e.chart,k=e.options.dataLabels||{},g=k.connectorPadding,l=c.plotWidth,n=c.plotHeight,b=c.plotLeft,r=Math.round(c.chartWidth/3),p=e.center,m=p[2]/2,w=p[1],y=[[],[]],B=[0,0,0,0],v=e.dataLabelPositioners,
571
- F,D,A,J,E,K,H,L,M,T,U,S;e.visible&&(k.enabled||e._hasPointLabels)&&(h.forEach(function(b){b.dataLabel&&b.visible&&b.dataLabel.shortened&&(b.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),b.dataLabel.shortened=!1)}),z.prototype.drawDataLabels.apply(e),h.forEach(function(b){b.dataLabel&&(b.visible?(y[b.half].push(b),b.dataLabel._pos=null,!f(k.style.width)&&!f(b.options.dataLabels&&b.options.dataLabels.style&&b.options.dataLabels.style.width)&&b.dataLabel.getBBox().width>r&&(b.dataLabel.css({width:Math.round(.7*
572
- r)+"px"}),b.dataLabel.shortened=!0)):(b.dataLabel=b.dataLabel.destroy(),b.dataLabels&&1===b.dataLabels.length&&delete b.dataLabels))}),y.forEach(function(d,h){var r=d.length,u=[],q;if(r){e.sortByAngle(d,h-.5);if(0<e.maxLabelDistance){var t=Math.max(0,w-m-e.maxLabelDistance);var G=Math.min(w+m+e.maxLabelDistance,c.plotHeight);d.forEach(function(b){0<b.labelDistance&&b.dataLabel&&(b.top=Math.max(0,w-m-b.labelDistance),b.bottom=Math.min(w+m+b.labelDistance,c.plotHeight),q=b.dataLabel.getBBox().height||
573
- 21,b.distributeBox={target:b.labelPosition.natural.y-b.top+q/2,size:q,rank:b.y},u.push(b.distributeBox))});t=G+q-t;I(u,t,t/5)}for(U=0;U<r;U++){F=d[U];K=F.labelPosition;J=F.dataLabel;T=!1===F.visible?"hidden":"inherit";M=t=K.natural.y;u&&f(F.distributeBox)&&("undefined"===typeof F.distributeBox.pos?T="hidden":(H=F.distributeBox.size,M=v.radialDistributionY(F)));delete F.positionIndex;if(k.justify)L=v.justify(F,m,p);else switch(k.alignTo){case "connectors":L=v.alignToConnectors(d,h,l,b);break;case "plotEdges":L=
574
- v.alignToPlotEdges(J,h,l,b);break;default:L=v.radialDistributionX(e,F,M,t)}J._attr={visibility:T,align:K.alignment};S=F.options.dataLabels||{};J._pos={x:L+a(S.x,k.x)+({left:g,right:-g}[K.alignment]||0),y:M+a(S.y,k.y)-10};K.final.x=L;K.final.y=M;a(k.crop,!0)&&(E=J.getBBox().width,t=null,L-E<g&&1===h?(t=Math.round(E-L+g),B[3]=Math.max(t,B[3])):L+E>l-g&&0===h&&(t=Math.round(L+E-l+g),B[1]=Math.max(t,B[1])),0>M-H/2?B[0]=Math.max(Math.round(-M+H/2),B[0]):M+H/2>n&&(B[2]=Math.max(Math.round(M+H/2-n),B[2])),
575
- J.sideOverflow=t)}}}),0===q(B)||this.verifyDataLabelOverflow(B))&&(this.placeDataLabels(),this.points.forEach(function(b){S=d(k,b.options.dataLabels);if(D=a(S.connectorWidth,1)){var f;A=b.connector;if((J=b.dataLabel)&&J._pos&&b.visible&&0<b.labelDistance){T=J._attr.visibility;if(f=!A)b.connector=A=c.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+b.colorIndex+(b.className?" "+b.className:"")).add(e.dataLabelsGroup),c.styledMode||A.attr({"stroke-width":D,stroke:S.connectorColor||
576
- b.color||"#666666"});A[f?"attr":"animate"]({d:b.getConnectorPath()});A.attr("visibility",T)}else A&&(b.connector=A.destroy())}}))}function v(){this.points.forEach(function(a){var d=a.dataLabel,c;d&&a.visible&&((c=d._pos)?(d.sideOverflow&&(d._attr.width=Math.max(d.getBBox().width-d.sideOverflow,0),d.css({width:d._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),d.shortened=!0),d.attr(d._attr),d[d.moved?"animate":"attr"](c),d.moved=!0):d&&d.attr({y:-9999}));
577
- delete a.distributeBox},this)}function F(a){var d=this.center,c=this.options,e=c.center,f=c.minSize||80,h=null!==c.size;if(!h){if(null!==e[0])var n=Math.max(d[2]-Math.max(a[1],a[3]),f);else n=Math.max(d[2]-a[1]-a[3],f),d[0]+=(a[3]-a[1])/2;null!==e[1]?n=l(n,f,d[2]-Math.max(a[0],a[2])):(n=l(n,f,d[2]-a[0]-a[2]),d[1]+=(a[0]-a[2])/2);n<d[2]?(d[2]=n,d[3]=Math.min(p(c.innerSize||0,n),n),this.translate(d),this.drawDataLabels&&this.drawDataLabels()):h=!0}return h}var A=[],y={radialDistributionY:function(a){return a.top+
578
- a.distributeBox.pos},radialDistributionX:function(a,d,c,e){return a.getX(c<d.top+2||c>d.bottom-2?e:c,d.half,d)},justify:function(a,d,c){return c[0]+(a.half?-1:1)*(d+a.labelDistance)},alignToPlotEdges:function(a,d,c,e){a=a.getBBox().width;return d?a+e:c-a-e},alignToConnectors:function(a,d,c,e){var f=0,h;a.forEach(function(a){h=a.dataLabel.getBBox().width;h>f&&(f=h)});return d?f+e:c-f-e}};h.compose=function(a){e.compose(z);-1===A.indexOf(a)&&(A.push(a),a=a.prototype,a.dataLabelPositioners=y,a.alignDataLabel=
579
- D,a.drawDataLabels=k,a.placeDataLabels=v,a.verifyDataLabelOverflow=F)}})(k||(k={}));return k});M(h,"Extensions/OverlappingDataLabels.js",[h["Core/Chart/Chart.js"],h["Core/Utilities.js"]],function(e,h){function D(e,f){var d=!1;if(e){var a=e.newOpacity;e.oldOpacity!==a&&(e.alignAttr&&e.placed?(e[a?"removeClass":"addClass"]("highcharts-data-label-hidden"),d=!0,e.alignAttr.opacity=a,e[e.isOld?"animate":"attr"](e.alignAttr,null,function(){f.styledMode||e.css({pointerEvents:a?"auto":"none"})}),v(f,"afterHideOverlappingLabel")):
580
- e.attr({opacity:a}));e.isOld=!0}return d}var E=h.addEvent,v=h.fireEvent,H=h.isArray,I=h.isNumber,z=h.objectEach,q=h.pick;E(e,"render",function(){var e=this,f=[];(this.labelCollectors||[]).forEach(function(d){f=f.concat(d())});(this.yAxis||[]).forEach(function(d){d.stacking&&d.options.stackLabels&&!d.options.stackLabels.allowOverlap&&z(d.stacking.stacks,function(a){z(a,function(a){a.label&&"hidden"!==a.label.visibility&&f.push(a.label)})})});(this.series||[]).forEach(function(d){var a=d.options.dataLabels;
581
- d.visible&&(!1!==a.enabled||d._hasPointLabels)&&(a=function(a){return a.forEach(function(a){a.visible&&(H(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(d){var h=d.options;d.labelrank=q(h.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);h.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,D(d,e)):f.push(d)})})},a(d.nodes||[]),a(d.points))});this.hideOverlappingLabels(f)});e.prototype.hideOverlappingLabels=function(e){var f=this,d=e.length,a=f.renderer,h,k,l,q=!1;
582
- var z=function(d){var e,f=d.box?0:d.padding||0,c=e=0,h;if(d&&(!d.alignAttr||d.placed)){var g=d.alignAttr||{x:d.attr("x"),y:d.attr("y")};var k=d.parentGroup;d.width||(e=d.getBBox(),d.width=e.width,d.height=e.height,e=a.fontMetrics(null,d.element).h);var n=d.width-2*f;(h={left:"0",center:"0.5",right:"1"}[d.alignValue])?c=+h*n:I(d.x)&&Math.round(d.x)!==d.translateX&&(c=d.x-d.translateX);return{x:g.x+(k.translateX||0)+f-(c||0),y:g.y+(k.translateY||0)+f-e,width:d.width-2*f,height:d.height-2*f}}};for(k=
583
- 0;k<d;k++)if(h=e[k])h.oldOpacity=h.opacity,h.newOpacity=1,h.absoluteBox=z(h);e.sort(function(a,d){return(d.labelrank||0)-(a.labelrank||0)});for(k=0;k<d;k++){var A=(z=e[k])&&z.absoluteBox;for(h=k+1;h<d;++h){var E=(l=e[h])&&l.absoluteBox;!A||!E||z===l||0===z.newOpacity||0===l.newOpacity||E.x>=A.x+A.width||E.x+E.width<=A.x||E.y>=A.y+A.height||E.y+E.height<=A.y||((z.labelrank<l.labelrank?z:l).newOpacity=0)}}e.forEach(function(a){D(a,f)&&(q=!0)});q&&v(f,"afterHideAllOverlappingLabels")}});M(h,"Core/Responsive.js",
584
- [h["Core/Utilities.js"]],function(e){var h=e.extend,A=e.find,E=e.isArray,v=e.isObject,H=e.merge,I=e.objectEach,z=e.pick,q=e.splat,l=e.uniqueKey,f;(function(d){var a=[];d.compose=function(d){-1===a.indexOf(d)&&(a.push(d),h(d.prototype,e.prototype));return d};var e=function(){function a(){}a.prototype.currentOptions=function(a){function d(a,f,h,k){var c;I(a,function(a,g){if(!k&&-1<e.collectionsWithUpdate.indexOf(g)&&f[g])for(a=q(a),h[g]=[],c=0;c<Math.max(a.length,f[g].length);c++)f[g][c]&&(void 0===
585
- a[c]?h[g][c]=f[g][c]:(h[g][c]={},d(a[c],f[g][c],h[g][c],k+1)));else v(a)?(h[g]=E(a)?[]:{},d(a,f[g]||{},h[g],k+1)):h[g]="undefined"===typeof f[g]?null:f[g]})}var e=this,f={};d(a,this.options,f,0);return f};a.prototype.matchResponsiveRule=function(a,d){var e=a.condition;(e.callback||function(){return this.chartWidth<=z(e.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=z(e.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=z(e.minWidth,0)&&this.chartHeight>=z(e.minHeight,0)}).call(this)&&d.push(a._id)};a.prototype.setResponsive=
586
- function(a,d){var e=this,f=this.options.responsive,h=this.currentResponsive,k=[];!d&&f&&f.rules&&f.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=l());e.matchResponsiveRule(a,k)},this);d=H.apply(void 0,k.map(function(a){return A((f||{}).rules||[],function(d){return d._id===a})}).map(function(a){return a&&a.chartOptions}));d.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,a,!0),k?(h=this.currentOptions(d),h.isResponsiveOptions=!0,this.currentResponsive=
587
- {ruleIds:k,mergedOptions:d,undoOptions:h},this.update(d,a,!0)):this.currentResponsive=void 0)};return a}()})(f||(f={}));"";"";return f});M(h,"masters/highcharts.src.js",[h["Core/Globals.js"],h["Core/Utilities.js"],h["Core/DefaultOptions.js"],h["Core/Animation/Fx.js"],h["Core/Animation/AnimationUtilities.js"],h["Core/Renderer/HTML/AST.js"],h["Core/FormatUtilities.js"],h["Core/Renderer/RendererUtilities.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Renderer/HTML/HTMLElement.js"],
47
+ style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};y.chart.styledMode=!1;"";var q=new t(E(y.global,y.time));d={defaultOptions:y,defaultTime:q,getOptions:function(){return y},setOptions:function(p){E(!0,y,p);if(p.time||p.global)A.time?A.time.update(E(y.global,y.time,
48
+ p.global,p.time)):A.time=q;return y}};"";return d});N(h,"Core/Animation/Fx.js",[h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h,A){var E=d.parse,t=h.win,G=A.isNumber,H=A.objectEach;return function(){function d(q,p,f){this.pos=NaN;this.options=p;this.elem=q;this.prop=f}d.prototype.dSetter=function(){var q=this.paths,p=q&&q[0];q=q&&q[1];var f=this.now||0,c=[];if(1!==f&&p&&q)if(p.length===q.length&&1>f)for(var a=0;a<q.length;a++){for(var n=p[a],m=q[a],D=[],C=0;C<m.length;C++){var I=
49
+ n[C],L=m[C];G(I)&&G(L)&&("A"!==m[0]||4!==C&&5!==C)?D[C]=I+f*(L-I):D[C]=L}c.push(D)}else c=q;else c=this.toD||[];this.elem.attr("d",c,void 0,!0)};d.prototype.update=function(){var q=this.elem,p=this.prop,f=this.now,c=this.options.step;if(this[p+"Setter"])this[p+"Setter"]();else q.attr?q.element&&q.attr(p,f,null,!0):q.style[p]=f+this.unit;c&&c.call(q,f,this)};d.prototype.run=function(q,p,f){var c=this,a=c.options,n=function(a){return n.stopped?!1:c.step(a)},m=t.requestAnimationFrame||function(a){setTimeout(a,
50
+ 13)},D=function(){for(var a=0;a<d.timers.length;a++)d.timers[a]()||d.timers.splice(a--,1);d.timers.length&&m(D)};q!==p||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=q,this.end=p,this.unit=f,this.now=this.start,this.pos=0,n.elem=this.elem,n.prop=this.prop,n()&&1===d.timers.push(n)&&m(D)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))};d.prototype.step=function(q){var p=+new Date,f=this.options,c=this.elem,a=f.complete,
51
+ n=f.duration,m=f.curAnim;if(c.attr&&!c.element)q=!1;else if(q||p>=n+this.startTime){this.now=this.end;this.pos=1;this.update();var D=m[this.prop]=!0;H(m,function(a){!0!==a&&(D=!1)});D&&a&&a.call(c);q=!1}else this.pos=f.easing((p-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0;return q};d.prototype.initPath=function(q,p,f){function c(a,c){for(;a.length<K;){var u=a[0],k=c[K-a.length];k&&"M"===u[0]&&(a[0]="C"===k[0]?["C",u[1],u[2],u[1],u[2],u[1],u[2]]:["L",u[1],
52
+ u[2]]);a.unshift(u);D&&(u=a.pop(),a.push(a[a.length-1],u))}}function a(a,c){for(;a.length<K;)if(c=a[Math.floor(a.length/C)-1].slice(),"C"===c[0]&&(c[1]=c[5],c[2]=c[6]),D){var u=a[Math.floor(a.length/C)].slice();a.splice(a.length/2,0,c,u)}else a.push(c)}var n=q.startX,m=q.endX;f=f.slice();var D=q.isArea,C=D?2:1;p=p&&p.slice();if(!p)return[f,f];if(n&&m&&m.length){for(q=0;q<n.length;q++)if(n[q]===m[0]){var I=q;break}else if(n[0]===m[m.length-n.length+q]){I=q;var L=!0;break}else if(n[n.length-1]===m[m.length-
53
+ n.length+q]){I=n.length-q;break}"undefined"===typeof I&&(p=[])}if(p.length&&G(I)){var K=f.length+I*C;L?(c(p,f),a(f,p)):(c(f,p),a(p,f))}return[p,f]};d.prototype.fillSetter=function(){d.prototype.strokeSetter.apply(this,arguments)};d.prototype.strokeSetter=function(){this.elem.attr(this.prop,E(this.start).tweenTo(E(this.end),this.pos),void 0,!0)};d.timers=[];return d}()});N(h,"Core/Animation/AnimationUtilities.js",[h["Core/Animation/Fx.js"],h["Core/Utilities.js"]],function(d,h){function E(a){return q(a)?
54
+ p({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function F(a,c){for(var n=d.timers.length;n--;)d.timers[n].elem!==a||c&&c!==d.timers[n].prop||(d.timers[n].stopped=!0)}var t=h.defined,G=h.getStyle,H=h.isArray,y=h.isNumber,q=h.isObject,p=h.merge,f=h.objectEach,c=h.pick;return{animate:function(a,c,m){var n,C="",I,L;if(!q(m)){var K=arguments;m={duration:K[2],easing:K[3],complete:K[4]}}y(m.duration)||(m.duration=400);m.easing="function"===typeof m.easing?m.easing:Math[m.easing]||Math.easeInOutSine;
55
+ m.curAnim=p(c);f(c,function(f,z){F(a,z);L=new d(a,m,z);I=void 0;"d"===z&&H(c.d)?(L.paths=L.initPath(a,a.pathArray,c.d),L.toD=c.d,n=0,I=1):a.attr?n=a.attr(z):(n=parseFloat(G(a,z))||0,"opacity"!==z&&(C="px"));I||(I=f);"string"===typeof I&&I.match("px")&&(I=I.replace(/px/g,""));L.run(n,I,C)})},animObject:E,getDeferredAnimation:function(a,c,f){var n=E(c),m=0,p=0;(f?[f]:a.series).forEach(function(a){a=E(a.options.animation);m=c&&t(c.defer)?n.defer:Math.max(m,a.duration+a.defer);p=Math.min(n.duration,a.duration)});
56
+ a.renderer.forExport&&(m=0);return{defer:Math.max(0,m-p),duration:Math.min(m,p)}},setAnimation:function(a,n){n.renderer.globalAnimation=c(a,n.options.chart.animation,!0)},stop:F}});N(h,"Core/Renderer/HTML/AST.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var E=d.SVG_NS,F=h.attr,t=h.createElement,G=h.error,H=h.isFunction,y=h.isString,q=h.objectEach,p=h.splat,f=(h=d.win.trustedTypes)&&H(h.createPolicy)&&h.createPolicy("highcharts",{createHTML:function(a){return a}}),c=f?f.createHTML(""):
57
+ "";try{var a=!!(new DOMParser).parseFromString(c,"text/html")}catch(n){a=!1}H=function(){function n(a){this.nodes="string"===typeof a?this.parseMarkup(a):a}n.filterUserAttributes=function(a){q(a,function(c,f){var m=!0;-1===n.allowedAttributes.indexOf(f)&&(m=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(f)&&(m=y(c)&&n.allowedReferences.some(function(a){return 0===c.indexOf(a)}));m||(G("Highcharts warning: Invalid attribute '"+f+"' in config"),delete a[f])});return a};n.setElementHTML=
58
+ function(a,c){a.innerHTML=n.emptyHTML;c&&(new n(c)).addToDOM(a)};n.prototype.addToDOM=function(a){function c(a,f){var m;p(a).forEach(function(a){var v=a.tagName,z=a.textContent?d.doc.createTextNode(a.textContent):void 0;if(v)if("#text"===v)var u=z;else if(-1!==n.allowedTags.indexOf(v)){v=d.doc.createElementNS("svg"===v?E:f.namespaceURI||E,v);var k=a.attributes||{};q(a,function(a,l){"tagName"!==l&&"attributes"!==l&&"children"!==l&&"textContent"!==l&&(k[l]=a)});F(v,n.filterUserAttributes(k));z&&v.appendChild(z);
59
+ c(a.children||[],v);u=v}else G("Highcharts warning: Invalid tagName "+v+" in config");u&&f.appendChild(u);m=u});return m}return c(this.nodes,a)};n.prototype.parseMarkup=function(c){var n=[];c=c.trim();if(a)c=(new DOMParser).parseFromString(f?f.createHTML(c):c,"text/html");else{var m=t("div");m.innerHTML=c;c={body:m}}var p=function(a,c){var f=a.nodeName.toLowerCase(),z={tagName:f};"#text"===f&&(z.textContent=a.textContent||"");if(f=a.attributes){var u={};[].forEach.call(f,function(k){u[k.name]=k.value});
60
+ z.attributes=u}if(a.childNodes.length){var k=[];[].forEach.call(a.childNodes,function(a){p(a,k)});k.length&&(z.children=k)}c.push(z)};[].forEach.call(c.body.childNodes,function(a){return p(a,n)});return n};n.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
61
+ n.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");n.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");n.emptyHTML=c;return n}();"";return H});N(h,"Core/FormatUtilities.js",
62
+ [h["Core/DefaultOptions.js"],h["Core/Utilities.js"]],function(d,h){function E(p,f,c,a){p=+p||0;f=+f;var n=F.lang,m=(p.toString().split(".")[1]||"").split("e")[0].length,D=p.toString().split("e"),C=f;if(-1===f)f=Math.min(m,20);else if(!H(f))f=2;else if(f&&D[1]&&0>D[1]){var I=f+ +D[1];0<=I?(D[0]=(+D[0]).toExponential(I).split("e")[0],f=I):(D[0]=D[0].split(".")[0]||0,p=20>f?(D[0]*Math.pow(10,D[1])).toFixed(f):0,D[1]=0)}I=(Math.abs(D[1]?D[0]:p)+Math.pow(10,-Math.max(f,m)-1)).toFixed(f);m=String(q(I));
63
+ var L=3<m.length?m.length%3:0;c=y(c,n.decimalPoint);a=y(a,n.thousandsSep);p=(0>p?"-":"")+(L?m.substr(0,L)+a:"");p=0>+D[1]&&!C?"0":p+m.substr(L).replace(/(\d{3})(?=\d)/g,"$1"+a);f&&(p+=c+I.slice(-f));D[1]&&0!==+p&&(p+="e"+D[1]);return p}var F=d.defaultOptions,t=d.defaultTime,G=h.getNestedProperty,H=h.isNumber,y=h.pick,q=h.pInt;return{dateFormat:function(p,f,c){return t.dateFormat(p,f,c)},format:function(p,f,c){var a="{",n=!1,m=/f$/,D=/\.([0-9])/,C=F.lang,I=c&&c.time||t;c=c&&c.numberFormatter||E;for(var L=
64
+ [];p;){var q=p.indexOf(a);if(-1===q)break;var v=p.slice(0,q);if(n){v=v.split(":");a=G(v.shift()||"",f);if(v.length&&"number"===typeof a)if(v=v.join(":"),m.test(v)){var z=parseInt((v.match(D)||["","-1"])[1],10);null!==a&&(a=c(a,z,C.decimalPoint,-1<v.indexOf(",")?C.thousandsSep:""))}else a=I.dateFormat(v,a);L.push(a)}else L.push(v);p=p.slice(q+1);a=(n=!n)?"}":"{"}L.push(p);return L.join("")},numberFormat:E}});N(h,"Core/Renderer/RendererUtilities.js",[h["Core/Utilities.js"]],function(d){var h=d.clamp,
65
+ A=d.pick,F=d.stableSort,t;(function(d){function t(d,q,p){var f=d,c=f.reducedLen||q,a=function(a,c){return(c.rank||0)-(a.rank||0)},n=function(a,c){return a.target-c.target},m,D=!0,C=[],I=0;for(m=d.length;m--;)I+=d[m].size;if(I>c){F(d,a);for(I=m=0;I<=c;)I+=d[m].size,m++;C=d.splice(m-1,d.length)}F(d,n);for(d=d.map(function(a){return{size:a.size,targets:[a.target],align:A(a.align,.5)}});D;){for(m=d.length;m--;)c=d[m],a=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=h(a-c.size*c.align,
66
+ 0,q-c.size);m=d.length;for(D=!1;m--;)0<m&&d[m-1].pos+d[m-1].size>d[m].pos&&(d[m-1].size+=d[m].size,d[m-1].targets=d[m-1].targets.concat(d[m].targets),d[m-1].align=.5,d[m-1].pos+d[m-1].size>q&&(d[m-1].pos=q-d[m-1].size),d.splice(m,1),D=!0)}f.push.apply(f,C);m=0;d.some(function(a){var c=0;return(a.targets||[]).some(function(){f[m].pos=a.pos+c;if("undefined"!==typeof p&&Math.abs(f[m].pos-f[m].target)>p)return f.slice(0,m+1).forEach(function(a){return delete a.pos}),f.reducedLen=(f.reducedLen||q)-.1*
67
+ q,f.reducedLen>.1*q&&t(f,q,p),!0;c+=f[m].size;m++;return!1})});F(f,n);return f}d.distribute=t})(t||(t={}));return t});N(h,"Core/Renderer/SVG/SVGElement.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Renderer/HTML/AST.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h,A,F,t){var E=d.animate,H=d.animObject,y=d.stop,q=F.deg2rad,p=F.doc,f=F.noop,c=F.svg,a=F.SVG_NS,n=F.win,m=t.addEvent,D=t.attr,C=t.createElement,I=t.css,L=t.defined,K=t.erase,v=t.extend,z=t.fireEvent,
68
+ u=t.isArray,k=t.isFunction,w=t.isNumber,l=t.isString,e=t.merge,g=t.objectEach,b=t.pick,B=t.pInt,J=t.syncTimeout,r=t.uniqueKey;d=function(){function x(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}x.prototype._defaultGetter=function(e){e=b(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);/^[\-0-9\.]+$/.test(e)&&(e=parseFloat(e));return e};
69
+ x.prototype._defaultSetter=function(b,e,g){g.setAttribute(e,b)};x.prototype.add=function(b){var e=this.renderer,g=this.element;b&&(this.parentGroup=b);this.parentInverted=b&&b.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&e.buildText(this);this.added=!0;if(!b||b.handleZ||this.zIndex)var l=this.zIndexSetter();l||(b?b.element:e.box).appendChild(g);if(this.onAdd)this.onAdd();return this};x.prototype.addClass=function(b,e){var g=e?"":this.attr("class")||"";b=(b||"").split(/ /g).reduce(function(b,
70
+ e){-1===g.indexOf(e)&&b.push(e);return b},g?[g]:[]).join(" ");b!==g&&this.attr("class",b);return this};x.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};x.prototype.align=function(e,g,k){var r={},P=this.renderer,a=P.alignedObjects,M,c,B;if(e){if(this.alignOptions=e,this.alignByTranslate=g,!k||l(k))this.alignTo=M=k||"renderer",K(a,this),a.push(this),k=void 0}else e=this.alignOptions,g=this.alignByTranslate,M=this.alignTo;k=b(k,P[M],"scrollablePlotBox"===
71
+ M?P.plotBox:void 0,P);M=e.align;var x=e.verticalAlign;P=(k.x||0)+(e.x||0);a=(k.y||0)+(e.y||0);"right"===M?c=1:"center"===M&&(c=2);c&&(P+=(k.width-(e.width||0))/c);r[g?"translateX":"x"]=Math.round(P);"bottom"===x?B=1:"middle"===x&&(B=2);B&&(a+=(k.height-(e.height||0))/B);r[g?"translateY":"y"]=Math.round(a);this[this.placed?"animate":"attr"](r);this.placed=!0;this.alignAttr=r;return this};x.prototype.alignSetter=function(b){var e={left:"start",center:"middle",right:"end"};e[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor",
72
+ e[b]))};x.prototype.animate=function(e,k,l){var r=this,a=H(b(k,this.renderer.globalAnimation,!0));k=a.defer;b(p.hidden,p.msHidden,p.webkitHidden,!1)&&(a.duration=0);0!==a.duration?(l&&(a.complete=l),J(function(){r.element&&E(r,e,a)},k)):(this.attr(e,void 0,l),g(e,function(b,e){a.step&&a.step.call(this,b,{prop:e,pos:1,elem:this})},this));return this};x.prototype.applyTextOutline=function(b){var e=this.element;-1!==b.indexOf("contrast")&&(b=b.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));
73
+ var g=b.split(" ");b=g[g.length-1];if((g=g[0])&&"none"!==g&&F.svg){this.fakeTS=!0;this.ySetter=this.xSetter;g=g.replace(/(^[\d\.]+)(.*?)$/g,function(b,e,g){return 2*Number(e)+g});this.removeTextOutline();var k=p.createElementNS(a,"tspan");D(k,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":g,"stroke-linejoin":"round"});[].forEach.call(e.childNodes,function(b){var e=b.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(b){return e.removeAttribute(b)});
74
+ k.appendChild(e)});var l=p.createElementNS(a,"tspan");l.textContent="\u200b";["x","y"].forEach(function(b){var g=e.getAttribute(b);g&&l.setAttribute(b,g)});k.appendChild(l);e.insertBefore(k,e.firstChild)}};x.prototype.attr=function(b,e,k,l){var a=this.element,r=this.symbolCustomAttribs,P,O=this,M,c;if("string"===typeof b&&"undefined"!==typeof e){var B=b;b={};b[B]=e}"string"===typeof b?O=(this[b+"Getter"]||this._defaultGetter).call(this,b,a):(g(b,function(e,g){M=!1;l||y(this,g);this.symbolName&&-1!==
75
+ r.indexOf(g)&&(P||(this.symbolAttr(b),P=!0),M=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);M||(c=this[g+"Setter"]||this._defaultSetter,c.call(this,e,g,a),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,e,c))},this),this.afterSetters());k&&k.call(this);return O};x.prototype.clip=function(b){return this.attr("clip-path",b?"url("+this.renderer.url+"#"+b.id+")":"none")};x.prototype.crisp=function(b,e){e=e||b.strokeWidth||
76
+ 0;var g=Math.round(e)%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);L(b.strokeWidth)&&(b.strokeWidth=e);return b};x.prototype.complexColor=function(b,k,l){var a=this.renderer,P,c,B,x,w,M,J,f,n,m,v=[],C;z(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?c="radialGradient":b.linearGradient&&(c="linearGradient");if(c){B=b[c];w=a.gradients;M=b.stops;n=l.radialReference;
77
+ u(B)&&(b[c]=B={x1:B[0],y1:B[1],x2:B[2],y2:B[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===c&&n&&!L(B.gradientUnits)&&(x=B,B=e(B,a.getRadialAttr(n,x),{gradientUnits:"userSpaceOnUse"}));g(B,function(b,e){"id"!==e&&v.push(e,b)});g(M,function(b){v.push(b)});v=v.join(",");if(w[v])m=w[v].attr("id");else{B.id=m=r();var O=w[v]=a.createElement(c).attr(B).add(a.defs);O.radAttr=x;O.stops=[];M.forEach(function(b){0===b[1].indexOf("rgba")?(P=A.parse(b[1]),J=P.get("rgb"),f=P.get("a")):(J=b[1],f=1);b=a.createElement("stop").attr({offset:b[0],
78
+ "stop-color":J,"stop-opacity":f}).add(O);O.stops.push(b)})}C="url("+a.url+"#"+m+")";l.setAttribute(k,C);l.gradient=v;b.toString=function(){return C}}})};x.prototype.css=function(b){var e=this.styles,k={},l=this.element,a=["textOutline","textOverflow","width"],r="",x=!e;b&&b.color&&(b.fill=b.color);e&&g(b,function(b,g){e&&e[g]!==b&&(k[g]=b,x=!0)});if(x){e&&(b=v(e,k));if(b)if(null===b.width||"auto"===b.width)delete this.textWidth;else if("text"===l.nodeName.toLowerCase()&&b.width)var w=this.textWidth=
79
+ B(b.width);this.styles=b;w&&!c&&this.renderer.forExport&&delete b.width;if(l.namespaceURI===this.SVG_NS){var u=function(b,e){return"-"+e.toLowerCase()};g(b,function(b,e){-1===a.indexOf(e)&&(r+=e.replace(/([A-Z])/g,u)+":"+b+";")});r&&D(l,"style",r)}else I(l,b);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b&&b.textOutline&&this.applyTextOutline(b.textOutline))}return this};x.prototype.dashstyleSetter=function(e){var g=this["stroke-width"];"inherit"===g&&(g=1);if(e=e&&e.toLowerCase()){var k=
80
+ e.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(e=k.length;e--;)k[e]=""+B(k[e])*b(g,NaN);e=k.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",e)}};x.prototype.destroy=function(){var b=this,e=b.element||{},k=b.renderer,l=e.ownerSVGElement,a=k.isSVG&&"SPAN"===e.nodeName&&b.parentGroup||
81
+ void 0;e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null;y(b);if(b.clipPath&&l){var r=b.clipPath;[].forEach.call(l.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1<b.getAttribute("clip-path").indexOf(r.element.id)&&b.removeAttribute("clip-path")});b.clipPath=r.destroy()}if(b.stops){for(l=0;l<b.stops.length;l++)b.stops[l].destroy();b.stops.length=0;b.stops=void 0}b.safeRemoveChild(e);for(k.styledMode||b.destroyShadows();a&&a.div&&0===a.div.childNodes.length;)e=a.parentGroup,
82
+ b.safeRemoveChild(a.div),delete a.div,a=e;b.alignTo&&K(k.alignedObjects,b);g(b,function(e,g){b[g]&&b[g].parentGroup===b&&b[g].destroy&&b[g].destroy();delete b[g]})};x.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(b){this.safeRemoveChild(b)},this);this.shadows=void 0};x.prototype.destroyTextPath=function(b,e){var g=b.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&g.getElementsByTagName("textPath").length){for(b=
83
+ 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())};x.prototype.dSetter=function(b,e,g){u(b)&&("string"===typeof b[0]&&(b=this.renderer.pathToSegments(b)),this.pathArray=b,b=b.reduce(function(b,e,g){return e&&e.join?(g?b+" ":"")+e.join(" "):(e||"").toString()},""));
84
+ /(NaN| {2}|^$)/.test(b)&&(b="M 0 0");this[e]!==b&&(g.setAttribute(e,b),this[e]=b)};x.prototype.fadeOut=function(e){var g=this;g.animate({opacity:0},{duration:b(e,150),complete:function(){g.attr({y:-9999}).hide()}})};x.prototype.fillSetter=function(b,e,g){"string"===typeof b?g.setAttribute(e,b):b&&this.complexColor(b,e,g)};x.prototype.getBBox=function(e,g){var l=this.renderer,a=this.element,r=this.styles,B=this.textStr,c=l.cache,w=l.cacheKeys,u=a.namespaceURI===this.SVG_NS;g=b(g,this.rotation,0);var J=
85
+ l.styledMode?a&&x.prototype.getStyle.call(a,"font-size"):r&&r.fontSize,z;if(L(B)){var M=B.toString();-1===M.indexOf("<")&&(M=M.replace(/[0-9]/g,"0"));M+=["",g,J,this.textWidth,r&&r.textOverflow,r&&r.fontWeight].join()}M&&!e&&(z=c[M]);if(!z){if(u||l.forExport){try{var f=this.fakeTS&&function(b){var e=a.querySelector(".highcharts-text-outline");e&&I(e,{display:b})};k(f)&&f("none");z=a.getBBox?v({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight};k(f)&&f("")}catch(U){""}if(!z||0>z.width)z={width:0,
86
+ height:0}}else z=this.htmlGetBBox();l.isSVG&&(e=z.width,l=z.height,u&&(z.height=l={"11px,17":14,"13px,20":16}[(J||"")+","+Math.round(l)]||l),g&&(u=g*q,z.width=Math.abs(l*Math.sin(u))+Math.abs(e*Math.cos(u)),z.height=Math.abs(l*Math.cos(u))+Math.abs(e*Math.sin(u))));if(M&&(""===B||0<z.height)){for(;250<w.length;)delete c[w.shift()];c[M]||w.push(M);c[M]=z}}return z};x.prototype.getStyle=function(b){return n.getComputedStyle(this.element||this,"").getPropertyValue(b)};x.prototype.hasClass=function(b){return-1!==
87
+ (""+this.attr("class")).split(" ").indexOf(b)};x.prototype.hide=function(b){b?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};x.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};x.prototype.init=function(b,e){this.element="span"===e?C(e):p.createElementNS(this.SVG_NS,e);this.renderer=b;z(this,"afterInit")};x.prototype.invert=function(b){this.inverted=b;this.updateTransform();return this};x.prototype.on=function(b,e){var g=this.onEvents;if(g[b])g[b]();g[b]=m(this.element,
88
+ b,e);return this};x.prototype.opacitySetter=function(b,e,g){this.opacity=b=Number(Number(b).toFixed(3));g.setAttribute(e,b)};x.prototype.removeClass=function(b){return this.attr("class",(""+this.attr("class")).replace(l(b)?new RegExp("(^| )"+b+"( |$)"):b," ").replace(/ +/g," ").trim())};x.prototype.removeTextOutline=function(){var b=this.element.querySelector("tspan.highcharts-text-outline");b&&this.safeRemoveChild(b)};x.prototype.safeRemoveChild=function(b){var e=b.parentNode;e&&e.removeChild(b)};
89
+ x.prototype.setRadialReference=function(b){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b;e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(b,e.radAttr));return this};x.prototype.setTextPath=function(b,l){var k=this.element,a=this.text?this.text.element:k,B={textAnchor:"text-anchor"},c=!1,x=this.textPathWrapper,u=!x;l=e(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},l);var Q=h.filterUserAttributes(l.attributes);
90
+ if(b&&l&&l.enabled){x&&null===x.element.parentNode?(u=!0,x=x.destroy()):x&&this.removeTextOutline.call(x.parentGroup);this.options&&this.options.padding&&(Q.dx=-this.options.padding);x||(this.textPathWrapper=x=this.renderer.createElement("textPath"),c=!0);var J=x.element;(l=b.element.getAttribute("id"))||b.element.setAttribute("id",l=r());if(u)for(a.setAttribute("y",0),w(Q.dx)&&a.setAttribute("x",-Q.dx),b=[].slice.call(a.childNodes),u=0;u<b.length;u++){var z=b[u];z.nodeType!==n.Node.TEXT_NODE&&"tspan"!==
91
+ z.nodeName||J.appendChild(z)}c&&x&&x.add({element:a});J.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+l);L(Q.dy)&&(J.parentNode.setAttribute("dy",Q.dy),delete Q.dy);L(Q.dx)&&(J.parentNode.setAttribute("dx",Q.dx),delete Q.dx);g(Q,function(b,e){J.setAttribute(B[e]||e,b)});k.removeAttribute("transform");this.removeTextOutline.call(x);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=f}else x&&(delete this.updateTransform,
92
+ delete this.applyTextOutline,this.destroyTextPath(k,b),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};x.prototype.shadow=function(b,e,l){var k=[],a=this.element,r=this.oldShadowOptions,P={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},B=!1,c;!0===b?c=P:"object"===typeof b&&(c=v(P,b));c&&(c&&r&&g(c,function(b,e){b!==r[e]&&(B=!0)}),B&&this.destroyShadows(),this.oldShadowOptions=
93
+ c);if(!c)this.destroyShadows();else if(!this.shadows){var x=c.opacity/c.width;var w=this.parentInverted?"translate("+c.offsetY+", "+c.offsetX+")":"translate("+c.offsetX+", "+c.offsetY+")";for(P=1;P<=c.width;P++){var u=a.cloneNode(!1);var J=2*c.width+1-2*P;D(u,{stroke:b.color||"#000000","stroke-opacity":x*P,"stroke-width":J,transform:w,fill:"none"});u.setAttribute("class",(u.getAttribute("class")||"")+" highcharts-shadow");l&&(D(u,"height",Math.max(D(u,"height")-J,0)),u.cutHeight=J);e?e.element.appendChild(u):
94
+ a.parentNode&&a.parentNode.insertBefore(u,a);k.push(u)}this.shadows=k}return this};x.prototype.show=function(b){return this.attr({visibility:b?"inherit":"visible"})};x.prototype.strokeSetter=function(b,e,g){this[e]=b;this.stroke&&this["stroke-width"]?(x.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===b&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&
95
+ (g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};x.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var b=this.getStyle("stroke-width"),e=0;if(b.indexOf("px")===b.length-2)e=B(b);else if(""!==b){var g=p.createElementNS(a,"rect");D(g,{width:b,"stroke-width":0});this.element.parentNode.appendChild(g);e=g.getBBox().width;g.parentNode.removeChild(g)}return e};x.prototype.symbolAttr=function(e){var g=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(l){g[l]=
96
+ b(e[l],g[l])});g.attr({d:g.renderer.symbols[g.symbolName](g.x,g.y,g.width,g.height,g)})};x.prototype.textSetter=function(b){b!==this.textStr&&(delete this.textPxLength,this.textStr=b,this.added&&this.renderer.buildText(this))};x.prototype.titleSetter=function(e){var g=this.element,l=g.getElementsByTagName("title")[0]||p.createElementNS(this.SVG_NS,"title");g.insertBefore?g.insertBefore(l,g.firstChild):g.appendChild(l);l.textContent=String(b(e,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,
97
+ ">")};x.prototype.toFront=function(){var b=this.element;b.parentNode.appendChild(b);return this};x.prototype.translate=function(b,e){return this.attr({translateX:b,translateY:e})};x.prototype.updateShadows=function(b,e,g){var l=this.shadows;if(l)for(var k=l.length;k--;)g.call(l[k],"height"===b?Math.max(e-(l[k].cutHeight||0),0):"d"===b?this.d:e,b,l[k])};x.prototype.updateTransform=function(){var e=this.scaleX,g=this.scaleY,l=this.inverted,k=this.rotation,a=this.matrix,r=this.element,c=this.translateX||
98
+ 0,B=this.translateY||0;l&&(c+=this.width,B+=this.height);c=["translate("+c+","+B+")"];L(a)&&c.push("matrix("+a.join(",")+")");l?c.push("rotate(90) scale(-1,1)"):k&&c.push("rotate("+k+" "+b(this.rotationOriginX,r.getAttribute("x"),0)+" "+b(this.rotationOriginY,r.getAttribute("y")||0)+")");(L(e)||L(g))&&c.push("scale("+b(e,1)+" "+b(g,1)+")");c.length&&r.setAttribute("transform",c.join(" "))};x.prototype.visibilitySetter=function(b,e,g){"inherit"===b?g.removeAttribute(e):this[e]!==b&&g.setAttribute(e,
99
+ b);this[e]=b};x.prototype.xGetter=function(b){"circle"===this.element.nodeName&&("x"===b?b="cx":"y"===b&&(b="cy"));return this._defaultGetter(b)};x.prototype.zIndexSetter=function(b,e){var g=this.renderer,l=this.parentGroup,k=(l||g).element||g.box,a=this.element;g=k===g.box;var r=!1;var c=this.added;var x;L(b)?(a.setAttribute("data-z-index",b),b=+b,this[e]===b&&(c=!1)):L(this[e])&&a.removeAttribute("data-z-index");this[e]=b;if(c){(b=this.zIndex)&&l&&(l.handleZ=!0);e=k.childNodes;for(x=e.length-1;0<=
100
+ x&&!r;x--){l=e[x];c=l.getAttribute("data-z-index");var u=!L(c);if(l!==a)if(0>b&&u&&!g&&!x)k.insertBefore(a,e[x]),r=!0;else if(B(c)<=b||u&&(!L(b)||0<=b))k.insertBefore(a,e[x+1]||null),r=!0}r||(k.insertBefore(a,e[g?3:0]||null),r=!0)}return r};return x}();d.prototype["stroke-widthSetter"]=d.prototype.strokeSetter;d.prototype.yGetter=d.prototype.xGetter;d.prototype.matrixSetter=d.prototype.rotationOriginXSetter=d.prototype.rotationOriginYSetter=d.prototype.rotationSetter=d.prototype.scaleXSetter=d.prototype.scaleYSetter=
101
+ d.prototype.translateXSetter=d.prototype.translateYSetter=d.prototype.verticalAlignSetter=function(b,e){this[e]=b;this.doTransform=!0};"";return d});N(h,"Core/Renderer/RendererRegistry.js",[h["Core/Globals.js"]],function(d){var h;(function(h){h.rendererTypes={};var E;h.getRendererType=function(d){void 0===d&&(d=E);return h.rendererTypes[d]||h.rendererTypes[E]};h.registerRendererType=function(t,A,H){h.rendererTypes[t]=A;if(!E||H)E=t,d.Renderer=A}})(h||(h={}));return h});N(h,"Core/Renderer/SVG/SVGLabel.js",
102
+ [h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(d,h){var E=this&&this.__extends||function(){var p=function(f,c){p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f])};return p(f,c)};return function(f,c){function a(){this.constructor=f}p(f,c);f.prototype=null===c?Object.create(c):(a.prototype=c.prototype,new a)}}(),F=h.defined,t=h.extend,G=h.isNumber,H=h.merge,y=h.pick,q=h.removeEvent;
103
+ return function(p){function f(c,a,n,m,D,C,I,L,d,v){var z=p.call(this)||this;z.paddingLeftSetter=z.paddingSetter;z.paddingRightSetter=z.paddingSetter;z.init(c,"g");z.textStr=a;z.x=n;z.y=m;z.anchorX=C;z.anchorY=I;z.baseline=d;z.className=v;z.addClass("button"===v?"highcharts-no-tooltip":"highcharts-label");v&&z.addClass("highcharts-"+v);z.text=c.text(void 0,0,0,L).attr({zIndex:1});var u;"string"===typeof D&&((u=/^url\((.*?)\)$/.test(D))||z.renderer.symbols[D])&&(z.symbolKey=D);z.bBox=f.emptyBBox;z.padding=
104
+ 3;z.baselineOffset=0;z.needsBox=c.styledMode||u;z.deferredAttr={};z.alignFactor=0;return z}E(f,p);f.prototype.alignSetter=function(c){c={left:0,center:.5,right:1}[c];c!==this.alignFactor&&(this.alignFactor=c,this.bBox&&G(this.xSetting)&&this.attr({x:this.xSetting}))};f.prototype.anchorXSetter=function(c,a){this.anchorX=c;this.boxAttr(a,Math.round(c)-this.getCrispAdjust()-this.xSetting)};f.prototype.anchorYSetter=function(c,a){this.anchorY=c;this.boxAttr(a,c-this.ySetting)};f.prototype.boxAttr=function(c,
105
+ a){this.box?this.box.attr(c,a):this.deferredAttr[c]=a};f.prototype.css=function(c){if(c){var a={};c=H(c);f.textProps.forEach(function(f){"undefined"!==typeof c[f]&&(a[f]=c[f],delete c[f])});this.text.css(a);var n="width"in a;"fontSize"in a||"fontWeight"in a?this.updateTextPadding():n&&this.updateBoxSize()}return d.prototype.css.call(this,c)};f.prototype.destroy=function(){q(this.element,"mouseenter");q(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());
106
+ d.prototype.destroy.call(this)};f.prototype.fillSetter=function(c,a){c&&(this.needsBox=!0);this.fill=c;this.boxAttr(a,c)};f.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var c=this.padding,a=y(this.paddingLeft,c);return{width:this.width,height:this.height,x:this.bBox.x-a,y:this.bBox.y-c}};f.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],
107
+ 10):0)%2/2};f.prototype.heightSetter=function(c){this.heightSetting=c};f.prototype.onAdd=function(){var c=this.textStr;this.text.add(this);this.attr({text:F(c)?c:"",x:this.x,y:this.y});this.box&&F(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};f.prototype.paddingSetter=function(c,a){G(c)?c!==this[a]&&(this[a]=c,this.updateTextPadding()):this[a]=void 0};f.prototype.rSetter=function(c,a){this.boxAttr(a,c)};f.prototype.shadow=function(c){c&&!this.renderer.styledMode&&(this.updateBoxSize(),
108
+ this.box&&this.box.shadow(c));return this};f.prototype.strokeSetter=function(c,a){this.stroke=c;this.boxAttr(a,c)};f.prototype["stroke-widthSetter"]=function(c,a){c&&(this.needsBox=!0);this["stroke-width"]=c;this.boxAttr(a,c)};f.prototype["text-alignSetter"]=function(c){this.textAlign=c};f.prototype.textSetter=function(c){"undefined"!==typeof c&&this.text.attr({text:c});this.updateTextPadding()};f.prototype.updateBoxSize=function(){var c=this.text.element.style,a={},n=this.padding,m=this.bBox=G(this.widthSetting)&&
109
+ G(this.heightSetting)&&!this.textAlign||!F(this.text.textStr)?f.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||m.height||0)+2*n;c=this.renderer.fontMetrics(c&&c.fontSize,this.text);this.baselineOffset=n+Math.min((this.text.firstLineMetrics||c).b,m.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-c.h)/2);this.needsBox&&(this.box||(n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),n.addClass(("button"===
110
+ this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),n.add(this)),n=this.getCrispAdjust(),a.x=n,a.y=(this.baseline?-this.baselineOffset:0)+n,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(t(a,this.deferredAttr)),this.deferredAttr={})};f.prototype.updateTextPadding=function(){var c=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,f=y(this.paddingLeft,this.padding);F(this.widthSetting)&&this.bBox&&
111
+ ("center"===this.textAlign||"right"===this.textAlign)&&(f+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(f!==c.x||a!==c.y)c.attr("x",f),c.hasBoxWidthChanged&&(this.bBox=c.getBBox(!0)),"undefined"!==typeof a&&c.attr("y",a);c.x=f;c.y=a};f.prototype.widthSetter=function(c){this.widthSetting=G(c)?c:void 0};f.prototype.getPaddedWidth=function(){var c=this.padding,a=y(this.paddingLeft,c);c=y(this.paddingRight,c);return(this.widthSetting||this.bBox.width||0)+a+c};f.prototype.xSetter=
112
+ 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)};f.prototype.ySetter=function(c){this.ySetting=this.y=Math.round(c);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}(d)});N(h,"Core/Renderer/SVG/Symbols.js",
113
+ [h["Core/Utilities.js"]],function(d){function h(d,q,p,f,c){var a=[];if(c){var n=c.start||0,m=H(c.r,p);p=H(c.r,f||p);var D=(c.end||0)-.001;f=c.innerR;var C=H(c.open,.001>Math.abs((c.end||0)-n-2*Math.PI)),I=Math.cos(n),L=Math.sin(n),h=Math.cos(D),v=Math.sin(D);n=H(c.longArc,.001>D-n-Math.PI?0:1);a.push(["M",d+m*I,q+p*L],["A",m,p,0,n,H(c.clockwise,1),d+m*h,q+p*v]);t(f)&&a.push(C?["M",d+f*h,q+f*v]:["L",d+f*h,q+f*v],["A",f,f,0,n,t(c.clockwise)?1-c.clockwise:0,d+f*I,q+f*L]);C||a.push(["Z"])}return a}function A(d,
114
+ q,p,f,c){return c&&c.r?F(d,q,p,f,c):[["M",d,q],["L",d+p,q],["L",d+p,q+f],["L",d,q+f],["Z"]]}function F(d,q,p,f,c){c=c&&c.r||0;return[["M",d+c,q],["L",d+p-c,q],["C",d+p,q,d+p,q,d+p,q+c],["L",d+p,q+f-c],["C",d+p,q+f,d+p,q+f,d+p-c,q+f],["L",d+c,q+f],["C",d,q+f,d,q+f,d,q+f-c],["L",d,q+c],["C",d,q,d,q,d+c,q]]}var t=d.defined,G=d.isNumber,H=d.pick;return{arc:h,callout:function(d,q,p,f,c){var a=Math.min(c&&c.r||0,p,f),n=a+6,m=c&&c.anchorX;c=c&&c.anchorY||0;var D=F(d,q,p,f,{r:a});if(!G(m))return D;d+m>=p?
115
+ c>q+n&&c<q+f-n?D.splice(3,1,["L",d+p,c-6],["L",d+p+6,c],["L",d+p,c+6],["L",d+p,q+f-a]):D.splice(3,1,["L",d+p,f/2],["L",m,c],["L",d+p,f/2],["L",d+p,q+f-a]):0>=d+m?c>q+n&&c<q+f-n?D.splice(7,1,["L",d,c+6],["L",d-6,c],["L",d,c-6],["L",d,q+a]):D.splice(7,1,["L",d,f/2],["L",m,c],["L",d,f/2],["L",d,q+a]):c&&c>f&&m>d+n&&m<d+p-n?D.splice(5,1,["L",m+6,q+f],["L",m,q+f+6],["L",m-6,q+f],["L",d+a,q+f]):c&&0>c&&m>d+n&&m<d+p-n&&D.splice(1,1,["L",m-6,q],["L",m,q-6],["L",m+6,q],["L",p-a,q]);return D},circle:function(d,
116
+ q,p,f){return h(d+p/2,q+f/2,p/2,f/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(d,q,p,f){return[["M",d+p/2,q],["L",d+p,q+f/2],["L",d+p/2,q+f],["L",d,q+f/2],["Z"]]},rect:A,roundedRect:F,square:A,triangle:function(d,q,p,f){return[["M",d+p/2,q],["L",d+p,q+f],["L",d,q+f],["Z"]]},"triangle-down":function(d,q,p,f){return[["M",d,q],["L",d+p,q],["L",d+p/2,q+f],["Z"]]}}});N(h,"Core/Renderer/SVG/TextBuilder.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,
117
+ h,A){var E=h.doc,t=h.SVG_NS,G=h.win,H=A.attr,y=A.isString,q=A.objectEach,p=A.pick;return function(){function f(c){var a=c.styles;this.renderer=c.renderer;this.svgElement=c;this.width=c.textWidth;this.textLineHeight=a&&a.lineHeight;this.textOutline=a&&a.textOutline;this.ellipsis=!(!a||"ellipsis"!==a.textOverflow);this.noWrap=!(!a||"nowrap"!==a.whiteSpace);this.fontSize=a&&a.fontSize}f.prototype.buildSVG=function(){var c=this.svgElement,a=c.element,f=c.renderer,m=p(c.textStr,"").toString(),D=-1!==m.indexOf("<"),
118
+ C=a.childNodes;f=this.width&&!c.added&&f.box;var I=/<br.*?>/g,L=[m,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(L!==c.textCache){c.textCache=L;delete c.actualWidth;for(L=C.length;L--;)a.removeChild(C[L]);D||this.ellipsis||this.width||-1!==m.indexOf(" ")&&(!this.noWrap||I.test(m))?""!==m&&(f&&f.appendChild(a),m=new d(m),this.modifyTree(m.nodes),m.addToDOM(c.element),this.modifyDOM(),this.ellipsis&&-1!==(a.textContent||"").indexOf("\u2026")&&c.attr("title",
119
+ this.unescapeEntities(c.textStr||"",["&lt;","&gt;"])),f&&f.removeChild(a)):a.appendChild(E.createTextNode(this.unescapeEntities(m)));y(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}};f.prototype.modifyDOM=function(){var c=this,a=this.svgElement,f=H(a.element,"x");a.firstLineMetrics=void 0;for(var m;m=a.element.firstChild;)if(/^[\s\u200B]*$/.test(m.textContent||" "))a.element.removeChild(m);else break;[].forEach.call(a.element.querySelectorAll("tspan.highcharts-br"),function(n,
120
+ m){n.nextSibling&&n.previousSibling&&(0===m&&1===n.previousSibling.nodeType&&(a.firstLineMetrics=a.renderer.fontMetrics(void 0,n.previousSibling)),H(n,{dy:c.getLineHeight(n.nextSibling),x:f}))});var d=this.width||0;if(d){var C=function(n,m){var v=n.textContent||"",z=v.replace(/([^\^])-/g,"$1- ").split(" "),u=!c.noWrap&&(1<z.length||1<a.element.childNodes.length),k=c.getLineHeight(m),w=0,l=a.actualWidth;if(c.ellipsis)v&&c.truncate(n,v,void 0,0,Math.max(0,d-parseInt(c.fontSize||12,10)),function(e,g){return e.substring(0,
121
+ g)+"\u2026"});else if(u){v=[];for(u=[];m.firstChild&&m.firstChild!==n;)u.push(m.firstChild),m.removeChild(m.firstChild);for(;z.length;)z.length&&!c.noWrap&&0<w&&(v.push(n.textContent||""),n.textContent=z.join(" ").replace(/- /g,"-")),c.truncate(n,void 0,z,0===w?l||0:0,d,function(e,g){return z.slice(0,g).join(" ").replace(/- /g,"-")}),l=a.actualWidth,w++;u.forEach(function(e){m.insertBefore(e,n)});v.forEach(function(e){m.insertBefore(E.createTextNode(e),n);e=E.createElementNS(t,"tspan");e.textContent=
122
+ "\u200b";H(e,{dy:k,x:f});m.insertBefore(e,n)})}},p=function(c){[].slice.call(c.childNodes).forEach(function(f){f.nodeType===G.Node.TEXT_NODE?C(f,c):(-1!==f.className.baseVal.indexOf("highcharts-br")&&(a.actualWidth=0),p(f))})};p(a.element)}};f.prototype.getLineHeight=function(c){var a;c=c.nodeType===G.Node.TEXT_NODE?c.parentElement:c;this.renderer.styledMode||(a=c&&/(px|em)$/.test(c.style.fontSize)?c.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),
123
+ 10):this.renderer.fontMetrics(a,c||this.svgElement.element).h};f.prototype.modifyTree=function(c){var a=this,f=function(n,d){var m=n.attributes;m=void 0===m?{}:m;var p=n.children,D=n.tagName,q=a.renderer.styledMode;if("b"===D||"strong"===D)q?m["class"]="highcharts-strong":m.style="font-weight:bold;"+(m.style||"");else if("i"===D||"em"===D)q?m["class"]="highcharts-emphasized":m.style="font-style:italic;"+(m.style||"");y(m.style)&&(m.style=m.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===D?
124
+ (m["class"]="highcharts-br",n.textContent="\u200b",(d=c[d+1])&&d.textContent&&(d.textContent=d.textContent.replace(/^ +/gm,""))):"a"===D&&p&&p.some(function(a){return"#text"===a.tagName})&&(n.children=[{children:p,tagName:"tspan"}]);"#text"!==D&&"a"!==D&&(n.tagName="tspan");n.attributes=m;p&&p.filter(function(a){return"#text"!==a.tagName}).forEach(f)};c.forEach(f)};f.prototype.truncate=function(c,a,f,m,d,p){var n=this.svgElement,C=n.renderer,D=n.rotation,v=[],z=f?1:0,u=(a||f||"").length,k=u,w,l=function(e,
125
+ b){b=b||e;var g=c.parentNode;if(g&&"undefined"===typeof v[b])if(g.getSubStringLength)try{v[b]=m+g.getSubStringLength(0,f?b+1:b)}catch(J){""}else C.getSpanWidth&&(c.textContent=p(a||f,e),v[b]=m+C.getSpanWidth(n,c));return v[b]};n.rotation=0;var e=l(c.textContent.length);if(m+e>d){for(;z<=u;)k=Math.ceil((z+u)/2),f&&(w=p(f,k)),e=l(k,w&&w.length-1),z===u?z=u+1:e>d?u=k-1:z=k;0===u?c.textContent="":a&&u===a.length-1||(c.textContent=w||p(a||f,k))}f&&f.splice(0,k);n.actualWidth=e;n.rotation=D};f.prototype.unescapeEntities=
126
+ function(c,a){q(this.renderer.escapes,function(f,m){a&&-1!==a.indexOf(f)||(c=c.toString().replace(new RegExp(f,"g"),m))});return c};return f}()});N(h,"Core/Renderer/SVG/SVGRenderer.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGLabel.js"],h["Core/Renderer/SVG/Symbols.js"],h["Core/Renderer/SVG/TextBuilder.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G,H,y,q){var p=
127
+ A.charts,f=A.deg2rad,c=A.doc,a=A.isFirefox,n=A.isMS,m=A.isWebKit,D=A.noop,C=A.SVG_NS,I=A.symbolSizes,L=A.win,K=q.addEvent,v=q.attr,z=q.createElement,u=q.css,k=q.defined,w=q.destroyObjectProperties,l=q.extend,e=q.isArray,g=q.isNumber,b=q.isObject,B=q.isString,J=q.merge,r=q.pick,x=q.pInt,M=q.uniqueKey,X;A=function(){function P(b,e,g,l,k,a,r){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=
128
+ this.box=this.alignedObjects=void 0;this.init(b,e,g,l,k,a,r)}P.prototype.init=function(b,e,g,l,k,r,B){var x=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),O=x.element;B||x.css(this.getStyle(l));b.appendChild(O);v(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&v(O,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=O;this.boxWrapper=x;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(c.createTextNode("Created with Highcharts 9.3.2"));
129
+ this.defs=this.createElement("defs").add();this.allowHTML=r;this.forExport=k;this.styledMode=B;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(e,g,!1);var P;a&&b.getBoundingClientRect&&(e=function(){u(b,{left:0,top:0});P=b.getBoundingClientRect();u(b,{left:Math.ceil(P.left)-P.left+"px",top:Math.ceil(P.top)-P.top+"px"})},e(),this.unSubPixelFix=K(L,"resize",e))};P.prototype.definition=function(b){return(new d([b])).addToDOM(this.defs.element)};P.prototype.getReferenceURL=
130
+ function(){if((a||m)&&c.getElementsByTagName("base").length){if(!k(X)){var b=M();b=(new d([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+b+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(c.body);u(b,{position:"fixed",top:0,left:0,zIndex:9E5});var e=c.elementFromPoint(6,6);X="hitme"===(e&&e.id);
131
+ c.body.removeChild(b)}if(X)return L.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};P.prototype.getStyle=function(b){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},b)};P.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};P.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};P.prototype.destroy=function(){var b=this.defs;this.box=
132
+ null;this.boxWrapper=this.boxWrapper.destroy();w(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};P.prototype.createElement=function(b){var e=new this.Element;e.init(this,b);return e};P.prototype.getRadialAttr=function(b,e){return{cx:b[0]-b[2]/2+(e.cx||0)*b[2],cy:b[1]-b[2]/2+(e.cy||0)*b[2],r:(e.r||0)*b[2]}};P.prototype.buildText=function(b){(new y(b)).buildSVG()};P.prototype.getContrast=function(b){b=h.parse(b).rgba;
133
+ b[0]*=1;b[1]*=1.2;b[2]*=.5;return 459<b[0]+b[1]+b[2]?"#000000":"#FFFFFF"};P.prototype.button=function(b,e,g,k,a,r,c,B,x,P){var u=this.label(b,e,g,x,void 0,void 0,P,void 0,"button"),w=this.styledMode,O=0,f=a?J(a):{};b=f&&f.style||{};f=d.filterUserAttributes(f);u.attr(J({padding:8,r:2},f));if(!w){f=J({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:b},f);var Q=f.style;delete f.style;r=J(f,{fill:"#e6e6e6"},d.filterUserAttributes(r||
134
+ {}));var z=r.style;delete r.style;c=J(f,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},d.filterUserAttributes(c||{}));var m=c.style;delete c.style;B=J(f,{style:{color:"#cccccc"}},d.filterUserAttributes(B||{}));var W=B.style;delete B.style}K(u.element,n?"mouseover":"mouseenter",function(){3!==O&&u.setState(1)});K(u.element,n?"mouseout":"mouseleave",function(){3!==O&&u.setState(O)});u.setState=function(b){1!==b&&(u.state=O=b);u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+
135
+ ["normal","hover","pressed","disabled"][b||0]);w||u.attr([f,r,c,B][b||0]).css([Q,z,m,W][b||0])};w||u.attr(f).css(l({cursor:"default"},Q));return u.on("touchstart",function(b){return b.stopPropagation()}).on("click",function(b){3!==O&&k.call(u,b)})};P.prototype.crispLine=function(b,e,g){void 0===g&&(g="round");var l=b[0],a=b[1];k(l[1])&&l[1]===a[1]&&(l[1]=a[1]=Math[g](l[1])-e%2/2);k(l[2])&&l[2]===a[2]&&(l[2]=a[2]=Math[g](l[2])+e%2/2);return b};P.prototype.path=function(g){var k=this.styledMode?{}:
136
+ {fill:"none"};e(g)?k.d=g:b(g)&&l(k,g);return this.createElement("path").attr(k)};P.prototype.circle=function(e,g,l){e=b(e)?e:"undefined"===typeof e?{}:{x:e,y:g,r:l};g=this.createElement("circle");g.xSetter=g.ySetter=function(b,e,g){g.setAttribute("c"+e,b)};return g.attr(e)};P.prototype.arc=function(e,g,l,k,a,r){b(e)?(k=e,g=k.y,l=k.r,e=k.x):k={innerR:k,start:a,end:r};e=this.symbol("arc",e,g,l,l,k);e.r=l;return e};P.prototype.rect=function(e,g,l,k,a,r){a=b(e)?e.r:a;var c=this.createElement("rect");
137
+ e=b(e)?e:"undefined"===typeof e?{}:{x:e,y:g,width:Math.max(l,0),height:Math.max(k,0)};this.styledMode||("undefined"!==typeof r&&(e["stroke-width"]=r,e=c.crisp(e)),e.fill="none");a&&(e.r=a);c.rSetter=function(b,e,g){c.r=b;v(g,{rx:b,ry:b})};c.rGetter=function(){return c.r||0};return c.attr(e)};P.prototype.setSize=function(b,e,g){this.width=b;this.height=e;this.boxWrapper.animate({width:b,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:r(g,
138
+ !0)?void 0:0});this.alignElements()};P.prototype.g=function(b){var e=this.createElement("g");return b?e.attr({"class":"highcharts-"+b}):e};P.prototype.image=function(b,e,l,k,a,r){var c={preserveAspectRatio:"none"},B=function(b,e){b.setAttributeNS?b.setAttributeNS("http://www.w3.org/1999/xlink","href",e):b.setAttribute("hc-svg-href",e)};g(e)&&(c.x=e);g(l)&&(c.y=l);g(k)&&(c.width=k);g(a)&&(c.height=a);var x=this.createElement("image").attr(c);e=function(e){B(x.element,b);r.call(x,e)};r?(B(x.element,
139
+ "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),l=new L.Image,K(l,"load",e),l.src=b,l.complete&&e({})):B(x.element,b);return x};P.prototype.symbol=function(b,e,g,a,B,x){var P=this,w=/^url\((.*?)\)$/,f=w.test(b),J=!f&&(this.symbols[b]?b:"circle"),O=J&&this.symbols[J],Q;if(O){"number"===typeof e&&(Q=O.call(this.symbols,Math.round(e||0),Math.round(g||0),a||0,B||0,x));var n=this.path(Q);P.styledMode||n.attr("fill","none");l(n,{symbolName:J||void 0,x:e,y:g,width:a,height:B});
140
+ x&&l(n,x)}else if(f){var m=b.match(w)[1];var v=n=this.image(m);v.imgwidth=r(I[m]&&I[m].width,x&&x.width);v.imgheight=r(I[m]&&I[m].height,x&&x.height);var d=function(b){return b.attr({width:b.width,height:b.height})};["width","height"].forEach(function(b){v[b+"Setter"]=function(b,e){var g=this["img"+e];this[e]=b;k(g)&&(x&&"within"===x.backgroundSize&&this.width&&this.height&&(g=Math.round(g*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,g),
141
+ this.alignByTranslate||(b=((this[e]||0)-g)/2,this.attr("width"===e?{translateX:b}:{translateY:b})))}});k(e)&&v.attr({x:e,y:g});v.isImg=!0;k(v.imgwidth)&&k(v.imgheight)?d(v):(v.attr({width:0,height:0}),z("img",{onload:function(){var b=p[P.chartIndex];0===this.width&&(u(this,{position:"absolute",top:"-999em"}),c.body.appendChild(this));I[m]={width:this.width,height:this.height};v.imgwidth=this.width;v.imgheight=this.height;v.element&&d(v);this.parentNode&&this.parentNode.removeChild(this);P.imgCount--;
142
+ if(!P.imgCount&&b&&!b.hasLoaded)b.onload()},src:m}),this.imgCount++)}return n};P.prototype.clipRect=function(b,e,g,l){var k=M()+"-",a=this.createElement("clipPath").attr({id:k}).add(this.defs);b=this.rect(b,e,g,l,0).add(a);b.id=k;b.clipPath=a;b.count=0;return b};P.prototype.text=function(b,e,g,l){var a={};if(l&&(this.allowHTML||!this.forExport))return this.html(b,e,g);a.x=Math.round(e||0);g&&(a.y=Math.round(g));k(b)&&(a.text=b);b=this.createElement("text").attr(a);if(!l||this.forExport&&!this.allowHTML)b.xSetter=
143
+ function(b,e,g){for(var l=g.getElementsByTagName("tspan"),k=g.getAttribute(e),a=0,r;a<l.length;a++)r=l[a],r.getAttribute(e)===k&&r.setAttribute(e,b);g.setAttribute(e,b)};return b};P.prototype.fontMetrics=function(b,e){b=!this.styledMode&&/px/.test(b)||!L.getComputedStyle?b||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&t.prototype.getStyle.call(e,"font-size");b=/px/.test(b)?x(b):12;e=24>b?b+3:Math.round(1.2*b);return{h:e,b:Math.round(.8*e),f:b}};P.prototype.rotCorr=function(b,e,
144
+ g){var l=b;e&&g&&(l=Math.max(l*Math.cos(e*f),4));return{x:-b/3*Math.sin(e*f),y:l}};P.prototype.pathToSegments=function(b){for(var e=[],l=[],k={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},a=0;a<b.length;a++)B(l[0])&&g(b[a])&&l.length===k[l[0].toUpperCase()]&&b.splice(a,0,l[0].replace("M","L").replace("m","l")),"string"===typeof b[a]&&(l.length&&e.push(l.slice(0)),l.length=0),l.push(b[a]);e.push(l.slice(0));return e};P.prototype.label=function(b,e,g,l,k,a,r,c,x){return new G(this,b,e,g,l,k,a,r,c,x)};P.prototype.alignElements=
145
+ function(){this.alignedObjects.forEach(function(b){return b.align()})};return P}();l(A.prototype,{Element:t,SVG_NS:C,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:H,draw:D});F.registerRendererType("svg",A,!0);"";return A});N(h,"Core/Renderer/HTML/HTMLElement.js",[h["Core/Globals.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(d,h,A){var E=this&&this.__extends||function(){var a=function(c,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof
146
+ Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f])};return a(c,f)};return function(c,f){function n(){this.constructor=c}a(c,f);c.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}(),t=d.isFirefox,G=d.isMS,H=d.isWebKit,y=d.win,q=A.css,p=A.defined,f=A.extend,c=A.pick,a=A.pInt;return function(n){function m(){return null!==n&&n.apply(this,arguments)||this}E(m,n);m.compose=function(a){if(-1===m.composedClasses.indexOf(a)){m.composedClasses.push(a);
147
+ var c=m.prototype,f=a.prototype;f.getSpanCorrection=c.getSpanCorrection;f.htmlCss=c.htmlCss;f.htmlGetBBox=c.htmlGetBBox;f.htmlUpdateTransform=c.htmlUpdateTransform;f.setSpanRotation=c.setSpanRotation}return a};m.prototype.getSpanCorrection=function(a,c,f){this.xCorr=-a*f;this.yCorr=-c};m.prototype.htmlCss=function(a){var n="SPAN"===this.element.tagName&&a&&"width"in a,m=c(n&&a.width,void 0);if(n){delete a.width;this.textWidth=m;var d=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow=
148
+ "hidden");this.styles=f(this.styles,a);q(this.element,a);d&&this.htmlUpdateTransform();return this};m.prototype.htmlGetBBox=function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};m.prototype.htmlUpdateTransform=function(){if(this.added){var c=this.renderer,f=this.element,n=this.translateX||0,m=this.translateY||0,d=this.x||0,v=this.y||0,z=this.textAlign||"left",u={left:0,center:.5,right:1}[z],k=this.styles;k=k&&k.whiteSpace;q(f,{marginLeft:n,marginTop:m});
149
+ !c.styledMode&&this.shadows&&this.shadows.forEach(function(b){q(b,{marginLeft:n+1,marginTop:m+1})});this.inverted&&[].forEach.call(f.childNodes,function(b){c.invertChild(b,f)});if("SPAN"===f.tagName){var w=this.rotation,l=this.textWidth&&a(this.textWidth),e=[w,z,f.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;g=!1;if(l!==this.oldTextWidth){if(this.textPxLength)var b=this.textPxLength;else q(f,{width:"",whiteSpace:k||"nowrap"}),b=f.offsetWidth;(l>this.oldTextWidth||b>l)&&(/[ \-]/.test(f.textContent||
150
+ f.innerText)||"ellipsis"===f.style.textOverflow)&&(q(f,{width:b>l||w?l+"px":"auto",display:"block",whiteSpace:k||"normal"}),this.oldTextWidth=l,g=!0)}this.hasBoxWidthChanged=g;e!==this.cTT&&(g=c.fontMetrics(f.style.fontSize,f).b,!p(w)||w===(this.oldRotation||0)&&z===this.oldAlign||this.setSpanRotation(w,u,g),this.getSpanCorrection(!p(w)&&this.textPxLength||f.offsetWidth,g,u,w,z));q(f,{left:d+(this.xCorr||0)+"px",top:v+(this.yCorr||0)+"px"});this.cTT=e;this.oldRotation=w;this.oldAlign=z}}else this.alignOnAdd=
151
+ !0};m.prototype.setSpanRotation=function(a,c,f){var n={},m=G&&!/Edge/.test(y.navigator.userAgent)?"-ms-transform":H?"-webkit-transform":t?"MozTransform":y.opera?"-o-transform":void 0;m&&(n[m]=n.transform="rotate("+a+"deg)",n[m+(t?"Origin":"-origin")]=n.transformOrigin=100*c+"% "+f+"px",q(this.element,n))};m.composedClasses=[];return m}(h)});N(h,"Core/Renderer/HTML/HTMLRenderer.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Utilities.js"]],
152
+ function(d,h,A,F){var t=this&&this.__extends||function(){var d=function(f,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f])};return d(f,c)};return function(f,c){function a(){this.constructor=f}d(f,c);f.prototype=null===c?Object.create(c):(a.prototype=c.prototype,new a)}}(),E=F.attr,H=F.createElement,y=F.extend,q=F.pick;return function(p){function f(){return null!==p&&p.apply(this,arguments)||this}
153
+ t(f,p);f.compose=function(c){-1===f.composedClasses.indexOf(c)&&(f.composedClasses.push(c),c.prototype.html=f.prototype.html);return c};f.prototype.html=function(c,a,f){var n=this.createElement("span"),p=n.element,C=n.renderer,I=C.isSVG,L=function(a,c){["opacity","visibility"].forEach(function(f){a[f+"Setter"]=function(u,k,w){var l=a.div?a.div.style:c;h.prototype[f+"Setter"].call(this,u,k,w);l&&(l[k]=u)}});a.addedSetters=!0};n.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,
154
+ d.setElementHTML(this.element,q(a,"")),this.textStr=a,n.doTransform=!0)};I&&L(n,n.element.style);n.xSetter=n.ySetter=n.alignSetter=n.rotationSetter=function(a,c){"align"===c?n.alignValue=n.textAlign=a:n[c]=a;n.doTransform=!0};n.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};n.attr({text:c,x:Math.round(a),y:Math.round(f)}).css({position:"absolute"});C.styledMode||n.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p.style.whiteSpace="nowrap";
155
+ n.css=n.htmlCss;I&&(n.add=function(a){var c=C.box.parentNode,f=[];if(this.parentGroup=a){var u=a.div;if(!u){for(;a;)f.push(a),a=a.parentGroup;f.reverse().forEach(function(k){function a(b,e){k[e]=b;"translateX"===e?g.left=b+"px":g.top=b+"px";k.doTransform=!0}var l=E(k.element,"class"),e=k.styles||{};u=k.div=k.div||H("div",l?{className:l}:void 0,{position:"absolute",left:(k.translateX||0)+"px",top:(k.translateY||0)+"px",display:k.display,opacity:k.opacity,cursor:e.cursor,pointerEvents:e.pointerEvents,
156
+ visibility:k.visibility},u||c);var g=u.style;y(k,{classSetter:function(b){return function(e){this.element.setAttribute("class",e);b.className=e}}(u),on:function(){f[0].div&&n.on.apply({element:f[0].div,onEvents:k.onEvents},arguments);return k},translateXSetter:a,translateYSetter:a});k.addedSetters||L(k)})}}else u=c;u.appendChild(p);n.added=!0;n.alignOnAdd&&n.htmlUpdateTransform();return n});return n};f.composedClasses=[];return f}(A)});N(h,"Core/Axis/AxisDefaults.js",[],function(){var d;(function(d){d.defaultXAxisOptions=
157
+ {alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,
158
+ rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,
159
+ style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};d.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",
160
+ formatter:function(){var d=this.axis.chart.numberFormatter;return d(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};d.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};d.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};d.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};d.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(d||
161
+ (d={}));return d});N(h,"Core/Foundation.js",[h["Core/Utilities.js"]],function(d){var h=d.addEvent,A=d.isFunction,F=d.objectEach,t=d.removeEvent,G;(function(d){d.registerEventOptions=function(d,q){d.eventOptions=d.eventOptions||{};F(q.events,function(p,f){d.eventOptions[f]!==p&&(d.eventOptions[f]&&(t(d,f,d.eventOptions[f]),delete d.eventOptions[f]),A(p)&&(d.eventOptions[f]=p,h(d,f,p)))})}})(G||(G={}));return G});N(h,"Core/Axis/Tick.js",[h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Utilities.js"]],
162
+ function(d,h,A){var E=h.deg2rad,t=A.clamp,G=A.correctFloat,H=A.defined,y=A.destroyObjectProperties,q=A.extend,p=A.fireEvent,f=A.isNumber,c=A.merge,a=A.objectEach,n=A.pick;h=function(){function m(a,c,f,n,d){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=c;this.type=f||"";this.parameters=d||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;p(this,"init");f||n||this.addLabel()}m.prototype.addLabel=function(){var a=this,c=a.axis,m=c.options,h=c.chart,K=c.categories,
163
+ v=c.logarithmic,z=c.names,u=a.pos,k=n(a.options&&a.options.labels,m.labels),w=c.tickPositions,l=u===w[0],e=u===w[w.length-1],g=(!k.step||1===k.step)&&1===c.tickInterval;w=w.info;var b=a.label,B;K=this.parameters.category||(K?n(K[u],z[u],u):u);v&&f(K)&&(K=G(v.lin2log(K)));if(c.dateTime)if(w){var J=h.time.resolveDTLFormat(m.dateTimeLabelFormats[!m.grid&&w.higherRanks[u]||w.unitName]);var r=J.main}else f(K)&&(r=c.dateTime.getXDateFormat(K,m.dateTimeLabelFormats||{}));a.isFirst=l;a.isLast=e;var x={axis:c,
164
+ chart:h,dateTimeLabelFormat:r,isFirst:l,isLast:e,pos:u,tick:a,tickPositionInfo:w,value:K};p(this,"labelFormat",x);var M=function(b){return k.formatter?k.formatter.call(b,b):k.format?(b.text=c.defaultLabelFormatter.call(b),d.format(k.format,b,h)):c.defaultLabelFormatter.call(b,b)};m=M.call(x,x);var X=J&&J.list;a.shortenLabel=X?function(){for(B=0;B<X.length;B++)if(q(x,{dateTimeLabelFormat:X[B]}),b.attr({text:M.call(x,x)}),b.getBBox().width<c.getSlotWidth(a)-2*k.padding)return;b.attr({text:""})}:void 0;
165
+ g&&c._addedPlotLB&&a.moveLabel(m,k);H(b)||a.movedLabel?b&&b.textStr!==m&&!g&&(!b.textWidth||k.style.width||b.styles.width||b.css({width:null}),b.attr({text:m}),b.textPxLength=b.getBBox().width):(a.label=b=a.createLabel({x:0,y:0},m,k),a.rotation=0)};m.prototype.createLabel=function(a,f,n){var d=this.axis,m=d.chart;if(a=H(f)&&n.enabled?m.renderer.text(f,a.x,a.y,n.useHTML).add(d.labelGroup):null)m.styledMode||a.css(c(n.style)),a.textPxLength=a.getBBox().width;return a};m.prototype.destroy=function(){y(this,
166
+ this.axis)};m.prototype.getPosition=function(a,c,f,n){var d=this.axis,m=d.chart,z=n&&m.oldChartHeight||m.chartHeight;a={x:a?G(d.translate(c+f,null,null,n)+d.transB):d.left+d.offset+(d.opposite?(n&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:a?z-d.bottom+d.offset-(d.opposite?d.height:0):G(z-d.translate(c+f,null,null,n)-d.transB)};a.y=t(a.y,-1E5,1E5);p(this,"afterGetPosition",{pos:a});return a};m.prototype.getLabelPosition=function(a,c,f,n,d,m,z,u){var k=this.axis,w=k.transA,l=k.isLinked&&k.linkedParent?
167
+ k.linkedParent.reversed:k.reversed,e=k.staggerLines,g=k.tickRotCorr||{x:0,y:0},b=n||k.reserveSpaceDefault?0:-k.labelOffset*("center"===k.labelAlign?.5:1),B={},J=d.y;H(J)||(J=0===k.side?f.rotation?-8:-f.getBBox().height:2===k.side?g.y+8:Math.cos(f.rotation*E)*(g.y-f.getBBox(!1,0).height/2));a=a+d.x+b+g.x-(m&&n?m*w*(l?-1:1):0);c=c+J-(m&&!n?m*w*(l?1:-1):0);e&&(f=z/(u||1)%e,k.opposite&&(f=e-f-1),c+=k.labelOffset/e*f);B.x=a;B.y=Math.round(c);p(this,"afterGetLabelPosition",{pos:B,tickmarkOffset:m,index:z});
168
+ return B};m.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};m.prototype.getMarkPath=function(a,c,f,n,d,m){return m.crispLine([["M",a,c],["L",a+(d?0:-f),c+(d?f:0)]],n)};m.prototype.handleOverflow=function(a){var c=this.axis,f=c.options.labels,d=a.x,m=c.chart.chartWidth,v=c.chart.spacing,z=n(c.labelLeft,Math.min(c.pos,v[3]));v=n(c.labelRight,Math.max(c.isRadial?0:c.pos+c.len,m-v[1]));var u=this.label,k=this.rotation,w={left:0,center:.5,right:1}[c.labelAlign||
169
+ u.attr("align")],l=u.getBBox().width,e=c.getSlotWidth(this),g={},b=e,B=1,J;if(k||"justify"!==f.overflow)0>k&&d-w*l<z?J=Math.round(d/Math.cos(k*E)-z):0<k&&d+w*l>v&&(J=Math.round((m-d)/Math.cos(k*E)));else if(m=d+(1-w)*l,d-w*l<z?b=a.x+b*(1-w)-z:m>v&&(b=v-a.x+b*w,B=-1),b=Math.min(e,b),b<e&&"center"===c.labelAlign&&(a.x+=B*(e-b-w*(e-Math.min(l,b)))),l>b||c.autoRotation&&(u.styles||{}).width)J=b;J&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(J)+"px",(f.style||{}).textOverflow||(g.textOverflow=
170
+ "ellipsis"),u.css(g)))};m.prototype.moveLabel=function(c,f){var n=this,d=n.label,m=n.axis,v=m.reversed,z=!1;d&&d.textStr===c?(n.movedLabel=d,z=!0,delete n.label):a(m.ticks,function(a){z||a.isNew||a===n||!a.label||a.label.textStr!==c||(n.movedLabel=a.label,z=!0,a.labelPos=n.movedLabel.xy,delete a.label)});if(!z&&(n.labelPos||d)){var u=n.labelPos||d.xy;d=m.horiz?v?0:m.width+m.left:u.x;m=m.horiz?u.y:v?m.width+m.left:0;n.movedLabel=n.createLabel({x:d,y:m},c,f);n.movedLabel&&n.movedLabel.attr({opacity:0})}};
171
+ m.prototype.render=function(a,c,f){var d=this.axis,m=d.horiz,v=this.pos,z=n(this.tickmarkOffset,d.tickmarkOffset);v=this.getPosition(m,v,z,c);z=v.x;var u=v.y;d=m&&z===d.pos+d.len||!m&&u===d.pos?-1:1;m=n(f,this.label&&this.label.newOpacity,1);f=n(f,1);this.isActive=!0;this.renderGridLine(c,f,d);this.renderMark(v,f,d);this.renderLabel(v,c,m,a);this.isNew=!1;p(this,"afterRender")};m.prototype.renderGridLine=function(a,c,f){var d=this.axis,m=d.options,v={},z=this.pos,u=this.type,k=n(this.tickmarkOffset,
172
+ d.tickmarkOffset),w=d.chart.renderer,l=this.gridLine,e=m.gridLineWidth,g=m.gridLineColor,b=m.gridLineDashStyle;"minor"===this.type&&(e=m.minorGridLineWidth,g=m.minorGridLineColor,b=m.minorGridLineDashStyle);l||(d.chart.styledMode||(v.stroke=g,v["stroke-width"]=e||0,v.dashstyle=b),u||(v.zIndex=1),a&&(c=0),this.gridLine=l=w.path().attr(v).addClass("highcharts-"+(u?u+"-":"")+"grid-line").add(d.gridGroup));if(l&&(f=d.getPlotLinePath({value:z+k,lineWidth:l.strokeWidth()*f,force:"pass",old:a})))l[a||this.isNew?
173
+ "attr":"animate"]({d:f,opacity:c})};m.prototype.renderMark=function(a,c,f){var d=this.axis,m=d.options,v=d.chart.renderer,z=this.type,u=d.tickSize(z?z+"Tick":"tick"),k=a.x;a=a.y;var w=n(m["minor"!==z?"tickWidth":"minorTickWidth"],!z&&d.isXAxis?1:0);m=m["minor"!==z?"tickColor":"minorTickColor"];var l=this.mark,e=!l;u&&(d.opposite&&(u[0]=-u[0]),l||(this.mark=l=v.path().addClass("highcharts-"+(z?z+"-":"")+"tick").add(d.axisGroup),d.chart.styledMode||l.attr({stroke:m,"stroke-width":w})),l[e?"attr":"animate"]({d:this.getMarkPath(k,
174
+ a,u[0],l.strokeWidth()*f,d.horiz,v),opacity:c}))};m.prototype.renderLabel=function(a,c,d,m){var p=this.axis,v=p.horiz,z=p.options,u=this.label,k=z.labels,w=k.step;p=n(this.tickmarkOffset,p.tickmarkOffset);var l=a.x;a=a.y;var e=!0;u&&f(l)&&(u.xy=a=this.getLabelPosition(l,a,u,v,k,p,m,w),this.isFirst&&!this.isLast&&!z.showFirstLabel||this.isLast&&!this.isFirst&&!z.showLastLabel?e=!1:!v||k.step||k.rotation||c||0===d||this.handleOverflow(a),w&&m%w&&(e=!1),e&&f(a.y)?(a.opacity=d,u[this.isNewLabel?"attr":
175
+ "animate"](a),this.isNewLabel=!1):(u.attr("y",-9999),this.isNewLabel=!0))};m.prototype.replaceMovedLabel=function(){var a=this.label,c=this.axis,f=c.reversed;if(a&&!this.isNew){var n=c.horiz?f?c.left:c.width+c.left:a.xy.x;f=c.horiz?a.xy.y:f?c.width+c.top:c.top;a.animate({x:n,y:f,opacity:0},void 0,a.destroy);delete this.label}c.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return m}();"";return h});N(h,"Core/Axis/Axis.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/AxisDefaults.js"],
176
+ h["Core/Color/Color.js"],h["Core/DefaultOptions.js"],h["Core/Foundation.js"],h["Core/Globals.js"],h["Core/Axis/Tick.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G,H,y){var q=d.animObject,p=F.defaultOptions,f=t.registerEventOptions,c=G.deg2rad,a=y.arrayMax,n=y.arrayMin,m=y.clamp,D=y.correctFloat,C=y.defined,I=y.destroyObjectProperties,L=y.erase,K=y.error,v=y.extend,z=y.fireEvent,u=y.getMagnitude,k=y.isArray,w=y.isNumber,l=y.isString,e=y.merge,g=y.normalizeTickInterval,b=y.objectEach,B=y.pick,J=
177
+ y.relativeLength,r=y.removeEvent,x=y.splat,M=y.syncTimeout;d=function(){function d(b,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=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=
178
+ 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,e)}d.prototype.init=function(b,e){var g=e.isX;this.chart=b;this.horiz=b.inverted&&!this.isZAxis?!g:g;this.isXAxis=g;this.coll=this.coll||
179
+ (g?"xAxis":"yAxis");z(this,"init",{userOptions:e});this.opposite=B(e.opposite,this.opposite);this.side=B(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(e);var a=this.options,l=a.labels,k=a.type;this.userOptions=e;this.minPixelPadding=0;this.reversed=B(a.reversed,this.reversed);this.visible=a.visible;this.zoomEnabled=a.zoomEnabled;this.hasNames="category"===k||!0===a.categories;this.categories=a.categories||this.hasNames;this.names||(this.names=[],this.names.keys=
180
+ {});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=C(a.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=a.minRange||a.maxZoom;this.range=a.range;this.offset=a.offset||0;this.min=this.max=null;e=B(a.crosshair,x(b.options.tooltip.crosshairs)[g?0:1]);this.crosshair=!0===e?{}:e;-1===b.axes.indexOf(this)&&(g?b.axes.splice(b.xAxis.length,0,this):b.axes.push(this),
181
+ b[this.coll].push(this));this.series=this.series||[];b.inverted&&!this.isZAxis&&g&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=w(l.rotation)?l.rotation:void 0;f(this,a);z(this,"afterInit")};d.prototype.setOptions=function(b){this.options=e(h.defaultXAxisOptions,"yAxis"===this.coll&&h.defaultYAxisOptions,[h.defaultTopAxisOptions,h.defaultRightAxisOptions,h.defaultBottomAxisOptions,h.defaultLeftAxisOptions][this.side],e(p[this.coll],b));z(this,"afterSetOptions",{userOptions:b})};
182
+ d.prototype.defaultLabelFormatter=function(b){var e=this.axis;b=this.chart.numberFormatter;var g=w(this.value)?this.value:NaN,a=e.chart.time,l=this.dateTimeLabelFormat,k=p.lang,c=k.numericSymbols;k=k.numericSymbolMagnitude||1E3;var r=e.logarithmic?Math.abs(g):e.tickInterval,f=c&&c.length;if(e.categories)var x=""+this.value;else if(l)x=a.dateFormat(l,g);else if(f&&1E3<=r)for(;f--&&"undefined"===typeof x;)e=Math.pow(k,f+1),r>=e&&0===10*g%e&&null!==c[f]&&0!==g&&(x=b(g/e,-1)+c[f]);"undefined"===typeof x&&
183
+ (x=1E4<=Math.abs(g)?b(g,-1):b(g,-1,void 0,""));return x};d.prototype.getSeriesExtremes=function(){var b=this,e=b.chart,g;z(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(a){if(a.visible||!e.options.chart.ignoreHiddenSeries){var l=a.options,k=l.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=k&&(k=null);if(b.isXAxis){if(l=a.xData,l.length){l=b.logarithmic?
184
+ l.filter(b.validatePositiveValue):l;g=a.getXExtremes(l);var c=g.min;var r=g.max;w(c)||c instanceof Date||(l=l.filter(w),g=a.getXExtremes(l),c=g.min,r=g.max);l.length&&(b.dataMin=Math.min(B(b.dataMin,c),c),b.dataMax=Math.max(B(b.dataMax,r),r))}}else if(a=a.applyExtremes(),w(a.dataMin)&&(c=a.dataMin,b.dataMin=Math.min(B(b.dataMin,c),c)),w(a.dataMax)&&(r=a.dataMax,b.dataMax=Math.max(B(b.dataMax,r),r)),C(k)&&(b.threshold=k),!l.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});z(this,"afterGetSeriesExtremes")};
185
+ d.prototype.translate=function(b,e,g,a,l,k){var c=this.linkedParent||this,r=a&&c.old?c.old.min:c.min,f=c.minPixelPadding;l=(c.isOrdinal||c.brokenAxis&&c.brokenAxis.hasBreaks||c.logarithmic&&l)&&c.lin2val;var x=1,B=0;a=a&&c.old?c.old.transA:c.transA;a||(a=c.transA);g&&(x*=-1,B=c.len);c.reversed&&(x*=-1,B-=x*(c.sector||c.len));e?(b=(b*x+B-f)/a+r,l&&(b=c.lin2val(b))):(l&&(b=c.val2lin(b)),b=w(r)?x*(b-r)*a+B+x*f+(w(k)?a*k:0):void 0);return b};d.prototype.toPixels=function(b,e){return this.translate(b,
186
+ !1,!this.horiz,null,!0)+(e?0:this.pos)};d.prototype.toValue=function(b,e){return this.translate(b-(e?0:this.pos),!0,!this.horiz,null,!0)};d.prototype.getPlotLinePath=function(b){function e(b,e,g){if("pass"!==n&&b<e||b>g)n?b=m(b,e,g):h=!0;return b}var g=this,a=g.chart,l=g.left,k=g.top,c=b.old,r=b.value,f=b.lineWidth,x=c&&a.oldChartHeight||a.chartHeight,u=c&&a.oldChartWidth||a.chartWidth,d=g.transB,J=b.translatedValue,n=b.force,P,v,p,M,h;b={value:r,lineWidth:f,old:c,force:n,acrossPanes:b.acrossPanes,
187
+ translatedValue:J};z(this,"getPlotLinePath",b,function(b){J=B(J,g.translate(r,null,null,c));J=m(J,-1E5,1E5);P=p=Math.round(J+d);v=M=Math.round(x-J-d);w(J)?g.horiz?(v=k,M=x-g.bottom,P=p=e(P,l,l+g.width)):(P=l,p=u-g.right,v=M=e(v,k,k+g.height)):(h=!0,n=!1);b.path=h&&!n?null:a.renderer.crispLine([["M",P,v],["L",p,M]],f||1)});return b.path};d.prototype.getLinearTickPositions=function(b,e,g){var a=D(Math.floor(e/b)*b);g=D(Math.ceil(g/b)*b);var l=[],k;D(a+b)===a&&(k=20);if(this.single)return[e];for(e=a;e<=
188
+ g;){l.push(e);e=D(e+b,k);if(e===c)break;var c=e}return l};d.prototype.getMinorTickInterval=function(){var b=this.options;return!0===b.minorTicks?B(b.minorTickInterval,"auto"):!1===b.minorTicks?null:b.minorTickInterval};d.prototype.getMinorTickPositions=function(){var b=this.options,e=this.tickPositions,g=this.minorTickInterval,a=this.pointRangePadding||0,l=this.min-a;a=this.max+a;var k=a-l,c=[];if(k&&k/g<this.len/3){var r=this.logarithmic;if(r)this.paddedTicks.forEach(function(b,e,a){e&&c.push.apply(c,
189
+ r.getLogTickPositions(g,a[e-1],a[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())c=c.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(g),l,a,b.startOfWeek));else for(b=l+(e[0]-l)%g;b<=a&&b!==c[0];b+=g)c.push(b)}0!==c.length&&this.trimTicks(c);return c};d.prototype.adjustForMinRange=function(){var b=this.options,e=this.logarithmic,g=this.min,l=this.max,k=0,c,r,f,x;this.isXAxis&&"undefined"===typeof this.minRange&&!e&&(C(b.min)||C(b.max)||C(b.floor)||C(b.ceiling)?
190
+ this.minRange=null:(this.series.forEach(function(b){f=b.xData;x=b.xIncrement?1:f.length-1;if(1<f.length)for(c=x;0<c;c--)if(r=f[c]-f[c-1],!k||r<k)k=r}),this.minRange=Math.min(5*k,this.dataMax-this.dataMin)));if(l-g<this.minRange){var u=this.dataMax-this.dataMin>=this.minRange;var d=this.minRange;var w=(d-l+g)/2;w=[g-w,B(b.min,g-w)];u&&(w[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);g=a(w);l=[g+d,B(b.max,g+d)];u&&(l[2]=e?e.log2lin(this.dataMax):this.dataMax);l=n(l);l-g<d&&
191
+ (w[0]=l-d,w[1]=B(b.min,l-d),g=a(w))}this.min=g;this.max=l};d.prototype.getClosest=function(){var b;this.categories?b=1:this.series.forEach(function(e){var g=e.closestPointRange,a=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&C(g)&&a&&(b=C(b)?Math.min(b,g):g)});return b};d.prototype.nameToX=function(b){var e=k(this.categories),g=e?this.categories:this.names,a=b.options.x;b.series.requireSorting=!1;C(a)||(a=this.options.uniqueNames?e?g.indexOf(b.name):B(g.keys[b.name],-1):
192
+ b.series.autoIncrement());if(-1===a){if(!e)var l=g.length}else l=a;"undefined"!==typeof l&&(this.names[l]=b.name,this.names.keys[b.name]=l);return l};d.prototype.updateNames=function(){var b=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(b){delete e.keys[b]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null;if(!e.points||e.isDirtyData)b.max=Math.max(b.max,e.xData.length-1),e.processData(),e.generatePoints();e.data.forEach(function(g,
193
+ a){if(g&&g.options&&"undefined"!==typeof g.name){var l=b.nameToX(g);"undefined"!==typeof l&&l!==g.x&&(g.x=l,e.xData[a]=l)}})}))};d.prototype.setAxisTranslation=function(){var b=this,e=b.max-b.min,g=b.linkedParent,a=!!b.categories,k=b.isXAxis,c=b.axisPointRange||0,r=0,f=0,x=b.transA;if(k||a||c){var u=b.getClosest();g?(r=g.minPointOffset,f=g.pointRangePadding):b.series.forEach(function(e){var g=a?1:k?B(e.options.pointRange,u,0):b.axisPointRange||0,x=e.options.pointPlacement;c=Math.max(c,g);if(!b.single||
194
+ a)e=e.is("xrange")?!k:k,r=Math.max(r,e&&l(x)?0:g/2),f=Math.max(f,e&&"on"===x?0:g)});g=b.ordinal&&b.ordinal.slope&&u?b.ordinal.slope/u:1;b.minPointOffset=r*=g;b.pointRangePadding=f*=g;b.pointRange=Math.min(c,b.single&&a?1:e);k&&(b.closestPointRange=u)}b.translationSlope=b.transA=x=b.staticScale||b.len/(e+f||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=x*r;z(this,"afterSetAxisTranslation")};d.prototype.minFromRange=function(){return this.max-this.range};d.prototype.setTickInterval=function(b){var e=
195
+ this.chart,a=this.logarithmic,l=this.options,k=this.isXAxis,c=this.isLinked,r=l.tickPixelInterval,f=this.categories,x=this.softThreshold,d=l.maxPadding,J=l.minPadding,n=w(l.tickInterval)&&0<=l.tickInterval?l.tickInterval:void 0,m=w(this.threshold)?this.threshold:null;this.dateTime||f||c||this.getTickAmount();var P=B(this.userMin,l.min);var v=B(this.userMax,l.max);if(c){this.linkedParent=e[this.coll][l.linkedTo];var p=this.linkedParent.getExtremes();this.min=B(p.min,p.dataMin);this.max=B(p.max,p.dataMax);
196
+ l.type!==this.linkedParent.options.type&&K(11,1,e)}else{if(x&&C(m))if(this.dataMin>=m)p=m,J=0;else if(this.dataMax<=m){var M=m;d=0}this.min=B(P,p,this.dataMin);this.max=B(v,M,this.dataMax)}a&&(this.positiveValuesOnly&&!b&&0>=Math.min(this.min,B(this.dataMin,this.min))&&K(10,1,e),this.min=D(a.log2lin(this.min),16),this.max=D(a.log2lin(this.max),16));this.range&&C(this.max)&&(this.userMin=this.min=P=Math.max(this.dataMin,this.minFromRange()),this.userMax=v=this.max,this.range=null);z(this,"foundExtremes");
197
+ this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(f||this.axisPointRange||this.stacking&&this.stacking.usePercentage||c)&&C(this.min)&&C(this.max)&&(e=this.max-this.min)&&(!C(P)&&J&&(this.min-=e*J),!C(v)&&d&&(this.max+=e*d));w(this.userMin)||(w(l.softMin)&&l.softMin<this.min&&(this.min=P=l.softMin),w(l.floor)&&(this.min=Math.max(this.min,l.floor)));w(this.userMax)||(w(l.softMax)&&l.softMax>this.max&&(this.max=v=l.softMax),w(l.ceiling)&&(this.max=Math.min(this.max,l.ceiling)));x&&
198
+ C(this.dataMin)&&(m=m||0,!C(P)&&this.min<m&&this.dataMin>=m?this.min=this.options.minRange?Math.min(m,this.max-this.minRange):m:!C(v)&&this.max>m&&this.dataMax<=m&&(this.max=this.options.minRange?Math.max(m,this.min+this.minRange):m));w(this.min)&&w(this.max)&&!this.chart.polar&&this.min>this.max&&(C(this.options.min)?this.max=this.min:C(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:c&&this.linkedParent&&
199
+ !n&&r===this.linkedParent.options.tickPixelInterval?n=this.linkedParent.tickInterval:B(n,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,f?1:(this.max-this.min)*r/Math.max(this.len,r));if(k&&!b){var h=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(b){b.forceCrop=b.forceCropping&&b.forceCropping();b.processData(h)});z(this,"postProcessData",{hasExtemesChanged:h})}this.setAxisTranslation();z(this,"initialAxisTranslation");
200
+ this.pointRange&&!n&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b=B(l.minTickInterval,this.dateTime&&!this.series.some(function(b){return b.noSharedTooltip})?this.closestPointRange:0);!n&&this.tickInterval<b&&(this.tickInterval=b);this.dateTime||this.logarithmic||n||(this.tickInterval=g(this.tickInterval,void 0,u(this.tickInterval),B(l.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};
201
+ d.prototype.setTickPositions=function(){var b=this.options,e=b.tickPositions,g=this.getMinorTickInterval(),a=this.hasVerticalPanning(),l="colorAxis"===this.coll,k=(l||!a)&&b.startOnTick;a=(l||!a)&&b.endOnTick;l=b.tickPositioner;this.tickmarkOffset=this.categories&&"between"===b.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===g&&this.tickInterval?this.tickInterval/5:g;this.single=this.min===this.max&&C(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==
202
+ b.allowDecimals);this.tickPositions=g=e&&e.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,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,this.max):this.getLinearTickPositions(this.tickInterval,this.min,
203
+ this.max):(g=[this.min,this.max],K(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,k,a);this.isLinked||(this.single&&2>g.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&(this.min-=.5,this.max+=.5),e||l||this.adjustTickAmount());z(this,"afterSetTickPositions")};
204
+ d.prototype.trimTicks=function(b,e,g){var a=b[0],l=b[b.length-1],k=!this.isOrdinal&&this.minPointOffset||0;z(this,"trimTicks");if(!this.isLinked){if(e&&-Infinity!==a)this.min=a;else for(;this.min-k>b[0];)b.shift();if(g)this.max=l;else for(;this.max+k<b[b.length-1];)b.pop();0===b.length&&C(a)&&!this.options.tickPositions&&b.push((l+a)/2)}};d.prototype.alignToOthers=function(){var b={},e=this.options,g;!1!==this.chart.options.chart.alignTicks&&e.alignTicks&&!1!==e.startOnTick&&!1!==e.endOnTick&&!this.logarithmic&&
205
+ this.chart[this.coll].forEach(function(e){var a=e.options;a=[e.horiz?a.left:a.top,a.width,a.height,a.pane].join();e.series.length&&(b[a]?g=!0:b[a]=1)});return g};d.prototype.getTickAmount=function(){var b=this.options,e=b.tickPixelInterval,g=b.tickAmount;!C(b.tickInterval)&&!g&&this.len<e&&!this.isRadial&&!this.logarithmic&&b.startOnTick&&b.endOnTick&&(g=2);!g&&this.alignToOthers()&&(g=Math.ceil(this.len/e)+1);4>g&&(this.finalTickAmt=g,g=5);this.tickAmount=g};d.prototype.adjustTickAmount=function(){var b=
206
+ this.options,e=this.tickInterval,g=this.tickPositions,a=this.tickAmount,l=this.finalTickAmt,k=g&&g.length,c=B(this.threshold,this.softThreshold?0:null);if(this.hasData()&&w(this.min)&&w(this.max)){if(k<a){for(;g.length<a;)g.length%2||this.min===c?g.push(D(g[g.length-1]+e)):g.unshift(D(g[0]-e));this.transA*=(k-1)/(a-1);this.min=b.startOnTick?g[0]:Math.min(this.min,g[0]);this.max=b.endOnTick?g[g.length-1]:Math.max(this.max,g[g.length-1])}else k>a&&(this.tickInterval*=2,this.setTickPositions());if(C(l)){for(e=
207
+ b=g.length;e--;)(3===l&&1===e%2||2>=l&&0<e&&e<b-1)&&g.splice(e,1);this.finalTickAmt=void 0}}};d.prototype.setScale=function(){var b=!1,e=!1;this.series.forEach(function(g){b=b||g.isDirtyData||g.isDirty;e=e||g.xAxis&&g.xAxis.isDirty||!1});this.setAxisSize();var g=this.len!==(this.old&&this.old.len);g||b||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=
208
+ !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();b&&this.panningState&&(this.panningState.isDirty=!0);z(this,"afterSetScale")};d.prototype.setExtremes=function(b,e,g,a,l){var k=this,c=k.chart;g=B(g,!0);k.series.forEach(function(b){delete b.kdTree});l=v(l,{min:b,max:e});z(k,"setExtremes",l,function(){k.userMin=b;k.userMax=e;k.eventArgs=l;g&&c.redraw(a)})};
209
+ d.prototype.zoom=function(b,e){var g=this,a=this.dataMin,l=this.dataMax,k=this.options,c=Math.min(a,B(k.min,a)),r=Math.max(l,B(k.max,l));b={newMin:b,newMax:e};z(this,"zoom",b,function(b){var e=b.newMin,k=b.newMax;if(e!==g.min||k!==g.max)g.allowZoomOutside||(C(a)&&(e<c&&(e=c),e>r&&(e=r)),C(l)&&(k<c&&(k=c),k>r&&(k=r))),g.displayBtn="undefined"!==typeof e||"undefined"!==typeof k,g.setExtremes(e,k,!1,void 0,{trigger:"zoom"});b.zoomed=!0});return b.zoomed};d.prototype.setAxisSize=function(){var b=this.chart,
210
+ e=this.options,g=e.offsets||[0,0,0,0],a=this.horiz,l=this.width=Math.round(J(B(e.width,b.plotWidth-g[3]+g[1]),b.plotWidth)),k=this.height=Math.round(J(B(e.height,b.plotHeight-g[0]+g[2]),b.plotHeight)),c=this.top=Math.round(J(B(e.top,b.plotTop+g[0]),b.plotHeight,b.plotTop));e=this.left=Math.round(J(B(e.left,b.plotLeft+g[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-c;this.right=b.chartWidth-l-e;this.len=Math.max(a?l:k,0);this.pos=a?e:c};d.prototype.getExtremes=function(){var b=this.logarithmic;
211
+ return{min:b?D(b.lin2log(this.min)):this.min,max:b?D(b.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};d.prototype.getThreshold=function(b){var e=this.logarithmic,g=e?e.lin2log(this.min):this.min;e=e?e.lin2log(this.max):this.max;null===b||-Infinity===b?b=g:Infinity===b?b=e:g>b?b=g:e<b&&(b=e);return this.translate(b,0,1,0,1)};d.prototype.autoLabelAlign=function(b){var e=(B(b,0)-90*this.side+720)%360;b={align:"center"};z(this,"autoLabelAlign",
212
+ b,function(b){15<e&&165>e?b.align="right":195<e&&345>e&&(b.align="left")});return b.align};d.prototype.tickSize=function(b){var e=this.options,g=B(e["tick"===b?"tickWidth":"minorTickWidth"],"tick"===b&&this.isXAxis&&!this.categories?1:0),a=e["tick"===b?"tickLength":"minorTickLength"];if(g&&a){"inside"===e[b+"Position"]&&(a=-a);var l=[a,g]}b={tickSize:l};z(this,"afterTickSize",b);return b.tickSize};d.prototype.labelMetrics=function(){var b=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,
213
+ this.ticks[b]&&this.ticks[b].label)};d.prototype.unsquish=function(){var b=this.options.labels,e=this.horiz,g=this.tickInterval,a=this.len/(((this.categories?1:0)+this.max-this.min)/g),l=b.rotation,k=this.labelMetrics(),r=Math.max(this.max-this.min,0),f=function(b){var e=b/(a||1);e=1<e?Math.ceil(e):1;e*g>r&&Infinity!==b&&Infinity!==a&&r&&(e=Math.ceil(r/g));return D(e*g)},x=g,u,d,J=Number.MAX_VALUE;if(e){if(!b.staggerLines&&!b.step)if(w(l))var n=[l];else a<b.autoRotationLimit&&(n=b.autoRotation);n&&
214
+ n.forEach(function(b){if(b===l||b&&-90<=b&&90>=b){d=f(Math.abs(k.h/Math.sin(c*b)));var e=d+Math.abs(b/360);e<J&&(J=e,u=b,x=d)}})}else b.step||(x=f(k.h));this.autoRotation=n;this.labelRotation=B(u,w(l)?l:0);return x};d.prototype.getSlotWidth=function(b){var e=this.chart,g=this.horiz,a=this.options.labels,l=Math.max(this.tickPositions.length-(this.categories?0:1),1),k=e.margin[3];if(b&&w(b.slotWidth))return b.slotWidth;if(g&&2>a.step)return a.rotation?0:(this.staggerLines||1)*this.len/l;if(!g){b=a.style.width;
215
+ if(void 0!==b)return parseInt(String(b),10);if(k)return k-e.spacing[3]}return.33*e.chartWidth};d.prototype.renderUnsquish=function(){var b=this.chart,e=b.renderer,g=this.tickPositions,a=this.ticks,k=this.options.labels,c=k.style,r=this.horiz,f=this.getSlotWidth(),x=Math.max(1,Math.round(f-2*k.padding)),B={},u=this.labelMetrics(),d=c.textOverflow,w=0;l(k.rotation)||(B.rotation=k.rotation||0);g.forEach(function(b){b=a[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>w&&(w=b.label.textPxLength)});
216
+ this.maxLabelLength=w;if(this.autoRotation)w>x&&w>u.h?B.rotation=this.labelRotation:this.labelRotation=0;else if(f){var J=x;if(!d){var n="clip";for(x=g.length;!r&&x--;){var m=g[x];if(m=a[m].label)m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>f&&m.css({width:f+"px"}),m.getBBox().height>this.len/g.length-(u.h-u.f)&&(m.specificTextOverflow="ellipsis")}}}B.rotation&&(J=w>.5*b.chartHeight?.33*b.chartHeight:w,d||(n="ellipsis"));if(this.labelAlign=k.align||this.autoLabelAlign(this.labelRotation))B.align=
217
+ this.labelAlign;g.forEach(function(b){var e=(b=a[b])&&b.label,g=c.width,l={};e&&(e.attr(B),b.shortenLabel?b.shortenLabel():J&&!g&&"nowrap"!==c.whiteSpace&&(J<e.textPxLength||"SPAN"===e.element.tagName)?(l.width=J+"px",d||(l.textOverflow=e.specificTextOverflow||n),e.css(l)):e.styles&&e.styles.width&&!l.width&&!g&&e.css({width:null}),delete e.specificTextOverflow,b.rotation=B.rotation)},this);this.tickRotCorr=e.rotCorr(u.b,this.labelRotation||0,0!==this.side)};d.prototype.hasData=function(){return this.series.some(function(b){return b.hasData()})||
218
+ this.options.showEmpty&&C(this.min)&&C(this.max)};d.prototype.addTitle=function(b){var g=this.chart.renderer,a=this.horiz,l=this.opposite,k=this.options.title,c=this.chart.styledMode,r;this.axisTitle||((r=k.textAlign)||(r=(a?{low:"left",middle:"center",high:"right"}:{low:l?"right":"left",middle:"center",high:l?"left":"right"})[k.align]),this.axisTitle=g.text(k.text||"",0,0,k.useHTML).attr({zIndex:7,rotation:k.rotation,align:r}).addClass("highcharts-axis-title"),c||this.axisTitle.css(e(k.style)),this.axisTitle.add(this.axisGroup),
219
+ this.axisTitle.isNew=!0);c||k.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[b?"show":"hide"](b)};d.prototype.generateTick=function(b){var e=this.ticks;e[b]?e[b].addLabel():e[b]=new H(this,b)};d.prototype.getOffset=function(){var e=this,g=this,a=g.chart,l=g.horiz,k=g.options,c=g.side,r=g.ticks,f=g.tickPositions,x=g.coll,u=g.axisParent,d=a.renderer,w=a.inverted&&!g.isZAxis?[1,0,3,2][c]:c,J=g.hasData(),n=k.title,m=k.labels,v=a.axisOffset;a=a.clipOffset;var p=[-1,
220
+ 1,1,-1][c],M=k.className,h,q=0,I=0,D=0;g.showAxis=h=J||k.showEmpty;g.staggerLines=g.horiz&&m.staggerLines||void 0;if(!g.axisGroup){var L=function(b,g,a){return d.g(b).attr({zIndex:a}).addClass("highcharts-"+x.toLowerCase()+g+" "+(e.isRadial?"highcharts-radial-axis"+g+" ":"")+(M||"")).add(u)};g.gridGroup=L("grid","-grid",k.gridZIndex);g.axisGroup=L("axis","",k.zIndex);g.labelGroup=L("axis-labels","-labels",m.zIndex)}J||g.isLinked?(f.forEach(function(b){g.generateTick(b)}),g.renderUnsquish(),g.reserveSpaceDefault=
221
+ 0===c||2===c||{1:"left",3:"right"}[c]===g.labelAlign,B(m.reserveSpace,"center"===g.labelAlign?!0:null,g.reserveSpaceDefault)&&f.forEach(function(b){D=Math.max(r[b].getLabelSize(),D)}),g.staggerLines&&(D*=g.staggerLines),g.labelOffset=D*(g.opposite?-1:1)):b(r,function(b,e){b.destroy();delete r[e]});if(n&&n.text&&!1!==n.enabled&&(g.addTitle(h),h&&!1!==n.reserveSpace)){g.titleOffset=q=g.axisTitle.getBBox()[l?"height":"width"];var K=n.offset;I=C(K)?0:B(n.margin,l?5:10)}g.renderLine();g.offset=p*B(k.offset,
222
+ v[c]?v[c]+(k.margin||0):0);g.tickRotCorr=g.tickRotCorr||{x:0,y:0};n=0===c?-g.labelMetrics().h:2===c?g.tickRotCorr.y:0;J=Math.abs(D)+I;D&&(J=J-n+p*(l?B(m.y,g.tickRotCorr.y+8*p):m.x));g.axisTitleMargin=B(K,J);g.getMaxLabelDimensions&&(g.maxLabelDimensions=g.getMaxLabelDimensions(r,f));"colorAxis"!==x&&(l=this.tickSize("tick"),v[c]=Math.max(v[c],(g.axisTitleMargin||0)+q+p*g.offset,J,f&&f.length&&l?l[0]+p*g.offset:0),k=!g.axisLine||k.offset?0:2*Math.floor(g.axisLine.strokeWidth()/2),a[w]=Math.max(a[w],
223
+ k));z(this,"afterGetOffset")};d.prototype.getLinePath=function(b){var e=this.chart,g=this.opposite,a=this.offset,l=this.horiz,k=this.left+(g?this.width:0)+a;a=e.chartHeight-this.bottom-(g?this.height:0)+a;g&&(b*=-1);return e.renderer.crispLine([["M",l?this.left:k,l?a:this.top],["L",l?e.chartWidth-this.right:k,l?a:e.chartHeight-this.bottom]],b)};d.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||
224
+ this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};d.prototype.getTitlePosition=function(){var b=this.horiz,e=this.left,g=this.top,a=this.len,l=this.options.title,k=b?e:g,c=this.opposite,r=this.offset,f=l.x,x=l.y,B=this.axisTitle,u=this.chart.renderer.fontMetrics(l.style.fontSize,B);B=Math.max(B.getBBox(null,0).height-u.h-1,0);a={low:k+(b?0:a),middle:k+a/2,high:k+(b?a:0)}[l.align];e=(b?g+this.height:e)+(b?1:-1)*(c?-1:1)*this.axisTitleMargin+[-B,B,
225
+ u.f,-B][this.side];b={x:b?a+f:e+(c?this.width:0)+r+f,y:b?e+x-(c?this.height:0)+r:a+x};z(this,"afterGetTitlePosition",{titlePosition:b});return b};d.prototype.renderMinorTick=function(b,e){var g=this.minorTicks;g[b]||(g[b]=new H(this,b,"minor"));e&&g[b].isNew&&g[b].render(null,!0);g[b].render(null,!1,1)};d.prototype.renderTick=function(b,e,g){var a=this.ticks;if(!this.isLinked||b>=this.min&&b<=this.max||this.grid&&this.grid.isColumn)a[b]||(a[b]=new H(this,b)),g&&a[b].isNew&&a[b].render(e,!0,-1),a[b].render(e)};
226
+ d.prototype.render=function(){var e=this,g=e.chart,a=e.logarithmic,l=e.options,k=e.isLinked,c=e.tickPositions,r=e.axisTitle,f=e.ticks,x=e.minorTicks,B=e.alternateBands,u=l.stackLabels,d=l.alternateGridColor,J=e.tickmarkOffset,n=e.axisLine,m=e.showAxis,v=q(g.renderer.globalAnimation),p,h;e.labelEdge.length=0;e.overlap=!1;[f,x,B].forEach(function(e){b(e,function(b){b.isActive=!1})});if(e.hasData()||k){var C=e.chart.hasRendered&&e.old&&w(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEach(function(b){e.renderMinorTick(b,
227
+ C)});c.length&&(c.forEach(function(b,g){e.renderTick(b,g,C)}),J&&(0===e.min||e.single)&&(f[-1]||(f[-1]=new H(e,-1,null,!0)),f[-1].render(-1)));d&&c.forEach(function(b,l){h="undefined"!==typeof c[l+1]?c[l+1]+J:e.max-J;0===l%2&&b<e.max&&h<=e.max+(g.polar?-J:J)&&(B[b]||(B[b]=new G.PlotLineOrBand(e)),p=b+J,B[b].options={from:a?a.lin2log(p):p,to:a?a.lin2log(h):h,color:d,className:"highcharts-alternate-grid"},B[b].render(),B[b].isActive=!0)});e._addedPlotLB||(e._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||
228
+ []).forEach(function(b){e.addPlotBandOrLine(b)}))}[f,x,B].forEach(function(e){var a=[],l=v.duration;b(e,function(b,e){b.isActive||(b.render(e,!1,0),b.isActive=!1,a.push(e))});M(function(){for(var b=a.length;b--;)e[a[b]]&&!e[a[b]].isActive&&(e[a[b]].destroy(),delete e[a[b]])},e!==B&&g.hasRendered&&l?l:0)});n&&(n[n.isPlaced?"animate":"attr"]({d:this.getLinePath(n.strokeWidth())}),n.isPlaced=!0,n[m?"show":"hide"](m));r&&m&&(l=e.getTitlePosition(),w(l.y)?(r[r.isNew?"attr":"animate"](l),r.isNew=!1):(r.attr("y",
229
+ -9999),r.isNew=!0));u&&u.enabled&&e.stacking&&e.stacking.renderStackTotals();e.old={len:e.len,max:e.max,min:e.min,transA:e.transA,userMax:e.userMax,userMin:e.userMin};e.isDirty=!1;z(this,"afterRender")};d.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(b){b.render()}));this.series.forEach(function(b){b.isDirty=!0})};d.prototype.getKeepProps=function(){return this.keepProps||d.keepProps};d.prototype.destroy=function(e){var g=this,a=g.plotLinesAndBands,
230
+ l=this.eventOptions;z(this,"destroy",{keepEvents:e});e||r(g);[g.ticks,g.minorTicks,g.alternateBands].forEach(function(b){I(b)});if(a)for(e=a.length;e--;)a[e].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(b){g[b]&&(g[b]=g[b].destroy())});for(var k in g.plotLinesAndBandsGroups)g.plotLinesAndBandsGroups[k]=g.plotLinesAndBandsGroups[k].destroy();b(g,function(b,e){-1===g.getKeepProps().indexOf(e)&&delete g[e]});this.eventOptions=l};d.prototype.drawCrosshair=
231
+ function(b,e){var g=this.crosshair,a=B(g&&g.snap,!0),l=this.chart,k,c=this.cross;z(this,"drawCrosshair",{e:b,point:e});b||(b=this.cross&&this.cross.e);if(g&&!1!==(C(e)||!a)){a?C(e)&&(k=B("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):k=b&&(this.horiz?b.chartX-this.pos:this.len-b.chartY+this.pos);if(C(k)){var r={value:e&&(this.isXAxis?e.x:B(e.stackY,e.y)),translatedValue:k};l.polar&&v(r,{isCrosshair:!0,chartX:b&&b.chartX,chartY:b&&b.chartY,point:e});r=this.getPlotLinePath(r)||
232
+ null}if(!C(r)){this.hideCrosshair();return}a=this.categories&&!this.isRadial;c||(this.cross=c=l.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(a?"category ":"thin ")+(g.className||"")).attr({zIndex:B(g.zIndex,2)}).add(),l.styledMode||(c.attr({stroke:g.color||(a?A.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":B(g.width,1)}).css({"pointer-events":"none"}),g.dashStyle&&c.attr({dashstyle:g.dashStyle})));c.show().attr({d:r});a&&!g.width&&c.attr({"stroke-width":this.transA});
233
+ this.cross.e=b}else this.hideCrosshair();z(this,"afterDrawCrosshair",{e:b,point:e})};d.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();z(this,"afterHideCrosshair")};d.prototype.hasVerticalPanning=function(){var b=this.chart.options.chart.panning;return!!(b&&b.enabled&&/y/.test(b.type))};d.prototype.validatePositiveValue=function(b){return w(b)&&0<b};d.prototype.update=function(b,g){var a=this.chart;b=e(this.userOptions,b);this.destroy(!0);this.init(a,b);a.isDirtyBox=!0;B(g,!0)&&a.redraw()};
234
+ d.prototype.remove=function(b){for(var e=this.chart,g=this.coll,a=this.series,l=a.length;l--;)a[l]&&a[l].remove(!1);L(e.axes,this);L(e[g],this);e[g].forEach(function(b,e){b.options.index=b.userOptions.index=e});this.destroy();e.isDirtyBox=!0;B(b,!0)&&e.redraw()};d.prototype.setTitle=function(b,e){this.update({title:b},e)};d.prototype.setCategories=function(b,e){this.update({categories:b},e)};d.defaultOptions=h.defaultXAxisOptions;d.keepProps="extKey hcEvents names series userMax userMin".split(" ");
235
+ return d}();"";return d});N(h,"Core/Axis/DateTimeAxis.js",[h["Core/Utilities.js"]],function(d){var h=d.addEvent,A=d.getMagnitude,F=d.normalizeTickInterval,t=d.timeUnits,G;(function(d){function y(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function q(c){"datetime"!==c.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new f(this))}var p=[];d.compose=function(c){-1===p.indexOf(c)&&(p.push(c),c.keepProps.push("dateTime"),c.prototype.getTimeTicks=y,h(c,"init",
236
+ q));return c};var f=function(){function c(a){this.axis=a}c.prototype.normalizeTimeTickInterval=function(a,c){var f=c||[["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]];c=f[f.length-1];var d=t[c[0]],n=c[1],p;for(p=0;p<f.length&&!(c=f[p],d=t[c[0]],n=c[1],f[p+1]&&a<=(d*n[n.length-1]+t[f[p+1][0]])/2);p++);d===t.year&&a<5*d&&(n=[1,2,5]);a=F(a/d,n,"year"===c[0]?
237
+ Math.max(A(a/d),1):1);return{unitRange:d,count:a,unitName:c[0]}};c.prototype.getXDateFormat=function(a,c){var f=this.axis;return f.closestPointRange?f.chart.time.getDateFormat(f.closestPointRange,a,f.options.startOfWeek,c)||c.year:c.day};return c}();d.Additions=f})(G||(G={}));return G});N(h,"Core/Axis/LogarithmicAxis.js",[h["Core/Utilities.js"]],function(d){var h=d.addEvent,A=d.getMagnitude,F=d.normalizeTickInterval,t=d.pick,G;(function(d){function y(c){var a=this.logarithmic;"logarithmic"!==c.userOptions.type?
238
+ this.logarithmic=void 0:a||(this.logarithmic=new f(this))}function q(){var c=this.logarithmic;c&&(this.lin2val=function(a){return c.lin2log(a)},this.val2lin=function(a){return c.log2lin(a)})}var p=[];d.compose=function(c){-1===p.indexOf(c)&&(p.push(c),c.keepProps.push("logarithmic"),h(c,"init",y),h(c,"afterInit",q));return c};var f=function(){function c(a){this.axis=a}c.prototype.getLogTickPositions=function(a,c,f,d){var n=this.axis,m=n.len,p=n.options,h=[];d||(this.minorAutoInterval=void 0);if(.5<=
239
+ a)a=Math.round(a),h=n.getLinearTickPositions(a,c,f);else if(.08<=a){var v=Math.floor(c),z,u=p=void 0;for(m=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];v<f+1&&!u;v++){var k=m.length;for(z=0;z<k&&!u;z++){var w=this.log2lin(this.lin2log(v)*m[z]);w>c&&(!d||p<=f)&&"undefined"!==typeof p&&h.push(p);p>f&&(u=!0);p=w}}}else c=this.lin2log(c),f=this.lin2log(f),a=d?n.getMinorTickInterval():p.tickInterval,a=t("auto"===a?null:a,this.minorAutoInterval,p.tickPixelInterval/(d?5:1)*(f-c)/((d?m/n.tickPositions.length:
240
+ m)||1)),a=F(a,void 0,A(a)),h=n.getLinearTickPositions(a,c,f).map(this.log2lin),d||(this.minorAutoInterval=a/5);d||(n.tickInterval=a);return h};c.prototype.lin2log=function(a){return Math.pow(10,a)};c.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return c}();d.Additions=f})(G||(G={}));return G});N(h,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[h["Core/Utilities.js"]],function(d){var h=d.erase,A=d.extend,F=d.isNumber,t;(function(d){var t=[],y;d.compose=function(d,f){y||(y=d);-1===
241
+ t.indexOf(f)&&(t.push(f),A(f.prototype,q.prototype));return f};var q=function(){function d(){}d.prototype.getPlotBandPath=function(f,c,a){void 0===a&&(a=this.options);var d=this.getPlotLinePath({value:c,force:!0,acrossPanes:a.acrossPanes}),m=[],p=this.horiz;c=!F(this.min)||!F(this.max)||f<this.min&&c<this.min||f>this.max&&c>this.max;f=this.getPlotLinePath({value:f,force:!0,acrossPanes:a.acrossPanes});a=1;if(f&&d){if(c){var h=f.toString()===d.toString();a=0}for(c=0;c<f.length;c+=2){var q=f[c],L=f[c+
242
+ 1],K=d[c],v=d[c+1];"M"!==q[0]&&"L"!==q[0]||"M"!==L[0]&&"L"!==L[0]||"M"!==K[0]&&"L"!==K[0]||"M"!==v[0]&&"L"!==v[0]||(p&&K[1]===q[1]?(K[1]+=a,v[1]+=a):p||K[2]!==q[2]||(K[2]+=a,v[2]+=a),m.push(["M",q[1],q[2]],["L",L[1],L[2]],["L",v[1],v[2]],["L",K[1],K[2]],["Z"]));m.isFlat=h}}return m};d.prototype.addPlotBand=function(f){return this.addPlotBandOrLine(f,"plotBands")};d.prototype.addPlotLine=function(f){return this.addPlotBandOrLine(f,"plotLines")};d.prototype.addPlotBandOrLine=function(f,c){var a=this,
243
+ d=this.userOptions,m=new y(this,f);this.visible&&(m=m.render());if(m){this._addedPlotLB||(this._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||[]).forEach(function(c){a.addPlotBandOrLine(c)}));if(c){var p=d[c]||[];p.push(f);d[c]=p}this.plotLinesAndBands.push(m)}return m};d.prototype.removePlotBandOrLine=function(f){var c=this.plotLinesAndBands,a=this.options,d=this.userOptions;if(c){for(var m=c.length;m--;)c[m].id===f&&c[m].destroy();[a.plotLines||[],d.plotLines||[],a.plotBands||[],d.plotBands||
244
+ []].forEach(function(a){for(m=a.length;m--;)(a[m]||{}).id===f&&h(a,a[m])})}};d.prototype.removePlotBand=function(f){this.removePlotBandOrLine(f)};d.prototype.removePlotLine=function(f){this.removePlotBandOrLine(f)};return d}()})(t||(t={}));return t});N(h,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[h["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],h["Core/Utilities.js"]],function(d,h){var A=h.arrayMax,E=h.arrayMin,t=h.defined,G=h.destroyObjectProperties,H=h.erase,y=h.fireEvent,q=h.merge,p=h.objectEach,
245
+ f=h.pick;h=function(){function c(a,c){this.axis=a;c&&(this.options=c,this.id=c.id)}c.compose=function(a){return d.compose(c,a)};c.prototype.render=function(){y(this,"render");var a=this,c=a.axis,d=c.horiz,h=c.logarithmic,C=a.options,I=C.color,L=f(C.zIndex,0),K=C.events,v={},z=c.chart.renderer,u=C.label,k=a.label,w=C.to,l=C.from,e=C.value,g=a.svgElem,b=[],B=t(l)&&t(w);b=t(e);var J=!g,r={"class":"highcharts-plot-"+(B?"band ":"line ")+(C.className||"")},x=B?"bands":"lines";h&&(l=h.log2lin(l),w=h.log2lin(w),
246
+ e=h.log2lin(e));c.chart.styledMode||(b?(r.stroke=I||"#999999",r["stroke-width"]=f(C.width,1),C.dashStyle&&(r.dashstyle=C.dashStyle)):B&&(r.fill=I||"#e6ebf5",C.borderWidth&&(r.stroke=C.borderColor,r["stroke-width"]=C.borderWidth)));v.zIndex=L;x+="-"+L;(h=c.plotLinesAndBandsGroups[x])||(c.plotLinesAndBandsGroups[x]=h=z.g("plot-"+x).attr(v).add());J&&(a.svgElem=g=z.path().attr(r).add(h));if(b)b=c.getPlotLinePath({value:e,lineWidth:g.strokeWidth(),acrossPanes:C.acrossPanes});else if(B)b=c.getPlotBandPath(l,
247
+ w,C);else return;!a.eventsAdded&&K&&(p(K,function(b,e){g.on(e,function(b){K[e].apply(a,[b])})}),a.eventsAdded=!0);(J||!g.d)&&b&&b.length?g.attr({d:b}):g&&(b?(g.show(!0),g.animate({d:b})):g.d&&(g.hide(),k&&(a.label=k=k.destroy())));u&&(t(u.text)||t(u.formatter))&&b&&b.length&&0<c.width&&0<c.height&&!b.isFlat?(u=q({align:d&&B&&"center",x:d?!B&&4:10,verticalAlign:!d&&B&&"middle",y:d?B?16:10:B?6:-4,rotation:d&&!B&&90},u),this.renderLabel(u,b,B,L)):k&&k.hide();return a};c.prototype.renderLabel=function(a,
248
+ c,f,d){var n=this.axis,m=n.chart.renderer,p=this.label;p||(this.label=p=m.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(f?"band":"line")+"-label "+(a.className||""),zIndex:d}).add(),n.chart.styledMode||p.css(q({textOverflow:"ellipsis"},a.style)));d=c.xBounds||[c[0][1],c[1][1],f?c[2][1]:c[0][1]];c=c.yBounds||[c[0][2],c[1][2],f?c[2][2]:c[0][2]];f=E(d);m=E(c);p.align(a,!1,{x:f,y:m,width:A(d)-f,height:A(c)-m});p.alignValue&&"left"!==
249
+ p.alignValue||p.css({width:(90===p.rotation?n.height-(p.alignAttr.y-n.top):n.width-(p.alignAttr.x-n.left))+"px"});p.show(!0)};c.prototype.getLabelText=function(a){return t(a.formatter)?a.formatter.call(this):a.text};c.prototype.destroy=function(){H(this.axis.plotLinesAndBands,this);delete this.axis;G(this)};return c}();"";"";return h});N(h,"Core/Tooltip.js",[h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Renderer/RendererUtilities.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Utilities.js"]],
250
+ function(d,h,A,F,t){var E=d.format,H=h.doc,y=A.distribute,q=t.addEvent,p=t.clamp,f=t.css,c=t.defined,a=t.discardElement,n=t.extend,m=t.fireEvent,D=t.isArray,C=t.isNumber,I=t.isString,L=t.merge,K=t.pick,v=t.splat,z=t.syncTimeout;d=function(){function d(a,c){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,c)}d.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",
251
+ attributes:{id:"drop-shadow-"+a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};d.prototype.bodyFormatter=function(a){return a.map(function(a){var l=a.series.tooltipOptions;return(l[(a.point.formatPrefix||
252
+ "point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,l[(a.point.formatPrefix||"point")+"Format"]||"")})};d.prototype.cleanSplit=function(a){this.chart.series.forEach(function(c){var l=c&&c.tt;l&&(!l.isActive||a?c.tt=l.destroy():l.isActive=!1)})};d.prototype.defaultFormatter=function(a){var c=this.points||v(this);var l=[a.tooltipFooterHeaderFormatter(c[0])];l=l.concat(a.bodyFormatter(c));l.push(a.tooltipFooterHeaderFormatter(c[0],!0));return l};d.prototype.destroy=function(){this.label&&(this.label=
253
+ this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),a(this.container));t.clearTimeout(this.hideTimer);t.clearTimeout(this.tooltipTimeout)};d.prototype.getAnchor=function(a,c){var l=this.chart,e=l.pointer,g=l.inverted,b=l.plotTop,k=l.plotLeft,f,r,d=0,u=0;a=v(a);this.followPointer&&c?("undefined"===typeof c.chartX&&(c=e.normalize(c)),e=[c.chartX-k,c.chartY-b]):a[0].tooltipPos?e=a[0].tooltipPos:(a.forEach(function(e){f=
254
+ e.series.yAxis;r=e.series.xAxis;d+=e.plotX||0;u+=e.plotLow?(e.plotLow+(e.plotHigh||0))/2:e.plotY||0;r&&f&&(g?(d+=b+l.plotHeight-r.len-r.pos,u+=k+l.plotWidth-f.len-f.pos):(d+=r.pos-k,u+=f.pos-b))}),d/=a.length,u/=a.length,e=[g?l.plotWidth-u:d,g?l.plotHeight-d:u],this.shared&&1<a.length&&c&&(g?e[0]=c.chartX-k:e[1]=c.chartY-b));return e.map(Math.round)};d.prototype.getLabel=function(){var a=this,d=this.chart.styledMode,l=this.options,e=this.split&&this.allowShared,g="tooltip"+(c(l.className)?" "+l.className:
255
+ ""),b=l.style.pointerEvents||(!this.followPointer&&l.stickOnContact?"auto":"none"),B=function(){a.inContact=!0},u=function(b){var e=a.chart.hoverSeries;a.inContact=a.shouldStickOnContact()&&a.chart.pointer.inClass(b.relatedTarget,"highcharts-tooltip");if(!a.inContact&&e&&e.onMouseOut)e.onMouseOut()},r,x=this.chart.renderer;if(a.label){var n=!a.label.hasClass("highcharts-label");(e&&!n||!e&&n)&&a.destroy()}if(!this.label){if(this.outside){n=this.chart.options.chart.style;var m=F.getRendererType();
256
+ this.container=r=h.doc.createElement("div");r.className="highcharts-tooltip-container";f(r,{position:"absolute",top:"1px",pointerEvents:b,zIndex:Math.max(this.options.style.zIndex||0,(n&&n.zIndex||0)+3)});q(r,"mouseenter",B);q(r,"mouseleave",u);h.doc.body.appendChild(r);this.renderer=x=new m(r,0,0,n,void 0,void 0,x.styledMode)}e?this.label=x.g(g):(this.label=x.label("",0,0,l.shape,void 0,void 0,l.useHTML,void 0,g).attr({padding:l.padding,r:l.borderRadius}),d||this.label.attr({fill:l.backgroundColor,
257
+ "stroke-width":l.borderWidth}).css(l.style).css({pointerEvents:b}).shadow(l.shadow));d&&l.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a.outside&&!a.split){var z=this.label,p=z.xSetter,v=z.ySetter;z.xSetter=function(b){p.call(z,a.distance);r.style.left=b+"px"};z.ySetter=function(b){v.call(z,a.distance);r.style.top=b+"px"}}this.label.on("mouseenter",B).on("mouseleave",u).attr({zIndex:8}).add()}return this.label};d.prototype.getPosition=function(a,
258
+ c,l){var e=this.chart,g=this.distance,b={},k=e.inverted&&l.h||0,f=this.outside,r=f?H.documentElement.clientWidth-2*g:e.chartWidth,d=f?Math.max(H.body.scrollHeight,H.documentElement.scrollHeight,H.body.offsetHeight,H.documentElement.offsetHeight,H.documentElement.clientHeight):e.chartHeight,u=e.pointer.getChartPosition(),w=function(b){var k="x"===b;return[b,k?r:d,k?a:c].concat(f?[k?a*u.scaleX:c*u.scaleY,k?u.left-g+(l.plotX+e.plotLeft)*u.scaleX:u.top-g+(l.plotY+e.plotTop)*u.scaleY,0,k?r:d]:[k?a:c,k?
259
+ l.plotX+e.plotLeft:l.plotY+e.plotTop,k?e.plotLeft:e.plotTop,k?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},n=w("y"),m=w("x"),z;w=!!l.negative;!e.polar&&e.hoverSeries&&e.hoverSeries.yAxis&&e.hoverSeries.yAxis.reversed&&(w=!w);var p=!this.followPointer&&K(l.ttBelow,!e.inverted===w),v=function(e,a,l,c,r,d,x){var B=f?"y"===e?g*u.scaleY:g*u.scaleX:g,w=(l-c)/2,J=c<r-g,n=r+g+c<a,m=r-B-l+w;r=r+B-w;if(p&&n)b[e]=r;else if(!p&&J)b[e]=m;else if(J)b[e]=Math.min(x-c,0>m-k?m:m-k);else if(n)b[e]=Math.max(d,r+
260
+ k+l>a?r:r+k);else return!1},h=function(e,a,l,c,k){var r;k<g||k>a-g?r=!1:b[e]=k<l/2?1:k>a-c/2?a-c-2:k-l/2;return r},Q=function(b){var e=n;n=m;m=e;z=b},q=function(){!1!==v.apply(0,n)?!1!==h.apply(0,m)||z||(Q(!0),q()):z?b.x=b.y=0:(Q(!0),q())};(e.inverted||1<this.len)&&Q();q();return b};d.prototype.hide=function(a){var c=this;t.clearTimeout(this.hideTimer);a=K(a,this.options.hideDelay);this.isHidden||(this.hideTimer=z(function(){c.getLabel().fadeOut(a?void 0:a);c.isHidden=!0},a))};d.prototype.init=function(a,
261
+ c){this.chart=a;this.options=c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=c.split&&!a.inverted&&!a.polar;this.shared=c.shared||this.split;this.outside=K(c.outside,!(!a.scrollablePixelsX&&!a.scrollablePixelsY))};d.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};d.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};d.prototype.move=function(a,c,l,e){var g=this,b=g.now,k=!1!==g.options.animation&&
262
+ !g.isHidden&&(1<Math.abs(a-b.x)||1<Math.abs(c-b.y)),f=g.followPointer||1<g.len;n(b,{x:k?(2*b.x+a)/3:a,y:k?(b.y+c)/2:c,anchorX:f?void 0:k?(2*b.anchorX+l)/3:l,anchorY:f?void 0:k?(b.anchorY+e)/2:e});g.getLabel().attr(b);g.drawTracker();k&&(t.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){g&&g.move(a,c,l,e)},32))};d.prototype.refresh=function(a,c){var l=this.chart,e=this.options,g=v(a),b=g[0],k=[],f=e.formatter||this.defaultFormatter,r=this.shared,d=l.styledMode,u={};if(e.enabled){t.clearTimeout(this.hideTimer);
263
+ this.allowShared=!(!D(a)&&a.series&&a.series.noSharedTooltip);this.followPointer=!this.split&&b.series.tooltipOptions.followPointer;a=this.getAnchor(a,c);var w=a[0],n=a[1];r&&this.allowShared?(l.pointer.applyInactiveState(g),g.forEach(function(b){b.setState("hover");k.push(b.getLabelConfig())}),u={x:b.category,y:b.y},u.points=k):u=b.getLabelConfig();this.len=k.length;f=f.call(u,this);r=b.series;this.distance=K(r.tooltipOptions.distance,16);if(!1===f)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(f,
264
+ g);else{var z=w,p=n;c&&l.pointer.isDirectTouch&&(z=c.chartX-l.plotLeft,p=c.chartY-l.plotTop);if(l.polar||!1===r.options.clip||g.some(function(b){return b.series.shouldShowTooltip(z,p)}))c=this.getLabel(),e.style.width&&!d||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:f&&f.join?f.join(""):f}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+K(b.colorIndex,r.colorIndex)),d||c.attr({stroke:e.borderColor||b.color||r.color||"#666666"}),this.updatePosition({plotX:w,
265
+ plotY:n,negative:b.negative,ttBelow:b.ttBelow,h:a[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}m(this,"refresh")}};d.prototype.renderSplit=function(a,c){function l(b,g,a,l,c){void 0===c&&(c=!0);a?(g=A?0:ea,b=p(b-l/2,R.left,R.right-l-(e.outside?E:0))):(g-=G,b=c?b-l-C:b+C,b=p(b,c?b:R.left,R.right));return{x:b,y:g}}var e=this,g=e.chart,b=e.chart,k=b.chartWidth,f=b.chartHeight,r=b.plotHeight,d=b.plotLeft,u=b.plotTop,w=b.pointer,m=b.scrollablePixelsY;
266
+ m=void 0===m?0:m;var z=b.scrollablePixelsX,v=b.scrollingContainer;v=void 0===v?{scrollLeft:0,scrollTop:0}:v;var h=v.scrollLeft;v=v.scrollTop;var q=b.styledMode,C=e.distance,Q=e.options,D=e.options.positioner,R=e.outside&&"number"!==typeof z?H.documentElement.getBoundingClientRect():{left:h,right:h+k,top:v,bottom:v+f},L=e.getLabel(),t=this.renderer||g.renderer,A=!(!g.xAxis[0]||!g.xAxis[0].opposite);g=w.getChartPosition();var E=g.left;g=g.top;var G=u+v,F=0,ea=r-m;I(a)&&(a=[!1,a]);a=a.slice(0,c.length+
267
+ 1).reduce(function(b,g,a){if(!1!==g&&""!==g){a=c[a-1]||{isHeader:!0,plotX:c[0].plotX,plotY:r,series:{}};var k=a.isHeader,f=k?e:a.series;g=g.toString();var x=f.tt,B=a.isHeader;var w=a.series;var J="highcharts-color-"+K(a.colorIndex,w.colorIndex,"none");x||(x={padding:Q.padding,r:Q.borderRadius},q||(x.fill=Q.backgroundColor,x["stroke-width"]=Q.borderWidth),x=t.label("",0,0,Q[B?"headerShape":"shape"],void 0,void 0,Q.useHTML).addClass((B?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+J).attr(x).add(L));
268
+ x.isActive=!0;x.attr({text:g});q||x.css(Q.style).shadow(Q.shadow).attr({stroke:Q.borderColor||a.color||w.color||"#333333"});f=f.tt=x;B=f.getBBox();g=B.width+f.strokeWidth();k&&(F=B.height,ea+=F,A&&(G-=F));w=a.plotX;w=void 0===w?0:w;J=a.plotY;J=void 0===J?0:J;x=a.series;if(a.isHeader){w=d+w;var n=u+r/2}else{var m=x.xAxis,z=x.yAxis;w=m.pos+p(w,-C,m.len+C);x.shouldShowTooltip(0,z.pos-u+J,{ignoreX:!0})&&(n=z.pos+J)}w=p(w,R.left-C,R.right+C);"number"===typeof n?(B=B.height+1,J=D?D.call(e,g,B,a):l(w,n,
269
+ k,g),b.push({align:D?0:void 0,anchorX:w,anchorY:n,boxWidth:g,point:a,rank:K(J.rank,k?1:0),size:B,target:J.y,tt:f,x:J.x})):f.isActive=!1}return b},[]);!D&&a.some(function(b){var g=(e.outside?E:0)+b.anchorX;return g<R.left&&g+b.boxWidth<R.right?!0:g<E-R.left+b.boxWidth&&R.right-g>g})&&(a=a.map(function(b){var e=l(b.anchorX,b.anchorY,b.point.isHeader,b.boxWidth,!1);return n(b,{target:e.y,x:e.x})}));e.cleanSplit();y(a,ea);var N=E,Y=E;a.forEach(function(b){var g=b.x,a=b.boxWidth;b=b.isHeader;b||(e.outside&&
270
+ E+g<N&&(N=E+g),!b&&e.outside&&N+a>Y&&(Y=E+g))});a.forEach(function(b){var g=b.x,a=b.anchorX,l=b.pos,c=b.point.isHeader;l={visibility:"undefined"===typeof l?"hidden":"inherit",x:g,y:l+G,anchorX:a,anchorY:b.anchorY};if(e.outside&&g<a){var k=E-N;0<k&&(c||(l.x=g+k,l.anchorX=a+k),c&&(l.x=(Y-N)/2,l.anchorX=a+k))}b.tt.attr(l)});a=e.container;m=e.renderer;e.outside&&a&&m&&(b=L.getBBox(),m.setSize(b.width+b.x,b.height+b.y,!1),a.style.left=N+"px",a.style.top=g+"px")};d.prototype.drawTracker=function(){if(this.followPointer||
271
+ !this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var a=this.chart,c=this.label,l=this.shared?a.hoverPoints:a.hoverPoint;if(c&&l){var e={x:0,y:0,width:0,height:0};l=this.getAnchor(l);var g=c.getBBox();l[0]+=a.plotLeft-c.translateX;l[1]+=a.plotTop-c.translateY;e.x=Math.min(0,l[0]);e.y=Math.min(0,l[1]);e.width=0>l[0]?Math.max(Math.abs(l[0]),g.width-l[0]):Math.max(Math.abs(l[0]),g.width);e.height=0>l[1]?Math.max(Math.abs(l[1]),g.height-Math.abs(l[1])):Math.max(Math.abs(l[1]),g.height);
272
+ this.tracker?this.tracker.attr(e):(this.tracker=c.renderer.rect(e).addClass("highcharts-tracker").add(c),a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};d.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};d.prototype.tooltipFooterHeaderFormatter=function(a,c){var l=a.series,e=l.tooltipOptions,g=l.xAxis,b=g&&g.dateTime;g={isFooter:c,
273
+ labelConfig:a};var k=e.xDateFormat,f=e[c?"footerFormat":"headerFormat"];m(this,"headerFormatter",g,function(g){b&&!k&&C(a.key)&&(k=b.getXDateFormat(a.key,e.dateTimeLabelFormats));b&&k&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(b){f=f.replace("{point."+b+"}","{point."+b+":"+k+"}")});l.chart.styledMode&&(f=this.styledModeFormat(f));g.text=E(f,{point:a,series:l},this.chart)});return g.text};d.prototype.update=function(a){this.destroy();L(!0,this.chart.options.tooltip.userOptions,a);
274
+ this.init(this.chart,L(!0,this.options,a))};d.prototype.updatePosition=function(a){var c=this.chart,l=this.options,e=c.pointer,g=this.getLabel();e=e.getChartPosition();var b=(l.positioner||this.getPosition).call(this,g.width,g.height,a),k=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;if(this.outside){l=l.borderWidth+2*this.distance;this.renderer.setSize(g.width+l,g.height+l,!1);if(1!==e.scaleX||1!==e.scaleY)f(this.container,{transform:"scale("+e.scaleX+", "+e.scaleY+")"}),k*=e.scaleX,a*=e.scaleY;k+=e.left-
275
+ b.x;a+=e.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),k,a)};return d}();"";return d});N(h,"Core/Series/Point.js",[h["Core/Renderer/HTML/AST.js"],h["Core/Animation/AnimationUtilities.js"],h["Core/DefaultOptions.js"],h["Core/FormatUtilities.js"],h["Core/Utilities.js"]],function(d,h,A,F,t){var E=h.animObject,H=A.defaultOptions,y=F.format,q=t.addEvent,p=t.defined,f=t.erase,c=t.extend,a=t.fireEvent,n=t.getNestedProperty,m=t.isArray,D=t.isFunction,C=t.isNumber,I=t.isObject,L=t.merge,K=t.objectEach,
276
+ v=t.pick,z=t.syncTimeout,u=t.removeEvent,k=t.uniqueKey;h=function(){function w(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}w.prototype.animateBeforeDestroy=function(){var a=this,e={x:a.startXPos,opacity:0},g=a.getGraphicalProps();g.singular.forEach(function(b){a[b]=a[b].animate("dataLabel"===b?{x:a[b].startXPos,y:a[b].startYPos,
277
+ opacity:0}:e)});g.plural.forEach(function(b){a[b].forEach(function(b){b.element&&b.animate(c({x:a.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})};w.prototype.applyOptions=function(a,e){var g=this.series,b=g.options.pointValKey||g.pointValKey;a=w.prototype.optionsToObject.call(this,a);c(this,a);this.options=this.options?c(this.options,a):a;a.group&&delete this.group;a.dataLabels&&delete this.dataLabels;b&&(this.y=w.prototype.getNestedProperty.call(this,b));this.formatPrefix=(this.isNull=
278
+ v(this.isValid&&!this.isValid(),null===this.x||!C(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof e&&g.xAxis&&g.xAxis.hasNames&&(this.x=g.xAxis.nameToX(this));"undefined"===typeof this.x&&g?this.x="undefined"===typeof e?g.autoIncrement():e:C(a.x)&&g.options.relativeXValue&&(this.x=g.autoIncrement(a.x));return this};w.prototype.destroy=function(){function a(){if(e.graphic||e.dataLabel||e.dataLabels)u(e),e.destroyElements();for(r in e)e[r]=null}var e=
279
+ this,g=e.series,b=g.chart;g=g.options.dataSorting;var c=b.hoverPoints,k=E(e.series.chart.renderer.globalAnimation),r;e.legendItem&&b.legend.destroyItem(e);c&&(e.setState(),f(c,e),c.length||(b.hoverPoints=null));if(e===b.hoverPoint)e.onMouseOut();g&&g.enabled?(this.animateBeforeDestroy(),z(a,k.duration)):a();b.pointCount--};w.prototype.destroyElements=function(a){var e=this;a=e.getGraphicalProps(a);a.singular.forEach(function(g){e[g]=e[g].destroy()});a.plural.forEach(function(g){e[g].forEach(function(b){b.element&&
280
+ b.destroy()});delete e[g]})};w.prototype.firePointEvent=function(l,e,g){var b=this,c=this.series.options;(c.point.events[l]||b.options&&b.options.events&&b.options.events[l])&&b.importEvents();"click"===l&&c.allowPointSelect&&(g=function(e){b.select&&b.select(null,e.ctrlKey||e.metaKey||e.shiftKey)});a(b,l,e,g)};w.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+
281
+ ("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};w.prototype.getGraphicalProps=function(a){var e=this,g=[],b={singular:[],plural:[]},l;a=a||{graphic:1,dataLabel:1};a.graphic&&g.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&g.push("dataLabel","dataLabelUpper","connector");for(l=g.length;l--;){var c=g[l];e[c]&&
282
+ b.singular.push(c)}["dataLabel","connector"].forEach(function(g){var l=g+"s";a[g]&&e[l]&&b.plural.push(l)});return b};w.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};w.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?n(a,this.options):this[a]};w.prototype.getZone=function(){var a=this.series,
283
+ e=a.zones;a=a.zoneAxis||"y";var g,b=0;for(g=e[b];this[a]>=g.value;)g=e[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=g&&g.color&&!this.options.color?g.color:this.nonZonedColor;return g};w.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};w.prototype.init=function(c,e,g){this.series=c;this.applyOptions(e,g);this.id=p(this.id)?this.id:k();this.resolveColor();c.chart.pointCount++;a(this,"afterInit");
284
+ return this};w.prototype.optionsToObject=function(a){var e=this.series,g=e.options.keys,b=g||e.pointArrayMap||["y"],c=b.length,l={},k=0,f=0;if(C(a)||null===a)l[b[0]]=a;else if(m(a))for(!g&&a.length>c&&(e=typeof a[0],"string"===e?l.name=a[0]:"number"===e&&(l.x=a[0]),k++);f<c;)g&&"undefined"===typeof a[k]||(0<b[f].indexOf(".")?w.prototype.setNestedProperty(l,a[k],b[f]):l[b[f]]=a[k]),k++,f++;else"object"===typeof a&&(l=a,a.dataLabels&&(e._hasPointLabels=!0),a.marker&&(e._hasPointMarkers=!0));return l};
285
+ w.prototype.resolveColor=function(){var a=this.series,e=a.chart.styledMode;var g=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!e){g=a.options.colors||a.chart.options.colors;var b=g[a.colorCounter];g=g.length}e=a.colorCounter;a.colorCounter++;a.colorCounter===g&&(a.colorCounter=0)}else e||(b=a.color),e=a.colorIndex;this.colorIndex=v(this.options.colorIndex,e);this.color=v(this.options.color,b)};w.prototype.setNestedProperty=function(a,e,g){g.split(".").reduce(function(b,
286
+ g,a,c){b[g]=c.length-1===a?e:I(b[g],!0)?b[g]:{};return b[g]},a);return a};w.prototype.tooltipFormatter=function(a){var e=this.series,g=e.tooltipOptions,b=v(g.valueDecimals,""),c=g.valuePrefix||"",l=g.valueSuffix||"";e.chart.styledMode&&(a=e.chart.tooltip.styledModeFormat(a));(e.pointArrayMap||["y"]).forEach(function(e){e="{point."+e;if(c||l)a=a.replace(RegExp(e+"}","g"),c+e+"}"+l);a=a.replace(RegExp(e+"}","g"),e+":,."+b+"f}")});return y(a,{point:this,series:this.series},e.chart)};w.prototype.update=
287
+ function(a,e,g,b){function c(){l.applyOptions(a);var b=f&&l.hasDummyGraphic;b=null===l.y?!b:b;f&&b&&(l.graphic=f.destroy(),delete l.hasDummyGraphic);I(a,!0)&&(f&&f.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(l.graphic=f.destroy()),a&&a.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.connector&&(l.connector=l.connector.destroy()));w=l.index;k.updateParallelArrays(l,w);u.data[w]=I(u.data[w],!0)||I(a,!0)?l.options:v(a,u.data[w]);k.isDirty=k.isDirtyData=!0;!k.fixedBox&&
288
+ k.hasCartesianSeries&&(d.isDirtyBox=!0);"point"===u.legendType&&(d.isDirtyLegend=!0);e&&d.redraw(g)}var l=this,k=l.series,f=l.graphic,d=k.chart,u=k.options,w;e=v(e,!0);!1===b?c():l.firePointEvent("update",{options:a},c)};w.prototype.remove=function(a,e){this.series.removePoint(this.series.data.indexOf(this),a,e)};w.prototype.select=function(a,e){var g=this,b=g.series,c=b.chart;this.selectedStaging=a=v(a,!g.selected);g.firePointEvent(a?"select":"unselect",{accumulate:e},function(){g.selected=g.options.selected=
289
+ a;b.options.data[b.data.indexOf(g)]=g.options;g.setState(a&&"select");e||c.getSelectedPoints().forEach(function(b){var e=b.series;b.selected&&b!==g&&(b.selected=b.options.selected=!1,e.options.data[e.data.indexOf(b)]=b.options,b.setState(c.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),b.firePointEvent("unselect"))})});delete this.selectedStaging};w.prototype.onMouseOver=function(a){var e=this.series.chart,g=e.pointer;a=a?g.normalize(a):g.getChartCoordinatesFromPoint(this,e.inverted);g.runPointActions(a,
290
+ this)};w.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(e){e.setState()});a.hoverPoints=a.hoverPoint=null};w.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,e=L(a.series.options.point,a.options).events;a.events=e;K(e,function(e,b){D(e)&&q(a,b,e)});this.hasImportedEvents=!0}};w.prototype.setState=function(l,e){var g=this.series,b=this.state,k=g.options.states[l||
291
+ "normal"]||{},f=H.plotOptions[g.type].marker&&g.options.marker,r=f&&!1===f.enabled,x=f&&f.states&&f.states[l||"normal"]||{},u=!1===x.enabled,w=this.marker||{},n=g.chart,m=f&&g.markerAttribs,z=g.halo,p,h=g.stateMarkerGraphic;l=l||"";if(!(l===this.state&&!e||this.selected&&"select"!==l||!1===k.enabled||l&&(u||r&&!1===x.enabled)||l&&w.states&&w.states[l]&&!1===w.states[l].enabled)){this.state=l;m&&(p=g.markerAttribs(this,l));if(this.graphic&&!this.hasDummyGraphic){b&&this.graphic.removeClass("highcharts-point-"+
292
+ b);l&&this.graphic.addClass("highcharts-point-"+l);if(!n.styledMode){var q=g.pointAttribs(this,l);var Q=v(n.options.chart.animation,k.animation);g.options.inactiveOtherPoints&&C(q.opacity)&&((this.dataLabels||[]).forEach(function(b){b&&b.animate({opacity:q.opacity},Q)}),this.connector&&this.connector.animate({opacity:q.opacity},Q));this.graphic.animate(q,Q)}p&&this.graphic.animate(p,v(n.options.chart.animation,x.animation,f.animation));h&&h.hide()}else{if(l&&x){b=w.symbol||g.symbol;h&&h.currentSymbol!==
293
+ b&&(h=h.destroy());if(p)if(h)h[e?"animate":"attr"]({x:p.x,y:p.y});else b&&(g.stateMarkerGraphic=h=n.renderer.symbol(b,p.x,p.y,p.width,p.height).add(g.markerGroup),h.currentSymbol=b);!n.styledMode&&h&&"inactive"!==this.state&&h.attr(g.pointAttribs(this,l))}h&&(h[l&&this.isInside?"show":"hide"](),h.element.point=this,h.addClass(this.getClassName(),!0))}k=k.halo;p=(h=this.graphic||h)&&h.visibility||"inherit";k&&k.size&&h&&"hidden"!==p&&!this.isCluster?(z||(g.halo=z=n.renderer.path().add(h.parentGroup)),
294
+ z.show()[e?"animate":"attr"]({d:this.haloPath(k.size)}),z.attr({"class":"highcharts-halo highcharts-color-"+v(this.colorIndex,g.colorIndex)+(this.className?" "+this.className:""),visibility:p,zIndex:-1}),z.point=this,n.styledMode||z.attr(c({fill:this.color||g.color,"fill-opacity":k.opacity},d.filterUserAttributes(k.attributes||{})))):z&&z.point&&z.point.haloPath&&z.animate({d:z.point.haloPath(0)},null,z.hide);a(this,"afterSetState",{state:l})}};w.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
295
+ a,this.plotY-a,2*a,2*a)};return w}();"";return h});N(h,"Core/Pointer.js",[h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Tooltip.js"],h["Core/Utilities.js"]],function(d,h,A,F){var t=d.parse,E=h.charts,H=h.noop,y=F.addEvent,q=F.attr,p=F.css,f=F.defined,c=F.extend,a=F.find,n=F.fireEvent,m=F.isNumber,D=F.isObject,C=F.objectEach,I=F.offset,L=F.pick,K=F.splat;d=function(){function d(a,c){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=
296
+ !1;this.options=c;this.init(a,c)}d.prototype.applyInactiveState=function(a){var c=[],k;(a||[]).forEach(function(a){k=a.series;c.push(k);k.linkedParent&&c.push(k.linkedParent);k.linkedSeries&&(c=c.concat(k.linkedSeries));k.navigatorSeries&&c.push(k.navigatorSeries)});this.chart.series.forEach(function(a){-1===c.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};d.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});
297
+ this.eventsToUnbind=[];h.chartCount||(d.unbindDocumentMouseUp&&(d.unbindDocumentMouseUp=d.unbindDocumentMouseUp()),d.unbindDocumentTouchEnd&&(d.unbindDocumentTouchEnd=d.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);C(a,function(c,k){a[k]=void 0})};d.prototype.drag=function(a){var c=this.chart,k=c.options.chart,f=this.zoomHor,l=this.zoomVert,e=c.plotLeft,g=c.plotTop,b=c.plotWidth,d=c.plotHeight,n=this.mouseDownX||0,r=this.mouseDownY||0,x=D(k.panning)?k.panning&&k.panning.enabled:k.panning,
298
+ m=k.panKey&&a[k.panKey+"Key"],z=a.chartX,p=a.chartY,h=this.selectionMarker;if(!h||!h.touch)if(z<e?z=e:z>e+b&&(z=e+b),p<g?p=g:p>g+d&&(p=g+d),this.hasDragged=Math.sqrt(Math.pow(n-z,2)+Math.pow(r-p,2)),10<this.hasDragged){var v=c.isInsidePlot(n-e,r-g,{visiblePlotOnly:!0});!c.hasCartesianSeries&&!c.mapView||!this.zoomX&&!this.zoomY||!v||m||h||(this.selectionMarker=h=c.renderer.rect(e,g,f?1:b,l?1:d,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),c.styledMode||h.attr({fill:k.selectionMarkerFill||
299
+ t("#335cad").setOpacity(.25).get()}));h&&f&&(f=z-n,h.attr({width:Math.abs(f),x:(0<f?0:f)+n}));h&&l&&(f=p-r,h.attr({height:Math.abs(f),y:(0<f?0:f)+r}));v&&!h&&x&&c.pan(a,k.panning)}};d.prototype.dragStart=function(a){var c=this.chart;c.mouseIsDown=a.type;c.cancelClick=!1;c.mouseDownX=this.mouseDownX=a.chartX;c.mouseDownY=this.mouseDownY=a.chartY};d.prototype.drop=function(a){var d=this,k=this.chart,w=this.hasPinched;if(this.selectionMarker){var l=this.selectionMarker,e=l.attr?l.attr("x"):l.x,g=l.attr?
300
+ l.attr("y"):l.y,b=l.attr?l.attr("width"):l.width,B=l.attr?l.attr("height"):l.height,z={originalEvent:a,xAxis:[],yAxis:[],x:e,y:g,width:b,height:B},r=!!k.mapView;if(this.hasDragged||w)k.axes.forEach(function(c){if(c.zoomEnabled&&f(c.min)&&(w||d[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])&&m(e)&&m(g)){var l=c.horiz,k="touchend"===a.type?c.minPixelPadding:0,x=c.toValue((l?e:g)+k);l=c.toValue((l?e+b:g+B)-k);z[c.coll].push({axis:c,min:Math.min(x,l),max:Math.max(x,l)});r=!0}}),r&&n(k,"selection",z,function(b){k.zoom(c(b,
301
+ w?{animation:!1}:null))});m(k.index)&&(this.selectionMarker=this.selectionMarker.destroy());w&&this.scaleGroups()}k&&m(k.index)&&(p(k.container,{cursor:k._cursor}),k.cancelClick=10<this.hasDragged,k.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};d.prototype.findNearestKDPoint=function(a,c,k){var f=this.chart,l=f.hoverPoint;f=f.tooltip;if(l&&f&&f.isStickyOnContact())return l;var e;a.forEach(function(a){var b=!(a.noSharedTooltip&&c)&&0>a.options.findNearestPointBy.indexOf("y");a=
302
+ a.searchPoint(k,b);if((b=D(a,!0)&&a.series)&&!(b=!D(e,!0))){b=e.distX-a.distX;var g=e.dist-a.dist,l=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);b=0<(0!==b&&c?b:0!==g?g:0!==l?l:e.series.index>a.series.index?-1:1)}b&&(e=a)});return e};d.prototype.getChartCoordinatesFromPoint=function(a,c){var k=a.series,f=k.xAxis;k=k.yAxis;var l=a.shapeArgs;if(f&&k){var e=L(a.clientX,a.plotX),g=a.plotY||0;a.isNode&&l&&m(l.x)&&m(l.y)&&(e=l.x,g=l.y);return c?{chartX:k.len+k.pos-g,chartY:f.len+
303
+ f.pos-e}:{chartX:e+f.pos,chartY:g+k.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}};d.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,c=I(a);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var k=a.offsetWidth;a=a.offsetHeight;2<k&&2<a&&(this.chartPosition.scaleX=c.width/k,this.chartPosition.scaleY=c.height/a);return this.chartPosition};d.prototype.getCoordinates=function(a){var c={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(k){c[k.isXAxis?
304
+ "xAxis":"yAxis"].push({axis:k,value:k.toValue(a[k.horiz?"chartX":"chartY"])})});return c};d.prototype.getHoverData=function(c,f,k,d,l,e){var g=[];d=!(!d||!c);var b={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:l};n(this,"beforeGetHoverData",b);var u=f&&!f.stickyTracking?[f]:k.filter(function(e){return b.filter?b.filter(e):e.visible&&!(!l&&e.directTouch)&&L(e.options.enableMouseTracking,!0)&&e.stickyTracking});var w=d||!e?c:this.findNearestKDPoint(u,l,e);f=w&&w.series;w&&(l&&!f.noSharedTooltip?
305
+ (u=k.filter(function(e){return b.filter?b.filter(e):e.visible&&!(!l&&e.directTouch)&&L(e.options.enableMouseTracking,!0)&&!e.noSharedTooltip}),u.forEach(function(b){var e=a(b.points,function(b){return b.x===w.x&&!b.isNull});D(e)&&(b.chart.isBoosting&&(e=b.getPoint(e)),g.push(e))})):g.push(w));b={hoverPoint:w};n(this,"afterGetHoverData",b);return{hoverPoint:b.hoverPoint,hoverSeries:f,hoverPoints:g}};d.prototype.getPointFromEvent=function(a){a=a.target;for(var c;a&&!c;)c=a.point,a=a.parentNode;return c};
306
+ d.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var c=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!c||!a||c.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+c.index)&&this.inClass(a,"highcharts-tracker")))c.onMouseOut()};d.prototype.inClass=function(a,c){for(var k;a;){if(k=q(a,"class")){if(-1!==k.indexOf(c))return!0;if(-1!==k.indexOf("highcharts-container"))return!1}a=a.parentNode}};d.prototype.init=function(a,c){this.options=
307
+ c;this.chart=a;this.runChartClick=!(!c.chart.events||!c.chart.events.click);this.pinchDown=[];this.lastValidTouch={};A&&(a.tooltip=new A(a,c.tooltip),this.followTouchMove=L(c.tooltip.followTouchMove,!0));this.setDOMEvents()};d.prototype.normalize=function(a,f){var k=a.touches,d=k?k.length?k.item(0):L(k.changedTouches,a.changedTouches)[0]:a;f||(f=this.getChartPosition());k=d.pageX-f.left;d=d.pageY-f.top;k/=f.scaleX;d/=f.scaleY;return c(a,{chartX:Math.round(k),chartY:Math.round(d)})};d.prototype.onContainerClick=
308
+ function(a){var f=this.chart,k=f.hoverPoint;a=this.normalize(a);var d=f.plotLeft,l=f.plotTop;f.cancelClick||(k&&this.inClass(a.target,"highcharts-tracker")?(n(k.series,"click",c(a,{point:k})),f.hoverPoint&&k.firePointEvent("click",a)):(c(a,this.getCoordinates(a)),f.isInsidePlot(a.chartX-d,a.chartY-l,{visiblePlotOnly:!0})&&n(f,"click",a)))};d.prototype.onContainerMouseDown=function(a){var c=1===((a.buttons||a.button)&1);a=this.normalize(a);if(h.isFirefox&&0!==a.button)this.onContainerMouseMove(a);
309
+ if("undefined"===typeof a.button||c)this.zoomOption(a),c&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};d.prototype.onContainerMouseLeave=function(a){var c=E[L(d.hoverChartIndex,-1)],k=this.chart.tooltip;k&&k.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),c&&(a.relatedTarget||a.toElement)&&(c.pointer.reset(),c.pointer.chartPosition=void 0),k&&!k.isHidden&&this.reset())};d.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};
310
+ d.prototype.onContainerMouseMove=function(a){var c=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===c.mouseIsDown||this.touchSelect(a))&&this.drag(a);c.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};d.prototype.onDocumentTouchEnd=function(a){var c=E[L(d.hoverChartIndex,
311
+ -1)];c&&c.pointer.drop(a)};d.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};d.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};d.prototype.onDocumentMouseMove=function(a){var c=this.chart,k=this.chartPosition;a=this.normalize(a,k);var f=c.tooltip;!k||f&&f.isStickyOnContact()||c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||
312
+ this.inClass(a.target,"highcharts-tracker")||this.reset()};d.prototype.onDocumentMouseUp=function(a){var c=E[L(d.hoverChartIndex,-1)];c&&c.pointer.drop(a)};d.prototype.pinch=function(a){var f=this,k=f.chart,d=f.pinchDown,l=a.touches||[],e=l.length,g=f.lastValidTouch,b=f.hasZoom,B={},m=1===e&&(f.inClass(a.target,"highcharts-tracker")&&k.runTrackerClick||f.runChartClick),r={},x=f.selectionMarker;1<e?f.initiated=!0:1===e&&this.followTouchMove&&(f.initiated=!1);b&&f.initiated&&!m&&!1!==a.cancelable&&
313
+ a.preventDefault();[].map.call(l,function(b){return f.normalize(b)});"touchstart"===a.type?([].forEach.call(l,function(b,e){d[e]={chartX:b.chartX,chartY:b.chartY}}),g.x=[d[0].chartX,d[1]&&d[1].chartX],g.y=[d[0].chartY,d[1]&&d[1].chartY],k.axes.forEach(function(b){if(b.zoomEnabled){var e=k.bounds[b.horiz?"h":"v"],a=b.minPixelPadding,g=b.toPixels(Math.min(L(b.options.min,b.dataMin),b.dataMin)),c=b.toPixels(Math.max(L(b.options.max,b.dataMax),b.dataMax)),l=Math.max(g,c);e.min=Math.min(b.pos,Math.min(g,
314
+ c)-a);e.max=Math.max(b.pos+b.len,l+a)}}),f.res=!0):f.followTouchMove&&1===e?this.runPointActions(f.normalize(a)):d.length&&(n(k,"touchpan",{originalEvent:a},function(){x||(f.selectionMarker=x=c({destroy:H,touch:!0},k.plotBox));f.pinchTranslate(d,l,B,x,r,g);f.hasPinched=b;f.scaleGroups(B,r)}),f.res&&(f.res=!1,this.reset(!1,0)))};d.prototype.pinchTranslate=function(a,c,k,f,l,e){this.zoomHor&&this.pinchTranslateDirection(!0,a,c,k,f,l,e);this.zoomVert&&this.pinchTranslateDirection(!1,a,c,k,f,l,e)};d.prototype.pinchTranslateDirection=
315
+ function(a,c,k,f,l,e,g,b){var d=this.chart,n=a?"x":"y",r=a?"X":"Y",x="chart"+r,m=a?"width":"height",w=d["plot"+(a?"Left":"Top")],u=d.inverted,p=d.bounds[a?"h":"v"],h=1===c.length,v=c[0][x],z=!h&&c[1][x];c=function(){"number"===typeof I&&20<Math.abs(v-z)&&(C=b||Math.abs(R-I)/Math.abs(v-z));Q=(w-R)/C+v;q=d["plot"+(a?"Width":"Height")]/C};var q,Q,C=b||1,R=k[0][x],I=!h&&k[1][x];c();k=Q;if(k<p.min){k=p.min;var D=!0}else k+q>p.max&&(k=p.max-q,D=!0);D?(R-=.8*(R-g[n][0]),"number"===typeof I&&(I-=.8*(I-g[n][1])),
316
+ c()):g[n]=[R,I];u||(e[n]=Q-w,e[m]=q);e=u?1/C:C;l[m]=q;l[n]=k;f[u?a?"scaleY":"scaleX":"scale"+r]=C;f["translate"+r]=e*w+(R-e*v)};d.prototype.reset=function(a,c){var k=this.chart,f=k.hoverSeries,l=k.hoverPoint,e=k.hoverPoints,g=k.tooltip,b=g&&g.shared?e:l;a&&b&&K(b).forEach(function(b){b.series.isCartesian&&"undefined"===typeof b.plotX&&(a=!1)});if(a)g&&b&&K(b).length&&(g.refresh(b),g.shared&&e?e.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,
317
+ b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):l&&(l.setState(l.state,!0),k.axes.forEach(function(b){b.crosshair&&l.series[b.coll]===b&&b.drawCrosshair(null,l)})));else{if(l)l.onMouseOut();e&&e.forEach(function(b){b.setState()});if(f)f.onMouseOut();g&&g.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());k.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=k.hoverPoints=k.hoverPoint=null}};d.prototype.runPointActions=function(c,f){var k=this.chart,
318
+ n=k.tooltip&&k.tooltip.options.enabled?k.tooltip:void 0,l=n?n.shared:!1,e=f||k.hoverPoint,g=e&&e.series||k.hoverSeries;f=this.getHoverData(e,g,k.series,(!c||"touchmove"!==c.type)&&(!!f||g&&g.directTouch&&this.isDirectTouch),l,c);e=f.hoverPoint;g=f.hoverSeries;var b=f.hoverPoints;f=g&&g.tooltipOptions.followPointer&&!g.tooltipOptions.split;l=l&&g&&!g.noSharedTooltip;if(e&&(e!==k.hoverPoint||n&&n.isHidden)){(k.hoverPoints||[]).forEach(function(a){-1===b.indexOf(a)&&a.setState()});if(k.hoverSeries!==
319
+ g)g.onMouseOver();this.applyInactiveState(b);(b||[]).forEach(function(b){b.setState("hover")});k.hoverPoint&&k.hoverPoint.firePointEvent("mouseOut");if(!e.series)return;k.hoverPoints=b;k.hoverPoint=e;e.firePointEvent("mouseOver");n&&n.refresh(l?b:e,c)}else f&&n&&!n.isHidden&&(e=n.getAnchor([{}],c),k.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:e[0],plotY:e[1]}));this.unDocMouseMove||(this.unDocMouseMove=y(k.container.ownerDocument,"mousemove",function(b){var a=E[d.hoverChartIndex];
320
+ if(a)a.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));k.axes.forEach(function(e){var g=L((e.crosshair||{}).snap,!0),l;g&&((l=k.hoverPoint)&&l.series[e.coll]===e||(l=a(b,function(b){return b.series[e.coll]===e})));l||!g?e.drawCrosshair(c,l):e.hideCrosshair()})};d.prototype.scaleGroups=function(a,c){var k=this.chart;k.series.forEach(function(f){var l=a||f.getPlotBox();f.group&&(f.xAxis&&f.xAxis.zoomEnabled||k.mapView)&&(f.group.attr(l),f.markerGroup&&(f.markerGroup.attr(l),
321
+ f.markerGroup.clip(c?k.clipRect:null)),f.dataLabelsGroup&&f.dataLabelsGroup.attr(l))});k.clipRect.attr(c||k.clipBox)};d.prototype.setDOMEvents=function(){var a=this,c=this.chart.container,k=c.ownerDocument;c.onmousedown=this.onContainerMouseDown.bind(this);c.onmousemove=this.onContainerMouseMove.bind(this);c.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(y(c,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(y(c,"mouseleave",this.onContainerMouseLeave.bind(this)));
322
+ d.unbindDocumentMouseUp||(d.unbindDocumentMouseUp=y(k,"mouseup",this.onDocumentMouseUp.bind(this)));for(var f=this.chart.renderTo.parentElement;f&&"BODY"!==f.tagName;)this.eventsToUnbind.push(y(f,"scroll",function(){delete a.chartPosition})),f=f.parentElement;h.hasTouch&&(this.eventsToUnbind.push(y(c,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(y(c,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),d.unbindDocumentTouchEnd||(d.unbindDocumentTouchEnd=
323
+ y(k,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};d.prototype.setHoverChartIndex=function(){var a=this.chart,c=h.charts[L(d.hoverChartIndex,-1)];if(c&&c!==a)c.pointer.onContainerMouseLeave({relatedTarget:!0});c&&c.mouseIsDown||(d.hoverChartIndex=a.index)};d.prototype.touch=function(a,c){var k=this.chart,f;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(f=k.isInsidePlot(a.chartX-k.plotLeft,a.chartY-k.plotTop,{visiblePlotOnly:!0}))&&!k.openMenu){c&&this.runPointActions(a);
324
+ if("touchmove"===a.type){c=this.pinchDown;var l=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-a.chartX,2)+Math.pow(c[0].chartY-a.chartY,2)):!1}L(l,!0)&&this.pinch(a)}else c&&this.reset();else 2===a.touches.length&&this.pinch(a)};d.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};d.prototype.zoomOption=function(a){var c=this.chart,k=c.options.chart;c=c.inverted;var f=k.zoomType||"";/touch/.test(a.type)&&(f=L(k.pinchType,f));this.zoomX=
325
+ a=/x/.test(f);this.zoomY=k=/y/.test(f);this.zoomHor=a&&!c||k&&c;this.zoomVert=k&&!c||a&&c;this.hasZoom=a||k};return d}();"";return d});N(h,"Core/MSPointer.js",[h["Core/Globals.js"],h["Core/Pointer.js"],h["Core/Utilities.js"]],function(d,h,A){function E(){var c=[];c.item=function(a){return this[a]};a(m,function(a){c.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return c}function t(a,c,f,d){var n=H[h.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!n||
326
+ (n=n.pointer,d(a),n[c]({type:f,target:a.currentTarget,preventDefault:q,touches:E()}))}var G=this&&this.__extends||function(){var a=function(c,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f])};return a(c,f)};return function(c,f){function d(){this.constructor=c}a(c,f);c.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}(),H=d.charts,y=d.doc,q=d.noop,p=d.win,f=A.addEvent,c=A.css,
327
+ a=A.objectEach,n=A.removeEvent,m={},D=!!p.PointerEvent;return function(a){function h(){return null!==a&&a.apply(this,arguments)||this}G(h,a);h.isRequired=function(){return!(d.hasTouch||!p.PointerEvent&&!p.MSPointerEvent)};h.prototype.batchMSEvents=function(a){a(this.chart.container,D?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,D?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(y,D?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};h.prototype.destroy=
328
+ function(){this.batchMSEvents(n);a.prototype.destroy.call(this)};h.prototype.init=function(f,d){a.prototype.init.call(this,f,d);this.hasZoom&&c(f.container,{"-ms-touch-action":"none","touch-action":"none"})};h.prototype.onContainerPointerDown=function(a){t(a,"onContainerTouchStart","touchstart",function(a){m[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};h.prototype.onContainerPointerMove=function(a){t(a,"onContainerTouchMove","touchmove",function(a){m[a.pointerId]={pageX:a.pageX,
329
+ pageY:a.pageY};m[a.pointerId].target||(m[a.pointerId].target=a.currentTarget)})};h.prototype.onDocumentPointerUp=function(a){t(a,"onDocumentTouchEnd","touchend",function(a){delete m[a.pointerId]})};h.prototype.setDOMEvents=function(){a.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(f)};return h}(h)});N(h,"Core/Legend/Legend.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Series/Point.js"],h["Core/Renderer/RendererUtilities.js"],
330
+ h["Core/Utilities.js"]],function(d,h,A,F,t,G){var E=d.animObject,y=d.setAnimation,q=h.format;d=A.isFirefox;var p=A.marginNames;A=A.win;var f=t.distribute,c=G.addEvent,a=G.createElement,n=G.css,m=G.defined,D=G.discardElement,C=G.find,I=G.fireEvent,L=G.isNumber,K=G.merge,v=G.pick,z=G.relativeLength,u=G.stableSort,k=G.syncTimeout;t=G.wrap;G=function(){function d(a,e){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=
331
+ this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,e)}d.prototype.init=function(a,e){this.chart=a;this.setOptions(e);e.enabled&&(this.render(),c(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),
332
+ this.proximate?this.unchartrender=c(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};d.prototype.setOptions=function(a){var e=v(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=K(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=e;this.initialItemY=e-5;this.symbolWidth=v(a.symbolWidth,
333
+ 16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};d.prototype.update=function(a,e){var g=this.chart;this.setOptions(K(!0,this.options,a));this.destroy();g.isDirtyLegend=g.isDirtyBox=!0;v(e,!0)&&g.redraw();I(this,"afterUpdate")};d.prototype.colorizeItem=function(a,e){a.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var g=this.options,b=a.legendItem,c=a.legendLine,l=a.legendSymbol,k=this.itemHiddenStyle.color;
334
+ g=e?g.itemStyle.color:k;var f=e?a.color||k:k,d=a.options&&a.options.marker,n={fill:f};b&&b.css({fill:g,color:g});c&&c.attr({stroke:f});l&&(d&&l.isMarker&&(n=a.pointAttribs(),e||(n.stroke=n.fill=k)),l.attr(n))}I(this,"afterColorizeItem",{item:a,visible:e})};d.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};d.prototype.positionItem=function(a){var e=this,g=this.options,b=g.symbolPadding,c=!g.rtl,l=a._legendItemPos;g=
335
+ l[0];l=l[1];var k=a.checkbox,f=a.legendGroup;f&&f.element&&(b={translateX:c?g:this.legendWidth-g-2*b-4,translateY:l},c=function(){I(e,"afterPositionItem",{item:a})},m(f.translateY)?f.animate(b,void 0,c):(f.attr(b),c()));k&&(k.x=g,k.y=l)};d.prototype.destroyItem=function(a){var e=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){a[e]&&(a[e]=a[e].destroy())});e&&D(a.checkbox)};d.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(e){["legendItem",
336
+ "legendGroup"].forEach(a,e)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};d.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,g=this.titleHeight;if(a){var b=a.translateY;this.allItems.forEach(function(c){var l=c.checkbox;if(l){var k=b+g+l.y+(this.scrollOffset||0)+3;n(l,{left:a.translateX+c.checkboxOffset+l.x-20+"px",top:k+"px",display:this.proximate||k>b-6&&k<b+e-6?"":"none"})}},this)}};
337
+ d.prototype.renderTitle=function(){var a=this.options,e=this.padding,g=a.title,b=0;g.text&&(this.title||(this.title=this.chart.renderer.label(g.text,e-3,e-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(g.style),this.title.add(this.group)),g.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),b=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};d.prototype.setText=function(a){var e=
338
+ this.options;a.legendItem.attr({text:e.labelFormat?q(e.labelFormat,a,this.chart):e.labelFormatter.call(a)})};d.prototype.renderItem=function(a){var e=this.chart,g=e.renderer,b=this.options,c=this.symbolWidth,k=b.symbolPadding||0,l=this.itemStyle,f=this.itemHiddenStyle,d="horizontal"===b.layout?v(b.itemDistance,20):0,n=!b.rtl,m=!a.series,p=!m&&a.series.drawLegendSymbol?a.series:a,h=p.options,u=this.createCheckboxForItem&&h&&h.showCheckbox,w=b.useHTML,q=a.options.className,Q=a.legendItem;h=c+k+d+(u?
339
+ 20:0);Q||(a.legendGroup=g.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+a.colorIndex+(q?" "+q:"")+(m?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=Q=g.text("",n?c+k:-k,this.baseline||0,w),e.styledMode||Q.css(K(a.visible?l:f)),Q.attr({align:n?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=g.fontMetrics(e.styledMode?12:l.fontSize,Q),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,Q.attr("y",this.baseline),
340
+ this.symbolHeight=b.symbolHeight||this.fontMetrics.f,b.squareSymbol&&(this.symbolWidth=v(b.symbolWidth,Math.max(this.symbolHeight,16)),h=this.symbolWidth+k+d+(u?20:0),n&&Q.attr("x",this.symbolWidth+k))),p.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,Q,w));u&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!e.styledMode&&l.width||Q.css({width:(b.itemWidth||this.widthOption||e.spacingBox.width)-h+"px"});this.setText(a);e=Q.getBBox();
341
+ g=this.fontMetrics&&this.fontMetrics.h||0;a.itemWidth=a.checkboxOffset=b.itemWidth||a.legendItemWidth||e.width+h;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||(e.height>1.5*g?e.height:g))};d.prototype.layoutItem=function(a){var e=this.options,g=this.padding,b="horizontal"===e.layout,c=a.itemHeight,k=this.itemMarginBottom,l=this.itemMarginTop,f=b?v(e.itemDistance,20):0,d=this.maxLegendWidth;e=e.alignColumns&&
342
+ this.totalItemWidth>d?this.maxItemWidth:a.itemWidth;b&&this.itemX-g+e>d&&(this.itemX=g,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+k),this.lastLineHeight=0);this.lastItemY=l+this.itemY+k;this.lastLineHeight=Math.max(c,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=e:(this.itemY+=l+c+k,this.lastLineHeight=c);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-g-(a.checkbox?0:f):e)+g,this.offsetWidth)};d.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(e){var g=
343
+ e&&e.options;e&&v(g.showInLegend,m(g.linkedTo)?!1:void 0,!0)&&(a=a.concat(e.legendItems||("point"===g.legendType?e.data:e)))});I(this,"afterGetAllItems",{allItems:a});return a};d.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};d.prototype.adjustMargins=function(a,e){var g=this.chart,b=this.options,c=this.getAlignment();c&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(k,
344
+ l){k.test(c)&&!m(a[l])&&(g[p[l]]=Math.max(g[p[l]],g.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*b[l%2?"x":"y"]+v(b.margin,12)+e[l]+(g.titleOffset[l]||0)))})};d.prototype.proximatePositions=function(){var a=this.chart,e=[],g="left"===this.options.align;this.allItems.forEach(function(b){var c;var k=g;if(b.yAxis){b.xAxis.options.reversed&&(k=!k);b.points&&(c=C(k?b.points:b.points.slice(0).reverse(),function(b){return L(b.plotY)}));k=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;
345
+ var l=b.yAxis.top-a.plotTop;b.visible?(c=c?c.plotY:b.yAxis.height,c+=l-.3*k):c=l+b.yAxis.height;e.push({target:c,size:k,item:b})}},this);f(e,a.plotHeight).forEach(function(b){b.item._legendItemPos&&(b.item._legendItemPos[1]=a.plotTop-a.spacing[0]+b.pos)})};d.prototype.render=function(){var a=this.chart,e=a.renderer,g=this.options,b=this.padding,c=this.getAllItems(),k=this.group,f=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=z(g.width,a.spacingBox.width-
346
+ b);var d=a.spacingBox.width-2*b-g.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(d/=2);this.maxLegendWidth=this.widthOption||d;k||(this.group=k=e.g("legend").addClass(g.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(k),this.scrollGroup=e.g().add(this.contentGroup));this.renderTitle();u(c,function(b,a){return(b.options&&b.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});g.reversed&&c.reverse();this.allItems=c;this.display=d=!!c.length;
347
+ this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;c.forEach(this.renderItem,this);c.forEach(this.layoutItem,this);c=(this.widthOption||this.offsetWidth)+b;var n=this.lastItemY+this.lastLineHeight+this.titleHeight;n=this.handleOverflow(n);n+=b;f||(this.box=f=e.rect().addClass("highcharts-legend-box").attr({r:g.borderRadius}).add(k),f.isNew=!0);a.styledMode||f.attr({stroke:g.borderColor,"stroke-width":g.borderWidth||0,fill:g.backgroundColor||"none"}).shadow(g.shadow);0<c&&
348
+ 0<n&&(f[f.isNew?"attr":"animate"](f.crisp.call({},{x:0,y:0,width:c,height:n},f.strokeWidth())),f.isNew=!1);f[d?"show":"hide"]();a.styledMode&&"none"===k.getStyle("display")&&(c=n=0);this.legendWidth=c;this.legendHeight=n;d&&this.align();this.proximate||this.positionItems();I(this,"afterRender")};d.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var e=this.chart,g=this.options,b=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?b+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&
349
+ 0<e.titleOffset[2]&&(b-=e.titleOffset[2]);b!==a.y&&(a=K(a,{y:b}));this.group.align(K(g,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":g.verticalAlign}),!0,a)};d.prototype.handleOverflow=function(a){var e=this,g=this.chart,b=g.renderer,c=this.options,k=c.y,f="top"===c.verticalAlign,l=this.padding,d=c.maxHeight,n=c.navigation,m=v(n.animation,!0),p=n.arrowSize||12,h=this.pages,u=this.allItems,w=function(b){"number"===typeof b?C.attr({height:b}):C&&(e.clipRect=C.destroy(),
350
+ e.contentGroup.clip());e.contentGroup.div&&(e.contentGroup.div.style.clip=b?"rect("+l+"px,9999px,"+(l+b)+"px,0)":"auto")},q=function(a){e[a]=b.circle(0,0,1.3*p).translate(p/2,p/2).add(R);g.styledMode||e[a].attr("fill","rgba(0,0,0,0.0001)");return e[a]},Q,z;k=g.spacingBox.height+(f?-k:k)-l;var R=this.nav,C=this.clipRect;"horizontal"!==c.layout||"middle"===c.verticalAlign||c.floating||(k/=2);d&&(k=Math.min(k,d));h.length=0;a&&0<k&&a>k&&!1!==n.enabled?(this.clipHeight=Q=Math.max(k-20-this.titleHeight-
351
+ l,0),this.currentPage=v(this.currentPage,1),this.fullHeight=a,u.forEach(function(b,a){var e=b._legendItemPos[1],g=Math.round(b.legendItem.getBBox().height),c=h.length;if(!c||e-h[c-1]>Q&&(z||e)!==h[c-1])h.push(z||e),c++;b.pageIx=c-1;z&&(u[a-1].pageIx=c-1);a===u.length-1&&e+g-h[c-1]>Q&&g<=Q&&(h.push(e),b.pageIx=c);e!==z&&(z=e)}),C||(C=e.clipRect=b.clipRect(0,l,9999,0),e.contentGroup.clip(C)),w(Q),R||(this.nav=R=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,p,p).add(R),q("upTracker").on("click",
352
+ function(){e.scroll(-1,m)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),g.styledMode||this.pager.css(n.style),this.pager.add(R),this.down=b.symbol("triangle-down",0,0,p,p).add(R),q("downTracker").on("click",function(){e.scroll(1,m)})),e.scroll(0),a=k):R&&(w(),this.nav=R.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};d.prototype.scroll=function(a,e){var g=this,b=this.chart,c=this.pages,f=c.length,l=this.clipHeight,d=this.options.navigation,n=this.pager,
353
+ m=this.padding,p=this.currentPage+a;p>f&&(p=f);0<p&&("undefined"!==typeof e&&y(e,b),this.nav.attr({translateX:m,translateY:l+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(b){b.attr({"class":1===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:p+"/"+f}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+this.pager.getBBox().width,"class":p===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},
354
+ this),b.styledMode||(this.up.attr({fill:1===p?d.inactiveColor:d.activeColor}),this.upTracker.css({cursor:1===p?"default":"pointer"}),this.down.attr({fill:p===f?d.inactiveColor:d.activeColor}),this.downTracker.css({cursor:p===f?"default":"pointer"})),this.scrollOffset=-c[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),a=E(v(e,b.renderer.globalAnimation,!0)),k(function(){I(g,"afterScroll",{currentPage:p})},a.duration))};d.prototype.setItemEvents=
355
+ function(a,e,g){var b=this,c=b.chart.renderer.boxWrapper,k=a instanceof F,f="highcharts-legend-"+(k?"point":"series")+"-active",l=b.chart.styledMode,d=function(e){b.allItems.forEach(function(b){a!==b&&[b].concat(b.linkedSeries||[]).forEach(function(b){b.setState(e,!k)})})};(g?[e,a.legendSymbol]:[a.legendGroup]).forEach(function(g){if(g)g.on("mouseover",function(){a.visible&&d("inactive");a.setState("hover");a.visible&&c.addClass(f);l||e.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||
356
+ e.css(K(a.visible?b.itemStyle:b.itemHiddenStyle));d("");c.removeClass(f);a.setState()}).on("click",function(b){var e=function(){a.setVisible&&a.setVisible();d(a.visible?"inactive":"")};c.removeClass(f);b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,e):I(a,"legendItemClick",b,e)})})};d.prototype.createCheckboxForItem=function(k){k.checkbox=a("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:k.selected,defaultChecked:k.selected},this.options.itemCheckboxStyle,
357
+ this.chart.container);c(k.checkbox,"click",function(a){I(k.series||k,"checkboxClick",{checked:a.target.checked,item:k},function(){k.select()})})};return d}();(/Trident\/7\.0/.test(A.navigator&&A.navigator.userAgent)||d)&&t(G.prototype,"positionItem",function(a,c){var e=this,g=function(){c._legendItemPos&&a.call(e,c)};g();e.bubbleLegend||setTimeout(g)});"";return G});N(h,"Core/Series/SeriesRegistry.js",[h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"]],
358
+ function(d,h,A,F){var t=h.defaultOptions,E=F.error,H=F.extendClass,y=F.merge,q;(function(p){function f(c,a){var f=t.plotOptions||{},d=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=A);a.prototype.type=c;d&&(f[c]=d);p.seriesTypes[c]=a}p.seriesTypes=d.seriesTypes;p.getSeries=function(c,a){void 0===a&&(a={});var f=c.options.chart;f=a.type||f.type||f.defaultSeriesType||"";var d=p.seriesTypes[f];p||E(17,!0,c,{missingModuleFor:f});f=new d;"function"===typeof f.init&&f.init(c,a);return f};
359
+ p.registerSeriesType=f;p.seriesType=function(c,a,d,m,h){var n=t.plotOptions||{};a=a||"";n[c]=y(n[a],d);f(c,H(p.seriesTypes[a]||function(){},m));p.seriesTypes[c].prototype.type=c;h&&(p.seriesTypes[c].prototype.pointClass=H(A,h));return p.seriesTypes[c]}})(q||(q={}));return q});N(h,"Core/Chart/Chart.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/FormatUtilities.js"],h["Core/Foundation.js"],h["Core/Globals.js"],h["Core/Legend/Legend.js"],h["Core/MSPointer.js"],h["Core/DefaultOptions.js"],
360
+ h["Core/Pointer.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Time.js"],h["Core/Utilities.js"],h["Core/Renderer/HTML/AST.js"]],function(d,h,A,F,t,G,H,y,q,p,f,c,a,n,m){var D=d.animate,C=d.animObject,I=d.setAnimation,L=A.numberFormat,K=F.registerEventOptions,v=t.charts,z=t.doc,u=t.marginNames,k=t.svg,w=t.win,l=y.defaultOptions,e=y.defaultTime,g=f.seriesTypes,b=n.addEvent,B=n.attr,J=n.cleanRecursively,r=n.createElement,x=
361
+ n.css,M=n.defined,X=n.discardElement,P=n.erase,O=n.error,W=n.extend,Z=n.find,E=n.fireEvent,aa=n.getStyle,Q=n.isArray,ba=n.isNumber,R=n.isObject,ca=n.isString,T=n.merge,U=n.objectEach,S=n.pick,da=n.pInt,ia=n.relativeLength,N=n.removeEvent,fa=n.splat,Y=n.syncTimeout,ja=n.uniqueKey;d=function(){function f(b,a,e){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=
362
+ this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b,a,e)}f.chart=function(b,a,e){return new f(b,a,e)};f.prototype.getArgs=function(b,a,e){ca(b)||b.nodeName?(this.renderTo=b,this.init(a,e)):this.init(b,a)};f.prototype.init=
363
+ function(b,e){var g=b.plotOptions||{};E(this,"init",{args:arguments},function(){var c=T(l,b),f=c.chart;U(c.plotOptions,function(b,a){R(b)&&(b.tooltip=g[a]&&T(g[a].tooltip)||void 0)});c.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=e;this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.time=b.time&&Object.keys(b.time).length?new a(b.time):t.time;
364
+ this.numberFormatter=f.numberFormatter||L;this.styledMode=f.styledMode;this.hasCartesianSeries=f.showAxes;this.index=v.length;v.push(this);t.chartCount++;K(this,f);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;E(this,"afterInit");this.firstRender()})};f.prototype.initSeries=function(b){var a=this.options.chart;a=b.type||a.type||a.defaultSeriesType;var e=g[a];e||O(17,!0,this,{missingModuleFor:a});a=new e;"function"===typeof a.init&&a.init(this,b);return a};f.prototype.setSeriesData=
365
+ function(){this.getSeriesOrderByLinks().forEach(function(b){b.points||b.data||!b.enabledDataSorting||b.setData(b.options.data,!1)})};f.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(b,a){return b.linkedSeries.length||a.linkedSeries.length?a.linkedSeries.length-b.linkedSeries.length:0})};f.prototype.orderSeries=function(b){var a=this.series;b=b||0;for(var e=a.length;b<e;++b)a[b]&&(a[b].index=b,a[b].name=a[b].getName())};f.prototype.isInsidePlot=function(b,a,e){void 0===
366
+ e&&(e={});var g=this.inverted,c=this.plotBox,f=this.plotLeft,k=this.plotTop,l=this.scrollablePlotBox,d=0;var r=0;e.visiblePlotOnly&&this.scrollingContainer&&(r=this.scrollingContainer,d=r.scrollLeft,r=r.scrollTop);var x=e.series;c=e.visiblePlotOnly&&l||c;l=e.inverted?a:b;a=e.inverted?b:a;b={x:l,y:a,isInsidePlot:!0};if(!e.ignoreX){var n=x&&(g?x.yAxis:x.xAxis)||{pos:f,len:Infinity};l=e.paneCoordinates?n.pos+l:f+l;l>=Math.max(d+f,n.pos)&&l<=Math.min(d+f+c.width,n.pos+n.len)||(b.isInsidePlot=!1)}!e.ignoreY&&
367
+ b.isInsidePlot&&(g=x&&(g?x.xAxis:x.yAxis)||{pos:k,len:Infinity},e=e.paneCoordinates?g.pos+a:k+a,e>=Math.max(r+k,g.pos)&&e<=Math.min(r+k+c.height,g.pos+g.len)||(b.isInsidePlot=!1));E(this,"afterIsInsidePlot",b);return b.isInsidePlot};f.prototype.redraw=function(b){E(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],e=this.series,g=this.pointer,c=this.legend,f=this.userOptions.legend,k=this.renderer,l=k.isHidden(),d=[],r=this.isDirtyBox,x=this.isDirtyLegend;this.setResponsive&&
368
+ this.setResponsive(!1);I(this.hasRendered?b:!1,this);l&&this.temporaryDisplay();this.layOutTitles();for(b=e.length;b--;){var n=e[b];if(n.options.stacking||n.options.centerInCategory){var m=!0;if(n.isDirty){var p=!0;break}}}if(p)for(b=e.length;b--;)n=e[b],n.options.stacking&&(n.isDirty=!0);e.forEach(function(b){b.isDirty&&("point"===b.options.legendType?("function"===typeof b.updateTotals&&b.updateTotals(),x=!0):f&&(f.labelFormatter||f.labelFormat)&&(x=!0));b.isDirtyData&&E(b,"updatedData")});x&&c&&
369
+ c.options.enabled&&(c.render(),this.isDirtyLegend=!1);m&&this.getStacks();a.forEach(function(b){b.updateNames();b.setScale()});this.getMargins();a.forEach(function(b){b.isDirty&&(r=!0)});a.forEach(function(b){var a=b.min+","+b.max;b.extKey!==a&&(b.extKey=a,d.push(function(){E(b,"afterSetExtremes",W(b.eventArgs,b.getExtremes()));delete b.eventArgs}));(r||m)&&b.redraw()});r&&this.drawChartBox();E(this,"predraw");e.forEach(function(b){(r||b.isDirty)&&b.visible&&b.redraw();b.isDirtyData=!1});g&&g.reset(!0);
370
+ k.draw();E(this,"redraw");E(this,"render");l&&this.temporaryDisplay(!0);d.forEach(function(b){b.call()})};f.prototype.get=function(b){function a(a){return a.id===b||a.options&&a.options.id===b}for(var e=this.series,g=Z(this.axes,a)||Z(this.series,a),c=0;!g&&c<e.length;c++)g=Z(e[c].points||[],a);return g};f.prototype.getAxes=function(){var b=this,a=this.options,e=a.xAxis=fa(a.xAxis||{});a=a.yAxis=fa(a.yAxis||{});E(this,"getAxes");e.forEach(function(b,a){b.index=a;b.isX=!0});a.forEach(function(b,a){b.index=
371
+ a});e.concat(a).forEach(function(a){new h(b,a)});E(this,"afterGetAxes")};f.prototype.getSelectedPoints=function(){return this.series.reduce(function(b,a){a.getPointsCollection().forEach(function(a){S(a.selectedStaging,a.selected)&&b.push(a)});return b},[])};f.prototype.getSelectedSeries=function(){return this.series.filter(function(b){return b.selected})};f.prototype.setTitle=function(b,a,e){this.applyDescription("title",b);this.applyDescription("subtitle",a);this.applyDescription("caption",void 0);
372
+ this.layOutTitles(e)};f.prototype.applyDescription=function(b,a){var e=this,g="title"===b?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};g=this.options[b]=T(!this.styledMode&&{style:g},this.options[b],a);var c=this[b];c&&a&&(this[b]=c=c.destroy());g&&!c&&(c=this.renderer.text(g.text,0,0,g.useHTML).attr({align:g.align,"class":"highcharts-"+b,zIndex:g.zIndex||4}).add(),c.update=function(a){e[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b]](a)},this.styledMode||
373
+ c.css(g.style),this[b]=c)};f.prototype.layOutTitles=function(b){var a=[0,0,0],e=this.renderer,g=this.spacingBox;["title","subtitle","caption"].forEach(function(b){var c=this[b],f=this.options[b],k=f.verticalAlign||"top";b="title"===b?"top"===k?-3:0:"top"===k?a[0]+2:0;var l;if(c){this.styledMode||(l=f.style&&f.style.fontSize);l=e.fontMetrics(l,c).b;c.css({width:(f.width||g.width+(f.widthAdjust||0))+"px"});var d=Math.round(c.getBBox(f.useHTML).height);c.align(W({y:"bottom"===k?l:b+l,height:d},f),!1,
374
+ "spacingBox");f.floating||("top"===k?a[0]=Math.ceil(a[0]+d):"bottom"===k&&(a[2]=Math.ceil(a[2]+d)))}},this);a[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a[0]+=this.options.title.margin);a[2]&&"bottom"===this.options.caption.verticalAlign&&(a[2]+=this.options.caption.margin);var c=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a;E(this,"afterLayOutTitles");!this.isDirtyBox&&c&&(this.isDirtyBox=this.isDirtyLegend=c,this.hasRendered&&S(b,!0)&&this.isDirtyBox&&
375
+ this.redraw())};f.prototype.getChartSize=function(){var b=this.options.chart,a=b.width;b=b.height;var e=this.renderTo;M(a)||(this.containerWidth=aa(e,"width"));M(b)||(this.containerHeight=aa(e,"height"));this.chartWidth=Math.max(0,a||this.containerWidth||600);this.chartHeight=Math.max(0,ia(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};f.prototype.temporaryDisplay=function(b){var a=this.renderTo;if(b)for(;a&&a.style;)a.hcOrigStyle&&(x(a,a.hcOrigStyle),delete a.hcOrigStyle),
376
+ a.hcOrigDetached&&(z.body.removeChild(a),a.hcOrigDetached=!1),a=a.parentNode;else for(;a&&a.style;){z.body.contains(a)||a.parentNode||(a.hcOrigDetached=!0,z.body.appendChild(a));if("none"===aa(a,"display",!1)||a.hcOricDetached)a.hcOrigStyle={display:a.style.display,height:a.style.height,overflow:a.style.overflow},b={display:"block",overflow:"hidden"},a!==this.renderTo&&(b.height=0),x(a,b),a.offsetWidth||a.style.setProperty("display","block","important");a=a.parentNode;if(a===z.body)break}};f.prototype.setClassName=
377
+ function(b){this.container.className="highcharts-container "+(b||"")};f.prototype.getContainer=function(){var b=this.options,a=b.chart,e=ja(),g,f=this.renderTo;f||(this.renderTo=f=a.renderTo);ca(f)&&(this.renderTo=f=z.getElementById(f));f||O(13,!0,this);var l=da(B(f,"data-highcharts-chart"));ba(l)&&v[l]&&v[l].hasRendered&&v[l].destroy();B(f,"data-highcharts-chart",this.index);f.innerHTML=m.emptyHTML;a.skipClone||f.offsetWidth||this.temporaryDisplay();this.getChartSize();l=this.chartWidth;var d=this.chartHeight;
378
+ x(f,{overflow:"hidden"});this.styledMode||(g=W({position:"relative",overflow:"hidden",width:l+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},a.style||{}));this.container=e=r("div",{id:e},g,f);this._cursor=e.style.cursor;this.renderer=new (a.renderer||!k?p.getRendererType(a.renderer):c)(e,l,d,void 0,a.forExport,b.exporting&&b.exporting.allowHTML,this.styledMode);I(void 0,
379
+ this);this.setClassName(a.className);if(this.styledMode)for(var n in b.defs)this.renderer.definition(b.defs[n]);else this.renderer.setStyle(a.style);this.renderer.chartIndex=this.index;E(this,"afterGetContainer")};f.prototype.getMargins=function(b){var a=this.spacing,e=this.margin,g=this.titleOffset;this.resetMargins();g[0]&&!M(e[0])&&(this.plotTop=Math.max(this.plotTop,g[0]+a[0]));g[2]&&!M(e[2])&&(this.marginBottom=Math.max(this.marginBottom,g[2]+a[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(e,
380
+ a);E(this,"getMargins");b||this.getAxisMargins()};f.prototype.getAxisMargins=function(){var b=this,a=b.axisOffset=[0,0,0,0],e=b.colorAxis,g=b.margin,c=function(b){b.forEach(function(b){b.visible&&b.getOffset()})};b.hasCartesianSeries?c(b.axes):e&&e.length&&c(e);u.forEach(function(e,c){M(g[c])||(b[e]+=a[c])});b.setChartSize()};f.prototype.reflow=function(b){var a=this,e=a.options.chart,g=a.renderTo,c=M(e.width)&&M(e.height),f=e.width||aa(g,"width");e=e.height||aa(g,"height");g=b?b.target:w;delete a.pointer.chartPosition;
381
+ if(!c&&!a.isPrinting&&f&&e&&(g===w||g===z)){if(f!==a.containerWidth||e!==a.containerHeight)n.clearTimeout(a.reflowTimeout),a.reflowTimeout=Y(function(){a.container&&a.setSize(void 0,void 0,!1)},b?100:0);a.containerWidth=f;a.containerHeight=e}};f.prototype.setReflow=function(a){var e=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=b(w,"resize",function(b){e.options&&e.reflow(b)}),b(this,"destroy",this.unbindReflow))};f.prototype.setSize=
382
+ function(b,a,e){var g=this,c=g.renderer;g.isResizing+=1;I(e,g);e=c.globalAnimation;g.oldChartHeight=g.chartHeight;g.oldChartWidth=g.chartWidth;"undefined"!==typeof b&&(g.options.chart.width=b);"undefined"!==typeof a&&(g.options.chart.height=a);g.getChartSize();g.styledMode||(e?D:x)(g.container,{width:g.chartWidth+"px",height:g.chartHeight+"px"},e);g.setChartSize(!0);c.setSize(g.chartWidth,g.chartHeight,e);g.axes.forEach(function(b){b.isDirty=!0;b.setScale()});g.isDirtyLegend=!0;g.isDirtyBox=!0;g.layOutTitles();
383
+ g.getMargins();g.redraw(e);g.oldChartHeight=null;E(g,"resize");Y(function(){g&&E(g,"endResize",null,function(){--g.isResizing})},C(e).duration)};f.prototype.setChartSize=function(b){var a=this.inverted,e=this.renderer,g=this.chartWidth,c=this.chartHeight,f=this.options.chart,k=this.spacing,l=this.clipOffset,d,r,x,n;this.plotLeft=d=Math.round(this.plotLeft);this.plotTop=r=Math.round(this.plotTop);this.plotWidth=x=Math.max(0,Math.round(g-d-this.marginRight));this.plotHeight=n=Math.max(0,Math.round(c-
384
+ r-this.marginBottom));this.plotSizeX=a?n:x;this.plotSizeY=a?x:n;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=e.spacingBox={x:k[3],y:k[0],width:g-k[3]-k[1],height:c-k[0]-k[2]};this.plotBox=e.plotBox={x:d,y:r,width:x,height:n};a=2*Math.floor(this.plotBorderWidth/2);g=Math.ceil(Math.max(a,l[3])/2);c=Math.ceil(Math.max(a,l[0])/2);this.clipBox={x:g,y:c,width:Math.floor(this.plotSizeX-Math.max(a,l[1])/2-g),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,l[2])/2-c))};b||(this.axes.forEach(function(b){b.setAxisSize();
385
+ b.setAxisTranslation()}),e.alignElements());E(this,"afterSetChartSize",{skipAxes:b})};f.prototype.resetMargins=function(){E(this,"resetMargins");var b=this,a=b.options.chart;["margin","spacing"].forEach(function(e){var g=a[e],c=R(g)?g:[g,g,g,g];["Top","Right","Bottom","Left"].forEach(function(g,f){b[e][f]=S(a[e+g],c[f])})});u.forEach(function(a,e){b[a]=S(b.margin[e],b.spacing[e])});b.axisOffset=[0,0,0,0];b.clipOffset=[0,0,0,0]};f.prototype.drawChartBox=function(){var b=this.options.chart,a=this.renderer,
386
+ e=this.chartWidth,g=this.chartHeight,c=this.styledMode,f=this.plotBGImage,k=b.backgroundColor,l=b.plotBackgroundColor,d=b.plotBackgroundImage,r=this.plotLeft,x=this.plotTop,n=this.plotWidth,m=this.plotHeight,p=this.plotBox,h=this.clipRect,B=this.clipBox,u=this.chartBackground,w=this.plotBackground,J=this.plotBorder,v,q="animate";u||(this.chartBackground=u=a.rect().addClass("highcharts-background").add(),q="attr");if(c)var Q=v=u.strokeWidth();else{Q=b.borderWidth||0;v=Q+(b.shadow?8:0);k={fill:k||"none"};
387
+ if(Q||u["stroke-width"])k.stroke=b.borderColor,k["stroke-width"]=Q;u.attr(k).shadow(b.shadow)}u[q]({x:v/2,y:v/2,width:e-v-Q%2,height:g-v-Q%2,r:b.borderRadius});q="animate";w||(q="attr",this.plotBackground=w=a.rect().addClass("highcharts-plot-background").add());w[q](p);c||(w.attr({fill:l||"none"}).shadow(b.plotShadow),d&&(f?(d!==f.attr("href")&&f.attr("href",d),f.animate(p)):this.plotBGImage=a.image(d,r,x,n,m).add()));h?h.animate({width:B.width,height:B.height}):this.clipRect=a.clipRect(B);q="animate";
388
+ J||(q="attr",this.plotBorder=J=a.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());c||J.attr({stroke:b.plotBorderColor,"stroke-width":b.plotBorderWidth||0,fill:"none"});J[q](J.crisp({x:r,y:x,width:n,height:m},-J.strokeWidth()));this.isDirtyBox=!1;E(this,"afterDrawChartBox")};f.prototype.propFromSeries=function(){var b=this,a=b.options.chart,e=b.options.series,c,f,k;["inverted","angular","polar"].forEach(function(l){f=g[a.type||a.defaultSeriesType];k=a[l]||f&&f.prototype[l];for(c=e&&
389
+ e.length;!k&&c--;)(f=g[e[c].type])&&f.prototype[l]&&(k=!0);b[l]=k})};f.prototype.linkSeries=function(){var b=this,a=b.series;a.forEach(function(b){b.linkedSeries.length=0});a.forEach(function(a){var e=a.options.linkedTo;ca(e)&&(e=":previous"===e?b.series[a.index-1]:b.get(e))&&e.linkedParent!==a&&(e.linkedSeries.push(a),a.linkedParent=e,e.enabledDataSorting&&a.setDataSortingOptions(),a.visible=S(a.options.visible,e.options.visible,a.visible))});E(this,"afterLinkSeries")};f.prototype.renderSeries=function(){this.series.forEach(function(b){b.translate();
390
+ b.render()})};f.prototype.renderLabels=function(){var b=this,a=b.options.labels;a.items&&a.items.forEach(function(e){var g=W(a.style,e.style),c=da(g.left)+b.plotLeft,f=da(g.top)+b.plotTop+12;delete g.left;delete g.top;b.renderer.text(e.html,c,f).attr({zIndex:2}).css(g).add()})};f.prototype.render=function(){var b=this.axes,a=this.colorAxis,e=this.renderer,g=this.options,c=function(b){b.forEach(function(b){b.visible&&b.render()})},f=0;this.setTitle();this.legend=new G(this,g.legend);this.getStacks&&
391
+ this.getStacks();this.getMargins(!0);this.setChartSize();g=this.plotWidth;b.some(function(b){if(b.horiz&&b.visible&&b.options.labels.enabled&&b.series.length)return f=21,!0});var k=this.plotHeight=Math.max(this.plotHeight-f,0);b.forEach(function(b){b.setScale()});this.getAxisMargins();var l=1.1<g/this.plotWidth,d=1.05<k/this.plotHeight;if(l||d)b.forEach(function(b){(b.horiz&&l||!b.horiz&&d)&&b.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?c(b):a&&a.length&&c(a);
392
+ this.seriesGroup||(this.seriesGroup=e.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};f.prototype.addCredits=function(b){var a=this,e=T(!0,this.options.credits,b);e.enabled&&!this.credits&&(this.credits=this.renderer.text(e.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){e.href&&(w.location.href=e.href)}).attr({align:e.position.align,zIndex:8}),a.styledMode||
393
+ this.credits.css(e.style),this.credits.add().align(e.position),this.credits.update=function(b){a.credits=a.credits.destroy();a.addCredits(b)})};f.prototype.destroy=function(){var b=this,a=b.axes,e=b.series,g=b.container,c=g&&g.parentNode,f;E(b,"destroy");b.renderer.forExport?P(v,b):v[b.index]=void 0;t.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");N(b);for(f=a.length;f--;)a[f]=a[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=e.length;f--;)e[f]=e[f].destroy();
394
+ "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(a){var e=b[a];e&&e.destroy&&(b[a]=e.destroy())});g&&(g.innerHTML=m.emptyHTML,N(g),c&&X(g));U(b,function(a,e){delete b[e]})};f.prototype.firstRender=function(){var b=this,a=b.options;if(!b.isReadyToRender||b.isReadyToRender()){b.getContainer();b.resetMargins();b.setChartSize();b.propFromSeries();b.getAxes();(Q(a.series)?
395
+ a.series:[]).forEach(function(a){b.initSeries(a)});b.linkSeries();b.setSeriesData();E(b,"beforeRender");q&&(H.isRequired()?b.pointer=new H(b,a):b.pointer=new q(b,a));b.render();b.pointer.getChartPosition();if(!b.renderer.imgCount&&!b.hasLoaded)b.onload();b.temporaryDisplay(!0)}};f.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(b){b&&"undefined"!==typeof this.index&&b.apply(this,[this])},this);E(this,"load");E(this,"render");M(this.index)&&this.setReflow(this.options.chart.reflow);
396
+ this.hasLoaded=!0};f.prototype.addSeries=function(b,a,e){var g=this,c;b&&(a=S(a,!0),E(g,"addSeries",{options:b},function(){c=g.initSeries(b);g.isDirtyLegend=!0;g.linkSeries();c.enabledDataSorting&&c.setData(b.data,!1);E(g,"afterAddSeries",{series:c});a&&g.redraw(e)}));return c};f.prototype.addAxis=function(b,a,e,g){return this.createAxis(a?"xAxis":"yAxis",{axis:b,redraw:e,animation:g})};f.prototype.addColorAxis=function(b,a,e){return this.createAxis("colorAxis",{axis:b,redraw:a,animation:e})};f.prototype.createAxis=
397
+ function(b,a){b=new h(this,T(a.axis,{index:this[b].length,isX:"xAxis"===b}));S(a.redraw,!0)&&this.redraw(a.animation);return b};f.prototype.showLoading=function(a){var e=this,g=e.options,c=g.loading,f=function(){k&&x(k,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},k=e.loadingDiv,l=e.loadingSpan;k||(e.loadingDiv=k=r("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container));l||(e.loadingSpan=l=r("span",{className:"highcharts-loading-inner"},
398
+ null,k),b(e,"redraw",f));k.className="highcharts-loading";m.setElementHTML(l,S(a,g.lang.loading,""));e.styledMode||(x(k,W(c.style,{zIndex:10})),x(l,c.labelStyle),e.loadingShown||(x(k,{opacity:0,display:""}),D(k,{opacity:c.style.opacity||.5},{duration:c.showDuration||0})));e.loadingShown=!0;f()};f.prototype.hideLoading=function(){var b=this.options,a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden",this.styledMode||D(a,{opacity:0},{duration:b.loading.hideDuration||100,
399
+ complete:function(){x(a,{display:"none"})}}));this.loadingShown=!1};f.prototype.update=function(b,g,c,f){var k=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},d=b.isResponsiveOptions,r=[],x,n;E(k,"update",{options:b});d||k.setResponsive(!1,!0);b=J(b,k.options);k.userOptions=T(k.userOptions,b);var m=b.chart;if(m){T(!0,k.options.chart,m);"className"in m&&k.setClassName(m.className);"reflow"in m&&k.setReflow(m.reflow);if("inverted"in m||"polar"in m||"type"in
400
+ m){k.propFromSeries();var p=!0}"alignTicks"in m&&(p=!0);"events"in m&&K(this,m);U(m,function(b,a){-1!==k.propsRequireUpdateSeries.indexOf("chart."+a)&&(x=!0);-1!==k.propsRequireDirtyBox.indexOf(a)&&(k.isDirtyBox=!0);-1!==k.propsRequireReflow.indexOf(a)&&(d?k.isDirtyBox=!0:n=!0)});!k.styledMode&&m.style&&k.renderer.setStyle(k.options.chart.style||{})}!k.styledMode&&b.colors&&(this.options.colors=b.colors);b.time&&(this.time===e&&(this.time=new a(b.time)),T(!0,k.options.time,b.time));U(b,function(a,
401
+ e){if(k[e]&&"function"===typeof k[e].update)k[e].update(a,!1);else if("function"===typeof k[l[e]])k[l[e]](a);else"colors"!==e&&-1===k.collectionsWithUpdate.indexOf(e)&&T(!0,k.options[e],b[e]);"chart"!==e&&-1!==k.propsRequireUpdateSeries.indexOf(e)&&(x=!0)});this.collectionsWithUpdate.forEach(function(a){if(b[a]){var e=[];k[a].forEach(function(b,a){b.options.isInternal||e.push(S(b.options.index,a))});fa(b[a]).forEach(function(b,g){var f=M(b.id),l;f&&(l=k.get(b.id));!l&&k[a]&&(l=k[a][e?e[g]:g])&&f&&
402
+ M(l.options.id)&&(l=void 0);l&&l.coll===a&&(l.update(b,!1),c&&(l.touched=!0));!l&&c&&k.collectionsWithInit[a]&&(k.collectionsWithInit[a][0].apply(k,[b].concat(k.collectionsWithInit[a][1]||[]).concat([!1])).touched=!0)});c&&k[a].forEach(function(b){b.touched||b.options.isInternal?delete b.touched:r.push(b)})}});r.forEach(function(b){b.chart&&b.remove&&b.remove(!1)});p&&k.axes.forEach(function(b){b.update({},!1)});x&&k.getSeriesOrderByLinks().forEach(function(b){b.chart&&b.update({},!1)},this);p=m&&
403
+ m.width;m=m&&(ca(m.height)?ia(m.height,p||k.chartWidth):m.height);n||ba(p)&&p!==k.chartWidth||ba(m)&&m!==k.chartHeight?k.setSize(p,m,f):S(g,!0)&&k.redraw(f);E(k,"afterUpdate",{options:b,redraw:g,animation:f})};f.prototype.setSubtitle=function(b,a){this.applyDescription("subtitle",b);this.layOutTitles(a)};f.prototype.setCaption=function(b,a){this.applyDescription("caption",b);this.layOutTitles(a)};f.prototype.showResetZoom=function(){function b(){a.zoomOut()}var a=this,e=l.lang,g=a.options.chart.resetZoomButton,
404
+ c=g.theme,f=c.states,k="chart"===g.relativeTo||"spacingBox"===g.relativeTo?null:"scrollablePlotBox";E(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(e.resetZoom,null,null,b,c,f&&f.hover).attr({align:g.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(g.position,!1,k)});E(this,"afterShowResetZoom")};f.prototype.zoomOut=function(){E(this,"selection",{resetSelection:!0},this.zoom)};f.prototype.zoom=function(b){var a=this,e=a.pointer,
405
+ g=a.inverted?e.mouseDownX:e.mouseDownY,c=!1,f;!b||b.resetSelection?(a.axes.forEach(function(b){f=b.zoom()}),e.initiated=!1):b.xAxis.concat(b.yAxis).forEach(function(b){var k=b.axis,l=a.inverted?k.left:k.top,d=a.inverted?l+k.width:l+k.height,r=k.isXAxis,x=!1;if(!r&&g>=l&&g<=d||r||!M(g))x=!0;e[r?"zoomX":"zoomY"]&&x&&(f=k.zoom(b.min,b.max),k.displayBtn&&(c=!0))});var k=a.resetZoomButton;c&&!k?a.showResetZoom():!c&&R(k)&&(a.resetZoomButton=k.destroy());f&&a.redraw(S(a.options.chart.animation,b&&b.animation,
406
+ 100>a.pointCount))};f.prototype.pan=function(b,a){var e=this,g=e.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var c=e.options.chart,f=e.options.mapNavigation&&e.options.mapNavigation.enabled;c&&c.panning&&(c.panning=a);var k=a.type,l;E(this,"pan",{originalEvent:b},function(){g&&g.forEach(function(b){b.setState()});var a=e.xAxis;"xy"===k?a=a.concat(e.yAxis):"y"===k&&(a=e.yAxis);var c={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var g=a.horiz,d=b[g?"chartX":
407
+ "chartY"];g=g?"mouseDownX":"mouseDownY";var r=e[g],x=a.minPointOffset||0,n=a.reversed&&!e.inverted||!a.reversed&&e.inverted?-1:1,m=a.getExtremes(),p=a.toValue(r-d,!0)+x*n,h=a.toValue(r+a.len-d,!0)-(x*n||a.isXAxis&&a.pointRangePadding||0),u=h<p;n=a.hasVerticalPanning();r=u?h:p;p=u?p:h;var B=a.panningState;!n||a.isXAxis||B&&!B.isDirty||a.series.forEach(function(b){var a=b.getProcessedData(!0);a=b.getExtremes(a.yData,!0);B||(B={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});ba(a.dataMin)&&ba(a.dataMax)&&
408
+ (B.startMin=Math.min(S(b.options.threshold,Infinity),a.dataMin,B.startMin),B.startMax=Math.max(S(b.options.threshold,-Infinity),a.dataMax,B.startMax))});n=Math.min(S(B&&B.startMin,m.dataMin),x?m.min:a.toValue(a.toPixels(m.min)-a.minPixelPadding));h=Math.max(S(B&&B.startMax,m.dataMax),x?m.max:a.toValue(a.toPixels(m.max)+a.minPixelPadding));a.panningState=B;a.isOrdinal||(x=n-r,0<x&&(p+=x,r=n),x=p-h,0<x&&(p=h,r-=x),a.series.length&&r!==m.min&&p!==m.max&&r>=n&&p<=h&&(a.setExtremes(r,p,!1,!1,{trigger:"pan"}),
409
+ e.resetZoomButton||f||r===n||p===h||!k.match("y")||(e.showResetZoom(),a.displayBtn=!1),l=!0),c[g]=d)}});U(c,function(b,a){e[a]=b});l&&e.redraw(!1);x(e.container,{cursor:"move"})})};return f}();W(d.prototype,{callbacks:[],collectionsWithInit:{xAxis:[d.prototype.addAxis,[!0]],yAxis:[d.prototype.addAxis,[!1]],series:[d.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
410
+ propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return d});N(h,"Core/Legend/LegendSymbol.js",[h["Core/Utilities.js"]],function(d){var h=d.merge,A=d.pick,F;(function(d){d.drawLineMarker=function(d){var t=this.options,y=d.symbolWidth,q=d.symbolHeight,p=q/2,f=this.chart.renderer,
411
+ c=this.legendGroup;d=d.baseline-Math.round(.3*d.fontMetrics.b);var a={},n=t.marker;this.chart.styledMode||(a={"stroke-width":t.lineWidth||0},t.dashStyle&&(a.dashstyle=t.dashStyle));this.legendLine=f.path([["M",0,d],["L",y,d]]).addClass("highcharts-graph").attr(a).add(c);n&&!1!==n.enabled&&y&&(t=Math.min(A(n.radius,p),p),0===this.symbol.indexOf("url")&&(n=h(n,{width:q,height:q}),t=0),this.legendSymbol=y=f.symbol(this.symbol,y/2-t,d-t,2*t,2*t,n).addClass("highcharts-point").add(c),y.isMarker=!0)};d.drawRectangle=
412
+ function(d,h){var t=d.symbolHeight,q=d.options.squareSymbol;h.legendSymbol=this.chart.renderer.rect(q?(d.symbolWidth-t)/2:0,d.baseline-t+1,q?t:d.symbolWidth,t,A(d.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(h.legendGroup)}})(F||(F={}));return F});N(h,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},
413
+ hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var d=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":d(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},
414
+ hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});N(h,"Core/Series/Series.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/DefaultOptions.js"],h["Core/Foundation.js"],h["Core/Globals.js"],h["Core/Legend/LegendSymbol.js"],h["Core/Series/Point.js"],h["Core/Series/SeriesDefaults.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Renderer/SVG/SVGElement.js"],
415
+ h["Core/Utilities.js"]],function(d,h,A,F,t,G,H,y,q,p){var f=d.animObject,c=d.setAnimation,a=h.defaultOptions,n=A.registerEventOptions,m=F.hasTouch,D=F.svg,C=F.win,I=y.seriesTypes,L=p.addEvent,K=p.arrayMax,v=p.arrayMin,z=p.clamp,u=p.cleanRecursively,k=p.correctFloat,w=p.defined,l=p.erase,e=p.error,g=p.extend,b=p.find,B=p.fireEvent,J=p.getNestedProperty,r=p.isArray,x=p.isNumber,M=p.isString,E=p.merge,P=p.objectEach,O=p.pick,W=p.removeEvent,Z=p.splat,ha=p.syncTimeout;d=function(){function d(){this.zones=
416
+ this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}d.prototype.init=function(b,a){B(this,"init",{options:a});var e=this,c=b.series;this.eventsToUnbind=[];e.chart=b;e.options=e.setOptions(a);a=e.options;e.linkedSeries=[];e.bindAxes();g(e,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});n(this,a);var f=
417
+ a.events;if(f&&f.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)b.runTrackerClick=!0;e.getColor();e.getSymbol();e.parallelArrays.forEach(function(b){e[b+"Data"]||(e[b+"Data"]=[])});e.isCartesian&&(b.hasCartesianSeries=!0);var k;c.length&&(k=c[c.length-1]);e._i=O(k&&k._i,-1)+1;e.opacity=e.options.opacity;b.orderSeries(this.insert(c));a.dataSorting&&a.dataSorting.enabled?e.setDataSortingOptions():e.points||e.data||e.setData(a.data,!1);B(this,"afterInit")};d.prototype.is=function(b){return I[b]&&
418
+ this instanceof I[b]};d.prototype.insert=function(b){var a=this.options.index,e;if(x(a)){for(e=b.length;e--;)if(a>=O(b[e].options.index,b[e]._i)){b.splice(e+1,0,this);break}-1===e&&b.unshift(this);e+=1}else b.push(this);return O(e,b.length-1)};d.prototype.bindAxes=function(){var b=this,a=b.options,g=b.chart,c;B(this,"bindAxes",null,function(){(b.axisTypes||[]).forEach(function(f){var k=0;g[f].forEach(function(e){c=e.options;if(a[f]===k&&!c.isInternal||"undefined"!==typeof a[f]&&a[f]===c.id||"undefined"===
419
+ typeof a[f]&&0===c.index)b.insert(e.series),b[f]=e,e.isDirty=!0;c.isInternal||k++});b[f]||b.optionalAxis===f||e(18,!0,g)})});B(this,"afterBindAxes")};d.prototype.updateParallelArrays=function(b,a){var e=b.series,g=arguments,c=x(a)?function(g){var c="y"===g&&e.toYData?e.toYData(b):b[g];e[g+"Data"][a]=c}:function(b){Array.prototype[a].apply(e[b+"Data"],Array.prototype.slice.call(g,2))};e.parallelArrays.forEach(c)};d.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&
420
+ "undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};d.prototype.autoIncrement=function(b){var a=this.options,e=a.pointIntervalUnit,g=a.relativeXValue,c=this.chart.time,f=this.xIncrement,k;f=O(f,a.pointStart,0);this.pointInterval=k=O(this.pointInterval,a.pointInterval,1);g&&x(b)&&(k*=b);e&&(a=new c.Date(f),"day"===e?c.set("Date",a,c.get("Date",a)+k):"month"===e?c.set("Month",a,c.get("Month",a)+k):"year"===e&&c.set("FullYear",a,c.get("FullYear",a)+k),k=a.getTime()-f);if(g&&
421
+ x(b))return f+k;this.xIncrement=f+k;return f};d.prototype.setDataSortingOptions=function(){var b=this.options;g(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});w(b.pointRange)||(b.pointRange=1)};d.prototype.setOptions=function(b){var e=this.chart,g=e.options,c=g.plotOptions,f=e.userOptions||{};b=E(b);e=e.styledMode;var k={plotOptions:c,userOptions:b};B(this,"setOptions",k);var d=k.plotOptions[this.type],l=f.plotOptions||{};this.userOptions=k.userOptions;f=E(d,c.series,f.plotOptions&&
422
+ f.plotOptions[this.type],b);this.tooltipOptions=E(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,g.tooltip.userOptions,c.series&&c.series.tooltip,c[this.type].tooltip,b.tooltip);this.stickyTracking=O(b.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===d.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;c=this.zones=(f.zones||[]).slice();
423
+ !f.negativeColor&&!f.negativeFillColor||f.zones||(g={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},e||(g.color=f.negativeColor,g.fillColor=f.negativeFillColor),c.push(g));c.length&&w(c[c.length-1].value)&&c.push(e?{}:{color:this.color,fillColor:this.fillColor});B(this,"afterSetOptions",{options:f});return f};d.prototype.getName=function(){return O(this.options.name,"Series "+(this.index+1))};d.prototype.getCyclic=function(b,a,e){var g=this.chart,c=this.userOptions,
424
+ f=b+"Index",k=b+"Counter",d=e?e.length:O(g.options.chart[b+"Count"],g[b+"Count"]);if(!a){var l=O(c[f],c["_"+f]);w(l)||(g.series.length||(g[k]=0),c["_"+f]=l=g[k]%d,g[k]+=1);e&&(a=e[l])}"undefined"!==typeof l&&(this[f]=l);this[b]=a};d.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||a.plotOptions[this.type].color,this.chart.options.colors)};d.prototype.getPointsCollection=function(){return(this.hasGroupedData?
425
+ this.points:this.data)||[]};d.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};d.prototype.findPointIndex=function(a,e){var g=a.id,c=a.x,f=this.points,k=this.options.dataSorting,d,l;if(g)k=this.chart.get(g),k instanceof G&&(d=k);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(d=function(b){return!b.touched&&b.index===a.index},k&&k.matchByName?d=function(b){return!b.touched&&b.name===a.name}:this.options.relativeXValue&&
426
+ (d=function(b){return!b.touched&&b.options.x===a.x}),d=b(f,d),!d)return;if(d){var r=d&&d.index;"undefined"!==typeof r&&(l=!0)}"undefined"===typeof r&&x(c)&&(r=this.xData.indexOf(c,e));-1!==r&&"undefined"!==typeof r&&this.cropped&&(r=r>=this.cropStart?r-this.cropStart:r);!l&&x(r)&&f[r]&&f[r].touched&&(r=void 0);return r};d.prototype.updateData=function(b,a){var e=this.options,g=e.dataSorting,c=this.points,f=[],k=this.requireSorting,d=b.length===c.length,l,r,n,m=!0;this.xIncrement=null;b.forEach(function(b,
427
+ a){var r=w(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{},m=r.x;if(r.id||x(m)){if(r=this.findPointIndex(r,n),-1===r||"undefined"===typeof r?f.push(b):c[r]&&b!==e.data[r]?(c[r].update(b,!1,null,!1),c[r].touched=!0,k&&(n=r+1)):c[r]&&(c[r].touched=!0),!d||a!==r||g&&g.enabled||this.hasDerivedData)l=!0}else f.push(b)},this);if(l)for(b=c.length;b--;)(r=c[b])&&!r.touched&&r.remove&&r.remove(!1,a);else!d||g&&g.enabled?m=!1:(b.forEach(function(b,a){b!==c[a].y&&c[a].update&&c[a].update(b,
428
+ !1,null,!1)}),f.length=0);c.forEach(function(b){b&&(b.touched=!1)});if(!m)return!1;f.forEach(function(b){this.addPoint(b,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=K(this.xData),this.autoIncrement());return!0};d.prototype.setData=function(b,a,g,c){var f=this,k=f.points,d=k&&k.length||0,l=f.options,n=f.chart,m=l.dataSorting,p=f.xAxis,h=l.turboThreshold,B=this.xData,u=this.yData,w=f.pointArrayMap;w=w&&w.length;var J=l.keys,v,q=0,z=1,Q=null;b=b||[];
429
+ var C=b.length;a=O(a,!0);m&&m.enabled&&(b=this.sortData(b));!1!==c&&C&&d&&!f.cropped&&!f.hasGroupedData&&f.visible&&!f.isSeriesBoosting&&(v=this.updateData(b,g));if(!v){f.xIncrement=null;f.colorCounter=0;this.parallelArrays.forEach(function(b){f[b+"Data"].length=0});if(h&&C>h)if(Q=f.getFirstValidPoint(b),x(Q))for(g=0;g<C;g++)B[g]=this.autoIncrement(),u[g]=b[g];else if(r(Q))if(w)if(Q.length===w)for(g=0;g<C;g++)B[g]=this.autoIncrement(),u[g]=b[g];else for(g=0;g<C;g++)c=b[g],B[g]=c[0],u[g]=c.slice(1,
430
+ w+1);else if(J&&(q=J.indexOf("x"),z=J.indexOf("y"),q=0<=q?q:0,z=0<=z?z:1),1===Q.length&&(z=0),q===z)for(g=0;g<C;g++)B[g]=this.autoIncrement(),u[g]=b[g][z];else for(g=0;g<C;g++)c=b[g],B[g]=c[q],u[g]=c[z];else e(12,!1,n);else for(g=0;g<C;g++)"undefined"!==typeof b[g]&&(c={series:f},f.pointClass.prototype.applyOptions.apply(c,[b[g]]),f.updateParallelArrays(c,g));u&&M(u[0])&&e(14,!0,n);f.data=[];f.options.data=f.userOptions.data=b;for(g=d;g--;)k[g]&&k[g].destroy&&k[g].destroy();p&&(p.minRange=p.userMinRange);
431
+ f.isDirty=n.isDirtyBox=!0;f.isDirtyData=!!k;g=!1}"point"===l.legendType&&(this.processData(),this.generatePoints());a&&n.redraw(g)};d.prototype.sortData=function(b){var a=this,e=a.options.dataSorting.sortKey||"y",g=function(b,a){return w(a)&&b.pointClass.prototype.optionsToObject.call({series:b},a)||{}};b.forEach(function(e,c){b[c]=g(a,e);b[c].index=c},this);b.concat().sort(function(b,a){b=J(e,b);a=J(e,a);return a<b?-1:a>b?1:0}).forEach(function(b,a){b.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var e=
432
+ a.options,c=e.data;e.dataSorting&&e.dataSorting.enabled||!c||(c.forEach(function(e,f){c[f]=g(a,e);b[f]&&(c[f].x=b[f].x,c[f].index=f)}),a.setData(c,!1))});return b};d.prototype.getProcessedData=function(b){var a=this.xAxis,g=this.options,c=g.cropThreshold,f=b||this.getExtremesFromAll||g.getExtremesFromAll,k=this.isCartesian;b=a&&a.val2lin;g=!(!a||!a.logarithmic);var d=0,l=this.xData,r=this.yData,x=this.requireSorting;var n=!1;var m=l.length;if(a){n=a.getExtremes();var p=n.min;var h=n.max;n=a.categories&&
433
+ !a.names.length}if(k&&this.sorted&&!f&&(!c||m>c||this.forceCrop))if(l[m-1]<p||l[0]>h)l=[],r=[];else if(this.yData&&(l[0]<p||l[m-1]>h)){var B=this.cropData(this.xData,this.yData,p,h);l=B.xData;r=B.yData;d=B.start;B=!0}for(c=l.length||1;--c;)if(a=g?b(l[c])-b(l[c-1]):l[c]-l[c-1],0<a&&("undefined"===typeof u||a<u))var u=a;else 0>a&&x&&!n&&(e(15,!1,this.chart),x=!1);return{xData:l,yData:r,cropped:B,cropStart:d,closestPointRange:u}};d.prototype.processData=function(b){var a=this.xAxis;if(this.isCartesian&&
434
+ !this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!b)return!1;b=this.getProcessedData();this.cropped=b.cropped;this.cropStart=b.cropStart;this.processedXData=b.xData;this.processedYData=b.yData;this.closestPointRange=this.basePointRange=b.closestPointRange;B(this,"afterProcessData")};d.prototype.cropData=function(b,a,e,g,c){var f=b.length,k,d=0,l=f;c=O(c,this.cropShoulder);for(k=0;k<f;k++)if(b[k]>=e){d=Math.max(0,k-c);break}for(e=k;e<f;e++)if(b[e]>g){l=e+c;break}return{xData:b.slice(d,l),yData:a.slice(d,
435
+ l),start:d,end:l}};d.prototype.generatePoints=function(){var b=this.options,a=b.data,e=this.processedXData,c=this.processedYData,f=this.pointClass,k=e.length,d=this.cropStart||0,l=this.hasGroupedData,r=b.keys,n=[];b=b.dataGrouping&&b.dataGrouping.groupAll?d:0;var x,m,p=this.data;if(!p&&!l){var h=[];h.length=a.length;p=this.data=h}r&&l&&(this.options.keys=!1);for(m=0;m<k;m++){h=d+m;if(l){var u=(new f).init(this,[e[m]].concat(Z(c[m])));u.dataGroup=this.groupMap[b+m];u.dataGroup.options&&(u.options=
436
+ u.dataGroup.options,g(u,u.dataGroup.options),delete u.dataLabels)}else(u=p[h])||"undefined"===typeof a[h]||(p[h]=u=(new f).init(this,a[h],e[m]));u&&(u.index=l?b+m:h,n[m]=u)}this.options.keys=r;if(p&&(k!==(x=p.length)||l))for(m=0;m<x;m++)m!==d||l||(m+=k),p[m]&&(p[m].destroyElements(),p[m].plotX=void 0);this.data=p;this.points=n;B(this,"afterGeneratePoints")};d.prototype.getXExtremes=function(b){return{min:v(b),max:K(b)}};d.prototype.getExtremes=function(b,a){var e=this.xAxis,g=this.yAxis,c=this.processedXData||
437
+ this.xData,f=[],k=this.requireSorting?this.cropShoulder:0;g=g?g.positiveValuesOnly:!1;var d,l=0,n=0,m=0;b=b||this.stackedYData||this.processedYData||[];var p=b.length;if(e){var h=e.getExtremes();l=h.min;n=h.max}for(d=0;d<p;d++){var u=c[d];h=b[d];var w=(x(h)||r(h))&&(h.length||0<h||!g);u=a||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!e||(c[d+k]||u)>=l&&(c[d-k]||u)<=n;if(w&&u)if(w=h.length)for(;w--;)x(h[w])&&(f[m++]=h[w]);else f[m++]=h}b={activeYData:f,dataMin:v(f),dataMax:K(f)};
438
+ B(this,"afterGetExtremes",{dataExtremes:b});return b};d.prototype.applyExtremes=function(){var b=this.getExtremes();this.dataMin=b.dataMin;this.dataMax=b.dataMax;return b};d.prototype.getFirstValidPoint=function(b){for(var a=b.length,e=0,g=null;null===g&&e<a;)g=b[e],e++;return g};d.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b=this.options,a=b.stacking,e=this.xAxis,g=e.categories,c=this.enabledDataSorting,f=this.yAxis,d=this.points,l=d.length,n=
439
+ this.pointPlacementToXValue(),m=!!n,p=b.threshold,h=b.startFromThreshold?p:0,u=this.zoneAxis||"y",J,v,q=Number.MAX_VALUE;for(J=0;J<l;J++){var M=d[J],C=M.x,D=void 0,I=void 0,L=M.y,K=M.low,t=a&&f.stacking&&f.stacking.stacks[(this.negStacks&&L<(h?0:p)?"-":"")+this.stackKey];if(f.positiveValuesOnly&&!f.validatePositiveValue(L)||e.positiveValuesOnly&&!e.validatePositiveValue(C))M.isNull=!0;M.plotX=v=k(z(e.translate(C,0,0,0,1,n,"flags"===this.type),-1E5,1E5));if(a&&this.visible&&t&&t[C]){var y=this.getStackIndicator(y,
440
+ C,this.index);M.isNull||(D=t[C],I=D.points[y.key])}r(I)&&(K=I[0],L=I[1],K===h&&y.key===t[C].base&&(K=O(x(p)&&p,f.min)),f.positiveValuesOnly&&0>=K&&(K=null),M.total=M.stackTotal=D.total,M.percentage=D.total&&M.y/D.total*100,M.stackY=L,this.irregularWidths||D.setOffset(this.pointXOffset||0,this.barW||0));M.yBottom=w(K)?z(f.translate(K,0,1,0,1),-1E5,1E5):null;this.dataModify&&(L=this.dataModify.modifyValue(L,J));M.plotY=void 0;x(L)&&(D=f.translate(L,!1,!0,!1,!0),"undefined"!==typeof D&&(M.plotY=z(D,
441
+ -1E5,1E5)));M.isInside=this.isPointInside(M);M.clientX=m?k(e.translate(C,0,0,0,1,n)):v;M.negative=M[u]<(b[u+"Threshold"]||p||0);M.category=g&&"undefined"!==typeof g[M.x]?g[M.x]:M.x;if(!M.isNull&&!1!==M.visible){"undefined"!==typeof P&&(q=Math.min(q,Math.abs(v-P)));var P=v}M.zone=this.zones.length?M.getZone():void 0;!M.graphic&&this.group&&c&&(M.isNew=!0)}this.closestPointRangePx=q;B(this,"afterTranslate")};d.prototype.getValidPoints=function(b,a,e){var g=this.chart;return(b||this.points||[]).filter(function(b){return a&&
442
+ !g.isInsidePlot(b.plotX,b.plotY,{inverted:g.inverted})?!1:!1!==b.visible&&(e||!b.isNull)})};d.prototype.getClipBox=function(){var b=this.chart,a=this.xAxis,e=this.yAxis,g=E(b.clipBox);a&&a.len!==b.plotSizeX&&(g.width=a.len);e&&e.len!==b.plotSizeY&&(g.height=e.len);return g};d.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};d.prototype.setClip=function(){var b=this.chart,a=this.group,e=this.markerGroup,g=b.sharedClips;b=b.renderer;
443
+ var c=this.getClipBox(),f=this.getSharedClipKey(),k=g[f];k?k.animate(c):g[f]=k=b.clipRect(c);a&&a.clip(!1===this.options.clip?void 0:k);e&&e.clip()};d.prototype.animate=function(b){var a=this.chart,e=this.group,g=this.markerGroup,c=a.inverted,k=f(this.options.animation),d=[this.getSharedClipKey(),k.duration,k.easing,k.defer].join(),l=a.sharedClips[d],r=a.sharedClips[d+"m"];if(b&&e)k=this.getClipBox(),l?l.attr("height",k.height):(k.width=0,c&&(k.x=a.plotHeight),l=a.renderer.clipRect(k),a.sharedClips[d]=
444
+ l,r=a.renderer.clipRect({x:c?(a.plotSizeX||0)+99:-99,y:c?-a.plotLeft:-a.plotTop,width:99,height:c?a.chartWidth:a.chartHeight}),a.sharedClips[d+"m"]=r),e.clip(l),g&&g.clip(r);else if(l&&!l.hasClass("highcharts-animating")){a=this.getClipBox();var n=k.step;g&&g.element.childNodes.length&&(k.step=function(b,a){n&&n.apply(a,arguments);r&&r.element&&r.attr(a.prop,"width"===a.prop?b+99:b)});l.addClass("highcharts-animating").animate(a,k)}};d.prototype.afterAnimate=function(){var b=this;this.setClip();P(this.chart.sharedClips,
445
+ function(a,e,g){a&&!b.chart.container.querySelector('[clip-path="url(#'+a.id+')"]')&&(a.destroy(),delete g[e])});this.finishedAnimating=!0;B(this,"afterAnimate")};d.prototype.drawPoints=function(){var b=this.points,a=this.chart,e=this.options.marker,g=this[this.specialGroup]||this.markerGroup,c=this.xAxis,f=O(e.enabled,!c||c.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius),k,d;if(!1!==e.enabled||this._hasPointMarkers)for(k=0;k<b.length;k++){var l=b[k];var r=(d=l.graphic)?"animate":
446
+ "attr";var n=l.marker||{};var x=!!l.marker;if((f&&"undefined"===typeof n.enabled||n.enabled)&&!l.isNull&&!1!==l.visible){var m=O(n.symbol,this.symbol,"rect");var p=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=c.reversed?-(p.width||0):c.width);var h=!1!==l.isInside;d?d[h?"show":"hide"](h).animate(p):h&&(0<(p.width||0)||l.hasImage)&&(l.graphic=d=a.renderer.symbol(m,p.x,p.y,p.width,p.height,x?n:e).add(g),this.enabledDataSorting&&a.hasRendered&&(d.attr({x:l.startXPos}),
447
+ r="animate"));d&&"animate"===r&&d[h?"show":"hide"](h).animate(p);if(d&&!a.styledMode)d[r](this.pointAttribs(l,l.selected&&"select"));d&&d.addClass(l.getClassName(),!0)}else d&&(l.graphic=d.destroy())}};d.prototype.markerAttribs=function(b,a){var e=this.options,g=e.marker,c=b.marker||{},f=c.symbol||g.symbol,k=O(c.radius,g.radius);a&&(g=g.states[a],a=c.states&&c.states[a],k=O(a&&a.radius,g&&g.radius,k+(g&&g.radiusPlus||0)));b.hasImage=f&&0===f.indexOf("url");b.hasImage&&(k=0);b={x:e.crisp?Math.floor(b.plotX-
448
+ k):b.plotX-k,y:b.plotY-k};k&&(b.width=b.height=2*k);return b};d.prototype.pointAttribs=function(b,a){var e=this.options.marker,g=b&&b.options,c=g&&g.marker||{},f=g&&g.color,k=b&&b.color,d=b&&b.zone&&b.zone.color,l=this.color;b=O(c.lineWidth,e.lineWidth);g=1;l=f||d||k||l;f=c.fillColor||e.fillColor||l;k=c.lineColor||e.lineColor||l;a=a||"normal";e=e.states[a]||{};a=c.states&&c.states[a]||{};b=O(a.lineWidth,e.lineWidth,b+O(a.lineWidthPlus,e.lineWidthPlus,0));f=a.fillColor||e.fillColor||f;k=a.lineColor||
449
+ e.lineColor||k;g=O(a.opacity,e.opacity,g);return{stroke:k,"stroke-width":b,fill:f,opacity:g}};d.prototype.destroy=function(b){var a=this,e=a.chart,g=/AppleWebKit\/533/.test(C.navigator.userAgent),c=a.data||[],f,k,d,r;B(a,"destroy");this.removeEvents(b);(a.axisTypes||[]).forEach(function(b){(r=a[b])&&r.series&&(l(r.series,a),r.isDirty=r.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(k=c.length;k--;)(d=c[k])&&d.destroy&&d.destroy();a.clips&&a.clips.forEach(function(b){return b.destroy()});
450
+ p.clearTimeout(a.animationTimeout);P(a,function(b,a){b instanceof q&&!b.survive&&(f=g&&"group"===a?"hide":"destroy",b[f]())});e.hoverSeries===a&&(e.hoverSeries=void 0);l(e.series,a);e.orderSeries();P(a,function(e,g){b&&"hcEvents"===g||delete a[g]})};d.prototype.applyZones=function(){var b=this,a=this.chart,e=a.renderer,g=this.zones,c=this.clips||[],f=this.graph,k=this.area,d=Math.max(a.chartWidth,a.chartHeight),l=this[(this.zoneAxis||"y")+"Axis"],r=a.inverted,n,x,m,p,h,u,B,w,J=!1;if(g.length&&(f||
451
+ k)&&l&&"undefined"!==typeof l.min){var v=l.reversed;var q=l.horiz;f&&!this.showLine&&f.hide();k&&k.hide();var M=l.getExtremes();g.forEach(function(g,C){n=v?q?a.plotWidth:0:q?0:l.toPixels(M.min)||0;n=z(O(x,n),0,d);x=z(Math.round(l.toPixels(O(g.value,M.max),!0)||0),0,d);J&&(n=x=l.toPixels(M.max));p=Math.abs(n-x);h=Math.min(n,x);u=Math.max(n,x);l.isXAxis?(m={x:r?u:h,y:0,width:p,height:d},q||(m.x=a.plotHeight-m.x)):(m={x:0,y:r?u:h,width:d,height:p},q&&(m.y=a.plotWidth-m.y));r&&e.isVML&&(m=l.isXAxis?{x:0,
452
+ y:v?h:u,height:m.width,width:a.chartWidth}:{x:m.y-a.plotLeft-a.spacingBox.x,y:0,width:m.height,height:a.chartHeight});c[C]?c[C].animate(m):c[C]=e.clipRect(m);B=b["zone-area-"+C];w=b["zone-graph-"+C];f&&w&&w.clip(c[C]);k&&B&&B.clip(c[C]);J=g.value>M.max;b.resetZones&&0===x&&(x=void 0)});this.clips=c}else b.visible&&(f&&f.show(!0),k&&k.show(!0))};d.prototype.invertGroups=function(b){function a(){["group","markerGroup"].forEach(function(a){e[a]&&(g.renderer.isVML&&e[a].attr({width:e.yAxis.len,height:e.xAxis.len}),
453
+ e[a].width=e.yAxis.len,e[a].height=e.xAxis.len,e[a].invert(e.isRadialSeries?!1:b))})}var e=this,g=e.chart;e.xAxis&&(e.eventsToUnbind.push(L(g,"resize",a)),a(),e.invertGroups=a)};d.prototype.plotGroup=function(b,a,e,g,c){var f=this[b],k=!f;e={visibility:e,zIndex:g||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);k&&(this[b]=f=this.chart.renderer.g().add(c));f.addClass("highcharts-"+a+" highcharts-series-"+this.index+" highcharts-"+this.type+
454
+ "-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(e)[k?"attr":"animate"](this.getPlotBox());return f};d.prototype.getPlotBox=function(){var b=this.chart,a=this.xAxis,e=this.yAxis;b.inverted&&(a=e,e=this.xAxis);return{translateX:a?a.left:b.plotLeft,translateY:e?e.top:b.plotTop,scaleX:1,scaleY:1}};d.prototype.removeEvents=function(b){b||W(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(b){b()}),
455
+ this.eventsToUnbind.length=0)};d.prototype.render=function(){var b=this,a=b.chart,e=b.options,g=f(e.animation),c=b.visible?"inherit":"hidden",k=e.zIndex,d=b.hasRendered,l=a.seriesGroup,r=a.inverted;a=!b.finishedAnimating&&a.renderer.isSVG?g.duration:0;B(this,"render");var n=b.plotGroup("group","series",c,k,l);b.markerGroup=b.plotGroup("markerGroup","markers",c,k,l);!1!==e.clip&&b.setClip();b.animate&&a&&b.animate(!0);n.inverted=O(b.invertible,b.isCartesian)?r:!1;b.drawGraph&&(b.drawGraph(),b.applyZones());
456
+ b.visible&&b.drawPoints();b.drawDataLabels&&b.drawDataLabels();b.redrawPoints&&b.redrawPoints();b.drawTracker&&!1!==b.options.enableMouseTracking&&b.drawTracker();b.invertGroups(r);b.animate&&a&&b.animate();d||(a&&g.defer&&(a+=g.defer),b.animationTimeout=ha(function(){b.afterAnimate()},a||0));b.isDirty=!1;b.hasRendered=!0;B(b,"afterRender")};d.prototype.redraw=function(){var b=this.chart,a=this.isDirty||this.isDirtyData,e=this.group,g=this.xAxis,c=this.yAxis;e&&(b.inverted&&e.attr({width:b.plotWidth,
457
+ height:b.plotHeight}),e.animate({translateX:O(g&&g.left,b.plotLeft),translateY:O(c&&c.top,b.plotTop)}));this.translate();this.render();a&&delete this.kdTree};d.prototype.searchPoint=function(b,a){var e=this.xAxis,g=this.yAxis,c=this.chart.inverted;return this.searchKDTree({clientX:c?e.len-b.chartY+e.pos:b.chartX-e.pos,plotY:c?g.len-b.chartX+g.pos:b.chartY-g.pos},a,b)};d.prototype.buildKDTree=function(b){function a(b,g,c){var f=b&&b.length;if(f){var k=e.kdAxisArray[g%c];b.sort(function(b,a){return b[k]-
458
+ a[k]});f=Math.floor(f/2);return{point:b[f],left:a(b.slice(0,f),g+1,c),right:a(b.slice(f+1),g+1,c)}}}this.buildingKdTree=!0;var e=this,g=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree;ha(function(){e.kdTree=a(e.getValidPoints(null,!e.directTouch),g,g);e.buildingKdTree=!1},e.options.kdNow||b&&"touchstart"===b.type?0:1)};d.prototype.searchKDTree=function(b,a,e){function g(b,a,e,l){var r=a.point,n=c.kdAxisArray[e%l],x=r,m=w(b[f])&&w(r[f])?Math.pow(b[f]-r[f],2):null;var p=w(b[k])&&w(r[k])?
459
+ Math.pow(b[k]-r[k],2):null;p=(m||0)+(p||0);r.dist=w(p)?Math.sqrt(p):Number.MAX_VALUE;r.distX=w(m)?Math.sqrt(m):Number.MAX_VALUE;n=b[n]-r[n];p=0>n?"left":"right";m=0>n?"right":"left";a[p]&&(p=g(b,a[p],e+1,l),x=p[d]<x[d]?p:r);a[m]&&Math.sqrt(n*n)<x[d]&&(b=g(b,a[m],e+1,l),x=b[d]<x[d]?b:x);return x}var c=this,f=this.kdAxisArray[0],k=this.kdAxisArray[1],d=a?"distX":"dist";a=-1<c.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(e);if(this.kdTree)return g(b,
460
+ this.kdTree,a,a)};d.prototype.pointPlacementToXValue=function(){var b=this.options,a=b.pointRange,e=this.xAxis;b=b.pointPlacement;"between"===b&&(b=e.reversed?-.5:.5);return x(b)?b*(a||e.pointRange):0};d.prototype.isPointInside=function(b){var a=this.chart,e=this.xAxis,g=this.yAxis;return"undefined"!==typeof b.plotY&&"undefined"!==typeof b.plotX&&0<=b.plotY&&b.plotY<=(g?g.len:a.plotHeight)&&0<=b.plotX&&b.plotX<=(e?e.len:a.plotWidth)};d.prototype.drawTracker=function(){var b=this,a=b.options,e=a.trackByArea,
461
+ g=[].concat(e?b.areaPath:b.graphPath),c=b.chart,f=c.pointer,k=c.renderer,d=c.options.tooltip.snap,l=b.tracker,r=function(a){if(c.hoverSeries!==b)b.onMouseOver()},n="rgba(192,192,192,"+(D?.0001:.002)+")";l?l.attr({d:g}):b.graph&&(b.tracker=k.path(g).attr({visibility:b.visible?"visible":"hidden",zIndex:2}).addClass(e?"highcharts-tracker-area":"highcharts-tracker-line").add(b.group),c.styledMode||b.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:n,fill:e?n:"none","stroke-width":b.graph.strokeWidth()+
462
+ (e?0:2*d)}),[b.tracker,b.markerGroup,b.dataLabelsGroup].forEach(function(b){if(b&&(b.addClass("highcharts-tracker").on("mouseover",r).on("mouseout",function(b){f.onTrackerMouseOut(b)}),a.cursor&&!c.styledMode&&b.css({cursor:a.cursor}),m))b.on("touchstart",r)}));B(this,"afterDrawTracker")};d.prototype.addPoint=function(b,a,e,g,c){var f=this.options,k=this.data,d=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var r=f.data,n=this.xData,x;a=O(a,!0);var m={series:this};this.pointClass.prototype.applyOptions.apply(m,
463
+ [b]);var p=m.x;var h=n.length;if(this.requireSorting&&p<n[h-1])for(x=!0;h&&n[h-1]>p;)h--;this.updateParallelArrays(m,"splice",h,0,0);this.updateParallelArrays(m,h);l&&m.name&&(l[p]=m.name);r.splice(h,0,b);x&&(this.data.splice(h,0,null),this.processData());"point"===f.legendType&&this.generatePoints();e&&(k[0]&&k[0].remove?k[0].remove(!1):(k.shift(),this.updateParallelArrays(m,"shift"),r.shift()));!1!==c&&B(this,"addPoint",{point:m});this.isDirtyData=this.isDirty=!0;a&&d.redraw(g)};d.prototype.removePoint=
464
+ function(b,a,e){var g=this,f=g.data,k=f[b],d=g.points,l=g.chart,r=function(){d&&d.length===f.length&&d.splice(b,1);f.splice(b,1);g.options.data.splice(b,1);g.updateParallelArrays(k||{series:g},"splice",b,1);k&&k.destroy();g.isDirty=!0;g.isDirtyData=!0;a&&l.redraw()};c(e,l);a=O(a,!0);k?k.firePointEvent("remove",null,r):r()};d.prototype.remove=function(b,a,e,g){function c(){f.destroy(g);k.isDirtyLegend=k.isDirtyBox=!0;k.linkSeries();O(b,!0)&&k.redraw(a)}var f=this,k=f.chart;!1!==e?B(f,"remove",null,
465
+ c):c()};d.prototype.update=function(b,a){b=u(b,this.userOptions);B(this,"update",{options:b});var c=this,f=c.chart,k=c.userOptions,d=c.initialType||c.type,l=f.options.plotOptions,r=I[d].prototype,n=c.finishedAnimating&&{animation:!1},x={},m,p=["eventOptions","navigatorSeries","baseSeries"],h=b.type||k.type||f.options.chart.type,w=!(this.hasDerivedData||h&&h!==this.type||"undefined"!==typeof b.pointStart||"undefined"!==typeof b.pointInterval||"undefined"!==typeof b.relativeXValue||c.hasOptionChanged("dataGrouping")||
466
+ c.hasOptionChanged("pointStart")||c.hasOptionChanged("pointInterval")||c.hasOptionChanged("pointIntervalUnit")||c.hasOptionChanged("keys"));h=h||d;w&&(p.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==b.visible&&p.push("area","graph"),c.parallelArrays.forEach(function(b){p.push(b+"Data")}),b.data&&(b.dataSorting&&g(c.options.dataSorting,b.dataSorting),
467
+ this.setData(b.data,!1)));b=E(k,n,{index:"undefined"===typeof k.index?c.index:k.index,pointStart:O(l&&l.series&&l.series.pointStart,k.pointStart,c.xData[0])},!w&&{data:c.options.data},b);w&&b.data&&(b.data=c.options.data);p=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(p);p.forEach(function(b){p[b]=c[b];delete c[b]});l=!1;if(I[h]){if(l=h!==c.type,c.remove(!1,!1,!1,!0),l)if(Object.setPrototypeOf)Object.setPrototypeOf(c,I[h].prototype);else{n=Object.hasOwnProperty.call(c,"hcEvents")&&
468
+ c.hcEvents;for(m in r)c[m]=void 0;g(c,I[h].prototype);n?c.hcEvents=n:delete c.hcEvents}}else e(17,!0,f,{missingModuleFor:h});p.forEach(function(b){c[b]=p[b]});c.init(f,b);if(w&&this.points){var J=c.options;!1===J.visible?(x.graphic=1,x.dataLabel=1):c._hasPointLabels||(b=J.marker,r=J.dataLabels,!b||!1!==b.enabled&&(k.marker&&k.marker.symbol)===b.symbol||(x.graphic=1),r&&!1===r.enabled&&(x.dataLabel=1));this.points.forEach(function(b){b&&b.series&&(b.resolveColor(),Object.keys(x).length&&b.destroyElements(x),
469
+ !1===J.showInLegend&&b.legendItem&&f.legend.destroyItem(b))},this)}c.initialType=d;f.linkSeries();l&&c.linkedSeries.length&&(c.isDirtyData=!0);B(this,"afterUpdate");O(a,!0)&&f.redraw(w?void 0:!1)};d.prototype.setName=function(b){this.name=this.options.name=this.userOptions.name=b;this.chart.isDirtyLegend=!0};d.prototype.hasOptionChanged=function(b){var a=this.options[b],e=this.chart.options.plotOptions,g=this.userOptions[b];return g?a!==g:a!==O(e&&e[this.type]&&e[this.type][b],e&&e.series&&e.series[b],
470
+ a)};d.prototype.onMouseOver=function(){var b=this.chart,a=b.hoverSeries;b.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&B(this,"mouseOver");this.setState("hover");b.hoverSeries=this};d.prototype.onMouseOut=function(){var b=this.options,a=this.chart,e=a.tooltip,g=a.hoverPoint;a.hoverSeries=null;if(g)g.onMouseOut();this&&b.events.mouseOut&&B(this,"mouseOut");!e||this.stickyTracking||e.shared&&!this.noSharedTooltip||e.hide();a.series.forEach(function(b){b.setState("",
471
+ !0)})};d.prototype.setState=function(b,a){var e=this,g=e.options,c=e.graph,f=g.inactiveOtherPoints,k=g.states,d=O(k[b||"normal"]&&k[b||"normal"].animation,e.chart.options.chart.animation),l=g.lineWidth,r=0,n=g.opacity;b=b||"";if(e.state!==b&&([e.group,e.markerGroup,e.dataLabelsGroup].forEach(function(a){a&&(e.state&&a.removeClass("highcharts-series-"+e.state),b&&a.addClass("highcharts-series-"+b))}),e.state=b,!e.chart.styledMode)){if(k[b]&&!1===k[b].enabled)return;b&&(l=k[b].lineWidth||l+(k[b].lineWidthPlus||
472
+ 0),n=O(k[b].opacity,n));if(c&&!c.dashstyle)for(g={"stroke-width":l},c.animate(g,d);e["zone-graph-"+r];)e["zone-graph-"+r].animate(g,d),r+=1;f||[e.group,e.markerGroup,e.dataLabelsGroup,e.labelBySeries].forEach(function(b){b&&b.animate({opacity:n},d)})}a&&f&&e.points&&e.setAllPointsToState(b||void 0)};d.prototype.setAllPointsToState=function(b){this.points.forEach(function(a){a.setState&&a.setState(b)})};d.prototype.setVisible=function(b,a){var e=this,g=e.chart,c=e.legendItem,f=g.options.chart.ignoreHiddenSeries,
473
+ k=e.visible,d=(e.visible=b=e.options.visible=e.userOptions.visible="undefined"===typeof b?!k:b)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(b){if(e[b])e[b][d]()});if(g.hoverSeries===e||(g.hoverPoint&&g.hoverPoint.series)===e)e.onMouseOut();c&&g.legend.colorizeItem(e,b);e.isDirty=!0;e.options.stacking&&g.series.forEach(function(b){b.options.stacking&&b.visible&&(b.isDirty=!0)});e.linkedSeries.forEach(function(a){a.setVisible(b,!1)});f&&(g.isDirtyBox=!0);
474
+ B(e,d);!1!==a&&g.redraw()};d.prototype.show=function(){this.setVisible(!0)};d.prototype.hide=function(){this.setVisible(!1)};d.prototype.select=function(b){this.selected=b=this.options.selected="undefined"===typeof b?!this.selected:b;this.checkbox&&(this.checkbox.checked=b);B(this,b?"select":"unselect")};d.prototype.shouldShowTooltip=function(b,a,e){void 0===e&&(e={});e.series=this;e.visiblePlotOnly=!0;return this.chart.isInsidePlot(b,a,e)};d.defaultOptions=H;return d}();g(d.prototype,{axisTypes:["xAxis",
475
+ "yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:t.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:G,requireSorting:!0,sorted:!0});y.series=d;"";"";return d});N(h,"Extensions/ScrollablePlotArea.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Series/Series.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G){var E=d.stop,y=
476
+ G.addEvent,q=G.createElement,p=G.merge,f=G.pick;y(A,"afterSetChartSize",function(c){var a=this.options.chart.scrollablePlotArea,f=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=p(this.plotBox);this.plotBox.width=this.plotWidth+=f;this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var d={1:{name:"right",value:f}}}}else a&&(this.scrollablePixelsY=f=Math.max(0,
477
+ a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=p(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,d={2:{name:"bottom",value:f}});d&&!c.skipAxes&&this.axes.forEach(function(a){d[a.side]?a.getPlotLinePath=function(){var c=d[a.side].name,f=this[c];this[c]=f-d[a.side].value;var n=h.prototype.getPlotLinePath.apply(this,arguments);this[c]=f;return n}:(a.setAxisSize(),a.setAxisTranslation())})}});y(A,"render",function(){this.scrollablePixelsX||
478
+ this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var c=this,a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=q("div",{className:"highcharts-scrolling"},
479
+ a,this.scrollingParent);y(this.scrollingContainer,"scroll",function(){c.pointer&&delete c.pointer.chartPosition});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var c=this.container,a=this.fixedRenderer,f=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
480
+ d;this.scrollablePixelsX&&!this.inverted?d=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?d=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?d=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(d=".highcharts-yaxis");d&&f.push(d+":not(.highcharts-radial-axis)",d+"-labels:not(.highcharts-radial-axis-labels)");f.forEach(function(f){[].forEach.call(c.querySelectorAll(f),function(c){(c.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(c);c.style.pointerEvents="auto"})})};
481
+ A.prototype.applyFixed=function(){var c=!this.fixedDiv,a=this.options.chart,d=a.scrollablePlotArea,m=t.getRendererType();c?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=a=new m(this.fixedDiv,this.chartWidth,this.chartHeight,
482
+ 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(),y(this,"afterShowResetZoom",this.moveFixedElements),y(this,"afterDrilldown",this.moveFixedElements),y(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||c)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+
483
+ (this.scrollablePixelsX||0);m=this.chartHeight+(this.scrollablePixelsY||0);E(this.container);this.container.style.width=a+"px";this.container.style.height=m+"px";this.renderer.boxWrapper.attr({width:a,height:m,viewBox:[0,0,a,m].join(" ")});this.chartBackground.attr({width:a,height:m});this.scrollingContainer.style.height=this.chartHeight+"px";c&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
484
+ d.scrollPositionY));m=this.axisOffset;c=this.plotTop-m[0]-1;d=this.plotLeft-m[3]-1;a=this.plotTop+this.plotHeight+m[2]+1;m=this.plotLeft+this.plotWidth+m[1]+1;var p=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),h=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);c=this.scrollablePixelsX?[["M",0,c],["L",this.plotLeft-1,c],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",p,c],["L",this.chartWidth,c],["L",this.chartWidth,a],["L",p,a],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop-
485
+ 1],["L",m,this.plotTop-1],["L",m,0],["Z"],["M",d,h],["L",d,this.chartHeight],["L",m,this.chartHeight],["L",m,h],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:c})};y(h,"afterInit",function(){this.chart.scrollableDirty=!0});y(F,"show",function(){this.chart.scrollableDirty=!0});""});N(h,"Core/Axis/StackingAxis.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/Utilities.js"]],function(d,h,A){var E=d.getDeferredAnimation,t=A.addEvent,G=
486
+ A.destroyObjectProperties,H=A.fireEvent,y=A.isNumber,q=A.objectEach,p;(function(f){function c(){var a=this.stacking;if(a){var c=a.stacks;q(c,function(a,f){G(a);c[f]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function a(){this.stacking||(this.stacking=new m(this))}var d=[];f.compose=function(f){-1===d.indexOf(f)&&(d.push(f),t(f,"init",a),t(f,"destroy",c));return f};var m=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
487
+ function(){var a=this.axis,c=a.series,f=a.options.reversedStacks,d=c.length,n;if(!a.isXAxis){this.usePercentage=!1;for(n=d;n--;){var m=c[f?n:d-n-1];m.setStackedPoints();m.setGroupedPoints()}for(n=0;n<d;n++)c[n].modifyStacks();H(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;q(a,function(a){q(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,c=a.stacks;a.axis.isXAxis||q(c,function(c){q(c,
488
+ function(f,d){y(f.touched)&&f.touched<a.stacksTouched?(f.destroy(),delete c[d]):(f.total=null,f.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,c=a.chart,f=c.renderer,d=this.stacks;a=E(c,a.options.stackLabels&&a.options.stackLabels.animation||!1);var n=this.stackTotalGroup=this.stackTotalGroup||f.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();n.translate(c.plotLeft,c.plotTop);q(d,function(a){q(a,function(a){a.render(n)})});n.animate({opacity:1},
489
+ a)};return a}();f.Additions=m})(p||(p={}));return p});N(h,"Extensions/Stacking.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Series/Series.js"],h["Core/Axis/StackingAxis.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G,H){var y=A.format,q=H.correctFloat,p=H.defined,f=H.destroyObjectProperties,c=H.isArray,a=H.isNumber,n=H.objectEach,m=H.pick,D=function(){function c(a,c,f,d,n){var m=a.chart.inverted;this.axis=a;this.isNegative=f;this.options=
490
+ c=c||{};this.x=d;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=n;this.rightCliff=this.leftCliff=0;this.alignOptions={align:c.align||(m?f?"left":"right":"center"),verticalAlign:c.verticalAlign||(m?"middle":f?"bottom":"top"),y:c.y,x:c.x};this.textAlign=c.textAlign||(m?f?"right":"left":"center")}c.prototype.destroy=function(){f(this,this.axis)};c.prototype.render=function(a){var c=this.axis.chart,f=this.options,d=f.format;d=d?y(d,this,c):f.formatter.call(this);this.label?this.label.attr({text:d,
491
+ visibility:"hidden"}):(this.label=c.renderer.label(d,null,null,f.shape,null,null,f.useHTML,!1,"stack-labels"),d={r:f.borderRadius||0,text:d,rotation:f.rotation,padding:m(f.padding,5),visibility:"hidden"},c.styledMode||(d.fill=f.backgroundColor,d.stroke=f.borderColor,d["stroke-width"]=f.borderWidth,this.label.css(f.style)),this.label.attr(d),this.label.added||this.label.add(a));this.label.labelrank=c.plotSizeY};c.prototype.setOffset=function(c,f,d,n,h){var u=this.axis,k=u.chart;n=u.translate(u.stacking.usePercentage?
492
+ 100:n?n:this.total,0,0,0,1);d=u.translate(d?d:0);d=p(n)&&Math.abs(n-d);c=m(h,k.xAxis[0].translate(this.x))+c;u=p(n)&&this.getStackBox(k,this,c,n,f,d,u);f=this.label;d=this.isNegative;c="justify"===m(this.options.overflow,"justify");var w=this.textAlign;f&&u&&(h=f.getBBox(),n=f.padding,w="left"===w?k.inverted?-n:n:"right"===w?h.width:k.inverted&&"center"===w?h.width/2:k.inverted?d?h.width+n:-n:h.width/2,d=k.inverted?h.height/2:d?-n:h.height,this.alignOptions.x=m(this.options.x,0),this.alignOptions.y=
493
+ m(this.options.y,0),u.x-=w,u.y-=d,f.align(this.alignOptions,null,u),k.isInsidePlot(f.alignAttr.x+w-this.alignOptions.x,f.alignAttr.y+d-this.alignOptions.y)?f.show():(f.alignAttr.y=-9999,c=!1),c&&t.prototype.justifyDataLabel.call(this.axis,f,this.alignOptions,f.alignAttr,h,u),f.attr({x:f.alignAttr.x,y:f.alignAttr.y}),m(!c&&this.options.crop,!0)&&((k=a(f.x)&&a(f.y)&&k.isInsidePlot(f.x-n+f.width,f.y)&&k.isInsidePlot(f.x+n,f.y))||f.hide()))};c.prototype.getStackBox=function(a,c,f,d,n,m,k){var p=c.axis.reversed,
494
+ l=a.inverted,e=k.height+k.pos-(l?a.plotLeft:a.plotTop);c=c.isNegative&&!p||!c.isNegative&&p;return{x:l?c?d-k.right:d-m+k.pos-a.plotLeft:f+a.xAxis[0].transB-a.plotLeft,y:l?k.height-f-n:c?e-d-m:e-d,width:l?m:n,height:l?n:m}};return c}();h.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(f){var d=f.xAxis&&f.xAxis.options||{};!f.options.stacking||!0!==
495
+ f.visible&&!1!==a.options.chart.ignoreHiddenSeries||(f.stackKey=[f.type,m(f.options.stack,""),c?d.top:d.left,c?d.height:d.width].join())})};G.compose(d);t.prototype.setGroupedPoints=function(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?t.prototype.setStackedPoints.call(this,"group"):a&&n(a.stacks,function(c,f){"group"===f.slice(-5)&&(n(c,function(a){return a.destroy()}),delete a.stacks[f])})};
496
+ t.prototype.setStackedPoints=function(a){var f=a||this.options.stacking;if(f&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var d=this.processedXData,n=this.processedYData,h=[],z=n.length,u=this.options,k=u.threshold,w=m(u.startFromThreshold&&k,0);u=u.stack;a=a?this.type+","+f:this.stackKey;var l="-"+a,e=this.negStacks,g=this.yAxis,b=g.stacking.stacks,B=g.stacking.oldStacks,J,r;g.stacking.stacksTouched+=1;for(r=0;r<z;r++){var x=d[r];var M=n[r];var C=this.getStackIndicator(C,
497
+ x,this.index);var t=C.key;var O=(J=e&&M<(w?0:k))?l:a;b[O]||(b[O]={});b[O][x]||(B[O]&&B[O][x]?(b[O][x]=B[O][x],b[O][x].total=null):b[O][x]=new D(g,g.options.stackLabels,J,x,u));O=b[O][x];null!==M?(O.points[t]=O.points[this.index]=[m(O.cumulative,w)],p(O.cumulative)||(O.base=t),O.touched=g.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(O.points[t][0]=O.points[this.index+","+x+",0"][0])):O.points[t]=O.points[this.index]=null;"percent"===f?(J=J?a:l,e&&b[J]&&b[J][x]?(J=b[J][x],O.total=J.total=
498
+ Math.max(J.total,O.total)+Math.abs(M)||0):O.total=q(O.total+(Math.abs(M)||0))):"group"===f?(c(M)&&(M=M[0]),null!==M&&(O.total=(O.total||0)+1)):O.total=q(O.total+(M||0));O.cumulative="group"===f?(O.total||1)-1:m(O.cumulative,w)+(M||0);null!==M&&(O.points[t].push(O.cumulative),h[r]=O.cumulative,O.hasValidPoints=!0)}"percent"===f&&(g.stacking.usePercentage=!0);"group"!==f&&(this.stackedYData=h);g.stacking.oldStacks={}}};t.prototype.modifyStacks=function(){var a=this,c=a.stackKey,f=a.yAxis.stacking.stacks,
499
+ d=a.processedXData,n,m=a.options.stacking;a[m+"Stacker"]&&[c,"-"+c].forEach(function(c){for(var k=d.length,p,l;k--;)if(p=d[k],n=a.getStackIndicator(n,p,a.index,c),l=(p=f[c]&&f[c][p])&&p.points[n.key])a[m+"Stacker"](l,p,k)})};t.prototype.percentStacker=function(a,c,f){c=c.total?100/c.total:0;a[0]=q(a[0]*c);a[1]=q(a[1]*c);this.stackedYData[f]=a[1]};t.prototype.getStackIndicator=function(a,c,f,d){!p(a)||a.x!==c||d&&a.key!==d?a={x:c,index:0,key:d}:a.index++;a.key=[f,c,a.index].join();return a};F.StackItem=
500
+ D;"";return F.StackItem});N(h,"Series/Line/LineSeries.js",[h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A){var E=this&&this.__extends||function(){var d=function(h,q){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var c in f)f.hasOwnProperty(c)&&(d[c]=f[c])};return d(h,q)};return function(h,q){function p(){this.constructor=h}d(h,q);h.prototype=null===q?Object.create(q):(p.prototype=q.prototype,
501
+ new p)}}(),t=A.defined,G=A.merge;A=function(h){function y(){var d=null!==h&&h.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}E(y,h);y.prototype.drawGraph=function(){var d=this,p=this.options,f=(this.gappedPath||this.getGraphPath).call(this),c=this.chart.styledMode,a=[["graph","highcharts-graph"]];c||a[0].push(p.lineColor||this.color||"#cccccc",p.dashStyle);a=d.getZonesGraphs(a);a.forEach(function(a,m){var n=a[0],h=d[n],q=h?"animate":"attr";h?(h.endX=d.preventGraphAnimation?
502
+ null:f.xMap,h.animate({d:f})):f.length&&(d[n]=h=d.chart.renderer.path(f).addClass(a[1]).attr({zIndex:1}).add(d.group));h&&!c&&(n={stroke:a[2],"stroke-width":p.lineWidth,fill:d.fillGraph&&d.color||"none"},a[3]?n.dashstyle=a[3]:"square"!==p.linecap&&(n["stroke-linecap"]=n["stroke-linejoin"]="round"),h[q](n).shadow(2>m&&p.shadow));h&&(h.startX=f.xMap,h.isArea=f.isArea)})};y.prototype.getGraphPath=function(d,p,f){var c=this,a=c.options,n=[],m=[],h,q=a.step;d=d||c.points;var I=d.reversed;I&&d.reverse();
503
+ (q={right:1,center:2}[q]||q&&3)&&I&&(q=4-q);d=this.getValidPoints(d,!1,!(a.connectNulls&&!p&&!f));d.forEach(function(D,C){var v=D.plotX,z=D.plotY,u=d[C-1];(D.leftCliff||u&&u.rightCliff)&&!f&&(h=!0);D.isNull&&!t(p)&&0<C?h=!a.connectNulls:D.isNull&&!p?h=!0:(0===C||h?C=[["M",D.plotX,D.plotY]]:c.getPointSpline?C=[c.getPointSpline(d,D,C)]:q?(C=1===q?[["L",u.plotX,z]]:2===q?[["L",(u.plotX+v)/2,u.plotY],["L",(u.plotX+v)/2,z]]:[["L",v,u.plotY]],C.push(["L",v,z])):C=[["L",v,z]],m.push(D.x),q&&(m.push(D.x),
504
+ 2===q&&m.push(D.x)),n.push.apply(n,C),h=!1)});n.xMap=m;return c.graphPath=n};y.prototype.getZonesGraphs=function(d){this.zones.forEach(function(h,f){f=["zone-graph-"+f,"highcharts-graph highcharts-zone-graph-"+f+" "+(h.className||"")];this.chart.styledMode||f.push(h.color||this.color,h.dashStyle||this.options.dashStyle);d.push(f)},this);return d};y.defaultOptions=G(d.defaultOptions,{});return y}(d);h.registerSeriesType("line",A);"";return A});N(h,"Series/Area/AreaSeries.js",[h["Core/Color/Color.js"],
505
+ h["Core/Legend/LegendSymbol.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A,F){var t=this&&this.__extends||function(){var f=function(c,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f])};return f(c,a)};return function(c,a){function d(){this.constructor=c}f(c,a);c.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),E=d.parse,H=A.seriesTypes.line;d=
506
+ F.extend;var y=F.merge,q=F.objectEach,p=F.pick;F=function(f){function c(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}t(c,f);c.prototype.drawGraph=function(){this.areaPath=[];f.prototype.drawGraph.apply(this);var a=this,c=this.areaPath,d=this.options,h=[["area","highcharts-area",this.color,d.fillColor]];this.zones.forEach(function(c,f){h.push(["zone-area-"+f,"highcharts-area highcharts-zone-area-"+f+" "+c.className,c.color||a.color,c.fillColor||
507
+ d.fillColor])});h.forEach(function(f){var n=f[0],m=a[n],h=m?"animate":"attr",q={};m?(m.endX=a.preventGraphAnimation?null:c.xMap,m.animate({d:c})):(q.zIndex=0,m=a[n]=a.chart.renderer.path(c).addClass(f[1]).add(a.group),m.isArea=!0);a.chart.styledMode||(q.fill=p(f[3],E(f[2]).setOpacity(p(d.fillOpacity,.75)).get()));m[h](q);m.startX=c.xMap;m.shiftUnit=d.step?2:1})};c.prototype.getGraphPath=function(a){var c=H.prototype.getGraphPath,f=this.options,d=f.stacking,h=this.yAxis,q,t=[],y=[],v=this.index,z=
508
+ h.stacking.stacks[this.stackKey],u=f.threshold,k=Math.round(h.getThreshold(f.threshold));f=p(f.connectNulls,"percent"===d);var w=function(b,g,c){var f=a[b];b=d&&z[f.x].points[v];var l=f[c+"Null"]||0;c=f[c+"Cliff"]||0;f=!0;if(c||l){var n=(l?b[0]:b[1])+c;var m=b[0]+c;f=!!l}else!d&&a[g]&&a[g].isNull&&(n=m=u);"undefined"!==typeof n&&(y.push({plotX:e,plotY:null===n?k:h.getThreshold(n),isNull:f,isCliff:!0}),t.push({plotX:e,plotY:null===m?k:h.getThreshold(m),doCurve:!1}))};a=a||this.points;d&&(a=this.getStackPoints(a));
509
+ for(q=0;q<a.length;q++){d||(a[q].leftCliff=a[q].rightCliff=a[q].leftNull=a[q].rightNull=void 0);var l=a[q].isNull;var e=p(a[q].rectPlotX,a[q].plotX);var g=d?p(a[q].yBottom,k):k;if(!l||f)f||w(q,q-1,"left"),l&&!d&&f||(y.push(a[q]),t.push({x:q,plotX:e,plotY:g})),f||w(q,q+1,"right")}q=c.call(this,y,!0,!0);t.reversed=!0;l=c.call(this,t,!0,!0);(g=l[0])&&"M"===g[0]&&(l[0]=["L",g[1],g[2]]);l=q.concat(l);l.length&&l.push(["Z"]);c=c.call(this,y,!1,f);l.xMap=q.xMap;this.areaPath=l;return c};c.prototype.getStackPoints=
510
+ function(a){var c=this,f=[],d=[],h=this.xAxis,t=this.yAxis,y=t.stacking.stacks[this.stackKey],E={},v=t.series,z=v.length,u=t.options.reversedStacks?1:-1,k=v.indexOf(c);a=a||this.points;if(this.options.stacking){for(var w=0;w<a.length;w++)a[w].leftNull=a[w].rightNull=void 0,E[a[w].x]=a[w];q(y,function(a,g){null!==a.total&&d.push(g)});d.sort(function(a,g){return a-g});var l=v.map(function(a){return a.visible});d.forEach(function(a,g){var b=0,e,n;if(E[a]&&!E[a].isNull)f.push(E[a]),[-1,1].forEach(function(b){var f=
511
+ 1===b?"rightNull":"leftNull",r=0,x=y[d[g+b]];if(x)for(var h=k;0<=h&&h<z;){var m=v[h].index;e=x.points[m];e||(m===c.index?E[a][f]=!0:l[h]&&(n=y[a].points[m])&&(r-=n[1]-n[0]));h+=u}E[a][1===b?"rightCliff":"leftCliff"]=r});else{for(var r=k;0<=r&&r<z;){if(e=y[a].points[v[r].index]){b=e[1];break}r+=u}b=p(b,0);b=t.translate(b,0,1,0,1);f.push({isNull:!0,plotX:h.translate(a,0,0,0,1),x:a,plotY:b,yBottom:b})}})}return f};c.defaultOptions=y(H.defaultOptions,{threshold:0});return c}(H);d(F.prototype,{singleStacks:!1,
512
+ drawLegendSymbol:h.drawRectangle});A.registerSeriesType("area",F);"";return F});N(h,"Series/Spline/SplineSeries.js",[h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h){var E=this&&this.__extends||function(){var d=function(h,q){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var c in f)f.hasOwnProperty(c)&&(d[c]=f[c])};return d(h,q)};return function(h,q){function p(){this.constructor=h}d(h,q);h.prototype=null===q?Object.create(q):
513
+ (p.prototype=q.prototype,new p)}}(),F=d.seriesTypes.line,t=h.merge,G=h.pick;h=function(d){function h(){var h=null!==d&&d.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}E(h,d);h.prototype.getPointSpline=function(d,h,f){var c=h.plotX||0,a=h.plotY||0,n=d[f-1];f=d[f+1];if(n&&!n.isNull&&!1!==n.doCurve&&!h.isCliff&&f&&!f.isNull&&!1!==f.doCurve&&!h.isCliff){d=n.plotY||0;var m=f.plotX||0;f=f.plotY||0;var p=0;var q=(1.5*c+(n.plotX||0))/2.5;var t=(1.5*a+d)/2.5;m=(1.5*c+
514
+ m)/2.5;var y=(1.5*a+f)/2.5;m!==q&&(p=(y-t)*(m-c)/(m-q)+a-y);t+=p;y+=p;t>d&&t>a?(t=Math.max(d,a),y=2*a-t):t<d&&t<a&&(t=Math.min(d,a),y=2*a-t);y>f&&y>a?(y=Math.max(f,a),t=2*a-y):y<f&&y<a&&(y=Math.min(f,a),t=2*a-y);h.rightContX=m;h.rightContY=y}h=["C",G(n.rightContX,n.plotX,0),G(n.rightContY,n.plotY,0),G(q,c,0),G(t,a,0),c,a];n.rightContX=n.rightContY=void 0;return h};h.defaultOptions=t(F.defaultOptions);return h}(F);d.registerSeriesType("spline",h);"";return h});N(h,"Series/AreaSpline/AreaSplineSeries.js",
515
+ [h["Series/Area/AreaSeries.js"],h["Series/Spline/SplineSeries.js"],h["Core/Legend/LegendSymbol.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A,F,t){var E=this&&this.__extends||function(){var d=function(f,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f])};return d(f,c)};return function(f,c){function a(){this.constructor=f}d(f,c);f.prototype=null===c?Object.create(c):
516
+ (a.prototype=c.prototype,new a)}}(),H=d.prototype,y=t.extend,q=t.merge;t=function(p){function f(){var c=null!==p&&p.apply(this,arguments)||this;c.data=void 0;c.points=void 0;c.options=void 0;return c}E(f,p);f.defaultOptions=q(h.defaultOptions,d.defaultOptions);return f}(h);y(t.prototype,{getGraphPath:H.getGraphPath,getStackPoints:H.getStackPoints,drawGraph:H.drawGraph,drawLegendSymbol:A.drawRectangle});F.registerSeriesType("areaspline",t);"";return t});N(h,"Series/Column/ColumnSeries.js",[h["Core/Animation/AnimationUtilities.js"],
517
+ h["Core/Color/Color.js"],h["Core/Globals.js"],h["Core/Legend/LegendSymbol.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G,H){var y=this&&this.__extends||function(){var a=function(c,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(c,f)};return function(c,f){function d(){this.constructor=c}a(c,f);c.prototype=null===f?Object.create(f):
518
+ (d.prototype=f.prototype,new d)}}(),q=d.animObject,p=h.parse,f=A.hasTouch;d=A.noop;var c=H.clamp,a=H.css,n=H.defined,m=H.extend,D=H.fireEvent,C=H.isArray,I=H.isNumber,E=H.merge,K=H.pick,v=H.objectEach;H=function(d){function h(){var a=null!==d&&d.apply(this,arguments)||this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}y(h,d);h.prototype.animate=function(a){var f=this,d=this.yAxis,e=f.options,g=this.chart.inverted,b={},k=g?"translateX":"translateY";if(a)b.scaleY=
519
+ .001,a=c(d.toPixels(e.threshold),d.pos,d.pos+d.len),g?b.translateX=a-d.len:b.translateY=a,f.clipBox&&f.setClip(),f.group.attr(b);else{var h=Number(f.group.attr(k));f.group.animate({scaleY:1},m(q(f.options.animation),{step:function(a,e){f.group&&(b[k]=h+e.pos*(d.pos-h),f.group.attr(b))}}))}};h.prototype.init=function(a,c){d.prototype.init.apply(this,arguments);var f=this;a=f.chart;a.hasRendered&&a.series.forEach(function(a){a.type===f.type&&(a.isDirty=!0)})};h.prototype.getColumnMetrics=function(){var a=
520
+ this,c=a.options,f=a.xAxis,e=a.yAxis,g=f.options.reversedStacks;g=f.reversed&&!g||!f.reversed&&g;var b={},d,h=0;!1===c.grouping?h=1:a.chart.series.forEach(function(c){var g=c.yAxis,f=c.options;if(c.type===a.type&&(c.visible||!a.chart.options.chart.ignoreHiddenSeries)&&e.len===g.len&&e.pos===g.pos){if(f.stacking&&"group"!==f.stacking){d=c.stackKey;"undefined"===typeof b[d]&&(b[d]=h++);var k=b[d]}else!1!==f.grouping&&(k=h++);c.columnIndex=k}});var r=Math.min(Math.abs(f.transA)*(f.ordinal&&f.ordinal.slope||
521
+ c.pointRange||f.closestPointRange||f.tickInterval||1),f.len),n=r*c.groupPadding,m=(r-2*n)/(h||1);c=Math.min(c.maxPointWidth||f.len,K(c.pointWidth,m*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(m-c)/2+(n+((a.columnIndex||0)+(g?1:0))*m-r/2)*(g?-1:1),paddedWidth:m,columnCount:h};return a.columnMetrics};h.prototype.crispCol=function(a,c,f,e){var g=this.chart,b=this.borderWidth,d=-(b%2?.5:0);b=b%2?.5:1;g.inverted&&g.renderer.isVML&&(b+=1);this.options.crisp&&(f=Math.round(a+f)+d,a=Math.round(a)+
522
+ d,f-=a);e=Math.round(c+e)+b;d=.5>=Math.abs(c)&&.5<e;c=Math.round(c)+b;e-=c;d&&e&&(--c,e+=1);return{x:a,y:c,width:f,height:e}};h.prototype.adjustForMissingColumns=function(a,c,f,e){var g=this,b=this.options.stacking;if(!f.isNull&&1<e.columnCount){var d=0,k=0;v(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof f.x&&(a=a[f.x.toString()])){var e=a.points[g.index],c=a.total;b?(e&&(d=k),a.hasValidPoints&&k++):C(e)&&(d=e[1],k=c||0)}});a=(f.plotX||0)+((k-1)*e.paddedWidth+c)/
523
+ 2-c-d*e.paddedWidth}return a};h.prototype.translate=function(){var a=this,f=a.chart,d=a.options,e=a.dense=2>a.closestPointRange*a.xAxis.transA;e=a.borderWidth=K(d.borderWidth,e?0:1);var g=a.xAxis,b=a.yAxis,h=d.threshold,m=a.translatedThreshold=b.getThreshold(h),r=K(d.minPointLength,5),x=a.getColumnMetrics(),p=x.width,u=a.pointXOffset=x.offset,q=a.dataMin,v=a.dataMax,z=a.barW=Math.max(p,1+2*e);f.inverted&&(m-=.5);d.pointPadding&&(z=Math.ceil(z));t.prototype.translate.apply(a);a.points.forEach(function(e){var k=
524
+ K(e.yBottom,m),l=999+Math.abs(k),B=e.plotX||0;l=c(e.plotY,-l,b.len+l);var w=Math.min(l,k),J=Math.max(l,k)-w,M=p,D=B+u,t=z;r&&Math.abs(J)<r&&(J=r,B=!b.reversed&&!e.negative||b.reversed&&e.negative,I(h)&&I(v)&&e.y===h&&v<=h&&(b.min||0)<h&&(q!==v||(b.max||0)<=h)&&(B=!B),w=Math.abs(w-m)>r?k-r:m-(B?r:0));n(e.options.pointWidth)&&(M=t=Math.ceil(e.options.pointWidth),D-=Math.round((M-p)/2));d.centerInCategory&&(D=a.adjustForMissingColumns(D,M,e,x));e.barX=D;e.pointWidth=M;e.tooltipPos=f.inverted?[c(b.len+
525
+ b.pos-f.plotLeft-l,b.pos-f.plotLeft,b.len+b.pos-f.plotLeft),g.len+g.pos-f.plotTop-D-t/2,J]:[g.left-f.plotLeft+D+t/2,c(l+b.pos-f.plotTop,b.pos-f.plotTop,b.len+b.pos-f.plotTop),J];e.shapeType=a.pointClass.prototype.shapeType||"rect";e.shapeArgs=a.crispCol.apply(a,e.isNull?[D,m,t,0]:[D,w,t,J])})};h.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};h.prototype.pointAttribs=function(a,c){var f=this.options,e=this.pointAttrToOptions||{},g=e.stroke||
526
+ "borderColor",b=e["stroke-width"]||"borderWidth",d=a&&a.color||this.color,k=a&&a[g]||f[g]||d;e=a&&a.options.dashStyle||f.dashStyle;var r=a&&a[b]||f[b]||this[b]||0,h=K(a&&a.opacity,f.opacity,1);if(a&&this.zones.length){var n=a.getZone();d=a.options.color||n&&(n.color||a.nonZonedColor)||this.color;n&&(k=n.borderColor||k,e=n.dashStyle||e,r=n.borderWidth||r)}c&&a&&(a=E(f.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,d=a.color||"undefined"!==typeof c&&p(d).brighten(a.brightness).get()||
527
+ d,k=a[g]||k,r=a[b]||r,e=a.dashStyle||e,h=K(a.opacity,h));g={fill:d,stroke:k,"stroke-width":r,opacity:h};e&&(g.dashstyle=e);return g};h.prototype.drawPoints=function(){var a=this,c=this.chart,f=a.options,e=c.renderer,g=f.animationLimit||250,b;a.points.forEach(function(d){var k=d.graphic,l=!!k,h=k&&c.pointCount<g?"animate":"attr";if(I(d.plotY)&&null!==d.y){b=d.shapeArgs;k&&d.hasNewShapeType()&&(k=k.destroy());a.enabledDataSorting&&(d.startXPos=a.xAxis.reversed?-(b?b.width||0:0):a.xAxis.width);k||(d.graphic=
528
+ k=e[d.shapeType](b).add(d.group||a.group))&&a.enabledDataSorting&&c.hasRendered&&c.pointCount<g&&(k.attr({x:d.startXPos}),l=!0,h="animate");if(k&&l)k[h](E(b));if(f.borderRadius)k[h]({r:f.borderRadius});c.styledMode||k[h](a.pointAttribs(d,d.selected&&"select")).shadow(!1!==d.allowShadow&&f.shadow,null,f.stacking&&!f.borderRadius);k&&(k.addClass(d.getClassName(),!0),k.attr({visibility:d.visible?"inherit":"hidden"}))}else k&&(d.graphic=k.destroy())})};h.prototype.drawTracker=function(){var c=this,d=
529
+ c.chart,l=d.pointer,e=function(b){var a=l.getPointFromEvent(b);"undefined"!==typeof a&&(l.isDirectTouch=!0,a.onMouseOver(b))},g;c.points.forEach(function(b){g=C(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[];b.graphic&&(b.graphic.element.point=b);g.forEach(function(a){a.div?a.div.point=b:a.element.point=b})});c._hasTracking||(c.trackerGroups.forEach(function(b){if(c[b]){c[b].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(b){l.onTrackerMouseOut(b)});if(f)c[b].on("touchstart",
530
+ e);!d.styledMode&&c.options.cursor&&c[b].css(a).css({cursor:c.options.cursor})}}),c._hasTracking=!0);D(this,"afterDrawTracker")};h.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(c){c.type===a.type&&(c.isDirty=!0)});t.prototype.remove.apply(a,arguments)};h.defaultOptions=E(t.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
531
+ select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return h}(t);m(H.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:F.drawRectangle,getSymbol:d,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});G.registerSeriesType("column",H);"";"";return H});N(h,"Core/Series/DataLabel.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/FormatUtilities.js"],
532
+ h["Core/Utilities.js"]],function(d,h,A){var E=d.getDeferredAnimation,t=h.format,G=A.defined,H=A.extend,y=A.fireEvent,q=A.isArray,p=A.merge,f=A.objectEach,c=A.pick,a=A.splat,n;(function(d){function h(a,f,d,l,e){var g=this,b=this.chart,k=this.isCartesian&&b.inverted,h=this.enabledDataSorting,r=c(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=c(a.plotY,-9999),m=f.getBBox(),p=d.rotation,u=d.align,q=b.isInsidePlot(r,Math.round(n),{inverted:k,paneCoordinates:!0,series:g}),w=function(b){h&&g.xAxis&&!v&&g.setDataLabelStartPos(a,
533
+ f,e,q,b)},v="justify"===c(d.overflow,h?"none":"justify"),z=this.visible&&!1!==a.visible&&(a.series.forceDL||h&&!v||q||c(d.inside,!!this.options.stacking)&&l&&b.isInsidePlot(r,k?l.x+1:l.y+l.height-1,{inverted:k,paneCoordinates:!0,series:g}));if(z){var D=b.renderer.fontMetrics(b.styledMode?void 0:d.style.fontSize,f).b;l=H({x:k?this.yAxis.len-n:r,y:Math.round(k?this.xAxis.len-r:n),width:0,height:0},l);H(d,{width:m.width,height:m.height});p?(v=!1,r=b.renderer.rotCorr(D,p),r={x:l.x+(d.x||0)+l.width/2+
534
+ r.x,y:l.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*l.height},w(r),f[e?"attr":"animate"](r).attr({align:u}),w=(p+720)%360,w=180<w&&360>w,"left"===u?r.y-=w?m.height:0:"center"===u?(r.x-=m.width/2,r.y-=m.height/2):"right"===u&&(r.x-=m.width,r.y-=w?0:m.height),f.placed=!0,f.alignAttr=r):(w(l),f.align(d,void 0,l),r=f.alignAttr);v&&0<=l.height?this.justifyDataLabel(f,d,r,m,l,e):c(d.crop,!0)&&(z=b.isInsidePlot(r.x,r.y,{paneCoordinates:!0,series:g})&&b.isInsidePlot(r.x+m.width,r.y+m.height,{paneCoordinates:!0,
535
+ series:g}));if(d.shape&&!p)f[e?"attr":"animate"]({anchorX:k?b.plotWidth-a.plotY:a.plotX,anchorY:k?b.plotHeight-a.plotX:a.plotY})}e&&h&&(f.placed=!1);z||h&&!v||(f.hide(!0),f.placed=!1)}function n(a,c){var f=c.filter;return f?(c=f.operator,a=a[f.property],f=f.value,">"===c&&a>f||"<"===c&&a<f||">="===c&&a>=f||"<="===c&&a<=f||"=="===c&&a==f||"==="===c&&a===f?!0:!1):!0}function m(){var d=this,k=d.chart,h=d.options,l=d.points,e=d.hasRendered||0,g=k.renderer,b=h.dataLabels,m,p=b.animation;p=b.defer?E(k,
536
+ p,d):{defer:0,duration:0};b=K(K(k.options.plotOptions&&k.options.plotOptions.series&&k.options.plotOptions.series.dataLabels,k.options.plotOptions&&k.options.plotOptions[d.type]&&k.options.plotOptions[d.type].dataLabels),b);y(this,"drawDataLabels");if(q(b)||b.enabled||d._hasPointLabels){var r=d.plotGroup("dataLabelsGroup","data-labels",e?"inherit":"hidden",b.zIndex||6);r.attr({opacity:+e});!e&&(e=d.dataLabelsGroup)&&(d.visible&&r.show(!0),e[h.animation?"animate":"attr"]({opacity:1},p));l.forEach(function(e){m=
537
+ a(K(b,e.dlOptions||e.options&&e.options.dataLabels));m.forEach(function(b,a){var l=b.enabled&&(!e.isNull||e.dataLabelOnNull)&&n(e,b),m=e.connectors?e.connectors[a]:e.connector,p=e.dataLabels?e.dataLabels[a]:e.dataLabel,x=c(b.distance,e.labelDistance),u=!p;if(l){var B=e.getLabelConfig();var q=c(b[e.formatPrefix+"Format"],b.format);B=G(q)?t(q,B,k):(b[e.formatPrefix+"Formatter"]||b.formatter).call(B,b);q=b.style;var w=b.rotation;k.styledMode||(q.color=c(b.color,q.color,d.color,"#000000"),"contrast"===
538
+ q.color?(e.contrastColor=g.getContrast(e.color||d.color),q.color=!G(x)&&b.inside||0>x||h.stacking?e.contrastColor:"#000000"):delete e.contrastColor,h.cursor&&(q.cursor=h.cursor));var v={r:b.borderRadius||0,rotation:w,padding:b.padding,zIndex:1};k.styledMode||(v.fill=b.backgroundColor,v.stroke=b.borderColor,v["stroke-width"]=b.borderWidth);f(v,function(b,a){"undefined"===typeof b&&delete v[a]})}!p||l&&G(B)&&!!p.div===!!b.useHTML||(e.dataLabel=p=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(1===
539
+ e.dataLabels.length?delete e.dataLabels:delete e.dataLabels[a]),a||delete e.dataLabel,m&&(e.connector=e.connector.destroy(),e.connectors&&(1===e.connectors.length?delete e.connectors:delete e.connectors[a])));l&&G(B)&&(p?v.text=B:(e.dataLabels=e.dataLabels||[],p=e.dataLabels[a]=w?g.text(B,0,-9999,b.useHTML).addClass("highcharts-data-label"):g.label(B,0,-9999,b.shape,null,null,b.useHTML,null,"data-label"),a||(e.dataLabel=p),p.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(b.className||
540
+ "")+(b.useHTML?" highcharts-tracker":""))),p.options=b,p.attr(v),k.styledMode||p.css(q).shadow(b.shadow),p.added||p.add(r),b.textPath&&!b.useHTML&&(p.setTextPath(e.getDataLabelPath&&e.getDataLabelPath(p)||e.graphic,b.textPath),e.dataLabelPath&&!b.textPath.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),d.alignDataLabel(e,p,b,null,u))})})}y(this,"afterDrawDataLabels")}function A(a,c,f,d,e,g){var b=this.chart,k=c.align,l=c.verticalAlign,r=a.box?0:a.padding||0,h=c.x;h=void 0===h?0:h;var n=c.y;
541
+ n=void 0===n?0:n;var m=(f.x||0)+r;if(0>m){"right"===k&&0<=h?(c.align="left",c.inside=!0):h-=m;var p=!0}m=(f.x||0)+d.width-r;m>b.plotWidth&&("left"===k&&0>=h?(c.align="right",c.inside=!0):h+=b.plotWidth-m,p=!0);m=f.y+r;0>m&&("bottom"===l&&0<=n?(c.verticalAlign="top",c.inside=!0):n-=m,p=!0);m=(f.y||0)+d.height-r;m>b.plotHeight&&("top"===l&&0>=n?(c.verticalAlign="bottom",c.inside=!0):n+=b.plotHeight-m,p=!0);p&&(c.x=h,c.y=n,a.placed=!g,a.align(c,void 0,e));return p}function K(a,c){var f=[],d;if(q(a)&&
542
+ !q(c))f=a.map(function(a){return p(a,c)});else if(q(c)&&!q(a))f=c.map(function(e){return p(a,e)});else if(q(a)||q(c))for(d=Math.max(a.length,c.length);d--;)f[d]=p(a[d],c[d]);else f=p(a,c);return f}function v(a,c,f,d,e){var g=this.chart,b=g.inverted,k=this.xAxis,l=k.reversed,r=b?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=b?e.x:l?-r-a:k.width-r+a;c.startYPos=b?l?this.yAxis.height-r+a:-r-a:e.y;d?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},
543
+ void 0,c.hide);g.hasRendered&&(f&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var z=[];d.compose=function(a){if(-1===z.indexOf(a)){var c=a.prototype;z.push(a);c.alignDataLabel=h;c.drawDataLabels=m;c.justifyDataLabel=A;c.setDataLabelStartPos=v}}})(n||(n={}));"";return n});N(h,"Series/Column/ColumnDataLabel.js",[h["Core/Series/DataLabel.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A){var E=h.series,t=A.merge,G=A.pick,H;(function(h){function q(f,c,a,d,h){var n=
544
+ this.chart.inverted,m=f.series,p=(m.xAxis?m.xAxis.len:this.chart.plotSizeX)||0;m=(m.yAxis?m.yAxis.len:this.chart.plotSizeY)||0;var q=f.dlBox||f.shapeArgs,y=G(f.below,f.plotY>G(this.translatedThreshold,m)),v=G(a.inside,!!this.options.stacking);q&&(d=t(q),0>d.y&&(d.height+=d.y,d.y=0),q=d.y+d.height-m,0<q&&q<d.height&&(d.height-=q),n&&(d={x:m-d.y-d.height,y:p-d.x-d.width,width:d.height,height:d.width}),v||(n?(d.x+=y?0:d.width,d.width=0):(d.y+=y?d.height:0,d.height=0)));a.align=G(a.align,!n||v?"center":
545
+ y?"right":"left");a.verticalAlign=G(a.verticalAlign,n||v?"middle":y?"top":"bottom");E.prototype.alignDataLabel.call(this,f,c,a,d,h);a.inside&&f.contrastColor&&c.css({color:f.contrastColor})}var p=[];h.compose=function(f){d.compose(E);-1===p.indexOf(f)&&(p.push(f),f.prototype.alignDataLabel=q)}})(H||(H={}));return H});N(h,"Series/Bar/BarSeries.js",[h["Series/Column/ColumnSeries.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A){var E=this&&this.__extends||function(){var d=
546
+ function(h,q){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var c in f)f.hasOwnProperty(c)&&(d[c]=f[c])};return d(h,q)};return function(h,q){function p(){this.constructor=h}d(h,q);h.prototype=null===q?Object.create(q):(p.prototype=q.prototype,new p)}}(),t=A.extend,G=A.merge;A=function(h){function t(){var d=null!==h&&h.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}E(t,h);t.defaultOptions=G(d.defaultOptions,
547
+ {});return t}(d);t(A.prototype,{inverted:!0});h.registerSeriesType("bar",A);"";return A});N(h,"Series/Scatter/ScatterSeries.js",[h["Series/Column/ColumnSeries.js"],h["Series/Line/LineSeries.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A,F){var t=this&&this.__extends||function(){var d=function(h,f){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var f in a)a.hasOwnProperty(f)&&(c[f]=a[f])};return d(h,f)};return function(h,
548
+ f){function c(){this.constructor=h}d(h,f);h.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}(),E=F.addEvent,H=F.extend,y=F.merge;F=function(d){function p(){var f=null!==d&&d.apply(this,arguments)||this;f.data=void 0;f.options=void 0;f.points=void 0;return f}t(p,d);p.prototype.applyJitter=function(){var f=this,c=this.options.jitter,a=this.points.length;c&&this.points.forEach(function(d,h){["x","y"].forEach(function(n,m){var p="plot"+n.toUpperCase();if(c[n]&&!d.isNull){var q=f[n+
549
+ "Axis"];var t=c[n]*q.transA;if(q&&!q.isLog){var v=Math.max(0,d[p]-t);q=Math.min(q.len,d[p]+t);m=1E4*Math.sin(h+m*a);d[p]=v+(q-v)*(m-Math.floor(m));"x"===n&&(d.clientX=d.plotX)}}})})};p.prototype.drawGraph=function(){this.options.lineWidth?d.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};p.defaultOptions=y(h.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',
550
+ pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return p}(h);H(F.prototype,{drawTracker:d.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});E(F,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",F);"";return F});N(h,"Series/CenteredUtilities.js",[h["Core/Globals.js"],h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(d,h,A){var E=d.deg2rad,t=A.isNumber,
551
+ G=A.pick,H=A.relativeLength,y;(function(d){d.getCenter=function(){var d=this.options,f=this.chart,c=2*(d.slicedOffset||0),a=f.plotWidth-2*c,n=f.plotHeight-2*c,m=d.center,q=Math.min(a,n),t=d.size,y=d.innerSize||0;"string"===typeof t&&(t=parseFloat(t));"string"===typeof y&&(y=parseFloat(y));d=[G(m[0],"50%"),G(m[1],"50%"),G(t&&0>t?void 0:d.size,"100%"),G(y&&0>y?void 0:d.innerSize||0,"0%")];!f.angular||this instanceof h||(d[3]=0);for(m=0;4>m;++m)t=d[m],f=2>m||2===m&&/%$/.test(t),d[m]=H(t,[a,n,q,d[2]][m])+
552
+ (f?c:0);d[3]>d[2]&&(d[3]=d[2]);return d};d.getStartAndEndRadians=function(d,f){d=t(d)?d:0;f=t(f)&&f>d&&360>f-d?f:d+360;return{start:E*(d+-90),end:E*(f+-90)}}})(y||(y={}));"";return y});N(h,"Series/Pie/PiePoint.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Series/Point.js"],h["Core/Utilities.js"]],function(d,h,A){var E=this&&this.__extends||function(){var f=function(c,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&
553
+ (a[f]=c[f])};return f(c,a)};return function(c,a){function d(){this.constructor=c}f(c,a);c.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),t=d.setAnimation,G=A.addEvent,H=A.defined;d=A.extend;var y=A.isNumber,q=A.pick,p=A.relativeLength;h=function(f){function c(){var a=null!==f&&f.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}E(c,f);c.prototype.getConnectorPath=function(){var a=this.labelPosition,c=this.series.options.dataLabels,
554
+ f=this.connectorShapes,d=c.connectorShape;f[d]&&(d=f[d]);return d.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,c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};c.prototype.init=function(){var a=this;f.prototype.init.apply(this,
555
+ arguments);this.name=q(this.name,"Slice");var c=function(c){a.slice("select"===c.type)};G(this,"select",c);G(this,"unselect",c);return this};c.prototype.isValid=function(){return y(this.y)&&0<=this.y};c.prototype.setVisible=function(a,c){var f=this,d=this.series,h=d.chart,n=d.options.ignoreHiddenPoint;c=q(c,n);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,d.options.data[d.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(c){if(f[c])f[c][a?
556
+ "show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),n&&(d.isDirty=!0),c&&h.redraw())};c.prototype.slice=function(a,c,f){var d=this.series;t(f,d.chart);q(c,!0);this.sliced=this.options.sliced=H(a)?a:!this.sliced;d.options.data[d.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return c}(h);d(h.prototype,{connectorShapes:{fixedOffset:function(f,
557
+ c,a){var d=c.breakAt;c=c.touchingSliceAt;return[["M",f.x,f.y],a.softConnector?["C",f.x+("left"===f.alignment?-5:5),f.y,2*d.x-c.x,2*d.y-c.y,d.x,d.y]:["L",d.x,d.y],["L",c.x,c.y]]},straight:function(f,c){c=c.touchingSliceAt;return[["M",f.x,f.y],["L",c.x,c.y]]},crookedLine:function(f,c,a){c=c.touchingSliceAt;var d=this.series,h=d.center[0],q=d.chart.plotWidth,t=d.chart.plotLeft;d=f.alignment;var y=this.shapeArgs.r;a=p(a.crookDistance,1);q="left"===d?h+y+(q+t-h-y)*(1-a):t+(h-y)*a;a=["L",q,f.y];h=!0;if("left"===
558
+ d?q>f.x||q<c.x:q<f.x||q>c.x)h=!1;f=[["M",f.x,f.y]];h&&f.push(a);f.push(["L",c.x,c.y]);return f}}});return h});N(h,"Series/Pie/PieSeries.js",[h["Series/CenteredUtilities.js"],h["Series/Column/ColumnSeries.js"],h["Core/Globals.js"],h["Core/Legend/LegendSymbol.js"],h["Series/Pie/PiePoint.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Renderer/SVG/Symbols.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G,H,y,q){var p=this&&this.__extends||function(){var a=function(c,f){a=Object.setPrototypeOf||
559
+ {__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f])};return a(c,f)};return function(c,f){function d(){this.constructor=c}a(c,f);c.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}(),f=d.getStartAndEndRadians;A=A.noop;var c=q.clamp,a=q.extend,n=q.fireEvent,m=q.merge,D=q.pick,C=q.relativeLength;q=function(a){function d(){var c=null!==a&&a.apply(this,arguments)||this;c.center=void 0;c.data=void 0;c.maxLabelDistance=
560
+ void 0;c.options=void 0;c.points=void 0;return c}p(d,a);d.prototype.animate=function(a){var c=this,f=c.points,d=c.startAngleRad;a||f.forEach(function(a){var f=a.graphic,k=a.shapeArgs;f&&k&&(f.attr({r:D(a.startR,c.center&&c.center[3]/2),start:d,end:d}),f.animate({r:k.r,start:k.start,end:k.end},c.options.animation))})};d.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,f=this.options;if(0===this.total&&this.center){var d=this.center[0];var k=this.center[1];this.graph||(this.graph=
561
+ this.chart.renderer.arc(d,k,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:y.arc(d,k,this.center[2]/2,0,{start:a,end:c,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":f.borderWidth,fill:f.fillColor||"none",stroke:f.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};d.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=
562
+ c.graphic.destroy());c.graphic||(c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};d.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};d.prototype.getX=function(a,f,d){var h=this.center,k=this.radii?this.radii[d.index]||0:h[2]/2;a=Math.asin(c((a-h[1])/(k+d.labelDistance),-1,1));return h[0]+(f?-1:1)*Math.cos(a)*(k+d.labelDistance)+(0<d.labelDistance?(f?-1:1)*this.options.dataLabels.padding:0)};d.prototype.hasData=function(){return!!this.processedXData.length};
563
+ d.prototype.redrawPoints=function(){var a=this,c=a.chart,f=c.renderer,d=a.options.shadow,k,h,l,e;this.drawEmpty();!d||a.shadowGroup||c.styledMode||(a.shadowGroup=f.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(g){var b={};h=g.graphic;if(!g.isNull&&h){var n=void 0;e=g.shapeArgs;k=g.getTranslate();c.styledMode||(n=g.shadowGroup,d&&!n&&(n=g.shadowGroup=f.g("shadow").add(a.shadowGroup)),n&&n.attr(k),l=a.pointAttribs(g,g.selected&&"select"));g.delayedRendering?(h.setRadialReference(a.center).attr(e).attr(k),
564
+ c.styledMode||h.attr(l).attr({"stroke-linejoin":"round"}).shadow(d,n),g.delayedRendering=!1):(h.setRadialReference(a.center),c.styledMode||m(!0,b,l),m(!0,b,e,k),h.animate(b));h.attr({visibility:g.visible?"inherit":"hidden"});h.addClass(g.getClassName(),!0)}else h&&(g.graphic=h.destroy())})};d.prototype.sortByAngle=function(a,c){a.sort(function(a,f){return"undefined"!==typeof a.angle&&(f.angle-a.angle)*c})};d.prototype.translate=function(a){this.generatePoints();var c=this.options,d=c.slicedOffset,
565
+ h=d+(c.borderWidth||0),k=f(c.startAngle,c.endAngle),m=this.startAngleRad=k.start;k=(this.endAngleRad=k.end)-m;var l=this.points,e=c.dataLabels.distance;c=c.ignoreHiddenPoint;var g=l.length,b,p=0;a||(this.center=a=this.getCenter());for(b=0;b<g;b++){var q=l[b];var r=m+p*k;!q.isValid()||c&&!q.visible||(p+=q.percentage/100);var x=m+p*k;var M={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*r)/1E3,end:Math.round(1E3*x)/1E3};q.shapeType="arc";q.shapeArgs=M;q.labelDistance=D(q.options.dataLabels&&
566
+ q.options.dataLabels.distance,e);q.labelDistance=C(q.labelDistance,M.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,q.labelDistance);x=(x+r)/2;x>1.5*Math.PI?x-=2*Math.PI:x<-Math.PI/2&&(x+=2*Math.PI);q.slicedTranslation={translateX:Math.round(Math.cos(x)*d),translateY:Math.round(Math.sin(x)*d)};M=Math.cos(x)*a[2]/2;var t=Math.sin(x)*a[2]/2;q.tooltipPos=[a[0]+.7*M,a[1]+.7*t];q.half=x<-Math.PI/2||x>Math.PI/2?1:0;q.angle=x;r=Math.min(h,q.labelDistance/5);q.labelPosition={natural:{x:a[0]+M+
567
+ Math.cos(x)*q.labelDistance,y:a[1]+t+Math.sin(x)*q.labelDistance},"final":{},alignment:0>q.labelDistance?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+M+Math.cos(x)*r,y:a[1]+t+Math.sin(x)*r},touchingSliceAt:{x:a[0]+M,y:a[1]+t}}}}n(this,"afterTranslate")};d.prototype.updateTotals=function(){var a=this.points,c=a.length,f=this.options.ignoreHiddenPoint,d,k=0;for(d=0;d<c;d++){var h=a[d];!h.isValid()||f&&!h.visible||(k+=h.y)}this.total=k;for(d=0;d<c;d++)h=a[d],h.percentage=0<k&&(h.visible||
568
+ !f)?h.y/k*100:0,h.total=k};d.defaultOptions=m(G.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",
569
+ borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return d}(G);a(q.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:F.drawRectangle,drawTracker:h.prototype.drawTracker,getCenter:d.getCenter,getSymbol:A,isCartesian:!1,noSharedTooltip:!0,pointAttribs:h.prototype.pointAttribs,pointClass:t,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]});H.registerSeriesType("pie",q);"";return q});N(h,"Series/Pie/PieDataLabel.js",[h["Core/Series/DataLabel.js"],
570
+ h["Core/Globals.js"],h["Core/Renderer/RendererUtilities.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A,F,t){var E=h.noop,H=A.distribute,y=F.series,q=t.arrayMax,p=t.clamp,f=t.defined,c=t.merge,a=t.pick,n=t.relativeLength,m;(function(h){function m(){var d=this,h=d.data,k=d.chart,m=d.options.dataLabels||{},l=m.connectorPadding,e=k.plotWidth,g=k.plotHeight,b=k.plotLeft,n=Math.round(k.chartWidth/3),p=d.center,r=p[2]/2,x=p[1],v=[[],[]],t=[0,0,0,0],D=d.dataLabelPositioners,
571
+ C,E,A,I,F,G,L,K,N,T,U,S;d.visible&&(m.enabled||d._hasPointLabels)&&(h.forEach(function(b){b.dataLabel&&b.visible&&b.dataLabel.shortened&&(b.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),b.dataLabel.shortened=!1)}),y.prototype.drawDataLabels.apply(d),h.forEach(function(b){b.dataLabel&&(b.visible?(v[b.half].push(b),b.dataLabel._pos=null,!f(m.style.width)&&!f(b.options.dataLabels&&b.options.dataLabels.style&&b.options.dataLabels.style.width)&&b.dataLabel.getBBox().width>n&&(b.dataLabel.css({width:Math.round(.7*
572
+ n)+"px"}),b.dataLabel.shortened=!0)):(b.dataLabel=b.dataLabel.destroy(),b.dataLabels&&1===b.dataLabels.length&&delete b.dataLabels))}),v.forEach(function(c,h){var n=c.length,q=[],B;if(n){d.sortByAngle(c,h-.5);if(0<d.maxLabelDistance){var u=Math.max(0,x-r-d.maxLabelDistance);var w=Math.min(x+r+d.maxLabelDistance,k.plotHeight);c.forEach(function(b){0<b.labelDistance&&b.dataLabel&&(b.top=Math.max(0,x-r-b.labelDistance),b.bottom=Math.min(x+r+b.labelDistance,k.plotHeight),B=b.dataLabel.getBBox().height||
573
+ 21,b.distributeBox={target:b.labelPosition.natural.y-b.top+B/2,size:B,rank:b.y},q.push(b.distributeBox))});u=w+B-u;H(q,u,u/5)}for(U=0;U<n;U++){C=c[U];G=C.labelPosition;I=C.dataLabel;T=!1===C.visible?"hidden":"inherit";N=u=G.natural.y;q&&f(C.distributeBox)&&("undefined"===typeof C.distributeBox.pos?T="hidden":(L=C.distributeBox.size,N=D.radialDistributionY(C)));delete C.positionIndex;if(m.justify)K=D.justify(C,r,p);else switch(m.alignTo){case "connectors":K=D.alignToConnectors(c,h,e,b);break;case "plotEdges":K=
574
+ D.alignToPlotEdges(I,h,e,b);break;default:K=D.radialDistributionX(d,C,N,u)}I._attr={visibility:T,align:G.alignment};S=C.options.dataLabels||{};I._pos={x:K+a(S.x,m.x)+({left:l,right:-l}[G.alignment]||0),y:N+a(S.y,m.y)-10};G.final.x=K;G.final.y=N;a(m.crop,!0)&&(F=I.getBBox().width,u=null,K-F<l&&1===h?(u=Math.round(F-K+l),t[3]=Math.max(u,t[3])):K+F>e-l&&0===h&&(u=Math.round(K+F-e+l),t[1]=Math.max(u,t[1])),0>N-L/2?t[0]=Math.max(Math.round(-N+L/2),t[0]):N+L/2>g&&(t[2]=Math.max(Math.round(N+L/2-g),t[2])),
575
+ I.sideOverflow=u)}}}),0===q(t)||this.verifyDataLabelOverflow(t))&&(this.placeDataLabels(),this.points.forEach(function(b){S=c(m,b.options.dataLabels);if(E=a(S.connectorWidth,1)){var e;A=b.connector;if((I=b.dataLabel)&&I._pos&&b.visible&&0<b.labelDistance){T=I._attr.visibility;if(e=!A)b.connector=A=k.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+b.colorIndex+(b.className?" "+b.className:"")).add(d.dataLabelsGroup),k.styledMode||A.attr({"stroke-width":E,stroke:S.connectorColor||
576
+ b.color||"#666666"});A[e?"attr":"animate"]({d:b.getConnectorPath()});A.attr("visibility",T)}else A&&(b.connector=A.destroy())}}))}function t(){this.points.forEach(function(a){var c=a.dataLabel,f;c&&a.visible&&((f=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"](f),c.moved=!0):c&&c.attr({y:-9999}));
577
+ delete a.distributeBox},this)}function D(a){var c=this.center,f=this.options,d=f.center,l=f.minSize||80,e=null!==f.size;if(!e){if(null!==d[0])var g=Math.max(c[2]-Math.max(a[1],a[3]),l);else g=Math.max(c[2]-a[1]-a[3],l),c[0]+=(a[3]-a[1])/2;null!==d[1]?g=p(g,l,c[2]-Math.max(a[0],a[2])):(g=p(g,l,c[2]-a[0]-a[2]),c[1]+=(a[0]-a[2])/2);g<c[2]?(c[2]=g,c[3]=Math.min(n(f.innerSize||0,g),g),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):e=!0}return e}var A=[],v={radialDistributionY:function(a){return a.top+
578
+ a.distributeBox.pos},radialDistributionX:function(a,c,f,d){return a.getX(f<c.top+2||f>c.bottom-2?d:f,c.half,c)},justify:function(a,c,f){return f[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,f,d){a=a.getBBox().width;return c?a+d:f-a-d},alignToConnectors:function(a,c,f,d){var k=0,e;a.forEach(function(a){e=a.dataLabel.getBBox().width;e>k&&(k=e)});return c?k+d:f-k-d}};h.compose=function(a){d.compose(y);-1===A.indexOf(a)&&(A.push(a),a=a.prototype,a.dataLabelPositioners=v,a.alignDataLabel=
579
+ E,a.drawDataLabels=m,a.placeDataLabels=t,a.verifyDataLabelOverflow=D)}})(m||(m={}));return m});N(h,"Extensions/OverlappingDataLabels.js",[h["Core/Chart/Chart.js"],h["Core/Utilities.js"]],function(d,h){function E(d,f){var c=!1;if(d){var a=d.newOpacity;d.oldOpacity!==a&&(d.alignAttr&&d.placed?(d[a?"removeClass":"addClass"]("highcharts-data-label-hidden"),c=!0,d.alignAttr.opacity=a,d[d.isOld?"animate":"attr"](d.alignAttr,null,function(){f.styledMode||d.css({pointerEvents:a?"auto":"none"})}),t(f,"afterHideOverlappingLabel")):
580
+ d.attr({opacity:a}));d.isOld=!0}return c}var F=h.addEvent,t=h.fireEvent,G=h.isArray,H=h.isNumber,y=h.objectEach,q=h.pick;F(d,"render",function(){var d=this,f=[];(this.labelCollectors||[]).forEach(function(c){f=f.concat(c())});(this.yAxis||[]).forEach(function(c){c.stacking&&c.options.stackLabels&&!c.options.stackLabels.allowOverlap&&y(c.stacking.stacks,function(a){y(a,function(a){a.label&&"hidden"!==a.label.visibility&&f.push(a.label)})})});(this.series||[]).forEach(function(c){var a=c.options.dataLabels;
581
+ c.visible&&(!1!==a.enabled||c._hasPointLabels)&&(a=function(a){return a.forEach(function(a){a.visible&&(G(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(c){var h=c.options;c.labelrank=q(h.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);h.allowOverlap?(c.oldOpacity=c.opacity,c.newOpacity=1,E(c,d)):f.push(c)})})},a(c.nodes||[]),a(c.points))});this.hideOverlappingLabels(f)});d.prototype.hideOverlappingLabels=function(d){var f=this,c=d.length,a=f.renderer,h,m,p,q=!1;
582
+ var y=function(c){var f,d=c.box?0:c.padding||0,k=f=0,h;if(c&&(!c.alignAttr||c.placed)){var l=c.alignAttr||{x:c.attr("x"),y:c.attr("y")};var e=c.parentGroup;c.width||(f=c.getBBox(),c.width=f.width,c.height=f.height,f=a.fontMetrics(null,c.element).h);var g=c.width-2*d;(h={left:"0",center:"0.5",right:"1"}[c.alignValue])?k=+h*g:H(c.x)&&Math.round(c.x)!==c.translateX&&(k=c.x-c.translateX);return{x:l.x+(e.translateX||0)+d-(k||0),y:l.y+(e.translateY||0)+d-f,width:c.width-2*d,height:c.height-2*d}}};for(m=
583
+ 0;m<c;m++)if(h=d[m])h.oldOpacity=h.opacity,h.newOpacity=1,h.absoluteBox=y(h);d.sort(function(a,c){return(c.labelrank||0)-(a.labelrank||0)});for(m=0;m<c;m++){var A=(y=d[m])&&y.absoluteBox;for(h=m+1;h<c;++h){var F=(p=d[h])&&p.absoluteBox;!A||!F||y===p||0===y.newOpacity||0===p.newOpacity||F.x>=A.x+A.width||F.x+F.width<=A.x||F.y>=A.y+A.height||F.y+F.height<=A.y||((y.labelrank<p.labelrank?y:p).newOpacity=0)}}d.forEach(function(a){E(a,f)&&(q=!0)});q&&t(f,"afterHideAllOverlappingLabels")}});N(h,"Core/Responsive.js",
584
+ [h["Core/Utilities.js"]],function(d){var h=d.extend,A=d.find,F=d.isArray,t=d.isObject,G=d.merge,H=d.objectEach,y=d.pick,q=d.splat,p=d.uniqueKey,f;(function(c){var a=[];c.compose=function(c){-1===a.indexOf(c)&&(a.push(c),h(c.prototype,f.prototype));return c};var f=function(){function a(){}a.prototype.currentOptions=function(a){function c(a,d,h,m){var k;H(a,function(a,l){if(!m&&-1<f.collectionsWithUpdate.indexOf(l)&&d[l])for(a=q(a),h[l]=[],k=0;k<Math.max(a.length,d[l].length);k++)d[l][k]&&(void 0===
585
+ a[k]?h[l][k]=d[l][k]:(h[l][k]={},c(a[k],d[l][k],h[l][k],m+1)));else t(a)?(h[l]=F(a)?[]:{},c(a,d[l]||{},h[l],m+1)):h[l]="undefined"===typeof d[l]?null:d[l]})}var f=this,d={};c(a,this.options,d,0);return d};a.prototype.matchResponsiveRule=function(a,c){var f=a.condition;(f.callback||function(){return this.chartWidth<=y(f.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=y(f.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=y(f.minWidth,0)&&this.chartHeight>=y(f.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=
586
+ function(a,c){var f=this,d=this.options.responsive,h=this.currentResponsive,m=[];!c&&d&&d.rules&&d.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=p());f.matchResponsiveRule(a,m)},this);c=G.apply(void 0,m.map(function(a){return A((d||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));c.isResponsiveOptions=!0;m=m.toString()||void 0;m!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,a,!0),m?(h=this.currentOptions(c),h.isResponsiveOptions=!0,this.currentResponsive=
587
+ {ruleIds:m,mergedOptions:c,undoOptions:h},this.update(c,a,!0)):this.currentResponsive=void 0)};return a}()})(f||(f={}));"";"";return f});N(h,"masters/highcharts.src.js",[h["Core/Globals.js"],h["Core/Utilities.js"],h["Core/DefaultOptions.js"],h["Core/Animation/Fx.js"],h["Core/Animation/AnimationUtilities.js"],h["Core/Renderer/HTML/AST.js"],h["Core/FormatUtilities.js"],h["Core/Renderer/RendererUtilities.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Renderer/HTML/HTMLElement.js"],
588
588
  h["Core/Renderer/HTML/HTMLRenderer.js"],h["Core/Axis/Axis.js"],h["Core/Axis/DateTimeAxis.js"],h["Core/Axis/LogarithmicAxis.js"],h["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],h["Core/Axis/Tick.js"],h["Core/Tooltip.js"],h["Core/Series/Point.js"],h["Core/Pointer.js"],h["Core/MSPointer.js"],h["Core/Legend/Legend.js"],h["Core/Chart/Chart.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Series/Column/ColumnSeries.js"],h["Series/Column/ColumnDataLabel.js"],h["Series/Pie/PieSeries.js"],
589
- h["Series/Pie/PieDataLabel.js"],h["Core/Series/DataLabel.js"],h["Core/Responsive.js"],h["Core/Color/Color.js"],h["Core/Time.js"]],function(e,h,A,E,v,H,I,z,q,l,f,d,a,p,k,F,B,J,K,L,y,C,x,c,t,g,u,n,b,r,G,m,w){e.animate=v.animate;e.animObject=v.animObject;e.getDeferredAnimation=v.getDeferredAnimation;e.setAnimation=v.setAnimation;e.stop=v.stop;e.timers=E.timers;e.AST=H;e.Axis=a;e.Chart=x;e.chart=x.chart;e.Fx=E;e.Legend=C;e.PlotLineOrBand=F;e.Point=K;e.Pointer=y.isRequired()?y:L;e.Series=c;e.SVGElement=
590
- q;e.SVGRenderer=l;e.Tick=B;e.Time=w;e.Tooltip=J;e.Color=m;e.color=m.parse;d.compose(l);f.compose(q);e.defaultOptions=A.defaultOptions;e.getOptions=A.getOptions;e.time=A.defaultTime;e.setOptions=A.setOptions;e.dateFormat=I.dateFormat;e.format=I.format;e.numberFormat=I.numberFormat;e.addEvent=h.addEvent;e.arrayMax=h.arrayMax;e.arrayMin=h.arrayMin;e.attr=h.attr;e.clearTimeout=h.clearTimeout;e.correctFloat=h.correctFloat;e.createElement=h.createElement;e.css=h.css;e.defined=h.defined;e.destroyObjectProperties=
591
- h.destroyObjectProperties;e.discardElement=h.discardElement;e.distribute=z.distribute;e.erase=h.erase;e.error=h.error;e.extend=h.extend;e.extendClass=h.extendClass;e.find=h.find;e.fireEvent=h.fireEvent;e.getMagnitude=h.getMagnitude;e.getStyle=h.getStyle;e.inArray=h.inArray;e.isArray=h.isArray;e.isClass=h.isClass;e.isDOMElement=h.isDOMElement;e.isFunction=h.isFunction;e.isNumber=h.isNumber;e.isObject=h.isObject;e.isString=h.isString;e.keys=h.keys;e.merge=h.merge;e.normalizeTickInterval=h.normalizeTickInterval;
592
- e.objectEach=h.objectEach;e.offset=h.offset;e.pad=h.pad;e.pick=h.pick;e.pInt=h.pInt;e.relativeLength=h.relativeLength;e.removeEvent=h.removeEvent;e.seriesType=t.seriesType;e.splat=h.splat;e.stableSort=h.stableSort;e.syncTimeout=h.syncTimeout;e.timeUnits=h.timeUnits;e.uniqueKey=h.uniqueKey;e.useSerialIds=h.useSerialIds;e.wrap=h.wrap;u.compose(g);r.compose(c);p.compose(a);k.compose(a);b.compose(n);F.compose(a);G.compose(x);return e});M(h,"Core/Axis/OrdinalAxis.js",[h["Core/Axis/Axis.js"],h["Core/Globals.js"],
593
- h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(e,h,A,E){var v=E.addEvent,D=E.correctFloat,I=E.css,z=E.defined,q=E.error,l=E.pick,f=E.timeUnits,d=[],a;(function(a){function e(a,c,b,d,e,g,h){void 0===e&&(e=[]);void 0===g&&(g=0);var m={},n=this.options.tickPixelInterval,k=this.chart.time,r=[],l,w,p=0,u=[],t=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!e||3>e.length||"undefined"===typeof c)return k.getTimeTicks.apply(k,arguments);var G=e.length;for(l=0;l<G;l++){var x=
594
- l&&e[l-1]>b;e[l]<c&&(p=l);if(l===G-1||e[l+1]-e[l]>5*g||x){if(e[l]>t){for(w=k.getTimeTicks(a,e[p],e[l],d);w.length&&w[0]<=t;)w.shift();w.length&&(t=w[w.length-1]);r.push(u.length);u=u.concat(w)}p=l+1}if(x)break}if(w){w=w.info;if(h&&w.unitRange<=f.hour){l=u.length-1;for(p=1;p<l;p++)if(k.dateFormat("%d",u[p])!==k.dateFormat("%d",u[p-1])){m[u[p]]="day";var y=!0}y&&(m[u[0]]="day");w.higherRanks=m}w.segmentStarts=r;u.info=w}else q(12,!1,this.chart);if(h&&z(n)){w=u.length;k=[];p=[];l=void 0;for(y=w;y--;)r=
595
- this.translate(u[y]),l&&(p[y]=l-r),k[y]=l=r;p.sort();p=p[Math.floor(p.length/2)];p<.6*n&&(p=null);y=u[w-1]>b?w-1:w;for(l=void 0;y--;)r=k[y],w=Math.abs(l-r),l&&w<.8*n&&(null===p||w<.8*p)?(m[u[y]]&&!m[u[y+1]]?(w=y+1,l=r):w=y,u.splice(w,1)):l=r}return u}function p(a){var c=this.ordinal.positions;if(!c)return a;var b=c.length-1;if(0>a)a=c[0];else if(a>b)a=c[b];else{b=Math.floor(a);var d=a-b}return"undefined"!==typeof d&&"undefined"!==typeof c[b]?c[b]+(d?d*(c[b+1]-c[b]):0):a}function B(a){var c=this.ordinal,
596
- b=c.positions;if(!b)return a;var d=(a-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;0<d&&d<this.left+this.len||(c.extendedOrdinalPositions||(c.extendedOrdinalPositions=c.getExtendedPositions()),b=c.extendedOrdinalPositions);if(b&&b.length){a=c.getIndexOfPoint(d,b);c=D(a%1);if(0<=a&&a<b.length-1)return b[Math.floor(a)]+c*(b[Math.ceil(a)]-b[Math.floor(a)]);c=b.length;d=b[0];b=b[c-1];var e=(b-d)/(c-1);return 0>a?d+e*a:b+e*(a-c)}return a}function J(c,d){var b=
597
- a.Additions.findIndexOf(c,d,!0);return c[b]===d?b:b+(d-c[b])/(c[b+1]-c[b])}function E(){this.ordinal||(this.ordinal=new a.Additions(this))}function H(){this.isXAxis&&z(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&z(this.userMin)&&(this.min+=this.options.overscroll))}function y(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&
598
- this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function C(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function x(a){var c=this.xAxis[0],b=c.options.overscroll,d=a.originalEvent.chartX,e=this.options.chart.panning,f=!1;if(e&&"y"!==e.type&&c.options.ordinal&&c.series.length){var g=this.mouseDownX,h=c.getExtremes(),k=h.dataMax,l=h.min,p=h.max,q=this.hoverPoints,u=c.closestPointRange||c.ordinal&&c.ordinal.overscrollPointsRange;
599
- g=(g-d)/(c.translationSlope*(c.ordinal.slope||u));u={ordinal:{positions:c.ordinal.getExtendedPositions()}};var t=c.index2val,x=c.val2lin,y=void 0,v=y=void 0,B=void 0;u.ordinal.positions?1<Math.abs(g)&&(q&&q.forEach(function(b){b.setState()}),0>g?(v=u,B=c.ordinal.positions?c:u):(v=c.ordinal.positions?c:u,B=u),y=B.ordinal.positions,k>y[y.length-1]&&y.push(k),this.fixedRange=p-l,y=c.navigatorAxis.toFixedRange(null,null,t.apply(v,[x.apply(v,[l,!0])+g]),t.apply(B,[x.apply(B,[p,!0])+g])),y.min>=Math.min(h.dataMin,
600
- l)&&y.max<=Math.max(k,p)+b&&c.setExtremes(y.min,y.max,!0,!1,{trigger:"pan"}),this.mouseDownX=d,I(this.container,{cursor:"move"})):f=!0}else f=!0;f||e&&/y/.test(e.type)?b&&(c.max=c.dataMax+b):a.preventDefault()}function c(){var a=this.xAxis;a&&a.options.ordinal&&(delete a.ordinal.index,delete a.ordinal.extendedOrdinalPositions)}function t(a,c){var b=this.ordinal,d=b.positions,e=b.slope,f=b.extendedOrdinalPositions;if(!d)return a;var g=d.length;if(d[0]<=a&&d[g-1]>=a)a=J(d,a);else{f||(f=b.getExtendedPositions&&
601
- b.getExtendedPositions(),b.extendedOrdinalPositions=f);if(!f||!f.length)return a;g=f.length;e||(e=(f[g-1]-f[0])/g);d=J(f,d[0]);a>=f[0]&&a<=f[g-1]?a=J(f,a)-d:a<f[0]?(a=f[0]-a,a=-d-a/e):(a-=f[g-1],a=a/e+g-d)}return c?a:e*(a||0)+b.offset}a.compose=function(a,f,b){if(-1===d.indexOf(a)){d.push(a);var g=a.prototype;g.getTimeTicks=e;g.index2val=p;g.lin2val=B;g.val2lin=t;g.ordinal2lin=g.val2lin;v(a,"afterInit",E);v(a,"foundExtremes",H);v(a,"afterSetScale",y);v(a,"initialAxisTranslation",C)}-1===d.indexOf(b)&&
602
- (d.push(b),v(b,"pan",x));-1===d.indexOf(f)&&(d.push(f),v(f,"updatedData",c));return a};var g=function(){function a(a){this.index={};this.axis=a}a.prototype.beforeSetTickPositions=function(){var a=this.axis,b=a.ordinal,c=a.getExtremes(),d=c.min,e=c.max,f=a.isXAxis&&!!a.options.breaks;c=a.options.ordinal;var g=a.chart.options.chart.ignoreHiddenSeries,h,k,p=[],q=Number.MAX_VALUE,t=!1;if(c||f){a.series.forEach(function(b,a){h=[];if(!(g&&!1===b.visible||!1===b.takeOrdinalPosition&&!f)&&(p=p.concat(b.processedXData),
603
- u=p.length,p.sort(function(b,a){return b-a}),q=Math.min(q,l(b.closestPointRange,q)),u)){for(a=0;a<u-1;)p[a]!==p[a+1]&&h.push(p[a+1]),a++;h[0]!==p[0]&&h.unshift(p[0]);p=h}});var u=p.length;if(2<u){var x=p[1]-p[0];for(k=u-1;k--&&!t;)p[k+1]-p[k]!==x&&(t=!0);!a.options.keepOrdinalPadding&&(p[0]-d>x||e-p[p.length-1]>x)&&(t=!0)}else a.options.overscroll&&(2===u?q=p[1]-p[0]:1===u?(q=a.options.overscroll,p=[p[0],p[0]+q]):q=b.overscrollPointsRange);t||a.forceOrdinal?(a.options.overscroll&&(b.overscrollPointsRange=
604
- q,p=p.concat(b.getOverscrollPositions())),b.positions=p,x=a.ordinal2lin(Math.max(d,p[0]),!0),k=Math.max(a.ordinal2lin(Math.min(e,p[p.length-1]),!0),1),b.slope=e=(e-d)/(k-x),b.offset=d-x*e):(b.overscrollPointsRange=l(a.closestPointRange,b.overscrollPointsRange),b.positions=a.ordinal.slope=b.offset=void 0)}a.isOrdinal=c&&t;b.groupIntervalFactor=null};a.findIndexOf=function(a,b,c){for(var d=0,e=a.length-1,f;d<e;)f=Math.ceil((d+e)/2),a[f]<=b?d=f:e=f-1;return a[d]===b?d:c?d:-1};a.prototype.getExtendedPositions=
605
- function(){var a=this,b=a.axis,c=b.constructor.prototype,d=b.chart,e=b.series[0].currentDataGrouping,f=e?e.count+e.unitName:"raw",g=b.options.overscroll,k=b.getExtremes(),l=void 0,p=a.index;p||(p=a.index={});if(!p[f]){var q={series:[],chart:d,forceOrdinal:!1,getExtremes:function(){return{min:k.dataMin,max:k.dataMax+g}},getGroupPixelWidth:c.getGroupPixelWidth,getTimeTicks:c.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:c.ordinal2lin,getIndexOfPoint:c.getIndexOfPoint,
606
- val2lin:c.val2lin};q.ordinal.axis=q;b.series.forEach(function(b){l={xAxis:q,xData:b.xData.slice(),chart:d,destroyGroupedData:h.noop,getProcessedData:A.prototype.getProcessedData,applyGrouping:A.prototype.applyGrouping};l.xData=l.xData.concat(a.getOverscrollPositions());l.options={dataGrouping:e?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[e.unitName,[e.count]]]}:{enabled:!1}};q.series.push(l);b.processData.apply(l)});l.closestPointRange!==
607
- l.basePointRange&&l.currentDataGrouping&&(q.forceOrdinal=!0);b.ordinal.beforeSetTickPositions.apply({axis:q});p[f]=q.ordinal.positions}return p[f]};a.prototype.getGroupIntervalFactor=function(a,b,c){c=c.processedXData;var d=c.length,e=[];var f=this.groupIntervalFactor;if(!f){for(f=0;f<d-1;f++)e[f]=c[f+1]-c[f];e.sort(function(b,a){return b-a});e=e[Math.floor(d/2)];a=Math.max(a,c[0]);b=Math.min(b,c[d-1]);this.groupIntervalFactor=f=d*e/(b-a)}return f};a.prototype.getIndexOfPoint=function(c,b){var d=
608
- this.axis,e=this.positions?this.positions[0]:0,f=d.series[0].points&&d.series[0].points[0]&&d.series[0].points[0].plotX||d.minPixelPadding;1<d.series.length&&d.series.forEach(function(b){b.points&&z(b.points[0])&&z(b.points[0].plotX)&&b.points[0].plotX<f&&(f=b.points[0].plotX)});c=(c-f)/(d.translationSlope*(this.slope||d.closestPointRange||this.overscrollPointsRange));return a.findIndexOf(b,e)+c};a.prototype.getOverscrollPositions=function(){var a=this.axis,b=a.options.overscroll,c=this.overscrollPointsRange,
609
- d=[],e=a.dataMax;if(z(c))for(;e<=a.dataMax+b;)e+=c,d.push(e);return d};a.prototype.postProcessTickInterval=function(a){var b=this.axis,c=this.slope;return c?b.options.breaks?b.closestPointRange||a:a/(c/b.closestPointRange):a};return a}();a.Additions=g})(a||(a={}));return a});M(h,"Series/DataModifyComposition.js",[h["Core/Axis/Axis.js"],h["Core/Series/Point.js"],h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(e,h,A,E){var v=h.prototype.tooltipFormatter,D=E.addEvent,I=E.arrayMax,z=E.arrayMin,
610
- q=E.correctFloat,l=E.defined,f=E.isArray,d=E.isNumber,a=E.isString,p=E.pick,k;(function(e){function h(c,b,d){this.isXAxis||(this.series.forEach(function(d){"compare"===c&&"boolean"!==typeof b?d.setCompare(b,!1):"cumulative"!==c||a(b)||d.setCumulative(b,!1)}),p(d,!0)&&this.chart.redraw())}function k(a){var b=this,c=b.series.chart.numberFormatter,d=function(d){a=a.replace("{point."+d+"}",(0<b[d]&&"change"===d?"+":"")+c(b[d],p(b.series.tooltipOptions.changeDecimals,2)))};l(b.change)&&d("change");l(b.cumulativeSum)&&
611
- d("cumulativeSum");return v.apply(this,[a])}function F(){var a=this.options.compare;if("percent"===a||"value"===a||this.options.cumulative){var b=new u(this);"percent"===a||"value"===a?b.initCompare(a):b.initCumulative()}this.dataModify=b}function A(a){a=a.dataExtremes;var b=a.activeYData;if(this.dataModify&&a){var c=void 0;this.options.compare?c=[this.dataModify.modifyValue(a.dataMin),this.dataModify.modifyValue(a.dataMax)]:this.options.cumulative&&f(b)&&2<=b.length&&(c=u.getCumulativeExtremes(b));
612
- c&&(a.dataMin=z(c),a.dataMax=I(c))}}function y(a,b){this.options.compare=this.userOptions.compare=a;this.update({},p(b,!0));!this.dataModify||"value"!==a&&"percent"!==a?this.points.forEach(function(b){delete b.change}):this.dataModify.initCompare(a)}function C(){if(this.xAxis&&this.processedYData&&this.dataModify){var a=this.processedXData,b=this.processedYData,c=b.length,e=!0===this.options.compareStart?0:1,f=-1,g;this.pointArrayMap&&(f=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||
613
- "y"));for(g=0;g<c-e;g++){var h=b[g]&&-1<f?b[g][f]:b[g];if(d(h)&&0!==h&&a[g+e]>=(this.xAxis.min||0)){this.dataModify.compareValue=h;break}}}}function x(a,b){this.setModifier("compare",a,b)}function c(a,b){a=p(a,!1);this.options.cumulative=this.userOptions.cumulative=a;this.update({},p(b,!0));this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(b){delete b.cumulativeSum})}function t(a,b){this.setModifier("cumulative",a,b)}var g=[];e.compose=function(a,b,d){if(-1===g.indexOf(a)){g.push(a);
614
- var e=a.prototype;e.setCompare=y;e.setCumulative=c;D(a,"afterInit",F);D(a,"afterGetExtremes",A);D(a,"afterProcessData",C)}-1===g.indexOf(b)&&(g.push(b),b=b.prototype,b.setCompare=x,b.setModifier=h,b.setCumulative=t);-1===g.indexOf(d)&&(g.push(d),d.prototype.tooltipFormatter=k);return a};var u=function(){function a(b){this.series=b}a.prototype.modifyValue=function(){return 0};a.getCumulativeExtremes=function(b){var a=Infinity,c=-Infinity;b.reduce(function(b,d){d=b+d;a=Math.min(a,d,b);c=Math.max(c,
615
- d,b);return d});return[a,c]};a.prototype.initCompare=function(b){this.modifyValue=function(a,c){null===a&&(a=0);var d=this.compareValue;return"undefined"!==typeof a&&"undefined"!==typeof d?(a="value"===b?a-d:a/d*100-(100===this.series.options.compareBase?0:100),"undefined"!==typeof c&&(c=this.series.points[c])&&(c.change=a),a):0}};a.prototype.initCumulative=function(){this.modifyValue=function(b,a){null===b&&(b=0);if(void 0!==b&&void 0!==a){var c=0<a?this.series.points[a-1]:null;c&&c.cumulativeSum&&
616
- (b=q(c.cumulativeSum+b));if(a=this.series.points[a])a.cumulativeSum=b;return b}return 0}};return a}();e.Additions=u})(k||(k={}));"";return k});M(h,"Core/Axis/BrokenAxis.js",[h["Extensions/Stacking.js"],h["Core/Utilities.js"]],function(e,h){var A=h.addEvent,D=h.find,v=h.fireEvent,H=h.isArray,I=h.isNumber,z=h.pick,q;(function(h){function f(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function d(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=
617
- !1)}function a(){var a=this.brokenAxis;if(a&&a.hasBreaks){for(var d=this.tickPositions,e=this.tickPositions.info,c=[],f=0;f<d.length;f++)a.isInAnyBreak(d[f])||c.push(d[f]);this.tickPositions=c;this.tickPositions.info=e}}function l(){this.brokenAxis||(this.brokenAxis=new L(this))}function k(){var a=this.options.connectNulls,d=this.points,e=this.xAxis,c=this.yAxis;if(this.isDirty)for(var f=d.length;f--;){var g=d[f],h=!(null===g.y&&!1===a)&&(e&&e.brokenAxis&&e.brokenAxis.isInAnyBreak(g.x,!0)||c&&c.brokenAxis&&
618
- c.brokenAxis.isInAnyBreak(g.y,!0));g.visible=h?!1:!1!==g.options.visible}}function q(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,z(this.pointArrayMap,["y"]))}function B(a,d){var e=this,c=e.points,f,g,h,k;if(a&&a.brokenAxis&&a.brokenAxis.hasBreaks){var b=a.brokenAxis;d.forEach(function(d){f=b&&b.breakArray||[];g=a.isXAxis?a.min:z(e.options.threshold,a.min);c.forEach(function(b){k=z(b["stack"+d.toUpperCase()],b[d]);f.forEach(function(c){if(I(g)&&I(k)){h=!1;if(g<c.from&&k>c.to||g>
619
- c.from&&k<c.from)h="pointBreak";else if(g<c.from&&k>c.from&&k<c.to||g>c.from&&k>c.to&&k<c.from)h="pointInBreak";h&&v(a,h,{point:b,brk:c})}})})})}}function J(){var a=this.currentDataGrouping,d=a&&a.gapSize;a=this.points.slice();var f=this.yAxis,c=this.options.gapSize,h=a.length-1,g;if(c&&0<h)for("value"!==this.options.gapUnit&&(c*=this.basePointRange),d&&d>c&&d>=this.basePointRange&&(c=d),g=void 0;h--;)g&&!1!==g.visible||(g=a[h+1]),d=a[h],!1!==g.visible&&!1!==d.visible&&(g.x-d.x>c&&(g=(d.x+g.x)/2,
620
- a.splice(h+1,0,{isNull:!0,x:g}),f.stacking&&this.options.stacking&&(g=f.stacking.stacks[this.stackKey][g]=new e(f,f.options.stackLabels,!1,g,this.stack),g.total=0)),g=d);return this.getGraphPath(a)}var E=[];h.compose=function(e,h){-1===E.indexOf(e)&&(E.push(e),e.keepProps.push("brokenAxis"),A(e,"init",l),A(e,"afterInit",f),A(e,"afterSetTickPositions",a),A(e,"afterSetOptions",d));if(-1===E.indexOf(h)){E.push(h);var p=h.prototype;p.drawBreaks=B;p.gappedPath=J;A(h,"afterGeneratePoints",k);A(h,"afterRender",
621
- q)}return e};var L=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,d){var c=a.repeat||Infinity,e=a.from,f=a.to-a.from;d=d>=e?(d-e)%c:c-(e-d)%c;return a.inclusive?d<=f:d<f&&0!==d};a.lin2Val=function(d){var e=this.brokenAxis;e=e&&e.breakArray;if(!e||!I(d))return d;var c;for(c=0;c<e.length;c++){var f=e[c];if(f.from>=d)break;else f.to<d?d+=f.len:a.isInBreak(f,d)&&(d+=f.len)}return d};a.val2Lin=function(d){var e=this.brokenAxis;e=e&&e.breakArray;if(!e||!I(d))return d;var c=
622
- d,f;for(f=0;f<e.length;f++){var g=e[f];if(g.to<=d)c-=g.len;else if(g.from>=d)break;else if(a.isInBreak(g,d)){c-=d-g.from;break}}return c};a.prototype.findBreakAt=function(a,d){return D(d,function(c){return c.from<a&&a<c.to})};a.prototype.isInAnyBreak=function(d,e){var c=this.axis,f=c.options.breaks||[],g=f.length,h;if(g&&I(d)){for(;g--;)if(a.isInBreak(f[g],d)){var k=!0;h||(h=z(f[g].showPoints,!c.isXAxis))}var b=k&&e?k&&!h:k}return b};a.prototype.setBreaks=function(d,e){var c=this,f=c.axis,g=H(d)&&
623
- !!d.length;f.isDirty=c.hasBreaks!==g;c.hasBreaks=g;f.options.breaks=f.userOptions.breaks=d;f.forceRedraw=!0;f.series.forEach(function(a){a.isDirty=!0});g||f.val2lin!==a.val2Lin||(delete f.val2lin,delete f.lin2val);g&&(f.userOptions.ordinal=!1,f.lin2val=a.lin2Val,f.val2lin=a.val2Lin,f.setExtremes=function(a,d,b,e,g){if(c.hasBreaks){for(var m=this.options.breaks||[],h;h=c.findBreakAt(a,m);)a=h.to;for(;h=c.findBreakAt(d,m);)d=h.from;d<a&&(d=a)}f.constructor.prototype.setExtremes.call(this,a,d,b,e,g)},
624
- f.setAxisTranslation=function(){f.constructor.prototype.setAxisTranslation.call(this);c.unitLength=void 0;if(c.hasBreaks){var d=f.options.breaks||[],e=[],b=[],g=z(f.pointRangePadding,0),h=0,m,k=f.userMin||f.min,l=f.userMax||f.max,p;d.forEach(function(b){m=b.repeat||Infinity;I(k)&&I(l)&&(a.isInBreak(b,k)&&(k+=b.to%m-k%m),a.isInBreak(b,l)&&(l-=l%m-b.from%m))});d.forEach(function(b){t=b.from;m=b.repeat||Infinity;if(I(k)&&I(l)){for(;t-m>k;)t-=m;for(;t<k;)t+=m;for(p=t;p<l;p+=m)e.push({value:p,move:"in"}),
625
- e.push({value:p+b.to-b.from,move:"out",size:b.breakSize})}});e.sort(function(b,a){return b.value===a.value?("in"===b.move?0:1)-("in"===a.move?0:1):b.value-a.value});var q=0;var t=k;e.forEach(function(a){q+="in"===a.move?1:-1;1===q&&"in"===a.move&&(t=a.value);0===q&&I(t)&&(b.push({from:t,to:a.value,len:a.value-t-(a.size||0)}),h+=a.value-t-(a.size||0))});c.breakArray=b;I(k)&&I(l)&&I(f.min)&&(c.unitLength=l-k-h+g,v(f,"afterBreaks"),f.staticScale?f.transA=f.staticScale:c.unitLength&&(f.transA*=(l-f.min+
626
- g)/c.unitLength),g&&(f.minPixelPadding=f.transA*(f.minPointOffset||0)),f.min=k,f.max=l)}});z(e,!0)&&f.chart.redraw()};return a}();h.Additions=L})(q||(q={}));return q});M(h,"masters/modules/broken-axis.src.js",[h["Core/Globals.js"],h["Core/Axis/BrokenAxis.js"]],function(e,h){h.compose(e.Axis,e.Series)});M(h,"Extensions/DataGrouping.js",[h["Core/Axis/Axis.js"],h["Core/Axis/DateTimeAxis.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Series/Point.js"],h["Core/Series/Series.js"],h["Core/Tooltip.js"],
627
- h["Core/DefaultOptions.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H,I,z,q){var l=A.format,f=H.prototype;A=q.addEvent;var d=q.arrayMax,a=q.arrayMin,p=q.correctFloat,k=q.defined,F=q.error,B=q.extend,J=q.isNumber,D=q.merge,L=q.pick;"";var y=E.approximations={sum:function(a){var c=a.length;if(!c&&a.hasNulls)var b=null;else if(c)for(b=0;c--;)b+=a[c];return b},average:function(a){var c=a.length;a=y.sum(a);J(a)&&c&&(a=p(a/c));return a},averages:function(){var a=[];[].forEach.call(arguments,function(c){a.push(y.average(c))});
628
- return"undefined"===typeof a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?d(a):a.hasNulls?null:void 0},low:function(c){return c.length?a(c):c.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},hlc:function(a,c,b){a=y.high(a);c=y.low(c);b=y.close(b);if(J(a)||J(c)||J(b))return[a,c,b]},ohlc:function(a,c,b,d){a=y.open(a);c=y.high(c);b=y.low(b);d=y.close(d);if(J(a)||J(c)||J(b)||J(d))return[a,c,b,d]},
629
- range:function(a,c){a=y.low(a);c=y.high(c);if(J(a)||J(c))return[a,c];if(null===a&&null===c)return null}};q=function(a,c,b,d){var e=this,f=e.data,g=e.options&&e.options.data,h=[],l=[],n=[],r=a.length,p=!!c,q=[],t=e.pointArrayMap,u=t&&t.length,x=["x"].concat(t||["y"]),v=this.options.dataGrouping&&this.options.dataGrouping.groupAll,B=0,F=0,z;d="function"===typeof d?d:y[d]?y[d]:y[e.getDGApproximation&&e.getDGApproximation()||"average"];u?t.forEach(function(){q.push([])}):q.push([]);var C=u||1;for(z=0;z<=
630
- r&&!(a[z]>=b[0]);z++);for(z;z<=r;z++){for(;"undefined"!==typeof b[B+1]&&a[z]>=b[B+1]||z===r;){var A=b[B];e.dataGroupInfo={start:v?F:e.cropStart+F,length:q[0].length};var E=d.apply(e,q);e.pointClass&&!k(e.dataGroupInfo.options)&&(e.dataGroupInfo.options=D(e.pointClass.prototype.optionsToObject.call({series:e},e.options.data[e.cropStart+F])),x.forEach(function(b){delete e.dataGroupInfo.options[b]}));"undefined"!==typeof E&&(h.push(A),l.push(E),n.push(e.dataGroupInfo));F=z;for(A=0;A<C;A++)q[A].length=
631
- 0,q[A].hasNulls=!1;B+=1;if(z===r)break}if(z===r)break;if(t){A=e.options.dataGrouping&&e.options.dataGrouping.groupAll?z:e.cropStart+z;E=f&&f[A]||e.pointClass.prototype.applyOptions.apply({series:e},[g[A]]);var H=void 0;for(A=0;A<u;A++)H=E[t[A]],J(H)?q[A].push(H):null===H&&(q[A].hasNulls=!0)}else A=p?c[z]:null,J(A)?q[0].push(A):null===A&&(q[0].hasNulls=!0)}return{groupedXData:h,groupedYData:l,groupMap:n}};var C={approximations:y,groupData:q},x=f.generatePoints,c={groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L",
632
- "%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},t={line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},
633
- candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},g=E.defaultDataGroupingUnits=[["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]],["week",[1]],["month",[1,3,6]],["year",null]];f.getDGApproximation=function(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"};f.groupData=q;f.applyGrouping=
634
- function(a){var c=this.chart,b=this.options.dataGrouping,d=!1!==this.allowDG&&b&&L(b.enabled,c.options.isStock),e=this.visible||!c.options.chart.ignoreHiddenSeries,m,l=this.currentDataGrouping,p=!1;d&&!this.requireSorting&&(this.requireSorting=p=!0);a=!1===!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!a)||!d;p&&(this.requireSorting=!1);if(!a){this.destroyGroupedData();d=b.groupAll?this.xData:this.processedXData;var q=b.groupAll?this.yData:this.processedYData;a=c.plotSizeX;
635
- p=this.xAxis;var t=p.options.ordinal,u=this.groupPixelWidth;if(u&&d&&d.length){this.isDirty=m=!0;this.points=null;var x=p.getExtremes();var y=x.min;x=x.max;t=t&&p.ordinal&&p.ordinal.getGroupIntervalFactor(y,x,this)||1;a=p.getTimeTicks(h.Additions.prototype.normalizeTimeTickInterval(u*(x-y)/a*t,b.units||g),Math.min(y,d[0]),Math.max(x,d[d.length-1]),p.options.startOfWeek,d,this.closestPointRange);u=f.groupData.apply(this,[d,q,a,b.approximation]);d=u.groupedXData;q=u.groupedYData;t=0;b&&b.smoothed&&
636
- d.length&&(b.firstAnchor="firstPoint",b.anchor="middle",b.lastAnchor="lastPoint",F(32,!1,c,{"dataGrouping.smoothed":"use dataGrouping.anchor"}));c=d;var v=this.options.dataGrouping;y=this.currentDataGrouping&&this.currentDataGrouping.gapSize;if(v&&this.xData&&y&&this.groupMap){var B=c.length-1;var z=v.anchor;var C=L(v.firstAnchor,z);v=L(v.lastAnchor,z);if(z&&"start"!==z){var A=y*{middle:.5,end:1}[z];for(z=c.length-1;z--&&0<z;)c[z]+=A}if(C&&"start"!==C&&this.xData[0]>=c[0]){z=this.groupMap[0].start;
637
- A=this.groupMap[0].length;var E=void 0;J(z)&&J(A)&&(E=z+(A-1));c[0]={middle:c[0]+.5*y,end:c[0]+y,firstPoint:this.xData[0],lastPoint:E&&this.xData[E]}[C]}v&&"start"!==v&&y&&c[B]>=x-y&&(x=this.groupMap[this.groupMap.length-1].start,c[B]={middle:c[B]+.5*y,end:c[B]+y,firstPoint:x&&this.xData[x],lastPoint:this.xData[this.xData.length-1]}[v])}for(x=1;x<a.length;x++)a.info.segmentStarts&&-1!==a.info.segmentStarts.indexOf(x)||(t=Math.max(a[x]-a[x-1],t));x=a.info;x.gapSize=t;this.closestPointRange=a.info.totalRange;
638
- this.groupMap=u.groupMap;if(e){e=d;if(k(e[0])&&J(p.min)&&J(p.dataMin)&&e[0]<p.min){if(!k(p.options.min)&&p.min<=p.dataMin||p.min===p.dataMin)p.min=Math.min(e[0],p.min);p.dataMin=Math.min(e[0],p.dataMin)}if(k(e[e.length-1])&&J(p.max)&&J(p.dataMax)&&e[e.length-1]>p.max){if(!k(p.options.max)&&J(p.dataMax)&&p.max>=p.dataMax||p.max===p.dataMax)p.max=Math.max(e[e.length-1],p.max);p.dataMax=Math.max(e[e.length-1],p.dataMax)}}b.groupAll&&(this.allGroupedData=q,b=this.cropData(d,q,p.min,p.max,1),d=b.xData,
639
- q=b.yData,this.cropStart=b.start);this.processedXData=d;this.processedYData=q}else this.groupMap=null;this.hasGroupedData=m;this.currentDataGrouping=x;this.preventGraphAnimation=(l&&l.totalRange)!==(x&&x.totalRange)}};f.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach(function(a,c){a&&(this.groupedData[c]=a.destroy?a.destroy():null)},this),this.groupedData.length=0)};f.generatePoints=function(){x.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:
640
- null};e.prototype.applyGrouping=function(a){var c=this;c.series.forEach(function(b){b.groupPixelWidth=void 0;b.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth();b.groupPixelWidth&&(b.hasProcessed=!0);b.applyGrouping(!!a.hasExtemesChanged)})};e.prototype.getGroupPixelWidth=function(){var a=this.series,d=a.length,b,e=0,f=!1,g;for(b=d;b--;)(g=a[b].options.dataGrouping)&&(e=Math.max(e,L(g.groupPixelWidth,c.groupPixelWidth)));for(b=d;b--;)if(g=a[b].options.dataGrouping)if(d=(a[b].processedXData||
641
- a[b].data).length,a[b].groupPixelWidth||d>this.chart.plotSizeX/e||d&&g.forced)f=!0;return f?e:0};e.prototype.setDataGrouping=function(a,c){var b;c=L(c,!0);a||(a={forced:!1,units:null});if(this instanceof e)for(b=this.series.length;b--;)this.series[b].update({dataGrouping:a},!1);else this.chart.options.series.forEach(function(b){b.dataGrouping=a},!1);this.ordinal&&(this.ordinal.slope=void 0);c&&this.chart.redraw()};A(e,"postProcessData",e.prototype.applyGrouping);A(v,"update",function(){if(this.dataGroup)return F(24,
642
- !1,this.series.chart),!1});A(I,"headerFormatter",function(a){var d=this.chart,b=d.time,e=a.labelConfig,f=e.series,g=f.tooltipOptions,h=f.options.dataGrouping,k=g.xDateFormat,p=f.xAxis,q=g[a.isFooter?"footerFormat":"headerFormat"];if(p&&"datetime"===p.options.type&&h&&J(e.key)){var t=f.currentDataGrouping;h=h.dateTimeLabelFormats||c.dateTimeLabelFormats;if(t)if(g=h[t.unitName],1===t.count)k=g[0];else{k=g[1];var u=g[2]}else!k&&h&&p.dateTime&&(k=p.dateTime.getXDateFormat(e.x,g.dateTimeLabelFormats));
643
- k=b.dateFormat(k,e.key);u&&(k+=b.dateFormat(u,e.key+t.totalRange-1));f.chart.styledMode&&(q=this.styledModeFormat(q));a.text=l(q,{point:B(e.point,{key:k}),series:f},d);a.preventDefault()}});A(H,"destroy",f.destroyGroupedData);A(H,"afterSetOptions",function(a){a=a.options;var d=this.type,b=this.chart.options.plotOptions,e=z.defaultOptions.plotOptions[d].dataGrouping,f=this.useCommonDataGrouping&&c;if(t[d]||f){e||(e=D(c,t[d]));var g=this.chart.rangeSelector;a.dataGrouping=D(f,e,b.series&&b.series.dataGrouping,
644
- b[d].dataGrouping,this.userOptions.dataGrouping,!a.isInternal&&g&&J(g.selected)&&g.buttonOptions[g.selected].dataGrouping)}});A(e,"afterSetScale",function(){this.series.forEach(function(a){a.hasProcessed=!1})});E.dataGrouping=C;"";return C});M(h,"Series/HLC/HLCPoint.js",[h["Core/Series/SeriesRegistry.js"]],function(e){var h=this&&this.__extends||function(){var e=function(h,v){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var v in h)h.hasOwnProperty(v)&&
645
- (e[v]=h[v])};return e(h,v)};return function(h,v){function A(){this.constructor=h}e(h,v);h.prototype=null===v?Object.create(v):(A.prototype=v.prototype,new A)}}();return function(e){function A(){var h=null!==e&&e.apply(this,arguments)||this;h.close=void 0;h.high=void 0;h.low=void 0;h.options=void 0;h.plotClose=void 0;h.series=void 0;return h}h(A,e);return A}(e.seriesTypes.column.prototype.pointClass)});M(h,"Series/HLC/HLCSeries.js",[h["Series/HLC/HLCPoint.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],
646
- function(e,h,A){var E=this&&this.__extends||function(){var e=function(h,l){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,d){e.__proto__=d}||function(e,d){for(var a in d)d.hasOwnProperty(a)&&(e[a]=d[a])};return e(h,l)};return function(h,l){function f(){this.constructor=h}e(h,l);h.prototype=null===l?Object.create(l):(f.prototype=l.prototype,new f)}}(),v=h.seriesTypes.column,D=A.extend,I=A.merge;A=function(e){function h(){var h=null!==e&&e.apply(this,arguments)||this;h.data=void 0;
647
- h.options=void 0;h.points=void 0;h.yData=void 0;return h}E(h,e);h.prototype.extendStem=function(e,f,d){var a=e[0];e=e[1];"number"===typeof a[2]&&(a[2]=Math.max(d+f,a[2]));"number"===typeof e[2]&&(e[2]=Math.min(d-f,e[2]))};h.prototype.getPointPath=function(e,f){f=f.strokeWidth();var d=e.series,a=f%2/2,h=Math.round(e.plotX)-a,k=Math.round(e.shapeArgs.width/2);var l=[["M",h,Math.round(e.yBottom)],["L",h,Math.round(e.plotHigh)]];null!==e.close&&(e=Math.round(e.plotClose)+a,l.push(["M",h,e],["L",h+k,e]),
648
- d.extendStem(l,f/2,e));return l};h.prototype.drawSinglePoint=function(e){var f=e.series,d=f.chart,a=e.graphic,h=!a;"undefined"!==typeof e.plotY&&(a||(e.graphic=a=d.renderer.path().add(f.group)),d.styledMode||a.attr(f.pointAttribs(e,e.selected&&"select")),f=f.getPointPath(e,a),a[h?"attr":"animate"]({d:f}).addClass(e.getClassName(),!0))};h.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)};h.prototype.init=function(){e.prototype.init.apply(this,arguments);this.options.stacking=
649
- void 0};h.prototype.pointAttribs=function(h,f){h=e.prototype.pointAttribs.call(this,h,f);delete h.fill;return h};h.prototype.toYData=function(e){return[e.high,e.low,e.close]};h.prototype.translate=function(){var h=this,f=h.yAxis,d=this.pointArrayMap&&this.pointArrayMap.slice()||[],a=d.map(function(a){return"plot"+(a.charAt(0).toUpperCase()+a.slice(1))});a.push("yBottom");d.push("low");e.prototype.translate.apply(h);h.points.forEach(function(e){d.forEach(function(d,l){d=e[d];null!==d&&(h.dataModify&&
650
- (d=h.dataModify.modifyValue(d)),e[a[l]]=f.toPixels(d,!0))});e.tooltipPos[1]=e.plotHigh+f.pos-h.chart.plotTop})};h.defaultOptions=I(v.defaultOptions,{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0});return h}(v);D(A.prototype,{animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color",
651
- "stroke-width":"lineWidth"},pointValKey:"close"});A.prototype.pointClass=e;h.registerSeriesType("hlc",A);"";return A});M(h,"Series/OHLC/OHLCPoint.js",[h["Core/Series/SeriesRegistry.js"]],function(e){var h=this&&this.__extends||function(){var e=function(h,v){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var v in h)h.hasOwnProperty(v)&&(e[v]=h[v])};return e(h,v)};return function(h,v){function A(){this.constructor=h}e(h,v);h.prototype=null===
652
- v?Object.create(v):(A.prototype=v.prototype,new A)}}();return function(e){function A(){var h=null!==e&&e.apply(this,arguments)||this;h.open=void 0;h.options=void 0;h.plotOpen=void 0;h.series=void 0;return h}h(A,e);A.prototype.getClassName=function(){return e.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")};A.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)};
653
- A.prototype.resolveColor=function(){e.prototype.resolveColor.call(this);this.resolveUpColor()};A.prototype.getZone=function(){var h=e.prototype.getZone.call(this);this.resolveUpColor();return h};A.prototype.applyOptions=function(){e.prototype.applyOptions.apply(this,arguments);this.resolveColor&&this.resolveColor();return this};return A}(e.seriesTypes.hlc.prototype.pointClass)});M(h,"Series/OHLC/OHLCSeries.js",[h["Series/OHLC/OHLCPoint.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],
654
- function(e,h,A){var D=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return e(d,a)};return function(d,a){function f(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),v=h.series,H=h.seriesTypes.hlc,I=A.addEvent,z=A.extend,q=A.merge,l=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||
655
- this;a.data=void 0;a.options=void 0;a.points=void 0;return a}D(d,e);d.prototype.getPointPath=function(a,d){var f=e.prototype.getPointPath.call(this,a,d);d=d.strokeWidth();var h=d%2/2,l=Math.round(a.plotX)-h,p=Math.round(a.shapeArgs.width/2);null!==a.open&&(a=Math.round(a.plotOpen)+h,f.push(["M",l,a],["L",l-p,a]),e.prototype.extendStem.call(this,f,d/2,a));return f};d.prototype.pointAttribs=function(a,d){d=e.prototype.pointAttribs.call(this,a,d);var f=this.options;delete d.fill;!a.options.color&&f.upColor&&
656
- a.open<a.close&&(d.stroke=f.upColor);return d};d.prototype.toYData=function(a){return[a.open,a.high,a.low,a.close]};d.defaultOptions=q(H.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}});return d}(H);z(l.prototype,{pointArrayMap:["open","high","low","close"]});l.prototype.pointClass=e;h.registerSeriesType("ohlc",l);I(v,"init",function(e){e=
657
- e.options;e.useOhlcData&&"highcharts-navigator-series"!==e.id&&z(this,{pointValKey:l.prototype.pointValKey,pointArrayMap:l.prototype.pointArrayMap,toYData:l.prototype.toYData})});I(v,"afterSetOptions",function(e){e=e.options;var d=e.dataGrouping;d&&e.useOhlcData&&"highcharts-navigator-series"!==e.id&&(d.approximation="ohlc")});"";return l});M(h,"Series/Candlestick/CandlestickSeries.js",[h["Core/DefaultOptions.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A){var D=this&&
658
- this.__extends||function(){var e=function(h,f){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var e in a)a.hasOwnProperty(e)&&(d[e]=a[e])};return e(h,f)};return function(h,f){function d(){this.constructor=h}e(h,f);h.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}(),v=e.defaultOptions;e=h.seriesTypes;var H=e.column,I=e.ohlc,z=A.merge;A=function(e){function h(){var f=null!==e&&e.apply(this,arguments)||this;f.data=void 0;
659
- f.options=void 0;f.points=void 0;return f}D(h,e);h.prototype.pointAttribs=function(e,d){var a=H.prototype.pointAttribs.call(this,e,d),f=this.options,h=e.open<e.close,l=f.lineColor||this.color,q=e.color||this.color;a["stroke-width"]=f.lineWidth;a.fill=e.options.color||(h?f.upColor||q:q);a.stroke=e.options.lineColor||(h?f.upLineColor||l:l);d&&(e=f.states[d],a.fill=e.color||a.fill,a.stroke=e.lineColor||a.stroke,a["stroke-width"]=e.lineWidth||a["stroke-width"]);return a};h.prototype.drawPoints=function(){var e=
660
- this,d=e.chart,a=e.yAxis.reversed;e.points.forEach(function(f){var h=f.graphic,l=!h;if("undefined"!==typeof f.plotY){h||(f.graphic=h=d.renderer.path().add(e.group));e.chart.styledMode||h.attr(e.pointAttribs(f,f.selected&&"select")).shadow(e.options.shadow);var p=h.strokeWidth()%2/2;var q=Math.round(f.plotX)-p;var v=f.plotOpen;var z=f.plotClose;var y=Math.min(v,z);v=Math.max(v,z);var C=Math.round(f.shapeArgs.width/2);z=a?v!==f.yBottom:Math.round(y)!==Math.round(f.plotHigh);var x=a?Math.round(y)!==
661
- Math.round(f.plotHigh):v!==f.yBottom;y=Math.round(y)+p;v=Math.round(v)+p;p=[];p.push(["M",q-C,v],["L",q-C,y],["L",q+C,y],["L",q+C,v],["Z"],["M",q,y],["L",q,z?Math.round(a?f.yBottom:f.plotHigh):y],["M",q,v],["L",q,x?Math.round(a?f.plotHigh:f.yBottom):v]);h[l?"attr":"animate"]({d:p}).addClass(f.getClassName(),!0)}})};h.defaultOptions=z(I.defaultOptions,v.plotOptions,{states:{hover:{lineWidth:2}},tooltip:v.plotOptions.ohlc.tooltip,threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0});
662
- return h}(I);h.registerSeriesType("candlestick",A);"";return A});M(h,"Series/Flags/FlagsPoint.js",[h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h){var A=this&&this.__extends||function(){var e=function(h,v){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var l in h)h.hasOwnProperty(l)&&(e[l]=h[l])};return e(h,v)};return function(h,v){function z(){this.constructor=h}e(h,v);h.prototype=null===v?Object.create(v):(z.prototype=
663
- v.prototype,new z)}}(),D=h.isNumber;return function(e){function h(){var h=null!==e&&e.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}A(h,e);h.prototype.isValid=function(){return D(this.y)||"undefined"===typeof this.y};h.prototype.hasNewShapeType=function(){var e=this.options.shape||this.series.options.shape;return this.graphic&&e&&e!==this.graphic.symbolKey};return h}(e.seriesTypes.column.prototype.pointClass)});M(h,"Series/OnSeriesComposition.js",[h["Series/Column/ColumnSeries.js"],
664
- h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(e,h,A){var D=e.prototype,v=h.prototype,H=A.defined,I=A.stableSort,z;(function(e){function h(){return v.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)}function f(){D.translate.apply(this);var a=this,d=a.options,e=a.chart,f=a.points,h=d.onSeries,l=(h=h&&e.get(h))&&h.options.step,q=h&&h.points,v=e.inverted,y=a.xAxis,z=a.yAxis;e=f.length-1;var x;d=d.onKey||"y";var c=q&&q.length,t=0,g;if(h&&h.visible&&c){t=
665
- (h.pointXOffset||0)+(h.barW||0)/2;var u=h.currentDataGrouping;var n=q[c-1].x+(u?u.totalRange:0);I(f,function(b,a){return b.x-a.x});for(d="plot"+d[0].toUpperCase()+d.substr(1);c--&&f[e];){var b=q[c];u=f[e];u.y=b.y;if(b.x<=u.x&&"undefined"!==typeof b[d]){if(u.x<=n&&(u.plotY=b[d],b.x<u.x&&!l&&(g=q[c+1])&&"undefined"!==typeof g[d])){var r=(u.x-b.x)/(g.x-b.x);u.plotY+=r*(g[d]-b[d]);u.y+=r*(g.y-b.y)}e--;c++;if(0>e)break}}}f.forEach(function(b,c){b.plotX+=t;if("undefined"===typeof b.plotY||v)0<=b.plotX&&
666
- b.plotX<=y.len?v?(b.plotY=y.translate(b.x,0,1,0,1),b.plotX=H(b.y)?z.translate(b.y,0,0,0,1):0):b.plotY=(y.opposite?0:a.yAxis.len)+y.offset:b.shapeArgs={};if((x=f[c-1])&&x.plotX===b.plotX){"undefined"===typeof x.stackIndex&&(x.stackIndex=0);var d=x.stackIndex+1}b.stackIndex=d});this.onSeries=h}var d=[];e.compose=function(a){if(-1===d.indexOf(a)){d.push(a);var e=a.prototype;e.getPlotBox=h;e.translate=f}return a};e.getPlotBox=h;e.translate=f})(z||(z={}));return z});M(h,"Series/Flags/FlagsSymbols.js",
667
- [h["Core/Renderer/RendererRegistry.js"],h["Core/Renderer/SVG/SVGRenderer.js"]],function(e,h){function A(e){D[e+"pin"]=function(h,v,z,q,l){var f=l&&l.anchorX;l=l&&l.anchorY;"circle"===e&&q>z&&(h-=Math.round((q-z)/2),z=q);var d=D[e](h,v,z,q);if(f&&l){var a=f;"circle"===e?a=h+z/2:(h=d[0],z=d[1],"M"===h[0]&&"L"===z[0]&&(a=(h[1]+z[1])/2));d.push(["M",a,v>l?v:v+q],["L",f,l]);d=d.concat(D.circle(f-1,l-1,2,2))}return d}}var D=h.prototype.symbols;D.flag=function(e,h,A,z,q){var l=q&&q.anchorX||e;q=q&&q.anchorY||
668
- h;var f=D.circle(l-1,q-1,2,2);f.push(["M",l,q],["L",e,h+z],["L",e,h],["L",e+A,h],["L",e+A,h+z],["L",e,h+z],["Z"]);return f};A("circle");A("square");e=e.getRendererType();e!==h&&(e.prototype.symbols.circlepin=D.circlepin,e.prototype.symbols.flag=D.flag,e.prototype.symbols.squarepin=D.squarepin);return D});M(h,"Series/Flags/FlagsSeries.js",[h["Series/Flags/FlagsPoint.js"],h["Core/Globals.js"],h["Series/OnSeriesComposition.js"],h["Core/Renderer/RendererUtilities.js"],h["Core/Series/SeriesRegistry.js"],
669
- h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H,I){var z=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function f(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();h=h.noop;var q=E.distribute,l=v.series,f=v.seriesTypes.column,
670
- d=I.addEvent,a=I.defined;E=I.extend;var p=I.merge,k=I.objectEach,F=I.wrap;I=function(e){function h(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}z(h,e);h.prototype.animate=function(a){a&&this.setClip()};h.prototype.drawPoints=function(){var d=this.points,e=this.chart,f=e.renderer,h=e.inverted,l=this.options,c=l.y,t,g=this.yAxis,u={},n=[];for(t=d.length;t--;){var b=d[t];var r=(h?b.plotY:b.plotX)>this.xAxis.len;var v=b.plotX;var m=b.stackIndex;
671
- var w=b.options.shape||l.shape;var B=b.plotY;"undefined"!==typeof B&&(B=b.plotY+c-("undefined"!==typeof m&&m*l.stackDistance));b.anchorX=m?void 0:b.plotX;var z=m?void 0:b.plotY;var A="flag"!==w;m=b.graphic;"undefined"!==typeof B&&0<=v&&!r?(m&&b.hasNewShapeType()&&(m=m.destroy()),m||(m=b.graphic=f.label("",null,null,w,null,null,l.useHTML).addClass("highcharts-point").add(this.markerGroup),b.graphic.div&&(b.graphic.div.point=b),m.isNew=!0),m.attr({align:A?"center":"left",width:l.width,height:l.height,
672
- "text-align":l.textAlign}),e.styledMode||m.attr(this.pointAttribs(b)).css(p(l.style,b.style)).shadow(l.shadow),0<v&&(v-=m.strokeWidth()%2),w={y:B,anchorY:z},l.allowOverlapX&&(w.x=v,w.anchorX=b.anchorX),m.attr({text:b.options.title||l.title||"A"})[m.isNew?"attr":"animate"](w),l.allowOverlapX||(u[b.plotX]?u[b.plotX].size=Math.max(u[b.plotX].size,m.width):u[b.plotX]={align:A?.5:0,size:m.width,target:v,anchorX:v}),b.tooltipPos=[v,B+g.pos-e.plotTop]):m&&(b.graphic=m.destroy())}if(!l.allowOverlapX){var D=
673
- 100;k(u,function(b){b.plotX=b.anchorX;n.push(b);D=Math.max(b.size,D)});q(n,h?g.len:this.xAxis.len,D);d.forEach(function(b){var c=b.graphic&&u[b.plotX];c&&(b.graphic[b.graphic.isNew?"attr":"animate"]({x:c.pos+c.align*c.size,anchorX:b.anchorX}),a(c.pos)?b.graphic.isNew=!1:(b.graphic.attr({x:-9999,anchorX:-9999}),b.graphic.isNew=!0))})}l.useHTML&&F(this.markerGroup,"on",function(b){return H.prototype.on.apply(b.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})};h.prototype.drawTracker=
674
- function(){var a=this.points;e.prototype.drawTracker.call(this);a.forEach(function(e){var f=e.graphic;f&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=d(f.element,"mouseover",function(){0<e.stackIndex&&!e.raised&&(e._y=f.y,f.attr({y:e._y-8}),e.raised=!0);a.forEach(function(a){a!==e&&a.raised&&a.graphic&&(a.graphic.attr({y:a._y}),a.raised=!1)})}))})};h.prototype.pointAttribs=function(a,d){var e=this.options,f=a&&a.color||this.color,h=e.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||e.fillColor;
675
- d&&(a=e.states[d].fillColor,h=e.states[d].lineColor,c=e.states[d].lineWidth);return{fill:a||f,stroke:h||f,"stroke-width":c||e.lineWidth||0}};h.prototype.setClip=function(){l.prototype.setClip.apply(this,arguments);!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])};h.defaultOptions=p(f.defaultOptions,{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,
676
- y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}});return h}(f);A.compose(I);E(I.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:e,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:h,init:l.prototype.init,invertGroups:h});v.registerSeriesType("flags",I);"";"";return I});M(h,"Core/Axis/ScrollbarAxis.js",[h["Core/Utilities.js"]],function(e){var h=e.addEvent,
677
- A=e.defined,E=e.pick;return function(){function e(){}e.compose=function(v,D){if(-1===e.composed.indexOf(v))e.composed.push(v);else return v;var z=function(e){var h=E(e.options&&e.options.min,e.min),f=E(e.options&&e.options.max,e.max);return{axisMin:h,axisMax:f,scrollMin:A(e.dataMin)?Math.min(h,e.min,e.dataMin,E(e.threshold,Infinity)):h,scrollMax:A(e.dataMax)?Math.max(f,e.max,e.dataMax,E(e.threshold,-Infinity)):f}};h(v,"afterInit",function(){var e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&
678
- (e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new D(e.chart.renderer,e.options.scrollbar,e.chart),h(e.scrollbar,"changed",function(h){var f=z(e),d=f.axisMax,a=f.scrollMin,l=f.scrollMax-a;A(f.axisMin)&&A(d)&&(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(f=a+l*this.to,a+=l*this.from):(f=a+l*(1-this.from),a+=l*(1-this.to)),this.shouldUpdateExtremes(h.DOMType)?e.setExtremes(a,f,!0,"mousemove"!==h.DOMType&&"touchmove"!==h.DOMType,h):this.setRange(this.from,
679
- this.to))}))});h(v,"afterRender",function(){var e=z(this),h=e.scrollMin,f=e.scrollMax;e=this.scrollbar;var d=this.axisTitleMargin+(this.titleOffset||0),a=this.chart.scrollbarsOffsets,p=this.options.margin||0;e&&(this.horiz?(this.opposite||(a[1]+=d),e.position(this.left,this.top+this.height+2+a[1]-(this.opposite?p:0),this.width,this.height),this.opposite||(a[1]+=p),d=1):(this.opposite&&(a[0]+=d),e.position(e.options.opposite?this.left+this.width+2+a[0]-(this.opposite?0:p):this.opposite?0:p,this.top,
680
- this.width,this.height),this.opposite&&(a[0]+=p),d=0),a[d]+=e.size+e.options.margin,isNaN(h)||isNaN(f)||!A(this.min)||!A(this.max)||this.min===this.max?e.setRange(0,1):(a=(this.min-h)/(f-h),h=(this.max-h)/(f-h),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(a,h):e.setRange(1-h,1-a)))});h(v,"afterGetOffset",function(){var e=this.scrollbar&&!this.scrollbar.options.opposite;e=this.horiz?2:e?3:1;var h=this.scrollbar;h&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=h.size+
681
- h.options.margin)});return v};e.composed=[];return e}()});M(h,"Core/ScrollbarDefaults.js",[h["Core/Globals.js"]],function(e){return{height:e.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",
682
- trackBorderWidth:1}});M(h,"Core/Scrollbar.js",[h["Core/DefaultOptions.js"],h["Core/Globals.js"],h["Core/Axis/ScrollbarAxis.js"],h["Core/ScrollbarDefaults.js"],h["Core/Utilities.js"]],function(e,h,A,E,v){var D=e.defaultOptions,I=v.addEvent,z=v.correctFloat,q=v.defined,l=v.destroyObjectProperties,f=v.fireEvent,d=v.merge,a=v.pick,p=v.removeEvent;e=function(){function e(a,d,e){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;
683
- this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(a,d,e)}e.compose=function(a){A.compose(a,e)};e.swapXY=function(a,d){d&&a.forEach(function(a){for(var d=a.length,e,f=0;f<d;f+=2)e=a[f+1],"number"===typeof e&&(a[f+1]=a[f+2],a[f+2]=e)});return a};e.prototype.addEvents=function(){var a=this.options.inverted?
684
- [1,0]:[0,1],d=this.scrollbarButtons,e=this.scrollbarGroup.element,f=this.track.element,k=this.mouseDownHandler.bind(this),l=this.mouseMoveHandler.bind(this),p=this.mouseUpHandler.bind(this);a=[[d[a[0]].element,"click",this.buttonToMinClick.bind(this)],[d[a[1]].element,"click",this.buttonToMaxClick.bind(this)],[f,"click",this.trackClick.bind(this)],[e,"mousedown",k],[e.ownerDocument,"mousemove",l],[e.ownerDocument,"mouseup",p]];h.hasTouch&&a.push([e,"touchstart",k],[e.ownerDocument,"touchmove",l],
685
- [e.ownerDocument,"touchend",p]);a.forEach(function(a){I.apply(null,a)});this._events=a};e.prototype.buttonToMaxClick=function(d){var e=(this.to-this.from)*a(this.options.step,.2);this.updatePosition(this.from+e,this.to+e);f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:d})};e.prototype.buttonToMinClick=function(d){var e=z(this.to-this.from)*a(this.options.step,.2);this.updatePosition(z(this.from-e),z(this.to-e));f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",
686
- DOMEvent:d})};e.prototype.cursorToScrollbarPosition=function(a){var d=this.options;d=d.minWidth>this.calculatedWidth?d.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-d),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-d)}};e.prototype.destroy=function(){var a=this,d=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(d){a[d]&&a[d].destroy&&(a[d]=a[d].destroy())});d&&a===d.scrollbar&&(d.scrollbar=null,l(d.scrollbarButtons))};
687
- e.prototype.drawScrollbarButton=function(a){var d=this.renderer,f=this.scrollbarButtons,h=this.options,k=this.size,l=d.g().add(this.group);f.push(l);l=d.rect().addClass("highcharts-scrollbar-button").add(l);this.chart.styledMode||l.attr({stroke:h.buttonBorderColor,"stroke-width":h.buttonBorderWidth,fill:h.buttonBackgroundColor});l.attr(l.crisp({x:-.5,y:-.5,width:k+1,height:k+1,r:h.buttonBorderRadius},l.strokeWidth()));l=d.path(e.swapXY([["M",k/2+(a?-1:1),k/2-3],["L",k/2+(a?-1:1),k/2+3],["L",k/2+(a?
688
- 2:-2),k/2]],h.vertical)).addClass("highcharts-scrollbar-arrow").add(f[a]);this.chart.styledMode||l.attr({fill:h.buttonArrowColor})};e.prototype.init=function(e,f,h){this.scrollbarButtons=[];this.renderer=e;this.userOptions=f;this.options=d(E,D.scrollbar,f);this.chart=h;this.size=a(this.options.size,this.options.height);f.enabled&&(this.render(),this.addEvents())};e.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=
689
- a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};e.prototype.mouseMoveHandler=function(a){var d=this.chart.pointer.normalize(a),e=this.options.vertical?"chartY":"chartX",h=this.initPositions||[];!this.grabbedCenter||a.touches&&0===a.touches[0][e]||(d=this.cursorToScrollbarPosition(d)[e],e=this[e],e=d-e,this.hasDragged=!0,this.updatePosition(h[0]+e,h[1]+e),this.hasDragged&&f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};e.prototype.mouseUpHandler=
690
- function(a){this.hasDragged&&f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};e.prototype.position=function(a,d,e,f){var h=this.options.vertical,k=this.rendered?"animate":"attr",l=0;this.x=a;this.y=d+this.trackBorderWidth;this.width=e;this.xOffset=this.height=f;this.yOffset=l;h?(this.width=this.yOffset=e=l=this.size,this.xOffset=d=0,this.barWidth=f-2*e,this.x=a+=this.options.margin):(this.height=
691
- this.xOffset=f=d=this.size,this.barWidth=e-2*f,this.y+=this.options.margin);this.group[k]({translateX:a,translateY:this.y});this.track[k]({width:e,height:f});this.scrollbarButtons[1][k]({translateX:h?0:e-d,translateY:h?f-l:0})};e.prototype.removeEvents=function(){this._events.forEach(function(a){p.apply(null,a)});this._events.length=0};e.prototype.render=function(){var a=this.renderer,d=this.options,f=this.size,h=this.chart.styledMode,k=a.g("scrollbar").attr({zIndex:d.zIndex,translateY:-99999}).add();
692
- this.group=k;this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:f,width:f}).add(k);h||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(k);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:f,width:f,r:d.barBorderRadius||0}).add(this.scrollbarGroup);
693
- this.scrollbarRifles=a.path(e.swapXY([["M",-3,f/4],["L",-3,2*f/3],["M",0,f/4],["L",0,2*f/3],["M",3,f/4],["L",3,2*f/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);h||(this.scrollbar.attr({fill:d.barBackgroundColor,stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%
694
- 2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};e.prototype.setRange=function(a,d){var e=this.options,f=e.vertical,h=e.minWidth,k=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(q(k)){var p=k*Math.min(d,1);a=Math.max(a,0);var c=Math.ceil(k*a);this.calculatedWidth=p=z(p-c);p<h&&(c=(k-h+p)*a,p=h);h=Math.floor(c+this.xOffset+this.yOffset);k=p/2-.5;this.from=a;this.to=d;f?(this.scrollbarGroup[l]({translateY:h}),this.scrollbar[l]({height:p}),
695
- this.scrollbarRifles[l]({translateY:k}),this.scrollbarTop=h,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:h}),this.scrollbar[l]({width:p}),this.scrollbarRifles[l]({translateX:k}),this.scrollbarLeft=h,this.scrollbarTop=0);12>=p?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===e.showFull&&(0>=a&&1<=d?this.group.hide():this.group.show());this.rendered=!0}};e.prototype.shouldUpdateExtremes=function(d){return a(this.options.liveRedraw,h.svg&&!h.isTouchDevice&&!this.chart.isBoosting)||
696
- "mouseup"===d||"touchend"===d||!q(d)};e.prototype.trackClick=function(a){var d=this.chart.pointer.normalize(a),e=this.to-this.from,h=this.y+this.scrollbarTop,k=this.x+this.scrollbarLeft;this.options.vertical&&d.chartY>h||!this.options.vertical&&d.chartX>k?this.updatePosition(this.from+e,this.to+e):this.updatePosition(this.from-e,this.to-e);f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};e.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,d(!0,
697
- this.options,a),this.chart)};e.prototype.updatePosition=function(a,d){1<d&&(a=z(1-z(d-a)),d=1);0>a&&(d=z(d-a),a=0);this.from=a;this.to=d};e.defaultOptions=E;return e}();D.scrollbar=d(!0,e.defaultOptions,D.scrollbar);return e});M(h,"Core/Axis/NavigatorAxis.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(e,h){var A=e.isTouchDevice,D=h.addEvent,v=h.correctFloat,H=h.defined,I=h.isNumber,z=h.pick,q=function(){function e(e){this.axis=e}e.prototype.destroy=function(){this.axis=void 0};e.prototype.toFixedRange=
698
- function(e,d,a,h){var f=this.axis,l=f.chart;l=l&&l.fixedRange;var p=(f.pointRange||0)/2;e=z(a,f.translate(e,!0,!f.horiz));d=z(h,f.translate(d,!0,!f.horiz));f=l&&(d-e)/l;H(a)||(e=v(e+p));H(h)||(d=v(d-p));.7<f&&1.3>f&&(h?e=d-l:d=e+l);I(e)&&I(d)||(e=d=void 0);return{min:e,max:d}};return e}();return function(){function e(){}e.compose=function(e){e.keepProps.push("navigatorAxis");D(e,"init",function(){this.navigatorAxis||(this.navigatorAxis=new q(this))});D(e,"zoom",function(d){var a=this.chart.options,
699
- e=a.navigator,f=this.navigatorAxis,h=a.chart.pinchType,l=a.rangeSelector;a=a.chart.zoomType;this.isXAxis&&(e&&e.enabled||l&&l.enabled)&&("y"===a?d.zoomed=!1:(!A&&"xy"===a||A&&"xy"===h)&&this.options.range&&(e=f.previousZoom,H(d.newMin)?f.previousZoom=[this.min,this.max]:e&&(d.newMin=e[0],d.newMax=e[1],f.previousZoom=void 0)));"undefined"!==typeof d.zoomed&&d.preventDefault()})};e.AdditionsClass=q;return e}()});M(h,"Core/Navigator.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Color/Color.js"],
700
- h["Core/Globals.js"],h["Core/Axis/NavigatorAxis.js"],h["Core/DefaultOptions.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Scrollbar.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H,I,z,q,l,f){A=A.parse;var d=E.hasTouch,a=E.isTouchDevice,p=H.defaultOptions,k=f.addEvent,D=f.clamp,B=f.correctFloat,J=f.defined,K=f.destroyObjectProperties,L=f.erase,y=f.extend,C=f.find,x=f.isArray,c=f.isNumber,t=f.merge,g=f.pick,u=f.removeEvent,n=f.splat,
701
- b=function(a){for(var b=[],d=1;d<arguments.length;d++)b[d-1]=arguments[d];b=[].filter.call(b,c);if(b.length)return Math[a].apply(0,b)};H="undefined"===typeof l.seriesTypes.areaspline?"line":"areaspline";y(p,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:A("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:H,fillOpacity:.05,
589
+ h["Series/Pie/PieDataLabel.js"],h["Core/Series/DataLabel.js"],h["Core/Responsive.js"],h["Core/Color/Color.js"],h["Core/Time.js"]],function(d,h,A,F,t,G,H,y,q,p,f,c,a,n,m,D,C,I,L,K,v,z,u,k,w,l,e,g,b,B,J,r,x){d.animate=t.animate;d.animObject=t.animObject;d.getDeferredAnimation=t.getDeferredAnimation;d.setAnimation=t.setAnimation;d.stop=t.stop;d.timers=F.timers;d.AST=G;d.Axis=a;d.Chart=u;d.chart=u.chart;d.Fx=F;d.Legend=z;d.PlotLineOrBand=D;d.Point=L;d.Pointer=v.isRequired()?v:K;d.Series=k;d.SVGElement=
590
+ q;d.SVGRenderer=p;d.Tick=C;d.Time=x;d.Tooltip=I;d.Color=r;d.color=r.parse;c.compose(p);f.compose(q);d.defaultOptions=A.defaultOptions;d.getOptions=A.getOptions;d.time=A.defaultTime;d.setOptions=A.setOptions;d.dateFormat=H.dateFormat;d.format=H.format;d.numberFormat=H.numberFormat;d.addEvent=h.addEvent;d.arrayMax=h.arrayMax;d.arrayMin=h.arrayMin;d.attr=h.attr;d.clearTimeout=h.clearTimeout;d.correctFloat=h.correctFloat;d.createElement=h.createElement;d.css=h.css;d.defined=h.defined;d.destroyObjectProperties=
591
+ h.destroyObjectProperties;d.discardElement=h.discardElement;d.distribute=y.distribute;d.erase=h.erase;d.error=h.error;d.extend=h.extend;d.extendClass=h.extendClass;d.find=h.find;d.fireEvent=h.fireEvent;d.getMagnitude=h.getMagnitude;d.getStyle=h.getStyle;d.inArray=h.inArray;d.isArray=h.isArray;d.isClass=h.isClass;d.isDOMElement=h.isDOMElement;d.isFunction=h.isFunction;d.isNumber=h.isNumber;d.isObject=h.isObject;d.isString=h.isString;d.keys=h.keys;d.merge=h.merge;d.normalizeTickInterval=h.normalizeTickInterval;
592
+ d.objectEach=h.objectEach;d.offset=h.offset;d.pad=h.pad;d.pick=h.pick;d.pInt=h.pInt;d.relativeLength=h.relativeLength;d.removeEvent=h.removeEvent;d.seriesType=w.seriesType;d.splat=h.splat;d.stableSort=h.stableSort;d.syncTimeout=h.syncTimeout;d.timeUnits=h.timeUnits;d.uniqueKey=h.uniqueKey;d.useSerialIds=h.useSerialIds;d.wrap=h.wrap;e.compose(l);B.compose(k);n.compose(a);m.compose(a);b.compose(g);D.compose(a);J.compose(u);return d});N(h,"Core/Axis/OrdinalAxis.js",[h["Core/Axis/Axis.js"],h["Core/Globals.js"],
593
+ h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(d,h,A,F){var t=F.addEvent,E=F.correctFloat,H=F.css,y=F.defined,q=F.error,p=F.pick,f=F.timeUnits,c=[],a;(function(a){function d(a,c,b,d,k,l,h){void 0===k&&(k=[]);void 0===l&&(l=0);var e={},g=this.options.tickPixelInterval,r=this.chart.time,m=[],n,p,x=0,B=[],u=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!k||3>k.length||"undefined"===typeof c)return r.getTimeTicks.apply(r,arguments);var J=k.length;for(n=0;n<J;n++){var w=
594
+ n&&k[n-1]>b;k[n]<c&&(x=n);if(n===J-1||k[n+1]-k[n]>5*l||w){if(k[n]>u){for(p=r.getTimeTicks(a,k[x],k[n],d);p.length&&p[0]<=u;)p.shift();p.length&&(u=p[p.length-1]);m.push(B.length);B=B.concat(p)}x=n+1}if(w)break}if(p){p=p.info;if(h&&p.unitRange<=f.hour){n=B.length-1;for(x=1;x<n;x++)if(r.dateFormat("%d",B[x])!==r.dateFormat("%d",B[x-1])){e[B[x]]="day";var v=!0}v&&(e[B[0]]="day");p.higherRanks=e}p.segmentStarts=m;B.info=p}else q(12,!1,this.chart);if(h&&y(g)){p=B.length;r=[];x=[];n=void 0;for(v=p;v--;)m=
595
+ this.translate(B[v]),n&&(x[v]=n-m),r[v]=n=m;x.sort();x=x[Math.floor(x.length/2)];x<.6*g&&(x=null);v=B[p-1]>b?p-1:p;for(n=void 0;v--;)m=r[v],p=Math.abs(n-m),n&&p<.8*g&&(null===x||p<.8*x)?(e[B[v]]&&!e[B[v+1]]?(p=v+1,n=m):p=v,B.splice(p,1)):n=m}return B}function n(a){var e=this.ordinal.positions;if(!e)return a;var b=e.length-1;if(0>a)a=e[0];else if(a>b)a=e[b];else{b=Math.floor(a);var c=a-b}return"undefined"!==typeof c&&"undefined"!==typeof e[b]?e[b]+(c?c*(e[b+1]-e[b]):0):a}function C(a){var e=this.ordinal,
596
+ b=e.positions;if(!b)return a;var c=(a-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;0<c&&c<this.left+this.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),b=e.extendedOrdinalPositions);if(b&&b.length){a=e.getIndexOfPoint(c,b);e=E(a%1);if(0<=a&&a<b.length-1)return b[Math.floor(a)]+e*(b[Math.ceil(a)]-b[Math.floor(a)]);e=b.length;c=b[0];b=b[e-1];var f=(b-c)/(e-1);return 0>a?c+f*a:b+f*(a-e)}return a}function I(e,c){var b=
597
+ a.Additions.findIndexOf(e,c,!0);return e[b]===c?b:b+(c-e[b])/(e[b+1]-e[b])}function F(){this.ordinal||(this.ordinal=new a.Additions(this))}function G(){this.isXAxis&&y(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&y(this.userMin)&&(this.min+=this.options.overscroll))}function v(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&
598
+ this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function z(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function u(a){var e=this.xAxis[0],b=e.options.overscroll,c=a.originalEvent.chartX,f=this.options.chart.panning,d=!1;if(f&&"y"!==f.type&&e.options.ordinal&&e.series.length){var k=this.mouseDownX,l=e.getExtremes(),h=l.dataMax,m=l.min,n=l.max,p=this.hoverPoints,q=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange;
599
+ k=(k-c)/(e.translationSlope*(e.ordinal.slope||q));q={ordinal:{positions:e.ordinal.getExtendedPositions()}};var u=e.index2val,w=e.val2lin,v=void 0,t=v=void 0,z=void 0;q.ordinal.positions?1<Math.abs(k)&&(p&&p.forEach(function(a){a.setState()}),0>k?(t=q,z=e.ordinal.positions?e:q):(t=e.ordinal.positions?e:q,z=q),v=z.ordinal.positions,h>v[v.length-1]&&v.push(h),this.fixedRange=n-m,v=e.navigatorAxis.toFixedRange(void 0,void 0,u.apply(t,[w.apply(t,[m,!0])+k]),u.apply(z,[w.apply(z,[n,!0])+k])),v.min>=Math.min(l.dataMin,
600
+ m)&&v.max<=Math.max(h,n)+b&&e.setExtremes(v.min,v.max,!0,!1,{trigger:"pan"}),this.mouseDownX=c,H(this.container,{cursor:"move"})):d=!0}else d=!0;d||f&&/y/.test(f.type)?b&&(e.max=e.dataMax+b):a.preventDefault()}function k(){var a=this.xAxis;a&&a.options.ordinal&&(delete a.ordinal.index,delete a.ordinal.extendedOrdinalPositions)}function w(a,c){var b=this.ordinal,e=b.positions,g=b.slope,f=b.extendedOrdinalPositions;if(!e)return a;var d=e.length;if(e[0]<=a&&e[d-1]>=a)a=I(e,a);else{f||(f=b.getExtendedPositions&&
601
+ b.getExtendedPositions(),b.extendedOrdinalPositions=f);if(!f||!f.length)return a;d=f.length;g||(g=(f[d-1]-f[0])/d);e=I(f,e[0]);a>=f[0]&&a<=f[d-1]?a=I(f,a)-e:a<f[0]?(a=f[0]-a,a=-e-a/g):(a-=f[d-1],a=a/g+d-e)}return c?a:g*(a||0)+b.offset}a.compose=function(a,g,b){if(-1===c.indexOf(a)){c.push(a);var e=a.prototype;e.getTimeTicks=d;e.index2val=n;e.lin2val=C;e.val2lin=w;e.ordinal2lin=e.val2lin;t(a,"afterInit",F);t(a,"foundExtremes",G);t(a,"afterSetScale",v);t(a,"initialAxisTranslation",z)}-1===c.indexOf(b)&&
602
+ (c.push(b),t(b,"pan",u));-1===c.indexOf(g)&&(c.push(g),t(g,"updatedData",k));return a};var l=function(){function a(a){this.index={};this.axis=a}a.prototype.beforeSetTickPositions=function(){var a=this.axis,b=a.ordinal,e=a.getExtremes(),c=e.min,f=e.max,d=a.isXAxis&&!!a.options.breaks;e=a.options.ordinal;var k=a.chart.options.chart.ignoreHiddenSeries,l,h,m=[],n=Number.MAX_VALUE,q=!1;if(e||d){a.series.forEach(function(a,b){l=[];if(!(k&&!1===a.visible||!1===a.takeOrdinalPosition&&!d)&&(m=m.concat(a.processedXData),
603
+ u=m.length,m.sort(function(a,b){return a-b}),n=Math.min(n,p(a.closestPointRange,n)),u)){for(b=0;b<u-1;)m[b]!==m[b+1]&&l.push(m[b+1]),b++;l[0]!==m[0]&&l.unshift(m[0]);m=l}});var u=m.length;if(2<u){var w=m[1]-m[0];for(h=u-1;h--&&!q;)m[h+1]-m[h]!==w&&(q=!0);!a.options.keepOrdinalPadding&&(m[0]-c>w||f-m[m.length-1]>w)&&(q=!0)}else a.options.overscroll&&(2===u?n=m[1]-m[0]:1===u?(n=a.options.overscroll,m=[m[0],m[0]+n]):n=b.overscrollPointsRange);q||a.forceOrdinal?(a.options.overscroll&&(b.overscrollPointsRange=
604
+ n,m=m.concat(b.getOverscrollPositions())),b.positions=m,w=a.ordinal2lin(Math.max(c,m[0]),!0),h=Math.max(a.ordinal2lin(Math.min(f,m[m.length-1]),!0),1),b.slope=f=(f-c)/(h-w),b.offset=c-w*f):(b.overscrollPointsRange=p(a.closestPointRange,b.overscrollPointsRange),b.positions=a.ordinal.slope=b.offset=void 0)}a.isOrdinal=e&&q;b.groupIntervalFactor=null};a.findIndexOf=function(a,b,e){for(var c=0,g=a.length-1,f;c<g;)f=Math.ceil((c+g)/2),a[f]<=b?c=f:g=f-1;return a[c]===b?c:e?c:-1};a.prototype.getExtendedPositions=
605
+ function(){var a=this,b=a.axis,e=b.constructor.prototype,c=b.chart,f=b.series[0].currentDataGrouping,d=f?f.count+f.unitName:"raw",k=b.options.overscroll,l=b.getExtremes(),m=void 0,n=a.index;n||(n=a.index={});if(!n[d]){var p={series:[],chart:c,forceOrdinal:!1,getExtremes:function(){return{min:l.dataMin,max:l.dataMax+k}},getGroupPixelWidth:e.getGroupPixelWidth,getTimeTicks:e.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:e.ordinal2lin,getIndexOfPoint:e.getIndexOfPoint,
606
+ val2lin:e.val2lin};p.ordinal.axis=p;b.series.forEach(function(b){m={xAxis:p,xData:b.xData.slice(),chart:c,destroyGroupedData:h.noop,getProcessedData:A.prototype.getProcessedData,applyGrouping:A.prototype.applyGrouping};m.xData=m.xData.concat(a.getOverscrollPositions());m.options={dataGrouping:f?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[f.unitName,[f.count]]]}:{enabled:!1}};p.series.push(m);b.processData.apply(m)});m.closestPointRange!==
607
+ m.basePointRange&&m.currentDataGrouping&&(p.forceOrdinal=!0);b.ordinal.beforeSetTickPositions.apply({axis:p});n[d]=p.ordinal.positions}return n[d]};a.prototype.getGroupIntervalFactor=function(a,b,e){e=e.processedXData;var c=e.length,f=[];var g=this.groupIntervalFactor;if(!g){for(g=0;g<c-1;g++)f[g]=e[g+1]-e[g];f.sort(function(a,b){return a-b});f=f[Math.floor(c/2)];a=Math.max(a,e[0]);b=Math.min(b,e[c-1]);this.groupIntervalFactor=g=c*f/(b-a)}return g};a.prototype.getIndexOfPoint=function(e,b){var c=
608
+ this.axis,f=this.positions?this.positions[0]:0,g=c.series[0].points&&c.series[0].points[0]&&c.series[0].points[0].plotX||c.minPixelPadding;1<c.series.length&&c.series.forEach(function(a){a.points&&y(a.points[0])&&y(a.points[0].plotX)&&a.points[0].plotX<g&&(g=a.points[0].plotX)});e=(e-g)/(c.translationSlope*(this.slope||c.closestPointRange||this.overscrollPointsRange));return a.findIndexOf(b,f)+e};a.prototype.getOverscrollPositions=function(){var a=this.axis,b=a.options.overscroll,e=this.overscrollPointsRange,
609
+ c=[],f=a.dataMax;if(y(e))for(;f<=a.dataMax+b;)f+=e,c.push(f);return c};a.prototype.postProcessTickInterval=function(a){var b=this.axis,e=this.slope;return e?b.options.breaks?b.closestPointRange||a:a/(e/b.closestPointRange):a};return a}();a.Additions=l})(a||(a={}));return a});N(h,"Series/DataModifyComposition.js",[h["Core/Axis/Axis.js"],h["Core/Series/Point.js"],h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(d,h,A,F){var t=h.prototype.tooltipFormatter,E=F.addEvent,H=F.arrayMax,y=F.arrayMin,
610
+ q=F.correctFloat,p=F.defined,f=F.isArray,c=F.isNumber,a=F.isString,n=F.pick,m;(function(d){function h(e,b,c){this.isXAxis||(this.series.forEach(function(c){"compare"===e&&"boolean"!==typeof b?c.setCompare(b,!1):"cumulative"!==e||a(b)||c.setCumulative(b,!1)}),n(c,!0)&&this.chart.redraw())}function m(a){var b=this,e=b.series.chart.numberFormatter,c=function(c){a=a.replace("{point."+c+"}",(0<b[c]&&"change"===c?"+":"")+e(b[c],n(b.series.tooltipOptions.changeDecimals,2)))};p(b.change)&&c("change");p(b.cumulativeSum)&&
611
+ c("cumulativeSum");return t.apply(this,[a])}function D(){var a=this.options.compare;if("percent"===a||"value"===a||this.options.cumulative){var b=new e(this);"percent"===a||"value"===a?b.initCompare(a):b.initCumulative()}this.dataModify=b}function A(a){a=a.dataExtremes;var b=a.activeYData;if(this.dataModify&&a){var c=void 0;this.options.compare?c=[this.dataModify.modifyValue(a.dataMin),this.dataModify.modifyValue(a.dataMax)]:this.options.cumulative&&f(b)&&2<=b.length&&(c=e.getCumulativeExtremes(b));
612
+ c&&(a.dataMin=y(c),a.dataMax=H(c))}}function v(a,b){this.options.compare=this.userOptions.compare=a;this.update({},n(b,!0));!this.dataModify||"value"!==a&&"percent"!==a?this.points.forEach(function(a){delete a.change}):this.dataModify.initCompare(a)}function z(){if(this.xAxis&&this.processedYData&&this.dataModify){var a=this.processedXData,b=this.processedYData,e=b.length,f=!0===this.options.compareStart?0:1,d=-1,k;this.pointArrayMap&&(d=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||
613
+ "y"));for(k=0;k<e-f;k++){var l=b[k]&&-1<d?b[k][d]:b[k];if(c(l)&&0!==l&&a[k+f]>=(this.xAxis.min||0)){this.dataModify.compareValue=l;break}}}}function u(a,b){this.setModifier("compare",a,b)}function k(a,b){a=n(a,!1);this.options.cumulative=this.userOptions.cumulative=a;this.update({},n(b,!0));this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(a){delete a.cumulativeSum})}function w(a,b){this.setModifier("cumulative",a,b)}var l=[];d.compose=function(a,b,e){if(-1===l.indexOf(a)){l.push(a);
614
+ var c=a.prototype;c.setCompare=v;c.setCumulative=k;E(a,"afterInit",D);E(a,"afterGetExtremes",A);E(a,"afterProcessData",z)}-1===l.indexOf(b)&&(l.push(b),b=b.prototype,b.setCompare=u,b.setModifier=h,b.setCumulative=w);-1===l.indexOf(e)&&(l.push(e),e.prototype.tooltipFormatter=m);return a};var e=function(){function a(a){this.series=a}a.prototype.modifyValue=function(){return 0};a.getCumulativeExtremes=function(a){var b=Infinity,e=-Infinity;a.reduce(function(a,c){c=a+c;b=Math.min(b,c,a);e=Math.max(e,
615
+ c,a);return c});return[b,e]};a.prototype.initCompare=function(a){this.modifyValue=function(b,e){null===b&&(b=0);var c=this.compareValue;return"undefined"!==typeof b&&"undefined"!==typeof c?(b="value"===a?b-c:b/c*100-(100===this.series.options.compareBase?0:100),"undefined"!==typeof e&&(e=this.series.points[e])&&(e.change=b),b):0}};a.prototype.initCumulative=function(){this.modifyValue=function(a,e){null===a&&(a=0);if(void 0!==a&&void 0!==e){var b=0<e?this.series.points[e-1]:null;b&&b.cumulativeSum&&
616
+ (a=q(b.cumulativeSum+a));if(e=this.series.points[e])e.cumulativeSum=a;return a}return 0}};return a}();d.Additions=e})(m||(m={}));"";return m});N(h,"Core/Axis/BrokenAxis.js",[h["Extensions/Stacking.js"],h["Core/Utilities.js"]],function(d,h){var A=h.addEvent,E=h.find,t=h.fireEvent,G=h.isArray,H=h.isNumber,y=h.pick,q;(function(h){function f(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function c(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=
617
+ !1)}function a(){var a=this.brokenAxis;if(a&&a.hasBreaks){for(var c=this.tickPositions,f=this.tickPositions.info,d=[],h=0;h<c.length;h++)a.isInAnyBreak(c[h])||d.push(c[h]);this.tickPositions=d;this.tickPositions.info=f}}function n(){this.brokenAxis||(this.brokenAxis=new K(this))}function m(){var a=this.options.connectNulls,c=this.points,f=this.xAxis,d=this.yAxis;if(this.isDirty)for(var h=c.length;h--;){var l=c[h],e=!(null===l.y&&!1===a)&&(f&&f.brokenAxis&&f.brokenAxis.isInAnyBreak(l.x,!0)||d&&d.brokenAxis&&
618
+ d.brokenAxis.isInAnyBreak(l.y,!0));l.visible=e?!1:!1!==l.options.visible}}function p(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,y(this.pointArrayMap,["y"]))}function q(a,c){var f=this,d=f.points,h,l,e,g;if(a&&a.brokenAxis&&a.brokenAxis.hasBreaks){var b=a.brokenAxis;c.forEach(function(c){h=b&&b.breakArray||[];l=a.isXAxis?a.min:y(f.options.threshold,a.min);d.forEach(function(b){g=y(b["stack"+c.toUpperCase()],b[c]);h.forEach(function(c){if(H(l)&&H(g)){e=!1;if(l<c.from&&g>c.to||l>
619
+ c.from&&g<c.from)e="pointBreak";else if(l<c.from&&g>c.from&&g<c.to||l>c.from&&g>c.to&&g<c.from)e="pointInBreak";e&&t(a,e,{point:b,brk:c})}})})})}}function I(){var a=this.currentDataGrouping,c=a&&a.gapSize;a=this.points.slice();var f=this.yAxis,k=this.options.gapSize,h=a.length-1,l;if(k&&0<h)for("value"!==this.options.gapUnit&&(k*=this.basePointRange),c&&c>k&&c>=this.basePointRange&&(k=c),l=void 0;h--;)l&&!1!==l.visible||(l=a[h+1]),c=a[h],!1!==l.visible&&!1!==c.visible&&(l.x-c.x>k&&(l=(c.x+l.x)/2,
620
+ a.splice(h+1,0,{isNull:!0,x:l}),f.stacking&&this.options.stacking&&(l=f.stacking.stacks[this.stackKey][l]=new d(f,f.options.stackLabels,!1,l,this.stack),l.total=0)),l=c);return this.getGraphPath(a)}var F=[];h.compose=function(d,h){-1===F.indexOf(d)&&(F.push(d),d.keepProps.push("brokenAxis"),A(d,"init",n),A(d,"afterInit",f),A(d,"afterSetTickPositions",a),A(d,"afterSetOptions",c));if(-1===F.indexOf(h)){F.push(h);var u=h.prototype;u.drawBreaks=q;u.gappedPath=I;A(h,"afterGeneratePoints",m);A(h,"afterRender",
621
+ p)}return d};var K=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,c){var f=a.repeat||Infinity,d=a.from,l=a.to-a.from;c=c>=d?(c-d)%f:f-(d-c)%f;return a.inclusive?c<=l:c<l&&0!==c};a.lin2Val=function(c){var f=this.brokenAxis;f=f&&f.breakArray;if(!f||!H(c))return c;var d;for(d=0;d<f.length;d++){var h=f[d];if(h.from>=c)break;else h.to<c?c+=h.len:a.isInBreak(h,c)&&(c+=h.len)}return c};a.val2Lin=function(c){var f=this.brokenAxis;f=f&&f.breakArray;if(!f||!H(c))return c;var d=
622
+ c,h;for(h=0;h<f.length;h++){var l=f[h];if(l.to<=c)d-=l.len;else if(l.from>=c)break;else if(a.isInBreak(l,c)){d-=c-l.from;break}}return d};a.prototype.findBreakAt=function(a,c){return E(c,function(c){return c.from<a&&a<c.to})};a.prototype.isInAnyBreak=function(c,f){var d=this.axis,h=d.options.breaks||[],l=h.length,e;if(l&&H(c)){for(;l--;)if(a.isInBreak(h[l],c)){var g=!0;e||(e=y(h[l].showPoints,!d.isXAxis))}var b=g&&f?g&&!e:g}return b};a.prototype.setBreaks=function(c,f){var d=this,h=d.axis,l=G(c)&&
623
+ !!c.length;h.isDirty=d.hasBreaks!==l;d.hasBreaks=l;h.options.breaks=h.userOptions.breaks=c;h.forceRedraw=!0;h.series.forEach(function(a){a.isDirty=!0});l||h.val2lin!==a.val2Lin||(delete h.val2lin,delete h.lin2val);l&&(h.userOptions.ordinal=!1,h.lin2val=a.lin2Val,h.val2lin=a.val2Lin,h.setExtremes=function(a,c,b,f,k){if(d.hasBreaks){for(var e=this.options.breaks||[],g;g=d.findBreakAt(a,e);)a=g.to;for(;g=d.findBreakAt(c,e);)c=g.from;c<a&&(c=a)}h.constructor.prototype.setExtremes.call(this,a,c,b,f,k)},
624
+ h.setAxisTranslation=function(){h.constructor.prototype.setAxisTranslation.call(this);d.unitLength=void 0;if(d.hasBreaks){var c=h.options.breaks||[],f=[],b=[],k=y(h.pointRangePadding,0),l=0,r,m=h.userMin||h.min,n=h.userMax||h.max,p;c.forEach(function(b){r=b.repeat||Infinity;H(m)&&H(n)&&(a.isInBreak(b,m)&&(m+=b.to%r-m%r),a.isInBreak(b,n)&&(n-=n%r-b.from%r))});c.forEach(function(a){u=a.from;r=a.repeat||Infinity;if(H(m)&&H(n)){for(;u-r>m;)u-=r;for(;u<m;)u+=r;for(p=u;p<n;p+=r)f.push({value:p,move:"in"}),
625
+ f.push({value:p+a.to-a.from,move:"out",size:a.breakSize})}});f.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});var q=0;var u=m;f.forEach(function(a){q+="in"===a.move?1:-1;1===q&&"in"===a.move&&(u=a.value);0===q&&H(u)&&(b.push({from:u,to:a.value,len:a.value-u-(a.size||0)}),l+=a.value-u-(a.size||0))});d.breakArray=b;H(m)&&H(n)&&H(h.min)&&(d.unitLength=n-m-l+k,t(h,"afterBreaks"),h.staticScale?h.transA=h.staticScale:d.unitLength&&(h.transA*=(n-h.min+
626
+ k)/d.unitLength),k&&(h.minPixelPadding=h.transA*(h.minPointOffset||0)),h.min=m,h.max=n)}});y(f,!0)&&h.chart.redraw()};return a}();h.Additions=K})(q||(q={}));return q});N(h,"masters/modules/broken-axis.src.js",[h["Core/Globals.js"],h["Core/Axis/BrokenAxis.js"]],function(d,h){h.compose(d.Axis,d.Series)});N(h,"Extensions/DataGrouping.js",[h["Core/Axis/Axis.js"],h["Core/Axis/DateTimeAxis.js"],h["Core/FormatUtilities.js"],h["Core/Globals.js"],h["Core/Series/Point.js"],h["Core/Series/Series.js"],h["Core/Tooltip.js"],
627
+ h["Core/DefaultOptions.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G,H,y,q){var p=A.format,f=G.prototype;A=q.addEvent;var c=q.arrayMax,a=q.arrayMin,n=q.correctFloat,m=q.defined,D=q.error,C=q.extend,I=q.isNumber,E=q.merge,K=q.pick;"";var v=F.approximations={sum:function(a){var c=a.length;if(!c&&a.hasNulls)var b=null;else if(c)for(b=0;c--;)b+=a[c];return b},average:function(a){var c=a.length;a=v.sum(a);I(a)&&c&&(a=n(a/c));return a},averages:function(){var a=[];[].forEach.call(arguments,function(c){a.push(v.average(c))});
628
+ return"undefined"===typeof a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?c(a):a.hasNulls?null:void 0},low:function(c){return c.length?a(c):c.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},hlc:function(a,c,b){a=v.high(a);c=v.low(c);b=v.close(b);if(I(a)||I(c)||I(b))return[a,c,b]},ohlc:function(a,c,b,f){a=v.open(a);c=v.high(c);b=v.low(b);f=v.close(f);if(I(a)||I(c)||I(b)||I(f))return[a,c,b,f]},
629
+ range:function(a,c){a=v.low(a);c=v.high(c);if(I(a)||I(c))return[a,c];if(null===a&&null===c)return null}};q=function(a,c,b,f){var e=this,d=e.data,g=e.options&&e.options.data,k=[],l=[],h=[],n=a.length,p=!!c,q=[],u=e.pointArrayMap,B=u&&u.length,w=["x"].concat(u||["y"]),t=this.options.dataGrouping&&this.options.dataGrouping.groupAll,z=0,y=0,D;f="function"===typeof f?f:v[f]?v[f]:v[e.getDGApproximation&&e.getDGApproximation()||"average"];B?u.forEach(function(){q.push([])}):q.push([]);var C=B||1;for(D=0;D<=
630
+ n&&!(a[D]>=b[0]);D++);for(D;D<=n;D++){for(;"undefined"!==typeof b[z+1]&&a[D]>=b[z+1]||D===n;){var A=b[z];e.dataGroupInfo={start:t?y:e.cropStart+y,length:q[0].length};var F=f.apply(e,q);e.pointClass&&!m(e.dataGroupInfo.options)&&(e.dataGroupInfo.options=E(e.pointClass.prototype.optionsToObject.call({series:e},e.options.data[e.cropStart+y])),w.forEach(function(a){delete e.dataGroupInfo.options[a]}));"undefined"!==typeof F&&(k.push(A),l.push(F),h.push(e.dataGroupInfo));y=D;for(A=0;A<C;A++)q[A].length=
631
+ 0,q[A].hasNulls=!1;z+=1;if(D===n)break}if(D===n)break;if(u){A=e.options.dataGrouping&&e.options.dataGrouping.groupAll?D:e.cropStart+D;F=d&&d[A]||e.pointClass.prototype.applyOptions.apply({series:e},[g[A]]);var G=void 0;for(A=0;A<B;A++)G=F[u[A]],I(G)?q[A].push(G):null===G&&(q[A].hasNulls=!0)}else A=p?c[D]:null,I(A)?q[0].push(A):null===A&&(q[0].hasNulls=!0)}return{groupedXData:k,groupedYData:l,groupMap:h}};var z={approximations:v,groupData:q},u=f.generatePoints,k={groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L",
632
+ "%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},w={line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},
633
+ candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},l=F.defaultDataGroupingUnits=[["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]],["week",[1]],["month",[1,3,6]],["year",null]];f.getDGApproximation=function(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"};f.groupData=q;f.applyGrouping=
634
+ function(a){var c=this.chart,b=this.options.dataGrouping,e=!1!==this.allowDG&&b&&K(b.enabled,c.options.isStock),d=this.visible||!c.options.chart.ignoreHiddenSeries,k,n=this.currentDataGrouping,p=!1;e&&!this.requireSorting&&(this.requireSorting=p=!0);a=!1===!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!a)||!e;p&&(this.requireSorting=!1);if(!a){this.destroyGroupedData();e=b.groupAll?this.xData:this.processedXData;var q=b.groupAll?this.yData:this.processedYData;a=c.plotSizeX;
635
+ p=this.xAxis;var u=p.options.ordinal,w=this.groupPixelWidth;if(w&&e&&e.length){this.isDirty=k=!0;this.points=null;var v=p.getExtremes();var t=v.min;v=v.max;u=u&&p.ordinal&&p.ordinal.getGroupIntervalFactor(t,v,this)||1;a=p.getTimeTicks(h.Additions.prototype.normalizeTimeTickInterval(w*(v-t)/a*u,b.units||l),Math.min(t,e[0]),Math.max(v,e[e.length-1]),p.options.startOfWeek,e,this.closestPointRange);w=f.groupData.apply(this,[e,q,a,b.approximation]);e=w.groupedXData;q=w.groupedYData;u=0;b&&b.smoothed&&
636
+ e.length&&(b.firstAnchor="firstPoint",b.anchor="middle",b.lastAnchor="lastPoint",D(32,!1,c,{"dataGrouping.smoothed":"use dataGrouping.anchor"}));c=e;var z=this.options.dataGrouping;t=this.currentDataGrouping&&this.currentDataGrouping.gapSize;if(z&&this.xData&&t&&this.groupMap){var y=c.length-1;var C=z.anchor;var A=K(z.firstAnchor,C);z=K(z.lastAnchor,C);if(C&&"start"!==C){var F=t*{middle:.5,end:1}[C];for(C=c.length-1;C--&&0<C;)c[C]+=F}if(A&&"start"!==A&&this.xData[0]>=c[0]){C=this.groupMap[0].start;
637
+ F=this.groupMap[0].length;var E=void 0;I(C)&&I(F)&&(E=C+(F-1));c[0]={middle:c[0]+.5*t,end:c[0]+t,firstPoint:this.xData[0],lastPoint:E&&this.xData[E]}[A]}z&&"start"!==z&&t&&c[y]>=v-t&&(v=this.groupMap[this.groupMap.length-1].start,c[y]={middle:c[y]+.5*t,end:c[y]+t,firstPoint:v&&this.xData[v],lastPoint:this.xData[this.xData.length-1]}[z])}for(v=1;v<a.length;v++)a.info.segmentStarts&&-1!==a.info.segmentStarts.indexOf(v)||(u=Math.max(a[v]-a[v-1],u));v=a.info;v.gapSize=u;this.closestPointRange=a.info.totalRange;
638
+ this.groupMap=w.groupMap;if(d){d=e;if(m(d[0])&&I(p.min)&&I(p.dataMin)&&d[0]<p.min){if(!m(p.options.min)&&p.min<=p.dataMin||p.min===p.dataMin)p.min=Math.min(d[0],p.min);p.dataMin=Math.min(d[0],p.dataMin)}if(m(d[d.length-1])&&I(p.max)&&I(p.dataMax)&&d[d.length-1]>p.max){if(!m(p.options.max)&&I(p.dataMax)&&p.max>=p.dataMax||p.max===p.dataMax)p.max=Math.max(d[d.length-1],p.max);p.dataMax=Math.max(d[d.length-1],p.dataMax)}}b.groupAll&&(this.allGroupedData=q,b=this.cropData(e,q,p.min,p.max,1),e=b.xData,
639
+ q=b.yData,this.cropStart=b.start);this.processedXData=e;this.processedYData=q}else this.groupMap=null;this.hasGroupedData=k;this.currentDataGrouping=v;this.preventGraphAnimation=(n&&n.totalRange)!==(v&&v.totalRange)}};f.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach(function(a,c){a&&(this.groupedData[c]=a.destroy?a.destroy():null)},this),this.groupedData.length=0)};f.generatePoints=function(){u.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:
640
+ null};d.prototype.applyGrouping=function(a){var c=this;c.series.forEach(function(b){b.groupPixelWidth=void 0;b.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth();b.groupPixelWidth&&(b.hasProcessed=!0);b.applyGrouping(!!a.hasExtemesChanged)})};d.prototype.getGroupPixelWidth=function(){var a=this.series,c=a.length,b,f=0,d=!1,l;for(b=c;b--;)(l=a[b].options.dataGrouping)&&(f=Math.max(f,K(l.groupPixelWidth,k.groupPixelWidth)));for(b=c;b--;)if(l=a[b].options.dataGrouping)if(c=(a[b].processedXData||
641
+ a[b].data).length,a[b].groupPixelWidth||c>this.chart.plotSizeX/f||c&&l.forced)d=!0;return d?f:0};d.prototype.setDataGrouping=function(a,c){var b;c=K(c,!0);a||(a={forced:!1,units:null});if(this instanceof d)for(b=this.series.length;b--;)this.series[b].update({dataGrouping:a},!1);else this.chart.options.series.forEach(function(b){b.dataGrouping=a},!1);this.ordinal&&(this.ordinal.slope=void 0);c&&this.chart.redraw()};A(d,"postProcessData",d.prototype.applyGrouping);A(t,"update",function(){if(this.dataGroup)return D(24,
642
+ !1,this.series.chart),!1});A(H,"headerFormatter",function(a){var c=this.chart,b=c.time,e=a.labelConfig,f=e.series,d=f.tooltipOptions,l=f.options.dataGrouping,h=d.xDateFormat,m=f.xAxis,n=d[a.isFooter?"footerFormat":"headerFormat"];if(m&&"datetime"===m.options.type&&l&&I(e.key)){var q=f.currentDataGrouping;l=l.dateTimeLabelFormats||k.dateTimeLabelFormats;if(q)if(d=l[q.unitName],1===q.count)h=d[0];else{h=d[1];var u=d[2]}else!h&&l&&m.dateTime&&(h=m.dateTime.getXDateFormat(e.x,d.dateTimeLabelFormats));
643
+ h=b.dateFormat(h,e.key);u&&(h+=b.dateFormat(u,e.key+q.totalRange-1));f.chart.styledMode&&(n=this.styledModeFormat(n));a.text=p(n,{point:C(e.point,{key:h}),series:f},c);a.preventDefault()}});A(G,"destroy",f.destroyGroupedData);A(G,"afterSetOptions",function(a){a=a.options;var c=this.type,b=this.chart.options.plotOptions,e=y.defaultOptions.plotOptions[c].dataGrouping,f=this.useCommonDataGrouping&&k;if(b&&(w[c]||f)){e||(e=E(k,w[c]));var d=this.chart.rangeSelector;a.dataGrouping=E(f,e,b.series&&b.series.dataGrouping,
644
+ b[c].dataGrouping,this.userOptions.dataGrouping,!a.isInternal&&d&&I(d.selected)&&d.buttonOptions[d.selected].dataGrouping)}});A(d,"afterSetScale",function(){this.series.forEach(function(a){a.hasProcessed=!1})});F.dataGrouping=z;"";return z});N(h,"Series/HLC/HLCPoint.js",[h["Core/Series/SeriesRegistry.js"]],function(d){var h=this&&this.__extends||function(){var d=function(h,t){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var t in h)h.hasOwnProperty(t)&&
645
+ (d[t]=h[t])};return d(h,t)};return function(h,t){function A(){this.constructor=h}d(h,t);h.prototype=null===t?Object.create(t):(A.prototype=t.prototype,new A)}}();return function(d){function A(){var h=null!==d&&d.apply(this,arguments)||this;h.close=void 0;h.high=void 0;h.low=void 0;h.options=void 0;h.plotClose=void 0;h.series=void 0;return h}h(A,d);return A}(d.seriesTypes.column.prototype.pointClass)});N(h,"Series/HLC/HLCSeries.js",[h["Series/HLC/HLCPoint.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],
646
+ function(d,h,A){var F=this&&this.__extends||function(){var d=function(h,p){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,c){f.__proto__=c}||function(f,c){for(var a in c)c.hasOwnProperty(a)&&(f[a]=c[a])};return d(h,p)};return function(h,p){function f(){this.constructor=h}d(h,p);h.prototype=null===p?Object.create(p):(f.prototype=p.prototype,new f)}}(),t=h.seriesTypes.column,E=A.extend,H=A.merge;A=function(d){function h(){var h=null!==d&&d.apply(this,arguments)||this;h.data=void 0;
647
+ h.options=void 0;h.points=void 0;h.yData=void 0;return h}F(h,d);h.prototype.extendStem=function(d,f,c){var a=d[0];d=d[1];"number"===typeof a[2]&&(a[2]=Math.max(c+f,a[2]));"number"===typeof d[2]&&(d[2]=Math.min(c-f,d[2]))};h.prototype.getPointPath=function(d,f){f=f.strokeWidth();var c=d.series,a=f%2/2,h=Math.round(d.plotX)-a,m=Math.round(d.shapeArgs.width/2);var p=[["M",h,Math.round(d.yBottom)],["L",h,Math.round(d.plotHigh)]];null!==d.close&&(d=Math.round(d.plotClose)+a,p.push(["M",h,d],["L",h+m,d]),
648
+ c.extendStem(p,f/2,d));return p};h.prototype.drawSinglePoint=function(d){var f=d.series,c=f.chart,a=d.graphic,h=!a;"undefined"!==typeof d.plotY&&(a||(d.graphic=a=c.renderer.path().add(f.group)),c.styledMode||a.attr(f.pointAttribs(d,d.selected&&"select")),f=f.getPointPath(d,a),a[h?"attr":"animate"]({d:f}).addClass(d.getClassName(),!0))};h.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)};h.prototype.init=function(){d.prototype.init.apply(this,arguments);this.options.stacking=
649
+ void 0};h.prototype.pointAttribs=function(h,f){h=d.prototype.pointAttribs.call(this,h,f);delete h.fill;return h};h.prototype.toYData=function(d){return[d.high,d.low,d.close]};h.prototype.translate=function(){var h=this,f=h.yAxis,c=this.pointArrayMap&&this.pointArrayMap.slice()||[],a=c.map(function(a){return"plot"+(a.charAt(0).toUpperCase()+a.slice(1))});a.push("yBottom");c.push("low");d.prototype.translate.apply(h);h.points.forEach(function(d){c.forEach(function(c,n){c=d[c];null!==c&&(h.dataModify&&
650
+ (c=h.dataModify.modifyValue(c)),d[a[n]]=f.toPixels(c,!0))});d.tooltipPos[1]=d.plotHigh+f.pos-h.chart.plotTop})};h.defaultOptions=H(t.defaultOptions,{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0});return h}(t);E(A.prototype,{animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color",
651
+ "stroke-width":"lineWidth"},pointValKey:"close"});A.prototype.pointClass=d;h.registerSeriesType("hlc",A);"";return A});N(h,"Series/OHLC/OHLCPoint.js",[h["Core/Series/SeriesRegistry.js"]],function(d){var h=this&&this.__extends||function(){var d=function(h,t){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var t in h)h.hasOwnProperty(t)&&(d[t]=h[t])};return d(h,t)};return function(h,t){function A(){this.constructor=h}d(h,t);h.prototype=null===
652
+ t?Object.create(t):(A.prototype=t.prototype,new A)}}();return function(d){function A(){var h=null!==d&&d.apply(this,arguments)||this;h.open=void 0;h.options=void 0;h.plotOpen=void 0;h.series=void 0;return h}h(A,d);A.prototype.getClassName=function(){return d.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")};A.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)};
653
+ A.prototype.resolveColor=function(){d.prototype.resolveColor.call(this);this.resolveUpColor()};A.prototype.getZone=function(){var h=d.prototype.getZone.call(this);this.resolveUpColor();return h};A.prototype.applyOptions=function(){d.prototype.applyOptions.apply(this,arguments);this.resolveColor&&this.resolveColor();return this};return A}(d.seriesTypes.hlc.prototype.pointClass)});N(h,"Series/OHLC/OHLCSeries.js",[h["Series/OHLC/OHLCPoint.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],
654
+ function(d,h,A){var E=this&&this.__extends||function(){var d=function(c,a){d=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 d(c,a)};return function(c,a){function f(){this.constructor=c}d(c,a);c.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),t=h.series,G=h.seriesTypes.hlc,H=A.addEvent,y=A.extend,q=A.merge,p=function(d){function c(){var a=null!==d&&d.apply(this,arguments)||
655
+ this;a.data=void 0;a.options=void 0;a.points=void 0;return a}E(c,d);c.prototype.getPointPath=function(a,c){var f=d.prototype.getPointPath.call(this,a,c);c=c.strokeWidth();var h=c%2/2,n=Math.round(a.plotX)-h,p=Math.round(a.shapeArgs.width/2);null!==a.open&&(a=Math.round(a.plotOpen)+h,f.push(["M",n,a],["L",n-p,a]),d.prototype.extendStem.call(this,f,c/2,a));return f};c.prototype.pointAttribs=function(a,c){c=d.prototype.pointAttribs.call(this,a,c);var f=this.options;delete c.fill;!a.options.color&&f.upColor&&
656
+ a.open<a.close&&(c.stroke=f.upColor);return c};c.prototype.toYData=function(a){return[a.open,a.high,a.low,a.close]};c.defaultOptions=q(G.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}});return c}(G);y(p.prototype,{pointArrayMap:["open","high","low","close"]});p.prototype.pointClass=d;h.registerSeriesType("ohlc",p);H(t,"init",function(d){d=
657
+ d.options;d.useOhlcData&&"highcharts-navigator-series"!==d.id&&y(this,{pointValKey:p.prototype.pointValKey,pointArrayMap:p.prototype.pointArrayMap,toYData:p.prototype.toYData})});H(t,"afterSetOptions",function(d){d=d.options;var c=d.dataGrouping;c&&d.useOhlcData&&"highcharts-navigator-series"!==d.id&&(c.approximation="ohlc")});"";return p});N(h,"Series/Candlestick/CandlestickSeries.js",[h["Core/DefaultOptions.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A){var E=this&&
658
+ this.__extends||function(){var d=function(h,f){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d])};return d(h,f)};return function(h,f){function c(){this.constructor=h}d(h,f);h.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}(),t=d.defaultOptions;d=h.seriesTypes;var G=d.column,H=d.ohlc,y=A.merge;A=function(d){function h(){var f=null!==d&&d.apply(this,arguments)||this;f.data=void 0;
659
+ f.options=void 0;f.points=void 0;return f}E(h,d);h.prototype.pointAttribs=function(d,c){var a=G.prototype.pointAttribs.call(this,d,c),f=this.options,h=d.open<d.close,p=f.lineColor||this.color,q=d.color||this.color;a["stroke-width"]=f.lineWidth;a.fill=d.options.color||(h?f.upColor||q:q);a.stroke=d.options.lineColor||(h?f.upLineColor||p:p);c&&(d=f.states[c],a.fill=d.color||a.fill,a.stroke=d.lineColor||a.stroke,a["stroke-width"]=d.lineWidth||a["stroke-width"]);return a};h.prototype.drawPoints=function(){var d=
660
+ this,c=d.chart,a=d.yAxis.reversed;d.points.forEach(function(f){var h=f.graphic,n=!h;if("undefined"!==typeof f.plotY){h||(f.graphic=h=c.renderer.path().add(d.group));d.chart.styledMode||h.attr(d.pointAttribs(f,f.selected&&"select")).shadow(d.options.shadow);var p=h.strokeWidth()%2/2;var q=Math.round(f.plotX)-p;var t=f.plotOpen;var y=f.plotClose;var v=Math.min(t,y);t=Math.max(t,y);var z=Math.round(f.shapeArgs.width/2);y=a?t!==f.yBottom:Math.round(v)!==Math.round(f.plotHigh);var u=a?Math.round(v)!==
661
+ Math.round(f.plotHigh):t!==f.yBottom;v=Math.round(v)+p;t=Math.round(t)+p;p=[];p.push(["M",q-z,t],["L",q-z,v],["L",q+z,v],["L",q+z,t],["Z"],["M",q,v],["L",q,y?Math.round(a?f.yBottom:f.plotHigh):v],["M",q,t],["L",q,u?Math.round(a?f.plotHigh:f.yBottom):t]);h[n?"attr":"animate"]({d:p}).addClass(f.getClassName(),!0)}})};h.defaultOptions=y(H.defaultOptions,t.plotOptions,{states:{hover:{lineWidth:2}},tooltip:t.plotOptions.ohlc.tooltip,threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0});
662
+ return h}(H);h.registerSeriesType("candlestick",A);"";return A});N(h,"Series/Flags/FlagsPoint.js",[h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h){var A=this&&this.__extends||function(){var d=function(h,t){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var p in h)h.hasOwnProperty(p)&&(d[p]=h[p])};return d(h,t)};return function(h,t){function y(){this.constructor=h}d(h,t);h.prototype=null===t?Object.create(t):(y.prototype=
663
+ t.prototype,new y)}}(),E=h.isNumber;return function(d){function h(){var h=null!==d&&d.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}A(h,d);h.prototype.isValid=function(){return E(this.y)||"undefined"===typeof this.y};h.prototype.hasNewShapeType=function(){var d=this.options.shape||this.series.options.shape;return this.graphic&&d&&d!==this.graphic.symbolKey};return h}(d.seriesTypes.column.prototype.pointClass)});N(h,"Series/OnSeriesComposition.js",[h["Series/Column/ColumnSeries.js"],
664
+ h["Core/Series/Series.js"],h["Core/Utilities.js"]],function(d,h,A){var E=d.prototype,t=h.prototype,G=A.defined,H=A.stableSort,y;(function(d){function h(){return t.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)}function f(){E.translate.apply(this);var a=this,c=a.options,d=a.chart,f=a.points,h=c.onSeries,p=(h=h&&d.get(h))&&h.options.step,q=h&&h.points,t=d.inverted,v=a.xAxis,z=a.yAxis;d=f.length-1;var u;c=c.onKey||"y";var k=q&&q.length,w=0,l;if(h&&h.visible&&k){w=
665
+ (h.pointXOffset||0)+(h.barW||0)/2;var e=h.currentDataGrouping;var g=q[k-1].x+(e?e.totalRange:0);H(f,function(a,b){return a.x-b.x});for(c="plot"+c[0].toUpperCase()+c.substr(1);k--&&f[d];){var b=q[k];e=f[d];e.y=b.y;if(b.x<=e.x&&"undefined"!==typeof b[c]){if(e.x<=g&&(e.plotY=b[c],b.x<e.x&&!p&&(l=q[k+1])&&"undefined"!==typeof l[c])){var B=(e.x-b.x)/(l.x-b.x);e.plotY+=B*(l[c]-b[c]);e.y+=B*(l.y-b.y)}d--;k++;if(0>d)break}}}f.forEach(function(b,c){b.plotX+=w;if("undefined"===typeof b.plotY||t)0<=b.plotX&&
666
+ b.plotX<=v.len?t?(b.plotY=v.translate(b.x,0,1,0,1),b.plotX=G(b.y)?z.translate(b.y,0,0,0,1):0):b.plotY=(v.opposite?0:a.yAxis.len)+v.offset:b.shapeArgs={};if((u=f[c-1])&&u.plotX===b.plotX){"undefined"===typeof u.stackIndex&&(u.stackIndex=0);var e=u.stackIndex+1}b.stackIndex=e});this.onSeries=h}var c=[];d.compose=function(a){if(-1===c.indexOf(a)){c.push(a);var d=a.prototype;d.getPlotBox=h;d.translate=f}return a};d.getPlotBox=h;d.translate=f})(y||(y={}));return y});N(h,"Series/Flags/FlagsSymbols.js",
667
+ [h["Core/Renderer/RendererRegistry.js"],h["Core/Renderer/SVG/SVGRenderer.js"]],function(d,h){function A(d){E[d+"pin"]=function(h,t,y,q,p){var f=p&&p.anchorX;p=p&&p.anchorY;"circle"===d&&q>y&&(h-=Math.round((q-y)/2),y=q);var c=E[d](h,t,y,q);if(f&&p){var a=f;"circle"===d?a=h+y/2:(h=c[0],y=c[1],"M"===h[0]&&"L"===y[0]&&(a=(h[1]+y[1])/2));c.push(["M",a,t>p?t:t+q],["L",f,p]);c=c.concat(E.circle(f-1,p-1,2,2))}return c}}var E=h.prototype.symbols;E.flag=function(d,h,A,y,q){var p=q&&q.anchorX||d;q=q&&q.anchorY||
668
+ h;var f=E.circle(p-1,q-1,2,2);f.push(["M",p,q],["L",d,h+y],["L",d,h],["L",d+A,h],["L",d+A,h+y],["L",d,h+y],["Z"]);return f};A("circle");A("square");d=d.getRendererType();d!==h&&(d.prototype.symbols.circlepin=E.circlepin,d.prototype.symbols.flag=E.flag,d.prototype.symbols.squarepin=E.squarepin);return E});N(h,"Series/Flags/FlagsSeries.js",[h["Series/Flags/FlagsPoint.js"],h["Core/Globals.js"],h["Series/OnSeriesComposition.js"],h["Core/Renderer/RendererUtilities.js"],h["Core/Series/SeriesRegistry.js"],
669
+ h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G,H){var y=this&&this.__extends||function(){var a=function(c,d){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,d)};return function(c,d){function f(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}();h=h.noop;var q=F.distribute,p=t.series,f=t.seriesTypes.column,
670
+ c=H.addEvent,a=H.defined;F=H.extend;var n=H.merge,m=H.objectEach,D=H.wrap;H=function(d){function h(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}y(h,d);h.prototype.animate=function(a){a&&this.setClip()};h.prototype.drawPoints=function(){var c=this.points,d=this.chart,f=d.renderer,h=d.inverted,p=this.options,k=p.y,w,l=this.yAxis,e={},g=[];for(w=c.length;w--;){var b=c[w];var B=(h?b.plotY:b.plotX)>this.xAxis.len;var t=b.plotX;var r=b.stackIndex;
671
+ var x=b.options.shape||p.shape;var M=b.plotY;"undefined"!==typeof M&&(M=b.plotY+k-("undefined"!==typeof r&&r*p.stackDistance));b.anchorX=r?void 0:b.plotX;var y=r?void 0:b.plotY;var A="flag"!==x;r=b.graphic;"undefined"!==typeof M&&0<=t&&!B?(r&&b.hasNewShapeType()&&(r=r.destroy()),r||(r=b.graphic=f.label("",null,null,x,null,null,p.useHTML).addClass("highcharts-point").add(this.markerGroup),b.graphic.div&&(b.graphic.div.point=b),r.isNew=!0),r.attr({align:A?"center":"left",width:p.width,height:p.height,
672
+ "text-align":p.textAlign}),d.styledMode||r.attr(this.pointAttribs(b)).css(n(p.style,b.style)).shadow(p.shadow),0<t&&(t-=r.strokeWidth()%2),x={y:M,anchorY:y},p.allowOverlapX&&(x.x=t,x.anchorX=b.anchorX),r.attr({text:b.options.title||p.title||"A"})[r.isNew?"attr":"animate"](x),p.allowOverlapX||(e[b.plotX]?e[b.plotX].size=Math.max(e[b.plotX].size,r.width):e[b.plotX]={align:A?.5:0,size:r.width,target:t,anchorX:t}),b.tooltipPos=[t,M+l.pos-d.plotTop]):r&&(b.graphic=r.destroy())}if(!p.allowOverlapX){var C=
673
+ 100;m(e,function(a){a.plotX=a.anchorX;g.push(a);C=Math.max(a.size,C)});q(g,h?l.len:this.xAxis.len,C);c.forEach(function(b){var c=b.graphic&&e[b.plotX];c&&(b.graphic[b.graphic.isNew?"attr":"animate"]({x:c.pos+c.align*c.size,anchorX:b.anchorX}),a(c.pos)?b.graphic.isNew=!1:(b.graphic.attr({x:-9999,anchorX:-9999}),b.graphic.isNew=!0))})}p.useHTML&&D(this.markerGroup,"on",function(a){return G.prototype.on.apply(a.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})};h.prototype.drawTracker=
674
+ function(){var a=this.points;d.prototype.drawTracker.call(this);a.forEach(function(d){var f=d.graphic;f&&(d.unbindMouseOver&&d.unbindMouseOver(),d.unbindMouseOver=c(f.element,"mouseover",function(){0<d.stackIndex&&!d.raised&&(d._y=f.y,f.attr({y:d._y-8}),d.raised=!0);a.forEach(function(a){a!==d&&a.raised&&a.graphic&&(a.graphic.attr({y:a._y}),a.raised=!1)})}))})};h.prototype.pointAttribs=function(a,c){var d=this.options,f=a&&a.color||this.color,h=d.lineColor,k=a&&a.lineWidth;a=a&&a.fillColor||d.fillColor;
675
+ c&&(a=d.states[c].fillColor,h=d.states[c].lineColor,k=d.states[c].lineWidth);return{fill:a||f,stroke:h||f,"stroke-width":k||d.lineWidth||0}};h.prototype.setClip=function(){p.prototype.setClip.apply(this,arguments);!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])};h.defaultOptions=n(f.defaultOptions,{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,
676
+ y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}});return h}(f);A.compose(H);F(H.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:d,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:h,init:p.prototype.init,invertGroups:h});t.registerSeriesType("flags",H);"";"";return H});N(h,"Core/Axis/ScrollbarAxis.js",[h["Core/Utilities.js"]],function(d){var h=d.addEvent,
677
+ A=d.defined,F=d.pick;return function(){function d(){}d.compose=function(t,E){if(-1===d.composed.indexOf(t))d.composed.push(t);else return t;var y=function(d){var h=F(d.options&&d.options.min,d.min),f=F(d.options&&d.options.max,d.max);return{axisMin:h,axisMax:f,scrollMin:A(d.dataMin)?Math.min(h,d.min,d.dataMin,F(d.threshold,Infinity)):h,scrollMax:A(d.dataMax)?Math.max(f,d.max,d.dataMax,F(d.threshold,-Infinity)):f}};h(t,"afterInit",function(){var d=this;d.options&&d.options.scrollbar&&d.options.scrollbar.enabled&&
678
+ (d.options.scrollbar.vertical=!d.horiz,d.options.startOnTick=d.options.endOnTick=!1,d.scrollbar=new E(d.chart.renderer,d.options.scrollbar,d.chart),h(d.scrollbar,"changed",function(h){var f=y(d),c=f.axisMax,a=f.scrollMin,p=f.scrollMax-a;A(f.axisMin)&&A(c)&&(d.horiz&&!d.reversed||!d.horiz&&d.reversed?(f=a+p*this.to,a+=p*this.from):(f=a+p*(1-this.from),a+=p*(1-this.to)),this.shouldUpdateExtremes(h.DOMType)?d.setExtremes(a,f,!0,"mousemove"!==h.DOMType&&"touchmove"!==h.DOMType,h):this.setRange(this.from,
679
+ this.to))}))});h(t,"afterRender",function(){var d=y(this),h=d.scrollMin,f=d.scrollMax;d=this.scrollbar;var c=this.axisTitleMargin+(this.titleOffset||0),a=this.chart.scrollbarsOffsets,n=this.options.margin||0;d&&(this.horiz?(this.opposite||(a[1]+=c),d.position(this.left,this.top+this.height+2+a[1]-(this.opposite?n:0),this.width,this.height),this.opposite||(a[1]+=n),c=1):(this.opposite&&(a[0]+=c),d.position(d.options.opposite?this.left+this.width+2+a[0]-(this.opposite?0:n):this.opposite?0:n,this.top,
680
+ this.width,this.height),this.opposite&&(a[0]+=n),c=0),a[c]+=d.size+d.options.margin,isNaN(h)||isNaN(f)||!A(this.min)||!A(this.max)||this.min===this.max?d.setRange(0,1):(a=(this.min-h)/(f-h),h=(this.max-h)/(f-h),this.horiz&&!this.reversed||!this.horiz&&this.reversed?d.setRange(a,h):d.setRange(1-h,1-a)))});h(t,"afterGetOffset",function(){var d=this.scrollbar&&!this.scrollbar.options.opposite;d=this.horiz?2:d?3:1;var h=this.scrollbar;h&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[d]+=h.size+
681
+ h.options.margin)});return t};d.composed=[];return d}()});N(h,"Core/ScrollbarDefaults.js",[h["Core/Globals.js"]],function(d){return{height:d.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",
682
+ trackBorderWidth:1}});N(h,"Core/Scrollbar.js",[h["Core/DefaultOptions.js"],h["Core/Globals.js"],h["Core/Axis/ScrollbarAxis.js"],h["Core/ScrollbarDefaults.js"],h["Core/Utilities.js"]],function(d,h,A,F,t){var E=d.defaultOptions,H=t.addEvent,y=t.correctFloat,q=t.defined,p=t.destroyObjectProperties,f=t.fireEvent,c=t.merge,a=t.pick,n=t.removeEvent;d=function(){function d(a,c,d){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;
683
+ this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(a,c,d)}d.compose=function(a){A.compose(a,d)};d.swapXY=function(a,c){c&&a.forEach(function(a){for(var c=a.length,d,f=0;f<c;f+=2)d=a[f+1],"number"===typeof d&&(a[f+1]=a[f+2],a[f+2]=d)});return a};d.prototype.addEvents=function(){var a=this.options.inverted?
684
+ [1,0]:[0,1],c=this.scrollbarButtons,d=this.scrollbarGroup.element,f=this.track.element,m=this.mouseDownHandler.bind(this),n=this.mouseMoveHandler.bind(this),p=this.mouseUpHandler.bind(this);a=[[c[a[0]].element,"click",this.buttonToMinClick.bind(this)],[c[a[1]].element,"click",this.buttonToMaxClick.bind(this)],[f,"click",this.trackClick.bind(this)],[d,"mousedown",m],[d.ownerDocument,"mousemove",n],[d.ownerDocument,"mouseup",p]];h.hasTouch&&a.push([d,"touchstart",m],[d.ownerDocument,"touchmove",n],
685
+ [d.ownerDocument,"touchend",p]);a.forEach(function(a){H.apply(null,a)});this._events=a};d.prototype.buttonToMaxClick=function(c){var d=(this.to-this.from)*a(this.options.step,.2);this.updatePosition(this.from+d,this.to+d);f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:c})};d.prototype.buttonToMinClick=function(c){var d=y(this.to-this.from)*a(this.options.step,.2);this.updatePosition(y(this.from-d),y(this.to-d));f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",
686
+ DOMEvent:c})};d.prototype.cursorToScrollbarPosition=function(a){var c=this.options;c=c.minWidth>this.calculatedWidth?c.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-c),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-c)}};d.prototype.destroy=function(){var a=this,c=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(c){a[c]&&a[c].destroy&&(a[c]=a[c].destroy())});c&&a===c.scrollbar&&(c.scrollbar=null,p(c.scrollbarButtons))};
687
+ d.prototype.drawScrollbarButton=function(a){var c=this.renderer,f=this.scrollbarButtons,h=this.options,m=this.size,n=c.g().add(this.group);f.push(n);n=c.rect().addClass("highcharts-scrollbar-button").add(n);this.chart.styledMode||n.attr({stroke:h.buttonBorderColor,"stroke-width":h.buttonBorderWidth,fill:h.buttonBackgroundColor});n.attr(n.crisp({x:-.5,y:-.5,width:m+1,height:m+1,r:h.buttonBorderRadius},n.strokeWidth()));n=c.path(d.swapXY([["M",m/2+(a?-1:1),m/2-3],["L",m/2+(a?-1:1),m/2+3],["L",m/2+(a?
688
+ 2:-2),m/2]],h.vertical)).addClass("highcharts-scrollbar-arrow").add(f[a]);this.chart.styledMode||n.attr({fill:h.buttonArrowColor})};d.prototype.init=function(d,f,h){this.scrollbarButtons=[];this.renderer=d;this.userOptions=f;this.options=c(F,E.scrollbar,f);this.chart=h;this.size=a(this.options.size,this.options.height);f.enabled&&(this.render(),this.addEvents())};d.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=
689
+ a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};d.prototype.mouseMoveHandler=function(a){var c=this.chart.pointer.normalize(a),d=this.options.vertical?"chartY":"chartX",h=this.initPositions||[];!this.grabbedCenter||a.touches&&0===a.touches[0][d]||(c=this.cursorToScrollbarPosition(c)[d],d=this[d],d=c-d,this.hasDragged=!0,this.updatePosition(h[0]+d,h[1]+d),this.hasDragged&&f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};d.prototype.mouseUpHandler=
690
+ function(a){this.hasDragged&&f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};d.prototype.position=function(a,c,d,f){var h=this.options.vertical,m=this.rendered?"animate":"attr",n=0;this.x=a;this.y=c+this.trackBorderWidth;this.width=d;this.xOffset=this.height=f;this.yOffset=n;h?(this.width=this.yOffset=d=n=this.size,this.xOffset=c=0,this.barWidth=f-2*d,this.x=a+=this.options.margin):(this.height=
691
+ this.xOffset=f=c=this.size,this.barWidth=d-2*f,this.y+=this.options.margin);this.group[m]({translateX:a,translateY:this.y});this.track[m]({width:d,height:f});this.scrollbarButtons[1][m]({translateX:h?0:d-c,translateY:h?f-n:0})};d.prototype.removeEvents=function(){this._events.forEach(function(a){n.apply(null,a)});this._events.length=0};d.prototype.render=function(){var a=this.renderer,c=this.options,f=this.size,h=this.chart.styledMode,m=a.g("scrollbar").attr({zIndex:c.zIndex,translateY:-99999}).add();
692
+ this.group=m;this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:c.trackBorderRadius||0,height:f,width:f}).add(m);h||this.track.attr({fill:c.trackBackgroundColor,stroke:c.trackBorderColor,"stroke-width":c.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(m);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:f,width:f,r:c.barBorderRadius||0}).add(this.scrollbarGroup);
693
+ this.scrollbarRifles=a.path(d.swapXY([["M",-3,f/4],["L",-3,2*f/3],["M",0,f/4],["L",0,2*f/3],["M",3,f/4],["L",3,2*f/3]],c.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);h||(this.scrollbar.attr({fill:c.barBackgroundColor,stroke:c.barBorderColor,"stroke-width":c.barBorderWidth}),this.scrollbarRifles.attr({stroke:c.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%
694
+ 2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};d.prototype.setRange=function(a,c){var d=this.options,f=d.vertical,h=d.minWidth,m=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(q(m)){var p=m*Math.min(c,1);a=Math.max(a,0);var k=Math.ceil(m*a);this.calculatedWidth=p=y(p-k);p<h&&(k=(m-h+p)*a,p=h);h=Math.floor(k+this.xOffset+this.yOffset);m=p/2-.5;this.from=a;this.to=c;f?(this.scrollbarGroup[n]({translateY:h}),this.scrollbar[n]({height:p}),
695
+ this.scrollbarRifles[n]({translateY:m}),this.scrollbarTop=h,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:h}),this.scrollbar[n]({width:p}),this.scrollbarRifles[n]({translateX:m}),this.scrollbarLeft=h,this.scrollbarTop=0);12>=p?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===d.showFull&&(0>=a&&1<=c?this.group.hide():this.group.show());this.rendered=!0}};d.prototype.shouldUpdateExtremes=function(c){return a(this.options.liveRedraw,h.svg&&!h.isTouchDevice&&!this.chart.isBoosting)||
696
+ "mouseup"===c||"touchend"===c||!q(c)};d.prototype.trackClick=function(a){var c=this.chart.pointer.normalize(a),d=this.to-this.from,h=this.y+this.scrollbarTop,m=this.x+this.scrollbarLeft;this.options.vertical&&c.chartY>h||!this.options.vertical&&c.chartX>m?this.updatePosition(this.from+d,this.to+d):this.updatePosition(this.from-d,this.to-d);f(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};d.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,c(!0,
697
+ this.options,a),this.chart)};d.prototype.updatePosition=function(a,c){1<c&&(a=y(1-y(c-a)),c=1);0>a&&(c=y(c-a),a=0);this.from=a;this.to=c};d.defaultOptions=F;return d}();E.scrollbar=c(!0,d.defaultOptions,E.scrollbar);return d});N(h,"Core/Axis/NavigatorAxis.js",[h["Core/Globals.js"],h["Core/Utilities.js"]],function(d,h){var A=d.isTouchDevice,E=h.addEvent,t=h.correctFloat,G=h.defined,H=h.isNumber,y=h.pick,q=function(){function d(d){this.axis=d}d.prototype.destroy=function(){this.axis=void 0};d.prototype.toFixedRange=
698
+ function(d,c,a,h){var f=this.axis,n=f.chart;n=n&&n.fixedRange;var p=(f.pointRange||0)/2;d=y(a,f.translate(d,!0,!f.horiz));c=y(h,f.translate(c,!0,!f.horiz));f=n&&(c-d)/n;G(a)||(d=t(d+p));G(h)||(c=t(c-p));.7<f&&1.3>f&&(h?d=c-n:c=d+n);H(d)&&H(c)||(d=c=void 0);return{min:d,max:c}};return d}();return function(){function d(){}d.compose=function(d){d.keepProps.push("navigatorAxis");E(d,"init",function(){this.navigatorAxis||(this.navigatorAxis=new q(this))});E(d,"zoom",function(c){var a=this.chart.options,
699
+ d=a.navigator,f=this.navigatorAxis,h=a.chart.pinchType,p=a.rangeSelector;a=a.chart.zoomType;this.isXAxis&&(d&&d.enabled||p&&p.enabled)&&("y"===a?c.zoomed=!1:(!A&&"xy"===a||A&&"xy"===h)&&this.options.range&&(d=f.previousZoom,G(c.newMin)?f.previousZoom=[this.min,this.max]:d&&(c.newMin=d[0],c.newMax=d[1],f.previousZoom=void 0)));"undefined"!==typeof c.zoomed&&c.preventDefault()})};d.AdditionsClass=q;return d}()});N(h,"Core/Navigator.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Color/Color.js"],
700
+ h["Core/Globals.js"],h["Core/Axis/NavigatorAxis.js"],h["Core/DefaultOptions.js"],h["Core/Renderer/RendererRegistry.js"],h["Core/Scrollbar.js"],h["Core/Series/Series.js"],h["Core/Series/SeriesRegistry.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G,H,y,q,p,f){A=A.parse;var c=F.hasTouch,a=F.isTouchDevice,n=G.defaultOptions,m=f.addEvent,E=f.clamp,C=f.correctFloat,I=f.defined,L=f.destroyObjectProperties,K=f.erase,v=f.extend,z=f.find,u=f.isArray,k=f.isNumber,w=f.merge,l=f.pick,e=f.removeEvent,g=f.splat,
701
+ b=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];b=[].filter.call(b,k);if(b.length)return Math[a].apply(0,b)};G="undefined"===typeof p.seriesTypes.areaspline?"line":"areaspline";v(n,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:A("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:G,fillOpacity:.05,
702
702
  lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},
703
- threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});I.getRendererType().prototype.symbols["navigator-handle"]=function(a,b,c,
704
- d,e){a=(e&&e.width||0)/2;b=Math.round(a/3)+.5;e=e&&e.height||0;return[["M",-a-1,.5],["L",a,.5],["L",a,e+.5],["L",-a-1,e+.5],["L",-a-1,.5],["M",-b,4],["L",-b,e-3],["M",b-1,4],["L",b-1,e-3]]};var r=function(){function f(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=
703
+ threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});H.getRendererType().prototype.symbols["navigator-handle"]=function(a,b,c,
704
+ e,d){a=(d&&d.width||0)/2;b=Math.round(a/3)+.5;d=d&&d.height||0;return[["M",-a-1,.5],["L",a,.5],["L",a,d+.5],["L",-a-1,d+.5],["L",-a-1,.5],["M",-b,4],["L",-b,d-3],["M",b-1,4],["L",b-1,d-3]]};var B=function(){function f(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=
705
705
  this.handles=this.chart=this.baseSeries=void 0;this.init(a)}f.prototype.drawHandle=function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})};f.prototype.drawOutline=function(a,b,c,d){var e=this.navigatorOptions.maskInside,f=this.outline.strokeWidth(),g=f/2,h=f%2/2;f=this.outlineHeight;
706
- var m=this.scrollbarHeight||0,k=this.size,l=this.left-m,n=this.top;c?(l-=g,c=n+b+h,b=n+a+h,h=[["M",l+f,n-m-h],["L",l+f,c],["L",l,c],["L",l,b],["L",l+f,b],["L",l+f,n+k+m]],e&&h.push(["M",l+f,c-g],["L",l+f,b+g])):(a+=l+m-h,b+=l+m-h,n+=g,h=[["M",l,n],["L",a,n],["L",a,n+f],["L",b,n+f],["L",b,n],["L",l+k+2*m,n]],e&&h.push(["M",a-g,n],["L",b+g,n]));this.outline[d]({d:h})};f.prototype.drawMasks=function(a,b,c,d){var e=this.left,f=this.top,g=this.height;if(c){var h=[e,e,e];var m=[f,f+a,f+b];var k=[g,g,g];
707
- var l=[a,b-a,this.size-b]}else h=[e,e+a,e+b],m=[f,f,f],k=[a,b-a,this.size-b],l=[g,g,g];this.shades.forEach(function(a,b){a[d]({x:h[b],y:m[b],width:k[b],height:l[b]})})};f.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.renderer,f,g={cursor:d.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=f=e.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,h){a.shades[h]=e.rect().addClass("highcharts-navigator-mask"+(1===h?
708
- "-inside":"-outside")).add(f);d.styledMode||a.shades[h].attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}).css(1===h&&g)});a.outline=e.path().addClass("highcharts-navigator-outline").add(f);d.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=d.inverted;a.handles[c]=e.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+
709
- ["left","right"][c]).add(f);if(!d.styledMode){var h=b.handles;a.handles[c].attr({fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.lineWidth}).css(g)}})};f.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();t(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};f.prototype.render=function(a,b,d,e){var f=this.chart,h=this.scrollbarHeight,m,k=this.xAxis,l=k.pointRange||0;var n=k.navigatorAxis.fake?
710
- f.xAxis[0]:k;var r=this.navigatorEnabled,p,w=this.rendered;var q=f.inverted;var t=f.xAxis[0].minRange,u=f.xAxis[0].options.maxRange;if(!this.hasDragged||J(d)){a=B(a-l/2);b=B(b+l/2);if(!c(a)||!c(b))if(w)d=0,e=g(k.width,n.width);else return;this.left=g(k.left,f.plotLeft+h+(q?f.plotWidth:0));this.size=p=m=g(k.len,(q?f.plotHeight:f.plotWidth)-2*h);f=q?h:m+2*h;d=g(d,k.toPixels(a,!0));e=g(e,k.toPixels(b,!0));c(d)&&Infinity!==Math.abs(d)||(d=0,e=f);a=k.toValue(d,!0);b=k.toValue(e,!0);var x=Math.abs(B(b-
711
- a));x<t?this.grabbedLeft?d=k.toPixels(b-t-l,!0):this.grabbedRight&&(e=k.toPixels(a+t+l,!0)):J(u)&&B(x-l)>u&&(this.grabbedLeft?d=k.toPixels(b-u-l,!0):this.grabbedRight&&(e=k.toPixels(a+u+l,!0)));this.zoomedMax=D(Math.max(d,e),0,p);this.zoomedMin=D(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,e),0,p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);r&&(this.navigatorGroup.attr({visibility:"visible"}),w=w&&!this.hasDragged?"animate":"attr",
712
- this.drawMasks(d,p,q,w),this.drawOutline(d,p,q,w),this.navigatorOptions.handles.enabled&&(this.drawHandle(d,0,q,w),this.drawHandle(p,1,q,w)));this.scrollbar&&(q?(q=this.top-h,n=this.left-h+(r||!n.opposite?0:(n.titleOffset||0)+n.axisTitleMargin),h=m+2*h):(q=this.top+(r?this.height:-h),n=this.left-h),this.scrollbar.position(n,q,f,h),this.scrollbar.setRange(this.zoomedMin/(m||1),this.zoomedMax/(m||1)));this.rendered=!0}};f.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,e=[],f,
713
- g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents("mousedown");e.push(k(b.renderTo,"mousemove",f),k(c.ownerDocument,"mouseup",g));d&&(e.push(k(b.renderTo,"touchmove",f),k(c.ownerDocument,"touchend",g)),e.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(k(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};f.prototype.getPartsEvents=function(a){var b=this,
714
- c=[];["shades","handles"].forEach(function(d){b[d].forEach(function(e,f){c.push(k(e.element,a,function(a){b[d+"Mousedown"](a,f)}))})});return c};f.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,m=a.chartX;c.inverted&&(m=a.chartY,f=this.top);if(1===b)this.grabbedCenter=m,this.fixedWidth=h,this.dragOffset=m-e;else{a=m-f-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=
715
- h;var k=this.getUnionExtremes().dataMin}else var l=this.getUnionExtremes().dataMax;a!==e&&(this.fixedWidth=h,b=d.navigatorAxis.toFixedRange(a,a+h,k,l),J(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};f.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=
716
- !0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null};f.prototype.onMouseMove=function(b){var c=this,d=c.chart,e=c.left,f=c.navigatorSize,h=c.range,m=c.dragOffset,k=d.inverted;b.touches&&0===b.touches[0].pageX||(b=d.pointer.normalize(b),d=b.chartX,k&&(e=c.top,d=b.chartY),c.grabbedLeft?(c.hasDragged=!0,c.render(0,0,d-e,c.otherHandlePos)):c.grabbedRight?(c.hasDragged=!0,c.render(0,0,c.otherHandlePos,d-e)):c.grabbedCenter&&(c.hasDragged=!0,d<m?d=m:d>f+m-h&&(d=f+m-
717
- h),c.render(0,0,d-m,d-m+h)),c.hasDragged&&c.scrollbar&&g(c.scrollbar.options.liveRedraw,E.svg&&!a&&!this.chart.isBoosting)&&(b.DOMType=b.type,setTimeout(function(){c.onMouseUp(b)},0)))};f.prototype.onMouseUp=function(a){var b=this.chart,d=this.xAxis,e=this.scrollbar,f=a.DOMEvent||a,g=b.inverted,h=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===a.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var m=this.fixedExtreme;
718
- else if(this.zoomedMax===this.otherHandlePos)var k=this.fixedExtreme;this.zoomedMax===this.size&&(k=this.reversedExtremes?e.dataMin:e.dataMax);0===this.zoomedMin&&(m=this.reversedExtremes?e.dataMax:e.dataMin);d=d.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,m,k);J(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=
719
- this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&c(this.zoomedMin)&&c(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,a,g,h),this.outline&&this.drawOutline(b,a,g,h),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,g,h),this.drawHandle(a,1,g,h)))};f.prototype.removeEvents=function(){this.eventsToUnbind&&
720
- (this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};f.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){u(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&u(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};f.prototype.init=function(a){var c=a.options,d=c.navigator,f=d.enabled,h=c.scrollbar,m=h.enabled;c=f?d.height:
721
- 0;var l=m?h.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=c;this.scrollbarHeight=l;this.scrollbarEnabled=m;this.navigatorEnabled=f;this.navigatorOptions=d;this.scrollbarOptions=h;this.outlineHeight=c+l;this.opposite=g(d.opposite,!(f||!a.inverted));var n=this;f=n.baseSeries;h=a.xAxis.length;m=a.yAxis.length;var r=f&&f[0]&&f[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;n.navigatorEnabled?(n.xAxis=new e(a,t({breaks:r.options.breaks,ordinal:r.options.ordinal},
722
- d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:h,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[l,0,-l,0],width:c}:{offsets:[0,-l,0,l],height:c})),n.yAxis=new e(a,t(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:m,isInternal:!0,reversed:g(d.yAxis&&d.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:c}:{height:c})),f||d.series.data?
723
- n.updateNavigatorSeries(!1):0===a.series.length&&(n.unbindRedraw=k(a,"beforeRedraw",function(){0<a.series.length&&!n.series&&(n.setBaseSeries(),n.unbindRedraw())})),n.reversedExtremes=a.inverted&&!n.xAxis.reversed||!a.inverted&&n.xAxis.reversed,n.renderElements(),n.addMouseEvents()):(n.xAxis={chart:a,navigatorAxis:{fake:!0},translate:function(c,d){var e=a.xAxis[0],f=e.getExtremes(),g=e.len-2*l,h=b("min",e.options.min,f.dataMin);e=b("max",e.options.max,f.dataMax)-h;return d?c*e/g+h:g*(c-h)/e},toPixels:function(a){return this.translate(a)},
724
- toValue:function(a){return this.translate(a,!0)}},n.xAxis.navigatorAxis.axis=n.xAxis,n.xAxis.navigatorAxis.toFixedRange=v.AdditionsClass.prototype.toFixedRange.bind(n.xAxis.navigatorAxis));a.options.scrollbar.enabled&&(a.scrollbar=n.scrollbar=new z(a.renderer,t(a.options.scrollbar,{margin:n.navigatorEnabled?0:10,vertical:a.inverted}),a),k(n.scrollbar,"changed",function(a){var b=n.size,c=b*this.to;b*=this.from;n.hasDragged=n.scrollbar.hasDragged;n.render(0,0,b,c);this.shouldUpdateExtremes(a.DOMType)&&
725
- setTimeout(function(){n.onMouseUp(a)})}));n.addBaseSeriesEvents();n.addChartEvents()};f.prototype.getUnionExtremes=function(a){var c=this.chart.xAxis[0],d=this.xAxis,e=d.options,f=c.options,h;a&&null===c.dataMin||(h={dataMin:g(e&&e.min,b("min",f.min,c.dataMin,d.dataMin,d.min)),dataMax:g(e&&e.max,b("max",f.max,c.dataMax,d.dataMax,d.max))});return h};f.prototype.setBaseSeries=function(a,b){var c=this.chart,d=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?C(c.series,
726
- function(a){return!a.options.isInternal}).index:0);(c.series||[]).forEach(function(b,c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||d.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};f.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,e=c.baseSeries,f,h,m=c.navigatorOptions.series,k,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",
727
- yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},r=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>e.indexOf(b)?(b&&(u(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});e&&e.length&&e.forEach(function(a){var w=a.navigatorSeries,q=y({color:a.color,visible:a.visible},x(m)?p.navigator.series:m);w&&!1===c.navigatorOptions.adaptToUpdatedData||(l.name="Navigator "+e.length,f=a.options||
728
- {},k=f.navigatorOptions||{},q.dataLabels=n(q.dataLabels),h=t(f,l,q,k),h.pointRange=g(q.pointRange,k.pointRange,p.plotOptions[h.type||"line"].pointRange),q=k.data||q.data,c.hasNavigatorData=c.hasNavigatorData||!!q,h.data=q||f.data&&f.data.slice(0),w&&w.options?w.update(h,b):(a.navigatorSeries=d.initSeries(h),a.navigatorSeries.baseSeries=a,r.push(a.navigatorSeries)))});if(m.data&&(!e||!e.length)||x(m))c.hasNavigatorData=!1,m=n(m),m.forEach(function(a,b){l.name="Navigator "+(r.length+1);h=t(p.navigator.series,
729
- {color:d.series[b]&&!d.series[b].options.isInternal&&d.series[b].color||d.options.colors[b]||d.options.colors[0]},l,a);h.data=a.data;h.data&&(c.hasNavigatorData=!0,r.push(d.initSeries(h)))});a&&this.addBaseSeriesEvents()};f.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(k(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(k(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,
730
- !1)}));b.eventsToUnbind.push(k(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(k(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(k(b,"remove",function(){this.navigatorSeries&&(L(a.series,this.navigatorSeries),J(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};f.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,
731
- b){return Math.min(a,b.xData?b.xData[0]:a)},a)};f.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};f.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),d=b.dataMin,e=b.dataMax;b=b.max-b.min;var f=a.stickToMin,h=a.stickToMax,k=g(this.options.overscroll,0),l=a.series&&a.series[0],n=!!this.setExtremes;
732
- if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(f){var r=d;var p=r+b}h&&(p=e+k,f||(r=Math.max(d,p-b,a.getBaseSeriesMin(l&&l.xData?l.xData[0]:-Number.MAX_VALUE))));n&&(f||h)&&c(r)&&(this.min=this.userMin=r,this.max=this.userMax=p)}a.stickToMin=a.stickToMax=null};f.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,
733
- a);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};f.prototype.shouldStickToMin=function(a,b){b=b.getBaseSeriesMin(a.xData[0]);var d=a.xAxis;a=d.max;var e=d.min;d=d.options.range;return c(a)&&c(e)?d&&0<a-b?a-b<d:e<=b:!1};f.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(k(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);
734
- b&&a.render(b.min,b.max)}),k(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};f.prototype.destroy=function(){this.removeEvents();this.xAxis&&(L(this.chart.xAxis,this.xAxis),L(this.chart.axes,this.xAxis));this.yAxis&&(L(this.chart.yAxis,this.yAxis),L(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&
735
- a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){K(a)},this)};return f}();E.Navigator||(E.Navigator=r,v.compose(e),k(h,"beforeShowResetZoom",function(){var b=this.options,c=b.navigator,d=b.rangeSelector;if((c&&c.enabled||d&&d.enabled)&&(!a&&"x"===b.chart.zoomType||a&&"x"===b.chart.pinchType))return!1}),
736
- k(h,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new r(this)}),k(h,"afterSetChartSize",function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var e=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=g(d.left,this.plotLeft+f),b.top=b.navigatorOptions.top||this.chartHeight-b.height-f-this.spacing[2]-(this.rangeSelector&&
737
- this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+g(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&e&&(this.inverted?d.options.left=e.options.left=b.left:d.options.top=e.options.top=b.top,d.setAxisSize(),e.setAxisSize())}}),k(h,"update",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(t(!0,this.options.navigator,
738
- b),t(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),k(h,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new r(this),g(a.redraw,!0)&&this.redraw(a.animation))}),k(h,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),k(q,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,
739
- !1)}),h.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));E.Navigator=r;return E.Navigator});M(h,"Extensions/RangeSelector.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(e,h,A,E,v,H){function D(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+
740
- b)}),c="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var z=E.defaultOptions,q=H.addEvent,l=H.createElement,f=H.css,d=H.defined,a=H.destroyObjectProperties,p=H.discardElement,k=H.extend,F=H.find,B=H.fireEvent,J=H.isNumber,K=H.merge,L=H.objectEach,y=H.pad,C=H.pick,x=H.pInt,c=H.splat;k(z,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,
741
- height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}});k(z.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var t=
742
- function(){function g(a){this.buttons=void 0;this.buttonOptions=g.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}g.prototype.clickButton=function(a,f){var b=this.chart,g=this.buttonOptions[a],h=b.xAxis[0],k=b.scroller&&b.scroller.getUnionExtremes()||h||{},l=k.dataMin,n=k.dataMax,r=h&&Math.round(Math.min(h.max,C(n,h.max))),p=g.type;k=g._range;var t,u=g.dataGrouping;if(null!==l&&null!==n){b.fixedRange=k;this.setSelected(a);u&&(this.forcedDataGrouping=
743
- !0,e.prototype.setDataGrouping.call(h||{chart:this.chart},u,!1),this.frozenStates=g.preserveDataGrouping);if("month"===p||"year"===p)if(h){p={range:g,max:r,chart:b,dataMin:l,dataMax:n};var x=h.minFromRange.call(p);J(p.newMax)&&(r=p.newMax)}else k=g;else if(k)x=Math.max(r-k,l),r=Math.min(x+k,n);else if("ytd"===p)if(h)"undefined"===typeof n&&(l=Number.MAX_VALUE,n=Number.MIN_VALUE,b.series.forEach(function(a){a=a.xData;l=Math.min(a[0],l);n=Math.max(a[a.length-1],n)}),f=!1),r=this.getYTDExtremes(n,l,
744
- b.time.useUTC),x=t=r.min,r=r.max;else{this.deferredYTDClick=a;return}else"all"===p&&h&&(b.navigator&&b.navigator.baseSeries[0]&&(b.navigator.baseSeries[0].xAxis.options.range=void 0),x=l,r=n);d(x)&&(x+=g._offsetMin);d(r)&&(r+=g._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=a+1);if(h)h.setExtremes(x,r,C(f,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:g});else{var v=c(b.options.xAxis)[0];var y=v.range;v.range=k;var z=v.min;v.min=t;q(b,"load",function(){v.range=y;v.min=z})}B(this,
745
- "afterBtnClick")}};g.prototype.setSelected=function(a){this.selected=this.options.selected=a};g.prototype.init=function(a){var b=this,c=a.options.rangeSelector,d=c.buttons||b.defaultButtons.slice(),e=c.selected,f=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&B(a,"blur");c&&c.blur&&B(c,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=d;this.eventsToUnbind=[];this.eventsToUnbind.push(q(a.container,"mousedown",f));this.eventsToUnbind.push(q(a,"resize",f));d.forEach(b.computeButtonRange);
746
- "undefined"!==typeof e&&d[e]&&this.clickButton(e,!1);this.eventsToUnbind.push(q(a,"load",function(){a.xAxis&&a.xAxis[0]&&q(a.xAxis[0],"setExtremes",function(c){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};g.prototype.updateButtonStates=function(){var a=this,c=this.chart,d=this.dropdown,e=c.xAxis[0],f=Math.round(e.max-e.min),g=!e.hasVisibleSeries,h=c.scroller&&c.scroller.getUnionExtremes()||
747
- e,k=h.dataMin,l=h.dataMax;c=a.getYTDExtremes(l,k,c.time.useUTC);var n=c.min,p=c.max,q=a.selected,t=J(q),u=a.options.allButtonsEnabled,x=a.buttons;a.buttonOptions.forEach(function(b,c){var h=b._range,m=b.type,r=b.count||1,w=x[c],v=0,y=b._offsetMax-b._offsetMin;b=c===q;var z=h>l-k,A=h<e.minRange,G=!1,B=!1;h=h===f;("month"===m||"year"===m)&&f+36E5>=864E5*{month:28,year:365}[m]*r-y&&f-36E5<=864E5*{month:31,year:366}[m]*r+y?h=!0:"ytd"===m?(h=p-n+y===f,G=!b):"all"===m&&(h=e.max-e.min>=l-k,B=!b&&t&&h);m=
748
- !u&&(z||A||B||g);r=b&&h||h&&!t&&!G||b&&a.frozenStates;m?v=3:r&&(t=!0,v=2);w.state!==v&&(w.setState(v),d&&(d.options[c+1].disabled=m,2===v&&(d.selectedIndex=c+1)),0===v&&q===c&&a.setSelected())})};g.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=C(a.offsetMin,0);a._offsetMax=C(a.offsetMax,0);a._range+=
749
- a._offsetMax-a._offsetMin};g.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};g.prototype.setInputValue=function(a,c){var b=this.options,e=this.chart.time,f="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(f){var g=f.getAttribute("data-hc-time");g=d(g)?Number(g):void 0;d(c)&&(d(g)&&
750
- f.setAttribute("data-hc-time-previous",g),f.setAttribute("data-hc-time",c),g=c);f.value=e.dateFormat(this.inputTypeFormats[f.type]||b.inputEditDateFormat,g);a&&a.attr({text:e.dateFormat(b.inputDateFormat,g)})}};g.prototype.setInputExtremes=function(a,c,d){if(a="min"===a?this.minInput:this.maxInput){var b=this.inputTypeFormats[a.type],e=this.chart.time;b&&(c=e.dateFormat(b,c),a.min!==c&&(a.min=c),d=e.dateFormat(b,d),a.max!==d&&(a.max=d))}};g.prototype.showInput=function(a){var b="min"===a?this.minDateBox:
751
- this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var c="text"===a.type,d=this.inputGroup,e=d.translateX;d=d.translateY;var g=this.options.inputBoxWidth;f(a,{width:c?b.width+(g?-2:20)+"px":"auto",height:c?b.height-2+"px":"auto",border:"2px solid silver"});c&&g?f(a,{left:e+b.x+"px",top:d+"px"}):f(a,{left:Math.min(Math.round(b.x+e-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:d-(a.offsetHeight-b.height)/2+"px"})}};g.prototype.hideInput=function(a){(a=
752
- "min"===a?this.minInput:this.maxInput)&&f(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};g.prototype.defaultInputDateParser=function(a,c,d){var b=a.split("/").join("-").split(" ").join("T");-1===b.indexOf("T")&&(b+="T00:00");if(c)b+="Z";else{var e;if(e=A.isSafari)e=b,e=!(6<e.length&&(e.lastIndexOf("-")===e.length-6||e.lastIndexOf("+")===e.length-6));e&&(e=(new Date(b)).getTimezoneOffset()/60,b+=0>=e?"+"+y(-e)+":00":"-"+y(e)+":00")}b=Date.parse(b);J(b)||(a=a.split("-"),b=Date.UTC(x(a[0]),x(a[1])-
753
- 1,x(a[2])));d&&c&&J(b)&&(b+=d.getTimezoneOffset(b));return b};g.prototype.drawInput=function(a){function b(){var b=g.getInputValue(a),d=c.xAxis[0],e=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:d,f=e.dataMin;e=e.dataMax;var h=g.maxInput,k=g.minInput;b!==Number(u.getAttribute("data-hc-time-previous"))&&J(b)&&(u.setAttribute("data-hc-time-previous",b),q&&h&&J(f)?b>Number(h.getAttribute("data-hc-time"))?b=void 0:b<f&&(b=f):k&&J(e)&&(b<Number(k.getAttribute("data-hc-time"))?b=void 0:b>e&&(b=e)),"undefined"!==
754
- typeof b&&d.setExtremes(q?b:d.min,q?d.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=this.chart,d=this.div,e=this.inputGroup,g=this,h=c.renderer.style||{},n=c.renderer,p=c.options.rangeSelector,q="min"===a,t=z.lang[q?"rangeSelectorFrom":"rangeSelectorTo"]||"";t=n.label(t,0).addClass("highcharts-range-label").attr({padding:t?2:0,height:t?p.inputBoxHeight:0}).add(e);n=n.label("",0).addClass("highcharts-range-input").attr({padding:2,width:p.inputBoxWidth,height:p.inputBoxHeight,"text-align":"center"}).on("click",
755
- function(){g.showInput(a);g[a+"Input"].focus()});c.styledMode||n.attr({stroke:p.inputBoxBorderColor,"stroke-width":1});n.add(e);var u=l("input",{name:a,className:"highcharts-range-selector"},void 0,d);u.setAttribute("type",D(p.inputDateFormat||"%b %e, %Y"));c.styledMode||(t.css(K(h,p.labelStyle)),n.css(K({color:"#333333"},h,p.inputStyle)),f(u,k({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,
756
- top:"-9999em"},p.inputStyle)));u.onfocus=function(){g.showInput(a)};u.onblur=function(){u===A.doc.activeElement&&b();g.hideInput(a);g.setInputValue(a);u.blur()};var x=!1;u.onchange=function(){x||(b(),g.hideInput(a),u.blur())};u.onkeypress=function(a){13===a.keyCode&&b()};u.onkeydown=function(a){x=!0;38!==a.keyCode&&40!==a.keyCode||b()};u.onkeyup=function(){x=!1};return{dateBox:n,input:u,label:t}};g.prototype.getPosition=function(){var a=this.chart,c=a.options.rangeSelector;a="top"===c.verticalAlign?
757
- a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+c.buttonPosition.y,inputTop:a+c.inputPosition.y-10}};g.prototype.getYTDExtremes=function(a,c,d){var b=this.chart.time,e=new b.Date(a),f=b.get("FullYear",e);d=d?b.Date.UTC(f,0,1):+new b.Date(f,0,1);c=Math.max(c,d);e=e.getTime();return{max:Math.min(a||e,e),min:c}};g.prototype.render=function(a,c){var b=this.chart,e=b.renderer,f=b.container,g=b.options,h=g.rangeSelector,k=C(g.chart.style&&g.chart.style.zIndex,0)+1;g=h.inputEnabled;if(!1!==h.enabled){this.rendered||
758
- (this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=l("div",void 0,{position:"relative",height:0,zIndex:k}),this.buttonOptions.length&&this.renderButtons(),f.parentNode&&f.parentNode.insertBefore(this.div,f),g&&(this.inputGroup=e.g("input-group").add(this.group),e=this.drawInput("min"),this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input,e=this.drawInput("max"),this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input));if(g&&(this.setInputValue("min",
759
- a),this.setInputValue("max",c),a=b.scroller&&b.scroller.getUnionExtremes()||b.xAxis[0]||{},d(a.dataMin)&&d(a.dataMax)&&(b=b.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-b),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+b,a.dataMax)),this.inputGroup)){var n=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:n}),n+=b+h.inputSpacing)}})}this.alignElements();
760
- this.rendered=!0}};g.prototype.renderButtons=function(){var a=this,c=this.buttons,d=this.options,e=z.lang,f=this.chart.renderer,g=K(d.buttonTheme),h=g&&g.states,k=g.width||28;delete g.width;delete g.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var n=this.dropdown=l("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);q(n,"touchstart",function(){n.style.fontSize="16px"});[[A.isMS?"mouseover":
761
- "mouseenter"],[A.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(b){var d=b[0],e=b[1];q(n,d,function(){var b=c[a.currentButtonIndex()];b&&B(b.element,e||d)})});this.zoomText=f.label(e&&e.rangeSelectorZoom||"",0).attr({padding:d.buttonTheme.padding,height:d.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(d.labelStyle),g["stroke-width"]=C(g["stroke-width"],0));l("option",{textContent:this.zoomText.textStr,disabled:!0},
762
- void 0,n);this.buttonOptions.forEach(function(b,d){l("option",{textContent:b.title||b.text},void 0,n);c[d]=f.button(b.text,0,0,function(c){var e=b.events&&b.events.click,f;e&&(f=e.call(b,c));!1!==f&&a.clickButton(d);a.isActive=!0},g,h&&h.hover,h&&h.select,h&&h.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup);b.title&&c[d].attr("title",b.title)})};g.prototype.alignElements=function(){var a=this,c=this.buttonGroup,d=this.buttons,e=this.chart,f=this.group,g=this.inputGroup,h=this.options,
763
- k=this.zoomText,l=e.options,n=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=h.buttonPosition;var p=h.inputPosition,q=h.verticalAlign,t=function(b,c){return n&&a.titleCollision(e)&&"top"===q&&"right"===c.align&&c.y-b.getBBox().height-12<(n.y||0)+(n.height||0)+e.spacing[0]?-40:0},u=e.plotLeft;if(f&&l&&p){var x=l.x-e.spacing[3];if(c){this.positionButtons();if(!this.initialButtonGroupWidth){var v=0;k&&(v+=k.getBBox().width+5);d.forEach(function(a,b){v+=a.width;b!==
764
- d.length-1&&(v+=h.buttonSpacing)});this.initialButtonGroupWidth=v}u-=e.spacing[3];this.updateButtonStates();k=t(c,l);this.alignButtonGroup(k);f.placed=c.placed=e.hasLoaded}c=0;g&&(c=t(g,p),"left"===p.align?x=u:"right"===p.align&&(x=-Math.max(e.axisOffset[1],-c)),g.align({y:p.y,width:g.getBBox().width,align:p.align,x:p.x+x-2},!0,e.spacingBox),g.placed=e.hasLoaded);this.handleCollision(c);f.align({verticalAlign:q},!0,e.spacingBox);g=f.alignAttr.translateY;c=f.getBBox().height+20;t=0;"bottom"===q&&(t=
765
- (t=e.legend&&e.legend.options)&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?e.legend.legendHeight+C(t.margin,10):0,c=c+t-20,t=g-c-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:0)-10);if("top"===q)h.floating&&(t=0),e.titleOffset&&e.titleOffset[0]&&(t=e.titleOffset[0]),t+=e.margin[0]-e.spacing[0]||0;else if("middle"===q)if(p.y===l.y)t=g;else if(p.y||l.y)t=0>p.y||0>l.y?t-Math.min(p.y,l.y):g-c;f.translate(h.x,h.y+Math.floor(t));l=this.minInput;p=this.maxInput;g=this.dropdown;h.inputEnabled&&
766
- l&&p&&(l.style.marginTop=f.translateY+"px",p.style.marginTop=f.translateY+"px");g&&(g.style.marginTop=f.translateY+"px")}};g.prototype.alignButtonGroup=function(a,c){var b=this.chart,d=this.buttonGroup,e=this.options.buttonPosition,f=b.plotLeft-b.spacing[3],g=e.x-b.spacing[3];"right"===e.align?g+=a-f:"center"===e.align&&(g-=f/2);d&&d.align({y:e.y,width:C(c,this.initialButtonGroupWidth),align:e.align,x:g},!0,b.spacingBox)};g.prototype.positionButtons=function(){var a=this.buttons,c=this.chart,d=this.options,
767
- e=this.zoomText,f=c.hasLoaded?"animate":"attr",g=d.buttonPosition,h=c.plotLeft,k=h;e&&"hidden"!==e.visibility&&(e[f]({x:C(h+g.x,h)}),k+=g.x+e.getBBox().width+5);this.buttonOptions.forEach(function(b,c){if("hidden"!==a[c].visibility)a[c][f]({x:k}),k+=a[c].width+d.buttonSpacing;else a[c][f]({x:h})})};g.prototype.handleCollision=function(a){var b=this,c=this.chart,d=this.buttonGroup,e=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,k=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=
768
- b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(e&&d){var c=e.alignAttr.translateX+e.alignOptions.x-a+e.getBBox().x+2,f=e.alignOptions.width,h=d.alignAttr.translateX+d.getBBox().x;return h+b>c&&c+f>h&&g.y<k.y+e.getBBox().height}return!1},n=function(){e&&d&&e.attr({translateX:e.alignAttr.translateX+(c.axisOffset[1]>=-a?0:-a),translateY:e.alignAttr.translateY+d.getBBox().height+10})};if(d){if("always"===h){this.collapseButtons(a);l(f())&&n();return}"never"===h&&this.expandButtons()}e&&
769
- d?k.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),l(f())&&n()):n():"responsive"===h&&this.expandButtons():d&&"responsive"===h&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};g.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,d=this.chart,e=this.dropdown,f=this.options,g=this.zoomText,h=d.userOptions.rangeSelector&&d.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a?
770
- a+" \u25be":"\u25be",width:"auto",paddingLeft:C(f.buttonTheme.paddingLeft,h.padding,8),paddingRight:C(f.buttonTheme.paddingRight,h.padding,8)}};g&&g.hide();var l=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(k(a.text)),l=!0)});l||(e&&(e.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));c=f.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};
771
- g.prototype.expandButtons=function(){var a=this.buttons,c=this.buttonOptions,d=this.options,e=this.zoomText;this.hideDropdown();e&&e.show();c.forEach(function(b,c){c=a[c];c.show();c.attr({text:b.text,width:d.buttonTheme.width||28,paddingLeft:C(d.buttonTheme.paddingLeft,"unset"),paddingRight:C(d.buttonTheme.paddingRight,"unset")});2>c.state&&c.setState(0)});this.positionButtons()};g.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};g.prototype.showDropdown=
772
- function(){var a=this.buttonGroup,c=this.buttons,d=this.chart,e=this.dropdown;if(a&&e){var g=a.translateX;a=a.translateY;c=c[this.currentButtonIndex()].getBBox();f(e,{left:d.plotLeft+g+"px",top:a+.5+"px",width:c.width+"px",height:c.height+"px"});this.hasVisibleDropdown=!0}};g.prototype.hideDropdown=function(){var a=this.dropdown;a&&(f(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};g.prototype.getHeight=function(){var a=this.options,c=this.group,d=a.y,e=a.buttonPosition.y,
773
- f=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=c?c.getBBox(!0).height+13+d:0;c=Math.min(f,e);if(0>f&&0>e||0<f&&0<e)a+=Math.abs(c);return a};g.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)};g.prototype.update=function(a){var b=this.chart;K(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};g.prototype.destroy=function(){var b=this,c=b.minInput,d=b.maxInput;b.eventsToUnbind&&(b.eventsToUnbind.forEach(function(a){return a()}),
774
- b.eventsToUnbind=void 0);a(b.buttons);c&&(c.onfocus=c.onblur=c.onchange=null);d&&(d.onfocus=d.onblur=d.onchange=null);L(b,function(a,c){a&&"chart"!==c&&(a instanceof v?a.destroy():a instanceof window.HTMLElement&&p(a));a!==g.prototype[c]&&(b[c]=null)},this)};return g}();t.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},
775
- {type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}];t.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"};e.prototype.minFromRange=function(){var a=this.range,b=a.type,c=this.max,d=this.chart.time,e=function(a,c){var e="year"===b?"FullYear":"Month",f=new d.Date(a),g=d.get(e,f);d.set(e,f,g+c);g===d.get(e,f)&&d.set("Date",f,0);return f.getTime()-a};if(J(a)){var f=c-a;var g=a}else f=c+e(c,-a.count),this.chart&&(this.chart.fixedRange=
776
- c-f);var h=C(this.dataMin,Number.MIN_VALUE);J(f)||(f=h);f<=h&&(f=h,"undefined"===typeof g&&(g=e(f,a.count)),this.newMax=Math.min(f+g,this.dataMax));J(c)||(f=void 0);return f};if(!A.RangeSelector){var g=[],u=function(a){function b(){d&&(c=a.xAxis[0].getExtremes(),e=a.legend,h=d&&d.options.verticalAlign,J(c.min)&&d.render(c.min,c.max),e.display&&"top"===h&&h===e.options.verticalAlign&&(f=K(a.spacingBox),f.y="vertical"===e.options.layout?a.plotTop:f.y+d.getHeight(),e.group.placed=!1,e.align(f)))}var c,
777
- d=a.rangeSelector,e,f,h;d&&(F(g,function(b){return b[0]===a})||g.push([a,[q(a.xAxis[0],"afterSetExtremes",function(a){d&&d.render(a.min,a.max)}),q(a,"redraw",b)]]),b())};q(h,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new t(this))});q(h,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(J(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),
778
- this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))});q(h,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var c=this.extraBottomMargin,e=this.extraTopMargin;b&&b.enabled&&!d(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new t(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(u(this),b=b&&b.verticalAlign||a.options&&
779
- a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==c||this.extraTopMargin!==e)&&(this.isDirtyBox=!0)});q(h,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});q(h,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=
780
- a),this.extraBottomMargin&&(this.marginBottom+=a))});h.prototype.callbacks.push(u);q(h,"destroy",function(){for(var a=0;a<g.length;a++){var b=g[a];if(b[0]===this){b[1].forEach(function(a){return a()});g.splice(a,1);break}}});A.RangeSelector=t}return t});M(h,"Core/Chart/StockChart.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/FormatUtilities.js"],h["Core/DefaultOptions.js"],h["Core/Series/Series.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Utilities.js"]],
781
- function(e,h,A,E,v,H,I,z){function q(a,c){return"xAxis"===a?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:"yAxis"===a?{labels:{y:-2},opposite:y(c.opposite,!0),showLastLabel:!(!c.categories&&"category"!==c.type),title:{text:null}}:{}}function l(d,c){if("xAxis"===d){d=a();var e={type:"datetime",categories:void 0};y(c.navigator&&c.navigator.enabled,d.navigator.enabled,!0)&&(e.startOnTick=!1,e.endOnTick=!1);return e}return{}}var f=this&&
782
- this.__extends||function(){var a=function(c,d){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,d)};return function(c,d){function e(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),d=E.format,a=v.getOptions;e=z.addEvent;var p=z.clamp,k=z.defined,D=z.extend,B=z.find,J=z.isNumber,K=z.isString,L=z.merge,y=z.pick,C=z.splat;z=function(d){function c(){return null!==
783
- d&&d.apply(this,arguments)||this}f(c,d);c.prototype.init=function(c,e){var f=a(),g=c.xAxis,b=c.yAxis,h=y(c.navigator&&c.navigator.enabled,f.navigator.enabled,!0);c.xAxis=c.yAxis=void 0;h=L({chart:{panning:{enabled:!0,type:"x"},pinchType:"x"},navigator:{enabled:h},scrollbar:{enabled:y(f.scrollbar&&f.scrollbar.enabled,!0)},rangeSelector:{enabled:y(f.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:y(f.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},c,{isStock:!0});c.xAxis=g;c.yAxis=
784
- b;h.xAxis=C(c.xAxis||{}).map(function(a,b){return L(q("xAxis",a),f.xAxis,f.xAxis&&f.xAxis[b],a,l("xAxis",c))});h.yAxis=C(c.yAxis||{}).map(function(a,b){return L(q("yAxis",a),f.yAxis,f.yAxis&&f.yAxis[b],a)});d.prototype.init.call(this,h,e)};c.prototype.createAxis=function(a,c){c.axis=L(q(a,c.axis),c.axis,l(a,this.userOptions));return d.prototype.createAxis.call(this,a,c)};return c}(A);(function(a){a.stockChart=function(c,d,e){return new a(c,d,e)}})(z||(z={}));e(H,"setOptions",function(a){var c;this.chart.options.isStock&&
785
- (this.is("column")||this.is("columnrange")?c={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(c={marker:{enabled:!1,radius:2}}),c&&(a.plotOptions[this.type]=L(a.plotOptions[this.type],c)))});e(h,"autoLabelAlign",function(a){var c=this.chart,d=this.options;c=c._labelPanes=c._labelPanes||{};var e=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&(d=d.top+","+d.height,!c[d]&&e.enabled&&(15===e.x&&(e.x=0),"undefined"===typeof e.align&&(e.align="right"),c[d]=this,a.align=
786
- "right",a.preventDefault()))});e(h,"destroy",function(){var a=this.chart,c=this.options&&this.options.top+","+this.options.height;c&&a._labelPanes&&a._labelPanes[c]===this&&delete a._labelPanes[c]});e(h,"getPlotLinePath",function(a){function c(a){var b="xAxis"===a?"yAxis":"xAxis";a=d.options[b];return J(a)?[f[b][a]]:K(a)?[f.get(a)]:e.map(function(a){return a[b]})}var d=this,e=this.isLinked&&!this.series?this.linkedParent.series:this.series,f=d.chart,h=f.renderer,b=d.left,l=d.top,q,m,w,v,x=[],z=[],
787
- A=a.translatedValue,C=a.value,D=a.force;if(f.options.isStock&&!1!==a.acrossPanes&&"xAxis"===d.coll||"yAxis"===d.coll){a.preventDefault();z=c(d.coll);var E=d.isXAxis?f.yAxis:f.xAxis;E.forEach(function(a){if(k(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis";b=k(a.options[b])?f[b][a.options[b]]:f[b][0];d===b&&z.push(a)}});var F=z.length?[]:[d.isXAxis?f.yAxis[0]:f.xAxis[0]];z.forEach(function(a){-1!==F.indexOf(a)||B(F,function(b){return b.pos===a.pos&&b.len===a.len})||
788
- F.push(a)});var H=y(A,d.translate(C,null,null,a.old));J(H)&&(d.horiz?F.forEach(function(a){var c;m=a.pos;v=m+a.len;q=w=Math.round(H+d.transB);"pass"!==D&&(q<b||q>b+d.width)&&(D?q=w=p(q,b,b+d.width):c=!0);c||x.push(["M",q,m],["L",w,v])}):F.forEach(function(a){var b;q=a.pos;w=q+a.len;m=v=Math.round(l+d.height-H);"pass"!==D&&(m<l||m>l+d.height)&&(D?m=v=p(m,l,l+d.height):b=!0);b||x.push(["M",q,m],["L",w,v])}));a.path=0<x.length?h.crispPolyLine(x,a.lineWidth||1):null}});I.prototype.crispPolyLine=function(a,
789
- c){for(var d=0;d<a.length;d+=2){var e=a[d],f=a[d+1];e[1]===f[1]&&(e[1]=f[1]=Math.round(e[1])-c%2/2);e[2]===f[2]&&(e[2]=f[2]=Math.round(e[2])+c%2/2)}return a};e(h,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});e(h,"afterDrawCrosshair",function(a){var c,e;if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&J(this.min)&&J(this.max)){var f=this.chart,h=this.logarithmic,k=this.crosshair.label,b=this.horiz,l=this.opposite,p=this.left,
790
- m=this.top,q=this.crossLabel,v=k.format,x="",z="inside"===this.options.tickPosition,A=!1!==this.crosshair.snap,B=0,C=a.e||this.cross&&this.cross.e;a=a.point;var E=this.min,F=this.max;h&&(E=h.lin2log(E),F=h.lin2log(F));h=b?"center":l?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";q||(q=this.crossLabel=f.renderer.label("",0,void 0,k.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(a?a.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:k.align||
791
- h,padding:y(k.padding,8),r:y(k.borderRadius,3),zIndex:2}).add(this.labelGroup),f.styledMode||q.attr({fill:k.backgroundColor||a&&a.series&&a.series.color||"#666666",stroke:k.borderColor||"","stroke-width":k.borderWidth||0}).css(D({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},k.style||{})));b?(h=A?(a.plotX||0)+p:C.chartX,m+=l?0:this.height):(h=l?this.width+p:0,m=A?(a.plotY||0)+m:C.chartY);v||k.formatter||(this.dateTime&&(x="%b %d, %Y"),v="{value"+(x?":"+x:"")+"}");x=A?this.isXAxis?
792
- a.x:a.y:this.toValue(b?C.chartX:C.chartY);A=a?a.series.isPointInside(a):J(x)&&x>E&&x<F;C="";v?C=d(v,{value:x},f):k.formatter&&J(x)&&(C=k.formatter.call(this,x));q.attr({text:C,x:h,y:m,visibility:A?"visible":"hidden"});k=q.getBBox();if(J(q.y))if(b){if(z&&!l||!z&&l)m=q.y-k.height}else m=q.y-k.height/2;b?(c=p-k.x,e=p+this.width-k.x):(c="left"===this.labelAlign?p:0,e="right"===this.labelAlign?p+this.width:f.chartWidth);q.translateX<c&&(B=c-q.translateX);q.translateX+k.width>=e&&(B=-(q.translateX+k.width-
793
- e));q.attr({x:h+B,y:m,anchorX:b?h:this.opposite?0:f.chartWidth,anchorY:b?this.opposite?f.chartHeight:0:m+k.height/2})}});H.prototype.forceCropping=function(){var a=this.chart,c=this.options.dataGrouping;return!1!==this.allowDG&&c&&y(c.enabled,a.options.isStock)};e(A,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(L(!0,this.options.scrollbar,a.scrollbar),this.navigator.update({},!1),delete a.scrollbar)});return z});M(h,"masters/modules/stock.src.js",[h["Core/Globals.js"],h["Core/Axis/OrdinalAxis.js"],
794
- h["Series/DataModifyComposition.js"],h["Core/Scrollbar.js"],h["Core/Chart/StockChart.js"]],function(e,h,A,E,v){e.Scrollbar=E;e.StockChart=e.stockChart=v.stockChart;E.compose(e.Axis);h.compose(e.Axis,e.Series,e.Chart);A.compose(e.Series,e.Axis,e.Point)});M(h,"masters/highstock.src.js",[h["masters/highcharts.src.js"]],function(e){e.product="Highstock";return e});h["masters/highstock.src.js"]._modules=h;return h["masters/highstock.src.js"]});
706
+ var k=this.scrollbarHeight||0,l=this.size,m=this.left-k,r=this.top;c?(m-=g,c=r+b+h,b=r+a+h,h=[["M",m+f,r-k-h],["L",m+f,c],["L",m,c],["L",m,b],["L",m+f,b],["L",m+f,r+l+k]],e&&h.push(["M",m+f,c-g],["L",m+f,b+g])):(a+=m+k-h,b+=m+k-h,r+=g,h=[["M",m,r],["L",a,r],["L",a,r+f],["L",b,r+f],["L",b,r],["L",m+l+2*k,r]],e&&h.push(["M",a-g,r],["L",b+g,r]));this.outline[d]({d:h})};f.prototype.drawMasks=function(a,b,c,d){var e=this.left,f=this.top,g=this.height;if(c){var h=[e,e,e];var k=[f,f+a,f+b];var l=[g,g,g];
707
+ var m=[a,b-a,this.size-b]}else h=[e,e+a,e+b],k=[f,f,f],l=[a,b-a,this.size-b],m=[g,g,g];this.shades.forEach(function(a,b){a[d]({x:h[b],y:k[b],width:l[b],height:m[b]})})};f.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,d=e.renderer,f,g={cursor:e.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=f=d.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,h){a.shades[h]=d.rect().addClass("highcharts-navigator-mask"+(1===h?
708
+ "-inside":"-outside")).add(f);e.styledMode||a.shades[h].attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}).css(1===h&&g)});a.outline=d.path().addClass("highcharts-navigator-outline").add(f);e.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=e.inverted;a.handles[c]=d.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+
709
+ ["left","right"][c]).add(f);if(!e.styledMode){var h=b.handles;a.handles[c].attr({fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.lineWidth}).css(g)}})};f.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();w(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};f.prototype.render=function(a,b,c,e){var d=this.chart,f=this.scrollbarHeight,g,h=this.xAxis,m=h.pointRange||0;var r=h.navigatorAxis.fake?
710
+ d.xAxis[0]:h;var n=this.navigatorEnabled,p,x=this.rendered;var q=d.inverted;var u=d.xAxis[0].minRange,B=d.xAxis[0].options.maxRange;if(!this.hasDragged||I(c)){a=C(a-m/2);b=C(b+m/2);if(!k(a)||!k(b))if(x)c=0,e=l(h.width,r.width);else return;this.left=l(h.left,d.plotLeft+f+(q?d.plotWidth:0));this.size=p=g=l(h.len,(q?d.plotHeight:d.plotWidth)-2*f);d=q?f:g+2*f;c=l(c,h.toPixels(a,!0));e=l(e,h.toPixels(b,!0));k(c)&&Infinity!==Math.abs(c)||(c=0,e=d);a=h.toValue(c,!0);b=h.toValue(e,!0);var w=Math.abs(C(b-
711
+ a));w<u?this.grabbedLeft?c=h.toPixels(b-u-m,!0):this.grabbedRight&&(e=h.toPixels(a+u+m,!0)):I(B)&&C(w-m)>B&&(this.grabbedLeft?c=h.toPixels(b-B-m,!0):this.grabbedRight&&(e=h.toPixels(a+B+m,!0)));this.zoomedMax=E(Math.max(c,e),0,p);this.zoomedMin=E(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,e),0,p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);n&&(this.navigatorGroup.attr({visibility:"visible"}),x=x&&!this.hasDragged?"animate":"attr",
712
+ this.drawMasks(c,p,q,x),this.drawOutline(c,p,q,x),this.navigatorOptions.handles.enabled&&(this.drawHandle(c,0,q,x),this.drawHandle(p,1,q,x)));this.scrollbar&&(q?(q=this.top-f,r=this.left-f+(n||!r.opposite?0:(r.titleOffset||0)+r.axisTitleMargin),f=g+2*f):(q=this.top+(n?this.height:-f),r=this.left-f),this.scrollbar.position(r,q,d,f),this.scrollbar.setRange(this.zoomedMin/(g||1),this.zoomedMax/(g||1)));this.rendered=!0}};f.prototype.addMouseEvents=function(){var a=this,b=a.chart,e=b.container,d=[],f,
713
+ g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};d=a.getPartsEvents("mousedown");d.push(m(b.renderTo,"mousemove",f),m(e.ownerDocument,"mouseup",g));c&&(d.push(m(b.renderTo,"touchmove",f),m(e.ownerDocument,"touchend",g)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(m(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};f.prototype.getPartsEvents=function(a){var b=this,
714
+ c=[];["shades","handles"].forEach(function(d){b[d].forEach(function(e,f){c.push(m(e.element,a,function(a){b[d+"Mousedown"](a,f)}))})});return c};f.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,k=a.chartX;c.inverted&&(k=a.chartY,f=this.top);if(1===b)this.grabbedCenter=k,this.fixedWidth=h,this.dragOffset=k-e;else{a=k-f-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=
715
+ h;var l=this.getUnionExtremes().dataMin}else var m=this.getUnionExtremes().dataMax;a!==e&&(this.fixedWidth=h,b=d.navigatorAxis.toFixedRange(a,a+h,l,m),I(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};f.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=
716
+ !0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null};f.prototype.onMouseMove=function(b){var c=this,d=c.chart,e=c.left,f=c.navigatorSize,g=c.range,h=c.dragOffset,k=d.inverted;b.touches&&0===b.touches[0].pageX||(b=d.pointer.normalize(b),d=b.chartX,k&&(e=c.top,d=b.chartY),c.grabbedLeft?(c.hasDragged=!0,c.render(0,0,d-e,c.otherHandlePos)):c.grabbedRight?(c.hasDragged=!0,c.render(0,0,c.otherHandlePos,d-e)):c.grabbedCenter&&(c.hasDragged=!0,d<h?d=h:d>f+h-g&&(d=f+h-
717
+ g),c.render(0,0,d-h,d-h+g)),c.hasDragged&&c.scrollbar&&l(c.scrollbar.options.liveRedraw,F.svg&&!a&&!this.chart.isBoosting)&&(b.DOMType=b.type,setTimeout(function(){c.onMouseUp(b)},0)))};f.prototype.onMouseUp=function(a){var b=this.chart,c=this.xAxis,d=this.scrollbar,e=a.DOMEvent||a,f=b.inverted,g=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===a.trigger){d=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var h=this.fixedExtreme;
718
+ else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===this.size&&(l=this.reversedExtremes?d.dataMin:d.dataMax);0===this.zoomedMin&&(h=this.reversedExtremes?d.dataMax:d.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,h,l);I(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:e})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=
719
+ this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&k(this.zoomedMin)&&k(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,a,f,g),this.outline&&this.drawOutline(b,a,f,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,f,g),this.drawHandle(a,1,f,g)))};f.prototype.removeEvents=function(){this.eventsToUnbind&&
720
+ (this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};f.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){e(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&e(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};f.prototype.init=function(a){var c=a.options,e=c.navigator,f=e.enabled,g=c.scrollbar,h=g.enabled;c=f?e.height:
721
+ 0;var k=h?g.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=c;this.scrollbarHeight=k;this.scrollbarEnabled=h;this.navigatorEnabled=f;this.navigatorOptions=e;this.scrollbarOptions=g;this.outlineHeight=c+k;this.opposite=l(e.opposite,!(f||!a.inverted));var n=this;f=n.baseSeries;g=a.xAxis.length;h=a.yAxis.length;var p=f&&f[0]&&f[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;n.navigatorEnabled?(n.xAxis=new d(a,w({breaks:p.options.breaks,ordinal:p.options.ordinal},
722
+ e.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[k,0,-k,0],width:c}:{offsets:[0,-k,0,k],height:c})),n.yAxis=new d(a,w(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:h,isInternal:!0,reversed:l(e.yAxis&&e.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:c}:{height:c})),f||e.series.data?
723
+ n.updateNavigatorSeries(!1):0===a.series.length&&(n.unbindRedraw=m(a,"beforeRedraw",function(){0<a.series.length&&!n.series&&(n.setBaseSeries(),n.unbindRedraw())})),n.reversedExtremes=a.inverted&&!n.xAxis.reversed||!a.inverted&&n.xAxis.reversed,n.renderElements(),n.addMouseEvents()):(n.xAxis={chart:a,navigatorAxis:{fake:!0},translate:function(c,d){var e=a.xAxis[0],f=e.getExtremes(),g=e.len-2*k,h=b("min",e.options.min,f.dataMin);e=b("max",e.options.max,f.dataMax)-h;return d?c*e/g+h:g*(c-h)/e},toPixels:function(a){return this.translate(a)},
724
+ toValue:function(a){return this.translate(a,!0)}},n.xAxis.navigatorAxis.axis=n.xAxis,n.xAxis.navigatorAxis.toFixedRange=t.AdditionsClass.prototype.toFixedRange.bind(n.xAxis.navigatorAxis));a.options.scrollbar.enabled&&(a.scrollbar=n.scrollbar=new y(a.renderer,w(a.options.scrollbar,{margin:n.navigatorEnabled?0:10,vertical:a.inverted}),a),m(n.scrollbar,"changed",function(a){var b=n.size,c=b*this.to;b*=this.from;n.hasDragged=n.scrollbar.hasDragged;n.render(0,0,b,c);this.shouldUpdateExtremes(a.DOMType)&&
725
+ setTimeout(function(){n.onMouseUp(a)})}));n.addBaseSeriesEvents();n.addChartEvents()};f.prototype.getUnionExtremes=function(a){var c=this.chart.xAxis[0],d=this.xAxis,e=d.options,f=c.options,g;a&&null===c.dataMin||(g={dataMin:l(e&&e.min,b("min",f.min,c.dataMin,d.dataMin,d.min)),dataMax:l(e&&e.max,b("max",f.max,c.dataMax,d.dataMax,d.max))});return g};f.prototype.setBaseSeries=function(a,b){var c=this.chart,d=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?z(c.series,
726
+ function(a){return!a.options.isInternal}).index:0);(c.series||[]).forEach(function(b,c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||d.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};f.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,f=c.baseSeries,h,k,m=c.navigatorOptions.series,p,r={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",
727
+ yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},q=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>f.indexOf(b)?(b&&(e(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});f&&f.length&&f.forEach(function(a){var e=a.navigatorSeries,x=v({color:a.color,visible:a.visible},u(m)?n.navigator.series:m);e&&!1===c.navigatorOptions.adaptToUpdatedData||(r.name="Navigator "+f.length,h=a.options||
728
+ {},p=h.navigatorOptions||{},x.dataLabels=g(x.dataLabels),k=w(h,r,x,p),k.pointRange=l(x.pointRange,p.pointRange,n.plotOptions[k.type||"line"].pointRange),x=p.data||x.data,c.hasNavigatorData=c.hasNavigatorData||!!x,k.data=x||h.data&&h.data.slice(0),e&&e.options?e.update(k,b):(a.navigatorSeries=d.initSeries(k),a.navigatorSeries.baseSeries=a,q.push(a.navigatorSeries)))});if(m.data&&(!f||!f.length)||u(m))c.hasNavigatorData=!1,m=g(m),m.forEach(function(a,b){r.name="Navigator "+(q.length+1);k=w(n.navigator.series,
729
+ {color:d.series[b]&&!d.series[b].options.isInternal&&d.series[b].color||d.options.colors[b]||d.options.colors[0]},r,a);k.data=a.data;k.data&&(c.hasNavigatorData=!0,q.push(d.initSeries(k)))});a&&this.addBaseSeriesEvents()};f.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(m(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(m(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,
730
+ !1)}));b.eventsToUnbind.push(m(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(m(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(m(b,"remove",function(){this.navigatorSeries&&(K(a.series,this.navigatorSeries),I(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};f.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,
731
+ b){return Math.min(a,b.xData?b.xData[0]:a)},a)};f.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};f.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax;b=b.max-b.min;var e=a.stickToMin,f=a.stickToMax,g=l(this.options.overscroll,0),h=a.series&&a.series[0],m=!!this.setExtremes;
732
+ if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(e){var n=c;var p=n+b}f&&(p=d+g,e||(n=Math.max(c,p-b,a.getBaseSeriesMin(h&&h.xData?h.xData[0]:-Number.MAX_VALUE))));m&&(e||f)&&k(n)&&(this.min=this.userMin=n,this.max=this.userMax=p)}a.stickToMin=a.stickToMax=null};f.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,
733
+ a);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};f.prototype.shouldStickToMin=function(a,b){b=b.getBaseSeriesMin(a.xData[0]);var c=a.xAxis;a=c.max;var d=c.min;c=c.options.range;return k(a)&&k(d)?c&&0<a-b?a-b<c:d<=b:!1};f.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(m(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);
734
+ b&&a.render(b.min,b.max)}),m(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};f.prototype.destroy=function(){this.removeEvents();this.xAxis&&(K(this.chart.xAxis,this.xAxis),K(this.chart.axes,this.xAxis));this.yAxis&&(K(this.chart.yAxis,this.yAxis),K(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&
735
+ a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){L(a)},this)};return f}();F.Navigator||(F.Navigator=B,t.compose(d),m(h,"beforeShowResetZoom",function(){var b=this.options,c=b.navigator,d=b.rangeSelector;if((c&&c.enabled||d&&d.enabled)&&(!a&&"x"===b.chart.zoomType||a&&"x"===b.chart.pinchType))return!1}),
736
+ m(h,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)}),m(h,"afterSetChartSize",function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var e=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=l(d.left,this.plotLeft+f),b.top=b.navigatorOptions.top||this.chartHeight-b.height-f-this.spacing[2]-(this.rangeSelector&&
737
+ this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+l(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&e&&(this.inverted?d.options.left=e.options.left=b.left:d.options.top=e.options.top=b.top,d.setAxisSize(),e.setAxisSize())}}),m(h,"update",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(w(!0,this.options.navigator,
738
+ b),w(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),m(h,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new B(this),l(a.redraw,!0)&&this.redraw(a.animation))}),m(h,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),m(q,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,
739
+ !1)}),h.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));F.Navigator=B;return F.Navigator});N(h,"Extensions/RangeSelector.js",[h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/Globals.js"],h["Core/DefaultOptions.js"],h["Core/Renderer/SVG/SVGElement.js"],h["Core/Utilities.js"]],function(d,h,A,F,t,G){function E(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+
740
+ b)}),c="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var y=F.defaultOptions,q=G.addEvent,p=G.createElement,f=G.css,c=G.defined,a=G.destroyObjectProperties,n=G.discardElement,m=G.extend,D=G.find,C=G.fireEvent,I=G.isNumber,L=G.merge,K=G.objectEach,v=G.pad,z=G.pick,u=G.pInt,k=G.splat;m(y,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,
741
+ height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}});m(y.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var w=
742
+ function(){function e(a){this.buttons=void 0;this.buttonOptions=e.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}e.prototype.clickButton=function(a,e){var b=this.chart,f=this.buttonOptions[a],g=b.xAxis[0],h=b.scroller&&b.scroller.getUnionExtremes()||g||{},l=h.dataMin,m=h.dataMax,n=g&&Math.round(Math.min(g.max,z(m,g.max))),p=f.type;h=f._range;var u,B=f.dataGrouping;if(null!==l&&null!==m){b.fixedRange=h;this.setSelected(a);B&&(this.forcedDataGrouping=
743
+ !0,d.prototype.setDataGrouping.call(g||{chart:this.chart},B,!1),this.frozenStates=f.preserveDataGrouping);if("month"===p||"year"===p)if(g){p={range:f,max:n,chart:b,dataMin:l,dataMax:m};var w=g.minFromRange.call(p);I(p.newMax)&&(n=p.newMax)}else h=f;else if(h)w=Math.max(n-h,l),n=Math.min(w+h,m);else if("ytd"===p)if(g)"undefined"===typeof m&&(l=Number.MAX_VALUE,m=Number.MIN_VALUE,b.series.forEach(function(a){a=a.xData;l=Math.min(a[0],l);m=Math.max(a[a.length-1],m)}),e=!1),n=this.getYTDExtremes(m,l,
744
+ b.time.useUTC),w=u=n.min,n=n.max;else{this.deferredYTDClick=a;return}else"all"===p&&g&&(b.navigator&&b.navigator.baseSeries[0]&&(b.navigator.baseSeries[0].xAxis.options.range=void 0),w=l,n=m);c(w)&&(w+=f._offsetMin);c(n)&&(n+=f._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=a+1);if(g)g.setExtremes(w,n,z(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:f});else{var t=k(b.options.xAxis)[0];var v=t.range;t.range=h;var y=t.min;t.min=u;q(b,"load",function(){t.range=v;t.min=y})}C(this,
745
+ "afterBtnClick")}};e.prototype.setSelected=function(a){this.selected=this.options.selected=a};e.prototype.init=function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||b.defaultButtons.slice(),d=c.selected,f=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&C(a,"blur");c&&c.blur&&C(c,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=e;this.eventsToUnbind=[];this.eventsToUnbind.push(q(a.container,"mousedown",f));this.eventsToUnbind.push(q(a,"resize",f));e.forEach(b.computeButtonRange);
746
+ "undefined"!==typeof d&&e[d]&&this.clickButton(d,!1);this.eventsToUnbind.push(q(a,"load",function(){a.xAxis&&a.xAxis[0]&&q(a.xAxis[0],"setExtremes",function(c){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};e.prototype.updateButtonStates=function(){var a=this,c=this.chart,e=this.dropdown,d=c.xAxis[0],f=Math.round(d.max-d.min),g=!d.hasVisibleSeries,h=c.scroller&&c.scroller.getUnionExtremes()||
747
+ d,k=h.dataMin,l=h.dataMax;c=a.getYTDExtremes(l,k,c.time.useUTC);var m=c.min,n=c.max,p=a.selected,q=I(p),u=a.options.allButtonsEnabled,w=a.buttons;a.buttonOptions.forEach(function(b,c){var h=b._range,r=b.type,x=b.count||1,t=w[c],B=0,v=b._offsetMax-b._offsetMin;b=c===p;var z=h>l-k,y=h<d.minRange,A=!1,J=!1;h=h===f;("month"===r||"year"===r)&&f+36E5>=864E5*{month:28,year:365}[r]*x-v&&f-36E5<=864E5*{month:31,year:366}[r]*x+v?h=!0:"ytd"===r?(h=n-m+v===f,A=!b):"all"===r&&(h=d.max-d.min>=l-k,J=!b&&q&&h);r=
748
+ !u&&(z||y||J||g);x=b&&h||h&&!q&&!A||b&&a.frozenStates;r?B=3:x&&(q=!0,B=2);t.state!==B&&(t.setState(B),e&&(e.options[c+1].disabled=r,2===B&&(e.selectedIndex=c+1)),0===B&&p===c&&a.setSelected())})};e.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=z(a.offsetMin,0);a._offsetMax=z(a.offsetMax,0);a._range+=
749
+ a._offsetMax-a._offsetMin};e.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};e.prototype.setInputValue=function(a,e){var b=this.options,d=this.chart.time,f="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(f){var g=f.getAttribute("data-hc-time");g=c(g)?Number(g):void 0;c(e)&&(c(g)&&
750
+ f.setAttribute("data-hc-time-previous",g),f.setAttribute("data-hc-time",e),g=e);f.value=d.dateFormat(this.inputTypeFormats[f.type]||b.inputEditDateFormat,g);a&&a.attr({text:d.dateFormat(b.inputDateFormat,g)})}};e.prototype.setInputExtremes=function(a,c,e){if(a="min"===a?this.minInput:this.maxInput){var b=this.inputTypeFormats[a.type],d=this.chart.time;b&&(c=d.dateFormat(b,c),a.min!==c&&(a.min=c),e=d.dateFormat(b,e),a.max!==e&&(a.max=e))}};e.prototype.showInput=function(a){var b="min"===a?this.minDateBox:
751
+ this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var c="text"===a.type,e=this.inputGroup,d=e.translateX;e=e.translateY;var g=this.options.inputBoxWidth;f(a,{width:c?b.width+(g?-2:20)+"px":"auto",height:c?b.height-2+"px":"auto",border:"2px solid silver"});c&&g?f(a,{left:d+b.x+"px",top:e+"px"}):f(a,{left:Math.min(Math.round(b.x+d-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:e-(a.offsetHeight-b.height)/2+"px"})}};e.prototype.hideInput=function(a){(a=
752
+ "min"===a?this.minInput:this.maxInput)&&f(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};e.prototype.defaultInputDateParser=function(a,c,e){var b=a.split("/").join("-").split(" ").join("T");-1===b.indexOf("T")&&(b+="T00:00");if(c)b+="Z";else{var d;if(d=A.isSafari)d=b,d=!(6<d.length&&(d.lastIndexOf("-")===d.length-6||d.lastIndexOf("+")===d.length-6));d&&(d=(new Date(b)).getTimezoneOffset()/60,b+=0>=d?"+"+v(-d)+":00":"-"+v(d)+":00")}b=Date.parse(b);I(b)||(a=a.split("-"),b=Date.UTC(u(a[0]),u(a[1])-
753
+ 1,u(a[2])));e&&c&&I(b)&&(b+=e.getTimezoneOffset(b));return b};e.prototype.drawInput=function(a){function b(){var b=g.getInputValue(a),e=c.xAxis[0],d=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:e,f=d.dataMin;d=d.dataMax;var h=g.maxInput,k=g.minInput;b!==Number(u.getAttribute("data-hc-time-previous"))&&I(b)&&(u.setAttribute("data-hc-time-previous",b),n&&h&&I(f)?b>Number(h.getAttribute("data-hc-time"))?b=void 0:b<f&&(b=f):k&&I(d)&&(b<Number(k.getAttribute("data-hc-time"))?b=void 0:b>d&&(b=d)),"undefined"!==
754
+ typeof b&&e.setExtremes(n?b:e.min,n?e.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=this.chart,e=this.div,d=this.inputGroup,g=this,h=c.renderer.style||{},k=c.renderer,l=c.options.rangeSelector,n="min"===a,q=y.lang[n?"rangeSelectorFrom":"rangeSelectorTo"]||"";q=k.label(q,0).addClass("highcharts-range-label").attr({padding:q?2:0,height:q?l.inputBoxHeight:0}).add(d);k=k.label("",0).addClass("highcharts-range-input").attr({padding:2,width:l.inputBoxWidth,height:l.inputBoxHeight,"text-align":"center"}).on("click",
755
+ function(){g.showInput(a);g[a+"Input"].focus()});c.styledMode||k.attr({stroke:l.inputBoxBorderColor,"stroke-width":1});k.add(d);var u=p("input",{name:a,className:"highcharts-range-selector"},void 0,e);u.setAttribute("type",E(l.inputDateFormat||"%b %e, %Y"));c.styledMode||(q.css(L(h,l.labelStyle)),k.css(L({color:"#333333"},h,l.inputStyle)),f(u,m({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,
756
+ top:"-9999em"},l.inputStyle)));u.onfocus=function(){g.showInput(a)};u.onblur=function(){u===A.doc.activeElement&&b();g.hideInput(a);g.setInputValue(a);u.blur()};var w=!1;u.onchange=function(){w||(b(),g.hideInput(a),u.blur())};u.onkeypress=function(a){13===a.keyCode&&b()};u.onkeydown=function(a){w=!0;38!==a.keyCode&&40!==a.keyCode||b()};u.onkeyup=function(){w=!1};return{dateBox:k,input:u,label:q}};e.prototype.getPosition=function(){var a=this.chart,c=a.options.rangeSelector;a="top"===c.verticalAlign?
757
+ a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+c.buttonPosition.y,inputTop:a+c.inputPosition.y-10}};e.prototype.getYTDExtremes=function(a,c,e){var b=this.chart.time,d=new b.Date(a),f=b.get("FullYear",d);e=e?b.Date.UTC(f,0,1):+new b.Date(f,0,1);c=Math.max(c,e);d=d.getTime();return{max:Math.min(a||d,d),min:c}};e.prototype.render=function(a,e){var b=this.chart,d=b.renderer,f=b.container,g=b.options,h=g.rangeSelector,k=z(g.chart.style&&g.chart.style.zIndex,0)+1;g=h.inputEnabled;if(!1!==h.enabled){this.rendered||
758
+ (this.group=d.g("range-selector-group").attr({zIndex:7}).add(),this.div=p("div",void 0,{position:"relative",height:0,zIndex:k}),this.buttonOptions.length&&this.renderButtons(),f.parentNode&&f.parentNode.insertBefore(this.div,f),g&&(this.inputGroup=d.g("input-group").add(this.group),d=this.drawInput("min"),this.minDateBox=d.dateBox,this.minLabel=d.label,this.minInput=d.input,d=this.drawInput("max"),this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input));if(g&&(this.setInputValue("min",
759
+ a),this.setInputValue("max",e),a=b.scroller&&b.scroller.getUnionExtremes()||b.xAxis[0]||{},c(a.dataMin)&&c(a.dataMax)&&(b=b.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-b),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+b,a.dataMax)),this.inputGroup)){var l=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:l}),l+=b+h.inputSpacing)}})}this.alignElements();
760
+ this.rendered=!0}};e.prototype.renderButtons=function(){var a=this,c=this.buttons,d=this.options,e=y.lang,f=this.chart.renderer,g=L(d.buttonTheme),h=g&&g.states,k=g.width||28;delete g.width;delete g.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var l=this.dropdown=p("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);q(l,"touchstart",function(){l.style.fontSize="16px"});[[A.isMS?"mouseover":
761
+ "mouseenter"],[A.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(b){var d=b[0],e=b[1];q(l,d,function(){var b=c[a.currentButtonIndex()];b&&C(b.element,e||d)})});this.zoomText=f.label(e&&e.rangeSelectorZoom||"",0).attr({padding:d.buttonTheme.padding,height:d.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(d.labelStyle),g["stroke-width"]=z(g["stroke-width"],0));p("option",{textContent:this.zoomText.textStr,disabled:!0},
762
+ void 0,l);this.buttonOptions.forEach(function(b,d){p("option",{textContent:b.title||b.text},void 0,l);c[d]=f.button(b.text,0,0,function(c){var e=b.events&&b.events.click,f;e&&(f=e.call(b,c));!1!==f&&a.clickButton(d);a.isActive=!0},g,h&&h.hover,h&&h.select,h&&h.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup);b.title&&c[d].attr("title",b.title)})};e.prototype.alignElements=function(){var a=this,c=this.buttonGroup,d=this.buttons,e=this.chart,f=this.group,g=this.inputGroup,h=this.options,
763
+ k=this.zoomText,l=e.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=h.buttonPosition;var n=h.inputPosition,p=h.verticalAlign,q=function(b,c){return m&&a.titleCollision(e)&&"top"===p&&"right"===c.align&&c.y-b.getBBox().height-12<(m.y||0)+(m.height||0)+e.spacing[0]?-40:0},u=e.plotLeft;if(f&&l&&n){var w=l.x-e.spacing[3];if(c){this.positionButtons();if(!this.initialButtonGroupWidth){var t=0;k&&(t+=k.getBBox().width+5);d.forEach(function(a,b){t+=a.width;b!==
764
+ d.length-1&&(t+=h.buttonSpacing)});this.initialButtonGroupWidth=t}u-=e.spacing[3];this.updateButtonStates();k=q(c,l);this.alignButtonGroup(k);f.placed=c.placed=e.hasLoaded}c=0;g&&(c=q(g,n),"left"===n.align?w=u:"right"===n.align&&(w=-Math.max(e.axisOffset[1],-c)),g.align({y:n.y,width:g.getBBox().width,align:n.align,x:n.x+w-2},!0,e.spacingBox),g.placed=e.hasLoaded);this.handleCollision(c);f.align({verticalAlign:p},!0,e.spacingBox);g=f.alignAttr.translateY;c=f.getBBox().height+20;q=0;"bottom"===p&&(q=
765
+ (q=e.legend&&e.legend.options)&&"bottom"===q.verticalAlign&&q.enabled&&!q.floating?e.legend.legendHeight+z(q.margin,10):0,c=c+q-20,q=g-c-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:0)-10);if("top"===p)h.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0;else if("middle"===p)if(n.y===l.y)q=g;else if(n.y||l.y)q=0>n.y||0>l.y?q-Math.min(n.y,l.y):g-c;f.translate(h.x,h.y+Math.floor(q));l=this.minInput;n=this.maxInput;g=this.dropdown;h.inputEnabled&&
766
+ l&&n&&(l.style.marginTop=f.translateY+"px",n.style.marginTop=f.translateY+"px");g&&(g.style.marginTop=f.translateY+"px")}};e.prototype.alignButtonGroup=function(a,c){var b=this.chart,e=this.buttonGroup,d=this.options.buttonPosition,f=b.plotLeft-b.spacing[3],g=d.x-b.spacing[3];"right"===d.align?g+=a-f:"center"===d.align&&(g-=f/2);e&&e.align({y:d.y,width:z(c,this.initialButtonGroupWidth),align:d.align,x:g},!0,b.spacingBox)};e.prototype.positionButtons=function(){var a=this.buttons,c=this.chart,e=this.options,
767
+ d=this.zoomText,f=c.hasLoaded?"animate":"attr",g=e.buttonPosition,h=c.plotLeft,k=h;d&&"hidden"!==d.visibility&&(d[f]({x:z(h+g.x,h)}),k+=g.x+d.getBBox().width+5);this.buttonOptions.forEach(function(b,c){if("hidden"!==a[c].visibility)a[c][f]({x:k}),k+=a[c].width+e.buttonSpacing;else a[c][f]({x:h})})};e.prototype.handleCollision=function(a){var b=this,c=this.chart,e=this.buttonGroup,d=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,k=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=
768
+ b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(d&&e){var c=d.alignAttr.translateX+d.alignOptions.x-a+d.getBBox().x+2,f=d.alignOptions.width,h=e.alignAttr.translateX+e.getBBox().x;return h+b>c&&c+f>h&&g.y<k.y+d.getBBox().height}return!1},m=function(){d&&e&&d.attr({translateX:d.alignAttr.translateX+(c.axisOffset[1]>=-a?0:-a),translateY:d.alignAttr.translateY+e.getBBox().height+10})};if(e){if("always"===h){this.collapseButtons(a);l(f())&&m();return}"never"===h&&this.expandButtons()}d&&
769
+ e?k.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),l(f())&&m()):m():"responsive"===h&&this.expandButtons():e&&"responsive"===h&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};e.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,e=this.chart,d=this.dropdown,f=this.options,g=this.zoomText,h=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a?
770
+ a+" \u25be":"\u25be",width:"auto",paddingLeft:z(f.buttonTheme.paddingLeft,h.padding,8),paddingRight:z(f.buttonTheme.paddingRight,h.padding,8)}};g&&g.hide();var l=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(k(a.text)),l=!0)});l||(d&&(d.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));c=f.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};
771
+ e.prototype.expandButtons=function(){var a=this.buttons,c=this.buttonOptions,e=this.options,d=this.zoomText;this.hideDropdown();d&&d.show();c.forEach(function(b,c){c=a[c];c.show();c.attr({text:b.text,width:e.buttonTheme.width||28,paddingLeft:z(e.buttonTheme.paddingLeft,"unset"),paddingRight:z(e.buttonTheme.paddingRight,"unset")});2>c.state&&c.setState(0)});this.positionButtons()};e.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};e.prototype.showDropdown=
772
+ function(){var a=this.buttonGroup,c=this.buttons,e=this.chart,d=this.dropdown;if(a&&d){var g=a.translateX;a=a.translateY;c=c[this.currentButtonIndex()].getBBox();f(d,{left:e.plotLeft+g+"px",top:a+.5+"px",width:c.width+"px",height:c.height+"px"});this.hasVisibleDropdown=!0}};e.prototype.hideDropdown=function(){var a=this.dropdown;a&&(f(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};e.prototype.getHeight=function(){var a=this.options,c=this.group,e=a.y,d=a.buttonPosition.y,
773
+ f=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=c?c.getBBox(!0).height+13+e:0;c=Math.min(f,d);if(0>f&&0>d||0<f&&0<d)a+=Math.abs(c);return a};e.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)};e.prototype.update=function(a){var b=this.chart;L(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};e.prototype.destroy=function(){var b=this,c=b.minInput,d=b.maxInput;b.eventsToUnbind&&(b.eventsToUnbind.forEach(function(a){return a()}),
774
+ b.eventsToUnbind=void 0);a(b.buttons);c&&(c.onfocus=c.onblur=c.onchange=null);d&&(d.onfocus=d.onblur=d.onchange=null);K(b,function(a,c){a&&"chart"!==c&&(a instanceof t?a.destroy():a instanceof window.HTMLElement&&n(a));a!==e.prototype[c]&&(b[c]=null)},this)};return e}();w.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},
775
+ {type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}];w.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"};d.prototype.minFromRange=function(){var a=this.range,b=a.type,c=this.max,d=this.chart.time,e=function(a,c){var e="year"===b?"FullYear":"Month",f=new d.Date(a),g=d.get(e,f);d.set(e,f,g+c);g===d.get(e,f)&&d.set("Date",f,0);return f.getTime()-a};if(I(a)){var f=c-a;var h=a}else f=c+e(c,-a.count),this.chart&&(this.chart.fixedRange=
776
+ c-f);var k=z(this.dataMin,Number.MIN_VALUE);I(f)||(f=k);f<=k&&(f=k,"undefined"===typeof h&&(h=e(f,a.count)),this.newMax=Math.min(f+h,this.dataMax));I(c)||(f=void 0);return f};if(!A.RangeSelector){var l=[],e=function(a){function b(){e&&(c=a.xAxis[0].getExtremes(),d=a.legend,g=e&&e.options.verticalAlign,I(c.min)&&e.render(c.min,c.max),d.display&&"top"===g&&g===d.options.verticalAlign&&(f=L(a.spacingBox),f.y="vertical"===d.options.layout?a.plotTop:f.y+e.getHeight(),d.group.placed=!1,d.align(f)))}var c,
777
+ e=a.rangeSelector,d,f,g;e&&(D(l,function(b){return b[0]===a})||l.push([a,[q(a.xAxis[0],"afterSetExtremes",function(a){e&&e.render(a.min,a.max)}),q(a,"redraw",b)]]),b())};q(h,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new w(this))});q(h,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(I(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),
778
+ this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))});q(h,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var d=this.extraBottomMargin,f=this.extraTopMargin;b&&b.enabled&&!c(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new w(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(e(this),b=b&&b.verticalAlign||a.options&&
779
+ a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==d||this.extraTopMargin!==f)&&(this.isDirtyBox=!0)});q(h,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});q(h,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=
780
+ a),this.extraBottomMargin&&(this.marginBottom+=a))});h.prototype.callbacks.push(e);q(h,"destroy",function(){for(var a=0;a<l.length;a++){var b=l[a];if(b[0]===this){b[1].forEach(function(a){return a()});l.splice(a,1);break}}});A.RangeSelector=w}return w});N(h,"Core/Chart/StockChart.js",[h["Core/Animation/AnimationUtilities.js"],h["Core/Axis/Axis.js"],h["Core/Chart/Chart.js"],h["Core/FormatUtilities.js"],h["Core/DefaultOptions.js"],h["Core/Series/Series.js"],h["Core/Renderer/SVG/SVGRenderer.js"],h["Core/Utilities.js"]],
781
+ function(d,h,A,F,t,G,H,y){function q(a,c){return"xAxis"===a?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:"yAxis"===a?{labels:{y:-2},opposite:v(c.opposite,!0),showLastLabel:!(!c.categories&&"category"!==c.type),title:{text:null}}:{}}function p(c,d){if("xAxis"===c){c=a();var f={type:"datetime",categories:void 0};v(d.navigator&&d.navigator.enabled,c.navigator.enabled,!0)&&(f.startOnTick=!1,f.endOnTick=!1);return f}return{}}var f=this&&
782
+ this.__extends||function(){var a=function(c,d){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,d)};return function(c,d){function f(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),c=F.format,a=t.getOptions;d=y.addEvent;var n=y.clamp,m=y.defined,E=y.extend,C=y.find,I=y.isNumber,L=y.isString,K=y.merge,v=y.pick,z=y.splat;y=function(c){function d(){return null!==
783
+ c&&c.apply(this,arguments)||this}f(d,c);d.prototype.init=function(d,f){var e=a(),g=d.xAxis,b=d.yAxis,h=v(d.navigator&&d.navigator.enabled,e.navigator.enabled,!0);d.xAxis=d.yAxis=void 0;h=K({chart:{panning:{enabled:!0,type:"x"},pinchType:"x"},navigator:{enabled:h},scrollbar:{enabled:v(e.scrollbar&&e.scrollbar.enabled,!0)},rangeSelector:{enabled:v(e.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:v(e.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},d,{isStock:!0});d.xAxis=g;d.yAxis=
784
+ b;h.xAxis=z(d.xAxis||{}).map(function(a,b){return K(q("xAxis",a),e.xAxis,e.xAxis&&e.xAxis[b],a,p("xAxis",d))});h.yAxis=z(d.yAxis||{}).map(function(a,b){return K(q("yAxis",a),e.yAxis,e.yAxis&&e.yAxis[b],a)});c.prototype.init.call(this,h,f)};d.prototype.createAxis=function(a,d){d.axis=K(q(a,d.axis),d.axis,p(a,this.userOptions));return c.prototype.createAxis.call(this,a,d)};return d}(A);(function(a){a.stockChart=function(c,d,f){return new a(c,d,f)}})(y||(y={}));d(G,"setOptions",function(a){var c;this.chart.options.isStock&&
785
+ (this.is("column")||this.is("columnrange")?c={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(c={marker:{enabled:!1,radius:2}}),c&&(a.plotOptions[this.type]=K(a.plotOptions[this.type],c)))});d(h,"autoLabelAlign",function(a){var c=this.chart,d=this.options;c=c._labelPanes=c._labelPanes||{};var f=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&(d=d.top+","+d.height,!c[d]&&f.enabled&&(15===f.x&&(f.x=0),"undefined"===typeof f.align&&(f.align="right"),c[d]=this,a.align=
786
+ "right",a.preventDefault()))});d(h,"destroy",function(){var a=this.chart,c=this.options&&this.options.top+","+this.options.height;c&&a._labelPanes&&a._labelPanes[c]===this&&delete a._labelPanes[c]});d(h,"getPlotLinePath",function(a){function c(a){var b="xAxis"===a?"yAxis":"xAxis";a=d.options[b];return I(a)?[e[b][a]]:L(a)?[e.get(a)]:f.map(function(a){return a[b]})}var d=this,f=this.isLinked&&!this.series?this.linkedParent.series:this.series,e=d.chart,g=e.renderer,b=d.left,h=d.top,p,q,u,t,z=[],y=[],
787
+ A=a.translatedValue,E=a.value,D=a.force;if(e.options.isStock&&!1!==a.acrossPanes&&"xAxis"===d.coll||"yAxis"===d.coll){a.preventDefault();y=c(d.coll);var F=d.isXAxis?e.yAxis:e.xAxis;F.forEach(function(a){if(m(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis";b=m(a.options[b])?e[b][a.options[b]]:e[b][0];d===b&&y.push(a)}});var G=y.length?[]:[d.isXAxis?e.yAxis[0]:e.xAxis[0]];y.forEach(function(a){-1!==G.indexOf(a)||C(G,function(b){return b.pos===a.pos&&b.len===a.len})||
788
+ G.push(a)});var H=v(A,d.translate(E,null,null,a.old));I(H)&&(d.horiz?G.forEach(function(a){var c;q=a.pos;t=q+a.len;p=u=Math.round(H+d.transB);"pass"!==D&&(p<b||p>b+d.width)&&(D?p=u=n(p,b,b+d.width):c=!0);c||z.push(["M",p,q],["L",u,t])}):G.forEach(function(a){var b;p=a.pos;u=p+a.len;q=t=Math.round(h+d.height-H);"pass"!==D&&(q<h||q>h+d.height)&&(D?q=t=n(q,h,h+d.height):b=!0);b||z.push(["M",p,q],["L",u,t])}));a.path=0<z.length?g.crispPolyLine(z,a.lineWidth||1):null}});H.prototype.crispPolyLine=function(a,
789
+ c){for(var d=0;d<a.length;d+=2){var f=a[d],e=a[d+1];f[1]===e[1]&&(f[1]=e[1]=Math.round(f[1])-c%2/2);f[2]===e[2]&&(f[2]=e[2]=Math.round(f[2])+c%2/2)}return a};d(h,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});d(h,"afterDrawCrosshair",function(a){var d,f;if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&I(this.min)&&I(this.max)){var h=this.chart,e=this.logarithmic,g=this.crosshair.label,b=this.horiz,m=this.opposite,n=this.left,
790
+ p=this.top,q=this.crossLabel,u=g.format,t="",z="inside"===this.options.tickPosition,y=!1!==this.crosshair.snap,A=0,C=a.e||this.cross&&this.cross.e;a=a.point;var D=this.min,F=this.max;e&&(D=e.lin2log(D),F=e.lin2log(F));e=b?"center":m?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";q||(q=this.crossLabel=h.renderer.label("",0,void 0,g.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(a?a.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:g.align||
791
+ e,padding:v(g.padding,8),r:v(g.borderRadius,3),zIndex:2}).add(this.labelGroup),h.styledMode||q.attr({fill:g.backgroundColor||a&&a.series&&a.series.color||"#666666",stroke:g.borderColor||"","stroke-width":g.borderWidth||0}).css(E({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},g.style||{})));b?(e=y?(a.plotX||0)+n:C.chartX,p+=m?0:this.height):(e=m?this.width+n:0,p=y?(a.plotY||0)+p:C.chartY);u||g.formatter||(this.dateTime&&(t="%b %d, %Y"),u="{value"+(t?":"+t:"")+"}");t=y?this.isXAxis?
792
+ a.x:a.y:this.toValue(b?C.chartX:C.chartY);y=a?a.series.isPointInside(a):I(t)&&t>D&&t<F;C="";u?C=c(u,{value:t},h):g.formatter&&I(t)&&(C=g.formatter.call(this,t));q.attr({text:C,x:e,y:p,visibility:y?"visible":"hidden"});g=q.getBBox();if(I(q.y))if(b){if(z&&!m||!z&&m)p=q.y-g.height}else p=q.y-g.height/2;b?(d=n-g.x,f=n+this.width-g.x):(d="left"===this.labelAlign?n:0,f="right"===this.labelAlign?n+this.width:h.chartWidth);q.translateX<d&&(A=d-q.translateX);q.translateX+g.width>=f&&(A=-(q.translateX+g.width-
793
+ f));q.attr({x:e+A,y:p,anchorX:b?e:this.opposite?0:h.chartWidth,anchorY:b?this.opposite?h.chartHeight:0:p+g.height/2})}});G.prototype.forceCropping=function(){var a=this.chart,c=this.options.dataGrouping;return!1!==this.allowDG&&c&&v(c.enabled,a.options.isStock)};d(A,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(K(!0,this.options.scrollbar,a.scrollbar),this.navigator.update({},!1),delete a.scrollbar)});return y});N(h,"masters/modules/stock.src.js",[h["Core/Globals.js"],h["Core/Axis/OrdinalAxis.js"],
794
+ h["Series/DataModifyComposition.js"],h["Core/Scrollbar.js"],h["Core/Chart/StockChart.js"]],function(d,h,A,F,t){d.Scrollbar=F;d.StockChart=d.stockChart=t.stockChart;F.compose(d.Axis);h.compose(d.Axis,d.Series,d.Chart);A.compose(d.Series,d.Axis,d.Point)});N(h,"masters/highstock.src.js",[h["masters/highcharts.src.js"]],function(d){d.product="Highstock";return d});h["masters/highstock.src.js"]._modules=h;return h["masters/highstock.src.js"]});
795
795
  //# sourceMappingURL=highstock.js.map