vue-data-ui 3.23.0 → 3.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,25 +1,25 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, A as n, B as r, Bt as i, Ct as a, D as o, Et as s, G as c, Gt as l, H as u, I as ee, Jt as te, Kt as ne, L as re, Lt as d, M as f, N as ie, P as ae, Pt as oe, S as se, St as ce, U as le, V as ue, Vt as de, W as fe, X as pe, _ as me, b as p, c as m, d as h, dt as he, i as g, jt as ge, k as _e, l as ve, n as ye, o as be, ot as _, q as xe, qt as Se, r as Ce, tt as we, v as Te, vt as Ee, w as De, xt as Oe, z as ke, zt as Ae } from "./lib-BuMGJ_a0.js";
2
+ import { $ as t, A as n, B as r, Bt as i, Ct as a, D as o, Et as s, G as c, Gt as l, H as u, I as ee, Jt as te, Kt as ne, L as re, Lt as d, M as f, N as ie, P as ae, Pt as oe, S as se, St as ce, U as le, V as ue, Vt as de, W as fe, X as pe, _ as me, b as p, c as m, d as h, dt as he, i as g, jt as ge, k as _e, l as ve, n as ye, o as be, ot as _, q as xe, qt as Se, r as Ce, tt as we, v as Te, vt as Ee, w as De, xt as Oe, z as ke, zt as Ae } from "./lib-Bttd6u5E.js";
3
3
  import { n as je, t as Me } from "./useHints-Dq_w2E8B.js";
4
- import { n as Ne, r as Pe, t as Fe } from "./useTimeLabels-B9CEuiLZ.js";
5
- import { t as Ie } from "./useConfig-BilxnBNr.js";
6
- import { t as Le } from "./usePrinter-BFvi4jVy.js";
4
+ import { n as Ne, r as Pe, t as Fe } from "./useTimeLabels-d2f-W1L4.js";
5
+ import { t as Ie } from "./useConfig-DlNpz6P8.js";
6
+ import { t as Le } from "./usePrinter-DN5bYhTG.js";
7
7
  import { n as Re, t as ze } from "./BaseScanner-DZvpgOjM.js";
8
- import { t as Be } from "./useSvgExport-Ba9qBr9M.js";
9
- import { t as Ve } from "./useNestedProp--NSEmhOH.js";
10
- import { t as He } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as Be } from "./useNestedProp-vPNvh7rV.js";
9
+ import { t as Ve } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as He } from "./useChartExport-DNiwdPmb.js";
11
11
  import { t as Ue } from "./useTransitions-g_zBREk2.js";
12
12
  import { t as We } from "./useStableElementSize-C7KADDKj.js";
13
13
  import { t as Ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
- import { t as Ke } from "./img-DIQG5q8T.js";
15
- import { n as qe } from "./Title-BODtwViI.js";
14
+ import { t as Ke } from "./img-Bnokohej.js";
15
+ import { n as qe } from "./Title-BE3qg9xl.js";
16
16
  import { t as Je } from "./vue_ui_xy-BA3-_LCx.js";
17
- import { t as Ye } from "./Shape-BPMV94Ij.js";
17
+ import { t as Ye } from "./Shape-C21CMlWS.js";
18
18
  import { t as Xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
19
19
  import { t as Ze } from "./DefGrad-DVBqDjhO.js";
20
- import { t as Qe } from "./SlicerPreview-DvjLV2TW.js";
21
- import { t as $e } from "./vue-ui-accordion-61MlW-Ge.js";
22
- import { t as et } from "./BaseLegendToggle-CtAPwzr2.js";
20
+ import { t as Qe } from "./SlicerPreview-wUw1hFwe.js";
21
+ import { t as $e } from "./vue-ui-accordion-DegI2lzR.js";
22
+ import { t as et } from "./BaseLegendToggle-DZVucLnv.js";
23
23
  import { t as tt } from "./A11yDataTable-DdRsVULz.js";
24
24
  import { Fragment as v, Teleport as nt, computed as y, createBlock as rt, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as it, createTextVNode as at, createVNode as ot, defineAsyncComponent as st, getCurrentInstance as ct, guardReactiveProps as lt, mergeProps as ut, nextTick as dt, normalizeClass as C, normalizeProps as ft, normalizeStyle as w, onBeforeUnmount as pt, onMounted as mt, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as ht, shallowRef as gt, toDisplayString as k, toRefs as _t, unref as A, useSlots as vt, vModelCheckbox as yt, watch as bt, watchEffect as xt, withCtx as j, withDirectives as St } from "vue";
25
25
  //#region src/utils/xy.js
@@ -568,93 +568,92 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
568
568
  "copyAlt"
569
569
  ],
570
570
  setup(e, { expose: Xe, emit: Mt }) {
571
- let M = e, ui = st(() => import("./DataTable-D4tM9s5Y.js")), di = st(() => import("./Tooltip-CMTGxeYO.js")), fi = st(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), pi = st(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), mi = st(() => import("./vue-ui-table-sparkline-CABJzK8p.js").then((e) => e.n)), hi = st(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), gi = st(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), _i = st(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), vi = Mt, yi = vt(), bi = ct(), { vue_ui_xy: xi } = Ie(), { isThemeValid: Si, warnInvalidTheme: Ci } = He(), wi = E(null), Ti = E(null), Ei = E(null), Di = E(null), Oi = E(null), ki = E(null), Ai = E(null), ji = E(null), Mi = E(null), Ni = E(null), Pi = E(null), Fi = E(null), Ii = E(null), Li = E(null), Ri = E(0), N = E(null), zi = E(!0), Bi = E(600), P = E(1e3), Vi = E("0 0 1000 600"), Hi = E({
571
+ let M = e, ui = st(() => import("./DataTable-BbKgJ5UI.js")), di = st(() => import("./Tooltip-DhjyfHwz.js")), fi = st(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), pi = st(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), mi = st(() => import("./vue-ui-table-sparkline-l1cUX3ny.js").then((e) => e.n)), hi = st(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), gi = st(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), _i = st(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), vi = Mt, yi = vt(), bi = ct(), { vue_ui_xy: xi } = Ie(), { isThemeValid: Si, warnInvalidTheme: Ci } = Ve(), wi = E(null), Ti = E(null), Ei = E(null), Di = E(null), Oi = E(null), ki = E(null), Ai = E(null), ji = E(null), Mi = E(null), Ni = E(null), Pi = E(null), Fi = E(null), Ii = E(null), Li = E(null), Ri = E(0), N = E(null), zi = E(!0), Bi = E(600), P = E(1e3), Vi = E("0 0 1000 600"), Hi = E({
572
572
  x: 0,
573
573
  y: 0
574
574
  }), Ui = E({
575
575
  line: "line",
576
576
  bar: "bar",
577
577
  plot: "plot"
578
- }), Wi = E(!1), Gi = E(!1), Ki = E(!1), qi = E(null), Ji = E([]), Yi = y(() => new Set(Ji.value)), F = E(xe()), Xi = E(0), Zi = E(0), Qi = E(0), $i = E(!0), ea = E(0), I = E(null), ta = E(!1), na = E(!0), ra = E(!0), L = E(null), ia = E({}), aa = E(null), oa = E(!1), sa = E(null), ca = E(!1), la = E(!1), ua = E(null), R = E(null), da = E(null), fa = E({
578
+ }), Wi = E(!1), Gi = E(!1), Ki = E(!1), qi = E(null), Ji = E([]), Yi = y(() => new Set(Ji.value)), F = E(xe()), Xi = E(0), Zi = E(0), Qi = E(0), $i = E(!0), ea = E(0), I = E(null), ta = E(!1), na = E(!0), ra = E(!0), L = E(null), ia = E({}), aa = E(null), oa = E(!1), sa = E(null), ca = E(null), R = E(null), la = E(null), ua = E({
579
579
  x: 0,
580
580
  y: 0
581
- }), pa = E(null), ma = E(null), z = E(null), ha = E(null), ga = E(null), _a = gt(null), va = E(!1), ya = E(0), ba = E(0), xa = We({
582
- elementRef: _a,
581
+ }), da = E(null), fa = E(null), z = E(null), pa = E(null), ma = E(null), ha = gt(null), ga = E(!1), _a = E(0), va = E(0), ya = We({
582
+ elementRef: ha,
583
583
  minimumWidth: 2,
584
584
  minimumHeight: 2,
585
585
  stableFramesRequired: 2,
586
586
  once: !1,
587
587
  onSizeAccepted: () => {
588
- wa();
588
+ Sa();
589
589
  }
590
590
  });
591
- function Sa() {
592
- _a.value = wi.value?.parentNode ?? null;
591
+ function ba() {
592
+ ha.value = wi.value?.parentNode ?? null;
593
593
  }
594
- function Ca() {
594
+ function xa() {
595
595
  return new Promise((e) => {
596
596
  requestAnimationFrame(() => {
597
597
  requestAnimationFrame(e);
598
598
  });
599
599
  });
600
600
  }
601
- async function wa() {
602
- let e = ++ba.value;
603
- va.value = !1, await dt(), await Ca(), await Ca(), e === ba.value && (ya.value += 1, va.value = !0);
601
+ async function Sa() {
602
+ let e = ++va.value;
603
+ ga.value = !1, await dt(), await xa(), await xa(), e === va.value && (_a.value += 1, ga.value = !0);
604
604
  }
605
- let Ta = E(!1);
606
- function Ea() {
607
- Ta.value || (Ta.value = !0, dt(() => {
608
- Ta.value = !1, Sa(), wa();
605
+ let Ca = E(!1);
606
+ function wa() {
607
+ Ca.value || (Ca.value = !0, dt(() => {
608
+ Ca.value = !1, ba(), Sa();
609
609
  }));
610
610
  }
611
- let Da = y(() => ({
611
+ let Ta = y(() => ({
612
612
  height: Bi.value,
613
613
  width: P.value
614
- })), Oa = E(!1), ka = E(null), Aa = E(null), B = E({
614
+ })), Ea = E(!1), Da = E(null), Oa = E(null), B = E({
615
615
  xAxis: 18,
616
616
  yAxis: 12,
617
617
  dataLabels: 20,
618
618
  plotLabels: 10
619
- }), ja = E({
619
+ }), ka = E({
620
620
  plot: 3,
621
621
  line: 3,
622
622
  selectedLine: 3
623
- }), Ma = y(() => Math.max(ja.value.line * 1.5, ja.value.selectedLine));
623
+ }), Aa = y(() => Math.max(ka.value.line * 1.5, ka.value.selectedLine));
624
624
  mt(() => {
625
- oa.value = !0, M.dataset.length && M.dataset.forEach((e, t) => {
625
+ oa.value = !0, M.dataset.length && La.value && M.dataset.forEach((e, t) => {
626
626
  [null, void 0].includes(e.series) && we({
627
627
  componentName: "VueUiXy",
628
628
  type: "datasetSerieAttribute",
629
629
  property: "series (number[])",
630
- index: t,
631
- debug: za.value
630
+ index: t
632
631
  });
633
- }), Sa(), xa.start(), wa();
632
+ }), ba(), ya.start(), Sa();
634
633
  });
635
- function Na() {
634
+ function ja() {
636
635
  if (!Object.keys(M.config || {}).length) return xi;
637
- let e = Ve({
636
+ let e = Be({
638
637
  userConfig: M.config,
639
638
  defaultConfig: xi
640
639
  });
641
- M.config && Ee(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea : e.chart.highlightArea = [M.config.chart.highlightArea]), M.config && Ee(M.config, "chart.annotations") && Array.isArray(M.config.chart.annotations) && M.config.chart.annotations.length ? e.chart.annotations = M.config.chart.annotations.map((e) => Ve({
640
+ M.config && Ee(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea : e.chart.highlightArea = [M.config.chart.highlightArea]), M.config && Ee(M.config, "chart.annotations") && Array.isArray(M.config.chart.annotations) && M.config.chart.annotations.length ? e.chart.annotations = M.config.chart.annotations.map((e) => Be({
642
641
  defaultConfig: xi.chart.annotations[0],
643
642
  userConfig: e
644
- })) : e.chart.annotations = [], M.config && Ee(M.config, "chart.grid.position") && M.config.chart.grid.position === "start" && M.dataset.length && M.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", Ee(M.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), M.config && Ee(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea.map((e) => Pa({
643
+ })) : e.chart.annotations = [], M.config && Ee(M.config, "chart.grid.position") && M.config.chart.grid.position === "start" && M.dataset.length && M.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", Ee(M.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), M.config && Ee(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea.map((e) => Ma({
645
644
  defaultConfig: xi.chart.highlightArea,
646
645
  userConfig: e
647
- })) : e.chart.highlightArea = Pa({
646
+ })) : e.chart.highlightArea = Ma({
648
647
  defaultConfig: xi.chart.highlightArea,
649
648
  userConfig: M.config.chart.highlightArea
650
649
  }));
651
650
  let t = e.theme;
652
651
  if (!t) return e;
653
652
  if (!Si.value(e)) return Ci(e), e;
654
- let n = Ve({
653
+ let n = Be({
655
654
  userConfig: Je[t] || M.config,
656
655
  defaultConfig: e
657
- }), r = Ve({
656
+ }), r = Be({
658
657
  userConfig: M.config,
659
658
  defaultConfig: n
660
659
  });
@@ -663,20 +662,20 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
663
662
  customPalette: r.customPalette.length ? r.customPalette : ne[t] || oe
664
663
  };
665
664
  }
666
- function Pa({ defaultConfig: e, userConfig: t }) {
667
- return Ve({
665
+ function Ma({ defaultConfig: e, userConfig: t }) {
666
+ return Be({
668
667
  defaultConfig: e,
669
668
  userConfig: t
670
669
  });
671
670
  }
672
- let Fa = y({
671
+ let Na = y({
673
672
  get() {
674
673
  return !!M.dataset && M.dataset.length;
675
674
  },
676
675
  set(e) {
677
676
  return e;
678
677
  }
679
- }), V = E(Na());
678
+ }), V = E(ja());
680
679
  je({
681
680
  config: () => V.value,
682
681
  dataset: () => M.dataset,
@@ -715,31 +714,31 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
715
714
  }
716
715
  ]
717
716
  });
718
- let { transitionEnabled: Ia } = Ue({
717
+ let { transitionEnabled: Pa } = Ue({
719
718
  config: () => V.value.transitions,
720
719
  dataset: () => M.dataset
721
- }), La = y(() => V.value.chart.userOptions.useCursorPointer), H = E({
720
+ }), Fa = y(() => V.value.chart.userOptions.useCursorPointer), H = E({
722
721
  dataLabels: { show: !0 },
723
722
  showTooltip: !0,
724
723
  showTable: !1,
725
724
  isStacked: !1,
726
725
  useIndividualScale: !1
727
726
  });
728
- function Ra() {
727
+ function Ia() {
729
728
  let e = V.value.chart.grid.labels.yAxis.stacked, t = V.value.chart.grid.labels.yAxis.useIndividualScale;
730
- if (!Oa.value) {
729
+ if (!Ea.value) {
731
730
  H.value = {
732
731
  dataLabels: { show: !0 },
733
732
  showTooltip: V.value.chart.tooltip.show === !0,
734
733
  showTable: V.value.showTable === !0,
735
734
  isStacked: e,
736
735
  useIndividualScale: t
737
- }, ka.value = e, Aa.value = t, Oa.value = !0;
736
+ }, Da.value = e, Oa.value = t, Ea.value = !0;
738
737
  return;
739
738
  }
740
- H.value.showTooltip = V.value.chart.tooltip.show === !0, e !== ka.value && (H.value.isStacked = e, ka.value = e), t !== Aa.value && (H.value.useIndividualScale = t, Aa.value = t), H.value.isStacked && (H.value.useIndividualScale = !0);
739
+ H.value.showTooltip = V.value.chart.tooltip.show === !0, e !== Da.value && (H.value.isStacked = e, Da.value = e), t !== Oa.value && (H.value.useIndividualScale = t, Oa.value = t), H.value.isStacked && (H.value.useIndividualScale = !0);
741
740
  }
742
- let za = y(() => !!V.value.debug), Ba = y(() => te({
741
+ let La = y(() => V.value.debug), Ra = y(() => te({
743
742
  defaultConfig: {
744
743
  useCssAnimation: !1,
745
744
  showTable: !1,
@@ -795,7 +794,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
795
794
  }
796
795
  },
797
796
  userConfig: V.value.skeletonConfig ?? {}
798
- })), Va = y(() => M.config?.skeletonDataset ?? [{
797
+ })), za = y(() => M.config?.skeletonDataset ?? [{
799
798
  name: "",
800
799
  series: [
801
800
  0,
@@ -832,67 +831,67 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
832
831
  ],
833
832
  type: "bar",
834
833
  color: "#CACACA"
835
- }]), { loading: Ha, FINAL_DATASET: Ua, manualLoading: Wa } = Re({
834
+ }]), { loading: Ba, FINAL_DATASET: Va, manualLoading: Ha } = Re({
836
835
  ..._t(M),
837
836
  FINAL_CONFIG: V,
838
- prepareConfig: Na,
837
+ prepareConfig: ja,
839
838
  callback: () => {
840
839
  Promise.resolve().then(async () => {
841
- (!V.value.chart.zoom.keepState || !as.value || U.value.start === 0 && U.value.end === 0) && await cs(), H.value.showTable = V.value.showTable;
840
+ (!V.value.chart.zoom.keepState || !rs.value || U.value.start === 0 && U.value.end === 0) && await os(), H.value.showTable = V.value.showTable;
842
841
  });
843
842
  },
844
- skeletonDataset: Va.value,
843
+ skeletonDataset: za.value,
845
844
  skeletonConfig: te({
846
845
  defaultConfig: V.value,
847
- userConfig: Ba.value
846
+ userConfig: Ra.value
848
847
  })
849
- }), Ga = Ot((e, t) => s({
848
+ }), Ua = Ot((e, t) => s({
850
849
  data: e,
851
850
  threshold: t
852
- })), Ka = (e) => Ga(e, V.value.downsample.threshold), qa = y(() => {
851
+ })), Wa = (e) => Ua(e, V.value.downsample.threshold), Ga = y(() => {
853
852
  let e = V.value.downsample.threshold;
854
- return Ua.value.map((t) => Ga(t.series, e).length);
855
- }), Ja = y(() => {
853
+ return Va.value.map((t) => Ua(t.series, e).length);
854
+ }), Ka = y(() => {
856
855
  let e = -Infinity;
857
- for (let t = 0; t < qa.value.length; t += 1) {
858
- let n = qa.value[t];
856
+ for (let t = 0; t < Ga.value.length; t += 1) {
857
+ let n = Ga.value[t];
859
858
  n > e && (e = n);
860
859
  }
861
860
  return e;
862
- }), Ya = y(() => {
861
+ }), qa = y(() => {
863
862
  let e = 0;
864
- for (let t = 0; t < qa.value.length; t += 1) {
865
- let n = qa.value[t];
863
+ for (let t = 0; t < Ga.value.length; t += 1) {
864
+ let n = Ga.value[t];
866
865
  n > e && (e = n);
867
866
  }
868
867
  return e;
869
- }), Xa = y(() => Ja.value), U = E({
868
+ }), Ja = y(() => Ka.value), U = E({
870
869
  start: 0,
871
- end: Xa.value
872
- }), Za = E({
870
+ end: Ja.value
871
+ }), Ya = E({
873
872
  start: 0,
874
- end: Xa.value
875
- }), Qa = y(() => V.value.chart.zoom.preview.enable && (Za.value.start !== U.value.start || Za.value.end !== U.value.end));
876
- function $a(e, t) {
877
- Za.value[e] = t;
873
+ end: Ja.value
874
+ }), Xa = y(() => V.value.chart.zoom.preview.enable && (Ya.value.start !== U.value.start || Ya.value.end !== U.value.end));
875
+ function Za(e, t) {
876
+ Ya.value[e] = t;
878
877
  }
879
- function eo() {
878
+ function Qa() {
880
879
  if (G.value) {
881
- let e = nl.value.min, t = nl.value.max, n = Number(U.value.start), r = Number(U.value.end);
880
+ let e = el.value.min, t = el.value.max, n = Number(U.value.start), r = Number(U.value.end);
882
881
  Number.isFinite(n) || (n = e), Number.isFinite(r) || (r = t), n = Math.max(e, Math.min(n, t)), r = Math.max(n, Math.min(r, t)), r <= n && (n = e, r = t), U.value = {
883
882
  start: n,
884
883
  end: r
885
- }, Za.value.start = n, Za.value.end = r, Ei.value && (Ei.value.setStartValue(n), Ei.value.setEndValue(r));
884
+ }, Ya.value.start = n, Ya.value.end = r, Ei.value && (Ei.value.setStartValue(n), Ei.value.setEndValue(r));
886
885
  return;
887
886
  }
888
- let e = Math.max(1, ...Ua.value.map((e) => Ka(e.series).length)), t = Math.max(0, Math.min(U.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(U.value.end ?? e, e));
887
+ let e = Math.max(1, ...Va.value.map((e) => Wa(e.series).length)), t = Math.max(0, Math.min(U.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(U.value.end ?? e, e));
889
888
  (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), U.value = {
890
889
  start: t,
891
890
  end: n
892
- }, Za.value.start = t, Za.value.end = n, Ei.value && (Ei.value.setStartValue(t), Ei.value.setEndValue(n));
891
+ }, Ya.value.start = t, Ya.value.end = n, Ei.value && (Ei.value.setStartValue(t), Ei.value.setEndValue(n));
893
892
  }
894
- let to = y(() => {
895
- let { left: e, top: t, width: n, height: r } = J.value, i = U.value.start, a = U.value.end - i, o = n / a, s = Za.value.start - i, c = Za.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
893
+ let $a = y(() => {
894
+ let { left: e, top: t, width: n, height: r } = J.value, i = U.value.start, a = U.value.end - i, o = n / a, s = Ya.value.start - i, c = Ya.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
896
895
  return {
897
896
  x: e + l * o,
898
897
  y: t,
@@ -919,51 +918,51 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
919
918
  let t = e - U.value.start;
920
919
  t < 0 || e >= U.value.end ? R.value = null : R.value = t ?? null;
921
920
  }, { immediate: !0 });
922
- let { isPrinting: no, isImaging: ro, generatePdf: io, generateImage: ao } = Le({
921
+ let { isPrinting: eo, isImaging: to, generatePdf: no, generateImage: ro } = Le({
923
922
  elementId: `vue-ui-xy_${F.value}`,
924
923
  fileName: V.value.chart.title.text || "vue-ui-xy",
925
924
  options: V.value.chart.userOptions.print
926
- }), oo = E(!1), so = y(() => De(V.value.customPalette)), co = y(() => {
925
+ }), io = E(!1), ao = y(() => De(V.value.customPalette)), oo = y(() => {
927
926
  let e = V.value.chart.grid.labels.yAxis.scaleMin;
928
927
  if (e == null) return null;
929
928
  let t = Number(e);
930
929
  return Number.isFinite(t) ? t : null;
931
- }), lo = y(() => co.value === null ? Os.value : J.value.bottom), uo = y(() => {
930
+ }), so = y(() => oo.value === null ? Es.value : J.value.bottom), co = y(() => {
932
931
  let e = V.value.chart.grid.labels.yAxis.scaleMax;
933
932
  if (e == null) return null;
934
933
  let t = Number(e);
935
934
  return Number.isFinite(t) ? t : null;
936
- }), fo = y(() => co.value !== null || uo.value !== null), po = y(() => Gc(So.value.filter((e) => !Yi.value.has(e.id)), 0, 1)), mo = y(() => {
937
- let { min: e, max: t } = po.value;
938
- if (!fo.value) {
935
+ }), lo = y(() => oo.value !== null || co.value !== null), uo = y(() => Uc(bo.value.filter((e) => !Yi.value.has(e.id)), 0, 1)), fo = y(() => {
936
+ let { min: e, max: t } = uo.value;
937
+ if (!lo.value) {
939
938
  let t = e;
940
939
  return t > 0 ? 0 : t;
941
940
  }
942
- let n = co.value === null ? e > 0 ? 0 : e : co.value, r = uo.value === null ? t : uo.value;
941
+ let n = oo.value === null ? e > 0 ? 0 : e : oo.value, r = co.value === null ? t : co.value;
943
942
  return kt(e < n ? e : n, t > r ? t : r).min;
944
- }), ho = y(() => {
945
- let { min: e, max: t } = po.value;
946
- if (!fo.value) {
943
+ }), po = y(() => {
944
+ let { min: e, max: t } = uo.value;
945
+ if (!lo.value) {
947
946
  let e = t;
948
- return mo.value === e ? e + 1 : e;
947
+ return fo.value === e ? e + 1 : e;
949
948
  }
950
- let n = co.value === null ? e > 0 ? 0 : e : co.value, r = uo.value === null ? t : uo.value;
949
+ let n = oo.value === null ? e > 0 ? 0 : e : oo.value, r = co.value === null ? t : co.value;
951
950
  return kt(e < n ? e : n, t > r ? t : r).max;
952
- }), W = y(() => V.value.chart.grid.labels.yAxis.useNiceScale ? me(mo.value, ho.value < 0 ? 0 : ho.value, V.value.chart.grid.labels.yAxis.commonScaleSteps) : Te(mo.value, ho.value < 0 ? 0 : ho.value, V.value.chart.grid.labels.yAxis.commonScaleSteps)), go = y(() => [null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) ? W.value.min >= 0 ? 0 : Math.abs(W.value.min) : -W.value.min), G = y(() => Ua.value.some((e) => Array.isArray(e.series) && e.series.some(Et)));
951
+ }), W = y(() => V.value.chart.grid.labels.yAxis.useNiceScale ? me(fo.value, po.value < 0 ? 0 : po.value, V.value.chart.grid.labels.yAxis.commonScaleSteps) : Te(fo.value, po.value < 0 ? 0 : po.value, V.value.chart.grid.labels.yAxis.commonScaleSteps)), mo = y(() => [null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) ? W.value.min >= 0 ? 0 : Math.abs(W.value.min) : -W.value.min), G = y(() => Va.value.some((e) => Array.isArray(e.series) && e.series.some(Et)));
953
952
  xt(() => {
954
- G.value && Ua.value.some((e) => !yo(e)) && console.warn("Vue Data UI - VueUiXy: mixed continuous and non-continuous series are not supported in the same chart.\n\nContinuous mode requires all visible 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nSeries of type 'bar' and standard numeric series are ignored in continuous mode to prevent runtime errors.\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard [number, number, number...] format.");
953
+ G.value && Va.value.some((e) => !_o(e)) && console.warn("Vue Data UI - VueUiXy: mixed continuous and non-continuous series are not supported in the same chart.\n\nContinuous mode requires all visible 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nSeries of type 'bar' and standard numeric series are ignored in continuous mode to prevent runtime errors.\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard [number, number, number...] format.");
955
954
  });
956
- function _o(e) {
955
+ function ho(e) {
957
956
  return e && typeof e == "object" && e.x === null && e.y === null;
958
957
  }
959
- function vo(e) {
960
- return Array.isArray(e) && e.some((e) => Et(e) || _o(e));
958
+ function go(e) {
959
+ return Array.isArray(e) && e.some((e) => Et(e) || ho(e));
961
960
  }
962
- function yo(e) {
963
- return !G.value || ["line", "plot"].includes(e.type) && vo(e.series);
961
+ function _o(e) {
962
+ return !G.value || ["line", "plot"].includes(e.type) && go(e.series);
964
963
  }
965
- function bo(e, t) {
966
- return _o(e) ? {
964
+ function vo(e, t) {
965
+ return ho(e) ? {
967
966
  x: null,
968
967
  y: null,
969
968
  index: t,
@@ -985,38 +984,38 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
985
984
  isInvalid: !1
986
985
  };
987
986
  }
988
- function xo(e) {
987
+ function yo(e) {
989
988
  return G.value ? e && typeof e == "object" ? e.y : null : e;
990
989
  }
991
- let So = y(() => !zi.value && !G.value ? Ua.value : Ua.value.map((e, t) => {
992
- let n = `uniqueId_${t}`, r = yo(e), i = G.value ? r ? e.series : [] : Ka(e.series);
990
+ let bo = y(() => !zi.value && !G.value ? Va.value : Va.value.map((e, t) => {
991
+ let n = `uniqueId_${t}`, r = _o(e), i = G.value ? r ? e.series : [] : Wa(e.series);
993
992
  return {
994
993
  ...e,
995
994
  slotAbsoluteIndex: t,
996
- series: G.value ? i.map((e, t) => bo(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) => ce(e) ? e : null).slice(U.value.start, U.value.end),
997
- color: se(e.color ? e.color : so.value[t] ? so.value[t] : oe[t]),
995
+ series: G.value ? i.map((e, t) => vo(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) => ce(e) ? e : null).slice(U.value.start, U.value.end),
996
+ color: se(e.color ? e.color : ao.value[t] ? ao.value[t] : oe[t]),
998
997
  id: n,
999
998
  scaleLabel: e.scaleLabel || n
1000
999
  };
1001
- })), Co = y(() => So.value.map((e, t) => ({
1000
+ })), xo = y(() => bo.value.map((e, t) => ({
1002
1001
  absoluteIndex: t,
1003
1002
  ...e,
1004
1003
  series: G.value ? e.series.map((e) => ({
1005
1004
  ...e,
1006
- y: e.y === null ? null : e.y + go.value
1007
- })) : e.series.map((e) => e + go.value),
1005
+ y: e.y === null ? null : e.y + mo.value
1006
+ })) : e.series.map((e) => e + mo.value),
1008
1007
  absoluteValues: G.value ? e.series.map((e) => e.y) : e.series,
1009
- segregate: () => nc(e),
1008
+ segregate: () => ec(e),
1010
1009
  isSegregated: Yi.value.has(e.id)
1011
- }))), K = y(() => So.value.map((e) => ({
1010
+ }))), K = y(() => bo.value.map((e) => ({
1012
1011
  ...e,
1013
1012
  series: G.value ? e.series.map((e) => ({
1014
1013
  ...e,
1015
- y: e.y === null ? null : e.y + go.value
1016
- })) : e.series.map((e) => e + go.value),
1014
+ y: e.y === null ? null : e.y + mo.value
1015
+ })) : e.series.map((e) => e + mo.value),
1017
1016
  absoluteValues: G.value ? e.series.map((e) => e.y) : e.series
1018
- })).filter((e) => !Yi.value.has(e.id))), wo = y(() => Ji.value.length === Co.value.length), q = y(() => V.value.chart.grid.labels.yAxis.position === "right");
1019
- function To() {
1017
+ })).filter((e) => !Yi.value.has(e.id))), So = y(() => Ji.value.length === xo.value.length), q = y(() => V.value.chart.grid.labels.yAxis.position === "right");
1018
+ function Co() {
1020
1019
  let e = 0;
1021
1020
  Pi.value && (e = Array.from(Pi.value.querySelectorAll("text")).reduce((e, t) => {
1022
1021
  let n = t.getComputedTextLength();
@@ -1030,72 +1029,72 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1030
1029
  yAxisLabelWidth: t
1031
1030
  };
1032
1031
  }
1033
- function Eo(e) {
1034
- let t = Hs(e);
1032
+ function wo(e) {
1033
+ let t = Bs(e);
1035
1034
  if (!t) {
1036
- Z.value = [], Bs.value = null, ua.value = null;
1035
+ Z.value = [], Rs.value = null, ca.value = null;
1037
1036
  return;
1038
1037
  }
1039
- let n = Number(t.point.x), r = Vs.value.matchingPointsByXValue.get(n) || [];
1038
+ let n = Number(t.point.x), r = zs.value.matchingPointsByXValue.get(n) || [];
1040
1039
  Z.value = r.map((e) => ({
1041
1040
  ...e,
1042
1041
  distance: 0
1043
- })), Bs.value = tl({ x: n }), ua.value = n;
1042
+ })), Rs.value = $c({ x: n }), ca.value = n;
1044
1043
  }
1045
- function Do(e) {
1044
+ function To(e) {
1046
1045
  if (!Number.isFinite(Number(e))) {
1047
- Z.value = [], Bs.value = null;
1046
+ Z.value = [], Rs.value = null;
1048
1047
  return;
1049
1048
  }
1050
- let t = tl({ x: Number(e) });
1051
- Eo(t), Bs.value = t;
1049
+ let t = $c({ x: Number(e) });
1050
+ wo(t), Rs.value = t;
1052
1051
  }
1053
- let Oo = E(0), ko = E(0);
1054
- function Ao() {
1052
+ let Eo = E(0), Do = E(0);
1053
+ function Oo() {
1055
1054
  let e = Ni.value;
1056
1055
  if (!e) {
1057
- Oo.value = 0, ko.value = 0;
1056
+ Eo.value = 0, Do.value = 0;
1058
1057
  return;
1059
1058
  }
1060
1059
  try {
1061
1060
  let t = e.getBBox();
1062
- Oo.value = t?.height ?? 0, ko.value = t?.x ?? 0;
1061
+ Eo.value = t?.height ?? 0, Do.value = t?.x ?? 0;
1063
1062
  } catch {
1064
- Oo.value = 0, ko.value = 0;
1063
+ Eo.value = 0, Do.value = 0;
1065
1064
  }
1066
1065
  }
1067
- let jo = y(() => {
1066
+ let ko = y(() => {
1068
1067
  let e = 0;
1069
1068
  if (ji.value) try {
1070
1069
  e = ji.value.getBBox().height || 0;
1071
1070
  } catch {
1072
1071
  e = 0;
1073
1072
  }
1074
- return e + Oo.value + B.value.xAxis;
1075
- }), Mo = y(() => Ua.value.some((e) => e.useProgression));
1076
- function No() {
1073
+ return e + Eo.value + B.value.xAxis;
1074
+ }), Ao = y(() => Va.value.some((e) => e.useProgression));
1075
+ function jo() {
1077
1076
  return V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + V.value.chart.grid.labels.axis.yLabelOffsetX + B.value.dataLabels * .8;
1078
1077
  }
1079
1078
  let J = y(() => {
1080
- ya.value;
1079
+ _a.value;
1081
1080
  let e = 0, t = 0, n = 0, r = 0;
1082
- if (V.value.chart.grid.labels.show) if (H.value.useIndividualScale && !H.value.isStacked) q.value ? t = (Ua.value.length - Ji.value.length) * No() : e = (Ua.value.length - Ji.value.length) * (V.value.chart.grid.labels.yAxis.labelWidth + 36);
1081
+ if (V.value.chart.grid.labels.show) if (H.value.useIndividualScale && !H.value.isStacked) q.value ? t = (Va.value.length - Ji.value.length) * jo() : e = (Va.value.length - Ji.value.length) * (V.value.chart.grid.labels.yAxis.labelWidth + 36);
1083
1082
  else if (H.value.useIndividualScale && H.value.isStacked) {
1084
1083
  let n = V.value.chart.grid.labels.yAxis.labelWidth + 36;
1085
1084
  q.value ? t = n : e = n;
1086
1085
  } else {
1087
- let i = To();
1086
+ let i = Co();
1088
1087
  e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
1089
1088
  }
1090
- let i = V.value.chart.labels.fontSize * 1.1, a = Mo.value ? 24 : 6;
1091
- Ni.value && ko.value < 0 && (e += Math.abs(ko.value));
1089
+ let i = V.value.chart.labels.fontSize * 1.1, a = Ao.value ? 24 : 6;
1090
+ Ni.value && Do.value < 0 && (e += Math.abs(Do.value));
1092
1091
  let o = P.value - e - t - a - V.value.chart.padding?.left - V.value.chart.padding?.right;
1093
1092
  return {
1094
1093
  top: V.value.chart.padding?.top + i,
1095
1094
  right: e + (q.value ? 0 : V.value.chart.grid.labels.yAxis.crosshairSize) + V.value.chart.padding?.left + o,
1096
- bottom: Bi.value - jo.value - V.value.chart.padding?.bottom - V.value.chart.grid.labels.axis.xLabelOffsetY,
1095
+ bottom: Bi.value - ko.value - V.value.chart.padding?.bottom - V.value.chart.grid.labels.axis.xLabelOffsetY,
1097
1096
  left: e + (q.value ? 0 : V.value.chart.grid.labels.yAxis.crosshairSize) + V.value.chart.padding?.left,
1098
- height: Bi.value - jo.value - V.value.chart.padding?.top - V.value.chart.padding?.bottom - i - V.value.chart.grid.labels.axis.xLabelOffsetY,
1097
+ height: Bi.value - ko.value - V.value.chart.padding?.top - V.value.chart.padding?.bottom - i - V.value.chart.grid.labels.axis.xLabelOffsetY,
1099
1098
  width: o,
1100
1099
  scaleLabelX: e,
1101
1100
  rightScaleLabelX: t,
@@ -1103,108 +1102,108 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1103
1102
  yAxisLabelWidth: r,
1104
1103
  individualOffsetX: 36
1105
1104
  };
1106
- }), Po = y(() => {
1105
+ }), Mo = y(() => {
1107
1106
  let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n = _(J.value?.top), r = _(J.value?.bottom);
1108
- return G.value ? V.value.chart.grid.position === "middle" ? $c.value.map((e, t, i) => {
1107
+ return G.value ? V.value.chart.grid.position === "middle" ? Zc.value.map((e, t, i) => {
1109
1108
  if (t === 0) return null;
1110
1109
  let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
1111
1110
  return `M${o},${n} L${o},${r}`;
1112
- }).filter(Boolean).join(" ") : $c.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
1113
- let i = V.value.chart.grid.position === "middle" ? gc(t) : hc(t);
1111
+ }).filter(Boolean).join(" ") : Zc.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
1112
+ let i = V.value.chart.grid.position === "middle" ? mc(t) : pc(t);
1114
1113
  return `M${i},${n} L${i},${r}`;
1115
1114
  }).join(" ");
1116
- }), Fo = y(() => {
1115
+ }), No = y(() => {
1117
1116
  if (!V.value.chart.grid.labels.xAxis.showCrosshairs) return "";
1118
1117
  let e = V.value.chart.grid.labels.xAxis.crosshairSize, t = V.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
1119
- return (G.value ? $c.value : Yo.value).map((n, r) => {
1118
+ return (G.value ? Zc.value : qo.value).map((n, r) => {
1120
1119
  if (!n || !n.text) return null;
1121
- let i = G.value ? n.x : hc(r);
1122
- return `M${i},${t ? Os.value - (Os.value === J.value?.bottom ? 0 : e / 2) : J.value?.bottom} L${i},${t ? Os.value + e / (Os.value === J.value?.bottom ? 1 : 2) : J.value?.bottom + e}`;
1120
+ let i = G.value ? n.x : pc(r);
1121
+ return `M${i},${t ? Es.value - (Es.value === J.value?.bottom ? 0 : e / 2) : J.value?.bottom} L${i},${t ? Es.value + e / (Es.value === J.value?.bottom ? 1 : 2) : J.value?.bottom + e}`;
1123
1122
  }).filter(Boolean).join(" ");
1124
1123
  });
1125
- function Io() {
1124
+ function Po() {
1126
1125
  return !!bi?.vnode.props?.onSelectTimeLabel;
1127
1126
  }
1128
- function Lo(e, t, n) {
1127
+ function Fo(e, t, n) {
1129
1128
  if (!aa.value) {
1130
1129
  let e = document.createElement("canvas");
1131
1130
  aa.value = e.getContext("2d");
1132
1131
  }
1133
1132
  return aa.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, aa.value;
1134
1133
  }
1135
- function Ro() {
1134
+ function Io() {
1136
1135
  let e = wi.value.querySelectorAll(".vue-ui-xy-tag");
1137
1136
  e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
1138
1137
  }
1139
- function zo(e, t, n, r, i) {
1138
+ function Lo(e, t, n, r, i) {
1140
1139
  n && (ia.value[`${e}_${t}_${r}_${i}`] = n);
1141
1140
  }
1142
- let Bo = E(!1);
1143
- async function Vo(e = !1) {
1144
- await dt(), Bo.value = e, ta.value && (ra.value = e);
1141
+ let Ro = E(!1);
1142
+ async function zo(e = !1) {
1143
+ await dt(), Ro.value = e, ta.value && (ra.value = e);
1145
1144
  }
1146
- function Ho() {
1147
- Vo(!0);
1145
+ function Bo() {
1146
+ zo(!0);
1148
1147
  }
1149
- function Uo() {
1150
- Vo(!1);
1148
+ function Vo() {
1149
+ zo(!1);
1151
1150
  }
1152
- function Wo() {
1151
+ function Ho() {
1153
1152
  Wi.value = !Wi.value;
1154
1153
  }
1155
- let Y = E([]), Go = E([]), Ko = 0;
1154
+ let Y = E([]), Uo = E([]), Wo = 0;
1156
1155
  xt(() => {
1157
- let e = ++Ko;
1156
+ let e = ++Wo;
1158
1157
  (async () => {
1159
- let t = Ja.value, n = await Fe({
1158
+ let t = Ka.value, n = await Fe({
1160
1159
  values: V.value.chart.grid.labels.xAxisLabels.values,
1161
1160
  maxDatapoints: t,
1162
1161
  formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
1163
1162
  start: U.value.start,
1164
1163
  end: U.value.end
1165
1164
  });
1166
- e === Ko && (Y.value = n);
1165
+ e === Wo && (Y.value = n);
1167
1166
  })();
1168
1167
  });
1169
- let qo = 0;
1168
+ let Go = 0;
1170
1169
  xt(() => {
1171
- let e = ++qo;
1170
+ let e = ++Go;
1172
1171
  (async () => {
1173
- let t = Ja.value, n = await Fe({
1172
+ let t = Ka.value, n = await Fe({
1174
1173
  values: V.value.chart.grid.labels.xAxisLabels.values,
1175
1174
  maxDatapoints: t,
1176
1175
  formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
1177
1176
  start: 0,
1178
- end: Xa.value
1177
+ end: Ja.value
1179
1178
  });
1180
- e === qo && (Go.value = n);
1179
+ e === Go && (Uo.value = n);
1181
1180
  })();
1182
1181
  });
1183
- let Jo = y(() => {
1182
+ let Ko = y(() => {
1184
1183
  let e = V.value.chart.grid.labels.xAxisLabels.modulo;
1185
1184
  return Y.value.length ? Math.min(e, [...new Set(Y.value.map((e) => e.text))].length) : e;
1186
- }), Yo = y(() => {
1187
- let e = V.value.chart.grid.labels.xAxisLabels, t = Y.value || [], n = Go.value || [], r = U.value.start ?? 0, i = R.value, a = X.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
1188
- return m(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Jo.value || 1), o, s, r, i, a);
1189
- }), Xo = y(() => (Yo.value || []).map((e) => e?.text ?? "").join("|"));
1185
+ }), qo = y(() => {
1186
+ let e = V.value.chart.grid.labels.xAxisLabels, t = Y.value || [], n = Uo.value || [], r = U.value.start ?? 0, i = R.value, a = X.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
1187
+ return m(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Ko.value || 1), o, s, r, i, a);
1188
+ }), Jo = y(() => (qo.value || []).map((e) => e?.text ?? "").join("|"));
1190
1189
  mt(() => {
1191
1190
  requestAnimationFrame(() => {
1192
- Ao();
1191
+ Oo();
1193
1192
  }), bt([
1194
- () => Xo.value,
1193
+ () => Jo.value,
1195
1194
  () => V.value.chart.grid.labels.xAxisLabels.rotation,
1196
1195
  () => B.value.xAxis,
1197
1196
  () => P.value,
1198
1197
  () => Bi.value
1199
1198
  ], async () => {
1200
1199
  await dt(), requestAnimationFrame(() => {
1201
- Ao();
1200
+ Oo();
1202
1201
  });
1203
1202
  }, { flush: "post" });
1204
1203
  }), pt(() => {
1205
- Oo.value = 0, ko.value = 0, xa.stop(), pa.value &&= (pa.value.disconnect(), null);
1204
+ Eo.value = 0, Do.value = 0, ya.stop(), da.value &&= (da.value.disconnect(), null);
1206
1205
  });
1207
- function Zo(e, t) {
1206
+ function Yo(e, t) {
1208
1207
  let n = K.value.map((e) => ({
1209
1208
  shape: e.shape ?? e.type === "bar" ? "square" : "circle",
1210
1209
  name: e.name,
@@ -1225,166 +1224,166 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1225
1224
  let e = jt((U.value.end ?? 0) - (U.value.start ?? 0));
1226
1225
  return Math.max(1, e);
1227
1226
  });
1228
- function Qo(e) {
1227
+ function Xo(e) {
1229
1228
  G.value || (I.value = e);
1230
1229
  }
1231
- function $o(e) {
1230
+ function Zo(e) {
1232
1231
  if (!G.value || !a(e)) {
1233
- ua.value = null, Z.value = [], Bs.value = null;
1232
+ ca.value = null, Z.value = [], Rs.value = null;
1234
1233
  return;
1235
1234
  }
1236
- ua.value = Number(e), Do(Number(e));
1235
+ ca.value = Number(e), To(Number(e));
1237
1236
  }
1238
- let es = y(() => G.value ? a(ua.value) || a(Bs.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
1239
- function ts() {
1237
+ let Qo = y(() => G.value ? a(ca.value) || a(Rs.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
1238
+ function $o() {
1240
1239
  H.value.isStacked = !H.value.isStacked, H.value.isStacked ? H.value.useIndividualScale = !0 : H.value.useIndividualScale = V.value.chart.grid.labels.yAxis.useIndividualScale;
1241
1240
  }
1242
- function ns(e) {
1243
- za.value && e.autoScaling && (V.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), V.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1241
+ function es(e) {
1242
+ La.value && e.autoScaling && (V.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), V.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1244
1243
  }
1245
- function rs(e) {
1246
- let t = Ja.value;
1244
+ function ts(e) {
1245
+ let t = Ka.value;
1247
1246
  return e > t ? t : e < 0 || V.value.chart.zoom.startIndex !== null && e < V.value.chart.zoom.startIndex ? V.value.chart.zoom.startIndex === null ? 1 : V.value.chart.zoom.startIndex + 1 : e;
1248
1247
  }
1249
- let is = E(!1), as = E(!1), os = E(0), ss = E(0);
1250
- function cs() {
1251
- if (!is.value) {
1252
- is.value = !0;
1248
+ let ns = E(!1), rs = E(!1), is = E(0), as = E(0);
1249
+ function os() {
1250
+ if (!ns.value) {
1251
+ ns.value = !0;
1253
1252
  try {
1254
1253
  if (G.value) {
1255
- let e = nl.value.min, t = nl.value.max;
1256
- os.value = e, ss.value = t, U.value.start = e, U.value.end = t, Za.value.start = e, Za.value.end = t, as.value = !0, Ei.value && (Ei.value.setStartValue(e), Ei.value.setEndValue(t));
1254
+ let e = el.value.min, t = el.value.max;
1255
+ is.value = e, as.value = t, U.value.start = e, U.value.end = t, Ya.value.start = e, Ya.value.end = t, rs.value = !0, Ei.value && (Ei.value.setStartValue(e), Ei.value.setEndValue(t));
1257
1256
  return;
1258
1257
  }
1259
- let { startIndex: e, endIndex: t } = V.value.chart.zoom, n = V.value.chart.zoom.keepState ? Ya.value : Ja.value;
1258
+ let { startIndex: e, endIndex: t } = V.value.chart.zoom, n = V.value.chart.zoom.keepState ? qa.value : Ka.value;
1260
1259
  if (V.value.chart.zoom.keepState && n <= 0) return;
1261
- os.value = 0, ss.value = n;
1262
- let r = e ?? 0, i = t == null ? n : Math.min(rs(t + 1), n);
1263
- ls.value = !0, U.value.start = r, U.value.end = i, Za.value.start = r, Za.value.end = i, eo(), as.value = !0;
1260
+ is.value = 0, as.value = n;
1261
+ let r = e ?? 0, i = t == null ? n : Math.min(ts(t + 1), n);
1262
+ ss.value = !0, U.value.start = r, U.value.end = i, Ya.value.start = r, Ya.value.end = i, Qa(), rs.value = !0;
1264
1263
  } finally {
1265
1264
  queueMicrotask(() => {
1266
- ls.value = !1;
1267
- }), is.value = !1;
1265
+ ss.value = !1;
1266
+ }), ns.value = !1;
1268
1267
  }
1269
1268
  }
1270
1269
  }
1271
- let ls = E(!1), us = E(!1), ds = null, fs = null, ps = {};
1272
- function ms(e = U.value) {
1270
+ let ss = E(!1), cs = E(!1), ls = null, us = null, ds = {};
1271
+ function fs(e = U.value) {
1273
1272
  return Number(e.end) - Number(e.start);
1274
1273
  }
1275
- function hs() {
1276
- ds &&= (cancelAnimationFrame(ds), null), fs &&= (cancelAnimationFrame(fs), null);
1274
+ function ps() {
1275
+ ls &&= (cancelAnimationFrame(ls), null), us &&= (cancelAnimationFrame(us), null);
1277
1276
  }
1278
- function gs(e) {
1279
- ps = {
1280
- ...ps,
1277
+ function ms(e) {
1278
+ ds = {
1279
+ ...ds,
1281
1280
  ...e
1282
- }, ds && cancelAnimationFrame(ds), ds = requestAnimationFrame(() => {
1283
- let e = ms(), t = {
1281
+ }, ls && cancelAnimationFrame(ls), ls = requestAnimationFrame(() => {
1282
+ let e = fs(), t = {
1284
1283
  ...U.value,
1285
- ...ps
1286
- }, n = ms(t);
1287
- us.value = n !== e, U.value = t, Za.value = { ...t }, ps = {}, ds = null, eo(), fs && cancelAnimationFrame(fs), fs = requestAnimationFrame(() => {
1288
- us.value = !1, fs = null;
1284
+ ...ds
1285
+ }, n = fs(t);
1286
+ cs.value = n !== e, U.value = t, Ya.value = { ...t }, ds = {}, ls = null, Qa(), us && cancelAnimationFrame(us), us = requestAnimationFrame(() => {
1287
+ cs.value = !1, us = null;
1289
1288
  });
1290
1289
  });
1291
1290
  }
1292
- function _s(e) {
1293
- if (is.value || ls.value) return;
1291
+ function hs(e) {
1292
+ if (ns.value || ss.value) return;
1294
1293
  let t = Number(e);
1295
1294
  vi("zoomStart", {
1296
1295
  index: t,
1297
- isZoom: Dt(t, os.value)
1298
- }), Number.isFinite(t) && t !== U.value.start && gs({ start: t });
1296
+ isZoom: Dt(t, is.value)
1297
+ }), Number.isFinite(t) && t !== U.value.start && ms({ start: t });
1299
1298
  }
1300
- function vs(e) {
1301
- if (is.value || ls.value) return;
1299
+ function gs(e) {
1300
+ if (ns.value || ss.value) return;
1302
1301
  if (G.value) {
1303
1302
  let t = Number(e);
1304
1303
  if (!Number.isFinite(t)) return;
1305
- let n = Math.max(Number(U.value.start) + 1 / 10 ** V.value.chart.grid.labels.xAxis.rounding, Math.min(t, nl.value.max));
1304
+ let n = Math.max(Number(U.value.start) + 1 / 10 ** V.value.chart.grid.labels.xAxis.rounding, Math.min(t, el.value.max));
1306
1305
  if (vi("zoomEnd", {
1307
1306
  index: n,
1308
- isZoom: Dt(n, ss.value)
1307
+ isZoom: Dt(n, as.value)
1309
1308
  }), n === U.value.end) return;
1310
- gs({ end: n });
1309
+ ms({ end: n });
1311
1310
  return;
1312
1311
  }
1313
- let t = rs(e);
1312
+ let t = ts(e);
1314
1313
  vi("zoomEnd", {
1315
1314
  index: t,
1316
- isZoom: Dt(t, ss.value)
1317
- }), t !== U.value.end && gs({ end: t });
1315
+ isZoom: Dt(t, as.value)
1316
+ }), t !== U.value.end && ms({ end: t });
1318
1317
  }
1319
- async function ys() {
1320
- let e = ms();
1321
- us.value = !0, await cs(), ms() === e ? us.value = !1 : (await dt(), fs && cancelAnimationFrame(fs), fs = requestAnimationFrame(() => {
1322
- us.value = !1, fs = null;
1318
+ async function _s() {
1319
+ let e = fs();
1320
+ cs.value = !0, await os(), fs() === e ? cs.value = !1 : (await dt(), us && cancelAnimationFrame(us), us = requestAnimationFrame(() => {
1321
+ cs.value = !1, us = null;
1323
1322
  })), vi("zoomReset");
1324
1323
  }
1325
- let bs = y(() => W.value.max + go.value);
1326
- function xs(e) {
1327
- return e / (Ct(bs.value) ? bs.value : 1);
1324
+ let vs = y(() => W.value.max + mo.value);
1325
+ function ys(e) {
1326
+ return e / (Ct(vs.value) ? vs.value : 1);
1328
1327
  }
1329
- let Ss = y(() => V.value.chart.grid.labels.yAxis.reverse);
1330
- function Cs(e) {
1331
- return Ss.value ? 1 - e : e;
1328
+ let bs = y(() => V.value.chart.grid.labels.yAxis.reverse);
1329
+ function xs(e) {
1330
+ return bs.value ? 1 - e : e;
1332
1331
  }
1333
- function ws({ ratio: e, yOffset: t = 0, individualHeight: n }) {
1334
- let r = Cs(e);
1332
+ function Ss({ ratio: e, yOffset: t = 0, individualHeight: n }) {
1333
+ let r = xs(e);
1335
1334
  return J.value?.bottom - t - n * r;
1336
1335
  }
1337
- function Ts({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
1338
- return ws({
1336
+ function Cs({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
1337
+ return Ss({
1339
1338
  ratio: (e - t) / (n - t || 1),
1340
1339
  yOffset: r,
1341
1340
  individualHeight: i
1342
1341
  });
1343
1342
  }
1344
- let Es = y(() => V.value.chart.grid.labels.xAxis.reverse);
1345
- function Ds(e) {
1346
- return Es.value ? 1 - e : e;
1343
+ let ws = y(() => V.value.chart.grid.labels.xAxis.reverse);
1344
+ function Ts(e) {
1345
+ return ws.value ? 1 - e : e;
1347
1346
  }
1348
- let Os = y(() => isNaN(xs(go.value)) ? J.value?.bottom : J.value?.bottom - J.value.height * xs(go.value));
1349
- function ks(e) {
1347
+ let Es = y(() => isNaN(ys(mo.value)) ? J.value?.bottom : J.value?.bottom - J.value.height * ys(mo.value));
1348
+ function Ds(e) {
1350
1349
  let t = W.value.min, n = W.value.max - t;
1351
1350
  return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? J.value?.bottom : J.value?.bottom - J.value.height * ((e - t) / n);
1352
1351
  }
1353
- let As = y(() => W.value.min <= 0 && W.value.max >= 0 ? ks(0) : W.value.min > 0 ? ks(W.value.min) : ks(W.value.max));
1354
- function js(e) {
1355
- let t = ![null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) && V.value.chart.grid.labels.yAxis.scaleMin > 0 && mo.value >= 0 ? J.value?.bottom : Os.value;
1356
- return e.value >= 0 ? p(t - e.y <= 0 ? 1e-5 : t - e.y) : p(e.y - Os.value <= 0 ? 1e-5 : e.y - Os.value);
1352
+ let Os = y(() => W.value.min <= 0 && W.value.max >= 0 ? Ds(0) : W.value.min > 0 ? Ds(W.value.min) : Ds(W.value.max));
1353
+ function ks(e) {
1354
+ let t = ![null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) && V.value.chart.grid.labels.yAxis.scaleMin > 0 && fo.value >= 0 ? J.value?.bottom : Es.value;
1355
+ return e.value >= 0 ? p(t - e.y <= 0 ? 1e-5 : t - e.y) : p(e.y - Es.value <= 0 ? 1e-5 : e.y - Es.value);
1357
1356
  }
1358
- function Ms(e) {
1357
+ function As(e) {
1359
1358
  return e.value >= 0 ? p(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : p(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1360
1359
  }
1361
- let Ns = y(() => {
1360
+ let js = y(() => {
1362
1361
  let e = Math.max(1, X.value);
1363
1362
  return {
1364
- bar: At(Math.max(1, J.value.width), e * jc.value, 1),
1365
- plot: pc.value,
1366
- line: pc.value
1363
+ bar: At(Math.max(1, J.value.width), e * kc.value, 1),
1364
+ plot: dc.value,
1365
+ line: dc.value
1367
1366
  };
1368
1367
  });
1369
- function Ps() {
1370
- return H.value.useIndividualScale && H.value.isStacked ? Ns.value.line - J.value.width / X.value * .1 : Ns.value.bar;
1368
+ function Ms() {
1369
+ return H.value.useIndividualScale && H.value.isStacked ? js.value.line - J.value.width / X.value * .1 : js.value.bar;
1371
1370
  }
1372
- function Fs(e) {
1373
- return H.value.useIndividualScale && H.value.isStacked ? e.x + J.value.width / X.value * .05 : e.x + Ns.value.bar / 2;
1371
+ function Ns(e) {
1372
+ return H.value.useIndividualScale && H.value.isStacked ? e.x + J.value.width / X.value * .05 : e.x + js.value.bar / 2;
1374
1373
  }
1375
- function Is(e) {
1376
- return H.value.useIndividualScale && H.value.isStacked ? e.x + Ns.value.line / 2 : Fs(e) + Ps() / 2 - Ic.value / 2;
1374
+ function Ps(e) {
1375
+ return H.value.useIndividualScale && H.value.isStacked ? e.x + js.value.line / 2 : Ns(e) + Ms() / 2 - Pc.value / 2;
1377
1376
  }
1378
- function Ls(e) {
1377
+ function Fs(e) {
1379
1378
  return e.value >= 0 ? e.y : [
1380
1379
  null,
1381
1380
  void 0,
1382
1381
  NaN,
1383
1382
  Infinity,
1384
1383
  -Infinity
1385
- ].includes(Os.value) ? J?.bottom.value : Os.value;
1384
+ ].includes(Es.value) ? J?.bottom.value : Es.value;
1386
1385
  }
1387
- function Rs(e) {
1386
+ function Is(e) {
1388
1387
  return e.value >= 0 ? e.y : [
1389
1388
  null,
1390
1389
  void 0,
@@ -1393,7 +1392,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1393
1392
  -Infinity
1394
1393
  ].includes(e.zeroPosition) ? 0 : e.zeroPosition;
1395
1394
  }
1396
- let zs = E(null), Z = E([]), Bs = E(null), Vs = y(() => {
1395
+ let Ls = E(null), Z = E([]), Rs = E(null), zs = y(() => {
1397
1396
  if (!G.value) return {
1398
1397
  sortedPoints: [],
1399
1398
  matchingPointsByXValue: /* @__PURE__ */ new Map()
@@ -1404,7 +1403,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1404
1403
  if (["line", "plot"].includes(i.type) && Array.isArray(i.series)) for (let r = 0; r < i.series.length; r += 1) {
1405
1404
  let o = i.series[r];
1406
1405
  if (!a(o?.x) || !a(o?.y)) continue;
1407
- let s = Number(o.x), c = tl(o), l = {
1406
+ let s = Number(o.x), c = $c(o), l = {
1408
1407
  datapoint: i,
1409
1408
  point: o,
1410
1409
  index: r,
@@ -1424,8 +1423,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1424
1423
  matchingPointsByXValue: t
1425
1424
  };
1426
1425
  });
1427
- function Hs(e) {
1428
- let t = Vs.value.sortedPoints;
1426
+ function Bs(e) {
1427
+ let t = zs.value.sortedPoints;
1429
1428
  if (!t.length) return null;
1430
1429
  let n = 0, r = t.length - 1;
1431
1430
  for (; n <= r;) {
@@ -1443,18 +1442,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1443
1442
  });
1444
1443
  }), a;
1445
1444
  }
1446
- let Us = y(() => G.value ? Array.from(Vs.value.matchingPointsByXValue.keys()).sort((e, t) => tl({ x: e }) - tl({ x: t })) : []);
1447
- function Ws(e) {
1448
- let t = Us.value[e];
1445
+ let Vs = y(() => G.value ? Array.from(zs.value.matchingPointsByXValue.keys()).sort((e, t) => $c({ x: e }) - $c({ x: t })) : []);
1446
+ function Hs(e) {
1447
+ let t = Vs.value[e];
1449
1448
  if (!a(t)) {
1450
- Z.value = [], Bs.value = null, ua.value = null, Ki.value = !1;
1449
+ Z.value = [], Rs.value = null, ca.value = null, Ki.value = !1;
1451
1450
  return;
1452
1451
  }
1453
- Do(Number(t));
1454
- let n = l(tl({ x: Number(t) }), J.value.top + J.value.height / 2, L.value);
1455
- n && (fa.value = n), R.value = e, da.value = e, Ki.value = !0;
1452
+ To(Number(t));
1453
+ let n = $c({ x: Number(t) }), r = J.value.top + J.value.height / 2, i = l(n, r, L.value);
1454
+ i && (ua.value = i), R.value = e, la.value = e, Ki.value = !0;
1456
1455
  }
1457
- function Gs(e) {
1456
+ function Us(e) {
1458
1457
  let t = L.value;
1459
1458
  if (!t) return null;
1460
1459
  if (t.createSVGPoint && t.getScreenCTM) {
@@ -1482,46 +1481,46 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1482
1481
  ok: !0
1483
1482
  };
1484
1483
  }
1485
- let Ks = 0;
1486
- function qs(e) {
1487
- da.value = null, !Wi.value && (Ks && cancelAnimationFrame(Ks), Ks = requestAnimationFrame(() => {
1488
- Ks = 0;
1489
- let t = Gs(e);
1484
+ let Ws = 0;
1485
+ function Gs(e) {
1486
+ la.value = null, !Wi.value && (Ws && cancelAnimationFrame(Ws), Ws = requestAnimationFrame(() => {
1487
+ Ws = 0;
1488
+ let t = Us(e);
1490
1489
  if (!t || !L.value) {
1491
- Js();
1490
+ Ks();
1492
1491
  return;
1493
1492
  }
1494
1493
  let { left: n, right: r, top: i, bottom: a } = J.value;
1495
1494
  if (t.x < n || t.x > r || t.y < i || t.y > a) {
1496
- Js();
1495
+ Ks();
1497
1496
  return;
1498
1497
  }
1499
1498
  if (G.value) {
1500
- Eo(t.x), Vl(!0, R.value ?? 0);
1499
+ wo(t.x), zl(!0, R.value ?? 0);
1501
1500
  return;
1502
1501
  }
1503
- let o = yc(t.x);
1504
- o == null ? Js() : zs.value !== o && (zs.value = o, Vl(!0, o));
1502
+ let o = _c(t.x);
1503
+ o == null ? Ks() : Ls.value !== o && (Ls.value = o, zl(!0, o));
1505
1504
  }));
1506
1505
  }
1507
- function Js() {
1508
- Ks &&= (cancelAnimationFrame(Ks), 0), zs.value = null, I.value = null, ua.value = null, Vl(!1, null), Z.value = [], Bs.value = null;
1506
+ function Ks() {
1507
+ Ws &&= (cancelAnimationFrame(Ws), 0), Ls.value = null, I.value = null, ca.value = null, zl(!1, null), Z.value = [], Rs.value = null;
1509
1508
  }
1510
- function Ys(e) {
1511
- let t = Gs(e);
1509
+ function qs(e) {
1510
+ let t = Us(e);
1512
1511
  if (t && L.value) {
1513
1512
  let { left: e, right: n, top: r, bottom: i } = J.value;
1514
1513
  if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
1515
- let e = yc(t.x);
1514
+ let e = _c(t.x);
1516
1515
  if (e != null) {
1517
- Xs(e);
1516
+ Js(e);
1518
1517
  return;
1519
1518
  }
1520
1519
  }
1521
1520
  }
1522
- zs.value != null && Xs(zs.value);
1521
+ Ls.value != null && Js(Ls.value);
1523
1522
  }
1524
- function Xs(e) {
1523
+ function Js(e) {
1525
1524
  let t = K.value.map((t) => ({
1526
1525
  name: t.name,
1527
1526
  value: [
@@ -1541,15 +1540,15 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1541
1540
  seriesIndex: e + U.value.start
1542
1541
  });
1543
1542
  }
1544
- function Zs() {
1545
- return Co.value.map((e) => ({
1543
+ function Ys() {
1544
+ return xo.value.map((e) => ({
1546
1545
  values: e.absoluteValues,
1547
1546
  color: e.color,
1548
1547
  name: e.name,
1549
1548
  type: e.type
1550
1549
  }));
1551
1550
  }
1552
- async function Qs({ scale: e = 2 } = {}) {
1551
+ async function Xs({ scale: e = 2 } = {}) {
1553
1552
  if (!wi.value) return;
1554
1553
  let { imageUri: t, base64: n } = await Ke({
1555
1554
  domElement: wi.value,
@@ -1568,15 +1567,15 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1568
1567
  ...a
1569
1568
  };
1570
1569
  }
1571
- function $s() {
1572
- Ji.value.length ? Ji.value = [] : Co.value.forEach((e) => {
1570
+ function Zs() {
1571
+ Ji.value.length ? Ji.value = [] : xo.value.forEach((e) => {
1573
1572
  Ji.value.push(e.id);
1574
- }), tc();
1573
+ }), $s();
1575
1574
  }
1576
- function ec(e, t) {
1577
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), nc(t));
1575
+ function Qs(e, t) {
1576
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ec(t));
1578
1577
  }
1579
- function tc() {
1578
+ function $s() {
1580
1579
  vi("selectLegend", K.value.map((e) => ({
1581
1580
  name: e.name,
1582
1581
  values: e.absoluteValues,
@@ -1584,28 +1583,28 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1584
1583
  type: e.type
1585
1584
  })));
1586
1585
  }
1587
- function nc(e) {
1588
- if (us.value = !1, fs &&= (cancelAnimationFrame(fs), null), Yi.value.has(e.id)) Ji.value = Ji.value.filter((t) => t !== e.id);
1586
+ function ec(e) {
1587
+ if (cs.value = !1, us &&= (cancelAnimationFrame(us), null), Yi.value.has(e.id)) Ji.value = Ji.value.filter((t) => t !== e.id);
1589
1588
  else {
1590
- if (Ji.value.length + 1 === So.value.length) return;
1589
+ if (Ji.value.length + 1 === bo.value.length) return;
1591
1590
  Ji.value.push(e.id);
1592
1591
  }
1593
- tc(), ea.value += 1;
1592
+ $s(), ea.value += 1;
1594
1593
  }
1595
- function rc(e) {
1596
- return Co.value.length ? Co.value.find((t) => t.name === e) || (V.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (V.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1594
+ function tc(e) {
1595
+ return xo.value.length ? xo.value.find((t) => t.name === e) || (La.value && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (La.value && console.warn("VueUiXy - There are no series to show."), null);
1597
1596
  }
1598
- function ic(e) {
1599
- let t = rc(e);
1600
- t !== null && Yi.value.has(t.id) && nc({ id: t.id });
1597
+ function nc(e) {
1598
+ let t = tc(e);
1599
+ t !== null && Yi.value.has(t.id) && ec({ id: t.id });
1601
1600
  }
1602
- function ac(e) {
1603
- let t = rc(e);
1604
- t !== null && (Yi.value.has(t.id) || nc({ id: t.id }));
1601
+ function rc(e) {
1602
+ let t = tc(e);
1603
+ t !== null && (Yi.value.has(t.id) || ec({ id: t.id }));
1605
1604
  }
1606
- let oc = y(() => `${V.value.chart.title.text || "Chart visualization"}. ${V.value.chart.title.subtitle.text || ""}`), sc = y(() => ({ linePlot: X.value > V.value.line.dot.hideAboveMaxSerieLength })), cc = y(() => V.value.chart.userOptions.show && (!V.value.chart.title.show || !V.value.chart.title.text)), lc = y(() => {
1605
+ let ic = y(() => `${V.value.chart.title.text || "Chart visualization"}. ${V.value.chart.title.subtitle.text || ""}`), ac = y(() => ({ linePlot: X.value > V.value.line.dot.hideAboveMaxSerieLength })), oc = y(() => V.value.chart.userOptions.show && (!V.value.chart.title.show || !V.value.chart.title.text)), sc = y(() => {
1607
1606
  if (Array.isArray(V.value.chart.highlightArea)) return V.value.chart.highlightArea.map((e) => {
1608
- let t = Math.min(e.to, Xa.value - 1);
1607
+ let t = Math.min(e.to, Ja.value - 1);
1609
1608
  return {
1610
1609
  ...e,
1611
1610
  span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
@@ -1613,18 +1612,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1613
1612
  });
1614
1613
  let e = {
1615
1614
  ...V.value.chart.highlightArea,
1616
- to: Math.min(V.value.chart.highlightArea.to, Xa.value - 1)
1615
+ to: Math.min(V.value.chart.highlightArea.to, Ja.value - 1)
1617
1616
  };
1618
1617
  return [{
1619
1618
  ...e,
1620
1619
  span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1621
1620
  }];
1622
- }), uc = y(() => zi.value ? Ua.value.map((e, t) => ({
1621
+ }), cc = y(() => zi.value ? Va.value.map((e, t) => ({
1623
1622
  ...e,
1624
- series: Ka(e.series),
1623
+ series: Wa(e.series),
1625
1624
  id: `uniqueId_${t}`,
1626
- color: se(e.color ? e.color : so.value[t] ? so.value[t] : oe[t])
1627
- })) : Ua.value), dc = y(() => K.value.map((e) => {
1625
+ color: se(e.color ? e.color : ao.value[t] ? ao.value[t] : oe[t])
1626
+ })) : Va.value), lc = y(() => K.value.map((e) => {
1628
1627
  let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? null : e);
1629
1628
  return {
1630
1629
  id: e.id,
@@ -1632,7 +1631,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1632
1631
  color: e.color,
1633
1632
  values: wt(X.value, t)
1634
1633
  };
1635
- })), fc = y(() => ({
1634
+ })), uc = y(() => ({
1636
1635
  responsiveBreakpoint: V.value.table.responsiveBreakpoint,
1637
1636
  roundingValues: V.value.table.rounding,
1638
1637
  showAverage: !1,
@@ -1641,7 +1640,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1641
1640
  fontFamily: V.value.chart.fontFamily,
1642
1641
  prefix: V.value.chart.labels.prefix,
1643
1642
  suffix: V.value.chart.labels.suffix,
1644
- colNames: Y.value.map((e, t) => V.value.table.useDefaultTimeFormat ? e.text : Cl.value(t + U.value.start, V.value.table.timeFormat)),
1643
+ colNames: Y.value.map((e, t) => V.value.table.useDefaultTimeFormat ? e.text : xl.value(t + U.value.start, V.value.table.timeFormat)),
1645
1644
  thead: {
1646
1645
  backgroundColor: V.value.table.th.backgroundColor,
1647
1646
  color: V.value.table.th.color,
@@ -1657,46 +1656,46 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1657
1656
  animation: { show: !1 },
1658
1657
  cutNullValues: V.value.line.cutNullValues
1659
1658
  }
1660
- })), pc = y(() => {
1659
+ })), dc = y(() => {
1661
1660
  let e = Math.max(0, J.value?.width || 0);
1662
1661
  return V.value.chart.grid.position === "middle" ? At(e, Math.max(1, X.value), 1) : At(e, Math.max(1, X.value - 1), 0);
1663
- }), mc = y(() => V.value.chart.grid.position === "middle" ? pc.value : X.value <= 1 ? Math.max(0, J.value?.width || 0) : pc.value);
1664
- function hc(e) {
1662
+ }), fc = y(() => V.value.chart.grid.position === "middle" ? dc.value : X.value <= 1 ? Math.max(0, J.value?.width || 0) : dc.value);
1663
+ function pc(e) {
1665
1664
  let t = J.value?.left || 0;
1666
- return V.value.chart.grid.position === "middle" ? t + pc.value / 2 + pc.value * e : t + pc.value * e;
1665
+ return V.value.chart.grid.position === "middle" ? t + dc.value / 2 + dc.value * e : t + dc.value * e;
1667
1666
  }
1668
- function gc(e) {
1667
+ function mc(e) {
1669
1668
  let t = J.value?.left || 0;
1670
- return V.value.chart.grid.position === "middle" ? t + pc.value * e : X.value <= 1 ? t : t + pc.value * e - pc.value / 2;
1669
+ return V.value.chart.grid.position === "middle" ? t + dc.value * e : X.value <= 1 ? t : t + dc.value * e - dc.value / 2;
1671
1670
  }
1672
- function _c(e) {
1673
- return Math.max(J.value?.left || 0, gc(e));
1671
+ function hc(e) {
1672
+ return Math.max(J.value?.left || 0, mc(e));
1674
1673
  }
1675
- function vc(e) {
1676
- let t = J.value?.left || 0, n = J.value?.right || 0, r = gc(e), i = r + mc.value;
1674
+ function gc(e) {
1675
+ let t = J.value?.left || 0, n = J.value?.right || 0, r = mc(e), i = r + fc.value;
1677
1676
  return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1678
1677
  }
1679
- function yc(e) {
1678
+ function _c(e) {
1680
1679
  let t = J.value?.left || 0, n = J.value?.right || 0, r = X.value;
1681
1680
  if (r <= 0 || e < t || e > n) return null;
1682
- let i = pc.value;
1681
+ let i = dc.value;
1683
1682
  if (i <= 0) return 0;
1684
1683
  let a;
1685
1684
  return a = V.value.chart.grid.position === "middle" ? Math.ceil((e - t) / i) - 1 : r <= 1 ? 0 : Math.ceil((e - t) / i - .5), a < 0 ? 0 : a >= r ? r - 1 : a;
1686
1685
  }
1687
- function bc(e) {
1688
- let t = J.value?.left || 0, n = J.value?.right || 0, r = gc(e), i = r + mc.value;
1686
+ function vc(e) {
1687
+ let t = J.value?.left || 0, n = J.value?.right || 0, r = mc(e), i = r + fc.value;
1689
1688
  return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1690
1689
  }
1691
- function xc(e) {
1692
- return Math.max(1e-5, mc.value * e);
1690
+ function yc(e) {
1691
+ return Math.max(1e-5, fc.value * e);
1693
1692
  }
1694
- let Sc = y(() => be(Co.value.filter((e) => !Yi.value.has(e.id)))), Cc = [
1693
+ let bc = y(() => be(xo.value.filter((e) => !Yi.value.has(e.id)))), xc = [
1695
1694
  "bar",
1696
1695
  "line",
1697
1696
  "plot"
1698
- ], wc = y(() => Sc.value.filter((e) => Cc.includes(e.type))), Tc = y(() => wc.value.length), Ec = y(() => wc.value.filter((e) => e.type === "bar")), Dc = y(() => wc.value.filter((e) => e.type === "line")), Oc = y(() => wc.value.filter((e) => e.type === "plot")), kc = y(() => So.value.filter((e) => e.type === "bar" && !Yi.value.has(e.id))), Ac = y(() => kc.value.length), jc = y(() => Math.max(1, Ac.value)), Mc = y(() => {
1699
- let e = Tt(Sc.value, (e) => e.scaleLabel), t = {};
1697
+ ], Sc = y(() => bc.value.filter((e) => xc.includes(e.type))), Cc = y(() => Sc.value.length), wc = y(() => Sc.value.filter((e) => e.type === "bar")), Tc = y(() => Sc.value.filter((e) => e.type === "line")), Ec = y(() => Sc.value.filter((e) => e.type === "plot")), Dc = y(() => bo.value.filter((e) => e.type === "bar" && !Yi.value.has(e.id))), Oc = y(() => Dc.value.length), kc = y(() => Math.max(1, Oc.value)), Ac = y(() => {
1698
+ let e = Tt(bc.value, (e) => e.scaleLabel), t = {};
1700
1699
  for (let [n, r] of Object.entries(e)) {
1701
1700
  let e = Infinity, i = -Infinity, a = !1;
1702
1701
  for (let t = 0; t < r.length; t += 1) {
@@ -1714,18 +1713,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1714
1713
  t[n] = {
1715
1714
  min: a ? e : 0,
1716
1715
  max: a ? i : 1,
1717
- groupId: Yc("scale_group", [n])
1716
+ groupId: qc("scale_group", [n])
1718
1717
  };
1719
1718
  }
1720
1719
  return t;
1721
- }), Nc = y(() => Sc.value.reduce((e, t) => {
1720
+ }), jc = y(() => bc.value.reduce((e, t) => {
1722
1721
  let n = t.scaleLabel || "";
1723
1722
  return e[n] = (e[n] || 0) + 1, e;
1724
1723
  }, {}));
1725
- function Pc({ datapoint: e, scaleYLabels: t, autoScaleYLabels: n, zeroPosition: r, autoScaleZeroPosition: i, individualMax: a, autoScaleMax: o, yOffset: s, individualHeight: c }) {
1724
+ function Mc({ datapoint: e, scaleYLabels: t, autoScaleYLabels: n, zeroPosition: r, autoScaleZeroPosition: i, individualMax: a, autoScaleMax: o, yOffset: s, individualHeight: c }) {
1726
1725
  let l = e.scaleLabel || "";
1727
1726
  return {
1728
- ...Mc.value[l] || {},
1727
+ ...Ac.value[l] || {},
1729
1728
  name: e.name,
1730
1729
  groupName: l,
1731
1730
  groupColor: V.value.chart.grid.labels.yAxis.groupColor || e.color,
@@ -1738,12 +1737,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1738
1737
  yOffset: s,
1739
1738
  individualHeight: c,
1740
1739
  autoScaleYLabels: n,
1741
- unique: Nc.value[l] === 1
1740
+ unique: jc.value[l] === 1
1742
1741
  };
1743
1742
  }
1744
- let Fc = y(() => J.value.width / X.value / Ac.value - Ic.value * Ac.value), Ic = y(() => Ns.value.line * V.value.bar.periodGap), Lc = y(() => Math.max(1e-5, Ps() - (H.value.useIndividualScale && H.value.isStacked ? 0 : Ic.value))), Rc = y(() => Lc.value * Math.min(Math.abs(V.value.bar.innerGap), .95)), zc = y(() => {
1743
+ let Nc = y(() => J.value.width / X.value / Oc.value - Pc.value * Oc.value), Pc = y(() => js.value.line * V.value.bar.periodGap), Fc = y(() => Math.max(1e-5, Ms() - (H.value.useIndividualScale && H.value.isStacked ? 0 : Pc.value))), Ic = y(() => Fc.value * Math.min(Math.abs(V.value.bar.innerGap), .95)), Lc = y(() => {
1745
1744
  if (!V.value.chart.zoom.minimap.show) return [];
1746
- let e = uc.value.filter((e) => !Yi.value.has(e.id)), t = 0;
1745
+ let e = cc.value.filter((e) => !Yi.value.has(e.id)), t = 0;
1747
1746
  for (let n = 0; n < e.length; n += 1) {
1748
1747
  let r = e[n].series.length;
1749
1748
  r > t && (t = r);
@@ -1754,12 +1753,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1754
1753
  for (let n = 0; n < e.length; n += 1) t += e[n].series[r] || 0;
1755
1754
  n.push(t);
1756
1755
  }
1757
- let r = qc(n, 0, 1).min;
1756
+ let r = Gc(n, 0, 1).min;
1758
1757
  return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1759
- }), Bc = y(() => V.value.chart.zoom.minimap.show ? uc.value.map((e) => ({
1758
+ }), Rc = y(() => V.value.chart.zoom.minimap.show ? cc.value.map((e) => ({
1760
1759
  ...e,
1761
1760
  isVisible: !Yi.value.has(e.id)
1762
- })) : []), Vc = y(() => G.value ? Z.value.map((e) => ({
1761
+ })) : []), zc = y(() => G.value ? Z.value.map((e) => ({
1763
1762
  slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
1764
1763
  shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
1765
1764
  name: e.datapoint.name,
@@ -1780,25 +1779,25 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1780
1779
  comments: e.comments || [],
1781
1780
  prefix: e.prefix || V.value.chart.labels.prefix,
1782
1781
  suffix: e.suffix || V.value.chart.labels.suffix
1783
- }))), Hc = y(() => W.value.ticks.map((e) => {
1784
- let t = e >= 0 ? Os.value - J.value.height * xs(e) : Os.value + J.value.height * xs(Math.abs(e));
1782
+ }))), Bc = y(() => W.value.ticks.map((e) => {
1783
+ let t = e >= 0 ? Es.value - J.value.height * ys(e) : Es.value + J.value.height * ys(Math.abs(e));
1785
1784
  return {
1786
- y: Ss.value ? J.value.top + J.value.bottom - t : t,
1785
+ y: bs.value ? J.value.top + J.value.bottom - t : t,
1787
1786
  value: e,
1788
1787
  prefix: V.value.chart.labels.prefix,
1789
1788
  suffix: V.value.chart.labels.suffix
1790
1789
  };
1791
- })), Uc = y(() => {
1790
+ })), Vc = y(() => {
1792
1791
  let e = V.value.chart.annotations;
1793
1792
  if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
1794
1793
  let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
1795
1794
  if (!t.length) return [];
1796
- let { left: n, right: r } = J.value, i = Os.value, a = J.value.height, o = W.value.min, s = W.value.max - o, c = (e) => {
1795
+ let { left: n, right: r } = J.value, i = Es.value, a = J.value.height, o = W.value.min, s = W.value.max - o, c = (e) => {
1797
1796
  let t = (e - 0) / s;
1798
1797
  return i - t * a;
1799
1798
  };
1800
1799
  return t.map((e, t) => {
1801
- let { yAxis: { yTop: i, yBottom: a, label: o } } = e, s = i != null && a != null && i !== a, l = i == null ? null : c(i), u = a == null ? null : c(a), ee = Lo(o.fontSize);
1800
+ let { yAxis: { yTop: i, yBottom: a, label: o } } = e, s = i != null && a != null && i !== a, l = i == null ? null : c(i), u = a == null ? null : c(a), ee = Fo(o.fontSize);
1802
1801
  ee.font = `${o.fontSize}px sans-serif`;
1803
1802
  let te = ee.measureText(o.text).width, ne = o.fontSize, re = (o.position === "start" ? n + o.padding?.left : r - o.padding?.right) + o.offsetX, d = (l != null && u != null ? Math.min(l, u) : l ?? u) - o.fontSize / 3 + o.offsetY - o.padding?.top, f;
1804
1803
  f = o.textAnchor === "middle" ? re - te / 2 - o.padding?.left : o.textAnchor === "end" ? re - te - o.padding?.right : re - o.padding?.left;
@@ -1809,7 +1808,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1809
1808
  u,
1810
1809
  ie
1811
1810
  ].includes(NaN),
1812
- id: Yc("annotation_y", [
1811
+ id: qc("annotation_y", [
1813
1812
  t,
1814
1813
  i,
1815
1814
  a,
@@ -1840,16 +1839,16 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1840
1839
  };
1841
1840
  });
1842
1841
  });
1843
- function Wc(e, t) {
1842
+ function Hc(e, t) {
1844
1843
  let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
1845
1844
  return Ct(e[t].value) && i && V.value.line.cutNullValues;
1846
1845
  }
1847
- function Gc(e, t = 0, n = 1) {
1846
+ function Uc(e, t = 0, n = 1) {
1848
1847
  let r = Infinity, i = -Infinity, a = !1;
1849
1848
  for (let t = 0; t < e.length; t += 1) {
1850
1849
  let n = e[t];
1851
1850
  if (Array.isArray(n.series)) for (let e = 0; e < n.series.length; e += 1) {
1852
- let t = xo(n.series[e]);
1851
+ let t = yo(n.series[e]);
1853
1852
  Number.isFinite(t) && (a = !0, t < r && (r = t), t > i && (i = t));
1854
1853
  }
1855
1854
  }
@@ -1861,7 +1860,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1861
1860
  max: n
1862
1861
  };
1863
1862
  }
1864
- function Kc(e, t = 0, n = 1) {
1863
+ function Wc(e, t = 0, n = 1) {
1865
1864
  let r = Infinity, i = -Infinity, a = !1;
1866
1865
  for (let t = 0; t < e.length; t += 1) {
1867
1866
  let n = e[t];
@@ -1880,7 +1879,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1880
1879
  max: n
1881
1880
  };
1882
1881
  }
1883
- function qc(e, t = 0, n = 1) {
1882
+ function Gc(e, t = 0, n = 1) {
1884
1883
  if (!Array.isArray(e) || e.length === 0) return {
1885
1884
  min: t,
1886
1885
  max: n
@@ -1899,26 +1898,26 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1899
1898
  max: i
1900
1899
  };
1901
1900
  }
1902
- function Jc(e) {
1901
+ function Kc(e) {
1903
1902
  let t = String(e ?? ""), n = 0;
1904
1903
  for (let e = 0; e < t.length; e += 1) n = (n << 5) - n + t.charCodeAt(e), n |= 0;
1905
1904
  return Math.abs(n).toString(36);
1906
1905
  }
1907
- function Yc(e, t) {
1908
- return `${e}_${Jc(t.join("|"))}`;
1906
+ function qc(e, t) {
1907
+ return `${e}_${Kc(t.join("|"))}`;
1909
1908
  }
1910
- function Xc() {
1911
- return Ha.value || us.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`;
1909
+ function Jc() {
1910
+ return Ba.value || cs.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`;
1912
1911
  }
1913
- let Zc = y(() => Kc(So.value, 0, 1)), Qc = y(() => {
1914
- let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : Zc.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : Zc.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ? me(r, i, e) : Te(r, i, e);
1912
+ let Yc = y(() => Wc(bo.value, 0, 1)), Xc = y(() => {
1913
+ let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : Yc.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : Yc.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ? me(r, i, e) : Te(r, i, e);
1915
1914
  if (V.value.chart.grid.position !== "start") return a;
1916
1915
  let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
1917
1916
  return {
1918
1917
  ...a,
1919
1918
  max: a.max + o
1920
1919
  };
1921
- }), $c = y(() => G.value ? (Es.value ? [...Qc.value.ticks].reverse() : [...Qc.value.ticks]).map((e, t) => ({
1920
+ }), Zc = y(() => G.value ? (ws.value ? [...Xc.value.ticks].reverse() : [...Xc.value.ticks]).map((e, t) => ({
1922
1921
  id: `continuous_x_label_${t}`,
1923
1922
  text: g(V.value.chart.grid.labels.xAxis.formatter, e, pe({
1924
1923
  v: e,
@@ -1930,24 +1929,24 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1930
1929
  seriesIndex: t
1931
1930
  }),
1932
1931
  value: e,
1933
- x: tl({ x: e }),
1932
+ x: $c({ x: e }),
1934
1933
  index: t
1935
- })) : Yo.value);
1936
- function el(e, t) {
1937
- return G.value ? e.x : hc(t);
1934
+ })) : qo.value);
1935
+ function Qc(e, t) {
1936
+ return G.value ? e.x : pc(t);
1938
1937
  }
1939
- function tl({ x: e }) {
1940
- let t = Qc.value.max - Qc.value.min || 1, n = Ds((e - Qc.value.min) / t);
1938
+ function $c({ x: e }) {
1939
+ let t = Xc.value.max - Xc.value.min || 1, n = Ts((e - Xc.value.min) / t);
1941
1940
  return J.value.left + J.value.width * n;
1942
1941
  }
1943
- let nl = y(() => Kc(Ua.value, 0, 1)), rl = y(() => G.value ? nl.value.min : 0), il = y(() => G.value ? nl.value.max : Xa.value);
1944
- function al(e, t) {
1945
- return G.value ? e.x == null || e.y == null ? null : tl(e) : hc(t);
1942
+ let el = y(() => Wc(Va.value, 0, 1)), tl = y(() => G.value ? el.value.min : 0), nl = y(() => G.value ? el.value.max : Ja.value);
1943
+ function rl(e, t) {
1944
+ return G.value ? e.x == null || e.y == null ? null : $c(e) : pc(t);
1946
1945
  }
1947
- function ol(e) {
1946
+ function il(e) {
1948
1947
  return !G.value || !e ? null : e.x ?? null;
1949
1948
  }
1950
- function sl({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1949
+ function al({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1951
1950
  let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ? Te : me, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, ne = u(o.min, ee, c), re = u(i, te, c), d = ne.min >= 0 ? 0 : Math.abs(ne.min), f = ne.max + Math.abs(d), ie = re.max + 0, ae = e.stackIndex, oe = t - 1 - ae, se = H.value.isStacked ? 1 - e.cumulatedStackRatio : 0, ce = H.value.isStacked ? r * se + n * oe : 0, le = H.value.isStacked ? r * e.stackRatio : J.value.height;
1952
1951
  return {
1953
1952
  scaleSteps: c,
@@ -1963,27 +1962,27 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1963
1962
  autoScaleZeroPosition: J.value?.bottom - ce - le * 0 / ie
1964
1963
  };
1965
1964
  }
1966
- function cl({ datapoint: e, clampNegativeAutoScaleMaximum: t = !1 }) {
1967
- let n = Mc.value[e.scaleLabel], r = n.min, i = n.max;
1965
+ function ol({ datapoint: e, clampNegativeAutoScaleMaximum: t = !1 }) {
1966
+ let n = Ac.value[e.scaleLabel], r = n.min, i = n.max;
1968
1967
  return {
1969
1968
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (i - r)),
1970
1969
  valueMin: r,
1971
1970
  valueMax: t && i < 0 ? 0 : i
1972
1971
  };
1973
1972
  }
1974
- function ll({ datapoint: e, filterMinimumValues: t = !1, preserveLooseMinimumExpression: n = !1 }) {
1975
- let r = qc(e.absoluteValues, 0, 1), i = qc(t ? e.absoluteValues.filter((e) => ![null, void 0].includes(e)) : e.absoluteValues, 0, 1).min;
1973
+ function sl({ datapoint: e, filterMinimumValues: t = !1, preserveLooseMinimumExpression: n = !1 }) {
1974
+ let r = Gc(e.absoluteValues, 0, 1), i = Gc(t ? e.absoluteValues.filter((e) => ![null, void 0].includes(e)) : e.absoluteValues, 0, 1).min;
1976
1975
  return {
1977
1976
  max: e.scaleMax || r.max || 1,
1978
1977
  min: n ? e.scaleMin || i > 0 ? 0 : i : e.scaleMin || (i > 0 ? 0 : i)
1979
1978
  };
1980
1979
  }
1981
- function ul({ values: e, autoScaleSteps: t }) {
1980
+ function cl({ values: e, autoScaleSteps: t }) {
1982
1981
  return e.map((e) => t.min >= 0 ? (e - Math.abs(t.min)) / (t.max - Math.abs(t.min)) : (e + Math.abs(t.min)) / (t.max + Math.abs(t.min)));
1983
1982
  }
1984
- function dl({ datapoint: e, individualScale: t, yOffset: n, individualHeight: r }) {
1983
+ function ll({ datapoint: e, individualScale: t, yOffset: n, individualHeight: r }) {
1985
1984
  return t.ticks.map((i) => ({
1986
- y: Ts({
1985
+ y: Cs({
1987
1986
  value: i,
1988
1987
  scaleMin: t.min,
1989
1988
  scaleMax: t.max,
@@ -1996,9 +1995,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
1996
1995
  datapoint: e
1997
1996
  }));
1998
1997
  }
1999
- function fl({ datapoint: e, autoScaleSteps: t, yOffset: n, individualHeight: r }) {
1998
+ function ul({ datapoint: e, autoScaleSteps: t, yOffset: n, individualHeight: r }) {
2000
1999
  return t.ticks.map((i) => ({
2001
- y: ws({
2000
+ y: Ss({
2002
2001
  ratio: (i - t.min) / (t.max - t.min || 1),
2003
2002
  yOffset: n,
2004
2003
  individualHeight: r
@@ -2009,16 +2008,16 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2009
2008
  datapoint: e
2010
2009
  }));
2011
2010
  }
2012
- function pl({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, forceExactScale: i = !1, clampNegativeAutoScaleMaximum: a = !1, filterMinimumValues: o = !1, preserveLooseMinimumExpression: s = !1 }) {
2013
- ns(e);
2014
- let c = cl({
2011
+ function dl({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, forceExactScale: i = !1, clampNegativeAutoScaleMaximum: a = !1, filterMinimumValues: o = !1, preserveLooseMinimumExpression: s = !1 }) {
2012
+ es(e);
2013
+ let c = ol({
2015
2014
  datapoint: e,
2016
2015
  clampNegativeAutoScaleMaximum: a
2017
- }), l = ll({
2016
+ }), l = sl({
2018
2017
  datapoint: e,
2019
2018
  filterMinimumValues: o,
2020
2019
  preserveLooseMinimumExpression: s
2021
- }), u = sl({
2020
+ }), u = al({
2022
2021
  datapoint: e,
2023
2022
  totalSeries: t,
2024
2023
  gap: n,
@@ -2031,35 +2030,35 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2031
2030
  return {
2032
2031
  autoScale: c,
2033
2032
  individualExtremes: l,
2034
- scaleYLabels: dl({
2033
+ scaleYLabels: ll({
2035
2034
  datapoint: e,
2036
2035
  individualScale: u.individualScale,
2037
2036
  yOffset: u.yOffset,
2038
2037
  individualHeight: u.individualHeight
2039
2038
  }),
2040
- autoScaleYLabels: fl({
2039
+ autoScaleYLabels: ul({
2041
2040
  datapoint: e,
2042
2041
  autoScaleSteps: u.autoScaleSteps,
2043
2042
  yOffset: u.yOffset,
2044
2043
  individualHeight: u.individualHeight
2045
2044
  }),
2046
- autoScaleRatiosToNiceScale: ul({
2045
+ autoScaleRatiosToNiceScale: cl({
2047
2046
  values: e.absoluteValues,
2048
2047
  autoScaleSteps: u.autoScaleSteps
2049
2048
  }),
2050
2049
  ...u
2051
2050
  };
2052
2051
  }
2053
- function ml(e) {
2052
+ function fl(e) {
2054
2053
  return Array.isArray(e) ? e.slice(U.value.start, U.value.end) : [];
2055
2054
  }
2056
- function hl(e, t) {
2055
+ function pl(e, t) {
2057
2056
  return Array.isArray(e) && e[t + U.value.start] || "";
2058
2057
  }
2059
- let gl = y(() => {
2060
- let e = Tc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
2061
- return Ec.value.map((n, i) => {
2062
- let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: ee, zeroPosition: te, autoScaleZeroPosition: ne, scaleYLabels: re, autoScaleYLabels: d, autoScaleRatiosToNiceScale: f } = pl({
2058
+ let ml = y(() => {
2059
+ let e = Cc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
2060
+ return wc.value.map((n, i) => {
2061
+ let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: ee, zeroPosition: te, autoScaleZeroPosition: ne, scaleYLabels: re, autoScaleYLabels: d, autoScaleRatiosToNiceScale: f } = dl({
2063
2062
  datapoint: n,
2064
2063
  totalSeries: e,
2065
2064
  gap: t,
@@ -2067,13 +2066,13 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2067
2066
  clampNegativeAutoScaleMaximum: !0,
2068
2067
  filterMinimumValues: !0,
2069
2068
  preserveLooseMinimumExpression: !0
2070
- }), ie = Ac.value, ae = ml(n.comments), oe = n.series.map((e, t) => {
2071
- let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : xs(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + Ns.value.bar * i + Ns.value.bar * t * ie - Fc.value / 2 - i * Ic.value;
2069
+ }), ie = Oc.value, ae = fl(n.comments), oe = n.series.map((e, t) => {
2070
+ let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : ys(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + js.value.bar * i + js.value.bar * t * ie - Nc.value / 2 - i * Pc.value;
2072
2071
  return {
2073
2072
  yOffset: p(u),
2074
2073
  individualHeight: p(ee),
2075
2074
  x: p(a),
2076
- y: ws({
2075
+ y: Ss({
2077
2076
  ratio: r,
2078
2077
  yOffset: u,
2079
2078
  individualHeight: ee
@@ -2084,12 +2083,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2084
2083
  comment: ae[t] || ""
2085
2084
  };
2086
2085
  }), se = n.series.map((e, t) => {
2087
- let r = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left - Ns.value.bar / 2 + Ns.value.bar * i + Ns.value.bar * t * Co.value.filter((e) => e.type === "bar").filter((e) => !Yi.value.has(e.id)).length;
2086
+ let r = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left - js.value.bar / 2 + js.value.bar * i + js.value.bar * t * xo.value.filter((e) => e.type === "bar").filter((e) => !Yi.value.has(e.id)).length;
2088
2087
  return {
2089
2088
  yOffset: p(u),
2090
2089
  individualHeight: p(ee),
2091
2090
  x: p(r),
2092
- y: p(ws({
2091
+ y: p(Ss({
2093
2092
  ratio: f[t] || 0,
2094
2093
  yOffset: p(u),
2095
2094
  individualHeight: p(ee)
@@ -2099,7 +2098,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2099
2098
  individualMax: p(c),
2100
2099
  comment: ae[t] || ""
2101
2100
  };
2102
- }), ce = Pc({
2101
+ }), ce = Mc({
2103
2102
  datapoint: n,
2104
2103
  scaleYLabels: re,
2105
2104
  autoScaleYLabels: d,
@@ -2125,28 +2124,28 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2125
2124
  };
2126
2125
  });
2127
2126
  }), Q = y(() => {
2128
- let e = Tc.value, t = V.value.chart.grid.labels.yAxis.gap, i = H.value.isStacked ? t * (e - 1) : 0, a = J.value.height - i;
2129
- return Dc.value.map((i, o) => {
2130
- let { individualScale: s, autoScaleSteps: c, individualZero: l, individualMax: te, autoScaleMax: ne, yOffset: d, individualHeight: f, zeroPosition: oe, autoScaleZeroPosition: ce, scaleYLabels: de, autoScaleYLabels: fe, autoScaleRatiosToNiceScale: pe } = pl({
2127
+ let e = Cc.value, t = V.value.chart.grid.labels.yAxis.gap, i = H.value.isStacked ? t * (e - 1) : 0, a = J.value.height - i;
2128
+ return Tc.value.map((i, o) => {
2129
+ let { individualScale: s, autoScaleSteps: c, individualZero: l, individualMax: te, autoScaleMax: ne, yOffset: d, individualHeight: f, zeroPosition: oe, autoScaleZeroPosition: ce, scaleYLabels: de, autoScaleYLabels: fe, autoScaleRatiosToNiceScale: pe } = dl({
2131
2130
  datapoint: i,
2132
2131
  totalSeries: e,
2133
2132
  gap: t,
2134
2133
  usableHeight: a
2135
- }), me = ml(i.comments), m = i.series.map((e, t) => {
2134
+ }), me = fl(i.comments), m = i.series.map((e, t) => {
2136
2135
  if (G.value && (e.x == null || e.y == null)) return {
2137
2136
  index: t,
2138
2137
  x: null,
2139
2138
  y: null,
2140
2139
  value: null,
2141
- datasetXValue: ol(e),
2140
+ datasetXValue: il(e),
2142
2141
  comment: i.comments && i.comments.slice(U.value.start, U.value.end)[t] || ""
2143
2142
  };
2144
- let n = H.value.useIndividualScale ? (i.absoluteValues[t] + Math.abs(l)) / te : xs(xo(e));
2143
+ let n = H.value.useIndividualScale ? (i.absoluteValues[t] + Math.abs(l)) / te : ys(yo(e));
2145
2144
  return {
2146
2145
  index: t,
2147
- x: p(al(e, t)),
2148
- datasetXValue: ol(e),
2149
- y: p(ws({
2146
+ x: p(rl(e, t)),
2147
+ datasetXValue: il(e),
2148
+ y: p(Ss({
2150
2149
  ratio: n,
2151
2150
  yOffset: d,
2152
2151
  individualHeight: f
@@ -2158,27 +2157,27 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2158
2157
  index: t,
2159
2158
  x: null,
2160
2159
  y: null,
2161
- datasetXValue: ol(e),
2160
+ datasetXValue: il(e),
2162
2161
  value: null,
2163
2162
  comment: me[t] || ""
2164
2163
  } : [void 0, null].includes(i.absoluteValues[t]) ? {
2165
2164
  index: t,
2166
- x: p(al(e, t)),
2165
+ x: p(rl(e, t)),
2167
2166
  y: oe,
2168
2167
  value: i.absoluteValues[t],
2169
2168
  comment: me[t] || ""
2170
2169
  } : {
2171
2170
  index: t,
2172
- x: p(al(e, t)),
2173
- datasetXValue: ol(e),
2174
- y: p(ws({
2171
+ x: p(rl(e, t)),
2172
+ datasetXValue: il(e),
2173
+ y: p(Ss({
2175
2174
  ratio: pe[t] || 0,
2176
2175
  yOffset: d,
2177
2176
  individualHeight: f
2178
2177
  })),
2179
2178
  value: i.absoluteValues[t],
2180
2179
  comment: me[t] || ""
2181
- }), he = i.dashIndices && Array.isArray(i.dashIndices) && i?.dashIndices?.length > 0, g = V.value.line.cutNullValues ? ee(m) : ae(m.filter((e) => e.value !== null)), ge = V.value.line.cutNullValues ? ee(h) : ae(h.filter((e) => e.value !== null)), ve = V.value.line.cutNullValues ? u(m) : ue(m.filter((e) => e.value !== null)), ye = V.value.line.cutNullValues ? u(h) : ue(h.filter((e) => e.value !== null)), be = r(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null)), _ = r(V.value.line.cutNullValues ? h : h.filter((e) => e.value !== null)), xe = he ? le(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), i.dashIndices.map((e) => e - U.value.start)) : [], Se = he ? re(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), i.dashIndices.map((e) => e - U.value.start)) : [], Ce = Pc({
2180
+ }), he = i.dashIndices && Array.isArray(i.dashIndices) && i?.dashIndices?.length > 0, g = V.value.line.cutNullValues ? ee(m) : ae(m.filter((e) => e.value !== null)), ge = V.value.line.cutNullValues ? ee(h) : ae(h.filter((e) => e.value !== null)), ve = V.value.line.cutNullValues ? u(m) : ue(m.filter((e) => e.value !== null)), ye = V.value.line.cutNullValues ? u(h) : ue(h.filter((e) => e.value !== null)), be = r(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null)), _ = r(V.value.line.cutNullValues ? h : h.filter((e) => e.value !== null)), xe = he ? le(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), i.dashIndices.map((e) => e - U.value.start)) : [], Se = he ? re(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), i.dashIndices.map((e) => e - U.value.start)) : [], Ce = Mc({
2182
2181
  datapoint: i,
2183
2182
  scaleYLabels: de,
2184
2183
  autoScaleYLabels: fe,
@@ -2188,7 +2187,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2188
2187
  autoScaleMax: ne,
2189
2188
  yOffset: d,
2190
2189
  individualHeight: f
2191
- }), we = H.value.useIndividualScale ? i.autoScaling ? ce : oe : lo.value, Te = Math.max(Math.max(i.autoScaling ? ce : de.at(-1) ? de.at(-1).y : 0, J.value?.top), we), Ee = i.autoScaling ? h : m, De = V.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), Oe = i.absoluteValues.filter((e) => ![
2190
+ }), we = H.value.useIndividualScale ? i.autoScaling ? ce : oe : so.value, Te = Math.max(Math.max(i.autoScaling ? ce : de.at(-1) ? de.at(-1).y : 0, J.value?.top), we), Ee = i.autoScaling ? h : m, De = V.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), Oe = i.absoluteValues.filter((e) => ![
2192
2191
  null,
2193
2192
  void 0,
2194
2193
  NaN
@@ -2217,30 +2216,30 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2217
2216
  };
2218
2217
  });
2219
2218
  }), $ = y(() => {
2220
- let e = Tc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
2221
- return Oc.value.map((n) => {
2222
- let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: ee, autoScaleZeroPosition: te, scaleYLabels: ne, autoScaleYLabels: re, autoScaleRatiosToNiceScale: d } = pl({
2219
+ let e = Cc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
2220
+ return Ec.value.map((n) => {
2221
+ let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: ee, autoScaleZeroPosition: te, scaleYLabels: ne, autoScaleYLabels: re, autoScaleRatiosToNiceScale: d } = dl({
2223
2222
  datapoint: n,
2224
2223
  totalSeries: e,
2225
2224
  gap: t,
2226
2225
  usableHeight: r,
2227
2226
  forceExactScale: !0,
2228
2227
  preserveLooseMinimumExpression: !0
2229
- }), f = ml(n.comments), ie = n.series.map((e, t) => {
2228
+ }), f = fl(n.comments), ie = n.series.map((e, t) => {
2230
2229
  if (G.value && (e.x == null || e.y == null)) return {
2231
2230
  index: t,
2232
2231
  x: null,
2233
- datasetXValue: ol(e),
2232
+ datasetXValue: il(e),
2234
2233
  y: null,
2235
2234
  value: null,
2236
2235
  comment: f[t] || ""
2237
2236
  };
2238
- let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(o)) / s : xs(xo(e));
2237
+ let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(o)) / s : ys(yo(e));
2239
2238
  return {
2240
2239
  index: t,
2241
- x: p(al(e, t)),
2242
- datasetXValue: ol(e),
2243
- y: p(ws({
2240
+ x: p(rl(e, t)),
2241
+ datasetXValue: il(e),
2242
+ y: p(Ss({
2244
2243
  ratio: r,
2245
2244
  yOffset: l,
2246
2245
  individualHeight: u
@@ -2251,22 +2250,22 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2251
2250
  }), ae = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
2252
2251
  index: t,
2253
2252
  x: null,
2254
- datasetXValue: ol(e),
2253
+ datasetXValue: il(e),
2255
2254
  y: null,
2256
2255
  value: null,
2257
2256
  comment: f[t] || ""
2258
2257
  } : {
2259
2258
  index: t,
2260
- x: p(al(e, t)),
2261
- datasetXValue: ol(e),
2262
- y: p(ws({
2259
+ x: p(rl(e, t)),
2260
+ datasetXValue: il(e),
2261
+ y: p(Ss({
2263
2262
  ratio: d[t] || 0,
2264
2263
  yOffset: l,
2265
2264
  individualHeight: u
2266
2265
  })),
2267
2266
  value: n.absoluteValues[t],
2268
2267
  comment: f[t] || ""
2269
- }), oe = Pc({
2268
+ }), oe = Mc({
2270
2269
  datapoint: n,
2271
2270
  scaleYLabels: ne,
2272
2271
  autoScaleYLabels: re,
@@ -2291,14 +2290,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2291
2290
  groupId: oe.groupId
2292
2291
  };
2293
2292
  });
2294
- }), _l = y(() => {
2295
- let e = Object.entries(Mc.value).reduce((e, [t, n]) => (e[t] = {
2293
+ }), hl = y(() => {
2294
+ let e = Object.entries(Ac.value).reduce((e, [t, n]) => (e[t] = {
2296
2295
  ...n,
2297
2296
  scaleLabel: t
2298
2297
  }, e), {});
2299
2298
  return [
2300
2299
  ...Q.value,
2301
- ...gl.value,
2300
+ ...ml.value,
2302
2301
  ...$.value
2303
2302
  ].forEach((t) => {
2304
2303
  t.scaleGroup && (e[t.scaleLabel || ""] = {
@@ -2306,7 +2305,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2306
2305
  ...t.scaleGroup
2307
2306
  });
2308
2307
  }), e;
2309
- }), vl = y(() => {
2308
+ }), gl = y(() => {
2310
2309
  let e = Q.value.map((e) => ({
2311
2310
  name: e.name,
2312
2311
  color: e.color,
@@ -2319,7 +2318,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2319
2318
  yOffset: e.yOffset || 0,
2320
2319
  individualHeight: e.individualHeight || J.value.height,
2321
2320
  autoScaleYLabels: e.autoScaleYLabels
2322
- })), t = gl.value.map((e) => ({
2321
+ })), t = ml.value.map((e) => ({
2323
2322
  name: e.name,
2324
2323
  color: e.color,
2325
2324
  scale: e.individualScale,
@@ -2341,14 +2340,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2341
2340
  id: e.id,
2342
2341
  yOffset: e.yOffset || 0,
2343
2342
  individualHeight: e.individualHeight || J.value.height
2344
- })), r = H.value.useIndividualScale && !H.value.isStacked ? Object.values(_l.value) : [
2343
+ })), r = H.value.useIndividualScale && !H.value.isStacked ? Object.values(hl.value) : [
2345
2344
  ...e,
2346
2345
  ...t,
2347
2346
  ...n
2348
2347
  ], i = r.flatMap((e) => e).length;
2349
2348
  return r.flatMap((e, t) => {
2350
2349
  let n = 0;
2351
- n = H.value.isStacked ? q.value ? J.value?.right : J.value?.left : q.value ? J.value?.right + No() * t : J.value?.left / i * (t + 1);
2350
+ n = H.value.isStacked ? q.value ? J.value?.right : J.value?.left : q.value ? J.value?.right + jo() * t : J.value?.left / i * (t + 1);
2352
2351
  let r = H.value.useIndividualScale && !H.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
2353
2352
  return {
2354
2353
  unique: e.unique,
@@ -2362,7 +2361,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2362
2361
  individualHeight: e.individualHeight,
2363
2362
  x: n,
2364
2363
  yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
2365
- y: Ts({
2364
+ y: Cs({
2366
2365
  value: t,
2367
2366
  scaleMin: e.scale.min,
2368
2367
  scaleMax: e.scale.max,
@@ -2373,7 +2372,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2373
2372
  }))
2374
2373
  };
2375
2374
  });
2376
- }), yl = y(() => {
2375
+ }), _l = y(() => {
2377
2376
  let e = V.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
2378
2377
  if (!t.length) return [];
2379
2378
  let r = [];
@@ -2401,64 +2400,64 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2401
2400
  });
2402
2401
  });
2403
2402
  }), r;
2404
- }), bl = y(() => {
2403
+ }), vl = y(() => {
2405
2404
  let e = Z.value[0]?.index ?? null, t = G.value ? e : R.value;
2406
2405
  return {
2407
2406
  timeLabel: G.value ? {
2408
2407
  text: String(Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x),
2409
2408
  absoluteIndex: e
2410
2409
  } : Y.value[R.value],
2411
- datapoint: Vc.value,
2410
+ datapoint: zc.value,
2412
2411
  seriesIndex: R.value,
2413
2412
  selectedIndex: t,
2414
2413
  absoluteIndex: G.value ? e : R.value + U.value.start,
2415
- series: Co.value,
2416
- bars: gl.value,
2414
+ series: xo.value,
2415
+ bars: ml.value,
2417
2416
  lines: Q.value,
2418
2417
  plots: $.value,
2419
2418
  config: V.value
2420
2419
  };
2421
- }), xl = E({
2420
+ }), yl = E({
2422
2421
  months: [],
2423
2422
  shortMonths: [],
2424
2423
  days: [],
2425
2424
  shortDays: []
2426
- }), Sl = 0;
2425
+ }), bl = 0;
2427
2426
  xt(() => {
2428
- let e = ++Sl, t = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
2427
+ let e = ++bl, t = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
2429
2428
  (async () => {
2430
2429
  let n = await Pe(t.locale).catch(() => Pe("en"));
2431
- e === Sl && (xl.value = n.data);
2430
+ e === bl && (yl.value = n.data);
2432
2431
  })();
2433
2432
  });
2434
- let Cl = y(() => {
2433
+ let xl = y(() => {
2435
2434
  let e = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Ne({
2436
2435
  useUTC: e.useUTC,
2437
- locale: xl.value,
2436
+ locale: yl.value,
2438
2437
  januaryAsYear: e.januaryAsYear
2439
2438
  });
2440
2439
  return (e, n) => {
2441
2440
  let r = V.value.chart.grid.labels.xAxisLabels.values?.[e];
2442
2441
  return r == null ? "" : t.formatDate(new Date(r), n);
2443
2442
  };
2444
- }), wl = y(() => (V.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
2445
- text: Cl.value(t, V.value.chart.zoom.timeFormat),
2443
+ }), Sl = y(() => (V.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
2444
+ text: xl.value(t, V.value.chart.zoom.timeFormat),
2446
2445
  absoluteIndex: t
2447
- }))), Tl = /* @__PURE__ */ new Map();
2448
- function El(e) {
2446
+ }))), Cl = /* @__PURE__ */ new Map();
2447
+ function wl(e) {
2449
2448
  return {
2450
2449
  absoluteIndex: R.value + U.value.start,
2451
2450
  seriesIndex: R.value,
2452
- datapoint: Vc.value,
2453
- series: Co.value,
2454
- bars: gl.value,
2451
+ datapoint: zc.value,
2452
+ series: xo.value,
2453
+ bars: ml.value,
2455
2454
  lines: Q.value,
2456
2455
  plots: $.value,
2457
2456
  config: V.value,
2458
2457
  dateLabel: e
2459
2458
  };
2460
2459
  }
2461
- function Dl(e) {
2460
+ function Tl(e) {
2462
2461
  return [
2463
2462
  Ui.value[e.type],
2464
2463
  e.shape || "",
@@ -2469,9 +2468,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2469
2468
  e.slotAbsoluteIndex
2470
2469
  ].join("|");
2471
2470
  }
2472
- function Ol(e) {
2473
- let t = Dl(e);
2474
- if (Tl.has(t)) return Tl.get(t);
2471
+ function El(e) {
2472
+ let t = Tl(e);
2473
+ if (Cl.has(t)) return Cl.get(t);
2475
2474
  let n = V.value.chart.tooltip.backgroundColor, r = "", i = "";
2476
2475
  switch (Ui.value[e.type]) {
2477
2476
  case "bar":
@@ -2615,13 +2614,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2615
2614
  }).path}" fill="${e.color}" stroke="${n}" stroke-width="1" /></svg>`;
2616
2615
  break;
2617
2616
  }
2618
- break;
2619
- default: break;
2620
2617
  }
2621
- return Tl.set(t, r), r;
2618
+ return Cl.set(t, r), r;
2622
2619
  }
2623
- let kl = y(() => {
2624
- let e = "", t = Vc.value.map((e) => e.value).filter((e) => ce(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = G.value ? { text: g(V.value.chart.grid.labels.xAxis.formatter, Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x, pe({
2620
+ let Dl = y(() => {
2621
+ let e = "", t = zc.value.map((e) => e.value).filter((e) => ce(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = G.value ? { text: g(V.value.chart.grid.labels.xAxis.formatter, Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x, pe({
2625
2622
  v: Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x,
2626
2623
  r: V.value.chart.tooltip.roundingValue
2627
2624
  }), {
@@ -2629,18 +2626,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2629
2626
  serriesIndex: null
2630
2627
  }) } : Y.value[R.value], r = V.value.chart.tooltip.customFormat;
2631
2628
  if (Oe(r)) try {
2632
- let e = r(El(n));
2629
+ let e = r(wl(n));
2633
2630
  if (typeof e == "string") return e;
2634
2631
  } catch (e) {
2635
2632
  console.warn("Vue Data UI - VueUiXy: custom tooltip formatter failed.", e);
2636
2633
  }
2637
2634
  if (n && n.text && V.value.chart.tooltip.showTimeLabel) {
2638
- let t = Cl.value(R.value + U.value.start, V.value.chart.tooltip.timeFormat);
2635
+ let t = xl.value(R.value + U.value.start, V.value.chart.tooltip.timeFormat);
2639
2636
  G.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.chart.tooltip.borderColor}; width:100%">${V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
2640
2637
  }
2641
- return Vc.value.forEach((r) => {
2638
+ return zc.value.forEach((r) => {
2642
2639
  if (ce(r.value)) {
2643
- let i = Ol(r), a = V.value.chart.tooltip.showValue ? g(r.type === "line" ? V.value.line.labels.formatter : r.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, r.value, pe({
2640
+ let i = El(r), a = V.value.chart.tooltip.showValue ? g(r.type === "line" ? V.value.line.labels.formatter : r.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, r.value, pe({
2644
2641
  p: r.prefix,
2645
2642
  v: r.value,
2646
2643
  s: r.suffix,
@@ -2666,11 +2663,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2666
2663
  s: "%",
2667
2664
  r: V.value.chart.tooltip.roundingPercentage
2668
2665
  })})` : ""}</div>`;
2669
- let c = hl(r.comments, R.value);
2666
+ let c = pl(r.comments, R.value);
2670
2667
  V.value.chart.comments.showInTooltip && c && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${c}</div>`);
2671
2668
  }
2672
2669
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${V.value.chart.tooltip.color}">${e}</div>`;
2673
- }), Al = y(() => {
2670
+ }), Ol = y(() => {
2674
2671
  if (!G.value) return [];
2675
2672
  let e = /* @__PURE__ */ new Set(), t = [];
2676
2673
  return K.value.forEach((n) => {
@@ -2680,9 +2677,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2680
2677
  let i = String(r);
2681
2678
  e.has(i) || (e.add(i), t.push(r));
2682
2679
  });
2683
- }), t.sort((e, t) => Es.value ? t - e : e - t);
2680
+ }), t.sort((e, t) => ws.value ? t - e : e - t);
2684
2681
  });
2685
- function jl(e) {
2682
+ function kl(e) {
2686
2683
  let t = Number(e);
2687
2684
  return Number.isFinite(t) ? g(V.value.chart.grid.labels.xAxis.formatter, t, pe({
2688
2685
  v: t,
@@ -2692,22 +2689,22 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2692
2689
  seriesIndex: null
2693
2690
  }) : "-";
2694
2691
  }
2695
- function Ml(e) {
2696
- return G.value ? jl(e) : V.value.table.useDefaultTimeFormat ? Y.value[e]?.text ?? "-" : Cl.value(e + U.value.start, V.value.table.timeFormat);
2692
+ function Al(e) {
2693
+ return G.value ? kl(e) : V.value.table.useDefaultTimeFormat ? Y.value[e]?.text ?? "-" : xl.value(e + U.value.start, V.value.table.timeFormat);
2697
2694
  }
2698
- function Nl(e, t) {
2695
+ function jl(e, t) {
2699
2696
  if (G.value) {
2700
2697
  let n = Number(t);
2701
2698
  return Number.isFinite(n) ? e.series.find((e) => Number(e?.x) === n)?.y ?? null : null;
2702
2699
  }
2703
2700
  return e.absoluteValues[t];
2704
2701
  }
2705
- function Pl(e, t) {
2706
- let n = Nl(e, t);
2702
+ function Ml(e, t) {
2703
+ let n = jl(e, t);
2707
2704
  return Ct(n) ? Number(n.toFixed(V.value.table.rounding)) : "";
2708
2705
  }
2709
- function Fl(e, t) {
2710
- let n = Nl(e, t);
2706
+ function Nl(e, t) {
2707
+ let n = jl(e, t);
2711
2708
  return Ct(n) ? g(e.type === "line" ? V.value.line.labels.formatter : e.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, n, pe({
2712
2709
  p: e.prefix || V.value.chart.labels.prefix,
2713
2710
  v: n,
@@ -2715,33 +2712,33 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2715
2712
  r: V.value.table.rounding
2716
2713
  })) : "";
2717
2714
  }
2718
- function Il(e) {
2719
- return K.value.map((t) => Nl(t, e) ?? 0).reduce((e, t) => e + t, 0);
2715
+ function Pl(e) {
2716
+ return K.value.map((t) => jl(t, e) ?? 0).reduce((e, t) => e + t, 0);
2720
2717
  }
2721
- let Ll = y(() => {
2722
- if (G.value) return Al.value.map((e) => {
2723
- let t = Il(e);
2718
+ let Fl = y(() => {
2719
+ if (G.value) return Ol.value.map((e) => {
2720
+ let t = Pl(e);
2724
2721
  return {
2725
- period: Ml(e),
2726
- csvValues: K.value.map((t) => Pl(t, e)),
2727
- formattedValues: K.value.map((t) => Fl(t, e)),
2722
+ period: Al(e),
2723
+ csvValues: K.value.map((t) => Ml(t, e)),
2724
+ formattedValues: K.value.map((t) => Nl(t, e)),
2728
2725
  sum: t,
2729
2726
  formattedSum: t.toFixed(V.value.table.rounding)
2730
2727
  };
2731
2728
  });
2732
2729
  let e = [];
2733
2730
  for (let t = 0; t < X.value; t += 1) {
2734
- let n = Il(t);
2731
+ let n = Pl(t);
2735
2732
  e.push({
2736
- period: Ml(t),
2737
- csvValues: K.value.map((e) => Pl(e, t)),
2738
- formattedValues: K.value.map((e) => Fl(e, t)),
2733
+ period: Al(t),
2734
+ csvValues: K.value.map((e) => Ml(e, t)),
2735
+ formattedValues: K.value.map((e) => Nl(e, t)),
2739
2736
  sum: n,
2740
2737
  formattedSum: n.toFixed(V.value.table.rounding)
2741
2738
  });
2742
2739
  }
2743
2740
  return e;
2744
- }), Rl = y(() => So.value.length === 0 ? {
2741
+ }), Il = y(() => bo.value.length === 0 ? {
2745
2742
  head: [],
2746
2743
  body: [],
2747
2744
  config: {},
@@ -2752,11 +2749,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2752
2749
  color: e.color,
2753
2750
  type: e.type
2754
2751
  })),
2755
- body: Ll.value.map((e) => [e.period].concat(e.csvValues))
2756
- }), zl = y(() => {
2752
+ body: Fl.value.map((e) => [e.period].concat(e.csvValues))
2753
+ }), Ll = y(() => {
2757
2754
  let e = V.value.table.showSum, t = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : ""].concat(K.value.map((e) => e.name));
2758
2755
  e && (t = t.concat(" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"));
2759
- let n = Ll.value.map((t) => [t.period].concat(t.formattedValues, e ? t.formattedSum : [])), r = {
2756
+ let n = Fl.value.map((t) => [t.period].concat(t.formattedValues, e ? t.formattedSum : [])), r = {
2760
2757
  th: {
2761
2758
  backgroundColor: V.value.table.th.backgroundColor,
2762
2759
  color: V.value.table.th.color,
@@ -2776,19 +2773,19 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2776
2773
  colNames: i
2777
2774
  };
2778
2775
  });
2779
- function Bl(e = null) {
2776
+ function Rl(e = null) {
2780
2777
  let n = [
2781
2778
  [V.value.chart.title.text],
2782
2779
  [V.value.chart.title.subtitle.text],
2783
2780
  [""]
2784
- ], r = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Rl.value.head.map((e) => e.label)], i = Rl.value.body, a = o(n.concat([r]).concat(i));
2785
- e ? e(a) : t({
2786
- csvContent: a,
2781
+ ], r = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Il.value.head.map((e) => e.label)], i = Il.value.body, a = n.concat([r]).concat(i), s = o(a);
2782
+ e ? e(s) : t({
2783
+ csvContent: s,
2787
2784
  title: V.value.chart.title.text || "vue-ui-xy"
2788
2785
  });
2789
2786
  }
2790
- function Vl(e, t = null) {
2791
- if (wo.value) return;
2787
+ function zl(e, t = null) {
2788
+ if (So.value) return;
2792
2789
  Ki.value = e;
2793
2790
  let n = K.value.map((e) => ({
2794
2791
  name: e.name,
@@ -2808,21 +2805,21 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2808
2805
  seriesIndex: t + U.value.start
2809
2806
  }));
2810
2807
  }
2811
- function Hl() {
2808
+ function Bl() {
2812
2809
  H.value.showTable = !H.value.showTable;
2813
2810
  }
2814
- function Ul() {
2811
+ function Vl() {
2815
2812
  H.value.dataLabels.show = !H.value.dataLabels.show;
2816
2813
  }
2817
- function Wl() {
2814
+ function Hl() {
2818
2815
  H.value.showTooltip = !H.value.showTooltip;
2819
2816
  }
2820
- function Gl(e) {
2817
+ function Ul(e) {
2821
2818
  Gi.value = e, Xi.value += 1;
2822
2819
  }
2823
- function Kl() {
2820
+ function Wl() {
2824
2821
  if (!V.value.responsiveProportionalSizing) {
2825
- B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, ja.value.plot = V.value.plot.radius, ja.value.line = V.value.line.radius, ja.value.selectedLine = V.value.line.dot.selectedRadius;
2822
+ B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, ka.value.plot = V.value.plot.radius, ka.value.line = V.value.line.radius, ka.value.selectedLine = V.value.line.dot.selectedRadius;
2826
2823
  return;
2827
2824
  }
2828
2825
  B.value.dataLabels = Se({
@@ -2849,19 +2846,19 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2849
2846
  source: V.value.chart.labels.fontSize,
2850
2847
  threshold: 10,
2851
2848
  fallback: 10
2852
- }), ja.value.plot = Se({
2849
+ }), ka.value.plot = Se({
2853
2850
  relator: P.value,
2854
2851
  adjuster: 800,
2855
2852
  source: V.value.plot.radius,
2856
2853
  threshold: 1,
2857
2854
  fallback: 1
2858
- }), ja.value.line = Se({
2855
+ }), ka.value.line = Se({
2859
2856
  relator: P.value,
2860
2857
  adjuster: 800,
2861
2858
  source: V.value.line.radius,
2862
2859
  threshold: 1,
2863
2860
  fallback: 0
2864
- }), ja.value.selectedLine = Se({
2861
+ }), ka.value.selectedLine = Se({
2865
2862
  relator: P.value,
2866
2863
  adjuster: 800,
2867
2864
  source: V.value.line.dot.selectedRadius,
@@ -2869,55 +2866,55 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2869
2866
  fallback: 0
2870
2867
  });
2871
2868
  }
2872
- function ql() {
2869
+ function Gl() {
2873
2870
  if (ge(M.dataset) ? (we({
2874
2871
  componentName: "VueUiXy",
2875
2872
  type: "dataset",
2876
- debug: za.value
2877
- }), Wa.value = !0) : M.dataset.forEach((e, t) => {
2873
+ debug: La.value
2874
+ }), Ha.value = !0) : M.dataset.forEach((e, t) => {
2878
2875
  [null, void 0].includes(e.name) && (we({
2879
2876
  componentName: "VueUiXy",
2880
2877
  type: "datasetSerieAttribute",
2881
2878
  property: "name (string)",
2882
2879
  index: t,
2883
- debug: za.value
2884
- }), Wa.value = !0);
2885
- }), za.value && M.dataset.forEach((e) => {
2880
+ debug: La.value
2881
+ }), Ha.value = !0);
2882
+ }), La.value && M.dataset.forEach((e) => {
2886
2883
  e.series.forEach((t, n) => {
2887
2884
  ce(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2888
2885
  });
2889
- }), ge(M.dataset) || (Wa.value = V.value.loading), ta.value = V.value.chart.userOptions.showOnChartHover, na.value = V.value.chart.userOptions.keepStateOnChartLeave, ra.value = !V.value.chart.userOptions.showOnChartHover, Ra(), V.value.responsive) {
2886
+ }), ge(M.dataset) || (Ha.value = V.value.loading), ta.value = V.value.chart.userOptions.showOnChartHover, na.value = V.value.chart.userOptions.keepStateOnChartLeave, ra.value = !V.value.chart.userOptions.showOnChartHover, Ia(), V.value.responsive) {
2890
2887
  let e = wi.value.parentNode;
2891
2888
  Ii.value && (Li.value && Ii.value.unobserve(Li.value), Ii.value.disconnect(), Ii.value = null, Li.value = null);
2892
2889
  let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2893
2890
  V.value.chart.title.show && Ti.value && (r = Ti.value, i = r.getBoundingClientRect().height);
2894
2891
  let a = null, o = 0;
2895
- V.value.chart.zoom.show && Xa.value > 6 && Fa.value && Ei.value && Ei.value.$el && (a = Ei.value.$el, o = a.getBoundingClientRect().height);
2892
+ V.value.chart.zoom.show && Ja.value > 6 && Na.value && Ei.value && Ei.value.$el && (a = Ei.value.$el, o = a.getBoundingClientRect().height);
2896
2893
  let s = null, c = 0;
2897
2894
  V.value.chart.legend.show && Di.value && (s = Di.value, c = s.getBoundingClientRect().height);
2898
2895
  let l = 0;
2899
2896
  Oi.value && (l = Oi.value.getBoundingClientRect().height);
2900
2897
  let u = 0;
2901
- ki.value && (u = ki.value.getBoundingClientRect().height), Bi.value = t - i - c - o - l - u - 12, P.value = n, Vi.value = `0 0 ${P.value < 0 ? 10 : P.value} ${Bi.value < 0 ? 10 : Bi.value}`, Kl();
2898
+ ki.value && (u = ki.value.getBoundingClientRect().height), Bi.value = t - i - c - o - l - u - 12, P.value = n, Vi.value = `0 0 ${P.value < 0 ? 10 : P.value} ${Bi.value < 0 ? 10 : Bi.value}`, Wl();
2902
2899
  let ee = new ResizeObserver((e) => {
2903
2900
  for (let t of e) i = V.value.chart.title.show && Ti.value ? Ti.value.getBoundingClientRect().height : 0, o = Ei.value && Ei.value.$el ? Ei.value.$el.getBoundingClientRect().height : 0, c = Di.value ? Di.value.getBoundingClientRect().height : 0, l = Oi.value ? Oi.value.getBoundingClientRect().height : 0, u = ki.value ? ki.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2904
- Bi.value = t.contentRect.height - i - c - o - l - u - 12, P.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Vi.value = `0 0 ${P.value < 0 ? 10 : P.value} ${Bi.value < 0 ? 10 : Bi.value}`, Kl(), Ea();
2901
+ Bi.value = t.contentRect.height - i - c - o - l - u - 12, P.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Vi.value = `0 0 ${P.value < 0 ? 10 : P.value} ${Bi.value < 0 ? 10 : Bi.value}`, Wl(), wa();
2905
2902
  });
2906
2903
  });
2907
2904
  Ii.value = ee, Li.value = e, ee.observe(e);
2908
- } else Bi.value = V.value.chart.height, P.value = V.value.chart.width, B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, ja.value.plot = V.value.plot.radius, ja.value.line = V.value.line.radius, ja.value.selectedLine = V.value.line.dot.selectedRadius, Vi.value = `0 0 ${P.value} ${Bi.value}`;
2909
- Ea();
2905
+ } else Bi.value = V.value.chart.height, P.value = V.value.chart.width, B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, ka.value.plot = V.value.plot.radius, ka.value.line = V.value.line.radius, ka.value.selectedLine = V.value.line.dot.selectedRadius, Vi.value = `0 0 ${P.value} ${Bi.value}`;
2906
+ wa();
2910
2907
  }
2911
- function Jl(e) {
2908
+ function Kl(e) {
2912
2909
  Hi.value = {
2913
2910
  x: e.clientX,
2914
2911
  y: e.clientY
2915
2912
  };
2916
2913
  }
2917
2914
  mt(() => {
2918
- ql(), cs(), document.addEventListener("mousemove", Jl, { passive: !0 }), document.addEventListener("scroll", Ro, { passive: !0 });
2915
+ Gl(), os(), document.addEventListener("mousemove", Kl, { passive: !0 }), document.addEventListener("scroll", Io, { passive: !0 });
2919
2916
  }), pt(() => {
2920
- document.removeEventListener("scroll", Ro, { passive: !0 }), document.removeEventListener("mousemove", Jl, { passive: !0 }), Ii.value && (Li.value && Ii.value.unobserve(Li.value), Ii.value.disconnect(), Ii.value = null, Li.value = null), nu(), hs();
2917
+ document.removeEventListener("scroll", Io, { passive: !0 }), document.removeEventListener("mousemove", Kl, { passive: !0 }), Ii.value && (Li.value && Ii.value.unobserve(Li.value), Ii.value.disconnect(), Ii.value = null, Li.value = null), eu(), ps();
2921
2918
  }), Ge({
2922
2919
  timeLabelsEls: Ni,
2923
2920
  timeLabels: Y,
@@ -2938,73 +2935,73 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
2938
2935
  "autoRotate",
2939
2936
  "enable"
2940
2937
  ],
2941
- isAutoSize: oo,
2938
+ isAutoSize: io,
2942
2939
  height: Bi,
2943
2940
  width: P,
2944
2941
  rotation: V.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2945
2942
  });
2946
- let Yl = E(!1), Xl = E(null), Zl = E(200), Ql = y(() => R.value ?? I.value ?? 0), $l = y(() => {
2943
+ let ql = E(!1), Jl = E(null), Yl = E(200), Xl = y(() => R.value ?? I.value ?? 0), Zl = y(() => {
2947
2944
  if (!G.value) return null;
2948
- if (a(ua.value)) return Number(ua.value);
2945
+ if (a(ca.value)) return Number(ca.value);
2949
2946
  let e = Z.value[0];
2950
2947
  return a(e?.point?.x) ? Number(e.point.x) : null;
2951
2948
  });
2952
- function eu() {
2953
- let e = Math.ceil(Zl.value || 200);
2949
+ function Ql() {
2950
+ let e = Math.ceil(Yl.value || 200);
2954
2951
  return Math.min(Math.max(e, 1), 200);
2955
2952
  }
2956
- function tu() {
2957
- let e = eu(), t = (G.value && a($l.value) ? tl({ x: $l.value }) : hc(Ql.value)) - e / 2 - (200 - e) / 2, n = J.value?.left - (200 - e) / 2, r = J.value?.right - (200 + e) / 2;
2953
+ function $l() {
2954
+ let e = Ql(), t = (G.value && a(Zl.value) ? $c({ x: Zl.value }) : pc(Xl.value)) - e / 2 - (200 - e) / 2, n = J.value?.left - (200 - e) / 2, r = J.value?.right - (200 + e) / 2;
2958
2955
  return p(Math.max(n, Math.min(t, r)));
2959
2956
  }
2960
- function nu() {
2961
- ha.value !== null && (cancelAnimationFrame(ha.value), ha.value = null), ma.value && z.value && ma.value.unobserve(z.value), ma.value &&= (ma.value.disconnect(), null), ga.value &&= (ga.value(), null), z.value = null;
2957
+ function eu() {
2958
+ pa.value !== null && (cancelAnimationFrame(pa.value), pa.value = null), fa.value && z.value && fa.value.unobserve(z.value), fa.value &&= (fa.value.disconnect(), null), ma.value &&= (ma.value(), null), z.value = null;
2962
2959
  }
2963
- function ru(e) {
2964
- ha.value !== null && cancelAnimationFrame(ha.value), ha.value = requestAnimationFrame(() => {
2965
- Zl.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200), ha.value = null;
2960
+ function tu(e) {
2961
+ pa.value !== null && cancelAnimationFrame(pa.value), pa.value = requestAnimationFrame(() => {
2962
+ Yl.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200), pa.value = null;
2966
2963
  });
2967
2964
  }
2968
- function iu(e) {
2969
- !ma.value || !e || (z.value && z.value !== e && (ma.value.unobserve(z.value), z.value = null), e !== z.value && (dt(() => {
2970
- e.offsetParent !== null && ru(e.offsetWidth || e.getBoundingClientRect().width || 200);
2971
- }), ma.value.observe(e), z.value = e));
2965
+ function nu(e) {
2966
+ !fa.value || !e || (z.value && z.value !== e && (fa.value.unobserve(z.value), z.value = null), e !== z.value && (dt(() => {
2967
+ e.offsetParent !== null && tu(e.offsetWidth || e.getBoundingClientRect().width || 200);
2968
+ }), fa.value.observe(e), z.value = e));
2972
2969
  }
2973
2970
  mt(() => {
2974
- ma.value = new ResizeObserver((e) => {
2971
+ fa.value = new ResizeObserver((e) => {
2975
2972
  let t = e.find((e) => e.target === z.value) || e[0];
2976
- t && ru(t.contentRect.width || 200);
2977
- }), ga.value = xt((e) => {
2978
- let t = Xl.value;
2973
+ t && tu(t.contentRect.width || 200);
2974
+ }), ma.value = xt((e) => {
2975
+ let t = Jl.value;
2979
2976
  if (!t) {
2980
- ma.value && z.value && (ma.value.unobserve(z.value), z.value = null);
2977
+ fa.value && z.value && (fa.value.unobserve(z.value), z.value = null);
2981
2978
  return;
2982
2979
  }
2983
- iu(t), e(() => {
2984
- ma.value && z.value && z.value !== Xl.value && (ma.value.unobserve(z.value), z.value = null);
2980
+ nu(t), e(() => {
2981
+ fa.value && z.value && z.value !== Jl.value && (fa.value.unobserve(z.value), z.value = null);
2985
2982
  });
2986
2983
  });
2987
2984
  });
2988
- let au = y(() => {
2985
+ let ru = y(() => {
2989
2986
  if (G.value) {
2990
- if (!Number.isFinite(Number($l.value))) return "";
2987
+ if (!Number.isFinite(Number(Zl.value))) return "";
2991
2988
  } else if ([null, void 0].includes(R.value) && [null, void 0].includes(I.value)) return "";
2992
2989
  let e = (R.value == null ? 0 : R.value) || (I.value == null ? 0 : I.value), t = V.value.chart.timeTag.customFormat;
2993
- if (Yl.value = !1, G.value) {
2994
- let e = $l.value;
2990
+ if (ql.value = !1, G.value) {
2991
+ let e = Zl.value;
2995
2992
  if (Oe(t)) try {
2996
2993
  let n = t({
2997
2994
  absoluteIndex: e,
2998
2995
  seriesIndex: e,
2999
- datapoint: Vc.value,
3000
- bars: gl.value,
2996
+ datapoint: zc.value,
2997
+ bars: ml.value,
3001
2998
  lines: Q.value,
3002
2999
  plots: $.value,
3003
3000
  config: V.value
3004
3001
  });
3005
- if (typeof n == "string") return Yl.value = !0, n;
3002
+ if (typeof n == "string") return ql.value = !0, n;
3006
3003
  } catch {
3007
- console.warn("Custom format cannot be applied on timeTag."), Yl.value = !1;
3004
+ console.warn("Custom format cannot be applied on timeTag."), ql.value = !1;
3008
3005
  }
3009
3006
  return pe({
3010
3007
  v: e,
@@ -3015,78 +3012,78 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3015
3012
  let n = t({
3016
3013
  absoluteIndex: e + U.value.start,
3017
3014
  seriesIndex: e,
3018
- datapoint: Vc.value,
3019
- bars: gl.value,
3015
+ datapoint: zc.value,
3016
+ bars: ml.value,
3020
3017
  lines: Q.value,
3021
3018
  plots: $.value,
3022
3019
  config: V.value
3023
3020
  });
3024
- if (typeof n == "string") return Yl.value = !0, n;
3021
+ if (typeof n == "string") return ql.value = !0, n;
3025
3022
  } catch {
3026
- console.warn("Custom format cannot be applied on timeTag."), Yl.value = !1;
3023
+ console.warn("Custom format cannot be applied on timeTag."), ql.value = !1;
3027
3024
  }
3028
- if (!Yl.value) return [null, void 0].includes(Y.value[e]) ? "" : V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.timeTag.useDefaultFormat ? Cl.value(e + U.value.start, V.value.chart.timeTag.timeFormat) : Y.value[e].text;
3025
+ if (!ql.value) return [null, void 0].includes(Y.value[e]) ? "" : V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.timeTag.useDefaultFormat ? xl.value(e + U.value.start, V.value.chart.timeTag.timeFormat) : Y.value[e].text;
3029
3026
  });
3030
- function ou({ serie: e, plot: t, type: n }) {
3027
+ function iu({ serie: e, plot: t, type: n }) {
3031
3028
  if (!Ct(t.value)) return "";
3032
3029
  let r = pe({
3033
3030
  p: e.prefix || V.value.chart.labels.prefix,
3034
3031
  v: t.value,
3035
3032
  s: e.suffix || V.value.chart.labels.suffix,
3036
3033
  r: V.value[n].labels.rounding
3037
- }), i = t.datasetXValue;
3034
+ }), i = t.datasetXValue, o = G.value && a(i) ? `x: ${pe({
3035
+ v: i,
3036
+ r: V.value.chart.grid.labels.xAxis.rounding
3037
+ })}\ny: ${r}` : g(V.value[n].labels.formatter, t.value, r, {
3038
+ datapoint: t,
3039
+ serie: e
3040
+ });
3038
3041
  return c({
3039
- content: G.value && a(i) ? `x: ${pe({
3040
- v: i,
3041
- r: V.value.chart.grid.labels.xAxis.rounding
3042
- })}\ny: ${r}` : g(V.value[n].labels.formatter, t.value, r, {
3043
- datapoint: t,
3044
- serie: e
3045
- }),
3042
+ content: o,
3046
3043
  fontSize: B.value.plotLabels,
3047
3044
  fill: V.value[n].labels.color,
3048
3045
  x: 0,
3049
3046
  y: 0
3050
3047
  });
3051
3048
  }
3052
- function su({ plot: e }) {
3053
- let t = V.value.bar.labels.offsetY, n = Math.abs(Ms(e)), r = e.value < 0, i = {
3054
- x: Is(e) + V.value.bar.labels.offsetX,
3049
+ function au({ plot: e }) {
3050
+ let t = V.value.bar.labels.offsetY, n = Math.abs(As(e)), r = e.value < 0, i = {
3051
+ x: Ps(e) + V.value.bar.labels.offsetX,
3055
3052
  y: p(e.y) + (V.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
3056
3053
  };
3057
3054
  return `translate(${i.x}, ${i.y}) rotate(${V.value.bar.labels.rotation})`;
3058
3055
  }
3059
- function cu({ plot: e, type: t }) {
3056
+ function ou({ plot: e, type: t }) {
3060
3057
  let n = V.value[t].labels.offsetY, r = {
3061
3058
  x: e.x + V.value[t].labels.offsetX,
3062
3059
  y: p(e.y) + (V.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
3063
3060
  };
3064
3061
  return `translate(${r.x}, ${r.y}) rotate(${V.value[t].labels.rotation})`;
3065
3062
  }
3066
- function lu({ plot: e, type: t }) {
3063
+ function su({ plot: e, type: t }) {
3067
3064
  if (V.value[t].labels.textAnchor != null) return V.value[t].labels.textAnchor;
3068
3065
  let n = e.value >= 0;
3069
3066
  return V.value[t].labels.rotation === 0 ? "middle" : V.value[t].labels.alwaysOnTop || n ? "start" : "end";
3070
3067
  }
3071
- let uu = y(() => G.value ? a(ua.value) ? tl({ x: Number(ua.value) }) : a(Bs.value) ? Bs.value : null : hc(R.value ?? I.value ?? 0)), du = y(() => V.value.chart.highlighter.crosshairs.show && es.value), fu = y(() => [
3068
+ let cu = y(() => G.value ? a(ca.value) ? $c({ x: Number(ca.value) }) : a(Rs.value) ? Rs.value : null : pc(R.value ?? I.value ?? 0)), lu = y(() => V.value.chart.highlighter.crosshairs.show && Qo.value), uu = y(() => [
3072
3069
  ...Q.value,
3073
3070
  ...$.value,
3074
- ...gl.value
3071
+ ...ml.value
3075
3072
  ].flatMap((e) => (e.plots || []).map((e, t) => ({
3076
3073
  plot: e,
3077
3074
  index: t
3078
- })).filter(({ plot: t, index: n }) => hu(e, t, n)).filter(({ plot: e }) => Ct(e.value)).map(({ plot: t, index: n }) => ({
3075
+ })).filter(({ plot: t, index: n }) => pu(e, t, n)).filter(({ plot: e }) => Ct(e.value)).map(({ plot: t, index: n }) => ({
3079
3076
  ...t,
3080
3077
  index: t.index ?? n,
3081
3078
  serie: e,
3082
- x: p(e.type === "bar" ? Is(t) : t.x),
3079
+ x: p(e.type === "bar" ? Ps(t) : t.x),
3083
3080
  y: p(t.y)
3084
- })))), pu = y(() => {
3085
- if (!du.value) return null;
3081
+ })))), du = y(() => {
3082
+ if (!lu.value) return null;
3086
3083
  if (G.value) {
3087
3084
  let e = Z.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
3088
3085
  return a(t) ? {
3089
- x: uu.value,
3086
+ x: cu.value,
3090
3087
  text: g(V.value.chart.grid.labels.xAxis.formatter, t, pe({
3091
3088
  v: t,
3092
3089
  r: V.value.chart.tooltip.roundingValue
@@ -3095,24 +3092,24 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3095
3092
  }
3096
3093
  let e = R.value === null ? I.value : R.value;
3097
3094
  return e == null ? null : {
3098
- x: hc(e),
3095
+ x: pc(e),
3099
3096
  text: Y.value[e]?.text ?? ""
3100
3097
  };
3101
3098
  });
3102
- function mu(e) {
3099
+ function fu(e) {
3103
3100
  return V.value.chart.grid.labels.yAxis.position === "right" ? J.value.right : J.value.left;
3104
3101
  }
3105
- function hu(e, t, n) {
3102
+ function pu(e, t, n) {
3106
3103
  return G.value ? Z.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : R.value !== null && R.value === n || I.value !== null && I.value === n;
3107
3104
  }
3108
- function gu({ serie: e, plot: t, index: n, type: r }) {
3109
- return !t || !Ct(t.value) || !V.value[r].labels.show || !H.value.dataLabels.show ? !1 : !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || hu(e, t, n);
3105
+ function mu({ serie: e, plot: t, index: n, type: r }) {
3106
+ return !t || !Ct(t.value) || !V.value[r].labels.show || !H.value.dataLabels.show ? !1 : !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || pu(e, t, n);
3110
3107
  }
3111
- function _u(e, t) {
3108
+ function hu(e, t) {
3112
3109
  let n = [];
3113
3110
  return e.forEach((e, r) => {
3114
3111
  (Array.isArray(e.plots) ? e.plots : []).forEach((i, a) => {
3115
- gu({
3112
+ mu({
3116
3113
  serie: e,
3117
3114
  plot: i,
3118
3115
  index: a,
@@ -3127,53 +3124,53 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3127
3124
  });
3128
3125
  }), n;
3129
3126
  }
3130
- let vu = y(() => _u(gl.value, "bar")), yu = y(() => _u($.value, "plot")), bu = y(() => _u(Q.value, "line"));
3127
+ let gu = y(() => hu(ml.value, "bar")), _u = y(() => hu($.value, "plot")), vu = y(() => hu(Q.value, "line"));
3131
3128
  bt(() => M.dataset, (e) => {
3132
- if (Array.isArray(e) && e.length > 0 && (Wa.value = !1), V.value.chart.zoom.keepState) {
3133
- let e = Xa.value;
3129
+ if (Array.isArray(e) && e.length > 0 && (Ha.value = !1), V.value.chart.zoom.keepState) {
3130
+ let e = Ja.value;
3134
3131
  if (e > 0) {
3135
3132
  let t = U.value.start, n = U.value.end;
3136
- if (!as.value || t === 0 && n === 0) cs();
3133
+ if (!rs.value || t === 0 && n === 0) os();
3137
3134
  else {
3138
3135
  let r = Math.max(0, Math.min(t, e - 1)), i = Math.max(r + 1, Math.min(n, e));
3139
3136
  U.value = {
3140
3137
  start: r,
3141
3138
  end: i
3142
- }, Za.value = {
3139
+ }, Ya.value = {
3143
3140
  start: r,
3144
3141
  end: i
3145
- }, os.value = 0, ss.value = e;
3142
+ }, is.value = 0, as.value = e;
3146
3143
  }
3147
3144
  }
3148
3145
  } else U.value = {
3149
3146
  start: 0,
3150
- end: Xa.value
3147
+ end: Ja.value
3151
3148
  };
3152
- Ri.value += 1, ea.value += 1, Ea(), eo();
3149
+ Ri.value += 1, ea.value += 1, wa(), Qa();
3153
3150
  }, { deep: !0 }), bt(() => M.config, (e) => {
3154
- Ha.value || (V.value = Na()), ql(), Qi.value += 1, Zi.value += 1, Ra(), V.value.chart.zoom.keepState && Xa.value > 0 && (!as.value || U.value.start === 0 && U.value.end === 0) && cs(), eo();
3151
+ Ba.value || (V.value = ja()), Gl(), Qi.value += 1, Zi.value += 1, Ia(), V.value.chart.zoom.keepState && Ja.value > 0 && (!rs.value || U.value.start === 0 && U.value.end === 0) && os(), Qa();
3155
3152
  }, { deep: !0 });
3156
- let xu = E(!1), Su = E(!1);
3157
- function Cu() {
3153
+ let yu = E(!1), bu = E(!1);
3154
+ function xu() {
3158
3155
  let e = wi.value?.parentNode;
3159
3156
  if (!e) {
3160
- Su.value = xu.value, xu.value = !1;
3157
+ bu.value = yu.value, yu.value = !1;
3161
3158
  return;
3162
3159
  }
3163
3160
  let t = e.getBoundingClientRect();
3164
- Su.value = xu.value, xu.value = t.width > 0 && t.height > 0;
3161
+ bu.value = yu.value, yu.value = t.width > 0 && t.height > 0;
3165
3162
  }
3166
- function wu() {
3167
- return !xu.value || Su.value || as.value ? !1 : U.value.start === 0 && U.value.end === 0;
3163
+ function Su() {
3164
+ return !yu.value || bu.value || rs.value ? !1 : U.value.start === 0 && U.value.end === 0;
3168
3165
  }
3169
3166
  mt(() => {
3170
- Cu(), pa.value = new ResizeObserver(() => {
3171
- Cu(), xu.value && (ql(), eo(), wu() && cs());
3172
- }), wi.value?.parentNode && pa.value.observe(wi.value.parentNode);
3167
+ xu(), da.value = new ResizeObserver(() => {
3168
+ xu(), yu.value && (Gl(), Qa(), Su() && os());
3169
+ }), wi.value?.parentNode && da.value.observe(wi.value.parentNode);
3173
3170
  }), bt(V, () => {
3174
- Ra();
3171
+ Ia();
3175
3172
  }, { immediate: !0 });
3176
- let Tu = y(() => {
3173
+ let Cu = y(() => {
3177
3174
  let e = V.value.table.useDialog && !V.value.showTable, t = H.value.showTable;
3178
3175
  return {
3179
3176
  component: e ? _i : $e,
@@ -3206,48 +3203,23 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3206
3203
  bt(() => H.value.showTable, (e) => {
3207
3204
  V.value.showTable || (e && V.value.table.useDialog && sa.value ? sa.value.open() : sa.value && sa.value.close && sa.value.close());
3208
3205
  });
3209
- function Eu() {
3206
+ function wu() {
3210
3207
  H.value.showTable = !1, Fi.value && Fi.value.setTableIconState(!1);
3211
3208
  }
3212
- let Du = y(() => Co.value.map((e) => ({
3209
+ let Tu = y(() => xo.value.map((e) => ({
3213
3210
  shape: e.type === "bar" ? "square" : e.shape ?? "circle",
3214
3211
  color: e.color,
3215
3212
  name: e.name
3216
- }))), Ou = y(() => V.value.chart.backgroundColor), ku = y(() => V.value.chart.legend), { exportSvg: Au, getSvg: ju } = Be({
3213
+ }))), Eu = y(() => V.value.chart.backgroundColor), Du = y(() => V.value.chart.legend), Ou = y(() => V.value.chart.title), { isCallbackImaging: ku, isCallbackSvg: Au, generateSvg: ju, onGenerateImage: Mu } = He({
3217
3214
  svg: L,
3218
- title: y(() => V.value.chart.title),
3219
- legend: ku,
3220
- legendItems: Du,
3221
- backgroundColor: Ou
3215
+ title: Ou,
3216
+ legend: Du,
3217
+ legendItems: Tu,
3218
+ backgroundColor: Eu,
3219
+ getSvgCallback: () => V.value.chart.userOptions.callbacks.svg,
3220
+ generateImage: ro
3222
3221
  });
3223
- async function Mu({ isCb: e }) {
3224
- la.value = !0, await dt();
3225
- try {
3226
- if (e) {
3227
- let { blob: e, url: t, text: n, dataUrl: r } = await ju();
3228
- await Promise.resolve(V.value.chart.userOptions.callbacks.svg({
3229
- blob: e,
3230
- url: t,
3231
- text: n,
3232
- dataUrl: r
3233
- }));
3234
- } else await Promise.resolve(Au());
3235
- } finally {
3236
- la.value = !1;
3237
- }
3238
- }
3239
- function Nu(e) {
3240
- if (e?.stage === "start") {
3241
- ca.value = !0;
3242
- return;
3243
- }
3244
- if (e?.stage === "end") {
3245
- ca.value = !1;
3246
- return;
3247
- }
3248
- ao();
3249
- }
3250
- async function Pu() {
3222
+ async function Nu() {
3251
3223
  if (vi("copyAlt", {
3252
3224
  config: {
3253
3225
  ...V.value,
@@ -3255,7 +3227,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3255
3227
  },
3256
3228
  dataset: {
3257
3229
  lines: Q.value,
3258
- bars: gl.value,
3230
+ bars: ml.value,
3259
3231
  plots: $.value
3260
3232
  }
3261
3233
  }), !V.value.chart.userOptions.callbacks.altCopy) {
@@ -3269,84 +3241,84 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3269
3241
  },
3270
3242
  dataset: {
3271
3243
  lines: Q.value,
3272
- bars: gl.value,
3244
+ bars: ml.value,
3273
3245
  plots: $.value
3274
3246
  }
3275
3247
  }));
3276
3248
  }
3277
- let Fu = E(!1);
3278
- function Iu() {
3279
- U.value.end > U.value.start && (da.value = null), Bo.value = !0, Fu.value = !0;
3249
+ let Pu = E(!1);
3250
+ function Fu() {
3251
+ U.value.end > U.value.start && (la.value = null), Ro.value = !0, Pu.value = !0;
3280
3252
  }
3281
- function Lu() {
3282
- da.value = null, Js(), Fu.value = !1, Bo.value = !1;
3253
+ function Iu() {
3254
+ la.value = null, Ks(), Pu.value = !1, Ro.value = !1;
3283
3255
  }
3284
- function Ru(e) {
3256
+ function Lu(e) {
3285
3257
  if (!L.value || Wi.value || document.activeElement !== L.value) return;
3286
3258
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
3287
3259
  if (!t && !n || !U.value.end && U.value.end !== 0) return;
3288
3260
  let r = U.value.end - U.value.start;
3289
3261
  if (r <= 0) return;
3290
3262
  if (e.preventDefault(), e.stopPropagation(), G.value) {
3291
- let e = Us.value.length;
3263
+ let e = Vs.value.length;
3292
3264
  if (!e) return;
3293
- let r = da.value;
3294
- r !== null && r >= 0 && r < e ? n ? (r += 1, r >= e && (r = 0)) : t && (--r, r < 0 && (r = e - 1)) : r = n ? 0 : e - 1, Ws(r);
3265
+ let r = la.value;
3266
+ r !== null && r >= 0 && r < e ? n ? (r += 1, r >= e && (r = 0)) : t && (--r, r < 0 && (r = e - 1)) : r = n ? 0 : e - 1, Hs(r);
3295
3267
  return;
3296
3268
  }
3297
- let i = da.value, a = zs.value;
3298
- i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, da.value = i, zu(i), Vl(!0, i);
3269
+ let i = la.value, a = Ls.value;
3270
+ i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, la.value = i, Ru(i), zl(!0, i);
3299
3271
  }
3300
- function zu(e) {
3272
+ function Ru(e) {
3301
3273
  let t = U.value.end - U.value.start;
3302
3274
  if (t <= 0) return;
3303
- let n = J.value.width / t, r = l(J.value.left + n * e + n / 2, J.value.top + J.value.height / 2, L.value);
3304
- r && (fa.value = r);
3275
+ let n = J.value.width / t, r = J.value.left + n * e + n / 2, i = J.value.top + J.value.height / 2, a = l(r, i, L.value);
3276
+ a && (ua.value = a);
3305
3277
  }
3306
- let Bu = y(() => {
3307
- if (!zl.value) return null;
3278
+ let zu = y(() => {
3279
+ if (!Ll.value) return null;
3308
3280
  let e = V.value.table.showSum, t = [V.value.table.columnNames.period].concat(K.value.map((e) => e.name));
3309
3281
  return e && (t = t.concat(V.value.table.columnNames.total)), {
3310
3282
  headers: t,
3311
- rows: zl.value.body
3283
+ rows: Ll.value.body
3312
3284
  };
3313
3285
  });
3314
3286
  return Xe({
3315
- getData: Zs,
3316
- getImage: Qs,
3317
- generatePdf: io,
3318
- generateImage: ao,
3319
- generateSvg: Mu,
3320
- generateCsv: Bl,
3321
- hideSeries: ac,
3322
- showSeries: ic,
3323
- toggleStack: ts,
3324
- toggleTable: Hl,
3325
- toggleLabels: Ul,
3326
- toggleTooltip: Wl,
3327
- toggleAnnotator: Wo,
3328
- toggleFullscreen: Gl,
3329
- copyAlt: Pu,
3330
- resetZoom: ys
3287
+ getData: Ys,
3288
+ getImage: Xs,
3289
+ generatePdf: no,
3290
+ generateImage: ro,
3291
+ generateSvg: ju,
3292
+ generateCsv: Rl,
3293
+ hideSeries: rc,
3294
+ showSeries: nc,
3295
+ toggleStack: $o,
3296
+ toggleTable: Bl,
3297
+ toggleLabels: Vl,
3298
+ toggleTooltip: Hl,
3299
+ toggleAnnotator: Ho,
3300
+ toggleFullscreen: Ul,
3301
+ copyAlt: Nu,
3302
+ resetZoom: _s
3331
3303
  }), (t, n) => (T(), x("div", {
3332
3304
  id: `vue-ui-xy_${F.value}`,
3333
3305
  class: C(`vue-data-ui-component vue-ui-xy ${Gi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${V.value.useCssAnimation ? "" : "vue-ui-dna"}`),
3334
3306
  ref_key: "chart",
3335
3307
  ref: wi,
3336
3308
  style: w(`background:${V.value.chart.backgroundColor}; color:${V.value.chart.color};width:100%;font-family:${V.value.chart.fontFamily};${V.value.responsive ? "height: 100%" : ""}`),
3337
- onMouseenter: Ho,
3338
- onMouseleave: Uo,
3339
- onClick: Ys
3309
+ onMouseenter: Bo,
3310
+ onMouseleave: Vo,
3311
+ onClick: qs
3340
3312
  }, [
3341
3313
  S("div", {
3342
3314
  id: `chart-instructions-${F.value}`,
3343
3315
  class: "sr-only"
3344
3316
  }, [S("p", null, k(V.value.a11y.translations.keyboardNavigation), 1)], 8, Pt),
3345
- Bu.value?.rows?.length ? (T(), rt(tt, {
3317
+ zu.value?.rows?.length ? (T(), rt(tt, {
3346
3318
  key: 0,
3347
3319
  uid: F.value,
3348
- head: Bu.value.headers,
3349
- body: Bu.value.rows,
3320
+ head: zu.value.headers,
3321
+ body: zu.value.rows,
3350
3322
  notice: V.value.a11y.translations.tableAvailable,
3351
3323
  caption: V.value.a11y.translations.tableCaption
3352
3324
  }, null, 8, [
@@ -3362,8 +3334,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3362
3334
  backgroundColor: V.value.chart.backgroundColor,
3363
3335
  color: V.value.chart.color,
3364
3336
  active: Wi.value,
3365
- isCursorPointer: La.value,
3366
- onClose: Wo
3337
+ isCursorPointer: Fa.value,
3338
+ onClose: Ho
3367
3339
  }, {
3368
3340
  "annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
3369
3341
  "annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", ft(lt({ color: e })), void 0, !0)]),
@@ -3379,7 +3351,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3379
3351
  "active",
3380
3352
  "isCursorPointer"
3381
3353
  ])) : b("", !0),
3382
- cc.value ? (T(), x("div", {
3354
+ oc.value ? (T(), x("div", {
3383
3355
  key: 2,
3384
3356
  ref_key: "noTitle",
3385
3357
  ref: ki,
@@ -3412,8 +3384,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3412
3384
  key: `user_options_${Xi.value}`,
3413
3385
  backgroundColor: V.value.chart.backgroundColor,
3414
3386
  color: V.value.chart.color,
3415
- isPrinting: A(no),
3416
- isImaging: A(ro),
3387
+ isPrinting: A(eo),
3388
+ isImaging: A(to),
3417
3389
  uid: F.value,
3418
3390
  hasTooltip: V.value.chart.userOptions.buttons.tooltip && V.value.chart.tooltip.show,
3419
3391
  hasPdf: V.value.chart.userOptions.buttons.pdf,
@@ -3436,18 +3408,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3436
3408
  callbacks: V.value.chart.userOptions.callbacks,
3437
3409
  tableDialog: V.value.table.useDialog,
3438
3410
  printScale: V.value.chart.userOptions.print.scale,
3439
- isCursorPointer: La.value,
3440
- onToggleFullscreen: Gl,
3441
- onGeneratePdf: A(io),
3442
- onGenerateCsv: Bl,
3443
- onGenerateImage: Nu,
3444
- onGenerateSvg: Mu,
3445
- onToggleTable: Hl,
3446
- onToggleLabels: Ul,
3447
- onToggleStack: ts,
3448
- onToggleTooltip: Wl,
3449
- onToggleAnnotator: Wo,
3450
- onCopyAlt: Pu,
3411
+ isCursorPointer: Fa.value,
3412
+ onToggleFullscreen: Ul,
3413
+ onGeneratePdf: A(no),
3414
+ onGenerateCsv: Rl,
3415
+ onGenerateImage: A(Mu),
3416
+ onGenerateSvg: A(ju),
3417
+ onToggleTable: Bl,
3418
+ onToggleLabels: Vl,
3419
+ onToggleStack: $o,
3420
+ onToggleTooltip: Hl,
3421
+ onToggleAnnotator: Ho,
3422
+ onCopyAlt: Nu,
3451
3423
  style: w({ visibility: na.value ? ra.value ? "visible" : "hidden" : "visible" })
3452
3424
  }, it({ _: 2 }, [
3453
3425
  t.$slots.menuIcon ? {
@@ -3529,7 +3501,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3529
3501
  fn: j(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
3530
3502
  key: "13"
3531
3503
  } : void 0
3532
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : b("", !0),
3504
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : b("", !0),
3533
3505
  S("div", It, [(T(), x("svg", {
3534
3506
  ref_key: "svgRef",
3535
3507
  ref: L,
@@ -3537,7 +3509,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3537
3509
  class: C([{
3538
3510
  "vue-data-ui-fullscreen--on": Gi.value,
3539
3511
  "vue-data-ui-fulscreen--off": !Gi.value,
3540
- "vue-data-ui-no-transition": !A(Ia)
3512
+ "vue-data-ui-no-transition": !A(Pa)
3541
3513
  }, "vue-ui-xy-svg vue-data-ui-svg"]),
3542
3514
  width: "100%",
3543
3515
  viewBox: Vi.value,
@@ -3546,18 +3518,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3546
3518
  color: V.value.chart.color,
3547
3519
  fontFamily: V.value.chart.fontFamily
3548
3520
  }),
3549
- "aria-label": oc.value,
3521
+ "aria-label": ic.value,
3550
3522
  "aria-describedby": `chart-instructions-${F.value}`,
3551
3523
  "aria-live": "polite",
3552
3524
  role: "img",
3553
3525
  tabindex: "0",
3554
3526
  preserveAspectRatio: "xMidYMid",
3555
- onMousemove: qs,
3556
- onMouseleave: Js,
3557
- onClick: Ys,
3558
- onFocus: Iu,
3559
- onBlur: Lu,
3560
- onKeydown: Ru
3527
+ onMousemove: Gs,
3528
+ onMouseleave: Ks,
3529
+ onClick: qs,
3530
+ onFocus: Fu,
3531
+ onBlur: Iu,
3532
+ onKeydown: Lu
3561
3533
  }, [S("g", {
3562
3534
  ref_key: "G",
3563
3535
  ref: Ai,
@@ -3585,7 +3557,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3585
3557
  "stroke-linecap": "round",
3586
3558
  style: { animation: "none !important" }
3587
3559
  }, null, 8, Vt)) : b("", !0),
3588
- H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (T(!0), x(v, { key: 2 }, D(vl.value, (e) => (T(), x("g", { key: `individual_grid_${e.groupId || e.id}` }, [e.id === N.value && e.yLabels.length ? (T(!0), x(v, { key: 0 }, D(e.yLabels, (t) => (T(), x("line", {
3560
+ H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (T(!0), x(v, { key: 2 }, D(gl.value, (e) => (T(), x("g", { key: `individual_grid_${e.groupId || e.id}` }, [e.id === N.value && e.yLabels.length ? (T(!0), x(v, { key: 0 }, D(e.yLabels, (t) => (T(), x("line", {
3589
3561
  key: `selected_individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
3590
3562
  x1: J.value?.left,
3591
3563
  x2: J.value?.right,
@@ -3616,7 +3588,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3616
3588
  y2: A(_)(J.value?.bottom),
3617
3589
  "stroke-linecap": "round",
3618
3590
  style: { animation: "none !important" }
3619
- }, null, 8, Ht)) : b("", !0), V.value.chart.grid.showHorizontalLines ? (T(), x("g", Ut, [(T(!0), x(v, null, D(Hc.value, (e) => (T(), x("line", {
3591
+ }, null, 8, Ht)) : b("", !0), V.value.chart.grid.showHorizontalLines ? (T(), x("g", Ut, [(T(!0), x(v, null, D(Bc.value, (e) => (T(), x("line", {
3620
3592
  key: `horizontal_grid_line_${e.value}_${e.y}`,
3621
3593
  x1: J.value?.left,
3622
3594
  x2: J.value?.right,
@@ -3628,21 +3600,21 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3628
3600
  style: { animation: "none !important" }
3629
3601
  }, null, 8, Wt))), 128))])) : b("", !0)], 64)),
3630
3602
  V.value.chart.grid.showVerticalLines ? (T(), x("g", qt, [S("path", {
3631
- d: Po.value,
3603
+ d: Mo.value,
3632
3604
  "stroke-width": .5,
3633
3605
  stroke: V.value.chart.grid.stroke,
3634
3606
  "stroke-linecap": "round",
3635
3607
  style: { animation: "none !important" }
3636
3608
  }, null, 8, Jt)])) : b("", !0),
3637
3609
  V.value.chart.grid.labels.xAxisLabels.show ? (T(), x("g", Yt, [S("path", {
3638
- d: Fo.value,
3610
+ d: No.value,
3639
3611
  stroke: V.value.chart.grid.stroke,
3640
3612
  "stroke-width": 1,
3641
3613
  "stroke-linecap": "round",
3642
3614
  style: { animation: "none !important" }
3643
3615
  }, null, 8, Xt)])) : b("", !0)
3644
3616
  ]),
3645
- (T(!0), x(v, null, D(gl.value, (e, n) => (T(), x("defs", { key: `def_rect_${n}` }, [t.$slots["bar-gradient"] ? O(t.$slots, "bar-gradient", ut({ ref_for: !0 }, {
3617
+ (T(!0), x(v, null, D(ml.value, (e, n) => (T(), x("defs", { key: `def_rect_${n}` }, [t.$slots["bar-gradient"] ? O(t.$slots, "bar-gradient", ut({ ref_for: !0 }, {
3646
3618
  series: e,
3647
3619
  positiveId: `rectGradient_pos_${n}_${F.value}`,
3648
3620
  negativeId: `rectGradient_neg_${n}_${F.value}`
@@ -3754,32 +3726,32 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3754
3726
  "stop-color": t,
3755
3727
  offset: A(Ae)(r, e.temperatureColors.length)
3756
3728
  }, null, 8, $t))), 128))], 8, Qt)])) : b("", !0)], 64))), 128)),
3757
- (T(!0), x(v, null, D(lc.value, (e) => (T(), x("g", { key: `highlight_area_${e.from}_${e.span}_${e.color}` }, [e.show ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(e.span, (t, n) => (T(), x("g", { key: `highlight_area_rect_${e.from}_${n}` }, [S("rect", {
3729
+ (T(!0), x(v, null, D(sc.value, (e) => (T(), x("g", { key: `highlight_area_${e.from}_${e.span}_${e.color}` }, [e.show ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(e.span, (t, n) => (T(), x("g", { key: `highlight_area_rect_${e.from}_${n}` }, [S("rect", {
3758
3730
  style: w({
3759
3731
  transition: "none",
3760
3732
  opacity: +(e.from + n >= U.value.start && e.from + n <= U.value.end - 1)
3761
3733
  }),
3762
- x: _c(e.from + n - U.value.start),
3734
+ x: hc(e.from + n - U.value.start),
3763
3735
  y: J.value?.top,
3764
3736
  height: J.value.height < 0 ? 10 : J.value.height,
3765
- width: vc(e.from + n - U.value.start),
3737
+ width: gc(e.from + n - U.value.start),
3766
3738
  fill: A(i)(e.color, e.opacity)
3767
3739
  }, null, 12, en)]))), 128)), (T(!0), x(v, null, D(e.span, (t, n) => (T(), x("g", { key: `highlight_area_caption_${e.from}_${n}` }, [e.caption.text && n === 0 ? (T(), x("foreignObject", {
3768
3740
  key: 0,
3769
- x: _c(e.from + n - U.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - xc(e.span) / 2),
3741
+ x: hc(e.from + n - U.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - yc(e.span) / 2),
3770
3742
  y: J.value?.top + e.caption.offsetY,
3771
3743
  style: w({
3772
3744
  overflow: "visible",
3773
3745
  opacity: +(e.to >= U.value.start && e.from < U.value.end)
3774
3746
  }),
3775
3747
  height: "1",
3776
- width: e.caption.width === "auto" ? xc(e.span) : e.caption.width
3748
+ width: e.caption.width === "auto" ? yc(e.span) : e.caption.width
3777
3749
  }, [S("div", { style: w(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`) }, k(e.caption.text), 5)], 12, tn)) : b("", !0)]))), 128))], 64)) : b("", !0)]))), 128)),
3778
- Bo.value && !G.value ? (T(), x("g", nn, [(T(!0), x(v, null, D(X.value, (e, t) => (T(), x("g", { key: `tooltip_trap_highlighter_${t}` }, [S("rect", {
3779
- x: _c(t),
3750
+ Ro.value && !G.value ? (T(), x("g", nn, [(T(!0), x(v, null, D(X.value, (e, t) => (T(), x("g", { key: `tooltip_trap_highlighter_${t}` }, [S("rect", {
3751
+ x: hc(t),
3780
3752
  y: J.value?.top,
3781
3753
  height: J.value.height < 0 ? 10 : J.value.height,
3782
- width: bc(t),
3754
+ width: vc(t),
3783
3755
  fill: [
3784
3756
  I.value,
3785
3757
  R.value,
@@ -3790,41 +3762,41 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3790
3762
  animation: "none !important"
3791
3763
  }
3792
3764
  }, null, 8, rn)]))), 128))])) : b("", !0),
3793
- gl.value.length ? (T(!0), x(v, { key: 1 }, D(gl.value, (e, n) => (T(), x("g", {
3765
+ ml.value.length ? (T(!0), x(v, { key: 1 }, D(ml.value, (e, n) => (T(), x("g", {
3794
3766
  key: `serie_bar_${e.id}`,
3795
3767
  class: C(`serie_bar_${n}`),
3796
3768
  style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3797
3769
  }, [(T(!0), x(v, null, D(e.plots, (r, i) => (T(), x("g", { key: `bar_plot_${n}_${i}` }, [
3798
3770
  A(Ct)(r.value) ? (T(), x("rect", {
3799
3771
  key: 0,
3800
- x: Fs(r) + Rc.value / 2,
3801
- y: H.value.useIndividualScale ? Rs(r) : Ls(r),
3802
- height: H.value.useIndividualScale ? Math.abs(Ms(r)) : Math.abs(js(r)),
3803
- width: Lc.value - Rc.value,
3772
+ x: Ns(r) + Ic.value / 2,
3773
+ y: H.value.useIndividualScale ? Is(r) : Fs(r),
3774
+ height: H.value.useIndividualScale ? Math.abs(As(r)) : Math.abs(ks(r)),
3775
+ width: Fc.value - Ic.value,
3804
3776
  rx: V.value.bar.borderRadius,
3805
3777
  fill: V.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${n}_${F.value})` : `url(#rectGradient_neg_${n}_${F.value})` : e.color,
3806
3778
  stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
3807
3779
  "stroke-width": V.value.bar.border.strokeWidth,
3808
- style: w({ transition: A(Ha) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
3780
+ style: w({ transition: A(Ba) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
3809
3781
  }, null, 12, an)) : b("", !0),
3810
3782
  A(Ct)(r.value) && t.$slots.pattern ? (T(), x("rect", {
3811
3783
  key: 1,
3812
- x: Fs(r) - Rc.value / 2,
3813
- y: H.value.useIndividualScale ? Rs(r) : Ls(r),
3814
- height: H.value.useIndividualScale ? Math.abs(Ms(r)) : Math.abs(js(r)),
3815
- width: Lc.value - Rc.value,
3784
+ x: Ns(r) - Ic.value / 2,
3785
+ y: H.value.useIndividualScale ? Is(r) : Fs(r),
3786
+ height: H.value.useIndividualScale ? Math.abs(As(r)) : Math.abs(ks(r)),
3787
+ width: Fc.value - Ic.value,
3816
3788
  rx: V.value.bar.borderRadius,
3817
3789
  fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
3818
3790
  stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
3819
3791
  "stroke-width": V.value.bar.border.strokeWidth,
3820
- style: w({ transition: A(Ha) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
3792
+ style: w({ transition: A(Ba) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
3821
3793
  }, null, 12, on)) : b("", !0),
3822
3794
  r.comment && V.value.chart.comments.show ? (T(), x("foreignObject", {
3823
3795
  key: 2,
3824
3796
  style: { overflow: "visible" },
3825
3797
  height: "12",
3826
- width: Lc.value + V.value.chart.comments.width,
3827
- x: Fs(r) - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
3798
+ width: Fc.value + V.value.chart.comments.width,
3799
+ x: Ns(r) - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
3828
3800
  y: A(p)(r.y) + V.value.chart.comments.offsetY + 6
3829
3801
  }, [O(t.$slots, "plot-comment", { plot: {
3830
3802
  ...r,
@@ -3839,14 +3811,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3839
3811
  "stroke-width": "1",
3840
3812
  x1: J.value?.left,
3841
3813
  x2: J.value?.right,
3842
- y1: A(_)(As.value),
3843
- y2: A(_)(As.value),
3814
+ y1: A(_)(Os.value),
3815
+ y2: A(_)(Os.value),
3844
3816
  "stroke-linecap": "round",
3845
3817
  style: { animation: "none !important" }
3846
3818
  }, null, 8, cn)) : b("", !0),
3847
- !V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && es.value ? (T(), x("g", ln, [S("line", {
3848
- x1: uu.value,
3849
- x2: uu.value,
3819
+ !V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && Qo.value ? (T(), x("g", ln, [S("line", {
3820
+ x1: cu.value,
3821
+ x2: cu.value,
3850
3822
  y1: A(_)(J.value?.top),
3851
3823
  y2: A(_)(J.value?.bottom),
3852
3824
  stroke: V.value.chart.highlighter.color,
@@ -3859,10 +3831,10 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3859
3831
  "pointer-events": "none"
3860
3832
  }
3861
3833
  }, null, 8, un)])) : b("", !0),
3862
- du.value ? (T(), x("g", dn, [(T(!0), x(v, null, D(fu.value, (e) => (T(), x("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
3834
+ lu.value ? (T(), x("g", dn, [(T(!0), x(v, null, D(uu.value, (e) => (T(), x("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
3863
3835
  S("line", {
3864
3836
  x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(e.x) : J.value.left,
3865
- x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(mu(e.x)) : J.value.right,
3837
+ x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(fu(e.x)) : J.value.right,
3866
3838
  y1: A(_)(e.y),
3867
3839
  y2: A(_)(e.y),
3868
3840
  stroke: V.value.chart.highlighter.crosshairs.stroke,
@@ -3883,7 +3855,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3883
3855
  style: { "pointer-events": "none" }
3884
3856
  }, null, 8, pn),
3885
3857
  S("circle", {
3886
- cx: A(_)(mu(e.x)),
3858
+ cx: A(_)(fu(e.x)),
3887
3859
  cy: A(_)(e.y),
3888
3860
  r: V.value.chart.highlighter.crosshairs.dot.radius,
3889
3861
  fill: V.value.chart.highlighter.crosshairs.dot.fill,
@@ -3914,9 +3886,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3914
3886
  key: 6,
3915
3887
  ref_key: "scaleLabels",
3916
3888
  ref: Pi,
3917
- opacity: du.value ? .2 : 1,
3889
+ opacity: lu.value ? .2 : 1,
3918
3890
  style: { transition: "opacity 0.2s" }
3919
- }, [H.value.useIndividualScale ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(vl.value, (e) => (T(), x("g", { key: `individual_scale_axis_${e.groupId || e.id}` }, [S("line", {
3891
+ }, [H.value.useIndividualScale ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(gl.value, (e) => (T(), x("g", { key: `individual_scale_axis_${e.groupId || e.id}` }, [S("line", {
3920
3892
  x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
3921
3893
  x2: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
3922
3894
  y1: H.value.isStacked ? A(_)(J.value?.bottom - e.yOffset - e.individualHeight) : A(_)(J.value?.top),
@@ -3925,12 +3897,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3925
3897
  "stroke-width": V.value.chart.grid.stroke,
3926
3898
  "stroke-linecap": "round",
3927
3899
  style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3928
- }, null, 12, _n)]))), 128)), (T(!0), x(v, null, D(vl.value, (e) => (T(), x("g", {
3900
+ }, null, 12, _n)]))), 128)), (T(!0), x(v, null, D(gl.value, (e) => (T(), x("g", {
3929
3901
  key: `individual_scale_label_${e.groupId || e.id}`,
3930
3902
  style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`)
3931
3903
  }, [
3932
3904
  S("text", {
3933
- class: C({ "vue-data-ui-transition": A(Ia) }),
3905
+ class: C({ "vue-data-ui-transition": A(Pa) }),
3934
3906
  fill: e.color,
3935
3907
  "font-size": B.value.dataLabels * .8,
3936
3908
  "text-anchor": "middle",
@@ -3948,7 +3920,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3948
3920
  style: { animation: "none !important" }
3949
3921
  }, null, 8, yn)) : b("", !0)], 64))), 128)),
3950
3922
  (T(!0), x(v, null, D(e.yLabels, (t, n) => (T(), x("text", {
3951
- class: C({ "vue-data-ui-transition": A(Ia) }),
3923
+ class: C({ "vue-data-ui-transition": A(Pa) }),
3952
3924
  key: `individual_scale_y_label_${e.groupId || e.id}_${t.value}_${n}`,
3953
3925
  transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${A(_)(t.y) + B.value.dataLabels / 3})`,
3954
3926
  "text-anchor": q.value ? "start" : "end",
@@ -3963,7 +3935,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3963
3935
  datapoint: t.datapoint,
3964
3936
  seriesIndex: n
3965
3937
  })), 11, bn))), 128))
3966
- ], 4))), 128))], 64)) : (T(!0), x(v, { key: 1 }, D(Hc.value, (e, t) => (T(), x("g", { key: `yLabel_${t}` }, [A(Ct)(e) && e.value >= W.value.min && e.value <= W.value.max && V.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), x("line", {
3938
+ ], 4))), 128))], 64)) : (T(!0), x(v, { key: 1 }, D(Bc.value, (e, t) => (T(), x("g", { key: `yLabel_${t}` }, [A(Ct)(e) && e.value >= W.value.min && e.value <= W.value.max && V.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), x("line", {
3967
3939
  key: 0,
3968
3940
  x1: q.value ? J.value?.right : J.value?.left,
3969
3941
  x2: q.value ? J.value?.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value?.left - V.value.chart.grid.labels.yAxis.crosshairSize,
@@ -3975,7 +3947,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3975
3947
  style: { animation: "none !important" }
3976
3948
  }, null, 8, xn)) : b("", !0), e.value >= W.value.min && e.value <= W.value.max ? (T(), x("text", {
3977
3949
  key: 1,
3978
- class: C({ "vue-data-ui-transition": A(Ia) }),
3950
+ class: C({ "vue-data-ui-transition": A(Pa) }),
3979
3951
  transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(p)(e.y + B.value.dataLabels / 3)})`,
3980
3952
  "font-size": B.value.dataLabels,
3981
3953
  "text-anchor": q.value ? "start" : "end",
@@ -3986,8 +3958,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
3986
3958
  s: e.suffix,
3987
3959
  r: V.value.chart.grid.labels.yAxis.rounding
3988
3960
  })) : ""), 11, Sn)) : b("", !0)]))), 128))], 8, gn)) : b("", !0),
3989
- du.value ? (T(), x("g", Cn, [(T(!0), x(v, null, D(fu.value, (e) => (T(), x("text", {
3990
- class: C({ "vue-data-ui-transition": A(Ia) }),
3961
+ lu.value ? (T(), x("g", Cn, [(T(!0), x(v, null, D(uu.value, (e) => (T(), x("text", {
3962
+ class: C({ "vue-data-ui-transition": A(Pa) }),
3991
3963
  key: `crosshair_y_label_${e.serie.id}_${e.index}`,
3992
3964
  transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(_)(e.y) + B.value.dataLabels / 3})`,
3993
3965
  "font-size": B.value.dataLabels,
@@ -4007,8 +3979,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4007
3979
  datapoint: e.serie,
4008
3980
  seriesIndex: e.index
4009
3981
  })), 11, wn))), 128))])) : b("", !0),
4010
- pu.value ? (T(), x("g", Tn, [S("circle", {
4011
- cx: uu.value,
3982
+ du.value ? (T(), x("g", Tn, [S("circle", {
3983
+ cx: cu.value,
4012
3984
  cy: A(_)(J.value?.bottom),
4013
3985
  r: V.value.chart.highlighter.crosshairs.dot.radius,
4014
3986
  fill: V.value.chart.highlighter.crosshairs.dot.fill,
@@ -4039,11 +4011,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4039
4011
  x: A(p)(r.x),
4040
4012
  y: A(p)(r.y)
4041
4013
  },
4042
- radius: hu(e, r, i) ? (ja.value.plot || 6) * 1.5 : (Wc(e.plots, i), ja.value.plot || 6),
4014
+ radius: pu(e, r, i) ? (ka.value.plot || 6) * 1.5 : (Hc(e.plots, i), ka.value.plot || 6),
4043
4015
  stroke: V.value.plot.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
4044
4016
  strokeWidth: V.value.plot.dot.strokeWidth,
4045
- transition: A(Ha) || us.value || !V.value.plot.showTransition ? void 0 : `all ${V.value.plot.transitionDurationMs}ms ease-in-out`,
4046
- still: us.value
4017
+ transition: A(Ba) || cs.value || !V.value.plot.showTransition ? void 0 : `all ${V.value.plot.transitionDurationMs}ms ease-in-out`,
4018
+ still: cs.value
4047
4019
  }, null, 8, [
4048
4020
  "shape",
4049
4021
  "color",
@@ -4079,7 +4051,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4079
4051
  stroke: V.value.chart.backgroundColor,
4080
4052
  "stroke-width": V.value.line.strokeWidth + 1,
4081
4053
  "stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
4082
- style: w({ transition: Xc() })
4054
+ style: w({ transition: Jc() })
4083
4055
  }, null, 12, kn))), 128)) : (T(!0), x(v, { key: 1 }, D(e.dashedStraight, (t, n) => (T(), x("path", {
4084
4056
  key: `line_coating_straight_segment_${e.id}_${n}`,
4085
4057
  fill: "none",
@@ -4089,7 +4061,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4089
4061
  stroke: V.value.chart.backgroundColor,
4090
4062
  "stroke-width": V.value.line.strokeWidth + 1,
4091
4063
  "stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
4092
- style: w({ transition: Xc() })
4064
+ style: w({ transition: Jc() })
4093
4065
  }, null, 12, An))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (T(), x("path", {
4094
4066
  key: 1,
4095
4067
  d: `M${e.curve}`,
@@ -4099,7 +4071,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4099
4071
  fill: "none",
4100
4072
  "stroke-linecap": "round",
4101
4073
  "stroke-linejoin": "round",
4102
- style: w({ transition: Xc() })
4074
+ style: w({ transition: Jc() })
4103
4075
  }, null, 12, jn)) : e.plots.length > 1 && e.straight ? (T(), x("path", {
4104
4076
  key: 2,
4105
4077
  d: `M${e.straight}`,
@@ -4109,21 +4081,21 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4109
4081
  fill: "none",
4110
4082
  "stroke-linecap": "round",
4111
4083
  "stroke-linejoin": "round",
4112
- style: w({ transition: Xc() })
4084
+ style: w({ transition: Jc() })
4113
4085
  }, null, 12, Mn)) : b("", !0)], 6))), 128)),
4114
- t.$slots.pattern ? (T(), x("defs", Nn, [(T(!0), x(v, null, D(So.value, (e, n) => O(t.$slots, "pattern", ut({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
4086
+ t.$slots.pattern ? (T(), x("defs", Nn, [(T(!0), x(v, null, D(bo.value, (e, n) => O(t.$slots, "pattern", ut({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
4115
4087
  ...e,
4116
4088
  seriesIndex: e.slotAbsoluteIndex,
4117
4089
  patternId: `pattern_${F.value}_${n}`
4118
4090
  }), void 0, !0)), 128))])) : b("", !0),
4119
- yl.value.length && !H.value.isStacked ? (T(), x("g", Pn, [(T(!0), x(v, null, D(yl.value, (e) => (T(), x("path", {
4091
+ _l.value.length && !H.value.isStacked ? (T(), x("g", Pn, [(T(!0), x(v, null, D(_l.value, (e) => (T(), x("path", {
4120
4092
  key: e.key,
4121
4093
  d: e.d,
4122
4094
  fill: e.color,
4123
4095
  "fill-opacity": V.value.line.interLine.fillOpacity,
4124
4096
  stroke: "none",
4125
4097
  "pointer-events": "none",
4126
- style: w({ transition: Xc() })
4098
+ style: w({ transition: Jc() })
4127
4099
  }, null, 12, Fn))), 128))])) : b("", !0),
4128
4100
  (T(!0), x(v, null, D(Q.value, (e, n) => (T(), x("g", {
4129
4101
  key: `serie_line_above_${e.id}`,
@@ -4134,22 +4106,22 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4134
4106
  key: 0,
4135
4107
  d: r,
4136
4108
  fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(i)(e.color, V.value.line.area.opacity),
4137
- style: w({ transition: Xc() })
4109
+ style: w({ transition: Jc() })
4138
4110
  }, null, 12, Ln)) : b("", !0), t.$slots.pattern && r ? (T(), x("path", {
4139
4111
  key: 1,
4140
4112
  d: r,
4141
4113
  fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
4142
- style: w({ transition: Xc() })
4114
+ style: w({ transition: Jc() })
4143
4115
  }, null, 12, Rn)) : b("", !0)], 64))), 128)) : (T(!0), x(v, { key: 1 }, D(e.area.split(";"), (r, a) => (T(), x(v, { key: a }, [r ? (T(), x("path", {
4144
4116
  key: 0,
4145
4117
  d: `M${r}Z`,
4146
4118
  fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(i)(e.color, V.value.line.area.opacity),
4147
- style: w({ transition: Xc() })
4119
+ style: w({ transition: Jc() })
4148
4120
  }, null, 12, zn)) : b("", !0), t.$slots.pattern && r ? (T(), x("path", {
4149
4121
  key: 1,
4150
4122
  d: `M${r}Z`,
4151
4123
  fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
4152
- style: w({ transition: Xc() })
4124
+ style: w({ transition: Jc() })
4153
4125
  }, null, 12, Bn)) : b("", !0)], 64))), 128))])) : b("", !0),
4154
4126
  !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (T(), x("path", {
4155
4127
  key: 1,
@@ -4159,7 +4131,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4159
4131
  "stroke-dasharray": e.dashed ? V.value.line.strokeWidth * 2 : 0,
4160
4132
  fill: "none",
4161
4133
  "stroke-linecap": "round",
4162
- style: w({ transition: Xc() })
4134
+ style: w({ transition: Jc() })
4163
4135
  }, null, 12, Vn)) : e.hasDashedSegments ? (T(), x(v, { key: 2 }, [e.smooth ? (T(!0), x(v, { key: 0 }, D(e.dashedSmooth, (t, r) => (T(), x("path", {
4164
4136
  key: `line_smooth_segment_${e.id}_${r}`,
4165
4137
  fill: "none",
@@ -4169,7 +4141,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4169
4141
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
4170
4142
  "stroke-width": V.value.line.strokeWidth,
4171
4143
  "stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
4172
- style: w({ transition: Xc() })
4144
+ style: w({ transition: Jc() })
4173
4145
  }, null, 12, Hn))), 128)) : (T(!0), x(v, { key: 1 }, D(e.dashedStraight, (t, r) => (T(), x("path", {
4174
4146
  key: `line_straight_segment_${e.id}_${r}`,
4175
4147
  fill: "none",
@@ -4179,7 +4151,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4179
4151
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
4180
4152
  "stroke-width": V.value.line.strokeWidth,
4181
4153
  "stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
4182
- style: w({ transition: Xc() })
4154
+ style: w({ transition: Jc() })
4183
4155
  }, null, 12, Un))), 128))], 64)) : e.plots.length > 1 && e.straight ? (T(), x("path", {
4184
4156
  key: 3,
4185
4157
  d: `M${e.straight}`,
@@ -4189,9 +4161,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4189
4161
  fill: "none",
4190
4162
  "stroke-linecap": "round",
4191
4163
  "stroke-linejoin": "round",
4192
- style: w({ transition: Xc() })
4164
+ style: w({ transition: Jc() })
4193
4165
  }, null, 12, Wn)) : b("", !0),
4194
- (T(!0), x(v, null, D(e.plots, (r, i) => (T(), x(v, { key: `circle_line_${e.id}_${i}` }, [!sc.value.linePlot && r && A(Ct)(r.value) || sc.value.linePlot && r && A(Ct)(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || Wc(e.plots, i) ? (T(), rt(Ye, {
4166
+ (T(!0), x(v, null, D(e.plots, (r, i) => (T(), x(v, { key: `circle_line_${e.id}_${i}` }, [!ac.value.linePlot && r && A(Ct)(r.value) || ac.value.linePlot && r && A(Ct)(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || Hc(e.plots, i) ? (T(), rt(Ye, {
4195
4167
  key: 0,
4196
4168
  shape: [
4197
4169
  "triangle",
@@ -4206,11 +4178,11 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4206
4178
  x: A(p)(r.x),
4207
4179
  y: A(p)(r.y)
4208
4180
  },
4209
- radius: hu(e, r, i) ? Ma.value || 0 : (Wc(e.plots, i), ja.value.line || 0),
4181
+ radius: pu(e, r, i) ? Aa.value || 0 : (Hc(e.plots, i), ka.value.line || 0),
4210
4182
  stroke: V.value.line.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
4211
4183
  strokeWidth: V.value.line.dot.strokeWidth,
4212
- transition: A(Ha) || us.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`,
4213
- still: us.value
4184
+ transition: A(Ba) || cs.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`,
4185
+ still: cs.value
4214
4186
  }, null, 8, [
4215
4187
  "shape",
4216
4188
  "color",
@@ -4234,28 +4206,28 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4234
4206
  datapointIndex: i
4235
4207
  } }, void 0, !0)])], 8, Gn)) : b("", !0)], 64))), 128))
4236
4208
  ], 6))), 128)),
4237
- (V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (T(), x("g", qn, [(T(!0), x(v, null, D(vu.value, (e) => (T(), x("text", {
4209
+ (V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (T(), x("g", qn, [(T(!0), x(v, null, D(gu.value, (e) => (T(), x("text", {
4238
4210
  key: e.key,
4239
- class: C({ "vue-data-ui-transition": A(Ia) }),
4240
- "text-anchor": lu({
4211
+ class: C({ "vue-data-ui-transition": A(Pa) }),
4212
+ "text-anchor": su({
4241
4213
  plot: e.plot,
4242
4214
  type: "bar"
4243
4215
  }),
4244
4216
  "font-size": B.value.plotLabels,
4245
- transform: su({ plot: e.plot }),
4217
+ transform: au({ plot: e.plot }),
4246
4218
  fill: V.value.bar.labels.color,
4247
4219
  stroke: V.value.chart.backgroundColor,
4248
4220
  "paint-order": "stroke",
4249
4221
  style: w(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1};`),
4250
- innerHTML: ou({
4222
+ innerHTML: iu({
4251
4223
  serie: e.serie,
4252
4224
  plot: e.plot,
4253
4225
  type: "bar"
4254
4226
  })
4255
- }, null, 14, Jn))), 128)), (T(!0), x(v, null, D(gl.value, (e, t) => (T(), x(v, { key: `xLabel_bar_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `xLabel_bar_${t}_${r}` }, [n && V.value.bar.serieName.show ? (T(), x("text", {
4227
+ }, null, 14, Jn))), 128)), (T(!0), x(v, null, D(ml.value, (e, t) => (T(), x(v, { key: `xLabel_bar_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `xLabel_bar_${t}_${r}` }, [n && V.value.bar.serieName.show ? (T(), x("text", {
4256
4228
  key: 0,
4257
- class: C({ "vue-data-ui-transition": A(Ia) }),
4258
- transform: `translate(${H.value.useIndividualScale && H.value.isStacked ? n.x + Ns.value.line / 2 : n.x + Ps() * 1.1}, ${n.y + (n.value > 0 ? V.value.bar.serieName.offsetY : -V.value.bar.serieName.offsetY * 3)})`,
4229
+ class: C({ "vue-data-ui-transition": A(Pa) }),
4230
+ transform: `translate(${H.value.useIndividualScale && H.value.isStacked ? n.x + js.value.line / 2 : n.x + Ms() * 1.1}, ${n.y + (n.value > 0 ? V.value.bar.serieName.offsetY : -V.value.bar.serieName.offsetY * 3)})`,
4259
4231
  "text-anchor": "middle",
4260
4232
  "font-size": B.value.plotLabels,
4261
4233
  fill: V.value.bar.serieName.useSerieColor ? e.color : V.value.bar.serieName.color,
@@ -4265,14 +4237,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4265
4237
  source: e.name,
4266
4238
  length: V.value.bar.serieName.abbreviationSize
4267
4239
  }) : e.name), 15, Yn)) : b("", !0)], 64))), 128))], 64))), 128))])) : b("", !0),
4268
- V.value.plot.labels.show && H.value.dataLabels.show ? (T(), x("g", Xn, [(T(!0), x(v, null, D(yu.value, (e) => (T(), x("text", {
4240
+ V.value.plot.labels.show && H.value.dataLabels.show ? (T(), x("g", Xn, [(T(!0), x(v, null, D(_u.value, (e) => (T(), x("text", {
4269
4241
  key: e.key,
4270
- class: C({ "vue-data-ui-transition": A(Ia) }),
4271
- transform: cu({
4242
+ class: C({ "vue-data-ui-transition": A(Pa) }),
4243
+ transform: ou({
4272
4244
  plot: e.plot,
4273
4245
  type: "plot"
4274
4246
  }),
4275
- "text-anchor": lu({
4247
+ "text-anchor": su({
4276
4248
  plot: e.plot,
4277
4249
  type: "plot"
4278
4250
  }),
@@ -4281,7 +4253,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4281
4253
  stroke: V.value.chart.backgroundColor,
4282
4254
  "paint-order": "stroke",
4283
4255
  style: w(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1}`),
4284
- innerHTML: ou({
4256
+ innerHTML: iu({
4285
4257
  serie: e.serie,
4286
4258
  plot: e.plot,
4287
4259
  type: "plot"
@@ -4330,14 +4302,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4330
4302
  serieName: e.name
4331
4303
  })
4332
4304
  }, null, 12, nr)], 12, tr)) : b("", !0)], 64))], 64))), 128))], 64))), 128))])),
4333
- V.value.line.labels.show && H.value.dataLabels.show ? (T(), x("g", ir, [(T(!0), x(v, null, D(bu.value, (e) => (T(), x("text", {
4305
+ V.value.line.labels.show && H.value.dataLabels.show ? (T(), x("g", ir, [(T(!0), x(v, null, D(vu.value, (e) => (T(), x("text", {
4334
4306
  key: e.key,
4335
- class: C({ "vue-data-ui-transition": A(Ia) }),
4336
- transform: cu({
4307
+ class: C({ "vue-data-ui-transition": A(Pa) }),
4308
+ transform: ou({
4337
4309
  plot: e.plot,
4338
4310
  type: "line"
4339
4311
  }),
4340
- "text-anchor": lu({
4312
+ "text-anchor": su({
4341
4313
  plot: e.plot,
4342
4314
  type: "line"
4343
4315
  }),
@@ -4346,7 +4318,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4346
4318
  stroke: V.value.chart.backgroundColor,
4347
4319
  "paint-order": "stroke",
4348
4320
  style: w(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1};`),
4349
- innerHTML: ou({
4321
+ innerHTML: iu({
4350
4322
  serie: e.serie,
4351
4323
  plot: e.plot,
4352
4324
  type: "line"
@@ -4464,7 +4436,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4464
4436
  (T(!0), x(v, null, D([
4465
4437
  ...$.value,
4466
4438
  ...Q.value,
4467
- ...gl.value
4439
+ ...ml.value
4468
4440
  ], (e, t) => (T(), x(v, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(A(h)(e.plots).trend) ? (T(), x("g", gr, [
4469
4441
  S("defs", null, [S("marker", {
4470
4442
  id: `progression_arrow_${t}`,
@@ -4485,8 +4457,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4485
4457
  }, null, 8, vr)], 8, _r)]),
4486
4458
  e.plots.length > 1 ? (T(), x("line", {
4487
4459
  key: 0,
4488
- x1: A(h)(e.plots).x1 + (e.type === "bar" ? Ps() : 0),
4489
- x2: A(h)(e.plots).x2 + (e.type === "bar" ? Ps() : 0),
4460
+ x1: A(h)(e.plots).x1 + (e.type === "bar" ? Ms() : 0),
4461
+ x2: A(h)(e.plots).x2 + (e.type === "bar" ? Ms() : 0),
4490
4462
  y1: A(_)(A(h)(e.plots).y1),
4491
4463
  y2: A(_)(A(h)(e.plots).y2),
4492
4464
  "stroke-width": 1,
@@ -4498,8 +4470,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4498
4470
  }, null, 8, yr)) : b("", !0),
4499
4471
  e.plots.length > 1 ? (T(), x("line", {
4500
4472
  key: 1,
4501
- x1: A(h)(e.plots).x1 + (e.type === "bar" ? Ps() : 0),
4502
- x2: A(h)(e.plots).x2 + (e.type === "bar" ? Ps() : 0),
4473
+ x1: A(h)(e.plots).x1 + (e.type === "bar" ? Ms() : 0),
4474
+ x2: A(h)(e.plots).x2 + (e.type === "bar" ? Ms() : 0),
4503
4475
  y1: A(_)(A(h)(e.plots).y1),
4504
4476
  y2: A(_)(A(h)(e.plots).y2),
4505
4477
  "stroke-width": 1,
@@ -4511,9 +4483,9 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4511
4483
  }, null, 8, br)) : b("", !0),
4512
4484
  e.plots.length > 1 ? (T(), x("text", {
4513
4485
  key: 2,
4514
- class: C({ "vue-data-ui-transition": A(Ia) }),
4486
+ class: C({ "vue-data-ui-transition": A(Pa) }),
4515
4487
  "text-anchor": "middle",
4516
- transform: `translate(${A(h)(e.plots).x2 + (e.type === "bar" ? Ps() : 0)}, ${A(h)(e.plots).y2 - 12})`,
4488
+ transform: `translate(${A(h)(e.plots).x2 + (e.type === "bar" ? Ms() : 0)}, ${A(h)(e.plots).y2 - 12})`,
4517
4489
  "font-size": B.value.plotLabels,
4518
4490
  fill: e.color,
4519
4491
  stroke: V.value.chart.backgroundColor,
@@ -4527,7 +4499,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4527
4499
  r: 2
4528
4500
  })), 11, xr)) : b("", !0)
4529
4501
  ])) : b("", !0)], 64))), 128)),
4530
- H.value.useIndividualScale && !H.value.isStacked ? (T(), x(v, { key: 16 }, [S("defs", null, [(T(!0), x(v, null, D(vl.value, (e, t) => (T(), rt(Ze, {
4502
+ H.value.useIndividualScale && !H.value.isStacked ? (T(), x(v, { key: 16 }, [S("defs", null, [(T(!0), x(v, null, D(gl.value, (e, t) => (T(), rt(Ze, {
4531
4503
  t: "linear",
4532
4504
  key: `individual_scale_gradient_${e.groupId || e.id || t}`,
4533
4505
  id: `individual_scale_gradient_${F.value}_${t}`,
@@ -4549,7 +4521,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4549
4521
  "x1",
4550
4522
  "x2",
4551
4523
  "stops"
4552
- ]))), 128))]), (T(!0), x(v, null, D(vl.value, (e, t) => (T(), x("rect", {
4524
+ ]))), 128))]), (T(!0), x(v, null, D(gl.value, (e, t) => (T(), x("rect", {
4553
4525
  key: `individual_scale_background_${e.groupId || e.id || t}`,
4554
4526
  x: q.value ? e.x : e.x - V.value.chart.grid.labels.yAxis.labelWidth - J.value.individualOffsetX,
4555
4527
  y: J.value?.top,
@@ -4582,26 +4554,26 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4582
4554
  key: 17,
4583
4555
  ref_key: "timeLabelsEls",
4584
4556
  ref: Ni,
4585
- opacity: du.value ? .1 : 1,
4557
+ opacity: lu.value ? .1 : 1,
4586
4558
  style: { transition: "opacity 0.2s" }
4587
- }, [t.$slots["time-label"] ? (T(!0), x(v, { key: 0 }, D($c.value, (e, n) => O(t.$slots, "time-label", ut({ ref_for: !0 }, {
4588
- x: el(e, n),
4559
+ }, [t.$slots["time-label"] ? (T(!0), x(v, { key: 0 }, D(Zc.value, (e, n) => O(t.$slots, "time-label", ut({ ref_for: !0 }, {
4560
+ x: Qc(e, n),
4589
4561
  y: J.value?.bottom,
4590
4562
  fontSize: B.value.xAxis,
4591
4563
  fill: V.value.chart.grid.labels.xAxisLabels.color,
4592
- transform: `translate(${el(e, n)}, ${J.value?.bottom + B.value.xAxis * 1.3 + V.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
4564
+ transform: `translate(${Qc(e, n)}, ${J.value?.bottom + B.value.xAxis * 1.3 + V.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
4593
4565
  absoluteIndex: e.absoluteIndex,
4594
4566
  content: e.text,
4595
4567
  textAnchor: V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4596
4568
  show: e && e.text
4597
- }), void 0, !0, `time_label_${e.id}`)), 128)) : (T(!0), x(v, { key: 1 }, D($c.value, (e, t) => (T(), x("g", { key: `time_label_${t}` }, [e && e.text ? (T(), x(v, { key: 0 }, [String(e.text).includes("\n") ? (T(), x("text", {
4569
+ }), void 0, !0, `time_label_${e.id}`)), 128)) : (T(!0), x(v, { key: 1 }, D(Zc.value, (e, t) => (T(), x("g", { key: `time_label_${t}` }, [e && e.text ? (T(), x(v, { key: 0 }, [String(e.text).includes("\n") ? (T(), x("text", {
4598
4570
  key: 1,
4599
4571
  class: "vue-data-ui-time-label",
4600
4572
  "text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4601
4573
  "font-size": B.value.xAxis,
4602
4574
  fill: V.value.chart.grid.labels.xAxisLabels.color,
4603
- transform: `translate(${el(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
4604
- style: w({ cursor: Io() && La.value ? "pointer" : "default" }),
4575
+ transform: `translate(${Qc(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
4576
+ style: w({ cursor: Po() && Fa.value ? "pointer" : "default" }),
4605
4577
  innerHTML: A(c)({
4606
4578
  content: String(e.text),
4607
4579
  fontSize: B.value.xAxis,
@@ -4609,23 +4581,23 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4609
4581
  x: 0,
4610
4582
  y: 0
4611
4583
  }),
4612
- onClick: (n) => Zo(e, t)
4584
+ onClick: (n) => Yo(e, t)
4613
4585
  }, null, 12, Dr)) : (T(), x("text", {
4614
4586
  key: 0,
4615
4587
  class: "vue-data-ui-time-label",
4616
4588
  "text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4617
4589
  "font-size": B.value.xAxis,
4618
4590
  fill: V.value.chart.grid.labels.xAxisLabels.color,
4619
- transform: `translate(${el(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
4620
- style: w({ cursor: Io() && La.value ? "pointer" : "default" }),
4621
- onClick: (n) => Zo(e, t)
4591
+ transform: `translate(${Qc(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
4592
+ style: w({ cursor: Po() && Fa.value ? "pointer" : "default" }),
4593
+ onClick: (n) => Yo(e, t)
4622
4594
  }, k(e.text || ""), 13, Er))], 64)) : b("", !0)]))), 128))], 8, Tr)) : b("", !0),
4623
- pu.value ? (T(), x("g", Or, [S("text", {
4595
+ du.value ? (T(), x("g", Or, [S("text", {
4624
4596
  class: "vue-data-ui-time-label",
4625
4597
  "text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4626
4598
  "font-size": B.value.xAxis,
4627
4599
  fill: V.value.chart.grid.labels.xAxisLabels.color,
4628
- transform: `translate(${pu.value.x}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
4600
+ transform: `translate(${du.value.x}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
4629
4601
  "font-weight": "bold",
4630
4602
  style: {
4631
4603
  transition: "none !important",
@@ -4633,14 +4605,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4633
4605
  "pointer-events": "none"
4634
4606
  },
4635
4607
  innerHTML: A(c)({
4636
- content: String(pu.value.text),
4608
+ content: String(du.value.text),
4637
4609
  fontSize: B.value.xAxis,
4638
4610
  fill: V.value.chart.grid.labels.xAxisLabels.color,
4639
4611
  x: 0,
4640
4612
  y: 0
4641
4613
  })
4642
4614
  }, null, 8, kr)])) : b("", !0),
4643
- Uc.value.length && !H.value.isStacked ? (T(), x("g", Ar, [(T(!0), x(v, null, D(Uc.value, (e) => (T(), x("g", { key: e.id }, [
4615
+ Vc.value.length && !H.value.isStacked ? (T(), x("g", Ar, [(T(!0), x(v, null, D(Vc.value, (e) => (T(), x("g", { key: e.id }, [
4644
4616
  e.yTop && e.show && isFinite(e.yTop) ? (T(), x("line", {
4645
4617
  key: 0,
4646
4618
  x1: e.x1,
@@ -4684,53 +4656,53 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4684
4656
  e.config.label.text && e.show && isFinite(e._text.y) ? (T(), x("text", {
4685
4657
  key: 4,
4686
4658
  id: e.id,
4687
- class: C(["vue-ui-xy-annotation-label", { "vue-data-ui-transition": A(Ia) }]),
4659
+ class: C(["vue-ui-xy-annotation-label", { "vue-data-ui-transition": A(Pa) }]),
4688
4660
  transform: `translate(${e._text.x}, ${e._text.y})`,
4689
4661
  "font-size": e.config.label.fontSize,
4690
4662
  fill: e.config.label.color,
4691
4663
  "text-anchor": e.config.label.textAnchor
4692
4664
  }, k(e.config.label.text), 11, Pr)) : b("", !0)
4693
4665
  ]))), 128))])) : b("", !0),
4694
- !du.value && V.value.chart.timeTag.show && (G.value ? A(a)($l.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (T(), x("g", Fr, [(T(), x("foreignObject", {
4695
- x: tu(),
4666
+ !lu.value && V.value.chart.timeTag.show && (G.value ? A(a)(Zl.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (T(), x("g", Fr, [(T(), x("foreignObject", {
4667
+ x: $l(),
4696
4668
  y: J.value?.bottom,
4697
4669
  width: "200",
4698
4670
  height: "40",
4699
4671
  style: { overflow: "visible !important" }
4700
4672
  }, [S("div", {
4701
4673
  ref_key: "timeTagEl",
4702
- ref: Xl,
4674
+ ref: Jl,
4703
4675
  class: "vue-ui-xy-time-tag",
4704
4676
  style: w(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${V.value.chart.timeTag.backgroundColor};color:${V.value.chart.timeTag.color};font-size:${V.value.chart.timeTag.fontSize}px`),
4705
- innerHTML: au.value
4677
+ innerHTML: ru.value
4706
4678
  }, null, 12, Lr)], 8, Ir)), S("circle", {
4707
- cx: G.value && A(a)($l.value) ? tl({ x: $l.value }) : hc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
4679
+ cx: G.value && A(a)(Zl.value) ? $c({ x: Zl.value }) : pc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
4708
4680
  cy: J.value?.bottom,
4709
4681
  r: V.value.chart.timeTag.circleMarker.radius,
4710
4682
  fill: V.value.chart.timeTag.circleMarker.color
4711
4683
  }, null, 8, Rr)])) : b("", !0)
4712
4684
  ])) : b("", !0),
4713
- Qa.value ? (T(), x("rect", ut({ key: 2 }, to.value, {
4685
+ Xa.value ? (T(), x("rect", ut({ key: 2 }, $a.value, {
4714
4686
  "data-start": U.value.start,
4715
4687
  "data-end": U.value.end
4716
4688
  }), null, 16, zr)) : b("", !0),
4717
4689
  O(t.$slots, "svg", { svg: {
4718
- ...Da.value,
4690
+ ...Ta.value,
4719
4691
  slicer: U.value,
4720
- isPrintingImg: A(no) || A(ro) || ca.value,
4721
- isPrintingSvg: la.value,
4692
+ isPrintingImg: A(eo) || A(to) || A(ku),
4693
+ isPrintingSvg: A(Au),
4722
4694
  data: [
4723
4695
  ...Q.value,
4724
- ...gl.value,
4696
+ ...ml.value,
4725
4697
  ...$.value
4726
4698
  ],
4727
4699
  drawingArea: J.value
4728
4700
  } }, void 0, !0)
4729
4701
  ], 512)], 46, Lt)), t.$slots.hint ? (T(), x("div", Br, [O(t.$slots, "hint", ft(lt({
4730
4702
  hint: V.value.a11y.translations.keyboardNavigation,
4731
- isVisible: Fu.value
4703
+ isVisible: Pu.value
4732
4704
  })), void 0, !0)])) : b("", !0)]),
4733
- t.$slots.watermark ? (T(), x("div", Vr, [O(t.$slots, "watermark", ft(lt({ isPrinting: A(no) || A(ro) || ca.value || la.value })), void 0, !0)])) : b("", !0),
4705
+ t.$slots.watermark ? (T(), x("div", Vr, [O(t.$slots, "watermark", ft(lt({ isPrinting: A(eo) || A(to) || A(ku) || A(Au) })), void 0, !0)])) : b("", !0),
4734
4706
  (T(!0), x(v, null, D(Q.value, (e, t) => (T(), x(v, { key: `tag_line_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `tag_line_${t}_${r}` }, [[
4735
4707
  I.value,
4736
4708
  R.value,
@@ -4738,7 +4710,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4738
4710
  ].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (T(), x("div", {
4739
4711
  key: 0,
4740
4712
  ref_for: !0,
4741
- ref: (e) => zo(t, r, e, "right", "line"),
4713
+ ref: (e) => Lo(t, r, e, "right", "line"),
4742
4714
  class: "vue-ui-xy-tag",
4743
4715
  "data-tag": "right",
4744
4716
  style: w({
@@ -4783,7 +4755,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4783
4755
  ].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (T(), x("div", {
4784
4756
  key: 1,
4785
4757
  ref_for: !0,
4786
- ref: (e) => zo(t, r, e, "left", "line"),
4758
+ ref: (e) => Lo(t, r, e, "left", "line"),
4787
4759
  class: "vue-ui-xy-tag",
4788
4760
  "data-tag": "left",
4789
4761
  style: w({
@@ -4829,7 +4801,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4829
4801
  ].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (T(), x("div", {
4830
4802
  key: 0,
4831
4803
  ref_for: !0,
4832
- ref: (e) => zo(t, r, e, "right", "plot"),
4804
+ ref: (e) => Lo(t, r, e, "right", "plot"),
4833
4805
  class: "vue-ui-xy-tag",
4834
4806
  "data-tag": "right",
4835
4807
  style: w({
@@ -4874,7 +4846,7 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4874
4846
  ].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (T(), x("div", {
4875
4847
  key: 1,
4876
4848
  ref_for: !0,
4877
- ref: (e) => zo(t, r, e, "left", "plot"),
4849
+ ref: (e) => Lo(t, r, e, "left", "plot"),
4878
4850
  class: "vue-ui-xy-tag",
4879
4851
  "data-tag": "left",
4880
4852
  style: w({
@@ -4913,12 +4885,12 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4913
4885
  serieName: e.name
4914
4886
  })
4915
4887
  }, null, 8, $r)], 4)) : b("", !0)], 64))), 128))], 64))), 128)),
4916
- V.value.chart.zoom.show && Xa.value > 6 && Fa.value && as.value ? (T(), rt(Qe, {
4888
+ V.value.chart.zoom.show && Ja.value > 6 && Na.value && rs.value ? (T(), rt(Qe, {
4917
4889
  key: 6,
4918
4890
  ref_key: "chartSlicer",
4919
4891
  ref: Ei,
4920
4892
  uuid: F.value,
4921
- allMinimaps: Bc.value,
4893
+ allMinimaps: Rc.value,
4922
4894
  background: V.value.chart.zoom.color,
4923
4895
  borderColor: V.value.chart.backgroundColor,
4924
4896
  customFormat: V.value.chart.zoom.customFormat,
@@ -4932,14 +4904,14 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4932
4904
  useResetSlot: V.value.chart.zoom.useResetSlot,
4933
4905
  immediate: !V.value.chart.zoom.preview.enable,
4934
4906
  inputColor: V.value.chart.zoom.color,
4935
- isPreview: Qa.value,
4907
+ isPreview: Xa.value,
4936
4908
  labelLeft: Y.value[0] ? Y.value[0].text : "",
4937
4909
  labelRight: Y.value.at(-1) ? Y.value.at(-1).text : "",
4938
- max: il.value,
4939
- min: rl.value,
4910
+ max: nl.value,
4911
+ min: tl.value,
4940
4912
  precision: G.value ? V.value.chart.grid.labels.xAxis.rounding : 0,
4941
4913
  useValueRange: G.value,
4942
- minimap: zc.value,
4914
+ minimap: Lc.value,
4943
4915
  minimapCompact: V.value.chart.zoom.minimap.compact,
4944
4916
  minimapFrameColor: V.value.chart.zoom.minimap.frameColor,
4945
4917
  minimapIndicatorColor: V.value.chart.zoom.minimap.indicatorColor,
@@ -4947,17 +4919,17 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4947
4919
  minimapMerged: V.value.chart.zoom.minimap.merged,
4948
4920
  minimapSelectedColor: V.value.chart.zoom.minimap.selectedColor,
4949
4921
  minimapSelectedColorOpacity: V.value.chart.zoom.minimap.selectedColorOpacity,
4950
- minimapSelectedIndex: G.value ? ua.value : R.value ?? I.value,
4922
+ minimapSelectedIndex: G.value ? ca.value : R.value ?? I.value,
4951
4923
  minimapSelectionRadius: V.value.chart.zoom.minimap.selectionRadius,
4952
- preciseLabels: wl.value.length ? wl.value : Go.value,
4953
- refreshStartPoint: G.value ? rl.value : V.value.chart.zoom.startIndex === null ? 0 : V.value.chart.zoom.startIndex,
4954
- refreshEndPoint: G.value ? il.value : V.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ka(e.series).length)) : V.value.chart.zoom.endIndex + 1,
4924
+ preciseLabels: Sl.value.length ? Sl.value : Uo.value,
4925
+ refreshStartPoint: G.value ? tl.value : V.value.chart.zoom.startIndex === null ? 0 : V.value.chart.zoom.startIndex,
4926
+ refreshEndPoint: G.value ? nl.value : V.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Wa(e.series).length)) : V.value.chart.zoom.endIndex + 1,
4955
4927
  selectColor: V.value.chart.zoom.highlightColor,
4956
- selectedSeries: Vc.value,
4928
+ selectedSeries: zc.value,
4957
4929
  smoothMinimap: V.value.chart.zoom.minimap.smooth,
4958
4930
  start: U.value.start,
4959
4931
  textColor: V.value.chart.color,
4960
- timeLabels: Go.value,
4932
+ timeLabels: Uo.value,
4961
4933
  usePreciseLabels: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.zoom.useDefaultFormat,
4962
4934
  valueEnd: U.value.end,
4963
4935
  valueStart: U.value.start,
@@ -4965,6 +4937,8 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4965
4937
  minScale: V.value.chart.grid.labels.yAxis.scaleMin,
4966
4938
  maxScale: V.value.chart.grid.labels.yAxis.scaleMax,
4967
4939
  maxWidth: V.value.chart.zoom.maxWidth,
4940
+ minimapLeftInsetRatio: P.value > 0 && V.value.chart.zoom.autoFit ? J.value.left / P.value : null,
4941
+ minimapRightInsetRatio: P.value > 0 && V.value.chart.zoom.autoFit ? (P.value - J.value.right) / P.value : null,
4968
4942
  additionalMinimapHeight: V.value.chart.zoom.minimap.additionalHeight,
4969
4943
  handleType: V.value.chart.zoom.minimap.handleType,
4970
4944
  handleIconColor: V.value.chart.zoom.minimap.handleIconColor,
@@ -4972,18 +4946,18 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4972
4946
  handleBorderColor: V.value.chart.zoom.minimap.handleBorderColor,
4973
4947
  handleFill: V.value.chart.zoom.minimap.handleFill,
4974
4948
  handleWidth: V.value.chart.zoom.minimap.handleWidth,
4975
- isCursorPointer: La.value,
4976
- onFutureEnd: n[1] ||= (e) => $a("end", e),
4977
- onFutureStart: n[2] ||= (e) => $a("start", e),
4978
- onReset: ys,
4979
- onTrapMouse: Qo,
4980
- onTrapMouseValue: $o,
4981
- "onUpdate:end": vs,
4982
- "onUpdate:start": _s
4949
+ isCursorPointer: Fa.value,
4950
+ onFutureEnd: n[1] ||= (e) => Za("end", e),
4951
+ onFutureStart: n[2] ||= (e) => Za("start", e),
4952
+ onReset: _s,
4953
+ onTrapMouse: Xo,
4954
+ onTrapMouseValue: Zo,
4955
+ "onUpdate:end": gs,
4956
+ "onUpdate:start": hs
4983
4957
  }, {
4984
4958
  "reset-action": j(({ reset: e }) => [O(t.$slots, "reset-action", ft(lt({ reset: e })), void 0, !0)]),
4985
4959
  _: 3
4986
- }, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : b("", !0),
4960
+ }, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : b("", !0),
4987
4961
  S("div", { id: `legend-bottom-${F.value}` }, null, 8, ei),
4988
4962
  oa.value && (V.value.chart.legend.show || t.$slots.legend) ? (T(), rt(nt, {
4989
4963
  key: 7,
@@ -4991,34 +4965,34 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
4991
4965
  }, [S("div", {
4992
4966
  ref_key: "chartLegend",
4993
4967
  ref: Di
4994
- }, [O(t.$slots, "legend", { legend: Co.value }, () => [V.value.chart.legend.show ? (T(), x("div", {
4968
+ }, [O(t.$slots, "legend", { legend: xo.value }, () => [V.value.chart.legend.show ? (T(), x("div", {
4995
4969
  key: 0,
4996
4970
  class: "vue-ui-xy-legend",
4997
4971
  style: w({ fontSize: `var(--legend-font-size, ${V.value.chart.legend.fontSize ?? 14}px)` })
4998
- }, [V.value.chart.legend.selectAllToggle.show && Co.value.length > 2 && !A(Ha) ? (T(), rt(et, {
4972
+ }, [V.value.chart.legend.selectAllToggle.show && xo.value.length > 2 && !A(Ba) ? (T(), rt(et, {
4999
4973
  key: 0,
5000
4974
  backgroundColor: V.value.chart.legend.selectAllToggle.backgroundColor,
5001
4975
  color: V.value.chart.legend.selectAllToggle.color,
5002
4976
  fontSize: V.value.chart.legend.fontSize,
5003
4977
  checked: Ji.value.length > 0,
5004
- onToggle: $s
4978
+ onToggle: Zs
5005
4979
  }, null, 8, [
5006
4980
  "backgroundColor",
5007
4981
  "color",
5008
4982
  "fontSize",
5009
4983
  "checked"
5010
- ])) : b("", !0), (T(!0), x(v, null, D(Co.value, (e, n) => (T(), x("div", {
4984
+ ])) : b("", !0), (T(!0), x(v, null, D(xo.value, (e, n) => (T(), x("div", {
5011
4985
  key: `div_legend_item_${n}`,
5012
- onClick: (t) => nc(e),
5013
- onKeydown: (t) => ec(t, e),
4986
+ onClick: (t) => ec(e),
4987
+ onKeydown: (t) => Qs(t, e),
5014
4988
  role: "button",
5015
4989
  tabindex: "0",
5016
4990
  class: C({
5017
- "vue-ui-xy-legend-item-alone": Co.value.length === 1,
4991
+ "vue-ui-xy-legend-item-alone": xo.value.length === 1,
5018
4992
  "vue-ui-xy-legend-item": !0,
5019
4993
  "vue-ui-xy-legend-item-segregated": Yi.value.has(e.id)
5020
4994
  }),
5021
- style: w({ cursor: La.value ? "pointer" : "default" })
4995
+ style: w({ cursor: Fa.value ? "pointer" : "default" })
5022
4996
  }, [Ui.value[e.type] === "line" ? (T(), x("svg", ni, [S("rect", {
5023
4997
  x: "0",
5024
4998
  y: "7.5",
@@ -5103,19 +5077,19 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
5103
5077
  offsetX: V.value.chart.tooltip.offsetX,
5104
5078
  offsetY: V.value.chart.tooltip.offsetY,
5105
5079
  parent: t.$refs.chart,
5106
- content: kl.value,
5080
+ content: Dl.value,
5107
5081
  isFullscreen: Gi.value,
5108
5082
  isCustom: V.value.chart.tooltip.customFormat && typeof V.value.chart.tooltip.customFormat == "function",
5109
5083
  smooth: V.value.chart.tooltip.smooth,
5110
5084
  backdropFilter: V.value.chart.tooltip.backdropFilter,
5111
5085
  smoothForce: V.value.chart.tooltip.smoothForce,
5112
5086
  smoothSnapThreshold: V.value.chart.tooltip.smoothSnapThreshold,
5113
- isA11yMode: da.value != null,
5114
- a11yPosition: fa.value
5087
+ isA11yMode: la.value != null,
5088
+ a11yPosition: ua.value
5115
5089
  }, {
5116
- "tooltip-before": j(() => [O(t.$slots, "tooltip-before", ft(lt({ ...bl.value })), void 0, !0)]),
5117
- tooltip: j(() => [O(t.$slots, "tooltip", ft(lt({ ...bl.value })), void 0, !0)]),
5118
- "tooltip-after": j(() => [O(t.$slots, "tooltip-after", ft(lt({ ...bl.value })), void 0, !0)]),
5090
+ "tooltip-before": j(() => [O(t.$slots, "tooltip-before", ft(lt({ ...vl.value })), void 0, !0)]),
5091
+ tooltip: j(() => [O(t.$slots, "tooltip", ft(lt({ ...vl.value })), void 0, !0)]),
5092
+ "tooltip-after": j(() => [O(t.$slots, "tooltip-after", ft(lt({ ...vl.value })), void 0, !0)]),
5119
5093
  _: 3
5120
5094
  }, 8, [
5121
5095
  "teleportTo",
@@ -5141,34 +5115,34 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
5141
5115
  "isA11yMode",
5142
5116
  "a11yPosition"
5143
5117
  ]),
5144
- Fa.value && V.value.chart.userOptions.buttons.table ? (T(), rt(ht(Tu.value.component), ut({ key: 9 }, Tu.value.props, {
5118
+ Na.value && V.value.chart.userOptions.buttons.table ? (T(), rt(ht(Cu.value.component), ut({ key: 9 }, Cu.value.props, {
5145
5119
  ref_key: "tableUnit",
5146
5120
  ref: sa,
5147
- onClose: Eu
5121
+ onClose: wu
5148
5122
  }), it({
5149
- content: j(() => [S("div", { style: w(`${A(no) || V.value.table.useDialog ? "" : "max-height:400px"};${V.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${V.value.table.useDialog ? "" : "margin-top:48px"}`) }, [S("div", ci, [St(S("input", {
5123
+ content: j(() => [S("div", { style: w(`${A(eo) || V.value.table.useDialog ? "" : "max-height:400px"};${V.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${V.value.table.useDialog ? "" : "margin-top:48px"}`) }, [S("div", ci, [St(S("input", {
5150
5124
  type: "checkbox",
5151
5125
  "onUpdate:modelValue": n[4] ||= (e) => $i.value = e
5152
5126
  }, null, 512), [[yt, $i.value]]), S("div", {
5153
5127
  onClick: n[5] ||= (e) => $i.value = !$i.value,
5154
- style: w({ cursor: La.value ? "pointer" : "default" })
5128
+ style: w({ cursor: Fa.value ? "pointer" : "default" })
5155
5129
  }, [ot(A(pi), {
5156
5130
  name: "chartLine",
5157
5131
  size: 20,
5158
5132
  stroke: V.value.chart.color
5159
5133
  }, null, 8, ["stroke"])], 4)]), $i.value ? (T(), rt(A(mi), {
5160
5134
  key: `sparkline_${ea.value}`,
5161
- dataset: dc.value,
5162
- config: fc.value
5135
+ dataset: lc.value,
5136
+ config: uc.value
5163
5137
  }, null, 8, ["dataset", "config"])) : (T(), rt(A(ui), {
5164
5138
  key: `table_${Zi.value}`,
5165
- colNames: zl.value.colNames,
5166
- head: zl.value.head,
5167
- body: zl.value.body,
5168
- config: zl.value.config,
5169
- title: V.value.table.useDialog ? "" : Tu.value.title,
5139
+ colNames: Ll.value.colNames,
5140
+ head: Ll.value.head,
5141
+ body: Ll.value.body,
5142
+ config: Ll.value.config,
5143
+ title: V.value.table.useDialog ? "" : Cu.value.title,
5170
5144
  withCloseButton: !V.value.table.useDialog,
5171
- onClose: Eu
5145
+ onClose: wu
5172
5146
  }, {
5173
5147
  th: j(({ th: e }) => [S("div", { innerHTML: e }, null, 8, li)]),
5174
5148
  td: j(({ td: e }) => [at(k(isNaN(Number(e)) ? e : A(pe)({
@@ -5189,23 +5163,23 @@ var Mt = /* @__PURE__ */ e({ default: () => M }), Nt = ["id"], Pt = ["id"], Ft =
5189
5163
  _: 2
5190
5164
  }, [V.value.table.useDialog ? {
5191
5165
  name: "title",
5192
- fn: j(() => [at(k(Tu.value.title), 1)]),
5166
+ fn: j(() => [at(k(Cu.value.title), 1)]),
5193
5167
  key: "0"
5194
5168
  } : void 0, V.value.table.useDialog ? {
5195
5169
  name: "actions",
5196
5170
  fn: j(() => [S("button", {
5197
5171
  tabindex: "0",
5198
5172
  class: "vue-ui-user-options-button",
5199
- onClick: n[3] ||= (e) => Bl(V.value.chart.userOptions.callbacks.csv)
5173
+ onClick: n[3] ||= (e) => Rl(V.value.chart.userOptions.callbacks.csv)
5200
5174
  }, [ot(A(pi), {
5201
5175
  name: "fileCsv",
5202
- stroke: Tu.value.props.color
5176
+ stroke: Cu.value.props.color
5203
5177
  }, null, 8, ["stroke"])])]),
5204
5178
  key: "1"
5205
5179
  } : void 0]), 1040)) : b("", !0),
5206
- O(t.$slots, "skeleton", {}, () => [A(Ha) ? (T(), rt(ze, { key: 0 })) : b("", !0)], !0)
5180
+ O(t.$slots, "skeleton", {}, () => [A(Ba) ? (T(), rt(ze, { key: 0 })) : b("", !0)], !0)
5207
5181
  ], 46, Nt));
5208
5182
  }
5209
- }, [["__scopeId", "data-v-744e7068"]]);
5183
+ }, [["__scopeId", "data-v-603bfdc1"]]);
5210
5184
  //#endregion
5211
5185
  export { Mt as n, M as t };