vue-data-ui 3.1.12 → 3.1.13

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 (88) hide show
  1. package/dist/{Arrow-DnYyMDgm.js → Arrow-CVLA4XvK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DJGsL96v.js → BaseDraggableDialog-R8VpARJu.js} +2 -2
  3. package/dist/{BaseIcon-DPvKcoLi.js → BaseIcon-CBGEVS_a.js} +1 -1
  4. package/dist/{ColorPicker-BaWoerGk.js → ColorPicker-YzV_LGZx.js} +2 -2
  5. package/dist/{DataTable-BksffQWJ.js → DataTable-DQRJv8EE.js} +2 -2
  6. package/dist/{Legend-BrnjolQg.js → Legend-CC3LegoH.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DTmF-NdK.js → NonSvgPenAndPaper-CmIOGkib.js} +3 -3
  8. package/dist/{PackageVersion-BDFJmlvg.js → PackageVersion-bFI66Iee.js} +1 -1
  9. package/dist/{PenAndPaper-Knveet_c.js → PenAndPaper-CHT5QaP8.js} +3 -3
  10. package/dist/{Shape-DOdamRE4.js → Shape-BWIW_Vmn.js} +1 -1
  11. package/dist/{Slicer-BbqJPn8J.js → Slicer-C7BMIgYA.js} +2 -2
  12. package/dist/{SparkTooltip-S_vcAMzQ.js → SparkTooltip-BP53cKq5.js} +1 -1
  13. package/dist/{Title-DW0Gn9KR.js → Title-BKsDkvCV.js} +1 -1
  14. package/dist/{Tooltip-KA5hkT_i.js → Tooltip-BA5KTZ2e.js} +1 -1
  15. package/dist/{UserOptions-B9oOeC1Y.js → UserOptions-usqWO4wC.js} +2 -2
  16. package/dist/{dom-to-png-DiJqrEPV.js → dom-to-png-BnO878iN.js} +1 -1
  17. package/dist/{img-BKkRZkoV.js → img-CVbbqgGH.js} +1 -1
  18. package/dist/{index-C6JKBlTi.js → index-CdN9MkL7.js} +1 -1
  19. package/dist/{pdf-BY252F83.js → pdf-D8ryJvtA.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useAutoSizeLabelsInsideViewbox-BBIUBbSZ.js → useAutoSizeLabelsInsideViewbox-CXgpnPOp.js} +1 -1
  22. package/dist/{useNestedProp-v9lPW2Pf.js → useNestedProp-oNhYagej.js} +1 -1
  23. package/dist/{usePrinter-CXsdP0nC.js → usePrinter-CLVErK_G.js} +2 -2
  24. package/dist/{vue-data-ui-CFAECdt-.js → vue-data-ui-ESVJfqTI.js} +64 -64
  25. package/dist/vue-data-ui.js +1 -1
  26. package/dist/{vue-ui-3d-bar-CS17yq3U.js → vue-ui-3d-bar-BEColjG7.js} +6 -6
  27. package/dist/{vue-ui-accordion-DXxnp5Dr.js → vue-ui-accordion-BoGANFKn.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-CwXmxx_Y.js → vue-ui-age-pyramid-D4hV5Mm5.js} +6 -6
  29. package/dist/{vue-ui-annotator-XIfSnMah.js → vue-ui-annotator-Bd14Ihi4.js} +2 -2
  30. package/dist/{vue-ui-bullet-XoaOkdBC.js → vue-ui-bullet-B3HG400j.js} +7 -7
  31. package/dist/{vue-ui-candlestick-DsvP2hcZ.js → vue-ui-candlestick-B6l4oAdh.js} +7 -7
  32. package/dist/{vue-ui-carousel-table-BOomNxwy.js → vue-ui-carousel-table-vCbymZEo.js} +4 -4
  33. package/dist/{vue-ui-chestnut-D-3450ai.js → vue-ui-chestnut-BQ6iufUt.js} +5 -5
  34. package/dist/{vue-ui-chord-CZQgOrSh.js → vue-ui-chord-DW8T8npL.js} +8 -8
  35. package/dist/{vue-ui-circle-pack-Dk_r7tLK.js → vue-ui-circle-pack-DjWtxYMQ.js} +6 -6
  36. package/dist/{vue-ui-cursor-wugYVC4m.js → vue-ui-cursor-CtBfAk5K.js} +2 -2
  37. package/dist/{vue-ui-dashboard-C2KEkgIc.js → vue-ui-dashboard-CWuz7g2D.js} +67 -67
  38. package/dist/{vue-ui-digits-DgP-7WOR.js → vue-ui-digits-D1b_EIv1.js} +2 -2
  39. package/dist/{vue-ui-donut-CQL3rnNm.js → vue-ui-donut-BwdvzYGF.js} +8 -8
  40. package/dist/{vue-ui-donut-evolution-Dd_YO7JR.js → vue-ui-donut-evolution-DXbshH8-.js} +8 -8
  41. package/dist/{vue-ui-dumbbell-B8xWRV26.js → vue-ui-dumbbell-Bt2y7QMw.js} +7 -7
  42. package/dist/{vue-ui-flow-DT0dFQ9H.js → vue-ui-flow-CiG_qIh_.js} +7 -7
  43. package/dist/{vue-ui-funnel-D3AChMyj.js → vue-ui-funnel-BGCE6fqp.js} +6 -6
  44. package/dist/{vue-ui-galaxy-XsNx2BWm.js → vue-ui-galaxy-BCEyVfRW.js} +7 -7
  45. package/dist/{vue-ui-gauge-CnRsdNQN.js → vue-ui-gauge-Cfq8G4nD.js} +7 -7
  46. package/dist/{vue-ui-gizmo-BmF2lJ_n.js → vue-ui-gizmo-CBOoJgxB.js} +3 -3
  47. package/dist/{vue-ui-heatmap-Cjp-RlCO.js → vue-ui-heatmap-BefuX3hT.js} +7 -7
  48. package/dist/{vue-ui-history-plot-ekH6Cxey.js → vue-ui-history-plot-BqLyfnJn.js} +7 -7
  49. package/dist/{vue-ui-kpi-CuL6yGK2.js → vue-ui-kpi-6IbtwB7F.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-BpNmu_-p.js → vue-ui-mini-loader-BwbFaE7B.js} +2 -2
  51. package/dist/{vue-ui-molecule-DB2Kuy5x.js → vue-ui-molecule-BbhQfFdx.js} +5 -5
  52. package/dist/{vue-ui-mood-radar-BU11UMcn.js → vue-ui-mood-radar-B-wVmA-t.js} +7 -7
  53. package/dist/{vue-ui-nested-donuts-CtLTF4LV.js → vue-ui-nested-donuts-qKtWmJsI.js} +7 -7
  54. package/dist/{vue-ui-onion-CrrfYBLg.js → vue-ui-onion-BpbpizLk.js} +8 -8
  55. package/dist/{vue-ui-parallel-coordinate-plot-Dd8agxt1.js → vue-ui-parallel-coordinate-plot-BFK9LT6V.js} +8 -8
  56. package/dist/{vue-ui-quadrant-DbA8QeWw.js → vue-ui-quadrant-D6_0xe-_.js} +8 -8
  57. package/dist/{vue-ui-quick-chart-C2KFjxYa.js → vue-ui-quick-chart-Du7852v9.js} +6 -6
  58. package/dist/{vue-ui-radar-CMvJMHx6.js → vue-ui-radar-kEKg-NL7.js} +8 -8
  59. package/dist/{vue-ui-rating-Dk9LJ_GJ.js → vue-ui-rating-7yatRVbx.js} +2 -2
  60. package/dist/{vue-ui-relation-circle-DwDlc_fk.js → vue-ui-relation-circle-_1W7NdYE.js} +7 -7
  61. package/dist/{vue-ui-ridgeline-Mz1KnHhu.js → vue-ui-ridgeline-BSAVhIDE.js} +8 -8
  62. package/dist/{vue-ui-rings-DJAr4jN9.js → vue-ui-rings-jK9EjGrJ.js} +8 -8
  63. package/dist/{vue-ui-scatter-NocqSU6U.js → vue-ui-scatter-BPthb9-8.js} +8 -8
  64. package/dist/{vue-ui-skeleton-iT_31ZFw.js → vue-ui-skeleton-VW0h-sRm.js} +3 -3
  65. package/dist/{vue-ui-smiley-DhGQmvuK.js → vue-ui-smiley-DLOiHo-v.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-CsLj4UA1.js → vue-ui-spark-trend-BIYEAoE_.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-BvbibUUE.js → vue-ui-sparkbar-BfTF_hnD.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-BoNo-LHV.js → vue-ui-sparkgauge-chrEmdPw.js} +3 -3
  69. package/dist/{vue-ui-sparkhistogram-EWEneGo3.js → vue-ui-sparkhistogram-Dr0-iYVk.js} +4 -4
  70. package/dist/{vue-ui-sparkline-DtlrcVqh.js → vue-ui-sparkline-B-R7lTuD.js} +3 -3
  71. package/dist/{vue-ui-sparkstackbar-cuTcGyVM.js → vue-ui-sparkstackbar-CGTlNpJY.js} +3 -3
  72. package/dist/{vue-ui-stackbar-9InFjipm.js → vue-ui-stackbar-Dl2ks6xV.js} +9 -9
  73. package/dist/{vue-ui-strip-plot-6gR_AXFu.js → vue-ui-strip-plot-DyCzm2FQ.js} +7 -7
  74. package/dist/{vue-ui-table-2mcSrWXO.js → vue-ui-table-CMxWcytp.js} +4 -4
  75. package/dist/{vue-ui-table-heatmap-DiZvnT7Q.js → vue-ui-table-heatmap-Cy56aBvN.js} +5 -5
  76. package/dist/{vue-ui-table-sparkline-BN7WzW5-.js → vue-ui-table-sparkline-BYoEkczS.js} +4 -4
  77. package/dist/{vue-ui-thermometer-DFlZP6Tr.js → vue-ui-thermometer-B7wec2mE.js} +7 -7
  78. package/dist/{vue-ui-timer-DlemuyFm.js → vue-ui-timer-CE61Pm8_.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-Dx6INN36.js → vue-ui-tiremarks-BKfbwgE0.js} +6 -6
  80. package/dist/{vue-ui-treemap-DZTSPItI.js → vue-ui-treemap-CDgTxZQG.js} +8 -8
  81. package/dist/{vue-ui-vertical-bar-DRFFM9qg.js → vue-ui-vertical-bar-BDU24Fw1.js} +9 -9
  82. package/dist/{vue-ui-waffle-Depp_3wi.js → vue-ui-waffle-hdT1HxNy.js} +8 -8
  83. package/dist/{vue-ui-wheel-B9aEGYZf.js → vue-ui-wheel-CB5VCBnY.js} +6 -6
  84. package/dist/{vue-ui-word-cloud-BpW2YWA-.js → vue-ui-word-cloud-BGmRwhgL.js} +6 -6
  85. package/dist/{vue-ui-world-gxI5jkNg.js → vue-ui-world-Dgo59nPi.js} +6 -6
  86. package/dist/{vue-ui-xy-Lkm_4SBT.js → vue-ui-xy-C9oTa60U.js} +254 -254
  87. package/dist/{vue-ui-xy-canvas-CEaa6R1G.js → vue-ui-xy-canvas--NNe3yOn.js} +10 -10
  88. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- import { useCssVars as Xo, computed as x, ref as y, onMounted as Sl, onBeforeUnmount as rl, watch as mt, onUpdated as ro, nextTick as Kl, createElementBlock as i, openBlock as n, createElementVNode as w, createCommentVNode as g, renderSlot as ee, normalizeStyle as L, createVNode as sl, withDirectives as Na, unref as v, Fragment as b, renderList as M, normalizeProps as At, mergeProps as Wt, normalizeClass as Qe, withKeys as co, vModelText as vo, toDisplayString as re, defineAsyncComponent as Et, useSlots as Yo, getCurrentInstance as Go, toRefs as Uo, watchEffect as ho, createBlock as lt, createSlots as mo, withCtx as we, guardReactiveProps as Ht, Teleport as qo, resolveDynamicComponent as Zo, vModelCheckbox as Ko, createTextVNode as fo } from "vue";
2
- import { c as ga, y as xa, X as Jo, F as ht, $ as ba, V as ya, a0 as pa, U as ka, u as Qo, f as za, t as jo, d as en, D as ql, ae as il, e as go, p as xo, af as ha, ab as j, a6 as Ta, ag as tn, h as U, ah as ln, ai as bo, aj as yo, k as ze, ak as an, z as on, _ as po, R as kt, i as at, x as ul, s as dt, a9 as ue, L as nn, al as ma, I as un, am as Dt, C as Je, a as sn, b as rn, o as ko, v as cn, w as vn, E as wl } from "./index-C6JKBlTi.js";
3
- import { t as Zl, d as dn, u as hn } from "./useResponsive-DfdjqQps.js";
4
- import { u as mn } from "./usePrinter-CXsdP0nC.js";
1
+ import { useCssVars as Xo, computed as x, ref as y, onMounted as $l, onBeforeUnmount as rl, watch as mt, onUpdated as ro, nextTick as Jl, createElementBlock as i, openBlock as n, createElementVNode as w, createCommentVNode as g, renderSlot as ee, normalizeStyle as L, createVNode as sl, withDirectives as Na, unref as v, Fragment as b, renderList as M, normalizeProps as At, mergeProps as Wt, normalizeClass as Qe, withKeys as co, vModelText as vo, toDisplayString as re, defineAsyncComponent as Et, useSlots as Yo, getCurrentInstance as Go, toRefs as Uo, watchEffect as ho, createBlock as lt, createSlots as mo, withCtx as we, guardReactiveProps as Ht, Teleport as qo, resolveDynamicComponent as Zo, vModelCheckbox as Ko, createTextVNode as fo } from "vue";
2
+ import { c as ga, y as xa, X as Jo, F as ht, $ as ba, V as ya, a0 as pa, U as ka, u as Qo, f as za, t as jo, d as en, D as Zl, ae as il, e as go, p as xo, af as ha, ab as j, a6 as Ta, ag as tn, h as U, ah as ln, ai as bo, aj as yo, k as ze, ak as an, z as on, _ as po, R as kt, i as at, x as ul, s as dt, a9 as ue, L as nn, al as ma, I as un, am as Dt, C as Je, a as sn, b as rn, o as ko, v as cn, w as vn, E as Sl } from "./index-CdN9MkL7.js";
3
+ import { t as Kl, d as dn, u as hn } from "./useResponsive-DfdjqQps.js";
4
+ import { u as mn } from "./usePrinter-CLVErK_G.js";
5
5
  import { u as fn, B as gn } from "./BaseScanner-BgWxam9d.js";
6
6
  import { u as wo, a as xn, l as bn } from "./useTimeLabels-BGFjWgrv.js";
7
- import { u as Ia } from "./useNestedProp-v9lPW2Pf.js";
7
+ import { u as Ia } from "./useNestedProp-oNhYagej.js";
8
8
  import { u as yn } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import pn from "./img-BKkRZkoV.js";
10
- import kn from "./Title-DW0Gn9KR.js";
11
- import { S as wn } from "./Slicer-BbqJPn8J.js";
12
- import { _ as fa } from "./Shape-DOdamRE4.js";
13
- import Sn from "./BaseIcon-DPvKcoLi.js";
9
+ import pn from "./img-CVbbqgGH.js";
10
+ import kn from "./Title-BKsDkvCV.js";
11
+ import { S as wn } from "./Slicer-C7BMIgYA.js";
12
+ import { _ as fa } from "./Shape-BWIW_Vmn.js";
13
+ import Sn from "./BaseIcon-CBGEVS_a.js";
14
14
  import { _ as So } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- import $n from "./vue-ui-accordion-DXxnp5Dr.js";
15
+ import $n from "./vue-ui-accordion-BoGANFKn.js";
16
16
  const _n = {
17
17
  class: "vue-data-ui-slicer-labels",
18
18
  style: { position: "relative", "z-index": "1", "pointer-events": "none" }
@@ -179,31 +179,31 @@ const _n = {
179
179
  emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
180
180
  setup($, { expose: wa, emit: Sa }) {
181
181
  Xo((d) => ({
182
- "107b0d17": Cl.value,
183
- af1ed4ea: ne.value,
184
- "5fc18ebc": gt.value,
185
- eeb4528a: $.selectColor,
186
- "774a6bc9": Al.value
182
+ a43770b2: Al.value,
183
+ "45d9d01b": ne.value,
184
+ "75589d4c": gt.value,
185
+ "260f114b": $.selectColor,
186
+ "7173de59": zl.value
187
187
  }));
188
- const h = $, ot = y(null), he = y(h.min), ge = y(h.max), me = x(() => !!h.minimap.length), $l = y(ga()), wt = y(!1), zt = x(() => me.value && h.minimapCompact), _l = y(0), Ml = Zl((d) => Pe("futureStart", d), 0), Jl = Zl((d) => Pe("futureEnd", d), 0), cl = x({
188
+ const h = $, ot = y(null), he = y(h.min), ge = y(h.max), me = x(() => !!h.minimap.length), _l = y(ga()), wt = y(!1), zt = x(() => me.value && h.minimapCompact), Ml = y(0), cl = Kl((d) => Pe("futureStart", d), 0), Ll = Kl((d) => Pe("futureEnd", d), 0), vl = x({
189
189
  get: () => he.value,
190
190
  set(d) {
191
191
  const f = Math.min(d, ge.value - 1);
192
- f !== he.value && (he.value = f, Nt.value && (Nt.value.value = String(f)), wt.value && Ml(f));
192
+ f !== he.value && (he.value = f, Nt.value && (Nt.value.value = String(f)), wt.value && cl(f));
193
193
  }
194
194
  }), Tt = x({
195
195
  get: () => ge.value,
196
196
  set(d) {
197
197
  const f = Math.max(d, he.value + 1);
198
- f !== ge.value && (ge.value = f, t.value && (t.value.value = String(f)), wt.value && Jl(f));
198
+ f !== ge.value && (ge.value = f, t.value && (t.value.value = String(f)), wt.value && Ll(f));
199
199
  }
200
200
  });
201
- Sl(() => {
201
+ $l(() => {
202
202
  const d = () => {
203
- ot.value && (_l.value = ot.value.getBoundingClientRect().width);
203
+ ot.value && (Ml.value = ot.value.getBoundingClientRect().width);
204
204
  };
205
205
  d();
206
- const f = Zl(d, 50);
206
+ const f = Kl(d, 50);
207
207
  window.addEventListener("resize", f), rl(() => {
208
208
  window.removeEventListener("resize", f);
209
209
  });
@@ -226,7 +226,7 @@ const _n = {
226
226
  }
227
227
  const d = Math.max(1, h.max - h.min);
228
228
  return (ge.value - h.min) / d * 100;
229
- }), Ll = x(() => (ft.value + St.value) / 2), Xt = x(() => {
229
+ }), Cl = x(() => (ft.value + St.value) / 2), Xt = x(() => {
230
230
  if (!ot.value) return !1;
231
231
  const d = Math.max(1, h.max - h.min);
232
232
  return ot.value.getBoundingClientRect().width * ((he.value - h.min) / d) - Rt.value / 2 < 0;
@@ -235,7 +235,7 @@ const _n = {
235
235
  const d = Math.max(1, h.max - h.min), f = ot.value.getBoundingClientRect().width;
236
236
  return f * ((ge.value - h.min) / d) + el.value / 2 > f;
237
237
  }), _e = x(() => {
238
- const d = Yt.value ? `calc(${Ll.value}% - ${tl.value.width}px - 2px)` : Xt.value ? `calc(${Ll.value}% - 8px)` : `calc(${Ll.value}% - ${tl.value.width / 2}px - 4px)`;
238
+ const d = Yt.value ? `calc(${Cl.value}% - ${tl.value.width}px - 2px)` : Xt.value ? `calc(${Cl.value}% - 8px)` : `calc(${Cl.value}% - ${tl.value.width / 2}px - 4px)`;
239
239
  return {
240
240
  left: `${ft.value}%`,
241
241
  width: `${Math.max(0, St.value - ft.value)}%`,
@@ -246,7 +246,7 @@ const _n = {
246
246
  arrowLeft: !Xt.value,
247
247
  arrowRight: !Yt.value
248
248
  };
249
- }), Cl = x(() => h.inputColor), Al = x(() => h.background), gt = x(() => `${h.selectColor}33`), ne = x(() => h.borderColor), Ql = x(() => {
249
+ }), Al = x(() => h.inputColor), zl = x(() => h.background), gt = x(() => `${h.selectColor}33`), ne = x(() => h.borderColor), Ql = x(() => {
250
250
  let d = [];
251
251
  for (let f = 0; f < h.max; f += 1)
252
252
  d.push(f);
@@ -270,12 +270,12 @@ const _n = {
270
270
  width: 1,
271
271
  height: 1
272
272
  }), le = y(null);
273
- Sl(() => {
273
+ $l(() => {
274
274
  if (me.value) {
275
- const d = Zl(() => {
275
+ const d = Kl(() => {
276
276
  if (!Gt.value) return;
277
- const { width: f, height: m } = hn({ chart: Gt.value }), S = Math.max(0, Math.round(f)), T = Math.max(0, Math.round(m - 47));
278
- (S !== H.value.width || T !== H.value.height) && (H.value.width = S, H.value.height = T);
277
+ const { width: f, height: m } = hn({ chart: Gt.value }), S = Math.max(0, Math.round(f)), z = Math.max(0, Math.round(m - 47));
278
+ (S !== H.value.width || z !== H.value.height) && (H.value.width = S, H.value.height = z);
279
279
  }, 50);
280
280
  le.value = new ResizeObserver(d), le.value.observe(Gt.value);
281
281
  }
@@ -291,34 +291,34 @@ const _n = {
291
291
  const f = Math.ceil(d - h.min);
292
292
  return Math.min(Math.max(0, f), nt.value);
293
293
  }
294
- const De = x(() => jl(he.value)), Fe = x(() => Ut(ge.value)), vl = x(() => Math.max(...h.allMinimaps.map((d) => d.series.length))), ae = x(() => {
294
+ const De = x(() => jl(he.value)), Fe = x(() => Ut(ge.value)), dl = x(() => Math.max(...h.allMinimaps.map((d) => d.series.length))), ae = x(() => {
295
295
  if (!h.minimap.length) return 0;
296
- const d = Math.max(1, vl.value - (h.minimapCompact ? 1 : 0));
296
+ const d = Math.max(1, dl.value - (h.minimapCompact ? 1 : 0));
297
297
  return H.value.width / d;
298
298
  }), ce = x(() => h.allMinimaps.length ? h.allMinimaps.filter((d) => d.type === "bar").length : 0), Z = x(() => ae.value / (ce.value || 1) * 0.8);
299
- function zl(d, f, m) {
300
- const S = Z.value, T = Math.max(1, ce.value), q = vl.value - 1;
301
- return m === 0 ? d + S / 2 * f : m === q ? d - S / 2 * (T - f) : d - T * S / 2 + f * S;
299
+ function Tl(d, f, m) {
300
+ const S = Z.value, z = Math.max(1, ce.value), q = dl.value - 1;
301
+ return m === 0 ? d + S / 2 * f : m === q ? d - S / 2 * (z - f) : d - z * S / 2 + f * S;
302
302
  }
303
- function Tl(d, f) {
304
- return [0, vl.value - 1].includes(f) ? Z.value / 2 : Z.value;
303
+ function Il(d, f) {
304
+ return [0, dl.value - 1].includes(f) ? Z.value / 2 : Z.value;
305
305
  }
306
- const Il = x(() => {
306
+ const Nl = x(() => {
307
307
  const d = [];
308
308
  if (Array.isArray(h.minimap) && h.minimap.length && h.minimapMerged && d.push(...h.minimap.filter(Number.isFinite)), Array.isArray(h.allMinimaps) && h.allMinimaps.length)
309
309
  for (const f of h.allMinimaps)
310
310
  f?.isVisible && Array.isArray(f?.series) && d.push(...f.series.filter(Number.isFinite));
311
311
  return d.length ? { min: Math.min(...d), max: Math.max(...d) } : { min: 0, max: 1 };
312
- }), We = x(() => Il.value.min), xt = x(() => Il.value.max), D = x(() => We.value < 0 && xt.value > 0 || xt.value <= 0 ? We.value : 0), ea = x(() => Math.max(1e-9, Math.max(Math.abs(We.value), Math.abs(xt.value)))), Nl = x(() => We.value < 0 && xt.value > 0), dl = (d) => {
312
+ }), We = x(() => Nl.value.min), xt = x(() => Nl.value.max), D = x(() => We.value < 0 && xt.value > 0 || xt.value <= 0 ? We.value : 0), ea = x(() => Math.max(1e-9, Math.max(Math.abs(We.value), Math.abs(xt.value)))), Pl = x(() => We.value < 0 && xt.value > 0), hl = (d) => {
313
313
  const f = Math.max(1, H.value.height);
314
- if (Nl.value) {
314
+ if (Pl.value) {
315
315
  const m = ea.value;
316
316
  return (1 - (Math.max(-1, Math.min(1, d / m)) + 1) / 2) * f;
317
317
  } else {
318
318
  const m = Math.min(0, We.value), S = Math.max(0, xt.value);
319
319
  return f - (d - m) / Math.max(1e-9, S - m) * f;
320
320
  }
321
- }, Le = x(() => dl(0));
321
+ }, Le = x(() => hl(0));
322
322
  function it(d, f, m) {
323
323
  const S = (q, Ue, $e) => Math.max(Ue, Math.min($e, q));
324
324
  if (f <= 0) {
@@ -346,27 +346,27 @@ const _n = {
346
346
  fullMarkers: [],
347
347
  selectionMarkers: []
348
348
  };
349
- const m = Math.max(1, H.value.height), S = it(We.value, xt.value, m), T = d.length, q = Math.min(Math.max(0, De.value), Math.max(0, T - 1)), Ue = Math.min(T, Math.max(q + 1, Fe.value)), $e = d.map((Ce, Hl) => {
350
- const pt = h.cutNullValues ? Ce : Ce === null ? 0 : Ce, Dl = Number.isFinite(pt), xl = ae.value * Hl + (h.minimapCompact ? 0 : ae.value / 2), bl = S(0);
349
+ const m = Math.max(1, H.value.height), S = it(We.value, xt.value, m), z = d.length, q = Math.min(Math.max(0, De.value), Math.max(0, z - 1)), Ue = Math.min(z, Math.max(q + 1, Fe.value)), $e = d.map((Ce, Dl) => {
350
+ const pt = h.cutNullValues ? Ce : Ce === null ? 0 : Ce, Wl = Number.isFinite(pt), bl = ae.value * Dl + (h.minimapCompact ? 0 : ae.value / 2), yl = S(0);
351
351
  return {
352
- x: xl,
353
- y: Dl ? S(pt) : NaN,
352
+ x: bl,
353
+ y: Wl ? S(pt) : NaN,
354
354
  v: pt,
355
- value: Dl ? pt : null,
356
- y0: bl,
357
- i: Hl
355
+ value: Wl ? pt : null,
356
+ y0: yl,
357
+ i: Dl
358
358
  };
359
- }), gl = (Ce) => Ce >= 0 && Ce < $e.length && Number.isFinite($e[Ce]?.value), Bl = $e.filter((Ce) => Number.isFinite(Ce.value) && !gl(Ce.i - 1) && !gl(Ce.i + 1)), I = Bl.filter((Ce) => Ce.i >= q && Ce.i < Ue), yt = $e.slice(q, Ue), na = $e.length >= 2 ? h.smoothMinimap || f ? h.cutNullValues ? ba($e) : ya($e) : h.cutNullValues ? pa($e) : ka($e) : "", El = yt.length >= 2 ? h.smoothMinimap || f ? h.cutNullValues ? ba(yt) : ya(yt) : h.cutNullValues ? pa(yt) : ka(yt) : "";
359
+ }), xl = (Ce) => Ce >= 0 && Ce < $e.length && Number.isFinite($e[Ce]?.value), El = $e.filter((Ce) => Number.isFinite(Ce.value) && !xl(Ce.i - 1) && !xl(Ce.i + 1)), I = El.filter((Ce) => Ce.i >= q && Ce.i < Ue), yt = $e.slice(q, Ue), na = $e.length >= 2 ? h.smoothMinimap || f ? h.cutNullValues ? ba($e) : ya($e) : h.cutNullValues ? pa($e) : ka($e) : "", Hl = yt.length >= 2 ? h.smoothMinimap || f ? h.cutNullValues ? ba(yt) : ya(yt) : h.cutNullValues ? pa(yt) : ka(yt) : "";
360
360
  return {
361
361
  fullSet: na,
362
362
  points: $e,
363
- selectionSet: El,
363
+ selectionSet: Hl,
364
364
  sliced: yt,
365
365
  firstPlot: $e[q] || null,
366
366
  lastPlot: $e[Math.max(0, Ue - 1)] || null,
367
367
  hasFull: $e.length >= 2,
368
368
  hasSelection: yt.length >= 2,
369
- fullMarkers: Bl,
369
+ fullMarkers: El,
370
370
  selectionMarkers: I
371
371
  };
372
372
  }
@@ -385,19 +385,19 @@ const _n = {
385
385
  x: ae.value * d + (h.minimapCompact ? 0 : ae.value / 2),
386
386
  width: ae.value * (f - d) - ae.value
387
387
  };
388
- }), bt = y(h.minimapSelectedIndex), Pl = (d) => Math.round(h.min + d), It = x({
388
+ }), bt = y(h.minimapSelectedIndex), Fl = (d) => Math.round(h.min + d), It = x({
389
389
  get() {
390
- return zt.value ? De.value : cl.value;
390
+ return zt.value ? De.value : vl.value;
391
391
  },
392
392
  set(d) {
393
- zt.value ? $t(Pl(d)) : $t(d);
393
+ zt.value ? $t(Fl(d)) : $t(d);
394
394
  }
395
395
  }), Zt = x({
396
396
  get() {
397
397
  return zt.value ? Math.max(De.value, Fe.value - 1) : Tt.value;
398
398
  },
399
399
  set(d) {
400
- zt.value ? Me(Pl(d + 1)) : Me(d);
400
+ zt.value ? Me(Fl(d + 1)) : Me(d);
401
401
  }
402
402
  });
403
403
  function C(d) {
@@ -411,7 +411,7 @@ const _n = {
411
411
  }
412
412
  d !== f && Xe(d);
413
413
  }, { immediate: !0 });
414
- function Fl(d) {
414
+ function Rl(d) {
415
415
  bt.value = d;
416
416
  const f = De.value, m = Fe.value;
417
417
  d >= f && d < m && !be.value && Pe("trapMouse", d - f);
@@ -430,7 +430,7 @@ const _n = {
430
430
  wt.value = !0;
431
431
  const f = k(d);
432
432
  Number.isFinite(f) && (cancelAnimationFrame(Kt), Kt = requestAnimationFrame(() => {
433
- cl.value = f;
433
+ vl.value = f;
434
434
  }));
435
435
  }
436
436
  let xe = 0;
@@ -446,7 +446,7 @@ const _n = {
446
446
  });
447
447
  const _t = x(() => h.valueEnd - h.valueStart), Pt = y(!1);
448
448
  let $a = y(null);
449
- const ut = x(() => (_l.value - 48) / (h.max - h.min) * _t.value), Re = x(() => Math.max(1, _l.value - di - ut.value)), p = x(() => Math.max(1, h.max - h.min - _t.value)), Ye = x(() => p.value / Re.value), Rl = y(0), Vl = y(0), Ft = y(0), ta = y(0);
449
+ const ut = x(() => (Ml.value - 48) / (h.max - h.min) * _t.value), Re = x(() => Math.max(1, Ml.value - di - ut.value)), p = x(() => Math.max(1, h.max - h.min - _t.value)), Ye = x(() => p.value / Re.value), Vl = y(0), Ol = y(0), Ft = y(0), ta = y(0);
450
450
  let et = null, st = null, rt = null, ct = null;
451
451
  const la = (d) => {
452
452
  if (wt.value = !0, Mt.value = !0, !h.enableSelectionDrag) return;
@@ -455,13 +455,13 @@ const _n = {
455
455
  const m = f && d.targetTouches && d.targetTouches[0] ? d.targetTouches[0] : null, S = f ? m ? m.target : null : d.target;
456
456
  if (!S || !(S instanceof Element) || S.classList && S.classList.contains("range-handle")) return;
457
457
  Pt.value = !0;
458
- const T = f ? m ? m.clientX : 0 : d.clientX;
459
- $a.value = T, Rl.value = T, Vl.value = he.value, Ft.value = ge.value, ta.value = Ye.value, et = f ? "touchmove" : "mousemove", st = f ? "touchend" : "mouseup", rt = f ? ml : hl, ct = f ? Qt : Ge, window.addEventListener(et, rt, { passive: !1 }), window.addEventListener(st, ct);
458
+ const z = f ? m ? m.clientX : 0 : d.clientX;
459
+ $a.value = z, Vl.value = z, Ol.value = he.value, Ft.value = ge.value, ta.value = Ye.value, et = f ? "touchmove" : "mousemove", st = f ? "touchend" : "mouseup", rt = f ? fl : ml, ct = f ? Qt : Ge, window.addEventListener(et, rt, { passive: !1 }), window.addEventListener(st, ct);
460
460
  };
461
- function hl(d) {
461
+ function ml(d) {
462
462
  Pt.value && Jt(d.clientX);
463
463
  }
464
- function ml(d) {
464
+ function fl(d) {
465
465
  if (!Pt.value || !ot.value) return;
466
466
  const f = d.target;
467
467
  if (!(f instanceof Element) || !ot.value.contains(f) || f.classList && f.classList.contains("range-handle")) return;
@@ -471,11 +471,11 @@ const _n = {
471
471
  }
472
472
  function Jt(d) {
473
473
  if (!Pt.value) return;
474
- const m = (d - Rl.value) * ta.value;
475
- let S = Math.round(Vl.value + m);
474
+ const m = (d - Vl.value) * ta.value;
475
+ let S = Math.round(Ol.value + m);
476
476
  S = Math.max(h.min, Math.min(S, h.max - _t.value));
477
- const T = S + _t.value;
478
- cl.value = S, Tt.value = T;
477
+ const z = S + _t.value;
478
+ vl.value = S, Tt.value = z, cl(S), Ll(z);
479
479
  }
480
480
  function Ge() {
481
481
  tt();
@@ -487,7 +487,7 @@ const _n = {
487
487
  Pt.value = !1, et && rt && window.removeEventListener(et, rt), st && ct && window.removeEventListener(st, ct), et = st = null, rt = ct = null, Te();
488
488
  }
489
489
  const be = y(!1), Se = y(null), jt = y(null), Rt = y(1), el = y(1), Mt = y(!1);
490
- function Ol() {
490
+ function Bl() {
491
491
  if (Se.value) {
492
492
  const d = Math.round(Se.value.getBoundingClientRect().width);
493
493
  d !== Rt.value && (Rt.value = d);
@@ -500,7 +500,7 @@ const _n = {
500
500
  }
501
501
  }
502
502
  ro(() => {
503
- Ol(), c();
503
+ Bl(), c();
504
504
  });
505
505
  const aa = y(0);
506
506
  function oa(d) {
@@ -511,23 +511,23 @@ const _n = {
511
511
  left: 0
512
512
  });
513
513
  mt([he, ge], async () => {
514
- if (await Kl(), !Se.value || !jt.value) {
514
+ if (await Jl(), !Se.value || !jt.value) {
515
515
  Vt.value = !1, tl.value = { width: 0, left: 0 };
516
516
  return;
517
517
  }
518
518
  const d = Se.value.getBoundingClientRect(), f = jt.value.getBoundingClientRect();
519
519
  Vt.value = d.x + d.width > f.x;
520
- const m = d.x + d.width / 2, S = f.x + f.width / 2, T = d.width + f.width, q = (m + S) / 2;
520
+ const m = d.x + d.width / 2, S = f.x + f.width / 2, z = d.width + f.width, q = (m + S) / 2;
521
521
  tl.value = {
522
- width: T,
523
- left: q - T / 2
522
+ width: z,
523
+ left: q - z / 2
524
524
  };
525
525
  }), ro(() => {
526
- Ol(), c();
526
+ Bl(), c();
527
527
  }), mt(() => h.labelLeft, () => {
528
- Kl(Ol);
528
+ Jl(Bl);
529
529
  }, { deep: !0 }), mt(() => h.labelRight, () => {
530
- Kl(c);
530
+ Jl(c);
531
531
  }, { deep: !0 });
532
532
  const fe = x(() => {
533
533
  let d = "", f = "", m = !1;
@@ -537,25 +537,25 @@ const _n = {
537
537
  absoluteIndex: he.value,
538
538
  seriesIndex: he.value,
539
539
  datapoint: h.selectedSeries
540
- }), T = h.customFormat({
540
+ }), z = h.customFormat({
541
541
  absoluteIndex: ge.value - 1,
542
542
  seriesIndex: -1,
543
543
  datapoint: h.selectedSeries
544
544
  });
545
- typeof S == "string" && typeof T == "string" && (d = S, f = T, m = !0);
545
+ typeof S == "string" && typeof z == "string" && (d = S, f = z, m = !0);
546
546
  } catch {
547
547
  m = !1;
548
548
  }
549
549
  if (!m) {
550
- const S = h.usePreciseLabels ? h.preciseLabels.find((q) => q.absoluteIndex === he.value) : h.timeLabels.find((q) => q.absoluteIndex === he.value), T = h.usePreciseLabels ? h.preciseLabels.find((q) => q.absoluteIndex === ge.value - 1) : h.timeLabels.find((q) => q.absoluteIndex === ge.value - 1);
551
- d = S ? S.text : "", f = T ? T.text : "";
550
+ const S = h.usePreciseLabels ? h.preciseLabels.find((q) => q.absoluteIndex === he.value) : h.timeLabels.find((q) => q.absoluteIndex === he.value), z = h.usePreciseLabels ? h.preciseLabels.find((q) => q.absoluteIndex === ge.value - 1) : h.timeLabels.find((q) => q.absoluteIndex === ge.value - 1);
551
+ d = S ? S.text : "", f = z ? z.text : "";
552
552
  }
553
553
  return { left: d, right: f };
554
554
  });
555
555
  rl(() => {
556
556
  le.value && le.value.disconnect(), et && rt && window.removeEventListener(et, rt), st && ct && window.removeEventListener(st, ct), et = st = null, rt = ct = null, clearTimeout(Ee);
557
557
  });
558
- const fl = x(() => {
558
+ const gl = x(() => {
559
559
  if (!Ql.value.length) return null;
560
560
  if (bt.value >= De.value && bt.value < Fe.value) {
561
561
  const d = bt.value;
@@ -623,7 +623,7 @@ const _n = {
623
623
  }, [
624
624
  w("defs", null, [
625
625
  w("linearGradient", {
626
- id: $l.value,
626
+ id: _l.value,
627
627
  x1: "0%",
628
628
  y1: "0%",
629
629
  x2: "0%",
@@ -663,18 +663,18 @@ const _n = {
663
663
  $.minimapMerged && !$.minimapCompact ? (n(), i("path", {
664
664
  key: 2,
665
665
  d: `M${ae.value / 2},${Math.max(H.value.height, 0)} ${B.value.fullSet} L${H.value.width - ae.value / 2},${Math.max(H.value.height, 0)}Z`,
666
- fill: `url(#${$l.value})`,
666
+ fill: `url(#${_l.value})`,
667
667
  stroke: "none",
668
668
  style: { opacity: "0.6" }
669
669
  }, null, 8, Nn)) : $.minimapMerged ? g("", !0) : (n(), i(b, { key: 3 }, [
670
670
  (n(!0), i(b, null, M(je.value.filter((m) => m.type === "bar"), (m, S) => (n(), i("g", null, [
671
- (n(!0), i(b, null, M(m.points, (T, q) => (n(), i(b, null, [
672
- m.isVisible && !isNaN(T.y) ? (n(), i("rect", {
671
+ (n(!0), i(b, null, M(m.points, (z, q) => (n(), i(b, null, [
672
+ m.isVisible && !isNaN(z.y) ? (n(), i("rect", {
673
673
  key: 0,
674
- x: zl(T.x, S, q),
675
- y: T.v >= 0 ? T.y : T.y0,
676
- width: Tl(S, q),
677
- height: T.v >= 0 ? T.y0 - T.y : T.y - T.y0,
674
+ x: Tl(z.x, S, q),
675
+ y: z.v >= 0 ? z.y : z.y0,
676
+ width: Il(S, q),
677
+ height: z.v >= 0 ? z.y0 - z.y : z.y - z.y0,
678
678
  fill: m.color,
679
679
  style: { opacity: 0.6 }
680
680
  }, null, 8, Pn)) : g("", !0)
@@ -742,7 +742,7 @@ const _n = {
742
742
  B.value.selectionSet ? (n(), i("path", {
743
743
  key: 0,
744
744
  d: `M${B.value.sliced[0].x},${Math.max(H.value.height, 0)} ${B.value.selectionSet} L${B.value.sliced[B.value.sliced.length - 1].x},${Math.max(H.value.height, 0)}Z`,
745
- fill: `url(#${$l.value})`,
745
+ fill: `url(#${_l.value})`,
746
746
  stroke: "none",
747
747
  style: { opacity: "1" }
748
748
  }, null, 8, Dn)) : g("", !0),
@@ -776,15 +776,15 @@ const _n = {
776
776
  }, null, 8, Yn)) : g("", !0)
777
777
  ])) : (n(), i("g", Gn, [
778
778
  (n(!0), i(b, null, M(je.value.filter((m) => m.type === "bar"), (m, S) => (n(), i("g", null, [
779
- (n(!0), i(b, null, M(m.points, (T, q) => (n(), i(b, null, [
780
- m && m.hasSelection && m.selectionSet && m.isVisible && !isNaN(T.y) ? (n(), i("rect", {
779
+ (n(!0), i(b, null, M(m.points, (z, q) => (n(), i(b, null, [
780
+ m && m.hasSelection && m.selectionSet && m.isVisible && !isNaN(z.y) ? (n(), i("rect", {
781
781
  key: 0,
782
- x: zl(T.x, S, q),
783
- y: T.v >= 0 ? T.y : T.y0,
784
- width: Tl(S, q),
785
- height: T.v >= 0 ? T.y0 - T.y : T.y - T.y0,
782
+ x: Tl(z.x, S, q),
783
+ y: z.v >= 0 ? z.y : z.y0,
784
+ width: Il(S, q),
785
+ height: z.v >= 0 ? z.y0 - z.y : z.y - z.y0,
786
786
  fill: m.color,
787
- style: L({ opacity: q >= cl.value && q < Tt.value ? 1 : 0 })
787
+ style: L({ opacity: q >= vl.value && q < Tt.value ? 1 : 0 })
788
788
  }, null, 12, Un)) : g("", !0)
789
789
  ], 64))), 256))
790
790
  ]))), 256)),
@@ -824,7 +824,7 @@ const _n = {
824
824
  stroke: $.textColor,
825
825
  rx: 3
826
826
  }, null, 8, Kn)) : g("", !0),
827
- bt.value !== null && !be.value ? (n(), i("line", At(Wt({ key: 9 }, fl.value)), null, 16)) : g("", !0),
827
+ bt.value !== null && !be.value ? (n(), i("line", At(Wt({ key: 9 }, gl.value)), null, 16)) : g("", !0),
828
828
  $.minimapMerged ? (n(), i("g", Jn, [
829
829
  B.value && B.value.firstPlot && B.value.firstPlot.value !== null ? (n(), i("circle", {
830
830
  key: 0,
@@ -921,10 +921,10 @@ const _n = {
921
921
  width: ae.value < 0 ? 0 : ae.value,
922
922
  fill: "transparent",
923
923
  style: L([{ "pointer-events": "all !important" }, { cursor: m >= De.value && m < Fe.value && $.enableSelectionDrag ? be.value ? "grabbing" : "grab" : "default" }]),
924
- onMousedown: f[0] || (f[0] = (T) => be.value = !0),
925
- onMouseup: f[1] || (f[1] = (T) => be.value = !1),
926
- onMouseenter: (T) => Fl(m),
927
- onMouseleave: f[2] || (f[2] = (T) => {
924
+ onMousedown: f[0] || (f[0] = (z) => be.value = !0),
925
+ onMouseup: f[1] || (f[1] = (z) => be.value = !1),
926
+ onMouseenter: (z) => Rl(m),
927
+ onMouseleave: f[2] || (f[2] = (z) => {
928
928
  bt.value = null, Pe("trapMouse", null);
929
929
  })
930
930
  }, null, 44, ri))), 256))
@@ -1063,7 +1063,7 @@ const _n = {
1063
1063
  ], 544)
1064
1064
  ], 544));
1065
1065
  }
1066
- }, mi = /* @__PURE__ */ So(hi, [["__scopeId", "data-v-7e85867d"]]), fi = ["id"], gi = ["id"], xi = ["viewBox", "aria-label"], bi = ["x", "y", "width", "height"], yi = { key: 1 }, pi = { class: "vue-ui-xy-grid" }, ki = ["stroke", "x1", "x2", "y1", "y2"], wi = ["stroke", "x1", "x2", "y1", "y2"], Si = { key: 1 }, $i = ["x1", "x2", "y1", "y2", "stroke"], _i = ["x1", "x2", "y1", "y2", "stroke"], Mi = ["x1", "x2", "y1", "y2", "stroke"], Li = { key: 3 }, Ci = ["d", "stroke"], Ai = { key: 4 }, zi = ["d", "stroke"], Ti = ["id"], Ii = ["stop-color"], Ni = ["stop-color"], Pi = ["stop-color"], Fi = ["id"], Ri = ["stop-color"], Vi = ["stop-color"], Oi = ["stop-color"], Bi = ["id"], Ei = ["stop-color"], Hi = ["stop-color"], Di = ["id"], Wi = ["stop-color"], Xi = ["stop-color"], Yi = ["id"], Gi = ["stop-color"], Ui = ["stop-color"], qi = ["x", "y", "height", "width", "fill"], Zi = ["x", "y", "width"], Ki = { key: 0 }, Ji = ["x", "y", "height", "width", "fill"], Qi = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ji = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], eu = ["width", "x", "y"], tu = { key: 0 }, lu = ["id"], au = ["fill"], ou = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], nu = ["x", "y", "font-size", "fill"], iu = ["stroke", "x1", "x2", "y1", "y2"], uu = { key: 3 }, su = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ru = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], cu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vu = ["fill", "font-size", "transform"], du = ["x1", "x2", "y1", "y2", "stroke"], hu = ["x", "y", "font-size", "fill"], mu = ["x1", "x2", "y1", "y2", "stroke"], fu = ["x", "y", "font-size", "fill"], gu = ["width", "x", "y"], xu = { style: { width: "100%" } }, bu = { key: 0 }, yu = ["id"], pu = ["fill"], ku = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], wu = ["x", "y", "font-size", "fill"], Su = ["d", "stroke", "stroke-width", "stroke-dasharray"], $u = ["d", "stroke", "stroke-width", "stroke-dasharray"], _u = { key: 6 }, Mu = { key: 7 }, Lu = ["d", "fill", "fill-opacity"], Cu = { key: 0 }, Au = ["d", "fill"], zu = ["d", "fill"], Tu = ["d", "fill"], Iu = ["d", "fill"], Nu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fu = ["width", "x", "y"], Ru = { style: { width: "100%" } }, Vu = { key: 3 }, Ou = ["id"], Bu = ["fill"], Eu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Hu = ["x", "y", "font-size", "fill"], Du = { key: 8 }, Wu = ["x", "y", "font-size", "fill"], Xu = ["x", "y", "font-size", "fill", "font-weight"], Yu = { key: 9 }, Gu = ["x", "y", "font-size", "fill"], Uu = { key: 10 }, qu = ["x", "y"], Zu = ["innerHTML"], Ku = ["x", "y"], Ju = ["innerHTML"], Qu = ["x1", "x2", "y1", "y2", "stroke"], ju = { key: 11 }, es = ["x", "y", "font-size", "fill"], ts = { key: 12 }, ls = ["x", "y"], as = ["innerHTML"], os = ["x", "y"], ns = ["innerHTML"], is = ["x1", "x2", "y1", "y2", "stroke"], us = ["x", "y", "font-size", "fill", "innerHTML"], ss = ["x", "y", "font-size", "fill", "innerHTML"], rs = ["x", "y", "font-size", "fill", "innerHTML"], cs = ["x", "y", "font-size", "fill", "innerHTML"], vs = ["id"], ds = ["stop-color"], hs = ["stop-color"], ms = ["x", "y", "width", "height", "fill", "onMouseenter"], fs = ["font-size", "fill", "transform"], gs = ["x", "y", "font-size", "fill"], xs = ["text-anchor", "font-size", "fill", "transform", "onClick"], bs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ys = { key: 15 }, ps = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ks = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ws = ["y", "x", "width", "height", "fill"], Ss = ["id", "x", "y", "font-size", "fill", "text-anchor"], $s = {
1066
+ }, mi = /* @__PURE__ */ So(hi, [["__scopeId", "data-v-a762b028"]]), fi = ["id"], gi = ["id"], xi = ["viewBox", "aria-label"], bi = ["x", "y", "width", "height"], yi = { key: 1 }, pi = { class: "vue-ui-xy-grid" }, ki = ["stroke", "x1", "x2", "y1", "y2"], wi = ["stroke", "x1", "x2", "y1", "y2"], Si = { key: 1 }, $i = ["x1", "x2", "y1", "y2", "stroke"], _i = ["x1", "x2", "y1", "y2", "stroke"], Mi = ["x1", "x2", "y1", "y2", "stroke"], Li = { key: 3 }, Ci = ["d", "stroke"], Ai = { key: 4 }, zi = ["d", "stroke"], Ti = ["id"], Ii = ["stop-color"], Ni = ["stop-color"], Pi = ["stop-color"], Fi = ["id"], Ri = ["stop-color"], Vi = ["stop-color"], Oi = ["stop-color"], Bi = ["id"], Ei = ["stop-color"], Hi = ["stop-color"], Di = ["id"], Wi = ["stop-color"], Xi = ["stop-color"], Yi = ["id"], Gi = ["stop-color"], Ui = ["stop-color"], qi = ["x", "y", "height", "width", "fill"], Zi = ["x", "y", "width"], Ki = { key: 0 }, Ji = ["x", "y", "height", "width", "fill"], Qi = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ji = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], eu = ["width", "x", "y"], tu = { key: 0 }, lu = ["id"], au = ["fill"], ou = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], nu = ["x", "y", "font-size", "fill"], iu = ["stroke", "x1", "x2", "y1", "y2"], uu = { key: 3 }, su = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ru = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], cu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vu = ["fill", "font-size", "transform"], du = ["x1", "x2", "y1", "y2", "stroke"], hu = ["x", "y", "font-size", "fill"], mu = ["x1", "x2", "y1", "y2", "stroke"], fu = ["x", "y", "font-size", "fill"], gu = ["width", "x", "y"], xu = { style: { width: "100%" } }, bu = { key: 0 }, yu = ["id"], pu = ["fill"], ku = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], wu = ["x", "y", "font-size", "fill"], Su = ["d", "stroke", "stroke-width", "stroke-dasharray"], $u = ["d", "stroke", "stroke-width", "stroke-dasharray"], _u = { key: 6 }, Mu = { key: 7 }, Lu = ["d", "fill", "fill-opacity"], Cu = { key: 0 }, Au = ["d", "fill"], zu = ["d", "fill"], Tu = ["d", "fill"], Iu = ["d", "fill"], Nu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fu = ["width", "x", "y"], Ru = { style: { width: "100%" } }, Vu = { key: 3 }, Ou = ["id"], Bu = ["fill"], Eu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Hu = ["x", "y", "font-size", "fill"], Du = { key: 8 }, Wu = ["x", "y", "font-size", "fill"], Xu = ["x", "y", "font-size", "fill", "font-weight"], Yu = { key: 9 }, Gu = ["x", "y", "font-size", "fill"], Uu = { key: 10 }, qu = ["x", "y"], Zu = ["innerHTML"], Ku = ["x", "y"], Ju = ["innerHTML"], Qu = ["x1", "x2", "y1", "y2", "stroke"], ju = { key: 11 }, es = ["x", "y", "font-size", "fill"], ts = { key: 12 }, ls = ["x", "y"], as = ["innerHTML"], os = ["x", "y"], ns = ["innerHTML"], is = ["x1", "x2", "y1", "y2", "stroke"], us = ["x", "y", "font-size", "fill", "innerHTML"], ss = ["x", "y", "font-size", "fill", "innerHTML"], rs = ["x", "y", "font-size", "fill", "innerHTML"], cs = ["x", "y", "font-size", "fill", "innerHTML"], vs = ["id"], ds = ["stop-color"], hs = ["stop-color"], ms = ["x", "y", "width", "height", "fill", "onMouseenter"], fs = ["font-size", "fill", "transform"], gs = ["x", "y", "font-size", "fill"], xs = ["text-anchor", "font-size", "fill", "transform", "onClick"], bs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ys = { key: 15 }, ps = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ks = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ws = ["y", "x", "width", "height", "fill"], Ss = ["id", "x", "y", "font-size", "fill", "text-anchor"], $s = {
1067
1067
  key: 16,
1068
1068
  style: { "pointer-events": "none" }
1069
1069
  }, _s = ["x", "y"], Ms = ["innerHTML"], Ls = ["cx", "cy", "r", "fill"], Cs = ["data-start", "data-end"], As = {
@@ -1129,11 +1129,11 @@ const _n = {
1129
1129
  },
1130
1130
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
1131
1131
  setup($, { expose: wa, emit: Sa }) {
1132
- const h = $, ot = Et(() => import("./DataTable-BksffQWJ.js")), he = Et(() => import("./Tooltip-KA5hkT_i.js")), ge = Et(() => import("./UserOptions-B9oOeC1Y.js")), me = Et(() => import("./BaseIcon-DPvKcoLi.js")), $l = Et(() => import("./vue-ui-table-sparkline-BN7WzW5-.js")), wt = Et(() => import("./PackageVersion-BDFJmlvg.js")), zt = Et(() => import("./PenAndPaper-Knveet_c.js")), _l = Et(() => import("./BaseDraggableDialog-DJGsL96v.js")), Ml = Sa, Jl = Yo(), cl = Go(), { vue_ui_xy: Tt } = Qo(), Ee = y(null), Te = y(null), He = y(null), Pe = y(null), ft = y(null), St = y(null), Ll = y(null), Xt = y(null), Yt = y(null), _e = y(null), Cl = y(null), Al = y(null), gt = y(null), ne = y(null), Ql = y(0), O = y(null), Gt = y(!0), H = y(600), le = y(1e3), nt = y("0 0 1000 600"), jl = y({ x: 0, y: 0 }), Ut = y({ line: "line", bar: "bar", plot: "plot" }), De = y(!1), Fe = y(!1), vl = y(!1), ae = y(null), ce = y([]), Z = y(ga()), zl = y(0), Tl = y(0), Il = y(0), We = y(!0), xt = y(0), D = y(null), ea = y(!1), Nl = y(!0), dl = y(!0), Le = y(null), it = y({}), qt = y(null), B = y(!1), je = y(null), _ = y(null), bt = x(() => ({
1132
+ const h = $, ot = Et(() => import("./DataTable-DQRJv8EE.js")), he = Et(() => import("./Tooltip-BA5KTZ2e.js")), ge = Et(() => import("./UserOptions-usqWO4wC.js")), me = Et(() => import("./BaseIcon-CBGEVS_a.js")), _l = Et(() => import("./vue-ui-table-sparkline-BYoEkczS.js")), wt = Et(() => import("./PackageVersion-bFI66Iee.js")), zt = Et(() => import("./PenAndPaper-CHT5QaP8.js")), Ml = Et(() => import("./BaseDraggableDialog-R8VpARJu.js")), cl = Sa, Ll = Yo(), vl = Go(), { vue_ui_xy: Tt } = Qo(), Ee = y(null), Te = y(null), He = y(null), Pe = y(null), ft = y(null), St = y(null), Cl = y(null), Xt = y(null), Yt = y(null), _e = y(null), Al = y(null), zl = y(null), gt = y(null), ne = y(null), Ql = y(0), O = y(null), Gt = y(!0), H = y(600), le = y(1e3), nt = y("0 0 1000 600"), jl = y({ x: 0, y: 0 }), Ut = y({ line: "line", bar: "bar", plot: "plot" }), De = y(!1), Fe = y(!1), dl = y(!1), ae = y(null), ce = y([]), Z = y(ga()), Tl = y(0), Il = y(0), Nl = y(0), We = y(!0), xt = y(0), D = y(null), ea = y(!1), Pl = y(!0), hl = y(!0), Le = y(null), it = y({}), qt = y(null), B = y(!1), je = y(null), _ = y(null), bt = x(() => ({
1133
1133
  height: H.value,
1134
1134
  width: le.value
1135
1135
  }));
1136
- function Pl(l) {
1136
+ function Fl(l) {
1137
1137
  return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
1138
1138
  }
1139
1139
  function It(l, s, e = 0) {
@@ -1145,7 +1145,7 @@ const _n = {
1145
1145
  dataLabels: 20,
1146
1146
  plotLabels: 10
1147
1147
  }), Xe = y({ plot: 3, line: 3 });
1148
- Sl(() => {
1148
+ $l(() => {
1149
1149
  B.value = !0, h.dataset.length && h.dataset.forEach((l, s) => {
1150
1150
  [null, void 0].includes(l.series) && za({
1151
1151
  componentName: "VueUiXy",
@@ -1156,7 +1156,7 @@ const _n = {
1156
1156
  });
1157
1157
  });
1158
1158
  });
1159
- function Fl() {
1159
+ function Rl() {
1160
1160
  if (!Object.keys(h.config || {}).length)
1161
1161
  return Tt;
1162
1162
  const l = Ia({
@@ -1181,7 +1181,7 @@ const _n = {
1181
1181
  set(l) {
1182
1182
  return l;
1183
1183
  }
1184
- }), t = y(Fl()), k = y({
1184
+ }), t = y(Rl()), k = y({
1185
1185
  dataLabels: { show: !0 },
1186
1186
  showTooltip: !0,
1187
1187
  showTable: !1,
@@ -1200,10 +1200,10 @@ const _n = {
1200
1200
  const $t = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET: Me, manualLoading: _t } = fn({
1201
1201
  ...Uo(h),
1202
1202
  FINAL_CONFIG: t,
1203
- prepareConfig: Fl,
1203
+ prepareConfig: Rl,
1204
1204
  callback: () => {
1205
1205
  Promise.resolve().then(async () => {
1206
- await xl(), k.value.showTable = t.value.showTable;
1206
+ await bl(), k.value.showTable = t.value.showTable;
1207
1207
  });
1208
1208
  },
1209
1209
  skeletonDataset: [
@@ -1292,8 +1292,8 @@ const _n = {
1292
1292
  const $a = Pt((l, s) => Ta({ data: l, threshold: s })), ut = (l) => $a(l, t.value.downsample.threshold), Re = x({
1293
1293
  get: () => Math.max(...Me.value.map((l) => ut(l.series).length)),
1294
1294
  set: (l) => l
1295
- }), p = y({ start: 0, end: Re.value }), Ye = y({ start: 0, end: Re.value }), Rl = x(() => t.value.chart.zoom.preview.enable && (Ye.value.start !== p.value.start || Ye.value.end !== p.value.end));
1296
- function Vl(l, s) {
1295
+ }), p = y({ start: 0, end: Re.value }), Ye = y({ start: 0, end: Re.value }), Vl = x(() => t.value.chart.zoom.preview.enable && (Ye.value.start !== p.value.start || Ye.value.end !== p.value.end));
1296
+ function Ol(l, s) {
1297
1297
  Ye.value[l] = s;
1298
1298
  }
1299
1299
  function Ft() {
@@ -1336,7 +1336,7 @@ const _n = {
1336
1336
  elementId: `vue-ui-xy_${Z.value}`,
1337
1337
  fileName: t.value.chart.title.text || "vue-ui-xy",
1338
1338
  options: t.value.chart.userOptions.print
1339
- }), la = y(!1), hl = x(() => en(t.value.customPalette)), ml = x(() => {
1339
+ }), la = y(!1), ml = x(() => en(t.value.customPalette)), fl = x(() => {
1340
1340
  if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
1341
1341
  return t.value.chart.grid.labels.yAxis.scaleMin;
1342
1342
  const l = Math.min(...tt.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.min(...s.series)));
@@ -1345,14 +1345,14 @@ const _n = {
1345
1345
  if (t.value.chart.grid.labels.yAxis.scaleMax)
1346
1346
  return t.value.chart.grid.labels.yAxis.scaleMax;
1347
1347
  const l = Math.max(...tt.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.max(...s.series)));
1348
- return ml.value === l ? l + 1 : l;
1349
- }), Ge = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? ql(ml.value, Jt.value < 0 ? 0 : Jt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : il(ml.value, Jt.value < 0 ? 0 : Jt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), Qt = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Ge.value.min >= 0 ? 0 : Math.abs(Ge.value.min) : -Ge.value.min), tt = x(() => Gt.value ? Me.value.map((l, s) => {
1348
+ return fl.value === l ? l + 1 : l;
1349
+ }), Ge = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Zl(fl.value, Jt.value < 0 ? 0 : Jt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : il(fl.value, Jt.value < 0 ? 0 : Jt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), Qt = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Ge.value.min >= 0 ? 0 : Math.abs(Ge.value.min) : -Ge.value.min), tt = x(() => Gt.value ? Me.value.map((l, s) => {
1350
1350
  const e = ut(l.series), u = `uniqueId_${s}`;
1351
1351
  return {
1352
1352
  ...l,
1353
1353
  slotAbsoluteIndex: s,
1354
1354
  series: e.map((a) => ha(a) ? a : null).slice(p.value.start, p.value.end),
1355
- color: go(l.color ? l.color : hl.value[s] ? hl.value[s] : xo[s]),
1355
+ color: go(l.color ? l.color : ml.value[s] ? ml.value[s] : xo[s]),
1356
1356
  id: u,
1357
1357
  scaleLabel: l.scaleLabel || u
1358
1358
  };
@@ -1370,14 +1370,14 @@ const _n = {
1370
1370
  })).filter((l) => !ce.value.includes(l.id)));
1371
1371
  function jt() {
1372
1372
  let l = 0;
1373
- Cl.value && (l = Array.from(Cl.value.querySelectorAll("text")).reduce((a, r) => {
1373
+ Al.value && (l = Array.from(Al.value.querySelectorAll("text")).reduce((a, r) => {
1374
1374
  const o = r.getComputedTextLength();
1375
1375
  return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
1376
1376
  }, 0));
1377
1377
  const s = Yt.value ? Yt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + C.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
1378
1378
  return l + s + e;
1379
1379
  }
1380
- const Rt = y(0), el = Zl((l) => {
1380
+ const Rt = y(0), el = Kl((l) => {
1381
1381
  Rt.value = l;
1382
1382
  }, 100);
1383
1383
  ho((l) => {
@@ -1395,11 +1395,11 @@ const _n = {
1395
1395
  Xt.value && (l = Xt.value.getBBox().height);
1396
1396
  let s = 0;
1397
1397
  return _e.value && (s = Rt.value), l + s + C.value.xAxis;
1398
- }), Ol = x(() => Me.value.some((l) => l.useProgression)), c = x(() => {
1398
+ }), Bl = x(() => Me.value.some((l) => l.useProgression)), c = x(() => {
1399
1399
  let l = 0;
1400
1400
  const s = 36;
1401
1401
  t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (Me.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 = jt());
1402
- const e = t.value.chart.labels.fontSize * 1.1, u = Ol.value ? 24 : 6;
1402
+ const e = t.value.chart.labels.fontSize * 1.1, u = Bl.value ? 24 : 6;
1403
1403
  if (_e.value) {
1404
1404
  const o = _e.value.getBBox().x;
1405
1405
  o < 0 && (l += Math.abs(o));
@@ -1424,14 +1424,14 @@ const _n = {
1424
1424
  }), oa = x(() => {
1425
1425
  if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
1426
1426
  const l = c.value.width / I.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
1427
- return gl.value.map((u, a) => {
1427
+ return xl.value.map((u, a) => {
1428
1428
  if (!u || !u.text) return null;
1429
1429
  const r = c.value.left + l * a + l / 2, o = e ? Ie.value - (Ie.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, P = e ? Ie.value + s / (Ie.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
1430
1430
  return `M${r},${o} L${r},${P}`;
1431
1431
  }).filter(Boolean).join(" ");
1432
1432
  });
1433
1433
  function Vt() {
1434
- return !!cl?.vnode.props?.onSelectTimeLabel;
1434
+ return !!vl?.vnode.props?.onSelectTimeLabel;
1435
1435
  }
1436
1436
  function tl(l, s, e) {
1437
1437
  if (!qt.value) {
@@ -1444,12 +1444,12 @@ const _n = {
1444
1444
  const l = Ee.value.querySelectorAll(".vue-ui-xy-tag");
1445
1445
  l.length && Array.from(l).forEach((s) => s.style.opacity = "0");
1446
1446
  }
1447
- function fl(l, s, e, u, a) {
1447
+ function gl(l, s, e, u, a) {
1448
1448
  e && (it.value[`${l}_${s}_${u}_${a}`] = e);
1449
1449
  }
1450
1450
  const d = y(!1);
1451
1451
  async function f(l = !1) {
1452
- await Kl(), d.value = l, ea.value && (dl.value = l);
1452
+ await Jl(), d.value = l, ea.value && (hl.value = l);
1453
1453
  }
1454
1454
  function m() {
1455
1455
  De.value = !De.value;
@@ -1463,7 +1463,7 @@ const _n = {
1463
1463
  start: p.value.start,
1464
1464
  end: p.value.end
1465
1465
  });
1466
- }), T = x(() => {
1466
+ }), z = x(() => {
1467
1467
  const l = Math.max(...Me.value.map((s) => Ta({ data: s.series, threshold: t.value.downsample.threshold }).length));
1468
1468
  return wo({
1469
1469
  values: t.value.chart.grid.labels.xAxisLabels.values,
@@ -1500,9 +1500,9 @@ const _n = {
1500
1500
  }
1501
1501
  if (!Y.length)
1502
1502
  return u.map((W, V) => ({ text: "", absoluteIndex: V }));
1503
- const A = Y.length, F = E, te = Math.max(2, Math.min(F - 3, A)), z = Math.min(A, F + 3);
1503
+ const A = Y.length, F = E, te = Math.max(2, Math.min(F - 3, A)), T = Math.min(A, F + 3);
1504
1504
  let G = Math.min(F, A), R = 1 / 0;
1505
- for (let W = te; W <= z; W += 1) {
1505
+ for (let W = te; W <= T; W += 1) {
1506
1506
  const V = (A - 1) % (W - 1), se = Math.abs(W - F), Oe = V * 10 + se;
1507
1507
  Oe < R && (R = Oe, G = W);
1508
1508
  }
@@ -1518,8 +1518,8 @@ const _n = {
1518
1518
  text: de.has(V) ? W : "",
1519
1519
  absoluteIndex: V
1520
1520
  }));
1521
- }), gl = x(() => {
1522
- const l = t.value.chart.grid.labels.xAxisLabels, s = S.value || [], e = T.value || [], u = p.value.start ?? 0, a = _.value, r = I.value, o = s.map((E) => E?.text ?? ""), P = e.map((E) => E?.text ?? "");
1521
+ }), xl = x(() => {
1522
+ const l = t.value.chart.grid.labels.xAxisLabels, s = S.value || [], e = z.value || [], u = p.value.start ?? 0, a = _.value, r = I.value, o = s.map((E) => E?.text ?? ""), P = e.map((E) => E?.text ?? "");
1523
1523
  return $e(
1524
1524
  !!l.showOnlyFirstAndLast,
1525
1525
  !!l.showOnlyAtModulo,
@@ -1531,7 +1531,7 @@ const _n = {
1531
1531
  r
1532
1532
  );
1533
1533
  });
1534
- function Bl(l, s) {
1534
+ function El(l, s) {
1535
1535
  const e = Se.value.map((u) => ({
1536
1536
  shape: u.shape || null,
1537
1537
  name: u.name,
@@ -1542,14 +1542,14 @@ const _n = {
1542
1542
  prefix: u.prefix || t.value.chart.labels.prefix,
1543
1543
  suffix: u.suffix || t.value.chart.labels.suffix
1544
1544
  }));
1545
- Ml("selectTimeLabel", {
1545
+ cl("selectTimeLabel", {
1546
1546
  datapoint: e,
1547
1547
  absoluteIndex: l.absoluteIndex,
1548
1548
  label: l.text
1549
1549
  });
1550
1550
  }
1551
1551
  const I = x(() => {
1552
- const l = Pl((p.value.end ?? 0) - (p.value.start ?? 0));
1552
+ const l = Fl((p.value.end ?? 0) - (p.value.start ?? 0));
1553
1553
  return Math.max(1, l);
1554
1554
  });
1555
1555
  function yt(l) {
@@ -1558,43 +1558,43 @@ const _n = {
1558
1558
  function na() {
1559
1559
  k.value.isStacked = !k.value.isStacked, k.value.isStacked ? k.value.useIndividualScale = !0 : k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
1560
1560
  }
1561
- function El(l) {
1561
+ function Hl(l) {
1562
1562
  $t.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`));
1563
1563
  }
1564
1564
  function Ce(l, s) {
1565
- const e = Pl(l), u = Array(e).fill(0);
1565
+ const e = Fl(l), u = Array(e).fill(0);
1566
1566
  for (let a = 0; a < s.length && a < e; a += 1) u[a] = s[a] ?? 0;
1567
1567
  return u;
1568
1568
  }
1569
- function Hl(l) {
1569
+ function Dl(l) {
1570
1570
  const s = Math.max(...Me.value.map((e) => ut(e.series).length));
1571
1571
  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;
1572
1572
  }
1573
- const pt = y(!1), Dl = y(!1);
1574
- function xl() {
1573
+ const pt = y(!1), Wl = y(!1);
1574
+ function bl() {
1575
1575
  if (!pt.value) {
1576
1576
  pt.value = !0;
1577
1577
  try {
1578
- const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(...Me.value.map((r) => ut(r.series).length)), u = l ?? 0, a = s != null ? Math.min(Hl(s + 1), e) : e;
1579
- bl.value = !0, p.value.start = u, p.value.end = a, Ye.value.start = u, Ye.value.end = a, Ft(), Dl.value = !0;
1578
+ const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(...Me.value.map((r) => ut(r.series).length)), u = l ?? 0, a = s != null ? Math.min(Dl(s + 1), e) : e;
1579
+ yl.value = !0, p.value.start = u, p.value.end = a, Ye.value.start = u, Ye.value.end = a, Ft(), Wl.value = !0;
1580
1580
  } finally {
1581
1581
  queueMicrotask(() => {
1582
- bl.value = !1;
1582
+ yl.value = !1;
1583
1583
  }), pt.value = !1;
1584
1584
  }
1585
1585
  }
1586
1586
  }
1587
- const bl = y(!1);
1587
+ const yl = y(!1);
1588
1588
  function $o(l) {
1589
- pt.value || bl.value || l !== p.value.start && (p.value.start = l, Ye.value.start = l, Ft());
1589
+ pt.value || yl.value || l !== p.value.start && (p.value.start = l, Ye.value.start = l, Ft());
1590
1590
  }
1591
1591
  function _o(l) {
1592
- if (pt.value || bl.value) return;
1593
- const s = Hl(l);
1592
+ if (pt.value || yl.value) return;
1593
+ const s = Dl(l);
1594
1594
  s !== p.value.end && (p.value.end = s, Ye.value.end = s, Ft());
1595
1595
  }
1596
1596
  async function Pa() {
1597
- await xl();
1597
+ await bl();
1598
1598
  }
1599
1599
  function qe(l) {
1600
1600
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(l);
@@ -1605,7 +1605,7 @@ const _n = {
1605
1605
  }
1606
1606
  const Ie = x(() => isNaN(ll(Qt.value)) ? c.value.bottom : c.value.bottom - c.value.height * ll(Qt.value));
1607
1607
  function Ra(l) {
1608
- const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && ml.value >= 0 ? c.value.bottom : Ie.value;
1608
+ const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && fl.value >= 0 ? c.value.bottom : Ie.value;
1609
1609
  return l.value >= 0 ? U(s - l.y <= 0 ? 1e-5 : s - l.y) : U(l.y - Ie.value <= 0 ? 1e-5 : l.y - Ie.value);
1610
1610
  }
1611
1611
  function Va(l) {
@@ -1619,7 +1619,7 @@ const _n = {
1619
1619
  line: It(s, l, 1)
1620
1620
  };
1621
1621
  });
1622
- function yl() {
1622
+ function pl() {
1623
1623
  return k.value.useIndividualScale && k.value.isStacked ? ve.value.line - c.value.width / I.value * 0.1 : ve.value.bar;
1624
1624
  }
1625
1625
  function ia(l) {
@@ -1631,7 +1631,7 @@ const _n = {
1631
1631
  function Ba(l) {
1632
1632
  return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
1633
1633
  }
1634
- const Wl = y(null);
1634
+ const Xl = y(null);
1635
1635
  let al = 0;
1636
1636
  function Mo(l, s, e) {
1637
1637
  return l >= e.left && l <= e.right && s >= e.top && s <= e.bottom;
@@ -1646,14 +1646,14 @@ const _n = {
1646
1646
  return;
1647
1647
  }
1648
1648
  const u = Le.value.viewBox.baseVal.width / s.width, r = (l.clientX - s.left) * u - c.value.left, o = c.value.width / I.value, P = Math.floor(r / o);
1649
- P >= 0 && P < I.value ? Wl.value !== P && (Wl.value = P, Qa(!0, P)) : _a();
1649
+ P >= 0 && P < I.value ? Xl.value !== P && (Xl.value = P, Qa(!0, P)) : _a();
1650
1650
  });
1651
1651
  }
1652
1652
  function _a() {
1653
- al && (cancelAnimationFrame(al), al = 0), Wl.value = null, Qa(!1, null);
1653
+ al && (cancelAnimationFrame(al), al = 0), Xl.value = null, Qa(!1, null);
1654
1654
  }
1655
1655
  function Co() {
1656
- Wl.value != null && Ao(Wl.value);
1656
+ Xl.value != null && Ao(Xl.value);
1657
1657
  }
1658
1658
  function Ao(l) {
1659
1659
  const s = Se.value.map((e) => ({
@@ -1662,7 +1662,7 @@ const _n = {
1662
1662
  color: e.color,
1663
1663
  type: e.type
1664
1664
  }));
1665
- Ml(
1665
+ cl(
1666
1666
  "selectX",
1667
1667
  {
1668
1668
  dataset: s,
@@ -1698,7 +1698,7 @@ const _n = {
1698
1698
  if (ce.value.length + 1 === tt.value.length) return;
1699
1699
  ce.value.push(l.id);
1700
1700
  }
1701
- Ml("selectLegend", Se.value.map((s) => ({
1701
+ cl("selectLegend", Se.value.map((s) => ({
1702
1702
  name: s.name,
1703
1703
  values: s.absoluteValues,
1704
1704
  color: s.color,
@@ -1728,7 +1728,7 @@ const _n = {
1728
1728
  ...l,
1729
1729
  series: ut(l.series),
1730
1730
  id: `uniqueId_${s}`,
1731
- color: go(l.color ? l.color : hl.value[s] ? hl.value[s] : xo[s])
1731
+ color: go(l.color ? l.color : ml.value[s] ? ml.value[s] : xo[s])
1732
1732
  })) : Me.value), Fo = x(() => Se.value.map((l) => {
1733
1733
  const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1734
1734
  return {
@@ -1746,7 +1746,7 @@ const _n = {
1746
1746
  fontFamily: t.value.chart.fontFamily,
1747
1747
  prefix: t.value.chart.labels.prefix,
1748
1748
  suffix: t.value.chart.labels.suffix,
1749
- colNames: S.value.map((l, s) => t.value.table.useDefaultTimeFormat ? l.text : pl.value(s + p.value.start, t.value.table.timeFormat)),
1749
+ colNames: S.value.map((l, s) => t.value.table.useDefaultTimeFormat ? l.text : kl.value(s + p.value.start, t.value.table.timeFormat)),
1750
1750
  thead: {
1751
1751
  backgroundColor: t.value.table.th.backgroundColor,
1752
1752
  color: t.value.table.th.color,
@@ -1777,7 +1777,7 @@ const _n = {
1777
1777
  }), Vo = x(() => {
1778
1778
  const l = tt.value.filter((s) => s.type === "bar").filter((s) => !ce.value.includes(s.id)).length;
1779
1779
  return c.value.width / I.value / l - ua.value * l;
1780
- }), ua = x(() => ve.value.line * t.value.bar.periodGap), sa = x(() => Math.max(1e-5, yl() - (k.value.useIndividualScale && k.value.isStacked ? 0 : ua.value))), ra = x(() => sa.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Wa = x(() => {
1780
+ }), ua = x(() => ve.value.line * t.value.bar.periodGap), sa = x(() => Math.max(1e-5, pl() - (k.value.useIndividualScale && k.value.isStacked ? 0 : ua.value))), ra = x(() => sa.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Wa = x(() => {
1781
1781
  if (!t.value.chart.zoom.minimap.show) return [];
1782
1782
  const l = Da.value.filter((a) => !ce.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
1783
1783
  for (let a = 0; a < s; a += 1)
@@ -1814,12 +1814,12 @@ const _n = {
1814
1814
  return a - F * r;
1815
1815
  };
1816
1816
  return s.map((A) => {
1817
- const { yAxis: { yTop: F, yBottom: te, label: z } } = A, G = F != null && te != null && F !== te, R = F == null ? null : Y(F), de = te == null ? null : Y(te), W = tl(z.fontSize);
1818
- W.font = `${z.fontSize}px sans-serif`;
1819
- const V = W.measureText(z.text).width, se = z.fontSize, Oe = (z.position === "start" ? e + z.padding.left : u - z.padding.right) + z.offsetX, Ze = (R != null && de != null ? Math.min(R, de) : R ?? de) - z.fontSize / 3 + z.offsetY - z.padding.top;
1817
+ const { yAxis: { yTop: F, yBottom: te, label: T } } = A, G = F != null && te != null && F !== te, R = F == null ? null : Y(F), de = te == null ? null : Y(te), W = tl(T.fontSize);
1818
+ W.font = `${T.fontSize}px sans-serif`;
1819
+ const V = W.measureText(T.text).width, se = T.fontSize, Oe = (T.position === "start" ? e + T.padding.left : u - T.padding.right) + T.offsetX, Ze = (R != null && de != null ? Math.min(R, de) : R ?? de) - T.fontSize / 3 + T.offsetY - T.padding.top;
1820
1820
  let J;
1821
- z.textAnchor === "middle" ? J = Oe - V / 2 - z.padding.left : z.textAnchor === "end" ? J = Oe - V - z.padding.right : J = Oe - z.padding.left;
1822
- const Q = Ze - se * 0.75 - z.padding.top;
1821
+ T.textAnchor === "middle" ? J = Oe - V / 2 - T.padding.left : T.textAnchor === "end" ? J = Oe - V - T.padding.right : J = Oe - T.padding.left;
1822
+ const Q = Ze - se * 0.75 - T.padding.top;
1823
1823
  return {
1824
1824
  show: ![R, de, Q].includes(NaN),
1825
1825
  id: `annotation_y_${ga()}`,
@@ -1834,13 +1834,13 @@ const _n = {
1834
1834
  _box: {
1835
1835
  x: J,
1836
1836
  y: Q,
1837
- width: V + z.padding.left + z.padding.right,
1838
- height: se + z.padding.top + z.padding.bottom,
1839
- fill: z.backgroundColor,
1840
- stroke: z.border.stroke,
1841
- rx: z.border.rx,
1842
- ry: z.border.ry,
1843
- strokeWidth: z.border.strokeWidth
1837
+ width: V + T.padding.left + T.padding.right,
1838
+ height: se + T.padding.top + T.padding.bottom,
1839
+ fill: T.backgroundColor,
1840
+ stroke: T.border.stroke,
1841
+ rx: T.border.rx,
1842
+ ry: T.border.ry,
1843
+ strokeWidth: T.border.strokeWidth
1844
1844
  }
1845
1845
  };
1846
1846
  });
@@ -1853,7 +1853,7 @@ const _n = {
1853
1853
  const Ct = x(() => {
1854
1854
  const l = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = k.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
1855
1855
  return l.filter((o) => o.type === "bar").map((o, P) => {
1856
- El(o);
1856
+ Hl(o);
1857
1857
  const E = N.value[o.scaleLabel].min, Y = N.value[o.scaleLabel].max;
1858
1858
  o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - E) / (Y - E));
1859
1859
  const A = {
@@ -1862,7 +1862,7 @@ const _n = {
1862
1862
  }, F = {
1863
1863
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1864
1864
  min: o.scaleMin || Math.min(...o.absoluteValues.filter((K) => ![void 0, null].includes(K))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((K) => ![null, void 0].includes(K)))
1865
- }, te = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, z = 1.0000001, G = t.value.chart.grid.labels.yAxis.useNiceScale ? ql(F.min, F.max === F.min ? F.max * z : F.max, te) : il(F.min, F.max === F.min ? F.max * z : F.max, te), R = t.value.chart.grid.labels.yAxis.useNiceScale ? ql(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * z : A.valueMax, te) : il(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * z : A.valueMax, te), de = G.min >= 0 ? 0 : Math.abs(G.min), W = 0, V = G.max + de, se = R.max + Math.abs(W), Oe = o.stackIndex, kl = s - 1 - Oe, Ze = u ? 1 - o.cumulatedStackRatio : 0, J = u ? r * Ze + e * kl : 0, Q = u ? r * o.stackRatio : c.value.height, ye = c.value.bottom - J - Q * de / V, Ke = c.value.bottom - J - Q * W / se, Ne = be.value.filter((K) => K.type === "bar").filter((K) => !ce.value.includes(K.id)).length, Gl = o.series.map((K, ke) => {
1865
+ }, te = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, T = 1.0000001, G = t.value.chart.grid.labels.yAxis.useNiceScale ? Zl(F.min, F.max === F.min ? F.max * T : F.max, te) : il(F.min, F.max === F.min ? F.max * T : F.max, te), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Zl(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * T : A.valueMax, te) : il(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * T : A.valueMax, te), de = G.min >= 0 ? 0 : Math.abs(G.min), W = 0, V = G.max + de, se = R.max + Math.abs(W), Oe = o.stackIndex, wl = s - 1 - Oe, Ze = u ? 1 - o.cumulatedStackRatio : 0, J = u ? r * Ze + e * wl : 0, Q = u ? r * o.stackRatio : c.value.height, ye = c.value.bottom - J - Q * de / V, Ke = c.value.bottom - J - Q * W / se, Ne = be.value.filter((K) => K.type === "bar").filter((K) => !ce.value.includes(K.id)).length, Ul = o.series.map((K, ke) => {
1866
1866
  const Bt = k.value.useIndividualScale ? (o.absoluteValues[ke] + de) / V : ll(K), nl = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * ke : c.value.left + ve.value.bar * P + ve.value.bar * ke * Ne - Vo.value / 2 - P * ua.value;
1867
1867
  return {
1868
1868
  yOffset: U(J),
@@ -1911,14 +1911,14 @@ const _n = {
1911
1911
  individualScale: o.autoScaling ? R : G,
1912
1912
  individualMax: o.autoScaling ? se : V,
1913
1913
  zeroPosition: o.autoScaling ? Ke : ye,
1914
- plots: o.autoScaling ? Ot : Gl,
1914
+ plots: o.autoScaling ? Ot : Ul,
1915
1915
  groupId: N.value[o.scaleLabel].groupId
1916
1916
  };
1917
1917
  });
1918
1918
  }), Ve = x(() => {
1919
1919
  const l = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = k.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
1920
1920
  return l.filter((o) => o.type === "line").map((o, P) => {
1921
- El(o);
1921
+ Hl(o);
1922
1922
  const E = N.value[o.scaleLabel].min, Y = N.value[o.scaleLabel].max;
1923
1923
  o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - E) / (Y - E));
1924
1924
  const A = {
@@ -1927,7 +1927,7 @@ const _n = {
1927
1927
  }, F = {
1928
1928
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1929
1929
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
1930
- }, te = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, z = 1.0000001, G = t.value.chart.grid.labels.yAxis.useNiceScale ? ql(F.min, F.max === F.min ? F.max * z : F.max, te) : il(F.min, F.max === F.min ? F.max * z : F.max, te), R = t.value.chart.grid.labels.yAxis.useNiceScale ? ql(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * z : A.valueMax, te) : il(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * z : A.valueMax, te), de = G.min >= 0 ? 0 : Math.abs(G.min), W = 0, V = G.max + Math.abs(de), se = R.max + Math.abs(W), Oe = o.stackIndex, kl = s - 1 - Oe, Ze = u ? 1 - o.cumulatedStackRatio : 0, J = u ? r * Ze + e * kl : 0, Q = u ? r * o.stackRatio : c.value.height, ye = c.value.bottom - J - Q * de / V, Ke = c.value.bottom - J - Q * W / se, Ne = o.series.map((X, Ae) => {
1930
+ }, te = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, T = 1.0000001, G = t.value.chart.grid.labels.yAxis.useNiceScale ? Zl(F.min, F.max === F.min ? F.max * T : F.max, te) : il(F.min, F.max === F.min ? F.max * T : F.max, te), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Zl(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * T : A.valueMax, te) : il(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * T : A.valueMax, te), de = G.min >= 0 ? 0 : Math.abs(G.min), W = 0, V = G.max + Math.abs(de), se = R.max + Math.abs(W), Oe = o.stackIndex, wl = s - 1 - Oe, Ze = u ? 1 - o.cumulatedStackRatio : 0, J = u ? r * Ze + e * wl : 0, Q = u ? r * o.stackRatio : c.value.height, ye = c.value.bottom - J - Q * de / V, Ke = c.value.bottom - J - Q * W / se, Ne = o.series.map((X, Ae) => {
1931
1931
  const Wo = k.value.useIndividualScale ? (o.absoluteValues[Ae] + Math.abs(de)) / V : ll(X);
1932
1932
  return {
1933
1933
  x: U(c.value.left + ve.value.line / 2 + ve.value.line * Ae),
@@ -1935,14 +1935,14 @@ const _n = {
1935
1935
  value: o.absoluteValues[Ae],
1936
1936
  comment: o.comments && o.comments.slice(p.value.start, p.value.end)[Ae] || ""
1937
1937
  };
1938
- }), Gl = o.absoluteValues.map((X) => R.min >= 0 ? (X - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (X + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Be = o.series.map((X, Ae) => [void 0, null].includes(o.absoluteValues[Ae]) ? {
1938
+ }), Ul = o.absoluteValues.map((X) => R.min >= 0 ? (X - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (X + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Be = o.series.map((X, Ae) => [void 0, null].includes(o.absoluteValues[Ae]) ? {
1939
1939
  x: U(c.value.left + ve.value.line / 2 + ve.value.line * Ae),
1940
1940
  y: ye,
1941
1941
  value: o.absoluteValues[Ae],
1942
1942
  comment: o.comments && o.comments.slice(p.value.start, p.value.end)[Ae] || ""
1943
1943
  } : {
1944
1944
  x: U(c.value.left + ve.value.line / 2 + ve.value.line * Ae),
1945
- y: U(c.value.bottom - J - (Q * Gl[Ae] || 0)),
1945
+ y: U(c.value.bottom - J - (Q * Ul[Ae] || 0)),
1946
1946
  value: o.absoluteValues[Ae],
1947
1947
  comment: o.comments && o.comments.slice(p.value.start, p.value.end)[Ae] || ""
1948
1948
  }), Ot = t.value.line.cutNullValues ? ba(Ne) : ya(Ne.filter((X) => X.value !== null)), oe = t.value.line.cutNullValues ? ba(Be) : ya(Be.filter((X) => X.value !== null)), pe = t.value.line.cutNullValues ? pa(Ne) : ka(Ne.filter((X) => X.value !== null)), K = t.value.line.cutNullValues ? pa(Be) : ka(Be.filter((X) => X.value !== null)), ke = G.ticks.map((X) => ({
@@ -1962,7 +1962,7 @@ const _n = {
1962
1962
  };
1963
1963
  });
1964
1964
  N.value[o.scaleLabel].name = o.name, N.value[o.scaleLabel].groupName = o.scaleLabel, N.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, N.value[o.scaleLabel].color = o.color, N.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Bt : ke, N.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ke : ye, N.value[o.scaleLabel].individualMax = o.autoScaling ? se : V, N.value[o.scaleLabel].scaleLabel = o.scaleLabel, N.value[o.scaleLabel].id = o.id, N.value[o.scaleLabel].yOffset = J, N.value[o.scaleLabel].individualHeight = Q, N.value[o.scaleLabel].autoScaleYLabels = Bt, N.value[o.scaleLabel].unique = ol.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1;
1965
- const nl = k.value.useIndividualScale ? o.autoScaling ? Ke : ye : Ie.value, Ul = Math.max(Math.max(o.autoScaling ? Ke : ke.at(-1) ? ke.at(-1).y : 0, c.value.top), nl);
1965
+ const nl = k.value.useIndividualScale ? o.autoScaling ? Ke : ye : Ie.value, ql = Math.max(Math.max(o.autoScaling ? Ke : ke.at(-1) ? ke.at(-1).y : 0, c.value.top), nl);
1966
1966
  return {
1967
1967
  ...o,
1968
1968
  yOffset: J,
@@ -1976,14 +1976,14 @@ const _n = {
1976
1976
  plots: o.autoScaling ? Be : Ne,
1977
1977
  area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? bo(
1978
1978
  o.autoScaling ? Be : Ne,
1979
- Ul
1979
+ ql
1980
1980
  ) : yo(
1981
1981
  o.autoScaling ? Be.filter((X) => X.value !== null) : Ne.filter((X) => X.value !== null),
1982
- Ul
1983
- ) : t.value.line.cutNullValues ? bo(Ne, Ul) : yo(Ne.filter((X) => X.value !== null), Ul) : "",
1982
+ ql
1983
+ ) : t.value.line.cutNullValues ? bo(Ne, ql) : yo(Ne.filter((X) => X.value !== null), ql) : "",
1984
1984
  curveAreas: o.useArea ? ln(
1985
1985
  o.autoScaling ? t.value.line.cutNullValues ? Be : Be.filter((X) => X.value !== null) : t.value.line.cutNullValues ? Ne : Ne.filter((X) => X.value !== null),
1986
- Ul,
1986
+ ql,
1987
1987
  t.value.line.cutNullValues
1988
1988
  ) : [],
1989
1989
  straight: o.autoScaling ? K : pe,
@@ -1993,7 +1993,7 @@ const _n = {
1993
1993
  }), vt = x(() => {
1994
1994
  const l = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = k.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
1995
1995
  return l.filter((o) => o.type === "plot").map((o) => {
1996
- El(o);
1996
+ Hl(o);
1997
1997
  const P = N.value[o.scaleLabel].min, E = N.value[o.scaleLabel].max;
1998
1998
  o.absoluteValues.filter((oe) => ![null, void 0].includes(oe)).map((oe) => (oe - P) / (E - P));
1999
1999
  const Y = {
@@ -2002,7 +2002,7 @@ const _n = {
2002
2002
  }, A = {
2003
2003
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
2004
2004
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
2005
- }, F = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, te = 1.0000001, z = il(A.min, A.max === A.min ? A.max * te : A.max, F), G = il(Y.valueMin, Y.valueMax === Y.valueMin ? Y.valueMax * te : Y.valueMax, F), R = z.min >= 0 ? 0 : Math.abs(z.min), de = 0, W = z.max + R, V = G.max + Math.abs(de), se = o.stackIndex, Oe = s - 1 - se, kl = u ? 1 - o.cumulatedStackRatio : 0, Ze = u ? r * kl + e * Oe : 0, J = u ? r * o.stackRatio : c.value.height, Q = c.value.bottom - Ze - J * R / W, ye = c.value.bottom - Ze - J * de / V, Ke = o.series.map((oe, pe) => {
2005
+ }, F = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, te = 1.0000001, T = il(A.min, A.max === A.min ? A.max * te : A.max, F), G = il(Y.valueMin, Y.valueMax === Y.valueMin ? Y.valueMax * te : Y.valueMax, F), R = T.min >= 0 ? 0 : Math.abs(T.min), de = 0, W = T.max + R, V = G.max + Math.abs(de), se = o.stackIndex, Oe = s - 1 - se, wl = u ? 1 - o.cumulatedStackRatio : 0, Ze = u ? r * wl + e * Oe : 0, J = u ? r * o.stackRatio : c.value.height, Q = c.value.bottom - Ze - J * R / W, ye = c.value.bottom - Ze - J * de / V, Ke = o.series.map((oe, pe) => {
2006
2006
  const K = k.value.useIndividualScale ? (o.absoluteValues[pe] + Math.abs(R)) / W : ll(oe);
2007
2007
  return {
2008
2008
  x: U(c.value.left + ve.value.plot / 2 + ve.value.plot * pe),
@@ -2010,12 +2010,12 @@ const _n = {
2010
2010
  value: o.absoluteValues[pe],
2011
2011
  comment: o.comments && o.comments.slice(p.value.start, p.value.end)[pe] || ""
2012
2012
  };
2013
- }), Ne = o.absoluteValues.map((oe) => G.min >= 0 ? (oe - Math.abs(G.min)) / (G.max - Math.abs(G.min)) : (oe + Math.abs(G.min)) / (G.max + Math.abs(G.min))), Gl = o.series.map((oe, pe) => ({
2013
+ }), Ne = o.absoluteValues.map((oe) => G.min >= 0 ? (oe - Math.abs(G.min)) / (G.max - Math.abs(G.min)) : (oe + Math.abs(G.min)) / (G.max + Math.abs(G.min))), Ul = o.series.map((oe, pe) => ({
2014
2014
  x: U(c.value.left + ve.value.plot / 2 + ve.value.plot * pe),
2015
2015
  y: U(c.value.bottom - Ze - (J * Ne[pe] || 0)),
2016
2016
  value: o.absoluteValues[pe],
2017
2017
  comment: o.comments && o.comments.slice(p.value.start, p.value.end)[pe] || ""
2018
- })), Be = z.ticks.map((oe) => ({
2018
+ })), Be = T.ticks.map((oe) => ({
2019
2019
  y: oe >= 0 ? Q - J * (oe / W) : Q + J * Math.abs(oe) / W,
2020
2020
  value: oe,
2021
2021
  prefix: o.prefix || t.value.chart.labels.prefix,
@@ -2037,14 +2037,14 @@ const _n = {
2037
2037
  autoScaleYLabels: Ot,
2038
2038
  individualHeight: J,
2039
2039
  scaleYLabels: o.autoScaling ? Ot : Be,
2040
- individualScale: o.autoScaling ? G : z,
2040
+ individualScale: o.autoScaling ? G : T,
2041
2041
  individualMax: o.autoScaling ? V : W,
2042
2042
  zeroPosition: o.autoScaling ? ye : Q,
2043
- plots: o.autoScaling ? Gl : Ke,
2043
+ plots: o.autoScaling ? Ul : Ke,
2044
2044
  groupId: N.value[o.scaleLabel].groupId
2045
2045
  };
2046
2046
  });
2047
- }), Xl = x(() => {
2047
+ }), Yl = x(() => {
2048
2048
  const l = Ve.value.map((r) => ({
2049
2049
  name: r.name,
2050
2050
  color: r.color,
@@ -2114,7 +2114,7 @@ const _n = {
2114
2114
  return s.forEach((a, r) => {
2115
2115
  const [o, P] = Array.isArray(a) ? a : [a.a, a.b];
2116
2116
  if (!o || !P) return;
2117
- const E = Ve.value.find((z) => z.name === o), Y = Ve.value.find((z) => z.name === P);
2117
+ const E = Ve.value.find((T) => T.name === o), Y = Ve.value.find((T) => T.name === P);
2118
2118
  if (!E || !Y || E.type !== "line" || Y.type !== "line") return;
2119
2119
  const A = e?.[r]?.[0] ?? E.color, F = e?.[r]?.[1] ?? Y.color;
2120
2120
  an({
@@ -2126,8 +2126,8 @@ const _n = {
2126
2126
  colorLineB: F,
2127
2127
  sampleStepPx: 2,
2128
2128
  cutNullValues: t.value.line.cutNullValues
2129
- }).forEach((z, G) => {
2130
- u.push({ ...z, key: `inter_${o}_${P}_${r}_${G}` });
2129
+ }).forEach((T, G) => {
2130
+ u.push({ ...T, key: `inter_${o}_${P}_${r}_${G}` });
2131
2131
  });
2132
2132
  }), u;
2133
2133
  }), Za = x(() => ({
@@ -2138,7 +2138,7 @@ const _n = {
2138
2138
  lines: Ve.value,
2139
2139
  plots: vt.value,
2140
2140
  config: t.value
2141
- })), pl = x(() => {
2141
+ })), kl = x(() => {
2142
2142
  const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = xn({
2143
2143
  useUTC: l.useUTC,
2144
2144
  locale: bn[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
@@ -2149,7 +2149,7 @@ const _n = {
2149
2149
  return r == null ? "" : s.formatDate(new Date(r), u);
2150
2150
  };
2151
2151
  }), Ma = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
2152
- text: pl.value(e, t.value.chart.zoom.timeFormat),
2152
+ text: kl.value(e, t.value.chart.zoom.timeFormat),
2153
2153
  absoluteIndex: e
2154
2154
  }))), ca = y(!1), Ka = x(() => {
2155
2155
  let l = "", s = "";
@@ -2202,7 +2202,7 @@ const _n = {
2202
2202
  config: t.value
2203
2203
  });
2204
2204
  if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
2205
- const a = pl.value(_.value + p.value.start, t.value.chart.tooltip.timeFormat);
2205
+ const a = kl.value(_.value + p.value.start, t.value.chart.tooltip.timeFormat);
2206
2206
  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>`;
2207
2207
  }
2208
2208
  return Lt.value.forEach((a) => {
@@ -2210,7 +2210,7 @@ const _n = {
2210
2210
  let r = "", o = "";
2211
2211
  switch (Ut.value[a.type]) {
2212
2212
  case "bar":
2213
- r = `<svg viewBox="0 0 40 40" height="14" width="14">${Jl.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="${Jl.pattern ? `url(#pattern_${Z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
2213
+ r = `<svg viewBox="0 0 40 40" height="14" width="14">${Ll.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="${Ll.pattern ? `url(#pattern_${Z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
2214
2214
  break;
2215
2215
  case "line":
2216
2216
  !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="${kt({ 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="${kt({ 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="${kt({ 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="${kt({ 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="${kt({ 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="${po({ 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>`;
@@ -2270,7 +2270,7 @@ const _n = {
2270
2270
  type: e.type
2271
2271
  })), s = [];
2272
2272
  return S.value.forEach((e, u) => {
2273
- const a = t.value.table.useDefaultTimeFormat ? [e.text] : [pl.value(u + p.value.start, t.value.table.timeFormat)];
2273
+ const a = t.value.table.useDefaultTimeFormat ? [e.text] : [kl.value(u + p.value.start, t.value.table.timeFormat)];
2274
2274
  Se.value.forEach((r) => {
2275
2275
  a.push(qe(r.absoluteValues[u]) ? Number(r.absoluteValues[u].toFixed(t.value.table.rounding)) : "");
2276
2276
  }), s.push(a);
@@ -2284,7 +2284,7 @@ const _n = {
2284
2284
  const o = Se.value.map((P) => P.absoluteValues[r] ?? 0).reduce((P, E) => P + E, 0);
2285
2285
  e.push(
2286
2286
  [
2287
- t.value.table.useDefaultTimeFormat ? S.value[r].text ?? "-" : pl.value(r + p.value.start, t.value.table.timeFormat)
2287
+ t.value.table.useDefaultTimeFormat ? S.value[r].text ?? "-" : kl.value(r + p.value.start, t.value.table.timeFormat)
2288
2288
  ].concat(Se.value.map(
2289
2289
  (P) => ze(
2290
2290
  P.type === "line" ? t.value.line.labels.formatter : P.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
@@ -2319,7 +2319,7 @@ const _n = {
2319
2319
  l ? l(r) : vn({ csvContent: r, title: t.value.chart.title.text || "vue-ui-xy" });
2320
2320
  }
2321
2321
  function Qa(l, s = null) {
2322
- vl.value = l;
2322
+ dl.value = l;
2323
2323
  const e = Se.value.map((u) => ({
2324
2324
  name: u.name,
2325
2325
  value: [null, void 0, NaN].includes(u.absoluteValues[s]) ? null : u.absoluteValues[s],
@@ -2338,44 +2338,44 @@ const _n = {
2338
2338
  k.value.showTooltip = !k.value.showTooltip;
2339
2339
  }
2340
2340
  function lo(l) {
2341
- Fe.value = l, zl.value += 1;
2341
+ Fe.value = l, Tl.value += 1;
2342
2342
  }
2343
2343
  function ao() {
2344
2344
  if (!t.value.responsiveProportionalSizing) {
2345
2345
  C.value.dataLabels = t.value.chart.grid.labels.fontSize, C.value.yAxis = t.value.chart.grid.labels.axis.fontSize, C.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, C.value.plotLabels = t.value.chart.labels.fontSize, Xe.value.plot = t.value.plot.radius, Xe.value.line = t.value.line.radius;
2346
2346
  return;
2347
2347
  }
2348
- C.value.dataLabels = wl({
2348
+ C.value.dataLabels = Sl({
2349
2349
  relator: H.value,
2350
2350
  adjuster: 400,
2351
2351
  source: t.value.chart.grid.labels.fontSize,
2352
2352
  threshold: 10,
2353
2353
  fallback: 10
2354
- }), C.value.yAxis = wl({
2354
+ }), C.value.yAxis = Sl({
2355
2355
  relator: le.value,
2356
2356
  adjuster: 1e3,
2357
2357
  source: t.value.chart.grid.labels.axis.fontSize,
2358
2358
  threshold: 10,
2359
2359
  fallback: 10
2360
- }), C.value.xAxis = wl({
2360
+ }), C.value.xAxis = Sl({
2361
2361
  relator: le.value,
2362
2362
  adjuster: 1e3,
2363
2363
  source: t.value.chart.grid.labels.xAxisLabels.fontSize,
2364
2364
  threshold: 10,
2365
2365
  fallback: 10
2366
- }), C.value.plotLabels = wl({
2366
+ }), C.value.plotLabels = Sl({
2367
2367
  relator: le.value,
2368
2368
  adjuster: 800,
2369
2369
  source: t.value.chart.labels.fontSize,
2370
2370
  threshold: 10,
2371
2371
  fallback: 10
2372
- }), Xe.value.plot = wl({
2372
+ }), Xe.value.plot = Sl({
2373
2373
  relator: le.value,
2374
2374
  adjuster: 800,
2375
2375
  source: t.value.plot.radius,
2376
2376
  threshold: 1,
2377
2377
  fallback: 1
2378
- }), Xe.value.line = wl({
2378
+ }), Xe.value.line = Sl({
2379
2379
  relator: le.value,
2380
2380
  adjuster: 800,
2381
2381
  source: t.value.line.radius,
@@ -2402,7 +2402,7 @@ const _n = {
2402
2402
  -----> The serie '${s.name}' contains the value '${e}' at index ${u}.
2403
2403
  '${e}' was converted to null to allow the chart to display.`);
2404
2404
  });
2405
- }), ko(h.dataset) || (_t.value = t.value.loading), ea.value = t.value.chart.userOptions.showOnChartHover, Nl.value = t.value.chart.userOptions.keepStateOnChartLeave, dl.value = !t.value.chart.userOptions.showOnChartHover, Kt();
2405
+ }), ko(h.dataset) || (_t.value = t.value.loading), ea.value = t.value.chart.userOptions.showOnChartHover, Pl.value = t.value.chart.userOptions.keepStateOnChartLeave, hl.value = !t.value.chart.userOptions.showOnChartHover, Kt();
2406
2406
  const l = 12;
2407
2407
  if (t.value.responsive) {
2408
2408
  const e = Ee.value.parentNode;
@@ -2418,13 +2418,13 @@ const _n = {
2418
2418
  ft.value && (F = ft.value.getBoundingClientRect().height);
2419
2419
  let te = 0;
2420
2420
  St.value && (te = St.value.getBoundingClientRect().height), H.value = u - o - A - E - F - te - l, le.value = a, nt.value = `0 0 ${le.value < 0 ? 10 : le.value} ${H.value < 0 ? 10 : H.value}`, ao();
2421
- const z = new ResizeObserver((G) => {
2421
+ const T = new ResizeObserver((G) => {
2422
2422
  for (const R of G)
2423
2423
  t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, He.value && He.value.$el ? E = He.value.$el.getBoundingClientRect().height : E = 0, Pe.value ? A = Pe.value.getBoundingClientRect().height : A = 0, ft.value ? F = ft.value.getBoundingClientRect().height : F = 0, St.value ? te = St.value.getBoundingClientRect().height : te = 0, requestAnimationFrame(() => {
2424
2424
  H.value = R.contentRect.height - o - A - E - F - te - l, le.value = R.contentBoxSize[0].inlineSize, nt.value = `0 0 ${le.value < 0 ? 10 : le.value} ${H.value < 0 ? 10 : H.value}`, ao();
2425
2425
  });
2426
2426
  });
2427
- gt.value = z, ne.value = e, z.observe(e);
2427
+ gt.value = T, ne.value = e, T.observe(e);
2428
2428
  } else
2429
2429
  H.value = t.value.chart.height, le.value = t.value.chart.width, C.value.dataLabels = t.value.chart.grid.labels.fontSize, C.value.yAxis = t.value.chart.grid.labels.axis.fontSize, C.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, C.value.plotLabels = t.value.chart.labels.fontSize, Xe.value.plot = t.value.plot.radius, Xe.value.line = t.value.line.radius, nt.value = `0 0 ${le.value} ${H.value}`;
2430
2430
  }
@@ -2434,8 +2434,8 @@ const _n = {
2434
2434
  y: l.clientY
2435
2435
  };
2436
2436
  }
2437
- Sl(() => {
2438
- Ca(), xl(), document.addEventListener("mousemove", oo, { passive: !0 }), document.addEventListener("scroll", fe, { passive: !0 });
2437
+ $l(() => {
2438
+ Ca(), bl(), document.addEventListener("mousemove", oo, { passive: !0 }), document.addEventListener("scroll", fe, { passive: !0 });
2439
2439
  }), rl(() => {
2440
2440
  document.removeEventListener("scroll", fe, { passive: !0 }), document.removeEventListener("mousemove", oo, { passive: !0 }), gt.value && (gt.value.unobserve(ne.value), gt.value.disconnect(), gt.value = null);
2441
2441
  }), yn({
@@ -2461,7 +2461,7 @@ const _n = {
2461
2461
  const l = Eo(), s = 200, e = Math.max(1, I.value), u = c.value.width / e, r = c.value.left + Bo.value * u + u / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, P = c.value.right - (s + l) / 2, E = Math.max(o, Math.min(r, P));
2462
2462
  return U(E);
2463
2463
  }
2464
- Sl(() => {
2464
+ $l(() => {
2465
2465
  let l = null, s = null;
2466
2466
  const e = (r) => {
2467
2467
  cancelAnimationFrame(s), s = requestAnimationFrame(() => {
@@ -2472,7 +2472,7 @@ const _n = {
2472
2472
  o && e(o.contentRect.width || 200);
2473
2473
  }), a = ho((r) => {
2474
2474
  const o = no.value;
2475
- l && l !== o && (u.unobserve(l), l = null), o && o !== l && (Kl(() => {
2475
+ l && l !== o && (u.unobserve(l), l = null), o && o !== l && (Jl(() => {
2476
2476
  o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
2477
2477
  }), u.observe(o), l = o), r(() => {
2478
2478
  l && (u.unobserve(l), l = null);
@@ -2505,7 +2505,7 @@ const _n = {
2505
2505
  console.warn("Custom format cannot be applied on timeTag."), da.value = !1;
2506
2506
  }
2507
2507
  if (!da.value)
2508
- return [null, void 0].includes(S.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? pl.value(l + p.value.start, t.value.chart.timeTag.timeFormat) : S.value[l].text;
2508
+ return [null, void 0].includes(S.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? kl.value(l + p.value.start, t.value.chart.timeTag.timeFormat) : S.value[l].text;
2509
2509
  });
2510
2510
  mt(() => h.dataset, (l) => {
2511
2511
  Array.isArray(l) && l.length > 0 && (_t.value = !1), Re.value = Math.max(...Me.value.map((s) => ut(s.series).length)), p.value = {
@@ -2513,7 +2513,7 @@ const _n = {
2513
2513
  end: Re.value
2514
2514
  }, Ql.value += 1, xt.value += 1, Ft();
2515
2515
  }, { deep: !0 }), mt(() => h.config, (l) => {
2516
- xe.value || (t.value = Fl()), Ca(), Il.value += 1, Tl.value += 1, Kt(), Ft();
2516
+ xe.value || (t.value = Rl()), Ca(), Nl.value += 1, Il.value += 1, Kt(), Ft();
2517
2517
  }, { deep: !0 });
2518
2518
  const Aa = y(!1);
2519
2519
  function uo() {
@@ -2525,19 +2525,19 @@ const _n = {
2525
2525
  const s = l.getBoundingClientRect();
2526
2526
  Aa.value = s.width > 2 && s.height > 2;
2527
2527
  }
2528
- Sl(() => {
2528
+ $l(() => {
2529
2529
  uo();
2530
2530
  const l = new ResizeObserver(() => {
2531
- uo(), Aa.value && (Ca(), Ft(), xl());
2531
+ uo(), Aa.value && (Ca(), Ft(), bl());
2532
2532
  });
2533
2533
  Ee.value?.parentNode && l.observe(Ee.value.parentNode);
2534
2534
  }), mt(t, () => {
2535
2535
  Kt();
2536
2536
  }, { immediate: !0 });
2537
- const Yl = x(() => {
2537
+ const Gl = x(() => {
2538
2538
  const l = t.value.table.useDialog && !t.value.showTable, s = k.value.showTable;
2539
2539
  return {
2540
- component: l ? _l : $n,
2540
+ component: l ? Ml : $n,
2541
2541
  title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
2542
2542
  props: l ? {
2543
2543
  backgroundColor: t.value.table.th.backgroundColor,
@@ -2568,7 +2568,7 @@ const _n = {
2568
2568
  t.value.showTable || (l && t.value.table.useDialog && je.value ? je.value.open() : je.value && je.value.close && je.value.close());
2569
2569
  });
2570
2570
  function so() {
2571
- k.value.showTable = !1, Al.value && Al.value.setTableIconState(!1);
2571
+ k.value.showTable = !1, zl.value && zl.value.setTableIconState(!1);
2572
2572
  }
2573
2573
  return wa({
2574
2574
  getData: zo,
@@ -2614,7 +2614,7 @@ const _n = {
2614
2614
  style: L(`font-family:${t.value.chart.fontFamily}`)
2615
2615
  }, [
2616
2616
  (n(), lt(kn, {
2617
- key: `title_${Il.value}`,
2617
+ key: `title_${Nl.value}`,
2618
2618
  config: {
2619
2619
  title: {
2620
2620
  cy: "xy-div-title",
@@ -2630,10 +2630,10 @@ const _n = {
2630
2630
  w("div", {
2631
2631
  id: `legend-top-${Z.value}`
2632
2632
  }, null, 8, gi),
2633
- t.value.chart.userOptions.show && (Nl.value || dl.value) ? (n(), lt(v(ge), {
2633
+ t.value.chart.userOptions.show && (Pl.value || hl.value) ? (n(), lt(v(ge), {
2634
2634
  ref_key: "userOptionsRef",
2635
- ref: Al,
2636
- key: `user_options_${zl.value}`,
2635
+ ref: zl,
2636
+ key: `user_options_${Tl.value}`,
2637
2637
  backgroundColor: t.value.chart.backgroundColor,
2638
2638
  color: t.value.chart.color,
2639
2639
  isPrinting: v(et),
@@ -2668,7 +2668,7 @@ const _n = {
2668
2668
  onToggleTooltip: to,
2669
2669
  onToggleAnnotator: m,
2670
2670
  style: L({
2671
- visibility: Nl.value ? dl.value ? "visible" : "hidden" : "visible"
2671
+ visibility: Pl.value ? hl.value ? "visible" : "hidden" : "visible"
2672
2672
  })
2673
2673
  }, mo({ _: 2 }, [
2674
2674
  l.$slots.menuIcon ? {
@@ -2764,7 +2764,7 @@ const _n = {
2764
2764
  }, [
2765
2765
  w("g", {
2766
2766
  ref_key: "G",
2767
- ref: Ll,
2767
+ ref: Cl,
2768
2768
  class: "vue-data-ui-g"
2769
2769
  }, [
2770
2770
  sl(v(wt)),
@@ -2793,7 +2793,7 @@ const _n = {
2793
2793
  "stroke-linecap": "round",
2794
2794
  style: { animation: "none !important" }
2795
2795
  }, null, 8, ki)) : g("", !0),
2796
- k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), i(b, { key: 2 }, M(Xl.value, (e) => (n(), i("g", null, [
2796
+ k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), i(b, { key: 2 }, M(Yl.value, (e) => (n(), i("g", null, [
2797
2797
  e.id === O.value && e.yLabels.length ? (n(!0), i(b, { key: 0 }, M(e.yLabels, (u) => (n(), i("line", {
2798
2798
  x1: c.value.left + ie.value,
2799
2799
  x2: c.value.right - ie.value,
@@ -3077,8 +3077,8 @@ const _n = {
3077
3077
  ]),
3078
3078
  e.plots.length > 1 ? (n(), i("line", {
3079
3079
  key: 0,
3080
- x1: v(ue)(e.plots).x1 + yl(),
3081
- x2: v(ue)(e.plots).x2 + yl(),
3080
+ x1: v(ue)(e.plots).x1 + pl(),
3081
+ x2: v(ue)(e.plots).x2 + pl(),
3082
3082
  y1: v(j)(v(ue)(e.plots).y1),
3083
3083
  y2: v(j)(v(ue)(e.plots).y2),
3084
3084
  "stroke-width": 1,
@@ -3089,7 +3089,7 @@ const _n = {
3089
3089
  e.plots.length > 1 ? (n(), i("text", {
3090
3090
  key: 1,
3091
3091
  "text-anchor": "middle",
3092
- x: v(ue)(e.plots).x2 + yl(),
3092
+ x: v(ue)(e.plots).x2 + pl(),
3093
3093
  y: v(ue)(e.plots).y2 - 6,
3094
3094
  "font-size": C.value.plotLabels,
3095
3095
  fill: e.color
@@ -3141,10 +3141,10 @@ const _n = {
3141
3141
  t.value.chart.grid.labels.show ? (n(), i("g", {
3142
3142
  key: 5,
3143
3143
  ref_key: "scaleLabels",
3144
- ref: Cl
3144
+ ref: Al
3145
3145
  }, [
3146
3146
  k.value.useIndividualScale ? (n(), i(b, { key: 0 }, [
3147
- (n(!0), i(b, null, M(Xl.value, (e) => (n(), i("g", null, [
3147
+ (n(!0), i(b, null, M(Yl.value, (e) => (n(), i("g", null, [
3148
3148
  w("line", {
3149
3149
  x1: e.x + ie.value - c.value.individualOffsetX,
3150
3150
  x2: e.x + ie.value - c.value.individualOffsetX,
@@ -3156,7 +3156,7 @@ const _n = {
3156
3156
  style: L(`opacity:${O.value ? O.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3157
3157
  }, null, 12, cu)
3158
3158
  ]))), 256)),
3159
- (n(!0), i(b, null, M(Xl.value, (e) => (n(), i("g", {
3159
+ (n(!0), i(b, null, M(Yl.value, (e) => (n(), i("g", {
3160
3160
  style: L(`opacity:${O.value ? O.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
3161
3161
  }, [
3162
3162
  w("text", {
@@ -3477,7 +3477,7 @@ const _n = {
3477
3477
  }, [
3478
3478
  a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || D.value !== null && D.value === r) && t.value.bar.labels.show ? (n(), i("text", {
3479
3479
  key: 0,
3480
- x: k.value.useIndividualScale && k.value.isStacked ? a.x + ve.value.line / 2 : ia(a) + yl() / 2 - ua.value / 2,
3480
+ x: k.value.useIndividualScale && k.value.isStacked ? a.x + ve.value.line / 2 : ia(a) + pl() / 2 - ua.value / 2,
3481
3481
  y: v(U)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
3482
3482
  "text-anchor": "middle",
3483
3483
  "font-size": C.value.plotLabels,
@@ -3499,7 +3499,7 @@ const _n = {
3499
3499
  ) : ""), 13, Wu)) : g("", !0),
3500
3500
  a && t.value.bar.serieName.show ? (n(), i("text", {
3501
3501
  key: 1,
3502
- x: k.value.useIndividualScale && k.value.isStacked ? a.x + ve.value.line / 2 : a.x + yl() * 1.1,
3502
+ x: k.value.useIndividualScale && k.value.isStacked ? a.x + ve.value.line / 2 : a.x + pl() * 1.1,
3503
3503
  y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
3504
3504
  "text-anchor": "middle",
3505
3505
  "font-size": C.value.plotLabels,
@@ -3799,7 +3799,7 @@ const _n = {
3799
3799
  ], 64))), 128)),
3800
3800
  k.value.useIndividualScale && !k.value.isStacked ? (n(), i(b, { key: 13 }, [
3801
3801
  w("defs", null, [
3802
- (n(!0), i(b, null, M(Xl.value, (e, u) => (n(), i("linearGradient", {
3802
+ (n(!0), i(b, null, M(Yl.value, (e, u) => (n(), i("linearGradient", {
3803
3803
  id: `individual_scale_gradient_${Z.value}_${u}`,
3804
3804
  x1: "0%",
3805
3805
  x2: "100%",
@@ -3818,7 +3818,7 @@ const _n = {
3818
3818
  }, null, 8, hs)
3819
3819
  ], 8, vs))), 256))
3820
3820
  ]),
3821
- (n(!0), i(b, null, M(Xl.value, (e, u) => (n(), i("rect", {
3821
+ (n(!0), i(b, null, M(Yl.value, (e, u) => (n(), i("rect", {
3822
3822
  x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + ie.value - c.value.individualOffsetX,
3823
3823
  y: c.value.top,
3824
3824
  width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
@@ -3855,7 +3855,7 @@ const _n = {
3855
3855
  ref_key: "timeLabelsEls",
3856
3856
  ref: _e
3857
3857
  }, [
3858
- l.$slots["time-label"] ? (n(!0), i(b, { key: 0 }, M(gl.value, (e, u) => ee(l.$slots, "time-label", Wt({
3858
+ l.$slots["time-label"] ? (n(!0), i(b, { key: 0 }, M(xl.value, (e, u) => ee(l.$slots, "time-label", Wt({
3859
3859
  key: `time_label_${e.id}`,
3860
3860
  ref_for: !0
3861
3861
  }, {
@@ -3868,7 +3868,7 @@ const _n = {
3868
3868
  content: e.text,
3869
3869
  textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3870
3870
  show: e && e.text
3871
- }), void 0, !0)), 128)) : (n(!0), i(b, { key: 1 }, M(gl.value, (e, u) => (n(), i("g", {
3871
+ }), void 0, !0)), 128)) : (n(!0), i(b, { key: 1 }, M(xl.value, (e, u) => (n(), i("g", {
3872
3872
  key: `time_label_${u}`
3873
3873
  }, [
3874
3874
  e && e.text ? (n(), i(b, { key: 0 }, [
@@ -3890,7 +3890,7 @@ const _n = {
3890
3890
  x: 0,
3891
3891
  y: 0
3892
3892
  }),
3893
- onClick: () => Bl(e, u)
3893
+ onClick: () => El(e, u)
3894
3894
  }, null, 12, bs)) : (n(), i("text", {
3895
3895
  key: 0,
3896
3896
  class: "vue-data-ui-time-label",
@@ -3901,7 +3901,7 @@ const _n = {
3901
3901
  style: L({
3902
3902
  cursor: Vt() ? "pointer" : "default"
3903
3903
  }),
3904
- onClick: () => Bl(e, u)
3904
+ onClick: () => El(e, u)
3905
3905
  }, re(e.text || ""), 13, xs))
3906
3906
  ], 64)) : g("", !0)
3907
3907
  ]))), 128))
@@ -3983,7 +3983,7 @@ const _n = {
3983
3983
  }, null, 8, Ls)
3984
3984
  ])) : g("", !0)
3985
3985
  ])) : g("", !0),
3986
- Rl.value ? (n(), i("rect", Wt({ key: 2 }, ta.value, {
3986
+ Vl.value ? (n(), i("rect", Wt({ key: 2 }, ta.value, {
3987
3987
  "data-start": p.value.start,
3988
3988
  "data-end": p.value.end
3989
3989
  }), null, 16, Cs)) : g("", !0),
@@ -4002,7 +4002,7 @@ const _n = {
4002
4002
  [D.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (n(), i("div", {
4003
4003
  key: 0,
4004
4004
  ref_for: !0,
4005
- ref: (o) => fl(u, r, o, "right", "line"),
4005
+ ref: (o) => gl(u, r, o, "right", "line"),
4006
4006
  class: "vue-ui-xy-tag",
4007
4007
  "data-tag": "right",
4008
4008
  style: L({
@@ -4054,7 +4054,7 @@ const _n = {
4054
4054
  [D.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (n(), i("div", {
4055
4055
  key: 1,
4056
4056
  ref_for: !0,
4057
- ref: (o) => fl(u, r, o, "left", "line"),
4057
+ ref: (o) => gl(u, r, o, "left", "line"),
4058
4058
  class: "vue-ui-xy-tag",
4059
4059
  "data-tag": "left",
4060
4060
  style: L({
@@ -4114,7 +4114,7 @@ const _n = {
4114
4114
  [D.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (n(), i("div", {
4115
4115
  key: 0,
4116
4116
  ref_for: !0,
4117
- ref: (o) => fl(u, r, o, "right", "plot"),
4117
+ ref: (o) => gl(u, r, o, "right", "plot"),
4118
4118
  class: "vue-ui-xy-tag",
4119
4119
  "data-tag": "right",
4120
4120
  style: L({
@@ -4166,7 +4166,7 @@ const _n = {
4166
4166
  [D.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (n(), i("div", {
4167
4167
  key: 1,
4168
4168
  ref_for: !0,
4169
- ref: (o) => fl(u, r, o, "left", "plot"),
4169
+ ref: (o) => gl(u, r, o, "left", "plot"),
4170
4170
  class: "vue-ui-xy-tag",
4171
4171
  "data-tag": "left",
4172
4172
  style: L({
@@ -4218,7 +4218,7 @@ const _n = {
4218
4218
  ], 64))), 128))
4219
4219
  ], 64))), 128)),
4220
4220
  t.value.chart.zoom.preview.enable ? (n(), i(b, { key: 5 }, [
4221
- t.value.chart.zoom.show && Re.value > 6 && Nt.value && Dl.value ? (n(), lt(mi, {
4221
+ t.value.chart.zoom.show && Re.value > 6 && Nt.value && Wl.value ? (n(), lt(mi, {
4222
4222
  key: 0,
4223
4223
  ref_key: "chartSlicer",
4224
4224
  ref: He,
@@ -4263,10 +4263,10 @@ const _n = {
4263
4263
  cutNullValues: t.value.line.cutNullValues,
4264
4264
  onReset: Pa,
4265
4265
  onTrapMouse: yt,
4266
- onFutureStart: s[1] || (s[1] = (e) => Vl("start", e)),
4267
- onFutureEnd: s[2] || (s[2] = (e) => Vl("end", e)),
4268
- timeLabels: T.value,
4269
- isPreview: Rl.value
4266
+ onFutureStart: s[1] || (s[1] = (e) => Ol("start", e)),
4267
+ onFutureEnd: s[2] || (s[2] = (e) => Ol("end", e)),
4268
+ timeLabels: z.value,
4269
+ isPreview: Vl.value
4270
4270
  }, {
4271
4271
  "reset-action": we(({ reset: e }) => [
4272
4272
  ee(l.$slots, "reset-action", At(Ht({ reset: e })), void 0, !0)
@@ -4412,7 +4412,7 @@ const _n = {
4412
4412
  ee(l.$slots, "source", {}, void 0, !0)
4413
4413
  ], 512)) : g("", !0),
4414
4414
  sl(v(he), {
4415
- show: k.value.showTooltip && vl.value,
4415
+ show: k.value.showTooltip && dl.value,
4416
4416
  backgroundColor: t.value.chart.tooltip.backgroundColor,
4417
4417
  color: t.value.chart.tooltip.color,
4418
4418
  fontSize: t.value.chart.tooltip.fontSize,
@@ -4439,7 +4439,7 @@ const _n = {
4439
4439
  ]),
4440
4440
  _: 3
4441
4441
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
4442
- Nt.value && t.value.chart.userOptions.buttons.table ? (n(), lt(Zo(Yl.value.component), Wt({ key: 9 }, Yl.value.props, {
4442
+ Nt.value && t.value.chart.userOptions.buttons.table ? (n(), lt(Zo(Gl.value.component), Wt({ key: 9 }, Gl.value.props, {
4443
4443
  ref_key: "tableUnit",
4444
4444
  ref: je,
4445
4445
  onClose: so
@@ -4466,17 +4466,17 @@ const _n = {
4466
4466
  }, null, 8, ["stroke"])
4467
4467
  ])
4468
4468
  ]),
4469
- We.value ? (n(), lt(v($l), {
4469
+ We.value ? (n(), lt(v(_l), {
4470
4470
  key: `sparkline_${xt.value}`,
4471
4471
  dataset: Fo.value,
4472
4472
  config: Ro.value
4473
4473
  }, null, 8, ["dataset", "config"])) : (n(), lt(v(ot), {
4474
- key: `table_${Tl.value}`,
4474
+ key: `table_${Il.value}`,
4475
4475
  colNames: va.value.colNames,
4476
4476
  head: va.value.head,
4477
4477
  body: va.value.body,
4478
4478
  config: va.value.config,
4479
- title: t.value.table.useDialog ? "" : Yl.value.title,
4479
+ title: t.value.table.useDialog ? "" : Gl.value.title,
4480
4480
  withCloseButton: !t.value.table.useDialog,
4481
4481
  onClose: so
4482
4482
  }, {
@@ -4500,7 +4500,7 @@ const _n = {
4500
4500
  t.value.table.useDialog ? {
4501
4501
  name: "title",
4502
4502
  fn: we(() => [
4503
- fo(re(Yl.value.title), 1)
4503
+ fo(re(Gl.value.title), 1)
4504
4504
  ]),
4505
4505
  key: "0"
4506
4506
  } : void 0,
@@ -4514,7 +4514,7 @@ const _n = {
4514
4514
  }, [
4515
4515
  sl(v(me), {
4516
4516
  name: "excel",
4517
- stroke: Yl.value.props.color
4517
+ stroke: Gl.value.props.color
4518
4518
  }, null, 8, ["stroke"])
4519
4519
  ])
4520
4520
  ]),