@sisense/sdk-ui 2.11.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/dist/ai.cjs +19 -19
  2. package/dist/ai.js +563 -561
  3. package/dist/analytics-composer/node.cjs +1 -3
  4. package/dist/analytics-composer/node.js +2269 -653
  5. package/dist/analytics-composer.cjs +1 -1
  6. package/dist/analytics-composer.js +6 -6
  7. package/dist/{derive-chart-family-BhAFg8OE.js → derive-chart-family-YIDiS_iY.js} +11299 -11249
  8. package/dist/derive-chart-family-mugR7Ty1.cjs +170 -0
  9. package/dist/{dimensions-DCxjxuyH.cjs → dimensions-CyzZ0dbM.cjs} +1 -1
  10. package/dist/{dimensions-Bk74slQe.js → dimensions-DmRfLrT-.js} +1 -1
  11. package/dist/{execute-query-CxMSGp-J.js → execute-query-BCEeyd9s.js} +835 -807
  12. package/dist/execute-query-Xt9drS3G.cjs +1 -0
  13. package/dist/index.cjs +24 -20
  14. package/dist/index.js +24710 -24594
  15. package/dist/index.umd.js +437 -435
  16. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -1
  17. package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +1 -1
  18. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +1 -1
  19. package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
  20. package/dist/packages/sdk-ui/src/ai/chat-frame.d.ts +1 -1
  21. package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +1 -1
  22. package/dist/packages/sdk-ui/src/ai/messages/text-message.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +1 -1
  24. package/dist/packages/sdk-ui/src/ai/use-final-nlq-response.d.ts +1 -1
  25. package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +1 -1
  26. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +1 -1
  27. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +1 -1
  28. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -1
  29. package/dist/packages/sdk-ui/src/analytics-composer/code/default-options/data-options.d.ts +4 -0
  30. package/dist/packages/sdk-ui/src/analytics-composer/code/default-options/style-options.d.ts +89 -0
  31. package/dist/packages/sdk-ui/src/analytics-composer/code/stringify-props.d.ts +5 -1
  32. package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +2 -2
  33. package/dist/packages/sdk-ui/src/analytics-composer/execute-query/execute-query-composer.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/analytics-composer/execute-query/to-execute-query-code.d.ts +1 -1
  35. package/dist/packages/sdk-ui/src/analytics-composer/index-node.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/common.d.ts +49 -0
  38. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/index.d.ts +2 -0
  39. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/custom-formula/process-custom-formula.d.ts +14 -0
  40. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/custom-formula/validate-custom-formula.d.ts +54 -0
  41. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/execute-function.d.ts +5 -0
  42. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/factory-function-processors.d.ts +39 -0
  43. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/factory-function-schemas.d.ts +20 -0
  44. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +37 -0
  45. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/process-arg.d.ts +8 -0
  46. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/process-node.d.ts +9 -0
  47. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/translate-dimensions.d.ts +10 -0
  48. package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-filters.d.ts +19 -7
  49. package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-measures.d.ts +13 -7
  50. package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-query.d.ts +7 -9
  51. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/types.d.ts +46 -0
  52. package/dist/packages/sdk-ui/src/analytics-composer/query/query-translator.d.ts +2 -2
  53. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +71 -10
  54. package/dist/packages/sdk-ui/src/analytics-composer/widget/chart-options/get-widget-options.d.ts +1 -1
  55. package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-code.d.ts +3 -3
  56. package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-props.d.ts +1 -1
  57. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +9 -4
  58. package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +2 -1
  59. package/dist/packages/sdk-ui/src/app/client-application.d.ts +4 -4
  60. package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +2 -2
  61. package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +2 -2
  62. package/dist/packages/sdk-ui/src/chart/helpers/use-chart-renderer-props.d.ts +1 -1
  63. package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +2 -2
  64. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap.d.ts +1 -1
  65. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +2 -2
  66. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +2 -0
  67. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +1 -1
  68. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +1 -1
  69. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +1 -1
  70. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +2 -2
  71. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +1 -1
  72. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +3 -3
  73. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +1 -1
  74. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +5 -9
  75. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +2 -2
  76. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +0 -2
  77. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +1 -1
  78. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +21 -4
  79. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +1 -2
  80. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +8 -8
  81. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-pagination.d.ts +23 -0
  82. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +1 -1
  83. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +2 -2
  84. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/tooltip.d.ts +1 -1
  85. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/y-axis.d.ts +1 -1
  86. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +1 -1
  87. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +1 -1
  88. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +2 -2
  89. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +1 -1
  90. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +2 -2
  91. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +1 -1
  92. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +2 -2
  93. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +1 -1
  94. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +1 -1
  95. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +1 -1
  96. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +2 -2
  97. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +1 -1
  98. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +1 -1
  99. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +1 -1
  100. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/types.d.ts +2 -2
  101. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +4 -4
  102. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +4 -4
  103. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -2
  104. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +6 -6
  105. package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +1 -1
  106. package/dist/packages/sdk-ui/src/chart/types.d.ts +1 -1
  107. package/dist/packages/sdk-ui/src/chart-data/advanced-analytics-data.d.ts +1 -1
  108. package/dist/packages/sdk-ui/src/chart-data/boxplot-data.d.ts +1 -1
  109. package/dist/packages/sdk-ui/src/chart-data/cartesian-data.d.ts +2 -2
  110. package/dist/packages/sdk-ui/src/chart-data/indicator-data.d.ts +1 -1
  111. package/dist/packages/sdk-ui/src/chart-data/range-data.d.ts +1 -1
  112. package/dist/packages/sdk-ui/src/chart-data/scatter-data.d.ts +1 -1
  113. package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +1 -1
  114. package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -3
  115. package/dist/packages/sdk-ui/src/chart-data-options/translate-boxplot-data-options.d.ts +1 -1
  116. package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +1 -1
  117. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +2 -2
  118. package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +1 -1
  119. package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts +2 -2
  120. package/dist/packages/sdk-ui/src/chart-data-processor/row-comparator.d.ts +1 -1
  121. package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +1 -1
  122. package/dist/packages/sdk-ui/src/chart-options-processor/apply-event-handlers.d.ts +2 -2
  123. package/dist/packages/sdk-ui/src/chart-options-processor/boxplot-chart-options.d.ts +2 -2
  124. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/cartesian-chart-options.d.ts +4 -4
  125. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +8 -8
  126. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-settings.d.ts +1 -1
  127. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-transformers.d.ts +5 -6
  128. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-spacing-calculator.d.ts +2 -2
  129. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +2 -2
  130. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/category-chart-options.d.ts +4 -4
  131. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +3 -3
  132. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +3 -3
  133. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +4 -4
  134. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +4 -4
  135. package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +9 -9
  136. package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +2 -2
  137. package/dist/packages/sdk-ui/src/chart-options-processor/defaults/cartesian.d.ts +3 -3
  138. package/dist/packages/sdk-ui/src/chart-options-processor/range-chart-options.d.ts +3 -3
  139. package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
  140. package/dist/packages/sdk-ui/src/chart-options-processor/stack-labels.d.ts +25 -0
  141. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
  142. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +3 -3
  143. package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +2 -2
  144. package/dist/packages/sdk-ui/src/chart-options-processor/tooltip.d.ts +1 -1
  145. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +17 -7
  146. package/dist/packages/sdk-ui/src/chart-options-processor/translations/base-design-options.d.ts +1 -1
  147. package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +1 -1
  148. package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +1 -1
  149. package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-series.d.ts +1 -1
  150. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +12 -7
  151. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +3 -3
  152. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +3 -3
  153. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +2 -2
  154. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +3 -3
  155. package/dist/packages/sdk-ui/src/chart-options-processor/translations/range/tooltip-range.d.ts +1 -1
  156. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-plot-options.d.ts +1 -1
  157. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-series.d.ts +3 -3
  158. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-tooltip.d.ts +1 -1
  159. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
  160. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +3 -3
  161. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-series.d.ts +1 -1
  162. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +2 -2
  163. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip.d.ts +1 -1
  164. package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +7 -7
  165. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
  166. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-options.d.ts +3 -3
  167. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-series.d.ts +2 -2
  168. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +1 -1
  169. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +1 -1
  170. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +9 -3
  171. package/dist/packages/sdk-ui/src/charts/indicator/chart/indicator.d.ts +4 -4
  172. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-data-options.d.ts +1 -1
  173. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/default-options.d.ts +1 -1
  174. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +1 -1
  175. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +1 -1
  176. package/dist/packages/sdk-ui/src/charts/indicator/indicator-render-options.d.ts +1 -1
  177. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/hooks/use-tooltip-handler.d.ts +2 -2
  178. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/scattermap.d.ts +4 -4
  179. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/location.d.ts +2 -2
  180. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/map.d.ts +1 -1
  181. package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/tooltip.d.ts +1 -1
  182. package/dist/packages/sdk-ui/src/charts/table/types.d.ts +1 -1
  183. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +1 -1
  184. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +1 -1
  185. package/dist/packages/sdk-ui/src/common/components/menu/context-menu/menu.d.ts +1 -1
  186. package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +1 -1
  187. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +1 -1
  188. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +1 -1
  189. package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +1 -1
  190. package/dist/packages/sdk-ui/src/common/hooks/use-tracking.d.ts +1 -1
  191. package/dist/packages/sdk-ui/src/common/icons/arrow-collapse-icon.d.ts +5 -0
  192. package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +1 -1
  193. package/dist/packages/sdk-ui/src/common-filters/common-filters-connector.d.ts +6 -4
  194. package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +2 -1
  195. package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +3 -3
  196. package/dist/packages/sdk-ui/src/common-filters/utils.d.ts +1 -1
  197. package/dist/packages/sdk-ui/src/custom-widgets-provider/custom-widgets-provider-adapter.d.ts +1 -1
  198. package/dist/packages/sdk-ui/src/custom-widgets-provider/use-execute-custom-widget-query.d.ts +2 -2
  199. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +5 -1
  200. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +1 -1
  201. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-columns.d.ts +5 -1
  202. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +2 -2
  203. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +1 -1
  204. package/dist/packages/sdk-ui/src/dashboard/components/horizontal-collapse.d.ts +2 -1
  205. package/dist/packages/sdk-ui/src/dashboard/components/toolbar/filter-toggle.d.ts +16 -0
  206. package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +1 -1
  207. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +1 -1
  208. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +3 -3
  209. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +1 -1
  210. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +2 -2
  211. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +1 -1
  212. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +4 -4
  213. package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +2 -1
  214. package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +3 -2
  215. package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +2 -2
  216. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
  217. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +13 -5
  218. package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +54 -11
  219. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/error-tracker.d.ts +2 -2
  220. package/dist/packages/sdk-ui/src/filters/components/common/basic-input.d.ts +1 -1
  221. package/dist/packages/sdk-ui/src/filters/components/common/date-range-field-button.d.ts +1 -1
  222. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +1 -1
  223. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +1 -1
  224. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -1
  225. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
  226. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
  227. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-display.d.ts +1 -1
  228. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +1 -1
  229. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +1 -1
  230. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +1 -1
  231. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +1 -1
  232. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +1 -1
  233. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +1 -1
  234. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +1 -1
  235. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/utils.d.ts +1 -1
  236. package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +1 -1
  237. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tile.d.ts +1 -1
  238. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tooltip.d.ts +1 -1
  239. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/tooltip-utils.d.ts +2 -2
  240. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +1 -1
  241. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +1 -1
  242. package/dist/packages/sdk-ui/src/filters/components/icons/arrow-icon.d.ts +1 -1
  243. package/dist/packages/sdk-ui/src/filters/components/icons/double-arrow-icon.d.ts +1 -1
  244. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
  245. package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +1 -1
  246. package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +15 -2
  247. package/dist/packages/sdk-ui/src/formulas/fetch-formula.d.ts +1 -1
  248. package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +2 -2
  249. package/dist/packages/sdk-ui/src/indicator-canvas.d.ts +2 -2
  250. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +3 -3
  251. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +9 -3
  252. package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +9 -1
  253. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +5 -5
  254. package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +6 -1
  255. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +2 -2
  256. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +1 -1
  257. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-persistence.d.ts +1 -1
  258. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +1 -1
  259. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +1 -1
  260. package/dist/packages/sdk-ui/src/models/hierarchy/get-hierarchy-models.d.ts +1 -1
  261. package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +1 -1
  262. package/dist/packages/sdk-ui/src/models/widget/get-widget-model.d.ts +2 -2
  263. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +4 -4
  264. package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -1
  265. package/dist/packages/sdk-ui/src/no-results-overlay/images/index.d.ts +1 -1
  266. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +1 -1
  267. package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +1 -1
  268. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
  269. package/dist/packages/sdk-ui/src/pivot-table/formatters/utils.d.ts +1 -1
  270. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/use-apply-pivot-table-cell-events.d.ts +1 -1
  271. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-get-pivot-table-query.d.ts +2 -2
  272. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +2 -2
  273. package/dist/packages/sdk-ui/src/pivot-table/sorting-utils.d.ts +1 -1
  274. package/dist/packages/sdk-ui/src/props.d.ts +9 -9
  275. package/dist/packages/sdk-ui/src/query/execute-query.d.ts +2 -2
  276. package/dist/packages/sdk-ui/src/query/query-result-date-formatting.d.ts +1 -1
  277. package/dist/packages/sdk-ui/src/query-execution/query-params-comparator.d.ts +1 -1
  278. package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +2 -2
  279. package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -1
  280. package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +2 -2
  281. package/dist/packages/sdk-ui/src/sisense-context/sisense-context-provider.d.ts +1 -1
  282. package/dist/packages/sdk-ui/src/sisense-context/sisense-context.d.ts +1 -1
  283. package/dist/packages/sdk-ui/src/sisense-context/sisense-query-client-provider.d.ts +1 -1
  284. package/dist/packages/sdk-ui/src/table/translations/design-options.d.ts +1 -1
  285. package/dist/packages/sdk-ui/src/themes/legacy-design-settings.d.ts +1 -1
  286. package/dist/packages/sdk-ui/src/themes/theme-loader.d.ts +1 -1
  287. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +2 -0
  288. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +4 -0
  289. package/dist/packages/sdk-ui/src/types.d.ts +131 -21
  290. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +2 -2
  291. package/dist/packages/sdk-ui/src/widget-by-id/translate-panel-color-format.d.ts +1 -1
  292. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +2 -2
  293. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-drilldown-options.d.ts +1 -1
  294. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +2 -2
  295. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +7 -3
  296. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +4 -4
  297. package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/use-buttons.d.ts +1 -1
  298. package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +1 -1
  299. package/dist/packages/sdk-ui/src/widgets/common/use-drilldown-core.d.ts +1 -1
  300. package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +3 -3
  301. package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +1 -1
  302. package/dist/{types-DhvOgfXa.cjs → types-CevYjGN4.cjs} +1 -1
  303. package/dist/{types-Dxieyr4A.js → types-DVAfvbpR.js} +1 -1
  304. package/dist/use-common-filters-BXdnB4GI.cjs +845 -0
  305. package/dist/{use-common-filters-DJyYvdev.js → use-common-filters-DIF4c8WP.js} +63679 -63533
  306. package/dist/widget-composer-BB5Jrgae.js +1430 -0
  307. package/dist/widget-composer-C0lZpwN6.cjs +428 -0
  308. package/package.json +9 -9
  309. package/dist/derive-chart-family-BauaWEEc.cjs +0 -170
  310. package/dist/execute-query-uQ2s1ZNz.cjs +0 -1
  311. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +0 -40
  312. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/index.d.ts +0 -2
  313. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +0 -3
  314. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +0 -33
  315. package/dist/packages/sdk-ui/src/index-typedoc.d.ts +0 -31
  316. package/dist/use-common-filters-Qj9249s0.cjs +0 -845
  317. package/dist/widget-composer-azihIMsw.js +0 -949
  318. package/dist/widget-composer-omIEhWNL.cjs +0 -428
  319. /package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-query-to-jaql.d.ts +0 -0
@@ -0,0 +1,170 @@
1
+ "use strict";var Cc=Object.defineProperty,wc=Object.defineProperties;var Sc=Object.getOwnPropertyDescriptors;var ho=Object.getOwnPropertySymbols;var Gn=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,ar=(c,k,F)=>k in c?Cc(c,k,{enumerable:!0,configurable:!0,writable:!0,value:F}):c[k]=F,Tt=(c,k)=>{for(var F in k||(k={}))Gn.call(k,F)&&ar(c,F,k[F]);if(ho)for(var F of ho(k))Wn.call(k,F)&&ar(c,F,k[F]);return c},Bt=(c,k)=>wc(c,Sc(k));var Te=(c,k)=>{var F={};for(var K in c)Gn.call(c,K)&&k.indexOf(K)<0&&(F[K]=c[K]);if(c!=null&&ho)for(var K of ho(c))k.indexOf(K)<0&&Wn.call(c,K)&&(F[K]=c[K]);return F};var lr=(c,k,F)=>ar(c,typeof k!="symbol"?k+"":k,F);const Rt=require("./execute-query-Xt9drS3G.cjs"),Mc=require("react/jsx-runtime"),Ne=require("react"),pa=require("react-dom/server");function da(c){const k=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const F in c)if(F!=="default"){const K=Object.getOwnPropertyDescriptor(c,F);Object.defineProperty(k,F,K.get?K:{enumerable:!0,get:()=>c[F]})}}return k.default=c,Object.freeze(k)}const Xi=da(Mc),Je=da(Ne);var Fi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Kr(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function Ac(c){if(c.__esModule)return c;var k=c.default;if(typeof k=="function"){var F=function K(){return this instanceof K?Reflect.construct(k,arguments,this.constructor):k.apply(this,arguments)};F.prototype=k.prototype}else F={};return Object.defineProperty(F,"__esModule",{value:!0}),Object.keys(c).forEach(function(K){var tt=Object.getOwnPropertyDescriptor(c,K);Object.defineProperty(F,K,tt.get?tt:{enumerable:!0,get:function(){return c[K]}})}),F}function Tc(){if(console&&console.warn){for(var c=arguments.length,k=new Array(c),F=0;F<c;F++)k[F]=arguments[F];typeof k[0]=="string"&&(k[0]=`react-i18next:: ${k[0]}`),console.warn(...k)}}const Xn={};function Mr(){for(var c=arguments.length,k=new Array(c),F=0;F<c;F++)k[F]=arguments[F];typeof k[0]=="string"&&Xn[k[0]]||(typeof k[0]=="string"&&(Xn[k[0]]=new Date),Tc(...k))}const ua=(c,k)=>()=>{if(c.isInitialized)k();else{const F=()=>{setTimeout(()=>{c.off("initialized",F)},0),k()};c.on("initialized",F)}};function Hn(c,k,F){c.loadNamespaces(k,ua(c,F))}function Yn(c,k,F,K){typeof F=="string"&&(F=[F]),F.forEach(tt=>{c.options.ns.indexOf(tt)<0&&c.options.ns.push(tt)}),c.loadLanguages(k,ua(c,K))}function kc(c,k){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const K=k.languages[0],tt=k.options?k.options.fallbackLng:!1,ot=k.languages[k.languages.length-1];if(K.toLowerCase()==="cimode")return!0;const nt=(st,ct)=>{const pt=k.services.backendConnector.state[`${st}|${ct}`];return pt===-1||pt===2};return F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&k.services.backendConnector.backend&&k.isLanguageChangingTo&&!nt(k.isLanguageChangingTo,c)?!1:!!(k.hasResourceBundle(K,c)||!k.services.backendConnector.backend||k.options.resources&&!k.options.partialBundledLanguages||nt(K,c)&&(!tt||nt(ot,c)))}function Pc(c,k){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!k.languages||!k.languages.length?(Mr("i18n.languages were undefined or empty",k.languages),!0):k.options.ignoreJSONStructure!==void 0?k.hasLoadedNamespace(c,{lng:F.lng,precheck:(tt,ot)=>{if(F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&tt.services.backendConnector.backend&&tt.isLanguageChangingTo&&!ot(tt.isLanguageChangingTo,c))return!1}}):kc(c,k,F)}const fa=Ne.createContext();class Lc{constructor(){this.usedNamespaces={}}addUsedNamespaces(k){k.forEach(F=>{this.usedNamespaces[F]||(this.usedNamespaces[F]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Ec=(c,k)=>{const F=Ne.useRef();return Ne.useEffect(()=>{F.current=c},[c,k]),F.current};function qr(c){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:F}=k,{i18n:K,defaultNS:tt}=Ne.useContext(fa)||{},ot=F||K||Rt.getI18n();if(ot&&!ot.reportNamespaces&&(ot.reportNamespaces=new Lc),!ot){Mr("You will need to pass in an i18next instance by using initReactI18next");const Z=(z,I)=>typeof I=="string"?I:I&&typeof I=="object"&&typeof I.defaultValue=="string"?I.defaultValue:Array.isArray(z)?z[z.length-1]:z,U=[Z,{},!1];return U.t=Z,U.i18n={},U.ready=!1,U}ot.options.react&&ot.options.react.wait!==void 0&&Mr("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const nt=Tt(Tt(Tt({},Rt.getDefaults()),ot.options.react),k),{useSuspense:st,keyPrefix:ct}=nt;let pt=tt||ot.options&&ot.options.defaultNS;pt=typeof pt=="string"?[pt]:pt||["translation"],ot.reportNamespaces.addUsedNamespaces&&ot.reportNamespaces.addUsedNamespaces(pt);const ut=(ot.isInitialized||ot.initializedStoreOnce)&&pt.every(Z=>Pc(Z,ot,nt));function ft(){return ot.getFixedT(k.lng||null,nt.nsMode==="fallback"?pt:pt[0],ct)}const[B,it]=Ne.useState(ft);let W=pt.join();k.lng&&(W=`${k.lng}${W}`);const R=Ec(W),H=Ne.useRef(!0);Ne.useEffect(()=>{const{bindI18n:Z,bindI18nStore:U}=nt;H.current=!0,!ut&&!st&&(k.lng?Yn(ot,k.lng,pt,()=>{H.current&&it(ft)}):Hn(ot,pt,()=>{H.current&&it(ft)})),ut&&R&&R!==W&&H.current&&it(ft);function z(){H.current&&it(ft)}return Z&&ot&&ot.on(Z,z),U&&ot&&ot.store.on(U,z),()=>{H.current=!1,Z&&ot&&Z.split(" ").forEach(I=>ot.off(I,z)),U&&ot&&U.split(" ").forEach(I=>ot.store.off(I,z))}},[ot,W]);const V=Ne.useRef(!0);Ne.useEffect(()=>{H.current&&!V.current&&it(ft),V.current=!1},[ot,ct]);const $=[B,ot,ut];if($.t=B,$.i18n=ot,$.ready=ut,ut||!ut&&!st)return $;throw new Promise(Z=>{k.lng?Yn(ot,k.lng,pt,()=>Z()):Hn(ot,pt,()=>Z())})}var Oc=!1;function Dc(c){if(c.sheet)return c.sheet;for(var k=0;k<document.styleSheets.length;k++)if(document.styleSheets[k].ownerNode===c)return document.styleSheets[k]}function jc(c){var k=document.createElement("style");return k.setAttribute("data-emotion",c.key),c.nonce!==void 0&&k.setAttribute("nonce",c.nonce),k.appendChild(document.createTextNode("")),k.setAttribute("data-s",""),k}var Ic=function(){function c(F){var K=this;this._insertTag=function(tt){var ot;K.tags.length===0?K.insertionPoint?ot=K.insertionPoint.nextSibling:K.prepend?ot=K.container.firstChild:ot=K.before:ot=K.tags[K.tags.length-1].nextSibling,K.container.insertBefore(tt,ot),K.tags.push(tt)},this.isSpeedy=F.speedy===void 0?!Oc:F.speedy,this.tags=[],this.ctr=0,this.nonce=F.nonce,this.key=F.key,this.container=F.container,this.prepend=F.prepend,this.insertionPoint=F.insertionPoint,this.before=null}var k=c.prototype;return k.hydrate=function(K){K.forEach(this._insertTag)},k.insert=function(K){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jc(this));var tt=this.tags[this.tags.length-1];if(this.isSpeedy){var ot=Dc(tt);try{ot.insertRule(K,ot.cssRules.length)}catch(nt){}}else tt.appendChild(document.createTextNode(K));this.ctr++},k.flush=function(){this.tags.forEach(function(K){var tt;return(tt=K.parentNode)==null?void 0:tt.removeChild(K)}),this.tags=[],this.ctr=0},c}(),Se="-ms-",jo="-moz-",ie="-webkit-",ga="comm",Jr="rule",Qr="decl",Nc="@import",ma="@keyframes",Bc="@layer",_c=Math.abs,Ko=String.fromCharCode,Rc=Object.assign;function zc(c,k){return be(c,0)^45?(((k<<2^be(c,0))<<2^be(c,1))<<2^be(c,2))<<2^be(c,3):0}function ya(c){return c.trim()}function Fc(c,k){return(c=k.exec(c))?c[0]:c}function oe(c,k,F){return c.replace(k,F)}function Ar(c,k){return c.indexOf(k)}function be(c,k){return c.charCodeAt(k)|0}function Hi(c,k,F){return c.slice(k,F)}function Ye(c){return c.length}function tn(c){return c.length}function co(c,k){return k.push(c),c}function Gc(c,k){return c.map(k).join("")}var qo=1,Mi=1,va=0,Le=0,fe=0,Pi="";function Jo(c,k,F,K,tt,ot,nt){return{value:c,root:k,parent:F,type:K,props:tt,children:ot,line:qo,column:Mi,length:nt,return:""}}function Oi(c,k){return Rc(Jo("",null,null,"",null,null,0),c,{length:-c.length},k)}function Wc(){return fe}function Xc(){return fe=Le>0?be(Pi,--Le):0,Mi--,fe===10&&(Mi=1,qo--),fe}function je(){return fe=Le<va?be(Pi,Le++):0,Mi++,fe===10&&(Mi=1,qo++),fe}function Ze(){return be(Pi,Le)}function To(){return Le}function eo(c,k){return Hi(Pi,c,k)}function Yi(c){switch(c){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ba(c){return qo=Mi=1,va=Ye(Pi=c),Le=0,[]}function xa(c){return Pi="",c}function ko(c){return ya(eo(Le-1,Tr(c===91?c+2:c===40?c+1:c)))}function Hc(c){for(;(fe=Ze())&&fe<33;)je();return Yi(c)>2||Yi(fe)>3?"":" "}function Yc(c,k){for(;--k&&je()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return eo(c,To()+(k<6&&Ze()==32&&je()==32))}function Tr(c){for(;je();)switch(fe){case c:return Le;case 34:case 39:c!==34&&c!==39&&Tr(fe);break;case 40:c===41&&Tr(c);break;case 92:je();break}return Le}function Uc(c,k){for(;je()&&c+fe!==57;)if(c+fe===84&&Ze()===47)break;return"/*"+eo(k,Le-1)+"*"+Ko(c===47?c:je())}function Vc(c){for(;!Yi(Ze());)je();return eo(c,Le)}function $c(c){return xa(Po("",null,null,null,[""],c=ba(c),0,[0],c))}function Po(c,k,F,K,tt,ot,nt,st,ct){for(var pt=0,ut=0,ft=nt,B=0,it=0,W=0,R=1,H=1,V=1,$=0,Z="",U=tt,z=ot,I=K,E=Z;H;)switch(W=$,$=je()){case 40:if(W!=108&&be(E,ft-1)==58){Ar(E+=oe(ko($),"&","&\f"),"&\f")!=-1&&(V=-1);break}case 34:case 39:case 91:E+=ko($);break;case 9:case 10:case 13:case 32:E+=Hc(W);break;case 92:E+=Yc(To()-1,7);continue;case 47:switch(Ze()){case 42:case 47:co(Zc(Uc(je(),To()),k,F),ct);break;default:E+="/"}break;case 123*R:st[pt++]=Ye(E)*V;case 125*R:case 59:case 0:switch($){case 0:case 125:H=0;case 59+ut:V==-1&&(E=oe(E,/\f/g,"")),it>0&&Ye(E)-ft&&co(it>32?Vn(E+";",K,F,ft-1):Vn(oe(E," ","")+";",K,F,ft-2),ct);break;case 59:E+=";";default:if(co(I=Un(E,k,F,pt,ut,tt,st,Z,U=[],z=[],ft),ot),$===123)if(ut===0)Po(E,k,I,I,U,ot,ft,st,z);else switch(B===99&&be(E,3)===110?100:B){case 100:case 108:case 109:case 115:Po(c,I,I,K&&co(Un(c,I,I,0,0,tt,st,Z,tt,U=[],ft),z),tt,z,ft,st,K?U:z);break;default:Po(E,I,I,I,[""],z,0,st,z)}}pt=ut=it=0,R=V=1,Z=E="",ft=nt;break;case 58:ft=1+Ye(E),it=W;default:if(R<1){if($==123)--R;else if($==125&&R++==0&&Xc()==125)continue}switch(E+=Ko($),$*R){case 38:V=ut>0?1:(E+="\f",-1);break;case 44:st[pt++]=(Ye(E)-1)*V,V=1;break;case 64:Ze()===45&&(E+=ko(je())),B=Ze(),ut=ft=Ye(Z=E+=Vc(To())),$++;break;case 45:W===45&&Ye(E)==2&&(R=0)}}return ot}function Un(c,k,F,K,tt,ot,nt,st,ct,pt,ut){for(var ft=tt-1,B=tt===0?ot:[""],it=tn(B),W=0,R=0,H=0;W<K;++W)for(var V=0,$=Hi(c,ft+1,ft=_c(R=nt[W])),Z=c;V<it;++V)(Z=ya(R>0?B[V]+" "+$:oe($,/&\f/g,B[V])))&&(ct[H++]=Z);return Jo(c,k,F,tt===0?Jr:st,ct,pt,ut)}function Zc(c,k,F){return Jo(c,k,F,ga,Ko(Wc()),Hi(c,2,-2),0)}function Vn(c,k,F,K){return Jo(c,k,F,Qr,Hi(c,0,K),Hi(c,K+1,-1),K)}function wi(c,k){for(var F="",K=tn(c),tt=0;tt<K;tt++)F+=k(c[tt],tt,c,k)||"";return F}function Kc(c,k,F,K){switch(c.type){case Bc:if(c.children.length)break;case Nc:case Qr:return c.return=c.return||c.value;case ga:return"";case ma:return c.return=c.value+"{"+wi(c.children,K)+"}";case Jr:c.value=c.props.join(",")}return Ye(F=wi(c.children,K))?c.return=c.value+"{"+F+"}":""}function qc(c){var k=tn(c);return function(F,K,tt,ot){for(var nt="",st=0;st<k;st++)nt+=c[st](F,K,tt,ot)||"";return nt}}function Jc(c){return function(k){k.root||(k=k.return)&&c(k)}}function Ca(c){var k=Object.create(null);return function(F){return k[F]===void 0&&(k[F]=c(F)),k[F]}}var Qc=function(k,F,K){for(var tt=0,ot=0;tt=ot,ot=Ze(),tt===38&&ot===12&&(F[K]=1),!Yi(ot);)je();return eo(k,Le)},tp=function(k,F){var K=-1,tt=44;do switch(Yi(tt)){case 0:tt===38&&Ze()===12&&(F[K]=1),k[K]+=Qc(Le-1,F,K);break;case 2:k[K]+=ko(tt);break;case 4:if(tt===44){k[++K]=Ze()===58?"&\f":"",F[K]=k[K].length;break}default:k[K]+=Ko(tt)}while(tt=je());return k},ep=function(k,F){return xa(tp(ba(k),F))},$n=new WeakMap,ip=function(k){if(!(k.type!=="rule"||!k.parent||k.length<1)){for(var F=k.value,K=k.parent,tt=k.column===K.column&&k.line===K.line;K.type!=="rule";)if(K=K.parent,!K)return;if(!(k.props.length===1&&F.charCodeAt(0)!==58&&!$n.get(K))&&!tt){$n.set(k,!0);for(var ot=[],nt=ep(F,ot),st=K.props,ct=0,pt=0;ct<nt.length;ct++)for(var ut=0;ut<st.length;ut++,pt++)k.props[pt]=ot[ct]?nt[ct].replace(/&\f/g,st[ut]):st[ut]+" "+nt[ct]}}},op=function(k){if(k.type==="decl"){var F=k.value;F.charCodeAt(0)===108&&F.charCodeAt(2)===98&&(k.return="",k.value="")}};function wa(c,k){switch(zc(c,k)){case 5103:return ie+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+c+jo+c+Se+c+c;case 6828:case 4268:return ie+c+Se+c+c;case 6165:return ie+c+Se+"flex-"+c+c;case 5187:return ie+c+oe(c,/(\w+).+(:[^]+)/,ie+"box-$1$2"+Se+"flex-$1$2")+c;case 5443:return ie+c+Se+"flex-item-"+oe(c,/flex-|-self/,"")+c;case 4675:return ie+c+Se+"flex-line-pack"+oe(c,/align-content|flex-|-self/,"")+c;case 5548:return ie+c+Se+oe(c,"shrink","negative")+c;case 5292:return ie+c+Se+oe(c,"basis","preferred-size")+c;case 6060:return ie+"box-"+oe(c,"-grow","")+ie+c+Se+oe(c,"grow","positive")+c;case 4554:return ie+oe(c,/([^-])(transform)/g,"$1"+ie+"$2")+c;case 6187:return oe(oe(oe(c,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),c,"")+c;case 5495:case 3959:return oe(c,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return oe(oe(c,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+Se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+c+c;case 4095:case 3583:case 4068:case 2532:return oe(c,/(.+)-inline(.+)/,ie+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ye(c)-1-k>6)switch(be(c,k+1)){case 109:if(be(c,k+4)!==45)break;case 102:return oe(c,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+jo+(be(c,k+3)==108?"$3":"$2-$3"))+c;case 115:return~Ar(c,"stretch")?wa(oe(c,"stretch","fill-available"),k)+c:c}break;case 4949:if(be(c,k+1)!==115)break;case 6444:switch(be(c,Ye(c)-3-(~Ar(c,"!important")&&10))){case 107:return oe(c,":",":"+ie)+c;case 101:return oe(c,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(be(c,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Se+"$2box$3")+c}break;case 5936:switch(be(c,k+11)){case 114:return ie+c+Se+oe(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return ie+c+Se+oe(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return ie+c+Se+oe(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return ie+c+Se+c+c}return c}var rp=function(k,F,K,tt){if(k.length>-1&&!k.return)switch(k.type){case Qr:k.return=wa(k.value,k.length);break;case ma:return wi([Oi(k,{value:oe(k.value,"@","@"+ie)})],tt);case Jr:if(k.length)return Gc(k.props,function(ot){switch(Fc(ot,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([Oi(k,{props:[oe(ot,/:(read-\w+)/,":"+jo+"$1")]})],tt);case"::placeholder":return wi([Oi(k,{props:[oe(ot,/:(plac\w+)/,":"+ie+"input-$1")]}),Oi(k,{props:[oe(ot,/:(plac\w+)/,":"+jo+"$1")]}),Oi(k,{props:[oe(ot,/:(plac\w+)/,Se+"input-$1")]})],tt)}return""})}},np=[rp],Sa=function(k){var F=k.key;if(F==="css"){var K=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(K,function(R){var H=R.getAttribute("data-emotion");H.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var tt=k.stylisPlugins||np,ot={},nt,st=[];nt=k.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+F+' "]'),function(R){for(var H=R.getAttribute("data-emotion").split(" "),V=1;V<H.length;V++)ot[H[V]]=!0;st.push(R)});var ct,pt=[ip,op];{var ut,ft=[Kc,Jc(function(R){ut.insert(R)})],B=qc(pt.concat(tt,ft)),it=function(H){return wi($c(H),B)};ct=function(H,V,$,Z){ut=$,it(H?H+"{"+V.styles+"}":V.styles),Z&&(W.inserted[V.name]=!0)}}var W={key:F,sheet:new Ic({key:F,container:nt,nonce:k.nonce,speedy:k.speedy,prepend:k.prepend,insertionPoint:k.insertionPoint}),nonce:k.nonce,inserted:ot,registered:{},insert:ct};return W.sheet.hydrate(st),W},sp=!0;function Ma(c,k,F){var K="";return F.split(" ").forEach(function(tt){c[tt]!==void 0?k.push(c[tt]+";"):tt&&(K+=tt+" ")}),K}var en=function(k,F,K){var tt=k.key+"-"+F.name;(K===!1||sp===!1)&&k.registered[tt]===void 0&&(k.registered[tt]=F.styles)},Aa=function(k,F,K){en(k,F,K);var tt=k.key+"-"+F.name;if(k.inserted[F.name]===void 0){var ot=F;do k.insert(F===ot?"."+tt:"",ot,k.sheet,!0),ot=ot.next;while(ot!==void 0)}};function ap(c){for(var k=0,F,K=0,tt=c.length;tt>=4;++K,tt-=4)F=c.charCodeAt(K)&255|(c.charCodeAt(++K)&255)<<8|(c.charCodeAt(++K)&255)<<16|(c.charCodeAt(++K)&255)<<24,F=(F&65535)*1540483477+((F>>>16)*59797<<16),F^=F>>>24,k=(F&65535)*1540483477+((F>>>16)*59797<<16)^(k&65535)*1540483477+((k>>>16)*59797<<16);switch(tt){case 3:k^=(c.charCodeAt(K+2)&255)<<16;case 2:k^=(c.charCodeAt(K+1)&255)<<8;case 1:k^=c.charCodeAt(K)&255,k=(k&65535)*1540483477+((k>>>16)*59797<<16)}return k^=k>>>13,k=(k&65535)*1540483477+((k>>>16)*59797<<16),((k^k>>>15)>>>0).toString(36)}var lp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hp=!1,cp=/[A-Z]|^ms/g,pp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ta=function(k){return k.charCodeAt(1)===45},Zn=function(k){return k!=null&&typeof k!="boolean"},hr=Ca(function(c){return Ta(c)?c:c.replace(cp,"-$&").toLowerCase()}),Kn=function(k,F){switch(k){case"animation":case"animationName":if(typeof F=="string")return F.replace(pp,function(K,tt,ot){return Ue={name:tt,styles:ot,next:Ue},tt})}return lp[k]!==1&&!Ta(k)&&typeof F=="number"&&F!==0?F+"px":F},dp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ui(c,k,F){if(F==null)return"";var K=F;if(K.__emotion_styles!==void 0)return K;switch(typeof F){case"boolean":return"";case"object":{var tt=F;if(tt.anim===1)return Ue={name:tt.name,styles:tt.styles,next:Ue},tt.name;var ot=F;if(ot.styles!==void 0){var nt=ot.next;if(nt!==void 0)for(;nt!==void 0;)Ue={name:nt.name,styles:nt.styles,next:Ue},nt=nt.next;var st=ot.styles+";";return st}return up(c,k,F)}case"function":{if(c!==void 0){var ct=Ue,pt=F(c);return Ue=ct,Ui(c,k,pt)}break}}var ut=F;if(k==null)return ut;var ft=k[ut];return ft!==void 0?ft:ut}function up(c,k,F){var K="";if(Array.isArray(F))for(var tt=0;tt<F.length;tt++)K+=Ui(c,k,F[tt])+";";else for(var ot in F){var nt=F[ot];if(typeof nt!="object"){var st=nt;k!=null&&k[st]!==void 0?K+=ot+"{"+k[st]+"}":Zn(st)&&(K+=hr(ot)+":"+Kn(ot,st)+";")}else{if(ot==="NO_COMPONENT_SELECTOR"&&hp)throw new Error(dp);if(Array.isArray(nt)&&typeof nt[0]=="string"&&(k==null||k[nt[0]]===void 0))for(var ct=0;ct<nt.length;ct++)Zn(nt[ct])&&(K+=hr(ot)+":"+Kn(ot,nt[ct])+";");else{var pt=Ui(c,k,nt);switch(ot){case"animation":case"animationName":{K+=hr(ot)+":"+pt+";";break}default:K+=ot+"{"+pt+"}"}}}}return K}var qn=/label:\s*([^\s;{]+)\s*(;|$)/g,Ue;function ka(c,k,F){if(c.length===1&&typeof c[0]=="object"&&c[0]!==null&&c[0].styles!==void 0)return c[0];var K=!0,tt="";Ue=void 0;var ot=c[0];if(ot==null||ot.raw===void 0)K=!1,tt+=Ui(F,k,ot);else{var nt=ot;tt+=nt[0]}for(var st=1;st<c.length;st++)if(tt+=Ui(F,k,c[st]),K){var ct=ot;tt+=ct[st]}qn.lastIndex=0;for(var pt="",ut;(ut=qn.exec(tt))!==null;)pt+="-"+ut[1];var ft=ap(tt)+pt;return{name:ft,styles:tt,next:Ue}}const fp=2e4,gp="system",on="#5B6372",mp="#F4F4F8",yp="#FA5656",rn="N\\A",vp="N/A";function Pa(c){if(c===null||c===!0||c===!1)return NaN;var k=Number(c);return isNaN(k)?k:k<0?Math.ceil(k):Math.floor(k)}function La(c,k){if(k.length<c)throw new TypeError(c+" argument"+(c>1?"s":"")+" required, but only "+k.length+" present")}var Ea=6e4,Oa=36e5;function bp(c,k){var F;La(1,arguments);var K=Pa((F=void 0)!==null&&F!==void 0?F:2);if(K!==2&&K!==1&&K!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof c=="string"||Object.prototype.toString.call(c)==="[object String]"))return new Date(NaN);var tt=Sp(c),ot;if(tt.date){var nt=Mp(tt.date,K);ot=Ap(nt.restDateString,nt.year)}if(!ot||isNaN(ot.getTime()))return new Date(NaN);var st=ot.getTime(),ct=0,pt;if(tt.time&&(ct=Tp(tt.time),isNaN(ct)))return new Date(NaN);if(tt.timezone){if(pt=kp(tt.timezone),isNaN(pt))return new Date(NaN)}else{var ut=new Date(st+ct),ft=new Date(0);return ft.setFullYear(ut.getUTCFullYear(),ut.getUTCMonth(),ut.getUTCDate()),ft.setHours(ut.getUTCHours(),ut.getUTCMinutes(),ut.getUTCSeconds(),ut.getUTCMilliseconds()),ft}return new Date(st+ct+pt)}var po={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},xp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Cp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,wp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Sp(c){var k={},F=c.split(po.dateTimeDelimiter),K;if(F.length>2)return k;if(/:/.test(F[0])?K=F[0]:(k.date=F[0],K=F[1],po.timeZoneDelimiter.test(k.date)&&(k.date=c.split(po.timeZoneDelimiter)[0],K=c.substr(k.date.length,c.length))),K){var tt=po.timezone.exec(K);tt?(k.time=K.replace(tt[1],""),k.timezone=tt[1]):k.time=K}return k}function Mp(c,k){var F=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+k)+"})|(\\d{2}|[+-]\\d{"+(2+k)+"})$)"),K=c.match(F);if(!K)return{year:NaN,restDateString:""};var tt=K[1]?parseInt(K[1]):null,ot=K[2]?parseInt(K[2]):null;return{year:ot===null?tt:ot*100,restDateString:c.slice((K[1]||K[2]).length)}}function Ap(c,k){if(k===null)return new Date(NaN);var F=c.match(xp);if(!F)return new Date(NaN);var K=!!F[4],tt=Di(F[1]),ot=Di(F[2])-1,nt=Di(F[3]),st=Di(F[4]),ct=Di(F[5])-1;if(K)return Dp(k,st,ct)?Pp(k,st,ct):new Date(NaN);var pt=new Date(0);return!Ep(k,ot,nt)||!Op(k,tt)?new Date(NaN):(pt.setUTCFullYear(k,ot,Math.max(tt,nt)),pt)}function Di(c){return c?parseInt(c):1}function Tp(c){var k=c.match(Cp);if(!k)return NaN;var F=cr(k[1]),K=cr(k[2]),tt=cr(k[3]);return jp(F,K,tt)?F*Oa+K*Ea+tt*1e3:NaN}function cr(c){return c&&parseFloat(c.replace(",","."))||0}function kp(c){if(c==="Z")return 0;var k=c.match(wp);if(!k)return 0;var F=k[1]==="+"?-1:1,K=parseInt(k[2]),tt=k[3]&&parseInt(k[3])||0;return Ip(K,tt)?F*(K*Oa+tt*Ea):NaN}function Pp(c,k,F){var K=new Date(0);K.setUTCFullYear(c,0,4);var tt=K.getUTCDay()||7,ot=(k-1)*7+F+1-tt;return K.setUTCDate(K.getUTCDate()+ot),K}var Lp=[31,null,31,30,31,30,31,31,30,31,30,31];function Da(c){return c%400===0||c%4===0&&c%100!==0}function Ep(c,k,F){return k>=0&&k<=11&&F>=1&&F<=(Lp[k]||(Da(c)?29:28))}function Op(c,k){return k>=1&&k<=(Da(c)?366:365)}function Dp(c,k,F){return k>=1&&k<=53&&F>=0&&F<=6}function jp(c,k,F){return c===24?k===0&&F===0:F>=0&&F<60&&k>=0&&k<60&&c>=0&&c<25}function Ip(c,k){return k>=0&&k<=59}var Np=/\s/;function Bp(c){for(var k=c.length;k--&&Np.test(c.charAt(k)););return k}var _p=/^\s+/;function ja(c){return c&&c.slice(0,Bp(c)+1).replace(_p,"")}var Jn=NaN,Rp=/^[-+]0x[0-9a-f]+$/i,zp=/^0b[01]+$/i,Fp=/^0o[0-7]+$/i,Gp=parseInt;function nn(c){if(typeof c=="number")return c;if(Rt.isSymbol(c))return Jn;if(Rt.isObject(c)){var k=typeof c.valueOf=="function"?c.valueOf():c;c=Rt.isObject(k)?k+"":k}if(typeof c!="string")return c===0?c:+c;c=ja(c);var F=zp.test(c);return F||Fp.test(c)?Gp(c.slice(2),F?2:8):Rp.test(c)?Jn:+c}var Qn=1/0,Wp=17976931348623157e292;function Ia(c){if(!c)return c===0?c:0;if(c=nn(c),c===Qn||c===-Qn){var k=c<0?-1:1;return k*Wp}return c===c?c:0}function sn(c){const k=/([+-]\d{2}:?\d{2}|Z)$/i.test(c);return bp(k?c:c+"Z")}var Xp=function(k){return k()},Hp=Je[`useInsertionEffect${Math.random()}`.slice(0,18)]?Je[`useInsertionEffect${Math.random()}`.slice(0,18)]:!1,Na=Hp||Xp,Yp=!1,Ba=Je.createContext(typeof HTMLElement!="undefined"?Sa({key:"css"}):null),Up=Ba.Provider,_a=function(k){return Ne.forwardRef(function(F,K){var tt=Ne.useContext(Ba);return k(F,tt,K)})},Ra=Je.createContext({}),io={}.hasOwnProperty,kr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",an=function(k,F){var K={};for(var tt in F)io.call(F,tt)&&(K[tt]=F[tt]);return K[kr]=k,K},Vp=function(k){var F=k.cache,K=k.serialized,tt=k.isStringTag;return en(F,K,tt),Na(function(){return Aa(F,K,tt)}),null},$p=_a(function(c,k,F){var K=c.css;typeof K=="string"&&k.registered[K]!==void 0&&(K=k.registered[K]);var tt=c[kr],ot=[K],nt="";typeof c.className=="string"?nt=Ma(k.registered,ot,c.className):c.className!=null&&(nt=c.className+" ");var st=ka(ot,void 0,Je.useContext(Ra));nt+=k.key+"-"+st.name;var ct={};for(var pt in c)io.call(c,pt)&&pt!=="css"&&pt!==kr&&!Yp&&(ct[pt]=c[pt]);return ct.className=nt,F&&(ct.ref=F),Je.createElement(Je.Fragment,null,Je.createElement(Vp,{cache:k,serialized:st,isStringTag:typeof tt=="string"}),Je.createElement(tt,ct))}),ln=$p,za=Xi.Fragment,se=function(k,F,K){return io.call(F,"css")?Xi.jsx(ln,an(k,F),K):Xi.jsx(k,F,K)},ai=function(k,F,K){return io.call(F,"css")?Xi.jsxs(ln,an(k,F),K):Xi.jsxs(k,F,K)};const Fa=["polar"],hn=["line","area","bar","column",...Fa],cn=["pie","funnel","treemap","sunburst"],pn=["scatter"],Ga=["table"],Wa=["indicator"],dn=["boxplot"],Xa=["areamap"],Zp=["image"],Ha=["scattermap"],Ya=["calendar-heatmap"],un=["arearange"],Ua=c=>hn.find(k=>k===c)!==void 0,Va=c=>cn.find(k=>k===c)!==void 0,$a=c=>pn.find(k=>k===c)!==void 0,Za=c=>Ha.find(k=>k===c)!==void 0,Ka=c=>Wa.find(k=>k===c)!==void 0,qa=c=>Fa.find(k=>k===c)!==void 0,Kp=c=>Ga.find(k=>k===c)!==void 0,Ja=c=>dn.find(k=>k===c)!==void 0,Qa=c=>Xa.find(k=>k===c)!==void 0,qp=c=>un.find(k=>k===c)!==void 0,Jp=c=>Ya.find(k=>k===c)!==void 0,Qp=[...hn,...cn,...pn,...Ga,...Wa,...dn,...Xa,...Zp,...Ha,...Ya,...un];function fn(c){return c===void 0}const Io=(c,k)=>Object.assign(Object.create(c),k),td=(c,k)=>Object.assign(Object.create(Object.getPrototypeOf(c)),c,k),oo=c=>{if(mn(c)){const k=c,{column:F}=k,K=Te(k,["column"]);return{column:F,style:K}}return{column:c,style:{}}};function qe(c){const k="column"in c?c.column:c,F="aggregation"in k&&!!k.aggregation,K="context"in k&&!!k.context,tt="formula"in k&&!!k.formula;return F||K||tt?!0:!("type"in k)}const xe=c=>{if(!c)return"";const{column:k,name:F}=c;return F||("title"in k&&k.title?k.title:k.name)},gn=({column:c,granularity:k})=>k||c.granularity||Rt.DateLevels.Years,ed=c=>{const{column:k}=oo(c);return k},id=c=>{const{column:k}=oo(c);return k};function mn(c){return"column"in c&&c.column!==void 0}function od(c){return!("column"in c)}function tl(c,k){var ot;const{column:F,style:K}=oo(c),tt=Bt(Tt(Tt({},k),K),{column:F});return Rt.isDatetime(F.type)&&fn(tt.dateFormat)&&(tt.dateFormat=(ot=F==null?void 0:F.getFormat)==null?void 0:ot.call(F)),tt}function el(c,k){var tt,ot;const{column:F,style:K}=oo(c);return Bt(Tt(Tt({},k),K),{column:Io(F,{title:(tt=F.title)!=null?tt:F.name,aggregation:(ot=F.aggregation)!=null?ot:"sum"}),enabled:!0})}function rd(c,k){return qe(c)?el(c,k):tl(c,k)}const Vi=(c,k)=>{const F=!c||c==="";let K,tt,ot;return Rt.isNumber(k)?(K=parseFloat(c),tt=isNaN(K)):Rt.isDatetime(k)?c===rn?(K=c,tt=!0):(K=sn(c).valueOf(),tt=isNaN(K)):(K=c,ot=c==null?void 0:c.toLowerCase(),tt=!1),Tt({value:K,valueUndefined:F,valueIsNaN:tt},ot&&{lowercaseValue:ot})};function ts(c,k){const F=Rt.isObject(c)?c:{displayValue:c==null?void 0:c.toString()};return F.compareValue||(F.compareValue=Vi(F.displayValue,k)),F}var nd=function(c){return c[c.ASC=1]="ASC",c[c.DESC=-1]="DESC",c[c.NONE=0]="NONE",c}({});function il(c,k,F=1,K="string"){const tt=ts(c,K),ot=ts(k,K),nt=tt.compareValue,st=ot.compareValue;if(nt.valueUndefined&&st.valueUndefined)return 0;if(nt.valueUndefined)return 1;if(st.valueUndefined)return-1;if(nt.valueIsNaN&&st.valueIsNaN)return 0;if(nt.valueIsNaN)return 1;if(st.valueIsNaN)return-1;const ct=nt.lowercaseValue,pt=st.lowercaseValue;if(ct!==void 0&&pt!==void 0){if(ct<pt)return-1*F;if(ct>pt)return 1*F}return nt.value<st.value?-1*F:nt.value>st.value?1*F:0}class ol{constructor(k){this.columns=[],this.columns=k}compare(k,F){for(let K=0;K<this.columns.length;K++){const tt=this.columns[K],ot=k[tt.index],nt=F[tt.index],st=tt.direction||1,ct=il(ot,nt,st,tt.type);if(ct!==0)return ct}return 0}}const rl=c=>c instanceof Object&&"data"in c,sd=c=>c.rows.length===0,yn="$rownum",ad=c=>{let k=0;const F=c.rows.map(tt=>{const ot=c.columns.map((nt,st)=>{var ft;const ct=tt[st];if(rl(ct)){let B=ct.data.toString();if(Rt.isDatetime(nt.type)){const it="1111-11-11T";B.startsWith(it)&&(B=B.replace(it,"1970-01-01T"))}return Tt(Tt({rawValue:ct.data,displayValue:(ft=ct.text)!=null?ft:B,compareValue:Vi(B,nt.type)},ct.blur!==void 0?{blur:ct.blur}:{}),ct.color?{color:ct.color}:{})}let pt,ut;return Rt.isDatetime(nt.type)&&(ct===rn?(pt={value:ct,valueUndefined:!1,valueIsNaN:!0},ut=ct):(pt=Vi(`${ct}`,nt.type),ut=new Date(pt.value).toISOString())),{rawValue:ut!=null?ut:ct,displayValue:`${ct!=null?ct:""}`,compareValue:pt}});return k++,ot.push({displayValue:`${k}`,rawValue:k}),ot}),K=c.columns.map((tt,ot)=>({name:tt.name,type:tt.type,index:ot,direction:0}));return K.push({name:yn,type:"number",index:K.length,direction:0}),{columns:K,rows:F}};class ld{constructor(k){this.data=k}getStat(k){switch(k){case"count":return this.getCount();case"countdistinct":return this.getCountDistinct()}return NaN}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((k,F,K)=>K.indexOf(k)===F).length}}class es{constructor(k){this.data=k}getStat(k){switch(k){case"sum":return this.getSum();case"max":return this.getMax();case"min":return this.getMin();case"count":return this.getCount();case"countdistinct":return this.getCountDistinct();case"avg":case"mean":case"average":return this.getAverage();case"var":case"variance":return this.getVariance();case"stddev":return this.getStdDev()}return NaN}getSum(){if(this.data.length===0)return NaN;if(this.sum!=null)return this.sum;this.sum=0;for(const k of this.data)this.sum+=k;return this.sum}getMax(){if(this.data.length===0)return NaN;if(this.max)return this.max;if(this.data.length<=0)return NaN;this.max=this.data[0];for(const k of this.data)k>this.max&&(this.max=k);return this.max}getMin(){if(this.data.length===0)return NaN;if(this.min)return this.min;if(this.data.length<=0)return NaN;this.min=this.data[0];for(const k of this.data)k<this.min&&(this.min=k);return this.min}getMean(){return this.getAverage()}getAverage(){return this.data.length===0?NaN:this.avg?this.avg:(this.avg=this.getSum()/this.data.length,this.avg)}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((k,F,K)=>K.indexOf(k)===F).length}getVariance(){if(this.variance===void 0)if(this.data.length===0)this.variance=NaN;else if(this.data.length===1)this.variance=0;else{const k=this.getMean();this.variance=this.data.reduce((F,K)=>F.concat(Ft(K-k,2)),[]).reduce((F,K)=>F+K,0)/(this.data.length-1)}return this.variance}getStdDev(){return this.data.length===0?NaN:this.stddev!=null?this.stddev:(this.stddev=Math.sqrt(this.getVariance()),this.stddev)}}const nl=(c,k)=>c.slice(0).sort((F,K)=>k.compare(F,K)),vn=(c,k)=>{if(!(c&&c.length>0))return[];const F=new ol(k),K=nl(c,F);let tt=[];const ot=[];let nt=K[0];for(const st of Array.from(K))F.compare(st,nt)!==0&&(ot.push(tt),tt=[]),tt.push(st),nt=st;return ot.push(tt),ot},hd=(c,k)=>{var K,tt;const F=[];for(const ot of k){let nt;const st=ot.column,{aggFunc:ct}=ot,pt=c.filter(B=>!!B[st.index]&&B[st.index].displayValue!==""),ut=(tt=(K=pt.find(B=>{var it;return B!==void 0&&((it=B==null?void 0:B[st.index])==null?void 0:it.color)}))==null?void 0:K[st.index])==null?void 0:tt.color,ft=pt.some(B=>B[st.index].blur);if(Rt.isDatetime(st.type)){const B=pt.map(it=>sn(it[st.index].displayValue).valueOf());nt=new es(B).getStat(ct)}else if(Rt.isNumber(st.type)){const B=pt.map(it=>parseFloat(it[st.index].displayValue));nt=new es(B).getStat(ct)}else{const B=pt.map(it=>it[st.index].displayValue);nt=new ld(B).getStat(ct)}F.push(Tt(Tt({displayValue:`${nt}`},ut&&{color:ut}),ft&&{blur:ft}))}return F},sl=(c,k)=>{if(xn(c))return{columns:[],rows:[]};const F=new ol(k);return{columns:c.columns,rows:nl(c.rows,F)}},al=(c,k,F)=>{if(xn(c))return{rows:[],columns:[]};const K={name:"n/a",type:"n/a",index:-1,direction:0},tt=F.map(pt=>({aggFunc:pt.agg,aggName:pt.title,column:ni(c,pt.column)||K})).filter(pt=>pt.column.index!==-1),ot=vn(c.rows,k),nt=tt.map(pt=>pt.aggName),st=[];for(const pt of ot){const ut=Li(pt[0],k),ft=hd(pt,tt),B=ut.slice(0).concat(ft);st.push(B)}const ct=k.slice(0).concat(nt.map(pt=>({name:pt,type:"number",index:0,direction:0})));return{rows:st,columns:ct.map((pt,ut)=>Bt(Tt({},pt),{index:ut}))}},ni=(c,k)=>c.columns.find(F=>F.name===k),$i=(c,k)=>{const F={name:"foo",type:"string",index:-1,direction:0};return k.map(K=>ni(c,K)||F).filter(K=>K!==F)},ll=(c,k)=>{const F=c.rows.map(tt=>k.map(ot=>tt[ot.index]));return{columns:k.map((tt,ot)=>Bt(Tt({},tt),{index:ot})),rows:F}},hl=(c,k)=>{if(!(c&&k.index<c.length))return;const F=c[k.index];return F.compareValue||(F.compareValue=Vi(F.displayValue,k.type)),F.compareValue.value},cl=(c,k)=>{var F;return(F=c[k.index])==null?void 0:F.blur},Li=(c,k)=>{const F=[];for(const K of k)F.push(c[K.index]);return F},cd=(c,k)=>Li(c,k).map(F=>F.rawValue||F.displayValue).join(","),bn=(c,k)=>{if(!(c&&c.length>0))return{};const F=vn(c,k),K={};for(const tt of F){const ot=cd(tt[0],k);K[ot]=tt}return K},xn=c=>!(c.rows&&c.columns&&c.rows.length>0&&c.columns.length>0);var is;(function(c){c.event="event",c.props="prop"})(is||(is={}));function pd(c){switch(c){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function dd(c,k,F){var K=pd(F),tt=c.search(/[1-9]/);return tt=tt===-1?c.length:tt,c.substring(0,tt)+c.substring(tt,c.length).replace(K,"$1"+k)}function ud(c,k){k===void 0&&(k=!0);var F=c[0]==="-",K=F&&k;c=c.replace("-","");var tt=c.split("."),ot=tt[0],nt=tt[1]||"";return{beforeDecimal:ot,afterDecimal:nt,hasNegation:F,addNegation:K}}function fd(c,k,F){for(var K="",tt=F?"0":"",ot=0;ot<=k-1;ot++)K+=c[ot]||tt;return K}function gd(c,k){var F=k.decimalScale,K=k.fixedDecimalScale,tt=k.prefix;tt===void 0&&(tt="");var ot=k.suffix;ot===void 0&&(ot="");var nt=k.allowNegative,st=k.thousandsGroupStyle;if(st===void 0&&(st="thousand"),c===""||c==="-")return c;var ct=md(k),pt=ct.thousandSeparator,ut=ct.decimalSeparator,ft=F!==0&&c.indexOf(".")!==-1||F&&K,B=ud(c,nt),it=B.beforeDecimal,W=B.afterDecimal,R=B.addNegation;return F!==void 0&&(W=fd(W,F,!!K)),pt&&(it=dd(it,pt,st)),tt&&(it=tt+it),ot&&(W=W+ot),R&&(it="-"+it),c=it+(ft&&ut||"")+W,c}function md(c){var k=c.decimalSeparator;k===void 0&&(k=".");var F=c.thousandSeparator,K=c.allowedDecimalSeparators;return F===!0&&(F=","),K||(K=[k,"."]),{decimalSeparator:k,thousandSeparator:F,allowedDecimalSeparators:K}}function pl(c){var k=Ia(c),F=k%1;return k===k?F?k-F:k:0}var yd=Rt.root.isFinite,vd=Math.min;function bd(c){var k=Math[c];return function(F,K){if(F=nn(F),K=K==null?0:vd(pl(K),292),K&&yd(F)){var tt=(Rt.toString(F)+"e").split("e"),ot=k(tt[0]+"e"+(+tt[1]+K));return tt=(Rt.toString(ot)+"e").split("e"),+(tt[0]+"e"+(+tt[1]-K))}return k(F)}}var xd=bd("round");const Pr=1e3,Lr=Pr*1e3,Er=Lr*1e3,os=Er*1e3,dl=1000.1.toLocaleString().replace(/\d/g,""),Cd=dl[0],wd=dl[1],Sd={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},he=c=>Tt(Tt({},Sd),c||{}),Md=(c,k)=>isNaN(k)?"":`<span>${yi(c,k)}</span>`,Ad=(c,k)=>Math.sign(c)*xd(Math.abs(c),k),yi=(c,k)=>{const{t:F}=Rt.i18nextInstance,K=c.decimalScale!==0&&c.decimalScale!=="auto",tt=c.decimalScale==="auto"?2:c.decimalScale;let ot=!0;c.name==="Numbers"&&!c.thousandSeparator&&(ot=void 0);let nt,st,ct=k;return c.name==="Percent"&&(st="%",ct=k*100),(c.name==="Numbers"||c.name==="Currency")&&(c.trillion&&Math.abs(k)/os>=1?(ct=k/os,st=F("formatting.number.abbreviations.trillion")):c.billion&&Math.abs(k)/Er>=1?(ct=k/Er,st=F("formatting.number.abbreviations.billion")):c.million&&Math.abs(k)/Lr>=1?(ct=k/Lr,st=F("formatting.number.abbreviations.million")):c.kilo&&Math.abs(k)/Pr>=1&&(ct=k/Pr,st=F("formatting.number.abbreviations.thousand"))),c.name==="Currency"&&(c.prefix?nt=c.symbol:st?st=`${st}${c.symbol}`:st=c.symbol),gd(`${Ad(ct,tt)}`,{displayType:"text",thousandSeparator:ot?Cd:void 0,fixedDecimalScale:K,decimalScale:tt,decimalSeparator:wd,prefix:nt,suffix:st})},Ce=(c,k)=>{let F=Md(c,k);return F=F.replace("<span>",""),F=F.replace("</span>",""),F},No="#dcdcdc",ei="#CCCCCC",ii="#FFFFFF",Td=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],Cn=c=>({type:"uniform",color:c});function kd(c){return()=>c.color}const ul=c=>{if(c!==void 0)return typeof c=="string"?Cn(c).color:c.type==="uniform"?c.color:No};function Pd(c){var F;const k=((F=c.conditions)!=null?F:[]).map(K=>({match:Ld(K),color:K.color}));return K=>{const tt=k.find(ot=>ot.match(K));return tt?tt.color:c.defaultColor}}function Ld(c){const k=Number(c.expression);switch(c.operator){case"<":return F=>F<k;case">":return F=>F>k;case"≤":case"<=":return F=>F<=k;case"≥":case">=":return F=>F>=k;case"=":return F=>F==k;case"≠":case"!=":return F=>F!=k;default:return()=>!0}}function ge(c,k){let F=c.length;Array.isArray(c[0])||(c=[c]),Array.isArray(k[0])||(k=k.map(nt=>[nt]));let K=k[0].length,tt=k[0].map((nt,st)=>k.map(ct=>ct[st])),ot=c.map(nt=>tt.map(st=>{let ct=0;if(!Array.isArray(nt)){for(let pt of st)ct+=nt*pt;return ct}for(let pt=0;pt<nt.length;pt++)ct+=nt[pt]*(st[pt]||0);return ct}));return F===1&&(ot=ot[0]),K===1?ot.map(nt=>nt[0]):ot}function ro(c){return si(c)==="string"}function si(c){return(Object.prototype.toString.call(c).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Bo(c,k){c=+c,k=+k;let F=(Math.floor(c)+"").length;if(k>F)return+c.toFixed(k-F);{let K=Ft(10,F-k);return Math.round(c/K)*K}}function fl(c){if(!c)return;c=c.trim();const k=/^([a-z]+)\((.+?)\)$/i,F=/^-?[\d.]+$/;let K=c.match(k);if(K){let tt=[];return K[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(ot,nt)=>{/%$/.test(nt)?(nt=new Number(nt.slice(0,-1)/100),nt.type="<percentage>"):/deg$/.test(nt)?(nt=new Number(+nt.slice(0,-3)),nt.type="<angle>",nt.unit="deg"):F.test(nt)&&(nt=new Number(nt),nt.type="<number>"),ot.startsWith("/")&&(nt=nt instanceof Number?nt:new Number(nt),nt.alpha=!0),tt.push(nt)}),{name:K[1].toLowerCase(),rawName:K[1],rawArgs:K[2],args:tt}}}function gl(c){return c[c.length-1]}function _o(c,k,F){return isNaN(c)?k:isNaN(k)?c:c+(k-c)*F}function ml(c,k,F){return(F-c)/(k-c)}function wn(c,k,F){return _o(k[0],k[1],ml(c[0],c[1],F))}function yl(c){return c.map(k=>k.split("|").map(F=>{F=F.trim();let K=F.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(K){let tt=new String(K[1]);return tt.range=[+K[2],+K[3]],tt}return F}))}var Ed=Object.freeze({__proto__:null,interpolate:_o,interpolateInv:ml,isString:ro,last:gl,mapRange:wn,multiplyMatrices:ge,parseCoordGrammar:yl,parseFunction:fl,toPrecision:Bo,type:si});class Od{add(k,F,K){if(typeof arguments[0]!="string"){for(var k in arguments[0])this.add(k,arguments[0][k],arguments[1]);return}(Array.isArray(k)?k:[k]).forEach(function(tt){this[tt]=this[tt]||[],F&&this[tt][K?"unshift":"push"](F)},this)}run(k,F){this[k]=this[k]||[],this[k].forEach(function(K){K.call(F&&F.context?F.context:F,F)})}}const li=new Od;var Ke={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const We={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Or(c){return Array.isArray(c)?c:We[c]}function Ro(c,k,F,K={}){if(c=Or(c),k=Or(k),!c||!k)throw new TypeError(`Missing white point to convert ${c?"":"from"}${!c&&!k?"/":""}${k?"":"to"}`);if(c===k)return F;let tt={W1:c,W2:k,XYZ:F,options:K};if(li.run("chromatic-adaptation-start",tt),tt.M||(tt.W1===We.D65&&tt.W2===We.D50?tt.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:tt.W1===We.D50&&tt.W2===We.D65&&(tt.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),li.run("chromatic-adaptation-end",tt),tt.M)return ge(tt.M,tt.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const Dd=75e-6,Oe=class Oe{constructor(k){var tt,ot,nt,st,ct,pt,ut;this.id=k.id,this.name=k.name,this.base=k.base?Oe.get(k.base):null,this.aliases=k.aliases,this.base&&(this.fromBase=k.fromBase,this.toBase=k.toBase);let F=(tt=k.coords)!=null?tt:this.base.coords;for(let ft in F)"name"in F[ft]||(F[ft].name=ft);this.coords=F;let K=(nt=(ot=k.white)!=null?ot:this.base.white)!=null?nt:"D65";this.white=Or(K),this.formats=(st=k.formats)!=null?st:{};for(let ft in this.formats){let B=this.formats[ft];B.type||(B.type="function"),B.name||(B.name=ft)}k.cssId&&!((ct=this.formats.functions)!=null&&ct.color)?(this.formats.color={id:k.cssId},Object.defineProperty(this,"cssId",{value:k.cssId})):(pt=this.formats)!=null&&pt.color&&!((ut=this.formats)!=null&&ut.color.id)&&(this.formats.color.id=this.id),this.referred=k.referred,Object.defineProperty(this,"path",{value:jd(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),li.run("colorspace-init-end",this)}inGamut(k,{epsilon:F=Dd}={}){if(this.isPolar)return k=this.toBase(k),this.base.inGamut(k,{epsilon:F});let K=Object.values(this.coords);return k.every((tt,ot)=>{let nt=K[ot];if(nt.type!=="angle"&&nt.range){if(Number.isNaN(tt))return!0;let[st,ct]=nt.range;return(st===void 0||tt>=st-F)&&(ct===void 0||tt<=ct+F)}return!0})}get cssId(){var k,F;return((F=(k=this.formats.functions)==null?void 0:k.color)==null?void 0:F.id)||this.id}get isPolar(){for(let k in this.coords)if(this.coords[k].type==="angle")return!0;return!1}getFormat(k){if(typeof k=="object")return k=rs(k,this),k;let F;return k==="default"?F=Object.values(this.formats)[0]:F=this.formats[k],F?(F=rs(F,this),F):null}equals(k){return k?this===k||this.id===k.id:!1}to(k,F){if(arguments.length===1&&([k,F]=[k.space,k.coords]),k=Oe.get(k),this.equals(k))return F;F=F.map(st=>Number.isNaN(st)?0:st);let K=this.path,tt=k.path,ot,nt;for(let st=0;st<K.length&&K[st].equals(tt[st]);st++)ot=K[st],nt=st;if(!ot)throw new Error(`Cannot convert between color spaces ${this} and ${k}: no connection space was found`);for(let st=K.length-1;st>nt;st--)F=K[st].toBase(F);for(let st=nt+1;st<tt.length;st++)F=tt[st].fromBase(F);return F}from(k,F){return arguments.length===1&&([k,F]=[k.space,k.coords]),k=Oe.get(k),k.to(this,F)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var F;let k=[];for(let K in this.coords){let tt=this.coords[K],ot=tt.range||tt.refRange;k.push((F=ot==null?void 0:ot.min)!=null?F:0)}return k}static get all(){return[...new Set(Object.values(Oe.registry))]}static register(k,F){if(arguments.length===1&&(F=arguments[0],k=F.id),F=this.get(F),this.registry[k]&&this.registry[k]!==F)throw new Error(`Duplicate color space registration: '${k}'`);if(this.registry[k]=F,arguments.length===1&&F.aliases)for(let K of F.aliases)this.register(K,F);return F}static get(k,...F){if(!k||k instanceof Oe)return k;if(si(k)==="string"){let tt=Oe.registry[k.toLowerCase()];if(!tt)throw new TypeError(`No color space found with id = "${k}"`);return tt}if(F.length)return Oe.get(...F);throw new TypeError(`${k} is not a valid color space`)}static resolveCoord(k,F){var ct;let K=si(k),tt,ot;if(K==="string"?k.includes(".")?[tt,ot]=k.split("."):[tt,ot]=[,k]:Array.isArray(k)?[tt,ot]=k:(tt=k.space,ot=k.coordId),tt=Oe.get(tt),tt||(tt=F),!tt)throw new TypeError(`Cannot resolve coordinate reference ${k}: No color space specified and relative references are not allowed here`);if(K=si(ot),K==="number"||K==="string"&&ot>=0){let pt=Object.entries(tt.coords)[ot];if(pt)return Tt({space:tt,id:pt[0],index:ot},pt[1])}tt=Oe.get(tt);let nt=ot.toLowerCase(),st=0;for(let pt in tt.coords){let ut=tt.coords[pt];if(pt.toLowerCase()===nt||((ct=ut.name)==null?void 0:ct.toLowerCase())===nt)return Tt({space:tt,id:pt,index:st},ut);st++}throw new TypeError(`No "${ot}" coordinate found in ${tt.name}. Its coordinates are: ${Object.keys(tt.coords).join(", ")}`)}};lr(Oe,"registry",{}),lr(Oe,"DEFAULT_FORMAT",{type:"functions",name:"color"});let Vt=Oe;function jd(c){let k=[c];for(let F=c;F=F.base;)k.push(F);return k}function rs(c,{coords:k}={}){if(c.coords&&!c.coordGrammar){c.type||(c.type="function"),c.name||(c.name="color"),c.coordGrammar=yl(c.coords);let F=Object.entries(k).map(([K,tt],ot)=>{let nt=c.coordGrammar[ot][0],st=tt.range||tt.refRange,ct=nt.range,pt="";return nt=="<percentage>"?(ct=[0,100],pt="%"):nt=="<angle>"&&(pt="deg"),{fromRange:st,toRange:ct,suffix:pt}});c.serializeCoords=(K,tt)=>K.map((ot,nt)=>{let{fromRange:st,toRange:ct,suffix:pt}=F[nt];return st&&ct&&(ot=wn(st,ct,ot)),ot=Bo(ot,tt),pt&&(ot+=pt),ot})}return c}var Re=new Vt({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class Ee extends Vt{constructor(k){var F,K,tt;k.coords||(k.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),k.base||(k.base=Re),k.toXYZ_M&&k.fromXYZ_M&&((F=k.toBase)!=null||(k.toBase=ot=>{let nt=ge(k.toXYZ_M,ot);return this.white!==this.base.white&&(nt=Ro(this.white,this.base.white,nt)),nt}),(K=k.fromBase)!=null||(k.fromBase=ot=>(ot=Ro(this.base.white,this.white,ot),ge(k.fromXYZ_M,ot)))),(tt=k.referred)!=null||(k.referred="display"),super(k)}}function vl(c,{meta:k}={}){var K,tt,ot,nt,st,ct;let F={str:(K=String(c))==null?void 0:K.trim()};if(li.run("parse-start",F),F.color)return F.color;if(F.parsed=fl(F.str),F.parsed){let pt=F.parsed.name;if(pt==="color"){let ut=F.parsed.args.shift(),ft=F.parsed.rawArgs.indexOf("/")>0?F.parsed.args.pop():1;for(let it of Vt.all){let W=it.getFormat("color");if(W&&(ut===W.id||(tt=W.ids)!=null&&tt.includes(ut))){const R=Object.keys(it.coords).map((H,V)=>F.parsed.args[V]||0);return k&&(k.formatId="color"),{spaceId:it.id,coords:R,alpha:ft}}}let B="";if(ut in Vt.registry){let it=(st=(nt=(ot=Vt.registry[ut].formats)==null?void 0:ot.functions)==null?void 0:nt.color)==null?void 0:st.id;it&&(B=`Did you mean color(${it})?`)}throw new TypeError(`Cannot parse color(${ut}). `+(B||"Missing a plugin?"))}else for(let ut of Vt.all){let ft=ut.getFormat(pt);if(ft&&ft.type==="function"){let B=1;(ft.lastAlpha||gl(F.parsed.args).alpha)&&(B=F.parsed.args.pop());let it=F.parsed.args,W;return ft.coordGrammar&&(W=Object.entries(ut.coords).map(([R,H],V)=>{var E;let $=ft.coordGrammar[V],Z=(E=it[V])==null?void 0:E.type,U=$.find(M=>M==Z);if(!U){let M=H.name||R;throw new TypeError(`${Z} not allowed for ${M} in ${pt}()`)}let z=U.range;Z==="<percentage>"&&(z||(z=[0,1]));let I=H.range||H.refRange;return z&&I&&(it[V]=wn(z,I,it[V])),U})),k&&Object.assign(k,{formatId:ft.name,types:W}),{spaceId:ut.id,coords:it,alpha:B}}}}else for(let pt of Vt.all)for(let ut in pt.formats){let ft=pt.formats[ut];if(ft.type!=="custom"||ft.test&&!ft.test(F.str))continue;let B=ft.parse(F.str);if(B)return(ct=B.alpha)!=null||(B.alpha=1),k&&(k.formatId=ut),B}throw new TypeError(`Could not parse ${c} as a color. Missing a plugin?`)}function re(c){if(!c)throw new TypeError("Empty color reference");ro(c)&&(c=vl(c));let k=c.space||c.spaceId;return k instanceof Vt||(c.space=Vt.get(k)),c.alpha===void 0&&(c.alpha=1),c}function no(c,k){return k=Vt.get(k),k.from(c)}function ze(c,k){let{space:F,index:K}=Vt.resolveCoord(k,c.space);return no(c,F)[K]}function bl(c,k,F){return k=Vt.get(k),c.coords=k.to(c.space,F),c}function hi(c,k,F){if(c=re(c),arguments.length===2&&si(arguments[1])==="object"){let K=arguments[1];for(let tt in K)hi(c,tt,K[tt])}else{typeof F=="function"&&(F=F(ze(c,k)));let{space:K,index:tt}=Vt.resolveCoord(k,c.space),ot=no(c,K);ot[tt]=F,bl(c,K,ot)}return c}var Sn=new Vt({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Re,fromBase:c=>Ro(Re.white,"D50",c),toBase:c=>Ro("D50",Re.white,c),formats:{color:{}}});const Id=216/24389,ns=24/116,uo=24389/27;let pr=We.D50;var De=new Vt({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:pr,base:Sn,fromBase(c){let F=c.map((K,tt)=>K/pr[tt]).map(K=>K>Id?Math.cbrt(K):(uo*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(c){let k=[];return k[1]=(c[0]+16)/116,k[0]=c[1]/500+k[1],k[2]=k[1]-c[2]/200,[k[0]>ns?Math.pow(k[0],3):(116*k[0]-16)/uo,c[0]>8?Math.pow((c[0]+16)/116,3):c[0]/uo,k[2]>ns?Math.pow(k[2],3):(116*k[2]-16)/uo].map((K,tt)=>K*pr[tt])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Qo(c){return(c%360+360)%360}function Nd(c,k){if(c==="raw")return k;let[F,K]=k.map(Qo),tt=K-F;return c==="increasing"?tt<0&&(K+=360):c==="decreasing"?tt>0&&(F+=360):c==="longer"?-180<tt&&tt<180&&(tt>0?F+=360:K+=360):c==="shorter"&&(tt>180?F+=360:tt<-180&&(K+=360)),[F,K]}var Zi=new Vt({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:De,fromBase(c){let[k,F,K]=c,tt;const ot=.02;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[k,Math.sqrt(Ft(F,2)+Ft(K,2)),Qo(tt)]},toBase(c){let[k,F,K]=c;return F<0&&(F=0),isNaN(K)&&(K=0),[k,F*Math.cos(K*Math.PI/180),F*Math.sin(K*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const ss=Ft(25,7),zo=Math.PI,as=180/zo,xi=zo/180;function Dr(c,k,{kL:F=1,kC:K=1,kH:tt=1}={}){let[ot,nt,st]=De.from(c),ct=Zi.from(De,[ot,nt,st])[1],[pt,ut,ft]=De.from(k),B=Zi.from(De,[pt,ut,ft])[1];ct<0&&(ct=0),B<0&&(B=0);let it=(ct+B)/2,W=Ft(it,7),R=.5*(1-Math.sqrt(W/(W+ss))),H=(1+R)*nt,V=(1+R)*ut,$=Math.sqrt(Ft(H,2)+Ft(st,2)),Z=Math.sqrt(Ft(V,2)+Ft(ft,2)),U=H===0&&st===0?0:Math.atan2(st,H),z=V===0&&ft===0?0:Math.atan2(ft,V);U<0&&(U+=2*zo),z<0&&(z+=2*zo),U*=as,z*=as;let I=pt-ot,E=Z-$,M=z-U,P=U+z,y=Math.abs(M),h;$*Z===0?h=0:y<=180?h=M:M>180?h=M-360:M<-180?h=M+360:console.log("the unthinkable has happened");let f=2*Math.sqrt(Z*$)*Math.sin(h*xi/2),m=(ot+pt)/2,u=($+Z)/2,v=Math.pow(u,7),w;$*Z===0?w=P:y<=180?w=P/2:P<360?w=(P+360)/2:w=(P-360)/2;let S=Ft(m-50,2),x=1+.015*S/Math.sqrt(20+S),p=1+.045*u,g=1;g-=.17*Math.cos((w-30)*xi),g+=.24*Math.cos(2*w*xi),g+=.32*Math.cos((3*w+6)*xi),g-=.2*Math.cos((4*w-63)*xi);let r=1+.015*u*g,a=30*Math.exp(-1*Ft((w-275)/25,2)),t=2*Math.sqrt(v/(v+ss)),i=-1*Math.sin(2*a*xi)*t,o=Ft(I/(F*x),2);return o+=Ft(E/(K*p),2),o+=Ft(f/(tt*r),2),o+=i*(E/(K*p))*(f/(tt*r)),Math.sqrt(o)}const Bd=75e-6;function Wi(c,k=c.space,{epsilon:F=Bd}={}){c=re(c),k=Vt.get(k);let K=c.coords;return k!==c.space&&(K=k.from(c)),k.inGamut(K,{epsilon:F})}function Ki(c){return{space:c.space,coords:c.coords.slice(),alpha:c.alpha}}function ci(c,{method:k=Ke.gamut_mapping,space:F=c.space}={}){if(ro(arguments[1])&&(F=arguments[1]),F=Vt.get(F),Wi(c,F,{epsilon:0}))return re(c);let K=_e(c,F);if(k!=="clip"&&!Wi(c,F)){let tt=ci(Ki(K),{method:"clip",space:F});if(Dr(c,tt)>2){let ot=Vt.resolveCoord(k),nt=ot.space,st=ot.id,ct=_e(K,nt),ut=(ot.range||ot.refRange)[0],ft=.01,B=ut,it=ze(ct,st);for(;it-B>ft;){let W=Ki(ct);W=ci(W,{space:F,method:"clip"}),Dr(ct,W)-2<ft?B=ze(ct,st):it=ze(ct,st),hi(ct,st,(B+it)/2)}K=_e(ct,F)}else K=tt}if(k==="clip"||!Wi(K,F,{epsilon:0})){let tt=Object.values(F.coords).map(ot=>ot.range||[]);K.coords=K.coords.map((ot,nt)=>{let[st,ct]=tt[nt];return st!==void 0&&(ot=Math.max(st,ot)),ct!==void 0&&(ot=Math.min(ot,ct)),ot})}return F!==c.space&&(K=_e(K,c.space)),c.coords=K.coords,c}ci.returns="color";function _e(c,k,{inGamut:F}={}){c=re(c),k=Vt.get(k);let K=k.from(c),tt={space:k,coords:K,alpha:c.alpha};return F&&(tt=ci(tt)),tt}_e.returns="color";function Fo(c,ot={}){var nt=ot,{precision:k=Ke.precision,format:F="default",inGamut:K=!0}=nt,tt=Te(nt,["precision","format","inGamut"]);var ut,ft,B;let st;c=re(c);let ct=F;F=(ft=(ut=c.space.getFormat(F))!=null?ut:c.space.getFormat("default"))!=null?ft:Vt.DEFAULT_FORMAT,K||(K=F.toGamut);let pt=c.coords;if(pt=pt.map(it=>it||0),K&&!Wi(c)&&(pt=ci(Ki(c),K===!0?void 0:K).coords),F.type==="custom")if(tt.precision=k,F.serialize)st=F.serialize(pt,c.alpha,tt);else throw new TypeError(`format ${ct} can only be used to parse colors, not for serialization`);else{let it=F.name||"color";F.serializeCoords?pt=F.serializeCoords(pt,k):k!==null&&(pt=pt.map(V=>Bo(V,k)));let W=[...pt];if(it==="color"){let V=F.id||((B=F.ids)==null?void 0:B[0])||c.space.id;W.unshift(V)}let R=c.alpha;k!==null&&(R=Bo(R,k));let H=c.alpha<1&&!F.noAlpha?`${F.commas?",":" /"} ${R}`:"";st=`${it}(${W.join(F.commas?", ":" ")}${H})`}return st}const _d=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Rd=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var tr=new Ee({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:_d,fromXYZ_M:Rd,formats:{color:{}}});const fo=1.09929682680944,ls=.018053968510807;var xl=new Ee({id:"rec2020",name:"REC.2020",base:tr,toBase(c){return c.map(function(k){return k<ls*4.5?k/4.5:Math.pow((k+fo-1)/fo,1/.45)})},fromBase(c){return c.map(function(k){return k>=ls?fo*Math.pow(k,.45)-(fo-1):4.5*k})},formats:{color:{}}});const zd=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Fd=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Cl=new Ee({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:zd,fromXYZ_M:Fd});const Gd=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Wd=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var wl=new Ee({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Gd,fromXYZ_M:Wd,formats:{color:{}}}),hs={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let cs=Array(3).fill("<percentage> | <number>[0, 255]"),ps=Array(3).fill("<number>[0, 255]");var qi=new Ee({id:"srgb",name:"sRGB",base:wl,fromBase:c=>c.map(k=>{let F=k<0?-1:1,K=k*F;return K>.0031308?F*(1.055*Ft(K,1/2.4)-.055):12.92*k}),toBase:c=>c.map(k=>{let F=k<0?-1:1,K=k*F;return K<.04045?k/12.92:F*Ft((K+.055)/1.055,2.4)}),formats:{rgb:{coords:cs},rgb_number:{name:"rgb",commas:!0,coords:ps,noAlpha:!0},color:{},rgba:{coords:cs,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:ps},hex:{type:"custom",toGamut:!0,test:c=>/^#([a-f0-9]{3,4}){1,2}$/i.test(c),parse(c){c.length<=5&&(c=c.replace(/[a-f0-9]/gi,"$&$&"));let k=[];return c.replace(/[a-f0-9]{2}/gi,F=>{k.push(parseInt(F,16)/255)}),{spaceId:"srgb",coords:k.slice(0,3),alpha:k.slice(3)[0]}},serialize:(c,k,{collapse:F=!0}={})=>{k<1&&c.push(k),c=c.map(ot=>Math.round(ot*255));let K=F&&c.every(ot=>ot%17===0);return"#"+c.map(ot=>K?(ot/17).toString(16):ot.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:c=>/^[a-z]+$/i.test(c),parse(c){c=c.toLowerCase();let k={spaceId:"srgb",coords:null,alpha:1};if(c==="transparent"?(k.coords=hs.black,k.alpha=0):k.coords=hs[c],k.coords)return k}}}}),Sl=new Ee({id:"p3",name:"P3",base:Cl,fromBase:qi.fromBase,toBase:qi.toBase,formats:{color:{id:"display-p3"}}});Ke.display_space=qi;if(typeof CSS!="undefined"&&CSS.supports)for(let c of[De,xl,Sl]){let k=c.getMinCoords(),K=Fo({space:c,coords:k,alpha:1});if(CSS.supports("color",K)){Ke.display_space=c;break}}function Xd(c,K={}){var tt=K,{space:k=Ke.display_space}=tt,F=Te(tt,["space"]);let ot=Fo(c,F);if(typeof CSS=="undefined"||CSS.supports("color",ot)||!Ke.display_space)ot=new String(ot),ot.color=c;else{let nt=_e(c,k);ot=new String(Fo(nt,F)),ot.color=nt}return ot}function Ml(c,k,F="lab"){F=Vt.get(F);let K=F.from(c),tt=F.from(k);return Math.sqrt(K.reduce((ot,nt,st)=>{let ct=tt[st];return isNaN(nt)||isNaN(ct)?ot:ot+Ft(ct-nt,2)},0))}function Hd(c,k){return c=re(c),k=re(k),c.space===k.space&&c.alpha===k.alpha&&c.coords.every((F,K)=>F===k.coords[K])}function pi(c){return ze(c,[Re,"y"])}function Al(c,k){hi(c,[Re,"y"],k)}function Yd(c){Object.defineProperty(c.prototype,"luminance",{get(){return pi(this)},set(k){Al(this,k)}})}var Ud=Object.freeze({__proto__:null,getLuminance:pi,register:Yd,setLuminance:Al});function Vd(c,k){c=re(c),k=re(k);let F=Math.max(pi(c),0),K=Math.max(pi(k),0);return K>F&&([F,K]=[K,F]),(F+.05)/(K+.05)}const $d=.56,Zd=.57,Kd=.62,qd=.65,ds=.022,Jd=1.414,Qd=.1,tu=5e-4,eu=1.14,us=.027,iu=1.14;function fs(c){return c>=ds?c:c+Ft(ds-c,Jd)}function Ci(c){let k=c<0?-1:1,F=Math.abs(c);return k*Math.pow(F,2.4)}function ou(c,k){k=re(k),c=re(c);let F,K,tt,ot,nt,st;k=_e(k,"srgb"),[ot,nt,st]=k.coords;let ct=Ci(ot)*.2126729+Ci(nt)*.7151522+Ci(st)*.072175;c=_e(c,"srgb"),[ot,nt,st]=c.coords;let pt=Ci(ot)*.2126729+Ci(nt)*.7151522+Ci(st)*.072175,ut=fs(ct),ft=fs(pt),B=ft>ut;return Math.abs(ft-ut)<tu?K=0:B?(F=Ft(ft,$d)-Ft(ut,Zd),K=F*eu):(F=Ft(ft,qd)-Ft(ut,Kd),K=F*iu),Math.abs(K)<Qd?tt=0:K>0?tt=K-us:tt=K+us,tt*100}function ru(c,k){c=re(c),k=re(k);let F=Math.max(pi(c),0),K=Math.max(pi(k),0);K>F&&([F,K]=[K,F]);let tt=F+K;return tt===0?0:(F-K)/tt}const nu=5e4;function su(c,k){c=re(c),k=re(k);let F=Math.max(pi(c),0),K=Math.max(pi(k),0);return K>F&&([F,K]=[K,F]),K===0?nu:(F-K)/K}function au(c,k){c=re(c),k=re(k);let F=ze(c,[De,"l"]),K=ze(k,[De,"l"]);return Math.abs(F-K)}const lu=216/24389,gs=24/116,go=24389/27;let dr=We.D65;var jr=new Vt({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:dr,base:Re,fromBase(c){let F=c.map((K,tt)=>K/dr[tt]).map(K=>K>lu?Math.cbrt(K):(go*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(c){let k=[];return k[1]=(c[0]+16)/116,k[0]=c[1]/500+k[1],k[2]=k[1]-c[2]/200,[k[0]>gs?Math.pow(k[0],3):(116*k[0]-16)/go,c[0]>8?Math.pow((c[0]+16)/116,3):c[0]/go,k[2]>gs?Math.pow(k[2],3):(116*k[2]-16)/go].map((K,tt)=>K*dr[tt])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const ur=Math.pow(5,.5)*.5+.5;function hu(c,k){c=re(c),k=re(k);let F=ze(c,[jr,"l"]),K=ze(k,[jr,"l"]),tt=Math.abs(Math.pow(F,ur)-Math.pow(K,ur)),ot=Math.pow(tt,1/ur)*Math.SQRT2-40;return ot<7.5?0:ot}var Lo=Object.freeze({__proto__:null,contrastAPCA:ou,contrastDeltaPhi:hu,contrastLstar:au,contrastMichelson:ru,contrastWCAG21:Vd,contrastWeber:su});function cu(c,k,F={}){ro(F)&&(F={algorithm:F});let ot=F,{algorithm:K}=ot,tt=Te(ot,["algorithm"]);if(!K){let nt=Object.keys(Lo).map(st=>st.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${nt}`)}c=re(c),k=re(k);for(let nt in Lo)if("contrast"+K.toLowerCase()===nt.toLowerCase())return Lo[nt](c,k,tt);throw new TypeError(`Unknown contrast algorithm: ${K}`)}function Tl(c){let[k,F,K]=no(c,Re),tt=k+15*F+3*K;return[4*k/tt,9*F/tt]}function kl(c){let[k,F,K]=no(c,Re),tt=k+F+K;return[k/tt,F/tt]}function pu(c){Object.defineProperty(c.prototype,"uv",{get(){return Tl(this)}}),Object.defineProperty(c.prototype,"xy",{get(){return kl(this)}})}var du=Object.freeze({__proto__:null,register:pu,uv:Tl,xy:kl});function uu(c,k){return Ml(c,k,"lab")}const fu=Math.PI,ms=fu/180;function gu(c,k,{l:F=2,c:K=1}={}){let[tt,ot,nt]=De.from(c),[,st,ct]=Zi.from(De,[tt,ot,nt]),[pt,ut,ft]=De.from(k),B=Zi.from(De,[pt,ut,ft])[1];st<0&&(st=0),B<0&&(B=0);let it=tt-pt,W=st-B,R=ot-ut,H=nt-ft,V=Ft(R,2)+Ft(H,2)-Ft(W,2),$=.511;tt>=16&&($=.040975*tt/(1+.01765*tt));let Z=.0638*st/(1+.0131*st)+.638,U;Number.isNaN(ct)&&(ct=0),ct>=164&&ct<=345?U=.56+Math.abs(.2*Math.cos((ct+168)*ms)):U=.36+Math.abs(.4*Math.cos((ct+35)*ms));let z=Math.pow(st,4),I=Math.sqrt(z/(z+1900)),E=Z*(I*U+1-I),M=Ft(it/(F*$),2);return M+=Ft(W/(K*Z),2),M+=V/Ft(E,2),Math.sqrt(M)}const ys=203;var Mn=new Vt({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:Re,fromBase(c){return c.map(k=>Math.max(k*ys,0))},toBase(c){return c.map(k=>Math.max(k/ys,0))}});const mo=1.15,yo=.66,vs=2610/Ft(2,14),mu=Ft(2,14)/2610,bs=3424/Ft(2,12),xs=2413/Ft(2,7),Cs=2392/Ft(2,7),yu=1.7*2523/Ft(2,5),ws=Ft(2,5)/(1.7*2523),vo=-.56,fr=16295499532821565e-27,vu=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],bu=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],xu=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],Cu=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var Pl=new Vt({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Mn,fromBase(c){let[k,F,K]=c,tt=mo*k-(mo-1)*K,ot=yo*F-(yo-1)*k,st=ge(vu,[tt,ot,K]).map(function(B){let it=bs+xs*Ft(B/1e4,vs),W=1+Cs*Ft(B/1e4,vs);return Ft(it/W,yu)}),[ct,pt,ut]=ge(xu,st);return[(1+vo)*ct/(1+vo*ct)-fr,pt,ut]},toBase(c){let[k,F,K]=c,tt=(k+fr)/(1+vo-vo*(k+fr)),nt=ge(Cu,[tt,F,K]).map(function(B){let it=bs-Ft(B,ws),W=Cs*Ft(B,ws)-xs;return 1e4*Ft(it/W,mu)}),[st,ct,pt]=ge(bu,nt),ut=(st+(mo-1)*pt)/mo,ft=(ct+(yo-1)*ut)/yo;return[ut,ft,pt]},formats:{color:{}}}),Ir=new Vt({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:Pl,fromBase(c){let[k,F,K]=c,tt;const ot=2e-4;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[k,Math.sqrt(Ft(F,2)+Ft(K,2)),Qo(tt)]},toBase(c){return[c[0],c[1]*Math.cos(c[2]*Math.PI/180),c[1]*Math.sin(c[2]*Math.PI/180)]},formats:{color:{}}});function wu(c,k){let[F,K,tt]=Ir.from(c),[ot,nt,st]=Ir.from(k),ct=F-ot,pt=K-nt;Number.isNaN(tt)&&Number.isNaN(st)?(tt=0,st=0):Number.isNaN(tt)?tt=st:Number.isNaN(st)&&(st=tt);let ut=tt-st,ft=2*Math.sqrt(K*nt)*Math.sin(ut/2*(Math.PI/180));return Math.sqrt(Ft(ct,2)+Ft(pt,2)+Ft(ft,2))}const Ll=3424/4096,El=2413/128,Ol=2392/128,Ss=2610/16384,Su=2523/32,Mu=16384/2610,Ms=32/2523,Au=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],Tu=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],ku=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],Pu=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var Nr=new Vt({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Mn,fromBase(c){let k=ge(Au,c);return Lu(k)},toBase(c){let k=Eu(c);return ge(Pu,k)},formats:{color:{}}});function Lu(c){let k=c.map(function(F){let K=Ll+El*Ft(F/1e4,Ss),tt=1+Ol*Ft(F/1e4,Ss);return Ft(K/tt,Su)});return ge(Tu,k)}function Eu(c){return ge(ku,c).map(function(K){let tt=Math.max(Ft(K,Ms)-Ll,0),ot=El-Ol*Ft(K,Ms);return 1e4*Ft(tt/ot,Mu)})}function Ou(c,k){let[F,K,tt]=Nr.from(c),[ot,nt,st]=Nr.from(k);return 720*Math.sqrt(Ft(F-ot,2)+.25*Ft(K-nt,2)+Ft(tt-st,2))}const Du=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],ju=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],Iu=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],Nu=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var Go=new Vt({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Re,fromBase(c){let F=ge(Du,c).map(K=>Math.cbrt(K));return ge(Iu,F)},toBase(c){let F=ge(Nu,c).map(K=>Ft(K,3));return ge(ju,F)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Bu(c,k){let[F,K,tt]=Go.from(c),[ot,nt,st]=Go.from(k),ct=F-ot,pt=K-nt,ut=tt-st;return Math.sqrt(Ft(ct,2)+Ft(pt,2)+Ft(ut,2))}var Wo={deltaE76:uu,deltaECMC:gu,deltaE2000:Dr,deltaEJz:wu,deltaEITP:Ou,deltaEOK:Bu};function Gi(c,k,F={}){ro(F)&&(F={method:F});let ot=F,{method:K=Ke.deltaE}=ot,tt=Te(ot,["method"]);c=re(c),k=re(k);for(let nt in Wo)if("deltae"+K.toLowerCase()===nt.toLowerCase())return Wo[nt](c,k,tt);throw new TypeError(`Unknown deltaE method: ${K}`)}function _u(c,k=.25){let K=[Vt.get("oklch","lch"),"l"];return hi(c,K,tt=>tt*(1+k))}function Ru(c,k=.25){let K=[Vt.get("oklch","lch"),"l"];return hi(c,K,tt=>tt*(1-k))}var zu=Object.freeze({__proto__:null,darken:Ru,lighten:_u});function Dl(c,k,F=.5,K={}){[c,k]=[re(c),re(k)],si(F)==="object"&&([F,K]=[.5,F]);let{space:tt,outputSpace:ot,premultiplied:nt}=K;return so(c,k,{space:tt,outputSpace:ot,premultiplied:nt})(F)}function jl(c,k,F={}){let K;An(c)&&([K,F]=[c,k],[c,k]=K.rangeArgs.colors);let B=F,{maxDeltaE:tt,deltaEMethod:ot,steps:nt=2,maxSteps:st=1e3}=B,ct=Te(B,["maxDeltaE","deltaEMethod","steps","maxSteps"]);K||([c,k]=[re(c),re(k)],K=so(c,k,ct));let pt=Gi(c,k),ut=tt>0?Math.max(nt,Math.ceil(pt/tt)+1):nt,ft=[];if(st!==void 0&&(ut=Math.min(ut,st)),ut===1)ft=[{p:.5,color:K(.5)}];else{let it=1/(ut-1);ft=Array.from({length:ut},(W,R)=>{let H=R*it;return{p:H,color:K(H)}})}if(tt>0){let it=ft.reduce((W,R,H)=>{if(H===0)return 0;let V=Gi(R.color,ft[H-1].color,ot);return Math.max(W,V)},0);for(;it>tt;){it=0;for(let W=1;W<ft.length&&ft.length<st;W++){let R=ft[W-1],H=ft[W],V=(H.p+R.p)/2,$=K(V);it=Math.max(it,Gi($,R.color),Gi($,H.color)),ft.splice(W,0,{p:V,color:K(V)}),W++}}}return ft=ft.map(it=>it.color),ft}function so(c,k,F={}){if(An(c)){let[ct,pt]=[c,k];return so(...ct.rangeArgs.colors,Tt(Tt({},ct.rangeArgs.options),pt))}let{space:K,outputSpace:tt,progression:ot,premultiplied:nt}=F;c=re(c),k=re(k),c=Ki(c),k=Ki(k);let st={colors:[c,k],options:F};if(K?K=Vt.get(K):K=Vt.registry[Ke.interpolationSpace]||c.space,tt=tt?Vt.get(tt):K,c=_e(c,K),k=_e(k,K),c=ci(c),k=ci(k),K.coords.h&&K.coords.h.type==="angle"){let ct=F.hue=F.hue||"shorter",pt=[K,"h"],[ut,ft]=[ze(c,pt),ze(k,pt)];[ut,ft]=Nd(ct,[ut,ft]),hi(c,pt,ut),hi(k,pt,ft)}return nt&&(c.coords=c.coords.map(ct=>ct*c.alpha),k.coords=k.coords.map(ct=>ct*k.alpha)),Object.assign(ct=>{ct=ot?ot(ct):ct;let pt=c.coords.map((B,it)=>{let W=k.coords[it];return _o(B,W,ct)}),ut=_o(c.alpha,k.alpha,ct),ft={space:K,coords:pt,alpha:ut};return nt&&(ft.coords=ft.coords.map(B=>B/ut)),tt!==K&&(ft=_e(ft,tt)),ft},{rangeArgs:st})}function An(c){return si(c)==="function"&&!!c.rangeArgs}Ke.interpolationSpace="lab";function Fu(c){c.defineFunction("mix",Dl,{returns:"color"}),c.defineFunction("range",so,{returns:"function<color>"}),c.defineFunction("steps",jl,{returns:"array<color>"})}var Gu=Object.freeze({__proto__:null,isRange:An,mix:Dl,range:so,register:Fu,steps:jl}),Il=new Vt({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:qi,fromBase:c=>{let k=Math.max(...c),F=Math.min(...c),[K,tt,ot]=c,[nt,st,ct]=[NaN,0,(F+k)/2],pt=k-F;if(pt!==0){switch(st=ct===0||ct===1?0:(k-ct)/Math.min(ct,1-ct),k){case K:nt=(tt-ot)/pt+(tt<ot?6:0);break;case tt:nt=(ot-K)/pt+2;break;case ot:nt=(K-tt)/pt+4}nt=nt*60}return[nt,st*100,ct*100]},toBase:c=>{let[k,F,K]=c;k=k%360,k<0&&(k+=360),F/=100,K/=100;function tt(ot){let nt=(ot+k/30)%12,st=F*Math.min(K,1-K);return K-st*Math.max(-1,Math.min(nt-3,9-nt,1))}return[tt(0),tt(8),tt(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),Nl=new Vt({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:Il,fromBase(c){let[k,F,K]=c;F/=100,K/=100;let tt=K+F*Math.min(K,1-K);return[k,tt===0?0:200*(1-K/tt),100*tt]},toBase(c){let[k,F,K]=c;F/=100,K/=100;let tt=K*(1-F/2);return[k,tt===0||tt===1?0:(K-tt)/Math.min(tt,1-tt)*100,tt*100]},formats:{color:{toGamut:!0}}}),Wu=new Vt({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Nl,fromBase(c){let[k,F,K]=c;return[k,K*(100-F)/100,100-K]},toBase(c){let[k,F,K]=c;F/=100,K/=100;let tt=F+K;if(tt>=1){let st=F/tt;return[k,0,st*100]}let ot=1-K,nt=ot===0?0:1-F/ot;return[k,nt*100,ot*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const Xu=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],Hu=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Bl=new Ee({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:Xu,fromXYZ_M:Hu}),Yu=new Ee({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:Bl,toBase:c=>c.map(k=>Math.pow(Math.abs(k),563/256)*Math.sign(k)),fromBase:c=>c.map(k=>Math.pow(Math.abs(k),256/563)*Math.sign(k)),formats:{color:{id:"a98-rgb"}}});const Uu=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],Vu=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var _l=new Ee({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:Sn,toXYZ_M:Uu,fromXYZ_M:Vu});const $u=1/512,Zu=16/512;var Ku=new Ee({id:"prophoto",name:"ProPhoto",base:_l,toBase(c){return c.map(k=>k<Zu?k/16:Ft(k,1.8))},fromBase(c){return c.map(k=>k>=$u?Ft(k,1/1.8):16*k)},formats:{color:{id:"prophoto-rgb"}}}),qu=new Vt({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:Go,fromBase(c){let[k,F,K]=c,tt;const ot=2e-4;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[k,Math.sqrt(Ft(F,2)+Ft(K,2)),Qo(tt)]},toBase(c){let[k,F,K]=c,tt,ot;return isNaN(K)?(tt=0,ot=0):(tt=F*Math.cos(K*Math.PI/180),ot=F*Math.sin(K*Math.PI/180)),[k,tt,ot]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const As=203,Ts=2610/Ft(2,14),Ju=Ft(2,14)/2610,Qu=2523/Ft(2,5),ks=Ft(2,5)/2523,Ps=3424/Ft(2,12),Ls=2413/Ft(2,7),Es=2392/Ft(2,7);var tf=new Ee({id:"rec2100pq",name:"REC.2100-PQ",base:tr,toBase(c){return c.map(function(k){return Ft(Math.max(Ft(k,ks)-Ps,0)/(Ls-Es*Ft(k,ks)),Ju)*1e4/As})},fromBase(c){return c.map(function(k){let F=Math.max(k*As/1e4,0),K=Ps+Ls*Ft(F,Ts),tt=1+Es*Ft(F,Ts);return Ft(K/tt,Qu)})},formats:{color:{id:"rec2100-pq"}}});const Os=.17883277,Ds=.28466892,js=.55991073,gr=3.7743;var ef=new Ee({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:tr,toBase(c){return c.map(function(k){return k<=.5?Ft(k,2)/3*gr:(Math.exp((k-js)/Os)+Ds)/12*gr})},fromBase(c){return c.map(function(k){return k/=gr,k<=1/12?Math.sqrt(3*k):Os*Math.log(12*k-Ds)+js})},formats:{color:{id:"rec2100-hlg"}}});const Rl={};li.add("chromatic-adaptation-start",c=>{c.options.method&&(c.M=zl(c.W1,c.W2,c.options.method))});li.add("chromatic-adaptation-end",c=>{c.M||(c.M=zl(c.W1,c.W2,c.options.method))});function er({id:c,toCone_M:k,fromCone_M:F}){Rl[c]=arguments[0]}function zl(c,k,F="Bradford"){let K=Rl[F],[tt,ot,nt]=ge(K.toCone_M,c),[st,ct,pt]=ge(K.toCone_M,k),ut=[[st/tt,0,0],[0,ct/ot,0],[0,0,pt/nt]],ft=ge(ut,K.toCone_M);return ge(K.fromCone_M,ft)}er({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]});er({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]});er({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]});er({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]});Object.assign(We,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});We.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const of=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],rf=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var Fl=new Ee({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:We.ACES,toXYZ_M:of,fromXYZ_M:rf,formats:{color:{}}});const bo=Ft(2,-16),mr=-.35828683,xo=(Math.log2(65504)+9.72)/17.52;var nf=new Ee({id:"acescc",name:"ACEScc",coords:{r:{range:[mr,xo],name:"Red"},g:{range:[mr,xo],name:"Green"},b:{range:[mr,xo],name:"Blue"}},referred:"scene",base:Fl,toBase(c){const k=-.3013698630136986;return c.map(function(F){return F<=k?(Ft(2,F*17.52-9.72)-bo)*2:F<xo?Ft(2,F*17.52-9.72):65504})},fromBase(c){return c.map(function(k){return k<=0?(Math.log2(bo)+9.72)/17.52:k<bo?(Math.log2(bo+k*.5)+9.72)/17.52:(Math.log2(k)+9.72)/17.52})},formats:{color:{}}}),Is=Object.freeze({__proto__:null,A98RGB:Yu,A98RGB_Linear:Bl,ACEScc:nf,ACEScg:Fl,HSL:Il,HSV:Nl,HWB:Wu,ICTCP:Nr,JzCzHz:Ir,Jzazbz:Pl,LCH:Zi,Lab:De,Lab_D65:jr,OKLCH:qu,OKLab:Go,P3:Sl,P3_Linear:Cl,ProPhoto:Ku,ProPhoto_Linear:_l,REC_2020:xl,REC_2020_Linear:tr,REC_2100_HLG:ef,REC_2100_PQ:tf,XYZ_ABS_D65:Mn,XYZ_D50:Sn,XYZ_D65:Re,sRGB:qi,sRGB_Linear:wl});class ee{constructor(...k){let F;k.length===1&&(F=re(k[0]));let K,tt,ot;F?(K=F.space||F.spaceId,tt=F.coords,ot=F.alpha):[K,tt,ot]=k,Object.defineProperty(this,"space",{value:Vt.get(K),writable:!1,enumerable:!0,configurable:!0}),this.coords=tt?tt.slice():[0,0,0],this.alpha=ot<1?ot:1;for(let nt=0;nt<this.coords.length;nt++)this.coords[nt]==="NaN"&&(this.coords[nt]=NaN);for(let nt in this.space.coords)Object.defineProperty(this,nt,{get:()=>this.get(nt),set:st=>this.set(nt,st)})}get spaceId(){return this.space.id}clone(){return new ee(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...k){let F=Xd(this,...k);return F.color=new ee(F.color),F}static get(k,...F){return k instanceof ee?k:new ee(k,...F)}static defineFunction(k,F,K=F){let{instance:tt=!0,returns:ot}=K,nt=function(...st){let ct=F(...st);if(ot==="color")ct=ee.get(ct);else if(ot==="function<color>"){let pt=ct;ct=function(...ut){let ft=pt(...ut);return ee.get(ft)},Object.assign(ct,pt)}else ot==="array<color>"&&(ct=ct.map(pt=>ee.get(pt)));return ct};k in ee||(ee[k]=nt),tt&&(ee.prototype[k]=function(...st){return nt(this,...st)})}static defineFunctions(k){for(let F in k)ee.defineFunction(F,k[F],k[F])}static extend(k){if(k.register)k.register(ee);else for(let F in k)ee.defineFunction(F,k[F])}}ee.defineFunctions({get:ze,getAll:no,set:hi,setAll:bl,to:_e,equals:Hd,inGamut:Wi,toGamut:ci,distance:Ml,toString:Fo});Object.assign(ee,{util:Ed,hooks:li,WHITES:We,Space:Vt,spaces:Vt.registry,parse:vl,defaults:Ke});for(let c of Object.keys(Is))Vt.register(Is[c]);for(let c in Vt.registry)Br(c,Vt.registry[c]);li.add("colorspace-init-end",c=>{var k;Br(c.id,c),(k=c.aliases)==null||k.forEach(F=>{Br(F,c)})});function Br(c,k){Object.values(k.coords).map(K=>K.name);let F=c.replace(/-/g,"_");Object.defineProperty(ee.prototype,F,{get(){let K=this.getAll(c);return typeof Proxy=="undefined"?K:new Proxy(K,{has:(tt,ot)=>{try{return Vt.resolveCoord([k,ot]),!0}catch(nt){}return Reflect.has(tt,ot)},get:(tt,ot,nt)=>{if(ot&&typeof ot!="symbol"&&!(ot in tt)){let{index:st}=Vt.resolveCoord([k,ot]);if(st>=0)return tt[st]}return Reflect.get(tt,ot,nt)},set:(tt,ot,nt,st)=>{if(ot&&typeof ot!="symbol"&&!(ot in tt)||ot>=0){let{index:ct}=Vt.resolveCoord([k,ot]);if(ct>=0)return tt[ct]=nt,this.setAll(c,tt),!0}return Reflect.set(tt,ot,nt,st)}})},set(K){this.setAll(c,K)},configurable:!0,enumerable:!0})}ee.extend(Wo);ee.extend({deltaE:Gi});Object.assign(ee,{deltaEMethods:Wo});ee.extend(zu);ee.extend({contrast:cu});ee.extend(du);ee.extend(Ud);ee.extend(Gu);ee.extend(Lo);const sf=.15,Xe=c=>typeof c=="string"?new ee(c):c,Qe=c=>c.toString({format:"hex"}),Gl=(...c)=>{const k=c.map(Xe);if(k.length<2)return()=>Qe(k[0]);const K=k.slice(0,-1).map((tt,ot)=>[tt,k[ot+1]]).map(([tt,ot])=>{const nt=ee.range(tt,ot,{outputSpace:"srgb"});return st=>Qe(nt(st))});return tt=>{if(tt<=0)return Qe(k[0]);if(tt>=1)return Qe(k[k.length-1]);const ot=Math.floor(tt*K.length);return K[ot](tt*K.length-ot)}},af=(c,...k)=>{const F=k.map(Xe);if(F.length<2)return Array(c).fill(Qe(F[0]));const K=Gl(...F);return Array(c).fill(0).map((tt,ot)=>K(ot/(c-1)))},Wl=c=>Qe(Xe(c).set("hsl.s",0)),lf=(c,k)=>Qe(ee.mix(c,k,.5,{outputSpace:"srgb"})),hf=(c,k)=>Math.abs(Xe(k).hsl.h-Xe(c).hsl.h),Ji=(c,k)=>{const F=Xe(c);return F.hsv.v=F.hsv.v+F.hsv.v*k,F.hsv.v>100&&(F.hsv.s=F.hsv.s-(F.hsv.v-100)/1.677),F.hsv.s=Math.max(0,Math.min(100,F.hsv.s)),F.hsv.v=Math.max(0,Math.min(100,F.hsv.v)),Qe(F)},Xl=c=>({R:c.srgb[0]*255,G:c.srgb[1]*255,B:c.srgb[2]*255}),ao=c=>{const{R:k,G:F,B:K}=Xl(c);return 1-(.299*k+.587*F+.114*K)/255};function cf(c){return ao(c)<.9}const pf=(c,k=.05,F=1)=>{const K=Xe(c),{R:tt,G:ot,B:nt}=Xl(K),st=ao(K);let ct=k;cf(K)&&(ct*=-.6),ct*=Math.exp(st*1.2);const pt=Math.min(Math.max(Math.round(255*ct)+tt,0),255),ut=Math.min(Math.max(Math.round(255*ct)+ot,0),255),ft=Math.min(Math.max(Math.round(255*ct)+nt,0),255);return`rgba(${pt}, ${ut}, ${ft}, ${F})`},Hl=(c,k)=>{const F=Xe(c);return F.alpha=k,Qe(F)},df=(c,k,F)=>ee.steps(new ee(c),new ee(k),{steps:F}).map(K=>new ee(K).to("srgb").toString());function uf(c){return k=>{var pt,ut,ft;const{steps:F,minColor:K,maxColor:tt}=c,ot=(pt=c.minValue)!=null?pt:Math.min(...k),nt=(ut=c.maxValue)!=null?ut:Math.max(...k),st=(ft=c.midValue)!=null?ft:ot<0&&nt>0?0:(ot+nt)/2,ct=Yl(K!=null?K:No,tt!=null?tt:No,ot,st,nt,F);return B=>ct(B)}}const Yl=(c,k,F,K,tt,ot=0)=>{const nt=mf(F,K,tt),st=hf(c,k)>90?[c,Wl(lf(c,k)),k]:[c,k];return ot<=0?ff(nt,st):gf(nt,ot,st)},ff=(c,k)=>{const F=Gl(...k);return K=>F(c(K))},gf=(c,k,F)=>{const K=af(k,...F);return tt=>{const ot=Math.floor(c(tt)*k);return K[Math.min(Math.max(ot,0),k-1)]}},mf=(c,k,F)=>K=>K==c&&K==F?.5:K<k?.5*((K-c)/(k-c)):.5+.5*(K-k)/(F-k);function Ul(c){let k;switch(typeof c=="string"?k=Cn(c):k=c,k.type){case"uniform":return{type:"Static",getColor:kd(k)};case"conditional":return{type:"Absolute",getColor:Pd(k)};case"range":return{type:"Relative",getColor:uf(k)}}}const Tn=c=>{const{getValueFromDataStructure:k,applyColorToDataStructure:F}=c;return(K,tt)=>{const ot=Ul(tt);let nt;switch(ot.type){case"Static":nt=()=>ot.getColor();break;case"Absolute":nt=st=>ot.getColor(st);break;case"Relative":{const st=K.map(k),ct=ot.getColor(st);nt=pt=>ct(pt);break}}return K.map(st=>{const ct=k(st),pt=nt(ct);return F(st,pt)})}},yf=Tn({getValueFromDataStructure:c=>c.value,applyColorToDataStructure:(c,k)=>Bt(Tt({},c),{color:k})}),Vl=({x:c,y:k,breakBy:F})=>Zl(k)&&$l(c)&&F.length===0,vf=({x:c,y:k,breakBy:F})=>$l(c)&&Zl(k)&&F.length>0,$l=c=>c.length===0,Zl=c=>c.length>0,bf=(c,k)=>c*(k/100),xf=(c,k)=>c===0?0:Math.abs(k)/Math.abs(c)*100,Eo=c=>`${c}%`,_r=(c,k)=>{var ft;if(k.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const F=c.x.length;let K=$i(k,c.x.map(({column:{name:B}})=>B));K=K.map((B,it)=>Bt(Tt({},B),{direction:Kl(c.x[it].sortType)}));const tt=$i(k,c.breakBy.map(({column:{name:B}})=>B)),ot=c.y.filter(({sortType:B})=>B&&B!=="sortNone"),nt=K.length>1?1:0,st=ql(k,ot,K,((ft=K[nt])==null?void 0:ft.direction)===0?yn:void 0),ct=c.y.map(({column:{name:B}})=>B),pt=c.breakBy.length>0?Mf(k,st,K,ct[0],tt,c.breakBy):Cf(k,st,K,ct,c.y);return Bt(Tt({},pt),{xAxisCount:F,type:"cartesian"})},Kl=c=>{switch(c){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},ql=(c,k,F,K)=>{if(F.length===0)return[{key:"",xValues:[""],rawValues:[]}];const tt=k.map(({column:{name:ft}})=>({column:ft,agg:"sum",title:ft}));if(K){const ft={column:K,title:K,agg:"min"};tt.push(ft)}const ot=al(c,F,tt),nt=[];let st=0;if(F.length===2){st=1;const B=ni(ot,F[0].name);B&&nt.push(B)}if(k.map(ft=>{const B=ni(ot,ft.column.name);return B&&nt.push(Bt(Tt({},B),{direction:ft.sortType==="sortAsc"?1:-1})),ft}),K){const ft=ni(ot,K);ft&&nt.push(ft)}if(F.length>0){const ft=ni(ot,F[st].name);ft&&nt.push(ft)}const ct=sl(ot,nt),pt=$i(ct,F.map(ft=>ft.name)),ut=ll(ct,pt);return ut.rows.map(ft=>{const B=Li(ft,ut.columns),it=B.map(V=>V.displayValue),W=B.map(V=>{var $;return($=V.rawValue)!=null?$:V.displayValue}),R=B.map(V=>{var $;return($=V==null?void 0:V.compareValue)==null?void 0:$.value});return{key:W.join(","),xValues:it,rawValues:W,compareValues:R}})},Jl=(c,k,F)=>{var nt,st;const K=F?hl(c,F):1e-5,{color:tt,rawValue:ot}=(st=c[(nt=F==null?void 0:F.index)!=null?nt:0])!=null?st:{};return Tt({rawValue:ot,xValue:k.rawValues,xDisplayValue:k.xValues,xCompareValue:k.compareValues,value:K===void 0?NaN:K,blur:F?cl(c,F):void 0},tt&&{color:tt})},Cf=(c,k,F,K,tt)=>{const ot=K.length>0?$i(c,K):[void 0],nt=tt.reduce((pt,ut)=>(pt[ut.column.name]=ut,pt),{}),st=bn(c.rows,F),ct=ot.map(pt=>{var W,R;let ut=k.map(H=>{const V=st[H.key],$=V?V[0]:[];return Jl($,H,pt)});const ft=(W=pt==null?void 0:pt.name)!=null?W:"",B=ft?xe(nt[ft]):"",it=(R=nt[ft])==null?void 0:R.color;return it&&(ut=yf(ut,it)),{name:ft,title:B,data:ut}});return{xValues:k,series:ct}},wf=(c,k,F)=>Li(c,k).map((K,tt)=>{const ot=he(F[tt].numberFormatConfig);return Rt.isNumber(k[tt].type)?Ce(ot,parseFloat(K.displayValue)):K.displayValue}).join(","),Sf=(c,k)=>Li(c,k).map(({rawValue:F})=>F),Mf=(c,k,F,K,tt,ot)=>{const nt=ni(c,K),pt=vn(c.rows,tt).map(ut=>{const ft=ut[0];return{seriesName:wf(ft,tt,ot),seriesValues:Sf(ft,tt),rowsByXColumns:bn(ut,F)}}).map(ut=>{const ft=k.map(B=>{const it=ut.rowsByXColumns[B.key],W=it?it[0]:[];return Jl(W,B,nt)});return{name:ut.seriesName,data:ft,custom:{rawValue:ut.seriesValues}}});return{xValues:k,series:pt}},He=(c,k)=>{var K;const F=c==null?void 0:c.filter(tt=>tt);return(K=F&&F[k%F.length])!=null?K:Td[k%10]};var Af=function(k){return Tf(k)&&!kf(k)};function Tf(c){return!!c&&typeof c=="object"}function kf(c){var k=Object.prototype.toString.call(c);return k==="[object RegExp]"||k==="[object Date]"||Ef(c)}var Pf=typeof Symbol=="function"&&Symbol.for,Lf=Pf?Symbol.for("react.element"):60103;function Ef(c){return c.$$typeof===Lf}function Of(c){return Array.isArray(c)?[]:{}}function Qi(c,k){return k.clone!==!1&&k.isMergeableObject(c)?Ai(Of(c),c,k):c}function Df(c,k,F){return c.concat(k).map(function(K){return Qi(K,F)})}function jf(c,k){if(!k.customMerge)return Ai;var F=k.customMerge(c);return typeof F=="function"?F:Ai}function If(c){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(c).filter(function(k){return Object.propertyIsEnumerable.call(c,k)}):[]}function Ns(c){return Object.keys(c).concat(If(c))}function Ql(c,k){try{return k in c}catch(F){return!1}}function Nf(c,k){return Ql(c,k)&&!(Object.hasOwnProperty.call(c,k)&&Object.propertyIsEnumerable.call(c,k))}function Bf(c,k,F){var K={};return F.isMergeableObject(c)&&Ns(c).forEach(function(tt){K[tt]=Qi(c[tt],F)}),Ns(k).forEach(function(tt){Nf(c,tt)||(Ql(c,tt)&&F.isMergeableObject(k[tt])?K[tt]=jf(tt,F)(c[tt],k[tt],F):K[tt]=Qi(k[tt],F))}),K}function Ai(c,k,F){F=F||{},F.arrayMerge=F.arrayMerge||Df,F.isMergeableObject=F.isMergeableObject||Af,F.cloneUnlessOtherwiseSpecified=Qi;var K=Array.isArray(k),tt=Array.isArray(c),ot=K===tt;return ot?K?F.arrayMerge(c,k,F):Bf(c,k,F):Qi(k,F)}Ai.all=function(k,F){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(K,tt){return Ai(K,tt,F)},{})};var _f=Ai,Rf=_f;const Be=Kr(Rf),zf={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},Ff=c=>{switch(c){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},Gf=c=>{if((c==null?void 0:c.enabled)===!1||!c)return;const{text:k,textStyle:F}=c;return{title:Tt(Tt({},k!==void 0&&{text:k}),F!==void 0&&{style:F})}},Wf=c=>{if(!c)return;const{layout:k,textStyle:F,marginBottom:K,marginTop:tt,distance:ot,width:nt,hoverTextStyle:st,hiddenTextStyle:ct}=c||{};return Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt({},k!==void 0&&{layout:k}),F!==void 0&&{itemStyle:F}),K!==void 0&&{itemMarginBottom:K}),tt!==void 0&&{itemMarginTop:tt}),ot!==void 0&&{itemDistance:ot}),nt!==void 0&&{itemWidth:nt}),st!==void 0&&{itemHoverStyle:st}),ct!==void 0&&{itemHiddenStyle:ct})},Xf=c=>{if(!c)return;const{radius:k,height:F,width:K,padding:tt,squared:ot}=c;return Tt(Tt(Tt(Tt(Tt({},k!==void 0&&{symbolRadius:k}),F!==void 0&&{symbolHeight:F}),K!==void 0&&{symbolWidth:K}),tt!==void 0&&{symbolPadding:tt}),ot!==void 0&&{squareSymbol:ot})},Hf=c=>{const st=c,{title:k,items:F,symbols:K,xOffset:tt,yOffset:ot}=st,nt=Te(st,["title","items","symbols","xOffset","yOffset"]);return Tt(Tt(Tt(Tt(Tt(Tt({},nt),Gf(k)),Wf(F)),Xf(K)),tt!==void 0&&{x:tt}),ot!==void 0&&{y:ot})},ui=c=>{const k={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!c)return k;const nt=c,{position:F}=nt,K=Te(nt,["position"]),tt=Ff(F||null),ot=Hf(K);return Bt(Tt(Tt(Tt({},k),tt),ot),{itemStyle:Tt(Tt({},zf),ot.itemStyle)})},kn=c=>{var k;return(c==null?void 0:c.position)==="right"||(c==null?void 0:c.align)==="right"&&((k=c==null?void 0:c.items)==null?void 0:k.layout)==="vertical"&&(c==null?void 0:c.verticalAlign)==="middle"},Ae="#d1d1d7",th=25,eh=[-10,-20,-30,-40,-50,-60,-70,-80,-90],we={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"none"},to={fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},Rr={labels:{overflow:"none",enabled:!0,autoRotation:eh,style:we},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:th,style:we},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae},Bs={labels:{autoRotation:eh,style:we},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:th,enabled:!1,style:we},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae,minorGridLineDashStyle:"Dot",stackLabels:{style:to,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999,x:0,y:0},showLastLabel:!0},Yf=(c,k,F)=>{switch(c){case"line":return fi;case"area":return Be(fi,_s(F));case"bar":return Be(fi,Vf(F));case"column":return Be(fi,Uf(F));case"polar":return Be(fi,$f(k));case"arearange":return Be(fi,_s(F));default:return fi}},fi={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:ui(),credits:{enabled:!1},exporting:{enabled:!0},plotOptions:{area:{className:"area-series--without-pointer-events",states:{inactive:{enabled:!0,opacity:.3}}},series:{dataLabels:{enabled:!1,crop:!1,style:Bt(Tt({},we),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},_s=c=>({plotOptions:{area:Tt({},c&&{lineColor:"#ffffff"}),series:Tt({},c&&{stacking:c})}}),Uf=c=>({plotOptions:{column:Tt({groupPadding:.1,pointPadding:.01},c&&{borderWidth:0}),series:Tt({},c&&{stacking:c})}}),Vf=c=>({plotOptions:{bar:Tt({groupPadding:.1,pointPadding:.01},c&&{borderWidth:0}),series:Tt({},c&&{stacking:c})}});function $f(c){return{plotOptions:{series:Bt(Tt({},c!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const ih={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},oh="regular",rh="regular",nh="regular",Zf=c=>c!=="regular",Rs=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:we},reversed:!0,neckWidth:eg,neckHeight:0,width:sh}),Kf=()=>({dataLabels:{enabled:!1}}),qf=c=>{const{enabled:k,showCategories:F,showValue:K,showPercent:tt}=c;return{enabled:k&&[F,K,tt].find(Boolean)!==void 0}},Jf=(c,k)=>k.showCategories?c.point.name||c.series.name:"",Qf=(c,k,F)=>{if(!k.showValue)return"";const K=Ce(F,c.y);return k.showValue&&k.showCategories?`<br />${K}`:K},tg=(c,k)=>{var tt,ot;if(!k.showPercent)return"";const F=((ot=(tt=c.point)==null?void 0:tt.custom)==null?void 0:ot.number1)||0,K=k.showDecimals?F.toFixed(1):`${Math.round(F)}`;return` <b>${Eo(K)}</b>`},sh=66.6,eg=15,ig=c=>sh,og={wide:60,regular:30,narrow:15},rg=(c,k)=>Math.round(bf(c,og[k])),ng=c=>c==="pinched"?30:0,ah=(c,k,F)=>{var ft;const{funnelType:K=rh,funnelSize:tt=oh,funnelDirection:ot=nh,funnelLabels:nt=ih}=c,st=Bt(Tt({},Kf()),{dataLabels:qf(nt)}),ct=he((ft=k.y[0])==null?void 0:ft.numberFormatConfig),pt=ig();return{funnel:Bt(Tt({},Rs()),{dataLabels:Bt(Tt(Tt({},Rs().dataLabels),F?{color:F.chart.textColor,style:{fontFamily:F.typography.fontFamily}}:null),{enabled:nt.enabled&&(nt.showCategories||nt.showValue||nt.showPercent),formatter:function(){const B=Jf(this,nt),it=Qf(this,nt,ct),W=tg(this,nt);return`${B}${it}${W}`}}),reversed:Zf(ot),neckWidth:Eo(rg(pt,tt)),neckHeight:Eo(ng(K)),width:Eo(pt)}),series:st}},lh={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},hh="classic",sg={classic:"0%",donut:"40%",ring:"80%"},ag=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:we},innerSize:"0%"}),lg=()=>({dataLabels:{enabled:!1}}),ch=(c=hh,k=lh,F,K)=>{var nt;const tt=ag(),ot=lg();if(tt.innerSize=sg[c],K&&(tt.dataLabels.style={color:K.chart.textColor,fontFamily:K.typography.fontFamily,textOutline:"none"}),k.enabled){const st=k.showCategories||k.showValue,{dataLabels:ct}=tt;ct.enabled=st,ct.showPercentLabels=k.showPercent,ct.showDecimals=k.showDecimals;const pt=he((nt=F.y[0])==null?void 0:nt.numberFormatConfig);ct.formatter=function(){const ut=this.point.name||this.series.name,ft=this.y;return`<div>
2
+ ${k.showCategories?ut:""}
3
+ ${k.showCategories&&k.showValue?"<br />":""}
4
+ ${k.showValue?Ce(pt,ft):""}
5
+ </div>`},ot.dataLabels&&(ot.dataLabels.enabled=st)}return{pie:tt,series:ot}};function Pn(){}function di(c,k){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!k,this.__index__=0,this.__values__=void 0}di.prototype=Rt.baseCreate(Pn.prototype);di.prototype.constructor=di;var zr=Rt.WeakMap&&new Rt.WeakMap;function ph(){}var Ln=zr?function(c){return zr.get(c)}:ph,zs={},hg=Object.prototype,cg=hg.hasOwnProperty;function Oo(c){for(var k=c.name+"",F=zs[k],K=cg.call(zs,k)?F.length:0;K--;){var tt=F[K],ot=tt.func;if(ot==null||ot==c)return tt.name}return k}var pg=4294967295;function Ti(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pg,this.__views__=[]}Ti.prototype=Rt.baseCreate(Pn.prototype);Ti.prototype.constructor=Ti;function dg(c){if(c instanceof Ti)return c.clone();var k=new di(c.__wrapped__,c.__chain__);return k.__actions__=Rt.copyArray(c.__actions__),k.__index__=c.__index__,k.__values__=c.__values__,k}var ug=Object.prototype,fg=ug.hasOwnProperty;function Xo(c){if(Rt.isObjectLike(c)&&!Rt.isArray(c)&&!(c instanceof Ti)){if(c instanceof di)return c;if(fg.call(c,"__wrapped__"))return dg(c)}return new di(c)}Xo.prototype=Pn.prototype;Xo.prototype.constructor=Xo;function Fr(c){var k=Oo(c),F=Xo[k];if(typeof F!="function"||!(k in Ti.prototype))return!1;if(c===F)return!0;var K=Ln(F);return!!K&&c===K[0]}var gg="Expected a function",mg=8,yg=32,vg=128,bg=256;function xg(c){return Rt.flatRest(function(k){for(var F=k.length,K=F,tt=di.prototype.thru;K--;){var ot=k[K];if(typeof ot!="function")throw new TypeError(gg);if(tt&&!nt&&Oo(ot)=="wrapper")var nt=new di([],!0)}for(K=nt?K:F;++K<F;){ot=k[K];var st=Oo(ot),ct=st=="wrapper"?Ln(ot):void 0;ct&&Fr(ct[0])&&ct[1]==(vg|mg|yg|bg)&&!ct[4].length&&ct[9]==1?nt=nt[Oo(ct[0])].apply(nt,ct[3]):nt=ot.length==1&&Fr(ot)?nt[st]():nt.thru(ot)}return function(){var pt=arguments,ut=pt[0];if(nt&&pt.length==1&&Rt.isArray(ut))return nt.plant(ut).value();for(var ft=0,B=F?k[ft].apply(this,pt):ut;++ft<F;)B=k[ft].call(this,B);return B}})}var ir=xg();const dh=c=>c.compareValues?c.compareValues[0]:NaN,En=c=>{if(c!==void 0){switch(c){case Rt.DateLevels.Years:return"yyyy";case Rt.DateLevels.Quarters:return"yyyy Q";case Rt.DateLevels.Months:return"MM/yyyy";case Rt.DateLevels.Weeks:return"ww yyyy";case Rt.DateLevels.Days:return"M/d/yy";case Rt.DateLevels.AggHours:return"HH";case Rt.DateLevels.Hours:return"M/d/yy HH";case Rt.DateLevels.AggMinutesRoundTo30:return"HH:mm";case Rt.DateLevels.MinutesRoundTo30:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo15:return"HH:mm";case Rt.DateLevels.MinutesRoundTo15:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo1:return"HH:mm";case Rt.DateLevels.Minutes:return"HH:mm";case Rt.DateLevels.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}};var Gr={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(c,k){(function(F,K){c.exports=K()})(self,()=>(()=>{var F={50:function(ot,nt,st){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(4501));nt.default=function(ut){var ft,B,it=ut.objectEach,W=ut.pick,R="legend-hovered",H=document.documentElement.ontouchstart!==void 0;function V(){clearTimeout(ft),clearTimeout(B),ft=null,B=null}ut.wrap(ut.Legend.prototype,"renderItem",function($,Z){$.call(this,Z);var U=Z.chart?Z.chart:Z.series.chart,z=!!Z.series,I=U.options.$familyType==="pie",E=z?["graphic"]:["group","markerGroup"],M=Z.legendItem.group.element,P=z?Z.series.points:this.chart.series;function y(S){var x=[];return(S.yAxis||[]).forEach(function(p){p.options.stackLabels&&!p.options.stackLabels.allowOverlap&&it(p.stacking.stacks,function(g){it(g,function(r){r&&r.label&&(r.label.isStackLabel=!0),x.push(r.label)})})}),x}function h(){if(B=null,!ft){var S=w(Z),x={totalsRank:Number.MIN_SAFE_INTEGER};v(Z),m(S,x)}}function f(){ft=null,B||function(S){var x=[],p=[],g={totalsRank:Number.MIN_SAFE_INTEGER};(U.series||[]).forEach(function(a){x=x.concat(w(a)),a!==S&&a.visible&&v(a)});var r=y(U);m(p=p.concat(x,r),g)}(Z)}function m(S,x){U.hideOverlappingLabels(S,x)}function u(S){(U.series||[]).forEach(function(x){x===S&&(x.dataLabelCollections||["dataLabel"]).forEach(function(p){x.points.forEach(function(g){var r=g[String(p)];r&&r.visibility!=="hidden"&&(r.prevOpacity=r.opacity,r.opacitySetter(0,"opacity",r.element),r.prevVisibility=r.visibility,r.visibilitySetter("hidden","visibility",r.element))})})})}function v(S){var x=S.xAxis,p=x==null?void 0:x.min,g=x==null?void 0:x.max;(U.series||[]).forEach(function(r){r===S&&(r.dataLabelCollections||["dataLabel"]).forEach(function(a){r.points.forEach(function(t){var i=t[String(a)];x&&(t.x<p||t.x>g)||i&&i.visibility==="hidden"&&(i.prevOpacity=i.opacity,i.opacitySetter(1,"opacity",i.element),i.prevVisibility=i.visibility,i.visibilitySetter("visible","visibility",i.element))})})})}function w(S){var x=[],p=S.options.dataLabels,g=S.dataLabelCollections||["dataLabel","dataLabelsGroup"];return p&&(p.enabled||S._hasPointLabels)&&!p.allowOverlap&&S.visible&&g.forEach(function(r){S.points&&S.points.forEach(function(a){a[r]&&(a[r].labelrank=W(a.labelrank,a.shapeArgs&&a.shapeArgs.height),x.push(a[r]))})}),x}(0,pt.default)(P)&&(P=[]),H||(M.onmouseover=function(){if(Z.visible){V();var S=z&&Z.series.halo;S&&S.attr({d:"M 0 0"}),P.forEach(function(x){x!==Z&&x.visible&&(E.forEach(function(p){x[p]&&x[p].animate({opacity:.15},{duration:400})}),u(x))}),E.forEach(function(x){Z[x]&&Z[x].addClass(R)}),I||(B=setTimeout(h,100))}},M.onmouseout=function(){Z.visible&&(V(),P.forEach(function(S){S.visible&&S!==Z&&E.forEach(function(x){S[x]&&S[x].animate({opacity:1},{duration:400})})}),E.forEach(function(S){Z[S]&&Z[S].removeClass(R)}),I||(ft=setTimeout(f,100)))},M.addEventListener("click",function(){V();var S=[];P.forEach(function(p){p.visible?(E.forEach(function(g){p[g]&&p[g].animate({opacity:1},{duration:50})}),S=S.concat(w(p))):(E.forEach(function(g){p[g]&&p[g].animate({opacity:.25},{duration:150})}),u(p))});var x=y(U);m(S=S.concat(x))}))})}},123:(ot,nt,st)=>{st.d(nt,{A:()=>z});var ct=st(405);const pt=st(9600).A["__core-js_shared__"];var ut,ft=(ut=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",B=st(7942),it=st(1548),W=/^\[object .+?Constructor\]$/,R=Function.prototype,H=Object.prototype,V=R.toString,$=H.hasOwnProperty,Z=RegExp("^"+V.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const U=function(I){return!(!(0,B.A)(I)||(E=I,ft&&ft in E))&&((0,ct.A)(I)?Z:W).test((0,it.A)(I));var E},z=function(I,E){var M=function(P,y){return P==null?void 0:P[y]}(I,E);return U(M)?M:void 0}},362:function(ot,nt,st){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=void 0;var pt=st(807);Object.defineProperty(nt,"default",{enumerable:!0,get:function(){return ct(pt).default}})},368:function(ot,nt,st){var ct=this&&this.__assign||function(){return ct=Object.assign||function(V){for(var $,Z=1,U=arguments.length;Z<U;Z++)for(var z in $=arguments[Z])Object.prototype.hasOwnProperty.call($,z)&&(V[z]=$[z]);return V},ct.apply(this,arguments)},pt=this&&this.__importDefault||function(V){return V&&V.__esModule?V:{default:V}};Object.defineProperty(nt,"__esModule",{value:!0});var ut=pt(st(605)),ft=pt(st(710)),B=pt(st(9681)),it=pt(st(9170)),W=pt(st(6545)),R={enabled:!1,text:"Sisense",href:"http://www.sisense.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:ut.default.textColor,fontSize:"9px"}},H=ct({boost:{allowForce:!0,debug:{showSkipSummary:!0,timeBufferCopy:!0,timeKDTree:!0,timeRendering:!0,timeSeriesProcessing:!0,timeSetup:!0},enabled:!0,seriesThreshold:null,useGPUTranslations:!0},chart:{spacing:[10,10,10,10],backgroundColor:"rgba(222,222,222,0)"},credits:R,drilldown:{breadcrumbs:{buttonTheme:{fill:"#ffcb05","stroke-width":4,"stroke-linejoin":"round",stroke:"#ffcb05",padding:5,states:{hover:{fill:"#f2b900",stroke:"#f2b900"}},style:{color:"#3a4356"}},format:"Back",floating:!0,position:{align:"right"},showFullPath:!1}},exporting:{enabled:!1},global:{useUTC:!1},lang:{contextButtonTitle:"Chart context menu",decimalPoint:".",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadPNG:"Download PNG image",downloadSVG:"Download SVG vector image",drillUpText:"Back",invalidDate:"",loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],noData:"No data to display",numericSymbolMagnitude:1e3,numericSymbols:["k","M","G","T","P","E"],printChart:"Print chart",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],shortWeekdays:void 0,thousandsSep:" ",weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},legend:B.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:it.default,title:{margin:0},tooltip:ft.default},W.default);nt.default=H},405:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var ct=st(4044),pt=st(7942);const ut=function(ft){if(!(0,pt.A)(ft))return!1;var B=(0,ct.A)(ft);return B=="[object Function]"||B=="[object GeneratorFunction]"||B=="[object AsyncFunction]"||B=="[object Proxy]"}},605:(ot,nt)=>{Object.defineProperty(nt,"__esModule",{value:!0}),nt.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},622:function(ot,nt,st){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.arrayMax=nt.arrayMin=nt.correctFloat=nt.radiansToDegrees=nt.defined=nt.wrap=void 0;var pt=ct(st(8552));nt.wrap=function(ut,ft,B){var it=ut[ft];ut[ft]=function(){var W=Array.prototype.slice.call(arguments);return W.unshift(it),B.apply(this,W)}},nt.defined=function(ut,ft){return ft===void 0||ft==="null"||ft===""?ut!=null:(0,pt.default)(ut,ft)!==void 0},nt.radiansToDegrees=function(ut){return 180*ut/Math.PI},nt.correctFloat=function(ut){return parseFloat(ut.toPrecision(14))},nt.arrayMin=function(ut){for(var ft=ut.length,B=ut[0];ft--;)ut[ft]<B&&(B=ut[ft]);return B},nt.arrayMax=function(ut){for(var ft=ut.length,B=ut[0];ft--;)ut[ft]>B&&(B=ut[ft]);return B}},710:function(ot,nt,st){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(2805));nt.default=pt.default},807:function(ot,nt,st){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(5860)),ut=ct(st(2382));nt.default=function(ft){var B=ft.wrap;function it(W){this.hasCartesianSeries&&this.series.forEach(function(R){R.options&&R.options.stacking==="percent"&&(R.userOptions.data.forEach(function(H){H&&(H.originalY=H.y,H.y=Math.abs(H.y))}),R.yData=R.yData.map(Math.abs))}),W.apply(this,[].slice.call(arguments,1))}(0,ut.default)(ft),B(ft.Chart.prototype,"render",it),B(ft.Chart.prototype,"redraw",it),ft.Axis.prototype.renderUnsquish=function(){var W,R,H,V,$,Z=this.chart,U=Z.renderer,z=this.tickPositions,I=this.ticks,E=this.options.labels,M=E.style,P=this.horiz,y=this.getSlotWidth(),h=Math.max(1,Math.round(y-2*E.padding)),f={},m=this.labelMetrics(),u=M.textOverflow,v=0;if((0,pt.default)(E.rotation)||(f.rotation=E.rotation||0),z.forEach(function(w){var S=I[w];S.movedLabel&&S.replaceMovedLabel(),S&&S.label&&S.label.textPxLength>v&&(v=S.label.textPxLength)}),this.maxLabelLength=v,this.autoRotation)v>h&&v>m.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(y&&(W=h,!u))for(R="clip",V=z.length;!P&&V--;)$=z[V],(H=I[$].label)&&(H.styles&&H.styles.textOverflow==="ellipsis"?H.css({textOverflow:"clip"}):H.textPxLength>y&&H.css({width:y+"px"}),H.getBBox().height>this.len/z.length-(m.h-m.f)&&(H.specificTextOverflow="ellipsis"));f.rotation&&(W=v>.33*Z.chartHeight?.28*Z.chartHeight:v,u||(R="ellipsis")),this.labelAlign=E.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(f.align=this.labelAlign),z.forEach(function(w){var S=I[w],x=S&&S.label,p=M.width,g={};x&&(x.attr(f),S.shortenLabel?S.shortenLabel():W&&!p&&M.whiteSpace!=="nowrap"&&(W<x.textPxLength||x.element.tagName==="SPAN")?(g.width=W+"px",u||(g.textOverflow=x.specificTextOverflow||R),x.css(g)):x.styles&&x.styles.width&&!g.width&&!p&&x.css({width:null}),delete x.specificTextOverflow,S.rotation=f.rotation)},this),this.tickRotCorr=U.rotCorr(m.b,this.labelRotation||0,this.side!==0)}}},938:function(ot,nt,st){var ct=this&&this.__createBinding||(Object.create?function(B,it,W,R){R===void 0&&(R=W);var H=Object.getOwnPropertyDescriptor(it,W);H&&!("get"in H?!it.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return it[W]}}),Object.defineProperty(B,R,H)}:function(B,it,W,R){R===void 0&&(R=W),B[R]=it[W]}),pt=this&&this.__exportStar||function(B,it){for(var W in B)W==="default"||Object.prototype.hasOwnProperty.call(it,W)||ct(it,B,W)},ut=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=void 0,pt(st(7783),nt);var ft=st(7783);Object.defineProperty(nt,"default",{enumerable:!0,get:function(){return ut(ft).default}})},1039:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Core/Math3D.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.deg2rad,V=R.pick;function $(z,I,E,M){var P=I.options.chart.options3d,y=V(M,!!E&&I.inverted),h={x:I.plotWidth/2,y:I.plotHeight/2,z:P.depth/2,vd:V(P.depth,1)*V(P.viewDistance,0)},f=I.scale3d||1,m=H*P.beta*(y?-1:1),u=H*P.alpha*(y?-1:1),v={cosA:Math.cos(u),cosB:Math.cos(-m),sinA:Math.sin(u),sinB:Math.sin(-m)};return E||(h.x+=I.plotLeft,h.y+=I.plotTop),z.map(function(w){var S=function(p,g,r,a){return{x:a.cosB*p-a.sinB*r,y:-a.sinA*a.sinB*p+a.cosA*g-a.cosB*a.sinA*r,z:a.cosA*a.sinB*p+a.sinA*g+a.cosA*a.cosB*r}}((y?w.y:w.x)-h.x,(y?w.x:w.y)-h.y,(w.z||0)-h.z,v),x=Z(S,h,h.vd);return x.x=x.x*f+h.x,x.y=x.y*f+h.y,x.z=S.z*f+h.z,{x:y?x.y:x.x,y:y?x.x:x.y,z:x.z}})}function Z(z,I,E){var M=E>0&&E<Number.POSITIVE_INFINITY?E/(z.z+I.z+E):1;return{x:z.x*M,y:z.y*M}}function U(z){var I,E,M=0;for(I=0;I<z.length;I++)E=(I+1)%z.length,M+=z[I].x*z[E].y-z[E].x*z[I].y;return M/2}return{perspective:$,perspective3D:Z,pointCameraDistance:function(z,I){var E=I.options.chart.options3d,M=I.plotWidth/2,P=I.plotHeight/2,y=V(E.depth,1)*V(E.viewDistance,0)+E.depth;return Math.sqrt(Math.pow(M-V(z.plotX,z.x),2)+Math.pow(P-V(z.plotY,z.y),2)+Math.pow(y-V(z.plotZ,z.z),2))},shapeArea:U,shapeArea3D:function(z,I,E){return U($(z,I,E))}}}),it(B,"Core/Renderer/SVG/SVGElement3D.js",[B["Core/Color/Color.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=H.defined,Z=H.merge,U=H.objectEach,z=H.pick,I={};return I.base={initArgs:function(E){var M=this,P=M.renderer,y=P[M.pathType+"Path"](E),h=y.zIndexes;M.parts.forEach(function(f){var m={class:"highcharts-3d-"+f,zIndex:h[f]||0};P.styledMode&&(f==="top"?m.filter="url(#highcharts-brighter)":f==="side"&&(m.filter="url(#highcharts-darker)")),M[f]=P.path(y[f]).attr(m).add(M)}),M.attr({"stroke-linejoin":"round",zIndex:h.group}),M.originalDestroy=M.destroy,M.destroy=M.destroyParts,M.forcedSides=y.forcedSides},singleSetterForParts:function(E,M,P,y,h,f){var m={},u=[null,null,y||"attr",h,f],v=P&&P.zIndexes;return P?(v&&v.group&&this.attr({zIndex:v.group}),U(P,function(w,S){m[S]={},m[S][E]=w,v&&(m[S].zIndex=P.zIndexes[S]||0)}),u[1]=m):(m[E]=M,u[0]=m),this.processParts.apply(this,u)},processParts:function(E,M,P,y,h){var f=this;return f.parts.forEach(function(m){M&&(E=z(M[m],!1)),E!==!1&&f[m][P](E,y,h)}),f},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},I.cuboid=Z(I.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(E,M,P,y){if(typeof E=="string"&&M!==void 0){var h=E;(E={})[h]=M}return E.shapeArgs||$(E.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](E.shapeArgs||E)):R.prototype.attr.call(this,E,void 0,P,y)},animate:function(E,M,P){if($(E.x)&&$(E.y)){var y=this.renderer[this.pathType+"Path"](E),h=y.forcedSides;this.singleSetterForParts("d",null,y,"animate",M,P),this.attr({zIndex:y.zIndexes.group}),h!==this.forcedSides&&(this.forcedSides=h,this.renderer.styledMode||I.cuboid.fillSetter.call(this,this.fill))}else R.prototype.animate.call(this,E,M,P);return this},fillSetter:function(E){var M=this;return M.forcedSides=M.forcedSides||[],M.singleSetterForParts("fill",null,{front:E,top:V(E).brighten(M.forcedSides.indexOf("top")>=0?0:.1).get(),side:V(E).brighten(M.forcedSides.indexOf("side")>=0?0:-.1).get()}),M.color=M.fill=E,M}}),I}),it(B,"Core/Renderer/SVG/SVGRenderer3D.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Math3D.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGElement3D.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(t,i){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},I(t,i)},function(t,i){function o(){this.constructor=t}I(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),M=W.animObject,P=R.parse,y=H.charts,h=H.deg2rad,f=V.perspective,m=V.shapeArea,u=z.defined,v=z.extend,w=z.merge,S=z.pick,x=Math.cos,p=Math.sin,g=Math.PI,r=4*(Math.sqrt(2)-1)/3/(g/2),a=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return E(i,t),i.compose=function(o){var e=o.prototype,s=i.prototype;e.elements3d=Z,e.arc3d=s.arc3d,e.arc3dPath=s.arc3dPath,e.cuboid=s.cuboid,e.cuboidPath=s.cuboidPath,e.element3d=s.element3d,e.face3d=s.face3d,e.polyhedron=s.polyhedron,e.toLinePath=s.toLinePath,e.toLineSegments=s.toLineSegments},i.curveTo=function(o,e,s,n,l,b,T,D){var d=[],C=b-l;return b>l&&b-l>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,s,n,l,l+Math.PI/2,T,D))).concat(this.curveTo(o,e,s,n,l+Math.PI/2,b,T,D)):b<l&&l-b>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,s,n,l,l-Math.PI/2,T,D))).concat(this.curveTo(o,e,s,n,l-Math.PI/2,b,T,D)):[["C",o+s*Math.cos(l)-s*r*C*Math.sin(l)+T,e+n*Math.sin(l)+n*r*C*Math.cos(l)+D,o+s*Math.cos(b)+s*r*C*Math.sin(b)+T,e+n*Math.sin(b)-n*r*C*Math.cos(b)+D,o+s*Math.cos(b)+T,e+n*Math.sin(b)+D]]},i.prototype.toLinePath=function(o,e){var s=[];return o.forEach(function(n){s.push(["L",n.x,n.y])}),o.length&&(s[0][0]="M",e&&s.push(["Z"])),s},i.prototype.toLineSegments=function(o){var e=[],s=!0;return o.forEach(function(n){e.push(s?["M",n.x,n.y]:["L",n.x,n.y]),s=!s}),e},i.prototype.face3d=function(o){var e=this,s=this.createElement("path");return s.vertexes=[],s.insidePlotArea=!1,s.enabled=!0,s.attr=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=S(n.enabled,this.enabled),this.vertexes=S(n.vertexes,this.vertexes),this.insidePlotArea=S(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=f(this.vertexes,l,this.insidePlotArea),T=e.toLinePath(b,!0),D=m(b);n.d=T,n.visibility=this.enabled&&D>0?"inherit":"hidden"}return $.prototype.attr.apply(this,arguments)},s.animate=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=S(n.enabled,this.enabled),this.vertexes=S(n.vertexes,this.vertexes),this.insidePlotArea=S(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=f(this.vertexes,l,this.insidePlotArea),T=e.toLinePath(b,!0),D=m(b),d=this.enabled&&D>0?"visible":"hidden";n.d=T,this.attr("visibility",d)}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.polyhedron=function(o){var e=this,s=this.g(),n=s.destroy;return this.styledMode||s.attr({"stroke-linejoin":"round"}),s.faces=[],s.destroy=function(){for(var l=0;l<s.faces.length;l++)s.faces[l].destroy();return n.call(this)},s.attr=function(l,b,T,D){if(typeof l=="object"&&u(l.faces)){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var d=0;d<l.faces.length;d++)e.styledMode&&delete l.faces[d].fill,s.faces[d].attr(l.faces[d],null,T,D);delete l.faces}return $.prototype.attr.apply(this,arguments)},s.animate=function(l,b,T){if(l&&l.faces){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var D=0;D<l.faces.length;D++)s.faces[D].animate(l.faces[D],b,T);delete l.faces}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.element3d=function(o,e){var s=this.g();return v(s,this.elements3d[o]),s.initArgs(e),s},i.prototype.cuboid=function(o){return this.element3d("cuboid",o)},i.prototype.cuboidPath=function(o){var e,s,n,l,b,T,D,d,C=o.x||0,A=o.y||0,N=o.z||0,_=o.height||0,L=o.width||0,O=o.depth||0,j=y[this.chartIndex],Y=j.options.chart.options3d.alpha,X=1e6,G=0,q=[{x:C,y:A,z:N},{x:C+L,y:A,z:N},{x:C+L,y:A+_,z:N},{x:C,y:A+_,z:N},{x:C,y:A+_,z:N+O},{x:C+L,y:A+_,z:N+O},{x:C+L,y:A,z:N+O},{x:C,y:A,z:N+O}],Q=[];function J(lt){return _===0&&lt>1&&lt<6?{x:q[lt].x,y:q[lt].y+10,z:q[lt].z}:q[0].x===q[7].x&&lt>=4?{x:q[lt].x+10,y:q[lt].y,z:q[lt].z}:O===0&&lt<2||lt>5?{x:q[lt].x,y:q[lt].y,z:q[lt].z+10}:q[lt]}function rt(lt){return q[lt]}return q=f(q,j,o.insidePlotArea),s=(e=(d=function(lt,gt,mt){var bt=[[],-1],yt=lt.map(rt),ht=gt.map(rt),et=lt.map(J),at=gt.map(J);return m(yt)<0?bt=[yt,0]:m(ht)<0?bt=[ht,1]:mt&&(Q.push(mt),bt=m(et)<0?[yt,0]:m(at)<0?[ht,1]:[yt,0]),bt})([3,2,1,0],[7,6,5,4],"front"))[0],b=e[1],n=(e=d([1,6,7,0],[4,5,2,3],"top"))[0],T=e[1],l=(e=d([1,2,5,6],[0,7,4,3],"side"))[0],(D=e[1])===1?G+=X*(j.plotWidth-C):D||(G+=X*C),G+=10*(!T||Y>=0&&Y<=180||Y<360&&Y>357.5?j.plotHeight-A:10+A),b===1?G+=100*N:b||(G+=100*(1e3-N)),{front:this.toLinePath(s,!0),top:this.toLinePath(n,!0),side:this.toLinePath(l,!0),zIndexes:{group:Math.round(G)},forcedSides:Q,isFront:b,isTop:T}},i.prototype.arc3d=function(o){var e=this.g(),s=e.renderer,n=["x","y","r","innerR","start","end","depth"];function l(b){var T,D=!1,d={};for(T in b=w(b))n.indexOf(T)!==-1&&(d[T]=b[T],delete b[T],D=!0);return!!D&&[d,b]}return(o=w(o)).alpha=(o.alpha||0)*h,o.beta=(o.beta||0)*h,e.top=s.path(),e.side1=s.path(),e.side2=s.path(),e.inn=s.path(),e.out=s.path(),e.onAdd=function(){var b=e.parentGroup,T=e.attr("class");e.top.add(e),["out","inn","side1","side2"].forEach(function(D){e[D].attr({class:T+" highcharts-3d-side"}).add(b)})},["addClass","removeClass"].forEach(function(b){e[b]=function(){var T=arguments;["top","out","inn","side1","side2"].forEach(function(D){e[D][b].apply(e[D],T)})}}),e.setPaths=function(b){var T=e.renderer.arc3dPath(b),D=100*T.zTop;e.attribs=b,e.top.attr({d:T.top,zIndex:T.zTop}),e.inn.attr({d:T.inn,zIndex:T.zInn}),e.out.attr({d:T.out,zIndex:T.zOut}),e.side1.attr({d:T.side1,zIndex:T.zSide1}),e.side2.attr({d:T.side2,zIndex:T.zSide2}),e.zIndex=D,e.attr({zIndex:D}),b.center&&(e.top.setRadialReference(b.center),delete b.center)},e.setPaths(o),e.fillSetter=function(b){var T=P(b).brighten(-.1).get();return this.fill=b,this.side1.attr({fill:T}),this.side2.attr({fill:T}),this.inn.attr({fill:T}),this.out.attr({fill:T}),this.top.attr({fill:b}),this},["opacity","translateX","translateY","visibility"].forEach(function(b){e[b+"Setter"]=function(T,D){e[D]=T,["out","inn","side1","side2","top"].forEach(function(d){e[d].attr(D,T)})}}),e.attr=function(b){var T,D;return typeof b=="object"&&(D=l(b))&&(T=D[0],arguments[0]=D[1],v(e.attribs,T),e.setPaths(e.attribs)),$.prototype.attr.apply(e,arguments)},e.animate=function(b,T,D){var d,C,A,N=this.attribs,_="data-"+Math.random().toString(26).substring(2,9);return delete b.center,delete b.z,delete b.alpha,delete b.beta,(A=M(S(T,this.renderer.globalAnimation))).duration&&(d=l(b),e[_]=0,b[_]=1,e[_+"Setter"]=H.noop,d&&(C=d[0],A.step=function(L,O){function j(Y){return N[Y]+(S(C[Y],N[Y])-N[Y])*O.pos}O.prop===_&&O.elem.setPaths(w(N,{x:j("x"),y:j("y"),r:j("r"),innerR:j("innerR"),start:j("start"),end:j("end"),depth:j("depth")}))}),T=A),$.prototype.animate.call(this,b,T,D)},e.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),$.prototype.destroy.call(this)},e.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},e.show=function(b){this.top.show(b),this.out.show(b),this.inn.show(b),this.side1.show(b),this.side2.show(b)},e},i.prototype.arc3dPath=function(o){var e=o.x||0,s=o.y||0,n=o.start||0,l=(o.end||0)-1e-5,b=o.r||0,T=o.innerR||0,D=o.depth||0,d=o.alpha||0,C=o.beta||0,A=Math.cos(n),N=Math.sin(n),_=Math.cos(l),L=Math.sin(l),O=b*Math.cos(C),j=b*Math.cos(d),Y=T*Math.cos(C),X=T*Math.cos(d),G=D*Math.sin(C),q=D*Math.sin(d),Q=[["M",e+O*A,s+j*N]];(Q=Q.concat(i.curveTo(e,s,O,j,n,l,0,0))).push(["L",e+Y*_,s+X*L]),(Q=Q.concat(i.curveTo(e,s,Y,X,l,n,0,0))).push(["Z"]);var J=C>0?Math.PI/2:0,rt=d>0?0:Math.PI/2,lt=n>-J?n:l>-J?-J:n,gt=l<g-rt?l:n<g-rt?g-rt:l,mt=2*g-rt,bt=[["M",e+O*x(lt),s+j*p(lt)]];bt=bt.concat(i.curveTo(e,s,O,j,lt,gt,0,0)),l>mt&&n<mt?(bt.push(["L",e+O*x(gt)+G,s+j*p(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,mt,G,q))).push(["L",e+O*x(mt),s+j*p(mt)]),(bt=bt.concat(i.curveTo(e,s,O,j,mt,l,0,0))).push(["L",e+O*x(l)+G,s+j*p(l)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,l,mt,G,q))).push(["L",e+O*x(mt),s+j*p(mt)]),bt=bt.concat(i.curveTo(e,s,O,j,mt,gt,0,0))):l>g-rt&&n<g-rt&&(bt.push(["L",e+O*Math.cos(gt)+G,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,l,G,q))).push(["L",e+O*Math.cos(l),s+j*Math.sin(l)]),bt=bt.concat(i.curveTo(e,s,O,j,l,gt,0,0))),bt.push(["L",e+O*Math.cos(gt)+G,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,lt,G,q))).push(["Z"]);var yt=[["M",e+Y*A,s+X*N]];(yt=yt.concat(i.curveTo(e,s,Y,X,n,l,0,0))).push(["L",e+Y*Math.cos(l)+G,s+X*Math.sin(l)+q]),(yt=yt.concat(i.curveTo(e,s,Y,X,l,n,G,q))).push(["Z"]);var ht=[["M",e+O*A,s+j*N],["L",e+O*A+G,s+j*N+q],["L",e+Y*A+G,s+X*N+q],["L",e+Y*A,s+X*N],["Z"]],et=[["M",e+O*_,s+j*L],["L",e+O*_+G,s+j*L+q],["L",e+Y*_+G,s+X*L+q],["L",e+Y*_,s+X*L],["Z"]],at=Math.atan2(q,-G),dt=Math.abs(l+at),vt=Math.abs(n+at),Ct=Math.abs((n+l)/2+at);function xt(Lt){return(Lt%=2*Math.PI)>Math.PI&&(Lt=2*Math.PI-Lt),Lt}dt=xt(dt),vt=xt(vt);var wt=1e5,Mt=(Ct=xt(Ct))*wt,St=vt*wt,kt=dt*wt;return{top:Q,zTop:Math.PI*wt+1,out:bt,zOut:Math.max(Mt,St,kt),inn:yt,zInn:Math.max(Mt,St,kt),side1:ht,zSide1:.99*kt,side2:et,zSide2:.99*St}},i}(U);return a}),it(B,"Core/Chart/Chart3D.js",[B["Core/Color/Color.js"],B["Core/Defaults.js"],B["Core/Math3D.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=W.parse,U=R.defaultOptions,z=H.perspective,I=H.shapeArea3D,E=V.addEvent,M=V.isArray,P=V.merge,y=V.pick,h=V.wrap;return function(f){var m=function(){function o(e){this.frame3d=void 0,this.chart=e}return o.prototype.get3dFrame=function(){var e=this.chart,s=e.options.chart.options3d,n=s.frame,l=e.plotLeft,b=e.plotLeft+e.plotWidth,T=e.plotTop,D=e.plotTop+e.plotHeight,d=s.depth,C=function(et){var at=I(et,e);return at>.5?1:at<-.5?-1:0},A=C([{x:l,y:D,z:d},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:l,y:D,z:0}]),N=C([{x:l,y:T,z:0},{x:b,y:T,z:0},{x:b,y:T,z:d},{x:l,y:T,z:d}]),_=C([{x:l,y:T,z:0},{x:l,y:T,z:d},{x:l,y:D,z:d},{x:l,y:D,z:0}]),L=C([{x:b,y:T,z:d},{x:b,y:T,z:0},{x:b,y:D,z:0},{x:b,y:D,z:d}]),O=C([{x:l,y:D,z:0},{x:b,y:D,z:0},{x:b,y:T,z:0},{x:l,y:T,z:0}]),j=C([{x:l,y:T,z:d},{x:b,y:T,z:d},{x:b,y:D,z:d},{x:l,y:D,z:d}]),Y=!1,X=!1,G=!1,q=!1;[].concat(e.xAxis,e.yAxis,e.zAxis).forEach(function(et){et&&(et.horiz?et.opposite?X=!0:Y=!0:et.opposite?q=!0:G=!0)});var Q=function(et,at,dt){for(var vt=["size","color","visible"],Ct={},xt=0;xt<vt.length;xt++)for(var wt=vt[xt],Mt=0;Mt<et.length;Mt++)if(typeof et[Mt]=="object"){var St=et[Mt][wt];if(St!=null){Ct[wt]=St;break}}var kt=dt;return Ct.visible===!0||Ct.visible===!1?kt=Ct.visible:Ct.visible==="auto"&&(kt=at>0),{size:y(Ct.size,1),color:y(Ct.color,"none"),frontFacing:at>0,visible:kt}},J={axes:{},bottom:Q([n.bottom,n.top,n],A,Y),top:Q([n.top,n.bottom,n],N,X),left:Q([n.left,n.right,n.side,n],_,G),right:Q([n.right,n.left,n.side,n],L,q),back:Q([n.back,n.front,n],j,!0),front:Q([n.front,n.back,n],O,!1)};if(s.axisLabelPosition==="auto"){var rt=function(et,at){return et.visible!==at.visible||et.visible&&at.visible&&et.frontFacing!==at.frontFacing},lt=[];rt(J.left,J.front)&&lt.push({y:(T+D)/2,x:l,z:0,xDir:{x:1,y:0,z:0}}),rt(J.left,J.back)&&lt.push({y:(T+D)/2,x:l,z:d,xDir:{x:0,y:0,z:-1}}),rt(J.right,J.front)&&lt.push({y:(T+D)/2,x:b,z:0,xDir:{x:0,y:0,z:1}}),rt(J.right,J.back)&&lt.push({y:(T+D)/2,x:b,z:d,xDir:{x:-1,y:0,z:0}});var gt=[];rt(J.bottom,J.front)&&gt.push({x:(l+b)/2,y:D,z:0,xDir:{x:1,y:0,z:0}}),rt(J.bottom,J.back)&&gt.push({x:(l+b)/2,y:D,z:d,xDir:{x:-1,y:0,z:0}});var mt=[];rt(J.top,J.front)&&mt.push({x:(l+b)/2,y:T,z:0,xDir:{x:1,y:0,z:0}}),rt(J.top,J.back)&&mt.push({x:(l+b)/2,y:T,z:d,xDir:{x:-1,y:0,z:0}});var bt=[];rt(J.bottom,J.left)&&bt.push({z:(0+d)/2,y:D,x:l,xDir:{x:0,y:0,z:-1}}),rt(J.bottom,J.right)&&bt.push({z:(0+d)/2,y:D,x:b,xDir:{x:0,y:0,z:1}});var yt=[];rt(J.top,J.left)&&yt.push({z:(0+d)/2,y:T,x:l,xDir:{x:0,y:0,z:-1}}),rt(J.top,J.right)&&yt.push({z:(0+d)/2,y:T,x:b,xDir:{x:0,y:0,z:1}});var ht=function(et,at,dt){if(et.length===0)return null;if(et.length===1)return et[0];for(var vt=z(et,e,!1),Ct=0,xt=1;xt<vt.length;xt++)(dt*vt[xt][at]>dt*vt[Ct][at]||dt*vt[xt][at]==dt*vt[Ct][at]&&vt[xt].z<vt[Ct].z)&&(Ct=xt);return et[Ct]};J.axes={y:{left:ht(lt,"x",-1),right:ht(lt,"x",1)},x:{top:ht(mt,"y",-1),bottom:ht(gt,"y",1)},z:{top:ht(yt,"y",-1),bottom:ht(bt,"y",1)}}}else J.axes={y:{left:{x:l,z:0,xDir:{x:1,y:0,z:0}},right:{x:b,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:T,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:D,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:G?b:l,y:T,xDir:G?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:G?b:l,y:D,xDir:G?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return J},o.prototype.getScale=function(e){var s,n=this.chart,l=n.plotLeft,b=n.plotWidth+l,T=n.plotTop,D=n.plotHeight+T,d=l+n.plotWidth/2,C=T+n.plotHeight/2,A={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},N=1;return s=[{x:l,y:T,z:0},{x:l,y:T,z:e}],[0,1].forEach(function(_){s.push({x:b,y:s[_].y,z:s[_].z})}),[0,1,2,3].forEach(function(_){s.push({x:s[_].x,y:D,z:s[_].z})}),(s=z(s,n,!1)).forEach(function(_){A.minX=Math.min(A.minX,_.x),A.maxX=Math.max(A.maxX,_.x),A.minY=Math.min(A.minY,_.y),A.maxY=Math.max(A.maxY,_.y)}),l>A.minX&&(N=Math.min(N,1-Math.abs((l+d)/(A.minX+d))%1)),b<A.maxX&&(N=Math.min(N,(b-d)/(A.maxX-d))),T>A.minY&&(N=A.minY<0?Math.min(N,(T+C)/(-A.minY+T+C)):Math.min(N,1-(T+C)/(A.minY+C)%1)),D<A.maxY&&(N=Math.min(N,Math.abs((D-C)/(A.maxY-C)))),N},o}();function u(o){this.is3d()&&o.options.type==="scatter"&&(o.options.type="scatter3d")}function v(){if(this.chart3d&&this.is3d()){var o=this,e=o.renderer,s=o.options.chart.options3d,n=o.chart3d.get3dFrame(),l=o.plotLeft,b=o.plotLeft+o.plotWidth,T=o.plotTop,D=o.plotTop+o.plotHeight,d=s.depth,C=l-(n.left.visible?n.left.size:0),A=b+(n.right.visible?n.right.size:0),N=T-(n.top.visible?n.top.size:0),_=D+(n.bottom.visible?n.bottom.size:0),L=0-(n.front.visible?n.front.size:0),O=d+(n.back.visible?n.back.size:0),j=o.hasRendered?"animate":"attr";o.chart3d.frame3d=n,o.frameShapes||(o.frameShapes={bottom:e.polyhedron().add(),top:e.polyhedron().add(),left:e.polyhedron().add(),right:e.polyhedron().add(),back:e.polyhedron().add(),front:e.polyhedron().add()}),o.frameShapes.bottom[j]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:n.bottom.frontFacing?-1e3:1e3,faces:[{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:C,y:_,z:L},{x:A,y:_,z:L},{x:A,y:_,z:O},{x:C,y:_,z:O}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:l,y:D,z:d},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:C,y:_,z:L},{x:C,y:_,z:O},{x:l,y:D,z:d},{x:l,y:D,z:0}],enabled:n.bottom.visible&&!n.left.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:O},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:b,y:D,z:d}],enabled:n.bottom.visible&&!n.right.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:A,y:_,z:L},{x:C,y:_,z:L},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.bottom.visible&&!n.front.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:C,y:_,z:O},{x:A,y:_,z:O},{x:b,y:D,z:d},{x:l,y:D,z:d}],enabled:n.bottom.visible&&!n.back.visible}]}),o.frameShapes.top[j]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:n.top.frontFacing?-1e3:1e3,faces:[{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:A,y:N,z:O},{x:A,y:N,z:L},{x:C,y:N,z:L}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:l,y:T,z:0},{x:b,y:T,z:0},{x:b,y:T,z:d},{x:l,y:T,z:d}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:N,z:L},{x:l,y:T,z:0},{x:l,y:T,z:d}],enabled:n.top.visible&&!n.left.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:N,z:O},{x:b,y:T,z:d},{x:b,y:T,z:0}],enabled:n.top.visible&&!n.right.visible},{fill:Z(n.top.color).get(),vertexes:[{x:C,y:N,z:L},{x:A,y:N,z:L},{x:b,y:T,z:0},{x:l,y:T,z:0}],enabled:n.top.visible&&!n.front.visible},{fill:Z(n.top.color).get(),vertexes:[{x:A,y:N,z:O},{x:C,y:N,z:O},{x:l,y:T,z:d},{x:b,y:T,z:d}],enabled:n.top.visible&&!n.back.visible}]}),o.frameShapes.left[j]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:n.left.frontFacing?-1e3:1e3,faces:[{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:_,z:L},{x:l,y:D,z:0},{x:l,y:D,z:d},{x:C,y:_,z:O}],enabled:n.left.visible&&!n.bottom.visible},{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:l,y:T,z:d},{x:l,y:T,z:0},{x:C,y:N,z:L}],enabled:n.left.visible&&!n.top.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:C,y:_,z:O},{x:C,y:N,z:O},{x:C,y:N,z:L},{x:C,y:_,z:L}],enabled:n.left.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:l,y:T,z:d},{x:l,y:D,z:d},{x:l,y:D,z:0},{x:l,y:T,z:0}],enabled:n.left.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:_,z:L},{x:C,y:N,z:L},{x:l,y:T,z:0},{x:l,y:D,z:0}],enabled:n.left.visible&&!n.front.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:_,z:O},{x:l,y:D,z:d},{x:l,y:T,z:d}],enabled:n.left.visible&&!n.back.visible}]}),o.frameShapes.right[j]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:n.right.frontFacing?-1e3:1e3,faces:[{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:_,z:O},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:A,y:_,z:L}],enabled:n.right.visible&&!n.bottom.visible},{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:b,y:T,z:0},{x:b,y:T,z:d},{x:A,y:N,z:O}],enabled:n.right.visible&&!n.top.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:b,y:T,z:0},{x:b,y:D,z:0},{x:b,y:D,z:d},{x:b,y:T,z:d}],enabled:n.right.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:L},{x:A,y:N,z:L},{x:A,y:N,z:O},{x:A,y:_,z:O}],enabled:n.right.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:b,y:T,z:0}],enabled:n.right.visible&&!n.front.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:_,z:O},{x:A,y:N,z:O},{x:b,y:T,z:d},{x:b,y:D,z:d}],enabled:n.right.visible&&!n.back.visible}]}),o.frameShapes.back[j]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:n.back.frontFacing?-1e3:1e3,faces:[{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:A,y:_,z:O},{x:C,y:_,z:O},{x:l,y:D,z:d},{x:b,y:D,z:d}],enabled:n.back.visible&&!n.bottom.visible},{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:A,y:N,z:O},{x:b,y:T,z:d},{x:l,y:T,z:d}],enabled:n.back.visible&&!n.top.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:C,y:_,z:O},{x:C,y:N,z:O},{x:l,y:T,z:d},{x:l,y:D,z:d}],enabled:n.back.visible&&!n.left.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:O},{x:A,y:_,z:O},{x:b,y:D,z:d},{x:b,y:T,z:d}],enabled:n.back.visible&&!n.right.visible},{fill:Z(n.back.color).get(),vertexes:[{x:l,y:T,z:d},{x:b,y:T,z:d},{x:b,y:D,z:d},{x:l,y:D,z:d}],enabled:n.back.visible},{fill:Z(n.back.color).get(),vertexes:[{x:C,y:_,z:O},{x:A,y:_,z:O},{x:A,y:N,z:O},{x:C,y:N,z:O}],enabled:n.back.visible}]}),o.frameShapes.front[j]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:n.front.frontFacing?-1e3:1e3,faces:[{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:C,y:_,z:L},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.front.visible&&!n.bottom.visible},{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:C,y:N,z:L},{x:l,y:T,z:0},{x:b,y:T,z:0}],enabled:n.front.visible&&!n.top.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:L},{x:C,y:_,z:L},{x:l,y:D,z:0},{x:l,y:T,z:0}],enabled:n.front.visible&&!n.left.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:L},{x:A,y:N,z:L},{x:b,y:T,z:0},{x:b,y:D,z:0}],enabled:n.front.visible&&!n.right.visible},{fill:Z(n.front.color).get(),vertexes:[{x:b,y:T,z:0},{x:l,y:T,z:0},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.front.visible},{fill:Z(n.front.color).get(),vertexes:[{x:A,y:_,z:L},{x:C,y:_,z:L},{x:C,y:N,z:L},{x:A,y:N,z:L}],enabled:n.front.visible}]})}}function w(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(o){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+o.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:o.slope}}]}]})},this)}function S(){var o=this.options;this.is3d()&&(o.series||[]).forEach(function(e){(e.type||o.chart.type||o.chart.defaultSeriesType)==="scatter"&&(e.type="scatter3d")})}function x(){var o=this,e=o.options.chart.options3d;if(o.chart3d&&o.is3d()){e&&(e.alpha=e.alpha%360+(e.alpha>=0?0:360),e.beta=e.beta%360+(e.beta>=0?0:360));var s=o.inverted,n=o.clipBox,l=o.margin,b=s?"x":"y",T=s?"height":"width",D=s?"width":"height";n[s?"y":"x"]=-(l[3]||0),n[b]=-(l[0]||0),n[T]=o.chartWidth+(l[3]||0)+(l[1]||0),n[D]=o.chartHeight+(l[0]||0)+(l[2]||0),o.scale3d=1,e.fitToPlot===!0&&(o.scale3d=o.chart3d.getScale(e.depth)),o.chart3d.frame3d=o.chart3d.get3dFrame()}}function p(){this.is3d()&&(this.isDirtyBox=!0)}function g(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function r(){this.chart3d||(this.chart3d=new m(this))}function a(o){return this.is3d()||o.apply(this,[].slice.call(arguments,1))}function t(o){var e,s=this.series.length;if(this.is3d())for(;s--;)(e=this.series[s]).translate(),e.render();else o.call(this)}function i(o){o.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}f.Composition=m,f.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},f.compose=function(o,e){var s=o.prototype,n=e.prototype;s.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},s.propsRequireDirtyBox.push("chart.options3d"),s.propsRequireUpdateSeries.push("chart.options3d"),n.matrixSetter=function(){var l;if(this.pos<1&&(M(this.start)||M(this.end))){var b=this.start||[1,0,0,1,0,0],T=this.end||[1,0,0,1,0,0];l=[];for(var D=0;D<6;D++)l.push(this.pos*T[D]+(1-this.pos)*b[D])}else l=this.end;this.elem.attr(this.prop,l,null,!0)},P(!0,U,f.defaultOptions),E(o,"init",r),E(o,"addSeries",u),E(o,"afterDrawChartBox",v),E(o,"afterGetContainer",w),E(o,"afterInit",S),E(o,"afterSetChartSize",x),E(o,"beforeRedraw",p),E(o,"beforeRender",g),h(s,"isInsidePlot",a),h(s,"renderSeries",t),h(s,"setClassName",i)}}($||($={})),$}),it(B,"Core/Axis/ZAxis.js",[B["Core/Axis/Axis.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(y,h){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},H(y,h)},function(y,h){function f(){this.constructor=y}H(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),$=R.addEvent,Z=R.merge,U=R.pick,z=R.splat,I=[];function E(y){return new P(this,y)}function M(){var y=this,h=this.options.zAxis=z(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],h.forEach(function(f,m){f.index=m,f.isX=!0,y.addZAxis(f).setScale()}))}var P=function(y){function h(f,m){var u=y.call(this,f,m)||this;return u.isZAxis=!0,u}return V(h,y),h.compose=function(f){if(I.indexOf(f)===-1){I.push(f),$(f,"afterGetAxes",M);var m=f.prototype;m.addZAxis=E,m.collectionsWithInit.zAxis=[m.addZAxis],m.collectionsWithUpdate.push("zAxis")}},h.prototype.getSeriesExtremes=function(){var f=this,m=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(u){if(u.visible||!m.options.chart.ignoreHiddenSeries){f.hasVisibleSeries=!0;var v=u.zData;v.length&&(f.dataMin=Math.min(U(f.dataMin,v[0]),Math.min.apply(null,v)),f.dataMax=Math.max(U(f.dataMax,v[0]),Math.max.apply(null,v)))}})},h.prototype.setAxisSize=function(){var f=this.chart;y.prototype.setAxisSize.call(this),this.width=this.len=f.options.chart.options3d&&f.options.chart.options3d.depth||0,this.right=f.chartWidth-this.width-this.left},h.prototype.setOptions=function(f){f=Z({offset:0,lineWidth:0},f),this.isZAxis=!0,y.prototype.setOptions.call(this,f),this.coll="zAxis"},h}(W);return P}),it(B,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),it(B,"Core/Axis/Tick3DComposition.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=W.extend,V=W.wrap,$=[];function Z(z){var I=this.axis.axis3D;I&&H(z.pos,I.fix3dPosition(z.pos))}function U(z){var I=this.axis.axis3D,E=z.apply(this,[].slice.call(arguments,1));if(I){var M=E[0],P=E[1];if(M[0]==="M"&&P[0]==="L"){var y=[I.fix3dPosition({x:M[1],y:M[2],z:0}),I.fix3dPosition({x:P[1],y:P[2],z:0})];return this.axis.chart.renderer.toLineSegments(y)}}return E}return{compose:function(z){$.indexOf(z)===-1&&($.push(z),R(z,"afterGetLabelPosition",Z),V(z.prototype,"getMarkPath",U))}}}),it(B,"Core/Axis/Axis3DComposition.js",[B["Core/Axis/Axis3DDefaults.js"],B["Core/Globals.js"],B["Core/Math3D.js"],B["Core/Axis/Tick3DComposition.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=R.deg2rad,U=H.perspective,z=H.perspective3D,I=H.shapeArea,E=$.addEvent,M=$.merge,P=$.pick,y=$.wrap,h=[];function f(){var r=this,a=r.chart,t=r.options;a.is3d&&a.is3d()&&r.coll!=="colorAxis"&&(t.tickWidth=P(t.tickWidth,0),t.gridLineWidth=P(t.gridLineWidth,1))}function m(r){var a=this;a.chart.is3d()&&a.coll!=="colorAxis"&&r.point&&(r.point.crosshairPos=a.isXAxis?r.point.axisXpos:a.len-r.point.axisYpos)}function u(){var r=this;r.axis3D||(r.axis3D=new g(r))}function v(r){var a=this;return a.chart.is3d()&&a.coll!=="colorAxis"?[]:r.apply(a,[].slice.call(arguments,1))}function w(r){if(!this.chart.is3d()||this.coll==="colorAxis")return r.apply(this,[].slice.call(arguments,1));var a=arguments,t=a[1],i=a[2],o=[],e=this.getPlotLinePath({value:t}),s=this.getPlotLinePath({value:i});if(e&&s)for(var n=0;n<e.length;n+=2){var l=e[n],b=e[n+1],T=s[n],D=s[n+1];l[0]==="M"&&b[0]==="L"&&T[0]==="M"&&D[0]==="L"&&o.push(l,b,D,["L",T[1],T[2]],["Z"])}return o}function S(r){var a=this,t=a.axis3D,i=a.chart,o=r.apply(a,[].slice.call(arguments,1));if(a.coll==="colorAxis"||!i.chart3d||!i.is3d()||o===null)return o;var e,s=i.options.chart.options3d,n=a.isZAxis?i.plotWidth:s.depth,l=i.chart3d.frame3d,b=o[0],T=o[1],D=[];return b[0]==="M"&&T[0]==="L"&&(e=[t.swapZ({x:b[1],y:b[2],z:0}),t.swapZ({x:b[1],y:b[2],z:n}),t.swapZ({x:T[1],y:T[2],z:0}),t.swapZ({x:T[1],y:T[2],z:n})],this.horiz?this.isZAxis?(l.left.visible&&D.push(e[0],e[2]),l.right.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.left.visible&&D.push(e[0],e[1]),l.right.visible&&D.push(e[2],e[3])),D=U(D,this.chart,!1)),i.renderer.toLineSegments(D)}function x(r,a){var t=this,i=t.chart,o=t.ticks,e=t.gridGroup;if(t.categories&&i.frameShapes&&i.is3d()&&e&&a&&a.label){var s=e.element.childNodes[0].getBBox(),n=i.frameShapes.left.getBBox(),l=i.options.chart.options3d,b={x:i.plotWidth/2,y:i.plotHeight/2,z:l.depth/2,vd:P(l.depth,1)*P(l.viewDistance,0)},T=a.pos,D=o[T-1],d=o[T+1],C=void 0,A=void 0,N=void 0;return T!==0&&D&&D.label&&D.label.xy&&(A=z({x:D.label.xy.x,y:D.label.xy.y,z:null},b,b.vd)),d&&d.label&&d.label.xy&&(N=z({x:d.label.xy.x,y:d.label.xy.y,z:null},b,b.vd)),C={x:a.label.xy.x,y:a.label.xy.y,z:null},C=z(C,b,b.vd),Math.abs(A?C.x-A.x:N?N.x-C.x:s.x-n.x)}return r.apply(t,[].slice.call(arguments,1))}function p(r){var a=r.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(a,!0):a}var g=function(){function r(a){this.axis=a}return r.compose=function(a,t){if(V.compose(t),h.indexOf(a)===-1){h.push(a),M(!0,a.defaultOptions,W),a.keepProps.push("axis3D"),E(a,"init",u),E(a,"afterSetOptions",f),E(a,"drawCrosshair",m);var i=a.prototype;y(i,"getLinePath",v),y(i,"getPlotBandPath",w),y(i,"getPlotLinePath",S),y(i,"getSlotWidth",x),y(i,"getTitlePosition",p)}},r.prototype.fix3dPosition=function(a,t){var i=this.axis,o=i.chart;if(i.coll==="colorAxis"||!o.chart3d||!o.is3d())return a;var e,s=Z*o.options.chart.options3d.alpha,n=Z*o.options.chart.options3d.beta,l=P(t&&i.options.title.position3d,i.options.labels.position3d),b=P(t&&i.options.title.skew3d,i.options.labels.skew3d),T=o.chart3d.frame3d,D=o.plotLeft,d=o.plotWidth+D,C=o.plotTop,A=o.plotHeight+C,N=0,_=0,L={x:0,y:1,z:0},O=!1;if(a=i.axis3D.swapZ({x:a.x,y:a.y,z:0}),i.isZAxis)if(i.opposite){if(T.axes.z.top===null)return{};_=a.y-C,a.x=T.axes.z.top.x,a.y=T.axes.z.top.y,e=T.axes.z.top.xDir,O=!T.top.frontFacing}else{if(T.axes.z.bottom===null)return{};_=a.y-A,a.x=T.axes.z.bottom.x,a.y=T.axes.z.bottom.y,e=T.axes.z.bottom.xDir,O=!T.bottom.frontFacing}else if(i.horiz)if(i.opposite){if(T.axes.x.top===null)return{};_=a.y-C,a.y=T.axes.x.top.y,a.z=T.axes.x.top.z,e=T.axes.x.top.xDir,O=!T.top.frontFacing}else{if(T.axes.x.bottom===null)return{};_=a.y-A,a.y=T.axes.x.bottom.y,a.z=T.axes.x.bottom.z,e=T.axes.x.bottom.xDir,O=!T.bottom.frontFacing}else if(i.opposite){if(T.axes.y.right===null)return{};N=a.x-d,a.x=T.axes.y.right.x,a.z=T.axes.y.right.z,e={x:(e=T.axes.y.right.xDir).z,y:e.y,z:-e.x}}else{if(T.axes.y.left===null)return{};N=a.x-D,a.x=T.axes.y.left.x,a.z=T.axes.y.left.z,e=T.axes.y.left.xDir}if(l!=="chart")if(l==="flap")if(i.horiz){var j=Math.sin(s),Y=Math.cos(s);i.opposite&&(j=-j),O&&(j=-j),L={x:e.z*j,y:Y,z:-e.x*j}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else if(l==="ortho")if(i.horiz){var X=Math.sin(s),G=Math.cos(s),q={x:Math.sin(n)*G,y:-X,z:-G*Math.cos(n)};L={x:e.y*q.z-e.z*q.y,y:e.z*q.x-e.x*q.z,z:e.x*q.y-e.y*q.x};var Q=1/Math.sqrt(L.x*L.x+L.y*L.y+L.z*L.z);O&&(Q=-Q),L={x:Q*L.x,y:Q*L.y,z:Q*L.z}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else i.horiz?L={x:Math.sin(n)*Math.sin(s),y:Math.cos(s),z:-Math.cos(n)*Math.sin(s)}:e={x:Math.cos(n),y:0,z:Math.sin(n)};a.x+=N*e.x+_*L.x,a.y+=N*e.y+_*L.y,a.z+=N*e.z+_*L.z;var J=U([a],i.chart)[0];if(b){I(U([a,{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart))<0&&(e={x:-e.x,y:-e.y,z:-e.z});var rt=U([{x:a.x,y:a.y,z:a.z},{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart);J.matrix=[rt[1].x-rt[0].x,rt[1].y-rt[0].y,rt[2].x-rt[0].x,rt[2].y-rt[0].y,J.x,J.y],J.matrix[4]-=J.x*J.matrix[0]+J.y*J.matrix[2],J.matrix[5]-=J.x*J.matrix[1]+J.y*J.matrix[3]}return J},r.prototype.swapZ=function(a,t){var i=this.axis;if(i.isZAxis){var o=t?0:i.chart.plotLeft;return{x:o+a.z,y:a.y,z:a.x-o}}return a},r}();return g}),it(B,"Core/Series/Series3D.js",[B["Core/Math3D.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},V(y,h)},function(y,h){function f(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=W.perspective,U=H.addEvent,z=H.extend,I=H.merge,E=H.pick,M=H.isNumber,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return $(h,y),h.prototype.translate=function(){y.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},h.prototype.translate3dPoints=function(){var f,m,u,v,w,S=this,x=S.options,p=S.chart,g=E(S.zAxis,p.options.zAxis[0]),r=[],a=[],t=x.stacking?M(x.stack)?x.stack:0:S.index||0;for(S.zPadding=t*(x.depth||0+(x.groupZPadding||1)),w=0;w<S.data.length;w++)f=S.data[w],g&&g.translate?(v=g.logarithmic&&g.val2lin?g.val2lin(f.z):f.z,f.plotZ=g.translate(v),f.isInside=!!f.isInside&&v>=g.min&&v<=g.max):f.plotZ=S.zPadding,f.axisXpos=f.plotX,f.axisYpos=f.plotY,f.axisZpos=f.plotZ,r.push({x:f.plotX,y:f.plotY,z:f.plotZ}),a.push(f.plotX||0);for(S.rawPointsX=a,m=Z(r,p,!0),w=0;w<S.data.length;w++)f=S.data[w],u=m[w],f.plotX=u.x,f.plotY=u.y,f.plotZ=u.z},h.defaultOptions=I(R.defaultOptions),h}(R);return U(R,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),z(R.prototype,{translate3dPoints:P.prototype.translate3dPoints}),P}),it(B,"Series/Area3D/Area3DSeries.js",[B["Core/Math3D.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.perspective,$=R.seriesTypes.line.prototype,Z=H.wrap,U=[];function z(I){var E=this,M=I.apply(E,[].slice.call(arguments,1));if(!E.chart.is3d())return M;var P=$.getGraphPath,y=E.options,h=Math.round(E.yAxis.getThreshold(y.threshold)),f=[];if(E.rawPointsX)for(var m=0;m<E.points.length;m++)f.push({x:E.rawPointsX[m],y:y.stacking?E.points[m].yBottom:h,z:E.zPadding});var u=E.chart.options.chart.options3d;f=V(f,E.chart,!0).map(function(S){return{plotX:S.x,plotY:S.y,plotZ:S.z}}),E.group&&u&&u.depth&&u.beta&&(E.markerGroup&&(E.markerGroup.add(E.group),E.markerGroup.attr({translateX:0,translateY:0})),E.group.attr({zIndex:Math.max(1,u.beta>270||u.beta<90?u.depth-Math.round(E.zPadding||0):Math.round(E.zPadding||0))})),f.reversed=!0;var v=P.call(E,f,!0,!0);if(v[0]&&v[0][0]==="M"&&(v[0]=["L",v[0][1],v[0][2]]),E.areaPath){var w=E.areaPath.splice(0,E.areaPath.length/2).concat(v);w.xMap=E.areaPath.xMap,E.areaPath=w}return M}return{compose:function(I){U.indexOf(I)===-1&&(U.push(I),Z(I.prototype,"getGraphPath",z))}}}),it(B,"Series/Column3D/Column3DComposition.js",[B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Math3D.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=W.prototype,I=R.svg,E=V.perspective,M=U.addEvent,P=U.pick,y=U.wrap;function h(v){var w=v.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(w.stroke=this.options.edgeColor||w.fill,w["stroke-width"]=P(this.options.edgeWidth,1)),w}function f(v,w,S){var x=this.chart.is3d&&this.chart.is3d();x&&(this.options.inactiveOtherPoints=!0),v.call(this,w,S),x&&(this.options.inactiveOtherPoints=!1)}function m(v){for(var w=[],S=1;S<arguments.length;S++)w[S-1]=arguments[S];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":v.apply(this,w)}if(y(z,"translate",function(v){v.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}),y(H.prototype,"justifyDataLabel",function(v){return!arguments[2].outside3dPlot&&v.apply(this,[].slice.call(arguments,1))}),z.translate3dPoints=function(){},z.translate3dShapes=function(){var v,w=this,S=w.chart,x=w.options,p=x.depth,g=(x.stacking?x.stack||0:w.index)*(p+(x.groupZPadding||1)),r=w.borderWidth%2?.5:0;S.inverted&&!w.yAxis.reversed&&(r*=-1),x.grouping!==!1&&(g=0),g+=x.groupZPadding||1,w.data.forEach(function(a){if(a.outside3dPlot=null,a.y!==null){var t,i=a.shapeArgs,o=a.tooltipPos;[["x","width"],["y","height"]].forEach(function(e){if((t=i[e[0]]-r)<0&&(i[e[1]]+=i[e[0]]+r,i[e[0]]=-r,t=0),t+i[e[1]]>w[e[0]+"Axis"].len&&i[e[1]]!==0&&(i[e[1]]=w[e[0]+"Axis"].len-i[e[0]]),i[e[1]]!==0&&(i[e[0]]>=w[e[0]+"Axis"].len||i[e[0]]+i[e[1]]<=r)){for(var s in i)i[s]=s==="y"?-9999:0;a.outside3dPlot=!0}}),a.shapeType==="rect"&&(a.shapeType="cuboid"),i.z=g,i.depth=p,i.insidePlotArea=!0,v={x:i.x+i.width/2,y:i.y,z:g+p/2},S.inverted&&(v.x=i.height,v.y=a.clientX),a.plot3d=E([v],S,!0,!1)[0],o=E([{x:o[0],y:o[1],z:g+p/2}],S,!0,!1)[0],a.tooltipPos=[o.x,o.y]}}),w.z=g},y(z,"animate",function(v){if(this.chart.is3d()){var w=arguments[1],S=this.yAxis,x=this,p=this.yAxis.reversed;I&&(w?x.data.forEach(function(g){g.y!==null&&(g.height=g.shapeArgs.height,g.shapey=g.shapeArgs.y,g.shapeArgs.height=1,p||(g.stackY?g.shapeArgs.y=g.plotY+S.translate(g.stackY):g.shapeArgs.y=g.plotY+(g.negative?-g.height:g.height)))}):(x.data.forEach(function(g){g.y!==null&&(g.shapeArgs.height=g.height,g.shapeArgs.y=g.shapey,g.graphic&&g.graphic[g.outside3dPlot?"attr":"animate"](g.shapeArgs,x.options.animation))}),this.drawDataLabels()))}else v.apply(this,[].slice.call(arguments,1))}),y(z,"plotGroup",function(v,w,S,x,p,g){return w!=="dataLabelsGroup"&&w!=="markerGroup"&&this.chart.is3d()&&(this[w]&&delete this[w],g&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(g)),this[w]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[w].survive=!0,w==="group"&&(arguments[3]="visible"))),v.apply(this,Array.prototype.slice.call(arguments,1))}),y(z,"setVisible",function(v,w){var S=this;S.chart.is3d()&&S.data.forEach(function(x){x.visible=x.options.visible=w=w===void 0?!P(S.visible,x.visible):w,S.options.data[S.data.indexOf(x)]=x.options,x.graphic&&x.graphic.attr({visibility:w?"visible":"hidden"})}),v.apply(this,Array.prototype.slice.call(arguments,1))}),M(W,"afterInit",function(){if(this.chart.is3d()){var v=this.options,w=v.grouping,S=v.stacking,x=this.yAxis.options.reversedStacks,p=0;if(w===void 0||w){var g=function(t,i){var o,e=t.series,s={totalStacks:0},n=1;return e.forEach(function(l){o=P(l.options.stack,i?0:e.length-1-l.index),s[o]?s[o].series.push(l):(s[o]={series:[l],position:n},n++)}),s.totalStacks=n+1,s}(this.chart,S),r=v.stack||0,a=void 0;for(a=0;a<g[r].series.length&&g[r].series[a]!==this;a++);p=10*(g.totalStacks-g[r].position)+(x?a:-a),this.xAxis.reversed||(p=10*g.totalStacks-p)}v.depth=v.depth||25,this.z=this.z||0,v.zIndex=p}}),y(z,"pointAttribs",h),y(z,"setState",f),y(z.pointClass.prototype,"hasNewShapeType",m),$.seriesTypes.columnRange){var u=$.seriesTypes.columnrange.prototype;y(u,"pointAttribs",h),y(u,"setState",f),y(u.pointClass.prototype,"hasNewShapeType",m),u.plotGroup=z.plotGroup,u.setVisible=z.setVisible}return y(H.prototype,"alignDataLabel",function(v,w,S,x,p){var g=this.chart;if(x.outside3dPlot=w.outside3dPlot,g.is3d()&&this.is("column")){var r=this,a=r.options,t=P(x.inside,!!r.options.stacking),i=g.options.chart.options3d,o=w.pointWidth/2||0,e={x:p.x+o,y:p.y,z:r.z+a.depth/2};g.inverted&&(t&&(p.width=0,e.x+=w.shapeArgs.height/2),i.alpha>=90&&i.alpha<=270&&(e.y+=w.shapeArgs.width)),e=E([e],g,!0,!1)[0],p.x=e.x-o,p.y=w.outside3dPlot?-9e9:e.y}v.apply(this,[].slice.call(arguments,1))}),y(Z.prototype,"getStackBox",function(v,w){var S=v.apply(this,[].slice.call(arguments,1)),x=this.axis.chart,p=w.width;if(x.is3d()&&this.base){var g=+this.base.split(",")[0],r=x.series[g],a=x.options.chart.options3d;if(r&&r instanceof $.seriesTypes.column){var t={x:S.x+(x.inverted?S.height:p/2),y:S.y,z:r.options.depth/2};x.inverted&&(S.width=0,a.alpha>=90&&a.alpha<=270&&(t.y+=p)),t=E([t],x,!0,!1)[0],S.x=t.x-p/2,S.y=t.y}}return S}),W}),it(B,"Series/Pie3D/Pie3DPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function(U,z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},R(U,z)},function(U,z){function I(){this.constructor=U}R(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),V=W.seriesTypes.pie.prototype.pointClass,$=V.prototype.haloPath,Z=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.series=void 0,I}return H(z,U),z.prototype.haloPath=function(){return this.series.chart.is3d()?[]:$.apply(this,arguments)},z}(V);return Z}),it(B,"Series/Pie3D/Pie3DSeries.js",[B["Core/Globals.js"],B["Series/Pie3D/Pie3DPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=W.deg2rad,z=W.svg,I=H.seriesTypes.pie,E=V.extend,M=V.pick,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return Z(h,y),h.prototype.addPoint=function(){y.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},h.prototype.animate=function(f){if(this.chart.is3d()){var m=this.options.animation,u=void 0,v=this.center,w=this.group,S=this.markerGroup;z&&(m===!0&&(m={}),f?(w.oldtranslateX=M(w.oldtranslateX,w.translateX),w.oldtranslateY=M(w.oldtranslateY,w.translateY),u={translateX:v[0],translateY:v[1],scaleX:.001,scaleY:.001},w.attr(u),S&&(S.attrSetters=w.attrSetters,S.attr(u))):(u={translateX:w.oldtranslateX,translateY:w.oldtranslateY,scaleX:1,scaleY:1},w.animate(u,m),S&&S.animate(u,m)))}else y.prototype.animate.apply(this,arguments)},h.prototype.drawDataLabels=function(){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;this.data.forEach(function(m){var u=m.shapeArgs,v=u.r,w=(u.alpha||f.alpha)*U,S=(u.beta||f.beta)*U,x=(u.start+u.end)/2,p=m.labelPosition,g=p.connectorPosition,r=-v*(1-Math.cos(w))*Math.sin(x),a=v*(Math.cos(S)-1)*Math.cos(x);[p.natural,g.breakAt,g.touchingSliceAt].forEach(function(t){t.x+=a,t.y+=r})})}y.prototype.drawDataLabels.apply(this,arguments)},h.prototype.pointAttribs=function(f){var m=y.prototype.pointAttribs.apply(this,arguments),u=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(m.stroke=u.edgeColor||f.color||this.color,m["stroke-width"]=M(u.edgeWidth,1)),m},h.prototype.translate=function(){if(y.prototype.translate.apply(this,arguments),this.chart.is3d()){var f=this,m=f.options,u=m.depth||0,v=f.chart.options.chart.options3d,w=v.alpha,S=v.beta,x=m.stacking?(m.stack||0)*u:f._i*u;x+=u/2,m.grouping!==!1&&(x=0),f.data.forEach(function(p){var g,r=p.shapeArgs;p.shapeType="arc3d",r.z=x,r.depth=.75*u,r.alpha=w,r.beta=S,r.center=f.center,g=(r.end+r.start)/2,p.slicedTranslation={translateX:Math.round(Math.cos(g)*m.slicedOffset*Math.cos(w*U)),translateY:Math.round(Math.sin(g)*m.slicedOffset*Math.cos(w*U))}})}},h.prototype.drawTracker=function(){y.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(f){f.graphic&&["out","inn","side1","side2"].forEach(function(m){f.graphic&&(f.graphic[m].element.point=f)})})},h}(I);return E(P.prototype,{pointClass:R}),P}),it(B,"Series/Pie3D/Pie3DComposition.js",[B["Series/Pie3D/Pie3DPoint.js"],B["Series/Pie3D/Pie3DSeries.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R,H){H.seriesTypes.pie.prototype.pointClass.prototype.haloPath=W.prototype.haloPath,H.seriesTypes.pie=R}),it(B,"Series/Scatter3D/Scatter3DPoint.js",[B["Series/Scatter/ScatterSeries.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(U,z){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},H(U,z)},function(U,z){function I(){this.constructor=U}H(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),$=R.defined,Z=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.options=void 0,I.series=void 0,I}return V(z,U),z.prototype.applyOptions=function(){return U.prototype.applyOptions.apply(this,arguments),$(this.z)||(this.z=0),this},z}(W.prototype.pointClass);return Z}),it(B,"Series/Scatter3D/Scatter3DSeries.js",[B["Core/Math3D.js"],B["Series/Scatter3D/Scatter3DPoint.js"],B["Series/Scatter/ScatterSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(P,y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},Z(P,y)},function(P,y){function h(){this.constructor=P}Z(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),z=W.pointCameraDistance,I=$.extend,E=$.merge,M=function(P){function y(){var h=P!==null&&P.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return U(y,P),y.prototype.pointAttribs=function(h){var f=P.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&h&&(f.zIndex=z(h,this.chart)),f},y.defaultOptions=E(H.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),y}(H);return I(M.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:R}),V.registerSeriesType("scatter3d",M),M}),it(B,"masters/highcharts-3d.src.js",[B["Core/Globals.js"],B["Core/Renderer/SVG/SVGRenderer3D.js"],B["Core/Chart/Chart3D.js"],B["Core/Axis/ZAxis.js"],B["Core/Axis/Axis3DComposition.js"],B["Series/Area3D/Area3DSeries.js"]],function(W,R,H,V,$,Z){var U=W;R.compose(U.SVGRenderer),H.compose(U.Chart,U.Fx),V.compose(U.Chart),$.compose(U.Axis,U.Tick),Z.compose(U.seriesTypes.area)})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},1548:(ot,nt,st)=>{st.d(nt,{A:()=>pt});var ct=Function.prototype.toString;const pt=function(ut){if(ut!=null){try{return ct.call(ut)}catch(ft){}try{return ut+""}catch(ft){}}return""}},2060:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Series/Funnel/FunnelSeries.js",[B["Core/Chart/Chart.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var x in S)S.hasOwnProperty(x)&&(w[x]=S[x])},$(u,v)},function(u,v){function w(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),U=R.noop,z=H.series,I=H.seriesTypes.pie,E=V.addEvent,M=V.extend,P=V.fireEvent,y=V.isArray,h=V.merge,f=V.pick,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return Z(v,u),v.prototype.alignDataLabel=function(w,S,x,p,g){var r=w.series,a=r.options.reversed,t=w.dlBox||w.shapeArgs,i=x.align,o=x.verticalAlign,e=((r.options||{}).dataLabels||{}).inside,s=r.center[1],n=a?2*s-w.plotY:w.plotY,l=r.getWidthAt(n-t.height/2+S.height),b=o==="middle"?(t.topWidth-t.bottomWidth)/4:(l-t.bottomWidth)/2,T=t.y,D=t.x,d=f(S.height,S.getBBox().height);o==="middle"?T=t.y-t.height/2+d/2:o==="top"&&(T=t.y-t.height+d+x.padding),(o==="top"&&!a||o==="bottom"&&a||o==="middle")&&(i==="right"?D=t.x-x.padding+b:i==="left"&&(D=t.x+x.padding-b)),p={x:D,y:a?T-t.height:T,width:t.bottomWidth,height:t.height},x.verticalAlign="bottom",e&&!w.visible||z.prototype.alignDataLabel.call(this,w,S,x,p,g),e&&(!w.visible&&w.dataLabel&&(w.dataLabel.placed=!1),w.contrastColor&&S.css({color:w.contrastColor}))},v.prototype.drawDataLabels=function(){var w,S,x,p,g,r=this,a=r.data,t=r.options.dataLabels.distance,i=a.length;for(r.center[2]-=2*t;i--;)S=(w=(x=a[i]).half)?1:-1,g=x.plotY,x.labelDistance=f(x.options.dataLabels&&x.options.dataLabels.distance,t),r.maxLabelDistance=Math.max(x.labelDistance,r.maxLabelDistance||0),p=r.getX(g,w,x),x.labelPosition={natural:{x:0,y:g},final:{},alignment:w?"right":"left",connectorPosition:{breakAt:{x:p+(x.labelDistance-5)*S,y:g},touchingSliceAt:{x:p+x.labelDistance*S,y:g}}};H.seriesTypes[r.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},v.prototype.translate=function(){var w,S,x,p,g,r,a,t,i,o,e=0,s=this,n=s.chart,l=s.options,b=l.reversed,T=l.ignoreHiddenPoint,D=n.plotWidth,d=n.plotHeight,C=0,A=l.center,N=Q(A[0],D),_=Q(A[1],d),L=Q(l.width,D),O=Q(l.height,d),j=Q(l.neckWidth,D),Y=Q(l.neckHeight,d),X=_-O/2+O-Y,G=s.data,q=l.dataLabels.position==="left"?1:0;function Q(J,rt){return/%$/.test(J)?rt*parseInt(J,10)/100:parseInt(J,10)}s.getWidthAt=function(J){return J>X||O===Y?j:j+(L-j)*(1-(J-(_-O/2))/(O-Y))},s.getX=function(J,rt,lt){return N+(rt?-1:1)*(s.getWidthAt(b?2*_-J:J)/2+lt.labelDistance)},s.center=[N,_,O],s.centerX=N,G.forEach(function(J){T&&J.visible===!1||(e+=J.y)}),G.forEach(function(J){o=null,x=e?J.y/e:0,t=(g=_-O/2+C*O)+x*O,w=s.getWidthAt(g),r=(p=N-w/2)+w,w=s.getWidthAt(t),i=(a=N-w/2)+w,g>X?(p=a=N-j/2,r=i=N+j/2):t>X&&(o=t,w=s.getWidthAt(X),i=(a=N-w/2)+w,t=X),b&&(g=2*_-g,t=2*_-t,o!==null&&(o=2*_-o)),S=[["M",p,g],["L",r,g],["L",i,t]],o!==null&&S.push(["L",i,o],["L",a,o]),S.push(["L",a,t],["Z"]),J.shapeType="path",J.shapeArgs={d:S},J.percentage=100*x,J.plotX=N,J.plotY=(g+(o||t))/2,J.tooltipPos=[N,J.plotY],J.dlBox={x:a,y:g,topWidth:r-p,bottomWidth:i-a,height:Math.abs(f(o,t)-g),width:NaN},J.slice=U,J.half=q,T&&J.visible===!1||(C+=x)}),P(s,"afterTranslate")},v.prototype.sortByAngle=function(w){w.sort(function(S,x){return S.plotY-x.plotY})},v.defaultOptions=h(I.defaultOptions,{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"#cccccc",borderColor:"#000000"}}}),v}(I);return M(m.prototype,{animate:U}),E(W,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(u){var v=u.options&&u.options.dataLabels;y(v)&&(v=v[0]),u.is("pie")&&u.placeDataLabels&&v&&!v.inside&&u.placeDataLabels()})}),H.registerSeriesType("funnel",m),m}),it(B,"Series/Pyramid/PyramidSeries.js",[B["Series/Funnel/FunnelSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(z,I){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},V(z,I)},function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=H.merge,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return $(I,z),I.defaultOptions=Z(W.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),I}(W);return R.registerSeriesType("pyramid",U),U}),it(B,"masters/modules/funnel.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},2281:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>ye});var ct=st(6096),pt=st(5436),ut=st(3269);function ft(Et){var Gt=this.__data__=new ct.A(Et);this.size=Gt.size}ft.prototype.clear=function(){this.__data__=new ct.A,this.size=0},ft.prototype.delete=function(Et){var Gt=this.__data__,Yt=Gt.delete(Et);return this.size=Gt.size,Yt},ft.prototype.get=function(Et){return this.__data__.get(Et)},ft.prototype.has=function(Et){return this.__data__.has(Et)},ft.prototype.set=function(Et,Gt){var Yt=this.__data__;if(Yt instanceof ct.A){var $t=Yt.__data__;if(!pt.A||$t.length<199)return $t.push([Et,Gt]),this.size=++Yt.size,this;Yt=this.__data__=new ut.A($t)}return Yt.set(Et,Gt),this.size=Yt.size,this};const B=ft;var it=st(6124);st(9465);var W=st(4044),R=st(7313);const H=function(Et){return(0,R.A)(Et)&&(0,W.A)(Et)=="[object Arguments]"};var V=Object.prototype,$=V.hasOwnProperty,Z=V.propertyIsEnumerable;const U=H(function(){return arguments}())?H:function(Et){return(0,R.A)(Et)&&$.call(Et,"callee")&&!Z.call(Et,"callee")};var z=st(6956),I=st(9600),E=k&&!k.nodeType&&k,M=E&&!0&&c&&!c.nodeType&&c,P=M&&M.exports===E?I.A.Buffer:void 0;const y=(P?P.isBuffer:void 0)||function(){return!1};var h=st(5378);const f=function(Et){return typeof Et=="number"&&Et>-1&&Et%1==0&&Et<=9007199254740991};var m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;const u=function(Et){return function(Gt){return Et(Gt)}};var v=st(6713),w=k&&!k.nodeType&&k,S=w&&!0&&c&&!c.nodeType&&c,x=S&&S.exports===w&&v.A.process;const p=function(){try{return S&&S.require&&S.require("util").types||x&&x.binding&&x.binding("util")}catch(Et){}}();var g=p&&p.isTypedArray;const r=g?u(g):function(Et){return(0,R.A)(Et)&&f(Et.length)&&!!m[(0,W.A)(Et)]};var a=Object.prototype.hasOwnProperty;const t=function(Et,Gt){var Yt=(0,z.A)(Et),$t=!Yt&&U(Et),ce=!Yt&&!$t&&y(Et),pe=!Yt&&!$t&&!ce&&r(Et),Wt=Yt||$t||ce||pe,At=Wt?function(Qt,de){for(var ne=-1,ue=Array(Qt);++ne<Qt;)ue[ne]=de(ne);return ue}(Et.length,String):[],_t=At.length;for(var Xt in Et)!a.call(Et,Xt)||Wt&&(Xt=="length"||ce&&(Xt=="offset"||Xt=="parent")||pe&&(Xt=="buffer"||Xt=="byteLength"||Xt=="byteOffset")||(0,h.A)(Xt,_t))||At.push(Xt);return At};var i=Object.prototype;const o=function(Et){var Gt=Et&&Et.constructor;return Et===(typeof Gt=="function"&&Gt.prototype||i)},e=function(Et,Gt){return function(Yt){return Et(Gt(Yt))}},s=e(Object.keys,Object);var n=Object.prototype.hasOwnProperty,l=st(405);const b=function(Et){return Et!=null&&f(Et.length)&&!(0,l.A)(Et)},T=function(Et){return b(Et)?t(Et):function(Gt){if(!o(Gt))return s(Gt);var Yt=[];for(var $t in Object(Gt))n.call(Gt,$t)&&$t!="constructor"&&Yt.push($t);return Yt}(Et)};var D=st(7942);const d=function(){return[]};var C=Object.prototype.propertyIsEnumerable,A=Object.getOwnPropertySymbols;const N=A?function(Et){return Et==null?[]:(Et=Object(Et),function(Gt,Yt){for(var $t=-1,ce=Gt==null?0:Gt.length,pe=0,Wt=[];++$t<ce;){var At=Gt[$t];Yt(At,$t,Gt)&&(Wt[pe++]=At)}return Wt}(A(Et),function(Gt){return C.call(Et,Gt)}))}:d,_=function(Et,Gt){for(var Yt=-1,$t=Gt.length,ce=Et.length;++Yt<$t;)Et[ce+Yt]=Gt[Yt];return Et},L=e(Object.getPrototypeOf,Object),O=function(Et,Gt,Yt){var $t=Gt(Et);return(0,z.A)(Et)?$t:_($t,Yt(Et))},j=function(Et){return O(Et,T,N)};var Y=st(123);const X=(0,Y.A)(I.A,"DataView"),G=(0,Y.A)(I.A,"Promise"),q=(0,Y.A)(I.A,"Set"),Q=(0,Y.A)(I.A,"WeakMap");var J=st(1548),rt="[object Map]",lt="[object Promise]",gt="[object Set]",mt="[object WeakMap]",bt="[object DataView]",yt=(0,J.A)(X),ht=(0,J.A)(pt.A),et=(0,J.A)(G),at=(0,J.A)(q),dt=(0,J.A)(Q),vt=W.A;(X&&vt(new X(new ArrayBuffer(1)))!=bt||pt.A&&vt(new pt.A)!=rt||G&&vt(G.resolve())!=lt||q&&vt(new q)!=gt||Q&&vt(new Q)!=mt)&&(vt=function(Et){var Gt=(0,W.A)(Et),Yt=Gt=="[object Object]"?Et.constructor:void 0,$t=Yt?(0,J.A)(Yt):"";if($t)switch($t){case yt:return bt;case ht:return rt;case et:return lt;case at:return gt;case dt:return mt}return Gt});const Ct=vt;var xt=Object.prototype.hasOwnProperty;const wt=I.A.Uint8Array,Mt=function(Et){var Gt=new Et.constructor(Et.byteLength);return new wt(Gt).set(new wt(Et)),Gt};var St=/\w*$/,kt=st(3516),Lt=kt.A?kt.A.prototype:void 0,Pt=Lt?Lt.valueOf:void 0;const Dt=function(Et,Gt,Yt){var $t,ce,pe,Wt=Et.constructor;switch(Gt){case"[object ArrayBuffer]":return Mt(Et);case"[object Boolean]":case"[object Date]":return new Wt(+Et);case"[object DataView]":return function(At,_t){var Xt=Mt(At.buffer);return new At.constructor(Xt,At.byteOffset,At.byteLength)}(Et);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(At,_t){var Xt=Mt(At.buffer);return new At.constructor(Xt,At.byteOffset,At.length)}(Et);case"[object Map]":case"[object Set]":return new Wt;case"[object Number]":case"[object String]":return new Wt(Et);case"[object RegExp]":return(pe=new(ce=Et).constructor(ce.source,St.exec(ce))).lastIndex=ce.lastIndex,pe;case"[object Symbol]":return $t=Et,Pt?Object(Pt.call($t)):{}}};var jt=Object.create;const Ot=function(){function Et(){}return function(Gt){if(!(0,D.A)(Gt))return{};if(jt)return jt(Gt);Et.prototype=Gt;var Yt=new Et;return Et.prototype=void 0,Yt}}();var It=p&&p.isMap;const Nt=It?u(It):function(Et){return(0,R.A)(Et)&&Ct(Et)=="[object Map]"};var Zt=p&&p.isSet;const zt=Zt?u(Zt):function(Et){return(0,R.A)(Et)&&Ct(Et)=="[object Set]"};var Ht="[object Arguments]",Kt="[object Function]",me="[object Object]",Ut={};Ut[Ht]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object DataView]"]=Ut["[object Boolean]"]=Ut["[object Date]"]=Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut[me]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object Symbol]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Error]"]=Ut[Kt]=Ut["[object WeakMap]"]=!1;const te=function Et(Gt,Yt,$t,ce,pe,Wt){var At,_t=1&Yt;if(At!==void 0)return At;if(!(0,D.A)(Gt))return Gt;var Xt=(0,z.A)(Gt);if(Xt)At=function(qt){var ve=qt.length,ae=new qt.constructor(ve);return ve&&typeof qt[0]=="string"&&xt.call(qt,"index")&&(ae.index=qt.index,ae.input=qt.input),ae}(Gt);else{var Qt=Ct(Gt),de=Qt==Kt||Qt=="[object GeneratorFunction]";if(y(Gt))return function(qt,ve){return qt.slice()}(Gt);if(Qt==me||Qt==Ht||de&&!pe)At=de?{}:function(qt){return typeof qt.constructor!="function"||o(qt)?{}:Ot(L(qt))}(Gt);else{if(!Ut[Qt])return pe?Gt:{};At=Dt(Gt,Qt)}}Wt||(Wt=new B);var ne=Wt.get(Gt);if(ne)return ne;Wt.set(Gt,At),zt(Gt)?Gt.forEach(function(qt){At.add(Et(qt,Yt,$t,qt,Gt,Wt))}):Nt(Gt)&&Gt.forEach(function(qt,ve){At.set(ve,Et(qt,Yt,$t,ve,Gt,Wt))});var ue=Xt?void 0:j(Gt);return function(qt,ve){for(var ae=-1,lo=qt==null?0:qt.length;++ae<lo&&ve(qt[ae],ae,qt)!==!1;);}(ue||Gt,function(qt,ve){ue&&(qt=Gt[ve=qt]),(0,it.A)(At,ve,Et(qt,Yt,$t,ve,Gt,Wt))}),At},ye=function(Et){return te(Et,5)}},2382:function(ot,nt,st){var ct=this&&this.__read||function(W,R){var H=typeof Symbol=="function"&&W[Symbol.iterator];if(!H)return W;var V,$,Z=H.call(W),U=[];try{for(;(R===void 0||R-- >0)&&!(V=Z.next()).done;)U.push(V.value)}catch(z){$={error:z}}finally{try{V&&!V.done&&(H=Z.return)&&H.call(Z)}finally{if($)throw $.error}}return U},pt=this&&this.__spreadArray||function(W,R,H){if(H||arguments.length===2)for(var V,$=0,Z=R.length;$<Z;$++)!V&&$ in R||(V||(V=Array.prototype.slice.call(R,0,$)),V[$]=R[$]);return W.concat(V||Array.prototype.slice.call(R))},ut=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(nt,"__esModule",{value:!0});var ft=ut(st(8552)),B=ut(st(4501)),it=st(622);nt.default=function(W){var R,H=W.fireEvent,V=new Map,$=!1;function Z(M,P){for(var y=[M,P],h=0;h<y.length;h++)for(var f=y[h],m=0;m<f.length;m++){for(var u=(m+1)%f.length,v=f[m],w=f[u],S={x:w.y-v.y,y:v.x-w.x},x=void 0,p=void 0,g=0;g<M.length;g++){var r=S.x*M[g].x+S.y*M[g].y;((0,B.default)(x)||r<x)&&(x=r),((0,B.default)(p)||r>p)&&(p=r)}var a=void 0,t=void 0;for(g=0;g<P.length;g++)r=S.x*P[g].x+S.y*P[g].y,((0,B.default)(a)||r<a)&&(a=r),((0,B.default)(t)||r>t)&&(t=r);if(p<a||t<x)return!1}return!0}function U(M,P){return(M.yAxis||[]).some(function(y){return!(!y.options.stackLabels||!y.stacking.stacks)&&Object.values(y.stacking.stacks||[]).some(function(h){return Object.values(h).some(function(f){return f.label===P})})})}function z(M){return M.series&&M.series.some(function(P){return(0,ft.default)(P,"xAxis.axisLine.animating")})}function I(M,P,y){return y&&!(0,B.default)(y.totalsRank)&&U(M,P)?y.totalsRank:P.labelrank||0}function E(){$||($=!0,V.forEach(function(M,P){if(!z(P)){if(M.length){var y=M[M.length-1];P.hideOverlappingLabels(y.labels,y.options)}V.delete(P)}}),V.size&&(clearTimeout(R),R=setTimeout(E,100)),$=!1)}W.wrap(W.Axis.prototype,"addPlotBandOrLine",function(M){var P=M.apply(this,[].slice.call(arguments,1));return(0,ft.default)(P,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(P)),P}),W.wrap(W.PlotLineOrBand.prototype,"render",function(M){var P=this,y=P.axis,h=P.options,f=h.to,m=h.from,u=(0,it.defined)(m)&&(0,it.defined)(f),v=W.pick(h.zIndex,0),w=y.chart.renderer,S=u?"bands":"lines",x={zIndex:v};S+="-labels-"+v;var p=y.plotLinesAndBandsGroups[S];return p||(x.translateX=0,x.translateY=0,y.plotLinesAndBandsGroups[S]=p=w.g("plot-"+S).attr(x).add()),M.apply(this,[].slice.call(arguments,1))}),W.PlotLineOrBand.prototype.renderLabel=function(M,P,y,h){var f=this,m=f.axis,u=m.chart.renderer,v=f.label,w=(y?"bands":"lines")+"-labels-"+h,S=m.plotLinesAndBandsGroups[w];v||(f.label=v=u.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(M.className||""),zIndex:h}).add(S),m.chart.styledMode||v.css(W.merge({textOverflow:"ellipsis"},M.style)));var x=P.xBounds||[P[0][1],P[1][1],y?P[2][1]:P[0][1]],p=P.yBounds||[P[0][2],P[1][2],y?P[2][2]:P[0][2]],g=(0,it.arrayMin)(x),r=(0,it.arrayMin)(p);if(v.align(M,!1,{x:g,y:r,width:(0,it.arrayMax)(x)-g,height:(0,it.arrayMax)(p)-r}),!(v.styles.width&&v.styles.width!=="auto"||v.alignValue&&v.alignValue!=="left")){var a=M.clip?m.width:m.chart.chartWidth;v.css({width:(v.rotation===90?m.height-(v.alignAttr.y-m.top):a-(v.alignAttr.x-m.left))+"px"})}v.show(!0)},W.addEvent(W.Chart.prototype,"render",function(){var M=[];(this.xAxis||[]).forEach(function(P){P.plotLinesAndBands&&P.plotLinesAndBands.forEach(function(y){y.label&&y.label.visibility!=="hidden"&&(y.label.isSerieLabel=!0,M.push(y.label))})}),M.length>0&&this.hideOverlappingLabels(M)}),W.Chart.prototype.hideOverlappingLabels=function(M,P){var y=this;P===void 0&&(P={});var h=this;if(z(h))return function(t,i,o){V.has(t)||V.set(t,[]),V.get(t).push({labels:i,options:o}),E()}(h,pt([],ct(M),!1),P);E(),(M=M.filter(function(t){var i=t==null?void 0:t.element,o=(t==null?void 0:t.className)==="stack-labels",e=(t==null?void 0:t.visibility)!=="hidden"||o&&(t==null?void 0:t.placed);return i&&(t==null||t.opacitySetter(0,"opacity",t.element),t==null||t.visibilitySetter("hidden","visibility",t.element)),i&&e})).forEach(function(t){t.oldOpacity=t.opacity,t.newOpacity=1,t.polygon=function(i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=i.element,s=e.transform.baseVal.consolidate().matrix,n=e.getBBox();function l(b,T){var D=o.createSVGPoint();D.x=b,D.y=T;var d=D.matrixTransform(s);return{x:d.x,y:d.y}}return[l(n.x,n.y),l(n.x,n.y+n.height),l(n.x+n.width,n.y+n.height),l(n.x+n.width,n.y)]}(t)}),M.sort(function(t,i){return I(h,i,P)-I(h,t,P)});var f=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,m=f?{x:(0,it.defined)(f.x)?f.x:f.left,y:(0,it.defined)(f.y)?f.y:f.top,width:f.width,height:f.height}:null,u=(0,ft.default)(h,"options.chart.type"),v=u==="area"||u==="areaspline",w=u==="pie";if((v||u==="column"||u==="bar"||u==="line"||u==="bubble"||u==="boxplot")&&m){m.x-=10,m.y-=10,m.width+=20,m.height+=20,v&&!function(t){var i=(t.xAxis||[]).filter(function(o){return(0,ft.default)(o,"options.labels.enabled")});return i.length>1||i.some(function(o){return o.options.plotBands&&o.options.plotBands.length})}(h)&&(m.y-=30,m.height+=30);var S=this.series&&this.series.some(function(t){return(0,ft.default)(t,"options.stacking")==="percent"});M.forEach(function(t){var i,o,e,s;t.newOpacity===0||t.isSerieLabel||S&&U(y,t)||(i=m,o=t.element.getBoundingClientRect(),e=(0,it.defined)(o.x)?o.x:o.left,s=(0,it.defined)(o.y)?o.y:o.top,i.x<=e&&i.y<=s&&i.x+i.width>=e+o.width&&i.y+i.height>=s+o.height)||(t.newOpacity=0)})}for(var x=M.length,p=0;p<x;p++)for(var g=M[p],r=p+1;r<x;++r){var a=M[r];g.polygon&&a.polygon&&g!==a&&g.newOpacity!==0&&a.newOpacity!==0&&Z(g.polygon,a.polygon)&&((I(h,g,P)<I(h,a,P)?g:a).newOpacity=0)}M.forEach(function(t){var i,o;t&&(o=t.newOpacity,w&&!t.placed||(o?t.show(!0):i=function(){t.hide()},t.oldOpacity!==o&&(t.alignAttr?(t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,i),H(h,"afterHideOverlappingLabels")):t.attr({opacity:o})),t.isOld=!0))})},W.wrap(W.SVGElement.prototype,"animate",function(M,P,y,h){var f=this;return f.animating=!0,M.apply(this,[P,y,function(){f.animating=!1,h?h(arguments):y&&y.complete&&y.complete(arguments)}])})}},2397:function(ot,nt,st){var ct=this&&this.__assign||function(){return ct=Object.assign||function(W){for(var R,H=1,V=arguments.length;H<V;H++)for(var $ in R=arguments[H])Object.prototype.hasOwnProperty.call(R,$)&&(W[$]=R[$]);return W},ct.apply(this,arguments)},pt=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(nt,"__esModule",{value:!0});var ut=pt(st(8552)),ft=pt(st(4501)),B=pt(st(2281)),it=st(622);nt.default=function(W){var R=W.merge,H=W.extend,V=W.pick;W.getOptions().plotOptions.boxplot.lineWidth=1,W.getOptions().plotOptions.boxplot.fillOpacity=.6,W.getOptions().plotOptions.boxplot.strokeOpacity=.6,W.getOptions().plotOptions.boxplot.strokeWidth=1,W.getOptions().plotOptions.boxplot.states.select.lineWidth=1,W.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,W.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,W.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,W.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,W.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,W.wrap(W.seriesTypes.boxplot.prototype,"drawPoints",function(){var $,Z,U,z,I,E,M,P,y,h,f,m,u,v,w,S,x,p,g,r,a,t,i,o,e,s,n=this,l=n.points,b=n.options,T=n.chart.renderer,D=n.doQuartiles!==!1,d=parseInt(n.options.whiskerLength,10)/100;l.forEach(function(C){if(f=C.graphic,o=C.shapeArgs,u={},x={},g={},e=C.color||n.color,s=C.innerBoxColor||n.color,C.plotY!==void 0){$={fill:s,"fill-opacity":.75,stroke:n.color,"stroke-opacity":1,"stroke-width":1},C.selected&&($.fill=s,$["fill-opacity"]=.3,$["stroke-opacity"]=.3),U={fill:s,"fill-opacity":$["fill-opacity"],stroke:e,"stroke-width":1};var A={fill:$.fill,"fill-opacity":$["fill-opacity"],"stroke-opacity":$["fill-opacity"]};Z=ct({},$),r=o.width,a=Math.floor(o.x),t=a+r,i=Math.round(r/2),z=Math.floor(D?C.q1Plot:C.lowPlot),I=Math.floor(D?C.q3Plot:C.lowPlot),E=Math.floor(C.highPlot),M=Math.floor(C.lowPlot),u.stroke=C.stemColor||b.stemColor||e,u["stroke-width"]=V(C.stemWidth,b.stemWidth,b.lineWidth),u.dashstyle=C.stemDashStyle||b.stemDashStyle,x.stroke=C.whiskerColor||b.whiskerColor||e,x["stroke-width"]=V(C.whiskerWidth,b.whiskerWidth,b.lineWidth),g.stroke=C.medianColor||b.medianColor||e,g["stroke-width"]=V(C.medianWidth,b.medianWidth,b.lineWidth),g["stroke-linecap"]="round",y=u["stroke-width"]%2/2,m=["M",h=a+i+y,I,"L",h,E,"M",h,z,"L",h,M,"z"],D&&(y=$["stroke-width"]%2/2,h=Math.floor(h)+y,z=Math.floor(z)+y,I=Math.floor(I)+y,v=["M",a+=y,I,"L",a,z,"L",t+=y,z,"L",t,I,"L",a,I,"z"]),d&&(y=x["stroke-width"]%2/2,w=["M",h-i*d,E+=y,"L",h+i*d,E,"M",h-i*d,M+=y,"L",h+i*d,M]),y=2,P=Math.round(C.medianPlot)+y,p=["M",a,P,"L",t,P,"z"],D&&(S=["M",a+.5,P+.5,"L",a+.5,z-.5,"L",t-.5,z-.5,"L",t-.5,P+.5,"L",a+.5,P+.5,"z"]),f?(f.attr(A),C.stem.attr(u),C.stem.animate({d:m}),d&&(C.whiskers.attr(x),C.whiskers.animate({d:w})),D&&(C.box.attr(Z),C.box.attr("stroke",Z.stroke),C.box.animate({d:v}),C.innerBox.animate({d:S}),C.innerBox.attr(U)),C.medianShape.attr(g),C.medianShape.animate({d:p})):(C.graphic=f=T.g().add(n.group).attr(A).attr("name","graphic"),C.stem=T.path(m).attr(u).attr("name","stem").add(f),d&&(C.whiskers=T.path(w).attr(x).attr("name","whiskers").add(f)),D&&(C.box=T.path(v).attr(Z).attr("stroke",Z.stroke).attr("name","box").add(f),C.innerBox=T.path(S).attr(U).attr("name","inner-box").add(f)),C.medianShape=T.path(p).attr(g).attr("name","median").add(f))}})}),W.wrap(W.seriesTypes.boxplot.prototype,"drawDataLabels",function($,Z,U){var z,I,E,M,P=this,y=P.options,h=y.cursor,f=P.points,m=y.dataLabels,u=[{name:"median",enabled:!0,indent:-15,path:function(x,p){return["M",x,p,"L",x-10,p]}},{name:"q3",enabled:!0,indent:-20,path:function(x,p){return["M",x,p,"L",x-2,p+5,x-10,p+5]}},{name:"high",enabled:!0,indent:-20,path:function(x,p){return["M",x,p,"L",x-2,p+5,x-10,p+5]}},{name:"q1",enabled:!0,indent:-7,path:function(x,p){return["M",x,p,"L",x-2,p-5,x-10,p-5]}},{name:"low",enabled:!0,indent:-7,path:function(x,p){return["M",x,p,"L",x-2,p-5,x-10,p-5]}}];if($.call(this,m,U),P.data.length>0){var v=P.barW;P.barW>P.options.maxPointWidth&&(v=P.options.maxPointWidth),this.data.forEach(function(x){x.shapeArgs.x+=(x.shapeArgs.width-v)/2,x.shapeArgs.width=v})}if(m.enabled||P._hasPointLabels){M=P.plotGroup("dataLabelsGroup","data-labels",P.visible?"visible":"hidden",m.zIndex||6);var w=P.chart.plotBox.height;if(P.type==="boxplot"&&w<200)if((0,it.defined)((0,ut.default)(f,"0.dataLabel")))for(var S=0;S<f.length;S++)f[S].dataLabel&&((0,it.defined)((0,ut.default)(f[S].dataLabel,"high"))&&f[S].dataLabel.high.destroy(),(0,it.defined)((0,ut.default)(f[S].dataLabel,"low"))&&f[S].dataLabel.low.destroy());else delete u[2],delete u[4];I=m,f.forEach(function(x){var p,g,r,a,t,i,o=!0,e=x.connector,s=x.shapeArgs,n=Math.floor(s.x)+s.width;z=x.options&&x.options.dataLabels;var l=V(z&&z.enabled,I.enabled),b=x.innerBoxColor||P.color;if(l){m=R(I,z),i=m.rotation,r=x.getLabelConfig();var T=!1,D=(0,B.default)(u);(0,it.defined)(x,"shapeArgs.height")&&x.shapeArgs.height<30&&(delete D[2],delete D[4],x.shapeArgs.height===0&&(T=!0)),(0,it.defined)(x.dataLabel)||(x.dataLabel={},x.dataLabel.element={},x.dataLabel.destroy=function(){W.removeEvent(x.dataLabel,"add"),W.removeEvent(x.dataLabel.element,"mouseenter"),W.removeEvent(x.dataLabel.element,"mouseleave"),D.forEach(function(d){d&&x.dataLabel[d.name]&&(x.dataLabel[d.name].destroy(),x.dataLabelLine[d.name].destroy())}),x.dataLabel=null,x.dataLabelLine=null}),(0,it.defined)(x.dataLabelLine)||(x.dataLabelLine={}),D.forEach(function(d){if(d&&d.enabled){p=x.dataLabel[d.name],g=x.dataLabelLine[d.name],E=m.formatter.call(r,m,d.name),m.style.color=V(m.color,m.style.color,P.color,"black"),m.x=n+12,m.y=x[d.name+"Plot"]-x.highPlot+d.indent;var C=P.visible&&P.chart.isInsidePlot(x.plotX,x.plotY,P.chart.inverted)&&P.chart.isInsidePlot(x.plotX,x.yBottom,P.chart.inverted);if(p)C?((0,it.defined)(E)?(p.attr({text:E}),o=!1):(x.dataLabel[d.name]=p=p.destroy(),e&&(x.connector=e.destroy())),g&&g.destroy()):(x.dataLabel[d.name]=p=p.destroy(),g&&g.destroy());else if((0,it.defined)(E)&&E!=="null"){for(t in a={fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth,r:m.borderRadius||0,rotation:i,padding:m.padding,zIndex:1})(0,ft.default)(a[t])&&delete a[t];C&&((p=P.chart.renderer[i?"text":"label"](E,0,-999,null,null,null,m.useHTML)).attr(a).css(H(m.style,h&&{cursor:h})).add(M).shadow(m.shadow),p.options={},x.dataLabel[d.name]=p)}if(C){var A={fill:b,"fill-opacity":.75,stroke:P.color,"stroke-opacity":1,"stroke-width":1},N=13;T&&(d.name==="q1"?N=5:d.name==="q3"&&(N=21)),g=x.dataLabelLine[d.name]=x.series.chart.renderer.path(d.path(2,N)).attr({"stroke-width":1,stroke:A.stroke,"stroke-opacity":A["fill-opacity"]||1}).add(p)}p&&P.alignDataLabel(x,p,m,null,o,g,d.name),p.options={},x["dataLabel"+d.name]=p}})}x.dataLabels=u.map(function(d){return x.dataLabel[d.name]}).filter(function(d){return d})}),P.dataLabelCollections=[],u.map(function(x){return x.name}).forEach(function(x){P.dataLabelCollections.push("dataLabel"+x)})}}),W.wrap(W.seriesTypes.boxplot.prototype,"alignDataLabel",function($,Z,U,z,I,E,M,P){var y=this.chart,h=y.inverted,f=Z.dlBox||Z.shapeArgs,m=Z.below||Z.plotY>V(this.translatedThreshold,y.plotSizeY),u=V(z.inside,!!this.options.stacking);f&&((I=R(f)).y+=m?I.height:0,I.height=0),z.align=V(z.align,"left"),z.verticalAlign=V(z.verticalAlign,h||u?"middle":m?"top":"bottom");var v,w=U.getBBox(),S=this.visible&&y.isInsidePlot(Z.plotX,Z.plotY,h)&&y.isInsidePlot(Z.plotX,Z.yBottom,h);if(S){switch(H(z,{width:w.width,height:w.height}),v={align:z.align,x:z.x,y:I.y+z.y+I.height/2},P){case"q3":(0,it.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y+z.height>Z.dataLabel.median.y&&(v.y=Z.dataLabel.median.y-(z.height/2+4));break;case"high":(0,it.defined)(Z,"dataLabel.q3.y")&&Z.dataLabel.q3.y!=999&&v.y+z.height>Z.dataLabel.q3.y&&(v.y=Z.dataLabel.q3.y-(z.height/2+4));break;case"q1":(0,it.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y<Z.dataLabel.median.y+Z.dataLabel.median.height&&(v.y=Z.dataLabel.median.y+(z.height/2+4));break;case"low":(0,it.defined)(Z,"dataLabel.q1.y")&&Z.dataLabel.q1.y!=999&&v.y<Z.dataLabel.q1.y+Z.dataLabel.q1.height?v.y=Z.dataLabel.q1.y+(z.height/2+4):(0,it.defined)(Z,"yBottom")&&v.y+z.height>y.plotHeight&&(v.y=y.plotHeight-z.height)}v.y=isNaN(v.y)?0:v.y,U[E?"attr":"animate"](v)}S||(U.attr({y:-999}),U.placed=!1,M.attr({"stroke-opacity":0}))})}},2805:function(ot,nt,st){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var pt={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:ct(st(605)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};nt.default=pt},3039:function(ot,nt,st){var ct=this&&this.__assign||function(){return ct=Object.assign||function(H){for(var V,$=1,Z=arguments.length;$<Z;$++)for(var U in V=arguments[$])Object.prototype.hasOwnProperty.call(V,U)&&(H[U]=V[U]);return H},ct.apply(this,arguments)},pt=this&&this.__read||function(H,V){var $=typeof Symbol=="function"&&H[Symbol.iterator];if(!$)return H;var Z,U,z=$.call(H),I=[];try{for(;(V===void 0||V-- >0)&&!(Z=z.next()).done;)I.push(Z.value)}catch(E){U={error:E}}finally{try{Z&&!Z.done&&($=z.return)&&$.call(z)}finally{if(U)throw U.error}}return I},ut=this&&this.__spreadArray||function(H,V,$){if($||arguments.length===2)for(var Z,U=0,z=V.length;U<z;U++)!Z&&U in V||(Z||(Z=Array.prototype.slice.call(V,0,U)),Z[U]=V[U]);return H.concat(Z||Array.prototype.slice.call(V))},ft=this&&this.__importDefault||function(H){return H&&H.__esModule?H:{default:H}};Object.defineProperty(nt,"__esModule",{value:!0});var B=ft(st(8552)),it=ft(st(4441)),W=ft(st(2281)),R=st(622);nt.default=function(H){var V=H.removeEvent,$=H.defaultOptions.plotOptions,Z=H.fireEvent,U=H.color,z=H.extend,I=H.isNumber,E=H.merge,M=H.pick,P=H.Series,y=H.Point,h=navigator.userAgent,f=/(ipad|iphone|ipod)/g.test(h.toLowerCase()),m=document.documentElement.ontouchstart!==void 0,u=H.defaultOptions,v="highcharts-";H.Axis.prototype.allowNegativeLog=!0,H.addEvent(H.Axis,"afterInit",function(){var w=this.logarithmic;w&&(this.positiveValuesOnly=!1,w.log2lin=function(S){var x=S<0,p=Math.abs(S);p<10&&(p+=(10-p)/10);var g=Math.log(p)/Math.LN10;return x?-g:g},w.lin2log=function(S){var x=S<0,p=Math.pow(10,Math.abs(S));return p<10&&(p=10*(p-1)/9),x?-p:p})}),H.Series.prototype.setPercentStacks=function(){var w,S=this,x=S.stackKey,p=S.yAxis.stacking.stacks,g=new RegExp(/navigator.\d*/gi);w=S.name.match(g)?S.chart.yAxis[1].options.max||100:S.chart.yAxis[S.options.yAxis||0].options.max||100,[x,"-"+x].forEach(function(r){for(var a,t,i,o,e=S.xData.length;e--;)a=S.xData[e],(i=(t=p[r]&&p[r][a])&&t.points[S.index])&&(o=t.total?100/t.total:0,i[0]=(0,R.correctFloat)(i[0]*o*((0,R.defined)(w)?w/100:1)),i[1]=(0,R.correctFloat)(i[1]*o*((0,R.defined)(w)?w/100:1)),S.stackedYData[e]=i[1])})},H.seriesTypes.area.prototype.getStackPoints=function(w){var S=this,x=[],p=[],g=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],t={},i=r.series,o=i.length,e=r.options.reversedStacks?1:-1,s=i.indexOf(S);if(w=w||this.points,this.options.stacking){for(var n=0;n<w.length;n++)w[n].leftNull=w[n].rightNull=void 0,t[w[n].x]=w[n];H.objectEach(a,function(b,T){b.total!==null&&p.push(T)}),p.sort(function(b,T){return b-T});var l=i.map(function(b){return b.visible});p.forEach(function(b,T){var D,d,C=0;if(t[b]&&!t[b].isNull)x.push(t[b]),[-1,1].forEach(function(_){var L=_===1?"rightNull":"leftNull",O=_===1?"rightCliff":"leftCliff",j=a[p[T+_]],Y=0;if(j)for(var X=s;X>=0&&X<o;){var G=i[X].index;(D=j.points[G])||(G===S.index?t[b][L]=!0:l[X]&&(d=a[b].points[G])&&(Y-=d[1]-d[0])),X+=e}t[b][O]=Y});else{for(var A=s;A>=0&&A<o;){var N=i[A].index;if(D=a[b].points[N]){C=D[1];break}A+=e}C=M(C,0),C=r.translate(C,0,1,0,1),x.push({isNull:!0,plotX:g.translate(b,0,0,0,1),x:b,plotY:C,yBottom:C,isDividerNull:t[b]&&t[b].isDividerNull})}})}return x},H.seriesTypes.areaspline.prototype.getStackPoints=H.seriesTypes.area.prototype.getStackPoints,H.seriesTypes.area.prototype.getGraphPath=function(w){var S,x,p,g=H.seriesTypes.line.prototype.getGraphPath,r=this.options,a=r.stacking,t=this.yAxis,i=[],o=[],e=this.index,s=t.stacking.stacks[this.stackKey],n=r.threshold,l=Math.round(t.getThreshold(r.threshold)),b=M(r.connectNulls,a==="percent"),T=function(G,q,Q){var J,rt,lt=w[G],gt=a&&s[lt.x].points[e],mt=lt[Q+"Null"]||0,bt=lt[Q+"Cliff"]||0,yt=!0;bt||mt?(J=(mt?gt[0]:gt[1])+bt,rt=gt[0]+bt,yt=!!mt):!a&&w[q]&&w[q].isNull&&(J=rt=n),J!==void 0&&(o.push({plotX:S,plotY:J===null?l:t.getThreshold(J),isNull:yt,isCliff:!0}),i.push({plotX:S,plotY:rt===null?l:t.getThreshold(rt),doCurve:!1}))};w=w||this.points,a&&(w=this.getStackPoints(w));for(var D=0,d=w.length;D<d;++D)if(a||(w[D].leftCliff=w[D].rightCliff=w[D].leftNull=w[D].rightNull=void 0),x=w[D].isNull,S=M(w[D].rectPlotX,w[D].plotX),p=a?M(w[D].yBottom,l):l,!x||b){var C=w[D-1],A=w[D+1],N=!w[D].isDividerNull&&C&&C.isDividerNull,_=!w[D].isDividerNull&&A&&A.isDividerNull;b&&!N||T(D,D-1,"left"),x&&!a&&b||(o.push(w[D]),i.push({x:D,plotX:S,plotY:p})),b&&!_||T(D,D+1,"right")}var L=g.call(this,o,!0,!0);i.reversed=!0;var O=g.call(this,i,!0,!0),j=O[0];j&&j[0]==="M"&&(O[0]=["L",j[1],j[2]]);var Y=L.concat(O);Y.length&&Y.push(["Z"]);var X=g.call(this,o,!1,b);return Y.xMap=L.xMap,this.areaPath=Y,X},H.seriesTypes.areaspline.prototype.getGraphPath=H.seriesTypes.area.prototype.getGraphPath,H.Series.prototype.pointAttribs=function(w,S){var x,p,g,r,a,t,i=this.options.marker,o=w&&w.options,e=o&&o.marker||{},s=this.color,n=o&&o.color,l=w&&w.color,b=M(e.lineWidth,i.lineWidth),T=w&&w.zone&&w.zone.color;return s=n||T||l||s,g=e.fillColor||i.fillColor||s,r=e.lineColor||i.lineColor||s,a=1,t=1,S&&(x=i.states[S],p=e.states&&e.states[S]||{},b=M(p.lineWidth,x.lineWidth,b+M(p.lineWidthPlus,x.lineWidthPlus,0)),g=p.fillColor||x.fillColor||g,r=p.lineColor||x.lineColor||r,a=p.fillOpacity||x.fillOpacity||1,t=p.fillOpacity||x.fillOpacity||1),{stroke:r,"stroke-width":b,"stroke-opacity":t,"fill-opacity":a,fill:g}},H.Point.prototype.setState=function(w,S){var x,p,g,r=this,a=Math.floor(r.plotX),t=r.plotY,i=r.series,o=i.options.states[w]||{},e=$[i.type].marker&&i.options.marker,s=e&&e.enabled===!1,n=e&&e.states&&e.states[w]||{},l=n.enabled===!1,b=i.stateMarkerGraphic,T=r.marker||{},D=i.chart,d=i.halo,C=e&&i.markerAttribs;if(!((w=w||"")===r.state&&!S||r.selected&&w!=="select"||o.enabled===!1||w&&(l||s&&n.enabled===!1)||w&&T.states&&T.states[w]&&T.states[w].enabled===!1)){if(C&&(p=i.markerAttribs(r,w)),r.graphic){r.state&&r.graphic.removeClass("highcharts-point-"+r.state),w&&r.graphic.addClass("highcharts-point-"+w);var A=r.innerBoxColor||i.color,N={fill:A,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(r.selected){var _=.3;N.fill=A,N["fill-opacity"]=_,N["stroke-opacity"]=_}w==="hover"&&(_=.9,N.fill=A,N["fill-opacity"]=_,N["stroke-opacity"]=_);var L={fill:A,"fill-opacity":1,stroke:U,"stroke-width":1},O=ct({},N),j=i.pointAttribs(r,w);r.graphic.attr(j),r.stem&&r.stem.attr({}),r.whiskers&&r.whiskers.attr({}),r.box&&(r.box.attr(O),r.box.attr("stroke",O.stroke),r.innerBox.attr(L)),r.medianShape&&r.medianShape.attr({}),p&&r.graphic.animate(p,M(D.options.chart.animation,n.animation,e.animation)),b&&b.hide()}else w&&n&&(g=T.symbol||i.symbol,b&&b.currentSymbol!==g&&(b=b.destroy()),b?b[S?"animate":"attr"]({x:p.x,y:p.y}):g&&(i.stateMarkerGraphic=b=D.renderer.symbol(g,p.x,p.y,p.width,p.height).add(i.markerGroup),b.currentSymbol=g),b&&b.attr(i.pointAttribs(r,w))),b&&(b[w&&D.isInsidePlot(a,t,D.inverted)?"show":"hide"](),b.element.point=r);(x=o.halo)&&x.size?(d||(i.halo=d=D.renderer.path().add((r.graphic||b).parentGroup)),d[S?"animate":"attr"]({d:r.haloPath(x.size)}),d.attr({class:"highcharts-halo highcharts-color-"+M(r.colorIndex,i.colorIndex)}),d.point=r,d.attr(z({fill:r.color||i.color,"fill-opacity":x.opacity,zIndex:-1},x.attributes))):d&&d.point&&d.point.haloPath&&d.animate({d:d.point.haloPath(0)}),r.state=w}},H.Point.prototype.applyOptions=function(w,S){var x=this,p=x.series,g=p.options.pointValKey||p.pointValKey;return w=y.prototype.optionsToObject.call(this,w),z(x,w),x.options=x.options?z(x.options,w):w,w.group&&delete x.group,g&&(x.y=x[g]),x.isNull=M(x.isValid&&!x.isValid(),x.x===null||x.y===null||!I(x.y,!0)),x.selected&&(x.state="select"),"name"in x&&S===void 0&&p.xAxis&&p.xAxis.hasNames&&(x.x=p.xAxis.nameToX(x)),x.x===void 0&&p&&(x.x=S===void 0?p.autoIncrement(x):S),x},H.seriesTypes.column.prototype.pointAttribs=function(w,S){var x,p,g,r,a,t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=w&&w.color||this.color,n=w[o]||t[o]||this.color||s,l=w[e]||t[e]||this[e]||0,b=t.dashStyle;return w&&this.zones.length&&(s=(r=w.getZone())&&r.color||w.options.color||this.color),S&&(a=(x=t.states[S]).brightness,p=x.fillOpacity,s=x.color||a!==void 0&&U(s).brighten(x.brightness).get()||s,p&&p!==1&&(s=U(s).setOpacity(p).get("rgba")),n=x[o]||n,l=x[e]||l,b=x.dashStyle||b),g={fill:s,stroke:n,"stroke-width":l},t.borderRadius&&(g.r=t.borderRadius),b&&(g.dashstyle=b),g},H.seriesTypes.scatter.prototype.pointAttribs=function(w,S){var x=S?this.options.marker.states[S]:this.options.marker,p=M(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,w,S);return p!==1&&(g.fill=U(g.fill).setOpacity(p).get("rgba")),g},H.seriesTypes.bubble.prototype.pointAttribs=function(w,S){var x=S?this.options.marker.states[S]:this.options.marker,p=M(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,w,S);return p!==1&&(g.fill=U(g.fill).setOpacity(p).get("rgba")),g},H.seriesTypes.boxplot.prototype.pointAttribs=function(w,S){var x=S?this.options.states[S]:this.options,p=M(x.fillOpacity,.5),g=w&&w.color||this.color,r=w.fillColor||x.fillColor||g;return p!==1&&(r=U(r).setOpacity(p).get("rgba")),{fill:r,stroke:x.lineColor||g,"stroke-width":x.lineWidth||0}},H.Pointer.prototype.onContainerClick=function(w){var S,x,p,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o=w.type;w=this.normalize(w),g.cancelClick||(r&&this.inClass(w.target,v+"tracker")?(S=this.chartPosition,x=r.plotX,p=r.plotY,z(r,{pageX:S.left+a+(i?g.plotWidth-p:x),pageY:S.top+t+(i?g.plotHeight-x:p)}),Z(r.series,o,z(w,{point:r})),g.hoverPoint&&r.firePointEvent(o,w)):(z(w,this.getCoordinates(w)),g.isInsidePlot(w.chartX-a,w.chartY-t)&&Z(g,"click",w)))},H.wrap(H.Pointer.prototype,"onContainerMouseLeave",function(w,S){this.selectionMarker&&(this.selectionMarker.destroy(),this.selectionMarker=null),this.chart.mouseIsDown=!1,w.call(this,S)}),H.Pointer.prototype.onContainerTapHold=function(w){var S,x,p,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o="contextmenu";(w=this.normalize(w)).hasTapHold=!0,g.cancelClick||r&&this.inClass(w.target,v+"tracker")&&(S=this.chartPosition,x=r.plotX,p=r.plotY,z(r,{pageX:S.left+a+(i?g.plotWidth-p:x),pageY:S.top+t+(i?g.plotHeight-x:p)}),Z(r.series,o,z(w,{point:r})),g.hoverPoint&&(w.type="taphold",w.point=r,w.target=g,r.firePointEvent(o,w)))},H.Pointer.prototype.setDOMEvents=function(){var w,S=this,x=S.chart.container;this.unbindContainerMouseLeave=function(){},this._events=w=[[x,"onmousedown","onContainerMouseDown"],[x,"onmousemove","onContainerMouseMove"],[x,"onclick","onContainerClick"],[x,"mouseleave","onContainerMouseLeave"],[x,"contextmenu","onContainerClick"],[x,"mousemove","onDocumentMouseMove"],[x,"mouseup","onDocumentMouseUp"]],m&&f&&w.push([x,"taphold","onContainerClick"]),m&&w.push([x,"ontouchmove","onContainerTouchMove"],[x,"ontouchstart","onContainerTouchStart"],[x,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),w.forEach(function(p){var g=pt(p,3),r=g[0],a=g[1],t=g[2];S["_"+t]=function(i){typeof S[p[2]]=="function"&&S[p[2]](i)},a.indexOf("on")===0?r[a]=S["_"+t]:r.addEventListener(a,S["_"+t])})},H.Navigator.prototype.updateNavigatorSeries=function(w){var S,x,p,g=this,r=g.chart,a=g.baseSeries,t=g.navigatorOptions.series,i={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0},o=g.series=(g.series||[]).filter(function(e){var s=e.baseSeries;return!(a.indexOf(s)<0&&(s&&(V(s,"updatedData",g.updatedDataHandler),delete s.navigatorSeries),e.destroy(),1))});a&&a.length&&a.forEach(function(e){var s=e.navigatorSeries,n=z({color:e.color},Array.isArray(t)?u.navigator.series:t);if(!s||g.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+a.length,S=e.options||{},p=S.navigatorOptions||{},x=E(S,i,n,p);var l=p.data||n.data;g.hasNavigatorData=g.hasNavigatorData||!!l,x.data=l||S.data&&S.data.slice(0),x.data=(0,W.default)(x.data),(x.data||[]).forEach(function(b){b&&b.marker&&b.marker.enabled&&(b.marker.enabled=!1)}),x.color=S.color,x.fillOpacity=S.fillOpacity,x.type!=="spline"&&x.type!=="areaspline"||(x.stacking=S.stacking),S.stacking!=="percent"&&S.stacking!=="normal"||(x.stacking=S.stacking,x.startFromThreshold=!1),s&&s.options?s.update(x,w):(e.navigatorSeries=r.initSeries(x),e.navigatorSeries.baseSeries=e,o.push(e.navigatorSeries))}}),(!t.data||a&&a.length)&&!Array.isArray(t)||(g.hasNavigatorData=!1,(t=H.splat(t)).forEach(function(e,s){i.name="Navigator "+(o.length+1),(x=E(u.navigator.series,{color:r.series[s]&&!r.series[s].options.isInternal&&r.series[s].color||r.options.colors[s]||r.options.colors[0]},i,e)).data=e.data,x.data&&(g.hasNavigatorData=!0,o.push(r.initSeries(x)))})),this.addBaseSeriesEvents()},H.seriesTypes.scatter.prototype.drawLegendSymbol=H.seriesTypes.column.prototype.drawLegendSymbol,(0,R.wrap)(H.Pointer.prototype,"runPointActions",function(w,S,x){var p,g=S,r=this.chart;w.call(this,S,x);var a=r.hoverPoint,t=r.hoverSeries;if(g&&r.hoverPoint&&(e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g)&&e.clientX&&e.clientY){for(var i=document.elementFromPoint(e.clientX,e.clientY);i&&!p;)p=i.point,i=i.parentNode;p&&r.hoverPoint!=p&&p.onMouseOver(g)}(0,R.defined)(a)||(0,R.defined)(t)||(0,B.default)(r,"sisenseTipper.status")!=="on"||!r.sisenseTipper.tipper||(r.sisenseTipper.tipper.deactivate(),(0,it.default)(r,"sisenseTipper.status","off"));var o=(0,B.default)(r,"sisenseTipper.chartType");if((0,B.default)(r,"sisenseTipper.status")!=="off"&&(0,B.default)(r,"sisenseTipper.tipper")&&(o==="pie"||o==="scatter"||o==="bubble"||g.type==="touchmove")){var e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g;r.sisenseTipper.tipper.activate({x:e.clientX,y:e.clientY,space:0})}}),(0,R.wrap)(H.Chart.prototype,"getContainer",function(w,S,x){w.call(this,S,x);var p,g=this;g.renderTo=p=g.container.parentElement,p.setAttribute("data-type",(0,B.default)(g,"options.chart.type"))}),(0,R.wrap)(H.Pointer.prototype,"normalize",function(w,S,x){return w.apply(this,[].slice.call(arguments,1)),x&&S.chartY<0&&(S.chartY=100),S}),(0,R.wrap)(H.Chart.prototype,"setChartSize",function(w){var S,x,p,g,r=this.legend,a=this.navigator;if(w.apply(this,[].slice.call(arguments,1)),a){if(x=r&&r.options,p=a.xAxis,g=a.yAxis,S=a.scrollbarHeight,this.inverted){var t=a.opposite?this.chartWidth-S-a.height:this.spacing[3]+S,i=this.plotTop+S;x.align==="left"&&r.legendWidth&&(t+=r.legendWidth),a.left=a.navigatorOptions.left||t,a.top=a.navigatorOptions.top||i}p&&g&&(this.inverted?p.options.left=g.options.left=a.left:p.options.top=g.options.top=a.top,p.setAxisSize(),g.setAxisSize())}}),(0,R.wrap)(H.Chart.prototype,"renderLabels",function(w){var S,x,p,g=this;if(w.apply(this,[].slice.call(arguments,1)),g&&g.polar&&g.userOptions&&((S=g.userOptions)===null||S===void 0?void 0:S.labels)&&((p=(x=g.userOptions.labels)===null||x===void 0?void 0:x.items)===null||p===void 0?void 0:p.length)){var r=void 0,a=g.userOptions.labels.items[0].html,t=ut([],pt(g.container.querySelectorAll("text")),!1).find(function(b){return b.innerHTML.includes(a)}),i=g.containerWidth,o=t.clientWidth,e=t.getBBox(),s=e.height?e.height:20,n=i/2-o/2,l=void 0;g.legend.options.verticalAlign==="top"?(r=g.legend.legendHeight+20+s)>g.plotTop&&(l=20+s,r=g.legend.legendHeight+l/2+10,g.legend.update({margin:l},!0)):(r=20)>g.plotTop&&(l=20+s,r=10+s,g.update({chart:{marginTop:l}},!0)),t.setAttribute("x",n),t.setAttribute("y",r)}}),H.wrap(H.SVGElement.prototype,"titleSetter",function(w,S){var x,p,g=this.element.getElementsByTagName("title")[0];g||(g=document.createElementNS(this.SVG_NS,"title"),this.element.appendChild(g)),g.firstChild&&g.removeChild(g.firstChild),g.appendChild(document.createTextNode((x=this.renderer.escapes,p=S,H.objectEach(x,function(r,a){p=p.replace(new RegExp(r,"g"),a)}),p)))}),(0,R.wrap)(H.Chart.prototype,"renderLabels",function(w){w.apply(this,[].slice.call(arguments,1)),this.chartBackground.addClass("widget-body")}),(0,R.wrap)(H.Legend.prototype,"renderItem",function(w,S){var x=this,p=x.options,g=S.legendItem,r=S.series&&S.series.drawLegendSymbol?S.series:S,a=p.useHTML;w.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&S.legendItem.group.element.addEventListener("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return S.firePointEvent?S.firePointEvent(i,o,null):Z(r,i,o,null),!1}),(a?g:S.legendItem.group).on("mouseover",function(){var t;S.setState("hover"),g&&((t=g.css)===null||t===void 0||t.call(g,x.options.itemHoverStyle))}).on("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return S.firePointEvent?S.firePointEvent(i,o,null):Z(r,i,o,null),!1})}),(0,R.wrap)(H.Navigator.prototype,"shadesMousedown",function(w){this.chart.pointer&&(this.chart.pointer.chartPosition=null),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.Navigator.prototype,"handlesMousedown",function(w){this.chart.pointer&&(this.chart.pointer.chartPosition=null),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.StackItem.prototype,"render",function(w){var S=this.options,x=(0,B.default)(this,"axis.chart.options.chart.type");if(this.alignOptions&&this.total!==void 0&&(x==="column"||x==="bar"&&Math.abs(S.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),w.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var p=this.label.getBBox(!0,0),g=this.label.getBBox(),r=-Math.sign(this.total),a=0,t=0;if(x==="column"?(this.total<0||Math.abs(S.rotation)===90?a=g.height/2*r:Math.abs(S.rotation)===45&&this.total>0&&(a=-p.width/2*Math.sin(45*Math.PI/180)),Math.abs(S.rotation)===45&&(t+=-g.width/4*r),Math.abs(S.rotation)===90&&(t+=p.height/4),a+=5*r):x==="bar"&&Math.abs(S.rotation)===90&&(a=-g.height/2*r,this.total>=0&&(t+=p.height/2),t+=-5*r),this.label.translate(t,a),this.label&&!this.label.labelrank){var i=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+S.labelrank+i}}}),H.wrap(H,"fireEvent",function(w,S,x,p){var g=new Event(x),r=(0,B.default)(p,"changedTouches"),a=(0,B.default)(p,"point.graphic.element");z(g,p),r&&(g.clientX=(0,B.default)(r,"0.clientX"),g.clientY=(0,B.default)(r,"0.clientY"),g.target=a),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.Point.prototype,"getLabelConfig",function(w){var S=w.apply(this,[].slice.call(arguments,1));return this.originalY&&(S.y=this.originalY),S}),(0,R.wrap)(H.seriesTypes.column.prototype,"alignDataLabel",function(w,S,x,p){var g=S.series.options.stacking,r=this.chart.inverted,a=p.rotation,t=S.y<0&&S.dataLabel,i=S.dlBox,o=S.dataLabel.getBBox();if(!g&&t){S.below=!0;var e=E(S.dlBox||S.shapeArgs),s=r?o.width:o.height;e.y+=s,S.dlBox=e}else g&&(p.align="center");!g&&a&&(o=S.dataLabel.getBBox(),r?p.x+=.5*o.width:t&&Math.abs(a)%360==45&&(p.x=.5*-o.width));var n=w.apply(this,[].slice.call(arguments,1));return S.dlBox=i,n}),H.Scroller=H.Navigator}},3269:(ot,nt,st)=>{st.d(nt,{A:()=>V});const ct=(0,st(123).A)(Object,"create");var pt=Object.prototype.hasOwnProperty,ut=Object.prototype.hasOwnProperty;function ft($){var Z=-1,U=$==null?0:$.length;for(this.clear();++Z<U;){var z=$[Z];this.set(z[0],z[1])}}ft.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},ft.prototype.delete=function($){var Z=this.has($)&&delete this.__data__[$];return this.size-=Z?1:0,Z},ft.prototype.get=function($){var Z=this.__data__;if(ct){var U=Z[$];return U==="__lodash_hash_undefined__"?void 0:U}return pt.call(Z,$)?Z[$]:void 0},ft.prototype.has=function($){var Z=this.__data__;return ct?Z[$]!==void 0:ut.call(Z,$)},ft.prototype.set=function($,Z){var U=this.__data__;return this.size+=this.has($)?0:1,U[$]=ct&&Z===void 0?"__lodash_hash_undefined__":Z,this};const B=ft;var it=st(6096),W=st(5436);const R=function($,Z){var U,z,I=$.__data__;return((z=typeof(U=Z))=="string"||z=="number"||z=="symbol"||z=="boolean"?U!=="__proto__":U===null)?I[typeof Z=="string"?"string":"hash"]:I.map};function H($){var Z=-1,U=$==null?0:$.length;for(this.clear();++Z<U;){var z=$[Z];this.set(z[0],z[1])}}H.prototype.clear=function(){this.size=0,this.__data__={hash:new B,map:new(W.A||it.A),string:new B}},H.prototype.delete=function($){var Z=R(this,$).delete($);return this.size-=Z?1:0,Z},H.prototype.get=function($){return R(this,$).get($)},H.prototype.has=function($){return R(this,$).has($)},H.prototype.set=function($,Z){var U=R(this,$),z=U.size;return U.set($,Z),this.size+=U.size==z?0:1,this};const V=H},3516:(ot,nt,st)=>{st.d(nt,{A:()=>ct});const ct=st(9600).A.Symbol},3897:function(ot,nt,st){var ct=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(8552)),ut=st(622),ft=ct(st(605));nt.default=function(B){var it=B.wrap;it(B.seriesTypes.pie.prototype,"drawDataLabels",function(W,R,H){var V,$=this,Z=$.chart.renderer;W.call(this,R,H);var U=function(E){var M,P,y,h,f,m,u,v,w,S,x,p,g,r,a,t,i,o,e,s,n=(0,pt.default)(E,"shapeArgs.x")+E.series.chart.plotBox.x,l=(0,pt.default)(E,"shapeArgs.y")+E.series.chart.plotBox.y,b=(0,pt.default)(E,"shapeArgs.innerR"),T=(0,pt.default)(E,"shapeArgs.r")-b,D={},d=E.shapeArgs;y=d.r*Math.sin(d.start+1.571)+n,h=d.r*Math.cos(d.start+1.571)*-1+l,x=y-(M=d.r*Math.sin((d.end+1.571+d.start+1.571)/2)+n),p=h-(P=d.r*Math.cos((d.end+1.571+d.start+1.571)/2)*-1+l),S=l-h,(w=n-y)==0?(u=1,v=0,r=1):(u=S/w,v=1,r=Math.sqrt(Math.pow(u,2)+Math.pow(v,2)),d.start+1.571>Math.PI?v*=-1:u*=-1),f=n-M,a=(w*p/S-x)/(w*(m=l-P)/(S*(g=Math.sqrt(Math.pow(f,2)+Math.pow(m,2))))-w*v/(S*r)+u/r-f/g),t=M+f/g*Math.abs(a),i=P+m/g*Math.abs(a),o=Math.sqrt(Math.pow(t-M,2)+Math.pow(i-P,2));var C=d.end-d.start,A=Math.round((0,ut.radiansToDegrees)(C)),N=(0,ut.radiansToDegrees)(Math.PI);return(2*o>T||A>=N)&&(t=M+f/g*(o=T/2),i=P+m/g*o),s=(0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showDecimals")===!0?E.percentage.toFixed(1).replace(".0",""):Math.round(E.percentage),(0,ut.defined)(D[s])?e=D[s]:(e=o/1.5,D[s]=e),{fontSize:e,slicePercentage:s,newCenterX:t,newCenterY:i,circleCenterX:n,circleCenterY:l}},z=function(E,M,P,y){var h=Z.text(M.slicePercentage+"%",M.newCenterX,M.newCenterY),f={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":M.fontSize},m={"pointer-events":"none","font-family":(0,pt.default)(y,"options.dataLabels.style.fontFamily",ft.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},u=h.attr(f).attr(P).add(),v=h.element.getBBox().height/4,w={x:M.newCenterX,y:M.newCenterY+v};E.sisenseLabel=u.css(m).attr(w).add()},I=(0,pt.default)($,"chart.options.chart.isHighlightMode");$.points.forEach(function(E){var M,P;if(E.graphic){if((0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(M=U(E),P=(0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>P)if((0,ut.defined)((0,pt.default)(E,"sisenseLabel.element"))){var y={x:M.newCenterX,y:M.newCenterY};I&&(y.translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0),E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).animate(y)}else z(E,M,V,$),E.sisenseLabel&&I&&((y={x:M.newCenterX,y:M.newCenterY}).translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0,E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).attr(y));else(0,ut.defined)((0,pt.default)(E,"sisenseLabel.element"))&&E.sisenseLabel.destroy()}else(0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(M=U(E),P=(0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>P&&z(E,M,V,$))})}),it(B.Point.prototype,"destroyElements",function(W,R,H){for(var V,$=this,Z=["decoration","sisenseLabel"],U=Z.length;U--;)$[V=Z[U]]&&$.visible&&$[V].renderer&&$[V].destroy();W.call(this,R,H)}),it(B.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(W){W.apply(this,[].slice.call(arguments,1)),(0,pt.default)(this,"sisenseLabel.renderer")&&this.sisenseLabel.animate(this.getTranslate())}),B.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(W){var R,H=W.dataLabel;H&&W.visible&&((R=H._pos)?(H.sideOverflow&&(H._attr.width=H.getBBox().width-H.sideOverflow,H.css({width:H._attr.width+"px",textOverflow:"ellipsis"}),H.shortened=!0),H.attr(H._attr),H[H.moved?"animate":"attr"](R),H.moved=!0):H&&H.attr({y:-9999}))},this)},B.Point.prototype.getClassName=function(){return"highcharts-point"+(this.selected||this.sliced?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}}},3966:function(ot,nt,st){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(368));nt.default=pt.default},4044:(ot,nt,st)=>{st.d(nt,{A:()=>R});var ct=st(3516),pt=Object.prototype,ut=pt.hasOwnProperty,ft=pt.toString,B=ct.A?ct.A.toStringTag:void 0,it=Object.prototype.toString,W=ct.A?ct.A.toStringTag:void 0;const R=function(H){return H==null?H===void 0?"[object Undefined]":"[object Null]":W&&W in Object(H)?function(V){var $=ut.call(V,B),Z=V[B];try{V[B]=void 0;var U=!0}catch(I){}var z=ft.call(V);return U&&($?V[B]=Z:delete V[B]),z}(H):function(V){return it.call(V)}(H)}},4089:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var ct=st(4044),pt=st(7313);const ut=function(ft){return typeof ft=="symbol"||(0,pt.A)(ft)&&(0,ct.A)(ft)=="[object Symbol]"}},4441:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>it});var ct=st(6124),pt=st(5118),ut=st(5378),ft=st(7942),B=st(9322);const it=function(W,R,H){return W==null?W:function(V,$,Z,U){if(!(0,ft.A)(V))return V;for(var z=-1,I=($=(0,pt.A)($,V)).length,E=I-1,M=V;M!=null&&++z<I;){var P=(0,B.A)($[z]),y=Z;if(P==="__proto__"||P==="constructor"||P==="prototype")return V;if(z!=E){var h=M[P];(y=void 0)==void 0&&(y=(0,ft.A)(h)?h:(0,ut.A)($[z+1])?[]:{})}(0,ct.A)(M,P,y),M=M[P]}return V}(W,R,H)}},4459:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Extensions/Breadcrumbs.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/FormatUtilities.js"]],function(W,R,H,V,$){var Z=R.defaultOptions,U=$.format,z=V.addEvent,I=V.objectEach,E=V.extend,M=V.fireEvent,P=V.merge,y=V.pick,h=V.defined,f=V.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,w){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var S=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,w);this.chart=v,this.options=S||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var w=this.chart,S=this.options,x=w.options.lang,p=y(S.format,S.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=S.formatter&&S.formatter(v)||U(p,{level:v.levelOptions},w)||"";return(f(r)&&!r.length||r==="← ")&&h(g)&&(r=S.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,w=v.chart,S=v.options;!v.group&&S&&(v.group=w.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:S.zIndex}).add()),S.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,w=v.chart,S=v.list,x=v.options.buttonSpacing;this.destroyListElements();var p=v.group?v.group.getBBox().width:x,g=x,r=S[S.length-2];!w.drillUpButton&&this.level>0?w.drillUpButton=v.renderButton(r,p,g):w.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var w=this;if(w.group){var S=w.options,x=S.buttonTheme,p=S.position,g=S.relativeTo==="chart"||S.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=w.group.getBBox(),a=2*(x.padding||0)+S.buttonSpacing;p.width=r.width+a,p.height=r.height+a;var t=P(p);v&&(t.x+=v),w.options.rtl&&(t.x+=p.width),t.y=y(t.y,this.yOffset,0),w.group.align(t,!0,g)}},u.prototype.renderButton=function(v,w,S){var x=this,p=this.chart,g=x.options,r=P(g.buttonTheme),a=p.renderer.button(x.getButtonText(v),w,S,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,M(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return p.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,w){var S=this.chart,x=this.options.separator,p=S.renderer.label(x.text,v,w,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return S.styledMode||p.css(x.style),p},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,w=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(w)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var w=this.elementList;I(w,function(S,x){!v&&w[x].updated||((S=w[x]).button&&S.button.destroy(),S.separator&&S.separator.destroy(),delete S.button,delete S.separator,delete w[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,w=this,S=w.elementList,x=w.options.buttonSpacing,p=w.list,g=w.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=w.group?a(w.group,x):x,o=x;p.forEach(function(e,s){var n,l,b=s===p.length-1;S[e.level]?(n=(v=S[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=w.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),S[e.level].updated=!0):(n=w.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(l=w.renderSeparator(i,o),g&&t(l,i,o),i+=a(l,x)),S[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return H.Breadcrumbs||(H.Breadcrumbs=m,z(W,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,w=v.buttonTheme,S=(w.height||0)+2*(w.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+S,u.yOffset=S):x!=="middle"?(this.plotTop+=S,u.yOffset=-S):u.yOffset=void 0}}),z(W,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(W,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(W,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),w=u.breadcrumbs.options;v&&w.position.align==="right"&&w.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-w.buttonSpacing)}}),z(W,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),it(B,"Extensions/Drilldown.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Color/Color.js"],B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Defaults.js"],B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Axis/Tick.js"],B["Core/Utilities.js"],B["Extensions/Breadcrumbs.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h){var f=W.animObject,m=Z.noop,u=U.defaultOptions,v=E.seriesTypes,w=y.addEvent,S=y.removeEvent,x=y.extend,p=y.fireEvent,g=y.merge,r=y.objectEach,a=y.pick,t=y.syncTimeout,i=v.pie,o=1;x(u.lang,{}),u.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}},M.prototype.Element.prototype.fadeIn=function(b){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:a(this.newOpacity,1)},b||{duration:250})},H.prototype.addSeriesAsDrilldown=function(b,T){this.addSingleSeriesAsDrilldown(b,T),this.applyDrilldown()},H.prototype.addSingleSeriesAsDrilldown=function(b,T){var D,d,C,A,N,_,L=b.series,O=L.xAxis,j=L.yAxis,Y=[],X=[];_=this.styledMode?{colorIndex:a(b.colorIndex,L.colorIndex)}:{color:b.color||L.color},this.drilldownLevels||(this.drilldownLevels=[]),A=L.options._levelNumber||0,(N=this.drilldownLevels[this.drilldownLevels.length-1])&&N.levelNumber!==A&&(N=void 0),T=x(x({_ddSeriesId:o++},_),T),d=L.points.indexOf(b),L.chart.series.forEach(function(G){G.xAxis!==O||G.isDrilling||(G.options._ddSeriesId=G.options._ddSeriesId||o++,G.options._colorIndex=G.userOptions._colorIndex,G.options._levelNumber=G.options._levelNumber||A,N?(Y=N.levelSeries,X=N.levelSeriesOptions):(Y.push(G),G.purgedOptions=g({_ddSeriesId:G.options._ddSeriesId,_levelNumber:G.options._levelNumber,selected:G.options.selected},G.userOptions),X.push(G.purgedOptions)))}),C=x({levelNumber:A,seriesOptions:L.options,seriesPurgedOptions:L.purgedOptions,levelSeriesOptions:X,levelSeries:Y,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:b.isNull?V.parse(_.color).setOpacity(0).get():_.color,lowerSeriesOptions:T,pointOptions:L.options.data[d],pointIndex:d,oldExtremes:{xMin:O&&O.userMin,xMax:O&&O.userMax,yMin:j&&j.userMin,yMax:j&&j.userMax},resetZoomButton:N&&N.levelNumber===A?void 0:this.resetZoomButton},_),this.drilldownLevels.push(C),O&&O.names&&(O.names.length=0),(D=C.lowerSeries=this.addSeries(T,!1)).options._levelNumber=A+1,O&&(O.oldPos=O.pos,O.userMin=O.userMax=null,j.userMin=j.userMax=null),L.type===D.type&&(D.animate=D.animateDrilldown||m,D.options.animation=!0)},H.prototype.applyDrilldown=function(){var b,T=this.drilldownLevels;T&&T.length>0&&(b=T[T.length-1].levelNumber,this.drilldownLevels.forEach(function(D){D.levelNumber===b&&D.levelSeries.forEach(function(d){d.options&&d.options._levelNumber===b&&d.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),p(this,"afterDrilldown"),this.redraw(),p(this,"afterApplyDrilldown")};var e=function(b){var T=[],D=b.drilldownLevels;return D&&D.length&&(T[0]||T.push({level:0,levelOptions:D[0].seriesOptions}),D.forEach(function(d,C){var A=T[T.length-1];d.levelNumber+1>A.level&&T.push({level:d.levelNumber+1,levelOptions:g({name:d.lowerSeries.name},d.pointOptions)})})),T};function s(b){var T=f(this.chart.options.drilldown.animation);b&&(b.hide(),t(function(){b&&b.added&&b.fadeIn()},Math.max(T.duration-50,0)))}H.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){p(this,"beforeDrillUp");for(var b,T,D,d,C,A=this,N=A.drilldownLevels,_=N[N.length-1].levelNumber,L=N.length,O=A.series,j=function(X){var G;O.forEach(function(q){q.options._ddSeriesId===X._ddSeriesId&&(G=q)}),(G=G||A.addSeries(X,!1)).type===D.type&&G.animateDrillupTo&&(G.animate=G.animateDrillupTo),X===T.seriesPurgedOptions&&(d=G)},Y=A.drilldownLevels.length;L--;)if((T=N[L]).levelNumber===_){if(N.pop(),!(D=T.lowerSeries).chart){for(b=O.length;b--;)if(O[b].options.id===T.lowerSeriesOptions.id&&O[b].options._levelNumber===_+1){D=O[b];break}}D.xData=[],D.xAxis&&D.xAxis.names&&(Y===0||L===Y)&&(D.xAxis.names.length=0),T.levelSeriesOptions.forEach(j),p(A,"drillup",{seriesOptions:T.seriesPurgedOptions||T.seriesOptions}),d.type===D.type&&(d.drilldownLevel=T,d.options.animation=A.options.drilldown.animation,D.animateDrillupFrom&&D.chart&&D.animateDrillupFrom(T)),d.options._levelNumber=_,D.remove(!1),d.xAxis&&(C=T.oldExtremes,d.xAxis.setExtremes(C.xMin,C.xMax,!1),d.yAxis.setExtremes(C.yMin,C.yMax,!1)),T.resetZoomButton&&(A.resetZoomButton=T.resetZoomButton)}p(A,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),p(A,"drillupall")}},w(H,"afterInit",function(){var b=this;b.drilldown={chart:b,fadeInGroup:s,update:function(T,D){g(!0,b.options.drilldown,T),a(D,!0)&&b.redraw()}}}),w(H,"render",function(){(this.xAxis||[]).forEach(function(b){b.ddPoints={},b.series.forEach(function(T){var D,d,C=T.xData||[],A=T.points;for(D=0;D<C.length;D++)if(typeof(d=T.options.data[D])!="number"&&(d=T.pointClass.prototype.optionsToObject.call({series:T},d)).drilldown){b.ddPoints[C[D]]||(b.ddPoints[C[D]]=[]);var N=D-(T.cropStart||0);b.ddPoints[C[D]].push(!(A&&N>=0&&N<A.length)||A[N])}}),r(b.ticks,P.prototype.drillable)})}),w(Z.Breadcrumbs,"up",function(b){for(var T=this.chart,D=this.getLevel()-b.newLevel,d=0;d<D;d++)T.drillUp()}),w(H,"afterDrilldown",function(){var b=this,T=b.options.drilldown,D=T&&T.breadcrumbs;b.breadcrumbs||(b.breadcrumbs=new h(b,D)),b.breadcrumbs.updateProperties(e(b))}),w(H,"afterDrillUp",function(){var b=this;b.breadcrumbs&&b.breadcrumbs.updateProperties(e(b))}),w(H,"update",function(b){var T=this.breadcrumbs,D=b.options.drilldown&&b.options.drilldown.breadcrumbs;T&&D&&T.update(b.options.drilldown.breadcrumbs)}),$.prototype.animateDrillupTo=function(b){if(!b){var T=this,D=T.drilldownLevel;this.points.forEach(function(d){var C=d.dataLabel;d.graphic&&d.graphic.hide(),C&&(C.hidden=C.attr("visibility")==="hidden",C.hidden||(C.hide(),d.connector&&d.connector.hide()))}),t(function(){if(T.points){var d=[];T.data.forEach(function(C){d.push(C)}),T.nodes&&(d=d.concat(T.nodes)),d.forEach(function(C,A){var N=A===(D&&D.pointIndex)?"show":"fadeIn",_=N==="show"||void 0,L=C.dataLabel;C.graphic&&C.graphic[N](_),L&&!L.hidden&&(L.fadeIn(),C.connector&&C.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0)),delete this.animate}},$.prototype.animateDrilldown=function(b){var T,D=this,d=this.chart,C=d.drilldownLevels,A=f(d.options.drilldown.animation),N=this.xAxis,_=d.styledMode;b||(C.forEach(function(L){D.options._ddSeriesId===L.lowerSeriesOptions._ddSeriesId&&(T=L.shapeArgs,_||(T.fill=L.color))}),T.x+=a(N.oldPos,N.pos)-N.pos,this.points.forEach(function(L){var O=L.shapeArgs;_||(O.fill=L.color),L.graphic&&L.graphic.attr(T).animate(x(L.shapeArgs,{fill:L.color||D.color}),A)}),d.drilldown&&d.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},$.prototype.animateDrillupFrom=function(b){var T=f(this.chart.options.drilldown.animation),D=this.group,d=D!==this.chart.columnGroup,C=this;C.trackerGroups.forEach(function(A){C[A]&&C[A].on("mouseover")}),d&&delete this.group,this.points.forEach(function(A){var N=A.graphic,_=b.shapeArgs,L=function(){N.destroy(),D&&d&&(D=D.destroy())};N&&_&&(delete A.graphic,C.chart.styledMode||(_.fill=b.color),T.duration?N.animate(_,g(T,{complete:L})):(N.attr(_),L()))})},i&&x(i.prototype,{animateDrillupTo:$.prototype.animateDrillupTo,animateDrillupFrom:$.prototype.animateDrillupFrom,animateDrilldown:function(b){var T=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],D=this.chart.options.drilldown.animation;if(this.is("item")&&(D.duration=0),this.center){var d=T.shapeArgs,C=d.start,A=(d.end-C)/this.points.length,N=this.chart.styledMode;b||(this.points.forEach(function(_,L){var O=_.shapeArgs;N||(d.fill=T.color,O.fill=_.color),_.graphic&&_.graphic.attr(g(d,{start:C+L*A,end:C+(L+1)*A}))[D?"animate":"attr"](O,D)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),z.prototype.doDrilldown=function(){this.runDrilldown()},z.prototype.runDrilldown=function(b,T,D){var d,C=this.series.chart,A=C.options.drilldown,N=(A.series||[]).length;for(C.ddDupes||(C.ddDupes=[]);N--&&!d;)A.series[N].id===this.drilldown&&C.ddDupes.indexOf(this.drilldown)===-1&&(d=A.series[N],C.ddDupes.push(this.drilldown));p(C,"drilldown",{point:this,seriesOptions:d,category:T,originalEvent:D,points:T!==void 0&&this.series.xAxis.getDDPoints(T).slice(0)},function(_){var L=_.point.series&&_.point.series.chart,O=_.seriesOptions;L&&O&&(b?L.addSingleSeriesAsDrilldown(_.point,O):L.addSeriesAsDrilldown(_.point,O))})},R.prototype.drilldownCategory=function(b,T){this.getDDPoints(b).forEach(function(D){D&&D.series&&D.series.visible&&D.runDrilldown&&D.runDrilldown(!0,b,T)}),this.chart.applyDrilldown()},R.prototype.getDDPoints=function(b){return this.ddPoints&&this.ddPoints[b]||[]},P.prototype.drillable=function(){var b=this.pos,T=this.label,D=this.axis,d=D.coll==="xAxis"&&D.getDDPoints,C=d&&D.getDDPoints(b),A=D.chart.styledMode;d&&(T&&C&&C.length?(T.drillable=!0,T.basicStyles||A||(T.basicStyles=g(T.styles)),T.addClass("highcharts-drilldown-axis-label"),T.removeOnDrillableClick&&S(T.element,"click"),T.removeOnDrillableClick=w(T.element,"click",function(N){N.preventDefault(),D.drilldownCategory(b,N)}),A||T.css(D.chart.options.drilldown.activeAxisLabelStyle)):T&&T.drillable&&T.removeOnDrillableClick&&(A||(T.styles={},T.element.removeAttribute("style"),T.css(T.basicStyles)),T.removeOnDrillableClick(),T.removeClass("highcharts-drilldown-axis-label")))},w(z,"afterInit",function(){var b=this;return b.drilldown&&!b.unbindDrilldownClick&&(b.unbindDrilldownClick=w(b,"click",n)),b}),w(z,"update",function(b){var T=this,D=b.options||{};D.drilldown&&!T.unbindDrilldownClick?T.unbindDrilldownClick=w(T,"click",n):!D.drilldown&&D.drilldown!==void 0&&T.unbindDrilldownClick&&(T.unbindDrilldownClick=T.unbindDrilldownClick())});var n=function(b){var T=this,D=T.series;D.xAxis&&D.chart.options.drilldown.allowPointDrilldown===!1?D.xAxis.drilldownCategory(T.x,b):T.runDrilldown(void 0,void 0,b)};w(I,"afterDrawDataLabels",function(){var b=this.chart.options.drilldown.activeDataLabelStyle,T=this.chart.renderer,D=this.chart.styledMode;this.points.forEach(function(d){var C=d.options.dataLabels,A=a(d.dlOptions,C&&C.style,{});d.drilldown&&d.dataLabel&&(b.color!=="contrast"||D||(A.color=T.getContrast(d.color||this.color)),C&&C.color&&(A.color=C.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),D||d.dataLabel.css(b).css(A))},this)});var l=function(b,T,D,d){b[D?"addClass":"removeClass"]("highcharts-drilldown-point"),d||b.css({cursor:T})};w(I,"afterDrawTracker",function(){var b=this.chart.styledMode;this.points.forEach(function(T){T.drilldown&&T.graphic&&l(T.graphic,"pointer",!0,b)})}),w(z,"afterSetState",function(){var b=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?l(this.series.halo,"pointer",!0,b):this.series.halo&&l(this.series.halo,"auto",!1,b)}),w(H,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}),w(H,"drillupall",function(){this.resetZoomButton&&this.showResetZoom()})}),it(B,"masters/modules/drilldown.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},4501:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>ct});const ct=function(pt){return pt===void 0}},4608:function(ot,nt,st){var ct=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(5134)),ut=ct(st(1039)),ft=ct(st(6725)),B=ct(st(6660)),it=ct(st(4459)),W=ct(st(2060)),R=ct(st(6236)),H=ct(st(6512)),V=ct(st(5098)),$=ct(st(4812)),Z=ct(st(2397)),U=ct(st(50)),z=ct(st(5322)),I=ct(st(3897)),E=ct(st(362)),M=ct(st(3039)),P=ct(st(3966));(0,ft.default)(pt.default),(0,ut.default)(pt.default),(0,B.default)(pt.default),(0,it.default)(pt.default),(0,W.default)(pt.default),(0,R.default)(pt.default),(0,H.default)(pt.default),(0,$.default)(pt.default),(0,V.default)(pt.default),(0,z.default)(pt.default),(0,I.default)(pt.default),(0,E.default)(pt.default),(0,M.default)(pt.default),(0,Z.default)(pt.default),(0,U.default)(pt.default),pt.default.setOptions(P.default),nt.default=pt.default},4783:function(ot,nt,st){var ct,pt,ut;pt=typeof window!="undefined"?window:this,ut=function(ft){function B(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}var it={};return B(it,"Core/Globals.js",[],function(){var W;return function(R){R.SVG_NS="http://www.w3.org/2000/svg",R.product="Highcharts",R.version="10.3.3",R.win=ft!==void 0?ft:{},R.doc=R.win.document,R.svg=R.doc&&R.doc.createElementNS&&!!R.doc.createElementNS(R.SVG_NS,"svg").createSVGRect,R.userAgent=R.win.navigator&&R.win.navigator.userAgent||"",R.isChrome=R.userAgent.indexOf("Chrome")!==-1,R.isFirefox=R.userAgent.indexOf("Firefox")!==-1,R.isMS=/(edge|msie|trident)/i.test(R.userAgent)&&!R.win.opera,R.isSafari=!R.isChrome&&R.userAgent.indexOf("Safari")!==-1,R.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(R.userAgent),R.isWebKit=R.userAgent.indexOf("AppleWebKit")!==-1,R.deg2rad=2*Math.PI/360,R.hasBidiBug=R.isFirefox&&4>parseInt(R.userAgent.split("Firefox/")[1],10),R.hasTouch=!!R.win.TouchEvent,R.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],R.noop=function(){},R.supportsPassiveEvents=function(){var H=!1;if(!R.isMS){var V=Object.defineProperty({},"passive",{get:function(){H=!0}});R.win.addEventListener&&R.win.removeEventListener&&(R.win.addEventListener("testPassive",R.noop,V),R.win.removeEventListener("testPassive",R.noop,V))}return H}(),R.charts=[],R.dateFormats={},R.seriesTypes={},R.symbolSizes={},R.chartCount=0}(W||(W={})),W}),B(it,"Core/Utilities.js",[it["Core/Globals.js"]],function(W){function R(t,i,o,e){var s=i?"Highcharts error":"Highcharts warning";t===32&&(t=s+": Deprecated member");var n=I(t),l=n?s+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(e!==void 0){var b="";n&&(l+="?"),u(e,function(T,D){b+=`
6
+ - `.concat(D,": ").concat(T),n&&(l+=encodeURI(D)+"="+encodeURI(T))}),l+=b}w(W,"displayError",{chart:o,code:t,message:l,params:e},function(){if(i)throw Error(l);p.console&&R.messages.indexOf(l)===-1&&console.warn(l)}),R.messages.push(l)}function H(t,i){return parseInt(t,i||10)}function V(t){return typeof t=="string"}function $(t){return(t=Object.prototype.toString.call(t))==="[object Array]"||t==="[object Array Iterator]"}function Z(t,i){return!(!t||typeof t!="object"||i&&$(t))}function U(t){return Z(t)&&typeof t.nodeType=="number"}function z(t){var i=t&&t.constructor;return!(!Z(t,!0)||U(t)||!i||!i.name||i.name==="Object")}function I(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function E(t){return t!=null}function M(t,i,o){var e,s=V(i)&&!E(o),n=function(l,b){E(l)?t.setAttribute(b,l):s?(e=t.getAttribute(b))||b!=="class"||(e=t.getAttribute(b+"Name")):t.removeAttribute(b)};return V(i)?n(o,i):u(i,n),e}function P(t,i){var o;for(o in t||(t={}),i)t[o]=i[o];return t}function y(){for(var t=arguments,i=t.length,o=0;o<i;o++){var e=t[o];if(e!=null)return e}}function h(t,i){W.isMS&&!W.svg&&i&&E(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),P(t.style,i)}function f(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function m(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function u(t,i,o){for(var e in t)Object.hasOwnProperty.call(t,e)&&i.call(o||t[e],t[e],e,t)}function v(t,i,o){function e(b,T){var D=t.removeEventListener||W.removeEventListenerPolyfill;D&&D.call(t,b,T,!1)}function s(b){var T;if(t.nodeName){if(i){var D={};D[i]=!0}else D=b;u(D,function(d,C){if(b[C])for(T=b[C].length;T--;)e(C,b[C][T].fn)})}}var n=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var l=n.hcEvents;i?(n=l[i]||[],o?(l[i]=n.filter(function(b){return o!==b.fn}),e(i,o)):(s(l),l[i]=[])):(s(l),delete n.hcEvents)}}function w(t,i,o,e){if(o=o||{},x.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==W)){var s=x.createEvent("Events");s.initEvent(i,!0,!0),o=P(s,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(i,o)}else if(t.hcEvents){o.target||P(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:i}),s=[];for(var n=t,l=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(s.length&&(l=!0),s.unshift.apply(s,n.hcEvents[i])),n=Object.getPrototypeOf(n);l&&s.sort(function(b,T){return b.order-T.order}),s.forEach(function(b){b.fn.call(t,o)===!1&&o.preventDefault()})}e&&!o.defaultPrevented&&e.call(t,o)}var S=W.charts,x=W.doc,p=W.win;(R||(R={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var g=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var o,e=t.length;for(o=0;o<e;o++)if(i(t[o],o))return t[o]};u({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){W[i]=function(o){var e;return R(32,!1,void 0,((e={})["Highcharts.".concat(i)]="use Array.".concat(t),e)),Array.prototype[t].apply(o,[].slice.call(arguments,1))}});var r,a=function(){var t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(r?"":t)+i++}}();return p.jQuery&&(p.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new W[V(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):S[M(this[0],"data-highcharts-chart")]}),g={addEvent:function(t,i,o,e){e===void 0&&(e={});var s=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={}),s=s.hcEvents,W.Point&&t instanceof W.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var n=t.addEventListener||W.addEventListenerPolyfill;return n&&n.call(t,i,o,!!W.supportsPassiveEvents&&{passive:e.passive===void 0?i.indexOf("touch")!==-1:e.passive,capture:!1}),s[i]||(s[i]=[]),s[i].push({fn:o,order:typeof e.order=="number"?e.order:1/0}),s[i].sort(function(l,b){return l.order-b.order}),function(){v(t,i,o)}},arrayMax:function(t){for(var i=t.length,o=t[0];i--;)t[i]>o&&(o=t[i]);return o},arrayMin:function(t){for(var i=t.length,o=t[0];i--;)t[i]<o&&(o=t[i]);return o},attr:M,clamp:function(t,i,o){return t>i?t<o?t:o:i},cleanRecursively:function t(i,o){var e={};return u(i,function(s,n){Z(i[n],!0)&&!i.nodeType&&o[n]?(s=t(i[n],o[n]),Object.keys(s).length&&(e[n]=s)):(Z(i[n])||i[n]!==o[n]||n in i&&!(n in o))&&(e[n]=i[n])}),e},clearTimeout:function(t){E(t)&&clearTimeout(t)},correctFloat:m,createElement:function(t,i,o,e,s){return t=x.createElement(t),i&&P(t,i),s&&h(t,{padding:"0",border:"none",margin:"0"}),o&&h(t,o),e&&e.appendChild(t),t},css:h,defined:E,destroyObjectProperties:function(t,i){u(t,function(o,e){o&&o!==i&&o.destroy&&o.destroy(),delete t[e]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){for(var o=t.length;o--;)if(t[o]===i){t.splice(o,1);break}},error:R,extend:P,extendClass:function(t,i){var o=function(){};return P(o.prototype=new t,i),o},find:g,fireEvent:w,getMagnitude:f,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&E(i);){var o=t.shift();if(o===void 0||o==="__proto__"||!E(i=i[o])||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:function t(i,o,e){var s=W.getStyle||t;if(o==="width")return o=Math.min(i.offsetWidth,i.scrollWidth),(e=i.getBoundingClientRect&&i.getBoundingClientRect().width)<o&&e>=o-1&&(o=Math.floor(e)),Math.max(0,o-(s(i,"padding-left",!0)||0)-(s(i,"padding-right",!0)||0));if(o==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(s(i,"padding-top",!0)||0)-(s(i,"padding-bottom",!0)||0));if(p.getComputedStyle||R(27,!0),i=p.getComputedStyle(i,void 0)){var n=i.getPropertyValue(o);y(e,o!=="opacity")&&(n=H(n))}return n},inArray:function(t,i,o){return R(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:$,isClass:z,isDOMElement:U,isFunction:function(t){return typeof t=="function"},isNumber:I,isObject:Z,isString:V,keys:function(t){return R(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,i=arguments,o={},e=function(n,l){return typeof n!="object"&&(n={}),u(l,function(b,T){T!=="__proto__"&&T!=="constructor"&&(!Z(b,!0)||z(b)||U(b)?n[T]=l[T]:n[T]=e(n[T]||{},b))}),n};i[0]===!0&&(o=i[1],i=Array.prototype.slice.call(i,2));var s=i.length;for(t=0;t<s;t++)o=e(o,i[t]);return o},normalizeTickInterval:function(t,i,o,e,s){var n=t,l=t/(o=y(o,f(t)));for(i||(i=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],e===!1&&(o===1?i=i.filter(function(b){return b%1==0}):.1>=o&&(i=[1/o]))),e=0;e<i.length&&(n=i[e],!(s&&n*o>=t||!s&&l<=(i[e]+(i[e+1]||i[e]))/2));e++);return m(n*o,-Math.round(Math.log(.001)/Math.LN10))},objectEach:u,offset:function(t){var i=x.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(p.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(p.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,o){return Array((i||2)+1-String(t).replace("-","").length).join(o||"0")+t},pick:y,pInt:H,relativeLength:function(t,i,o){return/%$/.test(t)?i*parseFloat(t)/100+(o||0):parseFloat(t)},removeEvent:v,splat:function(t){return $(t)?t:[t]},stableSort:function(t,i){var o,e,s=t.length;for(e=0;e<s;e++)t[e].safeI=e;for(t.sort(function(n,l){return(o=i(n,l))===0?n.safeI-l.safeI:o}),e=0;e<s;e++)delete t[e].safeI},syncTimeout:function(t,i,o){return 0<i?setTimeout(t,i,o):(t.call(0,o),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:a,useSerialIds:function(t){return r=y(t,r)},wrap:function(t,i,o){var e=t[i];t[i]=function(){var s=arguments,n=this;return o.apply(this,[function(){return e.apply(n,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},g}),B(it,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),B(it,"Core/Color/Color.js",[it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R){var H=R.isNumber,V=R.merge,$=R.pInt;return R=function(){function Z(U){this.rgba=[NaN,NaN,NaN,NaN],this.input=U;var z=W.Color;return z&&z!==Z?new z(U):this instanceof Z?void this.init(U):new Z(U)}return Z.parse=function(U){return U?new Z(U):Z.None},Z.prototype.init=function(U){var z;if(typeof U=="object"&&U.stops!==void 0)this.stops=U.stops.map(function(P){return new Z(P[1])});else if(typeof U=="string"){if(this.input=U=Z.names[U.toLowerCase()]||U,U.charAt(0)==="#"){var I=U.length,E=parseInt(U.substr(1),16);I===7?z=[(16711680&E)>>16,(65280&E)>>8,255&E,1]:I===4&&(z=[(3840&E)>>4|(3840&E)>>8,(240&E)>>4|240&E,(15&E)<<4|15&E,1])}if(!z)for(E=Z.parsers.length;E--&&!z;){var M=Z.parsers[E];(I=M.regex.exec(U))&&(z=M.parse(I))}}z&&(this.rgba=z)},Z.prototype.get=function(U){var z=this.input,I=this.rgba;if(typeof z=="object"&&this.stops!==void 0){var E=V(z);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(M,P){E.stops[P]=[E.stops[P][0],M.get(U)]}),E}return I&&H(I[0])?U==="rgb"||!U&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":U==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":z},Z.prototype.brighten=function(U){var z=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(U)});else if(H(U)&&U!==0)for(var I=0;3>I;I++)z[I]+=$(255*U),0>z[I]&&(z[I]=0),255<z[I]&&(z[I]=255);return this},Z.prototype.setOpacity=function(U){return this.rgba[3]=U,this},Z.prototype.tweenTo=function(U,z){var I=this.rgba,E=U.rgba;return H(I[0])&&H(E[0])?((U=E[3]!==1||I[3]!==1)?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-z))+","+Math.round(E[1]+(I[1]-E[1])*(1-z))+","+Math.round(E[2]+(I[2]-E[2])*(1-z))+(U?","+(E[3]+(I[3]-E[3])*(1-z)):"")+")":U.input||"none"},Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),1]}}],Z.None=new Z(""),Z}(),R}),B(it,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),B(it,"Core/Time.js",[it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R){var H=W.win,V=R.defined,$=R.error,Z=R.extend,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pad,M=R.pick,P=R.splat,y=R.timeUnits,h=W.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,f=W.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange;return R=function(){function m(u){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(u)}return m.prototype.get=function(u,v){if(this.variableTimezone||this.timezoneOffset){var w=v.getTime(),S=w-this.getTimezoneOffset(v);return v.setTime(S),u=v["getUTC"+u](),v.setTime(w),u}return this.useUTC?v["getUTC"+u]():v["get"+u]()},m.prototype.set=function(u,v,w){if(this.variableTimezone||this.timezoneOffset){if(u==="Milliseconds"||u==="Seconds"||u==="Minutes"&&this.getTimezoneOffset(v)%36e5==0)return v["setUTC"+u](w);var S=this.getTimezoneOffset(v);return S=v.getTime()-S,v.setTime(S),v["setUTC"+u](w),u=this.getTimezoneOffset(v),S=v.getTime()+u,v.setTime(S)}return this.useUTC||h&&u==="FullYear"?v["setUTC"+u](w):v["set"+u](w)},m.prototype.update=function(u){u===void 0&&(u={});var v=M(u.useUTC,!0);this.options=u=z(!0,this.options,u),this.Date=u.Date||H.Date||Date,this.timezoneOffset=(this.useUTC=v)&&u.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=v&&!(!u.getTimezoneOffset&&!u.timezone)},m.prototype.makeTime=function(u,v,w,S,x,p){if(this.useUTC){var g=this.Date.UTC.apply(0,arguments),r=this.getTimezoneOffset(g);g+=r;var a=this.getTimezoneOffset(g);r!==a?g+=a-r:r-36e5!==this.getTimezoneOffset(g-36e5)||f||(g-=36e5)}else g=new this.Date(u,v,M(w,1),M(S,0),M(x,0),M(p,0)).getTime();return g},m.prototype.timezoneOffsetFunction=function(){var u=this,v=this.options,w=v.getTimezoneOffset,S=v.moment||H.moment;if(!this.useUTC)return function(x){return 6e4*new Date(x.toString()).getTimezoneOffset()};if(v.timezone){if(S)return function(x){return 6e4*-S.tz(x,v.timezone).utcOffset()};$(25)}return this.useUTC&&w?function(x){return 6e4*w(x.valueOf())}:function(){return 6e4*(u.timezoneOffset||0)}},m.prototype.dateFormat=function(u,v,w){if(!V(v)||isNaN(v))return W.defaultOptions.lang&&W.defaultOptions.lang.invalidDate||"";u=M(u,"%Y-%m-%d %H:%M:%S");var S=this,x=new this.Date(v),p=this.get("Hours",x),g=this.get("Day",x),r=this.get("Date",x),a=this.get("Month",x),t=this.get("FullYear",x),i=W.defaultOptions.lang,o=i&&i.weekdays,e=i&&i.shortWeekdays;return x=Z({a:e?e[g]:o[g].substr(0,3),A:o[g],d:E(r),e:E(r,2," "),w:g,b:i.shortMonths[a],B:i.months[a],m:E(a+1),o:a+1,y:t.toString().substr(2,2),Y:t,H:E(p),k:p,I:E(p%12||12),l:p%12||12,M:E(this.get("Minutes",x)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:E(x.getSeconds()),L:E(Math.floor(v%1e3),3)},W.dateFormats),I(x,function(s,n){for(;u.indexOf("%"+n)!==-1;)u=u.replace("%"+n,typeof s=="function"?s.call(S,v):s)}),w?u.substr(0,1).toUpperCase()+u.substr(1):u},m.prototype.resolveDTLFormat=function(u){return U(u,!0)?u:{main:(u=P(u))[0],from:u[1],to:u[2]}},m.prototype.getTimeTicks=function(u,v,w,S){var x,p=this,g=[],r={},a=new p.Date(v),t=u.unitRange,i=u.count||1;if(S=M(S,1),V(v)){if(p.set("Milliseconds",a,t>=y.second?0:i*Math.floor(p.get("Milliseconds",a)/i)),t>=y.second&&p.set("Seconds",a,t>=y.minute?0:i*Math.floor(p.get("Seconds",a)/i)),t>=y.minute&&p.set("Minutes",a,t>=y.hour?0:i*Math.floor(p.get("Minutes",a)/i)),t>=y.hour&&p.set("Hours",a,t>=y.day?0:i*Math.floor(p.get("Hours",a)/i)),t>=y.day&&p.set("Date",a,t>=y.month?1:Math.max(1,i*Math.floor(p.get("Date",a)/i))),t>=y.month){p.set("Month",a,t>=y.year?0:i*Math.floor(p.get("Month",a)/i));var o=p.get("FullYear",a)}t>=y.year&&p.set("FullYear",a,o-o%i),t===y.week&&(o=p.get("Day",a),p.set("Date",a,p.get("Date",a)-o+S+(o<S?-7:0))),o=p.get("FullYear",a),S=p.get("Month",a);var e=p.get("Date",a),s=p.get("Hours",a);for(v=a.getTime(),!p.variableTimezone&&p.useUTC||!V(w)||(x=w-v>4*y.month||p.getTimezoneOffset(v)!==p.getTimezoneOffset(w)),v=a.getTime(),a=1;v<w;)g.push(v),v=t===y.year?p.makeTime(o+a*i,0):t===y.month?p.makeTime(o,S+a*i):!x||t!==y.day&&t!==y.week?x&&t===y.hour&&1<i?p.makeTime(o,S,e,s+a*i):v+t*i:p.makeTime(o,S,e+a*i*(t===y.day?1:7)),a++;g.push(v),t<=y.hour&&1e4>g.length&&g.forEach(function(n){n%18e5==0&&p.dateFormat("%H%M%S%L",n)==="000000000"&&(r[n]="day")})}return g.info=Z(u,{higherRanks:r,totalRange:t*i}),g},m.prototype.getDateFormat=function(u,v,w,S){var x=this.dateFormat("%m-%d %H:%M:%S.%L",v),p={millisecond:15,second:12,minute:9,hour:6,day:3},g="millisecond";for(r in y){if(u===y.week&&+this.dateFormat("%w",v)===w&&x.substr(6)==="00:00:00.000"){var r="week";break}if(y[r]>u){r=g;break}if(p[r]&&x.substr(p[r])!=="01-01 00:00:00.000".substr(p[r]))break;r!=="week"&&(g=r)}return this.resolveDTLFormat(S[r]).main},m}(),R}),B(it,"Core/Defaults.js",[it["Core/Chart/ChartDefaults.js"],it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Color/Palettes.js"],it["Core/Time.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z){R=R.parse;var U=Z.merge,z={colors:V.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),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:W,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:H.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:H.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:R("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};z.chart.styledMode=!1;var I=new $(U(z.global,z.time));return{defaultOptions:z,defaultTime:I,getOptions:function(){return z},setOptions:function(E){return U(!0,z,E),(E.time||E.global)&&(H.time?H.time.update(U(z.global,z.time,E.global,E.time)):H.time=I),z}}}),B(it,"Core/Animation/Fx.js",[it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=R.win,Z=H.isNumber,U=H.objectEach;return function(){function z(I,E,M){this.pos=NaN,this.options=E,this.elem=I,this.prop=M}return z.prototype.dSetter=function(){var I=this.paths,E=I&&I[0];I=I&&I[1];var M=this.now||0,P=[];if(M!==1&&E&&I)if(E.length===I.length&&1>M)for(var y=0;y<I.length;y++){for(var h=E[y],f=I[y],m=[],u=0;u<f.length;u++){var v=h[u],w=f[u];Z(v)&&Z(w)&&(f[0]!=="A"||u!==4&&u!==5)?m[u]=v+M*(w-v):m[u]=w}P.push(m)}else P=I;else P=this.toD||[];this.elem.attr("d",P,void 0,!0)},z.prototype.update=function(){var I=this.elem,E=this.prop,M=this.now,P=this.options.step;this[E+"Setter"]?this[E+"Setter"]():I.attr?I.element&&I.attr(E,M,null,!0):I.style[E]=M+this.unit,P&&P.call(I,M,this)},z.prototype.run=function(I,E,M){var P=this,y=P.options,h=function(u){return!h.stopped&&P.step(u)},f=$.requestAnimationFrame||function(u){setTimeout(u,13)},m=function(){for(var u=0;u<z.timers.length;u++)z.timers[u]()||z.timers.splice(u--,1);z.timers.length&&f(m)};I!==E||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=I,this.end=E,this.unit=M,this.now=this.start,this.pos=0,h.elem=this.elem,h.prop=this.prop,h()&&z.timers.push(h)===1&&f(m)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))},z.prototype.step=function(I){var E=+new Date,M=this.options,P=this.elem,y=M.complete,h=M.duration,f=M.curAnim;if(P.attr&&!P.element)I=!1;else if(I||E>=h+this.startTime){this.now=this.end,this.pos=1,this.update();var m=f[this.prop]=!0;U(f,function(u){u!==!0&&(m=!1)}),m&&y&&y.call(P),I=!1}else this.pos=M.easing((E-this.startTime)/h),this.now=this.start+(this.end-this.start)*this.pos,this.update(),I=!0;return I},z.prototype.initPath=function(I,E,M){function P(x,p){for(;x.length<S;){var g=x[0],r=p[S-x.length];r&&g[0]==="M"&&(x[0]=r[0]==="C"?["C",g[1],g[2],g[1],g[2],g[1],g[2]]:["L",g[1],g[2]]),x.unshift(g),m&&(g=x.pop(),x.push(x[x.length-1],g))}}function y(x,p){for(;x.length<S;)if((p=x[Math.floor(x.length/u)-1].slice())[0]==="C"&&(p[1]=p[5],p[2]=p[6]),m){var g=x[Math.floor(x.length/u)].slice();x.splice(x.length/2,0,p,g)}else x.push(p)}var h=I.startX,f=I.endX;M=M.slice();var m=I.isArea,u=m?2:1;if(!(E=E&&E.slice()))return[M,M];if(h&&f&&f.length){for(I=0;I<h.length;I++){if(h[I]===f[0]){var v=I;break}if(h[0]===f[f.length-h.length+I]){v=I;var w=!0;break}if(h[h.length-1]===f[f.length-h.length+I]){v=h.length-I;break}}v===void 0&&(E=[])}if(E.length&&Z(v)){var S=M.length+v*u;w?(P(E,M),y(M,E)):(P(M,E),y(E,M))}return[E,M]},z.prototype.fillSetter=function(){z.prototype.strokeSetter.apply(this,arguments)},z.prototype.strokeSetter=function(){this.elem.attr(this.prop,V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)},z.timers=[],z}()}),B(it,"Core/Animation/AnimationUtilities.js",[it["Core/Animation/Fx.js"],it["Core/Utilities.js"]],function(W,R){function H(y){return I(y)?E({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function V(y,h){for(var f=W.timers.length;f--;)W.timers[f].elem!==y||h&&h!==W.timers[f].prop||(W.timers[f].stopped=!0)}var $=R.defined,Z=R.getStyle,U=R.isArray,z=R.isNumber,I=R.isObject,E=R.merge,M=R.objectEach,P=R.pick;return{animate:function(y,h,f){var m,u,v,w="";if(!I(f)){var S=arguments;f={duration:S[2],easing:S[3],complete:S[4]}}z(f.duration)||(f.duration=400),f.easing=typeof f.easing=="function"?f.easing:Math[f.easing]||Math.easeInOutSine,f.curAnim=E(h),M(h,function(x,p){V(y,p),v=new W(y,f,p),u=void 0,p==="d"&&U(h.d)?(v.paths=v.initPath(y,y.pathArray,h.d),v.toD=h.d,m=0,u=1):y.attr?m=y.attr(p):(m=parseFloat(Z(y,p))||0,p!=="opacity"&&(w="px")),u||(u=x),typeof u=="string"&&u.match("px")&&(u=u.replace(/px/g,"")),v.run(m,u,w)})},animObject:H,getDeferredAnimation:function(y,h,f){var m=H(h),u=0,v=0;return(f?[f]:y.series).forEach(function(w){w=H(w.options.animation),u=h&&$(h.defer)?m.defer:Math.max(u,w.duration+w.defer),v=Math.min(m.duration,w.duration)}),y.renderer.forExport&&(u=0),{defer:Math.max(0,u-v),duration:Math.min(u,v)}},setAnimation:function(y,h){h.renderer.globalAnimation=P(y,h.options.chart.animation,!0)},stop:V}}),B(it,"Core/Renderer/HTML/AST.js",[it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R){var H=W.SVG_NS,V=R.attr,$=R.createElement,Z=R.css,U=R.error,z=R.isFunction,I=R.isString,E=R.objectEach,M=R.splat,P=(R=W.win.trustedTypes)&&z(R.createPolicy)&&R.createPolicy("highcharts",{createHTML:function(f){return f}}),y=P?P.createHTML(""):"";try{var h=!!new DOMParser().parseFromString(y,"text/html")}catch(f){h=!1}return z=function(){function f(m){this.nodes=typeof m=="string"?this.parseMarkup(m):m}return f.filterUserAttributes=function(m){return E(m,function(u,v){var w=!0;f.allowedAttributes.indexOf(v)===-1&&(w=!1),["background","dynsrc","href","lowsrc","src"].indexOf(v)!==-1&&(w=I(u)&&f.allowedReferences.some(function(S){return u.indexOf(S)===0})),w||(U(33,!1,void 0,{"Invalid attribute in config":"".concat(v)}),delete m[v]),I(u)&&m[v]&&(m[v]=u.replace(/</g,"&lt;"))}),m},f.parseStyle=function(m){return m.split(";").reduce(function(u,v){v=v.split(":").map(function(S){return S.trim()});var w=v.shift();return w&&v.length&&(u[w.replace(/-([a-z])/g,function(S){return S[1].toUpperCase()})]=v.join(":")),u},{})},f.setElementHTML=function(m,u){m.innerHTML=f.emptyHTML,u&&new f(u).addToDOM(m)},f.prototype.addToDOM=function(m){return function u(v,w){var S;return M(v).forEach(function(x){var p=x.tagName,g=x.textContent?W.doc.createTextNode(x.textContent):void 0,r=f.bypassHTMLFiltering;if(p)if(p==="#text")var a=g;else if(f.allowedTags.indexOf(p)!==-1||r){p=W.doc.createElementNS(p==="svg"?H:w.namespaceURI||H,p);var t=x.attributes||{};E(x,function(i,o){o!=="tagName"&&o!=="attributes"&&o!=="children"&&o!=="style"&&o!=="textContent"&&(t[o]=i)}),V(p,r?t:f.filterUserAttributes(t)),x.style&&Z(p,x.style),g&&p.appendChild(g),u(x.children||[],p),a=p}else U(33,!1,void 0,{"Invalid tagName in config":p});a&&w.appendChild(a),S=a}),S}(this.nodes,m)},f.prototype.parseMarkup=function(m){var u=[];if(m=m.trim().replace(/ style=(["'])/g," data-style=$1"),h)m=new DOMParser().parseFromString(P?P.createHTML(m):m,"text/html");else{var v=$("div");v.innerHTML=m,m={body:v}}var w=function(S,x){var p=S.nodeName.toLowerCase(),g={tagName:p};if(p==="#text"&&(g.textContent=S.textContent||""),p=S.attributes){var r={};[].forEach.call(p,function(t){t.name==="data-style"?g.style=f.parseStyle(t.value):r[t.name]=t.value}),g.attributes=r}if(S.childNodes.length){var a=[];[].forEach.call(S.childNodes,function(t){w(t,a)}),a.length&&(g.children=a)}x.push(g)};return[].forEach.call(m.body.childNodes,function(S){return w(S,u)}),u},f.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 text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),f.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),f.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),f.emptyHTML=y,f.bypassHTMLFiltering=!1,f}(),z}),B(it,"Core/FormatUtilities.js",[it["Core/Defaults.js"],it["Core/Utilities.js"]],function(W,R){function H(E,M,P,y){E=+E||0,M=+M;var h=V.lang,f=(E.toString().split(".")[1]||"").split("e")[0].length,m=E.toString().split("e"),u=M;if(M===-1)M=Math.min(f,20);else if(U(M)){if(M&&m[1]&&0>m[1]){var v=M+ +m[1];0<=v?(m[0]=(+m[0]).toExponential(v).split("e")[0],M=v):(m[0]=m[0].split(".")[0]||0,E=20>M?(m[0]*Math.pow(10,m[1])).toFixed(M):0,m[1]=0)}}else M=2;v=(Math.abs(m[1]?m[0]:E)+Math.pow(10,-Math.max(M,f)-1)).toFixed(M);var w=3<(f=String(I(v))).length?f.length%3:0;return P=z(P,h.decimalPoint),y=z(y,h.thousandsSep),E=(0>E?"-":"")+(w?f.substr(0,w)+y:""),E=0>+m[1]&&!u?"0":E+f.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+y),M&&(E+=P+v.slice(-M)),m[1]&&+E!=0&&(E+="e"+m[1]),E}var V=W.defaultOptions,$=W.defaultTime,Z=R.getNestedProperty,U=R.isNumber,z=R.pick,I=R.pInt;return{dateFormat:function(E,M,P){return $.dateFormat(E,M,P)},format:function(E,M,P){var y="{",h=!1,f=/f$/,m=/\.([0-9])/,u=V.lang,v=P&&P.time||$;P=P&&P.numberFormatter||H;for(var w=[];E;){var S=E.indexOf(y);if(S===-1)break;var x=E.slice(0,S);if(h){if(x=x.split(":"),y=Z(x.shift()||"",M),x.length&&typeof y=="number")if(x=x.join(":"),f.test(x)){var p=parseInt((x.match(m)||["","-1"])[1],10);y!==null&&(y=P(y,p,u.decimalPoint,-1<x.indexOf(",")?u.thousandsSep:""))}else y=v.dateFormat(x,y);w.push(y)}else w.push(x);E=E.slice(S+1),y=(h=!h)?"}":"{"}return w.push(E),w.join("")},numberFormat:H}}),B(it,"Core/Renderer/RendererUtilities.js",[it["Core/Utilities.js"]],function(W){var R,H=W.clamp,V=W.pick,$=W.stableSort;return function(Z){Z.distribute=function U(z,I,E){var M,P=z,y=P.reducedLen||I,h=function(w,S){return(S.rank||0)-(w.rank||0)},f=function(w,S){return w.target-S.target},m=!0,u=[],v=0;for(M=z.length;M--;)v+=z[M].size;if(v>y){for($(z,h),v=M=0;v<=y;)v+=z[M].size,M++;u=z.splice(M-1,z.length)}for($(z,f),z=z.map(function(w){return{size:w.size,targets:[w.target],align:V(w.align,.5)}});m;){for(M=z.length;M--;)y=z[M],h=(Math.min.apply(0,y.targets)+Math.max.apply(0,y.targets))/2,y.pos=H(h-y.size*y.align,0,I-y.size);for(M=z.length,m=!1;M--;)0<M&&z[M-1].pos+z[M-1].size>z[M].pos&&(z[M-1].size+=z[M].size,z[M-1].targets=z[M-1].targets.concat(z[M].targets),z[M-1].align=.5,z[M-1].pos+z[M-1].size>I&&(z[M-1].pos=I-z[M-1].size),z.splice(M,1),m=!0)}return P.push.apply(P,u),M=0,z.some(function(w){var S=0;return(w.targets||[]).some(function(){return P[M].pos=w.pos+S,E!==void 0&&Math.abs(P[M].pos-P[M].target)>E?(P.slice(0,M+1).forEach(function(x){return delete x.pos}),P.reducedLen=(P.reducedLen||I)-.1*I,P.reducedLen>.1*I&&U(P,I,E),!0):(S+=P[M].size,M++,!1)})}),$(P,f),P}}(R||(R={})),R}),B(it,"Core/Renderer/SVG/SVGElement.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=W.animate,Z=W.animObject,U=W.stop,z=H.deg2rad,I=H.doc,E=H.svg,M=H.SVG_NS,P=H.win,y=V.addEvent,h=V.attr,f=V.createElement,m=V.css,u=V.defined,v=V.erase,w=V.extend,S=V.fireEvent,x=V.isArray,p=V.isFunction,g=V.isString,r=V.merge,a=V.objectEach,t=V.pick,i=V.pInt,o=V.syncTimeout,e=V.uniqueKey;return W=function(){function s(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=M,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return s.prototype._defaultGetter=function(n){return n=t(this[n+"Value"],this[n],this.element?this.element.getAttribute(n):null,0),/^[\-0-9\.]+$/.test(n)&&(n=parseFloat(n)),n},s.prototype._defaultSetter=function(n,l,b){b.setAttribute(l,n)},s.prototype.add=function(n){var l=this.renderer,b=this.element;if(n&&(this.parentGroup=n),this.textStr!==void 0&&this.element.nodeName==="text"&&l.buildText(this),this.added=!0,!n||n.handleZ||this.zIndex)var T=this.zIndexSetter();return T||(n?n.element:l.box).appendChild(b),this.onAdd&&this.onAdd(),this},s.prototype.addClass=function(n,l){var b=l?"":this.attr("class")||"";return n=(n||"").split(/ /g).reduce(function(T,D){return b.indexOf(D)===-1&&T.push(D),T},b?[b]:[]).join(" "),n!==b&&this.attr("class",n),this},s.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},s.prototype.align=function(n,l,b){var T,D,d,C={},A=this.renderer,N=A.alignedObjects;n?(this.alignOptions=n,this.alignByTranslate=l,(!b||g(b))&&(this.alignTo=T=b||"renderer",v(N,this),N.push(this),b=void 0)):(n=this.alignOptions,l=this.alignByTranslate,T=this.alignTo),b=t(b,A[T],T==="scrollablePlotBox"?A.plotBox:void 0,A),T=n.align;var _=n.verticalAlign;return A=(b.x||0)+(n.x||0),N=(b.y||0)+(n.y||0),T==="right"?D=1:T==="center"&&(D=2),D&&(A+=(b.width-(n.width||0))/D),C[l?"translateX":"x"]=Math.round(A),_==="bottom"?d=1:_==="middle"&&(d=2),d&&(N+=(b.height-(n.height||0))/d),C[l?"translateY":"y"]=Math.round(N),this[this.placed?"animate":"attr"](C),this.placed=!0,this.alignAttr=C,this},s.prototype.alignSetter=function(n){var l={left:"start",center:"middle",right:"end"};l[n]&&(this.alignValue=n,this.element.setAttribute("text-anchor",l[n]))},s.prototype.animate=function(n,l,b){var T=this,D=Z(t(l,this.renderer.globalAnimation,!0));return l=D.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(D.duration=0),D.duration!==0?(b&&(D.complete=b),o(function(){T.element&&$(T,n,D)},l)):(this.attr(n,void 0,b||D.complete),a(n,function(d,C){D.step&&D.step.call(this,d,{prop:C,pos:1,elem:this})},this)),this},s.prototype.applyTextOutline=function(n){var l=this.element;n.indexOf("contrast")!==-1&&(n=n.replace(/contrast/g,this.renderer.getContrast(l.style.fill)));var b=n.split(" ");if(n=b[b.length-1],(b=b[0])&&b!=="none"&&H.svg){this.fakeTS=!0,b=b.replace(/(^[\d\.]+)(.*?)$/g,function(d,C,A){return 2*Number(C)+A}),this.removeTextOutline();var T=I.createElementNS(M,"tspan");h(T,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":b,"stroke-linejoin":"round"}),n=l.querySelector("textPath")||l,[].forEach.call(n.childNodes,function(d){var C=d.cloneNode(!0);C.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(A){return C.removeAttribute(A)}),T.appendChild(C)});var D=0;[].forEach.call(n.querySelectorAll("text tspan"),function(d){D+=Number(d.getAttribute("dy"))}),(b=I.createElementNS(M,"tspan")).textContent="​",h(b,{x:Number(l.getAttribute("x")),dy:-D}),T.appendChild(b),n.insertBefore(T,n.firstChild)}},s.prototype.attr=function(n,l,b,T){var D,d,C,A=this.element,N=this.symbolCustomAttribs,_=this;if(typeof n=="string"&&l!==void 0){var L=n;(n={})[L]=l}return typeof n=="string"?_=(this[n+"Getter"]||this._defaultGetter).call(this,n,A):(a(n,function(O,j){d=!1,T||U(this,j),this.symbolName&&N.indexOf(j)!==-1&&(D||(this.symbolAttr(n),D=!0),d=!0),!this.rotation||j!=="x"&&j!=="y"||(this.doTransform=!0),d||((C=this[j+"Setter"]||this._defaultSetter).call(this,O,j,A),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(j)&&this.updateShadows(j,O,C))},this),this.afterSetters()),b&&b.call(this),_},s.prototype.clip=function(n){return this.attr("clip-path",n?"url("+this.renderer.url+"#"+n.id+")":"none")},s.prototype.crisp=function(n,l){l=l||n.strokeWidth||0;var b=Math.round(l)%2/2;return n.x=Math.floor(n.x||this.x||0)+b,n.y=Math.floor(n.y||this.y||0)+b,n.width=Math.floor((n.width||this.width||0)-2*b),n.height=Math.floor((n.height||this.height||0)-2*b),u(n.strokeWidth)&&(n.strokeWidth=l),n},s.prototype.complexColor=function(n,l,b){var T,D,d,C,A,N,_,L,O,j,Y,X=this.renderer,G=[];S(this.renderer,"complexColor",{args:arguments},function(){if(n.radialGradient?D="radialGradient":n.linearGradient&&(D="linearGradient"),D){if(d=n[D],A=X.gradients,N=n.stops,O=b.radialReference,x(d)&&(n[D]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"}),D==="radialGradient"&&O&&!u(d.gradientUnits)&&(C=d,d=r(d,X.getRadialAttr(O,C),{gradientUnits:"userSpaceOnUse"})),a(d,function(Q,J){J!=="id"&&G.push(J,Q)}),a(N,function(Q){G.push(Q)}),G=G.join(","),A[G])j=A[G].attr("id");else{d.id=j=e();var q=A[G]=X.createElement(D).attr(d).add(X.defs);q.radAttr=C,q.stops=[],N.forEach(function(Q){Q[1].indexOf("rgba")===0?(T=R.parse(Q[1]),_=T.get("rgb"),L=T.get("a")):(_=Q[1],L=1),Q=X.createElement("stop").attr({offset:Q[0],"stop-color":_,"stop-opacity":L}).add(q),q.stops.push(Q)})}Y="url("+X.url+"#"+j+")",b.setAttribute(l,Y),b.gradient=G,n.toString=function(){return Y}}})},s.prototype.css=function(n){var l=this.styles,b={},T=this.element,D=!l;if(n.color&&(n.fill=n.color),l&&a(n,function(A,N){l&&l[N]!==A&&(b[N]=A,D=!0)}),D){if(l&&(n=w(l,b)),n.width===null||n.width==="auto")delete this.textWidth;else if(T.nodeName.toLowerCase()==="text"&&n.width)var d=this.textWidth=i(n.width);this.styles=n,d&&!E&&this.renderer.forExport&&delete n.width;var C=r(n);T.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(A){return C&&delete C[A]}),m(T,C),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),n.textOutline&&this.applyTextOutline(n.textOutline))}return this},s.prototype.dashstyleSetter=function(n){var l=this["stroke-width"];if(l==="inherit"&&(l=1),n=n&&n.toLowerCase()){var b=n.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(n=b.length;n--;)b[n]=""+i(b[n])*t(l,NaN);n=b.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",n)}},s.prototype.destroy=function(){var n=this,l=n.element||{},b=n.renderer,T=l.ownerSVGElement,D=b.isSVG&&l.nodeName==="SPAN"&&n.parentGroup||void 0;if(l.onclick=l.onmouseout=l.onmouseover=l.onmousemove=l.point=null,U(n),n.clipPath&&T){var d=n.clipPath;[].forEach.call(T.querySelectorAll("[clip-path],[CLIP-PATH]"),function(C){-1<C.getAttribute("clip-path").indexOf(d.element.id)&&C.removeAttribute("clip-path")}),n.clipPath=d.destroy()}if(n.stops){for(T=0;T<n.stops.length;T++)n.stops[T].destroy();n.stops.length=0,n.stops=void 0}for(n.safeRemoveChild(l),b.styledMode||n.destroyShadows();D&&D.div&&D.div.childNodes.length===0;)l=D.parentGroup,n.safeRemoveChild(D.div),delete D.div,D=l;n.alignTo&&v(b.alignedObjects,n),a(n,function(C,A){n[A]&&n[A].parentGroup===n&&n[A].destroy&&n[A].destroy(),delete n[A]})},s.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(n){this.safeRemoveChild(n)},this),this.shadows=void 0},s.prototype.dSetter=function(n,l,b){x(n)&&(typeof n[0]=="string"&&(n=this.renderer.pathToSegments(n)),this.pathArray=n,n=n.reduce(function(T,D,d){return D&&D.join?(d?T+" ":"")+D.join(" "):(D||"").toString()},"")),/(NaN| {2}|^$)/.test(n)&&(n="M 0 0"),this[l]!==n&&(b.setAttribute(l,n),this[l]=n)},s.prototype.fadeOut=function(n){var l=this;l.animate({opacity:0},{duration:t(n,150),complete:function(){l.hide()}})},s.prototype.fillSetter=function(n,l,b){typeof n=="string"?b.setAttribute(l,n):n&&this.complexColor(n,l,b)},s.prototype.getBBox=function(n,l){var b=this.alignValue,T=this.element,D=this.renderer,d=this.styles,C=this.textStr,A=D.cache,N=D.cacheKeys,_=T.namespaceURI===this.SVG_NS;l=t(l,this.rotation,0);var L,O=D.styledMode?T&&s.prototype.getStyle.call(T,"font-size"):d&&d.fontSize;if(u(C)){var j=C.toString();j.indexOf("<")===-1&&(j=j.replace(/[0-9]/g,"0")),j+=["",l,O,this.textWidth,b,d&&d.textOverflow,d&&d.fontWeight].join()}if(j&&!n&&(L=A[j]),!L){if(_||D.forExport){try{var Y=this.fakeTS&&function(G){var q=T.querySelector(".highcharts-text-outline");q&&m(q,{display:G})};p(Y)&&Y("none"),L=T.getBBox?w({},T.getBBox()):{width:T.offsetWidth,height:T.offsetHeight,x:0,y:0},p(Y)&&Y("")}catch(G){}(!L||0>L.width)&&(L={x:0,y:0,width:0,height:0})}else L=this.htmlGetBBox();if(D.isSVG&&(D=L.width,n=L.height,_&&(L.height=n={"11px,17":14,"13px,20":16}[""+(O||"")+",".concat(Math.round(n))]||n),l)){_=Number(T.getAttribute("y")||0)-L.y,b={right:1,center:.5}[b||0]||0,d=l*z,O=(l-90)*z;var X=D*Math.cos(d);l=D*Math.sin(d),Y=Math.cos(O),d=Math.sin(O),X=(Y=(O=(D=L.x+b*(D-X)+_*Y)+X)-n*Y)-X,l=(n=(b=(_=L.y+_-b*l+_*d)+l)-n*d)-l,L.x=Math.min(D,O,Y,X),L.y=Math.min(_,b,n,l),L.width=Math.max(D,O,Y,X)-L.x,L.height=Math.max(_,b,n,l)-L.y}if(j&&(C===""||0<L.height)){for(;250<N.length;)delete A[N.shift()];A[j]||N.push(j),A[j]=L}}return L},s.prototype.getStyle=function(n){return P.getComputedStyle(this.element||this,"").getPropertyValue(n)},s.prototype.hasClass=function(n){return(""+this.attr("class")).split(" ").indexOf(n)!==-1},s.prototype.hide=function(){return this.attr({visibility:"hidden"})},s.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},s.prototype.init=function(n,l){this.element=l==="span"?f(l):I.createElementNS(this.SVG_NS,l),this.renderer=n,S(this,"afterInit")},s.prototype.on=function(n,l){var b=this.onEvents;return b[n]&&b[n](),b[n]=y(this.element,n,l),this},s.prototype.opacitySetter=function(n,l,b){this.opacity=n=Number(Number(n).toFixed(3)),b.setAttribute(l,n)},s.prototype.removeClass=function(n){return this.attr("class",(""+this.attr("class")).replace(g(n)?new RegExp("(^| )".concat(n,"( |$)")):n," ").replace(/ +/g," ").trim())},s.prototype.removeTextOutline=function(){var n=this.element.querySelector("tspan.highcharts-text-outline");n&&this.safeRemoveChild(n)},s.prototype.safeRemoveChild=function(n){var l=n.parentNode;l&&l.removeChild(n)},s.prototype.setRadialReference=function(n){var l=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=n,l&&l.radAttr&&l.animate(this.renderer.getRadialAttr(n,l.radAttr)),this},s.prototype.setTextPath=function(n,l){var b=this;l=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},l);var T=this.renderer.url,D=this.text||this,d=D.textPath,C=l.attributes,A=l.enabled;return n=n||d&&d.path,d&&d.undo(),n&&A?(l=y(D,"afterModifyTree",function(N){if(n&&A){var _=n.attr("id");_||n.attr("id",_=e());var L={x:0,y:0};u(C.dx)&&(L.dx=C.dx,delete C.dx),u(C.dy)&&(L.dy=C.dy,delete C.dy),D.attr(L),b.attr({transform:""}),b.box&&(b.box=b.box.destroy()),L=N.nodes.slice(0),N.nodes.length=0,N.nodes[0]={tagName:"textPath",attributes:w(C,{"text-anchor":C.textAnchor,href:""+T+"#".concat(_)}),children:L}}}),D.textPath={path:n,undo:l}):(D.attr({dx:0,dy:0}),delete D.textPath),this.added&&(D.textCache="",this.renderer.buildText(D)),this},s.prototype.shadow=function(n,l,b){var T=[],D=this.element,d=this.oldShadowOptions,C=this.parentGroup,A=C&&C.rotation===90;C={color:"#000000",offsetX:A?-1:1,offsetY:A?-1:1,opacity:.15,width:3};var N,_=!1;if(n===!0?N=C:typeof n=="object"&&(N=w(C,n)),N&&(N&&d&&a(N,function(Y,X){Y!==d[X]&&(_=!0)}),_&&this.destroyShadows(),this.oldShadowOptions=N),N){if(!this.shadows){C=N.opacity/N.width;var L=A?"translate(".concat(N.offsetY,", ").concat(N.offsetX,")"):"translate(".concat(N.offsetX,", ").concat(N.offsetY,")");for(A=1;A<=N.width;A++){var O=D.cloneNode(!1),j=2*N.width+1-2*A;h(O,{stroke:n.color||"#000000","stroke-opacity":C*A,"stroke-width":j,transform:L,fill:"none"}),O.setAttribute("class",(O.getAttribute("class")||"")+" highcharts-shadow"),b&&(h(O,"height",Math.max(h(O,"height")-j,0)),O.cutHeight=j),l?l.element.appendChild(O):D.parentNode&&D.parentNode.insertBefore(O,D),T.push(O)}this.shadows=T}}else this.destroyShadows();return this},s.prototype.show=function(n){return n===void 0&&(n=!0),this.attr({visibility:n?"inherit":"visible"})},s.prototype["stroke-widthSetter"]=function(n,l,b){this[l]=n,b.setAttribute(l,n)},s.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var n=this.getStyle("stroke-width"),l=0;if(n.indexOf("px")===n.length-2)l=i(n);else if(n!==""){var b=I.createElementNS(M,"rect");h(b,{width:n,"stroke-width":0}),this.element.parentNode.appendChild(b),l=b.getBBox().width,b.parentNode.removeChild(b)}return l},s.prototype.symbolAttr=function(n){var l=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){l[b]=t(n[b],l[b])}),l.attr({d:l.renderer.symbols[l.symbolName](l.x,l.y,l.width,l.height,l)})},s.prototype.textSetter=function(n){n!==this.textStr&&(delete this.textPxLength,this.textStr=n,this.added&&this.renderer.buildText(this))},s.prototype.titleSetter=function(n){var l=this.element,b=l.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");l.insertBefore?l.insertBefore(b,l.firstChild):l.appendChild(b),b.textContent=String(t(n,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},s.prototype.toFront=function(){var n=this.element;return n.parentNode.appendChild(n),this},s.prototype.translate=function(n,l){return this.attr({translateX:n,translateY:l})},s.prototype.updateShadows=function(n,l,b){var T=this.shadows;if(T)for(var D=T.length;D--;)b.call(T[D],n==="height"?Math.max(l-(T[D].cutHeight||0),0):n==="d"?this.d:l,n,T[D])},s.prototype.updateTransform=function(){var n=this.element,l=this.matrix,b=this.rotation;b=b===void 0?0:b;var T=this.scaleX,D=this.scaleY,d=this.translateX,C=this.translateY;d=["translate("+(d===void 0?0:d)+","+(C===void 0?0:C)+")"],u(l)&&d.push("matrix("+l.join(",")+")"),b&&d.push("rotate("+b+" "+t(this.rotationOriginX,n.getAttribute("x"),0)+" "+t(this.rotationOriginY,n.getAttribute("y")||0)+")"),(u(T)||u(D))&&d.push("scale("+t(T,1)+" "+t(D,1)+")"),d.length&&!(this.text||this).textPath&&n.setAttribute("transform",d.join(" "))},s.prototype.visibilitySetter=function(n,l,b){n==="inherit"?b.removeAttribute(l):this[l]!==n&&b.setAttribute(l,n),this[l]=n},s.prototype.xGetter=function(n){return this.element.nodeName==="circle"&&(n==="x"?n="cx":n==="y"&&(n="cy")),this._defaultGetter(n)},s.prototype.zIndexSetter=function(n,l){var b=this.renderer,T=this.parentGroup,D=(T||b).element||b.box,d=this.element;b=D===b.box;var C,A=!1,N=this.added;if(u(n)?(d.setAttribute("data-z-index",n),n=+n,this[l]===n&&(N=!1)):u(this[l])&&d.removeAttribute("data-z-index"),this[l]=n,N){for((n=this.zIndex)&&T&&(T.handleZ=!0),C=(l=D.childNodes).length-1;0<=C&&!A;C--){N=(T=l[C]).getAttribute("data-z-index");var _=!u(N);T!==d&&(0>n&&_&&!b&&!C?(D.insertBefore(d,l[C]),A=!0):(i(N)<=n||_&&(!u(n)||0<=n))&&(D.insertBefore(d,l[C+1]||null),A=!0))}A||(D.insertBefore(d,l[b?3:0]||null),A=!0)}return A},s}(),W.prototype.strokeSetter=W.prototype.fillSetter,W.prototype.yGetter=W.prototype.xGetter,W.prototype.matrixSetter=W.prototype.rotationOriginXSetter=W.prototype.rotationOriginYSetter=W.prototype.rotationSetter=W.prototype.scaleXSetter=W.prototype.scaleYSetter=W.prototype.translateXSetter=W.prototype.translateYSetter=W.prototype.verticalAlignSetter=function(s,n){this[n]=s,this.doTransform=!0},W}),B(it,"Core/Renderer/RendererRegistry.js",[it["Core/Globals.js"]],function(W){var R;return function(H){var V;H.rendererTypes={},H.getRendererType=function($){return $===void 0&&($=V),H.rendererTypes[$]||H.rendererTypes[V]},H.registerRendererType=function($,Z,U){H.rendererTypes[$]=Z,V&&!U||(V=$,W.Renderer=Z)}}(R||(R={})),R}),B(it,"Core/Renderer/SVG/SVGLabel.js",[it["Core/Renderer/SVG/SVGElement.js"],it["Core/Utilities.js"]],function(W,R){var H=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),V=R.defined,$=R.extend,Z=R.isNumber,U=R.merge,z=R.pick,I=R.removeEvent;return function(E){function M(P,y,h,f,m,u,v,w,S,x){var p,g=E.call(this)||this;return g.paddingLeftSetter=g.paddingSetter,g.paddingRightSetter=g.paddingSetter,g.init(P,"g"),g.textStr=y,g.x=h,g.y=f,g.anchorX=u,g.anchorY=v,g.baseline=S,g.className=x,g.addClass(x==="button"?"highcharts-no-tooltip":"highcharts-label"),x&&g.addClass("highcharts-"+x),g.text=P.text(void 0,0,0,w).attr({zIndex:1}),typeof m=="string"&&((p=/^url\((.*?)\)$/.test(m))||g.renderer.symbols[m])&&(g.symbolKey=m),g.bBox=M.emptyBBox,g.padding=3,g.baselineOffset=0,g.needsBox=P.styledMode||p,g.deferredAttr={},g.alignFactor=0,g}return H(M,E),M.prototype.alignSetter=function(P){(P={left:0,center:.5,right:1}[P])!==this.alignFactor&&(this.alignFactor=P,this.bBox&&Z(this.xSetting)&&this.attr({x:this.xSetting}))},M.prototype.anchorXSetter=function(P,y){this.anchorX=P,this.boxAttr(y,Math.round(P)-this.getCrispAdjust()-this.xSetting)},M.prototype.anchorYSetter=function(P,y){this.anchorY=P,this.boxAttr(y,P-this.ySetting)},M.prototype.boxAttr=function(P,y){this.box?this.box.attr(P,y):this.deferredAttr[P]=y},M.prototype.css=function(P){if(P){var y={};P=U(P),M.textProps.forEach(function(h){P[h]!==void 0&&(y[h]=P[h],delete P[h])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return W.prototype.css.call(this,P)},M.prototype.destroy=function(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),W.prototype.destroy.call(this)},M.prototype.fillSetter=function(P,y){P&&(this.needsBox=!0),this.fill=P,this.boxAttr(y,P)},M.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var P=this.padding,y=z(this.paddingLeft,P);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-P}},M.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},M.prototype.heightSetter=function(P){this.heightSetting=P},M.prototype.onAdd=function(){this.text.add(this),this.attr({text:z(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&V(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},M.prototype.paddingSetter=function(P,y){Z(P)?P!==this[y]&&(this[y]=P,this.updateTextPadding()):this[y]=void 0},M.prototype.rSetter=function(P,y){this.boxAttr(y,P)},M.prototype.shadow=function(P){return P&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(P)),this},M.prototype.strokeSetter=function(P,y){this.stroke=P,this.boxAttr(y,P)},M.prototype["stroke-widthSetter"]=function(P,y){P&&(this.needsBox=!0),this["stroke-width"]=P,this.boxAttr(y,P)},M.prototype["text-alignSetter"]=function(P){this.textAlign=P},M.prototype.textSetter=function(P){P!==void 0&&this.text.attr({text:P}),this.updateTextPadding()},M.prototype.updateBoxSize=function(){var P=this.text,y=P.element.style,h={},f=this.padding,m=this.bBox=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!V(P.textStr)?M.emptyBBox:P.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||m.height||0)+2*f,y=this.renderer.fontMetrics(y&&y.fontSize,P),this.baselineOffset=f+Math.min((this.text.firstLineMetrics||y).b,m.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!P.textPath&&(this.box||((P=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),P.add(this)),P=this.getCrispAdjust(),h.x=P,h.y=(this.baseline?-this.baselineOffset:0)+P,h.width=Math.round(this.width),h.height=Math.round(this.height),this.box.attr($(h,this.deferredAttr)),this.deferredAttr={})},M.prototype.updateTextPadding=function(){var P=this.text;if(!P.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,h=z(this.paddingLeft,this.padding);V(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(h+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),h===P.x&&y===P.y||(P.attr("x",h),P.hasBoxWidthChanged&&(this.bBox=P.getBBox(!0)),y!==void 0&&P.attr("y",y)),P.x=h,P.y=y}},M.prototype.widthSetter=function(P){this.widthSetting=Z(P)?P:void 0},M.prototype.getPaddedWidth=function(){var P=this.padding,y=z(this.paddingLeft,P);return P=z(this.paddingRight,P),(this.widthSetting||this.bBox.width||0)+y+P},M.prototype.xSetter=function(P){this.x=P,this.alignFactor&&(P-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(P),this.attr("translateX",this.xSetting)},M.prototype.ySetter=function(P){this.ySetting=this.y=Math.round(P),this.attr("translateY",this.ySetting)},M.emptyBBox={width:0,height:0,x:0,y:0},M.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),M}(W)}),B(it,"Core/Renderer/SVG/Symbols.js",[it["Core/Utilities.js"]],function(W){function R(z,I,E,M,P){var y=[];if(P){var h=P.start||0,f=U(P.r,E);E=U(P.r,M||E);var m=(P.end||0)-.001;M=P.innerR;var u=U(P.open,.001>Math.abs((P.end||0)-h-2*Math.PI)),v=Math.cos(h),w=Math.sin(h),S=Math.cos(m),x=Math.sin(m);h=U(P.longArc,.001>m-h-Math.PI?0:1),y.push(["M",z+f*v,I+E*w],["A",f,E,0,h,U(P.clockwise,1),z+f*S,I+E*x]),$(M)&&y.push(u?["M",z+M*S,I+M*x]:["L",z+M*S,I+M*x],["A",M,M,0,h,$(P.clockwise)?1-P.clockwise:0,z+M*v,I+M*w]),u||y.push(["Z"])}return y}function H(z,I,E,M,P){return P&&P.r?V(z,I,E,M,P):[["M",z,I],["L",z+E,I],["L",z+E,I+M],["L",z,I+M],["Z"]]}function V(z,I,E,M,P){return[["M",z+(P=P&&P.r||0),I],["L",z+E-P,I],["C",z+E,I,z+E,I,z+E,I+P],["L",z+E,I+M-P],["C",z+E,I+M,z+E,I+M,z+E-P,I+M],["L",z+P,I+M],["C",z,I+M,z,I+M,z,I+M-P],["L",z,I+P],["C",z,I,z,I,z+P,I]]}var $=W.defined,Z=W.isNumber,U=W.pick;return{arc:R,callout:function(z,I,E,M,P){var y=Math.min(P&&P.r||0,E,M),h=y+6,f=P&&P.anchorX;P=P&&P.anchorY||0;var m=V(z,I,E,M,{r:y});return Z(f)&&(z+f>=E?P>I+h&&P<I+M-h?m.splice(3,1,["L",z+E,P-6],["L",z+E+6,P],["L",z+E,P+6],["L",z+E,I+M-y]):m.splice(3,1,["L",z+E,M/2],["L",f,P],["L",z+E,M/2],["L",z+E,I+M-y]):0>=z+f?P>I+h&&P<I+M-h?m.splice(7,1,["L",z,P+6],["L",z-6,P],["L",z,P-6],["L",z,I+y]):m.splice(7,1,["L",z,M/2],["L",f,P],["L",z,M/2],["L",z,I+y]):P&&P>M&&f>z+h&&f<z+E-h?m.splice(5,1,["L",f+6,I+M],["L",f,I+M+6],["L",f-6,I+M],["L",z+y,I+M]):P&&0>P&&f>z+h&&f<z+E-h&&m.splice(1,1,["L",f-6,I],["L",f,I-6],["L",f+6,I],["L",E-y,I])),m},circle:function(z,I,E,M){return R(z+E/2,I+M/2,E/2,M/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M/2],["L",z+E/2,I+M],["L",z,I+M/2],["Z"]]},rect:H,roundedRect:V,square:H,triangle:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M],["L",z,I+M],["Z"]]},"triangle-down":function(z,I,E,M){return[["M",z,I],["L",z+E,I],["L",z+E/2,I+M],["Z"]]}}}),B(it,"Core/Renderer/SVG/TextBuilder.js",[it["Core/Renderer/HTML/AST.js"],it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=R.SVG_NS,Z=R.win,U=H.attr,z=H.extend,I=H.fireEvent,E=H.isString,M=H.objectEach,P=H.pick;return function(){function y(h){var f=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=f&&f.lineHeight,this.textOutline=f&&f.textOutline,this.ellipsis=!(!f||f.textOverflow!=="ellipsis"),this.noWrap=!(!f||f.whiteSpace!=="nowrap"),this.fontSize=f&&f.fontSize}return y.prototype.buildSVG=function(){var h=this.svgElement,f=h.element,m=h.renderer,u=P(h.textStr,"").toString(),v=u.indexOf("<")!==-1,w=f.childNodes;m=this.width&&!h.added&&m.box;var S=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(S!==h.textCache){for(h.textCache=S,delete h.actualWidth,S=w.length;S--;)f.removeChild(w[S]);v||this.ellipsis||this.width||h.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))?u!==""&&(m&&m.appendChild(f),u=new W(u),this.modifyTree(u.nodes),u.addToDOM(f),this.modifyDOM(),this.ellipsis&&(f.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["&lt;","&gt;"])),m&&m.removeChild(f)):f.appendChild(V.createTextNode(this.unescapeEntities(u))),E(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var h,f=this,m=this.svgElement,u=U(m.element,"x");for(m.firstLineMetrics=void 0;(h=m.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)m.element.removeChild(h);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(x,p){x.nextSibling&&x.previousSibling&&(p===0&&x.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,x.previousSibling)),U(x,{dy:f.getLineHeight(x.nextSibling),x:u}))});var v=this.width||0;if(v){var w=function(x,p){var g=x.textContent||"",r=g.replace(/([^\^])-/g,"$1- ").split(" "),a=!f.noWrap&&(1<r.length||1<m.element.childNodes.length),t=f.getLineHeight(p),i=0,o=m.actualWidth;if(f.ellipsis)g&&f.truncate(x,g,void 0,0,Math.max(0,v-parseInt(f.fontSize||12,10)),function(e,s){return e.substring(0,s)+"…"});else if(a){for(g=[],a=[];p.firstChild&&p.firstChild!==x;)a.push(p.firstChild),p.removeChild(p.firstChild);for(;r.length;)r.length&&!f.noWrap&&0<i&&(g.push(x.textContent||""),x.textContent=r.join(" ").replace(/- /g,"-")),f.truncate(x,void 0,r,i===0&&o||0,v,function(e,s){return r.slice(0,s).join(" ").replace(/- /g,"-")}),o=m.actualWidth,i++;a.forEach(function(e){p.insertBefore(e,x)}),g.forEach(function(e){p.insertBefore(V.createTextNode(e),x),(e=V.createElementNS($,"tspan")).textContent="​",U(e,{dy:t,x:u}),p.insertBefore(e,x)})}},S=function(x){[].slice.call(x.childNodes).forEach(function(p){p.nodeType===Z.Node.TEXT_NODE?w(p,x):(p.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),S(p))})};S(m.element)}},y.prototype.getLineHeight=function(h){var f;return h=h.nodeType===Z.Node.TEXT_NODE?h.parentElement:h,this.renderer.styledMode||(f=h&&/(px|em)$/.test(h.style.fontSize)?h.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,h||this.svgElement.element).h},y.prototype.modifyTree=function(h){var f=this,m=function(u,v){var w=u.attributes;w=w===void 0?{}:w;var S=u.children,x=u.style;x=x===void 0?{}:x;var p=u.tagName,g=f.renderer.styledMode;p==="b"||p==="strong"?g?w.class="highcharts-strong":x.fontWeight="bold":p!=="i"&&p!=="em"||(g?w.class="highcharts-emphasized":x.fontStyle="italic"),x&&x.color&&(x.fill=x.color),p==="br"?(w.class="highcharts-br",u.textContent="​",(v=h[v+1])&&v.textContent&&(v.textContent=v.textContent.replace(/^ +/gm,""))):p==="a"&&S&&S.some(function(r){return r.tagName==="#text"})&&(u.children=[{children:S,tagName:"tspan"}]),p!=="#text"&&p!=="a"&&(u.tagName="tspan"),z(u,{attributes:w,style:x}),S&&S.filter(function(r){return r.tagName!=="#text"}).forEach(m)};h.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:h})},y.prototype.truncate=function(h,f,m,u,v,w){var S,x=this.svgElement,p=x.renderer,g=x.rotation,r=[],a=m?1:0,t=(f||m||"").length,i=t,o=function(s,n){n=n||s;var l=h.parentNode;if(l&&r[n]===void 0)if(l.getSubStringLength)try{r[n]=u+l.getSubStringLength(0,m?n+1:n)}catch(b){}else p.getSpanWidth&&(h.textContent=w(f||m,s),r[n]=u+p.getSpanWidth(x,h));return r[n]};x.rotation=0;var e=o(h.textContent.length);if(u+e>v){for(;a<=t;)i=Math.ceil((a+t)/2),m&&(S=w(m,i)),e=o(i,S&&S.length-1),a===t?a=t+1:e>v?t=i-1:a=i;t===0?h.textContent="":f&&t===f.length-1||(h.textContent=S||w(f||m,i))}m&&m.splice(0,i),x.actualWidth=e,x.rotation=g},y.prototype.unescapeEntities=function(h,f){return M(this.renderer.escapes,function(m,u){f&&f.indexOf(m)!==-1||(h=h.toString().replace(new RegExp(m,"g"),u))}),h},y}()}),B(it,"Core/Renderer/SVG/SVGRenderer.js",[it["Core/Renderer/HTML/AST.js"],it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Renderer/RendererRegistry.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Renderer/SVG/SVGLabel.js"],it["Core/Renderer/SVG/Symbols.js"],it["Core/Renderer/SVG/TextBuilder.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=H.charts,P=H.deg2rad,y=H.doc,h=H.isFirefox,f=H.isMS,m=H.isWebKit,u=H.noop,v=H.SVG_NS,w=H.symbolSizes,S=H.win,x=I.addEvent,p=I.attr,g=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,l=I.merge,b=I.pick,T=I.pInt,D=I.uniqueKey;return H=function(){function d(C,A,N,_,L,O,j){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(C,A,N,_,L,O,j)}return d.prototype.init=function(C,A,N,_,L,O,j){var Y,X=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),G=X.element;j||X.css(this.getStyle(_)),C.appendChild(G),p(C,"dir","ltr"),C.innerHTML.indexOf("xmlns")===-1&&p(G,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=G,this.boxWrapper=X,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=O,this.forExport=L,this.styledMode=j,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(A,N,!1),h&&C.getBoundingClientRect&&((A=function(){r(C,{left:0,top:0}),Y=C.getBoundingClientRect(),r(C,{left:Math.ceil(Y.left)-Y.left+"px",top:Math.ceil(Y.top)-Y.top+"px"})})(),this.unSubPixelFix=x(S,"resize",A))},d.prototype.definition=function(C){return new W([C]).addToDOM(this.defs.element)},d.prototype.getReferenceURL=function(){if((h||m)&&y.getElementsByTagName("base").length){if(!a(E)){var C=D();C=new W([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:C},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(C,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body),r(C,{position:"fixed",top:0,left:0,zIndex:9e5});var A=y.elementFromPoint(6,6);E=(A&&A.id)==="hitme",y.body.removeChild(C)}if(E)return S.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},d.prototype.getStyle=function(C){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},C)},d.prototype.setStyle=function(C){this.boxWrapper.css(this.getStyle(C))},d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},d.prototype.destroy=function(){var C=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),t(this.gradients||{}),this.gradients=null,C&&(this.defs=C.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},d.prototype.createElement=function(C){var A=new this.Element;return A.init(this,C),A},d.prototype.getRadialAttr=function(C,A){return{cx:C[0]-C[2]/2+(A.cx||0)*C[2],cy:C[1]-C[2]/2+(A.cy||0)*C[2],r:(A.r||0)*C[2]}},d.prototype.buildText=function(C){new z(C).buildSVG()},d.prototype.getContrast=function(C){return 1.05/(.05+(C=.2126*(C=R.parse(C).rgba.map(function(A){return .03928>=(A/=255)?A/12.92:Math.pow((A+.055)/1.055,2.4)}))[0]+.7152*C[1]+.0722*C[2]))>(C+.05)/.05?"#FFFFFF":"#000000"},d.prototype.button=function(C,A,N,_,L,O,j,Y,X,G){L===void 0&&(L={});var q=this.label(C,A,N,X,void 0,void 0,G,void 0,"button"),Q=this.styledMode;C=L.states||{};var J=0;delete(L=l(L)).states;var rt=l({color:"#333333",cursor:"pointer",fontWeight:"normal"},L.style);delete L.style;var lt=W.filterUserAttributes(L);if(q.attr(l({padding:8,r:2},lt)),!Q){lt=l({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},lt);var gt=(O=l(lt,{fill:"#e6e6e6"},W.filterUserAttributes(O||C.hover||{}))).style;delete O.style;var mt=(j=l(lt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},W.filterUserAttributes(j||C.select||{}))).style;delete j.style;var bt=(Y=l(lt,{style:{color:"#cccccc"}},W.filterUserAttributes(Y||C.disabled||{}))).style;delete Y.style}return x(q.element,f?"mouseover":"mouseenter",function(){J!==3&&q.setState(1)}),x(q.element,f?"mouseout":"mouseleave",function(){J!==3&&q.setState(J)}),q.setState=function(yt){yt!==1&&(q.state=J=yt),q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][yt||0]),Q||(q.attr([lt,O,j,Y][yt||0]),s(yt=[rt,gt,mt,bt][yt||0])&&q.css(yt))},Q||(q.attr(lt).css(i({cursor:"default"},rt)),G&&q.text.css({pointerEvents:"none"})),q.on("touchstart",function(yt){return yt.stopPropagation()}).on("click",function(yt){J!==3&&_.call(q,yt)})},d.prototype.crispLine=function(C,A,N){N===void 0&&(N="round");var _=C[0],L=C[1];return a(_[1])&&_[1]===L[1]&&(_[1]=L[1]=Math[N](_[1])-A%2/2),a(_[2])&&_[2]===L[2]&&(_[2]=L[2]=Math[N](_[2])+A%2/2),C},d.prototype.path=function(C){var A=this.styledMode?{}:{fill:"none"};return o(C)?A.d=C:s(C)&&i(A,C),this.createElement("path").attr(A)},d.prototype.circle=function(C,A,N){return C=s(C)?C:C===void 0?{}:{x:C,y:A,r:N},(A=this.createElement("circle")).xSetter=A.ySetter=function(_,L,O){O.setAttribute("c"+L,_)},A.attr(C)},d.prototype.arc=function(C,A,N,_,L,O){return s(C)?(A=(_=C).y,N=_.r,C=_.x):_={innerR:_,start:L,end:O},(C=this.symbol("arc",C,A,N,N,_)).r=N,C},d.prototype.rect=function(C,A,N,_,L,O){L=s(C)?C.r:L;var j=this.createElement("rect");return C=s(C)?C:C===void 0?{}:{x:C,y:A,width:Math.max(N,0),height:Math.max(_,0)},this.styledMode||(O!==void 0&&(C["stroke-width"]=O,C=j.crisp(C)),C.fill="none"),L&&(C.r=L),j.rSetter=function(Y,X,G){j.r=Y,p(G,{rx:Y,ry:Y})},j.rGetter=function(){return j.r||0},j.attr(C)},d.prototype.setSize=function(C,A,N){this.width=C,this.height=A,this.boxWrapper.animate({width:C,height:A},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(N,!0)?void 0:0}),this.alignElements()},d.prototype.g=function(C){var A=this.createElement("g");return C?A.attr({class:"highcharts-"+C}):A},d.prototype.image=function(C,A,N,_,L,O){var j={preserveAspectRatio:"none"},Y=function(G,q){G.setAttributeNS?G.setAttributeNS("http://www.w3.org/1999/xlink","href",q):G.setAttribute("hc-svg-href",q)};e(A)&&(j.x=A),e(N)&&(j.y=N),e(_)&&(j.width=_),e(L)&&(j.height=L);var X=this.createElement("image").attr(j);return A=function(G){Y(X.element,C),O.call(X,G)},O?(Y(X.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),N=new S.Image,x(N,"load",A),N.src=C,N.complete&&A({})):Y(X.element,C),X},d.prototype.symbol=function(C,A,N,_,L,O){var j,Y=this,X=/^url\((.*?)\)$/,G=X.test(C),q=!G&&(this.symbols[C]?C:"circle"),Q=q&&this.symbols[q];if(Q){typeof A=="number"&&(j=Q.call(this.symbols,Math.round(A||0),Math.round(N||0),_||0,L||0,O));var J=this.path(j);Y.styledMode||J.attr("fill","none"),i(J,{symbolName:q||void 0,x:A,y:N,width:_,height:L}),O&&i(J,O)}else if(G){var rt=C.match(X)[1],lt=J=this.image(rt);lt.imgwidth=b(w[rt]&&w[rt].width,O&&O.width),lt.imgheight=b(w[rt]&&w[rt].height,O&&O.height);var gt=function(mt){return mt.attr({width:mt.width,height:mt.height})};["width","height"].forEach(function(mt){lt[mt+"Setter"]=function(bt,yt){this[yt]=bt,bt=this.alignByTranslate;var ht=this.element,et=this.width,at=this.height,dt=this.imgwidth,vt=this.imgheight,Ct=this["img"+yt];if(a(Ct)){var xt=1;O&&O.backgroundSize==="within"&&et&&at?(xt=Math.min(et/dt,at/vt),Ct=Math.round(Ct*xt),p(ht,{width:Math.round(dt*xt),height:Math.round(vt*xt)})):ht&&ht.setAttribute(yt,Ct),bt||this.translate(((et||0)-Ct*xt)/2,((at||0)-Ct*xt)/2)}}}),a(A)&&lt.attr({x:A,y:N}),lt.isImg=!0,a(lt.imgwidth)&&a(lt.imgheight)?gt(lt):(lt.attr({width:0,height:0}),g("img",{onload:function(){var mt=M[Y.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),w[rt]={width:this.width,height:this.height},lt.imgwidth=this.width,lt.imgheight=this.height,lt.element&&gt(lt),this.parentNode&&this.parentNode.removeChild(this),Y.imgCount--,Y.imgCount||!mt||mt.hasLoaded||mt.onload()},src:rt}),this.imgCount++)}return J},d.prototype.clipRect=function(C,A,N,_){var L=D()+"-",O=this.createElement("clipPath").attr({id:L}).add(this.defs);return(C=this.rect(C,A,N,_,0).add(O)).id=L,C.clipPath=O,C.count=0,C},d.prototype.text=function(C,A,N,_){var L={};return!_||!this.allowHTML&&this.forExport?(L.x=Math.round(A||0),N&&(L.y=Math.round(N)),a(C)&&(L.text=C),C=this.createElement("text").attr(L),(!_||this.forExport&&!this.allowHTML)&&(C.xSetter=function(O,j,Y){for(var X,G=Y.getElementsByTagName("tspan"),q=Y.getAttribute(j),Q=0;Q<G.length;Q++)(X=G[Q]).getAttribute(j)===q&&X.setAttribute(j,O);Y.setAttribute(j,O)}),C):this.html(C,A,N)},d.prototype.fontMetrics=function(C,A){return C=!this.styledMode&&/px/.test(C)||!S.getComputedStyle?C||A&&A.style&&A.style.fontSize||this.style&&this.style.fontSize:A&&$.prototype.getStyle.call(A,"font-size"),{h:A=24>(C=/px/.test(C)?T(C):12)?C+3:Math.round(1.2*C),b:Math.round(.8*A),f:C}},d.prototype.rotCorr=function(C,A,N){var _=C;return A&&N&&(_=Math.max(_*Math.cos(A*P),4)),{x:-C/3*Math.sin(A*P),y:_}},d.prototype.pathToSegments=function(C){for(var A=[],N=[],_={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},L=0;L<C.length;L++)n(N[0])&&e(C[L])&&N.length===_[N[0].toUpperCase()]&&C.splice(L,0,N[0].replace("M","L").replace("m","l")),typeof C[L]=="string"&&(N.length&&A.push(N.slice(0)),N.length=0),N.push(C[L]);return A.push(N.slice(0)),A},d.prototype.label=function(C,A,N,_,L,O,j,Y,X){return new Z(this,C,A,N,_,L,O,j,Y,X)},d.prototype.alignElements=function(){this.alignedObjects.forEach(function(C){return C.align()})},d}(),i(H.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:U,draw:u}),V.registerRendererType("svg",H,!0),H}),B(it,"Core/Renderer/HTML/HTMLElement.js",[it["Core/Globals.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var h=function(f,m){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},h(f,m)};return function(f,m){function u(){this.constructor=f}h(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}}(),$=W.isFirefox,Z=W.isMS,U=W.isWebKit,z=W.win,I=H.css,E=H.defined,M=H.extend,P=H.pick,y=H.pInt;return function(h){function f(){return h!==null&&h.apply(this,arguments)||this}return V(f,h),f.compose=function(m){if(f.composedClasses.indexOf(m)===-1){f.composedClasses.push(m);var u=f.prototype,v=m.prototype;v.getSpanCorrection=u.getSpanCorrection,v.htmlCss=u.htmlCss,v.htmlGetBBox=u.htmlGetBBox,v.htmlUpdateTransform=u.htmlUpdateTransform,v.setSpanRotation=u.setSpanRotation}return m},f.prototype.getSpanCorrection=function(m,u,v){this.xCorr=-m*v,this.yCorr=-u},f.prototype.htmlCss=function(m){var u=this.element.tagName==="SPAN"&&m&&"width"in m,v=P(u&&m.width,void 0);if(u){delete m.width,this.textWidth=v;var w=!0}return m&&m.textOverflow==="ellipsis"&&(m.whiteSpace="nowrap",m.overflow="hidden"),this.styles=M(this.styles,m),I(this.element,m),w&&this.htmlUpdateTransform(),this},f.prototype.htmlGetBBox=function(){var m=this.element;return{x:m.offsetLeft,y:m.offsetTop,width:m.offsetWidth,height:m.offsetHeight}},f.prototype.htmlUpdateTransform=function(){if(this.added){var m=this.renderer,u=this.element,v=this.translateX||0,w=this.translateY||0,S=this.x||0,x=this.y||0,p=this.textAlign||"left",g={left:0,center:.5,right:1}[p],r=this.styles;if(r=r&&r.whiteSpace,I(u,{marginLeft:v,marginTop:w}),!m.styledMode&&this.shadows&&this.shadows.forEach(function(s){I(s,{marginLeft:v+1,marginTop:w+1})}),this.inverted&&[].forEach.call(u.childNodes,function(s){m.invertChild(s,u)}),u.tagName==="SPAN"){var a=this.rotation,t=this.textWidth&&y(this.textWidth),i=[a,p,u.innerHTML,this.textWidth,this.textAlign].join(),o=void 0;if(o=!1,t!==this.oldTextWidth){if(this.textPxLength)var e=this.textPxLength;else I(u,{width:"",whiteSpace:r||"nowrap"}),e=u.offsetWidth;(t>this.oldTextWidth||e>t)&&(/[ \-]/.test(u.textContent||u.innerText)||u.style.textOverflow==="ellipsis")&&(I(u,{width:e>t||a?t+"px":"auto",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=t,o=!0)}this.hasBoxWidthChanged=o,i!==this.cTT&&(o=m.fontMetrics(u.style.fontSize,u).b,!E(a)||a===(this.oldRotation||0)&&p===this.oldAlign||this.setSpanRotation(a,g,o),this.getSpanCorrection(!E(a)&&this.textPxLength||u.offsetWidth,o,g,a,p)),I(u,{left:S+(this.xCorr||0)+"px",top:x+(this.yCorr||0)+"px"}),this.cTT=i,this.oldRotation=a,this.oldAlign=p}}else this.alignOnAdd=!0},f.prototype.setSpanRotation=function(m,u,v){var w={},S=Z&&!/Edge/.test(z.navigator.userAgent)?"-ms-transform":U?"-webkit-transform":$?"MozTransform":z.opera?"-o-transform":void 0;S&&(w[S]=w.transform="rotate("+m+"deg)",w[S+($?"Origin":"-origin")]=w.transformOrigin=100*u+"% "+v+"px",I(this.element,w))},f.composedClasses=[],f}(R)}),B(it,"Core/Renderer/HTML/HTMLRenderer.js",[it["Core/Renderer/HTML/AST.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Renderer/SVG/SVGRenderer.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=V.attr,U=V.createElement,z=V.extend,I=V.pick;return function(E){function M(){return E!==null&&E.apply(this,arguments)||this}return $(M,E),M.compose=function(P){return M.composedClasses.indexOf(P)===-1&&(M.composedClasses.push(P),P.prototype.html=M.prototype.html),P},M.prototype.html=function(P,y,h){var f=this.createElement("span"),m=f.element,u=f.renderer,v=u.isSVG,w=function(S,x){["opacity","visibility"].forEach(function(p){S[p+"Setter"]=function(g,r,a){var t=S.div?S.div.style:x;R.prototype[p+"Setter"].call(this,g,r,a),t&&(t[r]=g)}}),S.addedSetters=!0};return f.textSetter=function(S){S!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,W.setElementHTML(this.element,I(S,"")),this.textStr=S,f.doTransform=!0)},v&&w(f,f.element.style),f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(S,x){x==="align"?f.alignValue=f.textAlign=S:f[x]=S,f.doTransform=!0},f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},f.attr({text:P,x:Math.round(y),y:Math.round(h)}).css({position:"absolute"}),u.styledMode||f.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),m.style.whiteSpace="nowrap",f.css=f.htmlCss,v&&(f.add=function(S){var x=u.box.parentNode,p=[];if(this.parentGroup=S){var g=S.div;if(!g){for(;S;)p.push(S),S=S.parentGroup;p.reverse().forEach(function(r){function a(e,s){r[s]=e,s==="translateX"?o.left=e+"px":o.top=e+"px",r.doTransform=!0}var t=Z(r.element,"class"),i=r.styles||{},o=(g=r.div=r.div||U("div",t?{className:t}:void 0,{position:"absolute",left:(r.translateX||0)+"px",top:(r.translateY||0)+"px",display:r.display,opacity:r.opacity,cursor:i.cursor,pointerEvents:i.pointerEvents,visibility:r.visibility},g||x)).style;z(r,{classSetter:function(e){return function(s){this.element.setAttribute("class",s),e.className=s}}(g),on:function(){return p[0].div&&f.on.apply({element:p[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:a,translateYSetter:a}),r.addedSetters||w(r)})}}else g=x;return g.appendChild(m),f.added=!0,f.alignOnAdd&&f.htmlUpdateTransform(),f}),f},M.composedClasses=[],M}(H)}),B(it,"Core/Axis/AxisDefaults.js",[],function(){var W;return function(R){R.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},R.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(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},R.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},R.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},R.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},R.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(W||(W={})),W}),B(it,"Core/Foundation.js",[it["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.isFunction,$=W.objectEach,Z=W.removeEvent;return function(U){U.registerEventOptions=function(z,I){z.eventOptions=z.eventOptions||{},$(I.events,function(E,M){z.eventOptions[M]!==E&&(z.eventOptions[M]&&(Z(z,M,z.eventOptions[M]),delete z.eventOptions[M]),V(E)&&(z.eventOptions[M]=E,H(z,M,E)))})}}(R||(R={})),R}),B(it,"Core/Axis/Tick.js",[it["Core/FormatUtilities.js"],it["Core/Globals.js"],it["Core/Utilities.js"]],function(W,R,H){var V=R.deg2rad,$=H.clamp,Z=H.correctFloat,U=H.defined,z=H.destroyObjectProperties,I=H.extend,E=H.fireEvent,M=H.isNumber,P=H.merge,y=H.objectEach,h=H.pick;return R=function(){function f(m,u,v,w,S){this.isNewLabel=this.isNew=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||w||this.addLabel()}return f.prototype.addLabel=function(){var m=this,u=m.axis,v=u.options,w=u.chart,S=u.categories,x=u.logarithmic,p=u.names,g=m.pos,r=h(m.options&&m.options.labels,v.labels),a=u.tickPositions,t=g===a[0],i=g===a[a.length-1],o=(!r.step||r.step===1)&&u.tickInterval===1;a=a.info;var e,s=m.label;if(S=this.parameters.category||(S?h(S[g],p[g],g):g),x&&M(S)&&(S=Z(x.lin2log(S))),u.dateTime)if(a)var n=w.time.resolveDTLFormat(v.dateTimeLabelFormats[!v.grid&&a.higherRanks[g]||a.unitName]),l=n.main;else M(S)&&(l=u.dateTime.getXDateFormat(S,v.dateTimeLabelFormats||{}));m.isFirst=t,m.isLast=i;var b={axis:u,chart:w,dateTimeLabelFormat:l,isFirst:t,isLast:i,pos:g,tick:m,tickPositionInfo:a,value:S};E(this,"labelFormat",b);var T=function(d){return r.formatter?r.formatter.call(d,d):r.format?(d.text=u.defaultLabelFormatter.call(d,d),W.format(r.format,d,w)):u.defaultLabelFormatter.call(d,d)};v=T.call(b,b);var D=n&&n.list;m.shortenLabel=D?function(){for(e=0;e<D.length;e++)if(I(b,{dateTimeLabelFormat:D[e]}),s.attr({text:T.call(b,b)}),s.getBBox().width<u.getSlotWidth(m)-2*r.padding)return;s.attr({text:""})}:void 0,o&&u._addedPlotLB&&m.moveLabel(v,r),U(s)||m.movedLabel?s&&s.textStr!==v&&!o&&(!s.textWidth||r.style.width||s.styles.width||s.css({width:null}),s.attr({text:v}),s.textPxLength=s.getBBox().width):(m.label=s=m.createLabel({x:0,y:0},v,r),m.rotation=0)},f.prototype.createLabel=function(m,u,v){var w=this.axis,S=w.chart;return(m=U(u)&&v.enabled?S.renderer.text(u,m.x,m.y,v.useHTML).add(w.labelGroup):null)&&(S.styledMode||m.css(P(v.style)),m.textPxLength=m.getBBox().width),m},f.prototype.destroy=function(){z(this,this.axis)},f.prototype.getPosition=function(m,u,v,w){var S=this.axis,x=S.chart,p=w&&x.oldChartHeight||x.chartHeight;return(m={x:m?Z(S.translate(u+v,void 0,void 0,w)+S.transB):S.left+S.offset+(S.opposite?(w&&x.oldChartWidth||x.chartWidth)-S.right-S.left:0),y:m?p-S.bottom+S.offset-(S.opposite?S.height:0):Z(p-S.translate(u+v,void 0,void 0,w)-S.transB)}).y=$(m.y,-1e5,1e5),E(this,"afterGetPosition",{pos:m}),m},f.prototype.getLabelPosition=function(m,u,v,w,S,x,p,g){var r=this.axis,a=r.transA,t=r.isLinked&&r.linkedParent?r.linkedParent.reversed:r.reversed,i=r.staggerLines,o=r.tickRotCorr||{x:0,y:0},e=w||r.reserveSpaceDefault?0:-r.labelOffset*(r.labelAlign==="center"?.5:1),s={};return v=r.side===0?v.rotation?-8:-v.getBBox().height:r.side===2?o.y+8:Math.cos(v.rotation*V)*(o.y-v.getBBox(!1,0).height/2),U(S.y)&&(v=r.side===0&&r.horiz?S.y+v:S.y),m=m+S.x+e+o.x-(x&&w?x*a*(t?-1:1):0),u=u+v-(x&&!w?x*a*(t?1:-1):0),i&&(w=p/(g||1)%i,r.opposite&&(w=i-w-1),u+=r.labelOffset/i*w),s.x=m,s.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:s,tickmarkOffset:x,index:p}),s},f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},f.prototype.getMarkPath=function(m,u,v,w,S,x){return x.crispLine([["M",m,u],["L",m+(S?0:-v),u+(S?v:0)]],w)},f.prototype.handleOverflow=function(m){var u=this.axis,v=u.options.labels,w=m.x,S=u.chart.chartWidth,x=u.chart.spacing,p=h(u.labelLeft,Math.min(u.pos,x[3]));x=h(u.labelRight,Math.max(u.isRadial?0:u.pos+u.len,S-x[1]));var g,r=this.label,a=this.rotation,t={left:0,center:.5,right:1}[u.labelAlign||r.attr("align")],i=r.getBBox().width,o=u.getSlotWidth(this),e={},s=o,n=1;a||v.overflow!=="justify"?0>a&&w-t*i<p?g=Math.round(w/Math.cos(a*V)-p):0<a&&w+t*i>x&&(g=Math.round((S-w)/Math.cos(a*V))):(S=w+(1-t)*i,w-t*i<p?s=m.x+s*(1-t)-p:S>x&&(s=x-m.x+s*t,n=-1),(s=Math.min(o,s))<o&&u.labelAlign==="center"&&(m.x+=n*(o-s-t*(o-Math.min(i,s)))),(i>s||u.autoRotation&&(r.styles||{}).width)&&(g=s)),g&&(this.shortenLabel?this.shortenLabel():(e.width=Math.floor(g)+"px",(v.style||{}).textOverflow||(e.textOverflow="ellipsis"),r.css(e)))},f.prototype.moveLabel=function(m,u){var v=this,w=v.label,S=v.axis,x=S.reversed,p=!1;if(w&&w.textStr===m?(v.movedLabel=w,p=!0,delete v.label):y(S.ticks,function(r){p||r.isNew||r===v||!r.label||r.label.textStr!==m||(v.movedLabel=r.label,p=!0,r.labelPos=v.movedLabel.xy,delete r.label)}),!p&&(v.labelPos||w)){var g=v.labelPos||w.xy;w=S.horiz?x?0:S.width+S.left:g.x,S=S.horiz?g.y:x?S.width+S.left:0,v.movedLabel=v.createLabel({x:w,y:S},m,u),v.movedLabel&&v.movedLabel.attr({opacity:0})}},f.prototype.render=function(m,u,v){var w=this.axis,S=w.horiz,x=this.pos,p=h(this.tickmarkOffset,w.tickmarkOffset);p=(x=this.getPosition(S,x,p,u)).x;var g=x.y;w=S&&p===w.pos+w.len||!S&&g===w.pos?-1:1,S=h(v,this.label&&this.label.newOpacity,1),v=h(v,1),this.isActive=!0,this.renderGridLine(u,v,w),this.renderMark(x,v,w),this.renderLabel(x,u,S,m),this.isNew=!1,E(this,"afterRender")},f.prototype.renderGridLine=function(m,u,v){var w=this.axis,S=w.options,x={},p=this.pos,g=this.type,r=h(this.tickmarkOffset,w.tickmarkOffset),a=w.chart.renderer,t=this.gridLine,i=S.gridLineWidth,o=S.gridLineColor,e=S.gridLineDashStyle;this.type==="minor"&&(i=S.minorGridLineWidth,o=S.minorGridLineColor,e=S.minorGridLineDashStyle),t||(w.chart.styledMode||(x.stroke=o,x["stroke-width"]=i||0,x.dashstyle=e),g||(x.zIndex=1),m&&(u=0),this.gridLine=t=a.path().attr(x).addClass("highcharts-"+(g?g+"-":"")+"grid-line").add(w.gridGroup)),t&&(v=w.getPlotLinePath({value:p+r,lineWidth:t.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&t[m||this.isNew?"attr":"animate"]({d:v,opacity:u})},f.prototype.renderMark=function(m,u,v){var w=this.axis,S=w.options,x=w.chart.renderer,p=this.type,g=w.tickSize(p?p+"Tick":"tick"),r=m.x;m=m.y;var a=h(S[p!=="minor"?"tickWidth":"minorTickWidth"],!p&&w.isXAxis?1:0);S=S[p!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,i=!t;g&&(w.opposite&&(g[0]=-g[0]),t||(this.mark=t=x.path().addClass("highcharts-"+(p?p+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||t.attr({stroke:S,"stroke-width":a})),t[i?"attr":"animate"]({d:this.getMarkPath(r,m,g[0],t.strokeWidth()*v,w.horiz,x),opacity:u}))},f.prototype.renderLabel=function(m,u,v,w){var S=this.axis,x=S.horiz,p=S.options,g=this.label,r=p.labels,a=r.step;S=h(this.tickmarkOffset,S.tickmarkOffset);var t=m.x;m=m.y;var i=!0;g&&M(t)&&(g.xy=m=this.getLabelPosition(t,m,g,x,r,S,w,a),this.isFirst&&!this.isLast&&!p.showFirstLabel||this.isLast&&!this.isFirst&&!p.showLastLabel?i=!1:!x||r.step||r.rotation||u||v===0||this.handleOverflow(m),a&&w%a&&(i=!1),i&&M(m.y)?(m.opacity=v,g[this.isNewLabel?"attr":"animate"](m).show(!0),this.isNewLabel=!1):(g.hide(),this.isNewLabel=!0))},f.prototype.replaceMovedLabel=function(){var m=this.label,u=this.axis,v=u.reversed;if(m&&!this.isNew){var w=u.horiz?v?u.left:u.width+u.left:m.xy.x;v=u.horiz?m.xy.y:v?u.width+u.top:u.top,m.animate({x:w,y:v,opacity:0},void 0,m.destroy),delete this.label}u.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},f}(),R}),B(it,"Core/Axis/Axis.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Axis/AxisDefaults.js"],it["Core/Color/Color.js"],it["Core/Defaults.js"],it["Core/Foundation.js"],it["Core/Globals.js"],it["Core/Axis/Tick.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I=W.animObject,E=V.defaultOptions,M=$.registerEventOptions,P=Z.deg2rad,y=z.arrayMax,h=z.arrayMin,f=z.clamp,m=z.correctFloat,u=z.defined,v=z.destroyObjectProperties,w=z.erase,S=z.error,x=z.extend,p=z.fireEvent,g=z.isArray,r=z.isNumber,a=z.isString,t=z.merge,i=z.normalizeTickInterval,o=z.objectEach,e=z.pick,s=z.relativeLength,n=z.removeEvent,l=z.splat,b=z.syncTimeout,T=function(D,d){return i(d,void 0,void 0,e(D.options.allowDecimals,.5>d||D.tickAmount!==void 0),!!D.tickAmount)};return W=function(){function D(d,C){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(d,C)}return D.prototype.init=function(d,C){var A=C.isX;this.chart=d,this.horiz=d.inverted&&!this.isZAxis?!A:A,this.isXAxis=A,this.coll=this.coll||(A?"xAxis":"yAxis"),p(this,"init",{userOptions:C}),this.opposite=e(C.opposite,this.opposite),this.side=e(C.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(C);var N=this.options,_=N.labels,L=N.type;this.userOptions=C,this.minPixelPadding=0,this.reversed=e(N.reversed,this.reversed),this.visible=N.visible,this.zoomEnabled=N.zoomEnabled,this.hasNames=L==="category"||N.categories===!0,this.categories=N.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=u(N.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=N.minRange||N.maxZoom,this.range=N.range,this.offset=N.offset||0,this.min=this.max=null,C=e(N.crosshair,l(d.options.tooltip.crosshairs)[A?0:1]),this.crosshair=C===!0?{}:C,d.axes.indexOf(this)===-1&&(A?d.axes.splice(d.xAxis.length,0,this):d.axes.push(this),d[this.coll].push(this)),this.series=this.series||[],d.inverted&&!this.isZAxis&&A&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=r(_.rotation)?_.rotation:void 0,M(this,N),p(this,"afterInit")},D.prototype.setOptions=function(d){this.options=t(R.defaultXAxisOptions,this.coll==="yAxis"&&R.defaultYAxisOptions,[R.defaultTopAxisOptions,R.defaultRightAxisOptions,R.defaultBottomAxisOptions,R.defaultLeftAxisOptions][this.side],t(E[this.coll],d)),p(this,"afterSetOptions",{userOptions:d})},D.prototype.defaultLabelFormatter=function(d){var C=this.axis;d=this.chart.numberFormatter;var A=r(this.value)?this.value:NaN,N=C.chart.time,_=this.dateTimeLabelFormat,L=E.lang,O=L.numericSymbols;L=L.numericSymbolMagnitude||1e3;var j=C.logarithmic?Math.abs(A):C.tickInterval,Y=O&&O.length;if(C.categories)var X="".concat(this.value);else if(_)X=N.dateFormat(_,A);else if(Y&&1e3<=j)for(;Y--&&X===void 0;)j>=(C=Math.pow(L,Y+1))&&10*A%C==0&&O[Y]!==null&&A!==0&&(X=d(A/C,-1)+O[Y]);return X===void 0&&(X=1e4<=Math.abs(A)?d(A,-1):d(A,-1,void 0,"")),X},D.prototype.getSeriesExtremes=function(){var d,C=this,A=C.chart;p(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(N){if(N.visible||!A.options.chart.ignoreHiddenSeries){var _=N.options,L=_.threshold;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&0>=L&&(L=null),C.isXAxis){if((_=N.xData).length){_=C.logarithmic?_.filter(C.validatePositiveValue):_;var O=(d=N.getXExtremes(_)).min,j=d.max;r(O)||O instanceof Date||(_=_.filter(r),O=(d=N.getXExtremes(_)).min,j=d.max),_.length&&(C.dataMin=Math.min(e(C.dataMin,O),O),C.dataMax=Math.max(e(C.dataMax,j),j))}}else N=N.applyExtremes(),r(N.dataMin)&&(O=N.dataMin,C.dataMin=Math.min(e(C.dataMin,O),O)),r(N.dataMax)&&(j=N.dataMax,C.dataMax=Math.max(e(C.dataMax,j),j)),u(L)&&(C.threshold=L),(!_.softThreshold||C.positiveValuesOnly)&&(C.softThreshold=!1)}})}),p(this,"afterGetSeriesExtremes")},D.prototype.translate=function(d,C,A,N,_,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding;_=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&_)&&O.lin2val;var X=1,G=0;return(N=N&&O.old?O.old.transA:O.transA)||(N=O.transA),A&&(X*=-1,G=O.len),O.reversed&&(G-=(X*=-1)*(O.sector||O.len)),C?(L=(d*X+G-Y)/N+j,_&&(L=O.lin2val(L))):(_&&(d=O.val2lin(d)),d=X*(d-j)*N,L=(O.isRadial?d:m(d))+G+X*Y+(r(L)?N*L:0)),L},D.prototype.toPixels=function(d,C){return this.translate(d,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},D.prototype.toValue=function(d,C){return this.translate(d-(C?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(d){function C(yt,ht,et){return bt!=="pass"&&(yt<ht||yt>et)&&(bt?yt=f(yt,ht,et):O=!0),yt}var A,N,_,L,O,j=this,Y=j.chart,X=j.left,G=j.top,q=d.old,Q=d.value,J=d.lineWidth,rt=q&&Y.oldChartHeight||Y.chartHeight,lt=q&&Y.oldChartWidth||Y.chartWidth,gt=j.transB,mt=d.translatedValue,bt=d.force;return d={value:Q,lineWidth:J,old:q,force:bt,acrossPanes:d.acrossPanes,translatedValue:mt},p(this,"getPlotLinePath",d,function(yt){mt=e(mt,j.translate(Q,void 0,void 0,q)),mt=f(mt,-1e5,1e5),A=_=Math.round(mt+gt),N=L=Math.round(rt-mt-gt),r(mt)?j.horiz?(N=G,L=rt-j.bottom,A=_=C(A,X,X+j.width)):(A=X,_=lt-j.right,N=L=C(N,G,G+j.height)):(O=!0,bt=!1),yt.path=O&&!bt?null:Y.renderer.crispLine([["M",A,N],["L",_,L]],J||1)}),d.path},D.prototype.getLinearTickPositions=function(d,C,A){var N=m(Math.floor(C/d)*d);A=m(Math.ceil(A/d)*d);var _,L=[];if(m(N+d)===N&&(_=20),this.single)return[C];for(C=N;C<=A&&(L.push(C),(C=m(C+d,_))!==O);)var O=C;return L},D.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?e(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},D.prototype.getMinorTickPositions=function(){var d=this.options,C=this.tickPositions,A=this.minorTickInterval,N=this.pointRangePadding||0,_=this.min-N,L=(N=this.max+N)-_,O=[];if(L&&L/A<this.len/3){var j=this.logarithmic;if(j)this.paddedTicks.forEach(function(Y,X,G){X&&O.push.apply(O,j.getLogTickPositions(A,G[X-1],G[X],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")O=O.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(A),_,N,d.startOfWeek));else for(d=_+(C[0]-_)%A;d<=N&&d!==O[0];d+=A)O.push(d)}return O.length!==0&&this.trimTicks(O),O},D.prototype.adjustForMinRange=function(){var d,C,A,N,_=this.options,L=this.logarithmic,O=this.min,j=this.max,Y=0;if(this.isXAxis&&this.minRange===void 0&&!L&&(u(_.min)||u(_.max)||u(_.floor)||u(_.ceiling)?this.minRange=null:(this.series.forEach(function(Q){if(A=Q.xData,N=Q.xIncrement?1:A.length-1,1<A.length)for(d=N;0<d;d--)C=A[d]-A[d-1],(!Y||C<Y)&&(Y=C)}),this.minRange=Math.min(5*Y,this.dataMax-this.dataMin))),j-O<this.minRange){var X=this.dataMax-this.dataMin>=this.minRange,G=this.minRange,q=(G-j+O)/2;q=[O-q,e(_.min,O-q)],X&&(q[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),j=[(O=y(q))+G,e(_.max,O+G)],X&&(j[2]=L?L.log2lin(this.dataMax):this.dataMax),(j=h(j))-O<G&&(q[0]=j-G,q[1]=e(_.min,j-G),O=y(q))}this.min=O,this.max=j},D.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(C){var A=C.closestPointRange,N=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&u(A)&&N&&(d=u(d)?Math.min(d,A):A)}),d},D.prototype.nameToX=function(d){var C=g(this.options.categories),A=C?this.categories:this.names,N=d.options.x;if(d.series.requireSorting=!1,u(N)||(N=this.options.uniqueNames&&A?C?A.indexOf(d.name):e(A.keys[d.name],-1):d.series.autoIncrement()),N===-1){if(!C&&A)var _=A.length}else _=N;return _!==void 0?(this.names[_]=d.name,this.names.keys[d.name]=_):d.x&&(_=d.x),_},D.prototype.updateNames=function(){var d=this,C=this.names;0<C.length&&(Object.keys(C.keys).forEach(function(A){delete C.keys[A]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(A){A.xIncrement=null,A.points&&!A.isDirtyData||(d.max=Math.max(d.max,A.xData.length-1),A.processData(),A.generatePoints()),A.data.forEach(function(N,_){if(N&&N.options&&N.name!==void 0){var L=d.nameToX(N);L!==void 0&&L!==N.x&&(N.x=L,A.xData[_]=L)}})}))},D.prototype.setAxisTranslation=function(){var d=this,C=d.max-d.min,A=d.linkedParent,N=!!d.categories,_=d.isXAxis,L=d.axisPointRange||0,O=0,j=0,Y=d.transA;if(_||N||L){var X=d.getClosest();A?(O=A.minPointOffset,j=A.pointRangePadding):d.series.forEach(function(G){var q=N?1:_?e(G.options.pointRange,X,0):d.axisPointRange||0,Q=G.options.pointPlacement;L=Math.max(L,q),d.single&&!N||(G=G.is("xrange")?!_:_,O=Math.max(O,G&&a(Q)?0:q/2),j=Math.max(j,G&&Q==="on"?0:q))}),A=d.ordinal&&d.ordinal.slope&&X?d.ordinal.slope/X:1,d.minPointOffset=O*=A,d.pointRangePadding=j*=A,d.pointRange=Math.min(L,d.single&&N?1:C),_&&(d.closestPointRange=X)}d.translationSlope=d.transA=Y=d.staticScale||d.len/(C+j||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=Y*O,p(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(d){var C=this.chart,A=this.logarithmic,N=this.options,_=this.isXAxis,L=this.isLinked,O=N.tickPixelInterval,j=this.categories,Y=this.softThreshold,X=N.maxPadding,G=N.minPadding,q=r(N.tickInterval)&&0<=N.tickInterval?N.tickInterval:void 0,Q=r(this.threshold)?this.threshold:null;this.dateTime||j||L||this.getTickAmount();var J=e(this.userMin,N.min),rt=e(this.userMax,N.max);if(L){this.linkedParent=C[this.coll][N.linkedTo];var lt=this.linkedParent.getExtremes();this.min=e(lt.min,lt.dataMin),this.max=e(lt.max,lt.dataMax),N.type!==this.linkedParent.options.type&&S(11,1,C)}else{if(Y&&u(Q)){if(this.dataMin>=Q)lt=Q,G=0;else if(this.dataMax<=Q){var gt=Q;X=0}}this.min=e(J,lt,this.dataMin),this.max=e(rt,gt,this.dataMax)}if(A&&(this.positiveValuesOnly&&!d&&0>=Math.min(this.min,e(this.dataMin,this.min))&&S(10,1,C),this.min=m(A.log2lin(this.min),16),this.max=m(A.log2lin(this.max),16)),this.range&&u(this.max)&&(this.userMin=this.min=J=Math.max(this.dataMin,this.minFromRange()),this.userMax=rt=this.max,this.range=null),p(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(j||this.axisPointRange||this.stacking&&this.stacking.usePercentage||L)&&u(this.min)&&u(this.max)&&(C=this.max-this.min)&&(!u(J)&&G&&(this.min-=C*G),!u(rt)&&X&&(this.max+=C*X)),r(this.userMin)||(r(N.softMin)&&N.softMin<this.min&&(this.min=J=N.softMin),r(N.floor)&&(this.min=Math.max(this.min,N.floor))),r(this.userMax)||(r(N.softMax)&&N.softMax>this.max&&(this.max=rt=N.softMax),r(N.ceiling)&&(this.max=Math.min(this.max,N.ceiling))),Y&&u(this.dataMin)&&(Q=Q||0,!u(J)&&this.min<Q&&this.dataMin>=Q?this.min=this.options.minRange?Math.min(Q,this.max-this.minRange):Q:!u(rt)&&this.max>Q&&this.dataMax<=Q&&(this.max=this.options.minRange?Math.max(Q,this.min+this.minRange):Q)),r(this.min)&&r(this.max)&&!this.chart.polar&&this.min>this.max&&(u(this.options.min)?this.max=this.min:u(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:L&&this.linkedParent&&!q&&O===this.linkedParent.options.tickPixelInterval?q=this.linkedParent.tickInterval:e(q,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,j?1:(this.max-this.min)*O/Math.max(this.len,O)),_&&!d){var mt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(bt){bt.forceCrop=bt.forceCropping&&bt.forceCropping(),bt.processData(mt)}),p(this,"postProcessData",{hasExtremesChanged:mt})}this.setAxisTranslation(),p(this,"initialAxisTranslation"),this.pointRange&&!q&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),d=e(N.minTickInterval,this.dateTime&&!this.series.some(function(bt){return bt.noSharedTooltip})?this.closestPointRange:0),!q&&this.tickInterval<d&&(this.tickInterval=d),this.dateTime||this.logarithmic||q||(this.tickInterval=T(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var d,C=this.options,A=C.tickPositions,N=C.tickPositioner,_=this.getMinorTickInterval(),L=this.hasVerticalPanning(),O=this.coll==="colorAxis",j=(O||!L)&&C.startOnTick;if(L=(O||!L)&&C.endOnTick,O=[],this.tickmarkOffset=this.categories&&C.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=_==="auto"&&this.tickInterval?this.tickInterval/5:_,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||C.allowDecimals!==!1),A)O=A.slice();else if(r(this.min)&&r(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)O=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,C.units),this.min,this.max,C.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)O=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(_=C=this.tickInterval;_<=2*C&&(O=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&O.length>this.tickAmount);)this.tickInterval=T(this,_*=1.1);else O=[this.min,this.max],S(19,!1,this.chart);O.length>this.len&&(O=[O[0],O[O.length-1]])[0]===O[1]&&(O.length=1),N&&(this.tickPositions=O,(d=N.apply(this,[this.min,this.max]))&&(O=d))}this.tickPositions=O,this.paddedTicks=O.slice(0),this.trimTicks(O,j,L),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&2>O.length&&!this.categories&&!this.series.some(function(Y){return Y.is("heatmap")&&Y.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),A||d||this.adjustTickAmount()),p(this,"afterSetTickPositions")},D.prototype.trimTicks=function(d,C,A){var N=d[0],_=d[d.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(p(this,"trimTicks"),!this.isLinked){if(C&&N!==-1/0)this.min=N;else for(;this.min-L>d[0];)d.shift();if(A)this.max=_;else for(;this.max+L<d[d.length-1];)d.pop();d.length===0&&u(N)&&!this.options.tickPositions&&d.push((_+N)/2)}},D.prototype.alignToOthers=function(){var d,C=this,A=[this],N=C.options,_=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||_)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!C.logarithmic){var O=function(X){var G=X.options;return[X.horiz?G.left:G.top,G.width,G.height,G.pane].join()},j=O(this);this.chart[this.coll].forEach(function(X){var G=X.series;G.length&&G.some(function(q){return q.visible})&&X!==C&&O(X)===j&&(d=!0,A.push(X))})}if(d&&_){A.forEach(function(X){X=X.getThresholdAlignment(C),r(X)&&L.push(X)});var Y=1<L.length?L.reduce(function(X,G){return X+G},0)/L.length:void 0;A.forEach(function(X){X.thresholdAlignment=Y})}return d},D.prototype.getThresholdAlignment=function(d){if((!r(this.dataMin)||this!==d&&this.series.some(function(C){return C.isDirty||C.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold))return d=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(d=1-d),d},D.prototype.getTickAmount=function(){var d=this.options,C=d.tickPixelInterval,A=d.tickAmount;!u(d.tickInterval)&&!A&&this.len<C&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(A=2),!A&&this.alignToOthers()&&(A=Math.ceil(this.len/C)+1),4>A&&(this.finalTickAmt=A,A=5),this.tickAmount=A},D.prototype.adjustTickAmount=function(){var d=this,C=d.finalTickAmt,A=d.max,N=d.min,_=d.options,L=d.tickPositions,O=d.tickAmount,j=d.thresholdAlignment,Y=L&&L.length,X=e(d.threshold,d.softThreshold?0:null),G=d.tickInterval;if(r(j)){var q=.5>j?Math.ceil(j*(O-1)):Math.floor(j*(O-1));_.reversed&&(q=O-1-q)}if(d.hasData()&&r(N)&&r(A)){if(j=function(){d.transA*=(Y-1)/(O-1),d.min=_.startOnTick?L[0]:Math.min(N,L[0]),d.max=_.endOnTick?L[L.length-1]:Math.max(A,L[L.length-1])},r(q)&&r(d.threshold)){for(;L[q]!==X||L.length!==O||L[0]>N||L[L.length-1]<A;){for(L.length=0,L.push(d.threshold);L.length<O;)L[q]===void 0||L[q]>d.threshold?L.unshift(m(L[0]-G)):L.push(m(L[L.length-1]+G));if(G>8*d.tickInterval)break;G*=2}j()}else if(Y<O){for(;L.length<O;)L.length%2||N===X?L.push(m(L[L.length-1]+G)):L.unshift(m(L[0]-G));j()}if(u(C)){for(G=X=L.length;G--;)(C===3&&G%2==1||2>=C&&0<G&&G<X-1)&&L.splice(G,1);d.finalTickAmt=void 0}}},D.prototype.setScale=function(){var d=!1,C=!1;this.series.forEach(function(N){d=d||N.isDirtyData||N.isDirty,C=C||N.xAxis&&N.xAxis.isDirty||!1}),this.setAxisSize();var A=this.len!==(this.old&&this.old.len);A||d||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.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=A||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),d&&this.panningState&&(this.panningState.isDirty=!0),p(this,"afterSetScale")},D.prototype.setExtremes=function(d,C,A,N,_){var L=this,O=L.chart;A=e(A,!0),L.series.forEach(function(j){delete j.kdTree}),_=x(_,{min:d,max:C}),p(L,"setExtremes",_,function(){L.userMin=d,L.userMax=C,L.eventArgs=_,A&&O.redraw(N)})},D.prototype.zoom=function(d,C){var A=this,N=this.dataMin,_=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(_,e(L.max,_));return p(this,"zoom",d={newMin:d,newMax:C},function(Y){var X=Y.newMin,G=Y.newMax;X===A.min&&G===A.max||(A.allowZoomOutside||(u(N)&&(X<O&&(X=O),X>j&&(X=j)),u(_)&&(G<O&&(G=O),G>j&&(G=j))),A.displayBtn=X!==void 0||G!==void 0,A.setExtremes(X,G,!1,void 0,{trigger:"zoom"})),Y.zoomed=!0}),d.zoomed},D.prototype.setAxisSize=function(){var d=this.chart,C=this.options,A=C.offsets||[0,0,0,0],N=this.horiz,_=this.width=Math.round(s(e(C.width,d.plotWidth-A[3]+A[1]),d.plotWidth)),L=this.height=Math.round(s(e(C.height,d.plotHeight-A[0]+A[2]),d.plotHeight)),O=this.top=Math.round(s(e(C.top,d.plotTop+A[0]),d.plotHeight,d.plotTop));C=this.left=Math.round(s(e(C.left,d.plotLeft+A[3]),d.plotWidth,d.plotLeft)),this.bottom=d.chartHeight-L-O,this.right=d.chartWidth-_-C,this.len=Math.max(N?_:L,0),this.pos=N?C:O},D.prototype.getExtremes=function(){var d=this.logarithmic;return{min:d?m(d.lin2log(this.min)):this.min,max:d?m(d.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},D.prototype.getThreshold=function(d){var C=this.logarithmic,A=C?C.lin2log(this.min):this.min;return C=C?C.lin2log(this.max):this.max,d===null||d===-1/0?d=A:d===1/0?d=C:A>d?d=A:C<d&&(d=C),this.translate(d,0,1,0,1)},D.prototype.autoLabelAlign=function(d){var C=(e(d,0)-90*this.side+720)%360;return p(this,"autoLabelAlign",d={align:"center"},function(A){15<C&&165>C?A.align="right":195<C&&345>C&&(A.align="left")}),d.align},D.prototype.tickSize=function(d){var C=this.options,A=e(C[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),N=C[d==="tick"?"tickLength":"minorTickLength"];if(A&&N){C[d+"Position"]==="inside"&&(N=-N);var _=[N,A]}return p(this,"afterTickSize",d={tickSize:_}),d.tickSize},D.prototype.labelMetrics=function(){var d=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[d]&&this.ticks[d].label)},D.prototype.unsquish=function(){var d=this.options.labels,C=this.horiz,A=this.tickInterval,N=this.len/(((this.categories?1:0)+this.max-this.min)/A),_=d.rotation,L=this.labelMetrics(),O=Math.max(this.max-this.min,0),j=function(gt){var mt=gt/(N||1);return(mt=1<mt?Math.ceil(mt):1)*A>O&&gt!==1/0&&N!==1/0&&O&&(mt=Math.ceil(O/A)),m(mt*A)},Y=A,X=Number.MAX_VALUE;if(C){if(!d.staggerLines)if(r(_))var G=[_];else N<d.autoRotationLimit&&(G=d.autoRotation);if(G)for(var q=C=void 0,Q=0,J=G;Q<J.length;Q++){var rt=J[Q];if((rt===_||rt&&-90<=rt&&90>=rt)&&(q=(C=j(Math.abs(L.h/Math.sin(P*rt))))+Math.abs(rt/360))<X){X=q;var lt=rt;Y=C}}}else Y=j(L.h);return this.autoRotation=G,this.labelRotation=e(lt,r(_)?_:0),d.step?A:Y},D.prototype.getSlotWidth=function(d){var C=this.chart,A=this.horiz,N=this.options.labels,_=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=C.margin[3];if(d&&r(d.slotWidth))return d.slotWidth;if(A&&2>N.step)return N.rotation?0:(this.staggerLines||1)*this.len/_;if(!A){if((d=N.style.width)!==void 0)return parseInt(String(d),10);if(L)return L-C.spacing[3]}return .33*C.chartWidth},D.prototype.renderUnsquish=function(){var d=this.chart,C=d.renderer,A=this.tickPositions,N=this.ticks,_=this.options.labels,L=_.style,O=this.horiz,j=this.getSlotWidth(),Y=Math.max(1,Math.round(j-2*_.padding)),X={},G=this.labelMetrics(),q=L.textOverflow,Q=0;if(a(_.rotation)||(X.rotation=_.rotation||0),A.forEach(function(gt){(gt=N[gt]).movedLabel&&gt.replaceMovedLabel(),gt&&gt.label&&gt.label.textPxLength>Q&&(Q=gt.label.textPxLength)}),this.maxLabelLength=Q,this.autoRotation)Q>Y&&Q>G.h?X.rotation=this.labelRotation:this.labelRotation=0;else if(j){var J=Y;if(!q){var rt="clip";for(Y=A.length;!O&&Y--;){var lt=A[Y];(lt=N[lt].label)&&(lt.styles&&lt.styles.textOverflow==="ellipsis"?lt.css({textOverflow:"clip"}):lt.textPxLength>j&&lt.css({width:j+"px"}),lt.getBBox().height>this.len/A.length-(G.h-G.f)&&(lt.specificTextOverflow="ellipsis"))}}}X.rotation&&(J=Q>.5*d.chartHeight?.33*d.chartHeight:Q,q||(rt="ellipsis")),(this.labelAlign=_.align||this.autoLabelAlign(this.labelRotation))&&(X.align=this.labelAlign),A.forEach(function(gt){var mt=(gt=N[gt])&&gt.label,bt=L.width,yt={};mt&&(mt.attr(X),gt.shortenLabel?gt.shortenLabel():J&&!bt&&L.whiteSpace!=="nowrap"&&(J<mt.textPxLength||mt.element.tagName==="SPAN")?(yt.width=J+"px",q||(yt.textOverflow=mt.specificTextOverflow||rt),mt.css(yt)):mt.styles&&mt.styles.width&&!yt.width&&!bt&&mt.css({width:null}),delete mt.specificTextOverflow,gt.rotation=X.rotation)},this),this.tickRotCorr=C.rotCorr(G.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},D.prototype.addTitle=function(d){var C,A=this.chart.renderer,N=this.horiz,_=this.opposite,L=this.options.title,O=this.chart.styledMode;this.axisTitle||((C=L.textAlign)||(C=(N?{low:"left",middle:"center",high:"right"}:{low:_?"right":"left",middle:"center",high:_?"left":"right"})[L.align]),this.axisTitle=A.text(L.text||"",0,0,L.useHTML).attr({zIndex:7,rotation:L.rotation,align:C}).addClass("highcharts-axis-title"),O||this.axisTitle.css(t(L.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),O||L.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[d?"show":"hide"](d)},D.prototype.generateTick=function(d){var C=this.ticks;C[d]?C[d].addLabel():C[d]=new U(this,d)},D.prototype.getOffset=function(){var d=this,C=this,A=C.chart,N=C.horiz,_=C.options,L=C.side,O=C.ticks,j=C.tickPositions,Y=C.coll,X=C.axisParent,G=A.renderer,q=A.inverted&&!C.isZAxis?[1,0,3,2][L]:L,Q=C.hasData(),J=_.title,rt=_.labels,lt=A.axisOffset;A=A.clipOffset;var gt,mt=[-1,1,1,-1][L],bt=_.className,yt=0,ht=0,et=0;if(C.showAxis=gt=Q||_.showEmpty,C.staggerLines=C.horiz&&rt.staggerLines||void 0,!C.axisGroup){var at=function(vt,Ct,xt){return G.g(vt).attr({zIndex:xt}).addClass("highcharts-".concat(Y.toLowerCase()).concat(Ct," ")+(d.isRadial?"highcharts-radial-axis".concat(Ct," "):"")+(bt||"")).add(X)};C.gridGroup=at("grid","-grid",_.gridZIndex),C.axisGroup=at("axis","",_.zIndex),C.labelGroup=at("axis-labels","-labels",rt.zIndex)}if(Q||C.isLinked?(j.forEach(function(vt){C.generateTick(vt)}),C.renderUnsquish(),C.reserveSpaceDefault=L===0||L===2||{1:"left",3:"right"}[L]===C.labelAlign,e(rt.reserveSpace,C.labelAlign==="center"||null,C.reserveSpaceDefault)&&j.forEach(function(vt){et=Math.max(O[vt].getLabelSize(),et)}),C.staggerLines&&(et*=C.staggerLines),C.labelOffset=et*(C.opposite?-1:1)):o(O,function(vt,Ct){vt.destroy(),delete O[Ct]}),J&&J.text&&J.enabled!==!1&&(C.addTitle(gt),gt&&J.reserveSpace!==!1)){C.titleOffset=yt=C.axisTitle.getBBox()[N?"height":"width"];var dt=J.offset;ht=u(dt)?0:e(J.margin,N?5:10)}C.renderLine(),C.offset=mt*e(_.offset,lt[L]?lt[L]+(_.margin||0):0),C.tickRotCorr=C.tickRotCorr||{x:0,y:0},J=L===0?-C.labelMetrics().h:L===2?C.tickRotCorr.y:0,Q=Math.abs(et)+ht,et&&(Q=Q-J+mt*(N?e(rt.y,C.tickRotCorr.y+8*mt):rt.x)),C.axisTitleMargin=e(dt,Q),C.getMaxLabelDimensions&&(C.maxLabelDimensions=C.getMaxLabelDimensions(O,j)),Y!=="colorAxis"&&(N=this.tickSize("tick"),lt[L]=Math.max(lt[L],(C.axisTitleMargin||0)+yt+mt*C.offset,Q,j&&j.length&&N?N[0]+mt*C.offset:0),_=!C.axisLine||_.offset?0:2*Math.floor(C.axisLine.strokeWidth()/2),A[q]=Math.max(A[q],_)),p(this,"afterGetOffset")},D.prototype.getLinePath=function(d){var C=this.chart,A=this.opposite,N=this.offset,_=this.horiz,L=this.left+(A?this.width:0)+N;return N=C.chartHeight-this.bottom-(A?this.height:0)+N,A&&(d*=-1),C.renderer.crispLine([["M",_?this.left:L,_?N:this.top],["L",_?C.chartWidth-this.right:L,_?N:C.chartHeight-this.bottom]],d)},D.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},D.prototype.getTitlePosition=function(){var d=this.horiz,C=this.left,A=this.top,N=this.len,_=this.options.title,L=d?C:A,O=this.opposite,j=this.offset,Y=_.x,X=_.y,G=this.axisTitle,q=this.chart.renderer.fontMetrics(_.style.fontSize,G);return G=G?Math.max(G.getBBox(!1,0).height-q.h-1,0):0,N={low:L+(d?0:N),middle:L+N/2,high:L+(d?N:0)}[_.align],C=(d?A+this.height:C)+(d?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-G,G,q.f,-G][this.side],d={x:d?N+Y:C+(O?this.width:0)+j+Y,y:d?C+X-(O?this.height:0)+j:N+X},p(this,"afterGetTitlePosition",{titlePosition:d}),d},D.prototype.renderMinorTick=function(d,C){var A=this.minorTicks;A[d]||(A[d]=new U(this,d,"minor")),C&&A[d].isNew&&A[d].render(null,!0),A[d].render(null,!1,1)},D.prototype.renderTick=function(d,C,A){var N=this.ticks;(!this.isLinked||d>=this.min&&d<=this.max||this.grid&&this.grid.isColumn)&&(N[d]||(N[d]=new U(this,d)),A&&N[d].isNew&&N[d].render(C,!0,-1),N[d].render(C))},D.prototype.render=function(){var d,C,A=this,N=A.chart,_=A.logarithmic,L=A.options,O=A.isLinked,j=A.tickPositions,Y=A.axisTitle,X=A.ticks,G=A.minorTicks,q=A.alternateBands,Q=L.stackLabels,J=L.alternateGridColor,rt=A.tickmarkOffset,lt=A.axisLine,gt=A.showAxis,mt=I(N.renderer.globalAnimation);if(A.labelEdge.length=0,A.overlap=!1,[X,G,q].forEach(function(yt){o(yt,function(ht){ht.isActive=!1})}),A.hasData()||O){var bt=A.chart.hasRendered&&A.old&&r(A.old.min);A.minorTickInterval&&!A.categories&&A.getMinorTickPositions().forEach(function(yt){A.renderMinorTick(yt,bt)}),j.length&&(j.forEach(function(yt,ht){A.renderTick(yt,ht,bt)}),rt&&(A.min===0||A.single)&&(X[-1]||(X[-1]=new U(A,-1,null,!0)),X[-1].render(-1))),J&&j.forEach(function(yt,ht){C=j[ht+1]!==void 0?j[ht+1]+rt:A.max-rt,ht%2==0&&yt<A.max&&C<=A.max+(N.polar?-rt:rt)&&(q[yt]||(q[yt]=new Z.PlotLineOrBand(A)),d=yt+rt,q[yt].options={from:_?_.lin2log(d):d,to:_?_.lin2log(C):C,color:J,className:"highcharts-alternate-grid"},q[yt].render(),q[yt].isActive=!0)}),A._addedPlotLB||(A._addedPlotLB=!0,(L.plotLines||[]).concat(L.plotBands||[]).forEach(function(yt){A.addPlotBandOrLine(yt)}))}[X,G,q].forEach(function(yt){var ht=[],et=mt.duration;o(yt,function(at,dt){at.isActive||(at.render(dt,!1,0),at.isActive=!1,ht.push(dt))}),b(function(){for(var at=ht.length;at--;)yt[ht[at]]&&!yt[ht[at]].isActive&&(yt[ht[at]].destroy(),delete yt[ht[at]])},yt!==q&&N.hasRendered&&et?et:0)}),lt&&(lt[lt.isPlaced?"animate":"attr"]({d:this.getLinePath(lt.strokeWidth())}),lt.isPlaced=!0,lt[gt?"show":"hide"](gt)),Y&&gt&&(L=A.getTitlePosition(),Y[Y.isNew?"attr":"animate"](L),Y.isNew=!1),Q&&Q.enabled&&A.stacking&&A.stacking.renderStackTotals(),A.old={len:A.len,max:A.max,min:A.min,transA:A.transA,userMax:A.userMax,userMin:A.userMin},A.isDirty=!1,p(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(d){var C=this,A=C.plotLinesAndBands,N=this.eventOptions;if(p(this,"destroy",{keepEvents:d}),d||n(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(L){v(L)}),A)for(d=A.length;d--;)A[d].destroy();for(var _ in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(L){C[L]&&(C[L]=C[L].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[_]=C.plotLinesAndBandsGroups[_].destroy();o(C,function(L,O){C.getKeepProps().indexOf(O)===-1&&delete C[O]}),this.eventOptions=N},D.prototype.drawCrosshair=function(d,C){var A,N=this.crosshair,_=e(N&&N.snap,!0),L=this.chart,O=this.cross;if(p(this,"drawCrosshair",{e:d,point:C}),d||(d=this.cross&&this.cross.e),N&&(u(C)||!_)!==!1){if(_?u(C)&&(A=e(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):A=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),u(A)){var j={value:C&&(this.isXAxis?C.x:e(C.stackY,C.y)),translatedValue:A};L.polar&&x(j,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:C}),j=this.getPlotLinePath(j)||null}if(!u(j))return void this.hideCrosshair();_=this.categories&&!this.isRadial,O||(this.cross=O=L.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(_?"category ":"thin ")+(N.className||"")).attr({zIndex:e(N.zIndex,2)}).add(),L.styledMode||(O.attr({stroke:N.color||(_?H.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(N.width,1)}).css({"pointer-events":"none"}),N.dashStyle&&O.attr({dashstyle:N.dashStyle}))),O.show().attr({d:j}),_&&!N.width&&O.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();p(this,"afterDrawCrosshair",{e:d,point:C})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),p(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},D.prototype.validatePositiveValue=function(d){return r(d)&&0<d},D.prototype.update=function(d,C){var A=this.chart;d=t(this.userOptions,d),this.destroy(!0),this.init(A,d),A.isDirtyBox=!0,e(C,!0)&&A.redraw()},D.prototype.remove=function(d){for(var C=this.chart,A=this.coll,N=this.series,_=N.length;_--;)N[_]&&N[_].remove(!1);w(C.axes,this),w(C[A],this),C[A].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),C.isDirtyBox=!0,e(d,!0)&&C.redraw()},D.prototype.setTitle=function(d,C){this.update({title:d},C)},D.prototype.setCategories=function(d,C){this.update({categories:d},C)},D.defaultOptions=R.defaultXAxisOptions,D.keepProps="extKey hcEvents names series userMax userMin".split(" "),D}(),W}),B(it,"Core/Axis/DateTimeAxis.js",[it["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.getMagnitude,$=W.normalizeTickInterval,Z=W.timeUnits;return function(U){function z(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function I(P){P.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new M(this))}var E=[];U.compose=function(P){return E.indexOf(P)===-1&&(E.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=z,H(P,"init",I)),P};var M=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,h){var f=h||[["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]];h=f[f.length-1];var m,u=Z[h[0]],v=h[1];for(m=0;m<f.length&&(h=f[m],u=Z[h[0]],v=h[1],!(f[m+1]&&y<=(u*v[v.length-1]+Z[f[m+1][0]])/2));m++);return u===Z.year&&y<5*u&&(v=[1,2,5]),{unitRange:u,count:y=$(y/u,v,h[0]==="year"?Math.max(V(y/u),1):1),unitName:h[0]}},P.prototype.getXDateFormat=function(y,h){var f=this.axis,m=f.chart.time;return f.closestPointRange?m.getDateFormat(f.closestPointRange,y,f.options.startOfWeek,h)||m.resolveDTLFormat(h.year).main:m.resolveDTLFormat(h.day).main},P}();U.Additions=M}(R||(R={})),R}),B(it,"Core/Axis/LogarithmicAxis.js",[it["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.normalizeTickInterval,$=W.pick;return function(Z){function U(M){var P=this.logarithmic;M.userOptions.type!=="logarithmic"?this.logarithmic=void 0:P||(this.logarithmic=new E(this))}function z(){var M=this.logarithmic;M&&(this.lin2val=function(P){return M.lin2log(P)},this.val2lin=function(P){return M.log2lin(P)})}var I=[];Z.compose=function(M){return I.indexOf(M)===-1&&(I.push(M),M.keepProps.push("logarithmic"),H(M,"init",U),H(M,"afterInit",z)),M};var E=function(){function M(P){this.axis=P}return M.prototype.getLogTickPositions=function(P,y,h,f){var m=this.axis,u=m.len,v=m.options,w=[];if(f||(this.minorAutoInterval=void 0),.5<=P)P=Math.round(P),w=m.getLinearTickPositions(P,y,h);else if(.08<=P){var S,x=Math.floor(y),p=v=void 0;for(u=.3<P?[1,2,4]:.15<P?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];x<h+1&&!p;x++){var g=u.length;for(S=0;S<g&&!p;S++){var r=this.log2lin(this.lin2log(x)*u[S]);r>y&&(!f||v<=h)&&v!==void 0&&w.push(v),v>h&&(p=!0),v=r}}}else y=this.lin2log(y),h=this.lin2log(h),P=f?m.getMinorTickInterval():v.tickInterval,P=$(P==="auto"?null:P,this.minorAutoInterval,v.tickPixelInterval/(f?5:1)*(h-y)/((f?u/m.tickPositions.length:u)||1)),P=V(P),w=m.getLinearTickPositions(P,y,h).map(this.log2lin),f||(this.minorAutoInterval=P/5);return f||(m.tickInterval=P),w},M.prototype.lin2log=function(P){return Math.pow(10,P)},M.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},M}();Z.Additions=E}(R||(R={})),R}),B(it,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[it["Core/Utilities.js"]],function(W){var R,H=W.erase,V=W.extend,$=W.isNumber;return function(Z){var U,z=[];Z.compose=function(E,M){return U||(U=E),z.indexOf(M)===-1&&(z.push(M),V(M.prototype,I.prototype)),M};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(M,P,y){y===void 0&&(y=this.options);var h=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),f=[],m=this.horiz;if(P=!$(this.min)||!$(this.max)||M<this.min&&P<this.min||M>this.max&&P>this.max,M=this.getPlotLinePath({value:M,force:!0,acrossPanes:y.acrossPanes}),y=1,M&&h){if(P){var u=M.toString()===h.toString();y=0}for(P=0;P<M.length;P+=2){var v=M[P],w=M[P+1],S=h[P],x=h[P+1];v[0]!=="M"&&v[0]!=="L"||w[0]!=="M"&&w[0]!=="L"||S[0]!=="M"&&S[0]!=="L"||x[0]!=="M"&&x[0]!=="L"||(m&&S[1]===v[1]?(S[1]+=y,x[1]+=y):m||S[2]!==v[2]||(S[2]+=y,x[2]+=y),f.push(["M",v[1],v[2]],["L",w[1],w[2]],["L",x[1],x[2]],["L",S[1],S[2]],["Z"])),f.isFlat=u}}return f},E.prototype.addPlotBand=function(M){return this.addPlotBandOrLine(M,"plotBands")},E.prototype.addPlotLine=function(M){return this.addPlotBandOrLine(M,"plotLines")},E.prototype.addPlotBandOrLine=function(M,P){var y=this,h=this.userOptions,f=new U(this,M);if(this.visible&&(f=f.render()),f){if(this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=h[P]||[];m.push(M),h[P]=m}this.plotLinesAndBands.push(f)}return f},E.prototype.removePlotBandOrLine=function(M){var P=this.plotLinesAndBands,y=this.options,h=this.userOptions;if(P){for(var f=P.length;f--;)P[f].id===M&&P[f].destroy();[y.plotLines||[],h.plotLines||[],y.plotBands||[],h.plotBands||[]].forEach(function(m){for(f=m.length;f--;)(m[f]||{}).id===M&&H(m,m[f])})}},E.prototype.removePlotBand=function(M){this.removePlotBandOrLine(M)},E.prototype.removePlotLine=function(M){this.removePlotBandOrLine(M)},E}()}(R||(R={})),R}),B(it,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[it["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],it["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.defined,Z=R.destroyObjectProperties,U=R.erase,z=R.fireEvent,I=R.merge,E=R.objectEach,M=R.pick;return R=function(){function P(y,h){this.axis=y,h&&(this.options=h,this.id=h.id)}return P.compose=function(y){return W.compose(P,y)},P.prototype.render=function(){z(this,"render");var y=this,h=y.axis,f=h.horiz,m=h.logarithmic,u=y.options,v=u.color,w=M(u.zIndex,0),S=u.events,x={},p=h.chart.renderer,g=u.label,r=y.label,a=u.to,t=u.from,i=u.value,o=y.svgElem,e=[],s=$(t)&&$(a);e=$(i);var n=!o,l={class:"highcharts-plot-"+(s?"band ":"line ")+(u.className||"")},b=s?"bands":"lines";if(m&&(t=m.log2lin(t),a=m.log2lin(a),i=m.log2lin(i)),h.chart.styledMode||(e?(l.stroke=v||"#999999",l["stroke-width"]=M(u.width,1),u.dashStyle&&(l.dashstyle=u.dashStyle)):s&&(l.fill=v||"#e6ebf5",u.borderWidth&&(l.stroke=u.borderColor,l["stroke-width"]=u.borderWidth))),x.zIndex=w,b+="-"+w,(m=h.plotLinesAndBandsGroups[b])||(h.plotLinesAndBandsGroups[b]=m=p.g("plot-"+b).attr(x).add()),n&&(y.svgElem=o=p.path().attr(l).add(m)),e)e=h.getPlotLinePath({value:i,lineWidth:o.strokeWidth(),acrossPanes:u.acrossPanes});else{if(!s)return;e=h.getPlotBandPath(t,a,u)}return!y.eventsAdded&&S&&(E(S,function(T,D){o.on(D,function(d){S[D].apply(y,[d])})}),y.eventsAdded=!0),(n||!o.d)&&e&&e.length?o.attr({d:e}):o&&(e?(o.show(),o.animate({d:e})):o.d&&(o.hide(),r&&(y.label=r=r.destroy()))),g&&($(g.text)||$(g.formatter))&&e&&e.length&&0<h.width&&0<h.height&&!e.isFlat?(g=I({align:f&&s&&"center",x:f?!s&&4:10,verticalAlign:!f&&s&&"middle",y:f?s?16:10:s?6:-4,rotation:f&&!s&&90},g),this.renderLabel(g,e,s,w)):r&&r.hide(),y},P.prototype.renderLabel=function(y,h,f,m){var u=this.axis,v=u.chart.renderer,w=this.label;w||(this.label=w=v.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(f?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),u.chart.styledMode||w.css(I({textOverflow:"ellipsis"},y.style))),m=h.xBounds||[h[0][1],h[1][1],f?h[2][1]:h[0][1]],h=h.yBounds||[h[0][2],h[1][2],f?h[2][2]:h[0][2]],f=V(m),v=V(h),w.align(y,!1,{x:f,y:v,width:H(m)-f,height:H(h)-v}),w.alignValue&&w.alignValue!=="left"||(y=y.clip?u.width:u.chart.chartWidth,w.css({width:(w.rotation===90?u.height-(w.alignAttr.y-u.top):y-(w.alignAttr.x-u.left))+"px"})),w.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){U(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}(),R}),B(it,"Core/Tooltip.js",[it["Core/FormatUtilities.js"],it["Core/Globals.js"],it["Core/Renderer/RendererUtilities.js"],it["Core/Renderer/RendererRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.format,U=R.doc,z=H.distribute,I=$.clamp,E=$.css,M=$.discardElement,P=$.extend,y=$.fireEvent,h=$.isArray,f=$.isNumber,m=$.isString,u=$.merge,v=$.pick,w=$.splat,S=$.syncTimeout;return W=function(){function x(p,g){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=p,this.init(p,g)}return x.prototype.applyFilter=function(){var p=this.chart;p.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+p.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"}}]}]})},x.prototype.bodyFormatter=function(p){return p.map(function(g){var r=g.series.tooltipOptions;return(r[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,r[(g.point.formatPrefix||"point")+"Format"]||"")})},x.prototype.cleanSplit=function(p){this.chart.series.forEach(function(g){var r=g&&g.tt;r&&(!r.isActive||p?g.tt=r.destroy():r.isActive=!1)})},x.prototype.defaultFormatter=function(p){var g=this.points||w(this),r=[p.tooltipFooterHeaderFormatter(g[0])];return(r=r.concat(p.bodyFormatter(g))).push(p.tooltipFooterHeaderFormatter(g[0],!0)),r},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),M(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(p,g){var r=this.chart,a=r.pointer,t=r.inverted,i=r.plotTop;if(r=r.plotLeft,(p=w(p))[0].series&&p[0].series.yAxis&&!p[0].series.yAxis.options.reversedStacks&&(p=p.slice().reverse()),this.followPointer&&g)g.chartX===void 0&&(g=a.normalize(g)),p=[g.chartX-r,g.chartY-i];else if(p[0].tooltipPos)p=p[0].tooltipPos;else{var o=0,e=0;p.forEach(function(s){(s=s.pos(!0))&&(o+=s[0],e+=s[1])}),o/=p.length,e/=p.length,this.shared&&1<p.length&&g&&(t?o=g.chartX:e=g.chartY),p=[o-r,e-i]}return p.map(Math.round)},x.prototype.getClassName=function(p,g,r){var a=p.series,t=a.options;return[this.options.className,"highcharts-label",r&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(p.colorIndex,a.colorIndex),t&&t.className].filter(m).join(" ")},x.prototype.getLabel=function(){var p,g=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(g.label){var e=!g.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&g.destroy()}if(!this.label){if(this.outside){e=this.chart.options.chart.style;var s=V.getRendererType();this.container=p=R.doc.createElement("div"),p.className="highcharts-tooltip-container",E(p,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),R.doc.body.appendChild(p),this.renderer=o=new s(p,0,0,e,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),g.outside&&!g.split){var n=this.label,l=n.xSetter,b=n.ySetter;n.xSetter=function(T){l.call(n,g.distance),p.style.left=T+"px"},n.ySetter=function(T){b.call(n,g.distance),p.style.top=T+"px"}}this.label.attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(p,g,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?U.documentElement.clientWidth-2*i:t.chartWidth,l=s?Math.max(U.body.scrollHeight,U.documentElement.scrollHeight,U.body.offsetHeight,U.documentElement.offsetHeight,U.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),T=function(O){var j=O==="x";return[O,j?n:l,j?p:g].concat(s?[j?p*b.scaleX:g*b.scaleY,j?b.left-i+(r.plotX+t.plotLeft)*b.scaleX:b.top-i+(r.plotY+t.plotTop)*b.scaleY,0,j?n:l]:[j?p:g,j?r.plotX+t.plotLeft:r.plotY+t.plotTop,j?t.plotLeft:t.plotTop,j?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},D=T("y"),d=T("x");T=!!r.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(T=!T);var C=!this.followPointer&&v(r.ttBelow,!t.inverted===T),A=function(O,j,Y,X,G,q,Q){var J=s?O==="y"?i*b.scaleY:i*b.scaleX:i,rt=(Y-X)/2,lt=X<G-i,gt=G+i+X<j,mt=G-J-Y+rt;if(G=G+J-rt,C&&gt)o[O]=G;else if(!C&&lt)o[O]=mt;else if(lt)o[O]=Math.min(Q-X,0>mt-e?mt:mt-e);else{if(!gt)return!1;o[O]=Math.max(q,G+e+Y>j?G:G+e)}},N=function(O,j,Y,X,G){var q;return G<i||G>j-i?q=!1:o[O]=G<Y/2?1:G>j-X/2?j-X-2:G-Y/2,q},_=function(O){var j=D;D=d,d=j,a=O},L=function(){A.apply(0,D)!==!1?N.apply(0,d)!==!1||a||(_(!0),L()):a?o.x=o.y=0:(_(!0),L())};return(t.inverted||1<this.len)&&_(),L(),o},x.prototype.hide=function(p){var g=this;$.clearTimeout(this.hideTimer),p=v(p,this.options.hideDelay),this.isHidden||(this.hideTimer=S(function(){g.getLabel().fadeOut(p&&void 0),g.isHidden=!0},p))},x.prototype.init=function(p,g){this.chart=p,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!p.inverted&&!p.polar,this.shared=g.shared||this.split,this.outside=v(g.outside,!(!p.scrollablePixelsX&&!p.scrollablePixelsY))},x.prototype.shouldStickOnContact=function(p){return!(this.followPointer||!this.options.stickOnContact||p&&!this.chart.pointer.inClass(p.target,"highcharts-tooltip"))},x.prototype.move=function(p,g,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(p-i.x)||1<Math.abs(g-i.y)),e=t.followPointer||1<t.len;P(i,{x:o?(2*i.x+p)/3:p,y:o?(i.y+g)/2:g,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(p,g,r,a)},32))},x.prototype.refresh=function(p,g){var r=this.chart,a=this.options,t=r.pointer,i=w(p),o=i[0],e=[],s=a.formatter||this.defaultFormatter,n=this.shared,l=r.styledMode,b={};if(a.enabled&&o.series){$.clearTimeout(this.hideTimer),this.allowShared=!(!h(p)&&p.series&&p.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer;var T=(p=this.getAnchor(p,g))[0],D=p[1];if(n&&this.allowShared?(t.applyInactiveState(i),i.forEach(function(A){A.setState("hover"),e.push(A.getLabelConfig())}),(b={x:o.category,y:o.y}).points=e):b=o.getLabelConfig(),this.len=e.length,s=s.call(b,this),n=o.series,this.distance=v(n.tooltipOptions.distance,16),s===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(s,i);else{var d=T,C=D;if(g&&t.isDirectTouch&&(d=g.chartX-r.plotLeft,C=g.chartY-r.plotTop),!r.polar&&n.options.clip!==!1&&!i.some(function(A){return t.isDirectTouch||A.series.shouldShowTooltip(d,C)}))return void this.hide();g=this.getLabel(),a.style.width&&!l||g.css({width:r.spacingBox.width+"px"}),g.attr({text:s&&s.join?s.join(""):s}),g.addClass(this.getClassName(o),!0),l||g.attr({stroke:a.borderColor||o.color||n.color||"#666666"}),this.updatePosition({plotX:T,plotY:D,negative:o.negative,ttBelow:o.ttBelow,h:p[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},x.prototype.renderSplit=function(p,g){function r(gt,mt,bt,yt,ht){return ht===void 0&&(ht=!0),bt?(mt=X?0:J,gt=I(gt-yt/2,O.left,O.right-yt-(a.outside?G:0))):(mt-=q,gt=I(gt=ht?gt-yt-N:gt+N,ht?gt:O.left,O.right)),{x:gt,y:mt}}var a=this,t=a.chart,i=a.chart,o=i.chartWidth,e=i.chartHeight,s=i.plotHeight,n=i.plotLeft,l=i.plotTop,b=i.pointer,T=i.scrollablePixelsY;T=T===void 0?0:T;var D=i.scrollablePixelsX,d=i.scrollingContainer,C=(d=d===void 0?{scrollLeft:0,scrollTop:0}:d).scrollLeft;d=d.scrollTop;var A=i.styledMode,N=a.distance,_=a.options,L=a.options.positioner,O=a.outside&&typeof D!="number"?U.documentElement.getBoundingClientRect():{left:C,right:C+o,top:d,bottom:d+e},j=a.getLabel(),Y=this.renderer||t.renderer,X=!(!t.xAxis[0]||!t.xAxis[0].opposite),G=(t=b.getChartPosition()).left;t=t.top;var q=l+d,Q=0,J=s-T;m(p)&&(p=[!1,p]),p=p.slice(0,g.length+1).reduce(function(gt,mt,bt){if(mt!==!1&&mt!==""){var yt=(bt=g[bt-1]||{isHeader:!0,plotX:g[0].plotX,plotY:s,series:{}}).isHeader,ht=yt?a:bt.series;mt=mt.toString();var et=ht.tt,at=bt.isHeader,dt=bt.series;et||(et={padding:_.padding,r:_.borderRadius},A||(et.fill=_.backgroundColor,et["stroke-width"]=_.borderWidth),et=Y.label("",0,0,_[at?"headerShape":"shape"],void 0,void 0,_.useHTML).addClass(a.getClassName(bt,!0,at)).attr(et).add(j)),et.isActive=!0,et.attr({text:mt}),A||et.css(_.style).shadow(_.shadow).attr({stroke:_.borderColor||bt.color||dt.color||"#333333"}),mt=(at=(ht=ht.tt=et).getBBox()).width+ht.strokeWidth(),yt&&(Q=at.height,J+=Q,X&&(q-=Q)),dt=(dt=bt.plotX)===void 0?0:dt,et=(et=bt.plotY)===void 0?0:et;var vt=bt.series;if(bt.isHeader){dt=n+dt;var Ct=l+s/2}else{var xt=vt.xAxis,wt=vt.yAxis;dt=xt.pos+I(dt,-N,xt.len+N),vt.shouldShowTooltip(0,wt.pos-l+et,{ignoreX:!0})&&(Ct=wt.pos+et)}dt=I(dt,O.left-N,O.right+N),typeof Ct=="number"?(at=at.height+1,et=L?L.call(a,mt,at,bt):r(dt,Ct,yt,mt),gt.push({align:L?0:void 0,anchorX:dt,anchorY:Ct,boxWidth:mt,point:bt,rank:v(et.rank,yt?1:0),size:at,target:et.y,tt:ht,x:et.x})):ht.isActive=!1}return gt},[]),!L&&p.some(function(gt){var mt=(a.outside?G:0)+gt.anchorX;return mt<O.left&&mt+gt.boxWidth<O.right||mt<G-O.left+gt.boxWidth&&O.right-mt>mt})&&(p=p.map(function(gt){var mt=r(gt.anchorX,gt.anchorY,gt.point.isHeader,gt.boxWidth,!1);return P(gt,{target:mt.y,x:mt.x})})),a.cleanSplit(),z(p,J);var rt=G,lt=G;p.forEach(function(gt){var mt=gt.x,bt=gt.boxWidth;(gt=gt.isHeader)||(a.outside&&G+mt<rt&&(rt=G+mt),!gt&&a.outside&&rt+bt>lt&&(lt=G+mt))}),p.forEach(function(gt){var mt=gt.x,bt=gt.anchorX,yt=gt.pos,ht=gt.point.isHeader;if(yt={visibility:yt===void 0?"hidden":"inherit",x:mt,y:(yt||0)+q,anchorX:bt,anchorY:gt.anchorY},a.outside&&mt<bt){var et=G-rt;0<et&&(ht||(yt.x=mt+et,yt.anchorX=bt+et),ht&&(yt.x=(lt-rt)/2,yt.anchorX=bt+et))}gt.tt.attr(yt)}),p=a.container,T=a.renderer,a.outside&&p&&T&&(i=j.getBBox(),T.setSize(i.width+i.x,i.height+i.y,!1),p.style.left=rt+"px",p.style.top=t+"px")},x.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var p=this.chart,g=this.label,r=this.shared?p.hoverPoints:p.hoverPoint;if(g&&r){var a={x:0,y:0,width:0,height:0};r=this.getAnchor(r);var t=g.getBBox();r[0]+=p.plotLeft-g.translateX,r[1]+=p.plotTop-g.translateY,a.x=Math.min(0,r[0]),a.y=Math.min(0,r[1]),a.width=0>r[0]?Math.max(Math.abs(r[0]),t.width-r[0]):Math.max(Math.abs(r[0]),t.width),a.height=0>r[1]?Math.max(Math.abs(r[1]),t.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),t.height),this.tracker?this.tracker.attr(a):(this.tracker=g.renderer.rect(a).addClass("highcharts-tracker").add(g),p.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},x.prototype.styledModeFormat=function(p){return p.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},x.prototype.tooltipFooterHeaderFormatter=function(p,g){var r=p.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime;t={isFooter:g,labelConfig:p};var o=a.xDateFormat,e=a[g?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t,function(s){i&&!o&&f(p.key)&&(o=i.getXDateFormat(p.key,a.dateTimeLabelFormats)),i&&o&&(p.point&&p.point.tooltipDateKeys||["key"]).forEach(function(n){e=e.replace("{point."+n+"}","{point."+n+":"+o+"}")}),r.chart.styledMode&&(e=this.styledModeFormat(e)),s.text=Z(e,{point:p,series:r},this.chart)}),t.text},x.prototype.update=function(p){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,p),this.init(this.chart,u(!0,this.options,p))},x.prototype.updatePosition=function(p){var g=this.chart,r=this.distance,a=this.options,t=g.pointer,i=this.getLabel(),o=t.getChartPosition();t=o.left;var e=o.top,s=o.scaleX;o=o.scaleY;var n=(a.positioner||this.getPosition).call(this,i.width,i.height,p),l=(p.plotX||0)+g.plotLeft;p=(p.plotY||0)+g.plotTop,this.outside&&(a.positioner&&(n.x+=t-r,n.y+=e-r),r=a.borderWidth+2*r,this.renderer.setSize(i.width+r,i.height+r,!1),s===1&&o===1||(E(this.container,{transform:"scale(".concat(s,", ").concat(o,")")}),l*=s,p*=o),l+=t-n.x,p+=e-n.y),this.move(Math.round(n.x),Math.round(n.y||0),l,p)},x}(),W}),B(it,"Core/Series/Point.js",[it["Core/Renderer/HTML/AST.js"],it["Core/Animation/AnimationUtilities.js"],it["Core/Defaults.js"],it["Core/FormatUtilities.js"],it["Core/Utilities.js"]],function(W,R,H,V,$){var Z=R.animObject,U=H.defaultOptions,z=V.format,I=$.addEvent,E=$.defined,M=$.erase,P=$.extend,y=$.fireEvent,h=$.getNestedProperty,f=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,w=$.merge,S=$.objectEach,x=$.pick,p=$.syncTimeout,g=$.removeEvent,r=$.uniqueKey;return R=function(){function a(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){t[e]=t[e].animate(e==="dataLabel"?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(P({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this.series,e=o.options.pointValKey||o.pointValKey;return t=a.prototype.optionsToObject.call(this,t),P(this,t),this.options=this.options?P(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,e&&(this.y=a.prototype.getNestedProperty.call(this,e)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&i===void 0&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),this.x===void 0&&o?this.x=i===void 0?o.autoIncrement():i:u(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},a.prototype.destroy=function(){function t(){for(s in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(g(i),i.destroyElements()),i)i[s]=null}var i=this,o=i.series,e=o.chart;o=o.options.dataSorting;var s,n=e.hoverPoints,l=Z(i.series.chart.renderer.globalAnimation);i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),M(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),p(t,l.duration)):t(),e.pointCount--},a.prototype.destroyElements=function(t){var i=this;(t=i.getGraphicalProps(t)).singular.forEach(function(o){i[o]=i[o].destroy()}),t.plural.forEach(function(o){i[o].forEach(function(e){e&&e.element&&e.destroy()}),delete i[o]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},a.prototype.getGraphicalProps=function(t){var i,o=this,e=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&e.push("graphic","shadowGroup"),t.dataLabel&&e.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),i=e.length;i--;){var n=e[i];o[n]&&s.singular.push(n)}return["graphic","dataLabel","connector"].forEach(function(l){var b=l+"s";t[l]&&o[b]&&s.plural.push(b)}),s},a.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}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?h(t,this.options):this[t]},a.prototype.getZone=function(){var t=this.series,i=t.zones;t=t.zoneAxis||"y";var o,e=0;for(o=i[e];this[t]>=o.value;)o=i[++e];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=o&&o.color&&!this.options.color?o.color:this.nonZonedColor,o},a.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},a.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},a.prototype.isValid=function(){return this.x!==null&&u(this.y)},a.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,e=o||i.pointArrayMap||["y"],s=e.length,n={},l=0,b=0;if(u(t)||t===null)n[e[0]]=t;else if(f(t))for(!o&&t.length>s&&((i=typeof t[0])=="string"?n.name=t[0]:i==="number"&&(n.x=t[0]),l++);b<s;)o&&t[l]===void 0||(0<e[b].indexOf(".")?a.prototype.setNestedProperty(n,t[l],e[b]):n[e[b]]=t[l]),l++,b++;else typeof t=="object"&&(n=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return n},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis;e=e.yAxis;var l=0,b=0;if(u(o)&&u(i))return t&&(l=n?n.pos:s.plotLeft,b=e?e.pos:s.plotTop),s.inverted&&n&&e?[e.len-i+b,n.len-o+l]:[o+l,i+b]},a.prototype.resolveColor=function(){var t=this.series,i=t.chart.styledMode,o=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!i){var e=(o=t.options.colors||t.chart.options.colors)[t.colorCounter];o=o.length}i=t.colorCounter,t.colorCounter++,t.colorCounter===o&&(t.colorCounter=0)}else i||(e=t.color),i=t.colorIndex;this.colorIndex=x(this.options.colorIndex,i),this.color=x(this.options.color,e)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,l){return e[s]=l.length-1===n?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=x(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(l){l="{point."+l,(s||n)&&(t=t.replace(RegExp(l+"}","g"),s+l+"}"+n)),t=t.replace(RegExp(l+"}","g"),l+":,."+e+"f}")}),z(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){function s(){l.applyOptions(t);var C=T&&l.hasMockGraphic;C=l.y===null?!C:C,T&&C&&(l.graphic=T.destroy(),delete l.hasMockGraphic),v(t,!0)&&(T&&T.element&&t&&t.marker&&t.marker.symbol!==void 0&&(l.graphic=T.destroy()),t&&t.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.connector&&(l.connector=l.connector.destroy())),n=l.index,b.updateParallelArrays(l,n),d.data[n]=v(d.data[n],!0)||v(t,!0)?l.options:x(t,d.data[n]),b.isDirty=b.isDirtyData=!0,!b.fixedBox&&b.hasCartesianSeries&&(D.isDirtyBox=!0),d.legendType==="point"&&(D.isDirtyLegend=!0),i&&D.redraw(o)}var n,l=this,b=l.series,T=l.graphic,D=b.chart,d=b.options;i=x(i,!0),e===!1?s():l.firePointEvent("update",{options:t},s)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=e.chart;this.selectedStaging=t=x(t,!o.selected),o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||s.getSelectedPoints().forEach(function(n){var l=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,l.options.data[l.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.prototype.onMouseOver=function(t){var i=this.series.chart,o=i.pointer;t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i.inverted),o.runPointActions(t,this)},a.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(i){i.setState()}),t.hoverPoints=t.hoverPoint=null},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=w(t.series.options.point,t.options).events;t.events=i,S(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e=this.series,s=this.state,n=e.options.states[t||"normal"]||{},l=U.plotOptions[e.type].marker&&e.options.marker,b=l&&l.enabled===!1,T=l&&l.states&&l.states[t||"normal"]||{},D=T.enabled===!1,d=this.marker||{},C=e.chart,A=l&&e.markerAttribs,N=e.halo,_=e.stateMarkerGraphic;if(!((t=t||"")===this.state&&!i||this.selected&&t!=="select"||n.enabled===!1||t&&(D||b&&T.enabled===!1)||t&&d.states&&d.states[t]&&d.states[t].enabled===!1)){if(this.state=t,A&&(o=e.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!C.styledMode){s=e.pointAttribs(this,t);var L=x(C.options.chart.animation,n.animation),O=s.opacity;e.options.inactiveOtherPoints&&u(O)&&((this.dataLabels||[]).forEach(function(j){j&&!j.hasClass("highcharts-data-label-hidden")&&j.animate({opacity:O},L)}),this.connector&&this.connector.animate({opacity:O},L)),this.graphic.animate(s,L)}o&&this.graphic.animate(o,x(C.options.chart.animation,T.animation,l.animation)),_&&_.hide()}else t&&T&&(l=d.symbol||e.symbol,_&&_.currentSymbol!==l&&(_=_.destroy()),o&&(_?_[i?"animate":"attr"]({x:o.x,y:o.y}):l&&(e.stateMarkerGraphic=_=C.renderer.symbol(l,o.x,o.y,o.width,o.height).add(e.markerGroup),_.currentSymbol=l)),!C.styledMode&&_&&this.state!=="inactive"&&_.attr(e.pointAttribs(this,t))),_&&(_[t&&this.isInside?"show":"hide"](),_.element.point=this,_.addClass(this.getClassName(),!0));n=n.halo,o=(_=this.graphic||_)&&_.visibility||"inherit",n&&n.size&&_&&o!=="hidden"&&!this.isCluster?(N||(e.halo=N=C.renderer.path().add(_.parentGroup)),N.show()[i?"animate":"attr"]({d:this.haloPath(n.size)}),N.attr({class:"highcharts-halo highcharts-color-"+x(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),N.point=this,C.styledMode||N.attr(P({fill:this.color||e.color,"fill-opacity":n.opacity},W.filterUserAttributes(n.attributes||{})))):N&&N.point&&N.point.haloPath&&N.animate({d:N.point.haloPath(0)},null,N.hide),y(this,"afterSetState",{state:t})}},a.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},a}(),R}),B(it,"Core/Pointer.js",[it["Core/Color/Color.js"],it["Core/Globals.js"],it["Core/Tooltip.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=R.charts,U=R.noop,z=V.addEvent,I=V.attr,E=V.css,M=V.defined,P=V.extend,y=V.find,h=V.fireEvent,f=V.isNumber,m=V.isObject,u=V.objectEach,v=V.offset,w=V.pick,S=V.splat;return W=function(){function x(p,g){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=p,this.hasDragged=!1,this.options=g,this.init(p,g)}return x.prototype.applyInactiveState=function(p){var g,r=[];(p||[]).forEach(function(a){g=a.series,r.push(g),g.linkedParent&&r.push(g.linkedParent),g.linkedSeries&&(r=r.concat(g.linkedSeries)),g.navigatorSeries&&r.push(g.navigatorSeries)}),this.chart.series.forEach(function(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},x.prototype.destroy=function(){var p=this;this.eventsToUnbind.forEach(function(g){return g()}),this.eventsToUnbind=[],R.chartCount||(x.unbindDocumentMouseUp&&(x.unbindDocumentMouseUp=x.unbindDocumentMouseUp()),x.unbindDocumentTouchEnd&&(x.unbindDocumentTouchEnd=x.unbindDocumentTouchEnd())),clearInterval(p.tooltipTimeout),u(p,function(g,r){p[r]=void 0})},x.prototype.getSelectionMarkerAttrs=function(p,g){var r=this,a={args:{chartX:p,chartY:g},attrs:{},shapeType:"rect"};return h(this,"getSelectionMarkerAttrs",a,function(t){var i=r.chart,o=r.mouseDownX;o=o===void 0?0:o;var e=r.mouseDownY;e=e===void 0?0:e;var s=r.zoomHor,n=r.zoomVert;(t=t.attrs).x=i.plotLeft,t.y=i.plotTop,t.width=s?1:i.plotWidth,t.height=n?1:i.plotHeight,s&&(i=p-o,t.width=Math.abs(i),t.x=(0<i?0:i)+o),n&&(i=g-e,t.height=Math.abs(i),t.y=(0<i?0:i)+e)}),a},x.prototype.drag=function(p){var g=this.chart,r=g.options.chart,a=g.plotLeft,t=g.plotTop,i=g.plotWidth,o=g.plotHeight,e=this.mouseDownX||0,s=this.mouseDownY||0,n=m(r.panning)?r.panning&&r.panning.enabled:r.panning,l=r.panKey&&p[r.panKey+"Key"],b=p.chartX,T=p.chartY,D=this.selectionMarker;D&&D.touch||(b<a?b=a:b>a+i&&(b=a+i),T<t?T=t:T>t+o&&(T=t+o),this.hasDragged=Math.sqrt(Math.pow(e-b,2)+Math.pow(s-T,2)),10<this.hasDragged&&(a=g.isInsidePlot(e-a,s-t,{visiblePlotOnly:!0}),b=(T=this.getSelectionMarkerAttrs(b,T)).shapeType,T=T.attrs,!g.hasCartesianSeries&&!g.mapView||!this.zoomX&&!this.zoomY||!a||l||D||(this.selectionMarker=D=g.renderer[b](),D.attr({class:"highcharts-selection-marker",zIndex:7}).add(),g.styledMode||D.attr({fill:r.selectionMarkerFill||$("#335cad").setOpacity(.25).get()})),D&&D.attr(T),a&&!D&&n&&g.pan(p,r.panning)))},x.prototype.dragStart=function(p){var g=this.chart;g.mouseIsDown=p.type,g.cancelClick=!1,g.mouseDownX=this.mouseDownX=p.chartX,g.mouseDownY=this.mouseDownY=p.chartY},x.prototype.getSelectionBox=function(p){var g={args:{marker:p},result:{}};return h(this,"getSelectionBox",g,function(r){r.result={x:p.attr?+p.attr("x"):p.x,y:p.attr?+p.attr("y"):p.y,width:p.attr?p.attr("width"):p.width,height:p.attr?p.attr("height"):p.height}}),g.result},x.prototype.drop=function(p){var g=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:p,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},l=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&M(b.min)&&(a||g[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&f(i)&&f(o)&&f(e)&&f(s)){var T=b.horiz,D=p.type==="touchend"?b.minPixelPadding:0,d=b.toValue((T?i:o)+D);T=b.toValue((T?i+e:o+s)-D),n[b.coll].push({axis:b,min:Math.min(d,T),max:Math.max(d,T)}),l=!0}}),l&&h(r,"selection",n,function(b){r.zoom(P(b,a?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&f(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=10<this.hasDragged,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},x.prototype.findNearestKDPoint=function(p,g,r){var a;return p.forEach(function(t){var i=!(t.noSharedTooltip&&g)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(r,i),(i=m(t,!0)&&t.series)&&!(i=!m(a,!0))){i=a.distX-t.distX;var o=a.dist-t.dist,e=(t.series.group&&t.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);i=0<(i!==0&&g?i:o!==0?o:e!==0?e:a.series.index>t.series.index?-1:1)}i&&(a=t)}),a},x.prototype.getChartCoordinatesFromPoint=function(p,g){var r=p.series,a=r.xAxis;r=r.yAxis;var t=p.shapeArgs;if(a&&r){var i=w(p.clientX,p.plotX),o=p.plotY||0;return p.isNode&&t&&f(t.x)&&f(t.y)&&(i=t.x,o=t.y),g?{chartX:r.len+r.pos-o,chartY:a.len+a.pos-i}:{chartX:i+a.pos,chartY:o+r.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},x.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var p=this.chart.container,g=v(p);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};var r=p.offsetWidth;return p=p.offsetHeight,2<r&&2<p&&(this.chartPosition.scaleX=g.width/r,this.chartPosition.scaleY=g.height/p),this.chartPosition},x.prototype.getCoordinates=function(p){var g={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){g[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(p[r.horiz?"chartX":"chartY"])})}),g},x.prototype.getHoverData=function(p,g,r,a,t,i){var o=[];a=!(!a||!p);var e=function(b){return b.visible&&!(!t&&b.directTouch)&&w(b.options.enableMouseTracking,!0)},s={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};h(this,"beforeGetHoverData",s);var n=g&&!g.stickyTracking?[g]:r.filter(function(b){return b.stickyTracking&&(s.filter||e)(b)}),l=a||!i?p:this.findNearestKDPoint(n,t,i);return g=l&&l.series,l&&(t&&!g.noSharedTooltip?(n=r.filter(function(b){return s.filter?s.filter(b):e(b)&&!b.noSharedTooltip}),n.forEach(function(b){var T=y(b.points,function(D){return D.x===l.x&&!D.isNull});m(T)&&(b.boosted&&b.boost&&(T=b.boost.getPoint(T)),o.push(T))})):o.push(l)),h(this,"afterGetHoverData",s={hoverPoint:l}),{hoverPoint:s.hoverPoint,hoverSeries:g,hoverPoints:o}},x.prototype.getPointFromEvent=function(p){p=p.target;for(var g;p&&!g;)g=p.point,p=p.parentNode;return g},x.prototype.onTrackerMouseOut=function(p){p=p.relatedTarget||p.toElement;var g=this.chart.hoverSeries;this.isDirectTouch=!1,!g||!p||g.stickyTracking||this.inClass(p,"highcharts-tooltip")||this.inClass(p,"highcharts-series-"+g.index)&&this.inClass(p,"highcharts-tracker")||g.onMouseOut()},x.prototype.inClass=function(p,g){for(var r;p;){if(r=I(p,"class")){if(r.indexOf(g)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}p=p.parentElement}},x.prototype.init=function(p,g){this.options=g,this.chart=p,this.runChartClick=!(!g.chart.events||!g.chart.events.click),this.pinchDown=[],this.lastValidTouch={},H&&(p.tooltip=new H(p,g.tooltip)),this.setDOMEvents()},x.prototype.normalize=function(p,g){var r=p.touches,a=r?r.length?r.item(0):w(r.changedTouches,p.changedTouches)[0]:p;return g||(g=this.getChartPosition()),r=a.pageX-g.left,a=a.pageY-g.top,r/=g.scaleX,a/=g.scaleY,P(p,{chartX:Math.round(r),chartY:Math.round(a)})},x.prototype.onContainerClick=function(p){var g=this.chart,r=g.hoverPoint;p=this.normalize(p);var a=g.plotLeft,t=g.plotTop;g.cancelClick||(r&&this.inClass(p.target,"highcharts-tracker")?(h(r.series,"click",P(p,{point:r})),g.hoverPoint&&r.firePointEvent("click",p)):(P(p,this.getCoordinates(p)),g.isInsidePlot(p.chartX-a,p.chartY-t,{visiblePlotOnly:!0})&&h(g,"click",p)))},x.prototype.onContainerMouseDown=function(p){var g=!(1&~(p.buttons||p.button));p=this.normalize(p),R.isFirefox&&p.button!==0&&this.onContainerMouseMove(p),(p.button===void 0||g)&&(this.zoomOption(p),g&&p.preventDefault&&p.preventDefault(),this.dragStart(p))},x.prototype.onContainerMouseLeave=function(p){var g=Z[w(x.hoverChartIndex,-1)],r=this.chart.tooltip;p=this.normalize(p),g&&(p.relatedTarget||p.toElement)&&(g.pointer.reset(),g.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},x.prototype.onContainerMouseEnter=function(p){delete this.chartPosition},x.prototype.onContainerMouseMove=function(p){var g=this.chart,r=g.tooltip;p=this.normalize(p),this.setHoverChartIndex(),p.preventDefault||(p.returnValue=!1),(g.mouseIsDown==="mousedown"||this.touchSelect(p))&&this.drag(p),g.openMenu||!this.inClass(p.target,"highcharts-tracker")&&!g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(p)||(this.inClass(p.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(p))},x.prototype.onDocumentTouchEnd=function(p){var g=Z[w(x.hoverChartIndex,-1)];g&&g.pointer.drop(p)},x.prototype.onContainerTouchMove=function(p){this.touchSelect(p)?this.onContainerMouseMove(p):this.touch(p)},x.prototype.onContainerTouchStart=function(p){this.touchSelect(p)?this.onContainerMouseDown(p):(this.zoomOption(p),this.touch(p,!0))},x.prototype.onDocumentMouseMove=function(p){var g=this.chart,r=g.tooltip,a=this.chartPosition;p=this.normalize(p,a),!a||g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(p)||this.inClass(p.target,"highcharts-tracker")||this.reset()},x.prototype.onDocumentMouseUp=function(p){var g=Z[w(x.hoverChartIndex,-1)];g&&g.pointer.drop(p)},x.prototype.pinch=function(p){var g=this,r=g.chart,a=g.pinchDown,t=p.touches||[],i=t.length,o=g.lastValidTouch,e=g.hasZoom,s={},n=i===1&&(g.inClass(p.target,"highcharts-tracker")&&r.runTrackerClick||g.runChartClick),l={},b=g.chart.tooltip;b=i===1&&w(b&&b.options.followTouchMove,!0);var T=g.selectionMarker;1<i?g.initiated=!0:b&&(g.initiated=!1),e&&g.initiated&&!n&&p.cancelable!==!1&&p.preventDefault(),[].map.call(t,function(D){return g.normalize(D)}),p.type==="touchstart"?([].forEach.call(t,function(D,d){a[d]={chartX:D.chartX,chartY:D.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(D){if(D.zoomEnabled){var d=r.bounds[D.horiz?"h":"v"],C=D.minPixelPadding,A=D.toPixels(Math.min(w(D.options.min,D.dataMin),D.dataMin)),N=D.toPixels(Math.max(w(D.options.max,D.dataMax),D.dataMax)),_=Math.max(A,N);d.min=Math.min(D.pos,Math.min(A,N)-C),d.max=Math.max(D.pos+D.len,_+C)}}),g.res=!0):b?this.runPointActions(g.normalize(p)):a.length&&(h(r,"touchpan",{originalEvent:p},function(){T||(g.selectionMarker=T=P({destroy:U,touch:!0},r.plotBox)),g.pinchTranslate(a,t,s,T,l,o),g.hasPinched=e,g.scaleGroups(s,l)}),g.res&&(g.res=!1,this.reset(!1,0)))},x.prototype.pinchTranslate=function(p,g,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,p,g,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,p,g,r,a,t,i)},x.prototype.pinchTranslateDirection=function(p,g,r,a,t,i,o,e){var s=this.chart,n=p?"x":"y",l=p?"X":"Y",b="chart"+l,T=p?"width":"height",D=s["plot"+(p?"Left":"Top")],d=s.inverted,C=s.bounds[p?"h":"v"],A=g.length===1,N=g[0][b],_=!A&&g[1][b];g=function(){typeof X=="number"&&20<Math.abs(N-_)&&(j=e||Math.abs(Y-X)/Math.abs(N-_)),O=(D-Y)/j+N,L=s["plot"+(p?"Width":"Height")]/j};var L,O,j=e||1,Y=r[0][b],X=!A&&r[1][b];if(g(),(r=O)<C.min){r=C.min;var G=!0}else r+L>C.max&&(r=C.max-L,G=!0);G?(Y-=.8*(Y-o[n][0]),typeof X=="number"&&(X-=.8*(X-o[n][1])),g()):o[n]=[Y,X],d||(i[n]=O-D,i[T]=L),i=d?1/j:j,t[T]=L,t[n]=r,a[d?p?"scaleY":"scaleX":"scale"+l]=j,a["translate"+l]=i*D+(Y-i*N)},x.prototype.reset=function(p,g){var r=this.chart,a=r.hoverSeries,t=r.hoverPoint,i=r.hoverPoints,o=r.tooltip,e=o&&o.shared?i:t;p&&e&&S(e).forEach(function(s){s.series.isCartesian&&s.plotX===void 0&&(p=!1)}),p?o&&e&&S(e).length&&(o.refresh(e),o.shared&&i?i.forEach(function(s){s.setState(s.state,!0),s.series.isCartesian&&(s.series.xAxis.crosshair&&s.series.xAxis.drawCrosshair(null,s),s.series.yAxis.crosshair&&s.series.yAxis.drawCrosshair(null,s))}):t&&(t.setState(t.state,!0),r.axes.forEach(function(s){s.crosshair&&t.series[s.coll]===s&&s.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),i&&i.forEach(function(s){s.setState()}),a&&a.onMouseOut(),o&&o.hide(g),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(s){s.hideCrosshair()}),this.hoverX=r.hoverPoints=r.hoverPoint=null)},x.prototype.runPointActions=function(p,g,r){var a=this.chart,t=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,i=!!t&&t.shared,o=g||a.hoverPoint,e=o&&o.series||a.hoverSeries;g=this.getHoverData(o,e,a.series,(!p||p.type!=="touchmove")&&(!!g||e&&e.directTouch&&this.isDirectTouch),i,p),o=g.hoverPoint,e=g.hoverSeries;var s=g.hoverPoints;g=e&&e.tooltipOptions.followPointer&&!e.tooltipOptions.split;var n=i&&e&&!e.noSharedTooltip;if(o&&(r||o!==a.hoverPoint||t&&t.isHidden)){if((a.hoverPoints||[]).forEach(function(l){s.indexOf(l)===-1&&l.setState()}),a.hoverSeries!==e&&e.onMouseOver(),this.applyInactiveState(s),(s||[]).forEach(function(l){l.setState("hover")}),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!o.series)return;a.hoverPoints=s,a.hoverPoint=o,o.firePointEvent("mouseOver",void 0,function(){t&&o&&t.refresh(n?s:o,p)})}else g&&t&&!t.isHidden&&(r=t.getAnchor([{}],p),a.isInsidePlot(r[0],r[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(a.container.ownerDocument,"mousemove",function(l){var b=Z[x.hoverChartIndex];b&&b.pointer.onDocumentMouseMove(l)}),this.eventsToUnbind.push(this.unDocMouseMove)),a.axes.forEach(function(l){var b,T=w((l.crosshair||{}).snap,!0);T&&((b=a.hoverPoint)&&b.series[l.coll]===l||(b=y(s,function(D){return D.series&&D.series[l.coll]===l}))),b||!T?l.drawCrosshair(p,b):l.hideCrosshair()})},x.prototype.scaleGroups=function(p,g){var r=this.chart;r.series.forEach(function(a){var t=p||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(g?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(g||r.clipBox)},x.prototype.setDOMEvents=function(){var p=this,g=this.chart.container,r=g.ownerDocument;g.onmousedown=this.onContainerMouseDown.bind(this),g.onmousemove=this.onContainerMouseMove.bind(this),g.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(z(g,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(z(g,"mouseleave",this.onContainerMouseLeave.bind(this))),x.unbindDocumentMouseUp||(x.unbindDocumentMouseUp=z(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(z(a,"scroll",function(){delete p.chartPosition})),a=a.parentElement;R.hasTouch&&(this.eventsToUnbind.push(z(g,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(g,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),x.unbindDocumentTouchEnd||(x.unbindDocumentTouchEnd=z(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},x.prototype.setHoverChartIndex=function(){var p=this.chart,g=R.charts[w(x.hoverChartIndex,-1)];g&&g!==p&&g.pointer.onContainerMouseLeave({relatedTarget:p.container}),g&&g.mouseIsDown||(x.hoverChartIndex=p.index)},x.prototype.touch=function(p,g){var r=this.chart;if(this.setHoverChartIndex(),p.touches.length===1)if(p=this.normalize(p),r.isInsidePlot(p.chartX-r.plotLeft,p.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu){if(g&&this.runPointActions(p),p.type==="touchmove")var a=!!(g=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(g[0].chartX-p.chartX,2)+Math.pow(g[0].chartY-p.chartY,2));w(a,!0)&&this.pinch(p)}else g&&this.reset();else p.touches.length===2&&this.pinch(p)},x.prototype.touchSelect=function(p){return!(!this.chart.options.chart.zooming.singleTouch||!p.touches||p.touches.length!==1)},x.prototype.zoomOption=function(p){var g=this.chart,r=g.options.chart;g=g.inverted;var a=r.zooming.type||"";/touch/.test(p.type)&&(a=w(r.zooming.pinchType,a)),this.zoomX=p=/x/.test(a),this.zoomY=r=/y/.test(a),this.zoomHor=p&&!g||r&&g,this.zoomVert=r&&!g||p&&g,this.hasZoom=p||r},x}(),W}),B(it,"Core/MSPointer.js",[it["Core/Globals.js"],it["Core/Pointer.js"],it["Core/Utilities.js"]],function(W,R,H){function V(){var v=[];return v.item=function(w){return this[w]},y(m,function(w){v.push({pageX:w.pageX,pageY:w.pageY,target:w.target})}),v}function $(v,w,S,x){var p=U[R.hoverChartIndex||NaN];v.pointerType!=="touch"&&v.pointerType!==v.MSPOINTER_TYPE_TOUCH||!p||(p=p.pointer,x(v),p[w]({type:S,target:v.currentTarget,preventDefault:I,touches:V()}))}var Z=this&&this.__extends||function(){var v=function(w,S){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,p){x.__proto__=p}||function(x,p){for(var g in p)p.hasOwnProperty(g)&&(x[g]=p[g])},v(w,S)};return function(w,S){function x(){this.constructor=w}v(w,S),w.prototype=S===null?Object.create(S):(x.prototype=S.prototype,new x)}}(),U=W.charts,z=W.doc,I=W.noop,E=W.win,M=H.addEvent,P=H.css,y=H.objectEach,h=H.pick,f=H.removeEvent,m={},u=!!E.PointerEvent;return function(v){function w(){return v!==null&&v.apply(this,arguments)||this}return Z(w,v),w.isRequired=function(){return!(W.hasTouch||!E.PointerEvent&&!E.MSPointerEvent)},w.prototype.batchMSEvents=function(S){S(this.chart.container,u?"pointerdown":"MSPointerDown",this.onContainerPointerDown),S(this.chart.container,u?"pointermove":"MSPointerMove",this.onContainerPointerMove),S(z,u?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},w.prototype.destroy=function(){this.batchMSEvents(f),v.prototype.destroy.call(this)},w.prototype.init=function(S,x){v.prototype.init.call(this,S,x),this.hasZoom&&P(S.container,{"-ms-touch-action":"none","touch-action":"none"})},w.prototype.onContainerPointerDown=function(S){$(S,"onContainerTouchStart","touchstart",function(x){m[x.pointerId]={pageX:x.pageX,pageY:x.pageY,target:x.currentTarget}})},w.prototype.onContainerPointerMove=function(S){$(S,"onContainerTouchMove","touchmove",function(x){m[x.pointerId]={pageX:x.pageX,pageY:x.pageY},m[x.pointerId].target||(m[x.pointerId].target=x.currentTarget)})},w.prototype.onDocumentPointerUp=function(S){$(S,"onDocumentTouchEnd","touchend",function(x){delete m[x.pointerId]})},w.prototype.setDOMEvents=function(){var S=this.chart.tooltip;v.prototype.setDOMEvents.call(this),(this.hasZoom||h(S&&S.options.followTouchMove,!0))&&this.batchMSEvents(M)},w}(R)}),B(it,"Core/Legend/Legend.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/FormatUtilities.js"],it["Core/Globals.js"],it["Core/Series/Point.js"],it["Core/Renderer/RendererUtilities.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.animObject,z=W.setAnimation,I=R.format,E=H.marginNames,M=$.distribute,P=Z.addEvent,y=Z.createElement,h=Z.css,f=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,w=Z.isNumber,S=Z.merge,x=Z.pick,p=Z.relativeLength,g=Z.stableSort,r=Z.syncTimeout;return W=function(){function a(t,i){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,i)}return a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=S(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(S(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,x(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line;if(o=o.symbol,e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var l=this.options;e=this.itemHiddenStyle.color,l=i?l.itemStyle.color:e;var b=i&&t.color||e,T=t.options&&t.options.marker,D={fill:b};s&&s.css({fill:l,color:l}),n&&n.attr({stroke:b}),o&&(T&&o.isMarker&&(D=t.pointAttribs(),i||(D.stroke=D.fill=e)),o.attr(D))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x;s=s===void 0?0:s,o=(o=o.y)===void 0?0:o;var n=this.options,l=n.symbolPadding,b=!n.rtl;n=t.checkbox,e&&e.element&&(l={translateX:b?s:this.legendWidth-s-2*l-4,translateY:o},e[f(e.translateY)?"animate":"attr"](l,void 0,function(){v(i,"afterPositionItem",{item:t})})),n&&(n.x=s,n.y=o)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&m(i),t.legendItem=void 0},a.prototype.destroy=function(){for(var t=0,i=this.getAllItems();t<i.length;t++)this.destroyItem(i[t]);for(t=0,i="clipRect up down pager nav box title group".split(" ");t<i.length;t++){var o=i[t];this[o]&&(this[o]=this[o].destroy())}this.display=null},a.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,o=this.titleHeight;if(t){var e=t.translateY;this.allItems.forEach(function(s){var n=s.checkbox;if(n){var l=e+o+n.y+(this.scrollOffset||0)+3;h(n,{left:t.translateX+s.checkboxOffset+n.x-20+"px",top:l+"px",display:this.proximate||l>e-6&&l<e+i-6?"":"none"})}},this)}},a.prototype.renderTitle=function(){var t=this.options,i=this.padding,o=t.title,e=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),e=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:e})),this.titleHeight=e},a.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},a.prototype.renderItem=function(t){var i=t.legendItem=t.legendItem||{},o=this.chart,e=o.renderer,s=this.options,n=this.symbolWidth,l=s.symbolPadding||0,b=this.itemStyle,T=this.itemHiddenStyle,D=s.layout==="horizontal"?x(s.itemDistance,20):0,d=!s.rtl,C=!t.series,A=!C&&t.series.drawLegendSymbol?t.series:t,N=A.options,_=this.createCheckboxForItem&&N&&N.showCheckbox,L=s.useHTML,O=t.options.className,j=i.label;N=n+l+D+(_?20:0),j||(i.group=e.g("legend-item").addClass("highcharts-"+A.type+"-series highcharts-color-"+t.colorIndex+(O?" "+O:"")+(C?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=j=e.text("",d?n+l:-l,this.baseline||0,L),o.styledMode||j.css(S(t.visible?b:T)),j.attr({align:d?"left":"right",zIndex:2}).add(i.group),this.baseline||(this.fontMetrics=e.fontMetrics(o.styledMode?12:b.fontSize,j),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,j.attr("y",this.baseline),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,s.squareSymbol&&(this.symbolWidth=x(s.symbolWidth,Math.max(this.symbolHeight,16)),N=this.symbolWidth+l+D+(_?20:0),d&&j.attr("x",this.symbolWidth+l))),A.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,j,L)),_&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!o.styledMode&&b.width||j.css({width:(s.itemWidth||this.widthOption||o.spacingBox.width)-N+"px"}),this.setText(t),o=j.getBBox(),e=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=s.itemWidth||i.labelWidth||o.width+N,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(o.height>1.5*e?o.height:e))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,l=this.itemMarginTop,b=e?x(i.itemDistance,20):0,T=this.maxLegendWidth;i=i.alignColumns&&this.totalItemWidth>T?this.maxItemWidth:t.itemWidth;var D=t.legendItem||{};e&&this.itemX-o+i>T&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=l+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),D.x=this.itemX,D.y=this.itemY,e?this.itemX+=i:(this.itemY+=l+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):i)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&x(o.showInLegend,!f(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,l){n.test(s)&&!f(t[l])&&(o[E[l]]=Math.max(o[E[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+x(e.margin,12)+i[l]+(o.titleOffset[l]||0)))})},a.prototype.proximatePositions=function(){var t=this.chart,i=[],o=this.options.align==="left";this.allItems.forEach(function(b){var T,D=o;if(b.yAxis){b.xAxis.options.reversed&&(D=!D),b.points&&(T=u(D?b.points:b.points.slice(0).reverse(),function(C){return w(C.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom;var d=b.yAxis.top-t.plotTop;b.visible?(T=T?T.plotY:b.yAxis.height,T+=d-.3*D):T=d+b.yAxis.height,i.push({target:T,size:D,item:b})}},this);for(var e,s=0,n=M(i,t.plotHeight);s<n.length;s++){var l=n[s];e=l.item.legendItem||{},w(l.pos)&&(e.y=t.plotTop-t.spacing[0]+l.pos)}},a.prototype.render=function(){var t=this.chart,i=t.renderer,o=this.options,e=this.padding,s=this.getAllItems(),n=this.group,l=this.box;this.itemX=e,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=p(o.width,t.spacingBox.width-e);var b=t.spacingBox.width-2*e-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(b/=2),this.maxLegendWidth=this.widthOption||b,n||(this.group=n=i.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(n),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),g(s,function(D,d){return(D.options&&D.options.legendIndex||0)-(d.options&&d.options.legendIndex||0)}),o.reversed&&s.reverse(),this.allItems=s,this.display=b=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEach(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+e;var T=this.lastItemY+this.lastLineHeight+this.titleHeight;T=this.handleOverflow(T),T+=e,l||(this.box=l=i.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(n)),t.styledMode||l.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<s&&0<T&&l[l.placed?"animate":"attr"](l.crisp.call({},{x:0,y:0,width:s,height:T},l.strokeWidth())),n[b?"show":"hide"](),t.styledMode&&n.getStyle("display")==="none"&&(s=T=0),this.legendWidth=s,this.legendHeight=T,b&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<i.titleOffset[0]?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<i.titleOffset[2]&&(e-=i.titleOffset[2]),e!==t.y&&(t=S(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(S(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,l=n.renderer,b=this.options,T=b.y,D=b.verticalAlign==="top",d=this.padding,C=b.maxHeight,A=b.navigation,N=x(A.animation,!0),_=A.arrowSize||12,L=this.pages,O=this.allItems,j=function(q){typeof q=="number"?G.attr({height:q}):G&&(s.clipRect=G.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=q?"rect("+d+"px,9999px,"+(d+q)+"px,0)":"auto")},Y=function(q){return s[q]=l.circle(0,0,1.3*_).translate(_/2,_/2).add(X),n.styledMode||s[q].attr("fill","rgba(0,0,0,0.0001)"),s[q]};T=n.spacingBox.height+(D?-T:T)-d;var X=this.nav,G=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(T/=2),C&&(T=Math.min(T,C)),L.length=0,t&&0<T&&t>T&&A.enabled!==!1?(this.clipHeight=i=Math.max(T-20-this.titleHeight-d,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,O.forEach(function(q,Q){q=(e=q.legendItem||{}).y||0;var J=Math.round(e.label.getBBox().height),rt=L.length;(!rt||q-L[rt-1]>i&&(o||q)!==L[rt-1])&&(L.push(o||q),rt++),e.pageIx=rt-1,o&&((O[Q-1].legendItem||{}).pageIx=rt-1),Q===O.length-1&&q+J-L[rt-1]>i&&J<=i&&(L.push(q),e.pageIx=rt),q!==o&&(o=q)}),G||(G=s.clipRect=l.clipRect(0,d,9999,0),s.contentGroup.clip(G)),j(i),X||(this.nav=X=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,_,_).add(X),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&A.style&&this.pager.css(A.style),this.pager.add(X),this.down=l.symbol("triangle-down",0,0,_,_).add(X),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=T):X&&(j(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,l=this.clipHeight,b=this.options.navigation,T=this.pager,D=this.padding,d=this.currentPage+t;d>n&&(d=n),0<d&&(i!==void 0&&z(i,e),this.nav.attr({translateX:D,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(C){C.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),T.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(C){C.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:d===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),t=U(x(i,e.renderer.globalAnimation,!0)),r(function(){v(o,"afterScroll",{currentPage:d})},t.duration))},a.prototype.setItemEvents=function(t,i,o){var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,l=t instanceof V,b="highcharts-legend-"+(l?"point":"series")+"-active",T=e.chart.styledMode,D=function(C){e.allItems.forEach(function(A){t!==A&&[A].concat(A.linkedSeries||[]).forEach(function(N){N.setState(C,!l)})})},d=0;for(o=o?[i,s.symbol]:[s.group];d<o.length;d++)(s=o[d])&&s.on("mouseover",function(){t.visible&&D("inactive"),t.setState("hover"),t.visible&&n.addClass(b),T||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(S(t.visible?e.itemStyle:e.itemHiddenStyle)),D(""),n.removeClass(b),t.setState()}).on("click",function(C){var A=function(){t.setVisible&&t.setVisible(),D(t.visible?"inactive":"")};n.removeClass(b),C={browserEvent:C},t.firePointEvent?t.firePointEvent("legendItemClick",C,A):v(t,"legendItemClick",C,A)})},a.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){v(t.series||t,"checkboxClick",{checked:i.target.checked,item:t},function(){t.select()})})},a}(),W}),B(it,"Core/Series/SeriesRegistry.js",[it["Core/Globals.js"],it["Core/Defaults.js"],it["Core/Series/Point.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=V.extendClass,z=V.merge;return function(I){function E(M,P){var y=Z.plotOptions||{},h=P.defaultOptions,f=P.prototype;f.type=M,f.pointClass||(f.pointClass=H),h&&(y[M]=h),I.seriesTypes[M]=P}I.seriesTypes=W.seriesTypes,I.registerSeriesType=E,I.seriesType=function(M,P,y,h,f){var m=Z.plotOptions||{};return P=P||"",m[M]=z(m[P],y),E(M,U(I.seriesTypes[P]||function(){},h)),I.seriesTypes[M].prototype.type=M,f&&(I.seriesTypes[M].prototype.pointClass=U(H,f)),I.seriesTypes[M]}}($||($={})),$}),B(it,"Core/Chart/Chart.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Axis/Axis.js"],it["Core/Defaults.js"],it["Core/FormatUtilities.js"],it["Core/Foundation.js"],it["Core/Globals.js"],it["Core/Legend/Legend.js"],it["Core/MSPointer.js"],it["Core/Pointer.js"],it["Core/Renderer/RendererRegistry.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Renderer/SVG/SVGRenderer.js"],it["Core/Time.js"],it["Core/Utilities.js"],it["Core/Renderer/HTML/AST.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f){var m=W.animate,u=W.animObject,v=W.setAnimation,w=H.defaultOptions,S=H.defaultTime,x=V.numberFormat,p=$.registerEventOptions,g=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=M.seriesTypes,e=h.addEvent,s=h.attr,n=h.cleanRecursively,l=h.createElement,b=h.css,T=h.defined,D=h.discardElement,d=h.erase,C=h.error,A=h.extend,N=h.find,_=h.fireEvent,L=h.getStyle,O=h.isArray,j=h.isNumber,Y=h.isObject,X=h.isString,G=h.merge,q=h.objectEach,Q=h.pick,J=h.pInt,rt=h.relativeLength,lt=h.removeEvent,gt=h.splat,mt=h.syncTimeout,bt=h.uniqueKey;return W=function(){function yt(ht,et,at){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=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(ht,et,at)}return yt.chart=function(ht,et,at){return new yt(ht,et,at)},yt.prototype.getArgs=function(ht,et,at){X(ht)||ht.nodeName?(this.renderTo=ht,this.init(et,at)):this.init(ht,et)},yt.prototype.init=function(ht,et){var at=ht.plotOptions||{};_(this,"init",{args:arguments},function(){var dt=G(w,ht),vt=dt.chart;q(dt.plotOptions,function(xt,wt){Y(xt)&&(xt.tooltip=at[wt]&&G(at[wt].tooltip)||void 0)}),dt.tooltip.userOptions=ht.chart&&ht.chart.forExport&&ht.tooltip.userOptions||ht.tooltip,this.userOptions=ht,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=et,this.isResizing=0;var Ct=vt.zooming=vt.zooming||{};ht.chart&&!ht.chart.zooming&&(Ct.resetButton=vt.resetZoomButton),Ct.key=Q(Ct.key,vt.zoomKey),Ct.pinchType=Q(Ct.pinchType,vt.pinchType),Ct.singleTouch=Q(Ct.singleTouch,vt.zoomBySingleTouch),Ct.type=Q(Ct.type,vt.zoomType),this.options=dt,this.axes=[],this.series=[],this.time=ht.time&&Object.keys(ht.time).length?new y(ht.time):Z.time,this.numberFormatter=vt.numberFormatter||x,this.styledMode=vt.styledMode,this.hasCartesianSeries=vt.showAxes,this.index=g.length,g.push(this),Z.chartCount++,p(this,vt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,_(this,"afterInit"),this.firstRender()})},yt.prototype.initSeries=function(ht){var et=this.options.chart;et=ht.type||et.type||et.defaultSeriesType;var at=o[et];return at||C(17,!0,this,{missingModuleFor:et}),typeof(et=new at).init=="function"&&et.init(this,ht),et},yt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(ht){ht.points||ht.data||!ht.enabledDataSorting||ht.setData(ht.options.data,!1)})},yt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(ht,et){return ht.linkedSeries.length||et.linkedSeries.length?et.linkedSeries.length-ht.linkedSeries.length:0})},yt.prototype.orderSeries=function(ht){var et=this.series;ht=ht||0;for(var at=et.length;ht<at;++ht)et[ht]&&(et[ht].index=ht,et[ht].name=et[ht].getName())},yt.prototype.isInsidePlot=function(ht,et,at){at===void 0&&(at={});var dt=this.inverted,vt=this.plotBox,Ct=this.plotLeft,xt=this.plotTop,wt=this.scrollablePlotBox,Mt=0,St=0;at.visiblePlotOnly&&this.scrollingContainer&&(Mt=(St=this.scrollingContainer).scrollLeft,St=St.scrollTop);var kt=at.series;if(vt=at.visiblePlotOnly&&wt||vt,ht={x:wt=at.inverted?et:ht,y:et=at.inverted?ht:et,isInsidePlot:!0,options:at},!at.ignoreX){var Lt=kt&&(dt&&!this.polar?kt.yAxis:kt.xAxis)||{pos:Ct,len:1/0};(wt=at.paneCoordinates?Lt.pos+wt:Ct+wt)>=Math.max(Mt+Ct,Lt.pos)&&wt<=Math.min(Mt+Ct+vt.width,Lt.pos+Lt.len)||(ht.isInsidePlot=!1)}return!at.ignoreY&&ht.isInsidePlot&&(dt=at.axis&&!at.axis.isXAxis&&at.axis||kt&&(dt?kt.xAxis:kt.yAxis)||{pos:xt,len:1/0},(at=at.paneCoordinates?dt.pos+et:xt+et)>=Math.max(St+xt,dt.pos)&&at<=Math.min(St+xt+vt.height,dt.pos+dt.len)||(ht.isInsidePlot=!1)),_(this,"afterIsInsidePlot",ht),ht.isInsidePlot},yt.prototype.redraw=function(ht){_(this,"beforeRedraw");var et=this.hasCartesianSeries?this.axes:this.colorAxis||[],at=this.series,dt=this.pointer,vt=this.legend,Ct=this.userOptions.legend,xt=this.renderer,wt=xt.isHidden(),Mt=[],St=this.isDirtyBox,kt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&ht,this),wt&&this.temporaryDisplay(),this.layOutTitles(),ht=at.length;ht--;){var Lt=at[ht];if(Lt.options.stacking||Lt.options.centerInCategory){var Pt=!0;if(Lt.isDirty){var Dt=!0;break}}}if(Dt)for(ht=at.length;ht--;)(Lt=at[ht]).options.stacking&&(Lt.isDirty=!0);at.forEach(function(jt){jt.isDirty&&(jt.options.legendType==="point"?(typeof jt.updateTotals=="function"&&jt.updateTotals(),kt=!0):Ct&&(Ct.labelFormatter||Ct.labelFormat)&&(kt=!0)),jt.isDirtyData&&_(jt,"updatedData")}),kt&&vt&&vt.options.enabled&&(vt.render(),this.isDirtyLegend=!1),Pt&&this.getStacks(),et.forEach(function(jt){jt.updateNames(),jt.setScale()}),this.getMargins(),et.forEach(function(jt){jt.isDirty&&(St=!0)}),et.forEach(function(jt){var Ot=jt.min+","+jt.max;jt.extKey!==Ot&&(jt.extKey=Ot,Mt.push(function(){_(jt,"afterSetExtremes",A(jt.eventArgs,jt.getExtremes())),delete jt.eventArgs})),(St||Pt)&&jt.redraw()}),St&&this.drawChartBox(),_(this,"predraw"),at.forEach(function(jt){(St||jt.isDirty)&&jt.visible&&jt.redraw(),jt.isDirtyData=!1}),dt&&dt.reset(!0),xt.draw(),_(this,"redraw"),_(this,"render"),wt&&this.temporaryDisplay(!0),Mt.forEach(function(jt){jt.call()})},yt.prototype.get=function(ht){function et(Ct){return Ct.id===ht||Ct.options&&Ct.options.id===ht}for(var at=this.series,dt=N(this.axes,et)||N(this.series,et),vt=0;!dt&&vt<at.length;vt++)dt=N(at[vt].points||[],et);return dt},yt.prototype.getAxes=function(){var ht=this,et=this.options,at=et.xAxis=gt(et.xAxis||{});et=et.yAxis=gt(et.yAxis||{}),_(this,"getAxes"),at.forEach(function(dt,vt){dt.index=vt,dt.isX=!0}),et.forEach(function(dt,vt){dt.index=vt}),at.concat(et).forEach(function(dt){new R(ht,dt)}),_(this,"afterGetAxes")},yt.prototype.getSelectedPoints=function(){return this.series.reduce(function(ht,et){return et.getPointsCollection().forEach(function(at){Q(at.selectedStaging,at.selected)&&ht.push(at)}),ht},[])},yt.prototype.getSelectedSeries=function(){return this.series.filter(function(ht){return ht.selected})},yt.prototype.setTitle=function(ht,et,at){this.applyDescription("title",ht),this.applyDescription("subtitle",et),this.applyDescription("caption",void 0),this.layOutTitles(at)},yt.prototype.applyDescription=function(ht,et){var at=this,dt=ht==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};dt=this.options[ht]=G(!this.styledMode&&{style:dt},this.options[ht],et);var vt=this[ht];vt&&et&&(this[ht]=vt=vt.destroy()),dt&&!vt&&((vt=this.renderer.text(dt.text,0,0,dt.useHTML).attr({align:dt.align,class:"highcharts-"+ht,zIndex:dt.zIndex||4}).add()).update=function(Ct){at[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[ht]](Ct)},this.styledMode||vt.css(dt.style),this[ht]=vt)},yt.prototype.layOutTitles=function(ht){var et=[0,0,0],at=this.renderer,dt=this.spacingBox;["title","subtitle","caption"].forEach(function(Ct){var xt,wt=this[Ct],Mt=this.options[Ct],St=Mt.verticalAlign||"top";if(Ct=Ct==="title"?St==="top"?-3:0:St==="top"?et[0]+2:0,wt){this.styledMode||(xt=Mt.style&&Mt.style.fontSize),xt=at.fontMetrics(xt,wt).b,wt.css({width:(Mt.width||dt.width+(Mt.widthAdjust||0))+"px"});var kt=Math.round(wt.getBBox(Mt.useHTML).height);wt.align(A({y:St==="bottom"?xt:Ct+xt,height:kt},Mt),!1,"spacingBox"),Mt.floating||(St==="top"?et[0]=Math.ceil(et[0]+kt):St==="bottom"&&(et[2]=Math.ceil(et[2]+kt)))}},this),et[0]&&(this.options.title.verticalAlign||"top")==="top"&&(et[0]+=this.options.title.margin),et[2]&&this.options.caption.verticalAlign==="bottom"&&(et[2]+=this.options.caption.margin);var vt=!this.titleOffset||this.titleOffset.join(",")!==et.join(",");this.titleOffset=et,_(this,"afterLayOutTitles"),!this.isDirtyBox&&vt&&(this.isDirtyBox=this.isDirtyLegend=vt,this.hasRendered&&Q(ht,!0)&&this.isDirtyBox&&this.redraw())},yt.prototype.getChartSize=function(){var ht=this.options.chart,et=ht.width;ht=ht.height;var at=this.renderTo;T(et)||(this.containerWidth=L(at,"width")),T(ht)||(this.containerHeight=L(at,"height")),this.chartWidth=Math.max(0,et||this.containerWidth||600),this.chartHeight=Math.max(0,rt(ht,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},yt.prototype.temporaryDisplay=function(ht){var et=this.renderTo;if(ht)for(;et&&et.style;)et.hcOrigStyle&&(b(et,et.hcOrigStyle),delete et.hcOrigStyle),et.hcOrigDetached&&(r.body.removeChild(et),et.hcOrigDetached=!1),et=et.parentNode;else for(;et&&et.style&&(r.body.contains(et)||et.parentNode||(et.hcOrigDetached=!0,r.body.appendChild(et)),(L(et,"display",!1)==="none"||et.hcOricDetached)&&(et.hcOrigStyle={display:et.style.display,height:et.style.height,overflow:et.style.overflow},ht={display:"block",overflow:"hidden"},et!==this.renderTo&&(ht.height=0),b(et,ht),et.offsetWidth||et.style.setProperty("display","block","important")),(et=et.parentNode)!==r.body););},yt.prototype.setClassName=function(ht){this.container.className="highcharts-container "+(ht||"")},yt.prototype.getContainer=function(){var ht,et=this.options,at=et.chart,dt=bt(),vt=this.renderTo;vt||(this.renderTo=vt=at.renderTo),X(vt)&&(this.renderTo=vt=r.getElementById(vt)),vt||C(13,!0,this);var Ct=J(s(vt,"data-highcharts-chart"));j(Ct)&&g[Ct]&&g[Ct].hasRendered&&g[Ct].destroy(),s(vt,"data-highcharts-chart",this.index),vt.innerHTML=f.emptyHTML,at.skipClone||vt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),Ct=this.chartWidth;var xt=this.chartHeight;if(b(vt,{overflow:"hidden"}),this.styledMode||(ht=A({position:"relative",overflow:"hidden",width:Ct+"px",height:xt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},at.style||{})),this.container=dt=l("div",{id:dt},ht,vt),this._cursor=dt.style.cursor,this.renderer=new(at.renderer||!t?E.getRendererType(at.renderer):P)(dt,Ct,xt,void 0,at.forExport,et.exporting&&et.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(at.className),this.styledMode)for(var wt in et.defs)this.renderer.definition(et.defs[wt]);else this.renderer.setStyle(at.style);this.renderer.chartIndex=this.index,_(this,"afterGetContainer")},yt.prototype.getMargins=function(ht){var et=this.spacing,at=this.margin,dt=this.titleOffset;this.resetMargins(),dt[0]&&!T(at[0])&&(this.plotTop=Math.max(this.plotTop,dt[0]+et[0])),dt[2]&&!T(at[2])&&(this.marginBottom=Math.max(this.marginBottom,dt[2]+et[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(at,et),_(this,"getMargins"),ht||this.getAxisMargins()},yt.prototype.getAxisMargins=function(){var ht=this,et=ht.axisOffset=[0,0,0,0],at=ht.colorAxis,dt=ht.margin,vt=function(Ct){Ct.forEach(function(xt){xt.visible&&xt.getOffset()})};ht.hasCartesianSeries?vt(ht.axes):at&&at.length&&vt(at),a.forEach(function(Ct,xt){T(dt[xt])||(ht[Ct]+=et[xt])}),ht.setChartSize()},yt.prototype.reflow=function(ht){var et=this,at=et.options.chart,dt=et.renderTo,vt=T(at.width)&&T(at.height),Ct=at.width||L(dt,"width");at=at.height||L(dt,"height"),dt=ht?ht.target:i,delete et.pointer.chartPosition,vt||et.isPrinting||!Ct||!at||dt!==i&&dt!==r||(Ct===et.containerWidth&&at===et.containerHeight||(h.clearTimeout(et.reflowTimeout),et.reflowTimeout=mt(function(){et.container&&et.setSize(void 0,void 0,!1)},ht?100:0)),et.containerWidth=Ct,et.containerHeight=at)},yt.prototype.setReflow=function(ht){var et=this;ht===!1||this.unbindReflow?ht===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(at){et.options&&et.reflow(at)}),e(this,"destroy",this.unbindReflow))},yt.prototype.setSize=function(ht,et,at){var dt=this,vt=dt.renderer;dt.isResizing+=1,v(at,dt),at=vt.globalAnimation,dt.oldChartHeight=dt.chartHeight,dt.oldChartWidth=dt.chartWidth,ht!==void 0&&(dt.options.chart.width=ht),et!==void 0&&(dt.options.chart.height=et),dt.getChartSize(),dt.styledMode||(at?m:b)(dt.container,{width:dt.chartWidth+"px",height:dt.chartHeight+"px"},at),dt.setChartSize(!0),vt.setSize(dt.chartWidth,dt.chartHeight,at),dt.axes.forEach(function(Ct){Ct.isDirty=!0,Ct.setScale()}),dt.isDirtyLegend=!0,dt.isDirtyBox=!0,dt.layOutTitles(),dt.getMargins(),dt.redraw(at),dt.oldChartHeight=null,_(dt,"resize"),mt(function(){dt&&_(dt,"endResize",null,function(){--dt.isResizing})},u(at).duration)},yt.prototype.setChartSize=function(ht){var et,at,dt,vt,Ct=this.inverted,xt=this.renderer,wt=this.chartWidth,Mt=this.chartHeight,St=this.options.chart,kt=this.spacing,Lt=this.clipOffset;this.plotLeft=et=Math.round(this.plotLeft),this.plotTop=at=Math.round(this.plotTop),this.plotWidth=dt=Math.max(0,Math.round(wt-et-this.marginRight)),this.plotHeight=vt=Math.max(0,Math.round(Mt-at-this.marginBottom)),this.plotSizeX=Ct?vt:dt,this.plotSizeY=Ct?dt:vt,this.plotBorderWidth=St.plotBorderWidth||0,this.spacingBox=xt.spacingBox={x:kt[3],y:kt[0],width:wt-kt[3]-kt[1],height:Mt-kt[0]-kt[2]},this.plotBox=xt.plotBox={x:et,y:at,width:dt,height:vt},Ct=2*Math.floor(this.plotBorderWidth/2),wt=Math.ceil(Math.max(Ct,Lt[3])/2),Mt=Math.ceil(Math.max(Ct,Lt[0])/2),this.clipBox={x:wt,y:Mt,width:Math.floor(this.plotSizeX-Math.max(Ct,Lt[1])/2-wt),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(Ct,Lt[2])/2-Mt))},ht||(this.axes.forEach(function(Pt){Pt.setAxisSize(),Pt.setAxisTranslation()}),xt.alignElements()),_(this,"afterSetChartSize",{skipAxes:ht})},yt.prototype.resetMargins=function(){_(this,"resetMargins");var ht=this,et=ht.options.chart;["margin","spacing"].forEach(function(at){var dt=et[at],vt=Y(dt)?dt:[dt,dt,dt,dt];["Top","Right","Bottom","Left"].forEach(function(Ct,xt){ht[at][xt]=Q(et[at+Ct],vt[xt])})}),a.forEach(function(at,dt){ht[at]=Q(ht.margin[dt],ht.spacing[dt])}),ht.axisOffset=[0,0,0,0],ht.clipOffset=[0,0,0,0]},yt.prototype.drawChartBox=function(){var ht,et=this.options.chart,at=this.renderer,dt=this.chartWidth,vt=this.chartHeight,Ct=this.styledMode,xt=this.plotBGImage,wt=et.backgroundColor,Mt=et.plotBackgroundColor,St=et.plotBackgroundImage,kt=this.plotLeft,Lt=this.plotTop,Pt=this.plotWidth,Dt=this.plotHeight,jt=this.plotBox,Ot=this.clipRect,It=this.clipBox,Nt=this.chartBackground,Zt=this.plotBackground,zt=this.plotBorder,Ht="animate";if(Nt||(this.chartBackground=Nt=at.rect().addClass("highcharts-background").add(),Ht="attr"),Ct)var Kt=ht=Nt.strokeWidth();else ht=(Kt=et.borderWidth||0)+(et.shadow?8:0),wt={fill:wt||"none"},(Kt||Nt["stroke-width"])&&(wt.stroke=et.borderColor,wt["stroke-width"]=Kt),Nt.attr(wt).shadow(et.shadow);Nt[Ht]({x:ht/2,y:ht/2,width:dt-ht-Kt%2,height:vt-ht-Kt%2,r:et.borderRadius}),Ht="animate",Zt||(Ht="attr",this.plotBackground=Zt=at.rect().addClass("highcharts-plot-background").add()),Zt[Ht](jt),Ct||(Zt.attr({fill:Mt||"none"}).shadow(et.plotShadow),St&&(xt?(St!==xt.attr("href")&&xt.attr("href",St),xt.animate(jt)):this.plotBGImage=at.image(St,kt,Lt,Pt,Dt).add())),Ot?Ot.animate({width:It.width,height:It.height}):this.clipRect=at.clipRect(It),Ht="animate",zt||(Ht="attr",this.plotBorder=zt=at.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Ct||zt.attr({stroke:et.plotBorderColor,"stroke-width":et.plotBorderWidth||0,fill:"none"}),zt[Ht](zt.crisp({x:kt,y:Lt,width:Pt,height:Dt},-zt.strokeWidth())),this.isDirtyBox=!1,_(this,"afterDrawChartBox")},yt.prototype.propFromSeries=function(){var ht,et,at,dt=this,vt=dt.options.chart,Ct=dt.options.series;["inverted","angular","polar"].forEach(function(xt){for(et=o[vt.type||vt.defaultSeriesType],at=vt[xt]||et&&et.prototype[xt],ht=Ct&&Ct.length;!at&&ht--;)(et=o[Ct[ht].type])&&et.prototype[xt]&&(at=!0);dt[xt]=at})},yt.prototype.linkSeries=function(){var ht=this,et=ht.series;et.forEach(function(at){at.linkedSeries.length=0}),et.forEach(function(at){var dt=at.options.linkedTo;X(dt)&&(dt=dt===":previous"?ht.series[at.index-1]:ht.get(dt))&&dt.linkedParent!==at&&(dt.linkedSeries.push(at),at.linkedParent=dt,dt.enabledDataSorting&&at.setDataSortingOptions(),at.visible=Q(at.options.visible,dt.options.visible,at.visible))}),_(this,"afterLinkSeries")},yt.prototype.renderSeries=function(){this.series.forEach(function(ht){ht.translate(),ht.render()})},yt.prototype.renderLabels=function(){var ht=this,et=ht.options.labels;et.items&&et.items.forEach(function(at){var dt=A(et.style,at.style),vt=J(dt.left)+ht.plotLeft,Ct=J(dt.top)+ht.plotTop+12;delete dt.left,delete dt.top,ht.renderer.text(at.html,vt,Ct).attr({zIndex:2}).css(dt).add()})},yt.prototype.render=function(){var ht=this.axes,et=this.colorAxis,at=this.renderer,dt=this.options,vt=function(St){St.forEach(function(kt){kt.visible&&kt.render()})},Ct=0;this.setTitle(),this.legend=new U(this,dt.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),dt=this.plotWidth,ht.some(function(St){if(St.horiz&&St.visible&&St.options.labels.enabled&&St.series.length)return Ct=21,!0});var xt=this.plotHeight=Math.max(this.plotHeight-Ct,0);ht.forEach(function(St){St.setScale()}),this.getAxisMargins();var wt=1.1<dt/this.plotWidth,Mt=1.05<xt/this.plotHeight;(wt||Mt)&&(ht.forEach(function(St){(St.horiz&&wt||!St.horiz&&Mt)&&St.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?vt(ht):et&&et.length&&vt(et),this.seriesGroup||(this.seriesGroup=at.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},yt.prototype.addCredits=function(ht){var et=this,at=G(!0,this.options.credits,ht);at.enabled&&!this.credits&&(this.credits=this.renderer.text(at.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){at.href&&(i.location.href=at.href)}).attr({align:at.position.align,zIndex:8}),et.styledMode||this.credits.css(at.style),this.credits.add().align(at.position),this.credits.update=function(dt){et.credits=et.credits.destroy(),et.addCredits(dt)})},yt.prototype.destroy=function(){var ht,et=this,at=et.axes,dt=et.series,vt=et.container,Ct=vt&&vt.parentNode;for(_(et,"destroy"),et.renderer.forExport?d(g,et):g[et.index]=void 0,Z.chartCount--,et.renderTo.removeAttribute("data-highcharts-chart"),lt(et),ht=at.length;ht--;)at[ht]=at[ht].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ht=dt.length;ht--;)dt[ht]=dt[ht].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(xt){var wt=et[xt];wt&&wt.destroy&&(et[xt]=wt.destroy())}),vt&&(vt.innerHTML=f.emptyHTML,lt(vt),Ct&&D(vt)),q(et,function(xt,wt){delete et[wt]})},yt.prototype.firstRender=function(){var ht=this,et=ht.options;ht.isReadyToRender&&!ht.isReadyToRender()||(ht.getContainer(),ht.resetMargins(),ht.setChartSize(),ht.propFromSeries(),ht.getAxes(),(O(et.series)?et.series:[]).forEach(function(at){ht.initSeries(at)}),ht.linkSeries(),ht.setSeriesData(),_(ht,"beforeRender"),I&&(z.isRequired()?ht.pointer=new z(ht,et):ht.pointer=new I(ht,et)),ht.render(),ht.pointer.getChartPosition(),ht.renderer.imgCount||ht.hasLoaded||ht.onload(),ht.temporaryDisplay(!0))},yt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(ht){ht&&this.index!==void 0&&ht.apply(this,[this])},this),_(this,"load"),_(this,"render"),T(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},yt.prototype.warnIfA11yModuleNotLoaded=function(){var ht=this.options,et=this.title;ht&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(et&&et.element.textContent||"").replace(/</g,"&lt;")}),ht.accessibility&&ht.accessibility.enabled===!1||C('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},yt.prototype.addSeries=function(ht,et,at){var dt,vt=this;return ht&&(et=Q(et,!0),_(vt,"addSeries",{options:ht},function(){dt=vt.initSeries(ht),vt.isDirtyLegend=!0,vt.linkSeries(),dt.enabledDataSorting&&dt.setData(ht.data,!1),_(vt,"afterAddSeries",{series:dt}),et&&vt.redraw(at)})),dt},yt.prototype.addAxis=function(ht,et,at,dt){return this.createAxis(et?"xAxis":"yAxis",{axis:ht,redraw:at,animation:dt})},yt.prototype.addColorAxis=function(ht,et,at){return this.createAxis("colorAxis",{axis:ht,redraw:et,animation:at})},yt.prototype.createAxis=function(ht,et){return ht=new R(this,G(et.axis,{index:this[ht].length,isX:ht==="xAxis"})),Q(et.redraw,!0)&&this.redraw(et.animation),ht},yt.prototype.showLoading=function(ht){var et=this,at=et.options,dt=at.loading,vt=function(){Ct&&b(Ct,{left:et.plotLeft+"px",top:et.plotTop+"px",width:et.plotWidth+"px",height:et.plotHeight+"px"})},Ct=et.loadingDiv,xt=et.loadingSpan;Ct||(et.loadingDiv=Ct=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,et.container)),xt||(et.loadingSpan=xt=l("span",{className:"highcharts-loading-inner"},null,Ct),e(et,"redraw",vt)),Ct.className="highcharts-loading",f.setElementHTML(xt,Q(ht,at.lang.loading,"")),et.styledMode||(b(Ct,A(dt.style,{zIndex:10})),b(xt,dt.labelStyle),et.loadingShown||(b(Ct,{opacity:0,display:""}),m(Ct,{opacity:dt.style.opacity||.5},{duration:dt.showDuration||0}))),et.loadingShown=!0,vt()},yt.prototype.hideLoading=function(){var ht=this.options,et=this.loadingDiv;et&&(et.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(et,{opacity:0},{duration:ht.loading.hideDuration||100,complete:function(){b(et,{display:"none"})}})),this.loadingShown=!1},yt.prototype.update=function(ht,et,at,dt){var vt,Ct,xt=this,wt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Mt=ht.isResponsiveOptions,St=[];_(xt,"update",{options:ht}),Mt||xt.setResponsive(!1,!0),ht=n(ht,xt.options),xt.userOptions=G(xt.userOptions,ht);var kt=ht.chart;if(kt){if(G(!0,xt.options.chart,kt),"className"in kt&&xt.setClassName(kt.className),"reflow"in kt&&xt.setReflow(kt.reflow),"inverted"in kt||"polar"in kt||"type"in kt){xt.propFromSeries();var Lt=!0}"alignTicks"in kt&&(Lt=!0),"events"in kt&&p(this,kt),q(kt,function(Pt,Dt){xt.propsRequireUpdateSeries.indexOf("chart."+Dt)!==-1&&(vt=!0),xt.propsRequireDirtyBox.indexOf(Dt)!==-1&&(xt.isDirtyBox=!0),xt.propsRequireReflow.indexOf(Dt)!==-1&&(Mt?xt.isDirtyBox=!0:Ct=!0)}),!xt.styledMode&&kt.style&&xt.renderer.setStyle(xt.options.chart.style||{})}!xt.styledMode&&ht.colors&&(this.options.colors=ht.colors),ht.time&&(this.time===S&&(this.time=new y(ht.time)),G(!0,xt.options.time,ht.time)),q(ht,function(Pt,Dt){xt[Dt]&&typeof xt[Dt].update=="function"?xt[Dt].update(Pt,!1):typeof xt[wt[Dt]]=="function"?xt[wt[Dt]](Pt):Dt!=="colors"&&xt.collectionsWithUpdate.indexOf(Dt)===-1&&G(!0,xt.options[Dt],ht[Dt]),Dt!=="chart"&&xt.propsRequireUpdateSeries.indexOf(Dt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(Pt){if(ht[Pt]){var Dt=[];xt[Pt].forEach(function(jt,Ot){jt.options.isInternal||Dt.push(Q(jt.options.index,Ot))}),gt(ht[Pt]).forEach(function(jt,Ot){var It,Nt=T(jt.id);Nt&&(It=xt.get(jt.id)),!It&&xt[Pt]&&(It=xt[Pt][Dt?Dt[Ot]:Ot])&&Nt&&T(It.options.id)&&(It=void 0),It&&It.coll===Pt&&(It.update(jt,!1),at&&(It.touched=!0)),!It&&at&&xt.collectionsWithInit[Pt]&&(xt.collectionsWithInit[Pt][0].apply(xt,[jt].concat(xt.collectionsWithInit[Pt][1]||[]).concat([!1])).touched=!0)}),at&&xt[Pt].forEach(function(jt){jt.touched||jt.options.isInternal?delete jt.touched:St.push(jt)})}}),St.forEach(function(Pt){Pt.chart&&Pt.remove&&Pt.remove(!1)}),Lt&&xt.axes.forEach(function(Pt){Pt.update({},!1)}),vt&&xt.getSeriesOrderByLinks().forEach(function(Pt){Pt.chart&&Pt.update({},!1)},this),Lt=kt&&kt.width,kt=kt&&(X(kt.height)?rt(kt.height,Lt||xt.chartWidth):kt.height),Ct||j(Lt)&&Lt!==xt.chartWidth||j(kt)&&kt!==xt.chartHeight?xt.setSize(Lt,kt,dt):Q(et,!0)&&xt.redraw(dt),_(xt,"afterUpdate",{options:ht,redraw:et,animation:dt})},yt.prototype.setSubtitle=function(ht,et){this.applyDescription("subtitle",ht),this.layOutTitles(et)},yt.prototype.setCaption=function(ht,et){this.applyDescription("caption",ht),this.layOutTitles(et)},yt.prototype.showResetZoom=function(){function ht(){et.zoomOut()}var et=this,at=w.lang,dt=et.options.chart.zooming.resetButton,vt=dt.theme,Ct=dt.relativeTo==="chart"||dt.relativeTo==="spacingBox"?null:"scrollablePlotBox";_(this,"beforeShowResetZoom",null,function(){et.resetZoomButton=et.renderer.button(at.resetZoom,null,null,ht,vt).attr({align:dt.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(dt.position,!1,Ct)}),_(this,"afterShowResetZoom")},yt.prototype.zoomOut=function(){_(this,"selection",{resetSelection:!0},this.zoom)},yt.prototype.zoom=function(ht){var et,at=this,dt=at.pointer,vt=!1;!ht||ht.resetSelection?(at.axes.forEach(function(xt){et=xt.zoom()}),dt.initiated=!1):ht.xAxis.concat(ht.yAxis).forEach(function(xt){var wt=xt.axis;(dt[wt.isXAxis?"zoomX":"zoomY"]&&T(dt.mouseDownX)&&T(dt.mouseDownY)&&at.isInsidePlot(dt.mouseDownX-at.plotLeft,dt.mouseDownY-at.plotTop,{axis:wt})||!T(at.inverted?dt.mouseDownX:dt.mouseDownY))&&(et=wt.zoom(xt.min,xt.max),wt.displayBtn&&(vt=!0))});var Ct=at.resetZoomButton;vt&&!Ct?at.showResetZoom():!vt&&Y(Ct)&&(at.resetZoomButton=Ct.destroy()),et&&at.redraw(Q(at.options.chart.animation,ht&&ht.animation,100>at.pointCount))},yt.prototype.pan=function(ht,et){var at=this,dt=at.hoverPoints;et=typeof et=="object"?et:{enabled:et,type:"x"};var vt=at.options.chart;vt&&vt.panning&&(vt.panning=et);var Ct,xt=et.type;_(this,"pan",{originalEvent:ht},function(){dt&&dt.forEach(function(St){St.setState()});var wt=at.xAxis;xt==="xy"?wt=wt.concat(at.yAxis):xt==="y"&&(wt=at.yAxis);var Mt={};wt.forEach(function(St){if(St.options.panningEnabled&&!St.options.isInternal){var kt=St.horiz,Lt=ht[kt?"chartX":"chartY"],Pt=at[kt=kt?"mouseDownX":"mouseDownY"],Dt=St.minPointOffset||0,jt=St.reversed&&!at.inverted||!St.reversed&&at.inverted?-1:1,Ot=St.getExtremes(),It=St.toValue(Pt-Lt,!0)+Dt*jt,Nt=St.toValue(Pt+St.len-Lt,!0)-(Dt*jt||St.isXAxis&&St.pointRangePadding||0),Zt=Nt<It;jt=St.hasVerticalPanning(),Pt=Zt?Nt:It,It=Zt?It:Nt;var zt=St.panningState;!jt||St.isXAxis||zt&&!zt.isDirty||St.series.forEach(function(Ht){var Kt=Ht.getProcessedData(!0);Kt=Ht.getExtremes(Kt.yData,!0),zt||(zt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(Kt.dataMin)&&j(Kt.dataMax)&&(zt.startMin=Math.min(Q(Ht.options.threshold,1/0),Kt.dataMin,zt.startMin),zt.startMax=Math.max(Q(Ht.options.threshold,-1/0),Kt.dataMax,zt.startMax))}),jt=Math.min(Q(zt&&zt.startMin,Ot.dataMin),Dt?Ot.min:St.toValue(St.toPixels(Ot.min)-St.minPixelPadding)),Nt=Math.max(Q(zt&&zt.startMax,Ot.dataMax),Dt?Ot.max:St.toValue(St.toPixels(Ot.max)+St.minPixelPadding)),St.panningState=zt,St.isOrdinal||(0<(Dt=jt-Pt)&&(It+=Dt,Pt=jt),0<(Dt=It-Nt)&&(It=Nt,Pt-=Dt),St.series.length&&Pt!==Ot.min&&It!==Ot.max&&Pt>=jt&&It<=Nt&&(St.setExtremes(Pt,It,!1,!1,{trigger:"pan"}),!at.resetZoomButton&&Pt!==jt&&It!==Nt&&xt.match("y")&&(at.showResetZoom(),St.displayBtn=!1),Ct=!0),Mt[kt]=Lt)}}),q(Mt,function(St,kt){at[kt]=St}),Ct&&at.redraw(!1),b(at.container,{cursor:"move"})})},yt}(),A(W.prototype,{callbacks:[],collectionsWithInit:{xAxis:[W.prototype.addAxis,[!0]],yAxis:[W.prototype.addAxis,[!1]],series:[W.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),W}),B(it,"Core/Legend/LegendSymbol.js",[it["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.merge,$=W.pick;return function(Z){Z.drawLineMarker=function(U){var z=this.legendItem=this.legendItem||{},I=this.options,E=U.symbolWidth,M=U.symbolHeight,P=M/2,y=this.chart.renderer,h=z.group;U=U.baseline-Math.round(.3*U.fontMetrics.b);var f={},m=I.marker,u=0;this.chart.styledMode||(f={"stroke-width":Math.min(I.lineWidth||0,24)},I.dashStyle?f.dashstyle=I.dashStyle:I.linecap!=="square"&&(f["stroke-linecap"]="round")),z.line=y.path().addClass("highcharts-graph").attr(f).add(h),f["stroke-linecap"]&&(u=Math.min(z.line.strokeWidth(),E)/2),z.line.attr({d:[["M",u,U],["L",E-u,U]]}),m&&m.enabled!==!1&&E&&(I=Math.min($(m.radius,P),P),this.symbol.indexOf("url")===0&&(m=V(m,{width:M,height:M}),I=0),z.symbol=z=y.symbol(this.symbol,E/2-I,U-I,2*I,2*I,H({context:"legend"},m)).addClass("highcharts-point").add(h),z.isMarker=!0)},Z.drawRectangle=function(U,z){z=z.legendItem||{};var I=U.symbolHeight,E=U.options.squareSymbol;z.symbol=this.chart.renderer.rect(E?(U.symbolWidth-I)/2:0,U.baseline-I+1,E?I:U.symbolWidth,I,$(U.options.symbolRadius,I/2)).addClass("highcharts-point").attr({zIndex:3}).add(z.group)}}(R||(R={})),R}),B(it,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var W=this.series.chart.numberFormatter;return typeof this.y!="number"?"":W(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),B(it,"Core/Series/Series.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Defaults.js"],it["Core/Foundation.js"],it["Core/Globals.js"],it["Core/Legend/LegendSymbol.js"],it["Core/Series/Point.js"],it["Core/Series/SeriesDefaults.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M=W.animObject,P=W.setAnimation,y=R.defaultOptions,h=H.registerEventOptions,f=V.hasTouch,m=V.svg,u=V.win,v=z.seriesTypes,w=E.arrayMax,S=E.arrayMin,x=E.clamp,p=E.cleanRecursively,g=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,l=E.isNumber,b=E.isString,T=E.merge,D=E.objectEach,d=E.pick,C=E.removeEvent,A=E.splat,N=E.syncTimeout;return W=function(){function _(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return _.prototype.init=function(L,O){e(this,"init",{options:O});var j=this,Y=L.series;this.eventsToUnbind=[],j.chart=L,j.options=j.setOptions(O),O=j.options,j.linkedSeries=[],j.bindAxes(),i(j,{name:O.name,state:"",visible:O.visible!==!1,selected:O.selected===!0}),h(this,O);var X,G=O.events;(G&&G.click||O.point&&O.point.events&&O.point.events.click||O.allowPointSelect)&&(L.runTrackerClick=!0),j.getColor(),j.getSymbol(),j.parallelArrays.forEach(function(q){j[q+"Data"]||(j[q+"Data"]=[])}),j.isCartesian&&(L.hasCartesianSeries=!0),Y.length&&(X=Y[Y.length-1]),j._i=d(X&&X._i,-1)+1,j.opacity=j.options.opacity,L.orderSeries(this.insert(Y)),O.dataSorting&&O.dataSorting.enabled?j.setDataSortingOptions():j.points||j.data||j.setData(O.data,!1),e(this,"afterInit")},_.prototype.is=function(L){return v[L]&&this instanceof v[L]},_.prototype.insert=function(L){var O,j=this.options.index;if(l(j)){for(O=L.length;O--;)if(j>=d(L[O].options.index,L[O]._i)){L.splice(O+1,0,this);break}O===-1&&L.unshift(this),O+=1}else L.push(this);return d(O,L.length-1)},_.prototype.bindAxes=function(){var L,O=this,j=O.options,Y=O.chart;e(this,"bindAxes",null,function(){(O.axisTypes||[]).forEach(function(X){var G=0;Y[X].forEach(function(q){L=q.options,(j[X]===G&&!L.isInternal||j[X]!==void 0&&j[X]===L.id||j[X]===void 0&&L.index===0)&&(O.insert(q.series),O[X]=q,q.isDirty=!0),L.isInternal||G++}),O[X]||O.optionalAxis===X||t(18,!0,Y)})}),e(this,"afterBindAxes")},_.prototype.updateParallelArrays=function(L,O){var j=L.series,Y=arguments,X=l(O)?function(G){var q=G==="y"&&j.toYData?j.toYData(L):L[G];j[G+"Data"][O]=q}:function(G){Array.prototype[O].apply(j[G+"Data"],Array.prototype.slice.call(Y,2))};j.parallelArrays.forEach(X)},_.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},_.prototype.autoIncrement=function(L){var O,j=this.options,Y=j.pointIntervalUnit,X=j.relativeXValue,G=this.chart.time,q=this.xIncrement;return q=d(q,j.pointStart,0),this.pointInterval=O=d(this.pointInterval,j.pointInterval,1),X&&l(L)&&(O*=L),Y&&(j=new G.Date(q),Y==="day"?G.set("Date",j,G.get("Date",j)+O):Y==="month"?G.set("Month",j,G.get("Month",j)+O):Y==="year"&&G.set("FullYear",j,G.get("FullYear",j)+O),O=j.getTime()-q),X&&l(L)?q+O:(this.xIncrement=q+O,q)},_.prototype.setDataSortingOptions=function(){var L=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(L.pointRange)||(L.pointRange=1)},_.prototype.setOptions=function(L){var O=this.chart,j=O.options,Y=j.plotOptions,X=O.userOptions||{};L=T(L),O=O.styledMode;var G={plotOptions:Y,userOptions:L};e(this,"setOptions",G);var q=G.plotOptions[this.type],Q=X.plotOptions||{};return this.userOptions=G.userOptions,X=T(q,Y.series,X.plotOptions&&X.plotOptions[this.type],L),this.tooltipOptions=T(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,j.tooltip.userOptions,Y.series&&Y.series.tooltip,Y[this.type].tooltip,L.tooltip),this.stickyTracking=d(L.stickyTracking,Q[this.type]&&Q[this.type].stickyTracking,Q.series&&Q.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||X.stickyTracking),q.marker===null&&delete X.marker,this.zoneAxis=X.zoneAxis,Y=this.zones=(X.zones||[]).slice(),!X.negativeColor&&!X.negativeFillColor||X.zones||(j={value:X[this.zoneAxis+"Threshold"]||X.threshold||0,className:"highcharts-negative"},O||(j.color=X.negativeColor,j.fillColor=X.negativeFillColor),Y.push(j)),Y.length&&r(Y[Y.length-1].value)&&Y.push(O?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:X}),X},_.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},_.prototype.getCyclic=function(L,O,j){var Y=this.chart,X=this.userOptions,G=L+"Index",q=L+"Counter",Q=j?j.length:d(Y.options.chart[L+"Count"],Y[L+"Count"]);if(!O){var J=d(X[G],X["_"+G]);r(J)||(Y.series.length||(Y[q]=0),X["_"+G]=J=Y[q]%Q,Y[q]+=1),j&&(O=j[J])}J!==void 0&&(this[G]=J),this[L]=O},_.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},_.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},_.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},_.prototype.findPointIndex=function(L,O){var j,Y,X=L.id,G=L.x,q=this.points,Q=this.options.dataSorting;if(X)(Q=this.chart.get(X))instanceof Z&&(j=Q);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(j=function(rt){return!rt.touched&&rt.index===L.index},Q&&Q.matchByName?j=function(rt){return!rt.touched&&rt.name===L.name}:this.options.relativeXValue&&(j=function(rt){return!rt.touched&&rt.options.x===L.x}),!(j=o(q,j))))return;if(j){var J=j&&j.index;J!==void 0&&(Y=!0)}return J===void 0&&l(G)&&(J=this.xData.indexOf(G,O)),J!==-1&&J!==void 0&&this.cropped&&(J=J>=this.cropStart?J-this.cropStart:J),!Y&&l(J)&&q[J]&&q[J].touched&&(J=void 0),J},_.prototype.updateData=function(L,O){var j,Y,X,G=this.options,q=G.dataSorting,Q=this.points,J=[],rt=this.requireSorting,lt=L.length===Q.length,gt=!0;if(this.xIncrement=null,L.forEach(function(mt,bt){var yt=r(mt)&&this.pointClass.prototype.optionsToObject.call({series:this},mt)||{},ht=yt.x;yt.id||l(ht)?((yt=this.findPointIndex(yt,X))===-1||yt===void 0?J.push(mt):Q[yt]&&mt!==G.data[yt]?(Q[yt].update(mt,!1,null,!1),Q[yt].touched=!0,rt&&(X=yt+1)):Q[yt]&&(Q[yt].touched=!0),(!lt||bt!==yt||q&&q.enabled||this.hasDerivedData)&&(j=!0)):J.push(mt)},this),j)for(L=Q.length;L--;)(Y=Q[L])&&!Y.touched&&Y.remove&&Y.remove(!1,O);else!lt||q&&q.enabled?gt=!1:(L.forEach(function(mt,bt){mt!==Q[bt].y&&Q[bt].update&&Q[bt].update(mt,!1,null,!1)}),J.length=0);return Q.forEach(function(mt){mt&&(mt.touched=!1)}),!!gt&&(J.forEach(function(mt){this.addPoint(mt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)},_.prototype.setData=function(L,O,j,Y){O===void 0&&(O=!0);var X=this,G=X.points,q=G&&G.length||0,Q=X.options,J=X.chart,rt=Q.dataSorting,lt=X.xAxis,gt=Q.turboThreshold,mt=this.xData,bt=this.yData,yt=X.pointArrayMap;yt=yt&&yt.length;var ht,et=Q.keys,at=0,dt=1,vt=null;if(!J.options.chart.allowMutatingData){Q.data&&delete X.options.data,X.userOptions.data&&delete X.userOptions.data;var Ct=T(!0,L)}if(Ct=(L=Ct||L||[]).length,rt&&rt.enabled&&(L=this.sortData(L)),J.options.chart.allowMutatingData&&Y!==!1&&Ct&&q&&!X.cropped&&!X.hasGroupedData&&X.visible&&!X.boosted&&(ht=this.updateData(L,j)),!ht){if(X.xIncrement=null,X.colorCounter=0,this.parallelArrays.forEach(function(xt){X[xt+"Data"].length=0}),gt&&Ct>gt)if(vt=X.getFirstValidPoint(L),l(vt))for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else if(n(vt))if(yt)if(vt.length===yt)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[0],bt[j]=Y.slice(1,yt+1);else if(et&&(at=0<=(at=et.indexOf("x"))?at:0,dt=0<=(dt=et.indexOf("y"))?dt:1),vt.length===1&&(dt=0),at===dt)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j][dt];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[at],bt[j]=Y[dt];else t(12,!1,J);else for(j=0;j<Ct;j++)L[j]!==void 0&&(Y={series:X},X.pointClass.prototype.applyOptions.apply(Y,[L[j]]),X.updateParallelArrays(Y,j));for(bt&&b(bt[0])&&t(14,!0,J),X.data=[],X.options.data=X.userOptions.data=L,j=q;j--;)G[j]&&G[j].destroy&&G[j].destroy();lt&&(lt.minRange=lt.userMinRange),X.isDirty=J.isDirtyBox=!0,X.isDirtyData=!!G,j=!1}Q.legendType==="point"&&(this.processData(),this.generatePoints()),O&&J.redraw(j)},_.prototype.sortData=function(L){var O=this,j=O.options.dataSorting.sortKey||"y",Y=function(X,G){return r(G)&&X.pointClass.prototype.optionsToObject.call({series:X},G)||{}};return L.forEach(function(X,G){L[G]=Y(O,X),L[G].index=G},this),L.concat().sort(function(X,G){return X=s(j,X),(G=s(j,G))<X?-1:G>X?1:0}).forEach(function(X,G){X.x=G},this),O.linkedSeries&&O.linkedSeries.forEach(function(X){var G=X.options,q=G.data;G.dataSorting&&G.dataSorting.enabled||!q||(q.forEach(function(Q,J){q[J]=Y(X,Q),L[J]&&(q[J].x=L[J].x,q[J].index=J)}),X.setData(q,!1))}),L},_.prototype.getProcessedData=function(L){var O=this.xAxis,j=this.options,Y=j.cropThreshold,X=L||this.getExtremesFromAll||j.getExtremesFromAll,G=this.isCartesian;L=O&&O.val2lin,j=!(!O||!O.logarithmic);var q=0,Q=this.xData,J=this.yData,rt=this.requireSorting,lt=!1,gt=Q.length;if(O){var mt=(lt=O.getExtremes()).min,bt=lt.max;lt=!(!O.categories||O.names.length)}if(G&&this.sorted&&!X&&(!Y||gt>Y||this.forceCrop)){if(Q[gt-1]<mt||Q[0]>bt)Q=[],J=[];else if(this.yData&&(Q[0]<mt||Q[gt-1]>bt)){var yt=this.cropData(this.xData,this.yData,mt,bt);Q=yt.xData,J=yt.yData,q=yt.start,yt=!0}}for(Y=Q.length||1;--Y;)if(0<(O=j?L(Q[Y])-L(Q[Y-1]):Q[Y]-Q[Y-1])&&(ht===void 0||O<ht))var ht=O;else 0>O&&rt&&!lt&&(t(15,!1,this.chart),rt=!1);return{xData:Q,yData:J,cropped:yt,cropStart:q,closestPointRange:ht}},_.prototype.processData=function(L){var O=this.xAxis;if(this.isCartesian&&!this.isDirty&&!O.isDirty&&!this.yAxis.isDirty&&!L)return!1;L=this.getProcessedData(),this.cropped=L.cropped,this.cropStart=L.cropStart,this.processedXData=L.xData,this.processedYData=L.yData,this.closestPointRange=this.basePointRange=L.closestPointRange,e(this,"afterProcessData")},_.prototype.cropData=function(L,O,j,Y,X){var G,q=L.length,Q=0,J=q;for(X=d(X,this.cropShoulder),G=0;G<q;G++)if(L[G]>=j){Q=Math.max(0,G-X);break}for(j=G;j<q;j++)if(L[j]>Y){J=j+X;break}return{xData:L.slice(Q,J),yData:O.slice(Q,J),start:Q,end:J}},_.prototype.generatePoints=function(){var L=this.options,O=this.processedData||L.data,j=this.processedXData,Y=this.processedYData,X=this.pointClass,G=j.length,q=this.cropStart||0,Q=this.hasGroupedData,J=L.keys,rt=[];L=L.dataGrouping&&L.dataGrouping.groupAll?q:0;var lt,gt,mt=this.data;if(!mt&&!Q){var bt=[];bt.length=O.length,mt=this.data=bt}for(J&&Q&&(this.options.keys=!1),gt=0;gt<G;gt++){if(bt=q+gt,Q){var yt=new X().init(this,[j[gt]].concat(A(Y[gt])));yt.dataGroup=this.groupMap[L+gt],yt.dataGroup.options&&(yt.options=yt.dataGroup.options,i(yt,yt.dataGroup.options),delete yt.dataLabels)}else(yt=mt[bt])||O[bt]===void 0||(mt[bt]=yt=new X().init(this,O[bt],j[gt]));yt&&(yt.index=Q?L+gt:bt,rt[gt]=yt)}if(this.options.keys=J,mt&&(G!==(lt=mt.length)||Q))for(gt=0;gt<lt;gt++)gt!==q||Q||(gt+=G),mt[gt]&&(mt[gt].destroyElements(),mt[gt].plotX=void 0);this.data=mt,this.points=rt,e(this,"afterGeneratePoints")},_.prototype.getXExtremes=function(L){return{min:S(L),max:w(L)}},_.prototype.getExtremes=function(L,O){var j=this.xAxis,Y=this.yAxis,X=this.processedXData||this.xData,G=[],q=this.requireSorting?this.cropShoulder:0;Y=!!Y&&Y.positiveValuesOnly;var Q,J=0,rt=0,lt=0,gt=(L=L||this.stackedYData||this.processedYData||[]).length;if(j){var mt=j.getExtremes();J=mt.min,rt=mt.max}for(Q=0;Q<gt;Q++){var bt=X[Q];mt=L[Q];var yt=(l(mt)||n(mt))&&(mt.length||0<mt||!Y);if(bt=O||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!j||(X[Q+q]||bt)>=J&&(X[Q-q]||bt)<=rt,yt&&bt)if(yt=mt.length)for(;yt--;)l(mt[yt])&&(G[lt++]=mt[yt]);else G[lt++]=mt}return L={activeYData:G,dataMin:S(G),dataMax:w(G)},e(this,"afterGetExtremes",{dataExtremes:L}),L},_.prototype.applyExtremes=function(){var L=this.getExtremes();return this.dataMin=L.dataMin,this.dataMax=L.dataMax,L},_.prototype.getFirstValidPoint=function(L){for(var O=L.length,j=0,Y=null;Y===null&&j<O;)Y=L[j],j++;return Y},_.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var L,O,j=this.options,Y=j.stacking,X=this.xAxis,G=X.categories,q=this.enabledDataSorting,Q=this.yAxis,J=this.points,rt=J.length,lt=this.pointPlacementToXValue(),gt=!!lt,mt=j.threshold,bt=j.startFromThreshold?mt:0,yt=this.zoneAxis||"y",ht=Number.MAX_VALUE;for(L=0;L<rt;L++){var et=J[L],at=et.x,dt=void 0,vt=void 0,Ct=et.y,xt=et.low,wt=Y&&Q.stacking&&Q.stacking.stacks[(this.negStacks&&Ct<(bt?0:mt)?"-":"")+this.stackKey];if((Q.positiveValuesOnly&&!Q.validatePositiveValue(Ct)||X.positiveValuesOnly&&!X.validatePositiveValue(at))&&(et.isNull=!0),et.plotX=O=g(x(X.translate(at,0,0,0,1,lt,this.type==="flags"),-1e5,1e5)),Y&&this.visible&&wt&&wt[at]){var Mt=this.getStackIndicator(Mt,at,this.index);!et.isNull&&Mt.key&&(vt=(dt=wt[at]).points[Mt.key]),dt&&n(vt)&&(xt=vt[0],Ct=vt[1],xt===bt&&Mt.key===wt[at].base&&(xt=d(l(mt)?mt:Q.min)),Q.positiveValuesOnly&&r(xt)&&0>=xt&&(xt=void 0),et.total=et.stackTotal=d(dt.total),et.percentage=r(et.y)&&dt.total?et.y/dt.total*100:void 0,et.stackY=Ct,this.irregularWidths||dt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(et.yBottom=r(xt)?x(Q.translate(xt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Ct=this.dataModify.modifyValue(Ct,L)),et.plotY=void 0,l(Ct)&&(dt=Q.translate(Ct,!1,!0,!1,!0))!==void 0&&(et.plotY=x(dt,-1e5,1e5)),et.isInside=this.isPointInside(et),et.clientX=gt?g(X.translate(at,0,0,0,1,lt)):O,et.negative=et[yt]<(j[yt+"Threshold"]||mt||0),et.category=d(G&&G[et.x],et.x),!et.isNull&&et.visible!==!1){St!==void 0&&(ht=Math.min(ht,Math.abs(O-St)));var St=O}et.zone=this.zones.length?et.getZone():void 0,!et.graphic&&this.group&&q&&(et.isNew=!0)}this.closestPointRangePx=ht,e(this,"afterTranslate")},_.prototype.getValidPoints=function(L,O,j){var Y=this.chart;return(L||this.points||[]).filter(function(X){return!(O&&!Y.isInsidePlot(X.plotX,X.plotY,{inverted:Y.inverted}))&&X.visible!==!1&&(j||!X.isNull)})},_.prototype.getClipBox=function(){var L=this.chart,O=this.xAxis,j=this.yAxis,Y=T(L.clipBox);return O&&O.len!==L.plotSizeX&&(Y.width=O.len),j&&j.len!==L.plotSizeY&&(Y.height=j.len),Y},_.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},_.prototype.setClip=function(){var L=this.chart,O=this.group,j=this.markerGroup,Y=L.sharedClips;L=L.renderer;var X=this.getClipBox(),G=this.getSharedClipKey(),q=Y[G];q?q.animate(X):Y[G]=q=L.clipRect(X),O&&O.clip(this.options.clip===!1?void 0:q),j&&j.clip()},_.prototype.animate=function(L){var O=this.chart,j=this.group,Y=this.markerGroup,X=O.inverted,G=M(this.options.animation),q=[this.getSharedClipKey(),G.duration,G.easing,G.defer].join(),Q=O.sharedClips[q],J=O.sharedClips[q+"m"];if(L&&j)G=this.getClipBox(),Q?Q.attr("height",G.height):(G.width=0,X&&(G.x=O.plotHeight),Q=O.renderer.clipRect(G),O.sharedClips[q]=Q,J=O.renderer.clipRect({x:-99,y:-99,width:X?O.plotWidth+199:99,height:X?99:O.plotHeight+199}),O.sharedClips[q+"m"]=J),j.clip(Q),Y&&Y.clip(J);else if(Q&&!Q.hasClass("highcharts-animating")){O=this.getClipBox();var rt=G.step;Y&&Y.element.childNodes.length&&(G.step=function(lt,gt){rt&&rt.apply(gt,arguments),gt.prop==="width"&&J&&J.element&&J.attr(X?"height":"width",lt+99)}),Q.addClass("highcharts-animating").animate(O,G)}},_.prototype.afterAnimate=function(){var L=this;this.setClip(),D(this.chart.sharedClips,function(O,j,Y){O&&!L.chart.container.querySelector('[clip-path="url(#'.concat(O.id,')"]'))&&(O.destroy(),delete Y[j])}),this.finishedAnimating=!0,e(this,"afterAnimate")},_.prototype.drawPoints=function(L){L===void 0&&(L=this.points);var O,j,Y=this.chart,X=Y.styledMode,G=this.colorAxis,q=this.options.marker,Q=this[this.specialGroup||"markerGroup"],J=this.xAxis,rt=d(q.enabled,!(J&&!J.isRadial)||null,this.closestPointRangePx>=q.enabledThreshold*q.radius);if(q.enabled!==!1||this._hasPointMarkers)for(O=0;O<L.length;O++){var lt=L[O],gt=(j=lt.graphic)?"animate":"attr",mt=lt.marker||{},bt=!!lt.marker;if((rt&&mt.enabled===void 0||mt.enabled)&&!lt.isNull&&lt.visible!==!1){var yt=d(mt.symbol,this.symbol,"rect"),ht=this.markerAttribs(lt,lt.selected&&"select");this.enabledDataSorting&&(lt.startXPos=J.reversed?-(ht.width||0):J.width);var et=lt.isInside!==!1;!j&&et&&(0<(ht.width||0)||lt.hasImage)&&(lt.graphic=j=Y.renderer.symbol(yt,ht.x,ht.y,ht.width,ht.height,bt?mt:q).add(Q),this.enabledDataSorting&&Y.hasRendered&&(j.attr({x:lt.startXPos}),gt="animate")),j&&gt==="animate"&&j[et?"show":"hide"](et).animate(ht),j&&(mt=this.pointAttribs(lt,X||!lt.selected?void 0:"select"),X?G&&j.css({fill:mt.fill}):j[gt](mt)),j&&j.addClass(lt.getClassName(),!0)}else j&&(lt.graphic=j.destroy())}},_.prototype.markerAttribs=function(L,O){var j=this.options,Y=j.marker,X=L.marker||{},G=X.symbol||Y.symbol,q={},Q=d(X.radius,Y&&Y.radius);return O&&(Y=Y.states[O],O=X.states&&X.states[O],Q=d(O&&O.radius,Y&&Y.radius,Q&&Q+(Y&&Y.radiusPlus||0))),L.hasImage=G&&G.indexOf("url")===0,L.hasImage&&(Q=0),L=L.pos(),l(Q)&&L&&(q.x=L[0]-Q,q.y=L[1]-Q,j.crisp&&(q.x=Math.floor(q.x))),Q&&(q.width=q.height=2*Q),q},_.prototype.pointAttribs=function(L,O){var j=this.options.marker,Y=L&&L.options,X=Y&&Y.marker||{},G=Y&&Y.color,q=L&&L.color,Q=L&&L.zone&&L.zone.color,J=this.color;return L=d(X.lineWidth,j.lineWidth),Y=1,J=G||Q||q||J,G=X.fillColor||j.fillColor||J,q=X.lineColor||j.lineColor||J,O=O||"normal",j=j.states[O]||{},O=X.states&&X.states[O]||{},L=d(O.lineWidth,j.lineWidth,L+d(O.lineWidthPlus,j.lineWidthPlus,0)),G=O.fillColor||j.fillColor||G,{stroke:q=O.lineColor||j.lineColor||q,"stroke-width":L,fill:G,opacity:Y=d(O.opacity,j.opacity,Y)}},_.prototype.destroy=function(L){var O,j,Y,X=this,G=X.chart,q=/AppleWebKit\/533/.test(u.navigator.userAgent),Q=X.data||[];for(e(X,"destroy",{keepEventsForUpdate:L}),this.removeEvents(L),(X.axisTypes||[]).forEach(function(J){(Y=X[J])&&Y.series&&(a(Y.series,X),Y.isDirty=Y.forceRedraw=!0)}),X.legendItem&&X.chart.legend.destroyItem(X),O=Q.length;O--;)(j=Q[O])&&j.destroy&&j.destroy();X.clips&&X.clips.forEach(function(J){return J.destroy()}),E.clearTimeout(X.animationTimeout),D(X,function(J,rt){J instanceof I&&!J.survive&&J[q&&rt==="group"?"hide":"destroy"]()}),G.hoverSeries===X&&(G.hoverSeries=void 0),a(G.series,X),G.orderSeries(),D(X,function(J,rt){L&&rt==="hcEvents"||delete X[rt]})},_.prototype.applyZones=function(){var L,O,j,Y,X,G,q,Q,J=this,rt=this.chart,lt=rt.renderer,gt=this.zones,mt=this.clips||[],bt=this.graph,yt=this.area,ht=Math.max(rt.plotWidth,rt.plotHeight),et=this[(this.zoneAxis||"y")+"Axis"],at=rt.inverted,dt=!1;if(gt.length&&(bt||yt)&&et&&et.min!==void 0){var vt=et.reversed,Ct=et.horiz;bt&&!this.showLine&&bt.hide(),yt&&yt.hide();var xt=et.getExtremes();gt.forEach(function(wt,Mt){L=vt?Ct?rt.plotWidth:0:Ct?0:et.toPixels(xt.min)||0,L=x(d(O,L),0,ht),O=x(Math.round(et.toPixels(d(wt.value,xt.max),!0)||0),0,ht),dt&&(L=O=et.toPixels(xt.max)),Y=Math.abs(L-O),X=Math.min(L,O),G=Math.max(L,O),et.isXAxis?(j={x:at?G:X,y:0,width:Y,height:ht},Ct||(j.x=rt.plotHeight-j.x)):(j={x:0,y:at?G:X,width:ht,height:Y},Ct&&(j.y=rt.plotWidth-j.y)),at&&lt.isVML&&(j=et.isXAxis?{x:0,y:vt?X:G,height:j.width,width:rt.chartWidth}:{x:j.y-rt.plotLeft-rt.spacingBox.x,y:0,width:j.height,height:rt.chartHeight}),mt[Mt]?mt[Mt].animate(j):mt[Mt]=lt.clipRect(j),q=J["zone-area-"+Mt],Q=J["zone-graph-"+Mt],bt&&Q&&Q.clip(mt[Mt]),yt&&q&&q.clip(mt[Mt]),dt=wt.value>xt.max,J.resetZones&&O===0&&(O=void 0)}),this.clips=mt}else J.visible&&(bt&&bt.show(),yt&&yt.show())},_.prototype.plotGroup=function(L,O,j,Y,X){var G=this[L],q=!G;return j={visibility:j,zIndex:Y||.1},this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(j.opacity=this.opacity),q&&(this[L]=G=this.chart.renderer.g().add(X)),G.addClass("highcharts-"+O+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(G.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),G.attr(j)[q?"attr":"animate"](this.getPlotBox(O)),G},_.prototype.getPlotBox=function(L){var O=this.xAxis,j=this.yAxis,Y=this.chart;return L=Y.inverted&&!Y.polar&&O&&this.invertible!==!1&&L==="series",Y.inverted&&(O=j,j=this.xAxis),{translateX:O?O.left:Y.plotLeft,translateY:j?j.top:Y.plotTop,rotation:L?90:0,rotationOriginX:L?(O.len-j.len)/2:0,rotationOriginY:L?(O.len+j.len)/2:0,scaleX:L?-1:1,scaleY:1}},_.prototype.removeEvents=function(L){L||C(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(O){O()}),this.eventsToUnbind.length=0)},_.prototype.render=function(){var L=this,O=L.chart,j=L.options,Y=M(j.animation),X=L.visible?"inherit":"hidden",G=j.zIndex,q=L.hasRendered,Q=O.seriesGroup;O=!L.finishedAnimating&&O.renderer.isSVG?Y.duration:0,e(this,"render"),L.plotGroup("group","series",X,G,Q),L.markerGroup=L.plotGroup("markerGroup","markers",X,G,Q),j.clip!==!1&&L.setClip(),L.animate&&O&&L.animate(!0),L.drawGraph&&(L.drawGraph(),L.applyZones()),L.visible&&L.drawPoints(),L.drawDataLabels&&L.drawDataLabels(),L.redrawPoints&&L.redrawPoints(),L.drawTracker&&L.options.enableMouseTracking!==!1&&L.drawTracker(),L.animate&&O&&L.animate(),q||(O&&Y.defer&&(O+=Y.defer),L.animationTimeout=N(function(){L.afterAnimate()},O||0)),L.isDirty=!1,L.hasRendered=!0,e(L,"afterRender")},_.prototype.redraw=function(){var L=this.isDirty||this.isDirtyData;this.translate(),this.render(),L&&delete this.kdTree},_.prototype.searchPoint=function(L,O){var j=this.xAxis,Y=this.yAxis,X=this.chart.inverted;return this.searchKDTree({clientX:X?j.len-L.chartY+j.pos:L.chartX-j.pos,plotY:X?Y.len-L.chartX+Y.pos:L.chartY-Y.pos},O,L)},_.prototype.buildKDTree=function(L){function O(X,G,q){var Q=X&&X.length;if(Q){var J=j.kdAxisArray[G%q];return X.sort(function(rt,lt){return rt[J]-lt[J]}),{point:X[Q=Math.floor(Q/2)],left:O(X.slice(0,Q),G+1,q),right:O(X.slice(Q+1),G+1,q)}}}this.buildingKdTree=!0;var j=this,Y=-1<j.options.findNearestPointBy.indexOf("y")?2:1;delete j.kdTree,N(function(){j.kdTree=O(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||L&&L.type==="touchstart"?0:1)},_.prototype.searchKDTree=function(L,O,j){var Y=this,X=this.kdAxisArray[0],G=this.kdAxisArray[1],q=O?"distX":"dist";if(O=-1<Y.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(j),this.kdTree)return function Q(J,rt,lt,gt){var mt=rt.point,bt=Y.kdAxisArray[lt%gt],yt=mt,ht=r(J[X])&&r(mt[X])?Math.pow(J[X]-mt[X],2):null,et=r(J[G])&&r(mt[G])?Math.pow(J[G]-mt[G],2):null;return et=(ht||0)+(et||0),mt.dist=r(et)?Math.sqrt(et):Number.MAX_VALUE,mt.distX=r(ht)?Math.sqrt(ht):Number.MAX_VALUE,ht=0>(bt=J[bt]-mt[bt])?"right":"left",rt[et=0>bt?"left":"right"]&&(yt=(et=Q(J,rt[et],lt+1,gt))[q]<yt[q]?et:mt),rt[ht]&&Math.sqrt(bt*bt)<yt[q]&&(yt=(J=Q(J,rt[ht],lt+1,gt))[q]<yt[q]?J:yt),yt}(L,this.kdTree,O,O)},_.prototype.pointPlacementToXValue=function(){var L=this.options,O=L.pointRange,j=this.xAxis;return(L=L.pointPlacement)==="between"&&(L=j.reversed?-.5:.5),l(L)?L*(O||j.pointRange):0},_.prototype.isPointInside=function(L){var O=this.chart,j=this.xAxis,Y=this.yAxis;return L.plotY!==void 0&&L.plotX!==void 0&&0<=L.plotY&&L.plotY<=(Y?Y.len:O.plotHeight)&&0<=L.plotX&&L.plotX<=(j?j.len:O.plotWidth)},_.prototype.drawTracker=function(){var L=this,O=L.options,j=O.trackByArea,Y=[].concat(j?L.areaPath:L.graphPath),X=L.chart,G=X.pointer,q=X.renderer,Q=X.options.tooltip.snap,J=L.tracker,rt=function(gt){X.hoverSeries!==L&&L.onMouseOver()},lt="rgba(192,192,192,"+(m?1e-4:.002)+")";J?J.attr({d:Y}):L.graph&&(L.tracker=q.path(Y).attr({visibility:L.visible?"inherit":"hidden",zIndex:2}).addClass(j?"highcharts-tracker-area":"highcharts-tracker-line").add(L.group),X.styledMode||L.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:lt,fill:j?lt:"none","stroke-width":L.graph.strokeWidth()+(j?0:2*Q)}),[L.tracker,L.markerGroup,L.dataLabelsGroup].forEach(function(gt){gt&&(gt.addClass("highcharts-tracker").on("mouseover",rt).on("mouseout",function(mt){G.onTrackerMouseOut(mt)}),O.cursor&&!X.styledMode&&gt.css({cursor:O.cursor}),f)&&gt.on("touchstart",rt)})),e(this,"afterDrawTracker")},_.prototype.addPoint=function(L,O,j,Y,X){var G=this.options,q=this.data,Q=this.chart,J=this.xAxis;J=J&&J.hasNames&&J.names;var rt,lt=G.data,gt=this.xData;O=d(O,!0);var mt={series:this};this.pointClass.prototype.applyOptions.apply(mt,[L]);var bt=mt.x,yt=gt.length;if(this.requireSorting&&bt<gt[yt-1])for(rt=!0;yt&&gt[yt-1]>bt;)yt--;this.updateParallelArrays(mt,"splice",yt,0,0),this.updateParallelArrays(mt,yt),J&&mt.name&&(J[bt]=mt.name),lt.splice(yt,0,L),(rt||this.processedData)&&(this.data.splice(yt,0,null),this.processData()),G.legendType==="point"&&this.generatePoints(),j&&(q[0]&&q[0].remove?q[0].remove(!1):(q.shift(),this.updateParallelArrays(mt,"shift"),lt.shift())),X!==!1&&e(this,"addPoint",{point:mt}),this.isDirtyData=this.isDirty=!0,O&&Q.redraw(Y)},_.prototype.removePoint=function(L,O,j){var Y=this,X=Y.data,G=X[L],q=Y.points,Q=Y.chart,J=function(){q&&q.length===X.length&&q.splice(L,1),X.splice(L,1),Y.options.data.splice(L,1),Y.updateParallelArrays(G||{series:Y},"splice",L,1),G&&G.destroy(),Y.isDirty=!0,Y.isDirtyData=!0,O&&Q.redraw()};P(j,Q),O=d(O,!0),G?G.firePointEvent("remove",null,J):J()},_.prototype.remove=function(L,O,j,Y){function X(){G.destroy(Y),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),d(L,!0)&&q.redraw(O)}var G=this,q=G.chart;j!==!1?e(G,"remove",null,X):X()},_.prototype.update=function(L,O){L=p(L,this.userOptions),e(this,"update",{options:L});var j=this,Y=j.chart,X=j.userOptions,G=j.initialType||j.type,q=Y.options.plotOptions,Q=v[G].prototype,J=j.finishedAnimating&&{animation:!1},rt={},lt=["eventOptions","navigatorSeries","baseSeries"],gt=L.type||X.type||Y.options.chart.type,mt=!(this.hasDerivedData||gt&&gt!==this.type||L.pointStart!==void 0||L.pointInterval!==void 0||L.relativeXValue!==void 0||L.joinBy||L.mapData||j.hasOptionChanged("dataGrouping")||j.hasOptionChanged("pointStart")||j.hasOptionChanged("pointInterval")||j.hasOptionChanged("pointIntervalUnit")||j.hasOptionChanged("keys"));if(gt=gt||G,mt&&(lt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),L.visible!==!1&&lt.push("area","graph"),j.parallelArrays.forEach(function(yt){lt.push(yt+"Data")}),L.data&&(L.dataSorting&&i(j.options.dataSorting,L.dataSorting),this.setData(L.data,!1))),L=T(X,J,{index:X.index===void 0?j.index:X.index,pointStart:d(q&&q.series&&q.series.pointStart,X.pointStart,j.xData[0])},!mt&&{data:j.options.data},L),mt&&L.data&&(L.data=j.options.data),(lt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(lt)).forEach(function(yt){lt[yt]=j[yt],delete j[yt]}),q=!1,v[gt]){if(q=gt!==j.type,j.remove(!1,!1,!1,!0),q)if(Object.setPrototypeOf)Object.setPrototypeOf(j,v[gt].prototype);else{for(bt in J=Object.hasOwnProperty.call(j,"hcEvents")&&j.hcEvents,Q)j[bt]=void 0;i(j,v[gt].prototype),J?j.hcEvents=J:delete j.hcEvents}}else t(17,!0,Y,{missingModuleFor:gt});if(lt.forEach(function(yt){j[yt]=lt[yt]}),j.init(Y,L),mt&&this.points){if((L=j.options).visible===!1)rt.graphic=1,rt.dataLabel=1;else if(!j._hasPointLabels){Q=L.marker;var bt=L.dataLabels;X=X.marker||{},!Q||Q.enabled!==!1&&X.symbol===Q.symbol&&X.height===Q.height&&X.width===Q.width||(rt.graphic=1),bt&&bt.enabled===!1&&(rt.dataLabel=1)}for(X=0,Q=this.points;X<Q.length;X++)(bt=Q[X])&&bt.series&&(bt.resolveColor(),Object.keys(rt).length&&bt.destroyElements(rt),L.showInLegend===!1&&bt.legendItem&&Y.legend.destroyItem(bt))}j.initialType=G,Y.linkSeries(),q&&j.linkedSeries.length&&(j.isDirtyData=!0),e(this,"afterUpdate"),d(O,!0)&&Y.redraw(!!mt&&void 0)},_.prototype.setName=function(L){this.name=this.options.name=this.userOptions.name=L,this.chart.isDirtyLegend=!0},_.prototype.hasOptionChanged=function(L){var O=this.options[L],j=this.chart.options.plotOptions,Y=this.userOptions[L];return Y?O!==Y:O!==d(j&&j[this.type]&&j[this.type][L],j&&j.series&&j.series[L],O)},_.prototype.onMouseOver=function(){var L=this.chart,O=L.hoverSeries;L.pointer.setHoverChartIndex(),O&&O!==this&&O.onMouseOut(),this.options.events.mouseOver&&e(this,"mouseOver"),this.setState("hover"),L.hoverSeries=this},_.prototype.onMouseOut=function(){var L=this.options,O=this.chart,j=O.tooltip,Y=O.hoverPoint;O.hoverSeries=null,Y&&Y.onMouseOut(),this&&L.events.mouseOut&&e(this,"mouseOut"),!j||this.stickyTracking||j.shared&&!this.noSharedTooltip||j.hide(),O.series.forEach(function(X){X.setState("",!0)})},_.prototype.setState=function(L,O){var j=this,Y=j.options,X=j.graph,G=Y.inactiveOtherPoints,q=Y.states,Q=d(q[L||"normal"]&&q[L||"normal"].animation,j.chart.options.chart.animation),J=Y.lineWidth,rt=0,lt=Y.opacity;if(L=L||"",j.state!==L&&([j.group,j.markerGroup,j.dataLabelsGroup].forEach(function(gt){gt&&(j.state&&gt.removeClass("highcharts-series-"+j.state),L&&gt.addClass("highcharts-series-"+L))}),j.state=L,!j.chart.styledMode)){if(q[L]&&q[L].enabled===!1)return;if(L&&(J=q[L].lineWidth||J+(q[L].lineWidthPlus||0),lt=d(q[L].opacity,lt)),X&&!X.dashstyle&&l(J))for(Y={"stroke-width":J},X.animate(Y,Q);j["zone-graph-"+rt];)j["zone-graph-"+rt].animate(Y,Q),rt+=1;G||[j.group,j.markerGroup,j.dataLabelsGroup,j.labelBySeries].forEach(function(gt){gt&&gt.animate({opacity:lt},Q)})}O&&G&&j.points&&j.setAllPointsToState(L||void 0)},_.prototype.setAllPointsToState=function(L){this.points.forEach(function(O){O.setState&&O.setState(L)})},_.prototype.setVisible=function(L,O){var j=this,Y=j.chart,X=Y.options.chart.ignoreHiddenSeries,G=j.visible,q=(j.visible=L=j.options.visible=j.userOptions.visible=L===void 0?!G:L)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(Q){j[Q]&&j[Q][q]()}),Y.hoverSeries!==j&&(Y.hoverPoint&&Y.hoverPoint.series)!==j||j.onMouseOut(),j.legendItem&&Y.legend.colorizeItem(j,L),j.isDirty=!0,j.options.stacking&&Y.series.forEach(function(Q){Q.options.stacking&&Q.visible&&(Q.isDirty=!0)}),j.linkedSeries.forEach(function(Q){Q.setVisible(L,!1)}),X&&(Y.isDirtyBox=!0),e(j,q),O!==!1&&Y.redraw()},_.prototype.show=function(){this.setVisible(!0)},_.prototype.hide=function(){this.setVisible(!1)},_.prototype.select=function(L){this.selected=L=this.options.selected=L===void 0?!this.selected:L,this.checkbox&&(this.checkbox.checked=L),e(this,L?"select":"unselect")},_.prototype.shouldShowTooltip=function(L,O,j){return j===void 0&&(j={}),j.series=this,j.visiblePlotOnly=!0,this.chart.isInsidePlot(L,O,j)},_.defaultOptions=U,_.types=z.seriesTypes,_.registerType=z.registerSeriesType,_}(),i(W.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),z.series=W,W}),B(it,"Extensions/ScrollablePlotArea.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Axis/Axis.js"],it["Core/Chart/Chart.js"],it["Core/Series/Series.js"],it["Core/Renderer/RendererRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.stop,z=Z.addEvent,I=Z.createElement,E=Z.defined,M=Z.merge,P=Z.pick;z(H,"afterSetChartSize",function(y){var h=this.options.chart.scrollablePlotArea,f=h&&h.minWidth;if(h=h&&h.minHeight,!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.width=this.plotWidth+=f,this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var m={1:{name:"right",value:f}}}}else h&&(this.scrollablePixelsY=f=Math.max(0,h-this.chartHeight),E(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,m={2:{name:"bottom",value:f}}));m&&!y.skipAxes&&this.axes.forEach(function(u){m[u.side]?u.getPlotLinePath=function(){var v=m[u.side].name,w=this[v];this[v]=w-m[u.side].value;var S=R.prototype.getPlotLinePath.apply(this,arguments);return this[v]=w,S}:(u.setAxisSize(),u.setAxisTranslation())})}}),z(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){var y,h=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto"),this.scrollablePixelsY&&(f.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},f,this.scrollingParent),z(this.scrollingContainer,"scroll",function(){h.pointer&&(delete h.pointer.chartPosition,h.hoverPoint&&(y=h.hoverPoint),h.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},H.prototype.moveFixedElements=function(){var y,h=this.container,f=this.fixedRenderer,m=".highcharts-breadcrumbs-group .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(" ");this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(h.querySelectorAll(u),function(v){(v.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var y=!this.fixedDiv,h=this.options.chart,f=h.scrollablePlotArea,m=$.getRendererType();y?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(h.style&&h.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=h=new m(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=h.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(f.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),h=this.chartWidth+(this.scrollablePixelsX||0),m=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=h+"px",this.container.style.height=m+"px",this.renderer.boxWrapper.attr({width:h,height:m,viewBox:[0,0,h,m].join(" ")}),this.chartBackground.attr({width:h,height:m}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(f.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*f.scrollPositionX),f.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*f.scrollPositionY)),m=this.axisOffset,y=this.plotTop-m[0]-1,f=this.plotLeft-m[3]-1,h=this.plotTop+this.plotHeight+m[2]+1,m=this.plotLeft+this.plotWidth+m[1]+1;var u=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,h],["L",0,h],["Z"],["M",u,y],["L",this.chartWidth,y],["L",this.chartWidth,h],["L",u,h],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-1],["L",m,this.plotTop-1],["L",m,0],["Z"],["M",f,v],["L",f,this.chartHeight],["L",m,this.chartHeight],["L",m,v],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:y})},z(R,"afterInit",function(){this.chart.scrollableDirty=!0}),z(V,"show",function(){this.chart.scrollableDirty=!0})}),B(it,"Core/Axis/Stacking/StackItem.js",[it["Core/FormatUtilities.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V=W.format,$=R.series,Z=H.destroyObjectProperties,U=H.pick,z=H.isNumber;return W=function(){function I(E,M,P,y,h){var f=E.chart.inverted,m=E.reversed;this.axis=E,E=this.isNegative=!!P!=!!m,this.options=M=M||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=h,this.rightCliff=this.leftCliff=0,this.alignOptions={align:M.align||(f?E?"left":"right":"center"),verticalAlign:M.verticalAlign||(f?"middle":E?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(f?E?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var M=this.axis.chart,P=this.options,y=P.format;y=y?V(y,this,M):P.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=M.renderer.label(y,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels"),y={r:P.borderRadius||0,text:y,padding:U(P.padding,5),visibility:"hidden"},M.styledMode||(y.fill=P.backgroundColor,y.stroke=P.borderColor,y["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(y),this.label.added||this.label.add(E)),this.label.labelrank=M.plotSizeY},I.prototype.setOffset=function(E,M,P,y,h,f){var m=this.alignOptions,u=this.axis,v=this.label,w=this.options,S=this.textAlign,x=u.chart;E=this.getStackBox({xOffset:E,width:M,boxBottom:P,boxTop:y,defaultX:h,xAxis:f}),h=m.verticalAlign,v&&E&&(M=v.getBBox(),P=v.padding,y=U(w.overflow,"justify")==="justify",m.x=w.x||0,m.y=w.y||0,S=(h=this.adjustStackPosition({labelBox:M,verticalAlign:h,textAlign:S})).x,h=h.y,E.x-=S,E.y-=h,v.align(m,!1,E),(S=x.isInsidePlot(v.alignAttr.x+m.x+S,v.alignAttr.y+m.y+h))||(y=!1),y&&$.prototype.justifyDataLabel.call(u,v,m,v.alignAttr,M,E),v.attr({x:v.alignAttr.x,y:v.alignAttr.y,rotation:w.rotation,rotationOriginX:M.width/2,rotationOriginY:M.height/2}),U(!y&&w.crop,!0)&&(S=z(v.x)&&z(v.y)&&x.isInsidePlot(v.x-P+v.width,v.y)&&x.isInsidePlot(v.x+P,v.y)),v[S?"show":"hide"]())},I.prototype.adjustStackPosition=function(E){var M=E.labelBox,P={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:M.width/2+M.width/2*P[E.textAlign],y:M.height/2*P[E.verticalAlign]}},I.prototype.getStackBox=function(E){var M=this.axis,P=M.chart,y=E.boxTop,h=E.defaultX,f=E.xOffset,m=E.width,u=E.boxBottom;return y=M.stacking.usePercentage?100:U(y,this.total,0),y=M.toPixels(y),E=U(h,(E.xAxis||P.xAxis[0]).toPixels(this.x))+f,M=M.toPixels(u||0),M=Math.abs(y-M),u=this.isNegative,P.inverted?{x:(u?y:y-M)-P.plotLeft,y:E-P.plotTop,width:M,height:m}:{x:E-P.plotLeft,y:(u?y-M:y)-P.plotTop,width:m,height:M}},I}(),W}),B(it,"Core/Axis/Stacking/StackingAxis.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Axis/Axis.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Axis/Stacking/StackItem.js"],it["Core/Utilities.js"]],function(W,R,H,V,$){function Z(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,a(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join())})}function U(){var i=this.stacking;if(i){var o=i.stacks;r(o,function(e,s){S(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function z(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function I(i,o,e,s){return!w(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(),i}function E(){var i,o=this,e=o.stackKey,s=o.yAxis.stacking.stacks,n=o.processedXData,l=o[o.options.stacking+"Stacker"];l&&[e,"-"+e].forEach(function(b){for(var T,D,d=n.length;d--;)T=n[d],i=o.getStackIndicator(i,T,o.index,b),(D=(T=s[b]&&s[b][T])&&T.points[i.key])&&l.call(o,D,T,d)})}function M(i,o,e){o=o.total?100/o.total:0,i[0]=v(i[0]*o),i[1]=v(i[1]*o),this.stackedYData[e]=i[1]}function P(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):i&&r(i.stacks,function(o,e){e.slice(-5)==="group"&&(r(o,function(s){return s.destroy()}),delete i.stacks[e])})}function y(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var s=this.processedXData,n=this.processedYData,l=[],b=n.length,T=this.options,D=T.threshold,d=a(T.startFromThreshold&&D,0);T=T.stack;var C,A,N="-"+(i=i?""+this.type+",".concat(e):this.stackKey),_=this.negStacks,L=(o=e==="group"?o.yAxis[0]:this.yAxis).stacking.stacks,O=o.stacking.oldStacks;for(o.stacking.stacksTouched+=1,A=0;A<b;A++){var j=s[A],Y=n[A],X=this.getStackIndicator(X,j,this.index),G=X.key,q=(C=_&&Y<(d?0:D))?N:i;L[q]||(L[q]={}),L[q][j]||(O[q]&&O[q][j]?(L[q][j]=O[q][j],L[q][j].total=null):L[q][j]=new V(o,o.options.stackLabels,!!C,j,T)),q=L[q][j],Y!==null?(q.points[G]=q.points[this.index]=[a(q.cumulative,d)],w(q.cumulative)||(q.base=G),q.touched=o.stacking.stacksTouched,0<X.index&&this.singleStacks===!1&&(q.points[G][0]=q.points[this.index+","+j+",0"][0])):q.points[G]=q.points[this.index]=null,e==="percent"?(C=C?i:N,_&&L[C]&&L[C][j]?(C=L[C][j],q.total=C.total=Math.max(C.total,q.total)+Math.abs(Y)||0):q.total=v(q.total+(Math.abs(Y)||0))):e==="group"?(p(Y)&&(Y=Y[0]),Y!==null&&(q.total=(q.total||0)+1)):q.total=v(q.total+(Y||0)),q.cumulative=e==="group"?(q.total||1)-1:a(q.cumulative,d)+(Y||0),Y!==null&&(q.points[G].push(q.cumulative),l[A]=q.cumulative,q.hasValidPoints=!0)}e==="percent"&&(o.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=l),o.stacking.oldStacks={}}}var h,f=W.getDeferredAnimation,m=H.series.prototype,u=$.addEvent,v=$.correctFloat,w=$.defined,S=$.destroyObjectProperties,x=$.fireEvent,p=$.isArray,g=$.isNumber,r=$.objectEach,a=$.pick,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e=this.axis,s=e.series,n=e.options.reversedStacks,l=s.length;for(this.usePercentage=!1,o=l;o--;){var b=s[n?o:l-o-1];b.setStackedPoints(),b.setGroupedPoints()}for(o=0;o<l;o++)s[o].modifyStacks();x(e,"afterBuildStacks")},i.prototype.cleanStacks=function(){if(this.oldStacks)var o=this.stacks=this.oldStacks;r(o,function(e){r(e,function(s){s.cumulative=s.total})})},i.prototype.resetStacks=function(){var o=this;r(this.stacks,function(e){r(e,function(s,n){g(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this.axis,e=o.chart,s=e.renderer,n=this.stacks;o=f(e,o.options.stackLabels&&o.options.stackLabels.animation||!1);var l=this.stackTotalGroup=this.stackTotalGroup||s.g("stack-labels").attr({zIndex:6,opacity:0}).add();l.translate(e.plotLeft,e.plotTop),r(n,function(b){r(b,function(T){T.render(l)})}),l.animate({opacity:1},o)},i}();return function(i){var o=[];i.compose=function(e,s,n){o.indexOf(e)===-1&&(o.push(e),u(e,"init",z),u(e,"destroy",U)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=Z),o.indexOf(n)===-1&&(o.push(n),(e=n.prototype).getStackIndicator=I,e.modifyStacks=E,e.percentStacker=M,e.setGroupedPoints=P,e.setStackedPoints=y)}}(h||(h={})),h}),B(it,"Series/Line/LineSeries.js",[it["Core/Series/Series.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=H.defined,Z=H.merge;return H=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return V(z,U),z.prototype.drawGraph=function(){var I=this,E=this.options,M=(this.gappedPath||this.getGraphPath).call(this),P=this.chart.styledMode,y=[["graph","highcharts-graph"]];P||y[0].push(E.lineColor||this.color||"#cccccc",E.dashStyle),(y=I.getZonesGraphs(y)).forEach(function(h,f){var m=h[0],u=I[m],v=u?"animate":"attr";u?(u.endX=I.preventGraphAnimation?null:M.xMap,u.animate({d:M})):M.length&&(I[m]=u=I.chart.renderer.path(M).addClass(h[1]).attr({zIndex:1}).add(I.group)),u&&!P&&(m={stroke:h[2],"stroke-width":E.lineWidth||0,fill:I.fillGraph&&I.color||"none"},h[3]?m.dashstyle=h[3]:E.linecap!=="square"&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),u[v](m).shadow(2>f&&E.shadow)),u&&(u.startX=M.xMap,u.isArea=M.isArea)})},z.prototype.getGraphPath=function(I,E,M){var P,y=this,h=y.options,f=[],m=[],u=h.step,v=(I=I||y.points).reversed;return v&&I.reverse(),(u={right:1,center:2}[u]||u&&3)&&v&&(u=4-u),(I=this.getValidPoints(I,!1,!(h.connectNulls&&!E&&!M))).forEach(function(w,S){var x=w.plotX,p=w.plotY,g=I[S-1];(w.leftCliff||g&&g.rightCliff)&&!M&&(P=!0),w.isNull&&!$(E)&&0<S?P=!h.connectNulls:w.isNull&&!E?P=!0:(S===0||P?S=[["M",w.plotX,w.plotY]]:y.getPointSpline?S=[y.getPointSpline(I,w,S)]:u?(S=u===1?[["L",g.plotX,p]]:u===2?[["L",(g.plotX+x)/2,g.plotY],["L",(g.plotX+x)/2,p]]:[["L",x,g.plotY]]).push(["L",x,p]):S=[["L",x,p]],m.push(w.x),u&&(m.push(w.x),u===2&&m.push(w.x)),f.push.apply(f,S),P=!1)}),f.xMap=m,y.graphPath=f},z.prototype.getZonesGraphs=function(I){return this.zones.forEach(function(E,M){M=["zone-graph-"+M,"highcharts-graph highcharts-zone-graph-"+M+" "+(E.className||"")],this.chart.styledMode||M.push(E.color||this.color,E.dashStyle||this.options.dashStyle),I.push(M)},this),I},z.defaultOptions=Z(W.defaultOptions,{}),z}(W),R.registerSeriesType("line",H),H}),B(it,"Series/Area/AreaSeries.js",[it["Core/Color/Color.js"],it["Core/Legend/LegendSymbol.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=this&&this.__extends||function(){var M=function(P,y){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},M(P,y)};return function(P,y){function h(){this.constructor=P}M(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}}(),Z=W.parse,U=H.seriesTypes.line;W=V.extend;var z=V.merge,I=V.objectEach,E=V.pick;return V=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,M),P.prototype.drawGraph=function(){this.areaPath=[],M.prototype.drawGraph.apply(this);var y=this,h=this.areaPath,f=this.options,m=[["area","highcharts-area",this.color,f.fillColor]];this.zones.forEach(function(u,v){m.push(["zone-area-"+v,"highcharts-area highcharts-zone-area-"+v+" "+u.className,u.color||y.color,u.fillColor||f.fillColor])}),m.forEach(function(u){var v=u[0],w={},S=y[v],x=S?"animate":"attr";S?(S.endX=y.preventGraphAnimation?null:h.xMap,S.animate({d:h})):(w.zIndex=0,(S=y[v]=y.chart.renderer.path(h).addClass(u[1]).add(y.group)).isArea=!0),y.chart.styledMode||(w.fill=E(u[3],Z(u[2]).setOpacity(E(f.fillOpacity,.75)).get())),S[x](w),S.startX=h.xMap,S.shiftUnit=f.step?2:1})},P.prototype.getGraphPath=function(y){var h=U.prototype.getGraphPath,f=this.options,m=f.stacking,u=this.yAxis,v=[],w=[],S=this.index,x=u.stacking.stacks[this.stackKey],p=f.threshold,g=Math.round(u.getThreshold(f.threshold));f=E(f.connectNulls,m==="percent");var r=function(s,n,l){var b=y[s];s=m&&x[b.x].points[S];var T=b[l+"Null"]||0;if(l=b[l+"Cliff"]||0,b=!0,l||T){var D=(T?s[0]:s[1])+l,d=s[0]+l;b=!!T}else!m&&y[n]&&y[n].isNull&&(D=d=p);D!==void 0&&(w.push({plotX:o,plotY:D===null?g:u.getThreshold(D),isNull:b,isCliff:!0}),v.push({plotX:o,plotY:d===null?g:u.getThreshold(d),doCurve:!1}))};y=y||this.points,m&&(y=this.getStackPoints(y));for(var a=0,t=y.length;a<t;++a){m||(y[a].leftCliff=y[a].rightCliff=y[a].leftNull=y[a].rightNull=void 0);var i=y[a].isNull,o=E(y[a].rectPlotX,y[a].plotX),e=m?E(y[a].yBottom,g):g;i&&!f||(f||r(a,a-1,"left"),i&&!m&&f||(w.push(y[a]),v.push({x:a,plotX:o,plotY:e})),f||r(a,a+1,"right"))}return r=h.call(this,w,!0,!0),v.reversed=!0,(e=(i=h.call(this,v,!0,!0))[0])&&e[0]==="M"&&(i[0]=["L",e[1],e[2]]),(i=r.concat(i)).length&&i.push(["Z"]),h=h.call(this,w,!1,f),i.xMap=r.xMap,this.areaPath=i,h},P.prototype.getStackPoints=function(y){var h=this,f=[],m=[],u=this.xAxis,v=this.yAxis,w=v.stacking.stacks[this.stackKey],S={},x=v.series,p=x.length,g=v.options.reversedStacks?1:-1,r=x.indexOf(h);if(y=y||this.points,this.options.stacking){for(var a=0;a<y.length;a++)y[a].leftNull=y[a].rightNull=void 0,S[y[a].x]=y[a];I(w,function(i,o){i.total!==null&&m.push(o)}),m.sort(function(i,o){return i-o});var t=x.map(function(i){return i.visible});m.forEach(function(i,o){var e,s,n=0;if(S[i]&&!S[i].isNull)f.push(S[i]),[-1,1].forEach(function(b){var T=b===1?"rightNull":"leftNull",D=w[m[o+b]],d=0;if(D)for(var C=r;0<=C&&C<p;){var A=x[C].index;(e=D.points[A])||(A===h.index?S[i][T]=!0:t[C]&&(s=w[i].points[A])&&(d-=s[1]-s[0])),C+=g}S[i][b===1?"rightCliff":"leftCliff"]=d});else{for(var l=r;0<=l&&l<p;){if(e=w[i].points[x[l].index]){n=e[1];break}l+=g}n=E(n,0),n=v.translate(n,0,1,0,1),f.push({isNull:!0,plotX:u.translate(i,0,0,0,1),x:i,plotY:n,yBottom:n})}})}return f},P.defaultOptions=z(U.defaultOptions,{threshold:0}),P}(U),W(V.prototype,{singleStacks:!1,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("area",V),V}),B(it,"Series/Spline/SplineSeries.js",[it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R){var H=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),V=W.seriesTypes.line,$=R.merge,Z=R.pick;return R=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return H(z,U),z.prototype.getPointSpline=function(I,E,M){var P=E.plotX||0,y=E.plotY||0,h=I[M-1];if(M=I[M+1],h&&!h.isNull&&h.doCurve!==!1&&!E.isCliff&&M&&!M.isNull&&M.doCurve!==!1&&!E.isCliff){I=h.plotY||0;var f=M.plotX||0;M=M.plotY||0;var m=0,u=(1.5*P+(h.plotX||0))/2.5,v=(1.5*y+I)/2.5,w=(1.5*y+M)/2.5;(f=(1.5*P+f)/2.5)!==u&&(m=(w-v)*(f-P)/(f-u)+y-w),w+=m,(v+=m)>I&&v>y?w=2*y-(v=Math.max(I,y)):v<I&&v<y&&(w=2*y-(v=Math.min(I,y))),w>M&&w>y?v=2*y-(w=Math.max(M,y)):w<M&&w<y&&(v=2*y-(w=Math.min(M,y))),E.rightContX=f,E.rightContY=w}return E=["C",Z(h.rightContX,h.plotX,0),Z(h.rightContY,h.plotY,0),Z(u,P,0),Z(v,y,0),P,y],h.rightContX=h.rightContY=void 0,E},z.defaultOptions=$(V.defaultOptions),z}(V),W.registerSeriesType("spline",R),R}),B(it,"Series/AreaSpline/AreaSplineSeries.js",[it["Series/Spline/SplineSeries.js"],it["Core/Legend/LegendSymbol.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V){var $=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=H.seriesTypes,U=Z.area;Z=Z.area.prototype;var z=V.extend,I=V.merge;return V=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.points=void 0,P.options=void 0,P}return $(M,E),M.defaultOptions=I(W.defaultOptions,U.defaultOptions),M}(W),z(V.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("areaspline",V),V}),B(it,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),B(it,"Series/Column/ColumnSeries.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Color/Color.js"],it["Series/Column/ColumnSeriesDefaults.js"],it["Core/Globals.js"],it["Core/Legend/LegendSymbol.js"],it["Core/Series/Series.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I=this&&this.__extends||function(){var p=function(g,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},p(g,r)};return function(g,r){function a(){this.constructor=g}p(g,r),g.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),E=W.animObject,M=R.parse,P=V.hasTouch;W=V.noop;var y=z.clamp,h=z.defined,f=z.extend,m=z.fireEvent,u=z.isArray,v=z.isNumber,w=z.merge,S=z.pick,x=z.objectEach;return z=function(p){function g(){var r=p!==null&&p.apply(this,arguments)||this;return r.borderWidth=void 0,r.data=void 0,r.group=void 0,r.options=void 0,r.points=void 0,r}return I(g,p),g.prototype.animate=function(r){var a=this,t=this.yAxis,i=a.options,o=this.chart.inverted,e={},s=o?"translateX":"translateY";if(r)e.scaleY=.001,r=y(t.toPixels(i.threshold),t.pos,t.pos+t.len),o?e.translateX=r-t.len:e.translateY=r,a.clipBox&&a.setClip(),a.group.attr(e);else{var n=Number(a.group.attr(s));a.group.animate({scaleY:1},f(E(a.options.animation),{step:function(l,b){a.group&&(e[s]=n+b.pos*(t.pos-n),a.group.attr(e))}}))}},g.prototype.init=function(r,a){p.prototype.init.apply(this,arguments);var t=this;(r=t.chart).hasRendered&&r.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)})},g.prototype.getColumnMetrics=function(){var r=this,a=r.options,t=r.xAxis,i=r.yAxis,o=t.options.reversedStacks;o=t.reversed&&!o||!t.reversed&&o;var e,s={},n=0;a.grouping===!1?n=1:r.chart.series.forEach(function(D){var d=D.yAxis,C=D.options;if(D.type===r.type&&(D.visible||!r.chart.options.chart.ignoreHiddenSeries)&&i.len===d.len&&i.pos===d.pos){if(C.stacking&&C.stacking!=="group"){e=D.stackKey,s[e]===void 0&&(s[e]=n++);var A=s[e]}else C.grouping!==!1&&(A=n++);D.columnIndex=A}});var l=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||a.pointRange||t.closestPointRange||t.tickInterval||1),t.len),b=l*a.groupPadding,T=(l-2*b)/(n||1);return a=Math.min(a.maxPointWidth||t.len,S(a.pointWidth,T*(1-2*a.pointPadding))),r.columnMetrics={width:a,offset:(T-a)/2+(b+((r.columnIndex||0)+(o?1:0))*T-l/2)*(o?-1:1),paddedWidth:T,columnCount:n},r.columnMetrics},g.prototype.crispCol=function(r,a,t,i){var o=this.chart,e=this.borderWidth,s=-(e%2?.5:0);return e=e%2?.5:1,o.inverted&&o.renderer.isVML&&(e+=1),this.options.crisp&&(t=Math.round(r+t)+s,t-=r=Math.round(r)+s),i=Math.round(a+i)+e,s=.5>=Math.abs(a)&&.5<i,i-=a=Math.round(a)+e,s&&i&&(--a,i+=1),{x:r,y:a,width:t,height:i}},g.prototype.adjustForMissingColumns=function(r,a,t,i){var o=this,e=this.options.stacking;if(!t.isNull&&1<i.columnCount){var s=this.yAxis.options.reversedStacks,n=0,l=s?0:-i.columnCount;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if(typeof t.x=="number"){var T=b[t.x.toString()];T&&(b=T.points[o.index],e?(b&&(n=l),T.hasValidPoints&&(s?l++:l--)):u(b)&&(b=Object.keys(T.points).filter(function(D){return!D.match(",")&&T.points[D]&&1<T.points[D].length}).map(parseFloat).sort(function(D,d){return d-D}),n=b.indexOf(o.index),l=b.length))}}),r=(t.plotX||0)+((l-1)*i.paddedWidth+a)/2-a-n*i.paddedWidth}return r},g.prototype.translate=function(){var r=this,a=r.chart,t=r.options,i=r.dense=2>r.closestPointRange*r.xAxis.transA;i=r.borderWidth=S(t.borderWidth,i?0:1);var o=r.xAxis,e=r.yAxis,s=t.threshold,n=r.translatedThreshold=e.getThreshold(s),l=S(t.minPointLength,5),b=r.getColumnMetrics(),T=b.width,D=r.pointXOffset=b.offset,d=r.dataMin,C=r.dataMax,A=r.barW=Math.max(T,1+2*i);a.inverted&&(n-=.5),t.pointPadding&&(A=Math.ceil(A)),Z.prototype.translate.apply(r),r.points.forEach(function(N){var _=S(N.yBottom,n),L=999+Math.abs(_),O=N.plotX||0;L=y(N.plotY,-L,e.len+L);var j=Math.min(L,_),Y=Math.max(L,_)-j,X=T,G=O+D,q=A;l&&Math.abs(Y)<l&&(Y=l,O=!e.reversed&&!N.negative||e.reversed&&N.negative,v(s)&&v(C)&&N.y===s&&C<=s&&(e.min||0)<s&&(d!==C||(e.max||0)<=s)&&(O=!O),j=Math.abs(j-n)>l?_-l:n-(O?l:0)),h(N.options.pointWidth)&&(X=q=Math.ceil(N.options.pointWidth),G-=Math.round((X-T)/2)),t.centerInCategory&&(G=r.adjustForMissingColumns(G,X,N,b)),N.barX=G,N.pointWidth=X,N.tooltipPos=a.inverted?[y(e.len+e.pos-a.plotLeft-L,e.pos-a.plotLeft,e.len+e.pos-a.plotLeft),o.len+o.pos-a.plotTop-G-q/2,Y]:[o.left-a.plotLeft+G+q/2,y(L+e.pos-a.plotTop,e.pos-a.plotTop,e.len+e.pos-a.plotTop),Y],N.shapeType=r.pointClass.prototype.shapeType||"rect",N.shapeArgs=r.crispCol.apply(r,N.isNull?[G,n,q,0]:[G,j,q,Y])})},g.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},g.prototype.pointAttribs=function(r,a){var t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=r&&r.color||this.color,n=r&&r[o]||t[o]||s;i=r&&r.options.dashStyle||t.dashStyle;var l=r&&r[e]||t[e]||this[e]||0,b=S(r&&r.opacity,t.opacity,1);if(r&&this.zones.length){var T=r.getZone();s=r.options.color||T&&(T.color||r.nonZonedColor)||this.color,T&&(n=T.borderColor||n,i=T.dashStyle||i,l=T.borderWidth||l)}return a&&r&&(a=(r=w(t.states[a],r.options.states&&r.options.states[a]||{})).brightness,s=r.color||a!==void 0&&M(s).brighten(r.brightness).get()||s,n=r[o]||n,l=r[e]||l,i=r.dashStyle||i,b=S(r.opacity,b)),o={fill:s,stroke:n,"stroke-width":l,opacity:b},i&&(o.dashstyle=i),o},g.prototype.drawPoints=function(r){r===void 0&&(r=this.points);var a,t=this,i=this.chart,o=t.options,e=i.renderer,s=o.animationLimit||250;r.forEach(function(n){var l=n.graphic,b=!!l,T=l&&i.pointCount<s?"animate":"attr";v(n.plotY)&&n.y!==null?(a=n.shapeArgs,l&&n.hasNewShapeType()&&(l=l.destroy()),t.enabledDataSorting&&(n.startXPos=t.xAxis.reversed?-(a&&a.width||0):t.xAxis.width),l||(n.graphic=l=e[n.shapeType](a).add(n.group||t.group))&&t.enabledDataSorting&&i.hasRendered&&i.pointCount<s&&(l.attr({x:n.startXPos}),b=!0,T="animate"),l&&b&&l[T](w(a)),o.borderRadius&&l[T]({r:o.borderRadius}),i.styledMode||l[T](t.pointAttribs(n,n.selected&&"select")).shadow(n.allowShadow!==!1&&o.shadow,null,o.stacking&&!o.borderRadius),l&&(l.addClass(n.getClassName(),!0),l.attr({visibility:n.visible?"inherit":"hidden"}))):l&&(n.graphic=l.destroy())})},g.prototype.drawTracker=function(r){r===void 0&&(r=this.points);var a,t=this,i=t.chart,o=i.pointer,e=function(s){var n=o.getPointFromEvent(s);n!==void 0&&(o.isDirectTouch=!0,n.onMouseOver(s))};r.forEach(function(s){a=u(s.dataLabels)?s.dataLabels:s.dataLabel?[s.dataLabel]:[],s.graphic&&(s.graphic.element.point=s),a.forEach(function(n){n.div?n.div.point=s:n.element.point=s})}),t._hasTracking||(t.trackerGroups.forEach(function(s){t[s]&&(t[s].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(n){o.onTrackerMouseOut(n)}),P&&t[s].on("touchstart",e),!i.styledMode&&t.options.cursor&&t[s].css({cursor:t.options.cursor}))}),t._hasTracking=!0),m(this,"afterDrawTracker")},g.prototype.remove=function(){var r=this,a=r.chart;a.hasRendered&&a.series.forEach(function(t){t.type===r.type&&(t.isDirty=!0)}),Z.prototype.remove.apply(r,arguments)},g.defaultOptions=w(Z.defaultOptions,H),g}(Z),f(z.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:W,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("column",z),z}),B(it,"Core/Series/DataLabel.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/FormatUtilities.js"],it["Core/Utilities.js"]],function(W,R,H){var V,$=W.getDeferredAnimation,Z=R.format,U=H.defined,z=H.extend,I=H.fireEvent,E=H.isArray,M=H.isString,P=H.merge,y=H.objectEach,h=H.pick,f=H.splat;return function(m){function u(g,r,a,t,i){var o=this,e=this.chart,s=this.isCartesian&&e.inverted,n=this.enabledDataSorting,l=g.plotX,b=g.plotY,T=a.rotation,D=a.align,d=U(l)&&U(b)&&e.isInsidePlot(l,Math.round(b),{inverted:s,paneCoordinates:!0,series:o});b=function(_){n&&o.xAxis&&!C&&o.setDataLabelStartPos(g,r,i,d,_)};var C=h(a.overflow,n?"none":"justify")==="justify";if(l=this.visible&&g.visible!==!1&&U(l)&&(g.series.forceDL||n&&!C||d||h(a.inside,!!this.options.stacking)&&t&&e.isInsidePlot(l,s?t.x+1:t.y+t.height-1,{inverted:s,paneCoordinates:!0,series:o})),s=g.pos(),l&&s){T&&r.attr({align:D}),D=r.getBBox(!0);var A=[0,0],N=e.renderer.fontMetrics(e.styledMode?void 0:a.style.fontSize,r).b;t=z({x:s[0],y:Math.round(s[1]),width:0,height:0},t),z(a,{width:D.width,height:D.height}),T?(C=!1,A=e.renderer.rotCorr(N,T),N={x:t.x+(a.x||0)+t.width/2+A.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},A=[D.x-Number(r.attr("x")),D.y-Number(r.attr("y"))],b(N),r[i?"attr":"animate"](N)):(b(t),r.align(a,void 0,t),N=r.alignAttr),C&&0<=t.height?this.justifyDataLabel(r,a,N,D,t,i):h(a.crop,!0)&&(t=N.x,b=N.y,t+=A[0],b+=A[1],l=e.isInsidePlot(t,b,{paneCoordinates:!0,series:o})&&e.isInsidePlot(t+D.width,b+D.height,{paneCoordinates:!0,series:o})),a.shape&&!T&&r[i?"attr":"animate"]({anchorX:s[0],anchorY:s[1]})}i&&n&&(r.placed=!1),l||n&&!C?r.show():(r.hide(),r.placed=!1)}function v(g){g===void 0&&(g=this.points);var r=this,a=r.chart,t=r.options,i=r.hasRendered||0,o=a.renderer,e=a.options.chart,s=e.backgroundColor;e=e.plotBackgroundColor;var n=o.getContrast(M(e)&&e||M(s)&&s||"#000000"),l=t.dataLabels;if(s=l.animation,s=l.defer?$(a,s,r):{defer:0,duration:0},l=S(S(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[r.type]&&a.options.plotOptions[r.type].dataLabels),l),I(this,"drawDataLabels"),E(l)||l.enabled||r._hasPointLabels){var b=r.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",l.zIndex||6);b.attr({opacity:+i}),!i&&(i=r.dataLabelsGroup)&&(r.visible&&b.show(),i[t.animation?"animate":"attr"]({opacity:1},s)),g.forEach(function(T){f(S(l,T.dlOptions||T.options&&T.options.dataLabels)).forEach(function(D,d){var C=D.enabled&&(!T.isNull||T.dataLabelOnNull)&&function(q,Q){var J=Q.filter;return!J||(Q=J.operator,q=q[J.property],J=J.value,Q===">"&&q>J||Q==="<"&&q<J||Q===">="&&q>=J||Q==="<="&&q<=J||Q==="=="&&q==J||Q==="==="&&q===J)}(T,D),A=T.connectors?T.connectors[d]:T.connector,N=T.dataLabels?T.dataLabels[d]:T.dataLabel,_=!N,L=h(D.distance,T.labelDistance);if(C){var O=T.getLabelConfig(),j=h(D[T.formatPrefix+"Format"],D.format);O=U(j)?Z(j,O,a):(D[T.formatPrefix+"Formatter"]||D.formatter).call(O,D),j=D.style;var Y=D.rotation;a.styledMode||(j.color=h(D.color,j.color,r.color,"#000000"),j.color==="contrast"?(T.contrastColor=o.getContrast(T.color||r.color),j.color=!U(L)&&D.inside||0>L||t.stacking?T.contrastColor:n):delete T.contrastColor,t.cursor&&(j.cursor=t.cursor));var X={r:D.borderRadius||0,rotation:Y,padding:D.padding,zIndex:1};if(!a.styledMode){L=D.backgroundColor;var G=D.borderColor;X.fill=L==="auto"?T.color:L,X.stroke=G==="auto"?T.color:G,X["stroke-width"]=D.borderWidth}y(X,function(q,Q){q===void 0&&delete X[Q]})}!N||C&&U(O)&&!!N.div==!!D.useHTML&&(N.rotation&&D.rotation||N.rotation===D.rotation)||(_=!0,T.dataLabel=N=T.dataLabel&&T.dataLabel.destroy(),T.dataLabels&&(T.dataLabels.length===1?delete T.dataLabels:delete T.dataLabels[d]),d||delete T.dataLabel,A&&(T.connector=T.connector.destroy(),T.connectors&&(T.connectors.length===1?delete T.connectors:delete T.connectors[d]))),C&&U(O)?(N?X.text=O:(T.dataLabels=T.dataLabels||[],N=T.dataLabels[d]=Y?o.text(O,0,0,D.useHTML).addClass("highcharts-data-label"):o.label(O,0,0,D.shape,null,null,D.useHTML,null,"data-label"),d||(T.dataLabel=N),N.addClass(" highcharts-data-label-color-"+T.colorIndex+" "+(D.className||"")+(D.useHTML?" highcharts-tracker":""))),N.options=D,N.attr(X),a.styledMode||N.css(j).shadow(D.shadow),(d=D[T.formatPrefix+"TextPath"]||D.textPath)&&!D.useHTML&&(N.setTextPath(T.getDataLabelPath&&T.getDataLabelPath(N)||T.graphic,d),T.dataLabelPath&&!d.enabled&&(T.dataLabelPath=T.dataLabelPath.destroy())),N.added||N.add(b),r.alignDataLabel(T,N,D,null,_)):N&&N.hide()})})}I(this,"afterDrawDataLabels")}function w(g,r,a,t,i,o){var e=this.chart,s=r.align,n=r.verticalAlign,l=g.box?0:g.padding||0,b=r.x;b=b===void 0?0:b;var T=r.y;T=T===void 0?0:T;var D=(a.x||0)+l;if(0>D){s==="right"&&0<=b?(r.align="left",r.inside=!0):b-=D;var d=!0}return(D=(a.x||0)+t.width-l)>e.plotWidth&&(s==="left"&&0>=b?(r.align="right",r.inside=!0):b+=e.plotWidth-D,d=!0),0>(D=a.y+l)&&(n==="bottom"&&0<=T?(r.verticalAlign="top",r.inside=!0):T-=D,d=!0),(D=(a.y||0)+t.height-l)>e.plotHeight&&(n==="top"&&0>=T?(r.verticalAlign="bottom",r.inside=!0):T+=e.plotHeight-D,d=!0),d&&(r.x=b,r.y=T,g.placed=!o,g.align(r,void 0,i)),d}function S(g,r){var a,t=[];if(E(g)&&!E(r))t=g.map(function(i){return P(i,r)});else if(E(r)&&!E(g))t=r.map(function(i){return P(g,i)});else if(E(g)||E(r))for(a=Math.max(g.length,r.length);a--;)t[a]=P(g[a],r[a]);else t=P(g,r);return t}function x(g,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,l=e?r.height/2:r.width/2;g=(g=g.pointWidth)?g/2:0,r.startXPos=e?i.x:n?-l-g:s.width-l+g,r.startYPos=e?n?this.yAxis.height-l+g:-l-g:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}var p=[];m.compose=function(g){if(p.indexOf(g)===-1){var r=g.prototype;p.push(g),r.alignDataLabel=u,r.drawDataLabels=v,r.justifyDataLabel=w,r.setDataLabelStartPos=x}}}(V||(V={})),V}),B(it,"Series/Column/ColumnDataLabel.js",[it["Core/Series/DataLabel.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V,$=R.series,Z=H.merge,U=H.pick;return function(z){function I(M,P,y,h,f){var m=this.chart.inverted,u=M.series,v=(u.xAxis?u.xAxis.len:this.chart.plotSizeX)||0;u=(u.yAxis?u.yAxis.len:this.chart.plotSizeY)||0;var w=M.dlBox||M.shapeArgs,S=U(M.below,M.plotY>U(this.translatedThreshold,u)),x=U(y.inside,!!this.options.stacking);w&&(0>(h=Z(w)).y&&(h.height+=h.y,h.y=0),0<(w=h.y+h.height-u)&&w<h.height&&(h.height-=w),m&&(h={x:u-h.y-h.height,y:v-h.x-h.width,width:h.height,height:h.width}),x||(m?(h.x+=S?0:h.width,h.width=0):(h.y+=S?h.height:0,h.height=0))),y.align=U(y.align,!m||x?"center":S?"right":"left"),y.verticalAlign=U(y.verticalAlign,m||x?"middle":S?"top":"bottom"),$.prototype.alignDataLabel.call(this,M,P,y,h,f),y.inside&&M.contrastColor&&P.css({color:M.contrastColor})}var E=[];z.compose=function(M){W.compose($),E.indexOf(M)===-1&&(E.push(M),M.prototype.alignDataLabel=I)}}(V||(V={})),V}),B(it,"Series/Bar/BarSeries.js",[it["Series/Column/ColumnSeries.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=H.extend,Z=H.merge;return H=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return V(z,U),z.defaultOptions=Z(W.defaultOptions,{}),z}(W),$(H.prototype,{inverted:!0}),R.registerSeriesType("bar",H),H}),B(it,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),B(it,"Series/Scatter/ScatterSeries.js",[it["Series/Scatter/ScatterSeriesDefaults.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),$=R.seriesTypes,Z=$.column,U=$.line;$=H.addEvent;var z=H.extend,I=H.merge;return H=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return V(M,E),M.prototype.applyJitter=function(){var P=this,y=this.options.jitter,h=this.points.length;y&&this.points.forEach(function(f,m){["x","y"].forEach(function(u,v){var w="plot"+u.toUpperCase();if(y[u]&&!f.isNull){var S=P[u+"Axis"],x=y[u]*S.transA;if(S&&!S.isLog){var p=Math.max(0,f[w]-x);S=Math.min(S.len,f[w]+x),v=1e4*Math.sin(m+v*h),f[w]=p+(S-p)*(v-Math.floor(v)),u==="x"&&(f.clientX=f.plotX)}}})})},M.prototype.drawGraph=function(){this.options.lineWidth?E.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},M.defaultOptions=I(U.defaultOptions,W),M}(U),z(H.prototype,{drawTracker:Z.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),$(H,"afterTranslate",function(){this.applyJitter()}),R.registerSeriesType("scatter",H),H}),B(it,"Series/CenteredUtilities.js",[it["Core/Globals.js"],it["Core/Series/Series.js"],it["Core/Utilities.js"]],function(W,R,H){var V,$=W.deg2rad,Z=H.fireEvent,U=H.isNumber,z=H.pick,I=H.relativeLength;return function(E){E.getCenter=function(){var M=this.options,P=this.chart,y=2*(M.slicedOffset||0),h=P.plotWidth-2*y,f=P.plotHeight-2*y,m=M.center,u=Math.min(h,f),v=M.thickness,w=M.size,S=M.innerSize||0;for(typeof w=="string"&&(w=parseFloat(w)),typeof S=="string"&&(S=parseFloat(S)),M=[z(m[0],"50%"),z(m[1],"50%"),z(w&&0>w?void 0:M.size,"100%"),z(S&&0>S?void 0:M.innerSize||0,"0%")],!P.angular||this instanceof R||(M[3]=0),m=0;4>m;++m)w=M[m],P=2>m||m===2&&/%$/.test(w),M[m]=I(w,[h,f,u,M[2]][m])+(P?y:0);return M[3]>M[2]&&(M[3]=M[2]),U(v)&&2*v<M[2]&&0<v&&(M[3]=M[2]-2*v),Z(this,"afterGetCenter",{positions:M}),M},E.getStartAndEndRadians=function(M,P){return M=U(M)?M:0,P=U(P)&&P>M&&360>P-M?P:M+360,{start:$*(M+-90),end:$*(P+-90)}}}(V||(V={})),V}),B(it,"Series/Pie/PiePoint.js",[it["Core/Animation/AnimationUtilities.js"],it["Core/Series/Point.js"],it["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var M=function(P,y){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},M(P,y)};return function(P,y){function h(){this.constructor=P}M(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}}(),$=W.setAnimation,Z=H.addEvent,U=H.defined;W=H.extend;var z=H.isNumber,I=H.pick,E=H.relativeLength;return R=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return V(P,M),P.prototype.getConnectorPath=function(){var y=this.labelPosition,h=this.series.options.dataLabels,f=this.connectorShapes,m=h.connectorShape;return f[m]&&(m=f[m]),m.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,h)},P.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},P.prototype.haloPath=function(y){var h=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(h.x,h.y,h.r+y,h.r+y,{innerR:h.r-1,start:h.start,end:h.end})},P.prototype.init=function(){var y=this;M.prototype.init.apply(this,arguments),this.name=I(this.name,"Slice");var h=function(f){y.slice(f.type==="select")};return Z(this,"select",h),Z(this,"unselect",h),this},P.prototype.isValid=function(){return z(this.y)&&0<=this.y},P.prototype.setVisible=function(y,h){var f=this,m=this.series,u=m.chart,v=m.options.ignoreHiddenPoint;h=I(h,v),y!==this.visible&&(this.visible=this.options.visible=y=y===void 0?!this.visible:y,m.options.data[m.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(w){f[w]&&f[w][y?"show":"hide"](y)}),this.legendItem&&u.legend.colorizeItem(this,y),y||this.state!=="hover"||this.setState(""),v&&(m.isDirty=!0),h&&u.redraw())},P.prototype.slice=function(y,h,f){var m=this.series;$(f,m.chart),I(h,!0),this.sliced=this.options.sliced=U(y)?y:!this.sliced,m.options.data[m.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},P}(R),W(R.prototype,{connectorShapes:{fixedOffset:function(M,P,y){var h=P.breakAt;return P=P.touchingSliceAt,[["M",M.x,M.y],y.softConnector?["C",M.x+(M.alignment==="left"?-5:5),M.y,2*h.x-P.x,2*h.y-P.y,h.x,h.y]:["L",h.x,h.y],["L",P.x,P.y]]},straight:function(M,P){return P=P.touchingSliceAt,[["M",M.x,M.y],["L",P.x,P.y]]},crookedLine:function(M,P,y){P=P.touchingSliceAt;var h=this.series,f=h.center[0],m=h.chart.plotWidth,u=h.chart.plotLeft;h=M.alignment;var v=this.shapeArgs.r;return y=E(y.crookDistance,1),y=["L",m=h==="left"?f+v+(m+u-f-v)*(1-y):u+(f-v)*y,M.y],f=!0,(h==="left"?m>M.x||m<P.x:m<M.x||m>P.x)&&(f=!1),M=[["M",M.x,M.y]],f&&M.push(y),M.push(["L",P.x,P.y]),M}}}),R}),B(it,"Series/Pie/PieSeriesDefaults.js",[],function(){return{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",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),B(it,"Series/Pie/PieSeries.js",[it["Series/CenteredUtilities.js"],it["Series/Column/ColumnSeries.js"],it["Core/Globals.js"],it["Core/Legend/LegendSymbol.js"],it["Series/Pie/PiePoint.js"],it["Series/Pie/PieSeriesDefaults.js"],it["Core/Series/Series.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Renderer/SVG/Symbols.js"],it["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M=this&&this.__extends||function(){var w=function(S,x){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var r in g)g.hasOwnProperty(r)&&(p[r]=g[r])},w(S,x)};return function(S,x){function p(){this.constructor=S}w(S,x),S.prototype=x===null?Object.create(x):(p.prototype=x.prototype,new p)}}(),P=W.getStartAndEndRadians;H=H.noop;var y=E.clamp,h=E.extend,f=E.fireEvent,m=E.merge,u=E.pick,v=E.relativeLength;return E=function(w){function S(){var x=w!==null&&w.apply(this,arguments)||this;return x.center=void 0,x.data=void 0,x.maxLabelDistance=void 0,x.options=void 0,x.points=void 0,x}return M(S,w),S.prototype.animate=function(x){var p=this,g=p.points,r=p.startAngleRad;x||g.forEach(function(a){var t=a.graphic,i=a.shapeArgs;t&&i&&(t.attr({r:u(a.startR,p.center&&p.center[3]/2),start:r,end:r}),t.animate({r:i.r,start:i.start,end:i.end},p.options.animation))})},S.prototype.drawEmpty=function(){var x=this.startAngleRad,p=this.endAngleRad,g=this.options;if(this.total===0&&this.center){var r=this.center[0],a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,x,p).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:x,end:p,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":g.borderWidth,fill:g.fillColor||"none",stroke:g.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},S.prototype.drawPoints=function(){var x=this.chart.renderer;this.points.forEach(function(p){p.graphic&&p.hasNewShapeType()&&(p.graphic=p.graphic.destroy()),p.graphic||(p.graphic=x[p.shapeType](p.shapeArgs).add(p.series.group),p.delayedRendering=!0)})},S.prototype.generatePoints=function(){w.prototype.generatePoints.call(this),this.updateTotals()},S.prototype.getX=function(x,p,g){var r=this.center,a=this.radii?this.radii[g.index]||0:r[2]/2;return x=Math.asin(y((x-r[1])/(a+g.labelDistance),-1,1)),r[0]+(p?-1:1)*Math.cos(x)*(a+g.labelDistance)+(0<g.labelDistance?(p?-1:1)*this.options.dataLabels.padding:0)},S.prototype.hasData=function(){return!!this.processedXData.length},S.prototype.redrawPoints=function(){var x,p,g,r,a=this,t=a.chart,i=t.renderer,o=a.options.shadow;this.drawEmpty(),!o||a.shadowGroup||t.styledMode||(a.shadowGroup=i.g("shadow").attr({zIndex:-1}).add(a.group)),a.points.forEach(function(e){var s={};if(p=e.graphic,!e.isNull&&p){var n=void 0;r=e.shapeArgs,x=e.getTranslate(),t.styledMode||(n=e.shadowGroup,o&&!n&&(n=e.shadowGroup=i.g("shadow").add(a.shadowGroup)),n&&n.attr(x),g=a.pointAttribs(e,e.selected&&"select")),e.delayedRendering?(p.setRadialReference(a.center).attr(r).attr(x),t.styledMode||p.attr(g).attr({"stroke-linejoin":"round"}).shadow(o,n),e.delayedRendering=!1):(p.setRadialReference(a.center),t.styledMode||m(!0,s,g),m(!0,s,r,x),p.animate(s)),p.attr({visibility:e.visible?"inherit":"hidden"}),p.addClass(e.getClassName(),!0)}else p&&(e.graphic=p.destroy())})},S.prototype.sortByAngle=function(x,p){x.sort(function(g,r){return g.angle!==void 0&&(r.angle-g.angle)*p})},S.prototype.translate=function(x){f(this,"translate"),this.generatePoints();var p=this.options,g=p.slicedOffset,r=g+(p.borderWidth||0),a=P(p.startAngle,p.endAngle),t=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-t;var i=this.points,o=p.dataLabels.distance;p=p.ignoreHiddenPoint;var e,s=i.length,n=0;for(x||(this.center=x=this.getCenter()),e=0;e<s;e++){var l=i[e],b=t+n*a;!l.isValid()||p&&!l.visible||(n+=l.percentage/100);var T=t+n*a,D={x:x[0],y:x[1],r:x[2]/2,innerR:x[3]/2,start:Math.round(1e3*b)/1e3,end:Math.round(1e3*T)/1e3};l.shapeType="arc",l.shapeArgs=D,l.labelDistance=u(l.options.dataLabels&&l.options.dataLabels.distance,o),l.labelDistance=v(l.labelDistance,D.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),(T=(T+b)/2)>1.5*Math.PI?T-=2*Math.PI:T<-Math.PI/2&&(T+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(T)*g),translateY:Math.round(Math.sin(T)*g)},D=Math.cos(T)*x[2]/2;var d=Math.sin(T)*x[2]/2;l.tooltipPos=[x[0]+.7*D,x[1]+.7*d],l.half=T<-Math.PI/2||T>Math.PI/2?1:0,l.angle=T,b=Math.min(r,l.labelDistance/5),l.labelPosition={natural:{x:x[0]+D+Math.cos(T)*l.labelDistance,y:x[1]+d+Math.sin(T)*l.labelDistance},final:{},alignment:0>l.labelDistance?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:x[0]+D+Math.cos(T)*b,y:x[1]+d+Math.sin(T)*b},touchingSliceAt:{x:x[0]+D,y:x[1]+d}}}}f(this,"afterTranslate")},S.prototype.updateTotals=function(){var x,p=this.points,g=p.length,r=this.options.ignoreHiddenPoint,a=0;for(x=0;x<g;x++){var t=p[x];!t.isValid()||r&&!t.visible||(a+=t.y)}for(this.total=a,x=0;x<g;x++)(t=p[x]).percentage=0<a&&(t.visible||!r)?t.y/a*100:0,t.total=a},S.defaultOptions=m(U.defaultOptions,Z),S}(U),h(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:V.drawRectangle,drawTracker:R.prototype.drawTracker,getCenter:W.getCenter,getSymbol:H,isCartesian:!1,noSharedTooltip:!0,pointAttribs:R.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:H,trackerGroups:["group","dataLabelsGroup"]}),z.registerSeriesType("pie",E),E}),B(it,"Series/Pie/PieDataLabel.js",[it["Core/Series/DataLabel.js"],it["Core/Globals.js"],it["Core/Renderer/RendererUtilities.js"],it["Core/Series/SeriesRegistry.js"],it["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=R.noop,z=H.distribute,I=V.series,E=$.arrayMax,M=$.clamp,P=$.defined,y=$.merge,h=$.pick,f=$.relativeLength;return function(m){function u(){var p,g,r,a,t,i,o,e,s,n,l,b,T=this,D=T.data,d=T.chart,C=T.options.dataLabels||{},A=C.connectorPadding,N=d.plotWidth,_=d.plotHeight,L=d.plotLeft,O=Math.round(d.chartWidth/3),j=T.center,Y=j[2]/2,X=j[1],G=[[],[]],q=[0,0,0,0],Q=T.dataLabelPositioners;T.visible&&(C.enabled||T._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(T),D.forEach(function(J){J.dataLabel&&(J.visible?(G[J.half].push(J),J.dataLabel._pos=null,!P(C.style.width)&&!P(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)&&J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),G.forEach(function(J,rt){var lt,gt=J.length,mt=[];if(gt){if(T.sortByAngle(J,rt-.5),0<T.maxLabelDistance){var bt=Math.max(0,X-Y-T.maxLabelDistance),yt=Math.min(X+Y+T.maxLabelDistance,d.plotHeight);J.forEach(function(ht){0<ht.labelDistance&&ht.dataLabel&&(ht.top=Math.max(0,X-Y-ht.labelDistance),ht.bottom=Math.min(X+Y+ht.labelDistance,d.plotHeight),lt=ht.dataLabel.getBBox().height||21,ht.distributeBox={target:ht.labelPosition.natural.y-ht.top+lt/2,size:lt,rank:ht.y},mt.push(ht.distributeBox))}),z(mt,bt=yt+lt-bt,bt/5)}for(l=0;l<gt;l++){if(p=J[l],i=p.labelPosition,a=p.dataLabel,n=p.visible===!1?"hidden":"inherit",s=bt=i.natural.y,mt&&P(p.distributeBox)&&(p.distributeBox.pos===void 0?n="hidden":(o=p.distributeBox.size,s=Q.radialDistributionY(p))),delete p.positionIndex,C.justify)e=Q.justify(p,Y,j);else switch(C.alignTo){case"connectors":e=Q.alignToConnectors(J,rt,N,L);break;case"plotEdges":e=Q.alignToPlotEdges(a,rt,N,L);break;default:e=Q.radialDistributionX(T,p,s,bt)}a._attr={visibility:n,align:i.alignment},b=p.options.dataLabels||{},a._pos={x:e+h(b.x,C.x)+({left:A,right:-A}[i.alignment]||0),y:s+h(b.y,C.y)-10},i.final.x=e,i.final.y=s,h(C.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<A&&rt===1?(bt=Math.round(t-e+A),q[3]=Math.max(bt,q[3])):e+t>N-A&&rt===0&&(bt=Math.round(e+t-N+A),q[1]=Math.max(bt,q[1])),0>s-o/2?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>_&&(q[2]=Math.max(Math.round(s+o/2-_),q[2])),a.sideOverflow=bt)}}}),E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){var rt;b=y(C,J.options.dataLabels),(g=h(b.connectorWidth,1))&&(r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&0<J.labelDistance?(n=a._attr.visibility,(rt=!r)&&(J.connector=r=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(T.dataLabelsGroup),d.styledMode||r.attr({"stroke-width":g,stroke:b.connectorColor||J.color||"#666666"})),r[rt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy()))}))}function v(){this.points.forEach(function(p){var g,r=p.dataLabel;r&&p.visible&&((g=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](g),r.moved=!0):r&&r.attr({y:-9999})),delete p.distributeBox},this)}function w(p){var g=this.center,r=this.options,a=r.center,t=r.minSize||80,i=r.size!==null;if(!i){if(a[0]!==null)var o=Math.max(g[2]-Math.max(p[1],p[3]),t);else o=Math.max(g[2]-p[1]-p[3],t),g[0]+=(p[3]-p[1])/2;a[1]!==null?o=M(o,t,g[2]-Math.max(p[0],p[2])):(o=M(o,t,g[2]-p[0]-p[2]),g[1]+=(p[0]-p[2])/2),o<g[2]?(g[2]=o,g[3]=Math.min(r.thickness?Math.max(0,o-2*r.thickness):Math.max(0,f(r.innerSize||0,o)),o),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):i=!0}return i}var S=[],x={radialDistributionY:function(p){return p.top+p.distributeBox.pos},radialDistributionX:function(p,g,r,a){return p.getX(r<g.top+2||r>g.bottom-2?a:r,g.half,g)},justify:function(p,g,r){return r[0]+(p.half?-1:1)*(g+p.labelDistance)},alignToPlotEdges:function(p,g,r,a){return p=p.getBBox().width,g?p+a:r-p-a},alignToConnectors:function(p,g,r,a){var t,i=0;return p.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),g?i+a:r-i-a}};m.compose=function(p){W.compose(I),S.indexOf(p)===-1&&(S.push(p),(p=p.prototype).dataLabelPositioners=x,p.alignDataLabel=U,p.drawDataLabels=u,p.placeDataLabels=v,p.verifyDataLabelOverflow=w)}}(Z||(Z={})),Z}),B(it,"Extensions/OverlappingDataLabels.js",[it["Core/Chart/Chart.js"],it["Core/Utilities.js"]],function(W,R){function H(E,M){var P=!1;if(E){var y=E.newOpacity;E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,function(){M.styledMode||E.css({pointerEvents:y?"auto":"none"})}),$(M,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0}return P}var V=R.addEvent,$=R.fireEvent,Z=R.isArray,U=R.isNumber,z=R.objectEach,I=R.pick;V(W,"render",function(){var E=this,M=[];(this.labelCollectors||[]).forEach(function(P){M=M.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&z(P.stacking.stacks,function(y){z(y,function(h){h.label&&M.push(h.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;P.visible&&(y.enabled!==!1||P._hasPointLabels)&&(y=function(h){return h.forEach(function(f){f.visible&&(Z(f.dataLabels)?f.dataLabels:f.dataLabel?[f.dataLabel]:[]).forEach(function(m){var u=m.options;m.labelrank=I(u.labelrank,f.labelrank,f.shapeArgs&&f.shapeArgs.height),u.allowOverlap?(m.oldOpacity=m.opacity,m.newOpacity=1,H(m,E)):M.push(m)})})},y(P.nodes||[]),y(P.points))}),this.hideOverlappingLabels(M)}),W.prototype.hideOverlappingLabels=function(E){var M,P,y,h=this,f=E.length,m=h.renderer,u=!1,v=function(x){var p,g,r=x.box?0:x.padding||0,a=p=0;if(x&&(!x.alignAttr||x.placed)){var t=x.alignAttr||{x:x.attr("x"),y:x.attr("y")},i=x.parentGroup;x.width||(p=x.getBBox(),x.width=p.width,x.height=p.height,p=m.fontMetrics(null,x.element).h);var o=x.width-2*r;return(g={left:"0",center:"0.5",right:"1"}[x.alignValue])?a=+g*o:U(x.x)&&Math.round(x.x)!==x.translateX&&(a=x.x-x.translateX),{x:t.x+(i.translateX||0)+r-(a||0),y:t.y+(i.translateY||0)+r-p,width:x.width-2*r,height:x.height-2*r}}};for(P=0;P<f;P++)(M=E[P])&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=v(M));for(E.sort(function(x,p){return(p.labelrank||0)-(x.labelrank||0)}),P=0;P<f;P++){var w=(v=E[P])&&v.absoluteBox;for(M=P+1;M<f;++M){var S=(y=E[M])&&y.absoluteBox;!w||!S||v===y||v.newOpacity===0||y.newOpacity===0||v.visibility==="hidden"||y.visibility==="hidden"||S.x>=w.x+w.width||S.x+S.width<=w.x||S.y>=w.y+w.height||S.y+S.height<=w.y||((v.labelrank<y.labelrank?v:y).newOpacity=0)}}E.forEach(function(x){H(x,h)&&(u=!0)}),u&&$(h,"afterHideAllOverlappingLabels")}}),B(it,"Core/Responsive.js",[it["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.find,$=W.isArray,Z=W.isObject,U=W.merge,z=W.objectEach,I=W.pick,E=W.splat,M=W.uniqueKey;return function(P){var y=[];P.compose=function(f){return y.indexOf(f)===-1&&(y.push(f),H(f.prototype,h.prototype)),f};var h=function(){function f(){}return f.prototype.currentOptions=function(m){var u=this,v={};return function w(S,x,p,g){var r;z(S,function(a,t){if(!g&&-1<u.collectionsWithUpdate.indexOf(t)&&x[t])for(a=E(a),p[t]=[],r=0;r<Math.max(a.length,x[t].length);r++)x[t][r]&&(a[r]===void 0?p[t][r]=x[t][r]:(p[t][r]={},w(a[r],x[t][r],p[t][r],g+1)));else Z(a)?(p[t]=$(a)?[]:{},w(a,x[t]||{},p[t],g+1)):p[t]=x[t]===void 0?null:x[t]})}(m,this.options,v,0),v},f.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},f.prototype.setResponsive=function(m,u){var v=this,w=this.options.responsive,S=this.currentResponsive,x=[];!u&&w&&w.rules&&w.rules.forEach(function(p){p._id===void 0&&(p._id=M()),v.matchResponsiveRule(p,x)},this),u=U.apply(void 0,x.map(function(p){return V((w||{}).rules||[],function(g){return g._id===p})}).map(function(p){return p&&p.chartOptions})),u.isResponsiveOptions=!0,(x=x.toString()||void 0)!==(S&&S.ruleIds)&&(S&&this.update(S.undoOptions,m,!0),x?((S=this.currentOptions(u)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:x,mergedOptions:u,undoOptions:S},this.update(u,m,!0)):this.currentResponsive=void 0)},f}()}(R||(R={})),R}),B(it,"masters/highcharts.src.js",[it["Core/Globals.js"],it["Core/Utilities.js"],it["Core/Defaults.js"],it["Core/Animation/Fx.js"],it["Core/Animation/AnimationUtilities.js"],it["Core/Renderer/HTML/AST.js"],it["Core/FormatUtilities.js"],it["Core/Renderer/RendererUtilities.js"],it["Core/Renderer/SVG/SVGElement.js"],it["Core/Renderer/SVG/SVGRenderer.js"],it["Core/Renderer/HTML/HTMLElement.js"],it["Core/Renderer/HTML/HTMLRenderer.js"],it["Core/Axis/Axis.js"],it["Core/Axis/DateTimeAxis.js"],it["Core/Axis/LogarithmicAxis.js"],it["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],it["Core/Axis/Tick.js"],it["Core/Tooltip.js"],it["Core/Series/Point.js"],it["Core/Pointer.js"],it["Core/MSPointer.js"],it["Core/Legend/Legend.js"],it["Core/Chart/Chart.js"],it["Core/Axis/Stacking/StackingAxis.js"],it["Core/Axis/Stacking/StackItem.js"],it["Core/Series/Series.js"],it["Core/Series/SeriesRegistry.js"],it["Series/Column/ColumnSeries.js"],it["Series/Column/ColumnDataLabel.js"],it["Series/Pie/PieSeries.js"],it["Series/Pie/PieDataLabel.js"],it["Core/Series/DataLabel.js"],it["Core/Responsive.js"],it["Core/Color/Color.js"],it["Core/Time.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f,m,u,v,w,S,x,p,g,r,a,t,i,o,e,s,n,l,b,T,D){return W.animate=$.animate,W.animObject=$.animObject,W.getDeferredAnimation=$.getDeferredAnimation,W.setAnimation=$.setAnimation,W.stop=$.stop,W.timers=V.timers,W.AST=Z,W.Axis=y,W.Chart=g,W.chart=g.chart,W.Fx=V,W.Legend=p,W.PlotLineOrBand=m,W.Point=w,W.Pointer=x.isRequired()?x:S,W.Series=t,W.StackItem=a,W.SVGElement=I,W.SVGRenderer=E,W.Tick=u,W.Time=D,W.Tooltip=v,W.Color=T,W.color=T.parse,P.compose(E),M.compose(I),W.defaultOptions=H.defaultOptions,W.getOptions=H.getOptions,W.time=H.defaultTime,W.setOptions=H.setOptions,W.dateFormat=U.dateFormat,W.format=U.format,W.numberFormat=U.numberFormat,W.addEvent=R.addEvent,W.arrayMax=R.arrayMax,W.arrayMin=R.arrayMin,W.attr=R.attr,W.clearTimeout=R.clearTimeout,W.correctFloat=R.correctFloat,W.createElement=R.createElement,W.css=R.css,W.defined=R.defined,W.destroyObjectProperties=R.destroyObjectProperties,W.discardElement=R.discardElement,W.distribute=z.distribute,W.erase=R.erase,W.error=R.error,W.extend=R.extend,W.extendClass=R.extendClass,W.find=R.find,W.fireEvent=R.fireEvent,W.getMagnitude=R.getMagnitude,W.getStyle=R.getStyle,W.inArray=R.inArray,W.isArray=R.isArray,W.isClass=R.isClass,W.isDOMElement=R.isDOMElement,W.isFunction=R.isFunction,W.isNumber=R.isNumber,W.isObject=R.isObject,W.isString=R.isString,W.keys=R.keys,W.merge=R.merge,W.normalizeTickInterval=R.normalizeTickInterval,W.objectEach=R.objectEach,W.offset=R.offset,W.pad=R.pad,W.pick=R.pick,W.pInt=R.pInt,W.relativeLength=R.relativeLength,W.removeEvent=R.removeEvent,W.seriesType=i.seriesType,W.splat=R.splat,W.stableSort=R.stableSort,W.syncTimeout=R.syncTimeout,W.timeUnits=R.timeUnits,W.uniqueKey=R.uniqueKey,W.useSerialIds=R.useSerialIds,W.wrap=R.wrap,e.compose(o),l.compose(t),h.compose(y),f.compose(y),n.compose(s),m.compose(y),b.compose(g),r.compose(y,g,t),W}),it["masters/highcharts.src.js"]._modules=it,it["masters/highcharts.src.js"]},ot.exports?(ut.default=ut,ot.exports=pt.document?ut(pt):ut):(ct=function(){return ut(pt)}.call(nt,st,nt,ot))===void 0||(ot.exports=ct)},4812:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Series/Bullet/BulletPoint.js",[B["Series/Column/ColumnSeries.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.options=void 0,U.series=void 0,U}return H(Z,$),Z.prototype.destroy=function(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy()),$.prototype.destroy.apply(this,arguments)},Z}(W.prototype.pointClass);return V}),it(B,"Series/Bullet/BulletSeries.js",[B["Series/Bullet/BulletPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},V(y,h)},function(y,h){function f(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=R.seriesTypes.column,U=H.extend,z=H.isNumber,I=H.merge,E=H.pick,M=H.relativeLength,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.targetData=void 0,f}return $(h,y),h.prototype.drawPoints=function(){var f=this,m=f.chart,u=f.options,v=u.animationLimit||250;y.prototype.drawPoints.apply(this,arguments),f.points.forEach(function(w){var S,x,p,g,r,a=w.options,t=w.target,i=w.y,o=w.targetGraphic;if(z(t)&&t!==null){p=(g=I(u.targetOptions,a.targetOptions)).height;var e=w.shapeArgs;w.dlBox&&e&&!z(e.width)&&(e=w.dlBox),x=M(g.width,e.width),r=f.yAxis.translate(t,!1,!0,!1,!0)-g.height/2-.5,S=f.crispCol.apply({chart:m,borderWidth:g.borderWidth,options:{crisp:u.crisp}},[e.x+e.width/2-x/2,r,x,p]),o?(o[m.pointCount<v?"animate":"attr"](S),z(i)&&i!==null?o.element.point=w:o.element.point=void 0):w.targetGraphic=o=m.renderer.rect().attr(S).add(f.group),m.styledMode||o.attr({fill:E(g.color,a.color,f.zones.length&&(w.getZone.call({series:f,x:w.x,y:t,options:{}}).color||f.color)||void 0,w.color,f.color),stroke:E(g.borderColor,w.borderColor,f.options.borderColor),"stroke-width":g.borderWidth,r:g.borderRadius}),z(i)&&i!==null&&(o.element.point=w),o.addClass(w.getClassName()+" highcharts-bullet-target",!0)}else o&&(w.targetGraphic=o.destroy())})},h.prototype.getExtremes=function(f){var m=y.prototype.getExtremes.call(this,f),u=this.targetData;if(u&&u.length){var v=y.prototype.getExtremes.call(this,u);z(v.dataMin)&&(m.dataMin=Math.min(E(m.dataMin,1/0),v.dataMin)),z(v.dataMax)&&(m.dataMax=Math.max(E(m.dataMax,-1/0),v.dataMax))}return m},h.defaultOptions=I(Z.defaultOptions,{targetOptions:{width:"140%",height:3,borderWidth:0,borderRadius:0},tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.y}</b>. Target: <b>{point.target}</b><br/>'}}),h}(Z);return U(P.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]}),P.prototype.pointClass=W,R.registerSeriesType("bullet",P),P}),it(B,"masters/modules/bullet.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},5098:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Accessibility/Utils/HTMLUtilities.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.doc,V=W.win,$=R.css,Z=V.EventTarget&&new V.EventTarget||"none";function U(I){if(typeof V.MouseEvent=="function")return new V.MouseEvent(I.type,I);if(H.createEvent){var E=H.createEvent("MouseEvent");if(E.initMouseEvent)return E.initMouseEvent(I.type,I.bubbles,I.cancelable,I.view||V,I.detail,I.screenX,I.screenY,I.clientX,I.clientY,I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,I.relatedTarget),E}return z(I.type)}function z(I,E,M){var P=E||{x:0,y:0};if(typeof V.MouseEvent=="function")return new V.MouseEvent(I,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:M||Z,view:V,detail:I==="click"?1:0,screenX:P.x,screenY:P.y,clientX:P.x,clientY:P.y});if(H.createEvent){var y=H.createEvent("MouseEvent");if(y.initMouseEvent)return y.initMouseEvent(I,!0,!0,V,I==="click"?1:0,P.x,P.y,P.x,P.y,!1,!1,!1,!1,0,null),y}return{type:I}}return{addClass:function(I,E){I.classList?I.classList.add(E):I.className.indexOf(E)<0&&(I.className+=" "+E)},cloneMouseEvent:U,cloneTouchEvent:function(I){var E=function(y){for(var h=[],f=0;f<y.length;++f){var m=y.item(f);m&&h.push(m)}return h};if(typeof V.TouchEvent=="function"){var M=new V.TouchEvent(I.type,{touches:E(I.touches),targetTouches:E(I.targetTouches),changedTouches:E(I.changedTouches),ctrlKey:I.ctrlKey,shiftKey:I.shiftKey,altKey:I.altKey,metaKey:I.metaKey,bubbles:I.bubbles,cancelable:I.cancelable,composed:I.composed,detail:I.detail,view:I.view});return I.defaultPrevented&&M.preventDefault(),M}var P=U(I);return P.touches=I.touches,P.changedTouches=I.changedTouches,P.targetTouches=I.targetTouches,P},escapeStringForHTML:function(I){return I.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(I){return H.getElementById(I)},getFakeMouseEvent:z,getHeadingTagNameForElement:function(I){var E=function(y){var h=parseInt(y.slice(1),10);return"h"+Math.min(6,h+1)},M=function(y){return/H[1-6]/.test(y)},P=function(y){var h=function(u){for(var v=u;v=v.previousSibling;){var w=v.tagName||"";if(M(w))return w}return""}(y);if(h)return E(h);var f=y.parentElement;if(!f)return"p";var m=f.tagName;return M(m)?E(m):P(f)};return P(I)},removeChildNodes:function(I){for(;I.lastChild;)I.removeChild(I.lastChild)},removeClass:function(I,E){I.classList?I.classList.remove(E):I.className=I.className.replace(new RegExp(E,"g"),"")},removeElement:function(I){I&&I.parentNode&&I.parentNode.removeChild(I)},reverseChildNodes:function(I){for(var E=I.childNodes.length;E--;)I.appendChild(I.childNodes[E])},simulatedEventTarget:Z,stripHTMLTagsFromString:function(I){return typeof I=="string"?I.replace(/<\/?[^>]+(>|$)/g,""):I},visuallyHideElement:function(I){$(I,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),it(B,"Accessibility/A11yI18n.js",[B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.format,$=R.getNestedProperty,Z=R.pick;return function(U){var z=[];function I(M,P,y){var h,f,m=function(w,S){var x=w.slice(S||0),p=x.indexOf("{"),g=x.indexOf("}");if(p>-1&&g>p)return{statement:x.substring(p+1,g),begin:S+p+1,end:S+g}},u=[],v=0;do h=m(M,v),(f=M.substring(v,h&&h.begin-1)).length&&u.push({value:f,type:"constant"}),h&&u.push({value:h.statement,type:"statement"}),v=h?h.end+1:v+1;while(h);return u.forEach(function(w){w.type==="statement"&&(w.value=function(S,x){var p,g,r,a=S.indexOf("#each("),t=S.indexOf("#plural("),i=S.indexOf("["),o=S.indexOf("]");if(a>-1){var e=S.slice(a).indexOf(")")+a,s=S.substring(0,a),n=S.substring(e+1),l=S.substring(a+6,e).split(","),b=Number(l[1]),T=void 0;if(g="",p=$(l[0],x)){T=(b=isNaN(b)?p.length:b)<0?p.length+b:Math.min(b,p.length);for(var D=0;D<T;++D)g+=s+p[D]+n}return g.length?g:""}if(t>-1){var d=S.slice(t).indexOf(")")+t,C=S.substring(t+8,d).split(",");switch(Number($(C[0],x))){case 0:g=Z(C[4],C[1]);break;case 1:g=Z(C[2],C[1]);break;case 2:g=Z(C[3],C[1]);break;default:g=C[1]}return g?(r=g).trim&&r.trim()||r.replace(/^\s+|\s+$/g,""):""}if(i>-1){var A=S.substring(0,i),N=Number(S.substring(i+1,o)),_=void 0;return p=$(A,x),!isNaN(N)&&p&&(N<0?(_=p[p.length+N])===void 0&&(_=p[0]):(_=p[N])===void 0&&(_=p[p.length-1])),_!==void 0?_:""}return"{"+S+"}"}(w.value,P))}),V(u.reduce(function(w,S){return w+S.value},""),P,y)}function E(M,P){for(var y=M.split("."),h=this.options.lang,f=0;f<y.length;++f)h=h&&h[y[f]];return typeof h=="string"?I(h,P,this):""}U.compose=function(M){return z.indexOf(M)===-1&&(z.push(M),M.prototype.langFormat=E),M},U.i18nFormat=I}(H||(H={})),H}),it(B,"Accessibility/Utils/ChartUtilities.js",[B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.doc,$=R.stripHTMLTagsFromString,Z=H.defined,U=H.find,z=H.fireEvent;function I(M){if(M.points&&M.points.length){var P=U(M.points,function(y){return!!y.graphic});return P&&P.graphic&&P.graphic.element}}function E(M){var P=I(M);return P&&P.parentNode||M.graph&&M.graph.element||M.group&&M.group.element}return{fireEventOnWrappedOrUnwrappedElement:function M(P,y){var h=y.type,f=P.hcEvents;V.createEvent&&(P.dispatchEvent||P.fireEvent)?P.dispatchEvent?P.dispatchEvent(y):P.fireEvent(h,y):f&&f[h]?z(P,h,y):P.element&&M(P.element,y)},getChartTitle:function(M){return $(M.options.title.text||M.langFormat("accessibility.defaultChartTitle",{chart:M}))},getAxisDescription:function(M){return M&&(M.userOptions&&M.userOptions.accessibility&&M.userOptions.accessibility.description||M.axisTitle&&M.axisTitle.textStr||M.options.id||M.categories&&"categories"||M.dateTime&&"Time"||"values")},getAxisRangeDescription:function(M){var P=M.options||{};return P.accessibility&&P.accessibility.rangeDescription!==void 0?P.accessibility.rangeDescription:M.categories?function(y){var h=y.chart;return y.dataMax&&y.dataMin?h.langFormat("accessibility.axis.rangeCategories",{chart:h,axis:y,numCategories:y.dataMax-y.dataMin+1}):""}(M):!M.dateTime||M.min!==0&&M.dataMin!==0?function(y){var h=y.chart,f=h.options,m=f&&f.accessibility&&f.accessibility.screenReaderSection.axisRangeDateFormat||"",u={min:y.dataMin||y.min||0,max:y.dataMax||y.max||0},v=function(w){return y.dateTime?h.time.dateFormat(m,u[w]):u[w].toString()};return h.langFormat("accessibility.axis.rangeFromTo",{chart:h,axis:y,rangeFrom:v("min"),rangeTo:v("max")})}(M):function(y){var h=y.chart,f={},m=y.dataMin||y.min||0,u=y.dataMax||y.max||0,v="Seconds";f.Seconds=(u-m)/1e3,f.Minutes=f.Seconds/60,f.Hours=f.Minutes/60,f.Days=f.Hours/24,["Minutes","Hours","Days"].forEach(function(S){f[S]>2&&(v=S)});var w=f[v].toFixed(v!=="Seconds"&&v!=="Minutes"?1:0);return h.langFormat("accessibility.axis.timeRange"+v,{chart:h,axis:y,range:w.replace(".0","")})}(M)},getPointFromXY:function(M,P,y){for(var h,f=M.length;f--;)if(h=U(M[f].points||[],function(m){return m.x===P&&m.y===y}))return h},getSeriesFirstPointElement:I,getSeriesFromName:function(M,P){return P?(M.series||[]).filter(function(y){return y.name===P}):M.series},getSeriesA11yElement:E,unhideChartElementFromAT:function M(P,y){y.setAttribute("aria-hidden",!1),y!==P.renderTo&&y.parentNode&&y.parentNode!==V.body&&(Array.prototype.forEach.call(y.parentNode.childNodes,function(h){h.hasAttribute("aria-hidden")||h.setAttribute("aria-hidden",!0)}),M(P,y.parentNode))},hideSeriesFromAT:function(M){var P=E(M);P&&P.setAttribute("aria-hidden",!0)},scrollToPoint:function(M){var P=M.series.xAxis,y=M.series.yAxis,h=P&&P.scrollbar?P:y,f=h&&h.scrollbar;if(f&&Z(f.to)&&Z(f.from)){var m=f.to-f.from,u=function(v,w){if(!Z(v.dataMin)||!Z(v.dataMax))return 0;var S=v.toPixels(v.dataMin),x=v.toPixels(v.dataMax),p=v.coll==="xAxis"?"x":"y";return(v.toPixels(w[p]||0)-S)/(x-S)}(h,M);f.updatePosition(u-m/2,u+m/2),z(f,"changed",{from:f.from,to:f.to,trigger:"scrollbar",DOMEvent:null})}}}}),it(B,"Accessibility/Utils/DOMElementProvider.js",[B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R){var H=W.doc,V=R.removeElement,$=function(){function Z(){this.elements=[]}return Z.prototype.createElement=function(){var U=H.createElement.apply(H,arguments);return this.elements.push(U),U},Z.prototype.destroyCreatedElements=function(){this.elements.forEach(function(U){V(U)}),this.elements=[]},Z}();return $}),it(B,"Accessibility/Utils/EventProvider.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=R.addEvent,V=function(){function $(){this.eventRemovers=[]}return $.prototype.addEvent=function(){var Z=H.apply(W,arguments);return this.eventRemovers.push(Z),Z},$.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(Z){return Z()}),this.eventRemovers=[]},$}();return V}),it(B,"Accessibility/AccessibilityComponent.js",[B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.fireEventOnWrappedOrUnwrappedElement,U=V.getFakeMouseEvent,z=$.extend,I=function(){function E(){this.chart=void 0,this.domElementProvider=void 0,this.eventProvider=void 0,this.keyCodes=void 0,this.proxyProvider=void 0}return E.prototype.initBase=function(M,P){this.chart=M,this.eventProvider=new H,this.domElementProvider=new R,this.proxyProvider=P,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}},E.prototype.addEvent=function(M,P,y,h){return this.eventProvider.addEvent(M,P,y,h)},E.prototype.createElement=function(M,P){return this.domElementProvider.createElement(M,P)},E.prototype.fakeClickEvent=function(M){var P=U("click");Z(M,P)},E.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},E}();return z(I.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),I}),it(B,"Accessibility/KeyboardNavigationHandler.js",[B["Core/Utilities.js"]],function(W){var R=W.find;return function(){function H(V,$){this.chart=V,this.keyCodeMap=$.keyCodeMap||[],this.validate=$.validate,this.init=$.init,this.terminate=$.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return H.prototype.run=function(V){var $=V.which||V.keyCode,Z=this.response.noHandler,U=R(this.keyCodeMap,function(z){return z[0].indexOf($)>-1});return U?Z=U[1].call(this,$,V):$===9&&(Z=this.response[V.shiftKey?"prev":"next"]),Z},H}()}),it(B,"Accessibility/Components/ContainerComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,h)},function(y,h){function f(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),z=H.unhideChartElementFromAT,I=H.getChartTitle,E=V.doc,M=$.stripHTMLTagsFromString,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return U(h,y),h.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},h.prototype.handleSVGTitleElement=function(){var f=this.chart,m="highcharts-title-"+f.index,u=M(f.langFormat("accessibility.svgContainerTitle",{chartTitle:I(f)}));if(u.length){var v=this.svgTitleElement=this.svgTitleElement||E.createElementNS("http://www.w3.org/2000/svg","title");v.textContent=u,v.id=m,f.renderTo.insertBefore(v,f.renderTo.firstChild)}},h.prototype.setSVGContainerLabel=function(){var f=this.chart,m=f.langFormat("accessibility.svgContainerLabel",{chartTitle:I(f)});f.renderer.box&&m.length&&f.renderer.box.setAttribute("aria-label",m)},h.prototype.setGraphicContainerAttrs=function(){var f=this.chart,m=f.langFormat("accessibility.graphicContainerLabel",{chartTitle:I(f)});m.length&&f.container.setAttribute("aria-label",m)},h.prototype.setRenderToAttrs=function(){var f=this.chart,m=f.options.accessibility.landmarkVerbosity!=="disabled",u=f.langFormat("accessibility.chartContainerLabel",{title:I(f),chart:f});u&&(f.renderTo.setAttribute("role",m?"region":"group"),f.renderTo.setAttribute("aria-label",u))},h.prototype.makeCreditsAccessible=function(){var f=this.chart,m=f.credits;m&&(m.textStr&&m.element.setAttribute("aria-label",f.langFormat("accessibility.credits",{creditsStr:M(m.textStr)})),z(f,m.element))},h.prototype.getKeyboardNavigation=function(){var f=this.chart;return new R(f,{keyCodeMap:[],validate:function(){return!0},init:function(){var m=f.accessibility;m&&m.keyboardNavigation.tabindexContainer.focus()}})},h.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},h}(W);return P}),it(B,"Accessibility/FocusBorder.js",[B["Core/Renderer/SVG/SVGLabel.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.pick;return function(Z){var U=[],z=["x","y","transform","width","height","r","d","stroke-width"];function I(){var y=this.focusElement,h=this.options.accessibility.keyboardNavigation.focusBorder;y&&(y.removeFocusBorder(),h.enabled&&y.addFocusBorder(h.margin,{stroke:h.style.color,strokeWidth:h.style.lineWidth,r:h.style.borderRadius}))}function E(y,h){var f=this.options.accessibility.keyboardNavigation.focusBorder,m=h||y.element;m&&m.focus&&(m.hcEvents&&m.hcEvents.focusin||V(m,"focusin",function(){}),m.focus(),f.hideBrowserFocusOutline&&(m.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=y,this.renderFocusBorder()}function M(y,h){this.focusBorder&&this.removeFocusBorder();var f=this.getBBox(),m=$(y,3),u=this.parentGroup,v=this.scaleX||u&&u.scaleX,w=this.scaleY||u&&u.scaleY,S=(v?!w:w)?Math.abs(v||w||1):(Math.abs(v||1)+Math.abs(w||1))/2;f.x+=this.translateX?this.translateX:0,f.y+=this.translateY?this.translateY:0;var x,p,g,r=f.x-m,a=f.y-m,t=f.width+2*m,i=f.height+2*m,o=this instanceof W;if(this.element.nodeName==="text"||o){var e=!!this.rotation,s=o?{x:e?1:0,y:0}:(p=0,g=0,(x=this).attr("text-anchor")==="middle"?p=g=.5:x.rotation?p=.25:g=.75,{x:p,y:g}),n=+this.attr("x"),l=+this.attr("y");if(isNaN(n)||(r=n-f.width*s.x-m),isNaN(l)||(a=l-f.height*s.y-m),o&&e){var b=t;t=i,i=b,isNaN(n)||(r=n-f.height*s.x-m),isNaN(l)||(a=l-f.width*s.y-m)}}this.focusBorder=this.renderer.rect(r,a,t,i,parseInt((h&&h.r||0).toString(),10)/S).addClass("highcharts-focus-border").attr({zIndex:99}).add(u),this.renderer.styledMode||this.focusBorder.attr({stroke:h&&h.stroke,"stroke-width":(h&&h.strokeWidth||0)/S}),function(T){for(var D=[],d=1;d<arguments.length;d++)D[d-1]=arguments[d];T.focusBorderUpdateHooks||(T.focusBorderUpdateHooks={},z.forEach(function(C){var A=C+"Setter",N=T[A]||T._defaultSetter;T.focusBorderUpdateHooks[A]=N,T[A]=function(){var _=N.apply(T,arguments);return T.addFocusBorder.apply(T,D),_}}))}(this,y,h),function(T){if(!T.focusBorderDestroyHook){var D=T.destroy;T.destroy=function(){return T.focusBorder&&T.focusBorder.destroy&&T.focusBorder.destroy(),D.apply(T,arguments)},T.focusBorderDestroyHook=D}}(this)}function P(){var y;(function(h){h.focusBorderUpdateHooks&&(Object.keys(h.focusBorderUpdateHooks).forEach(function(f){var m=h.focusBorderUpdateHooks[f];m===h._defaultSetter?delete h[f]:h[f]=m}),delete h.focusBorderUpdateHooks)})(this),(y=this).focusBorderDestroyHook&&(y.destroy=y.focusBorderDestroyHook,delete y.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}Z.compose=function(y,h){if(U.indexOf(y)===-1){U.push(y);var f=y.prototype;f.renderFocusBorder=I,f.setFocusToElement=E}if(U.indexOf(h)===-1){U.push(h);var m=h.prototype;m.addFocusBorder=M,m.removeFocusBorder=P}}}(H||(H={})),H}),it(B,"Accessibility/Utils/Announcer.js",[B["Core/Renderer/HTML/AST.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=H.doc,U=V.addClass,z=V.visuallyHideElement,I=$.attr;return function(){function E(M,P){this.chart=M,this.domElementProvider=new R,this.announceRegion=this.addAnnounceRegion(P)}return E.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},E.prototype.announce=function(M){var P=this;W.setElementHTML(this.announceRegion,M),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(function(){P.announceRegion.innerHTML=W.emptyHTML,delete P.clearAnnouncementRegionTimer},1e3)},E.prototype.addAnnounceRegion=function(M){var P=this.chart.announcerContainer||this.createAnnouncerContainer(),y=this.domElementProvider.createElement("div");return I(y,{"aria-hidden":!1,"aria-live":M}),this.chart.styledMode?U(y,"highcharts-visually-hidden"):z(y),P.appendChild(y),y},E.prototype.createAnnouncerContainer=function(){var M=this.chart,P=Z.createElement("div");return I(P,{"aria-hidden":!1,class:"highcharts-announcer-container"}),P.style.position="relative",M.renderTo.insertBefore(P,M.renderTo.firstChild),M.announcerContainer=P,P},E}()}),it(B,"Accessibility/Components/AnnotationsA11y.js",[B["Accessibility/Utils/HTMLUtilities.js"]],function(W){var R=W.escapeStringForHTML,H=W.stripHTMLTagsFromString;function V(z){return(z.annotations||[]).reduce(function(I,E){return E.options&&E.options.visible!==!1&&(I=I.concat(E.labels)),I},[])}function $(z){return z.options&&z.options.accessibility&&z.options.accessibility.description||z.graphic&&z.graphic.text&&z.graphic.text.textStr||""}function Z(z){var I=z.options&&z.options.accessibility&&z.options.accessibility.description;if(I)return I;var E=z.chart,M=$(z),P=z.points.filter(function(m){return!!m.graphic}).map(function(m){var u=m.accessibility&&m.accessibility.valueDescription||function(w){return w.graphic&&w.graphic.element&&w.graphic.element.getAttribute("aria-label")||""}(m),v=m&&m.series.name||"";return(v?v+", ":"")+"data point "+u}).filter(function(m){return!!m}),y=P.length,h="accessibility.screenReaderSection.annotations.description"+(y>1?"MultiplePoints":y?"SinglePoint":"NoPoints"),f={annotationText:M,annotation:z,numPoints:y,annotationPoint:P[0],additionalAnnotationPoints:P.slice(1)};return E.langFormat(h,f)}function U(z){return V(z).map(function(I){var E=R(H(Z(I)));return E?"<li>".concat(E,"</li>"):""})}return{getAnnotationsInfoHTML:function(z){var I=z.annotations;if(!I||!I.length)return"";var E=U(z);return'<ul style="list-style-type: none">'.concat(E.join(" "),"</ul>")},getAnnotationLabelDescription:Z,getAnnotationListItems:U,getPointAnnotationTexts:function(z){var I=V(z.series.chart).filter(function(E){return E.points.indexOf(z)>-1});return I.length?I.map(function(E){return"".concat($(E))}):[]}}}),it(B,"Accessibility/Components/InfoRegionsComponent.js",[B["Accessibility/A11yI18n.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/Components/AnnotationsA11y.js"],B["Core/Renderer/HTML/AST.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,P=this&&this.__extends||(M=function(e,s){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var b in l)l.hasOwnProperty(b)&&(n[b]=l[b])},M(e,s)},function(e,s){function n(){this.constructor=e}M(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),y=V.getAnnotationsInfoHTML,h=Z.getAxisDescription,f=Z.getAxisRangeDescription,m=Z.getChartTitle,u=Z.unhideChartElementFromAT,v=U.format,w=z.doc,S=I.addClass,x=I.getElement,p=I.getHeadingTagNameForElement,g=I.stripHTMLTagsFromString,r=I.visuallyHideElement,a=E.attr,t=E.pick;function i(e){return e.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}var o=function(e){function s(){var n=e!==null&&e.apply(this,arguments)||this;return n.announcer=void 0,n.screenReaderSections={},n}return P(s,e),s.prototype.init=function(){var n=this.chart,l=this;this.initRegionsDefinitions(),this.addEvent(n,"aftergetTableAST",function(b){l.onDataTableCreated(b)}),this.addEvent(n,"afterViewData",function(b){b.wasHidden&&(l.dataTableDiv=b.element,setTimeout(function(){l.focusDataTable()},300))}),this.announcer=new H(n,"assertive")},s.prototype.initRegionsDefinitions=function(){var n=this;this.screenReaderSections={before:{element:null,buildContent:function(l){var b=l.options.accessibility.screenReaderSection.beforeChartFormatter;return b?b(l):n.defaultBeforeChartFormatter(l)},insertIntoDOM:function(l,b){b.renderTo.insertBefore(l,b.renderTo.firstChild)},afterInserted:function(){n.sonifyButtonId!==void 0&&n.initSonifyButton(n.sonifyButtonId),n.dataTableButtonId!==void 0&&n.initDataTableButton(n.dataTableButtonId)}},after:{element:null,buildContent:function(l){var b=l.options.accessibility.screenReaderSection.afterChartFormatter;return b?b(l):n.defaultAfterChartFormatter()},insertIntoDOM:function(l,b){b.renderTo.insertBefore(l,b.container.nextSibling)},afterInserted:function(){n.chart.accessibility&&n.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},s.prototype.onChartRender=function(){var n=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(l){n.updateScreenReaderSection(l)})},s.prototype.getLinkedDescriptionElement=function(){var n=this.chart.options.accessibility.linkedDescription;if(n){if(typeof n!="string")return n;var l=v(n,this.chart),b=w.querySelectorAll(l);return b.length===1?b[0]:void 0}},s.prototype.setLinkedDescriptionAttrs=function(){var n=this.linkedDescriptionElement;n&&(n.setAttribute("aria-hidden","true"),S(n,"highcharts-linked-description"))},s.prototype.updateScreenReaderSection=function(n){var l=this.chart,b=this.screenReaderSections[n],T=b.buildContent(l),D=b.element=b.element||this.createElement("div"),d=D.firstChild||this.createElement("div");T?(this.setScreenReaderSectionAttribs(D,n),$.setElementHTML(d,T),D.appendChild(d),b.insertIntoDOM(D,l),l.styledMode?S(d,"highcharts-visually-hidden"):r(d),u(l,d),b.afterInserted&&b.afterInserted()):(D.parentNode&&D.parentNode.removeChild(D),b.element=null)},s.prototype.setScreenReaderSectionAttribs=function(n,l){var b=this.chart,T=b.langFormat("accessibility.screenReaderSection."+l+"RegionLabel",{chart:b,chartTitle:m(b)}),D="highcharts-screen-reader-region-".concat(l,"-").concat(b.index);a(n,{id:D,"aria-label":T||void 0}),n.style.position="relative",T&&n.setAttribute("role",b.options.accessibility.landmarkVerbosity==="all"?"region":"group")},s.prototype.defaultBeforeChartFormatter=function(){var n=this.chart,l=n.options.accessibility.screenReaderSection.beforeChartFormat;if(!l)return"";var b=this.getAxesDescription(),T=n.sonify&&n.options.sonification&&n.options.sonification.enabled,D="highcharts-a11y-sonify-data-btn-"+n.index,d="hc-linkto-highcharts-data-table-"+n.index,C=y(n),A=n.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:n}),N={headingTagName:p(n.renderTo),chartTitle:m(n),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:b.xAxis,yAxisDescription:b.yAxis,playAsSoundButton:T?this.getSonifyButtonText(D):"",viewTableButton:n.getCSV?this.getDataTableButtonText(d):"",annotationsTitle:C?A:"",annotationsList:C},_=W.i18nFormat(l,N,n);return this.dataTableButtonId=d,this.sonifyButtonId=D,i(_)},s.prototype.defaultAfterChartFormatter=function(){var n=this.chart,l=n.options.accessibility.screenReaderSection.afterChartFormat;if(!l)return"";var b={endOfChartMarker:this.getEndOfChartMarkerText()};return i(W.i18nFormat(l,b,n))},s.prototype.getLinkedDescription=function(){var n=this.linkedDescriptionElement,l=n&&n.innerHTML||"";return g(l)},s.prototype.getLongdescText=function(){var n=this.chart.options,l=n.caption,b=l&&l.text,T=this.getLinkedDescription();return n.accessibility.description||T||b||""},s.prototype.getTypeDescriptionText=function(){var n=this.chart;return n.types?n.options.accessibility.typeDescription||function(l,b){var T=b[0],D=l.series&&l.series[0]||{},d=l.mapView&&l.mapView.geoMap&&l.mapView.geoMap.title,C={numSeries:l.series.length,numPoints:D.points&&D.points.length,chart:l,mapTitle:d};return T?T==="map"?function(A,N){return N.mapTitle?A.langFormat("accessibility.chartTypes.mapTypeDescription",N):A.langFormat("accessibility.chartTypes.unknownMap",N)}(l,C):l.types.length>1?function(A,N){return A.langFormat("accessibility.chartTypes.combinationChart",N)}(l,C):function(A,N,_){var L=N[0],O=A.langFormat("accessibility.seriesTypeDescriptions."+L,_),j=A.series&&A.series.length<2?"Single":"Multiple";return(A.langFormat("accessibility.chartTypes."+L+j,_)||A.langFormat("accessibility.chartTypes.default"+j,_))+(O?" "+O:"")}(l,b,C):function(A,N){return A.langFormat("accessibility.chartTypes.emptyChart",N)}(l,C)}(n,n.types):""},s.prototype.getDataTableButtonText=function(n){var l=this.chart;return'<button id="'+n+'">'+l.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:l,chartTitle:m(l)})+"</button>"},s.prototype.getSonifyButtonText=function(n){var l=this.chart;return l.options.sonification&&l.options.sonification.enabled===!1?"":'<button id="'+n+'">'+l.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:l,chartTitle:m(l)})+"</button>"},s.prototype.getSubtitleText=function(){var n=this.chart.options.subtitle;return g(n&&n.text||"")},s.prototype.getEndOfChartMarkerText=function(){var n=this.chart,l=n.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:n});return'<div id="highcharts-end-of-chart-marker-'+n.index+'">'+l+"</div>"},s.prototype.onDataTableCreated=function(n){var l=this.chart;if(l.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var b=n.tree.attributes||{};b.tabindex=-1,b.summary=function(T){return T.langFormat("accessibility.table.tableSummary",{chart:T})}(l),n.tree.attributes=b}},s.prototype.focusDataTable=function(){var n=this.dataTableDiv,l=n&&n.getElementsByTagName("table")[0];l&&l.focus&&l.focus()},s.prototype.initSonifyButton=function(n){var l=this,b=this.sonifyButton=x(n),T=this.chart,D=function(d){b&&(b.setAttribute("aria-hidden","true"),b.setAttribute("aria-label","")),d.preventDefault(),d.stopPropagation();var C=T.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:T});l.announcer.announce(C),setTimeout(function(){b&&(b.removeAttribute("aria-hidden"),b.removeAttribute("aria-label")),T.sonify&&T.sonify()},1e3)};b&&T&&(b.setAttribute("tabindex",-1),b.onclick=function(d){(T.options.accessibility&&T.options.accessibility.screenReaderSection.onPlayAsSoundClick||D).call(this,d,T)})},s.prototype.initDataTableButton=function(n){var l=this.viewDataTableButton=x(n),b=this.chart,T=n.replace("hc-linkto-","");l&&(a(l,{tabindex:-1,"aria-expanded":!!x(T)}),l.onclick=b.options.accessibility.screenReaderSection.onViewDataTableClick||function(){b.viewData()})},s.prototype.getAxesDescription=function(){var n=this.chart,l=function(A,N){var _=n[A];return _.length>1||_[0]&&t(_[0].options.accessibility&&_[0].options.accessibility.enabled,N)},b=!!n.types&&n.types.indexOf("map")<0&&n.types.indexOf("treemap")<0&&n.types.indexOf("tilemap")<0,T=!!n.hasCartesianSeries,D=l("xAxis",!n.angular&&T&&b),d=l("yAxis",T&&b),C={};return D&&(C.xAxis=this.getAxisDescriptionText("xAxis")),d&&(C.yAxis=this.getAxisDescriptionText("yAxis")),C},s.prototype.getAxisDescriptionText=function(n){var l=this.chart,b=l[n];return l.langFormat("accessibility.axis."+n+"Description"+(b.length>1?"Plural":"Singular"),{chart:l,names:b.map(function(T){return h(T)}),ranges:b.map(function(T){return f(T)}),numAxes:b.length})},s.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},s}(R);return o}),it(B,"Accessibility/Components/MenuComponent.js",[B["Core/Chart/Chart.js"],B["Core/Utilities.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(f,m){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},U(f,m)},function(f,m){function u(){this.constructor=f}U(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),I=R.attr,E=$.getChartTitle,M=$.unhideChartElementFromAT,P=Z.getFakeMouseEvent;function y(f){return f.exportSVGElements&&f.exportSVGElements[0]}var h=function(f){function m(){return f!==null&&f.apply(this,arguments)||this}return z(m,f),m.prototype.init=function(){var u=this.chart,v=this;this.addEvent(u,"exportMenuShown",function(){v.onMenuShown()}),this.addEvent(u,"exportMenuHidden",function(){v.onMenuHidden()}),this.createProxyGroup()},m.prototype.onMenuHidden=function(){var u=this.chart.exportContextMenu;u&&u.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},m.prototype.onMenuShown=function(){var u=this.chart,v=u.exportContextMenu;v&&(this.addAccessibleContextMenuAttribs(),M(u,v)),this.setExportButtonExpandedState("true")},m.prototype.setExportButtonExpandedState=function(u){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",u)},m.prototype.onChartRender=function(){var u=this.chart,v=u.focusElement,w=u.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&v&&v===u.exportingGroup&&(v.focusBorder?u.setFocusToElement(v,this.exportButtonProxy.buttonElement):w&&w.keyboardNavigation.tabindexContainer.focus())},m.prototype.proxyMenuButton=function(){var u=this.chart,v=this.proxyProvider,w=y(u);(function(S){var x=S.options.exporting,p=y(S);return!!(x&&x.enabled!==!1&&x.accessibility&&x.accessibility.enabled&&p&&p.element)})(u)&&w&&(this.exportButtonProxy=v.addProxyElement("chartMenu",{click:w},{"aria-label":u.langFormat("accessibility.exporting.menuButtonLabel",{chart:u,chartTitle:E(u)}),"aria-expanded":!1,title:u.options.lang.contextButtonTitle||null}))},m.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},m.prototype.addAccessibleContextMenuAttribs=function(){var u=this.chart,v=u.exportDivElements;if(v&&v.length){v.forEach(function(S){S&&(S.tagName!=="LI"||S.children&&S.children.length?S.setAttribute("aria-hidden","true"):S.setAttribute("tabindex",-1))});var w=v[0]&&v[0].parentNode;w&&I(w,{"aria-hidden":void 0,"aria-label":u.langFormat("accessibility.exporting.chartMenuLabel",{chart:u}),role:"list"})}},m.prototype.getKeyboardNavigation=function(){var u=this.keyCodes,v=this.chart,w=this;return new V(v,{keyCodeMap:[[[u.left,u.up],function(){return w.onKbdPrevious(this)}],[[u.right,u.down],function(){return w.onKbdNext(this)}],[[u.enter,u.space],function(){return w.onKbdClick(this)}]],validate:function(){return!!v.exporting&&v.options.exporting.enabled!==!1&&v.options.exporting.accessibility.enabled!==!1},init:function(){var S=w.exportButtonProxy,x=w.chart.exportingGroup;S&&x&&v.setFocusToElement(x,S.buttonElement)},terminate:function(){v.hideExportMenu()}})},m.prototype.onKbdPrevious=function(u){for(var v=this.chart,w=v.options.accessibility,S=u.response,x=v.highlightedExportItemIx||0;x--;)if(v.highlightExportItem(x))return S.success;return w.keyboardNavigation.wrapAround?(v.highlightLastExportItem(),S.success):S.prev},m.prototype.onKbdNext=function(u){for(var v=this.chart,w=v.options.accessibility,S=u.response,x=(v.highlightedExportItemIx||0)+1;x<v.exportDivElements.length;++x)if(v.highlightExportItem(x))return S.success;return w.keyboardNavigation.wrapAround?(v.highlightExportItem(0),S.success):S.next},m.prototype.onKbdClick=function(u){var v=this.chart,w=v.exportDivElements[v.highlightedExportItemIx],S=y(v).element;return v.openMenu?this.fakeClickEvent(w):(this.fakeClickEvent(S),v.highlightExportItem(0)),u.response.success},m}(H);return function(f){var m=[];function u(){var x=y(this);if(x){var p=x.element;p.onclick&&p.onclick(P("click"))}}function v(){var x=this,p=x.exportDivElements;p&&x.exportContextMenu&&x.openMenu&&(p.forEach(function(g){g&&g.className==="highcharts-menu-item"&&g.onmouseout&&g.onmouseout(P("mouseout"))}),x.highlightedExportItemIx=0,x.exportContextMenu.hideMenu(),x.container.focus())}function w(x){var p=this.exportDivElements&&this.exportDivElements[x],g=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(p&&p.tagName==="LI"&&(!p.children||!p.children.length)){var r=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return p.focus&&r&&p.focus(),g&&g.onmouseout&&g.onmouseout(P("mouseout")),p.onmouseover&&p.onmouseover(P("mouseover")),this.highlightedExportItemIx=x,!0}return!1}function S(){var x=this;if(x.exportDivElements){for(var p=x.exportDivElements.length;p--;)if(x.highlightExportItem(p))return!0}return!1}f.compose=function(x){if(m.indexOf(x)===-1){m.push(x);var p=W.prototype;p.hideExportMenu=v,p.highlightExportItem=w,p.highlightLastExportItem=S,p.showExportMenu=u}}}(h||(h={})),h}),it(B,"Accessibility/KeyboardNavigation.js",[B["Core/Globals.js"],B["Accessibility/Components/MenuComponent.js"],B["Core/Utilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z=W.doc,U=W.win,z=H.addEvent,I=H.fireEvent,E=$.getElement,M=$.simulatedEventTarget,P=function(){function y(h,f){this.chart=void 0,this.components=void 0,this.currentModuleIx=NaN,this.eventProvider=void 0,this.exitAnchor=void 0,this.modules=[],this.tabindexContainer=void 0,this.init(h,f)}return y.prototype.init=function(h,f){var m=this,u=this.eventProvider=new V;this.chart=h,this.components=f,this.modules=[],this.currentModuleIx=0,this.update(),u.addEvent(this.tabindexContainer,"keydown",function(v){return m.onKeydown(v)}),u.addEvent(this.tabindexContainer,"focus",function(v){return m.onFocus(v)}),["mouseup","touchend"].forEach(function(v){return u.addEvent(Z,v,function(w){return m.onMouseUp(w)})}),["mousedown","touchstart"].forEach(function(v){return u.addEvent(h.renderTo,v,function(){m.isClickingChart=!0})}),u.addEvent(h.renderTo,"mouseover",function(){m.pointerIsOverChart=!0}),u.addEvent(h.renderTo,"mouseout",function(){m.pointerIsOverChart=!1})},y.prototype.update=function(h){var f=this.chart.options.accessibility,m=f&&f.keyboardNavigation,u=this.components;this.updateContainerTabindex(),m&&m.enabled&&h&&h.length?(this.modules=h.reduce(function(v,w){var S=u[w].getKeyboardNavigation();return v.concat(S)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},y.prototype.updateExitAnchor=function(){var h="highcharts-end-of-chart-marker-".concat(this.chart.index),f=E(h);this.removeExitAnchor(),f?(this.makeElementAnExitAnchor(f),this.exitAnchor=f):this.createExitAnchor()},y.prototype.move=function(h){var f=this.modules&&this.modules[this.currentModuleIx];f&&f.terminate&&f.terminate(h),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=h;var m=this.modules&&this.modules[this.currentModuleIx];if(m){if(m.validate&&!m.validate())return this.move(h);if(m.init)return m.init(h),!0}return this.currentModuleIx=0,this.exiting=!0,h>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},y.prototype.onFocus=function(h){var f=this.chart,m=h.relatedTarget&&f.container.contains(h.relatedTarget);if(!(this.exiting||this.tabbingInBackwards||this.isClickingChart||m)){var u=this.getFirstValidModuleIx();u!==null&&(this.currentModuleIx=u,this.modules[u].init(1))}this.exiting=!1},y.prototype.onMouseUp=function(h){if(delete this.isClickingChart,!this.keyboardReset&&h.relatedTarget!==M){var f=this.chart;if(!this.pointerIsOverChart){var m=this.modules&&this.modules[this.currentModuleIx||0];m&&m.terminate&&m.terminate(),this.currentModuleIx=0}f.focusElement&&(f.focusElement.removeFocusBorder(),delete f.focusElement),this.keyboardReset=!0}},y.prototype.onKeydown=function(h){var f,m=h||U.event,u=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.keyboardReset=!1,this.exiting=!1,u){var v=u.run(m);v===u.response.success?f=!0:v===u.response.prev?f=this.move(-1):v===u.response.next&&(f=this.move(1)),f&&(m.preventDefault(),m.stopPropagation())}},y.prototype.updateContainerTabindex=function(){var h,f=this.chart.options.accessibility,m=f&&f.keyboardNavigation,u=!(m&&m.enabled===!1),v=this.chart,w=v.container;v.renderTo.hasAttribute("tabindex")?(w.removeAttribute("tabindex"),h=v.renderTo):h=w,this.tabindexContainer=h;var S=h.getAttribute("tabindex");u&&!S?h.setAttribute("tabindex","0"):u||v.container.removeAttribute("tabindex")},y.prototype.createExitAnchor=function(){var h=this.chart,f=this.exitAnchor=Z.createElement("div");h.renderTo.appendChild(f),this.makeElementAnExitAnchor(f)},y.prototype.makeElementAnExitAnchor=function(h){var f=this.tabindexContainer.getAttribute("tabindex")||0;h.setAttribute("class","highcharts-exit-anchor"),h.setAttribute("tabindex",f),h.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(h)},y.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},y.prototype.addExitAnchorEventsToEl=function(h){var f=this.chart,m=this;this.eventProvider.addEvent(h,"focus",function(u){var v=u||U.event,w=!(v.relatedTarget&&f.container.contains(v.relatedTarget)||m.exiting);if(f.focusElement&&delete f.focusElement,w){if(m.tabbingInBackwards=!0,m.tabindexContainer.focus(),delete m.tabbingInBackwards,v.preventDefault(),m.modules&&m.modules.length){m.currentModuleIx=m.modules.length-1;var S=m.modules[m.currentModuleIx];S&&S.validate&&!S.validate()?m.move(-1):S&&S.init(-1)}}else m.exiting=!1})},y.prototype.getFirstValidModuleIx=function(){for(var h=this.modules.length,f=0;f<h;++f){var m=this.modules[f];if(!m.validate||m.validate())return f}return null},y.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},y}();return function(y){var h=[];function f(){var u=this;I(this,"dismissPopupContent",{},function(){u.tooltip&&u.tooltip.hide(0),u.hideExportMenu()})}function m(u){(u.which||u.keyCode)===27&&W.charts&&W.charts.forEach(function(v){v&&v.dismissPopupContent&&v.dismissPopupContent()})}y.compose=function(u){return R.compose(u),h.indexOf(u)===-1&&(h.push(u),u.prototype.dismissPopupContent=f),h.indexOf(Z)===-1&&(h.push(Z),z(Z,"keydown",m)),u}}(P||(P={})),P}),it(B,"Accessibility/Components/LegendComponent.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Globals.js"],B["Core/Legend/Legend.js"],B["Core/Utilities.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(a,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),M=W.animObject,P=R.doc,y=V.addEvent,h=V.fireEvent,f=V.isNumber,m=V.pick,u=V.syncTimeout,v=U.getChartTitle,w=z.stripHTMLTagsFromString,S=z.addClass,x=z.removeClass;function p(a){var t=a.legend&&a.legend.allItems,i=a.options.legend.accessibility||{},o=a.colorAxis&&a.colorAxis.some(function(e){return!e.dataClasses||!e.dataClasses.length});return!(!t||!t.length||o||i.enabled===!1)}function g(a,t){var i=t.legendItem||{};t.setState(a?"hover":"",!0);for(var o=0,e=["group","label","symbol"];o<e.length;o++){var s=i[e[o]],n=s&&s.element||s;n&&h(n,a?"mouseover":"mouseout")}}var r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.highlightedLegendItemIx=NaN,i.proxyGroup=null,i}return E(t,a),t.prototype.init=function(){var i=this;this.recreateProxies(),this.addEvent(H,"afterScroll",function(){this.chart===i.chart&&(i.proxyProvider.updateGroupProxyElementPositions("legend"),i.updateLegendItemProxyVisibility(),i.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(i.highlightedLegendItemIx))}),this.addEvent(H,"afterPositionItem",function(o){this.chart===i.chart&&this.chart.renderer&&i.updateProxyPositionForItem(o.item)}),this.addEvent(H,"afterRender",function(){this.chart===i.chart&&this.chart.renderer&&i.recreateProxies()&&u(function(){return i.proxyProvider.updateGroupProxyElementPositions("legend")},M(m(this.chart.renderer.globalAnimation,!0)).duration)})},t.prototype.updateLegendItemProxyVisibility=function(){var i,o=this.chart,e=o.legend,s=e.allItems||[],n=e.currentPage||1,l=e.clipHeight||0;s.forEach(function(b){if(b.a11yProxyElement){var T=e.pages&&e.pages.length,D=b.a11yProxyElement.element,d=!1;if(i=b.legendItem||{},T){var C=i.pageIx||0;d=(i.y||0)+(i.label?Math.round(i.label.getBBox().height):0)-e.pages[C]>l||C!==n-1}d?o.styledMode?S(D,"highcharts-a11y-invisible"):D.style.visibility="hidden":(x(D,"highcharts-a11y-invisible"),D.style.visibility="")}})},t.prototype.onChartRender=function(){p(this.chart)||this.removeProxies()},t.prototype.highlightAdjacentLegendPage=function(i){var o=this.chart,e=o.legend,s=(e.currentPage||1)+i,n=e.pages||[];if(s>0&&s<=n.length)for(var l=0,b=0,T=e.allItems;b<T.length;b++)((T[b].legendItem||{}).pageIx||0)+1===s&&o.highlightLegendItem(l)&&(this.highlightedLegendItemIx=l),++l},t.prototype.updateProxyPositionForItem=function(i){i.a11yProxyElement&&i.a11yProxyElement.refreshPosition()},t.prototype.recreateProxies=function(){var i=P.activeElement,o=this.proxyGroup,e=i&&o&&o.contains(i);return this.removeProxies(),!!p(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),e&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)},t.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},t.prototype.updateLegendTitle=function(){var i=this.chart,o=w((i.legend&&i.legend.options.title&&i.legend.options.title.text||"").replace(/<br ?\/?>/g," ")),e=i.langFormat("accessibility.legend.legendLabel"+(o?"":"NoTitle"),{chart:i,legendTitle:o,chartTitle:v(i)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":e})},t.prototype.addLegendProxyGroup=function(){var i=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:i})},t.prototype.proxyLegendItems=function(){var i,o=this;((this.chart.legend||{}).allItems||[]).forEach(function(e){(i=e.legendItem||{}).label&&i.label.element&&o.proxyLegendItem(e)})},t.prototype.proxyLegendItem=function(i){var o=i.legendItem||{};if(o.label&&o.group){var e=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:w(i.name),item:i}),s={tabindex:-1,"aria-pressed":i.visible,"aria-label":e},n=o.group.div?o.label:o.group;i.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:o.label,visual:n.element},s)}},t.prototype.getKeyboardNavigation=function(){var i=this.keyCodes,o=this,e=this.chart;return new Z(e,{keyCodeMap:[[[i.left,i.right,i.up,i.down],function(s){return o.onKbdArrowKey(this,s)}],[[i.enter,i.space],function(){return o.onKbdClick(this)}],[[i.pageDown,i.pageUp],function(s){var n=s===i.pageDown?1:-1;return o.highlightAdjacentLegendPage(n),this.response.success}]],validate:function(){return o.shouldHaveLegendNavigation()},init:function(){e.highlightLegendItem(0),o.highlightedLegendItemIx=0},terminate:function(){o.highlightedLegendItemIx=-1,e.legend.allItems.forEach(function(s){return g(!1,s)})}})},t.prototype.onKbdArrowKey=function(i,o){var e=this.keyCodes,s=i.response,n=this.chart,l=n.options.accessibility,b=n.legend.allItems.length,T=o===e.left||o===e.up?-1:1;return n.highlightLegendItem(this.highlightedLegendItemIx+T)?(this.highlightedLegendItemIx+=T,s.success):(b>1&&l.keyboardNavigation.wrapAround&&i.init(T),s.success)},t.prototype.onKbdClick=function(i){var o=this.chart.legend.allItems[this.highlightedLegendItemIx];return o&&o.a11yProxyElement&&o.a11yProxyElement.click(),i.response.success},t.prototype.shouldHaveLegendNavigation=function(){if(!p(this.chart))return!1;var i=this.chart,o=(i.options.legend||{}).accessibility||{};return!!(i.legend.display&&o.keyboardNavigation&&o.keyboardNavigation.enabled)},t}($);return function(a){var t=[];function i(e){var s,n,l,b,T=this.legend.allItems,D=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,d=T[e],C=d.legendItem||{};if(d){f(D)&&T[D]&&g(!1,T[D]),n=e,l=((s=this.legend).allItems[n].legendItem||{}).pageIx,b=s.currentPage,l!==void 0&&l+1!==b&&s.scroll(1+l-b);var A=C.label,N=d.a11yProxyElement&&d.a11yProxyElement.buttonElement;return A&&A.element&&N&&this.setFocusToElement(A,N),g(!0,d),!0}return!1}function o(e){var s=this.chart.options.accessibility,n=e.item;s.enabled&&n&&n.a11yProxyElement&&n.a11yProxyElement.buttonElement.setAttribute("aria-pressed",e.visible?"true":"false")}a.compose=function(e,s){t.indexOf(e)===-1&&(t.push(e),e.prototype.highlightLegendItem=i),t.indexOf(s)===-1&&(t.push(s),y(s,"afterColorizeItem",o))}}(r||(r={})),r}),it(B,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[B["Accessibility/Components/AnnotationsA11y.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/FormatUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.getPointAnnotationTexts,U=R.getAxisDescription,z=R.getSeriesFirstPointElement,I=R.getSeriesA11yElement,E=R.unhideChartElementFromAT,M=H.format,P=H.numberFormat,y=V.reverseChildNodes,h=V.stripHTMLTagsFromString,f=$.find,m=$.isNumber,u=$.pick,v=$.defined;function w(t){var i=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(i!==!1&&t.points&&t.points.length>=i)}function S(t,i){var o=t.series,e=o.chart,s=e.options.accessibility.point||{},n=o.options.accessibility&&o.options.accessibility.point||{},l=o.tooltipOptions||{},b=e.options.lang;return m(i)?P(i,n.valueDecimals||s.valueDecimals||l.valueDecimals||-1,b.decimalPoint,b.accessibility.thousandsSep||b.thousandsSep):i}function x(t,i){var o=t[i];return t.chart.langFormat("accessibility.series."+i+"Description",{name:U(o),series:t})}function p(t){var i=t.series,o=i.chart.options.accessibility.point||{},e=i.chart.options.accessibility&&i.chart.options.accessibility.point||{},s=i.tooltipOptions||{},n=e.valuePrefix||o.valuePrefix||s.valuePrefix||"",l=e.valueSuffix||o.valueSuffix||s.valueSuffix||"",b=S(t,t[t.value!==void 0?"value":"y"]);return t.isNull?i.chart.langFormat("accessibility.series.nullPointValue",{point:t}):i.pointArrayMap?function(T,D,d){var C=D||"",A=d||"";return T.series.pointArrayMap.reduce(function(N,_){return N+(N.length?", ":"")+function(L){var O=S(T,u(T[L],T.options[L]));return L+": "+C+O+A}(_)},"")}(t,n,l):n+b+l}function g(t){var i=t.series,o=i.chart.series.length>1||i.options.name,e=function(D){var d=D.series,C=d.chart,A=d.options.accessibility,N=A&&A.point&&A.point.valueDescriptionFormat||C.options.accessibility.point.valueDescriptionFormat,_=u(d.xAxis&&d.xAxis.options.accessibility&&d.xAxis.options.accessibility.enabled,!C.angular),L=_?function(j){var Y=function(Q){var J=Q.series,rt=J.chart,lt=J.options.accessibility&&J.options.accessibility.point||{},gt=rt.options.accessibility.point||{},mt=J.xAxis&&J.xAxis.dateTime;if(mt){var bt=mt.getXDateFormat(Q.x||0,rt.options.tooltip.dateTimeLabelFormats),yt=lt.dateFormatter&&lt.dateFormatter(Q)||gt.dateFormatter&&gt.dateFormatter(Q)||lt.dateFormat||gt.dateFormat||bt;return rt.time.dateFormat(yt,Q.x||0,void 0)}}(j),X=(j.series.xAxis||{}).categories&&v(j.category)&&(""+j.category).replace("<br/>"," "),G=v(j.id)&&(""+j.id).indexOf("highcharts-")<0,q="x, "+j.x;return j.name||Y||X||(G?j.id:q)}(D):"",O={point:D,index:v(D.index)?D.index+1:"",xDescription:L,value:p(D),separator:_?", ":""};return M(N,O,C)}(t),s=t.options&&t.options.accessibility&&t.options.accessibility.description,n=s?" "+s:"",l=o?" "+i.name+".":"",b=function(D){var d=D.series.chart,C=Z(D),A={point:D,annotations:C};return C.length?d.langFormat("accessibility.series.pointAnnotationsDescription",A):""}(t),T=b?" "+b:"";return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=e,e+n+l+T}function r(t){var i=function(s){var n=s.options.accessibility||{};return!w(s)&&!n.exposeAsGroupOnly}(t),o=function(s){var n=s.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!s.points||!(s.points.length<n.pointNavigationEnabledThreshold||n.pointNavigationEnabledThreshold===!1))}(t),e=t.chart.options.accessibility.point.describeNull;(i||o)&&t.points.forEach(function(s){var n=s.graphic&&s.graphic.element||function(b){var T=b.series,D=T&&T.chart,d=T&&T.is("sunburst"),C=b.isNull,A=D&&D.options.accessibility.point.describeNull;return C&&!d&&A}(s)&&function(b){var T=b.series,D=function(N){var _=N.index;return N.series&&N.series.data&&v(_)&&f(N.series.data,function(L){return!!(L&&L.index!==void 0&&L.index>_&&L.graphic&&L.graphic.element)})||null}(b),d=D&&D.graphic,C=d?d.parentGroup:T.graph||T.group,A=function(N,_){var L=N.series.chart.renderer.rect(_.x,_.y,1,1);return L.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),L}(b,D?{x:u(b.plotX,D.plotX,0),y:u(b.plotY,D.plotY,0)}:{x:u(b.plotX,0),y:u(b.plotY,0)});if(C&&C.element)return b.graphic=A,b.hasMockGraphic=!0,A.add(C),C.element.insertBefore(A.element,d?d.element:null),A.element}(s),l=s.options&&s.options.accessibility&&s.options.accessibility.enabled===!1;if(n){if(s.isNull&&!e)return void n.setAttribute("aria-hidden",!0);n.setAttribute("tabindex","-1"),t.chart.styledMode||(n.style.outline="none"),i&&!l?function(b,T){var D=b.series,d=D.chart.options.accessibility.point||{},C=D.options.accessibility&&D.options.accessibility.point||{},A=h(C.descriptionFormatter&&C.descriptionFormatter(b)||d.descriptionFormatter&&d.descriptionFormatter(b)||g(b));T.setAttribute("role","img"),T.setAttribute("aria-label",A)}(s,n):n.setAttribute("aria-hidden",!0)}})}function a(t){var i=t.chart,o=i.types||[],e=function(N){var _=(N.options.accessibility||{}).description;return _&&N.chart.langFormat("accessibility.series.description",{description:_,series:N})||""}(t),s=function(N){return i[N]&&i[N].length>1&&t[N]},n=t.index+1,l=x(t,"xAxis"),b=x(t,"yAxis"),T={seriesNumber:n,series:t,chart:i},D=o.length>1?"Combination":"",d=i.langFormat("accessibility.series.summary."+t.type+D,T)||i.langFormat("accessibility.series.summary.default"+D,T),C=(s("yAxis")?" "+b+".":"")+(s("xAxis")?" "+l+".":""),A=i.options.accessibility.series.descriptionFormat||"";return M(A,{seriesDescription:d,authorDescription:e?" "+e:"",axisDescription:C,series:t,chart:i,seriesNumber:n},void 0)}return{defaultPointDescriptionFormatter:g,defaultSeriesDescriptionFormatter:a,describeSeries:function(t){var i=t.chart,o=z(t),e=I(t),s=i.is3d&&i.is3d();e&&(e.lastChild!==o||s||y(e),r(t),E(i,e),function(n){var l=n.chart,b=l.options.chart,T=b.options3d&&b.options3d.enabled,D=l.series.length>1,d=l.options.accessibility.series.describeSingleSeries,C=(n.options.accessibility||{}).exposeAsGroupOnly;return!(T&&D)&&(D||d||C||w(n))}(t)?function(n,l){var b=n.options.accessibility||{},T=n.chart.options.accessibility,D=T.landmarkVerbosity;b.exposeAsGroupOnly?l.setAttribute("role","img"):D==="all"?l.setAttribute("role","region"):l.setAttribute("role","group"),l.setAttribute("tabindex","-1"),n.chart.styledMode||(l.style.outline="none"),l.setAttribute("aria-label",h(T.series.descriptionFormatter&&T.series.descriptionFormatter(n)||a(n)))}(t,e):e.removeAttribute("aria-label"))}}}),it(B,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(W,R,H,V,$,Z){var U=R.addEvent,z=R.defined,I=V.getChartTitle,E=Z.defaultPointDescriptionFormatter,M=Z.defaultSeriesDescriptionFormatter;function P(h){return!!h.options.accessibility.announceNewData.enabled}var y=function(){function h(f){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=f}return h.prototype.init=function(){var f=this.chart,m=f.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new $,this.announcer=new H(f,m),this.addEventListeners()},h.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},h.prototype.addEventListeners=function(){var f=this,m=this.chart,u=this.eventProvider;u.addEvent(m,"afterApplyDrilldown",function(){f.lastAnnouncementTime=0}),u.addEvent(m,"afterAddSeries",function(v){f.onSeriesAdded(v.series)}),u.addEvent(m,"redraw",function(){f.announceDirtyData()})},h.prototype.onSeriesAdded=function(f){P(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[f.name+f.index]=f,this.dirty.newSeries=z(this.dirty.newSeries)?void 0:f)},h.prototype.announceDirtyData=function(){var f,m,u=this.chart,v=this;if(u.options.accessibility.announceNewData&&this.dirty.hasDirty){var w=this.dirty.newPoint;w&&(w=(m=(f=w).series.data.filter(function(S){return f.x===S.x&&f.y===S.y})).length===1?m[0]:f),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(S){return v.dirty.allSeries[S]}),this.dirty.newSeries,w),this.dirty={allSeries:{}}}},h.prototype.queueAnnouncement=function(f,m,u){var v,w,S,x=this,p=this.chart.options.accessibility.announceNewData;if(p.enabled){var g=+new Date,r=g-this.lastAnnouncementTime,a=Math.max(0,p.minAnnounceInterval-r),t=(v=this.queuedAnnouncement&&this.queuedAnnouncement.series,w=f,S=(v||[]).concat(w||[]).reduce(function(o,e){return o[e.name+e.index]=e,o},{}),Object.keys(S).map(function(o){return S[o]})),i=this.buildAnnouncementMessage(t,m,u);i&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:g,message:i,series:t},this.queuedAnnouncementTimer=setTimeout(function(){x&&x.announcer&&(x.lastAnnouncementTime=+new Date,x.announcer.announce(x.queuedAnnouncement.message),delete x.queuedAnnouncement,delete x.queuedAnnouncementTimer)},a))}},h.prototype.buildAnnouncementMessage=function(f,m,u){var v=this.chart,w=v.options.accessibility.announceNewData;if(w.announcementFormatter){var S=w.announcementFormatter(f,m,u);if(S!==!1)return S.length?S:null}var x=W.charts&&W.charts.length>1?"Multiple":"Single",p=m?"newSeriesAnnounce"+x:u?"newPointAnnounce"+x:"newDataAnnounce",g=I(v);return v.langFormat("accessibility.announceNewData."+p,{chartTitle:g,seriesDesc:m?M(m):null,pointDesc:u?E(u):null,point:u,series:m})},h}();return function(h){function f(u){var v=this.chart,w=this.newDataAnnouncer;w&&w.chart===v&&P(v)&&(w.dirty.newPoint=z(w.dirty.newPoint)?void 0:u.point)}function m(){var u=this.chart,v=this.newDataAnnouncer;v&&v.chart===u&&P(u)&&(v.dirty.hasDirty=!0,v.dirty.allSeries[this.name+this.index]=this)}h.composedClasses=[],h.compose=function(u){h.composedClasses.indexOf(u)===-1&&(h.composedClasses.push(u),U(u,"addPoint",f),U(u,"updatedData",m))}}(y||(y={})),y}),it(B,"Accessibility/ProxyElement.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z=W.doc,U=R.attr,z=R.css,I=R.merge,E=V.fireEventOnWrappedOrUnwrappedElement,M=$.cloneMouseEvent,P=$.cloneTouchEvent,y=$.getFakeMouseEvent,h=$.removeElement;return function(){function f(m,u,v,w){this.chart=m,this.target=u,this.groupType=v;var S=v==="ul";this.eventProvider=new H;var x=S?Z.createElement("li"):null,p=this.buttonElement=Z.createElement("button");m.styledMode||this.hideButtonVisually(p),x?(S&&!m.styledMode&&(x.style.listStyle="none"),x.appendChild(p),this.element=x):this.element=p,this.updateTarget(u,w)}return f.prototype.click=function(){var m=this.getTargetPosition();m.x+=m.width/2,m.y+=m.height/2;var u=y("click",m);E(this.target.click,u)},f.prototype.updateTarget=function(m,u){this.target=m,this.updateCSSClassName();var v=u||{};Object.keys(v).forEach(function(w){v[w]===null&&delete v[w]}),U(this.buttonElement,I({"aria-label":this.getTargetAttr(m.click,"aria-label")},v)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,m.click),this.refreshPosition()},f.prototype.refreshPosition=function(){var m=this.getTargetPosition();z(this.buttonElement,{width:(m.width||1)+"px",height:(m.height||1)+"px",left:(Math.round(m.x)||0)+"px",top:(Math.round(m.y)||0)+"px"})},f.prototype.remove=function(){this.eventProvider.removeAddedEvents(),h(this.element)},f.prototype.updateCSSClassName=function(){var m=function(x){return x.indexOf("highcharts-no-tooltip")>-1},u=this.chart.legend,v=u.group&&u.group.div,w=m(v&&v.className||""),S=m(this.getTargetAttr(this.target.click,"class")||"");this.buttonElement.className=w||S?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},f.prototype.addProxyEventsToButton=function(m,u){var v=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(w){var S=w.indexOf("touch")===0;v.eventProvider.addEvent(m,w,function(x){var p=S?P(x):M(x);u&&E(u,p),x.stopPropagation(),S||x.preventDefault()},{passive:!1})})},f.prototype.hideButtonVisually=function(m){z(m,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})},f.prototype.getTargetPosition=function(){var m=this.target.click,u=m.element?m.element:m,v=this.target.visual||u;if(this.chart.renderTo&&v&&v.getBoundingClientRect){var w=v.getBoundingClientRect(),S=this.chart.pointer.getChartPosition();return{x:(w.left-S.left)/S.scaleX,y:(w.top-S.top)/S.scaleY,width:w.right/S.scaleX-w.left/S.scaleX,height:w.bottom/S.scaleY-w.top/S.scaleY}}return{x:0,y:0,width:1,height:1}},f.prototype.getTargetAttr=function(m,u){return m.element?m.element.getAttribute(u):m.getAttribute(u)},f}()}),it(B,"Accessibility/ProxyProvider.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/ProxyElement.js"]],function(W,R,H,V,$,Z){var U=W.doc,z=R.attr,I=R.css,E=H.unhideChartElementFromAT,M=$.removeElement,P=$.removeChildNodes;return function(){function y(h){this.chart=h,this.domElementProvider=new V,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return y.prototype.addProxyElement=function(h,f,m){var u=this.groups[h];if(!u)throw new Error("ProxyProvider.addProxyElement: Invalid group key "+h);var v=new Z(this.chart,f,u.type,m);return u.proxyContainerElement.appendChild(v.element),u.proxyElements.push(v),v},y.prototype.addGroup=function(h,f,m){var u=this.groups[h];if(u)return u.groupElement;var v,w=this.domElementProvider.createElement(f);return m&&m.role&&f!=="div"?(v=this.domElementProvider.createElement("div")).appendChild(w):v=w,v.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+h.replace(/\W/g,"-"),this.groups[h]={proxyContainerElement:w,groupElement:v,type:f,proxyElements:[]},z(v,m||{}),f==="ul"&&w.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(v),this.updateGroupOrder(this.groupOrder),v},y.prototype.updateGroupAttrs=function(h,f){var m=this.groups[h];if(!m)throw new Error("ProxyProvider.updateGroupAttrs: Invalid group key "+h);z(m.groupElement,f)},y.prototype.updateGroupOrder=function(h){var f=this;if(this.groupOrder=h.slice(),!this.isDOMOrderGroupOrder()){var m=h.indexOf("series"),u=m>-1?h.slice(0,m):h,v=m>-1?h.slice(m+1):[],w=U.activeElement;["before","after"].forEach(function(S){var x=f[S==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"],p=S==="before"?u:v;P(x),p.forEach(function(g){var r=f.groups[g];r&&x.appendChild(r.groupElement)})}),(this.beforeChartProxyPosContainer.contains(w)||this.afterChartProxyPosContainer.contains(w))&&w&&w.focus&&w.focus()}},y.prototype.clearGroup=function(h){var f=this.groups[h];if(!f)throw new Error("ProxyProvider.clearGroup: Invalid group key "+h);P(f.proxyContainerElement)},y.prototype.removeGroup=function(h){var f=this.groups[h];f&&(M(f.groupElement),delete this.groups[h])},y.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},y.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},y.prototype.updateGroupProxyElementPositions=function(h){var f=this.groups[h];f&&f.proxyElements.forEach(function(m){return m.refreshPosition()})},y.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},y.prototype.createProxyPosContainer=function(h){var f=this.domElementProvider.createElement("div");return f.setAttribute("aria-hidden","false"),f.className="highcharts-a11y-proxy-container"+(h?"-"+h:""),I(f,{top:"0",left:"0"}),this.chart.styledMode||(f.style.whiteSpace="nowrap",f.style.position="absolute"),f},y.prototype.getCurrentGroupOrderInDOM=function(){var h=this,f=function(w){for(var S=Object.keys(h.groups),x=S.length;x--;){var p=S[x],g=h.groups[p];if(g&&w===g.groupElement)return p}},m=function(w){for(var S=[],x=w.children,p=0;p<x.length;++p){var g=f(x[p]);g&&S.push(g)}return S},u=m(this.beforeChartProxyPosContainer),v=m(this.afterChartProxyPosContainer);return u.push("series"),u.concat(v)},y.prototype.isDOMOrderGroupOrder=function(){var h=this,f=this.getCurrentGroupOrderInDOM(),m=this.groupOrder.filter(function(v){return v==="series"||!!h.groups[v]}),u=f.length;if(u!==m.length)return!1;for(;u--;)if(f[u]!==m[u])return!1;return!0},y.prototype.updatePosContainerPositions=function(){var h=this.chart;if(!h.renderer.forExport){var f=h.renderer.box;h.container.insertBefore(this.afterChartProxyPosContainer,f.nextSibling),h.container.insertBefore(this.beforeChartProxyPosContainer,f),E(this.chart,this.afterChartProxyPosContainer),E(this.chart,this.beforeChartProxyPosContainer)}},y}()}),it(B,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,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"}}}}),it(B,"Stock/RangeSelector/RangeSelectorComposition.js",[B["Core/Defaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.defaultOptions,Z=W.setOptions,U=H.addEvent,z=H.defined,I=H.extend,E=H.find,M=H.isNumber,P=H.merge,y=H.pick,h=[],f=[];function m(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(l,b){var T=i==="year"?"FullYear":"Month",D=new e.Date(l),d=e.get(T,D);return e.set(T,D,d+b),d===e.get(T,D)&&e.set("Date",D,0),D.getTime()-l};M(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return M(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),M(o)?!M(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new V(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){M(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function w(r){var a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,M(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(h,function(n){return n[0]===r})||h.push([r,[U(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),U(r,"redraw",s)]]),s())}function S(){for(var r=0,a=h.length;r<a;++r){var t=h[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void h.splice(r,1)}}function x(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function p(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function g(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!z(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new V(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){w(this);var e=a&&a.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,a,t){V=t,f.indexOf(r)===-1&&(f.push(r),r.prototype.minFromRange=m),f.indexOf(a)===-1&&(f.push(a),U(a,"afterGetContainer",u),U(a,"beforeRender",v),U(a,"destroy",S),U(a,"getMargins",x),U(a,"render",p),U(a,"update",g),a.prototype.callbacks.push(w)),f.indexOf(Z)===-1&&(I($,{rangeSelector:R.rangeSelector}),I($.lang,R.lang))}}}),it(B,"Stock/RangeSelector/RangeSelector.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Stock/RangeSelector/RangeSelectorComposition.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.defaultOptions,z=Z.addEvent,I=Z.createElement,E=Z.css,M=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,h=Z.extend,f=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,w=Z.pad,S=Z.pick,x=Z.pInt,p=Z.splat,g=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){V.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,l,b,T=this,D=T.chart,d=T.buttonOptions[a],C=D.xAxis[0],A=D.scroller&&D.scroller.getUnionExtremes()||C||{},N=d.type,_=d.dataGrouping,L=A.dataMin,O=A.dataMax,j=C&&Math.round(Math.min(C.max,S(O,C.max))),Y=d._range,X=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,T.setSelected(a),_&&(this.forcedDataGrouping=!0,W.prototype.setDataGrouping.call(C||{chart:this.chart},_,!1),this.frozenStates=d.preserveDataGrouping),N==="month"||N==="year")C?(l={range:d,max:j,chart:D,dataMin:L,dataMax:O},i=C.minFromRange.call(l),m(l.newMax)&&(j=l.newMax),X=!1):Y=d;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),X=!1;else if(N==="ytd"){if(!C)return void(T.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(G){var q=G.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=T.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&C&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);X&&d._offsetMin&&M(i)&&(i+=d._offsetMin),d._offsetMax&&M(j)&&(j+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),C?C.setExtremes(i,j,S(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=p(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,z(D,"load",function(){o.range=n,o.min=s})),f(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,l=t.maxInput;n&&n.blur&&f(n,"blur"),l&&l.blur&&f(l,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(z(a.container,"mousedown",s)),this.eventsToUnbind.push(z(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,l=t.scroller&&t.scroller.getUnionExtremes()||o,b=l.dataMin,T=l.dataMax,D=a.getYTDExtremes(T,b,t.time.useUTC),d=D.min,C=D.max,A=a.selected,N=a.options.allButtonsEnabled,_=a.buttons,L=m(A);a.buttonOptions.forEach(function(O,j){var Y=O._range,X=O.type,G=O.count||1,q=_[j],Q=O._offsetMax-O._offsetMin,J=j===A,rt=Y>T-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(X==="month"||X==="year")&&e+36e5>={month:28,year:365}[X]*n*G-Q&&e-36e5<={month:31,year:366}[X]*n*G+Q?yt=!0:X==="ytd"?(yt=C-d+Q===e,mt=!J):X==="all"&&(yt=o.max-o.min>=T-b,bt=!J&&L&&yt);var ht=!N&&(rt||lt||bt||s),et=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;ht?gt=3:et&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=ht,gt===2&&(i.selectedIndex=j+1)),gt===0&&A===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=S(a.offsetMin,0),a._offsetMax=S(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),l=M(n)?Number(n):void 0;if(M(t)){var b=l;M(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),l=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,l),s&&s.attr({text:o.dateFormat(i.inputDateFormat,l)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var l=s.dateFormat(e,i);o.max!==l&&(o.max=l)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,l=this.options.inputBoxWidth;E(i,{width:o?t.width+(l?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&l?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(H.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(w(-s),":00"):"-".concat(w(s),":00")}var n=Date.parse(e);if(!m(n)){var l=a.split("-");n=Date.UTC(x(l[0]),x(l[1])-1,x(l[2]))}return i&&t&&m(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},l=i.renderer,b=i.options.rangeSelector,T=U.lang,D=a==="min";function d(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],X=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,G=X.dataMin,q=X.dataMax,Q=s.getInputValue(a);Q!==Number(_.getAttribute("data-hc-time-previous"))&&m(Q)&&(_.setAttribute("data-hc-time-previous",Q),D&&O&&m(G)?Q>Number(O.getAttribute("data-hc-time"))?Q=void 0:Q<G&&(Q=G):j&&m(q)&&(Q<Number(j.getAttribute("data-hc-time"))?Q=void 0:Q>q&&(Q=q)),Q!==void 0&&Y.setExtremes(D?Q:Y.min,D?Y.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=T[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",A=l.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?b.inputBoxHeight:0}).add(e),N=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var _=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);_.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return O.indexOf("%"+X)!==-1}),Y=["H","k","I","l","M","S"].some(function(X){return O.indexOf("%"+X)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(A.css(u(n,b.labelStyle)),N.css(u({color:"#333333"},n,b.inputStyle)),E(_,h({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),_.onfocus=function(){s.showInput(a)},_.onblur=function(){_===H.doc.activeElement&&d(),s.hideInput(a),s.setInputValue(a),_.blur()};var L=!1;return _.onchange=function(){L||(d(),s.hideInput(a),_.blur())},_.onkeypress=function(O){O.keyCode===13&&d()},_.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||d()},_.onkeyup=function(){L=!1},{dateBox:N,input:_,label:A}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),l=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:l}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,l=S(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,T=this.rendered;if(n.enabled!==!1){if(!T&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var C=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(M(C.dataMin)&&M(C.dataMax)){var A=i.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-A),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+A,C.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(_){if(_){var L=_.getBBox().width;L&&(_.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=U.lang,n=o.renderer,l=u(e.buttonTheme),b=l&&l.states,T=l.width||28;delete l.width,delete l.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);z(D,"touchstart",function(){D.style.fontSize="16px"}),[[H.isMS?"mouseover":"mouseenter"],[H.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var C=d[0],A=d[1];z(D,C,function(){var N=i[a.currentButtonIndex()];N&&f(N.element,A||C)})}),this.zoomText=n.label(s&&s.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),l["stroke-width"]=S(l["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(d,C){I("option",{textContent:d.title||d.text},void 0,D),i[C]=n.button(d.text,0,0,function(A){var N,_=d.events&&d.events.click;_&&(N=_.call(d,A)),N!==!1&&a.clickButton(C),a.isActive=!0},l,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:T}).add(a.buttonGroup),d.title&&i[C].attr("title",d.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,l=t.options,b=t.zoomText,T=e.options,D=T.exporting&&T.exporting.enabled!==!1&&T.navigation&&T.navigation.buttonOptions,d=l.buttonPosition,C=l.inputPosition,A=l.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&A==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},_=e.plotLeft;if(s&&d&&C){var L=d.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=l.buttonSpacing)}),this.initialButtonGroupWidth=O}_-=e.spacing[3],this.updateButtonStates();var j=N(i,d);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,C),C.align==="left"?L=_:C.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:C.y,width:n.getBBox().width,align:C.align,x:C.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:A},!0,e.spacingBox);var X=s.alignAttr.translateY,G=s.getBBox().height+20,q=0;if(A==="bottom"){var Q=e.legend&&e.legend.options;q=X-(G=G+(Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?e.legend.legendHeight+S(Q.margin,10):0)-20)-(l.floating?0:l.y)-(e.titleOffset?e.titleOffset[2]:0)-10}A==="top"?(l.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):A==="middle"&&(C.y===d.y?q=X:(C.y||d.y)&&(C.y<0||d.y<0?q-=Math.min(C.y,d.y):q=X-G)),s.translate(l.x,l.y+Math.floor(q));var J=this,rt=J.minInput,lt=J.maxInput,gt=J.dropdown;l.inputEnabled&&rt&&lt&&(rt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,l=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-l:n.align==="center"&&(b-=l/2),s&&s.align({y:n.y,width:S(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,l=i.plotLeft,b=l;e&&e.visibility!=="hidden"&&(e[s]({x:S(l+n.x,l)}),b+=n.x+e.getBBox().width+5);for(var T=0,D=this.buttonOptions.length;T<D;++T)t[T].visibility!=="hidden"?(t[T][s]({x:b}),b+=t[T].width+o.buttonSpacing):t[T][s]({x:l})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,l=n.buttonPosition,b=n.dropdown,T=n.inputPosition,D=function(){var A=0;return t.buttons.forEach(function(N){var _=N.getBBox();_.width>A&&(A=_.width)}),A},d=function(A){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,_=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+A>N&&N+_>L&&l.y<T.y+s.getBBox().height}return!1},C=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(d(D())&&C());b==="never"&&this.expandButtons()}s&&e?T.align===l.align||d(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),d(D())&&C()):C():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,l=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},T=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:S(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:S(n.buttonTheme.paddingRight,b.padding,8)}};l&&l.hide();var D=!1;o.forEach(function(C,A){var N=i[A];N.state!==2?N.hide():(N.show(),N.attr(T(C.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(T(this.zoomText&&this.zoomText.textStr)));var d=n.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var l=t[n];l.show(),l.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:S(o.buttonTheme.paddingLeft,"unset"),paddingRight:S(o.buttonTheme.paddingRight,"unset")}),l.state<2&&l.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,l=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:l.width+"px",height:l.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,l=0;if(a.height)return a.height;this.alignElements(),l=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(l+=Math.abs(b)),l},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;u(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),P(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof window.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return h(g.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"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),g}),it(B,"Accessibility/Components/RangeSelectorComponent.js",[B["Stock/RangeSelector/RangeSelector.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(h,f){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},U(h,f)},function(h,f){function m(){this.constructor=h}U(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),I=H.unhideChartElementFromAT,E=H.getAxisRangeDescription,M=Z.addEvent,P=Z.attr,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.announcer=void 0,m}return z(f,h),f.prototype.init=function(){var m=this.chart;this.announcer=new V(m,"polite")},f.prototype.onChartUpdate=function(){var m=this.chart,u=this,v=m.rangeSelector;v&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),v.buttons&&v.buttons.length&&v.buttons.forEach(function(w){u.setRangeButtonAttrs(w)}),v.maxInput&&v.minInput&&["minInput","maxInput"].forEach(function(w,S){var x=v[w];x&&(I(m,x),u.setRangeInputAttrs(x,"accessibility.rangeSelector."+(S?"max":"min")+"InputLabel"))}))},f.prototype.updateSelectorVisibility=function(){var m=this.chart,u=m.rangeSelector,v=u&&u.dropdown,w=u&&u.buttons||[],S=function(x){return x.setAttribute("aria-hidden",!0)};u&&u.hasVisibleDropdown&&v?(I(m,v),w.forEach(function(x){return S(x.element)})):(v&&S(v),w.forEach(function(x){return I(m,x.element)}))},f.prototype.setDropdownAttrs=function(){var m=this.chart,u=m.rangeSelector&&m.rangeSelector.dropdown;if(u){var v=m.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:m.options.lang.rangeSelectorZoom});u.setAttribute("aria-label",v),u.setAttribute("tabindex",-1)}},f.prototype.setRangeButtonAttrs=function(m){P(m.element,{tabindex:-1,role:"button"})},f.prototype.setRangeInputAttrs=function(m,u){var v=this.chart;P(m,{tabindex:-1,"aria-label":v.langFormat(u,{chart:v})})},f.prototype.onButtonNavKbdArrowKey=function(m,u){var v=m.response,w=this.keyCodes,S=this.chart,x=S.options.accessibility.keyboardNavigation.wrapAround,p=u===w.left||u===w.up?-1:1;return S.highlightRangeSelectorButton(S.highlightedRangeSelectorItemIx+p)?v.success:x?(m.init(p),v.success):v[p>0?"next":"prev"]},f.prototype.onButtonNavKbdClick=function(m){var u=m.response,v=this.chart;return v.oldRangeSelectorItemState===3||this.fakeClickEvent(v.rangeSelector.buttons[v.highlightedRangeSelectorItemIx].element),u.success},f.prototype.onAfterBtnClick=function(){var m=this.chart,u=E(m.xAxis[0]),v=m.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:m,axisRangeDescription:u});v&&this.announcer.announce(v)},f.prototype.onInputKbdMove=function(m){var u=this.chart,v=u.rangeSelector,w=u.highlightedInputRangeIx=(u.highlightedInputRangeIx||0)+m;if(w>1||w<0)u.accessibility&&(u.accessibility.keyboardNavigation.tabindexContainer.focus(),u.accessibility.keyboardNavigation.move(m));else if(v){var S=v[w?"maxDateBox":"minDateBox"],x=v[w?"maxInput":"minInput"];S&&x&&u.setFocusToElement(S,x)}},f.prototype.onInputNavInit=function(m){var u=this,v=this,w=this.chart,S=m>0?0:1,x=w.rangeSelector,p=x&&x[S?"maxDateBox":"minDateBox"],g=x&&x.minInput,r=x&&x.maxInput,a=S?r:g;if(w.highlightedInputRangeIx=S,p&&g&&r){w.setFocusToElement(p,a),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var t=function(e){(e.which||e.keyCode)===u.keyCodes.tab&&(e.preventDefault(),e.stopPropagation(),v.onInputKbdMove(e.shiftKey?-1:1))},i=M(g,"keydown",t),o=M(r,"keydown",t);this.removeInputKeydownHandler=function(){i(),o()}}},f.prototype.onInputNavTerminate=function(){var m=this.chart.rangeSelector||{};m.maxInput&&m.hideInput("max"),m.minInput&&m.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},f.prototype.initDropdownNav=function(){var m=this,u=this.chart,v=u.rangeSelector,w=v&&v.dropdown;v&&w&&(u.setFocusToElement(v.buttonGroup,w),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=M(w,"keydown",function(S){var x=(S.which||S.keyCode)===m.keyCodes.tab,p=u.accessibility;x&&(S.preventDefault(),S.stopPropagation(),p&&(p.keyboardNavigation.tabindexContainer.focus(),p.keyboardNavigation.move(S.shiftKey?-1:1)))}))},f.prototype.getRangeSelectorButtonNavigation=function(){var m=this.chart,u=this.keyCodes,v=this;return new $(m,{keyCodeMap:[[[u.left,u.right,u.up,u.down],function(w){return v.onButtonNavKbdArrowKey(this,w)}],[[u.enter,u.space],function(){return v.onButtonNavKbdClick(this)}]],validate:function(){return!!(m.rangeSelector&&m.rangeSelector.buttons&&m.rangeSelector.buttons.length)},init:function(w){var S=m.rangeSelector;if(S&&S.hasVisibleDropdown)v.initDropdownNav();else if(S){var x=S.buttons.length-1;m.highlightRangeSelectorButton(w>0?0:x)}},terminate:function(){v.removeDropdownKeydownHandler&&(v.removeDropdownKeydownHandler(),delete v.removeDropdownKeydownHandler)}})},f.prototype.getRangeSelectorInputNavigation=function(){var m=this.chart,u=this;return new $(m,{keyCodeMap:[],validate:function(){return function(v){return!!(v.rangeSelector&&v.rangeSelector.inputGroup&&v.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&v.options.rangeSelector.inputEnabled!==!1&&v.rangeSelector.minInput&&v.rangeSelector.maxInput)}(m)},init:function(v){u.onInputNavInit(v)},terminate:function(){u.onInputNavTerminate()}})},f.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},f.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},f}(R);return function(h){var f=[];function m(v){var w=this.rangeSelector&&this.rangeSelector.buttons||[],S=this.highlightedRangeSelectorItemIx,x=this.rangeSelector&&this.rangeSelector.selected;return S!==void 0&&w[S]&&S!==x&&w[S].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=v,!!w[v]&&(this.setFocusToElement(w[v].box,w[v].element),v!==x&&(this.oldRangeSelectorItemState=w[v].state,w[v].setState(1)),!0)}function u(){var v=this.chart.accessibility;if(v&&v.components.rangeSelector)return v.components.rangeSelector.onAfterBtnClick()}h.compose=function(v,w){f.indexOf(v)===-1&&(f.push(v),v.prototype.highlightRangeSelectorButton=m),f.indexOf(w)===-1&&(f.push(w),M(W,"afterBtnClick",u))}}(y||(y={})),y}),it(B,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.merge;return function($){var Z=[];function U(h){V(!0,h,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function z(h){return h.marker.states&&h.marker.states.normal&&h.marker.states.normal.opacity}function I(h){return!!(h._hasPointMarkers&&h.points&&h.points.length)}function E(){var h=this;h.chart.styledMode&&(h.markerGroup&&h.markerGroup[h.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),I(h)&&h.points.forEach(function(f){f.graphic&&(f.graphic[f.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),f.graphic[f.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function M(h){this.resetA11yMarkerOptions=V(h.options.marker||{},this.userOptions.marker||{})}function P(){var h=this,f=h.options;(function(m){var u=m.chart.options.accessibility.enabled,v=(m.options.accessibility&&m.options.accessibility.enabled)!==!1;return u&&v&&function(w){var S=w.chart.options.accessibility;return w.points.length<S.series.pointDescriptionEnabledThreshold||S.series.pointDescriptionEnabledThreshold===!1}(m)})(h)?(f.marker&&f.marker.enabled===!1&&(h.a11yMarkersForced=!0,U(h.options)),I(h)&&function(m){for(var u=m.points.length;u--;){var v=m.points[u],w=v.options,S=v.hasForcedA11yMarker;if(delete v.hasForcedA11yMarker,w.marker){var x=S&&z(w)===0;w.marker.enabled&&!x?(y(w),v.hasForcedA11yMarker=!1):w.marker.enabled===!1&&(U(w),v.hasForcedA11yMarker=!0)}}}(h)):h.a11yMarkersForced&&(delete h.a11yMarkersForced,function(m){var u=m.resetA11yMarkerOptions;if(u){var v=u.states&&u.states.normal&&u.states.normal.opacity;m.update({marker:{enabled:u.enabled,states:{normal:{opacity:v}}}})}}(h),delete h.resetA11yMarkerOptions)}function y(h){V(!0,h.marker,{states:{normal:{opacity:z(h)||1}}})}$.compose=function(h){Z.indexOf(h)===-1&&(Z.push(h),H(h,"afterSetOptions",M),H(h,"render",P),H(h,"afterRender",E))}}(R||(R={})),R}),it(B,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/ChartUtilities.js"]],function(W,R,H,V,$,Z,U,z){var I=H.seriesTypes,E=V.doc,M=$.defined,P=$.fireEvent,y=z.getPointFromXY,h=z.getSeriesFromName,f=z.scrollToPoint;function m(r){var a=r.index,t=r.series.points,i=t.length;if(t[a]===r)return a;for(;i--;)if(t[i]===r)return i}function u(r){var a=r.chart.options.accessibility.keyboardNavigation.seriesNavigation,t=r.options.accessibility||{},i=t.keyboardNavigation;return i&&i.enabled===!1||t.enabled===!1||r.options.enableMouseTracking===!1||!r.visible||a.pointNavigationEnabledThreshold&&a.pointNavigationEnabledThreshold<=r.points.length}function v(r){var a=r.series.chart.options.accessibility,t=r.options.accessibility&&r.options.accessibility.enabled===!1;return r.isNull&&a.keyboardNavigation.seriesNavigation.skipNullPoints||r.visible===!1||r.isInside===!1||t||u(r.series)}function w(r){for(var a=r.points||[],t=a.length,i=0;i<t;++i)if(!v(a[i]))return a[i];return null}function S(r){for(var a=r.series||[],t=a.length,i=0;i<t;++i)if(!u(a[i])){var o=w(a[i]);if(o)return o}return null}function x(r){for(var a=r.series.length,t=!1;a--&&(r.highlightedPoint=r.series[a].points[r.series[a].points.length-1],!(t=r.series[a].highlightNextValidPoint())););return t}function p(r){delete r.highlightedPoint;var a=S(r);return!!a&&a.highlight()}var g=function(){function r(a,t){this.keyCodes=t,this.chart=a}return r.prototype.init=function(){var a=this,t=this.chart,i=this.eventProvider=new U;i.addEvent(R,"destroy",function(){return a.onSeriesDestroy(this)}),i.addEvent(t,"afterApplyDrilldown",function(){(function(o){var e=S(o);e&&e.highlight(!1)})(this)}),i.addEvent(t,"drilldown",function(o){var e=o.point,s=e.series;a.lastDrilledDownPoint={x:e.x,y:e.y,seriesName:s?s.name:""}}),i.addEvent(t,"drillupall",function(){setTimeout(function(){a.onDrillupAll()},10)}),i.addEvent(W,"afterSetState",function(){var o=this,e=o.graphic&&o.graphic.element,s=E.activeElement,n=s&&s.getAttribute("class"),l=n&&n.indexOf("highcharts-a11y-proxy-button")>-1;t.highlightedPoint===o&&s!==e&&!l&&e&&e.focus&&e.focus()})},r.prototype.onDrillupAll=function(){var a,t=this.lastDrilledDownPoint,i=this.chart,o=t&&h(i,t.seriesName);t&&o&&M(t.x)&&M(t.y)&&(a=y(o,t.x,t.y)),a=a||S(i),i.container&&i.container.focus(),a&&a.highlight&&a.highlight(!1)},r.prototype.getKeyboardNavigationHandler=function(){var a=this,t=this.keyCodes,i=this.chart,o=i.inverted;return new Z(i,{keyCodeMap:[[o?[t.up,t.down]:[t.left,t.right],function(e){return a.onKbdSideways(this,e)}],[o?[t.left,t.right]:[t.up,t.down],function(e){return a.onKbdVertical(this,e)}],[[t.enter,t.space],function(e,s){var n=i.highlightedPoint;return n&&(s.point=n,P(n.series,"click",s),n.firePointEvent("click")),this.response.success}],[[t.home],function(){return p(i),this.response.success}],[[t.end],function(){return x(i),this.response.success}],[[t.pageDown,t.pageUp],function(e){return i.highlightAdjacentSeries(e===t.pageDown),this.response.success}]],init:function(){return a.onHandlerInit(this)},validate:function(){return!!S(i)},terminate:function(){return a.onHandlerTerminate()}})},r.prototype.onKbdSideways=function(a,t){var i=this.keyCodes,o=t===i.right||t===i.down;return this.attemptHighlightAdjacentPoint(a,o)},r.prototype.onHandlerInit=function(a){var t=this.chart;return t.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&t.highlightedPoint?t.highlightedPoint.highlight():p(t),a.response.success},r.prototype.onKbdVertical=function(a,t){var i=this.chart,o=this.keyCodes,e=t===o.down||t===o.right,s=i.options.accessibility.keyboardNavigation.seriesNavigation;return s.mode&&s.mode==="serialize"?this.attemptHighlightAdjacentPoint(a,e):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),a.response.success)},r.prototype.onHandlerTerminate=function(){var a=this.chart,t=a.options.accessibility.keyboardNavigation;a.tooltip&&a.tooltip.hide(0);var i=a.highlightedPoint&&a.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),a.highlightedPoint&&a.highlightedPoint.onMouseOut&&a.highlightedPoint.onMouseOut(),t.seriesNavigation.rememberPointFocus||delete a.highlightedPoint},r.prototype.attemptHighlightAdjacentPoint=function(a,t){var i=this.chart,o=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(t)||o&&(t?p(i):x(i))?a.response.success:a.response[t?"next":"prev"]},r.prototype.onSeriesDestroy=function(a){var t=this.chart;t.highlightedPoint&&t.highlightedPoint.series===a&&(delete t.highlightedPoint,t.focusElement&&t.focusElement.removeFocusBorder())},r.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},r}();return function(r){var a=[];function t(n){var l,b,T=this,D=T.series,d=T.highlightedPoint,C=d&&m(d)||0,A=d&&d.series.points||[],N=T.series&&T.series[T.series.length-1],_=N&&N.points&&N.points[N.points.length-1];if(!D[0]||!D[0].points)return!1;if(d){if(l=D[d.series.index+(n?1:-1)],!(b=A[C+(n?1:-1)])&&l&&(b=l.points[n?0:l.points.length-1]),!b)return!1}else b=n?D[0].points[0]:_;return v(b)?(u(l=b.series)?T.highlightedPoint=n?l.points[l.points.length-1]:l.points[0]:T.highlightedPoint=b,T.highlightAdjacentPoint(n)):b.highlight()}function i(n){var l,b=this.highlightedPoint,T=1/0;return!(!M(b.plotX)||!M(b.plotY))&&(this.series.forEach(function(D){u(D)||D.points.forEach(function(d){if(M(d.plotY)&&M(d.plotX)&&d!==b){var C=d.plotY-b.plotY,A=Math.abs(d.plotX-b.plotX),N=Math.abs(C)*Math.abs(C)+A*A*4;D.yAxis&&D.yAxis.reversed&&(C*=-1),C<=0&&n||C>=0&&!n||N<5||v(d)||N<T&&(T=N,l=d)}})}),!!l&&l.highlight())}function o(n){var l,b,T=this,D=T.highlightedPoint,d=T.series&&T.series[T.series.length-1],C=d&&d.points&&d.points[d.points.length-1];return T.highlightedPoint?!!(l=T.series[D.series.index+(n?-1:1)])&&!!(b=function(A,N){var _,L,O,j=1/0,Y=N.points.length,X=function(G){return!(M(G.plotX)&&M(G.plotY))};if(!X(A)){for(;Y--;)X(_=N.points[Y])||(O=(A.plotX-_.plotX)*(A.plotX-_.plotX)*4+(A.plotY-_.plotY)*(A.plotY-_.plotY)*1)<j&&(j=O,L=Y);return M(L)?N.points[L]:void 0}}(D,l))&&(u(l)?(b.highlight(),T.highlightAdjacentSeries(n)||(D.highlight(),!1)):(b.highlight(),b.series.highlightNextValidPoint())):(l=n?T.series&&T.series[0]:d,!!(b=n?l&&l.points&&l.points[0]:C)&&b.highlight())}function e(n){n===void 0&&(n=!0);var l=this.series.chart;return!this.isNull&&n?this.onMouseOver():l.tooltip&&l.tooltip.hide(0),f(this),this.graphic&&(l.setFocusToElement(this.graphic),!n&&l.focusElement&&l.focusElement.removeFocusBorder()),l.highlightedPoint=this,this}function s(){var n=this.chart.highlightedPoint,l=(n&&n.series)===this?m(n):0,b=this.points,T=b.length;if(b&&T){for(var D=l;D<T;++D)if(!v(b[D]))return b[D].highlight();for(var d=l;d>=0;--d)if(!v(b[d]))return b[d].highlight()}return!1}r.compose=function(n,l,b){if(a.indexOf(n)===-1){a.push(n);var T=n.prototype;T.highlightAdjacentPoint=t,T.highlightAdjacentPointVertical=i,T.highlightAdjacentSeries=o}if(a.indexOf(l)===-1&&(a.push(l),l.prototype.highlight=e),a.indexOf(b)===-1){a.push(b);var D=b.prototype;D.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(d){I[d]&&(I[d].prototype.keyboardMoveVertical=!1)}),D.highlightNextValidPoint=s}}}(g||(g={})),g}),it(B,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],B["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],B["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],B["Core/Tooltip.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(y,h){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},z(y,h)},function(y,h){function f(){this.constructor=y}z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),E=R.hideSeriesFromAT,M=$.describeSeries,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return I(h,y),h.compose=function(f,m,u){V.compose(u),H.compose(u),Z.compose(f,m,u)},h.prototype.init=function(){this.newDataAnnouncer=new V(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Z(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},h.prototype.hideTooltipFromATWhenShown=function(){var f=this;this.addEvent(U,"refresh",function(){this.chart===f.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},h.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(f){f.labelBySeries&&f.labelBySeries.attr("aria-hidden",!0)})})},h.prototype.onChartRender=function(){this.chart.series.forEach(function(f){(f.options.accessibility&&f.options.accessibility.enabled)!==!1&&f.visible?M(f):E(f)})},h.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},h.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},h}(W);return P}),it(B,"Accessibility/Components/ZoomComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,h)},function(y,h){function f(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),z=R.unhideChartElementFromAT,I=H.getFakeMouseEvent,E=$.attr,M=$.pick,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.focusedMapNavButtonIx=-1,f}return U(h,y),h.prototype.init=function(){var f=this,m=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(u){f.addEvent(m,u,function(){f.updateProxyOverlays()})})},h.prototype.onChartUpdate=function(){var f=this.chart,m=this;f.mapNavigation&&f.mapNavigation.navButtons.forEach(function(u,v){z(f,u.element),m.setMapNavButtonAttrs(u.element,"accessibility.zoom.mapZoom"+(v?"Out":"In"))})},h.prototype.setMapNavButtonAttrs=function(f,m){var u=this.chart,v=u.langFormat(m,{chart:u});E(f,{tabindex:-1,role:"button","aria-label":v})},h.prototype.onChartRender=function(){this.updateProxyOverlays()},h.prototype.updateProxyOverlays=function(){var f=this.chart;if(this.proxyProvider.clearGroup("zoom"),f.resetZoomButton&&this.createZoomProxyButton(f.resetZoomButton,"resetZoomProxyButton",f.langFormat("accessibility.zoom.resetZoomButton",{chart:f})),f.drillUpButton&&f.breadcrumbs&&f.breadcrumbs.list){var m=f.breadcrumbs.list[f.breadcrumbs.list.length-1];this.createZoomProxyButton(f.drillUpButton,"drillUpProxyButton",f.langFormat("accessibility.drillUpButton",{chart:f,buttonText:f.breadcrumbs.getButtonText(m)}))}},h.prototype.createZoomProxyButton=function(f,m,u){this[m]=this.proxyProvider.addProxyElement("zoom",{click:f},{"aria-label":u,tabindex:-1})},h.prototype.getMapZoomNavigation=function(){var f=this.keyCodes,m=this.chart,u=this;return new V(m,{keyCodeMap:[[[f.up,f.down,f.left,f.right],function(v){return u.onMapKbdArrow(this,v)}],[[f.tab],function(v,w){return u.onMapKbdTab(this,w)}],[[f.space,f.enter],function(){return u.onMapKbdClick(this)}]],validate:function(){return function(v){return!!(v.mapView&&v.mapNavigation&&v.mapNavigation.navButtons.length)}(m)},init:function(v){return u.onMapNavInit(v)}})},h.prototype.onMapKbdArrow=function(f,m){var u=this.chart,v=this.keyCodes,w=u.container,S=m===v.up||m===v.down,x=m===v.left||m===v.up?1:-1,p=(S?u.plotHeight:u.plotWidth)/10*x,g=10*Math.random(),r={x:w.offsetLeft+u.plotLeft+u.plotWidth/2+g,y:w.offsetTop+u.plotTop+u.plotHeight/2+g},a=S?{x:r.x,y:r.y+p}:{x:r.x+p,y:r.y};return[I("mousedown",r),I("mousemove",a),I("mouseup",a)].forEach(function(t){return w.dispatchEvent(t)}),f.response.success},h.prototype.onMapKbdTab=function(f,m){var u=this.chart,v=f.response,w=m.shiftKey,S=w&&!this.focusedMapNavButtonIx||!w&&this.focusedMapNavButtonIx;if(u.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),S)return u.mapView&&u.mapView.zoomBy(),v[w?"prev":"next"];this.focusedMapNavButtonIx+=w?-1:1;var x=u.mapNavigation.navButtons[this.focusedMapNavButtonIx];return u.setFocusToElement(x.box,x.element),x.setState(2),v.success},h.prototype.onMapKbdClick=function(f){var m=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(m),f.response.success},h.prototype.onMapNavInit=function(f){var m=this.chart,u=m.mapNavigation.navButtons[0],v=m.mapNavigation.navButtons[1],w=f>0?u:v;m.setFocusToElement(w.box,w.element),w.setState(2),this.focusedMapNavButtonIx=f>0?0:1},h.prototype.simpleButtonNavigation=function(f,m,u){var v=this.keyCodes,w=this,S=this.chart;return new V(S,{keyCodeMap:[[[v.tab,v.up,v.down,v.left,v.right],function(x,p){var g=x===v.tab&&p.shiftKey||x===v.left||x===v.up;return this.response[g?"prev":"next"]}],[[v.space,v.enter],function(){var x=u(this,S);return M(x,this.response.success)}]],validate:function(){return S[f]&&S[f].box&&w[m].buttonElement},init:function(){S.setFocusToElement(S[f].box,w[m].buttonElement)}})},h.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(f,m){m.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(f,m){return m.drillUp(),f.response.prev}),this.getMapZoomNavigation()]},h}(W);return P}),it(B,"Accessibility/HighContrastMode.js",[B["Core/Globals.js"]],function(W){var R=W.doc,H=W.isMS,V=W.win;return{isHighContrastModeActive:function(){var $=/(Edg)/.test(V.navigator.userAgent);if(V.matchMedia&&$)return V.matchMedia("(-ms-high-contrast: active)").matches;if(H&&V.getComputedStyle){var Z=R.createElement("div");Z.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),R.body.appendChild(Z);var U=(Z.currentStyle||V.getComputedStyle(Z)).backgroundImage;return R.body.removeChild(Z),U==="none"}return V.matchMedia&&V.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function($){$.highContrastModeActive=!0;var Z=$.options.accessibility.highContrastTheme;$.update(Z,!1),$.series.forEach(function(U){var z=Z.plotOptions[U.type]||{};U.update({color:z.color||"windowText",colors:[z.color||"windowText"],borderColor:z.borderColor||"window"}),U.points.forEach(function(I){I.options&&I.options.color&&I.update({color:z.color||"windowText",borderColor:z.borderColor||"window"},!1)})}),$.redraw()}}}),it(B,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),it(B,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}}),it(B,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}}),it(B,"Accessibility/Options/DeprecatedOptions.js",[B["Core/Utilities.js"]],function(W){var R=W.error,H=W.pick;function V(Z,U,z){for(var I,E=Z,M=0;M<U.length-1;++M)E=E[I=U[M]]=H(E[I],{});E[U[U.length-1]]=z}function $(Z,U,z,I){function E(y,h){return h.reduce(function(f,m){return f[m]},y)}var M=E(Z.options,U),P=E(Z.options,z);Object.keys(I).forEach(function(y){var h,f=M[y];f!==void 0&&(V(P,I[y],f),R(32,!1,Z,((h={})[U.join(".")+"."+y]=z.join(".")+"."+I[y].join("."),h)))})}return function(Z){(function(U){var z=U.options.chart,I=U.options.accessibility||{};["description","typeDescription"].forEach(function(E){var M;z[E]&&(I[E]=z[E],R(32,!1,U,((M={})["chart.".concat(E)]="use accessibility.".concat(E),M)))})})(Z),function(U){U.axes.forEach(function(z){var I=z.options;I&&I.description&&(I.accessibility=I.accessibility||{},I.accessibility.description=I.description,R(32,!1,U,{"axis.description":"use axis.accessibility.description"}))})}(Z),Z.series&&function(U){var z={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};U.series.forEach(function(I){Object.keys(z).forEach(function(E){var M,P=I.options[E];E==="accessibility.pointDescriptionFormatter"&&(P=I.options.accessibility&&I.options.accessibility.pointDescriptionFormatter),P!==void 0&&(V(I.options,z[E],E==="skipKeyboardNavigation"?!P:P),R(32,!1,U,((M={})["series.".concat(E)]="series."+z[E].join("."),M)))})})}(Z),function(U){$(U,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]})}(Z),function(U){$(U,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]})}(Z),function(U){$(U,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}(Z)}}),it(B,"Accessibility/Accessibility.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/A11yI18n.js"],B["Accessibility/Components/ContainerComponent.js"],B["Accessibility/FocusBorder.js"],B["Accessibility/Components/InfoRegionsComponent.js"],B["Accessibility/KeyboardNavigation.js"],B["Accessibility/Components/LegendComponent.js"],B["Accessibility/Components/MenuComponent.js"],B["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],B["Accessibility/ProxyProvider.js"],B["Accessibility/Components/RangeSelectorComponent.js"],B["Accessibility/Components/SeriesComponent/SeriesComponent.js"],B["Accessibility/Components/ZoomComponent.js"],B["Accessibility/HighContrastMode.js"],B["Accessibility/HighContrastTheme.js"],B["Accessibility/Options/A11yDefaults.js"],B["Accessibility/Options/LangDefaults.js"],B["Accessibility/Options/DeprecatedOptions.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f,m,u,v,w,S,x){var p=W.defaultOptions,g=R.doc,r=H.addEvent,a=H.extend,t=H.fireEvent,i=H.merge,o=V.removeElement,e=function(){function s(n){this.chart=void 0,this.components=void 0,this.keyboardNavigation=void 0,this.proxyProvider=void 0,this.init(n)}return s.prototype.init=function(n){if(this.chart=n,!g.addEventListener||!n.renderer.isSVG)return this.zombie=!0,this.components={},void n.renderTo.setAttribute("aria-hidden",!0);x(n),this.proxyProvider=new y(this.chart),this.initComponents(),this.keyboardNavigation=new I(n,this.components)},s.prototype.initComponents=function(){var n=this.chart,l=this.proxyProvider,b=n.options.accessibility;this.components={container:new Z,infoRegions:new z,legend:new E,chartMenu:new M,rangeSelector:new h,series:new f,zoom:new m},b.customComponents&&a(this.components,b.customComponents);var T=this.components;this.getComponentOrder().forEach(function(D){T[D].initBase(n,l),T[D].init()})},s.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var n=Object.keys(this.components).filter(function(l){return l!=="series"});return["series"].concat(n)},s.prototype.update=function(){var n=this.components,l=this.chart,b=l.options.accessibility;t(l,"beforeA11yUpdate"),l.types=this.getChartTypes();var T=b.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(T),this.getComponentOrder().forEach(function(D){n[D].onChartUpdate(),t(l,"afterA11yComponentUpdate",{name:D,component:n[D]})}),this.keyboardNavigation.update(T),!l.highContrastModeActive&&u.isHighContrastModeActive()&&u.setHighContrastTheme(l),t(l,"afterA11yUpdate",{accessibility:this})},s.prototype.destroy=function(){var n=this.chart||{},l=this.components;Object.keys(l).forEach(function(b){l[b].destroy(),l[b].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),n.announcerContainer&&o(n.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),n.renderTo&&n.renderTo.setAttribute("aria-hidden",!0),n.focusElement&&n.focusElement.removeFocusBorder()},s.prototype.getChartTypes=function(){var n={};return this.chart.series.forEach(function(l){n[l.type]=1}),Object.keys(n)},s}();return function(s){var n=[];function l(){this.accessibility&&this.accessibility.destroy()}function b(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var C=this.accessibility;C&&!C.zombie&&(C.proxyProvider.updateProxyElementPositions(),C.getComponentOrder().forEach(function(A){C.components[A].onChartRender()}))}function T(C){var A=C.options.accessibility;A&&(A.customComponents&&(this.options.accessibility.customComponents=A.customComponents,delete A.customComponents),i(!0,this.options.accessibility,A),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function D(){var C=this.accessibility,A=this.options.accessibility;A&&A.enabled?C&&!C.zombie?C.update():(this.accessibility=C=new s(this),C&&!C.zombie&&C.update()):C?(C.destroy&&C.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function d(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}s.i18nFormat=$.i18nFormat,s.compose=function(C,A,N,_,L,O){I.compose(C),P.compose(_),E.compose(C,A),M.compose(C),f.compose(C,N,_),$.compose(C),U.compose(C,L),O&&h.compose(C,O),n.indexOf(C)===-1&&(n.push(C),C.prototype.updateA11yEnabled=D,r(C,"destroy",l),r(C,"render",b),r(C,"update",T),["addSeries","init"].forEach(function(j){r(C,j,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(function(j){r(C,j,function(){var Y=this.accessibility;Y&&!Y.zombie&&Y.update()})})),n.indexOf(N)===-1&&(n.push(N),r(N,"update",d)),n.indexOf(_)===-1&&(n.push(_),["update","updatedData","remove"].forEach(function(j){r(_,j,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(e||(e={})),i(!0,p,w,{accessibility:{highContrastTheme:v},lang:S}),e}),it(B,"masters/modules/accessibility.src.js",[B["Core/Globals.js"],B["Accessibility/Accessibility.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(W,R,H,V,$,Z,U){var z=W;z.i18nFormat=R.i18nFormat,z.A11yChartUtilities=V,z.A11yHTMLUtilities=$,z.AccessibilityComponent=H,z.KeyboardNavigationHandler=Z,z.SeriesAccessibilityDescriber=U,R.compose(z.Chart,z.Legend,z.Point,z.Series,z.SVGElement,z.RangeSelector)})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},5118:(ot,nt,st)=>{st.d(nt,{A:()=>E});var ct=st(6956),pt=st(4089),ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,B=st(3269);function it(M,P){if(typeof M!="function"||P!=null&&typeof P!="function")throw new TypeError("Expected a function");var y=function(){var h=arguments,f=P?P.apply(this,h):h[0],m=y.cache;if(m.has(f))return m.get(f);var u=M.apply(this,h);return y.cache=m.set(f,u)||m,u};return y.cache=new(it.Cache||B.A),y}it.Cache=B.A;var W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R=/\\(\\)?/g;const H=(V=it(function(M){var P=[];return M.charCodeAt(0)===46&&P.push(""),M.replace(W,function(y,h,f,m){P.push(f?m.replace(R,"$1"):h||y)}),P},function(M){return $.size===500&&$.clear(),M}),$=V.cache,V);var V,$,Z=st(3516),U=Z.A?Z.A.prototype:void 0,z=U?U.toString:void 0;const I=function M(P){if(typeof P=="string")return P;if((0,ct.A)(P))return function(h,f){for(var m=-1,u=h==null?0:h.length,v=Array(u);++m<u;)v[m]=f(h[m],m,h);return v}(P,M)+"";if((0,pt.A)(P))return z?z.call(P):"";var y=P+"";return y=="0"&&1/P==-1/0?"-0":y},E=function(M,P){return(0,ct.A)(M)?M:function(y,h){if((0,ct.A)(y))return!1;var f=typeof y;return!(f!="number"&&f!="symbol"&&f!="boolean"&&y!=null&&!(0,pt.A)(y))||ft.test(y)||!ut.test(y)||h!=null&&y in Object(h)}(M,P)?[M]:H(function(y){return y==null?"":I(y)}(M))}},5134:function(ot,nt,st){var ct,pt,ut;pt=typeof window!="undefined"?window:this,ut=function(ft){var B={};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}return it(B,"Core/Globals.js",[],function(){var W;return function(R){R.SVG_NS="http://www.w3.org/2000/svg",R.product="Highcharts",R.version="10.3.3",R.win=ft!==void 0?ft:{},R.doc=R.win.document,R.svg=R.doc&&R.doc.createElementNS&&!!R.doc.createElementNS(R.SVG_NS,"svg").createSVGRect,R.userAgent=R.win.navigator&&R.win.navigator.userAgent||"",R.isChrome=R.userAgent.indexOf("Chrome")!==-1,R.isFirefox=R.userAgent.indexOf("Firefox")!==-1,R.isMS=/(edge|msie|trident)/i.test(R.userAgent)&&!R.win.opera,R.isSafari=!R.isChrome&&R.userAgent.indexOf("Safari")!==-1,R.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(R.userAgent),R.isWebKit=R.userAgent.indexOf("AppleWebKit")!==-1,R.deg2rad=2*Math.PI/360,R.hasBidiBug=R.isFirefox&&parseInt(R.userAgent.split("Firefox/")[1],10)<4,R.hasTouch=!!R.win.TouchEvent,R.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],R.noop=function(){},R.supportsPassiveEvents=function(){var H=!1;if(!R.isMS){var V=Object.defineProperty({},"passive",{get:function(){H=!0}});R.win.addEventListener&&R.win.removeEventListener&&(R.win.addEventListener("testPassive",R.noop,V),R.win.removeEventListener("testPassive",R.noop,V))}return H}(),R.charts=[],R.dateFormats={},R.seriesTypes={},R.symbolSizes={},R.chartCount=0}(W||(W={})),W}),it(B,"Core/Utilities.js",[B["Core/Globals.js"]],function(W){var R=W.charts,H=W.doc,V=W.win;function $(e,s,n,l){var b=s?"Highcharts error":"Highcharts warning";e===32&&(e=b+": Deprecated member");var T=P(e),D=T?b+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if(l!==void 0){var d="";T&&(D+="?"),p(l,function(C,A){d+=`
7
+ - `.concat(A,": ").concat(C),T&&(D+=encodeURI(A)+"="+encodeURI(C))}),D+=d}r(W,"displayError",{chart:n,code:e,message:D,params:l},function(){if(s)throw new Error(D);V.console&&$.messages.indexOf(D)===-1&&console.warn(D)}),$.messages.push(D)}function Z(e,s){return parseInt(e,s||10)}function U(e){return typeof e=="string"}function z(e){var s=Object.prototype.toString.call(e);return s==="[object Array]"||s==="[object Array Iterator]"}function I(e,s){return!(!e||typeof e!="object"||s&&z(e))}function E(e){return I(e)&&typeof e.nodeType=="number"}function M(e){var s=e&&e.constructor;return!(!I(e,!0)||E(e)||!s||!s.name||s.name==="Object")}function P(e){return typeof e=="number"&&!isNaN(e)&&e<1/0&&e>-1/0}function y(e){return e!=null}function h(e,s,n){var l,b=U(s)&&!y(n),T=function(D,d){y(D)?e.setAttribute(d,D):b?(l=e.getAttribute(d))||d!=="class"||(l=e.getAttribute(d+"Name")):e.removeAttribute(d)};return U(s)?T(n,s):p(s,T),l}function f(e,s){var n;for(n in e||(e={}),s)e[n]=s[n];return e}function m(){for(var e=arguments,s=e.length,n=0;n<s;n++){var l=e[n];if(l!=null)return l}}function u(e,s){W.isMS&&!W.svg&&s&&y(s.opacity)&&(s.filter="alpha(opacity=".concat(100*s.opacity,")")),f(e.style,s)}function v(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function w(e,s){return e>1e14?e:parseFloat(e.toPrecision(s||14))}(function(e){e.messages=[]})($||($={})),Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var S,x=Array.prototype.find?function(e,s){return e.find(s)}:function(e,s){var n,l=e.length;for(n=0;n<l;n++)if(s(e[n],n))return e[n]};function p(e,s,n){for(var l in e)Object.hasOwnProperty.call(e,l)&&s.call(n||e[l],e[l],l,e)}function g(e,s,n){function l(C,A){var N=e.removeEventListener||W.removeEventListenerPolyfill;N&&N.call(e,C,A,!1)}function b(C){var A,N;e.nodeName&&(s?(A={})[s]=!0:A=C,p(A,function(_,L){if(C[L])for(N=C[L].length;N--;)l(L,C[L][N].fn)}))}var T=typeof e=="function"&&e.prototype||e;if(Object.hasOwnProperty.call(T,"hcEvents")){var D=T.hcEvents;if(s){var d=D[s]||[];n?(D[s]=d.filter(function(C){return n!==C.fn}),l(s,n)):(b(D),D[s]=[])}else b(D),delete T.hcEvents}}function r(e,s,n,l){var b;if(n=n||{},H.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==W))(b=H.createEvent("Events")).initEvent(s,!0,!0),n=f(b,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(s,n);else if(e.hcEvents){n.target||f(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:s});for(var T=[],D=e,d=!1;D.hcEvents;)Object.hasOwnProperty.call(D,"hcEvents")&&D.hcEvents[s]&&(T.length&&(d=!0),T.unshift.apply(T,D.hcEvents[s])),D=Object.getPrototypeOf(D);d&&T.sort(function(C,A){return C.order-A.order}),T.forEach(function(C){C.fn.call(e,n)===!1&&n.preventDefault()})}l&&!n.defaultPrevented&&l.call(e,n)}p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,s){W[s]=function(n){var l;return $(32,!1,void 0,((l={})["Highcharts.".concat(s)]="use Array.".concat(e),l)),Array.prototype[e].apply(n,[].slice.call(arguments,1))}});var a,t,i=(a=Math.random().toString(36).substring(2,9)+"-",t=0,function(){return"highcharts-"+(S?"":a)+t++});V.jQuery&&(V.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new W[U(e[0])?e.shift():"Chart"](this[0],e[0],e[1]),this):R[h(this[0],"data-highcharts-chart")]});var o={addEvent:function(e,s,n,l){l===void 0&&(l={});var b=typeof e=="function"&&e.prototype||e;Object.hasOwnProperty.call(b,"hcEvents")||(b.hcEvents={});var T=b.hcEvents;W.Point&&e instanceof W.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var D=e.addEventListener||W.addEventListenerPolyfill;D&&D.call(e,s,n,!!W.supportsPassiveEvents&&{passive:l.passive===void 0?s.indexOf("touch")!==-1:l.passive,capture:!1}),T[s]||(T[s]=[]);var d={fn:n,order:typeof l.order=="number"?l.order:1/0};return T[s].push(d),T[s].sort(function(C,A){return C.order-A.order}),function(){g(e,s,n)}},arrayMax:function(e){for(var s=e.length,n=e[0];s--;)e[s]>n&&(n=e[s]);return n},arrayMin:function(e){for(var s=e.length,n=e[0];s--;)e[s]<n&&(n=e[s]);return n},attr:h,clamp:function(e,s,n){return e>s?e<n?e:n:s},cleanRecursively:function e(s,n){var l={};return p(s,function(b,T){var D;I(s[T],!0)&&!s.nodeType&&n[T]?(D=e(s[T],n[T]),Object.keys(D).length&&(l[T]=D)):(I(s[T])||s[T]!==n[T]||T in s&&!(T in n))&&(l[T]=s[T])}),l},clearTimeout:function(e){y(e)&&clearTimeout(e)},correctFloat:w,createElement:function(e,s,n,l,b){var T=H.createElement(e);return s&&f(T,s),b&&u(T,{padding:"0",border:"none",margin:"0"}),n&&u(T,n),l&&l.appendChild(T),T},css:u,defined:y,destroyObjectProperties:function(e,s){p(e,function(n,l){n&&n!==s&&n.destroy&&n.destroy(),delete e[l]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,s){for(var n=e.length;n--;)if(e[n]===s){e.splice(n,1);break}},error:$,extend:f,extendClass:function(e,s){var n=function(){};return f(n.prototype=new e,s),n},find:x,fireEvent:r,getMagnitude:v,getNestedProperty:function(e,s){for(var n=e.split(".");n.length&&y(s);){var l=n.shift();if(l===void 0||l==="__proto__")return;var b=s[l];if(!y(b)||typeof b=="function"||typeof b.nodeType=="number"||b===V)return;s=b}return s},getStyle:function e(s,n,l){var b,T=W.getStyle||e;if(n==="width"){var D=Math.min(s.offsetWidth,s.scrollWidth),d=s.getBoundingClientRect&&s.getBoundingClientRect().width;return d<D&&d>=D-1&&(D=Math.floor(d)),Math.max(0,D-(T(s,"padding-left",!0)||0)-(T(s,"padding-right",!0)||0))}if(n==="height")return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(T(s,"padding-top",!0)||0)-(T(s,"padding-bottom",!0)||0));V.getComputedStyle||$(27,!0);var C=V.getComputedStyle(s,void 0);return C&&(b=C.getPropertyValue(n),m(l,n!=="opacity")&&(b=Z(b))),b},inArray:function(e,s,n){return $(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),s.indexOf(e,n)},isArray:z,isClass:M,isDOMElement:E,isFunction:function(e){return typeof e=="function"},isNumber:P,isObject:I,isString:U,keys:function(e){return $(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,s=arguments,n={},l=function(T,D){return typeof T!="object"&&(T={}),p(D,function(d,C){C!=="__proto__"&&C!=="constructor"&&(!I(d,!0)||M(d)||E(d)?T[C]=D[C]:T[C]=l(T[C]||{},d))}),T};s[0]===!0&&(n=s[1],s=Array.prototype.slice.call(s,2));var b=s.length;for(e=0;e<b;e++)n=l(n,s[e]);return n},normalizeTickInterval:function(e,s,n,l,b){var T,D=e,d=e/(n=m(n,v(e)));for(s||(s=b?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],l===!1&&(n===1?s=s.filter(function(C){return C%1==0}):n<=.1&&(s=[1/n]))),T=0;T<s.length&&(D=s[T],!(b&&D*n>=e||!b&&d<=(s[T]+(s[T+1]||s[T]))/2));T++);return w(D*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:p,offset:function(e){var s=H.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(V.pageYOffset||s.scrollTop)-(s.clientTop||0),left:n.left+(V.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:n.width,height:n.height}},pad:function(e,s,n){return new Array((s||2)+1-String(e).replace("-","").length).join(n||"0")+e},pick:m,pInt:Z,relativeLength:function(e,s,n){return/%$/.test(e)?s*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:g,splat:function(e){return z(e)?e:[e]},stableSort:function(e,s){var n,l,b=e.length;for(l=0;l<b;l++)e[l].safeI=l;for(e.sort(function(T,D){return(n=s(T,D))===0?T.safeI-D.safeI:n}),l=0;l<b;l++)delete e[l].safeI},syncTimeout:function(e,s,n){return s>0?setTimeout(e,s,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:i,useSerialIds:function(e){return S=m(e,S)},wrap:function(e,s,n){var l=e[s];e[s]=function(){var b=arguments,T=this;return n.apply(this,[function(){return l.apply(T,arguments.length?arguments:b)}].concat([].slice.call(arguments)))}}};return o}),it(B,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),it(B,"Core/Color/Color.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=R.isNumber,V=R.merge,$=R.pInt;return function(){function Z(U){this.rgba=[NaN,NaN,NaN,NaN],this.input=U;var z=W.Color;return z&&z!==Z?new z(U):this instanceof Z?void this.init(U):new Z(U)}return Z.parse=function(U){return U?new Z(U):Z.None},Z.prototype.init=function(U){var z,I,E,M;if(typeof U=="object"&&U.stops!==void 0)this.stops=U.stops.map(function(h){return new Z(h[1])});else if(typeof U=="string"){if(this.input=U=Z.names[U.toLowerCase()]||U,U.charAt(0)==="#"){var P=U.length,y=parseInt(U.substr(1),16);P===7?I=[(16711680&y)>>16,(65280&y)>>8,255&y,1]:P===4&&(I=[(3840&y)>>4|(3840&y)>>8,(240&y)>>4|240&y,(15&y)<<4|15&y,1])}if(!I)for(E=Z.parsers.length;E--&&!I;)(z=(M=Z.parsers[E]).regex.exec(U))&&(I=M.parse(z))}I&&(this.rgba=I)},Z.prototype.get=function(U){var z=this.input,I=this.rgba;if(typeof z=="object"&&this.stops!==void 0){var E=V(z);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(M,P){E.stops[P]=[E.stops[P][0],M.get(U)]}),E}return I&&H(I[0])?U==="rgb"||!U&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":U==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":z},Z.prototype.brighten=function(U){var z=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(U)});else if(H(U)&&U!==0)for(var I=0;I<3;I++)z[I]+=$(255*U),z[I]<0&&(z[I]=0),z[I]>255&&(z[I]=255);return this},Z.prototype.setOpacity=function(U){return this.rgba[3]=U,this},Z.prototype.tweenTo=function(U,z){var I=this.rgba,E=U.rgba;if(!H(I[0])||!H(E[0]))return U.input||"none";var M=E[3]!==1||I[3]!==1;return(M?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-z))+","+Math.round(E[1]+(I[1]-E[1])*(1-z))+","+Math.round(E[2]+(I[2]-E[2])*(1-z))+(M?","+(E[3]+(I[3]-E[3])*(1-z)):"")+")"},Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),1]}}],Z.None=new Z(""),Z}()}),it(B,"Core/Color/Palettes.js",[],function(){return{colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}),it(B,"Core/Time.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.win,V=R.defined,$=R.error,Z=R.extend,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pad,M=R.pick,P=R.splat,y=R.timeUnits,h=W.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,f=W.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange,m=function(){function u(v){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(v)}return u.prototype.get=function(v,w){if(this.variableTimezone||this.timezoneOffset){var S=w.getTime(),x=S-this.getTimezoneOffset(w);w.setTime(x);var p=w["getUTC"+v]();return w.setTime(S),p}return this.useUTC?w["getUTC"+v]():w["get"+v]()},u.prototype.set=function(v,w,S){if(this.variableTimezone||this.timezoneOffset){if(v==="Milliseconds"||v==="Seconds"||v==="Minutes"&&this.getTimezoneOffset(w)%36e5==0)return w["setUTC"+v](S);var x=this.getTimezoneOffset(w),p=w.getTime()-x;w.setTime(p),w["setUTC"+v](S);var g=this.getTimezoneOffset(w);return p=w.getTime()+g,w.setTime(p)}return this.useUTC||h&&v==="FullYear"?w["setUTC"+v](S):w["set"+v](S)},u.prototype.update=function(v){v===void 0&&(v={});var w=M(v.useUTC,!0);this.options=v=z(!0,this.options,v),this.Date=v.Date||H.Date||Date,this.useUTC=w,this.timezoneOffset=w&&v.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=w&&!(!v.getTimezoneOffset&&!v.timezone)},u.prototype.makeTime=function(v,w,S,x,p,g){var r,a,t;return this.useUTC?(r=this.Date.UTC.apply(0,arguments),r+=a=this.getTimezoneOffset(r),a!==(t=this.getTimezoneOffset(r))?r+=t-a:a-36e5!==this.getTimezoneOffset(r-36e5)||f||(r-=36e5)):r=new this.Date(v,w,M(S,1),M(x,0),M(p,0),M(g,0)).getTime(),r},u.prototype.timezoneOffsetFunction=function(){var v=this,w=this.options,S=w.getTimezoneOffset,x=w.moment||H.moment;if(!this.useUTC)return function(p){return 6e4*new Date(p.toString()).getTimezoneOffset()};if(w.timezone){if(x)return function(p){return 6e4*-x.tz(p,w.timezone).utcOffset()};$(25)}return this.useUTC&&S?function(p){return 6e4*S(p.valueOf())}:function(){return 6e4*(v.timezoneOffset||0)}},u.prototype.dateFormat=function(v,w,S){if(!V(w)||isNaN(w))return W.defaultOptions.lang&&W.defaultOptions.lang.invalidDate||"";v=M(v,"%Y-%m-%d %H:%M:%S");var x=this,p=new this.Date(w),g=this.get("Hours",p),r=this.get("Day",p),a=this.get("Date",p),t=this.get("Month",p),i=this.get("FullYear",p),o=W.defaultOptions.lang,e=o&&o.weekdays,s=o&&o.shortWeekdays,n=Z({a:s?s[r]:e[r].substr(0,3),A:e[r],d:E(a),e:E(a,2," "),w:r,b:o.shortMonths[t],B:o.months[t],m:E(t+1),o:t+1,y:i.toString().substr(2,2),Y:i,H:E(g),k:g,I:E(g%12||12),l:g%12||12,M:E(this.get("Minutes",p)),p:g<12?"AM":"PM",P:g<12?"am":"pm",S:E(p.getSeconds()),L:E(Math.floor(w%1e3),3)},W.dateFormats);return I(n,function(l,b){for(;v.indexOf("%"+b)!==-1;)v=v.replace("%"+b,typeof l=="function"?l.call(x,w):l)}),S?v.substr(0,1).toUpperCase()+v.substr(1):v},u.prototype.resolveDTLFormat=function(v){return U(v,!0)?v:{main:(v=P(v))[0],from:v[1],to:v[2]}},u.prototype.getTimeTicks=function(v,w,S,x){var p,g,r,a,t=this,i=t.Date,o=[],e={},s=new i(w),n=v.unitRange,l=v.count||1;if(x=M(x,1),V(w)){t.set("Milliseconds",s,n>=y.second?0:l*Math.floor(t.get("Milliseconds",s)/l)),n>=y.second&&t.set("Seconds",s,n>=y.minute?0:l*Math.floor(t.get("Seconds",s)/l)),n>=y.minute&&t.set("Minutes",s,n>=y.hour?0:l*Math.floor(t.get("Minutes",s)/l)),n>=y.hour&&t.set("Hours",s,n>=y.day?0:l*Math.floor(t.get("Hours",s)/l)),n>=y.day&&t.set("Date",s,n>=y.month?1:Math.max(1,l*Math.floor(t.get("Date",s)/l))),n>=y.month&&(t.set("Month",s,n>=y.year?0:l*Math.floor(t.get("Month",s)/l)),g=t.get("FullYear",s)),n>=y.year&&(g-=g%l,t.set("FullYear",s,g)),n===y.week&&(a=t.get("Day",s),t.set("Date",s,t.get("Date",s)-a+x+(a<x?-7:0))),g=t.get("FullYear",s);var b=t.get("Month",s),T=t.get("Date",s),D=t.get("Hours",s);w=s.getTime(),!t.variableTimezone&&t.useUTC||!V(S)||(r=S-w>4*y.month||t.getTimezoneOffset(w)!==t.getTimezoneOffset(S));var d=s.getTime();for(p=1;d<S;)o.push(d),n===y.year?d=t.makeTime(g+p*l,0):n===y.month?d=t.makeTime(g,b+p*l):!r||n!==y.day&&n!==y.week?r&&n===y.hour&&l>1?d=t.makeTime(g,b,T,D+p*l):d+=n*l:d=t.makeTime(g,b,T+p*l*(n===y.day?1:7)),p++;o.push(d),n<=y.hour&&o.length<1e4&&o.forEach(function(C){C%18e5==0&&t.dateFormat("%H%M%S%L",C)==="000000000"&&(e[C]="day")})}return o.info=Z(v,{higherRanks:e,totalRange:n*l}),o},u.prototype.getDateFormat=function(v,w,S,x){var p=this.dateFormat("%m-%d %H:%M:%S.%L",w),g="01-01 00:00:00.000",r={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",t=a;for(a in y){if(v===y.week&&+this.dateFormat("%w",w)===S&&p.substr(6)===g.substr(6)){a="week";break}if(y[a]>v){a=t;break}if(r[a]&&p.substr(r[a])!==g.substr(r[a]))break;a!=="week"&&(t=a)}return this.resolveDTLFormat(x[a]).main},u}();return m}),it(B,"Core/Defaults.js",[B["Core/Chart/ChartDefaults.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Color/Palettes.js"],B["Core/Time.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.parse,z=H.isTouchDevice,I=H.svg,E=Z.merge,M={colors:V.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],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:W,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:I,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:z?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:U("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};M.chart.styledMode=!1;var P=new $(E(M.global,M.time));return{defaultOptions:M,defaultTime:P,getOptions:function(){return M},setOptions:function(y){return E(!0,M,y),(y.time||y.global)&&(H.time?H.time.update(E(M.global,M.time,y.global,y.time)):H.time=P),M}}}),it(B,"Core/Animation/Fx.js",[B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=R.win,Z=H.isNumber,U=H.objectEach,z=function(){function I(E,M,P){this.pos=NaN,this.options=M,this.elem=E,this.prop=P}return I.prototype.dSetter=function(){var E=this.paths,M=E&&E[0],P=E&&E[1],y=this.now||0,h=[];if(y!==1&&M&&P)if(M.length===P.length&&y<1)for(var f=0;f<P.length;f++){for(var m=M[f],u=P[f],v=[],w=0;w<u.length;w++){var S=m[w],x=u[w];Z(S)&&Z(x)&&(u[0]!=="A"||w!==4&&w!==5)?v[w]=S+y*(x-S):v[w]=x}h.push(v)}else h=P;else h=this.toD||[];this.elem.attr("d",h,void 0,!0)},I.prototype.update=function(){var E=this.elem,M=this.prop,P=this.now,y=this.options.step;this[M+"Setter"]?this[M+"Setter"]():E.attr?E.element&&E.attr(M,P,null,!0):E.style[M]=P+this.unit,y&&y.call(E,P,this)},I.prototype.run=function(E,M,P){var y=this,h=y.options,f=function(v){return!f.stopped&&y.step(v)},m=$.requestAnimationFrame||function(v){setTimeout(v,13)},u=function(){for(var v=0;v<I.timers.length;v++)I.timers[v]()||I.timers.splice(v--,1);I.timers.length&&m(u)};E!==M||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=E,this.end=M,this.unit=P,this.now=this.start,this.pos=0,f.elem=this.elem,f.prop=this.prop,f()&&I.timers.push(f)===1&&m(u)):(delete h.curAnim[this.prop],h.complete&&Object.keys(h.curAnim).length===0&&h.complete.call(this.elem))},I.prototype.step=function(E){var M,P,y=+new Date,h=this.options,f=this.elem,m=h.complete,u=h.duration,v=h.curAnim;return f.attr&&!f.element?M=!1:E||y>=u+this.startTime?(this.now=this.end,this.pos=1,this.update(),v[this.prop]=!0,P=!0,U(v,function(w){w!==!0&&(P=!1)}),P&&m&&m.call(f),M=!1):(this.pos=h.easing((y-this.startTime)/u),this.now=this.start+(this.end-this.start)*this.pos,this.update(),M=!0),M},I.prototype.initPath=function(E,M,P){var y,h,f,m,u=E.startX,v=E.endX,w=P.slice(),S=E.isArea,x=S?2:1,p=M&&M.slice();if(!p)return[w,w];function g(a,t){for(;a.length<h;){var i=a[0],o=t[h-a.length];if(o&&i[0]==="M"&&(o[0]==="C"?a[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:a[0]=["L",i[1],i[2]]),a.unshift(i),S){var e=a.pop();a.push(a[a.length-1],e)}}}function r(a,t){for(;a.length<h;){var i=a[Math.floor(a.length/x)-1].slice();if(i[0]==="C"&&(i[1]=i[5],i[2]=i[6]),S){var o=a[Math.floor(a.length/x)].slice();a.splice(a.length/2,0,i,o)}else a.push(i)}}if(u&&v&&v.length){for(f=0;f<u.length;f++){if(u[f]===v[0]){y=f;break}if(u[0]===v[v.length-u.length+f]){y=f,m=!0;break}if(u[u.length-1]===v[v.length-u.length+f]){y=u.length-f;break}}y===void 0&&(p=[])}return p.length&&Z(y)&&(h=w.length+y*x,m?(g(p,w),r(w)):(g(w,p),r(p))),[p,w]},I.prototype.fillSetter=function(){I.prototype.strokeSetter.apply(this,arguments)},I.prototype.strokeSetter=function(){this.elem.attr(this.prop,V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)},I.timers=[],I}();return z}),it(B,"Core/Animation/AnimationUtilities.js",[B["Core/Animation/Fx.js"],B["Core/Utilities.js"]],function(W,R){var H=R.defined,V=R.getStyle,$=R.isArray,Z=R.isNumber,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pick;function M(h){return U(h)?z({duration:500,defer:0},h):{duration:h?500:0,defer:0}}function P(h,f){for(var m=W.timers.length;m--;)W.timers[m].elem!==h||f&&f!==W.timers[m].prop||(W.timers[m].stopped=!0)}var y={animate:function(h,f,m){var u,v,w,S,x="";U(m)||(m={duration:(S=arguments)[2],easing:S[3],complete:S[4]}),Z(m.duration)||(m.duration=400),m.easing=typeof m.easing=="function"?m.easing:Math[m.easing]||Math.easeInOutSine,m.curAnim=z(f),I(f,function(p,g){P(h,g),w=new W(h,m,g),v=void 0,g==="d"&&$(f.d)?(w.paths=w.initPath(h,h.pathArray,f.d),w.toD=f.d,u=0,v=1):h.attr?u=h.attr(g):(u=parseFloat(V(h,g))||0,g!=="opacity"&&(x="px")),v||(v=p),typeof v=="string"&&v.match("px")&&(v=v.replace(/px/g,"")),w.run(u,v,x)})},animObject:M,getDeferredAnimation:function(h,f,m){var u=M(f),v=m?[m]:h.series,w=0,S=0;return v.forEach(function(x){var p=M(x.options.animation);w=f&&H(f.defer)?u.defer:Math.max(w,p.duration+p.defer),S=Math.min(u.duration,p.duration)}),h.renderer.forExport&&(w=0),{defer:Math.max(0,w-S),duration:Math.min(w,S)}},setAnimation:function(h,f){f.renderer.globalAnimation=E(h,f.options.chart.animation,!0)},stop:P};return y}),it(B,"Core/Renderer/HTML/AST.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.SVG_NS,V=W.win,$=R.attr,Z=R.createElement,U=R.css,z=R.error,I=R.isFunction,E=R.isString,M=R.objectEach,P=R.splat,y=V.trustedTypes,h=y&&I(y.createPolicy)&&y.createPolicy("highcharts",{createHTML:function(u){return u}}),f=h?h.createHTML(""):"",m=function(){try{return!!new DOMParser().parseFromString(f,"text/html")}catch(u){return!1}}();return function(){function u(v){this.nodes=typeof v=="string"?this.parseMarkup(v):v}return u.filterUserAttributes=function(v){return M(v,function(w,S){var x=!0;u.allowedAttributes.indexOf(S)===-1&&(x=!1),["background","dynsrc","href","lowsrc","src"].indexOf(S)!==-1&&(x=E(w)&&u.allowedReferences.some(function(p){return w.indexOf(p)===0})),x||(z(33,!1,void 0,{"Invalid attribute in config":"".concat(S)}),delete v[S]),E(w)&&v[S]&&(v[S]=w.replace(/</g,"&lt;"))}),v},u.parseStyle=function(v){return v.split(";").reduce(function(w,S){var x=S.split(":").map(function(g){return g.trim()}),p=x.shift();return p&&x.length&&(w[p.replace(/-([a-z])/g,function(g){return g[1].toUpperCase()})]=x.join(":")),w},{})},u.setElementHTML=function(v,w){v.innerHTML=u.emptyHTML,w&&new u(w).addToDOM(v)},u.prototype.addToDOM=function(v){return function w(S,x){var p;return P(S).forEach(function(g){var r,a=g.tagName,t=g.textContent?W.doc.createTextNode(g.textContent):void 0,i=u.bypassHTMLFiltering;if(a)if(a==="#text")r=t;else if(u.allowedTags.indexOf(a)!==-1||i){var o=a==="svg"?H:x.namespaceURI||H,e=W.doc.createElementNS(o,a),s=g.attributes||{};M(g,function(n,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(s[l]=n)}),$(e,i?s:u.filterUserAttributes(s)),g.style&&U(e,g.style),t&&e.appendChild(t),w(g.children||[],e),r=e}else z(33,!1,void 0,{"Invalid tagName in config":a});r&&x.appendChild(r),p=r}),p}(this.nodes,v)},u.prototype.parseMarkup=function(v){var w,S=[];if(v=v.trim().replace(/ style=(["'])/g," data-style=$1"),m)w=new DOMParser().parseFromString(h?h.createHTML(v):v,"text/html");else{var x=Z("div");x.innerHTML=v,w={body:x}}var p=function(g,r){var a=g.nodeName.toLowerCase(),t={tagName:a};a==="#text"&&(t.textContent=g.textContent||"");var i=g.attributes;if(i){var o={};[].forEach.call(i,function(s){s.name==="data-style"?t.style=u.parseStyle(s.value):o[s.name]=s.value}),t.attributes=o}if(g.childNodes.length){var e=[];[].forEach.call(g.childNodes,function(s){p(s,e)}),e.length&&(t.children=e)}r.push(t)};return[].forEach.call(w.body.childNodes,function(g){return p(g,S)}),S},u.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","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],u.allowedReferences=["https://","http://","mailto:","/","../","./","#"],u.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],u.emptyHTML=f,u.bypassHTMLFiltering=!1,u}()}),it(B,"Core/FormatUtilities.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){var H=W.defaultOptions,V=W.defaultTime,$=R.getNestedProperty,Z=R.isNumber,U=R.pick,z=R.pInt;function I(E,M,P,y){var h,f;E=+E||0,M=+M;var m=H.lang,u=(E.toString().split(".")[1]||"").split("e")[0].length,v=E.toString().split("e"),w=M;M===-1?M=Math.min(u,20):Z(M)?M&&v[1]&&v[1]<0&&((f=M+ +v[1])>=0?(v[0]=(+v[0]).toExponential(f).split("e")[0],M=f):(v[0]=v[0].split(".")[0]||0,E=M<20?(v[0]*Math.pow(10,v[1])).toFixed(M):0,v[1]=0)):M=2;var S=(Math.abs(v[1]?v[0]:E)+Math.pow(10,-Math.max(M,u)-1)).toFixed(M),x=String(z(S)),p=x.length>3?x.length%3:0;return P=U(P,m.decimalPoint),y=U(y,m.thousandsSep),h=E<0?"-":"",h+=p?x.substr(0,p)+y:"",+v[1]<0&&!w?h="0":h+=x.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+y),M&&(h+=P+S.slice(-M)),v[1]&&+h!=0&&(h+="e"+v[1]),h}return{dateFormat:function(E,M,P){return V.dateFormat(E,M,P)},format:function(E,M,P){for(var y,h,f,m,u="{",v=!1,w=/f$/,S=/\.([0-9])/,x=H.lang,p=P&&P.time||V,g=P&&P.numberFormatter||I,r=[];E&&(m=E.indexOf(u))!==-1;){if(y=E.slice(0,m),v){if(h=y.split(":"),f=$(h.shift()||"",M),h.length&&typeof f=="number")if(y=h.join(":"),w.test(y)){var a=parseInt((y.match(S)||["","-1"])[1],10);f!==null&&(f=g(f,a,x.decimalPoint,y.indexOf(",")>-1?x.thousandsSep:""))}else f=p.dateFormat(y,f);r.push(f)}else r.push(y);E=E.slice(m+1),u=(v=!v)?"}":"{"}return r.push(E),r.join("")},numberFormat:I}}),it(B,"Core/Renderer/RendererUtilities.js",[B["Core/Utilities.js"]],function(W){var R,H=W.clamp,V=W.pick,$=W.stableSort;return function(Z){Z.distribute=function U(z,I,E){var M,P,y,h=z,f=h.reducedLen||I,m=function(S,x){return S.target-x.target},u=!0,v=[],w=0;for(M=z.length;M--;)w+=z[M].size;if(w>f){for($(z,function(S,x){return(x.rank||0)-(S.rank||0)}),M=0,w=0;w<=f;)w+=z[M].size,M++;v=z.splice(M-1,z.length)}for($(z,m),z=z.map(function(S){return{size:S.size,targets:[S.target],align:V(S.align,.5)}});u;){for(M=z.length;M--;)P=z[M],y=(Math.min.apply(0,P.targets)+Math.max.apply(0,P.targets))/2,P.pos=H(y-P.size*P.align,0,I-P.size);for(M=z.length,u=!1;M--;)M>0&&z[M-1].pos+z[M-1].size>z[M].pos&&(z[M-1].size+=z[M].size,z[M-1].targets=z[M-1].targets.concat(z[M].targets),z[M-1].align=.5,z[M-1].pos+z[M-1].size>I&&(z[M-1].pos=I-z[M-1].size),z.splice(M,1),u=!0)}return h.push.apply(h,v),M=0,z.some(function(S){var x=0;return(S.targets||[]).some(function(){return h[M].pos=S.pos+x,E!==void 0&&Math.abs(h[M].pos-h[M].target)>E?(h.slice(0,M+1).forEach(function(p){return delete p.pos}),h.reducedLen=(h.reducedLen||I)-.1*I,h.reducedLen>.1*I&&U(h,I,E),!0):(x+=h[M].size,M++,!1)})}),$(h,m),h}}(R||(R={})),R}),it(B,"Core/Renderer/SVG/SVGElement.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.animate,Z=W.animObject,U=W.stop,z=H.deg2rad,I=H.doc,E=H.svg,M=H.SVG_NS,P=H.win,y=V.addEvent,h=V.attr,f=V.createElement,m=V.css,u=V.defined,v=V.erase,w=V.extend,S=V.fireEvent,x=V.isArray,p=V.isFunction,g=V.isString,r=V.merge,a=V.objectEach,t=V.pick,i=V.pInt,o=V.syncTimeout,e=V.uniqueKey,s=function(){function n(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=M,this.symbolCustomAttribs=["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"]}return n.prototype._defaultGetter=function(l){var b=t(this[l+"Value"],this[l],this.element?this.element.getAttribute(l):null,0);return/^[\-0-9\.]+$/.test(b)&&(b=parseFloat(b)),b},n.prototype._defaultSetter=function(l,b,T){T.setAttribute(b,l)},n.prototype.add=function(l){var b,T=this.renderer,D=this.element;return l&&(this.parentGroup=l),this.textStr!==void 0&&this.element.nodeName==="text"&&T.buildText(this),this.added=!0,(!l||l.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(l?l.element:T.box).appendChild(D),this.onAdd&&this.onAdd(),this},n.prototype.addClass=function(l,b){var T=b?"":this.attr("class")||"";return(l=(l||"").split(/ /g).reduce(function(D,d){return T.indexOf(d)===-1&&D.push(d),D},T?[T]:[]).join(" "))!==T&&this.attr("class",l),this},n.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},n.prototype.align=function(l,b,T){var D,d,C,A,N,_={},L=this.renderer,O=L.alignedObjects;l?(this.alignOptions=l,this.alignByTranslate=b,T&&!g(T)||(this.alignTo=C=T||"renderer",v(O,this),O.push(this),T=void 0)):(l=this.alignOptions,b=this.alignByTranslate,C=this.alignTo),T=t(T,L[C],C==="scrollablePlotBox"?L.plotBox:void 0,L);var j=l.align,Y=l.verticalAlign;return D=(T.x||0)+(l.x||0),d=(T.y||0)+(l.y||0),j==="right"?A=1:j==="center"&&(A=2),A&&(D+=(T.width-(l.width||0))/A),_[b?"translateX":"x"]=Math.round(D),Y==="bottom"?N=1:Y==="middle"&&(N=2),N&&(d+=(T.height-(l.height||0))/N),_[b?"translateY":"y"]=Math.round(d),this[this.placed?"animate":"attr"](_),this.placed=!0,this.alignAttr=_,this},n.prototype.alignSetter=function(l){var b={left:"start",center:"middle",right:"end"};b[l]&&(this.alignValue=l,this.element.setAttribute("text-anchor",b[l]))},n.prototype.animate=function(l,b,T){var D=this,d=Z(t(b,this.renderer.globalAnimation,!0)),C=d.defer;return t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(d.duration=0),d.duration!==0?(T&&(d.complete=T),o(function(){D.element&&$(D,l,d)},C)):(this.attr(l,void 0,T||d.complete),a(l,function(A,N){d.step&&d.step.call(this,A,{prop:N,pos:1,elem:this})},this)),this},n.prototype.applyTextOutline=function(l){var b=this.element;l.indexOf("contrast")!==-1&&(l=l.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var T=l.split(" "),D=T[T.length-1],d=T[0];if(d&&d!=="none"&&H.svg){this.fakeTS=!0,d=d.replace(/(^[\d\.]+)(.*?)$/g,function(L,O,j){return 2*Number(O)+j}),this.removeTextOutline();var C=I.createElementNS(M,"tspan");h(C,{class:"highcharts-text-outline",fill:D,stroke:D,"stroke-width":d,"stroke-linejoin":"round"});var A=b.querySelector("textPath")||b;[].forEach.call(A.childNodes,function(L){var O=L.cloneNode(!0);O.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(j){return O.removeAttribute(j)}),C.appendChild(O)});var N=0;[].forEach.call(A.querySelectorAll("text tspan"),function(L){N+=Number(L.getAttribute("dy"))});var _=I.createElementNS(M,"tspan");_.textContent="​",h(_,{x:Number(b.getAttribute("x")),dy:-N}),C.appendChild(_),A.insertBefore(C,A.firstChild)}},n.prototype.attr=function(l,b,T,D){var d,C,A,N,_=this.element,L=this.symbolCustomAttribs,O=this;return typeof l=="string"&&b!==void 0&&(d=l,(l={})[d]=b),typeof l=="string"?O=(this[l+"Getter"]||this._defaultGetter).call(this,l,_):(a(l,function(j,Y){A=!1,D||U(this,Y),this.symbolName&&L.indexOf(Y)!==-1&&(C||(this.symbolAttr(l),C=!0),A=!0),!this.rotation||Y!=="x"&&Y!=="y"||(this.doTransform=!0),A||((N=this[Y+"Setter"]||this._defaultSetter).call(this,j,Y,_),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(Y)&&this.updateShadows(Y,j,N))},this),this.afterSetters()),T&&T.call(this),O},n.prototype.clip=function(l){return this.attr("clip-path",l?"url("+this.renderer.url+"#"+l.id+")":"none")},n.prototype.crisp=function(l,b){var T=this;b=b||l.strokeWidth||0;var D=Math.round(b)%2/2;return l.x=Math.floor(l.x||T.x||0)+D,l.y=Math.floor(l.y||T.y||0)+D,l.width=Math.floor((l.width||T.width||0)-2*D),l.height=Math.floor((l.height||T.height||0)-2*D),u(l.strokeWidth)&&(l.strokeWidth=b),l},n.prototype.complexColor=function(l,b,T){var D,d,C,A,N,_,L,O,j,Y,X,G=this.renderer,q=[];S(this.renderer,"complexColor",{args:arguments},function(){if(l.radialGradient?d="radialGradient":l.linearGradient&&(d="linearGradient"),d){if(C=l[d],N=G.gradients,_=l.stops,j=T.radialReference,x(C)&&(l[d]=C={x1:C[0],y1:C[1],x2:C[2],y2:C[3],gradientUnits:"userSpaceOnUse"}),d==="radialGradient"&&j&&!u(C.gradientUnits)&&(A=C,C=r(C,G.getRadialAttr(j,A),{gradientUnits:"userSpaceOnUse"})),a(C,function(J,rt){rt!=="id"&&q.push(rt,J)}),a(_,function(J){q.push(J)}),q=q.join(","),N[q])Y=N[q].attr("id");else{C.id=Y=e();var Q=N[q]=G.createElement(d).attr(C).add(G.defs);Q.radAttr=A,Q.stops=[],_.forEach(function(J){J[1].indexOf("rgba")===0?(D=R.parse(J[1]),L=D.get("rgb"),O=D.get("a")):(L=J[1],O=1);var rt=G.createElement("stop").attr({offset:J[0],"stop-color":L,"stop-opacity":O}).add(Q);Q.stops.push(rt)})}X="url("+G.url+"#"+Y+")",T.setAttribute(b,X),T.gradient=q,l.toString=function(){return X}}})},n.prototype.css=function(l){var b,T=this.styles,D={},d=this.element,C=!T;if(l.color&&(l.fill=l.color),T&&a(l,function(N,_){T&&T[_]!==N&&(D[_]=N,C=!0)}),C){T&&(l=w(T,D)),l.width===null||l.width==="auto"?delete this.textWidth:d.nodeName.toLowerCase()==="text"&&l.width&&(b=this.textWidth=i(l.width)),this.styles=l,b&&!E&&this.renderer.forExport&&delete l.width;var A=r(l);d.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(N){return A&&delete A[N]}),m(d,A),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),l.textOutline&&this.applyTextOutline(l.textOutline))}return this},n.prototype.dashstyleSetter=function(l){var b,T=this["stroke-width"];if(T==="inherit"&&(T=1),l=l&&l.toLowerCase()){var D=l.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=D.length;b--;)D[b]=""+i(D[b])*t(T,NaN);l=D.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",l)}},n.prototype.destroy=function(){var l,b,T=this,D=T.element||{},d=T.renderer,C=D.ownerSVGElement,A=d.isSVG&&D.nodeName==="SPAN"&&T.parentGroup||void 0;if(D.onclick=D.onmouseout=D.onmouseover=D.onmousemove=D.point=null,U(T),T.clipPath&&C){var N=T.clipPath;[].forEach.call(C.querySelectorAll("[clip-path],[CLIP-PATH]"),function(_){_.getAttribute("clip-path").indexOf(N.element.id)>-1&&_.removeAttribute("clip-path")}),T.clipPath=N.destroy()}if(T.stops){for(b=0;b<T.stops.length;b++)T.stops[b].destroy();T.stops.length=0,T.stops=void 0}for(T.safeRemoveChild(D),d.styledMode||T.destroyShadows();A&&A.div&&A.div.childNodes.length===0;)l=A.parentGroup,T.safeRemoveChild(A.div),delete A.div,A=l;T.alignTo&&v(d.alignedObjects,T),a(T,function(_,L){T[L]&&T[L].parentGroup===T&&T[L].destroy&&T[L].destroy(),delete T[L]})},n.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(l){this.safeRemoveChild(l)},this),this.shadows=void 0},n.prototype.dSetter=function(l,b,T){x(l)&&(typeof l[0]=="string"&&(l=this.renderer.pathToSegments(l)),this.pathArray=l,l=l.reduce(function(D,d,C){return d&&d.join?(C?D+" ":"")+d.join(" "):(d||"").toString()},"")),/(NaN| {2}|^$)/.test(l)&&(l="M 0 0"),this[b]!==l&&(T.setAttribute(b,l),this[b]=l)},n.prototype.fadeOut=function(l){var b=this;b.animate({opacity:0},{duration:t(l,150),complete:function(){b.hide()}})},n.prototype.fillSetter=function(l,b,T){typeof l=="string"?T.setAttribute(b,l):l&&this.complexColor(l,b,T)},n.prototype.getBBox=function(l,b){var T,D,d,C,A,N=this,_=N.alignValue,L=N.element,O=N.renderer,j=N.styles,Y=N.textStr,X=O.cache,G=O.cacheKeys,q=L.namespaceURI===N.SVG_NS,Q=t(b,N.rotation,0),J=O.styledMode?L&&n.prototype.getStyle.call(L,"font-size"):j&&j.fontSize;if(u(Y)&&((A=Y.toString()).indexOf("<")===-1&&(A=A.replace(/[0-9]/g,"0")),A+=["",Q,J,N.textWidth,_,j&&j.textOverflow,j&&j.fontWeight].join(",")),A&&!l&&(T=X[A]),!T){if(q||O.forExport){try{C=this.fakeTS&&function(kt){var Lt=L.querySelector(".highcharts-text-outline");Lt&&m(Lt,{display:kt})},p(C)&&C("none"),T=L.getBBox?w({},L.getBBox()):{width:L.offsetWidth,height:L.offsetHeight,x:0,y:0},p(C)&&C("")}catch(kt){}(!T||T.width<0)&&(T={x:0,y:0,width:0,height:0})}else T=N.htmlGetBBox();if(O.isSVG&&(D=T.width,d=T.height,q&&(T.height=d={"11px,17":14,"13px,20":16}[""+(J||"")+",".concat(Math.round(d))]||d),Q)){var rt=Number(L.getAttribute("y")||0)-T.y,lt={right:1,center:.5}[_||0]||0,gt=Q*z,mt=(Q-90)*z,bt=D*Math.cos(gt),yt=D*Math.sin(gt),ht=Math.cos(mt),et=Math.sin(mt),at=T.x+lt*(D-bt)+rt*ht,dt=at+bt,vt=dt-d*ht,Ct=vt-bt,xt=T.y+rt-lt*yt+rt*et,wt=xt+yt,Mt=wt-d*et,St=Mt-yt;T.x=Math.min(at,dt,vt,Ct),T.y=Math.min(xt,wt,Mt,St),T.width=Math.max(at,dt,vt,Ct)-T.x,T.height=Math.max(xt,wt,Mt,St)-T.y}if(A&&(Y===""||T.height>0)){for(;G.length>250;)delete X[G.shift()];X[A]||G.push(A),X[A]=T}}return T},n.prototype.getStyle=function(l){return P.getComputedStyle(this.element||this,"").getPropertyValue(l)},n.prototype.hasClass=function(l){return(""+this.attr("class")).split(" ").indexOf(l)!==-1},n.prototype.hide=function(){return this.attr({visibility:"hidden"})},n.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},n.prototype.init=function(l,b){this.element=b==="span"?f(b):I.createElementNS(this.SVG_NS,b),this.renderer=l,S(this,"afterInit")},n.prototype.on=function(l,b){var T=this.onEvents;return T[l]&&T[l](),T[l]=y(this.element,l,b),this},n.prototype.opacitySetter=function(l,b,T){var D=Number(Number(l).toFixed(3));this.opacity=D,T.setAttribute(b,D)},n.prototype.removeClass=function(l){return this.attr("class",(""+this.attr("class")).replace(g(l)?new RegExp("(^| )".concat(l,"( |$)")):l," ").replace(/ +/g," ").trim())},n.prototype.removeTextOutline=function(){var l=this.element.querySelector("tspan.highcharts-text-outline");l&&this.safeRemoveChild(l)},n.prototype.safeRemoveChild=function(l){var b=l.parentNode;b&&b.removeChild(l)},n.prototype.setRadialReference=function(l){var b=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=l,b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(l,b.radAttr)),this},n.prototype.setTextPath=function(l,b){var T=this;b=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);var D=this.renderer.url,d=this.text||this,C=d.textPath,A=b.attributes,N=b.enabled;if(l=l||C&&C.path,C&&C.undo(),l&&N){var _=y(d,"afterModifyTree",function(L){if(l&&N){var O=l.attr("id");O||l.attr("id",O=e());var j={x:0,y:0};u(A.dx)&&(j.dx=A.dx,delete A.dx),u(A.dy)&&(j.dy=A.dy,delete A.dy),d.attr(j),T.attr({transform:""}),T.box&&(T.box=T.box.destroy());var Y=L.nodes.slice(0);L.nodes.length=0,L.nodes[0]={tagName:"textPath",attributes:w(A,{"text-anchor":A.textAnchor,href:""+D+"#".concat(O)}),children:Y}}});d.textPath={path:l,undo:_}}else d.attr({dx:0,dy:0}),delete d.textPath;return this.added&&(d.textCache="",this.renderer.buildText(d)),this},n.prototype.shadow=function(l,b,T){var D,d,C,A,N,_,L=[],O=this,j=O.element,Y=O.oldShadowOptions,X=O.parentGroup,G=X&&X.rotation===90,q={color:"#000000",offsetX:G?-1:1,offsetY:G?-1:1,opacity:.15,width:3},Q=!1;if(l===!0?_=q:typeof l=="object"&&(_=w(q,l)),_&&(_&&Y&&a(_,function(J,rt){J!==Y[rt]&&(Q=!0)}),Q&&this.destroyShadows(),this.oldShadowOptions=_),_){if(!this.shadows){for(A=_.opacity/_.width,N=G?"translate(".concat(_.offsetY,", ").concat(_.offsetX,")"):"translate(".concat(_.offsetX,", ").concat(_.offsetY,")"),D=1;D<=_.width;D++)d=j.cloneNode(!1),C=2*_.width+1-2*D,h(d,{stroke:l.color||"#000000","stroke-opacity":A*D,"stroke-width":C,transform:N,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),T&&(h(d,"height",Math.max(h(d,"height")-C,0)),d.cutHeight=C),b?b.element.appendChild(d):j.parentNode&&j.parentNode.insertBefore(d,j),L.push(d);this.shadows=L}}else this.destroyShadows();return this},n.prototype.show=function(l){return l===void 0&&(l=!0),this.attr({visibility:l?"inherit":"visible"})},n.prototype["stroke-widthSetter"]=function(l,b,T){this[b]=l,T.setAttribute(b,l)},n.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var l,b=this.getStyle("stroke-width"),T=0;return b.indexOf("px")===b.length-2?T=i(b):b!==""&&(l=I.createElementNS(M,"rect"),h(l,{width:b,"stroke-width":0}),this.element.parentNode.appendChild(l),T=l.getBBox().width,l.parentNode.removeChild(l)),T},n.prototype.symbolAttr=function(l){var b=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(T){b[T]=t(l[T],b[T])}),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},n.prototype.textSetter=function(l){l!==this.textStr&&(delete this.textPxLength,this.textStr=l,this.added&&this.renderer.buildText(this))},n.prototype.titleSetter=function(l){var b=this.element,T=b.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");b.insertBefore?b.insertBefore(T,b.firstChild):b.appendChild(T),T.textContent=String(t(l,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},n.prototype.toFront=function(){var l=this.element;return l.parentNode.appendChild(l),this},n.prototype.translate=function(l,b){return this.attr({translateX:l,translateY:b})},n.prototype.updateShadows=function(l,b,T){var D=this.shadows;if(D)for(var d=D.length;d--;)T.call(D[d],l==="height"?Math.max(b-(D[d].cutHeight||0),0):l==="d"?this.d:b,l,D[d])},n.prototype.updateTransform=function(){var l=this,b=l.element,T=l.matrix,D=l.rotation,d=D===void 0?0:D,C=l.scaleX,A=l.scaleY,N=l.translateX,_=N===void 0?0:N,L=l.translateY,O=["translate("+_+","+(L===void 0?0:L)+")"];u(T)&&O.push("matrix("+T.join(",")+")"),d&&O.push("rotate("+d+" "+t(this.rotationOriginX,b.getAttribute("x"),0)+" "+t(this.rotationOriginY,b.getAttribute("y")||0)+")"),(u(C)||u(A))&&O.push("scale("+t(C,1)+" "+t(A,1)+")"),O.length&&!(this.text||this).textPath&&b.setAttribute("transform",O.join(" "))},n.prototype.visibilitySetter=function(l,b,T){l==="inherit"?T.removeAttribute(b):this[b]!==l&&T.setAttribute(b,l),this[b]=l},n.prototype.xGetter=function(l){return this.element.nodeName==="circle"&&(l==="x"?l="cx":l==="y"&&(l="cy")),this._defaultGetter(l)},n.prototype.zIndexSetter=function(l,b){var T,D,d,C,A,N=this.renderer,_=this.parentGroup,L=(_||N).element||N.box,O=this.element,j=L===N.box,Y=!1,X=this.added;if(u(l)?(O.setAttribute("data-z-index",l),l=+l,this[b]===l&&(X=!1)):u(this[b])&&O.removeAttribute("data-z-index"),this[b]=l,X){for((l=this.zIndex)&&_&&(_.handleZ=!0),A=(T=L.childNodes).length-1;A>=0&&!Y;A--)d=(D=T[A]).getAttribute("data-z-index"),C=!u(d),D!==O&&(l<0&&C&&!j&&!A?(L.insertBefore(O,T[A]),Y=!0):(i(d)<=l||C&&(!u(l)||l>=0))&&(L.insertBefore(O,T[A+1]||null),Y=!0));Y||(L.insertBefore(O,T[j?3:0]||null),Y=!0)}return Y},n}();return s.prototype.strokeSetter=s.prototype.fillSetter,s.prototype.yGetter=s.prototype.xGetter,s.prototype.matrixSetter=s.prototype.rotationOriginXSetter=s.prototype.rotationOriginYSetter=s.prototype.rotationSetter=s.prototype.scaleXSetter=s.prototype.scaleYSetter=s.prototype.translateXSetter=s.prototype.translateYSetter=s.prototype.verticalAlignSetter=function(n,l){this[l]=n,this.doTransform=!0},s}),it(B,"Core/Renderer/RendererRegistry.js",[B["Core/Globals.js"]],function(W){var R;return function(H){var V;H.rendererTypes={},H.getRendererType=function($){return $===void 0&&($=V),H.rendererTypes[$]||H.rendererTypes[V]},H.registerRendererType=function($,Z,U){H.rendererTypes[$]=Z,V&&!U||(V=$,W.Renderer=Z)}}(R||(R={})),R}),it(B,"Core/Renderer/SVG/SVGLabel.js",[B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},H(M,P)},function(M,P){function y(){this.constructor=M}H(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=R.defined,Z=R.extend,U=R.isNumber,z=R.merge,I=R.pick,E=R.removeEvent;return function(M){function P(y,h,f,m,u,v,w,S,x,p){var g,r=M.call(this)||this;return r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(y,"g"),r.textStr=h,r.x=f,r.y=m,r.anchorX=v,r.anchorY=w,r.baseline=x,r.className=p,r.addClass(p==="button"?"highcharts-no-tooltip":"highcharts-label"),p&&r.addClass("highcharts-"+p),r.text=y.text(void 0,0,0,S).attr({zIndex:1}),typeof u=="string"&&((g=/^url\((.*?)\)$/.test(u))||r.renderer.symbols[u])&&(r.symbolKey=u),r.bBox=P.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=y.styledMode||g,r.deferredAttr={},r.alignFactor=0,r}return V(P,M),P.prototype.alignSetter=function(y){var h={left:0,center:.5,right:1}[y];h!==this.alignFactor&&(this.alignFactor=h,this.bBox&&U(this.xSetting)&&this.attr({x:this.xSetting}))},P.prototype.anchorXSetter=function(y,h){this.anchorX=y,this.boxAttr(h,Math.round(y)-this.getCrispAdjust()-this.xSetting)},P.prototype.anchorYSetter=function(y,h){this.anchorY=y,this.boxAttr(h,y-this.ySetting)},P.prototype.boxAttr=function(y,h){this.box?this.box.attr(y,h):this.deferredAttr[y]=h},P.prototype.css=function(y){if(y){var h={};y=z(y),P.textProps.forEach(function(f){y[f]!==void 0&&(h[f]=y[f],delete y[f])}),this.text.css(h),"fontSize"in h||"fontWeight"in h?this.updateTextPadding():("width"in h||"textOverflow"in h)&&this.updateBoxSize()}return W.prototype.css.call(this,y)},P.prototype.destroy=function(){E(this.element,"mouseenter"),E(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),W.prototype.destroy.call(this)},P.prototype.fillSetter=function(y,h){y&&(this.needsBox=!0),this.fill=y,this.boxAttr(h,y)},P.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var y=this.padding,h=I(this.paddingLeft,y);return{width:this.width,height:this.height,x:this.bBox.x-h,y:this.bBox.y-y}},P.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},P.prototype.heightSetter=function(y){this.heightSetting=y},P.prototype.onAdd=function(){this.text.add(this),this.attr({text:I(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&$(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},P.prototype.paddingSetter=function(y,h){U(y)?y!==this[h]&&(this[h]=y,this.updateTextPadding()):this[h]=void 0},P.prototype.rSetter=function(y,h){this.boxAttr(h,y)},P.prototype.shadow=function(y){return y&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(y)),this},P.prototype.strokeSetter=function(y,h){this.stroke=y,this.boxAttr(h,y)},P.prototype["stroke-widthSetter"]=function(y,h){y&&(this.needsBox=!0),this["stroke-width"]=y,this.boxAttr(h,y)},P.prototype["text-alignSetter"]=function(y){this.textAlign=y},P.prototype.textSetter=function(y){y!==void 0&&this.text.attr({text:y}),this.updateTextPadding()},P.prototype.updateBoxSize=function(){var y,h=this.text,f=h.element.style,m={},u=this.padding,v=this.bBox=U(this.widthSetting)&&U(this.heightSetting)&&!this.textAlign||!$(h.textStr)?P.emptyBBox:h.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||v.height||0)+2*u;var w=this.renderer.fontMetrics(f&&f.fontSize,h);if(this.baselineOffset=u+Math.min((this.text.firstLineMetrics||w).b,v.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-w.h)/2),this.needsBox&&!h.textPath){if(!this.box){var S=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();S.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),S.add(this)}y=this.getCrispAdjust(),m.x=y,m.y=(this.baseline?-this.baselineOffset:0)+y,m.width=Math.round(this.width),m.height=Math.round(this.height),this.box.attr(Z(m,this.deferredAttr)),this.deferredAttr={}}},P.prototype.updateTextPadding=function(){var y=this.text;if(!y.textPath){this.updateBoxSize();var h=this.baseline?0:this.baselineOffset,f=I(this.paddingLeft,this.padding);$(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(f+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),f===y.x&&h===y.y||(y.attr("x",f),y.hasBoxWidthChanged&&(this.bBox=y.getBBox(!0)),h!==void 0&&y.attr("y",h)),y.x=f,y.y=h}},P.prototype.widthSetter=function(y){this.widthSetting=U(y)?y:void 0},P.prototype.getPaddedWidth=function(){var y=this.padding,h=I(this.paddingLeft,y),f=I(this.paddingRight,y);return(this.widthSetting||this.bBox.width||0)+h+f},P.prototype.xSetter=function(y){this.x=y,this.alignFactor&&(y-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(y),this.attr("translateX",this.xSetting)},P.prototype.ySetter=function(y){this.ySetting=this.y=Math.round(y),this.attr("translateY",this.ySetting)},P.emptyBBox={width:0,height:0,x:0,y:0},P.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","width"],P}(W)}),it(B,"Core/Renderer/SVG/Symbols.js",[B["Core/Utilities.js"]],function(W){var R=W.defined,H=W.isNumber,V=W.pick;function $(z,I,E,M,P){var y=[];if(P){var h=P.start||0,f=V(P.r,E),m=V(P.r,M||E),u=.001,v=Math.abs((P.end||0)-h-2*Math.PI)<u,w=(P.end||0)-u,S=P.innerR,x=V(P.open,v),p=Math.cos(h),g=Math.sin(h),r=Math.cos(w),a=Math.sin(w),t=V(P.longArc,w-h-Math.PI<u?0:1);y.push(["M",z+f*p,I+m*g],["A",f,m,0,t,V(P.clockwise,1),z+f*r,I+m*a]),R(S)&&y.push(x?["M",z+S*r,I+S*a]:["L",z+S*r,I+S*a],["A",S,S,0,t,R(P.clockwise)?1-P.clockwise:0,z+S*p,I+S*g]),x||y.push(["Z"])}return y}function Z(z,I,E,M,P){return P&&P.r?U(z,I,E,M,P):[["M",z,I],["L",z+E,I],["L",z+E,I+M],["L",z,I+M],["Z"]]}function U(z,I,E,M,P){var y=P&&P.r||0;return[["M",z+y,I],["L",z+E-y,I],["C",z+E,I,z+E,I,z+E,I+y],["L",z+E,I+M-y],["C",z+E,I+M,z+E,I+M,z+E-y,I+M],["L",z+y,I+M],["C",z,I+M,z,I+M,z,I+M-y],["L",z,I+y],["C",z,I,z,I,z+y,I]]}return{arc:$,callout:function(z,I,E,M,P){var y=Math.min(P&&P.r||0,E,M),h=y+6,f=P&&P.anchorX,m=P&&P.anchorY||0,u=U(z,I,E,M,{r:y});return H(f)&&(z+f>=E?m>I+h&&m<I+M-h?u.splice(3,1,["L",z+E,m-6],["L",z+E+6,m],["L",z+E,m+6],["L",z+E,I+M-y]):u.splice(3,1,["L",z+E,M/2],["L",f,m],["L",z+E,M/2],["L",z+E,I+M-y]):z+f<=0?m>I+h&&m<I+M-h?u.splice(7,1,["L",z,m+6],["L",z-6,m],["L",z,m-6],["L",z,I+y]):u.splice(7,1,["L",z,M/2],["L",f,m],["L",z,M/2],["L",z,I+y]):m&&m>M&&f>z+h&&f<z+E-h?u.splice(5,1,["L",f+6,I+M],["L",f,I+M+6],["L",f-6,I+M],["L",z+y,I+M]):m&&m<0&&f>z+h&&f<z+E-h&&u.splice(1,1,["L",f-6,I],["L",f,I-6],["L",f+6,I],["L",E-y,I])),u},circle:function(z,I,E,M){return $(z+E/2,I+M/2,E/2,M/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M/2],["L",z+E/2,I+M],["L",z,I+M/2],["Z"]]},rect:Z,roundedRect:U,square:Z,triangle:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M],["L",z,I+M],["Z"]]},"triangle-down":function(z,I,E,M){return[["M",z,I],["L",z+E,I],["L",z+E/2,I+M],["Z"]]}}}),it(B,"Core/Renderer/SVG/TextBuilder.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=R.SVG_NS,Z=R.win,U=H.attr,z=H.extend,I=H.fireEvent,E=H.isString,M=H.objectEach,P=H.pick;return function(){function y(h){var f=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=f&&f.lineHeight,this.textOutline=f&&f.textOutline,this.ellipsis=!!(f&&f.textOverflow==="ellipsis"),this.noWrap=!!(f&&f.whiteSpace==="nowrap"),this.fontSize=f&&f.fontSize}return y.prototype.buildSVG=function(){var h=this.svgElement,f=h.element,m=h.renderer,u=P(h.textStr,"").toString(),v=u.indexOf("<")!==-1,w=f.childNodes,S=this.width&&!h.added&&m.box,x=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(",");if(x!==h.textCache){h.textCache=x,delete h.actualWidth;for(var p=w.length;p--;)f.removeChild(w[p]);if(v||this.ellipsis||this.width||h.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))){if(u!==""){S&&S.appendChild(f);var g=new W(u);this.modifyTree(g.nodes),g.addToDOM(f),this.modifyDOM(),this.ellipsis&&(f.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["&lt;","&gt;"])),S&&S.removeChild(f)}}else f.appendChild(V.createTextNode(this.unescapeEntities(u)));E(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var h,f=this,m=this.svgElement,u=U(m.element,"x");for(m.firstLineMetrics=void 0;(h=m.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)m.element.removeChild(h);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(S,x){S.nextSibling&&S.previousSibling&&(x===0&&S.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,S.previousSibling)),U(S,{dy:f.getLineHeight(S.nextSibling),x:u}))});var v=this.width||0;if(v){var w=function(S){[].slice.call(S.childNodes).forEach(function(x){x.nodeType===Z.Node.TEXT_NODE?function(p,g){var r=p.textContent||"",a=r.replace(/([^\^])-/g,"$1- ").split(" "),t=!f.noWrap&&(a.length>1||m.element.childNodes.length>1),i=f.getLineHeight(g),o=0,e=m.actualWidth;if(f.ellipsis)r&&f.truncate(p,r,void 0,0,Math.max(0,v-parseInt(f.fontSize||12,10)),function(l,b){return l.substring(0,b)+"…"});else if(t){for(var s=[],n=[];g.firstChild&&g.firstChild!==p;)n.push(g.firstChild),g.removeChild(g.firstChild);for(;a.length;)a.length&&!f.noWrap&&o>0&&(s.push(p.textContent||""),p.textContent=a.join(" ").replace(/- /g,"-")),f.truncate(p,void 0,a,o===0&&e||0,v,function(l,b){return a.slice(0,b).join(" ").replace(/- /g,"-")}),e=m.actualWidth,o++;n.forEach(function(l){g.insertBefore(l,p)}),s.forEach(function(l){g.insertBefore(V.createTextNode(l),p);var b=V.createElementNS($,"tspan");b.textContent="​",U(b,{dy:i,x:u}),g.insertBefore(b,p)})}}(x,S):(x.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),w(x))})};w(m.element)}},y.prototype.getLineHeight=function(h){var f,m=h.nodeType===Z.Node.TEXT_NODE?h.parentElement:h;return this.renderer.styledMode||(f=m&&/(px|em)$/.test(m.style.fontSize)?m.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,m||this.svgElement.element).h},y.prototype.modifyTree=function(h){var f=this,m=function(u,v){var w=u.attributes,S=w===void 0?{}:w,x=u.children,p=u.style,g=p===void 0?{}:p,r=u.tagName,a=f.renderer.styledMode;if(r==="b"||r==="strong"?a?S.class="highcharts-strong":g.fontWeight="bold":r!=="i"&&r!=="em"||(a?S.class="highcharts-emphasized":g.fontStyle="italic"),g&&g.color&&(g.fill=g.color),r==="br"){S.class="highcharts-br",u.textContent="​";var t=h[v+1];t&&t.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else r==="a"&&x&&x.some(function(i){return i.tagName==="#text"})&&(u.children=[{children:x,tagName:"tspan"}]);r!=="#text"&&r!=="a"&&(u.tagName="tspan"),z(u,{attributes:S,style:g}),x&&x.filter(function(i){return i.tagName!=="#text"}).forEach(m)};h.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:h})},y.prototype.truncate=function(h,f,m,u,v,w){var S,x,p=this.svgElement,g=p.renderer,r=p.rotation,a=[],t=m?1:0,i=(f||m||"").length,o=i,e=function(s,n){var l=n||s,b=h.parentNode;if(b&&a[l]===void 0)if(b.getSubStringLength)try{a[l]=u+b.getSubStringLength(0,m?l+1:l)}catch(T){}else g.getSpanWidth&&(h.textContent=w(f||m,s),a[l]=u+g.getSpanWidth(p,h));return a[l]};if(p.rotation=0,x=e(h.textContent.length),u+x>v){for(;t<=i;)o=Math.ceil((t+i)/2),m&&(S=w(m,o)),x=e(o,S&&S.length-1),t===i?t=i+1:x>v?i=o-1:t=o;i===0?h.textContent="":f&&i===f.length-1||(h.textContent=S||w(f||m,o))}m&&m.splice(0,o),p.actualWidth=x,p.rotation=r},y.prototype.unescapeEntities=function(h,f){return M(this.renderer.escapes,function(m,u){f&&f.indexOf(m)!==-1||(h=h.toString().replace(new RegExp(m,"g"),u))}),h},y}()}),it(B,"Core/Renderer/SVG/SVGRenderer.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGLabel.js"],B["Core/Renderer/SVG/Symbols.js"],B["Core/Renderer/SVG/TextBuilder.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=H.charts,P=H.deg2rad,y=H.doc,h=H.isFirefox,f=H.isMS,m=H.isWebKit,u=H.noop,v=H.SVG_NS,w=H.symbolSizes,S=H.win,x=I.addEvent,p=I.attr,g=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,l=I.merge,b=I.pick,T=I.pInt,D=I.uniqueKey,d=function(){function C(A,N,_,L,O,j,Y){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.isSVG=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(A,N,_,L,O,j,Y)}return C.prototype.init=function(A,N,_,L,O,j,Y){var X,G,q=this,Q=q.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),J=Q.element;Y||Q.css(this.getStyle(L)),A.appendChild(J),p(A,"dir","ltr"),A.innerHTML.indexOf("xmlns")===-1&&p(J,"xmlns",this.SVG_NS),q.isSVG=!0,this.box=J,this.boxWrapper=Q,q.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),q.defs=this.createElement("defs").add(),q.allowHTML=j,q.forExport=O,q.styledMode=Y,q.gradients={},q.cache={},q.cacheKeys=[],q.imgCount=0,q.setSize(N,_,!1),h&&A.getBoundingClientRect&&((X=function(){r(A,{left:0,top:0}),G=A.getBoundingClientRect(),r(A,{left:Math.ceil(G.left)-G.left+"px",top:Math.ceil(G.top)-G.top+"px"})})(),q.unSubPixelFix=x(S,"resize",X))},C.prototype.definition=function(A){return new W([A]).addToDOM(this.defs.element)},C.prototype.getReferenceURL=function(){if((h||m)&&y.getElementsByTagName("base").length){if(!a(E)){var A=D(),N=new W([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:A},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(A,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body);r(N,{position:"fixed",top:0,left:0,zIndex:9e5});var _=y.elementFromPoint(6,6);E=(_&&_.id)==="hitme",y.body.removeChild(N)}if(E)return S.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},C.prototype.getStyle=function(A){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},A),this.style},C.prototype.setStyle=function(A){this.boxWrapper.css(this.getStyle(A))},C.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},C.prototype.destroy=function(){var A=this,N=A.defs;return A.box=null,A.boxWrapper=A.boxWrapper.destroy(),t(A.gradients||{}),A.gradients=null,N&&(A.defs=N.destroy()),A.unSubPixelFix&&A.unSubPixelFix(),A.alignedObjects=null,null},C.prototype.createElement=function(A){var N=new this.Element;return N.init(this,A),N},C.prototype.getRadialAttr=function(A,N){return{cx:A[0]-A[2]/2+(N.cx||0)*A[2],cy:A[1]-A[2]/2+(N.cy||0)*A[2],r:(N.r||0)*A[2]}},C.prototype.buildText=function(A){new z(A).buildSVG()},C.prototype.getContrast=function(A){var N=R.parse(A).rgba.map(function(L){var O=L/255;return O<=.03928?O/12.92:Math.pow((O+.055)/1.055,2.4)}),_=.2126*N[0]+.7152*N[1]+.0722*N[2];return 1.05/(_+.05)>(_+.05)/.05?"#FFFFFF":"#000000"},C.prototype.button=function(A,N,_,L,O,j,Y,X,G,q){O===void 0&&(O={});var Q=this.label(A,N,_,G,void 0,void 0,q,void 0,"button"),J=this.styledMode,rt=O.states||{},lt=0;delete(O=l(O)).states;var gt=l({color:"#333333",cursor:"pointer",fontWeight:"normal"},O.style);delete O.style;var mt,bt,yt,ht=W.filterUserAttributes(O);return Q.attr(l({padding:8,r:2},ht)),J||(ht=l({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},ht),j=l(ht,{fill:"#e6e6e6"},W.filterUserAttributes(j||rt.hover||{})),mt=j.style,delete j.style,Y=l(ht,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},W.filterUserAttributes(Y||rt.select||{})),bt=Y.style,delete Y.style,X=l(ht,{style:{color:"#cccccc"}},W.filterUserAttributes(X||rt.disabled||{})),yt=X.style,delete X.style),x(Q.element,f?"mouseover":"mouseenter",function(){lt!==3&&Q.setState(1)}),x(Q.element,f?"mouseout":"mouseleave",function(){lt!==3&&Q.setState(lt)}),Q.setState=function(et){if(et!==1&&(Q.state=lt=et),Q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][et||0]),!J){Q.attr([ht,j,Y,X][et||0]);var at=[gt,mt,bt,yt][et||0];s(at)&&Q.css(at)}},J||(Q.attr(ht).css(i({cursor:"default"},gt)),q&&Q.text.css({pointerEvents:"none"})),Q.on("touchstart",function(et){return et.stopPropagation()}).on("click",function(et){lt!==3&&L.call(Q,et)})},C.prototype.crispLine=function(A,N,_){_===void 0&&(_="round");var L=A[0],O=A[1];return a(L[1])&&L[1]===O[1]&&(L[1]=O[1]=Math[_](L[1])-N%2/2),a(L[2])&&L[2]===O[2]&&(L[2]=O[2]=Math[_](L[2])+N%2/2),A},C.prototype.path=function(A){var N=this.styledMode?{}:{fill:"none"};return o(A)?N.d=A:s(A)&&i(N,A),this.createElement("path").attr(N)},C.prototype.circle=function(A,N,_){var L=s(A)?A:A===void 0?{}:{x:A,y:N,r:_},O=this.createElement("circle");return O.xSetter=O.ySetter=function(j,Y,X){X.setAttribute("c"+Y,j)},O.attr(L)},C.prototype.arc=function(A,N,_,L,O,j){var Y;s(A)?(N=(Y=A).y,_=Y.r,L=Y.innerR,O=Y.start,j=Y.end,A=Y.x):Y={innerR:L,start:O,end:j};var X=this.symbol("arc",A,N,_,_,Y);return X.r=_,X},C.prototype.rect=function(A,N,_,L,O,j){O=s(A)?A.r:O;var Y=this.createElement("rect"),X=s(A)?A:A===void 0?{}:{x:A,y:N,width:Math.max(_,0),height:Math.max(L,0)};return this.styledMode||(j!==void 0&&(X["stroke-width"]=j,X=Y.crisp(X)),X.fill="none"),O&&(X.r=O),Y.rSetter=function(G,q,Q){Y.r=G,p(Q,{rx:G,ry:G})},Y.rGetter=function(){return Y.r||0},Y.attr(X)},C.prototype.setSize=function(A,N,_){var L=this;L.width=A,L.height=N,L.boxWrapper.animate({width:A,height:N},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(_,!0)?void 0:0}),L.alignElements()},C.prototype.g=function(A){var N=this.createElement("g");return A?N.attr({class:"highcharts-"+A}):N},C.prototype.image=function(A,N,_,L,O,j){var Y={preserveAspectRatio:"none"},X=function(J,rt){J.setAttributeNS?J.setAttributeNS("http://www.w3.org/1999/xlink","href",rt):J.setAttribute("hc-svg-href",rt)};e(N)&&(Y.x=N),e(_)&&(Y.y=_),e(L)&&(Y.width=L),e(O)&&(Y.height=O);var G=this.createElement("image").attr(Y),q=function(J){X(G.element,A),j.call(G,J)};if(j){X(G.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var Q=new S.Image;x(Q,"load",q),Q.src=A,Q.complete&&q({})}else X(G.element,A);return G},C.prototype.symbol=function(A,N,_,L,O,j){var Y,X,G,q,Q=this,J=/^url\((.*?)\)$/,rt=J.test(A),lt=!rt&&(this.symbols[A]?A:"circle"),gt=lt&&this.symbols[lt];if(gt)typeof N=="number"&&(X=gt.call(this.symbols,Math.round(N||0),Math.round(_||0),L||0,O||0,j)),Y=this.path(X),Q.styledMode||Y.attr("fill","none"),i(Y,{symbolName:lt||void 0,x:N,y:_,width:L,height:O}),j&&i(Y,j);else if(rt){G=A.match(J)[1];var mt=Y=this.image(G);mt.imgwidth=b(w[G]&&w[G].width,j&&j.width),mt.imgheight=b(w[G]&&w[G].height,j&&j.height),q=function(bt){return bt.attr({width:bt.width,height:bt.height})},["width","height"].forEach(function(bt){mt[bt+"Setter"]=function(yt,ht){this[ht]=yt;var et=this,at=et.alignByTranslate,dt=et.element,vt=et.width,Ct=et.height,xt=et.imgwidth,wt=et.imgheight,Mt=this["img"+ht];if(a(Mt)){var St=1;j&&j.backgroundSize==="within"&&vt&&Ct?(St=Math.min(vt/xt,Ct/wt),Mt=Math.round(Mt*St),p(dt,{width:Math.round(xt*St),height:Math.round(wt*St)})):dt&&dt.setAttribute(ht,Mt),at||this.translate(((vt||0)-Mt*St)/2,((Ct||0)-Mt*St)/2)}}}),a(N)&&mt.attr({x:N,y:_}),mt.isImg=!0,a(mt.imgwidth)&&a(mt.imgheight)?q(mt):(mt.attr({width:0,height:0}),g("img",{onload:function(){var bt=M[Q.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),w[G]={width:this.width,height:this.height},mt.imgwidth=this.width,mt.imgheight=this.height,mt.element&&q(mt),this.parentNode&&this.parentNode.removeChild(this),Q.imgCount--,Q.imgCount||!bt||bt.hasLoaded||bt.onload()},src:G}),this.imgCount++)}return Y},C.prototype.clipRect=function(A,N,_,L){var O=D()+"-",j=this.createElement("clipPath").attr({id:O}).add(this.defs),Y=this.rect(A,N,_,L,0).add(j);return Y.id=O,Y.clipPath=j,Y.count=0,Y},C.prototype.text=function(A,N,_,L){var O=this,j={};if(L&&(O.allowHTML||!O.forExport))return O.html(A,N,_);j.x=Math.round(N||0),_&&(j.y=Math.round(_)),a(A)&&(j.text=A);var Y=O.createElement("text").attr(j);return(!L||O.forExport&&!O.allowHTML)&&(Y.xSetter=function(X,G,q){for(var Q=q.getElementsByTagName("tspan"),J=q.getAttribute(G),rt=0,lt=void 0;rt<Q.length;rt++)(lt=Q[rt]).getAttribute(G)===J&&lt.setAttribute(G,X);q.setAttribute(G,X)}),Y},C.prototype.fontMetrics=function(A,N){A=!this.styledMode&&/px/.test(A)||!S.getComputedStyle?A||N&&N.style&&N.style.fontSize||this.style&&this.style.fontSize:N&&$.prototype.getStyle.call(N,"font-size");var _=(A=/px/.test(A)?T(A):12)<24?A+3:Math.round(1.2*A);return{h:_,b:Math.round(.8*_),f:A}},C.prototype.rotCorr=function(A,N,_){var L=A;return N&&_&&(L=Math.max(L*Math.cos(N*P),4)),{x:-A/3*Math.sin(N*P),y:L}},C.prototype.pathToSegments=function(A){for(var N=[],_=[],L={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},O=0;O<A.length;O++)n(_[0])&&e(A[O])&&_.length===L[_[0].toUpperCase()]&&A.splice(O,0,_[0].replace("M","L").replace("m","l")),typeof A[O]=="string"&&(_.length&&N.push(_.slice(0)),_.length=0),_.push(A[O]);return N.push(_.slice(0)),N},C.prototype.label=function(A,N,_,L,O,j,Y,X,G){return new Z(this,A,N,_,L,O,j,Y,X,G)},C.prototype.alignElements=function(){this.alignedObjects.forEach(function(A){return A.align()})},C}();return i(d.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:U,draw:u}),V.registerRendererType("svg",d,!0),d}),it(B,"Core/Renderer/HTML/HTMLElement.js",[B["Core/Globals.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(m,u){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var S in w)w.hasOwnProperty(S)&&(v[S]=w[S])},V(m,u)},function(m,u){function v(){this.constructor=m}V(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),Z=W.isFirefox,U=W.isMS,z=W.isWebKit,I=W.win,E=H.css,M=H.defined,P=H.extend,y=H.pick,h=H.pInt,f=function(m){function u(){return m!==null&&m.apply(this,arguments)||this}return $(u,m),u.compose=function(v){if(u.composedClasses.indexOf(v)===-1){u.composedClasses.push(v);var w=u.prototype,S=v.prototype;S.getSpanCorrection=w.getSpanCorrection,S.htmlCss=w.htmlCss,S.htmlGetBBox=w.htmlGetBBox,S.htmlUpdateTransform=w.htmlUpdateTransform,S.setSpanRotation=w.setSpanRotation}return v},u.prototype.getSpanCorrection=function(v,w,S){this.xCorr=-v*S,this.yCorr=-w},u.prototype.htmlCss=function(v){var w,S=this,x=S.element.tagName==="SPAN"&&v&&"width"in v,p=y(x&&v.width,void 0);return x&&(delete v.width,S.textWidth=p,w=!0),v&&v.textOverflow==="ellipsis"&&(v.whiteSpace="nowrap",v.overflow="hidden"),S.styles=P(S.styles,v),E(S.element,v),w&&S.htmlUpdateTransform(),S},u.prototype.htmlGetBBox=function(){var v=this.element;return{x:v.offsetLeft,y:v.offsetTop,width:v.offsetWidth,height:v.offsetHeight}},u.prototype.htmlUpdateTransform=function(){if(this.added){var v=this,w=v.renderer,S=v.element,x=v.translateX||0,p=v.translateY||0,g=v.x||0,r=v.y||0,a=v.textAlign||"left",t={left:0,center:.5,right:1}[a],i=v.styles,o=i&&i.whiteSpace;if(E(S,{marginLeft:x,marginTop:p}),!w.styledMode&&v.shadows&&v.shadows.forEach(function(D){E(D,{marginLeft:x+1,marginTop:p+1})}),v.inverted&&[].forEach.call(S.childNodes,function(D){w.invertChild(D,S)}),S.tagName==="SPAN"){var e=v.rotation,s=v.textWidth&&h(v.textWidth),n=[e,a,S.innerHTML,v.textWidth,v.textAlign].join(","),l=void 0,b=!1;if(s!==v.oldTextWidth){var T=v.textPxLength?v.textPxLength:(E(S,{width:"",whiteSpace:o||"nowrap"}),S.offsetWidth);(s>v.oldTextWidth||T>s)&&(/[ \-]/.test(S.textContent||S.innerText)||S.style.textOverflow==="ellipsis")&&(E(S,{width:T>s||e?s+"px":"auto",display:"block",whiteSpace:o||"normal"}),v.oldTextWidth=s,b=!0)}v.hasBoxWidthChanged=b,n!==v.cTT&&(l=w.fontMetrics(S.style.fontSize,S).b,!M(e)||e===(v.oldRotation||0)&&a===v.oldAlign||v.setSpanRotation(e,t,l),v.getSpanCorrection(!M(e)&&v.textPxLength||S.offsetWidth,l,t,e,a)),E(S,{left:g+(v.xCorr||0)+"px",top:r+(v.yCorr||0)+"px"}),v.cTT=n,v.oldRotation=e,v.oldAlign=a}}else this.alignOnAdd=!0},u.prototype.setSpanRotation=function(v,w,S){var x={},p=U&&!/Edge/.test(I.navigator.userAgent)?"-ms-transform":z?"-webkit-transform":Z?"MozTransform":I.opera?"-o-transform":void 0;p&&(x[p]=x.transform="rotate("+v+"deg)",x[p+(Z?"Origin":"-origin")]=x.transformOrigin=100*w+"% "+S+"px",E(this.element,x))},u.composedClasses=[],u}(R);return f}),it(B,"Core/Renderer/HTML/HTMLRenderer.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},$(P,y)},function(P,y){function h(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),U=V.attr,z=V.createElement,I=V.extend,E=V.pick,M=function(P){function y(){return P!==null&&P.apply(this,arguments)||this}return Z(y,P),y.compose=function(h){if(y.composedClasses.indexOf(h)===-1){y.composedClasses.push(h);var f=y.prototype;h.prototype.html=f.html}return h},y.prototype.html=function(h,f,m){var u=this.createElement("span"),v=u.element,w=u.renderer,S=w.isSVG,x=function(p,g){["opacity","visibility"].forEach(function(r){p[r+"Setter"]=function(a,t,i){var o=p.div?p.div.style:g;R.prototype[r+"Setter"].call(this,a,t,i),o&&(o[t]=a)}}),p.addedSetters=!0};return u.textSetter=function(p){p!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,W.setElementHTML(this.element,E(p,"")),this.textStr=p,u.doTransform=!0)},S&&x(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(p,g){g==="align"?u.alignValue=u.textAlign=p:u[g]=p,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:h,x:Math.round(f),y:Math.round(m)}).css({position:"absolute"}),w.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),v.style.whiteSpace="nowrap",u.css=u.htmlCss,S&&(u.add=function(p){var g,r,a=w.box.parentNode,t=[];if(this.parentGroup=p,p){if(!(g=p.div)){for(r=p;r;)t.push(r),r=r.parentGroup;t.reverse().forEach(function(i){var o=U(i.element,"class");function e(l,b){i[b]=l,b==="translateX"?n.left=l+"px":n.top=l+"px",i.doTransform=!0}var s=i.styles||{},n=(g=i.div=i.div||z("div",o?{className:o}:void 0,{position:"absolute",left:(i.translateX||0)+"px",top:(i.translateY||0)+"px",display:i.display,opacity:i.opacity,cursor:s.cursor,pointerEvents:s.pointerEvents,visibility:i.visibility},g||a)).style;I(i,{classSetter:function(l){return function(b){this.element.setAttribute("class",b),l.className=b}}(g),on:function(){return t[0].div&&u.on.apply({element:t[0].div,onEvents:i.onEvents},arguments),i},translateXSetter:e,translateYSetter:e}),i.addedSetters||x(i)})}}else g=a;return g.appendChild(v),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},y.composedClasses=[],y}(H);return M}),it(B,"Core/Axis/AxisDefaults.js",[],function(){var W;return function(R){R.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},R.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(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},R.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},R.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},R.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},R.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(W||(W={})),W}),it(B,"Core/Foundation.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.isFunction,$=W.objectEach,Z=W.removeEvent;return function(U){U.registerEventOptions=function(z,I){z.eventOptions=z.eventOptions||{},$(I.events,function(E,M){z.eventOptions[M]!==E&&(z.eventOptions[M]&&(Z(z,M,z.eventOptions[M]),delete z.eventOptions[M]),V(E)&&(z.eventOptions[M]=E,H(z,M,E)))})}}(R||(R={})),R}),it(B,"Core/Axis/Tick.js",[B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.deg2rad,$=H.clamp,Z=H.correctFloat,U=H.defined,z=H.destroyObjectProperties,I=H.extend,E=H.fireEvent,M=H.isNumber,P=H.merge,y=H.objectEach,h=H.pick;return function(){function f(m,u,v,w,S){this.isNew=!0,this.isNewLabel=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||w||this.addLabel()}return f.prototype.addLabel=function(){var m,u,v,w=this,S=w.axis,x=S.options,p=S.chart,g=S.categories,r=S.logarithmic,a=S.names,t=w.pos,i=h(w.options&&w.options.labels,x.labels),o=S.tickPositions,e=t===o[0],s=t===o[o.length-1],n=(!i.step||i.step===1)&&S.tickInterval===1,l=o.info,b=w.label,T=this.parameters.category||(g?h(g[t],a[t],t):t);r&&M(T)&&(T=Z(r.lin2log(T))),S.dateTime&&(l?m=(u=p.time.resolveDTLFormat(x.dateTimeLabelFormats[!x.grid&&l.higherRanks[t]||l.unitName])).main:M(T)&&(m=S.dateTime.getXDateFormat(T,x.dateTimeLabelFormats||{}))),w.isFirst=e,w.isLast=s;var D={axis:S,chart:p,dateTimeLabelFormat:m,isFirst:e,isLast:s,pos:t,tick:w,tickPositionInfo:l,value:T};E(this,"labelFormat",D);var d=function(N){return i.formatter?i.formatter.call(N,N):i.format?(N.text=S.defaultLabelFormatter.call(N,N),W.format(i.format,N,p)):S.defaultLabelFormatter.call(N,N)},C=d.call(D,D),A=u&&u.list;w.shortenLabel=A?function(){for(v=0;v<A.length;v++)if(I(D,{dateTimeLabelFormat:A[v]}),b.attr({text:d.call(D,D)}),b.getBBox().width<S.getSlotWidth(w)-2*i.padding)return;b.attr({text:""})}:void 0,n&&S._addedPlotLB&&w.moveLabel(C,i),U(b)||w.movedLabel?b&&b.textStr!==C&&!n&&(!b.textWidth||i.style.width||b.styles.width||b.css({width:null}),b.attr({text:C}),b.textPxLength=b.getBBox().width):(w.label=b=w.createLabel({x:0,y:0},C,i),w.rotation=0)},f.prototype.createLabel=function(m,u,v){var w=this.axis,S=w.chart,x=U(u)&&v.enabled?S.renderer.text(u,m.x,m.y,v.useHTML).add(w.labelGroup):null;return x&&(S.styledMode||x.css(P(v.style)),x.textPxLength=x.getBBox().width),x},f.prototype.destroy=function(){z(this,this.axis)},f.prototype.getPosition=function(m,u,v,w){var S=this.axis,x=S.chart,p=w&&x.oldChartHeight||x.chartHeight,g={x:m?Z(S.translate(u+v,void 0,void 0,w)+S.transB):S.left+S.offset+(S.opposite?(w&&x.oldChartWidth||x.chartWidth)-S.right-S.left:0),y:m?p-S.bottom+S.offset-(S.opposite?S.height:0):Z(p-S.translate(u+v,void 0,void 0,w)-S.transB)};return g.y=$(g.y,-1e5,1e5),E(this,"afterGetPosition",{pos:g}),g},f.prototype.getLabelPosition=function(m,u,v,w,S,x,p,g){var r,a,t=this.axis,i=t.transA,o=t.isLinked&&t.linkedParent?t.linkedParent.reversed:t.reversed,e=t.staggerLines,s=t.tickRotCorr||{x:0,y:0},n=w||t.reserveSpaceDefault?0:-t.labelOffset*(t.labelAlign==="center"?.5:1),l={};return r=t.side===0?v.rotation?-8:-v.getBBox().height:t.side===2?s.y+8:Math.cos(v.rotation*V)*(s.y-v.getBBox(!1,0).height/2),U(S.y)&&(r=t.side===0&&t.horiz?S.y+r:S.y),m=m+S.x+n+s.x-(x&&w?x*i*(o?-1:1):0),u=u+r-(x&&!w?x*i*(o?1:-1):0),e&&(a=p/(g||1)%e,t.opposite&&(a=e-a-1),u+=a*(t.labelOffset/e)),l.x=m,l.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:l,tickmarkOffset:x,index:p}),l},f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},f.prototype.getMarkPath=function(m,u,v,w,S,x){return x.crispLine([["M",m,u],["L",m+(S?0:-v),u+(S?v:0)]],w)},f.prototype.handleOverflow=function(m){var u,v,w=this,S=this.axis,x=S.options.labels,p=m.x,g=S.chart.chartWidth,r=S.chart.spacing,a=h(S.labelLeft,Math.min(S.pos,r[3])),t=h(S.labelRight,Math.max(S.isRadial?0:S.pos+S.len,g-r[1])),i=this.label,o=this.rotation,e={left:0,center:.5,right:1}[S.labelAlign||i.attr("align")],s=i.getBBox().width,n=S.getSlotWidth(w),l=e,b={},T=n,D=1;o||x.overflow!=="justify"?o<0&&p-e*s<a?v=Math.round(p/Math.cos(o*V)-a):o>0&&p+e*s>t&&(v=Math.round((g-p)/Math.cos(o*V))):(u=p+(1-e)*s,p-e*s<a?T=m.x+T*(1-e)-a:u>t&&(T=t-m.x+T*e,D=-1),(T=Math.min(n,T))<n&&S.labelAlign==="center"&&(m.x+=D*(n-T-l*(n-Math.min(s,T)))),(s>T||S.autoRotation&&(i.styles||{}).width)&&(v=T)),v&&(w.shortenLabel?w.shortenLabel():(b.width=Math.floor(v)+"px",(x.style||{}).textOverflow||(b.textOverflow="ellipsis"),i.css(b)))},f.prototype.moveLabel=function(m,u){var v,w,S,x=this,p=x.label,g=x.axis,r=g.reversed,a=!1;p&&p.textStr===m?(x.movedLabel=p,a=!0,delete x.label):y(g.ticks,function(t){a||t.isNew||t===x||!t.label||t.label.textStr!==m||(x.movedLabel=t.label,a=!0,t.labelPos=x.movedLabel.xy,delete t.label)}),a||!x.labelPos&&!p||(v=x.labelPos||p.xy,w=g.horiz?r?0:g.width+g.left:v.x,S=g.horiz?v.y:r?g.width+g.left:0,x.movedLabel=x.createLabel({x:w,y:S},m,u),x.movedLabel&&x.movedLabel.attr({opacity:0}))},f.prototype.render=function(m,u,v){var w=this,S=w.axis,x=S.horiz,p=w.pos,g=h(w.tickmarkOffset,S.tickmarkOffset),r=w.getPosition(x,p,g,u),a=r.x,t=r.y,i=x&&a===S.pos+S.len||!x&&t===S.pos?-1:1,o=h(v,w.label&&w.label.newOpacity,1);v=h(v,1),this.isActive=!0,this.renderGridLine(u,v,i),this.renderMark(r,v,i),this.renderLabel(r,u,o,m),w.isNew=!1,E(this,"afterRender")},f.prototype.renderGridLine=function(m,u,v){var w,S=this,x=S.axis,p=x.options,g={},r=S.pos,a=S.type,t=h(S.tickmarkOffset,x.tickmarkOffset),i=x.chart.renderer,o=S.gridLine,e=p.gridLineWidth,s=p.gridLineColor,n=p.gridLineDashStyle;S.type==="minor"&&(e=p.minorGridLineWidth,s=p.minorGridLineColor,n=p.minorGridLineDashStyle),o||(x.chart.styledMode||(g.stroke=s,g["stroke-width"]=e||0,g.dashstyle=n),a||(g.zIndex=1),m&&(u=0),S.gridLine=o=i.path().attr(g).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(x.gridGroup)),o&&(w=x.getPlotLinePath({value:r+t,lineWidth:o.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&o[m||S.isNew?"attr":"animate"]({d:w,opacity:u})},f.prototype.renderMark=function(m,u,v){var w=this,S=w.axis,x=S.options,p=S.chart.renderer,g=w.type,r=S.tickSize(g?g+"Tick":"tick"),a=m.x,t=m.y,i=h(x[g!=="minor"?"tickWidth":"minorTickWidth"],!g&&S.isXAxis?1:0),o=x[g!=="minor"?"tickColor":"minorTickColor"],e=w.mark,s=!e;r&&(S.opposite&&(r[0]=-r[0]),e||(w.mark=e=p.path().addClass("highcharts-"+(g?g+"-":"")+"tick").add(S.axisGroup),S.chart.styledMode||e.attr({stroke:o,"stroke-width":i})),e[s?"attr":"animate"]({d:w.getMarkPath(a,t,r[0],e.strokeWidth()*v,S.horiz,p),opacity:u}))},f.prototype.renderLabel=function(m,u,v,w){var S=this,x=S.axis,p=x.horiz,g=x.options,r=S.label,a=g.labels,t=a.step,i=h(S.tickmarkOffset,x.tickmarkOffset),o=m.x,e=m.y,s=!0;r&&M(o)&&(r.xy=m=S.getLabelPosition(o,e,r,p,a,i,w,t),S.isFirst&&!S.isLast&&!g.showFirstLabel||S.isLast&&!S.isFirst&&!g.showLastLabel?s=!1:!p||a.step||a.rotation||u||v===0||S.handleOverflow(m),t&&w%t&&(s=!1),s&&M(m.y)?(m.opacity=v,r[S.isNewLabel?"attr":"animate"](m).show(!0),S.isNewLabel=!1):(r.hide(),S.isNewLabel=!0))},f.prototype.replaceMovedLabel=function(){var m,u,v=this,w=v.label,S=v.axis,x=S.reversed;w&&!v.isNew&&(m=S.horiz?x?S.left:S.width+S.left:w.xy.x,u=S.horiz?w.xy.y:x?S.width+S.top:S.top,w.animate({x:m,y:u,opacity:0},void 0,w.destroy),delete v.label),S.isDirty=!0,v.label=v.movedLabel,delete v.movedLabel},f}()}),it(B,"Core/Axis/Axis.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/AxisDefaults.js"],B["Core/Color/Color.js"],B["Core/Defaults.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Axis/Tick.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I=W.animObject,E=V.defaultOptions,M=$.registerEventOptions,P=Z.deg2rad,y=z.arrayMax,h=z.arrayMin,f=z.clamp,m=z.correctFloat,u=z.defined,v=z.destroyObjectProperties,w=z.erase,S=z.error,x=z.extend,p=z.fireEvent,g=z.isArray,r=z.isNumber,a=z.isString,t=z.merge,i=z.normalizeTickInterval,o=z.objectEach,e=z.pick,s=z.relativeLength,n=z.removeEvent,l=z.splat,b=z.syncTimeout,T=function(D,d){return i(d,void 0,void 0,e(D.options.allowDecimals,d<.5||D.tickAmount!==void 0),!!D.tickAmount)};return function(){function D(d,C){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(d,C)}return D.prototype.init=function(d,C){var A=C.isX,N=this;N.chart=d,N.horiz=d.inverted&&!N.isZAxis?!A:A,N.isXAxis=A,N.coll=N.coll||(A?"xAxis":"yAxis"),p(this,"init",{userOptions:C}),N.opposite=e(C.opposite,N.opposite),N.side=e(C.side,N.side,N.horiz?N.opposite?0:2:N.opposite?1:3),N.setOptions(C);var _=this.options,L=_.labels,O=_.type;N.userOptions=C,N.minPixelPadding=0,N.reversed=e(_.reversed,N.reversed),N.visible=_.visible,N.zoomEnabled=_.zoomEnabled,N.hasNames=O==="category"||_.categories===!0,N.categories=_.categories||(N.hasNames?[]:void 0),N.names||(N.names=[],N.names.keys={}),N.plotLinesAndBandsGroups={},N.positiveValuesOnly=!!N.logarithmic,N.isLinked=u(_.linkedTo),N.ticks={},N.labelEdge=[],N.minorTicks={},N.plotLinesAndBands=[],N.alternateBands={},N.len=0,N.minRange=N.userMinRange=_.minRange||_.maxZoom,N.range=_.range,N.offset=_.offset||0,N.max=null,N.min=null;var j=e(_.crosshair,l(d.options.tooltip.crosshairs)[A?0:1]);N.crosshair=j===!0?{}:j,d.axes.indexOf(N)===-1&&(A?d.axes.splice(d.xAxis.length,0,N):d.axes.push(N),d[N.coll].push(N)),N.series=N.series||[],d.inverted&&!N.isZAxis&&A&&N.reversed===void 0&&(N.reversed=!0),N.labelRotation=r(L.rotation)?L.rotation:void 0,M(N,_),p(this,"afterInit")},D.prototype.setOptions=function(d){this.options=t(R.defaultXAxisOptions,this.coll==="yAxis"&&R.defaultYAxisOptions,[R.defaultTopAxisOptions,R.defaultRightAxisOptions,R.defaultBottomAxisOptions,R.defaultLeftAxisOptions][this.side],t(E[this.coll],d)),p(this,"afterSetOptions",{userOptions:d})},D.prototype.defaultLabelFormatter=function(d){var C,A,N=this.axis,_=this.chart.numberFormatter,L=r(this.value)?this.value:NaN,O=N.chart.time,j=N.categories,Y=this.dateTimeLabelFormat,X=E.lang,G=X.numericSymbols,q=X.numericSymbolMagnitude||1e3,Q=N.logarithmic?Math.abs(L):N.tickInterval,J=G&&G.length;if(j)A="".concat(this.value);else if(Y)A=O.dateFormat(Y,L);else if(J&&Q>=1e3)for(;J--&&A===void 0;)Q>=(C=Math.pow(q,J+1))&&10*L%C==0&&G[J]!==null&&L!==0&&(A=_(L/C,-1)+G[J]);return A===void 0&&(A=Math.abs(L)>=1e4?_(L,-1):_(L,-1,void 0,"")),A},D.prototype.getSeriesExtremes=function(){var d,C=this,A=C.chart;p(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(N){if(N.visible||!A.options.chart.ignoreHiddenSeries){var _=N.options,L=void 0,O=_.threshold,j=void 0,Y=void 0;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&O<=0&&(O=null),C.isXAxis)(L=N.xData).length&&(L=C.logarithmic?L.filter(C.validatePositiveValue):L,j=(d=N.getXExtremes(L)).min,Y=d.max,r(j)||j instanceof Date||(L=L.filter(r),j=(d=N.getXExtremes(L)).min,Y=d.max),L.length&&(C.dataMin=Math.min(e(C.dataMin,j),j),C.dataMax=Math.max(e(C.dataMax,Y),Y)));else{var X=N.applyExtremes();r(X.dataMin)&&(j=X.dataMin,C.dataMin=Math.min(e(C.dataMin,j),j)),r(X.dataMax)&&(Y=X.dataMax,C.dataMax=Math.max(e(C.dataMax,Y),Y)),u(O)&&(C.threshold=O),_.softThreshold&&!C.positiveValuesOnly||(C.softThreshold=!1)}}})}),p(this,"afterGetSeriesExtremes")},D.prototype.translate=function(d,C,A,N,_,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding,X=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&_)&&O.lin2val,G=1,q=0,Q=N&&O.old?O.old.transA:O.transA,J=0;if(Q||(Q=O.transA),A&&(G*=-1,q=O.len),O.reversed&&(q-=(G*=-1)*(O.sector||O.len)),C)d=d*G+q,J=(d-=Y)/Q+j,X&&(J=O.lin2val(J));else{X&&(d=O.val2lin(d));var rt=G*(d-j)*Q;J=(O.isRadial?rt:m(rt))+q+G*Y+(r(L)?Q*L:0)}return J},D.prototype.toPixels=function(d,C){return this.translate(d,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},D.prototype.toValue=function(d,C){return this.translate(d-(C?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(d){var C,A,N,_,L,O=this,j=O.chart,Y=O.left,X=O.top,G=d.old,q=d.value,Q=d.lineWidth,J=G&&j.oldChartHeight||j.chartHeight,rt=G&&j.oldChartWidth||j.chartWidth,lt=O.transB,gt=d.translatedValue,mt=d.force;function bt(ht,et,at){return mt!=="pass"&&(ht<et||ht>at)&&(mt?ht=f(ht,et,at):L=!0),ht}var yt={value:q,lineWidth:Q,old:G,force:mt,acrossPanes:d.acrossPanes,translatedValue:gt};return p(this,"getPlotLinePath",yt,function(ht){gt=e(gt,O.translate(q,void 0,void 0,G)),gt=f(gt,-1e5,1e5),C=N=Math.round(gt+lt),A=_=Math.round(J-gt-lt),r(gt)?O.horiz?(A=X,_=J-O.bottom,C=N=bt(C,Y,Y+O.width)):(C=Y,N=rt-O.right,A=_=bt(A,X,X+O.height)):(L=!0,mt=!1),ht.path=L&&!mt?null:j.renderer.crispLine([["M",C,A],["L",N,_]],Q||1)}),yt.path},D.prototype.getLinearTickPositions=function(d,C,A){var N,_,L,O=m(Math.floor(C/d)*d),j=m(Math.ceil(A/d)*d),Y=[];if(m(O+d)===O&&(L=20),this.single)return[C];for(N=O;N<=j&&(Y.push(N),(N=m(N+d,L))!==_);)_=N;return Y},D.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?e(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},D.prototype.getMinorTickPositions=function(){var d,C=this,A=C.options,N=C.tickPositions,_=C.minorTickInterval,L=C.pointRangePadding||0,O=C.min-L,j=C.max+L,Y=j-O,X=[];if(Y&&Y/_<C.len/3){var G=C.logarithmic;if(G)this.paddedTicks.forEach(function(q,Q,J){Q&&X.push.apply(X,G.getLogTickPositions(_,J[Q-1],J[Q],!0))});else if(C.dateTime&&this.getMinorTickInterval()==="auto")X=X.concat(C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(_),O,j,A.startOfWeek));else for(d=O+(N[0]-O)%_;d<=j&&d!==X[0];d+=_)X.push(d)}return X.length!==0&&C.trimTicks(X),X},D.prototype.adjustForMinRange=function(){var d,C,A,N,_,L,O,j,Y,X=this,G=X.options,q=X.logarithmic,Q=X.min,J=X.max,rt=0;X.isXAxis&&X.minRange===void 0&&!q&&(u(G.min)||u(G.max)||u(G.floor)||u(G.ceiling)?X.minRange=null:(X.series.forEach(function(lt){if(_=lt.xData,L=lt.xIncrement?1:_.length-1,_.length>1)for(A=L;A>0;A--)N=_[A]-_[A-1],(!rt||N<rt)&&(rt=N)}),X.minRange=Math.min(5*rt,X.dataMax-X.dataMin))),J-Q<X.minRange&&(C=X.dataMax-X.dataMin>=X.minRange,O=[Q-(d=((Y=X.minRange)-J+Q)/2),e(G.min,Q-d)],C&&(O[2]=X.logarithmic?X.logarithmic.log2lin(X.dataMin):X.dataMin),j=[(Q=y(O))+Y,e(G.max,Q+Y)],C&&(j[2]=q?q.log2lin(X.dataMax):X.dataMax),(J=h(j))-Q<Y&&(O[0]=J-Y,O[1]=e(G.min,J-Y),Q=y(O))),X.min=Q,X.max=J},D.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(C){var A=C.closestPointRange,N=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&u(A)&&N&&(d=u(d)?Math.min(d,A):A)}),d},D.prototype.nameToX=function(d){var C,A=g(this.options.categories),N=A?this.categories:this.names,_=d.options.x;return d.series.requireSorting=!1,u(_)||(_=this.options.uniqueNames&&N?A?N.indexOf(d.name):e(N.keys[d.name],-1):d.series.autoIncrement()),_===-1?!A&&N&&(C=N.length):C=_,C!==void 0?(this.names[C]=d.name,this.names.keys[d.name]=C):d.x&&(C=d.x),C},D.prototype.updateNames=function(){var d=this,C=this.names;C.length>0&&(Object.keys(C.keys).forEach(function(A){delete C.keys[A]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(A){A.xIncrement=null,A.points&&!A.isDirtyData||(d.max=Math.max(d.max,A.xData.length-1),A.processData(),A.generatePoints()),A.data.forEach(function(N,_){var L;N&&N.options&&N.name!==void 0&&(L=d.nameToX(N))!==void 0&&L!==N.x&&(N.x=L,A.xData[_]=L)})}))},D.prototype.setAxisTranslation=function(){var d,C,A=this,N=A.max-A.min,_=A.linkedParent,L=!!A.categories,O=A.isXAxis,j=A.axisPointRange||0,Y=0,X=0,G=A.transA;(O||L||j)&&(d=A.getClosest(),_?(Y=_.minPointOffset,X=_.pointRangePadding):A.series.forEach(function(q){var Q=L?1:O?e(q.options.pointRange,d,0):A.axisPointRange||0,J=q.options.pointPlacement;if(j=Math.max(j,Q),!A.single||L){var rt=q.is("xrange")?!O:O;Y=Math.max(Y,rt&&a(J)?0:Q/2),X=Math.max(X,rt&&J==="on"?0:Q)}}),C=A.ordinal&&A.ordinal.slope&&d?A.ordinal.slope/d:1,A.minPointOffset=Y*=C,A.pointRangePadding=X*=C,A.pointRange=Math.min(j,A.single&&L?1:N),O&&(A.closestPointRange=d)),A.translationSlope=A.transA=G=A.staticScale||A.len/(N+X||1),A.transB=A.horiz?A.left:A.bottom,A.minPixelPadding=G*Y,p(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(d){var C,A,N,_,L,O,j=this,Y=j.chart,X=j.logarithmic,G=j.options,q=j.isXAxis,Q=j.isLinked,J=G.tickPixelInterval,rt=j.categories,lt=j.softThreshold,gt=G.maxPadding,mt=G.minPadding,bt=r(G.tickInterval)&&G.tickInterval>=0?G.tickInterval:void 0,yt=r(j.threshold)?j.threshold:null;if(j.dateTime||rt||Q||this.getTickAmount(),L=e(j.userMin,G.min),O=e(j.userMax,G.max),Q?(j.linkedParent=Y[j.coll][G.linkedTo],A=j.linkedParent.getExtremes(),j.min=e(A.min,A.dataMin),j.max=e(A.max,A.dataMax),G.type!==j.linkedParent.options.type&&S(11,1,Y)):(lt&&u(yt)&&(j.dataMin>=yt?(N=yt,mt=0):j.dataMax<=yt&&(_=yt,gt=0)),j.min=e(L,N,j.dataMin),j.max=e(O,_,j.dataMax)),X&&(j.positiveValuesOnly&&!d&&Math.min(j.min,e(j.dataMin,j.min))<=0&&S(10,1,Y),j.min=m(X.log2lin(j.min),16),j.max=m(X.log2lin(j.max),16)),j.range&&u(j.max)&&(j.userMin=j.min=L=Math.max(j.dataMin,j.minFromRange()),j.userMax=O=j.max,j.range=null),p(j,"foundExtremes"),j.beforePadding&&j.beforePadding(),j.adjustForMinRange(),rt||j.axisPointRange||j.stacking&&j.stacking.usePercentage||Q||!u(j.min)||!u(j.max)||(C=j.max-j.min)&&(!u(L)&&mt&&(j.min-=C*mt),!u(O)&&gt&&(j.max+=C*gt)),r(j.userMin)||(r(G.softMin)&&G.softMin<j.min&&(j.min=L=G.softMin),r(G.floor)&&(j.min=Math.max(j.min,G.floor))),r(j.userMax)||(r(G.softMax)&&G.softMax>j.max&&(j.max=O=G.softMax),r(G.ceiling)&&(j.max=Math.min(j.max,G.ceiling))),lt&&u(j.dataMin)&&(yt=yt||0,!u(L)&&j.min<yt&&j.dataMin>=yt?j.min=j.options.minRange?Math.min(yt,j.max-j.minRange):yt:!u(O)&&j.max>yt&&j.dataMax<=yt&&(j.max=j.options.minRange?Math.max(yt,j.min+j.minRange):yt)),r(j.min)&&r(j.max)&&!this.chart.polar&&j.min>j.max&&(u(j.options.min)?j.max=j.min:u(j.options.max)&&(j.min=j.max)),j.min===j.max||j.min===void 0||j.max===void 0?j.tickInterval=1:Q&&j.linkedParent&&!bt&&J===j.linkedParent.options.tickPixelInterval?j.tickInterval=bt=j.linkedParent.tickInterval:j.tickInterval=e(bt,this.tickAmount?(j.max-j.min)/Math.max(this.tickAmount-1,1):void 0,rt?1:(j.max-j.min)*J/Math.max(j.len,J)),q&&!d){var ht=j.min!==(j.old&&j.old.min)||j.max!==(j.old&&j.old.max);j.series.forEach(function(at){at.forceCrop=at.forceCropping&&at.forceCropping(),at.processData(ht)}),p(this,"postProcessData",{hasExtremesChanged:ht})}j.setAxisTranslation(),p(this,"initialAxisTranslation"),j.pointRange&&!bt&&(j.tickInterval=Math.max(j.pointRange,j.tickInterval));var et=e(G.minTickInterval,j.dateTime&&!j.series.some(function(at){return at.noSharedTooltip})?j.closestPointRange:0);!bt&&j.tickInterval<et&&(j.tickInterval=et),j.dateTime||j.logarithmic||bt||(j.tickInterval=T(j,j.tickInterval)),this.tickAmount||(j.tickInterval=j.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var d,C=this,A=this.options,N=A.tickPositions,_=A.tickPositioner,L=this.getMinorTickInterval(),O=this.hasVerticalPanning(),j=this.coll==="colorAxis",Y=(j||!O)&&A.startOnTick,X=(j||!O)&&A.endOnTick,G=[];if(this.tickmarkOffset=this.categories&&A.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=L==="auto"&&this.tickInterval?this.tickInterval/5:L,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||A.allowDecimals!==!1),N)G=N.slice();else if(r(this.min)&&r(this.max)){if(C.ordinal&&C.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(C.dateTime)G=C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(this.tickInterval,A.units),this.min,this.max,A.startOfWeek,C.ordinal&&C.ordinal.positions,this.closestPointRange,!0);else if(C.logarithmic)G=C.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var q=this.tickInterval,Q=q;Q<=2*q&&(G=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&G.length>this.tickAmount);)this.tickInterval=T(this,Q*=1.1);else G=[this.min,this.max],S(19,!1,this.chart);G.length>this.len&&(G=[G[0],G[G.length-1]])[0]===G[1]&&(G.length=1),_&&(this.tickPositions=G,(d=_.apply(C,[this.min,this.max]))&&(G=d))}this.tickPositions=G,this.paddedTicks=G.slice(0),this.trimTicks(G,Y,X),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&G.length<2&&!this.categories&&!this.series.some(function(J){return J.is("heatmap")&&J.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),N||d||this.adjustTickAmount()),p(this,"afterSetTickPositions")},D.prototype.trimTicks=function(d,C,A){var N=d[0],_=d[d.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(p(this,"trimTicks"),!this.isLinked){if(C&&N!==-1/0)this.min=N;else for(;this.min-L>d[0];)d.shift();if(A)this.max=_;else for(;this.max+L<d[d.length-1];)d.pop();d.length===0&&u(N)&&!this.options.tickPositions&&d.push((_+N)/2)}},D.prototype.alignToOthers=function(){var d,C=this,A=[this],N=C.options,_=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||_)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!C.logarithmic){var O=function(X){var G=X.horiz,q=X.options;return[G?q.left:q.top,q.width,q.height,q.pane].join(",")},j=O(this);this.chart[this.coll].forEach(function(X){var G=X.series;G.length&&G.some(function(q){return q.visible})&&X!==C&&O(X)===j&&(d=!0,A.push(X))})}if(d&&_){A.forEach(function(X){var G=X.getThresholdAlignment(C);r(G)&&L.push(G)});var Y=L.length>1?L.reduce(function(X,G){return X+G},0)/L.length:void 0;A.forEach(function(X){X.thresholdAlignment=Y})}return d},D.prototype.getThresholdAlignment=function(d){if((!r(this.dataMin)||this!==d&&this.series.some(function(A){return A.isDirty||A.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold)){var C=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(C=1-C),C}},D.prototype.getTickAmount=function(){var d=this.options,C=d.tickPixelInterval,A=d.tickAmount;!u(d.tickInterval)&&!A&&this.len<C&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(A=2),!A&&this.alignToOthers()&&(A=Math.ceil(this.len/C)+1),A<4&&(this.finalTickAmt=A,A=5),this.tickAmount=A},D.prototype.adjustTickAmount=function(){var d,C,A,N=this,_=N.finalTickAmt,L=N.max,O=N.min,j=N.options,Y=N.tickPositions,X=N.tickAmount,G=N.thresholdAlignment,q=Y&&Y.length,Q=e(N.threshold,N.softThreshold?0:null),J=N.tickInterval,rt=function(){return Y.push(m(Y[Y.length-1]+J))},lt=function(){return Y.unshift(m(Y[0]-J))};if(r(G)&&(A=G<.5?Math.ceil(G*(X-1)):Math.floor(G*(X-1)),j.reversed&&(A=X-1-A)),N.hasData()&&r(O)&&r(L)){var gt=function(){N.transA*=(q-1)/(X-1),N.min=j.startOnTick?Y[0]:Math.min(O,Y[0]),N.max=j.endOnTick?Y[Y.length-1]:Math.max(L,Y[Y.length-1])};if(r(A)&&r(N.threshold)){for(;Y[A]!==Q||Y.length!==X||Y[0]>O||Y[Y.length-1]<L;){for(Y.length=0,Y.push(N.threshold);Y.length<X;)Y[A]===void 0||Y[A]>N.threshold?lt():rt();if(J>8*N.tickInterval)break;J*=2}gt()}else if(q<X){for(;Y.length<X;)Y.length%2||O===Q?rt():lt();gt()}if(u(_)){for(C=d=Y.length;C--;)(_===3&&C%2==1||_<=2&&C>0&&C<d-1)&&Y.splice(C,1);N.finalTickAmt=void 0}}},D.prototype.setScale=function(){var d=this,C=!1,A=!1;d.series.forEach(function(_){C=C||_.isDirtyData||_.isDirty,A=A||_.xAxis&&_.xAxis.isDirty||!1}),d.setAxisSize();var N=d.len!==(d.old&&d.old.len);N||C||A||d.isLinked||d.forceRedraw||d.userMin!==(d.old&&d.old.userMin)||d.userMax!==(d.old&&d.old.userMax)||d.alignToOthers()?(d.stacking&&(d.stacking.resetStacks(),d.stacking.buildStacks()),d.forceRedraw=!1,d.getSeriesExtremes(),d.setTickInterval(),d.isDirty||(d.isDirty=N||d.min!==(d.old&&d.old.min)||d.max!==(d.old&&d.old.max))):d.stacking&&d.stacking.cleanStacks(),C&&d.panningState&&(d.panningState.isDirty=!0),p(this,"afterSetScale")},D.prototype.setExtremes=function(d,C,A,N,_){var L=this,O=L.chart;A=e(A,!0),L.series.forEach(function(j){delete j.kdTree}),_=x(_,{min:d,max:C}),p(L,"setExtremes",_,function(){L.userMin=d,L.userMax=C,L.eventArgs=_,A&&O.redraw(N)})},D.prototype.zoom=function(d,C){var A=this,N=this.dataMin,_=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(_,e(L.max,_)),Y={newMin:d,newMax:C};return p(this,"zoom",Y,function(X){var G=X.newMin,q=X.newMax;G===A.min&&q===A.max||(A.allowZoomOutside||(u(N)&&(G<O&&(G=O),G>j&&(G=j)),u(_)&&(q<O&&(q=O),q>j&&(q=j))),A.displayBtn=G!==void 0||q!==void 0,A.setExtremes(G,q,!1,void 0,{trigger:"zoom"})),X.zoomed=!0}),Y.zoomed},D.prototype.setAxisSize=function(){var d=this.chart,C=this.options,A=C.offsets||[0,0,0,0],N=this.horiz,_=this.width=Math.round(s(e(C.width,d.plotWidth-A[3]+A[1]),d.plotWidth)),L=this.height=Math.round(s(e(C.height,d.plotHeight-A[0]+A[2]),d.plotHeight)),O=this.top=Math.round(s(e(C.top,d.plotTop+A[0]),d.plotHeight,d.plotTop)),j=this.left=Math.round(s(e(C.left,d.plotLeft+A[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-L-O,this.right=d.chartWidth-_-j,this.len=Math.max(N?_:L,0),this.pos=N?j:O},D.prototype.getExtremes=function(){var d=this,C=d.logarithmic;return{min:C?m(C.lin2log(d.min)):d.min,max:C?m(C.lin2log(d.max)):d.max,dataMin:d.dataMin,dataMax:d.dataMax,userMin:d.userMin,userMax:d.userMax}},D.prototype.getThreshold=function(d){var C=this,A=C.logarithmic,N=A?A.lin2log(C.min):C.min,_=A?A.lin2log(C.max):C.max;return d===null||d===-1/0?d=N:d===1/0?d=_:N>d?d=N:_<d&&(d=_),C.translate(d,0,1,0,1)},D.prototype.autoLabelAlign=function(d){var C=(e(d,0)-90*this.side+720)%360,A={align:"center"};return p(this,"autoLabelAlign",A,function(N){C>15&&C<165?N.align="right":C>195&&C<345&&(N.align="left")}),A.align},D.prototype.tickSize=function(d){var C,A=this.options,N=e(A[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),_=A[d==="tick"?"tickLength":"minorTickLength"];N&&_&&(A[d+"Position"]==="inside"&&(_=-_),C=[_,N]);var L={tickSize:C};return p(this,"afterTickSize",L),L.tickSize},D.prototype.labelMetrics=function(){var d=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[d]&&this.ticks[d].label)},D.prototype.unsquish=function(){var d,C,A=this.options.labels,N=this.horiz,_=this.tickInterval,L=this.len/(((this.categories?1:0)+this.max-this.min)/_),O=A.rotation,j=this.labelMetrics(),Y=Math.max(this.max-this.min,0),X=function(mt){var bt=mt/(L||1);return(bt=bt>1?Math.ceil(bt):1)*_>Y&&mt!==1/0&&L!==1/0&&Y&&(bt=Math.ceil(Y/_)),m(bt*_)},G=_,q=Number.MAX_VALUE;if(N){if(A.staggerLines||(r(O)?C=[O]:L<A.autoRotationLimit&&(C=A.autoRotation)),C)for(var Q=void 0,J=void 0,rt=0,lt=C;rt<lt.length;rt++){var gt=lt[rt];(gt===O||gt&&gt>=-90&&gt<=90)&&(J=(Q=X(Math.abs(j.h/Math.sin(P*gt))))+Math.abs(gt/360))<q&&(q=J,d=gt,G=Q)}}else G=X(j.h);return this.autoRotation=C,this.labelRotation=e(d,r(O)?O:0),A.step?_:G},D.prototype.getSlotWidth=function(d){var C=this.chart,A=this.horiz,N=this.options.labels,_=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=C.margin[3];if(d&&r(d.slotWidth))return d.slotWidth;if(A&&N.step<2)return N.rotation?0:(this.staggerLines||1)*this.len/_;if(!A){var O=N.style.width;if(O!==void 0)return parseInt(String(O),10);if(L)return L-C.spacing[3]}return .33*C.chartWidth},D.prototype.renderUnsquish=function(){var d,C,A,N,_,L=this.chart,O=L.renderer,j=this.tickPositions,Y=this.ticks,X=this.options.labels,G=X.style,q=this.horiz,Q=this.getSlotWidth(),J=Math.max(1,Math.round(Q-2*X.padding)),rt={},lt=this.labelMetrics(),gt=G.textOverflow,mt=0;if(a(X.rotation)||(rt.rotation=X.rotation||0),j.forEach(function(bt){var yt=Y[bt];yt.movedLabel&&yt.replaceMovedLabel(),yt&&yt.label&&yt.label.textPxLength>mt&&(mt=yt.label.textPxLength)}),this.maxLabelLength=mt,this.autoRotation)mt>J&&mt>lt.h?rt.rotation=this.labelRotation:this.labelRotation=0;else if(Q&&(d=J,!gt))for(C="clip",N=j.length;!q&&N--;)_=j[N],(A=Y[_].label)&&(A.styles&&A.styles.textOverflow==="ellipsis"?A.css({textOverflow:"clip"}):A.textPxLength>Q&&A.css({width:Q+"px"}),A.getBBox().height>this.len/j.length-(lt.h-lt.f)&&(A.specificTextOverflow="ellipsis"));rt.rotation&&(d=mt>.5*L.chartHeight?.33*L.chartHeight:mt,gt||(C="ellipsis")),this.labelAlign=X.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(rt.align=this.labelAlign),j.forEach(function(bt){var yt=Y[bt],ht=yt&&yt.label,et=G.width,at={};ht&&(ht.attr(rt),yt.shortenLabel?yt.shortenLabel():d&&!et&&G.whiteSpace!=="nowrap"&&(d<ht.textPxLength||ht.element.tagName==="SPAN")?(at.width=d+"px",gt||(at.textOverflow=ht.specificTextOverflow||C),ht.css(at)):ht.styles&&ht.styles.width&&!at.width&&!et&&ht.css({width:null}),delete ht.specificTextOverflow,yt.rotation=rt.rotation)},this),this.tickRotCorr=O.rotCorr(lt.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},D.prototype.addTitle=function(d){var C,A=this,N=A.chart.renderer,_=A.horiz,L=A.opposite,O=A.options.title,j=A.chart.styledMode;A.axisTitle||((C=O.textAlign)||(C=(_?{low:"left",middle:"center",high:"right"}:{low:L?"right":"left",middle:"center",high:L?"left":"right"})[O.align]),A.axisTitle=N.text(O.text||"",0,0,O.useHTML).attr({zIndex:7,rotation:O.rotation,align:C}).addClass("highcharts-axis-title"),j||A.axisTitle.css(t(O.style)),A.axisTitle.add(A.axisGroup),A.axisTitle.isNew=!0),j||O.style.width||A.isRadial||A.axisTitle.css({width:A.len+"px"}),A.axisTitle[d?"show":"hide"](d)},D.prototype.generateTick=function(d){var C=this.ticks;C[d]?C[d].addLabel():C[d]=new U(this,d)},D.prototype.getOffset=function(){var d,C,A,N,_=this,L=this,O=L.chart,j=L.horiz,Y=L.options,X=L.side,G=L.ticks,q=L.tickPositions,Q=L.coll,J=L.axisParent,rt=O.renderer,lt=O.inverted&&!L.isZAxis?[1,0,3,2][X]:X,gt=L.hasData(),mt=Y.title,bt=Y.labels,yt=O.axisOffset,ht=O.clipOffset,et=[-1,1,1,-1][X],at=Y.className,dt=0,vt=0,Ct=0;if(L.showAxis=d=gt||Y.showEmpty,L.staggerLines=L.horiz&&bt.staggerLines||void 0,!L.axisGroup){var xt=function(St,kt,Lt){return rt.g(St).attr({zIndex:Lt}).addClass("highcharts-".concat(Q.toLowerCase()).concat(kt," ")+(_.isRadial?"highcharts-radial-axis".concat(kt," "):"")+(at||"")).add(J)};L.gridGroup=xt("grid","-grid",Y.gridZIndex),L.axisGroup=xt("axis","",Y.zIndex),L.labelGroup=xt("axis-labels","-labels",bt.zIndex)}if(gt||L.isLinked?(q.forEach(function(St){L.generateTick(St)}),L.renderUnsquish(),L.reserveSpaceDefault=X===0||X===2||{1:"left",3:"right"}[X]===L.labelAlign,e(bt.reserveSpace,L.labelAlign==="center"||null,L.reserveSpaceDefault)&&q.forEach(function(St){Ct=Math.max(G[St].getLabelSize(),Ct)}),L.staggerLines&&(Ct*=L.staggerLines),L.labelOffset=Ct*(L.opposite?-1:1)):o(G,function(St,kt){St.destroy(),delete G[kt]}),mt&&mt.text&&mt.enabled!==!1&&(L.addTitle(d),d&&mt.reserveSpace!==!1&&(L.titleOffset=dt=L.axisTitle.getBBox()[j?"height":"width"],C=mt.offset,vt=u(C)?0:e(mt.margin,j?5:10))),L.renderLine(),L.offset=et*e(Y.offset,yt[X]?yt[X]+(Y.margin||0):0),L.tickRotCorr=L.tickRotCorr||{x:0,y:0},N=X===0?-L.labelMetrics().h:X===2?L.tickRotCorr.y:0,A=Math.abs(Ct)+vt,Ct&&(A-=N,A+=et*(j?e(bt.y,L.tickRotCorr.y+8*et):bt.x)),L.axisTitleMargin=e(C,A),L.getMaxLabelDimensions&&(L.maxLabelDimensions=L.getMaxLabelDimensions(G,q)),Q!=="colorAxis"){var wt=this.tickSize("tick");yt[X]=Math.max(yt[X],(L.axisTitleMargin||0)+dt+et*L.offset,A,q&&q.length&&wt?wt[0]+et*L.offset:0);var Mt=!L.axisLine||Y.offset?0:2*Math.floor(L.axisLine.strokeWidth()/2);ht[lt]=Math.max(ht[lt],Mt)}p(this,"afterGetOffset")},D.prototype.getLinePath=function(d){var C=this.chart,A=this.opposite,N=this.offset,_=this.horiz,L=this.left+(A?this.width:0)+N,O=C.chartHeight-this.bottom-(A?this.height:0)+N;return A&&(d*=-1),C.renderer.crispLine([["M",_?this.left:L,_?O:this.top],["L",_?C.chartWidth-this.right:L,_?O:C.chartHeight-this.bottom]],d)},D.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},D.prototype.getTitlePosition=function(){var d=this.horiz,C=this.left,A=this.top,N=this.len,_=this.options.title,L=d?C:A,O=this.opposite,j=this.offset,Y=_.x,X=_.y,G=this.axisTitle,q=this.chart.renderer.fontMetrics(_.style.fontSize,G),Q=G?Math.max(G.getBBox(!1,0).height-q.h-1,0):0,J={low:L+(d?0:N),middle:L+N/2,high:L+(d?N:0)}[_.align],rt=(d?A+this.height:C)+(d?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-Q,Q,q.f,-Q][this.side],lt={x:d?J+Y:rt+(O?this.width:0)+j+Y,y:d?rt+X-(O?this.height:0)+j:J+X};return p(this,"afterGetTitlePosition",{titlePosition:lt}),lt},D.prototype.renderMinorTick=function(d,C){var A=this.minorTicks;A[d]||(A[d]=new U(this,d,"minor")),C&&A[d].isNew&&A[d].render(null,!0),A[d].render(null,!1,1)},D.prototype.renderTick=function(d,C,A){var N=this,_=N.isLinked,L=N.ticks;(!_||d>=N.min&&d<=N.max||N.grid&&N.grid.isColumn)&&(L[d]||(L[d]=new U(N,d)),A&&L[d].isNew&&L[d].render(C,!0,-1),L[d].render(C))},D.prototype.render=function(){var d,C,A=this,N=A.chart,_=A.logarithmic,L=N.renderer,O=A.options,j=A.isLinked,Y=A.tickPositions,X=A.axisTitle,G=A.ticks,q=A.minorTicks,Q=A.alternateBands,J=O.stackLabels,rt=O.alternateGridColor,lt=A.tickmarkOffset,gt=A.axisLine,mt=A.showAxis,bt=I(L.globalAnimation);if(A.labelEdge.length=0,A.overlap=!1,[G,q,Q].forEach(function(et){o(et,function(at){at.isActive=!1})}),A.hasData()||j){var yt=A.chart.hasRendered&&A.old&&r(A.old.min);A.minorTickInterval&&!A.categories&&A.getMinorTickPositions().forEach(function(et){A.renderMinorTick(et,yt)}),Y.length&&(Y.forEach(function(et,at){A.renderTick(et,at,yt)}),lt&&(A.min===0||A.single)&&(G[-1]||(G[-1]=new U(A,-1,null,!0)),G[-1].render(-1))),rt&&Y.forEach(function(et,at){C=Y[at+1]!==void 0?Y[at+1]+lt:A.max-lt,at%2==0&&et<A.max&&C<=A.max+(N.polar?-lt:lt)&&(Q[et]||(Q[et]=new Z.PlotLineOrBand(A)),d=et+lt,Q[et].options={from:_?_.lin2log(d):d,to:_?_.lin2log(C):C,color:rt,className:"highcharts-alternate-grid"},Q[et].render(),Q[et].isActive=!0)}),A._addedPlotLB||(A._addedPlotLB=!0,(O.plotLines||[]).concat(O.plotBands||[]).forEach(function(et){A.addPlotBandOrLine(et)}))}if([G,q,Q].forEach(function(et){var at=[],dt=bt.duration;o(et,function(vt,Ct){vt.isActive||(vt.render(Ct,!1,0),vt.isActive=!1,at.push(Ct))}),b(function(){for(var vt=at.length;vt--;)et[at[vt]]&&!et[at[vt]].isActive&&(et[at[vt]].destroy(),delete et[at[vt]])},et!==Q&&N.hasRendered&&dt?dt:0)}),gt&&(gt[gt.isPlaced?"animate":"attr"]({d:this.getLinePath(gt.strokeWidth())}),gt.isPlaced=!0,gt[mt?"show":"hide"](mt)),X&&mt){var ht=A.getTitlePosition();X[X.isNew?"attr":"animate"](ht),X.isNew=!1}J&&J.enabled&&A.stacking&&A.stacking.renderStackTotals(),A.old={len:A.len,max:A.max,min:A.min,transA:A.transA,userMax:A.userMax,userMin:A.userMin},A.isDirty=!1,p(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(d){var C=this,A=C.plotLinesAndBands,N=this.eventOptions;if(p(this,"destroy",{keepEvents:d}),d||n(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(O){v(O)}),A)for(var _=A.length;_--;)A[_].destroy();for(var L in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(O){C[O]&&(C[O]=C[O].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[L]=C.plotLinesAndBandsGroups[L].destroy();o(C,function(O,j){C.getKeepProps().indexOf(j)===-1&&delete C[j]}),this.eventOptions=N},D.prototype.drawCrosshair=function(d,C){var A,N,_,L,O=this.crosshair,j=e(O&&O.snap,!0),Y=this.chart,X=this.cross;if(p(this,"drawCrosshair",{e:d,point:C}),d||(d=this.cross&&this.cross.e),O&&(u(C)||!j)!==!1){if(j?u(C)&&(N=e(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):N=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),u(N)&&(L={value:C&&(this.isXAxis?C.x:e(C.stackY,C.y)),translatedValue:N},Y.polar&&x(L,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:C}),A=this.getPlotLinePath(L)||null),!u(A))return void this.hideCrosshair();_=this.categories&&!this.isRadial,X||(this.cross=X=Y.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(_?"category ":"thin ")+(O.className||"")).attr({zIndex:e(O.zIndex,2)}).add(),Y.styledMode||(X.attr({stroke:O.color||(_?H.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(O.width,1)}).css({"pointer-events":"none"}),O.dashStyle&&X.attr({dashstyle:O.dashStyle}))),X.show().attr({d:A}),_&&!O.width&&X.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();p(this,"afterDrawCrosshair",{e:d,point:C})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),p(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},D.prototype.validatePositiveValue=function(d){return r(d)&&d>0},D.prototype.update=function(d,C){var A=this.chart;d=t(this.userOptions,d),this.destroy(!0),this.init(A,d),A.isDirtyBox=!0,e(C,!0)&&A.redraw()},D.prototype.remove=function(d){for(var C=this.chart,A=this.coll,N=this.series,_=N.length;_--;)N[_]&&N[_].remove(!1);w(C.axes,this),w(C[A],this),C[A].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),C.isDirtyBox=!0,e(d,!0)&&C.redraw()},D.prototype.setTitle=function(d,C){this.update({title:d},C)},D.prototype.setCategories=function(d,C){this.update({categories:d},C)},D.defaultOptions=R.defaultXAxisOptions,D.keepProps=["extKey","hcEvents","names","series","userMax","userMin"],D}()}),it(B,"Core/Axis/DateTimeAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.getMagnitude,$=W.normalizeTickInterval,Z=W.timeUnits;return function(U){var z=[];function I(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function E(P){var y=this;P.userOptions.type==="datetime"?y.dateTime||(y.dateTime=new M(y)):y.dateTime=void 0}U.compose=function(P){return z.indexOf(P)===-1&&(z.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=I,H(P,"init",E)),P};var M=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,h){var f,m=h||[["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]],u=m[m.length-1],v=Z[u[0]],w=u[1];for(f=0;f<m.length&&(u=m[f],v=Z[u[0]],w=u[1],!(m[f+1]&&y<=(v*w[w.length-1]+Z[m[f+1][0]])/2));f++);return v===Z.year&&y<5*v&&(w=[1,2,5]),{unitRange:v,count:$(y/v,w,u[0]==="year"?Math.max(V(y/v),1):1),unitName:u[0]}},P.prototype.getXDateFormat=function(y,h){var f=this.axis,m=f.chart.time;return f.closestPointRange?m.getDateFormat(f.closestPointRange,y,f.options.startOfWeek,h)||m.resolveDTLFormat(h.year).main:m.resolveDTLFormat(h.day).main},P}();U.Additions=M}(R||(R={})),R}),it(B,"Core/Axis/LogarithmicAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.normalizeTickInterval,$=W.pick;return function(Z){var U=[];function z(M){var P=this,y=M.userOptions,h=P.logarithmic;y.type!=="logarithmic"?P.logarithmic=void 0:h||(h=P.logarithmic=new E(P))}function I(){var M=this,P=M.logarithmic;P&&(M.lin2val=function(y){return P.lin2log(y)},M.val2lin=function(y){return P.log2lin(y)})}Z.compose=function(M){return U.indexOf(M)===-1&&(U.push(M),M.keepProps.push("logarithmic"),H(M,"init",z),H(M,"afterInit",I)),M};var E=function(){function M(P){this.axis=P}return M.prototype.getLogTickPositions=function(P,y,h,f){var m=this,u=m.axis,v=u.len,w=u.options,S=[];if(f||(m.minorAutoInterval=void 0),P>=.5)P=Math.round(P),S=u.getLinearTickPositions(P,y,h);else if(P>=.08){var x,p=void 0,g=void 0,r=void 0,a=void 0,t=void 0,i=void 0;for(x=P>.3?[1,2,4]:P>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],p=Math.floor(y);p<h+1&&!i;p++)for(r=x.length,g=0;g<r&&!i;g++)(a=m.log2lin(m.lin2log(p)*x[g]))>y&&(!f||t<=h)&&t!==void 0&&S.push(t),t>h&&(i=!0),t=a}else{var o=m.lin2log(y),e=m.lin2log(h),s=f?u.getMinorTickInterval():w.tickInterval,n=s==="auto"?null:s,l=w.tickPixelInterval/(f?5:1),b=f?v/u.tickPositions.length:v;P=$(n,m.minorAutoInterval,(e-o)*l/(b||1)),P=V(P),S=u.getLinearTickPositions(P,o,e).map(m.log2lin),f||(m.minorAutoInterval=P/5)}return f||(u.tickInterval=P),S},M.prototype.lin2log=function(P){return Math.pow(10,P)},M.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},M}();Z.Additions=E}(R||(R={})),R}),it(B,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.erase,V=W.extend,$=W.isNumber;return function(Z){var U,z=[];Z.compose=function(E,M){return U||(U=E),z.indexOf(M)===-1&&(z.push(M),V(M.prototype,I.prototype)),M};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(M,P,y){y===void 0&&(y=this.options);var h,f,m=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),u=[],v=this.horiz,w=!$(this.min)||!$(this.max)||M<this.min&&P<this.min||M>this.max&&P>this.max,S=this.getPlotLinePath({value:M,force:!0,acrossPanes:y.acrossPanes}),x=1;if(S&&m)for(w&&(f=S.toString()===m.toString(),x=0),h=0;h<S.length;h+=2){var p=S[h],g=S[h+1],r=m[h],a=m[h+1];p[0]!=="M"&&p[0]!=="L"||g[0]!=="M"&&g[0]!=="L"||r[0]!=="M"&&r[0]!=="L"||a[0]!=="M"&&a[0]!=="L"||(v&&r[1]===p[1]?(r[1]+=x,a[1]+=x):v||r[2]!==p[2]||(r[2]+=x,a[2]+=x),u.push(["M",p[1],p[2]],["L",g[1],g[2]],["L",a[1],a[2]],["L",r[1],r[2]],["Z"])),u.isFlat=f}else S=null;return u},E.prototype.addPlotBand=function(M){return this.addPlotBandOrLine(M,"plotBands")},E.prototype.addPlotLine=function(M){return this.addPlotBandOrLine(M,"plotLines")},E.prototype.addPlotBandOrLine=function(M,P){var y=this,h=this.userOptions,f=new U(this,M);if(this.visible&&(f=f.render()),f){if(this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=h[P]||[];m.push(M),h[P]=m}this.plotLinesAndBands.push(f)}return f},E.prototype.removePlotBandOrLine=function(M){var P=this.plotLinesAndBands,y=this.options,h=this.userOptions;if(P){for(var f=P.length;f--;)P[f].id===M&&P[f].destroy();[y.plotLines||[],h.plotLines||[],y.plotBands||[],h.plotBands||[]].forEach(function(m){for(f=m.length;f--;)(m[f]||{}).id===M&&H(m,m[f])})}},E.prototype.removePlotBand=function(M){this.removePlotBandOrLine(M)},E.prototype.removePlotLine=function(M){this.removePlotBandOrLine(M)},E}()}(R||(R={})),R}),it(B,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[B["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],B["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.defined,Z=R.destroyObjectProperties,U=R.erase,z=R.fireEvent,I=R.merge,E=R.objectEach,M=R.pick;return function(){function P(y,h){this.axis=y,h&&(this.options=h,this.id=h.id)}return P.compose=function(y){return W.compose(P,y)},P.prototype.render=function(){z(this,"render");var y,h=this,f=h.axis,m=f.horiz,u=f.logarithmic,v=h.options,w=v.color,S=M(v.zIndex,0),x=v.events,p={},g=f.chart.renderer,r=v.label,a=h.label,t=v.to,i=v.from,o=v.value,e=h.svgElem,s=[],n=$(i)&&$(t),l=$(o),b=!e,T={class:"highcharts-plot-"+(n?"band ":"line ")+(v.className||"")},D=n?"bands":"lines";if(u&&(i=u.log2lin(i),t=u.log2lin(t),o=u.log2lin(o)),f.chart.styledMode||(l?(T.stroke=w||"#999999",T["stroke-width"]=M(v.width,1),v.dashStyle&&(T.dashstyle=v.dashStyle)):n&&(T.fill=w||"#e6ebf5",v.borderWidth&&(T.stroke=v.borderColor,T["stroke-width"]=v.borderWidth))),p.zIndex=S,D+="-"+S,(y=f.plotLinesAndBandsGroups[D])||(f.plotLinesAndBandsGroups[D]=y=g.g("plot-"+D).attr(p).add()),b&&(h.svgElem=e=g.path().attr(T).add(y)),l)s=f.getPlotLinePath({value:o,lineWidth:e.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!n)return;s=f.getPlotBandPath(i,t,v)}return!h.eventsAdded&&x&&(E(x,function(d,C){e.on(C,function(A){x[C].apply(h,[A])})}),h.eventsAdded=!0),(b||!e.d)&&s&&s.length?e.attr({d:s}):e&&(s?(e.show(),e.animate({d:s})):e.d&&(e.hide(),a&&(h.label=a=a.destroy()))),r&&($(r.text)||$(r.formatter))&&s&&s.length&&f.width>0&&f.height>0&&!s.isFlat?(r=I({align:m&&n&&"center",x:m?!n&&4:10,verticalAlign:!m&&n&&"middle",y:m?n?16:10:n?6:-4,rotation:m&&!n&&90},r),this.renderLabel(r,s,n,S)):a&&a.hide(),h},P.prototype.renderLabel=function(y,h,f,m){var u=this,v=u.axis,w=v.chart.renderer,S=u.label;S||(u.label=S=w.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(f?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),v.chart.styledMode||S.css(I({textOverflow:"ellipsis"},y.style)));var x=h.xBounds||[h[0][1],h[1][1],f?h[2][1]:h[0][1]],p=h.yBounds||[h[0][2],h[1][2],f?h[2][2]:h[0][2]],g=V(x),r=V(p);if(S.align(y,!1,{x:g,y:r,width:H(x)-g,height:H(p)-r}),!S.alignValue||S.alignValue==="left"){var a=y.clip?v.width:v.chart.chartWidth;S.css({width:(S.rotation===90?v.height-(S.alignAttr.y-v.top):a-(S.alignAttr.x-v.left))+"px"})}S.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){U(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}()}),it(B,"Core/Tooltip.js",[B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.format,U=R.doc,z=H.distribute,I=$.clamp,E=$.css,M=$.discardElement,P=$.extend,y=$.fireEvent,h=$.isArray,f=$.isNumber,m=$.isString,u=$.merge,v=$.pick,w=$.splat,S=$.syncTimeout;return function(){function x(p,g){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=p,this.init(p,g)}return x.prototype.applyFilter=function(){var p=this.chart;p.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+p.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"}}]}]})},x.prototype.bodyFormatter=function(p){return p.map(function(g){var r=g.series.tooltipOptions;return(r[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,r[(g.point.formatPrefix||"point")+"Format"]||"")})},x.prototype.cleanSplit=function(p){this.chart.series.forEach(function(g){var r=g&&g.tt;r&&(!r.isActive||p?g.tt=r.destroy():r.isActive=!1)})},x.prototype.defaultFormatter=function(p){var g,r=this.points||w(this);return(g=(g=[p.tooltipFooterHeaderFormatter(r[0])]).concat(p.bodyFormatter(r))).push(p.tooltipFooterHeaderFormatter(r[0],!0)),g},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),M(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(p,g){var r,a=this.chart,t=a.pointer,i=a.inverted,o=a.plotTop,e=a.plotLeft;if((p=w(p))[0].series&&p[0].series.yAxis&&!p[0].series.yAxis.options.reversedStacks&&(p=p.slice().reverse()),this.followPointer&&g)g.chartX===void 0&&(g=t.normalize(g)),r=[g.chartX-e,g.chartY-o];else if(p[0].tooltipPos)r=p[0].tooltipPos;else{var s=0,n=0;p.forEach(function(l){var b=l.pos(!0);b&&(s+=b[0],n+=b[1])}),s/=p.length,n/=p.length,this.shared&&p.length>1&&g&&(i?s=g.chartX:n=g.chartY),r=[s-e,n-o]}return r.map(Math.round)},x.prototype.getClassName=function(p,g,r){var a=this.options,t=p.series,i=t.options;return[a.className,"highcharts-label",r&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(p.colorIndex,t.colorIndex),i&&i.className].filter(m).join(" ")},x.prototype.getLabel=function(){var p,g=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(g.label){var e=!g.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&g.destroy()}if(!this.label){if(this.outside){var s=this.chart.options.chart.style,n=V.getRendererType();this.container=p=R.doc.createElement("div"),p.className="highcharts-tooltip-container",E(p,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(s&&s.zIndex||0)+3)}),R.doc.body.appendChild(p),this.renderer=o=new n(p,0,0,s,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),g.outside&&!g.split){var l=this.label,b=l.xSetter,T=l.ySetter;l.xSetter=function(D){b.call(l,g.distance),p.style.left=D+"px"},l.ySetter=function(D){T.call(l,g.distance),p.style.top=D+"px"}}this.label.attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(p,g,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?U.documentElement.clientWidth-2*i:t.chartWidth,l=s?Math.max(U.body.scrollHeight,U.documentElement.scrollHeight,U.body.offsetHeight,U.documentElement.offsetHeight,U.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),T=function(X){return X*b.scaleX},D=function(X){return X*b.scaleY},d=function(X){var G=X==="x";return[X,G?n:l,G?p:g].concat(s?[G?T(p):D(g),G?b.left-i+T(r.plotX+t.plotLeft):b.top-i+D(r.plotY+t.plotTop),0,G?n:l]:[G?p:g,G?r.plotX+t.plotLeft:r.plotY+t.plotTop,G?t.plotLeft:t.plotTop,G?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},C=d("y"),A=d("x"),N=!!r.negative;!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(N=!N);var _=!this.followPointer&&v(r.ttBelow,!t.inverted===N),L=function(X,G,q,Q,J,rt,lt){var gt=s?X==="y"?D(i):T(i):i,mt=(q-Q)/2,bt=Q<J-i,yt=J+i+Q<G,ht=J-gt-q+mt,et=J+gt-mt;if(_&&yt)o[X]=et;else if(!_&&bt)o[X]=ht;else if(bt)o[X]=Math.min(lt-Q,ht-e<0?ht:ht-e);else{if(!yt)return!1;o[X]=Math.max(rt,et+e+q>G?et:et+e)}},O=function(X,G,q,Q,J){var rt;return J<i||J>G-i?rt=!1:o[X]=J<q/2?1:J>G-Q/2?G-Q-2:J-q/2,rt},j=function(X){var G=C;C=A,A=G,a=X},Y=function(){L.apply(0,C)!==!1?O.apply(0,A)!==!1||a||(j(!0),Y()):a?o.x=o.y=0:(j(!0),Y())};return(t.inverted||this.len>1)&&j(),Y(),o},x.prototype.hide=function(p){var g=this;$.clearTimeout(this.hideTimer),p=v(p,this.options.hideDelay),this.isHidden||(this.hideTimer=S(function(){g.getLabel().fadeOut(p&&void 0),g.isHidden=!0},p))},x.prototype.init=function(p,g){this.chart=p,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!p.inverted&&!p.polar,this.shared=g.shared||this.split,this.outside=v(g.outside,!!(p.scrollablePixelsX||p.scrollablePixelsY))},x.prototype.shouldStickOnContact=function(p){return!(this.followPointer||!this.options.stickOnContact||p&&!this.chart.pointer.inClass(p.target,"highcharts-tooltip"))},x.prototype.move=function(p,g,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(Math.abs(p-i.x)>1||Math.abs(g-i.y)>1),e=t.followPointer||t.len>1;P(i,{x:o?(2*i.x+p)/3:p,y:o?(i.y+g)/2:g,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(p,g,r,a)},32))},x.prototype.refresh=function(p,g){var r=this,a=this.chart,t=r.options,i=a.pointer,o=w(p),e=o[0],s=[],n=t.formatter||r.defaultFormatter,l=r.shared,b=a.styledMode,T={};if(t.enabled&&e.series){$.clearTimeout(this.hideTimer),r.allowShared=!(!h(p)&&p.series&&p.series.noSharedTooltip),r.followPointer=!r.split&&e.series.tooltipOptions.followPointer;var D=r.getAnchor(p,g),d=D[0],C=D[1];l&&r.allowShared?(i.applyInactiveState(o),o.forEach(function(j){j.setState("hover"),s.push(j.getLabelConfig())}),(T={x:e.category,y:e.y}).points=s):T=e.getLabelConfig(),this.len=s.length;var A=n.call(T,r),N=e.series;if(this.distance=v(N.tooltipOptions.distance,16),A===!1)this.hide();else{if(r.split&&r.allowShared)this.renderSplit(A,o);else{var _=d,L=C;if(g&&i.isDirectTouch&&(_=g.chartX-a.plotLeft,L=g.chartY-a.plotTop),!a.polar&&N.options.clip!==!1&&!o.some(function(j){return i.isDirectTouch||j.series.shouldShowTooltip(_,L)}))return void r.hide();var O=r.getLabel();t.style.width&&!b||O.css({width:a.spacingBox.width+"px"}),O.attr({text:A&&A.join?A.join(""):A}),O.addClass(r.getClassName(e),!0),b||O.attr({stroke:t.borderColor||e.color||N.color||"#666666"}),r.updatePosition({plotX:d,plotY:C,negative:e.negative,ttBelow:e.ttBelow,h:D[2]||0})}r.isHidden&&r.label&&r.label.attr({opacity:1}).show(),r.isHidden=!1}y(this,"refresh")}},x.prototype.renderSplit=function(p,g){var r=this,a=r.chart,t=r.chart,i=t.chartWidth,o=t.chartHeight,e=t.plotHeight,s=t.plotLeft,n=t.plotTop,l=t.pointer,b=t.scrollablePixelsY,T=b===void 0?0:b,D=t.scrollablePixelsX,d=t.scrollingContainer,C=d===void 0?{scrollLeft:0,scrollTop:0}:d,A=C.scrollLeft,N=C.scrollTop,_=t.styledMode,L=r.distance,O=r.options,j=r.options.positioner,Y=r.outside&&typeof D!="number"?U.documentElement.getBoundingClientRect():{left:A,right:A+i,top:N,bottom:N+o},X=r.getLabel(),G=this.renderer||a.renderer,q=!!(a.xAxis[0]&&a.xAxis[0].opposite),Q=l.getChartPosition(),J=Q.left,rt=Q.top,lt=n+N,gt=0,mt=e-T;function bt(St,kt,Lt,Pt,Dt){var jt,Ot;return Dt===void 0&&(Dt=!0),Lt?(jt=q?0:mt,Ot=I(St-Pt/2,Y.left,Y.right-Pt-(r.outside?J:0))):(jt=kt-lt,Ot=I(Ot=Dt?St-Pt-L:St+L,Dt?Ot:Y.left,Y.right)),{x:Ot,y:jt}}m(p)&&(p=[!1,p]);var yt=p.slice(0,g.length+1).reduce(function(St,kt,Lt){if(kt!==!1&&kt!==""){var Pt=g[Lt-1]||{isHeader:!0,plotX:g[0].plotX,plotY:e,series:{}},Dt=Pt.isHeader,jt=Dt?r:Pt.series,Ot=jt.tt=function(Ut,te,ye){var Et=Ut,Gt=te.isHeader,Yt=te.series;if(!Et){var $t={padding:O.padding,r:O.borderRadius};_||($t.fill=O.backgroundColor,$t["stroke-width"]=O.borderWidth),Et=G.label("",0,0,O[Gt?"headerShape":"shape"],void 0,void 0,O.useHTML).addClass(r.getClassName(te,!0,Gt)).attr($t).add(X)}return Et.isActive=!0,Et.attr({text:ye}),_||Et.css(O.style).shadow(O.shadow).attr({stroke:O.borderColor||te.color||Yt.color||"#333333"}),Et}(jt.tt,Pt,kt.toString()),It=Ot.getBBox(),Nt=It.width+Ot.strokeWidth();Dt&&(gt=It.height,mt+=gt,q&&(lt-=gt));var Zt=function(Ut){var te,ye,Et=Ut.isHeader,Gt=Ut.plotX,Yt=Gt===void 0?0:Gt,$t=Ut.plotY,ce=$t===void 0?0:$t,pe=Ut.series;if(Et)te=s+Yt,ye=n+e/2;else{var Wt=pe.xAxis,At=pe.yAxis;te=Wt.pos+I(Yt,-L,Wt.len+L),pe.shouldShowTooltip(0,At.pos-n+ce,{ignoreX:!0})&&(ye=At.pos+ce)}return{anchorX:te=I(te,Y.left-L,Y.right+L),anchorY:ye}}(Pt),zt=Zt.anchorX,Ht=Zt.anchorY;if(typeof Ht=="number"){var Kt=It.height+1,me=j?j.call(r,Nt,Kt,Pt):bt(zt,Ht,Dt,Nt);St.push({align:j?0:void 0,anchorX:zt,anchorY:Ht,boxWidth:Nt,point:Pt,rank:v(me.rank,Dt?1:0),size:Kt,target:me.y,tt:Ot,x:me.x})}else Ot.isActive=!1}return St},[]);!j&&yt.some(function(St){var kt=(r.outside?J:0)+St.anchorX;return kt<Y.left&&kt+St.boxWidth<Y.right||kt<J-Y.left+St.boxWidth&&Y.right-kt>kt})&&(yt=yt.map(function(St){var kt=bt(St.anchorX,St.anchorY,St.point.isHeader,St.boxWidth,!1),Lt=kt.x,Pt=kt.y;return P(St,{target:Pt,x:Lt})})),r.cleanSplit(),z(yt,mt);var ht={left:J,right:J};yt.forEach(function(St){var kt=St.x,Lt=St.boxWidth,Pt=St.isHeader;Pt||(r.outside&&J+kt<ht.left&&(ht.left=J+kt),!Pt&&r.outside&&ht.left+Lt>ht.right&&(ht.right=J+kt))}),yt.forEach(function(St){var kt=St.x,Lt=St.anchorX,Pt=St.anchorY,Dt=St.pos,jt=St.point.isHeader,Ot={visibility:Dt===void 0?"hidden":"inherit",x:kt,y:(Dt||0)+lt,anchorX:Lt,anchorY:Pt};if(r.outside&&kt<Lt){var It=J-ht.left;It>0&&(jt||(Ot.x=kt+It,Ot.anchorX=Lt+It),jt&&(Ot.x=(ht.right-ht.left)/2,Ot.anchorX=Lt+It))}St.tt.attr(Ot)});var et=r.container,at=r.outside,dt=r.renderer;if(at&&et&&dt){var vt=X.getBBox(),Ct=vt.width,xt=vt.height,wt=vt.x,Mt=vt.y;dt.setSize(Ct+wt,xt+Mt,!1),et.style.left=ht.left+"px",et.style.top=rt+"px"}},x.prototype.drawTracker=function(){var p=this;if(this.shouldStickOnContact()){var g=p.chart,r=p.label,a=p.shared?g.hoverPoints:g.hoverPoint;if(r&&a){var t={x:0,y:0,width:0,height:0},i=this.getAnchor(a),o=r.getBBox();i[0]+=g.plotLeft-r.translateX,i[1]+=g.plotTop-r.translateY,t.x=Math.min(0,i[0]),t.y=Math.min(0,i[1]),t.width=i[0]<0?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),t.height=i[1]<0?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),p.tracker?p.tracker.attr(t):(p.tracker=r.renderer.rect(t).addClass("highcharts-tracker").add(r),g.styledMode||p.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else p.tracker&&p.tracker.destroy()},x.prototype.styledModeFormat=function(p){return p.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},x.prototype.tooltipFooterHeaderFormatter=function(p,g){var r=p.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime,o={isFooter:g,labelConfig:p},e=a.xDateFormat,s=a[g?"footerFormat":"headerFormat"];return y(this,"headerFormatter",o,function(n){i&&!e&&f(p.key)&&(e=i.getXDateFormat(p.key,a.dateTimeLabelFormats)),i&&e&&(p.point&&p.point.tooltipDateKeys||["key"]).forEach(function(l){s=s.replace("{point."+l+"}","{point."+l+":"+e+"}")}),r.chart.styledMode&&(s=this.styledModeFormat(s)),n.text=Z(s,{point:p,series:r},this.chart)}),o.text},x.prototype.update=function(p){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,p),this.init(this.chart,u(!0,this.options,p))},x.prototype.updatePosition=function(p){var g,r=this,a=r.chart,t=r.distance,i=r.options,o=a.pointer,e=this.getLabel(),s=o.getChartPosition(),n=s.left,l=s.top,b=s.scaleX,T=s.scaleY,D=(i.positioner||this.getPosition).call(this,e.width,e.height,p),d=(p.plotX||0)+a.plotLeft,C=(p.plotY||0)+a.plotTop;this.outside&&(i.positioner&&(D.x+=n-t,D.y+=l-t),g=i.borderWidth+2*t,this.renderer.setSize(e.width+g,e.height+g,!1),b===1&&T===1||(E(this.container,{transform:"scale(".concat(b,", ").concat(T,")")}),d*=b,C*=T),d+=n-D.x,C+=l-D.y),this.move(Math.round(D.x),Math.round(D.y||0),d,C)},x}()}),it(B,"Core/Series/Point.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Animation/AnimationUtilities.js"],B["Core/Defaults.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=R.animObject,U=H.defaultOptions,z=V.format,I=$.addEvent,E=$.defined,M=$.erase,P=$.extend,y=$.fireEvent,h=$.getNestedProperty,f=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,w=$.merge,S=$.objectEach,x=$.pick,p=$.syncTimeout,g=$.removeEvent,r=$.uniqueKey;return function(){function a(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}return a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){var s=e==="dataLabel";t[e]=t[e].animate(s?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(P({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this,e=o.series,s=e.options.pointValKey||e.pointValKey;return t=a.prototype.optionsToObject.call(this,t),P(o,t),o.options=o.options?P(o.options,t):t,t.group&&delete o.group,t.dataLabels&&delete o.dataLabels,s&&(o.y=a.prototype.getNestedProperty.call(o,s)),o.isNull=this.isValid&&!this.isValid(),o.formatPrefix=o.isNull?"null":"point",o.selected&&(o.state="select"),"name"in o&&i===void 0&&e.xAxis&&e.xAxis.hasNames&&(o.x=e.xAxis.nameToX(o)),o.x===void 0&&e?o.x=i===void 0?e.autoIncrement():i:u(t.x)&&e.options.relativeXValue&&(o.x=e.autoIncrement(t.x)),o},a.prototype.destroy=function(){var t,i=this,o=i.series,e=o.chart,s=o.options.dataSorting,n=e.hoverPoints,l=i.series.chart.renderer.globalAnimation,b=Z(l);function T(){for(t in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(g(i),i.destroyElements()),i)i[t]=null}i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),M(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),s&&s.enabled?(this.animateBeforeDestroy(),p(T,b.duration)):T(),e.pointCount--},a.prototype.destroyElements=function(t){var i=this,o=i.getGraphicalProps(t);o.singular.forEach(function(e){i[e]=i[e].destroy()}),o.plural.forEach(function(e){i[e].forEach(function(s){s&&s.element&&s.destroy()}),delete i[e]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.prototype.getClassName=function(){var t=this;return"highcharts-point"+(t.selected?" highcharts-point-select":"")+(t.negative?" highcharts-negative":"")+(t.isNull?" highcharts-null-point":"")+(t.colorIndex!==void 0?" highcharts-color-"+t.colorIndex:"")+(t.options.className?" "+t.options.className:"")+(t.zone&&t.zone.className?" "+t.zone.className.replace("highcharts-negative",""):"")},a.prototype.getGraphicalProps=function(t){var i,o,e=this,s=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&s.push("graphic","shadowGroup"),t.dataLabel&&s.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),o=s.length;o--;)i=s[o],e[i]&&n.singular.push(i);return["graphic","dataLabel","connector"].forEach(function(l){var b=l+"s";t[l]&&e[b]&&n.plural.push(b)}),n},a.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}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?h(t,this.options):this[t]},a.prototype.getZone=function(){var t,i=this.series,o=i.zones,e=i.zoneAxis||"y",s=0;for(t=o[s];this[e]>=t.value;)t=o[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},a.prototype.hasNewShapeType=function(){var t=this;return(t.graphic&&(t.graphic.symbolName||t.graphic.element.nodeName))!==this.shapeType},a.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},a.prototype.isValid=function(){return this.x!==null&&u(this.y)},a.prototype.optionsToObject=function(t){var i,o=this.series,e=o.options.keys,s=e||o.pointArrayMap||["y"],n=s.length,l={},b=0,T=0;if(u(t)||t===null)l[s[0]]=t;else if(f(t))for(!e&&t.length>n&&((i=typeof t[0])=="string"?l.name=t[0]:i==="number"&&(l.x=t[0]),b++);T<n;)e&&t[b]===void 0||(s[T].indexOf(".")>0?a.prototype.setNestedProperty(l,t[b],s[T]):l[s[T]]=t[b]),b++,T++;else typeof t=="object"&&(l=t,t.dataLabels&&(o._hasPointLabels=!0),t.marker&&(o._hasPointMarkers=!0));return l},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis,l=e.yAxis,b=0,T=0;if(u(o)&&u(i))return t&&(b=n?n.pos:s.plotLeft,T=l?l.pos:s.plotTop),s.inverted&&n&&l?[l.len-i+T,n.len-o+b]:[o+b,i+T]},a.prototype.resolveColor=function(){var t,i,o,e=this.series,s=e.chart.options.chart,n=e.chart.styledMode,l=s.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(n||(t=(i=e.options.colors||e.chart.options.colors)[e.colorCounter],l=i.length),o=e.colorCounter,e.colorCounter++,e.colorCounter===l&&(e.colorCounter=0)):(n||(t=e.color),o=e.colorIndex),this.colorIndex=x(this.options.colorIndex,o),this.color=x(this.options.color,t)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,l){var b=l.length-1===n;return e[s]=b?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=x(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(l){l="{point."+l,(s||n)&&(t=t.replace(RegExp(l+"}","g"),s+l+"}"+n)),t=t.replace(RegExp(l+"}","g"),l+":,."+e+"f}")}),z(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){var s,n=this,l=n.series,b=n.graphic,T=l.chart,D=l.options;function d(){n.applyOptions(t);var C=b&&n.hasMockGraphic,A=n.y===null?!C:C;b&&A&&(n.graphic=b.destroy(),delete n.hasMockGraphic),v(t,!0)&&(b&&b.element&&t&&t.marker&&t.marker.symbol!==void 0&&(n.graphic=b.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),s=n.index,l.updateParallelArrays(n,s),D.data[s]=v(D.data[s],!0)||v(t,!0)?n.options:x(t,D.data[s]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(T.isDirtyBox=!0),D.legendType==="point"&&(T.isDirtyLegend=!0),i&&T.redraw(o)}i=x(i,!0),e===!1?d():n.firePointEvent("update",{options:t},d)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=e.chart;t=x(t,!o.selected),this.selectedStaging=t,o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||s.getSelectedPoints().forEach(function(n){var l=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,l.options.data[l.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.prototype.onMouseOver=function(t){var i=this,o=i.series.chart,e=o.pointer;t=t?e.normalize(t):e.getChartCoordinatesFromPoint(i,o.inverted),e.runPointActions(t,i)},a.prototype.onMouseOut=function(){var t=this,i=t.series.chart;t.firePointEvent("mouseOut"),t.series.options.inactiveOtherPoints||(i.hoverPoints||[]).forEach(function(o){o.setState()}),i.hoverPoints=i.hoverPoint=null},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=w(t.series.options.point,t.options).events;t.events=i,S(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e,s,n,l=this,b=l.series,T=l.state,D=b.options.states[t||"normal"]||{},d=U.plotOptions[b.type].marker&&b.options.marker,C=d&&d.enabled===!1,A=d&&d.states&&d.states[t||"normal"]||{},N=A.enabled===!1,_=l.marker||{},L=b.chart,O=d&&b.markerAttribs,j=b.halo,Y=b.stateMarkerGraphic;if(!((t=t||"")===l.state&&!i||l.selected&&t!=="select"||D.enabled===!1||t&&(N||C&&A.enabled===!1)||t&&_.states&&_.states[t]&&_.states[t].enabled===!1)){if(l.state=t,O&&(o=b.markerAttribs(l,t)),l.graphic&&!l.hasMockGraphic){if(T&&l.graphic.removeClass("highcharts-point-"+T),t&&l.graphic.addClass("highcharts-point-"+t),!L.styledMode){e=b.pointAttribs(l,t),s=x(L.options.chart.animation,D.animation);var X=e.opacity;b.options.inactiveOtherPoints&&u(X)&&((l.dataLabels||[]).forEach(function(J){J&&!J.hasClass("highcharts-data-label-hidden")&&J.animate({opacity:X},s)}),l.connector&&l.connector.animate({opacity:X},s)),l.graphic.animate(e,s)}o&&l.graphic.animate(o,x(L.options.chart.animation,A.animation,d.animation)),Y&&Y.hide()}else t&&A&&(n=_.symbol||b.symbol,Y&&Y.currentSymbol!==n&&(Y=Y.destroy()),o&&(Y?Y[i?"animate":"attr"]({x:o.x,y:o.y}):n&&(b.stateMarkerGraphic=Y=L.renderer.symbol(n,o.x,o.y,o.width,o.height).add(b.markerGroup),Y.currentSymbol=n)),!L.styledMode&&Y&&l.state!=="inactive"&&Y.attr(b.pointAttribs(l,t))),Y&&(Y[t&&l.isInside?"show":"hide"](),Y.element.point=l,Y.addClass(l.getClassName(),!0));var G=D.halo,q=l.graphic||Y,Q=q&&q.visibility||"inherit";G&&G.size&&q&&Q!=="hidden"&&!l.isCluster?(j||(b.halo=j=L.renderer.path().add(q.parentGroup)),j.show()[i?"animate":"attr"]({d:l.haloPath(G.size)}),j.attr({class:"highcharts-halo highcharts-color-"+x(l.colorIndex,b.colorIndex)+(l.className?" "+l.className:""),visibility:Q,zIndex:-1}),j.point=l,L.styledMode||j.attr(P({fill:l.color||b.color,"fill-opacity":G.opacity},W.filterUserAttributes(G.attributes||{})))):j&&j.point&&j.point.haloPath&&j.animate({d:j.point.haloPath(0)},null,j.hide),y(l,"afterSetState",{state:t})}},a.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},a}()}),it(B,"Core/Pointer.js",[B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Tooltip.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=R.charts,U=R.noop,z=V.addEvent,I=V.attr,E=V.css,M=V.defined,P=V.extend,y=V.find,h=V.fireEvent,f=V.isNumber,m=V.isObject,u=V.objectEach,v=V.offset,w=V.pick,S=V.splat;return function(){function x(p,g){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=p,this.hasDragged=!1,this.options=g,this.init(p,g)}return x.prototype.applyInactiveState=function(p){var g,r=[];(p||[]).forEach(function(a){g=a.series,r.push(g),g.linkedParent&&r.push(g.linkedParent),g.linkedSeries&&(r=r.concat(g.linkedSeries)),g.navigatorSeries&&r.push(g.navigatorSeries)}),this.chart.series.forEach(function(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},x.prototype.destroy=function(){var p=this;this.eventsToUnbind.forEach(function(g){return g()}),this.eventsToUnbind=[],R.chartCount||(x.unbindDocumentMouseUp&&(x.unbindDocumentMouseUp=x.unbindDocumentMouseUp()),x.unbindDocumentTouchEnd&&(x.unbindDocumentTouchEnd=x.unbindDocumentTouchEnd())),clearInterval(p.tooltipTimeout),u(p,function(g,r){p[r]=void 0})},x.prototype.getSelectionMarkerAttrs=function(p,g){var r=this,a={args:{chartX:p,chartY:g},attrs:{},shapeType:"rect"};return h(this,"getSelectionMarkerAttrs",a,function(t){var i,o=r,e=o.chart,s=o.mouseDownX,n=s===void 0?0:s,l=o.mouseDownY,b=l===void 0?0:l,T=o.zoomHor,D=o.zoomVert,d=t.attrs;d.x=e.plotLeft,d.y=e.plotTop,d.width=T?1:e.plotWidth,d.height=D?1:e.plotHeight,T&&(i=p-n,d.width=Math.abs(i),d.x=(i>0?0:i)+n),D&&(i=g-b,d.height=Math.abs(i),d.y=(i>0?0:i)+b)}),a},x.prototype.drag=function(p){var g,r=this.chart,a=r.options.chart,t=r.plotLeft,i=r.plotTop,o=r.plotWidth,e=r.plotHeight,s=this.mouseDownX||0,n=this.mouseDownY||0,l=m(a.panning)?a.panning&&a.panning.enabled:a.panning,b=a.panKey&&p[a.panKey+"Key"],T=p.chartX,D=p.chartY,d=this.selectionMarker;if((!d||!d.touch)&&(T<t?T=t:T>t+o&&(T=t+o),D<i?D=i:D>i+e&&(D=i+e),this.hasDragged=Math.sqrt(Math.pow(s-T,2)+Math.pow(n-D,2)),this.hasDragged>10)){g=r.isInsidePlot(s-t,n-i,{visiblePlotOnly:!0});var C=this.getSelectionMarkerAttrs(T,D),A=C.shapeType,N=C.attrs;(r.hasCartesianSeries||r.mapView)&&(this.zoomX||this.zoomY)&&g&&!b&&(d||(this.selectionMarker=d=r.renderer[A](),d.attr({class:"highcharts-selection-marker",zIndex:7}).add(),r.styledMode||d.attr({fill:a.selectionMarkerFill||$("#335cad").setOpacity(.25).get()}))),d&&d.attr(N),g&&!d&&l&&r.pan(p,a.panning)}},x.prototype.dragStart=function(p){var g=this.chart;g.mouseIsDown=p.type,g.cancelClick=!1,g.mouseDownX=this.mouseDownX=p.chartX,g.mouseDownY=this.mouseDownY=p.chartY},x.prototype.getSelectionBox=function(p){var g={args:{marker:p},result:{}};return h(this,"getSelectionBox",g,function(r){r.result={x:p.attr?+p.attr("x"):p.x,y:p.attr?+p.attr("y"):p.y,width:p.attr?p.attr("width"):p.width,height:p.attr?p.attr("height"):p.height}}),g.result},x.prototype.drop=function(p){var g=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:p,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},l=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&M(b.min)&&(a||g[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&f(i)&&f(o)&&f(e)&&f(s)){var T=b.horiz,D=p.type==="touchend"?b.minPixelPadding:0,d=b.toValue((T?i:o)+D),C=b.toValue((T?i+e:o+s)-D);n[b.coll].push({axis:b,min:Math.min(d,C),max:Math.max(d,C)}),l=!0}}),l&&h(r,"selection",n,function(b){r.zoom(P(b,a?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&f(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=this.hasDragged>10,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},x.prototype.findNearestKDPoint=function(p,g,r){var a;return p.forEach(function(t){var i,o,e,s,n,l=!(t.noSharedTooltip&&g)&&t.options.findNearestPointBy.indexOf("y")<0,b=t.searchPoint(r,l);m(b,!0)&&b.series&&(!m(a,!0)||(o=b,e=(i=a).distX-o.distX,s=i.dist-o.dist,n=(o.series.group&&o.series.group.zIndex)-(i.series.group&&i.series.group.zIndex),(e!==0&&g?e:s!==0?s:n!==0?n:i.series.index>o.series.index?-1:1)>0))&&(a=b)}),a},x.prototype.getChartCoordinatesFromPoint=function(p,g){var r=p.series,a=r.xAxis,t=r.yAxis,i=p.shapeArgs;if(a&&t){var o=w(p.clientX,p.plotX),e=p.plotY||0;return p.isNode&&i&&f(i.x)&&f(i.y)&&(o=i.x,e=i.y),g?{chartX:t.len+t.pos-e,chartY:a.len+a.pos-o}:{chartX:o+a.pos,chartY:e+t.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},x.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var p=this.chart.container,g=v(p);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};var r=p.offsetWidth,a=p.offsetHeight;return r>2&&a>2&&(this.chartPosition.scaleX=g.width/r,this.chartPosition.scaleY=g.height/a),this.chartPosition},x.prototype.getCoordinates=function(p){var g={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){g[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(p[r.horiz?"chartX":"chartY"])})}),g},x.prototype.getHoverData=function(p,g,r,a,t,i){var o,e=[],s=!(!a||!p),n=function(D){return D.visible&&!(!t&&D.directTouch)&&w(D.options.enableMouseTracking,!0)},l=g,b={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};h(this,"beforeGetHoverData",b),o=l&&!l.stickyTracking?[l]:r.filter(function(D){return D.stickyTracking&&(b.filter||n)(D)});var T=s||!i?p:this.findNearestKDPoint(o,t,i);return l=T&&T.series,T&&(t&&!l.noSharedTooltip?(o=r.filter(function(D){return b.filter?b.filter(D):n(D)&&!D.noSharedTooltip})).forEach(function(D){var d=y(D.points,function(C){return C.x===T.x&&!C.isNull});m(d)&&(D.boosted&&D.boost&&(d=D.boost.getPoint(d)),e.push(d))}):e.push(T)),h(this,"afterGetHoverData",b={hoverPoint:T}),{hoverPoint:b.hoverPoint,hoverSeries:l,hoverPoints:e}},x.prototype.getPointFromEvent=function(p){for(var g,r=p.target;r&&!g;)g=r.point,r=r.parentNode;return g},x.prototype.onTrackerMouseOut=function(p){var g=this.chart,r=p.relatedTarget||p.toElement,a=g.hoverSeries;this.isDirectTouch=!1,!a||!r||a.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+a.index)&&this.inClass(r,"highcharts-tracker")||a.onMouseOut()},x.prototype.inClass=function(p,g){for(var r,a=p;a;){if(r=I(a,"class")){if(r.indexOf(g)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}a=a.parentElement}},x.prototype.init=function(p,g){this.options=g,this.chart=p,this.runChartClick=!!(g.chart.events&&g.chart.events.click),this.pinchDown=[],this.lastValidTouch={},H&&(p.tooltip=new H(p,g.tooltip)),this.setDOMEvents()},x.prototype.normalize=function(p,g){var r=p.touches,a=r?r.length?r.item(0):w(r.changedTouches,p.changedTouches)[0]:p;g||(g=this.getChartPosition());var t=a.pageX-g.left,i=a.pageY-g.top;return t/=g.scaleX,i/=g.scaleY,P(p,{chartX:Math.round(t),chartY:Math.round(i)})},x.prototype.onContainerClick=function(p){var g=this.chart,r=g.hoverPoint,a=this.normalize(p),t=g.plotLeft,i=g.plotTop;g.cancelClick||(r&&this.inClass(a.target,"highcharts-tracker")?(h(r.series,"click",P(a,{point:r})),g.hoverPoint&&r.firePointEvent("click",a)):(P(a,this.getCoordinates(a)),g.isInsidePlot(a.chartX-t,a.chartY-i,{visiblePlotOnly:!0})&&h(g,"click",a)))},x.prototype.onContainerMouseDown=function(p){var g=!(1&~(p.buttons||p.button));p=this.normalize(p),R.isFirefox&&p.button!==0&&this.onContainerMouseMove(p),(p.button===void 0||g)&&(this.zoomOption(p),g&&p.preventDefault&&p.preventDefault(),this.dragStart(p))},x.prototype.onContainerMouseLeave=function(p){var g=Z[w(x.hoverChartIndex,-1)],r=this.chart.tooltip;p=this.normalize(p),g&&(p.relatedTarget||p.toElement)&&(g.pointer.reset(),g.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},x.prototype.onContainerMouseEnter=function(p){delete this.chartPosition},x.prototype.onContainerMouseMove=function(p){var g=this.chart,r=g.tooltip,a=this.normalize(p);this.setHoverChartIndex(),a.preventDefault||(a.returnValue=!1),(g.mouseIsDown==="mousedown"||this.touchSelect(a))&&this.drag(a),g.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))},x.prototype.onDocumentTouchEnd=function(p){var g=Z[w(x.hoverChartIndex,-1)];g&&g.pointer.drop(p)},x.prototype.onContainerTouchMove=function(p){this.touchSelect(p)?this.onContainerMouseMove(p):this.touch(p)},x.prototype.onContainerTouchStart=function(p){this.touchSelect(p)?this.onContainerMouseDown(p):(this.zoomOption(p),this.touch(p,!0))},x.prototype.onDocumentMouseMove=function(p){var g=this.chart,r=g.tooltip,a=this.chartPosition,t=this.normalize(p,a);!a||g.isInsidePlot(t.chartX-g.plotLeft,t.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},x.prototype.onDocumentMouseUp=function(p){var g=Z[w(x.hoverChartIndex,-1)];g&&g.pointer.drop(p)},x.prototype.pinch=function(p){var g=this,r=g.chart,a=g.pinchDown,t=p.touches||[],i=t.length,o=g.lastValidTouch,e=g.hasZoom,s={},n=i===1&&(g.inClass(p.target,"highcharts-tracker")&&r.runTrackerClick||g.runChartClick),l={},b=g.chart.tooltip,T=i===1&&w(b&&b.options.followTouchMove,!0),D=g.selectionMarker;i>1?g.initiated=!0:T&&(g.initiated=!1),e&&g.initiated&&!n&&p.cancelable!==!1&&p.preventDefault(),[].map.call(t,function(d){return g.normalize(d)}),p.type==="touchstart"?([].forEach.call(t,function(d,C){a[C]={chartX:d.chartX,chartY:d.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(d){if(d.zoomEnabled){var C=r.bounds[d.horiz?"h":"v"],A=d.minPixelPadding,N=d.toPixels(Math.min(w(d.options.min,d.dataMin),d.dataMin)),_=d.toPixels(Math.max(w(d.options.max,d.dataMax),d.dataMax)),L=Math.min(N,_),O=Math.max(N,_);C.min=Math.min(d.pos,L-A),C.max=Math.max(d.pos+d.len,O+A)}}),g.res=!0):T?this.runPointActions(g.normalize(p)):a.length&&(h(r,"touchpan",{originalEvent:p},function(){D||(g.selectionMarker=D=P({destroy:U,touch:!0},r.plotBox)),g.pinchTranslate(a,t,s,D,l,o),g.hasPinched=e,g.scaleGroups(s,l)}),g.res&&(g.res=!1,this.reset(!1,0)))},x.prototype.pinchTranslate=function(p,g,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,p,g,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,p,g,r,a,t,i)},x.prototype.pinchTranslateDirection=function(p,g,r,a,t,i,o,e){var s,n,l,b,T=this.chart,D=p?"x":"y",d=p?"X":"Y",C="chart"+d,A=p?"width":"height",N=T["plot"+(p?"Left":"Top")],_=T.inverted,L=T.bounds[p?"h":"v"],O=g.length===1,j=g[0][C],Y=!O&&g[1][C],X=function(){typeof Q=="number"&&Math.abs(j-Y)>20&&(G=e||Math.abs(q-Q)/Math.abs(j-Y)),l=(N-q)/G+j,s=T["plot"+(p?"Width":"Height")]/G},G=e||1,q=r[0][C],Q=!O&&r[1][C];X(),(n=l)<L.min?(n=L.min,b=!0):n+s>L.max&&(n=L.max-s,b=!0),b?(q-=.8*(q-o[D][0]),typeof Q=="number"&&(Q-=.8*(Q-o[D][1])),X()):o[D]=[q,Q],_||(i[D]=l-N,i[A]=s);var J=_?p?"scaleY":"scaleX":"scale"+d,rt=_?1/G:G;t[A]=s,t[D]=n,a[J]=G,a["translate"+d]=rt*N+(q-rt*j)},x.prototype.reset=function(p,g){var r=this,a=r.chart,t=a.hoverSeries,i=a.hoverPoint,o=a.hoverPoints,e=a.tooltip,s=e&&e.shared?o:i;p&&s&&S(s).forEach(function(n){n.series.isCartesian&&n.plotX===void 0&&(p=!1)}),p?e&&s&&S(s).length&&(e.refresh(s),e.shared&&o?o.forEach(function(n){n.setState(n.state,!0),n.series.isCartesian&&(n.series.xAxis.crosshair&&n.series.xAxis.drawCrosshair(null,n),n.series.yAxis.crosshair&&n.series.yAxis.drawCrosshair(null,n))}):i&&(i.setState(i.state,!0),a.axes.forEach(function(n){n.crosshair&&i.series[n.coll]===n&&n.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),o&&o.forEach(function(n){n.setState()}),t&&t.onMouseOut(),e&&e.hide(g),r.unDocMouseMove&&(r.unDocMouseMove=r.unDocMouseMove()),a.axes.forEach(function(n){n.hideCrosshair()}),r.hoverX=a.hoverPoints=a.hoverPoint=null)},x.prototype.runPointActions=function(p,g,r){var a=this,t=a.chart,i=t.series,o=t.tooltip&&t.tooltip.options.enabled?t.tooltip:void 0,e=!!o&&o.shared,s=g||t.hoverPoint,n=s&&s.series||t.hoverSeries,l=(!p||p.type!=="touchmove")&&(!!g||n&&n.directTouch&&a.isDirectTouch),b=this.getHoverData(s,n,i,l,e,p);s=b.hoverPoint,n=b.hoverSeries;var T=b.hoverPoints,D=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split,d=e&&n&&!n.noSharedTooltip;if(s&&(r||s!==t.hoverPoint||o&&o.isHidden)){if((t.hoverPoints||[]).forEach(function(A){T.indexOf(A)===-1&&A.setState()}),t.hoverSeries!==n&&n.onMouseOver(),a.applyInactiveState(T),(T||[]).forEach(function(A){A.setState("hover")}),t.hoverPoint&&t.hoverPoint.firePointEvent("mouseOut"),!s.series)return;t.hoverPoints=T,t.hoverPoint=s,s.firePointEvent("mouseOver",void 0,function(){o&&s&&o.refresh(d?T:s,p)})}else if(D&&o&&!o.isHidden){var C=o.getAnchor([{}],p);t.isInsidePlot(C[0],C[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:C[0],plotY:C[1]})}a.unDocMouseMove||(a.unDocMouseMove=z(t.container.ownerDocument,"mousemove",function(A){var N=Z[x.hoverChartIndex];N&&N.pointer.onDocumentMouseMove(A)}),a.eventsToUnbind.push(a.unDocMouseMove)),t.axes.forEach(function(A){var N,_=w((A.crosshair||{}).snap,!0);_&&((N=t.hoverPoint)&&N.series[A.coll]===A||(N=y(T,function(L){return L.series&&L.series[A.coll]===A}))),N||!_?A.drawCrosshair(p,N):A.hideCrosshair()})},x.prototype.scaleGroups=function(p,g){var r=this.chart;r.series.forEach(function(a){var t=p||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(g?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(g||r.clipBox)},x.prototype.setDOMEvents=function(){var p=this,g=this.chart.container,r=g.ownerDocument;g.onmousedown=this.onContainerMouseDown.bind(this),g.onmousemove=this.onContainerMouseMove.bind(this),g.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(z(g,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(z(g,"mouseleave",this.onContainerMouseLeave.bind(this))),x.unbindDocumentMouseUp||(x.unbindDocumentMouseUp=z(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(z(a,"scroll",function(){delete p.chartPosition})),a=a.parentElement;R.hasTouch&&(this.eventsToUnbind.push(z(g,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(g,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),x.unbindDocumentTouchEnd||(x.unbindDocumentTouchEnd=z(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},x.prototype.setHoverChartIndex=function(){var p=this.chart,g=R.charts[w(x.hoverChartIndex,-1)];g&&g!==p&&g.pointer.onContainerMouseLeave({relatedTarget:p.container}),g&&g.mouseIsDown||(x.hoverChartIndex=p.index)},x.prototype.touch=function(p,g){var r,a,t=this.chart;this.setHoverChartIndex(),p.touches.length===1?(p=this.normalize(p),t.isInsidePlot(p.chartX-t.plotLeft,p.chartY-t.plotTop,{visiblePlotOnly:!0})&&!t.openMenu?(g&&this.runPointActions(p),p.type==="touchmove"&&(r=!!(a=this.pinchDown)[0]&&Math.sqrt(Math.pow(a[0].chartX-p.chartX,2)+Math.pow(a[0].chartY-p.chartY,2))>=4),w(r,!0)&&this.pinch(p)):g&&this.reset()):p.touches.length===2&&this.pinch(p)},x.prototype.touchSelect=function(p){return!!(this.chart.options.chart.zooming.singleTouch&&p.touches&&p.touches.length===1)},x.prototype.zoomOption=function(p){var g,r,a=this.chart,t=a.options.chart,i=a.inverted,o=t.zooming.type||"";/touch/.test(p.type)&&(o=w(t.zooming.pinchType,o)),this.zoomX=g=/x/.test(o),this.zoomY=r=/y/.test(o),this.zoomHor=g&&!i||r&&i,this.zoomVert=r&&!i||g&&i,this.hasZoom=g||r},x}()}),it(B,"Core/MSPointer.js",[B["Core/Globals.js"],B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(w,S){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,p){x.__proto__=p}||function(x,p){for(var g in p)p.hasOwnProperty(g)&&(x[g]=p[g])},V(w,S)},function(w,S){function x(){this.constructor=w}V(w,S),w.prototype=S===null?Object.create(S):(x.prototype=S.prototype,new x)}),Z=W.charts,U=W.doc,z=W.noop,I=W.win,E=H.addEvent,M=H.css,P=H.objectEach,y=H.pick,h=H.removeEvent,f={},m=!!I.PointerEvent;function u(w,S,x,p){var g,r=Z[R.hoverChartIndex||NaN];if((w.pointerType==="touch"||w.pointerType===w.MSPOINTER_TYPE_TOUCH)&&r){var a=r.pointer;p(w),a[S]({type:x,target:w.currentTarget,preventDefault:z,touches:(g=[],g.item=function(t){return this[t]},P(f,function(t){g.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),g)})}}var v=function(w){function S(){return w!==null&&w.apply(this,arguments)||this}return $(S,w),S.isRequired=function(){return!(W.hasTouch||!I.PointerEvent&&!I.MSPointerEvent)},S.prototype.batchMSEvents=function(x){x(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),x(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),x(U,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},S.prototype.destroy=function(){this.batchMSEvents(h),w.prototype.destroy.call(this)},S.prototype.init=function(x,p){w.prototype.init.call(this,x,p),this.hasZoom&&M(x.container,{"-ms-touch-action":"none","touch-action":"none"})},S.prototype.onContainerPointerDown=function(x){u(x,"onContainerTouchStart","touchstart",function(p){f[p.pointerId]={pageX:p.pageX,pageY:p.pageY,target:p.currentTarget}})},S.prototype.onContainerPointerMove=function(x){u(x,"onContainerTouchMove","touchmove",function(p){f[p.pointerId]={pageX:p.pageX,pageY:p.pageY},f[p.pointerId].target||(f[p.pointerId].target=p.currentTarget)})},S.prototype.onDocumentPointerUp=function(x){u(x,"onDocumentTouchEnd","touchend",function(p){delete f[p.pointerId]})},S.prototype.setDOMEvents=function(){var x=this.chart.tooltip;w.prototype.setDOMEvents.call(this),(this.hasZoom||y(x&&x.options.followTouchMove,!0))&&this.batchMSEvents(E)},S}(R);return v}),it(B,"Core/Legend/Legend.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Series/Point.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.animObject,z=W.setAnimation,I=R.format,E=H.marginNames,M=$.distribute,P=Z.addEvent,y=Z.createElement,h=Z.css,f=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,w=Z.isNumber,S=Z.merge,x=Z.pick,p=Z.relativeLength,g=Z.stableSort,r=Z.syncTimeout;return function(){function a(t,i){this.allItems=[],this.box=void 0,this.contentGroup=void 0,this.display=!1,this.group=void 0,this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.init(t,i)}return a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=S(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(S(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,x(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line,l=o.symbol;if(e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var b=this.options,T=this.itemHiddenStyle.color,D=i?b.itemStyle.color:T,d=i&&t.color||T,C=t.options&&t.options.marker,A={fill:d};s&&s.css({fill:D,color:D}),n&&n.attr({stroke:d}),l&&(C&&l.isMarker&&(A=t.pointAttribs(),i||(A.stroke=A.fill=T)),l.attr(A))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x,n=s===void 0?0:s,l=o.y,b=l===void 0?0:l,T=this.options,D=T.symbolPadding,d=!T.rtl,C=t.checkbox;if(e&&e.element){var A={translateX:d?n:this.legendWidth-n-2*D-4,translateY:b};e[f(e.translateY)?"animate":"attr"](A,void 0,function(){v(i,"afterPositionItem",{item:t})})}C&&(C.x=n,C.y=b)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&m(i),t.legendItem=void 0},a.prototype.destroy=function(){for(var t=this,i=0,o=this.getAllItems();i<o.length;i++){var e=o[i];this.destroyItem(e)}for(var s=0,n=["clipRect","up","down","pager","nav","box","title","group"];s<n.length;s++){var l=n[s];t[l]&&(t[l]=t[l].destroy())}this.display=null},a.prototype.positionCheckboxes=function(){var t,i=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,e=this.titleHeight;i&&(t=i.translateY,this.allItems.forEach(function(s){var n,l=s.checkbox;l&&(n=t+e+l.y+(this.scrollOffset||0)+3,h(l,{left:i.translateX+s.checkboxOffset+l.x-20+"px",top:n+"px",display:this.proximate||n>t-6&&n<t+o-6?"":"none"}))},this))},a.prototype.renderTitle=function(){var t,i=this.options,o=this.padding,e=i.title,s=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,o-3,o-4,void 0,void 0,void 0,i.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},a.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},a.prototype.renderItem=function(t){var i=this,o=t.legendItem=t.legendItem||{},e=i.chart,s=e.renderer,n=i.options,l=n.layout==="horizontal",b=i.symbolWidth,T=n.symbolPadding||0,D=i.itemStyle,d=i.itemHiddenStyle,C=l?x(n.itemDistance,20):0,A=!n.rtl,N=!t.series,_=!N&&t.series.drawLegendSymbol?t.series:t,L=_.options,O=i.createCheckboxForItem&&L&&L.showCheckbox,j=n.useHTML,Y=t.options.className,X=o.label,G=b+T+C+(O?20:0);X||(o.group=s.g("legend-item").addClass("highcharts-"+_.type+"-series highcharts-color-"+t.colorIndex+(Y?" "+Y:"")+(N?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(i.scrollGroup),o.label=X=s.text("",A?b+T:-T,i.baseline||0,j),e.styledMode||X.css(S(t.visible?D:d)),X.attr({align:A?"left":"right",zIndex:2}).add(o.group),i.baseline||(i.fontMetrics=s.fontMetrics(e.styledMode?12:D.fontSize,X),i.baseline=i.fontMetrics.f+3+i.itemMarginTop,X.attr("y",i.baseline),i.symbolHeight=n.symbolHeight||i.fontMetrics.f,n.squareSymbol&&(i.symbolWidth=x(n.symbolWidth,Math.max(i.symbolHeight,16)),G=i.symbolWidth+T+C+(O?20:0),A&&X.attr("x",i.symbolWidth+T))),_.drawLegendSymbol(i,t),i.setItemEvents&&i.setItemEvents(t,X,j)),O&&!t.checkbox&&i.createCheckboxForItem&&i.createCheckboxForItem(t),i.colorizeItem(t,t.visible),!e.styledMode&&D.width||X.css({width:(n.itemWidth||i.widthOption||e.spacingBox.width)-G+"px"}),i.setText(t);var q=X.getBBox(),Q=i.fontMetrics&&i.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=n.itemWidth||o.labelWidth||q.width+G,i.maxItemWidth=Math.max(i.maxItemWidth,t.itemWidth),i.totalItemWidth+=t.itemWidth,i.itemHeight=t.itemHeight=Math.round(o.labelHeight||(q.height>1.5*Q?q.height:Q))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,l=this.itemMarginTop,b=e?x(i.itemDistance,20):0,T=this.maxLegendWidth,D=i.alignColumns&&this.totalItemWidth>T?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};e&&this.itemX-o+D>T&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=l+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,e?this.itemX+=D:(this.itemY+=l+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):D)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&x(o.showInLegend,!f(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,l){n.test(s)&&!f(t[l])&&(o[E[l]]=Math.max(o[E[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+x(e.margin,12)+i[l]+(o.titleOffset[l]||0)))})},a.prototype.proximatePositions=function(){var t,i=this.chart,o=[],e=this.options.align==="left";this.allItems.forEach(function(b){var T,D,d,C,A=e;b.yAxis&&(b.xAxis.options.reversed&&(A=!A),b.points&&(T=u(A?b.points:b.points.slice(0).reverse(),function(N){return w(N.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom,C=b.yAxis.top-i.plotTop,b.visible?(d=T?T.plotY:b.yAxis.height,d+=C-.3*D):d=C+b.yAxis.height,o.push({target:d,size:D,item:b}))},this);for(var s=0,n=M(o,i.plotHeight);s<n.length;s++){var l=n[s];t=l.item.legendItem||{},w(l.pos)&&(t.y=i.plotTop-i.spacing[0]+l.pos)}},a.prototype.render=function(){var t,i,o,e,s=this,n=s.chart,l=n.renderer,b=s.options,T=s.padding,D=s.getAllItems(),d=s.group,C=s.box;s.itemX=T,s.itemY=s.initialItemY,s.offsetWidth=0,s.lastItemY=0,s.widthOption=p(b.width,n.spacingBox.width-T),e=n.spacingBox.width-2*T-b.x,["rm","lm"].indexOf(s.getAlignment().substring(0,2))>-1&&(e/=2),s.maxLegendWidth=s.widthOption||e,d||(s.group=d=l.g("legend").addClass(b.className||"").attr({zIndex:7}).add(),s.contentGroup=l.g().attr({zIndex:1}).add(d),s.scrollGroup=l.g().add(s.contentGroup)),s.renderTitle(),g(D,function(A,N){return(A.options&&A.options.legendIndex||0)-(N.options&&N.options.legendIndex||0)}),b.reversed&&D.reverse(),s.allItems=D,s.display=t=!!D.length,s.lastLineHeight=0,s.maxItemWidth=0,s.totalItemWidth=0,s.itemHeight=0,D.forEach(s.renderItem,s),D.forEach(s.layoutItem,s),i=(s.widthOption||s.offsetWidth)+T,o=s.lastItemY+s.lastLineHeight+s.titleHeight,o=s.handleOverflow(o),o+=T,C||(s.box=C=l.rect().addClass("highcharts-legend-box").attr({r:b.borderRadius}).add(d)),n.styledMode||C.attr({stroke:b.borderColor,"stroke-width":b.borderWidth||0,fill:b.backgroundColor||"none"}).shadow(b.shadow),i>0&&o>0&&C[C.placed?"animate":"attr"](C.crisp.call({},{x:0,y:0,width:i,height:o},C.strokeWidth())),d[t?"show":"hide"](),n.styledMode&&d.getStyle("display")==="none"&&(i=o=0),s.legendWidth=i,s.legendHeight=o,t&&s.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&i.titleOffset[0]>0?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&i.titleOffset[2]>0&&(e-=i.titleOffset[2]),e!==t.y&&(t=S(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(S(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,l=n.renderer,b=this.options,T=b.y,D=b.verticalAlign==="top",d=this.padding,C=b.maxHeight,A=b.navigation,N=x(A.animation,!0),_=A.arrowSize||12,L=this.pages,O=this.allItems,j=function(Q){typeof Q=="number"?q.attr({height:Q}):q&&(s.clipRect=q.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=Q?"rect("+d+"px,9999px,"+(d+Q)+"px,0)":"auto")},Y=function(Q){return s[Q]=l.circle(0,0,1.3*_).translate(_/2,_/2).add(G),n.styledMode||s[Q].attr("fill","rgba(0,0,0,0.0001)"),s[Q]},X=n.spacingBox.height+(D?-T:T)-d,G=this.nav,q=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(X/=2),C&&(X=Math.min(X,C)),L.length=0,t&&X>0&&t>X&&A.enabled!==!1?(this.clipHeight=i=Math.max(X-20-this.titleHeight-d,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,O.forEach(function(Q,J){var rt=(e=Q.legendItem||{}).y||0,lt=Math.round(e.label.getBBox().height),gt=L.length;(!gt||rt-L[gt-1]>i&&(o||rt)!==L[gt-1])&&(L.push(o||rt),gt++),e.pageIx=gt-1,o&&((O[J-1].legendItem||{}).pageIx=gt-1),J===O.length-1&&rt+lt-L[gt-1]>i&&lt<=i&&(L.push(rt),e.pageIx=gt),rt!==o&&(o=rt)}),q||(q=s.clipRect=l.clipRect(0,d,9999,0),s.contentGroup.clip(q)),j(i),G||(this.nav=G=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,_,_).add(G),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&A.style&&this.pager.css(A.style),this.pager.add(G),this.down=l.symbol("triangle-down",0,0,_,_).add(G),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=X):G&&(j(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,l=this.clipHeight,b=this.options.navigation,T=this.pager,D=this.padding,d=this.currentPage+t;if(d>n&&(d=n),d>0){i!==void 0&&z(i,e),this.nav.attr({translateX:D,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(A){A.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),T.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(A){A.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:d===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes();var C=U(x(i,e.renderer.globalAnimation,!0));r(function(){v(o,"afterScroll",{currentPage:d})},C.duration)}},a.prototype.setItemEvents=function(t,i,o){for(var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,l=t instanceof V,b="highcharts-legend-"+(l?"point":"series")+"-active",T=e.chart.styledMode,D=o?[i,s.symbol]:[s.group],d=function(_){e.allItems.forEach(function(L){t!==L&&[L].concat(L.linkedSeries||[]).forEach(function(O){O.setState(_,!l)})})},C=0,A=D;C<A.length;C++){var N=A[C];N&&N.on("mouseover",function(){t.visible&&d("inactive"),t.setState("hover"),t.visible&&n.addClass(b),T||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(S(t.visible?e.itemStyle:e.itemHiddenStyle)),d(""),n.removeClass(b),t.setState()}).on("click",function(_){var L="legendItemClick",O=function(){t.setVisible&&t.setVisible(),d(t.visible?"inactive":"")};n.removeClass(b),_={browserEvent:_},t.firePointEvent?t.firePointEvent(L,_,O):v(t,L,_,O)})}},a.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){var o=i.target;v(t.series||t,"checkboxClick",{checked:o.checked,item:t},function(){t.select()})})},a}()}),it(B,"Core/Series/SeriesRegistry.js",[B["Core/Globals.js"],B["Core/Defaults.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=V.extendClass,z=V.merge;return function(I){function E(M,P){var y=Z.plotOptions||{},h=P.defaultOptions,f=P.prototype;f.type=M,f.pointClass||(f.pointClass=H),h&&(y[M]=h),I.seriesTypes[M]=P}I.seriesTypes=W.seriesTypes,I.registerSeriesType=E,I.seriesType=function(M,P,y,h,f){var m=Z.plotOptions||{};return P=P||"",m[M]=z(m[P],y),E(M,U(I.seriesTypes[P]||function(){},h)),I.seriesTypes[M].prototype.type=M,f&&(I.seriesTypes[M].prototype.pointClass=U(H,f)),I.seriesTypes[M]}}($||($={})),$}),it(B,"Core/Chart/Chart.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/FormatUtilities.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Legend/Legend.js"],B["Core/MSPointer.js"],B["Core/Pointer.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Time.js"],B["Core/Utilities.js"],B["Core/Renderer/HTML/AST.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f){var m=W.animate,u=W.animObject,v=W.setAnimation,w=H.defaultOptions,S=H.defaultTime,x=V.numberFormat,p=$.registerEventOptions,g=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=M.seriesTypes,e=h.addEvent,s=h.attr,n=h.cleanRecursively,l=h.createElement,b=h.css,T=h.defined,D=h.discardElement,d=h.erase,C=h.error,A=h.extend,N=h.find,_=h.fireEvent,L=h.getStyle,O=h.isArray,j=h.isNumber,Y=h.isObject,X=h.isString,G=h.merge,q=h.objectEach,Q=h.pick,J=h.pInt,rt=h.relativeLength,lt=h.removeEvent,gt=h.splat,mt=h.syncTimeout,bt=h.uniqueKey,yt=function(){function ht(et,at,dt){this.axes=void 0,this.axisOffset=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.legend=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.getArgs(et,at,dt)}return ht.chart=function(et,at,dt){return new ht(et,at,dt)},ht.prototype.getArgs=function(et,at,dt){X(et)||et.nodeName?(this.renderTo=et,this.init(at,dt)):this.init(et,at)},ht.prototype.init=function(et,at){var dt=et.plotOptions||{};_(this,"init",{args:arguments},function(){var vt=G(w,et),Ct=vt.chart;q(vt.plotOptions,function(Mt,St){Y(Mt)&&(Mt.tooltip=dt[St]&&G(dt[St].tooltip)||void 0)}),vt.tooltip.userOptions=et.chart&&et.chart.forExport&&et.tooltip.userOptions||et.tooltip,this.userOptions=et,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=at,this.isResizing=0;var xt=Ct.zooming=Ct.zooming||{};et.chart&&!et.chart.zooming&&(xt.resetButton=Ct.resetZoomButton),xt.key=Q(xt.key,Ct.zoomKey),xt.pinchType=Q(xt.pinchType,Ct.pinchType),xt.singleTouch=Q(xt.singleTouch,Ct.zoomBySingleTouch),xt.type=Q(xt.type,Ct.zoomType),this.options=vt,this.axes=[],this.series=[],this.time=et.time&&Object.keys(et.time).length?new y(et.time):Z.time,this.numberFormatter=Ct.numberFormatter||x,this.styledMode=Ct.styledMode,this.hasCartesianSeries=Ct.showAxes;var wt=this;wt.index=g.length,g.push(wt),Z.chartCount++,p(this,Ct),wt.xAxis=[],wt.yAxis=[],wt.pointCount=wt.colorCounter=wt.symbolCounter=0,_(wt,"afterInit"),wt.firstRender()})},ht.prototype.initSeries=function(et){var at=this,dt=at.options.chart,vt=et.type||dt.type||dt.defaultSeriesType,Ct=o[vt];Ct||C(17,!0,at,{missingModuleFor:vt});var xt=new Ct;return typeof xt.init=="function"&&xt.init(at,et),xt},ht.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(et){et.points||et.data||!et.enabledDataSorting||et.setData(et.options.data,!1)})},ht.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(et,at){return et.linkedSeries.length||at.linkedSeries.length?at.linkedSeries.length-et.linkedSeries.length:0})},ht.prototype.orderSeries=function(et){for(var at=this.series,dt=et||0,vt=at.length;dt<vt;++dt)at[dt]&&(at[dt].index=dt,at[dt].name=at[dt].getName())},ht.prototype.isInsidePlot=function(et,at,dt){var vt;dt===void 0&&(dt={});var Ct=this,xt=Ct.inverted,wt=Ct.plotBox,Mt=Ct.plotLeft,St=Ct.plotTop,kt=Ct.scrollablePlotBox,Lt=0,Pt=0;dt.visiblePlotOnly&&this.scrollingContainer&&(Lt=(vt=this.scrollingContainer).scrollLeft,Pt=vt.scrollTop);var Dt=dt.series,jt=dt.visiblePlotOnly&&kt||wt,Ot=dt.inverted?at:et,It=dt.inverted?et:at,Nt={x:Ot,y:It,isInsidePlot:!0,options:dt};if(!dt.ignoreX){var Zt=Dt&&(xt&&!this.polar?Dt.yAxis:Dt.xAxis)||{pos:Mt,len:1/0},zt=dt.paneCoordinates?Zt.pos+Ot:Mt+Ot;zt>=Math.max(Lt+Mt,Zt.pos)&&zt<=Math.min(Lt+Mt+jt.width,Zt.pos+Zt.len)||(Nt.isInsidePlot=!1)}if(!dt.ignoreY&&Nt.isInsidePlot){var Ht=dt.axis&&!dt.axis.isXAxis&&dt.axis||Dt&&(xt?Dt.xAxis:Dt.yAxis)||{pos:St,len:1/0},Kt=dt.paneCoordinates?Ht.pos+It:St+It;Kt>=Math.max(Pt+St,Ht.pos)&&Kt<=Math.min(Pt+St+jt.height,Ht.pos+Ht.len)||(Nt.isInsidePlot=!1)}return _(this,"afterIsInsidePlot",Nt),Nt.isInsidePlot},ht.prototype.redraw=function(et){_(this,"beforeRedraw");var at,dt,vt,Ct,xt=this,wt=xt.hasCartesianSeries?xt.axes:xt.colorAxis||[],Mt=xt.series,St=xt.pointer,kt=xt.legend,Lt=xt.userOptions.legend,Pt=xt.renderer,Dt=Pt.isHidden(),jt=[],Ot=xt.isDirtyBox,It=xt.isDirtyLegend;for(xt.setResponsive&&xt.setResponsive(!1),v(!!xt.hasRendered&&et,xt),Dt&&xt.temporaryDisplay(),xt.layOutTitles(),vt=Mt.length;vt--;)if(((Ct=Mt[vt]).options.stacking||Ct.options.centerInCategory)&&(dt=!0,Ct.isDirty)){at=!0;break}if(at)for(vt=Mt.length;vt--;)(Ct=Mt[vt]).options.stacking&&(Ct.isDirty=!0);Mt.forEach(function(Nt){Nt.isDirty&&(Nt.options.legendType==="point"?(typeof Nt.updateTotals=="function"&&Nt.updateTotals(),It=!0):Lt&&(Lt.labelFormatter||Lt.labelFormat)&&(It=!0)),Nt.isDirtyData&&_(Nt,"updatedData")}),It&&kt&&kt.options.enabled&&(kt.render(),xt.isDirtyLegend=!1),dt&&xt.getStacks(),wt.forEach(function(Nt){Nt.updateNames(),Nt.setScale()}),xt.getMargins(),wt.forEach(function(Nt){Nt.isDirty&&(Ot=!0)}),wt.forEach(function(Nt){var Zt=Nt.min+","+Nt.max;Nt.extKey!==Zt&&(Nt.extKey=Zt,jt.push(function(){_(Nt,"afterSetExtremes",A(Nt.eventArgs,Nt.getExtremes())),delete Nt.eventArgs})),(Ot||dt)&&Nt.redraw()}),Ot&&xt.drawChartBox(),_(xt,"predraw"),Mt.forEach(function(Nt){(Ot||Nt.isDirty)&&Nt.visible&&Nt.redraw(),Nt.isDirtyData=!1}),St&&St.reset(!0),Pt.draw(),_(xt,"redraw"),_(xt,"render"),Dt&&xt.temporaryDisplay(!0),jt.forEach(function(Nt){Nt.call()})},ht.prototype.get=function(et){var at=this.series;function dt(xt){return xt.id===et||xt.options&&xt.options.id===et}for(var vt=N(this.axes,dt)||N(this.series,dt),Ct=0;!vt&&Ct<at.length;Ct++)vt=N(at[Ct].points||[],dt);return vt},ht.prototype.getAxes=function(){var et=this,at=this.options,dt=at.xAxis=gt(at.xAxis||{}),vt=at.yAxis=gt(at.yAxis||{});_(this,"getAxes"),dt.forEach(function(Ct,xt){Ct.index=xt,Ct.isX=!0}),vt.forEach(function(Ct,xt){Ct.index=xt}),dt.concat(vt).forEach(function(Ct){new R(et,Ct)}),_(this,"afterGetAxes")},ht.prototype.getSelectedPoints=function(){return this.series.reduce(function(et,at){return at.getPointsCollection().forEach(function(dt){Q(dt.selectedStaging,dt.selected)&&et.push(dt)}),et},[])},ht.prototype.getSelectedSeries=function(){return this.series.filter(function(et){return et.selected})},ht.prototype.setTitle=function(et,at,dt){this.applyDescription("title",et),this.applyDescription("subtitle",at),this.applyDescription("caption",void 0),this.layOutTitles(dt)},ht.prototype.applyDescription=function(et,at){var dt=this,vt=et==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},Ct=this.options[et]=G(!this.styledMode&&{style:vt},this.options[et],at),xt=this[et];xt&&at&&(this[et]=xt=xt.destroy()),Ct&&!xt&&((xt=this.renderer.text(Ct.text,0,0,Ct.useHTML).attr({align:Ct.align,class:"highcharts-"+et,zIndex:Ct.zIndex||4}).add()).update=function(wt){dt[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[et]](wt)},this.styledMode||xt.css(Ct.style),this[et]=xt)},ht.prototype.layOutTitles=function(et){var at=[0,0,0],dt=this.renderer,vt=this.spacingBox;["title","subtitle","caption"].forEach(function(xt){var wt,Mt,St=this[xt],kt=this.options[xt],Lt=kt.verticalAlign||"top",Pt=xt==="title"?Lt==="top"?-3:0:Lt==="top"?at[0]+2:0;St&&(this.styledMode||(wt=kt.style&&kt.style.fontSize),wt=dt.fontMetrics(wt,St).b,St.css({width:(kt.width||vt.width+(kt.widthAdjust||0))+"px"}),Mt=Math.round(St.getBBox(kt.useHTML).height),St.align(A({y:Lt==="bottom"?wt:Pt+wt,height:Mt},kt),!1,"spacingBox"),kt.floating||(Lt==="top"?at[0]=Math.ceil(at[0]+Mt):Lt==="bottom"&&(at[2]=Math.ceil(at[2]+Mt))))},this),at[0]&&(this.options.title.verticalAlign||"top")==="top"&&(at[0]+=this.options.title.margin),at[2]&&this.options.caption.verticalAlign==="bottom"&&(at[2]+=this.options.caption.margin);var Ct=!this.titleOffset||this.titleOffset.join(",")!==at.join(",");this.titleOffset=at,_(this,"afterLayOutTitles"),!this.isDirtyBox&&Ct&&(this.isDirtyBox=this.isDirtyLegend=Ct,this.hasRendered&&Q(et,!0)&&this.isDirtyBox&&this.redraw())},ht.prototype.getChartSize=function(){var et=this,at=et.options.chart,dt=at.width,vt=at.height,Ct=et.renderTo;T(dt)||(et.containerWidth=L(Ct,"width")),T(vt)||(et.containerHeight=L(Ct,"height")),et.chartWidth=Math.max(0,dt||et.containerWidth||600),et.chartHeight=Math.max(0,rt(vt,et.chartWidth)||(et.containerHeight>1?et.containerHeight:400))},ht.prototype.temporaryDisplay=function(et){var at,dt=this.renderTo;if(et)for(;dt&&dt.style;)dt.hcOrigStyle&&(b(dt,dt.hcOrigStyle),delete dt.hcOrigStyle),dt.hcOrigDetached&&(r.body.removeChild(dt),dt.hcOrigDetached=!1),dt=dt.parentNode;else for(;dt&&dt.style&&(r.body.contains(dt)||dt.parentNode||(dt.hcOrigDetached=!0,r.body.appendChild(dt)),(L(dt,"display",!1)==="none"||dt.hcOricDetached)&&(dt.hcOrigStyle={display:dt.style.display,height:dt.style.height,overflow:dt.style.overflow},at={display:"block",overflow:"hidden"},dt!==this.renderTo&&(at.height=0),b(dt,at),dt.offsetWidth||dt.style.setProperty("display","block","important")),(dt=dt.parentNode)!==r.body););},ht.prototype.setClassName=function(et){this.container.className="highcharts-container "+(et||"")},ht.prototype.getContainer=function(){var et,at=this,dt=at.options,vt=dt.chart,Ct="data-highcharts-chart",xt=bt(),wt=at.renderTo;wt||(at.renderTo=wt=vt.renderTo),X(wt)&&(at.renderTo=wt=r.getElementById(wt)),wt||C(13,!0,at);var Mt=J(s(wt,Ct));j(Mt)&&g[Mt]&&g[Mt].hasRendered&&g[Mt].destroy(),s(wt,Ct,at.index),wt.innerHTML=f.emptyHTML,vt.skipClone||wt.offsetWidth||at.temporaryDisplay(),at.getChartSize();var St=at.chartWidth,kt=at.chartHeight;b(wt,{overflow:"hidden"}),at.styledMode||(et=A({position:"relative",overflow:"hidden",width:St+"px",height:kt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},vt.style||{}));var Lt=l("div",{id:xt},et,wt);at.container=Lt,at._cursor=Lt.style.cursor;var Pt=vt.renderer||!t?E.getRendererType(vt.renderer):P;if(at.renderer=new Pt(Lt,St,kt,void 0,vt.forExport,dt.exporting&&dt.exporting.allowHTML,at.styledMode),v(void 0,at),at.setClassName(vt.className),at.styledMode)for(var Dt in dt.defs)this.renderer.definition(dt.defs[Dt]);else at.renderer.setStyle(vt.style);at.renderer.chartIndex=at.index,_(this,"afterGetContainer")},ht.prototype.getMargins=function(et){var at=this,dt=at.spacing,vt=at.margin,Ct=at.titleOffset;this.resetMargins(),Ct[0]&&!T(vt[0])&&(this.plotTop=Math.max(this.plotTop,Ct[0]+dt[0])),Ct[2]&&!T(vt[2])&&(this.marginBottom=Math.max(this.marginBottom,Ct[2]+dt[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(vt,dt),_(this,"getMargins"),et||this.getAxisMargins()},ht.prototype.getAxisMargins=function(){var et=this,at=et.axisOffset=[0,0,0,0],dt=et.colorAxis,vt=et.margin,Ct=function(xt){xt.forEach(function(wt){wt.visible&&wt.getOffset()})};et.hasCartesianSeries?Ct(et.axes):dt&&dt.length&&Ct(dt),a.forEach(function(xt,wt){T(vt[wt])||(et[xt]+=at[wt])}),et.setChartSize()},ht.prototype.reflow=function(et){var at=this,dt=at.options.chart,vt=at.renderTo,Ct=T(dt.width)&&T(dt.height),xt=dt.width||L(vt,"width"),wt=dt.height||L(vt,"height"),Mt=et?et.target:i;delete at.pointer.chartPosition,Ct||at.isPrinting||!xt||!wt||Mt!==i&&Mt!==r||(xt===at.containerWidth&&wt===at.containerHeight||(h.clearTimeout(at.reflowTimeout),at.reflowTimeout=mt(function(){at.container&&at.setSize(void 0,void 0,!1)},et?100:0)),at.containerWidth=xt,at.containerHeight=wt)},ht.prototype.setReflow=function(et){var at=this;et===!1||this.unbindReflow?et===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(dt){at.options&&at.reflow(dt)}),e(this,"destroy",this.unbindReflow))},ht.prototype.setSize=function(et,at,dt){var vt=this,Ct=vt.renderer;vt.isResizing+=1,v(dt,vt);var xt=Ct.globalAnimation;vt.oldChartHeight=vt.chartHeight,vt.oldChartWidth=vt.chartWidth,et!==void 0&&(vt.options.chart.width=et),at!==void 0&&(vt.options.chart.height=at),vt.getChartSize(),vt.styledMode||(xt?m:b)(vt.container,{width:vt.chartWidth+"px",height:vt.chartHeight+"px"},xt),vt.setChartSize(!0),Ct.setSize(vt.chartWidth,vt.chartHeight,xt),vt.axes.forEach(function(wt){wt.isDirty=!0,wt.setScale()}),vt.isDirtyLegend=!0,vt.isDirtyBox=!0,vt.layOutTitles(),vt.getMargins(),vt.redraw(xt),vt.oldChartHeight=null,_(vt,"resize"),mt(function(){vt&&_(vt,"endResize",null,function(){vt.isResizing-=1})},u(xt).duration)},ht.prototype.setChartSize=function(et){var at,dt,vt,Ct,xt=this,wt=xt.inverted,Mt=xt.renderer,St=xt.chartWidth,kt=xt.chartHeight,Lt=xt.options.chart,Pt=xt.spacing,Dt=xt.clipOffset;xt.plotLeft=at=Math.round(xt.plotLeft),xt.plotTop=dt=Math.round(xt.plotTop),xt.plotWidth=vt=Math.max(0,Math.round(St-at-xt.marginRight)),xt.plotHeight=Ct=Math.max(0,Math.round(kt-dt-xt.marginBottom)),xt.plotSizeX=wt?Ct:vt,xt.plotSizeY=wt?vt:Ct,xt.plotBorderWidth=Lt.plotBorderWidth||0,xt.spacingBox=Mt.spacingBox={x:Pt[3],y:Pt[0],width:St-Pt[3]-Pt[1],height:kt-Pt[0]-Pt[2]},xt.plotBox=Mt.plotBox={x:at,y:dt,width:vt,height:Ct};var jt=2*Math.floor(xt.plotBorderWidth/2),Ot=Math.ceil(Math.max(jt,Dt[3])/2),It=Math.ceil(Math.max(jt,Dt[0])/2);xt.clipBox={x:Ot,y:It,width:Math.floor(xt.plotSizeX-Math.max(jt,Dt[1])/2-Ot),height:Math.max(0,Math.floor(xt.plotSizeY-Math.max(jt,Dt[2])/2-It))},et||(xt.axes.forEach(function(Nt){Nt.setAxisSize(),Nt.setAxisTranslation()}),Mt.alignElements()),_(xt,"afterSetChartSize",{skipAxes:et})},ht.prototype.resetMargins=function(){_(this,"resetMargins");var et=this,at=et.options.chart;["margin","spacing"].forEach(function(dt){var vt=at[dt],Ct=Y(vt)?vt:[vt,vt,vt,vt];["Top","Right","Bottom","Left"].forEach(function(xt,wt){et[dt][wt]=Q(at[dt+xt],Ct[wt])})}),a.forEach(function(dt,vt){et[dt]=Q(et.margin[vt],et.spacing[vt])}),et.axisOffset=[0,0,0,0],et.clipOffset=[0,0,0,0]},ht.prototype.drawChartBox=function(){var et,at,dt,vt=this,Ct=vt.options.chart,xt=vt.renderer,wt=vt.chartWidth,Mt=vt.chartHeight,St=vt.styledMode,kt=vt.plotBGImage,Lt=Ct.backgroundColor,Pt=Ct.plotBackgroundColor,Dt=Ct.plotBackgroundImage,jt=vt.plotLeft,Ot=vt.plotTop,It=vt.plotWidth,Nt=vt.plotHeight,Zt=vt.plotBox,zt=vt.clipRect,Ht=vt.clipBox,Kt=vt.chartBackground,me=vt.plotBackground,Ut=vt.plotBorder,te="animate";Kt||(vt.chartBackground=Kt=xt.rect().addClass("highcharts-background").add(),te="attr"),St?et=at=Kt.strokeWidth():(at=(et=Ct.borderWidth||0)+(Ct.shadow?8:0),dt={fill:Lt||"none"},(et||Kt["stroke-width"])&&(dt.stroke=Ct.borderColor,dt["stroke-width"]=et),Kt.attr(dt).shadow(Ct.shadow)),Kt[te]({x:at/2,y:at/2,width:wt-at-et%2,height:Mt-at-et%2,r:Ct.borderRadius}),te="animate",me||(te="attr",vt.plotBackground=me=xt.rect().addClass("highcharts-plot-background").add()),me[te](Zt),St||(me.attr({fill:Pt||"none"}).shadow(Ct.plotShadow),Dt&&(kt?(Dt!==kt.attr("href")&&kt.attr("href",Dt),kt.animate(Zt)):vt.plotBGImage=xt.image(Dt,jt,Ot,It,Nt).add())),zt?zt.animate({width:Ht.width,height:Ht.height}):vt.clipRect=xt.clipRect(Ht),te="animate",Ut||(te="attr",vt.plotBorder=Ut=xt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),St||Ut.attr({stroke:Ct.plotBorderColor,"stroke-width":Ct.plotBorderWidth||0,fill:"none"}),Ut[te](Ut.crisp({x:jt,y:Ot,width:It,height:Nt},-Ut.strokeWidth())),vt.isDirtyBox=!1,_(this,"afterDrawChartBox")},ht.prototype.propFromSeries=function(){var et,at,dt,vt=this,Ct=vt.options.chart,xt=vt.options.series;["inverted","angular","polar"].forEach(function(wt){for(at=o[Ct.type||Ct.defaultSeriesType],dt=Ct[wt]||at&&at.prototype[wt],et=xt&&xt.length;!dt&&et--;)(at=o[xt[et].type])&&at.prototype[wt]&&(dt=!0);vt[wt]=dt})},ht.prototype.linkSeries=function(){var et=this,at=et.series;at.forEach(function(dt){dt.linkedSeries.length=0}),at.forEach(function(dt){var vt=dt.options.linkedTo;X(vt)&&(vt=vt===":previous"?et.series[dt.index-1]:et.get(vt))&&vt.linkedParent!==dt&&(vt.linkedSeries.push(dt),dt.linkedParent=vt,vt.enabledDataSorting&&dt.setDataSortingOptions(),dt.visible=Q(dt.options.visible,vt.options.visible,dt.visible))}),_(this,"afterLinkSeries")},ht.prototype.renderSeries=function(){this.series.forEach(function(et){et.translate(),et.render()})},ht.prototype.renderLabels=function(){var et=this,at=et.options.labels;at.items&&at.items.forEach(function(dt){var vt=A(at.style,dt.style),Ct=J(vt.left)+et.plotLeft,xt=J(vt.top)+et.plotTop+12;delete vt.left,delete vt.top,et.renderer.text(dt.html,Ct,xt).attr({zIndex:2}).css(vt).add()})},ht.prototype.render=function(){var et=this,at=et.axes,dt=et.colorAxis,vt=et.renderer,Ct=et.options,xt=function(Pt){Pt.forEach(function(Dt){Dt.visible&&Dt.render()})},wt=0;et.setTitle(),et.legend=new U(et,Ct.legend),et.getStacks&&et.getStacks(),et.getMargins(!0),et.setChartSize();var Mt=et.plotWidth;at.some(function(Pt){if(Pt.horiz&&Pt.visible&&Pt.options.labels.enabled&&Pt.series.length)return wt=21,!0}),et.plotHeight=Math.max(et.plotHeight-wt,0);var St=et.plotHeight;at.forEach(function(Pt){Pt.setScale()}),et.getAxisMargins();var kt=Mt/et.plotWidth>1.1,Lt=St/et.plotHeight>1.05;(kt||Lt)&&(at.forEach(function(Pt){(Pt.horiz&&kt||!Pt.horiz&&Lt)&&Pt.setTickInterval(!0)}),et.getMargins()),et.drawChartBox(),et.hasCartesianSeries?xt(at):dt&&dt.length&&xt(dt),et.seriesGroup||(et.seriesGroup=vt.g("series-group").attr({zIndex:3}).add()),et.renderSeries(),et.renderLabels(),et.addCredits(),et.setResponsive&&et.setResponsive(),et.hasRendered=!0},ht.prototype.addCredits=function(et){var at=this,dt=G(!0,this.options.credits,et);dt.enabled&&!this.credits&&(this.credits=this.renderer.text(dt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){dt.href&&(i.location.href=dt.href)}).attr({align:dt.position.align,zIndex:8}),at.styledMode||this.credits.css(dt.style),this.credits.add().align(dt.position),this.credits.update=function(vt){at.credits=at.credits.destroy(),at.addCredits(vt)})},ht.prototype.destroy=function(){var et,at=this,dt=at.axes,vt=at.series,Ct=at.container,xt=Ct&&Ct.parentNode;for(_(at,"destroy"),at.renderer.forExport?d(g,at):g[at.index]=void 0,Z.chartCount--,at.renderTo.removeAttribute("data-highcharts-chart"),lt(at),et=dt.length;et--;)dt[et]=dt[et].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),et=vt.length;et--;)vt[et]=vt[et].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(wt){var Mt=at[wt];Mt&&Mt.destroy&&(at[wt]=Mt.destroy())}),Ct&&(Ct.innerHTML=f.emptyHTML,lt(Ct),xt&&D(Ct)),q(at,function(wt,Mt){delete at[Mt]})},ht.prototype.firstRender=function(){var et=this,at=et.options;et.isReadyToRender&&!et.isReadyToRender()||(et.getContainer(),et.resetMargins(),et.setChartSize(),et.propFromSeries(),et.getAxes(),(O(at.series)?at.series:[]).forEach(function(dt){et.initSeries(dt)}),et.linkSeries(),et.setSeriesData(),_(et,"beforeRender"),I&&(z.isRequired()?et.pointer=new z(et,at):et.pointer=new I(et,at)),et.render(),et.pointer.getChartPosition(),et.renderer.imgCount||et.hasLoaded||et.onload(),et.temporaryDisplay(!0))},ht.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(et){et&&this.index!==void 0&&et.apply(this,[this])},this),_(this,"load"),_(this,"render"),T(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},ht.prototype.warnIfA11yModuleNotLoaded=function(){var et=this.options,at=this.title;et&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(at&&at.element.textContent||"").replace(/</g,"&lt;")}),et.accessibility&&et.accessibility.enabled===!1||C('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},ht.prototype.addSeries=function(et,at,dt){var vt,Ct=this;return et&&(at=Q(at,!0),_(Ct,"addSeries",{options:et},function(){vt=Ct.initSeries(et),Ct.isDirtyLegend=!0,Ct.linkSeries(),vt.enabledDataSorting&&vt.setData(et.data,!1),_(Ct,"afterAddSeries",{series:vt}),at&&Ct.redraw(dt)})),vt},ht.prototype.addAxis=function(et,at,dt,vt){return this.createAxis(at?"xAxis":"yAxis",{axis:et,redraw:dt,animation:vt})},ht.prototype.addColorAxis=function(et,at,dt){return this.createAxis("colorAxis",{axis:et,redraw:at,animation:dt})},ht.prototype.createAxis=function(et,at){var dt=new R(this,G(at.axis,{index:this[et].length,isX:et==="xAxis"}));return Q(at.redraw,!0)&&this.redraw(at.animation),dt},ht.prototype.showLoading=function(et){var at=this,dt=at.options,vt=dt.loading,Ct=function(){xt&&b(xt,{left:at.plotLeft+"px",top:at.plotTop+"px",width:at.plotWidth+"px",height:at.plotHeight+"px"})},xt=at.loadingDiv,wt=at.loadingSpan;xt||(at.loadingDiv=xt=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,at.container)),wt||(at.loadingSpan=wt=l("span",{className:"highcharts-loading-inner"},null,xt),e(at,"redraw",Ct)),xt.className="highcharts-loading",f.setElementHTML(wt,Q(et,dt.lang.loading,"")),at.styledMode||(b(xt,A(vt.style,{zIndex:10})),b(wt,vt.labelStyle),at.loadingShown||(b(xt,{opacity:0,display:""}),m(xt,{opacity:vt.style.opacity||.5},{duration:vt.showDuration||0}))),at.loadingShown=!0,Ct()},ht.prototype.hideLoading=function(){var et=this.options,at=this.loadingDiv;at&&(at.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(at,{opacity:0},{duration:et.loading.hideDuration||100,complete:function(){b(at,{display:"none"})}})),this.loadingShown=!1},ht.prototype.update=function(et,at,dt,vt){var Ct,xt,wt,Mt=this,St={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},kt=et.isResponsiveOptions,Lt=[];_(Mt,"update",{options:et}),kt||Mt.setResponsive(!1,!0),et=n(et,Mt.options),Mt.userOptions=G(Mt.userOptions,et);var Pt=et.chart;Pt&&(G(!0,Mt.options.chart,Pt),"className"in Pt&&Mt.setClassName(Pt.className),"reflow"in Pt&&Mt.setReflow(Pt.reflow),("inverted"in Pt||"polar"in Pt||"type"in Pt)&&(Mt.propFromSeries(),Ct=!0),"alignTicks"in Pt&&(Ct=!0),"events"in Pt&&p(this,Pt),q(Pt,function(Ot,It){Mt.propsRequireUpdateSeries.indexOf("chart."+It)!==-1&&(xt=!0),Mt.propsRequireDirtyBox.indexOf(It)!==-1&&(Mt.isDirtyBox=!0),Mt.propsRequireReflow.indexOf(It)!==-1&&(kt?Mt.isDirtyBox=!0:wt=!0)}),!Mt.styledMode&&Pt.style&&Mt.renderer.setStyle(Mt.options.chart.style||{})),!Mt.styledMode&&et.colors&&(this.options.colors=et.colors),et.time&&(this.time===S&&(this.time=new y(et.time)),G(!0,Mt.options.time,et.time)),q(et,function(Ot,It){Mt[It]&&typeof Mt[It].update=="function"?Mt[It].update(Ot,!1):typeof Mt[St[It]]=="function"?Mt[St[It]](Ot):It!=="colors"&&Mt.collectionsWithUpdate.indexOf(It)===-1&&G(!0,Mt.options[It],et[It]),It!=="chart"&&Mt.propsRequireUpdateSeries.indexOf(It)!==-1&&(xt=!0)}),this.collectionsWithUpdate.forEach(function(Ot){var It;et[Ot]&&(It=[],Mt[Ot].forEach(function(Nt,Zt){Nt.options.isInternal||It.push(Q(Nt.options.index,Zt))}),gt(et[Ot]).forEach(function(Nt,Zt){var zt,Ht=T(Nt.id);Ht&&(zt=Mt.get(Nt.id)),!zt&&Mt[Ot]&&(zt=Mt[Ot][It?It[Zt]:Zt])&&Ht&&T(zt.options.id)&&(zt=void 0),zt&&zt.coll===Ot&&(zt.update(Nt,!1),dt&&(zt.touched=!0)),!zt&&dt&&Mt.collectionsWithInit[Ot]&&(Mt.collectionsWithInit[Ot][0].apply(Mt,[Nt].concat(Mt.collectionsWithInit[Ot][1]||[]).concat([!1])).touched=!0)}),dt&&Mt[Ot].forEach(function(Nt){Nt.touched||Nt.options.isInternal?delete Nt.touched:Lt.push(Nt)}))}),Lt.forEach(function(Ot){Ot.chart&&Ot.remove&&Ot.remove(!1)}),Ct&&Mt.axes.forEach(function(Ot){Ot.update({},!1)}),xt&&Mt.getSeriesOrderByLinks().forEach(function(Ot){Ot.chart&&Ot.update({},!1)},this);var Dt=Pt&&Pt.width,jt=Pt&&(X(Pt.height)?rt(Pt.height,Dt||Mt.chartWidth):Pt.height);wt||j(Dt)&&Dt!==Mt.chartWidth||j(jt)&&jt!==Mt.chartHeight?Mt.setSize(Dt,jt,vt):Q(at,!0)&&Mt.redraw(vt),_(Mt,"afterUpdate",{options:et,redraw:at,animation:vt})},ht.prototype.setSubtitle=function(et,at){this.applyDescription("subtitle",et),this.layOutTitles(at)},ht.prototype.setCaption=function(et,at){this.applyDescription("caption",et),this.layOutTitles(at)},ht.prototype.showResetZoom=function(){var et=this,at=w.lang,dt=et.options.chart.zooming.resetButton,vt=dt.theme,Ct=dt.relativeTo==="chart"||dt.relativeTo==="spacingBox"?null:"scrollablePlotBox";function xt(){et.zoomOut()}_(this,"beforeShowResetZoom",null,function(){et.resetZoomButton=et.renderer.button(at.resetZoom,null,null,xt,vt).attr({align:dt.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(dt.position,!1,Ct)}),_(this,"afterShowResetZoom")},ht.prototype.zoomOut=function(){_(this,"selection",{resetSelection:!0},this.zoom)},ht.prototype.zoom=function(et){var at,dt=this,vt=dt.pointer,Ct=!1;!et||et.resetSelection?(dt.axes.forEach(function(wt){at=wt.zoom()}),vt.initiated=!1):et.xAxis.concat(et.yAxis).forEach(function(wt){var Mt=wt.axis,St=Mt.isXAxis;(vt[St?"zoomX":"zoomY"]&&T(vt.mouseDownX)&&T(vt.mouseDownY)&&dt.isInsidePlot(vt.mouseDownX-dt.plotLeft,vt.mouseDownY-dt.plotTop,{axis:Mt})||!T(dt.inverted?vt.mouseDownX:vt.mouseDownY))&&(at=Mt.zoom(wt.min,wt.max),Mt.displayBtn&&(Ct=!0))});var xt=dt.resetZoomButton;Ct&&!xt?dt.showResetZoom():!Ct&&Y(xt)&&(dt.resetZoomButton=xt.destroy()),at&&dt.redraw(Q(dt.options.chart.animation,et&&et.animation,dt.pointCount<100))},ht.prototype.pan=function(et,at){var dt=this,vt=dt.hoverPoints,Ct=typeof at=="object"?at:{enabled:at,type:"x"},xt=dt.options.chart;xt&&xt.panning&&(xt.panning=Ct);var wt,Mt=Ct.type;_(this,"pan",{originalEvent:et},function(){vt&&vt.forEach(function(Lt){Lt.setState()});var St=dt.xAxis;Mt==="xy"?St=St.concat(dt.yAxis):Mt==="y"&&(St=dt.yAxis);var kt={};St.forEach(function(Lt){if(Lt.options.panningEnabled&&!Lt.options.isInternal){var Pt,Dt=Lt.horiz,jt=et[Dt?"chartX":"chartY"],Ot=Dt?"mouseDownX":"mouseDownY",It=dt[Ot],Nt=Lt.minPointOffset||0,Zt=Lt.reversed&&!dt.inverted||!Lt.reversed&&dt.inverted?-1:1,zt=Lt.getExtremes(),Ht=Lt.toValue(It-jt,!0)+Nt*Zt,Kt=Lt.toValue(It+Lt.len-jt,!0)-(Nt*Zt||Lt.isXAxis&&Lt.pointRangePadding||0),me=Kt<Ht,Ut=Lt.hasVerticalPanning(),te=me?Kt:Ht,ye=me?Ht:Kt,Et=Lt.panningState;!Ut||Lt.isXAxis||Et&&!Et.isDirty||Lt.series.forEach(function($t){var ce=$t.getProcessedData(!0),pe=$t.getExtremes(ce.yData,!0);Et||(Et={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(pe.dataMin)&&j(pe.dataMax)&&(Et.startMin=Math.min(Q($t.options.threshold,1/0),pe.dataMin,Et.startMin),Et.startMax=Math.max(Q($t.options.threshold,-1/0),pe.dataMax,Et.startMax))});var Gt=Math.min(Q(Et&&Et.startMin,zt.dataMin),Nt?zt.min:Lt.toValue(Lt.toPixels(zt.min)-Lt.minPixelPadding)),Yt=Math.max(Q(Et&&Et.startMax,zt.dataMax),Nt?zt.max:Lt.toValue(Lt.toPixels(zt.max)+Lt.minPixelPadding));Lt.panningState=Et,Lt.isOrdinal||((Pt=Gt-te)>0&&(ye+=Pt,te=Gt),(Pt=ye-Yt)>0&&(ye=Yt,te-=Pt),Lt.series.length&&te!==zt.min&&ye!==zt.max&&te>=Gt&&ye<=Yt&&(Lt.setExtremes(te,ye,!1,!1,{trigger:"pan"}),!dt.resetZoomButton&&te!==Gt&&ye!==Yt&&Mt.match("y")&&(dt.showResetZoom(),Lt.displayBtn=!1),wt=!0),kt[Ot]=jt)}}),q(kt,function(Lt,Pt){dt[Pt]=Lt}),wt&&dt.redraw(!1),b(dt.container,{cursor:"move"})})},ht}();return A(yt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[yt.prototype.addAxis,[!0]],yAxis:[yt.prototype.addAxis,[!1]],series:[yt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),yt}),it(B,"Core/Legend/LegendSymbol.js",[B["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.merge,$=W.pick;return function(Z){Z.drawLineMarker=function(U){var z,I=this.legendItem=this.legendItem||{},E=this.options,M=U.symbolWidth,P=U.symbolHeight,y=P/2,h=this.chart.renderer,f=I.group,m=U.baseline-Math.round(.3*U.fontMetrics.b),u={},v=E.marker,w=0;if(this.chart.styledMode||(u={"stroke-width":Math.min(E.lineWidth||0,24)},E.dashStyle?u.dashstyle=E.dashStyle:E.linecap!=="square"&&(u["stroke-linecap"]="round")),I.line=h.path().addClass("highcharts-graph").attr(u).add(f),u["stroke-linecap"]&&(w=Math.min(I.line.strokeWidth(),M)/2),I.line.attr({d:[["M",w,m],["L",M-w,m]]}),v&&v.enabled!==!1&&M){var S=Math.min($(v.radius,y),y);this.symbol.indexOf("url")===0&&(v=V(v,{width:P,height:P}),S=0),I.symbol=z=h.symbol(this.symbol,M/2-S,m-S,2*S,2*S,H({context:"legend"},v)).addClass("highcharts-point").add(f),z.isMarker=!0}},Z.drawRectangle=function(U,z){var I=z.legendItem||{},E=U.options,M=U.symbolHeight,P=E.squareSymbol,y=P?M:U.symbolWidth;I.symbol=this.chart.renderer.rect(P?(U.symbolWidth-M)/2:0,U.baseline-M+1,y,M,$(U.options.symbolRadius,M/2)).addClass("highcharts-point").attr({zIndex:3}).add(I.group)}}(R||(R={})),R}),it(B,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var W=this.series.chart.numberFormatter;return typeof this.y!="number"?"":W(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),it(B,"Core/Series/Series.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Defaults.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M=W.animObject,P=W.setAnimation,y=R.defaultOptions,h=H.registerEventOptions,f=V.hasTouch,m=V.svg,u=V.win,v=z.seriesTypes,w=E.arrayMax,S=E.arrayMin,x=E.clamp,p=E.cleanRecursively,g=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,l=E.isNumber,b=E.isString,T=E.merge,D=E.objectEach,d=E.pick,C=E.removeEvent,A=E.splat,N=E.syncTimeout,_=function(){function L(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}return L.prototype.init=function(O,j){e(this,"init",{options:j});var Y=this,X=O.series;this.eventsToUnbind=[],Y.chart=O,Y.options=Y.setOptions(j);var G=Y.options;Y.linkedSeries=[],Y.bindAxes(),i(Y,{name:G.name,state:"",visible:G.visible!==!1,selected:G.selected===!0}),h(this,G);var q,Q=G.events;(Q&&Q.click||G.point&&G.point.events&&G.point.events.click||G.allowPointSelect)&&(O.runTrackerClick=!0),Y.getColor(),Y.getSymbol(),Y.parallelArrays.forEach(function(J){Y[J+"Data"]||(Y[J+"Data"]=[])}),Y.isCartesian&&(O.hasCartesianSeries=!0),X.length&&(q=X[X.length-1]),Y._i=d(q&&q._i,-1)+1,Y.opacity=Y.options.opacity,O.orderSeries(this.insert(X)),G.dataSorting&&G.dataSorting.enabled?Y.setDataSortingOptions():Y.points||Y.data||Y.setData(G.data,!1),e(this,"afterInit")},L.prototype.is=function(O){return v[O]&&this instanceof v[O]},L.prototype.insert=function(O){var j,Y=this.options.index;if(l(Y)){for(j=O.length;j--;)if(Y>=d(O[j].options.index,O[j]._i)){O.splice(j+1,0,this);break}j===-1&&O.unshift(this),j+=1}else O.push(this);return d(j,O.length-1)},L.prototype.bindAxes=function(){var O,j=this,Y=j.options,X=j.chart;e(this,"bindAxes",null,function(){(j.axisTypes||[]).forEach(function(G){var q=0;X[G].forEach(function(Q){O=Q.options,(Y[G]===q&&!O.isInternal||Y[G]!==void 0&&Y[G]===O.id||Y[G]===void 0&&O.index===0)&&(j.insert(Q.series),j[G]=Q,Q.isDirty=!0),O.isInternal||q++}),j[G]||j.optionalAxis===G||t(18,!0,X)})}),e(this,"afterBindAxes")},L.prototype.updateParallelArrays=function(O,j){var Y=O.series,X=arguments,G=l(j)?function(q){var Q=q==="y"&&Y.toYData?Y.toYData(O):O[q];Y[q+"Data"][j]=Q}:function(q){Array.prototype[j].apply(Y[q+"Data"],Array.prototype.slice.call(X,2))};Y.parallelArrays.forEach(G)},L.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0},L.prototype.autoIncrement=function(O){var j,Y,X=this.options,G=X.pointIntervalUnit,q=X.relativeXValue,Q=this.chart.time,J=this.xIncrement;return J=d(J,X.pointStart,0),this.pointInterval=Y=d(this.pointInterval,X.pointInterval,1),q&&l(O)&&(Y*=O),G&&(j=new Q.Date(J),G==="day"?Q.set("Date",j,Q.get("Date",j)+Y):G==="month"?Q.set("Month",j,Q.get("Month",j)+Y):G==="year"&&Q.set("FullYear",j,Q.get("FullYear",j)+Y),Y=j.getTime()-J),q&&l(O)?J+Y:(this.xIncrement=J+Y,J)},L.prototype.setDataSortingOptions=function(){var O=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(O.pointRange)||(O.pointRange=1)},L.prototype.setOptions=function(O){var j,Y=this.chart,X=Y.options,G=X.plotOptions,q=Y.userOptions||{},Q=T(O),J=Y.styledMode,rt={plotOptions:G,userOptions:Q};e(this,"setOptions",rt);var lt=rt.plotOptions[this.type],gt=q.plotOptions||{};this.userOptions=rt.userOptions;var mt=T(lt,G.series,q.plotOptions&&q.plotOptions[this.type],Q);this.tooltipOptions=T(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,X.tooltip.userOptions,G.series&&G.series.tooltip,G[this.type].tooltip,Q.tooltip),this.stickyTracking=d(Q.stickyTracking,gt[this.type]&&gt[this.type].stickyTracking,gt.series&&gt.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||mt.stickyTracking),lt.marker===null&&delete mt.marker,this.zoneAxis=mt.zoneAxis;var bt=this.zones=(mt.zones||[]).slice();return!mt.negativeColor&&!mt.negativeFillColor||mt.zones||(j={value:mt[this.zoneAxis+"Threshold"]||mt.threshold||0,className:"highcharts-negative"},J||(j.color=mt.negativeColor,j.fillColor=mt.negativeFillColor),bt.push(j)),bt.length&&r(bt[bt.length-1].value)&&bt.push(J?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:mt}),mt},L.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},L.prototype.getCyclic=function(O,j,Y){var X,G,q=this.chart,Q=this.userOptions,J=O+"Index",rt=O+"Counter",lt=Y?Y.length:d(q.options.chart[O+"Count"],q[O+"Count"]);j||(G=d(Q[J],Q["_"+J]),r(G)?X=G:(q.series.length||(q[rt]=0),Q["_"+J]=X=q[rt]%lt,q[rt]+=1),Y&&(j=Y[X])),X!==void 0&&(this[J]=X),this[O]=j},L.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},L.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},L.prototype.getSymbol=function(){var O=this.options.marker;this.getCyclic("symbol",O.symbol,this.chart.options.symbols)},L.prototype.findPointIndex=function(O,j){var Y,X,G,q=O.id,Q=O.x,J=this.points,rt=this.options.dataSorting;if(q){var lt=this.chart.get(q);lt instanceof Z&&(Y=lt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var gt=function(mt){return!mt.touched&&mt.index===O.index};if(rt&&rt.matchByName?gt=function(mt){return!mt.touched&&mt.name===O.name}:this.options.relativeXValue&&(gt=function(mt){return!mt.touched&&mt.options.x===O.x}),!(Y=o(J,gt)))return}return Y&&(G=Y&&Y.index)!==void 0&&(X=!0),G===void 0&&l(Q)&&(G=this.xData.indexOf(Q,j)),G!==-1&&G!==void 0&&this.cropped&&(G=G>=this.cropStart?G-this.cropStart:G),!X&&l(G)&&J[G]&&J[G].touched&&(G=void 0),G},L.prototype.updateData=function(O,j){var Y,X,G,q,Q=this.options,J=Q.dataSorting,rt=this.points,lt=[],gt=this.requireSorting,mt=O.length===rt.length,bt=!0;if(this.xIncrement=null,O.forEach(function(yt,ht){var et,at=r(yt)&&this.pointClass.prototype.optionsToObject.call({series:this},yt)||{},dt=at.x;at.id||l(dt)?((et=this.findPointIndex(at,q))===-1||et===void 0?lt.push(yt):rt[et]&&yt!==Q.data[et]?(rt[et].update(yt,!1,null,!1),rt[et].touched=!0,gt&&(q=et+1)):rt[et]&&(rt[et].touched=!0),(!mt||ht!==et||J&&J.enabled||this.hasDerivedData)&&(Y=!0)):lt.push(yt)},this),Y)for(X=rt.length;X--;)(G=rt[X])&&!G.touched&&G.remove&&G.remove(!1,j);else!mt||J&&J.enabled?bt=!1:(O.forEach(function(yt,ht){yt!==rt[ht].y&&rt[ht].update&&rt[ht].update(yt,!1,null,!1)}),lt.length=0);return rt.forEach(function(yt){yt&&(yt.touched=!1)}),!!bt&&(lt.forEach(function(yt){this.addPoint(yt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)},L.prototype.setData=function(O,j,Y,X){j===void 0&&(j=!0);var G,q,Q,J,rt=this,lt=rt.points,gt=lt&&lt.length||0,mt=rt.options,bt=rt.chart,yt=mt.dataSorting,ht=rt.xAxis,et=mt.turboThreshold,at=this.xData,dt=this.yData,vt=rt.pointArrayMap,Ct=vt&&vt.length,xt=mt.keys,wt=0,Mt=1,St=null;bt.options.chart.allowMutatingData||(mt.data&&delete rt.options.data,rt.userOptions.data&&delete rt.userOptions.data,J=T(!0,O));var kt=(O=J||O||[]).length;if(yt&&yt.enabled&&(O=this.sortData(O)),bt.options.chart.allowMutatingData&&X!==!1&&kt&&gt&&!rt.cropped&&!rt.hasGroupedData&&rt.visible&&!rt.boosted&&(Q=this.updateData(O,Y)),!Q){if(rt.xIncrement=null,rt.colorCounter=0,this.parallelArrays.forEach(function(Lt){rt[Lt+"Data"].length=0}),et&&kt>et)if(St=rt.getFirstValidPoint(O),l(St))for(G=0;G<kt;G++)at[G]=this.autoIncrement(),dt[G]=O[G];else if(n(St))if(Ct)if(St.length===Ct)for(G=0;G<kt;G++)at[G]=this.autoIncrement(),dt[G]=O[G];else for(G=0;G<kt;G++)q=O[G],at[G]=q[0],dt[G]=q.slice(1,Ct+1);else if(xt&&(wt=(wt=xt.indexOf("x"))>=0?wt:0,Mt=(Mt=xt.indexOf("y"))>=0?Mt:1),St.length===1&&(Mt=0),wt===Mt)for(G=0;G<kt;G++)at[G]=this.autoIncrement(),dt[G]=O[G][Mt];else for(G=0;G<kt;G++)q=O[G],at[G]=q[wt],dt[G]=q[Mt];else t(12,!1,bt);else for(G=0;G<kt;G++)O[G]!==void 0&&(q={series:rt},rt.pointClass.prototype.applyOptions.apply(q,[O[G]]),rt.updateParallelArrays(q,G));for(dt&&b(dt[0])&&t(14,!0,bt),rt.data=[],rt.options.data=rt.userOptions.data=O,G=gt;G--;)lt[G]&&lt[G].destroy&&lt[G].destroy();ht&&(ht.minRange=ht.userMinRange),rt.isDirty=bt.isDirtyBox=!0,rt.isDirtyData=!!lt,Y=!1}mt.legendType==="point"&&(this.processData(),this.generatePoints()),j&&bt.redraw(Y)},L.prototype.sortData=function(O){var j=this,Y=j.options.dataSorting.sortKey||"y",X=function(G,q){return r(q)&&G.pointClass.prototype.optionsToObject.call({series:G},q)||{}};return O.forEach(function(G,q){O[q]=X(j,G),O[q].index=q},this),O.concat().sort(function(G,q){var Q=s(Y,G),J=s(Y,q);return J<Q?-1:J>Q?1:0}).forEach(function(G,q){G.x=q},this),j.linkedSeries&&j.linkedSeries.forEach(function(G){var q=G.options,Q=q.data;q.dataSorting&&q.dataSorting.enabled||!Q||(Q.forEach(function(J,rt){Q[rt]=X(G,J),O[rt]&&(Q[rt].x=O[rt].x,Q[rt].index=rt)}),G.setData(Q,!1))}),O},L.prototype.getProcessedData=function(O){var j,Y,X,G,q,Q,J,rt,lt=this,gt=lt.xAxis,mt=lt.options,bt=mt.cropThreshold,yt=O||lt.getExtremesFromAll||mt.getExtremesFromAll,ht=lt.isCartesian,et=gt&&gt.val2lin,at=!(!gt||!gt.logarithmic),dt=0,vt=lt.xData,Ct=lt.yData,xt=lt.requireSorting,wt=!1,Mt=vt.length;for(gt&&(J=(Q=gt.getExtremes()).min,rt=Q.max,wt=!(!gt.categories||gt.names.length)),ht&&lt.sorted&&!yt&&(!bt||Mt>bt||lt.forceCrop)&&(vt[Mt-1]<J||vt[0]>rt?(vt=[],Ct=[]):lt.yData&&(vt[0]<J||vt[Mt-1]>rt)&&(vt=(j=this.cropData(lt.xData,lt.yData,J,rt)).xData,Ct=j.yData,dt=j.start,Y=!0)),q=vt.length||1;--q;)(X=at?et(vt[q])-et(vt[q-1]):vt[q]-vt[q-1])>0&&(G===void 0||X<G)?G=X:X<0&&xt&&!wt&&(t(15,!1,lt.chart),xt=!1);return{xData:vt,yData:Ct,cropped:Y,cropStart:dt,closestPointRange:G}},L.prototype.processData=function(O){var j=this,Y=j.xAxis;if(j.isCartesian&&!j.isDirty&&!Y.isDirty&&!j.yAxis.isDirty&&!O)return!1;var X=j.getProcessedData();j.cropped=X.cropped,j.cropStart=X.cropStart,j.processedXData=X.xData,j.processedYData=X.yData,j.closestPointRange=j.basePointRange=X.closestPointRange,e(j,"afterProcessData")},L.prototype.cropData=function(O,j,Y,X,G){var q,Q,J=O.length,rt=0,lt=J;for(G=d(G,this.cropShoulder),q=0;q<J;q++)if(O[q]>=Y){rt=Math.max(0,q-G);break}for(Q=q;Q<J;Q++)if(O[Q]>X){lt=Q+G;break}return{xData:O.slice(rt,lt),yData:j.slice(rt,lt),start:rt,end:lt}},L.prototype.generatePoints=function(){var O,j,Y,X,G=this,q=G.options,Q=G.processedData||q.data,J=G.processedXData,rt=G.processedYData,lt=G.pointClass,gt=J.length,mt=G.cropStart||0,bt=G.hasGroupedData,yt=q.keys,ht=[],et=q.dataGrouping&&q.dataGrouping.groupAll?mt:0,at=G.data;if(!at&&!bt){var dt=[];dt.length=Q.length,at=G.data=dt}for(yt&&bt&&(G.options.keys=!1),X=0;X<gt;X++)j=mt+X,bt?((Y=new lt().init(G,[J[X]].concat(A(rt[X])))).dataGroup=G.groupMap[et+X],Y.dataGroup.options&&(Y.options=Y.dataGroup.options,i(Y,Y.dataGroup.options),delete Y.dataLabels)):(Y=at[j])||Q[j]===void 0||(at[j]=Y=new lt().init(G,Q[j],J[X])),Y&&(Y.index=bt?et+X:j,ht[X]=Y);if(G.options.keys=yt,at&&(gt!==(O=at.length)||bt))for(X=0;X<O;X++)X!==mt||bt||(X+=gt),at[X]&&(at[X].destroyElements(),at[X].plotX=void 0);G.data=at,G.points=ht,e(this,"afterGeneratePoints")},L.prototype.getXExtremes=function(O){return{min:S(O),max:w(O)}},L.prototype.getExtremes=function(O,j){var Y,X,G,q,Q,J,rt,lt=this.xAxis,gt=this.yAxis,mt=this.processedXData||this.xData,bt=[],yt=this.requireSorting?this.cropShoulder:0,ht=!!gt&&gt.positiveValuesOnly,et=0,at=0,dt=0,vt=(O=O||this.stackedYData||this.processedYData||[]).length;for(lt&&(et=(Y=lt.getExtremes()).min,at=Y.max),J=0;J<vt;J++)if(q=mt[J],Q=O[J],X=(l(Q)||n(Q))&&(Q.length||Q>0||!ht),G=j||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!lt||(mt[J+yt]||q)>=et&&(mt[J-yt]||q)<=at,X&&G)if(rt=Q.length)for(;rt--;)l(Q[rt])&&(bt[dt++]=Q[rt]);else bt[dt++]=Q;var Ct={activeYData:bt,dataMin:S(bt),dataMax:w(bt)};return e(this,"afterGetExtremes",{dataExtremes:Ct}),Ct},L.prototype.applyExtremes=function(){var O=this.getExtremes();return this.dataMin=O.dataMin,this.dataMax=O.dataMax,O},L.prototype.getFirstValidPoint=function(O){for(var j=O.length,Y=0,X=null;X===null&&Y<j;)X=O[Y],Y++;return X},L.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var O,j,Y,X,G=this,q=G.options,Q=q.stacking,J=G.xAxis,rt=J.categories,lt=G.enabledDataSorting,gt=G.yAxis,mt=G.points,bt=mt.length,yt=G.pointPlacementToXValue(),ht=!!yt,et=q.threshold,at=q.startFromThreshold?et:0,dt=this.zoneAxis||"y",vt=Number.MAX_VALUE;function Ct(jt){return x(jt,-1e5,1e5)}for(O=0;O<bt;O++){var xt=mt[O],wt=xt.x,Mt=void 0,St=void 0,kt=xt.y,Lt=xt.low,Pt=Q&&gt.stacking&&gt.stacking.stacks[(G.negStacks&&kt<(at?0:et)?"-":"")+G.stackKey];if((gt.positiveValuesOnly&&!gt.validatePositiveValue(kt)||J.positiveValuesOnly&&!J.validatePositiveValue(wt))&&(xt.isNull=!0),xt.plotX=j=g(Ct(J.translate(wt,0,0,0,1,yt,this.type==="flags"))),Q&&G.visible&&Pt&&Pt[wt]&&(X=G.getStackIndicator(X,wt,G.index),!xt.isNull&&X.key&&(St=(Mt=Pt[wt]).points[X.key]),Mt&&n(St)&&(Lt=St[0],kt=St[1],Lt===at&&X.key===Pt[wt].base&&(Lt=d(l(et)?et:gt.min)),gt.positiveValuesOnly&&r(Lt)&&Lt<=0&&(Lt=void 0),xt.total=xt.stackTotal=d(Mt.total),xt.percentage=r(xt.y)&&Mt.total?xt.y/Mt.total*100:void 0,xt.stackY=kt,G.irregularWidths||Mt.setOffset(G.pointXOffset||0,G.barW||0,void 0,void 0,void 0,G.xAxis))),xt.yBottom=r(Lt)?Ct(gt.translate(Lt,0,1,0,1)):void 0,G.dataModify&&(kt=G.dataModify.modifyValue(kt,O)),xt.plotY=void 0,l(kt)){var Dt=gt.translate(kt,!1,!0,!1,!0);Dt!==void 0&&(xt.plotY=Ct(Dt))}xt.isInside=this.isPointInside(xt),xt.clientX=ht?g(J.translate(wt,0,0,0,1,yt)):j,xt.negative=xt[dt]<(q[dt+"Threshold"]||et||0),xt.category=d(rt&&rt[xt.x],xt.x),xt.isNull||xt.visible===!1||(Y!==void 0&&(vt=Math.min(vt,Math.abs(j-Y))),Y=j),xt.zone=this.zones.length?xt.getZone():void 0,!xt.graphic&&G.group&&lt&&(xt.isNew=!0)}G.closestPointRangePx=vt,e(this,"afterTranslate")},L.prototype.getValidPoints=function(O,j,Y){var X=this.chart;return(O||this.points||[]).filter(function(G){return!(j&&!X.isInsidePlot(G.plotX,G.plotY,{inverted:X.inverted}))&&G.visible!==!1&&(Y||!G.isNull)})},L.prototype.getClipBox=function(){var O=this,j=O.chart,Y=O.xAxis,X=O.yAxis,G=T(j.clipBox);return Y&&Y.len!==j.plotSizeX&&(G.width=Y.len),X&&X.len!==j.plotSizeY&&(G.height=X.len),G},L.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},L.prototype.setClip=function(){var O=this,j=O.chart,Y=O.group,X=O.markerGroup,G=j.sharedClips,q=j.renderer,Q=this.getClipBox(),J=this.getSharedClipKey(),rt=G[J];rt?rt.animate(Q):G[J]=rt=q.clipRect(Q),Y&&Y.clip(this.options.clip===!1?void 0:rt),X&&X.clip()},L.prototype.animate=function(O){var j=this,Y=j.chart,X=j.group,G=j.markerGroup,q=Y.inverted,Q=M(this.options.animation),J=[this.getSharedClipKey(),Q.duration,Q.easing,Q.defer].join(","),rt=Y.sharedClips[J],lt=Y.sharedClips[J+"m"];if(O&&X){var gt=this.getClipBox();if(rt)rt.attr("height",gt.height);else{gt.width=0,q&&(gt.x=Y.plotHeight),rt=Y.renderer.clipRect(gt),Y.sharedClips[J]=rt;var mt={x:-99,y:-99,width:q?Y.plotWidth+199:99,height:q?99:Y.plotHeight+199};lt=Y.renderer.clipRect(mt),Y.sharedClips[J+"m"]=lt}X.clip(rt),G&&G.clip(lt)}else if(rt&&!rt.hasClass("highcharts-animating")){var bt=this.getClipBox(),yt=Q.step;G&&G.element.childNodes.length&&(Q.step=function(ht,et){yt&&yt.apply(et,arguments),et.prop==="width"&&lt&&lt.element&&lt.attr(q?"height":"width",ht+99)}),rt.addClass("highcharts-animating").animate(bt,Q)}},L.prototype.afterAnimate=function(){var O=this;this.setClip(),D(this.chart.sharedClips,function(j,Y,X){j&&!O.chart.container.querySelector('[clip-path="url(#'.concat(j.id,')"]'))&&(j.destroy(),delete X[Y])}),this.finishedAnimating=!0,e(this,"afterAnimate")},L.prototype.drawPoints=function(O){O===void 0&&(O=this.points);var j,Y,X,G,q,Q,J,rt=this,lt=rt.chart,gt=lt.styledMode,mt=rt.colorAxis,bt=rt.options.marker,yt=rt[rt.specialGroup||"markerGroup"],ht=rt.xAxis,et=d(bt.enabled,!(ht&&!ht.isRadial)||null,rt.closestPointRangePx>=bt.enabledThreshold*bt.radius);if(bt.enabled!==!1||rt._hasPointMarkers)for(j=0;j<O.length;j++)if(G=(X=(Y=O[j]).graphic)?"animate":"attr",q=Y.marker||{},Q=!!Y.marker,(et&&q.enabled===void 0||q.enabled)&&!Y.isNull&&Y.visible!==!1){var at=d(q.symbol,rt.symbol,"rect");J=rt.markerAttribs(Y,Y.selected&&"select"),rt.enabledDataSorting&&(Y.startXPos=ht.reversed?-(J.width||0):ht.width);var dt=Y.isInside!==!1;if(!X&&dt&&((J.width||0)>0||Y.hasImage)&&(Y.graphic=X=lt.renderer.symbol(at,J.x,J.y,J.width,J.height,Q?q:bt).add(yt),rt.enabledDataSorting&&lt.hasRendered&&(X.attr({x:Y.startXPos}),G="animate")),X&&G==="animate"&&X[dt?"show":"hide"](dt).animate(J),X){var vt=rt.pointAttribs(Y,gt||!Y.selected?void 0:"select");gt?mt&&X.css({fill:vt.fill}):X[G](vt)}X&&X.addClass(Y.getClassName(),!0)}else X&&(Y.graphic=X.destroy())},L.prototype.markerAttribs=function(O,j){var Y,X,G=this.options,q=G.marker,Q=O.marker||{},J=Q.symbol||q.symbol,rt={},lt=d(Q.radius,q&&q.radius);j&&(Y=q.states[j],X=Q.states&&Q.states[j],lt=d(X&&X.radius,Y&&Y.radius,lt&&lt+(Y&&Y.radiusPlus||0))),O.hasImage=J&&J.indexOf("url")===0,O.hasImage&&(lt=0);var gt=O.pos();return l(lt)&&gt&&(rt.x=gt[0]-lt,rt.y=gt[1]-lt,G.crisp&&(rt.x=Math.floor(rt.x))),lt&&(rt.width=rt.height=2*lt),rt},L.prototype.pointAttribs=function(O,j){var Y,X,G,q,Q=this.options.marker,J=O&&O.options,rt=J&&J.marker||{},lt=J&&J.color,gt=O&&O.color,mt=O&&O.zone&&O.zone.color,bt=this.color,yt=d(rt.lineWidth,Q.lineWidth),ht=1;return bt=lt||mt||gt||bt,G=rt.fillColor||Q.fillColor||bt,q=rt.lineColor||Q.lineColor||bt,(j=j||"normal")&&(Y=Q.states[j]||{},X=rt.states&&rt.states[j]||{},yt=d(X.lineWidth,Y.lineWidth,yt+d(X.lineWidthPlus,Y.lineWidthPlus,0)),G=X.fillColor||Y.fillColor||G,q=X.lineColor||Y.lineColor||q,ht=d(X.opacity,Y.opacity,ht)),{stroke:q,"stroke-width":yt,fill:G,opacity:ht}},L.prototype.destroy=function(O){var j,Y,X,G=this,q=G.chart,Q=/AppleWebKit\/533/.test(u.navigator.userAgent),J=G.data||[];for(e(G,"destroy",{keepEventsForUpdate:O}),this.removeEvents(O),(G.axisTypes||[]).forEach(function(rt){(X=G[rt])&&X.series&&(a(X.series,G),X.isDirty=X.forceRedraw=!0)}),G.legendItem&&G.chart.legend.destroyItem(G),j=J.length;j--;)(Y=J[j])&&Y.destroy&&Y.destroy();G.clips&&G.clips.forEach(function(rt){return rt.destroy()}),E.clearTimeout(G.animationTimeout),D(G,function(rt,lt){rt instanceof I&&!rt.survive&&rt[Q&&lt==="group"?"hide":"destroy"]()}),q.hoverSeries===G&&(q.hoverSeries=void 0),a(q.series,G),q.orderSeries(),D(G,function(rt,lt){O&&lt==="hcEvents"||delete G[lt]})},L.prototype.applyZones=function(){var O,j,Y,X,G,q,Q,J,rt,lt,gt,mt=this,bt=this.chart,yt=bt.renderer,ht=this.zones,et=this.clips||[],at=this.graph,dt=this.area,vt=Math.max(bt.plotWidth,bt.plotHeight),Ct=this[(this.zoneAxis||"y")+"Axis"],xt=bt.inverted,wt=!1;ht.length&&(at||dt)&&Ct&&Ct.min!==void 0?(G=Ct.reversed,q=Ct.horiz,at&&!this.showLine&&at.hide(),dt&&dt.hide(),X=Ct.getExtremes(),ht.forEach(function(Mt,St){O=G?q?bt.plotWidth:0:q?0:Ct.toPixels(X.min)||0,O=x(d(j,O),0,vt),j=x(Math.round(Ct.toPixels(d(Mt.value,X.max),!0)||0),0,vt),wt&&(O=j=Ct.toPixels(X.max)),Q=Math.abs(O-j),J=Math.min(O,j),rt=Math.max(O,j),Ct.isXAxis?(Y={x:xt?rt:J,y:0,width:Q,height:vt},q||(Y.x=bt.plotHeight-Y.x)):(Y={x:0,y:xt?rt:J,width:vt,height:Q},q&&(Y.y=bt.plotWidth-Y.y)),xt&&yt.isVML&&(Y=Ct.isXAxis?{x:0,y:G?J:rt,height:Y.width,width:bt.chartWidth}:{x:Y.y-bt.plotLeft-bt.spacingBox.x,y:0,width:Y.height,height:bt.chartHeight}),et[St]?et[St].animate(Y):et[St]=yt.clipRect(Y),lt=mt["zone-area-"+St],gt=mt["zone-graph-"+St],at&&gt&&gt.clip(et[St]),dt&&lt&&lt.clip(et[St]),wt=Mt.value>X.max,mt.resetZones&&j===0&&(j=void 0)}),this.clips=et):mt.visible&&(at&&at.show(),dt&&dt.show())},L.prototype.plotGroup=function(O,j,Y,X,G){var q=this[O],Q=!q,J={visibility:Y,zIndex:X||.1};return this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(J.opacity=this.opacity),Q&&(this[O]=q=this.chart.renderer.g().add(G)),q.addClass("highcharts-"+j+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(q.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),q.attr(J)[Q?"attr":"animate"](this.getPlotBox(j)),q},L.prototype.getPlotBox=function(O){var j=this.xAxis,Y=this.yAxis,X=this.chart,G=X.inverted&&!X.polar&&j&&this.invertible!==!1&&O==="series";return X.inverted&&(j=Y,Y=this.xAxis),{translateX:j?j.left:X.plotLeft,translateY:Y?Y.top:X.plotTop,rotation:G?90:0,rotationOriginX:G?(j.len-Y.len)/2:0,rotationOriginY:G?(j.len+Y.len)/2:0,scaleX:G?-1:1,scaleY:1}},L.prototype.removeEvents=function(O){var j=this;O||C(j),j.eventsToUnbind.length&&(j.eventsToUnbind.forEach(function(Y){Y()}),j.eventsToUnbind.length=0)},L.prototype.render=function(){var O=this,j=O.chart,Y=O.options,X=M(Y.animation),G=O.visible?"inherit":"hidden",q=Y.zIndex,Q=O.hasRendered,J=j.seriesGroup,rt=!O.finishedAnimating&&j.renderer.isSVG?X.duration:0;e(this,"render"),O.plotGroup("group","series",G,q,J),O.markerGroup=O.plotGroup("markerGroup","markers",G,q,J),Y.clip!==!1&&O.setClip(),O.animate&&rt&&O.animate(!0),O.drawGraph&&(O.drawGraph(),O.applyZones()),O.visible&&O.drawPoints(),O.drawDataLabels&&O.drawDataLabels(),O.redrawPoints&&O.redrawPoints(),O.drawTracker&&O.options.enableMouseTracking!==!1&&O.drawTracker(),O.animate&&rt&&O.animate(),Q||(rt&&X.defer&&(rt+=X.defer),O.animationTimeout=N(function(){O.afterAnimate()},rt||0)),O.isDirty=!1,O.hasRendered=!0,e(O,"afterRender")},L.prototype.redraw=function(){var O=this.isDirty||this.isDirtyData;this.translate(),this.render(),O&&delete this.kdTree},L.prototype.searchPoint=function(O,j){var Y=this,X=Y.xAxis,G=Y.yAxis,q=Y.chart.inverted;return this.searchKDTree({clientX:q?X.len-O.chartY+X.pos:O.chartX-X.pos,plotY:q?G.len-O.chartX+G.pos:O.chartY-G.pos},j,O)},L.prototype.buildKDTree=function(O){this.buildingKdTree=!0;var j=this,Y=j.options.findNearestPointBy.indexOf("y")>-1?2:1;function X(G,q,Q){var J,rt,lt=G&&G.length;if(lt)return J=j.kdAxisArray[q%Q],G.sort(function(gt,mt){return gt[J]-mt[J]}),{point:G[rt=Math.floor(lt/2)],left:X(G.slice(0,rt),q+1,Q),right:X(G.slice(rt+1),q+1,Q)}}delete j.kdTree,N(function(){j.kdTree=X(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||O&&O.type==="touchstart"?0:1)},L.prototype.searchKDTree=function(O,j,Y){var X=this,G=this.kdAxisArray[0],q=this.kdAxisArray[1],Q=j?"distX":"dist",J=X.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(Y),this.kdTree)return function rt(lt,gt,mt,bt){var yt,ht,et,at,dt,vt,Ct=gt.point,xt=X.kdAxisArray[mt%bt],wt=Ct;at=Ct,vt=((dt=r((et=lt)[G])&&r(at[G])?Math.pow(et[G]-at[G],2):null)||0)+((r(et[q])&&r(at[q])?Math.pow(et[q]-at[q],2):null)||0),at.dist=r(vt)?Math.sqrt(vt):Number.MAX_VALUE,at.distX=r(dt)?Math.sqrt(dt):Number.MAX_VALUE;var Mt=lt[xt]-Ct[xt],St=Mt<0?"left":"right",kt=Mt<0?"right":"left";return gt[St]&&(wt=(yt=rt(lt,gt[St],mt+1,bt))[Q]<wt[Q]?yt:Ct),gt[kt]&&Math.sqrt(Mt*Mt)<wt[Q]&&(wt=(ht=rt(lt,gt[kt],mt+1,bt))[Q]<wt[Q]?ht:wt),wt}(O,this.kdTree,J,J)},L.prototype.pointPlacementToXValue=function(){var O=this.options,j=O.pointPlacement,Y=O.pointRange,X=this.xAxis,G=j;return G==="between"&&(G=X.reversed?-.5:.5),l(G)?G*(Y||X.pointRange):0},L.prototype.isPointInside=function(O){var j=this,Y=j.chart,X=j.xAxis,G=j.yAxis;return O.plotY!==void 0&&O.plotX!==void 0&&O.plotY>=0&&O.plotY<=(G?G.len:Y.plotHeight)&&O.plotX>=0&&O.plotX<=(X?X.len:Y.plotWidth)},L.prototype.drawTracker=function(){var O=this,j=O.options,Y=j.trackByArea,X=[].concat(Y?O.areaPath:O.graphPath),G=O.chart,q=G.pointer,Q=G.renderer,J=G.options.tooltip.snap,rt=O.tracker,lt=function(mt){G.hoverSeries!==O&&O.onMouseOver()},gt="rgba(192,192,192,"+(m?1e-4:.002)+")";rt?rt.attr({d:X}):O.graph&&(O.tracker=Q.path(X).attr({visibility:O.visible?"inherit":"hidden",zIndex:2}).addClass(Y?"highcharts-tracker-area":"highcharts-tracker-line").add(O.group),G.styledMode||O.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:gt,fill:Y?gt:"none","stroke-width":O.graph.strokeWidth()+(Y?0:2*J)}),[O.tracker,O.markerGroup,O.dataLabelsGroup].forEach(function(mt){mt&&(mt.addClass("highcharts-tracker").on("mouseover",lt).on("mouseout",function(bt){q.onTrackerMouseOut(bt)}),j.cursor&&!G.styledMode&&mt.css({cursor:j.cursor}),f&&mt.on("touchstart",lt))})),e(this,"afterDrawTracker")},L.prototype.addPoint=function(O,j,Y,X,G){var q,Q,J=this,rt=J.options,lt=J.data,gt=J.chart,mt=J.xAxis,bt=mt&&mt.hasNames&&mt.names,yt=rt.data,ht=J.xData;j=d(j,!0);var et={series:J};J.pointClass.prototype.applyOptions.apply(et,[O]);var at=et.x;if(Q=ht.length,J.requireSorting&&at<ht[Q-1])for(q=!0;Q&&ht[Q-1]>at;)Q--;J.updateParallelArrays(et,"splice",Q,0,0),J.updateParallelArrays(et,Q),bt&&et.name&&(bt[at]=et.name),yt.splice(Q,0,O),(q||J.processedData)&&(J.data.splice(Q,0,null),J.processData()),rt.legendType==="point"&&J.generatePoints(),Y&&(lt[0]&&lt[0].remove?lt[0].remove(!1):(lt.shift(),J.updateParallelArrays(et,"shift"),yt.shift())),G!==!1&&e(J,"addPoint",{point:et}),J.isDirty=!0,J.isDirtyData=!0,j&&gt.redraw(X)},L.prototype.removePoint=function(O,j,Y){var X=this,G=X.data,q=G[O],Q=X.points,J=X.chart,rt=function(){Q&&Q.length===G.length&&Q.splice(O,1),G.splice(O,1),X.options.data.splice(O,1),X.updateParallelArrays(q||{series:X},"splice",O,1),q&&q.destroy(),X.isDirty=!0,X.isDirtyData=!0,j&&J.redraw()};P(Y,J),j=d(j,!0),q?q.firePointEvent("remove",null,rt):rt()},L.prototype.remove=function(O,j,Y,X){var G=this,q=G.chart;function Q(){G.destroy(X),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),d(O,!0)&&q.redraw(j)}Y!==!1?e(G,"remove",null,Q):Q()},L.prototype.update=function(O,j){O=p(O,this.userOptions),e(this,"update",{options:O});var Y,X,G=this,q=G.chart,Q=G.userOptions,J=G.initialType||G.type,rt=q.options.plotOptions,lt=v[J].prototype,gt=G.finishedAnimating&&{animation:!1},mt={},bt=["eventOptions","navigatorSeries","baseSeries"],yt=O.type||Q.type||q.options.chart.type,ht=!(this.hasDerivedData||yt&&yt!==this.type||O.pointStart!==void 0||O.pointInterval!==void 0||O.relativeXValue!==void 0||O.joinBy||O.mapData||G.hasOptionChanged("dataGrouping")||G.hasOptionChanged("pointStart")||G.hasOptionChanged("pointInterval")||G.hasOptionChanged("pointIntervalUnit")||G.hasOptionChanged("keys"));yt=yt||J,ht&&(bt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),O.visible!==!1&&bt.push("area","graph"),G.parallelArrays.forEach(function(St){bt.push(St+"Data")}),O.data&&(O.dataSorting&&i(G.options.dataSorting,O.dataSorting),this.setData(O.data,!1))),O=T(Q,gt,{index:Q.index===void 0?G.index:Q.index,pointStart:d(rt&&rt.series&&rt.series.pointStart,Q.pointStart,G.xData[0])},!ht&&{data:G.options.data},O),ht&&O.data&&(O.data=G.options.data),(bt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(bt)).forEach(function(St){bt[St]=G[St],delete G[St]});var et=!1;if(v[yt]){if(et=yt!==G.type,G.remove(!1,!1,!1,!0),et)if(Object.setPrototypeOf)Object.setPrototypeOf(G,v[yt].prototype);else{var at=Object.hasOwnProperty.call(G,"hcEvents")&&G.hcEvents;for(X in lt)G[X]=void 0;i(G,v[yt].prototype),at?G.hcEvents=at:delete G.hcEvents}}else t(17,!0,q,{missingModuleFor:yt});if(bt.forEach(function(St){G[St]=bt[St]}),G.init(q,O),ht&&this.points){if((Y=G.options).visible===!1)mt.graphic=1,mt.dataLabel=1;else if(!G._hasPointLabels){var dt=Y.marker,vt=Y.dataLabels,Ct=Q.marker||{};!dt||dt.enabled!==!1&&Ct.symbol===dt.symbol&&Ct.height===dt.height&&Ct.width===dt.width||(mt.graphic=1),vt&&vt.enabled===!1&&(mt.dataLabel=1)}for(var xt=0,wt=this.points;xt<wt.length;xt++){var Mt=wt[xt];Mt&&Mt.series&&(Mt.resolveColor(),Object.keys(mt).length&&Mt.destroyElements(mt),Y.showInLegend===!1&&Mt.legendItem&&q.legend.destroyItem(Mt))}}G.initialType=J,q.linkSeries(),et&&G.linkedSeries.length&&(G.isDirtyData=!0),e(this,"afterUpdate"),d(j,!0)&&q.redraw(!!ht&&void 0)},L.prototype.setName=function(O){this.name=this.options.name=this.userOptions.name=O,this.chart.isDirtyLegend=!0},L.prototype.hasOptionChanged=function(O){var j=this.chart,Y=this.options[O],X=j.options.plotOptions,G=this.userOptions[O];return G?Y!==G:Y!==d(X&&X[this.type]&&X[this.type][O],X&&X.series&&X.series[O],Y)},L.prototype.onMouseOver=function(){var O=this,j=O.chart,Y=j.hoverSeries;j.pointer.setHoverChartIndex(),Y&&Y!==O&&Y.onMouseOut(),O.options.events.mouseOver&&e(O,"mouseOver"),O.setState("hover"),j.hoverSeries=O},L.prototype.onMouseOut=function(){var O=this,j=O.options,Y=O.chart,X=Y.tooltip,G=Y.hoverPoint;Y.hoverSeries=null,G&&G.onMouseOut(),O&&j.events.mouseOut&&e(O,"mouseOut"),!X||O.stickyTracking||X.shared&&!O.noSharedTooltip||X.hide(),Y.series.forEach(function(q){q.setState("",!0)})},L.prototype.setState=function(O,j){var Y,X=this,G=X.options,q=X.graph,Q=G.inactiveOtherPoints,J=G.states,rt=d(J[O||"normal"]&&J[O||"normal"].animation,X.chart.options.chart.animation),lt=G.lineWidth,gt=0,mt=G.opacity;if(O=O||"",X.state!==O&&([X.group,X.markerGroup,X.dataLabelsGroup].forEach(function(bt){bt&&(X.state&&bt.removeClass("highcharts-series-"+X.state),O&&bt.addClass("highcharts-series-"+O))}),X.state=O,!X.chart.styledMode)){if(J[O]&&J[O].enabled===!1)return;if(O&&(lt=J[O].lineWidth||lt+(J[O].lineWidthPlus||0),mt=d(J[O].opacity,mt)),q&&!q.dashstyle&&l(lt))for(Y={"stroke-width":lt},q.animate(Y,rt);X["zone-graph-"+gt];)X["zone-graph-"+gt].animate(Y,rt),gt+=1;Q||[X.group,X.markerGroup,X.dataLabelsGroup,X.labelBySeries].forEach(function(bt){bt&&bt.animate({opacity:mt},rt)})}j&&Q&&X.points&&X.setAllPointsToState(O||void 0)},L.prototype.setAllPointsToState=function(O){this.points.forEach(function(j){j.setState&&j.setState(O)})},L.prototype.setVisible=function(O,j){var Y=this,X=Y.chart,G=X.options.chart.ignoreHiddenSeries,q=Y.visible;Y.visible=O=Y.options.visible=Y.userOptions.visible=O===void 0?!q:O;var Q=O?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(J){Y[J]&&Y[J][Q]()}),X.hoverSeries!==Y&&(X.hoverPoint&&X.hoverPoint.series)!==Y||Y.onMouseOut(),Y.legendItem&&X.legend.colorizeItem(Y,O),Y.isDirty=!0,Y.options.stacking&&X.series.forEach(function(J){J.options.stacking&&J.visible&&(J.isDirty=!0)}),Y.linkedSeries.forEach(function(J){J.setVisible(O,!1)}),G&&(X.isDirtyBox=!0),e(Y,Q),j!==!1&&X.redraw()},L.prototype.show=function(){this.setVisible(!0)},L.prototype.hide=function(){this.setVisible(!1)},L.prototype.select=function(O){var j=this;j.selected=O=this.options.selected=O===void 0?!j.selected:O,j.checkbox&&(j.checkbox.checked=O),e(j,O?"select":"unselect")},L.prototype.shouldShowTooltip=function(O,j,Y){return Y===void 0&&(Y={}),Y.series=this,Y.visiblePlotOnly=!0,this.chart.isInsidePlot(O,j,Y)},L.defaultOptions=U,L.types=z.seriesTypes,L.registerType=z.registerSeriesType,L}();return i(_.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),z.series=_,_}),it(B,"Extensions/ScrollablePlotArea.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Series/Series.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.stop,z=Z.addEvent,I=Z.createElement,E=Z.defined,M=Z.merge,P=Z.pick;z(H,"afterSetChartSize",function(y){var h,f,m,u=this.options.chart.scrollablePlotArea,v=u&&u.minWidth,w=u&&u.minHeight;this.renderer.forExport||(v?(this.scrollablePixelsX=h=Math.max(0,v-this.chartWidth),h&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.width=this.plotWidth+=h,this.inverted?this.clipBox.height+=h:this.clipBox.width+=h,m={1:{name:"right",value:h}})):w&&(this.scrollablePixelsY=f=Math.max(0,w-this.chartHeight),E(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,m={2:{name:"bottom",value:f}})),m&&!y.skipAxes&&this.axes.forEach(function(S){m[S.side]?S.getPlotLinePath=function(){var x,p=m[S.side].name,g=m[S.side].value,r=this[p];return this[p]=r-g,x=R.prototype.getPlotLinePath.apply(this,arguments),this[p]=r,x}:(S.setAxisSize(),S.setAxisTranslation())}))}),z(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){var y,h=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto"),this.scrollablePixelsY&&(f.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},f,this.scrollingParent),z(this.scrollingContainer,"scroll",function(){h.pointer&&(delete h.pointer.chartPosition,h.hoverPoint&&(y=h.hoverPoint),h.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},H.prototype.moveFixedElements=function(){var y,h=this.container,f=this.fixedRenderer,m=[".highcharts-breadcrumbs-group",".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"];this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(h.querySelectorAll(u),function(v){(v.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var y,h,f,m=!this.fixedDiv,u=this.options.chart,v=u.scrollablePlotArea,w=$.getRendererType();m?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(u.style&&u.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=y=new w(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||m)&&(this.scrollableDirty=!1,this.moveFixedElements()),h=this.chartWidth+(this.scrollablePixelsX||0),f=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=h+"px",this.container.style.height=f+"px",this.renderer.boxWrapper.attr({width:h,height:f,viewBox:[0,0,h,f].join(" ")}),this.chartBackground.attr({width:h,height:f}),this.scrollingContainer.style.height=this.chartHeight+"px",m&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY));var S,x=this.axisOffset,p=this.plotTop-x[0]-1,g=this.plotLeft-x[3]-1,r=this.plotTop+this.plotHeight+x[2]+1,a=this.plotLeft+this.plotWidth+x[1]+1,t=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),i=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);S=this.scrollablePixelsX?[["M",0,p],["L",this.plotLeft-1,p],["L",this.plotLeft-1,r],["L",0,r],["Z"],["M",t,p],["L",this.chartWidth,p],["L",this.chartWidth,r],["L",t,r],["Z"]]:this.scrollablePixelsY?[["M",g,0],["L",g,this.plotTop-1],["L",a,this.plotTop-1],["L",a,0],["Z"],["M",g,i],["L",g,this.chartHeight],["L",a,this.chartHeight],["L",a,i],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:S})},z(R,"afterInit",function(){this.chart.scrollableDirty=!0}),z(V,"show",function(){this.chart.scrollableDirty=!0})}),it(B,"Core/Axis/Stacking/StackItem.js",[B["Core/FormatUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.format,$=R.series,Z=H.destroyObjectProperties,U=H.pick,z=H.isNumber;return function(){function I(E,M,P,y,h){var f=E.chart.inverted,m=E.reversed;this.axis=E;var u=this.isNegative=!!P!=!!m;this.options=M=M||{},this.x=y,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=h,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:M.align||(f?u?"left":"right":"center"),verticalAlign:M.verticalAlign||(f?"middle":u?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(f?u?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var M=this.axis.chart,P=this.options,y=P.format,h=y?V(y,this,M):P.formatter.call(this);if(this.label)this.label.attr({text:h,visibility:"hidden"});else{this.label=M.renderer.label(h,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels");var f={r:P.borderRadius||0,text:h,padding:U(P.padding,5),visibility:"hidden"};M.styledMode||(f.fill=P.backgroundColor,f.stroke=P.borderColor,f["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(f),this.label.added||this.label.add(E)}this.label.labelrank=M.plotSizeY},I.prototype.setOffset=function(E,M,P,y,h,f){var m=this,u=m.alignOptions,v=m.axis,w=m.label,S=m.options,x=m.textAlign,p=v.chart,g=this.getStackBox({xOffset:E,width:M,boxBottom:P,boxTop:y,defaultX:h,xAxis:f}),r=u.verticalAlign;if(w&&g){var a=w.getBBox(),t=w.padding,i=U(S.overflow,"justify")==="justify",o=void 0;u.x=S.x||0,u.y=S.y||0;var e=this.adjustStackPosition({labelBox:a,verticalAlign:r,textAlign:x}),s=e.x,n=e.y;g.x-=s,g.y-=n,w.align(u,!1,g),(o=p.isInsidePlot(w.alignAttr.x+u.x+s,w.alignAttr.y+u.y+n))||(i=!1),i&&$.prototype.justifyDataLabel.call(v,w,u,w.alignAttr,a,g),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:S.rotation,rotationOriginX:a.width/2,rotationOriginY:a.height/2}),U(!i&&S.crop,!0)&&(o=z(w.x)&&z(w.y)&&p.isInsidePlot(w.x-t+w.width,w.y)&&p.isInsidePlot(w.x+t,w.y)),w[o?"show":"hide"]()}},I.prototype.adjustStackPosition=function(E){var M=E.labelBox,P=E.verticalAlign,y=E.textAlign,h={bottom:0,middle:1,top:2,right:1,center:0,left:-1},f=h[P],m=h[y];return{x:M.width/2+M.width/2*m,y:M.height/2*f}},I.prototype.getStackBox=function(E){var M=this.axis,P=M.chart,y=E.boxTop,h=E.defaultX,f=E.xOffset,m=E.width,u=E.boxBottom,v=M.stacking.usePercentage?100:U(y,this.total,0),w=M.toPixels(v),S=E.xAxis||P.xAxis[0],x=U(h,S.toPixels(this.x))+f,p=M.toPixels(u||0),g=Math.abs(w-p),r=P.inverted,a=this.isNegative;return r?{x:(a?w:w-g)-P.plotLeft,y:x-P.plotTop,width:g,height:m}:{x:x-P.plotLeft,y:(a?w-g:w)-P.plotTop,width:m,height:g}},I}()}),it(B,"Core/Axis/Stacking/StackingAxis.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.getDeferredAnimation,U=H.series.prototype,z=$.addEvent,I=$.correctFloat,E=$.defined,M=$.destroyObjectProperties,P=$.fireEvent,y=$.isArray,h=$.isNumber,f=$.objectEach,m=$.pick;function u(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,m(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join(","))})}function v(){var i=this.stacking;if(i){var o=i.stacks;f(o,function(e,s){M(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function w(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function S(i,o,e,s){return!E(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(","),i}function x(){var i,o=this,e=o.yAxis,s=o.stackKey,n=e.stacking.stacks,l=o.processedXData,b=o.options.stacking,T=o[b+"Stacker"];T&&[s,"-"+s].forEach(function(D){for(var d,C,A,N=l.length;N--;)d=l[N],i=o.getStackIndicator(i,d,o.index,D),(A=(C=n[D]&&n[D][d])&&C.points[i.key])&&T.call(o,A,C,N)})}function p(i,o,e){var s=o.total?100/o.total:0;i[0]=I(i[0]*s),i[1]=I(i[1]*s),this.stackedYData[e]=i[1]}function g(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?U.setStackedPoints.call(this,"group"):i&&f(i.stacks,function(o,e){e.slice(-5)==="group"&&(f(o,function(s){return s.destroy()}),delete i.stacks[e])})}function r(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var s,n,l,b,T,D,d,C,A,N=this,_=N.processedXData,L=N.processedYData,O=[],j=L.length,Y=N.options,X=Y.threshold,G=m(Y.startFromThreshold&&X,0),q=Y.stack,Q=i?""+N.type+",".concat(e):N.stackKey,J="-"+Q,rt=N.negStacks,lt=e==="group"?o.yAxis[0]:N.yAxis,gt=lt.stacking.stacks,mt=lt.stacking.oldStacks;for(lt.stacking.stacksTouched+=1,d=0;d<j;d++)C=_[d],A=L[d],D=(s=N.getStackIndicator(s,C,N.index)).key,gt[T=(n=rt&&A<(G?0:X))?J:Q]||(gt[T]={}),gt[T][C]||(mt[T]&&mt[T][C]?(gt[T][C]=mt[T][C],gt[T][C].total=null):gt[T][C]=new V(lt,lt.options.stackLabels,!!n,C,q)),l=gt[T][C],A!==null?(l.points[D]=l.points[N.index]=[m(l.cumulative,G)],E(l.cumulative)||(l.base=D),l.touched=lt.stacking.stacksTouched,s.index>0&&N.singleStacks===!1&&(l.points[D][0]=l.points[N.index+","+C+",0"][0])):l.points[D]=l.points[N.index]=null,e==="percent"?(b=n?Q:J,rt&&gt[b]&&gt[b][C]?(b=gt[b][C],l.total=b.total=Math.max(b.total,l.total)+Math.abs(A)||0):l.total=I(l.total+(Math.abs(A)||0))):e==="group"?(y(A)&&(A=A[0]),A!==null&&(l.total=(l.total||0)+1)):l.total=I(l.total+(A||0)),l.cumulative=e==="group"?(l.total||1)-1:m(l.cumulative,G)+(A||0),A!==null&&(l.points[D].push(l.cumulative),O[d]=l.cumulative,l.hasValidPoints=!0);e==="percent"&&(lt.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=O),lt.stacking.oldStacks={}}}var a,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e,s=this.axis,n=s.series,l=s.options.reversedStacks,b=n.length;for(this.usePercentage=!1,e=b;e--;)(o=n[l?e:b-e-1]).setStackedPoints(),o.setGroupedPoints();for(e=0;e<b;e++)n[e].modifyStacks();P(s,"afterBuildStacks")},i.prototype.cleanStacks=function(){var o,e=this;e.oldStacks&&(o=e.stacks=e.oldStacks),f(o,function(s){f(s,function(n){n.cumulative=n.total})})},i.prototype.resetStacks=function(){var o=this;f(this.stacks,function(e){f(e,function(s,n){h(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this,e=o.axis,s=e.chart,n=s.renderer,l=o.stacks,b=e.options.stackLabels&&e.options.stackLabels.animation,T=Z(s,b||!1),D=o.stackTotalGroup=o.stackTotalGroup||n.g("stack-labels").attr({zIndex:6,opacity:0}).add();D.translate(s.plotLeft,s.plotTop),f(l,function(d){f(d,function(C){C.render(D)})}),D.animate({opacity:1},T)},i}();return function(i){var o=[];i.compose=function(e,s,n){if(o.indexOf(e)===-1&&(o.push(e),z(e,"init",w),z(e,"destroy",v)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=u),o.indexOf(n)===-1){o.push(n);var l=n.prototype;l.getStackIndicator=S,l.modifyStacks=x,l.percentStacker=p,l.setGroupedPoints=g,l.setStackedPoints=r}}}(a||(a={})),a}),it(B,"Series/Line/LineSeries.js",[B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=H.defined,U=H.merge,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return $(E,I),E.prototype.drawGraph=function(){var M=this,P=this.options,y=(this.gappedPath||this.getGraphPath).call(this),h=this.chart.styledMode,f=[["graph","highcharts-graph"]];h||f[0].push(P.lineColor||this.color||"#cccccc",P.dashStyle),(f=M.getZonesGraphs(f)).forEach(function(m,u){var v,w=m[0],S=M[w],x=S?"animate":"attr";S?(S.endX=M.preventGraphAnimation?null:y.xMap,S.animate({d:y})):y.length&&(M[w]=S=M.chart.renderer.path(y).addClass(m[1]).attr({zIndex:1}).add(M.group)),S&&!h&&(v={stroke:m[2],"stroke-width":P.lineWidth||0,fill:M.fillGraph&&M.color||"none"},m[3]?v.dashstyle=m[3]:P.linecap!=="square"&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),S[x](v).shadow(u<2&&P.shadow)),S&&(S.startX=y.xMap,S.isArea=y.isArea)})},E.prototype.getGraphPath=function(M,P,y){var h,f=this,m=f.options,u=[],v=[],w=m.step,S=(M=M||f.points).reversed;return S&&M.reverse(),(w={right:1,center:2}[w]||w&&3)&&S&&(w=4-w),(M=this.getValidPoints(M,!1,!(m.connectNulls&&!P&&!y))).forEach(function(x,p){var g,r=x.plotX,a=x.plotY,t=M[p-1];(x.leftCliff||t&&t.rightCliff)&&!y&&(h=!0),x.isNull&&!Z(P)&&p>0?h=!m.connectNulls:x.isNull&&!P?h=!0:(p===0||h?g=[["M",x.plotX,x.plotY]]:f.getPointSpline?g=[f.getPointSpline(M,x,p)]:w?(g=w===1?[["L",t.plotX,a]]:w===2?[["L",(t.plotX+r)/2,t.plotY],["L",(t.plotX+r)/2,a]]:[["L",r,t.plotY]]).push(["L",r,a]):g=[["L",r,a]],v.push(x.x),w&&(v.push(x.x),w===2&&v.push(x.x)),u.push.apply(u,g),h=!1)}),u.xMap=v,f.graphPath=u,u},E.prototype.getZonesGraphs=function(M){return this.zones.forEach(function(P,y){var h=["zone-graph-"+y,"highcharts-graph highcharts-zone-graph-"+y+" "+(P.className||"")];this.chart.styledMode||h.push(P.color||this.color,P.dashStyle||this.options.dashStyle),M.push(h)},this),M},E.defaultOptions=U(W.defaultOptions,{}),E}(W);return R.registerSeriesType("line",z),z}),it(B,"Series/Area/AreaSeries.js",[B["Core/Color/Color.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(h,f){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},$(h,f)},function(h,f){function m(){this.constructor=h}$(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),U=W.parse,z=H.seriesTypes.line,I=V.extend,E=V.merge,M=V.objectEach,P=V.pick,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.data=void 0,m.options=void 0,m.points=void 0,m}return Z(f,h),f.prototype.drawGraph=function(){this.areaPath=[],h.prototype.drawGraph.apply(this);var m=this,u=this.areaPath,v=this.options,w=this.zones,S=[["area","highcharts-area",this.color,v.fillColor]];w.forEach(function(x,p){S.push(["zone-area-"+p,"highcharts-area highcharts-zone-area-"+p+" "+x.className,x.color||m.color,x.fillColor||v.fillColor])}),S.forEach(function(x){var p=x[0],g={},r=m[p],a=r?"animate":"attr";r?(r.endX=m.preventGraphAnimation?null:u.xMap,r.animate({d:u})):(g.zIndex=0,(r=m[p]=m.chart.renderer.path(u).addClass(x[1]).add(m.group)).isArea=!0),m.chart.styledMode||(g.fill=P(x[3],U(x[2]).setOpacity(P(v.fillOpacity,.75)).get())),r[a](g),r.startX=u.xMap,r.shiftUnit=v.step?2:1})},f.prototype.getGraphPath=function(m){var u,v,w,S=z.prototype.getGraphPath,x=this.options,p=x.stacking,g=this.yAxis,r=[],a=[],t=this.index,i=g.stacking.stacks[this.stackKey],o=x.threshold,e=Math.round(g.getThreshold(x.threshold)),s=P(x.connectNulls,p==="percent"),n=function(N,_,L){var O,j,Y=m[N],X=p&&i[Y.x].points[t],G=Y[L+"Null"]||0,q=Y[L+"Cliff"]||0,Q=!0;q||G?(O=(G?X[0]:X[1])+q,j=X[0]+q,Q=!!G):!p&&m[_]&&m[_].isNull&&(O=j=o),O!==void 0&&(a.push({plotX:u,plotY:O===null?e:g.getThreshold(O),isNull:Q,isCliff:!0}),r.push({plotX:u,plotY:j===null?e:g.getThreshold(j),doCurve:!1}))};m=m||this.points,p&&(m=this.getStackPoints(m));for(var l=0,b=m.length;l<b;++l)p||(m[l].leftCliff=m[l].rightCliff=m[l].leftNull=m[l].rightNull=void 0),v=m[l].isNull,u=P(m[l].rectPlotX,m[l].plotX),w=p?P(m[l].yBottom,e):e,v&&!s||(s||n(l,l-1,"left"),v&&!p&&s||(a.push(m[l]),r.push({x:l,plotX:u,plotY:w})),s||n(l,l+1,"right"));var T=S.call(this,a,!0,!0);r.reversed=!0;var D=S.call(this,r,!0,!0),d=D[0];d&&d[0]==="M"&&(D[0]=["L",d[1],d[2]]);var C=T.concat(D);C.length&&C.push(["Z"]);var A=S.call(this,a,!1,s);return C.xMap=T.xMap,this.areaPath=C,A},f.prototype.getStackPoints=function(m){var u=this,v=[],w=[],S=this.xAxis,x=this.yAxis,p=x.stacking.stacks[this.stackKey],g={},r=x.series,a=r.length,t=x.options.reversedStacks?1:-1,i=r.indexOf(u);if(m=m||this.points,this.options.stacking){for(var o=0;o<m.length;o++)m[o].leftNull=m[o].rightNull=void 0,g[m[o].x]=m[o];M(p,function(s,n){s.total!==null&&w.push(n)}),w.sort(function(s,n){return s-n});var e=r.map(function(s){return s.visible});w.forEach(function(s,n){var l,b,T=0;if(g[s]&&!g[s].isNull)v.push(g[s]),[-1,1].forEach(function(C){var A=C===1?"rightNull":"leftNull",N=C===1?"rightCliff":"leftCliff",_=p[w[n+C]],L=0;if(_)for(var O=i;O>=0&&O<a;){var j=r[O].index;(l=_.points[j])||(j===u.index?g[s][A]=!0:e[O]&&(b=p[s].points[j])&&(L-=b[1]-b[0])),O+=t}g[s][N]=L});else{for(var D=i;D>=0&&D<a;){var d=r[D].index;if(l=p[s].points[d]){T=l[1];break}D+=t}T=P(T,0),T=x.translate(T,0,1,0,1),v.push({isNull:!0,plotX:S.translate(s,0,0,0,1),x:s,plotY:T,yBottom:T})}})}return v},f.defaultOptions=E(z.defaultOptions,{threshold:0}),f}(z);return I(y.prototype,{singleStacks:!1,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("area",y),y}),it(B,"Series/Spline/SplineSeries.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(I,E){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},H(I,E)},function(I,E){function M(){this.constructor=I}H(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),$=W.seriesTypes.line,Z=R.merge,U=R.pick,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return V(E,I),E.prototype.getPointSpline=function(M,P,y){var h,f,m,u,v=1.5,w=2.5,S=P.plotX||0,x=P.plotY||0,p=M[y-1],g=M[y+1];function r(n){return n&&!n.isNull&&n.doCurve!==!1&&!P.isCliff}if(r(p)&&r(g)){var a=p.plotX||0,t=p.plotY||0,i=g.plotX||0,o=g.plotY||0,e=0;f=(v*x+t)/w,u=(v*x+o)/w,(m=(v*S+i)/w)!=(h=(v*S+a)/w)&&(e=(u-f)*(m-S)/(m-h)+x-u),u+=e,(f+=e)>t&&f>x?u=2*x-(f=Math.max(t,x)):f<t&&f<x&&(u=2*x-(f=Math.min(t,x))),u>o&&u>x?f=2*x-(u=Math.max(o,x)):u<o&&u<x&&(f=2*x-(u=Math.min(o,x))),P.rightContX=m,P.rightContY=u}var s=["C",U(p.rightContX,p.plotX,0),U(p.rightContY,p.plotY,0),U(h,S,0),U(f,x,0),S,x];return p.rightContX=p.rightContY=void 0,s},E.defaultOptions=Z($.defaultOptions),E}($);return W.registerSeriesType("spline",z),z}),it(B,"Series/AreaSpline/AreaSplineSeries.js",[B["Series/Spline/SplineSeries.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=H.seriesTypes,z=U.area,I=U.area.prototype,E=V.extend,M=V.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return Z(h,y),h.defaultOptions=M(W.defaultOptions,z.defaultOptions),h}(W);return E(P.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("areaspline",P),P}),it(B,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),it(B,"Series/Column/ColumnSeries.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Series/Column/ColumnSeriesDefaults.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(a,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),M=W.animObject,P=R.parse,y=V.hasTouch,h=V.noop,f=z.clamp,m=z.defined,u=z.extend,v=z.fireEvent,w=z.isArray,S=z.isNumber,x=z.merge,p=z.pick,g=z.objectEach,r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.borderWidth=void 0,i.data=void 0,i.group=void 0,i.options=void 0,i.points=void 0,i}return E(t,a),t.prototype.animate=function(i){var o,e,s=this,n=this.yAxis,l=s.options,b=this.chart.inverted,T={},D=b?"translateX":"translateY";i?(T.scaleY=.001,e=f(n.toPixels(l.threshold),n.pos,n.pos+n.len),b?T.translateX=e-n.len:T.translateY=e,s.clipBox&&s.setClip(),s.group.attr(T)):(o=Number(s.group.attr(D)),s.group.animate({scaleY:1},u(M(s.options.animation),{step:function(d,C){s.group&&(T[D]=o+C.pos*(n.pos-o),s.group.attr(T))}})))},t.prototype.init=function(i,o){a.prototype.init.apply(this,arguments);var e=this;(i=e.chart).hasRendered&&i.series.forEach(function(s){s.type===e.type&&(s.isDirty=!0)})},t.prototype.getColumnMetrics=function(){var i,o=this,e=o.options,s=o.xAxis,n=o.yAxis,l=s.options.reversedStacks,b=s.reversed&&!l||!s.reversed&&l,T={},D=0;e.grouping===!1?D=1:o.chart.series.forEach(function(L){var O,j=L.yAxis,Y=L.options;L.type!==o.type||!L.visible&&o.chart.options.chart.ignoreHiddenSeries||n.len!==j.len||n.pos!==j.pos||(Y.stacking&&Y.stacking!=="group"?(i=L.stackKey,T[i]===void 0&&(T[i]=D++),O=T[i]):Y.grouping!==!1&&(O=D++),L.columnIndex=O)});var d=Math.min(Math.abs(s.transA)*(s.ordinal&&s.ordinal.slope||e.pointRange||s.closestPointRange||s.tickInterval||1),s.len),C=d*e.groupPadding,A=(d-2*C)/(D||1),N=Math.min(e.maxPointWidth||s.len,p(e.pointWidth,A*(1-2*e.pointPadding))),_=(A-N)/2+(C+((o.columnIndex||0)+(b?1:0))*A-d/2)*(b?-1:1);return o.columnMetrics={width:N,offset:_,paddedWidth:A,columnCount:D},o.columnMetrics},t.prototype.crispCol=function(i,o,e,s){var n=this.chart,l=this.borderWidth,b=-(l%2?.5:0),T=l%2?.5:1;n.inverted&&n.renderer.isVML&&(T+=1),this.options.crisp&&(e=Math.round(i+e)+b-(i=Math.round(i)+b));var D=Math.round(o+s)+T,d=Math.abs(o)<=.5&&D>.5;return s=D-(o=Math.round(o)+T),d&&s&&(o-=1,s+=1),{x:i,y:o,width:e,height:s}},t.prototype.adjustForMissingColumns=function(i,o,e,s){var n=this,l=this.options.stacking;if(!e.isNull&&s.columnCount>1){var b=this.yAxis.options.reversedStacks,T=0,D=b?0:-s.columnCount;g(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(C){if(typeof e.x=="number"){var A=C[e.x.toString()];if(A){var N=A.points[n.index];if(l)N&&(T=D),A.hasValidPoints&&(b?D++:D--);else if(w(N)){var _=Object.keys(A.points).filter(function(L){return!L.match(",")&&A.points[L]&&A.points[L].length>1}).map(parseFloat).sort(function(L,O){return O-L});T=_.indexOf(n.index),D=_.length}}}});var d=(D-1)*s.paddedWidth+o;i=(e.plotX||0)+d/2-o-T*s.paddedWidth}return i},t.prototype.translate=function(){var i=this,o=i.chart,e=i.options,s=i.dense=i.closestPointRange*i.xAxis.transA<2,n=i.borderWidth=p(e.borderWidth,s?0:1),l=i.xAxis,b=i.yAxis,T=e.threshold,D=i.translatedThreshold=b.getThreshold(T),d=p(e.minPointLength,5),C=i.getColumnMetrics(),A=C.width,N=i.pointXOffset=C.offset,_=i.dataMin,L=i.dataMax,O=i.barW=Math.max(A,1+2*n);o.inverted&&(D-=.5),e.pointPadding&&(O=Math.ceil(O)),Z.prototype.translate.apply(i),i.points.forEach(function(j){var Y,X=p(j.yBottom,D),G=999+Math.abs(X),q=j.plotX||0,Q=f(j.plotY,-G,b.len+G),J=Math.min(Q,X),rt=Math.max(Q,X)-J,lt=A,gt=q+N,mt=O;d&&Math.abs(rt)<d&&(rt=d,Y=!b.reversed&&!j.negative||b.reversed&&j.negative,S(T)&&S(L)&&j.y===T&&L<=T&&(b.min||0)<T&&(_!==L||(b.max||0)<=T)&&(Y=!Y),J=Math.abs(J-D)>d?X-d:D-(Y?d:0)),m(j.options.pointWidth)&&(lt=mt=Math.ceil(j.options.pointWidth),gt-=Math.round((lt-A)/2)),e.centerInCategory&&(gt=i.adjustForMissingColumns(gt,lt,j,C)),j.barX=gt,j.pointWidth=lt,j.tooltipPos=o.inverted?[f(b.len+b.pos-o.plotLeft-Q,b.pos-o.plotLeft,b.len+b.pos-o.plotLeft),l.len+l.pos-o.plotTop-gt-mt/2,rt]:[l.left-o.plotLeft+gt+mt/2,f(Q+b.pos-o.plotTop,b.pos-o.plotTop,b.len+b.pos-o.plotTop),rt],j.shapeType=i.pointClass.prototype.shapeType||"rect",j.shapeArgs=i.crispCol.apply(i,j.isNull?[gt,D,mt,0]:[gt,J,mt,rt])})},t.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},t.prototype.pointAttribs=function(i,o){var e,s,n,l=this.options,b=this.pointAttrToOptions||{},T=b.stroke||"borderColor",D=b["stroke-width"]||"borderWidth",d=i&&i.color||this.color,C=i&&i[T]||l[T]||d,A=i&&i.options.dashStyle||l.dashStyle,N=i&&i[D]||l[D]||this[D]||0,_=p(i&&i.opacity,l.opacity,1);i&&this.zones.length&&(s=i.getZone(),d=i.options.color||s&&(s.color||i.nonZonedColor)||this.color,s&&(C=s.borderColor||C,A=s.dashStyle||A,N=s.borderWidth||N)),o&&i&&(n=(e=x(l.states[o],i.options.states&&i.options.states[o]||{})).brightness,d=e.color||n!==void 0&&P(d).brighten(e.brightness).get()||d,C=e[T]||C,N=e[D]||N,A=e.dashStyle||A,_=p(e.opacity,_));var L={fill:d,stroke:C,"stroke-width":N,opacity:_};return A&&(L.dashstyle=A),L},t.prototype.drawPoints=function(i){i===void 0&&(i=this.points);var o,e=this,s=this.chart,n=e.options,l=s.renderer,b=n.animationLimit||250;i.forEach(function(T){var D=T.plotY,d=T.graphic,C=!!d,A=d&&s.pointCount<b?"animate":"attr";S(D)&&T.y!==null?(o=T.shapeArgs,d&&T.hasNewShapeType()&&(d=d.destroy()),e.enabledDataSorting&&(T.startXPos=e.xAxis.reversed?-(o&&o.width||0):e.xAxis.width),d||(T.graphic=d=l[T.shapeType](o).add(T.group||e.group),d&&e.enabledDataSorting&&s.hasRendered&&s.pointCount<b&&(d.attr({x:T.startXPos}),C=!0,A="animate")),d&&C&&d[A](x(o)),n.borderRadius&&d[A]({r:n.borderRadius}),s.styledMode||d[A](e.pointAttribs(T,T.selected&&"select")).shadow(T.allowShadow!==!1&&n.shadow,null,n.stacking&&!n.borderRadius),d&&(d.addClass(T.getClassName(),!0),d.attr({visibility:T.visible?"inherit":"hidden"}))):d&&(T.graphic=d.destroy())})},t.prototype.drawTracker=function(i){i===void 0&&(i=this.points);var o,e=this,s=e.chart,n=s.pointer,l=function(b){var T=n.getPointFromEvent(b);T!==void 0&&(n.isDirectTouch=!0,T.onMouseOver(b))};i.forEach(function(b){o=w(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[],b.graphic&&(b.graphic.element.point=b),o.forEach(function(T){T.div?T.div.point=b:T.element.point=b})}),e._hasTracking||(e.trackerGroups.forEach(function(b){e[b]&&(e[b].addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(T){n.onTrackerMouseOut(T)}),y&&e[b].on("touchstart",l),!s.styledMode&&e.options.cursor&&e[b].css({cursor:e.options.cursor}))}),e._hasTracking=!0),v(this,"afterDrawTracker")},t.prototype.remove=function(){var i=this,o=i.chart;o.hasRendered&&o.series.forEach(function(e){e.type===i.type&&(e.isDirty=!0)}),Z.prototype.remove.apply(i,arguments)},t.defaultOptions=x(Z.defaultOptions,H),t}(Z);return u(r.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:h,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("column",r),r}),it(B,"Core/Series/DataLabel.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.getDeferredAnimation,Z=R.format,U=H.defined,z=H.extend,I=H.fireEvent,E=H.isArray,M=H.isString,P=H.merge,y=H.objectEach,h=H.pick,f=H.splat;return function(m){var u=[];function v(g,r,a,t,i){var o,e,s,n=this,l=this.chart,b=this.isCartesian&&l.inverted,T=this.enabledDataSorting,D=g.plotX,d=g.plotY,C=a.rotation,A=a.align,N=U(D)&&U(d)&&l.isInsidePlot(D,Math.round(d),{inverted:b,paneCoordinates:!0,series:n}),_=function(Q){T&&n.xAxis&&!L&&n.setDataLabelStartPos(g,r,i,N,Q)},L=h(a.overflow,T?"none":"justify")==="justify",O=this.visible&&g.visible!==!1&&U(D)&&(g.series.forceDL||T&&!L||N||h(a.inside,!!this.options.stacking)&&t&&l.isInsidePlot(D,b?t.x+1:t.y+t.height-1,{inverted:b,paneCoordinates:!0,series:n})),j=g.pos();if(O&&j){C&&r.attr({align:A});var Y=r.getBBox(!0),X=[0,0];if(o=l.renderer.fontMetrics(l.styledMode?void 0:a.style.fontSize,r).b,t=z({x:j[0],y:Math.round(j[1]),width:0,height:0},t),z(a,{width:Y.width,height:Y.height}),C?(L=!1,e=l.renderer.rotCorr(o,C),s={x:t.x+(a.x||0)+t.width/2+e.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},X=[Y.x-Number(r.attr("x")),Y.y-Number(r.attr("y"))],_(s),r[i?"attr":"animate"](s)):(_(t),r.align(a,void 0,t),s=r.alignAttr),L&&t.height>=0)this.justifyDataLabel(r,a,s,Y,t,i);else if(h(a.crop,!0)){var G=s.x,q=s.y;G+=X[0],q+=X[1],O=l.isInsidePlot(G,q,{paneCoordinates:!0,series:n})&&l.isInsidePlot(G+Y.width,q+Y.height,{paneCoordinates:!0,series:n})}a.shape&&!C&&r[i?"attr":"animate"]({anchorX:j[0],anchorY:j[1]})}i&&T&&(r.placed=!1),O||T&&!L?r.show():(r.hide(),r.placed=!1)}function w(g){g===void 0&&(g=this.points);var r,a=this,t=a.chart,i=a.options,o=a.hasRendered||0,e=t.renderer,s=t.options.chart,n=s.backgroundColor,l=s.plotBackgroundColor,b=e.getContrast(M(l)&&l||M(n)&&n||"#000000"),T=i.dataLabels,D=T.animation,d=T.defer?$(t,D,a):{defer:0,duration:0};if(T=x(x(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[a.type]&&t.options.plotOptions[a.type].dataLabels),T),I(this,"drawDataLabels"),E(T)||T.enabled||a._hasPointLabels){if((r=a.plotGroup("dataLabelsGroup","data-labels",o?"inherit":"hidden",T.zIndex||6)).attr({opacity:+o}),!o){var C=a.dataLabelsGroup;C&&(a.visible&&r.show(),C[i.animation?"animate":"attr"]({opacity:1},d))}g.forEach(function(A){f(x(T,A.dlOptions||A.options&&A.options.dataLabels)).forEach(function(N,_){var L,O,j,Y,X,G,q=N.enabled&&(!A.isNull||A.dataLabelOnNull)&&function(yt,ht){var et=ht.filter;if(et){var at=et.operator,dt=yt[et.property],vt=et.value;return at===">"&&dt>vt||at==="<"&&dt<vt||at===">="&&dt>=vt||at==="<="&&dt<=vt||at==="=="&&dt==vt||at==="==="&&dt===vt}return!0}(A,N),Q=A.connectors?A.connectors[_]:A.connector,J=A.dataLabels?A.dataLabels[_]:A.dataLabel,rt=!J,lt=h(N.distance,A.labelDistance);if(q){if(L=A.getLabelConfig(),O=h(N[A.formatPrefix+"Format"],N.format),j=U(O)?Z(O,L,t):(N[A.formatPrefix+"Formatter"]||N.formatter).call(L,N),Y=N.style,X=N.rotation,t.styledMode||(Y.color=h(N.color,Y.color,a.color,"#000000"),Y.color==="contrast"?(A.contrastColor=e.getContrast(A.color||a.color),Y.color=!U(lt)&&N.inside||lt<0||i.stacking?A.contrastColor:b):delete A.contrastColor,i.cursor&&(Y.cursor=i.cursor)),G={r:N.borderRadius||0,rotation:X,padding:N.padding,zIndex:1},!t.styledMode){var gt=N.backgroundColor,mt=N.borderColor;G.fill=gt==="auto"?A.color:gt,G.stroke=mt==="auto"?A.color:mt,G["stroke-width"]=N.borderWidth}y(G,function(yt,ht){yt===void 0&&delete G[ht]})}if(!J||q&&U(j)&&!!J.div==!!N.useHTML&&(J.rotation&&N.rotation||J.rotation===N.rotation)||(rt=!0,A.dataLabel=J=A.dataLabel&&A.dataLabel.destroy(),A.dataLabels&&(A.dataLabels.length===1?delete A.dataLabels:delete A.dataLabels[_]),_||delete A.dataLabel,Q&&(A.connector=A.connector.destroy(),A.connectors&&(A.connectors.length===1?delete A.connectors:delete A.connectors[_]))),q&&U(j)){J?G.text=j:(A.dataLabels=A.dataLabels||[],J=A.dataLabels[_]=X?e.text(j,0,0,N.useHTML).addClass("highcharts-data-label"):e.label(j,0,0,N.shape,null,null,N.useHTML,null,"data-label"),_||(A.dataLabel=J),J.addClass(" highcharts-data-label-color-"+A.colorIndex+" "+(N.className||"")+(N.useHTML?" highcharts-tracker":""))),J.options=N,J.attr(G),t.styledMode||J.css(Y).shadow(N.shadow);var bt=N[A.formatPrefix+"TextPath"]||N.textPath;bt&&!N.useHTML&&(J.setTextPath(A.getDataLabelPath&&A.getDataLabelPath(J)||A.graphic,bt),A.dataLabelPath&&!bt.enabled&&(A.dataLabelPath=A.dataLabelPath.destroy())),J.added||J.add(r),a.alignDataLabel(A,J,N,null,rt)}else J&&J.hide()})})}I(this,"afterDrawDataLabels")}function S(g,r,a,t,i,o){var e,s,n=this.chart,l=r.align,b=r.verticalAlign,T=g.box?0:g.padding||0,D=r.x,d=D===void 0?0:D,C=r.y,A=C===void 0?0:C;return(e=(a.x||0)+T)<0&&(l==="right"&&d>=0?(r.align="left",r.inside=!0):d-=e,s=!0),(e=(a.x||0)+t.width-T)>n.plotWidth&&(l==="left"&&d<=0?(r.align="right",r.inside=!0):d+=n.plotWidth-e,s=!0),(e=a.y+T)<0&&(b==="bottom"&&A>=0?(r.verticalAlign="top",r.inside=!0):A-=e,s=!0),(e=(a.y||0)+t.height-T)>n.plotHeight&&(b==="top"&&A<=0?(r.verticalAlign="bottom",r.inside=!0):A+=n.plotHeight-e,s=!0),s&&(r.x=d,r.y=A,g.placed=!o,g.align(r,void 0,i)),s}function x(g,r){var a,t=[];if(E(g)&&!E(r))t=g.map(function(i){return P(i,r)});else if(E(r)&&!E(g))t=r.map(function(i){return P(g,i)});else if(E(g)||E(r))for(a=Math.max(g.length,r.length);a--;)t[a]=P(g[a],r[a]);else t=P(g,r);return t}function p(g,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,l=e?r.height/2:r.width/2,b=g.pointWidth,T=b?b/2:0;r.startXPos=e?i.x:n?-l-T:s.width-l+T,r.startYPos=e?n?this.yAxis.height-l+T:-l-T:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}m.compose=function(g){if(u.indexOf(g)===-1){var r=g.prototype;u.push(g),r.alignDataLabel=v,r.drawDataLabels=w,r.justifyDataLabel=S,r.setDataLabelStartPos=p}}}(V||(V={})),V}),it(B,"Series/Column/ColumnDataLabel.js",[B["Core/Series/DataLabel.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=R.series,Z=H.merge,U=H.pick;return function(z){var I=[];function E(M,P,y,h,f){var m,u=this.chart.inverted,v=M.series,w=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0,S=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0,x=M.dlBox||M.shapeArgs,p=U(M.below,M.plotY>U(this.translatedThreshold,S)),g=U(y.inside,!!this.options.stacking);x&&((h=Z(x)).y<0&&(h.height+=h.y,h.y=0),(m=h.y+h.height-S)>0&&m<h.height&&(h.height-=m),u&&(h={x:S-h.y-h.height,y:w-h.x-h.width,width:h.height,height:h.width}),g||(u?(h.x+=p?0:h.width,h.width=0):(h.y+=p?h.height:0,h.height=0))),y.align=U(y.align,!u||g?"center":p?"right":"left"),y.verticalAlign=U(y.verticalAlign,u||g?"middle":p?"top":"bottom"),$.prototype.alignDataLabel.call(this,M,P,y,h,f),y.inside&&M.contrastColor&&P.css({color:M.contrastColor})}z.compose=function(M){W.compose($),I.indexOf(M)===-1&&(I.push(M),M.prototype.alignDataLabel=E)}}(V||(V={})),V}),it(B,"Series/Bar/BarSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=H.extend,U=H.merge,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return $(E,I),E.defaultOptions=U(W.defaultOptions,{}),E}(W);return Z(z.prototype,{inverted:!0}),R.registerSeriesType("bar",z),z}),it(B,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),it(B,"Series/Scatter/ScatterSeries.js",[B["Series/Scatter/ScatterSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},V(y,h)},function(y,h){function f(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=R.seriesTypes,U=Z.column,z=Z.line,I=H.addEvent,E=H.extend,M=H.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return $(h,y),h.prototype.applyJitter=function(){var f=this,m=this.options.jitter,u=this.points.length;m&&this.points.forEach(function(v,w){["x","y"].forEach(function(S,x){var p,g,r,a,t,i,o="plot"+S.toUpperCase();m[S]&&!v.isNull&&(p=f[S+"Axis"],a=m[S]*p.transA,p&&!p.isLog&&(g=Math.max(0,v[o]-a),r=Math.min(p.len,v[o]+a),v[o]=g+(r-g)*(t=w+x*u,(i=1e4*Math.sin(t))-Math.floor(i)),S==="x"&&(v.clientX=v.plotX)))})})},h.prototype.drawGraph=function(){this.options.lineWidth?y.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},h.defaultOptions=M(z.defaultOptions,W),h}(z);return E(P.prototype,{drawTracker:U.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),I(P,"afterTranslate",function(){this.applyJitter()}),R.registerSeriesType("scatter",P),P}),it(B,"Series/CenteredUtilities.js",[B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.deg2rad,Z=H.fireEvent,U=H.isNumber,z=H.pick,I=H.relativeLength;return function(E){E.getCenter=function(){var M,P,y,h=this.options,f=this.chart,m=2*(h.slicedOffset||0),u=f.plotWidth-2*m,v=f.plotHeight-2*m,w=h.center,S=Math.min(u,v),x=h.thickness,p=h.size,g=h.innerSize||0;typeof p=="string"&&(p=parseFloat(p)),typeof g=="string"&&(g=parseFloat(g));var r=[z(w[0],"50%"),z(w[1],"50%"),z(p&&p<0?void 0:h.size,"100%"),z(g&&g<0?void 0:h.innerSize||0,"0%")];for(!f.angular||this instanceof R||(r[3]=0),P=0;P<4;++P)y=r[P],M=P<2||P===2&&/%$/.test(y),r[P]=I(y,[u,v,S,r[2]][P])+(M?m:0);return r[3]>r[2]&&(r[3]=r[2]),U(x)&&2*x<r[2]&&x>0&&(r[3]=r[2]-2*x),Z(this,"afterGetCenter",{positions:r}),r},E.getStartAndEndRadians=function(M,P){var y=U(M)?M:0,h=U(P)&&P>y&&P-y<360?P:y+360;return{start:$*(y+-90),end:$*(h+-90)}}}(V||(V={})),V}),it(B,"Series/Pie/PiePoint.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(h,f){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},V(h,f)},function(h,f){function m(){this.constructor=h}V(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),Z=W.setAnimation,U=H.addEvent,z=H.defined,I=H.extend,E=H.isNumber,M=H.pick,P=H.relativeLength,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.labelDistance=void 0,m.options=void 0,m.series=void 0,m}return $(f,h),f.prototype.getConnectorPath=function(){var m=this.labelPosition,u=this.series.options.dataLabels,v=this.connectorShapes,w=u.connectorShape;return v[w]&&(w=v[w]),w.call(this,{x:m.final.x,y:m.final.y,alignment:m.alignment},m.connectorPosition,u)},f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},f.prototype.haloPath=function(m){var u=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(u.x,u.y,u.r+m,u.r+m,{innerR:u.r-1,start:u.start,end:u.end})},f.prototype.init=function(){var m=this;h.prototype.init.apply(this,arguments),this.name=M(this.name,"Slice");var u=function(v){m.slice(v.type==="select")};return U(this,"select",u),U(this,"unselect",u),this},f.prototype.isValid=function(){return E(this.y)&&this.y>=0},f.prototype.setVisible=function(m,u){var v=this,w=this.series,S=w.chart,x=w.options.ignoreHiddenPoint;u=M(u,x),m!==this.visible&&(this.visible=this.options.visible=m=m===void 0?!this.visible:m,w.options.data[w.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(p){v[p]&&v[p][m?"show":"hide"](m)}),this.legendItem&&S.legend.colorizeItem(this,m),m||this.state!=="hover"||this.setState(""),x&&(w.isDirty=!0),u&&S.redraw())},f.prototype.slice=function(m,u,v){var w=this.series,S=w.chart;Z(v,S),u=M(u,!0),this.sliced=this.options.sliced=m=z(m)?m:!this.sliced,w.options.data[w.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},f}(R);return I(y.prototype,{connectorShapes:{fixedOffset:function(h,f,m){var u=f.breakAt,v=f.touchingSliceAt,w=m.softConnector?["C",h.x+(h.alignment==="left"?-5:5),h.y,2*u.x-v.x,2*u.y-v.y,u.x,u.y]:["L",u.x,u.y];return[["M",h.x,h.y],w,["L",v.x,v.y]]},straight:function(h,f){var m=f.touchingSliceAt;return[["M",h.x,h.y],["L",m.x,m.y]]},crookedLine:function(h,f,m){var u=f.touchingSliceAt,v=this.series,w=v.center[0],S=v.chart.plotWidth,x=v.chart.plotLeft,p=h.alignment,g=this.shapeArgs.r,r=P(m.crookDistance,1),a=p==="left"?w+g+(S+x-w-g)*(1-r):x+(w-g)*r,t=["L",a,h.y],i=!0;(p==="left"?a>h.x||a<u.x:a<h.x||a>u.x)&&(i=!1);var o=[["M",h.x,h.y]];return i&&o.push(t),o.push(["L",u.x,u.y]),o}}}),y}),it(B,"Series/Pie/PieSeriesDefaults.js",[],function(){return{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",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),it(B,"Series/Pie/PieSeries.js",[B["Series/CenteredUtilities.js"],B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Series/Pie/PiePoint.js"],B["Series/Pie/PieSeriesDefaults.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/Symbols.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,P=this&&this.__extends||(M=function(p,g){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},M(p,g)},function(p,g){function r(){this.constructor=p}M(p,g),p.prototype=g===null?Object.create(g):(r.prototype=g.prototype,new r)}),y=W.getStartAndEndRadians,h=H.noop,f=E.clamp,m=E.extend,u=E.fireEvent,v=E.merge,w=E.pick,S=E.relativeLength,x=function(p){function g(){var r=p!==null&&p.apply(this,arguments)||this;return r.center=void 0,r.data=void 0,r.maxLabelDistance=void 0,r.options=void 0,r.points=void 0,r}return P(g,p),g.prototype.animate=function(r){var a=this,t=a.points,i=a.startAngleRad;r||t.forEach(function(o){var e=o.graphic,s=o.shapeArgs;e&&s&&(e.attr({r:w(o.startR,a.center&&a.center[3]/2),start:i,end:i}),e.animate({r:s.r,start:s.start,end:s.end},a.options.animation))})},g.prototype.drawEmpty=function(){var r,a,t=this.startAngleRad,i=this.endAngleRad,o=this.options;this.total===0&&this.center?(r=this.center[0],a=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,t,i).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:t,end:i,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},g.prototype.drawPoints=function(){var r=this.chart.renderer;this.points.forEach(function(a){a.graphic&&a.hasNewShapeType()&&(a.graphic=a.graphic.destroy()),a.graphic||(a.graphic=r[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})},g.prototype.generatePoints=function(){p.prototype.generatePoints.call(this),this.updateTotals()},g.prototype.getX=function(r,a,t){var i=this.center,o=this.radii?this.radii[t.index]||0:i[2]/2,e=Math.asin(f((r-i[1])/(o+t.labelDistance),-1,1));return i[0]+(a?-1:1)*(Math.cos(e)*(o+t.labelDistance))+(t.labelDistance>0?(a?-1:1)*this.options.dataLabels.padding:0)},g.prototype.hasData=function(){return!!this.processedXData.length},g.prototype.redrawPoints=function(){var r,a,t,i,o=this,e=o.chart,s=e.renderer,n=o.options.shadow;this.drawEmpty(),!n||o.shadowGroup||e.styledMode||(o.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(l){var b={};if(a=l.graphic,!l.isNull&&a){var T=void 0;i=l.shapeArgs,r=l.getTranslate(),e.styledMode||(T=l.shadowGroup,n&&!T&&(T=l.shadowGroup=s.g("shadow").add(o.shadowGroup)),T&&T.attr(r),t=o.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(a.setRadialReference(o.center).attr(i).attr(r),e.styledMode||a.attr(t).attr({"stroke-linejoin":"round"}).shadow(n,T),l.delayedRendering=!1):(a.setRadialReference(o.center),e.styledMode||v(!0,b,t),v(!0,b,i,r),a.animate(b)),a.attr({visibility:l.visible?"inherit":"hidden"}),a.addClass(l.getClassName(),!0)}else a&&(l.graphic=a.destroy())})},g.prototype.sortByAngle=function(r,a){r.sort(function(t,i){return t.angle!==void 0&&(i.angle-t.angle)*a})},g.prototype.translate=function(r){u(this,"translate"),this.generatePoints();var a,t,i,o,e,s,n,l,b=this,T=1e3,D=b.options,d=D.slicedOffset,C=d+(D.borderWidth||0),A=y(D.startAngle,D.endAngle),N=b.startAngleRad=A.start,_=(b.endAngleRad=A.end)-N,L=b.points,O=D.dataLabels.distance,j=D.ignoreHiddenPoint,Y=L.length,X=0;for(r||(b.center=r=b.getCenter()),n=0;n<Y;n++){t=N+X*_,!(l=L[n]).isValid()||j&&!l.visible||(X+=l.percentage/100),i=N+X*_;var G={x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2,start:Math.round(t*T)/T,end:Math.round(i*T)/T};l.shapeType="arc",l.shapeArgs=G,l.labelDistance=w(l.options.dataLabels&&l.options.dataLabels.distance,O),l.labelDistance=S(l.labelDistance,G.r),b.maxLabelDistance=Math.max(b.maxLabelDistance||0,l.labelDistance),(o=(i+t)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(o)*d),translateY:Math.round(Math.sin(o)*d)},e=Math.cos(o)*r[2]/2,s=Math.sin(o)*r[2]/2,l.tooltipPos=[r[0]+.7*e,r[1]+.7*s],l.half=o<-Math.PI/2||o>Math.PI/2?1:0,l.angle=o,a=Math.min(C,l.labelDistance/5),l.labelPosition={natural:{x:r[0]+e+Math.cos(o)*l.labelDistance,y:r[1]+s+Math.sin(o)*l.labelDistance},final:{},alignment:l.labelDistance<0?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:r[0]+e+Math.cos(o)*a,y:r[1]+s+Math.sin(o)*a},touchingSliceAt:{x:r[0]+e,y:r[1]+s}}}}u(b,"afterTranslate")},g.prototype.updateTotals=function(){var r,a,t=this.points,i=t.length,o=this.options.ignoreHiddenPoint,e=0;for(r=0;r<i;r++)!(a=t[r]).isValid()||o&&!a.visible||(e+=a.y);for(this.total=e,r=0;r<i;r++)(a=t[r]).percentage=e>0&&(a.visible||!o)?a.y/e*100:0,a.total=e},g.defaultOptions=v(U.defaultOptions,Z),g}(U);return m(x.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:V.drawRectangle,drawTracker:R.prototype.drawTracker,getCenter:W.getCenter,getSymbol:h,isCartesian:!1,noSharedTooltip:!0,pointAttribs:R.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:h,trackerGroups:["group","dataLabelsGroup"]}),z.registerSeriesType("pie",x),x}),it(B,"Series/Pie/PieDataLabel.js",[B["Core/Series/DataLabel.js"],B["Core/Globals.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=R.noop,z=H.distribute,I=V.series,E=$.arrayMax,M=$.clamp,P=$.defined,y=$.merge,h=$.pick,f=$.relativeLength;return function(m){var u=[],v={radialDistributionY:function(p){return p.top+p.distributeBox.pos},radialDistributionX:function(p,g,r,a){return p.getX(r<g.top+2||r>g.bottom-2?a:r,g.half,g)},justify:function(p,g,r){return r[0]+(p.half?-1:1)*(g+p.labelDistance)},alignToPlotEdges:function(p,g,r,a){var t=p.getBBox().width;return g?t+a:r-t-a},alignToConnectors:function(p,g,r,a){var t,i=0;return p.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),g?i+a:r-i-a}};function w(){var p,g,r,a,t,i,o,e,s,n,l,b,T=this,D=T.data,d=T.chart,C=T.options.dataLabels||{},A=C.connectorPadding,N=d.plotWidth,_=d.plotHeight,L=d.plotLeft,O=Math.round(d.chartWidth/3),j=T.center,Y=j[2]/2,X=j[1],G=[[],[]],q=[0,0,0,0],Q=T.dataLabelPositioners;T.visible&&(C.enabled||T._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(T),D.forEach(function(J){J.dataLabel&&(J.visible?(G[J.half].push(J),J.dataLabel._pos=null,P(C.style.width)||P(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)||J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),G.forEach(function(J,rt){var lt,gt,mt,bt,yt,ht,et=J.length,at=[];if(et)for(T.sortByAngle(J,rt-.5),T.maxLabelDistance>0&&(lt=Math.max(0,X-Y-T.maxLabelDistance),gt=Math.min(X+Y+T.maxLabelDistance,d.plotHeight),J.forEach(function(dt){dt.labelDistance>0&&dt.dataLabel&&(dt.top=Math.max(0,X-Y-dt.labelDistance),dt.bottom=Math.min(X+Y+dt.labelDistance,d.plotHeight),yt=dt.dataLabel.getBBox().height||21,dt.distributeBox={target:dt.labelPosition.natural.y-dt.top+yt/2,size:yt,rank:dt.y},at.push(dt.distributeBox))}),z(at,ht=gt+yt-lt,ht/5)),l=0;l<et;l++){if(p=J[l],i=p.labelPosition,a=p.dataLabel,n=p.visible===!1?"hidden":"inherit",mt=i.natural.y,s=mt,at&&P(p.distributeBox)&&(p.distributeBox.pos===void 0?n="hidden":(o=p.distributeBox.size,s=Q.radialDistributionY(p))),delete p.positionIndex,C.justify)e=Q.justify(p,Y,j);else switch(C.alignTo){case"connectors":e=Q.alignToConnectors(J,rt,N,L);break;case"plotEdges":e=Q.alignToPlotEdges(a,rt,N,L);break;default:e=Q.radialDistributionX(T,p,s,mt)}a._attr={visibility:n,align:i.alignment},b=p.options.dataLabels||{},a._pos={x:e+h(b.x,C.x)+({left:A,right:-A}[i.alignment]||0),y:s+h(b.y,C.y)-10},i.final.x=e,i.final.y=s,h(C.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<A&&rt===1?(bt=Math.round(t-e+A),q[3]=Math.max(bt,q[3])):e+t>N-A&&rt===0&&(bt=Math.round(e+t-N+A),q[1]=Math.max(bt,q[1])),s-o/2<0?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>_&&(q[2]=Math.max(Math.round(s+o/2-_),q[2])),a.sideOverflow=bt)}}),(E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){if(b=y(C,J.options.dataLabels),g=h(b.connectorWidth,1)){var rt=void 0;r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&J.labelDistance>0?(n=a._attr.visibility,(rt=!r)&&(J.connector=r=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(T.dataLabelsGroup),d.styledMode||r.attr({"stroke-width":g,stroke:b.connectorColor||J.color||"#666666"})),r[rt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy())}})))}function S(){this.points.forEach(function(p){var g,r=p.dataLabel;r&&p.visible&&((g=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](g),r.moved=!0):r&&r.attr({y:-9999})),delete p.distributeBox},this)}function x(p){var g=this.center,r=this.options,a=r.center,t=r.minSize||80,i=t,o=r.size!==null;return o||(a[0]!==null?i=Math.max(g[2]-Math.max(p[1],p[3]),t):(i=Math.max(g[2]-p[1]-p[3],t),g[0]+=(p[3]-p[1])/2),a[1]!==null?i=M(i,t,g[2]-Math.max(p[0],p[2])):(i=M(i,t,g[2]-p[0]-p[2]),g[1]+=(p[0]-p[2])/2),i<g[2]?(g[2]=i,g[3]=Math.min(r.thickness?Math.max(0,i-2*r.thickness):Math.max(0,f(r.innerSize||0,i)),i),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}m.compose=function(p){if(W.compose(I),u.indexOf(p)===-1){u.push(p);var g=p.prototype;g.dataLabelPositioners=v,g.alignDataLabel=U,g.drawDataLabels=w,g.placeDataLabels=S,g.verifyDataLabelOverflow=x}}}(Z||(Z={})),Z}),it(B,"Extensions/OverlappingDataLabels.js",[B["Core/Chart/Chart.js"],B["Core/Utilities.js"]],function(W,R){var H=R.addEvent,V=R.fireEvent,$=R.isArray,Z=R.isNumber,U=R.objectEach,z=R.pick;function I(E,M){var P,y,h=!1;return E&&(y=E.newOpacity,E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=function(){M.styledMode||E.css({pointerEvents:y?"auto":"none"})},h=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,P),V(M,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0),h}H(W,"render",function(){var E=this,M=[];(this.labelCollectors||[]).forEach(function(P){M=M.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&U(P.stacking.stacks,function(y){U(y,function(h){h.label&&M.push(h.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;if(P.visible&&(y.enabled!==!1||P._hasPointLabels)){var h=function(f){return f.forEach(function(m){m.visible&&($(m.dataLabels)?m.dataLabels:m.dataLabel?[m.dataLabel]:[]).forEach(function(u){var v=u.options;u.labelrank=z(v.labelrank,m.labelrank,m.shapeArgs&&m.shapeArgs.height),v.allowOverlap?(u.oldOpacity=u.opacity,u.newOpacity=1,I(u,E)):M.push(u)})})};h(P.nodes||[]),h(P.points)}}),this.hideOverlappingLabels(M)}),W.prototype.hideOverlappingLabels=function(E){var M,P,y,h,f,m,u,v=this,w=E.length,S=v.renderer,x=!1,p=function(r,a){return!(a.x>=r.x+r.width||a.x+a.width<=r.x||a.y>=r.y+r.height||a.y+a.height<=r.y)},g=function(r){var a,t,i,o,e,s=r.box?0:r.padding||0,n=0,l=0;if(r&&(!r.alignAttr||r.placed))return a=r.alignAttr||{x:r.attr("x"),y:r.attr("y")},t=r.parentGroup,r.width||(i=r.getBBox(),r.width=i.width,r.height=i.height,n=S.fontMetrics(null,r.element).h),o=r.width-2*s,(e={left:"0",center:"0.5",right:"1"}[r.alignValue])?l=+e*o:Z(r.x)&&Math.round(r.x)!==r.translateX&&(l=r.x-r.translateX),{x:a.x+(t.translateX||0)+s-(l||0),y:a.y+(t.translateY||0)+s-n,width:r.width-2*s,height:r.height-2*s}};for(P=0;P<w;P++)(M=E[P])&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=g(M));for(E.sort(function(r,a){return(a.labelrank||0)-(r.labelrank||0)}),P=0;P<w;P++)for(m=(h=E[P])&&h.absoluteBox,y=P+1;y<w;++y)u=(f=E[y])&&f.absoluteBox,m&&u&&h!==f&&h.newOpacity!==0&&f.newOpacity!==0&&h.visibility!=="hidden"&&f.visibility!=="hidden"&&p(m,u)&&((h.labelrank<f.labelrank?h:f).newOpacity=0);E.forEach(function(r){I(r,v)&&(x=!0)}),x&&V(v,"afterHideAllOverlappingLabels")}}),it(B,"Core/Responsive.js",[B["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.find,$=W.isArray,Z=W.isObject,U=W.merge,z=W.objectEach,I=W.pick,E=W.splat,M=W.uniqueKey;return function(P){var y=[];P.compose=function(f){return y.indexOf(f)===-1&&(y.push(f),H(f.prototype,h.prototype)),f};var h=function(){function f(){}return f.prototype.currentOptions=function(m){var u=this,v={};return function w(S,x,p,g){var r;z(S,function(a,t){if(!g&&u.collectionsWithUpdate.indexOf(t)>-1&&x[t])for(a=E(a),p[t]=[],r=0;r<Math.max(a.length,x[t].length);r++)x[t][r]&&(a[r]===void 0?p[t][r]=x[t][r]:(p[t][r]={},w(a[r],x[t][r],p[t][r],g+1)));else Z(a)?(p[t]=$(a)?[]:{},w(a,x[t]||{},p[t],g+1)):x[t]===void 0?p[t]=null:p[t]=x[t]})}(m,this.options,v,0),v},f.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},f.prototype.setResponsive=function(m,u){var v,w=this,S=this.options.responsive,x=this.currentResponsive,p=[];!u&&S&&S.rules&&S.rules.forEach(function(a){a._id===void 0&&(a._id=M()),w.matchResponsiveRule(a,p)},this);var g=U.apply(void 0,p.map(function(a){return V((S||{}).rules||[],function(t){return t._id===a})}).map(function(a){return a&&a.chartOptions}));g.isResponsiveOptions=!0,p=p.toString()||void 0;var r=x&&x.ruleIds;p!==r&&(x&&this.update(x.undoOptions,m,!0),p?((v=this.currentOptions(g)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:p,mergedOptions:g,undoOptions:v},this.update(g,m,!0)):this.currentResponsive=void 0)},f}()}(R||(R={})),R}),it(B,"masters/highcharts.src.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/Defaults.js"],B["Core/Animation/Fx.js"],B["Core/Animation/AnimationUtilities.js"],B["Core/Renderer/HTML/AST.js"],B["Core/FormatUtilities.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Renderer/HTML/HTMLElement.js"],B["Core/Renderer/HTML/HTMLRenderer.js"],B["Core/Axis/Axis.js"],B["Core/Axis/DateTimeAxis.js"],B["Core/Axis/LogarithmicAxis.js"],B["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],B["Core/Axis/Tick.js"],B["Core/Tooltip.js"],B["Core/Series/Point.js"],B["Core/Pointer.js"],B["Core/MSPointer.js"],B["Core/Legend/Legend.js"],B["Core/Chart/Chart.js"],B["Core/Axis/Stacking/StackingAxis.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Column/ColumnSeries.js"],B["Series/Column/ColumnDataLabel.js"],B["Series/Pie/PieSeries.js"],B["Series/Pie/PieDataLabel.js"],B["Core/Series/DataLabel.js"],B["Core/Responsive.js"],B["Core/Color/Color.js"],B["Core/Time.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P,y,h,f,m,u,v,w,S,x,p,g,r,a,t,i,o,e,s,n,l,b,T,D){var d=W;return d.animate=$.animate,d.animObject=$.animObject,d.getDeferredAnimation=$.getDeferredAnimation,d.setAnimation=$.setAnimation,d.stop=$.stop,d.timers=V.timers,d.AST=Z,d.Axis=y,d.Chart=g,d.chart=g.chart,d.Fx=V,d.Legend=p,d.PlotLineOrBand=m,d.Point=w,d.Pointer=x.isRequired()?x:S,d.Series=t,d.StackItem=a,d.SVGElement=I,d.SVGRenderer=E,d.Tick=u,d.Time=D,d.Tooltip=v,d.Color=T,d.color=T.parse,P.compose(E),M.compose(I),d.defaultOptions=H.defaultOptions,d.getOptions=H.getOptions,d.time=H.defaultTime,d.setOptions=H.setOptions,d.dateFormat=U.dateFormat,d.format=U.format,d.numberFormat=U.numberFormat,d.addEvent=R.addEvent,d.arrayMax=R.arrayMax,d.arrayMin=R.arrayMin,d.attr=R.attr,d.clearTimeout=R.clearTimeout,d.correctFloat=R.correctFloat,d.createElement=R.createElement,d.css=R.css,d.defined=R.defined,d.destroyObjectProperties=R.destroyObjectProperties,d.discardElement=R.discardElement,d.distribute=z.distribute,d.erase=R.erase,d.error=R.error,d.extend=R.extend,d.extendClass=R.extendClass,d.find=R.find,d.fireEvent=R.fireEvent,d.getMagnitude=R.getMagnitude,d.getStyle=R.getStyle,d.inArray=R.inArray,d.isArray=R.isArray,d.isClass=R.isClass,d.isDOMElement=R.isDOMElement,d.isFunction=R.isFunction,d.isNumber=R.isNumber,d.isObject=R.isObject,d.isString=R.isString,d.keys=R.keys,d.merge=R.merge,d.normalizeTickInterval=R.normalizeTickInterval,d.objectEach=R.objectEach,d.offset=R.offset,d.pad=R.pad,d.pick=R.pick,d.pInt=R.pInt,d.relativeLength=R.relativeLength,d.removeEvent=R.removeEvent,d.seriesType=i.seriesType,d.splat=R.splat,d.stableSort=R.stableSort,d.syncTimeout=R.syncTimeout,d.timeUnits=R.timeUnits,d.uniqueKey=R.uniqueKey,d.useSerialIds=R.useSerialIds,d.wrap=R.wrap,e.compose(o),l.compose(t),h.compose(y),f.compose(y),n.compose(s),m.compose(y),b.compose(g),r.compose(y,g,t),d}),it(B,"Core/Axis/BrokenAxis.js",[B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.find,Z=R.fireEvent,U=R.isArray,z=R.isNumber,I=R.pick;return function(E){var M=[];function P(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function y(){var x=this;x.brokenAxis&&x.brokenAxis.hasBreaks&&(x.options.ordinal=!1)}function h(){var x=this,p=x.brokenAxis;if(p&&p.hasBreaks){for(var g=x.tickPositions,r=x.tickPositions.info,a=[],t=0;t<g.length;t++)p.isInAnyBreak(g[t])||a.push(g[t]);x.tickPositions=a,x.tickPositions.info=r}}function f(){var x=this;x.brokenAxis||(x.brokenAxis=new S(x))}function m(){var x=this,p=x.isDirty,g=x.options.connectNulls,r=x.points,a=x.xAxis,t=x.yAxis;if(p)for(var i=r.length;i--;){var o=r[i],e=!(o.y===null&&g===!1)&&(a&&a.brokenAxis&&a.brokenAxis.isInAnyBreak(o.x,!0)||t&&t.brokenAxis&&t.brokenAxis.isInAnyBreak(o.y,!0));o.visible=!e&&o.options.visible!==!1}}function u(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,I(this.pointArrayMap,["y"]))}function v(x,p){var g,r,a,t,i=this,o=i.points;if(x&&x.brokenAxis&&x.brokenAxis.hasBreaks){var e=x.brokenAxis;p.forEach(function(s){g=e&&e.breakArray||[],r=x.isXAxis?x.min:I(i.options.threshold,x.min),o.forEach(function(n){t=I(n["stack"+s.toUpperCase()],n[s]),g.forEach(function(l){z(r)&&z(t)&&(a=!1,r<l.from&&t>l.to||r>l.from&&t<l.from?a="pointBreak":(r<l.from&&t>l.from&&t<l.to||r>l.from&&t>l.to&&t<l.from)&&(a="pointInBreak"),a&&Z(x,a,{point:n,brk:l}))})})})}}function w(){var x=this.currentDataGrouping,p=x&&x.gapSize,g=this.points.slice(),r=this.yAxis,a=this.options.gapSize,t=g.length-1;if(a&&t>0){this.options.gapUnit!=="value"&&(a*=this.basePointRange),p&&p>a&&p>=this.basePointRange&&(a=p);for(var i=void 0,o=void 0;t--;)if(o&&o.visible!==!1||(o=g[t+1]),i=g[t],o.visible!==!1&&i.visible!==!1){if(o.x-i.x>a){var e=(i.x+o.x)/2;g.splice(t+1,0,{isNull:!0,x:e}),r.stacking&&this.options.stacking&&((r.stacking.stacks[this.stackKey][e]=new W(r,r.options.stackLabels,!1,e,this.stack)).total=0)}o=i}}return this.getGraphPath(g)}E.compose=function(x,p){if(M.indexOf(x)===-1&&(M.push(x),x.keepProps.push("brokenAxis"),V(x,"init",f),V(x,"afterInit",P),V(x,"afterSetTickPositions",h),V(x,"afterSetOptions",y)),M.indexOf(p)===-1){M.push(p);var g=p.prototype;g.drawBreaks=v,g.gappedPath=w,V(p,"afterGeneratePoints",m),V(p,"afterRender",u)}return x};var S=function(){function x(p){this.hasBreaks=!1,this.axis=p}return x.isInBreak=function(p,g){var r=p.repeat||1/0,a=p.from,t=p.to-p.from,i=g>=a?(g-a)%r:r-(a-g)%r;return p.inclusive?i<=t:i<t&&i!==0},x.lin2Val=function(p){var g=this.brokenAxis,r=g&&g.breakArray;if(!r||!z(p))return p;var a,t,i=p;for(t=0;t<r.length&&!((a=r[t]).from>=i);t++)(a.to<i||x.isInBreak(a,i))&&(i+=a.len);return i},x.val2Lin=function(p){var g=this.brokenAxis,r=g&&g.breakArray;if(!r||!z(p))return p;var a,t,i=p;for(t=0;t<r.length;t++)if((a=r[t]).to<=p)i-=a.len;else{if(a.from>=p)break;if(x.isInBreak(a,p)){i-=p-a.from;break}}return i},x.prototype.findBreakAt=function(p,g){return $(g,function(r){return r.from<p&&p<r.to})},x.prototype.isInAnyBreak=function(p,g){var r,a,t,i=this.axis,o=i.options.breaks||[],e=o.length;if(e&&z(p)){for(;e--;)x.isInBreak(o[e],p)&&(r=!0,a||(a=I(o[e].showPoints,!i.isXAxis)));t=r&&g?r&&!a:r}return t},x.prototype.setBreaks=function(p,g){var r=this,a=r.axis,t=U(p)&&!!p.length;a.isDirty=r.hasBreaks!==t,r.hasBreaks=t,a.options.breaks=a.userOptions.breaks=p,a.forceRedraw=!0,a.series.forEach(function(i){i.isDirty=!0}),t||a.val2lin!==x.val2Lin||(delete a.val2lin,delete a.lin2val),t&&(a.userOptions.ordinal=!1,a.lin2val=x.lin2Val,a.val2lin=x.val2Lin,a.setExtremes=function(i,o,e,s,n){if(r.hasBreaks){for(var l=this.options.breaks||[],b=void 0;b=r.findBreakAt(i,l);)i=b.to;for(;b=r.findBreakAt(o,l);)o=b.from;o<i&&(o=i)}a.constructor.prototype.setExtremes.call(this,i,o,e,s,n)},a.setAxisTranslation=function(){if(a.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var i,o,e,s,n=a.options.breaks||[],l=[],b=[],T=I(a.pointRangePadding,0),D=0,d=a.userMin||a.min,C=a.userMax||a.max;n.forEach(function(A){o=A.repeat||1/0,z(d)&&z(C)&&(x.isInBreak(A,d)&&(d+=A.to%o-d%o),x.isInBreak(A,C)&&(C-=C%o-A.from%o))}),n.forEach(function(A){if(e=A.from,o=A.repeat||1/0,z(d)&&z(C)){for(;e-o>d;)e-=o;for(;e<d;)e+=o;for(s=e;s<C;s+=o)l.push({value:s,move:"in"}),l.push({value:s+A.to-A.from,move:"out",size:A.breakSize})}}),l.sort(function(A,N){return A.value===N.value?(A.move==="in"?0:1)-(N.move==="in"?0:1):A.value-N.value}),i=0,e=d,l.forEach(function(A){(i+=A.move==="in"?1:-1)===1&&A.move==="in"&&(e=A.value),i===0&&z(e)&&(b.push({from:e,to:A.value,len:A.value-e-(A.size||0)}),D+=A.value-e-(A.size||0))}),r.breakArray=b,z(d)&&z(C)&&z(a.min)&&(r.unitLength=C-d-D+T,Z(a,"afterBreaks"),a.staticScale?a.transA=a.staticScale:r.unitLength&&(a.transA*=(C-a.min+T)/r.unitLength),T&&(a.minPixelPadding=a.transA*(a.minPointOffset||0)),a.min=d,a.max=C)}}),I(g,!0)&&a.chart.redraw()},x}();E.Additions=S}(H||(H={})),H}),it(B,"masters/modules/broken-axis.src.js",[B["Core/Globals.js"],B["Core/Axis/BrokenAxis.js"]],function(W,R){var H=W;R.compose(H.Axis,H.Series)}),it(B,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),it(B,"Extensions/DataGrouping/ApproximationDefaults.js",[B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.correctFloat,Z=R.extend,U=R.isNumber;function z(M){var P=M.length,y=I(M);return U(y)&&P&&(y=$(y/P)),y}function I(M){var P,y=M.length;if(!y&&M.hasNulls)P=null;else if(y)for(P=0;y--;)P+=M[y];return P}var E={average:z,averages:function(){var M=[];return[].forEach.call(arguments,function(P){M.push(z(P))}),M[0]===void 0?void 0:M},close:function(M){return M.length?M[M.length-1]:M.hasNulls?null:void 0},high:function(M){return M.length?H(M):M.hasNulls?null:void 0},hlc:function(M,P,y){if(M=W.high(M),P=W.low(P),y=W.close(y),U(M)||U(P)||U(y))return[M,P,y]},low:function(M){return M.length?V(M):M.hasNulls?null:void 0},ohlc:function(M,P,y,h){if(M=W.open(M),P=W.high(P),y=W.low(y),h=W.close(h),U(M)||U(P)||U(y)||U(h))return[M,P,y,h]},open:function(M){return M.length?M[0]:M.hasNulls?null:void 0},range:function(M,P){return M=W.low(M),P=W.high(P),U(M)||U(P)?[M,P]:M===null&&P===null?null:void 0},sum:I};return Z(W,E),E}),it(B,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%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"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},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]],["week",[1]],["month",[1,3,6]],["year",null]]}}),it(B,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.extend,Z=R.merge,U=R.pick,z=[];function I(y){var h=this,f=h.series;f.forEach(function(m){m.groupPixelWidth=void 0}),f.forEach(function(m){m.groupPixelWidth=h.getGroupPixelWidth&&h.getGroupPixelWidth(),m.groupPixelWidth&&(m.hasProcessed=!0),m.applyGrouping(!!y.hasExtremesChanged)})}function E(){for(var y,h,f=this.series,m=f.length,u=0,v=!1;m--;)(h=f[m].options.dataGrouping)&&(u=Math.max(u,U(h.groupPixelWidth,W.common.groupPixelWidth)),y=(f[m].processedXData||f[m].data).length,(f[m].groupPixelWidth||y>this.chart.plotSizeX/u||y&&h.forced)&&(v=!0));return v?u:0}function M(){this.series.forEach(function(y){y.hasProcessed=!1})}function P(y,h){var f;if(h=U(h,!0),y||(y={forced:!1,units:null}),this instanceof H)for(f=this.series.length;f--;)this.series[f].update({dataGrouping:y},!1);else this.chart.options.series.forEach(function(m){m.dataGrouping=typeof y=="boolean"?y:Z(y,m.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),h&&this.chart.redraw()}return{compose:function(y){H=y,z.indexOf(y)===-1&&(z.push(y),V(y,"afterSetScale",M),V(y,"postProcessData",I),$(y.prototype,{applyGrouping:I,getGroupPixelWidth:E,setDataGrouping:P}))}}}),it(B,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Core/Axis/DateTimeAxis.js"],B["Core/Defaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=$.series.prototype,z=Z.addEvent,I=Z.defined,E=Z.error,M=Z.extend,P=Z.isNumber,y=Z.merge,h=Z.pick,f=U.generatePoints,m=[];function u(g){var r,a,t=this,i=t.chart,o=t.options.dataGrouping,e=t.allowDG!==!1&&o&&h(o.enabled,i.options.isStock),s=t.visible||!i.options.chart.ignoreHiddenSeries,n=this.currentDataGrouping,l=!1;e&&!t.requireSorting&&(t.requireSorting=l=!0);var b=function(lt,gt){return!(lt.isCartesian&&!lt.isDirty&&!lt.xAxis.isDirty&&!lt.yAxis.isDirty&&!gt)}(t,g)===!1||!e;if(l&&(t.requireSorting=!1),!b){t.destroyGroupedData();var T=o.groupAll?t.xData:t.processedXData,D=o.groupAll?t.yData:t.processedYData,d=i.plotSizeX,C=t.xAxis,A=C.options.ordinal,N=t.groupPixelWidth,_=void 0,L=void 0;if(N&&T&&T.length&&d){L=!0,t.isDirty=!0,t.points=null;var O=C.getExtremes(),j=O.min,Y=O.max,X=N*(Y-j)/d*(A&&C.ordinal&&C.ordinal.getGroupIntervalFactor(j,Y,t)||1),G=C.getTimeTicks(H.Additions.prototype.normalizeTimeTickInterval(X,o.units||R.units),Math.min(j,T[0]),Math.max(Y,T[T.length-1]),C.options.startOfWeek,T,t.closestPointRange),q=U.groupData.apply(t,[T,D,G,o.approximation]),Q=q.groupedXData,J=q.groupedYData,rt=0;for(o&&o.smoothed&&Q.length&&(o.firstAnchor="firstPoint",o.anchor="middle",o.lastAnchor="lastPoint",E(32,!1,i,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),function(lt,gt,mt){var bt,yt=lt.options.dataGrouping,ht=lt.currentDataGrouping&&lt.currentDataGrouping.gapSize;if(yt&&lt.xData&&ht&&lt.groupMap){var et=gt.length-1,at=yt.anchor,dt=h(yt.firstAnchor,at),vt=h(yt.lastAnchor,at);if(at&&at!=="start"){var Ct=ht*{middle:.5,end:1}[at];for(bt=gt.length-1;bt--&&bt>0;)gt[bt]+=Ct}if(dt&&dt!=="start"&&lt.xData[0]>=gt[0]){var xt=lt.groupMap[0].start,wt=lt.groupMap[0].length,Mt=void 0;P(xt)&&P(wt)&&(Mt=xt+(wt-1)),gt[0]={middle:gt[0]+.5*ht,end:gt[0]+ht,firstPoint:lt.xData[0],lastPoint:Mt&&lt.xData[Mt]}[dt]}if(vt&&vt!=="start"&&ht&&gt[et]>=mt-ht){var St=lt.groupMap[lt.groupMap.length-1].start;gt[et]={middle:gt[et]+.5*ht,end:gt[et]+ht,firstPoint:St&&lt.xData[St],lastPoint:lt.xData[lt.xData.length-1]}[vt]}}}(t,Q,Y),_=1;_<G.length;_++)G.info.segmentStarts&&G.info.segmentStarts.indexOf(_)!==-1||(rt=Math.max(G[_]-G[_-1],rt));(r=G.info).gapSize=rt,t.closestPointRange=G.info.totalRange,t.groupMap=q.groupMap,s&&function(lt,gt){I(gt[0])&&P(lt.min)&&P(lt.dataMin)&&gt[0]<lt.min&&((!I(lt.options.min)&&lt.min<=lt.dataMin||lt.min===lt.dataMin)&&(lt.min=Math.min(gt[0],lt.min)),lt.dataMin=Math.min(gt[0],lt.dataMin)),I(gt[gt.length-1])&&P(lt.max)&&P(lt.dataMax)&&gt[gt.length-1]>lt.max&&((!I(lt.options.max)&&P(lt.dataMax)&&lt.max>=lt.dataMax||lt.max===lt.dataMax)&&(lt.max=Math.max(gt[gt.length-1],lt.max)),lt.dataMax=Math.max(gt[gt.length-1],lt.dataMax))}(C,Q),o.groupAll&&(t.allGroupedData=J,Q=(a=t.cropData(Q,J,C.min,C.max,1)).xData,J=a.yData,t.cropStart=a.start),t.processedXData=Q,t.processedYData=J}else t.groupMap=null;t.hasGroupedData=L,t.currentDataGrouping=r,t.preventGraphAnimation=(n&&n.totalRange)!==(r&&r.totalRange)}}function v(){this.groupedData&&(this.groupedData.forEach(function(g,r){g&&(this.groupedData[r]=g.destroy?g.destroy():null)},this),this.groupedData.length=0)}function w(){f.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function S(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function x(g,r,a,t){var i,o,e,s=this,n=s.data,l=s.options&&s.options.data,b=[],T=[],D=[],d=g.length,C=!!r,A=[],N=s.pointArrayMap,_=N&&N.length,L=["x"].concat(N||["y"]),O=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j=0,Y=0,X=typeof t=="function"?t:t&&W[t]?W[t]:W[s.getDGApproximation&&s.getDGApproximation()||"average"];if(_)for(var G=N.length;G--;)A.push([]);else A.push([]);for(var q=_||1,Q=0;Q<=d;Q++)if(!(g[Q]<a[0])){for(;a[j+1]!==void 0&&g[Q]>=a[j+1]||Q===d;){i=a[j],s.dataGroupInfo={start:O?Y:s.cropStart+Y,length:A[0].length},e=X.apply(s,A),s.pointClass&&!I(s.dataGroupInfo.options)&&(s.dataGroupInfo.options=y(s.pointClass.prototype.optionsToObject.call({series:s},s.options.data[s.cropStart+Y])),L.forEach(function(mt){delete s.dataGroupInfo.options[mt]})),e!==void 0&&(b.push(i),T.push(e),D.push(s.dataGroupInfo)),Y=Q;for(var J=0;J<q;J++)A[J].length=0,A[J].hasNulls=!1;if(j+=1,Q===d)break}if(Q===d)break;if(N){var rt=s.options.dataGrouping&&s.options.dataGrouping.groupAll?Q:s.cropStart+Q,lt=n&&n[rt]||s.pointClass.prototype.applyOptions.apply({series:s},[l[rt]]),gt=void 0;for(J=0;J<_;J++)gt=lt[N[J]],P(gt)?A[J].push(gt):gt===null&&(A[J].hasNulls=!0)}else o=C?r[Q]:null,P(o)?A[0].push(o):o===null&&(A[0].hasNulls=!0)}return{groupedXData:b,groupedYData:T,groupMap:D}}function p(g){var r=g.options,a=this.type,t=this.chart.options.plotOptions,i=this.useCommonDataGrouping&&R.common,o=R.seriesSpecific,e=V.defaultOptions.plotOptions[a].dataGrouping;if(t&&(o[a]||i)){var s=this.chart.rangeSelector;e||(e=y(R.common,o[a])),r.dataGrouping=y(i,e,t.series&&t.series.dataGrouping,t[a].dataGrouping,this.userOptions.dataGrouping,!r.isInternal&&s&&P(s.selected)&&s.buttonOptions[s.selected].dataGrouping)}}return{compose:function(g){var r=g.prototype.pointClass;m.indexOf(r)===-1&&(m.push(r),z(r,"update",function(){if(this.dataGroup)return E(24,!1,this.series.chart),!1})),m.indexOf(g)===-1&&(m.push(g),z(g,"afterSetOptions",p),z(g,"destroy",v),M(g.prototype,{applyGrouping:u,destroyGroupedData:v,generatePoints:w,getDGApproximation:S,groupData:x}))},groupData:x}}),it(B,"Extensions/DataGrouping/DataGrouping.js",[B["Extensions/DataGrouping/DataGroupingAxisComposition.js"],B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=V.format,U=$.addEvent,z=$.extend,I=$.isNumber,E=[];function M(P){var y,h,f,m,u,v=this.chart,w=v.time,S=P.labelConfig,x=S.series,p=x.options,g=x.tooltipOptions,r=p.dataGrouping,a=x.xAxis,t=g.xDateFormat,i=g[P.isFooter?"footerFormat":"headerFormat"];a&&a.options.type==="datetime"&&r&&I(S.key)&&(h=x.currentDataGrouping,f=r.dateTimeLabelFormats||R.common.dateTimeLabelFormats,h?(m=f[h.unitName],h.count===1?t=m[0]:(t=m[1],y=m[2])):!t&&f&&a.dateTime&&(t=a.dateTime.getXDateFormat(S.x,g.dateTimeLabelFormats)),u=w.dateFormat(t,S.key),y&&(u+=w.dateFormat(y,S.key+h.totalRange-1)),x.chart.styledMode&&(i=this.styledModeFormat(i)),P.text=Z(i,{point:z(S.point,{key:u}),series:x},v),P.preventDefault())}return{compose:function(P,y,h){W.compose(P),H.compose(y),E.indexOf(h)===-1&&(E.push(h),U(h,"headerFormatter",M))},groupData:H.groupData}}),it(B,"masters/modules/datagrouping.src.js",[B["Core/Globals.js"],B["Extensions/DataGrouping/ApproximationDefaults.js"],B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Extensions/DataGrouping/DataGrouping.js"]],function(W,R,H,V){var $=W;$.dataGrouping={approximationDefaults:R,approximations:H},V.compose($.Axis,$.Series,$.Tooltip)}),it(B,"Series/DataModifyComposition.js",[B["Core/Axis/Axis.js"],B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.prototype.tooltipFormatter,U=V.addEvent,z=V.arrayMax,I=V.arrayMin,E=V.correctFloat,M=V.defined,P=V.isArray,y=V.isNumber,h=V.isString,f=V.pick;return function(m){var u=[];function v(o,e,s){this.isXAxis||(this.series.forEach(function(n){o==="compare"&&typeof e!="boolean"?n.setCompare(e,!1):o!=="cumulative"||h(e)||n.setCumulative(e,!1)}),f(s,!0)&&this.chart.redraw())}function w(o){var e=this,s=e.series.chart.numberFormatter,n=function(l){o=o.replace("{point."+l+"}",(e[l]>0&&l==="change"?"+":"")+s(e[l],f(e.series.tooltipOptions.changeDecimals,2)))};return M(e.change)&&n("change"),M(e.cumulativeSum)&&n("cumulativeSum"),Z.apply(this,[o])}function S(){var o,e=this.options.compare;(e==="percent"||e==="value"||this.options.cumulative)&&(o=new i(this),e==="percent"||e==="value"?o.initCompare(e):o.initCumulative()),this.dataModify=o}function x(o){var e=o.dataExtremes,s=e.activeYData;if(this.dataModify&&e){var n=void 0;this.options.compare?n=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&P(s)&&s.length>=2&&(n=i.getCumulativeExtremes(s)),n&&(e.dataMin=I(n),e.dataMax=z(n))}}function p(o,e){this.options.compare=this.userOptions.compare=o,this.update({},f(e,!0)),!this.dataModify||o!=="value"&&o!=="percent"?this.points.forEach(function(s){delete s.change}):this.dataModify.initCompare(o)}function g(){var o=this;if(o.xAxis&&o.processedYData&&o.dataModify){var e=o.processedXData,s=o.processedYData,n=s.length,l=o.options.compareStart===!0?0:1,b=-1,T=void 0;for(o.pointArrayMap&&(b=o.pointArrayMap.indexOf(o.options.pointValKey||o.pointValKey||"y")),T=0;T<n-l;T++){var D=s[T]&&b>-1?s[T][b]:s[T];if(y(D)&&D!==0&&e[T+l]>=(o.xAxis.min||0)){o.dataModify.compareValue=D;break}}}}function r(o,e){this.setModifier("compare",o,e)}function a(o,e){o=f(o,!1),this.options.cumulative=this.userOptions.cumulative=o,this.update({},f(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(s){delete s.cumulativeSum})}function t(o,e){this.setModifier("cumulative",o,e)}m.compose=function(o,e,s){if(u.indexOf(o)===-1){u.push(o);var n=o.prototype;n.setCompare=p,n.setCumulative=a,U(o,"afterInit",S),U(o,"afterGetExtremes",x),U(o,"afterProcessData",g)}if(u.indexOf(e)===-1){u.push(e);var l=e.prototype;l.setCompare=r,l.setModifier=v,l.setCumulative=t}return u.indexOf(s)===-1&&(u.push(s),s.prototype.tooltipFormatter=w),o};var i=function(){function o(e){this.series=e}return o.prototype.modifyValue=function(){return 0},o.getCumulativeExtremes=function(e){var s=1/0,n=-1/0;return e.reduce(function(l,b){var T=l+b;return s=Math.min(s,T,l),n=Math.max(n,T,l),T}),[s,n]},o.prototype.initCompare=function(e){this.modifyValue=function(s,n){s===null&&(s=0);var l=this.compareValue;if(s!==void 0&&l!==void 0){if(e==="value"?s-=l:s=s/l*100-(this.series.options.compareBase===100?0:100),n!==void 0){var b=this.series.points[n];b&&(b.change=s)}return s}return 0}},o.prototype.initCumulative=function(){this.modifyValue=function(e,s){if(e===null&&(e=0),e!==void 0&&s!==void 0){var n=s>0?this.series.points[s-1]:null;n&&n.cumulativeSum&&(e=E(n.cumulativeSum+e));var l=this.series.points[s];return l&&(l.cumulativeSum=e),e}return 0}},o}();m.Additions=i}($||($={})),$}),it(B,"Core/Axis/NavigatorAxisComposition.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.isTouchDevice,V=R.addEvent,$=R.correctFloat,Z=R.defined,U=R.isNumber,z=R.pick,I=[];function E(){var y=this;y.navigatorAxis||(y.navigatorAxis=new P(y))}function M(y){var h=this,f=h.chart.options,m=f.navigator,u=h.navigatorAxis,v=f.chart.zooming.pinchType,w=f.rangeSelector,S=f.chart.zooming.type;if(h.isXAxis&&(m&&m.enabled||w&&w.enabled)){if(S==="y")y.zoomed=!1;else if((!H&&S==="xy"||H&&v==="xy")&&h.options.range){var x=u.previousZoom;Z(y.newMin)?u.previousZoom=[h.min,h.max]:x&&(y.newMin=x[0],y.newMax=x[1],u.previousZoom=void 0)}}y.zoomed!==void 0&&y.preventDefault()}var P=function(){function y(h){this.axis=h}return y.compose=function(h){I.indexOf(h)===-1&&(I.push(h),h.keepProps.push("navigatorAxis"),V(h,"init",E),V(h,"zoom",M))},y.prototype.destroy=function(){this.axis=void 0},y.prototype.toFixedRange=function(h,f,m,u){var v=this.axis,w=v.chart,S=z(m,v.translate(h,!0,!v.horiz)),x=z(u,v.translate(f,!0,!v.horiz)),p=w&&w.fixedRange,g=(v.pointRange||0)/2,r=p&&(x-S)/p;return Z(m)||(S=$(S+g)),Z(u)||(x=$(x-g)),r>.7&&r<1.3&&(u?S=x-p:x=S+p),U(S)&&U(x)||(S=x=void 0),{min:S,max:x}},y}();return P}),it(B,"Stock/Navigator/NavigatorDefaults.js",[B["Core/Color/Color.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R){var H=W.parse,V=R.seriesTypes;return{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:H("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:V.areaspline===void 0?"line":"areaspline",fillOpacity:.05,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},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}}}),it(B,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(W,R,H,V,$){$===void 0&&($={});var Z=$.width?$.width/2:H,U=Math.round(Z/3)+.5;return[["M",-Z-1,.5],["L",Z,.5],["L",Z,(V=$.height||V)+.5],["L",-Z-1,V+.5],["L",-Z-1,.5],["M",-U,4],["L",-U,V-3],["M",U-1,4],["L",U-1,V-3]]}}}),it(B,"Stock/Navigator/NavigatorComposition.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/NavigatorAxisComposition.js"],B["Stock/Navigator/NavigatorDefaults.js"],B["Stock/Navigator/NavigatorSymbols.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=W.defaultOptions,E=W.setOptions,M=R.isTouchDevice,P=Z.getRendererType,y=U.addEvent,h=U.extend,f=U.merge,m=U.pick,u=[];function v(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function w(){var t,i,o,e,s=this.legend,n=this.navigator;n&&(i=s&&s.options,o=n.xAxis,e=n.yAxis,t=n.scrollbarHeight,this.inverted?(n.left=n.opposite?this.chartWidth-t-n.height:this.spacing[3]+t,n.top=this.plotTop+t):(n.left=m(o.left,this.plotLeft+t),n.top=n.navigatorOptions.top||this.chartHeight-n.height-t-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&i.verticalAlign==="bottom"&&i.layout!=="proximate"&&i.enabled&&!i.floating?s.legendHeight+m(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&e&&(this.inverted?o.options.left=e.options.left=n.left:o.options.top=e.options.top=n.top,o.setAxisSize(),e.setAxisSize()))}function S(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new z(this),m(t.redraw,!0)&&this.redraw(t.animation))}function x(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new z(this))}function p(){var t=this.options,i=t.navigator,o=t.rangeSelector;if((i&&i.enabled||o&&o.enabled)&&(!M&&t.chart.zooming.type==="x"||M&&t.chart.zooming.pinchType==="x"))return!1}function g(t){var i=t.navigator;if(i&&t.xAxis[0]){var o=t.xAxis[0].getExtremes();i.render(o.min,o.max)}}function r(t){var i=t.options.navigator||{},o=t.options.scrollbar||{};this.navigator||this.scroller||!i.enabled&&!o.enabled||(f(!0,this.options.navigator,i),f(!0,this.options.scrollbar,o),delete t.options.navigator,delete t.options.scrollbar)}function a(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(t,i,o,e){H.compose(t),z=o,u.indexOf(i)===-1&&(u.push(i),i.prototype.callbacks.push(g),y(i,"afterAddSeries",v),y(i,"afterSetChartSize",w),y(i,"afterUpdate",S),y(i,"beforeRender",x),y(i,"beforeShowResetZoom",p),y(i,"update",r)),u.indexOf(e)===-1&&(u.push(e),y(e,"afterUpdate",a)),u.indexOf(P)===-1&&(u.push(P),h(P().prototype.symbols,$)),u.indexOf(E)===-1&&(u.push(E),h(I,{navigator:V}))}}}),it(B,"Core/Axis/ScrollbarAxis.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=W.defined,V=W.pick;return function(){function $(){}return $.compose=function(Z,U){if($.composed.indexOf(Z)!==-1)return Z;$.composed.push(Z);var z=function(I){var E=V(I.options&&I.options.min,I.min),M=V(I.options&&I.options.max,I.max);return{axisMin:E,axisMax:M,scrollMin:H(I.dataMin)?Math.min(E,I.min,I.dataMin,V(I.threshold,1/0)):E,scrollMax:H(I.dataMax)?Math.max(M,I.max,I.dataMax,V(I.threshold,-1/0)):M}};return R(Z,"afterInit",function(){var I=this;I.options&&I.options.scrollbar&&I.options.scrollbar.enabled&&(I.options.scrollbar.vertical=!I.horiz,I.options.startOnTick=I.options.endOnTick=!1,I.scrollbar=new U(I.chart.renderer,I.options.scrollbar,I.chart),R(I.scrollbar,"changed",function(E){var M,P,y=z(I),h=y.axisMin,f=y.axisMax,m=y.scrollMin,u=y.scrollMax-m;H(h)&&H(f)&&(I.horiz&&!I.reversed||!I.horiz&&I.reversed?(M=m+u*this.to,P=m+u*this.from):(M=m+u*(1-this.from),P=m+u*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)?I.setExtremes(P,M,!0,E.DOMType!=="mousemove"&&E.DOMType!=="touchmove",E):this.setRange(this.from,this.to))}))}),R(Z,"afterRender",function(){var I,E,M,P=this,y=z(P),h=y.scrollMin,f=y.scrollMax,m=P.scrollbar,u=P.axisTitleMargin+(P.titleOffset||0),v=P.chart.scrollbarsOffsets,w=P.options.margin||0;if(m){if(P.horiz)P.opposite||(v[1]+=u),m.position(P.left,P.top+P.height+2+v[1]-(P.opposite?w:0),P.width,P.height),P.opposite||(v[1]+=w),I=1;else{P.opposite&&(v[0]+=u);var S;S=m.options.opposite?P.left+P.width+2+v[0]-(P.opposite?0:w):P.opposite?0:w,m.position(S,P.top,P.width,P.height),P.opposite&&(v[0]+=w),I=0}v[I]+=m.size+m.options.margin,isNaN(h)||isNaN(f)||!H(P.min)||!H(P.max)||P.min===P.max?m.setRange(0,1):(E=(P.min-h)/(f-h),M=(P.max-h)/(f-h),P.horiz&&!P.reversed||!P.horiz&&P.reversed?m.setRange(E,M):m.setRange(1-M,1-E))}}),R(Z,"afterGetOffset",function(){var I=this,E=I.scrollbar&&!I.scrollbar.options.opposite,M=I.horiz?2:E?3:1,P=I.scrollbar;P&&(I.chart.scrollbarsOffsets=[0,0],I.chart.axisOffset[M]+=P.size+P.options.margin)}),Z},$.composed=[],$}()}),it(B,"Stock/Scrollbar/ScrollbarDefaults.js",[B["Core/Globals.js"]],function(W){return{height:W.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",trackBorderWidth:1}}),it(B,"Stock/Scrollbar/Scrollbar.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/ScrollbarAxis.js"],B["Stock/Scrollbar/ScrollbarDefaults.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.defaultOptions,U=$.addEvent,z=$.correctFloat,I=$.defined,E=$.destroyObjectProperties,M=$.fireEvent,P=$.merge,y=$.pick,h=$.removeEvent,f=function(){function m(u,v,w){this._events=[],this.chart=void 0,this.chartX=0,this.chartY=0,this.from=0,this.group=void 0,this.options=void 0,this.renderer=void 0,this.scrollbar=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.x=0,this.y=0,this.init(u,v,w)}return m.compose=function(u){H.compose(u,m)},m.swapXY=function(u,v){return v&&u.forEach(function(w){for(var S,x=w.length,p=0;p<x;p+=2)typeof(S=w[p+1])=="number"&&(w[p+1]=w[p+2],w[p+2]=S)}),u},m.prototype.addEvents=function(){var u=this.options.inverted?[1,0]:[0,1],v=this.scrollbarButtons,w=this.scrollbarGroup.element,S=this.track.element,x=this.mouseDownHandler.bind(this),p=this.mouseMoveHandler.bind(this),g=this.mouseUpHandler.bind(this),r=[[v[u[0]].element,"click",this.buttonToMinClick.bind(this)],[v[u[1]].element,"click",this.buttonToMaxClick.bind(this)],[S,"click",this.trackClick.bind(this)],[w,"mousedown",x],[w.ownerDocument,"mousemove",p],[w.ownerDocument,"mouseup",g]];R.hasTouch&&r.push([w,"touchstart",x],[w.ownerDocument,"touchmove",p],[w.ownerDocument,"touchend",g]),r.forEach(function(a){U.apply(null,a)}),this._events=r},m.prototype.buttonToMaxClick=function(u){var v=this,w=(v.to-v.from)*y(v.options.step,.2);v.updatePosition(v.from+w,v.to+w),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.buttonToMinClick=function(u){var v=this,w=z(v.to-v.from)*y(v.options.step,.2);v.updatePosition(z(v.from-w),z(v.to-w)),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.cursorToScrollbarPosition=function(u){var v=this,w=v.options,S=w.minWidth>v.calculatedWidth?w.minWidth:0;return{chartX:(u.chartX-v.x-v.xOffset)/(v.barWidth-S),chartY:(u.chartY-v.y-v.yOffset)/(v.barWidth-S)}},m.prototype.destroy=function(){var u=this,v=u.chart.scroller;u.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(w){u[w]&&u[w].destroy&&(u[w]=u[w].destroy())}),v&&u===v.scrollbar&&(v.scrollbar=null,E(v.scrollbarButtons))},m.prototype.drawScrollbarButton=function(u){var v,w=this,S=w.renderer,x=w.scrollbarButtons,p=w.options,g=w.size,r=S.g().add(w.group);x.push(r),v=S.rect().addClass("highcharts-scrollbar-button").add(r),w.chart.styledMode||v.attr({stroke:p.buttonBorderColor,"stroke-width":p.buttonBorderWidth,fill:p.buttonBackgroundColor}),v.attr(v.crisp({x:-.5,y:-.5,width:g+1,height:g+1,r:p.buttonBorderRadius},v.strokeWidth())),v=S.path(m.swapXY([["M",g/2+(u?-1:1),g/2-3],["L",g/2+(u?-1:1),g/2+3],["L",g/2+(u?2:-2),g/2]],p.vertical)).addClass("highcharts-scrollbar-arrow").add(x[u]),w.chart.styledMode||v.attr({fill:p.buttonArrowColor})},m.prototype.init=function(u,v,w){var S=this;S.scrollbarButtons=[],S.renderer=u,S.userOptions=v,S.options=P(V,Z.scrollbar,v),S.chart=w,S.size=y(S.options.size,S.options.height),v.enabled&&(S.render(),S.addEvents())},m.prototype.mouseDownHandler=function(u){var v=this,w=v.chart.pointer.normalize(u),S=v.cursorToScrollbarPosition(w);v.chartX=S.chartX,v.chartY=S.chartY,v.initPositions=[v.from,v.to],v.grabbedCenter=!0},m.prototype.mouseMoveHandler=function(u){var v,w=this,S=w.chart.pointer.normalize(u),x=w.options.vertical?"chartY":"chartX",p=w.initPositions||[];!w.grabbedCenter||u.touches&&u.touches[0][x]===0||(v=w.cursorToScrollbarPosition(S)[x]-w[x],w.hasDragged=!0,w.updatePosition(p[0]+v,p[1]+v),w.hasDragged&&M(w,"changed",{from:w.from,to:w.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}))},m.prototype.mouseUpHandler=function(u){var v=this;v.hasDragged&&M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}),v.grabbedCenter=v.hasDragged=v.chartX=v.chartY=null},m.prototype.position=function(u,v,w,S){var x=this,p=x.options.vertical,g=x.rendered?"animate":"attr",r=S,a=0;x.group.show(),x.x=u,x.y=v+this.trackBorderWidth,x.width=w,x.height=S,x.xOffset=r,x.yOffset=a,p?(x.width=x.yOffset=w=a=x.size,x.xOffset=r=0,x.barWidth=S-2*w,x.x=u+=x.options.margin):(x.height=x.xOffset=S=r=x.size,x.barWidth=w-2*S,x.y=x.y+x.options.margin),x.group[g]({translateX:u,translateY:x.y}),x.track[g]({width:w,height:S}),x.scrollbarButtons[1][g]({translateX:p?0:w-r,translateY:p?S-a:0})},m.prototype.removeEvents=function(){this._events.forEach(function(u){h.apply(null,u)}),this._events.length=0},m.prototype.render=function(){var u=this,v=u.renderer,w=u.options,S=u.size,x=u.chart.styledMode,p=v.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();u.group=p,u.track=v.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:w.trackBorderRadius||0,height:S,width:S}).add(p),x||u.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth}),u.trackBorderWidth=u.track.strokeWidth(),u.track.attr({y:-this.trackBorderWidth%2/2}),u.scrollbarGroup=v.g().add(p),u.scrollbar=v.rect().addClass("highcharts-scrollbar-thumb").attr({height:S,width:S,r:w.barBorderRadius||0}).add(u.scrollbarGroup),u.scrollbarRifles=v.path(m.swapXY([["M",-3,S/4],["L",-3,2*S/3],["M",0,S/4],["L",0,2*S/3],["M",3,S/4],["L",3,2*S/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(u.scrollbarGroup),x||(u.scrollbar.attr({fill:w.barBackgroundColor,stroke:w.barBorderColor,"stroke-width":w.barBorderWidth}),u.scrollbarRifles.attr({stroke:w.rifleColor,"stroke-width":1})),u.scrollbarStrokeWidth=u.scrollbar.strokeWidth(),u.scrollbarGroup.translate(-u.scrollbarStrokeWidth%2/2,-u.scrollbarStrokeWidth%2/2),u.drawScrollbarButton(0),u.drawScrollbarButton(1)},m.prototype.setRange=function(u,v){var w=this,S=w.options,x=S.vertical,p=S.minWidth,g=w.barWidth,r=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(I(g)){var a,t,i=g*Math.min(v,1);u=Math.max(u,0),a=Math.ceil(g*u),w.calculatedWidth=t=z(i-a),t<p&&(a=(g-p+t)*u,t=p);var o=Math.floor(a+w.xOffset+w.yOffset),e=t/2-.5;w.from=u,w.to=v,x?(w.scrollbarGroup[r]({translateY:o}),w.scrollbar[r]({height:t}),w.scrollbarRifles[r]({translateY:e}),w.scrollbarTop=o,w.scrollbarLeft=0):(w.scrollbarGroup[r]({translateX:o}),w.scrollbar[r]({width:t}),w.scrollbarRifles[r]({translateX:e}),w.scrollbarLeft=o,w.scrollbarTop=0),t<=12?w.scrollbarRifles.hide():w.scrollbarRifles.show(),S.showFull===!1&&(u<=0&&v>=1?w.group.hide():w.group.show()),w.rendered=!0}},m.prototype.shouldUpdateExtremes=function(u){return y(this.options.liveRedraw,R.svg&&!R.isTouchDevice&&!this.chart.boosted)||u==="mouseup"||u==="touchend"||!I(u)},m.prototype.trackClick=function(u){var v=this,w=v.chart.pointer.normalize(u),S=v.to-v.from,x=v.y+v.scrollbarTop,p=v.x+v.scrollbarLeft;v.options.vertical&&w.chartY>x||!v.options.vertical&&w.chartX>p?v.updatePosition(v.from+S,v.to+S):v.updatePosition(v.from-S,v.to-S),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.update=function(u){this.destroy(),this.init(this.chart.renderer,P(!0,this.options,u),this.chart)},m.prototype.updatePosition=function(u,v){v>1&&(u=z(1-z(v-u)),v=1),u<0&&(v=z(v-u),u=0),this.from=u,this.to=v},m.defaultOptions=V,m}();return Z.scrollbar=P(!0,f.defaultOptions,Z.scrollbar),f}),it(B,"Stock/Navigator/Navigator.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/NavigatorAxisComposition.js"],B["Stock/Navigator/NavigatorComposition.js"],B["Stock/Scrollbar/Scrollbar.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=R.defaultOptions,I=H.hasTouch,E=H.isTouchDevice,M=U.addEvent,P=U.clamp,y=U.correctFloat,h=U.defined,f=U.destroyObjectProperties,m=U.erase,u=U.extend,v=U.find,w=U.isArray,S=U.isNumber,x=U.merge,p=U.pick,g=U.removeEvent,r=U.splat;function a(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var e=[].filter.call(i,S);if(e.length)return Math[t].apply(0,e)}return function(){function t(i){this.baseSeries=void 0,this.chart=void 0,this.handles=void 0,this.height=void 0,this.left=void 0,this.navigatorEnabled=void 0,this.navigatorGroup=void 0,this.navigatorOptions=void 0,this.navigatorSeries=void 0,this.navigatorSize=void 0,this.opposite=void 0,this.outline=void 0,this.outlineHeight=void 0,this.range=void 0,this.rendered=void 0,this.shades=void 0,this.size=void 0,this.top=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zoomedMax=void 0,this.zoomedMin=void 0,this.init(i)}return t.compose=function(i,o,e){$.compose(i,o,t,e)},t.prototype.drawHandle=function(i,o,e,s){var n=this,l=n.navigatorOptions.handles.height;n.handles[o][s](e?{translateX:Math.round(n.left+n.height/2),translateY:Math.round(n.top+parseInt(i,10)+.5-l)}:{translateX:Math.round(n.left+parseInt(i,10)),translateY:Math.round(n.top+n.height/2-l/2-1)})},t.prototype.drawOutline=function(i,o,e,s){var n,l,b=this,T=b.navigatorOptions.maskInside,D=b.outline.strokeWidth(),d=D/2,C=D%2/2,A=b.outlineHeight,N=b.scrollbarHeight||0,_=b.size,L=b.left-N,O=b.top;e?(l=[["M",(L-=d)+A,O-N-C],["L",L+A,n=O+o+C],["L",L,n],["L",L,o=O+i+C],["L",L+A,o],["L",L+A,O+_+N]],T&&l.push(["M",L+A,n-d],["L",L+A,o+d])):(l=[["M",L,O+=d],["L",i+=L+N-C,O],["L",i,O+A],["L",o+=L+N-C,O+A],["L",o,O],["L",L+_+2*N,O]],T&&l.push(["M",i-d,O],["L",o+d,O])),b.outline[s]({d:l})},t.prototype.drawMasks=function(i,o,e,s){var n,l,b,T,D=this,d=D.left,C=D.top,A=D.height;e?(b=[d,d,d],T=[C,C+i,C+o],l=[A,A,A],n=[i,o-i,D.size-o]):(b=[d,d+i,d+o],T=[C,C,C],l=[i,o-i,D.size-o],n=[A,A,A]),D.shades.forEach(function(N,_){N[s]({x:b[_],y:T[_],width:l[_],height:n[_]})})},t.prototype.renderElements=function(){var i=this,o=i.navigatorOptions,e=o.maskInside,s=i.chart,n=s.inverted,l=s.renderer,b={cursor:n?"ns-resize":"ew-resize"},T=i.navigatorGroup=l.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!e,e,!e].forEach(function(A,N){var _=l.rect().addClass("highcharts-navigator-mask"+(N===1?"-inside":"-outside")).add(T);s.styledMode||(_.attr({fill:A?o.maskFill:"rgba(0,0,0,0)"}),N===1&&_.css(b)),i.shades[N]=_}),i.outline=l.path().addClass("highcharts-navigator-outline").add(T),s.styledMode||i.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),o.handles&&o.handles.enabled){var D=o.handles,d=D.height,C=D.width;[0,1].forEach(function(A){i.handles[A]=l.symbol(D.symbols[A],-C/2-1,0,C,d,D),s.inverted&&i.handles[A].attr({rotation:90,rotationOriginX:Math.floor(-C/2),rotationOriginY:(d+C)/2}),i.handles[A].attr({zIndex:7-A}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][A]).add(T),s.styledMode||i.handles[A].attr({fill:D.backgroundColor,stroke:D.borderColor,"stroke-width":D.lineWidth}).css(b)})}},t.prototype.update=function(i){(this.series||[]).forEach(function(e){e.baseSeries&&delete e.baseSeries.navigatorSeries}),this.destroy();var o=this.chart.options;x(!0,o.navigator,i),this.init(this.chart)},t.prototype.render=function(i,o,e,s){var n,l,b,T,D,d=this,C=d.chart,A=d.xAxis,N=A.pointRange||0,_=A.navigatorAxis.fake?C.xAxis[0]:A,L=d.navigatorEnabled,O=d.rendered,j=C.inverted,Y=C.xAxis[0].minRange,X=C.xAxis[0].options.maxRange,G=d.scrollbarHeight;if(!this.hasDragged||h(e)){if(i=y(i-N/2),o=y(o+N/2),!S(i)||!S(o)){if(!O)return;e=0,s=p(A.width,_.width)}d.left=p(A.left,C.plotLeft+G+(j?C.plotWidth:0));var q=d.size=T=p(A.len,(j?C.plotHeight:C.plotWidth)-2*G);n=j?G:T+2*G,e=p(e,A.toPixels(i,!0)),s=p(s,A.toPixels(o,!0)),S(e)&&Math.abs(e)!==1/0||(e=0,s=n);var Q=A.toValue(e,!0),J=A.toValue(s,!0),rt=Math.abs(y(J-Q));rt<Y?this.grabbedLeft?e=A.toPixels(J-Y-N,!0):this.grabbedRight&&(s=A.toPixels(Q+Y+N,!0)):h(X)&&y(rt-N)>X&&(this.grabbedLeft?e=A.toPixels(J-X-N,!0):this.grabbedRight&&(s=A.toPixels(Q+X+N,!0))),d.zoomedMax=P(Math.max(e,s),0,q),d.zoomedMin=P(d.fixedWidth?d.zoomedMax-d.fixedWidth:Math.min(e,s),0,q),d.range=d.zoomedMax-d.zoomedMin,q=Math.round(d.zoomedMax);var lt=Math.round(d.zoomedMin);L&&(d.navigatorGroup.attr({visibility:"inherit"}),D=O&&!d.hasDragged?"animate":"attr",d.drawMasks(lt,q,j,D),d.drawOutline(lt,q,j,D),d.navigatorOptions.handles.enabled&&(d.drawHandle(lt,0,j,D),d.drawHandle(q,1,j,D))),d.scrollbar&&(j?(b=d.top-G,l=d.left-G+(L||!_.opposite?0:(_.titleOffset||0)+_.axisTitleMargin),G=T+2*G):(b=d.top+(L?d.height:-G),l=d.left-G),d.scrollbar.position(l,b,n,G),d.scrollbar.setRange(d.zoomedMin/(T||1),d.zoomedMax/(T||1))),d.rendered=!0}},t.prototype.addMouseEvents=function(){var i,o,e=this,s=e.chart,n=s.container,l=[];e.mouseMoveHandler=i=function(b){e.onMouseMove(b)},e.mouseUpHandler=o=function(b){e.onMouseUp(b)},(l=e.getPartsEvents("mousedown")).push(M(s.renderTo,"mousemove",i),M(n.ownerDocument,"mouseup",o)),I&&(l.push(M(s.renderTo,"touchmove",i),M(n.ownerDocument,"touchend",o)),l.concat(e.getPartsEvents("touchstart"))),e.eventsToUnbind=l,e.series&&e.series[0]&&l.push(M(e.series[0].xAxis,"foundExtremes",function(){s.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(i){var o=this,e=[];return["shades","handles"].forEach(function(s){o[s].forEach(function(n,l){e.push(M(n.element,i,function(b){o[s+"Mousedown"](b,l)}))})}),e},t.prototype.shadesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e,s,n,l,b=this,T=b.chart,D=b.xAxis,d=b.zoomedMin,C=b.size,A=b.range,N=b.left,_=i.chartX;T.inverted&&(_=i.chartY,N=b.top),o===1?(b.grabbedCenter=_,b.fixedWidth=A,b.dragOffset=_-d):(l=_-N-A/2,o===0?l=Math.max(0,l):o===2&&l+A>=C&&(l=C-A,b.reversedExtremes?(l-=A,s=b.getUnionExtremes().dataMin):e=b.getUnionExtremes().dataMax),l!==d&&(b.fixedWidth=A,n=D.navigatorAxis.toFixedRange(l,l+A,s,e),h(n.min)&&T.xAxis[0].setExtremes(Math.min(n.min,n.max),Math.max(n.min,n.max),!0,null,{trigger:"navigator"})))},t.prototype.handlesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e=this,s=e.chart,n=s.xAxis[0],l=e.reversedExtremes;o===0?(e.grabbedLeft=!0,e.otherHandlePos=e.zoomedMax,e.fixedExtreme=l?n.min:n.max):(e.grabbedRight=!0,e.otherHandlePos=e.zoomedMin,e.fixedExtreme=l?n.max:n.min),s.fixedRange=null},t.prototype.onMouseMove=function(i){var o,e=this,s=e.chart,n=e.navigatorSize,l=e.range,b=e.dragOffset,T=s.inverted,D=e.left;i.touches&&i.touches[0].pageX===0||(o=(i=s.pointer.normalize(i)).chartX,T&&(D=e.top,o=i.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,o-D,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,o-D)):e.grabbedCenter&&(e.hasDragged=!0,o<b?o=b:o>n+b-l&&(o=n+b-l),e.render(0,0,o-b,o-b+l)),e.hasDragged&&e.scrollbar&&p(e.scrollbar.options.liveRedraw,H.svg&&!E&&!this.chart.boosted)&&(i.DOMType=i.type,setTimeout(function(){e.onMouseUp(i)},0)))},t.prototype.onMouseUp=function(i){var o,e,s,n,l,b,T=this,D=T.chart,d=T.xAxis,C=T.scrollbar,A=i.DOMEvent||i,N=D.inverted,_=T.rendered&&!T.hasDragged?"animate":"attr";(!T.hasDragged||C&&C.hasDragged)&&i.trigger!=="scrollbar"||(s=T.getUnionExtremes(),T.zoomedMin===T.otherHandlePos?n=T.fixedExtreme:T.zoomedMax===T.otherHandlePos&&(l=T.fixedExtreme),T.zoomedMax===T.size&&(l=T.reversedExtremes?s.dataMin:s.dataMax),T.zoomedMin===0&&(n=T.reversedExtremes?s.dataMax:s.dataMin),b=d.navigatorAxis.toFixedRange(T.zoomedMin,T.zoomedMax,n,l),h(b.min)&&D.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,!T.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:A})),i.DOMType!=="mousemove"&&i.DOMType!=="touchmove"&&(T.grabbedLeft=T.grabbedRight=T.grabbedCenter=T.fixedWidth=T.fixedExtreme=T.otherHandlePos=T.hasDragged=T.dragOffset=null),T.navigatorEnabled&&S(T.zoomedMin)&&S(T.zoomedMax)&&(e=Math.round(T.zoomedMin),o=Math.round(T.zoomedMax),T.shades&&T.drawMasks(e,o,N,_),T.outline&&T.drawOutline(e,o,N,_),T.navigatorOptions.handles.enabled&&Object.keys(T.handles).length===T.handles.length&&(T.drawHandle(e,0,N,_),T.drawHandle(o,1,N,_)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(i){i()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var i=this.baseSeries||[];this.navigatorEnabled&&i[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&i.forEach(function(o){g(o,"updatedData",this.updatedDataHandler)},this),i[0].xAxis&&g(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.init=function(i){var o=i.options,e=o.navigator||{},s=e.enabled,n=o.scrollbar||{},l=n.enabled,b=s&&e.height||0,T=l&&n.height||0;this.handles=[],this.shades=[],this.chart=i,this.setBaseSeries(),this.height=b,this.scrollbarHeight=T,this.scrollbarEnabled=l,this.navigatorEnabled=s,this.navigatorOptions=e,this.scrollbarOptions=n,this.outlineHeight=b+T,this.opposite=p(e.opposite,!!(!s&&i.inverted));var D=this,d=D.baseSeries,C=i.xAxis.length,A=i.yAxis.length,N=d&&d[0]&&d[0].xAxis||i.xAxis[0]||{options:{}};i.isDirtyBox=!0,D.navigatorEnabled?(D.xAxis=new W(i,x({breaks:N.options.breaks,ordinal:N.options.ordinal},e.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:C,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},i.inverted?{offsets:[T,0,-T,0],width:b}:{offsets:[0,-T,0,T],height:b})),D.yAxis=new W(i,x(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:A,isInternal:!0,reversed:p(e.yAxis&&e.yAxis.reversed,i.yAxis[0]&&i.yAxis[0].reversed,!1),zoomEnabled:!1},i.inverted?{width:b}:{height:b})),d||e.series.data?D.updateNavigatorSeries(!1):i.series.length===0&&(D.unbindRedraw=M(i,"beforeRedraw",function(){i.series.length>0&&!D.series&&(D.setBaseSeries(),D.unbindRedraw())})),D.reversedExtremes=i.inverted&&!D.xAxis.reversed||!i.inverted&&D.xAxis.reversed,D.renderElements(),D.addMouseEvents()):(D.xAxis={chart:i,navigatorAxis:{fake:!0},translate:function(_,L){var O=i.xAxis[0],j=O.getExtremes(),Y=O.len-2*T,X=a("min",O.options.min,j.dataMin),G=a("max",O.options.max,j.dataMax)-X;return L?_*G/Y+X:Y*(_-X)/G},toPixels:function(_){return this.translate(_)},toValue:function(_){return this.translate(_,!0)}},D.xAxis.navigatorAxis.axis=D.xAxis,D.xAxis.navigatorAxis.toFixedRange=V.prototype.toFixedRange.bind(D.xAxis.navigatorAxis)),i.options.scrollbar.enabled&&(i.scrollbar=D.scrollbar=new Z(i.renderer,x(i.options.scrollbar,{margin:D.navigatorEnabled?0:10,vertical:i.inverted}),i),M(D.scrollbar,"changed",function(_){var L=D.size,O=L*this.to,j=L*this.from;D.hasDragged=D.scrollbar.hasDragged,D.render(0,0,j,O),this.shouldUpdateExtremes(_.DOMType)&&setTimeout(function(){D.onMouseUp(_)})})),D.addBaseSeriesEvents(),D.addChartEvents()},t.prototype.getUnionExtremes=function(i){var o,e=this.chart.xAxis[0],s=this.xAxis,n=s.options,l=e.options;return i&&e.dataMin===null||(o={dataMin:p(n&&n.min,a("min",l.min,e.dataMin,s.dataMin,s.min)),dataMax:p(n&&n.max,a("max",l.max,e.dataMax,s.dataMax,s.max))}),o},t.prototype.setBaseSeries=function(i,o){var e=this.chart,s=this.baseSeries=[];i=i||e.options&&e.options.navigator.baseSeries||(e.series.length?v(e.series,function(n){return!n.options.isInternal}).index:0),(e.series||[]).forEach(function(n,l){n.options.isInternal||!n.options.showInNavigator&&(l!==i&&n.options.id!==i||n.options.showInNavigator===!1)||s.push(n)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,o)},t.prototype.updateNavigatorSeries=function(i,o){var e,s,n,l=this,b=l.chart,T=l.baseSeries,D={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},d=l.series=(l.series||[]).filter(function(A){var N=A.baseSeries;return!(T.indexOf(N)<0&&(N&&(g(N,"updatedData",l.updatedDataHandler),delete N.navigatorSeries),A.chart&&A.destroy(),1))}),C=l.navigatorOptions.series;T&&T.length&&T.forEach(function(A){var N=A.navigatorSeries,_=u({color:A.color,visible:A.visible},w(C)?z.navigator.series:C);if(!N||l.navigatorOptions.adaptToUpdatedData!==!1){D.name="Navigator "+T.length,e=A.options||{},n=e.navigatorOptions||{},_.dataLabels=r(_.dataLabels),(s=x(e,D,_,n)).pointRange=p(_.pointRange,n.pointRange,z.plotOptions[s.type||"line"].pointRange);var L=n.data||_.data;l.hasNavigatorData=l.hasNavigatorData||!!L,s.data=L||e.data&&e.data.slice(0),N&&N.options?N.update(s,o):(A.navigatorSeries=b.initSeries(s),A.navigatorSeries.baseSeries=A,d.push(A.navigatorSeries))}}),(!C.data||T&&T.length)&&!w(C)||(l.hasNavigatorData=!1,(C=r(C)).forEach(function(A,N){D.name="Navigator "+(d.length+1),(s=x(z.navigator.series,{color:b.series[N]&&!b.series[N].options.isInternal&&b.series[N].color||b.options.colors[N]||b.options.colors[0]},D,A)).data=A.data,s.data&&(l.hasNavigatorData=!0,d.push(b.initSeries(s)))})),i&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var i=this,o=this,e=o.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(M(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(s){s.eventsToUnbind.push(M(s,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),s.eventsToUnbind.push(M(s,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),i.navigatorOptions.adaptToUpdatedData!==!1&&s.xAxis&&s.eventsToUnbind.push(M(s,"updatedData",i.updatedDataHandler)),s.eventsToUnbind.push(M(s,"remove",function(){this.navigatorSeries&&(m(o.series,this.navigatorSeries),h(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(i){return this.baseSeries.reduce(function(o,e){return Math.min(o,e.xData&&e.xData.length?e.xData[0]:o)},i)},t.prototype.modifyNavigatorAxisExtremes=function(){var i=this.xAxis;if(i.getExtremes!==void 0){var o=this.getUnionExtremes(!0);!o||o.dataMin===i.min&&o.dataMax===i.max||(i.min=o.dataMin,i.max=o.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var i,o,e=this,s=e.chart.navigator,n=e.getExtremes(),l=n.min,b=n.max,T=n.dataMin,D=n.dataMax,d=b-l,C=s.stickToMin,A=s.stickToMax,N=p(e.options.overscroll,0),_=s.series&&s.series[0],L=!!e.setExtremes;e.eventArgs&&e.eventArgs.trigger==="rangeSelectorButton"||(C&&(i=(o=T)+d),A&&(i=D+N,C||(o=Math.max(T,i-d,s.getBaseSeriesMin(_&&_.xData?_.xData[0]:-Number.MAX_VALUE)))),L&&(C||A)&&S(o)&&(e.min=e.userMin=o,e.max=e.userMax=i)),s.stickToMin=s.stickToMax=null},t.prototype.updatedDataHandler=function(){var i=this.chart.navigator,o=this,e=this.navigatorSeries,s=i.reversedExtremes?Math.round(i.zoomedMin)===0:Math.round(i.zoomedMax)>=Math.round(i.size);i.stickToMax=p(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,s),i.stickToMin=i.shouldStickToMin(o,i),e&&!i.hasNavigatorData&&(e.options.pointStart=o.xData[0],e.setData(o.options.data,!1,null,!1))},t.prototype.shouldStickToMin=function(i,o){var e=o.getBaseSeriesMin(i.xData[0]),s=i.xAxis,n=s.max,l=s.min,b=s.options.range;return!(!S(n)||!S(l))&&(b&&n-e>0?n-e<b:l<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(M(this.chart,"redraw",function(){var i=this.navigator,o=i&&(i.baseSeries&&i.baseSeries[0]&&i.baseSeries[0].xAxis||this.xAxis[0]);o&&i.render(o.min,o.max)}),M(this.chart,"getMargins",function(){var i=this,o=i.navigator,e=o.opposite?"plotTop":"marginBottom";i.inverted&&(e=o.opposite?"marginRight":"plotLeft"),i[e]=(i[e]||0)+(o.navigatorEnabled||!i.inverted?o.outlineHeight:0)+o.navigatorOptions.margin}))},t.prototype.destroy=function(){var i=this;this.removeEvents(),this.xAxis&&(m(this.chart.xAxis,this.xAxis),m(this.chart.axes,this.xAxis)),this.yAxis&&(m(this.chart.yAxis,this.yAxis),m(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(o){o.destroy&&o.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(o){i[o]&&i[o].destroy&&i[o].destroy(),i[o]=null}),[this.handles].forEach(function(o){f(o)})},t}()}),it(B,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,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"}}}}),it(B,"Stock/RangeSelector/RangeSelectorComposition.js",[B["Core/Defaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.defaultOptions,Z=W.setOptions,U=H.addEvent,z=H.defined,I=H.extend,E=H.find,M=H.isNumber,P=H.merge,y=H.pick,h=[],f=[];function m(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(l,b){var T=i==="year"?"FullYear":"Month",D=new e.Date(l),d=e.get(T,D);return e.set(T,D,d+b),d===e.get(T,D)&&e.set("Date",D,0),D.getTime()-l};M(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return M(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),M(o)?!M(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new V(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){M(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function w(r){var a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,M(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(h,function(n){return n[0]===r})||h.push([r,[U(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),U(r,"redraw",s)]]),s())}function S(){for(var r=0,a=h.length;r<a;++r){var t=h[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void h.splice(r,1)}}function x(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function p(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function g(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!z(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new V(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){w(this);var e=a&&a.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,a,t){V=t,f.indexOf(r)===-1&&(f.push(r),r.prototype.minFromRange=m),f.indexOf(a)===-1&&(f.push(a),U(a,"afterGetContainer",u),U(a,"beforeRender",v),U(a,"destroy",S),U(a,"getMargins",x),U(a,"render",p),U(a,"update",g),a.prototype.callbacks.push(w)),f.indexOf(Z)===-1&&(I($,{rangeSelector:R.rangeSelector}),I($.lang,R.lang))}}}),it(B,"Stock/RangeSelector/RangeSelector.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Stock/RangeSelector/RangeSelectorComposition.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.defaultOptions,z=Z.addEvent,I=Z.createElement,E=Z.css,M=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,h=Z.extend,f=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,w=Z.pad,S=Z.pick,x=Z.pInt,p=Z.splat,g=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){V.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,l,b,T=this,D=T.chart,d=T.buttonOptions[a],C=D.xAxis[0],A=D.scroller&&D.scroller.getUnionExtremes()||C||{},N=d.type,_=d.dataGrouping,L=A.dataMin,O=A.dataMax,j=C&&Math.round(Math.min(C.max,S(O,C.max))),Y=d._range,X=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,T.setSelected(a),_&&(this.forcedDataGrouping=!0,W.prototype.setDataGrouping.call(C||{chart:this.chart},_,!1),this.frozenStates=d.preserveDataGrouping),N==="month"||N==="year")C?(l={range:d,max:j,chart:D,dataMin:L,dataMax:O},i=C.minFromRange.call(l),m(l.newMax)&&(j=l.newMax),X=!1):Y=d;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),X=!1;else if(N==="ytd"){if(!C)return void(T.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(G){var q=G.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=T.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&C&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);X&&d._offsetMin&&M(i)&&(i+=d._offsetMin),d._offsetMax&&M(j)&&(j+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),C?C.setExtremes(i,j,S(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=p(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,z(D,"load",function(){o.range=n,o.min=s})),f(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,l=t.maxInput;n&&n.blur&&f(n,"blur"),l&&l.blur&&f(l,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(z(a.container,"mousedown",s)),this.eventsToUnbind.push(z(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,l=t.scroller&&t.scroller.getUnionExtremes()||o,b=l.dataMin,T=l.dataMax,D=a.getYTDExtremes(T,b,t.time.useUTC),d=D.min,C=D.max,A=a.selected,N=a.options.allButtonsEnabled,_=a.buttons,L=m(A);a.buttonOptions.forEach(function(O,j){var Y=O._range,X=O.type,G=O.count||1,q=_[j],Q=O._offsetMax-O._offsetMin,J=j===A,rt=Y>T-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(X==="month"||X==="year")&&e+36e5>={month:28,year:365}[X]*n*G-Q&&e-36e5<={month:31,year:366}[X]*n*G+Q?yt=!0:X==="ytd"?(yt=C-d+Q===e,mt=!J):X==="all"&&(yt=o.max-o.min>=T-b,bt=!J&&L&&yt);var ht=!N&&(rt||lt||bt||s),et=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;ht?gt=3:et&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=ht,gt===2&&(i.selectedIndex=j+1)),gt===0&&A===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=S(a.offsetMin,0),a._offsetMax=S(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),l=M(n)?Number(n):void 0;if(M(t)){var b=l;M(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),l=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,l),s&&s.attr({text:o.dateFormat(i.inputDateFormat,l)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var l=s.dateFormat(e,i);o.max!==l&&(o.max=l)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,l=this.options.inputBoxWidth;E(i,{width:o?t.width+(l?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&l?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(H.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(w(-s),":00"):"-".concat(w(s),":00")}var n=Date.parse(e);if(!m(n)){var l=a.split("-");n=Date.UTC(x(l[0]),x(l[1])-1,x(l[2]))}return i&&t&&m(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},l=i.renderer,b=i.options.rangeSelector,T=U.lang,D=a==="min";function d(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],X=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,G=X.dataMin,q=X.dataMax,Q=s.getInputValue(a);Q!==Number(_.getAttribute("data-hc-time-previous"))&&m(Q)&&(_.setAttribute("data-hc-time-previous",Q),D&&O&&m(G)?Q>Number(O.getAttribute("data-hc-time"))?Q=void 0:Q<G&&(Q=G):j&&m(q)&&(Q<Number(j.getAttribute("data-hc-time"))?Q=void 0:Q>q&&(Q=q)),Q!==void 0&&Y.setExtremes(D?Q:Y.min,D?Y.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=T[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",A=l.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?b.inputBoxHeight:0}).add(e),N=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var _=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);_.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return O.indexOf("%"+X)!==-1}),Y=["H","k","I","l","M","S"].some(function(X){return O.indexOf("%"+X)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(A.css(u(n,b.labelStyle)),N.css(u({color:"#333333"},n,b.inputStyle)),E(_,h({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),_.onfocus=function(){s.showInput(a)},_.onblur=function(){_===H.doc.activeElement&&d(),s.hideInput(a),s.setInputValue(a),_.blur()};var L=!1;return _.onchange=function(){L||(d(),s.hideInput(a),_.blur())},_.onkeypress=function(O){O.keyCode===13&&d()},_.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||d()},_.onkeyup=function(){L=!1},{dateBox:N,input:_,label:A}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),l=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:l}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,l=S(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,T=this.rendered;if(n.enabled!==!1){if(!T&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var C=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(M(C.dataMin)&&M(C.dataMax)){var A=i.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-A),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+A,C.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(_){if(_){var L=_.getBBox().width;L&&(_.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=U.lang,n=o.renderer,l=u(e.buttonTheme),b=l&&l.states,T=l.width||28;delete l.width,delete l.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);z(D,"touchstart",function(){D.style.fontSize="16px"}),[[H.isMS?"mouseover":"mouseenter"],[H.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var C=d[0],A=d[1];z(D,C,function(){var N=i[a.currentButtonIndex()];N&&f(N.element,A||C)})}),this.zoomText=n.label(s&&s.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),l["stroke-width"]=S(l["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(d,C){I("option",{textContent:d.title||d.text},void 0,D),i[C]=n.button(d.text,0,0,function(A){var N,_=d.events&&d.events.click;_&&(N=_.call(d,A)),N!==!1&&a.clickButton(C),a.isActive=!0},l,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:T}).add(a.buttonGroup),d.title&&i[C].attr("title",d.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,l=t.options,b=t.zoomText,T=e.options,D=T.exporting&&T.exporting.enabled!==!1&&T.navigation&&T.navigation.buttonOptions,d=l.buttonPosition,C=l.inputPosition,A=l.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&A==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},_=e.plotLeft;if(s&&d&&C){var L=d.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=l.buttonSpacing)}),this.initialButtonGroupWidth=O}_-=e.spacing[3],this.updateButtonStates();var j=N(i,d);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,C),C.align==="left"?L=_:C.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:C.y,width:n.getBBox().width,align:C.align,x:C.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:A},!0,e.spacingBox);var X=s.alignAttr.translateY,G=s.getBBox().height+20,q=0;if(A==="bottom"){var Q=e.legend&&e.legend.options;q=X-(G=G+(Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?e.legend.legendHeight+S(Q.margin,10):0)-20)-(l.floating?0:l.y)-(e.titleOffset?e.titleOffset[2]:0)-10}A==="top"?(l.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):A==="middle"&&(C.y===d.y?q=X:(C.y||d.y)&&(C.y<0||d.y<0?q-=Math.min(C.y,d.y):q=X-G)),s.translate(l.x,l.y+Math.floor(q));var J=this,rt=J.minInput,lt=J.maxInput,gt=J.dropdown;l.inputEnabled&&rt&&lt&&(rt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,l=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-l:n.align==="center"&&(b-=l/2),s&&s.align({y:n.y,width:S(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,l=i.plotLeft,b=l;e&&e.visibility!=="hidden"&&(e[s]({x:S(l+n.x,l)}),b+=n.x+e.getBBox().width+5);for(var T=0,D=this.buttonOptions.length;T<D;++T)t[T].visibility!=="hidden"?(t[T][s]({x:b}),b+=t[T].width+o.buttonSpacing):t[T][s]({x:l})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,l=n.buttonPosition,b=n.dropdown,T=n.inputPosition,D=function(){var A=0;return t.buttons.forEach(function(N){var _=N.getBBox();_.width>A&&(A=_.width)}),A},d=function(A){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,_=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+A>N&&N+_>L&&l.y<T.y+s.getBBox().height}return!1},C=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(d(D())&&C());b==="never"&&this.expandButtons()}s&&e?T.align===l.align||d(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),d(D())&&C()):C():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,l=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},T=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:S(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:S(n.buttonTheme.paddingRight,b.padding,8)}};l&&l.hide();var D=!1;o.forEach(function(C,A){var N=i[A];N.state!==2?N.hide():(N.show(),N.attr(T(C.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(T(this.zoomText&&this.zoomText.textStr)));var d=n.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var l=t[n];l.show(),l.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:S(o.buttonTheme.paddingLeft,"unset"),paddingRight:S(o.buttonTheme.paddingRight,"unset")}),l.state<2&&l.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,l=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:l.width+"px",height:l.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,l=0;if(a.height)return a.height;this.alignElements(),l=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(l+=Math.abs(b)),l},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;u(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),P(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof ft.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return h(g.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"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),g}),it(B,"Core/Axis/OrdinalAxis.js",[B["Core/Axis/Axis.js"],B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=V.addEvent,U=V.correctFloat,z=V.css,I=V.defined,E=V.error,M=V.pick,P=V.timeUnits,y=[];return function(h){function f(i,o,e,s,n,l,b){n===void 0&&(n=[]),l===void 0&&(l=0);var T,D,d,C,A,N={},_=this.options.tickPixelInterval,L=this.chart.time,O=[],j=0,Y=[],X=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!n||n.length<3||o===void 0)return L.getTimeTicks.apply(L,arguments);var G=n.length;for(T=0;T<G;T++){if(A=T&&n[T-1]>e,n[T]<o&&(j=T),T===G-1||n[T+1]-n[T]>5*l||A){if(n[T]>X){for(D=L.getTimeTicks(i,n[j],n[T],s);D.length&&D[0]<=X;)D.shift();D.length&&(X=D[D.length-1]),O.push(Y.length),Y=Y.concat(D)}j=T+1}if(A)break}if(D){if(C=D.info,b&&C.unitRange<=P.hour){for(T=Y.length-1,j=1;j<T;j++)L.dateFormat("%d",Y[j])!==L.dateFormat("%d",Y[j-1])&&(N[Y[j]]="day",d=!0);d&&(N[Y[0]]="day"),C.higherRanks=N}C.segmentStarts=O,Y.info=C}else E(12,!1,this.chart);if(b&&I(_)){for(var q=Y.length,Q=[],J=[],rt=void 0,lt=void 0,gt=void 0,mt=void 0,bt=void 0,yt=q;yt--;)lt=this.translate(Y[yt]),gt&&(J[yt]=gt-lt),Q[yt]=gt=lt;for(J.sort(),(mt=J[Math.floor(J.length/2)])<.6*_&&(mt=null),yt=Y[q-1]>e?q-1:q,gt=void 0;yt--;)lt=Q[yt],bt=Math.abs(gt-lt),gt&&bt<.8*_&&(mt===null||bt<.8*mt)?(N[Y[yt]]&&!N[Y[yt+1]]?(rt=yt+1,gt=lt):rt=yt,Y.splice(rt,1)):gt=lt}return Y}function m(i){var o=this.ordinal.positions;if(!o)return i;var e,s=o.length-1;return i<0?i=o[0]:i>s?i=o[s]:e=i-(s=Math.floor(i)),e!==void 0&&o[s]!==void 0?o[s]+(e?e*(o[s+1]-o[s]):0):i}function u(i){var o=this,e=o.ordinal,s=o.old?o.old.min:o.min,n=o.old?o.old.transA:o.transA,l=e.positions;if(!l)return i;var b=(i-s)*n+o.minPixelPadding;if(b>0&&b<o.left+o.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),l=e.extendedOrdinalPositions),l&&l.length){var T=e.getIndexOfPoint(b,l),D=U(T%1);if(T>=0&&T<l.length-1){var d=l[Math.floor(T)],C=l[Math.ceil(T)]-d;return l[Math.floor(T)]+D*C}var A=l.length,N=l[0],_=l[A-1],L=(_-N)/(A-1);return T<0?N+L*T:_+L*(T-A)}return i}function v(i,o){var e=h.Additions.findIndexOf(i,o,!0);return i[e]===o?e:e+(o-i[e])/(i[e+1]-i[e])}function w(){var i=this;i.ordinal||(i.ordinal=new h.Additions(i))}function S(){var i=this;i.isXAxis&&I(i.options.overscroll)&&i.max===i.dataMax&&(!i.chart.mouseIsDown||i.isInternal)&&(!i.eventArgs||i.eventArgs&&i.eventArgs.trigger!=="navigator")&&(i.max+=i.options.overscroll,!i.isInternal&&I(i.userMin)&&(i.min+=i.options.overscroll))}function x(){var i=this;i.horiz&&!i.isDirty&&(i.isDirty=i.isOrdinal&&i.chart.navigator&&!i.chart.navigator.adaptToUpdatedData)}function p(){var i=this;i.ordinal&&(i.ordinal.beforeSetTickPositions(),i.tickInterval=i.ordinal.postProcessTickInterval(i.tickInterval))}function g(i){var o=this,e=o.xAxis[0],s=e.options.overscroll,n=i.originalEvent.chartX,l=o.options.chart.panning,b=!1;if(l&&l.type!=="y"&&e.options.ordinal&&e.series.length){var T=o.mouseDownX,D=e.getExtremes(),d=D.dataMax,C=D.min,A=D.max,N=o.hoverPoints,_=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,L=(T-n)/(e.translationSlope*(e.ordinal.slope||_)),O=e.ordinal.getExtendedPositions(),j={ordinal:{positions:O,extendedOrdinalPositions:O}},Y=e.index2val,X=e.val2lin,G=void 0,q=void 0,Q=void 0,J=void 0;j.ordinal.positions?Math.abs(L)>1&&(N&&N.forEach(function(rt){rt.setState()}),L<0?(Q=j,J=e.ordinal.positions?e:j):(Q=e.ordinal.positions?e:j,J=j),d>(q=J.ordinal.positions)[q.length-1]&&q.push(d),o.fixedRange=A-C,(G=e.navigatorAxis.toFixedRange(void 0,void 0,Y.apply(Q,[X.apply(Q,[C,!0])+L]),Y.apply(J,[X.apply(J,[A,!0])+L]))).min>=Math.min(D.dataMin,C)&&G.max<=Math.max(d,A)+s&&e.setExtremes(G.min,G.max,!0,!1,{trigger:"pan"}),o.mouseDownX=n,z(o.container,{cursor:"move"})):b=!0}else b=!0;b||l&&/y/.test(l.type)?s&&(e.max=e.dataMax+s):i.preventDefault()}function r(){var i=this.xAxis;i&&i.options.ordinal&&(delete i.ordinal.index,delete i.ordinal.extendedOrdinalPositions)}function a(i,o){var e=this.ordinal,s=e.positions,n=e.slope,l=e.extendedOrdinalPositions;if(!s)return i;var b,T=s.length;if(s[0]<=i&&s[T-1]>=i)b=v(s,i);else{if(l||(l=e.getExtendedPositions&&e.getExtendedPositions(),e.extendedOrdinalPositions=l),!l||!l.length)return i;var D=l.length;n||(n=(l[D-1]-l[0])/D);var d=v(l,s[0]);b=i>=l[0]&&i<=l[D-1]?v(l,i)-d:i<l[0]?-d-(l[0]-i)/n:(i-l[D-1])/n+D-d}return o?b:n*(b||0)+e.offset}h.compose=function(i,o,e){if(y.indexOf(i)===-1){y.push(i);var s=i.prototype;s.getTimeTicks=f,s.index2val=m,s.lin2val=u,s.val2lin=a,s.ordinal2lin=s.val2lin,Z(i,"afterInit",w),Z(i,"foundExtremes",S),Z(i,"afterSetScale",x),Z(i,"initialAxisTranslation",p)}return y.indexOf(e)===-1&&(y.push(e),Z(e,"pan",g)),y.indexOf(o)===-1&&(y.push(o),Z(o,"updatedData",r)),i};var t=function(){function i(o){this.index={},this.axis=o}return i.prototype.beforeSetTickPositions=function(){var o,e,s,n,l,b,T,D=this.axis,d=D.ordinal,C=D.getExtremes(),A=C.min,N=C.max,_=D.isXAxis&&!!D.options.breaks,L=D.options.ordinal,O=D.chart.options.chart.ignoreHiddenSeries,j=[],Y=Number.MAX_VALUE,X=!1,G=!1,q=!1;if(L||_){var Q=0;if(D.series.forEach(function(J,rt){if(e=[],rt>0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(G=Q!==J.processedXData[1]-J.processedXData[0]),Q=J.processedXData[1]-J.processedXData[0],J.boosted&&(q=J.boosted),(!O||J.visible!==!1)&&(J.takeOrdinalPosition!==!1||_)&&(j=j.concat(J.processedXData),o=j.length,j.sort(function(lt,gt){return lt-gt}),Y=Math.min(Y,M(J.closestPointRange,Y)),o)){for(rt=0;rt<o-1;)j[rt]!==j[rt+1]&&e.push(j[rt+1]),rt++;e[0]!==j[0]&&e.unshift(j[0]),j=e}}),G&&q&&(j.pop(),j.shift()),(o=j.length)>2){for(s=j[1]-j[0],T=o-1;T--&&!X;)j[T+1]-j[T]!==s&&(X=!0);!D.options.keepOrdinalPadding&&(j[0]-A>s||N-j[j.length-1]>s)&&(X=!0)}else D.options.overscroll&&(o===2?Y=j[1]-j[0]:o===1?(Y=D.options.overscroll,j=[j[0],j[0]+Y]):Y=d.overscrollPointsRange);X||D.forceOrdinal?(D.options.overscroll&&(d.overscrollPointsRange=Y,j=j.concat(d.getOverscrollPositions())),d.positions=j,n=D.ordinal2lin(Math.max(A,j[0]),!0),l=Math.max(D.ordinal2lin(Math.min(N,j[j.length-1]),!0),1),d.slope=b=(N-A)/(l-n),d.offset=A-n*b):(d.overscrollPointsRange=M(D.closestPointRange,d.overscrollPointsRange),d.positions=D.ordinal.slope=d.offset=void 0)}D.isOrdinal=L&&X,d.groupIntervalFactor=null},i.findIndexOf=function(o,e,s){for(var n,l=0,b=o.length-1;l<b;)o[n=Math.ceil((l+b)/2)]<=e?l=n:b=n-1;return o[l]===e||s?l:-1},i.prototype.getExtendedPositions=function(){var o,e=this,s=e.axis,n=s.constructor.prototype,l=s.chart,b=s.series[0].currentDataGrouping,T=b?b.count+b.unitName:"raw",D=s.options.overscroll,d=s.getExtremes(),C=void 0,A=e.index;return A||(A=e.index={}),A[T]||((o={series:[],chart:l,forceOrdinal:!1,getExtremes:function(){return{min:d.dataMin,max:d.dataMax+D}},getGroupPixelWidth:n.getGroupPixelWidth,getTimeTicks:n.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:n.ordinal2lin,getIndexOfPoint:n.getIndexOfPoint,val2lin:n.val2lin}).ordinal.axis=o,s.series.forEach(function(N){(C={xAxis:o,xData:N.xData.slice(),chart:l,destroyGroupedData:R.noop,getProcessedData:H.prototype.getProcessedData,applyGrouping:H.prototype.applyGrouping}).xData=C.xData.concat(e.getOverscrollPositions()),C.options={dataGrouping:b?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}},o.series.push(C),N.processData.apply(C)}),C.closestPointRange!==C.basePointRange&&C.currentDataGrouping&&(o.forceOrdinal=!0),s.ordinal.beforeSetTickPositions.apply({axis:o}),A[T]=o.ordinal.positions),A[T]},i.prototype.getGroupIntervalFactor=function(o,e,s){var n,l,b=this,T=s.processedXData,D=T.length,d=[],C=b.groupIntervalFactor;if(!C){for(l=0;l<D-1;l++)d[l]=T[l+1]-T[l];d.sort(function(A,N){return A-N}),n=d[Math.floor(D/2)],o=Math.max(o,T[0]),e=Math.min(e,T[D-1]),b.groupIntervalFactor=C=D*n/(e-o)}return C},i.prototype.getIndexOfPoint=function(o,e){var s=this,n=s.axis,l=s.positions?s.positions[0]:0,b=n.series[0].points&&n.series[0].points[0]&&n.series[0].points[0].plotX||n.minPixelPadding;n.series.length>1&&n.series.forEach(function(d){d.points&&I(d.points[0])&&I(d.points[0].plotX)&&d.points[0].plotX<b&&d.points[0].plotX>=M(n.min,-1/0)&&(b=d.points[0].plotX)});var T=n.translationSlope*(s.slope||n.closestPointRange||s.overscrollPointsRange),D=(o-b)/T;return i.findIndexOf(e,l)+D},i.prototype.getOverscrollPositions=function(){var o=this.axis,e=o.options.overscroll,s=this.overscrollPointsRange,n=[],l=o.dataMax;if(I(s))for(;l<=o.dataMax+e;)l+=s,n.push(l);return n},i.prototype.postProcessTickInterval=function(o){var e=this.axis,s=this.slope;return s?e.options.breaks?e.closestPointRange||o:o/(s/e.closestPointRange):o},i}();h.Additions=t}($||($={})),$}),it(B,"Series/HLC/HLCPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.close=void 0,U.high=void 0,U.low=void 0,U.options=void 0,U.plotClose=void 0,U.series=void 0,U}return H(Z,$),Z}(W.seriesTypes.column.prototype.pointClass);return V}),it(B,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</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}}),it(B,"Series/HLC/HLCSeries.js",[B["Series/HLC/HLCPoint.js"],B["Series/HLC/HLCSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(M,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},$(M,P)},function(M,P){function y(){this.constructor=M}$(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),U=H.seriesTypes.column,z=V.extend,I=V.merge,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y.yData=void 0,y}return Z(P,M),P.prototype.extendStem=function(y,h,f){var m=y[0],u=y[1];typeof m[2]=="number"&&(m[2]=Math.max(f+h,m[2])),typeof u[2]=="number"&&(u[2]=Math.min(f-h,u[2]))},P.prototype.getPointPath=function(y,h){var f=h.strokeWidth(),m=y.series,u=f%2/2,v=Math.round(y.plotX)-u,w=Math.round(y.shapeArgs.width/2),S=y.plotClose,x=[["M",v,Math.round(y.yBottom)],["L",v,Math.round(y.plotHigh)]];return y.close!==null&&(S=Math.round(y.plotClose)+u,x.push(["M",v,S],["L",v+w,S]),m.extendStem(x,f/2,S)),x},P.prototype.drawSinglePoint=function(y){var h,f=y.series,m=f.chart,u=y.graphic;y.plotY!==void 0&&(u||(y.graphic=u=m.renderer.path().add(f.group)),m.styledMode||u.attr(f.pointAttribs(y,y.selected&&"select")),h=f.getPointPath(y,u),u[u?"animate":"attr"]({d:h}).addClass(y.getClassName(),!0))},P.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},P.prototype.init=function(){M.prototype.init.apply(this,arguments),this.options.stacking=void 0},P.prototype.pointAttribs=function(y,h){var f=M.prototype.pointAttribs.call(this,y,h);return delete f.fill,f},P.prototype.toYData=function(y){return[y.high,y.low,y.close]},P.prototype.translate=function(){var y=this,h=y.yAxis,f=this.pointArrayMap&&this.pointArrayMap.slice()||[],m=f.map(function(u){return"plot".concat(u.charAt(0).toUpperCase()+u.slice(1))});m.push("yBottom"),f.push("low"),M.prototype.translate.apply(y),y.points.forEach(function(u){f.forEach(function(v,w){var S=u[v];S!==null&&(y.dataModify&&(S=y.dataModify.modifyValue(S)),u[m[w]]=h.toPixels(S,!0))}),u.tooltipPos[1]=u.plotHigh+h.pos-y.chart.plotTop})},P.defaultOptions=I(U.defaultOptions,R),P}(U);return z(E.prototype,{pointClass:W,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),H.registerSeriesType("hlc",E),E}),it(B,"Series/OHLC/OHLCPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.open=void 0,U.options=void 0,U.plotOpen=void 0,U.series=void 0,U}return H(Z,$),Z.prototype.getClassName=function(){return $.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},Z.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},Z.prototype.resolveColor=function(){$.prototype.resolveColor.call(this),this.resolveUpColor()},Z.prototype.getZone=function(){var U=$.prototype.getZone.call(this);return this.resolveUpColor(),U},Z.prototype.applyOptions=function(){return $.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},Z}(W.seriesTypes.hlc.prototype.pointClass);return V}),it(B,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),it(B,"Series/OHLC/OHLCSeries.js",[B["Series/OHLC/OHLCPoint.js"],B["Series/OHLC/OHLCSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(f,m){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},$(f,m)},function(f,m){function u(){this.constructor=f}$(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),U=H.seriesTypes.hlc,z=V.addEvent,I=V.extend,E=V.merge,M=[];function P(f){var m=f.options,u=m.dataGrouping;u&&m.useOhlcData&&m.id!=="highcharts-navigator-series"&&(u.approximation="ohlc")}function y(f){var m=f.options;m.useOhlcData&&m.id!=="highcharts-navigator-series"&&I(this,{pointValKey:h.prototype.pointValKey,pointArrayMap:h.prototype.pointArrayMap,toYData:h.prototype.toYData})}var h=function(f){function m(){var u=f!==null&&f.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return Z(m,f),m.compose=function(u){for(var v=[],w=1;w<arguments.length;w++)v[w-1]=arguments[w];M.indexOf(u)===-1&&(M.push(u),z(u,"afterSetOptions",P),z(u,"init",y))},m.prototype.getPointPath=function(u,v){var w=f.prototype.getPointPath.call(this,u,v),S=v.strokeWidth(),x=S%2/2,p=Math.round(u.plotX)-x,g=Math.round(u.shapeArgs.width/2),r=u.plotOpen;return u.open!==null&&(r=Math.round(u.plotOpen)+x,w.push(["M",p,r],["L",p-g,r]),f.prototype.extendStem.call(this,w,S/2,r)),w},m.prototype.pointAttribs=function(u,v){var w=f.prototype.pointAttribs.call(this,u,v),S=this.options;return delete w.fill,!u.options.color&&S.upColor&&u.open<u.close&&(w.stroke=S.upColor),w},m.prototype.toYData=function(u){return[u.open,u.high,u.low,u.close]},m.defaultOptions=E(U.defaultOptions,R),m}(U);return I(h.prototype,{pointClass:W,pointArrayMap:["open","high","low","close"]}),H.registerSeriesType("ohlc",h),h}),it(B,"Series/Candlestick/CandlestickSeriesDefaults.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),it(B,"Series/Candlestick/CandlestickSeries.js",[B["Series/Candlestick/CandlestickSeriesDefaults.js"],B["Core/Defaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=R.defaultOptions,z=H.seriesTypes,I=z.column,E=z.ohlc,M=V.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return Z(h,y),h.prototype.pointAttribs=function(f,m){var u=I.prototype.pointAttribs.call(this,f,m),v=this.options,w=f.open<f.close,S=v.lineColor||this.color,x=f.color||this.color;if(u["stroke-width"]=v.lineWidth,u.fill=f.options.color||w&&v.upColor||x,u.stroke=f.options.lineColor||w&&v.upLineColor||S,m){var p=v.states[m];u.fill=p.color||u.fill,u.stroke=p.lineColor||u.stroke,u["stroke-width"]=p.lineWidth||u["stroke-width"]}return u},h.prototype.drawPoints=function(){for(var f=this,m=f.points,u=f.chart,v=f.yAxis.reversed,w=0,S=m;w<S.length;w++){var x=S[w],p=x.graphic,g=void 0,r=void 0,a=void 0,t=void 0,i=void 0,o=void 0,e=void 0,s=void 0,n=void 0,l=void 0,b=!p;x.plotY!==void 0&&(p||(x.graphic=p=u.renderer.path().add(f.group)),f.chart.styledMode||p.attr(f.pointAttribs(x,x.selected&&"select")).shadow(f.options.shadow),e=p.strokeWidth()%2/2,s=Math.round(x.plotX)-e,g=x.plotOpen,r=x.plotClose,a=Math.min(g,r),t=Math.max(g,r),l=Math.round(x.shapeArgs.width/2),i=v?t!==x.yBottom:Math.round(a)!==Math.round(x.plotHigh),o=v?Math.round(a)!==Math.round(x.plotHigh):t!==x.yBottom,a=Math.round(a)+e,t=Math.round(t)+e,(n=[]).push(["M",s-l,t],["L",s-l,a],["L",s+l,a],["L",s+l,t],["Z"],["M",s,a],["L",s,i?Math.round(v?x.yBottom:x.plotHigh):a],["M",s,t],["L",s,o?Math.round(v?x.plotHigh:x.yBottom):t]),p[b?"attr":"animate"]({d:n}).addClass(x.getClassName(),!0))}},h.defaultOptions=M(E.defaultOptions,U.plotOptions,{tooltip:E.defaultOptions.tooltip},W),h}(E);return H.registerSeriesType("candlestick",P),P}),it(B,"Series/Flags/FlagsPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(z,I){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},H(z,I)},function(z,I){function E(){this.constructor=z}H(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=W.seriesTypes.column.prototype.pointClass,Z=R.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E.ttBelow=!1,E}return V(I,z),I.prototype.isValid=function(){return Z(this.y)||this.y===void 0},I.prototype.hasNewShapeType=function(){var E=this.options.shape||this.series.options.shape;return this.graphic&&E&&E!==this.graphic.symbolKey},I}($);return U}),it(B,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}}),it(B,"Series/Flags/FlagsSymbols.js",[B["Core/Renderer/RendererRegistry.js"]],function(W){var R;return function(H){var V=[];function $(U,z,I,E,M){var P=M&&M.anchorX||U,y=M&&M.anchorY||z,h=this.circle(P-1,y-1,2,2);return h.push(["M",P,y],["L",U,z+E],["L",U,z],["L",U+I,z],["L",U+I,z+E],["L",U,z+E],["Z"]),h}function Z(U,z){U[z+"pin"]=function(I,E,M,P,y){var h,f=y&&y.anchorX,m=y&&y.anchorY;if(z==="circle"&&P>M&&(I-=Math.round((P-M)/2),M=P),h=U[z](I,E,M,P),f&&m){var u=f;if(z==="circle")u=I+M/2;else{var v=h[0],w=h[1];v[0]==="M"&&w[0]==="L"&&(u=(v[1]+w[1])/2)}var S=E>m?E:E+P;h.push(["M",u,S],["L",f,m]),h=h.concat(U.circle(f-1,m-1,2,2))}return h}}H.compose=function(U){V.indexOf(U)===-1&&(V.push(U),(I=U.prototype.symbols).flag=$,Z(I,"circle"),Z(I,"square"));var z=W.getRendererType();if(V.indexOf(z)){V.push(z);var I=U.prototype.symbols,E=z.prototype.symbols;E.circlepin=I.circlepin,E.flag=I.flag.bind(I),E.squarepin=I.squarepin}}}(R||(R={})),R}),it(B,"Series/OnSeriesComposition.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.prototype,Z=R.prototype,U=H.defined,z=H.stableSort;return function(I){var E=[];function M(y){return Z.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,y)}function P(){$.translate.apply(this);var y,h,f,m,u,v,w,S=this,x=S.options,p=S.chart,g=S.points,r=x.onSeries,a=r&&p.get(r),t=a&&a.options.step,i=a&&a.points,o=p.inverted,e=S.xAxis,s=S.yAxis,n=g.length-1,l=x.onKey||"y",b=i&&i.length,T=0;if(a&&a.visible&&b)for(T=(a.pointXOffset||0)+(a.barW||0)/2,v=a.currentDataGrouping,m=i[b-1].x+(v?v.totalRange:0),z(g,function(D,d){return D.x-d.x}),l="plot"+l[0].toUpperCase()+l.substr(1);b--&&g[n]&&(f=i[b],(y=g[n]).y=f.y,!(f.x<=y.x&&f[l]!==void 0&&(y.x<=m&&(y.plotY=f[l],f.x<y.x&&!t&&(u=i[b+1])&&u[l]!==void 0&&(w=(y.x-f.x)/(u.x-f.x),y.plotY+=w*(u[l]-f[l]),y.y+=w*(u.y-f.y))),b++,--n<0))););g.forEach(function(D,d){var C;D.plotX+=T,(D.plotY===void 0||o)&&(D.plotX>=0&&D.plotX<=e.len?o?(D.plotY=e.translate(D.x,0,1,0,1),D.plotX=U(D.y)?s.translate(D.y,0,0,0,1):0):D.plotY=(e.opposite?0:S.yAxis.len)+e.offset:D.shapeArgs={}),(h=g[d-1])&&h.plotX===D.plotX&&(h.stackIndex===void 0&&(h.stackIndex=0),C=h.stackIndex+1),D.stackIndex=C}),this.onSeries=a}I.compose=function(y){if(E.indexOf(y)===-1){E.push(y);var h=y.prototype;h.getPlotBox=M,h.translate=P}return y},I.getPlotBox=M,I.translate=P}(V||(V={})),V}),it(B,"Series/Flags/FlagsSeries.js",[B["Series/Flags/FlagsPoint.js"],B["Series/Flags/FlagsSeriesDefaults.js"],B["Series/Flags/FlagsSymbols.js"],B["Core/Globals.js"],B["Series/OnSeriesComposition.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=this&&this.__extends||(E=function(g,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},E(g,r)},function(g,r){function a(){this.constructor=g}E(g,r),g.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}),P=V.noop,y=Z.distribute,h=U.series,f=U.seriesTypes.column,m=I.addEvent,u=I.defined,v=I.extend,w=I.merge,S=I.objectEach,x=I.wrap,p=function(g){function r(){var a=g!==null&&g.apply(this,arguments)||this;return a.data=void 0,a.options=void 0,a.points=void 0,a}return M(r,g),r.prototype.animate=function(a){a&&this.setClip()},r.prototype.drawPoints=function(){var a,t,i,o,e,s,n,l,b,T,D,d=this,C=d.points,A=d.chart,N=A.renderer,_=A.inverted,L=d.options,O=L.y,j=d.yAxis,Y={},X=[];for(o=C.length;o--;)e=C[o],T=(_?e.plotY:e.plotX)>d.xAxis.len,a=e.plotX,n=e.stackIndex,i=e.options.shape||L.shape,(t=e.plotY)!==void 0&&(t=e.plotY+O-(n!==void 0&&n*L.stackDistance)),e.anchorX=n?void 0:e.plotX,l=n?void 0:e.plotY,D=i!=="flag",s=e.graphic,t!==void 0&&a>=0&&!T?(s&&e.hasNewShapeType()&&(s=s.destroy()),s||(s=e.graphic=N.label("",null,null,i,null,null,L.useHTML).addClass("highcharts-point").add(d.markerGroup),e.graphic.div&&(e.graphic.div.point=e),s.isNew=!0),s.attr({align:D?"center":"left",width:L.width,height:L.height,"text-align":L.textAlign}),A.styledMode||s.attr(d.pointAttribs(e)).css(w(L.style,e.style)).shadow(L.shadow),a>0&&(a-=s.strokeWidth()%2),b={y:t,anchorY:l},L.allowOverlapX&&(b.x=a,b.anchorX=e.anchorX),s.attr({text:e.options.title||L.title||"A"})[s.isNew?"attr":"animate"](b),L.allowOverlapX||(Y[e.plotX]?Y[e.plotX].size=Math.max(Y[e.plotX].size,s.width):Y[e.plotX]={align:D?.5:0,size:s.width,target:a,anchorX:a}),e.tooltipPos=[a,t+j.pos-A.plotTop]):s&&(e.graphic=s.destroy());if(!L.allowOverlapX){var G=100;S(Y,function(mt){mt.plotX=mt.anchorX,X.push(mt),G=Math.max(mt.size,G)}),y(X,_?j.len:this.xAxis.len,G);for(var q=0,Q=C;q<Q.length;q++){var J=Q[q],rt=J.plotX,lt=J.graphic,gt=lt&&Y[rt];gt&&lt&&(u(gt.pos)?lt[lt.isNew?"attr":"animate"]({x:gt.pos+(gt.align||0)*gt.size,anchorX:J.anchorX}).show().isNew=!1:lt.hide().isNew=!0)}}L.useHTML&&d.markerGroup&&x(d.markerGroup,"on",function(mt){return z.prototype.on.apply(mt.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},r.prototype.drawTracker=function(){var a=this.points;g.prototype.drawTracker.call(this);for(var t=function(e){var s=e.graphic;s&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=m(s.element,"mouseover",function(){e.stackIndex>0&&!e.raised&&(e._y=s.y,s.attr({y:e._y-8}),e.raised=!0);for(var n=0,l=a;n<l.length;n++){var b=l[n];b!==e&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)}}))},i=0,o=a;i<o.length;i++)t(o[i])},r.prototype.pointAttribs=function(a,t){var i=this.options,o=a&&a.color||this.color,e=i.lineColor,s=a&&a.lineWidth,n=a&&a.fillColor||i.fillColor;return t&&(n=i.states[t].fillColor,e=i.states[t].lineColor,s=i.states[t].lineWidth),{fill:n||o,stroke:e||o,"stroke-width":s||i.lineWidth||0}},r.prototype.setClip=function(){h.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},r.compose=H.compose,r.defaultOptions=w(f.defaultOptions,R),r}(f);return $.compose(p),v(p.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:W,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:P,init:h.prototype.init}),U.registerSeriesType("flags",p),p}),it(B,"Core/Chart/StockChart.js",[B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/FormatUtilities.js"],B["Core/Defaults.js"],B["Stock/Navigator/NavigatorDefaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Stock/Scrollbar/ScrollbarDefaults.js"],B["Core/Series/Series.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,P=this&&this.__extends||(M=function(o,e){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l])},M(o,e)},function(o,e){function s(){this.constructor=o}M(o,e),o.prototype=e===null?Object.create(e):(s.prototype=e.prototype,new s)}),y=H.format,h=V.getOptions,f=E.addEvent,m=E.clamp,u=E.defined,v=E.extend,w=E.find,S=E.isNumber,x=E.isString,p=E.merge,g=E.pick,r=E.splat,a=function(o){function e(){return o!==null&&o.apply(this,arguments)||this}return P(e,o),e.prototype.init=function(s,n){var l=h(),b=s.xAxis,T=s.yAxis,D=g(s.navigator&&s.navigator.enabled,$.enabled,!0);s.xAxis=s.yAxis=void 0;var d=p({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:D},scrollbar:{enabled:g(U.enabled,!0)},rangeSelector:{enabled:g(Z.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:g(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},s,{isStock:!0});s.xAxis=b,s.yAxis=T,d.xAxis=r(s.xAxis||{}).map(function(C,A){return p(t("xAxis",C),l.xAxis,l.xAxis&&l.xAxis[A],C,i("xAxis",s))}),d.yAxis=r(s.yAxis||{}).map(function(C,A){return p(t("yAxis",C),l.yAxis,l.yAxis&&l.yAxis[A],C)}),o.prototype.init.call(this,d,n)},e.prototype.createAxis=function(s,n){return n.axis=p(t(s,n.axis),n.axis,i(s,this.userOptions)),o.prototype.createAxis.call(this,s,n)},e}(R);function t(o,e){return o==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:o==="yAxis"?{labels:{y:-2},opposite:g(e.opposite,!0),showLastLabel:!(!e.categories&&e.type!=="category"),title:{text:null}}:{}}function i(o,e){if(o==="xAxis"){var s={type:"datetime",categories:void 0};return g(e.navigator&&e.navigator.enabled,$.enabled,!0)&&(s.startOnTick=!1,s.endOnTick=!1),s}return{}}return function(o){o.stockChart=function(e,s,n){return new o(e,s,n)}}(a||(a={})),f(z,"setOptions",function(o){var e;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(o.plotOptions[this.type]=p(o.plotOptions[this.type],e)))}),f(W,"autoLabelAlign",function(o){var e,s=this.chart,n=this.options,l=s._labelPanes=s._labelPanes||{},b=this.options.labels;this.chart.options.isStock&&this.coll==="yAxis"&&!l[e=n.top+","+n.height]&&b.enabled&&(b.x===15&&(b.x=0),b.align===void 0&&(b.align="right"),l[e]=this,o.align="right",o.preventDefault())}),f(W,"destroy",function(){var o=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&o._labelPanes&&o._labelPanes[e]===this&&delete o._labelPanes[e]}),f(W,"getPlotLinePath",function(o){var e,s,n,l,b,T,D,d,C,A=this,N=this.isLinked&&!this.series?this.linkedParent.series:this.series,_=A.chart,L=_.renderer,O=A.left,j=A.top,Y=[],X=[],G=o.translatedValue,q=o.value,Q=o.force;(_.options.isStock&&o.acrossPanes!==!1&&A.coll==="xAxis"||A.coll==="yAxis")&&(o.preventDefault(),D=A.coll,d=D==="xAxis"?"yAxis":"xAxis",C=A.options[d],X=S(C)?[_[d][C]]:x(C)?[_.get(C)]:N.map(function(J){return J[d]}),(A.isXAxis?_.yAxis:_.xAxis).forEach(function(J){if(!u(J.options.id)||J.options.id.indexOf("navigator")===-1){var rt=J.isXAxis?"yAxis":"xAxis",lt=u(J.options[rt])?_[rt][J.options[rt]]:_[rt][0];A===lt&&X.push(J)}}),b=X.length?[]:[A.isXAxis?_.yAxis[0]:_.xAxis[0]],X.forEach(function(J){b.indexOf(J)!==-1||w(b,function(rt){return rt.pos===J.pos&&rt.len===J.len})||b.push(J)}),T=g(G,A.translate(q,void 0,void 0,o.old)),S(T)&&(A.horiz?b.forEach(function(J){var rt;s=J.pos,l=s+J.len,e=n=Math.round(T+A.transB),Q!=="pass"&&(e<O||e>O+A.width)&&(Q?e=n=m(e,O,O+A.width):rt=!0),rt||Y.push(["M",e,s],["L",n,l])}):b.forEach(function(J){var rt;e=J.pos,n=e+J.len,s=l=Math.round(j+A.height-T),Q!=="pass"&&(s<j||s>j+A.height)&&(Q?s=l=m(s,j,j+A.height):rt=!0),rt||Y.push(["M",e,s],["L",n,l])})),o.path=Y.length>0?L.crispPolyLine(Y,o.lineWidth||1):null)}),I.prototype.crispPolyLine=function(o,e){for(var s=0;s<o.length;s+=2){var n=o[s],l=o[s+1];n[1]===l[1]&&(n[1]=l[1]=Math.round(n[1])-e%2/2),n[2]===l[2]&&(n[2]=l[2]=Math.round(n[2])+e%2/2)}return o},f(W,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),f(W,"afterDrawCrosshair",function(o){if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&S(this.min)&&S(this.max)){var e,s,n,l,b,T=this.chart,D=this.logarithmic,d=this.crosshair.label,C=this.horiz,A=this.opposite,N=this.left,_=this.top,L=this.crossLabel,O=d.format,j="",Y=this.options.tickPosition==="inside",X=this.crosshair.snap!==!1,G=0,q=o.e||this.cross&&this.cross.e,Q=o.point,J=this.min,rt=this.max;D&&(J=D.lin2log(J),rt=D.lin2log(rt)),b=C?"center":A?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",L||(L=this.crossLabel=T.renderer.label("",0,void 0,d.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Q&&Q.series?Q.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:d.align||b,padding:g(d.padding,8),r:g(d.borderRadius,3),zIndex:2}).add(this.labelGroup),T.styledMode||L.attr({fill:d.backgroundColor||Q&&Q.series&&Q.series.color||"#666666",stroke:d.borderColor||"","stroke-width":d.borderWidth||0}).css(v({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},d.style||{}))),C?(e=X?(Q.plotX||0)+N:q.chartX,s=_+(A?0:this.height)):(e=A?this.width+N:0,s=X?(Q.plotY||0)+_:q.chartY),O||d.formatter||(this.dateTime&&(j="%b %d, %Y"),O="{value"+(j?":"+j:"")+"}");var lt=X?this.isXAxis?Q.x:Q.y:this.toValue(C?q.chartX:q.chartY),gt=Q&&Q.series?Q.series.isPointInside(Q):S(lt)&&lt>J&&lt<rt,mt="";O?mt=y(O,{value:lt},T):d.formatter&&S(lt)&&(mt=d.formatter.call(this,lt)),L.attr({text:mt,x:e,y:s,visibility:gt?"inherit":"hidden"}),n=L.getBBox(),S(L.y)&&(C?(Y&&!A||!Y&&A)&&(s=L.y-n.height):s=L.y-n.height/2),l=C?{left:N-n.x,right:N+this.width-n.x}:{left:this.labelAlign==="left"?N:0,right:this.labelAlign==="right"?N+this.width:T.chartWidth},L.translateX<l.left&&(G=l.left-L.translateX),L.translateX+n.width>=l.right&&(G=-(L.translateX+n.width-l.right)),L.attr({x:e+G,y:s,anchorX:C?e:this.opposite?0:T.chartWidth,anchorY:C?this.opposite?T.chartHeight:0:s+n.height/2})}}),z.prototype.forceCropping=function(){var o=this.chart,e=this.options.dataGrouping;return this.allowDG!==!1&&e&&g(e.enabled,o.options.isStock)},f(R,"update",function(o){var e=o.options;"scrollbar"in e&&this.navigator&&(p(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({}),delete e.scrollbar)}),a}),it(B,"masters/modules/stock.src.js",[B["Core/Globals.js"],B["Series/DataModifyComposition.js"],B["Stock/Navigator/Navigator.js"],B["Stock/RangeSelector/RangeSelector.js"],B["Stock/Scrollbar/Scrollbar.js"],B["Core/Axis/OrdinalAxis.js"],B["Series/OHLC/OHLCSeries.js"],B["Series/Flags/FlagsSeries.js"],B["Core/Chart/StockChart.js"]],function(W,R,H,V,$,Z,U,z,I){var E=W;E.Navigator=H,E.RangeSelector=V,E.Scrollbar=$,E.StockChart=E.stockChart=I.stockChart,R.compose(E.Series,E.Axis,E.Point),z.compose(E.Renderer),H.compose(E.Axis,E.Chart,E.Series),U.compose(E.Series),Z.compose(E.Axis,E.Series,E.Chart),V.compose(E.Axis,E.Chart),$.compose(E.Axis)}),it(B,"masters/highstock.src.js",[B["masters/highcharts.src.js"]],function(W){return W.product="Highstock",W}),B["masters/highstock.src.js"]._modules=B,B["masters/highstock.src.js"]},ot.exports?(ut.default=ut,ot.exports=pt.document?ut(pt):ut):(ct=function(){return ut(pt)}.call(nt,st,nt,ot))===void 0||(ot.exports=ct)},5322:(ot,nt)=>{Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=function(st){var ct=st.defaultOptions,pt=ct.plotOptions,ut={fillOpacity:.2,color:null,borderColor:null},ft={fillColor:null,lineColor:null,lineWidth:2};ct.plotOptions.column.states.select=ut,ct.plotOptions.area.states.select=ut,ct.plotOptions.bar.states.select=ut,ct.plotOptions.line.states.select=ut,ct.plotOptions.spline.states.select=ut,ct.plotOptions.scatter.marker={enabled:!0,radius:4,fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1,states:{select:{fillOpacity:.85,fillColor:null,lineColor:null},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1}}},ct.plotOptions.series={states:{select:ut}},pt.area.marker.states.select=ft,pt.line.marker.states.select=ft,pt.spline.marker.states.select=ft,pt.bubble.marker.states.select={fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1},st.timeUnits.month=26784e5,st.timeUnits.year=31556952e3}},5378:(ot,nt,st)=>{st.d(nt,{A:()=>pt});var ct=/^(?:0|[1-9]\d*)$/;const pt=function(ut,ft){var B=typeof ut;return!!(ft=ft==null?9007199254740991:ft)&&(B=="number"||B!="symbol"&&ct.test(ut))&&ut>-1&&ut%1==0&&ut<ft}},5436:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var ct=st(123),pt=st(9600);const ut=(0,ct.A)(pt.A,"Map")},5860:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>ft});var ct=st(4044),pt=st(6956),ut=st(7313);const ft=function(B){return typeof B=="string"||!(0,pt.A)(B)&&(0,ut.A)(B)&&(0,ct.A)(B)=="[object String]"}},6096:(ot,nt,st)=>{st.d(nt,{A:()=>B});var ct=st(6979);const pt=function(it,W){for(var R=it.length;R--;)if((0,ct.A)(it[R][0],W))return R;return-1};var ut=Array.prototype.splice;function ft(it){var W=-1,R=it==null?0:it.length;for(this.clear();++W<R;){var H=it[W];this.set(H[0],H[1])}}ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(it){var W=this.__data__,R=pt(W,it);return!(R<0||(R==W.length-1?W.pop():ut.call(W,R,1),--this.size,0))},ft.prototype.get=function(it){var W=this.__data__,R=pt(W,it);return R<0?void 0:W[R][1]},ft.prototype.has=function(it){return pt(this.__data__,it)>-1},ft.prototype.set=function(it,W){var R=this.__data__,H=pt(R,it);return H<0?(++this.size,R.push([it,W])):R[H][1]=W,this};const B=ft},6124:(ot,nt,st)=>{st.d(nt,{A:()=>ft});var ct=st(9465),pt=st(6979),ut=Object.prototype.hasOwnProperty;const ft=function(B,it,W){var R=B[it];ut.call(B,it)&&(0,pt.A)(R,W)&&(W!==void 0||it in B)||(0,ct.A)(B,it,W)}},6236:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Core/Axis/Color/ColorAxisComposition.js",[B["Core/Color/Color.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.parse,$=R.addEvent,Z=R.extend,U=R.merge,z=R.pick,I=R.splat;return function(E){var M,P=[];function y(){var g=this,r=this.options;this.colorAxis=[],r.colorAxis&&(r.colorAxis=I(r.colorAxis),r.colorAxis.forEach(function(a,t){a.index=t,new M(g,a)}))}function h(g){var r,a,t=this,i=this.chart.colorAxis||[],o=function(s){var n=g.allItems.indexOf(s);n!==-1&&(t.destroyItem(g.allItems[n]),g.allItems.splice(n,1))},e=[];for(i.forEach(function(s){(r=s.options)&&r.showInLegend&&(r.dataClasses&&r.visible?e=e.concat(s.getDataClassLegendSymbols()):r.visible&&e.push(s),s.series.forEach(function(n){n.options.showInLegend&&!r.dataClasses||(n.options.legendType==="point"?n.points.forEach(function(l){o(l)}):o(n))}))}),a=e.length;a--;)g.allItems.unshift(e[a])}function f(g){g.visible&&g.item.legendColor&&g.item.legendItem.symbol.attr({fill:g.item.legendColor})}function m(){var g=this.chart.colorAxis;g&&g.forEach(function(r){r.update({},arguments[2])})}function u(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function v(){var g=this.axisTypes;g?g.indexOf("colorAxis")===-1&&g.push("colorAxis"):this.axisTypes=["colorAxis"]}function w(g){var r=this,a=g?"show":"hide";r.visible=r.options.visible=!!g,["graphic","dataLabel"].forEach(function(t){r[t]&&r[t][a]()}),this.series.buildKDTree()}function S(){var g=this,r=this.data.length?this.data:this.points,a=this.options.nullColor,t=this.colorAxis,i=this.colorKey;r.forEach(function(o){var e=o.getNestedProperty(i),s=o.options.color||(o.isNull||o.value===null?a:t&&e!==void 0?t.toColor(e,o):o.color||g.color);s&&o.color!==s&&(o.color=s,g.options.legendType==="point"&&o.legendItem&&o.legendItem.label&&g.chart.legend.colorizeItem(o,o.visible))})}function x(){this.elem.attr("fill",V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)}function p(){this.elem.attr("stroke",V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)}E.compose=function(g,r,a,t,i){if(M||(M=g),P.indexOf(r)===-1){P.push(r);var o=r.prototype;o.collectionsWithUpdate.push("colorAxis"),o.collectionsWithInit.colorAxis=[o.addColorAxis],$(r,"afterGetAxes",y),function(s){var n=s.prototype.createAxis;s.prototype.createAxis=function(l,b){if(l!=="colorAxis")return n.apply(this,arguments);var T=new M(this,U(b.axis,{index:this[l].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(D){D.series=[]}),this.series.forEach(function(D){D.bindAxes(),D.isDirtyData=!0}),z(b.redraw,!0)&&this.redraw(b.animation),T}}(r)}if(P.indexOf(a)===-1){P.push(a);var e=a.prototype;e.fillSetter=x,e.strokeSetter=p}P.indexOf(t)===-1&&(P.push(t),$(t,"afterGetAllItems",h),$(t,"afterColorizeItem",f),$(t,"afterUpdate",m)),P.indexOf(i)===-1&&(P.push(i),Z(i.prototype,{optionalAxis:"colorAxis",translateColors:S}),Z(i.prototype.pointClass.prototype,{setVisible:w}),$(i,"afterTranslate",u,{order:1}),$(i,"bindAxes",v))},E.pointSetVisible=w}(H||(H={})),H}),it(B,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}}),it(B,"Core/Axis/Color/ColorAxis.js",[B["Core/Axis/Axis.js"],B["Core/Color/Color.js"],B["Core/Axis/Color/ColorAxisComposition.js"],B["Core/Axis/Color/ColorAxisDefaults.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(v,w){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,x){S.__proto__=x}||function(S,x){for(var p in x)x.hasOwnProperty(p)&&(S[p]=x[p])},I(v,w)},function(v,w){function S(){this.constructor=v}I(v,w),v.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}),M=R.parse,P=U.series,y=z.extend,h=z.isNumber,f=z.merge,m=z.pick,u=function(v){function w(S,x){var p=v.call(this,S,x)||this;return p.beforePadding=!1,p.chart=void 0,p.coll="colorAxis",p.dataClasses=void 0,p.name="",p.options=void 0,p.stops=void 0,p.visible=!0,p.init(S,x),p}return E(w,v),w.compose=function(S,x,p,g){H.compose(w,S,x,p,g)},w.prototype.init=function(S,x){var p=this,g=S.options.legend||{},r=x.layout?x.layout!=="vertical":g.layout!=="vertical",a=x.visible,t=f(w.defaultColorAxisOptions,x,{showEmpty:!1,title:null,visible:g.enabled&&a!==!1});p.coll="colorAxis",p.side=x.side||r?2:1,p.reversed=x.reversed||!r,p.opposite=!r,v.prototype.init.call(this,S,t),p.userOptions.visible=a,x.dataClasses&&p.initDataClasses(x),p.initStops(),p.horiz=r,p.zoomEnabled=!1},w.prototype.initDataClasses=function(S){var x,p=this,g=p.chart,r=p.legendItem=p.legendItem||{},a=S.dataClasses.length,t=p.options,i=0,o=g.options.chart.colorCount;p.dataClasses=x=[],r.labels=[],(S.dataClasses||[]).forEach(function(e,s){var n;e=f(e),x.push(e),!g.styledMode&&e.color||(t.dataClassColor==="category"?(g.styledMode||(n=g.options.colors,o=n.length,e.color=n[i]),e.colorIndex=i,++i===o&&(i=0)):e.color=M(t.minColor).tweenTo(M(t.maxColor),a<2?.5:s/(a-1)))})},w.prototype.hasData=function(){return!!(this.tickPositions||[]).length},w.prototype.setTickPositions=function(){if(!this.dataClasses)return v.prototype.setTickPositions.call(this)},w.prototype.initStops=function(){var S=this;S.stops=S.options.stops||[[0,S.options.minColor],[1,S.options.maxColor]],S.stops.forEach(function(x){x.color=M(x[1])})},w.prototype.setOptions=function(S){v.prototype.setOptions.call(this,S),this.options.crosshair=this.options.marker},w.prototype.setAxisSize=function(){var S,x,p,g,r=this,a=r.legendItem&&r.legendItem.symbol,t=r.chart,i=t.options.legend||{};a?(this.left=S=a.attr("x"),this.top=x=a.attr("y"),this.width=p=a.attr("width"),this.height=g=a.attr("height"),this.right=t.chartWidth-S-p,this.bottom=t.chartHeight-x-g,this.len=this.horiz?p:g,this.pos=this.horiz?S:x):this.len=(this.horiz?i.symbolWidth:i.symbolHeight)||w.defaultLegendLength},w.prototype.normalizedValue=function(S){var x=this;return x.logarithmic&&(S=x.logarithmic.log2lin(S)),1-(x.max-S)/(x.max-x.min||1)},w.prototype.toColor=function(S,x){var p,g,r,a,t,i,o=this,e=o.dataClasses,s=o.stops;if(e){for(i=e.length;i--;)if(g=(t=e[i]).from,r=t.to,(g===void 0||S>=g)&&(r===void 0||S<=r)){a=t.color,x&&(x.dataClass=i,x.colorIndex=t.colorIndex);break}}else{for(p=o.normalizedValue(S),i=s.length;i--&&!(p>s[i][0]););g=s[i]||s[i+1],p=1-((r=s[i+1]||g)[0]-p)/(r[0]-g[0]||1),a=g.color.tweenTo(r.color,p)}return a},w.prototype.getOffset=function(){var S=this,x=S.legendItem&&S.legendItem.group,p=S.chart.axisOffset[S.side];if(x){S.axisParent=x,v.prototype.getOffset.call(this);var g=this.chart.legend;g.allItems.forEach(function(r){r instanceof w&&r.drawLegendSymbol(g,r)}),g.render(),this.chart.getMargins(!0),S.added||(S.added=!0,S.labelLeft=0,S.labelRight=S.width),S.chart.axisOffset[S.side]=p}},w.prototype.setLegendColor=function(){var S=this,x=S.horiz,p=S.reversed,g=p?1:0,r=p?0:1,a=x?[g,0,r,0]:[0,r,0,g];S.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:S.stops}},w.prototype.drawLegendSymbol=function(S,x){var p=x.legendItem||{},g=S.padding,r=S.options,a=m(r.itemDistance,10),t=this.horiz,i=m(r.symbolWidth,t?w.defaultLegendLength:12),o=m(r.symbolHeight,t?12:w.defaultLegendLength),e=m(r.labelPadding,t?16:30);this.setLegendColor(),p.symbol||(p.symbol=this.chart.renderer.rect(0,S.baseline-11,i,o).attr({zIndex:1}).add(p.group)),p.labelWidth=i+g+(t?a:this.options.labels.x+this.maxLabelLength),p.labelHeight=o+g+(t?e:0)},w.prototype.setState=function(S){this.series.forEach(function(x){x.setState(S)})},w.prototype.setVisible=function(){},w.prototype.getSeriesExtremes=function(){var S,x,p,g,r,a,t,i,o=this.series,e=o.length;for(this.dataMin=1/0,this.dataMax=-1/0;e--;){if(x=(a=o[e]).colorKey=m(a.options.colorKey,a.colorKey,a.pointValKey,a.zoneAxis,"y"),g=a.pointArrayMap,r=a[x+"Min"]&&a[x+"Max"],a[x+"Data"])S=a[x+"Data"];else if(g){if(S=[],p=g.indexOf(x),t=a.yData,p>=0&&t)for(i=0;i<t.length;i++)S.push(m(t[i][p],t[i]))}else S=a.yData;if(r)a.minColorValue=a[x+"Min"],a.maxColorValue=a[x+"Max"];else{var s=P.prototype.getExtremes.call(a,S);a.minColorValue=s.dataMin,a.maxColorValue=s.dataMax}a.minColorValue!==void 0&&(this.dataMin=Math.min(this.dataMin,a.minColorValue),this.dataMax=Math.max(this.dataMax,a.maxColorValue)),r||P.prototype.applyExtremes.call(a)}},w.prototype.drawCrosshair=function(S,x){var p,g=this,r=g.legendItem||{},a=x&&x.plotX,t=x&&x.plotY,i=g.pos,o=g.len;x&&((p=g.toPixels(x.getNestedProperty(x.series.colorKey)))<i?p=i-2:p>i+o&&(p=i+o+2),x.plotX=p,x.plotY=g.len-p,v.prototype.drawCrosshair.call(this,S,x),x.plotX=a,x.plotY=t,g.cross&&!g.cross.addedToColorAxis&&r.group&&(g.cross.addClass("highcharts-coloraxis-marker").add(r.group),g.cross.addedToColorAxis=!0,g.chart.styledMode||typeof g.crosshair!="object"||g.cross.attr({fill:g.crosshair.color})))},w.prototype.getPlotLinePath=function(S){var x=this,p=x.left,g=S.translatedValue,r=x.top;return h(g)?x.horiz?[["M",g-4,r-6],["L",g+4,r-6],["L",g,r],["Z"]]:[["M",p,g],["L",p-6,g+6],["L",p-6,g-6],["Z"]]:v.prototype.getPlotLinePath.call(this,S)},w.prototype.update=function(S,x){var p=this,g=p.chart.legend;this.series.forEach(function(r){r.isDirtyData=!0}),(S.dataClasses&&g.allItems||p.dataClasses)&&p.destroyItems(),v.prototype.update.call(this,S,x),p.legendItem&&p.legendItem.label&&(p.setLegendColor(),g.colorizeItem(this,!0))},w.prototype.destroyItems=function(){var S=this,x=S.chart,p=S.legendItem||{};if(p.label)x.legend.destroyItem(S);else if(p.labels)for(var g=0,r=p.labels;g<r.length;g++){var a=r[g];x.legend.destroyItem(a)}x.isDirtyLegend=!0},w.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),v.prototype.destroy.apply(this,[].slice.call(arguments))},w.prototype.remove=function(S){this.destroyItems(),v.prototype.remove.call(this,S)},w.prototype.getDataClassLegendSymbols=function(){var S,x=this,p=x.chart,g=x.legendItem&&x.legendItem.labels||[],r=p.options.legend,a=m(r.valueDecimals,-1),t=m(r.valueSuffix,""),i=function(o){return x.series.reduce(function(e,s){return e.push.apply(e,s.points.filter(function(n){return n.dataClass===o})),e},[])};return g.length||x.dataClasses.forEach(function(o,e){var s=o.from,n=o.to,l=p.numberFormatter,b=!0;S="",s===void 0?S="< ":n===void 0&&(S="> "),s!==void 0&&(S+=l(s,a)+t),s!==void 0&&n!==void 0&&(S+=" - "),n!==void 0&&(S+=l(n,a)+t),g.push(y({chart:p,name:S,options:{},drawLegendSymbol:Z.drawRectangle,visible:!0,isDataClass:!0,setState:function(T){for(var D=0,d=i(e);D<d.length;D++)d[D].setState(T)},setVisible:function(){this.visible=b=x.visible=!b;for(var T=0,D=i(e);T<D.length;T++)D[T].setVisible(b);p.legend.colorizeItem(this,b)}},o))}),g},w.defaultColorAxisOptions=V,w.defaultLegendLength=200,w.keepProps=["legendItem"],w}(W);return Array.prototype.push.apply(W.keepProps,u.keepProps),u}),it(B,"Maps/MapNavigationDefaults.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){var H={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};return(0,R.extend)(W.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),W.defaultOptions.mapNavigation=H,H}),it(B,"Maps/MapNavigation.js",[B["Core/Chart/Chart.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=H.addEvent,Z=H.extend,U=H.isNumber,z=H.merge,I=H.objectEach,E=H.pick;function M(y){y&&(y.preventDefault&&y.preventDefault(),y.stopPropagation&&y.stopPropagation(),y.cancelBubble=!0)}function P(y){this.navButtons=[],this.init(y)}P.prototype.init=function(y){this.chart=y},P.prototype.update=function(y){var h,f=this,m=this.chart,u=m.options.mapNavigation,v=function(S){this.handler.call(m,S),M(S)},w=f.navButtons;for(y&&(u=m.options.mapNavigation=z(m.options.mapNavigation,y));w.length;)w.pop().destroy();E(u.enableButtons,u.enabled)&&!m.renderer.forExport&&(f.navButtonsGroup||(f.navButtonsGroup=m.renderer.g().attr({zIndex:4}).add()),I(u.buttons,function(S,x){S=z(u.buttonOptions,S),!m.styledMode&&S.theme&&((h=S.theme).style=z(S.theme.style,S.style));var p=m.renderer.button(S.text||"",0,0,v,h,void 0,void 0,void 0,x==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[x]).attr({width:S.width,height:S.height,title:m.options.lang[x],padding:S.padding,zIndex:5}).add(f.navButtonsGroup);if(p.handler=S.onclick,$(p.element,"dblclick",M),w.push(p),Z(S,{width:p.width,height:2*p.height}),m.hasLoaded)p.align(S,!1,S.alignTo);else var g=$(m,"load",function(){p.element&&p.align(S,!1,S.alignTo),g()})}),m.hasLoaded||$(m,"render",function(){var S,x,p=m.exportingGroup&&m.exportingGroup.getBBox();if(p){var g=f.navButtonsGroup.getBBox();if(S=p,!((x=g).x>=S.x+S.width||x.x+x.width<=S.x||x.y>=S.y+S.height||x.y+x.height<=S.y)){var r=-g.y-g.height+p.y-5,a=p.y+p.height-g.y+5,t=u.buttonOptions&&u.buttonOptions.verticalAlign;f.navButtonsGroup.attr({translateY:t==="bottom"?r:a})}}})),this.updateEvents(u)},P.prototype.updateEvents=function(y){var h=this.chart;E(y.enableDoubleClickZoom,y.enabled)||y.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||$(h.container,"dblclick",function(f){h.pointer.onContainerDblClick(f)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),E(y.enableMouseWheelZoom,y.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||$(h.container,V.onwheel!==void 0?"wheel":V.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",function(f){return h.pointer.inClass(f.target,"highcharts-no-mousewheel")||(h.pointer.onContainerMouseWheel(f),M(f)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},Z(W.prototype,{fitToBox:function(y,h){return[["x","width"],["y","height"]].forEach(function(f){var m=f[0],u=f[1];y[m]+y[u]>h[m]+h[u]&&(y[u]>h[u]?(y[u]=h[u],y[m]=h[m]):y[m]=h[m]+h[u]-y[u]),y[u]>h[u]&&(y[u]=h[u]),y[m]<h[m]&&(y[m]=h[m])}),y},mapZoom:function(y,h,f,m,u){this.mapView&&(U(y)&&(y=Math.log(y)/Math.log(.5)),this.mapView.zoomBy(y,U(h)&&U(f)?this.mapView.projection.inverse([h,f]):void 0,U(m)&&U(u)?[m,u]:void 0))}}),$(W,"beforeRender",function(){this.mapNavigation=new P(this),this.mapNavigation.update()}),R.MapNavigation=P}),it(B,"Maps/MapPointer.js",[B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.defined,$=R.extend,Z=R.pick,U=R.wrap,z=W.prototype.normalize,I=0;$(W.prototype,{normalize:function(E,M){var P=this.chart;if(E=z.call(this,E,M),P&&P.mapView){var y=P.mapView.pixelsToLonLat({x:E.chartX-P.plotLeft,y:E.chartY-P.plotTop});y&&$(E,y)}return E},onContainerDblClick:function(E){var M=this.chart;E=this.normalize(E),M.options.mapNavigation.enableDoubleClickZoomTo?M.pointer.inClass(E.target,"highcharts-tracker")&&M.hoverPoint&&M.hoverPoint.zoomTo():M.isInsidePlot(E.chartX-M.plotLeft,E.chartY-M.plotTop)&&M.mapZoom(.5,void 0,void 0,E.chartX,E.chartY)},onContainerMouseWheel:function(E){var M=this.chart;E=this.normalize(E);var P=V(E.wheelDelta)&&-E.wheelDelta/120||E.deltaY||E.detail;Math.abs(P)>=1&&(I+=Math.abs(P),H&&clearTimeout(H),H=setTimeout(function(){I=0},50)),I<10&&M.isInsidePlot(E.chartX-M.plotLeft,E.chartY-M.plotTop)&&M.mapView&&M.mapView.zoomBy((M.options.mapNavigation.mouseWheelSensitivity-1)*-P,void 0,[E.chartX,E.chartY],!(Math.abs(P)<1)&&void 0)}}),U(W.prototype,"zoomOption",function(E){var M=this.chart.options.mapNavigation;Z(M.enableTouchZoom,M.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),E.apply(this,[].slice.call(arguments,1))}),U(W.prototype,"pinchTranslate",function(E,M,P,y,h,f,m){var u;E.call(this,M,P,y,h,f,m),this.chart.options.chart.type==="map"&&this.hasZoom&&(u=y.scaleX>y.scaleY,this.pinchTranslateDirection(!u,M,P,y,h,f,m,u?y.scaleX:y.scaleY))})}),it(B,"Series/ColorMapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.column.prototype,$=R.addEvent,Z=R.defined;return function(U){var z=[];function I(E){var M=this;M.moveToTopOnHover&&M.graphic&&M.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}U.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},U.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var M={};return!Z(E.color)||E.state&&E.state!=="normal"||(M[this.colorProp||"fill"]=E.color),M},pointAttribs:V.pointAttribs},U.compose=function(E){var M=E.prototype.pointClass;return z.indexOf(M)===-1&&(z.push(M),$(M,"afterSetState",I)),E}}(H||(H={})),H}),it(B,"Maps/MapSymbols.js",[B["Core/Renderer/SVG/SVGRenderer.js"]],function(W){var R=W.prototype.symbols;function H(V,$,Z,U,z,I,E,M){return[["M",V+z,$],["L",V+Z-I,$],["C",V+Z-I/2,$,V+Z,$+I/2,V+Z,$+I],["L",V+Z,$+U-E],["C",V+Z,$+U-E/2,V+Z-E/2,$+U,V+Z-E,$+U],["L",V+M,$+U],["C",V+M/2,$+U,V,$+U-M/2,V,$+U-M],["L",V,$+z],["C",V,$+z/2,V+z/2,$,V+z,$],["Z"]]}return R.bottombutton=function(V,$,Z,U,z){var I=z&&z.r||0;return H(V-1,$-1,Z,U,0,0,I,I)},R.topbutton=function(V,$,Z,U,z){var I=z&&z.r||0;return H(V-1,$-1,Z,U,I,I,0,0)},R}),it(B,"Core/Chart/MapChart.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(M,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},$(M,P)},function(M,P){function y(){this.constructor=M}$(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),U=R.getOptions,z=V.merge,I=V.pick,E=function(M){function P(){return M!==null&&M.apply(this,arguments)||this}return Z(P,M),P.prototype.init=function(y,h){var f=U().credits,m=z({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:I(f.mapText,' © <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:I(f.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},y);M.prototype.init.call(this,m,h)},P}(W);return function(M){M.maps={},M.mapChart=function(P,y,h){return new M(P,y,h)},M.splitPath=function(P){var y;return y=typeof P=="string"?(P=P.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(h){return/[A-za-z]/.test(h)?h:parseFloat(h)}):P,H.prototype.pathToSegments(y)}}(E||(E={})),E}),it(B,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(W){var R,H=-Number.MAX_VALUE,V=Number.MAX_VALUE,$=-Number.MAX_VALUE,Z=Number.MAX_VALUE;if(W.forEach(function(U){var z=U[U.length-2],I=U[U.length-1];typeof z=="number"&&typeof I=="number"&&(V=Math.min(V,z),H=Math.max(H,z),Z=Math.min(Z,I),$=Math.max($,I),R=!0)}),R)return{x1:V,y1:Z,x2:H,y2:$}},pointInPolygon:function(W,R){var H,V,$=!1,Z=W.x,U=W.y;for(H=0,V=R.length-1;H<R.length;V=H++)R[H][1]>U!=R[V][1]>U&&Z<(R[V][0]-R[H][0])*(U-R[H][1])/(R[V][1]-R[H][1])+R[H][0]&&($=!$);return $}}}),it(B,"Series/Map/MapPoint.js",[B["Series/ColorMapComposition.js"],B["Maps/MapUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=R.boundsFromPath,z=H.seriesTypes.scatter,I=V.extend,E=V.isNumber,M=V.pick,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.options=void 0,f.path=void 0,f.series=void 0,f}return Z(h,y),h.getProjectedPath=function(f,m){return f.projectedPath||(m&&f.geometry?(m.hasCoordinates=!0,f.projectedPath=m.path(f.geometry)):f.projectedPath=f.path),f.projectedPath||[]},h.prototype.applyOptions=function(f,m){var u=this.series,v=y.prototype.applyOptions.call(this,f,m),w=u.joinBy;if(u.mapData&&u.mapMap){var S=w[1],x=y.prototype.getNestedProperty.call(v,S),p=x!==void 0&&u.mapMap[x];p?I(v,p):u.pointArrayMap.indexOf("value")!==-1&&(v.value=v.value||null)}return v},h.prototype.getProjectedBounds=function(f){var m=h.getProjectedPath(this,f),u=U(m),v=this.properties;if(u){var w=v&&v["hc-middle-x"],S=v&&v["hc-middle-y"];u.midX=u.x1+(u.x2-u.x1)*M(this.middleX,E(w)?w:.5);var x=M(this.middleY,E(S)?S:.5);return this.geometry||(x=1-x),u.midY=u.y2-(u.y2-u.y1)*x,u}},h.prototype.onMouseOver=function(f){V.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?y.prototype.onMouseOver.call(this,f):this.series.onMouseOut(f)},h.prototype.setVisible=function(f){var m=f?"show":"hide";this.visible=this.options.visible=!!f,this.dataLabel&&this.dataLabel[m](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},h.prototype.zoomTo=function(){var f=this,m=f.series.chart,u=m.mapView,v=f.bounds;if(u&&v){var w=E(f.insetIndex)&&u.insets[f.insetIndex];if(w){var S=w.projectedUnitsToPixels({x:v.x1,y:v.y1}),x=w.projectedUnitsToPixels({x:v.x2,y:v.y2}),p=u.pixelsToProjectedUnits({x:S.x,y:S.y}),g=u.pixelsToProjectedUnits({x:x.x,y:x.y});v={x1:p.x,y1:p.y,x2:g.x,y2:g.y}}u.fitToBounds(v,void 0,!1),f.series.isDirty=!0,m.redraw()}},h}(z.prototype.pointClass);return I(P.prototype,{dataLabelOnNull:W.pointMembers.dataLabelOnNull,moveToTopOnHover:W.pointMembers.moveToTopOnHover,isValid:W.pointMembers.isValid}),P}),it(B,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}}),it(B,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),it(B,"Extensions/GeoJSON.js",[B["Core/Chart/Chart.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=R.format,Z=H.win,U=V.error,z=V.extend,I=V.merge,E=V.wrap;function M(y,h){h||(h=Object.keys(y.objects)[0]);var f=y.objects[h];if(f["hc-decoded-geojson"])return f["hc-decoded-geojson"];var m=y.arcs;if(y.transform){var u=y.transform,v=u.scale,w=u.translate;m=y.arcs.map(function(g){var r=0,a=0;return g.map(function(t){return(t=t.slice())[0]=(r+=t[0])*v[0]+w[0],t[1]=(a+=t[1])*v[1]+w[1],t})})}var S=function(g){return typeof g[0]=="number"?g.reduce(function(r,a,t){var i=a<0?m[~a]:m[a];return a<0?(i=i.slice(0,t===0?i.length:i.length-1)).reverse():t&&(i=i.slice(1)),r.concat(i)},[]):g.map(S)},x=f.geometries.map(function(g){return{type:"Feature",properties:g.properties,geometry:{type:g.type,coordinates:g.coordinates||S(g.arcs)}}}),p={type:"FeatureCollection",copyright:y.copyright,copyrightShort:y.copyrightShort,copyrightUrl:y.copyrightUrl,features:x,"hc-recommended-mapview":f["hc-recommended-mapview"],bbox:y.bbox,title:y.title};return f["hc-decoded-geojson"]=p,p}function P(y,h,f){h===void 0&&(h="map");var m=[],u=y.type==="Topology"?M(y):y;return u.features.forEach(function(v){var w,S=v.geometry||{},x=S.type,p=S.coordinates,g=v.properties;if((h!=="map"&&h!=="mapbubble"||x!=="Polygon"&&x!=="MultiPolygon")&&(h!=="mapline"||x!=="LineString"&&x!=="MultiLineString")?h==="mappoint"&&x==="Point"&&p.length&&(w={geometry:{coordinates:p,type:x}}):p.length&&(w={geometry:{coordinates:p,type:x}}),w){var r=g&&(g.name||g.NAME),a=g&&g.lon,t=g&&g.lat;m.push(z(w,{lat:typeof t=="number"?t:void 0,lon:typeof a=="number"?a:void 0,name:typeof r=="string"?r:void 0,properties:g}))}}),f&&u.copyrightShort&&(f.chart.mapCredits=$(f.chart.options.credits.mapText,{geojson:u}),f.chart.mapCreditsFull=$(f.chart.options.credits.mapTextFull,{geojson:u})),m}return W.prototype.transformFromLatLon=function(y,h){var f=this.options.chart.proj4||Z.proj4;if(f){var m=h.jsonmarginX,u=m===void 0?0:m,v=h.jsonmarginY,w=v===void 0?0:v,S=h.jsonres,x=S===void 0?1:S,p=h.scale,g=p===void 0?1:p,r=h.xoffset,a=r===void 0?0:r,t=h.xpan,i=t===void 0?0:t,o=h.yoffset,e=o===void 0?0:o,s=h.ypan,n=s===void 0?0:s,l=f(h.crs,[y.lon,y.lat]),b=h.cosAngle||h.rotation&&Math.cos(h.rotation),T=h.sinAngle||h.rotation&&Math.sin(h.rotation),D=h.rotation?[l[0]*b+l[1]*T,-l[0]*T+l[1]*b]:l;return{x:((D[0]-a)*g+i)*x+u,y:-(((e-D[1])*g+n)*x-w)}}U(21,!1,this)},W.prototype.transformToLatLon=function(y,h){var f=this.options.chart.proj4||Z.proj4;if(f){if(y.y!==null){var m=h.jsonmarginX,u=m===void 0?0:m,v=h.jsonmarginY,w=v===void 0?0:v,S=h.jsonres,x=S===void 0?1:S,p=h.scale,g=p===void 0?1:p,r=h.xoffset,a=r===void 0?0:r,t=h.xpan,i=t===void 0?0:t,o=h.yoffset,e=o===void 0?0:o,s=h.ypan,n=s===void 0?0:s,l={x:((y.x-u)/x-i)/g+a,y:((y.y-w)/x+n)/g+e},b=h.cosAngle||h.rotation&&Math.cos(h.rotation),T=h.sinAngle||h.rotation&&Math.sin(h.rotation),D=f(h.crs,"WGS84",h.rotation?{x:l.x*b+l.y*-T,y:l.x*T+l.y*b}:l);return{lat:D.y,lon:D.x}}}else U(21,!1,this)},W.prototype.fromPointToLatLon=function(y){return this.mapView&&this.mapView.projectedUnitsToLonLat(y)},W.prototype.fromLatLonToPoint=function(y){return this.mapView&&this.mapView.lonLatToProjectedUnits(y)},E(W.prototype,"addCredits",function(y,h){h=I(!0,this.options.credits,h),this.mapCredits&&(h.href=null),y.call(this,h),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),H.geojson=P,H.topo2geo=M,{geojson:P,topo2geo:M}}),it(B,"Core/Geometry/PolygonClip.js",[],function(){var W,R=function(V,$,Z){return($[0]-V[0])*(Z[1]-V[1])>($[1]-V[1])*(Z[0]-V[0])},H=function(V,$,Z,U){var z=[V[0]-$[0],V[1]-$[1]],I=[Z[0]-U[0],Z[1]-U[1]],E=V[0]*$[1]-V[1]*$[0],M=Z[0]*U[1]-Z[1]*U[0],P=1/(z[0]*I[1]-z[1]*I[0]),y=[(E*I[0]-M*z[0])*P,(E*I[1]-M*z[1])*P];return y.isIntersection=!0,y};return function(V){V.clipLineString=function($,Z){for(var U=[],z=V.clipPolygon($,Z,!1),I=1;I<z.length;I++)z[I].isIntersection&&z[I-1].isIntersection&&(U.push(z.splice(0,I)),I=0),I===z.length-1&&U.push(z);return U},V.clipPolygon=function($,Z,U){U===void 0&&(U=!0);for(var z,I,E,M=Z[Z.length-1],P=$,y=0;y<Z.length;y++){var h=P;z=Z[y],P=[],I=U?h[h.length-1]:h[0];for(var f=0;f<h.length;f++)E=h[f],R(M,z,E)?(R(M,z,I)||P.push(H(M,z,I,E)),P.push(E)):R(M,z,I)&&P.push(H(M,z,I,E)),I=E;M=z}return P}}(W||(W={})),W}),it(B,"Maps/Projections/LambertConformalConic.js",[],function(){var W=Math.sign||function(U){return U===0?0:U>0?1:-1},R=63.78137,H=Math.PI/180,V=Math.PI/2,$=1e-6,Z=function(U){return Math.tan((V+U)/2)};return function(){function U(z){var I,E=(z.parallels||[]).map(function(f){return f*H}),M=E[0]||0,P=(I=E[1])!==null&&I!==void 0?I:M,y=Math.cos(M);typeof z.projectedBounds=="object"&&(this.projectedBounds=z.projectedBounds);var h=M===P?Math.sin(M):Math.log(y/Math.cos(P))/Math.log(Z(P)/Z(M));Math.abs(h)<1e-10&&(h=1e-10*(W(h)||1)),this.n=h,this.c=y*Math.pow(Z(M),h)/h}return U.prototype.forward=function(z){var I=z[0]*H,E=this,M=E.c,P=E.n,y=E.projectedBounds,h=z[1]*H;M>0?h<-V+$&&(h=-V+$):h>V-$&&(h=V-$);var f=M/Math.pow(Z(h),P),m=f*Math.sin(P*I)*R,u=(M-f*Math.cos(P*I))*R,v=[m,u];return y&&(m<y.x1||m>y.x2||u<y.y1||u>y.y2)&&(v.outside=!0),v},U.prototype.inverse=function(z){var I=z[0]/R,E=z[1]/R,M=this.c,P=this.n,y=M-E,h=W(P)*Math.sqrt(I*I+y*y),f=Math.atan2(I,Math.abs(y))*W(y);return y*P<0&&(f-=Math.PI*W(I)*W(y)),[f/P/H,(2*Math.atan(Math.pow(M/h,1/P))-V)/H]},U}()}),it(B,"Maps/Projections/EqualEarth.js",[],function(){var W=1.340264,R=-.081106,H=893e-6,V=.003796,$=Math.sqrt(3)/2,Z=74.03120656864502;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return U.prototype.forward=function(z){var I=Math.PI/180,E=Math.asin($*Math.sin(z[1]*I)),M=E*E,P=M*M*M;return[z[0]*I*Math.cos(E)*Z/($*(W+3*R*M+P*(7*H+9*V*M))),E*Z*(W+R*M+P*(H+V*M))]},U.prototype.inverse=function(z){var I,E,M,P,y=z[0]/Z,h=z[1]/Z,f=180/Math.PI,m=h;for(P=0;P<12&&(m-=M=(m*(W+R*(I=m*m)+(E=I*I*I)*(H+V*I))-h)/(W+3*R*I+E*(7*H+9*V*I)),!(Math.abs(M)<1e-9));++P);return[f*$*y*(W+3*R*(I=m*m)+(E=I*I*I)*(7*H+9*V*I))/Math.cos(m),f*Math.asin(Math.sin(m)/$)]},U}()}),it(B,"Maps/Projections/Miller.js",[],function(){var W=Math.PI/4,R=Math.PI/180,H=63.78137;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return V.prototype.forward=function($){return[$[0]*R*H,79.7267125*Math.log(Math.tan(W+.4*$[1]*R))]},V.prototype.inverse=function($){return[$[0]/H/R,2.5*(Math.atan(Math.exp($[1]/H*.8))-W)/R]},V}()}),it(B,"Maps/Projections/Orthographic.js",[],function(){var W=Math.PI/180,R=63.78460826781007;return function(){function H(){this.antimeridianCutting=!1,this.bounds={x1:-R,x2:R,y1:-R,y2:R}}return H.prototype.forward=function(V){var $=V[0],Z=V[1]*W,U=[Math.cos(Z)*Math.sin($*W)*R,Math.sin(Z)*R];return($<-90||$>90)&&(U.outside=!0),U},H.prototype.inverse=function(V){var $=V[0]/R,Z=V[1]/R,U=Math.sqrt($*$+Z*Z),z=Math.asin(U),I=Math.sin(z),E=Math.cos(z);return[Math.atan2($*I,U*E)/W,Math.asin(U&&Z*I/U)/W]},H}()}),it(B,"Maps/Projections/WebMercator.js",[],function(){var W=85.0511287798,R=63.78137,H=Math.PI/180;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=W}return V.prototype.forward=function($){var Z=Math.sin($[1]*H),U=[R*$[0]*H,R*Math.log((1+Z)/(1-Z))/2];return Math.abs($[1])>W&&(U.outside=!0),U},V.prototype.inverse=function($){return[$[0]/(R*H),(2*Math.atan(Math.exp($[1]/R))-Math.PI/2)/H]},V}()}),it(B,"Maps/Projections/ProjectionRegistry.js",[B["Maps/Projections/LambertConformalConic.js"],B["Maps/Projections/EqualEarth.js"],B["Maps/Projections/Miller.js"],B["Maps/Projections/Orthographic.js"],B["Maps/Projections/WebMercator.js"]],function(W,R,H,V,$){return{EqualEarth:R,LambertConformalConic:W,Miller:H,Orthographic:V,WebMercator:$}}),it(B,"Maps/Projection.js",[B["Core/Geometry/PolygonClip.js"],B["Maps/Projections/ProjectionRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__spreadArray||function(P,y,h){if(h||arguments.length===2)for(var f,m=0,u=y.length;m<u;m++)!f&&m in y||(f||(f=Array.prototype.slice.call(y,0,m)),f[m]=y[m]);return P.concat(f||Array.prototype.slice.call(y))},$=W.clipLineString,Z=W.clipPolygon,U=H.clamp,z=H.erase,I=2*Math.PI/360,E=1e-6,M=function(P){return P<-180&&(P+=360),P>180&&(P-=360),P};return function(){function P(y){y===void 0&&(y={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=y;var h=y.name,f=y.projectedBounds,m=y.rotation;this.rotator=m?this.getRotator(m):void 0;var u=h?P.registry[h]:void 0;u&&(this.def=new u(y));var v=this.def,w=this.rotator;v&&(this.maxLatitude=v.maxLatitude||90,this.hasGeoProjection=!0),w&&v?(this.forward=function(S){return v.forward(w.forward(S))},this.inverse=function(S){return w.inverse(v.inverse(S))}):v?(this.forward=function(S){return v.forward(S)},this.inverse=function(S){return v.inverse(S)}):w&&(this.forward=w.forward,this.inverse=w.inverse),this.bounds=f==="world"?v&&v.bounds:f}return P.add=function(y,h){P.registry[y]=h},P.greatCircle=function(y,h,f){var m=Math.atan2,u=Math.cos,v=Math.sin,w=Math.sqrt,S=y[1]*I,x=y[0]*I,p=h[1]*I,g=h[0]*I,r=p-S,a=g-x,t=v(r/2)*v(r/2)+u(S)*u(p)*v(a/2)*v(a/2),i=2*m(w(t),w(1-t)),o=6371e3*i,e=Math.round(o/5e5),s=[];if(f&&s.push(y),e>1)for(var n=1/e,l=n;l<.999;l+=n){var b=v((1-l)*i)/v(i),T=v(l*i)/v(i),D=b*u(S)*u(x)+T*u(p)*u(g),d=b*u(S)*v(x)+T*u(p)*v(g),C=m(b*v(S)+T*v(p),w(D*D+d*d)),A=m(d,D);s.push([A/I,C/I])}return f&&s.push(h),s},P.insertGreatCircles=function(y){for(var h=y.length-1;h--;)if(Math.max(Math.abs(y[h][0]-y[h+1][0]),Math.abs(y[h][1]-y[h+1][1]))>10){var f=P.greatCircle(y[h],y[h+1]);f.length&&y.splice.apply(y,V([h+1,0],f,!1))}},P.toString=function(y){var h=y||{},f=h.name,m=h.rotation;return[f,m&&m.join(",")].join(";")},P.prototype.lineIntersectsBounds=function(y){var h,f=this.bounds||{},m=f.x1,u=f.x2,v=f.y1,w=f.y2,S=function(p,g,r){var a=p[0],t=p[1],i=g?0:1;if(typeof r=="number"&&a[g]>=r!=t[g]>=r){var o=(r-a[g])/(t[g]-a[g]),e=a[i]+o*(t[i]-a[i]);return g?[e,r]:[r,e]}},x=y[0];return((h=S(y,0,m))||(h=S(y,0,u)))&&(x=h,y[1]=h),((h=S(y,1,v))||(h=S(y,1,w)))&&(x=h),x},P.prototype.getRotator=function(y){var h=y[0]*I,f=(y[1]||0)*I,m=(y[2]||0)*I,u=Math.cos(f),v=Math.sin(f),w=Math.cos(m),S=Math.sin(m);if(h!==0||f!==0||m!==0)return{forward:function(x){var p=x[0]*I+h,g=x[1]*I,r=Math.cos(g),a=Math.cos(p)*r,t=Math.sin(p)*r,i=Math.sin(g),o=i*u+a*v;return[Math.atan2(t*w-o*S,a*u-i*v)/I,Math.asin(o*w+t*S)/I]},inverse:function(x){var p=x[0]*I,g=x[1]*I,r=Math.cos(g),a=Math.cos(p)*r,t=Math.sin(p)*r,i=Math.sin(g),o=i*w-t*S;return[(Math.atan2(t*w+i*S,a*u+o*v)-h)/I,Math.asin(o*u-a*v)/I]}}},P.prototype.forward=function(y){return y},P.prototype.inverse=function(y){return y},P.prototype.cutOnAntimeridian=function(y,h){var f,m=180,u=[],v=[y];if(y.forEach(function(T,D){var d=y[D-1];if(!D){if(!h)return;d=y[y.length-1]}var C=d[0],A=T[0];if((C<-90||C>90)&&(A<-90||A>90)&&C>0!=A>0){var N=U((m-(C+360)%360)/((A+360)%360-(C+360)%360),0,1),_=d[1]+N*(T[1]-d[1]);u.push({i:D,lat:_,direction:C<0?1:-1,previousLonLat:d,lonLat:T})}}),u.length)if(h){u.length%2==1&&(f=u.slice().sort(function(T,D){return Math.abs(D.lat)-Math.abs(T.lat)})[0],z(u,f));for(var w=u.length-2;w>=0;){var S=u[w].i,x=M(m+u[w].direction*E),p=M(m-u[w].direction*E);(b=y.splice.apply(y,V([S,u[w+1].i-S],P.greatCircle([x,u[w].lat],[x,u[w+1].lat],!0),!1))).push.apply(b,P.greatCircle([p,u[w+1].lat],[p,u[w].lat],!0)),v.push(b),w-=2}if(f)for(var g=0;g<v.length;g++){var r=f.direction,a=f.lat,t=v[g],i=t.indexOf(f.lonLat);if(i>-1){for(var o=(a<0?-1:1)*this.maxLatitude,e=M(m+r*E),s=M(m-r*E),n=P.greatCircle([e,a],[e,o],!0),l=e+120*r;l>-180&&l<180;l+=120*r)n.push([l,o]);n.push.apply(n,P.greatCircle([s,o],[s,f.lat],!0)),t.splice.apply(t,V([i,0],n,!1));break}}}else for(w=u.length;w--;){var b;S=u[w].i,(b=y.splice(S,y.length,[M(m+u[w].direction*E),u[w].lat])).unshift([M(m-u[w].direction*E),u[w].lat]),v.push(b)}return v},P.prototype.path=function(y){var h,f=this,m=this,u=m.bounds,v=m.def,w=m.rotator,S=[],x=y.type==="Polygon"||y.type==="MultiPolygon",p=this.hasGeoProjection,g=!v||v.antimeridianCutting!==!1,r=g?w:void 0,a=g&&v||this;u&&(h=[[u.x1,u.y1],[u.x2,u.y1],[u.x2,u.y2],[u.x1,u.y2]]);var t=function(i){var o=i.map(function(s){if(g){r&&(s=r.forward(s));var n=s[0];Math.abs(n-180)<E&&(n=n<180?179.999999:180.000001),s=[n,s[1]]}return s}),e=[o];p&&(P.insertGreatCircles(o),g&&(e=f.cutOnAntimeridian(o,x))),e.forEach(function(s){if(!(s.length<2)){var n,l,b=!1,T=!1,D=function(O){b?S.push(["L",O[0],O[1]]):(S.push(["M",O[0],O[1]]),b=!0)},d=!1,C=!1,A=s.map(function(O){var j=a.forward(O);return j.outside?d=!0:C=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(g){if(x&&A.push(A[0]),d){if(!C)return;if(h){if(x)A=Z(A,h);else if(u)return void $(A,h).forEach(function(O){b=!1,O.forEach(D)})}}A.forEach(D)}else for(var N=0;N<A.length;N++){var _=s[N],L=A[N];L.outside?T=!0:(x&&!n&&(n=_,s.push(_),A.push(L)),T&&l&&(x&&p?P.greatCircle(l,_).forEach(function(O){return D(a.forward(O))}):b=!1),D(L),l=_,T=!1)}}})};return y.type==="LineString"?t(y.coordinates):y.type==="MultiLineString"?y.coordinates.forEach(function(i){return t(i)}):y.type==="Polygon"?(y.coordinates.forEach(function(i){return t(i)}),S.length&&S.push(["Z"])):y.type==="MultiPolygon"&&(y.coordinates.forEach(function(i){i.forEach(function(o){return t(o)})}),S.length&&S.push(["Z"])),S},P.registry=R,P}()}),it(B,"Maps/MapView.js",[B["Maps/MapViewOptionsDefault.js"],B["Maps/MapViewInsetsOptionsDefault.js"],B["Extensions/GeoJSON.js"],B["Core/Chart/MapChart.js"],B["Maps/MapUtilities.js"],B["Maps/Projection.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(e,s){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var b in l)l.hasOwnProperty(b)&&(n[b]=l[b])},z(e,s)},function(e,s){function n(){this.constructor=e}z(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),E=this&&this.__spreadArray||function(e,s,n){if(n||arguments.length===2)for(var l,b=0,T=s.length;b<T;b++)!l&&b in s||(l||(l=Array.prototype.slice.call(s,0,b)),l[b]=s[b]);return e.concat(l||Array.prototype.slice.call(s))},M=H.topo2geo,P=V.maps,y=$.boundsFromPath,h=$.pointInPolygon,f=U.addEvent,m=U.clamp,u=U.fireEvent,v=U.isArray,w=U.isNumber,S=U.isObject,x=U.isString,p=U.merge,g=U.pick,r=U.relativeLength,a=400.979322,t=function(e,s){var n=s.width,l=s.height,b=Math.max((e.x2-e.x1)/(n/256),(e.y2-e.y1)/(l/256));return Math.log(a/b)/Math.log(2)},i=function(){function e(s,n){var l,b,T=this;if(this.insets=[],this.padding=[0,0,0,0],this.eventsToUnbind=[],!(this instanceof o)){var D=E([s.options.chart.map],(s.options.series||[]).map(function(X){return X.mapData}),!0).map(function(X){return T.getGeoMap(X)}),d=[];D.forEach(function(X){if(X&&(l||(l=X["hc-recommended-mapview"]),X.bbox)){var G=X.bbox,q=G[0],Q=G[1],J=G[2],rt=G[3];d.push({x1:q,y1:Q,x2:J,y2:rt})}});var C=d.length&&e.compositeBounds(d);if(C){var A=C.x1,N=C.y1,_=C.x2,L=C.y2;b=_-A>180&&L-N>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[N,L],rotation:[-(A+_)/2]}}this.geoMap=D[0]}this.userOptions=n||{};var O=p(W,{projection:b},l,n),j=l&&l.insets,Y=n&&n.insets;j&&Y&&(O.insets=e.mergeInsets(j,Y)),this.chart=s,this.center=O.center,this.options=O,this.projection=new Z(O.projection),this.playingField=s.plotBox,this.zoom=O.zoom||0,this.createInsets(),this.eventsToUnbind.push(f(s,"afterSetChartSize",function(){T.playingField=T.getField(),T.minZoom!==void 0&&T.minZoom!==T.zoom||(T.fitToBounds(void 0,void 0,!1),!T.chart.hasRendered&&w(T.userOptions.zoom)&&(T.zoom=T.userOptions.zoom),T.userOptions.center&&p(!0,T.center,T.userOptions.center))})),this.setUpEvents()}return e.mergeInsets=function(s,n){var l=function(T){var D={};return T.forEach(function(d,C){D[d&&d.id||"i".concat(C)]=d}),D},b=p(l(s),l(n));return Object.keys(b).map(function(T){return b[T]})},e.prototype.createInsets=function(){var s=this,n=this.options,l=n.insets;l&&l.forEach(function(b){var T=new o(s,p(n.insetOptions,b));s.insets.push(T)})},e.prototype.fitToBounds=function(s,n,l,b){l===void 0&&(l=!0);var T=s||this.getProjectedBounds();if(T){var D=g(n,s?0:this.options.padding),d=this.getField(!1),C=v(D)?D:[D,D,D,D];this.padding=[r(C[0],d.height),r(C[1],d.width),r(C[2],d.height),r(C[3],d.width)],this.playingField=this.getField();var A=t(T,this.playingField);s||(this.minZoom=A);var N=this.projection.inverse([(T.x2+T.x1)/2,(T.y2+T.y1)/2]);this.setView(N,A,l,b)}},e.prototype.getField=function(s){s===void 0&&(s=!0);var n=s?this.padding:[0,0,0,0];return{x:n[3],y:n[0],width:this.chart.plotWidth-n[1]-n[3],height:this.chart.plotHeight-n[0]-n[2]}},e.prototype.getGeoMap=function(s){if(x(s))return P[s];if(S(s,!0)){if(s.type==="FeatureCollection")return s;if(s.type==="Topology")return M(s)}},e.prototype.getMapBBox=function(){var s=this.getProjectedBounds(),n=this.getScale();if(s){var l=this.padding,b=this.projectedUnitsToPixels({x:s.x1,y:s.y2});return{width:(s.x2-s.x1)*n+l[1]+l[3],height:(s.y2-s.y1)*n+l[0]+l[2],x:b.x-l[3],y:b.y-l[0]}}},e.prototype.getProjectedBounds=function(){var s=this.projection,n=this.chart.series.reduce(function(d,C){var A=C.getProjectedBounds&&C.getProjectedBounds();return A&&C.options.affectsMapView!==!1&&d.push(A),d},[]),l=this.options.fitToGeometry;if(l){if(!this.fitToGeometryCache)if(l.type==="MultiPoint"){var b=l.coordinates.map(function(d){return s.forward(d)}),T=b.map(function(d){return d[0]}),D=b.map(function(d){return d[1]});this.fitToGeometryCache={x1:Math.min.apply(0,T),x2:Math.max.apply(0,T),y1:Math.min.apply(0,D),y2:Math.max.apply(0,D)}}else this.fitToGeometryCache=y(s.path(l));return this.fitToGeometryCache}return this.projection.bounds||e.compositeBounds(n)},e.prototype.getScale=function(){return 256/a*Math.pow(2,this.zoom)},e.prototype.getSVGTransform=function(){var s=this.playingField,n=s.x,l=s.y,b=s.width,T=s.height,D=this.projection.forward(this.center),d=this.projection.hasCoordinates?-1:1,C=this.getScale(),A=C*d;return{scaleX:C,scaleY:A,translateX:n+b/2-D[0]*C,translateY:l+T/2-D[1]*A}},e.prototype.lonLatToPixels=function(s){var n=this.lonLatToProjectedUnits(s);if(n)return this.projectedUnitsToPixels(n)},e.prototype.lonLatToProjectedUnits=function(s){var n=this.chart,l=n.mapTransforms;if(l){for(var b in l)if(Object.hasOwnProperty.call(l,b)&&l[b].hitZone){var T=n.transformFromLatLon(s,l[b]);if(T&&h(T,l[b].hitZone.coordinates[0]))return T}return n.transformFromLatLon(s,l.default)}for(var D=0,d=this.insets;D<d.length;D++){var C=d[D];if(C.options.geoBounds&&h({x:s.lon,y:s.lat},C.options.geoBounds.coordinates[0])){var A=C.projection.forward([s.lon,s.lat]),N=C.projectedUnitsToPixels({x:A[0],y:A[1]});return this.pixelsToProjectedUnits(N)}}var _=this.projection.forward([s.lon,s.lat]);if(!_.outside)return{x:_[0],y:_[1]}},e.prototype.projectedUnitsToLonLat=function(s){var n=this.chart,l=n.mapTransforms;if(l){for(var b in l)if(Object.hasOwnProperty.call(l,b)&&l[b].hitZone&&h(s,l[b].hitZone.coordinates[0]))return n.transformToLatLon(s,l[b]);return n.transformToLatLon(s,l.default)}for(var T=this.projectedUnitsToPixels(s),D=0,d=this.insets;D<d.length;D++){var C=d[D];if(C.hitZone&&h(T,C.hitZone.coordinates[0])){var A=C.pixelsToProjectedUnits(T),N=C.projection.inverse([A.x,A.y]);return{lon:N[0],lat:N[1]}}}var _=this.projection.inverse([s.x,s.y]);return{lon:_[0],lat:_[1]}},e.prototype.redraw=function(s){this.chart.series.forEach(function(n){n.useMapGeometry&&(n.isDirty=!0)}),this.chart.redraw(s)},e.prototype.setView=function(s,n,l,b){l===void 0&&(l=!0),s&&(this.center=s),typeof n=="number"&&(typeof this.minZoom=="number"&&(n=Math.max(n,this.minZoom)),typeof this.options.maxZoom=="number"&&(n=Math.min(n,this.options.maxZoom)),w(n)&&(this.zoom=n));var T=this.getProjectedBounds();if(T){var D=this.projection.forward(this.center),d=this.playingField,C=d.x,A=d.y,N=d.width,_=d.height,L=this.getScale(),O=this.projectedUnitsToPixels({x:T.x1,y:T.y1}),j=this.projectedUnitsToPixels({x:T.x2,y:T.y2}),Y=[(T.x1+T.x2)/2,(T.y1+T.y2)/2],X=O.x,G=j.y,q=j.x,Q=O.y;q-X<N?D[0]=Y[0]:X<C&&q<C+N?D[0]+=Math.max(X-C,q-N-C)/L:q>C+N&&X>C&&(D[0]+=Math.min(q-N-C,X-C)/L),Q-G<_?D[1]=Y[1]:G<A&&Q<A+_?D[1]-=Math.max(G-A,Q-_-A)/L:Q>A+_&&G>A&&(D[1]-=Math.min(Q-_-A,G-A)/L),this.center=this.projection.inverse(D),this.insets.forEach(function(J){J.options.field&&(J.hitZone=J.getHitZone(),J.playingField=J.getField())}),this.render()}u(this,"afterSetView"),l&&this.redraw(b)},e.prototype.projectedUnitsToPixels=function(s){var n=this.getScale(),l=this.projection.forward(this.center),b=this.playingField,T=b.x+b.width/2,D=b.y+b.height/2;return{x:T-n*(l[0]-s.x),y:D+n*(l[1]-s.y)}},e.prototype.pixelsToLonLat=function(s){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(s))},e.prototype.pixelsToProjectedUnits=function(s){var n=s.x,l=s.y,b=this.getScale(),T=this.projection.forward(this.center),D=this.playingField,d=D.x+D.width/2,C=D.y+D.height/2;return{x:T[0]+(n-d)/b,y:T[1]-(l-C)/b}},e.prototype.setUpEvents=function(){var s,n,l,b=this,T=this.chart,D=function(d){var C=T.pointer.pinchDown,A=b.projection,N=T.mouseDownX,_=T.mouseDownY;if(C.length===1&&(N=C[0].chartX,_=C[0].chartY),typeof N=="number"&&typeof _=="number"){var L=""+N+",".concat(_),O=d.originalEvent,j=O.chartX,Y=O.chartY;L!==n&&(n=L,s=b.projection.forward(b.center),l=(b.projection.options.rotation||[0,0]).slice());var X=A.def&&A.def.bounds,G=X&&t(X,b.playingField)||-1/0;if(A.options.name==="Orthographic"&&(b.minZoom||1/0)<1.1*G){var q=440/(b.getScale()*Math.min(T.plotWidth,T.plotHeight));if(l){var Q=(N-j)*q-l[0],J=m(-l[1]-(_-Y)*q,-80,80),rt=b.zoom;b.update({projection:{rotation:[-Q,-J]}},!1),b.zoom=rt,T.redraw(!1)}}else if(w(j)&&w(Y)){var lt=b.getScale(),gt=b.projection.hasCoordinates?1:-1,mt=b.projection.inverse([s[0]+(N-j)/lt,s[1]-(_-Y)/lt*gt]);b.setView(mt,void 0,!0,!1)}d.preventDefault()}};f(T,"pan",D),f(T,"touchpan",D),f(T,"selection",function(d){if(d.resetSelection)b.zoomBy();else{var C=d.x-T.plotLeft,A=d.y-T.plotTop,N=b.pixelsToProjectedUnits({x:C,y:A}),_=N.y,L=N.x,O=b.pixelsToProjectedUnits({x:C+d.width,y:A+d.height}),j=O.y,Y=O.x;b.fitToBounds({x1:L,y1:_,x2:Y,y2:j},void 0,!0,!d.originalEvent.touches&&void 0),/^touch/.test(d.originalEvent.type)||T.showResetZoom(),d.preventDefault()}})},e.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},e.prototype.update=function(s,n,l){n===void 0&&(n=!0);var b=s.projection,T=b&&Z.toString(b)!==Z.toString(this.options.projection),D=!1;p(!0,this.userOptions,s),p(!0,this.options,s),"insets"in s&&(this.insets.forEach(function(d){return d.destroy()}),this.insets.length=0,D=!0),(T||"fitToGeometry"in s)&&delete this.fitToGeometryCache,(T||D)&&(this.chart.series.forEach(function(d){var C=d.transformGroups;if(d.clearBounds&&d.clearBounds(),d.isDirty=!0,d.isDirtyData=!0,D&&C)for(;C.length>1;){var A=C.pop();A&&A.destroy()}}),T&&(this.projection=new Z(this.options.projection)),D&&this.createInsets(),s.center||w(s.zoom)||this.fitToBounds(void 0,void 0,!1)),s.center||w(s.zoom)?this.setView(this.options.center,s.zoom,!1):"fitToGeometry"in s&&this.fitToBounds(void 0,void 0,!1),n&&this.chart.redraw(l)},e.prototype.zoomBy=function(s,n,l,b){var T=this.chart,D=this.projection.forward(this.center),d=n?this.projection.forward(n):[],C=d[0],A=d[1];if(typeof s=="number"){var N=this.zoom+s,_=void 0;if(l){var L=l[0],O=l[1],j=this.getScale(),Y=L-T.plotLeft-T.plotWidth/2,X=O-T.plotTop-T.plotHeight/2;C=D[0]+Y/j,A=D[1]+X/j}typeof C=="number"&&typeof A=="number"&&(j=1-Math.pow(2,this.zoom)/Math.pow(2,N),Y=D[0]-C,X=D[1]-A,D[0]-=Y*j,D[1]+=X*j,_=this.projection.inverse(D)),this.setView(_,N,void 0,b)}else this.fitToBounds(void 0,void 0,void 0,b)},e.compositeBounds=function(s){if(s.length)return s.slice(1).reduce(function(n,l){return n.x1=Math.min(n.x1,l.x1),n.y1=Math.min(n.y1,l.y1),n.x2=Math.max(n.x2,l.x2),n.y2=Math.max(n.y2,l.y2),n},p(s[0]))},e}(),o=function(e){function s(n,l){var b=e.call(this,n.chart,l)||this;if(b.id=l.id,b.mapView=n,b.options=p(R,l),b.allBounds=[],b.options.geoBounds){var T=n.projection.path(b.options.geoBounds);b.geoBoundsProjectedBox=y(T),b.geoBoundsProjectedPolygon=T.map(function(D){return[D[1]||0,D[2]||0]})}return b}return I(s,e),s.prototype.getField=function(n){n===void 0&&(n=!0);var l=this.hitZone;if(l){var b=n?this.padding:[0,0,0,0],T=l.coordinates[0],D=T.map(function(L){return L[0]}),d=T.map(function(L){return L[1]}),C=Math.min.apply(0,D)+b[3],A=Math.max.apply(0,D)-b[1],N=Math.min.apply(0,d)+b[0],_=Math.max.apply(0,d)-b[2];if(w(C)&&w(N))return{x:C,y:N,width:A-C,height:_-N}}return e.prototype.getField.call(this,n)},s.prototype.getHitZone=function(){var n=this,l=n.chart,b=n.mapView,T=n.options,D=(T.field||{}).coordinates;if(D){var d=D[0];if(T.units==="percent"){var C=T.relativeTo==="mapBoundingBox"&&b.getMapBBox()||p(l.plotBox,{x:0,y:0});d=d.map(function(A){return[r(A[0]+"%",C.width,C.x),r(A[1]+"%",C.height,C.y)]})}return{type:"Polygon",coordinates:[d]}}},s.prototype.getProjectedBounds=function(){return i.compositeBounds(this.allBounds)},s.prototype.isInside=function(n){var l=this.geoBoundsProjectedBox,b=this.geoBoundsProjectedPolygon;return!!(l&&n.x>=l.x1&&n.x<=l.x2&&n.y>=l.y1&&n.y<=l.y2&&b&&h(n,b))},s.prototype.render=function(){var n=this,l=n.chart,b=n.mapView,T=n.options,D=T.borderPath||T.field;if(D&&b.group){var d=!0;this.border||(this.border=l.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),d=!1),l.styledMode||this.border.attr({stroke:T.borderColor,"stroke-width":T.borderWidth});var C=Math.round(this.border.strokeWidth())%2/2,A=T.relativeTo==="mapBoundingBox"&&b.getMapBBox()||b.playingField,N=(D.coordinates||[]).reduce(function(_,L){return L.reduce(function(O,j,Y){var X=j[0],G=j[1];return T.units==="percent"&&(X=l.plotLeft+r(X+"%",A.width,A.x),G=l.plotTop+r(G+"%",A.height,A.y)),X=Math.floor(X)+C,G=Math.floor(G)+C,O.push(Y===0?["M",X,G]:["L",X,G]),O},_)},[]);this.border[d?"animate":"attr"]({d:N})}},s.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(n){return n()})},s.prototype.setUpEvents=function(){},s}(i);return f(V,"afterInit",function(){this.mapView=new i(this,this.options.mapView)}),i}),it(B,"Series/Map/MapSeries.js",[B["Core/Animation/AnimationUtilities.js"],B["Series/ColorMapComposition.js"],B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Chart/MapChart.js"],B["Series/Map/MapPoint.js"],B["Maps/MapView.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P){var y,h=this&&this.__extends||(y=function(T,D){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,C){d.__proto__=C}||function(d,C){for(var A in C)C.hasOwnProperty(A)&&(d[A]=C[A])},y(T,D)},function(T,D){function d(){this.constructor=T}y(T,D),T.prototype=D===null?Object.create(D):(d.prototype=D.prototype,new d)}),f=W.animObject,m=V.noop,u=Z.splitPath,v=E.seriesTypes,w=v.column,S=v.scatter,x=P.extend,p=P.find,g=P.fireEvent,r=P.getNestedProperty,a=P.isArray,t=P.defined,i=P.isNumber,o=P.isObject,e=P.merge,s=P.objectEach,n=P.pick,l=P.splat,b=function(T){function D(){var d=T!==null&&T.apply(this,arguments)||this;return d.chart=void 0,d.data=void 0,d.group=void 0,d.joinBy=void 0,d.options=void 0,d.points=void 0,d.processedData=[],d}return h(D,T),D.prototype.animate=function(d){var C=this.chart,A=this.group,N=f(this.options.animation);C.renderer.isSVG&&(d?A.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.001,scaleY:.001}):A.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1},N))},D.prototype.animateDrilldown=function(d){var C=this.chart,A=this.group;C.renderer.isSVG&&(d?A.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(A.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),C.drilldown&&C.drilldown.fadeInGroup(this.dataLabelsGroup)))},D.prototype.animateDrillupFrom=function(){var d=this.chart;d.renderer.isSVG&&this.group.animate({translateX:d.plotLeft+d.plotWidth/2,translateY:d.plotTop+d.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})},D.prototype.animateDrillupTo=function(d){w.prototype.animateDrillupTo.call(this,d)},D.prototype.clearBounds=function(){this.points.forEach(function(d){delete d.bounds,delete d.insetIndex,delete d.projectedPath}),delete this.bounds},D.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.hasRendered)},D.prototype.drawMapDataLabels=function(){I.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},D.prototype.drawPoints=function(){var d=this,C=this,A=this,N=A.chart,_=A.group,L=A.transformGroups,O=L===void 0?[]:L,j=N.mapView,Y=N.renderer;j&&(this.transformGroups=O,O[0]||(O[0]=Y.g().add(_)),j.insets.forEach(function(X,G){O[G+1]||O.push(Y.g().add(_))}),this.doFullTranslate()&&(this.points.forEach(function(X){var G=X.graphic,q=X.shapeArgs;X.group=O[typeof X.insetIndex=="number"?X.insetIndex+1:0],G&&G.parentGroup!==X.group&&G.add(X.group),q&&N.hasRendered&&!N.styledMode&&(q.fill=d.pointAttribs(X,X.state).fill)}),w.prototype.drawPoints.apply(this),this.points.forEach(function(X){var G=X.graphic;if(G){var q=G.animate,Q="";X.name&&(Q+="highcharts-name-"+X.name.replace(/ /g,"-").toLowerCase()),X.properties&&X.properties["hc-key"]&&(Q+=" highcharts-key-"+X.properties["hc-key"].toString().toLowerCase()),Q&&G.addClass(Q),N.styledMode&&G.css(d.pointAttribs(X,X.selected?"select":void 0)),G.animate=function(J,rt,lt){var gt=i(J["stroke-width"])&&!i(G["stroke-width"]),mt=i(G["stroke-width"])&&!i(J["stroke-width"]);if(gt||mt){var bt=n(C.getStrokeWidth(C.options),1)/(N.mapView&&N.mapView.getScale()||1);gt&&(G["stroke-width"]=bt),mt&&(J["stroke-width"]=bt)}var yt=q.call(G,J,rt,mt?function(){G.element.removeAttribute("stroke-width"),delete G["stroke-width"],lt&&lt.apply(this,arguments)}:lt);return yt}}})),O.forEach(function(X,G){var q=(G===0?j:j.insets[G-1]).getSVGTransform(),Q=n(d.getStrokeWidth(d.options),1),J=q.scaleX,rt=q.scaleY>0?1:-1,lt=function(yt){(C.points||[]).forEach(function(ht){var et,at=ht.graphic;at&&at["stroke-width"]&&(et=d.getStrokeWidth(ht.options))&&at.attr({"stroke-width":et/yt})})};if(Y.globalAnimation&&N.hasRendered){var gt=Number(X.attr("translateX")),mt=Number(X.attr("translateY")),bt=Number(X.attr("scaleX"));X.attr({animator:0}).animate({animator:1},{step:function(yt,ht){var et=bt+(J-bt)*ht.pos;X.attr({translateX:gt+(q.translateX-gt)*ht.pos,translateY:mt+(q.translateY-mt)*ht.pos,scaleX:et,scaleY:et*rt,"stroke-width":Q/et}),lt(et)}})}else X.attr(e(q,{"stroke-width":Q/J})),lt(J)}),this.drawMapDataLabels())},D.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var d=this.chart.mapView,C=d.insets,A=d.projection,N=[];(this.points||[]).forEach(function(_){if(_.path||_.geometry){if(typeof _.path=="string"?_.path=u(_.path):a(_.path)&&_.path[0]==="M"&&(_.path=M.prototype.pathToSegments(_.path)),!_.bounds){var L=_.getProjectedBounds(A);if(L){_.labelrank=n(_.labelrank,(L.x2-L.x1)*(L.y2-L.y1));var O=L.midX,j=L.midY;if(C&&i(O)&&i(j)){var Y=p(C,function(X){return X.isInside({x:O,y:j})});Y&&(delete _.projectedPath,(L=_.getProjectedBounds(Y.projection))&&Y.allBounds.push(L),_.insetIndex=C.indexOf(Y))}_.bounds=L}}_.bounds&&_.insetIndex===void 0&&N.push(_.bounds)}}),this.bounds=z.compositeBounds(N)}return this.bounds},D.prototype.getStrokeWidth=function(d){var C=this.pointAttrToOptions;return d[C&&C["stroke-width"]||"borderWidth"]},D.prototype.hasData=function(){return!!this.processedXData.length},D.prototype.pointAttribs=function(d,C){var A=d.series.chart,N=A.mapView,_=A.styledMode?this.colorAttribs(d):w.prototype.pointAttribs.call(this,d,C),L=this.getStrokeWidth(d.options);if(C){var O=e(this.options.states[C],d.options.states&&d.options.states[C]||{}),j=this.getStrokeWidth(O);t(j)&&(L=j)}L&&N&&(L/=N.getScale());var Y=this.getStrokeWidth(this.options);return _.dashstyle&&N&&i(Y)&&(L=Y/N.getScale()),d.visible||(_.fill=this.options.nullColor),t(L)?_["stroke-width"]=L:delete _["stroke-width"],_["stroke-linecap"]=_["stroke-linejoin"]=this.options.linecap,_},D.prototype.updateData=function(){return!this.processedData&&T.prototype.updateData.apply(this,arguments)},D.prototype.setData=function(d,C,A,N){C===void 0&&(C=!0),delete this.bounds,T.prototype.setData.call(this,d,!1,void 0,N),this.processData(),this.generatePoints(),C&&this.chart.redraw(A)},D.prototype.processData=function(){var d,C,A,N,_=this.options,L=_.data,O=this.chart.options.chart,j=this.joinBy,Y=_.keys||this.pointArrayMap,X=[],G={},q=this.chart.mapView,Q=q&&(o(_.mapData,!0)?q.getGeoMap(_.mapData):q.geoMap),J=this.chart.mapTransforms;this.chart.mapTransforms=J=O.mapTransforms||Q&&Q["hc-transform"]||J,J&&s(J,function(bt){bt.rotation&&(bt.cosAngle=Math.cos(bt.rotation),bt.sinAngle=Math.sin(bt.rotation))}),a(_.mapData)?N=_.mapData:Q&&Q.type==="FeatureCollection"&&(this.mapTitle=Q.title,N=V.geojson(Q,this.type,this)),this.processedData=[];var rt=this.processedData;if(L&&L.forEach(function(bt,yt){var ht=0;if(i(bt))rt[yt]={value:bt};else if(a(bt)){rt[yt]={},!_.keys&&bt.length>Y.length&&typeof bt[0]=="string"&&(rt[yt]["hc-key"]=bt[0],++ht);for(var et=0;et<Y.length;++et,++ht)Y[et]&&bt[ht]!==void 0&&(Y[et].indexOf(".")>0?U.prototype.setNestedProperty(rt[yt],bt[ht],Y[et]):rt[yt][Y[et]]=bt[ht])}else rt[yt]=L[yt];j&&j[0]==="_i"&&(rt[yt]._i=yt)}),N){for(this.mapData=N,this.mapMap={},A=0;A<N.length;A++)C=(d=N[A]).properties,d._i=A,j[0]&&C&&C[j[0]]&&(d[j[0]]=C[j[0]]),G[d[j[0]]]=d;if(this.mapMap=G,j[1]){var lt=j[1];rt.forEach(function(bt){var yt=r(lt,bt);G[yt]&&X.push(G[yt])})}if(_.allAreas){if(j[1]){var gt=j[1];rt.forEach(function(bt){X.push(r(gt,bt))})}var mt="|"+X.map(function(bt){return bt&&bt[j[0]]}).join("|")+"|";N.forEach(function(bt){j[0]&&mt.indexOf("|"+bt[j[0]]+"|")!==-1||rt.push(e(bt,{value:null}))})}}this.processedXData=new Array(rt.length)},D.prototype.setOptions=function(d){var C=I.prototype.setOptions.call(this,d),A=C.joinBy;return A===null&&(A="_i"),(A=this.joinBy=l(A))[1]||(A[1]=A[0]),C},D.prototype.translate=function(){var d=this,C=d.doFullTranslate(),A=this.chart.mapView,N=A&&A.projection;if(!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!A||A.userOptions.center||i(A.userOptions.zoom)?this.getProjectedBounds():A.fitToBounds(void 0,void 0,!1)),A){var _=A.getSVGTransform();d.points.forEach(function(L){var O=i(L.insetIndex)&&A.insets[L.insetIndex].getSVGTransform()||_;O&&L.bounds&&i(L.bounds.midX)&&i(L.bounds.midY)&&(L.plotX=L.bounds.midX*O.scaleX+O.translateX,L.plotY=L.bounds.midY*O.scaleY+O.translateY),C&&(L.shapeType="path",L.shapeArgs={d:U.getProjectedPath(L,N)})})}g(d,"afterTranslate")},D.defaultOptions=e(S.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var d=this.series.chart.numberFormatter,C=this.point.value;return i(C)?d(C,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"butt",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"}}}),D}(S);return x(b.prototype,{type:"map",axisTypes:R.seriesMembers.axisTypes,colorAttribs:R.seriesMembers.colorAttribs,colorKey:R.seriesMembers.colorKey,directTouch:!0,drawDataLabels:m,drawGraph:m,drawLegendSymbol:$.drawRectangle,forceDL:!0,getCenter:H.getCenter,getExtremesFromAll:!0,getSymbol:m,isCartesian:!1,parallelArrays:R.seriesMembers.parallelArrays,pointArrayMap:R.seriesMembers.pointArrayMap,pointClass:U,preserveAspectRatio:!0,searchPoint:m,trackerGroups:R.seriesMembers.trackerGroups,useMapGeometry:!0}),R.compose(b),E.registerSeriesType("map",b),b}),it(B,"Series/MapLine/MapLineSeries.js",[B["Series/Map/MapSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(E,M){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var h in y)y.hasOwnProperty(h)&&(P[h]=y[h])},V(E,M)},function(E,M){function P(){this.constructor=E}V(E,M),E.prototype=M===null?Object.create(M):(P.prototype=M.prototype,new P)}),Z=R.series,U=H.extend,z=H.merge,I=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return $(M,E),M.prototype.pointAttribs=function(P,y){var h=W.prototype.pointAttribs.call(this,P,y);return h.fill=this.options.fillColor,h},M.defaultOptions=z(W.defaultOptions,{lineWidth:1,fillColor:"none"}),M}(W);return U(I.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:Z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),R.registerSeriesType("mapline",I),I}),it(B,"Series/MapPoint/MapPointPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(z,I){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},H(z,I)},function(z,I){function E(){this.constructor=z}H(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=W.seriesTypes.scatter,Z=R.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return V(I,z),I.prototype.isValid=function(){return!!(this.options.geometry||Z(this.x)&&Z(this.y)||Z(this.options.lon)&&Z(this.options.lat))},I}($.prototype.pointClass);return U}),it(B,"Series/MapPoint/MapPointSeries.js",[B["Core/Globals.js"],B["Series/MapPoint/MapPointPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(u,v){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var x in S)S.hasOwnProperty(x)&&(w[x]=S[x])},Z(u,v)},function(u,v){function w(){this.constructor=u}Z(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),z=W.noop,I=H.seriesTypes,E=I.map,M=I.scatter,P=$.extend,y=$.fireEvent,h=$.isNumber,f=$.merge,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.chart=void 0,w.data=void 0,w.options=void 0,w.points=void 0,w.clearBounds=E.prototype.clearBounds,w}return U(v,u),v.prototype.drawDataLabels=function(){u.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},v.prototype.projectPoint=function(w){var S=this.chart.mapView;if(S){var x=w.geometry,p=w.lon,g=w.lat,r=x&&x.type==="Point"&&x.coordinates;if(h(p)&&h(g)&&(r=[p,g]),r)return S.lonLatToProjectedUnits({lon:r[0],lat:r[1]})}},v.prototype.translate=function(){var w=this,S=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),S){var x=S.getSVGTransform(),p=S.projection.hasCoordinates;this.points.forEach(function(g){var r,a=g.x,t=a===void 0?void 0:a,i=g.y,o=i===void 0?void 0:i,e=h(g.insetIndex)&&S.insets[g.insetIndex].getSVGTransform()||x,s=w.projectPoint(g.options)||g.properties&&w.projectPoint(g.properties);if(s?(t=s.x,o=s.y):g.bounds&&(t=g.bounds.midX,o=g.bounds.midY,e&&h(t)&&h(o)&&(g.plotX=t*e.scaleX+e.translateX,g.plotY=o*e.scaleY+e.translateY,r=!0)),h(t)&&h(o)){if(!r){var n=S.projectedUnitsToPixels({x:t,y:o});g.plotX=n.x,g.plotY=p?n.y:w.chart.plotHeight-n.y}}else g.y=g.plotX=g.plotY=void 0;g.isInside=w.isPointInside(g),g.zone=w.zones.length?g.getZone():void 0})}y(this,"afterTranslate")},v.defaultOptions=f(M.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),v}(M);return V.prototype.symbols.mapmarker=function(u,v,w,S,x){var p,g,r=x&&x.context==="legend";r?(p=u+w/2,g=v+S):x&&typeof x.anchorX=="number"&&typeof x.anchorY=="number"?(p=x.anchorX,g=x.anchorY):(p=u+w/2,g=v+S/2,v-=S);var a=r?S/3:S/2;return[["M",p,g],["C",p,g,p-a,v+1.5*a,p-a,v+a],["A",a,a,1,1,1,p+a,v+a],["C",p+a,v+1.5*a,p,g,p,g],["Z"]]},P(m.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:R,searchPoint:z,useMapGeometry:!0}),H.registerSeriesType("mappoint",m),m}),it(B,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),it(B,"Series/Bubble/BubbleLegendItem.js",[B["Core/Color/Color.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=H.noop,U=V.arrayMax,z=V.arrayMin,I=V.isNumber,E=V.merge,M=V.pick,P=V.stableSort;return function(){function y(h,f){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(h,f)}return y.prototype.init=function(h,f){this.options=h,this.visible=!0,this.chart=f.chart,this.legend=f},y.prototype.addToLegend=function(h){h.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(h){var f,m=this.chart,u=M(h.options.itemDistance,20),v=this.legendItem||{},w=this.options,S=w.ranges,x=w.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(w.labels.style.fontSize),S&&S.length&&I(S[0].value)){P(S,function(a,t){return t.value-a.value}),this.ranges=S,this.setOptions(),this.render();var p=this.getMaxLabelSize(),g=this.ranges[0].radius,r=2*g;f=(f=x-g+p.width)>0?f:0,this.maxLabel=p,this.movementX=w.labels.align==="left"?f:0,v.labelWidth=r+f+u,v.labelHeight=r+this.fontMetrics.h/2}else h.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var h=this.ranges,f=this.options,m=this.chart.series[f.seriesIndex],u=this.legend.baseline,v={zIndex:f.zIndex,"stroke-width":f.borderWidth},w={zIndex:f.zIndex,"stroke-width":f.connectorWidth},S={align:this.legend.options.rtl||f.labels.align==="left"?"right":"left",zIndex:f.zIndex},x=m.options.marker.fillOpacity,p=this.chart.styledMode;h.forEach(function(g,r){p||(v.stroke=M(g.borderColor,f.borderColor,m.color),v.fill=M(g.color,f.color,x!==1?$(m.color).setOpacity(x).get("rgba"):m.color),w.stroke=M(g.connectorColor,f.connectorColor,m.color)),h[r].radius=this.getRangeRadius(g.value),h[r]=E(h[r],{center:h[0].radius-h[r].radius+u}),p||E(!0,h[r],{bubbleAttribs:E(v),connectorAttribs:E(w),labelAttribs:S})},this)},y.prototype.getRangeRadius=function(h){var f=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=f.ranges[0].value,w=f.ranges[f.ranges.length-1].value,S=f.minSize,x=f.maxSize;return u.getRadius.call(this,w,v,S,x,h)},y.prototype.render=function(){var h=this.legendItem||{},f=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),h.symbol=f.g("bubble-legend"),h.label=f.g("bubble-legend-item"),h.symbol.translateX=0,h.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var w=v[u];w.value>=m&&this.renderRange(w)}h.symbol.add(h.label),h.label.add(h.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(h){var f=this.ranges[0],m=this.legend,u=this.options,v=u.labels,w=this.chart,S=w.series[u.seriesIndex],x=w.renderer,p=this.symbols,g=p.labels,r=h.center,a=Math.abs(h.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,s=u.connectorWidth,n=f.radius||0,l=r-a-e/2+s/2,b=this.fontMetrics,T=b.f/2-(b.h-b.f)/2,D=(l%1?1:.5)-(s%2?0:.5),d=x.styledMode,C=o||i==="left"?-t:t;i==="center"&&(C=0,u.connectorDistance=0,h.labelAttribs.align="center");var A=l+u.labels.y,N=n+C+u.labels.x;p.bubbleItems.push(x.circle(n,r+D,a).attr(d?{}:h.bubbleAttribs).addClass((d?"highcharts-color-"+S.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),p.connectors.push(x.path(x.crispLine([["M",n,l],["L",n+C,l]],u.connectorWidth)).attr(d?{}:h.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var _=x.text(this.formatLabel(h),N,A+T).attr(d?{}:h.labelAttribs).css(d?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);g.push(_),_.placed=!0,_.alignAttr={x:N,y:A+T}},y.prototype.getMaxLabelSize=function(){var h,f;return this.symbols.labels.forEach(function(m){f=m.getBBox(!0),h=h?f.width>h.width?f:h:f}),h||{}},y.prototype.formatLabel=function(h){var f=this.options,m=f.labels.formatter,u=f.labels.format,v=this.chart.numberFormatter;return u?R.format(u,h):m?m.call(h):v(h.value,1)},y.prototype.hideOverlappingLabels=function(){var h=this.chart,f=this.options.labels.allowOverlap,m=this.symbols;!f&&m&&(h.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var h,f,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,w=Number.MAX_VALUE,S=-Number.MAX_VALUE;return u.forEach(function(x){x.isBubble&&!x.ignoreSeries&&(f=x.zData.filter(I)).length&&(w=M(x.options.zMin,Math.min(w,Math.max(z(f),x.options.displayNegative===!1?x.options.zThreshold:-Number.MAX_VALUE))),S=M(x.options.zMax,Math.max(S,U(f))))}),h=w===S?[{value:S}]:[{value:w},{value:(w+S)/2},{value:S,autoRanges:!0}],v.length&&v[0].radius&&h.reverse(),h.forEach(function(x,p){v&&v[p]&&(h[p]=E(v[p],x))}),h},y.prototype.predictBubbleSizes=function(){var h,f=this.chart,m=this.fontMetrics,u=f.legend.options,v=u.floating,w=u.layout==="horizontal",S=w?f.legend.lastLineHeight:0,x=f.plotSizeX,p=f.plotSizeY,g=f.series[this.options.seriesIndex],r=g.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(p,x),o=g.options.maxSize;return v||!/%$/.test(o)?h=t:(o=parseFloat(o),h=(i+S-m.h/2)*o/100/(o/100+1),(w&&p-h>=x||!w&&x-h>=p)&&(h=t)),[a,Math.ceil(h)]},y.prototype.updateRanges=function(h,f){var m=this.legend.options.bubbleLegend;m.minSize=h,m.maxSize=f,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var h=this.legend,f=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=f.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,f.maxPxSize),h.render())},y}()}),it(B,"Series/Bubble/BubbleLegendComposition.js",[B["Series/Bubble/BubbleLegendDefaults.js"],B["Series/Bubble/BubbleLegendItem.js"],B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=H.setOptions,Z=V.addEvent,U=V.objectEach,z=V.wrap,I=[];function E(m,u,v){var w,S,x,p=this,g=p.legend,r=M(p)>=0;g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&r?(w=g.bubbleLegend.options,S=g.bubbleLegend.predictBubbleSizes(),g.bubbleLegend.updateRanges(S[0],S[1]),w.placed||(g.group.placed=!1,g.allItems.forEach(function(a){(x=a.legendItem||{}).group&&(x.group.translateY=null)})),g.render(),p.getMargins(),p.axes.forEach(function(a){a.visible&&a.render(),w.placed||(a.setScale(),a.updateNames(),U(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),w.placed=!0,p.getMargins(),m.call(p,u,v),g.bubbleLegend.correctSizes(),f(g,P(g))):(m.call(p,u,v),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),f(g,P(g))))}function M(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,w,S=m.allItems,x=[],p=S.length,g=0,r=0;for(g=0;g<p;g++)if(v=S[g].legendItem||{},w=(S[g+1]||{}).legendItem||{},v.labelHeight&&(S[g].itemHeight=v.labelHeight),S[g]===S[p-1]||v.y!==w.y){for(x.push({height:0}),u=x[x.length-1];r<=g;r++)S[r].itemHeight>u.height&&(u.height=S[r].itemHeight);u.step=g}return x}function y(m){var u=this,v=u.bubbleLegend,w=u.options,S=w.bubbleLegend,x=M(u.chart);v&&v.ranges&&v.ranges.length&&(S.ranges.length&&(S.autoRanges=!!S.ranges[0].autoRanges),u.destroyItem(v)),x>=0&&w.enabled&&S.enabled&&(S.seriesIndex=x,u.bubbleLegend=new R(S,u),u.bubbleLegend.addToLegend(m.allItems))}function h(){var m,u=this,v=u.chart,w=u.visible,S=u.chart.legend;S&&S.bubbleLegend&&(u.visible=!w,u.ignoreSeries=w,m=M(v)>=0,S.bubbleLegend.visible!==m&&(S.update({bubbleLegend:{enabled:m}}),S.bubbleLegend.visible=m),u.visible=w)}function f(m,u){var v,w,S,x,p=m.allItems,g=m.options.rtl,r=0;p.forEach(function(a,t){(x=a.legendItem||{}).group&&(v=x.group.translateX||0,w=x.y||0,((S=a.movementX)||g&&a.ranges)&&(S=g?v-a.options.maxSize/2:v+S,x.group.attr({translateX:S})),t>u[r].step&&r++,x.group.attr({translateY:Math.round(w+u[r].height/2)}),x.y=w+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:W}}),z(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",h))}}}),it(B,"Series/Bubble/BubblePoint.js",[B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.scatter.prototype.pointClass,U=H.extend,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.options=void 0,M.series=void 0,M}return $(E,I),E.prototype.haloPath=function(M){return W.prototype.haloPath.call(this,M===0?0:(this.marker&&this.marker.radius||0)+M)},E}(Z);return U(z.prototype,{ttBelow:!1}),z}),it(B,"Series/Bubble/BubbleSeries.js",[B["Series/Bubble/BubbleLegendComposition.js"],B["Series/Bubble/BubblePoint.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(t,i){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},U(t,i)},function(t,i){function o(){this.constructor=t}U(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=H.parse,E=V.noop,M=$.series,P=$.seriesTypes,y=P.column.prototype,h=P.scatter,f=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,w=Z.extend,S=Z.isNumber,x=Z.merge,p=Z.pick,g=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",l=this.min,b=this.max-l,T=0,D=o,d=o/b;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var A=C[n];if(s&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),b>0){for(var N=A.length;N--;)if(S(A[N])&&i.dataMin<=A[N]&&A[N]<=i.max){var _=C.radii&&C.radii[N]||0;T=Math.min((A[N]-l)*d-_,T),D=Math.max((A[N]-l)*d+_,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,d*=(o+Math.max(0,T)-Math.min(D,o))/o,[["min","userMin",T],["max","userMax",D]].forEach(function(C){p(i.options[C[0]],i[C[1]])===void 0&&(i[C[0]]+=C[2]/d)}))}var a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return z(i,t),i.compose=function(o,e,s,n){W.compose(e,s,n),g.indexOf(o)===-1&&(g.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,l=this.zData,b=this.yData,T=[],D=this.chart.bubbleZExtremes,d=this.getPxExtremes(),C=d.minPxSize,A=d.maxPxSize;if(!D){var N,_=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(_=Math.min(_||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:_,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=l.length;e<o;e++)s=l[e],T.push(this.getRadius(D.zMin,D.zMax,C,A,s,b&&b[e]));this.radii=T},i.prototype.getRadius=function(o,e,s,n,l,b){var T=this.options,D=T.sizeBy!=="width",d=T.zThreshold,C=e-o,A=.5;if(b===null||l===null)return null;if(S(l)){if(T.sizeByAbsoluteValue&&(l=Math.abs(l-d),e=C=Math.max(e-d,Math.abs(o-d)),o=0),l<o)return s/2-1;C>0&&(A=(l-o)/C)}return D&&A>=0&&(A=Math.sqrt(A)),Math.ceil(s+A*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=M.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var l=o[n],b=e?e[n]:0;S(b)&&b>=s/2?(l.marker=w(l.marker,{radius:b,width:2*b,height:2*b}),l.dlBox={x:l.plotX-b,y:l.plotY-b,width:2*b,height:2*b}):(l.shapeArgs=l.plotY=l.dlBox=void 0,l.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var l;return typeof n=="string"&&(l=/%$/.test(n),n=parseInt(n,10)),l?o*n/100:n},s=e(p(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(p(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(S);if(e.length){var s=p(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=p(o.zMax,m(e));if(S(s)&&S(n))return{zMin:s,zMax:n}}},i.defaultOptions=x(h.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return S(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(h);return w(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:R,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),it(B,"Series/MapBubble/MapBubblePoint.js",[B["Series/Bubble/BubblePoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.map.prototype.pointClass.prototype,U=H.extend,z=function(I){function E(){return I!==null&&I.apply(this,arguments)||this}return $(E,I),E.prototype.isValid=function(){return typeof this.z=="number"},E}(W);return U(z.prototype,{applyOptions:Z.applyOptions,getProjectedBounds:Z.getProjectedBounds}),z}),it(B,"Series/MapBubble/MapBubbleSeries.js",[B["Series/Bubble/BubbleSeries.js"],B["Series/MapBubble/MapBubblePoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=H.seriesTypes,z=U.map.prototype,I=U.mappoint.prototype,E=V.extend,M=V.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.clearBounds=z.clearBounds,f}return Z(h,y),h.prototype.searchPoint=function(f,m){return this.searchKDTree({clientX:f.chartX-this.chart.plotLeft,plotY:f.chartY-this.chart.plotTop},m,f)},h.prototype.translate=function(){I.translate.call(this),this.getRadii(),this.translateBubble()},h.defaultOptions=M(W.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h}(W);return E(P.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:z.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:R,processData:z.processData,projectPoint:I.projectPoint,setData:z.setData,setOptions:z.setOptions,updateData:z.updateData,useMapGeometry:!0,xyFromShape:!0}),H.registerSeriesType("mapbubble",P),P}),it(B,"Series/Heatmap/HeatmapPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},H(M,P)},function(M,P){function y(){this.constructor=M}H(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=W.seriesTypes.scatter.prototype.pointClass,Z=R.clamp,U=R.defined,z=R.extend,I=R.pick,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y.value=void 0,y.x=void 0,y.y=void 0,y}return V(P,M),P.prototype.applyOptions=function(y,h){return(this.isNull||this.value===null)&&delete this.color,M.prototype.applyOptions.call(this,y,h),this.formatPrefix=this.isNull||this.value===null?"null":"point",this},P.prototype.getCellAttributes=function(){var y=this,h=y.series,f=h.options,m=(f.colsize||1)/2,u=(f.rowsize||1)/2,v=h.xAxis,w=h.yAxis,S=y.options.marker||h.options.marker,x=h.pointPlacementToXValue(),p=I(y.pointPadding,f.pointPadding,0),g={x1:Z(Math.round(v.len-v.translate(y.x-m,!1,!0,!1,!0,-x)),-v.len,2*v.len),x2:Z(Math.round(v.len-v.translate(y.x+m,!1,!0,!1,!0,-x)),-v.len,2*v.len),y1:Z(Math.round(w.translate(y.y-u,!1,!0,!1,!0)),-w.len,2*w.len),y2:Z(Math.round(w.translate(y.y+u,!1,!0,!1,!0)),-w.len,2*w.len)};return[["width","x"],["height","y"]].forEach(function(r){var a=r[0],t=r[1],i=t+"1",o=t+"2",e=Math.abs(g[i]-g[o]),s=S&&S.lineWidth||0,n=Math.abs(g[i]+g[o])/2,l=S&&S[a];if(U(l)&&l<e){var b=l/2+s/2;g[i]=n-b,g[o]=n+b}p&&(t==="y"&&(i=o,o=t+"1"),g[i]+=p,g[o]-=p)}),g},P.prototype.haloPath=function(y){if(!y)return[];var h=this.shapeArgs||{},f=h.x,m=f===void 0?0:f,u=h.y,v=u===void 0?0:u,w=h.width,S=w===void 0?0:w,x=h.height,p=x===void 0?0:x;return[["M",m-y,v-y],["L",m-y,v+p+y],["L",m+S+y,v+p+y],["L",m+S+y,v-y],["Z"]]},P.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},P}($);return z(E.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1}),E}),it(B,"Series/Heatmap/HeatmapSeries.js",[B["Core/Color/Color.js"],B["Series/ColorMapComposition.js"],B["Series/Heatmap/HeatmapPoint.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(x,p){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,r){g.__proto__=r}||function(g,r){for(var a in r)r.hasOwnProperty(a)&&(g[a]=r[a])},z(x,p)},function(x,p){function g(){this.constructor=x}z(x,p),x.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),E=$.series,M=$.seriesTypes,P=M.column,y=M.scatter,h=Z.prototype.symbols,f=U.extend,m=U.fireEvent,u=U.isNumber,v=U.merge,w=U.pick,S=function(x){function p(){var g=x!==null&&x.apply(this,arguments)||this;return g.colorAxis=void 0,g.data=void 0,g.options=void 0,g.points=void 0,g.valueMax=NaN,g.valueMin=NaN,g}return I(p,x),p.prototype.drawPoints=function(){var g=this;((this.options.marker||{}).enabled||this._hasPointMarkers)&&(E.prototype.drawPoints.call(this),this.points.forEach(function(r){r.graphic&&(r.graphic[g.chart.styledMode?"css":"animate"](g.colorAttribs(r)),r.value===null&&r.graphic.addClass("highcharts-null-point"))}))},p.prototype.getExtremes=function(){var g=E.prototype.getExtremes.call(this,this.valueData),r=g.dataMin,a=g.dataMax;return u(r)&&(this.valueMin=r),u(a)&&(this.valueMax=a),E.prototype.getExtremes.call(this)},p.prototype.getValidPoints=function(g,r){return E.prototype.getValidPoints.call(this,g,r,!0)},p.prototype.hasData=function(){return!!this.processedXData.length},p.prototype.init=function(){x.prototype.init.apply(this,arguments);var g=this.options;g.pointRange=w(g.pointRange,g.colsize||1),this.yAxis.axisPointRange=g.rowsize||1,h.ellipse=h.circle,g.marker&&(g.marker.r=g.borderRadius)},p.prototype.markerAttribs=function(g,r){var a=g.shapeArgs||{};if(g.hasImage)return{x:g.plotX,y:g.plotY};if(r&&r!=="normal"){var t=g.options.marker||{},i=this.options.marker||{},o=i.states&&i.states[r]||{},e=t.states&&t.states[r]||{},s=(e.width||o.width||a.width||0)+(e.widthPlus||o.widthPlus||0),n=(e.height||o.height||a.height||0)+(e.heightPlus||o.heightPlus||0);return{x:(a.x||0)+((a.width||0)-s)/2,y:(a.y||0)+((a.height||0)-n)/2,width:s,height:n}}return a},p.prototype.pointAttribs=function(g,r){var a=this,t=E.prototype.pointAttribs.call(a,g,r),i=a.options||{},o=a.chart.options.plotOptions||{},e=o.series||{},s=o.heatmap||{},n=g&&g.options.borderColor||i.borderColor||s.borderColor||e.borderColor,l=g&&g.options.borderWidth||i.borderWidth||s.borderWidth||e.borderWidth||t["stroke-width"];if(t.stroke=g&&g.marker&&g.marker.lineColor||i.marker&&i.marker.lineColor||n||this.color,t["stroke-width"]=l,r&&r!=="normal"){var b=v(i.states&&i.states[r],i.marker&&i.marker.states&&i.marker.states[r],g&&g.options.states&&g.options.states[r]||{});t.fill=b.color||W.parse(t.fill).brighten(b.brightness||0).get(),t.stroke=b.lineColor||t.stroke}return t},p.prototype.translate=function(){var g=this,r=g.options,a=r.marker&&r.marker.symbol||"rect",t=h[a]?a:"rect",i=["circle","square"].indexOf(t)!==-1;g.generatePoints(),g.points.forEach(function(o){var e=o.getCellAttributes(),s=Math.min(e.x1,e.x2),n=Math.min(e.y1,e.y2),l=Math.max(Math.abs(e.x2-e.x1),0),b=Math.max(Math.abs(e.y2-e.y1),0);if(o.hasImage=(o.marker&&o.marker.symbol||a||"").indexOf("url")===0,i){var T=Math.abs(l-b);s=Math.min(e.x1,e.x2)+(l<b?0:T/2),n=Math.min(e.y1,e.y2)+(l<b?T/2:0),l=b=Math.min(l,b)}o.hasImage&&(o.marker={width:l,height:b}),o.plotX=o.clientX=(e.x1+e.x2)/2,o.plotY=(e.y1+e.y2)/2,o.shapeType="path",o.shapeArgs=v(!0,{x:s,y:n,width:l,height:b},{d:h[t](s,n,l,b,{r:r.borderRadius})})}),m(g,"afterTranslate")},p.defaultOptions=v(y.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var g=this.series.chart.numberFormatter,r=this.point.value;return u(r)?g(r,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}}),p}(y);return f(S.prototype,{axisTypes:R.seriesMembers.axisTypes,colorKey:R.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:R.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:H,specialGroup:"group",trackerGroups:R.seriesMembers.trackerGroups,alignDataLabel:P.prototype.alignDataLabel,colorAttribs:R.seriesMembers.colorAttribs,drawLegendSymbol:V.drawRectangle,getSymbol:E.prototype.getSymbol}),R.compose(S),$.registerSeriesType("heatmap",S),S}),it(B,"masters/modules/map.src.js",[B["Core/Globals.js"],B["Core/Axis/Color/ColorAxis.js"],B["Series/MapBubble/MapBubbleSeries.js"],B["Core/Chart/MapChart.js"],B["Maps/MapView.js"],B["Maps/Projection.js"]],function(W,R,H,V,$,Z){var U=W;U.ColorAxis=R,U.MapChart=V,U.mapChart=U.Map=V.mapChart,U.MapView=$,U.maps=V.maps,U.Projection=Z,R.compose(U.Chart,U.Fx,U.Legend,U.Series),H.compose(U.Axis,U.Chart,U.Legend,U.Series)})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},6512:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Series/ColorMapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.column.prototype,$=R.addEvent,Z=R.defined;return function(U){var z=[];function I(E){var M=this;M.moveToTopOnHover&&M.graphic&&M.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}U.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},U.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var M={};return!Z(E.color)||E.state&&E.state!=="normal"||(M[this.colorProp||"fill"]=E.color),M},pointAttribs:V.pointAttribs},U.compose=function(E){var M=E.prototype.pointClass;return z.indexOf(M)===-1&&(z.push(M),$(M,"afterSetState",I)),E}}(H||(H={})),H}),it(B,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function W(R,H,V,$){this.height=R,this.width=H,this.plot=$,this.direction=V,this.startDirection=V,this.total=0,this.nW=0,this.lW=0,this.nH=0,this.lH=0,this.elArr=[],this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(Z,U){return Math.max(Z/U,U/Z)}}}return W.prototype.addElement=function(R){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+R,this.direction===0?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH)),this.elArr.push(R)},W.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},W}()}),it(B,"Series/DrawPointUtilities.js",[B["Core/Utilities.js"]],function(W){return{draw:function(R,H){var V=H.animatableAttribs,$=H.onComplete,Z=H.css,U=H.renderer,z=R.series&&R.series.chart.hasRendered?void 0:R.series&&R.series.options.animation,I=R.graphic;if(H.attribs=H.attribs||{},H.attribs.class=R.getClassName(),R.shouldDraw())I||(R.graphic=I=H.shapeType==="text"?U.text():U[H.shapeType](H.shapeArgs||{}),I.add(H.group)),Z&&I.css(Z),I.attr(H.attribs).animate(V,!H.isNew&&z,$);else if(I){var E=function(){R.graphic=I=I&&I.destroy(),typeof $=="function"&&$()};Object.keys(V).length?I.animate(V,void 0,function(){return E()}):E()}}}}),it(B,"Series/Treemap/TreemapPoint.js",[B["Series/DrawPointUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(h,f){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},V(h,f)},function(h,f){function m(){this.constructor=h}V(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),Z=R.series.prototype.pointClass,U=R.seriesTypes,z=U.pie.prototype.pointClass,I=U.scatter.prototype.pointClass,E=H.extend,M=H.isNumber,P=H.pick,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.name=void 0,m.node=void 0,m.options=void 0,m.series=void 0,m.shapeType="rect",m.value=void 0,m}return $(f,h),f.prototype.draw=function(m){W.draw(this,m)},f.prototype.getClassName=function(){var m=Z.prototype.getClassName.call(this),u=this.series,v=u.options;return this.node.level<=u.nodeMap[u.rootNode].level?m+=" highcharts-above-level":this.node.isLeaf||P(v.interactByLeaf,!v.allowTraversingTree)?this.node.isLeaf||(m+=" highcharts-internal-node"):m+=" highcharts-internal-node-interactive",m},f.prototype.isValid=function(){return!!(this.id||M(this.value))},f.prototype.setState=function(m){Z.prototype.setState.call(this,m),this.graphic&&this.graphic.attr({zIndex:m==="hover"?1:0})},f.prototype.shouldDraw=function(){return M(this.plotY)&&this.y!==null},f}(I);return E(y.prototype,{setVisible:z.prototype.setVisible}),y}),it(B,"Series/Treemap/TreemapUtilities.js",[B["Core/Utilities.js"]],function(W){var R,H=W.objectEach;return function(V){V.AXIS_MAX=100,V.isBoolean=function($){return typeof $=="boolean"},V.eachObject=function($,Z,U){U=U||this,H($,function(z,I){Z.call(U,z,I,$)})},V.recursive=function $(Z,U,z){var I;z===void 0&&(z=this),(I=U.call(z,Z))!==!1&&$(I,U,z)}}(R||(R={})),R}),it(B,"Series/TreeUtilities.js",[B["Core/Color/Color.js"],B["Core/Utilities.js"]],function(W,R){var H=R.extend,V=R.isArray,$=R.isNumber,Z=R.isObject,U=R.merge,z=R.pick;return{getColor:function(I,E){var M,P,y,h,f,m,u=E.index,v=E.mapOptionsToLevel,w=E.parentColor,S=E.parentColorIndex,x=E.series,p=E.colors,g=E.siblings,r=x.points,a=x.chart.options.chart;return I&&(M=r[I.i],P=v[I.level]||{},M&&P.colorByPoint&&(h=M.index%(p?p.length:a.colorCount),y=p&&p[h]),x.chart.styledMode||(f=z(M&&M.options.color,P&&P.color,y,w&&function(t){var i=P&&P.colorVariation;return i&&i.key==="brightness"&&u&&g?W.parse(t).brighten(i.to*(u/g)).get():t}(w),x.color)),m=z(M&&M.options.colorIndex,P&&P.colorIndex,h,S,E.colorIndex)),{color:f,colorIndex:m}},getLevelOptions:function(I){var E,M,P,y,h,f,m={};if(Z(I))for(y=$(I.from)?I.from:1,f=I.levels,M={},E=Z(I.defaults)?I.defaults:{},V(f)&&(M=f.reduce(function(u,v){var w,S,x;return Z(v)&&$(v.level)&&(x=U({},v),S=z(x.levelIsConstant,E.levelIsConstant),delete x.levelIsConstant,delete x.level,w=v.level+(S?0:y-1),Z(u[w])?U(!0,u[w],x):u[w]=x),u},{})),h=$(I.to)?I.to:1,P=0;P<=h;P++)m[P]=U({},E,Z(M[P])?M[P]:{});return m},setTreeValues:function I(E,M){var P=M.before,y=M.idRoot,h=M.mapIdToNode[y],f=M.levelIsConstant!==!1,m=M.points[E.i],u=m&&m.options||{},v=[],w=0;E.levelDynamic=E.level-(f?0:h.level),E.name=z(m&&m.name,""),E.visible=y===E.id||M.visible===!0,typeof P=="function"&&(E=P(E,M)),E.children.forEach(function(x,p){var g=H({},M);H(g,{index:p,siblings:E.children.length,visible:E.visible}),x=I(x,g),v.push(x),x.visible&&(w+=x.val)});var S=z(u.value,w);return E.visible=S>=0&&(w>0||E.visible),E.children=v,E.childrenTotal=w,E.isLeaf=E.visible&&!w,E.val=S,E},updateRootId:function(I){var E,M;return Z(I)&&(M=Z(I.options)?I.options:{},E=z(I.rootNode,M.rootId,""),Z(I.userOptions)&&(I.userOptions.rootId=E),I.rootNode=E),E}}}),it(B,"Extensions/Breadcrumbs.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/FormatUtilities.js"]],function(W,R,H,V,$){var Z=R.defaultOptions,U=$.format,z=V.addEvent,I=V.objectEach,E=V.extend,M=V.fireEvent,P=V.merge,y=V.pick,h=V.defined,f=V.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,w){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var S=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,w);this.chart=v,this.options=S||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var w=this.chart,S=this.options,x=w.options.lang,p=y(S.format,S.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=S.formatter&&S.formatter(v)||U(p,{level:v.levelOptions},w)||"";return(f(r)&&!r.length||r==="← ")&&h(g)&&(r=S.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,w=v.chart,S=v.options;!v.group&&S&&(v.group=w.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:S.zIndex}).add()),S.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,w=v.chart,S=v.list,x=v.options.buttonSpacing;this.destroyListElements();var p=v.group?v.group.getBBox().width:x,g=x,r=S[S.length-2];!w.drillUpButton&&this.level>0?w.drillUpButton=v.renderButton(r,p,g):w.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var w=this;if(w.group){var S=w.options,x=S.buttonTheme,p=S.position,g=S.relativeTo==="chart"||S.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=w.group.getBBox(),a=2*(x.padding||0)+S.buttonSpacing;p.width=r.width+a,p.height=r.height+a;var t=P(p);v&&(t.x+=v),w.options.rtl&&(t.x+=p.width),t.y=y(t.y,this.yOffset,0),w.group.align(t,!0,g)}},u.prototype.renderButton=function(v,w,S){var x=this,p=this.chart,g=x.options,r=P(g.buttonTheme),a=p.renderer.button(x.getButtonText(v),w,S,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,M(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return p.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,w){var S=this.chart,x=this.options.separator,p=S.renderer.label(x.text,v,w,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return S.styledMode||p.css(x.style),p},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,w=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(w)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var w=this.elementList;I(w,function(S,x){!v&&w[x].updated||((S=w[x]).button&&S.button.destroy(),S.separator&&S.separator.destroy(),delete S.button,delete S.separator,delete w[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,w=this,S=w.elementList,x=w.options.buttonSpacing,p=w.list,g=w.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=w.group?a(w.group,x):x,o=x;p.forEach(function(e,s){var n,l,b=s===p.length-1;S[e.level]?(n=(v=S[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=w.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),S[e.level].updated=!0):(n=w.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(l=w.renderSeparator(i,o),g&&t(l,i,o),i+=a(l,x)),S[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return H.Breadcrumbs||(H.Breadcrumbs=m,z(W,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,w=v.buttonTheme,S=(w.height||0)+2*(w.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+S,u.yOffset=S):x!=="middle"?(this.plotTop+=S,u.yOffset=-S):u.yOffset=void 0}}),z(W,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(W,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(W,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),w=u.breadcrumbs.options;v&&w.position.align==="right"&&w.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-w.buttonSpacing)}}),z(W,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),it(B,"Series/Treemap/TreemapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Series/Treemap/TreemapUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.series,$=H.addEvent,Z=H.extend,U=!1;$(V,"afterBindAxes",function(){var z,I=this,E=I.xAxis,M=I.yAxis;E&&M&&(I.is("treemap")?(z={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:R.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},Z(M.options,z),Z(E.options,z),U=!0):U&&(M.setOptions(M.userOptions),E.setOptions(E.userOptions),U=!1))})}),it(B,"Series/Treemap/TreemapNode.js",[],function(){return function(){function W(){this.childrenTotal=0,this.visible=!1}return W.prototype.init=function(R,H,V,$,Z,U,z){return this.id=R,this.i=H,this.children=V,this.height=$,this.level=Z,this.series=U,this.parent=z,this},W}()}),it(B,"Series/Treemap/TreemapSeries.js",[B["Core/Color/Color.js"],B["Series/ColorMapComposition.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Treemap/TreemapAlgorithmGroup.js"],B["Series/Treemap/TreemapPoint.js"],B["Series/Treemap/TreemapUtilities.js"],B["Series/TreeUtilities.js"],B["Extensions/Breadcrumbs.js"],B["Core/Utilities.js"],B["Series/Treemap/TreemapNode.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,P){var y,h=this&&this.__extends||(y=function(A,N){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,L){_.__proto__=L}||function(_,L){for(var O in L)L.hasOwnProperty(O)&&(_[O]=L[O])},y(A,N)},function(A,N){function _(){this.constructor=A}y(A,N),A.prototype=N===null?Object.create(N):(_.prototype=N.prototype,new _)}),f=W.parse,m=H.noop,u=$.series,v=$.seriesTypes,w=v.column,S=v.heatmap,x=v.scatter,p=I.getColor,g=I.getLevelOptions,r=I.updateRootId,a=M.addEvent,t=M.correctFloat,i=M.defined,o=M.error,e=M.extend,s=M.fireEvent,n=M.isArray,l=M.isObject,b=M.isString,T=M.merge,D=M.pick,d=M.stableSort,C=function(A){function N(){var _=A!==null&&A.apply(this,arguments)||this;return _.axisRatio=void 0,_.data=void 0,_.mapOptionsToLevel=void 0,_.nodeMap=void 0,_.nodeList=void 0,_.options=void 0,_.points=void 0,_.rootNode=void 0,_.tree=void 0,_.level=void 0,_}return h(N,A),N.prototype.algorithmCalcPoints=function(_,L,O,j){var Y,X,G,q,Q,J=O.lW,rt=O.lH,lt=O.plot,gt=0,mt=O.elArr.length-1;L?(J=O.nW,rt=O.nH):Q=O.elArr[O.elArr.length-1],O.elArr.forEach(function(bt){(L||gt<mt)&&(O.direction===0?(Y=lt.x,X=lt.y,q=bt/(G=J)):(Y=lt.x,X=lt.y,G=bt/(q=rt)),j.push({x:Y,y:X,width:G,height:t(q)}),O.direction===0?lt.y=lt.y+q:lt.x=lt.x+G),gt+=1}),O.reset(),O.direction===0?O.width=O.width-J:O.height=O.height-rt,lt.y=lt.parent.y+(lt.parent.height-O.height),lt.x=lt.parent.x+(lt.parent.width-O.width),_&&(O.direction=1-O.direction),L||O.addElement(Q)},N.prototype.algorithmFill=function(_,L,O){var j,Y,X,G,q,Q=[],J=L.direction,rt=L.x,lt=L.y,gt=L.width,mt=L.height;return O.forEach(function(bt){j=L.width*L.height*(bt.val/L.val),Y=rt,X=lt,J===0?(gt-=G=j/(q=mt),rt+=G):(mt-=q=j/(G=gt),lt+=q),Q.push({x:Y,y:X,width:G,height:q}),_&&(J=1-J)}),Q},N.prototype.algorithmLowAspectRatio=function(_,L,O){var j,Y=[],X=this,G={x:L.x,y:L.y,parent:L},q=L.direction,Q=0,J=O.length-1,rt=new Z(L.height,L.width,q,G);return O.forEach(function(lt){j=L.width*L.height*(lt.val/L.val),rt.addElement(j),rt.lP.nR>rt.lP.lR&&X.algorithmCalcPoints(_,!1,rt,Y,G),Q===J&&X.algorithmCalcPoints(_,!0,rt,Y,G),Q+=1}),Y},N.prototype.alignDataLabel=function(_,L,O){var j=O.style;j&&!i(j.textOverflow)&&L.text&&L.getBBox().width>L.text.textWidth&&L.css({textOverflow:"ellipsis",width:j.width+="px"}),w.prototype.alignDataLabel.apply(this,arguments),_.dataLabel&&_.dataLabel.attr({zIndex:(_.node.zIndex||0)+1})},N.prototype.calculateChildrenAreas=function(_,L){var O,j,Y=this,X=Y.options,G=Y.mapOptionsToLevel[_.level+1],q=D(Y[G&&G.layoutAlgorithm]&&G.layoutAlgorithm,X.layoutAlgorithm),Q=X.alternateStartingDirection;j=_.children.filter(function(J){return!J.ignore}),G&&G.layoutStartingDirection&&(L.direction=G.layoutStartingDirection==="vertical"?0:1),O=Y[q](L,j),j.forEach(function(J,rt){var lt=O[rt];J.values=T(lt,{val:J.childrenTotal,direction:Q?1-L.direction:L.direction}),J.pointValues=T(lt,{x:lt.x/Y.axisRatio,y:z.AXIS_MAX-lt.y-lt.height,width:lt.width/Y.axisRatio}),J.children.length&&Y.calculateChildrenAreas(J,J.values)})},N.prototype.createList=function(_){var L=this.chart,O=L.breadcrumbs,j=[];if(O){var Y=0;j.push({level:Y,levelOptions:L.series[0]});for(var X=_.target.nodeMap[_.newRootId],G=[];X.parent||X.parent==="";)G.push(X),X=_.target.nodeMap[X.parent];G.reverse().forEach(function(q){j.push({level:++Y,levelOptions:q})}),j.length<=1&&(j.length=0)}return j},N.prototype.drawDataLabels=function(){var _,L,O=this,j=O.mapOptionsToLevel;O.points.filter(function(Y){return Y.node.visible}).forEach(function(Y){L=j[Y.node.level],_={style:{}},Y.node.isLeaf||(_.enabled=!1),L&&L.dataLabels&&(_=T(_,L.dataLabels),O._hasPointLabels=!0),Y.shapeArgs&&(_.style.width=Y.shapeArgs.width,Y.dataLabel&&Y.dataLabel.css({width:Y.shapeArgs.width+"px"})),Y.dlOptions=T(_,Y.options.dataLabels)}),u.prototype.drawDataLabels.call(this)},N.prototype.drawPoints=function(_){_===void 0&&(_=this.points);var L=this,O=L.chart,j=O.renderer,Y=O.styledMode,X=L.options,G=Y?{}:X.shadow,q=X.borderRadius,Q=O.pointCount<X.animationLimit,J=X.allowTraversingTree;_.forEach(function(rt){var lt=rt.node.levelDynamic,gt={},mt={},bt={},yt="level-group-"+rt.node.level,ht=!!rt.graphic,et=Q&&ht,at=rt.shapeArgs;rt.shouldDraw()&&(rt.isInside=!0,q&&(mt.r=q),T(!0,et?gt:mt,ht?at:{},Y?{}:L.pointAttribs(rt,rt.selected?"select":void 0)),L.colorAttribs&&Y&&e(bt,L.colorAttribs(rt)),L[yt]||(L[yt]=j.g(yt).attr({zIndex:1e3-(lt||0)}).add(L.group),L[yt].survive=!0)),rt.draw({animatableAttribs:gt,attribs:mt,css:bt,group:L[yt],renderer:j,shadow:G,shapeArgs:at,shapeType:rt.shapeType}),J&&rt.graphic&&(rt.drillId=X.interactByLeaf?L.drillToByLeaf(rt):L.drillToByGroup(rt))})},N.prototype.drillToByGroup=function(_){var L=!1;return _.node.level-this.nodeMap[this.rootNode].level!=1||_.node.isLeaf||(L=_.id),L},N.prototype.drillToByLeaf=function(_){var L,O=this,j=!1;if(_.node.parent!==O.rootNode&&_.node.isLeaf)for(L=_.node;!j;)(L=O.nodeMap[L.parent]).parent===O.rootNode&&(j=L.id);return j},N.prototype.drillToNode=function(_,L){o(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(_,L)},N.prototype.drillUp=function(){var _=this,L=_.nodeMap[_.rootNode];L&&b(L.parent)&&_.setRootNode(L.parent,!0,{trigger:"traverseUpButton"})},N.prototype.getExtremes=function(){var _=u.prototype.getExtremes.call(this,this.colorValueData),L=_.dataMin,O=_.dataMax;return this.valueMin=L,this.valueMax=O,u.prototype.getExtremes.call(this)},N.prototype.getListOfParents=function(_,L){var O=n(_)?_:[],j=n(L)?L:[],Y=O.reduce(function(X,G,q){var Q=D(G.parent,"");return X[Q]===void 0&&(X[Q]=[]),X[Q].push(q),X},{"":[]});return z.eachObject(Y,function(X,G,q){G!==""&&j.indexOf(G)===-1&&(X.forEach(function(Q){q[""].push(Q)}),delete q[G])}),Y},N.prototype.getTree=function(){var _=this,L=this.data.map(function(j){return j.id}),O=_.getListOfParents(this.data,L);return _.nodeMap={},_.nodeList=[],_.buildTree("",-1,0,O)},N.prototype.buildTree=function(_,L,O,j,Y){var X,G,q=this,Q=[],J=q.points[L],rt=0;return(j[_]||[]).forEach(function(lt){G=q.buildTree(q.points[lt].id,lt,O+1,j,_),rt=Math.max(G.height+1,rt),Q.push(G)}),X=new q.NodeClass().init(_,L,Q,rt,O,q,Y),Q.forEach(function(lt){lt.parentNode=X}),q.nodeMap[X.id]=X,q.nodeList.push(X),J&&(J.node=X,X.point=J),X},N.prototype.hasData=function(){return!!this.processedXData.length},N.prototype.init=function(_,L){var O,j=this,Y=T(L.drillUpButton,L.breadcrumbs);O=a(j,"setOptions",function(X){var G=X.userOptions;i(G.allowDrillToNode)&&!i(G.allowTraversingTree)&&(G.allowTraversingTree=G.allowDrillToNode,delete G.allowDrillToNode),i(G.drillUpButton)&&!i(G.traverseUpButton)&&(G.traverseUpButton=G.drillUpButton,delete G.drillUpButton)}),u.prototype.init.call(j,_,L),delete j.opacity,j.eventsToUnbind.push(O),j.options.allowTraversingTree&&(j.eventsToUnbind.push(a(j,"click",j.onClickDrillToNode)),j.eventsToUnbind.push(a(j,"setRootNode",function(X){var G=j.chart;G.breadcrumbs&&G.breadcrumbs.updateProperties(j.createList(X))})),j.eventsToUnbind.push(a(j,"update",function(X,G){var q=this.chart.breadcrumbs;q&&X.options.breadcrumbs&&q.update(X.options.breadcrumbs)})),j.eventsToUnbind.push(a(j,"destroy",function(X){var G=this.chart;G.breadcrumbs&&(G.breadcrumbs.destroy(),X.keepEventsForUpdate||(G.breadcrumbs=void 0))}))),_.breadcrumbs||(_.breadcrumbs=new E(_,Y)),j.eventsToUnbind.push(a(_.breadcrumbs,"up",function(X){for(var G=this.level-X.newLevel,q=0;q<G;q++)j.drillUp()}))},N.prototype.onClickDrillToNode=function(_){var L=_.point,O=L&&L.drillId;b(O)&&(L.setState(""),this.setRootNode(O,!0,{trigger:"click"}))},N.prototype.pointAttribs=function(_,L){var O,j,Y=l(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},X=_&&Y[_.node.level]||{},G=this.options,q=L&&G.states&&G.states[L]||{},Q=_&&_.getClassName()||"";return O={stroke:_&&_.borderColor||X.borderColor||q.borderColor||G.borderColor,"stroke-width":D(_&&_.borderWidth,X.borderWidth,q.borderWidth,G.borderWidth),dashstyle:_&&_.borderDashStyle||X.borderDashStyle||q.borderDashStyle||G.borderDashStyle,fill:_&&_.color||this.color},Q.indexOf("highcharts-above-level")!==-1?(O.fill="none",O["stroke-width"]=0):Q.indexOf("highcharts-internal-node-interactive")!==-1?(j=D(q.opacity,G.opacity),O.fill=f(O.fill).setOpacity(j).get(),O.cursor="pointer"):Q.indexOf("highcharts-internal-node")!==-1?O.fill="none":L&&(O.fill=f(O.fill).brighten(q.brightness).get()),O},N.prototype.setColorRecursive=function(_,L,O,j,Y){var X,G,q=this,Q=q&&q.chart,J=Q&&Q.options&&Q.options.colors;_&&(X=p(_,{colors:J,index:j,mapOptionsToLevel:q.mapOptionsToLevel,parentColor:L,parentColorIndex:O,series:q,siblings:Y}),(G=q.points[_.i])&&(G.color=X.color,G.colorIndex=X.colorIndex),(_.children||[]).forEach(function(rt,lt){q.setColorRecursive(rt,X.color,X.colorIndex,lt,_.children.length)}))},N.prototype.setPointValues=function(){var _=this,L=_.points,O=_.xAxis,j=_.yAxis,Y=_.chart.styledMode;L.forEach(function(X){var G=X.node,q=G.pointValues,Q=G.visible;if(q&&Q){var J=q.height,rt=q.width,lt=q.x,gt=q.y,mt=function(dt){return Y?0:(_.pointAttribs(dt)["stroke-width"]||0)%2/2}(X),bt=Math.round(O.toPixels(lt,!0))-mt,yt=Math.round(O.toPixels(lt+rt,!0))-mt,ht=Math.round(j.toPixels(gt,!0))-mt,et=Math.round(j.toPixels(gt+J,!0))-mt,at={x:Math.min(bt,yt),y:Math.min(ht,et),width:Math.abs(yt-bt),height:Math.abs(et-ht)};X.plotX=at.x+at.width/2,X.plotY=at.y+at.height/2,X.shapeArgs=at}else delete X.plotX,delete X.plotY})},N.prototype.setRootNode=function(_,L,O){var j=this,Y=e({newRootId:_,previousRootId:j.rootNode,redraw:D(L,!0),series:j},O);s(j,"setRootNode",Y,function(X){var G=X.series;G.idPreviousRoot=X.previousRootId,G.rootNode=X.newRootId,G.isDirty=!0,X.redraw&&G.chart.redraw()})},N.prototype.setState=function(_){this.options.inactiveOtherPoints=!0,u.prototype.setState.call(this,_,!1),this.options.inactiveOtherPoints=!1},N.prototype.setTreeValues=function(_){var L,O=this,j=O.options,Y=O.rootNode,X=O.nodeMap[Y],G=!z.isBoolean(j.levelIsConstant)||j.levelIsConstant,q=0,Q=[],J=O.points[_.i];return _.children.forEach(function(rt){rt=O.setTreeValues(rt),Q.push(rt),rt.ignore||(q+=rt.val)}),d(Q,function(rt,lt){return(rt.sortIndex||0)-(lt.sortIndex||0)}),L=D(J&&J.options.value,q),J&&(J.value=L),e(_,{children:Q,childrenTotal:q,ignore:!(D(J&&J.visible,!0)&&L>0),isLeaf:_.visible&&!q,levelDynamic:_.level-(G?0:X.level),name:D(J&&J.name,""),sortIndex:D(J&&J.sortIndex,-L),val:L}),_},N.prototype.sliceAndDice=function(_,L){return this.algorithmFill(!0,_,L)},N.prototype.squarified=function(_,L){return this.algorithmLowAspectRatio(!0,_,L)},N.prototype.strip=function(_,L){return this.algorithmLowAspectRatio(!1,_,L)},N.prototype.stripes=function(_,L){return this.algorithmFill(!1,_,L)},N.prototype.translate=function(){var _,L,O,j,Y,X=this,G=X.options,q=r(X);u.prototype.translate.call(X),j=X.tree=X.getTree(),_=X.nodeMap[q],q===""||_&&_.children.length||(X.setRootNode("",!1),q=X.rootNode,_=X.nodeMap[q]),X.mapOptionsToLevel=g({from:_.level+1,levels:G.levels,to:j.height,defaults:{levelIsConstant:X.options.levelIsConstant,colorByPoint:G.colorByPoint}}),z.recursive(X.nodeMap[X.rootNode],function(Q){var J=!1,rt=Q.parent;return Q.visible=!0,(rt||rt==="")&&(J=X.nodeMap[rt]),J}),z.recursive(X.nodeMap[X.rootNode].children,function(Q){var J=!1;return Q.forEach(function(rt){rt.visible=!0,rt.children.length&&(J=(J||[]).concat(rt.children))}),J}),X.setTreeValues(j),X.axisRatio=X.xAxis.len/X.yAxis.len,X.nodeMap[""].pointValues=L={x:0,y:0,width:z.AXIS_MAX,height:z.AXIS_MAX},X.nodeMap[""].values=O=T(L,{width:L.width*X.axisRatio,direction:G.layoutStartingDirection==="vertical"?0:1,val:j.val}),X.calculateChildrenAreas(j,O),X.colorAxis||G.colorByPoint||X.setColorRecursive(X.tree),G.allowTraversingTree&&(Y=_.pointValues,X.xAxis.setExtremes(Y.x,Y.x+Y.width,!1),X.yAxis.setExtremes(Y.y,Y.y+Y.height,!1),X.xAxis.setScale(),X.yAxis.setScale()),X.setPointValues()},N.defaultOptions=T(x.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var _=this&&this.point?this.point:{};return b(_.name)?_.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:S?0:.1,halo:!1,opacity:.75,shadow:!1}}}),N}(x);return e(C.prototype,{buildKDTree:m,colorAttribs:R.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:V.drawRectangle,getExtremesFromAll:!0,getSymbol:m,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:U,NodeClass:P,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:z.recursive}}),R.compose(C),$.registerSeriesType("treemap",C),C}),it(B,"Series/Sunburst/SunburstPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(E,M){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var h in y)y.hasOwnProperty(h)&&(P[h]=y[h])},H(E,M)},function(E,M){function P(){this.constructor=E}H(E,M),E.prototype=M===null?Object.create(M):(P.prototype=M.prototype,new P)}),$=W.series.prototype.pointClass,Z=W.seriesTypes.treemap.prototype.pointClass,U=R.correctFloat,z=R.extend,I=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.node=void 0,P.options=void 0,P.series=void 0,P.shapeExisting=void 0,P.shapeType=void 0,P}return V(M,E),M.prototype.getDataLabelPath=function(P){var y,h=this.series.chart.renderer,f=this.shapeExisting,m=f.start,u=f.end,v=m+(u-m)/2,w=v<0&&v>-Math.PI||v>Math.PI,S=f.r+(P.options.distance||0);return m===-Math.PI/2&&U(u)===U(1.5*Math.PI)&&(m=-Math.PI+Math.PI/360,u=-Math.PI/360,w=!0),u-m>Math.PI&&(w=!1,y=!0),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=h.arc({open:!0,longArc:y?1:0}).attr({start:w?m:u,end:w?u:m,clockwise:+w,x:f.x,y:f.y,r:(S+f.innerR)/2}).add(h.defs),this.dataLabelPath},M.prototype.isValid=function(){return!0},M}(Z);return z(I.prototype,{getClassName:$.prototype.getClassName,haloPath:$.prototype.haloPath,setState:$.prototype.setState}),I}),it(B,"Series/Sunburst/SunburstUtilities.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.treemap,$=R.isNumber,Z=R.isObject,U=R.merge;return function(z){function I(E,M){var P,y=[];if($(E)&&$(M)&&E<=M)for(P=E;P<=M;P++)y.push(P);return y}z.recursive=V.prototype.utils.recursive,z.calculateLevelSizes=function(E,M){var P,y,h,f,m,u,v,w=Z(M)?M:{},S=0;return Z(E)&&(P=U({},E),u=$(w.from)?w.from:0,v=$(w.to)?w.to:0,h=I(u,v),f=Object.keys(P).filter(function(x){return h.indexOf(+x)===-1}),y=m=$(w.diffRadius)?w.diffRadius:0,h.forEach(function(x){var p=P[x],g=p.levelSize.unit,r=p.levelSize.value;g==="weight"?S+=r:g==="percentage"?(p.levelSize={unit:"pixels",value:r/100*y},m-=p.levelSize.value):g==="pixels"&&(m-=r)}),h.forEach(function(x){var p,g=P[x];g.levelSize.unit==="weight"&&(p=g.levelSize.value,P[x].levelSize={unit:"pixels",value:p/S*m})}),f.forEach(function(x){P[x].levelSize={value:0,unit:"pixels"}})),P},z.getLevelFromAndTo=function(E){var M=E.level;return{from:M>0?M:1,to:M+E.height}},z.range=I}(H||(H={})),H}),it(B,"Series/Sunburst/SunburstNode.js",[B["Series/Treemap/TreemapNode.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){return $!==null&&$.apply(this,arguments)||this}return H(Z,$),Z}(W);return V}),it(B,"Series/Sunburst/SunburstSeries.js",[B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Sunburst/SunburstPoint.js"],B["Series/Sunburst/SunburstUtilities.js"],B["Series/TreeUtilities.js"],B["Core/Utilities.js"],B["Series/Sunburst/SunburstNode.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(D,d){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,A){C.__proto__=A}||function(C,A){for(var N in A)A.hasOwnProperty(N)&&(C[N]=A[N])},I(D,d)},function(D,d){function C(){this.constructor=D}I(D,d),D.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),M=W.getCenter,P=W.getStartAndEndRadians,y=R.noop,h=H.series,f=H.seriesTypes,m=f.column,u=f.treemap,v=Z.getColor,w=Z.getLevelOptions,S=Z.setTreeValues,x=Z.updateRootId,p=U.defined,g=U.error,r=U.extend,a=U.isNumber,t=U.isObject,i=U.isString,o=U.merge,e=U.splat,s=180/Math.PI,n=function(D,d,C,A){return{x:D+Math.cos(C)*A,y:d+Math.sin(C)*A}};function l(D,d,C){var A;return D.node.isLeaf||(A=d===D.id?C[d].parent:D.id),A}function b(D,d){var C=d.mapIdToNode,A=D.parent,N=A?C[A]:void 0,_=d.series,L=_.chart,O=_.points[D.i],j=_.options.colors||L&&L.options.colors,Y=v(D,{colors:j,colorIndex:_.colorIndex,index:d.index,mapOptionsToLevel:d.mapOptionsToLevel,parentColor:N&&N.color,parentColorIndex:N&&N.colorIndex,series:d.series,siblings:d.siblings});return D.color=Y.color,D.colorIndex=Y.colorIndex,O&&(O.color=D.color,O.colorIndex=D.colorIndex,D.sliced=D.id!==d.idRoot&&O.sliced),D}var T=function(D){function d(){var C=D!==null&&D.apply(this,arguments)||this;return C.center=void 0,C.data=void 0,C.mapOptionsToLevel=void 0,C.nodeMap=void 0,C.options=void 0,C.points=void 0,C.shapeRoot=void 0,C.startAndEndRadians=void 0,C.tree=void 0,C}return E(d,D),d.prototype.alignDataLabel=function(C,A,N){if(!N.textPath||!N.textPath.enabled)return D.prototype.alignDataLabel.apply(this,arguments)},d.prototype.animate=function(C){var A,N=this.chart,_=[N.plotWidth/2,N.plotHeight/2],L=N.plotLeft,O=N.plotTop,j=this.group;C?(A={translateX:_[0]+L,translateY:_[1]+O,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},j.attr(A)):(A={translateX:L,translateY:O,scaleX:1,scaleY:1,rotation:0,opacity:1},j.animate(A,this.options.animation))},d.prototype.drawPoints=function(){var C,A=this,N=A.mapOptionsToLevel,_=A.shapeRoot,L=A.group,O=A.hasRendered,j=A.rootNode,Y=A.idPreviousRoot,X=A.nodeMap,G=X[Y],q=G&&G.shapeArgs,Q=A.points,J=A.startAndEndRadians,rt=A.chart,lt=rt&&rt.options&&rt.options.chart||{},gt=typeof lt.animation!="boolean"||lt.animation,mt=A.center,bt={x:mt[0],y:mt[1]},yt=mt[3]/2,ht=A.chart.renderer,et=!1,at=!1,dt=!!(gt&&O&&j!==Y&&A.dataLabelsGroup);dt&&(A.dataLabelsGroup.attr({opacity:0}),C=function(){var vt=A;et=!0,vt.dataLabelsGroup&&vt.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),Q.forEach(function(vt){var Ct,xt,wt=vt.node,Mt=N[wt.level],St=vt.shapeExisting||{},kt=wt.shapeArgs||{},Lt=!(!wt.visible||!wt.shapeArgs);Ct=O&&gt?function(Pt,Dt){var jt=Dt.point,Ot=Dt.radians,It=Dt.innerR,Nt=Dt.idRoot,Zt=Dt.idPreviousRoot,zt=Dt.shapeExisting,Ht=Dt.shapeRoot,Kt=Dt.shapePreviousRoot,me=Dt.visible,Ut={},te={end:Pt.end,start:Pt.start,innerR:Pt.innerR,r:Pt.r,x:Pt.x,y:Pt.y};return me?!jt.graphic&&Kt&&((Ut=Nt===jt.id?{start:Ot.start,end:Ot.end}:Kt.end<=Pt.start?{start:Ot.end,end:Ot.end}:{start:Ot.start,end:Ot.start}).innerR=Ut.r=It):jt.graphic&&(Zt===jt.id?te={innerR:It,r:It}:Ht&&(te=Ht.end<=zt.start?{innerR:It,r:It,start:Ot.end,end:Ot.end}:{innerR:It,r:It,start:Ot.start,end:Ot.start})),{from:Ut,to:te}}(kt,{center:bt,point:vt,radians:J,innerR:yt,idRoot:j,idPreviousRoot:Y,shapeExisting:St,shapeRoot:_,shapePreviousRoot:q,visible:Lt}):{to:kt,from:{}},r(vt,{shapeExisting:kt,tooltipPos:[kt.plotX,kt.plotY],drillId:l(vt,j,X),name:""+(vt.name||vt.id||vt.index),plotX:kt.plotX,plotY:kt.plotY,value:wt.val,isInside:Lt,isNull:!Lt}),vt.dlOptions=function(Pt){var Dt,jt,Ot=Pt.point,It=t(Pt.shapeArgs)?Pt.shapeArgs:{},Nt=t(Pt.optionsPoint)?Pt.optionsPoint.dataLabels:{},Zt=e(t(Pt.level)?Pt.level.dataLabels:{})[0],zt=o({style:{}},Zt,Nt),Ht=zt.rotationMode;return a(zt.rotation)||(Ht!=="auto"&&Ht!=="circular"||(Ot.innerArcLength<1&&Ot.outerArcLength>It.radius?(Dt=0,Ot.dataLabelPath&&Ht==="circular"&&(zt.textPath={enabled:!0})):Ot.innerArcLength>1&&Ot.outerArcLength>1.5*It.radius?Ht==="circular"?zt.textPath={enabled:!0,attributes:{dy:5}}:Ht="parallel":(Ot.dataLabel&&Ot.dataLabel.textPath&&Ht==="circular"&&(zt.textPath={enabled:!1}),Ht="perpendicular")),Ht!=="auto"&&Ht!=="circular"&&(Dt=It.end-(It.end-It.start)/2),Ht==="parallel"?zt.style.width=Math.min(2.5*It.radius,(Ot.outerArcLength+Ot.innerArcLength)/2):!p(zt.style.width)&&It.radius&&(zt.style.width=Ot.node.level===1?2*It.radius:It.radius),Ht==="perpendicular"&&Ot.series.chart.renderer.fontMetrics(zt.style.fontSize).h>Ot.outerArcLength&&(zt.style.width=1),zt.style.width=Math.max(zt.style.width-2*(zt.padding||0),1),jt=Dt*s%180,Ht==="parallel"&&(jt-=90),jt>90?jt-=180:jt<-90&&(jt+=180),zt.rotation=jt),zt.textPath&&(Ot.shapeExisting.innerR===0&&zt.textPath.enabled?(zt.rotation=0,zt.textPath.enabled=!1,zt.style.width=Math.max(2*Ot.shapeExisting.r-2*(zt.padding||0),1)):Ot.dlOptions&&Ot.dlOptions.textPath&&!Ot.dlOptions.textPath.enabled&&Ht==="circular"&&(zt.textPath.enabled=!0),zt.textPath.enabled&&(zt.rotation=0,zt.style.width=Math.max((Ot.outerArcLength+Ot.innerArcLength)/2-2*(zt.padding||0),1))),zt.rotation===0&&(zt.rotation=.001),zt}({point:vt,level:Mt,optionsPoint:vt.options,shapeArgs:kt}),!at&&Lt&&(at=!0,xt=C),vt.draw({animatableAttribs:Ct.to,attribs:r(Ct.from,!rt.styledMode&&A.pointAttribs(vt,vt.selected&&"select")),onComplete:xt,group:L,renderer:ht,shapeType:"arc",shapeArgs:kt})}),dt&&at?(A.hasRendered=!1,A.options.dataLabels.defer=!0,h.prototype.drawDataLabels.call(A),A.hasRendered=!0,et&&C()):h.prototype.drawDataLabels.call(A)},d.prototype.layoutAlgorithm=function(C,A,N){var _=C.start,L=C.end-_,O=C.val,j=C.x,Y=C.y,X=N&&t(N.levelSize)&&a(N.levelSize.value)?N.levelSize.value:0,G=C.r,q=G+X,Q=N&&a(N.slicedOffset)?N.slicedOffset:0;return(A||[]).reduce(function(J,rt){var lt=1/O*rt.val*L,gt=n(j,Y,_+lt/2,Q),mt={x:rt.sliced?gt.x:j,y:rt.sliced?gt.y:Y,innerR:G,r:q,radius:X,start:_,end:_+lt};return J.push(mt),_=mt.end,J},[])},d.prototype.setShapeArgs=function(C,A,N){var _,L=C.level+1,O=N[L],j=C.children.filter(function(Y){return Y.visible});_=this.layoutAlgorithm(A,j,O),j.forEach(function(Y,X){var G=_[X],q=G.start+(G.end-G.start)/2,Q=G.innerR+(G.r-G.innerR)/2,J=G.end-G.start,rt=G.innerR===0&&J>6.28?{x:G.x,y:G.y}:n(G.x,G.y,q,Q),lt=Y.val?Y.childrenTotal>Y.val?Y.childrenTotal:Y.val:Y.childrenTotal;this.points[Y.i]&&(this.points[Y.i].innerArcLength=J*G.innerR,this.points[Y.i].outerArcLength=J*G.r),Y.shapeArgs=o(G,{plotX:rt.x,plotY:rt.y+4*Math.abs(Math.cos(q))}),Y.values=o(G,{val:lt}),Y.children.length&&this.setShapeArgs(Y,Y.values,N)},this)},d.prototype.translate=function(){var C,A,N,_,L=this,O=L.options,j=L.center=L.getCenter(),Y=L.startAndEndRadians=P(O.startAngle,O.endAngle),X=j[3]/2,G=j[2]/2-X,q=x(L),Q=L.nodeMap,J=Q&&Q[q],rt={};L.shapeRoot=J&&J.shapeArgs,h.prototype.translate.call(L),N=L.tree=L.getTree(),J=(Q=L.nodeMap)[q],A=Q[i(J.parent)?J.parent:""];var lt=$.getLevelFromAndTo(J),gt=lt.from,mt=lt.to;C=w({from:gt,levels:L.options.levels,to:mt,defaults:{colorByPoint:O.colorByPoint,dataLabels:O.dataLabels,levelIsConstant:O.levelIsConstant,levelSize:O.levelSize,slicedOffset:O.slicedOffset}}),C=$.calculateLevelSizes(C,{diffRadius:G,from:gt,to:mt}),S(N,{before:b,idRoot:q,levelIsConstant:O.levelIsConstant,mapOptionsToLevel:C,mapIdToNode:Q,points:L.points,series:L}),_=Q[""].shapeArgs={end:Y.end,r:X,start:Y.start,val:J.val,x:j[0],y:j[1]},this.setShapeArgs(A,_,C),L.mapOptionsToLevel=C,L.data.forEach(function(bt){rt[bt.id]&&g(31,!1,L.chart),rt[bt.id]=!0}),rt={}},d.defaultOptions=o(u.defaultOptions,{center:["50%","50%"],colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"auto",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}),d}(u);return r(T.prototype,{drawDataLabels:y,getCenter:M,onPointSupported:!0,pointAttribs:m.prototype.pointAttribs,pointClass:V,NodeClass:z,utils:$}),H.registerSeriesType("sunburst",T),T}),it(B,"masters/modules/sunburst.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},6545:function(ot,nt,st){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(605)),ut={xAxis:{labels:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},title:{style:{color:pt.default.textColor,fontFamily:pt.default.fontFamily}},crosshair:!1},yAxis:{labels:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},title:{style:{color:pt.default.textColor,fontFamily:pt.default.fontFamily}},crosshair:!1},zAxis:{labels:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},title:{style:{color:pt.default.textColor,fontFamily:pt.default.fontFamily}}}};nt.default=ut},6660:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Core/HttpUtilities.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.doc,V=R.createElement,$=R.discardElement,Z=R.merge,U=R.objectEach,z={ajax:function(I){var E={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},M=new XMLHttpRequest;function P(y,h){I.error&&I.error(y,h)}if(!I.url)return!1;M.open((I.type||"get").toUpperCase(),I.url,!0),I.headers&&I.headers["Content-Type"]||M.setRequestHeader("Content-Type",E[I.dataType||"json"]||E.text),U(I.headers,function(y,h){M.setRequestHeader(h,y)}),I.responseType&&(M.responseType=I.responseType),M.onreadystatechange=function(){var y;if(M.readyState===4){if(M.status===200){if(I.responseType!=="blob"&&(y=M.responseText,I.dataType==="json"))try{y=JSON.parse(y)}catch(h){if(h instanceof Error)return P(M,h)}return I.success&&I.success(y,M)}P(M,M.responseText)}},I.data&&typeof I.data!="string"&&(I.data=JSON.stringify(I.data)),M.send(I.data)},getJSON:function(I,E){z.ajax({url:I,success:E,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(I,E,M){var P=V("form",Z({method:"post",action:I,enctype:"multipart/form-data"},M),{display:"none"},H.body);U(E,function(y,h){V("input",{type:"hidden",name:h,value:y},void 0,P)}),P.submit(),$(P)}};return z}),it(B,"Extensions/Data.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/HttpUtilities.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=R.getOptions,I=H.doc,E=V.ajax,M=Z.seriesTypes,P=U.addEvent,y=U.defined,h=U.extend,f=U.fireEvent,m=U.isNumber,u=U.merge,v=U.objectEach,w=U.pick,S=U.splat;function x(r){return!!(r&&(r.rowsURL||r.csvURL||r.columnsURL))}var p=function(){function r(a,t,i){t===void 0&&(t={}),this.rowsToColumns=r.rowsToColumns,this.dateFormats={"YYYY/mm/dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{1,2})$/,parser:function(o){return o?Date.UTC(+o[1],o[2]-1,+o[3]):NaN}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[2]-1,+o[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[1]-1,+o[2]):NaN}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){if(!o)return NaN;var e=new Date,s=+o[3];return s>e.getFullYear()-2e3?s+=1900:s+=2e3,Date.UTC(s,o[2]-1,+o[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){return o?Date.UTC(+o[3]+2e3,o[1]-1,+o[2]):NaN}}},this.chart=i,this.chartOptions=t,this.options=a,this.rawColumns=[],this.init(a,t,i)}return r.data=function(a,t,i){return t===void 0&&(t={}),new r(a,t,i)},r.rowsToColumns=function(a){var t,i,o,e,s;if(a)for(s=[],i=a.length,t=0;t<i;t++)for(e=a[t].length,o=0;o<e;o++)s[o]||(s[o]=[]),s[o][t]=a[t][o];return s},r.prototype.init=function(a,t,i){var o,e=a.decimalPoint;t&&(this.chartOptions=t),i&&(this.chart=i),e!=="."&&e!==","&&(e=void 0),this.options=a,this.columns=a.columns||this.rowsToColumns(a.rows)||[],this.firstRowAsNames=w(a.firstRowAsNames,this.firstRowAsNames,!0),this.decimalRegex=e&&new RegExp("^(-?[0-9]+)"+e+"([0-9]+)$"),this.liveDataTimeout!==void 0&&clearTimeout(this.liveDataTimeout),this.rawColumns=[],this.columns.length&&(this.dataFound(),o=!x(a)),o||(o=this.fetchLiveData()),o||(o=!!this.parseCSV().length),o||(o=!!this.parseTable().length),o||(o=this.parseGoogleSpreadsheet()),!o&&a.afterComplete&&a.afterComplete()},r.prototype.getColumnDistribution=function(){var a,t=this.chartOptions,i=this.options,o=[],e=function(C){return(M[C||"line"].prototype.pointArrayMap||[0]).length},s=function(C){return M[C||"line"].prototype.pointArrayMap},n=t&&t.chart&&t.chart.type,l=[],b=[],T=i&&i.seriesMapping||t&&t.series&&t.series.map(function(){return{x:0}})||[],D=0;(t&&t.series||[]).forEach(function(C){l.push(e(C.type||n))}),T.forEach(function(C){o.push(C.x||0)}),o.length===0&&o.push(0),T.forEach(function(C){var A=new g,N=l[D]||e(n),_=(t&&t.series||[])[D]||{},L=s(_.type||n),O=L||["y"];for((y(C.x)||_.isCartesian||!L)&&A.addColumnReader(C.x,"x"),v(C,function(j,Y){Y!=="x"&&A.addColumnReader(j,Y)}),a=0;a<N;a++)A.hasReader(O[a])||A.addColumnReader(void 0,O[a]);b.push(A),D++});var d=s(n);d===void 0&&(d=["y"]),this.valueCount={global:e(n),xColumns:o,individual:l,seriesBuilders:b,globalPointArrayMap:d}},r.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},r.prototype.parseCSV=function(a){var t,i,o=this,e=this.columns=[],s=a||this.options,n=s.startColumn!==void 0&&s.startColumn?s.startColumn:0,l=s.endColumn||Number.MAX_VALUE,b=[],T={",":0,";":0," ":0},D=s.csv,d=s.startRow!==void 0&&s.startRow?s.startRow:0,C=s.endRow||Number.MAX_VALUE,A=0;function N(L,O,j,Y){var X=0,G="",q="",Q="",J="",rt=0,lt=0;function gt(yt){G=L[yt],q=L[yt-1],Q=L[yt+1]}function mt(yt){b.length<lt+1&&b.push([yt]),b[lt][b[lt].length-1]!==yt&&b[lt].push(yt)}function bt(){if(n>rt||rt>l)return++rt,void(J="");!isNaN(parseFloat(J))&&isFinite(J)?(J=parseFloat(J),mt("number")):isNaN(Date.parse(J))?mt("string"):(J=J.replace(/\//g,"-"),mt("date")),e.length<lt+1&&e.push([]),e[lt][O]=J,J="",++lt,++rt}if(L.trim().length&&L.trim()[0]!=="#"){for(;X<L.length;X++)if(gt(X),G==='"')for(gt(++X);X<L.length&&(G!=='"'||q==='"'||Q==='"');)(G!=='"'||G==='"'&&q!=='"')&&(J+=G),gt(++X);else G===t?bt():J+=G;bt()}}if(D&&s.beforeParse&&(D=s.beforeParse.call(this,D)),D){i=D.replace(/\r\n/g,`
8
+ `).replace(/\r/g,`
9
+ `).split(s.lineDelimiter||`
10
+ `),(!d||d<0)&&(d=0),(!C||C>=i.length)&&(C=i.length-1),s.itemDelimiter?t=s.itemDelimiter:(t=null,t=function(L){var O,j=0,Y=0;return L.some(function(X,G){var q,Q,J,rt=!1,lt="";if(G>13)return!0;for(var gt=0;gt<X.length;gt++){if(q=X[gt],Q=X[gt+1],J=X[gt-1],q==="#")return;if(q==='"')if(rt){if(J!=='"'&&Q!=='"'){for(;Q===" "&&gt<X.length;)Q=X[++gt];T[Q]!==void 0&&T[Q]++,rt=!1}}else rt=!0;else T[q]!==void 0?(lt=lt.trim(),isNaN(Date.parse(lt))&&!isNaN(lt)&&isFinite(lt)||T[q]++,lt=""):lt+=q;q===","&&Y++,q==="."&&j++}}),O=T[";"]>T[","]?";":",",s.decimalPoint||(s.decimalPoint=j>Y?".":",",o.decimalRegex=new RegExp("^(-?[0-9]+)"+s.decimalPoint+"([0-9]+)$")),O}(i));var _=0;for(A=d;A<=C;A++)i[A][0]==="#"?_++:N(i[A],A-d-_);s.columnTypes&&s.columnTypes.length!==0||!b.length||!b[0].length||b[0][1]!=="date"||s.dateFormat||(s.dateFormat=function(L,O){var j,Y,X,G="YYYY/mm/dd",q=[],Q=[],J=[],rt=0,lt=!1;for((!O||O>L.length)&&(O=L.length);rt<O;rt++)if(L[rt]!==void 0&&L[rt]&&L[rt].length)for(j=L[rt].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" "),J=["","",""],X=0;X<j.length;X++)X<J.length&&(j[X]=parseInt(j[X],10),j[X]&&(Q[X]=!Q[X]||Q[X]<j[X]?j[X]:Q[X],q[X]!==void 0?q[X]!==j[X]&&(q[X]=!1):q[X]=j[X],j[X]>31?j[X]<100?J[X]="YY":J[X]="YYYY":j[X]>12&&j[X]<=31?(J[X]="dd",lt=!0):J[X].length||(J[X]="mm")));if(lt){for(X=0;X<q.length;X++)q[X]!==!1?Q[X]>12&&J[X]!=="YY"&&J[X]!=="YYYY"&&(J[X]="YY"):Q[X]>12&&J[X]==="mm"&&(J[X]="dd");return J.length===3&&J[1]==="dd"&&J[2]==="dd"&&(J[2]="YY"),Y=J.join("/"),(s.dateFormats||o.dateFormats)[Y]?Y:(f("deduceDateFailed"),G)}return G}(e[0])),this.dataFound()}return e},r.prototype.parseTable=function(){var a=this.options,t=this.columns||[],i=a.startRow||0,o=a.endRow||Number.MAX_VALUE,e=a.startColumn||0,s=a.endColumn||Number.MAX_VALUE;if(a.table){var n=a.table;typeof n=="string"&&(n=I.getElementById(n)),[].forEach.call(n.getElementsByTagName("tr"),function(l,b){b>=i&&b<=o&&[].forEach.call(l.children,function(T,D){var d=t[D-e],C=1;if((T.tagName==="TD"||T.tagName==="TH")&&D>=e&&D<=s)for(t[D-e]||(t[D-e]=[]),t[D-e][b-i]=T.innerHTML;b-i>=C&&d[b-i-C]===void 0;)d[b-i-C]=null,C++})}),this.dataFound()}return t},r.prototype.fetchLiveData=function(){var a=this,t=this.chart,i=this.options,o=i.enablePolling,e=u(i),s=0,n=1e3*(i.dataRefreshRate||2);return!!x(i)&&(n<1e3&&(n=1e3),delete i.csvURL,delete i.rowsURL,delete i.columnsURL,function l(b){function T(D,d,C){if(!D||!/^(http|\/|\.\/|\.\.\/)/.test(D))return D&&i.error&&i.error("Invalid URL"),!1;function A(){o&&t.liveDataURL===D&&(a.liveDataTimeout=setTimeout(l,n))}return b&&(clearTimeout(a.liveDataTimeout),t.liveDataURL=D),E({url:D,dataType:C||"json",success:function(N){t&&t.series&&d(N),A()},error:function(N,_){return++s<3&&A(),i.error&&i.error(_,N)}}),!0}T(e.csvURL,function(D){t.update({data:{csv:D}})},"text")||T(e.rowsURL,function(D){t.update({data:{rows:D}})})||T(e.columnsURL,function(D){t.update({data:{columns:D}})})}(!0),x(i))},r.prototype.parseGoogleSpreadsheet=function(){var a=this,t=this.options,i=t.googleSpreadsheetKey,o=this.chart,e=Math.max(1e3*(t.dataRefreshRate||2),4e3),s=function(){if(t.googleSpreadsheetRange)return t.googleSpreadsheetRange;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZ",l=(n.charAt(t.startColumn||0)||"A")+((t.startRow||0)+1),b=n.charAt(w(t.endColumn,-1))||"ZZ";return y(t.endRow)&&(b+=t.endRow+1),""+l+":".concat(b)};return i&&(delete t.googleSpreadsheetKey,function n(l){var b=["https://sheets.googleapis.com/v4/spreadsheets",i,"values",s(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+t.googleAPIKey].join("/");E({url:b,dataType:"json",success:function(T){l(T),t.enablePolling&&(a.liveDataTimeout=setTimeout(function(){n(l)},e))},error:function(T,D){return t.error&&t.error(D,T)}})}(function(n){var l=n.values;if(!l||l.length===0)return!1;var b=l.reduce(function(T,D){return Math.max(T,D.length)},0);l.forEach(function(T){for(var D=0;D<b;D++)T[D]===void 0&&(T[D]=null)}),o&&o.series?o.update({data:{columns:l}}):(a.columns=l,a.dataFound())})),!1},r.prototype.trim=function(a,t){return typeof a=="string"&&(a=a.replace(/^\s+|\s+$/g,""),t&&/^[0-9\s]+$/.test(a)&&(a=a.replace(/\s/g,"")),this.decimalRegex&&(a=a.replace(this.decimalRegex,"$1.$2"))),a},r.prototype.parseTypes=function(){for(var a=this.columns||[],t=a.length;t--;)this.parseColumn(a[t],t)},r.prototype.parseColumn=function(a,t){var i,o,e,s,n,l,b,T=this.rawColumns,D=this.columns,d=this.firstRowAsNames,C=this.valueCount.xColumns.indexOf(t)!==-1,A=[],N=this.chartOptions,_=(this.options.columnTypes||[])[t],L=C&&(N&&N.xAxis&&S(N.xAxis)[0].type==="category"||_==="string"),O=y(a.name),j=a.length;for(T[t]||(T[t]=[]);j--;)i=A[j]||a[j],e=this.trim(i),s=this.trim(i,!0),o=parseFloat(s),T[t][j]===void 0&&(T[t][j]=e),L||j===0&&d&&!O?a[j]=""+e:+s===o?(a[j]=o,o>31536e6&&_!=="float"?a.isDatetime=!0:a.isNumeric=!0,a[j+1]!==void 0&&(b=o>a[j+1])):(e&&e.length&&(n=this.parseDate(i)),C&&m(n)&&_!=="float"?(A[j]=i,a[j]=n,a.isDatetime=!0,a[j+1]!==void 0&&((l=n>a[j+1])!==b&&b!==void 0&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,j=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),b=l)):(a[j]=e===""?null:e,j!==0&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));if(C&&a.mixed&&(D[t]=T[t]),C&&b&&this.options.sort)for(t=0;t<D.length;t++)D[t].reverse(),d&&D[t].unshift(D[t].pop())},r.prototype.parseDate=function(a){var t,i,o,e,s=this.options.parseDate,n=this.options.dateFormat||this.dateFormat;if(s)t=s(a);else if(typeof a=="string"){if(n)(o=this.dateFormats[n])||(o=this.dateFormats["YYYY/mm/dd"]),(e=a.match(o.regex))&&(t=o.parser(e));else for(i in this.dateFormats)if(o=this.dateFormats[i],e=a.match(o.regex)){this.dateFormat=n=i,this.alternativeFormat=o.alternative,t=o.parser(e);break}e||(a.match(/:.+(GMT|UTC|[Z+-])/)&&(a=a.replace(/\s*(?:GMT|UTC)?([+-])(\d\d)(\d\d)$/,"$1$2:$3").replace(/(?:\s+|GMT|UTC)([+-])/,"$1").replace(/(\d)\s*(?:GMT|UTC|Z)$/,"$1+00:00")),typeof(e=Date.parse(a))=="object"&&e!==null&&e.getTime?t=e.getTime()-6e4*e.getTimezoneOffset():m(e)&&(t=e-6e4*new Date(e).getTimezoneOffset()))}return t},r.prototype.getData=function(){if(this.columns)return this.rowsToColumns(this.columns).slice(1)},r.prototype.parsed=function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},r.prototype.complete=function(){var a,t,i,o,e,s,n,l,b,T,D,d,C=this.columns,A=this.options,N=[];if(A.complete||A.afterComplete){if(this.firstRowAsNames)for(o=0;o<C.length;o++){var _=C[o];y(_.name)||(_.name=w(_.shift(),"").toString())}for(t=[],T=function(L,O){var j,Y,X,G=[],q=[];for(Y=0;Y<L;Y+=1)G.push(!0);for(j=0;j<O.length;j+=1)for(X=O[j].getReferencedColumnIndexes(),Y=0;Y<X.length;Y+=1)G[X[Y]]=!1;for(Y=0;Y<G.length;Y+=1)G[Y]&&q.push(Y);return q}(C.length,this.valueCount.seriesBuilders),n=0;n<this.valueCount.seriesBuilders.length;n++)(b=this.valueCount.seriesBuilders[n]).populateColumns(T)&&N.push(b);for(;T.length>0;){for((b=new g).addColumnReader(0,"x"),(d=T.indexOf(0))!==-1&&T.splice(d,1),o=0;o<this.valueCount.global;o++)b.addColumnReader(void 0,this.valueCount.globalPointArrayMap[o]);b.populateColumns(T)&&N.push(b)}if(N.length>0&&N[0].readers.length>0&&(D=C[N[0].readers[0].columnIndex])!==void 0&&(D.isDatetime?a="datetime":D.isNumeric||(a="category")),a==="category")for(n=0;n<N.length;n++)for(b=N[n],s=0;s<b.readers.length;s++)b.readers[s].configName==="x"&&(b.readers[s].configName="name");for(n=0;n<N.length;n++){for(b=N[n],i=[],e=0;e<C[0].length;e++)i[e]=b.read(C,e);t[n]={data:i},b.name&&(t[n].name=b.name),a==="category"&&(t[n].turboThreshold=0)}l={series:t},a&&(l.xAxis={type:a},a==="category"&&(l.xAxis.uniqueNames=!1)),A.complete&&A.complete(l),A.afterComplete&&A.afterComplete(l)}},r.prototype.update=function(a,t){var i=this.chart,o=i.options;a&&(a.afterComplete=function(e){e&&(e.xAxis&&i.xAxis[0]&&e.xAxis.type===i.xAxis[0].options.type&&delete e.xAxis,i.update(e,t,!0))},u(!0,o.data,a),o.data&&o.data.googleSpreadsheetKey&&!a.columns&&delete o.data.columns,this.init(o.data))},r}();P(W,"init",function(r){var a=this,t=r.args[1],i=z().data,o=r.args[0]||{};if((i||o&&o.data)&&!a.hasDataDef){a.hasDataDef=!0;var e=u(i,o.data);a.data=new p(h(e,{afterComplete:function(s){var n,l;if(Object.hasOwnProperty.call(o,"series"))if(typeof o.series=="object")for(n=Math.max(o.series.length,s&&s.series?s.series.length:0);n--;)l=o.series[n]||{},o.series[n]=u(l,s&&s.series?s.series[n]:{});else delete o.series;o=u(s,o),a.init(o,t)}}),o,a),r.preventDefault()}});var g=function(){function r(){this.readers=[],this.pointIsArray=!0}return r.prototype.populateColumns=function(a){var t=!0;return this.readers.forEach(function(i){i.columnIndex===void 0&&(i.columnIndex=a.shift())}),this.readers.forEach(function(i){i.columnIndex===void 0&&(t=!1)}),t},r.prototype.read=function(a,t){var i,o=this,e=o.pointIsArray,s=e?[]:{};return o.readers.forEach(function(n){var l=a[n.columnIndex][t];e?s.push(l):n.configName.indexOf(".")>0?$.prototype.setNestedProperty(s,l,n.configName):s[n.configName]=l}),this.name===void 0&&o.readers.length>=2&&(i=o.getReferencedColumnIndexes()).length>=2&&(i.shift(),i.sort(function(n,l){return n-l}),this.name=a[i.shift()].name),s},r.prototype.addColumnReader=function(a,t){this.readers.push({columnIndex:a,configName:t}),t!=="x"&&t!=="y"&&t!==void 0&&(this.pointIsArray=!1)},r.prototype.getReferencedColumnIndexes=function(){var a,t,i=[];for(a=0;a<this.readers.length;a+=1)(t=this.readers[a]).columnIndex!==void 0&&i.push(t.columnIndex);return i},r.prototype.hasReader=function(a){var t;for(t=0;t<this.readers.length;t+=1)if(this.readers[t].configName===a)return!0},r}();return p}),it(B,"masters/modules/data.src.js",[B["Core/Globals.js"],B["Core/HttpUtilities.js"],B["Extensions/Data.js"]],function(W,R,H){var V=W;V.ajax=R.ajax,V.data=H.data,V.getJSON=R.getJSON,V.post=R.post,V.Data=H,V.HttpUtilities=R})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},6713:(ot,nt,st)=>{st.d(nt,{A:()=>ct});const ct=typeof Fi=="object"&&Fi&&Fi.Object===Object&&Fi},6725:(ot,nt,st)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function it(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}it(B,"Extensions/Pane.js",[B["Core/Chart/Chart.js"],B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=$.addEvent,U=$.correctFloat,z=$.defined,I=$.extend,E=$.merge,M=$.pick,P=$.splat;W.prototype.collectionsWithUpdate.push("pane");var y=function(){function f(m,u){this.background=void 0,this.center=void 0,this.chart=void 0,this.options=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(m,u)}return f.prototype.init=function(m,u){this.chart=u,this.background=[],u.pane.push(this),this.setOptions(m)},f.prototype.setOptions=function(m){this.options=m=E(this.defaultOptions,this.chart.angular?{background:{}}:void 0,m)},f.prototype.render=function(){var m,u,v=this.options,w=this.options.background,S=this.chart.renderer;if(this.group||(this.group=S.g("pane-group").attr({zIndex:v.zIndex||0}).add()),this.updateCenter(),w)for(w=P(w),m=Math.max(w.length,this.background.length||0),u=0;u<m;u++)w[u]&&this.axis?this.renderBackground(E(this.defaultBackgroundOptions,w[u]),u):this.background[u]&&(this.background[u]=this.background[u].destroy(),this.background.splice(u,1))},f.prototype.renderBackground=function(m,u){var v="animate",w={class:"highcharts-pane "+(m.className||"")};this.chart.styledMode||I(w,{fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth}),this.background[u]||(this.background[u]=this.chart.renderer.path().add(this.group),v="attr"),this.background[u][v]({d:this.axis.getPlotBandPath(m.from,m.to,m)}).attr(w)},f.prototype.updateCenter=function(m){this.center=(m||this.axis||{}).center=R.getCenter.call(this)},f.prototype.update=function(m,u){E(!0,this.options,m),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(v){v.pane===this&&(v.pane=null,v.update({},u))},this)},f}();function h(f,m,u,v,w){var S=!0,x=u[0],p=u[1],g=Math.sqrt(Math.pow(f-x,2)+Math.pow(m-p,2));if(z(v)&&z(w)){var r=Math.atan2(U(m-p,8),U(f-x,8));w!==v&&(S=v>w?r>=v&&r<=Math.PI||r<=w&&r>=-Math.PI:r>=v&&r<=U(w,8))}return g<=Math.ceil(u[2]/2)&&S}return W.prototype.getHoverPane=function(f){var m,u=this;return f&&u.pane.forEach(function(v){h(f.chartX-u.plotLeft,f.chartY-u.plotTop,v.center)&&(m=v)}),m},Z(W,"afterIsInsidePlot",function(f){var m;this.polar&&(f.options.inverted&&(m=[f.y,f.x],f.x=m[0],f.y=m[1]),f.isInsidePlot=this.pane.some(function(u){return h(f.x,f.y,u.center,u.axis&&u.axis.normalizedStartAngleRad,u.axis&&u.axis.normalizedEndAngleRad)}))}),Z(V,"beforeGetHoverData",function(f){var m=this.chart;m.polar?(m.hoverPane=m.getHoverPane(f),f.filter=function(u){return u.visible&&!(!f.shared&&u.directTouch)&&M(u.options.enableMouseTracking,!0)&&(!m.hoverPane||u.xAxis.pane===m.hoverPane)}):m.hoverPane=void 0}),Z(V,"afterGetHoverData",function(f){var m=this.chart;f.hoverPoint&&f.hoverPoint.plotX&&f.hoverPoint.plotY&&m.hoverPane&&!h(f.hoverPoint.plotX,f.hoverPoint.plotY,m.hoverPane.center)&&(f.hoverPoint=void 0)}),H.Pane=y,H.Pane}),it(B,"Series/AreaRange/AreaRangePoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},H(M,P)},function(M,P){function y(){this.constructor=M}H(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=W.seriesTypes.area.prototype,Z=$.pointClass,U=$.pointClass.prototype,z=R.defined,I=R.isNumber,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.high=void 0,y.low=void 0,y.options=void 0,y.plotX=void 0,y.series=void 0,y}return V(P,M),P.prototype.setState=function(){var y=this.state,h=this.series,f=h.chart.polar;z(this.plotHigh)||(this.plotHigh=h.yAxis.toPixels(this.high,!0)),z(this.plotLow)||(this.plotLow=this.plotY=h.yAxis.toPixels(this.low,!0)),h.stateMarkerGraphic&&(h.lowerStateMarkerGraphic=h.stateMarkerGraphic,h.stateMarkerGraphic=h.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,f&&I(this.plotHighX)&&(this.plotX=this.plotHighX),U.setState.apply(this,arguments),this.state=y,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],f&&I(this.plotLowX)&&(this.plotX=this.plotLowX),h.stateMarkerGraphic&&(h.upperStateMarkerGraphic=h.stateMarkerGraphic,h.stateMarkerGraphic=h.lowerStateMarkerGraphic,h.lowerStateMarkerGraphic=void 0),U.setState.apply(this,arguments)},P.prototype.haloPath=function(){var y=this.series.chart.polar,h=[];return this.plotY=this.plotLow,y&&I(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(h=U.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,y&&I(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(h=h.concat(U.haloPath.apply(this,arguments))),h},P.prototype.isValid=function(){return I(this.low)&&I(this.high)},P}(Z);return E}),it(B,"Series/AreaRange/AreaRangeSeries.js",[B["Series/AreaRange/AreaRangePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(x,p){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,r){g.__proto__=r}||function(g,r){for(var a in r)r.hasOwnProperty(a)&&(g[a]=r[a])},$(x,p)},function(x,p){function g(){this.constructor=x}$(x,p),x.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),U=R.noop,z=H.seriesTypes,I=z.area,E=z.area.prototype,M=z.column.prototype,P=V.addEvent,y=V.defined,h=V.extend,f=V.isArray,m=V.isNumber,u=V.pick,v=V.merge,w={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}},S=function(x){function p(){var g=x!==null&&x.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g.lowerStateMarkerGraphic=void 0,g.xAxis=void 0,g}return Z(p,x),p.prototype.toYData=function(g){return[g.low,g.high]},p.prototype.highToXY=function(g){var r=this.chart,a=this.xAxis.postTranslate(g.rectPlotX||0,this.yAxis.len-(g.plotHigh||0));g.plotHighX=a.x-r.plotLeft,g.plotHigh=a.y-r.plotTop,g.plotLowX=g.plotX},p.prototype.getGraphPath=function(g){var r,a,t,i=[],o=[],e=E.getGraphPath,s=this.options,n=this.chart.polar,l=n&&s.connectEnds!==!1,b=s.connectNulls,T=s.step;for(r=(g=g||this.points).length;r--;){a=g[r];var D=n?{plotX:a.rectPlotX,plotY:a.yBottom,doCurve:!1}:{plotX:a.plotX,plotY:a.plotY,doCurve:!1};a.isNull||l||b||g[r+1]&&!g[r+1].isNull||o.push(D),t={polarPlotY:a.polarPlotY,rectPlotX:a.rectPlotX,yBottom:a.yBottom,plotX:u(a.plotHighX,a.plotX),plotY:a.plotHigh,isNull:a.isNull},o.push(t),i.push(t),a.isNull||l||b||g[r-1]&&!g[r-1].isNull||o.push(D)}var d=e.call(this,g);T&&(T===!0&&(T="left"),s.step={left:"right",center:"center",right:"left"}[T]);var C=e.call(this,i),A=e.call(this,o);s.step=T;var N=[].concat(d,C);return!this.chart.polar&&A[0]&&A[0][0]==="M"&&(A[0]=["L",A[0][1],A[0][2]]),this.graphPath=N,this.areaPath=d.concat(A),N.isArea=!0,N.xMap=d.xMap,this.areaPath.xMap=d.xMap,N},p.prototype.drawDataLabels=function(){var g,r,a,t,i,o=this.points,e=o.length,s=[],n=this.options.dataLabels,l=this.chart.inverted;if(n){if(f(n)?(t=n[0]||{enabled:!1},i=n[1]||{enabled:!1}):((t=h({},n)).x=n.xHigh,t.y=n.yHigh,(i=h({},n)).x=n.xLow,i.y=n.yLow),t.enabled||this._hasPointLabels){for(g=e;g--;)if(r=o[g]){var b=r.plotHigh,T=b===void 0?0:b,D=r.plotLow,d=D===void 0?0:D;a=t.inside?T<d:T>d,r.y=r.high,r._plotY=r.plotY,r.plotY=T,s[g]=r.dataLabel,r.dataLabel=r.dataLabelUpper,r.below=a,l?t.align||(t.align=a?"right":"left"):t.verticalAlign||(t.verticalAlign=a?"top":"bottom")}for(this.options.dataLabels=t,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments),g=e;g--;)(r=o[g])&&(r.dataLabelUpper=r.dataLabel,r.dataLabel=s[g],delete r.dataLabels,r.y=r.low,r.plotY=r._plotY)}if(i.enabled||this._hasPointLabels){for(g=e;g--;)if(r=o[g]){var C=r.plotHigh,A=(T=C===void 0?0:C,r.plotLow);d=A===void 0?0:A,a=i.inside?T<d:T>d,r.below=!a,l?i.align||(i.align=a?"left":"right"):i.verticalAlign||(i.verticalAlign=a?"bottom":"top")}this.options.dataLabels=i,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments)}if(t.enabled)for(g=e;g--;)(r=o[g])&&(r.dataLabels=[r.dataLabelUpper,r.dataLabel].filter(function(N){return!!N}));this.options.dataLabels=n}},p.prototype.alignDataLabel=function(){M.alignDataLabel.apply(this,arguments)},p.prototype.drawPoints=function(){var g,r,a=this,t=a.points.length;for(E.drawPoints.apply(a,arguments),g=0;g<t;)(r=a.points[g]).graphics=r.graphics||[],r.origProps={plotY:r.plotY,plotX:r.plotX,isInside:r.isInside,negative:r.negative,zone:r.zone,y:r.y},(r.graphic||r.graphics[0])&&(r.graphics[0]=r.graphic),r.graphic=r.graphics[1],r.plotY=r.plotHigh,y(r.plotHighX)&&(r.plotX=r.plotHighX),r.y=u(r.high,r.origProps.y),r.negative=r.y<(a.options.threshold||0),a.zones.length&&(r.zone=r.getZone()),a.chart.polar||(r.isInside=r.isTopInside=r.plotY!==void 0&&r.plotY>=0&&r.plotY<=a.yAxis.len&&r.plotX>=0&&r.plotX<=a.xAxis.len),g++;for(E.drawPoints.apply(a,arguments),g=0;g<t;)(r=a.points[g]).graphics=r.graphics||[],(r.graphic||r.graphics[1])&&(r.graphics[1]=r.graphic),r.graphic=r.graphics[0],r.origProps&&(h(r,r.origProps),delete r.origProps),g++},p.defaultOptions=v(I.defaultOptions,w),p}(I);return P(S,"afterTranslate",function(){var x=this;this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(function(p){var g=p.high,r=p.plotY;p.isNull?p.plotY=void 0:(p.plotLow=r,p.plotHigh=m(g)?x.yAxis.translate(x.dataModify?x.dataModify.modifyValue(g):g,!1,!0,void 0,!0):void 0,x.dataModify&&(p.yBottom=p.plotHigh))})},{order:0}),P(S,"afterTranslate",function(){var x=this;this.points.forEach(function(p){if(x.chart.polar)x.highToXY(p),p.plotLow=p.plotY,p.tooltipPos=[((p.plotHighX||0)+(p.plotLowX||0))/2,((p.plotHigh||0)+(p.plotLow||0))/2];else{var g=p.pos(!1,p.plotLow),r=p.pos(!1,p.plotHigh);g&&r&&(g[0]=(g[0]+r[0])/2,g[1]=(g[1]+r[1])/2),p.tooltipPos=g}})},{order:3}),h(S.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:W,pointValKey:"low",setStackedPoints:U}),H.registerSeriesType("arearange",S),S}),it(B,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[B["Series/AreaRange/AreaRangeSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(E,M){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var h in y)y.hasOwnProperty(h)&&(P[h]=y[h])},V(E,M)},function(E,M){function P(){this.constructor=E}V(E,M),E.prototype=M===null?Object.create(M):(P.prototype=M.prototype,new P)}),Z=R.seriesTypes.spline.prototype,U=H.merge,z=H.extend,I=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.options=void 0,P.data=void 0,P.points=void 0,P}return $(M,E),M.defaultOptions=U(W.defaultOptions),M}(W);return z(I.prototype,{getPointSpline:Z.getPointSpline}),R.registerSeriesType("areasplinerange",I),I}),it(B,"Series/BoxPlot/BoxPlotSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},$(P,y)},function(P,y){function h(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),U=R.noop,z=V.extend,I=V.merge,E=V.pick,M=function(P){function y(){var h=P!==null&&P.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return Z(y,P),y.prototype.pointAttribs=function(){return{}},y.prototype.translate=function(){var h=this,f=h.yAxis,m=h.pointArrayMap;P.prototype.translate.apply(h),h.points.forEach(function(u){m.forEach(function(v){u[v]!==null&&(u[v+"Plot"]=f.translate(u[v],0,1,0,1))}),u.plotHigh=u.highPlot})},y.prototype.drawPoints=function(){var h,f,m,u,v,w,S,x,p,g,r,a=this,t=a.points,i=a.options,o=a.chart,e=o.renderer,s=0,n=a.doQuartiles!==!1,l=a.options.whiskerLength;t.forEach(function(b){var T=b.graphic,D=T?"animate":"attr",d=b.shapeArgs,C={},A={},N={},_={},L=b.color||a.color;if(b.plotY!==void 0){S=Math.round(d.width),x=Math.floor(d.x),p=x+S,g=Math.round(S/2),h=Math.floor(n?b.q1Plot:b.lowPlot),f=Math.floor(n?b.q3Plot:b.lowPlot),m=Math.floor(b.highPlot),u=Math.floor(b.lowPlot),T||(b.graphic=T=e.g("point").add(a.group),b.stem=e.path().addClass("highcharts-boxplot-stem").add(T),l&&(b.whiskers=e.path().addClass("highcharts-boxplot-whisker").add(T)),n&&(b.box=e.path(void 0).addClass("highcharts-boxplot-box").add(T)),b.medianShape=e.path(void 0).addClass("highcharts-boxplot-median").add(T)),o.styledMode||(A.stroke=b.stemColor||i.stemColor||L,A["stroke-width"]=E(b.stemWidth,i.stemWidth,i.lineWidth),A.dashstyle=b.stemDashStyle||i.stemDashStyle||i.dashStyle,b.stem.attr(A),l&&(N.stroke=b.whiskerColor||i.whiskerColor||L,N["stroke-width"]=E(b.whiskerWidth,i.whiskerWidth,i.lineWidth),N.dashstyle=b.whiskerDashStyle||i.whiskerDashStyle||i.dashStyle,b.whiskers.attr(N)),n&&(C.fill=b.fillColor||i.fillColor||L,C.stroke=i.lineColor||L,C["stroke-width"]=i.lineWidth||0,C.dashstyle=b.boxDashStyle||i.boxDashStyle||i.dashStyle,b.box.attr(C)),_.stroke=b.medianColor||i.medianColor||L,_["stroke-width"]=E(b.medianWidth,i.medianWidth,i.lineWidth),_.dashstyle=b.medianDashStyle||i.medianDashStyle||i.dashStyle,b.medianShape.attr(_));var O=void 0;w=b.stem.strokeWidth()%2/2,O=[["M",s=x+g+w,f],["L",s,m],["M",s,h],["L",s,u]],b.stem[D]({d:O}),n&&(w=b.box.strokeWidth()%2/2,h=Math.floor(h)+w,f=Math.floor(f)+w,O=[["M",x+=w,f],["L",x,h],["L",p+=w,h],["L",p,f],["L",x,f],["Z"]],b.box[D]({d:O})),l&&(w=b.whiskers.strokeWidth()%2/2,m+=w,u+=w,r=/%$/.test(l)?g*parseFloat(l)/100:l/2,O=[["M",s-r,m],["L",s+r,m],["M",s-r,u],["L",s+r,u]],b.whiskers[D]({d:O})),v=Math.round(b.medianPlot),w=b.medianShape.strokeWidth()%2/2,O=[["M",x,v+=w],["L",p,v]],b.medianShape[D]({d:O})}})},y.prototype.toYData=function(h){return[h.low,h.q1,h.median,h.q3,h.high]},y.defaultOptions=I(W.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),y}(W);return z(M.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:U,setStackedPoints:U}),H.registerSeriesType("boxplot",M),M}),it(B,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),it(B,"Series/Bubble/BubbleLegendItem.js",[B["Core/Color/Color.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=H.noop,U=V.arrayMax,z=V.arrayMin,I=V.isNumber,E=V.merge,M=V.pick,P=V.stableSort;return function(){function y(h,f){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(h,f)}return y.prototype.init=function(h,f){this.options=h,this.visible=!0,this.chart=f.chart,this.legend=f},y.prototype.addToLegend=function(h){h.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(h){var f,m=this.chart,u=M(h.options.itemDistance,20),v=this.legendItem||{},w=this.options,S=w.ranges,x=w.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(w.labels.style.fontSize),S&&S.length&&I(S[0].value)){P(S,function(a,t){return t.value-a.value}),this.ranges=S,this.setOptions(),this.render();var p=this.getMaxLabelSize(),g=this.ranges[0].radius,r=2*g;f=(f=x-g+p.width)>0?f:0,this.maxLabel=p,this.movementX=w.labels.align==="left"?f:0,v.labelWidth=r+f+u,v.labelHeight=r+this.fontMetrics.h/2}else h.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var h=this.ranges,f=this.options,m=this.chart.series[f.seriesIndex],u=this.legend.baseline,v={zIndex:f.zIndex,"stroke-width":f.borderWidth},w={zIndex:f.zIndex,"stroke-width":f.connectorWidth},S={align:this.legend.options.rtl||f.labels.align==="left"?"right":"left",zIndex:f.zIndex},x=m.options.marker.fillOpacity,p=this.chart.styledMode;h.forEach(function(g,r){p||(v.stroke=M(g.borderColor,f.borderColor,m.color),v.fill=M(g.color,f.color,x!==1?$(m.color).setOpacity(x).get("rgba"):m.color),w.stroke=M(g.connectorColor,f.connectorColor,m.color)),h[r].radius=this.getRangeRadius(g.value),h[r]=E(h[r],{center:h[0].radius-h[r].radius+u}),p||E(!0,h[r],{bubbleAttribs:E(v),connectorAttribs:E(w),labelAttribs:S})},this)},y.prototype.getRangeRadius=function(h){var f=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=f.ranges[0].value,w=f.ranges[f.ranges.length-1].value,S=f.minSize,x=f.maxSize;return u.getRadius.call(this,w,v,S,x,h)},y.prototype.render=function(){var h=this.legendItem||{},f=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),h.symbol=f.g("bubble-legend"),h.label=f.g("bubble-legend-item"),h.symbol.translateX=0,h.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var w=v[u];w.value>=m&&this.renderRange(w)}h.symbol.add(h.label),h.label.add(h.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(h){var f=this.ranges[0],m=this.legend,u=this.options,v=u.labels,w=this.chart,S=w.series[u.seriesIndex],x=w.renderer,p=this.symbols,g=p.labels,r=h.center,a=Math.abs(h.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,s=u.connectorWidth,n=f.radius||0,l=r-a-e/2+s/2,b=this.fontMetrics,T=b.f/2-(b.h-b.f)/2,D=(l%1?1:.5)-(s%2?0:.5),d=x.styledMode,C=o||i==="left"?-t:t;i==="center"&&(C=0,u.connectorDistance=0,h.labelAttribs.align="center");var A=l+u.labels.y,N=n+C+u.labels.x;p.bubbleItems.push(x.circle(n,r+D,a).attr(d?{}:h.bubbleAttribs).addClass((d?"highcharts-color-"+S.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),p.connectors.push(x.path(x.crispLine([["M",n,l],["L",n+C,l]],u.connectorWidth)).attr(d?{}:h.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var _=x.text(this.formatLabel(h),N,A+T).attr(d?{}:h.labelAttribs).css(d?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);g.push(_),_.placed=!0,_.alignAttr={x:N,y:A+T}},y.prototype.getMaxLabelSize=function(){var h,f;return this.symbols.labels.forEach(function(m){f=m.getBBox(!0),h=h?f.width>h.width?f:h:f}),h||{}},y.prototype.formatLabel=function(h){var f=this.options,m=f.labels.formatter,u=f.labels.format,v=this.chart.numberFormatter;return u?R.format(u,h):m?m.call(h):v(h.value,1)},y.prototype.hideOverlappingLabels=function(){var h=this.chart,f=this.options.labels.allowOverlap,m=this.symbols;!f&&m&&(h.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var h,f,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,w=Number.MAX_VALUE,S=-Number.MAX_VALUE;return u.forEach(function(x){x.isBubble&&!x.ignoreSeries&&(f=x.zData.filter(I)).length&&(w=M(x.options.zMin,Math.min(w,Math.max(z(f),x.options.displayNegative===!1?x.options.zThreshold:-Number.MAX_VALUE))),S=M(x.options.zMax,Math.max(S,U(f))))}),h=w===S?[{value:S}]:[{value:w},{value:(w+S)/2},{value:S,autoRanges:!0}],v.length&&v[0].radius&&h.reverse(),h.forEach(function(x,p){v&&v[p]&&(h[p]=E(v[p],x))}),h},y.prototype.predictBubbleSizes=function(){var h,f=this.chart,m=this.fontMetrics,u=f.legend.options,v=u.floating,w=u.layout==="horizontal",S=w?f.legend.lastLineHeight:0,x=f.plotSizeX,p=f.plotSizeY,g=f.series[this.options.seriesIndex],r=g.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(p,x),o=g.options.maxSize;return v||!/%$/.test(o)?h=t:(o=parseFloat(o),h=(i+S-m.h/2)*o/100/(o/100+1),(w&&p-h>=x||!w&&x-h>=p)&&(h=t)),[a,Math.ceil(h)]},y.prototype.updateRanges=function(h,f){var m=this.legend.options.bubbleLegend;m.minSize=h,m.maxSize=f,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var h=this.legend,f=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=f.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,f.maxPxSize),h.render())},y}()}),it(B,"Series/Bubble/BubbleLegendComposition.js",[B["Series/Bubble/BubbleLegendDefaults.js"],B["Series/Bubble/BubbleLegendItem.js"],B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=H.setOptions,Z=V.addEvent,U=V.objectEach,z=V.wrap,I=[];function E(m,u,v){var w,S,x,p=this,g=p.legend,r=M(p)>=0;g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&r?(w=g.bubbleLegend.options,S=g.bubbleLegend.predictBubbleSizes(),g.bubbleLegend.updateRanges(S[0],S[1]),w.placed||(g.group.placed=!1,g.allItems.forEach(function(a){(x=a.legendItem||{}).group&&(x.group.translateY=null)})),g.render(),p.getMargins(),p.axes.forEach(function(a){a.visible&&a.render(),w.placed||(a.setScale(),a.updateNames(),U(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),w.placed=!0,p.getMargins(),m.call(p,u,v),g.bubbleLegend.correctSizes(),f(g,P(g))):(m.call(p,u,v),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),f(g,P(g))))}function M(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,w,S=m.allItems,x=[],p=S.length,g=0,r=0;for(g=0;g<p;g++)if(v=S[g].legendItem||{},w=(S[g+1]||{}).legendItem||{},v.labelHeight&&(S[g].itemHeight=v.labelHeight),S[g]===S[p-1]||v.y!==w.y){for(x.push({height:0}),u=x[x.length-1];r<=g;r++)S[r].itemHeight>u.height&&(u.height=S[r].itemHeight);u.step=g}return x}function y(m){var u=this,v=u.bubbleLegend,w=u.options,S=w.bubbleLegend,x=M(u.chart);v&&v.ranges&&v.ranges.length&&(S.ranges.length&&(S.autoRanges=!!S.ranges[0].autoRanges),u.destroyItem(v)),x>=0&&w.enabled&&S.enabled&&(S.seriesIndex=x,u.bubbleLegend=new R(S,u),u.bubbleLegend.addToLegend(m.allItems))}function h(){var m,u=this,v=u.chart,w=u.visible,S=u.chart.legend;S&&S.bubbleLegend&&(u.visible=!w,u.ignoreSeries=w,m=M(v)>=0,S.bubbleLegend.visible!==m&&(S.update({bubbleLegend:{enabled:m}}),S.bubbleLegend.visible=m),u.visible=w)}function f(m,u){var v,w,S,x,p=m.allItems,g=m.options.rtl,r=0;p.forEach(function(a,t){(x=a.legendItem||{}).group&&(v=x.group.translateX||0,w=x.y||0,((S=a.movementX)||g&&a.ranges)&&(S=g?v-a.options.maxSize/2:v+S,x.group.attr({translateX:S})),t>u[r].step&&r++,x.group.attr({translateY:Math.round(w+u[r].height/2)}),x.y=w+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:W}}),z(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",h))}}}),it(B,"Series/Bubble/BubblePoint.js",[B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.scatter.prototype.pointClass,U=H.extend,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.options=void 0,M.series=void 0,M}return $(E,I),E.prototype.haloPath=function(M){return W.prototype.haloPath.call(this,M===0?0:(this.marker&&this.marker.radius||0)+M)},E}(Z);return U(z.prototype,{ttBelow:!1}),z}),it(B,"Series/Bubble/BubbleSeries.js",[B["Series/Bubble/BubbleLegendComposition.js"],B["Series/Bubble/BubblePoint.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(t,i){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},U(t,i)},function(t,i){function o(){this.constructor=t}U(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=H.parse,E=V.noop,M=$.series,P=$.seriesTypes,y=P.column.prototype,h=P.scatter,f=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,w=Z.extend,S=Z.isNumber,x=Z.merge,p=Z.pick,g=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",l=this.min,b=this.max-l,T=0,D=o,d=o/b;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var A=C[n];if(s&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),b>0){for(var N=A.length;N--;)if(S(A[N])&&i.dataMin<=A[N]&&A[N]<=i.max){var _=C.radii&&C.radii[N]||0;T=Math.min((A[N]-l)*d-_,T),D=Math.max((A[N]-l)*d+_,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,d*=(o+Math.max(0,T)-Math.min(D,o))/o,[["min","userMin",T],["max","userMax",D]].forEach(function(C){p(i.options[C[0]],i[C[1]])===void 0&&(i[C[0]]+=C[2]/d)}))}var a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return z(i,t),i.compose=function(o,e,s,n){W.compose(e,s,n),g.indexOf(o)===-1&&(g.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,l=this.zData,b=this.yData,T=[],D=this.chart.bubbleZExtremes,d=this.getPxExtremes(),C=d.minPxSize,A=d.maxPxSize;if(!D){var N,_=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(_=Math.min(_||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:_,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=l.length;e<o;e++)s=l[e],T.push(this.getRadius(D.zMin,D.zMax,C,A,s,b&&b[e]));this.radii=T},i.prototype.getRadius=function(o,e,s,n,l,b){var T=this.options,D=T.sizeBy!=="width",d=T.zThreshold,C=e-o,A=.5;if(b===null||l===null)return null;if(S(l)){if(T.sizeByAbsoluteValue&&(l=Math.abs(l-d),e=C=Math.max(e-d,Math.abs(o-d)),o=0),l<o)return s/2-1;C>0&&(A=(l-o)/C)}return D&&A>=0&&(A=Math.sqrt(A)),Math.ceil(s+A*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=M.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var l=o[n],b=e?e[n]:0;S(b)&&b>=s/2?(l.marker=w(l.marker,{radius:b,width:2*b,height:2*b}),l.dlBox={x:l.plotX-b,y:l.plotY-b,width:2*b,height:2*b}):(l.shapeArgs=l.plotY=l.dlBox=void 0,l.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var l;return typeof n=="string"&&(l=/%$/.test(n),n=parseInt(n,10)),l?o*n/100:n},s=e(p(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(p(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(S);if(e.length){var s=p(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=p(o.zMax,m(e));if(S(s)&&S(n))return{zMin:s,zMax:n}}},i.defaultOptions=x(h.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return S(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(h);return w(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:R,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),it(B,"Series/ColumnRange/ColumnRangePoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},H(M,P)},function(M,P){function y(){this.constructor=M}H(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=W.seriesTypes,Z=$.column.prototype.pointClass.prototype,U=$.arearange.prototype.pointClass,z=R.extend,I=R.isNumber,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y}return V(P,M),P.prototype.isValid=function(){return I(this.low)},P}(U);return z(E.prototype,{setState:Z.setState}),E}),it(B,"Series/ColumnRange/ColumnRangeSeries.js",[B["Series/ColumnRange/ColumnRangePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(w,S){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,p){x.__proto__=p}||function(x,p){for(var g in p)p.hasOwnProperty(g)&&(x[g]=p[g])},$(w,S)},function(w,S){function x(){this.constructor=w}$(w,S),w.prototype=S===null?Object.create(S):(x.prototype=S.prototype,new x)}),U=R.noop,z=H.seriesTypes,I=z.arearange,E=z.column,M=z.column.prototype,P=V.clamp,y=V.extend,h=V.isNumber,f=V.merge,m=V.pick,u={pointRange:null,marker:null,states:{hover:{halo:!1}}},v=function(w){function S(){return w!==null&&w.apply(this,arguments)||this}return Z(S,w),S.prototype.setOptions=function(){return f(!0,arguments[0],{stacking:void 0}),I.prototype.setOptions.apply(this,arguments)},S.prototype.translate=function(){var x,p,g,r,a=this,t=this.yAxis,i=this.xAxis,o=i.startAngleRad,e=this.chart,s=this.xAxis.isRadial,n=Math.max(e.chartWidth,e.chartHeight)+999;function l(b){return P(b,-n,n)}M.translate.apply(this),this.points.forEach(function(b){var T=b.shapeArgs||{},D=a.options.minPointLength,d=b.plotY,C=t.translate(b.high,0,1,0,1);if(h(C)&&h(d))if(b.plotHigh=l(C),b.plotLow=l(d),r=b.plotHigh,x=m(b.rectPlotY,b.plotY)-b.plotHigh,Math.abs(x)<D?(x+=p=D-x,r-=p/2):x<0&&(r-=x*=-1),s&&a.polar)g=b.barX+o,b.shapeType="arc",b.shapeArgs=a.polar.arc(r+x,r,g,g+b.pointWidth);else{T.height=x,T.y=r;var A=T.x,N=A===void 0?0:A,_=T.width,L=_===void 0?0:_;b.tooltipPos=e.inverted?[t.len+t.pos-e.plotLeft-r-x/2,i.len+i.pos-e.plotTop-N-L/2,x]:[i.left-e.plotLeft+N+L/2,t.pos-e.plotTop+r+x/2,x]}})},S.prototype.pointAttribs=function(){return M.pointAttribs.apply(this,arguments)},S.prototype.translate3dPoints=function(){return M.translate3dPoints.apply(this,arguments)},S.prototype.translate3dShapes=function(){return M.translate3dShapes.apply(this,arguments)},S.defaultOptions=f(E.defaultOptions,I.defaultOptions,u),S}(I);return y(v.prototype,{directTouch:!0,pointClass:W,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:M.adjustForMissingColumns,animate:M.animate,crispCol:M.crispCol,drawGraph:U,drawPoints:M.drawPoints,getSymbol:U,drawTracker:M.drawTracker,getColumnMetrics:M.getColumnMetrics}),H.registerSeriesType("columnrange",v),v}),it(B,"Series/ColumnPyramid/ColumnPyramidSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(M,P){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},V(M,P)},function(M,P){function y(){this.constructor=M}V(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),Z=W.prototype,U=H.clamp,z=H.merge,I=H.pick,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,M),P.prototype.translate=function(){var y=this,h=y.chart,f=y.options,m=y.dense=y.closestPointRange*y.xAxis.transA<2,u=y.borderWidth=I(f.borderWidth,m?0:1),v=y.yAxis,w=f.threshold,S=y.translatedThreshold=v.getThreshold(w),x=I(f.minPointLength,5),p=y.getColumnMetrics(),g=p.width,r=y.barW=Math.max(g,1+2*u),a=y.pointXOffset=p.offset;h.inverted&&(S-=.5),f.pointPadding&&(r=Math.ceil(r)),Z.translate.apply(y),y.points.forEach(function(t){var i,o,e,s,n,l,b,T,D,d,C,A,N=I(t.yBottom,S),_=999+Math.abs(N),L=U(t.plotY,-_,v.len+_),O=t.plotX+a,j=r/2,Y=Math.min(L,N),X=Math.max(L,N)-Y;t.barX=O,t.pointWidth=g,t.tooltipPos=h.inverted?[v.len+v.pos-h.plotLeft-L,y.xAxis.len-O-j,X]:[O+j,L+v.pos-h.plotTop,X],i=w+(t.total||t.y),f.stacking==="percent"&&(i=w+(t.y<0)?-100:100),e=v.toPixels(i,!0),b=O-(s=(o=h.plotHeight-e-(h.plotHeight-S))?j*(Y-e)/o:0)+j,T=O+s+j,D=O+(n=o?j*(Y+X-e)/o:0)+j,d=O-n+j,C=Y-x,A=Y+X,t.y<0&&(C=Y,A=Y+X+x),h.inverted&&(T=(b=O+j+(s=j*(e-(l=v.width-Y))/(o=e-(v.width-S))))-2*s,D=O-(n=j*(e-(l-X))/o)+j,d=O+n+j,C=Y,A=Y+X-x,t.y<0&&(A=Y+X+x)),t.shapeType="path",t.shapeArgs={x:b,y:C,width:T-b,height:X,d:[["M",b,C],["L",T,C],["L",D,A],["L",d,A],["Z"]]}})},P.defaultOptions=z(W.defaultOptions,{}),P}(W);return R.registerSeriesType("columnpyramid",E),E}),it(B,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}),it(B,"Series/ErrorBar/ErrorBarSeries.js",[B["Series/BoxPlot/BoxPlotSeries.js"],B["Series/Column/ColumnSeries.js"],B["Series/ErrorBar/ErrorBarSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,h)},function(y,h){function f(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),z=V.seriesTypes.arearange,I=$.addEvent,E=$.merge,M=$.extend,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return U(h,y),h.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||R.prototype.getColumnMetrics.call(this)},h.prototype.drawDataLabels=function(){var f=this.pointValKey;z&&(z.prototype.drawDataLabels.call(this),this.data.forEach(function(m){m.y=m[f]}))},h.prototype.toYData=function(f){return[f.low,f.high]},h.defaultOptions=E(W.defaultOptions,H),h}(W);return I(P,"afterTranslate",function(){this.points.forEach(function(y){y.plotLow=y.plotY})},{order:0}),M(P.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),V.registerSeriesType("errorbar",P),P}),it(B,"Series/Gauge/GaugePoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.options=void 0,U.series=void 0,U.shapeArgs=void 0,U}return H(Z,$),Z.prototype.setState=function(U){this.state=U},Z}(W.series.prototype.pointClass);return V}),it(B,"Series/Gauge/GaugeSeries.js",[B["Series/Gauge/GaugePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var x in S)S.hasOwnProperty(x)&&(w[x]=S[x])},$(u,v)},function(u,v){function w(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),U=R.noop,z=H.series,I=H.seriesTypes.column,E=V.clamp,M=V.isNumber,P=V.extend,y=V.merge,h=V.pick,f=V.pInt,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.data=void 0,w.points=void 0,w.options=void 0,w.yAxis=void 0,w}return Z(v,u),v.prototype.translate=function(){var w=this,S=w.yAxis,x=w.options,p=S.center;w.generatePoints(),w.points.forEach(function(g){var r=y(x.dial,g.dial),a=f(r.radius)*p[2]/200,t=f(r.baseLength)*a/100,i=f(r.rearLength)*a/100,o=r.baseWidth,e=r.topWidth,s=x.overshoot,n=S.startAngleRad+S.translate(g.y,void 0,void 0,void 0,!0);(M(s)||x.wrap===!1)&&(s=M(s)?s/180*Math.PI:0,n=E(n,S.startAngleRad-s,S.endAngleRad+s)),n=180*n/Math.PI,g.shapeType="path";var l=r.path||[["M",-i,-o/2],["L",t,-o/2],["L",a,-e/2],["L",a,e/2],["L",t,o/2],["L",-i,o/2],["Z"]];g.shapeArgs={d:l,translateX:p[0],translateY:p[1],rotation:n},g.plotX=p[0],g.plotY=p[1]})},v.prototype.drawPoints=function(){var w=this,S=w.chart,x=w.yAxis.center,p=w.pivot,g=w.options,r=g.pivot,a=S.renderer;w.points.forEach(function(t){var i=t.graphic,o=t.shapeArgs,e=o.d,s=y(g.dial,t.dial);i?(i.animate(o),o.d=e):t.graphic=a[t.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(w.group),S.styledMode||t.graphic[i?"animate":"attr"]({stroke:s.borderColor,"stroke-width":s.borderWidth,fill:s.backgroundColor})}),p?p.animate({translateX:x[0],translateY:x[1]}):r&&(w.pivot=a.circle(0,0,r.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(x[0],x[1]).add(w.group),S.styledMode||w.pivot.attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.borderWidth}))},v.prototype.animate=function(w){var S=this;w||S.points.forEach(function(x){var p=x.graphic;p&&(p.attr({rotation:180*S.yAxis.startAngleRad/Math.PI}),p.animate({rotation:x.shapeArgs.rotation},S.options.animation))})},v.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),z.prototype.render.call(this),this.group.clip(this.chart.clipRect)},v.prototype.setData=function(w,S){z.prototype.setData.call(this,w,!1),this.processData(),this.generatePoints(),h(S,!0)&&this.chart.redraw()},v.prototype.hasData=function(){return!!this.points.length},v.defaultOptions=y(z.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),v}(z);return P(m.prototype,{angular:!0,directTouch:!0,drawGraph:U,drawTracker:I.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:W,trackerGroups:["group","dataLabelsGroup"]}),H.registerSeriesType("gauge",m),m}),it(B,"Series/DragNodesComposition.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=[];function V(){var $,Z,U,z=this;z.container&&($=R(z.container,"mousedown",function(I){var E=z.hoverPoint;E&&E.series&&E.series.hasDraggableNodes&&E.series.options.draggable&&(E.series.onMouseDown(E,I),Z=R(z.container,"mousemove",function(M){return E&&E.series&&E.series.onMouseMove(E,M)}),U=R(z.container.ownerDocument,"mouseup",function(M){return Z(),U(),E&&E.series&&E.series.onMouseUp(E,M)}))})),R(z,"destroy",function(){$()})}return{compose:function($){H.indexOf($)===-1&&(H.push($),R($,"load",V))},onMouseDown:function($,Z){var U=this.chart.pointer.normalize(Z);$.fixedPosition={chartX:U.chartX,chartY:U.chartY,plotX:$.plotX,plotY:$.plotY},$.inDragMode=!0},onMouseMove:function($,Z){if($.fixedPosition&&$.inDragMode){var U=this.chart,z=U.pointer.normalize(Z),I=$.fixedPosition.chartX-z.chartX,E=$.fixedPosition.chartY-z.chartY,M=U.graphLayoutsLookup,P=void 0,y=void 0;(Math.abs(I)>5||Math.abs(E)>5)&&(P=$.fixedPosition.plotX-I,y=$.fixedPosition.plotY-E,U.isInsidePlot(P,y)&&($.plotX=P,$.plotY=y,$.hasDragged=!0,this.redrawHalo($),M.forEach(function(h){h.restartSimulation()})))}},onMouseUp:function($,Z){$.fixedPosition&&($.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),$.inDragMode=$.hasDragged=!1,this.options.fixedDraggable||delete $.fixedPosition)},redrawHalo:function($){$&&this.halo&&this.halo.attr({d:$.haloPath(this.options.states.hover.halo.size)})}}}),it(B,"Series/GraphLayoutComposition.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Utilities.js"]],function(W,R){var H=W.setAnimation,V=R.addEvent,$=[];function Z(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation()}),this.redraw())}function U(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation(!1)}),this.redraw())}function z(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(E){E.stop()})}function I(){var E,M=!1,P=function(y){y.maxIterations--&&isFinite(y.temperature)&&!y.isStable()&&!y.enableSimulation&&(y.beforeStep&&y.beforeStep(),y.step(),E=!1,M=!0)};if(this.graphLayoutsLookup){for(H(!1,this),this.graphLayoutsLookup.forEach(function(y){return y.start()});!E;)E=!0,this.graphLayoutsLookup.forEach(P);M&&this.series.forEach(function(y){y&&y.layout&&y.render()})}}return{compose:function(E){$.indexOf(E)&&($.push(E),V(E,"afterPrint",Z),V(E,"beforePrint",U),V(E,"predraw",z),V(E,"render",I))},integrations:{},layouts:{}}}),it(B,"Series/PackedBubble/PackedBubblePoint.js",[B["Core/Chart/Chart.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(U,z){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},V(U,z)},function(U,z){function I(){this.constructor=U}V(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),Z=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.degree=NaN,I.mass=NaN,I.radius=NaN,I.options=void 0,I.series=void 0,I.value=null,I}return $(z,U),z.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),R.prototype.destroy.apply(this,arguments)},z.prototype.firePointEvent=function(){var I=this.series.options;if(this.isParentNode&&I.parentNode){var E=I.allowPointSelect;I.allowPointSelect=I.parentNode.allowPointSelect,R.prototype.firePointEvent.apply(this,arguments),I.allowPointSelect=E}else R.prototype.firePointEvent.apply(this,arguments)},z.prototype.select=function(){var I=this.series.chart;this.isParentNode?(I.getSelectedPoints=I.getSelectedParentNodes,R.prototype.select.apply(this,arguments),I.getSelectedPoints=W.prototype.getSelectedPoints):R.prototype.select.apply(this,arguments)},z}(H.seriesTypes.bubble.prototype.pointClass);return Z}),it(B,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[B["Core/Utilities.js"]],function(W){var R=W.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var H=this.series.chart.numberFormatter,V=this.point.value;return R(V)?H(V,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),it(B,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(W,R,H){var V=W.getMass(),$=-H.x*R*this.diffTemperature,Z=-H.y*R*this.diffTemperature;W.fromNode.fixedPosition||(W.fromNode.plotX-=$*V.fromNode/W.fromNode.degree,W.fromNode.plotY-=Z*V.fromNode/W.fromNode.degree),W.toNode.fixedPosition||(W.toNode.plotX+=$*V.toNode/W.toNode.degree,W.toNode.plotY+=Z*V.toNode/W.toNode.degree)},attractiveForceFunction:function(W,R){return(R-W)/W},barycenter:function(){var W=this.options.gravitationalConstant,R=this.barycenter.xFactor,H=this.barycenter.yFactor;R=(R-(this.box.left+this.box.width)/2)*W,H=(H-(this.box.top+this.box.height)/2)*W,this.nodes.forEach(function(V){V.fixedPosition||(V.plotX-=R/V.mass/V.degree,V.plotY-=H/V.mass/V.degree)})},getK:function(W){return Math.pow(W.box.width*W.box.height/W.nodes.length,.5)},integrate:function(W,R){var H=-W.options.friction,V=W.options.maxSpeed,$=R.prevX,Z=R.prevY,U=(R.plotX+R.dispX-$)*H,z=(R.plotY+R.dispY-Z)*H,I=Math.abs,E=I(U)/(U||1),M=I(z)/(z||1);U=E*Math.min(V,Math.abs(U)),z=M*Math.min(V,Math.abs(z)),R.prevX=R.plotX+R.dispX,R.prevY=R.plotY+R.dispY,R.plotX+=U,R.plotY+=z,R.temperature=W.vectorLength({x:U,y:z})},repulsive:function(W,R,H){var V=R*this.diffTemperature/W.mass/W.degree;W.fixedPosition||(W.plotX+=H.x*V,W.plotY+=H.y*V)},repulsiveForceFunction:function(W,R){return(R-W)/W*(R>W?1:0)}}}),it(B,"Series/PackedBubble/PackedBubbleIntegration.js",[B["Core/Globals.js"],B["Series/Networkgraph/VerletIntegration.js"]],function(W,R){return{barycenter:function(){for(var H,V,$=this,Z=$.options.gravitationalConstant,U=$.box,z=$.nodes,I=0,E=z;I<E.length;I++){var M=E[I];$.options.splitSeries&&!M.isParentNode?(H=M.series.parentNode.plotX,V=M.series.parentNode.plotY):(H=U.width/2,V=U.height/2),M.fixedPosition||(M.plotX-=(M.plotX-H)*Z/(M.mass*Math.sqrt(z.length)),M.plotY-=(M.plotY-V)*Z/(M.mass*Math.sqrt(z.length)))}},getK:W.noop,integrate:R.integrate,repulsive:function(H,V,$,Z){var U=V*this.diffTemperature/H.mass/H.degree,z=$.x*U,I=$.y*U;H.fixedPosition||(H.plotX+=z,H.plotY+=I),Z.fixedPosition||(Z.plotX-=z,Z.plotY-=I)},repulsiveForceFunction:function(H,V,$,Z){return Math.min(H,($.marker.radius+Z.marker.radius)/2)}}}),it(B,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(W,R,H,V){var $=W.getMass(),Z=H.x/V*R,U=H.y/V*R;W.fromNode.fixedPosition||(W.fromNode.dispX-=Z*$.fromNode/W.fromNode.degree,W.fromNode.dispY-=U*$.fromNode/W.fromNode.degree),W.toNode.fixedPosition||(W.toNode.dispX+=Z*$.toNode/W.toNode.degree,W.toNode.dispY+=U*$.toNode/W.toNode.degree)},attractiveForceFunction:function(W,R){return W*W/R},barycenter:function(){var W=this.options.gravitationalConstant,R=this.barycenter.xFactor,H=this.barycenter.yFactor;this.nodes.forEach(function(V){if(!V.fixedPosition){var $=V.getDegree(),Z=$*(1+$/2);V.dispX+=(R-V.plotX)*W*Z/V.degree,V.dispY+=(H-V.plotY)*W*Z/V.degree}})},getK:function(W){return Math.pow(W.box.width*W.box.height/W.nodes.length,.3)},integrate:function(W,R){var H;R.dispX+=R.dispX*W.options.friction,R.dispY+=R.dispY*W.options.friction,(H=R.temperature=W.vectorLength({x:R.dispX,y:R.dispY}))!==0&&(R.plotX+=R.dispX/H*Math.min(Math.abs(R.dispX),W.temperature),R.plotY+=R.dispY/H*Math.min(Math.abs(R.dispY),W.temperature))},repulsive:function(W,R,H,V){W.dispX+=H.x/V*R/W.degree,W.dispY+=H.y/V*R/W.degree},repulsiveForceFunction:function(W,R){return R*R/W}}}),it(B,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function W(R){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=R,this.boxSize=Math.min(R.width,R.height)}return W.prototype.divideBox=function(){var R=this.box.width/2,H=this.box.height/2;this.nodes[0]=new W({left:this.box.left,top:this.box.top,width:R,height:H}),this.nodes[1]=new W({left:this.box.left+R,top:this.box.top,width:R,height:H}),this.nodes[2]=new W({left:this.box.left+R,top:this.box.top+H,width:R,height:H}),this.nodes[3]=new W({left:this.box.left,top:this.box.top+H,width:R,height:H})},W.prototype.getBoxPosition=function(R){var H=R.plotX<this.box.left+this.box.width/2,V=R.plotY<this.box.top+this.box.height/2;return H?V?0:3:V?1:2},W.prototype.insert=function(R,H){var V;this.isInternal?this.nodes[this.getBoxPosition(R)].insert(R,H-1):(this.isEmpty=!1,this.body?H?(this.isInternal=!0,this.divideBox(),this.body!==!0&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,H-1),this.body=!0),this.nodes[this.getBoxPosition(R)].insert(R,H-1)):((V=new W({top:R.plotX||NaN,left:R.plotY||NaN,width:.1,height:.1})).body=R,V.isInternal=!1,this.nodes.push(V)):(this.isInternal=!1,this.body=R))},W.prototype.updateMassAndCenter=function(){var R=0,H=0,V=0;if(this.isInternal){for(var $=0,Z=this.nodes;$<Z.length;$++){var U=Z[$];U.isEmpty||(R+=U.mass,H+=U.plotX*U.mass,V+=U.plotY*U.mass)}H/=R,V/=R}else this.body&&(R=this.body.mass,H=this.body.plotX,V=this.body.plotY);this.mass=R,this.plotX=H,this.plotY=V},W}()}),it(B,"Series/Networkgraph/QuadTree.js",[B["Series/Networkgraph/QuadTreeNode.js"]],function(W){return function(){function R(H,V,$,Z){this.box={left:H,top:V,width:$,height:Z},this.maxDepth=25,this.root=new W(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return R.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(H){H.updateMassAndCenter()})},R.prototype.insertNodes=function(H){for(var V=0,$=H;V<$.length;V++){var Z=$[V];this.root.insert(Z,this.maxDepth)}},R.prototype.visitNodeRecursive=function(H,V,$){var Z;if(H||(H=this.root),H===this.root&&V&&(Z=V(H)),Z!==!1){for(var U=0,z=H.nodes;U<z.length;U++){var I=z[U];if(I.isInternal){if(V&&(Z=V(I)),Z===!1)continue;this.visitNodeRecursive(I,V,$)}else I.body&&V&&V(I.body);$&&$(I)}H===this.root&&$&&$(H)}},R}()}),it(B,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[B["Series/Networkgraph/EulerIntegration.js"],B["Core/Globals.js"],B["Series/GraphLayoutComposition.js"],B["Series/Networkgraph/QuadTree.js"],B["Core/Utilities.js"],B["Series/Networkgraph/VerletIntegration.js"]],function(W,R,H,V,$,Z){var U=R.win,z=$.clamp,I=$.defined,E=$.isFunction,M=$.pick,P=function(){function y(){this.attractiveForce=void 0,this.box={},this.currentStep=0,this.initialRendering=!0,this.integration=void 0,this.links=[],this.nodes=[],this.options=void 0,this.quadTree=void 0,this.repulsiveForce=void 0,this.series=[],this.simulation=!1}return y.compose=function(h){H.compose(h),H.integrations.euler=W,H.integrations.verlet=Z,H.layouts["reingold-fruchterman"]=y},y.prototype.init=function(h){this.options=h,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=H.integrations[h.integration],this.enableSimulation=h.enableSimulation,this.attractiveForce=M(h.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=M(h.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=h.approximation},y.prototype.updateSimulation=function(h){this.enableSimulation=M(h,this.options.enableSimulation)},y.prototype.start=function(){var h=this,f=this.series,m=this.options;h.currentStep=0,h.forces=f[0]&&f[0].forces||[],h.chart=f[0]&&f[0].chart,h.initialRendering&&(h.initPositions(),f.forEach(function(u){u.finishedAnimating=!0,u.render()})),h.setK(),h.resetSimulation(m),h.enableSimulation&&h.step()},y.prototype.step=function(){var h=this,f=this.series;this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var m=0,u=this.forces||[];m<u.length;m++)this[u[m]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(var v=0,w=f;v<w.length;v++){var S=w[v];S.chart&&S.render()}this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&U.cancelAnimationFrame(this.simulation),this.simulation=U.requestAnimationFrame(function(){return h.step()})):this.simulation=!1}},y.prototype.stop=function(){this.simulation&&U.cancelAnimationFrame(this.simulation)},y.prototype.setArea=function(h,f,m,u){this.box={left:h,top:f,width:m,height:u}},y.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},y.prototype.addElementsToCollection=function(h,f){for(var m=0,u=h;m<u.length;m++){var v=u[m];f.indexOf(v)===-1&&f.push(v)}},y.prototype.removeElementFromCollection=function(h,f){var m=f.indexOf(h);m!==-1&&f.splice(m,1)},y.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},y.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},y.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},y.prototype.setMaxIterations=function(h){this.maxIterations=M(h,this.options.maxIterations)},y.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},y.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},y.prototype.setInitialRendering=function(h){this.initialRendering=h},y.prototype.createQuadTree=function(){this.quadTree=new V(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},y.prototype.initPositions=function(){var h=this.options.initialPositions;if(E(h)){h.call(this);for(var f=0,m=this.nodes;f<m.length;f++){var u=m[f];I(u.prevX)||(u.prevX=u.plotX),I(u.prevY)||(u.prevY=u.plotY),u.dispX=0,u.dispY=0}}else h==="circle"?this.setCircularPositions():this.setRandomPositions()},y.prototype.setCircularPositions=function(){for(var h,f=this.box,m=this.nodes,u=m.length+1,v=2*Math.PI/u,w=m.filter(function(l){return l.linksTo.length===0}),S={},x=this.options.initialPositionRadius,p=function(l){for(var b=0,T=l.linksFrom||[];b<T.length;b++){var D=T[b];S[D.toNode.id]||(S[D.toNode.id]=!0,g.push(D.toNode),p(D.toNode))}},g=[],r=0,a=w;r<a.length;r++){var t=a[r];g.push(t),p(t)}if(g.length)for(var i=0,o=m;i<o.length;i++){var e=o[i];g.indexOf(e)===-1&&g.push(e)}else g=m;for(var s=0,n=g.length;s<n;++s)(h=g[s]).plotX=h.prevX=M(h.plotX,f.width/2+x*Math.cos(s*v)),h.plotY=h.prevY=M(h.plotY,f.height/2+x*Math.sin(s*v)),h.dispX=0,h.dispY=0},y.prototype.setRandomPositions=function(){for(var h,f=this.box,m=this.nodes,u=m.length+1,v=function(x){var p=x*x/Math.PI;return p-Math.floor(p)},w=0,S=m.length;w<S;++w)(h=m[w]).plotX=h.prevX=M(h.plotX,f.width*v(w)),h.plotY=h.prevY=M(h.plotY,f.height*v(u+w)),h.dispX=0,h.dispY=0},y.prototype.force=function(h){for(var f=[],m=1;m<arguments.length;m++)f[m-1]=arguments[m];this.integration[h].apply(this,f)},y.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},y.prototype.getBarycenter=function(){for(var h=0,f=0,m=0,u=0,v=this.nodes;u<v.length;u++){var w=v[u];f+=w.plotX*w.mass,m+=w.plotY*w.mass,h+=w.mass}return this.barycenter={x:f,y:m,xFactor:f/h,yFactor:m/h},this.barycenter},y.prototype.barnesHutApproximation=function(h,f){var m,u,v=this.getDistXY(h,f),w=this.vectorLength(v);return h!==f&&w!==0&&(f.isInternal?f.boxSize/w<this.options.theta&&w!==0?(u=this.repulsiveForce(w,this.k),this.force("repulsive",h,u*f.mass,v,w),m=!1):m=!0:(u=this.repulsiveForce(w,this.k),this.force("repulsive",h,u*f.mass,v,w))),m},y.prototype.repulsiveForces=function(){var h=this;if(this.approximation==="barnes-hut")for(var f=function(o){m.quadTree.visitNodeRecursive(null,function(e){return h.barnesHutApproximation(o,e)})},m=this,u=0,v=this.nodes;u<v.length;u++)f(r=v[u]);else for(var w=void 0,S=void 0,x=void 0,p=0,g=this.nodes;p<g.length;p++)for(var r=g[p],a=0,t=this.nodes;a<t.length;a++){var i=t[a];r===i||r.fixedPosition||(x=this.getDistXY(r,i),(S=this.vectorLength(x))!==0&&(w=this.repulsiveForce(S,this.k),this.force("repulsive",r,w*i.mass,x,S)))}},y.prototype.attractiveForces=function(){for(var h,f,m,u=0,v=this.links;u<v.length;u++){var w=v[u];w.fromNode&&w.toNode&&(h=this.getDistXY(w.fromNode,w.toNode),(f=this.vectorLength(h))!==0&&(m=this.attractiveForce(f,this.k),this.force("attractive",w,m,h,f)))}},y.prototype.applyLimits=function(){for(var h=0,f=this.nodes;h<f.length;h++){var m=f[h];if(m.fixedPosition)return;this.integration.integrate(this,m),this.applyLimitBox(m,this.box),m.dispX=0,m.dispY=0}},y.prototype.applyLimitBox=function(h,f){var m=h.radius;h.plotX=z(h.plotX,f.left+m,f.width-m),h.plotY=z(h.plotY,f.top+m,f.height-m)},y.prototype.coolDown=function(h,f,m){return h-f*m},y.prototype.isStable=function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0},y.prototype.getSystemTemperature=function(){for(var h=0,f=0,m=this.nodes;f<m.length;f++)h+=m[f].temperature;return h},y.prototype.vectorLength=function(h){return Math.sqrt(h.x*h.x+h.y*h.y)},y.prototype.getDistR=function(h,f){var m=this.getDistXY(h,f);return this.vectorLength(m)},y.prototype.getDistXY=function(h,f){var m=h.plotX-f.plotX,u=h.plotY-f.plotY;return{x:m,y:u,absX:Math.abs(m),absY:Math.abs(u)}},y}();return P}),it(B,"Series/PackedBubble/PackedBubbleLayout.js",[B["Series/GraphLayoutComposition.js"],B["Series/PackedBubble/PackedBubbleIntegration.js"],B["Series/Networkgraph/ReingoldFruchtermanLayout.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),U=V.addEvent,z=V.pick,I=[];function E(){var y=this.series,h=[];return y.forEach(function(f){f.parentNode&&f.parentNode.selected&&h.push(f.parentNode)}),h}function M(){this.allDataPoints&&delete this.allDataPoints}var P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.index=NaN,f.nodes=[],f.options=void 0,f.series=[],f}return Z(h,y),h.compose=function(f){H.compose(f),W.integrations.packedbubble=R,W.layouts.packedbubble=h,I.indexOf(f)===-1&&(I.push(f),U(f,"beforeRedraw",M),f.prototype.getSelectedParentNodes=E)},h.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(f){f&&f.calculateParentRadius()})},h.prototype.isStable=function(){var f=Math.abs(this.prevSystemTemperature-this.systemTemperature),m=10*this.systemTemperature/Math.sqrt(this.nodes.length);return Math.abs(m)<1&&f<1e-5||this.temperature<=0},h.prototype.setCircularPositions=function(){for(var f,m,u=this,v=u.box,w=u.nodes,S=w.length+1,x=2*Math.PI/S,p=u.options.initialPositionRadius,g=0,r=0,a=w;r<a.length;r++){var t=a[r];u.options.splitSeries&&!t.isParentNode?(f=t.series.parentNode.plotX,m=t.series.parentNode.plotY):(f=v.width/2,m=v.height/2),t.plotX=t.prevX=z(t.plotX,f+p*Math.cos(t.index||g*x)),t.plotY=t.prevY=z(t.plotY,m+p*Math.sin(t.index||g*x)),t.dispX=0,t.dispY=0,g++}},h.prototype.repulsiveForces=function(){var f,m,u,v=this,w=v.options.bubblePadding;v.nodes.forEach(function(S){S.degree=S.mass,S.neighbours=0,v.nodes.forEach(function(x){f=0,S===x||S.fixedPosition||!v.options.seriesInteraction&&S.series!==x.series||(u=v.getDistXY(S,x),(m=v.vectorLength(u)-(S.marker.radius+x.marker.radius+w))<0&&(S.degree+=.01,S.neighbours++,f=v.repulsiveForce(-m/Math.sqrt(S.neighbours),v.k,S,x)),v.force("repulsive",S,f*x.mass,u,x,m))})})},h.prototype.applyLimitBox=function(f,m){var u,v,w=this;w.options.splitSeries&&!f.isParentNode&&w.options.parentNodeLimit&&(u=w.getDistXY(f,f.series.parentNode),(v=f.series.parentNodeRadius-f.marker.radius-w.vectorLength(u))<0&&v>-2*f.marker.radius&&(f.plotX-=.01*u.x,f.plotY-=.01*u.y)),y.prototype.applyLimitBox.call(this,f,m)},h}(H);return W.layouts.packedbubble=P,P}),it(B,"Series/PackedBubble/PackedBubbleSeries.js",[B["Core/Color/Color.js"],B["Series/DragNodesComposition.js"],B["Series/GraphLayoutComposition.js"],B["Core/Globals.js"],B["Series/PackedBubble/PackedBubblePoint.js"],B["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],B["Series/PackedBubble/PackedBubbleLayout.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=this&&this.__extends||(E=function(t,i){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},E(t,i)},function(t,i){function o(){this.constructor=t}E(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),P=W.parse,y=V.noop,h=z.series.prototype,f=z.seriesTypes.bubble,m=I.addEvent,u=I.clamp,v=I.defined,w=I.extend,S=I.fireEvent,x=I.isArray,p=I.isNumber,g=I.merge,r=I.pick,a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.chart=void 0,o.data=void 0,o.layout=void 0,o.options=void 0,o.parentNodeMass=0,o.points=void 0,o.xData=void 0,o}return M(i,t),i.compose=function(o,e,s,n){f.compose(o,e,s,n),R.compose(e),U.compose(e)},i.prototype.accumulateAllPoints=function(){for(var o,e=this.chart,s=[],n=0,l=e.series;n<l.length;n++){var b=l[n];if(b.is("packedbubble")&&b.visible||!e.options.chart.ignoreHiddenSeries){o=b.yData||[];for(var T=0;T<o.length;T++)s.push([null,null,o[T],b.index,T,{id:T,marker:{radius:0}}])}}return s},i.prototype.addLayout=function(){var o,e=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},s=e.type||"packedbubble",n=this.chart.options.chart,l=this.chart.graphLayoutsStorage,b=this.chart.graphLayoutsLookup;l||(this.chart.graphLayoutsStorage=l={},this.chart.graphLayoutsLookup=b=[]),(o=l[s])||(e.enableSimulation=v(n.forExport)?!n.forExport:e.enableSimulation,l[s]=o=new H.layouts[s],o.init(e),b.splice(o.index,0,o)),this.layout=o,this.points.forEach(function(T){T.mass=2,T.degree=1,T.collisionNmb=1}),o.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),o.addElementsToCollection([this],o.series),o.addElementsToCollection(this.points,o.nodes)},i.prototype.addSeriesLayout=function(){var o=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=o.type||"packedbubble",s=this.chart.graphLayoutsStorage,n=this.chart.graphLayoutsLookup,l=g(o,o.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),b=s[e+"-series"];b||(s[e+"-series"]=b=new H.layouts[e],b.init(l),n.splice(b.index,0,b)),this.parentNodeLayout=b,this.createParentNodes()},i.prototype.calculateParentRadius=function(){var o=this.seriesBox();this.parentNodeRadius=u(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,o?Math.max(Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},i.prototype.calculateZExtremes=function(){var o=this.chart.series,e=this.options.zMin,s=this.options.zMax,n=1/0,l=-1/0;return e&&s?[e,s]:(o.forEach(function(b){b.yData.forEach(function(T){v(T)&&(T>l&&(l=T),T<n&&(n=T))})}),[e=r(e,n),s=r(s,l)])},i.prototype.checkOverlap=function(o,e){var s=o[0]-e[0],n=o[1]-e[1],l=o[2]+e[2];return Math.sqrt(s*s+n*n)-Math.abs(l)<-.001},i.prototype.createParentNodes=function(){var o,e=this,s=this.pointClass,n=this.chart,l=this.parentNodeLayout,b=this.layout.options,T=this.parentNode,D={radius:this.parentNodeRadius,lineColor:this.color,fillColor:P(this.color).brighten(.4).get()};b.parentNodeOptions&&(D=g(b.parentNodeOptions.marker||{},D)),this.parentNodeMass=0,this.points.forEach(function(d){e.parentNodeMass+=Math.PI*Math.pow(d.marker.radius,2)}),this.calculateParentRadius(),l.nodes.forEach(function(d){d.seriesIndex===e.index&&(o=!0)}),l.setArea(0,0,n.plotWidth,n.plotHeight),o||(T||(T=new s().init(this,{mass:this.parentNodeRadius/2,marker:D,dataLabels:{inside:!1},states:{normal:{marker:D},hover:{marker:D}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(T.plotX=this.parentNode.plotX,T.plotY=this.parentNode.plotY),this.parentNode=T,l.addElementsToCollection([this],l.series),l.addElementsToCollection([T],l.nodes))},i.prototype.deferLayout=function(){var o=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),o.splitSeries&&this.addSeriesLayout())},i.prototype.destroy=function(){var o=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(e){e.removeElementFromCollection(o,e.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),h.destroy.apply(this,arguments)},i.prototype.drawDataLabels=function(){h.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",h.drawDataLabels.call(this,[this.parentNode]))},i.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var o,e=this.chart,s=this.layout.options.parentNodeOptions.marker,n={fill:s.fillColor||P(this.color).brighten(.4).get(),opacity:s.fillOpacity,stroke:s.lineColor||this.color,"stroke-width":r(s.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,e.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),o=g({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},n),this.parentNode.graphic||(this.graph=this.parentNode.graphic=e.renderer.symbol(n.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(o)}},i.prototype.drawTracker=function(){var o,e=this.parentNode;t.prototype.drawTracker.call(this),e&&(o=x(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),o.forEach(function(s){s.div?s.div.point=e:s.element.point=e}))},i.prototype.getPointRadius=function(){var o,e,s,n,l=this,b=this.chart,T=b.plotWidth,D=b.plotHeight,d=this.options,C=d.useSimulation,A=Math.min(T,D),N={},_=[],L=b.allDataPoints||[],O=L.length;["minSize","maxSize"].forEach(function(Y){var X=parseInt(d[Y],10),G=/%$/.test(d[Y]);N[Y]=G?A*X/100:X*Math.sqrt(O)}),b.minRadius=o=N.minSize/Math.sqrt(O),b.maxRadius=e=N.maxSize/Math.sqrt(O);var j=C?this.calculateZExtremes():[o,e];L.forEach(function(Y,X){s=C?u(Y[2],j[0],j[1]):Y[2],(n=l.getRadius(j[0],j[1],o,e,s))===0&&(n=null),L[X][2]=n,_.push(n)}),this.radii=_},i.prototype.init=function(){return h.init.apply(this,arguments),this.eventsToUnbind.push(m(this,"updatedData",function(){var o=this;this.chart.series.forEach(function(e){e.type===o.type&&(e.isDirty=!0)},this)})),this},i.prototype.onMouseUp=function(o){var e=o;if(e.fixedPosition&&!e.removed){var s,n=this.layout,l=this.parentNodeLayout;l&&n.options.dragBetweenSeries&&l.nodes.forEach(function(b){e&&e.marker&&b!==e.series.parentNode&&(s=n.getDistXY(e,b),n.vectorLength(s)-b.marker.radius-e.marker.radius<0&&(b.series.addPoint(g(e.options,{plotX:e.plotX,plotY:e.plotY}),!1),n.removeElementFromCollection(e,n.nodes),e.remove()))}),R.onMouseUp.apply(this,arguments)}},i.prototype.placeBubbles=function(o){var e,s,n=this.checkOverlap,l=this.positionBubble,b=[],T=1,D=0,d=0,C=[],A=o.sort(function(N,_){return _[2]-N[2]});if(A.length){if(b.push([[0,0,A[0][2],A[0][3],A[0][4]]]),A.length>1)for(b.push([[0,0-A[1][2]-A[0][2],A[1][2],A[1][3],A[1][4]]]),s=2;s<A.length;s++)A[s][2]=A[s][2]||1,n(e=l(b[T][D],b[T-1][d],A[s]),b[T][0])?(b.push([]),d=0,b[T+1].push(l(b[T][D],b[T][0],A[s])),T++,D=0):T>1&&b[T-1][d+1]&&n(e,b[T-1][d+1])?(d++,b[T].push(l(b[T][D],b[T-1][d],A[s])),D++):(D++,b[T].push(e));this.chart.stages=b,this.chart.rawPositions=[].concat.apply([],b),this.resizeRadius(),C=this.chart.rawPositions}return C},i.prototype.pointAttribs=function(o,e){var s=this.options,n=o&&o.isParentNode,l=s.marker;n&&s.layoutAlgorithm&&s.layoutAlgorithm.parentNodeOptions&&(l=s.layoutAlgorithm.parentNodeOptions.marker);var b=l.fillOpacity,T=h.pointAttribs.call(this,o,e);return b!==1&&(T["fill-opacity"]=b),T},i.prototype.positionBubble=function(o,e,s){var n=Math.sqrt,l=Math.asin,b=Math.acos,T=Math.pow,D=Math.abs,d=n(T(o[0]-e[0],2)+T(o[1]-e[1],2)),C=b((T(d,2)+T(s[2]+e[2],2)-T(s[2]+o[2],2))/(2*(s[2]+e[2])*d)),A=l(D(o[0]-e[0])/d),N=(o[1]-e[1]<0?0:Math.PI)+C+A*((o[0]-e[0])*(o[1]-e[1])<0?1:-1),_=Math.cos(N),L=Math.sin(N);return[e[0]+(e[2]+s[2])*L,e[1]-(e[2]+s[2])*_,s[2],s[3],s[4]]},i.prototype.render=function(){var o=[];h.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(e){x(e.dataLabels)&&e.dataLabels.forEach(function(s){o.push(s)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(o))},i.prototype.resizeRadius=function(){var o,e,s,n,l,b=this.chart,T=b.rawPositions,D=Math.min,d=Math.max,C=b.plotLeft,A=b.plotTop,N=b.plotHeight,_=b.plotWidth;o=s=Number.POSITIVE_INFINITY,e=n=Number.NEGATIVE_INFINITY;for(var L=0,O=T;L<O.length;L++)l=(Q=O[L])[2],o=D(o,Q[0]-l),e=d(e,Q[0]+l),s=D(s,Q[1]-l),n=d(n,Q[1]+l);var j=[e-o,n-s],Y=[(_-C)/j[0],(N-A)/j[1]],X=D.apply([],Y);if(Math.abs(X-1)>1e-10){for(var G=0,q=T;G<q.length;G++){var Q;(Q=q[G])[2]*=X}this.placeBubbles(T)}else b.diffY=N/2+A-s-(n-s)/2,b.diffX=_/2+C-o-(e-o)/2},i.prototype.seriesBox=function(){var o,e=this.chart,s=this.data,n=Math.max,l=Math.min,b=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return s.forEach(function(T){v(T.plotX)&&v(T.plotY)&&T.marker.radius&&(o=T.marker.radius,b[0]=l(b[0],T.plotX-o),b[1]=n(b[1],T.plotX+o),b[2]=l(b[2],T.plotY-o),b[3]=n(b[3],T.plotY+o))}),p(b.width/b.height)?b:null},i.prototype.setVisible=function(){var o=this;h.setVisible.apply(o,arguments),o.parentNodeLayout&&o.graph?o.visible?(o.graph.show(),o.parentNode.dataLabel&&o.parentNode.dataLabel.show()):(o.graph.hide(),o.parentNodeLayout.removeElementFromCollection(o.parentNode,o.parentNodeLayout.nodes),o.parentNode.dataLabel&&o.parentNode.dataLabel.hide()):o.layout&&(o.visible?o.layout.addElementsToCollection(o.points,o.layout.nodes):o.points.forEach(function(e){o.layout.removeElementFromCollection(e,o.layout.nodes)}))},i.prototype.translate=function(){var o,e,s,n=this.chart,l=this.data,b=this.index,T=this.options.useSimulation;this.processedXData=this.xData,this.generatePoints(),v(n.allDataPoints)||(n.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),T?s=n.allDataPoints:(s=this.placeBubbles(n.allDataPoints),this.options.draggable=!1);for(var D=0,d=s;D<d.length;D++){var C=d[D];C[3]===b&&(o=l[C[4]],e=r(C[2],void 0),T||(o.plotX=C[0]-n.plotLeft+n.diffX,o.plotY=C[1]-n.plotTop+n.diffY),p(e)&&(o.marker=w(o.marker,{radius:e,width:2*e,height:2*e}),o.radius=e))}T&&this.deferLayout(),S(this,"afterTranslate")},i.defaultOptions=g(f.defaultOptions,Z),i}(f);return w(a.prototype,{pointClass:$,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:h.alignDataLabel,indexateNodes:y,onMouseDown:R.onMouseDown,onMouseMove:R.onMouseMove,redrawHalo:R.redrawHalo,searchPoint:y}),z.registerSeriesType("packedbubble",a),a}),it(B,"Series/Polygon/PolygonSeries.js",[B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(m,u){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var S in w)w.hasOwnProperty(S)&&(v[S]=w[S])},$(m,u)},function(m,u){function v(){this.constructor=m}$(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),U=W.noop,z=H.series,I=H.seriesTypes,E=I.area,M=I.line,P=I.scatter,y=V.extend,h=V.merge,f=function(m){function u(){var v=m!==null&&m.apply(this,arguments)||this;return v.data=void 0,v.options=void 0,v.points=void 0,v}return Z(u,m),u.prototype.getGraphPath=function(){for(var v=M.prototype.getGraphPath.call(this),w=v.length+1;w--;)(w===v.length||v[w][0]==="M")&&w>0&&v.splice(w,0,["Z"]);return this.areaPath=v,v},u.prototype.drawGraph=function(){this.options.fillColor=this.color,E.prototype.drawGraph.call(this)},u.defaultOptions=h(P.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),u}(P);return y(f.prototype,{type:"polygon",drawLegendSymbol:R.drawRectangle,drawTracker:z.prototype.drawTracker,setStackedPoints:U}),H.registerSeriesType("polygon",f),f}),it(B,"Core/Axis/WaterfallAxis.js",[B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.objectEach;return function(Z){var U=function(){function P(y){this.axis=y,this.stacks={changed:!1}}return P.prototype.renderStackTotals=function(){var y=this.axis,h=y.waterfall.stacks,f=y.stacking&&y.stacking.stackTotalGroup,m=new W(y,y.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=m,f&&$(h,function(u){$(u,function(v,w){m.total=v.stackTotal,m.x=+w,v.label&&(m.label=v.label),W.prototype.render.call(m,f),v.label=m.label,delete m.label})}),m.total=null},P}();function z(){var P=this.waterfall.stacks;P&&(P.changed=!1,delete P.alreadyChanged)}function I(){var P=this,y=P.options.stackLabels;y&&y.enabled&&P.waterfall.stacks&&P.waterfall.renderStackTotals()}function E(){for(var P=this.axes,y=this.series,h=y.length;h--;)y[h].options.stacking&&(P.forEach(function(f){f.isXAxis||(f.waterfall.stacks.changed=!0)}),h=0)}function M(){var P=this;P.waterfall||(P.waterfall=new U(P))}Z.Composition=U,Z.compose=function(P,y){V(P,"init",M),V(P,"afterBuildStacks",z),V(P,"afterRender",I),V(y,"beforeRedraw",E)}}(H||(H={})),H}),it(B,"Series/Waterfall/WaterfallPoint.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(z,I){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},V(z,I)},function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=H.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return $(I,z),I.prototype.getClassName=function(){var E=R.prototype.getClassName.call(this);return this.isSum?E+=" highcharts-sum":this.isIntermediateSum&&(E+=" highcharts-intermediate-sum"),E},I.prototype.isValid=function(){return Z(this.y)||this.isSum||!!this.isIntermediateSum},I}(W.prototype.pointClass);return U}),it(B,"Series/Waterfall/WaterfallSeries.js",[B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"],B["Core/Axis/WaterfallAxis.js"],B["Series/Waterfall/WaterfallPoint.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(p,g){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},U(p,g)},function(p,g){function r(){this.constructor=p}U(p,g),p.prototype=g===null?Object.create(g):(r.prototype=g.prototype,new r)}),I=H.seriesTypes,E=I.column,M=I.line,P=V.arrayMax,y=V.arrayMin,h=V.correctFloat,f=V.extend,m=V.isNumber,u=V.merge,v=V.objectEach,w=V.pick;function S(p,g){return Object.hasOwnProperty.call(p,g)}var x=function(p){function g(){var r=p!==null&&p.apply(this,arguments)||this;return r.chart=void 0,r.data=void 0,r.options=void 0,r.points=void 0,r.stackedYNeg=void 0,r.stackedYPos=void 0,r.stackKey=void 0,r.xData=void 0,r.yAxis=void 0,r.yData=void 0,r}return z(g,p),g.prototype.generatePoints=function(){E.prototype.generatePoints.apply(this);for(var r=0,a=this.points.length;r<a;r++){var t=this.points[r],i=this.processedYData[r];m(i)&&(t.isIntermediateSum||t.isSum)&&(t.y=h(i))}},g.prototype.translate=function(){var r,a,t,i,o=this,e=o.options,s=o.yAxis,n=w(e.minPointLength,5),l=n/2,b=e.threshold||0,T=e.stacking,D=s.waterfall.stacks[o.stackKey],d=b,C=b;E.prototype.translate.apply(o);for(var A=o.points,N=0;N<A.length;N++){var _=A[N],L=o.processedYData[N],O=_.shapeArgs;if(O&&m(L)){var j=[0,L],Y=_.y;if(T){if(D){var X=D[N];T==="overlap"?(a=X.stackState[X.stateIndex--],r=Y>=0?a:a-Y,S(X,"absolutePos")&&delete X.absolutePos,S(X,"absoluteNeg")&&delete X.absoluteNeg):(Y>=0?(a=X.threshold+X.posTotal,X.posTotal-=Y,r=a):(a=X.threshold+X.negTotal,X.negTotal-=Y,r=a-Y),X.posTotal||m(X.absolutePos)&&S(X,"absolutePos")&&(X.posTotal=X.absolutePos,delete X.absolutePos),X.negTotal||m(X.absoluteNeg)&&S(X,"absoluteNeg")&&(X.negTotal=X.absoluteNeg,delete X.absoluteNeg)),_.isSum||(X.connectorThreshold=X.threshold+X.stackTotal),s.reversed?(t=Y>=0?r-Y:r+Y,i=r):(t=r,i=r-Y),_.below=t<=b,O.y=s.translate(t,!1,!0,!1,!0),O.height=Math.abs(O.y-s.translate(i,!1,!0,!1,!0));var G=s.waterfall.dummyStackItem;G&&(G.x=N,G.label=D[N].label,G.setOffset(o.pointXOffset||0,o.barW||0,o.stackedYNeg[N],o.stackedYPos[N],void 0,this.xAxis))}}else r=Math.max(C,C+Y)+j[0],O.y=s.translate(r,!1,!0,!1,!0),_.isSum?(O.y=s.translate(j[1],!1,!0,!1,!0),O.height=Math.min(s.translate(j[0],!1,!0,!1,!0),s.len)-O.y,_.below=j[1]<=b):_.isIntermediateSum?(Y>=0?(t=j[1]+d,i=d):(t=d,i=j[1]+d),s.reversed&&(t^=i,t^=i^=t),O.y=s.translate(t,!1,!0,!1,!0),O.height=Math.abs(O.y-Math.min(s.translate(i,!1,!0,!1,!0),s.len)),d+=j[1],_.below=t<=b):(O.height=L>0?s.translate(C,!1,!0,!1,!0)-O.y:s.translate(C,!1,!0,!1,!0)-s.translate(C-L,!1,!0,!1,!0),C+=L,_.below=C<b),O.height<0&&(O.y+=O.height,O.height*=-1);_.plotY=O.y=Math.round(O.y||0)-o.borderWidth%2/2,O.height=Math.max(Math.round(O.height||0),.001),_.yBottom=O.y+O.height,O.height<=n&&!_.isNull?(O.height=n,O.y-=l,_.plotY=O.y,_.y<0?_.minPointLengthOffset=-l:_.minPointLengthOffset=l):(_.isNull&&(O.width=0),_.minPointLengthOffset=0);var q=_.plotY+(_.negative?O.height:0);_.below&&(_.plotY+=O.height),_.tooltipPos&&(o.chart.inverted?_.tooltipPos[0]=s.len-q:_.tooltipPos[1]=q),_.isInside=this.isPointInside(_)}}},g.prototype.processData=function(r){var a,t,i,o,e,s,n,l=this,b=l.options,T=l.yData,D=b.data,d=T.length,C=b.threshold||0;for(i=t=o=e=0,n=0;n<d;n++)s=T[n],a=D&&D[n]?D[n]:{},s==="sum"||a.isSum?T[n]=h(i):s==="intermediateSum"||a.isIntermediateSum?(T[n]=h(t),t=0):(i+=s,t+=s),o=Math.min(i,o),e=Math.max(i,e);p.prototype.processData.call(this,r),b.stacking||(l.dataMin=o+C,l.dataMax=e)},g.prototype.toYData=function(r){return r.isSum?"sum":r.isIntermediateSum?"intermediateSum":r.y},g.prototype.updateParallelArrays=function(r,a){p.prototype.updateParallelArrays.call(this,r,a),this.yData[0]!=="sum"&&this.yData[0]!=="intermediateSum"||(this.yData[0]=null)},g.prototype.pointAttribs=function(r,a){var t=this.options.upColor;t&&!r.options.color&&(r.color=r.y>0?t:void 0);var i=E.prototype.pointAttribs.call(this,r,a);return delete i.dashstyle,i},g.prototype.getGraphPath=function(){return[["M",0,0]]},g.prototype.getCrispPath=function(){var r,a,t,i,o,e,s,n,l,b=this.data,T=this.yAxis,D=b.length,d=Math.round(this.graph.strokeWidth())%2/2,C=Math.round(this.borderWidth)%2/2,A=this.xAxis.reversed,N=this.yAxis.reversed,_=this.options.stacking,L=[];for(l=1;l<D;l++)if(n=b[l].shapeArgs,i=b[l-1],s=b[l-1].shapeArgs,a=T.waterfall.stacks[this.stackKey],e=i.y>0?-s.height:0,a&&s&&n&&(t=a[l-1],_?(r=t.connectorThreshold,o=Math.round(T.translate(r,!1,!0,!1,!0)+(N?e:0))-d):o=s.y+i.minPointLengthOffset+C-d,L.push(["M",(s.x||0)+(A?0:s.width||0),o],["L",(n.x||0)+(A&&n.width||0),o])),s&&L.length&&(!_&&i.y<0&&!N||i.y>0&&N)){var O=L[L.length-2];O&&typeof O[2]=="number"&&(O[2]+=s.height||0);var j=L[L.length-1];j&&typeof j[2]=="number"&&(j[2]+=s.height||0)}return L},g.prototype.drawGraph=function(){M.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},g.prototype.setStackedPoints=function(){var r,a,t,i,o,e,s,n,l,b,T,D,d=this,C=d.options,A=d.yAxis.waterfall.stacks,N=C.threshold||0,_=N,L=_,O=d.stackKey,j=d.xData,Y=j.length;function X(Q,J,rt,lt){if(r){if(o)for(;rt<o;rt++)r.stackState[rt]+=lt;else r.stackState[0]=Q,o=r.stackState.length;r.stackState.push(r.stackState[o-1]+J)}}if(d.yAxis.stacking.usePercentage=!1,a=t=i=_,d.visible||!d.chart.options.chart.ignoreHiddenSeries){D=A.changed,(T=A.alreadyChanged)&&T.indexOf(O)<0&&(D=!0),A[O]||(A[O]={});var G=A[O];if(G)for(var q=0;q<Y;q++)G[b=j[q]]&&!D||(G[b]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:D&&G[b]?G[b].label:void 0}),r=G[b],(l=d.yData[q])>=0?r.posTotal+=l:r.negTotal+=l,n=C.data[q],e=r.absolutePos=r.posTotal,s=r.absoluteNeg=r.negTotal,r.stackTotal=e+s,o=r.stackState.length,n&&n.isIntermediateSum?(X(i,t,0,i),i=t,t=N,_^=L,_^=L^=_):n&&n.isSum?(X(N,a,o,0),_=N):(X(_,l,0,a),n&&(a+=l,t+=l)),r.stateIndex++,r.threshold=_,_+=r.stackTotal;A.changed=!1,A.alreadyChanged||(A.alreadyChanged=[]),A.alreadyChanged.push(O)}},g.prototype.getExtremes=function(){var r,a,t,i=this.options.stacking;return i?(r=this.yAxis.waterfall.stacks,a=this.stackedYNeg=[],t=this.stackedYPos=[],v(r[this.stackKey],i==="overlap"?function(o){a.push(y(o.stackState)),t.push(P(o.stackState))}:function(o){a.push(o.negTotal+o.threshold),t.push(o.posTotal+o.threshold)}),{dataMin:y(a),dataMax:P(t)}):{dataMin:this.dataMin,dataMax:this.dataMax}},g.defaultOptions=u(E.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),g}(E);return f(x.prototype,{getZonesGraphs:M.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:Z}),H.registerSeriesType("waterfall",x),$.compose(W,R),x}),it(B,"Core/Axis/RadialAxis.js",[B["Core/Axis/AxisDefaults.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=H.noop,z=V.addEvent,I=V.correctFloat,E=V.defined,M=V.extend,P=V.fireEvent,y=V.merge,h=V.pick,f=V.relativeLength,m=V.wrap;return function(u){var v=[],w={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},S={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},x={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};function p(){this.autoConnect=this.isCircular&&h(this.userMax,this.options.max)===void 0&&I(this.endAngleRad-this.startAngleRad)===I(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function g(){var G=this;return function(){if(G.isRadial&&G.tickPositions&&G.options.labels&&G.options.labels.allowOverlap!==!0)return G.tickPositions.map(function(q){return G.ticks[q]&&G.ticks[q].label}).filter(function(q){return!!q})}}function r(){return U}function a(G,q,Q){var J,rt,lt,gt=this.pane.center,mt=G.value;return this.isCircular?(E(mt)?G.point&&(G.point.shapeArgs||{}).start&&(mt=this.chart.inverted?this.translate(G.point.rectPlotY,!0):G.point.x):(rt=G.chartX||0,lt=G.chartY||0,mt=this.translate(Math.atan2(lt-Q,rt-q)-this.startAngleRad,!0)),rt=(J=this.getPosition(mt)).x,lt=J.y):(E(mt)||(rt=G.chartX,lt=G.chartY),E(rt)&&E(lt)&&(Q=gt[1]+this.chart.plotTop,mt=this.translate(Math.min(Math.sqrt(Math.pow(rt-q,2)+Math.pow(lt-Q,2)),gt[2]/2)-gt[3]/2,!0))),[mt,rt||0,lt||0]}function t(G,q,Q){var J,rt,lt=this.pane.center,gt=this.chart,mt=this.left||0,bt=this.top||0,yt=h(q,lt[2]/2-this.offset);return Q===void 0&&(Q=this.horiz?0:this.center&&-this.center[3]/2),Q&&(yt+=Q),this.isCircular||q!==void 0?((rt=this.chart.renderer.symbols.arc(mt+lt[0],bt+lt[1],yt,yt,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[mt+lt[0]],rt.yBounds=[bt+lt[1]-yt]):(J=this.postTranslate(this.angleRad,yt),rt=[["M",this.center[0]+gt.plotLeft,this.center[1]+gt.plotTop],["L",J.x,J.y]]),rt}function i(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function o(G,q,Q){var J,rt,lt,gt,mt,bt,yt=this.chart,ht=function(jt){if(typeof jt=="string"){var Ot=parseInt(jt,10);return wt.test(jt)&&(Ot=Ot*dt/100),Ot}return jt},et=this.center,at=this.startAngleRad,dt=et[2]/2,vt=Math.min(this.offset,0),Ct=this.left||0,xt=this.top||0,wt=/%$/,Mt=this.isCircular,St=h(ht(Q.outerRadius),dt),kt=ht(Q.innerRadius),Lt=h(ht(Q.thickness),10);if(this.options.gridLineInterpolation==="polygon")bt=this.getPlotLinePath({value:G}).concat(this.getPlotLinePath({value:q,reverse:!0}));else{G=Math.max(G,this.min),q=Math.min(q,this.max);var Pt=this.translate(G),Dt=this.translate(q);Mt||(St=Pt||0,kt=Dt||0),Q.shape!=="circle"&&Mt?(J=at+(Pt||0),rt=at+(Dt||0)):(J=-Math.PI/2,rt=1.5*Math.PI,mt=!0),St-=vt,Lt-=vt,bt=yt.renderer.symbols.arc(Ct+et[0],xt+et[1],St,St,{start:Math.min(J,rt),end:Math.max(J,rt),innerR:h(kt,St-Lt),open:mt}),Mt&&(lt=(rt+J)/2,gt=Ct+et[0]+et[2]/2*Math.cos(lt),bt.xBounds=lt>-Math.PI/2&&lt<Math.PI/2?[gt,yt.plotWidth]:[0,gt],bt.yBounds=[xt+et[1]+et[2]/2*Math.sin(lt)],bt.yBounds[0]+=lt>-Math.PI&&lt<0||lt>Math.PI?-10:10)}return bt}function e(G){var q,Q,J,rt,lt,gt,mt,bt,yt,ht=this,et=this.pane.center,at=this.chart,dt=at.inverted,vt=G.reverse,Ct=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},xt=Ct.innerRadius||"0%",wt=Ct.outerRadius||"100%",Mt=et[0]+at.plotLeft,St=et[1]+at.plotTop,kt=this.height,Lt=G.isCrosshair,Pt=et[3]/2,Dt=G.value,jt=this.getPosition(Dt),Ot=jt.x,It=jt.y;if(Lt&&(Dt=(bt=this.getCrosshairPosition(G,Mt,St))[0],Ot=bt[1],It=bt[2]),this.isCircular)Q=Math.sqrt(Math.pow(Ot-Mt,2)+Math.pow(It-St,2)),J=typeof xt=="string"?f(xt,1):xt/Q,rt=typeof wt=="string"?f(wt,1):wt/Q,et&&Pt&&(J<(q=Pt/Q)&&(J=q),rt<q&&(rt=q)),yt=[["M",Mt+J*(Ot-Mt),St-J*(St-It)],["L",Ot-(1-rt)*(Ot-Mt),It+(1-rt)*(St-It)]];else if((Dt=this.translate(Dt))&&(Dt<0||Dt>kt)&&(Dt=0),this.options.gridLineInterpolation==="circle")yt=this.getLinePath(0,Dt,Pt);else if(yt=[],at[dt?"yAxis":"xAxis"].forEach(function(Zt){Zt.pane===ht.pane&&(lt=Zt)}),lt){mt=lt.tickPositions,lt.autoConnect&&(mt=mt.concat([mt[0]])),vt&&(mt=mt.slice().reverse()),Dt&&(Dt+=Pt);for(var Nt=0;Nt<mt.length;Nt++)gt=lt.getPosition(mt[Nt],Dt),yt.push(Nt?["L",gt.x,gt.y]:["M",gt.x,gt.y])}return yt}function s(G,q){var Q=this.translate(G);return this.postTranslate(this.isCircular?Q:this.angleRad,h(this.isCircular?q:Q<0?0:Q,this.center[2]/2)-this.offset)}function n(){var G=this.center,q=this.chart,Q=this.options.title;return{x:q.plotLeft+G[0]+(Q.x||0),y:q.plotTop+G[1]-{high:.5,middle:.25,low:0}[Q.align]*G[2]+(Q.y||0)}}function l(G){G.beforeSetTickPositions=p,G.createLabelCollector=g,G.getCrosshairPosition=a,G.getLinePath=t,G.getOffset=i,G.getPlotBandPath=o,G.getPlotLinePath=e,G.getPosition=s,G.getTitlePosition=n,G.postTranslate=_,G.setAxisSize=O,G.setAxisTranslation=j,G.setOptions=Y}function b(){var G=this.chart,q=this.options,Q=G.angular&&this.isXAxis,J=this.pane,rt=J&&J.options;if(!Q&&J&&(G.angular||G.polar)){var lt=2*Math.PI,gt=(h(rt.startAngle,0)-90)*Math.PI/180,mt=(h(rt.endAngle,h(rt.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(q.angle||0)*Math.PI/180,this.startAngleRad=gt,this.endAngleRad=mt,this.offset=q.offset||0;var bt=(gt%lt+lt)%lt,yt=(mt%lt+lt)%lt;bt>Math.PI&&(bt-=lt),yt>Math.PI&&(yt-=lt),this.normalizedStartAngleRad=bt,this.normalizedEndAngleRad=yt}}function T(G){this.isRadial&&(G.align=void 0,G.preventDefault())}function D(){if(this.chart&&this.chart.labelCollectors){var G=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;G>=0&&this.chart.labelCollectors.splice(G,1)}}function d(G){var q,Q,J=this.chart,rt=J.inverted,lt=J.angular,gt=J.polar,mt=this.isXAxis,bt=this.coll,yt=lt&&mt,ht=G.userOptions.pane||0,et=this.pane=J.pane&&J.pane[ht];bt!=="colorAxis"?(lt?(yt?((Q=this).isHidden=!0,Q.createLabelCollector=r,Q.getOffset=U,Q.redraw=L,Q.render=L,Q.setScale=U,Q.setCategories=U,Q.setTitle=U):l(this),(q=!mt)&&(this.defaultPolarOptions=S)):gt&&(l(this),q=this.horiz,this.defaultPolarOptions=q?w:y(bt==="xAxis"?W.defaultXAxisOptions:W.defaultYAxisOptions,x),rt&&bt==="yAxis"&&(this.defaultPolarOptions.stackLabels=W.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),lt||gt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&J.labelCollectors.push(this.labelCollector)):this.isRadial=!1,et&&q&&(et.axis=this),this.isCircular=q):this.isRadial=!1}function C(){this.isRadial&&this.beforeSetTickPositions()}function A(G){var q=this.label;if(q){var Q,J=this.axis,rt=q.getBBox(),lt=J.options.labels,gt=(J.translate(this.pos)+J.startAngleRad+Math.PI/2)/Math.PI*180%360,mt=Math.round(gt),bt=E(lt.y)?0:.3*-rt.height,yt=lt.y,ht=20,et=lt.align,at="end",dt=mt<0?mt+360:mt,vt=dt,Ct=0,xt=0;J.isRadial&&(Q=J.getPosition(this.pos,J.center[2]/2+f(h(lt.distance,-25),J.center[2]/2,-J.center[2]/2)),lt.rotation==="auto"?q.attr({rotation:gt}):E(yt)||(yt=J.chart.renderer.fontMetrics(q.styles&&q.styles.fontSize).b-rt.height/2),E(et)||(J.isCircular?(rt.width>J.len*J.tickInterval/(J.max-J.min)&&(ht=0),et=gt>ht&&gt<180-ht?"left":gt>180+ht&&gt<360-ht?"right":"center"):et="center",q.attr({align:et})),et==="auto"&&J.tickPositions.length===2&&J.isCircular&&(dt>90&&dt<180?dt=180-dt:dt>270&&dt<=360&&(dt=540-dt),vt>180&&vt<=360&&(vt=360-vt),J.pane.options.startAngle!==mt&&J.pane.options.startAngle!==mt+360&&J.pane.options.startAngle!==mt-360||(at="start"),et=mt>=-90&&mt<=90||mt>=-360&&mt<=-270||mt>=270&&mt<=360?at==="start"?"right":"left":at==="start"?"left":"right",vt>70&&vt<110&&(et="center"),dt<15||dt>=180&&dt<195?Ct=.3*rt.height:dt>=15&&dt<=35?Ct=at==="start"?0:.75*rt.height:dt>=195&&dt<=215?Ct=at==="start"?.75*rt.height:0:dt>35&&dt<=90?Ct=at==="start"?.25*-rt.height:rt.height:dt>215&&dt<=270&&(Ct=at==="start"?rt.height:.25*-rt.height),vt<15?xt=at==="start"?.15*-rt.height:.15*rt.height:vt>165&&vt<=180&&(xt=at==="start"?.15*rt.height:.15*-rt.height),q.attr({align:et}),q.translate(xt,Ct+bt)),G.pos.x=Q.x+(lt.x||0),G.pos.y=Q.y+(yt||0))}}function N(G){this.axis.getPosition&&M(G.pos,this.axis.getPosition(this.pos))}function _(G,q){var Q=this.chart,J=this.center;return G=this.startAngleRad+G,{x:Q.plotLeft+J[0]+Math.cos(G)*q,y:Q.plotTop+J[1]+Math.sin(G)*q}}function L(){this.isDirty=!1}function O(){var G,q;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),G=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(q=this.postTranslate(this.angleRad,G[3]/2),G[0]=q.x-this.chart.plotLeft,G[1]=q.y-this.chart.plotTop),this.len=this.width=this.height=(G[2]-G[3])*h(this.sector,1)/2)}function j(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function Y(G){var q=this.options=y(this.constructor.defaultOptions,this.defaultPolarOptions,Z[this.coll],G);q.plotBands||(q.plotBands=[]),P(this,"afterSetOptions")}function X(G,q,Q,J,rt,lt,gt){var mt,bt=this.axis;return bt.isRadial?["M",q,Q,"L",(mt=bt.getPosition(this.pos,bt.center[2]/2+J)).x,mt.y]:G.call(this,q,Q,J,rt,lt,gt)}u.compose=function(G,q){return v.indexOf(G)===-1&&(v.push(G),z(G,"afterInit",b),z(G,"autoLabelAlign",T),z(G,"destroy",D),z(G,"init",d),z(G,"initialAxisTranslation",C)),v.indexOf(q)===-1&&(v.push(q),z(q,"afterGetLabelPosition",A),z(q,"afterGetPosition",N),m(q.prototype,"getMarkPath",X)),G}}($||($={})),$}),it(B,"Series/PolarComposition.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Globals.js"],B["Extensions/Pane.js"],B["Core/Axis/RadialAxis.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=this&&this.__spreadArray||function(d,C,A){if(A||arguments.length===2)for(var N,_=0,L=C.length;_<L;_++)!N&&_ in C||(N||(N=Array.prototype.slice.call(C,0,_)),N[_]=C[_]);return d.concat(N||Array.prototype.slice.call(C))},U=W.animObject,z=$.addEvent,I=$.defined,E=$.find,M=$.isNumber,P=$.pick,y=$.splat,h=$.uniqueKey,f=$.wrap,m=[];function u(d,C,A,N){var _,L,O,j,Y,X,G=1.5,q=2.5,Q=N?1:0,J=(_=C>=0&&C<=d.length-1?C:C<0?d.length-1+C:0)-1<0?d.length-(1+Q):_-1,rt=_+1>d.length-1?Q:_+1,lt=d[J],gt=d[rt],mt=lt.plotX,bt=lt.plotY,yt=gt.plotX,ht=gt.plotY,et=d[_].plotX,at=d[_].plotY;L=(G*et+mt)/q,O=(G*at+bt)/q,j=(G*et+yt)/q,Y=(G*at+ht)/q;var dt=Math.sqrt(Math.pow(L-et,2)+Math.pow(O-at,2)),vt=Math.sqrt(Math.pow(j-et,2)+Math.pow(Y-at,2)),Ct=Math.atan2(O-at,L-et),xt=Math.atan2(Y-at,j-et);X=Math.PI/2+(Ct+xt)/2,Math.abs(Ct-X)>Math.PI/2&&(X-=Math.PI),L=et+Math.cos(X)*dt,O=at+Math.sin(X)*dt;var wt={rightContX:j=et+Math.cos(Math.PI+X)*vt,rightContY:Y=at+Math.sin(Math.PI+X)*vt,leftContX:L,leftContY:O,plotX:et,plotY:at};return A&&(wt.prevPointCont=u(d,J,!1,N)),wt}function v(){(this.pane||[]).forEach(function(d){d.render()})}function w(d){var C=d.args[0].xAxis,A=d.args[0].yAxis,N=d.args[0].chart;C&&A&&(A.gridLineInterpolation==="polygon"?(C.startOnTick=!0,C.endOnTick=!0):C.gridLineInterpolation==="polygon"&&N.inverted&&(A.startOnTick=!0,A.endOnTick=!0))}function S(){var d=this;this.pane||(this.pane=[]),this.options.pane=y(this.options.pane),this.options.pane.forEach(function(C){new H(C,d)},this)}function x(d){var C=d.args.marker,A=this.chart.xAxis[0],N=this.chart.yAxis[0],_=this.chart.inverted,L=_?N:A,O=_?A:N;if(this.chart.polar){d.preventDefault();var j=(C.attr?C.attr("start"):C.start)-L.startAngleRad,Y=C.attr?C.attr("r"):C.r,X=(C.attr?C.attr("end"):C.end)-L.startAngleRad,G=C.attr?C.attr("innerR"):C.innerR;d.result.x=j+L.pos,d.result.width=X-j,d.result.y=O.len+O.pos-G,d.result.height=G-Y}}function p(d){var C=this.chart;if(C.polar&&C.hoverPane&&C.hoverPane.axis){d.preventDefault();var A=C.hoverPane.center,N=this.mouseDownX||0,_=this.mouseDownY||0,L=d.args.chartY,O=d.args.chartX,j=2*Math.PI,Y=C.hoverPane.axis.startAngleRad,X=C.hoverPane.axis.endAngleRad,G=C.inverted?C.xAxis[0]:C.yAxis[0],q={},Q="arc";if(q.x=A[0]+C.plotLeft,q.y=A[1]+C.plotTop,this.zoomHor){var J=Y>0?X-Y:Math.abs(Y)+Math.abs(X),rt=Math.atan2(_-C.plotTop-A[1],N-C.plotLeft-A[0])-Y,lt=Math.atan2(L-C.plotTop-A[1],O-C.plotLeft-A[0])-Y;q.r=A[2]/2,q.innerR=A[3]/2,rt<=0&&(rt+=j),lt<=0&&(lt+=j),lt<rt&&(lt=[rt,rt=lt][0]),J<j&&Y+lt>X+(j-J)/2&&(lt=rt,rt=Y<=0?Y:0);var gt=q.start=Math.max(rt+Y,Y),mt=q.end=Math.min(lt+Y,X);if(G.options.gridLineInterpolation==="polygon"){(kt=C.hoverPane.axis).tickInterval;var bt=gt-kt.startAngleRad+kt.pos,yt=mt-gt,ht=G.getPlotLinePath({value:G.max}),et=kt.toValue(bt),at=kt.toValue(bt+yt);if(et<kt.getExtremes().min){var dt=kt.getExtremes(),vt=dt.min;et=dt.max-(vt-et)}if(at<kt.getExtremes().min){var Ct=kt.getExtremes(),xt=Ct.min;at=Ct.max-(xt-at)}at<et&&(at=[et,et=at][0]),(ht=t(ht,et,at,kt)).push(["L",A[0]+C.plotLeft,C.plotTop+A[1]]),q.d=ht,Q="path"}}if(this.zoomVert){var wt=C.inverted?C.xAxis[0]:C.yAxis[0],Mt=Math.sqrt(Math.pow(N-C.plotLeft-A[0],2)+Math.pow(_-C.plotTop-A[1],2)),St=Math.sqrt(Math.pow(O-C.plotLeft-A[0],2)+Math.pow(L-C.plotTop-A[1],2));St<Mt&&(Mt=[St,St=Mt][0]),St>A[2]/2&&(St=A[2]/2),Mt<A[3]/2&&(Mt=A[3]/2),this.zoomHor||(q.start=Y,q.end=X),q.r=St,q.innerR=Mt,wt.options.gridLineInterpolation==="polygon"&&(mt=wt.toValue(wt.len+wt.pos-Mt),gt=wt.toValue(wt.len+wt.pos-St),ht=wt.getPlotLinePath({value:gt}).concat(wt.getPlotLinePath({value:mt,reverse:!0})),q.d=ht,Q="path")}if(this.zoomHor&&this.zoomVert&&G.options.gridLineInterpolation==="polygon"){var kt=C.hoverPane.axis;if(gt=q.start||0,mt=q.end||0,bt=gt-kt.startAngleRad+kt.pos,yt=mt-gt,et=kt.toValue(bt),at=kt.toValue(bt+yt),q.d instanceof Array){var Lt=q.d.slice(0,q.d.length/2),Pt=q.d.slice(q.d.length/2,q.d.length);Pt=Z([],Pt,!0).reverse();var Dt=C.hoverPane.axis;Lt=t(Lt,et,at,Dt),(Pt=t(Pt,et,at,Dt))&&(Pt[0][0]="L"),Pt=Z([],Pt,!0).reverse(),q.d=Lt.concat(Pt),Q="path"}}d.attrs=q,d.shapeType=Q}}function g(){var d=this.chart;d.polar&&(this.polar=new D(this),d.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function r(){if(this.chart.polar&&this.xAxis){var d=this,C=d.chart;d.kdByAngle=C.tooltip&&C.tooltip.shared,d.kdByAngle?d.searchPoint=a:d.options.findNearestPointBy="xy";for(var A=d.points,N=A.length;N--;)d.preventPostTranslate||d.polar.toXY(A[N]),C.hasParallelCoordinates||d.yAxis.reversed||(P(A[N].y,Number.MIN_VALUE)<d.yAxis.min||A[N].x<d.xAxis.min||A[N].x>d.xAxis.max?(A[N].isNull=!0,A[N].plotY=NaN):A[N].isNull=A[N].isValid&&!A[N].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!d.eventsToUnbind.push(z(d,"afterRender",function(){var _,L,O,j,Y,X,G,q,Q;C.polar&&(_=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:_[0],y:_[1],r:_[2]/2,innerR:_[3]/2}):this.clipCircle=(L=C.renderer,O=_[0],j=_[1],Y=_[2]/2,X=_[3]/2,G=h(),q=L.createElement("clipPath").attr({id:G}).add(L.defs),(Q=X?L.arc(O,j,Y,X,0,2*Math.PI).add(q):L.circle(O,j,Y).add(q)).id=G,Q.clipPath=q,Q),this.group.clip(this.clipCircle),this.setClip=R.noop)})))}}function a(d){var C=this,A=C.chart,N=C.xAxis,_=N.pane&&N.pane.center,L=d.chartX-(_&&_[0]||0)-A.plotLeft,O=d.chartY-(_&&_[1]||0)-A.plotTop;return C.searchKDTree({clientX:180+Math.atan2(L,O)*(-180/Math.PI)})}function t(d,C,A,N){var _=N.tickInterval,L=N.tickPositions,O=E(L,function(Y){return Y>=A}),j=E(Z([],L,!0).reverse(),function(Y){return Y<=C});return I(O)||(O=L[L.length-1]),I(j)||(j=L[0],O+=_,d[0][0]="L",d.unshift(d[d.length-3])),(d=d.slice(L.indexOf(j),L.indexOf(O)+1))[0][0]="M",d}function i(d,C){return E(this.pane||[],function(A){return A.options.id===C})||d.call(this,C)}function o(d,C,A,N,_,L){var O,j,Y,X=this.chart,G=P(N.inside,!!this.options.stacking);X.polar?(O=C.rectPlotX/Math.PI*180,X.inverted?(this.forceDL=X.isInsidePlot(C.plotX,C.plotY),G&&C.shapeArgs?(j=C.shapeArgs,_={x:(Y=this.yAxis.postTranslate(((j.start||0)+(j.end||0))/2-this.xAxis.startAngleRad,C.barX+C.pointWidth/2)).x-X.plotLeft,y:Y.y-X.plotTop}):C.tooltipPos&&(_={x:C.tooltipPos[0],y:C.tooltipPos[1]}),N.align=P(N.align,"center"),N.verticalAlign=P(N.verticalAlign,"middle")):N=function(q,Q){var J,rt;return Q.align===null&&(J=q>20&&q<160?"left":q>200&&q<340?"right":"center",Q.align=J),Q.verticalAlign===null&&(rt=q<45||q>315?"bottom":q>135&&q<225?"top":"middle",Q.verticalAlign=rt),Q}(O,N),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,C,A,N,_,L),this.isRadialBar&&C.shapeArgs&&C.shapeArgs.start===C.shapeArgs.end?A.hide():A.show()):d.call(this,C,A,N,_,L)}function e(d){var C,A,N,_,L,O,j,Y,X,G,q,Q,J,rt=this,lt=rt.options,gt=lt.stacking,mt=rt.chart,bt=rt.xAxis,yt=rt.yAxis,ht=yt.reversed,et=yt.center,at=bt.startAngleRad,dt=bt.endAngleRad-at,vt=lt.threshold,Ct=0,xt=0,wt=0;if(rt.preventPostTranslate=!0,d.call(rt),bt.isRadial)for(N=(C=rt.points).length,_=yt.translate(yt.min),L=yt.translate(yt.max),vt=lt.threshold||0,mt.inverted&&M(vt)&&(Ct=yt.translate(vt),I(Ct)&&(Ct<0?Ct=0:Ct>dt&&(Ct=dt),rt.translatedThreshold=Ct+at));N--;)q=(A=C[N]).barX,j=A.x,Y=A.y,A.shapeType="arc",mt.inverted?(A.plotY=yt.translate(Y),gt&&yt.stacking?(G=yt.stacking.stacks[(Y<0?"-":"")+rt.stackKey],rt.visible&&G&&G[j]&&(A.isNull||(X=G[j].points[rt.getStackIndicator(void 0,j,rt.index).key],xt=yt.translate(X[0]),wt=yt.translate(X[1]),I(xt)&&(xt=$.clamp(xt,0,dt))))):(xt=Ct,wt=A.plotY),xt>wt&&(wt=[xt,xt=wt][0]),ht?wt>_?wt=_:xt<L?xt=L:(xt>_||wt<L)&&(xt=wt=dt):xt<_?xt=_:wt>L?wt=L:(wt<_||xt>L)&&(xt=wt=0),yt.min>yt.max&&(xt=wt=ht?dt:0),xt+=at,wt+=at,et&&(A.barX=q+=et[3]/2),Q=Math.max(q,0),J=Math.max(q+A.pointWidth,0),A.shapeArgs={x:et&&et[0],y:et&&et[1],r:J,innerR:Q,start:xt,end:wt},A.opacity=xt===wt?0:void 0,A.plotY=(I(rt.translatedThreshold)&&(xt<rt.translatedThreshold?xt:wt))-at):(xt=q+at,A.shapeArgs=rt.polar.arc(A.yBottom,A.plotY,xt,xt+A.pointWidth)),rt.polar.toXY(A),mt.inverted?(O=yt.postTranslate(A.rectPlotY,q+A.pointWidth/2),A.tooltipPos=[O.x-mt.plotLeft,O.y-mt.plotTop]):A.tooltipPos=[A.plotX,A.plotY],et&&(A.ttBelow=A.plotY>et[1])}function s(d,C){var A,N,_=this;if(this.chart.polar){C=C||this.points;for(var L=0;L<C.length;L++)if(!C[L].isNull){A=L;break}this.options.connectEnds!==!1&&A!==void 0&&(this.connectEnds=!0,C.splice(C.length,0,C[A]),N=!0),C.forEach(function(j){j.polarPlotY===void 0&&_.polar.toXY(j)})}var O=d.apply(this,[].slice.call(arguments,1));return N&&C.pop(),O}function n(d,C){var A=this.chart,N={xAxis:[],yAxis:[]};return A.polar?A.axes.forEach(function(_){if(_.coll!=="colorAxis"){var L=_.isXAxis,O=_.center,j=C.chartX-O[0]-A.plotLeft,Y=C.chartY-O[1]-A.plotTop;N[L?"xAxis":"yAxis"].push({axis:_,value:_.translate(L?Math.PI-Math.atan2(j,Y):Math.sqrt(Math.pow(j,2)+Math.pow(Y,2)),!0)})}}):N=d.call(this,C),N}function l(d,C){this.chart.polar||d.call(this,C)}function b(d,C){var A,N,_,L,O,j,Y=this,X=this.chart,G=this.group,q=this.markerGroup,Q=this.xAxis&&this.xAxis.center,J=X.plotLeft,rt=X.plotTop,lt=this.options.animation;X.polar?Y.isRadialBar?C||(Y.startAngleRad=P(Y.translatedThreshold,Y.xAxis.startAngleRad),R.seriesTypes.pie.prototype.animate.call(Y,C)):X.renderer.isSVG&&(lt=U(lt),Y.is("column")?C||(N=Q[3]/2,Y.points.forEach(function(gt){_=gt.graphic,L=gt.shapeArgs,O=L&&L.r,j=L&&L.innerR,_&&L&&(_.attr({r:N,innerR:N}),_.animate({r:O,innerR:j},Y.options.animation))})):C?(A={translateX:Q[0]+J,translateY:Q[1]+rt,scaleX:.001,scaleY:.001},G.attr(A),q&&q.attr(A)):(A={translateX:J,translateY:rt,scaleX:1,scaleY:1},G.animate(A,lt),q&&q.animate(A,lt))):d.call(this,C)}function T(d,C,A,N){var _,L;if(this.chart.polar)if(N){var O=(L=u(C,N,!0,this.connectEnds)).prevPointCont&&L.prevPointCont.rightContX,j=L.prevPointCont&&L.prevPointCont.rightContY;_=["C",M(O)?O:L.plotX,M(j)?j:L.plotY,M(L.leftContX)?L.leftContX:L.plotX,M(L.leftContY)?L.leftContY:L.plotY,L.plotX,L.plotY]}else _=["M",A.plotX,A.plotY];else _=d.call(this,C,A,N);return _}var D=function(){function d(C){this.series=C}return d.compose=function(C,A,N,_,L,O,j,Y,X){if(V.compose(C,L),m.indexOf(A)===-1){m.push(A),z(A,"afterDrawChartBox",v),z(A,"getAxes",S),z(A,"init",w);var G=A.prototype;f(G,"get",i)}if(m.indexOf(N)===-1){m.push(N);var q=N.prototype;f(q,"getCoordinates",n),f(q,"pinch",l),z(N,"getSelectionMarkerAttrs",p),z(N,"getSelectionBox",x)}if(m.indexOf(_)===-1){m.push(_),z(_,"afterInit",g),z(_,"afterTranslate",r,{order:2});var Q=_.prototype;f(Q,"animate",b)}if(j&&m.indexOf(j)===-1){m.push(j);var J=j.prototype;f(J,"alignDataLabel",o),f(J,"animate",b),f(J,"translate",e)}if(Y&&m.indexOf(Y)===-1){m.push(Y);var rt=Y.prototype;f(rt,"getGraphPath",s)}if(X&&m.indexOf(X)===-1){m.push(X);var lt=X.prototype;f(lt,"getPointSpline",T),O&&m.indexOf(O)===-1&&(m.push(O),O.prototype.getPointSpline=lt.getPointSpline)}},d.prototype.arc=function(C,A,N,_){var L=this.series,O=L.xAxis.center,j=L.yAxis.len,Y=O[3]/2,X=j-A+Y,G=j-P(C,j)+Y;return L.yAxis.reversed&&(X<0&&(X=Y),G<0&&(G=Y)),{x:O[0],y:O[1],r:X,innerR:G,start:N,end:_}},d.prototype.toXY=function(C){var A,N=this.series,_=N.chart,L=N.xAxis,O=N.yAxis,j=C.plotX,Y=_.inverted,X=C.y,G=C.plotY,q=Y?j:O.len-G;if(Y&&N&&!N.isRadialBar&&(C.plotY=G=M(X)?O.translate(X):0),C.rectPlotX=j,C.rectPlotY=G,O.center&&(q+=O.center[3]/2),M(G)){var Q=Y?O.postTranslate(G,q):L.postTranslate(j,q);C.plotX=C.polarPlotX=Q.x-_.plotLeft,C.plotY=C.polarPlotY=Q.y-_.plotTop}N.kdByAngle?((A=(j/Math.PI*180+L.pane.options.startAngle)%360)<0&&(A+=360),C.clientX=A):C.clientX=C.plotX},d}();return D}),it(B,"masters/highcharts-more.src.js",[B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Bubble/BubbleSeries.js"],B["Series/PackedBubble/PackedBubbleSeries.js"],B["Series/PolarComposition.js"]],function(W,R,H,V,$){var Z=W;H.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),V.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),$.compose(Z.Axis,Z.Chart,Z.Pointer,Z.Series,Z.Tick,R.seriesTypes.areasplinerange,R.seriesTypes.column,R.seriesTypes.line,R.seriesTypes.spline)})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[st(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},6956:(ot,nt,st)=>{st.d(nt,{A:()=>ct});const ct=Array.isArray},6979:(ot,nt,st)=>{st.d(nt,{A:()=>ct});const ct=function(pt,ut){return pt===ut||pt!=pt&&ut!=ut}},7313:(ot,nt,st)=>{st.d(nt,{A:()=>ct});const ct=function(pt){return pt!=null&&typeof pt=="object"}},7783:function(ot,nt,st){var ct=this&&this.__createBinding||(Object.create?function(B,it,W,R){R===void 0&&(R=W);var H=Object.getOwnPropertyDescriptor(it,W);H&&!("get"in H?!it.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return it[W]}}),Object.defineProperty(B,R,H)}:function(B,it,W,R){R===void 0&&(R=W),B[R]=it[W]}),pt=this&&this.__exportStar||function(B,it){for(var W in B)W==="default"||Object.prototype.hasOwnProperty.call(it,W)||ct(it,B,W)},ut=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0});var ft=ut(st(4608));nt.default=ft.default,pt(st(4783),nt)},7942:(ot,nt,st)=>{st.d(nt,{A:()=>ct});const ct=function(pt){var ut=typeof pt;return pt!=null&&(ut=="object"||ut=="function")}},8552:(ot,nt,st)=>{st.r(nt),st.d(nt,{default:()=>ut});var ct=st(5118),pt=st(9322);const ut=function(ft,B,it){var W=ft==null?void 0:function(R,H){for(var V=0,$=(H=(0,ct.A)(H,R)).length;R!=null&&V<$;)R=R[(0,pt.A)(H[V++])];return V&&V==$?R:void 0}(ft,B);return W===void 0?it:W}},9170:function(ot,nt,st){var ct=this&&this.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(5134)),ut=ct(st(605)),ft={enabled:!0,overflow:"justify",style:{color:ut.default.labelColor,fontFamily:ut.default.fontFamily,fontSize:"13px",fontWeight:"normal",cursor:"default",lineHeight:"14px"}},B={series:{turboThreshold:1e3,dataLabels:pt.default.merge(ft,{align:"center"}),states:{inactive:{enabled:!1}}},line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},connectNulls:!1,cursor:"default",clip:!0,dashStyle:null,enableMouseTracking:!0,events:{},legendIndex:0,linecap:"round",lineWidth:2,shadow:!1,stacking:null,label:{style:{color:ut.default.labelColor,fontFamily:ut.default.fontFamily}},marker:{enabled:!0,symbol:null,lineWidth:0,radius:4,lineColor:"#FFFFFF",fillColor:null,states:{hover:{enabled:!0},select:{fillColor:"transparent",lineColor:"transparent"}}},point:{events:{}},dataLabels:pt.default.merge(ft,{align:"center",enabled:!1}),cropThreshold:300,pointRange:0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0},column:{maxPointWidth:82,dataLabels:pt.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"bottom",overflow:"justify"})},bar:{maxPointWidth:82,dataLabels:pt.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"middle",overflow:"justify"})},pie:{dataLabels:{overflow:"ellipsis"}}};nt.default=B},9322:(ot,nt,st)=>{st.d(nt,{A:()=>pt});var ct=st(4089);const pt=function(ut){if(typeof ut=="string"||(0,ct.A)(ut))return ut;var ft=ut+"";return ft=="0"&&1/ut==-1/0?"-0":ft}},9465:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var ct=st(123);const pt=function(){try{var ft=(0,ct.A)(Object,"defineProperty");return ft({},"",{}),ft}catch(B){}}(),ut=function(ft,B,it){B=="__proto__"&&pt?pt(ft,B,{configurable:!0,enumerable:!0,value:it,writable:!0}):ft[B]=it}},9600:(ot,nt,st)=>{st.d(nt,{A:()=>ut});var ct=st(6713),pt=typeof self=="object"&&self&&self.Object===Object&&self;const ut=ct.A||pt||Function("return this")()},9681:function(ot,nt,st){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(st(605)),ut={align:"center",itemHoverStyle:{color:pt.default.legendColor},itemStyle:{color:pt.default.legendColor,fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis",fontFamily:pt.default.fontFamily},navigation:{style:{color:pt.default.legendNavigationColor,fontFamily:pt.default.fontFamily},activeColor:pt.default.legendNavigationColor,inactiveColor:pt.default.legendNavigationSecondaryColor},alignColumns:!1};nt.default=ut}},K={};function tt(ot){var nt=K[ot];if(nt!==void 0)return nt.exports;var st=K[ot]={exports:{}};return F[ot].call(st.exports,st,st.exports,tt),st.exports}return tt.d=(ot,nt)=>{for(var st in nt)tt.o(nt,st)&&!tt.o(ot,st)&&Object.defineProperty(ot,st,{enumerable:!0,get:nt[st]})},tt.o=(ot,nt)=>Object.prototype.hasOwnProperty.call(ot,nt),tt.r=ot=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ot,"__esModule",{value:!0})},tt(938)})())})(Gr,Gr.exports);var Cg=Gr.exports;const uh=Kr(Cg);/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:fh,setPrototypeOf:Fs,isFrozen:wg,getPrototypeOf:Sg,getOwnPropertyDescriptor:Mg}=Object;let{freeze:Pe,seal:Fe,create:gh}=Object,{apply:Wr,construct:Xr}=typeof Reflect!="undefined"&&Reflect;Pe||(Pe=function(k){return k});Fe||(Fe=function(k){return k});Wr||(Wr=function(k,F,K){return k.apply(F,K)});Xr||(Xr=function(k,F){return new k(...F)});const Co=Ie(Array.prototype.forEach),Gs=Ie(Array.prototype.pop),ji=Ie(Array.prototype.push),Do=Ie(String.prototype.toLowerCase),yr=Ie(String.prototype.toString),Ws=Ie(String.prototype.match),Ii=Ie(String.prototype.replace),Ag=Ie(String.prototype.indexOf),Tg=Ie(String.prototype.trim),Ge=Ie(Object.prototype.hasOwnProperty),ke=Ie(RegExp.prototype.test),Ni=kg(TypeError);function Ie(c){return function(k){for(var F=arguments.length,K=new Array(F>1?F-1:0),tt=1;tt<F;tt++)K[tt-1]=arguments[tt];return Wr(c,k,K)}}function kg(c){return function(){for(var k=arguments.length,F=new Array(k),K=0;K<k;K++)F[K]=arguments[K];return Xr(c,F)}}function Jt(c,k){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Do;Fs&&Fs(c,null);let K=k.length;for(;K--;){let tt=k[K];if(typeof tt=="string"){const ot=F(tt);ot!==tt&&(wg(k)||(k[K]=ot),tt=ot)}c[tt]=!0}return c}function Pg(c){for(let k=0;k<c.length;k++)Ge(c,k)||(c[k]=null);return c}function gi(c){const k=gh(null);for(const[F,K]of fh(c))Ge(c,F)&&(Array.isArray(K)?k[F]=Pg(K):K&&typeof K=="object"&&K.constructor===Object?k[F]=gi(K):k[F]=K);return k}function Bi(c,k){for(;c!==null;){const K=Mg(c,k);if(K){if(K.get)return Ie(K.get);if(typeof K.value=="function")return Ie(K.value)}c=Sg(c)}function F(){return null}return F}const Xs=Pe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vr=Pe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),br=Pe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Lg=Pe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xr=Pe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Eg=Pe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hs=Pe(["#text"]),Ys=Pe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Cr=Pe(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Us=Pe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wo=Pe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Og=Fe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dg=Fe(/<%[\w\W]*|[\w\W]*%>/gm),jg=Fe(/\${[\w\W]*}/gm),Ig=Fe(/^data-[\-\w.\u00B7-\uFFFF]/),Ng=Fe(/^aria-[\-\w]+$/),mh=Fe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bg=Fe(/^(?:\w+script|data):/i),_g=Fe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yh=Fe(/^html$/i),Rg=Fe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Vs=Object.freeze({__proto__:null,MUSTACHE_EXPR:Og,ERB_EXPR:Dg,TMPLIT_EXPR:jg,DATA_ATTR:Ig,ARIA_ATTR:Ng,IS_ALLOWED_URI:mh,IS_SCRIPT_OR_DATA:Bg,ATTR_WHITESPACE:_g,DOCTYPE_NAME:yh,CUSTOM_ELEMENT:Rg});const _i={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zg=function(){return typeof window=="undefined"?null:window},Fg=function(k,F){if(typeof k!="object"||typeof k.createPolicy!="function")return null;let K=null;const tt="data-tt-policy-suffix";F&&F.hasAttribute(tt)&&(K=F.getAttribute(tt));const ot="dompurify"+(K?"#"+K:"");try{return k.createPolicy(ot,{createHTML(nt){return nt},createScriptURL(nt){return nt}})}catch(nt){return console.warn("TrustedTypes policy "+ot+" could not be created."),null}};function vh(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zg();const k=Wt=>vh(Wt);if(k.version="3.1.6",k.removed=[],!c||!c.document||c.document.nodeType!==_i.document)return k.isSupported=!1,k;let{document:F}=c;const K=F,tt=K.currentScript,{DocumentFragment:ot,HTMLTemplateElement:nt,Node:st,Element:ct,NodeFilter:pt,NamedNodeMap:ut=c.NamedNodeMap||c.MozNamedAttrMap,HTMLFormElement:ft,DOMParser:B,trustedTypes:it}=c,W=ct.prototype,R=Bi(W,"cloneNode"),H=Bi(W,"remove"),V=Bi(W,"nextSibling"),$=Bi(W,"childNodes"),Z=Bi(W,"parentNode");if(typeof nt=="function"){const Wt=F.createElement("template");Wt.content&&Wt.content.ownerDocument&&(F=Wt.content.ownerDocument)}let U,z="";const{implementation:I,createNodeIterator:E,createDocumentFragment:M,getElementsByTagName:P}=F,{importNode:y}=K;let h={};k.isSupported=typeof fh=="function"&&typeof Z=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:f,ERB_EXPR:m,TMPLIT_EXPR:u,DATA_ATTR:v,ARIA_ATTR:w,IS_SCRIPT_OR_DATA:S,ATTR_WHITESPACE:x,CUSTOM_ELEMENT:p}=Vs;let{IS_ALLOWED_URI:g}=Vs,r=null;const a=Jt({},[...Xs,...vr,...br,...xr,...Hs]);let t=null;const i=Jt({},[...Ys,...Cr,...Us,...wo]);let o=Object.seal(gh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e=null,s=null,n=!0,l=!0,b=!1,T=!0,D=!1,d=!0,C=!1,A=!1,N=!1,_=!1,L=!1,O=!1,j=!0,Y=!1;const X="user-content-";let G=!0,q=!1,Q={},J=null;const rt=Jt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let lt=null;const gt=Jt({},["audio","video","img","source","image","track"]);let mt=null;const bt=Jt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yt="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let at=et,dt=!1,vt=null;const Ct=Jt({},[yt,ht,et],yr);let xt=null;const wt=["application/xhtml+xml","text/html"],Mt="text/html";let St=null,kt=null;const Lt=F.createElement("form"),Pt=function(At){return At instanceof RegExp||At instanceof Function},Dt=function(){let At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kt&&kt===At)){if((!At||typeof At!="object")&&(At={}),At=gi(At),xt=wt.indexOf(At.PARSER_MEDIA_TYPE)===-1?Mt:At.PARSER_MEDIA_TYPE,St=xt==="application/xhtml+xml"?yr:Do,r=Ge(At,"ALLOWED_TAGS")?Jt({},At.ALLOWED_TAGS,St):a,t=Ge(At,"ALLOWED_ATTR")?Jt({},At.ALLOWED_ATTR,St):i,vt=Ge(At,"ALLOWED_NAMESPACES")?Jt({},At.ALLOWED_NAMESPACES,yr):Ct,mt=Ge(At,"ADD_URI_SAFE_ATTR")?Jt(gi(bt),At.ADD_URI_SAFE_ATTR,St):bt,lt=Ge(At,"ADD_DATA_URI_TAGS")?Jt(gi(gt),At.ADD_DATA_URI_TAGS,St):gt,J=Ge(At,"FORBID_CONTENTS")?Jt({},At.FORBID_CONTENTS,St):rt,e=Ge(At,"FORBID_TAGS")?Jt({},At.FORBID_TAGS,St):{},s=Ge(At,"FORBID_ATTR")?Jt({},At.FORBID_ATTR,St):{},Q=Ge(At,"USE_PROFILES")?At.USE_PROFILES:!1,n=At.ALLOW_ARIA_ATTR!==!1,l=At.ALLOW_DATA_ATTR!==!1,b=At.ALLOW_UNKNOWN_PROTOCOLS||!1,T=At.ALLOW_SELF_CLOSE_IN_ATTR!==!1,D=At.SAFE_FOR_TEMPLATES||!1,d=At.SAFE_FOR_XML!==!1,C=At.WHOLE_DOCUMENT||!1,_=At.RETURN_DOM||!1,L=At.RETURN_DOM_FRAGMENT||!1,O=At.RETURN_TRUSTED_TYPE||!1,N=At.FORCE_BODY||!1,j=At.SANITIZE_DOM!==!1,Y=At.SANITIZE_NAMED_PROPS||!1,G=At.KEEP_CONTENT!==!1,q=At.IN_PLACE||!1,g=At.ALLOWED_URI_REGEXP||mh,at=At.NAMESPACE||et,o=At.CUSTOM_ELEMENT_HANDLING||{},At.CUSTOM_ELEMENT_HANDLING&&Pt(At.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(o.tagNameCheck=At.CUSTOM_ELEMENT_HANDLING.tagNameCheck),At.CUSTOM_ELEMENT_HANDLING&&Pt(At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(o.attributeNameCheck=At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),At.CUSTOM_ELEMENT_HANDLING&&typeof At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(o.allowCustomizedBuiltInElements=At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),D&&(l=!1),L&&(_=!0),Q&&(r=Jt({},Hs),t=[],Q.html===!0&&(Jt(r,Xs),Jt(t,Ys)),Q.svg===!0&&(Jt(r,vr),Jt(t,Cr),Jt(t,wo)),Q.svgFilters===!0&&(Jt(r,br),Jt(t,Cr),Jt(t,wo)),Q.mathMl===!0&&(Jt(r,xr),Jt(t,Us),Jt(t,wo))),At.ADD_TAGS&&(r===a&&(r=gi(r)),Jt(r,At.ADD_TAGS,St)),At.ADD_ATTR&&(t===i&&(t=gi(t)),Jt(t,At.ADD_ATTR,St)),At.ADD_URI_SAFE_ATTR&&Jt(mt,At.ADD_URI_SAFE_ATTR,St),At.FORBID_CONTENTS&&(J===rt&&(J=gi(J)),Jt(J,At.FORBID_CONTENTS,St)),G&&(r["#text"]=!0),C&&Jt(r,["html","head","body"]),r.table&&(Jt(r,["tbody"]),delete e.tbody),At.TRUSTED_TYPES_POLICY){if(typeof At.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ni('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof At.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ni('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=At.TRUSTED_TYPES_POLICY,z=U.createHTML("")}else U===void 0&&(U=Fg(it,tt)),U!==null&&typeof z=="string"&&(z=U.createHTML(""));Pe&&Pe(At),kt=At}},jt=Jt({},["mi","mo","mn","ms","mtext"]),Ot=Jt({},["foreignobject","annotation-xml"]),It=Jt({},["title","style","font","a","script"]),Nt=Jt({},[...vr,...br,...Lg]),Zt=Jt({},[...xr,...Eg]),zt=function(At){let _t=Z(At);(!_t||!_t.tagName)&&(_t={namespaceURI:at,tagName:"template"});const Xt=Do(At.tagName),Qt=Do(_t.tagName);return vt[At.namespaceURI]?At.namespaceURI===ht?_t.namespaceURI===et?Xt==="svg":_t.namespaceURI===yt?Xt==="svg"&&(Qt==="annotation-xml"||jt[Qt]):!!Nt[Xt]:At.namespaceURI===yt?_t.namespaceURI===et?Xt==="math":_t.namespaceURI===ht?Xt==="math"&&Ot[Qt]:!!Zt[Xt]:At.namespaceURI===et?_t.namespaceURI===ht&&!Ot[Qt]||_t.namespaceURI===yt&&!jt[Qt]?!1:!Zt[Xt]&&(It[Xt]||!Nt[Xt]):!!(xt==="application/xhtml+xml"&&vt[At.namespaceURI]):!1},Ht=function(At){ji(k.removed,{element:At});try{Z(At).removeChild(At)}catch(_t){H(At)}},Kt=function(At,_t){try{ji(k.removed,{attribute:_t.getAttributeNode(At),from:_t})}catch(Xt){ji(k.removed,{attribute:null,from:_t})}if(_t.removeAttribute(At),At==="is"&&!t[At])if(_||L)try{Ht(_t)}catch(Xt){}else try{_t.setAttribute(At,"")}catch(Xt){}},me=function(At){let _t=null,Xt=null;if(N)At="<remove></remove>"+At;else{const ne=Ws(At,/^[\r\n\t ]+/);Xt=ne&&ne[0]}xt==="application/xhtml+xml"&&at===et&&(At='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+At+"</body></html>");const Qt=U?U.createHTML(At):At;if(at===et)try{_t=new B().parseFromString(Qt,xt)}catch(ne){}if(!_t||!_t.documentElement){_t=I.createDocument(at,"template",null);try{_t.documentElement.innerHTML=dt?z:Qt}catch(ne){}}const de=_t.body||_t.documentElement;return At&&Xt&&de.insertBefore(F.createTextNode(Xt),de.childNodes[0]||null),at===et?P.call(_t,C?"html":"body")[0]:C?_t.documentElement:de},Ut=function(At){return E.call(At.ownerDocument||At,At,pt.SHOW_ELEMENT|pt.SHOW_COMMENT|pt.SHOW_TEXT|pt.SHOW_PROCESSING_INSTRUCTION|pt.SHOW_CDATA_SECTION,null)},te=function(At){return At instanceof ft&&(typeof At.nodeName!="string"||typeof At.textContent!="string"||typeof At.removeChild!="function"||!(At.attributes instanceof ut)||typeof At.removeAttribute!="function"||typeof At.setAttribute!="function"||typeof At.namespaceURI!="string"||typeof At.insertBefore!="function"||typeof At.hasChildNodes!="function")},ye=function(At){return typeof st=="function"&&At instanceof st},Et=function(At,_t,Xt){h[At]&&Co(h[At],Qt=>{Qt.call(k,_t,Xt,kt)})},Gt=function(At){let _t=null;if(Et("beforeSanitizeElements",At,null),te(At))return Ht(At),!0;const Xt=St(At.nodeName);if(Et("uponSanitizeElement",At,{tagName:Xt,allowedTags:r}),At.hasChildNodes()&&!ye(At.firstElementChild)&&ke(/<[/\w]/g,At.innerHTML)&&ke(/<[/\w]/g,At.textContent)||At.nodeType===_i.progressingInstruction||d&&At.nodeType===_i.comment&&ke(/<[/\w]/g,At.data))return Ht(At),!0;if(!r[Xt]||e[Xt]){if(!e[Xt]&&$t(Xt)&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,Xt)||o.tagNameCheck instanceof Function&&o.tagNameCheck(Xt)))return!1;if(G&&!J[Xt]){const Qt=Z(At)||At.parentNode,de=$(At)||At.childNodes;if(de&&Qt){const ne=de.length;for(let ue=ne-1;ue>=0;--ue){const qt=R(de[ue],!0);qt.__removalCount=(At.__removalCount||0)+1,Qt.insertBefore(qt,V(At))}}}return Ht(At),!0}return At instanceof ct&&!zt(At)||(Xt==="noscript"||Xt==="noembed"||Xt==="noframes")&&ke(/<\/no(script|embed|frames)/i,At.innerHTML)?(Ht(At),!0):(D&&At.nodeType===_i.text&&(_t=At.textContent,Co([f,m,u],Qt=>{_t=Ii(_t,Qt," ")}),At.textContent!==_t&&(ji(k.removed,{element:At.cloneNode()}),At.textContent=_t)),Et("afterSanitizeElements",At,null),!1)},Yt=function(At,_t,Xt){if(j&&(_t==="id"||_t==="name")&&(Xt in F||Xt in Lt))return!1;if(!(l&&!s[_t]&&ke(v,_t))){if(!(n&&ke(w,_t))){if(!t[_t]||s[_t]){if(!($t(At)&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,At)||o.tagNameCheck instanceof Function&&o.tagNameCheck(At))&&(o.attributeNameCheck instanceof RegExp&&ke(o.attributeNameCheck,_t)||o.attributeNameCheck instanceof Function&&o.attributeNameCheck(_t))||_t==="is"&&o.allowCustomizedBuiltInElements&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,Xt)||o.tagNameCheck instanceof Function&&o.tagNameCheck(Xt))))return!1}else if(!mt[_t]){if(!ke(g,Ii(Xt,x,""))){if(!((_t==="src"||_t==="xlink:href"||_t==="href")&&At!=="script"&&Ag(Xt,"data:")===0&&lt[At])){if(!(b&&!ke(S,Ii(Xt,x,"")))){if(Xt)return!1}}}}}}return!0},$t=function(At){return At!=="annotation-xml"&&Ws(At,p)},ce=function(At){Et("beforeSanitizeAttributes",At,null);const{attributes:_t}=At;if(!_t)return;const Xt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:t};let Qt=_t.length;for(;Qt--;){const de=_t[Qt],{name:ne,namespaceURI:ue,value:qt}=de,ve=St(ne);let ae=ne==="value"?qt:Tg(qt);if(Xt.attrName=ve,Xt.attrValue=ae,Xt.keepAttr=!0,Xt.forceKeepAttr=void 0,Et("uponSanitizeAttribute",At,Xt),ae=Xt.attrValue,d&&ke(/((--!?|])>)|<\/(style|title)/i,ae)){Kt(ne,At);continue}if(Xt.forceKeepAttr||(Kt(ne,At),!Xt.keepAttr))continue;if(!T&&ke(/\/>/i,ae)){Kt(ne,At);continue}D&&Co([f,m,u],Fn=>{ae=Ii(ae,Fn," ")});const lo=St(At.nodeName);if(Yt(lo,ve,ae)){if(Y&&(ve==="id"||ve==="name")&&(Kt(ne,At),ae=X+ae),U&&typeof it=="object"&&typeof it.getAttributeType=="function"&&!ue)switch(it.getAttributeType(lo,ve)){case"TrustedHTML":{ae=U.createHTML(ae);break}case"TrustedScriptURL":{ae=U.createScriptURL(ae);break}}try{ue?At.setAttributeNS(ue,ne,ae):At.setAttribute(ne,ae),te(At)?Ht(At):Gs(k.removed)}catch(Fn){}}}Et("afterSanitizeAttributes",At,null)},pe=function Wt(At){let _t=null;const Xt=Ut(At);for(Et("beforeSanitizeShadowDOM",At,null);_t=Xt.nextNode();)Et("uponSanitizeShadowNode",_t,null),!Gt(_t)&&(_t.content instanceof ot&&Wt(_t.content),ce(_t));Et("afterSanitizeShadowDOM",At,null)};return k.sanitize=function(Wt){let At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=null,Xt=null,Qt=null,de=null;if(dt=!Wt,dt&&(Wt="<!-->"),typeof Wt!="string"&&!ye(Wt))if(typeof Wt.toString=="function"){if(Wt=Wt.toString(),typeof Wt!="string")throw Ni("dirty is not a string, aborting")}else throw Ni("toString is not a function");if(!k.isSupported)return Wt;if(A||Dt(At),k.removed=[],typeof Wt=="string"&&(q=!1),q){if(Wt.nodeName){const qt=St(Wt.nodeName);if(!r[qt]||e[qt])throw Ni("root node is forbidden and cannot be sanitized in-place")}}else if(Wt instanceof st)_t=me("<!---->"),Xt=_t.ownerDocument.importNode(Wt,!0),Xt.nodeType===_i.element&&Xt.nodeName==="BODY"||Xt.nodeName==="HTML"?_t=Xt:_t.appendChild(Xt);else{if(!_&&!D&&!C&&Wt.indexOf("<")===-1)return U&&O?U.createHTML(Wt):Wt;if(_t=me(Wt),!_t)return _?null:O?z:""}_t&&N&&Ht(_t.firstChild);const ne=Ut(q?Wt:_t);for(;Qt=ne.nextNode();)Gt(Qt)||(Qt.content instanceof ot&&pe(Qt.content),ce(Qt));if(q)return Wt;if(_){if(L)for(de=M.call(_t.ownerDocument);_t.firstChild;)de.appendChild(_t.firstChild);else de=_t;return(t.shadowroot||t.shadowrootmode)&&(de=y.call(K,de,!0)),de}let ue=C?_t.outerHTML:_t.innerHTML;return C&&r["!doctype"]&&_t.ownerDocument&&_t.ownerDocument.doctype&&_t.ownerDocument.doctype.name&&ke(yh,_t.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+_t.ownerDocument.doctype.name+`>
11
+ `+ue),D&&Co([f,m,u],qt=>{ue=Ii(ue,qt," ")}),U&&O?U.createHTML(ue):ue},k.setConfig=function(){let Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(Wt),A=!0},k.clearConfig=function(){kt=null,A=!1},k.isValidAttribute=function(Wt,At,_t){kt||Dt({});const Xt=St(Wt),Qt=St(At);return Yt(Xt,Qt,_t)},k.addHook=function(Wt,At){typeof At=="function"&&(h[Wt]=h[Wt]||[],ji(h[Wt],At))},k.removeHook=function(Wt){if(h[Wt])return Gs(h[Wt])},k.removeHooks=function(Wt){h[Wt]&&(h[Wt]=[])},k.removeAllHooks=function(){h={}},k}var bh=vh();const Gg=c=>c?qe(c)||c.column.type&&Rt.isNumber(c.column.type):!1,Wg=(c,k,F)=>{if(!c||k===void 0||isNaN(k))return F;const K=he(c.numberFormatConfig);return yi(K,k)},le=(c,k,F)=>Gg(c)?Wg(c,parseFloat(`${k}`),F):F,Xg=["auto","column","area","areaspline","bar","scatter","arearange"];function xh(c){return c!=null&&c.chartType?Xg.includes(c.chartType):!0}const Me=(c,k)=>c!==""?`<span style="color:${k!=null?k:"currentColor"}; font-size: 15px; line-height: 18px">${c}</span>`:"",Ri=(c,k)=>`${k||""}${k&&c?"<br />":""}${c||""}`,vi=c=>bh.sanitize(`<div style="min-width: 100px; color: #5B6372; font-size: 13px; line-height: 18px; margin: 4px 6px">
12
+ ${c}
13
+ </div>`),ti=()=>'<hr class="csdk-border-t" style="margin: 7px 0px" />',Hg=c=>{const k=c.map((F,K)=>F&&K>0?ti()+F:F).join("");return vi(k)},Yg=(c,k)=>{const{maskedX:F,maskedY:K,maskedBreakByPoint:tt,maskedSize:ot,maskedBreakByColor:nt}=c.point.custom,st=le(k.x,c.point.x,F),ct=le(k.y,c.point.y,K),pt=le(k.size,c.point.z,ot||""),ut=Me(st,c.point.color),ft=Me(ct,c.point.color),B=Me(tt||"",c.point.color),it=Me(nt||"",c.point.color),W=Me(pt,c.point.color);return{x:ut,y:ft,breakByPoint:B,breakByColor:it,size:W}},Ug=(c,k)=>{const F=Ri(c.x,k.x&&xe(k.x)),K=Ri(c.y,k.y&&xe(k.y)),tt=Ri(c.breakByPoint,k.breakByPoint&&xe(k.breakByPoint)),ot=Ri(c.breakByColor,k.breakByColor&&xe(k.breakByColor)),nt=Ri(c.size,k.size&&xe(k.size));return{x:F,y:K,breakByPoint:tt,breakByColor:ot,size:nt}},Vg=(c,k)=>{const F=Yg(c,k),{x:K,y:tt,breakByPoint:ot,breakByColor:nt,size:st}=Ug(F,k);return Hg([K,tt,ot,nt,st])},$g=c=>({enabled:!0,useHTML:!0,formatter(){return Vg(this,c)}}),bi=(c,k)=>`Maximum number of series (${k}) exceeded (${c})`,Ho=(c,k,F)=>`'${c.toUpperCase()}-Axis:' Maximum number of categories (${F}) exceeded (${k})`,or="$forecast",On="$trend",Si=c=>c.startsWith(or),Ch=c=>c.startsWith(On),Yo=c=>`${c} $range`,Zg=(c,k,F)=>{if(!(c!=null&&c.data))return-1;const K=F[Yo(c.name)],tt=k[Yo(c.name)],ot=c.name.substring(or.length+1),nt=k[ot],st=c.data.findIndex(ct=>!isNaN((ct==null?void 0:ct.y)||NaN));return st===-1?(console.debug("Forecast data has no valid data points",c.name,c.data),-1):(c.type="line",c.showInLegend=!1,c.data[st-1].y=nt.data[st-1].y,c.dashStyle="ShortDash",c.color=nt.color,c.data.forEach((ct,pt)=>{ct.high=K.data[pt].y,ct.low=tt.data[pt].y}),st)},Kg=(c,k)=>{c.showInLegend=!1,c.enableMouseTracking=!1;const F=c.name.substring(or.length+1,c.name.length-7),K=k[F];c.color=K.color,c.fillOpacity=.15,c.lineWidth=0},qg=(c,k)=>{if(!c.data)return;const F=c.name.substring(10,c.name.length-7),K=k[F],tt=c.data.findIndex(ot=>!isNaN((ot==null?void 0:ot.low)||NaN));if(tt===-1){console.debug("Forecast range data has no valid data points",c.name,c.data);return}c.data[tt-1].low=K.data[tt-1].y,c.data[tt-1].high=K.data[tt-1].y},Jg=(c,k,F)=>{c.forEach(K=>K.plotBands=[{color:"#F7F7FA",borderWidth:0,from:k-1,to:F}])},Qg=(c,k)=>{c.type="line";const F=c.name.substring(On.length+1),K=k[F];c.showInLegend=!1,c.dashStyle="ShortDot",c.color=K.color;let tt=0,ot=Number.MAX_VALUE;const nt=K.data.filter(W=>W.y).map(W=>(tt=Math.max(tt,W.y||0),ot=Math.min(ot,W.y||0),W.y)),st=ot,ct=tt,pt=nt.reduce((W,R)=>W+R,0)/nt.length,ut=[...nt].sort((W,R)=>W-R),ft=Math.floor(ut.length/2),B=ut.length%2!==0?ut[ft]:(ut[ft-1]+ut[ft])/2,it={min:st,max:ct,median:B,average:pt};c.data.forEach(W=>{W.trend=it})},tm=c=>{const k={};c.forEach(F=>{k[F.name]=F}),c.forEach(F=>{Ch(F.name)&&Qg(F,k)})},wh=c=>{const{breakBy:k}=c;if(k.length>0)return!1;const F=c.category.filter(ot=>!("enabled"in ot)||ot.enabled);if(F.length!==1)return!1;const[K]=F;let tt=!1;return mn(K)?tt=K.column.type==="datelevel":od(K)&&(tt=K.type==="datelevel"),tt},em=c=>wh(c)?c.value.filter(k=>(k==null?void 0:k.trend)!==void 0).map(k=>({column:Rt.trend(k.column,`${On}_${k.column.name}`,k.trend),numberFormatConfig:k.numberFormatConfig})):[],im=c=>wh(c)?c.value.filter(k=>(k==null?void 0:k.forecast)!==void 0).map(k=>({column:Rt.forecast(k.column,`${or}_${k.column.name}`,k.forecast),numberFormatConfig:k.numberFormatConfig})):[],Sh=(c,k)=>{const F=()=>Bt(Tt({},c),{y:[]}),K=F(),tt=F(),ot=1,nt=0;c.seriesValues.forEach(pt=>{K.y.push(pt),tt.y.push(pt)}),c.rangeValues.forEach(pt=>{const ut=pt[ot],ft=pt[nt];K.y.push(ut),tt.y.push(ft)});const st=_r(K,k),ct=_r(tt,k);return Bt(Tt({},st),{type:"range",seriesOther:ct})},Mh=c=>c.rangeValues?!1:c.y.some(F=>Si(xe(F))),Ah=c=>{const k=c.y.filter(ot=>Si(xe(ot))).map(ot=>{const nt=Bt(Tt({},ot),{column:Io(ot.column,{title:ot.column.title&&Yo(ot.column.title),name:`${ot.column.name}_upper`})});return[Bt(Tt({},ot),{column:Io(ot.column,{title:ot.column.title&&Yo(ot.column.title),name:`${ot.column.name}_lower`})}),nt]}),K=k.concat(c.y).flat(),tt=c.y;return Bt(Tt({},c),{rangeValues:k,seriesValues:tt,y:K})},om=(c,k)=>{const F=Ah(c);return Bt(Tt({},Sh(F,k)),{type:"cartesian"})};var rm="[object Number]";function Hr(c){return typeof c=="number"||Rt.isObjectLike(c)&&Rt.baseGetTag(c)==rm}const Ve="#d1d1d7",nm=c=>c.series[0].data.reduce((k,{low:F,high:K})=>({min:Math.min(k.min,F),max:Math.max(k.max,K)}),{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY}),sm=(c,k,F)=>[{labels:{overflow:"none",enabled:c.enabled&&c.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter(){const{value:K}=this;if(F&&!qe(F)&&!Rt.isNumber(F.column.type))return`${K}`;const tt=typeof K=="number"?K:parseFloat(K);return isNaN(tt)?`${K}`:Ce(he(F==null?void 0:F.numberFormatConfig),tt)}},categories:k,title:{text:c.enabled&&c.titleEnabled&&c.title||null,margin:25},tickmarkPlacement:"on",gridLineWidth:c.enabled&&c.gridLine?1:0,minorTickLength:0,tickLength:0,startOnTick:!0,endOnTick:!0,lineColor:Ve,tickColor:Ve,minorTickColor:Ve,gridLineColor:Ve,gridLineDashStyle:"Dot",minorGridLineColor:Ve,minorGridLineDashStyle:"Dot",min:c.enabled?c.min:null,max:c.enabled?c.max:null}],am=(c,k,F)=>{const K=nm(k);return[{labels:{enabled:c.enabled&&c.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter(){return Ce(he(F==null?void 0:F.numberFormatConfig),this.value)}},tickmarkPlacement:"on",title:{text:c.enabled&&c.titleEnabled&&c.title||null,margin:25,style:we},minorGridLineWidth:0,lineColor:Ve,lineWidth:1,tickColor:Ve,minorTickColor:Ve,gridLineColor:Ve,gridLineDashStyle:"Dot",gridLineWidth:c.enabled&&c.gridLine?1:0,minorGridLineColor:Ve,minorGridLineDashStyle:"Dot",min:c.enabled&&Hr(c.min)?c.min:K.min,max:c.enabled&&Hr(c.max)?c.max:K.max,tickInterval:c.enabled?c.tickInterval:null}]},ri=c=>{var k;return Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt({enabled:(k=c==null?void 0:c.enabled)!=null?k:!1},(c==null?void 0:c.rotation)!==void 0&&{rotation:c.rotation}),(c==null?void 0:c.alignInside)!==void 0&&{inside:c.alignInside}),(c==null?void 0:c.align)!==void 0&&{align:c.align}),(c==null?void 0:c.verticalAlign)!==void 0&&{verticalAlign:c.verticalAlign}),(c==null?void 0:c.textStyle)!==void 0&&{style:c.textStyle}),(c==null?void 0:c.backgroundColor)!==void 0&&{backgroundColor:c.backgroundColor}),(c==null?void 0:c.borderColor)!==void 0&&{borderColor:c.borderColor}),(c==null?void 0:c.borderRadius)!==void 0&&{borderRadius:c.borderRadius}),(c==null?void 0:c.borderWidth)!==void 0&&{borderWidth:c.borderWidth}),(c==null?void 0:c.padding)!==void 0&&{padding:c.padding}),(c==null?void 0:c.xOffset)!==void 0&&{x:c.xOffset}),(c==null?void 0:c.yOffset)!==void 0&&{y:c.yOffset}),(c==null?void 0:c.delay)!==void 0&&{animation:{defer:c.delay}})},$s=c=>function(k,F){var tt,ot;const K=F?this.point[F]:void 0;return K===void 0||isNaN(K)?"":`${(tt=c==null?void 0:c.prefix)!=null?tt:""}${Ce(he(),K)}${(ot=c==null?void 0:c.suffix)!=null?ot:""}`},lm=c=>{var F,K;const k=ri(c);return{series:{dataLabels:Bt(Tt({rotation:(F=c==null?void 0:c.rotation)!=null?F:0,align:"center"},k),{style:Tt({fontSize:"13px",fontWeight:"normal"},k.style),formatter:$s(c)}),grouping:!1,stickyTracking:!1,turboThreshold:0,boostThreshold:0,softThreshold:!1},boxplot:{dataLabels:Bt(Tt({rotation:(K=c==null?void 0:c.rotation)!=null?K:0,align:"center"},k),{style:Tt({fontSize:"13px",fontWeight:"normal"},k.style),formatter:$s(c)})},scatter:{dataLabels:{enabled:!1}}}},hm=(c,k,F)=>{const K=[],[tt,ot]=c.series,{boxplotType:nt}=k,st=.15,ct=He(F,0),pt=ct,ut=Ji(ct,-1*st),ft=Ji(ct,-2*st),B=Hl(ft,2*st),it=[Bt(Tt({},tt),{data:tt.data.map((W,R)=>{var H;return Bt(Tt({},W),{color:ft,fillColor:nt==="hollow"?"transparent":pt,innerBoxColor:nt==="hollow"?"transparent":ut,selected:(H=W.blur)!=null?H:!1,custom:{xValue:c.xValues[R].rawValues}})}),medianWidth:1,maxPointWidth:42,minPointWidth:20,whiskerWidth:1,whiskerLength:"100%",fillOpacity:.8,strokeOpacity:.8,showInLegend:!0,legendIndex:0,yAxis:0,color:ft})];return ot&&it.push(Bt(Tt({},ot),{data:ot.data.map(W=>Bt(Tt({},W),{marker:{lineColor:W.blur?B:ft},custom:{xValue:c.xValues[W.x].rawValues}})),type:"scatter",legendIndex:1,showInLegend:!1,marker:{enabled:!0,fillColor:"transparent",lineWidth:1,lineColor:ft},color:ft})),{series:it,alerts:K}},cm=(c,k)=>({animation:!1,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,useHTML:!0,formatter(){const{x:F,y:K}=this,{high:tt,low:ot,q3:nt,q1:st,median:ct}=this.point,pt=fn(tt),ut=le(c.category,F,`${F}`);if(pt){const H=le(c.outliers,K,`${K}`);return vi(`
14
+ <div>${this.series.name}</div>
15
+ <div>${Me(H,this.point.color)}</div>
16
+ ${c.category?`${ti()}<div>${ut}</div>`:""}
17
+ `)}const ft=le(c.whiskerMax,tt,`${tt}`),B=le(c.whiskerMin,ot,`${ot}`),it=le(c.boxMax,nt,`${nt}`),W=le(c.boxMin,st,`${st}`),R=le(c.boxMedian,ct,`${ct}`);return vi(`
18
+ <div>${k("boxplot.tooltip.whiskers")}</div>
19
+ <div class="csdk-boxplot-tooltip-row">
20
+ <span>${k("boxplot.tooltip.max")}</span>
21
+ ${Me(ft,this.point.color)}
22
+ </div>
23
+ <div class="csdk-boxplot-tooltip-row">
24
+ <span>${k("boxplot.tooltip.min")}</span>
25
+ ${Me(B,this.point.color)}
26
+ </div>
27
+ ${ti()}
28
+ <div>${k("boxplot.tooltip.box")}</div>
29
+ <div class="csdk-boxplot-tooltip-row">
30
+ <span>${k("boxplot.tooltip.max")}</span>
31
+ ${Me(it,this.point.color)}
32
+ </div>
33
+ <div class="csdk-boxplot-tooltip-row">
34
+ <span>${k("boxplot.tooltip.min")}</span>
35
+ ${Me(W,this.point.color)}
36
+ </div>
37
+ <div class="csdk-boxplot-tooltip-row">
38
+ <span>${k("boxplot.tooltip.median")}</span>
39
+ ${Me(R,this.point.color)}
40
+ </div>
41
+ ${ti()}
42
+ <div>${c.category?ut:this.series.name}</div>
43
+ `)}}),Th=(c,k,F,K,tt=!1)=>{const ct=K<(tt?200:400),ut=F*20,ft=K>ut;return!k||ct||ft?{enabled:!1}:{series:{type:c,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:ei,borderColor:ii},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:ei,outlineWidth:1}};function kh(c,k,F){c.xAxis[0].setExtremes(k,F,!1)}function Zs(c){return"polarType"in c}const Ei=(c,k)=>c==="line"&&k.lineType==="smooth"?"spline":c==="area"&&k.lineType==="smooth"?"areaspline":c==="polar"?k.polarType:c==="scatter"?"bubble":c,Ph=(c,k)=>{var K,tt;const F={totalLabels:{enabled:!1}};if(c!=="area"&&c!=="bar"&&c!=="column"&&c!=="polar")return F;if(c==="polar"){if(Zs(k))return{stacking:k.polarType==="column"||k.polarType==="area"?"normal":void 0,totalLabels:{enabled:!1}};throw new Rt.TranslatableError("errors.polarChartDesignOptionsExpected")}if(Zs(k))throw new Rt.TranslatableError("errors.polarChartDesignOptionsNotExpected");switch(k.stackType){case"stacked":return{stacking:"normal",totalLabels:(K=k.totalLabels)!=null?K:F.totalLabels};case"stack100":return{stacking:"percent",totalLabels:(tt=k.totalLabels)!=null?tt:F.totalLabels};default:return F}},pm=(c,k)=>c.map((F,K)=>k===K?0:-1),dm=(c,k,F,K,tt,ot,nt,st)=>{const ct=Eh(c,F),ft=c,{title:pt}=ft,ut=Te(ft,["title"]);return Bt(Tt({},ut),{name:pt!=null?pt:c.name,data:fm(ct,k,K,tt,F,ot,nt,st)})},um=(c,k)=>{!k.minClipped&&(c!=null&&c.min)&&(c==null?void 0:c.min)>0&&(c.min=0),!k.maxClipped&&(c!=null&&c.max)&&(c==null?void 0:c.max)<0&&(c.max=0)},fm=(c,k,F,K,tt,ot,nt,st)=>{const ct=k.map((it,W)=>{if(it<0)return{y:null};const{value:R,blur:H,color:V,rawValue:$,xValue:Z,xDisplayValue:U,xCompareValue:z}=c[it],I=Lh(c,k,it,W),E=I||H,M={enabled:!H,isIsolatedPoint:I},P=z?z[0]:NaN;return Bt(Tt(Tt({x:P,y:R,selected:!!H},E&&{marker:M}),V&&{color:V}),{custom:{rawValue:$,xValue:Z,xDisplayValue:U||Z}})}),pt=[];let ut=-1;const ft=F/2;let B=0;return ct.forEach(it=>{if(it.x&&ut===-1&&(ut=it.x+ft),it.x&&it.x>ut){let W=Math.round((it.x-(ut-ft))/F);for(;W>0&&(B++,!(B>K));){const R=it.x-F*W;pt.push({custom:{xDisplayValue:ot(R)},x:R,y:tt?0:null}),tt&&(nt!=null&&nt.min)&&(nt==null?void 0:nt.min)>0&&um(nt,st),W--,ut+=F}}pt.push(it),it.x?ut=it.x+F+ft:ut+=F}),pt},ki=(c,k,F,K,tt,ot)=>{const nt=Eh(c,F,ot),pt=c,{title:st}=pt,ct=Te(pt,["title"]);return Bt(Tt({},ct),{name:st!=null?st:c.name,data:gm(nt,k,K,tt)})},Lh=(c,k,F,K)=>{const tt=K===0||k[K-1]<0||isNaN(c[k[K-1]].value),ot=K+1===k.length||k[K+1]<0||isNaN(c[k[K+1]].value);return tt&&ot},Eh=(c,k,F)=>c.data.map(ot=>{var nt=ot,{value:K}=nt,tt=Te(nt,["value"]);return Tt({value:k&&Number.isNaN(K)?0:F?Math.abs(K):K},tt)}),gm=(c,k,F,K)=>{const tt=c.some(ot=>ot.blur!==void 0);return k.map((ot,nt)=>{if(ot<0)return{y:null};const{value:st,blur:ct,color:pt,rawValue:ut,xValue:ft}=c[ot];if(F)return Bt(Tt({name:F[ot],y:st,color:pt!=null?pt:K==null?void 0:K[ot]},tt&&!ct&&{selected:!0}),{custom:{rawValue:ut,xValue:ft}});{const B=Lh(c,k,ot,nt),it=B||tt,W={enabled:!ct,isIsolatedPoint:B};return Bt(Tt(Tt({y:isNaN(+st)?st:+st,selected:!!ct},it&&{marker:W}),pt&&{color:pt}),{custom:{rawValue:ut,xValue:ft}})}})},mm=(c,k,F=.1)=>{const tt=Math.abs(k-c)*F/2;return{min:c<0?c-tt:c,max:k>=0?k+tt:k}},Ks=(c,k)=>{const F=Tt({},k);return c.min&&c.min>=F.max&&(F.max=c.min*(c.min>=0?2:.5)),c.max&&c.max<=F.min&&(F.min=c.max*(c.max>=0?.5:2)),F},qs=(c,k)=>{const F=Tt({},k);return F.min<=0||(c==="column"||c==="bar")&&(F.min=0),F},ym=(c,k,F,K,tt,ot)=>{const nt=k.series.map((ft,B)=>Bt(Tt({},ft),{data:ft.data.map(R=>{var H=R,{value:it}=H,W=Te(H,["value"]);return Tt({value:isNaN(it)&&tt[B]?0:it},W)})})).filter((ft,B)=>K[B]===ot),{stacking:st}=Ph(c,F),ct=ot===0?F.yAxis:F.y2Axis||{min:void 0,max:void 0},pt=qa(c)&&F.polarType!=="line";if(st==="percent")return{min:0,max:100};if(st==="normal"||pt){const ft=Array.from(Array(k.xValues.length),()=>({plus:0,minus:0}));let it=nt.reduce((W,R)=>(R.data.forEach(({value:H},V)=>{H<0?W[V].minus+=H||0:W[V].plus+=H||0}),W),ft).reduce((W,R)=>({min:Math.min(W.min,R.minus),max:Math.max(W.max,R.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return it=Ks(ct,it),it=qs(c,it),F.seriesLabels&&(it=mm(ct.min||it.min,ct.max||it.max)),it}let ut=nt.reduce((ft,B)=>{const it=B.data.map(({value:W})=>W).filter(W=>!isNaN(W));return{min:Math.min(ft.min,...it),max:Math.max(ft.max,...it)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return ut=Ks(ct,ut),ut=qs(c,ut),ut},vm=c=>c.length<=1?!0:c.filter(({enabled:F})=>F).length<=1,bm=(c,k)=>{if(!(!c.chartType||c.chartType==="auto"||k))return c.chartType},Oh=c=>c?1:0,Uo=c=>!!c,So=(c,k)=>Array(k).fill(c),xm=c=>{if(c.length===0)return[[0],[void 0],[!1],[!1]];const k=vm(c),F=c.map(({showOnRightAxis:nt})=>Oh(nt)),K=c.map(nt=>bm(nt,k)),tt=c.map(({treatNullDataAsZeros:nt})=>Uo(nt)),ot=c.map(({connectNulls:nt})=>Uo(nt));return[F,K,tt,ot]},Cm=(c,k)=>{const F=c[0],K=Oh(F==null?void 0:F.showOnRightAxis),tt=F?Uo(F.treatNullDataAsZeros):void 0,ot=F?Uo(F.connectNulls):void 0;return[So(K,k),So(void 0,k),So(tt,k),So(ot,k)]},wm=(c,k)=>{if(c.type!=="cartesian")return[[],[],[],[]];const F=k,{y:K,breakBy:tt}=F;return tt.length>0?Cm(K,c.series.length):xm(K)},rr=(c,k)=>{var F,K;if(c.breakBy.length===0){if(c.y.length===0)return ei;const tt=(F=c.y.find(ot=>ot.column.name===k))==null?void 0:F.color;return ul(tt)}else return(K=c.seriesToColorMap)==null?void 0:K[k]},Sm=(c,k,F,K,tt)=>{const ot=Ei("boxplot",k),{series:nt,alerts:st}=hm(c,k,tt==null?void 0:tt.palette.variantColors),ct=c.xValues.map(ut=>ut.key);return{options:{title:{text:null},chart:{type:ot,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{load:function(){var it;const ut=this,ft=ut.chartWidth,B=Th(ot,k.autoZoom.enabled,c.xValues.length,ft);if(B.enabled&&((it=k.autoZoom)!=null&&it.scrollerLocation)){const{min:W,max:R}=k.autoZoom.scrollerLocation;kh(ut,W,R)}ut.update({navigator:B},!0)},selection:ut=>{ut.preventDefault()}}},legend:ui(k.legend),xAxis:sm(k.xAxis,ct,F.category),yAxis:am(k.yAxis,c,F.whiskerMax),series:nt,plotOptions:lm(k.seriesLabels),tooltip:cm(F,K)},alerts:st}},Dh=c=>Bt(Tt({enabled:c.enabled,radius:!c.enabled||c.size==="small"?4:7,fillColor:!c.enabled||c.fill==="full"?null:ii,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!c.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:ii,radius:c.size==="small"?6:9,lineWidth:3}}});function jh(c){const{x1Value:k,x2Value:F}=c;return ai(za,{children:[se("div",{style:{fontSize:"10px",color:"#666",marginTop:"6px"},children:F||k?se("hr",{className:"csdk-border-t",style:{margin:"7px 0px"}}):""}),F||"",F&&k?se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"18",viewBox:"0 0 24 24",style:{display:"inline-block"},children:se("path",{fill:"#5B6372",fillRule:"nonzero",d:"M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}):"",k||""]})}function mi(c){const{name:k,value:F}=c;return se("div",{style:{display:"table-row-group"},children:ai("div",{style:{display:"table-row",height:"18px"},children:[se("div",{style:{display:"table-cell",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:k}),se("div",{style:{display:"table-cell",paddingLeft:"15px",fontWeight:"600"},children:F.map((K,tt)=>se("div",{children:K},tt))})]})})}function Ih(c){const{prefix:k,title:F}=c;return ai("div",{style:{display:"flex",marginBottom:"5px"},children:[se("div",{style:{flexShrink:0},children:k}),se("div",{style:{marginLeft:"5px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:F})]})}function Mm(c){const{t:k}=qr(),F=c.translate||k,{confidenceValue:K,lowerValue:tt,forecastValue:ot,upperValue:nt,title:st,x1Value:ct,x2Value:pt}=c;return ai("div",{style:{color:on,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(Ih,{prefix:F("advanced.tooltip.forecast"),title:st}),ai("div",{style:{display:"table"},children:[se(mi,{name:F("advanced.tooltip.forecastValue"),value:[ot]}),se(mi,{name:F("advanced.tooltip.max"),value:[nt]}),se(mi,{name:F("advanced.tooltip.min"),value:[tt]}),se(mi,{name:F("advanced.tooltip.confidenceInterval"),value:[K]})]}),se(jh,{x1Value:ct,x2Value:pt})]})}const Am=c=>pa.renderToString(se(Mm,Tt({},c))),Tm={smooth:"Advanced Smoothing",linear:"Linear Trend",local:"Local Estimates",logarithmic:"Logarithmic Trend"};function km(c){const{t:k}=qr(),F=c.translate||k,{localValue:K,trendData:tt,modelType:ot,title:nt,x1Value:st,x2Value:ct}=c,pt=[`${F("advanced.tooltip.trendData.min")} ${tt.min}`,`${F("advanced.tooltip.trendData.max")} ${tt.max}`,`${F("advanced.tooltip.trendData.median")} ${tt.median}`,`${F("advanced.tooltip.trendData.average")} ${tt.average}`];return ai("div",{style:{color:on,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(Ih,{prefix:F("advanced.tooltip.trend"),title:nt}),ai("div",{style:{display:"table"},children:[se(mi,{name:F("advanced.tooltip.trendType"),value:[Tm[ot]]}),se(mi,{name:F("advanced.tooltip.trendLocalValue"),value:[K]}),se(mi,{name:F("advanced.tooltip.trendDataKey"),value:pt})]}),se(jh,{x1Value:st,x2Value:ct})]})}const Pm=c=>pa.renderToString(se(km,Tt({},c))),Nh=function(c,k,F){var z,I,E,M,P,y,h,f,m,u,v,w;const K=c.percentage?`${Math.round(c.percentage)}`:void 0,tt=k,ot=tt.breakBy.length>0?(z=tt.y)==null?void 0:z.find(S=>S.enabled):(I=tt.y)==null?void 0:I.find(S=>S.column.title===c.series.name),nt=xh(ot),st=le(ot,c.point.y,""),ct=(P=(M=(E=c.point)==null?void 0:E.custom)==null?void 0:M.xDisplayValue)!=null?P:c.x,pt=tt.x?le(tt.x[0],c.x,ct):ct;let ut;if((y=c.point.custom)!=null&&y.xValue&&(tt!=null&&tt.x)&&tt.x.length===2){const S=`${c.point.custom.xValue[0]}`;ut=le(tt.x[1],S,S)}const ft=st+(nt&&K?` / ${K}%`:""),B=c.point.color||c.series.color,it=Si(c.point.name||c.series.name),W=Ch(c.point.name||c.series.name),R=F&&it?`${c.series.name.substring(10)}`:F&&W?`${c.series.name.substring(7)}`:c.series.name,H=(h=c.point)!=null&&h.low?le(ot,(f=c.point)==null?void 0:f.low,""):"",V=(m=c.point)!=null&&m.high?le(ot,(u=c.point)==null?void 0:u.high,""):"",$=(S,x,p)=>!S||S===""?"":!F||!it&&!W||!x?`<br /${Me(S,p)}`:`<br /><span>${F(x)} </span>${Me(S,p)}`,Z=F?`(+${F("advanced.tooltip.trend")})`:"",U=it?"advanced.tooltip.forecastValue":"";if(W){const S=/modelType=([^"]+)/,x=(v=ot==null?void 0:ot.column)==null?void 0:v.expression.match(S),p=x?x[1]:null,{min:g,max:r,median:a,average:t}=c.point.trend,i=le(ot,g,""),o=le(ot,r,""),e=le(ot,a,""),s=le(ot,t,"");return Pm({title:R,modelType:p,trendData:{min:i,max:o,median:e,average:s},localValue:ft,x1Value:pt,x2Value:ut,translate:F})}if(it){const S=/confidenceInterval=([^"]+)/,x=(w=ot==null?void 0:ot.column)==null?void 0:w.expression.match(S),p=x?x[1]:"0.8",g=(parseFloat(p)*100).toFixed(0)+"%";return Am({title:R,confidenceValue:g,forecastValue:ft,x1Value:pt,x2Value:ut,translate:F,upperValue:V,lowerValue:H})}return vi(`
44
+ ${R.replace(Z,"")}
45
+ ${$(ft,U,B)}
46
+ ${$(V,"advanced.tooltip.max",B)}
47
+ ${$(H,"advanced.tooltip.min",B)}
48
+ ${ut||pt?ti():""}
49
+ ${ut||""}
50
+ ${ut&&pt?`
51
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="18" viewBox="0 0 24 24" style="display: inline-block">
52
+ <path
53
+ fill="#5B6372"
54
+ fillRule="nonzero"
55
+ d="M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"
56
+ />
57
+ </svg>
58
+ `:""}
59
+ ${pt||""}
60
+ `)},Bh=(c,k)=>({animation:!1,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return Nh(this,c,k)}}),Yr={enabled:!0,types:{count:!1,relative:!0,totals:!0}},Lm=(c,k)=>function(){var ot,nt,st;const F=this.y===0&&this.x===" ";if(this.y===void 0||isNaN(this.y)||F)return"";let K="";const tt=(ot=k==null?void 0:k.showValue)!=null?ot:!0;return tt&&(K+=Ce(he(c),this.y)),tt&&(k!=null&&k.showPercentage)&&this.percentage!==void 0&&(K+=" / "),k!=null&&k.showPercentage&&this.percentage!==void 0&&(K+=`${Math.round(this.percentage)}%`),`${(nt=k==null?void 0:k.prefix)!=null?nt:""}${K}${(st=k==null?void 0:k.suffix)!=null?st:""}`},Dn=c=>{const k=Math.abs(c)%180;return k<20?"horizontal":k<60?"diagonal":k<120?"vertical":k<160?"diagonal":"horizontal"},Em=(c,k,F)=>{var ot;if(!(k!=null&&k.enabled))return{enabled:!1};const K=Tt(Bt(Tt({},Yr),{align:"center",verticalAlign:"middle",rotation:(ot=k.rotation)!=null?ot:0}),ri(k));if(F)return K;const tt=Dn(K.rotation);if(c==="vertical")return Tt(Bt(Tt({},K),{align:tt==="horizontal"?"left":"center"}),ri(k));switch(tt){case"horizontal":return Tt(Bt(Tt({},K),{verticalAlign:"bottom",padding:5}),ri(k));case"diagonal":return Tt(Bt(Tt({},K),{align:"left",y:-10,x:-2}),ri(k));case"vertical":return Tt(Bt(Tt({},K),{align:"left",y:-10}),ri(k))}},Om=(c,k)=>{var tt,ot;if(!c)return{enabled:!1};const F=(tt=c.rotation)!=null?tt:0,K=(ot=c.enabled)!=null?ot:Yr.enabled;return Tt(Bt(Tt({},Yr),{verticalAlign:k==="line"?"bottom":"middle",rotation:F,align:Dn(F)==="vertical"?"left":"center",padding:5}),ri(Bt(Tt({},c),{enabled:K})))},Dm=(c,k)=>{const F=c;if(F.x.length!==2)return k;const{categories:K,indexMap:tt,plotBands:ot}=k,nt=F.x[1],st=F.x[0],ct=he(nt==null?void 0:nt.numberFormatConfig),pt=he(st==null?void 0:st.numberFormatConfig);let ut=K;nt&&Rt.isNumber(nt.column.type)&&(ut=K.map(B=>Ce(ct,parseFloat(B))));let ft=ot;return st&&Rt.isNumber(st.column.type)&&(ft=ot.map(B=>{const it=Ce(pt,parseFloat(B.text));return Bt(Tt({},B),{text:it})})),{categories:ut,indexMap:tt,plotBands:ft}},jm=(c,k)=>{const{stackType:F}=k;return F==="classic"&&(Vl(c)||vf(c))},Im=c=>{const{xValues:k,xAxisCount:F}=c;return F!==2||k.length===0},wr=(c,k)=>({plotBands:[],indexMap:c.map((F,K)=>K),categories:k}),Nm=(c,k,F,K)=>{const{xValues:nt}=c,{y:st}=k;if(jm(k,F))return wr(nt,st.map(R=>xe(R)));if(K)return wr(nt,nt.map(dh).map(R=>`${R}`));if(Im(c))return wr(nt,nt.map(R=>R.xValues[0]));const ct=[],pt=[],ut=[];let ft=nt[0].xValues[0],B=-.5;nt.map((R,H)=>{const V=R.xValues[1],$=R.xValues[0];if($!==ft){ct.push(-1);const Z=ct.length-1;ut.push(" "),pt.push({text:ft,from:B,to:Z}),B=Z,ft=$}return ct.push(H),ut.push(V),R.xValues[1]});const it=nt.length-1,W=nt[it].xValues[0];return pt.push({text:W,from:B,to:ct.length-.5}),{categories:ut,indexMap:ct,plotBands:pt}},Bm=c=>{switch(c){case Rt.DateLevels.Years:return 31536e6;case Rt.DateLevels.Quarters:return 7884e6;case Rt.DateLevels.Months:return 2592e6;case Rt.DateLevels.Weeks:return 6048e5;case Rt.DateLevels.Days:return 864e5;case Rt.DateLevels.AggHours:case Rt.DateLevels.Hours:return 36e5;case Rt.DateLevels.AggMinutesRoundTo30:case Rt.DateLevels.MinutesRoundTo30:return 18e5;case Rt.DateLevels.AggMinutesRoundTo15:case Rt.DateLevels.MinutesRoundTo15:return 9e5;case Rt.DateLevels.AggMinutesRoundTo1:return 6e4}return console.warn("Unsupported level"),0},_m=(c,k)=>{const F=gn(c),K=(c==null?void 0:c.dateFormat)||En(F);return!k||!K?tt=>`${tt}`:function(tt){return k(new Date(tt),K)}},Rm=(c,k,F,K)=>{const tt=gn(k),ot=(B,it)=>B.lastValue?{minInterval:Math.min(it-B.lastValue,B.minInterval),lastValue:it}:Bt(Tt({},B),{lastValue:it}),nt=F[0],st=F[F.length-1];let ct=tt?Bm(tt):F.reduce(ot,{minInterval:(st-nt)/(F.length-1),lastValue:void 0}).minInterval;if(ct<30*864e5&&ct>25*864e5&&(ct=2592e6),F.length>1&&(isNaN(ct)||ct===0))throw new Rt.TranslatableError("errors.ticIntervalCalculationFailed");let pt;const ut=(k==null?void 0:k.dateFormat)||En(tt);K&&ut&&(pt=function(){const B=this;return K(new Date(B.value),ut)});const ft={millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"};return[Be(Rr,{type:"datetime",title:{enabled:c.enabled&&c.titleEnabled,text:c.title},dateTimeLabelFormats:ft,gridLineDashStyle:"Dot",gridLineWidth:c.enabled&&c.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:Bt(Tt({},pt&&{formatter:pt}),{overflow:"none",enabled:c.enabled&&c.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we}),min:nt,max:st,tickInterval:ct,minTickInterval:ct,tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,startOfWeek:4,showFirstLabel:!0,showLastLabel:!0,minRange:ct,isDate:!0})]},zm=(c,k,F,K,tt,ot)=>{const nt=(K||[]).map(ft=>({isPlotBand:!0,from:ft.from,to:ft.to,label:Tt({text:ft.text,y:-5,style:Bt(Tt({},we),{width:"70px",textOverflow:"ellipsis"})},tt==="vertical"&&{align:"right",x:5,textAlign:"left",y:0})})),st=(K||[]).filter(ft=>ft.from>0).map(ft=>({color:"#C0D0E0",dashStyle:"shortDot",width:1,value:ft.from})),ct=ot,pt=ct.x[ct.x.length-1];let ut=[Be(Rr,{type:c.type,title:{enabled:c.enabled&&c.titleEnabled,text:c.title},gridLineDashStyle:"Dot",gridLineWidth:c.enabled&&c.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:{enabled:c.enabled&&c.labels,style:we,formatter:function(){const ft=this;return!pt||!Rt.isNumber(pt==null?void 0:pt.column.type)||isNaN(parseFloat(ft.value))?ft.value:Ce(he(pt==null?void 0:pt.numberFormatConfig),parseFloat(ft.value))}},min:c.min,max:c.max,tickInterval:c.tickInterval,categories:F,plotBands:nt,plotLines:st,tickmarkPlacement:"on"})];return k&&(ut=ut.concat(Be(Rr,{title:{enabled:k.enabled&&k.titleEnabled,text:k.title},categories:F,opposite:!0,gridLineWidth:0,tickWidth:0,lineWidth:0}))),ut},Fm=(c,k,F)=>{const K=[{minClipped:!!(c.enabled&&c.min),maxClipped:!!(c.enabled&&c.max)}];return F&&K.push({minClipped:!!(k!=null&&k.enabled&&k.min),maxClipped:!!(k!=null&&k.enabled&&k.max)}),K},_h=(c,k,F,K,tt,ot)=>{var ft,B,it,W;const nt=tt,st=he((ft=nt.y.find(({showOnRightAxis:R})=>!R))==null?void 0:ft.numberFormatConfig),ct=he((B=nt.y.find(({showOnRightAxis:R})=>R))==null?void 0:B.numberFormatConfig);function pt(R){return function(){return Ce(R,this.value)}}const ut=[Be(Bs,Bt(Tt(Tt({type:c.type,title:{enabled:c.enabled&&c.titleEnabled,text:c.title},gridLineDashStyle:"Dot",gridLineWidth:c.enabled&&c.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:{enabled:c.enabled&&c.labels,style:we,formatter:pt(st)},startOnTick:!(c.enabled&&c.min)},c.min&&{minPadding:0}),c.max&&{maxPadding:0}),{min:c.enabled?(it=c.min)!=null?it:F.min:null,max:c.enabled?(W=c.max)!=null?W:F.max:null,tickInterval:c.enabled?c.tickInterval:null,stackLabels:{enabled:!1,formatter:pt(st),style:Tt(Tt({},to),ot?{color:ot.typography.primaryTextColor}:null),rotation:0}}))];if(K){const R={startOnTick:!(k!=null&&k.enabled&&k.min),min:k!=null&&k.enabled?k.min||K.min:null,max:k!=null&&k.enabled?k.max||K.max:null},H=k!=null&&k.enabled?{opposite:!0,gridLineWidth:0,title:{enabled:k.enabled&&k.titleEnabled,text:k.title},labels:{enabled:k.enabled&&k.labels,style:we,formatter:pt(ct)},tickInterval:k.enabled?k.tickInterval:null,stackLabels:{enabled:!1,formatter:pt(ct),style:Tt(Tt({},to),ot?{color:ot.typography.primaryTextColor}:null),rotation:0}}:{visible:!1};ut.push(Be(Bs,Tt(Tt({},R),H)))}return ut},Rh=c=>{var K,ot;const tt=(K=c.textStyle)!=null?K:{},{align:k}=tt,F=Te(tt,["align"]);return Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt({enabled:(ot=c==null?void 0:c.enabled)!=null?ot:!1},(c==null?void 0:c.rotation)!==void 0&&{rotation:c.rotation}),(c==null?void 0:c.align)!==void 0&&{align:c.align}),(c==null?void 0:c.verticalAlign)!==void 0&&{verticalAlign:c.verticalAlign}),(c==null?void 0:c.delay)!==void 0&&{animation:{defer:c.delay}}),(c==null?void 0:c.backgroundColor)!==void 0&&{backgroundColor:c.backgroundColor}),(c==null?void 0:c.borderColor)!==void 0&&{borderColor:c.borderColor}),(c==null?void 0:c.borderRadius)!==void 0&&{borderRadius:c.borderRadius}),(c==null?void 0:c.borderWidth)!==void 0&&{borderWidth:c.borderWidth}),(c==null?void 0:c.textStyle)!==void 0&&{style:c.textStyle}),(c==null?void 0:c.xOffset)!==void 0&&{x:c.xOffset}),(c==null?void 0:c.yOffset)!==void 0&&{y:c.yOffset}),F!==void 0&&{style:F}),k!==void 0&&{textAlign:k})},Gm=c=>c.map(k=>Bt(Tt({},k),{title:Bt(Tt({},k.title),{textAlign:"center",align:"high",y:-25})})),Wm=c=>c.map(k=>Bt(Tt({},k),{labels:Bt(Tt({},k.labels),{rotation:0})})),zh=ir(Gm,Wm),Xm=c=>k=>{var ut,ft;const{stacking:F,totalLabels:K={enabled:!1},dataOptions:tt,themeSettings:ot}=c;if(!K.enabled&&!F)return k;const nt=tt,st=he((ut=nt.y.find(({showOnRightAxis:B})=>!B))==null?void 0:ut.numberFormatConfig),ct=he((ft=nt.y.find(({showOnRightAxis:B})=>B))==null?void 0:ft.numberFormatConfig);function pt(B,it,W=!1){return function(){const R=typeof this.value=="number"?this.value:parseFloat(this.value),H=W&&this.total||R,V=Ce(B,H);return it==="percent"?`${V}%`:V}}return k.map((B,it)=>{const R=it===1?ct:st;return Bt(Tt({},B),{labels:F?Bt(Tt({},B.labels),{formatter:pt(R,F)}):B.labels,stackLabels:K.enabled?Bt(Tt(Tt({},B.stackLabels),Rh(K)),{formatter:pt(R,"normal",!0),style:Tt(Tt({},to),ot?{color:ot.typography.primaryTextColor}:null),crop:!0,allowOverlap:!1,labelrank:99999}):B.stackLabels})})},Hm=c=>k=>qa(c)?zh(k):k,Fh=c=>c.length===1&&!!c[0].continuous&&Rt.isDatetime(c[0].column.type),Gh=(c,k)=>{const[F,K,tt,ot]=wm(c,k);return{side:F,chartType:K,treatNullAsZero:tt,connectNulls:ot}},Ym=(c,k)=>c==="bar"||k.includes("bar")?"vertical":"horizontal",Wh=(c,k,F,K)=>{const{categoriesCapacity:tt}=F.dataLimits,ot=Bt(Tt({},c),{xValues:c.xValues.slice(0,tt)}),{categories:nt,indexMap:st,plotBands:ct}=Dm(k,Nm(ot,k,F,K));return{categories:nt,indexMap:st,plotBands:ct}},Xh=({designOptions:c,dataOptions:k,chartData:F,categoriesMeta:K,orientation:tt,isContinuous:ot,dateFormatter:nt})=>ot?Rm(c.xAxis,k.x[0],F.xValues.map(dh),nt):zm(c.xAxis,c.x2Axis,K.categories,K.plotBands,tt,k),Ur=(c,k,F,K,tt,ot)=>ym(k,F,K,tt,ot,c),Um=(c,k)=>Ph(c,k),Vm=c=>Bt(Tt({},c),{yAxis:Bt(Tt({},c.yAxis),{titleEnabled:!1,title:null})}),$m=(c,k,F,K,tt,ot,nt)=>{const st=_h(c,k,F,K,ot,nt);return{settings:Xm({stacking:tt.stacking,totalLabels:tt.totalLabels,dataOptions:ot,themeSettings:nt})(st),clipped:Fm(c,k,K)}},Hh=c=>c.some(k=>k===1),Zm=(c,k)=>F=>{var K,tt;return F.stackLabels?Bt(Tt({},F),{stackLabels:Bt(Tt({},F.stackLabels),{x:((K=F.stackLabels.x)!=null?K:0)+c,y:((tt=F.stackLabels.y)!=null?tt:0)+k})}):F},Km=(c,k)=>F=>{var ot;if(!((ot=F.plotBands)!=null&&ot.length))return F;const K=15,tt=F.plotBands.map(nt=>{var ft,B;if(!nt.label)return nt;const st=(ft=nt.label.x)!=null?ft:0,ct=(B=nt.label.y)!=null?B:0,pt=c?c+K:0,ut=k?k+K:0;return Bt(Tt({},nt),{label:Bt(Tt({},nt.label),{x:st+pt,y:ct-ut})})});return Bt(Tt({},F),{plotBands:tt})};function Yh(c){return k=>k.map(Zm(c.rightShift,c.topShift))}function Uh(c){return k=>k.map(Km(c.totalLabelRightSpacing,c.totalLabelTopSpacing))}function qm(c,k,F){const K=c==="area"&&F!==void 0,tt="polarType"in k?k.polarType:void 0;return{treatNullDataAsZeros:K,isPolarChart:!!tt,polarType:tt}}const Js=20,oi={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},Qs={X_AXIS_VERTICAL_RIGHT:70,X_AXIS_HORIZONTAL_TOP:20},ta={TOP_DIVISOR:2,RIGHT_SHIFT:.1},Jm={RIGHT_MARGIN:80},Qm={FULL_ROTATION:180};function jn(c,k){var tt;let F=0,K=0;if((tt=k.totalLabels)!=null&&tt.enabled&&k.stackType==="stack100"){const ot=Math.abs(k.totalLabels.rotation||0)%Qm.FULL_ROTATION;c==="bar"&&(ot<oi.HORIZONTAL?F=40:ot<oi.DIAGONAL?F=25:ot<oi.VERTICAL?F=15:ot<oi.INVERTED_DIAGONAL?F=25:F=40),(c==="column"||c==="area")&&(ot<oi.HORIZONTAL?K=10:ot<oi.DIAGONAL?K=30:ot<oi.VERTICAL?K=40:ot<oi.INVERTED_DIAGONAL?K=30:K=10)}return{rightSpacing:F,topSpacing:K}}function ty(c,k){const{rightSpacing:F,topSpacing:K}=jn(c,k);let tt=0,ot=0;return K>0&&(ot=-1*(K/ta.TOP_DIVISOR)),F>0&&(tt=ta.RIGHT_SHIFT),{rightShift:tt,topShift:ot}}function ey(c){const{chartData:k,chartDesignOptions:F,xAxisOrientation:K}=c,tt=!kn(F.legend)&&k.xAxisCount>1&&K==="vertical"?Qs.X_AXIS_VERTICAL_RIGHT:0,ot=k.xAxisCount>1&&K==="horizontal"?Qs.X_AXIS_HORIZONTAL_TOP:0;return{rightSpacing:tt,topSpacing:ot}}function iy(c){const{chartType:k,chartDesignOptions:F}=c;return jn(k,F)}function oy(c){const k=ey(c),F=iy(c),K=ty(c.chartType,c.chartDesignOptions),tt=Js+F.topSpacing+k.topSpacing,ot=Js+F.rightSpacing+k.rightSpacing;return{totalTopSpacing:tt,totalRightSpacing:ot,rightShift:K.rightShift,topShift:K.topShift}}function ry(c,k,F){var K,tt;if(c==="bar"&&k.x.length>1&&kn(F.legend))return{margin:(tt=(K=F.legend)==null?void 0:K.margin)!=null?tt:Jm.RIGHT_MARGIN}}function ny(c){const{chartData:k,chartDesignOptions:F,dataOptions:K,continuousDatetimeXAxis:tt,indexMap:ot,categories:nt,treatNullDataAsZeros:st,yTreatNullDataAsZeros:ct,yConnectNulls:pt,yAxisSide:ut,yAxisChartType:ft,yAxisSettings:B,axisClipped:it,xAxisSettings:W,stacking:R,themeSettings:H,dateFormatter:V}=c,{seriesCapacity:$}=F.dataLimits;return k.series.slice(0,$).map((Z,U)=>{var P,y,h,f,m,u,v,w,S;const z=sy(K,Z.name),I=z==null?void 0:z.column.name,E=ay(F,I),M=hy({seriesValue:Z,continuousDatetimeXAxis:tt,indexMap:ot,categories:nt,treatNullDataAsZeros:st,yTreatNullDataAsZeros:ct,index:U,stacking:R,dataOptions:K,chartDesignOptions:F,xAxisSettings:W,yAxisSettings:B,axisClipped:it,dateFormatter:V});return Tt(Tt(Tt(Tt(Tt(Tt(Tt(Bt(Tt(Bt(Tt({},M),{showInNavigator:!0,stickyTracking:!1,boostThreshold:0,turboThreshold:0,color:ly(K,Z.name,H,U),yAxis:ut[U]}),ft[U]&&{type:ft[U]}),{dataLabels:Bt(Tt({},ri(F.seriesLabels)),{formatter:Lm(z==null?void 0:z.numberFormatConfig,F.seriesLabels)}),connectNulls:pt[U],marker:Dh(E.marker)}),((P=E.line)==null?void 0:P.width)!==void 0&&{lineWidth:(y=E.line)==null?void 0:y.width}),((h=E.line)==null?void 0:h.dashStyle)!==void 0&&{dashStyle:(f=E.line)==null?void 0:f.dashStyle}),((m=E.line)==null?void 0:m.endCap)!==void 0&&{linecap:(v=(u=E.line)==null?void 0:u.endCap)==null?void 0:v.toLowerCase()}),((w=E.line)==null?void 0:w.shadow)!==void 0&&{shadow:(S=E.line)==null?void 0:S.shadow}),"itemPadding"in F&&F.itemPadding!==void 0&&{pointPadding:F.itemPadding}),"groupPadding"in F&&F.groupPadding!==void 0&&{groupPadding:F.groupPadding}),"borderRadius"in F&&F.borderRadius!==void 0&&{borderRadius:F.borderRadius})})}function sy(c,k){return c.breakBy.length?c.y[0]:c.y.find(({column:{name:F}})=>F===k)}function ay(c,k){var tt;return(k?(tt=c.designPerSeries)==null?void 0:tt[k]:void 0)||c}function ly(c,k,F,K){var tt,ot;return(ot=rr(c,k))!=null?ot:He((tt=F==null?void 0:F.palette)==null?void 0:tt.variantColors,K||0)}function hy(c){const{seriesValue:k,continuousDatetimeXAxis:F,indexMap:K,categories:tt,treatNullDataAsZeros:ot,yTreatNullDataAsZeros:nt,index:st,stacking:ct,dataOptions:pt,chartDesignOptions:ut,xAxisSettings:ft,yAxisSettings:B,axisClipped:it,dateFormatter:W}=c;return F?dm(k,K,ot||nt[st],ft[0].tickInterval,ut.dataLimits.categoriesCapacity,_m(pt.x[0],W),B[st],it[st]):Vl(pt)&&!ct?ki(k,pm(tt,st),ot||nt[st]):ki(k,K,ot||nt[st])}const ea=20,Vo=(c,k,F,K,tt,ot,nt)=>{var m;const st=[];if(c.type!=="cartesian")throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:c.type});const ct=Ei(k,F),{seriesCapacity:pt,categoriesCapacity:ut}=F.dataLimits;c.xValues.length>ut&&st.push(Ho("x",c.xValues.length,ut)),c.series.length>pt&&st.push(bi(c.series.length,pt));const ft=Fh(K.x),B=Gh(c,K),it=Ym(k,B.chartType),W=Wh(c,K,F,ft),R=Xh({designOptions:F,dataOptions:K,chartData:c,categoriesMeta:W,orientation:it,isContinuous:ft,dateFormatter:nt}),H=Ur(0,k,c,F,B.side,B.treatNullAsZero),V=Hh(B.side)?Ur(1,k,c,F,B.side,B.treatNullAsZero):void 0,$=Um(k,F),Z=$m(F.yAxis,F.y2Axis,H,V,$,K,ot),U=oy({chartType:k,chartData:c,chartDesignOptions:F,xAxisOrientation:it}),z=qm(k,F,$.stacking),I=F,{rightSpacing:E,topSpacing:M}=(m=I.totalLabels)!=null&&m.enabled&&I.stackType==="stack100"?jn(k,I):{rightSpacing:0,topSpacing:0},P=ir(Hm(k),Uh({totalLabelRightSpacing:E,totalLabelTopSpacing:M}))(R),y=Yh({rightShift:U.rightShift,topShift:U.topShift})(Z.settings),h=ny({chartData:c,chartType:k,chartDesignOptions:F,dataOptions:K,continuousDatetimeXAxis:ft,indexMap:W.indexMap,categories:W.categories,treatNullDataAsZeros:z.treatNullDataAsZeros,yTreatNullDataAsZeros:B.treatNullAsZero,yConnectNulls:B.connectNulls,yAxisSide:B.side,yAxisChartType:B.chartType,yAxisSettings:y,axisClipped:Z.clipped,xAxisSettings:P,stacking:$.stacking,themeSettings:ot,dateFormatter:nt});return{options:Be(Yf(k,z.polarType,$.stacking),{title:{text:null},chart:{type:ct,spacing:[U.totalTopSpacing,U.totalRightSpacing,ea,ea],alignTicks:!1,polar:z.isPolarChart,events:{load:function(){var x;if(K.x.length===2)return;const u=this,v=u.chartWidth,w=u.chartHeight,S=Th(ct,F.autoZoom.enabled,c.xValues.length,k==="bar"?w:v,k==="bar");if(S.enabled&&((x=F.autoZoom)!=null&&x.scrollerLocation)){const{min:p,max:g}=F.autoZoom.scrollerLocation;kh(u,p,g)}u.update({navigator:S},!0)}}},xAxis:P,yAxis:y,legend:Tt(Tt({},ui(F.legend)),ry(k,K,F)),series:h,plotOptions:{series:Tt({dataLabels:z.isPolarChart?Om(F.seriesLabels,z.polarType):Em(it,F.seriesLabels,!!($.stacking&&k!=="area")),marker:Dh(F.marker),stacking:$.stacking||void 0,connectNulls:!1},k==="line"&&F.step&&{step:F.step})},tooltip:Bh(K,tt)}),alerts:st}},cy=(c,k,F)=>{var it,W,R;const K=c.percentage?k?c.percentage.toFixed(1):`${Math.round(c.percentage)}`:void 0,tt=F,nt=he((()=>{var V,$,Z;const H=(V=tt.y)==null?void 0:V.find(U=>U.column.name===c.series.name);if(H!=null&&H.numberFormatConfig)return H.numberFormatConfig;if(tt.breakBy.length>0)return(Z=($=tt.y)==null?void 0:$.find(U=>U.enabled))==null?void 0:Z.numberFormatConfig})()),st=(R=(W=(it=c.point)==null?void 0:it.custom)==null?void 0:W.xDisplayValue)!=null?R:c.x,ct=yi(nt,c.y)+(K?` / ${K}%`:""),pt=c.point.color||c.series.color,ut=c.series.name||"",ft=c.point.name||"";return vi(`
61
+ ${ut}
62
+ ${ut&&ft?" - ":""}
63
+ ${ft}
64
+ <br />
65
+ ${Me(ct,pt)}
66
+ ${st?ti()+st:""}
67
+ `)},In=(c,k)=>({animation:!1,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return cy(this,c,k)}}),Vh=(c,k,F,K)=>{let tt;const ot=$h(c,F),{seriesCapacity:nt}=F.dataLimits;if(c.xAxisCount===0){const st=c.series.slice(0,nt),ct=st.map(pt=>{var ut;return(ut=pt.title)!=null?ut:pt.name});tt=[{name:"",data:st.map(pt=>ki(pt,[0],!1,ct).data).flat().map((pt,ut)=>{var ft;return Bt(Tt({},pt),{name:ct[ut],color:(ft=rr(k,st[ut].name))!=null?ft:He(K==null?void 0:K.palette.variantColors,ut)})}),boostThreshold:0,turboThreshold:0}],ia(tt[0])}else{const st=c.xValues.slice(0,nt).map(ut=>ut.xValues.join(",")),ct=st.map((ut,ft)=>ft),pt=st.map((ut,ft)=>{var B,it,W;return(W=(B=k.seriesToColorMap)==null?void 0:B[ut])!=null?W:He((it=K==null?void 0:K.palette)==null?void 0:it.variantColors,ft)});tt=c.series.map(ut=>Bt(Tt({},ia(ki(ut,ct,!1,st,pt))),{boostThreshold:0,turboThreshold:0}))}return{series:tt,alerts:ot}};function $h(c,k){const F=[],{seriesCapacity:K}=k.dataLimits;return c.xAxisCount===0?c.series.length>K&&F.push(bi(c.series.length,K)):c.xValues.length>K&&F.push(bi(c.xValues.length,K)),F}function ia(c){let k=0;const F=c.data.map((K,tt)=>{const ot=K.y;return tt===0&&(k=ot),K.custom=Bt(Tt({},K.custom),{number1:xf(k,ot)}),K});return Bt(Tt({},c),{data:F})}const py=(c,k,F,K)=>{var pt;const tt=[],ot=Ei("funnel",k),{series:nt,alerts:st}=Vh(c,F,k,K);return tt.push(...st),{options:{title:{text:null},chart:{type:ot,spacing:[30,30,30,30],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:ui(k.legend),series:nt,plotOptions:ah(k,F,K),tooltip:In((pt=k.funnelLabels)==null?void 0:pt.showDecimals,F)},alerts:tt}},Zh="Other",Kh="Others",dy="#525A6B",qh=(c,k)=>{var F;return c+((F=k.y)!=null?F:0)},oa=(c,k,F)=>{var K;return((K=c.y)!=null?K:0)/k>=F},Jh=c=>[{name:Zh,id:Kh,data:[...c],type:"pie"}],Qh=c=>({y:c.reduce(qh,0),name:Zh,color:dy,sliced:!1,drilldown:Kh}),tc=({convolution:c})=>({series:k,convolutionSeries:F})=>{if((c==null?void 0:c.minimalIndependentSlicePercentage)===void 0||k.length===0)return{series:k,convolutionSeries:F};const K=c.minimalIndependentSlicePercentage/100,tt=k[0].data.reduce(qh,0),ot=k[0].data.filter(ct=>oa(ct,tt,K)),nt=k[0].data.filter(ct=>!oa(ct,tt,K));return nt.length===0?{series:k,convolutionSeries:F}:{series:[Bt(Tt({},k[0]),{data:[...ot,Qh(nt)]}),...k.slice(1)],convolutionSeries:Jh(nt)}},ec=({convolution:c})=>({series:k,convolutionSeries:F})=>{if((c==null?void 0:c.independentSlicesCount)===void 0||k.length===0)return{series:k,convolutionSeries:F};const K=c.independentSlicesCount,tt=k[0].data.map((ft,B)=>Bt(Tt({},ft),{index:B})).sort((ft,B)=>{var it,W;return((it=B.y)!=null?it:0)-((W=ft.y)!=null?W:0)}),ot=tt.slice(0,K);if(tt.slice(K).length===0)return{series:k,convolutionSeries:F};const st=new Set(ot.map(ft=>ft.index)),ct=k[0].data.filter((ft,B)=>st.has(B)),pt=k[0].data.filter((ft,B)=>!st.has(B));return{series:[Bt(Tt({},k[0]),{data:[...ct,Qh(pt)]}),...k.slice(1)],convolutionSeries:Jh(pt)}},ic=(c,k)=>{const F=[];return c.xAxisCount===0?c.series.length>k&&F.push(bi(c.series.length,k)):c.xValues.length>k&&F.push(bi(c.xValues.length,k)),F},oc=(c,k,F,K)=>{if(c.xAxisCount===0){const tt=c.series.slice(0,F),ot=tt.map(nt=>{var st;return(st=nt.title)!=null?st:nt.name});return[{name:"",data:tt.map(nt=>ki(nt,[0],!1,ot,void 0,!0).data).flat().map((nt,st)=>{var ct,pt;return Bt(Tt({},nt),{sliced:(ct=nt.selected)!=null?ct:!1,name:ot[st],color:(pt=rr(k,tt[st].name))!=null?pt:He(K==null?void 0:K.palette.variantColors,st)})}),boostThreshold:0,turboThreshold:0}]}else{const tt=c.xValues.slice(0,F).map(st=>st.xValues.join(",")),ot=tt.map((st,ct)=>ct),nt=tt.map((st,ct)=>{var pt,ut,ft;return(ft=(pt=k.seriesToColorMap)==null?void 0:pt[st])!=null?ft:He((ut=K==null?void 0:K.palette)==null?void 0:ut.variantColors,ct)});return c.series.map(st=>{const ut=ki(st,ot,!1,tt,nt,!0),{data:ct}=ut,pt=Te(ut,["data"]);return Bt(Tt({},pt),{data:ct.map(ft=>{var B;return Bt(Tt({},ft),{sliced:(B=ft.selected)!=null?B:!1})}),boostThreshold:0,turboThreshold:0})})}},rc=({chartData:c,dataOptions:k,seriesCapacity:F,convolution:K,themeSettings:tt})=>{const ot=oc(c,k,F,tt);if(!(K!=null&&K.enabled))return ot;const nt=K.selectedConvolutionType==="byPercentage"?tc({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?ec({convolution:K}):ct=>ct,{series:st}=nt({series:ot,convolutionSeries:[]});return st},nc=({chartData:c,dataOptions:k,seriesCapacity:F,convolution:K,themeSettings:tt})=>{if(!(K!=null&&K.enabled))return[];const ot=oc(c,k,F,tt),nt=K.selectedConvolutionType==="byPercentage"?tc({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?ec({convolution:K}):()=>({series:ot,convolutionSeries:[]}),{convolutionSeries:st}=nt({series:ot,convolutionSeries:[]});return st},uy=(c,k,F,K)=>{const{seriesCapacity:tt}=F.dataLimits,ot=F==null?void 0:F.convolution,nt=ic(c,tt),st=rc({chartData:c,dataOptions:k,seriesCapacity:tt,convolution:ot,themeSettings:K}),ct=nc({chartData:c,dataOptions:k,seriesCapacity:tt,convolution:ot,themeSettings:K});return{series:st,alerts:nt,convolutionSeries:ct}},fy=(c,k,F,K)=>{var ft;const tt=[],ot=Ei("pie",k),nt=20,{series:st,convolutionSeries:ct,alerts:pt}=uy(c,F,k,K);return tt.push(...pt),{options:{title:{text:null},chart:{type:ot,spacing:[nt,20,20,20],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:ui(k.legend),series:st,plotOptions:ch(k.pieType,k.pieLabels,F,K),tooltip:In((ft=k.pieLabels)==null?void 0:ft.showDecimals,F),drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:ct}},alerts:tt}},Nn=(c,k,F,K)=>({animation:!1,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,padding:1,useHTML:!0,outside:!0,formatter:function(){return yy(this,c,k,F,K)}}),gy=`
68
+ <div style="position: absolute; top: 100%; right: 40px; z-index: 1">
69
+ <div style="
70
+ border: solid transparent;
71
+ content: ' ';
72
+ height: 0;
73
+ width: 0;
74
+ position: absolute;
75
+ pointer-events: none;
76
+ border-color: rgba(136,136,136,0);
77
+ border-top-color: #ccc;
78
+ border-width: 7px 12px 12px 12px;
79
+ margin-left: -7px;
80
+ "></div>
81
+ <div style="
82
+ border: solid transparent;
83
+ content: ' ';
84
+ height: 0;
85
+ width: 0;
86
+ position: absolute;
87
+ pointer-events: none;
88
+ border-color: rgba(255,255,255,0);
89
+ border-top-color: #fff;
90
+ border-width: 6px 11px 11px 11px;
91
+ margin-left: -6px;
92
+ "></div>
93
+ </div>
94
+ `;function my(c,k){return c/(k/100)}function Mo(c,k){return`${my(c,k).toPrecision(3)}%`}function yy(c,k,F,K,tt){var it,W,R,H,V,$,Z,U,z,I;if(tt!=null&&tt.shouldSkip&&tt.shouldSkip(c))return!1;const ot=((it=k.y)==null?void 0:it.length)===0,nt=he((R=(W=k.y)==null?void 0:W[0])==null?void 0:R.numberFormatConfig),st=((H=F==null?void 0:F.tooltip)==null?void 0:H.mode)==="contribution",ct=xe((V=k.y)==null?void 0:V[0]),pt=c.color;let ut=0;const ft=[],B=E=>{if(E.parentNode)ft.push(E);else{ut=E.val;return}B(E.parentNode)};return B(c.point.node),`
95
+ <div
96
+ class="csdk-treemap-tooltip-wrapper"
97
+ style="padding-bottom: ${ot?"0":"10px"};"
98
+ >
99
+ ${[...ft].reverse().map((E,M)=>{const P=M===ft.length-1;return`
100
+ <div
101
+ class="csdk-treemap-tooltip-level"
102
+ style="background: ${P?"#f2f2f2":"white"};"
103
+ >
104
+ ${tt!=null&&tt.displayColorCircles?vy(E.color):""}
105
+ <span
106
+ style="color: ${P?pt:"currentColor"}"
107
+ >${E.name}</span>
108
+ <span
109
+ style="color: ${P?"#5B6372":"currentColor"}; margin-left: auto;"
110
+ >${st?Mo(E.val,ut):yi(nt,E.val)}</span>
111
+ ${P?"":gy}
112
+ </div>`}).join("")}
113
+ ${ot?"":`<div class="csdk-treemap-tooltip-value">
114
+ <span style="color:${pt}; font-size: 15px">${st?Mo(ft[0].val,ut):yi(nt,($=ft[0])==null?void 0:$.val)}</span> ${K("treemap.tooltip.of")} ${ct}
115
+ </div>`}
116
+ ${ft[1]?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
117
+ <span style="color:${pt}; font-size: 15px">${Mo((Z=ft[0])==null?void 0:Z.val,(U=ft[1])==null?void 0:U.val)}
118
+ </span> ${K("treemap.tooltip.of")} ${(z=ft[1])==null?void 0:z.name}
119
+ </div>`:""}
120
+ ${tt!=null&&tt.displayTotalContribution&&!st?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
121
+ <span style="color:${pt}; font-size: 15px">${Mo((I=ft[0])==null?void 0:I.val,ut)}
122
+ </span> ${K("treemap.tooltip.ofTotal")}
123
+ </div>`:""}
124
+ </div>
125
+ </div>`}function vy(c){return`
126
+ <div style="
127
+ width: 12px;
128
+ height: 12px;
129
+ border-radius: 100%;
130
+ background-color: ${c};
131
+ margin-right: 6px;
132
+ "></div>
133
+ `}const by=Object.freeze({1:80,2:70,3:60,4:50});function xy(c,k,F,K){var nt,st;const tt={level:1,color:(st=(nt=K==null?void 0:K.chart)==null?void 0:nt.backgroundColor)!=null?st:"white",dataLabels:{enabled:!0,useHTML:!0,className:"!csdk-overflow-visible",formatter(){var ut,ft,B,it,W,R;const ct=he((ft=(ut=k.y)==null?void 0:ut[0])==null?void 0:ft.numberFormatConfig),{value:pt}=this.point;return`
134
+ <div style="text-align: center; transform: translateY(calc(-50% + 15px))">
135
+ <div style="color: ${(it=(B=K==null?void 0:K.chart)==null?void 0:B.secondaryTextColor)!=null?it:"#9EA2AB"}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px">${this.point.name}</div>
136
+ ${ti()}
137
+ <div style="
138
+ font-weight: 600;
139
+ font-size: 18px;
140
+ color: ${(R=(W=K==null?void 0:K.chart)==null?void 0:W.textColor)!=null?R:"#5B6372"}
141
+ "
142
+ >${yi(ct,pt)}</div>
143
+ </div>
144
+ `}},levelSize:{unit:"percentage",value:by[k.breakBy.length]||50}},ot=Array.from(new Array(c.xAxisCount)).map((ct,pt)=>{var ut,ft,B,it;return{level:pt+2,dataLabels:{enabled:(it=(B=(ft=(ut=F==null?void 0:F.labels)==null?void 0:ut.category)==null?void 0:ft[pt])==null?void 0:B.enabled)!=null?it:!1,formatter(){return`<span style="color: ${ao(Xe(this.color))>.4?"white":"rgb(43, 51, 66)"}">${this.point.name}</span>`}}}});return[tt,...ot]}function Bn(c,k,F){if(!c.series[0])return[];const K=Cy(c),tt=c.series[0].data.map(ot=>{var nt,st;return{value:ot.value,name:(nt=ot.xDisplayValue)==null?void 0:nt.slice(-1).toString(),parent:(st=ot.xValue)==null?void 0:st.slice(0,-1).join("_"),custom:Bt(Tt({},ot),{level:c.xAxisCount,levelsCount:c.xAxisCount})}});return wy([...K,...tt],k,F)}function Cy(c){const k={};return c.xValues.forEach(F=>{F.rawValues.slice(0,-1).forEach((K,tt)=>{var nt;const ot=F.rawValues.slice(0,tt+1).join("_");k[ot]={id:ot,name:F.xValues[tt],parent:F.rawValues.slice(0,tt).join("_"),custom:{xValues:F.xValues.slice(0,tt+1),rawValues:(nt=F.rawValues)==null?void 0:nt.slice(0,tt+1),level:tt+1,levelsCount:c.xAxisCount}}})}),Object.values(k)}function wy(c,k,F){const K=k.breakBy.map(ot=>ot.isColored).indexOf(!0)+1,tt=new Map;return c.map(ot=>{var nt;return ot.custom.level===K?(tt.has(ot.name)||tt.set(ot.name,tt.size),Bt(Tt({},ot),{color:(nt=rr(k,ot.name))!=null?nt:He(F==null?void 0:F.palette.variantColors,tt.get(ot.name))})):ot})}const Vr="SUNBURST_ROOT_PARENT_ID";function Sy(c,k,F){const K={id:Vr,name:xe(k.y[0]),custom:{level:0,levelsCount:c.xAxisCount}},tt=Bn(c,k,F).map(st=>st.parent===""?Bt(Tt({},st),{parent:Vr}):st),ot=Ty(tt),nt=My(ot,k,F);return[K,...nt]}function My(c,k,F){const tt=Ay(k),ot=k.breakBy.map(()=>new Map);c.forEach(ct=>{var ut,ft,B,it;const pt=ot[ct.custom.level-1];if(pt){const W=(ut=pt.get(ct.name))!=null?ut:0,R=(it=(B=ct.value)!=null?B:(ft=ct.custom)==null?void 0:ft.subtotalValue)!=null?it:0;pt.set(ct.name,W+R)}});const st=ot.map(ct=>Array.from(ct.entries()).sort(([,pt],[,ut])=>pt-ut).map(([pt])=>pt)).map((ct,pt)=>{var W,R;const ut=new Map,ft=He(F==null?void 0:F.palette.variantColors,pt),B=((R=(W=k.breakBy[pt])==null?void 0:W.color)==null?void 0:R.color)||ft,it=df(Ji(B,.3),Ji(B,-.3),ct.length);return ct.forEach((H,V)=>{ut.set(H,it[V])}),ut});return c.map(ct=>{var ft,B,it;const pt=(B=tt[((ft=ct.custom)==null?void 0:ft.level)||""])==null?void 0:B[(ct==null?void 0:ct.name)||""],ut=(it=st[ct.custom.level-1])==null?void 0:it.get(ct.name);return Bt(Tt({},ct),{color:pt||ut})})}function Ay(c){return c.breakBy.reduce((k,{column:F},K)=>{var tt;return(tt=c==null?void 0:c.seriesToColorMap)!=null&&tt[F.name]&&(k[K+1]=c.seriesToColorMap[F.name]),k},{})}function Ty(c){const k=new Map,F=new Map;c.forEach(tt=>{tt.parent&&(k.has(tt.parent)||k.set(tt.parent,[]),k.get(tt.parent).push(tt))}),Array.from(k.values()).sort((tt,ot)=>{var nt,st,ct,pt,ut,ft;return((ct=(st=(nt=ot[0])==null?void 0:nt.custom)==null?void 0:st.level)!=null?ct:0)-((ft=(ut=(pt=tt[0])==null?void 0:pt.custom)==null?void 0:ut.level)!=null?ft:0)}).forEach(tt=>{tt.forEach(ot=>{var ct,pt;const nt=(pt=(ct=ot.value)!=null?ct:F.get(ot.id))!=null?pt:0,st=F.get(ot.parent)||0;F.set(ot.parent,st+nt),ot.id&&(ot.custom.subtotalValue=F.get(ot.id))})});const K=[];return k.forEach(tt=>{tt.sort((ot,nt)=>{var pt,ut,ft,B;const st=(ut=(pt=ot.value)!=null?pt:F.get(ot.id))!=null?ut:0,ct=(B=(ft=nt.value)!=null?ft:F.get(nt.id))!=null?B:0;return st-ct}),K.push(...tt)}),K}const ky={type:"sunburst",borderWidth:0,dataLabels:{style:{textOutline:"none"}}},Py={title:{text:null},chart:{type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[],plotOptions:{series:{},sunburst:{events:{legendItemClick:function(c){c.preventDefault()}}}}};function sc(c,k,F,K){return[Bt(Tt({},ky),{name:"Root",data:Sy(c,k,K),levels:xy(c,k,F,K),showInLegend:!1,turboThreshold:2e3}),...k.breakBy.map((tt,ot)=>{var nt;return{name:xe(tt),showInLegend:!0,color:((nt=tt==null?void 0:tt.color)==null?void 0:nt.color)||He(K==null?void 0:K.palette.variantColors,ot),data:[],states:{hover:{enabled:!1}}}})]}function ac(c,k,F){return Nn(c,k,F,{displayTotalContribution:!0,displayColorCircles:!0,shouldSkip:K=>{var tt;return((tt=K.point.options)==null?void 0:tt.id)===Vr}})}function Ly(c,k,F,K,tt){return Bt(Tt({},Py),{series:sc(c,k,F,tt),tooltip:ac(k,F,K),legend:ui(F.legend)})}const Ey=(c,k,F,K,tt)=>{const ot=[];return{options:Ly(c,F,k,K,tt),alerts:ot}},Oy="rgb(255, 255, 255)",ra="rgb(43, 51, 66)",$o=20,Zo=4,Dy=2,$r=1,jy=$o*2,Iy=26,Ny=20,na=35,By=$o+Zo-2,sa={key:"brightness",to:.15};uh.Series.types.treemap.prototype.squarifiedWithTopSpacing=function(c,k){const F=zy(c.height,this.chart.plotHeight),K=this.squarified(c,k),tt=F(By);return Fy(this.chart)?K.map((ot,nt)=>{const st=ot.height>=F(jy);return k[nt].point.options.custom.bigLabelSpacing=st,st&&(ot.height=ot.height-tt,ot.y=ot.y+tt),ot}):K};function lc(c,k,F){const K=_y();return K.forEach((tt,ot)=>{var st,ct,pt,ut,ft,B,it;const nt=tt.dataLabels;(st=k==null?void 0:k.labels)!=null&&st.category&&(nt.enabled=(ft=(ut=(pt=(ct=k.labels)==null?void 0:ct.category)==null?void 0:pt[ot])==null?void 0:ut.enabled)!=null?ft:!0),(B=F==null?void 0:F.typography)!=null&&B.fontFamily&&(nt.style.fontFamily=(it=F==null?void 0:F.typography)==null?void 0:it.fontFamily)}),c.breakBy.length===1&&(K[0].borderWidth=$r,K[0].borderColor="black",K[0].layoutAlgorithm="strip",K[0].dataLabels=K[1].dataLabels),c.breakBy.length===2&&(K[1].borderWidth=$r,K[1].borderColor="black"),c.breakBy.some(({isColored:tt})=>tt)&&(K[1].colorVariation=sa,K[2].colorVariation=sa),K}function Sr(){var F,K;const c=ao(Xe(this.color))>.4&&!((K=(F=this.point.options)==null?void 0:F.custom)!=null&&K.blur),{width:k}=cc(this.point);return Ry(this.point)?hc(this.point)?`<div
145
+ style="
146
+ width:${k-Zo}px;
147
+ height: ${$o}px;
148
+ background: #e6e6e6;
149
+ color: ${ra};
150
+ padding: 3px;
151
+ position: absolute;
152
+ top: -${$o}px;
153
+ text-align: center;
154
+ overflow: hidden;
155
+ text-overflow: ellipsis;
156
+ left: ${Zo/2}px;
157
+ "
158
+ >${this.key}</div>`:`<div style="fill:${c?Oy:ra};">${this.key}</div>`:""}function _y(){return[{level:1,borderWidth:Zo,borderColor:"white",layoutAlgorithm:"squarifiedWithTopSpacing",dataLabels:{useHTML:!0,enabled:!0,align:"left",verticalAlign:"top",allowOverlap:!0,padding:0,style:{fontSize:"14px"},formatter:Sr}},{level:2,borderWidth:Dy,borderColor:"white",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"14px"},formatter:Sr}},{level:3,borderColor:"black",borderWidth:$r,dataLabels:{enabled:!0,align:"center",verticalAlign:"middle",style:{fontSize:"13px"},formatter:Sr}}]}function hc(c){var k,F,K,tt;return((F=(k=c.options)==null?void 0:k.custom)==null?void 0:F.levelsCount)!==1&&((tt=(K=c.options)==null?void 0:K.custom)==null?void 0:tt.level)===1}function Ry(c){const{height:k,width:F}=cc(c),{level:K}=c.options.custom;return hc(c)?!!c.options.custom.bigLabelSpacing:K!==3?k>=Iy&&F>=na:k>=Ny&&F>=na}function zy(c,k){return F=>{const K=k/c;return F/K}}function Fy(c){var K,tt,ot,nt,st,ct;const k=(tt=(K=c.options.series)==null?void 0:K[0])!=null?tt:{};return(ct=((st=(nt=(ot=k==null?void 0:k.levels)==null?void 0:ot[0])==null?void 0:nt.dataLabels)!=null?st:{}).enabled)!=null?ct:!0}function cc(c){var k,F,K,tt;return{width:(F=(k=c.shapeArgs)==null?void 0:k.width)!=null?F:0,height:(tt=(K=c.shapeArgs)==null?void 0:K.height)!=null?tt:0}}const Gy="rgb(0, 206, 230)",Wy={type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:Gy,dataLabels:{style:{textOutline:"none"}}},Xy={title:{text:null},chart:{type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[]};function Hy(c,k,F,K,tt){return Bt(Tt({},Xy),{series:[Bt(Tt({},Wy),{name:k.y[0]?xe(k.y[0]):"",data:Bn(c,k,tt),levels:lc(k,F,tt)})],tooltip:Nn(k,F,K)})}const Yy=(c,k,F,K,tt)=>{const ot=[];return{options:Hy(c,F,k,K,tt),alerts:ot}},Uy=(c,k,F,K,tt,ot)=>{switch(k){case"pie":return fy(c,F,K,ot);case"funnel":return py(c,F,K,ot);case"treemap":return Yy(c,F,K,tt,ot);case"sunburst":return Ey(c,F,K,tt,ot);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:k})}},Vy=(c,k,F)=>({animation:!1,crosshairs:!0,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var $,Z,U,z;if(!this.point.low||!this.point.high)return Nh(this,k,F);let K;this.percentage&&(K=`${Math.round(this.percentage)}`);const tt=k,ot=($=tt.rangeValues)==null?void 0:$.find(tt.breakBy.length>0?I=>I[0].enabled:I=>xe(I[0])===this.series.name),[nt,st]=ot!=null?ot:[void 0,void 0],ct=xh(nt),pt=le(nt,this.point.high,""),ut=le(st,this.point.low,""),ft=(z=(U=(Z=this.point)==null?void 0:Z.custom)==null?void 0:U.xDisplayValue)!=null?z:this.x,B=tt.x?le(tt.x[0],this.x,ft):ft,it=pt+(ct&&K?` / ${K}%`:""),W=ut+(ct&&K?` / ${K}%`:""),R=this.point.color||this.series.color,{upperPointName:H,lowerPointName:V}=this.point;return vi(`
159
+ <div>${this.series.name}</div>
160
+ <div class="csdk-range-tooltip-row">
161
+ <span>${H||F("arearange.tooltip.max")}</span>
162
+ ${Me(it,R)}
163
+ </div>
164
+ <div class="csdk-range-tooltip-row">
165
+ <span>${V||F("arearange.tooltip.min")}</span>
166
+ ${Me(W,R)}
167
+ </div>
168
+ ${ti()}
169
+ <div>${B||""}</div>
170
+ `)}}),aa=(c,k,F,K,tt,ot,nt)=>{var E,M;const st=[],ct=[];K.seriesValues.forEach(P=>{ct.push(P),st.push(P)}),K.rangeValues.forEach(([P,y])=>{ct.push(y),st.push(P)});const ft=Bt(Tt({},K),{y:ct,seriesToColorMap:K.seriesToColorMap}),B=Vo(Bt(Tt({},c),{type:"cartesian"}),k,F,ft,tt,ot,nt),it={};B.options.series.forEach(P=>{it[P.name]=P});const W=Bt(Tt({},K),{y:st,seriesToColorMap:K.seriesToColorMap}),R=Vo(Bt(Tt({},c.seriesOther),{type:"cartesian"}),k,F,W,tt,ot,nt),H={};R.options.series.forEach(P=>{H[P.name]=P});let V=1/0,$=-1/0,Z=-1,U=0;if(B.options.series.forEach((P,y)=>{if(K.breakBy.length===0&&y<K.seriesValues.length)Si(P.name)&&(Z=Zg(P,H,it)),P.zIndex=1,P.data.forEach(h=>{h.y&&h.y<V&&(V=h.y),h.y&&h.y>$&&($=h.y)});else{const h=H[P.name].data;P.yAxis=0;let f=0;K.breakBy.length===0&&(f=y-K.seriesValues.length);const m=K.rangeValues[f],u=m[0].column.name.indexOf("_")+1,v=m[1].column.name.substring(u),w=m[0].column.name.substring(u);P.type="arearange",Si(P.name)&&Kg(P,H),U=Math.max(P.data.length,U),P.data=P.data.map((S,x)=>{const p=Bt(Tt({},S),{low:h[x].y,high:S.y,y:void 0,upperPointName:v,lowerPointName:w});return p.low&&p.low<V&&(V=p.low),p.high&&p.high>$&&($=p.high),p}),Si(P.name)&&qg(P,H)}}),B.options.xAxis||(B.options.xAxis=[]),Z>0&&Jg(B.options.xAxis,Z,U),k==="arearange"&&F.lineType==="smooth"){const P="areasplinerange";B.options.chart.type=P,(E=B.options.navigator)!=null&&E.series&&(B.options.navigator.series.type=P)}k==="arearange"&&(B.options.tooltip=Vy(!1,K,tt));const[z]=(M=B.options.yAxis)!=null?M:[],I=Bt(Tt({},z),{min:V,max:$});return B.options.yAxis=[I],B},$y={displayValue:"0"},zi=(c,k)=>{if(k){for(let F=0;F<c.columns.length;F++)if(c.columns[F].name===k.column.name)return F}return-1},Zy=(c,k)=>({x:zi(k,c.x),y:zi(k,c.y),breakByPoint:zi(k,c.breakByPoint),breakByColor:zi(k,c.breakByColor),size:zi(k,c.size)}),la=(c,k)=>k[c]||$y,Ky=(c,k)=>{const F=new Set;return c.forEach(K=>{F.add(K[k].displayValue)}),Array.from(F.values())},ha=(c,k,F)=>{if(F&&!qe(F))return Ky(c,k)},ca=(c,k)=>[c,k],qy=(c,k)=>{const F=new Map(c==null?void 0:c.map(ca)),K=new Map(k==null?void 0:k.map(ca));return{xCategoriesMap:F,yCategoriesMap:K}},Jy=(c,k)=>{var ot,nt;const F=Zy(c,k),K=c!=null&&c.breakByPoint&&Rt.isNumber(c.breakByPoint.column.type)?he((ot=c.breakByPoint)==null?void 0:ot.numberFormatConfig):void 0,tt=c!=null&&c.breakByColor&&(qe(c.breakByColor)||Rt.isNumber(c.breakByColor.column.type))?he((nt=c.breakByColor)==null?void 0:nt.numberFormatConfig):void 0;return k.rows.map(st=>{const ct=Tt({},st[F.breakByPoint]);K&&(ct.displayValue=Ce(K,ct.compareValue?ct.compareValue.value:parseFloat(ct.displayValue)));const pt=Tt({},st[F.breakByColor]);return tt&&(pt.displayValue=Ce(tt,pt.compareValue?pt.compareValue.value:parseFloat(pt.displayValue))),{xAxis:la(F.x,st),yAxis:la(F.y,st),breakByPoint:ct,breakByColor:pt,size:st[F.size]}})},Qy=(c,k)=>{const F=Jy(c,k),{x:K,y:tt}=c,ot=ha(F,"xAxis",K),nt=ha(F,"yAxis",tt);return{type:"scatter",scatterDataTable:F,xCategories:ot,yCategories:nt}},$e="#d1d1d7";function pc(c,k,F){if(F&&F.length&&!F.includes(k))return"";const K=typeof k=="number"?k:parseFloat(k);return isNaN(K)?`${k}`:c&&!qe(c)&&!Rt.isNumber(c.column.type)?`${k}`:Ce(he(c==null?void 0:c.numberFormatConfig),K)}const t0=(c,k,F)=>[{type:c.type,startOnTick:!1,endOnTick:!(c.max||k),labels:{overflow:"justify",enabled:c.enabled&&c.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter:function(){return pc(F==null?void 0:F.x,this.value,this.axis.categories)}},categories:k||void 0,gridLineWidth:c.enabled&&c.gridLine?1:0,gridLineColor:$e,gridLineDashStyle:"Dot",title:{enabled:c.enabled&&c.titleEnabled,margin:25,text:c.title||null},lineColor:$e,lineWidth:1,minorTickColor:$e,minorGridLineColor:$e,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:$e,tickmarkPlacement:"on",tickInterval:c.enabled?c.tickInterval:null,min:c.enabled?c.min:null,max:c.enabled?c.max:null}],e0=(c,k,F)=>[{type:c.type,startOnTick:!1,endOnTick:!(c.max||k),title:{enabled:c.enabled&&c.titleEnabled,text:c.title||null},labels:{enabled:c.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter:function(){return pc(F==null?void 0:F.y,this.value,this.axis.categories)}},categories:k||void 0,gridLineColor:$e,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:$e,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:$e,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:$e,minorTickWidth:0,opposite:!1,tickColor:$e,tickWidth:0,tickmarkPlacement:"on",tickInterval:c.enabled?c.tickInterval:null,min:c.enabled?c.min:null,max:c.enabled?c.max:null}],dc={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},i0=(c,k)=>{var tt;if(!(c!=null&&c.enabled))return{enabled:!1};const F=(tt=c.rotation)!=null?tt:0,K=Tt({enabled:!0,align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:F},Dn(F)==="horizontal"?{y:-1}:null);return K.formatter=function(){var B,it;const ot=this,nt={maskedY:k.y,maskedX:k.x,maskedSize:k.size,maskedBreakByColor:k.breakByColor},ct=[k.y,k.x,k.size,k.breakByColor].find(W=>W&&qe(W)),pt=(B=Object.entries(nt).find(([,W])=>W===ct))==null?void 0:B[0],ut=((it=ot.point.custom)==null?void 0:it[pt])||"";if(isNaN(parseFloat(ut)))return ut;const ft=he(ct==null?void 0:ct.numberFormatConfig);return Ce(ft,parseFloat(ut))},K.style=Bt(Tt({},K.style),{fontWeight:"",textOutline:""}),K},o0=(c,k)=>({minSize:k?c.scatterBubbleMinSize:c.scatterDefaultSize,maxSize:k?c.scatterBubbleMaxSize:c.scatterDefaultSize}),r0=(c,k)=>{var K;const F=!!k.size;return{bubble:Tt({animation:!1},o0((K=c.markerSize)!=null?K:dc,F)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:i0(c.seriesLabels,k),stickyTracking:!1,turboThreshold:0}}},uc="#00cee6",Zr=c=>{const k=c.rawValue==null?Number(c.displayValue):Number(c.rawValue);return Number.isNaN(k)||k===void 0?null:k},n0=c=>c?Zr(c):1,s0=(c,k)=>{const{xAxis:F,yAxis:K,breakByPoint:tt,breakByColor:ot,size:nt}=c,{xCategoriesMap:st,yCategoriesMap:ct}=k,pt=st.get(F.displayValue),ut=ct.get(K.displayValue),ft=F.blur||K.blur||(tt==null?void 0:tt.blur);return{x:pt!==void 0?pt:Zr(F),y:ut!==void 0?ut:Zr(K),z:n0(nt),maskedX:F.displayValue,maskedY:K.displayValue,maskedBreakByPoint:tt==null?void 0:tt.displayValue,maskedBreakByColor:ot==null?void 0:ot.displayValue,color:ot==null?void 0:ot.color,maskedSize:nt==null?void 0:nt.displayValue,selected:ft}},a0=(c,k,F)=>{var nt,st;const K=new Map;c.forEach(ct=>{var pt;if(ct.breakByColor){const{displayValue:ut,color:ft}=ct.breakByColor;if(ut&&!K.has(ut)){const B=ft||((pt=k==null?void 0:k.seriesToColorMap)==null?void 0:pt[ut]);K.set(ut,B)}}});const tt=new Map,ot=Rt.isNumber((st=(nt=k==null?void 0:k.breakByColor)==null?void 0:nt.column)==null?void 0:st.type)?"number":"string";return Array.from(K).sort(([ct],[pt])=>il(ct,pt,nd.ASC,ot)).forEach(([ct,pt],ut)=>{tt.set(ct,{color:pt!=null?pt:He(F==null?void 0:F.palette.variantColors,ut),index:ut})}),tt},l0=(c,k,F)=>{const K={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return c.size?Array.from(c).map(([tt,{index:ot,color:nt}])=>({data:[],index:ot,marker:K,name:tt,showInLegend:!0,type:"bubble",color:nt})):[{data:[],index:0,marker:K,name:k,showInLegend:!!k,type:"bubble",color:ul(F)||uc}]},h0=(c,k)=>{const F=c.get(k);return F?F.index:0},c0=(c,k)=>{const F=Tn({getValueFromDataStructure:K=>{var tt;return parseFloat(`${(tt=K.custom)==null?void 0:tt.maskedBreakByColor}`)},applyColorToDataStructure:(K,tt)=>Bt(Tt({},K),{color:tt})});return c.map(K=>Bt(Tt({},K),{data:F(K.data,k)}))},p0=c=>{if(c&&qe(c)&&c.color)return c.color},d0=(c,k,F,K)=>{for(const tt of k){const{x:ot,y:nt,z:st,maskedX:ct,maskedY:pt,maskedBreakByPoint:ut,maskedSize:ft,color:B,maskedBreakByColor:it,selected:W}=s0(tt,F);if(ot!==null&&nt!==null){const R=c[h0(K,it)],H={color:B||R.color||uc,x:ot,y:nt,z:st,custom:{maskedX:ct,maskedY:pt,maskedBreakByPoint:ut,maskedBreakByColor:it,maskedSize:ft},selected:W};R.data.push(H)}}return c},u0=c=>{const k=c==null?void 0:c.breakByColor,F=c==null?void 0:c.breakByPoint;return k&&xe(k)||F&&xe(F)||""},f0=(c,k,F,K)=>{const tt=F==null?void 0:F.breakByColor,ot=u0(F),nt=p0(tt),st=tt&&!qe(tt)?a0(c,F,K):new Map;let ct=l0(st,ot,nt);return ct=d0(ct,c,k,st),nt&&(ct=c0(ct,nt)),ct},g0=(c,k)=>k?c.slice(0,k):c,m0=(c,k,F,K,tt,ot)=>{const nt=[],st=f0(c,k,F,tt).map(ct=>Bt(Tt({},ct),{dataLabels:K==null?void 0:K.seriesLabels}));return ot&&st.length>ot?(nt.push(bi(st.length,ot)),{series:g0(st,ot),alerts:nt}):{series:st,alerts:nt}},Ao=20,y0=30,v0=c=>Tt({symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0},ui(c)),b0=(c,k,F,K,tt)=>{const ot=[],nt=Ei(k,F),st=K,{scatterDataTable:ct}=c,{seriesCapacity:pt,categoriesCapacity:ut}=F.dataLimits;let{xCategories:ft,yCategories:B}=c;ft&&ft.length>ut&&(ot.push(Ho("x",ft.length,ut)),ft=ft.slice(0,ut)),B&&B.length>ut&&(ot.push(Ho("y",B.length,ut)),B=B.slice(0,ut));const{series:it,alerts:W}=m0(ct,qy(ft,B),st,F,tt,pt);return ot.unshift(...W),{options:{title:{text:null},subtitle:{text:null},chart:{type:nt,spacing:[Ao,Ao,Ao,Ao],marginTop:y0,alignTicks:!1,polar:!1},xAxis:t0(F.xAxis,ft==null?void 0:ft.slice(0,ut),st),yAxis:e0(F.yAxis,B==null?void 0:B.slice(0,ut),st),legend:v0(F.legend),series:it,plotOptions:r0(F,st),tooltip:$g(st)},alerts:ot}},x0=(c,k,F,K,tt,ot,nt)=>{switch(c.type){case"range":return aa(c,k,F,K,tt,ot,nt);case"cartesian":{const st=K,ct=Mh(st)?aa(Bt(Tt({},c),{type:"range"}),k,F,Ah(st),tt,ot,nt):Vo(c,k,F,st,tt,ot,nt);return tm(ct.options.series),ct}case"categorical":return Uy(c,k,F,K,tt,ot);case"scatter":return b0(c,k,F,K,ot);case"boxplot":return Sm(c,F,K,tt,ot);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:c.type})}},C0={legend:{enabled:!0,position:"bottom"},navigator:{enabled:!0},markers:{enabled:!1,fill:"filled",size:"small"},seriesLabels:{enabled:!1,rotation:0},xAxis:{enabled:!0,gridLines:!1,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"X Axis title"}},yAxis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y Axis title"}},y2Axis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y2 Axis title"}},convolution:{enabled:!1,selectedConvolutionType:"byPercentage",minimalIndependentSlicePercentage:3,independentSlicesCount:7},labels:{categories:!0,enabled:!0,percent:!0,decimals:!1,value:!1}},w0=()=>Rt.cloneDeep(C0);function S0(c){return Rt.flatRest(function(k){return k=Rt.arrayMap(k,Rt.baseUnary(Rt.baseIteratee)),Rt.baseRest(function(F){var K=this;return c(k,function(tt){return Rt.apply(tt,K,F)})})})}var fc=S0(Rt.arrayMap);function nr(c,k=!1){const F=c.filter(K=>Rt.isFunction(K));return k?ir(F):fc(F)}function gc(...c){return(k,F)=>c.reduce((K,tt)=>{var ot;return tt&&(ot=tt(k,K))!=null?ot:K},F)}function M0(...c){return k=>c.reduce((F,K)=>{var tt;return K&&(tt=K(F))!=null?tt:F},k)}function A0(...c){return k=>c.reduce((F,K)=>{if(!K)return F;const tt=K(F);return tt!==null?tt:F},k)}const mc={"chart/line":"line","chart/area":"area","chart/bar":"bar","chart/column":"column","chart/polar":"polar","chart/pie":"pie","chart/funnel":"funnel",treemap:"treemap",sunburst:"sunburst","chart/scatter":"scatter",indicator:"indicator","chart/boxplot":"boxplot","map/scatter":"scattermap","map/area":"areamap",tablewidget:"table",tablewidgetagg:"table",heatmap:"calendar-heatmap"},T0=Object.entries(mc).reduce((c,[k,F])=>(c[F]=k,c),{});function k0(c){return mc[c]}function P0(c){return T0[c]}function L0(c,k){if(c==="chart"){if(!k)throw new Error("chartType is required for chart widget type");return P0(k)}if(c==="pivot")return"pivot2";if(c==="custom")return"custom";if(c==="text")return"richtexteditor";throw new Rt.TranslatableError("errors.widgetModel.unsupportedWidgetType",{widgetType:c})}function E0(c){if(_n(c))return"pivot";if(z0(c))return"custom";if(Rn(c))return"text";if(yc(c))return"chart";throw new Rt.TranslatableError("errors.widgetModel.unsupportedFusionWidgetType",{fusionWidgetType:c})}function O0(c){return{"area/basic":"area/basic","area/stacked":"area/stacked","area/stacked100":"area/stacked100","area/spline":"area/spline","area/stackedspline":"area/stackedspline","area/stackedspline100":"area/stackedspline100","bar/classic":"bar/classic","bar/stacked":"bar/stacked","bar/stacked100":"bar/stacked100","column/classic":"column/classic","column/stackedcolumn":"column/stackedcolumn","column/stackedcolumn100":"column/stackedcolumn100","line/basic":"line/basic","line/spline":"line/spline","pie/classic":"pie/classic","pie/donut":"pie/donut","pie/ring":"pie/ring","column/polar":"polar/column","area/polar":"polar/area","line/polar":"polar/line","indicator/numeric":"indicator/numeric","indicator/gauge":"indicator/gauge",treemap:"treemap",sunburst:"sunburst","boxplot/full":"boxplot/full","boxplot/hollow":"boxplot/hollow","map/scatter":"scattermap"}[c]}function D0(c){return["chart/line","chart/area","chart/bar","chart/column","chart/polar","chart/pie","chart/funnel","treemap","sunburst","chart/scatter","indicator","tablewidget","tablewidgetagg","pivot","pivot2","chart/boxplot","map/scatter","map/area","richtexteditor","heatmap"].includes(c)}const j0=["chart/pie","indicator","richtexteditor","chart/column","chart/bar","chart/line","chart/area","pivot","pivot2","chart/scatter","chart/polar"];function I0(c){return j0.includes(c)}function N0(c){return c==="tablewidget"||c==="tablewidgetagg"}function B0(c){return H0(c.widgetType)&&c.chartType==="table"}function _n(c){return c==="pivot"||c==="pivot2"}function _0(c){return c==="pivot"}function Rn(c){return c==="richtexteditor"}function R0(c){return c==="text"}function z0(c){return c==="custom"}function F0(c){return c==="custom"}function yc(c){return!_n(c)&&!Rn(c)}function G0(c){return c.startsWith("chart")}function W0(c){return c==="chart/pie"}function X0(c){return c==="indicator"}function H0(c){return c==="chart"}function vc(c){return c.widgetType==="text"}function zn(c){return c.widgetType==="pivot"}function bc(c){return c.widgetType==="custom"}function sr(c){return c.widgetType==="chart"}function Y0(c){return zn(c)?"pivot":bc(c)?"custom":vc(c)?"text":c.chartType}function U0(c,k){sr(c)&&(c.onDataPointClick=nr([c.onDataPointClick,k]))}function V0(c,k){!sr(c)&&!zn(c)||(c.onDataPointContextMenu=nr([c.onDataPointContextMenu,k]))}function $0(c,k){sr(c)&&(c.onDataPointsSelected=nr([c.onDataPointsSelected,k]))}function Z0(c,k){var K;const F=c.styleOptions;c.styleOptions=Bt(Tt({},F),{header:Bt(Tt({},F==null?void 0:F.header),{renderToolbar:gc((K=F==null?void 0:F.header)==null?void 0:K.renderToolbar,k)})})}function K0(c,k){var tt;const F=c.find(ot=>ot.name===k);return((tt=F==null?void 0:F.items)!=null?tt:[]).filter(ot=>!ot.disabled)}function xc(c){return c.parent?xc(c.parent):c}const q0=c=>Ua(c)?"cartesian":Va(c)?"categorical":$a(c)?"scatter":Za(c)?"scattermap":Ka(c)?"indicator":Qa(c)?"areamap":Ja(c)?"boxplot":"table";exports.ALL_CHART_TYPES=Qp;exports.BOXPLOT_CHART_TYPES=dn;exports.CARTESIAN_CHART_TYPES=hn;exports.CATEGORICAL_CHART_TYPES=cn;exports.CacheProvider=Up;exports.Color=ee;exports.DEFAULT_BACKGROUND_COLOR=mp;exports.DEFAULT_COLOR=No;exports.DEFAULT_TEXT_COLOR=on;exports.DefaultFunnelDirection=nh;exports.DefaultFunnelLabels=ih;exports.DefaultFunnelSize=oh;exports.DefaultFunnelType=rh;exports.DefaultPieLabels=lh;exports.DefaultPieType=hh;exports.ERROR_COLOR=yp;exports.Emotion$1=ln;exports.Fragment=za;exports.Highcharts=uh;exports.I18nContext=fa;exports.NOT_AVAILABLE_DATA_VALUE=rn;exports.NOT_AVAILABLE_TEXT=vp;exports.QUERY_DEFAULT_LIMIT=fp;exports.RANGE_CHART_TYPES=un;exports.SCATTER_CHART_TYPES=pn;exports.SYSTEM_TENANT_NAME=gp;exports.TRIANGLE_COLOR_ADJUSTMENT=sf;exports.ThemeContext=Ra;exports.advancedAnalyticsData=om;exports.applyFormat=yi;exports.applyFormatPlainText=Ce;exports.applyOpacity=Hl;exports.baseTrim=ja;exports.buildCategoriesMeta=Wh;exports.buildXAxisSettings=Xh;exports.buildYAxisMeta=Gh;exports.buildYAxisMinMax=Ur;exports.cartesianData=_r;exports.categoriesSliceWarning=Ho;exports.colorChineseSilver=ei;exports.colorWhite=ii;exports.combineHandlers=nr;exports.commonjsGlobal=Fi;exports.composeTextWidgetToolbarHandlers=M0;exports.composeTitleHandlers=A0;exports.composeToolbarHandlers=gc;exports.createCache=Sa;exports.createCompareValue=Vi;exports.createDataColoringFunction=Tn;exports.createDataTableFromData=ad;exports.createEmotionProps=an;exports.defaultScatterMarkerSize=dc;exports.deriveChartFamily=q0;exports.determineHighchartsChartType=Ei;exports.emptyTable=xn;exports.extractForecastMeasures=im;exports.extractTrendMeasures=em;exports.flow=ir;exports.formatFunnelChartData=Vh;exports.formatTooltipValue=le;exports.getAlerts=$h;exports.getAugmentedNamespace=Ac;exports.getCartesianChartOptions=Vo;exports.getCartesianTooltipSettings=Bh;exports.getCategoryTooltipSettings=In;exports.getChartSubtype=O0;exports.getChartType=k0;exports.getColoringServiceByColorOptions=Ul;exports.getColumnByName=ni;exports.getColumnsByName=$i;exports.getCompleteNumberFormatConfig=he;exports.getDarkFactor=ao;exports.getData=Ln;exports.getDataOptionGranularity=gn;exports.getDataOptionTitle=xe;exports.getDefaultDateFormat=En;exports.getDefaultExportFromCjs=Kr;exports.getDefaultStyleOptions=w0;exports.getEnabledPanelItems=K0;exports.getFunnelPlotOptions=ah;exports.getFusionWidgetType=L0;exports.getIndexedRows=bn;exports.getInternalWidgetType=Y0;exports.getInterpolatorFn=Yl;exports.getLegendSettings=ui;exports.getOrderedXValues=ql;exports.getPaletteColor=He;exports.getPieAlerts=ic;exports.getPieConvolutionSeries=nc;exports.getPiePlotOptions=ch;exports.getPieSeries=rc;exports.getRegisteredStyles=Ma;exports.getRootPanelItem=xc;exports.getSlightlyDifferentColor=pf;exports.getTreemapTooltipSettings=Nn;exports.getUniformColorOptionsFromString=Cn;exports.getValue=hl;exports.getValues=Li;exports.getWidgetType=E0;exports.getYAxisSettings=_h;exports.groupBy=al;exports.hasOwn=io;exports.hasSecondaryYAxis=Hh;exports.highchartsOptionsService=x0;exports.insertStyles=Aa;exports.isAreamap=Qa;exports.isBlurred=cl;exports.isBoxplot=Ja;exports.isCalendarHeatmap=Jp;exports.isCartesian=Ua;exports.isCategorical=Va;exports.isCell=rl;exports.isChartFusionWidget=yc;exports.isChartTypeFusionWidget=G0;exports.isChartWidgetProps=sr;exports.isContinuousDatetimeXAxis=Fh;exports.isCustomWidget=F0;exports.isCustomWidgetProps=bc;exports.isDataTableEmpty=sd;exports.isForecastChart=Mh;exports.isIndicator=Ka;exports.isIndicatorFusionWidget=X0;exports.isLaziable=Fr;exports.isLegendOnRight=kn;exports.isMeasureColumn=qe;exports.isNumber=Hr;exports.isPieChartFusionWidget=W0;exports.isPivotTableFusionWidget=_n;exports.isPivotTableWidgetProps=zn;exports.isPivotWidget=_0;exports.isRange=qp;exports.isScatter=$a;exports.isScattermap=Za;exports.isStyledColumn=mn;exports.isSupportedWidgetType=D0;exports.isTable=Kp;exports.isTableFusionWidget=N0;exports.isTableWidgetModel=B0;exports.isTextFusionWidget=Rn;exports.isTextWidget=R0;exports.isTextWidgetProps=vc;exports.isUndefined=fn;exports.jsx=se;exports.jsxs=ai;exports.memoize=Ca;exports.merge=Be;exports.metaMap=zr;exports.noop=ph;exports.normalizeAnyColumn=rd;exports.normalizeColumn=tl;exports.normalizeMeasureColumn=el;exports.orderBy=sl;exports.over=fc;exports.parseISOWithTimezoneCheck=sn;exports.prepareStackLabels=Rh;exports.prepareSunburstSeries=sc;exports.prepareSunburstTooltip=ac;exports.prepareTreemapDataItems=Bn;exports.prepareTreemapLevels=lc;exports.purify=bh;exports.rangeData=Sh;exports.registerDataPointClickHandler=U0;exports.registerDataPointContextMenuHandler=V0;exports.registerDataPointsSelectedHandler=$0;exports.registerRenderToolbarHandler=Z0;exports.registerStyles=en;exports.requiredArgs=La;exports.rownumColumnName=yn;exports.safeCombine=td;exports.safeMerge=Io;exports.scaleBrightness=Ji;exports.scatterData=Qy;exports.selectColumns=ll;exports.serializeStyles=ka;exports.seriesSliceWarning=bi;exports.sortDirection=Kl;exports.splitColumn=oo;exports.stackTotalFontStyleDefault=to;exports.toColor=Xe;exports.toFinite=Ia;exports.toGray=Wl;exports.toInteger=Pa;exports.toInteger$1=pl;exports.toNumber=nn;exports.tooltipSeparator=ti;exports.tooltipWrapper=vi;exports.translateColumnToAttribute=ed;exports.translateColumnToMeasure=id;exports.useInsertionEffectAlwaysWithSyncFallback=Na;exports.useTranslation=qr;exports.widgetTypeSupportsJtd=I0;exports.withEmotionCache=_a;exports.withPolarSpecificAxisSettings=zh;exports.withXAxisLabelPositioning=Uh;exports.withYAxisLabelPositioning=Yh;exports.withYAxisNormalizationForPolar=Vm;