vue-data-ui 3.0.0-next.18 → 3.0.0-next.19

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 (91) hide show
  1. package/dist/{Arrow-DD7UcVVG.js → Arrow-Du7Oun41.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DB16ahPx.js → BaseDraggableDialog-mDvB-SKQ.js} +2 -2
  3. package/dist/{BaseIcon-QW_RwBxU.js → BaseIcon-DBaf7CZo.js} +1 -1
  4. package/dist/{ColorPicker-D2Ln2SMc.js → ColorPicker-BTbYsL5B.js} +2 -2
  5. package/dist/{DataTable-DFE1SX7o.js → DataTable-a6M5WZgq.js} +2 -2
  6. package/dist/{Legend-CZzbGSJ5.js → Legend-smmmcxkA.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CX9GQttP.js → NonSvgPenAndPaper-B8M11omE.js} +3 -3
  8. package/dist/{PackageVersion-OcsR31Tn.js → PackageVersion-z-AaBhGy.js} +1 -1
  9. package/dist/{PenAndPaper-BvJs1gwT.js → PenAndPaper-Cz1sH2B9.js} +3 -3
  10. package/dist/{Shape-DDlEMmEH.js → Shape-Cw1QEmuY.js} +1 -1
  11. package/dist/{Slicer-9fKW4jdg.js → Slicer-D_GQ8Q7Q.js} +2 -2
  12. package/dist/{SparkTooltip-ihDtFBfE.js → SparkTooltip-YPvXoNuW.js} +1 -1
  13. package/dist/{Title-BSMIXsO-.js → Title-CaUF6nMq.js} +1 -1
  14. package/dist/{Tooltip-5k_LVW7M.js → Tooltip-C-IFZ_Cl.js} +1 -1
  15. package/dist/{UserOptions-cQVcNvL4.js → UserOptions-Cxi8gt7k.js} +2 -2
  16. package/dist/{dom-to-png-i9Xk-UM3.js → dom-to-png-D6nzBI75.js} +1 -1
  17. package/dist/{img-BIkc_Mwq.js → img-C20utkHM.js} +1 -1
  18. package/dist/{index-CtbOohBL.js → index-FjgmmG8A.js} +657 -652
  19. package/dist/{pdf-CpR3xSEi.js → pdf-CChaLFFN.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +1 -0
  22. package/dist/types/vue-data-ui.d.ts +1 -0
  23. package/dist/{useNestedProp-CX2Zg_2q.js → useNestedProp-BDdm3nHS.js} +1 -1
  24. package/dist/{usePrinter-CffQcXmv.js → usePrinter-B_hAcy8n.js} +2 -2
  25. package/dist/useTimeLabelCollider-V7AOiPLB.js +71 -0
  26. package/dist/{vue-data-ui-CVqoNcKq.js → vue-data-ui-DlwCCEl1.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-C0XYdF44.js → vue-ui-3d-bar-DXhp7R5x.js} +6 -6
  29. package/dist/{vue-ui-accordion-Be4mB7Ie.js → vue-ui-accordion-CZq6kRhc.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Buitqn-K.js → vue-ui-age-pyramid-YpCug_TG.js} +6 -6
  31. package/dist/{vue-ui-annotator-yIgGpx-u.js → vue-ui-annotator-BMvQs2X3.js} +2 -2
  32. package/dist/{vue-ui-bullet-L-8-mMWt.js → vue-ui-bullet-CK-abEDl.js} +7 -7
  33. package/dist/{vue-ui-candlestick-DrhSO36T.js → vue-ui-candlestick-BB-NaAYg.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-ER0V96Qc.js → vue-ui-carousel-table-CfrXp6Mq.js} +4 -4
  35. package/dist/{vue-ui-chestnut-PegyR48K.js → vue-ui-chestnut-DonDoEdX.js} +5 -5
  36. package/dist/{vue-ui-chord-CjL4qo4h.js → vue-ui-chord-5JUGEMyF.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-C2leU1Bj.js → vue-ui-circle-pack-bqjD9e2p.js} +6 -6
  38. package/dist/{vue-ui-cursor-DkGs5Y-h.js → vue-ui-cursor-DvRP8yEm.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BKqRkr9F.js → vue-ui-dashboard-CCFqI5yc.js} +62 -62
  40. package/dist/{vue-ui-digits-DN3wuHku.js → vue-ui-digits-D5PpC1sS.js} +2 -2
  41. package/dist/{vue-ui-donut-prM0EVV3.js → vue-ui-donut-BzuTDq5J.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-CYAdg1b9.js → vue-ui-donut-evolution-CjT08zUf.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-BEsApAKs.js → vue-ui-dumbbell-BReVcqdv.js} +7 -7
  44. package/dist/{vue-ui-flow-CGrlxMx4.js → vue-ui-flow-DeV051Jg.js} +7 -7
  45. package/dist/{vue-ui-funnel-DsHK6ivN.js → vue-ui-funnel-DShOLt1K.js} +6 -6
  46. package/dist/{vue-ui-galaxy-DmxKgB8s.js → vue-ui-galaxy-B9xb-1nu.js} +5 -5
  47. package/dist/{vue-ui-gauge-CIwErB4d.js → vue-ui-gauge-CFGSYms2.js} +6 -6
  48. package/dist/{vue-ui-gizmo-sEqCNBeP.js → vue-ui-gizmo-BMcxYmYZ.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BUb2YutF.js → vue-ui-heatmap-D99vGXoS.js} +7 -7
  50. package/dist/{vue-ui-history-plot-CdTPGm7T.js → vue-ui-history-plot-2WY4RzzB.js} +7 -7
  51. package/dist/{vue-ui-kpi-Qas3m2fP.js → vue-ui-kpi-Dux1qaR2.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-VBkgnpvb.js → vue-ui-mini-loader-Pf3GEw84.js} +2 -2
  53. package/dist/{vue-ui-molecule-n_h5S1AJ.js → vue-ui-molecule-Bi5gtw0E.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-CMYNgfEX.js → vue-ui-mood-radar-D87mMt-6.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-CgtSSnX4.js → vue-ui-nested-donuts-CznWa8y7.js} +9 -9
  56. package/dist/{vue-ui-onion-LJL_vZsd.js → vue-ui-onion-CLzS8HKG.js} +7 -7
  57. package/dist/{vue-ui-parallel-coordinate-plot-CNoQCkn3.js → vue-ui-parallel-coordinate-plot-DncmD9wB.js} +8 -8
  58. package/dist/{vue-ui-quadrant-CHVaCpVU.js → vue-ui-quadrant-DiSIRTFe.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-BVqz0KjK.js → vue-ui-quick-chart-QBMcF3vw.js} +6 -6
  60. package/dist/{vue-ui-radar-DBnbM5-j.js → vue-ui-radar-BiYPoWro.js} +7 -7
  61. package/dist/{vue-ui-rating-UOHVbd2m.js → vue-ui-rating-C2X0z0rR.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C-IvOpnn.js → vue-ui-relation-circle-CwfS8678.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-D45IIlwI.js → vue-ui-ridgeline-BkSE3ztl.js} +8 -8
  64. package/dist/{vue-ui-rings-BlkuuqFG.js → vue-ui-rings-BNc9v6ml.js} +8 -8
  65. package/dist/{vue-ui-scatter-Dyj3ToRI.js → vue-ui-scatter-BGnp0AiW.js} +8 -8
  66. package/dist/{vue-ui-skeleton-QVEczJH-.js → vue-ui-skeleton-CmPv2NS-.js} +3 -3
  67. package/dist/{vue-ui-smiley-DRHcobNq.js → vue-ui-smiley-8-btc7OU.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DXG6rNid.js → vue-ui-spark-trend-Ci6kd6-x.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BKUiiF6a.js → vue-ui-sparkbar-CgIsWKX8.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CVNtaTmQ.js → vue-ui-sparkgauge-BHNhyB-p.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CL-GGXnE.js → vue-ui-sparkhistogram-CBijGaMB.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bo3_0zXP.js → vue-ui-sparkline-D5NXhe9O.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-D-4HcEC5.js → vue-ui-sparkstackbar-BSJJtxZN.js} +3 -3
  74. package/dist/vue-ui-stackbar-CK5IVQdW.js +1354 -0
  75. package/dist/{vue-ui-strip-plot-BReJ8Fu2.js → vue-ui-strip-plot-C7s1v0xg.js} +7 -7
  76. package/dist/{vue-ui-table-BtV6gdr0.js → vue-ui-table-BDf4uuNP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DYt4JuFn.js → vue-ui-table-heatmap-CYx1vBBu.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-orvI51XX.js → vue-ui-table-sparkline-BI_41aWM.js} +4 -4
  79. package/dist/{vue-ui-thermometer-DHYfNI72.js → vue-ui-thermometer-DuiyevA1.js} +6 -6
  80. package/dist/{vue-ui-timer-Db8x7YNB.js → vue-ui-timer-WSCQ4jXU.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-YooZQ9m2.js → vue-ui-tiremarks-0bHRDpa_.js} +6 -6
  82. package/dist/{vue-ui-treemap-DoWDzO-L.js → vue-ui-treemap-DmOUbd_R.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-CW5JXp4c.js → vue-ui-vertical-bar-8cGvw0YE.js} +9 -9
  84. package/dist/{vue-ui-waffle-D-KCbDMp.js → vue-ui-waffle-BShLlmvx.js} +8 -8
  85. package/dist/{vue-ui-wheel-BKb5Eue9.js → vue-ui-wheel-C6A4O8km.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-DZx1tacb.js → vue-ui-word-cloud-Bo2dL9jf.js} +6 -6
  87. package/dist/{vue-ui-world-BONqyLSN.js → vue-ui-world-C4ynmMvV.js} +6 -6
  88. package/dist/{vue-ui-xy-DvQtTYuV.js → vue-ui-xy-BdY2BEJD.js} +810 -872
  89. package/dist/{vue-ui-xy-canvas-C1WcRAzL.js → vue-ui-xy-canvas-D8YONoaK.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/vue-ui-stackbar-f-WRJlR7.js +0 -1207
@@ -1,82 +1,16 @@
1
- import { watch as Gl, nextTick as fl, defineAsyncComponent as De, useSlots as Tt, getCurrentInstance as Ot, ref as w, computed as L, onMounted as Za, toRefs as Nt, watchEffect as Vt, onBeforeUnmount as Ja, createElementBlock as i, openBlock as u, normalizeStyle as C, normalizeClass as tl, createBlock as Oe, createCommentVNode as d, createVNode as Al, unref as v, createSlots as Pt, withCtx as ie, renderSlot as U, normalizeProps as ol, guardReactiveProps as sl, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as oe, mergeProps as va, withDirectives as Ht, vModelCheckbox as Rt, createTextVNode as Bt } from "vue";
2
- import { u as Yt, c as da, e as ha, A as Ft, a5 as qe, b as Et, D as Ml, ab as ul, d as Wt, p as Xt, ac as El, aa as R, ad as Gt, v as T, ae as Ka, V as Qa, af as ja, U as et, ag as Dt, ah as lt, ai as at, i as ne, x as qt, y as Ut, _ as tt, R as Ne, f as pe, w as rl, s as Me, a8 as G, L as Zt, F as Ue, aj as Wl, I as Jt, ak as Ze, C as Fe, t as Kt, a as Qt, o as ot, q as jt, r as eo, E as hl } from "./index-CtbOohBL.js";
3
- import { u as fa } from "./useNestedProp-CX2Zg_2q.js";
1
+ import { defineAsyncComponent as Be, useSlots as Tt, getCurrentInstance as Ot, ref as w, computed as L, onMounted as Ha, toRefs as Nt, watchEffect as Vt, onBeforeUnmount as Ra, watch as Kl, createElementBlock as i, openBlock as u, normalizeStyle as C, normalizeClass as Ue, createBlock as Me, createCommentVNode as d, createVNode as xl, unref as v, createSlots as Pt, withCtx as oe, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as ee, mergeProps as Ql, withDirectives as Ht, vModelCheckbox as Rt, createTextVNode as Bt, nextTick as bl } from "vue";
2
+ import { u as Yt, c as jl, e as ea, A as Ft, a5 as Ye, b as Et, D as ml, ab as Ke, d as Wt, p as Xt, ac as Ml, aa as R, ad as Gt, v as T, ae as Ba, V as Ya, af as Fa, U as Ea, ag as Dt, ah as Wa, ai as Xa, i as se, x as qt, y as Ut, _ as Ga, R as ze, f as xe, w as Qe, s as we, a8 as X, L as Zt, F as Fe, aj as zl, I as Jt, ak as Ee, C as Ne, t as Kt, a as Qt, o as Da, q as jt, r as eo, E as ol } from "./index-FjgmmG8A.js";
3
+ import { u as la } from "./useNestedProp-BDdm3nHS.js";
4
4
  import { u as lo } from "./useTimeLabels-DFkUfjfs.js";
5
- import { S as ao } from "./Slicer-9fKW4jdg.js";
6
- import to from "./Title-BSMIXsO-.js";
7
- import { _ as Xl } from "./Shape-DDlEMmEH.js";
8
- import oo from "./img-BIkc_Mwq.js";
9
- import { u as so } from "./usePrinter-CffQcXmv.js";
10
- import { u as uo, B as ro } from "./useLoading-Bt5Doa8m.js";
11
- import { t as io } from "./useResponsive-DfdjqQps.js";
12
- import { _ as no } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- function co({
14
- timeLabelsEls: gl,
15
- timeLabels: Dl,
16
- slicer: zl,
17
- configRef: x,
18
- rotationPath: il,
19
- autoRotatePath: ql,
20
- isAutoSize: Ul,
21
- setViewBox: Cl,
22
- forceResizeObserver: Il,
23
- callback: nl
24
- }) {
25
- function xl(Q, j) {
26
- return j.reduce((F, J) => F && F[J], Q);
27
- }
28
- function Tl(Q, j, F) {
29
- j.slice(0, -1).reduce((J, ke) => J[ke], Q)[j.slice(-1)] = F;
30
- }
31
- function bl(Q) {
32
- const j = /translate\(\s*([^\s,]+)\s*,\s*([^\s,]+)\s*\)/.exec(Q);
33
- return j ? {
34
- x: parseFloat(j[1]),
35
- y: parseFloat(j[2])
36
- } : { x: 0, y: 0 };
37
- }
38
- async function cl() {
39
- await fl();
40
- const Q = gl.value;
41
- if (!Q) return;
42
- const F = Array.from(Q.querySelectorAll(".vue-data-ui-time-label")).map((Pe) => ({
43
- ...bl(Pe.getAttribute("transform")),
44
- width: Pe.getBBox().width
45
- }));
46
- let J = !1;
47
- const ke = 4;
48
- for (let Pe = 0; Pe < F.length && !J; Pe += 1)
49
- for (let Je = Pe + 1; Je < F.length; Je += 1) {
50
- const Ke = F[Pe], ze = F[Je];
51
- if (!(Ke.x + Ke.width + ke < ze.x || ze.x + ze.width + ke < Ke.x)) {
52
- J = !0;
53
- break;
54
- }
55
- }
56
- const Ve = xl(x.value, il);
57
- J && !Ve ? (Tl(x.value, il, -30.0001), nl && nl({ collision: J }), Ul.value && Cl && Il && (Cl(), Il())) : !J && Ve === -30.0001 && (Tl(x.value, il, 0), nl && nl({ collision: J }));
58
- }
59
- function Zl(Q, j) {
60
- let F;
61
- return (...J) => {
62
- clearTimeout(F), F = setTimeout(() => Q(...J), j);
63
- };
64
- }
65
- const ml = Zl(cl, 200);
66
- return Gl(
67
- [
68
- () => Dl.value,
69
- () => xl(x.value, il),
70
- () => zl.value.start,
71
- () => zl.value.end
72
- ],
73
- async ([, , Q, j], [, , F, J]) => {
74
- if (!xl(x.value, ql)) return;
75
- Q !== F || j !== J ? ml() : await cl();
76
- },
77
- { immediate: !0 }
78
- ), { detectTimeLabelCollision: cl };
79
- }
5
+ import { u as ao } from "./useTimeLabelCollider-V7AOiPLB.js";
6
+ import { S as to } from "./Slicer-D_GQ8Q7Q.js";
7
+ import oo from "./Title-CaUF6nMq.js";
8
+ import { _ as Cl } from "./Shape-Cw1QEmuY.js";
9
+ import so from "./img-C20utkHM.js";
10
+ import { u as uo } from "./usePrinter-B_hAcy8n.js";
11
+ import { u as ro, B as io } from "./useLoading-Bt5Doa8m.js";
12
+ import { t as no } from "./useResponsive-DfdjqQps.js";
13
+ import { _ as co } from "./_plugin-vue_export-helper-CHgC5LLL.js";
80
14
  const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "height"], go = { key: 1 }, xo = { class: "vue-ui-xy-grid" }, bo = ["stroke", "x1", "x2", "y1", "y2"], mo = ["stroke", "x1", "x2", "y1", "y2"], yo = { key: 1 }, po = ["x1", "x2", "y1", "y2", "stroke"], ko = ["x1", "x2", "y1", "y2", "stroke"], _o = ["x1", "x2", "y1", "y2", "stroke"], wo = { key: 3 }, So = ["d", "stroke"], $o = { key: 4 }, Lo = ["d", "stroke"], Ao = ["id"], Mo = ["stop-color"], zo = ["stop-color"], Co = ["stop-color"], Io = ["id"], To = ["stop-color"], Oo = ["stop-color"], No = ["stop-color"], Vo = ["id"], Po = ["stop-color"], Ho = ["stop-color"], Ro = ["id"], Bo = ["stop-color"], Yo = ["stop-color"], Fo = ["id"], Eo = ["stop-color"], Wo = ["stop-color"], Xo = ["x", "y", "height", "width", "fill"], Go = ["x", "y", "width"], Do = { key: 0 }, qo = ["x", "y", "height", "width", "fill"], Uo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jo = ["width", "x", "y"], Ko = { key: 0 }, Qo = ["id"], jo = ["fill"], es = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ls = ["x", "y", "font-size", "fill"], as = ["stroke", "x1", "x2", "y1", "y2"], ts = { key: 3 }, os = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ss = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rs = ["fill", "font-size", "transform"], is = ["x1", "x2", "y1", "y2", "stroke"], ns = ["x", "y", "font-size", "fill"], cs = ["x1", "x2", "y1", "y2", "stroke"], vs = ["x", "y", "font-size", "fill"], ds = ["width", "x", "y"], hs = { style: { width: "100%" } }, fs = { key: 0 }, gs = ["id"], xs = ["fill"], bs = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ms = ["x", "y", "font-size", "fill"], ys = ["d", "stroke", "stroke-width", "stroke-dasharray"], ps = ["d", "stroke", "stroke-width", "stroke-dasharray"], ks = { key: 6 }, _s = { key: 0 }, ws = ["d", "fill"], Ss = ["d", "fill"], $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ms = ["d", "stroke", "stroke-width", "stroke-dasharray"], zs = ["width", "x", "y"], Cs = { style: { width: "100%" } }, Is = { key: 3 }, Ts = ["id"], Os = ["fill"], Ns = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Vs = ["x", "y", "font-size", "fill"], Ps = { key: 7 }, Hs = ["x", "y", "font-size", "fill"], Rs = ["x", "y", "font-size", "fill", "font-weight"], Bs = { key: 8 }, Ys = ["x", "y", "font-size", "fill"], Fs = { key: 9 }, Es = ["x", "y"], Ws = ["innerHTML"], Xs = ["x", "y"], Gs = ["innerHTML"], Ds = ["x1", "x2", "y1", "y2", "stroke"], qs = { key: 10 }, Us = ["x", "y", "font-size", "fill"], Zs = { key: 11 }, Js = ["x", "y"], Ks = ["innerHTML"], Qs = ["x", "y"], js = ["innerHTML"], eu = ["x1", "x2", "y1", "y2", "stroke"], lu = ["x", "y", "font-size", "fill", "innerHTML"], au = ["x", "y", "font-size", "fill", "innerHTML"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["id"], uu = ["stop-color"], ru = ["stop-color"], iu = ["x", "y", "width", "height", "fill", "onMouseenter"], nu = ["font-size", "fill", "transform"], cu = ["x", "y", "font-size", "fill"], vu = ["text-anchor", "font-size", "fill", "transform", "onClick"], du = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], hu = { key: 14 }, fu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], gu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xu = ["y", "x", "width", "height", "fill"], bu = ["id", "x", "y", "font-size", "fill", "text-anchor"], mu = { key: 15 }, yu = ["x", "y", "height", "width", "onMouseenter", "onClick"], pu = {
81
15
  key: 16,
82
16
  style: { "pointer-events": "none" }
@@ -138,65 +72,65 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
138
72
  }
139
73
  },
140
74
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
141
- setup(gl, { expose: Dl, emit: zl }) {
142
- const x = gl, il = De(() => import("./DataTable-DFE1SX7o.js")), ql = De(() => import("./Tooltip-5k_LVW7M.js")), Ul = De(() => import("./UserOptions-cQVcNvL4.js")), Cl = De(() => import("./BaseIcon-QW_RwBxU.js")), Il = De(() => import("./vue-ui-table-sparkline-orvI51XX.js")), nl = De(() => import("./vue-ui-accordion-Be4mB7Ie.js")), xl = De(() => import("./PackageVersion-OcsR31Tn.js")), Tl = De(() => import("./PenAndPaper-BvJs1gwT.js")), bl = zl, cl = Tt(), Zl = Ot(), { vue_ui_xy: ml } = Yt(), Q = w(null), j = w(null), F = w(null), J = w(null), ke = w(null), Ve = w(null), Pe = w(null), Je = w(null), Ke = w(null), ze = w(null), Jl = w(null), Qe = w(null), Kl = w(null), Ql = w(0), M = w(null), ga = w(!0), ge = w(600), se = w(1e3), Ol = w("0 0 1000 600"), st = w({ x: 0, y: 0 }), yl = w({ line: "line", bar: "bar", plot: "plot" }), Nl = w(!1), vl = w(!1), xa = w(!1), _ = w(null), je = w(null), ue = w([]), Z = w(da()), ba = w(0), ma = w(0), ya = w(0), pl = w(!0), jl = w(0), O = w(null), pa = w(!1), ea = w(!0), Vl = w(!0), _e = w(null), He = w({}), Pl = w(null), ut = L(() => ({
143
- height: ge.value,
144
- width: se.value
145
- })), rt = x.config.downsample && x.config.downsample.threshold ? x.config.downsample.threshold : 500, f = w({
75
+ setup(Il, { expose: qa, emit: Ua }) {
76
+ const m = Il, Za = Be(() => import("./DataTable-a6M5WZgq.js")), Ja = Be(() => import("./Tooltip-C-IFZ_Cl.js")), Ka = Be(() => import("./UserOptions-Cxi8gt7k.js")), Qa = Be(() => import("./BaseIcon-DBaf7CZo.js")), ja = Be(() => import("./vue-ui-table-sparkline-BI_41aWM.js")), et = Be(() => import("./vue-ui-accordion-CZq6kRhc.js")), lt = Be(() => import("./PackageVersion-z-AaBhGy.js")), at = Be(() => import("./PenAndPaper-Cz1sH2B9.js")), Tl = Ua, aa = Tt(), tt = Ot(), { vue_ui_xy: Ol } = Yt(), je = w(null), sl = w(null), Se = w(null), el = w(null), ul = w(null), rl = w(null), ot = w(null), Nl = w(null), Vl = w(null), ll = w(null), Pl = w(null), We = w(null), Hl = w(null), Rl = w(0), M = w(null), ta = w(!0), ve = w(600), le = w(1e3), yl = w("0 0 1000 600"), st = w({ x: 0, y: 0 }), il = w({ line: "line", bar: "bar", plot: "plot" }), pl = w(!1), al = w(!1), oa = w(!1), _ = w(null), Xe = w(null), ae = w([]), U = w(jl()), sa = w(0), ua = w(0), ra = w(0), nl = w(!0), Bl = w(0), O = w(null), ia = w(!1), Yl = w(!0), kl = w(!0), be = w(null), Ce = w({}), _l = w(null), ut = L(() => ({
77
+ height: ve.value,
78
+ width: le.value
79
+ })), rt = m.config.downsample && m.config.downsample.threshold ? m.config.downsample.threshold : 500, f = w({
146
80
  dataLabels: { show: !0 },
147
81
  showTooltip: !0,
148
82
  showTable: !1,
149
83
  isStacked: !1,
150
84
  useIndividualScale: !1
151
- }), b = w({
85
+ }), x = w({
152
86
  xAxis: 18,
153
87
  yAxis: 12,
154
88
  dataLabels: 20,
155
89
  plotLabels: 10
156
- }), Ce = w({ plot: 3, line: 3 });
157
- Za(() => {
158
- x.dataset.length && x.dataset.forEach((a, c) => {
159
- [null, void 0].includes(a.series) && ha({
90
+ }), $e = w({ plot: 3, line: 3 });
91
+ Ha(() => {
92
+ m.dataset.length && m.dataset.forEach((a, c) => {
93
+ [null, void 0].includes(a.series) && ea({
160
94
  componentName: "VueUiXy",
161
95
  type: "datasetSerieAttribute",
162
96
  property: "series (number[])",
163
97
  index: c,
164
- debug: Sl.value
98
+ debug: hl.value
165
99
  });
166
100
  });
167
101
  });
168
- function la() {
169
- if (!Object.keys(x.config || {}).length)
170
- return ml;
171
- const a = fa({
172
- userConfig: x.config,
173
- defaultConfig: ml
102
+ function Fl() {
103
+ if (!Object.keys(m.config || {}).length)
104
+ return Ol;
105
+ const a = la({
106
+ userConfig: m.config,
107
+ defaultConfig: Ol
174
108
  });
175
- return x.config && Fe(x.config, "chart.highlightArea") && (Array.isArray(x.config.chart.highlightArea) ? a.chart.highlightArea = x.config.chart.highlightArea : a.chart.highlightArea = [x.config.chart.highlightArea]), x.config && Fe(x.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = x.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, x.config && Fe(x.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = x.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, x.config && Fe(x.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = x.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, x.config && Fe(x.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = x.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, x.config && Fe(x.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = x.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, x.config && x.config.chart.annotations && Array.isArray(x.config.chart.annotations) && x.config.chart.annotations.length ? a.chart.annotations = x.config.chart.annotations.map((c) => fa({
176
- defaultConfig: ml.chart.annotations[0],
109
+ return m.config && Ne(m.config, "chart.highlightArea") && (Array.isArray(m.config.chart.highlightArea) ? a.chart.highlightArea = m.config.chart.highlightArea : a.chart.highlightArea = [m.config.chart.highlightArea]), m.config && Ne(m.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = m.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, m.config && Ne(m.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = m.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, m.config && Ne(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && Ne(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && Ne(m.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = m.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, m.config && m.config.chart.annotations && Array.isArray(m.config.chart.annotations) && m.config.chart.annotations.length ? a.chart.annotations = m.config.chart.annotations.map((c) => la({
110
+ defaultConfig: Ol.chart.annotations[0],
177
111
  userConfig: c
178
- })) : a.chart.annotations = [], x.config && Fe(x.config, "chart.grid.position") && x.config.chart.grid.position === "start" && x.dataset.length && x.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", Fe(x.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), x.config && Fe(x.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = x.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, a.theme ? {
179
- ...fa({
180
- userConfig: Qt.vue_ui_xy[a.theme] || x.config,
112
+ })) : a.chart.annotations = [], m.config && Ne(m.config, "chart.grid.position") && m.config.chart.grid.position === "start" && m.dataset.length && m.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", Ne(m.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), m.config && Ne(m.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = m.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, a.theme ? {
113
+ ...la({
114
+ userConfig: Qt.vue_ui_xy[a.theme] || m.config,
181
115
  defaultConfig: a
182
116
  }),
183
- customPalette: Kt[a.theme] || x.palette
117
+ customPalette: Kt[a.theme] || m.palette
184
118
  } : a;
185
119
  }
186
- const aa = L({
120
+ const El = L({
187
121
  get() {
188
- return !!x.dataset && x.dataset.length;
122
+ return !!m.dataset && m.dataset.length;
189
123
  },
190
124
  set(a) {
191
125
  return a;
192
126
  }
193
- }), l = w(la()), { loading: ta, FINAL_DATASET: we, manualLoading: Hl } = uo({
194
- ...Nt(x),
127
+ }), l = w(Fl()), { loading: Wl, FINAL_DATASET: me, manualLoading: wl } = ro({
128
+ ...Nt(m),
195
129
  FINAL_CONFIG: l,
196
- prepareConfig: la,
130
+ prepareConfig: Fl,
197
131
  callback: () => {
198
132
  Promise.resolve().then(async () => {
199
- await ca();
133
+ await Jl();
200
134
  });
201
135
  },
202
136
  skeletonDataset: [
@@ -249,7 +183,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
249
183
  right: 24
250
184
  },
251
185
  userOptions: { show: !1 },
252
- zoom: { show: !1 }
186
+ zoom: {
187
+ show: !1,
188
+ startIndex: null,
189
+ endIndex: null
190
+ }
253
191
  },
254
192
  bar: {
255
193
  serieName: { show: !1 },
@@ -268,94 +206,94 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
268
206
  }
269
207
  }
270
208
  })
271
- }), Ee = L({
272
- get: () => Math.max(...we.value.map((a) => qe({ data: a.series, threshold: rt }).length)),
209
+ }), Ve = L({
210
+ get: () => Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: rt }).length)),
273
211
  set: (a) => a
274
- }), S = w({ start: 0, end: Ee.value }), { isPrinting: oa, isImaging: ka, generatePdf: _a, generateImage: wa } = so({
275
- elementId: `vue-ui-xy_${Z.value}`,
212
+ }), S = w({ start: 0, end: Ve.value }), { isPrinting: Xl, isImaging: na, generatePdf: ca, generateImage: va } = uo({
213
+ elementId: `vue-ui-xy_${U.value}`,
276
214
  fileName: l.value.chart.title.text || "vue-ui-xy",
277
215
  options: l.value.chart.userOptions.print
278
- }), it = w(!1), Sa = L(() => Et(l.value.customPalette)), Rl = L(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Re.value.filter((a) => !ue.value.includes(a.id)).map((a) => Math.max(...a.series)))), sa = L(() => {
216
+ }), it = w(!1), da = L(() => Et(l.value.customPalette)), Sl = L(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ie.value.filter((a) => !ae.value.includes(a.id)).map((a) => Math.max(...a.series)))), Gl = L(() => {
279
217
  if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
280
218
  return l.value.chart.grid.labels.yAxis.scaleMin;
281
- const a = Math.min(...Re.value.filter((c) => !ue.value.includes(c.id)).map((c) => Math.min(...c.series)));
219
+ const a = Math.min(...Ie.value.filter((c) => !ae.value.includes(c.id)).map((c) => Math.min(...c.series)));
282
220
  return a > 0 ? 0 : a;
283
- }), Se = L(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(sa.value, Rl.value < 0 ? 0 : Rl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : ul(sa.value, Rl.value < 0 ? 0 : Rl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = L(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Se.value.min >= 0 ? 0 : Math.abs(Se.value.min) : -Se.value.min), Re = L(() => ga.value ? we.value.map((a, c) => {
284
- const e = qe({
221
+ }), ye = L(() => l.value.chart.grid.labels.yAxis.useNiceScale ? ml(Gl.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(Gl.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), cl = L(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ye.value.min >= 0 ? 0 : Math.abs(ye.value.min) : -ye.value.min), Ie = L(() => ta.value ? me.value.map((a, c) => {
222
+ const e = Ye({
285
223
  data: a.series,
286
224
  threshold: l.value.downsample.threshold
287
225
  }), s = `uniqueId_${c}`;
288
226
  return {
289
227
  ...a,
290
228
  slotAbsoluteIndex: c,
291
- series: e.map((t) => El(t) ? t : null).slice(S.value.start, S.value.end),
292
- color: Wt(a.color ? a.color : Sa.value[c] ? Sa.value[c] : Xt[c]),
229
+ series: e.map((t) => Ml(t) ? t : null).slice(S.value.start, S.value.end),
230
+ color: Wt(a.color ? a.color : da.value[c] ? da.value[c] : Xt[c]),
293
231
  id: s,
294
232
  scaleLabel: a.scaleLabel || s
295
233
  };
296
- }) : we.value), Be = L(() => Re.value.map((a, c) => ({
234
+ }) : me.value), Te = L(() => Ie.value.map((a, c) => ({
297
235
  absoluteIndex: c,
298
236
  ...a,
299
- series: a.series.map((e) => e + kl.value),
237
+ series: a.series.map((e) => e + cl.value),
300
238
  absoluteValues: a.series,
301
- segregate: () => Pa(a),
302
- isSegregated: ue.value.includes(a.id)
303
- }))), $e = L(() => Re.value.map((a, c) => ({
239
+ segregate: () => Sa(a),
240
+ isSegregated: ae.value.includes(a.id)
241
+ }))), pe = L(() => Ie.value.map((a, c) => ({
304
242
  ...a,
305
- series: a.series.map((e) => e + kl.value),
243
+ series: a.series.map((e) => e + cl.value),
306
244
  absoluteValues: a.series
307
- })).filter((a) => !ue.value.includes(a.id)));
245
+ })).filter((a) => !ae.value.includes(a.id)));
308
246
  function nt() {
309
247
  let a = l.value.chart.grid.labels.axis.yLabelOffsetX;
310
- Jl.value && (a = Array.from(Jl.value.querySelectorAll("text")).reduce((t, r) => {
248
+ Pl.value && (a = Array.from(Pl.value.querySelectorAll("text")).reduce((t, r) => {
311
249
  const o = r.getComputedTextLength();
312
250
  return o > t ? o : t;
313
251
  }, 0));
314
- const c = Ke.value ? Ke.value.getBoundingClientRect().width : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
252
+ const c = Vl.value ? Vl.value.getBoundingClientRect().width : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
315
253
  return a + c + e;
316
254
  }
317
- const ua = w(0), ct = io((a) => {
318
- ua.value = a;
255
+ const Dl = w(0), ct = no((a) => {
256
+ Dl.value = a;
319
257
  }, 100);
320
258
  Vt((a) => {
321
- const c = ze.value;
259
+ const c = ll.value;
322
260
  if (!c) return;
323
261
  const e = new ResizeObserver((s) => {
324
262
  ct(s[0].contentRect.height);
325
263
  });
326
264
  e.observe(c), a(() => e.disconnect());
327
- }), Ja(() => {
328
- ua.value = 0;
265
+ }), Ra(() => {
266
+ Dl.value = 0;
329
267
  });
330
- const $a = L(() => {
268
+ const ha = L(() => {
331
269
  let a = 0;
332
- Je.value && (a = Je.value.getBBox().height);
270
+ Nl.value && (a = Nl.value.getBBox().height);
333
271
  let c = 0;
334
- return ze.value && (c = ua.value, console.log(c)), a + c + b.value.xAxis;
335
- }), vt = L(() => we.value.some((a) => a.useProgression)), n = L(() => {
272
+ return ll.value && (c = Dl.value), a + c + x.value.xAxis;
273
+ }), vt = L(() => me.value.some((a) => a.useProgression)), n = L(() => {
336
274
  let a = 0;
337
275
  const c = 36;
338
- l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (we.value.length - ue.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + c : a = nt());
276
+ l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (me.value.length - ae.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + c : a = nt());
339
277
  const e = l.value.chart.labels.fontSize * 1.1, s = vt.value ? 24 : 6;
340
- if (ze.value) {
341
- const o = ze.value.getBBox().x;
278
+ if (ll.value) {
279
+ const o = ll.value.getBBox().x;
342
280
  o < 0 && (a += Math.abs(o));
343
281
  }
344
- const t = se.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t / m.value / 2;
282
+ const t = le.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t / b.value / 2;
345
283
  return {
346
284
  top: l.value.chart.padding.top + e,
347
- right: se.value - s - l.value.chart.padding.right,
348
- bottom: ge.value - $a.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
285
+ right: le.value - s - l.value.chart.padding.right,
286
+ bottom: ve.value - ha.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
349
287
  left: a + l.value.chart.grid.labels.yAxis.crosshairSize - r + l.value.chart.padding.left,
350
- height: ge.value - $a.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
288
+ height: ve.value - ha.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
351
289
  width: t,
352
290
  scaleLabelX: a,
353
291
  individualOffsetX: c
354
292
  };
355
293
  }), dt = L(() => {
356
- const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = m.value + a, e = R(n.value.top), s = R(n.value.bottom);
294
+ const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = b.value + a, e = R(n.value.top), s = R(n.value.bottom);
357
295
  return Array.from({ length: c }).map((t, r) => {
358
- const o = n.value.width / m.value * r + n.value.left + D.value;
296
+ const o = n.value.width / b.value * r + n.value.left + G.value;
359
297
  return `M${o},${e} L${o},${s}`;
360
298
  }).join(" ");
361
299
  }), ht = L(() => {
@@ -366,41 +304,41 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
366
304
  showOnlyFirstAndLast: c,
367
305
  modulo: e
368
306
  } = l.value.chart.grid.labels.xAxisLabels, s = Math.floor((S.value.end - S.value.start) / e);
369
- return he.value.map((t, r) => {
307
+ return ne.value.map((t, r) => {
370
308
  if (!t) return null;
371
- const o = a && m.value <= e, B = !c && !a, E = c && !a && (r === 0 || r === he.value.length - 1), W = c && !a && _.value === r, $ = !c && a && r % s === 0;
372
- if (!(o || B || E || W || $))
309
+ const o = a && b.value <= e, B = !c && !a, F = c && !a && (r === 0 || r === ne.value.length - 1), E = c && !a && _.value === r, $ = !c && a && r % s === 0;
310
+ if (!(o || B || F || E || $))
373
311
  return null;
374
- const z = n.value.width / m.value, Y = n.value.left + z * r + z / 2, k = l.value.chart.grid.labels.xAxis.crosshairSize, N = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, A = N ? ce.value - (ce.value === n.value.bottom ? 0 : k / 2) : n.value.bottom, ee = N ? ce.value + k / (ce.value === n.value.bottom ? 1 : 2) : n.value.bottom + k;
375
- return `M${Y},${A} L${Y},${ee}`;
312
+ const z = n.value.width / b.value, Y = n.value.left + z * r + z / 2, k = l.value.chart.grid.labels.xAxis.crosshairSize, N = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, A = N ? ue.value - (ue.value === n.value.bottom ? 0 : k / 2) : n.value.bottom, J = N ? ue.value + k / (ue.value === n.value.bottom ? 1 : 2) : n.value.bottom + k;
313
+ return `M${Y},${A} L${Y},${J}`;
376
314
  }).filter((t) => t !== null).join(" ");
377
315
  });
378
- function La() {
379
- return !!Zl?.vnode.props?.onSelectTimeLabel;
316
+ function fa() {
317
+ return !!tt?.vnode.props?.onSelectTimeLabel;
380
318
  }
381
319
  function ft(a, c, e) {
382
- if (!Pl.value) {
320
+ if (!_l.value) {
383
321
  const s = document.createElement("canvas");
384
- Pl.value = s.getContext("2d");
322
+ _l.value = s.getContext("2d");
385
323
  }
386
- return Pl.value.font = `normal ${a}px sans-serif`, Pl.value;
324
+ return _l.value.font = `normal ${a}px sans-serif`, _l.value;
387
325
  }
388
- function Aa() {
389
- const a = Q.value.querySelectorAll(".vue-ui-xy-tag");
326
+ function ga() {
327
+ const a = je.value.querySelectorAll(".vue-ui-xy-tag");
390
328
  a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
391
329
  }
392
- function Bl(a, c, e, s, t) {
393
- e && (He.value[`${a}_${c}_${s}_${t}`] = e);
330
+ function $l(a, c, e, s, t) {
331
+ e && (Ce.value[`${a}_${c}_${s}_${t}`] = e);
394
332
  }
395
- const ra = w(!1);
396
- async function Ma(a = !1) {
397
- await fl(), ra.value = a, pa.value && (Vl.value = a);
333
+ const ql = w(!1);
334
+ async function xa(a = !1) {
335
+ await bl(), ql.value = a, ia.value && (kl.value = a);
398
336
  }
399
- function ia() {
400
- Nl.value = !Nl.value;
337
+ function Ul() {
338
+ pl.value = !pl.value;
401
339
  }
402
- const he = L(() => {
403
- const a = Math.max(...we.value.map((c) => qe({ data: c.series, threshold: l.value.downsample.threshold }).length));
340
+ const ne = L(() => {
341
+ const a = Math.max(...me.value.map((c) => Ye({ data: c.series, threshold: l.value.downsample.threshold }).length));
404
342
  return lo({
405
343
  values: l.value.chart.grid.labels.xAxisLabels.values,
406
344
  maxDatapoints: a,
@@ -409,8 +347,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
409
347
  end: S.value.end
410
348
  });
411
349
  });
412
- function za(a, c) {
413
- const e = $e.value.map((s) => ({
350
+ function ba(a, c) {
351
+ const e = pe.value.map((s) => ({
414
352
  shape: s.shape || null,
415
353
  name: s.name,
416
354
  color: s.color,
@@ -420,21 +358,21 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
420
358
  prefix: s.prefix || l.value.chart.labels.prefix,
421
359
  suffix: s.suffix || l.value.chart.labels.suffix
422
360
  }));
423
- bl("selectTimeLabel", {
361
+ Tl("selectTimeLabel", {
424
362
  datapoint: e,
425
363
  absoluteIndex: a.absoluteIndex,
426
364
  label: a.text
427
365
  });
428
366
  }
429
- const m = L(() => S.value.end - S.value.start);
367
+ const b = L(() => S.value.end - S.value.start);
430
368
  function gt(a) {
431
369
  O.value = a;
432
370
  }
433
- function Ca() {
371
+ function ma() {
434
372
  f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
435
373
  }
436
- function na(a) {
437
- Sl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
374
+ function Zl(a) {
375
+ hl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
438
376
  }
439
377
  function xt(a, c) {
440
378
  let e = Array(a).fill(0);
@@ -443,55 +381,55 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
443
381
  return e;
444
382
  }
445
383
  function bt(a) {
446
- const c = Math.max(...we.value.map((e) => qe({ data: e.series, threshold: l.value.downsample.threshold }).length));
384
+ const c = Math.max(...me.value.map((e) => Ye({ data: e.series, threshold: l.value.downsample.threshold }).length));
447
385
  return a > c ? c : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
448
386
  }
449
- async function ca() {
450
- (l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && F.value ? (l.value.chart.zoom.startIndex !== null && (await fl(), await fl(), F.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await fl(), await fl(), F.value.setEndValue(bt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
387
+ async function Jl() {
388
+ (l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Se.value ? (l.value.chart.zoom.startIndex !== null && (await bl(), await bl(), Se.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await bl(), await bl(), Se.value.setEndValue(bt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
451
389
  start: 0,
452
- end: Math.max(...we.value.map((a) => qe({ data: a.series, threshold: l.value.downsample.threshold }).length))
453
- }, Ql.value += 1);
390
+ end: Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: l.value.downsample.threshold }).length))
391
+ }, Rl.value += 1);
454
392
  }
455
393
  function mt() {
456
- ca();
394
+ Jl();
457
395
  }
458
- function me(a) {
396
+ function fe(a) {
459
397
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
460
398
  }
461
- const Ia = L(() => Se.value.max + kl.value);
462
- function el(a) {
463
- return a / (me(Ia.value) ? Ia.value : 1);
399
+ const ya = L(() => ye.value.max + cl.value);
400
+ function Ge(a) {
401
+ return a / (fe(ya.value) ? ya.value : 1);
464
402
  }
465
- const ce = L(() => isNaN(el(kl.value)) ? n.value.bottom : n.value.bottom - n.value.height * el(kl.value));
466
- function Ta(a) {
467
- const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && sa.value >= 0 ? n.value.bottom : ce.value;
468
- return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ce.value <= 0 ? 1e-5 : a.y - ce.value);
403
+ const ue = L(() => isNaN(Ge(cl.value)) ? n.value.bottom : n.value.bottom - n.value.height * Ge(cl.value));
404
+ function pa(a) {
405
+ const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Gl.value >= 0 ? n.value.bottom : ue.value;
406
+ return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ue.value <= 0 ? 1e-5 : a.y - ue.value);
469
407
  }
470
- function Oa(a) {
408
+ function ka(a) {
471
409
  return a.value >= 0 ? T(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : T(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
472
410
  }
473
- const K = L(() => ({
474
- bar: n.value.width / m.value / Re.value.filter((a) => a.type === "bar").filter((a) => !ue.value.includes(a.id)).length,
475
- plot: n.value.width / m.value,
476
- line: n.value.width / m.value
411
+ const Z = L(() => ({
412
+ bar: n.value.width / b.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !ae.value.includes(a.id)).length,
413
+ plot: n.value.width / b.value,
414
+ line: n.value.width / b.value
477
415
  }));
478
- function Le() {
479
- return f.value.useIndividualScale && f.value.isStacked ? K.value.line - n.value.width / m.value * 0.1 : K.value.bar;
416
+ function ke() {
417
+ return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / b.value * 0.1 : Z.value.bar;
480
418
  }
481
- function Yl(a) {
482
- return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / m.value * 0.05 : a.x + K.value.bar / 2;
419
+ function Ll(a) {
420
+ return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / b.value * 0.05 : a.x + Z.value.bar / 2;
483
421
  }
484
- function Na(a) {
485
- return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ce.value) ? n.bottom.value : ce.value;
422
+ function _a(a) {
423
+ return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ue.value) ? n.bottom.value : ue.value;
486
424
  }
487
- function Va(a) {
425
+ function wa(a) {
488
426
  return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
489
427
  }
490
428
  function yt(a) {
491
- bl(
429
+ Tl(
492
430
  "selectX",
493
431
  {
494
- dataset: $e.value.map((c) => ({
432
+ dataset: pe.value.map((c) => ({
495
433
  name: c.name,
496
434
  value: [null, void 0, NaN].includes(c.absoluteValues[a]) ? null : c.absoluteValues[a],
497
435
  color: c.color,
@@ -503,7 +441,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
503
441
  );
504
442
  }
505
443
  function pt() {
506
- return Be.value.map((a) => ({
444
+ return Te.value.map((a) => ({
507
445
  values: a.absoluteValues,
508
446
  color: a.color,
509
447
  name: a.name,
@@ -511,8 +449,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
511
449
  }));
512
450
  }
513
451
  async function kt({ scale: a = 2 } = {}) {
514
- if (!Q.value) return;
515
- const { width: c, height: e } = Q.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: r } = await oo({ domElement: Q.value, base64: !0, img: !0, scale: a });
452
+ if (!je.value) return;
453
+ const { width: c, height: e } = je.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: r } = await so({ domElement: je.value, base64: !0, img: !0, scale: a });
516
454
  return {
517
455
  imageUri: t,
518
456
  base64: r,
@@ -522,29 +460,29 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
522
460
  aspectRatio: s
523
461
  };
524
462
  }
525
- function Pa(a) {
526
- if (ue.value.includes(a.id))
527
- ue.value = ue.value.filter((c) => c !== a.id);
463
+ function Sa(a) {
464
+ if (ae.value.includes(a.id))
465
+ ae.value = ae.value.filter((c) => c !== a.id);
528
466
  else {
529
- if (ue.value.length + 1 === Re.value.length) return;
530
- ue.value.push(a.id);
467
+ if (ae.value.length + 1 === Ie.value.length) return;
468
+ ae.value.push(a.id);
531
469
  }
532
- bl("selectLegend", $e.value.map((c) => ({
470
+ Tl("selectLegend", pe.value.map((c) => ({
533
471
  name: c.name,
534
472
  values: c.absoluteValues,
535
473
  color: c.color,
536
474
  type: c.type
537
- }))), jl.value += 1;
475
+ }))), Bl.value += 1;
538
476
  }
539
477
  const _t = L(() => {
540
478
  const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
541
479
  return `${a}. ${c}`;
542
- }), Ha = L(() => ({
543
- linePlot: m.value > l.value.line.dot.hideAboveMaxSerieLength
480
+ }), $a = L(() => ({
481
+ linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
544
482
  })), wt = L(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), St = L(() => {
545
483
  if (Array.isArray(l.value.chart.highlightArea))
546
484
  return l.value.chart.highlightArea.map((c) => {
547
- const e = Math.min(c.to, Ee.value - 1);
485
+ const e = Math.min(c.to, Ve.value - 1);
548
486
  return {
549
487
  ...c,
550
488
  span: c.from === e ? 1 : e < c.from ? 0 : e - c.from + 1
@@ -552,23 +490,23 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
552
490
  });
553
491
  const a = {
554
492
  ...l.value.chart.highlightArea,
555
- to: Math.min(l.value.chart.highlightArea.to, Ee.value - 1)
493
+ to: Math.min(l.value.chart.highlightArea.to, Ve.value - 1)
556
494
  };
557
495
  return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
558
- }), $t = L(() => ga.value ? we.value.map((a, c) => ({
496
+ }), $t = L(() => ta.value ? me.value.map((a, c) => ({
559
497
  ...a,
560
- series: qe({
498
+ series: Ye({
561
499
  data: a.series,
562
500
  threshold: l.value.downsample.threshold
563
501
  }),
564
502
  id: `uniqueId_${c}`
565
- })) : we.value), Lt = L(() => $e.value.map((a) => {
503
+ })) : me.value), Lt = L(() => pe.value.map((a) => {
566
504
  const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
567
505
  return {
568
506
  id: a.id,
569
507
  name: a.name,
570
508
  color: a.color,
571
- values: xt(m.value, c)
509
+ values: xt(b.value, c)
572
510
  };
573
511
  })), At = L(() => ({
574
512
  responsiveBreakpoint: l.value.table.responsiveBreakpoint,
@@ -579,7 +517,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
579
517
  fontFamily: l.value.chart.fontFamily,
580
518
  prefix: l.value.chart.labels.prefix,
581
519
  suffix: l.value.chart.labels.suffix,
582
- colNames: he.value.map((a) => a.text),
520
+ colNames: ne.value.map((a) => a.text),
583
521
  thead: {
584
522
  backgroundColor: l.value.table.th.backgroundColor,
585
523
  color: l.value.table.th.color,
@@ -593,28 +531,28 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
593
531
  userOptions: {
594
532
  show: !1
595
533
  }
596
- })), D = L(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value / 2), ll = L(() => Gt(Be.value.filter((a) => !ue.value.includes(a.id)))), p = L(() => {
597
- const a = Object.groupBy(ll.value, (e) => e.scaleLabel), c = {};
534
+ })), G = L(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = L(() => Gt(Te.value.filter((a) => !ae.value.includes(a.id)))), p = L(() => {
535
+ const a = Object.groupBy(De.value, (e) => e.scaleLabel), c = {};
598
536
  for (const [e, s] of Object.entries(a)) {
599
537
  const t = s.flatMap((r) => r.absoluteValues);
600
538
  c[e] = {
601
539
  min: Math.min(...t) || 0,
602
540
  max: Math.max(...t) || 1,
603
- groupId: `scale_group_${da()}`
541
+ groupId: `scale_group_${jl()}`
604
542
  };
605
543
  }
606
544
  return c;
607
545
  }), Mt = L(() => {
608
- const a = Re.value.filter((c) => c.type === "bar").filter((c) => !ue.value.includes(c.id)).length;
609
- return n.value.width / m.value / a - Ye.value * a;
610
- }), Ye = L(() => K.value.line * l.value.bar.periodGap), zt = L(() => {
546
+ const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !ae.value.includes(c.id)).length;
547
+ return n.value.width / b.value / a - Oe.value * a;
548
+ }), Oe = L(() => Z.value.line * l.value.bar.periodGap), zt = L(() => {
611
549
  if (!l.value.chart.zoom.minimap.show) return [];
612
- const a = $t.value.filter((t) => !ue.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
550
+ const a = $t.value.filter((t) => !ae.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
613
551
  for (let t = 0; t < c; t += 1)
614
552
  e.push(a.map((r) => r.series[t] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
615
553
  const s = Math.min(...e);
616
554
  return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
617
- }), _l = L(() => $e.value.map((a) => ({
555
+ }), vl = L(() => pe.value.map((a) => ({
618
556
  slotAbsoluteIndex: a.slotAbsoluteIndex,
619
557
  shape: a.shape || null,
620
558
  name: a.name,
@@ -624,45 +562,45 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
624
562
  comments: a.comments || [],
625
563
  prefix: a.prefix || l.value.chart.labels.prefix,
626
564
  suffix: a.suffix || l.value.chart.labels.suffix
627
- }))), Ra = L(() => Se.value.ticks.map((a) => ({
628
- y: a >= 0 ? ce.value - n.value.height * el(a) : ce.value + n.value.height * el(Math.abs(a)),
565
+ }))), La = L(() => ye.value.ticks.map((a) => ({
566
+ y: a >= 0 ? ue.value - n.value.height * Ge(a) : ue.value + n.value.height * Ge(Math.abs(a)),
629
567
  value: a,
630
568
  prefix: l.value.chart.labels.prefix,
631
569
  suffix: l.value.chart.labels.suffix
632
- }))), Ba = L(() => {
570
+ }))), Aa = L(() => {
633
571
  const a = l.value.chart.annotations;
634
572
  if (!a || !Array.isArray(a) || a.every(($) => !$.show)) return [];
635
573
  const c = a.filter(
636
574
  ($) => $.show && ($.yAxis.yTop != null || $.yAxis.yBottom != null)
637
575
  );
638
576
  if (!c.length) return [];
639
- const { left: e, right: s } = n.value, t = ce.value, r = n.value.height, o = Se.value.min, E = Se.value.max - o, W = ($) => {
640
- const z = ($ - 0) / E;
577
+ const { left: e, right: s } = n.value, t = ue.value, r = n.value.height, o = ye.value.min, F = ye.value.max - o, E = ($) => {
578
+ const z = ($ - 0) / F;
641
579
  return t - z * r;
642
580
  };
643
581
  return c.map(($) => {
644
- const { yAxis: { yTop: z, yBottom: Y, label: k } } = $, N = z != null && Y != null && z !== Y, A = z == null ? null : W(z), ee = Y == null ? null : W(Y), ve = ft(k.fontSize);
645
- ve.font = `${k.fontSize}px sans-serif`;
646
- const q = ve.measureText(k.text).width, ye = k.fontSize, Te = (k.position === "start" ? e + k.padding.left : s - k.padding.right) + k.offsetX, xe = (A != null && ee != null ? Math.min(A, ee) : A ?? ee) - k.fontSize / 3 + k.offsetY - k.padding.top;
582
+ const { yAxis: { yTop: z, yBottom: Y, label: k } } = $, N = z != null && Y != null && z !== Y, A = z == null ? null : E(z), J = Y == null ? null : E(Y), re = ft(k.fontSize);
583
+ re.font = `${k.fontSize}px sans-serif`;
584
+ const D = re.measureText(k.text).width, ge = k.fontSize, Ae = (k.position === "start" ? e + k.padding.left : s - k.padding.right) + k.offsetX, de = (A != null && J != null ? Math.min(A, J) : A ?? J) - k.fontSize / 3 + k.offsetY - k.padding.top;
647
585
  let P;
648
- k.textAnchor === "middle" ? P = Te - q / 2 - k.padding.left : k.textAnchor === "end" ? P = Te - q - k.padding.right : P = Te - k.padding.left;
649
- const H = xe - ye * 0.75 - k.padding.top;
586
+ k.textAnchor === "middle" ? P = Ae - D / 2 - k.padding.left : k.textAnchor === "end" ? P = Ae - D - k.padding.right : P = Ae - k.padding.left;
587
+ const H = de - ge * 0.75 - k.padding.top;
650
588
  return {
651
- show: ![A, ee, H].includes(NaN),
652
- id: `annotation_y_${da()}`,
589
+ show: ![A, J, H].includes(NaN),
590
+ id: `annotation_y_${jl()}`,
653
591
  hasArea: N,
654
- areaHeight: N ? Math.abs(A - ee) : 0,
592
+ areaHeight: N ? Math.abs(A - J) : 0,
655
593
  yTop: A,
656
- yBottom: ee,
594
+ yBottom: J,
657
595
  config: $.yAxis,
658
596
  x1: e,
659
597
  x2: s,
660
- _text: { x: Te, y: xe },
598
+ _text: { x: Ae, y: de },
661
599
  _box: {
662
600
  x: P,
663
601
  y: H,
664
- width: q + k.padding.left + k.padding.right,
665
- height: ye + k.padding.top + k.padding.bottom,
602
+ width: D + k.padding.left + k.padding.right,
603
+ height: ge + k.padding.top + k.padding.bottom,
666
604
  fill: k.backgroundColor,
667
605
  stroke: k.border.stroke,
668
606
  rx: k.border.rx,
@@ -671,202 +609,202 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
671
609
  }
672
610
  };
673
611
  });
674
- }), We = L(() => {
675
- const a = ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
612
+ }), Pe = L(() => {
613
+ const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
676
614
  return a.filter((o) => o.type === "bar").map((o, B) => {
677
- na(o);
678
- const E = p.value[o.scaleLabel].min, W = p.value[o.scaleLabel].max;
679
- o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - E) / (W - E));
615
+ Zl(o);
616
+ const F = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
617
+ o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (E - F));
680
618
  const $ = {
681
- valueMin: E,
682
- valueMax: W < 0 ? 0 : W
619
+ valueMin: F,
620
+ valueMax: E < 0 ? 0 : E
683
621
  }, z = {
684
622
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
685
623
  min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
686
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(z.min, z.max === z.min ? z.max * k : z.max, Y) : ul(z.min, z.max === z.min ? z.max * k : z.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y) : ul($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y), ee = N.min >= 0 ? 0 : Math.abs(N.min), ve = 0, q = N.max + ee, ye = A.max + Math.abs(ve), Te = o.stackIndex, dl = c - 1 - Te, xe = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * xe + e * dl : 0, H = s ? r * o.stackRatio : n.value.height, le = n.value.bottom - P - H * ee / q, be = n.value.bottom - P - H * ve / ye, de = Be.value.filter((V) => V.type === "bar").filter((V) => !ue.value.includes(V.id)).length, $l = o.series.map((V, te) => {
687
- const Ge = f.value.useIndividualScale ? (o.absoluteValues[te] + ee) / q : el(V), al = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / m.value * te : n.value.left + K.value.bar * B + K.value.bar * te * de - Mt.value / 2 - B * Ye.value;
624
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(z.min, z.max === z.min ? z.max * k : z.max, Y) : Ke(z.min, z.max === z.min ? z.max * k : z.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y) : Ke($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y), J = N.min >= 0 ? 0 : Math.abs(N.min), re = 0, D = N.max + J, ge = A.max + Math.abs(re), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, K = n.value.bottom - P - H * J / D, he = n.value.bottom - P - H * re / ge, ie = Te.value.filter((V) => V.type === "bar").filter((V) => !ae.value.includes(V.id)).length, fl = o.series.map((V, j) => {
625
+ const Re = f.value.useIndividualScale ? (o.absoluteValues[j] + J) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * j : n.value.left + Z.value.bar * B + Z.value.bar * j * ie - Mt.value / 2 - B * Oe.value;
688
626
  return {
689
627
  yOffset: T(P),
690
628
  individualHeight: T(H),
691
- x: T(al),
692
- y: n.value.bottom - P - H * Ge,
693
- value: o.absoluteValues[te],
694
- zeroPosition: T(le),
695
- individualMax: T(q),
696
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
629
+ x: T(qe),
630
+ y: n.value.bottom - P - H * Re,
631
+ value: o.absoluteValues[j],
632
+ zeroPosition: T(K),
633
+ individualMax: T(D),
634
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
697
635
  };
698
- }), fe = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), Xe = o.series.map((V, te) => {
699
- const Ge = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / m.value * te : n.value.left - K.value.bar / 2 + K.value.bar * B + K.value.bar * te * Be.value.filter((al) => al.type === "bar").filter((al) => !ue.value.includes(al.id)).length;
636
+ }), ce = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), He = o.series.map((V, j) => {
637
+ const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * j : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * j * Te.value.filter((qe) => qe.type === "bar").filter((qe) => !ae.value.includes(qe.id)).length;
700
638
  return {
701
639
  yOffset: T(P),
702
640
  individualHeight: T(H),
703
- x: T(Ge),
704
- y: T(n.value.bottom - T(P) - (T(H) * fe[te] || 0)),
705
- value: o.absoluteValues[te],
706
- zeroPosition: T(le),
707
- individualMax: T(q),
708
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
641
+ x: T(Re),
642
+ y: T(n.value.bottom - T(P) - (T(H) * ce[j] || 0)),
643
+ value: o.absoluteValues[j],
644
+ zeroPosition: T(K),
645
+ individualMax: T(D),
646
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
709
647
  };
710
- }), X = N.ticks.map((V) => ({
711
- y: V >= 0 ? le - H * (V / q) : le + H * Math.abs(V) / q,
648
+ }), W = N.ticks.map((V) => ({
649
+ y: V >= 0 ? K - H * (V / D) : K + H * Math.abs(V) / D,
712
650
  value: V,
713
651
  prefix: o.prefix || l.value.chart.labels.prefix,
714
652
  suffix: o.suffix || l.value.chart.labels.suffix,
715
653
  datapoint: o
716
- })), ae = A.ticks.map((V) => {
717
- const te = (V - A.min) / (A.max - A.min);
654
+ })), Q = A.ticks.map((V) => {
655
+ const j = (V - A.min) / (A.max - A.min);
718
656
  return {
719
- y: V >= 0 ? be - H * te : be + H * te,
657
+ y: V >= 0 ? he - H * j : he + H * j,
720
658
  value: V,
721
659
  prefix: o.prefix || l.value.chart.labels.prefix,
722
660
  suffix: o.suffix || l.value.chart.labels.suffix,
723
661
  datapoint: o
724
662
  };
725
663
  });
726
- return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ae : X, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? be : le, p.value[o.scaleLabel].individualMax = o.autoScaling ? ye : q, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = ae, p.value[o.scaleLabel].unique = ll.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
664
+ return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Q : W, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : K, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Q, p.value[o.scaleLabel].unique = De.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
727
665
  ...o,
728
666
  yOffset: P,
729
- autoScaleYLabels: ae,
667
+ autoScaleYLabels: Q,
730
668
  individualHeight: H,
731
- scaleYLabels: o.autoScaling ? ae : X,
669
+ scaleYLabels: o.autoScaling ? Q : W,
732
670
  individualScale: o.autoScaling ? A : N,
733
- individualMax: o.autoScaling ? ye : q,
734
- zeroPosition: o.autoScaling ? be : le,
735
- plots: o.autoScaling ? Xe : $l,
671
+ individualMax: o.autoScaling ? ge : D,
672
+ zeroPosition: o.autoScaling ? he : K,
673
+ plots: o.autoScaling ? He : fl,
736
674
  groupId: p.value[o.scaleLabel].groupId
737
675
  };
738
676
  });
739
- }), Ae = L(() => {
740
- const a = ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
677
+ }), _e = L(() => {
678
+ const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
741
679
  return a.filter((o) => o.type === "line").map((o, B) => {
742
- na(o);
743
- const E = p.value[o.scaleLabel].min, W = p.value[o.scaleLabel].max;
744
- o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - E) / (W - E));
680
+ Zl(o);
681
+ const F = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
682
+ o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (E - F));
745
683
  const $ = {
746
- valueMin: E,
747
- valueMax: W
684
+ valueMin: F,
685
+ valueMax: E
748
686
  }, z = {
749
687
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
750
688
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
751
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(z.min, z.max === z.min ? z.max * k : z.max, Y) : ul(z.min, z.max === z.min ? z.max * k : z.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y) : ul($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y), ee = N.min >= 0 ? 0 : Math.abs(N.min), ve = 0, q = N.max + Math.abs(ee), ye = A.max + Math.abs(ve), Te = o.stackIndex, dl = c - 1 - Te, xe = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * xe + e * dl : 0, H = s ? r * o.stackRatio : n.value.height, le = n.value.bottom - P - H * ee / q, be = n.value.bottom - P - H * ve / ye, de = o.series.map((I, re) => {
752
- const It = f.value.useIndividualScale ? (o.absoluteValues[re] + Math.abs(ee)) / q : el(I);
689
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(z.min, z.max === z.min ? z.max * k : z.max, Y) : Ke(z.min, z.max === z.min ? z.max * k : z.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y) : Ke($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, Y), J = N.min >= 0 ? 0 : Math.abs(N.min), re = 0, D = N.max + Math.abs(J), ge = A.max + Math.abs(re), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, K = n.value.bottom - P - H * J / D, he = n.value.bottom - P - H * re / ge, ie = o.series.map((I, te) => {
690
+ const It = f.value.useIndividualScale ? (o.absoluteValues[te] + Math.abs(J)) / D : Ge(I);
753
691
  return {
754
- x: T(n.value.left + K.value.line / 2 + K.value.line * re),
692
+ x: T(n.value.left + Z.value.line / 2 + Z.value.line * te),
755
693
  y: T(n.value.bottom - P - H * It),
756
- value: o.absoluteValues[re],
757
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[re] || ""
694
+ value: o.absoluteValues[te],
695
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
758
696
  };
759
- }), $l = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), fe = o.series.map((I, re) => [void 0, null].includes(o.absoluteValues[re]) ? {
760
- x: T(n.value.left + K.value.line / 2 + K.value.line * re),
761
- y: le,
762
- value: o.absoluteValues[re],
763
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[re] || ""
697
+ }), fl = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), ce = o.series.map((I, te) => [void 0, null].includes(o.absoluteValues[te]) ? {
698
+ x: T(n.value.left + Z.value.line / 2 + Z.value.line * te),
699
+ y: K,
700
+ value: o.absoluteValues[te],
701
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
764
702
  } : {
765
- x: T(n.value.left + K.value.line / 2 + K.value.line * re),
766
- y: T(n.value.bottom - P - (H * $l[re] || 0)),
767
- value: o.absoluteValues[re],
768
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[re] || ""
769
- }), Xe = l.value.line.cutNullValues ? Ka(de) : Qa(de.filter((I) => I.value !== null)), X = l.value.line.cutNullValues ? Ka(fe) : Qa(fe.filter((I) => I.value !== null)), ae = l.value.line.cutNullValues ? ja(de) : et(de.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? ja(fe) : et(fe.filter((I) => I.value !== null)), te = N.ticks.map((I) => ({
770
- y: I >= 0 ? le - H * (I / q) : le + H * Math.abs(I) / q,
703
+ x: T(n.value.left + Z.value.line / 2 + Z.value.line * te),
704
+ y: T(n.value.bottom - P - (H * fl[te] || 0)),
705
+ value: o.absoluteValues[te],
706
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
707
+ }), He = l.value.line.cutNullValues ? Ba(ie) : Ya(ie.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Ba(ce) : Ya(ce.filter((I) => I.value !== null)), Q = l.value.line.cutNullValues ? Fa(ie) : Ea(ie.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Fa(ce) : Ea(ce.filter((I) => I.value !== null)), j = N.ticks.map((I) => ({
708
+ y: I >= 0 ? K - H * (I / D) : K + H * Math.abs(I) / D,
771
709
  value: I,
772
710
  prefix: o.prefix || l.value.chart.labels.prefix,
773
711
  suffix: o.suffix || l.value.chart.labels.suffix,
774
712
  datapoint: o
775
- })), Ge = A.ticks.map((I) => {
776
- const re = (I - A.min) / (A.max - A.min);
713
+ })), Re = A.ticks.map((I) => {
714
+ const te = (I - A.min) / (A.max - A.min);
777
715
  return {
778
- y: I >= 0 ? be - H * re : be + H * re,
716
+ y: I >= 0 ? he - H * te : he + H * te,
779
717
  value: I,
780
718
  prefix: o.prefix || l.value.chart.labels.prefix,
781
719
  suffix: o.suffix || l.value.chart.labels.suffix,
782
720
  datapoint: o
783
721
  };
784
722
  });
785
- p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ge : te, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? be : le, p.value[o.scaleLabel].individualMax = o.autoScaling ? ye : q, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Ge, p.value[o.scaleLabel].unique = ll.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
786
- const al = f.value.useIndividualScale ? o.autoScaling ? be : le : ce.value, Ll = Math.max(Math.max(o.autoScaling ? be : te.at(-1) ? te.at(-1).y : 0, n.value.top), al);
723
+ p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Re : j, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : K, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Re, p.value[o.scaleLabel].unique = De.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
724
+ const qe = f.value.useIndividualScale ? o.autoScaling ? he : K : ue.value, gl = Math.max(Math.max(o.autoScaling ? he : j.at(-1) ? j.at(-1).y : 0, n.value.top), qe);
787
725
  return {
788
726
  ...o,
789
727
  yOffset: P,
790
- autoScaleYLabels: Ge,
728
+ autoScaleYLabels: Re,
791
729
  individualHeight: H,
792
- scaleYLabels: o.autoScaling ? Ge : te,
730
+ scaleYLabels: o.autoScaling ? Re : j,
793
731
  individualScale: o.autoScaling ? A : N,
794
- individualMax: o.autoScaling ? ye : q,
795
- zeroPosition: o.autoScaling ? be : le,
796
- curve: o.autoScaling ? X : Xe,
797
- plots: o.autoScaling ? fe : de,
798
- area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? lt(
799
- o.autoScaling ? fe : de,
800
- Ll
801
- ) : at(
802
- o.autoScaling ? fe.filter((I) => I.value !== null) : de.filter((I) => I.value !== null),
803
- Ll
804
- ) : l.value.line.cutNullValues ? lt(de, Ll) : at(de.filter((I) => I.value !== null), Ll) : "",
732
+ individualMax: o.autoScaling ? ge : D,
733
+ zeroPosition: o.autoScaling ? he : K,
734
+ curve: o.autoScaling ? W : He,
735
+ plots: o.autoScaling ? ce : ie,
736
+ area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Wa(
737
+ o.autoScaling ? ce : ie,
738
+ gl
739
+ ) : Xa(
740
+ o.autoScaling ? ce.filter((I) => I.value !== null) : ie.filter((I) => I.value !== null),
741
+ gl
742
+ ) : l.value.line.cutNullValues ? Wa(ie, gl) : Xa(ie.filter((I) => I.value !== null), gl) : "",
805
743
  curveAreas: o.useArea ? Dt(
806
- o.autoScaling ? l.value.line.cutNullValues ? fe : fe.filter((I) => I.value !== null) : l.value.line.cutNullValues ? de : de.filter((I) => I.value !== null),
807
- Ll,
744
+ o.autoScaling ? l.value.line.cutNullValues ? ce : ce.filter((I) => I.value !== null) : l.value.line.cutNullValues ? ie : ie.filter((I) => I.value !== null),
745
+ gl,
808
746
  l.value.line.cutNullValues
809
747
  ) : [],
810
- straight: o.autoScaling ? V : ae,
748
+ straight: o.autoScaling ? V : Q,
811
749
  groupId: p.value[o.scaleLabel].groupId
812
750
  };
813
751
  });
814
- }), Ie = L(() => {
815
- const a = ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
752
+ }), Le = L(() => {
753
+ const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
816
754
  return a.filter((o) => o.type === "plot").map((o) => {
817
- na(o);
818
- const B = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
819
- o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - B) / (E - B));
820
- const W = {
755
+ Zl(o);
756
+ const B = p.value[o.scaleLabel].min, F = p.value[o.scaleLabel].max;
757
+ o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (F - B));
758
+ const E = {
821
759
  valueMin: B,
822
- valueMax: E
760
+ valueMax: F
823
761
  }, $ = {
824
762
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
825
763
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
826
- }, z = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = ul($.min, $.max === $.min ? $.max * Y : $.max, z), N = ul(W.valueMin, W.valueMax === W.valueMin ? W.valueMax * Y : W.valueMax, z), A = k.min >= 0 ? 0 : Math.abs(k.min), ee = 0, ve = k.max + A, q = N.max + Math.abs(ee), ye = o.stackIndex, Te = c - 1 - ye, dl = s ? 1 - o.cumulatedStackRatio : 0, xe = s ? r * dl + e * Te : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - xe - P * A / ve, le = n.value.bottom - xe - P * ee / q, be = o.series.map((X, ae) => {
827
- const V = f.value.useIndividualScale ? (o.absoluteValues[ae] + Math.abs(A)) / ve : el(X);
764
+ }, z = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = Ke($.min, $.max === $.min ? $.max * Y : $.max, z), N = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, z), A = k.min >= 0 ? 0 : Math.abs(k.min), J = 0, re = k.max + A, D = N.max + Math.abs(J), ge = o.stackIndex, Ae = c - 1 - ge, tl = s ? 1 - o.cumulatedStackRatio : 0, de = s ? r * tl + e * Ae : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - de - P * A / re, K = n.value.bottom - de - P * J / D, he = o.series.map((W, Q) => {
765
+ const V = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(A)) / re : Ge(W);
828
766
  return {
829
- x: T(n.value.left + K.value.plot / 2 + K.value.plot * ae),
830
- y: T(n.value.bottom - xe - P * V),
831
- value: o.absoluteValues[ae],
832
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ae] || ""
767
+ x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * Q),
768
+ y: T(n.value.bottom - de - P * V),
769
+ value: o.absoluteValues[Q],
770
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[Q] || ""
833
771
  };
834
- }), de = o.absoluteValues.map((X) => N.min >= 0 ? (X - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (X + Math.abs(N.min)) / (N.max + Math.abs(N.min))), $l = o.series.map((X, ae) => ({
835
- x: T(n.value.left + K.value.plot / 2 + K.value.plot * ae),
836
- y: T(n.value.bottom - xe - (P * de[ae] || 0)),
837
- value: o.absoluteValues[ae],
838
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ae] || ""
839
- })), fe = k.ticks.map((X) => ({
840
- y: X >= 0 ? H - P * (X / ve) : H + P * Math.abs(X) / ve,
841
- value: X,
772
+ }), ie = o.absoluteValues.map((W) => N.min >= 0 ? (W - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (W + Math.abs(N.min)) / (N.max + Math.abs(N.min))), fl = o.series.map((W, Q) => ({
773
+ x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * Q),
774
+ y: T(n.value.bottom - de - (P * ie[Q] || 0)),
775
+ value: o.absoluteValues[Q],
776
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[Q] || ""
777
+ })), ce = k.ticks.map((W) => ({
778
+ y: W >= 0 ? H - P * (W / re) : H + P * Math.abs(W) / re,
779
+ value: W,
842
780
  prefix: o.prefix || l.value.chart.labels.prefix,
843
781
  suffix: o.suffix || l.value.chart.labels.suffix,
844
782
  datapoint: o
845
- })), Xe = N.ticks.map((X) => {
846
- const ae = (X - N.min) / (N.max - N.min);
783
+ })), He = N.ticks.map((W) => {
784
+ const Q = (W - N.min) / (N.max - N.min);
847
785
  return {
848
- y: X >= 0 ? le - P * ae : le + P * ae,
849
- value: X,
786
+ y: W >= 0 ? K - P * Q : K + P * Q,
787
+ value: W,
850
788
  prefix: o.prefix || l.value.chart.labels.prefix,
851
789
  suffix: o.suffix || l.value.chart.labels.suffix,
852
790
  datapoint: o
853
791
  };
854
792
  });
855
- return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Xe : fe, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? le : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? q : ve, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = xe, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = Xe, p.value[o.scaleLabel].unique = ll.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
793
+ return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? He : ce, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? K : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? D : re, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = de, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = He, p.value[o.scaleLabel].unique = De.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
856
794
  ...o,
857
- yOffset: xe,
858
- autoScaleYLabels: Xe,
795
+ yOffset: de,
796
+ autoScaleYLabels: He,
859
797
  individualHeight: P,
860
- scaleYLabels: o.autoScaling ? Xe : fe,
798
+ scaleYLabels: o.autoScaling ? He : ce,
861
799
  individualScale: o.autoScaling ? N : k,
862
- individualMax: o.autoScaling ? q : ve,
863
- zeroPosition: o.autoScaling ? le : H,
864
- plots: o.autoScaling ? $l : be,
800
+ individualMax: o.autoScaling ? D : re,
801
+ zeroPosition: o.autoScaling ? K : H,
802
+ plots: o.autoScaling ? fl : he,
865
803
  groupId: p.value[o.scaleLabel].groupId
866
804
  };
867
805
  });
868
- }), wl = L(() => {
869
- const a = Ae.value.map((r) => ({
806
+ }), dl = L(() => {
807
+ const a = _e.value.map((r) => ({
870
808
  name: r.name,
871
809
  color: r.color,
872
810
  scale: r.individualScale,
@@ -878,7 +816,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
878
816
  yOffset: r.yOffset || 0,
879
817
  individualHeight: r.individualHeight || n.value.height,
880
818
  autoScaleYLabels: r.autoScaleYLabels
881
- })), c = We.value.map((r) => ({
819
+ })), c = Pe.value.map((r) => ({
882
820
  name: r.name,
883
821
  color: r.color,
884
822
  scale: r.individualScale,
@@ -889,7 +827,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
889
827
  id: r.id,
890
828
  yOffset: r.yOffset || 0,
891
829
  individualHeight: r.individualHeight || n.value.height
892
- })), e = Ie.value.map((r) => ({
830
+ })), e = Le.value.map((r) => ({
893
831
  name: r.name,
894
832
  color: r.color,
895
833
  scale: r.individualScale,
@@ -905,16 +843,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
905
843
  return s.flatMap((r, o) => {
906
844
  let B = 0;
907
845
  B = f.value.isStacked ? n.value.left : n.value.left / t * (o + 1);
908
- const E = f.value.useIndividualScale && !f.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
846
+ const F = f.value.useIndividualScale && !f.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
909
847
  return {
910
848
  unique: r.unique,
911
849
  id: r.id,
912
850
  groupId: r.groupId,
913
851
  scaleLabel: r.scaleLabel,
914
- name: ne(
852
+ name: se(
915
853
  l.value.chart.grid.labels.yAxis.serieNameFormatter,
916
- E,
917
- E,
854
+ F,
855
+ F,
918
856
  r
919
857
  ),
920
858
  color: f.value.useIndividualScale && !f.value.isStacked ? r.unique ? r.color : r.groupColor : r.color,
@@ -922,50 +860,50 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
922
860
  yOffset: r.yOffset,
923
861
  individualHeight: r.individualHeight,
924
862
  x: B,
925
- yLabels: r.scaleYLabels || r.scale.ticks.map((W) => ({
926
- y: W >= 0 ? r.zero - r.individualHeight * (W / r.max) : r.zero + r.individualHeight * Math.abs(W) / r.max,
927
- value: W
863
+ yLabels: r.scaleYLabels || r.scale.ticks.map((E) => ({
864
+ y: E >= 0 ? r.zero - r.individualHeight * (E / r.max) : r.zero + r.individualHeight * Math.abs(E) / r.max,
865
+ value: E
928
866
  }))
929
867
  };
930
868
  });
931
- }), Ya = L(() => ({
932
- datapoint: _l.value,
869
+ }), Ma = L(() => ({
870
+ datapoint: vl.value,
933
871
  seriesIndex: _.value,
934
- series: Be.value,
935
- bars: We.value,
936
- lines: Ae.value,
937
- plots: Ie.value,
872
+ series: Te.value,
873
+ bars: Pe.value,
874
+ lines: _e.value,
875
+ plots: Le.value,
938
876
  config: l.value
939
877
  })), Ct = L(() => {
940
- let a = "", c = _l.value.map((t) => t.value).filter((t) => El(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
941
- const e = he.value[_.value], s = l.value.chart.tooltip.customFormat;
878
+ let a = "", c = vl.value.map((t) => t.value).filter((t) => Ml(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
879
+ const e = ne.value[_.value], s = l.value.chart.tooltip.customFormat;
942
880
  return qt(s) && Ut(() => s({
943
881
  absoluteIndex: _.value + S.value.start,
944
882
  seriesIndex: _.value,
945
- datapoint: _l.value,
946
- series: Be.value,
947
- bars: We.value,
948
- lines: Ae.value,
949
- plots: Ie.value,
883
+ datapoint: vl.value,
884
+ series: Te.value,
885
+ bars: Pe.value,
886
+ lines: _e.value,
887
+ plots: Le.value,
950
888
  config: l.value
951
889
  })) ? s({
952
890
  absoluteIndex: _.value + S.value.start,
953
891
  seriesIndex: _.value,
954
- datapoint: _l.value,
955
- series: Be.value,
956
- bars: We.value,
957
- lines: Ae.value,
958
- plots: Ie.value,
892
+ datapoint: vl.value,
893
+ series: Te.value,
894
+ bars: Pe.value,
895
+ lines: _e.value,
896
+ plots: Le.value,
959
897
  config: l.value
960
- }) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), _l.value.forEach((t) => {
961
- if (El(t.value)) {
898
+ }) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), vl.value.forEach((t) => {
899
+ if (Ml(t.value)) {
962
900
  let r = "", o = "";
963
- switch (yl.value[t.type]) {
901
+ switch (il.value[t.type]) {
964
902
  case "bar":
965
- r = `<svg viewBox="0 0 40 40" height="14" width="14">${cl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${cl.pattern ? `url(#pattern_${Z.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
903
+ r = `<svg viewBox="0 0 40 40" height="14" width="14">${aa.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${aa.pattern ? `url(#pattern_${U.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
966
904
  break;
967
905
  case "line":
968
- !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${tt({ 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="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
906
+ !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Ga({ 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="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
969
907
  break;
970
908
  case "plot":
971
909
  if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
@@ -973,41 +911,41 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
973
911
  break;
974
912
  }
975
913
  if (t.shape === "star") {
976
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${tt({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
914
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Ga({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
977
915
  break;
978
916
  }
979
917
  if (t.shape === "triangle") {
980
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
918
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
981
919
  break;
982
920
  }
983
921
  if (t.shape === "square") {
984
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
922
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
985
923
  break;
986
924
  }
987
925
  if (t.shape === "diamond") {
988
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
926
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
989
927
  break;
990
928
  }
991
929
  if (t.shape === "pentagon") {
992
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
930
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
993
931
  break;
994
932
  }
995
933
  if (t.shape === "hexagon") {
996
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
934
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
997
935
  break;
998
936
  }
999
937
  }
1000
- a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? ne(
938
+ a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? se(
1001
939
  t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1002
940
  t.value,
1003
- pe({
941
+ xe({
1004
942
  p: t.prefix,
1005
943
  v: t.value,
1006
944
  s: t.suffix,
1007
945
  r: l.value.chart.tooltip.roundingValue
1008
946
  }),
1009
947
  { datapoint: t }
1010
- ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${pe({
948
+ ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${xe({
1011
949
  v: T(Math.abs(t.value) / c * 100),
1012
950
  s: "%",
1013
951
  r: l.value.chart.tooltip.roundingPercentage
@@ -1016,34 +954,34 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1016
954
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
1017
955
  });
1018
956
  L(() => {
1019
- if (Re.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1020
- const a = $e.value.map((e) => ({
957
+ if (Ie.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
958
+ const a = pe.value.map((e) => ({
1021
959
  label: e.name,
1022
960
  color: e.color,
1023
961
  type: e.type
1024
962
  })), c = [];
1025
- return he.value.forEach((e, s) => {
963
+ return ne.value.forEach((e, s) => {
1026
964
  const t = [e.text];
1027
- $e.value.forEach((r) => {
1028
- t.push(me(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
965
+ pe.value.forEach((r) => {
966
+ t.push(fe(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
1029
967
  }), c.push(t);
1030
968
  }), { head: a, body: c };
1031
969
  });
1032
- const Fl = L(() => {
970
+ const Al = L(() => {
1033
971
  const a = l.value.table.showSum;
1034
- let c = [""].concat($e.value.map((r) => r.name));
972
+ let c = [""].concat(pe.value.map((r) => r.name));
1035
973
  a && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
1036
974
  let e = [];
1037
- for (let r = 0; r < m.value; r += 1) {
1038
- const o = $e.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, E) => B + E, 0);
975
+ for (let r = 0; r < b.value; r += 1) {
976
+ const o = pe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
1039
977
  e.push(
1040
978
  [
1041
- he.value[r].text ?? "-"
1042
- ].concat($e.value.map(
1043
- (B) => ne(
979
+ ne.value[r].text ?? "-"
980
+ ].concat(pe.value.map(
981
+ (B) => se(
1044
982
  B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1045
983
  B.absoluteValues[r] ?? 0,
1046
- pe({
984
+ xe({
1047
985
  p: B.prefix || l.value.chart.labels.prefix,
1048
986
  v: B.absoluteValues[r] ?? 0,
1049
987
  s: B.suffix || l.value.chart.labels.suffix,
@@ -1065,92 +1003,92 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1065
1003
  outline: l.value.table.td.outline
1066
1004
  },
1067
1005
  breakpoint: l.value.table.responsiveBreakpoint
1068
- }, t = [l.value.table.columnNames.period].concat($e.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
1006
+ }, t = [l.value.table.columnNames.period].concat(pe.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
1069
1007
  return { head: c, body: e, config: s, colNames: t };
1070
1008
  });
1071
- function Fa(a = null) {
1009
+ function za(a = null) {
1072
1010
  const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = c.concat([e]).concat(s), r = jt(t);
1073
1011
  a ? a(r) : eo({ csvContent: r, title: l.value.chart.title.text || "vue-ui-xy" });
1074
1012
  }
1075
- function Ea(a, c = null) {
1076
- xa.value = a, a ? _.value = c : _.value = null;
1013
+ function Ca(a, c = null) {
1014
+ oa.value = a, a ? _.value = c : _.value = null;
1077
1015
  }
1078
- function Wa() {
1016
+ function Ia() {
1079
1017
  f.value.showTable = !f.value.showTable;
1080
1018
  }
1081
- function Xa() {
1019
+ function Ta() {
1082
1020
  f.value.dataLabels.show = !f.value.dataLabels.show;
1083
1021
  }
1084
- function Ga() {
1022
+ function Oa() {
1085
1023
  f.value.showTooltip = !f.value.showTooltip;
1086
1024
  }
1087
- function Da(a) {
1088
- vl.value = a, ba.value += 1;
1025
+ function Na(a) {
1026
+ al.value = a, sa.value += 1;
1089
1027
  }
1090
- function qa() {
1028
+ function Va() {
1091
1029
  if (!l.value.responsiveProportionalSizing) {
1092
- b.value.dataLabels = l.value.chart.grid.labels.fontSize, b.value.yAxis = l.value.chart.grid.labels.axis.fontSize, b.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, b.value.plotLabels = l.value.chart.labels.fontSize, Ce.value.plot = l.value.plot.radius, Ce.value.line = l.value.line.radius;
1030
+ x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius;
1093
1031
  return;
1094
1032
  }
1095
- b.value.dataLabels = hl({
1096
- relator: ge.value,
1033
+ x.value.dataLabels = ol({
1034
+ relator: ve.value,
1097
1035
  adjuster: 400,
1098
1036
  source: l.value.chart.grid.labels.fontSize,
1099
1037
  threshold: 10,
1100
1038
  fallback: 10
1101
- }), b.value.yAxis = hl({
1102
- relator: se.value,
1039
+ }), x.value.yAxis = ol({
1040
+ relator: le.value,
1103
1041
  adjuster: 1e3,
1104
1042
  source: l.value.chart.grid.labels.axis.fontSize,
1105
1043
  threshold: 10,
1106
1044
  fallback: 10
1107
- }), b.value.xAxis = hl({
1108
- relator: se.value,
1045
+ }), x.value.xAxis = ol({
1046
+ relator: le.value,
1109
1047
  adjuster: 1e3,
1110
1048
  source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1111
1049
  threshold: 10,
1112
1050
  fallback: 10
1113
- }), b.value.plotLabels = hl({
1114
- relator: se.value,
1051
+ }), x.value.plotLabels = ol({
1052
+ relator: le.value,
1115
1053
  adjuster: 800,
1116
1054
  source: l.value.chart.labels.fontSize,
1117
1055
  threshold: 10,
1118
1056
  fallback: 10
1119
- }), Ce.value.plot = hl({
1120
- relator: se.value,
1057
+ }), $e.value.plot = ol({
1058
+ relator: le.value,
1121
1059
  adjuster: 800,
1122
1060
  source: l.value.plot.radius,
1123
1061
  threshold: 1,
1124
1062
  fallback: 1
1125
- }), Ce.value.line = hl({
1126
- relator: se.value,
1063
+ }), $e.value.line = ol({
1064
+ relator: le.value,
1127
1065
  adjuster: 800,
1128
1066
  source: l.value.line.radius,
1129
1067
  threshold: 1,
1130
1068
  fallback: 1
1131
1069
  });
1132
1070
  }
1133
- const Sl = L(() => !!l.value.debug);
1134
- function Ua() {
1135
- ot(x.dataset) ? (ha({
1071
+ const hl = L(() => !!l.value.debug);
1072
+ function Pa() {
1073
+ Da(m.dataset) ? (ea({
1136
1074
  componentName: "VueUiXy",
1137
1075
  type: "dataset",
1138
- debug: Sl.value
1139
- }), Hl.value = !0) : x.dataset.forEach((c, e) => {
1140
- [null, void 0].includes(c.name) && (ha({
1076
+ debug: hl.value
1077
+ }), wl.value = !0) : m.dataset.forEach((c, e) => {
1078
+ [null, void 0].includes(c.name) && (ea({
1141
1079
  componentName: "VueUiXy",
1142
1080
  type: "datasetSerieAttribute",
1143
1081
  property: "name (string)",
1144
1082
  index: e,
1145
- debug: Sl.value
1146
- }), Hl.value = !0);
1147
- }), Sl.value && x.dataset.forEach((c) => {
1083
+ debug: hl.value
1084
+ }), wl.value = !0);
1085
+ }), hl.value && m.dataset.forEach((c) => {
1148
1086
  c.series.forEach((e, s) => {
1149
- El(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1087
+ Ml(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1150
1088
  -----> The serie '${c.name}' contains the value '${e}' at index ${s}.
1151
1089
  '${e}' was converted to null to allow the chart to display.`);
1152
1090
  });
1153
- }), ot(x.dataset) || (Hl.value = l.value.loading), pa.value = l.value.chart.userOptions.showOnChartHover, ea.value = l.value.chart.userOptions.keepStateOnChartLeave, Vl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1091
+ }), Da(m.dataset) || (wl.value = l.value.loading), ia.value = l.value.chart.userOptions.showOnChartHover, Yl.value = l.value.chart.userOptions.keepStateOnChartLeave, kl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1154
1092
  dataLabels: {
1155
1093
  show: !0
1156
1094
  },
@@ -1161,56 +1099,56 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1161
1099
  };
1162
1100
  const a = 12;
1163
1101
  if (l.value.responsive) {
1164
- const e = Q.value.parentNode;
1165
- Qe.value && (Qe.value.unobserve(Kl.value), Qe.value.disconnect());
1102
+ const e = je.value.parentNode;
1103
+ We.value && (We.value.unobserve(Hl.value), We.value.disconnect());
1166
1104
  const { height: s, width: t } = e.getBoundingClientRect();
1167
1105
  let r = null, o = 0;
1168
- l.value.chart.title.show && j.value && (r = j.value, o = r.getBoundingClientRect().height);
1169
- let B = null, E = 0;
1170
- l.value.chart.zoom.show && Ee.value > 6 && aa.value && F.value && F.value.$el && (B = F.value.$el, E = B.getBoundingClientRect().height);
1171
- let W = null, $ = 0;
1172
- l.value.chart.legend.show && J.value && (W = J.value, $ = W.getBoundingClientRect().height);
1106
+ l.value.chart.title.show && sl.value && (r = sl.value, o = r.getBoundingClientRect().height);
1107
+ let B = null, F = 0;
1108
+ l.value.chart.zoom.show && Ve.value > 6 && El.value && Se.value && Se.value.$el && (B = Se.value.$el, F = B.getBoundingClientRect().height);
1109
+ let E = null, $ = 0;
1110
+ l.value.chart.legend.show && el.value && (E = el.value, $ = E.getBoundingClientRect().height);
1173
1111
  let z = 0;
1174
- ke.value && (z = ke.value.getBoundingClientRect().height);
1112
+ ul.value && (z = ul.value.getBoundingClientRect().height);
1175
1113
  let Y = 0;
1176
- Ve.value && (Y = Ve.value.getBoundingClientRect().height), ge.value = s - o - $ - E - z - Y - a, se.value = t, Ol.value = `0 0 ${se.value < 0 ? 10 : se.value} ${ge.value < 0 ? 10 : ge.value}`, qa();
1114
+ rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - $ - F - z - Y - a, le.value = t, yl.value = `0 0 ${le.value < 0 ? 10 : le.value} ${ve.value < 0 ? 10 : ve.value}`, Va();
1177
1115
  const k = new ResizeObserver((N) => {
1178
1116
  for (const A of N)
1179
- l.value.chart.title.show && j.value ? o = j.value.getBoundingClientRect().height : o = 0, F.value && F.value.$el ? E = F.value.$el.getBoundingClientRect().height : E = 0, J.value ? $ = J.value.getBoundingClientRect().height : $ = 0, ke.value ? z = ke.value.getBoundingClientRect().height : z = 0, Ve.value ? Y = Ve.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
1180
- ge.value = A.contentRect.height - o - $ - E - z - Y - a, se.value = A.contentBoxSize[0].inlineSize, Ol.value = `0 0 ${se.value < 0 ? 10 : se.value} ${ge.value < 0 ? 10 : ge.value}`, qa();
1117
+ l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0, Se.value && Se.value.$el ? F = Se.value.$el.getBoundingClientRect().height : F = 0, el.value ? $ = el.value.getBoundingClientRect().height : $ = 0, ul.value ? z = ul.value.getBoundingClientRect().height : z = 0, rl.value ? Y = rl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
1118
+ ve.value = A.contentRect.height - o - $ - F - z - Y - a, le.value = A.contentBoxSize[0].inlineSize, yl.value = `0 0 ${le.value < 0 ? 10 : le.value} ${ve.value < 0 ? 10 : ve.value}`, Va();
1181
1119
  });
1182
1120
  });
1183
- Qe.value = k, Kl.value = e, k.observe(e);
1121
+ We.value = k, Hl.value = e, k.observe(e);
1184
1122
  } else
1185
- ge.value = l.value.chart.height, se.value = l.value.chart.width, b.value.dataLabels = l.value.chart.grid.labels.fontSize, b.value.yAxis = l.value.chart.grid.labels.axis.fontSize, b.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, b.value.plotLabels = l.value.chart.labels.fontSize, Ce.value.plot = l.value.plot.radius, Ce.value.line = l.value.line.radius, Ol.value = `0 0 ${se.value} ${ge.value}`;
1123
+ ve.value = l.value.chart.height, le.value = l.value.chart.width, x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius, yl.value = `0 0 ${le.value} ${ve.value}`;
1186
1124
  }
1187
- return Za(() => {
1188
- Ua(), ca(), document.addEventListener("mousemove", (a) => {
1125
+ return Ha(() => {
1126
+ Pa(), Jl(), document.addEventListener("mousemove", (a) => {
1189
1127
  st.value = {
1190
1128
  x: a.clientX,
1191
1129
  y: a.clientY
1192
1130
  };
1193
- }), document.addEventListener("scroll", Aa);
1194
- }), Ja(() => {
1195
- document.removeEventListener("scroll", Aa), Qe.value && (Qe.value.unobserve(Kl.value), Qe.value.disconnect());
1196
- }), co({
1197
- timeLabelsEls: ze,
1198
- timeLabels: he,
1131
+ }), document.addEventListener("scroll", ga);
1132
+ }), Ra(() => {
1133
+ document.removeEventListener("scroll", ga), We.value && (We.value.unobserve(Hl.value), We.value.disconnect());
1134
+ }), ao({
1135
+ timeLabelsEls: ll,
1136
+ timeLabels: ne,
1199
1137
  slicer: S,
1200
1138
  configRef: l,
1201
1139
  rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1202
1140
  autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
1203
1141
  isAutoSize: it
1204
- }), Gl(() => x.dataset, (a) => {
1205
- Array.isArray(a) && a.length > 0 && (Hl.value = !1), Ee.value = Math.max(...we.value.map((c) => qe({
1142
+ }), Kl(() => m.dataset, (a) => {
1143
+ Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...me.value.map((c) => Ye({
1206
1144
  data: c.series,
1207
1145
  threshold: l.value.downsample.threshold
1208
1146
  }).length)), S.value = {
1209
1147
  start: 0,
1210
- end: Ee.value
1211
- }, Ql.value += 1, jl.value += 1;
1212
- }, { deep: !0 }), Gl(() => x.config, (a) => {
1213
- ta.value || (l.value = la()), Ua(), ya.value += 1, ma.value += 1, f.value = {
1148
+ end: Ve.value
1149
+ }, Rl.value += 1, Bl.value += 1;
1150
+ }, { deep: !0 }), Kl(() => m.config, (a) => {
1151
+ Wl.value || (l.value = Fl()), Pa(), ra.value += 1, ua.value += 1, f.value = {
1214
1152
  dataLabels: {
1215
1153
  show: !0
1216
1154
  },
@@ -1219,7 +1157,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1219
1157
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
1220
1158
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1221
1159
  };
1222
- }, { deep: !0 }), Gl(l, () => {
1160
+ }, { deep: !0 }), Kl(l, () => {
1223
1161
  f.value = {
1224
1162
  dataLabels: {
1225
1163
  show: !0
@@ -1229,51 +1167,51 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1229
1167
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
1230
1168
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1231
1169
  };
1232
- }, { immediate: !0 }), Dl({
1170
+ }, { immediate: !0 }), qa({
1233
1171
  getData: pt,
1234
1172
  getImage: kt,
1235
- generatePdf: _a,
1236
- generateImage: wa,
1237
- generateCsv: Fa,
1238
- toggleStack: Ca,
1239
- toggleTable: Wa,
1240
- toggleLabels: Xa,
1241
- toggleTooltip: Ga,
1242
- toggleAnnotator: ia,
1243
- toggleFullscreen: Da
1173
+ generatePdf: ca,
1174
+ generateImage: va,
1175
+ generateCsv: za,
1176
+ toggleStack: ma,
1177
+ toggleTable: Ia,
1178
+ toggleLabels: Ta,
1179
+ toggleTooltip: Oa,
1180
+ toggleAnnotator: Ul,
1181
+ toggleFullscreen: Na
1244
1182
  }), (a, c) => (u(), i("div", {
1245
- id: `vue-ui-xy_${Z.value}`,
1246
- class: tl(`vue-ui-xy ${vl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1183
+ id: `vue-ui-xy_${U.value}`,
1184
+ class: Ue(`vue-ui-xy ${al.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1247
1185
  ref_key: "chart",
1248
- ref: Q,
1186
+ ref: je,
1249
1187
  style: C(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
1250
- onMouseenter: c[7] || (c[7] = () => Ma(!0)),
1251
- onMouseleave: c[8] || (c[8] = () => Ma(!1))
1188
+ onMouseenter: c[7] || (c[7] = () => xa(!0)),
1189
+ onMouseleave: c[8] || (c[8] = () => xa(!1))
1252
1190
  }, [
1253
- l.value.chart.userOptions.buttons.annotator && _e.value ? (u(), Oe(v(Tl), {
1191
+ l.value.chart.userOptions.buttons.annotator && be.value ? (u(), Me(v(at), {
1254
1192
  key: 0,
1255
- svgRef: _e.value,
1193
+ svgRef: be.value,
1256
1194
  backgroundColor: l.value.chart.backgroundColor,
1257
1195
  color: l.value.chart.color,
1258
- active: Nl.value,
1259
- onClose: ia
1196
+ active: pl.value,
1197
+ onClose: Ul
1260
1198
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
1261
1199
  wt.value ? (u(), i("div", {
1262
1200
  key: 1,
1263
1201
  ref_key: "noTitle",
1264
- ref: Ve,
1202
+ ref: rl,
1265
1203
  class: "vue-data-ui-no-title-space",
1266
1204
  style: "height:36px; width: 100%; background:transparent"
1267
1205
  }, null, 512)) : d("", !0),
1268
1206
  l.value.chart.title.show ? (u(), i("div", {
1269
1207
  key: 2,
1270
1208
  ref_key: "chartTitle",
1271
- ref: j,
1209
+ ref: sl,
1272
1210
  class: "vue-ui-xy-title",
1273
1211
  style: C(`font-family:${l.value.chart.fontFamily}`)
1274
1212
  }, [
1275
- (u(), Oe(to, {
1276
- key: `title_${ya.value}`,
1213
+ (u(), Me(oo, {
1214
+ key: `title_${ra.value}`,
1277
1215
  config: {
1278
1216
  title: {
1279
1217
  cy: "xy-div-title",
@@ -1286,123 +1224,123 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1286
1224
  }
1287
1225
  }, null, 8, ["config"]))
1288
1226
  ], 4)) : d("", !0),
1289
- l.value.chart.userOptions.show && (ea.value || Vl.value) ? (u(), Oe(v(Ul), {
1227
+ l.value.chart.userOptions.show && (Yl.value || kl.value) ? (u(), Me(v(Ka), {
1290
1228
  ref: "defails",
1291
- key: `user_options_${ba.value}`,
1229
+ key: `user_options_${sa.value}`,
1292
1230
  backgroundColor: l.value.chart.backgroundColor,
1293
1231
  color: l.value.chart.color,
1294
- isPrinting: v(oa),
1295
- isImaging: v(ka),
1296
- uid: Z.value,
1232
+ isPrinting: v(Xl),
1233
+ isImaging: v(na),
1234
+ uid: U.value,
1297
1235
  hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
1298
1236
  hasPdf: l.value.chart.userOptions.buttons.pdf,
1299
1237
  hasXls: l.value.chart.userOptions.buttons.csv,
1300
1238
  hasImg: l.value.chart.userOptions.buttons.img,
1301
1239
  hasLabel: l.value.chart.userOptions.buttons.labels,
1302
1240
  hasTable: l.value.chart.userOptions.buttons.table,
1303
- hasStack: gl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1241
+ hasStack: Il.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1304
1242
  hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1305
1243
  isStacked: f.value.isStacked,
1306
- isFullscreen: vl.value,
1244
+ isFullscreen: al.value,
1307
1245
  chartElement: a.$refs.chart,
1308
1246
  position: l.value.chart.userOptions.position,
1309
1247
  isTooltip: f.value.showTooltip,
1310
1248
  titles: { ...l.value.chart.userOptions.buttonTitles },
1311
1249
  hasAnnotator: l.value.chart.userOptions.buttons.annotator,
1312
- isAnnotation: Nl.value,
1250
+ isAnnotation: pl.value,
1313
1251
  callbacks: l.value.chart.userOptions.callbacks,
1314
1252
  printScale: l.value.chart.userOptions.print.scale,
1315
- onToggleFullscreen: Da,
1316
- onGeneratePdf: v(_a),
1317
- onGenerateCsv: Fa,
1318
- onGenerateImage: v(wa),
1319
- onToggleTable: Wa,
1320
- onToggleLabels: Xa,
1321
- onToggleStack: Ca,
1322
- onToggleTooltip: Ga,
1323
- onToggleAnnotator: ia,
1253
+ onToggleFullscreen: Na,
1254
+ onGeneratePdf: v(ca),
1255
+ onGenerateCsv: za,
1256
+ onGenerateImage: v(va),
1257
+ onToggleTable: Ia,
1258
+ onToggleLabels: Ta,
1259
+ onToggleStack: ma,
1260
+ onToggleTooltip: Oa,
1261
+ onToggleAnnotator: Ul,
1324
1262
  style: C({
1325
- visibility: ea.value ? Vl.value ? "visible" : "hidden" : "visible"
1263
+ visibility: Yl.value ? kl.value ? "visible" : "hidden" : "visible"
1326
1264
  })
1327
1265
  }, Pt({ _: 2 }, [
1328
1266
  a.$slots.menuIcon ? {
1329
1267
  name: "menuIcon",
1330
- fn: ie(({ isOpen: e, color: s }) => [
1331
- U(a.$slots, "menuIcon", ol(sl({ isOpen: e, color: s })), void 0, !0)
1268
+ fn: oe(({ isOpen: e, color: s }) => [
1269
+ q(a.$slots, "menuIcon", Ze(Je({ isOpen: e, color: s })), void 0, !0)
1332
1270
  ]),
1333
1271
  key: "0"
1334
1272
  } : void 0,
1335
1273
  a.$slots.optionTooltip ? {
1336
1274
  name: "optionTooltip",
1337
- fn: ie(() => [
1338
- U(a.$slots, "optionTooltip", {}, void 0, !0)
1275
+ fn: oe(() => [
1276
+ q(a.$slots, "optionTooltip", {}, void 0, !0)
1339
1277
  ]),
1340
1278
  key: "1"
1341
1279
  } : void 0,
1342
1280
  a.$slots.optionPdf ? {
1343
1281
  name: "optionPdf",
1344
- fn: ie(() => [
1345
- U(a.$slots, "optionPdf", {}, void 0, !0)
1282
+ fn: oe(() => [
1283
+ q(a.$slots, "optionPdf", {}, void 0, !0)
1346
1284
  ]),
1347
1285
  key: "2"
1348
1286
  } : void 0,
1349
1287
  a.$slots.optionCsv ? {
1350
1288
  name: "optionCsv",
1351
- fn: ie(() => [
1352
- U(a.$slots, "optionCsv", {}, void 0, !0)
1289
+ fn: oe(() => [
1290
+ q(a.$slots, "optionCsv", {}, void 0, !0)
1353
1291
  ]),
1354
1292
  key: "3"
1355
1293
  } : void 0,
1356
1294
  a.$slots.optionImg ? {
1357
1295
  name: "optionImg",
1358
- fn: ie(() => [
1359
- U(a.$slots, "optionImg", {}, void 0, !0)
1296
+ fn: oe(() => [
1297
+ q(a.$slots, "optionImg", {}, void 0, !0)
1360
1298
  ]),
1361
1299
  key: "4"
1362
1300
  } : void 0,
1363
1301
  a.$slots.optionTable ? {
1364
1302
  name: "optionTable",
1365
- fn: ie(() => [
1366
- U(a.$slots, "optionTable", {}, void 0, !0)
1303
+ fn: oe(() => [
1304
+ q(a.$slots, "optionTable", {}, void 0, !0)
1367
1305
  ]),
1368
1306
  key: "5"
1369
1307
  } : void 0,
1370
1308
  a.$slots.optionLabels ? {
1371
1309
  name: "optionLabels",
1372
- fn: ie(() => [
1373
- U(a.$slots, "optionLabels", {}, void 0, !0)
1310
+ fn: oe(() => [
1311
+ q(a.$slots, "optionLabels", {}, void 0, !0)
1374
1312
  ]),
1375
1313
  key: "6"
1376
1314
  } : void 0,
1377
1315
  a.$slots.optionStack ? {
1378
1316
  name: "optionStack",
1379
- fn: ie(() => [
1380
- U(a.$slots, "optionStack", {}, void 0, !0)
1317
+ fn: oe(() => [
1318
+ q(a.$slots, "optionStack", {}, void 0, !0)
1381
1319
  ]),
1382
1320
  key: "7"
1383
1321
  } : void 0,
1384
1322
  a.$slots.optionFullscreen ? {
1385
1323
  name: "optionFullscreen",
1386
- fn: ie(({ toggleFullscreen: e, isFullscreen: s }) => [
1387
- U(a.$slots, "optionFullscreen", ol(sl({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
1324
+ fn: oe(({ toggleFullscreen: e, isFullscreen: s }) => [
1325
+ q(a.$slots, "optionFullscreen", Ze(Je({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
1388
1326
  ]),
1389
1327
  key: "8"
1390
1328
  } : void 0,
1391
1329
  a.$slots.optionAnnotator ? {
1392
1330
  name: "optionAnnotator",
1393
- fn: ie(({ toggleAnnotator: e, isAnnotator: s }) => [
1394
- U(a.$slots, "optionAnnotator", ol(sl({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
1331
+ fn: oe(({ toggleAnnotator: e, isAnnotator: s }) => [
1332
+ q(a.$slots, "optionAnnotator", Ze(Je({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
1395
1333
  ]),
1396
1334
  key: "9"
1397
1335
  } : void 0
1398
1336
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
1399
1337
  (u(), i("svg", {
1400
1338
  ref_key: "svgRef",
1401
- ref: _e,
1339
+ ref: be,
1402
1340
  xmlns: "http://www.w3.org/2000/svg",
1403
- class: tl([{ "vue-data-ui-fullscreen--on": vl.value, "vue-data-ui-fulscreen--off": !vl.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
1341
+ class: Ue([{ "vue-data-ui-fullscreen--on": al.value, "vue-data-ui-fulscreen--off": !al.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
1404
1342
  width: "100%",
1405
- viewBox: Ol.value,
1343
+ viewBox: yl.value,
1406
1344
  style: C({
1407
1345
  background: "transparent",
1408
1346
  color: l.value.chart.color,
@@ -1415,39 +1353,39 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1415
1353
  }, [
1416
1354
  g("g", {
1417
1355
  ref_key: "G",
1418
- ref: Pe,
1356
+ ref: ot,
1419
1357
  class: "vue-data-ui-g"
1420
1358
  }, [
1421
- Al(v(xl)),
1359
+ xl(v(lt)),
1422
1360
  a.$slots["chart-background"] ? (u(), i("foreignObject", {
1423
1361
  key: 0,
1424
- x: n.value.left + D.value < 0 ? 0 : n.value.left + D.value,
1362
+ x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
1425
1363
  y: n.value.top,
1426
- width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value),
1364
+ width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value),
1427
1365
  height: n.value.height < 0 ? 0 : n.value.height,
1428
1366
  style: {
1429
1367
  pointerEvents: "none"
1430
1368
  }
1431
1369
  }, [
1432
- U(a.$slots, "chart-background", {}, void 0, !0)
1370
+ q(a.$slots, "chart-background", {}, void 0, !0)
1433
1371
  ], 8, fo)) : d("", !0),
1434
- m.value > 0 ? (u(), i("g", go, [
1372
+ b.value > 0 ? (u(), i("g", go, [
1435
1373
  g("g", xo, [
1436
1374
  l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
1437
1375
  key: 0,
1438
1376
  stroke: l.value.chart.grid.stroke,
1439
1377
  "stroke-width": "1",
1440
- x1: n.value.left + D.value,
1441
- x2: n.value.right - D.value,
1378
+ x1: n.value.left + G.value,
1379
+ x2: n.value.right - G.value,
1442
1380
  y1: v(R)(n.value.bottom),
1443
1381
  y2: v(R)(n.value.bottom),
1444
1382
  "stroke-linecap": "round",
1445
1383
  style: { animation: "none !important" }
1446
1384
  }, null, 8, bo)) : d("", !0),
1447
- f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, y(wl.value, (e) => (u(), i("g", null, [
1385
+ f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, y(dl.value, (e) => (u(), i("g", null, [
1448
1386
  e.id === M.value && e.yLabels.length ? (u(!0), i(h, { key: 0 }, y(e.yLabels, (s) => (u(), i("line", {
1449
- x1: n.value.left + D.value,
1450
- x2: n.value.right - D.value,
1387
+ x1: n.value.left + G.value,
1388
+ x2: n.value.right - G.value,
1451
1389
  y1: v(R)(s.y),
1452
1390
  y2: v(R)(s.y),
1453
1391
  stroke: e.color,
@@ -1455,8 +1393,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1455
1393
  "stroke-linecap": "round",
1456
1394
  style: { animation: "none !important" }
1457
1395
  }, null, 8, ko))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 }, y(e.yLabels, (s) => (u(), i("line", {
1458
- x1: n.value.left + D.value,
1459
- x2: n.value.right - D.value,
1396
+ x1: n.value.left + G.value,
1397
+ x2: n.value.right - G.value,
1460
1398
  y1: v(R)(s.y),
1461
1399
  y2: v(R)(s.y),
1462
1400
  stroke: l.value.chart.grid.stroke,
@@ -1469,16 +1407,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1469
1407
  key: 0,
1470
1408
  stroke: l.value.chart.grid.stroke,
1471
1409
  "stroke-width": "1",
1472
- x1: n.value.left + D.value,
1473
- x2: n.value.left + D.value,
1410
+ x1: n.value.left + G.value,
1411
+ x2: n.value.left + G.value,
1474
1412
  y1: v(R)(n.value.top),
1475
1413
  y2: v(R)(n.value.bottom),
1476
1414
  "stroke-linecap": "round",
1477
1415
  style: { animation: "none !important" }
1478
1416
  }, null, 8, mo)) : d("", !0),
1479
1417
  l.value.chart.grid.showHorizontalLines ? (u(), i("g", yo, [
1480
- (u(!0), i(h, null, y(Ra.value, (e) => (u(), i("line", {
1481
- x1: n.value.left + D.value,
1418
+ (u(!0), i(h, null, y(La.value, (e) => (u(), i("line", {
1419
+ x1: n.value.left + G.value,
1482
1420
  x2: n.value.right,
1483
1421
  y1: v(R)(e.y),
1484
1422
  y2: v(R)(e.y),
@@ -1508,11 +1446,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1508
1446
  }, null, 8, Lo)
1509
1447
  ])) : d("", !0)
1510
1448
  ]),
1511
- (u(!0), i(h, null, y(We.value, (e, s) => (u(), i("defs", {
1449
+ (u(!0), i(h, null, y(Pe.value, (e, s) => (u(), i("defs", {
1512
1450
  key: `def_rect_${s}`
1513
1451
  }, [
1514
1452
  g("linearGradient", {
1515
- id: `rectGradient_pos_${s}_${Z.value}`,
1453
+ id: `rectGradient_pos_${s}_${U.value}`,
1516
1454
  x2: "0%",
1517
1455
  y2: "100%"
1518
1456
  }, [
@@ -1522,25 +1460,25 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1522
1460
  }, null, 8, Mo),
1523
1461
  g("stop", {
1524
1462
  offset: "62%",
1525
- "stop-color": `${v(rl)(e.color, 0.02)}`
1463
+ "stop-color": `${v(Qe)(e.color, 0.02)}`
1526
1464
  }, null, 8, zo),
1527
1465
  g("stop", {
1528
1466
  offset: "100%",
1529
- "stop-color": `${v(rl)(e.color, 0.05)}`
1467
+ "stop-color": `${v(Qe)(e.color, 0.05)}`
1530
1468
  }, null, 8, Co)
1531
1469
  ], 8, Ao),
1532
1470
  g("linearGradient", {
1533
- id: `rectGradient_neg_${s}_${Z.value}`,
1471
+ id: `rectGradient_neg_${s}_${U.value}`,
1534
1472
  x2: "0%",
1535
1473
  y2: "100%"
1536
1474
  }, [
1537
1475
  g("stop", {
1538
1476
  offset: "0%",
1539
- "stop-color": `${v(rl)(e.color, 0.05)}`
1477
+ "stop-color": `${v(Qe)(e.color, 0.05)}`
1540
1478
  }, null, 8, To),
1541
1479
  g("stop", {
1542
1480
  offset: "38%",
1543
- "stop-color": `${v(rl)(e.color, 0.02)}`
1481
+ "stop-color": `${v(Qe)(e.color, 0.02)}`
1544
1482
  }, null, 8, Oo),
1545
1483
  g("stop", {
1546
1484
  offset: "100%",
@@ -1548,11 +1486,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1548
1486
  }, null, 8, No)
1549
1487
  ], 8, Io)
1550
1488
  ]))), 128)),
1551
- (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i("defs", {
1489
+ (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("defs", {
1552
1490
  key: `def_plot_${s}`
1553
1491
  }, [
1554
1492
  g("radialGradient", {
1555
- id: `plotGradient_${s}_${Z.value}`,
1493
+ id: `plotGradient_${s}_${U.value}`,
1556
1494
  cx: "50%",
1557
1495
  cy: "50%",
1558
1496
  r: "50%",
@@ -1561,7 +1499,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1561
1499
  }, [
1562
1500
  g("stop", {
1563
1501
  offset: "0%",
1564
- "stop-color": `${v(rl)(e.color, 0.05)}`
1502
+ "stop-color": `${v(Qe)(e.color, 0.05)}`
1565
1503
  }, null, 8, Po),
1566
1504
  g("stop", {
1567
1505
  offset: "100%",
@@ -1569,11 +1507,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1569
1507
  }, null, 8, Ho)
1570
1508
  ], 8, Vo)
1571
1509
  ]))), 128)),
1572
- (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i("defs", {
1510
+ (u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("defs", {
1573
1511
  key: `def_line_${s}`
1574
1512
  }, [
1575
1513
  g("radialGradient", {
1576
- id: `lineGradient_${s}_${Z.value}`,
1514
+ id: `lineGradient_${s}_${U.value}`,
1577
1515
  cx: "50%",
1578
1516
  cy: "50%",
1579
1517
  r: "50%",
@@ -1582,7 +1520,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1582
1520
  }, [
1583
1521
  g("stop", {
1584
1522
  offset: "0%",
1585
- "stop-color": `${v(rl)(e.color, 0.05)}`
1523
+ "stop-color": `${v(Qe)(e.color, 0.05)}`
1586
1524
  }, null, 8, Bo),
1587
1525
  g("stop", {
1588
1526
  offset: "100%",
@@ -1590,7 +1528,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1590
1528
  }, null, 8, Yo)
1591
1529
  ], 8, Ro),
1592
1530
  g("linearGradient", {
1593
- id: `areaGradient_${s}_${Z.value}`,
1531
+ id: `areaGradient_${s}_${U.value}`,
1594
1532
  x1: "0%",
1595
1533
  x2: "100%",
1596
1534
  y1: "0%",
@@ -1598,11 +1536,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1598
1536
  }, [
1599
1537
  g("stop", {
1600
1538
  offset: "0%",
1601
- "stop-color": `${v(Me)(v(rl)(e.color, 0.03), l.value.line.area.opacity)}`
1539
+ "stop-color": `${v(we)(v(Qe)(e.color, 0.03), l.value.line.area.opacity)}`
1602
1540
  }, null, 8, Eo),
1603
1541
  g("stop", {
1604
1542
  offset: "100%",
1605
- "stop-color": `${v(Me)(e.color, l.value.line.area.opacity)}`
1543
+ "stop-color": `${v(we)(e.color, l.value.line.area.opacity)}`
1606
1544
  }, null, 8, Wo)
1607
1545
  ], 8, Fo)
1608
1546
  ]))), 128)),
@@ -1614,73 +1552,73 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1614
1552
  transition: "none",
1615
1553
  opacity: e.from + t >= S.value.start && e.from + t <= S.value.end - 1 ? 1 : 0
1616
1554
  }),
1617
- x: n.value.left + n.value.width / m.value * (e.from + t - S.value.start),
1555
+ x: n.value.left + n.value.width / b.value * (e.from + t - S.value.start),
1618
1556
  y: n.value.top,
1619
1557
  height: n.value.height < 0 ? 10 : n.value.height,
1620
- width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
1621
- fill: v(Me)(e.color, e.opacity)
1558
+ width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
1559
+ fill: v(we)(e.color, e.opacity)
1622
1560
  }, null, 12, Xo)
1623
1561
  ]))), 256)),
1624
1562
  (u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
1625
1563
  e.caption.text && t === 0 ? (u(), i("foreignObject", {
1626
1564
  key: 0,
1627
- x: n.value.left + n.value.width / m.value * (e.from + t - S.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / m.value * e.span / 2),
1565
+ x: n.value.left + n.value.width / b.value * (e.from + t - S.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / b.value * e.span / 2),
1628
1566
  y: n.value.top + e.caption.offsetY,
1629
1567
  style: C({
1630
1568
  overflow: "visible",
1631
1569
  opacity: e.to >= S.value.start && e.from < S.value.end ? 1 : 0
1632
1570
  }),
1633
1571
  height: "1",
1634
- width: e.caption.width === "auto" ? n.value.width / m.value * e.span : e.caption.width
1572
+ width: e.caption.width === "auto" ? n.value.width / b.value * e.span : e.caption.width
1635
1573
  }, [
1636
1574
  g("div", {
1637
1575
  style: C(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
1638
- }, oe(e.caption.text), 5)
1576
+ }, ee(e.caption.text), 5)
1639
1577
  ], 12, Go)) : d("", !0)
1640
1578
  ]))), 256))
1641
1579
  ], 64)) : d("", !0)
1642
1580
  ]))), 256)),
1643
- ra.value ? (u(), i("g", Do, [
1644
- (u(!0), i(h, null, y(m.value, (e, s) => (u(), i("g", {
1581
+ ql.value ? (u(), i("g", Do, [
1582
+ (u(!0), i(h, null, y(b.value, (e, s) => (u(), i("g", {
1645
1583
  key: `tooltip_trap_highlighter_${s}`
1646
1584
  }, [
1647
1585
  g("rect", {
1648
- x: n.value.left + n.value.width / m.value * s,
1586
+ x: n.value.left + n.value.width / b.value * s,
1649
1587
  y: n.value.top,
1650
1588
  height: n.value.height < 0 ? 10 : n.value.height,
1651
- width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
1652
- fill: [O.value, _.value, je.value].includes(s) ? v(Me)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
1589
+ width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
1590
+ fill: [O.value, _.value, Xe.value].includes(s) ? v(we)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
1653
1591
  }, null, 8, qo)
1654
1592
  ]))), 128))
1655
1593
  ])) : d("", !0),
1656
- We.value.length ? (u(!0), i(h, { key: 1 }, y(We.value, (e, s) => (u(), i("g", {
1594
+ Pe.value.length ? (u(!0), i(h, { key: 1 }, y(Pe.value, (e, s) => (u(), i("g", {
1657
1595
  key: `serie_bar_${s}`,
1658
- class: tl(`serie_bar_${s}`),
1596
+ class: Ue(`serie_bar_${s}`),
1659
1597
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1660
1598
  }, [
1661
1599
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
1662
1600
  key: `bar_plot_${s}_${r}`
1663
1601
  }, [
1664
- me(t.value) ? (u(), i("rect", {
1602
+ fe(t.value) ? (u(), i("rect", {
1665
1603
  key: 0,
1666
- x: Yl(t),
1667
- y: f.value.useIndividualScale ? Va(t) : Na(t),
1668
- height: f.value.useIndividualScale ? Math.abs(Oa(t)) : Math.abs(Ta(t)),
1669
- width: Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value) < 0 ? 1e-5 : Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value),
1604
+ x: Ll(t),
1605
+ y: f.value.useIndividualScale ? wa(t) : _a(t),
1606
+ height: f.value.useIndividualScale ? Math.abs(ka(t)) : Math.abs(pa(t)),
1607
+ width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
1670
1608
  rx: l.value.bar.borderRadius,
1671
- fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${Z.value})` : `url(#rectGradient_neg_${s}_${Z.value})` : e.color,
1609
+ fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${U.value})` : `url(#rectGradient_neg_${s}_${U.value})` : e.color,
1672
1610
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1673
1611
  "stroke-width": l.value.bar.border.strokeWidth,
1674
- style: C(`${v(ta) ? "transition:none !important" : ""}`)
1612
+ style: C(`${v(Wl) ? "transition:none !important" : ""}`)
1675
1613
  }, null, 12, Uo)) : d("", !0),
1676
- me(t.value) && a.$slots.pattern ? (u(), i("rect", {
1614
+ fe(t.value) && a.$slots.pattern ? (u(), i("rect", {
1677
1615
  key: 1,
1678
- x: Yl(t),
1679
- y: f.value.useIndividualScale ? Va(t) : Na(t),
1680
- height: f.value.useIndividualScale ? Math.abs(Oa(t)) : Math.abs(Ta(t)),
1681
- width: Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value) < 0 ? 1e-5 : Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value),
1616
+ x: Ll(t),
1617
+ y: f.value.useIndividualScale ? wa(t) : _a(t),
1618
+ height: f.value.useIndividualScale ? Math.abs(ka(t)) : Math.abs(pa(t)),
1619
+ width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
1682
1620
  rx: l.value.bar.borderRadius,
1683
- fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
1621
+ fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
1684
1622
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1685
1623
  "stroke-width": l.value.bar.border.strokeWidth
1686
1624
  }, null, 8, Zo)) : d("", !0),
@@ -1688,16 +1626,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1688
1626
  key: 2,
1689
1627
  style: { overflow: "visible" },
1690
1628
  height: "12",
1691
- width: (Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value) < 0 ? 1e-5 : Le() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Ye.value) / 2) + l.value.chart.comments.width,
1692
- x: Yl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1629
+ width: (ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) / 2) + l.value.chart.comments.width,
1630
+ x: Ll(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1693
1631
  y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
1694
1632
  }, [
1695
- U(a.$slots, "plot-comment", {
1633
+ q(a.$slots, "plot-comment", {
1696
1634
  plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
1697
1635
  }, void 0, !0)
1698
1636
  ], 8, Jo)) : d("", !0)
1699
1637
  ]))), 128)),
1700
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), i("g", Ko, [
1638
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", Ko, [
1701
1639
  g("defs", null, [
1702
1640
  g("marker", {
1703
1641
  id: `bar_arrow_${s}`,
@@ -1715,10 +1653,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1715
1653
  ]),
1716
1654
  e.plots.length > 1 ? (u(), i("line", {
1717
1655
  key: 0,
1718
- x1: v(G)(e.plots).x1 + Le(),
1719
- x2: v(G)(e.plots).x2 + Le(),
1720
- y1: v(R)(v(G)(e.plots).y1),
1721
- y2: v(R)(v(G)(e.plots).y2),
1656
+ x1: v(X)(e.plots).x1 + ke(),
1657
+ x2: v(X)(e.plots).x2 + ke(),
1658
+ y1: v(R)(v(X)(e.plots).y1),
1659
+ y2: v(R)(v(X)(e.plots).y2),
1722
1660
  "stroke-width": 1,
1723
1661
  stroke: e.color,
1724
1662
  "stroke-dasharray": 2,
@@ -1727,12 +1665,12 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1727
1665
  e.plots.length > 1 ? (u(), i("text", {
1728
1666
  key: 1,
1729
1667
  "text-anchor": "middle",
1730
- x: v(G)(e.plots).x2 + Le(),
1731
- y: v(G)(e.plots).y2 - 6,
1732
- "font-size": b.value.plotLabels,
1668
+ x: v(X)(e.plots).x2 + ke(),
1669
+ y: v(X)(e.plots).y2 - 6,
1670
+ "font-size": x.value.plotLabels,
1733
1671
  fill: e.color
1734
- }, oe(v(pe)({
1735
- v: v(G)(e.plots).trend * 100,
1672
+ }, ee(v(xe)({
1673
+ v: v(X)(e.plots).trend * 100,
1736
1674
  s: "%",
1737
1675
  r: 2
1738
1676
  })), 9, ls)) : d("", !0)
@@ -1742,17 +1680,17 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1742
1680
  key: 2,
1743
1681
  stroke: l.value.chart.grid.stroke,
1744
1682
  "stroke-width": "1",
1745
- x1: n.value.left + D.value,
1746
- x2: n.value.right - D.value,
1747
- y1: v(R)(ce.value),
1748
- y2: v(R)(ce.value),
1683
+ x1: n.value.left + G.value,
1684
+ x2: n.value.right - G.value,
1685
+ y1: v(R)(ue.value),
1686
+ y2: v(R)(ue.value),
1749
1687
  "stroke-linecap": "round",
1750
1688
  style: { animation: "none !important" }
1751
1689
  }, null, 8, as)) : d("", !0),
1752
1690
  l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ts, [
1753
1691
  g("line", {
1754
- x1: n.value.left + n.value.width / m.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
1755
- x2: n.value.left + n.value.width / m.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
1692
+ x1: n.value.left + n.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
1693
+ x2: n.value.left + n.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
1756
1694
  y1: v(R)(n.value.top),
1757
1695
  y2: v(R)(n.value.bottom),
1758
1696
  stroke: l.value.chart.highlighter.color,
@@ -1765,9 +1703,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1765
1703
  l.value.chart.grid.frame.show ? (u(), i("rect", {
1766
1704
  key: 4,
1767
1705
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1768
- x: n.value.left + D.value < 0 ? 0 : n.value.left + D.value,
1706
+ x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
1769
1707
  y: n.value.top,
1770
- width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value),
1708
+ width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value),
1771
1709
  height: n.value.height < 0 ? 0 : n.value.height,
1772
1710
  fill: "transparent",
1773
1711
  stroke: l.value.chart.grid.frame.stroke,
@@ -1779,13 +1717,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1779
1717
  l.value.chart.grid.labels.show ? (u(), i("g", {
1780
1718
  key: 5,
1781
1719
  ref_key: "scaleLabels",
1782
- ref: Jl
1720
+ ref: Pl
1783
1721
  }, [
1784
1722
  f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
1785
- (u(!0), i(h, null, y(wl.value, (e) => (u(), i("g", null, [
1723
+ (u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", null, [
1786
1724
  g("line", {
1787
- x1: e.x + D.value - n.value.individualOffsetX,
1788
- x2: e.x + D.value - n.value.individualOffsetX,
1725
+ x1: e.x + G.value - n.value.individualOffsetX,
1726
+ x2: e.x + G.value - n.value.individualOffsetX,
1789
1727
  y1: f.value.isStacked ? v(R)(n.value.bottom - e.yOffset - e.individualHeight) : v(R)(n.value.top),
1790
1728
  y2: f.value.isStacked ? v(R)(n.value.bottom - e.yOffset) : v(R)(n.value.bottom),
1791
1729
  stroke: e.color,
@@ -1794,21 +1732,21 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1794
1732
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
1795
1733
  }, null, 12, us)
1796
1734
  ]))), 256)),
1797
- (u(!0), i(h, null, y(wl.value, (e) => (u(), i("g", {
1735
+ (u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", {
1798
1736
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1799
1737
  }, [
1800
1738
  g("text", {
1801
1739
  fill: e.color,
1802
- "font-size": b.value.dataLabels * 0.8,
1740
+ "font-size": x.value.dataLabels * 0.8,
1803
1741
  "text-anchor": "middle",
1804
- transform: `translate(${e.x - b.value.dataLabels * 0.8 / 2 + D.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
1805
- }, oe(e.name) + " " + oe(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
1742
+ transform: `translate(${e.x - x.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
1743
+ }, ee(e.name) + " " + ee(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
1806
1744
  ${e.scaleLabel}` : ""), 9, rs),
1807
1745
  (u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i(h, null, [
1808
1746
  l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
1809
1747
  key: 0,
1810
- x1: e.x + 3 + D.value - l.value.chart.grid.labels.yAxis.crosshairSize - n.value.individualOffsetX,
1811
- x2: e.x + D.value - n.value.individualOffsetX,
1748
+ x1: e.x + 3 + G.value - l.value.chart.grid.labels.yAxis.crosshairSize - n.value.individualOffsetX,
1749
+ x2: e.x + G.value - n.value.individualOffsetX,
1812
1750
  y1: v(R)(s.y),
1813
1751
  y2: v(R)(s.y),
1814
1752
  stroke: e.color,
@@ -1818,15 +1756,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1818
1756
  }, null, 8, is)) : d("", !0)
1819
1757
  ], 64))), 256)),
1820
1758
  (u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i("text", {
1821
- x: e.x - 5 + D.value - n.value.individualOffsetX,
1822
- y: v(R)(s.y) + b.value.dataLabels / 3,
1823
- "font-size": b.value.dataLabels,
1759
+ x: e.x - 5 + G.value - n.value.individualOffsetX,
1760
+ y: v(R)(s.y) + x.value.dataLabels / 3,
1761
+ "font-size": x.value.dataLabels,
1824
1762
  "text-anchor": "end",
1825
1763
  fill: e.color
1826
- }, oe(v(ne)(
1764
+ }, ee(v(se)(
1827
1765
  l.value.chart.grid.labels.yAxis.formatter,
1828
1766
  s.value,
1829
- v(pe)({
1767
+ v(xe)({
1830
1768
  p: s.prefix,
1831
1769
  v: s.value,
1832
1770
  s: s.suffix,
@@ -1835,10 +1773,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1835
1773
  { datapoint: s.datapoint, seriesIndex: t }
1836
1774
  )), 9, ns))), 256))
1837
1775
  ], 4))), 256))
1838
- ], 64)) : (u(!0), i(h, { key: 1 }, y(Ra.value, (e, s) => (u(), i("g", {
1776
+ ], 64)) : (u(!0), i(h, { key: 1 }, y(La.value, (e, s) => (u(), i("g", {
1839
1777
  key: `yLabel_${s}`
1840
1778
  }, [
1841
- me(e) && e.value >= Se.value.min && e.value <= Se.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
1779
+ fe(e) && e.value >= ye.value.min && e.value <= ye.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
1842
1780
  key: 0,
1843
1781
  x1: n.value.left,
1844
1782
  x2: n.value.left - l.value.chart.grid.labels.yAxis.crosshairSize,
@@ -1849,17 +1787,17 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1849
1787
  "stroke-linecap": "round",
1850
1788
  style: { animation: "none !important" }
1851
1789
  }, null, 8, cs)) : d("", !0),
1852
- e.value >= Se.value.min && e.value <= Se.value.max ? (u(), i("text", {
1790
+ e.value >= ye.value.min && e.value <= ye.value.max ? (u(), i("text", {
1853
1791
  key: 1,
1854
1792
  x: n.value.scaleLabelX + l.value.chart.grid.labels.yAxis.crosshairSize,
1855
- y: v(T)(e.y + b.value.dataLabels / 3),
1856
- "font-size": b.value.dataLabels,
1793
+ y: v(T)(e.y + x.value.dataLabels / 3),
1794
+ "font-size": x.value.dataLabels,
1857
1795
  "text-anchor": "end",
1858
1796
  fill: l.value.chart.grid.labels.color
1859
- }, oe(me(e.value) ? v(ne)(
1797
+ }, ee(fe(e.value) ? v(se)(
1860
1798
  l.value.chart.grid.labels.yAxis.formatter,
1861
1799
  e.value,
1862
- v(pe)({
1800
+ v(xe)({
1863
1801
  p: e.prefix,
1864
1802
  v: e.value,
1865
1803
  s: e.suffix,
@@ -1868,20 +1806,20 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1868
1806
  ) : ""), 9, vs)) : d("", !0)
1869
1807
  ]))), 128))
1870
1808
  ], 512)) : d("", !0),
1871
- (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i("g", {
1809
+ (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("g", {
1872
1810
  key: `serie_plot_${s}`,
1873
- class: tl(`serie_plot_${s}`),
1811
+ class: Ue(`serie_plot_${s}`),
1874
1812
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1875
1813
  }, [
1876
1814
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
1877
1815
  key: `circle_plot_${s}_${r}`
1878
1816
  }, [
1879
- t && me(t.value) ? (u(), Oe(Xl, {
1817
+ t && fe(t.value) ? (u(), Me(Cl, {
1880
1818
  key: 0,
1881
1819
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
1882
- color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${Z.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
1820
+ color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${U.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
1883
1821
  plot: { x: v(T)(t.x), y: v(T)(t.y) },
1884
- radius: _.value !== null && _.value === r || O.value !== null && O.value === r ? (Ce.value.plot || 6) * 1.5 : Ce.value.plot || 6,
1822
+ radius: _.value !== null && _.value === r || O.value !== null && O.value === r ? ($e.value.plot || 6) * 1.5 : $e.value.plot || 6,
1885
1823
  stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
1886
1824
  strokeWidth: l.value.plot.dot.strokeWidth
1887
1825
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
@@ -1894,13 +1832,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1894
1832
  y: t.y + l.value.chart.comments.offsetY + 6
1895
1833
  }, [
1896
1834
  g("div", hs, [
1897
- U(a.$slots, "plot-comment", {
1835
+ q(a.$slots, "plot-comment", {
1898
1836
  plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
1899
1837
  }, void 0, !0)
1900
1838
  ])
1901
1839
  ], 8, ds)) : d("", !0)
1902
1840
  ]))), 128)),
1903
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), i("g", fs, [
1841
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", fs, [
1904
1842
  g("defs", null, [
1905
1843
  g("marker", {
1906
1844
  id: `plot_arrow_${s}`,
@@ -1918,10 +1856,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1918
1856
  ]),
1919
1857
  e.plots.length > 1 ? (u(), i("line", {
1920
1858
  key: 0,
1921
- x1: v(G)(e.plots).x1,
1922
- x2: v(G)(e.plots).x2,
1923
- y1: v(R)(v(G)(e.plots).y1),
1924
- y2: v(R)(v(G)(e.plots).y2),
1859
+ x1: v(X)(e.plots).x1,
1860
+ x2: v(X)(e.plots).x2,
1861
+ y1: v(R)(v(X)(e.plots).y1),
1862
+ y2: v(R)(v(X)(e.plots).y2),
1925
1863
  "stroke-width": 1,
1926
1864
  stroke: e.color,
1927
1865
  "stroke-dasharray": 2,
@@ -1930,20 +1868,20 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1930
1868
  e.plots.length > 1 ? (u(), i("text", {
1931
1869
  key: 1,
1932
1870
  "text-anchor": "middle",
1933
- x: v(G)(e.plots).x2,
1934
- y: v(G)(e.plots).y2 - 6,
1935
- "font-size": b.value.plotLabels,
1871
+ x: v(X)(e.plots).x2,
1872
+ y: v(X)(e.plots).y2 - 6,
1873
+ "font-size": x.value.plotLabels,
1936
1874
  fill: e.color
1937
- }, oe(v(pe)({
1938
- v: v(G)(e.plots).trend * 100,
1875
+ }, ee(v(xe)({
1876
+ v: v(X)(e.plots).trend * 100,
1939
1877
  s: "%",
1940
1878
  r: 2
1941
1879
  })), 9, ms)) : d("", !0)
1942
1880
  ])) : d("", !0)
1943
1881
  ], 6))), 128)),
1944
- (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i("g", {
1882
+ (u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("g", {
1945
1883
  key: `serie_line_${s}`,
1946
- class: tl(`serie_line_${s}`),
1884
+ class: Ue(`serie_line_${s}`),
1947
1885
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1948
1886
  }, [
1949
1887
  e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
@@ -1965,35 +1903,35 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
1965
1903
  }, null, 8, ps)) : d("", !0)
1966
1904
  ], 6))), 128)),
1967
1905
  a.$slots.pattern ? (u(), i("defs", ks, [
1968
- (u(!0), i(h, null, y(Re.value, (e, s) => U(a.$slots, "pattern", va({
1906
+ (u(!0), i(h, null, y(Ie.value, (e, s) => q(a.$slots, "pattern", Ql({
1969
1907
  key: `serie_pattern_slot_${s}`
1970
- }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Z.value}_${s}` }), void 0, !0)), 128))
1908
+ }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${s}` }), void 0, !0)), 128))
1971
1909
  ])) : d("", !0),
1972
- (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i("g", {
1910
+ (u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("g", {
1973
1911
  key: `serie_line_${s}`,
1974
- class: tl(`serie_line_${s}`),
1912
+ class: Ue(`serie_line_${s}`),
1975
1913
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1976
1914
  }, [
1977
1915
  e.useArea && e.plots.length > 1 ? (u(), i("g", _s, [
1978
1916
  e.smooth ? (u(!0), i(h, { key: 0 }, y(e.curveAreas, (t, r) => (u(), i(h, { key: r }, [
1979
1917
  g("path", {
1980
1918
  d: t,
1981
- fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${Z.value})` : v(Me)(e.color, l.value.line.area.opacity)
1919
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(we)(e.color, l.value.line.area.opacity)
1982
1920
  }, null, 8, ws),
1983
1921
  a.$slots.pattern ? (u(), i("path", {
1984
1922
  key: 0,
1985
1923
  d: t,
1986
- fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`
1924
+ fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
1987
1925
  }, null, 8, Ss)) : d("", !0)
1988
1926
  ], 64))), 128)) : (u(!0), i(h, { key: 1 }, y(e.area.split(";"), (t, r) => (u(), i(h, { key: r }, [
1989
1927
  g("path", {
1990
1928
  d: `M${t}Z`,
1991
- fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${Z.value})` : v(Me)(e.color, l.value.line.area.opacity)
1929
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(we)(e.color, l.value.line.area.opacity)
1992
1930
  }, null, 8, $s),
1993
1931
  a.$slots.pattern ? (u(), i("path", {
1994
1932
  key: 0,
1995
1933
  d: `M${t}Z`,
1996
- fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`
1934
+ fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
1997
1935
  }, null, 8, Ls)) : d("", !0)
1998
1936
  ], 64))), 128))
1999
1937
  ])) : d("", !0),
@@ -2018,12 +1956,12 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2018
1956
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2019
1957
  key: `circle_line_${s}_${r}`
2020
1958
  }, [
2021
- !Ha.value.linePlot && t && me(t.value) || Ha.value.linePlot && t && me(t.value) && (_.value !== null && _.value === r || O.value !== null && O.value === r) ? (u(), Oe(Xl, {
1959
+ !$a.value.linePlot && t && fe(t.value) || $a.value.linePlot && t && fe(t.value) && (_.value !== null && _.value === r || O.value !== null && O.value === r) ? (u(), Me(Cl, {
2022
1960
  key: 0,
2023
1961
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2024
- color: l.value.line.useGradient ? `url(#lineGradient_${s}_${Z.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
1962
+ color: l.value.line.useGradient ? `url(#lineGradient_${s}_${U.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2025
1963
  plot: { x: v(T)(t.x), y: v(T)(t.y) },
2026
- radius: _.value !== null && _.value === r || O.value !== null && O.value === r ? (Ce.value.line || 6) * 1.5 : Ce.value.line || 6,
1964
+ radius: _.value !== null && _.value === r || O.value !== null && O.value === r ? ($e.value.line || 6) * 1.5 : $e.value.line || 6,
2027
1965
  stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2028
1966
  strokeWidth: l.value.line.dot.strokeWidth
2029
1967
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
@@ -2036,13 +1974,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2036
1974
  y: t.y + l.value.chart.comments.offsetY + 6
2037
1975
  }, [
2038
1976
  g("div", Cs, [
2039
- U(a.$slots, "plot-comment", {
1977
+ q(a.$slots, "plot-comment", {
2040
1978
  plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
2041
1979
  }, void 0, !0)
2042
1980
  ])
2043
1981
  ], 8, zs)) : d("", !0)
2044
1982
  ], 64))), 128)),
2045
- Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), i("g", Is, [
1983
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", Is, [
2046
1984
  g("defs", null, [
2047
1985
  g("marker", {
2048
1986
  id: `line_arrow_${s}`,
@@ -2060,10 +1998,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2060
1998
  ]),
2061
1999
  e.plots.length > 1 ? (u(), i("line", {
2062
2000
  key: 0,
2063
- x1: v(G)(e.plots).x1,
2064
- x2: v(G)(e.plots).x2,
2065
- y1: v(R)(v(G)(e.plots).y1),
2066
- y2: v(R)(v(G)(e.plots).y2),
2001
+ x1: v(X)(e.plots).x1,
2002
+ x2: v(X)(e.plots).x2,
2003
+ y1: v(R)(v(X)(e.plots).y1),
2004
+ y2: v(R)(v(X)(e.plots).y2),
2067
2005
  "stroke-width": 1,
2068
2006
  stroke: e.color,
2069
2007
  "stroke-dasharray": 2,
@@ -2072,19 +2010,19 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2072
2010
  e.plots.length > 1 ? (u(), i("text", {
2073
2011
  key: 1,
2074
2012
  "text-anchor": "middle",
2075
- x: v(G)(e.plots).x2,
2076
- y: v(G)(e.plots).y2 - 6,
2077
- "font-size": b.value.plotLabels,
2013
+ x: v(X)(e.plots).x2,
2014
+ y: v(X)(e.plots).y2 - 6,
2015
+ "font-size": x.value.plotLabels,
2078
2016
  fill: e.color
2079
- }, oe(v(pe)({
2080
- v: v(G)(e.plots).trend * 100,
2017
+ }, ee(v(xe)({
2018
+ v: v(X)(e.plots).trend * 100,
2081
2019
  s: "%",
2082
2020
  r: 2
2083
2021
  })), 9, Vs)) : d("", !0)
2084
2022
  ])) : d("", !0)
2085
2023
  ], 6))), 128)),
2086
2024
  (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", Ps, [
2087
- (u(!0), i(h, null, y(We.value, (e, s) => (u(), i(h, {
2025
+ (u(!0), i(h, null, y(Pe.value, (e, s) => (u(), i(h, {
2088
2026
  key: `xLabel_bar_${s}`
2089
2027
  }, [
2090
2028
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2092,16 +2030,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2092
2030
  }, [
2093
2031
  t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || O.value !== null && O.value === r) && l.value.bar.labels.show ? (u(), i("text", {
2094
2032
  key: 0,
2095
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + K.value.line / 2 : Yl(t) + Le() / 2 - Ye.value / 2,
2033
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Ll(t) + ke() / 2 - Oe.value / 2,
2096
2034
  y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2097
2035
  "text-anchor": "middle",
2098
- "font-size": b.value.plotLabels,
2036
+ "font-size": x.value.plotLabels,
2099
2037
  fill: l.value.bar.labels.color,
2100
2038
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2101
- }, oe(me(t.value) ? v(ne)(
2039
+ }, ee(fe(t.value) ? v(se)(
2102
2040
  l.value.bar.labels.formatter,
2103
2041
  t.value,
2104
- v(pe)({
2042
+ v(xe)({
2105
2043
  p: e.prefix || l.value.chart.labels.prefix,
2106
2044
  v: t.value,
2107
2045
  s: e.suffix || l.value.chart.labels.suffix,
@@ -2114,14 +2052,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2114
2052
  ) : ""), 13, Hs)) : d("", !0),
2115
2053
  t && l.value.bar.serieName.show ? (u(), i("text", {
2116
2054
  key: 1,
2117
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + K.value.line / 2 : t.x + Le() * 1.1,
2055
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x + ke() * 1.1,
2118
2056
  y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2119
2057
  "text-anchor": "middle",
2120
- "font-size": b.value.plotLabels,
2058
+ "font-size": x.value.plotLabels,
2121
2059
  fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2122
2060
  "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2123
2061
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2124
- }, oe(l.value.bar.serieName.useAbbreviation ? v(Zt)({
2062
+ }, ee(l.value.bar.serieName.useAbbreviation ? v(Zt)({
2125
2063
  source: e.name,
2126
2064
  length: l.value.bar.serieName.abbreviationSize
2127
2065
  }) : e.name), 13, Rs)) : d("", !0)
@@ -2129,7 +2067,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2129
2067
  ], 64))), 128))
2130
2068
  ])) : d("", !0),
2131
2069
  l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Bs, [
2132
- (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i(h, {
2070
+ (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
2133
2071
  key: `xLabel_plot_${s}`
2134
2072
  }, [
2135
2073
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2140,13 +2078,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2140
2078
  x: t.x,
2141
2079
  y: t.y + l.value.plot.labels.offsetY,
2142
2080
  "text-anchor": "middle",
2143
- "font-size": b.value.plotLabels,
2081
+ "font-size": x.value.plotLabels,
2144
2082
  fill: l.value.plot.labels.color,
2145
2083
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2146
- }, oe(me(t.value) ? v(ne)(
2084
+ }, ee(fe(t.value) ? v(se)(
2147
2085
  l.value.plot.labels.formatter,
2148
2086
  t.value,
2149
- v(pe)({
2087
+ v(xe)({
2150
2088
  p: e.prefix || l.value.chart.labels.prefix,
2151
2089
  v: t.value,
2152
2090
  s: e.suffix || l.value.chart.labels.suffix,
@@ -2160,14 +2098,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2160
2098
  ], 64))), 128))
2161
2099
  ], 64))), 128))
2162
2100
  ])) : (u(), i("g", Fs, [
2163
- (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i(h, {
2101
+ (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
2164
2102
  key: `xLabel_plot_${s}`
2165
2103
  }, [
2166
2104
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2167
2105
  key: `xLabel_plot_${s}_${r}`
2168
2106
  }, [
2169
2107
  l.value.plot.tag.followValue ? (u(), i(h, { key: 1 }, [
2170
- [O.value, _.value, je.value].includes(r) && e.useTag ? (u(), i("line", {
2108
+ [O.value, _.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
2171
2109
  key: 0,
2172
2110
  class: "vue-ui-xy-tag-plot",
2173
2111
  x1: n.value.left,
@@ -2189,8 +2127,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2189
2127
  style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2190
2128
  }, [
2191
2129
  g("div", {
2192
- style: C(`padding: 3px; background:${v(Me)(e.color, 80)};color:${v(Ue)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2193
- innerHTML: v(ne)(
2130
+ style: C(`padding: 3px; background:${v(we)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2131
+ innerHTML: v(se)(
2194
2132
  l.value.plot.tag.formatter,
2195
2133
  t.value,
2196
2134
  e.name,
@@ -2204,15 +2142,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2204
2142
  ], 12, Es)) : d("", !0),
2205
2143
  t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
2206
2144
  key: 1,
2207
- x: t.x - e.name.length * (b.value.plotLabels / 2),
2145
+ x: t.x - e.name.length * (x.value.plotLabels / 2),
2208
2146
  y: t.y - 20,
2209
2147
  height: 24,
2210
2148
  width: "150",
2211
2149
  style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2212
2150
  }, [
2213
2151
  g("div", {
2214
- style: C(`padding: 3px; background:${v(Me)(e.color, 80)};color:${v(Ue)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2215
- innerHTML: v(ne)(
2152
+ style: C(`padding: 3px; background:${v(we)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2153
+ innerHTML: v(se)(
2216
2154
  l.value.plot.tag.formatter,
2217
2155
  t.value,
2218
2156
  e.name,
@@ -2229,7 +2167,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2229
2167
  ], 64))), 128))
2230
2168
  ])),
2231
2169
  l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", qs, [
2232
- (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i(h, {
2170
+ (u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
2233
2171
  key: `xLabel_line_${s}`
2234
2172
  }, [
2235
2173
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2240,13 +2178,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2240
2178
  x: t.x,
2241
2179
  y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2242
2180
  "text-anchor": "middle",
2243
- "font-size": b.value.plotLabels,
2181
+ "font-size": x.value.plotLabels,
2244
2182
  fill: l.value.line.labels.color,
2245
2183
  style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2246
- }, oe(me(t.value) ? v(ne)(
2184
+ }, ee(fe(t.value) ? v(se)(
2247
2185
  l.value.line.labels.formatter,
2248
2186
  t.value,
2249
- v(pe)({
2187
+ v(xe)({
2250
2188
  p: e.prefix || l.value.chart.labels.prefix,
2251
2189
  v: t.value,
2252
2190
  s: e.suffix || l.value.chart.labels.suffix,
@@ -2260,14 +2198,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2260
2198
  ], 64))), 128))
2261
2199
  ], 64))), 128))
2262
2200
  ])) : (u(), i("g", Zs, [
2263
- (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i(h, {
2201
+ (u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
2264
2202
  key: `xLabel_line_${s}`
2265
2203
  }, [
2266
2204
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2267
2205
  key: `xLabel_line_${s}_${r}`
2268
2206
  }, [
2269
2207
  l.value.line.tag.followValue ? (u(), i(h, { key: 1 }, [
2270
- [O.value, _.value, je.value].includes(r) && e.useTag ? (u(), i("line", {
2208
+ [O.value, _.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
2271
2209
  key: 0,
2272
2210
  class: "vue-ui-xy-tag-line",
2273
2211
  x1: n.value.left,
@@ -2289,8 +2227,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2289
2227
  style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2290
2228
  }, [
2291
2229
  g("div", {
2292
- style: C(`padding: 3px; background:${v(Me)(e.color, 80)};color:${v(Ue)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2293
- innerHTML: v(ne)(
2230
+ style: C(`padding: 3px; background:${v(we)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2231
+ innerHTML: v(se)(
2294
2232
  l.value.line.tag.formatter,
2295
2233
  t.value,
2296
2234
  e.name,
@@ -2311,8 +2249,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2311
2249
  style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2312
2250
  }, [
2313
2251
  g("div", {
2314
- style: C(`padding: 3px; background:${v(Me)(e.color, 80)};color:${v(Ue)(e.color)};width:fit-content;font-size:${b.value.plotLabels}px;border-radius: 2px;`),
2315
- innerHTML: v(ne)(
2252
+ style: C(`padding: 3px; background:${v(we)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2253
+ innerHTML: v(se)(
2316
2254
  l.value.line.tag.formatter,
2317
2255
  t.value,
2318
2256
  e.name,
@@ -2328,7 +2266,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2328
2266
  ], 64))), 128))
2329
2267
  ], 64))), 128))
2330
2268
  ])),
2331
- (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i(h, {
2269
+ (u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
2332
2270
  key: `xLabel_line_${s}`
2333
2271
  }, [
2334
2272
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2336,16 +2274,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2336
2274
  }, [
2337
2275
  t && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
2338
2276
  key: 0,
2339
- x: t.x - b.value.plotLabels,
2277
+ x: t.x - x.value.plotLabels,
2340
2278
  y: t.y,
2341
- "font-size": b.value.plotLabels,
2279
+ "font-size": x.value.plotLabels,
2342
2280
  "text-anchor": "end",
2343
2281
  fill: e.color,
2344
- innerHTML: v(Wl)({
2282
+ innerHTML: v(zl)({
2345
2283
  content: e.name,
2346
- fontSize: b.value.plotLabels,
2284
+ fontSize: x.value.plotLabels,
2347
2285
  fill: e.color,
2348
- x: t.x - b.value.plotLabels,
2286
+ x: t.x - x.value.plotLabels,
2349
2287
  y: t.y,
2350
2288
  maxWords: 2
2351
2289
  }),
@@ -2353,16 +2291,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2353
2291
  }, null, 12, lu)) : d("", !0),
2354
2292
  t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
2355
2293
  key: 1,
2356
- x: t.x + b.value.plotLabels,
2294
+ x: t.x + x.value.plotLabels,
2357
2295
  y: t.y,
2358
- "font-size": b.value.plotLabels,
2296
+ "font-size": x.value.plotLabels,
2359
2297
  "text-anchor": "start",
2360
2298
  fill: e.color,
2361
- innerHTML: v(Wl)({
2299
+ innerHTML: v(zl)({
2362
2300
  content: e.name,
2363
- fontSize: b.value.plotLabels,
2301
+ fontSize: x.value.plotLabels,
2364
2302
  fill: e.color,
2365
- x: t.x + b.value.plotLabels,
2303
+ x: t.x + x.value.plotLabels,
2366
2304
  y: t.y,
2367
2305
  maxWords: 2
2368
2306
  }),
@@ -2370,7 +2308,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2370
2308
  }, null, 12, au)) : d("", !0)
2371
2309
  ], 64))), 128))
2372
2310
  ], 64))), 128)),
2373
- (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i(h, {
2311
+ (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
2374
2312
  key: `xLabel_plot_${s}`
2375
2313
  }, [
2376
2314
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2378,16 +2316,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2378
2316
  }, [
2379
2317
  t && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
2380
2318
  key: 0,
2381
- x: t.x - b.value.plotLabels,
2319
+ x: t.x - x.value.plotLabels,
2382
2320
  y: t.y,
2383
- "font-size": b.value.plotLabels,
2321
+ "font-size": x.value.plotLabels,
2384
2322
  "text-anchor": "end",
2385
2323
  fill: e.color,
2386
- innerHTML: v(Wl)({
2324
+ innerHTML: v(zl)({
2387
2325
  content: e.name,
2388
- fontSize: b.value.plotLabels,
2326
+ fontSize: x.value.plotLabels,
2389
2327
  fill: e.color,
2390
- x: t.x - b.value.plotLabels,
2328
+ x: t.x - x.value.plotLabels,
2391
2329
  y: t.y,
2392
2330
  maxWords: 2
2393
2331
  }),
@@ -2395,16 +2333,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2395
2333
  }, null, 12, tu)) : d("", !0),
2396
2334
  t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
2397
2335
  key: 1,
2398
- x: t.x + b.value.plotLabels,
2336
+ x: t.x + x.value.plotLabels,
2399
2337
  y: t.y,
2400
- "font-size": b.value.plotLabels,
2338
+ "font-size": x.value.plotLabels,
2401
2339
  "text-anchor": "start",
2402
2340
  fill: e.color,
2403
- innerHTML: v(Wl)({
2341
+ innerHTML: v(zl)({
2404
2342
  content: e.name,
2405
- fontSize: b.value.plotLabels,
2343
+ fontSize: x.value.plotLabels,
2406
2344
  fill: e.color,
2407
- x: t.x + b.value.plotLabels,
2345
+ x: t.x + x.value.plotLabels,
2408
2346
  y: t.y,
2409
2347
  maxWords: 2
2410
2348
  }),
@@ -2414,8 +2352,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2414
2352
  ], 64))), 128)),
2415
2353
  f.value.useIndividualScale && !f.value.isStacked ? (u(), i(h, { key: 12 }, [
2416
2354
  g("defs", null, [
2417
- (u(!0), i(h, null, y(wl.value, (e, s) => (u(), i("linearGradient", {
2418
- id: `individual_scale_gradient_${Z.value}_${s}`,
2355
+ (u(!0), i(h, null, y(dl.value, (e, s) => (u(), i("linearGradient", {
2356
+ id: `individual_scale_gradient_${U.value}_${s}`,
2419
2357
  x1: "0%",
2420
2358
  x2: "100%",
2421
2359
  y1: "0%",
@@ -2433,12 +2371,12 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2433
2371
  }, null, 8, ru)
2434
2372
  ], 8, su))), 256))
2435
2373
  ]),
2436
- (u(!0), i(h, null, y(wl.value, (e, s) => (u(), i("rect", {
2437
- x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + D.value - n.value.individualOffsetX,
2374
+ (u(!0), i(h, null, y(dl.value, (e, s) => (u(), i("rect", {
2375
+ x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - n.value.individualOffsetX,
2438
2376
  y: n.value.top,
2439
2377
  width: l.value.chart.grid.labels.yAxis.labelWidth + n.value.individualOffsetX,
2440
2378
  height: n.value.height < 0 ? 10 : n.value.height,
2441
- fill: M.value === e.groupId ? `url(#individual_scale_gradient_${Z.value}_${s})` : "transparent",
2379
+ fill: M.value === e.groupId ? `url(#individual_scale_gradient_${U.value}_${s})` : "transparent",
2442
2380
  onMouseenter: (t) => M.value = e.groupId,
2443
2381
  onMouseleave: c[0] || (c[0] = (t) => M.value = null)
2444
2382
  }, null, 40, iu))), 256))
@@ -2447,81 +2385,81 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2447
2385
  l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
2448
2386
  key: 0,
2449
2387
  ref_key: "yAxisLabel",
2450
- ref: Ke,
2451
- "font-size": b.value.yAxis,
2388
+ ref: Vl,
2389
+ "font-size": x.value.yAxis,
2452
2390
  fill: l.value.chart.grid.labels.color,
2453
2391
  transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
2454
2392
  "text-anchor": "middle",
2455
2393
  style: { transition: "none" }
2456
- }, oe(l.value.chart.grid.labels.axis.yLabel), 9, nu)) : d("", !0),
2394
+ }, ee(l.value.chart.grid.labels.axis.yLabel), 9, nu)) : d("", !0),
2457
2395
  l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
2458
2396
  key: 1,
2459
2397
  ref_key: "xAxisLabel",
2460
- ref: Je,
2398
+ ref: Nl,
2461
2399
  "text-anchor": "middle",
2462
- x: se.value / 2,
2463
- y: ge.value - 3,
2464
- "font-size": b.value.yAxis,
2400
+ x: le.value / 2,
2401
+ y: ve.value - 3,
2402
+ "font-size": x.value.yAxis,
2465
2403
  fill: l.value.chart.grid.labels.color
2466
- }, oe(l.value.chart.grid.labels.axis.xLabel), 9, cu)) : d("", !0)
2404
+ }, ee(l.value.chart.grid.labels.axis.xLabel), 9, cu)) : d("", !0)
2467
2405
  ]),
2468
2406
  l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
2469
2407
  key: 13,
2470
2408
  ref_key: "timeLabelsEls",
2471
- ref: ze
2409
+ ref: ll
2472
2410
  }, [
2473
- a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(he.value, (e, s) => U(a.$slots, "time-label", va({
2411
+ a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(ne.value, (e, s) => q(a.$slots, "time-label", Ql({
2474
2412
  key: `time_label_${s}`,
2475
2413
  ref_for: !0
2476
2414
  }, {
2477
- x: n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2,
2415
+ x: n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2,
2478
2416
  y: n.value.bottom,
2479
- fontSize: b.value.xAxis,
2417
+ fontSize: x.value.xAxis,
2480
2418
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2481
- transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2}, ${n.value.bottom + b.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2419
+ transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2482
2420
  absoluteIndex: e.absoluteIndex,
2483
2421
  content: e.text,
2484
2422
  textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2485
- show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && m.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === he.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0
2486
- }), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(he.value, (e, s) => (u(), i("g", {
2423
+ show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === ne.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0
2424
+ }), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(ne.value, (e, s) => (u(), i("g", {
2487
2425
  key: `time_label_${s}`
2488
2426
  }, [
2489
- e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && m.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === he.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0 ? (u(), i(h, { key: 0 }, [
2427
+ e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === ne.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0 ? (u(), i(h, { key: 0 }, [
2490
2428
  String(e.text).includes(`
2491
2429
  `) ? (u(), i("text", {
2492
2430
  key: 1,
2493
2431
  "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2494
- "font-size": b.value.xAxis,
2432
+ "font-size": x.value.xAxis,
2495
2433
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2496
- transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2}, ${n.value.bottom + b.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2434
+ transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2497
2435
  style: C({
2498
- cursor: La() ? "pointer" : "default"
2436
+ cursor: fa() ? "pointer" : "default"
2499
2437
  }),
2500
2438
  innerHTML: v(Jt)({
2501
2439
  content: String(e.text),
2502
- fontSize: b.value.xAxis,
2440
+ fontSize: x.value.xAxis,
2503
2441
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2504
2442
  x: 0,
2505
2443
  y: 0
2506
2444
  }),
2507
- onClick: () => za(e, s)
2445
+ onClick: () => ba(e, s)
2508
2446
  }, null, 12, du)) : (u(), i("text", {
2509
2447
  key: 0,
2510
2448
  class: "vue-data-ui-time-label",
2511
2449
  "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2512
- "font-size": b.value.xAxis,
2450
+ "font-size": x.value.xAxis,
2513
2451
  fill: l.value.chart.grid.labels.xAxisLabels.color,
2514
- transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2}, ${n.value.bottom + b.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2452
+ transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2515
2453
  style: C({
2516
- cursor: La() ? "pointer" : "default"
2454
+ cursor: fa() ? "pointer" : "default"
2517
2455
  }),
2518
- onClick: () => za(e, s)
2519
- }, oe(e.text || ""), 13, vu))
2456
+ onClick: () => ba(e, s)
2457
+ }, ee(e.text || ""), 13, vu))
2520
2458
  ], 64)) : d("", !0)
2521
2459
  ]))), 128))
2522
2460
  ], 512)) : d("", !0),
2523
- Ba.value.length && !f.value.isStacked ? (u(), i("g", hu, [
2524
- (u(!0), i(h, null, y(Ba.value, (e) => (u(), i("g", {
2461
+ Aa.value.length && !f.value.isStacked ? (u(), i("g", hu, [
2462
+ (u(!0), i(h, null, y(Aa.value, (e) => (u(), i("g", {
2525
2463
  key: e.uid
2526
2464
  }, [
2527
2465
  e.yTop && e.show && isFinite(e.yTop) ? (u(), i("line", {
@@ -2554,10 +2492,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2554
2492
  x: e.x1,
2555
2493
  width: n.value.width,
2556
2494
  height: v(T)(e.areaHeight, 0),
2557
- fill: v(Me)(e.config.area.fill, e.config.area.opacity),
2495
+ fill: v(we)(e.config.area.fill, e.config.area.opacity),
2558
2496
  style: { animation: "none !important" }
2559
2497
  }, null, 8, xu)) : d("", !0),
2560
- e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", va({
2498
+ e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", Ql({
2561
2499
  key: 3,
2562
2500
  class: "vue-ui-xy-annotation-label-box"
2563
2501
  }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
@@ -2570,25 +2508,25 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2570
2508
  "font-size": e.config.label.fontSize,
2571
2509
  fill: e.config.label.color,
2572
2510
  "text-anchor": e.config.label.textAnchor
2573
- }, oe(e.config.label.text), 9, bu)) : d("", !0)
2511
+ }, ee(e.config.label.text), 9, bu)) : d("", !0)
2574
2512
  ]))), 128))
2575
2513
  ])) : d("", !0),
2576
- ra.value ? (u(), i("g", mu, [
2577
- (u(!0), i(h, null, y(m.value, (e, s) => (u(), i("rect", {
2514
+ ql.value ? (u(), i("g", mu, [
2515
+ (u(!0), i(h, null, y(b.value, (e, s) => (u(), i("rect", {
2578
2516
  key: `tooltip_trap_${s}`,
2579
- x: n.value.left + n.value.width / m.value * s,
2517
+ x: n.value.left + n.value.width / b.value * s,
2580
2518
  y: n.value.top,
2581
2519
  height: n.value.height < 0 ? 10 : n.value.height,
2582
- width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
2520
+ width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
2583
2521
  fill: "transparent",
2584
- onMouseenter: (t) => Ea(!0, s),
2585
- onMouseleave: c[1] || (c[1] = (t) => Ea(!1)),
2522
+ onMouseenter: (t) => Ca(!0, s),
2523
+ onMouseleave: c[1] || (c[1] = (t) => Ca(!1)),
2586
2524
  onClick: (t) => yt(s)
2587
2525
  }, null, 40, yu))), 128))
2588
2526
  ])) : d("", !0),
2589
2527
  l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", pu, [
2590
2528
  (u(), i("foreignObject", {
2591
- x: n.value.left + n.value.width / m.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / m.value / 2,
2529
+ x: n.value.left + n.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / b.value / 2,
2592
2530
  y: n.value.bottom,
2593
2531
  width: "200",
2594
2532
  height: "40",
@@ -2597,54 +2535,54 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2597
2535
  g("div", {
2598
2536
  class: "vue-ui-xy-time-tag",
2599
2537
  style: C(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
2600
- }, oe(he.value[(_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)].text || (_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)), 5)
2538
+ }, ee(ne.value[(_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)].text || (_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)), 5)
2601
2539
  ], 8, ku)),
2602
2540
  g("circle", {
2603
- cx: n.value.left + n.value.width / m.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
2541
+ cx: n.value.left + n.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
2604
2542
  cy: n.value.bottom,
2605
2543
  r: l.value.chart.timeTag.circleMarker.radius,
2606
2544
  fill: l.value.chart.timeTag.circleMarker.color
2607
2545
  }, null, 8, _u)
2608
2546
  ])) : d("", !0)
2609
2547
  ])) : d("", !0),
2610
- U(a.$slots, "svg", { svg: ut.value }, void 0, !0)
2548
+ q(a.$slots, "svg", { svg: ut.value }, void 0, !0)
2611
2549
  ], 512)
2612
2550
  ], 14, ho)),
2613
2551
  a.$slots.watermark ? (u(), i("div", wu, [
2614
- U(a.$slots, "watermark", ol(sl({ isPrinting: v(oa) || v(ka) })), void 0, !0)
2552
+ q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Xl) || v(na) })), void 0, !0)
2615
2553
  ])) : d("", !0),
2616
- (u(!0), i(h, null, y(Ae.value, (e, s) => (u(), i(h, {
2554
+ (u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
2617
2555
  key: `tag_line_${s}`
2618
2556
  }, [
2619
2557
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2620
2558
  key: `tag_line_${s}_${r}`
2621
2559
  }, [
2622
- [O.value, _.value, je.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
2560
+ [O.value, _.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
2623
2561
  key: 0,
2624
2562
  ref_for: !0,
2625
- ref: (o) => Bl(s, r, o, "right", "line"),
2563
+ ref: (o) => $l(s, r, o, "right", "line"),
2626
2564
  class: "vue-ui-xy-tag",
2627
2565
  "data-tag": "right",
2628
2566
  style: C({
2629
2567
  position: "fixed",
2630
- top: v(Ze)({
2631
- svgElement: _e.value,
2568
+ top: v(Ee)({
2569
+ svgElement: be.value,
2632
2570
  x: n.value.right + l.value.line.tag.fontSize / 1.5,
2633
2571
  y: t.y,
2634
- element: He.value[`${s}_${r}_right_line`],
2572
+ element: Ce.value[`${s}_${r}_right_line`],
2635
2573
  position: "right"
2636
2574
  }).top + "px",
2637
- left: v(Ze)({
2638
- svgElement: _e.value,
2575
+ left: v(Ee)({
2576
+ svgElement: be.value,
2639
2577
  x: n.value.right + l.value.line.tag.fontSize / 1.5,
2640
2578
  y: t.y,
2641
- element: He.value[`${s}_${r}_right_line`],
2579
+ element: Ce.value[`${s}_${r}_right_line`],
2642
2580
  position: "right"
2643
2581
  }).left + "px",
2644
2582
  height: "fit-content",
2645
2583
  width: "fit-content",
2646
2584
  background: e.color,
2647
- color: v(Ue)(e.color),
2585
+ color: v(Fe)(e.color),
2648
2586
  padding: "0 6px",
2649
2587
  fontSize: l.value.line.tag.fontSize + "px",
2650
2588
  opacity: 1
@@ -2659,7 +2597,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2659
2597
  ])),
2660
2598
  g("div", {
2661
2599
  class: "vue-ui-xy-tag-content",
2662
- innerHTML: v(ne)(
2600
+ innerHTML: v(se)(
2663
2601
  l.value.line.tag.formatter,
2664
2602
  t.value,
2665
2603
  e.name,
@@ -2671,32 +2609,32 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2671
2609
  )
2672
2610
  }, null, 8, Lu)
2673
2611
  ], 4)) : d("", !0),
2674
- [O.value, _.value, je.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
2612
+ [O.value, _.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
2675
2613
  key: 1,
2676
2614
  ref_for: !0,
2677
- ref: (o) => Bl(s, r, o, "left", "line"),
2615
+ ref: (o) => $l(s, r, o, "left", "line"),
2678
2616
  class: "vue-ui-xy-tag",
2679
2617
  "data-tag": "left",
2680
2618
  style: C({
2681
2619
  position: "fixed",
2682
- top: v(Ze)({
2683
- svgElement: _e.value,
2620
+ top: v(Ee)({
2621
+ svgElement: be.value,
2684
2622
  x: n.value.left - l.value.line.tag.fontSize / 1.5,
2685
2623
  y: t.y,
2686
- element: He.value[`${s}_${r}_left_line`],
2624
+ element: Ce.value[`${s}_${r}_left_line`],
2687
2625
  position: "left"
2688
2626
  }).top + "px",
2689
- left: v(Ze)({
2690
- svgElement: _e.value,
2627
+ left: v(Ee)({
2628
+ svgElement: be.value,
2691
2629
  x: n.value.left - l.value.line.tag.fontSize / 1.5,
2692
2630
  y: t.y,
2693
- element: He.value[`${s}_${r}_left_line`],
2631
+ element: Ce.value[`${s}_${r}_left_line`],
2694
2632
  position: "left"
2695
2633
  }).left + "px",
2696
2634
  height: "fit-content",
2697
2635
  width: "fit-content",
2698
2636
  background: e.color,
2699
- color: v(Ue)(e.color),
2637
+ color: v(Fe)(e.color),
2700
2638
  padding: "0 6px",
2701
2639
  fontSize: l.value.line.tag.fontSize + "px",
2702
2640
  opacity: 1
@@ -2711,7 +2649,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2711
2649
  ])),
2712
2650
  g("div", {
2713
2651
  class: "vue-ui-xy-tag-content",
2714
- innerHTML: v(ne)(
2652
+ innerHTML: v(se)(
2715
2653
  l.value.line.tag.formatter,
2716
2654
  t.value,
2717
2655
  e.name,
@@ -2725,38 +2663,38 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2725
2663
  ], 4)) : d("", !0)
2726
2664
  ], 64))), 128))
2727
2665
  ], 64))), 128)),
2728
- (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i(h, {
2666
+ (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
2729
2667
  key: `tag_plot_${s}`
2730
2668
  }, [
2731
2669
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
2732
2670
  key: `tag_plot_${s}_${r}`
2733
2671
  }, [
2734
- [O.value, _.value, je.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
2672
+ [O.value, _.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
2735
2673
  key: 0,
2736
2674
  ref_for: !0,
2737
- ref: (o) => Bl(s, r, o, "right", "plot"),
2675
+ ref: (o) => $l(s, r, o, "right", "plot"),
2738
2676
  class: "vue-ui-xy-tag",
2739
2677
  "data-tag": "right",
2740
2678
  style: C({
2741
2679
  position: "fixed",
2742
- top: v(Ze)({
2743
- svgElement: _e.value,
2680
+ top: v(Ee)({
2681
+ svgElement: be.value,
2744
2682
  x: n.value.right + l.value.plot.tag.fontSize / 1.5,
2745
2683
  y: t.y,
2746
- element: He.value[`${s}_${r}_right_plot`],
2684
+ element: Ce.value[`${s}_${r}_right_plot`],
2747
2685
  position: "right"
2748
2686
  }).top + "px",
2749
- left: v(Ze)({
2750
- svgElement: _e.value,
2687
+ left: v(Ee)({
2688
+ svgElement: be.value,
2751
2689
  x: n.value.right + l.value.plot.tag.fontSize / 1.5,
2752
2690
  y: t.y,
2753
- element: He.value[`${s}_${r}_right_plot`],
2691
+ element: Ce.value[`${s}_${r}_right_plot`],
2754
2692
  position: "right"
2755
2693
  }).left + "px",
2756
2694
  height: "fit-content",
2757
2695
  width: "fit-content",
2758
2696
  background: e.color,
2759
- color: v(Ue)(e.color),
2697
+ color: v(Fe)(e.color),
2760
2698
  padding: "0 6px",
2761
2699
  fontSize: l.value.plot.tag.fontSize + "px",
2762
2700
  opacity: 1
@@ -2771,7 +2709,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2771
2709
  ])),
2772
2710
  g("div", {
2773
2711
  class: "vue-ui-xy-tag-content",
2774
- innerHTML: v(ne)(
2712
+ innerHTML: v(se)(
2775
2713
  l.value.plot.tag.formatter,
2776
2714
  t.value,
2777
2715
  e.name,
@@ -2783,32 +2721,32 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2783
2721
  )
2784
2722
  }, null, 8, Tu)
2785
2723
  ], 4)) : d("", !0),
2786
- [O.value, _.value, je.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
2724
+ [O.value, _.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
2787
2725
  key: 1,
2788
2726
  ref_for: !0,
2789
- ref: (o) => Bl(s, r, o, "left", "plot"),
2727
+ ref: (o) => $l(s, r, o, "left", "plot"),
2790
2728
  class: "vue-ui-xy-tag",
2791
2729
  "data-tag": "left",
2792
2730
  style: C({
2793
2731
  position: "fixed",
2794
- top: v(Ze)({
2795
- svgElement: _e.value,
2732
+ top: v(Ee)({
2733
+ svgElement: be.value,
2796
2734
  x: n.value.left - l.value.plot.tag.fontSize / 1.5,
2797
2735
  y: t.y,
2798
- element: He.value[`${s}_${r}_left_plot`],
2736
+ element: Ce.value[`${s}_${r}_left_plot`],
2799
2737
  position: "left"
2800
2738
  }).top + "px",
2801
- left: v(Ze)({
2802
- svgElement: _e.value,
2739
+ left: v(Ee)({
2740
+ svgElement: be.value,
2803
2741
  x: n.value.left - l.value.plot.tag.fontSize / 1.5,
2804
2742
  y: t.y,
2805
- element: He.value[`${s}_${r}_left_plot`],
2743
+ element: Ce.value[`${s}_${r}_left_plot`],
2806
2744
  position: "left"
2807
2745
  }).left + "px",
2808
2746
  height: "fit-content",
2809
2747
  width: "fit-content",
2810
2748
  background: e.color,
2811
- color: v(Ue)(e.color),
2749
+ color: v(Fe)(e.color),
2812
2750
  padding: "0 6px",
2813
2751
  fontSize: l.value.plot.tag.fontSize + "px",
2814
2752
  opacity: 1
@@ -2823,7 +2761,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2823
2761
  ])),
2824
2762
  g("div", {
2825
2763
  class: "vue-ui-xy-tag-content",
2826
- innerHTML: v(ne)(
2764
+ innerHTML: v(se)(
2827
2765
  l.value.plot.tag.formatter,
2828
2766
  t.value,
2829
2767
  e.name,
@@ -2837,15 +2775,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2837
2775
  ], 4)) : d("", !0)
2838
2776
  ], 64))), 128))
2839
2777
  ], 64))), 128)),
2840
- l.value.chart.zoom.show && Ee.value > 6 && aa.value ? (u(), Oe(ao, {
2778
+ l.value.chart.zoom.show && Ve.value > 6 && El.value ? (u(), Me(to, {
2841
2779
  ref_key: "chartSlicer",
2842
- ref: F,
2843
- key: `slicer_${Ql.value}`,
2780
+ ref: Se,
2781
+ key: `slicer_${Rl.value}`,
2844
2782
  background: l.value.chart.zoom.color,
2845
2783
  fontSize: l.value.chart.zoom.fontSize,
2846
2784
  useResetSlot: l.value.chart.zoom.useResetSlot,
2847
- labelLeft: he.value[0].text,
2848
- labelRight: he.value.at(-1).text,
2785
+ labelLeft: ne.value[0].text,
2786
+ labelRight: ne.value.at(-1).text,
2849
2787
  textColor: l.value.chart.color,
2850
2788
  inputColor: l.value.chart.zoom.color,
2851
2789
  selectColor: l.value.chart.zoom.highlightColor,
@@ -2859,7 +2797,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2859
2797
  minimapSelectedIndex: _.value,
2860
2798
  minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
2861
2799
  verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
2862
- max: Ee.value,
2800
+ max: Ve.value,
2863
2801
  min: 0,
2864
2802
  valueStart: S.value.start,
2865
2803
  valueEnd: S.value.end,
@@ -2868,30 +2806,30 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2868
2806
  end: S.value.end,
2869
2807
  "onUpdate:end": c[3] || (c[3] = (e) => S.value.end = e),
2870
2808
  refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
2871
- refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...gl.dataset.map((e) => v(qe)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2809
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Il.dataset.map((e) => v(Ye)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2872
2810
  enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
2873
2811
  enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
2874
2812
  onReset: mt,
2875
2813
  onTrapMouse: gt
2876
2814
  }, {
2877
- "reset-action": ie(({ reset: e }) => [
2878
- U(a.$slots, "reset-action", ol(sl({ reset: e })), void 0, !0)
2815
+ "reset-action": oe(({ reset: e }) => [
2816
+ q(a.$slots, "reset-action", Ze(Je({ reset: e })), void 0, !0)
2879
2817
  ]),
2880
2818
  _: 3
2881
2819
  }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0),
2882
2820
  l.value.chart.legend.show ? (u(), i("div", {
2883
2821
  key: 6,
2884
2822
  ref_key: "chartLegend",
2885
- ref: J,
2823
+ ref: el,
2886
2824
  class: "vue-ui-xy-legend",
2887
2825
  style: C(`font-size:${l.value.chart.legend.fontSize}px`)
2888
2826
  }, [
2889
- (u(!0), i(h, null, y(Be.value, (e, s) => (u(), i("div", {
2827
+ (u(!0), i(h, null, y(Te.value, (e, s) => (u(), i("div", {
2890
2828
  key: `div_legend_item_${s}`,
2891
- onClick: (t) => Pa(e),
2892
- class: tl({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ue.value.includes(e.id) })
2829
+ onClick: (t) => Sa(e),
2830
+ class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ae.value.includes(e.id) })
2893
2831
  }, [
2894
- yl.value[e.type] === "line" ? (u(), i("svg", Hu, [
2832
+ il.value[e.type] === "line" ? (u(), i("svg", Hu, [
2895
2833
  g("rect", {
2896
2834
  x: "0",
2897
2835
  y: "7.5",
@@ -2902,7 +2840,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2902
2840
  width: "20",
2903
2841
  fill: e.color
2904
2842
  }, null, 8, Ru),
2905
- Al(Xl, {
2843
+ xl(Cl, {
2906
2844
  plot: { x: 10, y: 9 },
2907
2845
  radius: 4,
2908
2846
  color: e.color,
@@ -2910,8 +2848,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2910
2848
  stroke: l.value.chart.backgroundColor,
2911
2849
  strokeWidth: 0.5
2912
2850
  }, null, 8, ["color", "shape", "stroke"])
2913
- ])) : yl.value[e.type] === "bar" ? (u(), i("svg", Bu, [
2914
- yl.value[e.type] === "bar" && a.$slots.pattern ? (u(), i("rect", {
2851
+ ])) : il.value[e.type] === "bar" ? (u(), i("svg", Bu, [
2852
+ il.value[e.type] === "bar" && a.$slots.pattern ? (u(), i("rect", {
2915
2853
  key: 0,
2916
2854
  x: "0",
2917
2855
  y: "0",
@@ -2921,7 +2859,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2921
2859
  stroke: "none",
2922
2860
  fill: e.color
2923
2861
  }, null, 8, Yu)) : d("", !0),
2924
- yl.value[e.type] === "bar" ? (u(), i("rect", {
2862
+ il.value[e.type] === "bar" ? (u(), i("rect", {
2925
2863
  key: 1,
2926
2864
  x: "0",
2927
2865
  y: "0",
@@ -2929,10 +2867,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2929
2867
  height: "40",
2930
2868
  width: "40",
2931
2869
  stroke: "none",
2932
- fill: a.$slots.pattern ? `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})` : e.color
2870
+ fill: a.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
2933
2871
  }, null, 8, Fu)) : d("", !0)
2934
2872
  ])) : (u(), i("svg", Eu, [
2935
- Al(Xl, {
2873
+ xl(Cl, {
2936
2874
  plot: { x: 6, y: 6 },
2937
2875
  radius: 5,
2938
2876
  color: e.color,
@@ -2941,25 +2879,25 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2941
2879
  ])),
2942
2880
  g("span", {
2943
2881
  style: C(`color:${l.value.chart.legend.color}`)
2944
- }, oe(e.name), 5)
2882
+ }, ee(e.name), 5)
2945
2883
  ], 10, Pu))), 128))
2946
2884
  ], 4)) : (u(), i("div", {
2947
2885
  key: 7,
2948
2886
  ref_key: "chartLegend",
2949
- ref: J
2887
+ ref: el
2950
2888
  }, [
2951
- U(a.$slots, "legend", { legend: Be.value }, void 0, !0)
2889
+ q(a.$slots, "legend", { legend: Te.value }, void 0, !0)
2952
2890
  ], 512)),
2953
2891
  a.$slots.source ? (u(), i("div", {
2954
2892
  key: 8,
2955
2893
  ref_key: "source",
2956
- ref: ke,
2894
+ ref: ul,
2957
2895
  dir: "auto"
2958
2896
  }, [
2959
- U(a.$slots, "source", {}, void 0, !0)
2897
+ q(a.$slots, "source", {}, void 0, !0)
2960
2898
  ], 512)) : d("", !0),
2961
- Al(v(ql), {
2962
- show: f.value.showTooltip && xa.value,
2899
+ xl(v(Ja), {
2900
+ show: f.value.showTooltip && oa.value,
2963
2901
  backgroundColor: l.value.chart.tooltip.backgroundColor,
2964
2902
  color: l.value.chart.tooltip.color,
2965
2903
  fontSize: l.value.chart.tooltip.fontSize,
@@ -2971,18 +2909,18 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2971
2909
  offsetY: l.value.chart.tooltip.offsetY,
2972
2910
  parent: a.$refs.chart,
2973
2911
  content: Ct.value,
2974
- isFullscreen: vl.value,
2912
+ isFullscreen: al.value,
2975
2913
  isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
2976
2914
  }, {
2977
- "tooltip-before": ie(() => [
2978
- U(a.$slots, "tooltip-before", ol(sl({ ...Ya.value })), void 0, !0)
2915
+ "tooltip-before": oe(() => [
2916
+ q(a.$slots, "tooltip-before", Ze(Je({ ...Ma.value })), void 0, !0)
2979
2917
  ]),
2980
- "tooltip-after": ie(() => [
2981
- U(a.$slots, "tooltip-after", ol(sl({ ...Ya.value })), void 0, !0)
2918
+ "tooltip-after": oe(() => [
2919
+ q(a.$slots, "tooltip-after", Ze(Je({ ...Ma.value })), void 0, !0)
2982
2920
  ]),
2983
2921
  _: 3
2984
2922
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2985
- aa.value ? (u(), Oe(v(nl), {
2923
+ El.value ? (u(), Me(v(et), {
2986
2924
  key: 9,
2987
2925
  hideDetails: "",
2988
2926
  config: {
@@ -2998,46 +2936,46 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
2998
2936
  }
2999
2937
  }
3000
2938
  }, {
3001
- content: ie(() => [
2939
+ content: oe(() => [
3002
2940
  g("div", {
3003
- style: C(`${v(oa) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2941
+ style: C(`${v(Xl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
3004
2942
  }, [
3005
2943
  g("div", Wu, [
3006
2944
  Ht(g("input", {
3007
2945
  type: "checkbox",
3008
- "onUpdate:modelValue": c[4] || (c[4] = (e) => pl.value = e)
2946
+ "onUpdate:modelValue": c[4] || (c[4] = (e) => nl.value = e)
3009
2947
  }, null, 512), [
3010
- [Rt, pl.value]
2948
+ [Rt, nl.value]
3011
2949
  ]),
3012
2950
  g("div", {
3013
- onClick: c[5] || (c[5] = (e) => pl.value = !pl.value),
2951
+ onClick: c[5] || (c[5] = (e) => nl.value = !nl.value),
3014
2952
  style: { cursor: "pointer" }
3015
2953
  }, [
3016
- Al(v(Cl), {
2954
+ xl(v(Qa), {
3017
2955
  name: "chartLine",
3018
2956
  size: 20,
3019
2957
  stroke: l.value.chart.color
3020
2958
  }, null, 8, ["stroke"])
3021
2959
  ])
3022
2960
  ]),
3023
- pl.value ? (u(), Oe(v(Il), {
3024
- key: `sparkline_${jl.value}`,
2961
+ nl.value ? (u(), Me(v(ja), {
2962
+ key: `sparkline_${Bl.value}`,
3025
2963
  dataset: Lt.value,
3026
2964
  config: At.value
3027
- }, null, 8, ["dataset", "config"])) : (u(), Oe(v(il), {
3028
- key: `table_${ma.value}`,
3029
- colNames: Fl.value.colNames,
3030
- head: Fl.value.head,
3031
- body: Fl.value.body,
3032
- config: Fl.value.config,
2965
+ }, null, 8, ["dataset", "config"])) : (u(), Me(v(Za), {
2966
+ key: `table_${ua.value}`,
2967
+ colNames: Al.value.colNames,
2968
+ head: Al.value.head,
2969
+ body: Al.value.body,
2970
+ config: Al.value.config,
3033
2971
  title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
3034
2972
  onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
3035
2973
  }, {
3036
- th: ie(({ th: e }) => [
2974
+ th: oe(({ th: e }) => [
3037
2975
  g("div", { innerHTML: e }, null, 8, Xu)
3038
2976
  ]),
3039
- td: ie(({ td: e }) => [
3040
- Bt(oe(isNaN(Number(e)) ? e : v(pe)({
2977
+ td: oe(({ td: e }) => [
2978
+ Bt(ee(isNaN(Number(e)) ? e : v(xe)({
3041
2979
  p: l.value.chart.labels.prefix,
3042
2980
  v: e,
3043
2981
  s: l.value.chart.labels.suffix,
@@ -3050,10 +2988,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
3050
2988
  ]),
3051
2989
  _: 1
3052
2990
  }, 8, ["config"])) : d("", !0),
3053
- v(ta) ? (u(), Oe(ro, { key: 10 })) : d("", !0)
2991
+ v(Wl) ? (u(), Me(io, { key: 10 })) : d("", !0)
3054
2992
  ], 46, vo));
3055
2993
  }
3056
- }, or = /* @__PURE__ */ no(Gu, [["__scopeId", "data-v-15ae1d7f"]]);
2994
+ }, sr = /* @__PURE__ */ co(Gu, [["__scopeId", "data-v-f212d652"]]);
3057
2995
  export {
3058
- or as default
2996
+ sr as default
3059
2997
  };