vue-data-ui 3.21.2 → 3.21.4

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 (165) hide show
  1. package/dist/{A11yDataTable-BCbtxMU6.js → A11yDataTable-DdRsVULz.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BvaFJWHb.js → BaseDraggableDialog-O8jn9Lvi.js} +2 -2
  3. package/dist/{BaseIcon-CbDazQLH.js → BaseIcon-CWXbczu_.js} +1 -1
  4. package/dist/{BaseLegendToggle-BNRi408o.js → BaseLegendToggle-CUYal8mC.js} +2 -2
  5. package/dist/{BaseScanner-Dr2a1Msy.js → BaseScanner-DZvpgOjM.js} +1 -1
  6. package/dist/{BaseZoomControls-Dbtq9oyx.js → BaseZoomControls-JwSGzoKi.js} +2 -2
  7. package/dist/{ColorPicker-B4ob7JgP.js → ColorPicker-CCqmzGGo.js} +2 -2
  8. package/dist/{DataTable-DweDyHc1.js → DataTable-DUWNbwQb.js} +2 -2
  9. package/dist/{Legend-BLhREbj7.js → Legend-kCgqDRaO.js} +4 -3
  10. package/dist/{NonSvgPenAndPaper-BzZyMJBF.js → NonSvgPenAndPaper-BLy8zMox.js} +3 -3
  11. package/dist/{PackageVersion-Djj1DmIU.js → PackageVersion-CqsA0eNP.js} +1 -1
  12. package/dist/{PenAndPaper-D4aFMYZf.js → PenAndPaper-z1woaB1V.js} +2 -2
  13. package/dist/{Slicer-GABgkLkB.js → Slicer-JCOpjPU7.js} +2 -2
  14. package/dist/{SlicerPreview-CXLgqXX8.js → SlicerPreview-CZOlZJWD.js} +2 -2
  15. package/dist/{SparkTooltip-CdSRUoZN.js → SparkTooltip-DMFXQmFi.js} +1 -1
  16. package/dist/{UserOptions-qFz-9Pnw.js → UserOptions-rx9hUnOy.js} +2 -2
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-bump.js +1 -1
  23. package/dist/components/vue-ui-candlestick.js +1 -1
  24. package/dist/components/vue-ui-carousel-table.js +1 -1
  25. package/dist/components/vue-ui-chestnut.js +1 -1
  26. package/dist/components/vue-ui-chord.js +1 -1
  27. package/dist/components/vue-ui-circle-pack.js +1 -1
  28. package/dist/components/vue-ui-cursor.js +1 -1
  29. package/dist/components/vue-ui-dag.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +1 -1
  33. package/dist/components/vue-ui-donut.js +1 -1
  34. package/dist/components/vue-ui-dumbbell.js +1 -1
  35. package/dist/components/vue-ui-flow.js +1 -1
  36. package/dist/components/vue-ui-funnel.js +1 -1
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-geo.js +1 -1
  40. package/dist/components/vue-ui-gizmo.js +1 -1
  41. package/dist/components/vue-ui-heatmap.js +1 -1
  42. package/dist/components/vue-ui-history-plot.js +1 -1
  43. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  44. package/dist/components/vue-ui-icon.js +1 -1
  45. package/dist/components/vue-ui-kpi.js +1 -1
  46. package/dist/components/vue-ui-mini-loader.js +1 -1
  47. package/dist/components/vue-ui-molecule.js +1 -1
  48. package/dist/components/vue-ui-mood-radar.js +1 -1
  49. package/dist/components/vue-ui-nested-donuts.js +1 -1
  50. package/dist/components/vue-ui-onion.js +1 -1
  51. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  52. package/dist/components/vue-ui-quadrant.js +1 -1
  53. package/dist/components/vue-ui-quick-chart.js +1 -1
  54. package/dist/components/vue-ui-radar.js +1 -1
  55. package/dist/components/vue-ui-rating.js +1 -1
  56. package/dist/components/vue-ui-relation-circle.js +1 -1
  57. package/dist/components/vue-ui-ridgeline.js +1 -1
  58. package/dist/components/vue-ui-rings.js +1 -1
  59. package/dist/components/vue-ui-scatter.js +1 -1
  60. package/dist/components/vue-ui-skeleton.js +1 -1
  61. package/dist/components/vue-ui-smiley.js +1 -1
  62. package/dist/components/vue-ui-spark-trend.js +1 -1
  63. package/dist/components/vue-ui-sparkbar.js +1 -1
  64. package/dist/components/vue-ui-sparkgauge.js +1 -1
  65. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  66. package/dist/components/vue-ui-sparkline.js +1 -1
  67. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  68. package/dist/components/vue-ui-stackbar.js +1 -1
  69. package/dist/components/vue-ui-stackline.js +1 -1
  70. package/dist/components/vue-ui-strip-plot.js +1 -1
  71. package/dist/components/vue-ui-table-heatmap.js +1 -1
  72. package/dist/components/vue-ui-table-sparkline.js +1 -1
  73. package/dist/components/vue-ui-table.js +1 -1
  74. package/dist/components/vue-ui-thermometer.js +1 -1
  75. package/dist/components/vue-ui-timer.js +1 -1
  76. package/dist/components/vue-ui-tiremarks.js +1 -1
  77. package/dist/components/vue-ui-treemap.js +1 -1
  78. package/dist/components/vue-ui-vertical-bar.js +1 -1
  79. package/dist/components/vue-ui-waffle.js +1 -1
  80. package/dist/components/vue-ui-wheel.js +1 -1
  81. package/dist/components/vue-ui-word-cloud.js +1 -1
  82. package/dist/components/vue-ui-world.js +1 -1
  83. package/dist/components/vue-ui-xy-canvas.js +1 -1
  84. package/dist/components/vue-ui-xy.js +1 -1
  85. package/dist/{package-DwtrIvz-.js → package-DFCovsvL.js} +1 -1
  86. package/dist/{render-common-aVBx5bwm.js → render-common-DO90E2sI.js} +1 -1
  87. package/dist/ssr/vue-ui-donut.js +1 -1
  88. package/dist/ssr/vue-ui-xy.js +1 -1
  89. package/dist/ssr.js +2 -2
  90. package/dist/style.css +1 -1
  91. package/dist/types/vue-data-ui.d.ts +10 -0
  92. package/dist/{useConfig-DnH7Pf_2.js → useConfig-BWi-1gQ8.js} +10 -0
  93. package/dist/{useObjectBindings-2aHyifU7.js → useObjectBindings-Cf3f9kQI.js} +1 -1
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DxLmhpko.js → vue-data-ui-D1pI7nEJ.js} +68 -68
  96. package/dist/vue-data-ui.js +69 -69
  97. package/dist/{vue-ui-3d-bar-Dzdo_8qY.js → vue-ui-3d-bar-Yx2y1ZaB.js} +5 -5
  98. package/dist/{vue-ui-accordion-DLnwuQda.js → vue-ui-accordion-CJCSNX1M.js} +3 -3
  99. package/dist/{vue-ui-age-pyramid-CIwN3HVR.js → vue-ui-age-pyramid-BEwljDac.js} +5 -5
  100. package/dist/{vue-ui-annotator-BljP5cB7.js → vue-ui-annotator-CnOOMM8s.js} +6 -6
  101. package/dist/{vue-ui-bullet-Dosih8Hb.js → vue-ui-bullet-BNAie0-T.js} +5 -5
  102. package/dist/{vue-ui-bump--giMQaXE.js → vue-ui-bump-Bdb-v9HE.js} +6 -6
  103. package/dist/{vue-ui-candlestick-D_lfz0FX.js → vue-ui-candlestick-D_X9Jic9.js} +6 -6
  104. package/dist/{vue-ui-carousel-table-DEgFnasE.js → vue-ui-carousel-table-DlqiWptP.js} +3 -3
  105. package/dist/{vue-ui-chestnut-i2Y-uK8C.js → vue-ui-chestnut-C3P2hFLQ.js} +5 -5
  106. package/dist/{vue-ui-chord-DYwKe8vr.js → vue-ui-chord-Dk7CoMeX.js} +6 -6
  107. package/dist/{vue-ui-circle-pack-Cf0oDwlO.js → vue-ui-circle-pack-C1fhaNIa.js} +5 -5
  108. package/dist/{vue-ui-cursor-B7yLqYNS.js → vue-ui-cursor-DJ1-clJ1.js} +3 -3
  109. package/dist/{vue-ui-dag-BDVRFz-1.js → vue-ui-dag-kCdXgBQN.js} +6 -6
  110. package/dist/{vue-ui-dashboard-AUHJopaF.js → vue-ui-dashboard-B16wooBO.js} +68 -68
  111. package/dist/{vue-ui-digits-BEFXCA9O.js → vue-ui-digits-BD3fl69k.js} +3 -3
  112. package/dist/{vue-ui-donut-B3IYq0vZ.js → vue-ui-donut-C842oXD6.js} +7 -7
  113. package/dist/{vue-ui-donut-BJyXzn6B.js → vue-ui-donut-CaSkEb_t.js} +2 -2
  114. package/dist/{vue-ui-donut-evolution-BSV2Crlx.js → vue-ui-donut-evolution-qyOZuoMv.js} +8 -8
  115. package/dist/{vue-ui-dumbbell-7DAk8eNI.js → vue-ui-dumbbell-BPXxa_aj.js} +6 -6
  116. package/dist/{vue-ui-flow-DUk1CDgi.js → vue-ui-flow-D_HPUPw4.js} +6 -6
  117. package/dist/{vue-ui-funnel-Bf9GDDV6.js → vue-ui-funnel-Cq-vcVeM.js} +3 -3
  118. package/dist/{vue-ui-galaxy-Z5Ev4iYr.js → vue-ui-galaxy-qr0bCJyL.js} +7 -7
  119. package/dist/{vue-ui-gauge-Cq_EA0Bj.js → vue-ui-gauge-BXqUvg1d.js} +4 -4
  120. package/dist/{vue-ui-geo-C7k7pTTU.js → vue-ui-geo-Dh_vSWhZ.js} +6 -6
  121. package/dist/{vue-ui-gizmo-D_xYaP3o.js → vue-ui-gizmo-CCDQCpU3.js} +4 -4
  122. package/dist/{vue-ui-heatmap-DgmK3aY4.js → vue-ui-heatmap-BUDdzO9f.js} +6 -6
  123. package/dist/{vue-ui-history-plot-Cq9UBQYd.js → vue-ui-history-plot-q57jkARW.js} +7 -7
  124. package/dist/{vue-ui-horizontal-bar-BcLFr3-H.js → vue-ui-horizontal-bar-DgvXTZkY.js} +8 -8
  125. package/dist/{vue-ui-kpi-CjiJWVnq.js → vue-ui-kpi-DBg9dZq5.js} +2 -2
  126. package/dist/{vue-ui-mini-loader-BnLOdRA0.js → vue-ui-mini-loader-CoQu2yra.js} +2 -2
  127. package/dist/{vue-ui-molecule-CVu51gtg.js → vue-ui-molecule-Dg8vE0Uu.js} +4 -4
  128. package/dist/{vue-ui-mood-radar-bZC-Dg-1.js → vue-ui-mood-radar-58aD7ptX.js} +6 -6
  129. package/dist/{vue-ui-nested-donuts-BYK8yR9-.js → vue-ui-nested-donuts-DSLKnpDk.js} +7 -7
  130. package/dist/{vue-ui-onion-DVQBUIfH.js → vue-ui-onion-qysOUR7p.js} +7 -7
  131. package/dist/{vue-ui-parallel-coordinate-plot-BxhGmOXk.js → vue-ui-parallel-coordinate-plot-DSxg5bKM.js} +7 -7
  132. package/dist/{vue-ui-quadrant-vnDlJEWL.js → vue-ui-quadrant-ClyO4Hjn.js} +7 -7
  133. package/dist/{vue-ui-quick-chart-CBauII4k.js → vue-ui-quick-chart-BQKfigUs.js} +7 -7
  134. package/dist/{vue-ui-radar-BYHLMJ0O.js → vue-ui-radar-Ch6HCxYL.js} +269 -217
  135. package/dist/{vue-ui-rating-pDVqT08V.js → vue-ui-rating-BZQlHiMs.js} +2 -2
  136. package/dist/{vue-ui-relation-circle-WyHCmUGv.js → vue-ui-relation-circle-CsdWbKOa.js} +5 -5
  137. package/dist/{vue-ui-ridgeline-Dt2bsq8i.js → vue-ui-ridgeline-Cy4NA9vN.js} +7 -7
  138. package/dist/{vue-ui-rings-B97-rYT2.js → vue-ui-rings-BM0LgKNu.js} +7 -7
  139. package/dist/{vue-ui-scatter-DXOLVV7d.js → vue-ui-scatter-CDiY1zpe.js} +7 -7
  140. package/dist/{vue-ui-skeleton-BFoHaAzE.js → vue-ui-skeleton-CK8QF5Ve.js} +3 -3
  141. package/dist/{vue-ui-smiley-DUI5n89s.js → vue-ui-smiley-B2MyFtfh.js} +2 -2
  142. package/dist/{vue-ui-spark-trend-BwSLGFz4.js → vue-ui-spark-trend-CQ6T4zg9.js} +4 -4
  143. package/dist/{vue-ui-sparkbar-BQlbLbj_.js → vue-ui-sparkbar-DJPX7Zyv.js} +3 -3
  144. package/dist/{vue-ui-sparkgauge-gMtvy-s9.js → vue-ui-sparkgauge-DdABZuXr.js} +3 -3
  145. package/dist/{vue-ui-sparkhistogram-C5Elj_Rp.js → vue-ui-sparkhistogram-hHwNfkT5.js} +5 -5
  146. package/dist/{vue-ui-sparkline-DJM-Ez8d.js → vue-ui-sparkline-DYB-KzTn.js} +5 -5
  147. package/dist/{vue-ui-sparkstackbar-DrcKqBm_.js → vue-ui-sparkstackbar-BBvYxpq8.js} +6 -6
  148. package/dist/{vue-ui-stackbar-D2T1OrVG.js → vue-ui-stackbar-6P2rE6v4.js} +8 -8
  149. package/dist/{vue-ui-stackline-ByefOdDI.js → vue-ui-stackline-8hAYg8Yl.js} +8 -8
  150. package/dist/{vue-ui-strip-plot-BVvVrhEq.js → vue-ui-strip-plot-CuwHNfgu.js} +5 -5
  151. package/dist/{vue-ui-table-C9o1vxEo.js → vue-ui-table-H9EiH7B1.js} +6 -6
  152. package/dist/{vue-ui-table-heatmap-C1e_7MJ2.js → vue-ui-table-heatmap-CKQFDb-p.js} +3 -3
  153. package/dist/{vue-ui-table-sparkline-DbMBlaJr.js → vue-ui-table-sparkline-nSGLGenO.js} +3 -3
  154. package/dist/{vue-ui-thermometer-BGoNUm0Q.js → vue-ui-thermometer-DtK-lzqp.js} +4 -4
  155. package/dist/{vue-ui-timer-DrqEZJ9e.js → vue-ui-timer-BjgLdqAb.js} +4 -4
  156. package/dist/{vue-ui-tiremarks-h-OTdz5K.js → vue-ui-tiremarks-DcnL39zw.js} +4 -4
  157. package/dist/{vue-ui-treemap-CVVSxQPH.js → vue-ui-treemap-BZUsZ2yq.js} +8 -8
  158. package/dist/{vue-ui-waffle-nvE6zzca.js → vue-ui-waffle-oaMbR5Xr.js} +7 -7
  159. package/dist/{vue-ui-wheel-CYu92PTs.js → vue-ui-wheel-BE_CFU2l.js} +4 -4
  160. package/dist/{vue-ui-word-cloud-CRuXBu1K.js → vue-ui-word-cloud-N69utK_X.js} +6 -6
  161. package/dist/{vue-ui-world-Dn5KG6i-.js → vue-ui-world-D08OxG2W.js} +5 -5
  162. package/dist/{vue-ui-xy-DjB1eAEf.js → vue-ui-xy-0UenJQG5.js} +2 -2
  163. package/dist/{vue-ui-xy-Dzk3ILJy.js → vue-ui-xy-B5hQ5b9t.js} +713 -706
  164. package/dist/{vue-ui-xy-canvas-DjxM7y3T.js → vue-ui-xy-canvas-C_l3wNwV.js} +9 -9
  165. package/package.json +5 -5
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { B as t, Bt as n, D as r, F as i, Ft as a, G as o, H as s, Ht as c, I as l, J as u, L as ee, M as te, Nt as d, O as f, Ot as p, P as ne, Pt as m, R as re, S as ie, T as ae, Tt as oe, Vt as h, X as se, _t as g, a as _, bt as ce, c as le, g as ue, gt as de, h as fe, ht as pe, i as v, it as me, j as he, jt as ge, k as _e, l as ve, n as ye, nt as y, pt as be, r as xe, s as Se, v as b, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-AJRHFE5U.js";
3
3
  import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as je } from "./useConfig-DnH7Pf_2.js";
4
+ import { t as je } from "./useConfig-BWi-1gQ8.js";
5
5
  import { t as Me } from "./usePrinter-6n2MzVyV.js";
6
- import { n as Ne, t as Pe } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { n as Ne, t as Pe } from "./BaseScanner-DZvpgOjM.js";
7
7
  import { t as Fe } from "./useSvgExport-SVIsDot8.js";
8
8
  import { t as Ie } from "./useNestedProp-DtcXIg7n.js";
9
9
  import { t as Le } from "./useThemeCheck-C43Tcqmk.js";
@@ -14,10 +14,10 @@ import { n as Ve } from "./Title-DH6G8_cZ.js";
14
14
  import { t as He } from "./vue_ui_xy-BA3-_LCx.js";
15
15
  import { t as Ue } from "./Shape-BxFtoF1z.js";
16
16
  import { t as We } from "./_plugin-vue_export-helper-B3ysoDQm.js";
17
- import { t as Ge } from "./SlicerPreview-CXLgqXX8.js";
18
- import { t as Ke } from "./vue-ui-accordion-DLnwuQda.js";
19
- import { t as qe } from "./BaseLegendToggle-BNRi408o.js";
20
- import { t as Je } from "./A11yDataTable-BCbtxMU6.js";
17
+ import { t as Ge } from "./SlicerPreview-CZOlZJWD.js";
18
+ import { t as Ke } from "./vue-ui-accordion-CJCSNX1M.js";
19
+ import { t as qe } from "./BaseLegendToggle-CUYal8mC.js";
20
+ import { t as Je } from "./A11yDataTable-DdRsVULz.js";
21
21
  import { Fragment as x, Teleport as Ye, computed as S, createBlock as Xe, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as nt, mergeProps as rt, nextTick as it, normalizeClass as at, normalizeProps as ot, normalizeStyle as E, onBeforeUnmount as st, onMounted as ct, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as lt, shallowRef as ut, toDisplayString as dt, toRefs as ft, unref as j, useSlots as pt, vModelCheckbox as mt, watch as ht, watchEffect as gt, withCtx as M, withDirectives as _t } from "vue";
22
22
  //#region src/utils/xy.js
23
23
  function vt(e) {
@@ -532,7 +532,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
532
532
  "padding-left": "6px"
533
533
  },
534
534
  "data-dom-to-png-ignore": ""
535
- }, Si = ["innerHTML"], N = /* @__PURE__ */ We({
535
+ }, Si = ["innerHTML"], N = /*#__PURE__*/ We({
536
536
  __name: "vue-ui-xy",
537
537
  props: {
538
538
  config: {
@@ -562,7 +562,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
562
562
  "copyAlt"
563
563
  ],
564
564
  setup(e, { expose: We, emit: Dt }) {
565
- let N = e, Ci = et(() => import("./DataTable-DweDyHc1.js")), wi = et(() => import("./Tooltip-979Ytd8R.js")), Ti = et(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), Ei = et(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), Di = et(() => import("./vue-ui-table-sparkline-DbMBlaJr.js").then((e) => e.n)), Oi = et(() => import("./PackageVersion-Djj1DmIU.js").then((e) => e.t)), ki = et(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Ai = et(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), ji = Dt, Mi = pt(), Ni = tt(), { vue_ui_xy: Pi } = je(), { isThemeValid: Fi, warnInvalidTheme: Ii } = Le(), Li = O(null), Ri = O(null), zi = O(null), Bi = O(null), Vi = O(null), Hi = O(null), Ui = O(null), Wi = O(null), Gi = O(null), Ki = O(null), qi = O(null), Ji = O(null), Yi = O(null), Xi = O(null), Zi = O(0), P = O(null), Qi = O(!0), $i = O(600), F = O(1e3), ea = O("0 0 1000 600"), ta = O({
565
+ let N = e, Ci = et(() => import("./DataTable-DUWNbwQb.js")), wi = et(() => import("./Tooltip-979Ytd8R.js")), Ti = et(() => import("./UserOptions-rx9hUnOy.js").then((e) => e.n)), Ei = et(() => import("./BaseIcon-CWXbczu_.js").then((e) => e.n)), Di = et(() => import("./vue-ui-table-sparkline-nSGLGenO.js").then((e) => e.n)), Oi = et(() => import("./PackageVersion-CqsA0eNP.js").then((e) => e.t)), ki = et(() => import("./PenAndPaper-z1woaB1V.js").then((e) => e.t)), Ai = et(() => import("./BaseDraggableDialog-O8jn9Lvi.js").then((e) => e.n)), ji = Dt, Mi = pt(), Ni = tt(), { vue_ui_xy: Pi } = je(), { isThemeValid: Fi, warnInvalidTheme: Ii } = Le(), Li = O(null), Ri = O(null), zi = O(null), Bi = O(null), Vi = O(null), Hi = O(null), Ui = O(null), Wi = O(null), Gi = O(null), Ki = O(null), qi = O(null), Ji = O(null), Yi = O(null), Xi = O(null), Zi = O(0), P = O(null), Qi = O(!0), $i = O(600), F = O(1e3), ea = O("0 0 1000 600"), ta = O({
566
566
  x: 0,
567
567
  y: 0
568
568
  }), na = O({
@@ -606,8 +606,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
606
606
  plotLabels: 10
607
607
  }), Ia = O({
608
608
  plot: 3,
609
- line: 3
610
- });
609
+ line: 3,
610
+ selectedLine: 3
611
+ }), La = S(() => Math.max(Ia.value.line * 1.5, Ia.value.selectedLine));
611
612
  ct(() => {
612
613
  _a.value = !0, N.dataset.length && N.dataset.forEach((e, t) => {
613
614
  [null, void 0].includes(e.series) && se({
@@ -615,11 +616,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
615
616
  type: "datasetSerieAttribute",
616
617
  property: "series (number[])",
617
618
  index: t,
618
- debug: Ha.value
619
+ debug: Ua.value
619
620
  });
620
621
  }), ka(), Oa.start(), ja();
621
622
  });
622
- function La() {
623
+ function Ra() {
623
624
  if (!Object.keys(N.config || {}).length) return Pi;
624
625
  let e = Ie({
625
626
  userConfig: N.config,
@@ -628,10 +629,10 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
628
629
  N.config && be(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea : e.chart.highlightArea = [N.config.chart.highlightArea]), N.config && be(N.config, "chart.annotations") && Array.isArray(N.config.chart.annotations) && N.config.chart.annotations.length ? e.chart.annotations = N.config.chart.annotations.map((e) => Ie({
629
630
  defaultConfig: Pi.chart.annotations[0],
630
631
  userConfig: e
631
- })) : e.chart.annotations = [], N.config && be(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", be(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && be(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) => Ra({
632
+ })) : e.chart.annotations = [], N.config && be(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", be(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && be(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) => za({
632
633
  defaultConfig: Pi.chart.highlightArea,
633
634
  userConfig: e
634
- })) : e.chart.highlightArea = Ra({
635
+ })) : e.chart.highlightArea = za({
635
636
  defaultConfig: Pi.chart.highlightArea,
636
637
  userConfig: N.config.chart.highlightArea
637
638
  }));
@@ -650,27 +651,27 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
650
651
  customPalette: i.customPalette.length ? i.customPalette : n[t] || p
651
652
  };
652
653
  }
653
- function Ra({ defaultConfig: e, userConfig: t }) {
654
+ function za({ defaultConfig: e, userConfig: t }) {
654
655
  return Ie({
655
656
  defaultConfig: e,
656
657
  userConfig: t
657
658
  });
658
659
  }
659
- let za = S({
660
+ let Ba = S({
660
661
  get() {
661
662
  return !!N.dataset && N.dataset.length;
662
663
  },
663
664
  set(e) {
664
665
  return e;
665
666
  }
666
- }), H = O(La()), Ba = S(() => H.value.chart.userOptions.useCursorPointer), U = O({
667
+ }), H = O(Ra()), Va = S(() => H.value.chart.userOptions.useCursorPointer), U = O({
667
668
  dataLabels: { show: !0 },
668
669
  showTooltip: !0,
669
670
  showTable: !1,
670
671
  isStacked: !1,
671
672
  useIndividualScale: !1
672
673
  });
673
- function Va() {
674
+ function Ha() {
674
675
  let e = H.value.chart.grid.labels.yAxis.stacked, t = H.value.chart.grid.labels.yAxis.useIndividualScale;
675
676
  if (!Na.value) {
676
677
  U.value = {
@@ -684,7 +685,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
684
685
  }
685
686
  U.value.showTooltip = H.value.chart.tooltip.show === !0, e !== Pa.value && (U.value.isStacked = e, Pa.value = e), t !== Fa.value && (U.value.useIndividualScale = t, Fa.value = t), U.value.isStacked && (U.value.useIndividualScale = !0);
686
687
  }
687
- let Ha = S(() => !!H.value.debug), Ua = S(() => c({
688
+ let Ua = S(() => !!H.value.debug), Wa = S(() => c({
688
689
  defaultConfig: {
689
690
  useCssAnimation: !1,
690
691
  showTable: !1,
@@ -740,7 +741,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
740
741
  }
741
742
  },
742
743
  userConfig: H.value.skeletonConfig ?? {}
743
- })), Wa = S(() => N.config?.skeletonDataset ?? [{
744
+ })), Ga = S(() => N.config?.skeletonDataset ?? [{
744
745
  name: "",
745
746
  series: [
746
747
  0,
@@ -777,53 +778,53 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
777
778
  ],
778
779
  type: "bar",
779
780
  color: "#CACACA"
780
- }]), { loading: Ga, FINAL_DATASET: W, manualLoading: Ka } = Ne({
781
+ }]), { loading: Ka, FINAL_DATASET: W, manualLoading: qa } = Ne({
781
782
  ...ft(N),
782
783
  FINAL_CONFIG: H,
783
- prepareConfig: La,
784
+ prepareConfig: Ra,
784
785
  callback: () => {
785
786
  Promise.resolve().then(async () => {
786
- (!H.value.chart.zoom.keepState || !es.value || G.value.start === 0 && G.value.end === 0) && await rs(), U.value.showTable = H.value.showTable;
787
+ (!H.value.chart.zoom.keepState || !ts.value || G.value.start === 0 && G.value.end === 0) && await is(), U.value.showTable = H.value.showTable;
787
788
  });
788
789
  },
789
- skeletonDataset: Wa.value,
790
+ skeletonDataset: Ga.value,
790
791
  skeletonConfig: c({
791
792
  defaultConfig: H.value,
792
- userConfig: Ua.value
793
+ userConfig: Wa.value
793
794
  })
794
- }), qa = Ct((e, t) => ce({
795
+ }), Ja = Ct((e, t) => ce({
795
796
  data: e,
796
797
  threshold: t
797
- })), Ja = (e) => qa(e, H.value.downsample.threshold), Ya = S({
798
- get: () => Math.max(...W.value.map((e) => Ja(e.series).length)),
798
+ })), Ya = (e) => Ja(e, H.value.downsample.threshold), Xa = S({
799
+ get: () => Math.max(...W.value.map((e) => Ya(e.series).length)),
799
800
  set: (e) => e
800
801
  }), G = O({
801
802
  start: 0,
802
- end: Ya.value
803
- }), Xa = O({
803
+ end: Xa.value
804
+ }), Za = O({
804
805
  start: 0,
805
- end: Ya.value
806
- }), Za = S(() => H.value.chart.zoom.preview.enable && (Xa.value.start !== G.value.start || Xa.value.end !== G.value.end));
807
- function Qa(e, t) {
808
- Xa.value[e] = t;
806
+ end: Xa.value
807
+ }), Qa = S(() => H.value.chart.zoom.preview.enable && (Za.value.start !== G.value.start || Za.value.end !== G.value.end));
808
+ function $a(e, t) {
809
+ Za.value[e] = t;
809
810
  }
810
- function $a() {
811
+ function eo() {
811
812
  if (q.value) {
812
- let e = wc.value.min, t = wc.value.max, n = Number(G.value.start), r = Number(G.value.end);
813
+ let e = Tc.value.min, t = Tc.value.max, n = Number(G.value.start), r = Number(G.value.end);
813
814
  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), G.value = {
814
815
  start: n,
815
816
  end: r
816
- }, Xa.value.start = n, Xa.value.end = r, zi.value && (zi.value.setStartValue(n), zi.value.setEndValue(r));
817
+ }, Za.value.start = n, Za.value.end = r, zi.value && (zi.value.setStartValue(n), zi.value.setEndValue(r));
817
818
  return;
818
819
  }
819
- let e = Math.max(1, ...W.value.map((e) => Ja(e.series).length)), t = Math.max(0, Math.min(G.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(G.value.end ?? e, e));
820
+ let e = Math.max(1, ...W.value.map((e) => Ya(e.series).length)), t = Math.max(0, Math.min(G.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(G.value.end ?? e, e));
820
821
  (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), G.value = {
821
822
  start: t,
822
823
  end: n
823
- }, Xa.value.start = t, Xa.value.end = n, zi.value && (zi.value.setStartValue(t), zi.value.setEndValue(n));
824
+ }, Za.value.start = t, Za.value.end = n, zi.value && (zi.value.setStartValue(t), zi.value.setEndValue(n));
824
825
  }
825
- let eo = S(() => {
826
- let { left: e, top: t, width: n, height: r } = Y.value, i = G.value.start, a = G.value.end - i, o = n / a, s = Xa.value.start - i, c = Xa.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
826
+ let to = S(() => {
827
+ let { left: e, top: t, width: n, height: r } = Y.value, i = G.value.start, a = G.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));
827
828
  return {
828
829
  x: e + l * o,
829
830
  y: t,
@@ -850,22 +851,22 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
850
851
  let t = e - G.value.start;
851
852
  t < 0 || e >= G.value.end ? B.value = null : B.value = t ?? null;
852
853
  }, { immediate: !0 });
853
- let { isPrinting: to, isImaging: no, generatePdf: ro, generateImage: io } = Me({
854
+ let { isPrinting: no, isImaging: ro, generatePdf: io, generateImage: ao } = Me({
854
855
  elementId: `vue-ui-xy_${L.value}`,
855
856
  fileName: H.value.chart.title.text || "vue-ui-xy",
856
857
  options: H.value.chart.userOptions.print
857
- }), ao = O(!1), oo = S(() => we(H.value.customPalette)), so = S(() => {
858
+ }), oo = O(!1), so = S(() => we(H.value.customPalette)), co = S(() => {
858
859
  let e = H.value.chart.grid.labels.yAxis.scaleMin;
859
860
  if (e == null) return null;
860
861
  let t = Number(e);
861
862
  return Number.isFinite(t) ? t : null;
862
- }), co = S(() => so.value === null ? gs.value : Y.value.bottom), lo = S(() => {
863
+ }), lo = S(() => co.value === null ? _s.value : Y.value.bottom), uo = S(() => {
863
864
  let e = H.value.chart.grid.labels.yAxis.scaleMax;
864
865
  if (e == null) return null;
865
866
  let t = Number(e);
866
867
  return Number.isFinite(t) ? t : null;
867
- }), uo = S(() => so.value !== null || lo.value !== null), fo = S(() => {
868
- let e = vo.value.filter((e) => !I.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).map(_o).filter(Number.isFinite);
868
+ }), fo = S(() => co.value !== null || uo.value !== null), po = S(() => {
869
+ let e = yo.value.filter((e) => !I.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).map(vo).filter(Number.isFinite);
869
870
  return e.length ? {
870
871
  min: Math.min(...e),
871
872
  max: Math.max(...e)
@@ -873,27 +874,27 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
873
874
  min: 0,
874
875
  max: 1
875
876
  };
876
- }), po = S(() => {
877
- let { min: e, max: t } = fo.value;
878
- if (!uo.value) {
877
+ }), mo = S(() => {
878
+ let { min: e, max: t } = po.value;
879
+ if (!fo.value) {
879
880
  let t = e;
880
881
  return t > 0 ? 0 : t;
881
882
  }
882
- let n = so.value === null ? e > 0 ? 0 : e : so.value, r = lo.value === null ? t : lo.value;
883
+ let n = co.value === null ? e > 0 ? 0 : e : co.value, r = uo.value === null ? t : uo.value;
883
884
  return wt(e < n ? e : n, t > r ? t : r).min;
884
- }), mo = S(() => {
885
- let { min: e, max: t } = fo.value;
886
- if (!uo.value) {
885
+ }), ho = S(() => {
886
+ let { min: e, max: t } = po.value;
887
+ if (!fo.value) {
887
888
  let e = t;
888
- return po.value === e ? e + 1 : e;
889
+ return mo.value === e ? e + 1 : e;
889
890
  }
890
- let n = so.value === null ? e > 0 ? 0 : e : so.value, r = lo.value === null ? t : lo.value;
891
+ let n = co.value === null ? e > 0 ? 0 : e : co.value, r = uo.value === null ? t : uo.value;
891
892
  return wt(e < n ? e : n, t > r ? t : r).max;
892
- }), K = S(() => H.value.chart.grid.labels.yAxis.useNiceScale ? fe(po.value, mo.value < 0 ? 0 : mo.value, H.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(po.value, mo.value < 0 ? 0 : mo.value, H.value.chart.grid.labels.yAxis.commonScaleSteps)), ho = S(() => [null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) ? K.value.min >= 0 ? 0 : Math.abs(K.value.min) : -K.value.min), q = S(() => W.value.some((e) => Array.isArray(e.series) && e.series.some(xt)));
893
+ }), K = S(() => H.value.chart.grid.labels.yAxis.useNiceScale ? fe(mo.value, ho.value < 0 ? 0 : ho.value, H.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(mo.value, ho.value < 0 ? 0 : ho.value, H.value.chart.grid.labels.yAxis.commonScaleSteps)), go = S(() => [null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) ? K.value.min >= 0 ? 0 : Math.abs(K.value.min) : -K.value.min), q = S(() => W.value.some((e) => Array.isArray(e.series) && e.series.some(xt)));
893
894
  ct(() => {
894
895
  q.value && N.dataset.some((e) => e.type === "bar") && console.warn("Vue Data UI - VueUiXy: series of type 'bar' are not supported in continuous mode.\n\nContinuous mode requires 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard\n[number, number, number...]");
895
896
  });
896
- function go(e, t) {
897
+ function _o(e, t) {
897
898
  return e && typeof e == "object" && e.x === null && e.y === null ? {
898
899
  x: null,
899
900
  y: null,
@@ -908,38 +909,38 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
908
909
  isNull: !1
909
910
  };
910
911
  }
911
- function _o(e) {
912
+ function vo(e) {
912
913
  return q.value ? e.y : e;
913
914
  }
914
- let vo = S(() => !Qi.value && !q.value ? W.value : W.value.map((e, t) => {
915
- let n = q.value ? e.series : Ja(e.series), r = `uniqueId_${t}`;
915
+ let yo = S(() => !Qi.value && !q.value ? W.value : W.value.map((e, t) => {
916
+ let n = q.value ? e.series : Ya(e.series), r = `uniqueId_${t}`;
916
917
  return {
917
918
  ...e,
918
919
  slotAbsoluteIndex: t,
919
- series: q.value ? n.map((e, t) => go(e, t)).filter((e) => e.x >= G.value.start && e.x <= G.value.end) : n.map((e) => de(e) ? e : null).slice(G.value.start, G.value.end),
920
- color: Te(e.color ? e.color : oo.value[t] ? oo.value[t] : p[t]),
920
+ series: q.value ? n.map((e, t) => _o(e, t)).filter((e) => e.x >= G.value.start && e.x <= G.value.end) : n.map((e) => de(e) ? e : null).slice(G.value.start, G.value.end),
921
+ color: Te(e.color ? e.color : so.value[t] ? so.value[t] : p[t]),
921
922
  id: r,
922
923
  scaleLabel: e.scaleLabel || r
923
924
  };
924
- })), yo = S(() => vo.value.map((e, t) => ({
925
+ })), bo = S(() => yo.value.map((e, t) => ({
925
926
  absoluteIndex: t,
926
927
  ...e,
927
928
  series: q.value ? e.series.map((e) => ({
928
929
  ...e,
929
- y: e.y === null ? null : e.y + ho.value
930
- })) : e.series.map((e) => e + ho.value),
930
+ y: e.y === null ? null : e.y + go.value
931
+ })) : e.series.map((e) => e + go.value),
931
932
  absoluteValues: q.value ? e.series.map((e) => e.y) : e.series,
932
- segregate: () => Hs(e),
933
+ segregate: () => Us(e),
933
934
  isSegregated: I.value.includes(e.id)
934
- }))), bo = S(() => vo.value.map((e) => ({
935
+ }))), xo = S(() => yo.value.map((e) => ({
935
936
  ...e,
936
937
  series: q.value ? e.series.map((e) => ({
937
938
  ...e,
938
- y: e.y === null ? null : e.y + ho.value
939
- })) : e.series.map((e) => e + ho.value),
939
+ y: e.y === null ? null : e.y + go.value
940
+ })) : e.series.map((e) => e + go.value),
940
941
  absoluteValues: q.value ? e.series.map((e) => e.y) : e.series
941
- })).filter((e) => !I.value.includes(e.id))), xo = S(() => I.value.length === yo.value.length), J = S(() => H.value.chart.grid.labels.yAxis.position === "right");
942
- function So() {
942
+ })).filter((e) => !I.value.includes(e.id))), So = S(() => I.value.length === bo.value.length), J = S(() => H.value.chart.grid.labels.yAxis.position === "right");
943
+ function Co() {
943
944
  let e = 0;
944
945
  qi.value && (e = Array.from(qi.value.querySelectorAll("text")).reduce((e, t) => {
945
946
  let n = t.getComputedTextLength();
@@ -953,9 +954,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
953
954
  yAxisLabelWidth: t
954
955
  };
955
956
  }
956
- function Co(e) {
957
- let t = bo.value.filter((e) => ["line", "plot"].includes(e.type)).flatMap((t) => t.series.map((n, r) => {
958
- let i = Cc(n);
957
+ function wo(e) {
958
+ let t = xo.value.filter((e) => ["line", "plot"].includes(e.type)).flatMap((t) => t.series.map((n, r) => {
959
+ let i = wc(n);
959
960
  return {
960
961
  datapoint: t,
961
962
  point: n,
@@ -966,11 +967,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
966
967
  };
967
968
  })).filter((e) => g(e.point?.x) && g(e.point?.y)).reduce((e, t) => !e || t.distance < e.distance ? t : e, null);
968
969
  if (!t) {
969
- Ds.value = [], Os.value = null, xa.value = null;
970
+ Os.value = [], ks.value = null, xa.value = null;
970
971
  return;
971
972
  }
972
973
  let n = Number(t.point.x);
973
- Ds.value = bo.value.filter((e) => ["line", "plot"].includes(e.type)).map((e) => {
974
+ Os.value = xo.value.filter((e) => ["line", "plot"].includes(e.type)).map((e) => {
974
975
  let t = e.series.findIndex((e) => Number(e.x) === n && g(e.y));
975
976
  if (t === -1) return null;
976
977
  let r = e.series[t];
@@ -978,66 +979,66 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
978
979
  datapoint: e,
979
980
  point: r,
980
981
  index: t,
981
- x: Cc(r),
982
+ x: wc(r),
982
983
  y: r.y,
983
984
  distance: 0
984
985
  };
985
- }).filter(Boolean), Os.value = Cc({ x: n }), xa.value = n;
986
+ }).filter(Boolean), ks.value = wc({ x: n }), xa.value = n;
986
987
  }
987
- function wo(e) {
988
+ function To(e) {
988
989
  if (!Number.isFinite(Number(e))) {
989
- Ds.value = [], Os.value = null;
990
+ Os.value = [], ks.value = null;
990
991
  return;
991
992
  }
992
- let t = Cc({ x: Number(e) });
993
- Co(t), Os.value = t;
993
+ let t = wc({ x: Number(e) });
994
+ wo(t), ks.value = t;
994
995
  }
995
- let To = O(0), Eo = O(0);
996
- function Do() {
996
+ let Eo = O(0), Do = O(0);
997
+ function Oo() {
997
998
  let e = Ki.value;
998
999
  if (!e) {
999
- To.value = 0, Eo.value = 0;
1000
+ Eo.value = 0, Do.value = 0;
1000
1001
  return;
1001
1002
  }
1002
1003
  try {
1003
1004
  let t = e.getBBox();
1004
- To.value = t?.height ?? 0, Eo.value = t?.x ?? 0;
1005
+ Eo.value = t?.height ?? 0, Do.value = t?.x ?? 0;
1005
1006
  } catch {
1006
- To.value = 0, Eo.value = 0;
1007
+ Eo.value = 0, Do.value = 0;
1007
1008
  }
1008
1009
  }
1009
- let Oo = S(() => {
1010
+ let ko = S(() => {
1010
1011
  let e = 0;
1011
1012
  if (Wi.value) try {
1012
1013
  e = Wi.value.getBBox().height || 0;
1013
1014
  } catch {
1014
1015
  e = 0;
1015
1016
  }
1016
- return e + To.value + V.value.xAxis;
1017
- }), ko = S(() => W.value.some((e) => e.useProgression));
1018
- function Ao() {
1017
+ return e + Eo.value + V.value.xAxis;
1018
+ }), Ao = S(() => W.value.some((e) => e.useProgression));
1019
+ function jo() {
1019
1020
  return H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.dataLabels * .8;
1020
1021
  }
1021
1022
  let Y = S(() => {
1022
1023
  Ea.value;
1023
1024
  let e = 0, t = 0, n = 0, r = 0;
1024
- if (H.value.chart.grid.labels.show) if (U.value.useIndividualScale && !U.value.isStacked) J.value ? t = (W.value.length - I.value.length) * Ao() : e = (W.value.length - I.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36);
1025
+ if (H.value.chart.grid.labels.show) if (U.value.useIndividualScale && !U.value.isStacked) J.value ? t = (W.value.length - I.value.length) * jo() : e = (W.value.length - I.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36);
1025
1026
  else if (U.value.useIndividualScale && U.value.isStacked) {
1026
1027
  let n = H.value.chart.grid.labels.yAxis.labelWidth + 36;
1027
1028
  J.value ? t = n : e = n;
1028
1029
  } else {
1029
- let i = So();
1030
+ let i = Co();
1030
1031
  e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
1031
1032
  }
1032
- let i = H.value.chart.labels.fontSize * 1.1, a = ko.value ? 24 : 6;
1033
- Ki.value && Eo.value < 0 && (e += Math.abs(Eo.value));
1033
+ let i = H.value.chart.labels.fontSize * 1.1, a = Ao.value ? 24 : 6;
1034
+ Ki.value && Do.value < 0 && (e += Math.abs(Do.value));
1034
1035
  let o = F.value - e - t - a - H.value.chart.padding?.left - H.value.chart.padding?.right;
1035
1036
  return {
1036
1037
  top: H.value.chart.padding?.top + i,
1037
1038
  right: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left + o,
1038
- bottom: $i.value - Oo.value - H.value.chart.padding?.bottom - H.value.chart.grid.labels.axis.xLabelOffsetY,
1039
+ bottom: $i.value - ko.value - H.value.chart.padding?.bottom - H.value.chart.grid.labels.axis.xLabelOffsetY,
1039
1040
  left: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left,
1040
- height: $i.value - Oo.value - H.value.chart.padding?.top - H.value.chart.padding?.bottom - i - H.value.chart.grid.labels.axis.xLabelOffsetY,
1041
+ height: $i.value - ko.value - H.value.chart.padding?.top - H.value.chart.padding?.bottom - i - H.value.chart.grid.labels.axis.xLabelOffsetY,
1041
1042
  width: o,
1042
1043
  scaleLabelX: e,
1043
1044
  rightScaleLabelX: t,
@@ -1045,48 +1046,48 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1045
1046
  yAxisLabelWidth: r,
1046
1047
  individualOffsetX: 36
1047
1048
  };
1048
- }), jo = S(() => {
1049
+ }), Mo = S(() => {
1049
1050
  let e = +(H.value.chart.grid.position === "middle"), t = Z.value + e, n = y(Y.value?.top), r = y(Y.value?.bottom);
1050
- return q.value ? H.value.chart.grid.position === "middle" ? xc.value.map((e, t, i) => {
1051
+ return q.value ? H.value.chart.grid.position === "middle" ? Sc.value.map((e, t, i) => {
1051
1052
  if (t === 0) return null;
1052
1053
  let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
1053
1054
  return `M${o},${n} L${o},${r}`;
1054
- }).filter(Boolean).join(" ") : xc.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
1055
- let i = H.value.chart.grid.position === "middle" ? nc(t) : tc(t);
1055
+ }).filter(Boolean).join(" ") : Sc.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
1056
+ let i = H.value.chart.grid.position === "middle" ? rc(t) : nc(t);
1056
1057
  return `M${i},${n} L${i},${r}`;
1057
1058
  }).join(" ");
1058
- }), Mo = S(() => {
1059
+ }), No = S(() => {
1059
1060
  if (!H.value.chart.grid.labels.xAxis.showCrosshairs) return "";
1060
1061
  let e = H.value.chart.grid.labels.xAxis.crosshairSize, t = H.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
1061
- return (q.value ? xc.value : Wo.value).map((n, r) => {
1062
+ return (q.value ? Sc.value : Go.value).map((n, r) => {
1062
1063
  if (!n || !n.text) return null;
1063
- let i = q.value ? n.x : tc(r);
1064
- return `M${i},${t ? gs.value - (gs.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? gs.value + e / (gs.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
1064
+ let i = q.value ? n.x : nc(r);
1065
+ return `M${i},${t ? _s.value - (_s.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? _s.value + e / (_s.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
1065
1066
  }).filter(Boolean).join(" ");
1066
1067
  });
1067
- function No() {
1068
+ function Po() {
1068
1069
  return !!Ni?.vnode.props?.onSelectTimeLabel;
1069
1070
  }
1070
- function Po(e, t, n) {
1071
+ function Fo(e, t, n) {
1071
1072
  return ga.value ||= document.createElement("canvas").getContext("2d"), ga.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, ga.value;
1072
1073
  }
1073
- function Fo() {
1074
+ function Io() {
1074
1075
  let e = Li.value.querySelectorAll(".vue-ui-xy-tag");
1075
1076
  e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
1076
1077
  }
1077
- function Io(e, t, n, r, i) {
1078
+ function Lo(e, t, n, r, i) {
1078
1079
  n && (ha.value[`${e}_${t}_${r}_${i}`] = n);
1079
1080
  }
1080
- let Lo = O(!1);
1081
- async function Ro(e = !1) {
1082
- await it(), Lo.value = e, fa.value && (ma.value = e);
1081
+ let Ro = O(!1);
1082
+ async function zo(e = !1) {
1083
+ await it(), Ro.value = e, fa.value && (ma.value = e);
1083
1084
  }
1084
- function zo() {
1085
+ function Bo() {
1085
1086
  ra.value = !ra.value;
1086
1087
  }
1087
- let X = O([]), Bo = O([]), Vo = 0;
1088
+ let X = O([]), Vo = O([]), Ho = 0;
1088
1089
  gt(() => {
1089
- let e = ++Vo;
1090
+ let e = ++Ho;
1090
1091
  (async () => {
1091
1092
  let t = Math.max(...W.value.map((e) => ce({
1092
1093
  data: e.series,
@@ -1098,12 +1099,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1098
1099
  start: G.value.start,
1099
1100
  end: G.value.end
1100
1101
  });
1101
- e === Vo && (X.value = n);
1102
+ e === Ho && (X.value = n);
1102
1103
  })();
1103
1104
  });
1104
- let Ho = 0;
1105
+ let Uo = 0;
1105
1106
  gt(() => {
1106
- let e = ++Ho;
1107
+ let e = ++Uo;
1107
1108
  (async () => {
1108
1109
  let t = Math.max(...W.value.map((e) => ce({
1109
1110
  data: e.series,
@@ -1113,38 +1114,38 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1113
1114
  maxDatapoints: t,
1114
1115
  formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
1115
1116
  start: 0,
1116
- end: Ya.value
1117
+ end: Xa.value
1117
1118
  });
1118
- e === Ho && (Bo.value = n);
1119
+ e === Uo && (Vo.value = n);
1119
1120
  })();
1120
1121
  });
1121
- let Uo = S(() => {
1122
+ let Wo = S(() => {
1122
1123
  let e = H.value.chart.grid.labels.xAxisLabels.modulo;
1123
1124
  return X.value.length ? Math.min(e, [...new Set(X.value.map((e) => e.text))].length) : e;
1124
- }), Wo = S(() => {
1125
- let e = H.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = Bo.value || [], r = G.value.start ?? 0, i = B.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
1126
- return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Uo.value || 1), o, s, r, i, a);
1127
- }), Go = S(() => (Wo.value || []).map((e) => e?.text ?? "").join("|"));
1125
+ }), Go = S(() => {
1126
+ let e = H.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = Vo.value || [], r = G.value.start ?? 0, i = B.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
1127
+ return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Wo.value || 1), o, s, r, i, a);
1128
+ }), Ko = S(() => (Go.value || []).map((e) => e?.text ?? "").join("|"));
1128
1129
  ct(() => {
1129
1130
  requestAnimationFrame(() => {
1130
- Do();
1131
+ Oo();
1131
1132
  }), ht([
1132
- () => Go.value,
1133
+ () => Ko.value,
1133
1134
  () => H.value.chart.grid.labels.xAxisLabels.rotation,
1134
1135
  () => V.value.xAxis,
1135
1136
  () => F.value,
1136
1137
  () => $i.value
1137
1138
  ], async () => {
1138
1139
  await it(), requestAnimationFrame(() => {
1139
- Do();
1140
+ Oo();
1140
1141
  });
1141
1142
  }, { flush: "post" });
1142
1143
  }), st(() => {
1143
- To.value = 0, Eo.value = 0, Oa.stop();
1144
+ Eo.value = 0, Do.value = 0, Oa.stop();
1144
1145
  });
1145
- function Ko(e, t) {
1146
+ function qo(e, t) {
1146
1147
  ji("selectTimeLabel", {
1147
- datapoint: bo.value.map((e) => ({
1148
+ datapoint: xo.value.map((e) => ({
1148
1149
  shape: e.shape ?? e.type === "bar" ? "square" : "circle",
1149
1150
  name: e.name,
1150
1151
  color: e.color,
@@ -1162,140 +1163,140 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1162
1163
  let e = Et((G.value.end ?? 0) - (G.value.start ?? 0));
1163
1164
  return Math.max(1, e);
1164
1165
  });
1165
- function qo(e) {
1166
+ function Jo(e) {
1166
1167
  q.value || (R.value = e);
1167
1168
  }
1168
- function Jo(e) {
1169
+ function Yo(e) {
1169
1170
  if (!q.value || !g(e)) {
1170
- xa.value = null, Ds.value = [], Os.value = null;
1171
+ xa.value = null, Os.value = [], ks.value = null;
1171
1172
  return;
1172
1173
  }
1173
- xa.value = Number(e), wo(Number(e));
1174
+ xa.value = Number(e), To(Number(e));
1174
1175
  }
1175
- let Yo = S(() => q.value ? g(xa.value) || g(Os.value) : ![null, void 0].includes(B.value) || ![null, void 0].includes(R.value));
1176
- function Xo() {
1176
+ let Xo = S(() => q.value ? g(xa.value) || g(ks.value) : ![null, void 0].includes(B.value) || ![null, void 0].includes(R.value));
1177
+ function Zo() {
1177
1178
  U.value.isStacked = !U.value.isStacked, U.value.isStacked ? U.value.useIndividualScale = !0 : U.value.useIndividualScale = H.value.chart.grid.labels.yAxis.useIndividualScale;
1178
1179
  }
1179
- function Zo(e) {
1180
- Ha.value && e.autoScaling && (H.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`), H.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`));
1181
- }
1182
1180
  function Qo(e) {
1183
- let t = Math.max(...W.value.map((e) => Ja(e.series).length));
1181
+ Ua.value && e.autoScaling && (H.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`), H.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`));
1182
+ }
1183
+ function $o(e) {
1184
+ let t = Math.max(...W.value.map((e) => Ya(e.series).length));
1184
1185
  return e > t ? t : e < 0 || H.value.chart.zoom.startIndex !== null && e < H.value.chart.zoom.startIndex ? H.value.chart.zoom.startIndex === null ? 1 : H.value.chart.zoom.startIndex + 1 : e;
1185
1186
  }
1186
- let $o = O(!1), es = O(!1), ts = O(0), ns = O(0);
1187
- function rs() {
1188
- if (!$o.value) {
1189
- $o.value = !0;
1187
+ let es = O(!1), ts = O(!1), ns = O(0), rs = O(0);
1188
+ function is() {
1189
+ if (!es.value) {
1190
+ es.value = !0;
1190
1191
  try {
1191
1192
  if (q.value) {
1192
- let e = wc.value.min, t = wc.value.max;
1193
- ts.value = e, ns.value = t, G.value.start = e, G.value.end = t, Xa.value.start = e, Xa.value.end = t, es.value = !0, zi.value && (zi.value.setStartValue(e), zi.value.setEndValue(t));
1193
+ let e = Tc.value.min, t = Tc.value.max;
1194
+ ns.value = e, rs.value = t, G.value.start = e, G.value.end = t, Za.value.start = e, Za.value.end = t, ts.value = !0, zi.value && (zi.value.setStartValue(e), zi.value.setEndValue(t));
1194
1195
  return;
1195
1196
  }
1196
- let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...W.value.map((e) => Ja(e.series).length)) : Math.max(...W.value.map((e) => Ja(e.series).length));
1197
+ let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...W.value.map((e) => Ya(e.series).length)) : Math.max(...W.value.map((e) => Ya(e.series).length));
1197
1198
  if (H.value.chart.zoom.keepState && n <= 0) return;
1198
- ts.value = 0, ns.value = n;
1199
- let r = e ?? 0, i = t == null ? n : Math.min(Qo(t + 1), n);
1200
- is.value = !0, G.value.start = r, G.value.end = i, Xa.value.start = r, Xa.value.end = i, $a(), es.value = !0;
1199
+ ns.value = 0, rs.value = n;
1200
+ let r = e ?? 0, i = t == null ? n : Math.min($o(t + 1), n);
1201
+ as.value = !0, G.value.start = r, G.value.end = i, Za.value.start = r, Za.value.end = i, eo(), ts.value = !0;
1201
1202
  } finally {
1202
1203
  queueMicrotask(() => {
1203
- is.value = !1;
1204
- }), $o.value = !1;
1204
+ as.value = !1;
1205
+ }), es.value = !1;
1205
1206
  }
1206
1207
  }
1207
1208
  }
1208
- let is = O(!1);
1209
- function as(e) {
1210
- if ($o.value || is.value) return;
1209
+ let as = O(!1);
1210
+ function os(e) {
1211
+ if (es.value || as.value) return;
1211
1212
  let t = Number(e);
1212
1213
  ji("zoomStart", {
1213
1214
  index: t,
1214
- isZoom: St(t, ts.value)
1215
- }), Number.isFinite(t) && t !== G.value.start && (G.value.start = t, Xa.value.start = t, $a());
1215
+ isZoom: St(t, ns.value)
1216
+ }), Number.isFinite(t) && t !== G.value.start && (G.value.start = t, Za.value.start = t, eo());
1216
1217
  }
1217
- function os(e) {
1218
- if ($o.value || is.value) return;
1218
+ function ss(e) {
1219
+ if (es.value || as.value) return;
1219
1220
  if (q.value) {
1220
1221
  let t = Number(e);
1221
1222
  if (!Number.isFinite(t)) return;
1222
- let n = Math.max(Number(G.value.start) + 1 / 10 ** H.value.chart.grid.labels.xAxis.rounding, Math.min(t, wc.value.max));
1223
+ let n = Math.max(Number(G.value.start) + 1 / 10 ** H.value.chart.grid.labels.xAxis.rounding, Math.min(t, Tc.value.max));
1223
1224
  if (ji("zoomEnd", {
1224
1225
  index: n,
1225
- isZoom: St(n, ns.value)
1226
+ isZoom: St(n, rs.value)
1226
1227
  }), n === G.value.end) return;
1227
- G.value.end = n, Xa.value.end = n, $a();
1228
+ G.value.end = n, Za.value.end = n, eo();
1228
1229
  return;
1229
1230
  }
1230
- let t = Qo(e);
1231
+ let t = $o(e);
1231
1232
  ji("zoomEnd", {
1232
1233
  index: t,
1233
- isZoom: St(t, ns.value)
1234
- }), t !== G.value.end && (G.value.end = t, Xa.value.end = t, $a());
1234
+ isZoom: St(t, rs.value)
1235
+ }), t !== G.value.end && (G.value.end = t, Za.value.end = t, eo());
1235
1236
  }
1236
- async function ss() {
1237
- await rs(), ji("zoomReset");
1237
+ async function cs() {
1238
+ await is(), ji("zoomReset");
1238
1239
  }
1239
- let cs = S(() => K.value.max + ho.value);
1240
- function ls(e) {
1241
- return e / (vt(cs.value) ? cs.value : 1);
1240
+ let ls = S(() => K.value.max + go.value);
1241
+ function us(e) {
1242
+ return e / (vt(ls.value) ? ls.value : 1);
1242
1243
  }
1243
- let us = S(() => H.value.chart.grid.labels.yAxis.reverse);
1244
- function ds(e) {
1245
- return us.value ? 1 - e : e;
1244
+ let ds = S(() => H.value.chart.grid.labels.yAxis.reverse);
1245
+ function fs(e) {
1246
+ return ds.value ? 1 - e : e;
1246
1247
  }
1247
- function fs({ ratio: e, yOffset: t = 0, individualHeight: n }) {
1248
- let r = ds(e);
1248
+ function ps({ ratio: e, yOffset: t = 0, individualHeight: n }) {
1249
+ let r = fs(e);
1249
1250
  return Y.value?.bottom - t - n * r;
1250
1251
  }
1251
- function ps({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
1252
- return fs({
1252
+ function ms({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
1253
+ return ps({
1253
1254
  ratio: (e - t) / (n - t || 1),
1254
1255
  yOffset: r,
1255
1256
  individualHeight: i
1256
1257
  });
1257
1258
  }
1258
- let ms = S(() => H.value.chart.grid.labels.xAxis.reverse);
1259
- function hs(e) {
1260
- return ms.value ? 1 - e : e;
1259
+ let hs = S(() => H.value.chart.grid.labels.xAxis.reverse);
1260
+ function gs(e) {
1261
+ return hs.value ? 1 - e : e;
1261
1262
  }
1262
- let gs = S(() => isNaN(ls(ho.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ls(ho.value));
1263
- function _s(e) {
1263
+ let _s = S(() => isNaN(us(go.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * us(go.value));
1264
+ function vs(e) {
1264
1265
  let t = K.value.min, n = K.value.max - t;
1265
1266
  return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ((e - t) / n);
1266
1267
  }
1267
- let vs = S(() => K.value.min <= 0 && K.value.max >= 0 ? _s(0) : K.value.min > 0 ? _s(K.value.min) : _s(K.value.max));
1268
- function ys(e) {
1269
- let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 && po.value >= 0 ? Y.value?.bottom : gs.value;
1270
- return e.value >= 0 ? b(t - e.y <= 0 ? 1e-5 : t - e.y) : b(e.y - gs.value <= 0 ? 1e-5 : e.y - gs.value);
1271
- }
1268
+ let ys = S(() => K.value.min <= 0 && K.value.max >= 0 ? vs(0) : K.value.min > 0 ? vs(K.value.min) : vs(K.value.max));
1272
1269
  function bs(e) {
1270
+ let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 && mo.value >= 0 ? Y.value?.bottom : _s.value;
1271
+ return e.value >= 0 ? b(t - e.y <= 0 ? 1e-5 : t - e.y) : b(e.y - _s.value <= 0 ? 1e-5 : e.y - _s.value);
1272
+ }
1273
+ function xs(e) {
1273
1274
  return e.value >= 0 ? b(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : b(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1274
1275
  }
1275
- let xs = S(() => {
1276
+ let Ss = S(() => {
1276
1277
  let e = Math.max(1, Z.value);
1277
1278
  return {
1278
- bar: Tt(Math.max(1, Y.value.width), e * Math.max(1, vo.value.filter((e) => e.type === "bar" && !I.value.includes(e.id)).length), 1),
1279
- plot: $s.value,
1280
- line: $s.value
1279
+ bar: Tt(Math.max(1, Y.value.width), e * Math.max(1, yo.value.filter((e) => e.type === "bar" && !I.value.includes(e.id)).length), 1),
1280
+ plot: ec.value,
1281
+ line: ec.value
1281
1282
  };
1282
1283
  });
1283
- function Ss() {
1284
- return U.value.useIndividualScale && U.value.isStacked ? xs.value.line - Y.value.width / Z.value * .1 : xs.value.bar;
1285
- }
1286
- function Cs(e) {
1287
- return U.value.useIndividualScale && U.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + xs.value.bar / 2;
1284
+ function Cs() {
1285
+ return U.value.useIndividualScale && U.value.isStacked ? Ss.value.line - Y.value.width / Z.value * .1 : Ss.value.bar;
1288
1286
  }
1289
1287
  function ws(e) {
1288
+ return U.value.useIndividualScale && U.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + Ss.value.bar / 2;
1289
+ }
1290
+ function Ts(e) {
1290
1291
  return e.value >= 0 ? e.y : [
1291
1292
  null,
1292
1293
  void 0,
1293
1294
  NaN,
1294
1295
  Infinity,
1295
1296
  -Infinity
1296
- ].includes(gs.value) ? Y?.bottom.value : gs.value;
1297
+ ].includes(_s.value) ? Y?.bottom.value : _s.value;
1297
1298
  }
1298
- function Ts(e) {
1299
+ function Es(e) {
1299
1300
  return e.value >= 0 ? e.y : [
1300
1301
  null,
1301
1302
  void 0,
@@ -1304,18 +1305,18 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1304
1305
  -Infinity
1305
1306
  ].includes(e.zeroPosition) ? 0 : e.zeroPosition;
1306
1307
  }
1307
- let Es = O(null), Ds = O([]), Os = O(null), ks = S(() => q.value ? [...new Set(bo.value.flatMap((e) => e.series || []).filter((e) => g(e?.x) && g(e?.y)).map((e) => Number(e.x)))].sort((e, t) => Cc({ x: e }) - Cc({ x: t })) : []);
1308
- function As(e) {
1309
- let t = ks.value[e];
1308
+ let Ds = O(null), Os = O([]), ks = O(null), As = S(() => q.value ? [...new Set(xo.value.flatMap((e) => e.series || []).filter((e) => g(e?.x) && g(e?.y)).map((e) => Number(e.x)))].sort((e, t) => wc({ x: e }) - wc({ x: t })) : []);
1309
+ function js(e) {
1310
+ let t = As.value[e];
1310
1311
  if (!g(t)) {
1311
- Ds.value = [], Os.value = null, xa.value = null, aa.value = !1;
1312
+ Os.value = [], ks.value = null, xa.value = null, aa.value = !1;
1312
1313
  return;
1313
1314
  }
1314
- wo(Number(t));
1315
- let n = De(Cc({ x: Number(t) }), Y.value.top + Y.value.height / 2, z.value);
1315
+ To(Number(t));
1316
+ let n = De(wc({ x: Number(t) }), Y.value.top + Y.value.height / 2, z.value);
1316
1317
  n && (Ca.value = n), B.value = e, Sa.value = e, aa.value = !0;
1317
1318
  }
1318
- function js(e) {
1319
+ function Ms(e) {
1319
1320
  let t = z.value;
1320
1321
  if (!t) return null;
1321
1322
  if (t.createSVGPoint && t.getScreenCTM) {
@@ -1343,47 +1344,47 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1343
1344
  ok: !0
1344
1345
  };
1345
1346
  }
1346
- let Ms = 0;
1347
- function Ns(e) {
1348
- Sa.value = null, !ra.value && (Ms && cancelAnimationFrame(Ms), Ms = requestAnimationFrame(() => {
1349
- Ms = 0;
1350
- let t = js(e);
1347
+ let Ns = 0;
1348
+ function Ps(e) {
1349
+ Sa.value = null, !ra.value && (Ns && cancelAnimationFrame(Ns), Ns = requestAnimationFrame(() => {
1350
+ Ns = 0;
1351
+ let t = Ms(e);
1351
1352
  if (!t || !z.value) {
1352
- Ps();
1353
+ Fs();
1353
1354
  return;
1354
1355
  }
1355
1356
  let { left: n, right: r, top: i, bottom: a, width: o } = Y.value;
1356
1357
  if (t.x < n || t.x > r || t.y < i || t.y > a) {
1357
- Ps();
1358
+ Fs();
1358
1359
  return;
1359
1360
  }
1360
1361
  if (q.value) {
1361
- Co(t.x), Hc(!0, B.value ?? 0);
1362
+ wo(t.x), Uc(!0, B.value ?? 0);
1362
1363
  return;
1363
1364
  }
1364
- let s = ac(t.x);
1365
- s == null ? Ps() : Es.value !== s && (Es.value = s, Hc(!0, s));
1365
+ let s = oc(t.x);
1366
+ s == null ? Fs() : Ds.value !== s && (Ds.value = s, Uc(!0, s));
1366
1367
  }));
1367
1368
  }
1368
- function Ps() {
1369
- Ms &&= (cancelAnimationFrame(Ms), 0), Es.value = null, R.value = null, xa.value = null, Hc(!1, null), Ds.value = [], Os.value = null;
1369
+ function Fs() {
1370
+ Ns &&= (cancelAnimationFrame(Ns), 0), Ds.value = null, R.value = null, xa.value = null, Uc(!1, null), Os.value = [], ks.value = null;
1370
1371
  }
1371
- function Fs(e) {
1372
- let t = js(e);
1372
+ function Is(e) {
1373
+ let t = Ms(e);
1373
1374
  if (t && z.value) {
1374
1375
  let { left: e, right: n, top: r, bottom: i, width: a } = Y.value;
1375
1376
  if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
1376
- let e = ac(t.x);
1377
+ let e = oc(t.x);
1377
1378
  if (e != null) {
1378
- Is(e);
1379
+ Ls(e);
1379
1380
  return;
1380
1381
  }
1381
1382
  }
1382
1383
  }
1383
- Es.value != null && Is(Es.value);
1384
+ Ds.value != null && Ls(Ds.value);
1384
1385
  }
1385
- function Is(e) {
1386
- let t = bo.value.map((t) => ({
1386
+ function Ls(e) {
1387
+ let t = xo.value.map((t) => ({
1387
1388
  name: t.name,
1388
1389
  value: [
1389
1390
  null,
@@ -1402,15 +1403,15 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1402
1403
  seriesIndex: e + G.value.start
1403
1404
  });
1404
1405
  }
1405
- function Ls() {
1406
- return yo.value.map((e) => ({
1406
+ function Rs() {
1407
+ return bo.value.map((e) => ({
1407
1408
  values: e.absoluteValues,
1408
1409
  color: e.color,
1409
1410
  name: e.name,
1410
1411
  type: e.type
1411
1412
  }));
1412
1413
  }
1413
- async function Rs({ scale: e = 2 } = {}) {
1414
+ async function zs({ scale: e = 2 } = {}) {
1414
1415
  if (!Li.value) return;
1415
1416
  let { width: t, height: n } = Li.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
1416
1417
  domElement: Li.value,
@@ -1427,44 +1428,44 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1427
1428
  aspectRatio: r
1428
1429
  };
1429
1430
  }
1430
- function zs() {
1431
- I.value.length ? I.value = [] : yo.value.forEach((e) => {
1431
+ function Bs() {
1432
+ I.value.length ? I.value = [] : bo.value.forEach((e) => {
1432
1433
  I.value.push(e.id);
1433
- }), Vs();
1434
+ }), Hs();
1434
1435
  }
1435
- function Bs(e, t) {
1436
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), Hs(t));
1436
+ function Vs(e, t) {
1437
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), Us(t));
1437
1438
  }
1438
- function Vs() {
1439
- ji("selectLegend", bo.value.map((e) => ({
1439
+ function Hs() {
1440
+ ji("selectLegend", xo.value.map((e) => ({
1440
1441
  name: e.name,
1441
1442
  values: e.absoluteValues,
1442
1443
  color: e.color,
1443
1444
  type: e.type
1444
1445
  })));
1445
1446
  }
1446
- function Hs(e) {
1447
+ function Us(e) {
1447
1448
  if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
1448
1449
  else {
1449
- if (I.value.length + 1 === vo.value.length) return;
1450
+ if (I.value.length + 1 === yo.value.length) return;
1450
1451
  I.value.push(e.id);
1451
1452
  }
1452
- Vs(), da.value += 1;
1453
- }
1454
- function Us(e) {
1455
- return yo.value.length ? yo.value.find((t) => t.name === e) || (H.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (H.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1453
+ Hs(), da.value += 1;
1456
1454
  }
1457
1455
  function Ws(e) {
1458
- let t = Us(e);
1459
- t !== null && I.value.includes(t.id) && Hs({ id: t.id });
1456
+ return bo.value.length ? bo.value.find((t) => t.name === e) || (H.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (H.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1460
1457
  }
1461
1458
  function Gs(e) {
1462
- let t = Us(e);
1463
- t !== null && (I.value.includes(t.id) || Hs({ id: t.id }));
1459
+ let t = Ws(e);
1460
+ t !== null && I.value.includes(t.id) && Us({ id: t.id });
1464
1461
  }
1465
- let Ks = S(() => `${H.value.chart.title.text || "Chart visualization"}. ${H.value.chart.title.subtitle.text || ""}`), qs = S(() => ({ linePlot: Z.value > H.value.line.dot.hideAboveMaxSerieLength })), Js = S(() => H.value.chart.userOptions.show && (!H.value.chart.title.show || !H.value.chart.title.text)), Ys = S(() => {
1462
+ function Ks(e) {
1463
+ let t = Ws(e);
1464
+ t !== null && (I.value.includes(t.id) || Us({ id: t.id }));
1465
+ }
1466
+ let qs = S(() => `${H.value.chart.title.text || "Chart visualization"}. ${H.value.chart.title.subtitle.text || ""}`), Js = S(() => ({ linePlot: Z.value > H.value.line.dot.hideAboveMaxSerieLength })), Ys = S(() => H.value.chart.userOptions.show && (!H.value.chart.title.show || !H.value.chart.title.text)), Xs = S(() => {
1466
1467
  if (Array.isArray(H.value.chart.highlightArea)) return H.value.chart.highlightArea.map((e) => {
1467
- let t = Math.min(e.to, Ya.value - 1);
1468
+ let t = Math.min(e.to, Xa.value - 1);
1468
1469
  return {
1469
1470
  ...e,
1470
1471
  span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
@@ -1472,18 +1473,18 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1472
1473
  });
1473
1474
  let e = {
1474
1475
  ...H.value.chart.highlightArea,
1475
- to: Math.min(H.value.chart.highlightArea.to, Ya.value - 1)
1476
+ to: Math.min(H.value.chart.highlightArea.to, Xa.value - 1)
1476
1477
  };
1477
1478
  return [{
1478
1479
  ...e,
1479
1480
  span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1480
1481
  }];
1481
- }), Xs = S(() => Qi.value ? W.value.map((e, t) => ({
1482
+ }), Zs = S(() => Qi.value ? W.value.map((e, t) => ({
1482
1483
  ...e,
1483
- series: Ja(e.series),
1484
+ series: Ya(e.series),
1484
1485
  id: `uniqueId_${t}`,
1485
- color: Te(e.color ? e.color : oo.value[t] ? oo.value[t] : p[t])
1486
- })) : W.value), Zs = S(() => bo.value.map((e) => {
1486
+ color: Te(e.color ? e.color : so.value[t] ? so.value[t] : p[t])
1487
+ })) : W.value), Qs = S(() => xo.value.map((e) => {
1487
1488
  let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1488
1489
  return {
1489
1490
  id: e.id,
@@ -1491,7 +1492,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1491
1492
  color: e.color,
1492
1493
  values: yt(Z.value, t)
1493
1494
  };
1494
- })), Qs = S(() => ({
1495
+ })), $s = S(() => ({
1495
1496
  responsiveBreakpoint: H.value.table.responsiveBreakpoint,
1496
1497
  roundingValues: H.value.table.rounding,
1497
1498
  showAverage: !1,
@@ -1500,7 +1501,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1500
1501
  fontFamily: H.value.chart.fontFamily,
1501
1502
  prefix: H.value.chart.labels.prefix,
1502
1503
  suffix: H.value.chart.labels.suffix,
1503
- colNames: X.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Ic.value(t + G.value.start, H.value.table.timeFormat)),
1504
+ colNames: X.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Lc.value(t + G.value.start, H.value.table.timeFormat)),
1504
1505
  thead: {
1505
1506
  backgroundColor: H.value.table.th.backgroundColor,
1506
1507
  color: H.value.table.th.color,
@@ -1513,42 +1514,42 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1513
1514
  },
1514
1515
  userOptions: { show: !1 },
1515
1516
  sparkline: { animation: { show: !1 } }
1516
- })), $s = S(() => {
1517
+ })), ec = S(() => {
1517
1518
  let e = Math.max(0, Y.value?.width || 0);
1518
1519
  return H.value.chart.grid.position === "middle" ? Tt(e, Math.max(1, Z.value), 1) : Tt(e, Math.max(1, Z.value - 1), 0);
1519
- }), ec = S(() => H.value.chart.grid.position === "middle" ? $s.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : $s.value);
1520
- function tc(e) {
1521
- let t = Y.value?.left || 0;
1522
- return H.value.chart.grid.position === "middle" ? t + $s.value / 2 + $s.value * e : t + $s.value * e;
1523
- }
1520
+ }), tc = S(() => H.value.chart.grid.position === "middle" ? ec.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : ec.value);
1524
1521
  function nc(e) {
1525
1522
  let t = Y.value?.left || 0;
1526
- return H.value.chart.grid.position === "middle" ? t + $s.value * e : Z.value <= 1 ? t : t + $s.value * e - $s.value / 2;
1523
+ return H.value.chart.grid.position === "middle" ? t + ec.value / 2 + ec.value * e : t + ec.value * e;
1527
1524
  }
1528
1525
  function rc(e) {
1529
- return Math.max(Y.value?.left || 0, nc(e));
1526
+ let t = Y.value?.left || 0;
1527
+ return H.value.chart.grid.position === "middle" ? t + ec.value * e : Z.value <= 1 ? t : t + ec.value * e - ec.value / 2;
1530
1528
  }
1531
1529
  function ic(e) {
1532
- let t = Y.value?.left || 0, n = Y.value?.right || 0, r = nc(e), i = r + ec.value;
1533
- return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1530
+ return Math.max(Y.value?.left || 0, rc(e));
1534
1531
  }
1535
1532
  function ac(e) {
1533
+ let t = Y.value?.left || 0, n = Y.value?.right || 0, r = rc(e), i = r + tc.value;
1534
+ return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1535
+ }
1536
+ function oc(e) {
1536
1537
  let t = Y.value?.left || 0, n = Y.value?.right || 0;
1537
1538
  for (let r = 0; r < Z.value; r += 1) {
1538
- let i = Math.max(t, nc(r)), a = Math.min(n, nc(r) + ec.value);
1539
+ let i = Math.max(t, rc(r)), a = Math.min(n, rc(r) + tc.value);
1539
1540
  if (e >= i && e <= a) return r;
1540
1541
  }
1541
1542
  return null;
1542
1543
  }
1543
- function oc(e) {
1544
- let t = Y.value?.left || 0, n = Y.value?.right || 0, r = nc(e), i = r + ec.value;
1544
+ function sc(e) {
1545
+ let t = Y.value?.left || 0, n = Y.value?.right || 0, r = rc(e), i = r + tc.value;
1545
1546
  return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1546
1547
  }
1547
- function sc(e) {
1548
- return Math.max(1e-5, ec.value * e);
1548
+ function cc(e) {
1549
+ return Math.max(1e-5, tc.value * e);
1549
1550
  }
1550
- let cc = S(() => _(yo.value.filter((e) => !I.value.includes(e.id)))), Q = S(() => {
1551
- let e = bt(cc.value, (e) => e.scaleLabel), t = {};
1551
+ let lc = S(() => _(bo.value.filter((e) => !I.value.includes(e.id)))), Q = S(() => {
1552
+ let e = bt(lc.value, (e) => e.scaleLabel), t = {};
1552
1553
  for (let [n, r] of Object.entries(e)) {
1553
1554
  let e = r.flatMap((e) => e.absoluteValues);
1554
1555
  t[n] = {
@@ -1558,19 +1559,19 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1558
1559
  };
1559
1560
  }
1560
1561
  return t;
1561
- }), lc = S(() => {
1562
- let e = vo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1563
- return Y.value.width / Z.value / e - uc.value * e;
1564
- }), uc = S(() => xs.value.line * H.value.bar.periodGap), dc = S(() => Math.max(1e-5, Ss() - (U.value.useIndividualScale && U.value.isStacked ? 0 : uc.value))), fc = S(() => dc.value * Math.min(Math.abs(H.value.bar.innerGap), .95)), pc = S(() => {
1562
+ }), uc = S(() => {
1563
+ let e = yo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1564
+ return Y.value.width / Z.value / e - dc.value * e;
1565
+ }), dc = S(() => Ss.value.line * H.value.bar.periodGap), fc = S(() => Math.max(1e-5, Cs() - (U.value.useIndividualScale && U.value.isStacked ? 0 : dc.value))), pc = S(() => fc.value * Math.min(Math.abs(H.value.bar.innerGap), .95)), mc = S(() => {
1565
1566
  if (!H.value.chart.zoom.minimap.show) return [];
1566
- let e = Xs.value.filter((e) => !I.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1567
+ let e = Zs.value.filter((e) => !I.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1567
1568
  for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
1568
1569
  let r = Math.min(...n);
1569
1570
  return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1570
- }), mc = S(() => H.value.chart.zoom.minimap.show ? Xs.value.map((e) => ({
1571
+ }), hc = S(() => H.value.chart.zoom.minimap.show ? Zs.value.map((e) => ({
1571
1572
  ...e,
1572
1573
  isVisible: !I.value.includes(e.id)
1573
- })) : []), hc = S(() => q.value ? Ds.value.map((e) => ({
1574
+ })) : []), gc = S(() => q.value ? Os.value.map((e) => ({
1574
1575
  slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
1575
1576
  shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
1576
1577
  name: e.datapoint.name,
@@ -1581,7 +1582,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1581
1582
  comments: e.datapoint.comments || [],
1582
1583
  prefix: e.datapoint.prefix || H.value.chart.labels.prefix,
1583
1584
  suffix: e.datapoint.suffix || H.value.chart.labels.suffix
1584
- })) : bo.value.map((e) => ({
1585
+ })) : xo.value.map((e) => ({
1585
1586
  slotAbsoluteIndex: e.slotAbsoluteIndex,
1586
1587
  shape: e.shape || e.type === "bar" ? "square" : "circle",
1587
1588
  name: e.name,
@@ -1591,22 +1592,22 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1591
1592
  comments: e.comments || [],
1592
1593
  prefix: e.prefix || H.value.chart.labels.prefix,
1593
1594
  suffix: e.suffix || H.value.chart.labels.suffix
1594
- }))), gc = S(() => K.value.ticks.map((e) => {
1595
- let t = e >= 0 ? gs.value - Y.value.height * ls(e) : gs.value + Y.value.height * ls(Math.abs(e));
1595
+ }))), _c = S(() => K.value.ticks.map((e) => {
1596
+ let t = e >= 0 ? _s.value - Y.value.height * us(e) : _s.value + Y.value.height * us(Math.abs(e));
1596
1597
  return {
1597
- y: us.value ? Y.value.top + Y.value.bottom - t : t,
1598
+ y: ds.value ? Y.value.top + Y.value.bottom - t : t,
1598
1599
  value: e,
1599
1600
  prefix: H.value.chart.labels.prefix,
1600
1601
  suffix: H.value.chart.labels.suffix
1601
1602
  };
1602
- })), _c = S(() => {
1603
+ })), vc = S(() => {
1603
1604
  let e = H.value.chart.annotations;
1604
1605
  if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
1605
1606
  let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
1606
1607
  if (!t.length) return [];
1607
- let { left: n, right: r } = Y.value, i = gs.value, a = Y.value.height, o = K.value.min, c = K.value.max - o, l = (e) => i - (e - 0) / c * a;
1608
+ let { left: n, right: r } = Y.value, i = _s.value, a = Y.value.height, o = K.value.min, c = K.value.max - o, l = (e) => i - (e - 0) / c * a;
1608
1609
  return t.map((e) => {
1609
- let { yAxis: { yTop: t, yBottom: i, label: a } } = e, o = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = Po(a.fontSize);
1610
+ let { yAxis: { yTop: t, yBottom: i, label: a } } = e, o = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = Fo(a.fontSize);
1610
1611
  ee.font = `${a.fontSize}px sans-serif`;
1611
1612
  let te = ee.measureText(a.text).width, d = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (c != null && u != null ? Math.min(c, u) : c ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, ne;
1612
1613
  ne = a.textAnchor === "middle" ? f - te / 2 - a.padding?.left : a.textAnchor === "end" ? f - te - a.padding?.right : f - a.padding?.left;
@@ -1643,12 +1644,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1643
1644
  };
1644
1645
  });
1645
1646
  });
1646
- function vc(e, t) {
1647
+ function yc(e, t) {
1647
1648
  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;
1648
1649
  return vt(e[t].value) && i && H.value.line.cutNullValues;
1649
1650
  }
1650
- let yc = S(() => {
1651
- let e = vo.value.flatMap((e) => e.series.map((e) => e.x)).filter(Number.isFinite);
1651
+ let bc = S(() => {
1652
+ let e = yo.value.flatMap((e) => e.series.map((e) => e.x)).filter(Number.isFinite);
1652
1653
  if (!e.length) return {
1653
1654
  min: 0,
1654
1655
  max: 1
@@ -1658,15 +1659,15 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1658
1659
  min: t,
1659
1660
  max: t === n ? n + 1 : n
1660
1661
  };
1661
- }), bc = S(() => {
1662
- let e = H.value.chart.grid.labels.xAxis.commonScaleSteps, t = H.value.chart.grid.labels.xAxis.scaleMin, n = H.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 = H.value.chart.grid.labels.xAxis.useNiceScale ? fe(r, i, e) : ue(r, i, e);
1662
+ }), xc = S(() => {
1663
+ let e = H.value.chart.grid.labels.xAxis.commonScaleSteps, t = H.value.chart.grid.labels.xAxis.scaleMin, n = H.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : bc.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : bc.value.max, a = H.value.chart.grid.labels.xAxis.useNiceScale ? fe(r, i, e) : ue(r, i, e);
1663
1664
  if (H.value.chart.grid.position !== "start") return a;
1664
1665
  let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
1665
1666
  return {
1666
1667
  ...a,
1667
1668
  max: a.max + o
1668
1669
  };
1669
- }), xc = S(() => q.value ? (ms.value ? [...bc.value.ticks].reverse() : [...bc.value.ticks]).map((e, t) => ({
1670
+ }), Sc = S(() => q.value ? (hs.value ? [...xc.value.ticks].reverse() : [...xc.value.ticks]).map((e, t) => ({
1670
1671
  id: `continuous_x_label_${t}`,
1671
1672
  text: v(H.value.chart.grid.labels.xAxis.formatter, e, o({
1672
1673
  v: e,
@@ -1678,17 +1679,17 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1678
1679
  seriesIndex: t
1679
1680
  }),
1680
1681
  value: e,
1681
- x: Cc({ x: e }),
1682
+ x: wc({ x: e }),
1682
1683
  index: t
1683
- })) : Wo.value);
1684
- function Sc(e, t) {
1685
- return q.value ? e.x : tc(t);
1684
+ })) : Go.value);
1685
+ function Cc(e, t) {
1686
+ return q.value ? e.x : nc(t);
1686
1687
  }
1687
- function Cc({ x: e }) {
1688
- let t = bc.value.max - bc.value.min || 1, n = hs((e - bc.value.min) / t);
1688
+ function wc({ x: e }) {
1689
+ let t = xc.value.max - xc.value.min || 1, n = gs((e - xc.value.min) / t);
1689
1690
  return Y.value.left + Y.value.width * n;
1690
1691
  }
1691
- let wc = S(() => {
1692
+ let Tc = S(() => {
1692
1693
  let e = W.value.flatMap((e) => e.series || []).filter(xt).map((e) => Number(e.x)).filter(Number.isFinite);
1693
1694
  if (!e.length) return {
1694
1695
  min: 0,
@@ -1699,11 +1700,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1699
1700
  min: t,
1700
1701
  max: t === n ? n + 1 : n
1701
1702
  };
1702
- }), Tc = S(() => q.value ? wc.value.min : 0), Ec = S(() => q.value ? wc.value.max : Ya.value);
1703
- function Dc(e, t) {
1704
- return q.value ? e.x == null || e.y == null ? null : Cc(e) : tc(t);
1703
+ }), Ec = S(() => q.value ? Tc.value.min : 0), Dc = S(() => q.value ? Tc.value.max : Xa.value);
1704
+ function Oc(e, t) {
1705
+ return q.value ? e.x == null || e.y == null ? null : wc(e) : nc(t);
1705
1706
  }
1706
- function Oc({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1707
+ function kc({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1707
1708
  let c = e.scaleSteps || H.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !H.value.chart.grid.labels.yAxis.useNiceScale ? ue : fe, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), ne = d.max + Math.abs(p), m = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = U.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = U.value.isStacked ? r * ae + n * ie : 0, h = U.value.isStacked ? r * e.stackRatio : Y.value.height;
1708
1709
  return {
1709
1710
  scaleSteps: c,
@@ -1719,14 +1720,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1719
1720
  autoScaleZeroPosition: Y.value?.bottom - oe - h * 0 / m
1720
1721
  };
1721
1722
  }
1722
- let kc = S(() => {
1723
- let e = cc.value.filter((e) => [
1723
+ let Ac = S(() => {
1724
+ let e = lc.value.filter((e) => [
1724
1725
  "bar",
1725
1726
  "line",
1726
1727
  "plot"
1727
1728
  ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1728
1729
  return e.filter((e) => e.type === "bar").map((e, r) => {
1729
- Zo(e);
1730
+ Qo(e);
1730
1731
  let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
1731
1732
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
1732
1733
  valueMin: a,
@@ -1734,7 +1735,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1734
1735
  }, c = {
1735
1736
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1736
1737
  min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
1737
- }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: ne, autoScaleZeroPosition: m } = Oc({
1738
+ }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: ne, autoScaleZeroPosition: m } = kc({
1738
1739
  datapoint: e,
1739
1740
  totalSeries: t,
1740
1741
  gap: n,
@@ -1742,13 +1743,13 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1742
1743
  autoScaleValueMin: s.valueMin,
1743
1744
  autoScaleValueMax: s.valueMax,
1744
1745
  individualExtremes: c
1745
- }), re = yo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length, ie = e.series.map((t, n) => {
1746
- let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : ls(t), a = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + xs.value.bar * r + xs.value.bar * n * re - lc.value / 2 - r * uc.value;
1746
+ }), re = bo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length, ie = e.series.map((t, n) => {
1747
+ let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : us(t), a = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + Ss.value.bar * r + Ss.value.bar * n * re - uc.value / 2 - r * dc.value;
1747
1748
  return {
1748
1749
  yOffset: b(f),
1749
1750
  individualHeight: b(p),
1750
1751
  x: b(a),
1751
- y: fs({
1752
+ y: ps({
1752
1753
  ratio: i,
1753
1754
  yOffset: f,
1754
1755
  individualHeight: p
@@ -1759,12 +1760,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1759
1760
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1760
1761
  };
1761
1762
  }), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
1762
- let i = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - xs.value.bar / 2 + xs.value.bar * r + xs.value.bar * n * yo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1763
+ let i = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - Ss.value.bar / 2 + Ss.value.bar * r + Ss.value.bar * n * bo.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1763
1764
  return {
1764
1765
  yOffset: b(f),
1765
1766
  individualHeight: b(p),
1766
1767
  x: b(i),
1767
- y: b(fs({
1768
+ y: b(ps({
1768
1769
  ratio: ae[n] || 0,
1769
1770
  yOffset: b(f),
1770
1771
  individualHeight: b(p)
@@ -1775,7 +1776,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1775
1776
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1776
1777
  };
1777
1778
  }), h = l.ticks.map((t) => ({
1778
- y: ps({
1779
+ y: ms({
1779
1780
  value: t,
1780
1781
  scaleMin: l.min,
1781
1782
  scaleMax: l.max,
@@ -1787,7 +1788,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1787
1788
  suffix: e.suffix || H.value.chart.labels.suffix,
1788
1789
  datapoint: e
1789
1790
  })), se = u.ticks.map((t) => ({
1790
- y: fs({
1791
+ y: ps({
1791
1792
  ratio: (t - u.min) / (u.max - u.min || 1),
1792
1793
  yOffset: f,
1793
1794
  individualHeight: p
@@ -1797,7 +1798,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1797
1798
  suffix: e.suffix || H.value.chart.labels.suffix,
1798
1799
  datapoint: e
1799
1800
  }));
1800
- return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : ne, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1801
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : ne, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = lc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1801
1802
  ...e,
1802
1803
  yOffset: f,
1803
1804
  autoScaleYLabels: se,
@@ -1811,13 +1812,13 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1811
1812
  };
1812
1813
  });
1813
1814
  }), $ = S(() => {
1814
- let e = cc.value.filter((e) => [
1815
+ let e = lc.value.filter((e) => [
1815
1816
  "bar",
1816
1817
  "line",
1817
1818
  "plot"
1818
1819
  ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, a = Y.value.height - r;
1819
1820
  return e.filter((e) => e.type === "line").map((e, r) => {
1820
- Zo(e);
1821
+ Qo(e);
1821
1822
  let o = Q.value[e.scaleLabel].min, s = Q.value[e.scaleLabel].max, c = {
1822
1823
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - o) / (s - o)),
1823
1824
  valueMin: o,
@@ -1825,7 +1826,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1825
1826
  }, u = {
1826
1827
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1827
1828
  min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
1828
- }, { individualScale: d, autoScaleSteps: p, individualZero: ne, individualMax: m, autoScaleMax: ie, yOffset: oe, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: g } = Oc({
1829
+ }, { individualScale: d, autoScaleSteps: p, individualZero: ne, individualMax: m, autoScaleMax: ie, yOffset: oe, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: g } = kc({
1829
1830
  datapoint: e,
1830
1831
  totalSeries: t,
1831
1832
  gap: n,
@@ -1841,11 +1842,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1841
1842
  value: null,
1842
1843
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1843
1844
  };
1844
- let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(ne)) / m : ls(_o(t));
1845
+ let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(ne)) / m : us(vo(t));
1845
1846
  return {
1846
1847
  index: n,
1847
- x: b(Dc(t, n)),
1848
- y: b(fs({
1848
+ x: b(Oc(t, n)),
1849
+ y: b(ps({
1849
1850
  ratio: r,
1850
1851
  yOffset: oe,
1851
1852
  individualHeight: h
@@ -1861,14 +1862,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1861
1862
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1862
1863
  } : [void 0, null].includes(e.absoluteValues[n]) ? {
1863
1864
  index: n,
1864
- x: b(Dc(t, n)),
1865
+ x: b(Oc(t, n)),
1865
1866
  y: se,
1866
1867
  value: e.absoluteValues[n],
1867
1868
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1868
1869
  } : {
1869
1870
  index: n,
1870
- x: b(Dc(t, n)),
1871
- y: b(fs({
1871
+ x: b(Oc(t, n)),
1872
+ y: b(ps({
1872
1873
  ratio: ce[n] || 0,
1873
1874
  yOffset: oe,
1874
1875
  individualHeight: h
@@ -1876,7 +1877,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1876
1877
  value: e.absoluteValues[n],
1877
1878
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1878
1879
  }), ue = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, de = H.value.line.cutNullValues ? he(_) : _e(_.filter((e) => e.value !== null)), fe = H.value.line.cutNullValues ? he(le) : _e(le.filter((e) => e.value !== null)), pe = H.value.line.cutNullValues ? ee(_) : l(_.filter((e) => e.value !== null)), v = H.value.line.cutNullValues ? ee(le) : l(le.filter((e) => e.value !== null)), me = i(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null)), ge = i(H.value.line.cutNullValues ? le : le.filter((e) => e.value !== null)), ve = ue ? re(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null), e.dashIndices.map((e) => e - G.value.start)) : [], ye = ue ? te(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null), e.dashIndices.map((e) => e - G.value.start)) : [], y = d.ticks.map((t) => ({
1879
- y: ps({
1880
+ y: ms({
1880
1881
  value: t,
1881
1882
  scaleMin: d.min,
1882
1883
  scaleMax: d.max,
@@ -1888,7 +1889,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1888
1889
  suffix: e.suffix || H.value.chart.labels.suffix,
1889
1890
  datapoint: e
1890
1891
  })), be = p.ticks.map((t) => ({
1891
- y: fs({
1892
+ y: ps({
1892
1893
  ratio: (t - p.min) / (p.max - p.min || 1),
1893
1894
  yOffset: oe,
1894
1895
  individualHeight: h
@@ -1898,8 +1899,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1898
1899
  suffix: e.suffix || H.value.chart.labels.suffix,
1899
1900
  datapoint: e
1900
1901
  }));
1901
- Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? be : y, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? g : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : m, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = oe, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = be, Q.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1902
- let xe = U.value.useIndividualScale ? e.autoScaling ? g : se : co.value, Se = Math.max(Math.max(e.autoScaling ? g : y.at(-1) ? y.at(-1).y : 0, Y.value?.top), xe), we = e.autoScaling ? le : _, Ee = H.value.line.cutNullValues ? we : we.filter((e) => e.value !== null), De = e.absoluteValues.filter((e) => ![
1902
+ Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? be : y, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? g : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : m, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = oe, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = be, Q.value[e.scaleLabel].unique = lc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1903
+ let xe = U.value.useIndividualScale ? e.autoScaling ? g : se : lo.value, Se = Math.max(Math.max(e.autoScaling ? g : y.at(-1) ? y.at(-1).y : 0, Y.value?.top), xe), we = e.autoScaling ? le : _, Ee = H.value.line.cutNullValues ? we : we.filter((e) => e.value !== null), De = e.absoluteValues.filter((e) => ![
1903
1904
  null,
1904
1905
  void 0,
1905
1906
  NaN
@@ -1926,14 +1927,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1926
1927
  groupId: Q.value[e.scaleLabel].groupId
1927
1928
  };
1928
1929
  });
1929
- }), Ac = S(() => {
1930
- let e = cc.value.filter((e) => [
1930
+ }), jc = S(() => {
1931
+ let e = lc.value.filter((e) => [
1931
1932
  "bar",
1932
1933
  "line",
1933
1934
  "plot"
1934
1935
  ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1935
1936
  return e.filter((e) => e.type === "plot").map((e) => {
1936
- Zo(e);
1937
+ Qo(e);
1937
1938
  let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
1938
1939
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
1939
1940
  valueMin: r,
@@ -1941,7 +1942,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1941
1942
  }, s = {
1942
1943
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1943
1944
  min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
1944
- }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: ne } = Oc({
1945
+ }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: ne } = kc({
1945
1946
  datapoint: e,
1946
1947
  totalSeries: t,
1947
1948
  gap: n,
@@ -1958,11 +1959,11 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1958
1959
  value: null,
1959
1960
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1960
1961
  };
1961
- let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : ls(_o(t));
1962
+ let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : us(vo(t));
1962
1963
  return {
1963
1964
  index: n,
1964
- x: b(Dc(t, n)),
1965
- y: b(fs({
1965
+ x: b(Oc(t, n)),
1966
+ y: b(ps({
1966
1967
  ratio: r,
1967
1968
  yOffset: d,
1968
1969
  individualHeight: f
@@ -1978,8 +1979,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1978
1979
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1979
1980
  } : {
1980
1981
  index: n,
1981
- x: b(Dc(t, n)),
1982
- y: b(fs({
1982
+ x: b(Oc(t, n)),
1983
+ y: b(ps({
1983
1984
  ratio: re[n] || 0,
1984
1985
  yOffset: d,
1985
1986
  individualHeight: f
@@ -1987,7 +1988,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1987
1988
  value: e.absoluteValues[n],
1988
1989
  comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1989
1990
  }), ae = c.ticks.map((t) => ({
1990
- y: ps({
1991
+ y: ms({
1991
1992
  value: t,
1992
1993
  scaleMin: c.min,
1993
1994
  scaleMax: c.max,
@@ -1999,7 +2000,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
1999
2000
  suffix: e.suffix || H.value.chart.labels.suffix,
2000
2001
  datapoint: e
2001
2002
  })), oe = l.ticks.map((t) => ({
2002
- y: fs({
2003
+ y: ps({
2003
2004
  ratio: (t - l.min) / (l.max - l.min || 1),
2004
2005
  yOffset: d,
2005
2006
  individualHeight: f
@@ -2009,7 +2010,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2009
2010
  suffix: e.suffix || H.value.chart.labels.suffix,
2010
2011
  datapoint: e
2011
2012
  }));
2012
- return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
2013
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = lc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
2013
2014
  ...e,
2014
2015
  yOffset: d,
2015
2016
  autoScaleYLabels: oe,
@@ -2022,7 +2023,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2022
2023
  groupId: Q.value[e.scaleLabel].groupId
2023
2024
  };
2024
2025
  });
2025
- }), jc = S(() => {
2026
+ }), Mc = S(() => {
2026
2027
  let e = $.value.map((e) => ({
2027
2028
  name: e.name,
2028
2029
  color: e.color,
@@ -2035,7 +2036,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2035
2036
  yOffset: e.yOffset || 0,
2036
2037
  individualHeight: e.individualHeight || Y.value.height,
2037
2038
  autoScaleYLabels: e.autoScaleYLabels
2038
- })), t = kc.value.map((e) => ({
2039
+ })), t = Ac.value.map((e) => ({
2039
2040
  name: e.name,
2040
2041
  color: e.color,
2041
2042
  scale: e.individualScale,
@@ -2046,7 +2047,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2046
2047
  id: e.id,
2047
2048
  yOffset: e.yOffset || 0,
2048
2049
  individualHeight: e.individualHeight || Y.value.height
2049
- })), n = Ac.value.map((e) => ({
2050
+ })), n = jc.value.map((e) => ({
2050
2051
  name: e.name,
2051
2052
  color: e.color,
2052
2053
  scale: e.individualScale,
@@ -2064,7 +2065,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2064
2065
  ], i = r.flatMap((e) => e).length;
2065
2066
  return r.flatMap((e, t) => {
2066
2067
  let n = 0;
2067
- n = U.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + Ao() * t : Y.value?.left / i * (t + 1);
2068
+ n = U.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + jo() * t : Y.value?.left / i * (t + 1);
2068
2069
  let r = U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
2069
2070
  return {
2070
2071
  unique: e.unique,
@@ -2078,7 +2079,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2078
2079
  individualHeight: e.individualHeight,
2079
2080
  x: n,
2080
2081
  yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
2081
- y: ps({
2082
+ y: ms({
2082
2083
  value: t,
2083
2084
  scaleMin: e.scale.min,
2084
2085
  scaleMax: e.scale.max,
@@ -2089,7 +2090,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2089
2090
  }))
2090
2091
  };
2091
2092
  });
2092
- }), Mc = S(() => {
2093
+ }), Nc = S(() => {
2093
2094
  let e = H.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
2094
2095
  if (!t.length) return [];
2095
2096
  let r = [];
@@ -2115,44 +2116,44 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2115
2116
  });
2116
2117
  });
2117
2118
  }), r;
2118
- }), Nc = S(() => ({
2119
+ }), Pc = S(() => ({
2119
2120
  timeLabel: X.value[B.value],
2120
- datapoint: hc.value,
2121
+ datapoint: gc.value,
2121
2122
  seriesIndex: B.value,
2122
- series: yo.value,
2123
- bars: kc.value,
2123
+ series: bo.value,
2124
+ bars: Ac.value,
2124
2125
  lines: $.value,
2125
- plots: Ac.value,
2126
+ plots: jc.value,
2126
2127
  config: H.value
2127
- })), Pc = O({
2128
+ })), Fc = O({
2128
2129
  months: [],
2129
2130
  shortMonths: [],
2130
2131
  days: [],
2131
2132
  shortDays: []
2132
- }), Fc = 0;
2133
+ }), Ic = 0;
2133
2134
  gt(() => {
2134
- let e = ++Fc, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
2135
+ let e = ++Ic, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
2135
2136
  (async () => {
2136
2137
  let n = await ke(t.locale).catch(() => ke("en"));
2137
- e === Fc && (Pc.value = n.data);
2138
+ e === Ic && (Fc.value = n.data);
2138
2139
  })();
2139
2140
  });
2140
- let Ic = S(() => {
2141
+ let Lc = S(() => {
2141
2142
  let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
2142
2143
  useUTC: e.useUTC,
2143
- locale: Pc.value,
2144
+ locale: Fc.value,
2144
2145
  januaryAsYear: e.januaryAsYear
2145
2146
  });
2146
2147
  return (e, n) => {
2147
2148
  let r = H.value.chart.grid.labels.xAxisLabels.values?.[e];
2148
2149
  return r == null ? "" : t.formatDate(new Date(r), n);
2149
2150
  };
2150
- }), Lc = S(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
2151
- text: Ic.value(t, H.value.chart.zoom.timeFormat),
2151
+ }), Rc = S(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
2152
+ text: Lc.value(t, H.value.chart.zoom.timeFormat),
2152
2153
  absoluteIndex: t
2153
- }))), Rc = S(() => {
2154
- let e = "", t = hc.value.map((e) => e.value).filter((e) => de(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = q.value ? { text: v(H.value.chart.grid.labels.xAxis.formatter, Ds.value[0]?.point.raw?.x ?? Ds.value[0]?.point.x, o({
2155
- v: Ds.value[0]?.point.raw?.x ?? Ds.value[0]?.point.x,
2154
+ }))), zc = S(() => {
2155
+ let e = "", t = gc.value.map((e) => e.value).filter((e) => de(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = q.value ? { text: v(H.value.chart.grid.labels.xAxis.formatter, Os.value[0]?.point.raw?.x ?? Os.value[0]?.point.x, o({
2156
+ v: Os.value[0]?.point.raw?.x ?? Os.value[0]?.point.x,
2156
2157
  r: H.value.chart.tooltip.roundingValue
2157
2158
  }), {
2158
2159
  datapoint: null,
@@ -2161,29 +2162,29 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2161
2162
  if (pe(i) && me(() => i({
2162
2163
  absoluteIndex: B.value + G.value.start,
2163
2164
  seriesIndex: B.value,
2164
- datapoint: hc.value,
2165
- series: yo.value,
2166
- bars: kc.value,
2165
+ datapoint: gc.value,
2166
+ series: bo.value,
2167
+ bars: Ac.value,
2167
2168
  lines: $.value,
2168
- plots: Ac.value,
2169
+ plots: jc.value,
2169
2170
  config: H.value,
2170
2171
  dateLabel: n
2171
2172
  }))) return i({
2172
2173
  absoluteIndex: B.value + G.value.start,
2173
2174
  seriesIndex: B.value,
2174
- datapoint: hc.value,
2175
- series: yo.value,
2176
- bars: kc.value,
2175
+ datapoint: gc.value,
2176
+ series: bo.value,
2177
+ bars: Ac.value,
2177
2178
  lines: $.value,
2178
- plots: Ac.value,
2179
+ plots: jc.value,
2179
2180
  config: H.value,
2180
2181
  dateLabel: n
2181
2182
  });
2182
2183
  if (n && n.text && H.value.chart.tooltip.showTimeLabel) {
2183
- let t = Ic.value(B.value + G.value.start, H.value.chart.tooltip.timeFormat);
2184
+ let t = Lc.value(B.value + G.value.start, H.value.chart.tooltip.timeFormat);
2184
2185
  q.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${H.value.chart.tooltip.borderColor}; width:100%">${H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
2185
2186
  }
2186
- return hc.value.forEach((i) => {
2187
+ return gc.value.forEach((i) => {
2187
2188
  if (de(i.value)) {
2188
2189
  let a = "", s = "";
2189
2190
  switch (na.value[i.type]) {
@@ -2358,34 +2359,34 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2358
2359
  })})` : ""}</div>`, H.value.chart.comments.showInTooltip && i.comments.length && i.comments.slice(G.value.start, G.value.end)[B.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${i.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${i.color}">${i.comments.slice(G.value.start, G.value.end)[B.value]}</div>`);
2359
2360
  }
2360
2361
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${H.value.chart.tooltip.color}">${e}</div>`;
2361
- }), zc = S(() => {
2362
- if (vo.value.length === 0) return {
2362
+ }), Bc = S(() => {
2363
+ if (yo.value.length === 0) return {
2363
2364
  head: [],
2364
2365
  body: [],
2365
2366
  config: {},
2366
2367
  columnNames: []
2367
2368
  };
2368
- let e = bo.value.map((e) => ({
2369
+ let e = xo.value.map((e) => ({
2369
2370
  label: e.name,
2370
2371
  color: e.color,
2371
2372
  type: e.type
2372
2373
  })), t = [];
2373
2374
  return X.value.forEach((e, n) => {
2374
- let r = H.value.table.useDefaultTimeFormat ? [e.text] : [Ic.value(n + G.value.start, H.value.table.timeFormat)];
2375
- bo.value.forEach((e) => {
2375
+ let r = H.value.table.useDefaultTimeFormat ? [e.text] : [Lc.value(n + G.value.start, H.value.table.timeFormat)];
2376
+ xo.value.forEach((e) => {
2376
2377
  r.push(vt(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(H.value.table.rounding)) : "");
2377
2378
  }), t.push(r);
2378
2379
  }), {
2379
2380
  head: e,
2380
2381
  body: t
2381
2382
  };
2382
- }), Bc = S(() => {
2383
- let e = H.value.table.showSum, t = [""].concat(bo.value.map((e) => e.name));
2383
+ }), Vc = S(() => {
2384
+ let e = H.value.table.showSum, t = [""].concat(xo.value.map((e) => e.name));
2384
2385
  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>"));
2385
2386
  let n = [];
2386
2387
  for (let t = 0; t < Z.value; t += 1) {
2387
- let r = bo.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
2388
- n.push([H.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : Ic.value(t + G.value.start, H.value.table.timeFormat)].concat(bo.value.map((e) => v(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, o({
2388
+ let r = xo.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
2389
+ n.push([H.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : Lc.value(t + G.value.start, H.value.table.timeFormat)].concat(xo.value.map((e) => v(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, o({
2389
2390
  p: e.prefix || H.value.chart.labels.prefix,
2390
2391
  v: e.absoluteValues[t] ?? 0,
2391
2392
  s: e.suffix || H.value.chart.labels.suffix,
@@ -2404,7 +2405,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2404
2405
  outline: H.value.table.td.outline
2405
2406
  },
2406
2407
  breakpoint: H.value.table.responsiveBreakpoint
2407
- }, i = [H.value.table.columnNames.period].concat(bo.value.map((e) => e.name), H.value.table.columnNames.total);
2408
+ }, i = [H.value.table.columnNames.period].concat(xo.value.map((e) => e.name), H.value.table.columnNames.total);
2408
2409
  return {
2409
2410
  head: t,
2410
2411
  body: n,
@@ -2412,21 +2413,21 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2412
2413
  colNames: i
2413
2414
  };
2414
2415
  });
2415
- function Vc(e = null) {
2416
+ function Hc(e = null) {
2416
2417
  let t = [
2417
2418
  [H.value.chart.title.text],
2418
2419
  [H.value.chart.title.subtitle.text],
2419
2420
  [""]
2420
- ], n = ["", ...zc.value.head.map((e) => e.label)], r = zc.value.body, i = ie(t.concat([n]).concat(r));
2421
+ ], n = ["", ...Bc.value.head.map((e) => e.label)], r = Bc.value.body, i = ie(t.concat([n]).concat(r));
2421
2422
  e ? e(i) : u({
2422
2423
  csvContent: i,
2423
2424
  title: H.value.chart.title.text || "vue-ui-xy"
2424
2425
  });
2425
2426
  }
2426
- function Hc(e, t = null) {
2427
- if (xo.value) return;
2427
+ function Uc(e, t = null) {
2428
+ if (So.value) return;
2428
2429
  aa.value = e;
2429
- let n = bo.value.map((e) => ({
2430
+ let n = xo.value.map((e) => ({
2430
2431
  name: e.name,
2431
2432
  value: [
2432
2433
  null,
@@ -2444,21 +2445,21 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2444
2445
  seriesIndex: t + G.value.start
2445
2446
  }));
2446
2447
  }
2447
- function Uc() {
2448
+ function Wc() {
2448
2449
  U.value.showTable = !U.value.showTable;
2449
2450
  }
2450
- function Wc() {
2451
+ function Gc() {
2451
2452
  U.value.dataLabels.show = !U.value.dataLabels.show;
2452
2453
  }
2453
- function Gc() {
2454
+ function Kc() {
2454
2455
  U.value.showTooltip = !U.value.showTooltip;
2455
2456
  }
2456
- function Kc(e) {
2457
+ function qc(e) {
2457
2458
  ia.value = e, sa.value += 1;
2458
2459
  }
2459
- function qc() {
2460
+ function Jc() {
2460
2461
  if (!H.value.responsiveProportionalSizing) {
2461
- V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, Ia.value.plot = H.value.plot.radius, Ia.value.line = H.value.line.radius;
2462
+ V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, Ia.value.plot = H.value.plot.radius, Ia.value.line = H.value.line.radius, Ia.value.selectedLine = H.value.line.dot.selectedRadius;
2462
2463
  return;
2463
2464
  }
2464
2465
  V.value.dataLabels = h({
@@ -2496,58 +2497,64 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2496
2497
  adjuster: 800,
2497
2498
  source: H.value.line.radius,
2498
2499
  threshold: 1,
2499
- fallback: 1
2500
+ fallback: 0
2501
+ }), Ia.value.selectedLine = h({
2502
+ relator: F.value,
2503
+ adjuster: 800,
2504
+ source: H.value.line.dot.selectedRadius,
2505
+ threshold: 1,
2506
+ fallback: 0
2500
2507
  });
2501
2508
  }
2502
- function Jc() {
2509
+ function Yc() {
2503
2510
  if (oe(N.dataset) ? (se({
2504
2511
  componentName: "VueUiXy",
2505
2512
  type: "dataset",
2506
- debug: Ha.value
2507
- }), Ka.value = !0) : N.dataset.forEach((e, t) => {
2513
+ debug: Ua.value
2514
+ }), qa.value = !0) : N.dataset.forEach((e, t) => {
2508
2515
  [null, void 0].includes(e.name) && (se({
2509
2516
  componentName: "VueUiXy",
2510
2517
  type: "datasetSerieAttribute",
2511
2518
  property: "name (string)",
2512
2519
  index: t,
2513
- debug: Ha.value
2514
- }), Ka.value = !0);
2515
- }), Ha.value && N.dataset.forEach((e) => {
2520
+ debug: Ua.value
2521
+ }), qa.value = !0);
2522
+ }), Ua.value && N.dataset.forEach((e) => {
2516
2523
  e.series.forEach((t, n) => {
2517
2524
  de(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.`);
2518
2525
  });
2519
- }), oe(N.dataset) || (Ka.value = H.value.loading), fa.value = H.value.chart.userOptions.showOnChartHover, pa.value = H.value.chart.userOptions.keepStateOnChartLeave, ma.value = !H.value.chart.userOptions.showOnChartHover, Va(), H.value.responsive) {
2526
+ }), oe(N.dataset) || (qa.value = H.value.loading), fa.value = H.value.chart.userOptions.showOnChartHover, pa.value = H.value.chart.userOptions.keepStateOnChartLeave, ma.value = !H.value.chart.userOptions.showOnChartHover, Ha(), H.value.responsive) {
2520
2527
  let e = Li.value.parentNode;
2521
2528
  Yi.value && (Yi.value.unobserve(Xi.value), Yi.value.disconnect());
2522
2529
  let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2523
2530
  H.value.chart.title.show && Ri.value && (r = Ri.value, i = r.getBoundingClientRect().height);
2524
2531
  let a = null, o = 0;
2525
- H.value.chart.zoom.show && Ya.value > 6 && za.value && zi.value && zi.value.$el && (a = zi.value.$el, o = a.getBoundingClientRect().height);
2532
+ H.value.chart.zoom.show && Xa.value > 6 && Ba.value && zi.value && zi.value.$el && (a = zi.value.$el, o = a.getBoundingClientRect().height);
2526
2533
  let s = null, c = 0;
2527
2534
  H.value.chart.legend.show && Bi.value && (s = Bi.value, c = s.getBoundingClientRect().height);
2528
2535
  let l = 0;
2529
2536
  Vi.value && (l = Vi.value.getBoundingClientRect().height);
2530
2537
  let u = 0;
2531
- Hi.value && (u = Hi.value.getBoundingClientRect().height), $i.value = t - i - c - o - l - u - 12, F.value = n, ea.value = `0 0 ${F.value < 0 ? 10 : F.value} ${$i.value < 0 ? 10 : $i.value}`, qc();
2538
+ Hi.value && (u = Hi.value.getBoundingClientRect().height), $i.value = t - i - c - o - l - u - 12, F.value = n, ea.value = `0 0 ${F.value < 0 ? 10 : F.value} ${$i.value < 0 ? 10 : $i.value}`, Jc();
2532
2539
  let ee = new ResizeObserver((e) => {
2533
2540
  for (let t of e) i = H.value.chart.title.show && Ri.value ? Ri.value.getBoundingClientRect().height : 0, o = zi.value && zi.value.$el ? zi.value.$el.getBoundingClientRect().height : 0, c = Bi.value ? Bi.value.getBoundingClientRect().height : 0, l = Vi.value ? Vi.value.getBoundingClientRect().height : 0, u = Hi.value ? Hi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2534
- $i.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, ea.value = `0 0 ${F.value < 0 ? 10 : F.value} ${$i.value < 0 ? 10 : $i.value}`, qc(), ka(), ja();
2541
+ $i.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, ea.value = `0 0 ${F.value < 0 ? 10 : F.value} ${$i.value < 0 ? 10 : $i.value}`, Jc(), ka(), ja();
2535
2542
  });
2536
2543
  });
2537
2544
  Yi.value = ee, Xi.value = e, ee.observe(e);
2538
- } else $i.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, Ia.value.plot = H.value.plot.radius, Ia.value.line = H.value.line.radius, ea.value = `0 0 ${F.value} ${$i.value}`;
2545
+ } else $i.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, Ia.value.plot = H.value.plot.radius, Ia.value.line = H.value.line.radius, Ia.value.selectedLine = H.value.line.dot.selectedRadius, ea.value = `0 0 ${F.value} ${$i.value}`;
2539
2546
  ka(), ja();
2540
2547
  }
2541
- function Yc(e) {
2548
+ function Xc(e) {
2542
2549
  ta.value = {
2543
2550
  x: e.clientX,
2544
2551
  y: e.clientY
2545
2552
  };
2546
2553
  }
2547
2554
  ct(() => {
2548
- Jc(), rs(), document.addEventListener("mousemove", Yc, { passive: !0 }), document.addEventListener("scroll", Fo, { passive: !0 });
2555
+ Yc(), is(), document.addEventListener("mousemove", Xc, { passive: !0 }), document.addEventListener("scroll", Io, { passive: !0 });
2549
2556
  }), st(() => {
2550
- document.removeEventListener("scroll", Fo, { passive: !0 }), document.removeEventListener("mousemove", Yc, { passive: !0 }), Yi.value &&= (Yi.value.unobserve(Xi.value), Yi.value.disconnect(), null);
2557
+ document.removeEventListener("scroll", Io, { passive: !0 }), document.removeEventListener("mousemove", Xc, { passive: !0 }), Yi.value &&= (Yi.value.unobserve(Xi.value), Yi.value.disconnect(), null);
2551
2558
  }), ze({
2552
2559
  timeLabelsEls: Ki,
2553
2560
  timeLabels: X,
@@ -2568,35 +2575,35 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2568
2575
  "autoRotate",
2569
2576
  "enable"
2570
2577
  ],
2571
- isAutoSize: ao,
2578
+ isAutoSize: oo,
2572
2579
  height: $i,
2573
2580
  width: F,
2574
2581
  rotation: H.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2575
2582
  });
2576
- let Xc = O(!1), Zc = O(null), Qc = O(200), $c = S(() => B.value ?? R.value ?? 0), el = S(() => {
2583
+ let Zc = O(!1), Qc = O(null), $c = O(200), el = S(() => B.value ?? R.value ?? 0), tl = S(() => {
2577
2584
  if (!q.value) return null;
2578
2585
  if (g(xa.value)) return Number(xa.value);
2579
- let e = Ds.value[0];
2586
+ let e = Os.value[0];
2580
2587
  return g(e?.point?.x) ? Number(e.point.x) : null;
2581
2588
  });
2582
- function tl() {
2583
- let e = Math.ceil(Qc.value || 200);
2589
+ function nl() {
2590
+ let e = Math.ceil($c.value || 200);
2584
2591
  return Math.min(Math.max(e, 1), 200);
2585
2592
  }
2586
- function nl() {
2587
- let e = tl(), t = (q.value && g(el.value) ? Cc({ x: el.value }) : tc($c.value)) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
2593
+ function rl() {
2594
+ let e = nl(), t = (q.value && g(tl.value) ? wc({ x: tl.value }) : nc(el.value)) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
2588
2595
  return b(Math.max(n, Math.min(t, r)));
2589
2596
  }
2590
2597
  ct(() => {
2591
2598
  let e = null, t = null, n = (e) => {
2592
2599
  cancelAnimationFrame(t), t = requestAnimationFrame(() => {
2593
- Qc.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2600
+ $c.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2594
2601
  });
2595
2602
  }, r = new ResizeObserver((t) => {
2596
2603
  let r = t.find((t) => t.target === e) || t[0];
2597
2604
  r && n(r.contentRect.width || 200);
2598
2605
  }), i = gt((t) => {
2599
- let i = Zc.value;
2606
+ let i = Qc.value;
2600
2607
  e && e !== i && (r.unobserve(e), e = null), i && i !== e && (it(() => {
2601
2608
  i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
2602
2609
  }), r.observe(i), e = i), t(() => {
@@ -2609,26 +2616,26 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2609
2616
  } catch {}
2610
2617
  });
2611
2618
  });
2612
- let rl = S(() => {
2619
+ let il = S(() => {
2613
2620
  if (q.value) {
2614
- if (!Number.isFinite(Number(el.value))) return "";
2621
+ if (!Number.isFinite(Number(tl.value))) return "";
2615
2622
  } else if ([null, void 0].includes(B.value) && [null, void 0].includes(R.value)) return "";
2616
2623
  let e = (B.value == null ? 0 : B.value) || (R.value == null ? 0 : R.value), t = H.value.chart.timeTag.customFormat;
2617
- if (Xc.value = !1, q.value) {
2618
- let e = el.value;
2624
+ if (Zc.value = !1, q.value) {
2625
+ let e = tl.value;
2619
2626
  if (pe(t)) try {
2620
2627
  let n = t({
2621
2628
  absoluteIndex: e,
2622
2629
  seriesIndex: e,
2623
- datapoint: hc.value,
2624
- bars: kc.value,
2630
+ datapoint: gc.value,
2631
+ bars: Ac.value,
2625
2632
  lines: $.value,
2626
- plots: Ac.value,
2633
+ plots: jc.value,
2627
2634
  config: H.value
2628
2635
  });
2629
- if (typeof n == "string") return Xc.value = !0, n;
2636
+ if (typeof n == "string") return Zc.value = !0, n;
2630
2637
  } catch {
2631
- console.warn("Custom format cannot be applied on timeTag."), Xc.value = !1;
2638
+ console.warn("Custom format cannot be applied on timeTag."), Zc.value = !1;
2632
2639
  }
2633
2640
  return o({
2634
2641
  v: e,
@@ -2639,19 +2646,19 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2639
2646
  let n = t({
2640
2647
  absoluteIndex: e + G.value.start,
2641
2648
  seriesIndex: e,
2642
- datapoint: hc.value,
2643
- bars: kc.value,
2649
+ datapoint: gc.value,
2650
+ bars: Ac.value,
2644
2651
  lines: $.value,
2645
- plots: Ac.value,
2652
+ plots: jc.value,
2646
2653
  config: H.value
2647
2654
  });
2648
- if (typeof n == "string") return Xc.value = !0, n;
2655
+ if (typeof n == "string") return Zc.value = !0, n;
2649
2656
  } catch {
2650
- console.warn("Custom format cannot be applied on timeTag."), Xc.value = !1;
2657
+ console.warn("Custom format cannot be applied on timeTag."), Zc.value = !1;
2651
2658
  }
2652
- if (!Xc.value) return [null, void 0].includes(X.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Ic.value(e + G.value.start, H.value.chart.timeTag.timeFormat) : X.value[e].text;
2659
+ if (!Zc.value) return [null, void 0].includes(X.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Lc.value(e + G.value.start, H.value.chart.timeTag.timeFormat) : X.value[e].text;
2653
2660
  });
2654
- function il({ serie: e, plot: n, type: r }) {
2661
+ function al({ serie: e, plot: n, type: r }) {
2655
2662
  if (!vt(n.value)) return "";
2656
2663
  let i = o({
2657
2664
  p: e.prefix || H.value.chart.labels.prefix,
@@ -2673,40 +2680,40 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2673
2680
  y: 0
2674
2681
  });
2675
2682
  }
2676
- function al({ plot: e }) {
2677
- let t = H.value.bar.labels.offsetY, n = Math.abs(bs(e)), r = e.value < 0, i = {
2678
- x: (U.value.useIndividualScale && U.value.isStacked ? e.x + xs.value.line / 2 : Cs(e) + Ss() / 2 - uc.value / 2) + H.value.bar.labels.offsetX,
2683
+ function ol({ plot: e }) {
2684
+ let t = H.value.bar.labels.offsetY, n = Math.abs(xs(e)), r = e.value < 0, i = {
2685
+ x: (U.value.useIndividualScale && U.value.isStacked ? e.x + Ss.value.line / 2 : ws(e) + Cs() / 2 - dc.value / 2) + H.value.bar.labels.offsetX,
2679
2686
  y: b(e.y) + (H.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
2680
2687
  };
2681
2688
  return `translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`;
2682
2689
  }
2683
- function ol({ plot: e, type: t }) {
2690
+ function sl({ plot: e, type: t }) {
2684
2691
  let n = H.value[t].labels.offsetY, r = {
2685
2692
  x: e.x + H.value[t].labels.offsetX,
2686
2693
  y: b(e.y) + (H.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
2687
2694
  };
2688
2695
  return `translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`;
2689
2696
  }
2690
- function sl({ plot: e, type: t }) {
2697
+ function cl({ plot: e, type: t }) {
2691
2698
  if (H.value[t].labels.textAnchor != null) return H.value[t].labels.textAnchor;
2692
2699
  let n = e.value >= 0;
2693
2700
  return H.value[t].labels.rotation === 0 ? "middle" : H.value[t].labels.alwaysOnTop || n ? "start" : "end";
2694
2701
  }
2695
- let cl = S(() => q.value ? g(xa.value) ? Cc({ x: Number(xa.value) }) : g(Os.value) ? Os.value : null : tc((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value))), ll = S(() => H.value.chart.highlighter.crosshairs.show && Yo.value), ul = S(() => [
2702
+ let ll = S(() => q.value ? g(xa.value) ? wc({ x: Number(xa.value) }) : g(ks.value) ? ks.value : null : nc((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value))), ul = S(() => H.value.chart.highlighter.crosshairs.show && Xo.value), dl = S(() => [
2696
2703
  ...$.value,
2697
- ...Ac.value,
2698
- ...kc.value
2699
- ].flatMap((e) => (e.plots || []).filter((t, n) => pl(e, t, n)).filter((e) => vt(e.value)).map((t) => ({
2704
+ ...jc.value,
2705
+ ...Ac.value
2706
+ ].flatMap((e) => (e.plots || []).filter((t, n) => ml(e, t, n)).filter((e) => vt(e.value)).map((t) => ({
2700
2707
  ...t,
2701
2708
  serie: e,
2702
2709
  x: b(t.x),
2703
2710
  y: b(t.y)
2704
- })))), dl = S(() => {
2705
- if (!ll.value) return null;
2711
+ })))), fl = S(() => {
2712
+ if (!ul.value) return null;
2706
2713
  if (q.value) {
2707
- let e = Ds.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
2714
+ let e = Os.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
2708
2715
  return g(t) ? {
2709
- x: cl.value,
2716
+ x: ll.value,
2710
2717
  text: v(H.value.chart.grid.labels.xAxis.formatter, t, o({
2711
2718
  v: t,
2712
2719
  r: H.value.chart.tooltip.roundingValue
@@ -2715,60 +2722,60 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2715
2722
  }
2716
2723
  let e = B.value === null ? R.value : B.value;
2717
2724
  return e == null ? null : {
2718
- x: tc(e),
2725
+ x: nc(e),
2719
2726
  text: X.value[e]?.text ?? ""
2720
2727
  };
2721
2728
  });
2722
- function fl(e) {
2729
+ function pl(e) {
2723
2730
  return H.value.chart.grid.labels.yAxis.position === "right" ? Y.value.right : Y.value.left;
2724
2731
  }
2725
- function pl(e, t, n) {
2726
- return q.value ? Ds.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : B.value !== null && B.value === n || R.value !== null && R.value === n;
2732
+ function ml(e, t, n) {
2733
+ return q.value ? Os.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : B.value !== null && B.value === n || R.value !== null && R.value === n;
2727
2734
  }
2728
2735
  ht(() => N.dataset, (e) => {
2729
- if (Array.isArray(e) && e.length > 0 && (Ka.value = !1), H.value.chart.zoom.keepState) {
2730
- if (Ya.value = Math.max(0, ...W.value.map((e) => Ja(e.series).length)), Ya.value > 0) {
2736
+ if (Array.isArray(e) && e.length > 0 && (qa.value = !1), H.value.chart.zoom.keepState) {
2737
+ if (Xa.value = Math.max(0, ...W.value.map((e) => Ya(e.series).length)), Xa.value > 0) {
2731
2738
  let e = G.value.start, t = G.value.end;
2732
- if (!es.value || e === 0 && t === 0) rs();
2739
+ if (!ts.value || e === 0 && t === 0) is();
2733
2740
  else {
2734
- let n = Math.max(0, Math.min(e, Ya.value - 1)), r = Math.max(n + 1, Math.min(t, Ya.value));
2741
+ let n = Math.max(0, Math.min(e, Xa.value - 1)), r = Math.max(n + 1, Math.min(t, Xa.value));
2735
2742
  G.value = {
2736
2743
  start: n,
2737
2744
  end: r
2738
- }, Xa.value = {
2745
+ }, Za.value = {
2739
2746
  start: n,
2740
2747
  end: r
2741
- }, ts.value = 0, ns.value = Ya.value;
2748
+ }, ns.value = 0, rs.value = Xa.value;
2742
2749
  }
2743
2750
  }
2744
- } else Ya.value = Math.max(...W.value.map((e) => Ja(e.series).length)), G.value = {
2751
+ } else Xa.value = Math.max(...W.value.map((e) => Ya(e.series).length)), G.value = {
2745
2752
  start: 0,
2746
- end: Ya.value
2753
+ end: Xa.value
2747
2754
  };
2748
- Zi.value += 1, da.value += 1, ka(), ja(), $a();
2755
+ Zi.value += 1, da.value += 1, ka(), ja(), eo();
2749
2756
  }, { deep: !0 }), ht(() => N.config, (e) => {
2750
- Ga.value || (H.value = La()), Jc(), la.value += 1, ca.value += 1, Va(), ka(), ja(), H.value.chart.zoom.keepState && (Ya.value = Math.max(0, ...W.value.map((e) => Ja(e.series).length)), Ya.value > 0 && (!es.value || G.value.start === 0 && G.value.end === 0) && rs()), $a();
2757
+ Ka.value || (H.value = Ra()), Yc(), la.value += 1, ca.value += 1, Ha(), ka(), ja(), H.value.chart.zoom.keepState && (Xa.value = Math.max(0, ...W.value.map((e) => Ya(e.series).length)), Xa.value > 0 && (!ts.value || G.value.start === 0 && G.value.end === 0) && is()), eo();
2751
2758
  }, { deep: !0 });
2752
- let ml = O(!1);
2753
- function hl() {
2759
+ let hl = O(!1);
2760
+ function gl() {
2754
2761
  let e = Li.value?.parentNode;
2755
2762
  if (!e) {
2756
- ml.value = !1;
2763
+ hl.value = !1;
2757
2764
  return;
2758
2765
  }
2759
2766
  let t = e.getBoundingClientRect();
2760
- ml.value = t.width > 2 && t.height > 2;
2767
+ hl.value = t.width > 2 && t.height > 2;
2761
2768
  }
2762
2769
  ct(() => {
2763
- hl();
2770
+ gl();
2764
2771
  let e = new ResizeObserver(() => {
2765
- hl(), ml.value && (Jc(), $a(), H.value.chart.zoom.keepState || rs());
2772
+ gl(), hl.value && (Yc(), eo(), H.value.chart.zoom.keepState || is());
2766
2773
  });
2767
2774
  Li.value?.parentNode && e.observe(Li.value.parentNode);
2768
2775
  }), ht(H, () => {
2769
- Va();
2776
+ Ha();
2770
2777
  }, { immediate: !0 });
2771
- let gl = S(() => {
2778
+ let _l = S(() => {
2772
2779
  let e = H.value.table.useDialog && !H.value.showTable, t = U.value.showTable;
2773
2780
  return {
2774
2781
  component: e ? Ai : Ke,
@@ -2801,37 +2808,37 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2801
2808
  ht(() => U.value.showTable, (e) => {
2802
2809
  H.value.showTable || (e && H.value.table.useDialog && va.value ? va.value.open() : va.value && va.value.close && va.value.close());
2803
2810
  });
2804
- function _l() {
2811
+ function vl() {
2805
2812
  U.value.showTable = !1, Ji.value && Ji.value.setTableIconState(!1);
2806
2813
  }
2807
- let vl = S(() => yo.value.map((e) => ({
2814
+ let yl = S(() => bo.value.map((e) => ({
2808
2815
  shape: e.type === "bar" ? "square" : e.shape ?? "circle",
2809
2816
  color: e.color,
2810
2817
  name: e.name
2811
- }))), yl = S(() => H.value.chart.backgroundColor), bl = S(() => H.value.chart.legend), { exportSvg: xl, getSvg: Sl } = Fe({
2818
+ }))), bl = S(() => H.value.chart.backgroundColor), xl = S(() => H.value.chart.legend), { exportSvg: Sl, getSvg: Cl } = Fe({
2812
2819
  svg: z,
2813
2820
  title: S(() => H.value.chart.title),
2814
- legend: bl,
2815
- legendItems: vl,
2816
- backgroundColor: yl
2821
+ legend: xl,
2822
+ legendItems: yl,
2823
+ backgroundColor: bl
2817
2824
  });
2818
- async function Cl({ isCb: e }) {
2825
+ async function wl({ isCb: e }) {
2819
2826
  ba.value = !0, await it();
2820
2827
  try {
2821
2828
  if (e) {
2822
- let { blob: e, url: t, text: n, dataUrl: r } = await Sl();
2829
+ let { blob: e, url: t, text: n, dataUrl: r } = await Cl();
2823
2830
  await Promise.resolve(H.value.chart.userOptions.callbacks.svg({
2824
2831
  blob: e,
2825
2832
  url: t,
2826
2833
  text: n,
2827
2834
  dataUrl: r
2828
2835
  }));
2829
- } else await Promise.resolve(xl());
2836
+ } else await Promise.resolve(Sl());
2830
2837
  } finally {
2831
2838
  ba.value = !1;
2832
2839
  }
2833
2840
  }
2834
- function wl(e) {
2841
+ function Tl(e) {
2835
2842
  if (e?.stage === "start") {
2836
2843
  ya.value = !0;
2837
2844
  return;
@@ -2840,9 +2847,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2840
2847
  ya.value = !1;
2841
2848
  return;
2842
2849
  }
2843
- io();
2850
+ ao();
2844
2851
  }
2845
- async function Tl() {
2852
+ async function El() {
2846
2853
  if (ji("copyAlt", {
2847
2854
  config: {
2848
2855
  ...H.value,
@@ -2850,8 +2857,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2850
2857
  },
2851
2858
  dataset: {
2852
2859
  lines: $.value,
2853
- bars: kc.value,
2854
- plots: Ac.value
2860
+ bars: Ac.value,
2861
+ plots: jc.value
2855
2862
  }
2856
2863
  }), !H.value.chart.userOptions.callbacks.altCopy) {
2857
2864
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
@@ -2864,86 +2871,86 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2864
2871
  },
2865
2872
  dataset: {
2866
2873
  lines: $.value,
2867
- bars: kc.value,
2868
- plots: Ac.value
2874
+ bars: Ac.value,
2875
+ plots: jc.value
2869
2876
  }
2870
2877
  }));
2871
2878
  }
2872
- let El = O(!1);
2873
- function Dl() {
2874
- G.value.end > G.value.start && (Sa.value = null), Lo.value = !0, El.value = !0;
2875
- }
2879
+ let Dl = O(!1);
2876
2880
  function Ol() {
2877
- Sa.value = null, Ps(), El.value = !1, Lo.value = !1;
2881
+ G.value.end > G.value.start && (Sa.value = null), Ro.value = !0, Dl.value = !0;
2878
2882
  }
2879
- function kl(e) {
2883
+ function kl() {
2884
+ Sa.value = null, Fs(), Dl.value = !1, Ro.value = !1;
2885
+ }
2886
+ function Al(e) {
2880
2887
  if (!z.value || ra.value || document.activeElement !== z.value) return;
2881
2888
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
2882
2889
  if (!t && !n || !G.value.end && G.value.end !== 0) return;
2883
2890
  let r = G.value.end - G.value.start;
2884
2891
  if (r <= 0) return;
2885
2892
  if (e.preventDefault(), e.stopPropagation(), q.value) {
2886
- let e = ks.value.length;
2893
+ let e = As.value.length;
2887
2894
  if (!e) return;
2888
2895
  let r = Sa.value;
2889
- 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, As(r);
2896
+ 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, js(r);
2890
2897
  return;
2891
2898
  }
2892
- let i = Sa.value, a = Es.value;
2893
- 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, Sa.value = i, Al(i), Hc(!0, i);
2899
+ let i = Sa.value, a = Ds.value;
2900
+ 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, Sa.value = i, jl(i), Uc(!0, i);
2894
2901
  }
2895
- function Al(e) {
2902
+ function jl(e) {
2896
2903
  let t = G.value.end - G.value.start;
2897
2904
  if (t <= 0) return;
2898
2905
  let n = Y.value.width / t, r = De(Y.value.left + n * e + n / 2, Y.value.top + Y.value.height / 2, z.value);
2899
2906
  r && (Ca.value = r);
2900
2907
  }
2901
- let jl = S(() => {
2902
- if (!Bc.value) return null;
2903
- let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(bo.value.map((e) => e.name));
2908
+ let Ml = S(() => {
2909
+ if (!Vc.value) return null;
2910
+ let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(xo.value.map((e) => e.name));
2904
2911
  e && (t = t.concat(H.value.table.columnNames.total));
2905
- let n = Bc.value.body.slice(G.value.start, G.value.end);
2912
+ let n = Vc.value.body.slice(G.value.start, G.value.end);
2906
2913
  return {
2907
2914
  headers: t,
2908
2915
  rows: n
2909
2916
  };
2910
2917
  });
2911
2918
  return We({
2912
- getData: Ls,
2913
- getImage: Rs,
2914
- generatePdf: ro,
2915
- generateImage: io,
2916
- generateSvg: Cl,
2917
- generateCsv: Vc,
2918
- hideSeries: Gs,
2919
- showSeries: Ws,
2920
- toggleStack: Xo,
2921
- toggleTable: Uc,
2922
- toggleLabels: Wc,
2923
- toggleTooltip: Gc,
2924
- toggleAnnotator: zo,
2925
- toggleFullscreen: Kc,
2926
- copyAlt: Tl,
2927
- resetZoom: ss
2919
+ getData: Rs,
2920
+ getImage: zs,
2921
+ generatePdf: io,
2922
+ generateImage: ao,
2923
+ generateSvg: wl,
2924
+ generateCsv: Hc,
2925
+ hideSeries: Ks,
2926
+ showSeries: Gs,
2927
+ toggleStack: Zo,
2928
+ toggleTable: Wc,
2929
+ toggleLabels: Gc,
2930
+ toggleTooltip: Kc,
2931
+ toggleAnnotator: Bo,
2932
+ toggleFullscreen: qc,
2933
+ copyAlt: El,
2934
+ resetZoom: cs
2928
2935
  }), (n, r) => (D(), w("div", {
2929
2936
  id: `vue-ui-xy_${L.value}`,
2930
2937
  class: at(`vue-data-ui-component vue-ui-xy ${ia.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${H.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2931
2938
  ref_key: "chart",
2932
2939
  ref: Li,
2933
2940
  style: E(`background:${H.value.chart.backgroundColor}; color:${H.value.chart.color};width:100%;font-family:${H.value.chart.fontFamily};${H.value.responsive ? "height: 100%" : ""}`),
2934
- onMouseenter: r[6] ||= () => Ro(!0),
2935
- onMouseleave: r[7] ||= () => Ro(!1),
2936
- onClick: Fs
2941
+ onMouseenter: r[6] ||= () => zo(!0),
2942
+ onMouseleave: r[7] ||= () => zo(!1),
2943
+ onClick: Is
2937
2944
  }, [
2938
2945
  T("div", {
2939
2946
  id: `chart-instructions-${L.value}`,
2940
2947
  class: "sr-only"
2941
2948
  }, [T("p", null, dt(H.value.a11y.translations.keyboardNavigation), 1)], 8, kt),
2942
- jl.value?.rows?.length ? (D(), Xe(Je, {
2949
+ Ml.value?.rows?.length ? (D(), Xe(Je, {
2943
2950
  key: 0,
2944
2951
  uid: L.value,
2945
- head: jl.value.headers,
2946
- body: jl.value.rows,
2952
+ head: Ml.value.headers,
2953
+ body: Ml.value.rows,
2947
2954
  notice: H.value.a11y.translations.tableAvailable,
2948
2955
  caption: H.value.a11y.translations.tableCaption
2949
2956
  }, null, 8, [
@@ -2959,8 +2966,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2959
2966
  backgroundColor: H.value.chart.backgroundColor,
2960
2967
  color: H.value.chart.color,
2961
2968
  active: ra.value,
2962
- isCursorPointer: Ba.value,
2963
- onClose: zo
2969
+ isCursorPointer: Va.value,
2970
+ onClose: Bo
2964
2971
  }, {
2965
2972
  "annotator-action-close": M(() => [A(n.$slots, "annotator-action-close", {}, void 0, !0)]),
2966
2973
  "annotator-action-color": M(({ color: e }) => [A(n.$slots, "annotator-action-color", ot(nt({ color: e })), void 0, !0)]),
@@ -2976,7 +2983,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
2976
2983
  "active",
2977
2984
  "isCursorPointer"
2978
2985
  ])) : C("", !0),
2979
- Js.value ? (D(), w("div", {
2986
+ Ys.value ? (D(), w("div", {
2980
2987
  key: 2,
2981
2988
  ref_key: "noTitle",
2982
2989
  ref: Hi,
@@ -3009,8 +3016,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3009
3016
  key: `user_options_${sa.value}`,
3010
3017
  backgroundColor: H.value.chart.backgroundColor,
3011
3018
  color: H.value.chart.color,
3012
- isPrinting: j(to),
3013
- isImaging: j(no),
3019
+ isPrinting: j(no),
3020
+ isImaging: j(ro),
3014
3021
  uid: L.value,
3015
3022
  hasTooltip: H.value.chart.userOptions.buttons.tooltip && H.value.chart.tooltip.show,
3016
3023
  hasPdf: H.value.chart.userOptions.buttons.pdf,
@@ -3033,18 +3040,18 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3033
3040
  callbacks: H.value.chart.userOptions.callbacks,
3034
3041
  tableDialog: H.value.table.useDialog,
3035
3042
  printScale: H.value.chart.userOptions.print.scale,
3036
- isCursorPointer: Ba.value,
3037
- onToggleFullscreen: Kc,
3038
- onGeneratePdf: j(ro),
3039
- onGenerateCsv: Vc,
3040
- onGenerateImage: wl,
3041
- onGenerateSvg: Cl,
3042
- onToggleTable: Uc,
3043
- onToggleLabels: Wc,
3044
- onToggleStack: Xo,
3045
- onToggleTooltip: Gc,
3046
- onToggleAnnotator: zo,
3047
- onCopyAlt: Tl,
3043
+ isCursorPointer: Va.value,
3044
+ onToggleFullscreen: qc,
3045
+ onGeneratePdf: j(io),
3046
+ onGenerateCsv: Hc,
3047
+ onGenerateImage: Tl,
3048
+ onGenerateSvg: wl,
3049
+ onToggleTable: Wc,
3050
+ onToggleLabels: Gc,
3051
+ onToggleStack: Zo,
3052
+ onToggleTooltip: Kc,
3053
+ onToggleAnnotator: Bo,
3054
+ onCopyAlt: El,
3048
3055
  style: E({ visibility: pa.value ? ma.value ? "visible" : "hidden" : "visible" })
3049
3056
  }, Ze({ _: 2 }, [
3050
3057
  n.$slots.menuIcon ? {
@@ -3142,18 +3149,18 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3142
3149
  color: H.value.chart.color,
3143
3150
  fontFamily: H.value.chart.fontFamily
3144
3151
  }),
3145
- "aria-label": Ks.value,
3152
+ "aria-label": qs.value,
3146
3153
  "aria-describedby": `chart-instructions-${L.value}`,
3147
3154
  "aria-live": "polite",
3148
3155
  role: "img",
3149
3156
  tabindex: "0",
3150
3157
  preserveAspectRatio: "xMidYMid",
3151
- onMousemove: Ns,
3152
- onMouseleave: Ps,
3153
- onClick: Fs,
3154
- onFocus: Dl,
3155
- onBlur: Ol,
3156
- onKeydown: kl
3158
+ onMousemove: Ps,
3159
+ onMouseleave: Fs,
3160
+ onClick: Is,
3161
+ onFocus: Ol,
3162
+ onBlur: kl,
3163
+ onKeydown: Al
3157
3164
  }, [T("g", {
3158
3165
  ref_key: "G",
3159
3166
  ref: Ui,
@@ -3181,7 +3188,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3181
3188
  "stroke-linecap": "round",
3182
3189
  style: { animation: "none !important" }
3183
3190
  }, null, 8, It)) : C("", !0),
3184
- U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), w(x, { key: 2 }, k(jc.value, (e) => (D(), w("g", null, [e.id === P.value && e.yLabels.length ? (D(!0), w(x, { key: 0 }, k(e.yLabels, (t) => (D(), w("line", {
3191
+ U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), w(x, { key: 2 }, k(Mc.value, (e) => (D(), w("g", null, [e.id === P.value && e.yLabels.length ? (D(!0), w(x, { key: 0 }, k(e.yLabels, (t) => (D(), w("line", {
3185
3192
  x1: Y.value?.left,
3186
3193
  x2: Y.value?.right,
3187
3194
  y1: j(y)(t.y),
@@ -3210,7 +3217,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3210
3217
  y2: j(y)(Y.value?.bottom),
3211
3218
  "stroke-linecap": "round",
3212
3219
  style: { animation: "none !important" }
3213
- }, null, 8, Lt)) : C("", !0), H.value.chart.grid.showHorizontalLines ? (D(), w("g", Rt, [(D(!0), w(x, null, k(gc.value, (e) => (D(), w("line", {
3220
+ }, null, 8, Lt)) : C("", !0), H.value.chart.grid.showHorizontalLines ? (D(), w("g", Rt, [(D(!0), w(x, null, k(_c.value, (e) => (D(), w("line", {
3214
3221
  x1: Y.value?.left,
3215
3222
  x2: Y.value?.right,
3216
3223
  y1: j(y)(e.y),
@@ -3221,21 +3228,21 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3221
3228
  style: { animation: "none !important" }
3222
3229
  }, null, 8, zt))), 256))])) : C("", !0)], 64)),
3223
3230
  H.value.chart.grid.showVerticalLines ? (D(), w("g", Ht, [T("path", {
3224
- d: jo.value,
3231
+ d: Mo.value,
3225
3232
  "stroke-width": .5,
3226
3233
  stroke: H.value.chart.grid.stroke,
3227
3234
  "stroke-linecap": "round",
3228
3235
  style: { animation: "none !important" }
3229
3236
  }, null, 8, Ut)])) : C("", !0),
3230
3237
  H.value.chart.grid.labels.xAxisLabels.show ? (D(), w("g", Wt, [T("path", {
3231
- d: Mo.value,
3238
+ d: No.value,
3232
3239
  stroke: H.value.chart.grid.stroke,
3233
3240
  "stroke-width": 1,
3234
3241
  "stroke-linecap": "round",
3235
3242
  style: { animation: "none !important" }
3236
3243
  }, null, 8, Gt)])) : C("", !0)
3237
3244
  ]),
3238
- (D(!0), w(x, null, k(kc.value, (e, t) => (D(), w("defs", { key: `def_rect_${t}` }, [n.$slots["bar-gradient"] ? A(n.$slots, "bar-gradient", rt({
3245
+ (D(!0), w(x, null, k(Ac.value, (e, t) => (D(), w("defs", { key: `def_rect_${t}` }, [n.$slots["bar-gradient"] ? A(n.$slots, "bar-gradient", rt({
3239
3246
  key: 0,
3240
3247
  ref_for: !0
3241
3248
  }, {
@@ -3277,7 +3284,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3277
3284
  "stop-color": e.color
3278
3285
  }, null, 8, $t)
3279
3286
  ], 8, Xt)], 64))]))), 128)),
3280
- (D(!0), w(x, null, k(Ac.value, (e, t) => (D(), w("defs", { key: `def_plot_${t}` }, [T("radialGradient", {
3287
+ (D(!0), w(x, null, k(jc.value, (e, t) => (D(), w("defs", { key: `def_plot_${t}` }, [T("radialGradient", {
3281
3288
  id: `plotGradient_${t}_${L.value}`,
3282
3289
  cx: "50%",
3283
3290
  cy: "50%",
@@ -3331,32 +3338,32 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3331
3338
  "stop-color": n,
3332
3339
  offset: j(d)(r, e.temperatureColors.length)
3333
3340
  }, null, 8, fn))), 128))], 8, dn)])) : C("", !0)], 64))), 128)),
3334
- (D(!0), w(x, null, k(Ys.value, (e) => (D(), w("g", null, [e.show ? (D(), w(x, { key: 0 }, [(D(!0), w(x, null, k(e.span, (t, n) => (D(), w("g", null, [T("rect", {
3341
+ (D(!0), w(x, null, k(Xs.value, (e) => (D(), w("g", null, [e.show ? (D(), w(x, { key: 0 }, [(D(!0), w(x, null, k(e.span, (t, n) => (D(), w("g", null, [T("rect", {
3335
3342
  style: E({
3336
3343
  transition: "none",
3337
3344
  opacity: +(e.from + n >= G.value.start && e.from + n <= G.value.end - 1)
3338
3345
  }),
3339
- x: rc(e.from + n - G.value.start),
3346
+ x: ic(e.from + n - G.value.start),
3340
3347
  y: Y.value?.top,
3341
3348
  height: Y.value.height < 0 ? 10 : Y.value.height,
3342
- width: ic(e.from + n - G.value.start),
3349
+ width: ac(e.from + n - G.value.start),
3343
3350
  fill: j(m)(e.color, e.opacity)
3344
3351
  }, null, 12, pn)]))), 256)), (D(!0), w(x, null, k(e.span, (t, n) => (D(), w("g", null, [e.caption.text && n === 0 ? (D(), w("foreignObject", {
3345
3352
  key: 0,
3346
- x: rc(e.from + n - G.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - sc(e.span) / 2),
3353
+ x: ic(e.from + n - G.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - cc(e.span) / 2),
3347
3354
  y: Y.value?.top + e.caption.offsetY,
3348
3355
  style: E({
3349
3356
  overflow: "visible",
3350
3357
  opacity: +(e.to >= G.value.start && e.from < G.value.end)
3351
3358
  }),
3352
3359
  height: "1",
3353
- width: e.caption.width === "auto" ? sc(e.span) : e.caption.width
3360
+ width: e.caption.width === "auto" ? cc(e.span) : e.caption.width
3354
3361
  }, [T("div", { style: E(`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"}`) }, dt(e.caption.text), 5)], 12, mn)) : C("", !0)]))), 256))], 64)) : C("", !0)]))), 256)),
3355
- Lo.value && !q.value ? (D(), w("g", hn, [(D(!0), w(x, null, k(Z.value, (e, t) => (D(), w("g", { key: `tooltip_trap_highlighter_${t}` }, [T("rect", {
3356
- x: rc(t),
3362
+ Ro.value && !q.value ? (D(), w("g", hn, [(D(!0), w(x, null, k(Z.value, (e, t) => (D(), w("g", { key: `tooltip_trap_highlighter_${t}` }, [T("rect", {
3363
+ x: ic(t),
3357
3364
  y: Y.value?.top,
3358
3365
  height: Y.value.height < 0 ? 10 : Y.value.height,
3359
- width: oc(t),
3366
+ width: sc(t),
3360
3367
  fill: [
3361
3368
  R.value,
3362
3369
  B.value,
@@ -3367,41 +3374,41 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3367
3374
  animation: "none !important"
3368
3375
  }
3369
3376
  }, null, 8, gn)]))), 128))])) : C("", !0),
3370
- kc.value.length ? (D(!0), w(x, { key: 1 }, k(kc.value, (e, t) => (D(), w("g", {
3377
+ Ac.value.length ? (D(!0), w(x, { key: 1 }, k(Ac.value, (e, t) => (D(), w("g", {
3371
3378
  key: `serie_bar_${e.id}`,
3372
3379
  class: at(`serie_bar_${t}`),
3373
3380
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3374
3381
  }, [(D(!0), w(x, null, k(e.plots, (r, i) => (D(), w("g", { key: `bar_plot_${t}_${i}` }, [
3375
3382
  j(vt)(r.value) ? (D(), w("rect", {
3376
3383
  key: 0,
3377
- x: Cs(r) + fc.value / 2,
3378
- y: U.value.useIndividualScale ? Ts(r) : ws(r),
3379
- height: U.value.useIndividualScale ? Math.abs(bs(r)) : Math.abs(ys(r)),
3380
- width: dc.value - fc.value,
3384
+ x: ws(r) + pc.value / 2,
3385
+ y: U.value.useIndividualScale ? Es(r) : Ts(r),
3386
+ height: U.value.useIndividualScale ? Math.abs(xs(r)) : Math.abs(bs(r)),
3387
+ width: fc.value - pc.value,
3381
3388
  rx: H.value.bar.borderRadius,
3382
3389
  fill: H.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${t}_${L.value})` : `url(#rectGradient_neg_${t}_${L.value})` : e.color,
3383
3390
  stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
3384
3391
  "stroke-width": H.value.bar.border.strokeWidth,
3385
- style: E({ transition: j(Ga) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
3392
+ style: E({ transition: j(Ka) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
3386
3393
  }, null, 12, _n)) : C("", !0),
3387
3394
  j(vt)(r.value) && n.$slots.pattern ? (D(), w("rect", {
3388
3395
  key: 1,
3389
- x: Cs(r) - fc.value / 2,
3390
- y: U.value.useIndividualScale ? Ts(r) : ws(r),
3391
- height: U.value.useIndividualScale ? Math.abs(bs(r)) : Math.abs(ys(r)),
3392
- width: dc.value - fc.value,
3396
+ x: ws(r) - pc.value / 2,
3397
+ y: U.value.useIndividualScale ? Es(r) : Ts(r),
3398
+ height: U.value.useIndividualScale ? Math.abs(xs(r)) : Math.abs(bs(r)),
3399
+ width: fc.value - pc.value,
3393
3400
  rx: H.value.bar.borderRadius,
3394
3401
  fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3395
3402
  stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
3396
3403
  "stroke-width": H.value.bar.border.strokeWidth,
3397
- style: E({ transition: j(Ga) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
3404
+ style: E({ transition: j(Ka) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
3398
3405
  }, null, 12, vn)) : C("", !0),
3399
3406
  r.comment && H.value.chart.comments.show ? (D(), w("foreignObject", {
3400
3407
  key: 2,
3401
3408
  style: { overflow: "visible" },
3402
3409
  height: "12",
3403
- width: dc.value + H.value.chart.comments.width,
3404
- x: Cs(r) - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
3410
+ width: fc.value + H.value.chart.comments.width,
3411
+ x: ws(r) - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
3405
3412
  y: j(b)(r.y) + H.value.chart.comments.offsetY + 6
3406
3413
  }, [A(n.$slots, "plot-comment", { plot: {
3407
3414
  ...r,
@@ -3416,14 +3423,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3416
3423
  "stroke-width": "1",
3417
3424
  x1: Y.value?.left,
3418
3425
  x2: Y.value?.right,
3419
- y1: j(y)(vs.value),
3420
- y2: j(y)(vs.value),
3426
+ y1: j(y)(ys.value),
3427
+ y2: j(y)(ys.value),
3421
3428
  "stroke-linecap": "round",
3422
3429
  style: { animation: "none !important" }
3423
3430
  }, null, 8, bn)) : C("", !0),
3424
- !H.value.chart.highlighter.crosshairs.show && (H.value.chart.highlighter.useLine || q.value) && Yo.value ? (D(), w("g", xn, [T("line", {
3425
- x1: cl.value,
3426
- x2: cl.value,
3431
+ !H.value.chart.highlighter.crosshairs.show && (H.value.chart.highlighter.useLine || q.value) && Xo.value ? (D(), w("g", xn, [T("line", {
3432
+ x1: ll.value,
3433
+ x2: ll.value,
3427
3434
  y1: j(y)(Y.value?.top),
3428
3435
  y2: j(y)(Y.value?.bottom),
3429
3436
  stroke: H.value.chart.highlighter.color,
@@ -3436,10 +3443,10 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3436
3443
  "pointer-events": "none"
3437
3444
  }
3438
3445
  }, null, 8, Sn)])) : C("", !0),
3439
- ll.value ? (D(), w("g", Cn, [(D(!0), w(x, null, k(ul.value, (e) => (D(), w("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
3446
+ ul.value ? (D(), w("g", Cn, [(D(!0), w(x, null, k(dl.value, (e) => (D(), w("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
3440
3447
  T("line", {
3441
3448
  x1: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(y)(e.x) : Y.value.left,
3442
- x2: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(y)(fl(e.x)) : Y.value.right,
3449
+ x2: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(y)(pl(e.x)) : Y.value.right,
3443
3450
  y1: j(y)(e.y),
3444
3451
  y2: j(y)(e.y),
3445
3452
  stroke: H.value.chart.highlighter.crosshairs.stroke,
@@ -3460,7 +3467,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3460
3467
  style: { "pointer-events": "none" }
3461
3468
  }, null, 8, Tn),
3462
3469
  T("circle", {
3463
- cx: j(y)(fl(e.x)),
3470
+ cx: j(y)(pl(e.x)),
3464
3471
  cy: j(y)(e.y),
3465
3472
  r: H.value.chart.highlighter.crosshairs.dot.radius,
3466
3473
  fill: H.value.chart.highlighter.crosshairs.dot.fill,
@@ -3491,9 +3498,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3491
3498
  key: 6,
3492
3499
  ref_key: "scaleLabels",
3493
3500
  ref: qi,
3494
- opacity: ll.value ? .2 : 1,
3501
+ opacity: ul.value ? .2 : 1,
3495
3502
  style: { transition: "opacity 0.2s" }
3496
- }, [U.value.useIndividualScale ? (D(), w(x, { key: 0 }, [(D(!0), w(x, null, k(jc.value, (e) => (D(), w("g", null, [T("line", {
3503
+ }, [U.value.useIndividualScale ? (D(), w(x, { key: 0 }, [(D(!0), w(x, null, k(Mc.value, (e) => (D(), w("g", null, [T("line", {
3497
3504
  x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3498
3505
  x2: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3499
3506
  y1: U.value.isStacked ? j(y)(Y.value?.bottom - e.yOffset - e.individualHeight) : j(y)(Y.value?.top),
@@ -3502,7 +3509,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3502
3509
  "stroke-width": H.value.chart.grid.stroke,
3503
3510
  "stroke-linecap": "round",
3504
3511
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3505
- }, null, 12, kn)]))), 256)), (D(!0), w(x, null, k(jc.value, (e) => (D(), w("g", { style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
3512
+ }, null, 12, kn)]))), 256)), (D(!0), w(x, null, k(Mc.value, (e) => (D(), w("g", { style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
3506
3513
  T("text", {
3507
3514
  fill: e.color,
3508
3515
  "font-size": V.value.dataLabels * .8,
@@ -3534,7 +3541,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3534
3541
  datapoint: t.datapoint,
3535
3542
  seriesIndex: n
3536
3543
  })), 9, Mn))), 256))
3537
- ], 4))), 256))], 64)) : (D(!0), w(x, { key: 1 }, k(gc.value, (e, t) => (D(), w("g", { key: `yLabel_${t}` }, [j(vt)(e) && e.value >= K.value.min && e.value <= K.value.max && H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), w("line", {
3544
+ ], 4))), 256))], 64)) : (D(!0), w(x, { key: 1 }, k(_c.value, (e, t) => (D(), w("g", { key: `yLabel_${t}` }, [j(vt)(e) && e.value >= K.value.min && e.value <= K.value.max && H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), w("line", {
3538
3545
  key: 0,
3539
3546
  x1: J.value ? Y.value?.right : Y.value?.left,
3540
3547
  x2: J.value ? Y.value?.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value?.left - H.value.chart.grid.labels.yAxis.crosshairSize,
@@ -3556,7 +3563,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3556
3563
  s: e.suffix,
3557
3564
  r: H.value.chart.grid.labels.yAxis.rounding
3558
3565
  })) : ""), 9, Pn)) : C("", !0)]))), 128))], 8, On)) : C("", !0),
3559
- ll.value ? (D(), w("g", Fn, [(D(!0), w(x, null, k(ul.value, (e) => (D(), w("text", {
3566
+ ul.value ? (D(), w("g", Fn, [(D(!0), w(x, null, k(dl.value, (e) => (D(), w("text", {
3560
3567
  key: `crosshair_y_label_${e.serie.id}_${e.index}`,
3561
3568
  transform: `translate(${J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - H.value.chart.grid.labels.yAxis.crosshairSize}, ${j(y)(e.y) + V.value.dataLabels / 3})`,
3562
3569
  "font-size": V.value.dataLabels,
@@ -3576,8 +3583,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3576
3583
  datapoint: e.serie,
3577
3584
  seriesIndex: e.index
3578
3585
  })), 9, In))), 128))])) : C("", !0),
3579
- dl.value ? (D(), w("g", Ln, [T("circle", {
3580
- cx: cl.value,
3586
+ fl.value ? (D(), w("g", Ln, [T("circle", {
3587
+ cx: ll.value,
3581
3588
  cy: j(y)(Y.value?.bottom),
3582
3589
  r: H.value.chart.highlighter.crosshairs.dot.radius,
3583
3590
  fill: H.value.chart.highlighter.crosshairs.dot.fill,
@@ -3589,7 +3596,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3589
3596
  "pointer-events": "none"
3590
3597
  }
3591
3598
  }, null, 8, Rn)])) : C("", !0),
3592
- (D(!0), w(x, null, k(Ac.value, (e, t) => (D(), w("g", {
3599
+ (D(!0), w(x, null, k(jc.value, (e, t) => (D(), w("g", {
3593
3600
  key: `serie_plot_${e.id}`,
3594
3601
  class: at(`serie_plot_${t}`),
3595
3602
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -3608,10 +3615,10 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3608
3615
  x: j(b)(r.x),
3609
3616
  y: j(b)(r.y)
3610
3617
  },
3611
- radius: pl(e, r, i) ? (Ia.value.plot || 6) * 1.5 : (vc(e.plots, i), Ia.value.plot || 6),
3618
+ radius: ml(e, r, i) ? (Ia.value.plot || 6) * 1.5 : (yc(e.plots, i), Ia.value.plot || 6),
3612
3619
  stroke: H.value.plot.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
3613
3620
  strokeWidth: H.value.plot.dot.strokeWidth,
3614
- transition: j(Ga) || !H.value.plot.showTransition || pl(e, r, i) ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`
3621
+ transition: j(Ka) || !H.value.plot.showTransition || ml(e, r, i) ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`
3615
3622
  }, null, 8, [
3616
3623
  "shape",
3617
3624
  "color",
@@ -3644,7 +3651,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3644
3651
  "stroke-width": H.value.line.strokeWidth + 1,
3645
3652
  "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3646
3653
  fill: "none",
3647
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3654
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3648
3655
  }, null, 12, Vn)) : e.plots.length > 1 && e.straight ? (D(), w("path", {
3649
3656
  key: 1,
3650
3657
  d: `M${e.straight}`,
@@ -3654,21 +3661,21 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3654
3661
  fill: "none",
3655
3662
  "stroke-linecap": "round",
3656
3663
  "stroke-linejoin": "round",
3657
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3664
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3658
3665
  }, null, 12, Hn)) : C("", !0)], 6))), 128)),
3659
- n.$slots.pattern ? (D(), w("defs", Un, [(D(!0), w(x, null, k(vo.value, (e, t) => A(n.$slots, "pattern", rt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3666
+ n.$slots.pattern ? (D(), w("defs", Un, [(D(!0), w(x, null, k(yo.value, (e, t) => A(n.$slots, "pattern", rt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3660
3667
  ...e,
3661
3668
  seriesIndex: e.slotAbsoluteIndex,
3662
3669
  patternId: `pattern_${L.value}_${t}`
3663
3670
  }), void 0, !0)), 128))])) : C("", !0),
3664
- Mc.value.length && !U.value.isStacked ? (D(), w("g", Wn, [(D(!0), w(x, null, k(Mc.value, (e) => (D(), w("path", {
3671
+ Nc.value.length && !U.value.isStacked ? (D(), w("g", Wn, [(D(!0), w(x, null, k(Nc.value, (e) => (D(), w("path", {
3665
3672
  key: e.key,
3666
3673
  d: e.d,
3667
3674
  fill: e.color,
3668
3675
  "fill-opacity": H.value.line.interLine.fillOpacity,
3669
3676
  stroke: "none",
3670
3677
  "pointer-events": "none",
3671
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3678
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3672
3679
  }, null, 12, Gn))), 128))])) : C("", !0),
3673
3680
  (D(!0), w(x, null, k($.value, (e, t) => (D(), w("g", {
3674
3681
  key: `serie_line_above_${e.id}`,
@@ -3679,22 +3686,22 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3679
3686
  key: 0,
3680
3687
  d: r,
3681
3688
  fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(m)(e.color, H.value.line.area.opacity),
3682
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3689
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3683
3690
  }, null, 12, qn)) : C("", !0), n.$slots.pattern && r ? (D(), w("path", {
3684
3691
  key: 1,
3685
3692
  d: r,
3686
3693
  fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3687
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3694
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3688
3695
  }, null, 12, Jn)) : C("", !0)], 64))), 128)) : (D(!0), w(x, { key: 1 }, k(e.area.split(";"), (r, i) => (D(), w(x, { key: i }, [r ? (D(), w("path", {
3689
3696
  key: 0,
3690
3697
  d: `M${r}Z`,
3691
3698
  fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(m)(e.color, H.value.line.area.opacity),
3692
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3699
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3693
3700
  }, null, 12, Yn)) : C("", !0), n.$slots.pattern && r ? (D(), w("path", {
3694
3701
  key: 1,
3695
3702
  d: `M${r}Z`,
3696
3703
  fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3697
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3704
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3698
3705
  }, null, 12, Xn)) : C("", !0)], 64))), 128))])) : C("", !0),
3699
3706
  !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (D(), w("path", {
3700
3707
  key: 1,
@@ -3704,7 +3711,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3704
3711
  "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3705
3712
  fill: "none",
3706
3713
  "stroke-linecap": "round",
3707
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3714
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3708
3715
  }, null, 12, Zn)) : e.hasDashedSegments ? (D(), w(x, { key: 2 }, [e.smooth ? (D(!0), w(x, { key: 0 }, k(e.dashedSmooth, (n) => (D(), w("path", {
3709
3716
  key: n.path,
3710
3717
  fill: "none",
@@ -3732,9 +3739,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3732
3739
  fill: "none",
3733
3740
  "stroke-linecap": "round",
3734
3741
  "stroke-linejoin": "round",
3735
- style: E({ transition: j(Ga) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3742
+ style: E({ transition: j(Ka) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3736
3743
  }, null, 12, er)) : C("", !0),
3737
- (D(!0), w(x, null, k(e.plots, (r, i) => (D(), w(x, { key: `circle_line_${t}_${i}` }, [!qs.value.linePlot && r && j(vt)(r.value) || qs.value.linePlot && r && j(vt)(r.value) && (B.value !== null && B.value === i || R.value !== null && R.value === i) || vc(e.plots, i) ? (D(), Xe(Ue, {
3744
+ (D(!0), w(x, null, k(e.plots, (r, i) => (D(), w(x, { key: `circle_line_${t}_${i}` }, [!Js.value.linePlot && r && j(vt)(r.value) || Js.value.linePlot && r && j(vt)(r.value) && (B.value !== null && B.value === i || R.value !== null && R.value === i) || yc(e.plots, i) ? (D(), Xe(Ue, {
3738
3745
  key: 0,
3739
3746
  shape: [
3740
3747
  "triangle",
@@ -3749,10 +3756,10 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3749
3756
  x: j(b)(r.x),
3750
3757
  y: j(b)(r.y)
3751
3758
  },
3752
- radius: pl(e, r, i) ? (Ia.value.line || 6) * 1.5 : (vc(e.plots, i), Ia.value.line || 6),
3759
+ radius: ml(e, r, i) ? La.value || 0 : (yc(e.plots, i), Ia.value.line || 0),
3753
3760
  stroke: H.value.line.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
3754
3761
  strokeWidth: H.value.line.dot.strokeWidth,
3755
- transition: j(Ga) || !H.value.line.showTransition || pl(e, r, i) ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`
3762
+ transition: j(Ka) || !H.value.line.showTransition || ml(e, r, i) ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`
3756
3763
  }, null, 8, [
3757
3764
  "shape",
3758
3765
  "color",
@@ -3775,26 +3782,26 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3775
3782
  datapointIndex: i
3776
3783
  } }, void 0, !0)])], 8, tr)) : C("", !0)], 64))), 128))
3777
3784
  ], 6))), 128)),
3778
- (H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), w("g", rr, [(D(!0), w(x, null, k(kc.value, (e, t) => (D(), w(x, { key: `xLabel_bar_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r) && H.value.bar.labels.show ? (D(), w("text", {
3785
+ (H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), w("g", rr, [(D(!0), w(x, null, k(Ac.value, (e, t) => (D(), w(x, { key: `xLabel_bar_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r) && H.value.bar.labels.show ? (D(), w("text", {
3779
3786
  key: 0,
3780
- "text-anchor": sl({
3787
+ "text-anchor": cl({
3781
3788
  plot: n,
3782
3789
  type: "bar"
3783
3790
  }),
3784
3791
  "font-size": V.value.plotLabels,
3785
- transform: al({ plot: n }),
3792
+ transform: ol({ plot: n }),
3786
3793
  fill: H.value.bar.labels.color,
3787
3794
  stroke: H.value.chart.backgroundColor,
3788
3795
  "paint-order": "stroke",
3789
3796
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3790
- innerHTML: il({
3797
+ innerHTML: al({
3791
3798
  serie: e,
3792
3799
  plot: n,
3793
3800
  type: "bar"
3794
3801
  })
3795
3802
  }, null, 12, ir)) : C("", !0), n && H.value.bar.serieName.show ? (D(), w("text", {
3796
3803
  key: 1,
3797
- x: U.value.useIndividualScale && U.value.isStacked ? n.x + xs.value.line / 2 : n.x + Ss() * 1.1,
3804
+ x: U.value.useIndividualScale && U.value.isStacked ? n.x + Ss.value.line / 2 : n.x + Cs() * 1.1,
3798
3805
  y: n.y + (n.value > 0 ? H.value.bar.serieName.offsetY : -H.value.bar.serieName.offsetY * 3),
3799
3806
  "text-anchor": "middle",
3800
3807
  "font-size": V.value.plotLabels,
@@ -3805,13 +3812,13 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3805
3812
  source: e.name,
3806
3813
  length: H.value.bar.serieName.abbreviationSize
3807
3814
  }) : e.name), 13, ar)) : C("", !0)], 64))), 128))], 64))), 128))])) : C("", !0),
3808
- H.value.plot.labels.show && U.value.dataLabels.show ? (D(), w("g", or, [(D(!0), w(x, null, k(Ac.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || pl(e, n, r) ? (D(), w("text", {
3815
+ H.value.plot.labels.show && U.value.dataLabels.show ? (D(), w("g", or, [(D(!0), w(x, null, k(jc.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || ml(e, n, r) ? (D(), w("text", {
3809
3816
  key: 0,
3810
- transform: ol({
3817
+ transform: sl({
3811
3818
  plot: n,
3812
3819
  type: "plot"
3813
3820
  }),
3814
- "text-anchor": sl({
3821
+ "text-anchor": cl({
3815
3822
  plot: n,
3816
3823
  type: "plot"
3817
3824
  }),
@@ -3820,12 +3827,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3820
3827
  stroke: H.value.chart.backgroundColor,
3821
3828
  "paint-order": "stroke",
3822
3829
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3823
- innerHTML: il({
3830
+ innerHTML: al({
3824
3831
  serie: e,
3825
3832
  plot: n,
3826
3833
  type: "plot"
3827
3834
  })
3828
- }, null, 12, sr)) : C("", !0)], 64))), 128))], 64))), 128))])) : (D(), w("g", cr, [(D(!0), w(x, null, k(Ac.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [H.value.plot.tag.followValue ? (D(), w(x, { key: 1 }, [[
3835
+ }, null, 12, sr)) : C("", !0)], 64))), 128))], 64))), 128))])) : (D(), w("g", cr, [(D(!0), w(x, null, k(jc.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [H.value.plot.tag.followValue ? (D(), w(x, { key: 1 }, [[
3829
3836
  R.value,
3830
3837
  B.value,
3831
3838
  oa.value
@@ -3869,13 +3876,13 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3869
3876
  serieName: e.name
3870
3877
  })
3871
3878
  }, null, 12, fr)], 12, dr)) : C("", !0)], 64))], 64))), 128))], 64))), 128))])),
3872
- H.value.line.labels.show && U.value.dataLabels.show ? (D(), w("g", mr, [(D(!0), w(x, null, k($.value, (e, t) => (D(), w(x, { key: `xLabel_line_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || pl(e, n, r) ? (D(), w("text", {
3879
+ H.value.line.labels.show && U.value.dataLabels.show ? (D(), w("g", mr, [(D(!0), w(x, null, k($.value, (e, t) => (D(), w(x, { key: `xLabel_line_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || ml(e, n, r) ? (D(), w("text", {
3873
3880
  key: 0,
3874
- transform: ol({
3881
+ transform: sl({
3875
3882
  plot: n,
3876
3883
  type: "line"
3877
3884
  }),
3878
- "text-anchor": sl({
3885
+ "text-anchor": cl({
3879
3886
  plot: n,
3880
3887
  type: "line"
3881
3888
  }),
@@ -3884,7 +3891,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3884
3891
  stroke: H.value.chart.backgroundColor,
3885
3892
  "paint-order": "stroke",
3886
3893
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3887
- innerHTML: il({
3894
+ innerHTML: al({
3888
3895
  serie: e,
3889
3896
  plot: n,
3890
3897
  type: "line"
@@ -3966,7 +3973,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
3966
3973
  }),
3967
3974
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3968
3975
  }, null, 12, Cr)) : C("", !0)], 64))), 128))], 64))), 128)),
3969
- (D(!0), w(x, null, k(Ac.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), w("text", {
3976
+ (D(!0), w(x, null, k(jc.value, (e, t) => (D(), w(x, { key: `xLabel_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), w("text", {
3970
3977
  key: 0,
3971
3978
  x: n.x - V.value.plotLabels,
3972
3979
  y: n.y,
@@ -4000,9 +4007,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4000
4007
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
4001
4008
  }, null, 12, Tr)) : C("", !0)], 64))), 128))], 64))), 128)),
4002
4009
  (D(!0), w(x, null, k([
4003
- ...Ac.value,
4010
+ ...jc.value,
4004
4011
  ...$.value,
4005
- ...kc.value
4012
+ ...Ac.value
4006
4013
  ], (e, t) => (D(), w(x, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(j(ve)(e.plots).trend) ? (D(), w("g", Er, [
4007
4014
  T("defs", null, [T("marker", {
4008
4015
  id: `progression_arrow_${t}`,
@@ -4023,8 +4030,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4023
4030
  }, null, 8, Or)], 8, Dr)]),
4024
4031
  e.plots.length > 1 ? (D(), w("line", {
4025
4032
  key: 0,
4026
- x1: j(ve)(e.plots).x1 + (e.type === "bar" ? Ss() : 0),
4027
- x2: j(ve)(e.plots).x2 + (e.type === "bar" ? Ss() : 0),
4033
+ x1: j(ve)(e.plots).x1 + (e.type === "bar" ? Cs() : 0),
4034
+ x2: j(ve)(e.plots).x2 + (e.type === "bar" ? Cs() : 0),
4028
4035
  y1: j(y)(j(ve)(e.plots).y1),
4029
4036
  y2: j(y)(j(ve)(e.plots).y2),
4030
4037
  "stroke-width": 1,
@@ -4036,8 +4043,8 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4036
4043
  }, null, 8, kr)) : C("", !0),
4037
4044
  e.plots.length > 1 ? (D(), w("line", {
4038
4045
  key: 1,
4039
- x1: j(ve)(e.plots).x1 + (e.type === "bar" ? Ss() : 0),
4040
- x2: j(ve)(e.plots).x2 + (e.type === "bar" ? Ss() : 0),
4046
+ x1: j(ve)(e.plots).x1 + (e.type === "bar" ? Cs() : 0),
4047
+ x2: j(ve)(e.plots).x2 + (e.type === "bar" ? Cs() : 0),
4041
4048
  y1: j(y)(j(ve)(e.plots).y1),
4042
4049
  y2: j(y)(j(ve)(e.plots).y2),
4043
4050
  "stroke-width": 1,
@@ -4050,7 +4057,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4050
4057
  e.plots.length > 1 ? (D(), w("text", {
4051
4058
  key: 2,
4052
4059
  "text-anchor": "middle",
4053
- x: j(ve)(e.plots).x2 + (e.type === "bar" ? Ss() : 0),
4060
+ x: j(ve)(e.plots).x2 + (e.type === "bar" ? Cs() : 0),
4054
4061
  y: j(ve)(e.plots).y2 - 12,
4055
4062
  "font-size": V.value.plotLabels,
4056
4063
  fill: e.color,
@@ -4065,7 +4072,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4065
4072
  r: 2
4066
4073
  })), 9, jr)) : C("", !0)
4067
4074
  ])) : C("", !0)], 64))), 128)),
4068
- U.value.useIndividualScale && !U.value.isStacked ? (D(), w(x, { key: 16 }, [T("defs", null, [(D(!0), w(x, null, k(jc.value, (e, t) => (D(), w("linearGradient", {
4075
+ U.value.useIndividualScale && !U.value.isStacked ? (D(), w(x, { key: 16 }, [T("defs", null, [(D(!0), w(x, null, k(Mc.value, (e, t) => (D(), w("linearGradient", {
4069
4076
  id: `individual_scale_gradient_${L.value}_${t}`,
4070
4077
  x1: J.value ? "100%" : "0%",
4071
4078
  x2: J.value ? "0%" : "100%",
@@ -4079,7 +4086,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4079
4086
  offset: "100%",
4080
4087
  "stop-color": e.color,
4081
4088
  "stop-opacity": "0.2"
4082
- }, null, 8, Pr)], 8, Mr))), 256))]), (D(!0), w(x, null, k(jc.value, (e, t) => (D(), w("rect", {
4089
+ }, null, 8, Pr)], 8, Mr))), 256))]), (D(!0), w(x, null, k(Mc.value, (e, t) => (D(), w("rect", {
4083
4090
  x: J.value ? e.x : e.x - H.value.chart.grid.labels.yAxis.labelWidth - Y.value.individualOffsetX,
4084
4091
  y: Y.value?.top,
4085
4092
  width: (J.value, H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX),
@@ -4111,29 +4118,29 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4111
4118
  key: 17,
4112
4119
  ref_key: "timeLabelsEls",
4113
4120
  ref: Ki,
4114
- opacity: ll.value ? .1 : 1,
4121
+ opacity: ul.value ? .1 : 1,
4115
4122
  style: { transition: "opacity 0.2s" }
4116
- }, [n.$slots["time-label"] ? (D(!0), w(x, { key: 0 }, k(xc.value, (e, t) => A(n.$slots, "time-label", rt({
4123
+ }, [n.$slots["time-label"] ? (D(!0), w(x, { key: 0 }, k(Sc.value, (e, t) => A(n.$slots, "time-label", rt({
4117
4124
  key: `time_label_${e.id}`,
4118
4125
  ref_for: !0
4119
4126
  }, {
4120
- x: Sc(e, t),
4127
+ x: Cc(e, t),
4121
4128
  y: Y.value?.bottom,
4122
4129
  fontSize: V.value.xAxis,
4123
4130
  fill: H.value.chart.grid.labels.xAxisLabels.color,
4124
- transform: `translate(${Sc(e, t)}, ${Y.value?.bottom + V.value.xAxis * 1.3 + H.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
4131
+ transform: `translate(${Cc(e, t)}, ${Y.value?.bottom + V.value.xAxis * 1.3 + H.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
4125
4132
  absoluteIndex: e.absoluteIndex,
4126
4133
  content: e.text,
4127
4134
  textAnchor: H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4128
4135
  show: e && e.text
4129
- }), void 0, !0)), 128)) : (D(!0), w(x, { key: 1 }, k(xc.value, (e, n) => (D(), w("g", { key: `time_label_${n}` }, [e && e.text ? (D(), w(x, { key: 0 }, [String(e.text).includes("\n") ? (D(), w("text", {
4136
+ }), void 0, !0)), 128)) : (D(!0), w(x, { key: 1 }, k(Sc.value, (e, n) => (D(), w("g", { key: `time_label_${n}` }, [e && e.text ? (D(), w(x, { key: 0 }, [String(e.text).includes("\n") ? (D(), w("text", {
4130
4137
  key: 1,
4131
4138
  class: "vue-data-ui-time-label",
4132
4139
  "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4133
4140
  "font-size": V.value.xAxis,
4134
4141
  fill: H.value.chart.grid.labels.xAxisLabels.color,
4135
- transform: `translate(${Sc(e, n)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
4136
- style: E({ cursor: No() && Ba.value ? "pointer" : "default" }),
4142
+ transform: `translate(${Cc(e, n)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
4143
+ style: E({ cursor: Po() && Va.value ? "pointer" : "default" }),
4137
4144
  innerHTML: j(t)({
4138
4145
  content: String(e.text),
4139
4146
  fontSize: V.value.xAxis,
@@ -4141,23 +4148,23 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4141
4148
  x: 0,
4142
4149
  y: 0
4143
4150
  }),
4144
- onClick: () => Ko(e, n)
4151
+ onClick: () => qo(e, n)
4145
4152
  }, null, 12, Br)) : (D(), w("text", {
4146
4153
  key: 0,
4147
4154
  class: "vue-data-ui-time-label",
4148
4155
  "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4149
4156
  "font-size": V.value.xAxis,
4150
4157
  fill: H.value.chart.grid.labels.xAxisLabels.color,
4151
- transform: `translate(${Sc(e, n)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
4152
- style: E({ cursor: No() && Ba.value ? "pointer" : "default" }),
4153
- onClick: () => Ko(e, n)
4158
+ transform: `translate(${Cc(e, n)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
4159
+ style: E({ cursor: Po() && Va.value ? "pointer" : "default" }),
4160
+ onClick: () => qo(e, n)
4154
4161
  }, dt(e.text || ""), 13, zr))], 64)) : C("", !0)]))), 128))], 8, Rr)) : C("", !0),
4155
- dl.value ? (D(), w("g", Vr, [T("text", {
4162
+ fl.value ? (D(), w("g", Vr, [T("text", {
4156
4163
  class: "vue-data-ui-time-label",
4157
4164
  "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
4158
4165
  "font-size": V.value.xAxis,
4159
4166
  fill: H.value.chart.grid.labels.xAxisLabels.color,
4160
- transform: `translate(${dl.value.x}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
4167
+ transform: `translate(${fl.value.x}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
4161
4168
  "font-weight": "bold",
4162
4169
  style: {
4163
4170
  transition: "none !important",
@@ -4165,14 +4172,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4165
4172
  "pointer-events": "none"
4166
4173
  },
4167
4174
  innerHTML: j(t)({
4168
- content: String(dl.value.text),
4175
+ content: String(fl.value.text),
4169
4176
  fontSize: V.value.xAxis,
4170
4177
  fill: H.value.chart.grid.labels.xAxisLabels.color,
4171
4178
  x: 0,
4172
4179
  y: 0
4173
4180
  })
4174
4181
  }, null, 8, Hr)])) : C("", !0),
4175
- _c.value.length && !U.value.isStacked ? (D(), w("g", Ur, [(D(!0), w(x, null, k(_c.value, (e) => (D(), w("g", { key: e.uid }, [
4182
+ vc.value.length && !U.value.isStacked ? (D(), w("g", Ur, [(D(!0), w(x, null, k(vc.value, (e) => (D(), w("g", { key: e.uid }, [
4176
4183
  e.yTop && e.show && isFinite(e.yTop) ? (D(), w("line", {
4177
4184
  key: 0,
4178
4185
  x1: e.x1,
@@ -4224,46 +4231,46 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4224
4231
  "text-anchor": e.config.label.textAnchor
4225
4232
  }, dt(e.config.label.text), 9, qr)) : C("", !0)
4226
4233
  ]))), 128))])) : C("", !0),
4227
- !ll.value && H.value.chart.timeTag.show && (q.value ? j(g)(el.value) : ![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), w("g", Jr, [(D(), w("foreignObject", {
4228
- x: nl(),
4234
+ !ul.value && H.value.chart.timeTag.show && (q.value ? j(g)(tl.value) : ![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), w("g", Jr, [(D(), w("foreignObject", {
4235
+ x: rl(),
4229
4236
  y: Y.value?.bottom,
4230
4237
  width: "200",
4231
4238
  height: "40",
4232
4239
  style: { overflow: "visible !important" }
4233
4240
  }, [T("div", {
4234
4241
  ref_key: "timeTagEl",
4235
- ref: Zc,
4242
+ ref: Qc,
4236
4243
  class: "vue-ui-xy-time-tag",
4237
4244
  style: E(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${H.value.chart.timeTag.backgroundColor};color:${H.value.chart.timeTag.color};font-size:${H.value.chart.timeTag.fontSize}px`),
4238
- innerHTML: rl.value
4245
+ innerHTML: il.value
4239
4246
  }, null, 12, Xr)], 8, Yr)), T("circle", {
4240
- cx: q.value && j(g)(el.value) ? Cc({ x: el.value }) : tc((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
4247
+ cx: q.value && j(g)(tl.value) ? wc({ x: tl.value }) : nc((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
4241
4248
  cy: Y.value?.bottom,
4242
4249
  r: H.value.chart.timeTag.circleMarker.radius,
4243
4250
  fill: H.value.chart.timeTag.circleMarker.color
4244
4251
  }, null, 8, Zr)])) : C("", !0)
4245
4252
  ])) : C("", !0),
4246
- Za.value ? (D(), w("rect", rt({ key: 2 }, eo.value, {
4253
+ Qa.value ? (D(), w("rect", rt({ key: 2 }, to.value, {
4247
4254
  "data-start": G.value.start,
4248
4255
  "data-end": G.value.end
4249
4256
  }), null, 16, Qr)) : C("", !0),
4250
4257
  A(n.$slots, "svg", { svg: {
4251
4258
  ...Ma.value,
4252
4259
  slicer: G.value,
4253
- isPrintingImg: j(to) || j(no) || ya.value,
4260
+ isPrintingImg: j(no) || j(ro) || ya.value,
4254
4261
  isPrintingSvg: ba.value,
4255
4262
  data: [
4256
4263
  ...$.value,
4257
- ...kc.value,
4258
- ...Ac.value
4264
+ ...Ac.value,
4265
+ ...jc.value
4259
4266
  ],
4260
4267
  drawingArea: Y.value
4261
4268
  } }, void 0, !0)
4262
4269
  ], 512)], 46, Mt)), n.$slots.hint ? (D(), w("div", $r, [A(n.$slots, "hint", ot(nt({
4263
4270
  hint: H.value.a11y.translations.keyboardNavigation,
4264
- isVisible: El.value
4271
+ isVisible: Dl.value
4265
4272
  })), void 0, !0)])) : C("", !0)]),
4266
- n.$slots.watermark ? (D(), w("div", ei, [A(n.$slots, "watermark", ot(nt({ isPrinting: j(to) || j(no) || ya.value || ba.value })), void 0, !0)])) : C("", !0),
4273
+ n.$slots.watermark ? (D(), w("div", ei, [A(n.$slots, "watermark", ot(nt({ isPrinting: j(no) || j(ro) || ya.value || ba.value })), void 0, !0)])) : C("", !0),
4267
4274
  (D(!0), w(x, null, k($.value, (e, t) => (D(), w(x, { key: `tag_line_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `tag_line_${t}_${r}` }, [[
4268
4275
  R.value,
4269
4276
  B.value,
@@ -4271,7 +4278,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4271
4278
  ].includes(r) && e.useTag && e.useTag === "end" && H.value.line.tag.followValue ? (D(), w("div", {
4272
4279
  key: 0,
4273
4280
  ref_for: !0,
4274
- ref: (e) => Io(t, r, e, "right", "line"),
4281
+ ref: (e) => Lo(t, r, e, "right", "line"),
4275
4282
  class: "vue-ui-xy-tag",
4276
4283
  "data-tag": "right",
4277
4284
  style: E({
@@ -4316,7 +4323,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4316
4323
  ].includes(r) && e.useTag && e.useTag === "start" && H.value.line.tag.followValue ? (D(), w("div", {
4317
4324
  key: 1,
4318
4325
  ref_for: !0,
4319
- ref: (e) => Io(t, r, e, "left", "line"),
4326
+ ref: (e) => Lo(t, r, e, "left", "line"),
4320
4327
  class: "vue-ui-xy-tag",
4321
4328
  "data-tag": "left",
4322
4329
  style: E({
@@ -4355,14 +4362,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4355
4362
  serieName: e.name
4356
4363
  })
4357
4364
  }, null, 8, oi)], 4)) : C("", !0)], 64))), 128))], 64))), 128)),
4358
- (D(!0), w(x, null, k(Ac.value, (e, t) => (D(), w(x, { key: `tag_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `tag_plot_${t}_${r}` }, [[
4365
+ (D(!0), w(x, null, k(jc.value, (e, t) => (D(), w(x, { key: `tag_plot_${e.id}` }, [(D(!0), w(x, null, k(e.plots, (n, r) => (D(), w(x, { key: `tag_plot_${t}_${r}` }, [[
4359
4366
  R.value,
4360
4367
  B.value,
4361
4368
  oa.value
4362
4369
  ].includes(r) && e.useTag && e.useTag === "end" && H.value.plot.tag.followValue ? (D(), w("div", {
4363
4370
  key: 0,
4364
4371
  ref_for: !0,
4365
- ref: (e) => Io(t, r, e, "right", "plot"),
4372
+ ref: (e) => Lo(t, r, e, "right", "plot"),
4366
4373
  class: "vue-ui-xy-tag",
4367
4374
  "data-tag": "right",
4368
4375
  style: E({
@@ -4407,7 +4414,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4407
4414
  ].includes(r) && e.useTag && e.useTag === "start" && H.value.plot.tag.followValue ? (D(), w("div", {
4408
4415
  key: 1,
4409
4416
  ref_for: !0,
4410
- ref: (e) => Io(t, r, e, "left", "plot"),
4417
+ ref: (e) => Lo(t, r, e, "left", "plot"),
4411
4418
  class: "vue-ui-xy-tag",
4412
4419
  "data-tag": "left",
4413
4420
  style: E({
@@ -4446,12 +4453,12 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4446
4453
  serieName: e.name
4447
4454
  })
4448
4455
  }, null, 8, fi)], 4)) : C("", !0)], 64))), 128))], 64))), 128)),
4449
- H.value.chart.zoom.show && Ya.value > 6 && za.value && es.value ? (D(), Xe(Ge, {
4456
+ H.value.chart.zoom.show && Xa.value > 6 && Ba.value && ts.value ? (D(), Xe(Ge, {
4450
4457
  key: 6,
4451
4458
  ref_key: "chartSlicer",
4452
4459
  ref: zi,
4453
4460
  uuid: L.value,
4454
- allMinimaps: mc.value,
4461
+ allMinimaps: hc.value,
4455
4462
  background: H.value.chart.zoom.color,
4456
4463
  borderColor: H.value.chart.backgroundColor,
4457
4464
  customFormat: H.value.chart.zoom.customFormat,
@@ -4465,14 +4472,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4465
4472
  useResetSlot: H.value.chart.zoom.useResetSlot,
4466
4473
  immediate: !H.value.chart.zoom.preview.enable,
4467
4474
  inputColor: H.value.chart.zoom.color,
4468
- isPreview: Za.value,
4475
+ isPreview: Qa.value,
4469
4476
  labelLeft: X.value[0] ? X.value[0].text : "",
4470
4477
  labelRight: X.value.at(-1) ? X.value.at(-1).text : "",
4471
- max: Ec.value,
4472
- min: Tc.value,
4478
+ max: Dc.value,
4479
+ min: Ec.value,
4473
4480
  precision: q.value ? H.value.chart.grid.labels.xAxis.rounding : 0,
4474
4481
  useValueRange: q.value,
4475
- minimap: pc.value,
4482
+ minimap: mc.value,
4476
4483
  minimapCompact: H.value.chart.zoom.minimap.compact,
4477
4484
  minimapFrameColor: H.value.chart.zoom.minimap.frameColor,
4478
4485
  minimapIndicatorColor: H.value.chart.zoom.minimap.indicatorColor,
@@ -4482,15 +4489,15 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4482
4489
  minimapSelectedColorOpacity: H.value.chart.zoom.minimap.selectedColorOpacity,
4483
4490
  minimapSelectedIndex: q.value ? xa.value : B.value ?? R.value,
4484
4491
  minimapSelectionRadius: H.value.chart.zoom.minimap.selectionRadius,
4485
- preciseLabels: Lc.value.length ? Lc.value : Bo.value,
4486
- refreshStartPoint: q.value ? Tc.value : H.value.chart.zoom.startIndex === null ? 0 : H.value.chart.zoom.startIndex,
4487
- refreshEndPoint: q.value ? Ec.value : H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ja(e.series).length)) : H.value.chart.zoom.endIndex + 1,
4492
+ preciseLabels: Rc.value.length ? Rc.value : Vo.value,
4493
+ refreshStartPoint: q.value ? Ec.value : H.value.chart.zoom.startIndex === null ? 0 : H.value.chart.zoom.startIndex,
4494
+ refreshEndPoint: q.value ? Dc.value : H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ya(e.series).length)) : H.value.chart.zoom.endIndex + 1,
4488
4495
  selectColor: H.value.chart.zoom.highlightColor,
4489
- selectedSeries: hc.value,
4496
+ selectedSeries: gc.value,
4490
4497
  smoothMinimap: H.value.chart.zoom.minimap.smooth,
4491
4498
  start: G.value.start,
4492
4499
  textColor: H.value.chart.color,
4493
- timeLabels: Bo.value,
4500
+ timeLabels: Vo.value,
4494
4501
  usePreciseLabels: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.zoom.useDefaultFormat,
4495
4502
  valueEnd: G.value.end,
4496
4503
  valueStart: G.value.start,
@@ -4505,14 +4512,14 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4505
4512
  handleBorderColor: H.value.chart.zoom.minimap.handleBorderColor,
4506
4513
  handleFill: H.value.chart.zoom.minimap.handleFill,
4507
4514
  handleWidth: H.value.chart.zoom.minimap.handleWidth,
4508
- isCursorPointer: Ba.value,
4509
- onFutureEnd: r[1] ||= (e) => Qa("end", e),
4510
- onFutureStart: r[2] ||= (e) => Qa("start", e),
4511
- onReset: ss,
4512
- onTrapMouse: qo,
4513
- onTrapMouseValue: Jo,
4514
- "onUpdate:end": os,
4515
- "onUpdate:start": as
4515
+ isCursorPointer: Va.value,
4516
+ onFutureEnd: r[1] ||= (e) => $a("end", e),
4517
+ onFutureStart: r[2] ||= (e) => $a("start", e),
4518
+ onReset: cs,
4519
+ onTrapMouse: Jo,
4520
+ onTrapMouseValue: Yo,
4521
+ "onUpdate:end": ss,
4522
+ "onUpdate:start": os
4516
4523
  }, {
4517
4524
  "reset-action": M(({ reset: e }) => [A(n.$slots, "reset-action", ot(nt({ reset: e })), void 0, !0)]),
4518
4525
  _: 3
@@ -4524,34 +4531,34 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4524
4531
  }, [T("div", {
4525
4532
  ref_key: "chartLegend",
4526
4533
  ref: Bi
4527
- }, [A(n.$slots, "legend", { legend: yo.value }, () => [H.value.chart.legend.show ? (D(), w("div", {
4534
+ }, [A(n.$slots, "legend", { legend: bo.value }, () => [H.value.chart.legend.show ? (D(), w("div", {
4528
4535
  key: 0,
4529
4536
  class: "vue-ui-xy-legend",
4530
4537
  style: E({ fontSize: `var(--legend-font-size, ${H.value.chart.legend.fontSize ?? 14}px)` })
4531
- }, [H.value.chart.legend.selectAllToggle.show && yo.value.length > 2 && !j(Ga) ? (D(), Xe(qe, {
4538
+ }, [H.value.chart.legend.selectAllToggle.show && bo.value.length > 2 && !j(Ka) ? (D(), Xe(qe, {
4532
4539
  key: 0,
4533
4540
  backgroundColor: H.value.chart.legend.selectAllToggle.backgroundColor,
4534
4541
  color: H.value.chart.legend.selectAllToggle.color,
4535
4542
  fontSize: H.value.chart.legend.fontSize,
4536
4543
  checked: I.value.length > 0,
4537
- onToggle: zs
4544
+ onToggle: Bs
4538
4545
  }, null, 8, [
4539
4546
  "backgroundColor",
4540
4547
  "color",
4541
4548
  "fontSize",
4542
4549
  "checked"
4543
- ])) : C("", !0), (D(!0), w(x, null, k(yo.value, (e, t) => (D(), w("div", {
4550
+ ])) : C("", !0), (D(!0), w(x, null, k(bo.value, (e, t) => (D(), w("div", {
4544
4551
  key: `div_legend_item_${t}`,
4545
- onClick: (t) => Hs(e),
4546
- onKeydown: (t) => Bs(t, e),
4552
+ onClick: (t) => Us(e),
4553
+ onKeydown: (t) => Vs(t, e),
4547
4554
  role: "button",
4548
4555
  tabindex: "0",
4549
4556
  class: at({
4550
- "vue-ui-xy-legend-item-alone": yo.value.length === 1,
4557
+ "vue-ui-xy-legend-item-alone": bo.value.length === 1,
4551
4558
  "vue-ui-xy-legend-item": !0,
4552
4559
  "vue-ui-xy-legend-item-segregated": I.value.includes(e.id)
4553
4560
  }),
4554
- style: E({ cursor: Ba.value ? "pointer" : "default" })
4561
+ style: E({ cursor: Va.value ? "pointer" : "default" })
4555
4562
  }, [na.value[e.type] === "line" ? (D(), w("svg", hi, [T("rect", {
4556
4563
  x: "0",
4557
4564
  y: "7.5",
@@ -4636,7 +4643,7 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4636
4643
  offsetX: H.value.chart.tooltip.offsetX,
4637
4644
  offsetY: H.value.chart.tooltip.offsetY,
4638
4645
  parent: n.$refs.chart,
4639
- content: Rc.value,
4646
+ content: zc.value,
4640
4647
  isFullscreen: ia.value,
4641
4648
  isCustom: H.value.chart.tooltip.customFormat && typeof H.value.chart.tooltip.customFormat == "function",
4642
4649
  smooth: H.value.chart.tooltip.smooth,
@@ -4646,9 +4653,9 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4646
4653
  isA11yMode: Sa.value != null,
4647
4654
  a11yPosition: Ca.value
4648
4655
  }, {
4649
- "tooltip-before": M(() => [A(n.$slots, "tooltip-before", ot(nt({ ...Nc.value })), void 0, !0)]),
4650
- tooltip: M(() => [A(n.$slots, "tooltip", ot(nt({ ...Nc.value })), void 0, !0)]),
4651
- "tooltip-after": M(() => [A(n.$slots, "tooltip-after", ot(nt({ ...Nc.value })), void 0, !0)]),
4656
+ "tooltip-before": M(() => [A(n.$slots, "tooltip-before", ot(nt({ ...Pc.value })), void 0, !0)]),
4657
+ tooltip: M(() => [A(n.$slots, "tooltip", ot(nt({ ...Pc.value })), void 0, !0)]),
4658
+ "tooltip-after": M(() => [A(n.$slots, "tooltip-after", ot(nt({ ...Pc.value })), void 0, !0)]),
4652
4659
  _: 3
4653
4660
  }, 8, [
4654
4661
  "teleportTo",
@@ -4674,34 +4681,34 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4674
4681
  "isA11yMode",
4675
4682
  "a11yPosition"
4676
4683
  ]),
4677
- za.value && H.value.chart.userOptions.buttons.table ? (D(), Xe(lt(gl.value.component), rt({ key: 9 }, gl.value.props, {
4684
+ Ba.value && H.value.chart.userOptions.buttons.table ? (D(), Xe(lt(_l.value.component), rt({ key: 9 }, _l.value.props, {
4678
4685
  ref_key: "tableUnit",
4679
4686
  ref: va,
4680
- onClose: _l
4687
+ onClose: vl
4681
4688
  }), Ze({
4682
- content: M(() => [T("div", { style: E(`${j(to) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [T("div", xi, [_t(T("input", {
4689
+ content: M(() => [T("div", { style: E(`${j(no) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [T("div", xi, [_t(T("input", {
4683
4690
  type: "checkbox",
4684
4691
  "onUpdate:modelValue": r[4] ||= (e) => ua.value = e
4685
4692
  }, null, 512), [[mt, ua.value]]), T("div", {
4686
4693
  onClick: r[5] ||= (e) => ua.value = !ua.value,
4687
- style: E({ cursor: Ba.value ? "pointer" : "default" })
4694
+ style: E({ cursor: Va.value ? "pointer" : "default" })
4688
4695
  }, [$e(j(Ei), {
4689
4696
  name: "chartLine",
4690
4697
  size: 20,
4691
4698
  stroke: H.value.chart.color
4692
4699
  }, null, 8, ["stroke"])], 4)]), ua.value ? (D(), Xe(j(Di), {
4693
4700
  key: `sparkline_${da.value}`,
4694
- dataset: Zs.value,
4695
- config: Qs.value
4701
+ dataset: Qs.value,
4702
+ config: $s.value
4696
4703
  }, null, 8, ["dataset", "config"])) : (D(), Xe(j(Ci), {
4697
4704
  key: `table_${ca.value}`,
4698
- colNames: Bc.value.colNames,
4699
- head: Bc.value.head,
4700
- body: Bc.value.body,
4701
- config: Bc.value.config,
4702
- title: H.value.table.useDialog ? "" : gl.value.title,
4705
+ colNames: Vc.value.colNames,
4706
+ head: Vc.value.head,
4707
+ body: Vc.value.body,
4708
+ config: Vc.value.config,
4709
+ title: H.value.table.useDialog ? "" : _l.value.title,
4703
4710
  withCloseButton: !H.value.table.useDialog,
4704
- onClose: _l
4711
+ onClose: vl
4705
4712
  }, {
4706
4713
  th: M(({ th: e }) => [T("div", { innerHTML: e }, null, 8, Si)]),
4707
4714
  td: M(({ td: e }) => [Qe(dt(isNaN(Number(e)) ? e : j(o)({
@@ -4722,23 +4729,23 @@ var Dt = /* @__PURE__ */ e({ default: () => N }), Ot = ["id"], kt = ["id"], At =
4722
4729
  _: 2
4723
4730
  }, [H.value.table.useDialog ? {
4724
4731
  name: "title",
4725
- fn: M(() => [Qe(dt(gl.value.title), 1)]),
4732
+ fn: M(() => [Qe(dt(_l.value.title), 1)]),
4726
4733
  key: "0"
4727
4734
  } : void 0, H.value.table.useDialog ? {
4728
4735
  name: "actions",
4729
4736
  fn: M(() => [T("button", {
4730
4737
  tabindex: "0",
4731
4738
  class: "vue-ui-user-options-button",
4732
- onClick: r[3] ||= (e) => Vc(H.value.chart.userOptions.callbacks.csv)
4739
+ onClick: r[3] ||= (e) => Hc(H.value.chart.userOptions.callbacks.csv)
4733
4740
  }, [$e(j(Ei), {
4734
4741
  name: "fileCsv",
4735
- stroke: gl.value.props.color
4742
+ stroke: _l.value.props.color
4736
4743
  }, null, 8, ["stroke"])])]),
4737
4744
  key: "1"
4738
4745
  } : void 0]), 1040)) : C("", !0),
4739
- A(n.$slots, "skeleton", {}, () => [j(Ga) ? (D(), Xe(Pe, { key: 0 })) : C("", !0)], !0)
4746
+ A(n.$slots, "skeleton", {}, () => [j(Ka) ? (D(), Xe(Pe, { key: 0 })) : C("", !0)], !0)
4740
4747
  ], 46, Ot));
4741
4748
  }
4742
- }, [["__scopeId", "data-v-8d74b3ca"]]);
4749
+ }, [["__scopeId", "data-v-5958e674"]]);
4743
4750
  //#endregion
4744
4751
  export { Dt as n, N as t };