vue-data-ui 3.17.9 → 3.17.10

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 (126) hide show
  1. package/dist/{PackageVersion-Ov37I8ii.js → PackageVersion-OCIkUsLh.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-age-pyramid.js +1 -1
  4. package/dist/components/vue-ui-bullet.js +1 -1
  5. package/dist/components/vue-ui-bump.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-cursor.js +1 -1
  12. package/dist/components/vue-ui-dag.js +1 -1
  13. package/dist/components/vue-ui-dashboard.js +1 -1
  14. package/dist/components/vue-ui-digits.js +1 -1
  15. package/dist/components/vue-ui-donut-evolution.js +1 -1
  16. package/dist/components/vue-ui-donut.js +1 -1
  17. package/dist/components/vue-ui-dumbbell.js +1 -1
  18. package/dist/components/vue-ui-flow.js +1 -1
  19. package/dist/components/vue-ui-funnel.js +1 -1
  20. package/dist/components/vue-ui-galaxy.js +1 -1
  21. package/dist/components/vue-ui-gauge.js +1 -1
  22. package/dist/components/vue-ui-geo.js +1 -1
  23. package/dist/components/vue-ui-gizmo.js +1 -1
  24. package/dist/components/vue-ui-heatmap.js +1 -1
  25. package/dist/components/vue-ui-history-plot.js +1 -1
  26. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  27. package/dist/components/vue-ui-kpi.js +1 -1
  28. package/dist/components/vue-ui-molecule.js +1 -1
  29. package/dist/components/vue-ui-mood-radar.js +1 -1
  30. package/dist/components/vue-ui-nested-donuts.js +1 -1
  31. package/dist/components/vue-ui-onion.js +1 -1
  32. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  33. package/dist/components/vue-ui-quadrant.js +1 -1
  34. package/dist/components/vue-ui-quick-chart.js +1 -1
  35. package/dist/components/vue-ui-radar.js +1 -1
  36. package/dist/components/vue-ui-relation-circle.js +1 -1
  37. package/dist/components/vue-ui-ridgeline.js +1 -1
  38. package/dist/components/vue-ui-rings.js +1 -1
  39. package/dist/components/vue-ui-scatter.js +1 -1
  40. package/dist/components/vue-ui-skeleton.js +1 -1
  41. package/dist/components/vue-ui-spark-trend.js +1 -1
  42. package/dist/components/vue-ui-sparkbar.js +1 -1
  43. package/dist/components/vue-ui-sparkgauge.js +1 -1
  44. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  45. package/dist/components/vue-ui-sparkline.js +1 -1
  46. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  47. package/dist/components/vue-ui-stackbar.js +1 -1
  48. package/dist/components/vue-ui-stackline.js +1 -1
  49. package/dist/components/vue-ui-strip-plot.js +1 -1
  50. package/dist/components/vue-ui-table-sparkline.js +1 -1
  51. package/dist/components/vue-ui-table.js +1 -1
  52. package/dist/components/vue-ui-thermometer.js +1 -1
  53. package/dist/components/vue-ui-timer.js +1 -1
  54. package/dist/components/vue-ui-tiremarks.js +1 -1
  55. package/dist/components/vue-ui-treemap.js +1 -1
  56. package/dist/components/vue-ui-vertical-bar.js +1 -1
  57. package/dist/components/vue-ui-waffle.js +1 -1
  58. package/dist/components/vue-ui-wheel.js +1 -1
  59. package/dist/components/vue-ui-word-cloud.js +1 -1
  60. package/dist/components/vue-ui-world.js +1 -1
  61. package/dist/components/vue-ui-xy-canvas.js +1 -1
  62. package/dist/components/vue-ui-xy.js +1 -1
  63. package/dist/style.css +1 -1
  64. package/dist/{vue-data-ui-C1Z1RCcf.js → vue-data-ui-DYNbFkGt.js} +61 -61
  65. package/dist/vue-data-ui.js +61 -61
  66. package/dist/{vue-ui-3d-bar-BqqCv_L2.js → vue-ui-3d-bar-DJ43Dkby.js} +1 -1
  67. package/dist/{vue-ui-age-pyramid-C-2sRuVe.js → vue-ui-age-pyramid-BO0YDf_8.js} +1 -1
  68. package/dist/{vue-ui-bullet-CkBMlG46.js → vue-ui-bullet-C-dqH5eq.js} +3 -3
  69. package/dist/{vue-ui-bump-DxBzf8_x.js → vue-ui-bump-BtxI6HWw.js} +1 -1
  70. package/dist/{vue-ui-candlestick-CQw6E5XK.js → vue-ui-candlestick-BD08JvJ8.js} +1 -1
  71. package/dist/{vue-ui-carousel-table-ehHnnwYQ.js → vue-ui-carousel-table-BMFNoYL0.js} +1 -1
  72. package/dist/{vue-ui-chestnut-CEG1n9Bg.js → vue-ui-chestnut-Dn-IitwX.js} +1 -1
  73. package/dist/{vue-ui-chord-Bm8sj1jg.js → vue-ui-chord-ZEI5m37p.js} +4 -4
  74. package/dist/{vue-ui-circle-pack-BhtBzyoU.js → vue-ui-circle-pack-CvpW9MxZ.js} +1 -1
  75. package/dist/{vue-ui-cursor-KjOp9R9e.js → vue-ui-cursor-BJR77xCX.js} +1 -1
  76. package/dist/{vue-ui-dag-DsBuepaA.js → vue-ui-dag-BRI0rmm8.js} +1 -1
  77. package/dist/{vue-ui-dashboard-ClvBMAzA.js → vue-ui-dashboard-CqUkFO7D.js} +58 -58
  78. package/dist/{vue-ui-digits-CUN5zijI.js → vue-ui-digits-BhgIf6nU.js} +1 -1
  79. package/dist/{vue-ui-donut-B1EgAu-L.js → vue-ui-donut-DA3TQ8t3.js} +3 -3
  80. package/dist/{vue-ui-donut-evolution-5PjaWTvx.js → vue-ui-donut-evolution-CzQkTkEl.js} +4 -4
  81. package/dist/{vue-ui-dumbbell-D8hAgMko.js → vue-ui-dumbbell-BF95pHAT.js} +3 -3
  82. package/dist/{vue-ui-flow-jJLellQk.js → vue-ui-flow-D_n3vQ84.js} +3 -3
  83. package/dist/{vue-ui-funnel-C4JIWkGm.js → vue-ui-funnel-l55PG0DO.js} +2 -2
  84. package/dist/{vue-ui-galaxy-CuqTB4XR.js → vue-ui-galaxy-BE07tlR5.js} +3 -3
  85. package/dist/{vue-ui-gauge-B5bJUzMr.js → vue-ui-gauge-DJv0lMjM.js} +1 -1
  86. package/dist/{vue-ui-geo-BJiW5vL1.js → vue-ui-geo-COKjFdL9.js} +1 -1
  87. package/dist/{vue-ui-gizmo-D5e5T4fu.js → vue-ui-gizmo-xugwcOxY.js} +1 -1
  88. package/dist/{vue-ui-heatmap-Bsr9R8ek.js → vue-ui-heatmap-CnTq5kL5.js} +1 -1
  89. package/dist/{vue-ui-history-plot-pXrD1Fm7.js → vue-ui-history-plot-BvUxlkve.js} +3 -3
  90. package/dist/{vue-ui-horizontal-bar-7HugQ0dT.js → vue-ui-horizontal-bar-Qob2an-5.js} +1 -1
  91. package/dist/{vue-ui-kpi-BLVCrWfG.js → vue-ui-kpi-Bxfq7VT4.js} +1 -1
  92. package/dist/{vue-ui-molecule-DhIWpt07.js → vue-ui-molecule-BgsxFj9K.js} +1 -1
  93. package/dist/{vue-ui-mood-radar-BUpDYe22.js → vue-ui-mood-radar-DwunuK-0.js} +3 -3
  94. package/dist/{vue-ui-nested-donuts-JhqmPAhH.js → vue-ui-nested-donuts-CsV7nffD.js} +3 -3
  95. package/dist/{vue-ui-onion-DUSgz_9-.js → vue-ui-onion-DMQvjYd8.js} +3 -3
  96. package/dist/{vue-ui-parallel-coordinate-plot-Cbn9N0y0.js → vue-ui-parallel-coordinate-plot-B8JDBEhk.js} +3 -3
  97. package/dist/{vue-ui-quadrant-Foz7WuoD.js → vue-ui-quadrant-DhVnFb1P.js} +1 -1
  98. package/dist/{vue-ui-quick-chart-DVH6A-Nr.js → vue-ui-quick-chart-9u6FGFk1.js} +3 -3
  99. package/dist/{vue-ui-radar-CDpMulQa.js → vue-ui-radar-A2kNKbah.js} +4 -4
  100. package/dist/{vue-ui-relation-circle-ChtfTtXY.js → vue-ui-relation-circle-B1pu_dZW.js} +1 -1
  101. package/dist/{vue-ui-ridgeline-DXs-IeYj.js → vue-ui-ridgeline-DNZzd6l1.js} +2 -2
  102. package/dist/{vue-ui-rings-BfhsTTW_.js → vue-ui-rings-CYRL9sU-.js} +89 -89
  103. package/dist/{vue-ui-scatter-CYWGf_oA.js → vue-ui-scatter-CnoApfMm.js} +3 -3
  104. package/dist/{vue-ui-skeleton-BPUPkwbA.js → vue-ui-skeleton-BoheA1WR.js} +1 -1
  105. package/dist/{vue-ui-spark-trend-Cz7B6dw6.js → vue-ui-spark-trend-CWWccv_p.js} +1 -1
  106. package/dist/{vue-ui-sparkbar-Dv89_7Pf.js → vue-ui-sparkbar-BpCJ8IBM.js} +1 -1
  107. package/dist/{vue-ui-sparkgauge-BOPXQq5e.js → vue-ui-sparkgauge-C2Jppkjl.js} +1 -1
  108. package/dist/{vue-ui-sparkhistogram-BXYBq4wu.js → vue-ui-sparkhistogram-kMgA5j-r.js} +1 -1
  109. package/dist/{vue-ui-sparkline-B-CVRLdL.js → vue-ui-sparkline-DL1pcky1.js} +1 -1
  110. package/dist/{vue-ui-sparkstackbar-Dg3wvlR7.js → vue-ui-sparkstackbar-DVCplefC.js} +1 -1
  111. package/dist/{vue-ui-stackbar-Dojc9vet.js → vue-ui-stackbar-ClZlFibi.js} +3 -3
  112. package/dist/{vue-ui-stackline-BrZw5IXj.js → vue-ui-stackline-Dzm-DlLm.js} +3 -3
  113. package/dist/{vue-ui-strip-plot-Jqkr7XWO.js → vue-ui-strip-plot-C0oVTAet.js} +1 -1
  114. package/dist/{vue-ui-table-B_TE9dWt.js → vue-ui-table-UpiN8NRB.js} +2 -2
  115. package/dist/{vue-ui-table-sparkline-DtryAFeu.js → vue-ui-table-sparkline-SyFYZKiD.js} +1 -1
  116. package/dist/{vue-ui-thermometer-Cf2u4_lH.js → vue-ui-thermometer-mdoEvbGq.js} +1 -1
  117. package/dist/{vue-ui-timer-BCw6IHHQ.js → vue-ui-timer-g_vHhYoO.js} +1 -1
  118. package/dist/{vue-ui-tiremarks-AOLQC2Pm.js → vue-ui-tiremarks-J3YZB9E7.js} +1 -1
  119. package/dist/{vue-ui-treemap-C8MtnLLV.js → vue-ui-treemap-DeLxdMkS.js} +3 -3
  120. package/dist/{vue-ui-waffle-DvQ-_joz.js → vue-ui-waffle-COcLNy_1.js} +3 -3
  121. package/dist/{vue-ui-wheel-BzBzZw1d.js → vue-ui-wheel-maRx4Fii.js} +1 -1
  122. package/dist/{vue-ui-word-cloud-LrVTAPzW.js → vue-ui-word-cloud-CAVyA-2-.js} +1 -1
  123. package/dist/{vue-ui-world-7DPU6qqx.js → vue-ui-world-CELDZIyL.js} +3 -3
  124. package/dist/{vue-ui-xy-XsqGdS48.js → vue-ui-xy-B12Jzl2G.js} +4 -4
  125. package/dist/{vue-ui-xy-canvas--zevqB3i.js → vue-ui-xy-canvas-DWZz3tHh.js} +638 -638
  126. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { defineAsyncComponent as ze, ref as c, computed as g, useSlots as vl, onMounted as Ja, toRefs as cl, watch as E, nextTick as Te, onBeforeUnmount as sa, watchEffect as ua, shallowRef as na, openBlock as I, createElementBlock as $e, normalizeClass as dl, normalizeStyle as ve, createElementVNode as H, toDisplayString as Ae, createBlock as q, createCommentVNode as W, unref as z, createSlots as Qa, withCtx as b, renderSlot as C, normalizeProps as j, guardReactiveProps as G, createVNode as et, Teleport as hl, resolveDynamicComponent as fl, mergeProps as ml, createTextVNode as at } from "vue";
2
- import { j as yl, t as tt, m as gl, p as se, $ as pl, n as bl, D as ra, k as ce, l as de, s as lt, H as xl, a8 as Ll, J as Cl, o as kl, q as wl, T as ia, u as Ie, x as Sl, a0 as zl, a1 as Tl, U as ot } from "./lib-DMzrGQHK.js";
3
- import { c as $l, a as va, d as Al, t as Il, u as Ml, l as T, r as Ve, b as Q, p as st } from "./useResponsive-DfdjqQps.js";
4
- import { u as Fl, a as ut, b as Pl } from "./useTimeLabels-Cv0tD9In.js";
1
+ import { defineAsyncComponent as ze, ref as c, computed as g, useSlots as vl, onMounted as Jt, toRefs as cl, watch as E, nextTick as Te, onBeforeUnmount as st, watchEffect as ut, shallowRef as nt, openBlock as I, createElementBlock as $e, normalizeClass as dl, normalizeStyle as ve, createElementVNode as H, toDisplayString as Ae, createBlock as q, createCommentVNode as W, unref as z, createSlots as Qt, withCtx as b, renderSlot as C, normalizeProps as j, guardReactiveProps as G, createVNode as ea, Teleport as hl, resolveDynamicComponent as fl, mergeProps as ml, createTextVNode as ta } from "vue";
2
+ import { j as yl, t as aa, m as gl, p as se, $ as pl, n as bl, D as rt, k as ce, l as de, s as la, H as xl, a8 as Ll, J as Cl, o as kl, q as wl, T as it, u as Ie, x as Sl, a0 as zl, a1 as Tl, U as oa } from "./lib-DMzrGQHK.js";
3
+ import { c as $l, a as vt, d as Al, t as Il, u as Ml, l as T, r as Ve, b as Q, p as sa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Fl, a as ua, b as Pl } from "./useTimeLabels-Cv0tD9In.js";
5
5
  import { u as Rl } from "./useConfig-B70q17MC.js";
6
6
  import { u as Dl, B as Ol } from "./BaseScanner-C2j3TsSY.js";
7
7
  import { u as El } from "./usePrinter-C4t8DdQ-.js";
@@ -22,12 +22,12 @@ const Zl = ["id"], Kl = ["id"], Jl = {
22
22
  class: "sr-only",
23
23
  "aria-live": "polite",
24
24
  "aria-atomic": "true"
25
- }, Ql = ["id"], eo = ["aria-label", "aria-describedby"], ao = {
25
+ }, Ql = ["id"], eo = ["aria-label", "aria-describedby"], to = {
26
26
  key: 0,
27
27
  style: { position: "absolute", top: "100%", left: "0", width: "100%" },
28
28
  "data-dom-to-png-ignore": "",
29
29
  "aria-hidden": "true"
30
- }, to = ["id"], lo = ["onClick"], oo = {
30
+ }, ao = ["id"], lo = ["onClick"], oo = {
31
31
  key: 4,
32
32
  class: "vue-data-ui-watermark"
33
33
  }, so = ["innerHTML"], uo = {
@@ -51,39 +51,39 @@ const Zl = ["id"], Kl = ["id"], Jl = {
51
51
  }
52
52
  },
53
53
  emits: ["selectLegend", "selectX", "copyAlt"],
54
- setup(ca, { expose: nt, emit: rt }) {
55
- const it = ze(() => import("./Tooltip-Cvt7Fi0Q.js")), vt = ze(() => import("./DataTable-cMnb68Ik.js")), ct = ze(
54
+ setup(ct, { expose: na, emit: ra }) {
55
+ const ia = ze(() => import("./Tooltip-Cvt7Fi0Q.js")), va = ze(() => import("./DataTable-cMnb68Ik.js")), ca = ze(
56
56
  () => import("./UserOptions-DVduN6X7.js")
57
- ), dt = ze(
57
+ ), da = ze(
58
58
  () => import("./NonSvgPenAndPaper-B6E0zEYe.js")
59
- ), ht = ze(
59
+ ), ha = ze(
60
60
  () => import("./BaseDraggableDialog-Di8Hlru3.js")
61
- ), { vue_ui_xy_canvas: ft } = Rl(), { isThemeValid: mt, warnInvalidTheme: yt } = Nl(), D = ca, Z = c(yl()), K = c(null), ue = c(null), v = c(null), y = c(1), ee = c(1), he = c(!1), h = c(null), fe = c(""), Me = c(null), p = c([]), ne = c(1), N = c(!0), X = c(!0), Fe = c(null), da = c(0), me = c(!1), ha = c(null), fa = c(null), ae = c(null), ma = c(null), Ye = c(0), qe = c(0), je = c(0), _ = c(null), ya = c(!1), ye = c(null), Ge = c(null), ge = c(!1), ga = c(!1), Pe = c(!1), $ = c(null), Ze = c(!1), Re = c(!1), Ke = c(!1), V = c(null), pa = c({ x: 0, y: 0 }), U = g(
61
+ ), { vue_ui_xy_canvas: fa } = Rl(), { isThemeValid: ma, warnInvalidTheme: ya } = Nl(), D = ct, Z = c(yl()), K = c(null), ue = c(null), v = c(null), y = c(1), ee = c(1), he = c(!1), h = c(null), fe = c(""), Me = c(null), p = c([]), ne = c(1), N = c(!0), X = c(!0), Fe = c(null), dt = c(0), me = c(!1), ht = c(null), ft = c(null), te = c(null), mt = c(null), Ye = c(0), qe = c(0), je = c(0), _ = c(null), yt = c(!1), ye = c(null), Ge = c(null), ge = c(!1), gt = c(!1), Pe = c(!1), $ = c(null), Ze = c(!1), Re = c(!1), Ke = c(!1), V = c(null), pt = c({ x: 0, y: 0 }), U = g(
62
62
  () => Array.isArray(Je.value) && Je.value.length > 0
63
- ), De = rt, gt = vl();
64
- Ja(() => {
65
- gt["chart-background"] && console.warn(
63
+ ), De = ra, ga = vl();
64
+ Jt(() => {
65
+ ga["chart-background"] && console.warn(
66
66
  "VueUiXyCanvas does not support the #chart-background slot."
67
67
  );
68
68
  });
69
- const a = c(ea()), pt = g(() => {
70
- const e = a.value.style.chart.title.text || "XY chart", t = s.value.end - s.value.start, l = f.value.filter(
69
+ const t = c(et()), pa = g(() => {
70
+ const e = t.value.style.chart.title.text || "XY chart", a = s.value.end - s.value.start, l = f.value.filter(
71
71
  (u) => !p.value.includes(u.absoluteIndex)
72
72
  ).length;
73
- return `${e}. ${l} series. ${t} visible data points.`;
74
- }), bt = g(() => {
73
+ return `${e}. ${l} series. ${a} visible data points.`;
74
+ }), ba = g(() => {
75
75
  if (V.value === null) return "";
76
- const e = V.value + s.value.start, t = a.value.style.chart.grid.x.timeLabels.values.slice(
76
+ const e = V.value + s.value.start, a = t.value.style.chart.grid.x.timeLabels.values.slice(
77
77
  s.value.start,
78
78
  s.value.end
79
- )[V.value] ? a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[V.value]?.text : Be.value[V.value]?.text : w.value[e]?.text ?? `Point ${e + 1}`, l = f.value.filter((u) => !p.value.includes(u.absoluteIndex)).map((u) => {
79
+ )[V.value] ? t.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[V.value]?.text : Be.value[V.value]?.text : w.value[e]?.text ?? `Point ${e + 1}`, l = f.value.filter((u) => !p.value.includes(u.absoluteIndex)).map((u) => {
80
80
  const n = u.series[V.value], i = n?.value ?? n ?? null;
81
81
  return `${u.name}: ${i}`;
82
82
  }).join(". ");
83
- return `${t}. ${l}.`;
83
+ return `${a}. ${l}.`;
84
84
  }), le = g(
85
- () => a.value.userOptions.useCursorPointer
86
- ), xt = g(() => !!a.value.debug), Lt = g(() => tt({
85
+ () => t.value.userOptions.useCursorPointer
86
+ ), xa = g(() => !!t.value.debug), La = g(() => aa({
87
87
  defaultConfig: {
88
88
  userOptions: { show: !1 },
89
89
  table: { show: !1 },
@@ -128,11 +128,11 @@ const Zl = ["id"], Kl = ["id"], Jl = {
128
128
  }
129
129
  }
130
130
  },
131
- userConfig: a.value.skeletonConfig ?? {}
131
+ userConfig: t.value.skeletonConfig ?? {}
132
132
  })), { loading: Oe, FINAL_DATASET: Je } = Dl({
133
133
  ...cl(D),
134
- FINAL_CONFIG: a,
135
- prepareConfig: ea,
134
+ FINAL_CONFIG: t,
135
+ prepareConfig: et,
136
136
  skeletonDataset: D.config?.skeletonDataset ?? [
137
137
  {
138
138
  name: "",
@@ -148,35 +148,35 @@ const Zl = ["id"], Kl = ["id"], Jl = {
148
148
  color: "#AAAAAA"
149
149
  }
150
150
  ],
151
- skeletonConfig: tt({
152
- defaultConfig: a.value,
153
- userConfig: Lt.value
151
+ skeletonConfig: aa({
152
+ defaultConfig: t.value,
153
+ userConfig: La.value
154
154
  })
155
- }), { userOptionsVisible: Qe, setUserOptionsVisibility: ba, keepUserOptionState: xa } = Bl({ config: a.value }), { svgRef: k } = Hl({
156
- config: a.value.style.chart.title
155
+ }), { userOptionsVisible: Qe, setUserOptionsVisibility: bt, keepUserOptionState: xt } = Bl({ config: t.value }), { svgRef: k } = Hl({
156
+ config: t.value.style.chart.title
157
157
  });
158
- function Ct() {
159
- ba(!0);
158
+ function Ca() {
159
+ bt(!0);
160
160
  }
161
- function kt() {
162
- ba(!1), De("selectX", { seriesIndex: null, datapoint: null }), h.value = null;
161
+ function ka() {
162
+ bt(!1), De("selectX", { seriesIndex: null, datapoint: null }), h.value = null;
163
163
  }
164
- function ea() {
164
+ function et() {
165
165
  const e = Ue({
166
166
  userConfig: D.config,
167
- defaultConfig: ft
167
+ defaultConfig: fa
168
168
  });
169
- let t = {};
169
+ let a = {};
170
170
  const l = e.theme;
171
171
  if (l)
172
- if (!mt.value(e))
173
- yt(e), t = e;
172
+ if (!ma.value(e))
173
+ ya(e), a = e;
174
174
  else {
175
175
  const u = Ue({
176
176
  userConfig: Xl[l] || D.config,
177
177
  defaultConfig: e
178
178
  });
179
- t = {
179
+ a = {
180
180
  ...Ue({
181
181
  userConfig: D.config,
182
182
  defaultConfig: u
@@ -185,18 +185,18 @@ const Zl = ["id"], Kl = ["id"], Jl = {
185
185
  };
186
186
  }
187
187
  else
188
- t = e;
188
+ a = e;
189
189
  return D.config && pl(D.config, "style.chart.grid.y.timeLabels") && (console.warn(
190
190
  "VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."
191
- ), t.style.chart.grid.x.timeLabels = Ue({
192
- defaultConfig: t.style.chart.grid.x.timeLabels,
191
+ ), a.style.chart.grid.x.timeLabels = Ue({
192
+ defaultConfig: a.style.chart.grid.x.timeLabels,
193
193
  userConfig: D.config.style.chart.grid.y.timeLabels
194
- })), t;
194
+ })), a;
195
195
  }
196
196
  E(
197
197
  () => D.config,
198
198
  (e) => {
199
- Oe.value || (a.value = ea()), Qe.value = !a.value.userOptions.showOnChartHover, _a(), Ye.value += 1, qe.value += 1, je.value += 1, d.value.showTable = a.value.table.show, d.value.showDataLabels = a.value.style.chart.dataLabels.show, d.value.stacked = a.value.style.chart.stacked, d.value.showTooltip = a.value.style.chart.tooltip.show;
199
+ Oe.value || (t.value = et()), Qe.value = !t.value.userOptions.showOnChartHover, _t(), Ye.value += 1, qe.value += 1, je.value += 1, d.value.showTable = t.value.table.show, d.value.showDataLabels = t.value.style.chart.dataLabels.show, d.value.stacked = t.value.style.chart.stacked, d.value.showTooltip = t.value.style.chart.tooltip.show;
200
200
  },
201
201
  { deep: !0 }
202
202
  ), E(
@@ -208,80 +208,80 @@ const Zl = ["id"], Kl = ["id"], Jl = {
208
208
  },
209
209
  { deep: !0 }
210
210
  );
211
- const La = c(a.value.style.chart.aspectRatio), { isPrinting: Ca, isImaging: ka, generatePdf: wa, generateImage: Sa } = El({
211
+ const Lt = c(t.value.style.chart.aspectRatio), { isPrinting: Ct, isImaging: kt, generatePdf: wt, generateImage: St } = El({
212
212
  elementId: `xy_canvas_${Z.value}`,
213
- fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
214
- options: a.value.userOptions.print
213
+ fileName: t.value.style.chart.title.text || "vue-ui-xy-canvas",
214
+ options: t.value.userOptions.print
215
215
  }), d = c({
216
- showTable: a.value.table.show,
217
- showDataLabels: a.value.style.chart.dataLabels.show,
218
- stacked: a.value.style.chart.stacked,
219
- showTooltip: a.value.style.chart.tooltip.show
216
+ showTable: t.value.table.show,
217
+ showDataLabels: t.value.style.chart.dataLabels.show,
218
+ stacked: t.value.style.chart.stacked,
219
+ showTooltip: t.value.style.chart.tooltip.show
220
220
  });
221
- function za(e) {
222
- me.value = e, da.value += 1;
221
+ function zt(e) {
222
+ me.value = e, dt.value += 1;
223
223
  }
224
- const Ta = g(() => bl(a.value.customPalette)), aa = g(
224
+ const Tt = g(() => bl(t.value.customPalette)), tt = g(
225
225
  () => p.value.length === M.value.length
226
226
  ), O = g(() => M.value ? Math.max(
227
227
  ...M.value.filter(
228
- (e, t) => aa.value ? !0 : !p.value.includes(e.absoluteIndex)
228
+ (e, a) => tt.value ? !0 : !p.value.includes(e.absoluteIndex)
229
229
  ).map((e) => e.series.length)
230
230
  ) : 0);
231
- function wt(e) {
231
+ function wa(e) {
232
232
  $.value = e, J();
233
233
  }
234
- const $a = c(0), pe = c(0);
235
- function St() {
236
- if (!v.value || !a.value.style.chart.grid.x.timeLabels.show) return 0;
237
- const e = w.value || [], t = s.value.start ?? 0, l = s.value.end ?? 0;
238
- if (!Math.max(0, l - t)) return 0;
234
+ const $t = c(0), pe = c(0);
235
+ function Sa() {
236
+ if (!v.value || !t.value.style.chart.grid.x.timeLabels.show) return 0;
237
+ const e = w.value || [], a = s.value.start ?? 0, l = s.value.end ?? 0;
238
+ if (!Math.max(0, l - a)) return 0;
239
239
  const n = Math.round(
240
- y.value / 40 * a.value.style.chart.grid.x.timeLabels.fontSizeRatio
241
- ), i = `${a.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${n}px ${a.value.style.fontFamily}`;
240
+ y.value / 40 * t.value.style.chart.grid.x.timeLabels.fontSizeRatio
241
+ ), i = `${t.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${n}px ${t.value.style.fontFamily}`;
242
242
  v.value.save(), v.value.font = i;
243
243
  let r = 0;
244
- for (let Y = t; Y < l; Y += 1) {
244
+ for (let Y = a; Y < l; Y += 1) {
245
245
  const B = e[Y]?.text ?? `${Y + 1}`, _e = v.value.measureText(String(B));
246
246
  _e.width > r && (r = _e.width);
247
247
  }
248
248
  v.value.restore();
249
- const L = (a.value.style.chart.grid.x.timeLabels.rotation || 0) * Math.PI / 180, x = n, S = Math.abs(Math.sin(L)) * r + Math.abs(Math.cos(L)) * x, R = a.value.style.chart.grid.x.timeLabels.offsetY || 1, oe = y.value / R;
249
+ const L = (t.value.style.chart.grid.x.timeLabels.rotation || 0) * Math.PI / 180, x = n, S = Math.abs(Math.sin(L)) * r + Math.abs(Math.cos(L)) * x, R = t.value.style.chart.grid.x.timeLabels.offsetY || 1, oe = y.value / R;
250
250
  return Math.max(0, oe + S + 4);
251
251
  }
252
- function zt() {
253
- $a.value = St();
252
+ function za() {
253
+ $t.value = Sa();
254
254
  }
255
- function Tt() {
255
+ function Ta() {
256
256
  pe.value && cancelAnimationFrame(pe.value), pe.value = requestAnimationFrame(() => {
257
257
  requestAnimationFrame(() => {
258
- zt();
258
+ za();
259
259
  });
260
260
  });
261
261
  }
262
- sa(() => {
262
+ st(() => {
263
263
  pe.value && cancelAnimationFrame(pe.value);
264
264
  });
265
265
  const o = g(() => {
266
- const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right), t = ee.value * a.value.style.chart.paddingProportions.top, l = ee.value * a.value.style.chart.paddingProportions.bottom, u = $a.value, n = ee.value - l - u, i = ee.value - (t + l) - u;
266
+ const e = y.value - y.value * (t.value.style.chart.paddingProportions.left + t.value.style.chart.paddingProportions.right), a = ee.value * t.value.style.chart.paddingProportions.top, l = ee.value * t.value.style.chart.paddingProportions.bottom, u = $t.value, n = ee.value - l - u, i = ee.value - (a + l) - u;
267
267
  return {
268
268
  canvasWidth: y.value,
269
269
  canvasHeight: ee.value,
270
- left: y.value * a.value.style.chart.paddingProportions.left,
271
- top: t,
272
- right: y.value - y.value * a.value.style.chart.paddingProportions.right,
270
+ left: y.value * t.value.style.chart.paddingProportions.left,
271
+ top: a,
272
+ right: y.value - y.value * t.value.style.chart.paddingProportions.right,
273
273
  bottom: n,
274
274
  width: e,
275
275
  height: i,
276
276
  slot: e / (s.value.end - s.value.start)
277
277
  };
278
278
  });
279
- function Aa(e, t) {
280
- return e / t;
279
+ function At(e, a) {
280
+ return e / a;
281
281
  }
282
- function $t({
282
+ function $a({
283
283
  hasAutoScale: e,
284
- series: t,
284
+ series: a,
285
285
  min: l,
286
286
  max: u,
287
287
  scale: n,
@@ -289,10 +289,10 @@ const Zl = ["id"], Kl = ["id"], Jl = {
289
289
  individualHeight: r,
290
290
  stackIndex: m = null
291
291
  }) {
292
- return t.map((L, x) => {
293
- const S = n.min < 0 ? Math.abs(n.min) : 0, R = Aa(L + S, S + n.max);
292
+ return a.map((L, x) => {
293
+ const S = n.min < 0 ? Math.abs(n.min) : 0, R = At(L + S, S + n.max);
294
294
  let oe, Y;
295
- e && (oe = n.min, Y = Aa(
295
+ e && (oe = n.min, Y = At(
296
296
  L - oe,
297
297
  n.max - oe
298
298
  ));
@@ -305,22 +305,22 @@ const Zl = ["id"], Kl = ["id"], Jl = {
305
305
  });
306
306
  }
307
307
  const A = g(() => {
308
- const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(
308
+ const e = t.value.style.chart.scale.min !== null ? t.value.style.chart.scale.min : Math.min(
309
309
  ...M.value.filter(
310
310
  (r, m) => !p.value.includes(r.absoluteIndex)
311
311
  ).flatMap(
312
312
  (r) => r.series.slice(s.value.start, s.value.end)
313
313
  )
314
- ), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(
314
+ ), a = t.value.style.chart.scale.max !== null ? t.value.style.chart.scale.max : Math.max(
315
315
  ...M.value.filter(
316
316
  (r, m) => !p.value.includes(r.absoluteIndex)
317
317
  ).flatMap(
318
318
  (r) => r.series.slice(s.value.start, s.value.end)
319
319
  )
320
- ), l = ra(
320
+ ), l = rt(
321
321
  e < 0 ? e : 0,
322
- t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t,
323
- a.value.style.chart.scale.ticks
322
+ a === e ? e + 1 < 0 ? 0 : e + 1 : a < 0 ? 0 : a,
323
+ t.value.style.chart.scale.ticks
324
324
  ), u = l.min < 0 ? Math.abs(l.min) : 0, n = o.value.bottom - o.value.height * (u / (l.max + u)), i = l.ticks.map((r) => ({
325
325
  y: o.value.bottom - o.value.height * ((r + u) / (l.max + u)),
326
326
  x: o.value.left - 8,
@@ -328,20 +328,20 @@ const Zl = ["id"], Kl = ["id"], Jl = {
328
328
  }));
329
329
  return {
330
330
  absoluteMin: u,
331
- max: t,
331
+ max: a,
332
332
  min: e,
333
333
  scale: l,
334
334
  yLabels: i,
335
335
  zero: n
336
336
  };
337
- }), Ia = g(() => f.value.map((e) => `
337
+ }), It = g(() => f.value.map((e) => `
338
338
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
339
339
  <svg viewBox="0 0 10 10" height="12" width="12">
340
340
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
341
341
  </svg>
342
342
  <span>${e.name ? e.name + ": " : ""}</span>
343
343
  <span>${ce(
344
- a.value.style.chart.dataLabels.formatter,
344
+ t.value.style.chart.dataLabels.formatter,
345
345
  e.series[h.value] ?? "-",
346
346
  de({
347
347
  p: e.prefix || "",
@@ -352,68 +352,68 @@ const Zl = ["id"], Kl = ["id"], Jl = {
352
352
  { datapoint: e, seriesIndex: h.value }
353
353
  )}</span>
354
354
  </div>
355
- `)), Ee = g(() => a.value.style.chart.line.cutNullValues), M = g(() => Je.value.map((e, t) => ({
355
+ `)), Ee = g(() => t.value.style.chart.line.cutNullValues), M = g(() => Je.value.map((e, a) => ({
356
356
  ...e,
357
357
  series: xl({
358
358
  data: Ll(e.series, [], Ee.value),
359
- threshold: a.value.downsample.threshold
359
+ threshold: t.value.downsample.threshold
360
360
  }),
361
- absoluteIndex: t,
362
- color: lt(
363
- e.color || Ta.value[t] || se[t] || se[t % se.length]
361
+ absoluteIndex: a,
362
+ color: la(
363
+ e.color || Tt.value[a] || se[a] || se[a % se.length]
364
364
  )
365
- }))), At = g(() => {
366
- if (!a.value.style.chart.zoom.minimap.show) return [];
365
+ }))), Aa = g(() => {
366
+ if (!t.value.style.chart.zoom.minimap.show) return [];
367
367
  const e = M.value.filter(
368
368
  (n) => !p.value.includes(n.absoluteIndex)
369
- ), t = Math.max(
369
+ ), a = Math.max(
370
370
  ...e.map((n) => n.series.length)
371
371
  ), l = [];
372
- for (let n = 0; n < t; n += 1)
372
+ for (let n = 0; n < a; n += 1)
373
373
  l.push(
374
374
  e.map((i) => i.series[n] || 0).reduce((i, r) => (i || 0) + (r || 0), 0)
375
375
  );
376
376
  const u = Math.min(...l);
377
377
  return l.map((n) => n + (u < 0 ? Math.abs(u) : 0));
378
- }), It = g(() => a.value.style.chart.zoom.minimap.show ? M.value.map((t) => ({
379
- ...t,
380
- isVisible: !p.value.includes(t.absoluteIndex)
378
+ }), Ia = g(() => t.value.style.chart.zoom.minimap.show ? M.value.map((a) => ({
379
+ ...a,
380
+ isVisible: !p.value.includes(a.absoluteIndex)
381
381
  })) : []);
382
382
  E(O, (e) => {
383
383
  e && xe();
384
384
  });
385
385
  const f = g(() => Cl(
386
386
  M.value.filter(
387
- (e, t) => !p.value.includes(e.absoluteIndex)
387
+ (e, a) => !p.value.includes(e.absoluteIndex)
388
388
  )
389
- ).map((e, t) => ({
389
+ ).map((e, a) => ({
390
390
  ...e,
391
391
  series: e.series.slice(s.value.start, s.value.end)
392
- })).map((e, t) => {
392
+ })).map((e, a) => {
393
393
  let l = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, u = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
394
394
  l === u && (l = l >= 0 ? u - 1 : l, u = u >= 0 ? u : l + 1), e.series.filter((B) => ![null, void 0].includes(B)).map((B) => (B - l) / (u - l));
395
395
  const n = {
396
396
  valueMin: l,
397
397
  valueMax: u
398
- }, i = e.scaleSteps || a.value.style.chart.scale.ticks;
398
+ }, i = e.scaleSteps || t.value.style.chart.scale.ticks;
399
399
  let r;
400
- e.autoScaling ? r = ra(
400
+ e.autoScaling ? r = rt(
401
401
  n.valueMin,
402
402
  n.valueMax,
403
403
  i
404
- ) : r = ra(
404
+ ) : r = rt(
405
405
  n.valueMin < 0 ? n.valueMin : 0,
406
406
  n.valueMax <= 0 ? 0 : n.valueMax,
407
407
  i
408
408
  );
409
- const m = d.value.stacked ? o.value.height * (1 - e.cumulatedStackRatio) : 0, L = d.value.stacked ? o.value.height / a.value.style.chart.stackGap : 0, x = d.value.stacked ? o.value.height * e.stackRatio - L : o.value.height, S = r.min < 0 ? Math.abs(r.min) : 0;
409
+ const m = d.value.stacked ? o.value.height * (1 - e.cumulatedStackRatio) : 0, L = d.value.stacked ? o.value.height / t.value.style.chart.stackGap : 0, x = d.value.stacked ? o.value.height * e.stackRatio - L : o.value.height, S = r.min < 0 ? Math.abs(r.min) : 0;
410
410
  let R;
411
411
  e.autoScaling && d.value.stacked && u <= 0 ? R = o.value.bottom - m - x : R = o.value.bottom - m - x * (S / (r.max + S));
412
412
  const oe = r.ticks.map((B, _e) => ({
413
413
  y: o.value.bottom - m - x * (_e / (r.ticks.length - 1)),
414
414
  x: o.value.left - 8,
415
415
  value: B
416
- })), Y = $t({
416
+ })), Y = $a({
417
417
  hasAutoScale: d.value.stacked && e.autoScaling,
418
418
  series: e.series,
419
419
  min: d.value.stacked ? l : A.value.min,
@@ -421,7 +421,7 @@ const Zl = ["id"], Kl = ["id"], Jl = {
421
421
  scale: d.value.stacked ? r : A.value.scale,
422
422
  yOffset: m,
423
423
  individualHeight: x,
424
- stackIndex: d.value.stacked ? t : null
424
+ stackIndex: d.value.stacked ? a : null
425
425
  });
426
426
  return {
427
427
  ...e,
@@ -439,29 +439,29 @@ const Zl = ["id"], Kl = ["id"], Jl = {
439
439
  start: 0,
440
440
  end: O.value
441
441
  }), F = c({ start: 0, end: O.value }), be = c(null);
442
- function Mt() {
442
+ function Ma() {
443
443
  return new Promise(
444
444
  (e) => requestAnimationFrame(() => requestAnimationFrame(() => e()))
445
445
  );
446
446
  }
447
- sa(() => {
447
+ st(() => {
448
448
  be.value && cancelAnimationFrame(be.value);
449
449
  });
450
450
  async function xe() {
451
- Fa(), await Te(), be.value && cancelAnimationFrame(be.value), be.value = requestAnimationFrame(async () => {
452
- await Mt(), Fa();
451
+ Ft(), await Te(), be.value && cancelAnimationFrame(be.value), be.value = requestAnimationFrame(async () => {
452
+ await Ma(), Ft();
453
453
  });
454
454
  }
455
- const Ft = g(() => a.value.style.chart.zoom.preview.enable && (F.value.start !== s.value.start || F.value.end !== s.value.end));
456
- function Ma(e, t) {
457
- F.value[e] = t;
455
+ const Fa = g(() => t.value.style.chart.zoom.preview.enable && (F.value.start !== s.value.start || F.value.end !== s.value.end));
456
+ function Mt(e, a) {
457
+ F.value[e] = a;
458
458
  }
459
- async function Fa() {
459
+ async function Ft() {
460
460
  if (!ge.value) {
461
461
  ge.value = !0;
462
462
  try {
463
- const { startIndex: e, endIndex: t } = a.value.style.chart.zoom, l = Math.max(...M.value.map((i) => i.series.length)), u = e ?? 0, n = t != null ? Math.min(Pa(t + 1), l) : l;
464
- Pe.value = !0, s.value.start = u, s.value.end = n, F.value.start = u, F.value.end = n, ta(), ga.value = !0, await Te(), ae.value && (ae.value.setStartValue(s.value.start), ae.value.setEndValue(s.value.end));
463
+ const { startIndex: e, endIndex: a } = t.value.style.chart.zoom, l = Math.max(...M.value.map((i) => i.series.length)), u = e ?? 0, n = a != null ? Math.min(Pt(a + 1), l) : l;
464
+ Pe.value = !0, s.value.start = u, s.value.end = n, F.value.start = u, F.value.end = n, at(), gt.value = !0, await Te(), te.value && (te.value.setStartValue(s.value.start), te.value.setEndValue(s.value.end));
465
465
  } finally {
466
466
  queueMicrotask(() => {
467
467
  Pe.value = !1;
@@ -469,31 +469,31 @@ const Zl = ["id"], Kl = ["id"], Jl = {
469
469
  }
470
470
  }
471
471
  }
472
- function Pt(e) {
473
- ge.value || Pe.value || e !== s.value.start && (s.value.start = e, F.value.start = e, ta());
472
+ function Pa(e) {
473
+ ge.value || Pe.value || e !== s.value.start && (s.value.start = e, F.value.start = e, at());
474
474
  }
475
- function Rt(e) {
475
+ function Ra(e) {
476
476
  if (ge.value || Pe.value) return;
477
- const t = Pa(e);
478
- t !== s.value.end && (s.value.end = t, F.value.end = t, ta());
477
+ const a = Pt(e);
478
+ a !== s.value.end && (s.value.end = a, F.value.end = a, at());
479
479
  }
480
- function Pa(e) {
481
- const t = O.value;
482
- return e > t ? t : e < 0 || e < s.value.start ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
480
+ function Pt(e) {
481
+ const a = O.value;
482
+ return e > a ? a : e < 0 || e < s.value.start ? t.value.style.chart.zoom.startIndex !== null ? t.value.style.chart.zoom.startIndex + 1 : 1 : e;
483
483
  }
484
- function ta() {
484
+ function at() {
485
485
  const e = Math.max(
486
486
  1,
487
487
  Math.max(...M.value.map((u) => u.series.length))
488
488
  );
489
- let t = Math.max(0, Math.min(s.value.start ?? 0, e - 1)), l = Math.max(t + 1, Math.min(s.value.end ?? e, e));
490
- (!Number.isFinite(t) || !Number.isFinite(l) || l <= t) && (t = 0, l = e), s.value = { start: t, end: l }, F.value.start = t, F.value.end = l, ae.value && (ae.value.setStartValue(t), ae.value.setEndValue(l));
489
+ let a = Math.max(0, Math.min(s.value.start ?? 0, e - 1)), l = Math.max(a + 1, Math.min(s.value.end ?? e, e));
490
+ (!Number.isFinite(a) || !Number.isFinite(l) || l <= a) && (a = 0, l = e), s.value = { start: a, end: l }, F.value.start = a, F.value.end = l, te.value && (te.value.setStartValue(a), te.value.setEndValue(l));
491
491
  }
492
- const Dt = g(() => f.value.filter((e) => ["line", "plot", void 0].includes(e.type))), P = g(() => f.value.filter((e) => e.type === "bar"));
492
+ const Da = g(() => f.value.filter((e) => ["line", "plot", void 0].includes(e.type))), P = g(() => f.value.filter((e) => e.type === "bar"));
493
493
  function Ne() {
494
494
  if (!k.value || !ue.value) return;
495
- const e = ue.value.offsetWidth, t = ue.value.offsetHeight;
496
- k.value.width = e * ne.value * 2, k.value.height = t * ne.value * 2, y.value = e * ne.value * 2, ee.value = t * ne.value * 2, v.value?.scale(ne.value, ne.value), J();
495
+ const e = ue.value.offsetWidth, a = ue.value.offsetHeight;
496
+ k.value.width = e * ne.value * 2, k.value.height = a * ne.value * 2, y.value = e * ne.value * 2, ee.value = a * ne.value * 2, v.value?.scale(ne.value, ne.value), J();
497
497
  }
498
498
  E(U, async (e) => {
499
499
  if (!e) {
@@ -502,59 +502,59 @@ const Zl = ["id"], Kl = ["id"], Jl = {
502
502
  }
503
503
  await Te(), k.value && !v.value && (v.value = k.value.getContext("2d", { willReadFrequently: !0 })), N.value = !0, X.value = !0, await xe(), Ne(), J();
504
504
  });
505
- function Ot() {
506
- if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = a.value.style.chart.backgroundColor, v.value.fillRect(
505
+ function Oa() {
506
+ if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = t.value.style.chart.backgroundColor, v.value.fillRect(
507
507
  0,
508
508
  0,
509
509
  o.value.canvasWidth,
510
510
  o.value.canvasHeight
511
511
  ), !!U.value)) {
512
512
  if (d.value.stacked)
513
- a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? f.value.forEach((e) => {
514
- for (let t = 0; t < s.value.end - s.value.start + 1; t += 1)
513
+ t.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start < t.value.style.chart.grid.y.verticalLines.hideUnderXLength ? f.value.forEach((e) => {
514
+ for (let a = 0; a < s.value.end - s.value.start + 1; a += 1)
515
515
  T(
516
516
  v.value,
517
517
  [
518
518
  {
519
- x: o.value.left + o.value.slot * t,
519
+ x: o.value.left + o.value.slot * a,
520
520
  y: o.value.bottom - e.yOffset - e.individualHeight
521
521
  },
522
522
  {
523
- x: o.value.left + o.value.slot * t,
523
+ x: o.value.left + o.value.slot * a,
524
524
  y: o.value.bottom - e.yOffset
525
525
  }
526
526
  ],
527
527
  {
528
- color: a.value.style.chart.grid.y.verticalLines.color
528
+ color: t.value.style.chart.grid.y.verticalLines.color
529
529
  }
530
530
  );
531
- }) : a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && f.value.forEach((e) => {
532
- for (let t = s.value.start; t < s.value.end; t += 1)
533
- t % Math.floor(
534
- (s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
531
+ }) : t.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start >= t.value.style.chart.grid.y.verticalLines.hideUnderXLength && f.value.forEach((e) => {
532
+ for (let a = s.value.start; a < s.value.end; a += 1)
533
+ a % Math.floor(
534
+ (s.value.end - s.value.start) / t.value.style.chart.grid.x.timeLabels.modulo
535
535
  ) === 0 && T(
536
536
  v.value,
537
537
  [
538
538
  {
539
- x: o.value.left + o.value.slot * (t - s.value.start) + o.value.slot / 2,
539
+ x: o.value.left + o.value.slot * (a - s.value.start) + o.value.slot / 2,
540
540
  y: o.value.bottom - e.yOffset - e.individualHeight
541
541
  },
542
542
  {
543
- x: o.value.left + o.value.slot * (t - s.value.start) + o.value.slot / 2,
543
+ x: o.value.left + o.value.slot * (a - s.value.start) + o.value.slot / 2,
544
544
  y: o.value.bottom - e.yOffset
545
545
  }
546
546
  ],
547
547
  {
548
- color: a.value.style.chart.grid.y.verticalLines.color
548
+ color: t.value.style.chart.grid.y.verticalLines.color
549
549
  }
550
550
  );
551
- }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? f.value.forEach((e) => {
552
- e.localYLabels.forEach((t, l) => {
551
+ }), t.value.style.chart.grid.x.horizontalLines.show && (t.value.style.chart.grid.x.horizontalLines.alternate ? f.value.forEach((e) => {
552
+ e.localYLabels.forEach((a, l) => {
553
553
  l < e.localYLabels.length - 1 && Ve(
554
554
  v.value,
555
555
  [
556
- { x: o.value.left, y: t.y },
557
- { x: o.value.right, y: t.y },
556
+ { x: o.value.left, y: a.y },
557
+ { x: o.value.right, y: a.y },
558
558
  {
559
559
  x: o.value.right,
560
560
  y: e.localYLabels[l + 1].y
@@ -566,27 +566,27 @@ const Zl = ["id"], Kl = ["id"], Jl = {
566
566
  ],
567
567
  {
568
568
  fillColor: l % 2 === 0 ? "transparent" : Ie(
569
- a.value.style.chart.grid.x.horizontalLines.color,
570
- a.value.style.chart.grid.x.horizontalLines.opacity
569
+ t.value.style.chart.grid.x.horizontalLines.color,
570
+ t.value.style.chart.grid.x.horizontalLines.opacity
571
571
  ),
572
572
  strokeColor: "transparent"
573
573
  }
574
574
  );
575
575
  });
576
576
  }) : f.value.forEach((e) => {
577
- e.localYLabels.slice(s.value.start, s.value.end).forEach((t) => {
577
+ e.localYLabels.slice(s.value.start, s.value.end).forEach((a) => {
578
578
  T(
579
579
  v.value,
580
580
  [
581
- { x: o.value.left, y: t.y },
582
- { x: o.value.right, y: t.y }
581
+ { x: o.value.left, y: a.y },
582
+ { x: o.value.right, y: a.y }
583
583
  ],
584
584
  {
585
- color: a.value.style.chart.grid.x.horizontalLines.color
585
+ color: t.value.style.chart.grid.x.horizontalLines.color
586
586
  }
587
587
  );
588
588
  });
589
- })), a.value.style.chart.grid.zeroLine.show && f.value.forEach((e) => {
589
+ })), t.value.style.chart.grid.zeroLine.show && f.value.forEach((e) => {
590
590
  T(
591
591
  v.value,
592
592
  [
@@ -594,11 +594,11 @@ const Zl = ["id"], Kl = ["id"], Jl = {
594
594
  { x: o.value.right, y: e.localZero }
595
595
  ],
596
596
  {
597
- color: a.value.style.chart.grid.zeroLine.color,
598
- lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
597
+ color: t.value.style.chart.grid.zeroLine.color,
598
+ lineDash: t.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
599
599
  }
600
600
  );
601
- }), a.value.style.chart.grid.y.axisLabels.show && f.value.forEach((e) => {
601
+ }), t.value.style.chart.grid.y.axisLabels.show && f.value.forEach((e) => {
602
602
  T(
603
603
  v.value,
604
604
  [
@@ -640,12 +640,12 @@ const Zl = ["id"], Kl = ["id"], Jl = {
640
640
  align: "center",
641
641
  rotation: -90,
642
642
  color: e.color,
643
- font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`
643
+ font: `${Math.round(y.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`
644
644
  }
645
645
  );
646
646
  });
647
647
  else {
648
- if (a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
648
+ if (t.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start < t.value.style.chart.grid.y.verticalLines.hideUnderXLength)
649
649
  for (let e = 0; e < s.value.end - s.value.start + 1; e += 1)
650
650
  T(
651
651
  v.value,
@@ -660,13 +660,13 @@ const Zl = ["id"], Kl = ["id"], Jl = {
660
660
  }
661
661
  ],
662
662
  {
663
- color: a.value.style.chart.grid.y.verticalLines.color
663
+ color: t.value.style.chart.grid.y.verticalLines.color
664
664
  }
665
665
  );
666
- else if (a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
666
+ else if (t.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start >= t.value.style.chart.grid.y.verticalLines.hideUnderXLength)
667
667
  for (let e = s.value.start; e < s.value.end; e += 1)
668
668
  e % Math.floor(
669
- (s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
669
+ (s.value.end - s.value.start) / t.value.style.chart.grid.x.timeLabels.modulo
670
670
  ) === 0 && T(
671
671
  v.value,
672
672
  [
@@ -680,28 +680,28 @@ const Zl = ["id"], Kl = ["id"], Jl = {
680
680
  }
681
681
  ],
682
682
  {
683
- color: a.value.style.chart.grid.y.verticalLines.color
683
+ color: t.value.style.chart.grid.y.verticalLines.color
684
684
  }
685
685
  );
686
- a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? A.value.yLabels.forEach((e, t) => {
687
- t < A.value.yLabels.length - 1 && Ve(
686
+ t.value.style.chart.grid.x.horizontalLines.show && (t.value.style.chart.grid.x.horizontalLines.alternate ? A.value.yLabels.forEach((e, a) => {
687
+ a < A.value.yLabels.length - 1 && Ve(
688
688
  v.value,
689
689
  [
690
690
  { x: o.value.left, y: e.y },
691
691
  { x: o.value.right, y: e.y },
692
692
  {
693
693
  x: o.value.right,
694
- y: A.value.yLabels[t + 1].y
694
+ y: A.value.yLabels[a + 1].y
695
695
  },
696
696
  {
697
697
  x: o.value.left,
698
- y: A.value.yLabels[t + 1].y
698
+ y: A.value.yLabels[a + 1].y
699
699
  }
700
700
  ],
701
701
  {
702
- fillColor: t % 2 === 0 ? "transparent" : Ie(
703
- a.value.style.chart.grid.x.horizontalLines.color,
704
- a.value.style.chart.grid.x.horizontalLines.opacity
702
+ fillColor: a % 2 === 0 ? "transparent" : Ie(
703
+ t.value.style.chart.grid.x.horizontalLines.color,
704
+ t.value.style.chart.grid.x.horizontalLines.opacity
705
705
  ),
706
706
  strokeColor: "transparent"
707
707
  }
@@ -714,30 +714,30 @@ const Zl = ["id"], Kl = ["id"], Jl = {
714
714
  { x: o.value.right, y: e.y }
715
715
  ],
716
716
  {
717
- color: a.value.style.chart.grid.x.horizontalLines.color
717
+ color: t.value.style.chart.grid.x.horizontalLines.color
718
718
  }
719
719
  );
720
- })), a.value.style.chart.grid.y.showAxis && T(
720
+ })), t.value.style.chart.grid.y.showAxis && T(
721
721
  v.value,
722
722
  [
723
723
  { x: o.value.left, y: o.value.top },
724
724
  { x: o.value.left, y: o.value.bottom }
725
725
  ],
726
726
  {
727
- color: a.value.style.chart.grid.y.axisColor,
728
- lineWidth: a.value.style.chart.grid.y.axisThickness
727
+ color: t.value.style.chart.grid.y.axisColor,
728
+ lineWidth: t.value.style.chart.grid.y.axisThickness
729
729
  }
730
- ), a.value.style.chart.grid.x.showAxis && T(
730
+ ), t.value.style.chart.grid.x.showAxis && T(
731
731
  v.value,
732
732
  [
733
733
  { x: o.value.left, y: o.value.bottom },
734
734
  { x: o.value.right, y: o.value.bottom }
735
735
  ],
736
736
  {
737
- color: a.value.style.chart.grid.x.axisColor,
738
- lineWidth: a.value.style.chart.grid.x.axisThickness
737
+ color: t.value.style.chart.grid.x.axisColor,
738
+ lineWidth: t.value.style.chart.grid.x.axisThickness
739
739
  }
740
- ), a.value.style.chart.grid.zeroLine.show && T(
740
+ ), t.value.style.chart.grid.zeroLine.show && T(
741
741
  v.value,
742
742
  [
743
743
  {
@@ -750,95 +750,95 @@ const Zl = ["id"], Kl = ["id"], Jl = {
750
750
  }
751
751
  ],
752
752
  {
753
- color: a.value.style.chart.grid.zeroLine.color,
754
- lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
753
+ color: t.value.style.chart.grid.zeroLine.color,
754
+ lineDash: t.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
755
755
  }
756
756
  );
757
757
  }
758
- a.value.style.chart.grid.y.axisName && Q(
758
+ t.value.style.chart.grid.y.axisName && Q(
759
759
  v.value,
760
- a.value.style.chart.grid.y.axisName,
761
- y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
760
+ t.value.style.chart.grid.y.axisName,
761
+ y.value - y.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
762
762
  o.value.bottom - o.value.height / 2,
763
763
  {
764
- font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
765
- color: a.value.style.chart.color,
764
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
765
+ color: t.value.style.chart.color,
766
766
  align: "center",
767
767
  rotation: 90
768
768
  }
769
- ), a.value.style.chart.grid.x.axisName && Q(
769
+ ), t.value.style.chart.grid.x.axisName && Q(
770
770
  v.value,
771
- a.value.style.chart.grid.x.axisName,
771
+ t.value.style.chart.grid.x.axisName,
772
772
  y.value / 2,
773
773
  ee.value,
774
774
  {
775
- font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
776
- color: a.value.style.chart.color,
775
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
776
+ color: t.value.style.chart.color,
777
777
  align: "center"
778
778
  }
779
779
  );
780
780
  }
781
781
  }
782
- function Et(e) {
783
- for (let t = 0; t < e.coordinatesLine.length; t += 1) {
784
- const l = (h.value === t || $.value === t ? y.value / 150 : a.value.style.chart.line.plots.show || e.type === "plot" ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
785
- va(
782
+ function Ea(e) {
783
+ for (let a = 0; a < e.coordinatesLine.length; a += 1) {
784
+ const l = (h.value === a || $.value === a ? y.value / 150 : t.value.style.chart.line.plots.show || e.type === "plot" ? y.value / 200 : 0) * t.value.style.chart.line.plots.radiusRatio;
785
+ vt(
786
786
  v.value,
787
- { x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
787
+ { x: e.coordinatesLine[a].x, y: e.coordinatesLine[a].y },
788
788
  l,
789
789
  {
790
- color: a.value.style.chart.backgroundColor,
790
+ color: t.value.style.chart.backgroundColor,
791
791
  fillStyle: e.color
792
792
  }
793
793
  );
794
794
  }
795
795
  }
796
- function Nt() {
796
+ function Na() {
797
797
  f.value.forEach((e) => {
798
798
  e.showYMarker && Ce(e) && Q(
799
799
  v.value,
800
800
  ce(
801
- a.value.style.chart.dataLabels.formatter,
801
+ t.value.style.chart.dataLabels.formatter,
802
802
  Ce(e).value,
803
803
  de({
804
- p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
804
+ p: e.prefix || t.value.style.chart.grid.y.axisLabels.prefix || "",
805
805
  v: Ce(e).value,
806
- s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
807
- r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
806
+ s: e.suffix || t.value.style.chart.grid.y.axisLabels.suffix || "",
807
+ r: e.rounding || t.value.style.chart.grid.y.axisLabels.rounding || 0
808
808
  }),
809
809
  { datapoint: Ce(e), seriesIndex: null }
810
810
  ),
811
- o.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
811
+ o.value.left - 8 + t.value.style.chart.grid.y.axisLabels.offsetX,
812
812
  Ce(e).y,
813
813
  {
814
814
  align: "right",
815
- font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
815
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
816
816
  color: e.color
817
817
  }
818
818
  );
819
819
  });
820
820
  }
821
- function Bt() {
822
- a.value.style.chart.grid.y.axisLabels.show && (d.value.stacked ? f.value.forEach((e) => {
823
- e.localYLabels.forEach((t, l) => {
821
+ function Ba() {
822
+ t.value.style.chart.grid.y.axisLabels.show && (d.value.stacked ? f.value.forEach((e) => {
823
+ e.localYLabels.forEach((a, l) => {
824
824
  Q(
825
825
  v.value,
826
826
  ce(
827
- a.value.style.chart.dataLabels.formatter,
828
- t.value,
827
+ t.value.style.chart.dataLabels.formatter,
828
+ a.value,
829
829
  de({
830
- p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
831
- v: t.value,
832
- s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
833
- r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
830
+ p: e.prefix || t.value.style.chart.grid.y.axisLabels.prefix || "",
831
+ v: a.value,
832
+ s: e.suffix || t.value.style.chart.grid.y.axisLabels.suffix || "",
833
+ r: e.rounding || t.value.style.chart.grid.y.axisLabels.rounding || 0
834
834
  }),
835
- { datapoint: t, seriesIndex: l }
835
+ { datapoint: a, seriesIndex: l }
836
836
  ),
837
- t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
838
- t.y,
837
+ a.x + t.value.style.chart.grid.y.axisLabels.offsetX,
838
+ a.y,
839
839
  {
840
840
  align: "right",
841
- font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
841
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
842
842
  color: e.color,
843
843
  globalAlpha: e.showYMarker && ![null, void 0].includes(
844
844
  h.value ?? $.value
@@ -846,26 +846,26 @@ const Zl = ["id"], Kl = ["id"], Jl = {
846
846
  }
847
847
  );
848
848
  });
849
- }) : A.value.yLabels.forEach((e, t) => {
849
+ }) : A.value.yLabels.forEach((e, a) => {
850
850
  Q(
851
851
  v.value,
852
852
  ce(
853
- a.value.style.chart.dataLabels.formatter,
853
+ t.value.style.chart.dataLabels.formatter,
854
854
  e.value,
855
855
  de({
856
- p: a.value.style.chart.grid.y.axisLabels.prefix || "",
856
+ p: t.value.style.chart.grid.y.axisLabels.prefix || "",
857
857
  v: e.value,
858
- s: a.value.style.chart.grid.y.axisLabels.suffix || "",
859
- r: a.value.style.chart.grid.y.axisLabels.rounding || 0
858
+ s: t.value.style.chart.grid.y.axisLabels.suffix || "",
859
+ r: t.value.style.chart.grid.y.axisLabels.rounding || 0
860
860
  }),
861
- { datapoint: e, seriesIndex: t }
861
+ { datapoint: e, seriesIndex: a }
862
862
  ),
863
- e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
863
+ e.x + t.value.style.chart.grid.y.axisLabels.offsetX,
864
864
  e.y,
865
865
  {
866
866
  align: "right",
867
- font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
868
- color: a.value.style.chart.grid.y.axisLabels.color,
867
+ font: `${t.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
868
+ color: t.value.style.chart.grid.y.axisLabels.color,
869
869
  globalAlpha: f.value.some(
870
870
  (l) => l.showYMarker
871
871
  ) && ![null, void 0].includes(
@@ -875,112 +875,112 @@ const Zl = ["id"], Kl = ["id"], Jl = {
875
875
  );
876
876
  }));
877
877
  }
878
- function Ht(e) {
879
- for (let t = 0; t < e.coordinatesLine.length; t += 1)
878
+ function Ha(e) {
879
+ for (let a = 0; a < e.coordinatesLine.length; a += 1)
880
880
  Q(
881
881
  v.value,
882
882
  ce(
883
- a.value.style.chart.dataLabels.formatter,
884
- e.coordinatesLine[t].value,
883
+ t.value.style.chart.dataLabels.formatter,
884
+ e.coordinatesLine[a].value,
885
885
  de({
886
886
  p: e.prefix || "",
887
- v: e.coordinatesLine[t].value,
887
+ v: e.coordinatesLine[a].value,
888
888
  s: e.suffix || "",
889
889
  r: e.rounding || 0
890
890
  }),
891
- { datapoint: e.coordinatesLine[t], seriesIndex: t }
891
+ { datapoint: e.coordinatesLine[a], seriesIndex: a }
892
892
  ),
893
- e.coordinatesLine[t].x,
894
- e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
893
+ e.coordinatesLine[a].x,
894
+ e.coordinatesLine[a].y + t.value.style.chart.dataLabels.offsetY,
895
895
  {
896
896
  align: "center",
897
- font: `${a.value.style.chart.dataLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
898
- color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
899
- strokeColor: a.value.style.chart.backgroundColor,
897
+ font: `${t.value.style.chart.dataLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * t.value.style.chart.dataLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
898
+ color: t.value.style.chart.dataLabels.useSerieColor ? e.color : t.value.style.chart.dataLabels.color,
899
+ strokeColor: t.value.style.chart.backgroundColor,
900
900
  lineWidth: 0.5
901
901
  }
902
902
  );
903
903
  }
904
904
  const w = c([]);
905
- let Ra = 0;
906
- ua(() => {
907
- const e = ++Ra;
905
+ let Rt = 0;
906
+ ut(() => {
907
+ const e = ++Rt;
908
908
  (async () => {
909
- const t = await Fl({
910
- values: a.value.style.chart.grid.x.timeLabels.values,
909
+ const a = await Fl({
910
+ values: t.value.style.chart.grid.x.timeLabels.values,
911
911
  maxDatapoints: O.value,
912
- formatter: a.value.style.chart.grid.x.timeLabels.datetimeFormatter,
912
+ formatter: t.value.style.chart.grid.x.timeLabels.datetimeFormatter,
913
913
  start: 0,
914
914
  end: O.value
915
915
  });
916
- e === Ra && (w.value = t);
916
+ e === Rt && (w.value = a);
917
917
  })();
918
- }), ua(
918
+ }), ut(
919
919
  () => {
920
- a.value.style.chart.grid.x.timeLabels.show, a.value.style.chart.grid.x.timeLabels.rotation, a.value.style.chart.grid.x.timeLabels.offsetY, a.value.style.chart.grid.x.timeLabels.fontSizeRatio, a.value.style.chart.grid.x.timeLabels.bold, s.value.start, s.value.end, y.value, ee.value, (w.value || []).map((e) => e?.text ?? "").join("|"), Tt();
920
+ t.value.style.chart.grid.x.timeLabels.show, t.value.style.chart.grid.x.timeLabels.rotation, t.value.style.chart.grid.x.timeLabels.offsetY, t.value.style.chart.grid.x.timeLabels.fontSizeRatio, t.value.style.chart.grid.x.timeLabels.bold, s.value.start, s.value.end, y.value, ee.value, (w.value || []).map((e) => e?.text ?? "").join("|"), Ta();
921
921
  },
922
922
  { flush: "post" }
923
923
  );
924
- const Da = c({
924
+ const Dt = c({
925
925
  months: [],
926
926
  shortMonths: [],
927
927
  days: [],
928
928
  shortDays: []
929
929
  });
930
- let Oa = 0;
931
- ua(() => {
932
- const e = ++Oa, t = a.value.style.chart.grid.x.timeLabels.datetimeFormatter;
930
+ let Ot = 0;
931
+ ut(() => {
932
+ const e = ++Ot, a = t.value.style.chart.grid.x.timeLabels.datetimeFormatter;
933
933
  (async () => {
934
- const l = await ut(t.locale).catch(
935
- () => ut("en")
934
+ const l = await ua(a.locale).catch(
935
+ () => ua("en")
936
936
  );
937
- e === Oa && (Da.value = l.data);
937
+ e === Ot && (Dt.value = l.data);
938
938
  })();
939
939
  });
940
- const Ea = g(() => {
941
- const e = a.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = Pl({
940
+ const Et = g(() => {
941
+ const e = t.value.style.chart.grid.x.timeLabels.datetimeFormatter, a = Pl({
942
942
  useUTC: e.useUTC,
943
- locale: Da.value,
943
+ locale: Dt.value,
944
944
  januaryAsYear: e.januaryAsYear
945
945
  });
946
946
  return (l, u) => {
947
- const i = a.value.style.chart.grid.x.timeLabels.values?.[l];
948
- return i == null ? "" : t.formatDate(new Date(i), u);
947
+ const i = t.value.style.chart.grid.x.timeLabels.values?.[l];
948
+ return i == null ? "" : a.formatDate(new Date(i), u);
949
949
  };
950
- }), Na = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((t, l) => ({
951
- text: Ea.value(
950
+ }), Nt = g(() => (t.value.style.chart.grid.x.timeLabels.values || []).map((a, l) => ({
951
+ text: Et.value(
952
952
  l,
953
- a.value.style.chart.zoom.timeFormat
953
+ t.value.style.chart.zoom.timeFormat
954
954
  ),
955
955
  absoluteIndex: l
956
- }))), Be = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((t, l) => ({
957
- text: Ea.value(
956
+ }))), Be = g(() => (t.value.style.chart.grid.x.timeLabels.values || []).map((a, l) => ({
957
+ text: Et.value(
958
958
  l,
959
- a.value.style.chart.tooltip.timeFormat
959
+ t.value.style.chart.tooltip.timeFormat
960
960
  ),
961
961
  absoluteIndex: l
962
962
  })));
963
- function Wt() {
963
+ function Wa() {
964
964
  for (let e = s.value.start; e < s.value.end; e += 1)
965
- (s.value.end - s.value.start < a.value.style.chart.grid.x.timeLabels.modulo || s.value.end - s.value.start >= a.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor(
966
- (s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
967
- ) === 0 || (e === h.value + s.value.start || e === $.value) && a.value.style.chart.grid.x.timeLabels.showMarker)) && Q(
965
+ (s.value.end - s.value.start < t.value.style.chart.grid.x.timeLabels.modulo || s.value.end - s.value.start >= t.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor(
966
+ (s.value.end - s.value.start) / t.value.style.chart.grid.x.timeLabels.modulo
967
+ ) === 0 || (e === h.value + s.value.start || e === $.value) && t.value.style.chart.grid.x.timeLabels.showMarker)) && Q(
968
968
  v.value,
969
969
  w.value[e] ? w.value[e].text : e + 1,
970
970
  o.value.left + o.value.slot * (e - s.value.start) + o.value.slot / 2,
971
- o.value.bottom + y.value / a.value.style.chart.grid.x.timeLabels.offsetY,
971
+ o.value.bottom + y.value / t.value.style.chart.grid.x.timeLabels.offsetY,
972
972
  {
973
- align: a.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
974
- font: `${a.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
975
- color: a.value.style.chart.grid.x.timeLabels.showMarker ? Ie(
976
- a.value.style.chart.grid.x.timeLabels.color,
973
+ align: t.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : t.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
974
+ font: `${t.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * t.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
975
+ color: t.value.style.chart.grid.x.timeLabels.showMarker ? Ie(
976
+ t.value.style.chart.grid.x.timeLabels.color,
977
977
  h.value !== null || $.value !== null ? h.value + s.value.start === e || $.value === e ? 100 : 20 : 100
978
- ) : a.value.style.chart.grid.x.timeLabels.color,
979
- rotation: a.value.style.chart.grid.x.timeLabels.rotation
978
+ ) : t.value.style.chart.grid.x.timeLabels.color,
979
+ rotation: t.value.style.chart.grid.x.timeLabels.rotation
980
980
  }
981
981
  );
982
982
  }
983
- function Ba() {
983
+ function Bt() {
984
984
  T(
985
985
  v.value,
986
986
  [
@@ -994,13 +994,13 @@ const Zl = ["id"], Kl = ["id"], Jl = {
994
994
  }
995
995
  ],
996
996
  {
997
- color: a.value.style.chart.selector.color,
998
- lineDash: a.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
997
+ color: t.value.style.chart.selector.color,
998
+ lineDash: t.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
999
999
  lineWidth: 2
1000
1000
  }
1001
1001
  );
1002
1002
  }
1003
- function Xt() {
1003
+ function Xa() {
1004
1004
  _.value && T(
1005
1005
  v.value,
1006
1006
  [
@@ -1008,37 +1008,37 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1008
1008
  { x: o.value.right, y: _.value }
1009
1009
  ],
1010
1010
  {
1011
- color: a.value.style.chart.selector.color,
1012
- lineDash: a.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
1011
+ color: t.value.style.chart.selector.color,
1012
+ lineDash: t.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
1013
1013
  lineWidth: 2
1014
1014
  }
1015
1015
  );
1016
1016
  }
1017
- function _t() {
1018
- P.value.forEach((e, t) => {
1017
+ function _a() {
1018
+ P.value.forEach((e, a) => {
1019
1019
  for (let l = 0; l < e.coordinatesLine.length; l += 1)
1020
1020
  Ve(
1021
1021
  v.value,
1022
1022
  [
1023
1023
  {
1024
- x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)),
1024
+ x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * P.value.length) * a)),
1025
1025
  y: d.value.stacked ? e.localZero : A.value.zero
1026
1026
  },
1027
1027
  {
1028
- x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)) + o.value.slot * 0.8 / (d.value.stacked ? 1 : P.value.length),
1028
+ x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * P.value.length) * a)) + o.value.slot * 0.8 / (d.value.stacked ? 1 : P.value.length),
1029
1029
  y: d.value.stacked ? e.localZero : A.value.zero
1030
1030
  },
1031
1031
  {
1032
- x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)) + o.value.slot * 0.8 / (d.value.stacked ? 1 : P.value.length),
1032
+ x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * P.value.length) * a)) + o.value.slot * 0.8 / (d.value.stacked ? 1 : P.value.length),
1033
1033
  y: e.coordinatesLine[l].y
1034
1034
  },
1035
1035
  {
1036
- x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)),
1036
+ x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * P.value.length) * a)),
1037
1037
  y: e.coordinatesLine[l].y
1038
1038
  }
1039
1039
  ],
1040
1040
  {
1041
- strokeColor: a.value.style.chart.backgroundColor,
1041
+ strokeColor: t.value.style.chart.backgroundColor,
1042
1042
  gradient: {
1043
1043
  type: "linear",
1044
1044
  start: {
@@ -1053,7 +1053,7 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1053
1053
  { offset: 0, color: e.color },
1054
1054
  {
1055
1055
  offset: 1,
1056
- color: a.value.style.chart.bar.gradient.show ? Sl(e.color, 0.5) : e.color
1056
+ color: t.value.style.chart.bar.gradient.show ? Sl(e.color, 0.5) : e.color
1057
1057
  }
1058
1058
  ]
1059
1059
  }
@@ -1061,7 +1061,7 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1061
1061
  ), d.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Q(
1062
1062
  v.value,
1063
1063
  ce(
1064
- a.value.style.chart.dataLabels.formatter,
1064
+ t.value.style.chart.dataLabels.formatter,
1065
1065
  e.coordinatesLine[l].value,
1066
1066
  de({
1067
1067
  p: e.prefix || "",
@@ -1074,19 +1074,19 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1074
1074
  seriesIndex: l
1075
1075
  }
1076
1076
  ),
1077
- o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)) + o.value.slot * 0.4 / (d.value.stacked ? 1 : P.value.length),
1078
- (e.coordinatesLine[l].value < 0 ? d.value.stacked ? e.localZero : A.value.zero : e.coordinatesLine[l].y) + a.value.style.chart.dataLabels.offsetY,
1077
+ o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * P.value.length) * a)) + o.value.slot * 0.4 / (d.value.stacked ? 1 : P.value.length),
1078
+ (e.coordinatesLine[l].value < 0 ? d.value.stacked ? e.localZero : A.value.zero : e.coordinatesLine[l].y) + t.value.style.chart.dataLabels.offsetY,
1079
1079
  {
1080
1080
  align: "center",
1081
- font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
1082
- color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
1083
- strokeColor: a.value.style.chart.backgroundColor,
1081
+ font: `${Math.round(y.value / 40 * t.value.style.chart.dataLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,
1082
+ color: t.value.style.chart.dataLabels.useSerieColor ? e.color : t.value.style.chart.dataLabels.color,
1083
+ strokeColor: t.value.style.chart.backgroundColor,
1084
1084
  lineWidth: 0.8
1085
1085
  }
1086
1086
  );
1087
1087
  });
1088
1088
  }
1089
- function Vt(e, t) {
1089
+ function Va(e, a) {
1090
1090
  const l = e.coordinatesLine.map((r, m) => {
1091
1091
  const L = e.series[m];
1092
1092
  return L != null && Number.isFinite(r?.y) ? r : null;
@@ -1100,9 +1100,9 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1100
1100
  if (i.length >= 2) {
1101
1101
  const L = i[0], x = i[i.length - 1];
1102
1102
  u.push([
1103
- { x: L.x, y: t },
1103
+ { x: L.x, y: a },
1104
1104
  ...i,
1105
- { x: x.x, y: t }
1105
+ { x: x.x, y: a }
1106
1106
  ]);
1107
1107
  } else i.length === 1 && n.push(i[0]);
1108
1108
  i = [];
@@ -1111,29 +1111,29 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1111
1111
  if (i.length >= 2) {
1112
1112
  const r = i[0], m = i[i.length - 1];
1113
1113
  u.push([
1114
- { x: r.x, y: t },
1114
+ { x: r.x, y: a },
1115
1115
  ...i,
1116
- { x: m.x, y: t }
1116
+ { x: m.x, y: a }
1117
1117
  ]);
1118
1118
  } else i.length === 1 && n.push(i[0]);
1119
1119
  return { polygons: u, singles: n };
1120
1120
  }
1121
- function Ut(e) {
1122
- const t = e.coordinatesLine.map((n, i) => {
1121
+ function Ua(e) {
1122
+ const a = e.coordinatesLine.map((n, i) => {
1123
1123
  const r = e.series[i];
1124
1124
  return r != null && Number.isFinite(n?.y) ? n : null;
1125
1125
  }), l = [];
1126
1126
  let u = [];
1127
- for (let n = 0; n < t.length; n += 1) {
1128
- const i = t[n];
1127
+ for (let n = 0; n < a.length; n += 1) {
1128
+ const i = a[n];
1129
1129
  i ? u.push(i) : (u.length >= 2 && l.push(u), u = []);
1130
1130
  }
1131
1131
  return u.length >= 2 && l.push(u), l;
1132
1132
  }
1133
- function Ha(e) {
1133
+ function Ht(e) {
1134
1134
  if (Ee.value) {
1135
- const t = Ut(e);
1136
- for (const l of t)
1135
+ const a = Ua(e);
1136
+ for (const l of a)
1137
1137
  T(v.value, l, {
1138
1138
  color: e.color,
1139
1139
  lineWidth: 3
@@ -1144,43 +1144,43 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1144
1144
  lineWidth: 3
1145
1145
  });
1146
1146
  }
1147
- function Yt(e) {
1148
- const t = !!Ee.value;
1147
+ function Ya(e) {
1148
+ const a = !!Ee.value;
1149
1149
  if (e.useArea) {
1150
1150
  const l = d.value.stacked ? e.localZero : A.value.zero;
1151
- if (t) {
1152
- const { polygons: u, singles: n } = Vt(e, l);
1151
+ if (a) {
1152
+ const { polygons: u, singles: n } = Va(e, l);
1153
1153
  for (const r of u)
1154
- st(v.value, r, {
1154
+ sa(v.value, r, {
1155
1155
  fillColor: Ie(
1156
1156
  e.color,
1157
- a.value.style.chart.area.opacity
1157
+ t.value.style.chart.area.opacity
1158
1158
  ),
1159
1159
  strokeColor: "transparent"
1160
1160
  });
1161
- const i = y.value / 200 * a.value.style.chart.line.plots.radiusRatio;
1161
+ const i = y.value / 200 * t.value.style.chart.line.plots.radiusRatio;
1162
1162
  for (const r of n)
1163
- va(v.value, { x: r.x, y: r.y }, i, {
1164
- color: a.value.style.chart.backgroundColor,
1163
+ vt(v.value, { x: r.x, y: r.y }, i, {
1164
+ color: t.value.style.chart.backgroundColor,
1165
1165
  fillStyle: e.color
1166
1166
  });
1167
1167
  } else {
1168
1168
  const u = { x: e.coordinatesLine[0].x, y: l }, n = { x: e.coordinatesLine.at(-1).x, y: l };
1169
- st(v.value, [u, ...e.coordinatesLine, n], {
1169
+ sa(v.value, [u, ...e.coordinatesLine, n], {
1170
1170
  fillColor: Ie(
1171
1171
  e.color,
1172
- a.value.style.chart.area.opacity
1172
+ t.value.style.chart.area.opacity
1173
1173
  ),
1174
1174
  strokeColor: "transparent"
1175
1175
  });
1176
1176
  }
1177
- Ha(e);
1177
+ Ht(e);
1178
1178
  return;
1179
1179
  }
1180
- Ha(e);
1180
+ Ht(e);
1181
1181
  }
1182
- function qt() {
1183
- f.value.forEach((e, t) => {
1182
+ function qa() {
1183
+ f.value.forEach((e, a) => {
1184
1184
  T(
1185
1185
  v.value,
1186
1186
  [
@@ -1194,50 +1194,50 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1194
1194
  }
1195
1195
  ],
1196
1196
  {
1197
- color: a.value.style.chart.grid.x.horizontalLines.color,
1197
+ color: t.value.style.chart.grid.x.horizontalLines.color,
1198
1198
  lineWidth: 1
1199
1199
  }
1200
1200
  );
1201
1201
  });
1202
1202
  }
1203
- function jt() {
1204
- const { left: e, top: t, width: l, height: u } = o.value, n = s.value.start, r = s.value.end - n, m = l / r, L = F.value.start - n, x = F.value.end - n, S = Math.max(0, Math.min(r, L)), R = Math.max(0, Math.min(r, x));
1203
+ function ja() {
1204
+ const { left: e, top: a, width: l, height: u } = o.value, n = s.value.start, r = s.value.end - n, m = l / r, L = F.value.start - n, x = F.value.end - n, S = Math.max(0, Math.min(r, L)), R = Math.max(0, Math.min(r, x));
1205
1205
  Ve(
1206
1206
  v.value,
1207
1207
  [
1208
- { x: e + S * m, y: t },
1209
- { x: e + S * m + (R - S) * m, y: t },
1208
+ { x: e + S * m, y: a },
1209
+ { x: e + S * m + (R - S) * m, y: a },
1210
1210
  {
1211
1211
  x: e + S * m + (R - S) * m,
1212
- y: t + u
1212
+ y: a + u
1213
1213
  },
1214
- { x: e + S * m, y: t + u }
1214
+ { x: e + S * m, y: a + u }
1215
1215
  ],
1216
1216
  {
1217
- fillColor: a.value.style.chart.zoom.preview.fill,
1218
- strokeColor: a.value.style.chart.zoom.preview.stroke,
1217
+ fillColor: t.value.style.chart.zoom.preview.fill,
1218
+ strokeColor: t.value.style.chart.zoom.preview.stroke,
1219
1219
  lineDash: Array(4).fill(
1220
- a.value.style.chart.zoom.preview.strokeDasharray
1220
+ t.value.style.chart.zoom.preview.strokeDasharray
1221
1221
  ),
1222
- lineWidth: a.value.style.chart.zoom.preview.strokeWidth
1222
+ lineWidth: t.value.style.chart.zoom.preview.strokeWidth
1223
1223
  }
1224
1224
  );
1225
1225
  }
1226
1226
  function J() {
1227
- !U.value || !k.value || !v.value || (Ot(), N.value ? ((h.value !== null || $.value !== null) && a.value.style.chart.selector.show && Ba(), _t(), d.value.stacked && a.value.style.chart.grid.x.showAxis && qt(), Dt.value.forEach((e) => {
1228
- (e.type === "line" || !e.type) && Yt(e), X.value && (Et(e), d.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ht(e));
1229
- }), k.value && (Fe.value = $l(k.value))) : (Fe.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.drawImage(Fe.value, 0, 0)), (h.value !== null || $.value !== null) && a.value.style.chart.selector.show && Ba(), (h.value !== null || $.value !== null) && f.value.forEach((e) => {
1230
- const t = h.value ?? $.value, l = e.coordinatesLine[t];
1231
- (e.type === "line" || !e.type || e.type === "plot") && l && Number.isFinite(l.x) && Number.isFinite(l.y) && va(
1227
+ !U.value || !k.value || !v.value || (Oa(), N.value ? ((h.value !== null || $.value !== null) && t.value.style.chart.selector.show && Bt(), _a(), d.value.stacked && t.value.style.chart.grid.x.showAxis && qa(), Da.value.forEach((e) => {
1228
+ (e.type === "line" || !e.type) && Ya(e), X.value && (Ea(e), d.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ha(e));
1229
+ }), k.value && (Fe.value = $l(k.value))) : (Fe.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.drawImage(Fe.value, 0, 0)), (h.value !== null || $.value !== null) && t.value.style.chart.selector.show && Bt(), (h.value !== null || $.value !== null) && f.value.forEach((e) => {
1230
+ const a = h.value ?? $.value, l = e.coordinatesLine[a];
1231
+ (e.type === "line" || !e.type || e.type === "plot") && l && Number.isFinite(l.x) && Number.isFinite(l.y) && vt(
1232
1232
  v.value,
1233
1233
  { x: l.x, y: l.y },
1234
- y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
1234
+ y.value / 150 * t.value.style.chart.line.plots.radiusRatio,
1235
1235
  {
1236
- color: a.value.style.chart.backgroundColor,
1236
+ color: t.value.style.chart.backgroundColor,
1237
1237
  fillStyle: e.color
1238
1238
  }
1239
1239
  );
1240
- })), a.value.style.chart.grid.x.timeLabels.show && Wt(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Xt(), Bt(), Nt(), a.value.style.chart.zoom.preview.enable && (s.value.start !== F.value.start || s.value.end !== F.value.end) && jt(), N.value = !1);
1240
+ })), t.value.style.chart.grid.x.timeLabels.show && Wa(), t.value.style.chart.selector.show && t.value.style.chart.selector.showHorizontalSelector && Xa(), Ba(), Na(), t.value.style.chart.zoom.preview.enable && (s.value.start !== F.value.start || s.value.end !== F.value.end) && ja(), N.value = !1);
1241
1241
  }
1242
1242
  const Le = Al(
1243
1243
  () => {
@@ -1251,12 +1251,12 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1251
1251
  h.value ?? $.value
1252
1252
  ) || !e.coordinatesLine[h.value ?? $.value])
1253
1253
  return !1;
1254
- const { y: t, value: l } = e.coordinatesLine[h.value ?? $.value];
1255
- return { y: t, value: l };
1254
+ const { y: a, value: l } = e.coordinatesLine[h.value ?? $.value];
1255
+ return { y: a, value: l };
1256
1256
  }
1257
- function Gt(e) {
1258
- if (!U.value || !k.value || aa.value) return;
1259
- const { left: t, top: l } = k.value.getBoundingClientRect(), u = e.clientX - t;
1257
+ function Ga(e) {
1258
+ if (!U.value || !k.value || tt.value) return;
1259
+ const { left: a, top: l } = k.value.getBoundingClientRect(), u = e.clientX - a;
1260
1260
  if (_.value = (e.clientY - l) * 2, (_.value < o.value.top || _.value > o.value.bottom) && (_.value = null), u * 2 < o.value.left || u * 2 > o.value.right) {
1261
1261
  ke();
1262
1262
  return;
@@ -1264,7 +1264,7 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1264
1264
  const n = u * 2 - o.value.left, i = Math.floor(n / o.value.slot);
1265
1265
  if (h.value = i, V.value = i, he.value = !0, Re.value = !1, !X.value) return;
1266
1266
  let r = "";
1267
- const m = a.value.style.chart.tooltip.customFormat, L = f.value.map((x) => ({
1267
+ const m = t.value.style.chart.tooltip.customFormat, L = f.value.map((x) => ({
1268
1268
  shape: x.shape || null,
1269
1269
  name: x.name,
1270
1270
  color: x.color,
@@ -1272,97 +1272,97 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1272
1272
  value: x.series.find((S, R) => R === h.value)
1273
1273
  }));
1274
1274
  Me.value = {
1275
- timeLabel: a.value.style.chart.grid.x.timeLabels.values.slice(
1275
+ timeLabel: t.value.style.chart.grid.x.timeLabels.values.slice(
1276
1276
  s.value.start,
1277
1277
  s.value.end
1278
- )[h.value] ? a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(
1278
+ )[h.value] ? t.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(
1279
1279
  s.value.start,
1280
1280
  s.value.end
1281
1281
  )[h.value]?.text : Be.value[h.value]?.text : "",
1282
1282
  datapoint: L,
1283
1283
  seriesIndex: h.value,
1284
1284
  series: f.value,
1285
- config: a.value
1286
- }, Xa({ seriesIndex: h.value, datapoint: L }), ia(m) && ot(
1285
+ config: t.value
1286
+ }, Xt({ seriesIndex: h.value, datapoint: L }), it(m) && oa(
1287
1287
  () => m({
1288
1288
  seriesIndex: h.value,
1289
1289
  datapoint: L,
1290
1290
  series: f.value,
1291
- config: a.value
1291
+ config: t.value
1292
1292
  })
1293
1293
  ) ? fe.value = m({
1294
1294
  seriesIndex: h.value,
1295
1295
  datapoint: L,
1296
1296
  series: f.value,
1297
- config: a.value
1298
- }) : (a.value.style.chart.grid.x.timeLabels.values.slice(
1297
+ config: t.value
1298
+ }) : (t.value.style.chart.grid.x.timeLabels.values.slice(
1299
1299
  s.value.start,
1300
1300
  s.value.end
1301
- )[h.value] ? r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[h.value]?.text : Be.value[h.value]?.text}</div>` : r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${w.value[h.value + s.value.start]?.text ?? ""}</div>`, r += Ia.value.join(""), fe.value = r), X.value = !1;
1302
- }
1303
- function Zt(e) {
1304
- return f.value.map((t) => ({
1305
- shape: t.shape || null,
1306
- name: t.name,
1307
- color: t.color,
1308
- type: t.type || "line",
1309
- value: t.series.find((l, u) => u === e)
1301
+ )[h.value] ? r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${t.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[h.value]?.text : Be.value[h.value]?.text}</div>` : r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${w.value[h.value + s.value.start]?.text ?? ""}</div>`, r += It.value.join(""), fe.value = r), X.value = !1;
1302
+ }
1303
+ function Za(e) {
1304
+ return f.value.map((a) => ({
1305
+ shape: a.shape || null,
1306
+ name: a.name,
1307
+ color: a.color,
1308
+ type: a.type || "line",
1309
+ value: a.series.find((l, u) => u === e)
1310
1310
  }));
1311
1311
  }
1312
- function Kt(e) {
1313
- let t = "";
1314
- const l = a.value.style.chart.tooltip.customFormat, u = Zt(e);
1315
- return Xa({ seriesIndex: e, datapoint: u }), ia(l) && ot(
1312
+ function Ka(e) {
1313
+ let a = "";
1314
+ const l = t.value.style.chart.tooltip.customFormat, u = Za(e);
1315
+ return Xt({ seriesIndex: e, datapoint: u }), it(l) && oa(
1316
1316
  () => l({
1317
1317
  seriesIndex: e,
1318
1318
  datapoint: u,
1319
1319
  series: f.value,
1320
- config: a.value
1320
+ config: t.value
1321
1321
  })
1322
1322
  ) ? l({
1323
1323
  seriesIndex: e,
1324
1324
  datapoint: u,
1325
1325
  series: f.value,
1326
- config: a.value
1327
- }) : (a.value.style.chart.grid.x.timeLabels.values.slice(
1326
+ config: t.value
1327
+ }) : (t.value.style.chart.grid.x.timeLabels.values.slice(
1328
1328
  s.value.start,
1329
1329
  s.value.end
1330
- )[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[e]?.text : Be.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${w.value[e + s.value.start]?.text ?? ""}</div>`, t += Ia.value.join(""), t);
1330
+ )[e] ? a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${t.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[e]?.text : Be.value[e]?.text}</div>` : a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${w.value[e + s.value.start]?.text ?? ""}</div>`, a += It.value.join(""), a);
1331
1331
  }
1332
- function Jt(e) {
1332
+ function Ja(e) {
1333
1333
  if (!k.value || !o.value?.slot) return;
1334
- const t = k.value.getBoundingClientRect(), l = t.width / o.value.canvasWidth, u = t.height / o.value.canvasHeight, n = o.value.left + o.value.slot * e + o.value.slot / 2, i = o.value.top + o.value.height / 2;
1335
- pa.value = {
1336
- x: t.left + n * l,
1337
- y: t.top + i * u
1334
+ const a = k.value.getBoundingClientRect(), l = a.width / o.value.canvasWidth, u = a.height / o.value.canvasHeight, n = o.value.left + o.value.slot * e + o.value.slot / 2, i = o.value.top + o.value.height / 2;
1335
+ pt.value = {
1336
+ x: a.left + n * l,
1337
+ y: a.top + i * u
1338
1338
  };
1339
1339
  }
1340
- function Wa(e, { fromKeyboard: t = !1 } = {}) {
1341
- !U.value || aa.value || e != null && (e < 0 || e >= s.value.end - s.value.start || (h.value = e, V.value = e, he.value = !0, Re.value = t, fe.value = Kt(e), t && Jt(e), X.value = !1, J()));
1340
+ function Wt(e, { fromKeyboard: a = !1 } = {}) {
1341
+ !U.value || tt.value || e != null && (e < 0 || e >= s.value.end - s.value.start || (h.value = e, V.value = e, he.value = !0, Re.value = a, fe.value = Ka(e), a && Ja(e), X.value = !1, J()));
1342
1342
  }
1343
1343
  function ke() {
1344
1344
  he.value = !1, h.value = null, V.value = null, fe.value = "", _.value = null, Re.value = !1, J();
1345
1345
  }
1346
- function Qt() {
1346
+ function Qa() {
1347
1347
  Ke.value = !0;
1348
1348
  }
1349
1349
  function el() {
1350
1350
  Ke.value = !1, ke();
1351
1351
  }
1352
- function al(e) {
1352
+ function tl(e) {
1353
1353
  if (!k.value || we.value || document.activeElement !== k.value) return;
1354
- const t = e.key === "ArrowLeft", l = e.key === "ArrowRight";
1355
- if (!t && !l) return;
1354
+ const a = e.key === "ArrowLeft", l = e.key === "ArrowRight";
1355
+ if (!a && !l) return;
1356
1356
  const u = s.value.end - s.value.start;
1357
1357
  if (u <= 0) return;
1358
1358
  e.preventDefault(), e.stopPropagation();
1359
1359
  let n = V.value;
1360
- n !== null && n >= 0 && n < u ? l ? (n += 1, n >= u && (n = 0)) : (n -= 1, n < 0 && (n = u - 1)) : l ? n = 0 : n = u - 1, Wa(n, { fromKeyboard: !0 });
1360
+ n !== null && n >= 0 && n < u ? l ? (n += 1, n >= u && (n = 0)) : (n -= 1, n < 0 && (n = u - 1)) : l ? n = 0 : n = u - 1, Wt(n, { fromKeyboard: !0 });
1361
1361
  }
1362
- function Xa({ seriesIndex: e, datapoint: t }) {
1362
+ function Xt({ seriesIndex: e, datapoint: a }) {
1363
1363
  const l = s.value.start + e;
1364
1364
  De("selectX", {
1365
- dataset: t,
1365
+ dataset: a,
1366
1366
  index: l,
1367
1367
  indexLabel: ""
1368
1368
  });
@@ -1374,8 +1374,8 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1374
1374
  ke();
1375
1375
  return;
1376
1376
  }
1377
- const t = e - s.value.start;
1378
- t < 0 || e >= s.value.end ? ke() : Wa(t, { fromKeyboard: !1 });
1377
+ const a = e - s.value.start;
1378
+ a < 0 || e >= s.value.end ? ke() : Wt(a, { fromKeyboard: !1 });
1379
1379
  },
1380
1380
  { immediate: !0 }
1381
1381
  ), E(
@@ -1413,70 +1413,70 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1413
1413
  N.value = !0, X.value = !0, Le();
1414
1414
  }
1415
1415
  );
1416
- function tl() {
1416
+ function al() {
1417
1417
  ke();
1418
1418
  }
1419
- const te = na(null), re = na(null), ie = na(null);
1420
- Ja(() => {
1421
- ya.value = !0, _a();
1419
+ const ae = nt(null), re = nt(null), ie = nt(null);
1420
+ Jt(() => {
1421
+ yt.value = !0, _t();
1422
1422
  });
1423
- function _a() {
1424
- if (kl(D.dataset) && xt.value && wl({ componentName: "VueUiXyCanvas", type: "dataset" }), Te(() => {
1423
+ function _t() {
1424
+ if (kl(D.dataset) && xa.value && wl({ componentName: "VueUiXyCanvas", type: "dataset" }), Te(() => {
1425
1425
  k.value && !v.value && (v.value = k.value.getContext("2d", {
1426
1426
  willReadFrequently: !0
1427
1427
  })), v.value && U.value && (N.value = !0, X.value = !0, Ne());
1428
- }), a.value.responsive) {
1428
+ }), t.value.responsive) {
1429
1429
  const e = Il(() => {
1430
- const { width: t, height: l } = Ml({
1430
+ const { width: a, height: l } = Ml({
1431
1431
  chart: K.value,
1432
- title: a.value.style.chart.title.text ? ha.value : null,
1433
- legend: a.value.style.chart.legend.show ? fa.value : null,
1434
- slicer: a.value.style.chart.zoom.show && O.value > 6 ? ae.value?.$el : null,
1435
- source: ma.value
1432
+ title: t.value.style.chart.title.text ? ht.value : null,
1433
+ legend: t.value.style.chart.legend.show ? ft.value : null,
1434
+ slicer: t.value.style.chart.zoom.show && O.value > 6 ? te.value?.$el : null,
1435
+ source: mt.value
1436
1436
  });
1437
1437
  requestAnimationFrame(() => {
1438
- La.value = `${t} / ${l}`;
1438
+ Lt.value = `${a} / ${l}`;
1439
1439
  });
1440
1440
  });
1441
- te.value && (re.value && te.value.unobserve(re.value), te.value.disconnect()), te.value = new ResizeObserver(e), re.value = K.value.parentNode, te.value.observe(re.value);
1441
+ ae.value && (re.value && ae.value.unobserve(re.value), ae.value.disconnect()), ae.value = new ResizeObserver(e), re.value = K.value.parentNode, ae.value.observe(re.value);
1442
1442
  }
1443
1443
  ie.value && ie.value.disconnect(), ie.value = new ResizeObserver(async (e) => {
1444
- for (const t of e)
1445
- t.contentBoxSize && ue.value && (N.value = !0, Le());
1444
+ for (const a of e)
1445
+ a.contentBoxSize && ue.value && (N.value = !0, Le());
1446
1446
  }), ie.value.observe(ue.value), xe();
1447
1447
  }
1448
- sa(() => {
1449
- ie.value && ie.value.disconnect(), te.value && (re.value && te.value.unobserve(re.value), te.value.disconnect());
1448
+ st(() => {
1449
+ ie.value && ie.value.disconnect(), ae.value && (re.value && ae.value.unobserve(re.value), ae.value.disconnect());
1450
1450
  });
1451
1451
  function ll() {
1452
- p.value.length ? p.value = [] : We.value.forEach((e, t) => {
1453
- p.value.push(t);
1452
+ p.value.length ? p.value = [] : We.value.forEach((e, a) => {
1453
+ p.value.push(a);
1454
1454
  }), N.value = !0, Le();
1455
1455
  }
1456
1456
  function He(e) {
1457
1457
  De(
1458
1458
  "selectLegend",
1459
- f.value.find((t) => t.absoluteIndex === e)
1460
- ), p.value.includes(e) ? p.value = p.value.filter((t) => t !== e) : p.value.push(e), N.value = !0, Le();
1459
+ f.value.find((a) => a.absoluteIndex === e)
1460
+ ), p.value.includes(e) ? p.value = p.value.filter((a) => a !== e) : p.value.push(e), N.value = !0, Le();
1461
1461
  }
1462
- function Va(e) {
1462
+ function Vt(e) {
1463
1463
  if (!M.value.length)
1464
- return a.value.debug && console.warn("VueUiXyCanvas - There are no series to show."), null;
1465
- const t = M.value.find((l) => l.name === e);
1466
- return t || (a.value.debug && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null);
1464
+ return t.value.debug && console.warn("VueUiXyCanvas - There are no series to show."), null;
1465
+ const a = M.value.find((l) => l.name === e);
1466
+ return a || (t.value.debug && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null);
1467
1467
  }
1468
1468
  function ol(e) {
1469
- const t = Va(e);
1470
- t !== null && p.value.includes(t.absoluteIndex) && He(t.absoluteIndex);
1469
+ const a = Vt(e);
1470
+ a !== null && p.value.includes(a.absoluteIndex) && He(a.absoluteIndex);
1471
1471
  }
1472
1472
  function sl(e) {
1473
- const t = Va(e);
1474
- t !== null && (p.value.includes(t.absoluteIndex) || He(t.absoluteIndex));
1473
+ const a = Vt(e);
1474
+ a !== null && (p.value.includes(a.absoluteIndex) || He(a.absoluteIndex));
1475
1475
  }
1476
- const We = g(() => M.value.map((e, t) => ({
1476
+ const We = g(() => M.value.map((e, a) => ({
1477
1477
  ...e,
1478
1478
  name: e.name,
1479
- color: lt(e.color) || Ta.value[t] || se[t] || se[t % se.length],
1479
+ color: la(e.color) || Tt.value[a] || se[a] || se[a % se.length],
1480
1480
  shape: e.shape || "circle",
1481
1481
  prefix: e.prefix || "",
1482
1482
  suffix: e.suffix || "",
@@ -1488,21 +1488,21 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1488
1488
  isSegregated: p.value.includes(e.absoluteIndex)
1489
1489
  }))), ul = g(() => ({
1490
1490
  cy: "donut-div-legend",
1491
- backgroundColor: a.value.style.chart.legend.backgroundColor,
1492
- color: a.value.style.chart.legend.color,
1493
- fontSize: a.value.style.chart.legend.fontSize,
1491
+ backgroundColor: t.value.style.chart.legend.backgroundColor,
1492
+ color: t.value.style.chart.legend.color,
1493
+ fontSize: t.value.style.chart.legend.fontSize,
1494
1494
  paddingBottom: 12,
1495
- fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
1495
+ fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
1496
1496
  })), Xe = g(() => {
1497
1497
  const e = [""].concat(f.value.map((n) => n.name)).concat(
1498
1498
  ' <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>'
1499
1499
  );
1500
- let t = [];
1500
+ let a = [];
1501
1501
  for (let n = 0; n < O.value; n += 1) {
1502
1502
  const i = f.value.map((r) => r.series[n] ?? 0).reduce((r, m) => r + m, 0);
1503
- t.push(
1503
+ a.push(
1504
1504
  [
1505
- a.value.style.chart.grid.x.timeLabels.values.slice(
1505
+ t.value.style.chart.grid.x.timeLabels.values.slice(
1506
1506
  s.value.start,
1507
1507
  s.value.end
1508
1508
  )[n] ? w?.value?.slice(
@@ -1512,88 +1512,88 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1512
1512
  ].concat(
1513
1513
  f.value.map(
1514
1514
  (r) => (r.series[n] ?? 0).toFixed(
1515
- a.value.table.rounding
1515
+ t.value.table.rounding
1516
1516
  )
1517
1517
  )
1518
- ).concat((i ?? 0).toFixed(a.value.table.rounding))
1518
+ ).concat((i ?? 0).toFixed(t.value.table.rounding))
1519
1519
  );
1520
1520
  }
1521
1521
  const l = {
1522
1522
  th: {
1523
- backgroundColor: a.value.table.th.backgroundColor,
1524
- color: a.value.table.th.color,
1525
- outline: a.value.table.th.outline
1523
+ backgroundColor: t.value.table.th.backgroundColor,
1524
+ color: t.value.table.th.color,
1525
+ outline: t.value.table.th.outline
1526
1526
  },
1527
1527
  td: {
1528
- backgroundColor: a.value.table.td.backgroundColor,
1529
- color: a.value.table.td.color,
1530
- outline: a.value.table.td.outline
1528
+ backgroundColor: t.value.table.td.backgroundColor,
1529
+ color: t.value.table.td.color,
1530
+ outline: t.value.table.td.outline
1531
1531
  },
1532
- breakpoint: a.value.table.responsiveBreakpoint
1533
- }, u = [a.value.table.columnNames.period].concat(f.value.map((n) => n.name)).concat(a.value.table.columnNames.total);
1532
+ breakpoint: t.value.table.responsiveBreakpoint
1533
+ }, u = [t.value.table.columnNames.period].concat(f.value.map((n) => n.name)).concat(t.value.table.columnNames.total);
1534
1534
  return {
1535
1535
  head: e,
1536
- body: t.slice(0, s.value.end - s.value.start),
1536
+ body: a.slice(0, s.value.end - s.value.start),
1537
1537
  config: l,
1538
1538
  colNames: u
1539
1539
  };
1540
- }), Ua = g(() => {
1540
+ }), Ut = g(() => {
1541
1541
  if (f.value.length === 0)
1542
1542
  return { head: [], body: [], config: {}, columnNames: [] };
1543
1543
  const e = f.value.map((l) => ({
1544
1544
  label: l.name,
1545
1545
  color: l.color,
1546
1546
  type: l.type
1547
- })), t = [];
1547
+ })), a = [];
1548
1548
  for (let l = s.value.start; l < s.value.end; l += 1) {
1549
1549
  const u = [
1550
- a.value.style.chart.grid.x.timeLabels.values[l] ? w.value[l].text : l + 1
1550
+ t.value.style.chart.grid.x.timeLabels.values[l] ? w.value[l].text : l + 1
1551
1551
  ];
1552
1552
  f.value.forEach((n) => {
1553
1553
  u.push(
1554
1554
  Number(
1555
1555
  (n.series[l] || 0).toFixed(
1556
- a.value.table.rounding
1556
+ t.value.table.rounding
1557
1557
  )
1558
1558
  )
1559
1559
  );
1560
- }), t.push(u);
1560
+ }), a.push(u);
1561
1561
  }
1562
- return { head: e, body: t };
1562
+ return { head: e, body: a };
1563
1563
  });
1564
- function la(e = null) {
1565
- const t = [
1566
- [a.value.style.chart.title.text],
1567
- [a.value.style.chart.title.subtitle.text],
1564
+ function lt(e = null) {
1565
+ const a = [
1566
+ [t.value.style.chart.title.text],
1567
+ [t.value.style.chart.title.subtitle.text],
1568
1568
  [""]
1569
- ], l = ["", ...Ua.value.head.map((r) => r.label)], u = Ua.value.body, n = t.concat([l]).concat(u), i = zl(n);
1569
+ ], l = ["", ...Ut.value.head.map((r) => r.label)], u = Ut.value.body, n = a.concat([l]).concat(u), i = zl(n);
1570
1570
  e ? e(i) : Tl({
1571
1571
  csvContent: i,
1572
- title: a.value.style.chart.title.text || "vue-ui-xy-canvas"
1572
+ title: t.value.style.chart.title.text || "vue-ui-xy-canvas"
1573
1573
  });
1574
1574
  }
1575
1575
  function nl() {
1576
1576
  return f.value;
1577
1577
  }
1578
- function Ya() {
1578
+ function Yt() {
1579
1579
  d.value.showTable = !d.value.showTable;
1580
1580
  }
1581
- function qa() {
1581
+ function qt() {
1582
1582
  d.value.showDataLabels = !d.value.showDataLabels;
1583
1583
  }
1584
- function ja() {
1584
+ function jt() {
1585
1585
  d.value.stacked = !d.value.stacked;
1586
1586
  }
1587
- function Ga() {
1587
+ function Gt() {
1588
1588
  d.value.showTooltip = !d.value.showTooltip;
1589
1589
  }
1590
1590
  const we = c(!1);
1591
- function oa() {
1591
+ function ot() {
1592
1592
  we.value = !we.value;
1593
1593
  }
1594
1594
  async function rl({ scale: e = 2 } = {}) {
1595
1595
  if (!K.value) return;
1596
- const { width: t, height: l } = K.value.getBoundingClientRect(), u = t / l, { imageUri: n, base64: i } = await Wl({
1596
+ const { width: a, height: l } = K.value.getBoundingClientRect(), u = a / l, { imageUri: n, base64: i } = await Wl({
1597
1597
  domElement: K.value,
1598
1598
  base64: !0,
1599
1599
  img: !0,
@@ -1602,22 +1602,22 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1602
1602
  return {
1603
1603
  imageUri: n,
1604
1604
  base64: i,
1605
- title: a.value.style.chart.title.text,
1606
- width: t,
1605
+ title: t.value.style.chart.title.text,
1606
+ width: a,
1607
1607
  height: l,
1608
1608
  aspectRatio: u
1609
1609
  };
1610
1610
  }
1611
1611
  const Se = g(() => {
1612
- const e = a.value.table.useDialog && !a.value.table.show, t = d.value.showTable;
1612
+ const e = t.value.table.useDialog && !t.value.table.show, a = d.value.showTable;
1613
1613
  return {
1614
- component: e ? ht : Yl,
1615
- title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? `: ${a.value.style.chart.title.subtitle.text}` : ""}`,
1614
+ component: e ? ha : Yl,
1615
+ title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
1616
1616
  props: e ? {
1617
- backgroundColor: a.value.table.th.backgroundColor,
1618
- color: a.value.table.th.color,
1619
- headerColor: a.value.table.th.color,
1620
- headerBg: a.value.table.th.backgroundColor,
1617
+ backgroundColor: t.value.table.th.backgroundColor,
1618
+ color: t.value.table.th.color,
1619
+ headerColor: t.value.table.th.color,
1620
+ headerBg: t.value.table.th.backgroundColor,
1621
1621
  isFullscreen: me.value,
1622
1622
  fullscreenParent: K.value,
1623
1623
  forcedWidth: Math.min(800, window.innerWidth * 0.8),
@@ -1625,15 +1625,15 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1625
1625
  } : {
1626
1626
  hideDetails: !0,
1627
1627
  config: {
1628
- open: t,
1628
+ open: a,
1629
1629
  maxHeight: 1e4,
1630
1630
  body: {
1631
- backgroundColor: a.value.style.chart.backgroundColor,
1632
- color: a.value.style.chart.color
1631
+ backgroundColor: t.value.style.chart.backgroundColor,
1632
+ color: t.value.style.chart.color
1633
1633
  },
1634
1634
  head: {
1635
- backgroundColor: a.value.style.chart.backgroundColor,
1636
- color: a.value.style.chart.color
1635
+ backgroundColor: t.value.style.chart.backgroundColor,
1636
+ color: t.value.style.chart.color
1637
1637
  }
1638
1638
  }
1639
1639
  }
@@ -1642,10 +1642,10 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1642
1642
  E(
1643
1643
  () => d.value.showTable,
1644
1644
  (e) => {
1645
- a.value.table.show || (e && a.value.table.useDialog && ye.value ? ye.value.open() : "close" in ye.value && ye.value.close());
1645
+ t.value.table.show || (e && t.value.table.useDialog && ye.value ? ye.value.open() : "close" in ye.value && ye.value.close());
1646
1646
  }
1647
1647
  );
1648
- function Za() {
1648
+ function Zt() {
1649
1649
  d.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
1650
1650
  }
1651
1651
  function il(e) {
@@ -1657,72 +1657,72 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1657
1657
  Ze.value = !1;
1658
1658
  return;
1659
1659
  }
1660
- Sa();
1660
+ St();
1661
1661
  }
1662
- async function Ka() {
1662
+ async function Kt() {
1663
1663
  if (De("copyAlt", {
1664
- config: a.value,
1664
+ config: t.value,
1665
1665
  dataset: f.value
1666
- }), !a.value.userOptions.callbacks.altCopy) {
1666
+ }), !t.value.userOptions.callbacks.altCopy) {
1667
1667
  console.warn(
1668
1668
  "Vue Data UI - A callback must be set for `altCopy` in userOptions."
1669
1669
  );
1670
1670
  return;
1671
1671
  }
1672
1672
  await Promise.resolve(
1673
- a.value.userOptions.callbacks.altCopy({
1674
- config: a.value,
1673
+ t.value.userOptions.callbacks.altCopy({
1674
+ config: t.value,
1675
1675
  dataset: f.value
1676
1676
  })
1677
1677
  );
1678
1678
  }
1679
- return nt({
1679
+ return na({
1680
1680
  getData: nl,
1681
1681
  getImage: rl,
1682
- generateCsv: la,
1683
- generatePdf: wa,
1684
- generateImage: Sa,
1682
+ generateCsv: lt,
1683
+ generatePdf: wt,
1684
+ generateImage: St,
1685
1685
  hideSeries: sl,
1686
1686
  showSeries: ol,
1687
- toggleTable: Ya,
1688
- toggleLabels: qa,
1689
- toggleStack: ja,
1690
- toggleTooltip: Ga,
1691
- toggleAnnotator: oa,
1692
- toggleFullscreen: za,
1693
- copyAlt: Ka
1694
- }), (e, t) => (I(), $e("div", {
1695
- style: ve(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}; background:${a.value.style.chart.backgroundColor};`),
1687
+ toggleTable: Yt,
1688
+ toggleLabels: qt,
1689
+ toggleStack: jt,
1690
+ toggleTooltip: Gt,
1691
+ toggleAnnotator: ot,
1692
+ toggleFullscreen: zt,
1693
+ copyAlt: Kt
1694
+ }), (e, a) => (I(), $e("div", {
1695
+ style: ve(`width:100%; position:relative; ${t.value.responsive ? "height: 100%" : ""}; background:${t.value.style.chart.backgroundColor};`),
1696
1696
  ref_key: "xy",
1697
1697
  ref: K,
1698
1698
  id: `xy_canvas_${Z.value}`,
1699
1699
  class: dl(`vue-data-ui-component vue-ui-xy-canvas ${me.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1700
- onMouseenter: Ct,
1701
- onMouseleave: kt
1700
+ onMouseenter: Ca,
1701
+ onMouseleave: ka
1702
1702
  }, [
1703
1703
  H("div", {
1704
1704
  id: `chart-instructions-${Z.value}`,
1705
1705
  class: "sr-only"
1706
1706
  }, [
1707
- H("p", null, Ae(a.value.a11y.translations.keyboardNavigation), 1)
1707
+ H("p", null, Ae(t.value.a11y.translations.keyboardNavigation), 1)
1708
1708
  ], 8, Kl),
1709
- H("div", Jl, Ae(bt.value), 1),
1710
- a.value.style.chart.title.text ? (I(), $e("div", {
1709
+ H("div", Jl, Ae(ba.value), 1),
1710
+ t.value.style.chart.title.text ? (I(), $e("div", {
1711
1711
  key: 0,
1712
1712
  ref_key: "chartTitle",
1713
- ref: ha,
1714
- style: ve(`width:100%;background:${a.value.style.chart.backgroundColor};`)
1713
+ ref: ht,
1714
+ style: ve(`width:100%;background:${t.value.style.chart.backgroundColor};`)
1715
1715
  }, [
1716
1716
  (I(), q(Vl, {
1717
1717
  key: `title_${Ye.value}`,
1718
1718
  config: {
1719
1719
  title: {
1720
1720
  cy: "xy-canvas-title",
1721
- ...a.value.style.chart.title
1721
+ ...t.value.style.chart.title
1722
1722
  },
1723
1723
  subtitle: {
1724
1724
  cy: "xy-canvas-subtitle",
1725
- ...a.value.style.chart.title.subtitle
1725
+ ...t.value.style.chart.title.subtitle
1726
1726
  }
1727
1727
  }
1728
1728
  }, null, 8, ["config"]))
@@ -1730,50 +1730,50 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1730
1730
  H("div", {
1731
1731
  id: `legend-top-${Z.value}`
1732
1732
  }, null, 8, Ql),
1733
- a.value.userOptions.show && U.value && (z(xa) || z(Qe)) ? (I(), q(z(ct), {
1733
+ t.value.userOptions.show && U.value && (z(xt) || z(Qe)) ? (I(), q(z(ca), {
1734
1734
  ref_key: "userOptionsRef",
1735
1735
  ref: Ge,
1736
- key: `user_option_${da.value}`,
1737
- backgroundColor: a.value.style.chart.backgroundColor,
1738
- color: a.value.style.chart.color,
1739
- isPrinting: z(Ca),
1740
- isImaging: z(ka),
1736
+ key: `user_option_${dt.value}`,
1737
+ backgroundColor: t.value.style.chart.backgroundColor,
1738
+ color: t.value.style.chart.color,
1739
+ isPrinting: z(Ct),
1740
+ isImaging: z(kt),
1741
1741
  uid: Z.value,
1742
- hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
1743
- hasPdf: a.value.userOptions.buttons.pdf,
1744
- hasImg: a.value.userOptions.buttons.img,
1745
- hasXls: a.value.userOptions.buttons.csv,
1746
- hasLabel: a.value.userOptions.buttons.labels,
1747
- hasStack: ca.dataset.length > 1 && a.value.userOptions.buttons.stack,
1748
- hasFullscreen: a.value.userOptions.buttons.fullscreen,
1749
- hasAltCopy: a.value.userOptions.buttons.altCopy,
1750
- hasTable: s.value.end - s.value.start <= 730 && a.value.userOptions.buttons.table,
1742
+ hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
1743
+ hasPdf: t.value.userOptions.buttons.pdf,
1744
+ hasImg: t.value.userOptions.buttons.img,
1745
+ hasXls: t.value.userOptions.buttons.csv,
1746
+ hasLabel: t.value.userOptions.buttons.labels,
1747
+ hasStack: ct.dataset.length > 1 && t.value.userOptions.buttons.stack,
1748
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
1749
+ hasAltCopy: t.value.userOptions.buttons.altCopy,
1750
+ hasTable: s.value.end - s.value.start <= 730 && t.value.userOptions.buttons.table,
1751
1751
  isFullscreen: me.value,
1752
1752
  isTooltip: d.value.showTooltip,
1753
1753
  isStacked: d.value.stacked,
1754
- titles: { ...a.value.userOptions.buttonTitles },
1754
+ titles: { ...t.value.userOptions.buttonTitles },
1755
1755
  chartElement: K.value,
1756
- position: a.value.userOptions.position,
1757
- hasAnnotator: a.value.userOptions.buttons.annotator,
1756
+ position: t.value.userOptions.position,
1757
+ hasAnnotator: t.value.userOptions.buttons.annotator,
1758
1758
  isAnnotation: we.value,
1759
- callbacks: a.value.userOptions.callbacks,
1760
- printScale: a.value.userOptions.print.scale,
1761
- tableDialog: a.value.table.useDialog,
1759
+ callbacks: t.value.userOptions.callbacks,
1760
+ printScale: t.value.userOptions.print.scale,
1761
+ tableDialog: t.value.table.useDialog,
1762
1762
  isCursorPointer: le.value,
1763
- onToggleFullscreen: za,
1764
- onGeneratePdf: z(wa),
1765
- onGenerateCsv: la,
1763
+ onToggleFullscreen: zt,
1764
+ onGeneratePdf: z(wt),
1765
+ onGenerateCsv: lt,
1766
1766
  onGenerateImage: il,
1767
- onToggleTable: Ya,
1768
- onToggleLabels: qa,
1769
- onToggleStack: ja,
1770
- onToggleTooltip: Ga,
1771
- onToggleAnnotator: oa,
1772
- onCopyAlt: Ka,
1767
+ onToggleTable: Yt,
1768
+ onToggleLabels: qt,
1769
+ onToggleStack: jt,
1770
+ onToggleTooltip: Gt,
1771
+ onToggleAnnotator: ot,
1772
+ onCopyAlt: Kt,
1773
1773
  style: ve({
1774
- visibility: z(xa) ? z(Qe) ? "visible" : "hidden" : "visible"
1774
+ visibility: z(xt) ? z(Qe) ? "visible" : "hidden" : "visible"
1775
1775
  })
1776
- }, Qa({ _: 2 }, [
1776
+ }, Qt({ _: 2 }, [
1777
1777
  e.$slots.menuIcon ? {
1778
1778
  name: "menuIcon",
1779
1779
  fn: b(({ isOpen: l, color: u }) => [
@@ -1854,56 +1854,56 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1854
1854
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasAltCopy", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : W("", !0),
1855
1855
  H("div", {
1856
1856
  class: "vue-ui-xy-canvas",
1857
- style: ve(`position: relative; aspect-ratio: ${La.value}`),
1857
+ style: ve(`position: relative; aspect-ratio: ${Lt.value}`),
1858
1858
  ref_key: "container",
1859
1859
  ref: ue
1860
1860
  }, [
1861
1861
  H("canvas", {
1862
1862
  ref_key: "canvas",
1863
1863
  ref: k,
1864
- "aria-label": pt.value,
1864
+ "aria-label": pa.value,
1865
1865
  "aria-describedby": `chart-instructions-${Z.value}`,
1866
1866
  role: "img",
1867
1867
  "aria-live": "polite",
1868
1868
  tabindex: "0",
1869
1869
  style: { width: "100%", height: "100%" },
1870
- onMousemove: t[0] || (t[0] = (l) => Gt(l)),
1871
- onMouseleave: tl,
1872
- onFocus: Qt,
1870
+ onMousemove: a[0] || (a[0] = (l) => Ga(l)),
1871
+ onMouseleave: al,
1872
+ onFocus: Qa,
1873
1873
  onBlur: el,
1874
- onKeydown: al
1874
+ onKeydown: tl
1875
1875
  }, null, 40, eo),
1876
- e.$slots.hint ? (I(), $e("div", ao, [
1876
+ e.$slots.hint ? (I(), $e("div", to, [
1877
1877
  C(e.$slots, "hint", j(G({
1878
- hint: a.value.a11y.translations.keyboardNavigation,
1878
+ hint: t.value.a11y.translations.keyboardNavigation,
1879
1879
  isVisible: Ke.value
1880
1880
  })), void 0, !0)
1881
1881
  ])) : W("", !0),
1882
1882
  C(e.$slots, "skeleton", {}, () => [
1883
1883
  z(Oe) ? (I(), q(Ol, { key: 0 })) : W("", !0)
1884
1884
  ], !0),
1885
- et(z(it), {
1886
- teleportTo: a.value.style.chart.tooltip.teleportTo,
1885
+ ea(z(ia), {
1886
+ teleportTo: t.value.style.chart.tooltip.teleportTo,
1887
1887
  show: d.value.showTooltip && he.value,
1888
- backgroundColor: a.value.style.chart.tooltip.backgroundColor,
1889
- color: a.value.style.chart.tooltip.color,
1890
- fontSize: a.value.style.chart.tooltip.fontSize,
1891
- borderRadius: a.value.style.chart.tooltip.borderRadius,
1892
- borderColor: a.value.style.chart.tooltip.borderColor,
1893
- borderWidth: a.value.style.chart.tooltip.borderWidth,
1894
- position: a.value.style.chart.tooltip.position,
1895
- offsetY: a.value.style.chart.tooltip.offsetY,
1888
+ backgroundColor: t.value.style.chart.tooltip.backgroundColor,
1889
+ color: t.value.style.chart.tooltip.color,
1890
+ fontSize: t.value.style.chart.tooltip.fontSize,
1891
+ borderRadius: t.value.style.chart.tooltip.borderRadius,
1892
+ borderColor: t.value.style.chart.tooltip.borderColor,
1893
+ borderWidth: t.value.style.chart.tooltip.borderWidth,
1894
+ position: t.value.style.chart.tooltip.position,
1895
+ offsetY: t.value.style.chart.tooltip.offsetY,
1896
1896
  parent: e.$refs.xy,
1897
1897
  content: fe.value,
1898
1898
  isFullscreen: me.value,
1899
- backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
1900
- isCustom: z(ia)(a.value.style.chart.tooltip.customFormat),
1901
- smooth: a.value.style.chart.tooltip.smooth,
1902
- backdropFilter: a.value.style.chart.tooltip.backdropFilter,
1903
- smoothForce: a.value.style.chart.tooltip.smoothForce,
1904
- smoothSnapThreshold: a.value.style.chart.tooltip.smoothSnapThreshold,
1899
+ backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
1900
+ isCustom: z(it)(t.value.style.chart.tooltip.customFormat),
1901
+ smooth: t.value.style.chart.tooltip.smooth,
1902
+ backdropFilter: t.value.style.chart.tooltip.backdropFilter,
1903
+ smoothForce: t.value.style.chart.tooltip.smoothForce,
1904
+ smoothSnapThreshold: t.value.style.chart.tooltip.smoothSnapThreshold,
1905
1905
  isA11yMode: Re.value,
1906
- a11yPosition: pa.value
1906
+ a11yPosition: pt.value
1907
1907
  }, {
1908
1908
  "tooltip-before": b(() => [
1909
1909
  C(e.$slots, "tooltip-before", j(G({ ...Me.value })), void 0, !0)
@@ -1917,66 +1917,66 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1917
1917
  _: 3
1918
1918
  }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"])
1919
1919
  ], 4),
1920
- a.value.style.chart.zoom.show && O.value > 6 && U.value && ga.value && !z(Oe) ? (I(), q(ql, {
1920
+ t.value.style.chart.zoom.show && O.value > 6 && U.value && gt.value && !z(Oe) ? (I(), q(ql, {
1921
1921
  key: 2,
1922
1922
  ref_key: "chartSlicer",
1923
- ref: ae,
1924
- allMinimaps: It.value,
1925
- background: a.value.style.chart.zoom.color,
1926
- borderColor: a.value.style.chart.backgroundColor,
1927
- customFormat: a.value.style.chart.zoom.customFormat,
1923
+ ref: te,
1924
+ allMinimaps: Ia.value,
1925
+ background: t.value.style.chart.zoom.color,
1926
+ borderColor: t.value.style.chart.backgroundColor,
1927
+ customFormat: t.value.style.chart.zoom.customFormat,
1928
1928
  cutNullValues: Ee.value,
1929
- enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
1930
- enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
1929
+ enableRangeHandles: t.value.style.chart.zoom.enableRangeHandles,
1930
+ enableSelectionDrag: t.value.style.chart.zoom.enableSelectionDrag,
1931
1931
  end: s.value.end,
1932
- focusOnDrag: a.value.style.chart.zoom.focusOnDrag,
1933
- focusRangeRatio: a.value.style.chart.zoom.focusRangeRatio,
1934
- fontSize: a.value.style.chart.zoom.fontSize,
1935
- immediate: !a.value.style.chart.zoom.preview.enable,
1936
- inputColor: a.value.style.chart.zoom.color,
1937
- isPreview: Ft.value,
1938
- labelLeft: a.value.style.chart.grid.x.timeLabels.values[s.value.start] ? w.value[s.value.start]?.text : "",
1939
- labelRight: a.value.style.chart.grid.x.timeLabels.values[s.value.end - 1] ? w.value[s.value.end - 1]?.text : "",
1932
+ focusOnDrag: t.value.style.chart.zoom.focusOnDrag,
1933
+ focusRangeRatio: t.value.style.chart.zoom.focusRangeRatio,
1934
+ fontSize: t.value.style.chart.zoom.fontSize,
1935
+ immediate: !t.value.style.chart.zoom.preview.enable,
1936
+ inputColor: t.value.style.chart.zoom.color,
1937
+ isPreview: Fa.value,
1938
+ labelLeft: t.value.style.chart.grid.x.timeLabels.values[s.value.start] ? w.value[s.value.start]?.text : "",
1939
+ labelRight: t.value.style.chart.grid.x.timeLabels.values[s.value.end - 1] ? w.value[s.value.end - 1]?.text : "",
1940
1940
  max: O.value,
1941
1941
  min: 0,
1942
- minimap: At.value,
1943
- minimapCompact: a.value.style.chart.zoom.minimap.compact,
1944
- minimapFrameColor: a.value.style.chart.zoom.minimap.frameColor,
1945
- minimapIndicatorColor: a.value.style.chart.zoom.minimap.indicatorColor,
1946
- minimapLineColor: a.value.style.chart.zoom.minimap.lineColor,
1947
- minimapMerged: a.value.style.chart.zoom.minimap.merged,
1948
- minimapSelectedColor: a.value.style.chart.zoom.minimap.selectedColor,
1949
- minimapSelectedColorOpacity: a.value.style.chart.zoom.minimap.selectedColorOpacity,
1942
+ minimap: Aa.value,
1943
+ minimapCompact: t.value.style.chart.zoom.minimap.compact,
1944
+ minimapFrameColor: t.value.style.chart.zoom.minimap.frameColor,
1945
+ minimapIndicatorColor: t.value.style.chart.zoom.minimap.indicatorColor,
1946
+ minimapLineColor: t.value.style.chart.zoom.minimap.lineColor,
1947
+ minimapMerged: t.value.style.chart.zoom.minimap.merged,
1948
+ minimapSelectedColor: t.value.style.chart.zoom.minimap.selectedColor,
1949
+ minimapSelectedColorOpacity: t.value.style.chart.zoom.minimap.selectedColorOpacity,
1950
1950
  minimapSelectedIndex: h.value,
1951
- minimapSelectionRadius: a.value.style.chart.zoom.minimap.selectionRadius,
1952
- preciseLabels: Na.value?.length ? Na.value : w.value,
1953
- refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : O.value,
1954
- refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
1955
- selectColor: a.value.style.chart.zoom.highlightColor,
1951
+ minimapSelectionRadius: t.value.style.chart.zoom.minimap.selectionRadius,
1952
+ preciseLabels: Nt.value?.length ? Nt.value : w.value,
1953
+ refreshEndPoint: t.value.style.chart.zoom.endIndex !== null ? t.value.style.chart.zoom.endIndex + 1 : O.value,
1954
+ refreshStartPoint: t.value.style.chart.zoom.startIndex !== null ? t.value.style.chart.zoom.startIndex : 0,
1955
+ selectColor: t.value.style.chart.zoom.highlightColor,
1956
1956
  selectedSeries: M.value,
1957
- smoothMinimap: a.value.style.chart.zoom.minimap.smooth,
1957
+ smoothMinimap: t.value.style.chart.zoom.minimap.smooth,
1958
1958
  start: s.value.start,
1959
1959
  timeLabels: w.value,
1960
- usePreciseLabels: a.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !a.value.style.chart.zoom.useDefaultFormat,
1961
- textColor: a.value.style.chart.color,
1962
- useResetSlot: a.value.style.chart.zoom.useResetSlot,
1960
+ usePreciseLabels: t.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !t.value.style.chart.zoom.useDefaultFormat,
1961
+ textColor: t.value.style.chart.color,
1962
+ useResetSlot: t.value.style.chart.zoom.useResetSlot,
1963
1963
  valueEnd: s.value.end,
1964
1964
  valueStart: s.value.start,
1965
- verticalHandles: a.value.style.chart.zoom.minimap.verticalHandles,
1966
- maxWidth: a.value.style.chart.zoom.maxWidth,
1967
- additionalMinimapHeight: a.value.style.chart.zoom.minimap.additionalHeight,
1968
- handleType: a.value.style.chart.zoom.minimap.handleType,
1969
- handleIconColor: a.value.style.chart.zoom.minimap.handleIconColor,
1970
- handleBorderWidth: a.value.style.chart.zoom.minimap.handleBorderWidth,
1971
- handleBorderColor: a.value.style.chart.zoom.minimap.handleBorderColor,
1972
- handleFill: a.value.style.chart.zoom.minimap.handleFill,
1973
- handleWidth: a.value.style.chart.zoom.minimap.handleWidth,
1974
- onFutureEnd: t[1] || (t[1] = (l) => Ma("end", l)),
1975
- onFutureStart: t[2] || (t[2] = (l) => Ma("start", l)),
1965
+ verticalHandles: t.value.style.chart.zoom.minimap.verticalHandles,
1966
+ maxWidth: t.value.style.chart.zoom.maxWidth,
1967
+ additionalMinimapHeight: t.value.style.chart.zoom.minimap.additionalHeight,
1968
+ handleType: t.value.style.chart.zoom.minimap.handleType,
1969
+ handleIconColor: t.value.style.chart.zoom.minimap.handleIconColor,
1970
+ handleBorderWidth: t.value.style.chart.zoom.minimap.handleBorderWidth,
1971
+ handleBorderColor: t.value.style.chart.zoom.minimap.handleBorderColor,
1972
+ handleFill: t.value.style.chart.zoom.minimap.handleFill,
1973
+ handleWidth: t.value.style.chart.zoom.minimap.handleWidth,
1974
+ onFutureEnd: a[1] || (a[1] = (l) => Mt("end", l)),
1975
+ onFutureStart: a[2] || (a[2] = (l) => Mt("start", l)),
1976
1976
  onReset: xe,
1977
- onTrapMouse: wt,
1978
- "onUpdate:end": Rt,
1979
- "onUpdate:start": Pt
1977
+ onTrapMouse: wa,
1978
+ "onUpdate:end": Ra,
1979
+ "onUpdate:start": Pa
1980
1980
  }, {
1981
1981
  "reset-action": b(({ reset: l }) => [
1982
1982
  C(e.$slots, "reset-action", j(G({ reset: l })), void 0, !0)
@@ -1985,21 +1985,21 @@ const Zl = ["id"], Kl = ["id"], Jl = {
1985
1985
  }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "timeLabels", "usePreciseLabels", "textColor", "useResetSlot", "valueEnd", "valueStart", "verticalHandles", "maxWidth", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth"])) : W("", !0),
1986
1986
  H("div", {
1987
1987
  id: `legend-bottom-${Z.value}`
1988
- }, null, 8, to),
1989
- ya.value ? (I(), q(hl, {
1988
+ }, null, 8, ao),
1989
+ yt.value && t.value.style.chart.legend.show ? (I(), q(hl, {
1990
1990
  key: 3,
1991
- to: a.value.style.chart.legend.position === "top" ? `#legend-top-${Z.value}` : `#legend-bottom-${Z.value}`
1991
+ to: t.value.style.chart.legend.position === "top" ? `#legend-top-${Z.value}` : `#legend-bottom-${Z.value}`
1992
1992
  }, [
1993
1993
  H("div", {
1994
1994
  ref_key: "chartLegend",
1995
- ref: fa
1995
+ ref: ft
1996
1996
  }, [
1997
- a.value.style.chart.legend.show && U.value ? (I(), q(_l, {
1997
+ t.value.style.chart.legend.show && U.value ? (I(), q(_l, {
1998
1998
  legendSet: We.value,
1999
1999
  config: ul.value,
2000
2000
  key: `legend_${je.value}`,
2001
2001
  isCursorPointer: le.value,
2002
- onClickMarker: t[3] || (t[3] = ({ i: l }) => He(l))
2002
+ onClickMarker: a[3] || (a[3] = ({ i: l }) => He(l))
2003
2003
  }, {
2004
2004
  item: b(({ legend: l, index: u }) => [
2005
2005
  H("div", {
@@ -2008,11 +2008,11 @@ const Zl = ["id"], Kl = ["id"], Jl = {
2008
2008
  }, Ae(l.name), 13, lo)
2009
2009
  ]),
2010
2010
  legendToggle: b(() => [
2011
- We.value.length > 2 && a.value.style.chart.legend.selectAllToggle.show && !z(Oe) ? (I(), q(jl, {
2011
+ We.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !z(Oe) ? (I(), q(jl, {
2012
2012
  key: 0,
2013
- backgroundColor: a.value.style.chart.legend.selectAllToggle.backgroundColor,
2014
- color: a.value.style.chart.legend.selectAllToggle.color,
2015
- fontSize: a.value.style.chart.legend.fontSize,
2013
+ backgroundColor: t.value.style.chart.legend.selectAllToggle.backgroundColor,
2014
+ color: t.value.style.chart.legend.selectAllToggle.color,
2015
+ fontSize: t.value.style.chart.legend.fontSize,
2016
2016
  checked: p.value.length > 0,
2017
2017
  isCursorPointer: le.value,
2018
2018
  onToggle: ll
@@ -2027,62 +2027,62 @@ const Zl = ["id"], Kl = ["id"], Jl = {
2027
2027
  ], 8, ["to"])) : W("", !0),
2028
2028
  e.$slots.watermark ? (I(), $e("div", oo, [
2029
2029
  C(e.$slots, "watermark", j(G({
2030
- isPrinting: z(Ca) || z(ka) || Ze.value
2030
+ isPrinting: z(Ct) || z(kt) || Ze.value
2031
2031
  })), void 0, !0)
2032
2032
  ])) : W("", !0),
2033
2033
  e.$slots.source ? (I(), $e("div", {
2034
2034
  key: 5,
2035
2035
  ref_key: "source",
2036
- ref: ma,
2036
+ ref: mt,
2037
2037
  dir: "auto"
2038
2038
  }, [
2039
2039
  C(e.$slots, "source", {}, void 0, !0)
2040
2040
  ], 512)) : W("", !0),
2041
- U.value && a.value.userOptions.buttons.table ? (I(), q(fl(Se.value.component), ml({ key: 6 }, Se.value.props, {
2041
+ U.value && t.value.userOptions.buttons.table ? (I(), q(fl(Se.value.component), ml({ key: 6 }, Se.value.props, {
2042
2042
  ref_key: "tableUnit",
2043
2043
  ref: ye,
2044
- onClose: Za
2045
- }), Qa({
2044
+ onClose: Zt
2045
+ }), Qt({
2046
2046
  content: b(() => [
2047
- (I(), q(z(vt), {
2047
+ (I(), q(z(va), {
2048
2048
  key: `table_${qe.value}`,
2049
2049
  colNames: Xe.value.colNames,
2050
2050
  head: Xe.value.head,
2051
2051
  body: Xe.value.body,
2052
2052
  config: Xe.value.config,
2053
- title: a.value.table.useDialog ? "" : Se.value.title,
2054
- withCloseButton: !a.value.table.useDialog,
2053
+ title: t.value.table.useDialog ? "" : Se.value.title,
2054
+ withCloseButton: !t.value.table.useDialog,
2055
2055
  isCursorPointer: le.value,
2056
- onClose: Za
2056
+ onClose: Zt
2057
2057
  }, {
2058
2058
  th: b(({ th: l }) => [
2059
2059
  H("div", { innerHTML: l }, null, 8, so)
2060
2060
  ]),
2061
2061
  td: b(({ td: l }) => [
2062
- at(Ae(l), 1)
2062
+ ta(Ae(l), 1)
2063
2063
  ]),
2064
2064
  _: 1
2065
2065
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
2066
2066
  ]),
2067
2067
  _: 2
2068
2068
  }, [
2069
- a.value.table.useDialog ? {
2069
+ t.value.table.useDialog ? {
2070
2070
  name: "title",
2071
2071
  fn: b(() => [
2072
- at(Ae(Se.value.title), 1)
2072
+ ta(Ae(Se.value.title), 1)
2073
2073
  ]),
2074
2074
  key: "0"
2075
2075
  } : void 0,
2076
- a.value.table.useDialog ? {
2076
+ t.value.table.useDialog ? {
2077
2077
  name: "actions",
2078
2078
  fn: b(() => [
2079
2079
  H("button", {
2080
2080
  tabindex: "0",
2081
2081
  class: "vue-ui-user-options-button",
2082
- onClick: t[4] || (t[4] = (l) => la(a.value.userOptions.callbacks.csv)),
2082
+ onClick: a[4] || (a[4] = (l) => lt(t.value.userOptions.callbacks.csv)),
2083
2083
  style: ve({ cursor: le.value ? "pointer" : "default" })
2084
2084
  }, [
2085
- et(Ul, {
2085
+ ea(Ul, {
2086
2086
  name: "fileCsv",
2087
2087
  stroke: Se.value.props.color
2088
2088
  }, null, 8, ["stroke"])
@@ -2091,18 +2091,18 @@ const Zl = ["id"], Kl = ["id"], Jl = {
2091
2091
  key: "1"
2092
2092
  } : void 0
2093
2093
  ]), 1040)) : W("", !0),
2094
- a.value.userOptions.buttons.annotator && f.value.length ? (I(), q(z(dt), {
2094
+ t.value.userOptions.buttons.annotator && f.value.length ? (I(), q(z(da), {
2095
2095
  key: 7,
2096
2096
  parent: K.value,
2097
- backgroundColor: a.value.style.chart.backgroundColor,
2098
- color: a.value.style.chart.color,
2097
+ backgroundColor: t.value.style.chart.backgroundColor,
2098
+ color: t.value.style.chart.color,
2099
2099
  active: we.value,
2100
2100
  isCursorPointer: le.value,
2101
- onClose: oa
2101
+ onClose: ot
2102
2102
  }, null, 8, ["parent", "backgroundColor", "color", "active", "isCursorPointer"])) : W("", !0)
2103
2103
  ], 46, Zl));
2104
2104
  }
2105
- }, $o = /* @__PURE__ */ Gl(uo, [["__scopeId", "data-v-db327a26"]]);
2105
+ }, $o = /* @__PURE__ */ Gl(uo, [["__scopeId", "data-v-7ef0e461"]]);
2106
2106
  export {
2107
2107
  $o as default
2108
2108
  };