vue-data-ui 3.0.13 → 3.0.15

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 (89) hide show
  1. package/dist/{Arrow-D4tQqJus.js → Arrow-DGSYU08F.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CcC-HAUF.js → BaseDraggableDialog-C8qz7ExB.js} +2 -2
  3. package/dist/{BaseIcon-Ct07hrXe.js → BaseIcon-BA3j_Lwf.js} +1 -1
  4. package/dist/{ColorPicker-FkwhtArz.js → ColorPicker-sW0pMaCb.js} +2 -2
  5. package/dist/{DataTable-BkEwtdpl.js → DataTable-Co-fVzdq.js} +2 -2
  6. package/dist/{Legend-DgV5eb2_.js → Legend-NBffBBnn.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-he2qk9Kr.js → NonSvgPenAndPaper-CWsUFLND.js} +3 -3
  8. package/dist/{PackageVersion-TDeGly1K.js → PackageVersion-DkN4tXY6.js} +1 -1
  9. package/dist/{PenAndPaper-BXRuklxc.js → PenAndPaper-C5tGS7J9.js} +3 -3
  10. package/dist/{Shape-BwKqZIcj.js → Shape-Bgg7Nwsz.js} +1 -1
  11. package/dist/{Slicer-0BUBh_u0.js → Slicer-DzsOD_6h.js} +2 -2
  12. package/dist/{SparkTooltip-BBoQeigT.js → SparkTooltip-Cfx3n0pP.js} +1 -1
  13. package/dist/{Title-69qfEeYb.js → Title-Cdu-aDOL.js} +1 -1
  14. package/dist/{Tooltip-2KuV61f8.js → Tooltip-mB2Rs1Vj.js} +1 -1
  15. package/dist/{UserOptions-DS-5I2Ok.js → UserOptions-BMoiHEKE.js} +2 -2
  16. package/dist/{dom-to-png-Brv7KaBM.js → dom-to-png-DzfS79Op.js} +1 -1
  17. package/dist/{img-BCfGCXfh.js → img-7sjXtnNU.js} +1 -1
  18. package/dist/{index-BlZvRRI7.js → index-CjmWQAkv.js} +4 -4
  19. package/dist/{pdf-BIFwW7V2.js → pdf-BepSOa2A.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/useAutoSizeLabelsInsideViewbox-iRzr0rIq.js +81 -0
  22. package/dist/{useNestedProp-BfifFbAl.js → useNestedProp-DFYUwW_F.js} +1 -1
  23. package/dist/{usePrinter-BpLrNLGp.js → usePrinter-BD_X6xEq.js} +2 -2
  24. package/dist/{vue-data-ui-BT27Eb6Y.js → vue-data-ui-BHC_kJCP.js} +64 -64
  25. package/dist/vue-data-ui.js +1 -1
  26. package/dist/{vue-ui-3d-bar-CH5NKqoA.js → vue-ui-3d-bar-CvM_pNPs.js} +6 -6
  27. package/dist/{vue-ui-accordion-1x5Li2YN.js → vue-ui-accordion-BOmbEAe4.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-B6CBFmwP.js → vue-ui-age-pyramid-2GEKVOIu.js} +6 -6
  29. package/dist/{vue-ui-annotator-7rSaJi0p.js → vue-ui-annotator-ULK7i_cb.js} +2 -2
  30. package/dist/{vue-ui-bullet-CQ3IaRe5.js → vue-ui-bullet-CtrrTkUl.js} +7 -7
  31. package/dist/{vue-ui-candlestick-BVB-1w1S.js → vue-ui-candlestick-C8_qIKhP.js} +7 -7
  32. package/dist/{vue-ui-carousel-table-B_0756Wg.js → vue-ui-carousel-table-C5-I9TDG.js} +4 -4
  33. package/dist/{vue-ui-chestnut-BqM3o9HZ.js → vue-ui-chestnut-DbGjz6NE.js} +5 -5
  34. package/dist/{vue-ui-chord-2a9gzOXO.js → vue-ui-chord-DSav5VH4.js} +8 -8
  35. package/dist/{vue-ui-circle-pack-BxTKQYdJ.js → vue-ui-circle-pack-Ost-SfPy.js} +6 -6
  36. package/dist/{vue-ui-cursor-Crejr-2d.js → vue-ui-cursor-CvvBIdhO.js} +2 -2
  37. package/dist/{vue-ui-dashboard-hf8KB52C.js → vue-ui-dashboard-B6jTz1V8.js} +62 -62
  38. package/dist/{vue-ui-digits-C2Mq50vP.js → vue-ui-digits-DW4j5hMp.js} +2 -2
  39. package/dist/{vue-ui-donut-vuu0Wh3B.js → vue-ui-donut-CQgVEHBd.js} +8 -8
  40. package/dist/{vue-ui-donut-evolution-ls8n5Sy4.js → vue-ui-donut-evolution-3Kg_0Aq8.js} +8 -8
  41. package/dist/{vue-ui-dumbbell-DdeFlqNp.js → vue-ui-dumbbell-B0RA0uh4.js} +7 -7
  42. package/dist/{vue-ui-flow-BMvSlz44.js → vue-ui-flow-mfN9qv9u.js} +7 -7
  43. package/dist/{vue-ui-funnel-VleV7CJ2.js → vue-ui-funnel-By1EE6eQ.js} +6 -6
  44. package/dist/{vue-ui-galaxy-ClT8Geaq.js → vue-ui-galaxy-DUnLy7nU.js} +5 -5
  45. package/dist/{vue-ui-gauge-BIkqPeUR.js → vue-ui-gauge-B9s5assa.js} +7 -7
  46. package/dist/{vue-ui-gizmo-qbbqmrWz.js → vue-ui-gizmo-D5nFPB5S.js} +3 -3
  47. package/dist/{vue-ui-heatmap-B1sallgR.js → vue-ui-heatmap-B99sMjxs.js} +7 -7
  48. package/dist/{vue-ui-history-plot-BtWcJfbt.js → vue-ui-history-plot-BcnKJSTL.js} +7 -7
  49. package/dist/{vue-ui-kpi-BMyaw85E.js → vue-ui-kpi-BoiQMCdn.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-BQQ3FjE5.js → vue-ui-mini-loader-Fd0upr6u.js} +2 -2
  51. package/dist/{vue-ui-molecule-DQkkHdr7.js → vue-ui-molecule-C8U7G10y.js} +5 -5
  52. package/dist/{vue-ui-mood-radar-D5R_8FF0.js → vue-ui-mood-radar-83Su_aAf.js} +7 -7
  53. package/dist/{vue-ui-nested-donuts-Ld81fJrP.js → vue-ui-nested-donuts-BT9ZqiqC.js} +7 -7
  54. package/dist/{vue-ui-onion-Dbcw8jnA.js → vue-ui-onion-9JIdWtsY.js} +8 -8
  55. package/dist/{vue-ui-parallel-coordinate-plot-Z7IAguhy.js → vue-ui-parallel-coordinate-plot-C1FjeIr0.js} +8 -8
  56. package/dist/{vue-ui-quadrant-DOdfxAYM.js → vue-ui-quadrant-3WUBK3nJ.js} +8 -8
  57. package/dist/{vue-ui-quick-chart-CcfkLspA.js → vue-ui-quick-chart-DY43gV8A.js} +6 -6
  58. package/dist/{vue-ui-radar-BIbH3MjX.js → vue-ui-radar-C4KMiQ_0.js} +8 -8
  59. package/dist/{vue-ui-rating-DkqgGQJu.js → vue-ui-rating-BvD7AC9t.js} +2 -2
  60. package/dist/{vue-ui-relation-circle-DSdQ2Cw8.js → vue-ui-relation-circle-CkJugcvo.js} +194 -203
  61. package/dist/{vue-ui-ridgeline-CdVmHbEX.js → vue-ui-ridgeline-BWWwyiku.js} +8 -8
  62. package/dist/{vue-ui-rings-C9qUXwqg.js → vue-ui-rings--RHm1WPt.js} +8 -8
  63. package/dist/{vue-ui-scatter-BbFYgBxR.js → vue-ui-scatter-BlJi3Vto.js} +8 -8
  64. package/dist/{vue-ui-skeleton-CX1ZXulb.js → vue-ui-skeleton-BpaC2poA.js} +3 -3
  65. package/dist/{vue-ui-smiley-BoZPC1w2.js → vue-ui-smiley-DFQ-eGPr.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-lgKqL9uu.js → vue-ui-spark-trend-DBvs77p7.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-qzK8hxRg.js → vue-ui-sparkbar-5-xCacnj.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-B-xTnWVp.js → vue-ui-sparkgauge-B_Hahm_m.js} +3 -3
  69. package/dist/{vue-ui-sparkhistogram-bgHNspVZ.js → vue-ui-sparkhistogram-CE3o-lRl.js} +4 -4
  70. package/dist/{vue-ui-sparkline-DEDDbr11.js → vue-ui-sparkline-RzY__SHu.js} +3 -3
  71. package/dist/{vue-ui-sparkstackbar-ChMIbN6K.js → vue-ui-sparkstackbar-mf1_NIVO.js} +3 -3
  72. package/dist/{vue-ui-stackbar-CNfnfkBh.js → vue-ui-stackbar-e0_-TwRA.js} +9 -9
  73. package/dist/{vue-ui-strip-plot-URDAVcQv.js → vue-ui-strip-plot-DNF_a6tQ.js} +7 -7
  74. package/dist/{vue-ui-table-DkeJXqvG.js → vue-ui-table-DyRQD9Jx.js} +3 -3
  75. package/dist/{vue-ui-table-heatmap-BrghDQgt.js → vue-ui-table-heatmap-D0khMn8L.js} +5 -5
  76. package/dist/{vue-ui-table-sparkline-CEj7Pwxx.js → vue-ui-table-sparkline-CrEJ_BYI.js} +4 -4
  77. package/dist/{vue-ui-thermometer-gDAODqin.js → vue-ui-thermometer-WWlRC1pG.js} +7 -7
  78. package/dist/{vue-ui-timer-u5RHf7lJ.js → vue-ui-timer-DFrFvU8Z.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-DbbbGo1I.js → vue-ui-tiremarks-BcGXDBHM.js} +6 -6
  80. package/dist/{vue-ui-treemap-CUrb9Zj3.js → vue-ui-treemap-CISOrlRD.js} +8 -8
  81. package/dist/{vue-ui-vertical-bar-CAXxJiQC.js → vue-ui-vertical-bar-BIGQJhXk.js} +9 -9
  82. package/dist/{vue-ui-waffle-CZkK46Gi.js → vue-ui-waffle-ZR7fefhR.js} +8 -8
  83. package/dist/{vue-ui-wheel-OUwzi8iK.js → vue-ui-wheel-DRp9k9JL.js} +6 -6
  84. package/dist/{vue-ui-word-cloud-DOVX9uh7.js → vue-ui-word-cloud-jlqVnKu7.js} +6 -6
  85. package/dist/{vue-ui-world-DVw4JkSI.js → vue-ui-world-PWs6PTyh.js} +6 -6
  86. package/dist/{vue-ui-xy-5edVF7jS.js → vue-ui-xy-D9GnZXb-.js} +1137 -1097
  87. package/dist/{vue-ui-xy-canvas-D8EmTlVm.js → vue-ui-xy-canvas-JxDjG7z8.js} +8 -8
  88. package/package.json +1 -1
  89. package/dist/useAutoSizeLabelsInsideViewbox-BKnSPI9C.js +0 -81
@@ -1,28 +1,28 @@
1
- import { useCssVars as mo, computed as x, ref as p, onMounted as pl, onBeforeUnmount as yl, watch as dt, nextTick as al, onUpdated as go, createElementBlock as i, openBlock as u, createElementVNode as b, createCommentVNode as f, renderSlot as J, normalizeStyle as L, createVNode as ll, withDirectives as Ql, unref as v, Fragment as g, renderList as C, normalizeClass as Ve, withKeys as Ra, vModelText as Pa, toDisplayString as le, defineAsyncComponent as Mt, useSlots as xo, getCurrentInstance as bo, toRefs as po, watchEffect as yo, createBlock as Ge, createSlots as ko, withCtx as xe, normalizeProps as Ct, guardReactiveProps as At, mergeProps as Il, Teleport as wo, vModelCheckbox as So, createTextVNode as $o } from "vue";
2
- import { c as Pl, V as Fl, U as Hl, y as Ol, X as _o, F as tt, u as Lo, f as Kl, t as Mo, a4 as je, d as Co, D as bl, ac as Wt, e as Ao, p as zo, ad as Tl, a9 as X, ae as Io, h as V, af as Oa, ag as Fa, ah as To, ai as Ha, aj as Va, k as Se, ak as No, z as Ro, _ as Ba, R as vt, i as Ue, x as Yt, s as et, a7 as j, L as Po, al as Nl, I as Oo, am as zt, C as Ze, a as Fo, b as Ho, o as Ea, v as Vo, w as Bo, E as tl } from "./index-BlZvRRI7.js";
3
- import { t as jl, u as Eo } from "./useResponsive-DfdjqQps.js";
4
- import { u as Do } from "./usePrinter-BpLrNLGp.js";
5
- import { u as Wo, B as Yo } from "./useLoading-D7YHNtLX.js";
6
- import { u as Jl } from "./useNestedProp-BfifFbAl.js";
7
- import { u as Da, a as Xo, l as Go } from "./useTimeLabels-4la0yDx0.js";
8
- import { u as Uo } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import Zo from "./img-BCfGCXfh.js";
10
- import qo from "./Title-69qfEeYb.js";
11
- import { S as Ko } from "./Slicer-0BUBh_u0.js";
12
- import { _ as Rl } from "./Shape-BwKqZIcj.js";
13
- import Jo from "./BaseIcon-Ct07hrXe.js";
14
- import { _ as Wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Qo = {
1
+ import { useCssVars as wo, computed as x, ref as b, onMounted as ol, onBeforeUnmount as nl, watch as dt, nextTick as Yt, onUpdated as So, createElementBlock as r, openBlock as u, createElementVNode as p, createCommentVNode as f, renderSlot as J, normalizeStyle as L, createVNode as al, withDirectives as Ql, unref as v, Fragment as g, renderList as C, normalizeClass as Ve, withKeys as Fa, vModelText as Ha, toDisplayString as le, defineAsyncComponent as Mt, useSlots as _o, getCurrentInstance as $o, toRefs as Lo, watchEffect as Va, createBlock as Ge, createSlots as Mo, withCtx as xe, normalizeProps as Ct, guardReactiveProps as At, mergeProps as Tl, Teleport as Co, vModelCheckbox as Ao, createTextVNode as zo } from "vue";
2
+ import { c as Pl, V as Fl, U as Hl, y as Ol, X as To, F as tt, u as Io, f as Kl, t as No, a4 as je, d as Ro, D as yl, ac as Dt, e as Po, p as Oo, ad as Il, a9 as Y, ae as Fo, h as V, af as Ba, ag as Ea, ah as Ho, ai as Wa, aj as Da, k as Se, ak as Vo, z as Bo, _ as Xa, R as vt, i as Ue, x as Xt, s as et, a7 as j, L as Eo, al as Nl, I as Wo, am as zt, C as qe, a as Do, b as Xo, o as Ya, v as Yo, w as Go, E as ll } from "./index-CjmWQAkv.js";
3
+ import { t as jl, u as Uo } from "./useResponsive-DfdjqQps.js";
4
+ import { u as qo } from "./usePrinter-BD_X6xEq.js";
5
+ import { u as Zo, B as Ko } from "./useLoading-D7YHNtLX.js";
6
+ import { u as Jl } from "./useNestedProp-DFYUwW_F.js";
7
+ import { u as Ga, a as Jo, l as Qo } from "./useTimeLabels-4la0yDx0.js";
8
+ import { u as jo } from "./useTimeLabelCollider-CIsgDrl9.js";
9
+ import en from "./img-7sjXtnNU.js";
10
+ import tn from "./Title-Cdu-aDOL.js";
11
+ import { S as ln } from "./Slicer-DzsOD_6h.js";
12
+ import { _ as Rl } from "./Shape-Bgg7Nwsz.js";
13
+ import an from "./BaseIcon-BA3j_Lwf.js";
14
+ import { _ as Ua } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const on = {
16
16
  class: "vue-data-ui-slicer-labels",
17
17
  style: { position: "relative", "z-index": "1", "pointer-events": "none" }
18
- }, jo = {
18
+ }, nn = {
19
19
  key: 0,
20
20
  style: { width: "100%", position: "relative" }
21
- }, en = {
21
+ }, un = {
22
22
  key: 0,
23
23
  class: "minimap",
24
24
  style: { width: "100%" }
25
- }, tn = ["xmlns", "viewBox"], ln = ["id"], an = ["stop-color"], on = ["d", "stroke"], nn = ["x", "width", "height", "fill", "rx"], un = ["d", "fill"], sn = ["x", "width", "height", "rx", "fill"], rn = ["x", "width", "height", "fill", "rx"], cn = ["d", "fill"], vn = ["d", "stroke"], dn = ["cx", "cy", "stroke", "fill"], hn = ["cx", "cy", "stroke", "fill"], fn = ["x1", "x2", "y2", "stroke"], mn = ["x", "height", "width", "onMouseenter"], gn = ["min", "max"], xn = ["min", "max"], bn = {
25
+ }, sn = ["xmlns", "viewBox"], rn = ["id"], cn = ["stop-color"], vn = ["d", "stroke"], dn = ["x", "width", "height", "fill", "rx"], hn = ["d", "fill"], fn = ["x", "width", "height", "rx", "fill"], mn = ["x", "width", "height", "fill", "rx"], gn = ["d", "fill"], xn = ["d", "stroke"], bn = ["cx", "cy", "stroke", "fill"], pn = ["cx", "cy", "stroke", "fill"], yn = ["x1", "x2", "y2", "stroke"], kn = ["x", "height", "width", "onMouseenter"], wn = ["min", "max"], Sn = ["min", "max"], _n = {
26
26
  __name: "SlicerPreview",
27
27
  props: {
28
28
  background: {
@@ -155,14 +155,14 @@ const Qo = {
155
155
  },
156
156
  emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
157
157
  setup(R, { expose: Vl, emit: Bl }) {
158
- mo((m) => ({
159
- ef4890c2: Tt.value,
158
+ wo((m) => ({
159
+ ef4890c2: It.value,
160
160
  20514013: Ee.value,
161
161
  "6d4a3344": El.value,
162
162
  "00868143": R.selectColor,
163
163
  62429251: Nt.value
164
164
  }));
165
- const d = R, Be = p(null), ie = p(d.min), re = p(d.max), It = x(() => !!d.minimap.length), ol = p(Pl()), Xt = p(!1), Gt = p(0), yt = x({
165
+ const d = R, Be = b(null), ie = b(d.min), re = b(d.max), Tt = x(() => !!d.minimap.length), ul = b(Pl()), Gt = b(!1), Ut = b(0), yt = x({
166
166
  get() {
167
167
  return ie.value;
168
168
  },
@@ -176,24 +176,24 @@ const Qo = {
176
176
  },
177
177
  set(m) {
178
178
  const h = Math.max(m, ie.value + 1);
179
- re.value = h, qt.value && (qt.value.value = String(h)), me("futureEnd", h);
179
+ re.value = h, Kt.value && (Kt.value.value = String(h)), me("futureEnd", h);
180
180
  }
181
181
  });
182
- pl(() => {
182
+ ol(() => {
183
183
  const m = () => {
184
- Be.value && (Gt.value = Be.value.getBoundingClientRect().width);
184
+ Be.value && (Ut.value = Be.value.getBoundingClientRect().width);
185
185
  };
186
186
  m();
187
187
  const h = jl(m, 50);
188
- window.addEventListener("resize", h), yl(() => {
188
+ window.addEventListener("resize", h), nl(() => {
189
189
  window.removeEventListener("resize", h);
190
190
  });
191
191
  });
192
- let nl = null;
193
- function qe() {
194
- clearTimeout(nl), me("update:start", Number(ie.value)), me("update:end", Number(re.value)), Xt.value = !1;
192
+ let sl = null;
193
+ function Ze() {
194
+ clearTimeout(sl), me("update:start", Number(ie.value)), me("update:end", Number(re.value)), Gt.value = !1;
195
195
  }
196
- const ul = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), me = Bl, be = x(() => {
196
+ const il = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), me = Bl, be = x(() => {
197
197
  const m = d.max - d.min, h = (ie.value - d.min) / m * 100, S = (re.value - d.min) / m * 100, U = (h + S) / 2, ze = at.value ? `calc(${U}% - ${St.value.width}px)` : Ne.value ? `calc(${U}%)` : `calc(${U}% - ${St.value.width / 2}px)`;
198
198
  return {
199
199
  left: `${h}%`,
@@ -205,7 +205,7 @@ const Qo = {
205
205
  arrowLeft: !Ne.value,
206
206
  arrowRight: !at.value
207
207
  };
208
- }), Ne = x(() => Be.value ? Be.value.getBoundingClientRect().width * ((ie.value - d.min) / (d.max - d.min)) - gt.value / 2 < 0 : !1), at = x(() => Be.value ? Be.value.getBoundingClientRect().width * ((re.value - d.min) / (d.max - d.min)) + ne.value / 2 > Be.value.getBoundingClientRect().width : !1), Tt = x(() => d.inputColor), Nt = x(() => d.background), El = x(() => `${d.selectColor}33`), Ee = x(() => d.borderColor), Ut = x(() => {
208
+ }), Ne = x(() => Be.value ? Be.value.getBoundingClientRect().width * ((ie.value - d.min) / (d.max - d.min)) - gt.value / 2 < 0 : !1), at = x(() => Be.value ? Be.value.getBoundingClientRect().width * ((re.value - d.min) / (d.max - d.min)) + ne.value / 2 > Be.value.getBoundingClientRect().width : !1), It = x(() => d.inputColor), Nt = x(() => d.background), El = x(() => `${d.selectColor}33`), Ee = x(() => d.borderColor), qt = x(() => {
209
209
  let m = [];
210
210
  for (let h = 0; h < d.minimap.length; h += 1)
211
211
  m.push(h);
@@ -225,42 +225,42 @@ const Qo = {
225
225
  Number(ie.value) > Number(m) && (ie.value = Number(m)), Number(re.value) > Number(m) && (re.value = Number(m));
226
226
  }
227
227
  );
228
- const Rt = p(null), Z = p({
228
+ const Rt = b(null), q = b({
229
229
  width: 1,
230
230
  height: 1
231
- }), ot = p(null);
232
- pl(() => {
233
- if (It.value) {
231
+ }), ot = b(null);
232
+ ol(() => {
233
+ if (Tt.value) {
234
234
  const m = jl(() => {
235
- const { width: h, height: S } = Eo({
235
+ const { width: h, height: S } = Uo({
236
236
  chart: Rt.value
237
237
  });
238
- Z.value.width = h, Z.value.height = S - 47;
238
+ q.value.width = h, q.value.height = S - 47;
239
239
  });
240
240
  ot.value = new ResizeObserver(m), ot.value.observe(Rt.value);
241
241
  }
242
- }), yl(() => {
242
+ }), nl(() => {
243
243
  ot.value && ot.value.disconnect();
244
244
  });
245
- const Zt = x(() => Math.max(1, d.max - d.min)), P = x(() => Math.max(1, d.minimap.length)), sl = x(() => P.value / Zt.value);
245
+ const Zt = x(() => Math.max(1, d.max - d.min)), P = x(() => Math.max(1, d.minimap.length)), rl = x(() => P.value / Zt.value);
246
246
  function ge(m) {
247
- const h = Math.floor((m - d.min) * sl.value);
247
+ const h = Math.floor((m - d.min) * rl.value);
248
248
  return Math.min(Math.max(0, h), P.value);
249
249
  }
250
250
  function ae(m) {
251
- const h = Math.ceil((m - d.min) * sl.value);
251
+ const h = Math.ceil((m - d.min) * rl.value);
252
252
  return Math.min(Math.max(0, h), P.value);
253
253
  }
254
- const nt = x(() => ge(ie.value)), Pt = x(() => ae(re.value)), oe = x(() => d.minimap.length ? Z.value.width / d.minimap.length : 0), pe = x(() => {
254
+ const nt = x(() => ge(ie.value)), Pt = x(() => ae(re.value)), oe = x(() => d.minimap.length ? q.value.width / d.minimap.length : 0), pe = x(() => {
255
255
  if (!d.minimap.length) return [];
256
256
  const m = Math.max(...d.minimap), h = Math.min(...d.minimap) - 10, S = m - (h > 0 ? 0 : h), U = d.minimap.map((Vt, Je) => ({
257
- x: Z.value.width / d.minimap.length * Je + oe.value / 2,
258
- y: Z.value.height - (Vt - h) / S * (Z.value.height * 0.9)
259
- })), ze = nt.value, Ht = Math.max(ze + 1, Pt.value), Qt = d.smoothMinimap ? Fl(U) : Hl(U), $t = U.slice(ze, Ht), Pe = d.smoothMinimap ? Fl($t) : Hl($t);
257
+ x: q.value.width / d.minimap.length * Je + oe.value / 2,
258
+ y: q.value.height - (Vt - h) / S * (q.value.height * 0.9)
259
+ })), ze = nt.value, Ht = Math.max(ze + 1, Pt.value), jt = d.smoothMinimap ? Fl(U) : Hl(U), _t = U.slice(ze, Ht), Pe = d.smoothMinimap ? Fl(_t) : Hl(_t);
260
260
  return {
261
- fullSet: Qt,
261
+ fullSet: jt,
262
262
  selectionSet: Pe,
263
- sliced: $t,
263
+ sliced: _t,
264
264
  firstPlot: U[ze],
265
265
  lastPlot: U[Math.max(0, Ht - 1)]
266
266
  };
@@ -270,7 +270,7 @@ const Qo = {
270
270
  x: oe.value * m + oe.value / 2,
271
271
  width: oe.value * (h - m) - oe.value
272
272
  };
273
- }), ft = p(d.minimapSelectedIndex);
273
+ }), ft = b(d.minimapSelectedIndex);
274
274
  dt(() => d.minimapSelectedIndex, (m) => {
275
275
  if ([null, void 0].includes(m)) {
276
276
  ft.value = null;
@@ -283,8 +283,8 @@ const Qo = {
283
283
  const h = nt.value, S = Pt.value;
284
284
  m >= h && m < S && me("trapMouse", m - h);
285
285
  }
286
- const ce = p(0), G = p(null), qt = p(null);
287
- function il(m) {
286
+ const ce = b(0), G = b(null), Kt = b(null);
287
+ function cl(m) {
288
288
  if (typeof m == "object" && m && "target" in m) {
289
289
  const S = m.target, U = "valueAsNumber" in S ? S.valueAsNumber : +S.value;
290
290
  return Number.isFinite(U) ? U : NaN;
@@ -292,35 +292,35 @@ const Qo = {
292
292
  const h = +m;
293
293
  return Number.isFinite(h) ? h : NaN;
294
294
  }
295
- function rl(m) {
296
- Xt.value = !0;
297
- const h = il(m);
295
+ function vl(m) {
296
+ Gt.value = !0;
297
+ const h = cl(m);
298
298
  Number.isFinite(h) && (yt.value = h);
299
299
  }
300
300
  function kt(m) {
301
- Xt.value = !0;
302
- const h = il(m);
301
+ Gt.value = !0;
302
+ const h = cl(m);
303
303
  Number.isFinite(h) && (lt.value = h);
304
304
  }
305
- const Ot = x(() => d.valueEnd - d.valueStart), O = p(!1);
306
- let Kt = p(null);
307
- const cl = x(() => (Gt.value - 48) / (d.max - d.min)), Jt = x(() => (Gt.value - 48) / (d.max - d.min) * Ot.value), $e = p(2.5), De = x(() => {
308
- const m = Gt.value - 48;
305
+ const Ot = x(() => d.valueEnd - d.valueStart), F = b(!1);
306
+ let Jt = b(null);
307
+ const dl = x(() => (Ut.value - 48) / (d.max - d.min)), Qt = x(() => (Ut.value - 48) / (d.max - d.min) * Ot.value), _e = b(2.5), We = x(() => {
308
+ const m = Ut.value - 48;
309
309
  return Math.ceil(
310
- (d.max - d.min) / ((m - Jt.value) / $e.value)
310
+ (d.max - d.min) / ((m - Qt.value) / _e.value)
311
311
  );
312
312
  });
313
- let Re = null, Ke = null, $ = null, ut = null;
314
- const vl = (m) => {
313
+ let Re = null, Ke = null, _ = null, ut = null;
314
+ const hl = (m) => {
315
315
  if (ue.value = !0, !d.enableSelectionDrag) return;
316
316
  const h = m.type === "touchstart", S = h && m.targetTouches && m.targetTouches[0] ? m.targetTouches[0] : null, U = h ? S ? S.target : null : m.target;
317
- !U || !(U instanceof Element) || U.classList && U.classList.contains("range-handle") || (O.value = !0, Kt.value = h ? S ? S.clientX : 0 : m.clientX, Re = h ? "touchmove" : "mousemove", Ke = h ? "touchend" : "mouseup", $ = h ? kl : dl, ut = h ? _ : hl, window.addEventListener(Re, $, { passive: !1 }), window.addEventListener(Ke, ut));
317
+ !U || !(U instanceof Element) || U.classList && U.classList.contains("range-handle") || (F.value = !0, Jt.value = h ? S ? S.clientX : 0 : m.clientX, Re = h ? "touchmove" : "mousemove", Ke = h ? "touchend" : "mouseup", _ = h ? kl : fl, ut = h ? $ : ml, window.addEventListener(Re, _, { passive: !1 }), window.addEventListener(Ke, ut));
318
318
  };
319
- function dl(m) {
320
- O.value && k(m.clientX);
319
+ function fl(m) {
320
+ F.value && k(m.clientX);
321
321
  }
322
322
  function kl(m) {
323
- if (!O.value || !Be.value) return;
323
+ if (!F.value || !Be.value) return;
324
324
  const h = m.target;
325
325
  if (!(h instanceof Element) || !Be.value.contains(h) || h.classList && h.classList.contains("range-handle")) return;
326
326
  m.preventDefault();
@@ -328,45 +328,45 @@ const Qo = {
328
328
  S && k(S.clientX);
329
329
  }
330
330
  function k(m) {
331
- if (!O.value) return;
332
- const h = m - Kt.value;
333
- if (Math.abs(h) > cl.value) {
331
+ if (!F.value) return;
332
+ const h = m - Jt.value;
333
+ if (Math.abs(h) > dl.value) {
334
334
  if (h > 0) {
335
- const S = Math.min(d.max, re.value + De.value);
335
+ const S = Math.min(d.max, re.value + We.value);
336
336
  lt.value = S, yt.value = S - Ot.value;
337
337
  } else {
338
- const S = Math.max(d.min, ie.value - De.value);
338
+ const S = Math.max(d.min, ie.value - We.value);
339
339
  yt.value = S, lt.value = S + Ot.value;
340
340
  }
341
- Kt.value = m;
341
+ Jt.value = m;
342
342
  }
343
343
  }
344
- function hl() {
344
+ function ml() {
345
345
  Ae();
346
346
  }
347
- function _() {
347
+ function $() {
348
348
  Ae();
349
349
  }
350
350
  function Ae() {
351
- O.value = !1, Re && $ && window.removeEventListener(Re, $), Ke && ut && window.removeEventListener(Ke, ut), Re = Ke = null, $ = ut = null, qe();
351
+ F.value = !1, Re && _ && window.removeEventListener(Re, _), Ke && ut && window.removeEventListener(Ke, ut), Re = Ke = null, _ = ut = null, Ze();
352
352
  }
353
- const st = p(!1), it = p(null), t = p(null), gt = p(1), ne = p(1), ue = p(!1);
353
+ const st = b(!1), it = b(null), t = b(null), gt = b(1), ne = b(1), ue = b(!1);
354
354
  function Ft() {
355
355
  it.value && (gt.value = it.value.getBoundingClientRect().width);
356
356
  }
357
- function _e() {
357
+ function $e() {
358
358
  t.value && (ne.value = t.value.getBoundingClientRect().width);
359
359
  }
360
- const y = p(0);
361
- function We(m) {
360
+ const y = b(0);
361
+ function De(m) {
362
362
  y.value = m === "start" ? 1 : 0;
363
363
  }
364
- const wt = p(!1), St = p({
364
+ const wt = b(!1), St = b({
365
365
  width: 0,
366
366
  left: 0
367
367
  });
368
368
  dt([ie, re], async () => {
369
- if (await al(), !it.value || !t.value) {
369
+ if (await Yt(), !it.value || !t.value) {
370
370
  wt.value = !1, St.value = { width: 0, left: 0 };
371
371
  return;
372
372
  }
@@ -377,14 +377,14 @@ const Qo = {
377
377
  width: ze,
378
378
  left: Ht - ze / 2
379
379
  };
380
- }), go(() => {
381
- Ft(), _e();
380
+ }), So(() => {
381
+ Ft(), $e();
382
382
  }), dt(() => d.labelLeft, () => {
383
- al(Ft);
383
+ Yt(Ft);
384
384
  }, { deep: !0 }), dt(() => d.labelRight, () => {
385
- al(_e);
385
+ Yt($e);
386
386
  }, { deep: !0 });
387
- const xt = p(!1), ve = x(() => {
387
+ const xt = b(!1), ve = x(() => {
388
388
  let m = { text: "" }, h = { text: "" };
389
389
  if (xt.value = !1, Ol(d.customFormat))
390
390
  try {
@@ -406,44 +406,44 @@ const Qo = {
406
406
  right: h ? h.text : ""
407
407
  };
408
408
  });
409
- return yl(() => {
410
- ot.value && ot.value.disconnect(), Re && $ && window.removeEventListener(Re, $), Ke && ut && window.removeEventListener(Ke, ut), Re = Ke = null, $ = ut = null, clearTimeout(nl);
409
+ return nl(() => {
410
+ ot.value && ot.value.disconnect(), Re && _ && window.removeEventListener(Re, _), Ke && ut && window.removeEventListener(Ke, ut), Re = Ke = null, _ = ut = null, clearTimeout(sl);
411
411
  }), Vl({
412
- setStartValue: rl,
412
+ setStartValue: vl,
413
413
  setEndValue: kt
414
- }), (m, h) => (u(), i("div", {
414
+ }), (m, h) => (u(), r("div", {
415
415
  "data-dom-to-png-ignore": "",
416
416
  style: { padding: "0 24px" },
417
417
  class: "vue-data-ui-zoom",
418
418
  ref_key: "zoomWrapper",
419
419
  ref: Be,
420
- onMousedown: vl,
421
- onTouchstart: vl
420
+ onMousedown: hl,
421
+ onTouchstart: hl
422
422
  }, [
423
- b("div", Qo, [
424
- R.valueStart !== R.refreshStartPoint || R.valueEnd !== ul.value ? (u(), i("div", jo, [
423
+ p("div", on, [
424
+ R.valueStart !== R.refreshStartPoint || R.valueEnd !== il.value ? (u(), r("div", nn, [
425
425
  R.useResetSlot ? J(m.$slots, "reset-action", {
426
426
  key: 1,
427
427
  reset: ht
428
- }, void 0, !0) : (u(), i("button", {
428
+ }, void 0, !0) : (u(), r("button", {
429
429
  key: 0,
430
430
  tabindex: "0",
431
431
  role: "button",
432
432
  class: "vue-data-ui-refresh-button",
433
433
  style: L({
434
- top: It.value ? "36px" : "-16px",
434
+ top: Tt.value ? "36px" : "-16px",
435
435
  pointerEvents: "all !important"
436
436
  }),
437
437
  onClick: ht
438
438
  }, [
439
- ll(Jo, {
439
+ al(an, {
440
440
  name: "refresh",
441
441
  stroke: R.textColor
442
442
  }, null, 8, ["stroke"])
443
443
  ], 4))
444
444
  ])) : f("", !0)
445
445
  ]),
446
- b("div", {
446
+ p("div", {
447
447
  class: "double-range-slider",
448
448
  ref_key: "minimapWrapper",
449
449
  ref: Rt,
@@ -451,30 +451,30 @@ const Qo = {
451
451
  onMouseenter: h[13] || (h[13] = (S) => ue.value = !0),
452
452
  onMouseleave: h[14] || (h[14] = (S) => ue.value = !1)
453
453
  }, [
454
- It.value ? (u(), i("div", en, [
455
- (u(), i("svg", {
456
- xmlns: v(_o),
457
- viewBox: `0 0 ${Z.value.width < 0 ? 0 : Z.value.width} ${Z.value.height < 0 ? 0 : Z.value.height}`
454
+ Tt.value ? (u(), r("div", un, [
455
+ (u(), r("svg", {
456
+ xmlns: v(To),
457
+ viewBox: `0 0 ${q.value.width < 0 ? 0 : q.value.width} ${q.value.height < 0 ? 0 : q.value.height}`
458
458
  }, [
459
- b("defs", null, [
460
- b("linearGradient", {
461
- id: ol.value,
459
+ p("defs", null, [
460
+ p("linearGradient", {
461
+ id: ul.value,
462
462
  x1: "0%",
463
463
  y1: "0%",
464
464
  x2: "0%",
465
465
  y2: "100%"
466
466
  }, [
467
- b("stop", {
467
+ p("stop", {
468
468
  offset: "0%",
469
469
  "stop-color": `${R.minimapLineColor}50`
470
- }, null, 8, an),
471
- h[15] || (h[15] = b("stop", {
470
+ }, null, 8, cn),
471
+ h[15] || (h[15] = p("stop", {
472
472
  offset: "100%",
473
473
  "stop-color": "transparent"
474
474
  }, null, -1))
475
- ], 8, ln)
475
+ ], 8, rn)
476
476
  ]),
477
- b("path", {
477
+ p("path", {
478
478
  d: `M${pe.value.fullSet}`,
479
479
  stroke: `${R.minimapLineColor}`,
480
480
  fill: "none",
@@ -482,91 +482,91 @@ const Qo = {
482
482
  "stroke-linecap": "round",
483
483
  "stroke-linejoin": "round",
484
484
  style: { opacity: "1" }
485
- }, null, 8, on),
486
- b("rect", {
485
+ }, null, 8, vn),
486
+ p("rect", {
487
487
  x: ye.value.x,
488
488
  width: ye.value.width < 0 ? 0 : ye.value.width,
489
- height: Math.max(Z.value.height, 0),
489
+ height: Math.max(q.value.height, 0),
490
490
  y: 0,
491
491
  fill: Ee.value,
492
492
  rx: R.minimapSelectionRadius,
493
493
  stroke: "none"
494
- }, null, 8, nn),
495
- b("path", {
496
- d: `M${oe.value / 2},${Math.max(Z.value.height, 0)} ${pe.value.fullSet} L${Z.value.width - oe.value / 2},${Math.max(Z.value.height, 0)}Z`,
497
- fill: `url(#${ol.value})`,
494
+ }, null, 8, dn),
495
+ p("path", {
496
+ d: `M${oe.value / 2},${Math.max(q.value.height, 0)} ${pe.value.fullSet} L${q.value.width - oe.value / 2},${Math.max(q.value.height, 0)}Z`,
497
+ fill: `url(#${ul.value})`,
498
498
  stroke: "none",
499
499
  style: { opacity: "1" }
500
- }, null, 8, un),
501
- b("rect", {
500
+ }, null, 8, hn),
501
+ p("rect", {
502
502
  x: ye.value.x,
503
503
  width: ye.value.width < 0 ? 0 : ye.value.width,
504
- height: Math.max(Z.value.height, 0),
504
+ height: Math.max(q.value.height, 0),
505
505
  y: 0,
506
506
  rx: R.minimapSelectionRadius,
507
507
  fill: Ee.value,
508
508
  style: L({
509
- opacity: O.value || Xt.value ? 0 : 1
509
+ opacity: F.value || Gt.value ? 0 : 1
510
510
  })
511
- }, null, 12, sn),
512
- b("rect", {
511
+ }, null, 12, fn),
512
+ p("rect", {
513
513
  x: ye.value.x,
514
514
  width: ye.value.width < 0 ? 0 : ye.value.width,
515
- height: Math.max(Z.value.height, 0),
515
+ height: Math.max(q.value.height, 0),
516
516
  y: 0,
517
517
  fill: R.minimapSelectedColor,
518
518
  rx: R.minimapSelectionRadius,
519
519
  style: L({
520
520
  opacity: R.minimapSelectedColorOpacity
521
521
  })
522
- }, null, 12, rn),
523
- b("path", {
524
- d: `M${pe.value.sliced[0].x},${Math.max(Z.value.height, 0)} ${pe.value.selectionSet} L${pe.value.sliced.at(-1).x},${Math.max(Z.value.height, 0)}Z`,
525
- fill: `url(#${ol.value})`,
522
+ }, null, 12, mn),
523
+ p("path", {
524
+ d: `M${pe.value.sliced[0].x},${Math.max(q.value.height, 0)} ${pe.value.selectionSet} L${pe.value.sliced.at(-1).x},${Math.max(q.value.height, 0)}Z`,
525
+ fill: `url(#${ul.value})`,
526
526
  stroke: "none",
527
527
  style: { opacity: "1" }
528
- }, null, 8, cn),
529
- b("path", {
528
+ }, null, 8, gn),
529
+ p("path", {
530
530
  d: `M ${pe.value.selectionSet}`,
531
531
  stroke: `${R.minimapLineColor}`,
532
532
  fill: "transparent",
533
533
  "stroke-width": "2",
534
534
  "stroke-linecap": "round",
535
535
  "stroke-linejoin": "round"
536
- }, null, 8, vn),
537
- b("circle", {
536
+ }, null, 8, xn),
537
+ p("circle", {
538
538
  cx: pe.value.firstPlot.x,
539
539
  cy: pe.value.firstPlot.y,
540
540
  "stroke-width": "0.5",
541
541
  stroke: Ee.value,
542
542
  r: "3",
543
543
  fill: R.minimapLineColor
544
- }, null, 8, dn),
545
- b("circle", {
544
+ }, null, 8, bn),
545
+ p("circle", {
546
546
  cx: pe.value.lastPlot.x,
547
547
  cy: pe.value.lastPlot.y,
548
548
  "stroke-width": "0.5",
549
549
  stroke: Ee.value,
550
550
  r: "3",
551
551
  fill: R.minimapLineColor
552
- }, null, 8, hn),
553
- ft.value !== null ? (u(!0), i(g, { key: 0 }, C(Ut.value, (S, U) => (u(), i("g", null, [
554
- ft.value === S && S >= nt.value && S < Pt.value ? (u(), i("line", {
552
+ }, null, 8, pn),
553
+ ft.value !== null ? (u(!0), r(g, { key: 0 }, C(qt.value, (S, U) => (u(), r("g", null, [
554
+ ft.value === S && S >= nt.value && S < Pt.value ? (u(), r("line", {
555
555
  key: 0,
556
556
  x1: oe.value * U + oe.value / 2,
557
557
  x2: oe.value * U + oe.value / 2,
558
558
  y1: 0,
559
- y2: Math.max(Z.value.height, 0),
559
+ y2: Math.max(q.value.height, 0),
560
560
  stroke: R.minimapIndicatorColor,
561
561
  "stroke-linecap": "round",
562
562
  "stroke-dasharray": "2",
563
563
  "stroke-width": "1"
564
- }, null, 8, fn)) : f("", !0)
564
+ }, null, 8, yn)) : f("", !0)
565
565
  ]))), 256)) : f("", !0),
566
- (u(!0), i(g, null, C(Ut.value, (S, U) => (u(), i("rect", {
566
+ (u(!0), r(g, null, C(qt.value, (S, U) => (u(), r("rect", {
567
567
  x: oe.value * U,
568
568
  y: 0,
569
- height: Math.max(Z.value.height, 0),
569
+ height: Math.max(q.value.height, 0),
570
570
  width: oe.value < 0 ? 0 : oe.value,
571
571
  fill: "transparent",
572
572
  style: L([{ "pointer-events": "all !important" }, {
@@ -578,11 +578,11 @@ const Qo = {
578
578
  onMouseleave: h[2] || (h[2] = (ze) => {
579
579
  ft.value = null, me("trapMouse", null);
580
580
  })
581
- }, null, 44, mn))), 256))
582
- ], 8, tn))
581
+ }, null, 44, kn))), 256))
582
+ ], 8, sn))
583
583
  ])) : f("", !0),
584
- h[16] || (h[16] = b("div", { class: "slider-track" }, null, -1)),
585
- b("div", {
584
+ h[16] || (h[16] = p("div", { class: "slider-track" }, null, -1)),
585
+ p("div", {
586
586
  class: Ve({
587
587
  "range-highlight": !0,
588
588
  move: R.enableSelectionDrag
@@ -594,55 +594,55 @@ const Qo = {
594
594
  cursor: st.value ? "grabbing" : "grab"
595
595
  })
596
596
  }, null, 38),
597
- R.enableRangeHandles ? Ql((u(), i("input", {
597
+ R.enableRangeHandles ? Ql((u(), r("input", {
598
598
  ref_key: "rangeStart",
599
599
  ref: G,
600
600
  key: `range-min${ce.value}`,
601
601
  type: "range",
602
- class: Ve({ "range-left": !0, "range-handle": !0, "range-minimap": It.value && R.verticalHandles }),
602
+ class: Ve({ "range-left": !0, "range-handle": !0, "range-minimap": Tt.value && R.verticalHandles }),
603
603
  min: R.min,
604
604
  max: R.max,
605
605
  "onUpdate:modelValue": h[5] || (h[5] = (S) => yt.value = S),
606
- onInput: h[6] || (h[6] = (S) => rl(S)),
607
- onChange: qe,
608
- onKeyup: Ra(qe, ["enter"]),
609
- onBlur: qe,
610
- onMouseenter: h[7] || (h[7] = (S) => We("start")),
606
+ onInput: h[6] || (h[6] = (S) => vl(S)),
607
+ onChange: Ze,
608
+ onKeyup: Fa(Ze, ["enter"]),
609
+ onBlur: Ze,
610
+ onMouseenter: h[7] || (h[7] = (S) => De("start")),
611
611
  onPointermove: h[8] || (h[8] = (S) => yt.value = +S.target.value),
612
- onPointerup: qe
613
- }, null, 42, gn)), [
612
+ onPointerup: Ze
613
+ }, null, 42, wn)), [
614
614
  [
615
- Pa,
615
+ Ha,
616
616
  yt.value,
617
617
  void 0,
618
618
  { number: !0 }
619
619
  ]
620
620
  ]) : f("", !0),
621
- R.enableRangeHandles ? Ql((u(), i("input", {
621
+ R.enableRangeHandles ? Ql((u(), r("input", {
622
622
  key: 2,
623
623
  ref_key: "rangeEnd",
624
- ref: qt,
624
+ ref: Kt,
625
625
  type: "range",
626
- class: Ve({ "range-right": !0, "range-handle": !0, "range-minimap": It.value && R.verticalHandles }),
626
+ class: Ve({ "range-right": !0, "range-handle": !0, "range-minimap": Tt.value && R.verticalHandles }),
627
627
  min: R.min,
628
628
  max: R.max,
629
629
  "onUpdate:modelValue": h[9] || (h[9] = (S) => lt.value = S),
630
630
  onInput: h[10] || (h[10] = (S) => kt(S)),
631
- onChange: qe,
632
- onKeyup: Ra(qe, ["enter"]),
633
- onBlur: qe,
634
- onMouseenter: h[11] || (h[11] = (S) => We("end")),
631
+ onChange: Ze,
632
+ onKeyup: Fa(Ze, ["enter"]),
633
+ onBlur: Ze,
634
+ onMouseenter: h[11] || (h[11] = (S) => De("end")),
635
635
  onPointermove: h[12] || (h[12] = (S) => lt.value = +S.target.value),
636
- onPointerup: qe
637
- }, null, 42, xn)), [
636
+ onPointerup: Ze
637
+ }, null, 42, Sn)), [
638
638
  [
639
- Pa,
639
+ Ha,
640
640
  lt.value,
641
641
  void 0,
642
642
  { number: !0 }
643
643
  ]
644
644
  ]) : f("", !0),
645
- ve.value.left ? (u(), i("div", {
645
+ ve.value.left ? (u(), r("div", {
646
646
  key: 3,
647
647
  ref_key: "tooltipLeft",
648
648
  ref: it,
@@ -661,7 +661,7 @@ const Qo = {
661
661
  visibility: wt.value || ve.value.left === ve.value.right ? "hidden" : "visible"
662
662
  })
663
663
  }, le(ve.value.left), 7)) : f("", !0),
664
- (wt.value || ve.value.left === ve.value.right) && (ve.value.left || ve.value.right) ? (u(), i("div", {
664
+ (wt.value || ve.value.left === ve.value.right) && (ve.value.left || ve.value.right) ? (u(), r("div", {
665
665
  key: 4,
666
666
  ref: "tooltipMerge",
667
667
  class: Ve({
@@ -680,7 +680,7 @@ const Qo = {
680
680
  zIndex: "4"
681
681
  })
682
682
  }, le(ve.value.left === ve.value.right ? ve.value.left : `${ve.value.left} - ${ve.value.right}`), 7)) : f("", !0),
683
- ve.value.right ? (u(), i("div", {
683
+ ve.value.right ? (u(), r("div", {
684
684
  key: 5,
685
685
  ref_key: "tooltipRight",
686
686
  ref: t,
@@ -702,51 +702,51 @@ const Qo = {
702
702
  ], 544)
703
703
  ], 544));
704
704
  }
705
- }, pn = /* @__PURE__ */ Wa(bn, [["__scopeId", "data-v-58fccd9f"]]), yn = ["id"], kn = ["id"], wn = ["viewBox", "aria-label"], Sn = ["x", "y", "width", "height"], $n = { key: 1 }, _n = { class: "vue-ui-xy-grid" }, Ln = ["stroke", "x1", "x2", "y1", "y2"], Mn = ["stroke", "x1", "x2", "y1", "y2"], Cn = { key: 1 }, An = ["x1", "x2", "y1", "y2", "stroke"], zn = ["x1", "x2", "y1", "y2", "stroke"], In = ["x1", "x2", "y1", "y2", "stroke"], Tn = { key: 3 }, Nn = ["d", "stroke"], Rn = { key: 4 }, Pn = ["d", "stroke"], On = ["id"], Fn = ["stop-color"], Hn = ["stop-color"], Vn = ["stop-color"], Bn = ["id"], En = ["stop-color"], Dn = ["stop-color"], Wn = ["stop-color"], Yn = ["id"], Xn = ["stop-color"], Gn = ["stop-color"], Un = ["id"], Zn = ["stop-color"], qn = ["stop-color"], Kn = ["id"], Jn = ["stop-color"], Qn = ["stop-color"], jn = ["x", "y", "height", "width", "fill"], eu = ["x", "y", "width"], tu = { key: 0 }, lu = ["x", "y", "height", "width", "fill"], au = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ou = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], nu = ["width", "x", "y"], uu = { key: 0 }, su = ["id"], iu = ["fill"], ru = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], cu = ["x", "y", "font-size", "fill"], vu = ["stroke", "x1", "x2", "y1", "y2"], du = { key: 3 }, hu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], mu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gu = ["fill", "font-size", "transform"], xu = ["x1", "x2", "y1", "y2", "stroke"], bu = ["x", "y", "font-size", "fill"], pu = ["x1", "x2", "y1", "y2", "stroke"], yu = ["x", "y", "font-size", "fill"], ku = ["width", "x", "y"], wu = { style: { width: "100%" } }, Su = { key: 0 }, $u = ["id"], _u = ["fill"], Lu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Mu = ["x", "y", "font-size", "fill"], Cu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Au = ["d", "stroke", "stroke-width", "stroke-dasharray"], zu = { key: 6 }, Iu = { key: 7 }, Tu = ["d", "fill", "fill-opacity"], Nu = { key: 0 }, Ru = ["d", "fill"], Pu = ["d", "fill"], Ou = ["d", "fill"], Fu = ["d", "fill"], Hu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Vu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Bu = ["width", "x", "y"], Eu = { style: { width: "100%" } }, Du = { key: 3 }, Wu = ["id"], Yu = ["fill"], Xu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Gu = ["x", "y", "font-size", "fill"], Uu = { key: 8 }, Zu = ["x", "y", "font-size", "fill"], qu = ["x", "y", "font-size", "fill", "font-weight"], Ku = { key: 9 }, Ju = ["x", "y", "font-size", "fill"], Qu = { key: 10 }, ju = ["x", "y"], es = ["innerHTML"], ts = ["x", "y"], ls = ["innerHTML"], as = ["x1", "x2", "y1", "y2", "stroke"], os = { key: 11 }, ns = ["x", "y", "font-size", "fill"], us = { key: 12 }, ss = ["x", "y"], is = ["innerHTML"], rs = ["x", "y"], cs = ["innerHTML"], vs = ["x1", "x2", "y1", "y2", "stroke"], ds = ["x", "y", "font-size", "fill", "innerHTML"], hs = ["x", "y", "font-size", "fill", "innerHTML"], fs = ["x", "y", "font-size", "fill", "innerHTML"], ms = ["x", "y", "font-size", "fill", "innerHTML"], gs = ["id"], xs = ["stop-color"], bs = ["stop-color"], ps = ["x", "y", "width", "height", "fill", "onMouseenter"], ys = ["font-size", "fill", "transform"], ks = ["x", "y", "font-size", "fill"], ws = ["text-anchor", "font-size", "fill", "transform", "onClick"], Ss = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], $s = { key: 15 }, _s = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ls = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ms = ["y", "x", "width", "height", "fill"], Cs = ["id", "x", "y", "font-size", "fill", "text-anchor"], As = {
705
+ }, $n = /* @__PURE__ */ Ua(_n, [["__scopeId", "data-v-58fccd9f"]]), Ln = ["id"], Mn = ["id"], Cn = ["viewBox", "aria-label"], An = ["x", "y", "width", "height"], zn = { key: 1 }, Tn = { class: "vue-ui-xy-grid" }, In = ["stroke", "x1", "x2", "y1", "y2"], Nn = ["stroke", "x1", "x2", "y1", "y2"], Rn = { key: 1 }, Pn = ["x1", "x2", "y1", "y2", "stroke"], On = ["x1", "x2", "y1", "y2", "stroke"], Fn = ["x1", "x2", "y1", "y2", "stroke"], Hn = { key: 3 }, Vn = ["d", "stroke"], Bn = { key: 4 }, En = ["d", "stroke"], Wn = ["id"], Dn = ["stop-color"], Xn = ["stop-color"], Yn = ["stop-color"], Gn = ["id"], Un = ["stop-color"], qn = ["stop-color"], Zn = ["stop-color"], Kn = ["id"], Jn = ["stop-color"], Qn = ["stop-color"], jn = ["id"], eu = ["stop-color"], tu = ["stop-color"], lu = ["id"], au = ["stop-color"], ou = ["stop-color"], nu = ["x", "y", "height", "width", "fill"], uu = ["x", "y", "width"], su = { key: 0 }, iu = ["x", "y", "height", "width", "fill"], ru = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], cu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vu = ["width", "x", "y"], du = { key: 0 }, hu = ["id"], fu = ["fill"], mu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], gu = ["x", "y", "font-size", "fill"], xu = ["stroke", "x1", "x2", "y1", "y2"], bu = { key: 3 }, pu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ku = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wu = ["fill", "font-size", "transform"], Su = ["x1", "x2", "y1", "y2", "stroke"], _u = ["x", "y", "font-size", "fill"], $u = ["x1", "x2", "y1", "y2", "stroke"], Lu = ["x", "y", "font-size", "fill"], Mu = ["width", "x", "y"], Cu = { style: { width: "100%" } }, Au = { key: 0 }, zu = ["id"], Tu = ["fill"], Iu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Nu = ["x", "y", "font-size", "fill"], Ru = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ou = { key: 6 }, Fu = { key: 7 }, Hu = ["d", "fill", "fill-opacity"], Vu = { key: 0 }, Bu = ["d", "fill"], Eu = ["d", "fill"], Wu = ["d", "fill"], Du = ["d", "fill"], Xu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Yu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Gu = ["width", "x", "y"], Uu = { style: { width: "100%" } }, qu = { key: 3 }, Zu = ["id"], Ku = ["fill"], Ju = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Qu = ["x", "y", "font-size", "fill"], ju = { key: 8 }, es = ["x", "y", "font-size", "fill"], ts = ["x", "y", "font-size", "fill", "font-weight"], ls = { key: 9 }, as = ["x", "y", "font-size", "fill"], os = { key: 10 }, ns = ["x", "y"], us = ["innerHTML"], ss = ["x", "y"], is = ["innerHTML"], rs = ["x1", "x2", "y1", "y2", "stroke"], cs = { key: 11 }, vs = ["x", "y", "font-size", "fill"], ds = { key: 12 }, hs = ["x", "y"], fs = ["innerHTML"], ms = ["x", "y"], gs = ["innerHTML"], xs = ["x1", "x2", "y1", "y2", "stroke"], bs = ["x", "y", "font-size", "fill", "innerHTML"], ps = ["x", "y", "font-size", "fill", "innerHTML"], ys = ["x", "y", "font-size", "fill", "innerHTML"], ks = ["x", "y", "font-size", "fill", "innerHTML"], ws = ["id"], Ss = ["stop-color"], _s = ["stop-color"], $s = ["x", "y", "width", "height", "fill", "onMouseenter"], Ls = ["font-size", "fill", "transform"], Ms = ["x", "y", "font-size", "fill"], Cs = ["text-anchor", "font-size", "fill", "transform", "onClick"], As = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], zs = { key: 15 }, Ts = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Is = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ns = ["y", "x", "width", "height", "fill"], Rs = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ps = {
706
706
  key: 16,
707
707
  style: { "pointer-events": "none" }
708
- }, zs = ["x", "y"], Is = ["innerHTML"], Ts = ["cx", "cy", "r", "fill"], Ns = ["data-start", "data-end"], Rs = {
708
+ }, Os = ["x", "y"], Fs = ["innerHTML"], Hs = ["cx", "cy", "r", "fill"], Vs = ["data-start", "data-end"], Bs = {
709
709
  key: 4,
710
710
  class: "vue-data-ui-watermark"
711
- }, Ps = {
711
+ }, Es = {
712
712
  class: "vue-ui-xy-tag-arrow",
713
713
  height: "20",
714
714
  viewBox: "0 0 10 20",
715
715
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
716
- }, Os = ["fill"], Fs = ["innerHTML"], Hs = {
716
+ }, Ws = ["fill"], Ds = ["innerHTML"], Xs = {
717
717
  class: "vue-ui-xy-tag-arrow",
718
718
  height: "100%",
719
719
  viewBox: "0 0 10 20",
720
720
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
721
- }, Vs = ["fill"], Bs = ["innerHTML"], Es = {
721
+ }, Ys = ["fill"], Gs = ["innerHTML"], Us = {
722
722
  class: "vue-ui-xy-tag-arrow",
723
723
  height: "20",
724
724
  viewBox: "0 0 10 20",
725
725
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
726
- }, Ds = ["fill"], Ws = ["innerHTML"], Ys = {
726
+ }, qs = ["fill"], Zs = ["innerHTML"], Ks = {
727
727
  class: "vue-ui-xy-tag-arrow",
728
728
  height: "100%",
729
729
  viewBox: "0 0 10 20",
730
730
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
731
- }, Xs = ["fill"], Gs = ["innerHTML"], Us = ["id"], Zs = ["onClick"], qs = {
731
+ }, Js = ["fill"], Qs = ["innerHTML"], js = ["id"], ei = ["onClick"], ti = {
732
732
  key: 0,
733
733
  viewBox: "0 0 20 12",
734
734
  height: "14",
735
735
  width: "20"
736
- }, Ks = ["stroke", "fill"], Js = {
736
+ }, li = ["stroke", "fill"], ai = {
737
737
  key: 1,
738
738
  viewBox: "0 0 40 40",
739
739
  height: "14",
740
740
  width: "14"
741
- }, Qs = ["fill"], js = ["fill"], ei = {
741
+ }, oi = ["fill"], ni = ["fill"], ui = {
742
742
  key: 2,
743
743
  viewBox: "0 0 12 12",
744
744
  height: "14",
745
745
  width: "14"
746
- }, ti = {
746
+ }, si = {
747
747
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
748
748
  "data-dom-to-png-ignore": ""
749
- }, li = ["innerHTML"], ai = {
749
+ }, ii = ["innerHTML"], ri = {
750
750
  __name: "vue-ui-xy",
751
751
  props: {
752
752
  config: {
@@ -768,24 +768,24 @@ const Qo = {
768
768
  },
769
769
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
770
770
  setup(R, { expose: Vl, emit: Bl }) {
771
- const d = R, Be = Mt(() => import("./DataTable-BkEwtdpl.js")), ie = Mt(() => import("./Tooltip-2KuV61f8.js")), re = Mt(() => import("./UserOptions-DS-5I2Ok.js")), It = Mt(() => import("./BaseIcon-Ct07hrXe.js")), ol = Mt(() => import("./vue-ui-table-sparkline-CEj7Pwxx.js")), Xt = Mt(() => import("./vue-ui-accordion-1x5Li2YN.js")), Gt = Mt(() => import("./PackageVersion-TDeGly1K.js")), yt = Mt(() => import("./PenAndPaper-BXRuklxc.js")), lt = Bl, nl = xo(), qe = bo(), { vue_ui_xy: ul } = Lo(), me = p(null), be = p(null), Ne = p(null), at = p(null), Tt = p(null), Nt = p(null), El = p(null), Ee = p(null), Ut = p(null), ht = p(null), Rt = p(null), Z = p(null), ot = p(null), Zt = p(0), P = p(null), sl = p(!0), ge = p(600), ae = p(1e3), nt = p("0 0 1000 600"), Pt = p({ x: 0, y: 0 }), oe = p({ line: "line", bar: "bar", plot: "plot" }), pe = p(!1), ye = p(!1), ft = p(!1), mt = p(null), ce = p([]), G = p(Pl()), qt = p(0), il = p(0), rl = p(0), kt = p(!0), Ot = p(0), O = p(null), Kt = p(!1), cl = p(!0), Jt = p(!0), $e = p(null), De = p({}), Re = p(null), Ke = p(!1), $ = p(null), ut = x(() => ({
771
+ const d = R, Be = Mt(() => import("./DataTable-Co-fVzdq.js")), ie = Mt(() => import("./Tooltip-mB2Rs1Vj.js")), re = Mt(() => import("./UserOptions-BMoiHEKE.js")), Tt = Mt(() => import("./BaseIcon-BA3j_Lwf.js")), ul = Mt(() => import("./vue-ui-table-sparkline-CrEJ_BYI.js")), Gt = Mt(() => import("./vue-ui-accordion-BOmbEAe4.js")), Ut = Mt(() => import("./PackageVersion-DkN4tXY6.js")), yt = Mt(() => import("./PenAndPaper-C5tGS7J9.js")), lt = Bl, sl = _o(), Ze = $o(), { vue_ui_xy: il } = Io(), me = b(null), be = b(null), Ne = b(null), at = b(null), It = b(null), Nt = b(null), El = b(null), Ee = b(null), qt = b(null), ht = b(null), Rt = b(null), q = b(null), ot = b(null), Zt = b(0), P = b(null), rl = b(!0), ge = b(600), ae = b(1e3), nt = b("0 0 1000 600"), Pt = b({ x: 0, y: 0 }), oe = b({ line: "line", bar: "bar", plot: "plot" }), pe = b(!1), ye = b(!1), ft = b(!1), mt = b(null), ce = b([]), G = b(Pl()), Kt = b(0), cl = b(0), vl = b(0), kt = b(!0), Ot = b(0), F = b(null), Jt = b(!1), dl = b(!0), Qt = b(!0), _e = b(null), We = b({}), Re = b(null), Ke = b(!1), _ = b(null), ut = x(() => ({
772
772
  height: ge.value,
773
773
  width: ae.value
774
774
  }));
775
- function vl(l) {
775
+ function hl(l) {
776
776
  return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
777
777
  }
778
- function dl(l, s, e = 0) {
778
+ function fl(l, s, e = 0) {
779
779
  return Number.isFinite(l) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? l / s : e;
780
780
  }
781
- const kl = p(!1), k = p({
781
+ const kl = b(!1), k = b({
782
782
  dataLabels: { show: !0 },
783
783
  showTooltip: !0,
784
784
  showTable: !1,
785
785
  isStacked: !1,
786
786
  useIndividualScale: !1
787
787
  });
788
- function hl() {
788
+ function ml() {
789
789
  kl.value ? (k.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, k.value.useIndividualScale == null && (k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (k.value = {
790
790
  dataLabels: { show: !0 },
791
791
  showTooltip: t.value.chart.tooltip.show === !0,
@@ -794,13 +794,13 @@ const Qo = {
794
794
  useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
795
795
  }, kl.value = !0);
796
796
  }
797
- const _ = p({
797
+ const $ = b({
798
798
  xAxis: 18,
799
799
  yAxis: 12,
800
800
  dataLabels: 20,
801
801
  plotLabels: 10
802
- }), Ae = p({ plot: 3, line: 3 });
803
- pl(() => {
802
+ }), Ae = b({ plot: 3, line: 3 });
803
+ ol(() => {
804
804
  Ke.value = !0, d.dataset.length && d.dataset.forEach((l, s) => {
805
805
  [null, void 0].includes(l.series) && Kl({
806
806
  componentName: "VueUiXy",
@@ -813,20 +813,20 @@ const Qo = {
813
813
  });
814
814
  function st() {
815
815
  if (!Object.keys(d.config || {}).length)
816
- return ul;
816
+ return il;
817
817
  const l = Jl({
818
818
  userConfig: d.config,
819
- defaultConfig: ul
819
+ defaultConfig: il
820
820
  });
821
- return d.config && Ze(d.config, "chart.highlightArea") && (Array.isArray(d.config.chart.highlightArea) ? l.chart.highlightArea = d.config.chart.highlightArea : l.chart.highlightArea = [d.config.chart.highlightArea]), d.config && Ze(d.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = d.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, d.config && Ze(d.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = d.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, d.config && Ze(d.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = d.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, d.config && Ze(d.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = d.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, d.config && Ze(d.config, "chart.grid.labels.yAxis.groupColor") ? l.chart.grid.labels.yAxis.groupColor = d.config.chart.grid.labels.yAxis.groupColor : l.chart.grid.labels.yAxis.groupColor = null, d.config && d.config.chart.annotations && Array.isArray(d.config.chart.annotations) && d.config.chart.annotations.length ? l.chart.annotations = d.config.chart.annotations.map((s) => Jl({
822
- defaultConfig: ul.chart.annotations[0],
821
+ return d.config && qe(d.config, "chart.highlightArea") && (Array.isArray(d.config.chart.highlightArea) ? l.chart.highlightArea = d.config.chart.highlightArea : l.chart.highlightArea = [d.config.chart.highlightArea]), d.config && qe(d.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = d.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, d.config && qe(d.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = d.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, d.config && qe(d.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = d.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, d.config && qe(d.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = d.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, d.config && qe(d.config, "chart.grid.labels.yAxis.groupColor") ? l.chart.grid.labels.yAxis.groupColor = d.config.chart.grid.labels.yAxis.groupColor : l.chart.grid.labels.yAxis.groupColor = null, d.config && d.config.chart.annotations && Array.isArray(d.config.chart.annotations) && d.config.chart.annotations.length ? l.chart.annotations = d.config.chart.annotations.map((s) => Jl({
822
+ defaultConfig: il.chart.annotations[0],
823
823
  userConfig: s
824
- })) : l.chart.annotations = [], d.config && Ze(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((s) => s.type === "bar") && (l.chart.grid.position = "middle", Ze(d.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), d.config && Ze(d.config, "chart.grid.labels.yAxis.serieNameFormatter") ? l.chart.grid.labels.yAxis.serieNameFormatter = d.config.chart.grid.labels.yAxis.serieNameFormatter : l.chart.grid.labels.yAxis.serieNameFormatter = null, d.config && Ze(d.config, "events.datapointEnter") ? l.events.datapointEnter = d.config.events.datapointEnter : l.events.datapointEnter = null, d.config && Ze(d.config, "events.datapointLeave") ? l.events.datapointLeave = d.config.events.datapointLeave : l.events.datapointLeave = null, d.config && Ze(d.config, "events.datapointClick") ? l.events.datapointClick = d.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
824
+ })) : l.chart.annotations = [], d.config && qe(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((s) => s.type === "bar") && (l.chart.grid.position = "middle", qe(d.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), d.config && qe(d.config, "chart.grid.labels.yAxis.serieNameFormatter") ? l.chart.grid.labels.yAxis.serieNameFormatter = d.config.chart.grid.labels.yAxis.serieNameFormatter : l.chart.grid.labels.yAxis.serieNameFormatter = null, d.config && qe(d.config, "events.datapointEnter") ? l.events.datapointEnter = d.config.events.datapointEnter : l.events.datapointEnter = null, d.config && qe(d.config, "events.datapointLeave") ? l.events.datapointLeave = d.config.events.datapointLeave : l.events.datapointLeave = null, d.config && qe(d.config, "events.datapointClick") ? l.events.datapointClick = d.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
825
825
  ...Jl({
826
- userConfig: Ho.vue_ui_xy[l.theme] || d.config,
826
+ userConfig: Xo.vue_ui_xy[l.theme] || d.config,
827
827
  defaultConfig: l
828
828
  }),
829
- customPalette: Fo[l.theme] || d.palette
829
+ customPalette: Do[l.theme] || d.palette
830
830
  } : l;
831
831
  }
832
832
  const it = x({
@@ -836,8 +836,8 @@ const Qo = {
836
836
  set(l) {
837
837
  return l;
838
838
  }
839
- }), t = p(st()), gt = x(() => !!t.value.debug), { loading: ne, FINAL_DATASET: ue, manualLoading: Ft } = Wo({
840
- ...po(d),
839
+ }), t = b(st()), gt = x(() => !!t.value.debug), { loading: ne, FINAL_DATASET: ue, manualLoading: Ft } = Zo({
840
+ ...Lo(d),
841
841
  FINAL_CONFIG: t,
842
842
  prepareConfig: st,
843
843
  callback: () => {
@@ -860,7 +860,7 @@ const Qo = {
860
860
  color: "#CACACA"
861
861
  }
862
862
  ],
863
- skeletonConfig: Mo({
863
+ skeletonConfig: No({
864
864
  defaultConfig: t.value,
865
865
  userConfig: {
866
866
  useCssAnimation: !1,
@@ -917,12 +917,12 @@ const Qo = {
917
917
  }
918
918
  }
919
919
  })
920
- }), _e = x({
920
+ }), $e = x({
921
921
  get: () => Math.max(...ue.value.map((l) => je({ data: l.series, threshold: t.value.downsample.threshold }).length)),
922
922
  set: (l) => l
923
- }), y = p({ start: 0, end: _e.value }), We = p({ start: 0, end: _e.value }), wt = x(() => t.value.chart.zoom.preview.enable && (We.value.start !== y.value.start || We.value.end !== y.value.end));
923
+ }), y = b({ start: 0, end: $e.value }), De = b({ start: 0, end: $e.value }), wt = x(() => t.value.chart.zoom.preview.enable && (De.value.start !== y.value.start || De.value.end !== y.value.end));
924
924
  function St(l, s) {
925
- We.value[l] = s;
925
+ De.value[l] = s;
926
926
  }
927
927
  function xt() {
928
928
  const l = Math.max(
@@ -933,14 +933,14 @@ const Qo = {
933
933
  }).length)
934
934
  );
935
935
  let s = Math.max(0, Math.min(y.value.start ?? 0, l - 1)), e = Math.max(s + 1, Math.min(y.value.end ?? l, l));
936
- (!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), y.value = { start: s, end: e }, We.value.start = s, We.value.end = e;
936
+ (!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), y.value = { start: s, end: e }, De.value.start = s, De.value.end = e;
937
937
  }
938
938
  const ve = x(() => {
939
- const { left: l, top: s, width: e, height: n } = c.value, a = y.value.start, o = y.value.end - a, T = e / o, B = We.value.start - a, E = We.value.end - a, M = Math.max(0, Math.min(o, B)), F = Math.max(0, Math.min(o, E));
939
+ const { left: l, top: s, width: e, height: n } = c.value, a = y.value.start, o = y.value.end - a, A = e / o, B = De.value.start - a, E = De.value.end - a, M = Math.max(0, Math.min(o, B)), O = Math.max(0, Math.min(o, E));
940
940
  return {
941
- x: l + M * T,
941
+ x: l + M * A,
942
942
  y: s,
943
- width: (F - M) * T,
943
+ width: (O - M) * A,
944
944
  height: n,
945
945
  fill: t.value.chart.zoom.preview.fill,
946
946
  stroke: t.value.chart.zoom.preview.stroke,
@@ -957,27 +957,27 @@ const Qo = {
957
957
  });
958
958
  dt(() => d.selectedXIndex, (l) => {
959
959
  if ([null, void 0].includes(d.selectedXIndex)) {
960
- $.value = null;
960
+ _.value = null;
961
961
  return;
962
962
  }
963
963
  const s = l - y.value.start;
964
- s < 0 || l >= y.value.end ? $.value = null : $.value = s ?? null;
964
+ s < 0 || l >= y.value.end ? _.value = null : _.value = s ?? null;
965
965
  }, { immediate: !0 });
966
- const { isPrinting: m, isImaging: h, generatePdf: S, generateImage: U } = Do({
966
+ const { isPrinting: m, isImaging: h, generatePdf: S, generateImage: U } = qo({
967
967
  elementId: `vue-ui-xy_${G.value}`,
968
968
  fileName: t.value.chart.title.text || "vue-ui-xy",
969
969
  options: t.value.chart.userOptions.print
970
- }), ze = p(!1), Ht = x(() => Co(t.value.customPalette)), Qt = x(() => {
970
+ }), ze = b(!1), Ht = x(() => Ro(t.value.customPalette)), jt = x(() => {
971
971
  if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
972
972
  return t.value.chart.grid.labels.yAxis.scaleMin;
973
973
  const l = Math.min(...Je.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.min(...s.series)));
974
974
  return l > 0 ? 0 : l;
975
- }), $t = x(() => {
975
+ }), _t = x(() => {
976
976
  if (t.value.chart.grid.labels.yAxis.scaleMax)
977
977
  return t.value.chart.grid.labels.yAxis.scaleMax;
978
978
  const l = Math.max(...Je.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.max(...s.series)));
979
- return Qt.value === l ? l + 1 : l;
980
- }), Pe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? bl(Qt.value, $t.value < 0 ? 0 : $t.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : Wt(Qt.value, $t.value < 0 ? 0 : $t.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), Vt = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Pe.value.min >= 0 ? 0 : Math.abs(Pe.value.min) : -Pe.value.min), Je = x(() => sl.value ? ue.value.map((l, s) => {
979
+ return jt.value === l ? l + 1 : l;
980
+ }), Pe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? yl(jt.value, _t.value < 0 ? 0 : _t.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : Dt(jt.value, _t.value < 0 ? 0 : _t.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), Vt = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Pe.value.min >= 0 ? 0 : Math.abs(Pe.value.min) : -Pe.value.min), Je = x(() => rl.value ? ue.value.map((l, s) => {
981
981
  const e = je({
982
982
  data: l.series,
983
983
  threshold: t.value.downsample.threshold
@@ -985,8 +985,8 @@ const Qo = {
985
985
  return {
986
986
  ...l,
987
987
  slotAbsoluteIndex: s,
988
- series: e.map((a) => Tl(a) ? a : null).slice(y.value.start, y.value.end),
989
- color: Ao(l.color ? l.color : Ht.value[s] ? Ht.value[s] : zo[s]),
988
+ series: e.map((a) => Il(a) ? a : null).slice(y.value.start, y.value.end),
989
+ color: Po(l.color ? l.color : Ht.value[s] ? Ht.value[s] : Oo[s]),
990
990
  id: n,
991
991
  scaleLabel: l.scaleLabel || n
992
992
  };
@@ -997,77 +997,77 @@ const Qo = {
997
997
  absoluteValues: l.series,
998
998
  segregate: () => ga(l),
999
999
  isSegregated: ce.value.includes(l.id)
1000
- }))), Ye = x(() => Je.value.map((l, s) => ({
1000
+ }))), Xe = x(() => Je.value.map((l, s) => ({
1001
1001
  ...l,
1002
1002
  series: l.series.map((e) => e + Vt.value),
1003
1003
  absoluteValues: l.series
1004
1004
  })).filter((l) => !ce.value.includes(l.id)));
1005
- function Ya() {
1005
+ function qa() {
1006
1006
  let l = 0;
1007
- Rt.value && (l = Array.from(Rt.value.querySelectorAll("text")).reduce((a, r) => {
1008
- const o = r.getComputedTextLength();
1007
+ Rt.value && (l = Array.from(Rt.value.querySelectorAll("text")).reduce((a, i) => {
1008
+ const o = i.getComputedTextLength();
1009
1009
  return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
1010
1010
  }, 0));
1011
- const s = Ut.value ? Ut.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + _.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
1011
+ const s = qt.value ? qt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + $.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
1012
1012
  return l + s + e;
1013
1013
  }
1014
- const Dl = p(0), Xa = jl((l) => {
1015
- Dl.value = l;
1014
+ const Wl = b(0), Za = jl((l) => {
1015
+ Wl.value = l;
1016
1016
  }, 100);
1017
- yo((l) => {
1017
+ Va((l) => {
1018
1018
  const s = ht.value;
1019
1019
  if (!s) return;
1020
1020
  const e = new ResizeObserver((n) => {
1021
- Xa(n[0].contentRect.height);
1021
+ Za(n[0].contentRect.height);
1022
1022
  });
1023
1023
  e.observe(s), l(() => e.disconnect());
1024
- }), yl(() => {
1025
- Dl.value = 0;
1024
+ }), nl(() => {
1025
+ Wl.value = 0;
1026
1026
  });
1027
1027
  const ea = x(() => {
1028
1028
  let l = 0;
1029
1029
  Ee.value && (l = Ee.value.getBBox().height);
1030
1030
  let s = 0;
1031
- return ht.value && (s = Dl.value), l + s + _.value.xAxis;
1032
- }), Ga = x(() => ue.value.some((l) => l.useProgression)), c = x(() => {
1031
+ return ht.value && (s = Wl.value), l + s + $.value.xAxis;
1032
+ }), Ka = x(() => ue.value.some((l) => l.useProgression)), c = x(() => {
1033
1033
  let l = 0;
1034
1034
  const s = 36;
1035
- t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (ue.value.length - ce.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = Ya());
1036
- const e = t.value.chart.labels.fontSize * 1.1, n = Ga.value ? 24 : 6;
1035
+ t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (ue.value.length - ce.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = qa());
1036
+ const e = t.value.chart.labels.fontSize * 1.1, n = Ka.value ? 24 : 6;
1037
1037
  if (ht.value) {
1038
1038
  const o = ht.value.getBBox().x;
1039
1039
  o < 0 && (l += Math.abs(o));
1040
1040
  }
1041
- const a = ae.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - n - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a / I.value / 2;
1041
+ const a = ae.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - n - t.value.chart.padding.left - t.value.chart.padding.right, i = t.value.chart.grid.position === "middle" ? 0 : a / I.value / 2;
1042
1042
  return {
1043
1043
  top: t.value.chart.padding.top + e,
1044
1044
  right: ae.value - n - t.value.chart.padding.right,
1045
1045
  bottom: ge.value - ea.value - t.value.chart.padding.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
1046
- left: l + t.value.chart.grid.labels.yAxis.crosshairSize - r + t.value.chart.padding.left,
1046
+ left: l + t.value.chart.grid.labels.yAxis.crosshairSize - i + t.value.chart.padding.left,
1047
1047
  height: ge.value - ea.value - t.value.chart.padding.top - t.value.chart.padding.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
1048
1048
  width: a,
1049
1049
  scaleLabelX: l,
1050
1050
  individualOffsetX: s
1051
1051
  };
1052
- }), Ua = x(() => {
1053
- const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = I.value + l, e = X(c.value.top), n = X(c.value.bottom);
1054
- return Array.from({ length: s }).map((a, r) => {
1055
- const o = c.value.width / I.value * r + c.value.left + Q.value;
1052
+ }), Ja = x(() => {
1053
+ const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = I.value + l, e = Y(c.value.top), n = Y(c.value.bottom);
1054
+ return Array.from({ length: s }).map((a, i) => {
1055
+ const o = c.value.width / I.value * i + c.value.left + Q.value;
1056
1056
  return `M${o},${e} L${o},${n}`;
1057
1057
  }).join(" ");
1058
- }), Za = x(() => {
1058
+ }), Qa = x(() => {
1059
1059
  if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
1060
1060
  const l = c.value.width / I.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
1061
- return Yl.value.map((n, a) => {
1061
+ return Xl.value.map((n, a) => {
1062
1062
  if (!n || !n.text) return null;
1063
- const r = c.value.left + l * a + l / 2, o = e ? Le.value - (Le.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, T = e ? Le.value + s / (Le.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
1064
- return `M${r},${o} L${r},${T}`;
1063
+ const i = c.value.left + l * a + l / 2, o = e ? Le.value - (Le.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, A = e ? Le.value + s / (Le.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
1064
+ return `M${i},${o} L${i},${A}`;
1065
1065
  }).filter(Boolean).join(" ");
1066
1066
  });
1067
1067
  function ta() {
1068
- return !!qe?.vnode.props?.onSelectTimeLabel;
1068
+ return !!Ze?.vnode.props?.onSelectTimeLabel;
1069
1069
  }
1070
- function qa(l, s, e) {
1070
+ function ja(l, s, e) {
1071
1071
  if (!Re.value) {
1072
1072
  const n = document.createElement("canvas");
1073
1073
  Re.value = n.getContext("2d");
@@ -1079,18 +1079,18 @@ const Qo = {
1079
1079
  l.length && Array.from(l).forEach((s) => s.style.opacity = "0");
1080
1080
  }
1081
1081
  function wl(l, s, e, n, a) {
1082
- e && (De.value[`${l}_${s}_${n}_${a}`] = e);
1082
+ e && (We.value[`${l}_${s}_${n}_${a}`] = e);
1083
1083
  }
1084
- const aa = p(!1);
1084
+ const aa = b(!1);
1085
1085
  async function oa(l = !1) {
1086
- await al(), aa.value = l, Kt.value && (Jt.value = l);
1086
+ await Yt(), aa.value = l, Jt.value && (Qt.value = l);
1087
1087
  }
1088
- function Wl() {
1088
+ function Dl() {
1089
1089
  pe.value = !pe.value;
1090
1090
  }
1091
1091
  const ke = x(() => {
1092
1092
  const l = Math.max(...ue.value.map((s) => je({ data: s.series, threshold: t.value.downsample.threshold }).length));
1093
- return Da({
1093
+ return Ga({
1094
1094
  values: t.value.chart.grid.labels.xAxisLabels.values,
1095
1095
  maxDatapoints: l,
1096
1096
  formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
@@ -1099,59 +1099,59 @@ const Qo = {
1099
1099
  });
1100
1100
  }), na = x(() => {
1101
1101
  const l = Math.max(...ue.value.map((s) => je({ data: s.series, threshold: t.value.downsample.threshold }).length));
1102
- return Da({
1102
+ return Ga({
1103
1103
  values: t.value.chart.grid.labels.xAxisLabels.values,
1104
1104
  maxDatapoints: l,
1105
1105
  formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
1106
1106
  start: 0,
1107
- end: _e.value
1107
+ end: $e.value
1108
1108
  });
1109
- }), Ka = x(() => {
1109
+ }), eo = x(() => {
1110
1110
  const l = t.value.chart.grid.labels.xAxisLabels.modulo;
1111
1111
  return ke.value.length ? Math.min(l, [...new Set(ke.value.map((s) => s.text))].length) : l;
1112
- }), Yl = x(() => {
1112
+ }), Xl = x(() => {
1113
1113
  const l = t.value.chart.grid.labels.xAxisLabels, s = ke.value || [];
1114
1114
  if (l.showOnlyFirstAndLast) {
1115
1115
  if (s.length <= 2) return s;
1116
- const w = $.value;
1116
+ const w = _.value;
1117
1117
  return s.map(
1118
- (N, A) => A === 0 || A === s.length - 1 || w != null && A === w ? N : { ...N, text: "" }
1118
+ (N, z) => z === 0 || z === s.length - 1 || w != null && z === w ? N : { ...N, text: "" }
1119
1119
  );
1120
1120
  }
1121
1121
  if (!l.showOnlyAtModulo) return s;
1122
- const e = Math.max(1, Ka.value || 1);
1122
+ const e = Math.max(1, eo.value || 1);
1123
1123
  if (I.value <= e) return s;
1124
- const n = e, a = na.value || [], r = y.value.start ?? 0, o = [];
1124
+ const n = e, a = na.value || [], i = y.value.start ?? 0, o = [];
1125
1125
  for (let w = 0; w < s.length; w += 1) {
1126
1126
  const N = s[w]?.text ?? "";
1127
1127
  if (!N) continue;
1128
- const A = r + w - 1 >= 0 ? a[r + w - 1]?.text ?? "" : null;
1129
- N !== A && o.push(w);
1128
+ const z = i + w - 1 >= 0 ? a[i + w - 1]?.text ?? "" : null;
1129
+ N !== z && o.push(w);
1130
1130
  }
1131
1131
  if (!o.length) return s.map((w) => ({ ...w, text: "" }));
1132
- const T = o.length, B = Math.max(2, Math.min(n - 3, T)), E = Math.min(T, n + 3);
1133
- let M = Math.min(n, T), F = 1 / 0;
1132
+ const A = o.length, B = Math.max(2, Math.min(n - 3, A)), E = Math.min(A, n + 3);
1133
+ let M = Math.min(n, A), O = 1 / 0;
1134
1134
  for (let w = B; w <= E; w += 1) {
1135
- const N = (T - 1) % (w - 1), A = Math.abs(w - n), se = N * 10 + A;
1136
- se < F && (F = se, M = w);
1135
+ const N = (A - 1) % (w - 1), z = Math.abs(w - n), se = N * 10 + z;
1136
+ se < O && (O = se, M = w);
1137
1137
  }
1138
- const q = /* @__PURE__ */ new Set();
1138
+ const Z = /* @__PURE__ */ new Set();
1139
1139
  if (M <= 1)
1140
- q.add(o[Math.round((T - 1) / 2)]);
1140
+ Z.add(o[Math.round((A - 1) / 2)]);
1141
1141
  else {
1142
- const w = (T - 1) / (M - 1);
1142
+ const w = (A - 1) / (M - 1);
1143
1143
  for (let N = 0; N < M; N += 1)
1144
- q.add(o[Math.round(N * w)]);
1144
+ Z.add(o[Math.round(N * w)]);
1145
1145
  }
1146
- return s.map((w, N) => q.has(N) ? w : { ...w, text: "" });
1146
+ return s.map((w, N) => Z.has(N) ? w : { ...w, text: "" });
1147
1147
  });
1148
1148
  function ua(l, s) {
1149
- const e = Ye.value.map((n) => ({
1149
+ const e = Xe.value.map((n) => ({
1150
1150
  shape: n.shape || null,
1151
1151
  name: n.name,
1152
1152
  color: n.color,
1153
1153
  type: n.type,
1154
- value: n.absoluteValues.find((a, r) => r === s),
1154
+ value: n.absoluteValues.find((a, i) => i === s),
1155
1155
  comments: n.comments || [],
1156
1156
  prefix: n.prefix || t.value.chart.labels.prefix,
1157
1157
  suffix: n.suffix || t.value.chart.labels.suffix
@@ -1163,29 +1163,29 @@ const Qo = {
1163
1163
  });
1164
1164
  }
1165
1165
  const I = x(() => {
1166
- const l = vl((y.value.end ?? 0) - (y.value.start ?? 0));
1166
+ const l = hl((y.value.end ?? 0) - (y.value.start ?? 0));
1167
1167
  return Math.max(1, l);
1168
1168
  });
1169
1169
  function sa(l) {
1170
- O.value = l;
1170
+ F.value = l;
1171
1171
  }
1172
1172
  function ia() {
1173
1173
  k.value.isStacked = !k.value.isStacked, k.value.isStacked ? k.value.useIndividualScale = !0 : k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
1174
1174
  }
1175
- function Xl(l) {
1175
+ function Yl(l) {
1176
1176
  gt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1177
1177
  }
1178
- function Ja(l, s) {
1179
- const e = vl(l), n = Array(e).fill(0);
1178
+ function to(l, s) {
1179
+ const e = hl(l), n = Array(e).fill(0);
1180
1180
  for (let a = 0; a < s.length && a < e; a += 1) n[a] = s[a] ?? 0;
1181
1181
  return n;
1182
1182
  }
1183
- function Qa(l) {
1183
+ function lo(l) {
1184
1184
  const s = Math.max(...ue.value.map((e) => je({ data: e.series, threshold: t.value.downsample.threshold }).length));
1185
1185
  return l > s ? s : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
1186
1186
  }
1187
1187
  async function Sl() {
1188
- await al(), await al();
1188
+ await Yt(), await Yt();
1189
1189
  const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Ne.value, n = Math.max(
1190
1190
  ...ue.value.map(
1191
1191
  (a) => je({
@@ -1194,7 +1194,7 @@ const Qo = {
1194
1194
  }).length
1195
1195
  )
1196
1196
  );
1197
- (l != null || s != null) && e ? (l != null && (y.value.start = l, e.setStartValue(l)), s != null && (y.value.end = s + 1, e.setEndValue(Qa(s + 1)))) : (y.value = { start: 0, end: n }, Zt.value += 1), We.value.start = y.value.start, We.value.end = y.value.end, xt();
1197
+ (l != null || s != null) && e ? (l != null && (y.value.start = l, e.setStartValue(l)), s != null && (y.value.end = s + 1, e.setEndValue(lo(s + 1)))) : (y.value = { start: 0, end: n }, Zt.value += 1), De.value.start = y.value.start, De.value.end = y.value.end, xt();
1198
1198
  }
1199
1199
  async function ra() {
1200
1200
  await Sl();
@@ -1208,7 +1208,7 @@ const Qo = {
1208
1208
  }
1209
1209
  const Le = x(() => isNaN(Bt(Vt.value)) ? c.value.bottom : c.value.bottom - c.value.height * Bt(Vt.value));
1210
1210
  function va(l) {
1211
- const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Qt.value >= 0 ? c.value.bottom : Le.value;
1211
+ const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && jt.value >= 0 ? c.value.bottom : Le.value;
1212
1212
  return l.value >= 0 ? V(s - l.y <= 0 ? 1e-5 : s - l.y) : V(l.y - Le.value <= 0 ? 1e-5 : l.y - Le.value);
1213
1213
  }
1214
1214
  function da(l) {
@@ -1217,15 +1217,15 @@ const Qo = {
1217
1217
  const te = x(() => {
1218
1218
  const l = Math.max(1, I.value), s = Math.max(1, c.value.width), e = Math.max(1, Je.value.filter((n) => n.type === "bar" && !ce.value.includes(n.id)).length);
1219
1219
  return {
1220
- bar: dl(s, l * e, 1),
1221
- plot: dl(s, l, 1),
1222
- line: dl(s, l, 1)
1220
+ bar: fl(s, l * e, 1),
1221
+ plot: fl(s, l, 1),
1222
+ line: fl(s, l, 1)
1223
1223
  };
1224
1224
  });
1225
- function jt() {
1225
+ function el() {
1226
1226
  return k.value.useIndividualScale && k.value.isStacked ? te.value.line - c.value.width / I.value * 0.1 : te.value.bar;
1227
1227
  }
1228
- function $l(l) {
1228
+ function _l(l) {
1229
1229
  return k.value.useIndividualScale && k.value.isStacked ? l.x + c.value.width / I.value * 0.05 : l.x + te.value.bar / 2;
1230
1230
  }
1231
1231
  function ha(l) {
@@ -1234,20 +1234,20 @@ const Qo = {
1234
1234
  function fa(l) {
1235
1235
  return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
1236
1236
  }
1237
- const fl = p(null);
1238
- function ja(l) {
1237
+ const gl = b(null);
1238
+ function ao(l) {
1239
1239
  if (pe.value) return;
1240
- const s = $e.value.getBoundingClientRect(), n = $e.value.viewBox.baseVal.width / s.width, r = (l.clientX - s.left) * n - c.value.left, o = c.value.width / I.value, T = Math.floor(r / o);
1241
- T >= 0 && T < I.value ? fl.value !== T && (fl.value = T, Ma(!0, T)) : ma();
1240
+ const s = _e.value.getBoundingClientRect(), n = _e.value.viewBox.baseVal.width / s.width, i = (l.clientX - s.left) * n - c.value.left, o = c.value.width / I.value, A = Math.floor(i / o);
1241
+ A >= 0 && A < I.value ? gl.value !== A && (gl.value = A, Ma(!0, A)) : ma();
1242
1242
  }
1243
1243
  function ma() {
1244
- fl.value = null, Ma(!1, null);
1244
+ gl.value = null, Ma(!1, null);
1245
1245
  }
1246
- function eo() {
1247
- fl.value != null && to(fl.value);
1246
+ function oo() {
1247
+ gl.value != null && no(gl.value);
1248
1248
  }
1249
- function to(l) {
1250
- const s = Ye.value.map((e) => ({
1249
+ function no(l) {
1250
+ const s = Xe.value.map((e) => ({
1251
1251
  name: e.name,
1252
1252
  value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
1253
1253
  color: e.color,
@@ -1262,7 +1262,7 @@ const Qo = {
1262
1262
  }
1263
1263
  ), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: s, seriesIndex: l + y.value.start });
1264
1264
  }
1265
- function lo() {
1265
+ function uo() {
1266
1266
  return rt.value.map((l) => ({
1267
1267
  values: l.absoluteValues,
1268
1268
  color: l.color,
@@ -1270,12 +1270,12 @@ const Qo = {
1270
1270
  type: l.type
1271
1271
  }));
1272
1272
  }
1273
- async function ao({ scale: l = 2 } = {}) {
1273
+ async function so({ scale: l = 2 } = {}) {
1274
1274
  if (!me.value) return;
1275
- const { width: s, height: e } = me.value.getBoundingClientRect(), n = s / e, { imageUri: a, base64: r } = await Zo({ domElement: me.value, base64: !0, img: !0, scale: l });
1275
+ const { width: s, height: e } = me.value.getBoundingClientRect(), n = s / e, { imageUri: a, base64: i } = await en({ domElement: me.value, base64: !0, img: !0, scale: l });
1276
1276
  return {
1277
1277
  imageUri: a,
1278
- base64: r,
1278
+ base64: i,
1279
1279
  title: t.value.chart.title.text,
1280
1280
  width: s,
1281
1281
  height: e,
@@ -1289,22 +1289,22 @@ const Qo = {
1289
1289
  if (ce.value.length + 1 === Je.value.length) return;
1290
1290
  ce.value.push(l.id);
1291
1291
  }
1292
- lt("selectLegend", Ye.value.map((s) => ({
1292
+ lt("selectLegend", Xe.value.map((s) => ({
1293
1293
  name: s.name,
1294
1294
  values: s.absoluteValues,
1295
1295
  color: s.color,
1296
1296
  type: s.type
1297
1297
  }))), Ot.value += 1;
1298
1298
  }
1299
- const oo = x(() => {
1299
+ const io = x(() => {
1300
1300
  const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
1301
1301
  return `${l}. ${s}`;
1302
1302
  }), xa = x(() => ({
1303
1303
  linePlot: I.value > t.value.line.dot.hideAboveMaxSerieLength
1304
- })), no = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), uo = x(() => {
1304
+ })), ro = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), co = x(() => {
1305
1305
  if (Array.isArray(t.value.chart.highlightArea))
1306
1306
  return t.value.chart.highlightArea.map((s) => {
1307
- const e = Math.min(s.to, _e.value - 1);
1307
+ const e = Math.min(s.to, $e.value - 1);
1308
1308
  return {
1309
1309
  ...s,
1310
1310
  span: s.from === e ? 1 : e < s.from ? 0 : e - s.from + 1
@@ -1312,25 +1312,25 @@ const Qo = {
1312
1312
  });
1313
1313
  const l = {
1314
1314
  ...t.value.chart.highlightArea,
1315
- to: Math.min(t.value.chart.highlightArea.to, _e.value - 1)
1315
+ to: Math.min(t.value.chart.highlightArea.to, $e.value - 1)
1316
1316
  };
1317
1317
  return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
1318
- }), so = x(() => sl.value ? ue.value.map((l, s) => ({
1318
+ }), vo = x(() => rl.value ? ue.value.map((l, s) => ({
1319
1319
  ...l,
1320
1320
  series: je({
1321
1321
  data: l.series,
1322
1322
  threshold: t.value.downsample.threshold
1323
1323
  }),
1324
1324
  id: `uniqueId_${s}`
1325
- })) : ue.value), io = x(() => Ye.value.map((l) => {
1325
+ })) : ue.value), ho = x(() => Xe.value.map((l) => {
1326
1326
  const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1327
1327
  return {
1328
1328
  id: l.id,
1329
1329
  name: l.name,
1330
1330
  color: l.color,
1331
- values: Ja(I.value, s)
1331
+ values: to(I.value, s)
1332
1332
  };
1333
- })), ro = x(() => ({
1333
+ })), fo = x(() => ({
1334
1334
  responsiveBreakpoint: t.value.table.responsiveBreakpoint,
1335
1335
  roundingValues: t.value.table.rounding,
1336
1336
  showAverage: !1,
@@ -1353,10 +1353,10 @@ const Qo = {
1353
1353
  userOptions: {
1354
1354
  show: !1
1355
1355
  }
1356
- })), Q = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value / 2), Et = x(() => Io(rt.value.filter((l) => !ce.value.includes(l.id)))), z = x(() => {
1356
+ })), Q = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value / 2), Et = x(() => Fo(rt.value.filter((l) => !ce.value.includes(l.id)))), T = x(() => {
1357
1357
  const l = Object.groupBy(Et.value, (e) => e.scaleLabel), s = {};
1358
1358
  for (const [e, n] of Object.entries(l)) {
1359
- const a = n.flatMap((r) => r.absoluteValues);
1359
+ const a = n.flatMap((i) => i.absoluteValues);
1360
1360
  s[e] = {
1361
1361
  min: Math.min(...a) || 0,
1362
1362
  max: Math.max(...a) || 1,
@@ -1364,23 +1364,23 @@ const Qo = {
1364
1364
  };
1365
1365
  }
1366
1366
  return s;
1367
- }), co = x(() => {
1367
+ }), mo = x(() => {
1368
1368
  const l = Je.value.filter((s) => s.type === "bar").filter((s) => !ce.value.includes(s.id)).length;
1369
- return c.value.width / I.value / l - _l.value * l;
1370
- }), _l = x(() => te.value.line * t.value.bar.periodGap), Ll = x(() => Math.max(1e-5, jt() - (k.value.useIndividualScale && k.value.isStacked ? 0 : _l.value))), Ml = x(() => Ll.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), ba = x(() => {
1369
+ return c.value.width / I.value / l - $l.value * l;
1370
+ }), $l = x(() => te.value.line * t.value.bar.periodGap), Ll = x(() => Math.max(1e-5, el() - (k.value.useIndividualScale && k.value.isStacked ? 0 : $l.value))), Ml = x(() => Ll.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), ba = x(() => {
1371
1371
  if (!t.value.chart.zoom.minimap.show) return [];
1372
- const l = so.value.filter((a) => !ce.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
1372
+ const l = vo.value.filter((a) => !ce.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
1373
1373
  for (let a = 0; a < s; a += 1)
1374
- e.push(l.map((r) => r.series[a] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
1374
+ e.push(l.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
1375
1375
  const n = Math.min(...e);
1376
1376
  return e.map((a) => a + (n < 0 ? Math.abs(n) : 0));
1377
- }), bt = x(() => Ye.value.map((l) => ({
1377
+ }), bt = x(() => Xe.value.map((l) => ({
1378
1378
  slotAbsoluteIndex: l.slotAbsoluteIndex,
1379
1379
  shape: l.shape || null,
1380
1380
  name: l.name,
1381
1381
  color: l.color,
1382
1382
  type: l.type,
1383
- value: l.absoluteValues.find((s, e) => e === $.value),
1383
+ value: l.absoluteValues.find((s, e) => e === _.value),
1384
1384
  comments: l.comments || [],
1385
1385
  prefix: l.prefix || t.value.chart.labels.prefix,
1386
1386
  suffix: l.suffix || t.value.chart.labels.suffix
@@ -1396,33 +1396,33 @@ const Qo = {
1396
1396
  (M) => M.show && (M.yAxis.yTop != null || M.yAxis.yBottom != null)
1397
1397
  );
1398
1398
  if (!s.length) return [];
1399
- const { left: e, right: n } = c.value, a = Le.value, r = c.value.height, o = Pe.value.min, B = Pe.value.max - o, E = (M) => {
1400
- const F = (M - 0) / B;
1401
- return a - F * r;
1399
+ const { left: e, right: n } = c.value, a = Le.value, i = c.value.height, o = Pe.value.min, B = Pe.value.max - o, E = (M) => {
1400
+ const O = (M - 0) / B;
1401
+ return a - O * i;
1402
1402
  };
1403
1403
  return s.map((M) => {
1404
- const { yAxis: { yTop: F, yBottom: q, label: w } } = M, N = F != null && q != null && F !== q, A = F == null ? null : E(F), se = q == null ? null : E(q), Me = qa(w.fontSize);
1404
+ const { yAxis: { yTop: O, yBottom: Z, label: w } } = M, N = O != null && Z != null && O !== Z, z = O == null ? null : E(O), se = Z == null ? null : E(Z), Me = ja(w.fontSize);
1405
1405
  Me.font = `${w.fontSize}px sans-serif`;
1406
- const ee = Me.measureText(w.text).width, Xe = w.fontSize, ct = (w.position === "start" ? e + w.padding.left : n - w.padding.right) + w.offsetX, Fe = (A != null && se != null ? Math.min(A, se) : A ?? se) - w.fontSize / 3 + w.offsetY - w.padding.top;
1407
- let W;
1408
- w.textAnchor === "middle" ? W = ct - ee / 2 - w.padding.left : w.textAnchor === "end" ? W = ct - ee - w.padding.right : W = ct - w.padding.left;
1409
- const Y = Fe - Xe * 0.75 - w.padding.top;
1406
+ const ee = Me.measureText(w.text).width, Ye = w.fontSize, ct = (w.position === "start" ? e + w.padding.left : n - w.padding.right) + w.offsetX, Fe = (z != null && se != null ? Math.min(z, se) : z ?? se) - w.fontSize / 3 + w.offsetY - w.padding.top;
1407
+ let D;
1408
+ w.textAnchor === "middle" ? D = ct - ee / 2 - w.padding.left : w.textAnchor === "end" ? D = ct - ee - w.padding.right : D = ct - w.padding.left;
1409
+ const X = Fe - Ye * 0.75 - w.padding.top;
1410
1410
  return {
1411
- show: ![A, se, Y].includes(NaN),
1411
+ show: ![z, se, X].includes(NaN),
1412
1412
  id: `annotation_y_${Pl()}`,
1413
1413
  hasArea: N,
1414
- areaHeight: N ? Math.abs(A - se) : 0,
1415
- yTop: A,
1414
+ areaHeight: N ? Math.abs(z - se) : 0,
1415
+ yTop: z,
1416
1416
  yBottom: se,
1417
1417
  config: M.yAxis,
1418
1418
  x1: e,
1419
1419
  x2: n,
1420
1420
  _text: { x: ct, y: Fe },
1421
1421
  _box: {
1422
- x: W,
1423
- y: Y,
1422
+ x: D,
1423
+ y: X,
1424
1424
  width: ee + w.padding.left + w.padding.right,
1425
- height: Xe + w.padding.top + w.padding.bottom,
1425
+ height: Ye + w.padding.top + w.padding.bottom,
1426
1426
  fill: w.backgroundColor,
1427
1427
  stroke: w.border.stroke,
1428
1428
  rx: w.border.rx,
@@ -1438,258 +1438,258 @@ const Qo = {
1438
1438
  return Oe(l[s].value) && a && t.value.line.cutNullValues;
1439
1439
  }
1440
1440
  const pt = x(() => {
1441
- const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, r = c.value.height - a;
1442
- return l.filter((o) => o.type === "bar").map((o, T) => {
1443
- Xl(o);
1444
- const B = z.value[o.scaleLabel].min, E = z.value[o.scaleLabel].max;
1445
- o.absoluteValues.filter((D) => ![null, void 0].includes(D)).map((D) => (D - B) / (E - B));
1441
+ const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, i = c.value.height - a;
1442
+ return l.filter((o) => o.type === "bar").map((o, A) => {
1443
+ Yl(o);
1444
+ const B = T.value[o.scaleLabel].min, E = T.value[o.scaleLabel].max;
1445
+ o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (E - B));
1446
1446
  const M = {
1447
1447
  valueMin: B,
1448
1448
  valueMax: E < 0 ? 0 : E
1449
- }, F = {
1449
+ }, O = {
1450
1450
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1451
- min: o.scaleMin || Math.min(...o.absoluteValues.filter((D) => ![void 0, null].includes(D))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((D) => ![null, void 0].includes(D)))
1452
- }, q = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = t.value.chart.grid.labels.yAxis.useNiceScale ? bl(F.min, F.max === F.min ? F.max * w : F.max, q) : Wt(F.min, F.max === F.min ? F.max * w : F.max, q), A = t.value.chart.grid.labels.yAxis.useNiceScale ? bl(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, q) : Wt(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, q), se = N.min >= 0 ? 0 : Math.abs(N.min), Me = 0, ee = N.max + se, Xe = A.max + Math.abs(Me), ct = o.stackIndex, el = s - 1 - ct, Fe = n ? 1 - o.cumulatedStackRatio : 0, W = n ? r * Fe + e * el : 0, Y = n ? r * o.stackRatio : c.value.height, de = c.value.bottom - W - Y * se / ee, He = c.value.bottom - W - Y * Me / Xe, Ce = rt.value.filter((D) => D.type === "bar").filter((D) => !ce.value.includes(D.id)).length, gl = o.series.map((D, fe) => {
1453
- const Lt = k.value.useIndividualScale ? (o.absoluteValues[fe] + se) / ee : Bt(D), Dt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left + te.value.bar * T + te.value.bar * fe * Ce - co.value / 2 - T * _l.value;
1451
+ min: o.scaleMin || Math.min(...o.absoluteValues.filter((W) => ![void 0, null].includes(W))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((W) => ![null, void 0].includes(W)))
1452
+ }, Z = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(O.min, O.max === O.min ? O.max * w : O.max, Z) : Dt(O.min, O.max === O.min ? O.max * w : O.max, Z), z = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z) : Dt(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z), se = N.min >= 0 ? 0 : Math.abs(N.min), Me = 0, ee = N.max + se, Ye = z.max + Math.abs(Me), ct = o.stackIndex, tl = s - 1 - ct, Fe = n ? 1 - o.cumulatedStackRatio : 0, D = n ? i * Fe + e * tl : 0, X = n ? i * o.stackRatio : c.value.height, de = c.value.bottom - D - X * se / ee, He = c.value.bottom - D - X * Me / Ye, Ce = rt.value.filter((W) => W.type === "bar").filter((W) => !ce.value.includes(W.id)).length, bl = o.series.map((W, fe) => {
1453
+ const Lt = k.value.useIndividualScale ? (o.absoluteValues[fe] + se) / ee : Bt(W), Wt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left + te.value.bar * A + te.value.bar * fe * Ce - mo.value / 2 - A * $l.value;
1454
1454
  return {
1455
- yOffset: V(W),
1456
- individualHeight: V(Y),
1457
- x: V(Dt),
1458
- y: c.value.bottom - W - Y * Lt,
1455
+ yOffset: V(D),
1456
+ individualHeight: V(X),
1457
+ x: V(Wt),
1458
+ y: c.value.bottom - D - X * Lt,
1459
1459
  value: o.absoluteValues[fe],
1460
1460
  zeroPosition: V(de),
1461
1461
  individualMax: V(ee),
1462
1462
  comment: o.comments && o.comments.slice(y.value.start, y.value.end)[fe] || ""
1463
1463
  };
1464
- }), Te = o.absoluteValues.map((D) => A.min >= 0 ? (D - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (D + Math.abs(A.min)) / (A.max + Math.abs(A.min))), _t = o.series.map((D, fe) => {
1465
- const Lt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left - te.value.bar / 2 + te.value.bar * T + te.value.bar * fe * rt.value.filter((Dt) => Dt.type === "bar").filter((Dt) => !ce.value.includes(Dt.id)).length;
1464
+ }), Ie = o.absoluteValues.map((W) => z.min >= 0 ? (W - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (W + Math.abs(z.min)) / (z.max + Math.abs(z.min))), $t = o.series.map((W, fe) => {
1465
+ const Lt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left - te.value.bar / 2 + te.value.bar * A + te.value.bar * fe * rt.value.filter((Wt) => Wt.type === "bar").filter((Wt) => !ce.value.includes(Wt.id)).length;
1466
1466
  return {
1467
- yOffset: V(W),
1468
- individualHeight: V(Y),
1467
+ yOffset: V(D),
1468
+ individualHeight: V(X),
1469
1469
  x: V(Lt),
1470
- y: V(c.value.bottom - V(W) - (V(Y) * Te[fe] || 0)),
1470
+ y: V(c.value.bottom - V(D) - (V(X) * Ie[fe] || 0)),
1471
1471
  value: o.absoluteValues[fe],
1472
1472
  zeroPosition: V(de),
1473
1473
  individualMax: V(ee),
1474
1474
  comment: o.comments && o.comments.slice(y.value.start, y.value.end)[fe] || ""
1475
1475
  };
1476
- }), K = N.ticks.map((D) => ({
1477
- y: D >= 0 ? de - Y * (D / ee) : de + Y * Math.abs(D) / ee,
1478
- value: D,
1476
+ }), K = N.ticks.map((W) => ({
1477
+ y: W >= 0 ? de - X * (W / ee) : de + X * Math.abs(W) / ee,
1478
+ value: W,
1479
1479
  prefix: o.prefix || t.value.chart.labels.prefix,
1480
1480
  suffix: o.suffix || t.value.chart.labels.suffix,
1481
1481
  datapoint: o
1482
- })), he = A.ticks.map((D) => {
1483
- const fe = (D - A.min) / (A.max - A.min);
1482
+ })), he = z.ticks.map((W) => {
1483
+ const fe = (W - z.min) / (z.max - z.min);
1484
1484
  return {
1485
- y: D >= 0 ? He - Y * fe : He + Y * fe,
1486
- value: D,
1485
+ y: W >= 0 ? He - X * fe : He + X * fe,
1486
+ value: W,
1487
1487
  prefix: o.prefix || t.value.chart.labels.prefix,
1488
1488
  suffix: o.suffix || t.value.chart.labels.suffix,
1489
1489
  datapoint: o
1490
1490
  };
1491
1491
  });
1492
- return z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? he : K, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? He : de, z.value[o.scaleLabel].individualMax = o.autoScaling ? Xe : ee, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = W, z.value[o.scaleLabel].individualHeight = Y, z.value[o.scaleLabel].autoScaleYLabels = he, z.value[o.scaleLabel].unique = Et.value.filter((D) => D.scaleLabel === o.scaleLabel).length === 1, {
1492
+ return T.value[o.scaleLabel].name = o.name, T.value[o.scaleLabel].groupName = o.scaleLabel, T.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, T.value[o.scaleLabel].color = o.color, T.value[o.scaleLabel].scaleYLabels = o.autoScaling ? he : K, T.value[o.scaleLabel].zeroPosition = o.autoScaling ? He : de, T.value[o.scaleLabel].individualMax = o.autoScaling ? Ye : ee, T.value[o.scaleLabel].scaleLabel = o.scaleLabel, T.value[o.scaleLabel].id = o.id, T.value[o.scaleLabel].yOffset = D, T.value[o.scaleLabel].individualHeight = X, T.value[o.scaleLabel].autoScaleYLabels = he, T.value[o.scaleLabel].unique = Et.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
1493
1493
  ...o,
1494
- yOffset: W,
1494
+ yOffset: D,
1495
1495
  autoScaleYLabels: he,
1496
- individualHeight: Y,
1496
+ individualHeight: X,
1497
1497
  scaleYLabels: o.autoScaling ? he : K,
1498
- individualScale: o.autoScaling ? A : N,
1499
- individualMax: o.autoScaling ? Xe : ee,
1498
+ individualScale: o.autoScaling ? z : N,
1499
+ individualMax: o.autoScaling ? Ye : ee,
1500
1500
  zeroPosition: o.autoScaling ? He : de,
1501
- plots: o.autoScaling ? _t : gl,
1502
- groupId: z.value[o.scaleLabel].groupId
1501
+ plots: o.autoScaling ? $t : bl,
1502
+ groupId: T.value[o.scaleLabel].groupId
1503
1503
  };
1504
1504
  });
1505
- }), Ie = x(() => {
1506
- const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, r = c.value.height - a;
1507
- return l.filter((o) => o.type === "line").map((o, T) => {
1508
- Xl(o);
1509
- const B = z.value[o.scaleLabel].min, E = z.value[o.scaleLabel].max;
1505
+ }), Te = x(() => {
1506
+ const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, i = c.value.height - a;
1507
+ return l.filter((o) => o.type === "line").map((o, A) => {
1508
+ Yl(o);
1509
+ const B = T.value[o.scaleLabel].min, E = T.value[o.scaleLabel].max;
1510
1510
  o.absoluteValues.filter((H) => ![null, void 0].includes(H)).map((H) => (H - B) / (E - B));
1511
1511
  const M = {
1512
1512
  valueMin: B,
1513
1513
  valueMax: E
1514
- }, F = {
1514
+ }, O = {
1515
1515
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1516
1516
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
1517
- }, q = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = t.value.chart.grid.labels.yAxis.useNiceScale ? bl(F.min, F.max === F.min ? F.max * w : F.max, q) : Wt(F.min, F.max === F.min ? F.max * w : F.max, q), A = t.value.chart.grid.labels.yAxis.useNiceScale ? bl(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, q) : Wt(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, q), se = N.min >= 0 ? 0 : Math.abs(N.min), Me = 0, ee = N.max + Math.abs(se), Xe = A.max + Math.abs(Me), ct = o.stackIndex, el = s - 1 - ct, Fe = n ? 1 - o.cumulatedStackRatio : 0, W = n ? r * Fe + e * el : 0, Y = n ? r * o.stackRatio : c.value.height, de = c.value.bottom - W - Y * se / ee, He = c.value.bottom - W - Y * Me / Xe, Ce = o.series.map((H, we) => {
1518
- const fo = k.value.useIndividualScale ? (o.absoluteValues[we] + Math.abs(se)) / ee : Bt(H);
1517
+ }, Z = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(O.min, O.max === O.min ? O.max * w : O.max, Z) : Dt(O.min, O.max === O.min ? O.max * w : O.max, Z), z = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z) : Dt(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z), se = N.min >= 0 ? 0 : Math.abs(N.min), Me = 0, ee = N.max + Math.abs(se), Ye = z.max + Math.abs(Me), ct = o.stackIndex, tl = s - 1 - ct, Fe = n ? 1 - o.cumulatedStackRatio : 0, D = n ? i * Fe + e * tl : 0, X = n ? i * o.stackRatio : c.value.height, de = c.value.bottom - D - X * se / ee, He = c.value.bottom - D - X * Me / Ye, Ce = o.series.map((H, we) => {
1518
+ const ko = k.value.useIndividualScale ? (o.absoluteValues[we] + Math.abs(se)) / ee : Bt(H);
1519
1519
  return {
1520
1520
  x: V(c.value.left + te.value.line / 2 + te.value.line * we),
1521
- y: V(c.value.bottom - W - Y * fo),
1521
+ y: V(c.value.bottom - D - X * ko),
1522
1522
  value: o.absoluteValues[we],
1523
1523
  comment: o.comments && o.comments.slice(y.value.start, y.value.end)[we] || ""
1524
1524
  };
1525
- }), gl = o.absoluteValues.map((H) => A.min >= 0 ? (H - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (H + Math.abs(A.min)) / (A.max + Math.abs(A.min))), Te = o.series.map((H, we) => [void 0, null].includes(o.absoluteValues[we]) ? {
1525
+ }), bl = o.absoluteValues.map((H) => z.min >= 0 ? (H - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (H + Math.abs(z.min)) / (z.max + Math.abs(z.min))), Ie = o.series.map((H, we) => [void 0, null].includes(o.absoluteValues[we]) ? {
1526
1526
  x: V(c.value.left + te.value.line / 2 + te.value.line * we),
1527
1527
  y: de,
1528
1528
  value: o.absoluteValues[we],
1529
1529
  comment: o.comments && o.comments.slice(y.value.start, y.value.end)[we] || ""
1530
1530
  } : {
1531
1531
  x: V(c.value.left + te.value.line / 2 + te.value.line * we),
1532
- y: V(c.value.bottom - W - (Y * gl[we] || 0)),
1532
+ y: V(c.value.bottom - D - (X * bl[we] || 0)),
1533
1533
  value: o.absoluteValues[we],
1534
1534
  comment: o.comments && o.comments.slice(y.value.start, y.value.end)[we] || ""
1535
- }), _t = t.value.line.cutNullValues ? Oa(Ce) : Fl(Ce.filter((H) => H.value !== null)), K = t.value.line.cutNullValues ? Oa(Te) : Fl(Te.filter((H) => H.value !== null)), he = t.value.line.cutNullValues ? Fa(Ce) : Hl(Ce.filter((H) => H.value !== null)), D = t.value.line.cutNullValues ? Fa(Te) : Hl(Te.filter((H) => H.value !== null)), fe = N.ticks.map((H) => ({
1536
- y: H >= 0 ? de - Y * (H / ee) : de + Y * Math.abs(H) / ee,
1535
+ }), $t = t.value.line.cutNullValues ? Ba(Ce) : Fl(Ce.filter((H) => H.value !== null)), K = t.value.line.cutNullValues ? Ba(Ie) : Fl(Ie.filter((H) => H.value !== null)), he = t.value.line.cutNullValues ? Ea(Ce) : Hl(Ce.filter((H) => H.value !== null)), W = t.value.line.cutNullValues ? Ea(Ie) : Hl(Ie.filter((H) => H.value !== null)), fe = N.ticks.map((H) => ({
1536
+ y: H >= 0 ? de - X * (H / ee) : de + X * Math.abs(H) / ee,
1537
1537
  value: H,
1538
1538
  prefix: o.prefix || t.value.chart.labels.prefix,
1539
1539
  suffix: o.suffix || t.value.chart.labels.suffix,
1540
1540
  datapoint: o
1541
- })), Lt = A.ticks.map((H) => {
1542
- const we = (H - A.min) / (A.max - A.min);
1541
+ })), Lt = z.ticks.map((H) => {
1542
+ const we = (H - z.min) / (z.max - z.min);
1543
1543
  return {
1544
- y: H >= 0 ? He - Y * we : He + Y * we,
1544
+ y: H >= 0 ? He - X * we : He + X * we,
1545
1545
  value: H,
1546
1546
  prefix: o.prefix || t.value.chart.labels.prefix,
1547
1547
  suffix: o.suffix || t.value.chart.labels.suffix,
1548
1548
  datapoint: o
1549
1549
  };
1550
1550
  });
1551
- z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Lt : fe, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? He : de, z.value[o.scaleLabel].individualMax = o.autoScaling ? Xe : ee, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = W, z.value[o.scaleLabel].individualHeight = Y, z.value[o.scaleLabel].autoScaleYLabels = Lt, z.value[o.scaleLabel].unique = Et.value.filter((H) => H.scaleLabel === o.scaleLabel).length === 1;
1552
- const Dt = k.value.useIndividualScale ? o.autoScaling ? He : de : Le.value, xl = Math.max(Math.max(o.autoScaling ? He : fe.at(-1) ? fe.at(-1).y : 0, c.value.top), Dt);
1551
+ T.value[o.scaleLabel].name = o.name, T.value[o.scaleLabel].groupName = o.scaleLabel, T.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, T.value[o.scaleLabel].color = o.color, T.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Lt : fe, T.value[o.scaleLabel].zeroPosition = o.autoScaling ? He : de, T.value[o.scaleLabel].individualMax = o.autoScaling ? Ye : ee, T.value[o.scaleLabel].scaleLabel = o.scaleLabel, T.value[o.scaleLabel].id = o.id, T.value[o.scaleLabel].yOffset = D, T.value[o.scaleLabel].individualHeight = X, T.value[o.scaleLabel].autoScaleYLabels = Lt, T.value[o.scaleLabel].unique = Et.value.filter((H) => H.scaleLabel === o.scaleLabel).length === 1;
1552
+ const Wt = k.value.useIndividualScale ? o.autoScaling ? He : de : Le.value, pl = Math.max(Math.max(o.autoScaling ? He : fe.at(-1) ? fe.at(-1).y : 0, c.value.top), Wt);
1553
1553
  return {
1554
1554
  ...o,
1555
- yOffset: W,
1555
+ yOffset: D,
1556
1556
  autoScaleYLabels: Lt,
1557
- individualHeight: Y,
1557
+ individualHeight: X,
1558
1558
  scaleYLabels: o.autoScaling ? Lt : fe,
1559
- individualScale: o.autoScaling ? A : N,
1560
- individualMax: o.autoScaling ? Xe : ee,
1559
+ individualScale: o.autoScaling ? z : N,
1560
+ individualMax: o.autoScaling ? Ye : ee,
1561
1561
  zeroPosition: o.autoScaling ? He : de,
1562
- curve: o.autoScaling ? K : _t,
1563
- plots: o.autoScaling ? Te : Ce,
1564
- area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? Ha(
1565
- o.autoScaling ? Te : Ce,
1566
- xl
1567
- ) : Va(
1568
- o.autoScaling ? Te.filter((H) => H.value !== null) : Ce.filter((H) => H.value !== null),
1569
- xl
1570
- ) : t.value.line.cutNullValues ? Ha(Ce, xl) : Va(Ce.filter((H) => H.value !== null), xl) : "",
1571
- curveAreas: o.useArea ? To(
1572
- o.autoScaling ? t.value.line.cutNullValues ? Te : Te.filter((H) => H.value !== null) : t.value.line.cutNullValues ? Ce : Ce.filter((H) => H.value !== null),
1573
- xl,
1562
+ curve: o.autoScaling ? K : $t,
1563
+ plots: o.autoScaling ? Ie : Ce,
1564
+ area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? Wa(
1565
+ o.autoScaling ? Ie : Ce,
1566
+ pl
1567
+ ) : Da(
1568
+ o.autoScaling ? Ie.filter((H) => H.value !== null) : Ce.filter((H) => H.value !== null),
1569
+ pl
1570
+ ) : t.value.line.cutNullValues ? Wa(Ce, pl) : Da(Ce.filter((H) => H.value !== null), pl) : "",
1571
+ curveAreas: o.useArea ? Ho(
1572
+ o.autoScaling ? t.value.line.cutNullValues ? Ie : Ie.filter((H) => H.value !== null) : t.value.line.cutNullValues ? Ce : Ce.filter((H) => H.value !== null),
1573
+ pl,
1574
1574
  t.value.line.cutNullValues
1575
1575
  ) : [],
1576
- straight: o.autoScaling ? D : he,
1577
- groupId: z.value[o.scaleLabel].groupId
1576
+ straight: o.autoScaling ? W : he,
1577
+ groupId: T.value[o.scaleLabel].groupId
1578
1578
  };
1579
1579
  });
1580
1580
  }), Qe = x(() => {
1581
- const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, r = c.value.height - a;
1581
+ const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, i = c.value.height - a;
1582
1582
  return l.filter((o) => o.type === "plot").map((o) => {
1583
- Xl(o);
1584
- const T = z.value[o.scaleLabel].min, B = z.value[o.scaleLabel].max;
1585
- o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - T) / (B - T));
1583
+ Yl(o);
1584
+ const A = T.value[o.scaleLabel].min, B = T.value[o.scaleLabel].max;
1585
+ o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - A) / (B - A));
1586
1586
  const E = {
1587
- valueMin: T,
1587
+ valueMin: A,
1588
1588
  valueMax: B
1589
1589
  }, M = {
1590
1590
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1591
1591
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
1592
- }, F = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, q = 1.0000001, w = Wt(M.min, M.max === M.min ? M.max * q : M.max, F), N = Wt(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * q : E.valueMax, F), A = w.min >= 0 ? 0 : Math.abs(w.min), se = 0, Me = w.max + A, ee = N.max + Math.abs(se), Xe = o.stackIndex, ct = s - 1 - Xe, el = n ? 1 - o.cumulatedStackRatio : 0, Fe = n ? r * el + e * ct : 0, W = n ? r * o.stackRatio : c.value.height, Y = c.value.bottom - Fe - W * A / Me, de = c.value.bottom - Fe - W * se / ee, He = o.series.map((K, he) => {
1593
- const D = k.value.useIndividualScale ? (o.absoluteValues[he] + Math.abs(A)) / Me : Bt(K);
1592
+ }, O = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, Z = 1.0000001, w = Dt(M.min, M.max === M.min ? M.max * Z : M.max, O), N = Dt(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Z : E.valueMax, O), z = w.min >= 0 ? 0 : Math.abs(w.min), se = 0, Me = w.max + z, ee = N.max + Math.abs(se), Ye = o.stackIndex, ct = s - 1 - Ye, tl = n ? 1 - o.cumulatedStackRatio : 0, Fe = n ? i * tl + e * ct : 0, D = n ? i * o.stackRatio : c.value.height, X = c.value.bottom - Fe - D * z / Me, de = c.value.bottom - Fe - D * se / ee, He = o.series.map((K, he) => {
1593
+ const W = k.value.useIndividualScale ? (o.absoluteValues[he] + Math.abs(z)) / Me : Bt(K);
1594
1594
  return {
1595
1595
  x: V(c.value.left + te.value.plot / 2 + te.value.plot * he),
1596
- y: V(c.value.bottom - Fe - W * D),
1596
+ y: V(c.value.bottom - Fe - D * W),
1597
1597
  value: o.absoluteValues[he],
1598
1598
  comment: o.comments && o.comments.slice(y.value.start, y.value.end)[he] || ""
1599
1599
  };
1600
- }), Ce = o.absoluteValues.map((K) => N.min >= 0 ? (K - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (K + Math.abs(N.min)) / (N.max + Math.abs(N.min))), gl = o.series.map((K, he) => ({
1600
+ }), Ce = o.absoluteValues.map((K) => N.min >= 0 ? (K - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (K + Math.abs(N.min)) / (N.max + Math.abs(N.min))), bl = o.series.map((K, he) => ({
1601
1601
  x: V(c.value.left + te.value.plot / 2 + te.value.plot * he),
1602
- y: V(c.value.bottom - Fe - (W * Ce[he] || 0)),
1602
+ y: V(c.value.bottom - Fe - (D * Ce[he] || 0)),
1603
1603
  value: o.absoluteValues[he],
1604
1604
  comment: o.comments && o.comments.slice(y.value.start, y.value.end)[he] || ""
1605
- })), Te = w.ticks.map((K) => ({
1606
- y: K >= 0 ? Y - W * (K / Me) : Y + W * Math.abs(K) / Me,
1605
+ })), Ie = w.ticks.map((K) => ({
1606
+ y: K >= 0 ? X - D * (K / Me) : X + D * Math.abs(K) / Me,
1607
1607
  value: K,
1608
1608
  prefix: o.prefix || t.value.chart.labels.prefix,
1609
1609
  suffix: o.suffix || t.value.chart.labels.suffix,
1610
1610
  datapoint: o
1611
- })), _t = N.ticks.map((K) => {
1611
+ })), $t = N.ticks.map((K) => {
1612
1612
  const he = (K - N.min) / (N.max - N.min);
1613
1613
  return {
1614
- y: K >= 0 ? de - W * he : de + W * he,
1614
+ y: K >= 0 ? de - D * he : de + D * he,
1615
1615
  value: K,
1616
1616
  prefix: o.prefix || t.value.chart.labels.prefix,
1617
1617
  suffix: o.suffix || t.value.chart.labels.suffix,
1618
1618
  datapoint: o
1619
1619
  };
1620
1620
  });
1621
- return z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? _t : Te, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? de : Y, z.value[o.scaleLabel].individualMax = o.autoScaling ? ee : Me, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = Fe, z.value[o.scaleLabel].individualHeight = W, z.value[o.scaleLabel].autoScaleYLabels = _t, z.value[o.scaleLabel].unique = Et.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
1621
+ return T.value[o.scaleLabel].name = o.name, T.value[o.scaleLabel].groupName = o.scaleLabel, T.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, T.value[o.scaleLabel].color = o.color, T.value[o.scaleLabel].scaleYLabels = o.autoScaling ? $t : Ie, T.value[o.scaleLabel].zeroPosition = o.autoScaling ? de : X, T.value[o.scaleLabel].individualMax = o.autoScaling ? ee : Me, T.value[o.scaleLabel].scaleLabel = o.scaleLabel, T.value[o.scaleLabel].id = o.id, T.value[o.scaleLabel].yOffset = Fe, T.value[o.scaleLabel].individualHeight = D, T.value[o.scaleLabel].autoScaleYLabels = $t, T.value[o.scaleLabel].unique = Et.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
1622
1622
  ...o,
1623
1623
  yOffset: Fe,
1624
- autoScaleYLabels: _t,
1625
- individualHeight: W,
1626
- scaleYLabels: o.autoScaling ? _t : Te,
1624
+ autoScaleYLabels: $t,
1625
+ individualHeight: D,
1626
+ scaleYLabels: o.autoScaling ? $t : Ie,
1627
1627
  individualScale: o.autoScaling ? N : w,
1628
1628
  individualMax: o.autoScaling ? ee : Me,
1629
- zeroPosition: o.autoScaling ? de : Y,
1630
- plots: o.autoScaling ? gl : He,
1631
- groupId: z.value[o.scaleLabel].groupId
1629
+ zeroPosition: o.autoScaling ? de : X,
1630
+ plots: o.autoScaling ? bl : He,
1631
+ groupId: T.value[o.scaleLabel].groupId
1632
1632
  };
1633
1633
  });
1634
- }), ml = x(() => {
1635
- const l = Ie.value.map((r) => ({
1636
- name: r.name,
1637
- color: r.color,
1638
- scale: r.individualScale,
1639
- scaleYLabels: r.scaleYLabels,
1640
- zero: r.zeroPosition,
1641
- max: r.individualMax,
1642
- scaleLabel: r.scaleLabel || "",
1643
- id: r.id,
1644
- yOffset: r.yOffset || 0,
1645
- individualHeight: r.individualHeight || c.value.height,
1646
- autoScaleYLabels: r.autoScaleYLabels
1647
- })), s = pt.value.map((r) => ({
1648
- name: r.name,
1649
- color: r.color,
1650
- scale: r.individualScale,
1651
- scaleYLabels: r.scaleYLabels,
1652
- zero: r.zeroPosition,
1653
- max: r.individualMax,
1654
- scaleLabel: r.scaleLabel || "",
1655
- id: r.id,
1656
- yOffset: r.yOffset || 0,
1657
- individualHeight: r.individualHeight || c.value.height
1658
- })), e = Qe.value.map((r) => ({
1659
- name: r.name,
1660
- color: r.color,
1661
- scale: r.individualScale,
1662
- scaleYLabels: r.scaleYLabels,
1634
+ }), xl = x(() => {
1635
+ const l = Te.value.map((i) => ({
1636
+ name: i.name,
1637
+ color: i.color,
1638
+ scale: i.individualScale,
1639
+ scaleYLabels: i.scaleYLabels,
1640
+ zero: i.zeroPosition,
1641
+ max: i.individualMax,
1642
+ scaleLabel: i.scaleLabel || "",
1643
+ id: i.id,
1644
+ yOffset: i.yOffset || 0,
1645
+ individualHeight: i.individualHeight || c.value.height,
1646
+ autoScaleYLabels: i.autoScaleYLabels
1647
+ })), s = pt.value.map((i) => ({
1648
+ name: i.name,
1649
+ color: i.color,
1650
+ scale: i.individualScale,
1651
+ scaleYLabels: i.scaleYLabels,
1652
+ zero: i.zeroPosition,
1653
+ max: i.individualMax,
1654
+ scaleLabel: i.scaleLabel || "",
1655
+ id: i.id,
1656
+ yOffset: i.yOffset || 0,
1657
+ individualHeight: i.individualHeight || c.value.height
1658
+ })), e = Qe.value.map((i) => ({
1659
+ name: i.name,
1660
+ color: i.color,
1661
+ scale: i.individualScale,
1662
+ scaleYLabels: i.scaleYLabels,
1663
1663
  // FIX
1664
- zero: r.zeroPosition,
1665
- max: r.individualMax,
1666
- scaleLabel: r.scaleLabel || "",
1667
- id: r.id,
1668
- yOffset: r.yOffset || 0,
1669
- individualHeight: r.individualHeight || c.value.height
1670
- })), n = k.value.useIndividualScale && !k.value.isStacked ? Object.values(z.value) : [...l, ...s, ...e], a = n.flatMap((r) => r).length;
1671
- return n.flatMap((r, o) => {
1672
- let T = 0;
1673
- T = k.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
1674
- const B = k.value.useIndividualScale && !k.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
1664
+ zero: i.zeroPosition,
1665
+ max: i.individualMax,
1666
+ scaleLabel: i.scaleLabel || "",
1667
+ id: i.id,
1668
+ yOffset: i.yOffset || 0,
1669
+ individualHeight: i.individualHeight || c.value.height
1670
+ })), n = k.value.useIndividualScale && !k.value.isStacked ? Object.values(T.value) : [...l, ...s, ...e], a = n.flatMap((i) => i).length;
1671
+ return n.flatMap((i, o) => {
1672
+ let A = 0;
1673
+ A = k.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
1674
+ const B = k.value.useIndividualScale && !k.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
1675
1675
  return {
1676
- unique: r.unique,
1677
- id: r.id,
1678
- groupId: r.groupId,
1679
- scaleLabel: r.scaleLabel,
1676
+ unique: i.unique,
1677
+ id: i.id,
1678
+ groupId: i.groupId,
1679
+ scaleLabel: i.scaleLabel,
1680
1680
  name: Se(
1681
1681
  t.value.chart.grid.labels.yAxis.serieNameFormatter,
1682
1682
  B,
1683
1683
  B,
1684
- r
1684
+ i
1685
1685
  ),
1686
- color: k.value.useIndividualScale && !k.value.isStacked ? r.unique ? r.color : r.groupColor : r.color,
1687
- scale: r.scale,
1688
- yOffset: r.yOffset,
1689
- individualHeight: r.individualHeight,
1690
- x: T,
1691
- yLabels: r.scaleYLabels || r.scale.ticks.map((E) => ({
1692
- y: E >= 0 ? r.zero - r.individualHeight * (E / r.max) : r.zero + r.individualHeight * Math.abs(E) / r.max,
1686
+ color: k.value.useIndividualScale && !k.value.isStacked ? i.unique ? i.color : i.groupColor : i.color,
1687
+ scale: i.scale,
1688
+ yOffset: i.yOffset,
1689
+ individualHeight: i.individualHeight,
1690
+ x: A,
1691
+ yLabels: i.scaleYLabels || i.scale.ticks.map((E) => ({
1692
+ y: E >= 0 ? i.zero - i.individualHeight * (E / i.max) : i.zero + i.individualHeight * Math.abs(E) / i.max,
1693
1693
  value: E
1694
1694
  }))
1695
1695
  };
@@ -1698,47 +1698,47 @@ const Qo = {
1698
1698
  const l = t.value.line.interLine || {}, s = l.pairs || [], e = l.colors || [];
1699
1699
  if (!s.length) return [];
1700
1700
  const n = [];
1701
- return s.forEach((a, r) => {
1702
- const [o, T] = Array.isArray(a) ? a : [a.a, a.b];
1703
- if (!o || !T) return;
1704
- const B = Ie.value.find((w) => w.name === o), E = Ie.value.find((w) => w.name === T);
1701
+ return s.forEach((a, i) => {
1702
+ const [o, A] = Array.isArray(a) ? a : [a.a, a.b];
1703
+ if (!o || !A) return;
1704
+ const B = Te.value.find((w) => w.name === o), E = Te.value.find((w) => w.name === A);
1705
1705
  if (!B || !E || B.type !== "line" || E.type !== "line") return;
1706
- const M = e?.[r]?.[0] ?? B.color, F = e?.[r]?.[1] ?? E.color;
1707
- No({
1706
+ const M = e?.[i]?.[0] ?? B.color, O = e?.[i]?.[1] ?? E.color;
1707
+ Vo({
1708
1708
  lineA: B.plots,
1709
1709
  lineB: E.plots,
1710
1710
  smoothA: !!B.smooth,
1711
1711
  smoothB: !!E.smooth,
1712
1712
  colorLineA: M,
1713
- colorLineB: F,
1713
+ colorLineB: O,
1714
1714
  sampleStepPx: 2,
1715
1715
  cutNullValues: t.value.line.cutNullValues
1716
1716
  }).forEach((w, N) => {
1717
- n.push({ ...w, key: `inter_${o}_${T}_${r}_${N}` });
1717
+ n.push({ ...w, key: `inter_${o}_${A}_${i}_${N}` });
1718
1718
  });
1719
1719
  }), n;
1720
1720
  }), Sa = x(() => ({
1721
1721
  datapoint: bt.value,
1722
- seriesIndex: $.value,
1722
+ seriesIndex: _.value,
1723
1723
  series: rt.value,
1724
1724
  bars: pt.value,
1725
- lines: Ie.value,
1725
+ lines: Te.value,
1726
1726
  plots: Qe.value,
1727
1727
  config: t.value
1728
1728
  })), Gl = x(() => {
1729
- const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = Xo({
1729
+ const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = Jo({
1730
1730
  useUTC: l.useUTC,
1731
- locale: Go[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
1731
+ locale: Qo[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
1732
1732
  januaryAsYear: l.januaryAsYear
1733
1733
  });
1734
1734
  return (e, n) => {
1735
- const r = t.value.chart.grid.labels.xAxisLabels.values?.[e];
1736
- return r == null ? "" : s.formatDate(new Date(r), n);
1735
+ const i = t.value.chart.grid.labels.xAxisLabels.values?.[e];
1736
+ return i == null ? "" : s.formatDate(new Date(i), n);
1737
1737
  };
1738
1738
  }), Ul = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
1739
1739
  text: Gl.value(e, t.value.chart.zoom.timeFormat),
1740
1740
  absoluteIndex: e
1741
- }))), Cl = p(!1), $a = x(() => {
1741
+ }))), Cl = b(!1), _a = x(() => {
1742
1742
  let l = "", s = "";
1743
1743
  if (t.value.chart.zoom.preview.enable)
1744
1744
  return { left: l, right: s };
@@ -1765,74 +1765,74 @@ const Qo = {
1765
1765
  s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable ? Ul.value[n]?.text || "" : ke.value.at(-1)?.text || "";
1766
1766
  }
1767
1767
  return { left: l, right: s };
1768
- }), vo = x(() => {
1769
- let l = "", s = bt.value.map((a) => a.value).filter((a) => Tl(a) && a !== null).reduce((a, r) => Math.abs(a) + Math.abs(r), 0);
1770
- const e = ke.value[$.value], n = t.value.chart.tooltip.customFormat;
1771
- if (Ol(n) && Ro(() => n({
1772
- absoluteIndex: $.value + y.value.start,
1773
- seriesIndex: $.value,
1768
+ }), go = x(() => {
1769
+ let l = "", s = bt.value.map((a) => a.value).filter((a) => Il(a) && a !== null).reduce((a, i) => Math.abs(a) + Math.abs(i), 0);
1770
+ const e = ke.value[_.value], n = t.value.chart.tooltip.customFormat;
1771
+ if (Ol(n) && Bo(() => n({
1772
+ absoluteIndex: _.value + y.value.start,
1773
+ seriesIndex: _.value,
1774
1774
  datapoint: bt.value,
1775
1775
  series: rt.value,
1776
1776
  bars: pt.value,
1777
- lines: Ie.value,
1777
+ lines: Te.value,
1778
1778
  plots: Qe.value,
1779
1779
  config: t.value
1780
1780
  })))
1781
1781
  return n({
1782
- absoluteIndex: $.value + y.value.start,
1783
- seriesIndex: $.value,
1782
+ absoluteIndex: _.value + y.value.start,
1783
+ seriesIndex: _.value,
1784
1784
  datapoint: bt.value,
1785
1785
  series: rt.value,
1786
1786
  bars: pt.value,
1787
- lines: Ie.value,
1787
+ lines: Te.value,
1788
1788
  plots: Qe.value,
1789
1789
  config: t.value
1790
1790
  });
1791
1791
  if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
1792
- const a = Gl.value($.value + y.value.start, t.value.chart.tooltip.timeFormat);
1792
+ const a = Gl.value(_.value + y.value.start, t.value.chart.tooltip.timeFormat);
1793
1793
  l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
1794
1794
  }
1795
1795
  return bt.value.forEach((a) => {
1796
- if (Tl(a.value)) {
1797
- let r = "", o = "";
1796
+ if (Il(a.value)) {
1797
+ let i = "", o = "";
1798
1798
  switch (oe.value[a.type]) {
1799
1799
  case "bar":
1800
- r = `<svg viewBox="0 0 40 40" height="14" width="14">${nl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${nl.pattern ? `url(#pattern_${G.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
1800
+ i = `<svg viewBox="0 0 40 40" height="14" width="14">${sl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${sl.pattern ? `url(#pattern_${G.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
1801
1801
  break;
1802
1802
  case "line":
1803
- !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Ba({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
1803
+ !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Xa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
1804
1804
  break;
1805
1805
  case "plot":
1806
1806
  if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
1807
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
1807
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
1808
1808
  break;
1809
1809
  }
1810
1810
  if (a.shape === "star") {
1811
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Ba({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1811
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Xa({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1812
1812
  break;
1813
1813
  }
1814
1814
  if (a.shape === "triangle") {
1815
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1815
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1816
1816
  break;
1817
1817
  }
1818
1818
  if (a.shape === "square") {
1819
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1819
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1820
1820
  break;
1821
1821
  }
1822
1822
  if (a.shape === "diamond") {
1823
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1823
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1824
1824
  break;
1825
1825
  }
1826
1826
  if (a.shape === "pentagon") {
1827
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1827
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1828
1828
  break;
1829
1829
  }
1830
1830
  if (a.shape === "hexagon") {
1831
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1831
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1832
1832
  break;
1833
1833
  }
1834
1834
  }
1835
- l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? Se(
1835
+ l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? Se(
1836
1836
  a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
1837
1837
  a.value,
1838
1838
  Ue({
@@ -1846,40 +1846,40 @@ const Qo = {
1846
1846
  v: V(Math.abs(a.value) / s * 100),
1847
1847
  s: "%",
1848
1848
  r: t.value.chart.tooltip.roundingPercentage
1849
- })})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(y.value.start, y.value.end)[$.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(y.value.start, y.value.end)[$.value]}</div>`);
1849
+ })})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(y.value.start, y.value.end)[_.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(y.value.start, y.value.end)[_.value]}</div>`);
1850
1850
  }
1851
1851
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
1852
- }), _a = x(() => {
1852
+ }), $a = x(() => {
1853
1853
  if (Je.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1854
- const l = Ye.value.map((e) => ({
1854
+ const l = Xe.value.map((e) => ({
1855
1855
  label: e.name,
1856
1856
  color: e.color,
1857
1857
  type: e.type
1858
1858
  })), s = [];
1859
1859
  return ke.value.forEach((e, n) => {
1860
1860
  const a = [e.text];
1861
- Ye.value.forEach((r) => {
1862
- a.push(Oe(r.absoluteValues[n]) ? Number(r.absoluteValues[n].toFixed(t.value.table.rounding)) : "");
1861
+ Xe.value.forEach((i) => {
1862
+ a.push(Oe(i.absoluteValues[n]) ? Number(i.absoluteValues[n].toFixed(t.value.table.rounding)) : "");
1863
1863
  }), s.push(a);
1864
1864
  }), { head: l, body: s };
1865
1865
  }), Al = x(() => {
1866
1866
  const l = t.value.table.showSum;
1867
- let s = [""].concat(Ye.value.map((r) => r.name));
1867
+ let s = [""].concat(Xe.value.map((i) => i.name));
1868
1868
  l && (s = s.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>'));
1869
1869
  let e = [];
1870
- for (let r = 0; r < I.value; r += 1) {
1871
- const o = Ye.value.map((T) => T.absoluteValues[r] ?? 0).reduce((T, B) => T + B, 0);
1870
+ for (let i = 0; i < I.value; i += 1) {
1871
+ const o = Xe.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, B) => A + B, 0);
1872
1872
  e.push(
1873
1873
  [
1874
- ke.value[r].text ?? "-"
1875
- ].concat(Ye.value.map(
1876
- (T) => Se(
1877
- T.type === "line" ? t.value.line.labels.formatter : T.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
1878
- T.absoluteValues[r] ?? 0,
1874
+ ke.value[i].text ?? "-"
1875
+ ].concat(Xe.value.map(
1876
+ (A) => Se(
1877
+ A.type === "line" ? t.value.line.labels.formatter : A.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
1878
+ A.absoluteValues[i] ?? 0,
1879
1879
  Ue({
1880
- p: T.prefix || t.value.chart.labels.prefix,
1881
- v: T.absoluteValues[r] ?? 0,
1882
- s: T.suffix || t.value.chart.labels.suffix,
1880
+ p: A.prefix || t.value.chart.labels.prefix,
1881
+ v: A.absoluteValues[i] ?? 0,
1882
+ s: A.suffix || t.value.chart.labels.suffix,
1883
1883
  r: t.value.table.rounding
1884
1884
  })
1885
1885
  )
@@ -1898,22 +1898,22 @@ const Qo = {
1898
1898
  outline: t.value.table.td.outline
1899
1899
  },
1900
1900
  breakpoint: t.value.table.responsiveBreakpoint
1901
- }, a = [t.value.table.columnNames.period].concat(Ye.value.map((r) => r.name)).concat(t.value.table.columnNames.total);
1901
+ }, a = [t.value.table.columnNames.period].concat(Xe.value.map((i) => i.name)).concat(t.value.table.columnNames.total);
1902
1902
  return { head: s, body: e, config: n, colNames: a };
1903
1903
  });
1904
1904
  function La(l = null) {
1905
- const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ..._a.value.head.map((o) => o.label)], n = _a.value.body, a = s.concat([e]).concat(n), r = Vo(a);
1906
- l ? l(r) : Bo({ csvContent: r, title: t.value.chart.title.text || "vue-ui-xy" });
1905
+ const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...$a.value.head.map((o) => o.label)], n = $a.value.body, a = s.concat([e]).concat(n), i = Yo(a);
1906
+ l ? l(i) : Go({ csvContent: i, title: t.value.chart.title.text || "vue-ui-xy" });
1907
1907
  }
1908
1908
  function Ma(l, s = null) {
1909
1909
  ft.value = l;
1910
- const e = Ye.value.map((n) => ({
1910
+ const e = Xe.value.map((n) => ({
1911
1911
  name: n.name,
1912
1912
  value: [null, void 0, NaN].includes(n.absoluteValues[s]) ? null : n.absoluteValues[s],
1913
1913
  color: n.color,
1914
1914
  type: n.type
1915
1915
  }));
1916
- l ? ($.value = s, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: s + y.value.start })) : ($.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: s + y.value.start }));
1916
+ l ? (_.value = s, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: s + y.value.start })) : (_.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: s + y.value.start }));
1917
1917
  }
1918
1918
  function Ca() {
1919
1919
  k.value.showTable = !k.value.showTable;
@@ -1924,45 +1924,45 @@ const Qo = {
1924
1924
  function za() {
1925
1925
  k.value.showTooltip = !k.value.showTooltip;
1926
1926
  }
1927
- function Ia(l) {
1928
- ye.value = l, qt.value += 1;
1927
+ function Ta(l) {
1928
+ ye.value = l, Kt.value += 1;
1929
1929
  }
1930
- function Ta() {
1930
+ function Ia() {
1931
1931
  if (!t.value.responsiveProportionalSizing) {
1932
- _.value.dataLabels = t.value.chart.grid.labels.fontSize, _.value.yAxis = t.value.chart.grid.labels.axis.fontSize, _.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, _.value.plotLabels = t.value.chart.labels.fontSize, Ae.value.plot = t.value.plot.radius, Ae.value.line = t.value.line.radius;
1932
+ $.value.dataLabels = t.value.chart.grid.labels.fontSize, $.value.yAxis = t.value.chart.grid.labels.axis.fontSize, $.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, $.value.plotLabels = t.value.chart.labels.fontSize, Ae.value.plot = t.value.plot.radius, Ae.value.line = t.value.line.radius;
1933
1933
  return;
1934
1934
  }
1935
- _.value.dataLabels = tl({
1935
+ $.value.dataLabels = ll({
1936
1936
  relator: ge.value,
1937
1937
  adjuster: 400,
1938
1938
  source: t.value.chart.grid.labels.fontSize,
1939
1939
  threshold: 10,
1940
1940
  fallback: 10
1941
- }), _.value.yAxis = tl({
1941
+ }), $.value.yAxis = ll({
1942
1942
  relator: ae.value,
1943
1943
  adjuster: 1e3,
1944
1944
  source: t.value.chart.grid.labels.axis.fontSize,
1945
1945
  threshold: 10,
1946
1946
  fallback: 10
1947
- }), _.value.xAxis = tl({
1947
+ }), $.value.xAxis = ll({
1948
1948
  relator: ae.value,
1949
1949
  adjuster: 1e3,
1950
1950
  source: t.value.chart.grid.labels.xAxisLabels.fontSize,
1951
1951
  threshold: 10,
1952
1952
  fallback: 10
1953
- }), _.value.plotLabels = tl({
1953
+ }), $.value.plotLabels = ll({
1954
1954
  relator: ae.value,
1955
1955
  adjuster: 800,
1956
1956
  source: t.value.chart.labels.fontSize,
1957
1957
  threshold: 10,
1958
1958
  fallback: 10
1959
- }), Ae.value.plot = tl({
1959
+ }), Ae.value.plot = ll({
1960
1960
  relator: ae.value,
1961
1961
  adjuster: 800,
1962
1962
  source: t.value.plot.radius,
1963
1963
  threshold: 1,
1964
1964
  fallback: 1
1965
- }), Ae.value.line = tl({
1965
+ }), Ae.value.line = ll({
1966
1966
  relator: ae.value,
1967
1967
  adjuster: 800,
1968
1968
  source: t.value.line.radius,
@@ -1970,8 +1970,8 @@ const Qo = {
1970
1970
  fallback: 1
1971
1971
  });
1972
1972
  }
1973
- function Zl() {
1974
- Ea(d.dataset) ? (Kl({
1973
+ function ql() {
1974
+ Ya(d.dataset) ? (Kl({
1975
1975
  componentName: "VueUiXy",
1976
1976
  type: "dataset",
1977
1977
  debug: gt.value
@@ -1985,46 +1985,47 @@ const Qo = {
1985
1985
  }), Ft.value = !0);
1986
1986
  }), gt.value && d.dataset.forEach((s) => {
1987
1987
  s.series.forEach((e, n) => {
1988
- Tl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1988
+ Il(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1989
1989
  -----> The serie '${s.name}' contains the value '${e}' at index ${n}.
1990
1990
  '${e}' was converted to null to allow the chart to display.`);
1991
1991
  });
1992
- }), Ea(d.dataset) || (Ft.value = t.value.loading), Kt.value = t.value.chart.userOptions.showOnChartHover, cl.value = t.value.chart.userOptions.keepStateOnChartLeave, Jt.value = !t.value.chart.userOptions.showOnChartHover, hl();
1992
+ }), Ya(d.dataset) || (Ft.value = t.value.loading), Jt.value = t.value.chart.userOptions.showOnChartHover, dl.value = t.value.chart.userOptions.keepStateOnChartLeave, Qt.value = !t.value.chart.userOptions.showOnChartHover, ml();
1993
1993
  const l = 12;
1994
1994
  if (t.value.responsive) {
1995
1995
  const e = me.value.parentNode;
1996
- Z.value && (Z.value.unobserve(ot.value), Z.value.disconnect());
1996
+ q.value && (q.value.unobserve(ot.value), q.value.disconnect());
1997
1997
  const { height: n, width: a } = e.getBoundingClientRect();
1998
- let r = null, o = 0;
1999
- t.value.chart.title.show && be.value && (r = be.value, o = r.getBoundingClientRect().height);
2000
- let T = null, B = 0;
2001
- t.value.chart.zoom.show && _e.value > 6 && it.value && Ne.value && Ne.value.$el && (T = Ne.value.$el, B = T.getBoundingClientRect().height);
1998
+ let i = null, o = 0;
1999
+ t.value.chart.title.show && be.value && (i = be.value, o = i.getBoundingClientRect().height);
2000
+ let A = null, B = 0;
2001
+ t.value.chart.zoom.show && $e.value > 6 && it.value && Ne.value && Ne.value.$el && (A = Ne.value.$el, B = A.getBoundingClientRect().height);
2002
2002
  let E = null, M = 0;
2003
2003
  t.value.chart.legend.show && at.value && (E = at.value, M = E.getBoundingClientRect().height);
2004
- let F = 0;
2005
- Tt.value && (F = Tt.value.getBoundingClientRect().height);
2006
- let q = 0;
2007
- Nt.value && (q = Nt.value.getBoundingClientRect().height), ge.value = n - o - M - B - F - q - l, ae.value = a, nt.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ge.value < 0 ? 10 : ge.value}`, Ta();
2004
+ let O = 0;
2005
+ It.value && (O = It.value.getBoundingClientRect().height);
2006
+ let Z = 0;
2007
+ Nt.value && (Z = Nt.value.getBoundingClientRect().height), ge.value = n - o - M - B - O - Z - l, ae.value = a, nt.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ge.value < 0 ? 10 : ge.value}`, Ia();
2008
2008
  const w = new ResizeObserver((N) => {
2009
- for (const A of N)
2010
- t.value.chart.title.show && be.value ? o = be.value.getBoundingClientRect().height : o = 0, Ne.value && Ne.value.$el ? B = Ne.value.$el.getBoundingClientRect().height : B = 0, at.value ? M = at.value.getBoundingClientRect().height : M = 0, Tt.value ? F = Tt.value.getBoundingClientRect().height : F = 0, Nt.value ? q = Nt.value.getBoundingClientRect().height : q = 0, requestAnimationFrame(() => {
2011
- ge.value = A.contentRect.height - o - M - B - F - q - l, ae.value = A.contentBoxSize[0].inlineSize, nt.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ge.value < 0 ? 10 : ge.value}`, Ta();
2009
+ for (const z of N)
2010
+ t.value.chart.title.show && be.value ? o = be.value.getBoundingClientRect().height : o = 0, Ne.value && Ne.value.$el ? B = Ne.value.$el.getBoundingClientRect().height : B = 0, at.value ? M = at.value.getBoundingClientRect().height : M = 0, It.value ? O = It.value.getBoundingClientRect().height : O = 0, Nt.value ? Z = Nt.value.getBoundingClientRect().height : Z = 0, requestAnimationFrame(() => {
2011
+ ge.value = z.contentRect.height - o - M - B - O - Z - l, ae.value = z.contentBoxSize[0].inlineSize, nt.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ge.value < 0 ? 10 : ge.value}`, Ia();
2012
2012
  });
2013
2013
  });
2014
- Z.value = w, ot.value = e, w.observe(e);
2014
+ q.value = w, ot.value = e, w.observe(e);
2015
2015
  } else
2016
- ge.value = t.value.chart.height, ae.value = t.value.chart.width, _.value.dataLabels = t.value.chart.grid.labels.fontSize, _.value.yAxis = t.value.chart.grid.labels.axis.fontSize, _.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, _.value.plotLabels = t.value.chart.labels.fontSize, Ae.value.plot = t.value.plot.radius, Ae.value.line = t.value.line.radius, nt.value = `0 0 ${ae.value} ${ge.value}`;
2016
+ ge.value = t.value.chart.height, ae.value = t.value.chart.width, $.value.dataLabels = t.value.chart.grid.labels.fontSize, $.value.yAxis = t.value.chart.grid.labels.axis.fontSize, $.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, $.value.plotLabels = t.value.chart.labels.fontSize, Ae.value.plot = t.value.plot.radius, Ae.value.line = t.value.line.radius, nt.value = `0 0 ${ae.value} ${ge.value}`;
2017
2017
  }
2018
- pl(() => {
2019
- Zl(), Sl(), document.addEventListener("mousemove", (l) => {
2020
- Pt.value = {
2021
- x: l.clientX,
2022
- y: l.clientY
2023
- };
2024
- }), document.addEventListener("scroll", la);
2025
- }), yl(() => {
2026
- document.removeEventListener("scroll", la), Z.value && (Z.value.unobserve(ot.value), Z.value.disconnect());
2027
- }), Uo({
2018
+ function Na(l) {
2019
+ Pt.value = {
2020
+ x: l.clientX,
2021
+ y: l.clientY
2022
+ };
2023
+ }
2024
+ ol(() => {
2025
+ ql(), Sl(), document.addEventListener("mousemove", Na), document.addEventListener("scroll", la);
2026
+ }), nl(() => {
2027
+ document.removeEventListener("scroll", la), document.removeEventListener("mousemove", Na), q.value && (q.value.unobserve(ot.value), q.value.disconnect(), q.value = null);
2028
+ }), jo({
2028
2029
  timeLabelsEls: ht,
2029
2030
  timeLabels: ke,
2030
2031
  slicer: y,
@@ -2036,9 +2037,44 @@ const Qo = {
2036
2037
  width: ae,
2037
2038
  rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2038
2039
  });
2039
- const zl = p(!1), ho = x(() => {
2040
- if ([null, void 0].includes($.value) && [null, void 0].includes(O.value)) return "";
2041
- const l = ($.value != null ? $.value : 0) || (O.value != null ? O.value : 0), s = t.value.chart.timeTag.customFormat;
2040
+ const zl = b(!1), Ra = b(null), Pa = b(200), xo = x(
2041
+ () => _.value ?? F.value ?? 0
2042
+ );
2043
+ function bo() {
2044
+ const l = Math.ceil(Pa.value || 200);
2045
+ return Math.min(Math.max(l, 1), 200);
2046
+ }
2047
+ function po() {
2048
+ const l = bo(), s = 200, e = Math.max(1, I.value), n = c.value.width / e, i = c.value.left + xo.value * n + n / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, A = c.value.right - (s + l) / 2, B = Math.max(o, Math.min(i, A));
2049
+ return V(B);
2050
+ }
2051
+ ol(() => {
2052
+ let l = null, s = null;
2053
+ const e = (i) => {
2054
+ cancelAnimationFrame(s), s = requestAnimationFrame(() => {
2055
+ Pa.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
2056
+ });
2057
+ }, n = new ResizeObserver((i) => {
2058
+ let o = i.find((A) => A.target === l) || i[0];
2059
+ o && e(o.contentRect.width || 200);
2060
+ }), a = Va((i) => {
2061
+ const o = Ra.value;
2062
+ l && l !== o && (n.unobserve(l), l = null), o && o !== l && (Yt(() => {
2063
+ o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
2064
+ }), n.observe(o), l = o), i(() => {
2065
+ l && (n.unobserve(l), l = null);
2066
+ });
2067
+ });
2068
+ nl(() => {
2069
+ try {
2070
+ l && n.unobserve(l), n.disconnect(), a();
2071
+ } catch {
2072
+ }
2073
+ });
2074
+ });
2075
+ const yo = x(() => {
2076
+ if ([null, void 0].includes(_.value) && [null, void 0].includes(F.value)) return "";
2077
+ const l = (_.value != null ? _.value : 0) || (F.value != null ? F.value : 0), s = t.value.chart.timeTag.customFormat;
2042
2078
  if (zl.value = !1, Ol(s))
2043
2079
  try {
2044
2080
  const e = s({
@@ -2046,7 +2082,7 @@ const Qo = {
2046
2082
  seriesIndex: l,
2047
2083
  datapoint: bt.value,
2048
2084
  bars: pt.value,
2049
- lines: Ie.value,
2085
+ lines: Te.value,
2050
2086
  plots: Qe.value,
2051
2087
  config: t.value
2052
2088
  });
@@ -2059,37 +2095,37 @@ const Qo = {
2059
2095
  return [null, void 0].includes(ke.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? Gl.value(l + y.value.start, t.value.chart.timeTag.timeFormat) : ke.value[l].text;
2060
2096
  });
2061
2097
  dt(() => d.dataset, (l) => {
2062
- Array.isArray(l) && l.length > 0 && (Ft.value = !1), _e.value = Math.max(...ue.value.map((s) => je({
2098
+ Array.isArray(l) && l.length > 0 && (Ft.value = !1), $e.value = Math.max(...ue.value.map((s) => je({
2063
2099
  data: s.series,
2064
2100
  threshold: t.value.downsample.threshold
2065
2101
  }).length)), y.value = {
2066
2102
  start: 0,
2067
- end: _e.value
2103
+ end: $e.value
2068
2104
  }, Zt.value += 1, Ot.value += 1, xt();
2069
2105
  }, { deep: !0 }), dt(() => d.config, (l) => {
2070
- ne.value || (t.value = st()), Zl(), rl.value += 1, il.value += 1, hl(), xt();
2106
+ ne.value || (t.value = st()), ql(), vl.value += 1, cl.value += 1, ml(), xt();
2071
2107
  }, { deep: !0 });
2072
- const ql = p(!1);
2073
- function Na() {
2108
+ const Zl = b(!1);
2109
+ function Oa() {
2074
2110
  const l = me.value?.parentNode;
2075
2111
  if (!l) {
2076
- ql.value = !1;
2112
+ Zl.value = !1;
2077
2113
  return;
2078
2114
  }
2079
2115
  const s = l.getBoundingClientRect();
2080
- ql.value = s.width > 2 && s.height > 2;
2116
+ Zl.value = s.width > 2 && s.height > 2;
2081
2117
  }
2082
- return pl(() => {
2083
- Na();
2118
+ return ol(() => {
2119
+ Oa();
2084
2120
  const l = new ResizeObserver(() => {
2085
- Na(), ql.value && (Zl(), xt(), Sl());
2121
+ Oa(), Zl.value && (ql(), xt(), Sl());
2086
2122
  });
2087
2123
  me.value?.parentNode && l.observe(me.value.parentNode);
2088
2124
  }), dt(t, () => {
2089
- hl();
2125
+ ml();
2090
2126
  }, { immediate: !0 }), Vl({
2091
- getData: lo,
2092
- getImage: ao,
2127
+ getData: uo,
2128
+ getImage: so,
2093
2129
  generatePdf: S,
2094
2130
  generateImage: U,
2095
2131
  generateCsv: La,
@@ -2097,9 +2133,9 @@ const Qo = {
2097
2133
  toggleTable: Ca,
2098
2134
  toggleLabels: Aa,
2099
2135
  toggleTooltip: za,
2100
- toggleAnnotator: Wl,
2101
- toggleFullscreen: Ia
2102
- }), (l, s) => (u(), i("div", {
2136
+ toggleAnnotator: Dl,
2137
+ toggleFullscreen: Ta
2138
+ }), (l, s) => (u(), r("div", {
2103
2139
  id: `vue-ui-xy_${G.value}`,
2104
2140
  class: Ve(`vue-ui-xy ${ye.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2105
2141
  ref_key: "chart",
@@ -2108,30 +2144,30 @@ const Qo = {
2108
2144
  onMouseenter: s[10] || (s[10] = () => oa(!0)),
2109
2145
  onMouseleave: s[11] || (s[11] = () => oa(!1))
2110
2146
  }, [
2111
- t.value.chart.userOptions.buttons.annotator && $e.value ? (u(), Ge(v(yt), {
2147
+ t.value.chart.userOptions.buttons.annotator && _e.value ? (u(), Ge(v(yt), {
2112
2148
  key: 0,
2113
- svgRef: $e.value,
2149
+ svgRef: _e.value,
2114
2150
  backgroundColor: t.value.chart.backgroundColor,
2115
2151
  color: t.value.chart.color,
2116
2152
  active: pe.value,
2117
- onClose: Wl
2153
+ onClose: Dl
2118
2154
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
2119
- no.value ? (u(), i("div", {
2155
+ ro.value ? (u(), r("div", {
2120
2156
  key: 1,
2121
2157
  ref_key: "noTitle",
2122
2158
  ref: Nt,
2123
2159
  class: "vue-data-ui-no-title-space",
2124
2160
  style: "height:36px; width: 100%; background:transparent"
2125
2161
  }, null, 512)) : f("", !0),
2126
- t.value.chart.title.show ? (u(), i("div", {
2162
+ t.value.chart.title.show ? (u(), r("div", {
2127
2163
  key: 2,
2128
2164
  ref_key: "chartTitle",
2129
2165
  ref: be,
2130
2166
  class: "vue-ui-xy-title",
2131
2167
  style: L(`font-family:${t.value.chart.fontFamily}`)
2132
2168
  }, [
2133
- (u(), Ge(qo, {
2134
- key: `title_${rl.value}`,
2169
+ (u(), Ge(tn, {
2170
+ key: `title_${vl.value}`,
2135
2171
  config: {
2136
2172
  title: {
2137
2173
  cy: "xy-div-title",
@@ -2144,12 +2180,12 @@ const Qo = {
2144
2180
  }
2145
2181
  }, null, 8, ["config"]))
2146
2182
  ], 4)) : f("", !0),
2147
- b("div", {
2183
+ p("div", {
2148
2184
  id: `legend-top-${G.value}`
2149
- }, null, 8, kn),
2150
- t.value.chart.userOptions.show && (cl.value || Jt.value) ? (u(), Ge(v(re), {
2185
+ }, null, 8, Mn),
2186
+ t.value.chart.userOptions.show && (dl.value || Qt.value) ? (u(), Ge(v(re), {
2151
2187
  ref: "defails",
2152
- key: `user_options_${qt.value}`,
2188
+ key: `user_options_${Kt.value}`,
2153
2189
  backgroundColor: t.value.chart.backgroundColor,
2154
2190
  color: t.value.chart.color,
2155
2191
  isPrinting: v(m),
@@ -2173,7 +2209,7 @@ const Qo = {
2173
2209
  isAnnotation: pe.value,
2174
2210
  callbacks: t.value.chart.userOptions.callbacks,
2175
2211
  printScale: t.value.chart.userOptions.print.scale,
2176
- onToggleFullscreen: Ia,
2212
+ onToggleFullscreen: Ta,
2177
2213
  onGeneratePdf: v(S),
2178
2214
  onGenerateCsv: La,
2179
2215
  onGenerateImage: v(U),
@@ -2181,11 +2217,11 @@ const Qo = {
2181
2217
  onToggleLabels: Aa,
2182
2218
  onToggleStack: ia,
2183
2219
  onToggleTooltip: za,
2184
- onToggleAnnotator: Wl,
2220
+ onToggleAnnotator: Dl,
2185
2221
  style: L({
2186
- visibility: cl.value ? Jt.value ? "visible" : "hidden" : "visible"
2222
+ visibility: dl.value ? Qt.value ? "visible" : "hidden" : "visible"
2187
2223
  })
2188
- }, ko({ _: 2 }, [
2224
+ }, Mo({ _: 2 }, [
2189
2225
  l.$slots.menuIcon ? {
2190
2226
  name: "menuIcon",
2191
2227
  fn: xe(({ isOpen: e, color: n }) => [
@@ -2257,9 +2293,9 @@ const Qo = {
2257
2293
  key: "9"
2258
2294
  } : void 0
2259
2295
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
2260
- (u(), i("svg", {
2296
+ (u(), r("svg", {
2261
2297
  ref_key: "svgRef",
2262
- ref: $e,
2298
+ ref: _e,
2263
2299
  xmlns: "http://www.w3.org/2000/svg",
2264
2300
  class: Ve([{ "vue-data-ui-fullscreen--on": ye.value, "vue-data-ui-fulscreen--off": !ye.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
2265
2301
  width: "100%",
@@ -2269,21 +2305,21 @@ const Qo = {
2269
2305
  color: t.value.chart.color,
2270
2306
  fontFamily: t.value.chart.fontFamily
2271
2307
  }),
2272
- "aria-label": oo.value,
2308
+ "aria-label": io.value,
2273
2309
  role: "img",
2274
2310
  "aria-live": "polite",
2275
2311
  preserveAspectRatio: "xMidYMid",
2276
- onMousemove: ja,
2312
+ onMousemove: ao,
2277
2313
  onMouseleave: ma,
2278
- onClick: eo
2314
+ onClick: oo
2279
2315
  }, [
2280
- b("g", {
2316
+ p("g", {
2281
2317
  ref_key: "G",
2282
2318
  ref: El,
2283
2319
  class: "vue-data-ui-g"
2284
2320
  }, [
2285
- ll(v(Gt)),
2286
- l.$slots["chart-background"] ? (u(), i("foreignObject", {
2321
+ al(v(Ut)),
2322
+ l.$slots["chart-background"] ? (u(), r("foreignObject", {
2287
2323
  key: 0,
2288
2324
  x: c.value.left + Q.value < 0 ? 0 : c.value.left + Q.value,
2289
2325
  y: c.value.top,
@@ -2294,128 +2330,128 @@ const Qo = {
2294
2330
  }
2295
2331
  }, [
2296
2332
  J(l.$slots, "chart-background", {}, void 0, !0)
2297
- ], 8, Sn)) : f("", !0),
2298
- I.value > 0 ? (u(), i("g", $n, [
2299
- b("g", _n, [
2300
- t.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
2333
+ ], 8, An)) : f("", !0),
2334
+ I.value > 0 ? (u(), r("g", zn, [
2335
+ p("g", Tn, [
2336
+ t.value.chart.grid.labels.xAxis.showBaseline ? (u(), r("line", {
2301
2337
  key: 0,
2302
2338
  stroke: t.value.chart.grid.stroke,
2303
2339
  "stroke-width": "1",
2304
2340
  x1: c.value.left + Q.value,
2305
2341
  x2: c.value.right - Q.value,
2306
- y1: v(X)(c.value.bottom),
2307
- y2: v(X)(c.value.bottom),
2342
+ y1: v(Y)(c.value.bottom),
2343
+ y2: v(Y)(c.value.bottom),
2308
2344
  "stroke-linecap": "round",
2309
2345
  style: { animation: "none !important" }
2310
- }, null, 8, Ln)) : f("", !0),
2311
- k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (u(!0), i(g, { key: 2 }, C(ml.value, (e) => (u(), i("g", null, [
2312
- e.id === P.value && e.yLabels.length ? (u(!0), i(g, { key: 0 }, C(e.yLabels, (n) => (u(), i("line", {
2346
+ }, null, 8, In)) : f("", !0),
2347
+ k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (u(!0), r(g, { key: 2 }, C(xl.value, (e) => (u(), r("g", null, [
2348
+ e.id === P.value && e.yLabels.length ? (u(!0), r(g, { key: 0 }, C(e.yLabels, (n) => (u(), r("line", {
2313
2349
  x1: c.value.left + Q.value,
2314
2350
  x2: c.value.right - Q.value,
2315
- y1: v(X)(n.y),
2316
- y2: v(X)(n.y),
2351
+ y1: v(Y)(n.y),
2352
+ y2: v(Y)(n.y),
2317
2353
  stroke: e.color,
2318
2354
  "stroke-width": 0.5,
2319
2355
  "stroke-linecap": "round",
2320
2356
  style: { animation: "none !important" }
2321
- }, null, 8, zn))), 256)) : e.yLabels.length ? (u(!0), i(g, { key: 1 }, C(e.yLabels, (n) => (u(), i("line", {
2357
+ }, null, 8, On))), 256)) : e.yLabels.length ? (u(!0), r(g, { key: 1 }, C(e.yLabels, (n) => (u(), r("line", {
2322
2358
  x1: c.value.left + Q.value,
2323
2359
  x2: c.value.right - Q.value,
2324
- y1: v(X)(n.y),
2325
- y2: v(X)(n.y),
2360
+ y1: v(Y)(n.y),
2361
+ y2: v(Y)(n.y),
2326
2362
  stroke: t.value.chart.grid.stroke,
2327
2363
  "stroke-width": 0.5,
2328
2364
  "stroke-linecap": "round",
2329
2365
  style: { animation: "none !important" }
2330
- }, null, 8, In))), 256)) : f("", !0)
2331
- ]))), 256)) : f("", !0) : (u(), i(g, { key: 1 }, [
2332
- t.value.chart.grid.labels.yAxis.showBaseline ? (u(), i("line", {
2366
+ }, null, 8, Fn))), 256)) : f("", !0)
2367
+ ]))), 256)) : f("", !0) : (u(), r(g, { key: 1 }, [
2368
+ t.value.chart.grid.labels.yAxis.showBaseline ? (u(), r("line", {
2333
2369
  key: 0,
2334
2370
  stroke: t.value.chart.grid.stroke,
2335
2371
  "stroke-width": "1",
2336
2372
  x1: c.value.left + Q.value,
2337
2373
  x2: c.value.left + Q.value,
2338
- y1: v(X)(c.value.top),
2339
- y2: v(X)(c.value.bottom),
2374
+ y1: v(Y)(c.value.top),
2375
+ y2: v(Y)(c.value.bottom),
2340
2376
  "stroke-linecap": "round",
2341
2377
  style: { animation: "none !important" }
2342
- }, null, 8, Mn)) : f("", !0),
2343
- t.value.chart.grid.showHorizontalLines ? (u(), i("g", Cn, [
2344
- (u(!0), i(g, null, C(pa.value, (e) => (u(), i("line", {
2378
+ }, null, 8, Nn)) : f("", !0),
2379
+ t.value.chart.grid.showHorizontalLines ? (u(), r("g", Rn, [
2380
+ (u(!0), r(g, null, C(pa.value, (e) => (u(), r("line", {
2345
2381
  x1: c.value.left + Q.value,
2346
2382
  x2: c.value.right,
2347
- y1: v(X)(e.y),
2348
- y2: v(X)(e.y),
2383
+ y1: v(Y)(e.y),
2384
+ y2: v(Y)(e.y),
2349
2385
  stroke: t.value.chart.grid.stroke,
2350
2386
  "stroke-width": 0.5,
2351
2387
  "stroke-linecap": "round",
2352
2388
  style: { animation: "none !important" }
2353
- }, null, 8, An))), 256))
2389
+ }, null, 8, Pn))), 256))
2354
2390
  ])) : f("", !0)
2355
2391
  ], 64)),
2356
- t.value.chart.grid.showVerticalLines ? (u(), i("g", Tn, [
2357
- b("path", {
2358
- d: Ua.value,
2392
+ t.value.chart.grid.showVerticalLines ? (u(), r("g", Hn, [
2393
+ p("path", {
2394
+ d: Ja.value,
2359
2395
  "stroke-width": 0.5,
2360
2396
  stroke: t.value.chart.grid.stroke,
2361
2397
  "stroke-linecap": "round",
2362
2398
  style: { animation: "none !important" }
2363
- }, null, 8, Nn)
2399
+ }, null, 8, Vn)
2364
2400
  ])) : f("", !0),
2365
- t.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", Rn, [
2366
- b("path", {
2367
- d: Za.value,
2401
+ t.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", Bn, [
2402
+ p("path", {
2403
+ d: Qa.value,
2368
2404
  stroke: t.value.chart.grid.stroke,
2369
2405
  "stroke-width": 1,
2370
2406
  "stroke-linecap": "round",
2371
2407
  style: { animation: "none !important" }
2372
- }, null, 8, Pn)
2408
+ }, null, 8, En)
2373
2409
  ])) : f("", !0)
2374
2410
  ]),
2375
- (u(!0), i(g, null, C(pt.value, (e, n) => (u(), i("defs", {
2411
+ (u(!0), r(g, null, C(pt.value, (e, n) => (u(), r("defs", {
2376
2412
  key: `def_rect_${n}`
2377
2413
  }, [
2378
- b("linearGradient", {
2414
+ p("linearGradient", {
2379
2415
  id: `rectGradient_pos_${n}_${G.value}`,
2380
2416
  x2: "0%",
2381
2417
  y2: "100%"
2382
2418
  }, [
2383
- b("stop", {
2419
+ p("stop", {
2384
2420
  offset: "0%",
2385
2421
  "stop-color": e.color
2386
- }, null, 8, Fn),
2387
- b("stop", {
2422
+ }, null, 8, Dn),
2423
+ p("stop", {
2388
2424
  offset: "62%",
2389
- "stop-color": `${v(Yt)(e.color, 0.02)}`
2390
- }, null, 8, Hn),
2391
- b("stop", {
2425
+ "stop-color": `${v(Xt)(e.color, 0.02)}`
2426
+ }, null, 8, Xn),
2427
+ p("stop", {
2392
2428
  offset: "100%",
2393
- "stop-color": `${v(Yt)(e.color, 0.05)}`
2394
- }, null, 8, Vn)
2395
- ], 8, On),
2396
- b("linearGradient", {
2429
+ "stop-color": `${v(Xt)(e.color, 0.05)}`
2430
+ }, null, 8, Yn)
2431
+ ], 8, Wn),
2432
+ p("linearGradient", {
2397
2433
  id: `rectGradient_neg_${n}_${G.value}`,
2398
2434
  x2: "0%",
2399
2435
  y2: "100%"
2400
2436
  }, [
2401
- b("stop", {
2437
+ p("stop", {
2402
2438
  offset: "0%",
2403
- "stop-color": `${v(Yt)(e.color, 0.05)}`
2404
- }, null, 8, En),
2405
- b("stop", {
2439
+ "stop-color": `${v(Xt)(e.color, 0.05)}`
2440
+ }, null, 8, Un),
2441
+ p("stop", {
2406
2442
  offset: "38%",
2407
- "stop-color": `${v(Yt)(e.color, 0.02)}`
2408
- }, null, 8, Dn),
2409
- b("stop", {
2443
+ "stop-color": `${v(Xt)(e.color, 0.02)}`
2444
+ }, null, 8, qn),
2445
+ p("stop", {
2410
2446
  offset: "100%",
2411
2447
  "stop-color": e.color
2412
- }, null, 8, Wn)
2413
- ], 8, Bn)
2448
+ }, null, 8, Zn)
2449
+ ], 8, Gn)
2414
2450
  ]))), 128)),
2415
- (u(!0), i(g, null, C(Qe.value, (e, n) => (u(), i("defs", {
2451
+ (u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r("defs", {
2416
2452
  key: `def_plot_${n}`
2417
2453
  }, [
2418
- b("radialGradient", {
2454
+ p("radialGradient", {
2419
2455
  id: `plotGradient_${n}_${G.value}`,
2420
2456
  cx: "50%",
2421
2457
  cy: "50%",
@@ -2423,20 +2459,20 @@ const Qo = {
2423
2459
  fx: "50%",
2424
2460
  fy: "50%"
2425
2461
  }, [
2426
- b("stop", {
2462
+ p("stop", {
2427
2463
  offset: "0%",
2428
- "stop-color": `${v(Yt)(e.color, 0.05)}`
2429
- }, null, 8, Xn),
2430
- b("stop", {
2464
+ "stop-color": `${v(Xt)(e.color, 0.05)}`
2465
+ }, null, 8, Jn),
2466
+ p("stop", {
2431
2467
  offset: "100%",
2432
2468
  "stop-color": e.color
2433
- }, null, 8, Gn)
2434
- ], 8, Yn)
2469
+ }, null, 8, Qn)
2470
+ ], 8, Kn)
2435
2471
  ]))), 128)),
2436
- (u(!0), i(g, null, C(Ie.value, (e, n) => (u(), i("defs", {
2472
+ (u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("defs", {
2437
2473
  key: `def_line_${n}`
2438
2474
  }, [
2439
- b("radialGradient", {
2475
+ p("radialGradient", {
2440
2476
  id: `lineGradient_${n}_${G.value}`,
2441
2477
  cx: "50%",
2442
2478
  cy: "50%",
@@ -2444,36 +2480,36 @@ const Qo = {
2444
2480
  fx: "50%",
2445
2481
  fy: "50%"
2446
2482
  }, [
2447
- b("stop", {
2483
+ p("stop", {
2448
2484
  offset: "0%",
2449
- "stop-color": `${v(Yt)(e.color, 0.05)}`
2450
- }, null, 8, Zn),
2451
- b("stop", {
2485
+ "stop-color": `${v(Xt)(e.color, 0.05)}`
2486
+ }, null, 8, eu),
2487
+ p("stop", {
2452
2488
  offset: "100%",
2453
2489
  "stop-color": e.color
2454
- }, null, 8, qn)
2455
- ], 8, Un),
2456
- b("linearGradient", {
2490
+ }, null, 8, tu)
2491
+ ], 8, jn),
2492
+ p("linearGradient", {
2457
2493
  id: `areaGradient_${n}_${G.value}`,
2458
2494
  x1: "0%",
2459
2495
  x2: "100%",
2460
2496
  y1: "0%",
2461
2497
  y2: "0%"
2462
2498
  }, [
2463
- b("stop", {
2499
+ p("stop", {
2464
2500
  offset: "0%",
2465
- "stop-color": `${v(et)(v(Yt)(e.color, 0.03), t.value.line.area.opacity)}`
2466
- }, null, 8, Jn),
2467
- b("stop", {
2501
+ "stop-color": `${v(et)(v(Xt)(e.color, 0.03), t.value.line.area.opacity)}`
2502
+ }, null, 8, au),
2503
+ p("stop", {
2468
2504
  offset: "100%",
2469
2505
  "stop-color": `${v(et)(e.color, t.value.line.area.opacity)}`
2470
- }, null, 8, Qn)
2471
- ], 8, Kn)
2506
+ }, null, 8, ou)
2507
+ ], 8, lu)
2472
2508
  ]))), 128)),
2473
- (u(!0), i(g, null, C(uo.value, (e) => (u(), i("g", null, [
2474
- e.show ? (u(), i(g, { key: 0 }, [
2475
- (u(!0), i(g, null, C(e.span, (n, a) => (u(), i("g", null, [
2476
- b("rect", {
2509
+ (u(!0), r(g, null, C(co.value, (e) => (u(), r("g", null, [
2510
+ e.show ? (u(), r(g, { key: 0 }, [
2511
+ (u(!0), r(g, null, C(e.span, (n, a) => (u(), r("g", null, [
2512
+ p("rect", {
2477
2513
  style: L({
2478
2514
  transition: "none",
2479
2515
  opacity: e.from + a >= y.value.start && e.from + a <= y.value.end - 1 ? 1 : 0
@@ -2483,10 +2519,10 @@ const Qo = {
2483
2519
  height: c.value.height < 0 ? 10 : c.value.height,
2484
2520
  width: c.value.width / I.value < 0 ? 1e-5 : c.value.width / I.value,
2485
2521
  fill: v(et)(e.color, e.opacity)
2486
- }, null, 12, jn)
2522
+ }, null, 12, nu)
2487
2523
  ]))), 256)),
2488
- (u(!0), i(g, null, C(e.span, (n, a) => (u(), i("g", null, [
2489
- e.caption.text && a === 0 ? (u(), i("foreignObject", {
2524
+ (u(!0), r(g, null, C(e.span, (n, a) => (u(), r("g", null, [
2525
+ e.caption.text && a === 0 ? (u(), r("foreignObject", {
2490
2526
  key: 0,
2491
2527
  x: c.value.left + c.value.width / I.value * (e.from + a - y.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / I.value * e.span / 2),
2492
2528
  y: c.value.top + e.caption.offsetY,
@@ -2497,38 +2533,38 @@ const Qo = {
2497
2533
  height: "1",
2498
2534
  width: e.caption.width === "auto" ? c.value.width / I.value * e.span : e.caption.width
2499
2535
  }, [
2500
- b("div", {
2536
+ p("div", {
2501
2537
  style: L(`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"}`)
2502
2538
  }, le(e.caption.text), 5)
2503
- ], 12, eu)) : f("", !0)
2539
+ ], 12, uu)) : f("", !0)
2504
2540
  ]))), 256))
2505
2541
  ], 64)) : f("", !0)
2506
2542
  ]))), 256)),
2507
- aa.value ? (u(), i("g", tu, [
2508
- (u(!0), i(g, null, C(I.value, (e, n) => (u(), i("g", {
2543
+ aa.value ? (u(), r("g", su, [
2544
+ (u(!0), r(g, null, C(I.value, (e, n) => (u(), r("g", {
2509
2545
  key: `tooltip_trap_highlighter_${n}`
2510
2546
  }, [
2511
- b("rect", {
2547
+ p("rect", {
2512
2548
  x: c.value.left + c.value.width / I.value * n,
2513
2549
  y: c.value.top,
2514
2550
  height: c.value.height < 0 ? 10 : c.value.height,
2515
2551
  width: c.value.width / I.value < 0 ? 1e-5 : c.value.width / I.value,
2516
- fill: [O.value, $.value, mt.value].includes(n) ? v(et)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
2552
+ fill: [F.value, _.value, mt.value].includes(n) ? v(et)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
2517
2553
  style: { transition: "none !important", animation: "none !important" }
2518
- }, null, 8, lu)
2554
+ }, null, 8, iu)
2519
2555
  ]))), 128))
2520
2556
  ])) : f("", !0),
2521
- pt.value.length ? (u(!0), i(g, { key: 1 }, C(pt.value, (e, n) => (u(), i("g", {
2557
+ pt.value.length ? (u(!0), r(g, { key: 1 }, C(pt.value, (e, n) => (u(), r("g", {
2522
2558
  key: `serie_bar_${n}`,
2523
2559
  class: Ve(`serie_bar_${n}`),
2524
2560
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2525
2561
  }, [
2526
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i("g", {
2527
- key: `bar_plot_${n}_${r}`
2562
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r("g", {
2563
+ key: `bar_plot_${n}_${i}`
2528
2564
  }, [
2529
- Oe(a.value) ? (u(), i("rect", {
2565
+ Oe(a.value) ? (u(), r("rect", {
2530
2566
  key: 0,
2531
- x: $l(a) + Ml.value / 2,
2567
+ x: _l(a) + Ml.value / 2,
2532
2568
  y: k.value.useIndividualScale ? fa(a) : ha(a),
2533
2569
  height: k.value.useIndividualScale ? Math.abs(da(a)) : Math.abs(va(a)),
2534
2570
  width: Ll.value - Ml.value,
@@ -2536,11 +2572,13 @@ const Qo = {
2536
2572
  fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${n}_${G.value})` : `url(#rectGradient_neg_${n}_${G.value})` : e.color,
2537
2573
  stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
2538
2574
  "stroke-width": t.value.bar.border.strokeWidth,
2539
- style: L({ transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
2540
- }, null, 12, au)) : f("", !0),
2541
- Oe(a.value) && l.$slots.pattern ? (u(), i("rect", {
2575
+ style: L({
2576
+ transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
2577
+ })
2578
+ }, null, 12, ru)) : f("", !0),
2579
+ Oe(a.value) && l.$slots.pattern ? (u(), r("rect", {
2542
2580
  key: 1,
2543
- x: $l(a) - Ml.value / 2,
2581
+ x: _l(a) - Ml.value / 2,
2544
2582
  y: k.value.useIndividualScale ? fa(a) : ha(a),
2545
2583
  height: k.value.useIndividualScale ? Math.abs(da(a)) : Math.abs(va(a)),
2546
2584
  width: Ll.value - Ml.value,
@@ -2549,23 +2587,23 @@ const Qo = {
2549
2587
  stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
2550
2588
  "stroke-width": t.value.bar.border.strokeWidth,
2551
2589
  style: L({ transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
2552
- }, null, 12, ou)) : f("", !0),
2553
- a.comment && t.value.chart.comments.show ? (u(), i("foreignObject", {
2590
+ }, null, 12, cu)) : f("", !0),
2591
+ a.comment && t.value.chart.comments.show ? (u(), r("foreignObject", {
2554
2592
  key: 2,
2555
2593
  style: { overflow: "visible" },
2556
2594
  height: "12",
2557
2595
  width: Ll.value / 2 + t.value.chart.comments.width,
2558
- x: $l(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
2596
+ x: _l(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
2559
2597
  y: v(V)(a.y) + t.value.chart.comments.offsetY + 6
2560
2598
  }, [
2561
2599
  J(l.$slots, "plot-comment", {
2562
- plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: r }
2600
+ plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
2563
2601
  }, void 0, !0)
2564
- ], 8, nu)) : f("", !0)
2602
+ ], 8, vu)) : f("", !0)
2565
2603
  ]))), 128)),
2566
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), i("g", uu, [
2567
- b("defs", null, [
2568
- b("marker", {
2604
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", du, [
2605
+ p("defs", null, [
2606
+ p("marker", {
2569
2607
  id: `bar_arrow_${n}`,
2570
2608
  markerWidth: 7,
2571
2609
  markerHeight: 7,
@@ -2573,62 +2611,62 @@ const Qo = {
2573
2611
  refY: 7 / 2,
2574
2612
  orient: "auto"
2575
2613
  }, [
2576
- b("polygon", {
2614
+ p("polygon", {
2577
2615
  points: `0 0, 7 ${7 / 2}, 0 7`,
2578
2616
  fill: e.color
2579
- }, null, 8, iu)
2580
- ], 8, su)
2617
+ }, null, 8, fu)
2618
+ ], 8, hu)
2581
2619
  ]),
2582
- e.plots.length > 1 ? (u(), i("line", {
2620
+ e.plots.length > 1 ? (u(), r("line", {
2583
2621
  key: 0,
2584
- x1: v(j)(e.plots).x1 + jt(),
2585
- x2: v(j)(e.plots).x2 + jt(),
2586
- y1: v(X)(v(j)(e.plots).y1),
2587
- y2: v(X)(v(j)(e.plots).y2),
2622
+ x1: v(j)(e.plots).x1 + el(),
2623
+ x2: v(j)(e.plots).x2 + el(),
2624
+ y1: v(Y)(v(j)(e.plots).y1),
2625
+ y2: v(Y)(v(j)(e.plots).y2),
2588
2626
  "stroke-width": 1,
2589
2627
  stroke: e.color,
2590
2628
  "stroke-dasharray": 2,
2591
2629
  "marker-end": `url(#bar_arrow_${n})`
2592
- }, null, 8, ru)) : f("", !0),
2593
- e.plots.length > 1 ? (u(), i("text", {
2630
+ }, null, 8, mu)) : f("", !0),
2631
+ e.plots.length > 1 ? (u(), r("text", {
2594
2632
  key: 1,
2595
2633
  "text-anchor": "middle",
2596
- x: v(j)(e.plots).x2 + jt(),
2634
+ x: v(j)(e.plots).x2 + el(),
2597
2635
  y: v(j)(e.plots).y2 - 6,
2598
- "font-size": _.value.plotLabels,
2636
+ "font-size": $.value.plotLabels,
2599
2637
  fill: e.color
2600
2638
  }, le(v(Ue)({
2601
2639
  v: v(j)(e.plots).trend * 100,
2602
2640
  s: "%",
2603
2641
  r: 2
2604
- })), 9, cu)) : f("", !0)
2642
+ })), 9, gu)) : f("", !0)
2605
2643
  ])) : f("", !0)
2606
2644
  ], 6))), 128)) : f("", !0),
2607
- !k.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (u(), i("line", {
2645
+ !k.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (u(), r("line", {
2608
2646
  key: 2,
2609
2647
  stroke: t.value.chart.grid.stroke,
2610
2648
  "stroke-width": "1",
2611
2649
  x1: c.value.left + Q.value,
2612
2650
  x2: c.value.right,
2613
- y1: v(X)(Le.value),
2614
- y2: v(X)(Le.value),
2651
+ y1: v(Y)(Le.value),
2652
+ y2: v(Y)(Le.value),
2615
2653
  "stroke-linecap": "round",
2616
2654
  style: { animation: "none !important" }
2617
- }, null, 8, vu)) : f("", !0),
2618
- t.value.chart.highlighter.useLine && (![null, void 0].includes($.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", du, [
2619
- b("line", {
2620
- x1: c.value.left + c.value.width / I.value * (($.value !== null ? $.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / I.value / 2,
2621
- x2: c.value.left + c.value.width / I.value * (($.value !== null ? $.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / I.value / 2,
2622
- y1: v(X)(c.value.top),
2623
- y2: v(X)(c.value.bottom),
2655
+ }, null, 8, xu)) : f("", !0),
2656
+ t.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(F.value)) ? (u(), r("g", bu, [
2657
+ p("line", {
2658
+ x1: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
2659
+ x2: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
2660
+ y1: v(Y)(c.value.top),
2661
+ y2: v(Y)(c.value.bottom),
2624
2662
  stroke: t.value.chart.highlighter.color,
2625
2663
  "stroke-width": t.value.chart.highlighter.lineWidth,
2626
2664
  "stroke-dasharray": t.value.chart.highlighter.lineDasharray,
2627
2665
  "stroke-linecap": "round",
2628
2666
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
2629
- }, null, 8, hu)
2667
+ }, null, 8, pu)
2630
2668
  ])) : f("", !0),
2631
- t.value.chart.grid.frame.show ? (u(), i("rect", {
2669
+ t.value.chart.grid.frame.show ? (u(), r("rect", {
2632
2670
  key: 4,
2633
2671
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
2634
2672
  x: c.value.left + Q.value < 0 ? 0 : c.value.left + Q.value,
@@ -2641,52 +2679,52 @@ const Qo = {
2641
2679
  "stroke-linecap": t.value.chart.grid.frame.strokeLinecap,
2642
2680
  "stroke-linejoin": t.value.chart.grid.frame.strokeLinejoin,
2643
2681
  "stroke-dasharray": t.value.chart.grid.frame.strokeDasharray
2644
- }, null, 8, fu)) : f("", !0),
2645
- t.value.chart.grid.labels.show ? (u(), i("g", {
2682
+ }, null, 8, yu)) : f("", !0),
2683
+ t.value.chart.grid.labels.show ? (u(), r("g", {
2646
2684
  key: 5,
2647
2685
  ref_key: "scaleLabels",
2648
2686
  ref: Rt
2649
2687
  }, [
2650
- k.value.useIndividualScale ? (u(), i(g, { key: 0 }, [
2651
- (u(!0), i(g, null, C(ml.value, (e) => (u(), i("g", null, [
2652
- b("line", {
2688
+ k.value.useIndividualScale ? (u(), r(g, { key: 0 }, [
2689
+ (u(!0), r(g, null, C(xl.value, (e) => (u(), r("g", null, [
2690
+ p("line", {
2653
2691
  x1: e.x + Q.value - c.value.individualOffsetX,
2654
2692
  x2: e.x + Q.value - c.value.individualOffsetX,
2655
- y1: k.value.isStacked ? v(X)(c.value.bottom - e.yOffset - e.individualHeight) : v(X)(c.value.top),
2656
- y2: k.value.isStacked ? v(X)(c.value.bottom - e.yOffset) : v(X)(c.value.bottom),
2693
+ y1: k.value.isStacked ? v(Y)(c.value.bottom - e.yOffset - e.individualHeight) : v(Y)(c.value.top),
2694
+ y2: k.value.isStacked ? v(Y)(c.value.bottom - e.yOffset) : v(Y)(c.value.bottom),
2657
2695
  stroke: e.color,
2658
2696
  "stroke-width": t.value.chart.grid.stroke,
2659
2697
  "stroke-linecap": "round",
2660
2698
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2661
- }, null, 12, mu)
2699
+ }, null, 12, ku)
2662
2700
  ]))), 256)),
2663
- (u(!0), i(g, null, C(ml.value, (e) => (u(), i("g", {
2701
+ (u(!0), r(g, null, C(xl.value, (e) => (u(), r("g", {
2664
2702
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
2665
2703
  }, [
2666
- b("text", {
2704
+ p("text", {
2667
2705
  fill: e.color,
2668
- "font-size": _.value.dataLabels * 0.8,
2706
+ "font-size": $.value.dataLabels * 0.8,
2669
2707
  "text-anchor": "middle",
2670
- transform: `translate(${e.x - _.value.dataLabels * 0.8 / 2 + Q.value}, ${k.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
2708
+ transform: `translate(${e.x - $.value.dataLabels * 0.8 / 2 + Q.value}, ${k.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
2671
2709
  }, le(e.name) + " " + le(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2672
- ${e.scaleLabel}` : ""), 9, gu),
2673
- (u(!0), i(g, null, C(e.yLabels, (n, a) => (u(), i(g, null, [
2674
- t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
2710
+ ${e.scaleLabel}` : ""), 9, wu),
2711
+ (u(!0), r(g, null, C(e.yLabels, (n, a) => (u(), r(g, null, [
2712
+ t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
2675
2713
  key: 0,
2676
2714
  x1: e.x + 3 + Q.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
2677
2715
  x2: e.x + Q.value - c.value.individualOffsetX,
2678
- y1: v(X)(n.y),
2679
- y2: v(X)(n.y),
2716
+ y1: v(Y)(n.y),
2717
+ y2: v(Y)(n.y),
2680
2718
  stroke: e.color,
2681
2719
  "stroke-width": 1,
2682
2720
  "stroke-linecap": "round",
2683
2721
  style: { animation: "none !important" }
2684
- }, null, 8, xu)) : f("", !0)
2722
+ }, null, 8, Su)) : f("", !0)
2685
2723
  ], 64))), 256)),
2686
- (u(!0), i(g, null, C(e.yLabels, (n, a) => (u(), i("text", {
2724
+ (u(!0), r(g, null, C(e.yLabels, (n, a) => (u(), r("text", {
2687
2725
  x: e.x - 5 + Q.value - c.value.individualOffsetX,
2688
- y: v(X)(n.y) + _.value.dataLabels / 3,
2689
- "font-size": _.value.dataLabels,
2726
+ y: v(Y)(n.y) + $.value.dataLabels / 3,
2727
+ "font-size": $.value.dataLabels,
2690
2728
  "text-anchor": "end",
2691
2729
  fill: e.color
2692
2730
  }, le(v(Se)(
@@ -2699,27 +2737,27 @@ const Qo = {
2699
2737
  r: t.value.chart.grid.labels.yAxis.rounding
2700
2738
  }),
2701
2739
  { datapoint: n.datapoint, seriesIndex: a }
2702
- )), 9, bu))), 256))
2740
+ )), 9, _u))), 256))
2703
2741
  ], 4))), 256))
2704
- ], 64)) : (u(!0), i(g, { key: 1 }, C(pa.value, (e, n) => (u(), i("g", {
2742
+ ], 64)) : (u(!0), r(g, { key: 1 }, C(pa.value, (e, n) => (u(), r("g", {
2705
2743
  key: `yLabel_${n}`
2706
2744
  }, [
2707
- Oe(e) && e.value >= Pe.value.min && e.value <= Pe.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
2745
+ Oe(e) && e.value >= Pe.value.min && e.value <= Pe.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
2708
2746
  key: 0,
2709
2747
  x1: c.value.left + Q.value,
2710
2748
  x2: c.value.left + Q.value - t.value.chart.grid.labels.yAxis.crosshairSize,
2711
- y1: v(X)(e.y),
2712
- y2: v(X)(e.y),
2749
+ y1: v(Y)(e.y),
2750
+ y2: v(Y)(e.y),
2713
2751
  stroke: t.value.chart.grid.stroke,
2714
2752
  "stroke-width": "1",
2715
2753
  "stroke-linecap": "round",
2716
2754
  style: { animation: "none !important" }
2717
- }, null, 8, pu)) : f("", !0),
2718
- e.value >= Pe.value.min && e.value <= Pe.value.max ? (u(), i("text", {
2755
+ }, null, 8, $u)) : f("", !0),
2756
+ e.value >= Pe.value.min && e.value <= Pe.value.max ? (u(), r("text", {
2719
2757
  key: 1,
2720
2758
  x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
2721
- y: v(V)(e.y + _.value.dataLabels / 3),
2722
- "font-size": _.value.dataLabels,
2759
+ y: v(V)(e.y + $.value.dataLabels / 3),
2760
+ "font-size": $.value.dataLabels,
2723
2761
  "text-anchor": "end",
2724
2762
  fill: t.value.chart.grid.labels.color
2725
2763
  }, le(Oe(e.value) ? v(Se)(
@@ -2731,28 +2769,28 @@ const Qo = {
2731
2769
  s: e.suffix,
2732
2770
  r: t.value.chart.grid.labels.yAxis.rounding
2733
2771
  })
2734
- ) : ""), 9, yu)) : f("", !0)
2772
+ ) : ""), 9, Lu)) : f("", !0)
2735
2773
  ]))), 128))
2736
2774
  ], 512)) : f("", !0),
2737
- (u(!0), i(g, null, C(Qe.value, (e, n) => (u(), i("g", {
2775
+ (u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r("g", {
2738
2776
  key: `serie_plot_${n}`,
2739
2777
  class: Ve(`serie_plot_${n}`),
2740
2778
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2741
2779
  }, [
2742
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i("g", {
2743
- key: `circle_plot_${n}_${r}`
2780
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r("g", {
2781
+ key: `circle_plot_${n}_${i}`
2744
2782
  }, [
2745
2783
  a && Oe(a.value) ? (u(), Ge(Rl, {
2746
2784
  key: 0,
2747
2785
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2748
2786
  color: t.value.plot.useGradient ? `url(#plotGradient_${n}_${G.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
2749
2787
  plot: { x: v(V)(a.x), y: v(V)(a.y) },
2750
- radius: $.value !== null && $.value === r || O.value !== null && O.value === r ? (Ae.value.plot || 6) * 1.5 : Ae.value.plot || 6,
2788
+ radius: _.value !== null && _.value === i || F.value !== null && F.value === i ? (Ae.value.plot || 6) * 1.5 : Ae.value.plot || 6,
2751
2789
  stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
2752
2790
  strokeWidth: t.value.plot.dot.strokeWidth,
2753
- transition: v(ne) || !t.value.plot.showTransition || $.value !== null && $.value === r || O.value !== null && O.value === r ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
2791
+ transition: v(ne) || !t.value.plot.showTransition || _.value !== null && _.value === i || F.value !== null && F.value === i ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
2754
2792
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
2755
- a.comment && t.value.chart.comments.show ? (u(), i("foreignObject", {
2793
+ a.comment && t.value.chart.comments.show ? (u(), r("foreignObject", {
2756
2794
  key: 1,
2757
2795
  style: { overflow: "visible" },
2758
2796
  height: "12",
@@ -2760,16 +2798,16 @@ const Qo = {
2760
2798
  x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
2761
2799
  y: a.y + t.value.chart.comments.offsetY + 6
2762
2800
  }, [
2763
- b("div", wu, [
2801
+ p("div", Cu, [
2764
2802
  J(l.$slots, "plot-comment", {
2765
- plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: r }
2803
+ plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
2766
2804
  }, void 0, !0)
2767
2805
  ])
2768
- ], 8, ku)) : f("", !0)
2806
+ ], 8, Mu)) : f("", !0)
2769
2807
  ]))), 128)),
2770
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), i("g", Su, [
2771
- b("defs", null, [
2772
- b("marker", {
2808
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", Au, [
2809
+ p("defs", null, [
2810
+ p("marker", {
2773
2811
  id: `plot_arrow_${n}`,
2774
2812
  markerWidth: 7,
2775
2813
  markerHeight: 7,
@@ -2777,43 +2815,43 @@ const Qo = {
2777
2815
  refY: 7 / 2,
2778
2816
  orient: "auto"
2779
2817
  }, [
2780
- b("polygon", {
2818
+ p("polygon", {
2781
2819
  points: `0 0, 7 ${7 / 2}, 0 7`,
2782
2820
  fill: e.color
2783
- }, null, 8, _u)
2784
- ], 8, $u)
2821
+ }, null, 8, Tu)
2822
+ ], 8, zu)
2785
2823
  ]),
2786
- e.plots.length > 1 ? (u(), i("line", {
2824
+ e.plots.length > 1 ? (u(), r("line", {
2787
2825
  key: 0,
2788
2826
  x1: v(j)(e.plots).x1,
2789
2827
  x2: v(j)(e.plots).x2,
2790
- y1: v(X)(v(j)(e.plots).y1),
2791
- y2: v(X)(v(j)(e.plots).y2),
2828
+ y1: v(Y)(v(j)(e.plots).y1),
2829
+ y2: v(Y)(v(j)(e.plots).y2),
2792
2830
  "stroke-width": 1,
2793
2831
  stroke: e.color,
2794
2832
  "stroke-dasharray": 2,
2795
2833
  "marker-end": `url(#plot_arrow_${n})`
2796
- }, null, 8, Lu)) : f("", !0),
2797
- e.plots.length > 1 ? (u(), i("text", {
2834
+ }, null, 8, Iu)) : f("", !0),
2835
+ e.plots.length > 1 ? (u(), r("text", {
2798
2836
  key: 1,
2799
2837
  "text-anchor": "middle",
2800
2838
  x: v(j)(e.plots).x2,
2801
2839
  y: v(j)(e.plots).y2 - 6,
2802
- "font-size": _.value.plotLabels,
2840
+ "font-size": $.value.plotLabels,
2803
2841
  fill: e.color
2804
2842
  }, le(v(Ue)({
2805
2843
  v: v(j)(e.plots).trend * 100,
2806
2844
  s: "%",
2807
2845
  r: 2
2808
- })), 9, Mu)) : f("", !0)
2846
+ })), 9, Nu)) : f("", !0)
2809
2847
  ])) : f("", !0)
2810
2848
  ], 6))), 128)),
2811
- (u(!0), i(g, null, C(Ie.value, (e, n) => (u(), i("g", {
2849
+ (u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("g", {
2812
2850
  key: `serie_line_${n}`,
2813
2851
  class: Ve(`serie_line_${n}`),
2814
2852
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2815
2853
  }, [
2816
- e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
2854
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
2817
2855
  key: 0,
2818
2856
  d: `M${e.curve}`,
2819
2857
  stroke: t.value.chart.backgroundColor,
@@ -2821,7 +2859,7 @@ const Qo = {
2821
2859
  "stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
2822
2860
  fill: "none",
2823
2861
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2824
- }, null, 12, Cu)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
2862
+ }, null, 12, Ru)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
2825
2863
  key: 1,
2826
2864
  d: `M${e.straight}`,
2827
2865
  stroke: t.value.chart.backgroundColor,
@@ -2831,15 +2869,15 @@ const Qo = {
2831
2869
  "stroke-linecap": "round",
2832
2870
  "stroke-linejoin": "round",
2833
2871
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2834
- }, null, 12, Au)) : f("", !0)
2872
+ }, null, 12, Pu)) : f("", !0)
2835
2873
  ], 6))), 128)),
2836
- l.$slots.pattern ? (u(), i("defs", zu, [
2837
- (u(!0), i(g, null, C(Je.value, (e, n) => J(l.$slots, "pattern", Il({
2874
+ l.$slots.pattern ? (u(), r("defs", Ou, [
2875
+ (u(!0), r(g, null, C(Je.value, (e, n) => J(l.$slots, "pattern", Tl({
2838
2876
  key: `serie_pattern_slot_${n}`
2839
2877
  }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${G.value}_${n}` }), void 0, !0)), 128))
2840
2878
  ])) : f("", !0),
2841
- wa.value.length && !k.value.isStacked ? (u(), i("g", Iu, [
2842
- (u(!0), i(g, null, C(wa.value, (e) => (u(), i("path", {
2879
+ wa.value.length && !k.value.isStacked ? (u(), r("g", Fu, [
2880
+ (u(!0), r(g, null, C(wa.value, (e) => (u(), r("path", {
2843
2881
  key: e.key,
2844
2882
  d: e.d,
2845
2883
  fill: e.color,
@@ -2847,43 +2885,43 @@ const Qo = {
2847
2885
  stroke: "none",
2848
2886
  "pointer-events": "none",
2849
2887
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2850
- }, null, 12, Tu))), 128))
2888
+ }, null, 12, Hu))), 128))
2851
2889
  ])) : f("", !0),
2852
- (u(!0), i(g, null, C(Ie.value, (e, n) => (u(), i("g", {
2890
+ (u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("g", {
2853
2891
  key: `serie_line_${n}`,
2854
2892
  class: Ve(`serie_line_${n}`),
2855
2893
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2856
2894
  }, [
2857
- e.useArea && e.plots.length > 1 ? (u(), i("g", Nu, [
2858
- e.smooth ? (u(!0), i(g, { key: 0 }, C(e.curveAreas, (a, r) => (u(), i(g, { key: r }, [
2859
- a ? (u(), i("path", {
2895
+ e.useArea && e.plots.length > 1 ? (u(), r("g", Vu, [
2896
+ e.smooth ? (u(!0), r(g, { key: 0 }, C(e.curveAreas, (a, i) => (u(), r(g, { key: i }, [
2897
+ a ? (u(), r("path", {
2860
2898
  key: 0,
2861
2899
  d: a,
2862
2900
  fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${G.value})` : v(et)(e.color, t.value.line.area.opacity),
2863
2901
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2864
- }, null, 12, Ru)) : f("", !0),
2865
- l.$slots.pattern && a ? (u(), i("path", {
2902
+ }, null, 12, Bu)) : f("", !0),
2903
+ l.$slots.pattern && a ? (u(), r("path", {
2866
2904
  key: 1,
2867
2905
  d: a,
2868
2906
  fill: `url(#pattern_${G.value}_${e.slotAbsoluteIndex})`,
2869
2907
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2870
- }, null, 12, Pu)) : f("", !0)
2871
- ], 64))), 128)) : (u(!0), i(g, { key: 1 }, C(e.area.split(";"), (a, r) => (u(), i(g, { key: r }, [
2872
- a ? (u(), i("path", {
2908
+ }, null, 12, Eu)) : f("", !0)
2909
+ ], 64))), 128)) : (u(!0), r(g, { key: 1 }, C(e.area.split(";"), (a, i) => (u(), r(g, { key: i }, [
2910
+ a ? (u(), r("path", {
2873
2911
  key: 0,
2874
2912
  d: `M${a}Z`,
2875
2913
  fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${G.value})` : v(et)(e.color, t.value.line.area.opacity),
2876
2914
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2877
- }, null, 12, Ou)) : f("", !0),
2878
- l.$slots.pattern && a ? (u(), i("path", {
2915
+ }, null, 12, Wu)) : f("", !0),
2916
+ l.$slots.pattern && a ? (u(), r("path", {
2879
2917
  key: 1,
2880
2918
  d: `M${a}Z`,
2881
2919
  fill: `url(#pattern_${G.value}_${e.slotAbsoluteIndex})`,
2882
2920
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2883
- }, null, 12, Fu)) : f("", !0)
2921
+ }, null, 12, Du)) : f("", !0)
2884
2922
  ], 64))), 128))
2885
2923
  ])) : f("", !0),
2886
- e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
2924
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
2887
2925
  key: 1,
2888
2926
  d: `M${e.curve}`,
2889
2927
  stroke: e.color,
@@ -2892,7 +2930,7 @@ const Qo = {
2892
2930
  fill: "none",
2893
2931
  "stroke-linecap": "round",
2894
2932
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2895
- }, null, 12, Hu)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
2933
+ }, null, 12, Xu)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
2896
2934
  key: 2,
2897
2935
  d: `M${e.straight}`,
2898
2936
  stroke: e.color,
@@ -2902,21 +2940,21 @@ const Qo = {
2902
2940
  "stroke-linecap": "round",
2903
2941
  "stroke-linejoin": "round",
2904
2942
  style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
2905
- }, null, 12, Vu)) : f("", !0),
2906
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
2907
- key: `circle_line_${n}_${r}`
2943
+ }, null, 12, Yu)) : f("", !0),
2944
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
2945
+ key: `circle_line_${n}_${i}`
2908
2946
  }, [
2909
- !xa.value.linePlot && a && Oe(a.value) || xa.value.linePlot && a && Oe(a.value) && ($.value !== null && $.value === r || O.value !== null && O.value === r) || ka(e.plots, r) ? (u(), Ge(Rl, {
2947
+ !xa.value.linePlot && a && Oe(a.value) || xa.value.linePlot && a && Oe(a.value) && (_.value !== null && _.value === i || F.value !== null && F.value === i) || ka(e.plots, i) ? (u(), Ge(Rl, {
2910
2948
  key: 0,
2911
2949
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2912
2950
  color: t.value.line.useGradient ? `url(#lineGradient_${n}_${G.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
2913
2951
  plot: { x: v(V)(a.x), y: v(V)(a.y) },
2914
- radius: $.value !== null && $.value === r || O.value !== null && O.value === r ? (Ae.value.line || 6) * 1.5 : (ka(e.plots, r), Ae.value.line || 6),
2952
+ radius: _.value !== null && _.value === i || F.value !== null && F.value === i ? (Ae.value.line || 6) * 1.5 : (ka(e.plots, i), Ae.value.line || 6),
2915
2953
  stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
2916
2954
  strokeWidth: t.value.line.dot.strokeWidth,
2917
- transition: v(ne) || !t.value.line.showTransition || $.value !== null && $.value === r || O.value !== null && O.value === r ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
2955
+ transition: v(ne) || !t.value.line.showTransition || _.value !== null && _.value === i || F.value !== null && F.value === i ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
2918
2956
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
2919
- a.comment && t.value.chart.comments.show ? (u(), i("foreignObject", {
2957
+ a.comment && t.value.chart.comments.show ? (u(), r("foreignObject", {
2920
2958
  key: 1,
2921
2959
  style: { overflow: "visible" },
2922
2960
  height: "12",
@@ -2924,16 +2962,16 @@ const Qo = {
2924
2962
  x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
2925
2963
  y: a.y + t.value.chart.comments.offsetY + 6
2926
2964
  }, [
2927
- b("div", Eu, [
2965
+ p("div", Uu, [
2928
2966
  J(l.$slots, "plot-comment", {
2929
- plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: r }
2967
+ plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
2930
2968
  }, void 0, !0)
2931
2969
  ])
2932
- ], 8, Bu)) : f("", !0)
2970
+ ], 8, Gu)) : f("", !0)
2933
2971
  ], 64))), 128)),
2934
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), i("g", Du, [
2935
- b("defs", null, [
2936
- b("marker", {
2972
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", qu, [
2973
+ p("defs", null, [
2974
+ p("marker", {
2937
2975
  id: `line_arrow_${n}`,
2938
2976
  markerWidth: 7,
2939
2977
  markerHeight: 7,
@@ -2941,50 +2979,50 @@ const Qo = {
2941
2979
  refY: 7 / 2,
2942
2980
  orient: "auto"
2943
2981
  }, [
2944
- b("polygon", {
2982
+ p("polygon", {
2945
2983
  points: `0 0, 7 ${7 / 2}, 0 7`,
2946
2984
  fill: e.color
2947
- }, null, 8, Yu)
2948
- ], 8, Wu)
2985
+ }, null, 8, Ku)
2986
+ ], 8, Zu)
2949
2987
  ]),
2950
- e.plots.length > 1 ? (u(), i("line", {
2988
+ e.plots.length > 1 ? (u(), r("line", {
2951
2989
  key: 0,
2952
2990
  x1: v(j)(e.plots).x1,
2953
2991
  x2: v(j)(e.plots).x2,
2954
- y1: v(X)(v(j)(e.plots).y1),
2955
- y2: v(X)(v(j)(e.plots).y2),
2992
+ y1: v(Y)(v(j)(e.plots).y1),
2993
+ y2: v(Y)(v(j)(e.plots).y2),
2956
2994
  "stroke-width": 1,
2957
2995
  stroke: e.color,
2958
2996
  "stroke-dasharray": 2,
2959
2997
  "marker-end": `url(#line_arrow_${n})`
2960
- }, null, 8, Xu)) : f("", !0),
2961
- e.plots.length > 1 ? (u(), i("text", {
2998
+ }, null, 8, Ju)) : f("", !0),
2999
+ e.plots.length > 1 ? (u(), r("text", {
2962
3000
  key: 1,
2963
3001
  "text-anchor": "middle",
2964
3002
  x: v(j)(e.plots).x2,
2965
3003
  y: v(j)(e.plots).y2 - 6,
2966
- "font-size": _.value.plotLabels,
3004
+ "font-size": $.value.plotLabels,
2967
3005
  fill: e.color
2968
3006
  }, le(v(Ue)({
2969
3007
  v: v(j)(e.plots).trend * 100,
2970
3008
  s: "%",
2971
3009
  r: 2
2972
- })), 9, Gu)) : f("", !0)
3010
+ })), 9, Qu)) : f("", !0)
2973
3011
  ])) : f("", !0)
2974
3012
  ], 6))), 128)),
2975
- (t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (u(), i("g", Uu, [
2976
- (u(!0), i(g, null, C(pt.value, (e, n) => (u(), i(g, {
3013
+ (t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (u(), r("g", ju, [
3014
+ (u(!0), r(g, null, C(pt.value, (e, n) => (u(), r(g, {
2977
3015
  key: `xLabel_bar_${n}`
2978
3016
  }, [
2979
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
2980
- key: `xLabel_bar_${n}_${r}`
3017
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3018
+ key: `xLabel_bar_${n}_${i}`
2981
3019
  }, [
2982
- a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || $.value !== null && $.value === r || O.value !== null && O.value === r) && t.value.bar.labels.show ? (u(), i("text", {
3020
+ a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || F.value !== null && F.value === i) && t.value.bar.labels.show ? (u(), r("text", {
2983
3021
  key: 0,
2984
- x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 : $l(a) + jt() / 2 - _l.value / 2,
3022
+ x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 : _l(a) + el() / 2 - $l.value / 2,
2985
3023
  y: v(V)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
2986
3024
  "text-anchor": "middle",
2987
- "font-size": _.value.plotLabels,
3025
+ "font-size": $.value.plotLabels,
2988
3026
  fill: t.value.bar.labels.color,
2989
3027
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2990
3028
  }, le(Oe(a.value) ? v(Se)(
@@ -3000,36 +3038,36 @@ const Qo = {
3000
3038
  datapoint: a,
3001
3039
  serie: e
3002
3040
  }
3003
- ) : ""), 13, Zu)) : f("", !0),
3004
- a && t.value.bar.serieName.show ? (u(), i("text", {
3041
+ ) : ""), 13, es)) : f("", !0),
3042
+ a && t.value.bar.serieName.show ? (u(), r("text", {
3005
3043
  key: 1,
3006
- x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 : a.x + jt() * 1.1,
3044
+ x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 : a.x + el() * 1.1,
3007
3045
  y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
3008
3046
  "text-anchor": "middle",
3009
- "font-size": _.value.plotLabels,
3047
+ "font-size": $.value.plotLabels,
3010
3048
  fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
3011
3049
  "font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
3012
3050
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3013
- }, le(t.value.bar.serieName.useAbbreviation ? v(Po)({
3051
+ }, le(t.value.bar.serieName.useAbbreviation ? v(Eo)({
3014
3052
  source: e.name,
3015
3053
  length: t.value.bar.serieName.abbreviationSize
3016
- }) : e.name), 13, qu)) : f("", !0)
3054
+ }) : e.name), 13, ts)) : f("", !0)
3017
3055
  ], 64))), 128))
3018
3056
  ], 64))), 128))
3019
3057
  ])) : f("", !0),
3020
- t.value.plot.labels.show && k.value.dataLabels.show ? (u(), i("g", Ku, [
3021
- (u(!0), i(g, null, C(Qe.value, (e, n) => (u(), i(g, {
3058
+ t.value.plot.labels.show && k.value.dataLabels.show ? (u(), r("g", ls, [
3059
+ (u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
3022
3060
  key: `xLabel_plot_${n}`
3023
3061
  }, [
3024
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
3025
- key: `xLabel_plot_${n}_${r}`
3062
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3063
+ key: `xLabel_plot_${n}_${i}`
3026
3064
  }, [
3027
- a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || $.value !== null && $.value === r || O.value !== null && O.value === r ? (u(), i("text", {
3065
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || F.value !== null && F.value === i ? (u(), r("text", {
3028
3066
  key: 0,
3029
3067
  x: a.x,
3030
3068
  y: a.y + t.value.plot.labels.offsetY,
3031
3069
  "text-anchor": "middle",
3032
- "font-size": _.value.plotLabels,
3070
+ "font-size": $.value.plotLabels,
3033
3071
  fill: t.value.plot.labels.color,
3034
3072
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3035
3073
  }, le(Oe(a.value) ? v(Se)(
@@ -3045,18 +3083,18 @@ const Qo = {
3045
3083
  datapoint: a,
3046
3084
  serie: e
3047
3085
  }
3048
- ) : ""), 13, Ju)) : f("", !0)
3086
+ ) : ""), 13, as)) : f("", !0)
3049
3087
  ], 64))), 128))
3050
3088
  ], 64))), 128))
3051
- ])) : (u(), i("g", Qu, [
3052
- (u(!0), i(g, null, C(Qe.value, (e, n) => (u(), i(g, {
3089
+ ])) : (u(), r("g", os, [
3090
+ (u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
3053
3091
  key: `xLabel_plot_${n}`
3054
3092
  }, [
3055
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
3056
- key: `xLabel_plot_${n}_${r}`
3093
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3094
+ key: `xLabel_plot_${n}_${i}`
3057
3095
  }, [
3058
- t.value.plot.tag.followValue ? (u(), i(g, { key: 1 }, [
3059
- [O.value, $.value, mt.value].includes(r) && e.useTag ? (u(), i("line", {
3096
+ t.value.plot.tag.followValue ? (u(), r(g, { key: 1 }, [
3097
+ [F.value, _.value, mt.value].includes(i) && e.useTag ? (u(), r("line", {
3060
3098
  key: 0,
3061
3099
  class: "vue-ui-xy-tag-plot",
3062
3100
  x1: c.value.left,
@@ -3067,9 +3105,9 @@ const Qo = {
3067
3105
  "stroke-linecap": "round",
3068
3106
  "stroke-dasharray": "2",
3069
3107
  stroke: e.color
3070
- }, null, 8, as)) : f("", !0)
3071
- ], 64)) : (u(), i(g, { key: 0 }, [
3072
- a && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
3108
+ }, null, 8, rs)) : f("", !0)
3109
+ ], 64)) : (u(), r(g, { key: 0 }, [
3110
+ a && i === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
3073
3111
  key: 0,
3074
3112
  x: a.x,
3075
3113
  y: a.y - 20,
@@ -3077,59 +3115,59 @@ const Qo = {
3077
3115
  width: "150",
3078
3116
  style: L(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3079
3117
  }, [
3080
- b("div", {
3081
- style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${_.value.plotLabels}px;border-radius: 2px;`),
3118
+ p("div", {
3119
+ style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${$.value.plotLabels}px;border-radius: 2px;`),
3082
3120
  innerHTML: v(Se)(
3083
3121
  t.value.plot.tag.formatter,
3084
3122
  a.value,
3085
3123
  e.name,
3086
3124
  {
3087
3125
  datapoint: a,
3088
- seriesIndex: r,
3126
+ seriesIndex: i,
3089
3127
  serieName: e.name
3090
3128
  }
3091
3129
  )
3092
- }, null, 12, es)
3093
- ], 12, ju)) : f("", !0),
3094
- a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
3130
+ }, null, 12, us)
3131
+ ], 12, ns)) : f("", !0),
3132
+ a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
3095
3133
  key: 1,
3096
- x: a.x - e.name.length * (_.value.plotLabels / 2),
3134
+ x: a.x - e.name.length * ($.value.plotLabels / 2),
3097
3135
  y: a.y - 20,
3098
3136
  height: 24,
3099
3137
  width: "150",
3100
3138
  style: L(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3101
3139
  }, [
3102
- b("div", {
3103
- style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${_.value.plotLabels}px;border-radius: 2px;`),
3140
+ p("div", {
3141
+ style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${$.value.plotLabels}px;border-radius: 2px;`),
3104
3142
  innerHTML: v(Se)(
3105
3143
  t.value.plot.tag.formatter,
3106
3144
  a.value,
3107
3145
  e.name,
3108
3146
  {
3109
3147
  datapoint: a,
3110
- seriesIndex: r,
3148
+ seriesIndex: i,
3111
3149
  serieName: e.name
3112
3150
  }
3113
3151
  )
3114
- }, null, 12, ls)
3115
- ], 12, ts)) : f("", !0)
3152
+ }, null, 12, is)
3153
+ ], 12, ss)) : f("", !0)
3116
3154
  ], 64))
3117
3155
  ], 64))), 128))
3118
3156
  ], 64))), 128))
3119
3157
  ])),
3120
- t.value.line.labels.show && k.value.dataLabels.show ? (u(), i("g", os, [
3121
- (u(!0), i(g, null, C(Ie.value, (e, n) => (u(), i(g, {
3158
+ t.value.line.labels.show && k.value.dataLabels.show ? (u(), r("g", cs, [
3159
+ (u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
3122
3160
  key: `xLabel_line_${n}`
3123
3161
  }, [
3124
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
3125
- key: `xLabel_line_${n}_${r}`
3162
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3163
+ key: `xLabel_line_${n}_${i}`
3126
3164
  }, [
3127
- a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || $.value !== null && $.value === r || O.value !== null && O.value === r ? (u(), i("text", {
3165
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || F.value !== null && F.value === i ? (u(), r("text", {
3128
3166
  key: 0,
3129
3167
  x: a.x,
3130
3168
  y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
3131
3169
  "text-anchor": "middle",
3132
- "font-size": _.value.plotLabels,
3170
+ "font-size": $.value.plotLabels,
3133
3171
  fill: t.value.line.labels.color,
3134
3172
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3135
3173
  }, le(Oe(a.value) ? v(Se)(
@@ -3145,18 +3183,18 @@ const Qo = {
3145
3183
  datapoint: a,
3146
3184
  serie: e
3147
3185
  }
3148
- ) : ""), 13, ns)) : f("", !0)
3186
+ ) : ""), 13, vs)) : f("", !0)
3149
3187
  ], 64))), 128))
3150
3188
  ], 64))), 128))
3151
- ])) : (u(), i("g", us, [
3152
- (u(!0), i(g, null, C(Ie.value, (e, n) => (u(), i(g, {
3189
+ ])) : (u(), r("g", ds, [
3190
+ (u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
3153
3191
  key: `xLabel_line_${n}`
3154
3192
  }, [
3155
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
3156
- key: `xLabel_line_${n}_${r}`
3193
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3194
+ key: `xLabel_line_${n}_${i}`
3157
3195
  }, [
3158
- t.value.line.tag.followValue ? (u(), i(g, { key: 1 }, [
3159
- [O.value, $.value, mt.value].includes(r) && e.useTag ? (u(), i("line", {
3196
+ t.value.line.tag.followValue ? (u(), r(g, { key: 1 }, [
3197
+ [F.value, _.value, mt.value].includes(i) && e.useTag ? (u(), r("line", {
3160
3198
  key: 0,
3161
3199
  class: "vue-ui-xy-tag-line",
3162
3200
  x1: c.value.left,
@@ -3167,9 +3205,9 @@ const Qo = {
3167
3205
  "stroke-linecap": "round",
3168
3206
  "stroke-dasharray": "2",
3169
3207
  stroke: e.color
3170
- }, null, 8, vs)) : f("", !0)
3171
- ], 64)) : (u(), i(g, { key: 0 }, [
3172
- a && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
3208
+ }, null, 8, xs)) : f("", !0)
3209
+ ], 64)) : (u(), r(g, { key: 0 }, [
3210
+ a && i === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
3173
3211
  key: 0,
3174
3212
  x: a.x,
3175
3213
  y: a.y - 20,
@@ -3177,21 +3215,21 @@ const Qo = {
3177
3215
  width: "150",
3178
3216
  style: L(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3179
3217
  }, [
3180
- b("div", {
3181
- style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${_.value.plotLabels}px;border-radius: 2px;`),
3218
+ p("div", {
3219
+ style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${$.value.plotLabels}px;border-radius: 2px;`),
3182
3220
  innerHTML: v(Se)(
3183
3221
  t.value.line.tag.formatter,
3184
3222
  a.value,
3185
3223
  e.name,
3186
3224
  {
3187
3225
  datapoint: a,
3188
- seriesIndex: r,
3226
+ seriesIndex: i,
3189
3227
  serieName: e.name
3190
3228
  }
3191
3229
  )
3192
- }, null, 12, is)
3193
- ], 12, ss)) : f("", !0),
3194
- a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
3230
+ }, null, 12, fs)
3231
+ ], 12, hs)) : f("", !0),
3232
+ a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
3195
3233
  key: 1,
3196
3234
  x: a.x,
3197
3235
  y: a.y - 20,
@@ -3199,130 +3237,130 @@ const Qo = {
3199
3237
  width: "150",
3200
3238
  style: L(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3201
3239
  }, [
3202
- b("div", {
3203
- style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${_.value.plotLabels}px;border-radius: 2px;`),
3240
+ p("div", {
3241
+ style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${$.value.plotLabels}px;border-radius: 2px;`),
3204
3242
  innerHTML: v(Se)(
3205
3243
  t.value.line.tag.formatter,
3206
3244
  a.value,
3207
3245
  e.name,
3208
3246
  {
3209
3247
  datapoint: a,
3210
- seriesIndex: r,
3248
+ seriesIndex: i,
3211
3249
  serieName: e.name
3212
3250
  }
3213
3251
  )
3214
- }, null, 12, cs)
3215
- ], 12, rs)) : f("", !0)
3252
+ }, null, 12, gs)
3253
+ ], 12, ms)) : f("", !0)
3216
3254
  ], 64))
3217
3255
  ], 64))), 128))
3218
3256
  ], 64))), 128))
3219
3257
  ])),
3220
- (u(!0), i(g, null, C(Ie.value, (e, n) => (u(), i(g, {
3258
+ (u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
3221
3259
  key: `xLabel_line_${n}`
3222
3260
  }, [
3223
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
3224
- key: `xLabel_line_${n}_${r}`
3261
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3262
+ key: `xLabel_line_${n}_${i}`
3225
3263
  }, [
3226
- a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
3264
+ a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), r("text", {
3227
3265
  key: 0,
3228
- x: a.x - _.value.plotLabels,
3266
+ x: a.x - $.value.plotLabels,
3229
3267
  y: a.y,
3230
- "font-size": _.value.plotLabels,
3268
+ "font-size": $.value.plotLabels,
3231
3269
  "text-anchor": "end",
3232
3270
  fill: e.color,
3233
3271
  innerHTML: v(Nl)({
3234
3272
  content: e.name,
3235
- fontSize: _.value.plotLabels,
3273
+ fontSize: $.value.plotLabels,
3236
3274
  fill: e.color,
3237
- x: a.x - _.value.plotLabels,
3275
+ x: a.x - $.value.plotLabels,
3238
3276
  y: a.y,
3239
3277
  maxWords: 2
3240
3278
  }),
3241
3279
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3242
- }, null, 12, ds)) : f("", !0),
3243
- a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
3280
+ }, null, 12, bs)) : f("", !0),
3281
+ a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
3244
3282
  key: 1,
3245
- x: a.x + _.value.plotLabels,
3283
+ x: a.x + $.value.plotLabels,
3246
3284
  y: a.y,
3247
- "font-size": _.value.plotLabels,
3285
+ "font-size": $.value.plotLabels,
3248
3286
  "text-anchor": "start",
3249
3287
  fill: e.color,
3250
3288
  innerHTML: v(Nl)({
3251
3289
  content: e.name,
3252
- fontSize: _.value.plotLabels,
3290
+ fontSize: $.value.plotLabels,
3253
3291
  fill: e.color,
3254
- x: a.x + _.value.plotLabels,
3292
+ x: a.x + $.value.plotLabels,
3255
3293
  y: a.y,
3256
3294
  maxWords: 2
3257
3295
  }),
3258
3296
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3259
- }, null, 12, hs)) : f("", !0)
3297
+ }, null, 12, ps)) : f("", !0)
3260
3298
  ], 64))), 128))
3261
3299
  ], 64))), 128)),
3262
- (u(!0), i(g, null, C(Qe.value, (e, n) => (u(), i(g, {
3300
+ (u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
3263
3301
  key: `xLabel_plot_${n}`
3264
3302
  }, [
3265
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
3266
- key: `xLabel_plot_${n}_${r}`
3303
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3304
+ key: `xLabel_plot_${n}_${i}`
3267
3305
  }, [
3268
- a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
3306
+ a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), r("text", {
3269
3307
  key: 0,
3270
- x: a.x - _.value.plotLabels,
3308
+ x: a.x - $.value.plotLabels,
3271
3309
  y: a.y,
3272
- "font-size": _.value.plotLabels,
3310
+ "font-size": $.value.plotLabels,
3273
3311
  "text-anchor": "end",
3274
3312
  fill: e.color,
3275
3313
  innerHTML: v(Nl)({
3276
3314
  content: e.name,
3277
- fontSize: _.value.plotLabels,
3315
+ fontSize: $.value.plotLabels,
3278
3316
  fill: e.color,
3279
- x: a.x - _.value.plotLabels,
3317
+ x: a.x - $.value.plotLabels,
3280
3318
  y: a.y,
3281
3319
  maxWords: 2
3282
3320
  }),
3283
3321
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3284
- }, null, 12, fs)) : f("", !0),
3285
- a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
3322
+ }, null, 12, ys)) : f("", !0),
3323
+ a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
3286
3324
  key: 1,
3287
- x: a.x + _.value.plotLabels,
3325
+ x: a.x + $.value.plotLabels,
3288
3326
  y: a.y,
3289
- "font-size": _.value.plotLabels,
3327
+ "font-size": $.value.plotLabels,
3290
3328
  "text-anchor": "start",
3291
3329
  fill: e.color,
3292
3330
  innerHTML: v(Nl)({
3293
3331
  content: e.name,
3294
- fontSize: _.value.plotLabels,
3332
+ fontSize: $.value.plotLabels,
3295
3333
  fill: e.color,
3296
- x: a.x + _.value.plotLabels,
3334
+ x: a.x + $.value.plotLabels,
3297
3335
  y: a.y,
3298
3336
  maxWords: 2
3299
3337
  }),
3300
3338
  style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3301
- }, null, 12, ms)) : f("", !0)
3339
+ }, null, 12, ks)) : f("", !0)
3302
3340
  ], 64))), 128))
3303
3341
  ], 64))), 128)),
3304
- k.value.useIndividualScale && !k.value.isStacked ? (u(), i(g, { key: 13 }, [
3305
- b("defs", null, [
3306
- (u(!0), i(g, null, C(ml.value, (e, n) => (u(), i("linearGradient", {
3342
+ k.value.useIndividualScale && !k.value.isStacked ? (u(), r(g, { key: 13 }, [
3343
+ p("defs", null, [
3344
+ (u(!0), r(g, null, C(xl.value, (e, n) => (u(), r("linearGradient", {
3307
3345
  id: `individual_scale_gradient_${G.value}_${n}`,
3308
3346
  x1: "0%",
3309
3347
  x2: "100%",
3310
3348
  y1: "0%",
3311
3349
  y2: "0%"
3312
3350
  }, [
3313
- b("stop", {
3351
+ p("stop", {
3314
3352
  offset: "0%",
3315
3353
  "stop-color": t.value.chart.backgroundColor,
3316
3354
  "stop-opacity": "0"
3317
- }, null, 8, xs),
3318
- b("stop", {
3355
+ }, null, 8, Ss),
3356
+ p("stop", {
3319
3357
  offset: "100%",
3320
3358
  "stop-color": e.color,
3321
3359
  "stop-opacity": "0.2"
3322
- }, null, 8, bs)
3323
- ], 8, gs))), 256))
3360
+ }, null, 8, _s)
3361
+ ], 8, ws))), 256))
3324
3362
  ]),
3325
- (u(!0), i(g, null, C(ml.value, (e, n) => (u(), i("rect", {
3363
+ (u(!0), r(g, null, C(xl.value, (e, n) => (u(), r("rect", {
3326
3364
  x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + Q.value - c.value.individualOffsetX,
3327
3365
  y: c.value.top,
3328
3366
  width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
@@ -3330,91 +3368,91 @@ const Qo = {
3330
3368
  fill: P.value === e.groupId ? `url(#individual_scale_gradient_${G.value}_${n})` : "transparent",
3331
3369
  onMouseenter: (a) => P.value = e.groupId,
3332
3370
  onMouseleave: s[0] || (s[0] = (a) => P.value = null)
3333
- }, null, 40, ps))), 256))
3371
+ }, null, 40, $s))), 256))
3334
3372
  ], 64)) : f("", !0),
3335
- b("g", null, [
3336
- t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (u(), i("text", {
3373
+ p("g", null, [
3374
+ t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (u(), r("text", {
3337
3375
  key: 0,
3338
3376
  ref_key: "yAxisLabel",
3339
- ref: Ut,
3340
- "font-size": _.value.yAxis,
3377
+ ref: qt,
3378
+ "font-size": $.value.yAxis,
3341
3379
  fill: t.value.chart.grid.labels.color,
3342
3380
  transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
3343
3381
  "text-anchor": "middle",
3344
3382
  style: { transition: "none" }
3345
- }, le(t.value.chart.grid.labels.axis.yLabel), 9, ys)) : f("", !0),
3346
- t.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
3383
+ }, le(t.value.chart.grid.labels.axis.yLabel), 9, Ls)) : f("", !0),
3384
+ t.value.chart.grid.labels.axis.xLabel ? (u(), r("text", {
3347
3385
  key: 1,
3348
3386
  ref_key: "xAxisLabel",
3349
3387
  ref: Ee,
3350
3388
  "text-anchor": "middle",
3351
3389
  x: ae.value / 2,
3352
3390
  y: ge.value - 3,
3353
- "font-size": _.value.yAxis,
3391
+ "font-size": $.value.yAxis,
3354
3392
  fill: t.value.chart.grid.labels.color
3355
- }, le(t.value.chart.grid.labels.axis.xLabel), 9, ks)) : f("", !0)
3393
+ }, le(t.value.chart.grid.labels.axis.xLabel), 9, Ms)) : f("", !0)
3356
3394
  ]),
3357
- t.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
3395
+ t.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", {
3358
3396
  key: 14,
3359
3397
  ref_key: "timeLabelsEls",
3360
3398
  ref: ht
3361
3399
  }, [
3362
- l.$slots["time-label"] ? (u(!0), i(g, { key: 0 }, C(Yl.value, (e, n) => J(l.$slots, "time-label", Il({
3400
+ l.$slots["time-label"] ? (u(!0), r(g, { key: 0 }, C(Xl.value, (e, n) => J(l.$slots, "time-label", Tl({
3363
3401
  key: `time_label_${n}`,
3364
3402
  ref_for: !0
3365
3403
  }, {
3366
3404
  x: c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2,
3367
3405
  y: c.value.bottom,
3368
- fontSize: _.value.xAxis,
3406
+ fontSize: $.value.xAxis,
3369
3407
  fill: t.value.chart.grid.labels.xAxisLabels.color,
3370
- transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + _.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3408
+ transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + $.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3371
3409
  absoluteIndex: e.absoluteIndex,
3372
3410
  content: e.text,
3373
3411
  textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3374
3412
  show: e && e.text
3375
- }), void 0, !0)), 128)) : (u(!0), i(g, { key: 1 }, C(Yl.value, (e, n) => (u(), i("g", {
3413
+ }), void 0, !0)), 128)) : (u(!0), r(g, { key: 1 }, C(Xl.value, (e, n) => (u(), r("g", {
3376
3414
  key: `time_label_${n}`
3377
3415
  }, [
3378
- e && e.text ? (u(), i(g, { key: 0 }, [
3416
+ e && e.text ? (u(), r(g, { key: 0 }, [
3379
3417
  String(e.text).includes(`
3380
- `) ? (u(), i("text", {
3418
+ `) ? (u(), r("text", {
3381
3419
  key: 1,
3382
3420
  class: "vue-data-ui-time-label",
3383
3421
  "text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3384
- "font-size": _.value.xAxis,
3422
+ "font-size": $.value.xAxis,
3385
3423
  fill: t.value.chart.grid.labels.xAxisLabels.color,
3386
- transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + _.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3424
+ transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + $.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3387
3425
  style: L({
3388
3426
  cursor: ta() ? "pointer" : "default"
3389
3427
  }),
3390
- innerHTML: v(Oo)({
3428
+ innerHTML: v(Wo)({
3391
3429
  content: String(e.text),
3392
- fontSize: _.value.xAxis,
3430
+ fontSize: $.value.xAxis,
3393
3431
  fill: t.value.chart.grid.labels.xAxisLabels.color,
3394
3432
  x: 0,
3395
3433
  y: 0
3396
3434
  }),
3397
3435
  onClick: () => ua(e, n)
3398
- }, null, 12, Ss)) : (u(), i("text", {
3436
+ }, null, 12, As)) : (u(), r("text", {
3399
3437
  key: 0,
3400
3438
  class: "vue-data-ui-time-label",
3401
3439
  "text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3402
- "font-size": _.value.xAxis,
3440
+ "font-size": $.value.xAxis,
3403
3441
  fill: t.value.chart.grid.labels.xAxisLabels.color,
3404
- transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + _.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3442
+ transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + $.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3405
3443
  style: L({
3406
3444
  cursor: ta() ? "pointer" : "default"
3407
3445
  }),
3408
3446
  onClick: () => ua(e, n)
3409
- }, le(e.text || ""), 13, ws))
3447
+ }, le(e.text || ""), 13, Cs))
3410
3448
  ], 64)) : f("", !0)
3411
3449
  ]))), 128))
3412
3450
  ], 512)) : f("", !0),
3413
- ya.value.length && !k.value.isStacked ? (u(), i("g", $s, [
3414
- (u(!0), i(g, null, C(ya.value, (e) => (u(), i("g", {
3451
+ ya.value.length && !k.value.isStacked ? (u(), r("g", zs, [
3452
+ (u(!0), r(g, null, C(ya.value, (e) => (u(), r("g", {
3415
3453
  key: e.uid
3416
3454
  }, [
3417
- e.yTop && e.show && isFinite(e.yTop) ? (u(), i("line", {
3455
+ e.yTop && e.show && isFinite(e.yTop) ? (u(), r("line", {
3418
3456
  key: 0,
3419
3457
  x1: e.x1,
3420
3458
  y1: e.yTop,
@@ -3425,8 +3463,8 @@ const Qo = {
3425
3463
  "stroke-dasharray": e.config.line.strokeDasharray,
3426
3464
  "stroke-linecap": "round",
3427
3465
  style: { animation: "none !important" }
3428
- }, null, 8, _s)) : f("", !0),
3429
- e.yBottom && e.show && isFinite(e.yBottom) ? (u(), i("line", {
3466
+ }, null, 8, Ts)) : f("", !0),
3467
+ e.yBottom && e.show && isFinite(e.yBottom) ? (u(), r("line", {
3430
3468
  key: 1,
3431
3469
  x1: e.x1,
3432
3470
  y1: e.yBottom,
@@ -3437,8 +3475,8 @@ const Qo = {
3437
3475
  "stroke-dasharray": e.config.line.strokeDasharray,
3438
3476
  "stroke-linecap": "round",
3439
3477
  style: { animation: "none !important" }
3440
- }, null, 8, Ls)) : f("", !0),
3441
- e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
3478
+ }, null, 8, Is)) : f("", !0),
3479
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), r("rect", {
3442
3480
  key: 2,
3443
3481
  y: Math.min(e.yTop, e.yBottom),
3444
3482
  x: e.x1,
@@ -3446,12 +3484,12 @@ const Qo = {
3446
3484
  height: v(V)(e.areaHeight, 0),
3447
3485
  fill: v(et)(e.config.area.fill, e.config.area.opacity),
3448
3486
  style: { animation: "none !important" }
3449
- }, null, 8, Ms)) : f("", !0),
3450
- e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", Il({
3487
+ }, null, 8, Ns)) : f("", !0),
3488
+ e.config.label.text && e.show && isFinite(e._box.y) ? (u(), r("rect", Tl({
3451
3489
  key: 3,
3452
3490
  class: "vue-ui-xy-annotation-label-box"
3453
3491
  }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : f("", !0),
3454
- e.config.label.text && e.show && isFinite(e._text.y) ? (u(), i("text", {
3492
+ e.config.label.text && e.show && isFinite(e._text.y) ? (u(), r("text", {
3455
3493
  key: 4,
3456
3494
  id: e.id,
3457
3495
  class: "vue-ui-xy-annotation-label",
@@ -3460,67 +3498,69 @@ const Qo = {
3460
3498
  "font-size": e.config.label.fontSize,
3461
3499
  fill: e.config.label.color,
3462
3500
  "text-anchor": e.config.label.textAnchor
3463
- }, le(e.config.label.text), 9, Cs)) : f("", !0)
3501
+ }, le(e.config.label.text), 9, Rs)) : f("", !0)
3464
3502
  ]))), 128))
3465
3503
  ])) : f("", !0),
3466
- t.value.chart.timeTag.show && (![null, void 0].includes($.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", As, [
3467
- (u(), i("foreignObject", {
3468
- x: c.value.left + c.value.width / I.value * (($.value !== null ? $.value : 0) || (O.value !== null ? O.value : 0)) - 100 + c.value.width / I.value / 2,
3504
+ t.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(F.value)) ? (u(), r("g", Ps, [
3505
+ (u(), r("foreignObject", {
3506
+ x: po(),
3469
3507
  y: c.value.bottom,
3470
3508
  width: "200",
3471
3509
  height: "40",
3472
3510
  style: { overflow: "visible !important" }
3473
3511
  }, [
3474
- b("div", {
3512
+ p("div", {
3513
+ ref_key: "timeTagEl",
3514
+ ref: Ra,
3475
3515
  class: "vue-ui-xy-time-tag",
3476
3516
  style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
3477
- innerHTML: ho.value
3478
- }, null, 12, Is)
3479
- ], 8, zs)),
3480
- b("circle", {
3481
- cx: c.value.left + c.value.width / I.value * (($.value !== null ? $.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / I.value / 2,
3517
+ innerHTML: yo.value
3518
+ }, null, 12, Fs)
3519
+ ], 8, Os)),
3520
+ p("circle", {
3521
+ cx: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
3482
3522
  cy: c.value.bottom,
3483
3523
  r: t.value.chart.timeTag.circleMarker.radius,
3484
3524
  fill: t.value.chart.timeTag.circleMarker.color
3485
- }, null, 8, Ts)
3525
+ }, null, 8, Hs)
3486
3526
  ])) : f("", !0)
3487
3527
  ])) : f("", !0),
3488
- wt.value ? (u(), i("rect", Il({ key: 2 }, ve.value, {
3528
+ wt.value ? (u(), r("rect", Tl({ key: 2 }, ve.value, {
3489
3529
  "data-start": y.value.start,
3490
3530
  "data-end": y.value.end
3491
- }), null, 16, Ns)) : f("", !0),
3531
+ }), null, 16, Vs)) : f("", !0),
3492
3532
  J(l.$slots, "svg", { svg: ut.value }, void 0, !0)
3493
3533
  ], 512)
3494
- ], 46, wn)),
3495
- l.$slots.watermark ? (u(), i("div", Rs, [
3534
+ ], 46, Cn)),
3535
+ l.$slots.watermark ? (u(), r("div", Bs, [
3496
3536
  J(l.$slots, "watermark", Ct(At({ isPrinting: v(m) || v(h) })), void 0, !0)
3497
3537
  ])) : f("", !0),
3498
- (u(!0), i(g, null, C(Ie.value, (e, n) => (u(), i(g, {
3538
+ (u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
3499
3539
  key: `tag_line_${n}`
3500
3540
  }, [
3501
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
3502
- key: `tag_line_${n}_${r}`
3541
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3542
+ key: `tag_line_${n}_${i}`
3503
3543
  }, [
3504
- [O.value, $.value, mt.value].includes(r) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (u(), i("div", {
3544
+ [F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (u(), r("div", {
3505
3545
  key: 0,
3506
3546
  ref_for: !0,
3507
- ref: (o) => wl(n, r, o, "right", "line"),
3547
+ ref: (o) => wl(n, i, o, "right", "line"),
3508
3548
  class: "vue-ui-xy-tag",
3509
3549
  "data-tag": "right",
3510
3550
  style: L({
3511
3551
  position: "fixed",
3512
3552
  top: v(zt)({
3513
- svgElement: $e.value,
3553
+ svgElement: _e.value,
3514
3554
  x: c.value.right + t.value.line.tag.fontSize / 1.5,
3515
3555
  y: a.y,
3516
- element: De.value[`${n}_${r}_right_line`],
3556
+ element: We.value[`${n}_${i}_right_line`],
3517
3557
  position: "right"
3518
3558
  }).top + "px",
3519
3559
  left: v(zt)({
3520
- svgElement: $e.value,
3560
+ svgElement: _e.value,
3521
3561
  x: c.value.right + t.value.line.tag.fontSize / 1.5,
3522
3562
  y: a.y,
3523
- element: De.value[`${n}_${r}_right_line`],
3563
+ element: We.value[`${n}_${i}_right_line`],
3524
3564
  position: "right"
3525
3565
  }).left + "px",
3526
3566
  height: "fit-content",
@@ -3532,14 +3572,14 @@ const Qo = {
3532
3572
  opacity: 1
3533
3573
  })
3534
3574
  }, [
3535
- (u(), i("svg", Ps, [
3536
- b("path", {
3575
+ (u(), r("svg", Es, [
3576
+ p("path", {
3537
3577
  d: "M 0,10 10,0 10,20 Z",
3538
3578
  fill: e.color,
3539
3579
  stroke: "none"
3540
- }, null, 8, Os)
3580
+ }, null, 8, Ws)
3541
3581
  ])),
3542
- b("div", {
3582
+ p("div", {
3543
3583
  class: "vue-ui-xy-tag-content",
3544
3584
  innerHTML: v(Se)(
3545
3585
  t.value.line.tag.formatter,
@@ -3547,32 +3587,32 @@ const Qo = {
3547
3587
  e.name,
3548
3588
  {
3549
3589
  datapoint: a,
3550
- seriesIndex: r,
3590
+ seriesIndex: i,
3551
3591
  serieName: e.name
3552
3592
  }
3553
3593
  )
3554
- }, null, 8, Fs)
3594
+ }, null, 8, Ds)
3555
3595
  ], 4)) : f("", !0),
3556
- [O.value, $.value, mt.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (u(), i("div", {
3596
+ [F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (u(), r("div", {
3557
3597
  key: 1,
3558
3598
  ref_for: !0,
3559
- ref: (o) => wl(n, r, o, "left", "line"),
3599
+ ref: (o) => wl(n, i, o, "left", "line"),
3560
3600
  class: "vue-ui-xy-tag",
3561
3601
  "data-tag": "left",
3562
3602
  style: L({
3563
3603
  position: "fixed",
3564
3604
  top: v(zt)({
3565
- svgElement: $e.value,
3605
+ svgElement: _e.value,
3566
3606
  x: c.value.left - t.value.line.tag.fontSize / 1.5,
3567
3607
  y: a.y,
3568
- element: De.value[`${n}_${r}_left_line`],
3608
+ element: We.value[`${n}_${i}_left_line`],
3569
3609
  position: "left"
3570
3610
  }).top + "px",
3571
3611
  left: v(zt)({
3572
- svgElement: $e.value,
3612
+ svgElement: _e.value,
3573
3613
  x: c.value.left - t.value.line.tag.fontSize / 1.5,
3574
3614
  y: a.y,
3575
- element: De.value[`${n}_${r}_left_line`],
3615
+ element: We.value[`${n}_${i}_left_line`],
3576
3616
  position: "left"
3577
3617
  }).left + "px",
3578
3618
  height: "fit-content",
@@ -3584,14 +3624,14 @@ const Qo = {
3584
3624
  opacity: 1
3585
3625
  })
3586
3626
  }, [
3587
- (u(), i("svg", Hs, [
3588
- b("path", {
3627
+ (u(), r("svg", Xs, [
3628
+ p("path", {
3589
3629
  d: "M 0,0 10,10 0,20 Z",
3590
3630
  fill: e.color,
3591
3631
  stroke: "none"
3592
- }, null, 8, Vs)
3632
+ }, null, 8, Ys)
3593
3633
  ])),
3594
- b("div", {
3634
+ p("div", {
3595
3635
  class: "vue-ui-xy-tag-content",
3596
3636
  innerHTML: v(Se)(
3597
3637
  t.value.line.tag.formatter,
@@ -3599,40 +3639,40 @@ const Qo = {
3599
3639
  e.name,
3600
3640
  {
3601
3641
  datapoint: a,
3602
- seriesIndex: r,
3642
+ seriesIndex: i,
3603
3643
  serieName: e.name
3604
3644
  }
3605
3645
  )
3606
- }, null, 8, Bs)
3646
+ }, null, 8, Gs)
3607
3647
  ], 4)) : f("", !0)
3608
3648
  ], 64))), 128))
3609
3649
  ], 64))), 128)),
3610
- (u(!0), i(g, null, C(Qe.value, (e, n) => (u(), i(g, {
3650
+ (u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
3611
3651
  key: `tag_plot_${n}`
3612
3652
  }, [
3613
- (u(!0), i(g, null, C(e.plots, (a, r) => (u(), i(g, {
3614
- key: `tag_plot_${n}_${r}`
3653
+ (u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
3654
+ key: `tag_plot_${n}_${i}`
3615
3655
  }, [
3616
- [O.value, $.value, mt.value].includes(r) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (u(), i("div", {
3656
+ [F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (u(), r("div", {
3617
3657
  key: 0,
3618
3658
  ref_for: !0,
3619
- ref: (o) => wl(n, r, o, "right", "plot"),
3659
+ ref: (o) => wl(n, i, o, "right", "plot"),
3620
3660
  class: "vue-ui-xy-tag",
3621
3661
  "data-tag": "right",
3622
3662
  style: L({
3623
3663
  position: "fixed",
3624
3664
  top: v(zt)({
3625
- svgElement: $e.value,
3665
+ svgElement: _e.value,
3626
3666
  x: c.value.right + t.value.plot.tag.fontSize / 1.5,
3627
3667
  y: a.y,
3628
- element: De.value[`${n}_${r}_right_plot`],
3668
+ element: We.value[`${n}_${i}_right_plot`],
3629
3669
  position: "right"
3630
3670
  }).top + "px",
3631
3671
  left: v(zt)({
3632
- svgElement: $e.value,
3672
+ svgElement: _e.value,
3633
3673
  x: c.value.right + t.value.plot.tag.fontSize / 1.5,
3634
3674
  y: a.y,
3635
- element: De.value[`${n}_${r}_right_plot`],
3675
+ element: We.value[`${n}_${i}_right_plot`],
3636
3676
  position: "right"
3637
3677
  }).left + "px",
3638
3678
  height: "fit-content",
@@ -3644,14 +3684,14 @@ const Qo = {
3644
3684
  opacity: 1
3645
3685
  })
3646
3686
  }, [
3647
- (u(), i("svg", Es, [
3648
- b("path", {
3687
+ (u(), r("svg", Us, [
3688
+ p("path", {
3649
3689
  d: "M 0,10 10,0 10,20 Z",
3650
3690
  fill: e.color,
3651
3691
  stroke: "none"
3652
- }, null, 8, Ds)
3692
+ }, null, 8, qs)
3653
3693
  ])),
3654
- b("div", {
3694
+ p("div", {
3655
3695
  class: "vue-ui-xy-tag-content",
3656
3696
  innerHTML: v(Se)(
3657
3697
  t.value.plot.tag.formatter,
@@ -3659,32 +3699,32 @@ const Qo = {
3659
3699
  e.name,
3660
3700
  {
3661
3701
  datapoint: a,
3662
- seriesIndex: r,
3702
+ seriesIndex: i,
3663
3703
  serieName: e.name
3664
3704
  }
3665
3705
  )
3666
- }, null, 8, Ws)
3706
+ }, null, 8, Zs)
3667
3707
  ], 4)) : f("", !0),
3668
- [O.value, $.value, mt.value].includes(r) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (u(), i("div", {
3708
+ [F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (u(), r("div", {
3669
3709
  key: 1,
3670
3710
  ref_for: !0,
3671
- ref: (o) => wl(n, r, o, "left", "plot"),
3711
+ ref: (o) => wl(n, i, o, "left", "plot"),
3672
3712
  class: "vue-ui-xy-tag",
3673
3713
  "data-tag": "left",
3674
3714
  style: L({
3675
3715
  position: "fixed",
3676
3716
  top: v(zt)({
3677
- svgElement: $e.value,
3717
+ svgElement: _e.value,
3678
3718
  x: c.value.left - t.value.plot.tag.fontSize / 1.5,
3679
3719
  y: a.y,
3680
- element: De.value[`${n}_${r}_left_plot`],
3720
+ element: We.value[`${n}_${i}_left_plot`],
3681
3721
  position: "left"
3682
3722
  }).top + "px",
3683
3723
  left: v(zt)({
3684
- svgElement: $e.value,
3724
+ svgElement: _e.value,
3685
3725
  x: c.value.left - t.value.plot.tag.fontSize / 1.5,
3686
3726
  y: a.y,
3687
- element: De.value[`${n}_${r}_left_plot`],
3727
+ element: We.value[`${n}_${i}_left_plot`],
3688
3728
  position: "left"
3689
3729
  }).left + "px",
3690
3730
  height: "fit-content",
@@ -3696,14 +3736,14 @@ const Qo = {
3696
3736
  opacity: 1
3697
3737
  })
3698
3738
  }, [
3699
- (u(), i("svg", Ys, [
3700
- b("path", {
3739
+ (u(), r("svg", Ks, [
3740
+ p("path", {
3701
3741
  d: "M 0,0 10,10 0,20 Z",
3702
3742
  fill: e.color,
3703
3743
  stroke: "none"
3704
- }, null, 8, Xs)
3744
+ }, null, 8, Js)
3705
3745
  ])),
3706
- b("div", {
3746
+ p("div", {
3707
3747
  class: "vue-ui-xy-tag-content",
3708
3748
  innerHTML: v(Se)(
3709
3749
  t.value.plot.tag.formatter,
@@ -3711,20 +3751,20 @@ const Qo = {
3711
3751
  e.name,
3712
3752
  {
3713
3753
  datapoint: a,
3714
- seriesIndex: r,
3754
+ seriesIndex: i,
3715
3755
  serieName: e.name
3716
3756
  }
3717
3757
  )
3718
- }, null, 8, Gs)
3758
+ }, null, 8, Qs)
3719
3759
  ], 4)) : f("", !0)
3720
3760
  ], 64))), 128))
3721
3761
  ], 64))), 128)),
3722
- t.value.chart.zoom.preview.enable ? (u(), i(g, { key: 5 }, [
3723
- t.value.chart.zoom.show && _e.value > 6 && it.value ? (u(), Ge(pn, {
3762
+ t.value.chart.zoom.preview.enable ? (u(), r(g, { key: 5 }, [
3763
+ t.value.chart.zoom.show && $e.value > 6 && it.value ? (u(), Ge($n, {
3724
3764
  ref_key: "chartSlicer",
3725
3765
  ref: Ne,
3726
3766
  key: `slicer_${Zt.value}`,
3727
- max: _e.value,
3767
+ max: $e.value,
3728
3768
  min: 0,
3729
3769
  valueStart: y.value.start,
3730
3770
  valueEnd: y.value.end,
@@ -3751,7 +3791,7 @@ const Qo = {
3751
3791
  minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
3752
3792
  minimapLineColor: t.value.chart.zoom.minimap.lineColor,
3753
3793
  minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
3754
- minimapSelectedIndex: $.value,
3794
+ minimapSelectedIndex: _.value,
3755
3795
  minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
3756
3796
  verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
3757
3797
  refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
@@ -3770,12 +3810,12 @@ const Qo = {
3770
3810
  ]),
3771
3811
  _: 3
3772
3812
  }, 8, ["max", "valueStart", "valueEnd", "start", "end", "selectedSeries", "customFormat", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "usePreciseLabels", "preciseLabels", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "timeLabels", "isPreview"])) : f("", !0)
3773
- ], 64)) : (u(), i(g, { key: 6 }, [
3774
- t.value.chart.zoom.show && _e.value > 6 && it.value ? (u(), Ge(Ko, {
3813
+ ], 64)) : (u(), r(g, { key: 6 }, [
3814
+ t.value.chart.zoom.show && $e.value > 6 && it.value ? (u(), Ge(ln, {
3775
3815
  ref_key: "chartSlicer",
3776
3816
  ref: Ne,
3777
3817
  key: `slicer_${Zt.value}`,
3778
- max: _e.value,
3818
+ max: $e.value,
3779
3819
  min: 0,
3780
3820
  valueStart: y.value.start,
3781
3821
  valueEnd: y.value.end,
@@ -3786,8 +3826,8 @@ const Qo = {
3786
3826
  background: t.value.chart.zoom.color,
3787
3827
  fontSize: t.value.chart.zoom.fontSize,
3788
3828
  useResetSlot: t.value.chart.zoom.useResetSlot,
3789
- labelLeft: $a.value.left,
3790
- labelRight: $a.value.right,
3829
+ labelLeft: _a.value.left,
3830
+ labelRight: _a.value.right,
3791
3831
  textColor: t.value.chart.color,
3792
3832
  inputColor: t.value.chart.zoom.color,
3793
3833
  selectColor: t.value.chart.zoom.highlightColor,
@@ -3798,7 +3838,7 @@ const Qo = {
3798
3838
  minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
3799
3839
  minimapLineColor: t.value.chart.zoom.minimap.lineColor,
3800
3840
  minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
3801
- minimapSelectedIndex: $.value,
3841
+ minimapSelectedIndex: _.value,
3802
3842
  minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
3803
3843
  verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
3804
3844
  refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
@@ -3814,27 +3854,27 @@ const Qo = {
3814
3854
  _: 3
3815
3855
  }, 8, ["max", "valueStart", "valueEnd", "start", "end", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : f("", !0)
3816
3856
  ], 64)),
3817
- b("div", {
3857
+ p("div", {
3818
3858
  id: `legend-bottom-${G.value}`
3819
- }, null, 8, Us),
3820
- Ke.value ? (u(), Ge(wo, {
3859
+ }, null, 8, js),
3860
+ Ke.value ? (u(), Ge(Co, {
3821
3861
  key: 7,
3822
3862
  to: t.value.chart.legend.position === "top" ? `#legend-top-${G.value}` : `#legend-bottom-${G.value}`
3823
3863
  }, [
3824
- t.value.chart.legend.show ? (u(), i("div", {
3864
+ t.value.chart.legend.show ? (u(), r("div", {
3825
3865
  key: 0,
3826
3866
  ref_key: "chartLegend",
3827
3867
  ref: at,
3828
3868
  class: "vue-ui-xy-legend",
3829
3869
  style: L(`font-size:${t.value.chart.legend.fontSize}px`)
3830
3870
  }, [
3831
- (u(!0), i(g, null, C(rt.value, (e, n) => (u(), i("div", {
3871
+ (u(!0), r(g, null, C(rt.value, (e, n) => (u(), r("div", {
3832
3872
  key: `div_legend_item_${n}`,
3833
3873
  onClick: (a) => ga(e),
3834
3874
  class: Ve({ "vue-ui-xy-legend-item-alone": rt.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ce.value.includes(e.id) })
3835
3875
  }, [
3836
- oe.value[e.type] === "line" ? (u(), i("svg", qs, [
3837
- b("rect", {
3876
+ oe.value[e.type] === "line" ? (u(), r("svg", ti, [
3877
+ p("rect", {
3838
3878
  x: "0",
3839
3879
  y: "7.5",
3840
3880
  rx: "1.5",
@@ -3843,8 +3883,8 @@ const Qo = {
3843
3883
  height: "3",
3844
3884
  width: "20",
3845
3885
  fill: e.color
3846
- }, null, 8, Ks),
3847
- ll(Rl, {
3886
+ }, null, 8, li),
3887
+ al(Rl, {
3848
3888
  plot: { x: 10, y: 9 },
3849
3889
  radius: 4,
3850
3890
  color: e.color,
@@ -3852,8 +3892,8 @@ const Qo = {
3852
3892
  stroke: t.value.chart.backgroundColor,
3853
3893
  strokeWidth: 0.5
3854
3894
  }, null, 8, ["color", "shape", "stroke"])
3855
- ])) : oe.value[e.type] === "bar" ? (u(), i("svg", Js, [
3856
- oe.value[e.type] === "bar" && l.$slots.pattern ? (u(), i("rect", {
3895
+ ])) : oe.value[e.type] === "bar" ? (u(), r("svg", ai, [
3896
+ oe.value[e.type] === "bar" && l.$slots.pattern ? (u(), r("rect", {
3857
3897
  key: 0,
3858
3898
  x: "0",
3859
3899
  y: "0",
@@ -3862,8 +3902,8 @@ const Qo = {
3862
3902
  width: "40",
3863
3903
  stroke: "none",
3864
3904
  fill: e.color
3865
- }, null, 8, Qs)) : f("", !0),
3866
- oe.value[e.type] === "bar" ? (u(), i("rect", {
3905
+ }, null, 8, oi)) : f("", !0),
3906
+ oe.value[e.type] === "bar" ? (u(), r("rect", {
3867
3907
  key: 1,
3868
3908
  x: "0",
3869
3909
  y: "0",
@@ -3872,20 +3912,20 @@ const Qo = {
3872
3912
  width: "40",
3873
3913
  stroke: "none",
3874
3914
  fill: l.$slots.pattern ? `url(#pattern_${G.value}_${e.slotAbsoluteIndex})` : e.color
3875
- }, null, 8, js)) : f("", !0)
3876
- ])) : (u(), i("svg", ei, [
3877
- ll(Rl, {
3915
+ }, null, 8, ni)) : f("", !0)
3916
+ ])) : (u(), r("svg", ui, [
3917
+ al(Rl, {
3878
3918
  plot: { x: 6, y: 6 },
3879
3919
  radius: 5,
3880
3920
  color: e.color,
3881
3921
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle"
3882
3922
  }, null, 8, ["color", "shape"])
3883
3923
  ])),
3884
- b("span", {
3924
+ p("span", {
3885
3925
  style: L(`color:${t.value.chart.legend.color}`)
3886
3926
  }, le(e.name), 5)
3887
- ], 10, Zs))), 128))
3888
- ], 4)) : (u(), i("div", {
3927
+ ], 10, ei))), 128))
3928
+ ], 4)) : (u(), r("div", {
3889
3929
  key: 1,
3890
3930
  ref_key: "chartLegend",
3891
3931
  ref: at
@@ -3893,15 +3933,15 @@ const Qo = {
3893
3933
  J(l.$slots, "legend", { legend: rt.value }, void 0, !0)
3894
3934
  ], 512))
3895
3935
  ], 8, ["to"])) : f("", !0),
3896
- l.$slots.source ? (u(), i("div", {
3936
+ l.$slots.source ? (u(), r("div", {
3897
3937
  key: 8,
3898
3938
  ref_key: "source",
3899
- ref: Tt,
3939
+ ref: It,
3900
3940
  dir: "auto"
3901
3941
  }, [
3902
3942
  J(l.$slots, "source", {}, void 0, !0)
3903
3943
  ], 512)) : f("", !0),
3904
- ll(v(ie), {
3944
+ al(v(ie), {
3905
3945
  show: k.value.showTooltip && ft.value,
3906
3946
  backgroundColor: t.value.chart.tooltip.backgroundColor,
3907
3947
  color: t.value.chart.tooltip.color,
@@ -3913,7 +3953,7 @@ const Qo = {
3913
3953
  position: t.value.chart.tooltip.position,
3914
3954
  offsetY: t.value.chart.tooltip.offsetY,
3915
3955
  parent: l.$refs.chart,
3916
- content: vo.value,
3956
+ content: go.value,
3917
3957
  isFullscreen: ye.value,
3918
3958
  isCustom: t.value.chart.tooltip.customFormat && typeof t.value.chart.tooltip.customFormat == "function",
3919
3959
  smooth: t.value.chart.tooltip.smooth,
@@ -3927,7 +3967,7 @@ const Qo = {
3927
3967
  ]),
3928
3968
  _: 3
3929
3969
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
3930
- it.value ? (u(), Ge(v(Xt), {
3970
+ it.value ? (u(), Ge(v(Gt), {
3931
3971
  key: 9,
3932
3972
  hideDetails: "",
3933
3973
  config: {
@@ -3944,33 +3984,33 @@ const Qo = {
3944
3984
  }
3945
3985
  }, {
3946
3986
  content: xe(() => [
3947
- b("div", {
3987
+ p("div", {
3948
3988
  style: L(`${v(m) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
3949
3989
  }, [
3950
- b("div", ti, [
3951
- Ql(b("input", {
3990
+ p("div", si, [
3991
+ Ql(p("input", {
3952
3992
  type: "checkbox",
3953
3993
  "onUpdate:modelValue": s[7] || (s[7] = (e) => kt.value = e)
3954
3994
  }, null, 512), [
3955
- [So, kt.value]
3995
+ [Ao, kt.value]
3956
3996
  ]),
3957
- b("div", {
3997
+ p("div", {
3958
3998
  onClick: s[8] || (s[8] = (e) => kt.value = !kt.value),
3959
3999
  style: { cursor: "pointer" }
3960
4000
  }, [
3961
- ll(v(It), {
4001
+ al(v(Tt), {
3962
4002
  name: "chartLine",
3963
4003
  size: 20,
3964
4004
  stroke: t.value.chart.color
3965
4005
  }, null, 8, ["stroke"])
3966
4006
  ])
3967
4007
  ]),
3968
- kt.value ? (u(), Ge(v(ol), {
4008
+ kt.value ? (u(), Ge(v(ul), {
3969
4009
  key: `sparkline_${Ot.value}`,
3970
- dataset: io.value,
3971
- config: ro.value
4010
+ dataset: ho.value,
4011
+ config: fo.value
3972
4012
  }, null, 8, ["dataset", "config"])) : (u(), Ge(v(Be), {
3973
- key: `table_${il.value}`,
4013
+ key: `table_${cl.value}`,
3974
4014
  colNames: Al.value.colNames,
3975
4015
  head: Al.value.head,
3976
4016
  body: Al.value.body,
@@ -3979,10 +4019,10 @@ const Qo = {
3979
4019
  onClose: s[9] || (s[9] = (e) => k.value.showTable = !1)
3980
4020
  }, {
3981
4021
  th: xe(({ th: e }) => [
3982
- b("div", { innerHTML: e }, null, 8, li)
4022
+ p("div", { innerHTML: e }, null, 8, ii)
3983
4023
  ]),
3984
4024
  td: xe(({ td: e }) => [
3985
- $o(le(isNaN(Number(e)) ? e : v(Ue)({
4025
+ zo(le(isNaN(Number(e)) ? e : v(Ue)({
3986
4026
  p: t.value.chart.labels.prefix,
3987
4027
  v: e,
3988
4028
  s: t.value.chart.labels.suffix,
@@ -3995,10 +4035,10 @@ const Qo = {
3995
4035
  ]),
3996
4036
  _: 1
3997
4037
  }, 8, ["config"])) : f("", !0),
3998
- v(ne) ? (u(), Ge(Yo, { key: 10 })) : f("", !0)
3999
- ], 46, yn));
4038
+ v(ne) ? (u(), Ge(Ko, { key: 10 })) : f("", !0)
4039
+ ], 46, Ln));
4000
4040
  }
4001
- }, bi = /* @__PURE__ */ Wa(ai, [["__scopeId", "data-v-c42b3649"]]);
4041
+ }, _i = /* @__PURE__ */ Ua(ri, [["__scopeId", "data-v-83ca84ad"]]);
4002
4042
  export {
4003
- bi as default
4043
+ _i as default
4004
4044
  };