highcharts 12.6.0 → 12.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (777) hide show
  1. package/LICENSE.txt +6 -1
  2. package/bower.json +1 -1
  3. package/es-modules/Core/Chart/Chart.js +8 -2
  4. package/es-modules/Core/Defaults.js +4 -0
  5. package/es-modules/Core/Globals.js +1 -1
  6. package/es-modules/Core/Renderer/HTML/AST.js +19 -11
  7. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
  8. package/es-modules/Core/Series/Point.js +8 -1
  9. package/es-modules/Core/Series/Series.js +7 -0
  10. package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +1 -1
  11. package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +1 -1
  12. package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +6 -4
  13. package/es-modules/Extensions/Breadcrumbs/BreadcrumbsDefaults.js +1 -1
  14. package/es-modules/Extensions/Exporting/ExportingDefaults.js +1 -1
  15. package/es-modules/Stock/StockTools/StockToolbar.js +1 -1
  16. package/es-modules/masters/highcharts-3d.src.js +1 -1
  17. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  18. package/es-modules/masters/highcharts-more.src.js +1 -1
  19. package/es-modules/masters/highcharts.src.js +1 -1
  20. package/es-modules/masters/highmaps.src.js +1 -1
  21. package/es-modules/masters/highstock.src.js +1 -1
  22. package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
  23. package/es-modules/masters/i18n/fr-FR.src.js +1 -1
  24. package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
  25. package/es-modules/masters/i18n/nb-NO.src.js +1 -1
  26. package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
  27. package/es-modules/masters/i18n/zh-CN.src.js +1 -1
  28. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  29. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  30. package/es-modules/masters/indicators/ao.src.js +1 -1
  31. package/es-modules/masters/indicators/apo.src.js +1 -1
  32. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  33. package/es-modules/masters/indicators/aroon.src.js +1 -1
  34. package/es-modules/masters/indicators/atr.src.js +1 -1
  35. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  36. package/es-modules/masters/indicators/cci.src.js +1 -1
  37. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  38. package/es-modules/masters/indicators/cmf.src.js +1 -1
  39. package/es-modules/masters/indicators/cmo.src.js +1 -1
  40. package/es-modules/masters/indicators/dema.src.js +1 -1
  41. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  42. package/es-modules/masters/indicators/dmi.src.js +1 -1
  43. package/es-modules/masters/indicators/dpo.src.js +1 -1
  44. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  45. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  46. package/es-modules/masters/indicators/indicators.src.js +1 -1
  47. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  48. package/es-modules/masters/indicators/klinger.src.js +1 -1
  49. package/es-modules/masters/indicators/macd.src.js +1 -1
  50. package/es-modules/masters/indicators/mfi.src.js +1 -1
  51. package/es-modules/masters/indicators/momentum.src.js +1 -1
  52. package/es-modules/masters/indicators/natr.src.js +1 -1
  53. package/es-modules/masters/indicators/obv.src.js +1 -1
  54. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  55. package/es-modules/masters/indicators/ppo.src.js +1 -1
  56. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  57. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  58. package/es-modules/masters/indicators/psar.src.js +1 -1
  59. package/es-modules/masters/indicators/regressions.src.js +1 -1
  60. package/es-modules/masters/indicators/roc.src.js +1 -1
  61. package/es-modules/masters/indicators/rsi.src.js +1 -1
  62. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  63. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  64. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  65. package/es-modules/masters/indicators/tema.src.js +1 -1
  66. package/es-modules/masters/indicators/trendline.src.js +1 -1
  67. package/es-modules/masters/indicators/trix.src.js +1 -1
  68. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  69. package/es-modules/masters/indicators/vwap.src.js +1 -1
  70. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  71. package/es-modules/masters/indicators/wma.src.js +1 -1
  72. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  73. package/es-modules/masters/modules/accessibility.src.js +1 -1
  74. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  75. package/es-modules/masters/modules/annotations.src.js +1 -1
  76. package/es-modules/masters/modules/arc-diagram.src.js +1 -1
  77. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  78. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  79. package/es-modules/masters/modules/boost.src.js +1 -1
  80. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  81. package/es-modules/masters/modules/bullet.src.js +1 -1
  82. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  83. package/es-modules/masters/modules/contour.src.js +1 -1
  84. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  85. package/es-modules/masters/modules/cylinder.src.js +1 -1
  86. package/es-modules/masters/modules/data-tools.src.js +1 -1
  87. package/es-modules/masters/modules/data.src.js +1 -1
  88. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  89. package/es-modules/masters/modules/debugger.src.js +1 -1
  90. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  91. package/es-modules/masters/modules/dotplot.src.js +1 -1
  92. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  93. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  94. package/es-modules/masters/modules/drilldown.src.js +1 -1
  95. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  96. package/es-modules/masters/modules/export-data.src.js +1 -1
  97. package/es-modules/masters/modules/exporting.src.js +1 -1
  98. package/es-modules/masters/modules/flowmap.src.js +1 -1
  99. package/es-modules/masters/modules/full-screen.src.js +1 -1
  100. package/es-modules/masters/modules/funnel.src.js +1 -1
  101. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  102. package/es-modules/masters/modules/gantt.src.js +1 -1
  103. package/es-modules/masters/modules/geoheatmap.src.js +1 -1
  104. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  105. package/es-modules/masters/modules/heatmap.src.js +1 -1
  106. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  107. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  108. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  109. package/es-modules/masters/modules/item-series.src.js +1 -1
  110. package/es-modules/masters/modules/lollipop.src.js +1 -1
  111. package/es-modules/masters/modules/map.src.js +1 -1
  112. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  113. package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
  114. package/es-modules/masters/modules/navigator.src.js +1 -1
  115. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  116. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  117. package/es-modules/masters/modules/non-cartesian-zoom.src.js +1 -1
  118. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  119. package/es-modules/masters/modules/organization.src.js +1 -1
  120. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  121. package/es-modules/masters/modules/pareto.src.js +1 -1
  122. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  123. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  124. package/es-modules/masters/modules/pictorial.src.js +1 -1
  125. package/es-modules/masters/modules/pointandfigure.src.js +1 -1
  126. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  127. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  128. package/es-modules/masters/modules/renko.src.js +1 -1
  129. package/es-modules/masters/modules/sankey.src.js +1 -1
  130. package/es-modules/masters/modules/series-label.src.js +1 -1
  131. package/es-modules/masters/modules/series-on-point.src.js +1 -1
  132. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  133. package/es-modules/masters/modules/sonification.src.js +1 -1
  134. package/es-modules/masters/modules/static-scale.src.js +1 -1
  135. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  136. package/es-modules/masters/modules/stock.src.js +1 -1
  137. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  138. package/es-modules/masters/modules/sunburst.src.js +1 -1
  139. package/es-modules/masters/modules/textpath.src.js +1 -1
  140. package/es-modules/masters/modules/tiledwebmap.src.js +1 -1
  141. package/es-modules/masters/modules/tilemap.src.js +1 -1
  142. package/es-modules/masters/modules/timeline.src.js +1 -1
  143. package/es-modules/masters/modules/treegraph.src.js +1 -1
  144. package/es-modules/masters/modules/treegrid.src.js +1 -1
  145. package/es-modules/masters/modules/treemap.src.js +1 -1
  146. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  147. package/es-modules/masters/modules/variwide.src.js +1 -1
  148. package/es-modules/masters/modules/vector.src.js +1 -1
  149. package/es-modules/masters/modules/venn.src.js +1 -1
  150. package/es-modules/masters/modules/windbarb.src.js +1 -1
  151. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  152. package/es-modules/masters/modules/xrange.src.js +1 -1
  153. package/es-modules/masters/standalone-navigator.src.js +1 -1
  154. package/es-modules/masters/themes/adaptive.src.js +1 -1
  155. package/es-modules/masters/themes/avocado.src.js +1 -1
  156. package/es-modules/masters/themes/brand-dark.src.js +1 -1
  157. package/es-modules/masters/themes/brand-light.src.js +1 -1
  158. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  159. package/es-modules/masters/themes/dark-green.src.js +1 -1
  160. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  161. package/es-modules/masters/themes/gray.src.js +1 -1
  162. package/es-modules/masters/themes/grid-light.src.js +1 -1
  163. package/es-modules/masters/themes/grid.src.js +1 -1
  164. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  165. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  166. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  167. package/es-modules/masters/themes/skies.src.js +1 -1
  168. package/es-modules/masters/themes/sunset.src.js +1 -1
  169. package/es-modules/tsconfig.tsbuildinfo +1 -1
  170. package/esm/highcharts-3d.js +1 -1
  171. package/esm/highcharts-3d.src.js +1 -1
  172. package/esm/highcharts-gantt.js +1 -1
  173. package/esm/highcharts-gantt.src.js +1 -1
  174. package/esm/highcharts-more.js +1 -1
  175. package/esm/highcharts-more.src.js +1 -1
  176. package/esm/highcharts.js +3 -3
  177. package/esm/highcharts.src.js +48 -16
  178. package/esm/highmaps.js +1 -1
  179. package/esm/highmaps.src.js +1 -1
  180. package/esm/highstock.js +1 -1
  181. package/esm/highstock.src.js +1 -1
  182. package/esm/i18n/fr-FR.js +1 -1
  183. package/esm/i18n/fr-FR.src.js +1 -1
  184. package/esm/i18n/nb-NO.js +1 -1
  185. package/esm/i18n/nb-NO.src.js +1 -1
  186. package/esm/i18n/zh-CN.js +1 -1
  187. package/esm/i18n/zh-CN.src.js +1 -1
  188. package/esm/indicators/acceleration-bands.js +1 -1
  189. package/esm/indicators/acceleration-bands.src.js +1 -1
  190. package/esm/indicators/accumulation-distribution.js +1 -1
  191. package/esm/indicators/accumulation-distribution.src.js +1 -1
  192. package/esm/indicators/ao.js +1 -1
  193. package/esm/indicators/ao.src.js +1 -1
  194. package/esm/indicators/apo.js +1 -1
  195. package/esm/indicators/apo.src.js +1 -1
  196. package/esm/indicators/aroon-oscillator.js +1 -1
  197. package/esm/indicators/aroon-oscillator.src.js +1 -1
  198. package/esm/indicators/aroon.js +1 -1
  199. package/esm/indicators/aroon.src.js +1 -1
  200. package/esm/indicators/atr.js +1 -1
  201. package/esm/indicators/atr.src.js +1 -1
  202. package/esm/indicators/bollinger-bands.js +1 -1
  203. package/esm/indicators/bollinger-bands.src.js +1 -1
  204. package/esm/indicators/cci.js +1 -1
  205. package/esm/indicators/cci.src.js +1 -1
  206. package/esm/indicators/chaikin.js +1 -1
  207. package/esm/indicators/chaikin.src.js +1 -1
  208. package/esm/indicators/cmf.js +1 -1
  209. package/esm/indicators/cmf.src.js +1 -1
  210. package/esm/indicators/cmo.js +1 -1
  211. package/esm/indicators/cmo.src.js +1 -1
  212. package/esm/indicators/dema.js +1 -1
  213. package/esm/indicators/dema.src.js +1 -1
  214. package/esm/indicators/disparity-index.js +1 -1
  215. package/esm/indicators/disparity-index.src.js +1 -1
  216. package/esm/indicators/dmi.js +1 -1
  217. package/esm/indicators/dmi.src.js +1 -1
  218. package/esm/indicators/dpo.js +1 -1
  219. package/esm/indicators/dpo.src.js +1 -1
  220. package/esm/indicators/ichimoku-kinko-hyo.js +1 -1
  221. package/esm/indicators/ichimoku-kinko-hyo.src.js +1 -1
  222. package/esm/indicators/indicators-all.js +1 -1
  223. package/esm/indicators/indicators-all.src.js +1 -1
  224. package/esm/indicators/indicators.js +1 -1
  225. package/esm/indicators/indicators.src.js +1 -1
  226. package/esm/indicators/keltner-channels.js +1 -1
  227. package/esm/indicators/keltner-channels.src.js +1 -1
  228. package/esm/indicators/klinger.js +1 -1
  229. package/esm/indicators/klinger.src.js +1 -1
  230. package/esm/indicators/macd.js +1 -1
  231. package/esm/indicators/macd.src.js +1 -1
  232. package/esm/indicators/mfi.js +1 -1
  233. package/esm/indicators/mfi.src.js +1 -1
  234. package/esm/indicators/momentum.js +1 -1
  235. package/esm/indicators/momentum.src.js +1 -1
  236. package/esm/indicators/natr.js +1 -1
  237. package/esm/indicators/natr.src.js +1 -1
  238. package/esm/indicators/obv.js +1 -1
  239. package/esm/indicators/obv.src.js +1 -1
  240. package/esm/indicators/pivot-points.js +1 -1
  241. package/esm/indicators/pivot-points.src.js +1 -1
  242. package/esm/indicators/ppo.js +1 -1
  243. package/esm/indicators/ppo.src.js +1 -1
  244. package/esm/indicators/price-channel.js +1 -1
  245. package/esm/indicators/price-channel.src.js +1 -1
  246. package/esm/indicators/price-envelopes.js +1 -1
  247. package/esm/indicators/price-envelopes.src.js +1 -1
  248. package/esm/indicators/psar.js +1 -1
  249. package/esm/indicators/psar.src.js +1 -1
  250. package/esm/indicators/regressions.js +1 -1
  251. package/esm/indicators/regressions.src.js +1 -1
  252. package/esm/indicators/roc.js +1 -1
  253. package/esm/indicators/roc.src.js +1 -1
  254. package/esm/indicators/rsi.js +1 -1
  255. package/esm/indicators/rsi.src.js +1 -1
  256. package/esm/indicators/slow-stochastic.js +1 -1
  257. package/esm/indicators/slow-stochastic.src.js +1 -1
  258. package/esm/indicators/stochastic.js +1 -1
  259. package/esm/indicators/stochastic.src.js +1 -1
  260. package/esm/indicators/supertrend.js +1 -1
  261. package/esm/indicators/supertrend.src.js +1 -1
  262. package/esm/indicators/tema.js +1 -1
  263. package/esm/indicators/tema.src.js +1 -1
  264. package/esm/indicators/trendline.js +1 -1
  265. package/esm/indicators/trendline.src.js +1 -1
  266. package/esm/indicators/trix.js +1 -1
  267. package/esm/indicators/trix.src.js +1 -1
  268. package/esm/indicators/volume-by-price.js +1 -1
  269. package/esm/indicators/volume-by-price.src.js +1 -1
  270. package/esm/indicators/vwap.js +1 -1
  271. package/esm/indicators/vwap.src.js +1 -1
  272. package/esm/indicators/williams-r.js +1 -1
  273. package/esm/indicators/williams-r.src.js +1 -1
  274. package/esm/indicators/wma.js +1 -1
  275. package/esm/indicators/wma.src.js +1 -1
  276. package/esm/indicators/zigzag.js +1 -1
  277. package/esm/indicators/zigzag.src.js +1 -1
  278. package/esm/modules/accessibility.js +1 -1
  279. package/esm/modules/accessibility.src.js +1 -1
  280. package/esm/modules/annotations-advanced.js +2 -2
  281. package/esm/modules/annotations-advanced.src.js +3 -3
  282. package/esm/modules/annotations.js +2 -2
  283. package/esm/modules/annotations.src.js +3 -3
  284. package/esm/modules/arc-diagram.js +1 -1
  285. package/esm/modules/arc-diagram.src.js +1 -1
  286. package/esm/modules/arrow-symbols.js +1 -1
  287. package/esm/modules/arrow-symbols.src.js +1 -1
  288. package/esm/modules/boost-canvas.js +1 -1
  289. package/esm/modules/boost-canvas.src.js +1 -1
  290. package/esm/modules/boost.js +1 -1
  291. package/esm/modules/boost.src.js +1 -1
  292. package/esm/modules/broken-axis.js +1 -1
  293. package/esm/modules/broken-axis.src.js +1 -1
  294. package/esm/modules/bullet.js +1 -1
  295. package/esm/modules/bullet.src.js +1 -1
  296. package/esm/modules/coloraxis.js +1 -1
  297. package/esm/modules/coloraxis.src.js +1 -1
  298. package/esm/modules/contour.js +1 -1
  299. package/esm/modules/contour.src.js +1 -1
  300. package/esm/modules/current-date-indicator.js +1 -1
  301. package/esm/modules/current-date-indicator.src.js +1 -1
  302. package/esm/modules/cylinder.js +1 -1
  303. package/esm/modules/cylinder.src.js +1 -1
  304. package/esm/modules/data-tools.js +1 -1
  305. package/esm/modules/data-tools.src.js +1 -1
  306. package/esm/modules/data.js +1 -1
  307. package/esm/modules/data.src.js +1 -1
  308. package/esm/modules/datagrouping.js +1 -1
  309. package/esm/modules/datagrouping.src.js +1 -1
  310. package/esm/modules/debugger.js +1 -1
  311. package/esm/modules/debugger.src.js +1 -1
  312. package/esm/modules/dependency-wheel.js +1 -1
  313. package/esm/modules/dependency-wheel.src.js +1 -1
  314. package/esm/modules/dotplot.js +1 -1
  315. package/esm/modules/dotplot.src.js +1 -1
  316. package/esm/modules/drag-panes.js +1 -1
  317. package/esm/modules/drag-panes.src.js +1 -1
  318. package/esm/modules/draggable-points.js +1 -1
  319. package/esm/modules/draggable-points.src.js +1 -1
  320. package/esm/modules/drilldown.js +2 -2
  321. package/esm/modules/drilldown.src.js +8 -6
  322. package/esm/modules/dumbbell.js +1 -1
  323. package/esm/modules/dumbbell.src.js +1 -1
  324. package/esm/modules/export-data.js +1 -1
  325. package/esm/modules/export-data.src.js +1 -1
  326. package/esm/modules/exporting.js +2 -2
  327. package/esm/modules/exporting.src.js +2 -2
  328. package/esm/modules/flowmap.js +1 -1
  329. package/esm/modules/flowmap.src.js +1 -1
  330. package/esm/modules/full-screen.js +1 -1
  331. package/esm/modules/full-screen.src.js +1 -1
  332. package/esm/modules/funnel.js +1 -1
  333. package/esm/modules/funnel.src.js +1 -1
  334. package/esm/modules/funnel3d.js +1 -1
  335. package/esm/modules/funnel3d.src.js +1 -1
  336. package/esm/modules/gantt.js +1 -1
  337. package/esm/modules/gantt.src.js +1 -1
  338. package/esm/modules/geoheatmap.js +1 -1
  339. package/esm/modules/geoheatmap.src.js +1 -1
  340. package/esm/modules/grid-axis.js +1 -1
  341. package/esm/modules/grid-axis.src.js +1 -1
  342. package/esm/modules/heatmap.js +1 -1
  343. package/esm/modules/heatmap.src.js +1 -1
  344. package/esm/modules/heikinashi.js +1 -1
  345. package/esm/modules/heikinashi.src.js +1 -1
  346. package/esm/modules/histogram-bellcurve.js +1 -1
  347. package/esm/modules/histogram-bellcurve.src.js +1 -1
  348. package/esm/modules/hollowcandlestick.js +1 -1
  349. package/esm/modules/hollowcandlestick.src.js +1 -1
  350. package/esm/modules/item-series.js +1 -1
  351. package/esm/modules/item-series.src.js +1 -1
  352. package/esm/modules/lollipop.js +1 -1
  353. package/esm/modules/lollipop.src.js +1 -1
  354. package/esm/modules/map.js +1 -1
  355. package/esm/modules/map.src.js +1 -1
  356. package/esm/modules/marker-clusters.js +1 -1
  357. package/esm/modules/marker-clusters.src.js +1 -1
  358. package/esm/modules/mouse-wheel-zoom.js +1 -1
  359. package/esm/modules/mouse-wheel-zoom.src.js +1 -1
  360. package/esm/modules/navigator.js +1 -1
  361. package/esm/modules/navigator.src.js +1 -1
  362. package/esm/modules/networkgraph.js +1 -1
  363. package/esm/modules/networkgraph.src.js +1 -1
  364. package/esm/modules/no-data-to-display.js +1 -1
  365. package/esm/modules/no-data-to-display.src.js +1 -1
  366. package/esm/modules/non-cartesian-zoom.js +1 -1
  367. package/esm/modules/non-cartesian-zoom.src.js +1 -1
  368. package/esm/modules/offline-exporting.js +1 -1
  369. package/esm/modules/offline-exporting.src.js +1 -1
  370. package/esm/modules/organization.js +1 -1
  371. package/esm/modules/organization.src.js +1 -1
  372. package/esm/modules/parallel-coordinates.js +1 -1
  373. package/esm/modules/parallel-coordinates.src.js +1 -1
  374. package/esm/modules/pareto.js +1 -1
  375. package/esm/modules/pareto.src.js +1 -1
  376. package/esm/modules/pathfinder.js +1 -1
  377. package/esm/modules/pathfinder.src.js +1 -1
  378. package/esm/modules/pattern-fill.js +1 -1
  379. package/esm/modules/pattern-fill.src.js +1 -1
  380. package/esm/modules/pictorial.js +1 -1
  381. package/esm/modules/pictorial.src.js +1 -1
  382. package/esm/modules/pointandfigure.js +1 -1
  383. package/esm/modules/pointandfigure.src.js +1 -1
  384. package/esm/modules/price-indicator.js +1 -1
  385. package/esm/modules/price-indicator.src.js +1 -1
  386. package/esm/modules/pyramid3d.js +1 -1
  387. package/esm/modules/pyramid3d.src.js +1 -1
  388. package/esm/modules/renko.js +1 -1
  389. package/esm/modules/renko.src.js +1 -1
  390. package/esm/modules/sankey.js +1 -1
  391. package/esm/modules/sankey.src.js +1 -1
  392. package/esm/modules/series-label.js +1 -1
  393. package/esm/modules/series-label.src.js +1 -1
  394. package/esm/modules/series-on-point.js +1 -1
  395. package/esm/modules/series-on-point.src.js +1 -1
  396. package/esm/modules/solid-gauge.js +1 -1
  397. package/esm/modules/solid-gauge.src.js +1 -1
  398. package/esm/modules/sonification.js +1 -1
  399. package/esm/modules/sonification.src.js +1 -1
  400. package/esm/modules/static-scale.js +1 -1
  401. package/esm/modules/static-scale.src.js +1 -1
  402. package/esm/modules/stock-tools.js +2 -2
  403. package/esm/modules/stock-tools.src.js +3 -3
  404. package/esm/modules/stock.js +1 -1
  405. package/esm/modules/stock.src.js +1 -1
  406. package/esm/modules/streamgraph.js +1 -1
  407. package/esm/modules/streamgraph.src.js +1 -1
  408. package/esm/modules/sunburst.js +2 -2
  409. package/esm/modules/sunburst.src.js +8 -6
  410. package/esm/modules/textpath.js +1 -1
  411. package/esm/modules/textpath.src.js +1 -1
  412. package/esm/modules/tiledwebmap.js +1 -1
  413. package/esm/modules/tiledwebmap.src.js +1 -1
  414. package/esm/modules/tilemap.js +1 -1
  415. package/esm/modules/tilemap.src.js +1 -1
  416. package/esm/modules/timeline.js +1 -1
  417. package/esm/modules/timeline.src.js +1 -1
  418. package/esm/modules/treegraph.js +1 -1
  419. package/esm/modules/treegraph.src.js +1 -1
  420. package/esm/modules/treegrid.js +1 -1
  421. package/esm/modules/treegrid.src.js +1 -1
  422. package/esm/modules/treemap.js +2 -2
  423. package/esm/modules/treemap.src.js +8 -6
  424. package/esm/modules/variable-pie.js +1 -1
  425. package/esm/modules/variable-pie.src.js +1 -1
  426. package/esm/modules/variwide.js +1 -1
  427. package/esm/modules/variwide.src.js +1 -1
  428. package/esm/modules/vector.js +1 -1
  429. package/esm/modules/vector.src.js +1 -1
  430. package/esm/modules/venn.js +1 -1
  431. package/esm/modules/venn.src.js +1 -1
  432. package/esm/modules/windbarb.js +1 -1
  433. package/esm/modules/windbarb.src.js +1 -1
  434. package/esm/modules/wordcloud.js +1 -1
  435. package/esm/modules/wordcloud.src.js +1 -1
  436. package/esm/modules/xrange.js +1 -1
  437. package/esm/modules/xrange.src.js +1 -1
  438. package/esm/standalone-navigator.js +3 -3
  439. package/esm/standalone-navigator.src.js +50 -18
  440. package/esm/themes/adaptive.js +1 -1
  441. package/esm/themes/adaptive.src.js +1 -1
  442. package/esm/themes/avocado.js +1 -1
  443. package/esm/themes/avocado.src.js +1 -1
  444. package/esm/themes/brand-dark.js +1 -1
  445. package/esm/themes/brand-dark.src.js +1 -1
  446. package/esm/themes/brand-light.js +1 -1
  447. package/esm/themes/brand-light.src.js +1 -1
  448. package/esm/themes/dark-blue.js +1 -1
  449. package/esm/themes/dark-blue.src.js +1 -1
  450. package/esm/themes/dark-green.js +1 -1
  451. package/esm/themes/dark-green.src.js +1 -1
  452. package/esm/themes/dark-unica.js +1 -1
  453. package/esm/themes/dark-unica.src.js +1 -1
  454. package/esm/themes/gray.js +1 -1
  455. package/esm/themes/gray.src.js +1 -1
  456. package/esm/themes/grid-light.js +1 -1
  457. package/esm/themes/grid-light.src.js +1 -1
  458. package/esm/themes/grid.js +1 -1
  459. package/esm/themes/grid.src.js +1 -1
  460. package/esm/themes/high-contrast-dark.js +1 -1
  461. package/esm/themes/high-contrast-dark.src.js +1 -1
  462. package/esm/themes/high-contrast-light.js +1 -1
  463. package/esm/themes/high-contrast-light.src.js +1 -1
  464. package/esm/themes/sand-signika.js +1 -1
  465. package/esm/themes/sand-signika.src.js +1 -1
  466. package/esm/themes/skies.js +1 -1
  467. package/esm/themes/skies.src.js +1 -1
  468. package/esm/themes/sunset.js +1 -1
  469. package/esm/themes/sunset.src.js +1 -1
  470. package/highcharts-3d.js +1 -1
  471. package/highcharts-3d.src.js +1 -1
  472. package/highcharts-gantt.js +3 -3
  473. package/highcharts-gantt.src.js +53 -21
  474. package/highcharts-more.js +1 -1
  475. package/highcharts-more.src.js +1 -1
  476. package/highcharts.d.ts +5 -2
  477. package/highcharts.js +3 -3
  478. package/highcharts.src.d.ts +5 -2
  479. package/highcharts.src.js +48 -16
  480. package/highmaps.js +3 -3
  481. package/highmaps.src.js +51 -19
  482. package/highstock.js +3 -3
  483. package/highstock.src.js +53 -21
  484. package/i18n/fr-FR.js +1 -1
  485. package/i18n/fr-FR.src.js +1 -1
  486. package/i18n/nb-NO.js +1 -1
  487. package/i18n/nb-NO.src.js +1 -1
  488. package/i18n/zh-CN.js +1 -1
  489. package/i18n/zh-CN.src.js +1 -1
  490. package/indicators/acceleration-bands.js +1 -1
  491. package/indicators/acceleration-bands.src.js +1 -1
  492. package/indicators/accumulation-distribution.js +1 -1
  493. package/indicators/accumulation-distribution.src.js +1 -1
  494. package/indicators/ao.js +1 -1
  495. package/indicators/ao.src.js +1 -1
  496. package/indicators/apo.js +1 -1
  497. package/indicators/apo.src.js +1 -1
  498. package/indicators/aroon-oscillator.js +1 -1
  499. package/indicators/aroon-oscillator.src.js +1 -1
  500. package/indicators/aroon.js +1 -1
  501. package/indicators/aroon.src.js +1 -1
  502. package/indicators/atr.js +1 -1
  503. package/indicators/atr.src.js +1 -1
  504. package/indicators/bollinger-bands.js +1 -1
  505. package/indicators/bollinger-bands.src.js +1 -1
  506. package/indicators/cci.js +1 -1
  507. package/indicators/cci.src.js +1 -1
  508. package/indicators/chaikin.js +1 -1
  509. package/indicators/chaikin.src.js +1 -1
  510. package/indicators/cmf.js +1 -1
  511. package/indicators/cmf.src.js +1 -1
  512. package/indicators/cmo.js +1 -1
  513. package/indicators/cmo.src.js +1 -1
  514. package/indicators/dema.js +1 -1
  515. package/indicators/dema.src.js +1 -1
  516. package/indicators/disparity-index.js +1 -1
  517. package/indicators/disparity-index.src.js +1 -1
  518. package/indicators/dmi.js +1 -1
  519. package/indicators/dmi.src.js +1 -1
  520. package/indicators/dpo.js +1 -1
  521. package/indicators/dpo.src.js +1 -1
  522. package/indicators/ichimoku-kinko-hyo.js +1 -1
  523. package/indicators/ichimoku-kinko-hyo.src.js +1 -1
  524. package/indicators/indicators-all.js +1 -1
  525. package/indicators/indicators-all.src.js +1 -1
  526. package/indicators/indicators.js +1 -1
  527. package/indicators/indicators.src.js +1 -1
  528. package/indicators/keltner-channels.js +1 -1
  529. package/indicators/keltner-channels.src.js +1 -1
  530. package/indicators/klinger.js +1 -1
  531. package/indicators/klinger.src.js +1 -1
  532. package/indicators/macd.js +1 -1
  533. package/indicators/macd.src.js +1 -1
  534. package/indicators/mfi.js +1 -1
  535. package/indicators/mfi.src.js +1 -1
  536. package/indicators/momentum.js +1 -1
  537. package/indicators/momentum.src.js +1 -1
  538. package/indicators/natr.js +1 -1
  539. package/indicators/natr.src.js +1 -1
  540. package/indicators/obv.js +1 -1
  541. package/indicators/obv.src.js +1 -1
  542. package/indicators/pivot-points.js +1 -1
  543. package/indicators/pivot-points.src.js +1 -1
  544. package/indicators/ppo.js +1 -1
  545. package/indicators/ppo.src.js +1 -1
  546. package/indicators/price-channel.js +1 -1
  547. package/indicators/price-channel.src.js +1 -1
  548. package/indicators/price-envelopes.js +1 -1
  549. package/indicators/price-envelopes.src.js +1 -1
  550. package/indicators/psar.js +1 -1
  551. package/indicators/psar.src.js +1 -1
  552. package/indicators/regressions.js +1 -1
  553. package/indicators/regressions.src.js +1 -1
  554. package/indicators/roc.js +1 -1
  555. package/indicators/roc.src.js +1 -1
  556. package/indicators/rsi.js +1 -1
  557. package/indicators/rsi.src.js +1 -1
  558. package/indicators/slow-stochastic.js +1 -1
  559. package/indicators/slow-stochastic.src.js +1 -1
  560. package/indicators/stochastic.js +1 -1
  561. package/indicators/stochastic.src.js +1 -1
  562. package/indicators/supertrend.js +1 -1
  563. package/indicators/supertrend.src.js +1 -1
  564. package/indicators/tema.js +1 -1
  565. package/indicators/tema.src.js +1 -1
  566. package/indicators/trendline.js +1 -1
  567. package/indicators/trendline.src.js +1 -1
  568. package/indicators/trix.js +1 -1
  569. package/indicators/trix.src.js +1 -1
  570. package/indicators/volume-by-price.js +1 -1
  571. package/indicators/volume-by-price.src.js +1 -1
  572. package/indicators/vwap.js +1 -1
  573. package/indicators/vwap.src.js +1 -1
  574. package/indicators/williams-r.js +1 -1
  575. package/indicators/williams-r.src.js +1 -1
  576. package/indicators/wma.js +1 -1
  577. package/indicators/wma.src.js +1 -1
  578. package/indicators/zigzag.js +1 -1
  579. package/indicators/zigzag.src.js +1 -1
  580. package/modules/accessibility.js +1 -1
  581. package/modules/accessibility.src.js +1 -1
  582. package/modules/annotations-advanced.js +2 -2
  583. package/modules/annotations-advanced.src.js +3 -3
  584. package/modules/annotations.js +2 -2
  585. package/modules/annotations.src.js +3 -3
  586. package/modules/arc-diagram.js +1 -1
  587. package/modules/arc-diagram.src.js +1 -1
  588. package/modules/arrow-symbols.js +1 -1
  589. package/modules/arrow-symbols.src.js +1 -1
  590. package/modules/boost-canvas.js +1 -1
  591. package/modules/boost-canvas.src.js +1 -1
  592. package/modules/boost.js +1 -1
  593. package/modules/boost.src.js +1 -1
  594. package/modules/broken-axis.js +1 -1
  595. package/modules/broken-axis.src.js +1 -1
  596. package/modules/bullet.js +1 -1
  597. package/modules/bullet.src.js +1 -1
  598. package/modules/coloraxis.js +1 -1
  599. package/modules/coloraxis.src.js +1 -1
  600. package/modules/contour.js +2 -2
  601. package/modules/contour.src.js +2 -2
  602. package/modules/current-date-indicator.js +1 -1
  603. package/modules/current-date-indicator.src.js +1 -1
  604. package/modules/cylinder.js +1 -1
  605. package/modules/cylinder.src.js +1 -1
  606. package/modules/data-tools.js +1 -1
  607. package/modules/data-tools.src.js +1 -1
  608. package/modules/data.js +1 -1
  609. package/modules/data.src.js +1 -1
  610. package/modules/datagrouping.js +1 -1
  611. package/modules/datagrouping.src.js +1 -1
  612. package/modules/debugger.js +1 -1
  613. package/modules/debugger.src.js +1 -1
  614. package/modules/dependency-wheel.js +1 -1
  615. package/modules/dependency-wheel.src.js +1 -1
  616. package/modules/dotplot.js +1 -1
  617. package/modules/dotplot.src.js +1 -1
  618. package/modules/drag-panes.js +1 -1
  619. package/modules/drag-panes.src.js +1 -1
  620. package/modules/draggable-points.js +1 -1
  621. package/modules/draggable-points.src.js +1 -1
  622. package/modules/drilldown.js +2 -2
  623. package/modules/drilldown.src.js +8 -6
  624. package/modules/dumbbell.js +1 -1
  625. package/modules/dumbbell.src.js +1 -1
  626. package/modules/export-data.js +1 -1
  627. package/modules/export-data.src.js +1 -1
  628. package/modules/exporting.js +2 -2
  629. package/modules/exporting.src.js +2 -2
  630. package/modules/flowmap.js +1 -1
  631. package/modules/flowmap.src.js +1 -1
  632. package/modules/full-screen.js +1 -1
  633. package/modules/full-screen.src.js +1 -1
  634. package/modules/funnel.js +1 -1
  635. package/modules/funnel.src.js +1 -1
  636. package/modules/funnel3d.js +1 -1
  637. package/modules/funnel3d.src.js +1 -1
  638. package/modules/gantt.js +3 -3
  639. package/modules/gantt.src.js +4 -4
  640. package/modules/geoheatmap.js +1 -1
  641. package/modules/geoheatmap.src.js +1 -1
  642. package/modules/grid-axis.js +1 -1
  643. package/modules/grid-axis.src.js +1 -1
  644. package/modules/heatmap.js +2 -2
  645. package/modules/heatmap.src.js +2 -2
  646. package/modules/heikinashi.js +1 -1
  647. package/modules/heikinashi.src.js +1 -1
  648. package/modules/histogram-bellcurve.js +1 -1
  649. package/modules/histogram-bellcurve.src.js +1 -1
  650. package/modules/hollowcandlestick.js +1 -1
  651. package/modules/hollowcandlestick.src.js +1 -1
  652. package/modules/item-series.js +1 -1
  653. package/modules/item-series.src.js +1 -1
  654. package/modules/lollipop.js +1 -1
  655. package/modules/lollipop.src.js +1 -1
  656. package/modules/map.js +2 -2
  657. package/modules/map.src.js +2 -2
  658. package/modules/marker-clusters.js +1 -1
  659. package/modules/marker-clusters.src.js +1 -1
  660. package/modules/mouse-wheel-zoom.js +1 -1
  661. package/modules/mouse-wheel-zoom.src.js +1 -1
  662. package/modules/navigator.js +1 -1
  663. package/modules/navigator.src.js +1 -1
  664. package/modules/networkgraph.js +1 -1
  665. package/modules/networkgraph.src.js +1 -1
  666. package/modules/no-data-to-display.js +1 -1
  667. package/modules/no-data-to-display.src.js +1 -1
  668. package/modules/non-cartesian-zoom.js +1 -1
  669. package/modules/non-cartesian-zoom.src.js +1 -1
  670. package/modules/offline-exporting.js +1 -1
  671. package/modules/offline-exporting.src.js +1 -1
  672. package/modules/organization.js +1 -1
  673. package/modules/organization.src.js +1 -1
  674. package/modules/parallel-coordinates.js +1 -1
  675. package/modules/parallel-coordinates.src.js +1 -1
  676. package/modules/pareto.js +1 -1
  677. package/modules/pareto.src.js +1 -1
  678. package/modules/pathfinder.js +1 -1
  679. package/modules/pathfinder.src.js +1 -1
  680. package/modules/pattern-fill.js +1 -1
  681. package/modules/pattern-fill.src.js +1 -1
  682. package/modules/pictorial.js +1 -1
  683. package/modules/pictorial.src.js +1 -1
  684. package/modules/pointandfigure.js +1 -1
  685. package/modules/pointandfigure.src.js +1 -1
  686. package/modules/price-indicator.js +1 -1
  687. package/modules/price-indicator.src.js +1 -1
  688. package/modules/pyramid3d.js +1 -1
  689. package/modules/pyramid3d.src.js +1 -1
  690. package/modules/renko.js +1 -1
  691. package/modules/renko.src.js +1 -1
  692. package/modules/sankey.js +1 -1
  693. package/modules/sankey.src.js +1 -1
  694. package/modules/series-label.js +1 -1
  695. package/modules/series-label.src.js +1 -1
  696. package/modules/series-on-point.js +1 -1
  697. package/modules/series-on-point.src.js +1 -1
  698. package/modules/solid-gauge.js +1 -1
  699. package/modules/solid-gauge.src.js +1 -1
  700. package/modules/sonification.js +1 -1
  701. package/modules/sonification.src.js +1 -1
  702. package/modules/static-scale.js +1 -1
  703. package/modules/static-scale.src.js +1 -1
  704. package/modules/stock-tools.js +2 -2
  705. package/modules/stock-tools.src.js +3 -3
  706. package/modules/stock.js +3 -3
  707. package/modules/stock.src.js +4 -4
  708. package/modules/streamgraph.js +1 -1
  709. package/modules/streamgraph.src.js +1 -1
  710. package/modules/sunburst.js +2 -2
  711. package/modules/sunburst.src.js +8 -6
  712. package/modules/textpath.js +1 -1
  713. package/modules/textpath.src.js +1 -1
  714. package/modules/tiledwebmap.js +1 -1
  715. package/modules/tiledwebmap.src.js +1 -1
  716. package/modules/tilemap.js +1 -1
  717. package/modules/tilemap.src.js +1 -1
  718. package/modules/timeline.js +1 -1
  719. package/modules/timeline.src.js +1 -1
  720. package/modules/treegraph.js +1 -1
  721. package/modules/treegraph.src.js +1 -1
  722. package/modules/treegrid.js +1 -1
  723. package/modules/treegrid.src.js +1 -1
  724. package/modules/treemap.js +2 -2
  725. package/modules/treemap.src.js +8 -6
  726. package/modules/variable-pie.js +1 -1
  727. package/modules/variable-pie.src.js +1 -1
  728. package/modules/variwide.js +1 -1
  729. package/modules/variwide.src.js +1 -1
  730. package/modules/vector.js +1 -1
  731. package/modules/vector.src.js +1 -1
  732. package/modules/venn.js +1 -1
  733. package/modules/venn.src.js +1 -1
  734. package/modules/windbarb.js +1 -1
  735. package/modules/windbarb.src.js +1 -1
  736. package/modules/wordcloud.js +1 -1
  737. package/modules/wordcloud.src.js +1 -1
  738. package/modules/xrange.js +1 -1
  739. package/modules/xrange.src.js +1 -1
  740. package/options/sunburst.d.ts +1 -1
  741. package/options/sunburst.src.d.ts +1 -1
  742. package/options/treemap.d.ts +1 -1
  743. package/options/treemap.src.d.ts +1 -1
  744. package/package.json +1 -1
  745. package/standalone-navigator.js +3 -3
  746. package/standalone-navigator.src.js +50 -18
  747. package/themes/adaptive.js +1 -1
  748. package/themes/adaptive.src.js +1 -1
  749. package/themes/avocado.js +1 -1
  750. package/themes/avocado.src.js +1 -1
  751. package/themes/brand-dark.js +1 -1
  752. package/themes/brand-dark.src.js +1 -1
  753. package/themes/brand-light.js +1 -1
  754. package/themes/brand-light.src.js +1 -1
  755. package/themes/dark-blue.js +1 -1
  756. package/themes/dark-blue.src.js +1 -1
  757. package/themes/dark-green.js +1 -1
  758. package/themes/dark-green.src.js +1 -1
  759. package/themes/dark-unica.js +1 -1
  760. package/themes/dark-unica.src.js +1 -1
  761. package/themes/gray.js +1 -1
  762. package/themes/gray.src.js +1 -1
  763. package/themes/grid-light.js +1 -1
  764. package/themes/grid-light.src.js +1 -1
  765. package/themes/grid.js +1 -1
  766. package/themes/grid.src.js +1 -1
  767. package/themes/high-contrast-dark.js +1 -1
  768. package/themes/high-contrast-dark.src.js +1 -1
  769. package/themes/high-contrast-light.js +1 -1
  770. package/themes/high-contrast-light.src.js +1 -1
  771. package/themes/sand-signika.js +1 -1
  772. package/themes/sand-signika.src.js +1 -1
  773. package/themes/skies.js +1 -1
  774. package/themes/skies.src.js +1 -1
  775. package/themes/sunset.js +1 -1
  776. package/themes/sunset.src.js +1 -1
  777. package/.github/workflows/codeql.yml +0 -99
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v12.6.0 (2026-04-13)
2
+ * Highcharts JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/sunburst
4
4
  * @requires highcharts
5
5
  *
@@ -8,4 +8,4 @@
8
8
  *
9
9
  * A commercial license may be required depending on use.
10
10
  * See www.highcharts.com/license
11
- */import*as t from"../highcharts.js";var e,i,s,o,r={};r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let l=t.default;var a=r.n(l);let n={mainBreadcrumb:"Main"},h=t.default.Templating;var d=r.n(h);let{doc:p,win:u}=a();function c(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;a().Point&&t instanceof a().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let l=t.addEventListener;l&&l.call(t,e,i,!!a().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let n={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(n),r[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,A(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}(t,e,i)}}function f(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function v(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function g(t){return null!=t}function b(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function m(t,e,i,s){if(i=i||{},p?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==a())){let s=p.createEvent("Events");s.initEvent(e,!0,!0),i=b(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||b(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}function y(t){return T(t)&&"number"==typeof t.nodeType}function x(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function P(t){return"string"==typeof t}function L(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function T(t,e){return!!t&&"object"==typeof t&&(!e||!L(t))}function w(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),A(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!T(i,!0)||(o=i?.constructor,T(i,!0)&&!y(i)&&o?.name&&"Object"!==o.name)||y(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let l=s.length;for(i=0;i<l;i++)o=r(o,s[i]);return o}function A(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function O(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function R(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function I(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function M(t){return L(t)?t:[t]}Array.prototype.find;let{format:S}=d(),{composed:C}=a();function B(){if(this.breadcrumbs){let t=this.resetZoomButton&&this.resetZoomButton.getBBox(),e=this.breadcrumbs.options;t&&"right"===e.position.align&&"plotBox"===e.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-t.width-e.buttonSpacing)}}function E(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function N(){let t=this.breadcrumbs;if(t&&!t.options.floating&&t.level){let e=t.options,i=e.buttonTheme,s=(i.height||0)+2*(i.padding||0)+e.buttonSpacing,o=e.position.verticalAlign;"bottom"===o?(this.marginBottom=(this.marginBottom||0)+s,t.yOffset=s):"middle"!==o?(this.plotTop+=s,t.yOffset=-s):t.yOffset=void 0}}function D(){this.breadcrumbs&&this.breadcrumbs.redraw()}function G(t){!0===t.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class k{static compose(t,e){R(C,"Breadcrumbs")&&(c(t,"destroy",E),c(t,"afterShowResetZoom",B),c(t,"getMargins",N),c(t,"redraw",D),c(t,"selection",G),b(e.lang,n))}constructor(t,e){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let i=w(t.options.drilldown&&t.options.drilldown.drillUpButton,k.defaultOptions,t.options.navigation&&t.options.navigation.breadcrumbs,e);this.chart=t,this.options=i||{}}updateProperties(t){this.setList(t),this.setLevel(),this.isDirty=!0}setList(t){this.list=t}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(t){let e=this.chart,i=this.options,s=e.options.lang,o=O(i.format,i.showFullPath?"{level.name}":"← {level.name}"),r=s&&O(s.drillUpText,s.mainBreadcrumb),l=i.formatter&&i.formatter(t)||S(o,{level:t.levelOptions},e)||"";return(P(l)&&!l.length||"← "===l)&&g(r)&&(l=i.showFullPath?r:"← "+r),l}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let t=this.chart,e=this.options;!this.group&&e&&(this.group=t.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:e.zIndex}).add()),e.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let t=this.chart,e=this.list,i=this.options.buttonSpacing;this.destroyListElements();let s=this.group?this.group.getBBox().width:i,o=e[e.length-2];!t.drillUpButton&&this.level>0?t.drillUpButton=this.renderButton(o,s,i):t.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(t){if(this.group){let e=this.options,i=e.buttonTheme,s=e.position,o="chart"===e.relativeTo||"spacingBox"===e.relativeTo?void 0:"plotBox",r=this.group.getBBox(),l=2*(i.padding||0)+e.buttonSpacing;s.width=r.width+l,s.height=r.height+l;let a=w(s);t&&(a.x+=t),this.options.rtl&&(a.x+=s.width),a.y=O(a.y,this.yOffset,0),this.group.align(a,!0,o)}}renderButton(t,e,i){let s=this,o=this.chart,r=s.options,l=w(r.buttonTheme),a=o.renderer.button(s.getButtonText(t),e,i,function(e){let i,o=r.events&&r.events.click;o&&(i=o.call(s,e,t,s)),!1!==i&&(r.showFullPath?e.newLevel=t.level:e.newLevel=s.level-1,m(s,"up",e))},l).addClass("highcharts-breadcrumbs-button").add(s.group);return o.styledMode||a.attr(r.style),a}renderSeparator(t,e){let i=this.chart,s=this.options.separator,o=i.renderer.label(s.text,t,e,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return i.styledMode||o.css(s.style),o}update(t){w(!0,this.options,t),this.destroy(),this.isDirty=!0}updateSingleButton(){let t=this.chart,e=this.list[this.level-1];t.drillUpButton&&t.drillUpButton.attr({text:this.getButtonText(e)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(t){let e=this.elementList;A(e,(i,s)=>{(t||!e[s].updated)&&((i=e[s]).button&&i.button.destroy(),i.separator&&i.separator.destroy(),delete i.button,delete i.separator,delete e[s])}),t&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){A(this.elementList,t=>{t.updated=!1})}updateListElements(){let t=this.elementList,e=this.options.buttonSpacing,i=this.list,s=this.options.rtl,o=s?-1:1,r=function(t,e){return o*t.getBBox().width+o*e},l=function(t,e,i){t.translate(e-t.getBBox().width,i)},a=this.group?r(this.group,e):e,n,h;for(let d=0,p=i.length;d<p;++d){let u,c,f=d===p-1;t[(h=i[d]).level]?(u=(n=t[h.level]).button,n.separator||f?n.separator&&f&&(n.separator.destroy(),delete n.separator):(a+=o*e,n.separator=this.renderSeparator(a,e),s&&l(n.separator,a,e),a+=r(n.separator,e)),t[h.level].updated=!0):(u=this.renderButton(h,a,e),s&&l(u,a,e),a+=r(u,e),f||(c=this.renderSeparator(a,e),s&&l(c,a,e),a+=r(c,e)),t[h.level]={button:u,separator:c,updated:!0}),u&&u.setState(2*!!f)}}}k.defaultOptions={buttonSpacing:5,buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7};let z=t.default.Color;var V=r.n(z);let U=t.default.SeriesRegistry;var W=r.n(U);let H=t.default.SVGElement;var F=r.n(H);let{column:{prototype:j}}=W().seriesTypes;var Y=i||(i={});function $(t){let e=this.series,i=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(F())(i,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),t?.state==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:`${i.url}#${this.id}`,visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}Y.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},Y.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){let e={};return g(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:j.pointAttribs},Y.compose=function(t){return c(t.prototype.pointClass,"afterSetState",$),t};let X=i,_=t.default.Series;var K=r.n(_);let q=class{constructor(t,e,i,s){this.height=t,this.width=e,this.plot=s,this.direction=i,this.startDirection=i,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(t,e){return Math.max(t/e,e/t)}}}addElement(t){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+t,0===this.direction?(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(t)}reset(){this.nW=0,this.lW=0,this.elArr=[],this.total=0}},Z=class{constructor(){this.childrenTotal=0,this.visible=!1}init(t,e,i,s,o,r,l){return this.id=t,this.i=e,this.children=i,this.height=s,this.level=o,this.series=r,this.parent=l,this}},J=function(t,e){let{animatableAttribs:i,onComplete:s,css:o,renderer:r}=e,l=t.series&&t.series.chart.hasRendered?void 0:t.series&&t.series.options.animation,a=t.graphic;if(e.attribs={...e.attribs,class:t.getClassName()},t.shouldDraw())a||(t.graphic=a="text"===e.shapeType?r.text():"image"===e.shapeType?r.image(e.imageUrl||"").attr(e.shapeArgs||{}):r[e.shapeType](e.shapeArgs||{}),a.add(e.group)),o&&a.css(o),a.attr(e.attribs).animate(i,!e.isNew&&l,s);else if(a){let e=()=>{t.graphic=a=a&&a.destroy(),"function"==typeof s&&s()};Object.keys(i).length?a.animate(i,void 0,()=>e()):e()}},{pie:{prototype:{pointClass:Q}},scatter:{prototype:{pointClass:tt}}}=W().seriesTypes;class te extends tt{constructor(){super(...arguments),this.groupedPointsAmount=0,this.shapeType="rect"}draw(t){J(this,t)}getClassName(){let t=this.series,e=t.options,i=super.getClassName();return this.node.level<=t.nodeMap[t.rootNode].level&&this.node.children.length?i+=" highcharts-above-level":this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||O(e.interactByLeaf,!e.allowTraversingTree)?this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||(i+=" highcharts-internal-node"):i+=" highcharts-internal-node-interactive",i}isValid(){return!!(this.id||x(this.value))}setState(t){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:+("hover"===t)})}shouldDraw(){return x(this.plotY)&&null!==this.y}}b(te.prototype,{setVisible:Q.prototype.setVisible});let ti={allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{enabled:!0,formatter:function(){let t=this&&this.point?this.point:{};return P(t.name)?t.name:""},headers:!1,inside:!0,padding:2,verticalAlign:"middle",style:{textOverflow:"ellipsis"}},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>",clusterFormat:"+ {point.groupedPointsAmount} more...<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:.1*!W().seriesTypes.heatmap,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle",traverseToLeaf:!1,cluster:{className:void 0,color:void 0,enabled:!1,pixelWidth:void 0,pixelHeight:void 0,name:void 0,reductionFactor:void 0,minimumClusterSize:5,layoutAlgorithm:{distance:0,gridSize:0,kmeansThreshold:0},marker:{lineWidth:0,radius:0}}};(s||(s={})).recursive=function t(e,i,s){let o=i.call(s||this,e);!1!==o&&t(o,i,s)};let ts=s,to={getColor:function(t,e){let i,s,o,r,l,a,n=e.index,h=e.mapOptionsToLevel,d=e.parentColor,p=e.parentColorIndex,u=e.series,c=e.colors,f=e.siblings,v=u.points,g=u.chart.options.chart;if(t){let b;i=v[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(r=i.index%(c?c.length:g.colorCount),o=c&&c[r]),u.chart.styledMode||(l=O(i&&i.options.color,s&&s.color,o,d&&((b=s&&s.colorVariation)&&"brightness"===b.key&&n&&f?V().parse(d).brighten(b.to*(n/f)).get():d),u.color)),a=O(i&&i.options.colorIndex,s&&s.colorIndex,r,p,e.colorIndex)}return{color:l,colorIndex:a}},getLevelOptions:function(t){let e,i,s,o,r,l,a={};if(T(t))for(o=x(t.from)?t.from:1,l=t.levels,i={},e=T(t.defaults)?t.defaults:{},L(l)&&(i=l.reduce((t,i)=>{let s,r,l;return T(i)&&x(i.level)&&(r=O((l=w({},i)).levelIsConstant,e.levelIsConstant),delete l.levelIsConstant,delete l.level,T(t[s=i.level+(r?0:o-1)])?w(!0,t[s],l):t[s]=l),t},{})),r=x(t.to)?t.to:1,s=0;s<=r;s++)a[s]=w({},e,T(i[s])?i[s]:{});return a},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:o=0,nodeWidth:r=0}=s,{plotSizeX:l=1}=i;if("auto"===r){if("string"==typeof o&&/%$/.test(o))return l/(e+parseFloat(o)/100*(e-1));let t=Number(o);return(l+t)/(e||1)-t}return I(r,l)},setTreeValues:function t(e,i){let s=i.before,o=i.idRoot,r=i.mapIdToNode[o],l=!1!==i.levelIsConstant,a=i.points[e.i],n=a&&a.options||{},h=[],d=0;e.levelDynamic=e.level-(l?0:r.level),e.name=O(a&&a.name,""),e.visible=o===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEach((s,o)=>{let r=b({},i);b(r,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,r),h.push(s),s.visible&&(d+=s.val)});let p=O(n.value,d);return e.visible=p>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=p,e},updateRootId:function(t){let e,i;return T(t)&&(i=T(t.options)?t.options:{},e=O(t.rootNode,i.rootId,""),T(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}},{parse:tr}=V(),{composed:tl,noop:ta}=a(),{column:tn,scatter:th}=W().seriesTypes,{getColor:td,getLevelOptions:tp,updateRootId:tu}=to;K().keepProps.push("simulation","hadOutsideDataLabels");let tc=!1;function tf(){let t=this.xAxis,e=this.yAxis;if(t&&e)if(this.is("treemap")){let i={endOnTick:!1,startOnTick:!1,visible:!1};this.is("treegraph")||(i.min=0,i.max=100,i.tickPositions=[]),w(!0,t.options,i,t.userOptions),w(!0,e.options,i,e.userOptions),t.visible=t.options.visible,e.visible=e.options.visible,this.is("treegraph")&&(this.isCartesian=t.visible),tc=!0}else tc&&(e.setOptions(e.userOptions),t.setOptions(t.userOptions),tc=!1)}class tv extends th{constructor(){super(...arguments),this.simulation=0}static compose(t){R(tl,"TreemapSeries")&&c(t,"afterBindAxes",tf)}algorithmCalcPoints(t,e,i,s){let o=i.plot,r=i.elArr.length-1,l,a,n,h,d=i.lW,p=i.lH,u,c=0;for(let t of(e?(d=i.nW,p=i.nH):u=i.elArr[r],i.elArr))(e||c<r)&&(0===i.direction?(l=o.x,a=o.y,h=t/(n=d)):(l=o.x,a=o.y,n=t/(h=p)),s.push({x:l,y:a,width:n,height:f(h)}),0===i.direction?o.y=o.y+h:o.x=o.x+n),c+=1;i.reset(),0===i.direction?i.width=i.width-d:i.height=i.height-p,o.y=o.parent.y+(o.parent.height-i.height),o.x=o.parent.x+(o.parent.width-i.width),t&&(i.direction=1-i.direction),e||i.addElement(u)}algorithmFill(t,e,i){let s=[],o,r=e.direction,l=e.x,a=e.y,n=e.width,h=e.height,d,p,u,c;for(let f of i)o=e.width*e.height*(f.val/e.val),d=l,p=a,0===r?(n-=u=o/(c=h),l+=u):(h-=c=o/(u=n),a+=c),s.push({x:d,y:p,width:u,height:c,direction:0,val:0}),t&&(r=1-r);return s}algorithmLowAspectRatio(t,e,i){let s=[],o={x:e.x,y:e.y,parent:e},r=e.direction,l=i.length-1,a=new q(e.height,e.width,r,o),n,h=0;for(let r of i)n=e.width*e.height*(r.val/e.val),a.addElement(n),a.lP.nR>a.lP.lR&&this.algorithmCalcPoints(t,!1,a,s,o),h===l&&this.algorithmCalcPoints(t,!0,a,s,o),++h;return s}alignDataLabel(t,e,i){tn.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})}applyTreeGrouping(){let t=this,e=t.parentList||{},{cluster:i}=t.options,s=i?.minimumClusterSize||5;if(i?.enabled){let o={},r=t=>{if(t?.point?.shapeArgs){let{width:e=0,height:s=0}=t.point.shapeArgs,{pixelWidth:r=0,pixelHeight:l=0}=i,a=g(l),n=l?r*l:r*r;(e<r||s<(a?l:r)||e*s<n)&&!t.isGroup&&g(t.parent)&&(o[t.parent]||(o[t.parent]=[]),o[t.parent].push(t))}t?.children.forEach(t=>{r(t)})};for(let l in r(t.tree),o)o[l]&&o[l].length>s&&o[l].forEach(s=>{let o=e[l].indexOf(s.i);if(-1!==o){e[l].splice(o,1);let r=`highcharts-grouped-treemap-points-${s.parent||"root"}`,a=t.points.find(t=>t.id===r);if(!a){let s=t.pointClass,o=t.points.length;b(a=new s(t,{className:i.className,color:i.color,id:r,index:o,isGroup:!0,value:0}),{formatPrefix:"cluster"}),t.points.push(a),e[l].push(o),e[r]=[]}let n=a.groupedPointsAmount+1,h=t.points[a.index].options.value||0,d=i.name||`+ ${n}`;t.points[a.index].groupedPointsAmount=n,t.points[a.index].options.value=h+(s.point.value||0),t.points[a.index].name=d,e[r].push(s.point.index)}});t.nodeMap={},t.nodeList=[],t.parentList=e;let l=t.buildTree("",-1,0,t.parentList);t.translate(l)}}calculateChildrenAreas(t,e){let i=this.options,s=this.mapOptionsToLevel[t.level+1],o=O(s?.layoutAlgorithm&&this[s?.layoutAlgorithm]&&s.layoutAlgorithm,i.layoutAlgorithm),r=i.alternateStartingDirection,l=t.children.filter(e=>t.isGroup||!e.ignore),a=s?.groupPadding??i.groupPadding??0,n=this.nodeMap[this.rootNode];if(!o)return;let h=[],d=n.pointValues?.width||0,p=n.pointValues?.height||0;s?.layoutStartingDirection&&(e.direction=+("vertical"!==s.layoutStartingDirection)),h=this[o](e,l);let u=-1;for(let t of l){let i=h[++u];t===n&&(d=d||i.width,p=i.height);let s=a/(this.xAxis.len/p),o=a/(this.yAxis.len/p);if(t.values=w(i,{val:t.childrenTotal,direction:r?1-e.direction:e.direction}),t.children.length&&t.point.dataLabels?.length){let e=function(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}(t.point.dataLabels.map(t=>t.options?.headers&&t.height||0))/(this.yAxis.len/p);e<t.values.height/2&&(t.values.y+=e,t.values.height-=e)}if(a){let e=Math.min(s,t.values.width/4),i=Math.min(o,t.values.height/4);t.values.x+=e,t.values.width-=2*e,t.values.y+=i,t.values.height-=2*i}t.pointValues=w(i,{x:i.x/this.axisRatio,y:100-i.y-i.height,width:i.width/this.axisRatio}),t.children.length&&this.calculateChildrenAreas(t,t.values)}let c=(t,e=[],i=!0)=>(t.children.forEach(t=>{i&&t.isLeaf?e.push(t.point):i||t.isLeaf||e.push(t.point),t.children.length&&c(t,e,i)}),e);if("leaf"===i.nodeSizeBy&&t===n&&this.hasOutsideDataLabels&&!c(n,void 0,!1).some(t=>x(t.options.value))&&!x(n.point?.options.value)){let i=c(n),s=i.map(t=>t.options.value||0),o=i.map(({node:{pointValues:t}})=>t?t.width*t.height:0),r=s.reduce((t,e)=>t+e,0),l=o.reduce((t,e)=>t+e,0)/r,a=0,h=0;i.forEach((t,e)=>{var i;let r=(i=(s[e]?o[e]/s[e]:1)/l)>.8?i<1.4?i:1.4:.8,n=1-r;t.value&&(o[e]<20&&(n*=o[e]/20),n>h&&(h=n),n<a&&(a=n),t.simulatedValue=(t.simulatedValue||t.value)/r)}),(a<-.05||h>.05)&&this.simulation<10?(this.simulation++,this.setTreeValues(t),e.val=t.val,this.calculateChildrenAreas(t,e)):(i.forEach(t=>{delete t.simulatedValue}),this.setTreeValues(t),this.simulation=0)}}createList(t){let e=this.chart,i=e.breadcrumbs,s=[];if(i){let i=0;s.push({level:i,levelOptions:e.series[0]});let o=t.target.nodeMap[t.newRootId],r=[];for(;o.parent||""===o.parent;)r.push(o),o=t.target.nodeMap[o.parent];for(let t of r.reverse())s.push({level:++i,levelOptions:t});s.length<=1&&(s.length=0)}return s}drawDataLabels(){let t=this.mapOptionsToLevel,e=this.points.filter(function(t){return t.node.visible||g(t.dataLabel)}),i=M(this.options.dataLabels||{})[0]?.padding,s=e.some(t=>x(t.plotY));for(let o of e){let e={},r={style:e},l=t[o.node.level];if((!o.node.isLeaf&&!o.node.isGroup||o.node.isGroup&&o.node.level<=this.nodeMap[this.rootNode].level)&&(r.enabled=!1),l?.dataLabels&&(w(!0,r,M(l.dataLabels)[0]),this.hasDataLabels=()=>!0),o.node.isLeaf?r.inside=!0:r.headers&&(r.verticalAlign="top"),o.shapeArgs&&s){let{height:t=0,width:s=0}=o.shapeArgs;if(s>32&&t>16&&o.shouldDraw()){let l=s-2*(r.padding||i||0);e.width=`${l}px`,e.lineClamp??(e.lineClamp=Math.floor(t/16)),this.options.allowTraversingTree&&(e.visibility="inherit"),o.dataLabel?.attr({width:r.headers?l:void 0})}else e.width=`${s}px`,e.visibility="hidden"}o.dlOptions=w(r,o.options.dataLabels,{zIndex:void 0})}super.drawDataLabels(e)}drawPoints(t=this.points){let e=this.chart,i=e.renderer,s=e.styledMode,o=this.options,r=s?{}:o.shadow,l=o.borderRadius,a=e.pointCount<o.animationLimit,n=o.allowTraversingTree;for(let e of t){let t={},h={},d={},p="level-group-"+e.node.level,u=!!e.graphic,c=a&&u,f=e.shapeArgs;e.shouldDraw()&&(e.isInside=!0,l&&(h.r=l),w(!0,c?t:h,u?f:{},s?{}:this.pointAttribs(e,e.selected?"select":void 0)),this.colorAttribs&&s&&b(d,this.colorAttribs(e)),this[p]||(this[p]=i.g(p).attr({zIndex:-(e.node.level||0)}).add(this.group),this[p].survive=!0)),e.draw({animatableAttribs:t,attribs:h,css:d,group:this[p],imageUrl:e.imageUrl,renderer:i,shadow:r,shapeArgs:f,shapeType:e.shapeType}),n&&e.graphic&&(e.drillId=o.interactByLeaf?this.drillToByLeaf(e):this.drillToByGroup(e))}}drillToByGroup(t){return(!t.node.isLeaf||!!t.node.isGroup)&&t.id}drillToByLeaf(t){let{traverseToLeaf:e}=t.series.options,i=!1,s;if(t.node.parent!==this.rootNode&&t.node.isLeaf)if(e)i=t.id;else for(s=t.node;!i;)void 0!==s.parent&&(s=this.nodeMap[s.parent]),s.parent===this.rootNode&&(i=s.id);return i}drillToNode(t,e){(0,l.error)(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(t,e)}drillUp(){let t=this.nodeMap[this.rootNode];t&&P(t.parent)&&this.setRootNode(t.parent,!0,{trigger:"traverseUpButton"})}getExtremes(){let{dataMin:t,dataMax:e}=super.getExtremes(this.colorValueData);return this.valueMin=t,this.valueMax=e,super.getExtremes()}getListOfParents(t,e){let i=L(t)?t:[],s=L(e)?e:[],o=i.reduce(function(t,e,i){let s=O(e.parent,"");return void 0===t[s]&&(t[s]=[]),t[s].push(i),t},{"":[]});for(let t of Object.keys(o)){let e=o[t];if(""!==t&&-1===s.indexOf(t)){for(let t of e)o[""].push(t);delete o[t]}}return o}getTree(){let t=this.data.map(function(t){return t.id});return this.parentList=this.getListOfParents(this.data,t),this.nodeMap={},this.nodeList=[],this.buildTree("",-1,0,this.parentList||{})}buildTree(t,e,i,s,o){let r=[],l=this.points[e],a=0,n;for(let e of s[t]||[])a=Math.max((n=this.buildTree(this.points[e].id,e,i+1,s,t)).height+1,a),r.push(n),this.is("treegraph")&&(n.visible=!0);let h=new this.NodeClass().init(t,e,r,a,i,this,o);for(let t of r)t.parentNode=h;return this.nodeMap[h.id]=h,this.nodeList.push(h),l&&(l.node=h,h.point=l,g(l.options.x)||(l.x=i)),h}hasData(){return!!this.dataTable.rowCount}init(t,e){let i=this,s=w(e.drillUpButton,e.breadcrumbs),o=c(i,"setOptions",t=>{let e=t.userOptions;g(e.allowDrillToNode)&&!g(e.allowTraversingTree)&&(e.allowTraversingTree=e.allowDrillToNode,delete e.allowDrillToNode),g(e.drillUpButton)&&!g(e.traverseUpButton)&&(e.traverseUpButton=e.drillUpButton,delete e.drillUpButton);let i=M(e.dataLabels||{});e.levels?.forEach(t=>{i.push.apply(i,M(t.dataLabels||{}))}),this.hasOutsideDataLabels=i.some(t=>t.headers)});super.init(t,e),delete i.opacity,i.eventsToUnbind.push(o),i.options.allowTraversingTree&&(i.eventsToUnbind.push(c(i,"click",i.onClickDrillToNode)),i.eventsToUnbind.push(c(i,"setRootNode",function(t){let e=i.chart;e.breadcrumbs&&e.breadcrumbs.updateProperties(i.createList(t))})),i.eventsToUnbind.push(c(i,"update",function(t,e){let i=this.chart.breadcrumbs;i&&t.options.breadcrumbs&&i.update(t.options.breadcrumbs),this.hadOutsideDataLabels=this.hasOutsideDataLabels})),i.eventsToUnbind.push(c(i,"destroy",function(t){let e=this.chart;e.breadcrumbs&&!t.keepEventsForUpdate&&(e.breadcrumbs.destroy(),e.breadcrumbs=void 0)}))),t.breadcrumbs||(t.breadcrumbs=new k(t,s)),i.eventsToUnbind.push(c(t.breadcrumbs,"up",function(t){let e=this.level-t.newLevel;for(let t=0;t<e;t++)i.drillUp()}))}onClickDrillToNode(t){let e=t.point,i=e?.drillId;P(i)&&(e.setState(""),this.setRootNode(i,!0,{trigger:"click"}))}pointAttribs(t,e){let i=T(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},s=t&&i[t.node.level]||{},o=this.options,r=e&&o.states&&o.states[e]||{},l=t?.getClassName()||"",a={stroke:t&&t.borderColor||s.borderColor||r.borderColor||o.borderColor,"stroke-width":O(t&&t.borderWidth,s.borderWidth,r.borderWidth,o.borderWidth),dashstyle:t?.borderDashStyle||s.borderDashStyle||r.borderDashStyle||o.borderDashStyle,fill:t?.color||this.color};return -1!==l.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==l.indexOf("highcharts-internal-node-interactive")?(a["fill-opacity"]=r.opacity??o.opacity??1,a.cursor="pointer"):-1!==l.indexOf("highcharts-internal-node")?a.fill="none":e&&r.brightness&&(a.fill=tr(a.fill).brighten(r.brightness).get()),a}setColorRecursive(t,e,i,s,o){let r=this?.chart,l=r?.options?.colors;if(t){let r=td(t,{colors:l,index:s,mapOptionsToLevel:this.mapOptionsToLevel,parentColor:e,parentColorIndex:i,series:this,siblings:o}),a=this.points[t.i];a&&(a.color=r.color,a.colorIndex=r.colorIndex);let n=-1;for(let e of t.children||[])this.setColorRecursive(e,r.color,r.colorIndex,++n,t.children.length)}}setPointValues(){let t=this,{points:e,xAxis:i,yAxis:s}=t,o=t.chart.styledMode,r=e=>o?0:t.pointAttribs(e)["stroke-width"]||0;for(let t of e){let{pointValues:e,visible:o}=t.node;if(e&&o){let{height:o,width:l,x:a,y:n}=e,h=r(t),d=i.toPixels(a,!0),p=i.toPixels(a+l,!0),u=s.toPixels(n,!0),c=s.toPixels(n+o,!0),f=0===d?h/2:v(i.toPixels(a,!0),h,!0),g=p===i.len?i.len-h/2:v(i.toPixels(a+l,!0),h,!0),b=u===s.len?s.len-h/2:v(s.toPixels(n,!0),h,!0),m=0===c?h/2:v(s.toPixels(n+o,!0),h,!0),y={x:Math.min(f,g),y:Math.min(b,m),width:Math.abs(g-f),height:Math.abs(m-b)};t.plotX=y.x+y.width/2,t.plotY=y.y+y.height/2,t.shapeArgs=y}else delete t.plotX,delete t.plotY}}setRootNode(t,e,i){m(this,"setRootNode",b({newRootId:t,previousRootId:this.rootNode,redraw:O(e,!0),series:this},i),function(t){let e=t.series;e.idPreviousRoot=t.previousRootId,e.rootNode=t.newRootId,e.isDirty=!0,t.redraw&&e.chart.redraw()})}setState(t){this.options.inactiveOtherPoints=!0,super.setState(t,!1),this.options.inactiveOtherPoints=!1}setTreeValues(t){let e=this.options,i=this.rootNode,s=this.nodeMap[i],o="boolean"!=typeof e.levelIsConstant||e.levelIsConstant,r=[],l=this.points[t.i],a=0;for(let e of t.children)e=this.setTreeValues(e),r.push(e),e.ignore||(a+=e.val);!function(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}(r,(t,e)=>(t.sortIndex||0)-(e.sortIndex||0));let n=O(l?.simulatedValue,l?.options.value,a);return l&&(l.value=n),l?.isGroup&&e.cluster?.reductionFactor&&(n/=e.cluster.reductionFactor),t.parentNode?.point?.isGroup&&this.rootNode!==t.parent&&(t.visible=!1),b(t,{children:r,childrenTotal:a,ignore:!(O(l?.visible,!0)&&n>0),isLeaf:t.visible&&!("treegraph"===this.type?r.length>0:a),isGroup:l?.isGroup,levelDynamic:t.level-(o?0:s.level),name:O(l?.name,""),sortIndex:O(l?.sortIndex,-n),val:n}),t}sliceAndDice(t,e){return this.algorithmFill(!0,t,e)}squarified(t,e){return this.algorithmLowAspectRatio(!0,t,e)}strip(t,e){return this.algorithmLowAspectRatio(!1,t,e)}stripes(t,e){return this.algorithmFill(!1,t,e)}translate(t){let e=this,i=e.options,s=!t,o=tu(e),r,l,a,n;t||o.startsWith("highcharts-grouped-treemap-points-")||((this.points||[]).forEach(t=>{t.isGroup&&t.destroy()}),super.translate(),t=e.getTree()),e.tree=t=t||e.tree,r=e.nodeMap[o],""===o||r||(e.setRootNode("",!1),o=e.rootNode,r=e.nodeMap[o]),r.point?.isGroup||(e.mapOptionsToLevel=tp({from:r.level+1,levels:i.levels,to:t.height,defaults:{levelIsConstant:e.options.levelIsConstant,colorByPoint:i.colorByPoint}})),ts.recursive(e.nodeMap[e.rootNode],t=>{let i=t.parent,s=!1;return t.visible=!0,(i||""===i)&&(s=e.nodeMap[i]),s}),ts.recursive(e.nodeMap[e.rootNode].children,t=>{let e=!1;for(let i of t)i.visible=!0,i.children.length&&(e=(e||[]).concat(i.children));return e}),e.setTreeValues(t),e.axisRatio=e.xAxis.len/e.yAxis.len,e.nodeMap[""].pointValues=l={x:0,y:0,width:100,height:100},e.nodeMap[""].values=a=w(l,{width:l.width*e.axisRatio,direction:+("vertical"!==i.layoutStartingDirection),val:t.val}),(this.hasOutsideDataLabels||this.hadOutsideDataLabels)&&this.drawDataLabels(),e.calculateChildrenAreas(t,a),e.colorAxis||i.colorByPoint||e.setColorRecursive(e.tree),i.allowTraversingTree&&r.pointValues&&(n=r.pointValues,e.xAxis.setExtremes(n.x,n.x+n.width,!1),e.yAxis.setExtremes(n.y,n.y+n.height,!1),e.xAxis.setScale(),e.yAxis.setScale()),e.setPointValues(),s&&e.applyTreeGrouping()}}tv.defaultOptions=w(th.defaultOptions,ti),b(tv.prototype,{buildKDTree:ta,colorAttribs:X.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:ta,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value","colorValue"],pointClass:te,NodeClass:Z,trackerGroups:["group","dataLabelsGroup"],utils:ts}),X.compose(tv),W().registerSeriesType("treemap",tv);let{deg2rad:tg}=a();(e=o||(o={})).getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,o=e.plotHeight-2*i,r=t.center,l=Math.min(s,o),a=t.thickness,n,h=t.size,d=t.innerSize||0,p,u;"string"==typeof h&&(h=parseFloat(h)),"string"==typeof d&&(d=parseFloat(d));let c=[O(r?.[0],"50%"),O(r?.[1],"50%"),O(h&&h<0?void 0:t.size,"100%"),O(d&&d<0?void 0:t.innerSize||0,"0%")];for(!e.angular||this instanceof K()||(c[3]=0),p=0;p<4;++p)u=c[p],n=p<2||2===p&&/%$/.test(u),c[p]=I(u,[s,o,l,c[2]][p])+(n?i:0);return c[3]>c[2]&&(c[3]=c[2]),x(a)&&2*a<c[2]&&a>0&&(c[3]=c[2]-2*a),m(this,"afterGetCenter",{positions:c}),c},e.getStartAndEndRadians=function(t,e){let i=x(t)?t:0,s=x(e)&&e>i&&e-i<360?e:i+360;return{start:tg*(i+-90),end:tg*(s+-90)}};let tb=o,{series:{prototype:{pointClass:tm}},seriesTypes:{treemap:{prototype:{pointClass:ty}}}}=W();class tx extends ty{getDataLabelPath(t){let e=this.series.chart.renderer,i=this.shapeExisting,s=i.r+parseInt(t.options?.distance||0,10),o=i.start,r=i.end,l=o+(r-o)/2,a=l<0&&l>-Math.PI||l>Math.PI,n;return o===-Math.PI/2&&f(r)===f(1.5*Math.PI)&&(o=-Math.PI+Math.PI/360,r=-Math.PI/360,a=!0),r-o>Math.PI&&(a=!1,n=!0,r-o>2*Math.PI-.01&&(o+=.01,r-=.01)),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=e.arc({open:!0,longArc:+!!n}).attr({start:a?o:r,end:a?r:o,clockwise:+a,x:i.x,y:i.y,r:(s+i.innerR)/2}).add(e.defs),this.dataLabelPath}isValid(){return!0}}b(tx.prototype,{getClassName:tm.prototype.getClassName,haloPath:tm.prototype.haloPath,setState:tm.prototype.setState});let{seriesTypes:{treemap:tP}}=W();function tL(t,e){let i=[];if(x(t)&&x(e)&&t<=e)for(let s=t;s<=e;s++)i.push(s);return i}let tT={calculateLevelSizes:function(t,e){let i=T(e)?e:{},s,o=0,r,l,a,n;if(T(t)){for(let e of(s=w({},t),l=tL(x(i.from)?i.from:0,x(i.to)?i.to:0),a=Object.keys(s).filter(t=>-1===l.indexOf(+t)),r=n=x(i.diffRadius)?i.diffRadius:0,l)){let t=s[e],i=t.levelSize.unit,l=t.levelSize.value;"weight"===i?o+=l:"percentage"===i?(t.levelSize={unit:"pixels",value:l/100*r},n-=t.levelSize.value):"pixels"===i&&(n-=l)}for(let t of l){let e=s[t];if("weight"===e.levelSize.unit){let i=e.levelSize.value;s[t].levelSize={unit:"pixels",value:i/o*n}}}for(let t of a)s[t].levelSize={value:0,unit:"pixels"}}return s},getLevelFromAndTo:function({level:t,height:e}){return{from:t>0?t:1,to:t+e}},range:tL,recursive:tP.prototype.utils.recursive},{deg2rad:tw}=a();function tA(t,e){e=w(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);let i=this.renderer.url,s=this.text||this,o=s.textPath,{attributes:r,enabled:a}=e;if(t=t||o&&o.path,o&&o.undo(),t&&a){let e=c(s,"afterModifyTree",e=>{if(t&&a){let o=t.attr("id");o||t.attr("id",o=(0,l.uniqueKey)());let a={x:0,y:0};g(r.dx)&&(a.dx=r.dx,delete r.dx),g(r.dy)&&(a.dy=r.dy,delete r.dy),s.attr(a),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let n=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:b(r,{"text-anchor":r.textAnchor,href:`${i}#${o}`}),children:n}}});s.textPath={path:t,undo:e}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this}function tO(t){let e=t.bBox,i=this.element?.querySelector("textPath");if(i){let t=[],{b:s,h:o}=this.renderer.fontMetrics(this.element),r=o-s,l=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),a=i.innerHTML.replace(l,"").split(/<tspan class="highcharts-br"[^>]*>/),n=a.length,h=(t,e)=>{let{x:o,y:l}=e,a=(i.getRotationOfChar(t)-90)*tw,n=Math.cos(a),h=Math.sin(a);return[[o-r*n,l-r*h],[o+s*n,l+s*h]]};for(let e=0,s=0;s<n;s++){let o=a[s].length;for(let r=0;r<o;r+=5)try{let o=e+r+s,[l,a]=h(o,i.getStartPositionOfChar(o));0===r?(t.push(a),t.push(l)):(0===s&&t.unshift(a),s===n-1&&t.push(l))}catch{break}e+=o-1;try{let o=e+s,r=i.getEndPositionOfChar(o),[l,a]=h(o,r);t.unshift(a),t.unshift(l)}catch{break}}t.length&&t.push(t[0].slice()),e.polygon=t}return e}function tR(t){let e=t.labelOptions,i=t.point,s=e[i.formatPrefix+"TextPath"]||e.textPath;s&&!e.useHTML&&(this.setTextPath(i.getDataLabelPath?.(this)||i.graphic,s),i.dataLabelPath&&!s.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy()))}let{getCenter:tI,getStartAndEndRadians:tM}=tb,{noop:tS}=a(),{column:tC,treemap:tB}=W().seriesTypes,{getColor:tE,getLevelOptions:tN,setTreeValues:tD,updateRootId:tG}=to;({compose:function(t){c(t,"afterGetBBox",tO),c(t,"beforeAddingDataLabel",tR);let e=t.prototype;e.setTextPath||(e.setTextPath=tA)}}).compose(F());let tk=180/Math.PI,tz=function(t,e,i,s){return{x:t+Math.cos(i)*s,y:e+Math.sin(i)*s}};function tV(t,e){let i=e.mapIdToNode,s=t.parent,o=s?i[s]:void 0,r=e.series,l=r.chart,a=r.points[t.i],n=tE(t,{colors:r.options.colors||l&&l.options.colors,colorIndex:r.colorIndex,index:e.index,mapOptionsToLevel:e.mapOptionsToLevel,parentColor:o&&o.color,parentColorIndex:o&&o.colorIndex,series:e.series,siblings:e.siblings});return t.color=n.color,t.colorIndex=n.colorIndex,a&&(a.color=t.color,a.colorIndex=t.colorIndex,t.sliced=t.id!==e.idRoot&&a.sliced),t}class tU extends tB{alignDataLabel(t,e,i){if(!i.textPath||!i.textPath.enabled)return e.placed=!1,super.alignDataLabel.apply(this,arguments)}animate(t){let e,i=this.chart,s=[i.plotWidth/2,i.plotHeight/2],o=i.plotLeft,r=i.plotTop,l=this.group;t?(e={translateX:s[0]+o,translateY:s[1]+r,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},l.attr(e)):(e={translateX:o,translateY:r,scaleX:1,scaleY:1,rotation:0,opacity:1},l.animate(e,this.options.animation))}drawPoints(){let t=this,e=t.mapOptionsToLevel,i=t.shapeRoot,s=t.group,o=t.hasRendered,r=t.rootNode,l=t.idPreviousRoot,a=t.nodeMap,n=a[l],h=n&&n.shapeArgs,d=t.points,p=t.startAndEndRadians,u=t.chart,c=u&&u.options&&u.options.chart||{},f="boolean"!=typeof c.animation||c.animation,v=t.center,m={x:v[0],y:v[1]},y=v[3]/2,P=t.chart.renderer,L=!!(f&&o&&r!==l&&t.dataLabelsGroup),A,O=!1,R=!1;for(let n of(L&&(t.dataLabelsGroup.attr({opacity:0}),A=function(){O=!0,t.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),d)){let d,c,v=n.node,L=e[v.level],O=n.shapeExisting||{},I=v.shapeArgs||{},S=!!(v.visible&&v.shapeArgs);I.borderRadius=t.options.borderRadius,d=o&&f?function(t,e){let i=e.point,s=e.radians,o=e.innerR,r=e.idRoot,l=e.idPreviousRoot,a=e.shapeExisting,n=e.shapeRoot,h=e.shapePreviousRoot,d=e.visible,p={},u={end:t.end,start:t.start,innerR:t.innerR,r:t.r,x:t.x,y:t.y};return d?!i.graphic&&h&&((p=r===i.id?{start:s.start,end:s.end}:h.end<=t.start?{start:s.end,end:s.end}:{start:s.start,end:s.start}).innerR=p.r=o):i.graphic&&(l===i.id?u={innerR:o,r:o}:n&&(u=n.end<=a.start?{innerR:o,r:o,start:s.end,end:s.end}:{innerR:o,r:o,start:s.start,end:s.start})),{from:p,to:u}}(I,{center:m,point:n,radians:p,innerR:y,idRoot:r,idPreviousRoot:l,shapeExisting:O,shapeRoot:i,shapePreviousRoot:h,visible:S}):{to:I,from:{}},b(n,{shapeExisting:I,tooltipPos:[I.plotX,I.plotY],drillId:function(t,e,i){let s;return t.node.isLeaf||(s=e===t.id?i[e].parent:t.id),s}(n,r,a),name:""+(n.name||n.id||n.index),plotX:I.plotX,plotY:I.plotY,value:v.val,isInside:S,isNull:!S}),n.dlOptions={...function(t){let e=t.point,i=T(t.shapeArgs)?t.shapeArgs:{},{end:s=0,radius:o=0,start:r=0}=i,l=T(t.optionsPoint)?t.optionsPoint.dataLabels:{},a=w(M(T(t.level)?t.level.dataLabels:{})[0],l),n=a.style=a.style||{},{innerArcLength:h=0,outerArcLength:d=0}=e,p,u,c=a.rotationMode,f=g(n.width)?parseInt(n.width||"0",10):void 0;return x(a.rotation)||(("auto"===c||"circular"===c)&&(a.useHTML&&"circular"===c&&(c="auto"),h<1&&d>o?(p=0,e.dataLabelPath&&"circular"===c&&(a.textPath={enabled:!0}),s-r<Math.PI&&(f=.7*o)):h>1&&d>1.5*o?"circular"===c?a.textPath={enabled:!0,attributes:{dy:5}}:c="parallel":(e.dataLabel?.textPath&&"circular"===c&&(a.textPath={enabled:!1}),c="perpendicular")),"auto"!==c&&"circular"!==c&&(e.dataLabel?.textPath&&(a.textPath={enabled:!1}),p=s-(s-r)/2),"parallel"===c?f=Math.min(2.5*o,(d+h)/2):!g(f)&&o&&(f=1===e.node.level?2*o:o),"perpendicular"===c&&(d<16?f=1:i.radius&&(n.lineClamp=Math.floor(h/16)||1,f=o-(h<16?(16-h)/(d-h)*o:0))),f=Math.max((f||0)-2*(a.padding||0),1),u=(p||0)*tk%180,"parallel"===c&&(u-=90),u>90?u-=180:u<-90&&(u+=180),a.rotation=u),a.textPath&&(0===e.shapeExisting.innerR&&a.textPath.enabled?(a.rotation=0,a.textPath.enabled=!1,f=Math.max(2*e.shapeExisting.r-2*(a.padding||0),1)):e.dlOptions?.textPath&&!e.dlOptions.textPath.enabled&&"circular"===c&&(a.textPath.enabled=!0),a.textPath.enabled&&(a.rotation=0,f=Math.max((d+h)/2-2*(a.padding||0),1),n.whiteSpace="nowrap")),n.width=f+"px",a}({point:n,level:L,optionsPoint:n.options,shapeArgs:I}),zIndex:void 0},!R&&S&&(R=!0,c=A),n.draw({animatableAttribs:d.to,attribs:b(d.from,!u.styledMode&&t.pointAttribs(n,n.selected&&"select")),onComplete:c,group:s,renderer:P,shapeType:"arc",shapeArgs:I})}L&&R?(t.hasRendered=!1,t.options.dataLabels.defer=!0,tC.prototype.drawDataLabels.call(t),t.hasRendered=!0,O&&A?.()):tC.prototype.drawDataLabels.call(t),t.idPreviousRoot=r}layoutAlgorithm(t,e,i){let s=t.start,o=t.end-s,r=t.val,l=t.x,a=t.y,n=i&&T(i.levelSize)&&x(i.levelSize.value)?i.levelSize.value:0,h=t.r,d=h+n,p=i&&x(i.slicedOffset)?i.slicedOffset:0;return(e||[]).reduce((t,e)=>{let i=1/r*e.val*o,u=tz(l,a,s+i/2,p),c={x:e.sliced?u.x:l,y:e.sliced?u.y:a,innerR:h,r:d,radius:n,start:s,end:s+i};return t.push(c),s=c.end,t},[])}setRootNode(t,e,i){if(1===this.nodeMap[t].level&&1===this.nodeList.filter(t=>1===t.level).length){if(""===this.idPreviousRoot)return;t=""}super.setRootNode(t,e,i)}setShapeArgs(t,e,i){let s=i[t.level+1],o=t.children.filter(function(t){return t.visible}),r=[];r=this.layoutAlgorithm(e,o,s);let l=-1;for(let t of o){let e=r[++l],s=e.start+(e.end-e.start)/2,o=e.innerR+(e.r-e.innerR)/2,a=e.end-e.start,n=0===e.innerR&&a>6.28?{x:e.x,y:e.y}:tz(e.x,e.y,s,o),h=t.val?t.childrenTotal>t.val?t.childrenTotal:t.val:t.childrenTotal;this.points[t.i]&&(this.points[t.i].innerArcLength=a*e.innerR,this.points[t.i].outerArcLength=a*e.r),t.shapeArgs=w(e,{plotX:n.x,plotY:n.y}),t.values=w(e,{val:h}),t.children.length&&this.setShapeArgs(t,t.values,i)}}translate(){let t=this.options,e=this.center=this.getCenter(),i=this.startAndEndRadians=tM(t.startAngle,t.endAngle),s=e[3]/2,o=e[2]/2,r=tG(this),a=this.nodeMap,n,h=a&&a[r],d={};this.shapeRoot=h&&h.shapeArgs,this.generatePoints(),m(this,"afterTranslate");let p=this.tree=this.getTree(),u=P((h=(a=this.nodeMap)[r]).parent)?h.parent:"",c=a[u],{from:f,to:v}=tT.getLevelFromAndTo(h);n=tN({from:f,levels:this.options.levels,to:v,defaults:{colorByPoint:t.colorByPoint,dataLabels:t.dataLabels,levelIsConstant:t.levelIsConstant,levelSize:t.levelSize,slicedOffset:t.slicedOffset}}),n=tT.calculateLevelSizes(n,{diffRadius:o-s,from:f,to:v}),tD(p,{before:tV,idRoot:r,levelIsConstant:t.levelIsConstant,mapOptionsToLevel:n,mapIdToNode:a,points:this.points,series:this});let g=a[""].shapeArgs={end:i.end,r:s,start:i.start,val:h.val,x:e[0],y:e[1]};for(let t of(this.setShapeArgs(c,g,n),this.mapOptionsToLevel=n,this.points))d[t.id]&&(0,l.error)(31,!1,this.chart),d[t.id]=!0}}tU.defaultOptions=w(tB.defaultOptions,{center:["50%","50%"],clip:!1,colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"circular",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}),b(tU.prototype,{axisTypes:[],drawDataLabels:tS,getCenter:tI,isCartesian:!1,onPointSupported:!0,pointAttribs:tC.prototype.pointAttribs,pointClass:tx,NodeClass:class extends Z{},utils:tT}),W().registerSeriesType("sunburst",tU);let tW=a();tW.Breadcrumbs=tW.Breadcrumbs||k,tW.Breadcrumbs.compose(tW.Chart,tW.defaultOptions);let tH=a();export{tH as default};
11
+ */import*as t from"../highcharts.js";var e,i,s,o,r={};r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let l=t.default;var a=r.n(l);let n={mainBreadcrumb:"Main"},h=t.default.Templating;var d=r.n(h);let{doc:p,win:u}=a();function c(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;a().Point&&t instanceof a().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let l=t.addEventListener;l&&l.call(t,e,i,!!a().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let n={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(n),r[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,A(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}(t,e,i)}}function f(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function v(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function g(t){return null!=t}function b(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function m(t,e,i,s){if(i=i||{},p?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==a())){let s=p.createEvent("Events");s.initEvent(e,!0,!0),i=b(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||b(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}function y(t){return T(t)&&"number"==typeof t.nodeType}function x(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function P(t){return"string"==typeof t}function L(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function T(t,e){return!!t&&"object"==typeof t&&(!e||!L(t))}function w(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),A(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!T(i,!0)||(o=i?.constructor,T(i,!0)&&!y(i)&&o?.name&&"Object"!==o.name)||y(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let l=s.length;for(i=0;i<l;i++)o=r(o,s[i]);return o}function A(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function O(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function R(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function I(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function M(t){return L(t)?t:[t]}Array.prototype.find;let{format:S}=d(),{composed:C}=a();function B(){if(this.breadcrumbs){let t=this.resetZoomButton&&this.resetZoomButton.getBBox(),e=this.breadcrumbs.options;t&&"right"===e.position.align&&"plotBox"===e.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-t.width-e.buttonSpacing)}}function E(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function N(){let t=this.breadcrumbs;if(t&&!t.options.floating&&t.level){let e=t.options,i=e.buttonTheme,s=(i.height||0)+2*(i.padding||0)+e.buttonSpacing,o=e.position.verticalAlign;"bottom"===o?(this.marginBottom=(this.marginBottom||0)+s,t.yOffset=s):"middle"!==o?(this.plotTop+=s,t.yOffset=-s):t.yOffset=void 0}}function D(){this.breadcrumbs&&this.breadcrumbs.redraw()}function G(t){!0===t.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class k{static compose(t,e){R(C,"Breadcrumbs")&&(c(t,"destroy",E),c(t,"afterShowResetZoom",B),c(t,"getMargins",N),c(t,"redraw",D),c(t,"selection",G),b(e.lang,n))}constructor(t,e){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let i=w(t.options.drilldown&&t.options.drilldown.drillUpButton,k.defaultOptions,t.options.navigation&&t.options.navigation.breadcrumbs,e);this.chart=t,this.options=i||{}}updateProperties(t){this.setList(t),this.setLevel(),this.isDirty=!0}setList(t){this.list=t}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(t){let e=this.chart,i=this.options,s=e.options.lang,o=O(i.format,i.showFullPath?"{level.name}":"← {level.name}"),r=s&&O(s.drillUpText,s.mainBreadcrumb),l=i.formatter&&i.formatter(t)||S(o,{level:t.levelOptions},e)||"";return(P(l)&&!l.length||"← "===l)&&g(r)&&(l=i.showFullPath?r:"← "+r),l}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let t=this.chart,e=this.options;!this.group&&e&&(this.group=t.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:e.zIndex}).add()),e.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let t=this.chart,e=this.list,i=this.options.buttonSpacing;this.destroyListElements();let s=this.group?this.group.getBBox().width:i,o=e[e.length-2];!t.drillUpButton&&this.level>0?t.drillUpButton=this.renderButton(o,s,i):t.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(t){if(this.group){let e=this.options,i=e.buttonTheme,s=e.position,o="chart"===e.relativeTo||"spacingBox"===e.relativeTo?void 0:"plotBox",r=this.group.getBBox(),l=2*(i.padding||0)+e.buttonSpacing;s.width=r.width+l,s.height=r.height+l;let a=w(s);t&&(a.x+=t),this.options.rtl&&(a.x+=s.width),a.y=O(a.y,this.yOffset,0),this.group.align(a,!0,o)}}renderButton(t,e,i){let s=this,o=this.chart,r=s.options,l=w(r.buttonTheme,o.styledMode?void 0:{style:r.style});return o.renderer.button(s.getButtonText(t),e,i,function(e){let i,o=r.events&&r.events.click;o&&(i=o.call(s,e,t,s)),!1!==i&&(r.showFullPath?e.newLevel=t.level:e.newLevel=s.level-1,m(s,"up",e))},l).addClass("highcharts-breadcrumbs-button").add(s.group)}renderSeparator(t,e){let i=this.chart,s=this.options.separator,o=i.renderer.label(s.text,t,e,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return i.styledMode||o.css(s.style),o}update(t){w(!0,this.options,t),this.destroy(),this.isDirty=!0}updateSingleButton(){let t=this.chart,e=this.list[this.level-1];t.drillUpButton&&t.drillUpButton.attr({text:this.getButtonText(e)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(t){let e=this.elementList;A(e,(i,s)=>{(t||!e[s].updated)&&((i=e[s]).button&&i.button.destroy(),i.separator&&i.separator.destroy(),delete i.button,delete i.separator,delete e[s])}),t&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){A(this.elementList,t=>{t.updated=!1})}updateListElements(){let t=this.elementList,e=this.options.buttonSpacing,i=this.list,s=this.options.rtl,o=s?-1:1,r=function(t,e){return o*t.getBBox().width+o*e},l=function(t,e,i){t.translate(e-t.getBBox().width,i)},a=this.group?r(this.group,e):e,n,h;for(let d=0,p=i.length;d<p;++d){let u,c,f=d===p-1;t[(h=i[d]).level]?(u=(n=t[h.level]).button,n.separator||f?n.separator&&f&&(n.separator.destroy(),delete n.separator):(a+=o*e,n.separator=this.renderSeparator(a,e),s&&l(n.separator,a,e),a+=r(n.separator,e)),t[h.level].updated=!0):(u=this.renderButton(h,a,e),s&&l(u,a,e),a+=r(u,e),f||(c=this.renderSeparator(a,e),s&&l(c,a,e),a+=r(c,e)),t[h.level]={button:u,separator:c,updated:!0}),u&&u.setState(2*!!f)}}}k.defaultOptions={buttonSpacing:5,buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7};let z=t.default.Color;var V=r.n(z);let U=t.default.SeriesRegistry;var W=r.n(U);let H=t.default.SVGElement;var F=r.n(H);let{column:{prototype:j}}=W().seriesTypes;var Y=i||(i={});function $(t){let e=this.series,i=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(F())(i,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),t?.state==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:`${i.url}#${this.id}`,visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}Y.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},Y.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){let e={};return g(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:j.pointAttribs},Y.compose=function(t){return c(t.prototype.pointClass,"afterSetState",$),t};let X=i,_=t.default.Series;var K=r.n(_);let q=class{constructor(t,e,i,s){this.height=t,this.width=e,this.plot=s,this.direction=i,this.startDirection=i,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(t,e){return Math.max(t/e,e/t)}}}addElement(t){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+t,0===this.direction?(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(t)}reset(){this.nW=0,this.lW=0,this.elArr=[],this.total=0}},Z=class{constructor(){this.childrenTotal=0,this.visible=!1}init(t,e,i,s,o,r,l){return this.id=t,this.i=e,this.children=i,this.height=s,this.level=o,this.series=r,this.parent=l,this}},J=function(t,e){let{animatableAttribs:i,onComplete:s,css:o,renderer:r}=e,l=t.series&&t.series.chart.hasRendered?void 0:t.series&&t.series.options.animation,a=t.graphic;if(e.attribs={...e.attribs,class:t.getClassName()},t.shouldDraw())a||(t.graphic=a="text"===e.shapeType?r.text():"image"===e.shapeType?r.image(e.imageUrl||"").attr(e.shapeArgs||{}):r[e.shapeType](e.shapeArgs||{}),a.add(e.group)),o&&a.css(o),a.attr(e.attribs).animate(i,!e.isNew&&l,s);else if(a){let e=()=>{t.graphic=a=a&&a.destroy(),"function"==typeof s&&s()};Object.keys(i).length?a.animate(i,void 0,()=>e()):e()}},{pie:{prototype:{pointClass:Q}},scatter:{prototype:{pointClass:tt}}}=W().seriesTypes;class te extends tt{constructor(){super(...arguments),this.groupedPointsAmount=0,this.shapeType="rect"}draw(t){J(this,t)}getClassName(){let t=this.series,e=t.options,i=super.getClassName();return this.node.level<=t.nodeMap[t.rootNode].level&&this.node.children.length?i+=" highcharts-above-level":this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||O(e.interactByLeaf,!e.allowTraversingTree)?this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||(i+=" highcharts-internal-node"):i+=" highcharts-internal-node-interactive",i}isValid(){return!!(this.id||x(this.value))}setState(t){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:+("hover"===t)})}shouldDraw(){return x(this.plotY)&&null!==this.y}}b(te.prototype,{setVisible:Q.prototype.setVisible});let ti={allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{enabled:!0,formatter:function(){let t=this&&this.point?this.point:{};return P(t.name)?t.name:""},headers:!1,inside:!0,padding:2,verticalAlign:"middle",style:{textOverflow:"ellipsis"}},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>",clusterFormat:"+ {point.groupedPointsAmount} more...<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:.1*!W().seriesTypes.heatmap,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle",traverseToLeaf:!1,cluster:{className:void 0,color:void 0,enabled:!1,pixelWidth:void 0,pixelHeight:void 0,name:void 0,reductionFactor:void 0,minimumClusterSize:5,layoutAlgorithm:{distance:0,gridSize:0,kmeansThreshold:0},marker:{lineWidth:0,radius:0}}};(s||(s={})).recursive=function t(e,i,s){let o=i.call(s||this,e);!1!==o&&t(o,i,s)};let ts=s,to={getColor:function(t,e){let i,s,o,r,l,a,n=e.index,h=e.mapOptionsToLevel,d=e.parentColor,p=e.parentColorIndex,u=e.series,c=e.colors,f=e.siblings,v=u.points,g=u.chart.options.chart;if(t){let b;i=v[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(r=i.index%(c?c.length:g.colorCount),o=c&&c[r]),u.chart.styledMode||(l=O(i&&i.options.color,s&&s.color,o,d&&((b=s&&s.colorVariation)&&"brightness"===b.key&&n&&f?V().parse(d).brighten(b.to*(n/f)).get():d),u.color)),a=O(i&&i.options.colorIndex,s&&s.colorIndex,r,p,e.colorIndex)}return{color:l,colorIndex:a}},getLevelOptions:function(t){let e,i,s,o,r,l,a={};if(T(t))for(o=x(t.from)?t.from:1,l=t.levels,i={},e=T(t.defaults)?t.defaults:{},L(l)&&(i=l.reduce((t,i)=>{let s,r,l;return T(i)&&x(i.level)&&(r=O((l=w({},i)).levelIsConstant,e.levelIsConstant),delete l.levelIsConstant,delete l.level,T(t[s=i.level+(r?0:o-1)])?w(!0,t[s],l):t[s]=l),t},{})),r=x(t.to)?t.to:1,s=0;s<=r;s++)a[s]=w({},e,T(i[s])?i[s]:{});return a},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:o=0,nodeWidth:r=0}=s,{plotSizeX:l=1}=i;if("auto"===r){if("string"==typeof o&&/%$/.test(o))return l/(e+parseFloat(o)/100*(e-1));let t=Number(o);return(l+t)/(e||1)-t}return I(r,l)},setTreeValues:function t(e,i){let s=i.before,o=i.idRoot,r=i.mapIdToNode[o],l=!1!==i.levelIsConstant,a=i.points[e.i],n=a&&a.options||{},h=[],d=0;e.levelDynamic=e.level-(l?0:r.level),e.name=O(a&&a.name,""),e.visible=o===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEach((s,o)=>{let r=b({},i);b(r,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,r),h.push(s),s.visible&&(d+=s.val)});let p=O(n.value,d);return e.visible=p>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=p,e},updateRootId:function(t){let e,i;return T(t)&&(i=T(t.options)?t.options:{},e=O(t.rootNode,i.rootId,""),T(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}},{parse:tr}=V(),{composed:tl,noop:ta}=a(),{column:tn,scatter:th}=W().seriesTypes,{getColor:td,getLevelOptions:tp,updateRootId:tu}=to;K().keepProps.push("simulation","hadOutsideDataLabels");let tc=!1;function tf(){let t=this.xAxis,e=this.yAxis;if(t&&e)if(this.is("treemap")){let i={endOnTick:!1,startOnTick:!1,visible:!1};this.is("treegraph")||(i.min=0,i.max=100,i.tickPositions=[]),w(!0,t.options,i,t.userOptions),w(!0,e.options,i,e.userOptions),t.visible=t.options.visible,e.visible=e.options.visible,this.is("treegraph")&&(this.isCartesian=t.visible),tc=!0}else tc&&(e.setOptions(e.userOptions),t.setOptions(t.userOptions),tc=!1)}class tv extends th{constructor(){super(...arguments),this.simulation=0}static compose(t){R(tl,"TreemapSeries")&&c(t,"afterBindAxes",tf)}algorithmCalcPoints(t,e,i,s){let o=i.plot,r=i.elArr.length-1,l,a,n,h,d=i.lW,p=i.lH,u,c=0;for(let t of(e?(d=i.nW,p=i.nH):u=i.elArr[r],i.elArr))(e||c<r)&&(0===i.direction?(l=o.x,a=o.y,h=t/(n=d)):(l=o.x,a=o.y,n=t/(h=p)),s.push({x:l,y:a,width:n,height:f(h)}),0===i.direction?o.y=o.y+h:o.x=o.x+n),c+=1;i.reset(),0===i.direction?i.width=i.width-d:i.height=i.height-p,o.y=o.parent.y+(o.parent.height-i.height),o.x=o.parent.x+(o.parent.width-i.width),t&&(i.direction=1-i.direction),e||i.addElement(u)}algorithmFill(t,e,i){let s=[],o,r=e.direction,l=e.x,a=e.y,n=e.width,h=e.height,d,p,u,c;for(let f of i)o=e.width*e.height*(f.val/e.val),d=l,p=a,0===r?(n-=u=o/(c=h),l+=u):(h-=c=o/(u=n),a+=c),s.push({x:d,y:p,width:u,height:c,direction:0,val:0}),t&&(r=1-r);return s}algorithmLowAspectRatio(t,e,i){let s=[],o={x:e.x,y:e.y,parent:e},r=e.direction,l=i.length-1,a=new q(e.height,e.width,r,o),n,h=0;for(let r of i)n=e.width*e.height*(r.val/e.val),a.addElement(n),a.lP.nR>a.lP.lR&&this.algorithmCalcPoints(t,!1,a,s,o),h===l&&this.algorithmCalcPoints(t,!0,a,s,o),++h;return s}alignDataLabel(t,e,i){tn.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})}applyTreeGrouping(){let t=this,e=t.parentList||{},{cluster:i}=t.options,s=i?.minimumClusterSize||5;if(i?.enabled){let o={},r=t=>{if(t?.point?.shapeArgs){let{width:e=0,height:s=0}=t.point.shapeArgs,{pixelWidth:r=0,pixelHeight:l=0}=i,a=g(l),n=l?r*l:r*r;(e<r||s<(a?l:r)||e*s<n)&&!t.isGroup&&g(t.parent)&&(o[t.parent]||(o[t.parent]=[]),o[t.parent].push(t))}t?.children.forEach(t=>{r(t)})};for(let l in r(t.tree),o)o[l]&&o[l].length>s&&o[l].forEach(s=>{let o=e[l].indexOf(s.i);if(-1!==o){e[l].splice(o,1);let r=`highcharts-grouped-treemap-points-${s.parent||"root"}`,a=t.points.find(t=>t.id===r);if(!a){let s=t.pointClass,o=t.points.length;b(a=new s(t,{className:i.className,color:i.color,id:r,index:o,isGroup:!0,value:0}),{formatPrefix:"cluster"}),t.points.push(a),e[l].push(o),e[r]=[]}let n=a.groupedPointsAmount+1,h=t.points[a.index].options.value||0,d=i.name||`+ ${n}`;t.points[a.index].groupedPointsAmount=n,t.points[a.index].options.value=h+(s.point.value||0),t.points[a.index].name=d,e[r].push(s.point.index)}});t.nodeMap={},t.nodeList=[],t.parentList=e;let l=t.buildTree("",-1,0,t.parentList);t.translate(l)}}calculateChildrenAreas(t,e){let i=this.options,s=this.mapOptionsToLevel[t.level+1],o=O(s?.layoutAlgorithm&&this[s?.layoutAlgorithm]&&s.layoutAlgorithm,i.layoutAlgorithm),r=i.alternateStartingDirection,l=t.children.filter(e=>t.isGroup||!e.ignore),a=s?.groupPadding??i.groupPadding??0,n=this.nodeMap[this.rootNode];if(!o)return;let h=[],d=n.pointValues?.width||0,p=n.pointValues?.height||0;s?.layoutStartingDirection&&(e.direction=+("vertical"!==s.layoutStartingDirection)),h=this[o](e,l);let u=-1;for(let t of l){let i=h[++u];t===n&&(d=d||i.width,p=i.height);let s=a/(this.xAxis.len/p),o=a/(this.yAxis.len/p);if(t.values=w(i,{val:t.childrenTotal,direction:r?1-e.direction:e.direction}),t.children.length&&t.point.dataLabels?.length){let e=function(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}(t.point.dataLabels.map(t=>t.options?.headers&&t.height||0))/(this.yAxis.len/p);e<t.values.height/2&&(t.values.y+=e,t.values.height-=e)}if(a){let e=Math.min(s,t.values.width/4),i=Math.min(o,t.values.height/4);t.values.x+=e,t.values.width-=2*e,t.values.y+=i,t.values.height-=2*i}t.pointValues=w(i,{x:i.x/this.axisRatio,y:100-i.y-i.height,width:i.width/this.axisRatio}),t.children.length&&this.calculateChildrenAreas(t,t.values)}let c=(t,e=[],i=!0)=>(t.children.forEach(t=>{i&&t.isLeaf?e.push(t.point):i||t.isLeaf||e.push(t.point),t.children.length&&c(t,e,i)}),e);if("leaf"===i.nodeSizeBy&&t===n&&this.hasOutsideDataLabels&&!c(n,void 0,!1).some(t=>x(t.options.value))&&!x(n.point?.options.value)){let i=c(n),s=i.map(t=>t.options.value||0),o=i.map(({node:{pointValues:t}})=>t?t.width*t.height:0),r=s.reduce((t,e)=>t+e,0),l=o.reduce((t,e)=>t+e,0)/r,a=0,h=0;i.forEach((t,e)=>{var i;let r=(i=(s[e]?o[e]/s[e]:1)/l)>.8?i<1.4?i:1.4:.8,n=1-r;t.value&&(o[e]<20&&(n*=o[e]/20),n>h&&(h=n),n<a&&(a=n),t.simulatedValue=(t.simulatedValue||t.value)/r)}),(a<-.05||h>.05)&&this.simulation<10?(this.simulation++,this.setTreeValues(t),e.val=t.val,this.calculateChildrenAreas(t,e)):(i.forEach(t=>{delete t.simulatedValue}),this.setTreeValues(t),this.simulation=0)}}createList(t){let e=this.chart,i=e.breadcrumbs,s=[];if(i){let i=0;s.push({level:i,levelOptions:e.series[0]});let o=t.target.nodeMap[t.newRootId],r=[];for(;o.parent||""===o.parent;)r.push(o),o=t.target.nodeMap[o.parent];for(let t of r.reverse())s.push({level:++i,levelOptions:t});s.length<=1&&(s.length=0)}return s}drawDataLabels(){let t=this.mapOptionsToLevel,e=this.points.filter(function(t){return t.node.visible||g(t.dataLabel)}),i=M(this.options.dataLabels||{})[0]?.padding,s=e.some(t=>x(t.plotY));for(let o of e){let e={},r={style:e},l=t[o.node.level];if((!o.node.isLeaf&&!o.node.isGroup||o.node.isGroup&&o.node.level<=this.nodeMap[this.rootNode].level)&&(r.enabled=!1),l?.dataLabels&&(w(!0,r,M(l.dataLabels)[0]),this.hasDataLabels=()=>!0),o.node.isLeaf?r.inside=!0:r.headers&&(r.verticalAlign="top"),o.shapeArgs&&s){let{height:t=0,width:s=0}=o.shapeArgs;if(s>32&&t>16&&o.shouldDraw()){let l=s-2*(r.padding||i||0);e.width=`${l}px`,e.lineClamp??(e.lineClamp=Math.floor(t/16)),this.options.allowTraversingTree&&(e.visibility="inherit"),o.dataLabel?.attr({width:r.headers?l:void 0})}else e.width=`${s}px`,e.visibility="hidden"}o.dlOptions=w(r,o.options.dataLabels,{zIndex:void 0})}super.drawDataLabels(e)}drawPoints(t=this.points){let e=this.chart,i=e.renderer,s=e.styledMode,o=this.options,r=s?{}:o.shadow,l=o.borderRadius,a=e.pointCount<o.animationLimit,n=o.allowTraversingTree;for(let e of t){let t={},h={},d={},p="level-group-"+e.node.level,u=!!e.graphic,c=a&&u,f=e.shapeArgs;e.shouldDraw()&&(e.isInside=!0,l&&(h.r=l),w(!0,c?t:h,u?f:{},s?{}:this.pointAttribs(e,e.selected?"select":void 0)),this.colorAttribs&&s&&b(d,this.colorAttribs(e)),this[p]||(this[p]=i.g(p).attr({zIndex:-(e.node.level||0)}).add(this.group),this[p].survive=!0)),e.draw({animatableAttribs:t,attribs:h,css:d,group:this[p],imageUrl:e.imageUrl,renderer:i,shadow:r,shapeArgs:f,shapeType:e.shapeType}),n&&e.graphic&&(e.drillId=o.interactByLeaf?this.drillToByLeaf(e):this.drillToByGroup(e))}}drillToByGroup(t){return(!t.node.isLeaf||!!t.node.isGroup)&&t.id}drillToByLeaf(t){let{traverseToLeaf:e}=t.series.options,i=!1,s;if(t.node.parent!==this.rootNode&&t.node.isLeaf)if(e)i=t.id;else for(s=t.node;!i;)void 0!==s.parent&&(s=this.nodeMap[s.parent]),s.parent===this.rootNode&&(i=s.id);return i}drillToNode(t,e){(0,l.error)(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(t,e)}drillUp(){let t=this.nodeMap[this.rootNode];t&&P(t.parent)&&this.setRootNode(t.parent,!0,{trigger:"traverseUpButton"})}getExtremes(){let{dataMin:t,dataMax:e}=super.getExtremes(this.colorValueData);return this.valueMin=t,this.valueMax=e,super.getExtremes()}getListOfParents(t,e){let i=L(t)?t:[],s=L(e)?e:[],o=i.reduce(function(t,e,i){let s=O(e.parent,"");return void 0===t[s]&&(t[s]=[]),t[s].push(i),t},{"":[]});for(let t of Object.keys(o)){let e=o[t];if(""!==t&&-1===s.indexOf(t)){for(let t of e)o[""].push(t);delete o[t]}}return o}getTree(){let t=this.data.map(function(t){return t.id});return this.parentList=this.getListOfParents(this.data,t),this.nodeMap={},this.nodeList=[],this.buildTree("",-1,0,this.parentList||{})}buildTree(t,e,i,s,o){let r=[],l=this.points[e],a=0,n;for(let e of s[t]||[])a=Math.max((n=this.buildTree(this.points[e].id,e,i+1,s,t)).height+1,a),r.push(n),this.is("treegraph")&&(n.visible=!0);let h=new this.NodeClass().init(t,e,r,a,i,this,o);for(let t of r)t.parentNode=h;return this.nodeMap[h.id]=h,this.nodeList.push(h),l&&(l.node=h,h.point=l,g(l.options.x)||(l.x=i)),h}hasData(){return!!this.dataTable.rowCount}init(t,e){let i=this,s=w(e.drillUpButton,e.breadcrumbs),o=c(i,"setOptions",t=>{let e=t.userOptions;g(e.allowDrillToNode)&&!g(e.allowTraversingTree)&&(e.allowTraversingTree=e.allowDrillToNode,delete e.allowDrillToNode),g(e.drillUpButton)&&!g(e.traverseUpButton)&&(e.traverseUpButton=e.drillUpButton,delete e.drillUpButton);let i=M(e.dataLabels||{});e.levels?.forEach(t=>{i.push.apply(i,M(t.dataLabels||{}))}),this.hasOutsideDataLabels=i.some(t=>t.headers)});super.init(t,e),delete i.opacity,i.eventsToUnbind.push(o),i.options.allowTraversingTree&&(i.eventsToUnbind.push(c(i,"click",i.onClickDrillToNode)),i.eventsToUnbind.push(c(i,"setRootNode",function(t){let e=i.chart;e.breadcrumbs&&e.breadcrumbs.updateProperties(i.createList(t))})),i.eventsToUnbind.push(c(i,"update",function(t,e){let i=this.chart.breadcrumbs;i&&t.options.breadcrumbs&&i.update(t.options.breadcrumbs),this.hadOutsideDataLabels=this.hasOutsideDataLabels})),i.eventsToUnbind.push(c(i,"destroy",function(t){let e=this.chart;e.breadcrumbs&&!t.keepEventsForUpdate&&(e.breadcrumbs.destroy(),e.breadcrumbs=void 0)}))),t.breadcrumbs||(t.breadcrumbs=new k(t,s)),i.eventsToUnbind.push(c(t.breadcrumbs,"up",function(t){let e=this.level-t.newLevel;for(let t=0;t<e;t++)i.drillUp()}))}onClickDrillToNode(t){let e=t.point,i=e?.drillId;P(i)&&(e.setState(""),this.setRootNode(i,!0,{trigger:"click"}))}pointAttribs(t,e){let i=T(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},s=t&&i[t.node.level]||{},o=this.options,r=e&&o.states&&o.states[e]||{},l=t?.getClassName()||"",a={stroke:t&&t.borderColor||s.borderColor||r.borderColor||o.borderColor,"stroke-width":O(t&&t.borderWidth,s.borderWidth,r.borderWidth,o.borderWidth),dashstyle:t?.borderDashStyle||s.borderDashStyle||r.borderDashStyle||o.borderDashStyle,fill:t?.color||this.color};return -1!==l.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==l.indexOf("highcharts-internal-node-interactive")?(a["fill-opacity"]=r.opacity??o.opacity??1,a.cursor="pointer"):-1!==l.indexOf("highcharts-internal-node")?a.fill="none":e&&r.brightness&&(a.fill=tr(a.fill).brighten(r.brightness).get()),a}setColorRecursive(t,e,i,s,o){let r=this?.chart,l=r?.options?.colors;if(t){let r=td(t,{colors:l,index:s,mapOptionsToLevel:this.mapOptionsToLevel,parentColor:e,parentColorIndex:i,series:this,siblings:o}),a=this.points[t.i];a&&(a.color=r.color,a.colorIndex=r.colorIndex);let n=-1;for(let e of t.children||[])this.setColorRecursive(e,r.color,r.colorIndex,++n,t.children.length)}}setPointValues(){let t=this,{points:e,xAxis:i,yAxis:s}=t,o=t.chart.styledMode,r=e=>o?0:t.pointAttribs(e)["stroke-width"]||0;for(let t of e){let{pointValues:e,visible:o}=t.node;if(e&&o){let{height:o,width:l,x:a,y:n}=e,h=r(t),d=i.toPixels(a,!0),p=i.toPixels(a+l,!0),u=s.toPixels(n,!0),c=s.toPixels(n+o,!0),f=0===d?h/2:v(i.toPixels(a,!0),h,!0),g=p===i.len?i.len-h/2:v(i.toPixels(a+l,!0),h,!0),b=u===s.len?s.len-h/2:v(s.toPixels(n,!0),h,!0),m=0===c?h/2:v(s.toPixels(n+o,!0),h,!0),y={x:Math.min(f,g),y:Math.min(b,m),width:Math.abs(g-f),height:Math.abs(m-b)};t.plotX=y.x+y.width/2,t.plotY=y.y+y.height/2,t.shapeArgs=y}else delete t.plotX,delete t.plotY}}setRootNode(t,e,i){m(this,"setRootNode",b({newRootId:t,previousRootId:this.rootNode,redraw:O(e,!0),series:this},i),function(t){let e=t.series;e.idPreviousRoot=t.previousRootId,e.rootNode=t.newRootId,e.isDirty=!0,t.redraw&&e.chart.redraw()})}setState(t){this.options.inactiveOtherPoints=!0,super.setState(t,!1),this.options.inactiveOtherPoints=!1}setTreeValues(t){let e=this.options,i=this.rootNode,s=this.nodeMap[i],o="boolean"!=typeof e.levelIsConstant||e.levelIsConstant,r=[],l=this.points[t.i],a=0;for(let e of t.children)e=this.setTreeValues(e),r.push(e),e.ignore||(a+=e.val);!function(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}(r,(t,e)=>(t.sortIndex||0)-(e.sortIndex||0));let n=O(l?.simulatedValue,l?.options.value,a);return l&&(l.value=n),l?.isGroup&&e.cluster?.reductionFactor&&(n/=e.cluster.reductionFactor),t.parentNode?.point?.isGroup&&this.rootNode!==t.parent&&(t.visible=!1),b(t,{children:r,childrenTotal:a,ignore:!(O(l?.visible,!0)&&n>0),isLeaf:t.visible&&!("treegraph"===this.type?r.length>0:a),isGroup:l?.isGroup,levelDynamic:t.level-(o?0:s.level),name:O(l?.name,""),sortIndex:O(l?.sortIndex,-n),val:n}),t}sliceAndDice(t,e){return this.algorithmFill(!0,t,e)}squarified(t,e){return this.algorithmLowAspectRatio(!0,t,e)}strip(t,e){return this.algorithmLowAspectRatio(!1,t,e)}stripes(t,e){return this.algorithmFill(!1,t,e)}translate(t){let e=this,i=e.options,s=!t,o=tu(e),r,l,a,n;t||o.startsWith("highcharts-grouped-treemap-points-")||((this.points||[]).forEach(t=>{t.isGroup&&t.destroy()}),super.translate(),t=e.getTree()),e.tree=t=t||e.tree,r=e.nodeMap[o],""===o||r||(e.setRootNode("",!1),o=e.rootNode,r=e.nodeMap[o]),r.point?.isGroup||(e.mapOptionsToLevel=tp({from:r.level+1,levels:i.levels,to:t.height,defaults:{levelIsConstant:e.options.levelIsConstant,colorByPoint:i.colorByPoint}})),ts.recursive(e.nodeMap[e.rootNode],t=>{let i=t.parent,s=!1;return t.visible=!0,(i||""===i)&&(s=e.nodeMap[i]),s}),ts.recursive(e.nodeMap[e.rootNode].children,t=>{let e=!1;for(let i of t)i.visible=!0,i.children.length&&(e=(e||[]).concat(i.children));return e}),e.setTreeValues(t),e.axisRatio=e.xAxis.len/e.yAxis.len,e.nodeMap[""].pointValues=l={x:0,y:0,width:100,height:100},e.nodeMap[""].values=a=w(l,{width:l.width*e.axisRatio,direction:+("vertical"!==i.layoutStartingDirection),val:t.val}),(this.hasOutsideDataLabels||this.hadOutsideDataLabels)&&this.drawDataLabels(),e.calculateChildrenAreas(t,a),e.colorAxis||i.colorByPoint||e.setColorRecursive(e.tree),i.allowTraversingTree&&r.pointValues&&(n=r.pointValues,e.xAxis.setExtremes(n.x,n.x+n.width,!1),e.yAxis.setExtremes(n.y,n.y+n.height,!1),e.xAxis.setScale(),e.yAxis.setScale()),e.setPointValues(),s&&e.applyTreeGrouping()}}tv.defaultOptions=w(th.defaultOptions,ti),b(tv.prototype,{buildKDTree:ta,colorAttribs:X.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:ta,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value","colorValue"],pointClass:te,NodeClass:Z,trackerGroups:["group","dataLabelsGroup"],utils:ts}),X.compose(tv),W().registerSeriesType("treemap",tv);let{deg2rad:tg}=a();(e=o||(o={})).getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,o=e.plotHeight-2*i,r=t.center,l=Math.min(s,o),a=t.thickness,n,h=t.size,d=t.innerSize||0,p,u;"string"==typeof h&&(h=parseFloat(h)),"string"==typeof d&&(d=parseFloat(d));let c=[O(r?.[0],"50%"),O(r?.[1],"50%"),O(h&&h<0?void 0:t.size,"100%"),O(d&&d<0?void 0:t.innerSize||0,"0%")];for(!e.angular||this instanceof K()||(c[3]=0),p=0;p<4;++p)u=c[p],n=p<2||2===p&&/%$/.test(u),c[p]=I(u,[s,o,l,c[2]][p])+(n?i:0);return c[3]>c[2]&&(c[3]=c[2]),x(a)&&2*a<c[2]&&a>0&&(c[3]=c[2]-2*a),m(this,"afterGetCenter",{positions:c}),c},e.getStartAndEndRadians=function(t,e){let i=x(t)?t:0,s=x(e)&&e>i&&e-i<360?e:i+360;return{start:tg*(i+-90),end:tg*(s+-90)}};let tb=o,{series:{prototype:{pointClass:tm}},seriesTypes:{treemap:{prototype:{pointClass:ty}}}}=W();class tx extends ty{getDataLabelPath(t){let e=this.series.chart.renderer,i=this.shapeExisting,s=i.r+parseInt(t.options?.distance||0,10),o=i.start,r=i.end,l=o+(r-o)/2,a=l<0&&l>-Math.PI||l>Math.PI,n;return o===-Math.PI/2&&f(r)===f(1.5*Math.PI)&&(o=-Math.PI+Math.PI/360,r=-Math.PI/360,a=!0),r-o>Math.PI&&(a=!1,n=!0,r-o>2*Math.PI-.01&&(o+=.01,r-=.01)),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=e.arc({open:!0,longArc:+!!n}).attr({start:a?o:r,end:a?r:o,clockwise:+a,x:i.x,y:i.y,r:(s+i.innerR)/2}).add(e.defs),this.dataLabelPath}isValid(){return!0}}b(tx.prototype,{getClassName:tm.prototype.getClassName,haloPath:tm.prototype.haloPath,setState:tm.prototype.setState});let{seriesTypes:{treemap:tP}}=W();function tL(t,e){let i=[];if(x(t)&&x(e)&&t<=e)for(let s=t;s<=e;s++)i.push(s);return i}let tT={calculateLevelSizes:function(t,e){let i=T(e)?e:{},s,o=0,r,l,a,n;if(T(t)){for(let e of(s=w({},t),l=tL(x(i.from)?i.from:0,x(i.to)?i.to:0),a=Object.keys(s).filter(t=>-1===l.indexOf(+t)),r=n=x(i.diffRadius)?i.diffRadius:0,l)){let t=s[e],i=t.levelSize.unit,l=t.levelSize.value;"weight"===i?o+=l:"percentage"===i?(t.levelSize={unit:"pixels",value:l/100*r},n-=t.levelSize.value):"pixels"===i&&(n-=l)}for(let t of l){let e=s[t];if("weight"===e.levelSize.unit){let i=e.levelSize.value;s[t].levelSize={unit:"pixels",value:i/o*n}}}for(let t of a)s[t].levelSize={value:0,unit:"pixels"}}return s},getLevelFromAndTo:function({level:t,height:e}){return{from:t>0?t:1,to:t+e}},range:tL,recursive:tP.prototype.utils.recursive},{deg2rad:tw}=a();function tA(t,e){e=w(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);let i=this.renderer.url,s=this.text||this,o=s.textPath,{attributes:r,enabled:a}=e;if(t=t||o&&o.path,o&&o.undo(),t&&a){let e=c(s,"afterModifyTree",e=>{if(t&&a){let o=t.attr("id");o||t.attr("id",o=(0,l.uniqueKey)());let a={x:0,y:0};g(r.dx)&&(a.dx=r.dx,delete r.dx),g(r.dy)&&(a.dy=r.dy,delete r.dy),s.attr(a),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let n=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:b(r,{"text-anchor":r.textAnchor,href:`${i}#${o}`}),children:n}}});s.textPath={path:t,undo:e}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this}function tO(t){let e=t.bBox,i=this.element?.querySelector("textPath");if(i){let t=[],{b:s,h:o}=this.renderer.fontMetrics(this.element),r=o-s,l=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),a=i.innerHTML.replace(l,"").split(/<tspan class="highcharts-br"[^>]*>/),n=a.length,h=(t,e)=>{let{x:o,y:l}=e,a=(i.getRotationOfChar(t)-90)*tw,n=Math.cos(a),h=Math.sin(a);return[[o-r*n,l-r*h],[o+s*n,l+s*h]]};for(let e=0,s=0;s<n;s++){let o=a[s].length;for(let r=0;r<o;r+=5)try{let o=e+r+s,[l,a]=h(o,i.getStartPositionOfChar(o));0===r?(t.push(a),t.push(l)):(0===s&&t.unshift(a),s===n-1&&t.push(l))}catch{break}e+=o-1;try{let o=e+s,r=i.getEndPositionOfChar(o),[l,a]=h(o,r);t.unshift(a),t.unshift(l)}catch{break}}t.length&&t.push(t[0].slice()),e.polygon=t}return e}function tR(t){let e=t.labelOptions,i=t.point,s=e[i.formatPrefix+"TextPath"]||e.textPath;s&&!e.useHTML&&(this.setTextPath(i.getDataLabelPath?.(this)||i.graphic,s),i.dataLabelPath&&!s.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy()))}let{getCenter:tI,getStartAndEndRadians:tM}=tb,{noop:tS}=a(),{column:tC,treemap:tB}=W().seriesTypes,{getColor:tE,getLevelOptions:tN,setTreeValues:tD,updateRootId:tG}=to;({compose:function(t){c(t,"afterGetBBox",tO),c(t,"beforeAddingDataLabel",tR);let e=t.prototype;e.setTextPath||(e.setTextPath=tA)}}).compose(F());let tk=180/Math.PI,tz=function(t,e,i,s){return{x:t+Math.cos(i)*s,y:e+Math.sin(i)*s}};function tV(t,e){let i=e.mapIdToNode,s=t.parent,o=s?i[s]:void 0,r=e.series,l=r.chart,a=r.points[t.i],n=tE(t,{colors:r.options.colors||l&&l.options.colors,colorIndex:r.colorIndex,index:e.index,mapOptionsToLevel:e.mapOptionsToLevel,parentColor:o&&o.color,parentColorIndex:o&&o.colorIndex,series:e.series,siblings:e.siblings});return t.color=n.color,t.colorIndex=n.colorIndex,a&&(a.color=t.color,a.colorIndex=t.colorIndex,t.sliced=t.id!==e.idRoot&&a.sliced),t}class tU extends tB{alignDataLabel(t,e,i){if(!i.textPath||!i.textPath.enabled)return e.placed=!1,super.alignDataLabel.apply(this,arguments)}animate(t){let e,i=this.chart,s=[i.plotWidth/2,i.plotHeight/2],o=i.plotLeft,r=i.plotTop,l=this.group;t?(e={translateX:s[0]+o,translateY:s[1]+r,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},l.attr(e)):(e={translateX:o,translateY:r,scaleX:1,scaleY:1,rotation:0,opacity:1},l.animate(e,this.options.animation))}drawPoints(){let t=this,e=t.mapOptionsToLevel,i=t.shapeRoot,s=t.group,o=t.hasRendered,r=t.rootNode,l=t.idPreviousRoot,a=t.nodeMap,n=a[l],h=n&&n.shapeArgs,d=t.points,p=t.startAndEndRadians,u=t.chart,c=u&&u.options&&u.options.chart||{},f="boolean"!=typeof c.animation||c.animation,v=t.center,m={x:v[0],y:v[1]},y=v[3]/2,P=t.chart.renderer,L=!!(f&&o&&r!==l&&t.dataLabelsGroup),A,O=!1,R=!1;for(let n of(L&&(t.dataLabelsGroup.attr({opacity:0}),A=function(){O=!0,t.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),d)){let d,c,v=n.node,L=e[v.level],O=n.shapeExisting||{},I=v.shapeArgs||{},S=!!(v.visible&&v.shapeArgs);I.borderRadius=t.options.borderRadius,d=o&&f?function(t,e){let i=e.point,s=e.radians,o=e.innerR,r=e.idRoot,l=e.idPreviousRoot,a=e.shapeExisting,n=e.shapeRoot,h=e.shapePreviousRoot,d=e.visible,p={},u={end:t.end,start:t.start,innerR:t.innerR,r:t.r,x:t.x,y:t.y};return d?!i.graphic&&h&&((p=r===i.id?{start:s.start,end:s.end}:h.end<=t.start?{start:s.end,end:s.end}:{start:s.start,end:s.start}).innerR=p.r=o):i.graphic&&(l===i.id?u={innerR:o,r:o}:n&&(u=n.end<=a.start?{innerR:o,r:o,start:s.end,end:s.end}:{innerR:o,r:o,start:s.start,end:s.start})),{from:p,to:u}}(I,{center:m,point:n,radians:p,innerR:y,idRoot:r,idPreviousRoot:l,shapeExisting:O,shapeRoot:i,shapePreviousRoot:h,visible:S}):{to:I,from:{}},b(n,{shapeExisting:I,tooltipPos:[I.plotX,I.plotY],drillId:function(t,e,i){let s;return t.node.isLeaf||(s=e===t.id?i[e].parent:t.id),s}(n,r,a),name:""+(n.name||n.id||n.index),plotX:I.plotX,plotY:I.plotY,value:v.val,isInside:S,isNull:!S}),n.dlOptions={...function(t){let e=t.point,i=T(t.shapeArgs)?t.shapeArgs:{},{end:s=0,radius:o=0,start:r=0}=i,l=T(t.optionsPoint)?t.optionsPoint.dataLabels:{},a=w(M(T(t.level)?t.level.dataLabels:{})[0],l),n=a.style=a.style||{},{innerArcLength:h=0,outerArcLength:d=0}=e,p,u,c=a.rotationMode,f=g(n.width)?parseInt(n.width||"0",10):void 0;return x(a.rotation)||(("auto"===c||"circular"===c)&&(a.useHTML&&"circular"===c&&(c="auto"),h<1&&d>o?(p=0,e.dataLabelPath&&"circular"===c&&(a.textPath={enabled:!0}),s-r<Math.PI&&(f=.7*o)):h>1&&d>1.5*o?"circular"===c?a.textPath={enabled:!0,attributes:{dy:5}}:c="parallel":(e.dataLabel?.textPath&&"circular"===c&&(a.textPath={enabled:!1}),c="perpendicular")),"auto"!==c&&"circular"!==c&&(e.dataLabel?.textPath&&(a.textPath={enabled:!1}),p=s-(s-r)/2),"parallel"===c?f=Math.min(2.5*o,(d+h)/2):!g(f)&&o&&(f=1===e.node.level?2*o:o),"perpendicular"===c&&(d<16?f=1:i.radius&&(n.lineClamp=Math.floor(h/16)||1,f=o-(h<16?(16-h)/(d-h)*o:0))),f=Math.max((f||0)-2*(a.padding||0),1),u=(p||0)*tk%180,"parallel"===c&&(u-=90),u>90?u-=180:u<-90&&(u+=180),a.rotation=u),a.textPath&&(0===e.shapeExisting.innerR&&a.textPath.enabled?(a.rotation=0,a.textPath.enabled=!1,f=Math.max(2*e.shapeExisting.r-2*(a.padding||0),1)):e.dlOptions?.textPath&&!e.dlOptions.textPath.enabled&&"circular"===c&&(a.textPath.enabled=!0),a.textPath.enabled&&(a.rotation=0,f=Math.max((d+h)/2-2*(a.padding||0),1),n.whiteSpace="nowrap")),n.width=f+"px",a}({point:n,level:L,optionsPoint:n.options,shapeArgs:I}),zIndex:void 0},!R&&S&&(R=!0,c=A),n.draw({animatableAttribs:d.to,attribs:b(d.from,!u.styledMode&&t.pointAttribs(n,n.selected&&"select")),onComplete:c,group:s,renderer:P,shapeType:"arc",shapeArgs:I})}L&&R?(t.hasRendered=!1,t.options.dataLabels.defer=!0,tC.prototype.drawDataLabels.call(t),t.hasRendered=!0,O&&A?.()):tC.prototype.drawDataLabels.call(t),t.idPreviousRoot=r}layoutAlgorithm(t,e,i){let s=t.start,o=t.end-s,r=t.val,l=t.x,a=t.y,n=i&&T(i.levelSize)&&x(i.levelSize.value)?i.levelSize.value:0,h=t.r,d=h+n,p=i&&x(i.slicedOffset)?i.slicedOffset:0;return(e||[]).reduce((t,e)=>{let i=1/r*e.val*o,u=tz(l,a,s+i/2,p),c={x:e.sliced?u.x:l,y:e.sliced?u.y:a,innerR:h,r:d,radius:n,start:s,end:s+i};return t.push(c),s=c.end,t},[])}setRootNode(t,e,i){if(1===this.nodeMap[t].level&&1===this.nodeList.filter(t=>1===t.level).length){if(""===this.idPreviousRoot)return;t=""}super.setRootNode(t,e,i)}setShapeArgs(t,e,i){let s=i[t.level+1],o=t.children.filter(function(t){return t.visible}),r=[];r=this.layoutAlgorithm(e,o,s);let l=-1;for(let t of o){let e=r[++l],s=e.start+(e.end-e.start)/2,o=e.innerR+(e.r-e.innerR)/2,a=e.end-e.start,n=0===e.innerR&&a>6.28?{x:e.x,y:e.y}:tz(e.x,e.y,s,o),h=t.val?t.childrenTotal>t.val?t.childrenTotal:t.val:t.childrenTotal;this.points[t.i]&&(this.points[t.i].innerArcLength=a*e.innerR,this.points[t.i].outerArcLength=a*e.r),t.shapeArgs=w(e,{plotX:n.x,plotY:n.y}),t.values=w(e,{val:h}),t.children.length&&this.setShapeArgs(t,t.values,i)}}translate(){let t=this.options,e=this.center=this.getCenter(),i=this.startAndEndRadians=tM(t.startAngle,t.endAngle),s=e[3]/2,o=e[2]/2,r=tG(this),a=this.nodeMap,n,h=a&&a[r],d={};this.shapeRoot=h&&h.shapeArgs,this.generatePoints(),m(this,"afterTranslate");let p=this.tree=this.getTree(),u=P((h=(a=this.nodeMap)[r]).parent)?h.parent:"",c=a[u],{from:f,to:v}=tT.getLevelFromAndTo(h);n=tN({from:f,levels:this.options.levels,to:v,defaults:{colorByPoint:t.colorByPoint,dataLabels:t.dataLabels,levelIsConstant:t.levelIsConstant,levelSize:t.levelSize,slicedOffset:t.slicedOffset}}),n=tT.calculateLevelSizes(n,{diffRadius:o-s,from:f,to:v}),tD(p,{before:tV,idRoot:r,levelIsConstant:t.levelIsConstant,mapOptionsToLevel:n,mapIdToNode:a,points:this.points,series:this});let g=a[""].shapeArgs={end:i.end,r:s,start:i.start,val:h.val,x:e[0],y:e[1]};for(let t of(this.setShapeArgs(c,g,n),this.mapOptionsToLevel=n,this.points))d[t.id]&&(0,l.error)(31,!1,this.chart),d[t.id]=!0}}tU.defaultOptions=w(tB.defaultOptions,{center:["50%","50%"],clip:!1,colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"circular",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}),b(tU.prototype,{axisTypes:[],drawDataLabels:tS,getCenter:tI,isCartesian:!1,onPointSupported:!0,pointAttribs:tC.prototype.pointAttribs,pointClass:tx,NodeClass:class extends Z{},utils:tT}),W().registerSeriesType("sunburst",tU);let tW=a();tW.Breadcrumbs=tW.Breadcrumbs||k,tW.Breadcrumbs.compose(tW.Chart,tW.defaultOptions);let tH=a();export{tH as default};
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highcharts JS v12.6.0 (2026-04-13)
3
+ * @license Highcharts JS v12.6.2 (2026-09-21)
4
4
  * @module highcharts/modules/sunburst
5
5
  * @requires highcharts
6
6
  *
@@ -289,7 +289,7 @@ const options = {
289
289
  * `.highcharts-breadcrumbs-buttons .highcharts-button` rule with its
290
290
  * different states.
291
291
  *
292
- * @type {Highcharts.SVGAttributes}
292
+ * @type {Highcharts.CSSObject}
293
293
  * @since 10.0.0
294
294
  */
295
295
  style: {},
@@ -2011,7 +2011,12 @@ class Breadcrumbs {
2011
2011
  * Returns the SVG button
2012
2012
  */
2013
2013
  renderButton(breadcrumb, posX, posY) {
2014
- const breadcrumbs = this, chart = this.chart, breadcrumbsOptions = breadcrumbs.options, buttonTheme = merge(breadcrumbsOptions.buttonTheme);
2014
+ const breadcrumbs = this, chart = this.chart, breadcrumbsOptions = breadcrumbs.options,
2015
+ // The `style` option is CSS for the button text, so it belongs in
2016
+ // the theme's `style` rather than being applied afterwards. A
2017
+ // later `setState` re-applies the normal state style, which would
2018
+ // otherwise wipe it (#25357).
2019
+ buttonTheme = merge(breadcrumbsOptions.buttonTheme, chart.styledMode ? void 0 : { style: breadcrumbsOptions.style });
2015
2020
  const button = chart.renderer
2016
2021
  .button(breadcrumbs.getButtonText(breadcrumb), posX, posY, function (e /* @todo (Event|any) */) {
2017
2022
  // Extract events from button object and call
@@ -2040,9 +2045,6 @@ class Breadcrumbs {
2040
2045
  }, buttonTheme)
2041
2046
  .addClass('highcharts-breadcrumbs-button')
2042
2047
  .add(breadcrumbs.group);
2043
- if (!chart.styledMode) {
2044
- button.attr(breadcrumbsOptions.style);
2045
- }
2046
2048
  return button;
2047
2049
  }
2048
2050
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v12.6.0 (2026-04-13)
2
+ * Highcharts JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/textpath-support
4
4
  * @requires highcharts
5
5
  *
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highcharts JS v12.6.0 (2026-04-13)
3
+ * @license Highcharts JS v12.6.2 (2026-09-21)
4
4
  * @module highcharts/modules/textpath-support
5
5
  * @requires highcharts
6
6
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v12.6.0 (2026-04-13)
2
+ * Highcharts JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/tiledwebmap
4
4
  * @requires highcharts
5
5
  *
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highcharts JS v12.6.0 (2026-04-13)
3
+ * @license Highcharts JS v12.6.2 (2026-09-21)
4
4
  * @module highcharts/modules/tiledwebmap
5
5
  * @requires highcharts
6
6
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highmaps JS v12.6.0 (2026-04-13)
2
+ * Highmaps JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/tilemap
4
4
  * @requires highcharts
5
5
  * @requires highcharts/modules/map
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highmaps JS v12.6.0 (2026-04-13)
3
+ * @license Highmaps JS v12.6.2 (2026-09-21)
4
4
  * @module highcharts/modules/tilemap
5
5
  * @requires highcharts
6
6
  * @requires highcharts/modules/map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v12.6.0 (2026-04-13)
2
+ * Highcharts JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/timeline
4
4
  * @requires highcharts
5
5
  *
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highcharts JS v12.6.0 (2026-04-13)
3
+ * @license Highcharts JS v12.6.2 (2026-09-21)
4
4
  * @module highcharts/modules/timeline
5
5
  * @requires highcharts
6
6
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v12.6.0 (2026-04-13)
2
+ * Highcharts JS v12.6.2 (2026-09-21)
3
3
  * Treegraph chart series type
4
4
  * @module highcharts/modules/treegraph
5
5
  * @requires highcharts
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highcharts JS v12.6.0 (2026-04-13)
3
+ * @license Highcharts JS v12.6.2 (2026-09-21)
4
4
  * Treegraph chart series type
5
5
  * @module highcharts/modules/treegraph
6
6
  * @requires highcharts
@@ -1,5 +1,5 @@
1
1
  let t;/**
2
- * Highcharts Gantt JS v12.6.0 (2026-04-13)
2
+ * Highcharts Gantt JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/treegrid
4
4
  * @requires highcharts
5
5
  *
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highcharts Gantt JS v12.6.0 (2026-04-13)
3
+ * @license Highcharts Gantt JS v12.6.2 (2026-09-21)
4
4
  * @module highcharts/modules/treegrid
5
5
  * @requires highcharts
6
6
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v12.6.0 (2026-04-13)
2
+ * Highcharts JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/treemap
4
4
  * @requires highcharts
5
5
  *
@@ -8,4 +8,4 @@
8
8
  *
9
9
  * A commercial license may be required depending on use.
10
10
  * See www.highcharts.com/license
11
- */import*as t from"../highcharts.js";var e,i,s={};s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let o=t.default;var r=s.n(o);let l={mainBreadcrumb:"Main"},n=t.default.Templating;var a=s.n(n);let{doc:h,win:d}=r();function p(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let l=o.hcEvents;r().Point&&t instanceof r().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!r().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),l[e]||(l[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return l[e].push(a),l[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,w(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}(t,e,i)}}function u(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function c(t){return null!=t}function v(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function g(t,e,i,s){if(i=i||{},h?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==r())){let s=h.createEvent("Events");s.initEvent(e,!0,!0),i=v(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||v(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}function f(t){return x(t)&&"number"==typeof t.nodeType}function b(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function m(t){return"string"==typeof t}function y(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function x(t,e){return!!t&&"object"==typeof t&&(!e||!y(t))}function T(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),w(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!x(i,!0)||(o=i?.constructor,x(i,!0)&&!f(i)&&o?.name&&"Object"!==o.name)||f(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let l=s.length;for(i=0;i<l;i++)o=r(o,s[i]);return o}function w(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function L(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function P(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function A(t){return y(t)?t:[t]}Array.prototype.find;let{format:B}=a(),{composed:O}=r();function C(){if(this.breadcrumbs){let t=this.resetZoomButton&&this.resetZoomButton.getBBox(),e=this.breadcrumbs.options;t&&"right"===e.position.align&&"plotBox"===e.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-t.width-e.buttonSpacing)}}function S(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function N(){let t=this.breadcrumbs;if(t&&!t.options.floating&&t.level){let e=t.options,i=e.buttonTheme,s=(i.height||0)+2*(i.padding||0)+e.buttonSpacing,o=e.position.verticalAlign;"bottom"===o?(this.marginBottom=(this.marginBottom||0)+s,t.yOffset=s):"middle"!==o?(this.plotTop+=s,t.yOffset=-s):t.yOffset=void 0}}function E(){this.breadcrumbs&&this.breadcrumbs.redraw()}function I(t){!0===t.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class M{static compose(t,e){P(O,"Breadcrumbs")&&(p(t,"destroy",S),p(t,"afterShowResetZoom",C),p(t,"getMargins",N),p(t,"redraw",E),p(t,"selection",I),v(e.lang,l))}constructor(t,e){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let i=T(t.options.drilldown&&t.options.drilldown.drillUpButton,M.defaultOptions,t.options.navigation&&t.options.navigation.breadcrumbs,e);this.chart=t,this.options=i||{}}updateProperties(t){this.setList(t),this.setLevel(),this.isDirty=!0}setList(t){this.list=t}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(t){let e=this.chart,i=this.options,s=e.options.lang,o=L(i.format,i.showFullPath?"{level.name}":"← {level.name}"),r=s&&L(s.drillUpText,s.mainBreadcrumb),l=i.formatter&&i.formatter(t)||B(o,{level:t.levelOptions},e)||"";return(m(l)&&!l.length||"← "===l)&&c(r)&&(l=i.showFullPath?r:"← "+r),l}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let t=this.chart,e=this.options;!this.group&&e&&(this.group=t.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:e.zIndex}).add()),e.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let t=this.chart,e=this.list,i=this.options.buttonSpacing;this.destroyListElements();let s=this.group?this.group.getBBox().width:i,o=e[e.length-2];!t.drillUpButton&&this.level>0?t.drillUpButton=this.renderButton(o,s,i):t.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(t){if(this.group){let e=this.options,i=e.buttonTheme,s=e.position,o="chart"===e.relativeTo||"spacingBox"===e.relativeTo?void 0:"plotBox",r=this.group.getBBox(),l=2*(i.padding||0)+e.buttonSpacing;s.width=r.width+l,s.height=r.height+l;let n=T(s);t&&(n.x+=t),this.options.rtl&&(n.x+=s.width),n.y=L(n.y,this.yOffset,0),this.group.align(n,!0,o)}}renderButton(t,e,i){let s=this,o=this.chart,r=s.options,l=T(r.buttonTheme),n=o.renderer.button(s.getButtonText(t),e,i,function(e){let i,o=r.events&&r.events.click;o&&(i=o.call(s,e,t,s)),!1!==i&&(r.showFullPath?e.newLevel=t.level:e.newLevel=s.level-1,g(s,"up",e))},l).addClass("highcharts-breadcrumbs-button").add(s.group);return o.styledMode||n.attr(r.style),n}renderSeparator(t,e){let i=this.chart,s=this.options.separator,o=i.renderer.label(s.text,t,e,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return i.styledMode||o.css(s.style),o}update(t){T(!0,this.options,t),this.destroy(),this.isDirty=!0}updateSingleButton(){let t=this.chart,e=this.list[this.level-1];t.drillUpButton&&t.drillUpButton.attr({text:this.getButtonText(e)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(t){let e=this.elementList;w(e,(i,s)=>{(t||!e[s].updated)&&((i=e[s]).button&&i.button.destroy(),i.separator&&i.separator.destroy(),delete i.button,delete i.separator,delete e[s])}),t&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){w(this.elementList,t=>{t.updated=!1})}updateListElements(){let t=this.elementList,e=this.options.buttonSpacing,i=this.list,s=this.options.rtl,o=s?-1:1,r=function(t,e){return o*t.getBBox().width+o*e},l=function(t,e,i){t.translate(e-t.getBBox().width,i)},n=this.group?r(this.group,e):e,a,h;for(let d=0,p=i.length;d<p;++d){let u,c,v=d===p-1;t[(h=i[d]).level]?(u=(a=t[h.level]).button,a.separator||v?a.separator&&v&&(a.separator.destroy(),delete a.separator):(n+=o*e,a.separator=this.renderSeparator(n,e),s&&l(a.separator,n,e),n+=r(a.separator,e)),t[h.level].updated=!0):(u=this.renderButton(h,n,e),s&&l(u,n,e),n+=r(u,e),v||(c=this.renderSeparator(n,e),s&&l(c,n,e),n+=r(c,e)),t[h.level]={button:u,separator:c,updated:!0}),u&&u.setState(2*!!v)}}}M.defaultOptions={buttonSpacing:5,buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7};let D=t.default.Color;var R=s.n(D);let G=t.default.SeriesRegistry;var k=s.n(G);let U=t.default.SVGElement;var V=s.n(U);let{column:{prototype:W}}=k().seriesTypes;var F=e||(e={});function H(t){let e=this.series,i=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(V())(i,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),t?.state==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:`${i.url}#${this.id}`,visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}F.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},F.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){let e={};return c(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:W.pointAttribs},F.compose=function(t){return p(t.prototype.pointClass,"afterSetState",H),t};let j=e,z=t.default.Series;var $=s.n(z);let _=class{constructor(t,e,i,s){this.height=t,this.width=e,this.plot=s,this.direction=i,this.startDirection=i,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(t,e){return Math.max(t/e,e/t)}}}addElement(t){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+t,0===this.direction?(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(t)}reset(){this.nW=0,this.lW=0,this.elArr=[],this.total=0}},K=function(t,e){let{animatableAttribs:i,onComplete:s,css:o,renderer:r}=e,l=t.series&&t.series.chart.hasRendered?void 0:t.series&&t.series.options.animation,n=t.graphic;if(e.attribs={...e.attribs,class:t.getClassName()},t.shouldDraw())n||(t.graphic=n="text"===e.shapeType?r.text():"image"===e.shapeType?r.image(e.imageUrl||"").attr(e.shapeArgs||{}):r[e.shapeType](e.shapeArgs||{}),n.add(e.group)),o&&n.css(o),n.attr(e.attribs).animate(i,!e.isNew&&l,s);else if(n){let e=()=>{t.graphic=n=n&&n.destroy(),"function"==typeof s&&s()};Object.keys(i).length?n.animate(i,void 0,()=>e()):e()}},{pie:{prototype:{pointClass:Y}},scatter:{prototype:{pointClass:Z}}}=k().seriesTypes;class X extends Z{constructor(){super(...arguments),this.groupedPointsAmount=0,this.shapeType="rect"}draw(t){K(this,t)}getClassName(){let t=this.series,e=t.options,i=super.getClassName();return this.node.level<=t.nodeMap[t.rootNode].level&&this.node.children.length?i+=" highcharts-above-level":this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||L(e.interactByLeaf,!e.allowTraversingTree)?this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||(i+=" highcharts-internal-node"):i+=" highcharts-internal-node-interactive",i}isValid(){return!!(this.id||b(this.value))}setState(t){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:+("hover"===t)})}shouldDraw(){return b(this.plotY)&&null!==this.y}}v(X.prototype,{setVisible:Y.prototype.setVisible});let q={allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{enabled:!0,formatter:function(){let t=this&&this.point?this.point:{};return m(t.name)?t.name:""},headers:!1,inside:!0,padding:2,verticalAlign:"middle",style:{textOverflow:"ellipsis"}},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>",clusterFormat:"+ {point.groupedPointsAmount} more...<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:.1*!k().seriesTypes.heatmap,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle",traverseToLeaf:!1,cluster:{className:void 0,color:void 0,enabled:!1,pixelWidth:void 0,pixelHeight:void 0,name:void 0,reductionFactor:void 0,minimumClusterSize:5,layoutAlgorithm:{distance:0,gridSize:0,kmeansThreshold:0},marker:{lineWidth:0,radius:0}}};(i||(i={})).recursive=function t(e,i,s){let o=i.call(s||this,e);!1!==o&&t(o,i,s)};let J=i,{parse:Q}=R(),{composed:tt,noop:te}=r(),{column:ti,scatter:ts}=k().seriesTypes,{getColor:to,getLevelOptions:tr,updateRootId:tl}={getColor:function(t,e){let i,s,o,r,l,n,a=e.index,h=e.mapOptionsToLevel,d=e.parentColor,p=e.parentColorIndex,u=e.series,c=e.colors,v=e.siblings,g=u.points,f=u.chart.options.chart;if(t){let b;i=g[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(r=i.index%(c?c.length:f.colorCount),o=c&&c[r]),u.chart.styledMode||(l=L(i&&i.options.color,s&&s.color,o,d&&((b=s&&s.colorVariation)&&"brightness"===b.key&&a&&v?R().parse(d).brighten(b.to*(a/v)).get():d),u.color)),n=L(i&&i.options.colorIndex,s&&s.colorIndex,r,p,e.colorIndex)}return{color:l,colorIndex:n}},getLevelOptions:function(t){let e,i,s,o,r,l,n={};if(x(t))for(o=b(t.from)?t.from:1,l=t.levels,i={},e=x(t.defaults)?t.defaults:{},y(l)&&(i=l.reduce((t,i)=>{let s,r,l;return x(i)&&b(i.level)&&(r=L((l=T({},i)).levelIsConstant,e.levelIsConstant),delete l.levelIsConstant,delete l.level,x(t[s=i.level+(r?0:o-1)])?T(!0,t[s],l):t[s]=l),t},{})),r=b(t.to)?t.to:1,s=0;s<=r;s++)n[s]=T({},e,x(i[s])?i[s]:{});return n},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:o=0,nodeWidth:r=0}=s,{plotSizeX:l=1}=i;if("auto"===r){if("string"==typeof o&&/%$/.test(o))return l/(e+parseFloat(o)/100*(e-1));let t=Number(o);return(l+t)/(e||1)-t}return/%$/.test(r)?l*parseFloat(r)/100+0:parseFloat(r)},setTreeValues:function t(e,i){let s=i.before,o=i.idRoot,r=i.mapIdToNode[o],l=!1!==i.levelIsConstant,n=i.points[e.i],a=n&&n.options||{},h=[],d=0;e.levelDynamic=e.level-(l?0:r.level),e.name=L(n&&n.name,""),e.visible=o===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEach((s,o)=>{let r=v({},i);v(r,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,r),h.push(s),s.visible&&(d+=s.val)});let p=L(a.value,d);return e.visible=p>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=p,e},updateRootId:function(t){let e,i;return x(t)&&(i=x(t.options)?t.options:{},e=L(t.rootNode,i.rootId,""),x(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}};$().keepProps.push("simulation","hadOutsideDataLabels");let tn=!1;function ta(){let t=this.xAxis,e=this.yAxis;if(t&&e)if(this.is("treemap")){let i={endOnTick:!1,startOnTick:!1,visible:!1};this.is("treegraph")||(i.min=0,i.max=100,i.tickPositions=[]),T(!0,t.options,i,t.userOptions),T(!0,e.options,i,e.userOptions),t.visible=t.options.visible,e.visible=e.options.visible,this.is("treegraph")&&(this.isCartesian=t.visible),tn=!0}else tn&&(e.setOptions(e.userOptions),t.setOptions(t.userOptions),tn=!1)}class th extends ts{constructor(){super(...arguments),this.simulation=0}static compose(t){P(tt,"TreemapSeries")&&p(t,"afterBindAxes",ta)}algorithmCalcPoints(t,e,i,s){let o=i.plot,r=i.elArr.length-1,l,n,a,h,d=i.lW,p=i.lH,u,c=0;for(let t of(e?(d=i.nW,p=i.nH):u=i.elArr[r],i.elArr)){if(e||c<r){var v;0===i.direction?(l=o.x,n=o.y,h=t/(a=d)):(l=o.x,n=o.y,a=t/(h=p)),s.push({x:l,y:n,width:a,height:(v=h)>1e14?v:parseFloat(v.toPrecision(14))}),0===i.direction?o.y=o.y+h:o.x=o.x+a}c+=1}i.reset(),0===i.direction?i.width=i.width-d:i.height=i.height-p,o.y=o.parent.y+(o.parent.height-i.height),o.x=o.parent.x+(o.parent.width-i.width),t&&(i.direction=1-i.direction),e||i.addElement(u)}algorithmFill(t,e,i){let s=[],o,r=e.direction,l=e.x,n=e.y,a=e.width,h=e.height,d,p,u,c;for(let v of i)o=e.width*e.height*(v.val/e.val),d=l,p=n,0===r?(a-=u=o/(c=h),l+=u):(h-=c=o/(u=a),n+=c),s.push({x:d,y:p,width:u,height:c,direction:0,val:0}),t&&(r=1-r);return s}algorithmLowAspectRatio(t,e,i){let s=[],o={x:e.x,y:e.y,parent:e},r=e.direction,l=i.length-1,n=new _(e.height,e.width,r,o),a,h=0;for(let r of i)a=e.width*e.height*(r.val/e.val),n.addElement(a),n.lP.nR>n.lP.lR&&this.algorithmCalcPoints(t,!1,n,s,o),h===l&&this.algorithmCalcPoints(t,!0,n,s,o),++h;return s}alignDataLabel(t,e,i){ti.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})}applyTreeGrouping(){let t=this,e=t.parentList||{},{cluster:i}=t.options,s=i?.minimumClusterSize||5;if(i?.enabled){let o={},r=t=>{if(t?.point?.shapeArgs){let{width:e=0,height:s=0}=t.point.shapeArgs,{pixelWidth:r=0,pixelHeight:l=0}=i,n=c(l),a=l?r*l:r*r;(e<r||s<(n?l:r)||e*s<a)&&!t.isGroup&&c(t.parent)&&(o[t.parent]||(o[t.parent]=[]),o[t.parent].push(t))}t?.children.forEach(t=>{r(t)})};for(let l in r(t.tree),o)o[l]&&o[l].length>s&&o[l].forEach(s=>{let o=e[l].indexOf(s.i);if(-1!==o){e[l].splice(o,1);let r=`highcharts-grouped-treemap-points-${s.parent||"root"}`,n=t.points.find(t=>t.id===r);if(!n){let s=t.pointClass,o=t.points.length;v(n=new s(t,{className:i.className,color:i.color,id:r,index:o,isGroup:!0,value:0}),{formatPrefix:"cluster"}),t.points.push(n),e[l].push(o),e[r]=[]}let a=n.groupedPointsAmount+1,h=t.points[n.index].options.value||0,d=i.name||`+ ${a}`;t.points[n.index].groupedPointsAmount=a,t.points[n.index].options.value=h+(s.point.value||0),t.points[n.index].name=d,e[r].push(s.point.index)}});t.nodeMap={},t.nodeList=[],t.parentList=e;let l=t.buildTree("",-1,0,t.parentList);t.translate(l)}}calculateChildrenAreas(t,e){let i=this.options,s=this.mapOptionsToLevel[t.level+1],o=L(s?.layoutAlgorithm&&this[s?.layoutAlgorithm]&&s.layoutAlgorithm,i.layoutAlgorithm),r=i.alternateStartingDirection,l=t.children.filter(e=>t.isGroup||!e.ignore),n=s?.groupPadding??i.groupPadding??0,a=this.nodeMap[this.rootNode];if(!o)return;let h=[],d=a.pointValues?.width||0,p=a.pointValues?.height||0;s?.layoutStartingDirection&&(e.direction=+("vertical"!==s.layoutStartingDirection)),h=this[o](e,l);let u=-1;for(let t of l){let i=h[++u];t===a&&(d=d||i.width,p=i.height);let s=n/(this.xAxis.len/p),o=n/(this.yAxis.len/p);if(t.values=T(i,{val:t.childrenTotal,direction:r?1-e.direction:e.direction}),t.children.length&&t.point.dataLabels?.length){let e=function(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}(t.point.dataLabels.map(t=>t.options?.headers&&t.height||0))/(this.yAxis.len/p);e<t.values.height/2&&(t.values.y+=e,t.values.height-=e)}if(n){let e=Math.min(s,t.values.width/4),i=Math.min(o,t.values.height/4);t.values.x+=e,t.values.width-=2*e,t.values.y+=i,t.values.height-=2*i}t.pointValues=T(i,{x:i.x/this.axisRatio,y:100-i.y-i.height,width:i.width/this.axisRatio}),t.children.length&&this.calculateChildrenAreas(t,t.values)}let c=(t,e=[],i=!0)=>(t.children.forEach(t=>{i&&t.isLeaf?e.push(t.point):i||t.isLeaf||e.push(t.point),t.children.length&&c(t,e,i)}),e);if("leaf"===i.nodeSizeBy&&t===a&&this.hasOutsideDataLabels&&!c(a,void 0,!1).some(t=>b(t.options.value))&&!b(a.point?.options.value)){let i=c(a),s=i.map(t=>t.options.value||0),o=i.map(({node:{pointValues:t}})=>t?t.width*t.height:0),r=s.reduce((t,e)=>t+e,0),l=o.reduce((t,e)=>t+e,0)/r,n=0,h=0;i.forEach((t,e)=>{var i;let r=(i=(s[e]?o[e]/s[e]:1)/l)>.8?i<1.4?i:1.4:.8,a=1-r;t.value&&(o[e]<20&&(a*=o[e]/20),a>h&&(h=a),a<n&&(n=a),t.simulatedValue=(t.simulatedValue||t.value)/r)}),(n<-.05||h>.05)&&this.simulation<10?(this.simulation++,this.setTreeValues(t),e.val=t.val,this.calculateChildrenAreas(t,e)):(i.forEach(t=>{delete t.simulatedValue}),this.setTreeValues(t),this.simulation=0)}}createList(t){let e=this.chart,i=e.breadcrumbs,s=[];if(i){let i=0;s.push({level:i,levelOptions:e.series[0]});let o=t.target.nodeMap[t.newRootId],r=[];for(;o.parent||""===o.parent;)r.push(o),o=t.target.nodeMap[o.parent];for(let t of r.reverse())s.push({level:++i,levelOptions:t});s.length<=1&&(s.length=0)}return s}drawDataLabels(){let t=this.mapOptionsToLevel,e=this.points.filter(function(t){return t.node.visible||c(t.dataLabel)}),i=A(this.options.dataLabels||{})[0]?.padding,s=e.some(t=>b(t.plotY));for(let o of e){let e={},r={style:e},l=t[o.node.level];if((!o.node.isLeaf&&!o.node.isGroup||o.node.isGroup&&o.node.level<=this.nodeMap[this.rootNode].level)&&(r.enabled=!1),l?.dataLabels&&(T(!0,r,A(l.dataLabels)[0]),this.hasDataLabels=()=>!0),o.node.isLeaf?r.inside=!0:r.headers&&(r.verticalAlign="top"),o.shapeArgs&&s){let{height:t=0,width:s=0}=o.shapeArgs;if(s>32&&t>16&&o.shouldDraw()){let l=s-2*(r.padding||i||0);e.width=`${l}px`,e.lineClamp??(e.lineClamp=Math.floor(t/16)),this.options.allowTraversingTree&&(e.visibility="inherit"),o.dataLabel?.attr({width:r.headers?l:void 0})}else e.width=`${s}px`,e.visibility="hidden"}o.dlOptions=T(r,o.options.dataLabels,{zIndex:void 0})}super.drawDataLabels(e)}drawPoints(t=this.points){let e=this.chart,i=e.renderer,s=e.styledMode,o=this.options,r=s?{}:o.shadow,l=o.borderRadius,n=e.pointCount<o.animationLimit,a=o.allowTraversingTree;for(let e of t){let t={},h={},d={},p="level-group-"+e.node.level,u=!!e.graphic,c=n&&u,g=e.shapeArgs;e.shouldDraw()&&(e.isInside=!0,l&&(h.r=l),T(!0,c?t:h,u?g:{},s?{}:this.pointAttribs(e,e.selected?"select":void 0)),this.colorAttribs&&s&&v(d,this.colorAttribs(e)),this[p]||(this[p]=i.g(p).attr({zIndex:-(e.node.level||0)}).add(this.group),this[p].survive=!0)),e.draw({animatableAttribs:t,attribs:h,css:d,group:this[p],imageUrl:e.imageUrl,renderer:i,shadow:r,shapeArgs:g,shapeType:e.shapeType}),a&&e.graphic&&(e.drillId=o.interactByLeaf?this.drillToByLeaf(e):this.drillToByGroup(e))}}drillToByGroup(t){return(!t.node.isLeaf||!!t.node.isGroup)&&t.id}drillToByLeaf(t){let{traverseToLeaf:e}=t.series.options,i=!1,s;if(t.node.parent!==this.rootNode&&t.node.isLeaf)if(e)i=t.id;else for(s=t.node;!i;)void 0!==s.parent&&(s=this.nodeMap[s.parent]),s.parent===this.rootNode&&(i=s.id);return i}drillToNode(t,e){(0,o.error)(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(t,e)}drillUp(){let t=this.nodeMap[this.rootNode];t&&m(t.parent)&&this.setRootNode(t.parent,!0,{trigger:"traverseUpButton"})}getExtremes(){let{dataMin:t,dataMax:e}=super.getExtremes(this.colorValueData);return this.valueMin=t,this.valueMax=e,super.getExtremes()}getListOfParents(t,e){let i=y(t)?t:[],s=y(e)?e:[],o=i.reduce(function(t,e,i){let s=L(e.parent,"");return void 0===t[s]&&(t[s]=[]),t[s].push(i),t},{"":[]});for(let t of Object.keys(o)){let e=o[t];if(""!==t&&-1===s.indexOf(t)){for(let t of e)o[""].push(t);delete o[t]}}return o}getTree(){let t=this.data.map(function(t){return t.id});return this.parentList=this.getListOfParents(this.data,t),this.nodeMap={},this.nodeList=[],this.buildTree("",-1,0,this.parentList||{})}buildTree(t,e,i,s,o){let r=[],l=this.points[e],n=0,a;for(let e of s[t]||[])n=Math.max((a=this.buildTree(this.points[e].id,e,i+1,s,t)).height+1,n),r.push(a),this.is("treegraph")&&(a.visible=!0);let h=new this.NodeClass().init(t,e,r,n,i,this,o);for(let t of r)t.parentNode=h;return this.nodeMap[h.id]=h,this.nodeList.push(h),l&&(l.node=h,h.point=l,c(l.options.x)||(l.x=i)),h}hasData(){return!!this.dataTable.rowCount}init(t,e){let i=this,s=T(e.drillUpButton,e.breadcrumbs),o=p(i,"setOptions",t=>{let e=t.userOptions;c(e.allowDrillToNode)&&!c(e.allowTraversingTree)&&(e.allowTraversingTree=e.allowDrillToNode,delete e.allowDrillToNode),c(e.drillUpButton)&&!c(e.traverseUpButton)&&(e.traverseUpButton=e.drillUpButton,delete e.drillUpButton);let i=A(e.dataLabels||{});e.levels?.forEach(t=>{i.push.apply(i,A(t.dataLabels||{}))}),this.hasOutsideDataLabels=i.some(t=>t.headers)});super.init(t,e),delete i.opacity,i.eventsToUnbind.push(o),i.options.allowTraversingTree&&(i.eventsToUnbind.push(p(i,"click",i.onClickDrillToNode)),i.eventsToUnbind.push(p(i,"setRootNode",function(t){let e=i.chart;e.breadcrumbs&&e.breadcrumbs.updateProperties(i.createList(t))})),i.eventsToUnbind.push(p(i,"update",function(t,e){let i=this.chart.breadcrumbs;i&&t.options.breadcrumbs&&i.update(t.options.breadcrumbs),this.hadOutsideDataLabels=this.hasOutsideDataLabels})),i.eventsToUnbind.push(p(i,"destroy",function(t){let e=this.chart;e.breadcrumbs&&!t.keepEventsForUpdate&&(e.breadcrumbs.destroy(),e.breadcrumbs=void 0)}))),t.breadcrumbs||(t.breadcrumbs=new M(t,s)),i.eventsToUnbind.push(p(t.breadcrumbs,"up",function(t){let e=this.level-t.newLevel;for(let t=0;t<e;t++)i.drillUp()}))}onClickDrillToNode(t){let e=t.point,i=e?.drillId;m(i)&&(e.setState(""),this.setRootNode(i,!0,{trigger:"click"}))}pointAttribs(t,e){let i=x(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},s=t&&i[t.node.level]||{},o=this.options,r=e&&o.states&&o.states[e]||{},l=t?.getClassName()||"",n={stroke:t&&t.borderColor||s.borderColor||r.borderColor||o.borderColor,"stroke-width":L(t&&t.borderWidth,s.borderWidth,r.borderWidth,o.borderWidth),dashstyle:t?.borderDashStyle||s.borderDashStyle||r.borderDashStyle||o.borderDashStyle,fill:t?.color||this.color};return -1!==l.indexOf("highcharts-above-level")?(n.fill="none",n["stroke-width"]=0):-1!==l.indexOf("highcharts-internal-node-interactive")?(n["fill-opacity"]=r.opacity??o.opacity??1,n.cursor="pointer"):-1!==l.indexOf("highcharts-internal-node")?n.fill="none":e&&r.brightness&&(n.fill=Q(n.fill).brighten(r.brightness).get()),n}setColorRecursive(t,e,i,s,o){let r=this?.chart,l=r?.options?.colors;if(t){let r=to(t,{colors:l,index:s,mapOptionsToLevel:this.mapOptionsToLevel,parentColor:e,parentColorIndex:i,series:this,siblings:o}),n=this.points[t.i];n&&(n.color=r.color,n.colorIndex=r.colorIndex);let a=-1;for(let e of t.children||[])this.setColorRecursive(e,r.color,r.colorIndex,++a,t.children.length)}}setPointValues(){let t=this,{points:e,xAxis:i,yAxis:s}=t,o=t.chart.styledMode,r=e=>o?0:t.pointAttribs(e)["stroke-width"]||0;for(let t of e){let{pointValues:e,visible:o}=t.node;if(e&&o){let{height:o,width:l,x:n,y:a}=e,h=r(t),d=i.toPixels(n,!0),p=i.toPixels(n+l,!0),c=s.toPixels(a,!0),v=s.toPixels(a+o,!0),g=0===d?h/2:u(i.toPixels(n,!0),h,!0),f=p===i.len?i.len-h/2:u(i.toPixels(n+l,!0),h,!0),b=c===s.len?s.len-h/2:u(s.toPixels(a,!0),h,!0),m=0===v?h/2:u(s.toPixels(a+o,!0),h,!0),y={x:Math.min(g,f),y:Math.min(b,m),width:Math.abs(f-g),height:Math.abs(m-b)};t.plotX=y.x+y.width/2,t.plotY=y.y+y.height/2,t.shapeArgs=y}else delete t.plotX,delete t.plotY}}setRootNode(t,e,i){g(this,"setRootNode",v({newRootId:t,previousRootId:this.rootNode,redraw:L(e,!0),series:this},i),function(t){let e=t.series;e.idPreviousRoot=t.previousRootId,e.rootNode=t.newRootId,e.isDirty=!0,t.redraw&&e.chart.redraw()})}setState(t){this.options.inactiveOtherPoints=!0,super.setState(t,!1),this.options.inactiveOtherPoints=!1}setTreeValues(t){let e=this.options,i=this.rootNode,s=this.nodeMap[i],o="boolean"!=typeof e.levelIsConstant||e.levelIsConstant,r=[],l=this.points[t.i],n=0;for(let e of t.children)e=this.setTreeValues(e),r.push(e),e.ignore||(n+=e.val);!function(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}(r,(t,e)=>(t.sortIndex||0)-(e.sortIndex||0));let a=L(l?.simulatedValue,l?.options.value,n);return l&&(l.value=a),l?.isGroup&&e.cluster?.reductionFactor&&(a/=e.cluster.reductionFactor),t.parentNode?.point?.isGroup&&this.rootNode!==t.parent&&(t.visible=!1),v(t,{children:r,childrenTotal:n,ignore:!(L(l?.visible,!0)&&a>0),isLeaf:t.visible&&!("treegraph"===this.type?r.length>0:n),isGroup:l?.isGroup,levelDynamic:t.level-(o?0:s.level),name:L(l?.name,""),sortIndex:L(l?.sortIndex,-a),val:a}),t}sliceAndDice(t,e){return this.algorithmFill(!0,t,e)}squarified(t,e){return this.algorithmLowAspectRatio(!0,t,e)}strip(t,e){return this.algorithmLowAspectRatio(!1,t,e)}stripes(t,e){return this.algorithmFill(!1,t,e)}translate(t){let e=this,i=e.options,s=!t,o=tl(e),r,l,n,a;t||o.startsWith("highcharts-grouped-treemap-points-")||((this.points||[]).forEach(t=>{t.isGroup&&t.destroy()}),super.translate(),t=e.getTree()),e.tree=t=t||e.tree,r=e.nodeMap[o],""===o||r||(e.setRootNode("",!1),o=e.rootNode,r=e.nodeMap[o]),r.point?.isGroup||(e.mapOptionsToLevel=tr({from:r.level+1,levels:i.levels,to:t.height,defaults:{levelIsConstant:e.options.levelIsConstant,colorByPoint:i.colorByPoint}})),J.recursive(e.nodeMap[e.rootNode],t=>{let i=t.parent,s=!1;return t.visible=!0,(i||""===i)&&(s=e.nodeMap[i]),s}),J.recursive(e.nodeMap[e.rootNode].children,t=>{let e=!1;for(let i of t)i.visible=!0,i.children.length&&(e=(e||[]).concat(i.children));return e}),e.setTreeValues(t),e.axisRatio=e.xAxis.len/e.yAxis.len,e.nodeMap[""].pointValues=l={x:0,y:0,width:100,height:100},e.nodeMap[""].values=n=T(l,{width:l.width*e.axisRatio,direction:+("vertical"!==i.layoutStartingDirection),val:t.val}),(this.hasOutsideDataLabels||this.hadOutsideDataLabels)&&this.drawDataLabels(),e.calculateChildrenAreas(t,n),e.colorAxis||i.colorByPoint||e.setColorRecursive(e.tree),i.allowTraversingTree&&r.pointValues&&(a=r.pointValues,e.xAxis.setExtremes(a.x,a.x+a.width,!1),e.yAxis.setExtremes(a.y,a.y+a.height,!1),e.xAxis.setScale(),e.yAxis.setScale()),e.setPointValues(),s&&e.applyTreeGrouping()}}th.defaultOptions=T(ts.defaultOptions,q),v(th.prototype,{buildKDTree:te,colorAttribs:j.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:te,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value","colorValue"],pointClass:X,NodeClass:class{constructor(){this.childrenTotal=0,this.visible=!1}init(t,e,i,s,o,r,l){return this.id=t,this.i=e,this.children=i,this.height=s,this.level=o,this.series=r,this.parent=l,this}},trackerGroups:["group","dataLabelsGroup"],utils:J}),j.compose(th),k().registerSeriesType("treemap",th);let td=r();td.Breadcrumbs=td.Breadcrumbs||M,td.Breadcrumbs.compose(td.Chart,td.defaultOptions),th.compose(td.Series);let tp=r();export{tp as default};
11
+ */import*as t from"../highcharts.js";var e,i,s={};s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let o=t.default;var r=s.n(o);let l={mainBreadcrumb:"Main"},n=t.default.Templating;var a=s.n(n);let{doc:h,win:d}=r();function p(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let l=o.hcEvents;r().Point&&t instanceof r().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!r().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),l[e]||(l[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return l[e].push(a),l[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,w(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}(t,e,i)}}function u(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function c(t){return null!=t}function v(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function g(t,e,i,s){if(i=i||{},h?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==r())){let s=h.createEvent("Events");s.initEvent(e,!0,!0),i=v(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||v(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}function f(t){return x(t)&&"number"==typeof t.nodeType}function b(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function m(t){return"string"==typeof t}function y(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function x(t,e){return!!t&&"object"==typeof t&&(!e||!y(t))}function T(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),w(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!x(i,!0)||(o=i?.constructor,x(i,!0)&&!f(i)&&o?.name&&"Object"!==o.name)||f(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let l=s.length;for(i=0;i<l;i++)o=r(o,s[i]);return o}function w(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function L(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function P(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function A(t){return y(t)?t:[t]}Array.prototype.find;let{format:B}=a(),{composed:O}=r();function C(){if(this.breadcrumbs){let t=this.resetZoomButton&&this.resetZoomButton.getBBox(),e=this.breadcrumbs.options;t&&"right"===e.position.align&&"plotBox"===e.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-t.width-e.buttonSpacing)}}function S(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function N(){let t=this.breadcrumbs;if(t&&!t.options.floating&&t.level){let e=t.options,i=e.buttonTheme,s=(i.height||0)+2*(i.padding||0)+e.buttonSpacing,o=e.position.verticalAlign;"bottom"===o?(this.marginBottom=(this.marginBottom||0)+s,t.yOffset=s):"middle"!==o?(this.plotTop+=s,t.yOffset=-s):t.yOffset=void 0}}function E(){this.breadcrumbs&&this.breadcrumbs.redraw()}function I(t){!0===t.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class M{static compose(t,e){P(O,"Breadcrumbs")&&(p(t,"destroy",S),p(t,"afterShowResetZoom",C),p(t,"getMargins",N),p(t,"redraw",E),p(t,"selection",I),v(e.lang,l))}constructor(t,e){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let i=T(t.options.drilldown&&t.options.drilldown.drillUpButton,M.defaultOptions,t.options.navigation&&t.options.navigation.breadcrumbs,e);this.chart=t,this.options=i||{}}updateProperties(t){this.setList(t),this.setLevel(),this.isDirty=!0}setList(t){this.list=t}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(t){let e=this.chart,i=this.options,s=e.options.lang,o=L(i.format,i.showFullPath?"{level.name}":"← {level.name}"),r=s&&L(s.drillUpText,s.mainBreadcrumb),l=i.formatter&&i.formatter(t)||B(o,{level:t.levelOptions},e)||"";return(m(l)&&!l.length||"← "===l)&&c(r)&&(l=i.showFullPath?r:"← "+r),l}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let t=this.chart,e=this.options;!this.group&&e&&(this.group=t.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:e.zIndex}).add()),e.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let t=this.chart,e=this.list,i=this.options.buttonSpacing;this.destroyListElements();let s=this.group?this.group.getBBox().width:i,o=e[e.length-2];!t.drillUpButton&&this.level>0?t.drillUpButton=this.renderButton(o,s,i):t.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(t){if(this.group){let e=this.options,i=e.buttonTheme,s=e.position,o="chart"===e.relativeTo||"spacingBox"===e.relativeTo?void 0:"plotBox",r=this.group.getBBox(),l=2*(i.padding||0)+e.buttonSpacing;s.width=r.width+l,s.height=r.height+l;let n=T(s);t&&(n.x+=t),this.options.rtl&&(n.x+=s.width),n.y=L(n.y,this.yOffset,0),this.group.align(n,!0,o)}}renderButton(t,e,i){let s=this,o=this.chart,r=s.options,l=T(r.buttonTheme,o.styledMode?void 0:{style:r.style});return o.renderer.button(s.getButtonText(t),e,i,function(e){let i,o=r.events&&r.events.click;o&&(i=o.call(s,e,t,s)),!1!==i&&(r.showFullPath?e.newLevel=t.level:e.newLevel=s.level-1,g(s,"up",e))},l).addClass("highcharts-breadcrumbs-button").add(s.group)}renderSeparator(t,e){let i=this.chart,s=this.options.separator,o=i.renderer.label(s.text,t,e,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return i.styledMode||o.css(s.style),o}update(t){T(!0,this.options,t),this.destroy(),this.isDirty=!0}updateSingleButton(){let t=this.chart,e=this.list[this.level-1];t.drillUpButton&&t.drillUpButton.attr({text:this.getButtonText(e)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(t){let e=this.elementList;w(e,(i,s)=>{(t||!e[s].updated)&&((i=e[s]).button&&i.button.destroy(),i.separator&&i.separator.destroy(),delete i.button,delete i.separator,delete e[s])}),t&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){w(this.elementList,t=>{t.updated=!1})}updateListElements(){let t=this.elementList,e=this.options.buttonSpacing,i=this.list,s=this.options.rtl,o=s?-1:1,r=function(t,e){return o*t.getBBox().width+o*e},l=function(t,e,i){t.translate(e-t.getBBox().width,i)},n=this.group?r(this.group,e):e,a,h;for(let d=0,p=i.length;d<p;++d){let u,c,v=d===p-1;t[(h=i[d]).level]?(u=(a=t[h.level]).button,a.separator||v?a.separator&&v&&(a.separator.destroy(),delete a.separator):(n+=o*e,a.separator=this.renderSeparator(n,e),s&&l(a.separator,n,e),n+=r(a.separator,e)),t[h.level].updated=!0):(u=this.renderButton(h,n,e),s&&l(u,n,e),n+=r(u,e),v||(c=this.renderSeparator(n,e),s&&l(c,n,e),n+=r(c,e)),t[h.level]={button:u,separator:c,updated:!0}),u&&u.setState(2*!!v)}}}M.defaultOptions={buttonSpacing:5,buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7};let D=t.default.Color;var R=s.n(D);let G=t.default.SeriesRegistry;var k=s.n(G);let U=t.default.SVGElement;var V=s.n(U);let{column:{prototype:W}}=k().seriesTypes;var F=e||(e={});function H(t){let e=this.series,i=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(V())(i,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),t?.state==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:`${i.url}#${this.id}`,visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}F.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},F.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){let e={};return c(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:W.pointAttribs},F.compose=function(t){return p(t.prototype.pointClass,"afterSetState",H),t};let j=e,z=t.default.Series;var $=s.n(z);let _=class{constructor(t,e,i,s){this.height=t,this.width=e,this.plot=s,this.direction=i,this.startDirection=i,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(t,e){return Math.max(t/e,e/t)}}}addElement(t){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+t,0===this.direction?(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(t)}reset(){this.nW=0,this.lW=0,this.elArr=[],this.total=0}},K=function(t,e){let{animatableAttribs:i,onComplete:s,css:o,renderer:r}=e,l=t.series&&t.series.chart.hasRendered?void 0:t.series&&t.series.options.animation,n=t.graphic;if(e.attribs={...e.attribs,class:t.getClassName()},t.shouldDraw())n||(t.graphic=n="text"===e.shapeType?r.text():"image"===e.shapeType?r.image(e.imageUrl||"").attr(e.shapeArgs||{}):r[e.shapeType](e.shapeArgs||{}),n.add(e.group)),o&&n.css(o),n.attr(e.attribs).animate(i,!e.isNew&&l,s);else if(n){let e=()=>{t.graphic=n=n&&n.destroy(),"function"==typeof s&&s()};Object.keys(i).length?n.animate(i,void 0,()=>e()):e()}},{pie:{prototype:{pointClass:Y}},scatter:{prototype:{pointClass:Z}}}=k().seriesTypes;class X extends Z{constructor(){super(...arguments),this.groupedPointsAmount=0,this.shapeType="rect"}draw(t){K(this,t)}getClassName(){let t=this.series,e=t.options,i=super.getClassName();return this.node.level<=t.nodeMap[t.rootNode].level&&this.node.children.length?i+=" highcharts-above-level":this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||L(e.interactByLeaf,!e.allowTraversingTree)?this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||(i+=" highcharts-internal-node"):i+=" highcharts-internal-node-interactive",i}isValid(){return!!(this.id||b(this.value))}setState(t){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:+("hover"===t)})}shouldDraw(){return b(this.plotY)&&null!==this.y}}v(X.prototype,{setVisible:Y.prototype.setVisible});let q={allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{enabled:!0,formatter:function(){let t=this&&this.point?this.point:{};return m(t.name)?t.name:""},headers:!1,inside:!0,padding:2,verticalAlign:"middle",style:{textOverflow:"ellipsis"}},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>",clusterFormat:"+ {point.groupedPointsAmount} more...<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:.1*!k().seriesTypes.heatmap,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle",traverseToLeaf:!1,cluster:{className:void 0,color:void 0,enabled:!1,pixelWidth:void 0,pixelHeight:void 0,name:void 0,reductionFactor:void 0,minimumClusterSize:5,layoutAlgorithm:{distance:0,gridSize:0,kmeansThreshold:0},marker:{lineWidth:0,radius:0}}};(i||(i={})).recursive=function t(e,i,s){let o=i.call(s||this,e);!1!==o&&t(o,i,s)};let J=i,{parse:Q}=R(),{composed:tt,noop:te}=r(),{column:ti,scatter:ts}=k().seriesTypes,{getColor:to,getLevelOptions:tr,updateRootId:tl}={getColor:function(t,e){let i,s,o,r,l,n,a=e.index,h=e.mapOptionsToLevel,d=e.parentColor,p=e.parentColorIndex,u=e.series,c=e.colors,v=e.siblings,g=u.points,f=u.chart.options.chart;if(t){let b;i=g[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(r=i.index%(c?c.length:f.colorCount),o=c&&c[r]),u.chart.styledMode||(l=L(i&&i.options.color,s&&s.color,o,d&&((b=s&&s.colorVariation)&&"brightness"===b.key&&a&&v?R().parse(d).brighten(b.to*(a/v)).get():d),u.color)),n=L(i&&i.options.colorIndex,s&&s.colorIndex,r,p,e.colorIndex)}return{color:l,colorIndex:n}},getLevelOptions:function(t){let e,i,s,o,r,l,n={};if(x(t))for(o=b(t.from)?t.from:1,l=t.levels,i={},e=x(t.defaults)?t.defaults:{},y(l)&&(i=l.reduce((t,i)=>{let s,r,l;return x(i)&&b(i.level)&&(r=L((l=T({},i)).levelIsConstant,e.levelIsConstant),delete l.levelIsConstant,delete l.level,x(t[s=i.level+(r?0:o-1)])?T(!0,t[s],l):t[s]=l),t},{})),r=b(t.to)?t.to:1,s=0;s<=r;s++)n[s]=T({},e,x(i[s])?i[s]:{});return n},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:o=0,nodeWidth:r=0}=s,{plotSizeX:l=1}=i;if("auto"===r){if("string"==typeof o&&/%$/.test(o))return l/(e+parseFloat(o)/100*(e-1));let t=Number(o);return(l+t)/(e||1)-t}return/%$/.test(r)?l*parseFloat(r)/100+0:parseFloat(r)},setTreeValues:function t(e,i){let s=i.before,o=i.idRoot,r=i.mapIdToNode[o],l=!1!==i.levelIsConstant,n=i.points[e.i],a=n&&n.options||{},h=[],d=0;e.levelDynamic=e.level-(l?0:r.level),e.name=L(n&&n.name,""),e.visible=o===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEach((s,o)=>{let r=v({},i);v(r,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,r),h.push(s),s.visible&&(d+=s.val)});let p=L(a.value,d);return e.visible=p>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=p,e},updateRootId:function(t){let e,i;return x(t)&&(i=x(t.options)?t.options:{},e=L(t.rootNode,i.rootId,""),x(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}};$().keepProps.push("simulation","hadOutsideDataLabels");let tn=!1;function ta(){let t=this.xAxis,e=this.yAxis;if(t&&e)if(this.is("treemap")){let i={endOnTick:!1,startOnTick:!1,visible:!1};this.is("treegraph")||(i.min=0,i.max=100,i.tickPositions=[]),T(!0,t.options,i,t.userOptions),T(!0,e.options,i,e.userOptions),t.visible=t.options.visible,e.visible=e.options.visible,this.is("treegraph")&&(this.isCartesian=t.visible),tn=!0}else tn&&(e.setOptions(e.userOptions),t.setOptions(t.userOptions),tn=!1)}class th extends ts{constructor(){super(...arguments),this.simulation=0}static compose(t){P(tt,"TreemapSeries")&&p(t,"afterBindAxes",ta)}algorithmCalcPoints(t,e,i,s){let o=i.plot,r=i.elArr.length-1,l,n,a,h,d=i.lW,p=i.lH,u,c=0;for(let t of(e?(d=i.nW,p=i.nH):u=i.elArr[r],i.elArr)){if(e||c<r){var v;0===i.direction?(l=o.x,n=o.y,h=t/(a=d)):(l=o.x,n=o.y,a=t/(h=p)),s.push({x:l,y:n,width:a,height:(v=h)>1e14?v:parseFloat(v.toPrecision(14))}),0===i.direction?o.y=o.y+h:o.x=o.x+a}c+=1}i.reset(),0===i.direction?i.width=i.width-d:i.height=i.height-p,o.y=o.parent.y+(o.parent.height-i.height),o.x=o.parent.x+(o.parent.width-i.width),t&&(i.direction=1-i.direction),e||i.addElement(u)}algorithmFill(t,e,i){let s=[],o,r=e.direction,l=e.x,n=e.y,a=e.width,h=e.height,d,p,u,c;for(let v of i)o=e.width*e.height*(v.val/e.val),d=l,p=n,0===r?(a-=u=o/(c=h),l+=u):(h-=c=o/(u=a),n+=c),s.push({x:d,y:p,width:u,height:c,direction:0,val:0}),t&&(r=1-r);return s}algorithmLowAspectRatio(t,e,i){let s=[],o={x:e.x,y:e.y,parent:e},r=e.direction,l=i.length-1,n=new _(e.height,e.width,r,o),a,h=0;for(let r of i)a=e.width*e.height*(r.val/e.val),n.addElement(a),n.lP.nR>n.lP.lR&&this.algorithmCalcPoints(t,!1,n,s,o),h===l&&this.algorithmCalcPoints(t,!0,n,s,o),++h;return s}alignDataLabel(t,e,i){ti.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})}applyTreeGrouping(){let t=this,e=t.parentList||{},{cluster:i}=t.options,s=i?.minimumClusterSize||5;if(i?.enabled){let o={},r=t=>{if(t?.point?.shapeArgs){let{width:e=0,height:s=0}=t.point.shapeArgs,{pixelWidth:r=0,pixelHeight:l=0}=i,n=c(l),a=l?r*l:r*r;(e<r||s<(n?l:r)||e*s<a)&&!t.isGroup&&c(t.parent)&&(o[t.parent]||(o[t.parent]=[]),o[t.parent].push(t))}t?.children.forEach(t=>{r(t)})};for(let l in r(t.tree),o)o[l]&&o[l].length>s&&o[l].forEach(s=>{let o=e[l].indexOf(s.i);if(-1!==o){e[l].splice(o,1);let r=`highcharts-grouped-treemap-points-${s.parent||"root"}`,n=t.points.find(t=>t.id===r);if(!n){let s=t.pointClass,o=t.points.length;v(n=new s(t,{className:i.className,color:i.color,id:r,index:o,isGroup:!0,value:0}),{formatPrefix:"cluster"}),t.points.push(n),e[l].push(o),e[r]=[]}let a=n.groupedPointsAmount+1,h=t.points[n.index].options.value||0,d=i.name||`+ ${a}`;t.points[n.index].groupedPointsAmount=a,t.points[n.index].options.value=h+(s.point.value||0),t.points[n.index].name=d,e[r].push(s.point.index)}});t.nodeMap={},t.nodeList=[],t.parentList=e;let l=t.buildTree("",-1,0,t.parentList);t.translate(l)}}calculateChildrenAreas(t,e){let i=this.options,s=this.mapOptionsToLevel[t.level+1],o=L(s?.layoutAlgorithm&&this[s?.layoutAlgorithm]&&s.layoutAlgorithm,i.layoutAlgorithm),r=i.alternateStartingDirection,l=t.children.filter(e=>t.isGroup||!e.ignore),n=s?.groupPadding??i.groupPadding??0,a=this.nodeMap[this.rootNode];if(!o)return;let h=[],d=a.pointValues?.width||0,p=a.pointValues?.height||0;s?.layoutStartingDirection&&(e.direction=+("vertical"!==s.layoutStartingDirection)),h=this[o](e,l);let u=-1;for(let t of l){let i=h[++u];t===a&&(d=d||i.width,p=i.height);let s=n/(this.xAxis.len/p),o=n/(this.yAxis.len/p);if(t.values=T(i,{val:t.childrenTotal,direction:r?1-e.direction:e.direction}),t.children.length&&t.point.dataLabels?.length){let e=function(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}(t.point.dataLabels.map(t=>t.options?.headers&&t.height||0))/(this.yAxis.len/p);e<t.values.height/2&&(t.values.y+=e,t.values.height-=e)}if(n){let e=Math.min(s,t.values.width/4),i=Math.min(o,t.values.height/4);t.values.x+=e,t.values.width-=2*e,t.values.y+=i,t.values.height-=2*i}t.pointValues=T(i,{x:i.x/this.axisRatio,y:100-i.y-i.height,width:i.width/this.axisRatio}),t.children.length&&this.calculateChildrenAreas(t,t.values)}let c=(t,e=[],i=!0)=>(t.children.forEach(t=>{i&&t.isLeaf?e.push(t.point):i||t.isLeaf||e.push(t.point),t.children.length&&c(t,e,i)}),e);if("leaf"===i.nodeSizeBy&&t===a&&this.hasOutsideDataLabels&&!c(a,void 0,!1).some(t=>b(t.options.value))&&!b(a.point?.options.value)){let i=c(a),s=i.map(t=>t.options.value||0),o=i.map(({node:{pointValues:t}})=>t?t.width*t.height:0),r=s.reduce((t,e)=>t+e,0),l=o.reduce((t,e)=>t+e,0)/r,n=0,h=0;i.forEach((t,e)=>{var i;let r=(i=(s[e]?o[e]/s[e]:1)/l)>.8?i<1.4?i:1.4:.8,a=1-r;t.value&&(o[e]<20&&(a*=o[e]/20),a>h&&(h=a),a<n&&(n=a),t.simulatedValue=(t.simulatedValue||t.value)/r)}),(n<-.05||h>.05)&&this.simulation<10?(this.simulation++,this.setTreeValues(t),e.val=t.val,this.calculateChildrenAreas(t,e)):(i.forEach(t=>{delete t.simulatedValue}),this.setTreeValues(t),this.simulation=0)}}createList(t){let e=this.chart,i=e.breadcrumbs,s=[];if(i){let i=0;s.push({level:i,levelOptions:e.series[0]});let o=t.target.nodeMap[t.newRootId],r=[];for(;o.parent||""===o.parent;)r.push(o),o=t.target.nodeMap[o.parent];for(let t of r.reverse())s.push({level:++i,levelOptions:t});s.length<=1&&(s.length=0)}return s}drawDataLabels(){let t=this.mapOptionsToLevel,e=this.points.filter(function(t){return t.node.visible||c(t.dataLabel)}),i=A(this.options.dataLabels||{})[0]?.padding,s=e.some(t=>b(t.plotY));for(let o of e){let e={},r={style:e},l=t[o.node.level];if((!o.node.isLeaf&&!o.node.isGroup||o.node.isGroup&&o.node.level<=this.nodeMap[this.rootNode].level)&&(r.enabled=!1),l?.dataLabels&&(T(!0,r,A(l.dataLabels)[0]),this.hasDataLabels=()=>!0),o.node.isLeaf?r.inside=!0:r.headers&&(r.verticalAlign="top"),o.shapeArgs&&s){let{height:t=0,width:s=0}=o.shapeArgs;if(s>32&&t>16&&o.shouldDraw()){let l=s-2*(r.padding||i||0);e.width=`${l}px`,e.lineClamp??(e.lineClamp=Math.floor(t/16)),this.options.allowTraversingTree&&(e.visibility="inherit"),o.dataLabel?.attr({width:r.headers?l:void 0})}else e.width=`${s}px`,e.visibility="hidden"}o.dlOptions=T(r,o.options.dataLabels,{zIndex:void 0})}super.drawDataLabels(e)}drawPoints(t=this.points){let e=this.chart,i=e.renderer,s=e.styledMode,o=this.options,r=s?{}:o.shadow,l=o.borderRadius,n=e.pointCount<o.animationLimit,a=o.allowTraversingTree;for(let e of t){let t={},h={},d={},p="level-group-"+e.node.level,u=!!e.graphic,c=n&&u,g=e.shapeArgs;e.shouldDraw()&&(e.isInside=!0,l&&(h.r=l),T(!0,c?t:h,u?g:{},s?{}:this.pointAttribs(e,e.selected?"select":void 0)),this.colorAttribs&&s&&v(d,this.colorAttribs(e)),this[p]||(this[p]=i.g(p).attr({zIndex:-(e.node.level||0)}).add(this.group),this[p].survive=!0)),e.draw({animatableAttribs:t,attribs:h,css:d,group:this[p],imageUrl:e.imageUrl,renderer:i,shadow:r,shapeArgs:g,shapeType:e.shapeType}),a&&e.graphic&&(e.drillId=o.interactByLeaf?this.drillToByLeaf(e):this.drillToByGroup(e))}}drillToByGroup(t){return(!t.node.isLeaf||!!t.node.isGroup)&&t.id}drillToByLeaf(t){let{traverseToLeaf:e}=t.series.options,i=!1,s;if(t.node.parent!==this.rootNode&&t.node.isLeaf)if(e)i=t.id;else for(s=t.node;!i;)void 0!==s.parent&&(s=this.nodeMap[s.parent]),s.parent===this.rootNode&&(i=s.id);return i}drillToNode(t,e){(0,o.error)(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(t,e)}drillUp(){let t=this.nodeMap[this.rootNode];t&&m(t.parent)&&this.setRootNode(t.parent,!0,{trigger:"traverseUpButton"})}getExtremes(){let{dataMin:t,dataMax:e}=super.getExtremes(this.colorValueData);return this.valueMin=t,this.valueMax=e,super.getExtremes()}getListOfParents(t,e){let i=y(t)?t:[],s=y(e)?e:[],o=i.reduce(function(t,e,i){let s=L(e.parent,"");return void 0===t[s]&&(t[s]=[]),t[s].push(i),t},{"":[]});for(let t of Object.keys(o)){let e=o[t];if(""!==t&&-1===s.indexOf(t)){for(let t of e)o[""].push(t);delete o[t]}}return o}getTree(){let t=this.data.map(function(t){return t.id});return this.parentList=this.getListOfParents(this.data,t),this.nodeMap={},this.nodeList=[],this.buildTree("",-1,0,this.parentList||{})}buildTree(t,e,i,s,o){let r=[],l=this.points[e],n=0,a;for(let e of s[t]||[])n=Math.max((a=this.buildTree(this.points[e].id,e,i+1,s,t)).height+1,n),r.push(a),this.is("treegraph")&&(a.visible=!0);let h=new this.NodeClass().init(t,e,r,n,i,this,o);for(let t of r)t.parentNode=h;return this.nodeMap[h.id]=h,this.nodeList.push(h),l&&(l.node=h,h.point=l,c(l.options.x)||(l.x=i)),h}hasData(){return!!this.dataTable.rowCount}init(t,e){let i=this,s=T(e.drillUpButton,e.breadcrumbs),o=p(i,"setOptions",t=>{let e=t.userOptions;c(e.allowDrillToNode)&&!c(e.allowTraversingTree)&&(e.allowTraversingTree=e.allowDrillToNode,delete e.allowDrillToNode),c(e.drillUpButton)&&!c(e.traverseUpButton)&&(e.traverseUpButton=e.drillUpButton,delete e.drillUpButton);let i=A(e.dataLabels||{});e.levels?.forEach(t=>{i.push.apply(i,A(t.dataLabels||{}))}),this.hasOutsideDataLabels=i.some(t=>t.headers)});super.init(t,e),delete i.opacity,i.eventsToUnbind.push(o),i.options.allowTraversingTree&&(i.eventsToUnbind.push(p(i,"click",i.onClickDrillToNode)),i.eventsToUnbind.push(p(i,"setRootNode",function(t){let e=i.chart;e.breadcrumbs&&e.breadcrumbs.updateProperties(i.createList(t))})),i.eventsToUnbind.push(p(i,"update",function(t,e){let i=this.chart.breadcrumbs;i&&t.options.breadcrumbs&&i.update(t.options.breadcrumbs),this.hadOutsideDataLabels=this.hasOutsideDataLabels})),i.eventsToUnbind.push(p(i,"destroy",function(t){let e=this.chart;e.breadcrumbs&&!t.keepEventsForUpdate&&(e.breadcrumbs.destroy(),e.breadcrumbs=void 0)}))),t.breadcrumbs||(t.breadcrumbs=new M(t,s)),i.eventsToUnbind.push(p(t.breadcrumbs,"up",function(t){let e=this.level-t.newLevel;for(let t=0;t<e;t++)i.drillUp()}))}onClickDrillToNode(t){let e=t.point,i=e?.drillId;m(i)&&(e.setState(""),this.setRootNode(i,!0,{trigger:"click"}))}pointAttribs(t,e){let i=x(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},s=t&&i[t.node.level]||{},o=this.options,r=e&&o.states&&o.states[e]||{},l=t?.getClassName()||"",n={stroke:t&&t.borderColor||s.borderColor||r.borderColor||o.borderColor,"stroke-width":L(t&&t.borderWidth,s.borderWidth,r.borderWidth,o.borderWidth),dashstyle:t?.borderDashStyle||s.borderDashStyle||r.borderDashStyle||o.borderDashStyle,fill:t?.color||this.color};return -1!==l.indexOf("highcharts-above-level")?(n.fill="none",n["stroke-width"]=0):-1!==l.indexOf("highcharts-internal-node-interactive")?(n["fill-opacity"]=r.opacity??o.opacity??1,n.cursor="pointer"):-1!==l.indexOf("highcharts-internal-node")?n.fill="none":e&&r.brightness&&(n.fill=Q(n.fill).brighten(r.brightness).get()),n}setColorRecursive(t,e,i,s,o){let r=this?.chart,l=r?.options?.colors;if(t){let r=to(t,{colors:l,index:s,mapOptionsToLevel:this.mapOptionsToLevel,parentColor:e,parentColorIndex:i,series:this,siblings:o}),n=this.points[t.i];n&&(n.color=r.color,n.colorIndex=r.colorIndex);let a=-1;for(let e of t.children||[])this.setColorRecursive(e,r.color,r.colorIndex,++a,t.children.length)}}setPointValues(){let t=this,{points:e,xAxis:i,yAxis:s}=t,o=t.chart.styledMode,r=e=>o?0:t.pointAttribs(e)["stroke-width"]||0;for(let t of e){let{pointValues:e,visible:o}=t.node;if(e&&o){let{height:o,width:l,x:n,y:a}=e,h=r(t),d=i.toPixels(n,!0),p=i.toPixels(n+l,!0),c=s.toPixels(a,!0),v=s.toPixels(a+o,!0),g=0===d?h/2:u(i.toPixels(n,!0),h,!0),f=p===i.len?i.len-h/2:u(i.toPixels(n+l,!0),h,!0),b=c===s.len?s.len-h/2:u(s.toPixels(a,!0),h,!0),m=0===v?h/2:u(s.toPixels(a+o,!0),h,!0),y={x:Math.min(g,f),y:Math.min(b,m),width:Math.abs(f-g),height:Math.abs(m-b)};t.plotX=y.x+y.width/2,t.plotY=y.y+y.height/2,t.shapeArgs=y}else delete t.plotX,delete t.plotY}}setRootNode(t,e,i){g(this,"setRootNode",v({newRootId:t,previousRootId:this.rootNode,redraw:L(e,!0),series:this},i),function(t){let e=t.series;e.idPreviousRoot=t.previousRootId,e.rootNode=t.newRootId,e.isDirty=!0,t.redraw&&e.chart.redraw()})}setState(t){this.options.inactiveOtherPoints=!0,super.setState(t,!1),this.options.inactiveOtherPoints=!1}setTreeValues(t){let e=this.options,i=this.rootNode,s=this.nodeMap[i],o="boolean"!=typeof e.levelIsConstant||e.levelIsConstant,r=[],l=this.points[t.i],n=0;for(let e of t.children)e=this.setTreeValues(e),r.push(e),e.ignore||(n+=e.val);!function(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}(r,(t,e)=>(t.sortIndex||0)-(e.sortIndex||0));let a=L(l?.simulatedValue,l?.options.value,n);return l&&(l.value=a),l?.isGroup&&e.cluster?.reductionFactor&&(a/=e.cluster.reductionFactor),t.parentNode?.point?.isGroup&&this.rootNode!==t.parent&&(t.visible=!1),v(t,{children:r,childrenTotal:n,ignore:!(L(l?.visible,!0)&&a>0),isLeaf:t.visible&&!("treegraph"===this.type?r.length>0:n),isGroup:l?.isGroup,levelDynamic:t.level-(o?0:s.level),name:L(l?.name,""),sortIndex:L(l?.sortIndex,-a),val:a}),t}sliceAndDice(t,e){return this.algorithmFill(!0,t,e)}squarified(t,e){return this.algorithmLowAspectRatio(!0,t,e)}strip(t,e){return this.algorithmLowAspectRatio(!1,t,e)}stripes(t,e){return this.algorithmFill(!1,t,e)}translate(t){let e=this,i=e.options,s=!t,o=tl(e),r,l,n,a;t||o.startsWith("highcharts-grouped-treemap-points-")||((this.points||[]).forEach(t=>{t.isGroup&&t.destroy()}),super.translate(),t=e.getTree()),e.tree=t=t||e.tree,r=e.nodeMap[o],""===o||r||(e.setRootNode("",!1),o=e.rootNode,r=e.nodeMap[o]),r.point?.isGroup||(e.mapOptionsToLevel=tr({from:r.level+1,levels:i.levels,to:t.height,defaults:{levelIsConstant:e.options.levelIsConstant,colorByPoint:i.colorByPoint}})),J.recursive(e.nodeMap[e.rootNode],t=>{let i=t.parent,s=!1;return t.visible=!0,(i||""===i)&&(s=e.nodeMap[i]),s}),J.recursive(e.nodeMap[e.rootNode].children,t=>{let e=!1;for(let i of t)i.visible=!0,i.children.length&&(e=(e||[]).concat(i.children));return e}),e.setTreeValues(t),e.axisRatio=e.xAxis.len/e.yAxis.len,e.nodeMap[""].pointValues=l={x:0,y:0,width:100,height:100},e.nodeMap[""].values=n=T(l,{width:l.width*e.axisRatio,direction:+("vertical"!==i.layoutStartingDirection),val:t.val}),(this.hasOutsideDataLabels||this.hadOutsideDataLabels)&&this.drawDataLabels(),e.calculateChildrenAreas(t,n),e.colorAxis||i.colorByPoint||e.setColorRecursive(e.tree),i.allowTraversingTree&&r.pointValues&&(a=r.pointValues,e.xAxis.setExtremes(a.x,a.x+a.width,!1),e.yAxis.setExtremes(a.y,a.y+a.height,!1),e.xAxis.setScale(),e.yAxis.setScale()),e.setPointValues(),s&&e.applyTreeGrouping()}}th.defaultOptions=T(ts.defaultOptions,q),v(th.prototype,{buildKDTree:te,colorAttribs:j.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:te,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value","colorValue"],pointClass:X,NodeClass:class{constructor(){this.childrenTotal=0,this.visible=!1}init(t,e,i,s,o,r,l){return this.id=t,this.i=e,this.children=i,this.height=s,this.level=o,this.series=r,this.parent=l,this}},trackerGroups:["group","dataLabelsGroup"],utils:J}),j.compose(th),k().registerSeriesType("treemap",th);let td=r();td.Breadcrumbs=td.Breadcrumbs||M,td.Breadcrumbs.compose(td.Chart,td.defaultOptions),th.compose(td.Series);let tp=r();export{tp as default};
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highcharts JS v12.6.0 (2026-04-13)
3
+ * @license Highcharts JS v12.6.2 (2026-09-21)
4
4
  * @module highcharts/modules/treemap
5
5
  * @requires highcharts
6
6
  *
@@ -289,7 +289,7 @@ const options = {
289
289
  * `.highcharts-breadcrumbs-buttons .highcharts-button` rule with its
290
290
  * different states.
291
291
  *
292
- * @type {Highcharts.SVGAttributes}
292
+ * @type {Highcharts.CSSObject}
293
293
  * @since 10.0.0
294
294
  */
295
295
  style: {},
@@ -2011,7 +2011,12 @@ class Breadcrumbs {
2011
2011
  * Returns the SVG button
2012
2012
  */
2013
2013
  renderButton(breadcrumb, posX, posY) {
2014
- const breadcrumbs = this, chart = this.chart, breadcrumbsOptions = breadcrumbs.options, buttonTheme = merge(breadcrumbsOptions.buttonTheme);
2014
+ const breadcrumbs = this, chart = this.chart, breadcrumbsOptions = breadcrumbs.options,
2015
+ // The `style` option is CSS for the button text, so it belongs in
2016
+ // the theme's `style` rather than being applied afterwards. A
2017
+ // later `setState` re-applies the normal state style, which would
2018
+ // otherwise wipe it (#25357).
2019
+ buttonTheme = merge(breadcrumbsOptions.buttonTheme, chart.styledMode ? void 0 : { style: breadcrumbsOptions.style });
2015
2020
  const button = chart.renderer
2016
2021
  .button(breadcrumbs.getButtonText(breadcrumb), posX, posY, function (e /* @todo (Event|any) */) {
2017
2022
  // Extract events from button object and call
@@ -2040,9 +2045,6 @@ class Breadcrumbs {
2040
2045
  }, buttonTheme)
2041
2046
  .addClass('highcharts-breadcrumbs-button')
2042
2047
  .add(breadcrumbs.group);
2043
- if (!chart.styledMode) {
2044
- button.attr(breadcrumbsOptions.style);
2045
- }
2046
2048
  return button;
2047
2049
  }
2048
2050
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v12.6.0 (2026-04-13)
2
+ * Highcharts JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/variable-pie
4
4
  * @requires highcharts
5
5
  *
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highcharts JS v12.6.0 (2026-04-13)
3
+ * @license Highcharts JS v12.6.2 (2026-09-21)
4
4
  * @module highcharts/modules/variable-pie
5
5
  * @requires highcharts
6
6
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v12.6.0 (2026-04-13)
2
+ * Highcharts JS v12.6.2 (2026-09-21)
3
3
  * @module highcharts/modules/variwide
4
4
  * @requires highcharts
5
5
  *