vue-data-ui 3.26.5 → 3.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/{Arrow-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
  3. package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
  4. package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
  5. package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
  6. package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
  7. package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
  8. package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
  9. package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
  11. package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
  12. package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
  13. package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
  14. package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
  15. package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
  16. package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
  17. package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
  18. package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
  91. package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
  92. package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
  93. package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
  94. package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
  95. package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
  96. package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
  97. package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.js} +10 -10
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +212 -59
  103. package/dist/types/vue-ui-stackbar.d.ts +10 -0
  104. package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
  105. package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
  106. package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
  107. package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
  108. package/dist/utils.js +10 -10
  109. package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
  110. package/dist/vue-data-ui.js +75 -75
  111. package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
  112. package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
  113. package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
  114. package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
  115. package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
  116. package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
  117. package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
  118. package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
  119. package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
  120. package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
  121. package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
  122. package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
  123. package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
  124. package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
  125. package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
  126. package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
  127. package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
  128. package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
  129. package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
  130. package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
  131. package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
  132. package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
  133. package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
  134. package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
  135. package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
  136. package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
  137. package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
  138. package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
  139. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
  140. package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
  141. package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
  142. package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
  143. package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
  144. package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
  145. package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
  146. package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
  147. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
  148. package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
  149. package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
  150. package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
  151. package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
  152. package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
  153. package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
  154. package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
  155. package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
  156. package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
  157. package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
  158. package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
  159. package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
  160. package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
  161. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
  162. package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
  163. package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
  164. package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
  165. package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
  166. package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
  167. package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
  168. package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
  169. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
  170. package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
  171. package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
  172. package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
  173. package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
  174. package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
  175. package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
  176. package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
  177. package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
  178. package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
  179. package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
  180. package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
  181. package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
  182. package/package.json +1 -1
  183. package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
  184. package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
  185. package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
  186. package/dist/vue-ui-gauge-Copa7G58.js +0 -934
  187. package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
  188. package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
  189. package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
  190. package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
  191. package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
  192. package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
  193. package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
  194. package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
  195. package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
  196. package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
  197. package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
  198. package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
  199. package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
  200. package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
@@ -1,107 +1,107 @@
1
- import { $ as e, $t as t, A as n, Ct as r, G as i, I as a, J as o, Jt as s, Kt as c, L as l, N as u, P as d, S as f, U as p, V as m, Vt as h, W as g, X as _, _ as v, c as y, ht as b, i as x, k as S, l as C, o as ee, ot as te, qt as w, t as T, tn as E, v as D } from "./lib-TWIH5fGr.js";
2
- import { t as O } from "./useTimeLabels-d2f-W1L4.js";
3
- import { t as ne } from "./useConfig-DObkR9Aa.js";
4
- import { t as re } from "./vue_ui_xy-CcJADijP.js";
5
- import { _ as k, d as A, f as j, g as M, h as N, l as ie, m as ae, p as P, u as F, v as I } from "./render-common-CKv-jztN.js";
1
+ import { $ as e, A as t, G as n, Ht as r, I as i, J as a, Jt as o, L as s, N as c, P as l, S as u, U as d, V as f, W as p, X as m, Yt as h, _ as g, c as _, en as v, gt as y, i as b, k as x, l as S, nn as C, o as ee, qt as te, st as ne, t as w, v as T, wt as E } from "./lib-D4wK6ljP.js";
2
+ import { t as D } from "./useTimeLabels-d2f-W1L4.js";
3
+ import { t as re } from "./useConfig-D_6ZrPMD.js";
4
+ import { t as ie } from "./vue_ui_xy-CcJADijP.js";
5
+ import { _ as O, d as k, f as A, g as j, h as M, l as ae, m as oe, p as N, u as P, v as F } from "./render-common-BtfjXdkJ.js";
6
6
  //#region src/svg/vue-ui-xy/create.js
7
- var { vue_ui_xy: L } = ne();
8
- function oe({ config: e = {}, dataset: n = [] } = {}) {
9
- let i = e ?? {}, a = E({
10
- userConfig: i,
11
- defaultConfig: L
7
+ var { vue_ui_xy: I } = re();
8
+ function se({ config: e = {}, dataset: t = [] } = {}) {
9
+ let n = e ?? {}, i = C({
10
+ userConfig: n,
11
+ defaultConfig: I
12
12
  });
13
- r(i, "chart.highlightArea") && (Array.isArray(i.chart.highlightArea) ? a.chart.highlightArea = i.chart.highlightArea.map((e) => E({
14
- defaultConfig: L.chart.highlightArea,
13
+ E(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? i.chart.highlightArea = n.chart.highlightArea.map((e) => C({
14
+ defaultConfig: I.chart.highlightArea,
15
15
  userConfig: e
16
- })) : a.chart.highlightArea = [E({
17
- defaultConfig: L.chart.highlightArea,
18
- userConfig: i.chart.highlightArea
19
- })]), r(i, "chart.annotations") && Array.isArray(i.chart.annotations) && i.chart.annotations.length ? a.chart.annotations = i.chart.annotations.map((e) => E({
20
- defaultConfig: L.chart.annotations[0],
16
+ })) : i.chart.highlightArea = [C({
17
+ defaultConfig: I.chart.highlightArea,
18
+ userConfig: n.chart.highlightArea
19
+ })]), E(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? i.chart.annotations = n.chart.annotations.map((e) => C({
20
+ defaultConfig: I.chart.annotations[0],
21
21
  userConfig: e
22
- })) : a.chart.annotations = [], r(i, "chart.grid.position") && i.chart.grid.position === "start" && n.some((e) => e.type === "bar") && (a.chart.grid.position = "middle");
23
- let o = a.theme;
24
- if (!o) return {
25
- ...a,
26
- customPalette: a.customPalette?.length ? a.customPalette : h
22
+ })) : i.chart.annotations = [], E(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (i.chart.grid.position = "middle");
23
+ let a = i.theme;
24
+ if (!a) return {
25
+ ...i,
26
+ customPalette: i.customPalette?.length ? i.customPalette : r
27
27
  };
28
- let s = E({
29
- userConfig: re[o] || {},
30
- defaultConfig: a
31
- }), c = E({
32
- userConfig: i,
33
- defaultConfig: s
28
+ let o = C({
29
+ userConfig: ie[a] || {},
30
+ defaultConfig: i
31
+ }), s = C({
32
+ userConfig: n,
33
+ defaultConfig: o
34
34
  });
35
35
  return {
36
- ...c,
37
- customPalette: c.customPalette?.length ? c.customPalette : t[o] || h
36
+ ...s,
37
+ customPalette: s.customPalette?.length ? s.customPalette : v[a] || r
38
38
  };
39
39
  }
40
- function R(e) {
40
+ function L(e) {
41
41
  return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
42
42
  }
43
- function se(e) {
43
+ function ce(e) {
44
44
  return e != null && Number.isFinite(Number(e));
45
45
  }
46
- function ce(e) {
47
- return e.flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(R).map((e) => Number(e.x));
46
+ function le(e) {
47
+ return e.flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(L).map((e) => Number(e.x));
48
48
  }
49
- function le({ dataset: e, config: t }) {
50
- let n = ce(e);
49
+ function ue({ dataset: e, config: t }) {
50
+ let n = le(e);
51
51
  if (!n.length) return {
52
52
  min: 0,
53
53
  max: 1,
54
54
  ticks: [0, 1]
55
55
  };
56
- let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = se(r) ? Number(r) : Math.min(...n), o = se(i) ? Number(i) : Math.max(...n), s = a === o ? a - 1 : a, c = a === o ? o + 1 : o, l = Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6;
57
- return v(s, c, l);
56
+ let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = ce(r) ? Number(r) : Math.min(...n), o = ce(i) ? Number(i) : Math.max(...n), s = a === o ? a - 1 : a, c = a === o ? o + 1 : o, l = Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6;
57
+ return g(s, c, l);
58
58
  }
59
- function ue({ xValue: e, xScale: t, drawingArea: n, config: r }) {
59
+ function de({ xValue: e, xScale: t, drawingArea: n, config: r }) {
60
60
  let i = (Number(e) - t.min) / (t.max - t.min || 1), a = r?.chart?.grid?.labels?.xAxis?.reverse ? 1 - i : i;
61
61
  return n.left + n.width * a;
62
62
  }
63
- function de({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600, selectedXIndex: i, additionalSvgContent: a = "", svgTitle: o = "" } = {}) {
64
- let s = oe({
63
+ function fe({ dataset: e = [], config: t = {}, width: n = 1e3, height: i = 600, selectedXIndex: a, additionalSvgContent: o = "", svgTitle: s = "" } = {}) {
64
+ let c = se({
65
65
  config: t,
66
66
  dataset: e
67
- }), c = {
68
- top: s.chart.padding.top,
69
- left: s.chart.padding.left,
70
- right: n - s.chart.padding.right,
71
- bottom: r - s.chart.padding.bottom
67
+ }), l = {
68
+ top: c.chart.padding.top,
69
+ left: c.chart.padding.left,
70
+ right: n - c.chart.padding.right,
71
+ bottom: i - c.chart.padding.bottom
72
72
  };
73
- c.width = c.right - c.left, c.height = c.bottom - c.top;
74
- let l = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), u = Math.min(0, ...l), d = Math.max(1, ...l), p = v(u, d, 6), m = e.some((e) => Array.isArray(e.series) ? e.series.some(R) : !1), g = m ? le({
73
+ l.width = l.right - l.left, l.height = l.bottom - l.top;
74
+ let d = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), f = Math.min(0, ...d), p = Math.max(1, ...d), m = g(f, p, 6), h = e.some((e) => Array.isArray(e.series) ? e.series.some(L) : !1), _ = h ? ue({
75
75
  dataset: e,
76
- config: s
77
- }) : null, _ = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => _ <= 1 ? c.left + c.width / 2 : c.left + e / (_ - 1) * c.width, b = (e, t) => m ? R(e) ? ue({
76
+ config: c
77
+ }) : null, v = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => v <= 1 ? l.left + l.width / 2 : l.left + e / (v - 1) * l.width, b = (e, t) => h ? L(e) ? de({
78
78
  xValue: e.x,
79
- xScale: g,
80
- drawingArea: c,
81
- config: s
79
+ xScale: _,
80
+ drawingArea: l,
81
+ config: c
82
82
  }) : null : y(t), x = (e) => {
83
- let t = (Number(e) - p.min) / (p.max - p.min || 1);
84
- return c.bottom - t * c.height;
85
- }, S = Array.isArray(s.customPalette) ? s.customPalette : [], C = S.length ? S : h;
83
+ let t = (Number(e) - m.min) / (m.max - m.min || 1);
84
+ return l.bottom - t * l.height;
85
+ }, S = Array.isArray(c.customPalette) ? c.customPalette : [], C = S.length ? S : r;
86
86
  return {
87
87
  width: n,
88
- height: r,
89
- selectedXIndex: i,
88
+ height: i,
89
+ selectedXIndex: a,
90
90
  dataset: e,
91
- config: s,
92
- drawingArea: c,
93
- scale: p,
94
- xScale: g,
95
- isContinuous: m,
91
+ config: c,
92
+ drawingArea: l,
93
+ scale: m,
94
+ xScale: _,
95
+ isContinuous: h,
96
96
  series: e.map((e, t) => {
97
- let n = (e.color ? f(e.color) : "") || C[t % C.length], r = (e.series || []).map((e, t) => {
97
+ let n = (e.color ? u(e.color) : "") || C[t % C.length], r = (e.series || []).map((e, t) => {
98
98
  let n = e == null ? null : typeof e == "object" ? e.y ?? null : Number(e);
99
99
  return {
100
100
  x: b(e, t),
101
101
  y: n === null || !Number.isFinite(Number(n)) ? null : x(n),
102
102
  value: n,
103
103
  index: t,
104
- rawX: R(e) ? Number(e.x) : null,
104
+ rawX: L(e) ? Number(e.x) : null,
105
105
  label: e?.name ?? e?.x ?? String(t)
106
106
  };
107
107
  });
@@ -112,78 +112,78 @@ function de({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
112
112
  plots: r
113
113
  };
114
114
  }),
115
- additionalSvgContent: a,
116
- svgTitle: o
115
+ additionalSvgContent: o,
116
+ svgTitle: s
117
117
  };
118
118
  }
119
119
  //#endregion
120
120
  //#region src/svg/vue-ui-xy/render.js
121
- function z(e) {
122
- return !!P(e, "chart.grid.labels.yAxis.useIndividualScale", !1);
121
+ function R(e) {
122
+ return !!N(e, "chart.grid.labels.yAxis.useIndividualScale", !1);
123
123
  }
124
- function B(e) {
124
+ function z(e) {
125
125
  return String(e.scaleLabel ?? e.id ?? e.name ?? "");
126
126
  }
127
- function V(e) {
128
- return k(P(e, "chart.grid.labels.yAxis.labelWidth", 40), 40) + 36;
127
+ function B(e) {
128
+ return O(N(e, "chart.grid.labels.yAxis.labelWidth", 40), 40) + 36;
129
129
  }
130
- function fe(e) {
131
- return M(e).flatMap((e) => M(e.plots)).map((e) => e?.value === null || e?.value === void 0 ? null : Number(e.value)).filter(Number.isFinite);
130
+ function pe(e) {
131
+ return j(e).flatMap((e) => j(e.plots)).map((e) => e?.value === null || e?.value === void 0 ? null : Number(e.value)).filter(Number.isFinite);
132
132
  }
133
- function pe(e, t, n) {
134
- let r = fe(n), i = P(e, "chart.grid.labels.yAxis.scaleMin", null), a = P(e, "chart.grid.labels.yAxis.scaleMax", null), o = X(i) ? Number(i) : Math.min(0, ...r), s = X(a) ? Number(a) : Math.max(1, ...r), c = k(P(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6);
133
+ function me(e, t, n) {
134
+ let r = pe(n), i = N(e, "chart.grid.labels.yAxis.scaleMin", null), a = N(e, "chart.grid.labels.yAxis.scaleMax", null), o = X(i) ? Number(i) : Math.min(0, ...r), s = X(a) ? Number(a) : Math.max(1, ...r), c = O(N(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6);
135
135
  return !r.length && !X(i) && !X(a) ? t : ke(e, o, s === o ? o + 1 : s, c);
136
136
  }
137
- function me(e, t) {
138
- let { drawingArea: n } = e, r = k(t.__yOffset, 0), i = k(t.__individualHeight, n.height);
137
+ function he(e, t) {
138
+ let { drawingArea: n } = e, r = O(t.__yOffset, 0), i = O(t.__individualHeight, n.height);
139
139
  return {
140
140
  top: n.bottom - r - i,
141
141
  bottom: n.bottom - r
142
142
  };
143
143
  }
144
- function H(e, t, n, r) {
145
- let i = me(e, t), a = Math.min(n.y, r), o = Math.max(n.y, r), s = Math.max(i.top, a), c = Math.min(i.bottom, o);
144
+ function V(e, t, n, r) {
145
+ let i = he(e, t), a = Math.min(n.y, r), o = Math.max(n.y, r), s = Math.max(i.top, a), c = Math.min(i.bottom, o);
146
146
  return {
147
147
  y: s,
148
148
  height: Math.max(1e-5, c - s)
149
149
  };
150
150
  }
151
- function he(e, t) {
151
+ function H(e, t) {
152
152
  let n = {};
153
- return M(t).forEach((t, r) => {
154
- let i = B(t) || `serie_${r}`, a = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite);
153
+ return j(t).forEach((t, r) => {
154
+ let i = z(t) || `serie_${r}`, a = j(t.plots).map((e) => Number(e.value)).filter(Number.isFinite);
155
155
  n[i] || (n[i] = {
156
156
  scaleLabel: i,
157
157
  name: t.name ?? i,
158
- color: P(e, "chart.grid.labels.yAxis.groupColor", null) || t.color,
158
+ color: N(e, "chart.grid.labels.yAxis.groupColor", null) || t.color,
159
159
  series: [],
160
160
  values: []
161
161
  }), n[i].series.push(t), n[i].values.push(...a);
162
162
  }), Object.values(n).forEach((t) => {
163
163
  t.scale = Ae(e, {
164
164
  ...t.series[0],
165
- plots: t.series.flatMap((e) => M(e.plots))
165
+ plots: t.series.flatMap((e) => j(e.plots))
166
166
  });
167
167
  }), n;
168
168
  }
169
169
  function ge(e, t, n, r, i, a) {
170
- return !i && !a ? r : n[B(t)]?.scale ?? Ae(e, t);
170
+ return !i && !a ? r : n[z(t)]?.scale ?? Ae(e, t);
171
171
  }
172
172
  function _e(e) {
173
173
  return e === "bar" || e === "line" || e === "plot" ? e : "line";
174
174
  }
175
175
  function ve(e) {
176
- return M(e.series).map((e) => ({
176
+ return j(e.series).map((e) => ({
177
177
  ...e,
178
178
  type: _e(e.type),
179
- plots: M(e.plots).filter((e) => e && ae(e.x))
179
+ plots: j(e.plots).filter((e) => e && oe(e.x))
180
180
  }));
181
181
  }
182
182
  function U(e) {
183
183
  let { drawingArea: t, scale: n } = e, r = (0 - n.min) / (n.max - n.min || 1);
184
184
  return t.bottom - r * t.height;
185
185
  }
186
- var ye = _();
186
+ var ye = m();
187
187
  function W(e) {
188
188
  return ye;
189
189
  }
@@ -204,94 +204,94 @@ function Ce(e, t) {
204
204
  }
205
205
  function we(e, t, n) {
206
206
  let { config: r } = e;
207
- return P(r, "line.useGradient", !1) ? `url(#${be(e, n)})` : P(r, "line.dot.useSerieColor", !0) ? t.color : P(r, "line.dot.fill", "#FFFFFF");
207
+ return N(r, "line.useGradient", !1) ? `url(#${be(e, n)})` : N(r, "line.dot.useSerieColor", !0) ? t.color : N(r, "line.dot.fill", "#FFFFFF");
208
208
  }
209
209
  function Te(e, t, n) {
210
210
  let { config: r } = e;
211
- return P(r, "line.area.useGradient", !1) ? `url(#${it(e, n)})` : w(t.color, k(P(r, "line.area.opacity", 30), 30));
211
+ return N(r, "line.area.useGradient", !1) ? `url(#${it(e, n)})` : o(t.color, O(N(r, "line.area.opacity", 30), 30));
212
212
  }
213
213
  function K(e, t, n, r) {
214
- return P(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
214
+ return N(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
215
215
  }
216
216
  function Ee(e, t) {
217
217
  let { config: n } = e, r = [];
218
- return P(n, "bar.useGradient", !1) && t.filter((e) => e.type === "bar").forEach((t, n) => {
219
- r.push(F("linearGradient", {
218
+ return N(n, "bar.useGradient", !1) && t.filter((e) => e.type === "bar").forEach((t, n) => {
219
+ r.push(P("linearGradient", {
220
220
  id: G(e, n, "pos"),
221
221
  x2: "0%",
222
222
  y2: "100%"
223
223
  }, [
224
- A("stop", {
224
+ k("stop", {
225
225
  offset: "0%",
226
- "stop-color": f(t.color)
226
+ "stop-color": u(t.color)
227
227
  }),
228
- A("stop", {
228
+ k("stop", {
229
229
  offset: "62%",
230
- "stop-color": s(f(t.color), .02)
230
+ "stop-color": h(u(t.color), .02)
231
231
  }),
232
- A("stop", {
232
+ k("stop", {
233
233
  offset: "100%",
234
- "stop-color": s(f(t.color), .05)
234
+ "stop-color": h(u(t.color), .05)
235
235
  })
236
- ].join(""))), r.push(F("linearGradient", {
236
+ ].join(""))), r.push(P("linearGradient", {
237
237
  id: G(e, n, "neg"),
238
238
  x2: "0%",
239
239
  y2: "100%"
240
240
  }, [
241
- A("stop", {
241
+ k("stop", {
242
242
  offset: "0%",
243
- "stop-color": s(f(t.color), .05)
243
+ "stop-color": h(u(t.color), .05)
244
244
  }),
245
- A("stop", {
245
+ k("stop", {
246
246
  offset: "38%",
247
- "stop-color": s(f(t.color), .02)
247
+ "stop-color": h(u(t.color), .02)
248
248
  }),
249
- A("stop", {
249
+ k("stop", {
250
250
  offset: "100%",
251
- "stop-color": f(t.color)
251
+ "stop-color": u(t.color)
252
252
  })
253
253
  ].join("")));
254
254
  }), t.filter((e) => e.type === "line").forEach((t, i) => {
255
- P(n, "line.useGradient", !1) && r.push(F("radialGradient", {
255
+ N(n, "line.useGradient", !1) && r.push(P("radialGradient", {
256
256
  id: be(e, i),
257
257
  cx: "50%",
258
258
  cy: "50%",
259
259
  r: "50%",
260
260
  fx: "50%",
261
261
  fy: "50%"
262
- }, [A("stop", {
262
+ }, [k("stop", {
263
263
  offset: "0%",
264
- "stop-color": s(f(t.color), .05)
265
- }), A("stop", {
264
+ "stop-color": h(u(t.color), .05)
265
+ }), k("stop", {
266
266
  offset: "100%",
267
- "stop-color": f(t.color)
268
- })].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(F("linearGradient", {
267
+ "stop-color": u(t.color)
268
+ })].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(P("linearGradient", {
269
269
  id: xe(e, i),
270
270
  gradientTransform: "rotate(90)"
271
- }, t.temperatureColors.map((e, n) => A("stop", {
272
- offset: c(n, t.temperatureColors.length),
273
- "stop-color": f(e)
271
+ }, t.temperatureColors.map((e, n) => k("stop", {
272
+ offset: te(n, t.temperatureColors.length),
273
+ "stop-color": u(e)
274
274
  })).join("")));
275
275
  }), t.filter((e) => e.type === "plot").forEach((t, i) => {
276
- P(n, "plot.useGradient", !1) && r.push(F("radialGradient", {
276
+ N(n, "plot.useGradient", !1) && r.push(P("radialGradient", {
277
277
  id: Ce(e, i),
278
278
  cx: "50%",
279
279
  cy: "50%",
280
280
  r: "50%",
281
281
  fx: "50%",
282
282
  fy: "50%"
283
- }, [A("stop", {
283
+ }, [k("stop", {
284
284
  offset: "0%",
285
- "stop-color": s(f(t.color), .05)
286
- }), A("stop", {
285
+ "stop-color": h(u(t.color), .05)
286
+ }), k("stop", {
287
287
  offset: "100%",
288
- "stop-color": f(t.color)
288
+ "stop-color": u(t.color)
289
289
  })].join("")));
290
- }), r.length ? F("defs", { "data-layer": "gradients" }, r.join("")) : "";
290
+ }), r.length ? P("defs", { "data-layer": "gradients" }, r.join("")) : "";
291
291
  }
292
292
  function De(e) {
293
- let t = P(e.config, "chart.backgroundColor", "#FFFFFF");
294
- return A("rect", {
293
+ let t = N(e.config, "chart.backgroundColor", "#FFFFFF");
294
+ return k("rect", {
295
295
  width: e.width,
296
296
  height: e.height,
297
297
  fill: t
@@ -299,40 +299,40 @@ function De(e) {
299
299
  }
300
300
  function q(e) {
301
301
  return {
302
- dataLabels: k(P(e, "chart.grid.labels.fontSize", 12), 12),
303
- xAxis: k(P(e, "chart.grid.labels.xAxisLabels.fontSize", 12), 12),
304
- yAxis: k(P(e, "chart.grid.labels.axis.fontSize", 12), 12)
302
+ dataLabels: O(N(e, "chart.grid.labels.fontSize", 12), 12),
303
+ xAxis: O(N(e, "chart.grid.labels.xAxisLabels.fontSize", 12), 12),
304
+ yAxis: O(N(e, "chart.grid.labels.axis.fontSize", 12), 12)
305
305
  };
306
306
  }
307
307
  function J(e) {
308
- return P(e, "chart.grid.labels.yAxis.position", "left") === "right";
308
+ return N(e, "chart.grid.labels.yAxis.position", "left") === "right";
309
309
  }
310
310
  function Oe(t, n) {
311
311
  let r = e({
312
- p: P(n, "chart.labels.prefix", ""),
312
+ p: N(n, "chart.labels.prefix", ""),
313
313
  v: t,
314
- s: P(n, "chart.labels.suffix", ""),
315
- r: P(n, "chart.grid.labels.yAxis.rounding", 0)
314
+ s: N(n, "chart.labels.suffix", ""),
315
+ r: N(n, "chart.grid.labels.yAxis.rounding", 0)
316
316
  });
317
- return x(P(n, "chart.grid.labels.yAxis.formatter", null), t, r, n);
317
+ return b(N(n, "chart.grid.labels.yAxis.formatter", null), t, r, n);
318
318
  }
319
319
  function Y(e) {
320
- return !!P(e, "chart.grid.labels.yAxis.stacked", !1);
320
+ return !!N(e, "chart.grid.labels.yAxis.stacked", !1);
321
321
  }
322
322
  function X(e) {
323
323
  return e != null && Number.isFinite(Number(e));
324
324
  }
325
325
  function ke(e, t, n, r) {
326
- return P(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? v(t, n, r) : D(t, n, r);
326
+ return N(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? g(t, n, r) : T(t, n, r);
327
327
  }
328
328
  function Ae(e, t) {
329
- let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = P(e, "chart.grid.labels.yAxis.scaleMin", null), i = P(e, "chart.grid.labels.yAxis.scaleMax", null), a = X(r) ? Number(r) : X(t.scaleMin) ? Number(t.scaleMin) : Math.min(0, ...n), o = X(i) ? Number(i) : X(t.scaleMax) ? Number(t.scaleMax) : Math.max(1, ...n);
330
- return ke(e, a, o === a ? a + 1 : o, k(t.scaleSteps ?? P(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6));
329
+ let n = j(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = N(e, "chart.grid.labels.yAxis.scaleMin", null), i = N(e, "chart.grid.labels.yAxis.scaleMax", null), a = X(r) ? Number(r) : X(t.scaleMin) ? Number(t.scaleMin) : Math.min(0, ...n), o = X(i) ? Number(i) : X(t.scaleMax) ? Number(t.scaleMax) : Math.max(1, ...n);
330
+ return ke(e, a, o === a ? a + 1 : o, O(t.scaleSteps ?? N(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6));
331
331
  }
332
332
  function je(e, t, n = []) {
333
- let r = q(e), i = Y(e), a = z(e), o = V(e);
333
+ let r = q(e), i = Y(e), a = R(e), o = B(e);
334
334
  if (a && !i) {
335
- let t = Object.keys(he(e, n)).length;
335
+ let t = Object.keys(H(e, n)).length;
336
336
  return {
337
337
  left: J(e) ? 0 : t * o,
338
338
  right: J(e) ? t * o : 0,
@@ -346,7 +346,7 @@ function je(e, t, n = []) {
346
346
  scaleLabelsOffset: o,
347
347
  yAxisLabelWidth: 0
348
348
  };
349
- let s = (i ? n.flatMap((t) => Ae(e, t).ticks) : M(t.ticks)).reduce((t, n) => Math.max(t, j(Oe(n, e), r.dataLabels)), 0), c = P(e, "chart.grid.labels.axis.yLabel", "") ? r.yAxis * 2 + 24 + k(P(e, "chart.grid.labels.axis.yLabelOffsetX", 0), 0) + r.yAxis : 0, l = s + k(P(e, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0) + k(P(e, "chart.grid.labels.yAxis.crosshairSize", 0), 0);
349
+ let s = (i ? n.flatMap((t) => Ae(e, t).ticks) : j(t.ticks)).reduce((t, n) => Math.max(t, A(Oe(n, e), r.dataLabels)), 0), c = N(e, "chart.grid.labels.axis.yLabel", "") ? r.yAxis * 2 + 24 + O(N(e, "chart.grid.labels.axis.yLabelOffsetX", 0), 0) + r.yAxis : 0, l = s + O(N(e, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0) + O(N(e, "chart.grid.labels.yAxis.crosshairSize", 0), 0);
350
350
  return {
351
351
  left: J(e) ? 0 : l + c,
352
352
  right: J(e) ? l + c : 0,
@@ -357,16 +357,16 @@ function je(e, t, n = []) {
357
357
  function Me(e, t) {
358
358
  let { config: n, scale: r, width: i, height: a } = e, o = q(n);
359
359
  e.drawingArea;
360
- let s = je(n, r, t), c = P(n, "chart.legend.position", "bottom"), l = P(n, "chart.legend.show", !0), u = l ? nt({
360
+ let s = je(n, r, t), c = N(n, "chart.legend.position", "bottom"), l = N(n, "chart.legend.show", !0), u = l ? nt({
361
361
  ...e,
362
362
  width: i,
363
363
  height: a
364
- }, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = P(n, "chart.grid.labels.axis.xLabel", ""), m = P(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = _t(n) + k(P(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = k(P(n, "chart.padding.top", 12), 12), v = k(P(n, "chart.padding.right", 12), 12), y = k(P(n, "chart.padding.bottom", 12), 12), b = k(P(n, "chart.padding.left", 12), 12), x = k(P(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = k(P(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, te = s.right, w = i - C - te - 6 - b - v, T = {
364
+ }, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = N(n, "chart.grid.labels.axis.xLabel", ""), m = N(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = _t(n) + O(N(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = O(N(n, "chart.padding.top", 12), 12), v = O(N(n, "chart.padding.right", 12), 12), y = O(N(n, "chart.padding.bottom", 12), 12), b = O(N(n, "chart.padding.left", 12), 12), x = O(N(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = O(N(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, te = s.right, ne = i - C - te - 6 - b - v, w = {
365
365
  top: _ + g + d,
366
- right: C + (J(n) ? 0 : S) + b + w,
366
+ right: C + (J(n) ? 0 : S) + b + ne,
367
367
  bottom: a - h - y - x - f,
368
368
  left: C + (J(n) ? 0 : S) + b,
369
- width: Math.max(1, w),
369
+ width: Math.max(1, ne),
370
370
  height: 1,
371
371
  scaleLabelX: C,
372
372
  rightScaleLabelX: te,
@@ -374,26 +374,26 @@ function Me(e, t) {
374
374
  yAxisLabelWidth: s.yAxisLabelWidth,
375
375
  individualOffsetX: 36
376
376
  };
377
- T.height = Math.max(1, T.bottom - T.top);
378
- let E = Y(n), D = E ? ee(t) : t, O = Math.max(1, D.length), ne = E ? k(P(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, re = ne * Math.max(0, O - 1), A = Math.max(1, T.height - re), j = z(n), N = he(n, t), ie = Math.max(1, ...t.map((e) => M(e.plots).length));
379
- function ae(t, n) {
377
+ w.height = Math.max(1, w.bottom - w.top);
378
+ let T = Y(n), E = T ? ee(t) : t, D = Math.max(1, E.length), re = T ? O(N(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, ie = re * Math.max(0, D - 1), k = Math.max(1, w.height - ie), A = R(n), M = H(n, t), ae = Math.max(1, ...t.map((e) => j(e.plots).length));
379
+ function oe(t, n) {
380
380
  if (Z(e)) {
381
381
  let n = Number(t.rawX);
382
382
  return Number.isFinite(n) ? Ge({
383
383
  ...e,
384
- drawingArea: T
384
+ drawingArea: w
385
385
  }, n) : null;
386
386
  }
387
387
  return Q({
388
388
  ...e,
389
- drawingArea: T
390
- }, t.index ?? n, ie);
389
+ drawingArea: w
390
+ }, t.index ?? n, ae);
391
391
  }
392
- let F = t.map((e, t) => {
393
- let i = e.id !== void 0 && e.id !== null ? D.find((t) => t.id === e.id) ?? D[t] ?? e : D[t] ?? e, a = ge(n, e, N, r, j, E), o = k(i.stackIndex, t), s = k(i.stackRatio, 1 / O), c = k(i.cumulatedStackRatio, s * (o + 1)), l = O - 1 - o, u = E ? 1 - c : 0, d = E ? A * u + ne * l : 0, f = E ? A * s : T.height;
392
+ let P = t.map((e, t) => {
393
+ let i = e.id !== void 0 && e.id !== null ? E.find((t) => t.id === e.id) ?? E[t] ?? e : E[t] ?? e, a = ge(n, e, M, r, A, T), o = O(i.stackIndex, t), s = O(i.stackRatio, 1 / D), c = O(i.cumulatedStackRatio, s * (o + 1)), l = D - 1 - o, u = T ? 1 - c : 0, d = T ? k * u + re * l : 0, f = T ? k * s : w.height;
394
394
  function p(e) {
395
395
  let t = (e - a.min) / (a.max - a.min || 1);
396
- return T.bottom - d - t * f;
396
+ return w.bottom - d - t * f;
397
397
  }
398
398
  let m = p(0);
399
399
  return {
@@ -402,7 +402,7 @@ function Me(e, t) {
402
402
  __yOffset: d,
403
403
  __individualHeight: f,
404
404
  __zeroY: m,
405
- __scaleYLabels: M(a.ticks).map((t) => ({
405
+ __scaleYLabels: j(a.ticks).map((t) => ({
406
406
  value: t,
407
407
  y: p(t),
408
408
  serie: e
@@ -412,7 +412,7 @@ function Me(e, t) {
412
412
  return {
413
413
  ...e,
414
414
  value: n,
415
- x: ae(e, t),
415
+ x: oe(e, t),
416
416
  y: n === null || !Number.isFinite(n) ? null : p(n)
417
417
  };
418
418
  })
@@ -420,18 +420,18 @@ function Me(e, t) {
420
420
  });
421
421
  return {
422
422
  ...e,
423
- drawingArea: T,
424
- series: F,
425
- __scaleGroups: N,
426
- __useIndividualScale: j
423
+ drawingArea: w,
424
+ series: P,
425
+ __scaleGroups: M,
426
+ __useIndividualScale: A
427
427
  };
428
428
  }
429
429
  function Ne(e) {
430
430
  let { config: t, drawingArea: n, scale: r, series: i } = e;
431
- if (!P(t, "chart.grid.labels.show", !0) || !P(t, "chart.grid.labels.yAxis.show", !0)) return "";
432
- let a = z(t), o = Y(t);
431
+ if (!N(t, "chart.grid.labels.show", !0) || !N(t, "chart.grid.labels.yAxis.show", !0)) return "";
432
+ let a = R(t), o = Y(t);
433
433
  if (a) return Pe(e);
434
- let s = q(t), c = J(t), l = P(t, "chart.grid.labels.yAxis.showCrosshairs", !1), u = k(P(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = k(P(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = P(t, "chart.grid.labels.color", "#2A2A2A"), p = P(t, "chart.grid.stroke", "#CCCCCC"), m = o ? i.flatMap((e) => M(e.__scaleYLabels)) : M(r.ticks).map((e) => {
434
+ let s = q(t), c = J(t), l = N(t, "chart.grid.labels.yAxis.showCrosshairs", !1), u = O(N(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = O(N(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = N(t, "chart.grid.labels.color", "#2A2A2A"), p = N(t, "chart.grid.stroke", "#CCCCCC"), m = o ? i.flatMap((e) => j(e.__scaleYLabels)) : j(r.ticks).map((e) => {
435
435
  let t = (e - r.min) / (r.max - r.min || 1);
436
436
  return {
437
437
  value: e,
@@ -439,7 +439,7 @@ function Ne(e) {
439
439
  };
440
440
  }), h = [];
441
441
  return m.forEach((e) => {
442
- Number.isFinite(e.y) && (l && h.push(A("line", {
442
+ Number.isFinite(e.y) && (l && h.push(k("line", {
443
443
  "data-cy": "axis-y-tick",
444
444
  x1: c ? n.right : n.left,
445
445
  x2: c ? n.right + u : n.left - u,
@@ -448,39 +448,39 @@ function Ne(e) {
448
448
  stroke: p,
449
449
  "stroke-width": 1,
450
450
  "stroke-linecap": "round"
451
- })), h.push(I(Oe(e.value, t), {
451
+ })), h.push(F(Oe(e.value, t), {
452
452
  "data-cy": "axis-y-label",
453
453
  transform: `translate(${c ? n.right + u + d + 5 : n.scaleLabelX - u}, ${e.y + s.dataLabels / 3})`,
454
454
  "font-size": s.dataLabels,
455
455
  "text-anchor": c ? "start" : "end",
456
- fill: o && e.serie?.color ? P(t, "chart.grid.labels.yAxis.groupColor", null) || e.serie.color : f
456
+ fill: o && e.serie?.color ? N(t, "chart.grid.labels.yAxis.groupColor", null) || e.serie.color : f
457
457
  })));
458
- }), F("g", { "data-layer": "scale-labels" }, h.join(""));
458
+ }), P("g", { "data-layer": "scale-labels" }, h.join(""));
459
459
  }
460
460
  function Pe(e) {
461
- let { config: t, drawingArea: n, series: r } = e, i = q(t), a = J(t), o = Y(t), s = e.__scaleGroups ?? he(t, r), c = P(t, "chart.grid.labels.yAxis.showCrosshairs", !1), l = k(P(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), u = k(P(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), d = k(P(t, "chart.grid.labels.yAxis.labelWidth", 40), 40), f = k(n.individualOffsetX, 36), p = [], m = Object.values(s);
461
+ let { config: t, drawingArea: n, series: r } = e, i = q(t), a = J(t), o = Y(t), s = e.__scaleGroups ?? H(t, r), c = N(t, "chart.grid.labels.yAxis.showCrosshairs", !1), l = O(N(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), u = O(N(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), d = O(N(t, "chart.grid.labels.yAxis.labelWidth", 40), 40), f = O(n.individualOffsetX, 36), p = [], m = Object.values(s);
462
462
  return m.forEach((e, s) => {
463
- let h = r.find((t) => B(t) === e.scaleLabel) ?? r[s];
463
+ let h = r.find((t) => z(t) === e.scaleLabel) ?? r[s];
464
464
  if (!h) return;
465
- let g = o ? a ? n.right : n.left : a ? n.right + V(t) * s : n.left - V(t) * (m.length - s - 1), _ = k(h.__yOffset, 0), v = k(h.__individualHeight, n.height), y = o ? n.bottom - _ - v : n.top, b = o ? n.bottom - _ : n.bottom;
466
- p.push(A("line", {
465
+ let g = o ? a ? n.right : n.left : a ? n.right + B(t) * s : n.left - B(t) * (m.length - s - 1), _ = O(h.__yOffset, 0), v = O(h.__individualHeight, n.height), y = o ? n.bottom - _ - v : n.top, b = o ? n.bottom - _ : n.bottom;
466
+ p.push(k("line", {
467
467
  x1: o || a ? g : g - f,
468
468
  x2: o || a ? g : g - f,
469
469
  y1: y,
470
470
  y2: b,
471
471
  stroke: e.color,
472
- "stroke-width": P(t, "chart.grid.strokeWidth", 1),
472
+ "stroke-width": N(t, "chart.grid.strokeWidth", 1),
473
473
  "stroke-linecap": "round"
474
474
  }));
475
475
  let x = o ? a ? n.right + l + u + 5 + d + f : n.left - l - u - d : a ? g + l + u + 5 + d : g - i.dataLabels / 2;
476
- p.push(I(e.name, {
476
+ p.push(F(e.name, {
477
477
  transform: `translate(${x}, ${y + (b - y) / 2}) rotate(-90)`,
478
478
  "font-size": i.dataLabels * .8,
479
479
  "text-anchor": "middle",
480
480
  fill: e.color
481
- })), M(e.scale.ticks).forEach((r) => {
481
+ })), j(e.scale.ticks).forEach((r) => {
482
482
  let s = (r - e.scale.min) / (e.scale.max - e.scale.min || 1), d = b - s * (b - y);
483
- Number.isFinite(d) && (c && p.push(A("line", {
483
+ Number.isFinite(d) && (c && p.push(k("line", {
484
484
  "data-cy": "axis-y-tick",
485
485
  x1: o || a ? g : g + 3 - l - f,
486
486
  x2: o ? a ? g + l : g - l : a ? g + l : g - f,
@@ -489,7 +489,7 @@ function Pe(e) {
489
489
  stroke: e.color,
490
490
  "stroke-width": 1,
491
491
  "stroke-linecap": "round"
492
- })), p.push(I(Oe(r, t), {
492
+ })), p.push(F(Oe(r, t), {
493
493
  "data-cy": "axis-y-label",
494
494
  transform: `translate(${o ? a ? n.right + l + u + 5 : n.left - l - u - 5 : a ? g + l + u + 5 : g - 5 - f}, ${d + i.dataLabels / 3})`,
495
495
  "font-size": i.dataLabels,
@@ -497,10 +497,10 @@ function Pe(e) {
497
497
  fill: e.color
498
498
  })));
499
499
  });
500
- }), F("g", { "data-layer": "individual-scale-labels" }, p.join(""));
500
+ }), P("g", { "data-layer": "individual-scale-labels" }, p.join(""));
501
501
  }
502
502
  function Fe(e) {
503
- return [...new Set(e.flatMap((e) => M(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
503
+ return [...new Set(e.flatMap((e) => j(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
504
504
  }
505
505
  function Ie(e, t, n = 1) {
506
506
  let { drawingArea: r, config: i } = e, a = Fe(t), o = r.width * .05;
@@ -508,19 +508,19 @@ function Ie(e, t, n = 1) {
508
508
  let s = a.slice(1).reduce((e, t, n) => {
509
509
  let r = a[n], i = Math.abs(t - r);
510
510
  return i > 0 ? Math.min(e, i) : e;
511
- }, Infinity), c = k(P(i, "bar.periodGap", .2), .2), l = Number.isFinite(s) && s > 0 ? s * (1 - c) : o;
511
+ }, Infinity), c = O(N(i, "bar.periodGap", .2), .2), l = Number.isFinite(s) && s > 0 ? s * (1 - c) : o;
512
512
  return Math.max(1e-5, l / Math.max(1, n));
513
513
  }
514
514
  function Le(e, t, n) {
515
- let { config: r } = e, i = k(P(r, "bar.innerGap", .05), .05), a = P(r, "bar.borderRadius", 0), o = [];
515
+ let { config: r } = e, i = O(N(r, "bar.innerGap", .05), .05), a = N(r, "bar.borderRadius", 0), o = [];
516
516
  if (n) {
517
517
  let n = Ie(e, t, 1), r = n * Math.min(Math.abs(i), .95), s = Math.max(1e-5, n - r);
518
518
  return t.forEach((t, n) => {
519
519
  let r = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e);
520
- M(t.plots).forEach((i) => {
520
+ j(t.plots).forEach((i) => {
521
521
  if (!i || i.value === null || i.value === void 0 || !Number.isFinite(Number(i.value)) || !Number.isFinite(Number(i.x)) || !Number.isFinite(Number(i.y))) return;
522
- let c = i.x - s / 2, { y: l, height: u } = H(e, t, i, r);
523
- i.__barLabelX = i.x, o.push(A("rect", {
522
+ let c = i.x - s / 2, { y: l, height: u } = V(e, t, i, r);
523
+ i.__barLabelX = i.x, o.push(k("rect", {
524
524
  "data-cy": "datapoint-bar",
525
525
  x: c,
526
526
  y: l,
@@ -531,15 +531,15 @@ function Le(e, t, n) {
531
531
  ...$(e, t)
532
532
  }));
533
533
  });
534
- }), F("g", { "data-layer": "bars" }, o.join(""));
534
+ }), P("g", { "data-layer": "bars" }, o.join(""));
535
535
  }
536
536
  let s = Math.max(1, t.length), c = Ie(e, t, s), l = c * Math.min(Math.abs(i), .95), u = Math.max(1e-5, c - l), d = c * s;
537
537
  return t.forEach((t, n) => {
538
538
  let r = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e);
539
- M(t.plots).forEach((i) => {
539
+ j(t.plots).forEach((i) => {
540
540
  if (!i || i.value === null || i.value === void 0 || !Number.isFinite(Number(i.value)) || !Number.isFinite(Number(i.x)) || !Number.isFinite(Number(i.y))) return;
541
- let s = i.x - d / 2 + c * n + l / 2, { y: f, height: p } = H(e, t, i, r);
542
- i.__barLabelX = s + u / 2, o.push(A("rect", {
541
+ let s = i.x - d / 2 + c * n + l / 2, { y: f, height: p } = V(e, t, i, r);
542
+ i.__barLabelX = s + u / 2, o.push(k("rect", {
543
543
  "data-cy": "datapoint-bar",
544
544
  x: s,
545
545
  y: f,
@@ -550,21 +550,21 @@ function Le(e, t, n) {
550
550
  ...$(e, t)
551
551
  }));
552
552
  });
553
- }), F("g", { "data-layer": "bars" }, o.join(""));
553
+ }), P("g", { "data-layer": "bars" }, o.join(""));
554
554
  }
555
555
  function Re(e, t) {
556
556
  let { config: n, drawingArea: r } = e, i = Y(n), a = t.filter((e) => e.type === "bar");
557
557
  if (!a.length) return "";
558
558
  if (Z(e)) return Le(e, a, i);
559
- let o = Math.max(1, ...t.map((e) => M(e.plots).length)), s = r.width / o, c = k(P(n, "bar.periodGap", .2), .2), l = k(P(n, "bar.innerGap", .05), .05), u = P(n, "bar.borderRadius", 0), d = [];
559
+ let o = Math.max(1, ...t.map((e) => j(e.plots).length)), s = r.width / o, c = O(N(n, "bar.periodGap", .2), .2), l = O(N(n, "bar.innerGap", .05), .05), u = N(n, "bar.borderRadius", 0), d = [];
560
560
  if (i) {
561
561
  let t = Math.max(1e-5, s * .9), n = t * Math.min(Math.abs(l), .95);
562
562
  return a.forEach((i, a) => {
563
563
  let o = Number.isFinite(Number(i.__zeroY)) ? Number(i.__zeroY) : U(e);
564
- M(i.plots).forEach((c, l) => {
564
+ j(i.plots).forEach((c, l) => {
565
565
  if (!c || c.value === null || c.value === void 0 || !Number.isFinite(Number(c.value)) || !Number.isFinite(Number(c.y))) return;
566
- let f = r.left + s * l + s * .05 + n / 2, { y: p, height: m } = H(e, i, c, o);
567
- c.__barLabelX = f + Math.max(1e-5, t - n) / 2, d.push(A("rect", {
566
+ let f = r.left + s * l + s * .05 + n / 2, { y: p, height: m } = V(e, i, c, o);
567
+ c.__barLabelX = f + Math.max(1e-5, t - n) / 2, d.push(k("rect", {
568
568
  "data-cy": "datapoint-bar",
569
569
  x: f,
570
570
  y: p,
@@ -575,15 +575,15 @@ function Re(e, t) {
575
575
  ...$(e, i)
576
576
  }));
577
577
  });
578
- }), F("g", { "data-layer": "bars" }, d.join(""));
578
+ }), P("g", { "data-layer": "bars" }, d.join(""));
579
579
  }
580
580
  let f = s * (1 - c), p = f / Math.max(1, a.length), m = p * Math.min(Math.abs(l), .95);
581
581
  return U(e), a.forEach((t, n) => {
582
582
  let i = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e);
583
- M(t.plots).forEach((a, o) => {
583
+ j(t.plots).forEach((a, o) => {
584
584
  if (!a || a.value === null || a.value === void 0 || !Number.isFinite(Number(a.value)) || !Number.isFinite(Number(a.y))) return;
585
- let c = r.left + s * o + (s - f) / 2 + p * n + m / 2, { y: l, height: h } = H(e, t, a, i);
586
- a.__barLabelX = c + Math.max(1e-5, p - m) / 2, d.push(A("rect", {
585
+ let c = r.left + s * o + (s - f) / 2 + p * n + m / 2, { y: l, height: h } = V(e, t, a, i);
586
+ a.__barLabelX = c + Math.max(1e-5, p - m) / 2, d.push(k("rect", {
587
587
  "data-cy": "datapoint-bar",
588
588
  x: c,
589
589
  y: l,
@@ -594,11 +594,11 @@ function Re(e, t) {
594
594
  ...$(e, t)
595
595
  }));
596
596
  });
597
- }), F("g", { "data-layer": "bars" }, d.join(""));
597
+ }), P("g", { "data-layer": "bars" }, d.join(""));
598
598
  }
599
599
  function ze(e) {
600
600
  let { config: t, drawingArea: n, scale: r, series: i } = e;
601
- return z(t) || Y(t) ? i.flatMap((e) => M(e.__scaleYLabels)) : M(r.ticks).map((e) => {
601
+ return R(t) || Y(t) ? i.flatMap((e) => j(e.__scaleYLabels)) : j(r.ticks).map((e) => {
602
602
  let t = (e - r.min) / (r.max - r.min || 1);
603
603
  return {
604
604
  value: e,
@@ -611,25 +611,25 @@ function Be(e, t, n) {
611
611
  return r.left + i * t;
612
612
  }
613
613
  function Ve(e, t) {
614
- let { config: n, drawingArea: r } = e, i = Math.max(1, ...t.map((e) => M(e.plots).length)), a = r.top, o = r.bottom;
614
+ let { config: n, drawingArea: r } = e, i = Math.max(1, ...t.map((e) => j(e.plots).length)), a = r.top, o = r.bottom;
615
615
  if (Z(e)) {
616
- let e = [...new Set(t.flatMap((e) => M(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
617
- return e.length ? P(n, "chart.grid.position", "middle") === "middle" ? e.map((e, t, n) => {
616
+ let e = [...new Set(t.flatMap((e) => j(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
617
+ return e.length ? N(n, "chart.grid.position", "middle") === "middle" ? e.map((e, t, n) => {
618
618
  if (t === 0) return null;
619
619
  let r = n[t - 1], i = r + (e - r) / 2;
620
620
  return `M${i},${a} L${i},${o}`;
621
621
  }).filter(Boolean).join(" ") : e.map((e) => `M${e},${a} L${e},${o}`).join(" ") : "";
622
622
  }
623
- let s = i + +(P(n, "chart.grid.position", "middle") === "middle");
623
+ let s = i + +(N(n, "chart.grid.position", "middle") === "middle");
624
624
  return Array.from({ length: s }).map((t, r) => {
625
- let s = P(n, "chart.grid.position", "middle") === "middle" ? Be(e, r, i) : Q(e, r, i);
625
+ let s = N(n, "chart.grid.position", "middle") === "middle" ? Be(e, r, i) : Q(e, r, i);
626
626
  return `M${s},${a} L${s},${o}`;
627
627
  }).join(" ");
628
628
  }
629
629
  function He(e) {
630
- let { config: t, drawingArea: n, scale: r, series: i } = e, a = P(t, "chart.grid.show", !0), o = P(t, "chart.grid.showHorizontalLines", !0), s = P(t, "chart.grid.showVerticalLines", !1), c = P(t, "chart.grid.stroke", "#CCCCCC"), l = k(P(t, "chart.grid.strokeWidth", .5), .5), u = [];
630
+ let { config: t, drawingArea: n, scale: r, series: i } = e, a = N(t, "chart.grid.show", !0), o = N(t, "chart.grid.showHorizontalLines", !0), s = N(t, "chart.grid.showVerticalLines", !1), c = N(t, "chart.grid.stroke", "#CCCCCC"), l = O(N(t, "chart.grid.strokeWidth", .5), .5), u = [];
631
631
  if (a && o && ze(e).forEach((e) => {
632
- Number.isFinite(Number(e.y)) && u.push(A("line", {
632
+ Number.isFinite(Number(e.y)) && u.push(k("line", {
633
633
  "data-cy": "xy-grid-horizontal-line",
634
634
  x1: n.left,
635
635
  x2: n.right,
@@ -641,7 +641,7 @@ function He(e) {
641
641
  }));
642
642
  }), a && s) {
643
643
  let t = Ve(e, i);
644
- t && u.push(A("path", {
644
+ t && u.push(k("path", {
645
645
  "data-cy": "xy-grid-vertical-line",
646
646
  d: t,
647
647
  stroke: c,
@@ -649,7 +649,7 @@ function He(e) {
649
649
  "stroke-linecap": "round"
650
650
  }));
651
651
  }
652
- u.push(A("line", {
652
+ u.push(k("line", {
653
653
  x1: n.left,
654
654
  y1: n.bottom,
655
655
  x2: n.right,
@@ -659,7 +659,7 @@ function He(e) {
659
659
  "stroke-linecap": "round"
660
660
  }));
661
661
  let d = J(t) ? n.right : n.left;
662
- return u.push(A("line", {
662
+ return u.push(k("line", {
663
663
  x1: d,
664
664
  y1: n.top,
665
665
  x2: d,
@@ -667,7 +667,7 @@ function He(e) {
667
667
  stroke: c,
668
668
  "stroke-width": l,
669
669
  "stroke-linecap": "round"
670
- })), r.min < 0 && r.max > 0 && u.push(A("line", {
670
+ })), r.min < 0 && r.max > 0 && u.push(k("line", {
671
671
  x1: n.left,
672
672
  y1: U(e),
673
673
  x2: n.right,
@@ -676,20 +676,20 @@ function He(e) {
676
676
  "stroke-width": l,
677
677
  "stroke-dasharray": 4,
678
678
  "stroke-linecap": "round"
679
- })), F("g", { "data-layer": "grid" }, u.join(""));
679
+ })), P("g", { "data-layer": "grid" }, u.join(""));
680
680
  }
681
681
  function Ue(e) {
682
682
  return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
683
683
  }
684
684
  function Z(e) {
685
- return e.isContinuous ? !0 : M(e.series).some((e) => M(e.series).some(Ue));
685
+ return e.isContinuous ? !0 : j(e.series).some((e) => j(e.series).some(Ue));
686
686
  }
687
687
  function We(e) {
688
688
  if (e.xScale && Number.isFinite(Number(e.xScale.min)) && Number.isFinite(Number(e.xScale.max))) return {
689
689
  min: Number(e.xScale.min),
690
690
  max: Number(e.xScale.max)
691
691
  };
692
- let t = M(e.series).flatMap((e) => M(e.series)).filter(Ue).map((e) => Number(e.x));
692
+ let t = j(e.series).flatMap((e) => j(e.series)).filter(Ue).map((e) => Number(e.x));
693
693
  if (!t.length) return {
694
694
  min: 0,
695
695
  max: 1
@@ -704,24 +704,24 @@ function We(e) {
704
704
  };
705
705
  }
706
706
  function Ge(e, t) {
707
- let { drawingArea: n, config: r } = e, i = We(e), a = (Number(t) - i.min) / (i.max - i.min || 1), o = P(r, "chart.grid.labels.xAxis.reverse", !1) ? 1 - a : a;
707
+ let { drawingArea: n, config: r } = e, i = We(e), a = (Number(t) - i.min) / (i.max - i.min || 1), o = N(r, "chart.grid.labels.xAxis.reverse", !1) ? 1 - a : a;
708
708
  return n.left + n.width * o;
709
709
  }
710
710
  function Ke(t, n, r) {
711
711
  let { config: i } = t, a = e({
712
712
  v: n,
713
- p: P(i, "chart.labels.prefix", ""),
714
- s: P(i, "chart.labels.suffix", ""),
715
- r: P(i, "chart.grid.labels.xAxis.rounding", 0)
713
+ p: N(i, "chart.labels.prefix", ""),
714
+ s: N(i, "chart.labels.suffix", ""),
715
+ r: N(i, "chart.grid.labels.xAxis.rounding", 0)
716
716
  });
717
- return x(P(i, "chart.grid.labels.xAxis.formatter", null), n, a, {
717
+ return b(N(i, "chart.grid.labels.xAxis.formatter", null), n, a, {
718
718
  datapoint: n,
719
719
  seriesIndex: null
720
720
  });
721
721
  }
722
722
  function qe(e) {
723
- let { xScale: t, config: n } = e, r = M(t?.ticks);
724
- return (P(n, "chart.grid.labels.xAxis.reverse", !1) ? [...r].reverse() : r).map((t, n) => ({
723
+ let { xScale: t, config: n } = e, r = j(t?.ticks);
724
+ return (N(n, "chart.grid.labels.xAxis.reverse", !1) ? [...r].reverse() : r).map((t, n) => ({
725
725
  id: `continuous_x_label_${n}`,
726
726
  text: Ke(e, t, n),
727
727
  value: t,
@@ -731,33 +731,33 @@ function qe(e) {
731
731
  }));
732
732
  }
733
733
  function Q(e, t, n) {
734
- let { drawingArea: r, config: i } = e, a = P(i, "chart.grid.position", "middle"), o = r.width, s = a === "middle" ? o / Math.max(1, n) : o / Math.max(1, n - 1);
734
+ let { drawingArea: r, config: i } = e, a = N(i, "chart.grid.position", "middle"), o = r.width, s = a === "middle" ? o / Math.max(1, n) : o / Math.max(1, n - 1);
735
735
  return a === "middle" ? r.left + s / 2 + s * t : r.left + s * t;
736
736
  }
737
737
  async function Je(e, t) {
738
- let { config: n } = e, r = Math.max(0, ...t.map((e) => M(e.plots).length));
739
- return await O({
740
- values: P(n, "chart.grid.labels.xAxisLabels.values", []),
738
+ let { config: n } = e, r = Math.max(0, ...t.map((e) => j(e.plots).length));
739
+ return await D({
740
+ values: N(n, "chart.grid.labels.xAxisLabels.values", []),
741
741
  maxDatapoints: r,
742
- formatter: P(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
743
- start: k(e.slotStartIndex ?? e.startAbs, 0),
744
- end: k(e.slotEndIndex ?? e.endAbs, r)
742
+ formatter: N(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
743
+ start: O(e.slotStartIndex ?? e.startAbs, 0),
744
+ end: O(e.slotEndIndex ?? e.endAbs, r)
745
745
  });
746
746
  }
747
747
  async function Ye(e, t) {
748
- let { config: n } = e, r = P(n, "chart.grid.labels.xAxisLabels", {}), i = M(P(n, "chart.grid.labels.xAxisLabels.values", [])), a = Math.max(0, ...t.map((e) => M(e.plots).length)), o = e.slotStartIndex !== void 0 || e.startAbs !== void 0, s = e.slotEndIndex !== void 0 || e.endAbs !== void 0, c = o || s, l = Math.max(0, Math.floor(k(e.slotStartIndex ?? e.startAbs, 0))), u = Math.max(l, Math.floor(k(e.slotEndIndex ?? e.endAbs, l + a))), d = await Je(e, t), f = c ? Math.max(a, i.length, u) : a, p = await O({
748
+ let { config: n } = e, r = N(n, "chart.grid.labels.xAxisLabels", {}), i = j(N(n, "chart.grid.labels.xAxisLabels.values", [])), a = Math.max(0, ...t.map((e) => j(e.plots).length)), o = e.slotStartIndex !== void 0 || e.startAbs !== void 0, s = e.slotEndIndex !== void 0 || e.endAbs !== void 0, c = o || s, l = Math.max(0, Math.floor(O(e.slotStartIndex ?? e.startAbs, 0))), u = Math.max(l, Math.floor(O(e.slotEndIndex ?? e.endAbs, l + a))), d = await Je(e, t), f = c ? Math.max(a, i.length, u) : a, p = await D({
749
749
  values: i,
750
750
  maxDatapoints: f,
751
- formatter: P(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
751
+ formatter: N(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
752
752
  start: 0,
753
753
  end: f
754
- }), m = d.map((e) => e?.text ?? ""), h = p.map((e) => e?.text ?? ""), g = Math.max(1, Math.floor(k(r.modulo, 1))), _ = p.length || f, v = b({
754
+ }), m = d.map((e) => e?.text ?? ""), h = p.map((e) => e?.text ?? ""), g = Math.max(1, Math.floor(O(r.modulo, 1))), v = p.length || f, b = y({
755
755
  configuredModulo: g,
756
756
  visibleTexts: m,
757
757
  allTexts: h,
758
758
  startAbs: l,
759
- isZoomed: c && _ > 0 && (l > 0 || u < _)
760
- }), x = y(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, v, m, h, l, e.selectedXIndex ?? null, m.length);
759
+ isZoomed: c && v > 0 && (l > 0 || u < v)
760
+ }), x = _(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, b, m, h, l, e.selectedXIndex ?? null, m.length);
761
761
  if (!r.showFirstAndLast || r.showOnlyFirstAndLast || !x.length) return x;
762
762
  let S = x.length - 1;
763
763
  return x.map((e, t) => t !== 0 && t !== S ? e : {
@@ -773,52 +773,52 @@ function Ze(e, t, n, r) {
773
773
  }
774
774
  function Qe(e) {
775
775
  let t = e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {};
776
- return r(t, "chart.grid.labels.xAxisLabels.rotation") ? k(P(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : P(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? k(P(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : k(P(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
776
+ return E(t, "chart.grid.labels.xAxisLabels.rotation") ? O(N(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : N(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? O(N(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : O(N(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
777
777
  }
778
778
  async function $e(e, t) {
779
779
  let { config: n, drawingArea: r } = e;
780
- if (!t[0] || !P(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
781
- P(n, "chart.grid.labels.xAxisLabels", {});
782
- let i = k(P(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), a = P(n, "chart.grid.labels.xAxisLabels.color", P(n, "chart.grid.labels.color", "#2A2A2A")), s = Qe(e), c = Math.max(1, t[0].plots.length), l = await Xe(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle", d = l.map((t, l) => {
780
+ if (!t[0] || !N(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
781
+ N(n, "chart.grid.labels.xAxisLabels", {});
782
+ let i = O(N(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), o = N(n, "chart.grid.labels.xAxisLabels.color", N(n, "chart.grid.labels.color", "#2A2A2A")), s = Qe(e), c = Math.max(1, t[0].plots.length), l = await Xe(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle", d = l.map((t, l) => {
783
783
  let d = typeof t == "string" ? t : t?.text;
784
784
  if (!d) return "";
785
785
  let f = `translate(${Ze(e, t, l, c)}, ${r.bottom + i * 1.5}), rotate(${s})`;
786
- return String(d).includes("\n") ? F("text", {
786
+ return String(d).includes("\n") ? P("text", {
787
787
  class: "vue-data-ui-time-label",
788
788
  "data-cy": "time-label",
789
789
  "text-anchor": u,
790
790
  "font-size": i,
791
- stroke: P(n, "chart.backgroundColor", "#FFFFFF"),
791
+ stroke: N(n, "chart.backgroundColor", "#FFFFFF"),
792
792
  "stroke-linecap": "round",
793
793
  "stroke-linejoin": "round",
794
794
  "paint-order": "stroke fill",
795
- fill: a,
795
+ fill: o,
796
796
  transform: f
797
- }, o({
797
+ }, a({
798
798
  content: String(d),
799
799
  fontSize: i,
800
- fill: a,
801
- stroke: P(n, "chart.backgroundColor", "#FFFFFF"),
800
+ fill: o,
801
+ stroke: N(n, "chart.backgroundColor", "#FFFFFF"),
802
802
  x: 0,
803
803
  y: 0
804
- })) : I(d, {
804
+ })) : F(d, {
805
805
  class: "vue-data-ui-time-label",
806
806
  "data-cy": "time-label",
807
807
  "text-anchor": u,
808
808
  "font-size": i,
809
- stroke: P(n, "chart.backgroundColor", "#FFFFFF"),
809
+ stroke: N(n, "chart.backgroundColor", "#FFFFFF"),
810
810
  "stroke-linecap": "round",
811
811
  "stroke-linejoin": "round",
812
812
  "paint-order": "stroke fill",
813
- fill: a,
813
+ fill: o,
814
814
  transform: f
815
815
  });
816
816
  }).join("");
817
- return F("g", { "data-layer": "x-axis-labels" }, d);
817
+ return P("g", { "data-layer": "x-axis-labels" }, d);
818
818
  }
819
819
  function et(e) {
820
- let { config: t, drawingArea: n, height: r } = e, i = q(t), a = P(t, "chart.grid.labels.axis.xLabel", ""), o = P(t, "chart.grid.labels.axis.yLabel", ""), s = P(t, "chart.grid.labels.axis.color", P(t, "chart.grid.labels.color", "#2A2A2A")), c = k(P(t, "chart.grid.labels.axis.yLabelOffsetX", 0), 0), l = k(P(t, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), u = k(P(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = k(P(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = k(P(t, "chart.grid.labels.yAxis.labelWidth", 0), 0), p = J(t), m = [];
821
- if (a && m.push(I(a, {
820
+ let { config: t, drawingArea: n, height: r } = e, i = q(t), a = N(t, "chart.grid.labels.axis.xLabel", ""), o = N(t, "chart.grid.labels.axis.yLabel", ""), s = N(t, "chart.grid.labels.axis.color", N(t, "chart.grid.labels.color", "#2A2A2A")), c = O(N(t, "chart.grid.labels.axis.yLabelOffsetX", 0), 0), l = O(N(t, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), u = O(N(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = O(N(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = O(N(t, "chart.grid.labels.yAxis.labelWidth", 0), 0), p = J(t), m = [];
821
+ if (a && m.push(F(a, {
822
822
  x: n.left + n.width / 2,
823
823
  y: Math.min(r - 4, n.bottom + i.xAxis * 3 + l),
824
824
  "font-size": i.yAxis,
@@ -826,7 +826,7 @@ function et(e) {
826
826
  fill: s
827
827
  })), o) {
828
828
  let e = p ? n.right + u + d + 5 + f + c : n.scaleLabelX - u - d - f - c, t = n.top + n.height / 2;
829
- m.push(I(o, {
829
+ m.push(F(o, {
830
830
  x: e,
831
831
  y: t,
832
832
  transform: `rotate(-90 ${e} ${t})`,
@@ -835,28 +835,28 @@ function et(e) {
835
835
  fill: s
836
836
  }));
837
837
  }
838
- return F("g", { "data-layer": "axis-labels" }, m.join(""));
838
+ return P("g", { "data-layer": "axis-labels" }, m.join(""));
839
839
  }
840
840
  async function tt(e, t) {
841
- let { config: n, drawingArea: r } = e, i = P(n, "chart.grid.labels.xAxisLabels.show", !0), a = P(n, "chart.grid.labels.xAxis.showCrosshairs", !1);
841
+ let { config: n, drawingArea: r } = e, i = N(n, "chart.grid.labels.xAxisLabels.show", !0), a = N(n, "chart.grid.labels.xAxis.showCrosshairs", !1);
842
842
  if (!i || !a || !t[0]) return "";
843
- let o = k(P(n, "chart.grid.labels.xAxis.crosshairSize", 6), 6), s = !!P(n, "chart.grid.labels.xAxis.crosshairsAlwaysAtZero", !1), c = Math.max(1, t[0].plots.length), l = await Xe(e, t), u = U(e), d = l.map((t, n) => {
843
+ let o = O(N(n, "chart.grid.labels.xAxis.crosshairSize", 6), 6), s = !!N(n, "chart.grid.labels.xAxis.crosshairsAlwaysAtZero", !1), c = Math.max(1, t[0].plots.length), l = await Xe(e, t), u = U(e), d = l.map((t, n) => {
844
844
  if (!(typeof t == "string" ? t : t?.text)) return "";
845
845
  let i = Z(e) ? t.x : Q(e, n, c);
846
846
  return `M${i},${s ? u - (u === r.bottom ? 0 : o / 2) : r.bottom} L${i},${s ? u + o / (u === r.bottom ? 1 : 2) : r.bottom + o}`;
847
847
  }).filter(Boolean).join(" ");
848
- return d ? F("g", { "data-layer": "x-axis-ticks" }, A("path", {
848
+ return d ? P("g", { "data-layer": "x-axis-ticks" }, k("path", {
849
849
  d,
850
- stroke: P(n, "chart.grid.stroke", "#CCCCCC"),
850
+ stroke: N(n, "chart.grid.stroke", "#CCCCCC"),
851
851
  "stroke-width": 1,
852
852
  "stroke-linecap": "round",
853
853
  "data-cy": "axis-x-tick"
854
854
  })) : "";
855
855
  }
856
856
  function nt(e, t) {
857
- let { config: n, width: r } = e, i = P(n, "chart.legend", {}), a = k(i.fontSize, 12), o = k(i.markerSize, 10), s = k(i.itemGap, 16), c = k(i.rowGap, 8), l = k(i.padding, 8), u = Math.max(1, r - l * 2), d = [], f = [], p = 0;
857
+ let { config: n, width: r } = e, i = N(n, "chart.legend", {}), a = O(i.fontSize, 12), o = O(i.markerSize, 10), s = O(i.itemGap, 16), c = O(i.rowGap, 8), l = O(i.padding, 8), u = Math.max(1, r - l * 2), d = [], f = [], p = 0;
858
858
  return t.forEach((e) => {
859
- let t = String(e.name ?? ""), n = o + 6 + j(t, a) + s;
859
+ let t = String(e.name ?? ""), n = o + 6 + A(t, a) + s;
860
860
  f.length && p + n > u && (d.push({
861
861
  items: f,
862
862
  width: p
@@ -880,19 +880,19 @@ function nt(e, t) {
880
880
  }
881
881
  function rt(e, t) {
882
882
  let { config: n, width: r, height: i } = e;
883
- if (!P(n, "chart.legend.show", !0) || !t.length) return "";
884
- let a = P(n, "chart.legend", {}), o = a.position || "bottom", s = a.color || P(n, "chart.color", "#2A2A2A"), c = nt(e, t), l = Math.max(c.markerSize, c.fontSize), u = o === "top" ? c.padding + l : i - c.height + c.padding + l, d = [];
883
+ if (!N(n, "chart.legend.show", !0) || !t.length) return "";
884
+ let a = N(n, "chart.legend", {}), o = a.position || "bottom", s = a.color || N(n, "chart.color", "#2A2A2A"), c = nt(e, t), l = Math.max(c.markerSize, c.fontSize), u = o === "top" ? c.padding + l : i - c.height + c.padding + l, d = [];
885
885
  return c.rows.forEach((e, t) => {
886
886
  let n = Math.max(c.padding, r / 2 - e.width / 2), i = u + t * (l + c.rowGap);
887
887
  e.items.forEach(({ serie: e, label: t, itemWidth: r }) => {
888
- d.push(A("rect", {
888
+ d.push(k("rect", {
889
889
  x: n,
890
890
  y: i - c.markerSize / 2,
891
891
  width: c.markerSize,
892
892
  height: c.markerSize,
893
893
  rx: 2,
894
894
  fill: e.color
895
- })), d.push(I(t, {
895
+ })), d.push(F(t, {
896
896
  x: n + c.markerSize + 6,
897
897
  y: i + 2,
898
898
  "font-size": c.fontSize,
@@ -900,63 +900,63 @@ function rt(e, t) {
900
900
  fill: s
901
901
  })), n += r;
902
902
  });
903
- }), F("g", { "data-layer": "legend" }, d.join(""));
903
+ }), P("g", { "data-layer": "legend" }, d.join(""));
904
904
  }
905
905
  function it(e, t) {
906
906
  return `areaGradient_${t}_${W()}`;
907
907
  }
908
908
  function at(e, t) {
909
909
  let { config: n } = e;
910
- if (!P(n, "line.area.useGradient", !1)) return "";
911
- let r = k(P(n, "line.area.opacity", 30), 30), i = t.filter((e) => e.type === "line" && e.useArea).map((t, n) => F("linearGradient", {
910
+ if (!N(n, "line.area.useGradient", !1)) return "";
911
+ let r = O(N(n, "line.area.opacity", 30), 30), i = t.filter((e) => e.type === "line" && e.useArea).map((t, n) => P("linearGradient", {
912
912
  id: it(e, n),
913
913
  x1: "0%",
914
914
  x2: "0%",
915
915
  y1: "0%",
916
916
  y2: "100%"
917
- }, [A("stop", {
917
+ }, [k("stop", {
918
918
  offset: "0%",
919
- "stop-color": w(s(f(t.color), .03), r),
919
+ "stop-color": o(h(u(t.color), .03), r),
920
920
  "stop-opacity": 1
921
- }), A("stop", {
921
+ }), k("stop", {
922
922
  offset: "100%",
923
923
  "stop-color": t.color,
924
924
  "stop-opacity": 0
925
925
  })].join(""))).join("");
926
- return i ? F("defs", {}, i) : "";
926
+ return i ? P("defs", {}, i) : "";
927
927
  }
928
- function ot(e, t) {
929
- let { config: r } = e, i = !!P(r, "line.cutNullValues", !1), a = [];
930
- return t.filter((e) => e.type === "line" && e.useArea).forEach((t, r) => {
931
- let o = M(t.plots), s = o.filter((e) => e && e.value !== null);
928
+ function ot(e, n) {
929
+ let { config: r } = e, i = !!N(r, "line.cutNullValues", !1), a = [];
930
+ return n.filter((e) => e.type === "line" && e.useArea).forEach((n, r) => {
931
+ let o = j(n.plots), s = o.filter((e) => e && e.value !== null);
932
932
  if (s.length < 2) return;
933
- let c = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), l = Te(e, t, r);
934
- if (t.smooth && !t.useStepper) {
935
- u(i ? o : s, c, i).forEach((e) => {
936
- e && a.push(A("path", {
933
+ let l = Number.isFinite(Number(n.__zeroY)) ? Number(n.__zeroY) : U(e), u = Te(e, n, r);
934
+ if (n.smooth && !n.useStepper) {
935
+ c(i ? o : s, l, i).forEach((e) => {
936
+ e && a.push(k("path", {
937
937
  d: e,
938
- fill: l,
938
+ fill: u,
939
939
  "data-cy": "datapoint-line-area-smooth"
940
940
  }));
941
941
  });
942
942
  return;
943
943
  }
944
- (t.useStepper ? m(i ? o : s, c) : i ? n(o, c) : S(s, c)).split(";").filter(Boolean).forEach((e) => {
945
- a.push(A("path", {
944
+ (n.useStepper ? f(i ? o : s, l) : i ? t(o, l) : x(s, l)).split(";").filter(Boolean).forEach((e) => {
945
+ a.push(k("path", {
946
946
  d: `M${e}Z`,
947
- fill: l,
947
+ fill: u,
948
948
  "data-cy": "datapoint-line-area-straight"
949
949
  }));
950
950
  });
951
- }), F("g", { "data-layer": "line-areas" }, a.join(""));
951
+ }), P("g", { "data-layer": "line-areas" }, a.join(""));
952
952
  }
953
953
  function st(e, t) {
954
- let n = k(t.slotStartIndex ?? t.startAbs, 0);
955
- return M(e.dashIndices).map((e) => Number(e) - n).filter(Number.isFinite);
954
+ let n = O(t.slotStartIndex ?? t.startAbs, 0);
955
+ return j(e.dashIndices).map((e) => Number(e) - n).filter(Number.isFinite);
956
956
  }
957
957
  function ct(e, t, n, r, i) {
958
- let { config: a } = e, o = k(t.strokeWidth || P(a, "line.strokeWidth", 2), 2);
959
- return A("path", {
958
+ let { config: a } = e, o = O(t.strokeWidth || N(a, "line.strokeWidth", 2), 2);
959
+ return k("path", {
960
960
  d: `M${r}`,
961
961
  fill: "none",
962
962
  stroke: Se(e, t, n),
@@ -967,49 +967,49 @@ function ct(e, t, n, r, i) {
967
967
  });
968
968
  }
969
969
  function lt(e, t) {
970
- let { config: n } = e, r = t.filter((e) => e.type === "line"), o = !!P(n, "line.cutNullValues", !1), s = [];
971
- return r.forEach((t, r) => {
972
- let c = o ? M(t.plots) : M(t.plots).filter((e) => e.value !== null), u = c.filter((e) => e.value !== null);
973
- if (!(u.length < 2)) {
974
- if (M(t.dashIndices).length > 0 && !t.useStepper) {
975
- let a = st(t, e);
976
- (t.smooth || P(n, "line.smooth", !1) ? l(c, a) : i(c, a)).forEach((n) => {
977
- n?.path && s.push(ct(e, t, r, n.path, !!n.dashed));
970
+ let { config: r } = e, a = t.filter((e) => e.type === "line"), o = !!N(r, "line.cutNullValues", !1), c = [];
971
+ return a.forEach((t, a) => {
972
+ let u = o ? j(t.plots) : j(t.plots).filter((e) => e.value !== null), m = u.filter((e) => e.value !== null);
973
+ if (!(m.length < 2)) {
974
+ if (j(t.dashIndices).length > 0 && !t.useStepper) {
975
+ let i = st(t, e);
976
+ (t.smooth || N(r, "line.smooth", !1) ? s(u, i) : n(u, i)).forEach((n) => {
977
+ n?.path && c.push(ct(e, t, a, n.path, !!n.dashed));
978
978
  });
979
979
  return;
980
980
  }
981
- (t.useStepper ? m(c).split(";").filter(Boolean) : [t.smooth || P(n, "line.smooth", !1) ? o ? a(c) : d(u) : o ? g(c) : p(u, !1, !0)]).forEach((n) => {
982
- n && s.push(ct(e, t, r, n, !!t.dashed));
981
+ (t.useStepper ? f(u).split(";").filter(Boolean) : [t.smooth || N(r, "line.smooth", !1) ? o ? i(u) : l(m) : o ? p(u) : d(m, !1, !0)]).forEach((n) => {
982
+ n && c.push(ct(e, t, a, n, !!t.dashed));
983
983
  });
984
984
  }
985
- }), F("g", { "data-layer": "lines" }, s.join(""));
985
+ }), P("g", { "data-layer": "lines" }, c.join(""));
986
986
  }
987
987
  function ut(e, t, n) {
988
988
  let { config: r } = e;
989
- return P(r, "plot.useGradient", !1) ? `url(#${Ce(e, n)})` : P(r, "plot.dot.useSerieColor", !0) ? t.color : P(r, "plot.dot.fill", t.color);
989
+ return N(r, "plot.useGradient", !1) ? `url(#${Ce(e, n)})` : N(r, "plot.dot.useSerieColor", !0) ? t.color : N(r, "plot.dot.fill", t.color);
990
990
  }
991
991
  function $(e, t) {
992
- let n = P(e.config, "bar.border", {});
992
+ let n = N(e.config, "bar.border", {});
993
993
  return {
994
994
  stroke: n.useSerieColor ? t.color : n.stroke,
995
- "stroke-width": k(n.strokeWidth, 0)
995
+ "stroke-width": O(n.strokeWidth, 0)
996
996
  };
997
997
  }
998
998
  function dt(e, t) {
999
- let { config: n } = e, r = t.filter((e) => e.type === "plot"), i = P(n, "plot.radius", 4), a = P(n, "plot.dot.strokeWidth", 2), o = P(n, "chart.backgroundColor", "#FFFFFF"), s = [];
999
+ let { config: n } = e, r = t.filter((e) => e.type === "plot"), i = N(n, "plot.radius", 4), a = N(n, "plot.dot.strokeWidth", 2), o = N(n, "chart.backgroundColor", "#FFFFFF"), s = [];
1000
1000
  return r.forEach((t, r) => {
1001
1001
  t.plots.forEach((c, l) => {
1002
- ae(c.value) && s.push(N({
1002
+ oe(c.value) && s.push(M({
1003
1003
  dataCy: `xy-plot-${r}-${l}`,
1004
1004
  shape: t.shape,
1005
1005
  plot: c,
1006
1006
  radius: t.radius || i,
1007
1007
  fill: ut(e, t, r),
1008
- stroke: P(n, "plot.dot.useSerieColor", !0) ? o : t.color,
1008
+ stroke: N(n, "plot.dot.useSerieColor", !0) ? o : t.color,
1009
1009
  strokeWidth: a
1010
1010
  }));
1011
1011
  });
1012
- }), F("g", { "data-layer": "plots" }, s.join(""));
1012
+ }), P("g", { "data-layer": "plots" }, s.join(""));
1013
1013
  }
1014
1014
  function ft(e) {
1015
1015
  return ![
@@ -1022,46 +1022,46 @@ function ft(e) {
1022
1022
  }
1023
1023
  function pt(e, t, n) {
1024
1024
  let r = e[t - 1], i = e[t + 1], a = !!r && !!i && r.value == null && i.value == null || !r && !!i && i.value == null || !!r && !i && r.value == null;
1025
- return ft(e[t]?.value) && a && !!P(n, "line.cutNullValues", !1);
1025
+ return ft(e[t]?.value) && a && !!N(n, "line.cutNullValues", !1);
1026
1026
  }
1027
1027
  function mt(e, t, n, r, i) {
1028
1028
  let { config: a } = e;
1029
1029
  if (!n || !ft(n.value)) return !1;
1030
- if (!(i > k(P(a, "line.dot.hideAboveMaxSerieLength", Infinity), Infinity))) return !0;
1030
+ if (!(i > O(N(a, "line.dot.hideAboveMaxSerieLength", Infinity), Infinity))) return !0;
1031
1031
  let o = e.selectedSerieIndex ?? null, s = e.selectedMinimapIndex ?? null;
1032
1032
  return o !== null && o === r || s !== null && s === r || pt(t.plots, r, a);
1033
1033
  }
1034
1034
  function ht(e, t) {
1035
- let { config: n } = e, r = t.filter((e) => e.type === "line"), i = Math.max(0, ...r.map((e) => M(e.plots).length)), a = P(n, "line.radius", 4), o = P(n, "line.dot.strokeWidth", 2), s = P(n, "chart.backgroundColor", "#FFFFFF"), c = [];
1035
+ let { config: n } = e, r = t.filter((e) => e.type === "line"), i = Math.max(0, ...r.map((e) => j(e.plots).length)), a = N(n, "line.radius", 4), o = N(n, "line.dot.strokeWidth", 2), s = N(n, "chart.backgroundColor", "#FFFFFF"), c = [];
1036
1036
  return r.forEach((t, r) => {
1037
1037
  t.plots.forEach((l, u) => {
1038
- mt(e, t, l, u, i) && c.push(N({
1038
+ mt(e, t, l, u, i) && c.push(M({
1039
1039
  dataCy: "datapoint-line-plot",
1040
1040
  shape: t.shape,
1041
1041
  plot: l,
1042
1042
  radius: t.radius || a,
1043
1043
  fill: we(e, t, r),
1044
- stroke: P(n, "line.dot.useSerieColor", !0) ? s : t.color,
1044
+ stroke: N(n, "line.dot.useSerieColor", !0) ? s : t.color,
1045
1045
  strokeWidth: o
1046
1046
  }));
1047
1047
  });
1048
- }), F("g", { "data-layer": "line-dots" }, c.join(""));
1048
+ }), P("g", { "data-layer": "line-dots" }, c.join(""));
1049
1049
  }
1050
1050
  function gt(e, t) {
1051
1051
  let { config: n } = e;
1052
1052
  if (Y(n)) return "";
1053
- let r = P(n, "line.interLine", {}), i = M(r.pairs), a = M(r.colors);
1053
+ let r = N(n, "line.interLine", {}), i = j(r.pairs), a = j(r.colors);
1054
1054
  if (!i.length) return "";
1055
- let o = t.filter((e) => e.type === "line"), s = k(r.fillOpacity, .2), c = !!P(n, "line.cutNullValues", !1), l = [];
1055
+ let o = t.filter((e) => e.type === "line"), s = O(r.fillOpacity, .2), c = !!N(n, "line.cutNullValues", !1), l = [];
1056
1056
  return i.forEach((e, t) => {
1057
1057
  let [n, r] = Array.isArray(e) ? e : [e?.a, e?.b];
1058
1058
  if (!n || !r) return;
1059
1059
  let i = o.find((e) => e.name === n), u = o.find((e) => e.name === r);
1060
1060
  if (!i || !u) return;
1061
1061
  let d = a?.[t]?.[0] ?? i.color, f = a?.[t]?.[1] ?? u.color;
1062
- C({
1063
- lineA: M(i.plots),
1064
- lineB: M(u.plots),
1062
+ S({
1063
+ lineA: j(i.plots),
1064
+ lineB: j(u.plots),
1065
1065
  smoothA: !!i.smooth,
1066
1066
  smoothB: !!u.smooth,
1067
1067
  colorLineA: d,
@@ -1069,7 +1069,7 @@ function gt(e, t) {
1069
1069
  sampleStepPx: 2,
1070
1070
  cutNullValues: c
1071
1071
  }).forEach((e, i) => {
1072
- l.push(A("path", {
1072
+ l.push(k("path", {
1073
1073
  "data-cy": "interline-area",
1074
1074
  d: e.d,
1075
1075
  fill: e.color,
@@ -1079,58 +1079,58 @@ function gt(e, t) {
1079
1079
  "data-key": `inter_${n}_${r}_${t}_${i}`
1080
1080
  }));
1081
1081
  });
1082
- }), l.length ? F("g", { "data-layer": "interline-areas" }, l.join("")) : "";
1082
+ }), l.length ? P("g", { "data-layer": "interline-areas" }, l.join("")) : "";
1083
1083
  }
1084
1084
  function _t(e) {
1085
- let t = P(e, "chart.title", {}), n = P(t, "subtitle", {});
1085
+ let t = N(e, "chart.title", {}), n = N(t, "subtitle", {});
1086
1086
  if (!t.show) return 0;
1087
- let r = k(t.fontSize, 20), i = n.text ? k(n.fontSize, 14) : 0, a = k(t.paddingTop, 12), o = k(t.paddingBottom, 6);
1087
+ let r = O(t.fontSize, 20), i = n.text ? O(n.fontSize, 14) : 0, a = O(t.paddingTop, 12), o = O(t.paddingBottom, 6);
1088
1088
  return a + r + (n.text ? i + 4 : 0) + o;
1089
1089
  }
1090
1090
  function vt(e) {
1091
- let { config: t, width: n } = e, r = P(t, "chart.title", {}), i = P(r, "subtitle", {});
1091
+ let { config: t, width: n } = e, r = N(t, "chart.title", {}), i = N(r, "subtitle", {});
1092
1092
  if (!r.show || !r.text) return "";
1093
- let a = r.textAlign || "center", o = a === "left" ? k(r.paddingLeft, 12) : a === "right" ? n - k(r.paddingRight, 12) : n / 2, s = a === "left" ? "start" : a === "right" ? "end" : "middle", c = k(r.fontSize, 20), l = k(i.fontSize, 14), u = k(r.paddingTop, 12) + c, d = [I(r.text, {
1093
+ let a = r.textAlign || "center", o = a === "left" ? O(r.paddingLeft, 12) : a === "right" ? n - O(r.paddingRight, 12) : n / 2, s = a === "left" ? "start" : a === "right" ? "end" : "middle", c = O(r.fontSize, 20), l = O(i.fontSize, 14), u = O(r.paddingTop, 12) + c, d = [F(r.text, {
1094
1094
  "data-cy": "xy-div-title",
1095
1095
  x: o,
1096
1096
  y: u,
1097
1097
  "font-size": c,
1098
1098
  "font-weight": r.bold ? "700" : "400",
1099
1099
  "text-anchor": s,
1100
- fill: r.color || P(t, "chart.color", "#2A2A2A")
1100
+ fill: r.color || N(t, "chart.color", "#2A2A2A")
1101
1101
  })];
1102
- return i.text && d.push(I(i.text, {
1102
+ return i.text && d.push(F(i.text, {
1103
1103
  "data-cy": "xy-div-subtitle",
1104
1104
  x: o,
1105
1105
  y: u + l + 4,
1106
1106
  "font-size": l,
1107
1107
  "font-weight": i.bold ? "700" : "400",
1108
1108
  "text-anchor": s,
1109
- fill: i.color || r.color || P(t, "chart.color", "#2A2A2A")
1110
- })), F("g", { "data-layer": "title" }, d.join(""));
1109
+ fill: i.color || r.color || N(t, "chart.color", "#2A2A2A")
1110
+ })), P("g", { "data-layer": "title" }, d.join(""));
1111
1111
  }
1112
1112
  function yt(e) {
1113
1113
  if (!e.svgTitle) return "";
1114
1114
  let t = [e.svgTitle];
1115
- return F("desc", { "aria-hidden": "true" }, t.join(""));
1115
+ return P("desc", { "aria-hidden": "true" }, t.join(""));
1116
1116
  }
1117
1117
  function bt(e, t, n, r, i) {
1118
- return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !P(e.config, "dataLabels.show", !0) || !P(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
1118
+ return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !N(e.config, "dataLabels.show", !0) || !N(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
1119
1119
  }
1120
1120
  function xt(t, n, r, i) {
1121
- let { config: a } = t, s = k(P(a, `${i}.labels.fontSize`, P(a, "chart.labels.fontSize", 12)), 12), c = P(a, `${i}.labels.color`, P(a, "chart.color", "#2A2A2A")), l = e({
1122
- p: n.prefix || P(a, "chart.labels.prefix", ""),
1121
+ let { config: o } = t, s = O(N(o, `${i}.labels.fontSize`, N(o, "chart.labels.fontSize", 12)), 12), c = N(o, `${i}.labels.color`, N(o, "chart.color", "#2A2A2A")), l = e({
1122
+ p: n.prefix || N(o, "chart.labels.prefix", ""),
1123
1123
  v: r.value,
1124
- s: n.suffix || P(a, "chart.labels.suffix", ""),
1125
- r: P(a, `${i}.labels.rounding`, 0)
1124
+ s: n.suffix || N(o, "chart.labels.suffix", ""),
1125
+ r: N(o, `${i}.labels.rounding`, 0)
1126
1126
  }), u = Z(t) && Number.isFinite(Number(r.x)) ? `x: ${e({
1127
1127
  v: r.x,
1128
- r: P(a, "chart.grid.labels.xAxis.rounding", 0)
1129
- })}\ny: ${l}` : x(P(a, `${i}.labels.formatter`, null), r.value, l, {
1128
+ r: N(o, "chart.grid.labels.xAxis.rounding", 0)
1129
+ })}\ny: ${l}` : b(N(o, `${i}.labels.formatter`, null), r.value, l, {
1130
1130
  datapoint: r,
1131
1131
  serie: n
1132
1132
  });
1133
- return o({
1133
+ return a({
1134
1134
  content: u,
1135
1135
  fontSize: s,
1136
1136
  fill: c,
@@ -1139,52 +1139,52 @@ function xt(t, n, r, i) {
1139
1139
  });
1140
1140
  }
1141
1141
  function St(e, t, n) {
1142
- let r = P(e.config, `${n}.labels.textAnchor`, null);
1143
- return r === null ? k(P(e.config, `${n}.labels.rotation`, 0), 0) === 0 ? "middle" : P(e.config, `${n}.labels.alwaysOnTop`, !1) || t.value >= 0 ? "start" : "end" : r;
1142
+ let r = N(e.config, `${n}.labels.textAnchor`, null);
1143
+ return r === null ? O(N(e.config, `${n}.labels.rotation`, 0), 0) === 0 ? "middle" : N(e.config, `${n}.labels.alwaysOnTop`, !1) || t.value >= 0 ? "start" : "end" : r;
1144
1144
  }
1145
1145
  function Ct(e, t, n) {
1146
- let r = k(P(e.config, `${n}.labels.offsetX`, 0), 0), i = k(P(e.config, `${n}.labels.offsetY`, -12), -12), a = k(P(e.config, `${n}.labels.rotation`, 0), 0), o = !!P(e.config, `${n}.labels.alwaysOnTop`, !1);
1146
+ let r = O(N(e.config, `${n}.labels.offsetX`, 0), 0), i = O(N(e.config, `${n}.labels.offsetY`, -12), -12), a = O(N(e.config, `${n}.labels.rotation`, 0), 0), o = !!N(e.config, `${n}.labels.alwaysOnTop`, !1);
1147
1147
  return `translate(${t.x + r}, ${t.y + (o || t.value >= 0 ? i : -i * 3)}) rotate(${a})`;
1148
1148
  }
1149
1149
  function wt(e, t, n) {
1150
- let r = k(P(e.config, "bar.labels.offsetX", 0), 0), i = k(P(e.config, "bar.labels.offsetY", -6), -6), a = k(P(e.config, "bar.labels.rotation", 0), 0), o = !!P(e.config, "bar.labels.alwaysOnTop", !1), s = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), c = Math.abs(s - n.y), l = n.__barLabelX ?? n.x, u = n.y + (o ? i - (n.value < 0 ? c : 0) : n.value >= 0 ? i : -i * 3);
1150
+ let r = O(N(e.config, "bar.labels.offsetX", 0), 0), i = O(N(e.config, "bar.labels.offsetY", -6), -6), a = O(N(e.config, "bar.labels.rotation", 0), 0), o = !!N(e.config, "bar.labels.alwaysOnTop", !1), s = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), c = Math.abs(s - n.y), l = n.__barLabelX ?? n.x, u = n.y + (o ? i - (n.value < 0 ? c : 0) : n.value >= 0 ? i : -i * 3);
1151
1151
  return `translate(${l + r}, ${u}) rotate(${a})`;
1152
1152
  }
1153
1153
  function Tt(e, t) {
1154
- let { config: n } = e, r = k(P(n, "chart.labels.fontSize", 12), 12), i = P(n, "chart.backgroundColor", "#FFFFFF"), a = [];
1154
+ let { config: n } = e, r = O(N(n, "chart.labels.fontSize", 12), 12), i = N(n, "chart.backgroundColor", "#FFFFFF"), a = [];
1155
1155
  return t.forEach((t) => {
1156
- M(t.plots).forEach((o, s) => {
1156
+ j(t.plots).forEach((o, s) => {
1157
1157
  let c = t.type;
1158
1158
  [
1159
1159
  "line",
1160
1160
  "bar",
1161
1161
  "plot"
1162
- ].includes(c) && bt(e, t, o, s, c) && a.push(F("text", {
1162
+ ].includes(c) && bt(e, t, o, s, c) && a.push(P("text", {
1163
1163
  "data-cy": `datapoint-${c}-label`,
1164
1164
  transform: c === "bar" ? wt(e, t, o) : Ct(e, o, c),
1165
1165
  "text-anchor": St(e, o, c),
1166
- "font-size": P(n, `${c}.labels.fontSize`, r),
1167
- fill: P(n, `${c}.labels.color`, P(n, "chart.color", "#2A2A2A")),
1166
+ "font-size": N(n, `${c}.labels.fontSize`, r),
1167
+ fill: N(n, `${c}.labels.color`, N(n, "chart.color", "#2A2A2A")),
1168
1168
  stroke: i,
1169
1169
  "paint-order": "stroke"
1170
1170
  }, xt(e, t, o, c)));
1171
1171
  });
1172
- }), F("g", { "data-layer": "datapoint-labels" }, a.join(""));
1172
+ }), P("g", { "data-layer": "datapoint-labels" }, a.join(""));
1173
1173
  }
1174
1174
  function Et(e) {
1175
- return k(e.slotStartIndex ?? e.startAbs, 0);
1175
+ return O(e.slotStartIndex ?? e.startAbs, 0);
1176
1176
  }
1177
1177
  function Dt(e, t) {
1178
- let n = Math.max(0, ...t.map((e) => M(e.plots).length));
1179
- return k(e.slotEndIndex ?? e.endAbs, n);
1178
+ let n = Math.max(0, ...t.map((e) => j(e.plots).length));
1179
+ return O(e.slotEndIndex ?? e.endAbs, n);
1180
1180
  }
1181
1181
  function Ot(e, t) {
1182
1182
  let { drawingArea: n, config: r } = e;
1183
- return P(r, "chart.grid.position", "middle") === "middle" ? n.width / Math.max(1, t) : n.width / Math.max(1, t - 1);
1183
+ return N(r, "chart.grid.position", "middle") === "middle" ? n.width / Math.max(1, t) : n.width / Math.max(1, t - 1);
1184
1184
  }
1185
1185
  function kt(e, t, n) {
1186
1186
  let { drawingArea: r, config: i } = e, a = Ot(e, n);
1187
- return P(i, "chart.grid.position", "middle") === "middle" ? r.left + a * t : r.left + a * t - a / 2;
1187
+ return N(i, "chart.grid.position", "middle") === "middle" ? r.left + a * t : r.left + a * t - a / 2;
1188
1188
  }
1189
1189
  function At(e, t) {
1190
1190
  return Ot(e, t);
@@ -1192,51 +1192,51 @@ function At(e, t) {
1192
1192
  function jt(e, t, n, r, i, a) {
1193
1193
  let { drawingArea: o } = e, s = t.caption ?? {};
1194
1194
  if (!s.text) return "";
1195
- let c = At(e, a) * i, l = s.width === "auto" ? c : k(s.width, c), u = kt(e, r, a) - (s.width === "auto" ? 0 : l / 2 - c / 2), d = o.top + k(s.offsetY, 0);
1196
- return F("foreignObject", {
1195
+ let c = At(e, a) * i, l = s.width === "auto" ? c : O(s.width, c), u = kt(e, r, a) - (s.width === "auto" ? 0 : l / 2 - c / 2), d = o.top + O(s.offsetY, 0);
1196
+ return P("foreignObject", {
1197
1197
  "data-key": `highlight_area_caption_${n}`,
1198
1198
  x: u,
1199
1199
  y: d,
1200
1200
  width: l,
1201
1201
  height: 1,
1202
1202
  overflow: "visible"
1203
- }, F("div", {
1203
+ }, P("div", {
1204
1204
  xmlns: "http://www.w3.org/1999/xhtml",
1205
1205
  "data-cy": "highlight-area-caption",
1206
1206
  style: [
1207
- `padding:${k(s.padding, 0)}px`,
1207
+ `padding:${O(s.padding, 0)}px`,
1208
1208
  `text-align:${s.textAlign || "center"}`,
1209
- `font-size:${k(s.fontSize, 12)}px`,
1209
+ `font-size:${O(s.fontSize, 12)}px`,
1210
1210
  `color:${s.color || "#2A2A2A"}`,
1211
1211
  `font-weight:${s.bold ? "bold" : "normal"}`
1212
1212
  ].join(";")
1213
- }, te(s.text)));
1213
+ }, ne(s.text)));
1214
1214
  }
1215
1215
  function Mt(e, t) {
1216
- let { config: n, drawingArea: r } = e, i = M(P(n, "chart.highlightArea", []));
1216
+ let { config: n, drawingArea: r } = e, i = j(N(n, "chart.highlightArea", []));
1217
1217
  if (!i.length) return "";
1218
- let a = Math.max(1, ...t.map((e) => M(e.plots).length)), o = Et(e), s = Dt(e, t), c = [];
1218
+ let a = Math.max(1, ...t.map((e) => j(e.plots).length)), s = Et(e), c = Dt(e, t), l = [];
1219
1219
  return i.forEach((t, n) => {
1220
1220
  if (!t?.show) return;
1221
- let i = k(t.from, 0), l = Math.min(k(t.to, i), a - 1);
1222
- if (l < i) return;
1223
- for (let u = i; u <= l; u += 1) {
1224
- if (u < o || u > s - 1) continue;
1225
- let i = u - o;
1226
- c.push(A("rect", {
1221
+ let i = O(t.from, 0), u = Math.min(O(t.to, i), a - 1);
1222
+ if (u < i) return;
1223
+ for (let d = i; d <= u; d += 1) {
1224
+ if (d < s || d > c - 1) continue;
1225
+ let i = d - s;
1226
+ l.push(k("rect", {
1227
1227
  "data-cy": "highlight-area",
1228
- "data-key": `highlight_area_${n}_${u}`,
1228
+ "data-key": `highlight_area_${n}_${d}`,
1229
1229
  x: kt(e, i, a),
1230
1230
  y: r.top,
1231
1231
  width: At(e, a),
1232
1232
  height: Math.max(1, r.height),
1233
- fill: w(t.color, k(t.opacity, 20)),
1233
+ fill: o(t.color, O(t.opacity, 20)),
1234
1234
  "pointer-events": "none"
1235
1235
  }));
1236
1236
  }
1237
- let u = Math.max(i, o);
1238
- u <= Math.min(l, s - 1) && c.push(jt(e, t, n, u - o, l - i + 1, a));
1239
- }), c.length ? F("g", { "data-layer": "highlight-areas" }, c.join("")) : "";
1237
+ let d = Math.max(i, s);
1238
+ d <= Math.min(u, c - 1) && l.push(jt(e, t, n, d - s, u - i + 1, a));
1239
+ }), l.length ? P("g", { "data-layer": "highlight-areas" }, l.join("")) : "";
1240
1240
  }
1241
1241
  function Nt(e, t) {
1242
1242
  if (t == null) return null;
@@ -1244,15 +1244,15 @@ function Nt(e, t) {
1244
1244
  return i - (Number(t) - 0) / a * n.height;
1245
1245
  }
1246
1246
  function Pt(e) {
1247
- return j(e.text, k(e.fontSize, 12));
1247
+ return A(e.text, O(e.fontSize, 12));
1248
1248
  }
1249
1249
  function Ft(e, t, n) {
1250
- let r = k(e.fontSize, 12), i = e.padding ?? {}, a = e.border ?? {}, o = Pt(e), s = r, c;
1251
- return c = e.textAnchor === "middle" ? t - o / 2 - k(i.left, 0) : e.textAnchor === "end" ? t - o - k(i.right, 0) : t - k(i.left, 0), {
1250
+ let r = O(e.fontSize, 12), i = e.padding ?? {}, a = e.border ?? {}, o = Pt(e), s = r, c;
1251
+ return c = e.textAnchor === "middle" ? t - o / 2 - O(i.left, 0) : e.textAnchor === "end" ? t - o - O(i.right, 0) : t - O(i.left, 0), {
1252
1252
  x: c,
1253
- y: n - s * .75 - k(i.top, 0),
1254
- width: o + k(i.left, 0) + k(i.right, 0),
1255
- height: s + k(i.top, 0) + k(i.bottom, 0),
1253
+ y: n - s * .75 - O(i.top, 0),
1254
+ width: o + O(i.left, 0) + O(i.right, 0),
1255
+ height: s + O(i.top, 0) + O(i.bottom, 0),
1256
1256
  fill: e.backgroundColor,
1257
1257
  stroke: a.stroke,
1258
1258
  rx: a.rx,
@@ -1263,62 +1263,62 @@ function Ft(e, t, n) {
1263
1263
  function It(e) {
1264
1264
  let { config: t, drawingArea: n } = e;
1265
1265
  if (Y(t)) return "";
1266
- let r = M(P(t, "chart.annotations", [])).filter((e) => e?.show && (e.yAxis?.yTop !== null || e.yAxis?.yBottom !== null) && (e.yAxis?.yTop !== void 0 || e.yAxis?.yBottom !== void 0));
1266
+ let r = j(N(t, "chart.annotations", [])).filter((e) => e?.show && (e.yAxis?.yTop !== null || e.yAxis?.yBottom !== null) && (e.yAxis?.yTop !== void 0 || e.yAxis?.yBottom !== void 0));
1267
1267
  if (!r.length) return "";
1268
1268
  let i = [];
1269
1269
  return r.forEach((t, r) => {
1270
- let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {}, l = a.yTop, u = a.yBottom, d = l != null && u != null && l !== u, f = Nt(e, l), p = Nt(e, u), m = Number.isFinite(f), h = Number.isFinite(p);
1271
- if (!m && !h) return;
1272
- let g = [];
1273
- if (m && g.push(A("line", {
1270
+ let a = t.yAxis ?? {}, s = a.label ?? {}, c = a.line ?? {}, l = a.area ?? {}, u = a.yTop, d = a.yBottom, f = u != null && d != null && u !== d, p = Nt(e, u), m = Nt(e, d), h = Number.isFinite(p), g = Number.isFinite(m);
1271
+ if (!h && !g) return;
1272
+ let _ = [];
1273
+ if (h && _.push(k("line", {
1274
1274
  x1: n.left,
1275
- y1: f,
1275
+ y1: p,
1276
1276
  x2: n.right,
1277
- y2: f,
1278
- stroke: s.stroke,
1279
- "stroke-width": s.strokeWidth,
1280
- "stroke-dasharray": s.strokeDasharray,
1277
+ y2: p,
1278
+ stroke: c.stroke,
1279
+ "stroke-width": c.strokeWidth,
1280
+ "stroke-dasharray": c.strokeDasharray,
1281
1281
  "stroke-linecap": "round",
1282
1282
  "data-cy": "xy-annotation-y-top-line"
1283
- })), h && g.push(A("line", {
1283
+ })), g && _.push(k("line", {
1284
1284
  x1: n.left,
1285
- y1: p,
1285
+ y1: m,
1286
1286
  x2: n.right,
1287
- y2: p,
1288
- stroke: s.stroke,
1289
- "stroke-width": s.strokeWidth,
1290
- "stroke-dasharray": s.strokeDasharray,
1287
+ y2: m,
1288
+ stroke: c.stroke,
1289
+ "stroke-width": c.strokeWidth,
1290
+ "stroke-dasharray": c.strokeDasharray,
1291
1291
  "stroke-linecap": "round",
1292
1292
  "data-cy": "xy-annotation-y-bottom-line"
1293
- })), d && m && h && g.push(A("rect", {
1293
+ })), f && h && g && _.push(k("rect", {
1294
1294
  x: n.left,
1295
- y: Math.min(f, p),
1295
+ y: Math.min(p, m),
1296
1296
  width: n.width,
1297
- height: Math.abs(f - p),
1298
- fill: w(c.fill, k(c.opacity, 20)),
1297
+ height: Math.abs(p - m),
1298
+ fill: o(l.fill, O(l.opacity, 20)),
1299
1299
  "data-cy": "xy-annotation-y-area",
1300
1300
  "pointer-events": "none"
1301
- })), o.text) {
1302
- let e = o.padding ?? {}, t = m && h ? Math.min(f, p) : m ? f : p, r = (o.position === "start" ? n.left + k(e.left, 0) : n.right - k(e.right, 0)) + k(o.offsetX, 0), i = t - k(o.fontSize, 12) / 3 + k(o.offsetY, 0) - k(e.top, 0), a = Ft(o, r, i);
1303
- Number.isFinite(a.y) && Number.isFinite(i) && (g.push(A("rect", {
1301
+ })), s.text) {
1302
+ let e = s.padding ?? {}, t = h && g ? Math.min(p, m) : h ? p : m, r = (s.position === "start" ? n.left + O(e.left, 0) : n.right - O(e.right, 0)) + O(s.offsetX, 0), i = t - O(s.fontSize, 12) / 3 + O(s.offsetY, 0) - O(e.top, 0), a = Ft(s, r, i);
1303
+ Number.isFinite(a.y) && Number.isFinite(i) && (_.push(k("rect", {
1304
1304
  class: "vue-ui-xy-annotation-label-box",
1305
1305
  ...a,
1306
1306
  "data-cy": "xy-annotation-label-box"
1307
- })), g.push(I(o.text, {
1307
+ })), _.push(F(s.text, {
1308
1308
  class: "vue-ui-xy-annotation-label",
1309
1309
  x: r,
1310
1310
  y: i,
1311
- "font-size": o.fontSize,
1312
- fill: o.color,
1313
- "text-anchor": o.textAnchor,
1311
+ "font-size": s.fontSize,
1312
+ fill: s.color,
1313
+ "text-anchor": s.textAnchor,
1314
1314
  "data-cy": "xy-annotation-label"
1315
1315
  })));
1316
1316
  }
1317
- i.push(F("g", {
1317
+ i.push(P("g", {
1318
1318
  "data-layer": "annotation",
1319
1319
  "data-key": `annotation_y_${r}`
1320
- }, g.join("")));
1321
- }), i.length ? F("g", { "data-layer": "annotations" }, i.join("")) : "";
1320
+ }, _.join("")));
1321
+ }), i.length ? P("g", { "data-layer": "annotations" }, i.join("")) : "";
1322
1322
  }
1323
1323
  function Lt(e, t) {
1324
1324
  let n = e.additionalSvgContent;
@@ -1330,12 +1330,12 @@ function Lt(e, t) {
1330
1330
  config: e.config,
1331
1331
  series: t.map((e) => ({
1332
1332
  ...e,
1333
- plots: M(e.plots).map((e) => ({ ...e }))
1333
+ plots: j(e.plots).map((e) => ({ ...e }))
1334
1334
  }))
1335
1335
  }) ?? "" : n ?? "";
1336
1336
  }
1337
1337
  async function Rt(e) {
1338
- let t = e.config, n = k(e.width, t.chart.width ?? 1e3), r = k(e.height, t.chart.height ?? 600), i = ve({
1338
+ let t = e.config, n = O(e.width, t.chart.width ?? 1e3), r = O(e.height, t.chart.height ?? 600), i = ve({
1339
1339
  ...e,
1340
1340
  config: t,
1341
1341
  width: n,
@@ -1345,16 +1345,16 @@ async function Rt(e) {
1345
1345
  config: t,
1346
1346
  width: n,
1347
1347
  height: r,
1348
- scale: pe(t, e.scale, i)
1348
+ scale: me(t, e.scale, i)
1349
1349
  }, i), o = a.series;
1350
1350
  return `
1351
1351
  <svg
1352
- xmlns="${T}"
1352
+ xmlns="${w}"
1353
1353
  width="100%"
1354
1354
  viewBox="0 0 ${n} ${r}"
1355
1355
  role="img"
1356
1356
  >
1357
- ${ie()}
1357
+ ${ae()}
1358
1358
  ${yt(a)}
1359
1359
  ${at(a, o)}
1360
1360
  ${Ee(a, o)}
@@ -1381,7 +1381,7 @@ async function Rt(e) {
1381
1381
  //#endregion
1382
1382
  //#region src/svg/vue-ui-xy/index.js
1383
1383
  async function zt(e = {}) {
1384
- return await Rt(de(e));
1384
+ return await Rt(fe(e));
1385
1385
  }
1386
1386
  //#endregion
1387
1387
  export { zt as t };