vue-data-ui 3.1.7 → 3.1.8

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 (92) hide show
  1. package/dist/{Arrow-BZ8rnWYn.js → Arrow-BgpCSKiw.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Bdva4JFr.js → BaseDraggableDialog-4cNvzMfi.js} +2 -2
  3. package/dist/{BaseIcon-BCS8aIf4.js → BaseIcon-BxgIVnCu.js} +1 -1
  4. package/dist/{ColorPicker-DF6PDOhr.js → ColorPicker-VOFdB4GY.js} +2 -2
  5. package/dist/{DataTable-Ddu14t59.js → DataTable-Mt5_INYw.js} +2 -2
  6. package/dist/{Legend-C3I0iaLM.js → Legend-3CKwL5Wo.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-LSG0MLRC.js → NonSvgPenAndPaper-BG5Mp8-S.js} +3 -3
  8. package/dist/{PackageVersion-CtYY8jBZ.js → PackageVersion-9HA7ZN6u.js} +1 -1
  9. package/dist/{PenAndPaper-DtlEAsLw.js → PenAndPaper-CK3pXon8.js} +3 -3
  10. package/dist/{Shape-B8Cdu8s1.js → Shape-DC3qeycD.js} +1 -1
  11. package/dist/Slicer-CRtDozJ_.js +931 -0
  12. package/dist/{SparkTooltip-qMi3IzXb.js → SparkTooltip-BIrLMERo.js} +1 -1
  13. package/dist/{Title-BUVvr0U8.js → Title-Bjd-1xjp.js} +1 -1
  14. package/dist/{Tooltip-VlJQQsYu.js → Tooltip-DBkwWUMF.js} +1 -1
  15. package/dist/{UserOptions-sSygisu3.js → UserOptions-DOc0dPiT.js} +2 -2
  16. package/dist/{dom-to-png-BqX4MBZN.js → dom-to-png-ib1QEVbF.js} +1 -1
  17. package/dist/{img-DN0--Lx6.js → img-Dot7cGKX.js} +1 -1
  18. package/dist/{index-BlRUhv0O.js → index-D0aGpITF.js} +105 -100
  19. package/dist/{pdf-Cm5HZB7J.js → pdf-plTy35oc.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +6 -0
  22. package/dist/types/vue-data-ui.d.ts +6 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-wLT3gJAJ.js → useAutoSizeLabelsInsideViewbox-ZbX5_z1t.js} +1 -1
  24. package/dist/{useNestedProp-OxTlfHdh.js → useNestedProp-24j5ySor.js} +1 -1
  25. package/dist/{usePrinter-DR__HfSR.js → usePrinter-83vS002b.js} +2 -2
  26. package/dist/{vue-data-ui-Ci8pH3va.js → vue-data-ui--_tNs3PB.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-h-8AQQKD.js → vue-ui-3d-bar-BCXe_TlX.js} +6 -6
  29. package/dist/{vue-ui-accordion-DejV6zJ2.js → vue-ui-accordion-eylX-9G4.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-yTcDoeqi.js → vue-ui-age-pyramid-C4qft5Bj.js} +6 -6
  31. package/dist/{vue-ui-annotator-HqsIz-FI.js → vue-ui-annotator-1lcGoxDB.js} +2 -2
  32. package/dist/{vue-ui-bullet-Co4ZttnE.js → vue-ui-bullet-BHxaOyMm.js} +7 -7
  33. package/dist/{vue-ui-candlestick-BQQR9K33.js → vue-ui-candlestick-VEUw3NHh.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-BzDik-6R.js → vue-ui-carousel-table-DNv0j-uW.js} +4 -4
  35. package/dist/{vue-ui-chestnut-5VG75w-T.js → vue-ui-chestnut-CVyfTZa1.js} +5 -5
  36. package/dist/{vue-ui-chord-5HE-ZTDA.js → vue-ui-chord-Bf-WZRrB.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-BVcr-3fG.js → vue-ui-circle-pack-BTcgUb9a.js} +6 -6
  38. package/dist/{vue-ui-cursor-BDH4YPCA.js → vue-ui-cursor-CnNB_YkF.js} +2 -2
  39. package/dist/{vue-ui-dashboard-VtafJ36J.js → vue-ui-dashboard-BZr26TJ1.js} +67 -67
  40. package/dist/{vue-ui-digits-Bh5fmCge.js → vue-ui-digits-Dru4BNMH.js} +2 -2
  41. package/dist/{vue-ui-donut-PiILi3WQ.js → vue-ui-donut-BCn7ozHp.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-DVp2UID9.js → vue-ui-donut-evolution-B-SUaQKu.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-DIX_gcC_.js → vue-ui-dumbbell-BgQX8R_K.js} +7 -7
  44. package/dist/{vue-ui-flow-DY64szfV.js → vue-ui-flow-Dm9fGyZA.js} +7 -7
  45. package/dist/{vue-ui-funnel-DnQFZe9P.js → vue-ui-funnel-TxggX88y.js} +6 -6
  46. package/dist/{vue-ui-galaxy-C0TCFGXT.js → vue-ui-galaxy-CsipGa1z.js} +7 -7
  47. package/dist/{vue-ui-gauge-BNIAJlUC.js → vue-ui-gauge-BosHacW2.js} +7 -7
  48. package/dist/{vue-ui-gizmo-BnHruhLB.js → vue-ui-gizmo-DFa49sEK.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CH_twICb.js → vue-ui-heatmap-C9SS6Gba.js} +7 -7
  50. package/dist/{vue-ui-history-plot-CtJrkyG8.js → vue-ui-history-plot-BP98x8s2.js} +7 -7
  51. package/dist/{vue-ui-kpi-Co0app61.js → vue-ui-kpi-D5OUgxps.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DXrdP_7p.js → vue-ui-mini-loader-BP3gflCh.js} +2 -2
  53. package/dist/{vue-ui-molecule-C2cNArDQ.js → vue-ui-molecule-DRHBBs-F.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-BrLLsYz5.js → vue-ui-mood-radar-Ch7z83Uf.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-DRysa4v_.js → vue-ui-nested-donuts-CfUFWEjl.js} +9 -10
  56. package/dist/{vue-ui-onion-znQ-OGaR.js → vue-ui-onion-Bl8WwzrC.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-DIX2Hytk.js → vue-ui-parallel-coordinate-plot-BurwAXfR.js} +8 -8
  58. package/dist/{vue-ui-quadrant-B4X5ePQQ.js → vue-ui-quadrant-CIyW030A.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-Cm7iAsdB.js → vue-ui-quick-chart-BARjlbvR.js} +606 -582
  60. package/dist/{vue-ui-radar-CMXnDLdC.js → vue-ui-radar-Bmr9hUIc.js} +8 -8
  61. package/dist/{vue-ui-rating-wAMAKVA8.js → vue-ui-rating-Bw1x-cFB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-snHKlhA3.js → vue-ui-relation-circle-CapvonjX.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-Bx7_nnJ7.js → vue-ui-ridgeline-Bp48HFv-.js} +8 -8
  64. package/dist/{vue-ui-rings-BGTPLeaD.js → vue-ui-rings-i5VyqvGC.js} +8 -8
  65. package/dist/{vue-ui-scatter-D-rI3hK1.js → vue-ui-scatter-uRK6iD0_.js} +8 -8
  66. package/dist/{vue-ui-skeleton-B-6lN9xS.js → vue-ui-skeleton-C3SJsXcS.js} +3 -3
  67. package/dist/{vue-ui-smiley-DeLEE9m9.js → vue-ui-smiley-kXO2t82E.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BvrboxYt.js → vue-ui-spark-trend-JFgrbzdV.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-nW5DeWC5.js → vue-ui-sparkbar-CcDvHOC5.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Isge2K7-.js → vue-ui-sparkgauge--udog0U1.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-ChSw4gHY.js → vue-ui-sparkhistogram-e0iWjcGB.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DH-VRt5o.js → vue-ui-sparkline-DRqsYKXj.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-l45aaRR1.js → vue-ui-sparkstackbar-BtnxBp0b.js} +3 -3
  74. package/dist/{vue-ui-stackbar-ByVq83Og.js → vue-ui-stackbar-Da8gi0va.js} +9 -9
  75. package/dist/{vue-ui-strip-plot-CwooqV7G.js → vue-ui-strip-plot-C6pCJzC2.js} +7 -7
  76. package/dist/{vue-ui-table-BRPcCRq-.js → vue-ui-table-Cvka-9t8.js} +554 -520
  77. package/dist/{vue-ui-table-heatmap-CaAadUo0.js → vue-ui-table-heatmap-B76q7OUm.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-Bt7VtPKK.js → vue-ui-table-sparkline-BkIHosOJ.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B-CWjknr.js → vue-ui-thermometer-CGiCADFh.js} +7 -7
  80. package/dist/{vue-ui-timer-CxLcOKNv.js → vue-ui-timer-BMXfoR5s.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DYEZvwDv.js → vue-ui-tiremarks-Brmi2HYv.js} +6 -6
  82. package/dist/{vue-ui-treemap-CeuebtPa.js → vue-ui-treemap-COkHHmNa.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-D8_txlgd.js → vue-ui-vertical-bar-Dw5MLw1I.js} +9 -9
  84. package/dist/{vue-ui-waffle-B5Qe5PKA.js → vue-ui-waffle-DlHJ-vf3.js} +8 -8
  85. package/dist/{vue-ui-wheel-CxpLOCGw.js → vue-ui-wheel-Cs-mcVTV.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-DCoL3uD5.js → vue-ui-word-cloud-BotvFbwv.js} +6 -6
  87. package/dist/{vue-ui-world-DmnwTNAv.js → vue-ui-world-CABqnS6s.js} +6 -6
  88. package/dist/vue-ui-xy-BBYf_jl_.js +4456 -0
  89. package/dist/{vue-ui-xy-canvas-CJp0mlzr.js → vue-ui-xy-canvas-Cg3smgrp.js} +10 -10
  90. package/package.json +1 -1
  91. package/dist/Slicer-Bk01kWGC.js +0 -596
  92. package/dist/vue-ui-xy-CzdchisK.js +0 -4141
@@ -0,0 +1,4456 @@
1
+ import { useCssVars as Vo, computed as x, ref as p, onMounted as kl, onBeforeUnmount as ll, watch as mt, nextTick as al, onUpdated as Bo, createElementBlock as i, openBlock as n, createElementVNode as w, createCommentVNode as f, renderSlot as j, normalizeStyle as L, createVNode as tl, withDirectives as Sa, unref as v, Fragment as b, renderList as M, normalizeClass as Ke, withKeys as lo, vModelText as ao, toDisplayString as se, defineAsyncComponent as Ot, useSlots as Eo, getCurrentInstance as Ho, toRefs as Do, watchEffect as oo, createBlock as lt, createSlots as no, withCtx as ke, normalizeProps as Vt, guardReactiveProps as Bt, mergeProps as Qt, Teleport as Wo, resolveDynamicComponent as Xo, vModelCheckbox as Yo, createTextVNode as io } from "vue";
2
+ import { c as oa, y as na, X as Go, F as ht, V as ia, U as ua, u as Uo, f as ya, t as qo, d as Zo, D as El, ac as jt, e as uo, p as so, ad as ta, a9 as J, a4 as ka, ae as Ko, h as G, af as ro, ag as co, ah as Jo, ai as vo, aj as ho, k as Le, ak as Qo, z as jo, _ as mo, R as pt, i as at, x as el, s as dt, a7 as ne, L as en, al as la, I as tn, am as Et, C as Ze, a as ln, b as an, o as fo, v as on, w as nn, E as yl } from "./index-D0aGpITF.js";
3
+ import { t as $a, u as un } from "./useResponsive-DfdjqQps.js";
4
+ import { u as sn } from "./usePrinter-83vS002b.js";
5
+ import { u as rn, B as cn } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as go, a as vn, l as dn } from "./useTimeLabels-BGFjWgrv.js";
7
+ import { u as wa } from "./useNestedProp-24j5ySor.js";
8
+ import { u as hn } from "./useTimeLabelCollider-CIsgDrl9.js";
9
+ import mn from "./img-Dot7cGKX.js";
10
+ import fn from "./Title-Bjd-1xjp.js";
11
+ import { S as gn } from "./Slicer-CRtDozJ_.js";
12
+ import { _ as aa } from "./Shape-DC3qeycD.js";
13
+ import xn from "./BaseIcon-BxgIVnCu.js";
14
+ import { _ as xo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ import bn from "./vue-ui-accordion-eylX-9G4.js";
16
+ const pn = {
17
+ class: "vue-data-ui-slicer-labels",
18
+ style: { position: "relative", "z-index": "1", "pointer-events": "none" }
19
+ }, yn = {
20
+ key: 0,
21
+ style: { width: "100%", position: "relative" }
22
+ }, kn = {
23
+ key: 0,
24
+ class: "minimap",
25
+ style: { width: "100%" }
26
+ }, wn = ["xmlns", "viewBox"], Sn = ["id"], $n = ["stop-color"], _n = ["width", "height", "stroke"], Mn = ["d", "stroke"], Ln = ["d", "fill"], Cn = ["x", "y", "width", "height", "fill"], An = ["d", "stroke"], zn = ["x", "width", "height", "fill", "rx"], Tn = ["x", "width", "height", "rx", "fill"], In = ["x", "width", "height", "fill", "rx"], Pn = ["x2", "y1", "y2", "stroke"], Nn = { key: "merged-tree" }, Fn = ["d", "fill"], Rn = ["d", "stroke"], On = ["cx", "cy", "stroke", "fill"], Vn = ["cx", "cy", "stroke", "fill"], Bn = { key: "split-tree" }, En = ["x", "y", "width", "height", "fill"], Hn = ["d", "stroke"], Dn = ["x", "height", "fill", "stroke"], Wn = ["x", "height", "fill", "stroke"], Xn = ["x1", "x2", "y2", "stroke"], Yn = { key: "merged-tree" }, Gn = ["cx", "cy", "stroke", "fill"], Un = ["cx", "cy", "fill"], qn = ["cx", "cy", "stroke", "fill"], Zn = ["cx", "cy", "fill"], Kn = { key: 11 }, Jn = ["d", "stroke"], Qn = ["cx", "cy", "stroke", "fill"], jn = ["cx", "cy", "fill"], ei = ["cx", "cy", "stroke", "fill"], ti = ["cx", "cy", "fill"], li = ["x", "height", "width", "onMouseenter"], ai = ["min", "max"], oi = ["min", "max"], ni = 48, ii = {
27
+ __name: "SlicerPreview",
28
+ props: {
29
+ background: {
30
+ type: String,
31
+ default: "#FFFFFF"
32
+ },
33
+ borderColor: {
34
+ type: String,
35
+ default: "#FFFFFF"
36
+ },
37
+ fontSize: {
38
+ type: Number,
39
+ default: 14
40
+ },
41
+ labelLeft: {
42
+ type: [String, Number],
43
+ default: ""
44
+ },
45
+ labelRight: {
46
+ type: [String, Number],
47
+ default: ""
48
+ },
49
+ textColor: {
50
+ type: String,
51
+ default: "#1A1A1A"
52
+ },
53
+ inputColor: {
54
+ type: String,
55
+ default: "#1A1A1A"
56
+ },
57
+ max: {
58
+ type: Number,
59
+ default: 0
60
+ },
61
+ min: {
62
+ type: Number,
63
+ default: 0
64
+ },
65
+ selectColor: {
66
+ type: String,
67
+ default: "#4A4A4A"
68
+ },
69
+ useResetSlot: {
70
+ type: Boolean,
71
+ default: !1
72
+ },
73
+ valueStart: {
74
+ type: [Number, String],
75
+ default: 0
76
+ },
77
+ valueEnd: {
78
+ type: [Number, String],
79
+ default: 0
80
+ },
81
+ minimap: {
82
+ type: Array,
83
+ default: []
84
+ },
85
+ smoothMinimap: {
86
+ type: Boolean,
87
+ default: !1
88
+ },
89
+ minimapSelectedColor: {
90
+ type: String,
91
+ default: "#1f77b4"
92
+ },
93
+ minimapSelectionRadius: {
94
+ type: Number,
95
+ default: 12
96
+ },
97
+ minimapLineColor: {
98
+ type: String,
99
+ default: "#2D353C"
100
+ },
101
+ minimapSelectedColorOpacity: {
102
+ type: Number,
103
+ default: 0.2
104
+ },
105
+ minimapSelectedIndex: {
106
+ type: Number,
107
+ default: null
108
+ },
109
+ minimapIndicatorColor: {
110
+ type: String,
111
+ default: "#2D353C"
112
+ },
113
+ refreshStartPoint: {
114
+ type: Number,
115
+ default: 0
116
+ },
117
+ refreshEndPoint: {
118
+ type: Number,
119
+ default: null
120
+ },
121
+ enableRangeHandles: {
122
+ type: Boolean,
123
+ default: !1
124
+ },
125
+ enableSelectionDrag: {
126
+ type: Boolean,
127
+ default: !0
128
+ },
129
+ verticalHandles: {
130
+ type: Boolean,
131
+ default: !1
132
+ },
133
+ timeLabels: {
134
+ type: Array
135
+ },
136
+ isPreview: {
137
+ type: Boolean,
138
+ default: !1
139
+ },
140
+ preciseLabels: {
141
+ type: Array,
142
+ default() {
143
+ return [];
144
+ }
145
+ },
146
+ usePreciseLabels: {
147
+ type: Boolean,
148
+ default: !1
149
+ },
150
+ selectedSeries: {
151
+ type: Object
152
+ },
153
+ customFormat: {
154
+ type: [Function, null]
155
+ },
156
+ minimapCompact: {
157
+ type: Boolean,
158
+ default: !1
159
+ },
160
+ allMinimaps: {
161
+ type: Array,
162
+ default() {
163
+ return [];
164
+ }
165
+ },
166
+ minimapMerged: {
167
+ type: Boolean,
168
+ default: !1
169
+ },
170
+ minimapFrameColor: {
171
+ type: String,
172
+ default: "#e1e5e8"
173
+ }
174
+ },
175
+ emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
176
+ setup(S, { expose: sa, emit: ra }) {
177
+ Vo((d) => ({
178
+ b53b0ed0: _l.value,
179
+ "3d58010c": ue.value,
180
+ "4e30957d": Ml.value,
181
+ "1d8d423c": S.selectColor,
182
+ "2b9e2eca": zt.value
183
+ }));
184
+ const m = S, ot = p(null), fe = p(m.min), we = p(m.max), me = x(() => !!m.minimap.length), wl = p(oa()), ol = p(!1), Ct = x(() => me.value && m.minimapCompact), Sl = p(0), At = x({
185
+ get() {
186
+ return fe.value;
187
+ },
188
+ set(d) {
189
+ const g = Math.min(d, we.value - 1);
190
+ fe.value = g, cl.value && (cl.value.value = String(g)), De("futureStart", g);
191
+ }
192
+ }), Ht = x({
193
+ get() {
194
+ return we.value;
195
+ },
196
+ set(d) {
197
+ const g = Math.max(d, fe.value + 1);
198
+ we.value = g, _.value && (_.value.value = String(g)), De("futureEnd", g);
199
+ }
200
+ });
201
+ kl(() => {
202
+ const d = () => {
203
+ ot.value && (Sl.value = ot.value.getBoundingClientRect().width);
204
+ };
205
+ d();
206
+ const g = $a(d, 50);
207
+ window.addEventListener("resize", g), ll(() => {
208
+ window.removeEventListener("resize", g);
209
+ });
210
+ });
211
+ let Hl = null;
212
+ function He() {
213
+ clearTimeout(Hl), De("update:start", Number(fe.value)), De("update:end", Number(we.value)), ol.value = !1;
214
+ }
215
+ const Je = x(() => m.refreshEndPoint === null ? m.max : m.refreshEndPoint), De = ra, Pe = x(() => {
216
+ if (Ct.value) {
217
+ const g = Math.max(1, re.value - 1);
218
+ return rl.value / g * 100;
219
+ }
220
+ const d = Math.max(1, m.max - m.min);
221
+ return (fe.value - m.min) / d * 100;
222
+ }), ft = x(() => {
223
+ if (Ct.value) {
224
+ const g = Math.max(1, re.value - 1);
225
+ return Wt.value / g * 100;
226
+ }
227
+ const d = Math.max(1, m.max - m.min);
228
+ return (we.value - m.min) / d * 100;
229
+ }), yt = x(() => (Pe.value + ft.value) / 2), kt = x(() => {
230
+ if (!ot.value) return !1;
231
+ const d = Math.max(1, m.max - m.min);
232
+ return ot.value.getBoundingClientRect().width * ((fe.value - m.min) / d) - Ye.value / 2 < 0;
233
+ }), $l = x(() => {
234
+ if (!ot.value) return !1;
235
+ const d = Math.max(1, m.max - m.min), g = ot.value.getBoundingClientRect().width;
236
+ return g * ((we.value - m.min) / d) + ze.value / 2 > g;
237
+ }), Ne = x(() => {
238
+ const d = $l.value ? `calc(${yt.value}% - ${c.value.width}px - 2px)` : kt.value ? `calc(${yt.value}% - 8px)` : `calc(${yt.value}% - ${c.value.width / 2}px - 4px)`;
239
+ return {
240
+ left: `${Pe.value}%`,
241
+ width: `${Math.max(0, ft.value - Pe.value)}%`,
242
+ background: m.selectColor,
243
+ tooltipLeft: `calc(${Pe.value}% - ${kt.value ? 9 : Ye.value / 2 + 3.5}px)`,
244
+ tooltipRight: `calc(${ft.value}% - ${$l.value ? ze.value - 9 : ze.value / 2 - 3.5}px)`,
245
+ tooltipCenter: d,
246
+ arrowLeft: !kt.value,
247
+ arrowRight: !$l.value
248
+ };
249
+ }), _l = x(() => m.inputColor), zt = x(() => m.background), Ml = x(() => `${m.selectColor}33`), ue = x(() => m.borderColor), nt = x(() => {
250
+ let d = [];
251
+ for (let g = 0; g < m.max; g += 1)
252
+ d.push(g);
253
+ return d;
254
+ });
255
+ function nl() {
256
+ De("reset");
257
+ }
258
+ mt(
259
+ () => m.min,
260
+ (d) => {
261
+ Number(fe.value) < Number(d) && (fe.value = Number(d)), Number(we.value) < Number(d) && (we.value = Number(d));
262
+ }
263
+ ), mt(
264
+ () => m.max,
265
+ (d) => {
266
+ Number(fe.value) > Number(d) && (fe.value = Number(d)), Number(we.value) > Number(d) && (we.value = Number(d));
267
+ }
268
+ );
269
+ const Tt = p(null), $ = p({
270
+ width: 1,
271
+ height: 1
272
+ }), wt = p(null);
273
+ kl(() => {
274
+ if (me.value) {
275
+ const d = $a(() => {
276
+ const { width: g, height: h } = un({
277
+ chart: Tt.value
278
+ });
279
+ $.value.width = g, $.value.height = h - 47;
280
+ });
281
+ wt.value = new ResizeObserver(d), wt.value.observe(Tt.value);
282
+ }
283
+ }), ll(() => {
284
+ wt.value && wt.value.disconnect();
285
+ });
286
+ const re = x(() => Math.max(1, m.max - m.min));
287
+ function ce(d) {
288
+ const g = Math.floor(d - m.min);
289
+ return Math.min(Math.max(0, g), re.value);
290
+ }
291
+ function il(d) {
292
+ const g = Math.ceil(d - m.min);
293
+ return Math.min(Math.max(0, g), re.value);
294
+ }
295
+ const St = x(() => ce(fe.value)), Qe = x(() => il(we.value)), $t = x(() => Math.max(...m.allMinimaps.map((d) => d.series.length))), te = x(() => {
296
+ if (!m.minimap.length) return 0;
297
+ const d = Math.max(1, $t.value - (m.minimapCompact ? 1 : 0));
298
+ return $.value.width / d;
299
+ }), Ll = x(() => m.allMinimaps.length ? m.allMinimaps.filter((d) => d.type === "bar").length : 0), it = x(() => te.value / (Ll.value || 1) * 0.8);
300
+ function ve(d, g, h) {
301
+ const T = it.value, B = Math.max(1, Ll.value), Q = $t.value - 1;
302
+ return h === 0 ? d + T / 2 * g : h === Q ? d - T / 2 * (B - g) : d - B * T / 2 + g * T;
303
+ }
304
+ function U(d, g) {
305
+ return [0, $t.value - 1].includes(g) ? it.value / 2 : it.value;
306
+ }
307
+ const Cl = x(() => {
308
+ const d = [];
309
+ if (Array.isArray(m.minimap) && m.minimap.length && d.push(...m.minimap.filter(Number.isFinite)), Array.isArray(m.allMinimaps) && m.allMinimaps.length)
310
+ for (const g of m.allMinimaps)
311
+ g?.isVisible && Array.isArray(g?.series) && d.push(...g.series.filter(Number.isFinite));
312
+ return d.length ? { min: Math.min(...d), max: Math.max(...d) } : { min: 0, max: 1 };
313
+ }), _t = x(() => Cl.value.min), It = x(() => Cl.value.max), Dt = x(() => _t.value < 0 && It.value > 0 || It.value <= 0 ? _t.value : 0), Al = x(() => Math.max(1e-9, Math.max(Math.abs(_t.value), Math.abs(It.value)))), H = x(() => _t.value < 0 && It.value > 0), Dl = (d) => {
314
+ const g = Math.max(1, $.value.height);
315
+ if (H.value) {
316
+ const h = Al.value;
317
+ return (1 - (Math.max(-1, Math.min(1, d / h)) + 1) / 2) * g;
318
+ } else {
319
+ const h = Math.min(0, _t.value), T = Math.max(0, It.value);
320
+ return g - (d - h) / Math.max(1e-9, T - h) * g;
321
+ }
322
+ }, ul = x(() => Dl(0));
323
+ function sl(d, g, h) {
324
+ const T = (Q, Oe, ae) => Math.max(Oe, Math.min(ae, Q));
325
+ if (g <= 0) {
326
+ const Q = Math.max(1e-9, 0 - d);
327
+ return (Oe) => h - (Oe - d) / Q * h;
328
+ } else if (d >= 0) {
329
+ const Q = Math.max(1e-9, g - 0);
330
+ return (Oe) => h - (Oe - 0) / Q * h;
331
+ } else {
332
+ const Q = Math.max(1e-9, Math.max(Math.abs(d), Math.abs(g)));
333
+ return (Oe) => (1 - (T(Oe / Q, -1, 1) + 1) / 2) * h;
334
+ }
335
+ }
336
+ function _e(d) {
337
+ if (!d || !d.length)
338
+ return { fullSet: "", selectionSet: "", sliced: [], firstPlot: null, lastPlot: null, hasFull: !1, hasSelection: !1 };
339
+ const g = Math.max(1, $.value.height), h = d.filter(Number.isFinite), T = Math.min(...h), B = Math.max(...h), Q = sl(T, B, g), Oe = d.length, ae = Math.min(Math.max(0, St.value), Math.max(0, Oe - 1)), gl = Math.min(Oe, Math.max(ae + 1, Qe.value));
340
+ d.slice(ae, gl);
341
+ const bt = d.map((Nl, I) => ({
342
+ x: te.value * I + (m.minimapCompact ? 0 : te.value / 2),
343
+ y: Q(Nl),
344
+ v: Nl,
345
+ y0: (T < 0 && B > 0 || T >= 0, Q(0))
346
+ })), Ut = bt.slice(ae, gl), ha = bt.length >= 2 ? m.smoothMinimap ? ia(bt) : ua(bt) : "", Pl = Ut.length >= 2 ? m.smoothMinimap ? ia(Ut) : ua(Ut) : "";
347
+ return {
348
+ fullSet: ha,
349
+ points: bt,
350
+ selectionSet: Pl,
351
+ sliced: Ut,
352
+ firstPlot: bt[ae] || null,
353
+ lastPlot: bt[Math.max(0, gl - 1)] || null,
354
+ hasFull: bt.length >= 2,
355
+ hasSelection: Ut.length >= 2
356
+ };
357
+ }
358
+ const F = x(() => m.minimap.length ? _e(m.minimap) : []), gt = x(() => m.allMinimaps.length ? m.allMinimaps.map((d, g) => {
359
+ const h = _e(d?.series || []), T = d?.id ?? d?.name ?? g;
360
+ return {
361
+ key: typeof T == "object" ? JSON.stringify(T) : String(T),
362
+ color: d?.color,
363
+ ...h,
364
+ isVisible: d.isVisible,
365
+ type: d.type || "line"
366
+ };
367
+ }) : []), Fe = x(() => {
368
+ const d = St.value, g = Math.max(d + 1, Qe.value);
369
+ return {
370
+ x: te.value * d + (m.minimapCompact ? 0 : te.value / 2),
371
+ width: te.value * (g - d) - te.value
372
+ };
373
+ }), We = p(m.minimapSelectedIndex), C = (d) => Math.round(m.min + d), rl = x({
374
+ get() {
375
+ return Ct.value ? St.value : At.value;
376
+ },
377
+ set(d) {
378
+ Ct.value ? Pt(C(d)) : Pt(d);
379
+ }
380
+ }), Wt = x({
381
+ get() {
382
+ return Ct.value ? Math.max(St.value, Qe.value - 1) : Ht.value;
383
+ },
384
+ set(d) {
385
+ Ct.value ? k(C(d + 1)) : k(d);
386
+ }
387
+ });
388
+ mt(() => m.minimapSelectedIndex, (d) => {
389
+ if ([null, void 0].includes(d)) {
390
+ We.value = null;
391
+ return;
392
+ }
393
+ We.value = ce(m.valueStart) + d;
394
+ }, { immediate: !0 });
395
+ function zl(d) {
396
+ We.value = d;
397
+ const g = St.value, h = Qe.value;
398
+ d >= g && d < h && De("trapMouse", d - g);
399
+ }
400
+ const cl = p(null), _ = p(null);
401
+ function Re(d) {
402
+ if (typeof d == "object" && d && "target" in d) {
403
+ const h = d.target, T = "valueAsNumber" in h ? h.valueAsNumber : +h.value;
404
+ return Number.isFinite(T) ? T : NaN;
405
+ }
406
+ const g = +d;
407
+ return Number.isFinite(g) ? g : NaN;
408
+ }
409
+ let Xt = 0;
410
+ function Pt(d) {
411
+ ol.value = !0;
412
+ const g = Re(d);
413
+ Number.isFinite(g) && (cancelAnimationFrame(Xt), Xt = requestAnimationFrame(() => {
414
+ At.value = g;
415
+ }));
416
+ }
417
+ let t = 0;
418
+ function k(d) {
419
+ ol.value = !0;
420
+ const g = Re(d);
421
+ Number.isFinite(g) && (cancelAnimationFrame(t), t = requestAnimationFrame(() => {
422
+ Ht.value = g;
423
+ }));
424
+ }
425
+ ll(() => {
426
+ cancelAnimationFrame(Xt), cancelAnimationFrame(t);
427
+ });
428
+ const Nt = x(() => m.valueEnd - m.valueStart), je = p(!1);
429
+ let Se = p(null);
430
+ const Ce = x(() => (Sl.value - 48) / (m.max - m.min) * Nt.value), vl = x(() => Math.max(1, Sl.value - ni - Ce.value)), ca = x(() => Math.max(1, m.max - m.min - Nt.value)), va = x(() => ca.value / vl.value), et = p(0), Ae = p(0), y = p(0), tt = p(0);
431
+ let ut = null, st = null, Xe = null, xt = null;
432
+ const dl = (d) => {
433
+ if (ge.value = !0, !m.enableSelectionDrag) return;
434
+ const g = d.type === "touchstart";
435
+ g || d.stopPropagation();
436
+ const h = g && d.targetTouches && d.targetTouches[0] ? d.targetTouches[0] : null, T = g ? h ? h.target : null : d.target;
437
+ if (!T || !(T instanceof Element) || T.classList && T.classList.contains("range-handle")) return;
438
+ je.value = !0;
439
+ const B = g ? h ? h.clientX : 0 : d.clientX;
440
+ Se.value = B, et.value = B, Ae.value = fe.value, y.value = we.value, tt.value = va.value, ut = g ? "touchmove" : "mousemove", st = g ? "touchend" : "mouseup", Xe = g ? Xl : Wl, xt = g ? hl : da, window.addEventListener(ut, Xe, { passive: !1 }), window.addEventListener(st, xt);
441
+ };
442
+ function Wl(d) {
443
+ je.value && Tl(d.clientX);
444
+ }
445
+ function Xl(d) {
446
+ if (!je.value || !ot.value) return;
447
+ const g = d.target;
448
+ if (!(g instanceof Element) || !ot.value.contains(g) || g.classList && g.classList.contains("range-handle")) return;
449
+ d.preventDefault();
450
+ const h = d.targetTouches && d.targetTouches[0] ? d.targetTouches[0] : null;
451
+ h && Tl(h.clientX);
452
+ }
453
+ function Tl(d) {
454
+ if (!je.value) return;
455
+ const h = (d - et.value) * tt.value;
456
+ let T = Math.round(Ae.value + h);
457
+ T = Math.max(m.min, Math.min(T, m.max - Nt.value));
458
+ const B = T + Nt.value;
459
+ At.value = T, Ht.value = B;
460
+ }
461
+ function da() {
462
+ Yt();
463
+ }
464
+ function hl() {
465
+ Yt();
466
+ }
467
+ function Yt() {
468
+ je.value = !1, ut && Xe && window.removeEventListener(ut, Xe), st && xt && window.removeEventListener(st, xt), ut = st = null, Xe = xt = null, He();
469
+ }
470
+ const rt = p(!1), $e = p(null), ct = p(null), Ye = p(1), ze = p(1), ge = p(!1);
471
+ function Yl() {
472
+ $e.value && (Ye.value = $e.value.getBoundingClientRect().width);
473
+ }
474
+ function ml() {
475
+ ct.value && (ze.value = ct.value.getBoundingClientRect().width);
476
+ }
477
+ const Gl = p(0);
478
+ function Il(d) {
479
+ Gl.value = d === "start" ? 1 : 0;
480
+ }
481
+ const Gt = p(!1), c = p({
482
+ width: 0,
483
+ left: 0
484
+ });
485
+ mt([fe, we], async () => {
486
+ if (await al(), !$e.value || !ct.value) {
487
+ Gt.value = !1, c.value = { width: 0, left: 0 };
488
+ return;
489
+ }
490
+ const d = $e.value.getBoundingClientRect(), g = ct.value.getBoundingClientRect();
491
+ Gt.value = d.x + d.width > g.x;
492
+ const h = d.x + d.width / 2, T = g.x + g.width / 2, B = d.width + g.width, Q = (h + T) / 2;
493
+ c.value = {
494
+ width: B,
495
+ left: Q - B / 2
496
+ };
497
+ }), Bo(() => {
498
+ Yl(), ml();
499
+ }), mt(() => m.labelLeft, () => {
500
+ al(Yl);
501
+ }, { deep: !0 }), mt(() => m.labelRight, () => {
502
+ al(ml);
503
+ }, { deep: !0 });
504
+ const fl = p(!1), xe = x(() => {
505
+ let d = { text: "" }, g = { text: "" };
506
+ if (fl.value = !1, na(m.customFormat))
507
+ try {
508
+ const h = m.customFormat({
509
+ absoluteIndex: fe.value,
510
+ seriesIndex: fe.value,
511
+ datapoint: m.selectedSeries
512
+ }), T = m.customFormat({
513
+ absoluteIndex: we.value - 1,
514
+ seriesIndex: -1,
515
+ datapoint: m.selectedSeries
516
+ });
517
+ typeof h == "string" && typeof T == "string" && (d.text = h, g.text = T, fl.value = !0);
518
+ } catch {
519
+ console.warn("Custom format cannot be applied on zoom labels."), fl.value = !1;
520
+ }
521
+ return fl.value || (d = m.usePreciseLabels ? m.preciseLabels.find((h) => h.absoluteIndex === fe.value) : m.timeLabels.find((h) => h.absoluteIndex === fe.value), g = m.usePreciseLabels ? m.preciseLabels.find((h) => h.absoluteIndex === we.value - 1) : m.timeLabels.find((h) => h.absoluteIndex === we.value - 1)), {
522
+ left: d ? d.text : "",
523
+ right: g ? g.text : ""
524
+ };
525
+ });
526
+ return ll(() => {
527
+ wt.value && wt.value.disconnect(), ut && Xe && window.removeEventListener(ut, Xe), st && xt && window.removeEventListener(st, xt), ut = st = null, Xe = xt = null, clearTimeout(Hl);
528
+ }), sa({
529
+ setStartValue: Pt,
530
+ setEndValue: k
531
+ }), (d, g) => (n(), i("div", {
532
+ "data-dom-to-png-ignore": "",
533
+ style: { padding: "0 24px" },
534
+ class: "vue-data-ui-zoom",
535
+ ref_key: "zoomWrapper",
536
+ ref: ot,
537
+ onMousedown: dl,
538
+ onTouchstart: dl
539
+ }, [
540
+ w("div", pn, [
541
+ S.valueStart !== S.refreshStartPoint || S.valueEnd !== Je.value ? (n(), i("div", yn, [
542
+ S.useResetSlot ? j(d.$slots, "reset-action", {
543
+ key: 1,
544
+ reset: nl
545
+ }, void 0, !0) : (n(), i("button", {
546
+ key: 0,
547
+ tabindex: "0",
548
+ role: "button",
549
+ class: "vue-data-ui-refresh-button",
550
+ style: L({
551
+ top: me.value ? "36px" : "-16px",
552
+ pointerEvents: "all !important"
553
+ }),
554
+ onClick: nl
555
+ }, [
556
+ tl(xn, {
557
+ name: "refresh",
558
+ stroke: S.textColor
559
+ }, null, 8, ["stroke"])
560
+ ], 4))
561
+ ])) : f("", !0)
562
+ ]),
563
+ w("div", {
564
+ class: "double-range-slider",
565
+ ref_key: "minimapWrapper",
566
+ ref: Tt,
567
+ style: { "z-index": "0" },
568
+ onMouseenter: g[11] || (g[11] = (h) => ge.value = !0),
569
+ onMouseleave: g[12] || (g[12] = (h) => ge.value = !1)
570
+ }, [
571
+ me.value ? (n(), i("div", kn, [
572
+ (n(), i("svg", {
573
+ key: `mm-${S.minimapMerged ? "merged" : "split"}-${S.minimapCompact ? "compact" : "normal"}`,
574
+ xmlns: v(Go),
575
+ viewBox: `0 0 ${Math.max(0, $.value.width)} ${Math.max(0, $.value.height)}`
576
+ }, [
577
+ w("defs", null, [
578
+ w("linearGradient", {
579
+ id: wl.value,
580
+ x1: "0%",
581
+ y1: "0%",
582
+ x2: "0%",
583
+ y2: "100%"
584
+ }, [
585
+ w("stop", {
586
+ offset: "0%",
587
+ "stop-color": `${S.minimapLineColor}50`
588
+ }, null, 8, $n),
589
+ g[13] || (g[13] = w("stop", {
590
+ offset: "100%",
591
+ "stop-color": "transparent"
592
+ }, null, -1))
593
+ ], 8, Sn)
594
+ ]),
595
+ S.minimapCompact ? (n(), i("rect", {
596
+ key: 0,
597
+ class: "vue-ui-zoom-minimap-frame",
598
+ x: 0,
599
+ y: 0,
600
+ width: $.value.width,
601
+ height: $.value.height,
602
+ fill: "none",
603
+ stroke: S.minimapFrameColor,
604
+ rx: 3
605
+ }, null, 8, _n)) : f("", !0),
606
+ S.minimapMerged ? (n(), i("path", {
607
+ key: 1,
608
+ d: `M${F.value.fullSet}`,
609
+ stroke: `${S.minimapLineColor}`,
610
+ fill: "none",
611
+ "stroke-width": "1",
612
+ "stroke-linecap": "round",
613
+ "stroke-linejoin": "round",
614
+ style: { opacity: "0.6" }
615
+ }, null, 8, Mn)) : f("", !0),
616
+ S.minimapMerged && !S.minimapCompact ? (n(), i("path", {
617
+ key: 2,
618
+ d: `M${te.value / 2},${Math.max($.value.height, 0)} ${F.value.fullSet} L${$.value.width - te.value / 2},${Math.max($.value.height, 0)}Z`,
619
+ fill: `url(#${wl.value})`,
620
+ stroke: "none",
621
+ style: { opacity: "0.6" }
622
+ }, null, 8, Ln)) : S.minimapMerged ? f("", !0) : (n(), i(b, { key: 3 }, [
623
+ (n(!0), i(b, null, M(gt.value.filter((h) => h.type === "bar"), (h, T) => (n(), i("g", null, [
624
+ (n(!0), i(b, null, M(h.points, (B, Q) => (n(), i(b, null, [
625
+ h.isVisible ? (n(), i("rect", {
626
+ key: 0,
627
+ x: ve(B.x, T, Q),
628
+ y: B.v >= 0 ? B.y : B.y0,
629
+ width: U(T, Q),
630
+ height: B.v >= 0 ? B.y0 - B.y : B.y - B.y0,
631
+ fill: h.color,
632
+ style: { opacity: 0.6 }
633
+ }, null, 8, Cn)) : f("", !0)
634
+ ], 64))), 256))
635
+ ]))), 256)),
636
+ (n(!0), i(b, null, M(gt.value.filter((h) => h.type === "line"), (h) => (n(), i("g", null, [
637
+ h.isVisible ? (n(), i("path", {
638
+ key: 0,
639
+ d: `M ${h.fullSet}`,
640
+ fill: "none",
641
+ stroke: h.color,
642
+ style: { opacity: "0.6" }
643
+ }, null, 8, An)) : f("", !0)
644
+ ]))), 256))
645
+ ], 64)),
646
+ w("rect", {
647
+ x: Fe.value.x,
648
+ y: 0,
649
+ width: Math.max(0, Fe.value.width),
650
+ height: Math.max($.value.height, 0),
651
+ fill: ue.value,
652
+ rx: S.minimapSelectionRadius,
653
+ stroke: "none"
654
+ }, null, 8, zn),
655
+ w("rect", {
656
+ x: Fe.value.x,
657
+ y: 0,
658
+ width: Fe.value.width < 0 ? 0 : Fe.value.width,
659
+ height: Math.max($.value.height, 0),
660
+ rx: S.minimapSelectionRadius,
661
+ fill: ue.value,
662
+ style: L({ opacity: je.value || ol.value ? 0 : 1 })
663
+ }, null, 12, Tn),
664
+ w("rect", {
665
+ x: Fe.value.x,
666
+ y: 0,
667
+ width: Fe.value.width < 0 ? 0 : Fe.value.width,
668
+ height: Math.max($.value.height, 0),
669
+ fill: S.minimapSelectedColor,
670
+ rx: S.minimapSelectionRadius,
671
+ style: L({ opacity: S.minimapSelectedColorOpacity })
672
+ }, null, 12, In),
673
+ !S.minimapMerged && Dt.value < 0 ? (n(), i("line", {
674
+ key: 4,
675
+ class: "slicer-minimap-zero-line",
676
+ x1: 0,
677
+ x2: $.value.width,
678
+ y1: ul.value,
679
+ y2: ul.value,
680
+ stroke: S.minimapFrameColor,
681
+ "stroke-width": "0.5"
682
+ }, null, 8, Pn)) : f("", !0),
683
+ S.minimapMerged ? (n(), i("g", Nn, [
684
+ F.value && F.value.sliced && F.value.sliced.length ? (n(), i(b, { key: 0 }, [
685
+ F.value.selectionSet ? (n(), i("path", {
686
+ key: 0,
687
+ d: `M${F.value.sliced[0].x},${Math.max($.value.height, 0)} ${F.value.selectionSet} L${F.value.sliced[F.value.sliced.length - 1].x},${Math.max($.value.height, 0)}Z`,
688
+ fill: `url(#${wl.value})`,
689
+ stroke: "none",
690
+ style: { opacity: "1" }
691
+ }, null, 8, Fn)) : f("", !0),
692
+ F.value.selectionSet ? (n(), i("path", {
693
+ key: 1,
694
+ d: `M ${F.value.selectionSet}`,
695
+ stroke: `${S.minimapLineColor}`,
696
+ fill: "transparent",
697
+ "stroke-width": "2",
698
+ "stroke-linecap": "round",
699
+ "stroke-linejoin": "round"
700
+ }, null, 8, Rn)) : f("", !0)
701
+ ], 64)) : f("", !0),
702
+ F.value && F.value.firstPlot ? (n(), i("circle", {
703
+ key: 1,
704
+ cx: F.value.firstPlot.x,
705
+ cy: F.value.firstPlot.y,
706
+ "stroke-width": "0.5",
707
+ stroke: ue.value,
708
+ r: "3",
709
+ fill: S.minimapLineColor
710
+ }, null, 8, On)) : f("", !0),
711
+ F.value && F.value.lastPlot ? (n(), i("circle", {
712
+ key: 2,
713
+ cx: F.value.lastPlot.x,
714
+ cy: F.value.lastPlot.y,
715
+ "stroke-width": "0.5",
716
+ stroke: ue.value,
717
+ r: "3",
718
+ fill: S.minimapLineColor
719
+ }, null, 8, Vn)) : f("", !0)
720
+ ])) : (n(), i("g", Bn, [
721
+ (n(!0), i(b, null, M(gt.value.filter((h) => h.type === "bar"), (h, T) => (n(), i("g", null, [
722
+ (n(!0), i(b, null, M(h.points, (B, Q) => (n(), i(b, null, [
723
+ h && h.hasSelection && h.selectionSet && h.isVisible ? (n(), i("rect", {
724
+ key: 0,
725
+ x: ve(B.x, T, Q),
726
+ y: B.v >= 0 ? B.y : B.y0,
727
+ width: U(T, Q),
728
+ height: B.v >= 0 ? B.y0 - B.y : B.y - B.y0,
729
+ fill: h.color,
730
+ style: L({ opacity: Q >= At.value && Q < Ht.value ? 1 : 0 })
731
+ }, null, 12, En)) : f("", !0)
732
+ ], 64))), 256))
733
+ ]))), 256)),
734
+ (n(!0), i(b, null, M(gt.value.filter((h) => h.type === "line"), (h) => (n(), i("g", {
735
+ key: String(h.key)
736
+ }, [
737
+ h && h.hasSelection && h.selectionSet && h.isVisible ? (n(), i("path", {
738
+ key: 0,
739
+ d: `M ${h.selectionSet}`,
740
+ stroke: h.color,
741
+ fill: "transparent",
742
+ "stroke-width": "2",
743
+ "stroke-linecap": "round",
744
+ "stroke-linejoin": "round"
745
+ }, null, 8, Hn)) : f("", !0)
746
+ ]))), 128))
747
+ ])),
748
+ me.value && S.minimapCompact ? (n(), i("rect", {
749
+ key: 7,
750
+ class: "vue-ui-zoom-compact-minimap-handle",
751
+ x: Fe.value.x - 8,
752
+ y: 0,
753
+ width: 8,
754
+ height: $.value.height,
755
+ fill: ue.value,
756
+ stroke: S.textColor,
757
+ rx: 3
758
+ }, null, 8, Dn)) : f("", !0),
759
+ me.value && S.minimapCompact ? (n(), i("rect", {
760
+ key: 8,
761
+ class: "vue-ui-zoom-compact-minimap-handle",
762
+ x: Fe.value.x + Fe.value.width,
763
+ y: 0,
764
+ width: 8,
765
+ height: $.value.height,
766
+ fill: ue.value,
767
+ stroke: S.textColor,
768
+ rx: 3
769
+ }, null, 8, Wn)) : f("", !0),
770
+ We.value !== null ? (n(!0), i(b, { key: 9 }, M(nt.value, (h, T) => (n(), i("g", null, [
771
+ We.value === h && h >= St.value && h < Qe.value ? (n(), i("line", {
772
+ key: 0,
773
+ x1: te.value * T + (S.minimapCompact ? 0 : te.value / 2),
774
+ x2: te.value * T + (S.minimapCompact ? 0 : te.value / 2),
775
+ y1: 0,
776
+ y2: Math.max($.value.height, 0),
777
+ stroke: S.minimapIndicatorColor,
778
+ "stroke-linecap": "round",
779
+ "stroke-dasharray": "2",
780
+ "stroke-width": "1"
781
+ }, null, 8, Xn)) : f("", !0)
782
+ ]))), 256)) : f("", !0),
783
+ S.minimapMerged ? (n(), i("g", Yn, [
784
+ F.value && F.value.firstPlot ? (n(), i("circle", {
785
+ key: 0,
786
+ cx: F.value.firstPlot.x,
787
+ cy: F.value.firstPlot.y,
788
+ "stroke-width": "0.5",
789
+ stroke: ue.value,
790
+ r: "4",
791
+ fill: S.minimapLineColor
792
+ }, null, 8, Gn)) : f("", !0),
793
+ F.value && F.value.firstPlot ? (n(), i("circle", {
794
+ key: 1,
795
+ cx: F.value.firstPlot.x,
796
+ cy: F.value.firstPlot.y,
797
+ r: 2,
798
+ fill: ue.value
799
+ }, null, 8, Un)) : f("", !0),
800
+ F.value && F.value.lastPlot ? (n(), i("circle", {
801
+ key: 2,
802
+ cx: F.value.lastPlot.x,
803
+ cy: F.value.lastPlot.y,
804
+ "stroke-width": "0.5",
805
+ stroke: ue.value,
806
+ r: "4",
807
+ fill: S.minimapLineColor
808
+ }, null, 8, qn)) : f("", !0),
809
+ F.value && F.value.lastPlot ? (n(), i("circle", {
810
+ key: 3,
811
+ cx: F.value.lastPlot.x,
812
+ cy: F.value.lastPlot.y,
813
+ r: "2",
814
+ fill: ue.value
815
+ }, null, 8, Zn)) : f("", !0)
816
+ ])) : (n(), i("g", Kn, [
817
+ (n(!0), i(b, null, M(gt.value.filter((h) => h.type === "line"), (h) => (n(), i("g", {
818
+ key: String(h.key)
819
+ }, [
820
+ h && h.hasSelection && h.selectionSet && h.isVisible ? (n(), i("path", {
821
+ key: 0,
822
+ d: `M ${h.selectionSet}`,
823
+ stroke: h.color,
824
+ fill: "transparent",
825
+ "stroke-width": "2",
826
+ "stroke-linecap": "round",
827
+ "stroke-linejoin": "round"
828
+ }, null, 8, Jn)) : f("", !0),
829
+ h && h.firstPlot && h.isVisible ? (n(), i("circle", {
830
+ key: 1,
831
+ cx: h.firstPlot.x,
832
+ cy: h.firstPlot.y,
833
+ "stroke-width": "0.5",
834
+ stroke: ue.value,
835
+ r: "4",
836
+ fill: h.color
837
+ }, null, 8, Qn)) : f("", !0),
838
+ h && h.firstPlot && h.isVisible ? (n(), i("circle", {
839
+ key: 2,
840
+ cx: h.firstPlot.x,
841
+ cy: h.firstPlot.y,
842
+ r: "2",
843
+ fill: ue.value
844
+ }, null, 8, jn)) : f("", !0),
845
+ h && h.lastPlot && h.isVisible ? (n(), i("circle", {
846
+ key: 3,
847
+ cx: h.lastPlot.x,
848
+ cy: h.lastPlot.y,
849
+ "stroke-width": "0.5",
850
+ stroke: ue.value,
851
+ r: "4",
852
+ fill: h.color
853
+ }, null, 8, ei)) : f("", !0),
854
+ h && h.lastPlot && h.isVisible ? (n(), i("circle", {
855
+ key: 4,
856
+ cx: h.lastPlot.x,
857
+ cy: h.lastPlot.y,
858
+ r: "2",
859
+ fill: ue.value
860
+ }, null, 8, ti)) : f("", !0)
861
+ ]))), 128))
862
+ ])),
863
+ (n(!0), i(b, null, M(nt.value, (h, T) => (n(), i("rect", {
864
+ x: te.value * T - (S.minimapCompact ? te.value / 2 : 0),
865
+ y: 0,
866
+ height: Math.max($.value.height, 0),
867
+ width: te.value < 0 ? 0 : te.value,
868
+ fill: "transparent",
869
+ style: L([{ "pointer-events": "all !important" }, { cursor: h >= St.value && h < Qe.value && S.enableSelectionDrag ? rt.value ? "grabbing" : "grab" : "default" }]),
870
+ onMousedown: g[0] || (g[0] = (B) => rt.value = !0),
871
+ onMouseup: g[1] || (g[1] = (B) => rt.value = !1),
872
+ onMouseenter: (B) => zl(h),
873
+ onMouseleave: g[2] || (g[2] = (B) => {
874
+ We.value = null, De("trapMouse", null);
875
+ })
876
+ }, null, 44, li))), 256))
877
+ ], 8, wn))
878
+ ])) : f("", !0),
879
+ w("div", {
880
+ class: "slider-track",
881
+ style: L({ visibility: me.value && S.minimapCompact ? "hidden" : "visible" })
882
+ }, null, 4),
883
+ w("div", {
884
+ class: Ke({ "range-highlight": !0, move: S.enableSelectionDrag }),
885
+ onMousedown: g[3] || (g[3] = (h) => rt.value = !0),
886
+ onMouseup: g[4] || (g[4] = (h) => rt.value = !1),
887
+ style: L({
888
+ ...Ne.value,
889
+ cursor: rt.value ? "grabbing" : "grab",
890
+ visibility: me.value && S.minimapCompact ? "hidden" : "visible"
891
+ })
892
+ }, null, 38),
893
+ S.enableRangeHandles ? Sa((n(), i("input", {
894
+ key: 1,
895
+ ref_key: "rangeStart",
896
+ ref: cl,
897
+ type: "range",
898
+ class: Ke({
899
+ "range-left": !0,
900
+ "range-handle": !0,
901
+ "range-minimap": me.value && S.verticalHandles,
902
+ "range-invisible": me.value && S.minimapCompact
903
+ }),
904
+ min: S.min,
905
+ max: S.minimapCompact && me.value ? Math.max(0, re.value - 1) : S.max,
906
+ "onUpdate:modelValue": g[5] || (g[5] = (h) => rl.value = h),
907
+ onInput: g[6] || (g[6] = (h) => rl.value = h.target.valueAsNumber),
908
+ onChange: He,
909
+ onKeyup: lo(He, ["enter"]),
910
+ onBlur: He,
911
+ onMouseenter: g[7] || (g[7] = (h) => Il("start")),
912
+ onPointerup: He
913
+ }, null, 42, ai)), [
914
+ [
915
+ ao,
916
+ rl.value,
917
+ void 0,
918
+ { number: !0 }
919
+ ]
920
+ ]) : f("", !0),
921
+ S.enableRangeHandles ? Sa((n(), i("input", {
922
+ key: 2,
923
+ ref_key: "rangeEnd",
924
+ ref: _,
925
+ type: "range",
926
+ class: Ke({
927
+ "range-right": !0,
928
+ "range-handle": !0,
929
+ "range-minimap": me.value && S.verticalHandles,
930
+ "range-invisible": me.value && S.minimapCompact
931
+ }),
932
+ min: S.min,
933
+ max: S.minimapCompact && me.value ? Math.max(0, re.value - 1) : S.max,
934
+ "onUpdate:modelValue": g[8] || (g[8] = (h) => Wt.value = h),
935
+ onInput: g[9] || (g[9] = (h) => Wt.value = h.target.valueAsNumber),
936
+ onChange: He,
937
+ onKeyup: lo(He, ["enter"]),
938
+ onBlur: He,
939
+ onMouseenter: g[10] || (g[10] = (h) => Il("end")),
940
+ onPointerup: He
941
+ }, null, 42, oi)), [
942
+ [
943
+ ao,
944
+ Wt.value,
945
+ void 0,
946
+ { number: !0 }
947
+ ]
948
+ ]) : f("", !0),
949
+ xe.value.left ? (n(), i("div", {
950
+ key: 3,
951
+ ref_key: "tooltipLeft",
952
+ ref: $e,
953
+ class: Ke({
954
+ "range-tooltip": !0,
955
+ "range-tooltip-visible": ge.value,
956
+ "range-tooltip-arrow": Ne.value.arrowLeft && !S.verticalHandles,
957
+ "range-tooltip-arrow-left": !Ne.value.arrowLeft && !S.verticalHandles
958
+ }),
959
+ style: L({
960
+ left: Ne.value.tooltipLeft,
961
+ color: v(ht)(S.selectColor),
962
+ backgroundColor: S.selectColor,
963
+ border: `1px solid ${ue.value}`,
964
+ zIndex: `${Gl.value + 4}`,
965
+ visibility: Gt.value || xe.value.left === xe.value.right ? "hidden" : "visible",
966
+ top: me.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
967
+ })
968
+ }, se(xe.value.left), 7)) : f("", !0),
969
+ (Gt.value || xe.value.left === xe.value.right) && (xe.value.left || xe.value.right) ? (n(), i("div", {
970
+ key: 4,
971
+ ref: "tooltipMerge",
972
+ class: Ke({
973
+ "range-tooltip": !0,
974
+ "range-tooltip-visible": ge.value,
975
+ "range-tooltip-arrow": !0,
976
+ "range-tooltip-arrow-left": !Ne.value.arrowLeft && !S.verticalHandles,
977
+ "range-tooltip-arrow-right": !Ne.value.arrowRight && !S.verticalHandles
978
+ }),
979
+ style: L({
980
+ left: Ne.value.tooltipCenter,
981
+ width: c.value.width + "px",
982
+ color: v(ht)(S.selectColor),
983
+ backgroundColor: S.selectColor,
984
+ border: `1px solid ${ue.value}`,
985
+ zIndex: "4",
986
+ top: me.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
987
+ })
988
+ }, se(xe.value.left === xe.value.right ? xe.value.left : `${xe.value.left} - ${xe.value.right}`), 7)) : f("", !0),
989
+ xe.value.right ? (n(), i("div", {
990
+ key: 5,
991
+ ref_key: "tooltipRight",
992
+ ref: ct,
993
+ class: Ke({
994
+ "range-tooltip": !0,
995
+ "range-tooltip-visible": ge.value,
996
+ "range-tooltip-arrow": Ne.value.arrowRight && !S.verticalHandles,
997
+ "range-tooltip-arrow-right": !Ne.value.arrowRight && !S.verticalHandles
998
+ }),
999
+ style: L({
1000
+ left: Ne.value.tooltipRight,
1001
+ color: v(ht)(S.selectColor),
1002
+ backgroundColor: S.selectColor,
1003
+ border: `1px solid ${ue.value}`,
1004
+ zIndex: "4",
1005
+ visibility: Gt.value || xe.value.left === xe.value.right ? "hidden" : "visible",
1006
+ top: me.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1007
+ })
1008
+ }, se(xe.value.right), 7)) : f("", !0)
1009
+ ], 544)
1010
+ ], 544));
1011
+ }
1012
+ }, ui = /* @__PURE__ */ xo(ii, [["__scopeId", "data-v-bb2c3799"]]), si = ["id"], ri = ["id"], ci = ["viewBox", "aria-label"], vi = ["x", "y", "width", "height"], di = { key: 1 }, hi = { class: "vue-ui-xy-grid" }, mi = ["stroke", "x1", "x2", "y1", "y2"], fi = ["stroke", "x1", "x2", "y1", "y2"], gi = { key: 1 }, xi = ["x1", "x2", "y1", "y2", "stroke"], bi = ["x1", "x2", "y1", "y2", "stroke"], pi = ["x1", "x2", "y1", "y2", "stroke"], yi = { key: 3 }, ki = ["d", "stroke"], wi = { key: 4 }, Si = ["d", "stroke"], $i = ["id"], _i = ["stop-color"], Mi = ["stop-color"], Li = ["stop-color"], Ci = ["id"], Ai = ["stop-color"], zi = ["stop-color"], Ti = ["stop-color"], Ii = ["id"], Pi = ["stop-color"], Ni = ["stop-color"], Fi = ["id"], Ri = ["stop-color"], Oi = ["stop-color"], Vi = ["id"], Bi = ["stop-color"], Ei = ["stop-color"], Hi = ["x", "y", "height", "width", "fill"], Di = ["x", "y", "width"], Wi = { key: 0 }, Xi = ["x", "y", "height", "width", "fill"], Yi = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Gi = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ui = ["width", "x", "y"], qi = { key: 0 }, Zi = ["id"], Ki = ["fill"], Ji = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Qi = ["x", "y", "font-size", "fill"], ji = ["stroke", "x1", "x2", "y1", "y2"], eu = { key: 3 }, tu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], lu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], au = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ou = ["fill", "font-size", "transform"], nu = ["x1", "x2", "y1", "y2", "stroke"], iu = ["x", "y", "font-size", "fill"], uu = ["x1", "x2", "y1", "y2", "stroke"], su = ["x", "y", "font-size", "fill"], ru = ["width", "x", "y"], cu = { style: { width: "100%" } }, vu = { key: 0 }, du = ["id"], hu = ["fill"], mu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], fu = ["x", "y", "font-size", "fill"], gu = ["d", "stroke", "stroke-width", "stroke-dasharray"], xu = ["d", "stroke", "stroke-width", "stroke-dasharray"], bu = { key: 6 }, pu = { key: 7 }, yu = ["d", "fill", "fill-opacity"], ku = { key: 0 }, wu = ["d", "fill"], Su = ["d", "fill"], $u = ["d", "fill"], _u = ["d", "fill"], Mu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Lu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cu = ["width", "x", "y"], Au = { style: { width: "100%" } }, zu = { key: 3 }, Tu = ["id"], Iu = ["fill"], Pu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Nu = ["x", "y", "font-size", "fill"], Fu = { key: 8 }, Ru = ["x", "y", "font-size", "fill"], Ou = ["x", "y", "font-size", "fill", "font-weight"], Vu = { key: 9 }, Bu = ["x", "y", "font-size", "fill"], Eu = { key: 10 }, Hu = ["x", "y"], Du = ["innerHTML"], Wu = ["x", "y"], Xu = ["innerHTML"], Yu = ["x1", "x2", "y1", "y2", "stroke"], Gu = { key: 11 }, Uu = ["x", "y", "font-size", "fill"], qu = { key: 12 }, Zu = ["x", "y"], Ku = ["innerHTML"], Ju = ["x", "y"], Qu = ["innerHTML"], ju = ["x1", "x2", "y1", "y2", "stroke"], es = ["x", "y", "font-size", "fill", "innerHTML"], ts = ["x", "y", "font-size", "fill", "innerHTML"], ls = ["x", "y", "font-size", "fill", "innerHTML"], as = ["x", "y", "font-size", "fill", "innerHTML"], os = ["id"], ns = ["stop-color"], is = ["stop-color"], us = ["x", "y", "width", "height", "fill", "onMouseenter"], ss = ["font-size", "fill", "transform"], rs = ["x", "y", "font-size", "fill"], cs = ["text-anchor", "font-size", "fill", "transform", "onClick"], vs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ds = { key: 15 }, hs = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ms = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], fs = ["y", "x", "width", "height", "fill"], gs = ["id", "x", "y", "font-size", "fill", "text-anchor"], xs = {
1013
+ key: 16,
1014
+ style: { "pointer-events": "none" }
1015
+ }, bs = ["x", "y"], ps = ["innerHTML"], ys = ["cx", "cy", "r", "fill"], ks = ["data-start", "data-end"], ws = {
1016
+ key: 4,
1017
+ class: "vue-data-ui-watermark"
1018
+ }, Ss = {
1019
+ class: "vue-ui-xy-tag-arrow",
1020
+ height: "20",
1021
+ viewBox: "0 0 10 20",
1022
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1023
+ }, $s = ["fill"], _s = ["innerHTML"], Ms = {
1024
+ class: "vue-ui-xy-tag-arrow",
1025
+ height: "100%",
1026
+ viewBox: "0 0 10 20",
1027
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1028
+ }, Ls = ["fill"], Cs = ["innerHTML"], As = {
1029
+ class: "vue-ui-xy-tag-arrow",
1030
+ height: "20",
1031
+ viewBox: "0 0 10 20",
1032
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1033
+ }, zs = ["fill"], Ts = ["innerHTML"], Is = {
1034
+ class: "vue-ui-xy-tag-arrow",
1035
+ height: "100%",
1036
+ viewBox: "0 0 10 20",
1037
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1038
+ }, Ps = ["fill"], Ns = ["innerHTML"], Fs = ["id"], Rs = ["onClick"], Os = {
1039
+ key: 0,
1040
+ viewBox: "0 0 20 12",
1041
+ height: "1em",
1042
+ width: "1.43em"
1043
+ }, Vs = ["stroke", "fill"], Bs = {
1044
+ key: 1,
1045
+ viewBox: "0 0 40 40",
1046
+ height: "1em",
1047
+ width: "1em"
1048
+ }, Es = ["fill"], Hs = ["fill"], Ds = {
1049
+ key: 2,
1050
+ viewBox: "0 0 12 12",
1051
+ height: "1em",
1052
+ width: "1em"
1053
+ }, Ws = {
1054
+ style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
1055
+ "data-dom-to-png-ignore": ""
1056
+ }, Xs = ["innerHTML"], Ys = {
1057
+ __name: "vue-ui-xy",
1058
+ props: {
1059
+ config: {
1060
+ type: Object,
1061
+ default() {
1062
+ return {};
1063
+ }
1064
+ },
1065
+ dataset: {
1066
+ type: Array,
1067
+ default() {
1068
+ return [];
1069
+ }
1070
+ },
1071
+ selectedXIndex: {
1072
+ type: Number,
1073
+ default: void 0
1074
+ }
1075
+ },
1076
+ emits: ["selectTimeLabel", "selectX", "selectLegend"],
1077
+ setup(S, { expose: sa, emit: ra }) {
1078
+ const m = S, ot = Ot(() => import("./DataTable-Mt5_INYw.js")), fe = Ot(() => import("./Tooltip-DBkwWUMF.js")), we = Ot(() => import("./UserOptions-DOc0dPiT.js")), me = Ot(() => import("./BaseIcon-BxgIVnCu.js")), wl = Ot(() => import("./vue-ui-table-sparkline-BkIHosOJ.js")), ol = Ot(() => import("./PackageVersion-9HA7ZN6u.js")), Ct = Ot(() => import("./PenAndPaper-CK3pXon8.js")), Sl = Ot(() => import("./BaseDraggableDialog-4cNvzMfi.js")), At = ra, Ht = Eo(), Hl = Ho(), { vue_ui_xy: He } = Uo(), Je = p(null), De = p(null), Pe = p(null), ft = p(null), yt = p(null), kt = p(null), $l = p(null), Ne = p(null), _l = p(null), zt = p(null), Ml = p(null), ue = p(null), nt = p(null), nl = p(null), Tt = p(0), $ = p(null), wt = p(!0), re = p(600), ce = p(1e3), il = p("0 0 1000 600"), St = p({ x: 0, y: 0 }), Qe = p({ line: "line", bar: "bar", plot: "plot" }), $t = p(!1), te = p(!1), Ll = p(!1), it = p(null), ve = p([]), U = p(oa()), Cl = p(0), _t = p(0), It = p(0), Dt = p(!0), Al = p(0), H = p(null), Dl = p(!1), ul = p(!0), sl = p(!0), _e = p(null), F = p({}), gt = p(null), Fe = p(!1), We = p(null), C = p(null), rl = x(() => ({
1079
+ height: re.value,
1080
+ width: ce.value
1081
+ }));
1082
+ function Wt(l) {
1083
+ return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
1084
+ }
1085
+ function zl(l, s, e = 0) {
1086
+ return Number.isFinite(l) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? l / s : e;
1087
+ }
1088
+ const cl = p(!1), _ = p({
1089
+ xAxis: 18,
1090
+ yAxis: 12,
1091
+ dataLabels: 20,
1092
+ plotLabels: 10
1093
+ }), Re = p({ plot: 3, line: 3 });
1094
+ kl(() => {
1095
+ Fe.value = !0, m.dataset.length && m.dataset.forEach((l, s) => {
1096
+ [null, void 0].includes(l.series) && ya({
1097
+ componentName: "VueUiXy",
1098
+ type: "datasetSerieAttribute",
1099
+ property: "series (number[])",
1100
+ index: s,
1101
+ debug: je.value
1102
+ });
1103
+ });
1104
+ });
1105
+ function Xt() {
1106
+ if (!Object.keys(m.config || {}).length)
1107
+ return He;
1108
+ const l = wa({
1109
+ userConfig: m.config,
1110
+ defaultConfig: He
1111
+ });
1112
+ return m.config && Ze(m.config, "chart.highlightArea") && (Array.isArray(m.config.chart.highlightArea) ? l.chart.highlightArea = m.config.chart.highlightArea : l.chart.highlightArea = [m.config.chart.highlightArea]), m.config && Ze(m.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = m.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, m.config && Ze(m.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = m.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, m.config && Ze(m.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = m.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, m.config && Ze(m.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = m.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, m.config && Ze(m.config, "chart.grid.labels.yAxis.groupColor") ? l.chart.grid.labels.yAxis.groupColor = m.config.chart.grid.labels.yAxis.groupColor : l.chart.grid.labels.yAxis.groupColor = null, m.config && Ze(m.config, "chart.annotations") && Array.isArray(m.config.chart.annotations) && m.config.chart.annotations.length ? l.chart.annotations = m.config.chart.annotations.map((s) => wa({
1113
+ defaultConfig: He.chart.annotations[0],
1114
+ userConfig: s
1115
+ })) : l.chart.annotations = [], m.config && Ze(m.config, "chart.grid.position") && m.config.chart.grid.position === "start" && m.dataset.length && m.dataset.some((s) => s.type === "bar") && (l.chart.grid.position = "middle", Ze(m.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), m.config && Ze(m.config, "chart.grid.labels.yAxis.serieNameFormatter") ? l.chart.grid.labels.yAxis.serieNameFormatter = m.config.chart.grid.labels.yAxis.serieNameFormatter : l.chart.grid.labels.yAxis.serieNameFormatter = null, m.config && Ze(m.config, "events.datapointEnter") ? l.events.datapointEnter = m.config.events.datapointEnter : l.events.datapointEnter = null, m.config && Ze(m.config, "events.datapointLeave") ? l.events.datapointLeave = m.config.events.datapointLeave : l.events.datapointLeave = null, m.config && Ze(m.config, "events.datapointClick") ? l.events.datapointClick = m.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
1116
+ ...wa({
1117
+ userConfig: an.vue_ui_xy[l.theme] || m.config,
1118
+ defaultConfig: l
1119
+ }),
1120
+ customPalette: ln[l.theme] || m.palette
1121
+ } : l;
1122
+ }
1123
+ const Pt = x({
1124
+ get() {
1125
+ return !!m.dataset && m.dataset.length;
1126
+ },
1127
+ set(l) {
1128
+ return l;
1129
+ }
1130
+ }), t = p(Xt()), k = p({
1131
+ dataLabels: { show: !0 },
1132
+ showTooltip: !0,
1133
+ showTable: !1,
1134
+ isStacked: !1,
1135
+ useIndividualScale: !1
1136
+ });
1137
+ function Nt() {
1138
+ cl.value ? (k.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, k.value.useIndividualScale == null && (k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (k.value = {
1139
+ dataLabels: { show: !0 },
1140
+ showTooltip: t.value.chart.tooltip.show === !0,
1141
+ showTable: t.value.showTable === !0,
1142
+ isStacked: t.value.chart.grid.labels.yAxis.stacked,
1143
+ useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
1144
+ }, cl.value = !0);
1145
+ }
1146
+ const je = x(() => !!t.value.debug), { loading: Se, FINAL_DATASET: Ce, manualLoading: vl } = rn({
1147
+ ...Do(m),
1148
+ FINAL_CONFIG: t,
1149
+ prepareConfig: Xt,
1150
+ callback: () => {
1151
+ Promise.resolve().then(async () => {
1152
+ await Ul(), k.value.showTable = t.value.showTable;
1153
+ });
1154
+ },
1155
+ skeletonDataset: [
1156
+ {
1157
+ name: "",
1158
+ series: [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 134],
1159
+ type: "line",
1160
+ smooth: !0,
1161
+ color: "#BABABA"
1162
+ },
1163
+ {
1164
+ name: "",
1165
+ series: [0, 0.5, 1, 1.5, 2.5, 4, 6.5, 10.5, 17, 27.5, 44.5, 67],
1166
+ type: "bar",
1167
+ color: "#CACACA"
1168
+ }
1169
+ ],
1170
+ skeletonConfig: qo({
1171
+ defaultConfig: t.value,
1172
+ userConfig: {
1173
+ useCssAnimation: !1,
1174
+ showTable: !1,
1175
+ chart: {
1176
+ annotations: [],
1177
+ highlightArea: [],
1178
+ backgroundColor: "#99999930",
1179
+ grid: {
1180
+ stroke: "#6A6A6A",
1181
+ labels: {
1182
+ show: !1,
1183
+ axis: {
1184
+ yLabel: "",
1185
+ xLabel: ""
1186
+ },
1187
+ xAxisLabels: { show: !1 },
1188
+ yAxis: {
1189
+ commonScaleSteps: 10,
1190
+ useNiceScale: !0,
1191
+ scaleMin: 0,
1192
+ scaleMax: 134
1193
+ },
1194
+ zeroLine: { show: !0 }
1195
+ }
1196
+ },
1197
+ padding: {
1198
+ top: 12,
1199
+ bottom: 24,
1200
+ left: 24,
1201
+ right: 24
1202
+ },
1203
+ userOptions: { show: !1 },
1204
+ zoom: {
1205
+ show: !1,
1206
+ startIndex: null,
1207
+ endIndex: null
1208
+ }
1209
+ },
1210
+ bar: {
1211
+ serieName: { show: !1 },
1212
+ labels: { show: !1 },
1213
+ border: {
1214
+ useSerieColor: !1,
1215
+ stroke: "#999999"
1216
+ }
1217
+ },
1218
+ line: {
1219
+ dot: {
1220
+ useSerieColor: !1,
1221
+ fill: "#8A8A8A"
1222
+ },
1223
+ labels: { show: !1 }
1224
+ }
1225
+ }
1226
+ })
1227
+ });
1228
+ function ca(l) {
1229
+ const s = /* @__PURE__ */ new WeakMap();
1230
+ return (e, ...u) => {
1231
+ let a = s.get(e);
1232
+ const r = JSON.stringify(u);
1233
+ if (a && a.has(r)) return a.get(r);
1234
+ const o = l(e, ...u);
1235
+ return a || (a = /* @__PURE__ */ new Map(), s.set(e, a)), a.set(r, o), o;
1236
+ };
1237
+ }
1238
+ const va = ca((l, s) => ka({ data: l, threshold: s })), et = (l) => va(l, t.value.downsample.threshold), Ae = x({
1239
+ get: () => Math.max(...Ce.value.map((l) => et(l.series).length)),
1240
+ set: (l) => l
1241
+ }), y = p({ start: 0, end: Ae.value }), tt = p({ start: 0, end: Ae.value }), ut = x(() => t.value.chart.zoom.preview.enable && (tt.value.start !== y.value.start || tt.value.end !== y.value.end));
1242
+ function st(l, s) {
1243
+ tt.value[l] = s;
1244
+ }
1245
+ function Xe() {
1246
+ const l = Math.max(
1247
+ 1,
1248
+ ...Ce.value.map((u) => et(u.series).length)
1249
+ );
1250
+ let s = Math.max(0, Math.min(y.value.start ?? 0, l - 1)), e = Math.max(s + 1, Math.min(y.value.end ?? l, l));
1251
+ (!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), y.value = { start: s, end: e }, tt.value.start = s, tt.value.end = e;
1252
+ }
1253
+ const xt = x(() => {
1254
+ const { left: l, top: s, width: e, height: u } = c.value, a = y.value.start, o = y.value.end - a, N = e / o, E = tt.value.start - a, X = tt.value.end - a, A = Math.max(0, Math.min(o, E)), R = Math.max(0, Math.min(o, X));
1255
+ return {
1256
+ x: l + A * N,
1257
+ y: s,
1258
+ width: (R - A) * N,
1259
+ height: u,
1260
+ fill: t.value.chart.zoom.preview.fill,
1261
+ stroke: t.value.chart.zoom.preview.stroke,
1262
+ "stroke-width": t.value.chart.zoom.preview.strokeWidth,
1263
+ "stroke-dasharray": t.value.chart.zoom.preview.strokeDasharray,
1264
+ "stroke-linecap": "round",
1265
+ "stroke-linejoin": "round",
1266
+ style: {
1267
+ pointerEvents: "none",
1268
+ transition: "none !important",
1269
+ animation: "none !important"
1270
+ }
1271
+ };
1272
+ });
1273
+ mt(() => m.selectedXIndex, (l) => {
1274
+ if ([null, void 0].includes(m.selectedXIndex)) {
1275
+ C.value = null;
1276
+ return;
1277
+ }
1278
+ const s = l - y.value.start;
1279
+ s < 0 || l >= y.value.end ? C.value = null : C.value = s ?? null;
1280
+ }, { immediate: !0 });
1281
+ const { isPrinting: dl, isImaging: Wl, generatePdf: Xl, generateImage: Tl } = sn({
1282
+ elementId: `vue-ui-xy_${U.value}`,
1283
+ fileName: t.value.chart.title.text || "vue-ui-xy",
1284
+ options: t.value.chart.userOptions.print
1285
+ }), da = p(!1), hl = x(() => Zo(t.value.customPalette)), Yt = x(() => {
1286
+ if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
1287
+ return t.value.chart.grid.labels.yAxis.scaleMin;
1288
+ const l = Math.min(...Ye.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.min(...s.series)));
1289
+ return l > 0 ? 0 : l;
1290
+ }), rt = x(() => {
1291
+ if (t.value.chart.grid.labels.yAxis.scaleMax)
1292
+ return t.value.chart.grid.labels.yAxis.scaleMax;
1293
+ const l = Math.max(...Ye.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.max(...s.series)));
1294
+ return Yt.value === l ? l + 1 : l;
1295
+ }), $e = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? El(Yt.value, rt.value < 0 ? 0 : rt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : jt(Yt.value, rt.value < 0 ? 0 : rt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), ct = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? $e.value.min >= 0 ? 0 : Math.abs($e.value.min) : -$e.value.min), Ye = x(() => wt.value ? Ce.value.map((l, s) => {
1296
+ const e = et(l.series), u = `uniqueId_${s}`;
1297
+ return {
1298
+ ...l,
1299
+ slotAbsoluteIndex: s,
1300
+ series: e.map((a) => ta(a) ? a : null).slice(y.value.start, y.value.end),
1301
+ color: uo(l.color ? l.color : hl.value[s] ? hl.value[s] : so[s]),
1302
+ id: u,
1303
+ scaleLabel: l.scaleLabel || u
1304
+ };
1305
+ }) : Ce.value), ze = x(() => Ye.value.map((l, s) => ({
1306
+ absoluteIndex: s,
1307
+ ...l,
1308
+ series: l.series.map((e) => e + ct.value),
1309
+ absoluteValues: l.series,
1310
+ segregate: () => Pa(l),
1311
+ isSegregated: ve.value.includes(l.id)
1312
+ }))), ge = x(() => Ye.value.map((l, s) => ({
1313
+ ...l,
1314
+ series: l.series.map((e) => e + ct.value),
1315
+ absoluteValues: l.series
1316
+ })).filter((l) => !ve.value.includes(l.id)));
1317
+ function Yl() {
1318
+ let l = 0;
1319
+ Ml.value && (l = Array.from(Ml.value.querySelectorAll("text")).reduce((a, r) => {
1320
+ const o = r.getComputedTextLength();
1321
+ return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
1322
+ }, 0));
1323
+ const s = _l.value ? _l.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + _.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
1324
+ return l + s + e;
1325
+ }
1326
+ const ml = p(0), Gl = $a((l) => {
1327
+ ml.value = l;
1328
+ }, 100);
1329
+ oo((l) => {
1330
+ const s = zt.value;
1331
+ if (!s) return;
1332
+ const e = new ResizeObserver((u) => {
1333
+ Gl(u[0].contentRect.height);
1334
+ });
1335
+ e.observe(s), l(() => e.disconnect());
1336
+ }), ll(() => {
1337
+ ml.value = 0;
1338
+ });
1339
+ const Il = x(() => {
1340
+ let l = 0;
1341
+ Ne.value && (l = Ne.value.getBBox().height);
1342
+ let s = 0;
1343
+ return zt.value && (s = ml.value), l + s + _.value.xAxis;
1344
+ }), Gt = x(() => Ce.value.some((l) => l.useProgression)), c = x(() => {
1345
+ let l = 0;
1346
+ const s = 36;
1347
+ t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (Ce.value.length - ve.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = Yl());
1348
+ const e = t.value.chart.labels.fontSize * 1.1, u = Gt.value ? 24 : 6;
1349
+ if (zt.value) {
1350
+ const o = zt.value.getBBox().x;
1351
+ o < 0 && (l += Math.abs(o));
1352
+ }
1353
+ const a = ce.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - u - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a / I.value / 2;
1354
+ return {
1355
+ top: t.value.chart.padding.top + e,
1356
+ right: ce.value - u - t.value.chart.padding.right,
1357
+ bottom: re.value - Il.value - t.value.chart.padding.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
1358
+ left: l + t.value.chart.grid.labels.yAxis.crosshairSize - r + t.value.chart.padding.left,
1359
+ height: re.value - Il.value - t.value.chart.padding.top - t.value.chart.padding.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
1360
+ width: a,
1361
+ scaleLabelX: l,
1362
+ individualOffsetX: s
1363
+ };
1364
+ }), fl = x(() => {
1365
+ const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = I.value + l, e = J(c.value.top), u = J(c.value.bottom);
1366
+ return Array.from({ length: s }).map((a, r) => {
1367
+ const o = c.value.width / I.value * r + c.value.left + oe.value;
1368
+ return `M${o},${e} L${o},${u}`;
1369
+ }).join(" ");
1370
+ }), xe = x(() => {
1371
+ if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
1372
+ const l = c.value.width / I.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
1373
+ return Pl.value.map((u, a) => {
1374
+ if (!u || !u.text) return null;
1375
+ const r = c.value.left + l * a + l / 2, o = e ? Te.value - (Te.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, N = e ? Te.value + s / (Te.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
1376
+ return `M${r},${o} L${r},${N}`;
1377
+ }).filter(Boolean).join(" ");
1378
+ });
1379
+ function d() {
1380
+ return !!Hl?.vnode.props?.onSelectTimeLabel;
1381
+ }
1382
+ function g(l, s, e) {
1383
+ if (!gt.value) {
1384
+ const u = document.createElement("canvas");
1385
+ gt.value = u.getContext("2d");
1386
+ }
1387
+ return gt.value.font = `normal ${l}px sans-serif`, gt.value;
1388
+ }
1389
+ function h() {
1390
+ const l = Je.value.querySelectorAll(".vue-ui-xy-tag");
1391
+ l.length && Array.from(l).forEach((s) => s.style.opacity = "0");
1392
+ }
1393
+ function T(l, s, e, u, a) {
1394
+ e && (F.value[`${l}_${s}_${u}_${a}`] = e);
1395
+ }
1396
+ const B = p(!1);
1397
+ async function Q(l = !1) {
1398
+ await al(), B.value = l, Dl.value && (sl.value = l);
1399
+ }
1400
+ function Oe() {
1401
+ $t.value = !$t.value;
1402
+ }
1403
+ const ae = x(() => {
1404
+ const l = Math.max(...Ce.value.map((s) => ka({ data: s.series, threshold: t.value.downsample.threshold }).length));
1405
+ return go({
1406
+ values: t.value.chart.grid.labels.xAxisLabels.values,
1407
+ maxDatapoints: l,
1408
+ formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
1409
+ start: y.value.start,
1410
+ end: y.value.end
1411
+ });
1412
+ }), gl = x(() => {
1413
+ const l = Math.max(...Ce.value.map((s) => ka({ data: s.series, threshold: t.value.downsample.threshold }).length));
1414
+ return go({
1415
+ values: t.value.chart.grid.labels.xAxisLabels.values,
1416
+ maxDatapoints: l,
1417
+ formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
1418
+ start: 0,
1419
+ end: Ae.value
1420
+ });
1421
+ }), bt = x(() => {
1422
+ const l = t.value.chart.grid.labels.xAxisLabels.modulo;
1423
+ return ae.value.length ? Math.min(l, [...new Set(ae.value.map((s) => s.text))].length) : l;
1424
+ });
1425
+ function Ut(l) {
1426
+ let s = null, e = null;
1427
+ return (...u) => {
1428
+ const a = JSON.stringify(u);
1429
+ return a === s || (s = a, e = l(...u)), e;
1430
+ };
1431
+ }
1432
+ const ha = Ut((l, s, e, u, a, r, o, N) => {
1433
+ if (l)
1434
+ return u.length <= 2 ? u.map((V, ie) => ({ text: V, absoluteIndex: ie })) : u.map((V, ie) => ({ text: ie === 0 || ie === u.length - 1 || o != null && ie === o ? V : "", absoluteIndex: ie }));
1435
+ if (!s)
1436
+ return u.map((D, V) => ({ text: D, absoluteIndex: V }));
1437
+ const E = Math.max(1, e || 1);
1438
+ if (N <= E)
1439
+ return u.map((D, V) => ({ text: D, absoluteIndex: V }));
1440
+ const X = [];
1441
+ for (let D = 0; D < u.length; D += 1) {
1442
+ const V = u[D] ?? "";
1443
+ if (!V) continue;
1444
+ const ie = r + D - 1 >= 0 ? a[r + D - 1] ?? "" : null;
1445
+ V !== ie && X.push(D);
1446
+ }
1447
+ if (!X.length)
1448
+ return u.map((D, V) => ({ text: "", absoluteIndex: V }));
1449
+ const A = X.length, R = E, ee = Math.max(2, Math.min(R - 3, A)), z = Math.min(A, R + 3);
1450
+ let Y = Math.min(R, A), O = 1 / 0;
1451
+ for (let D = ee; D <= z; D += 1) {
1452
+ const V = (A - 1) % (D - 1), ie = Math.abs(D - R), Be = V * 10 + ie;
1453
+ Be < O && (O = Be, Y = D);
1454
+ }
1455
+ const he = /* @__PURE__ */ new Set();
1456
+ if (Y <= 1)
1457
+ he.add(X[Math.round((A - 1) / 2)]);
1458
+ else {
1459
+ const D = (A - 1) / (Y - 1);
1460
+ for (let V = 0; V < Y; V += 1)
1461
+ he.add(X[Math.round(V * D)]);
1462
+ }
1463
+ return u.map((D, V) => ({
1464
+ text: he.has(V) ? D : "",
1465
+ absoluteIndex: V
1466
+ }));
1467
+ }), Pl = x(() => {
1468
+ const l = t.value.chart.grid.labels.xAxisLabels, s = ae.value || [], e = gl.value || [], u = y.value.start ?? 0, a = C.value, r = I.value, o = s.map((E) => E?.text ?? ""), N = e.map((E) => E?.text ?? "");
1469
+ return ha(
1470
+ !!l.showOnlyFirstAndLast,
1471
+ !!l.showOnlyAtModulo,
1472
+ Math.max(1, bt.value || 1),
1473
+ o,
1474
+ N,
1475
+ u,
1476
+ a,
1477
+ r
1478
+ );
1479
+ });
1480
+ function Nl(l, s) {
1481
+ const e = ge.value.map((u) => ({
1482
+ shape: u.shape || null,
1483
+ name: u.name,
1484
+ color: u.color,
1485
+ type: u.type,
1486
+ value: u.absoluteValues.find((a, r) => r === s),
1487
+ comments: u.comments || [],
1488
+ prefix: u.prefix || t.value.chart.labels.prefix,
1489
+ suffix: u.suffix || t.value.chart.labels.suffix
1490
+ }));
1491
+ At("selectTimeLabel", {
1492
+ datapoint: e,
1493
+ absoluteIndex: l.absoluteIndex,
1494
+ label: l.text
1495
+ });
1496
+ }
1497
+ const I = x(() => {
1498
+ const l = Wt((y.value.end ?? 0) - (y.value.start ?? 0));
1499
+ return Math.max(1, l);
1500
+ });
1501
+ function _a(l) {
1502
+ H.value = l;
1503
+ }
1504
+ function Ma() {
1505
+ k.value.isStacked = !k.value.isStacked, k.value.isStacked ? k.value.useIndividualScale = !0 : k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
1506
+ }
1507
+ function ma(l) {
1508
+ je.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1509
+ }
1510
+ function bo(l, s) {
1511
+ const e = Wt(l), u = Array(e).fill(0);
1512
+ for (let a = 0; a < s.length && a < e; a += 1) u[a] = s[a] ?? 0;
1513
+ return u;
1514
+ }
1515
+ function po(l) {
1516
+ const s = Math.max(...Ce.value.map((e) => et(e.series).length));
1517
+ return l > s ? s : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
1518
+ }
1519
+ async function Ul() {
1520
+ await al(), await al();
1521
+ const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Pe.value, u = Math.max(...Ce.value.map((a) => et(a.series).length));
1522
+ y.value = { start: 0, end: u }, (l != null || s != null) && e ? (l != null ? (y.value.start = l, e.setStartValue(l)) : (y.value.start = 0, e.setStartValue(0)), s != null ? (y.value.end = s + 1, e.setEndValue(po(s + 1))) : (y.value.end = u, e.setEndValue(u))) : (y.value = { start: 0, end: u }, Tt.value += 1), tt.value.start = y.value.start, tt.value.end = y.value.end, Xe();
1523
+ }
1524
+ async function La() {
1525
+ await Ul();
1526
+ }
1527
+ function Ge(l) {
1528
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(l);
1529
+ }
1530
+ const Ca = x(() => $e.value.max + ct.value);
1531
+ function qt(l) {
1532
+ return l / (Ge(Ca.value) ? Ca.value : 1);
1533
+ }
1534
+ const Te = x(() => isNaN(qt(ct.value)) ? c.value.bottom : c.value.bottom - c.value.height * qt(ct.value));
1535
+ function Aa(l) {
1536
+ const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Yt.value >= 0 ? c.value.bottom : Te.value;
1537
+ return l.value >= 0 ? G(s - l.y <= 0 ? 1e-5 : s - l.y) : G(l.y - Te.value <= 0 ? 1e-5 : l.y - Te.value);
1538
+ }
1539
+ function za(l) {
1540
+ return l.value >= 0 ? G(l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y) : G(l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y);
1541
+ }
1542
+ const de = x(() => {
1543
+ const l = Math.max(1, I.value), s = Math.max(1, c.value.width), e = Math.max(1, Ye.value.filter((u) => u.type === "bar" && !ve.value.includes(u.id)).length);
1544
+ return {
1545
+ bar: zl(s, l * e, 1),
1546
+ plot: zl(s, l, 1),
1547
+ line: zl(s, l, 1)
1548
+ };
1549
+ });
1550
+ function xl() {
1551
+ return k.value.useIndividualScale && k.value.isStacked ? de.value.line - c.value.width / I.value * 0.1 : de.value.bar;
1552
+ }
1553
+ function ql(l) {
1554
+ return k.value.useIndividualScale && k.value.isStacked ? l.x + c.value.width / I.value * 0.05 : l.x + de.value.bar / 2;
1555
+ }
1556
+ function Ta(l) {
1557
+ return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(Te.value) ? c.bottom.value : Te.value;
1558
+ }
1559
+ function Ia(l) {
1560
+ return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
1561
+ }
1562
+ const Fl = p(null);
1563
+ let Zt = 0;
1564
+ function yo(l, s, e) {
1565
+ return l >= e.left && l <= e.right && s >= e.top && s <= e.bottom;
1566
+ }
1567
+ function ko(l) {
1568
+ if ($t.value) return;
1569
+ Zt && cancelAnimationFrame(Zt);
1570
+ const s = _e.value?.getBoundingClientRect();
1571
+ Zt = requestAnimationFrame(() => {
1572
+ if (Zt = 0, !s || !yo(l.clientX, l.clientY, s)) {
1573
+ fa();
1574
+ return;
1575
+ }
1576
+ const u = _e.value.viewBox.baseVal.width / s.width, r = (l.clientX - s.left) * u - c.value.left, o = c.value.width / I.value, N = Math.floor(r / o);
1577
+ N >= 0 && N < I.value ? Fl.value !== N && (Fl.value = N, Ya(!0, N)) : fa();
1578
+ });
1579
+ }
1580
+ function fa() {
1581
+ Zt && (cancelAnimationFrame(Zt), Zt = 0), Fl.value = null, Ya(!1, null);
1582
+ }
1583
+ function wo() {
1584
+ Fl.value != null && So(Fl.value);
1585
+ }
1586
+ function So(l) {
1587
+ const s = ge.value.map((e) => ({
1588
+ name: e.name,
1589
+ value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
1590
+ color: e.color,
1591
+ type: e.type
1592
+ }));
1593
+ At(
1594
+ "selectX",
1595
+ {
1596
+ dataset: s,
1597
+ index: l,
1598
+ indexLabel: t.value.chart.grid.labels.xAxisLabels.values[l]
1599
+ }
1600
+ ), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: s, seriesIndex: l + y.value.start });
1601
+ }
1602
+ function $o() {
1603
+ return ze.value.map((l) => ({
1604
+ values: l.absoluteValues,
1605
+ color: l.color,
1606
+ name: l.name,
1607
+ type: l.type
1608
+ }));
1609
+ }
1610
+ async function _o({ scale: l = 2 } = {}) {
1611
+ if (!Je.value) return;
1612
+ const { width: s, height: e } = Je.value.getBoundingClientRect(), u = s / e, { imageUri: a, base64: r } = await mn({ domElement: Je.value, base64: !0, img: !0, scale: l });
1613
+ return {
1614
+ imageUri: a,
1615
+ base64: r,
1616
+ title: t.value.chart.title.text,
1617
+ width: s,
1618
+ height: e,
1619
+ aspectRatio: u
1620
+ };
1621
+ }
1622
+ function Pa(l) {
1623
+ if (ve.value.includes(l.id))
1624
+ ve.value = ve.value.filter((s) => s !== l.id);
1625
+ else {
1626
+ if (ve.value.length + 1 === Ye.value.length) return;
1627
+ ve.value.push(l.id);
1628
+ }
1629
+ At("selectLegend", ge.value.map((s) => ({
1630
+ name: s.name,
1631
+ values: s.absoluteValues,
1632
+ color: s.color,
1633
+ type: s.type
1634
+ }))), Al.value += 1;
1635
+ }
1636
+ const Mo = x(() => {
1637
+ const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
1638
+ return `${l}. ${s}`;
1639
+ }), Na = x(() => ({
1640
+ linePlot: I.value > t.value.line.dot.hideAboveMaxSerieLength
1641
+ })), Lo = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), Co = x(() => {
1642
+ if (Array.isArray(t.value.chart.highlightArea))
1643
+ return t.value.chart.highlightArea.map((s) => {
1644
+ const e = Math.min(s.to, Ae.value - 1);
1645
+ return {
1646
+ ...s,
1647
+ span: s.from === e ? 1 : e < s.from ? 0 : e - s.from + 1
1648
+ };
1649
+ });
1650
+ const l = {
1651
+ ...t.value.chart.highlightArea,
1652
+ to: Math.min(t.value.chart.highlightArea.to, Ae.value - 1)
1653
+ };
1654
+ return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
1655
+ }), Fa = x(() => wt.value ? Ce.value.map((l, s) => ({
1656
+ ...l,
1657
+ series: et(l.series),
1658
+ id: `uniqueId_${s}`,
1659
+ color: uo(l.color ? l.color : hl.value[s] ? hl.value[s] : so[s])
1660
+ })) : Ce.value), Ao = x(() => ge.value.map((l) => {
1661
+ const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1662
+ return {
1663
+ id: l.id,
1664
+ name: l.name,
1665
+ color: l.color,
1666
+ values: bo(I.value, s)
1667
+ };
1668
+ })), zo = x(() => ({
1669
+ responsiveBreakpoint: t.value.table.responsiveBreakpoint,
1670
+ roundingValues: t.value.table.rounding,
1671
+ showAverage: !1,
1672
+ showMedian: !1,
1673
+ showTotal: !1,
1674
+ fontFamily: t.value.chart.fontFamily,
1675
+ prefix: t.value.chart.labels.prefix,
1676
+ suffix: t.value.chart.labels.suffix,
1677
+ colNames: ae.value.map((l, s) => t.value.table.useDefaultTimeFormat ? l.text : bl.value(s + y.value.start, t.value.table.timeFormat)),
1678
+ thead: {
1679
+ backgroundColor: t.value.table.th.backgroundColor,
1680
+ color: t.value.table.th.color,
1681
+ outline: t.value.table.th.outline
1682
+ },
1683
+ tbody: {
1684
+ backgroundColor: t.value.table.td.backgroundColor,
1685
+ color: t.value.table.td.color,
1686
+ outline: t.value.table.td.outline
1687
+ },
1688
+ userOptions: {
1689
+ show: !1
1690
+ },
1691
+ sparkline: {
1692
+ animation: { show: !1 }
1693
+ }
1694
+ })), oe = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value / 2), Kt = x(() => Ko(ze.value.filter((l) => !ve.value.includes(l.id)))), P = x(() => {
1695
+ const l = Object.groupBy(Kt.value, (e) => e.scaleLabel), s = {};
1696
+ for (const [e, u] of Object.entries(l)) {
1697
+ const a = u.flatMap((r) => r.absoluteValues);
1698
+ s[e] = {
1699
+ min: Math.min(...a) || 0,
1700
+ max: Math.max(...a) || 1,
1701
+ groupId: `scale_group_${oa()}`
1702
+ };
1703
+ }
1704
+ return s;
1705
+ }), To = x(() => {
1706
+ const l = Ye.value.filter((s) => s.type === "bar").filter((s) => !ve.value.includes(s.id)).length;
1707
+ return c.value.width / I.value / l - Zl.value * l;
1708
+ }), Zl = x(() => de.value.line * t.value.bar.periodGap), Kl = x(() => Math.max(1e-5, xl() - (k.value.useIndividualScale && k.value.isStacked ? 0 : Zl.value))), Jl = x(() => Kl.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Ra = x(() => {
1709
+ if (!t.value.chart.zoom.minimap.show) return [];
1710
+ const l = Fa.value.filter((a) => !ve.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
1711
+ for (let a = 0; a < s; a += 1)
1712
+ e.push(l.map((r) => r.series[a] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
1713
+ const u = Math.min(...e);
1714
+ return e.map((a) => a + (u < 0 ? Math.abs(u) : 0));
1715
+ }), Oa = x(() => t.value.chart.zoom.minimap.show ? Fa.value.map((s) => ({
1716
+ ...s,
1717
+ isVisible: !ve.value.includes(s.id)
1718
+ })) : []), Mt = x(() => ge.value.map((l) => ({
1719
+ slotAbsoluteIndex: l.slotAbsoluteIndex,
1720
+ shape: l.shape || null,
1721
+ name: l.name,
1722
+ color: l.color,
1723
+ type: l.type,
1724
+ value: l.absoluteValues.find((s, e) => e === C.value),
1725
+ comments: l.comments || [],
1726
+ prefix: l.prefix || t.value.chart.labels.prefix,
1727
+ suffix: l.suffix || t.value.chart.labels.suffix
1728
+ }))), Va = x(() => $e.value.ticks.map((l) => ({
1729
+ y: l >= 0 ? Te.value - c.value.height * qt(l) : Te.value + c.value.height * qt(Math.abs(l)),
1730
+ value: l,
1731
+ prefix: t.value.chart.labels.prefix,
1732
+ suffix: t.value.chart.labels.suffix
1733
+ }))), Ba = x(() => {
1734
+ const l = t.value.chart.annotations;
1735
+ if (!l || !Array.isArray(l) || l.every((A) => !A.show)) return [];
1736
+ const s = l.filter(
1737
+ (A) => A.show && (A.yAxis.yTop != null || A.yAxis.yBottom != null)
1738
+ );
1739
+ if (!s.length) return [];
1740
+ const { left: e, right: u } = c.value, a = Te.value, r = c.value.height, o = $e.value.min, E = $e.value.max - o, X = (A) => {
1741
+ const R = (A - 0) / E;
1742
+ return a - R * r;
1743
+ };
1744
+ return s.map((A) => {
1745
+ const { yAxis: { yTop: R, yBottom: ee, label: z } } = A, Y = R != null && ee != null && R !== ee, O = R == null ? null : X(R), he = ee == null ? null : X(ee), D = g(z.fontSize);
1746
+ D.font = `${z.fontSize}px sans-serif`;
1747
+ const V = D.measureText(z.text).width, ie = z.fontSize, Be = (z.position === "start" ? e + z.padding.left : u - z.padding.right) + z.offsetX, Ue = (O != null && he != null ? Math.min(O, he) : O ?? he) - z.fontSize / 3 + z.offsetY - z.padding.top;
1748
+ let Z;
1749
+ z.textAnchor === "middle" ? Z = Be - V / 2 - z.padding.left : z.textAnchor === "end" ? Z = Be - V - z.padding.right : Z = Be - z.padding.left;
1750
+ const K = Ue - ie * 0.75 - z.padding.top;
1751
+ return {
1752
+ show: ![O, he, K].includes(NaN),
1753
+ id: `annotation_y_${oa()}`,
1754
+ hasArea: Y,
1755
+ areaHeight: Y ? Math.abs(O - he) : 0,
1756
+ yTop: O,
1757
+ yBottom: he,
1758
+ config: A.yAxis,
1759
+ x1: e,
1760
+ x2: u,
1761
+ _text: { x: Be, y: Ue },
1762
+ _box: {
1763
+ x: Z,
1764
+ y: K,
1765
+ width: V + z.padding.left + z.padding.right,
1766
+ height: ie + z.padding.top + z.padding.bottom,
1767
+ fill: z.backgroundColor,
1768
+ stroke: z.border.stroke,
1769
+ rx: z.border.rx,
1770
+ ry: z.border.ry,
1771
+ strokeWidth: z.border.strokeWidth
1772
+ }
1773
+ };
1774
+ });
1775
+ });
1776
+ function Ea(l, s) {
1777
+ const e = l[s - 1], u = l[s + 1];
1778
+ let a = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
1779
+ return Ge(l[s].value) && a && t.value.line.cutNullValues;
1780
+ }
1781
+ const Lt = x(() => {
1782
+ const l = Kt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = k.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
1783
+ return l.filter((o) => o.type === "bar").map((o, N) => {
1784
+ ma(o);
1785
+ const E = P.value[o.scaleLabel].min, X = P.value[o.scaleLabel].max;
1786
+ o.absoluteValues.filter((q) => ![null, void 0].includes(q)).map((q) => (q - E) / (X - E));
1787
+ const A = {
1788
+ valueMin: E,
1789
+ valueMax: X < 0 ? 0 : X
1790
+ }, R = {
1791
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1792
+ min: o.scaleMin || Math.min(...o.absoluteValues.filter((q) => ![void 0, null].includes(q))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((q) => ![null, void 0].includes(q)))
1793
+ }, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, z = 1.0000001, Y = t.value.chart.grid.labels.yAxis.useNiceScale ? El(R.min, R.max === R.min ? R.max * z : R.max, ee) : jt(R.min, R.max === R.min ? R.max * z : R.max, ee), O = t.value.chart.grid.labels.yAxis.useNiceScale ? El(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * z : A.valueMax, ee) : jt(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * z : A.valueMax, ee), he = Y.min >= 0 ? 0 : Math.abs(Y.min), D = 0, V = Y.max + he, ie = O.max + Math.abs(D), Be = o.stackIndex, pl = s - 1 - Be, Ue = u ? 1 - o.cumulatedStackRatio : 0, Z = u ? r * Ue + e * pl : 0, K = u ? r * o.stackRatio : c.value.height, be = c.value.bottom - Z - K * he / V, qe = c.value.bottom - Z - K * D / ie, Ie = ze.value.filter((q) => q.type === "bar").filter((q) => !ve.value.includes(q.id)).length, Vl = o.series.map((q, ye) => {
1794
+ const Rt = k.value.useIndividualScale ? (o.absoluteValues[ye] + he) / V : qt(q), Jt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * ye : c.value.left + de.value.bar * N + de.value.bar * ye * Ie - To.value / 2 - N * Zl.value;
1795
+ return {
1796
+ yOffset: G(Z),
1797
+ individualHeight: G(K),
1798
+ x: G(Jt),
1799
+ y: c.value.bottom - Z - K * Rt,
1800
+ value: o.absoluteValues[ye],
1801
+ zeroPosition: G(be),
1802
+ individualMax: G(V),
1803
+ comment: o.comments && o.comments.slice(y.value.start, y.value.end)[ye] || ""
1804
+ };
1805
+ }), Ee = o.absoluteValues.map((q) => O.min >= 0 ? (q - Math.abs(O.min)) / (O.max - Math.abs(O.min)) : (q + Math.abs(O.min)) / (O.max + Math.abs(O.min))), Ft = o.series.map((q, ye) => {
1806
+ const Rt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * ye : c.value.left - de.value.bar / 2 + de.value.bar * N + de.value.bar * ye * ze.value.filter((Jt) => Jt.type === "bar").filter((Jt) => !ve.value.includes(Jt.id)).length;
1807
+ return {
1808
+ yOffset: G(Z),
1809
+ individualHeight: G(K),
1810
+ x: G(Rt),
1811
+ y: G(c.value.bottom - G(Z) - (G(K) * Ee[ye] || 0)),
1812
+ value: o.absoluteValues[ye],
1813
+ zeroPosition: G(be),
1814
+ individualMax: G(V),
1815
+ comment: o.comments && o.comments.slice(y.value.start, y.value.end)[ye] || ""
1816
+ };
1817
+ }), le = Y.ticks.map((q) => ({
1818
+ y: q >= 0 ? be - K * (q / V) : be + K * Math.abs(q) / V,
1819
+ value: q,
1820
+ prefix: o.prefix || t.value.chart.labels.prefix,
1821
+ suffix: o.suffix || t.value.chart.labels.suffix,
1822
+ datapoint: o
1823
+ })), pe = O.ticks.map((q) => {
1824
+ const ye = (q - O.min) / (O.max - O.min);
1825
+ return {
1826
+ y: q >= 0 ? qe - K * ye : qe + K * ye,
1827
+ value: q,
1828
+ prefix: o.prefix || t.value.chart.labels.prefix,
1829
+ suffix: o.suffix || t.value.chart.labels.suffix,
1830
+ datapoint: o
1831
+ };
1832
+ });
1833
+ return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? pe : le, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? qe : be, P.value[o.scaleLabel].individualMax = o.autoScaling ? ie : V, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = Z, P.value[o.scaleLabel].individualHeight = K, P.value[o.scaleLabel].autoScaleYLabels = pe, P.value[o.scaleLabel].unique = Kt.value.filter((q) => q.scaleLabel === o.scaleLabel).length === 1, {
1834
+ ...o,
1835
+ yOffset: Z,
1836
+ autoScaleYLabels: pe,
1837
+ individualHeight: K,
1838
+ scaleYLabels: o.autoScaling ? pe : le,
1839
+ individualScale: o.autoScaling ? O : Y,
1840
+ individualMax: o.autoScaling ? ie : V,
1841
+ zeroPosition: o.autoScaling ? qe : be,
1842
+ plots: o.autoScaling ? Ft : Vl,
1843
+ groupId: P.value[o.scaleLabel].groupId
1844
+ };
1845
+ });
1846
+ }), Ve = x(() => {
1847
+ const l = Kt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = k.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
1848
+ return l.filter((o) => o.type === "line").map((o, N) => {
1849
+ ma(o);
1850
+ const E = P.value[o.scaleLabel].min, X = P.value[o.scaleLabel].max;
1851
+ o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - E) / (X - E));
1852
+ const A = {
1853
+ valueMin: E,
1854
+ valueMax: X
1855
+ }, R = {
1856
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1857
+ min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
1858
+ }, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, z = 1.0000001, Y = t.value.chart.grid.labels.yAxis.useNiceScale ? El(R.min, R.max === R.min ? R.max * z : R.max, ee) : jt(R.min, R.max === R.min ? R.max * z : R.max, ee), O = t.value.chart.grid.labels.yAxis.useNiceScale ? El(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * z : A.valueMax, ee) : jt(A.valueMin, A.valueMax === A.valueMin ? A.valueMax * z : A.valueMax, ee), he = Y.min >= 0 ? 0 : Math.abs(Y.min), D = 0, V = Y.max + Math.abs(he), ie = O.max + Math.abs(D), Be = o.stackIndex, pl = s - 1 - Be, Ue = u ? 1 - o.cumulatedStackRatio : 0, Z = u ? r * Ue + e * pl : 0, K = u ? r * o.stackRatio : c.value.height, be = c.value.bottom - Z - K * he / V, qe = c.value.bottom - Z - K * D / ie, Ie = o.series.map((W, Me) => {
1859
+ const Oo = k.value.useIndividualScale ? (o.absoluteValues[Me] + Math.abs(he)) / V : qt(W);
1860
+ return {
1861
+ x: G(c.value.left + de.value.line / 2 + de.value.line * Me),
1862
+ y: G(c.value.bottom - Z - K * Oo),
1863
+ value: o.absoluteValues[Me],
1864
+ comment: o.comments && o.comments.slice(y.value.start, y.value.end)[Me] || ""
1865
+ };
1866
+ }), Vl = o.absoluteValues.map((W) => O.min >= 0 ? (W - Math.abs(O.min)) / (O.max - Math.abs(O.min)) : (W + Math.abs(O.min)) / (O.max + Math.abs(O.min))), Ee = o.series.map((W, Me) => [void 0, null].includes(o.absoluteValues[Me]) ? {
1867
+ x: G(c.value.left + de.value.line / 2 + de.value.line * Me),
1868
+ y: be,
1869
+ value: o.absoluteValues[Me],
1870
+ comment: o.comments && o.comments.slice(y.value.start, y.value.end)[Me] || ""
1871
+ } : {
1872
+ x: G(c.value.left + de.value.line / 2 + de.value.line * Me),
1873
+ y: G(c.value.bottom - Z - (K * Vl[Me] || 0)),
1874
+ value: o.absoluteValues[Me],
1875
+ comment: o.comments && o.comments.slice(y.value.start, y.value.end)[Me] || ""
1876
+ }), Ft = t.value.line.cutNullValues ? ro(Ie) : ia(Ie.filter((W) => W.value !== null)), le = t.value.line.cutNullValues ? ro(Ee) : ia(Ee.filter((W) => W.value !== null)), pe = t.value.line.cutNullValues ? co(Ie) : ua(Ie.filter((W) => W.value !== null)), q = t.value.line.cutNullValues ? co(Ee) : ua(Ee.filter((W) => W.value !== null)), ye = Y.ticks.map((W) => ({
1877
+ y: W >= 0 ? be - K * (W / V) : be + K * Math.abs(W) / V,
1878
+ value: W,
1879
+ prefix: o.prefix || t.value.chart.labels.prefix,
1880
+ suffix: o.suffix || t.value.chart.labels.suffix,
1881
+ datapoint: o
1882
+ })), Rt = O.ticks.map((W) => {
1883
+ const Me = (W - O.min) / (O.max - O.min);
1884
+ return {
1885
+ y: W >= 0 ? qe - K * Me : qe + K * Me,
1886
+ value: W,
1887
+ prefix: o.prefix || t.value.chart.labels.prefix,
1888
+ suffix: o.suffix || t.value.chart.labels.suffix,
1889
+ datapoint: o
1890
+ };
1891
+ });
1892
+ P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Rt : ye, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? qe : be, P.value[o.scaleLabel].individualMax = o.autoScaling ? ie : V, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = Z, P.value[o.scaleLabel].individualHeight = K, P.value[o.scaleLabel].autoScaleYLabels = Rt, P.value[o.scaleLabel].unique = Kt.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1;
1893
+ const Jt = k.value.useIndividualScale ? o.autoScaling ? qe : be : Te.value, Bl = Math.max(Math.max(o.autoScaling ? qe : ye.at(-1) ? ye.at(-1).y : 0, c.value.top), Jt);
1894
+ return {
1895
+ ...o,
1896
+ yOffset: Z,
1897
+ autoScaleYLabels: Rt,
1898
+ individualHeight: K,
1899
+ scaleYLabels: o.autoScaling ? Rt : ye,
1900
+ individualScale: o.autoScaling ? O : Y,
1901
+ individualMax: o.autoScaling ? ie : V,
1902
+ zeroPosition: o.autoScaling ? qe : be,
1903
+ curve: o.autoScaling ? le : Ft,
1904
+ plots: o.autoScaling ? Ee : Ie,
1905
+ area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? vo(
1906
+ o.autoScaling ? Ee : Ie,
1907
+ Bl
1908
+ ) : ho(
1909
+ o.autoScaling ? Ee.filter((W) => W.value !== null) : Ie.filter((W) => W.value !== null),
1910
+ Bl
1911
+ ) : t.value.line.cutNullValues ? vo(Ie, Bl) : ho(Ie.filter((W) => W.value !== null), Bl) : "",
1912
+ curveAreas: o.useArea ? Jo(
1913
+ o.autoScaling ? t.value.line.cutNullValues ? Ee : Ee.filter((W) => W.value !== null) : t.value.line.cutNullValues ? Ie : Ie.filter((W) => W.value !== null),
1914
+ Bl,
1915
+ t.value.line.cutNullValues
1916
+ ) : [],
1917
+ straight: o.autoScaling ? q : pe,
1918
+ groupId: P.value[o.scaleLabel].groupId
1919
+ };
1920
+ });
1921
+ }), vt = x(() => {
1922
+ const l = Kt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = k.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
1923
+ return l.filter((o) => o.type === "plot").map((o) => {
1924
+ ma(o);
1925
+ const N = P.value[o.scaleLabel].min, E = P.value[o.scaleLabel].max;
1926
+ o.absoluteValues.filter((le) => ![null, void 0].includes(le)).map((le) => (le - N) / (E - N));
1927
+ const X = {
1928
+ valueMin: N,
1929
+ valueMax: E
1930
+ }, A = {
1931
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1932
+ min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
1933
+ }, R = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, z = jt(A.min, A.max === A.min ? A.max * ee : A.max, R), Y = jt(X.valueMin, X.valueMax === X.valueMin ? X.valueMax * ee : X.valueMax, R), O = z.min >= 0 ? 0 : Math.abs(z.min), he = 0, D = z.max + O, V = Y.max + Math.abs(he), ie = o.stackIndex, Be = s - 1 - ie, pl = u ? 1 - o.cumulatedStackRatio : 0, Ue = u ? r * pl + e * Be : 0, Z = u ? r * o.stackRatio : c.value.height, K = c.value.bottom - Ue - Z * O / D, be = c.value.bottom - Ue - Z * he / V, qe = o.series.map((le, pe) => {
1934
+ const q = k.value.useIndividualScale ? (o.absoluteValues[pe] + Math.abs(O)) / D : qt(le);
1935
+ return {
1936
+ x: G(c.value.left + de.value.plot / 2 + de.value.plot * pe),
1937
+ y: G(c.value.bottom - Ue - Z * q),
1938
+ value: o.absoluteValues[pe],
1939
+ comment: o.comments && o.comments.slice(y.value.start, y.value.end)[pe] || ""
1940
+ };
1941
+ }), Ie = o.absoluteValues.map((le) => Y.min >= 0 ? (le - Math.abs(Y.min)) / (Y.max - Math.abs(Y.min)) : (le + Math.abs(Y.min)) / (Y.max + Math.abs(Y.min))), Vl = o.series.map((le, pe) => ({
1942
+ x: G(c.value.left + de.value.plot / 2 + de.value.plot * pe),
1943
+ y: G(c.value.bottom - Ue - (Z * Ie[pe] || 0)),
1944
+ value: o.absoluteValues[pe],
1945
+ comment: o.comments && o.comments.slice(y.value.start, y.value.end)[pe] || ""
1946
+ })), Ee = z.ticks.map((le) => ({
1947
+ y: le >= 0 ? K - Z * (le / D) : K + Z * Math.abs(le) / D,
1948
+ value: le,
1949
+ prefix: o.prefix || t.value.chart.labels.prefix,
1950
+ suffix: o.suffix || t.value.chart.labels.suffix,
1951
+ datapoint: o
1952
+ })), Ft = Y.ticks.map((le) => {
1953
+ const pe = (le - Y.min) / (Y.max - Y.min);
1954
+ return {
1955
+ y: le >= 0 ? be - Z * pe : be + Z * pe,
1956
+ value: le,
1957
+ prefix: o.prefix || t.value.chart.labels.prefix,
1958
+ suffix: o.suffix || t.value.chart.labels.suffix,
1959
+ datapoint: o
1960
+ };
1961
+ });
1962
+ return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ft : Ee, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? be : K, P.value[o.scaleLabel].individualMax = o.autoScaling ? V : D, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = Ue, P.value[o.scaleLabel].individualHeight = Z, P.value[o.scaleLabel].autoScaleYLabels = Ft, P.value[o.scaleLabel].unique = Kt.value.filter((le) => le.scaleLabel === o.scaleLabel).length === 1, {
1963
+ ...o,
1964
+ yOffset: Ue,
1965
+ autoScaleYLabels: Ft,
1966
+ individualHeight: Z,
1967
+ scaleYLabels: o.autoScaling ? Ft : Ee,
1968
+ individualScale: o.autoScaling ? Y : z,
1969
+ individualMax: o.autoScaling ? V : D,
1970
+ zeroPosition: o.autoScaling ? be : K,
1971
+ plots: o.autoScaling ? Vl : qe,
1972
+ groupId: P.value[o.scaleLabel].groupId
1973
+ };
1974
+ });
1975
+ }), Rl = x(() => {
1976
+ const l = Ve.value.map((r) => ({
1977
+ name: r.name,
1978
+ color: r.color,
1979
+ scale: r.individualScale,
1980
+ scaleYLabels: r.scaleYLabels,
1981
+ zero: r.zeroPosition,
1982
+ max: r.individualMax,
1983
+ scaleLabel: r.scaleLabel || "",
1984
+ id: r.id,
1985
+ yOffset: r.yOffset || 0,
1986
+ individualHeight: r.individualHeight || c.value.height,
1987
+ autoScaleYLabels: r.autoScaleYLabels
1988
+ })), s = Lt.value.map((r) => ({
1989
+ name: r.name,
1990
+ color: r.color,
1991
+ scale: r.individualScale,
1992
+ scaleYLabels: r.scaleYLabels,
1993
+ zero: r.zeroPosition,
1994
+ max: r.individualMax,
1995
+ scaleLabel: r.scaleLabel || "",
1996
+ id: r.id,
1997
+ yOffset: r.yOffset || 0,
1998
+ individualHeight: r.individualHeight || c.value.height
1999
+ })), e = vt.value.map((r) => ({
2000
+ name: r.name,
2001
+ color: r.color,
2002
+ scale: r.individualScale,
2003
+ scaleYLabels: r.scaleYLabels,
2004
+ // FIX
2005
+ zero: r.zeroPosition,
2006
+ max: r.individualMax,
2007
+ scaleLabel: r.scaleLabel || "",
2008
+ id: r.id,
2009
+ yOffset: r.yOffset || 0,
2010
+ individualHeight: r.individualHeight || c.value.height
2011
+ })), u = k.value.useIndividualScale && !k.value.isStacked ? Object.values(P.value) : [...l, ...s, ...e], a = u.flatMap((r) => r).length;
2012
+ return u.flatMap((r, o) => {
2013
+ let N = 0;
2014
+ N = k.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
2015
+ const E = k.value.useIndividualScale && !k.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
2016
+ return {
2017
+ unique: r.unique,
2018
+ id: r.id,
2019
+ groupId: r.groupId,
2020
+ scaleLabel: r.scaleLabel,
2021
+ name: Le(
2022
+ t.value.chart.grid.labels.yAxis.serieNameFormatter,
2023
+ E,
2024
+ E,
2025
+ r
2026
+ ),
2027
+ color: k.value.useIndividualScale && !k.value.isStacked ? r.unique ? r.color : r.groupColor : r.color,
2028
+ scale: r.scale,
2029
+ yOffset: r.yOffset,
2030
+ individualHeight: r.individualHeight,
2031
+ x: N,
2032
+ yLabels: r.scaleYLabels || r.scale.ticks.map((X) => ({
2033
+ y: X >= 0 ? r.zero - r.individualHeight * (X / r.max) : r.zero + r.individualHeight * Math.abs(X) / r.max,
2034
+ value: X
2035
+ }))
2036
+ };
2037
+ });
2038
+ }), Ha = x(() => {
2039
+ const l = t.value.line.interLine || {}, s = l.pairs || [], e = l.colors || [];
2040
+ if (!s.length) return [];
2041
+ const u = [];
2042
+ return s.forEach((a, r) => {
2043
+ const [o, N] = Array.isArray(a) ? a : [a.a, a.b];
2044
+ if (!o || !N) return;
2045
+ const E = Ve.value.find((z) => z.name === o), X = Ve.value.find((z) => z.name === N);
2046
+ if (!E || !X || E.type !== "line" || X.type !== "line") return;
2047
+ const A = e?.[r]?.[0] ?? E.color, R = e?.[r]?.[1] ?? X.color;
2048
+ Qo({
2049
+ lineA: E.plots,
2050
+ lineB: X.plots,
2051
+ smoothA: !!E.smooth,
2052
+ smoothB: !!X.smooth,
2053
+ colorLineA: A,
2054
+ colorLineB: R,
2055
+ sampleStepPx: 2,
2056
+ cutNullValues: t.value.line.cutNullValues
2057
+ }).forEach((z, Y) => {
2058
+ u.push({ ...z, key: `inter_${o}_${N}_${r}_${Y}` });
2059
+ });
2060
+ }), u;
2061
+ }), Da = x(() => ({
2062
+ datapoint: Mt.value,
2063
+ seriesIndex: C.value,
2064
+ series: ze.value,
2065
+ bars: Lt.value,
2066
+ lines: Ve.value,
2067
+ plots: vt.value,
2068
+ config: t.value
2069
+ })), bl = x(() => {
2070
+ const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = vn({
2071
+ useUTC: l.useUTC,
2072
+ locale: dn[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
2073
+ januaryAsYear: l.januaryAsYear
2074
+ });
2075
+ return (e, u) => {
2076
+ const r = t.value.chart.grid.labels.xAxisLabels.values?.[e];
2077
+ return r == null ? "" : s.formatDate(new Date(r), u);
2078
+ };
2079
+ }), ga = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
2080
+ text: bl.value(e, t.value.chart.zoom.timeFormat),
2081
+ absoluteIndex: e
2082
+ }))), Ql = p(!1), Wa = x(() => {
2083
+ let l = "", s = "";
2084
+ if (t.value.chart.zoom.preview.enable)
2085
+ return { left: l, right: s };
2086
+ Ql.value = !1;
2087
+ const e = t.value.chart.zoom.customFormat;
2088
+ if (na(e))
2089
+ try {
2090
+ const u = e({
2091
+ absoluteIndex: y.value.start,
2092
+ seriesIndex: y.value.start,
2093
+ datapoint: Mt.value
2094
+ }), a = e({
2095
+ absoluteIndex: y.value.end - 1,
2096
+ seriesIndex: y.value.end - 1,
2097
+ datapoint: Mt.value
2098
+ });
2099
+ typeof u == "string" && typeof a == "string" && (l = u, s = a, Ql.value = !0);
2100
+ } catch {
2101
+ console.warn("Custom format cannot be applied on zoom labels."), Ql.value = !1;
2102
+ }
2103
+ if (!Ql.value) {
2104
+ l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ga.value[y.value.start]?.text || "" : ae.value[0]?.text || "";
2105
+ const u = Math.max(y.value.start, y.value.end - 1);
2106
+ s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ga.value[u]?.text || "" : ae.value.at(-1)?.text || "";
2107
+ }
2108
+ return { left: l, right: s };
2109
+ }), Io = x(() => {
2110
+ let l = "", s = Mt.value.map((a) => a.value).filter((a) => ta(a) && a !== null).reduce((a, r) => Math.abs(a) + Math.abs(r), 0);
2111
+ const e = ae.value[C.value], u = t.value.chart.tooltip.customFormat;
2112
+ if (na(u) && jo(() => u({
2113
+ absoluteIndex: C.value + y.value.start,
2114
+ seriesIndex: C.value,
2115
+ datapoint: Mt.value,
2116
+ series: ze.value,
2117
+ bars: Lt.value,
2118
+ lines: Ve.value,
2119
+ plots: vt.value,
2120
+ config: t.value
2121
+ })))
2122
+ return u({
2123
+ absoluteIndex: C.value + y.value.start,
2124
+ seriesIndex: C.value,
2125
+ datapoint: Mt.value,
2126
+ series: ze.value,
2127
+ bars: Lt.value,
2128
+ lines: Ve.value,
2129
+ plots: vt.value,
2130
+ config: t.value
2131
+ });
2132
+ if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
2133
+ const a = bl.value(C.value + y.value.start, t.value.chart.tooltip.timeFormat);
2134
+ l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
2135
+ }
2136
+ return Mt.value.forEach((a) => {
2137
+ if (ta(a.value)) {
2138
+ let r = "", o = "";
2139
+ switch (Qe.value[a.type]) {
2140
+ case "bar":
2141
+ r = `<svg viewBox="0 0 40 40" height="14" width="14">${Ht.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Ht.pattern ? `url(#pattern_${U.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
2142
+ break;
2143
+ case "line":
2144
+ !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${pt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${pt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${pt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${pt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${pt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${mo({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
2145
+ break;
2146
+ case "plot":
2147
+ if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
2148
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
2149
+ break;
2150
+ }
2151
+ if (a.shape === "star") {
2152
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${mo({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
2153
+ break;
2154
+ }
2155
+ if (a.shape === "triangle") {
2156
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${pt({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
2157
+ break;
2158
+ }
2159
+ if (a.shape === "square") {
2160
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${pt({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
2161
+ break;
2162
+ }
2163
+ if (a.shape === "diamond") {
2164
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${pt({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
2165
+ break;
2166
+ }
2167
+ if (a.shape === "pentagon") {
2168
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${pt({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
2169
+ break;
2170
+ }
2171
+ if (a.shape === "hexagon") {
2172
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${pt({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
2173
+ break;
2174
+ }
2175
+ }
2176
+ l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? Le(
2177
+ a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
2178
+ a.value,
2179
+ at({
2180
+ p: a.prefix,
2181
+ v: a.value,
2182
+ s: a.suffix,
2183
+ r: t.value.chart.tooltip.roundingValue
2184
+ }),
2185
+ { datapoint: a }
2186
+ ) : ""}</b> ${t.value.chart.tooltip.showPercentage ? `(${at({
2187
+ v: G(Math.abs(a.value) / s * 100),
2188
+ s: "%",
2189
+ r: t.value.chart.tooltip.roundingPercentage
2190
+ })})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(y.value.start, y.value.end)[C.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(y.value.start, y.value.end)[C.value]}</div>`);
2191
+ }
2192
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
2193
+ }), Xa = x(() => {
2194
+ if (Ye.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
2195
+ const l = ge.value.map((e) => ({
2196
+ label: e.name,
2197
+ color: e.color,
2198
+ type: e.type
2199
+ })), s = [];
2200
+ return ae.value.forEach((e, u) => {
2201
+ const a = t.value.table.useDefaultTimeFormat ? [e.text] : [bl.value(u + y.value.start, t.value.table.timeFormat)];
2202
+ ge.value.forEach((r) => {
2203
+ a.push(Ge(r.absoluteValues[u]) ? Number(r.absoluteValues[u].toFixed(t.value.table.rounding)) : "");
2204
+ }), s.push(a);
2205
+ }), { head: l, body: s };
2206
+ }), jl = x(() => {
2207
+ const l = t.value.table.showSum;
2208
+ let s = [""].concat(ge.value.map((r) => r.name));
2209
+ l && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
2210
+ let e = [];
2211
+ for (let r = 0; r < I.value; r += 1) {
2212
+ const o = ge.value.map((N) => N.absoluteValues[r] ?? 0).reduce((N, E) => N + E, 0);
2213
+ e.push(
2214
+ [
2215
+ t.value.table.useDefaultTimeFormat ? ae.value[r].text ?? "-" : bl.value(r + y.value.start, t.value.table.timeFormat)
2216
+ ].concat(ge.value.map(
2217
+ (N) => Le(
2218
+ N.type === "line" ? t.value.line.labels.formatter : N.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
2219
+ N.absoluteValues[r] ?? 0,
2220
+ at({
2221
+ p: N.prefix || t.value.chart.labels.prefix,
2222
+ v: N.absoluteValues[r] ?? 0,
2223
+ s: N.suffix || t.value.chart.labels.suffix,
2224
+ r: t.value.table.rounding
2225
+ })
2226
+ )
2227
+ )).concat(l ? (o ?? 0).toFixed(t.value.table.rounding) : [])
2228
+ );
2229
+ }
2230
+ const u = {
2231
+ th: {
2232
+ backgroundColor: t.value.table.th.backgroundColor,
2233
+ color: t.value.table.th.color,
2234
+ outline: t.value.table.th.outline
2235
+ },
2236
+ td: {
2237
+ backgroundColor: t.value.table.td.backgroundColor,
2238
+ color: t.value.table.td.color,
2239
+ outline: t.value.table.td.outline
2240
+ },
2241
+ breakpoint: t.value.table.responsiveBreakpoint
2242
+ }, a = [t.value.table.columnNames.period].concat(ge.value.map((r) => r.name)).concat(t.value.table.columnNames.total);
2243
+ return { head: s, body: e, config: u, colNames: a };
2244
+ });
2245
+ function xa(l = null) {
2246
+ const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...Xa.value.head.map((o) => o.label)], u = Xa.value.body, a = s.concat([e]).concat(u), r = on(a);
2247
+ l ? l(r) : nn({ csvContent: r, title: t.value.chart.title.text || "vue-ui-xy" });
2248
+ }
2249
+ function Ya(l, s = null) {
2250
+ Ll.value = l;
2251
+ const e = ge.value.map((u) => ({
2252
+ name: u.name,
2253
+ value: [null, void 0, NaN].includes(u.absoluteValues[s]) ? null : u.absoluteValues[s],
2254
+ color: u.color,
2255
+ type: u.type
2256
+ }));
2257
+ l ? (C.value = s, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: s + y.value.start })) : (C.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: s + y.value.start }));
2258
+ }
2259
+ function Ga() {
2260
+ k.value.showTable = !k.value.showTable;
2261
+ }
2262
+ function Ua() {
2263
+ k.value.dataLabels.show = !k.value.dataLabels.show;
2264
+ }
2265
+ function qa() {
2266
+ k.value.showTooltip = !k.value.showTooltip;
2267
+ }
2268
+ function Za(l) {
2269
+ te.value = l, Cl.value += 1;
2270
+ }
2271
+ function Ka() {
2272
+ if (!t.value.responsiveProportionalSizing) {
2273
+ _.value.dataLabels = t.value.chart.grid.labels.fontSize, _.value.yAxis = t.value.chart.grid.labels.axis.fontSize, _.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, _.value.plotLabels = t.value.chart.labels.fontSize, Re.value.plot = t.value.plot.radius, Re.value.line = t.value.line.radius;
2274
+ return;
2275
+ }
2276
+ _.value.dataLabels = yl({
2277
+ relator: re.value,
2278
+ adjuster: 400,
2279
+ source: t.value.chart.grid.labels.fontSize,
2280
+ threshold: 10,
2281
+ fallback: 10
2282
+ }), _.value.yAxis = yl({
2283
+ relator: ce.value,
2284
+ adjuster: 1e3,
2285
+ source: t.value.chart.grid.labels.axis.fontSize,
2286
+ threshold: 10,
2287
+ fallback: 10
2288
+ }), _.value.xAxis = yl({
2289
+ relator: ce.value,
2290
+ adjuster: 1e3,
2291
+ source: t.value.chart.grid.labels.xAxisLabels.fontSize,
2292
+ threshold: 10,
2293
+ fallback: 10
2294
+ }), _.value.plotLabels = yl({
2295
+ relator: ce.value,
2296
+ adjuster: 800,
2297
+ source: t.value.chart.labels.fontSize,
2298
+ threshold: 10,
2299
+ fallback: 10
2300
+ }), Re.value.plot = yl({
2301
+ relator: ce.value,
2302
+ adjuster: 800,
2303
+ source: t.value.plot.radius,
2304
+ threshold: 1,
2305
+ fallback: 1
2306
+ }), Re.value.line = yl({
2307
+ relator: ce.value,
2308
+ adjuster: 800,
2309
+ source: t.value.line.radius,
2310
+ threshold: 1,
2311
+ fallback: 1
2312
+ });
2313
+ }
2314
+ function ba() {
2315
+ fo(m.dataset) ? (ya({
2316
+ componentName: "VueUiXy",
2317
+ type: "dataset",
2318
+ debug: je.value
2319
+ }), vl.value = !0) : m.dataset.forEach((s, e) => {
2320
+ [null, void 0].includes(s.name) && (ya({
2321
+ componentName: "VueUiXy",
2322
+ type: "datasetSerieAttribute",
2323
+ property: "name (string)",
2324
+ index: e,
2325
+ debug: je.value
2326
+ }), vl.value = !0);
2327
+ }), je.value && m.dataset.forEach((s) => {
2328
+ s.series.forEach((e, u) => {
2329
+ ta(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
2330
+ -----> The serie '${s.name}' contains the value '${e}' at index ${u}.
2331
+ '${e}' was converted to null to allow the chart to display.`);
2332
+ });
2333
+ }), fo(m.dataset) || (vl.value = t.value.loading), Dl.value = t.value.chart.userOptions.showOnChartHover, ul.value = t.value.chart.userOptions.keepStateOnChartLeave, sl.value = !t.value.chart.userOptions.showOnChartHover, Nt();
2334
+ const l = 12;
2335
+ if (t.value.responsive) {
2336
+ const e = Je.value.parentNode;
2337
+ nt.value && (nt.value.unobserve(nl.value), nt.value.disconnect());
2338
+ const { height: u, width: a } = e.getBoundingClientRect();
2339
+ let r = null, o = 0;
2340
+ t.value.chart.title.show && De.value && (r = De.value, o = r.getBoundingClientRect().height);
2341
+ let N = null, E = 0;
2342
+ t.value.chart.zoom.show && Ae.value > 6 && Pt.value && Pe.value && Pe.value.$el && (N = Pe.value.$el, E = N.getBoundingClientRect().height);
2343
+ let X = null, A = 0;
2344
+ t.value.chart.legend.show && ft.value && (X = ft.value, A = X.getBoundingClientRect().height);
2345
+ let R = 0;
2346
+ yt.value && (R = yt.value.getBoundingClientRect().height);
2347
+ let ee = 0;
2348
+ kt.value && (ee = kt.value.getBoundingClientRect().height), re.value = u - o - A - E - R - ee - l, ce.value = a, il.value = `0 0 ${ce.value < 0 ? 10 : ce.value} ${re.value < 0 ? 10 : re.value}`, Ka();
2349
+ const z = new ResizeObserver((Y) => {
2350
+ for (const O of Y)
2351
+ t.value.chart.title.show && De.value ? o = De.value.getBoundingClientRect().height : o = 0, Pe.value && Pe.value.$el ? E = Pe.value.$el.getBoundingClientRect().height : E = 0, ft.value ? A = ft.value.getBoundingClientRect().height : A = 0, yt.value ? R = yt.value.getBoundingClientRect().height : R = 0, kt.value ? ee = kt.value.getBoundingClientRect().height : ee = 0, requestAnimationFrame(() => {
2352
+ re.value = O.contentRect.height - o - A - E - R - ee - l, ce.value = O.contentBoxSize[0].inlineSize, il.value = `0 0 ${ce.value < 0 ? 10 : ce.value} ${re.value < 0 ? 10 : re.value}`, Ka();
2353
+ });
2354
+ });
2355
+ nt.value = z, nl.value = e, z.observe(e);
2356
+ } else
2357
+ re.value = t.value.chart.height, ce.value = t.value.chart.width, _.value.dataLabels = t.value.chart.grid.labels.fontSize, _.value.yAxis = t.value.chart.grid.labels.axis.fontSize, _.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, _.value.plotLabels = t.value.chart.labels.fontSize, Re.value.plot = t.value.plot.radius, Re.value.line = t.value.line.radius, il.value = `0 0 ${ce.value} ${re.value}`;
2358
+ }
2359
+ function Ja(l) {
2360
+ St.value = {
2361
+ x: l.clientX,
2362
+ y: l.clientY
2363
+ };
2364
+ }
2365
+ kl(() => {
2366
+ ba(), Ul(), document.addEventListener("mousemove", Ja, { passive: !0 }), document.addEventListener("scroll", h, { passive: !0 });
2367
+ }), ll(() => {
2368
+ document.removeEventListener("scroll", h, { passive: !0 }), document.removeEventListener("mousemove", Ja, { passive: !0 }), nt.value && (nt.value.unobserve(nl.value), nt.value.disconnect(), nt.value = null);
2369
+ }), hn({
2370
+ timeLabelsEls: zt,
2371
+ timeLabels: ae,
2372
+ slicer: y,
2373
+ configRef: t,
2374
+ rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
2375
+ autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
2376
+ isAutoSize: da,
2377
+ height: re,
2378
+ width: ce,
2379
+ rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2380
+ });
2381
+ const ea = p(!1), Qa = p(null), ja = p(200), Po = x(
2382
+ () => C.value ?? H.value ?? 0
2383
+ );
2384
+ function No() {
2385
+ const l = Math.ceil(ja.value || 200);
2386
+ return Math.min(Math.max(l, 1), 200);
2387
+ }
2388
+ function Fo() {
2389
+ const l = No(), s = 200, e = Math.max(1, I.value), u = c.value.width / e, r = c.value.left + Po.value * u + u / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, N = c.value.right - (s + l) / 2, E = Math.max(o, Math.min(r, N));
2390
+ return G(E);
2391
+ }
2392
+ kl(() => {
2393
+ let l = null, s = null;
2394
+ const e = (r) => {
2395
+ cancelAnimationFrame(s), s = requestAnimationFrame(() => {
2396
+ ja.value = Math.min(Math.max(Math.ceil(r || 0), 1), 200);
2397
+ });
2398
+ }, u = new ResizeObserver((r) => {
2399
+ let o = r.find((N) => N.target === l) || r[0];
2400
+ o && e(o.contentRect.width || 200);
2401
+ }), a = oo((r) => {
2402
+ const o = Qa.value;
2403
+ l && l !== o && (u.unobserve(l), l = null), o && o !== l && (al(() => {
2404
+ o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
2405
+ }), u.observe(o), l = o), r(() => {
2406
+ l && (u.unobserve(l), l = null);
2407
+ });
2408
+ });
2409
+ ll(() => {
2410
+ try {
2411
+ l && u.unobserve(l), u.disconnect(), a();
2412
+ } catch {
2413
+ }
2414
+ });
2415
+ });
2416
+ const Ro = x(() => {
2417
+ if ([null, void 0].includes(C.value) && [null, void 0].includes(H.value)) return "";
2418
+ const l = (C.value != null ? C.value : 0) || (H.value != null ? H.value : 0), s = t.value.chart.timeTag.customFormat;
2419
+ if (ea.value = !1, na(s))
2420
+ try {
2421
+ const e = s({
2422
+ absoluteIndex: l + y.value.start,
2423
+ seriesIndex: l,
2424
+ datapoint: Mt.value,
2425
+ bars: Lt.value,
2426
+ lines: Ve.value,
2427
+ plots: vt.value,
2428
+ config: t.value
2429
+ });
2430
+ if (typeof e == "string")
2431
+ return ea.value = !0, e;
2432
+ } catch {
2433
+ console.warn("Custom format cannot be applied on timeTag."), ea.value = !1;
2434
+ }
2435
+ if (!ea.value)
2436
+ return [null, void 0].includes(ae.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? bl.value(l + y.value.start, t.value.chart.timeTag.timeFormat) : ae.value[l].text;
2437
+ });
2438
+ mt(() => m.dataset, (l) => {
2439
+ Array.isArray(l) && l.length > 0 && (vl.value = !1), Ae.value = Math.max(...Ce.value.map((s) => et(s.series).length)), y.value = {
2440
+ start: 0,
2441
+ end: Ae.value
2442
+ }, Tt.value += 1, Al.value += 1, Xe();
2443
+ }, { deep: !0 }), mt(() => m.config, (l) => {
2444
+ Se.value || (t.value = Xt()), ba(), It.value += 1, _t.value += 1, Nt(), Xe();
2445
+ }, { deep: !0 });
2446
+ const pa = p(!1);
2447
+ function eo() {
2448
+ const l = Je.value?.parentNode;
2449
+ if (!l) {
2450
+ pa.value = !1;
2451
+ return;
2452
+ }
2453
+ const s = l.getBoundingClientRect();
2454
+ pa.value = s.width > 2 && s.height > 2;
2455
+ }
2456
+ kl(() => {
2457
+ eo();
2458
+ const l = new ResizeObserver(() => {
2459
+ eo(), pa.value && (ba(), Xe(), Ul());
2460
+ });
2461
+ Je.value?.parentNode && l.observe(Je.value.parentNode);
2462
+ }), mt(t, () => {
2463
+ Nt();
2464
+ }, { immediate: !0 });
2465
+ const Ol = x(() => {
2466
+ const l = t.value.table.useDialog && !t.value.showTable, s = k.value.showTable;
2467
+ return {
2468
+ component: l ? Sl : bn,
2469
+ title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
2470
+ props: l ? {
2471
+ backgroundColor: t.value.table.th.backgroundColor,
2472
+ color: t.value.table.th.color,
2473
+ headerColor: t.value.table.th.color,
2474
+ headerBg: t.value.table.th.backgroundColor,
2475
+ isFullscreen: te.value,
2476
+ fullscreenParent: Je.value,
2477
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
2478
+ } : {
2479
+ hideDetails: !0,
2480
+ config: {
2481
+ open: s,
2482
+ maxHeight: 1e4,
2483
+ body: {
2484
+ backgroundColor: t.value.chart.backgroundColor,
2485
+ color: t.value.chart.color
2486
+ },
2487
+ head: {
2488
+ backgroundColor: t.value.chart.backgroundColor,
2489
+ color: t.value.chart.color
2490
+ }
2491
+ }
2492
+ }
2493
+ };
2494
+ });
2495
+ mt(() => k.value.showTable, (l) => {
2496
+ t.value.showTable || (l && t.value.table.useDialog && We.value ? We.value.open() : We.value && We.value.close && We.value.close());
2497
+ });
2498
+ function to() {
2499
+ k.value.showTable = !1, ue.value && ue.value.setTableIconState(!1);
2500
+ }
2501
+ return sa({
2502
+ getData: $o,
2503
+ getImage: _o,
2504
+ generatePdf: Xl,
2505
+ generateImage: Tl,
2506
+ generateCsv: xa,
2507
+ toggleStack: Ma,
2508
+ toggleTable: Ga,
2509
+ toggleLabels: Ua,
2510
+ toggleTooltip: qa,
2511
+ toggleAnnotator: Oe,
2512
+ toggleFullscreen: Za
2513
+ }), (l, s) => (n(), i("div", {
2514
+ id: `vue-ui-xy_${U.value}`,
2515
+ class: Ke(`vue-ui-xy ${te.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2516
+ ref_key: "chart",
2517
+ ref: Je,
2518
+ style: L(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
2519
+ onMouseenter: s[10] || (s[10] = () => Q(!0)),
2520
+ onMouseleave: s[11] || (s[11] = () => Q(!1))
2521
+ }, [
2522
+ t.value.chart.userOptions.buttons.annotator && _e.value ? (n(), lt(v(Ct), {
2523
+ key: 0,
2524
+ svgRef: _e.value,
2525
+ backgroundColor: t.value.chart.backgroundColor,
2526
+ color: t.value.chart.color,
2527
+ active: $t.value,
2528
+ onClose: Oe
2529
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
2530
+ Lo.value ? (n(), i("div", {
2531
+ key: 1,
2532
+ ref_key: "noTitle",
2533
+ ref: kt,
2534
+ class: "vue-data-ui-no-title-space",
2535
+ style: "height:36px; width: 100%; background:transparent"
2536
+ }, null, 512)) : f("", !0),
2537
+ t.value.chart.title.show ? (n(), i("div", {
2538
+ key: 2,
2539
+ ref_key: "chartTitle",
2540
+ ref: De,
2541
+ class: "vue-ui-xy-title",
2542
+ style: L(`font-family:${t.value.chart.fontFamily}`)
2543
+ }, [
2544
+ (n(), lt(fn, {
2545
+ key: `title_${It.value}`,
2546
+ config: {
2547
+ title: {
2548
+ cy: "xy-div-title",
2549
+ ...t.value.chart.title
2550
+ },
2551
+ subtitle: {
2552
+ cy: "xy-div-subtitle",
2553
+ ...t.value.chart.title.subtitle
2554
+ }
2555
+ }
2556
+ }, null, 8, ["config"]))
2557
+ ], 4)) : f("", !0),
2558
+ w("div", {
2559
+ id: `legend-top-${U.value}`
2560
+ }, null, 8, ri),
2561
+ t.value.chart.userOptions.show && (ul.value || sl.value) ? (n(), lt(v(we), {
2562
+ ref_key: "userOptionsRef",
2563
+ ref: ue,
2564
+ key: `user_options_${Cl.value}`,
2565
+ backgroundColor: t.value.chart.backgroundColor,
2566
+ color: t.value.chart.color,
2567
+ isPrinting: v(dl),
2568
+ isImaging: v(Wl),
2569
+ uid: U.value,
2570
+ hasTooltip: t.value.chart.userOptions.buttons.tooltip && t.value.chart.tooltip.show,
2571
+ hasPdf: t.value.chart.userOptions.buttons.pdf,
2572
+ hasXls: t.value.chart.userOptions.buttons.csv,
2573
+ hasImg: t.value.chart.userOptions.buttons.img,
2574
+ hasLabel: t.value.chart.userOptions.buttons.labels,
2575
+ hasTable: t.value.chart.userOptions.buttons.table,
2576
+ hasStack: S.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
2577
+ hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
2578
+ isStacked: k.value.isStacked,
2579
+ isFullscreen: te.value,
2580
+ chartElement: l.$refs.chart,
2581
+ position: t.value.chart.userOptions.position,
2582
+ isTooltip: k.value.showTooltip,
2583
+ titles: { ...t.value.chart.userOptions.buttonTitles },
2584
+ hasAnnotator: t.value.chart.userOptions.buttons.annotator,
2585
+ isAnnotation: $t.value,
2586
+ callbacks: t.value.chart.userOptions.callbacks,
2587
+ tableDialog: t.value.table.useDialog,
2588
+ printScale: t.value.chart.userOptions.print.scale,
2589
+ onToggleFullscreen: Za,
2590
+ onGeneratePdf: v(Xl),
2591
+ onGenerateCsv: xa,
2592
+ onGenerateImage: v(Tl),
2593
+ onToggleTable: Ga,
2594
+ onToggleLabels: Ua,
2595
+ onToggleStack: Ma,
2596
+ onToggleTooltip: qa,
2597
+ onToggleAnnotator: Oe,
2598
+ style: L({
2599
+ visibility: ul.value ? sl.value ? "visible" : "hidden" : "visible"
2600
+ })
2601
+ }, no({ _: 2 }, [
2602
+ l.$slots.menuIcon ? {
2603
+ name: "menuIcon",
2604
+ fn: ke(({ isOpen: e, color: u }) => [
2605
+ j(l.$slots, "menuIcon", Vt(Bt({ isOpen: e, color: u })), void 0, !0)
2606
+ ]),
2607
+ key: "0"
2608
+ } : void 0,
2609
+ l.$slots.optionTooltip ? {
2610
+ name: "optionTooltip",
2611
+ fn: ke(() => [
2612
+ j(l.$slots, "optionTooltip", {}, void 0, !0)
2613
+ ]),
2614
+ key: "1"
2615
+ } : void 0,
2616
+ l.$slots.optionPdf ? {
2617
+ name: "optionPdf",
2618
+ fn: ke(() => [
2619
+ j(l.$slots, "optionPdf", {}, void 0, !0)
2620
+ ]),
2621
+ key: "2"
2622
+ } : void 0,
2623
+ l.$slots.optionCsv ? {
2624
+ name: "optionCsv",
2625
+ fn: ke(() => [
2626
+ j(l.$slots, "optionCsv", {}, void 0, !0)
2627
+ ]),
2628
+ key: "3"
2629
+ } : void 0,
2630
+ l.$slots.optionImg ? {
2631
+ name: "optionImg",
2632
+ fn: ke(() => [
2633
+ j(l.$slots, "optionImg", {}, void 0, !0)
2634
+ ]),
2635
+ key: "4"
2636
+ } : void 0,
2637
+ l.$slots.optionTable ? {
2638
+ name: "optionTable",
2639
+ fn: ke(() => [
2640
+ j(l.$slots, "optionTable", {}, void 0, !0)
2641
+ ]),
2642
+ key: "5"
2643
+ } : void 0,
2644
+ l.$slots.optionLabels ? {
2645
+ name: "optionLabels",
2646
+ fn: ke(() => [
2647
+ j(l.$slots, "optionLabels", {}, void 0, !0)
2648
+ ]),
2649
+ key: "6"
2650
+ } : void 0,
2651
+ l.$slots.optionStack ? {
2652
+ name: "optionStack",
2653
+ fn: ke(() => [
2654
+ j(l.$slots, "optionStack", {}, void 0, !0)
2655
+ ]),
2656
+ key: "7"
2657
+ } : void 0,
2658
+ l.$slots.optionFullscreen ? {
2659
+ name: "optionFullscreen",
2660
+ fn: ke(({ toggleFullscreen: e, isFullscreen: u }) => [
2661
+ j(l.$slots, "optionFullscreen", Vt(Bt({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
2662
+ ]),
2663
+ key: "8"
2664
+ } : void 0,
2665
+ l.$slots.optionAnnotator ? {
2666
+ name: "optionAnnotator",
2667
+ fn: ke(({ toggleAnnotator: e, isAnnotator: u }) => [
2668
+ j(l.$slots, "optionAnnotator", Vt(Bt({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
2669
+ ]),
2670
+ key: "9"
2671
+ } : void 0
2672
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
2673
+ (n(), i("svg", {
2674
+ ref_key: "svgRef",
2675
+ ref: _e,
2676
+ xmlns: "http://www.w3.org/2000/svg",
2677
+ class: Ke([{ "vue-data-ui-fullscreen--on": te.value, "vue-data-ui-fulscreen--off": !te.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
2678
+ width: "100%",
2679
+ viewBox: il.value,
2680
+ style: L({
2681
+ background: "transparent",
2682
+ color: t.value.chart.color,
2683
+ fontFamily: t.value.chart.fontFamily
2684
+ }),
2685
+ "aria-label": Mo.value,
2686
+ role: "img",
2687
+ "aria-live": "polite",
2688
+ preserveAspectRatio: "xMidYMid",
2689
+ onMousemove: ko,
2690
+ onMouseleave: fa,
2691
+ onClick: wo
2692
+ }, [
2693
+ w("g", {
2694
+ ref_key: "G",
2695
+ ref: $l,
2696
+ class: "vue-data-ui-g"
2697
+ }, [
2698
+ tl(v(ol)),
2699
+ l.$slots["chart-background"] ? (n(), i("foreignObject", {
2700
+ key: 0,
2701
+ x: c.value.left + oe.value < 0 ? 0 : c.value.left + oe.value,
2702
+ y: c.value.top,
2703
+ width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value),
2704
+ height: c.value.height < 0 ? 0 : c.value.height,
2705
+ style: {
2706
+ pointerEvents: "none"
2707
+ }
2708
+ }, [
2709
+ j(l.$slots, "chart-background", {}, void 0, !0)
2710
+ ], 8, vi)) : f("", !0),
2711
+ I.value > 0 ? (n(), i("g", di, [
2712
+ w("g", hi, [
2713
+ t.value.chart.grid.labels.xAxis.showBaseline ? (n(), i("line", {
2714
+ key: 0,
2715
+ stroke: t.value.chart.grid.stroke,
2716
+ "stroke-width": "1",
2717
+ x1: c.value.left + oe.value,
2718
+ x2: c.value.right - oe.value,
2719
+ y1: v(J)(c.value.bottom),
2720
+ y2: v(J)(c.value.bottom),
2721
+ "stroke-linecap": "round",
2722
+ style: { animation: "none !important" }
2723
+ }, null, 8, mi)) : f("", !0),
2724
+ k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), i(b, { key: 2 }, M(Rl.value, (e) => (n(), i("g", null, [
2725
+ e.id === $.value && e.yLabels.length ? (n(!0), i(b, { key: 0 }, M(e.yLabels, (u) => (n(), i("line", {
2726
+ x1: c.value.left + oe.value,
2727
+ x2: c.value.right - oe.value,
2728
+ y1: v(J)(u.y),
2729
+ y2: v(J)(u.y),
2730
+ stroke: e.color,
2731
+ "stroke-width": 0.5,
2732
+ "stroke-linecap": "round",
2733
+ style: { animation: "none !important" }
2734
+ }, null, 8, bi))), 256)) : e.yLabels.length ? (n(!0), i(b, { key: 1 }, M(e.yLabels, (u) => (n(), i("line", {
2735
+ x1: c.value.left + oe.value,
2736
+ x2: c.value.right - oe.value,
2737
+ y1: v(J)(u.y),
2738
+ y2: v(J)(u.y),
2739
+ stroke: t.value.chart.grid.stroke,
2740
+ "stroke-width": 0.5,
2741
+ "stroke-linecap": "round",
2742
+ style: { animation: "none !important" }
2743
+ }, null, 8, pi))), 256)) : f("", !0)
2744
+ ]))), 256)) : f("", !0) : (n(), i(b, { key: 1 }, [
2745
+ t.value.chart.grid.labels.yAxis.showBaseline ? (n(), i("line", {
2746
+ key: 0,
2747
+ stroke: t.value.chart.grid.stroke,
2748
+ "stroke-width": "1",
2749
+ x1: c.value.left + oe.value,
2750
+ x2: c.value.left + oe.value,
2751
+ y1: v(J)(c.value.top),
2752
+ y2: v(J)(c.value.bottom),
2753
+ "stroke-linecap": "round",
2754
+ style: { animation: "none !important" }
2755
+ }, null, 8, fi)) : f("", !0),
2756
+ t.value.chart.grid.showHorizontalLines ? (n(), i("g", gi, [
2757
+ (n(!0), i(b, null, M(Va.value, (e) => (n(), i("line", {
2758
+ x1: c.value.left + oe.value,
2759
+ x2: c.value.right,
2760
+ y1: v(J)(e.y),
2761
+ y2: v(J)(e.y),
2762
+ stroke: t.value.chart.grid.stroke,
2763
+ "stroke-width": 0.5,
2764
+ "stroke-linecap": "round",
2765
+ style: { animation: "none !important" }
2766
+ }, null, 8, xi))), 256))
2767
+ ])) : f("", !0)
2768
+ ], 64)),
2769
+ t.value.chart.grid.showVerticalLines ? (n(), i("g", yi, [
2770
+ w("path", {
2771
+ d: fl.value,
2772
+ "stroke-width": 0.5,
2773
+ stroke: t.value.chart.grid.stroke,
2774
+ "stroke-linecap": "round",
2775
+ style: { animation: "none !important" }
2776
+ }, null, 8, ki)
2777
+ ])) : f("", !0),
2778
+ t.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", wi, [
2779
+ w("path", {
2780
+ d: xe.value,
2781
+ stroke: t.value.chart.grid.stroke,
2782
+ "stroke-width": 1,
2783
+ "stroke-linecap": "round",
2784
+ style: { animation: "none !important" }
2785
+ }, null, 8, Si)
2786
+ ])) : f("", !0)
2787
+ ]),
2788
+ (n(!0), i(b, null, M(Lt.value, (e, u) => (n(), i("defs", {
2789
+ key: `def_rect_${u}`
2790
+ }, [
2791
+ l.$slots["bar-gradient"] ? j(l.$slots, "bar-gradient", Qt({
2792
+ key: 0,
2793
+ ref_for: !0
2794
+ }, { series: e, positiveId: `rectGradient_pos_${u}_${U.value}`, negativeId: `rectGradient_neg_${u}_${U.value}` }), void 0, !0) : (n(), i(b, { key: 1 }, [
2795
+ w("linearGradient", {
2796
+ id: `rectGradient_pos_${u}_${U.value}`,
2797
+ x2: "0%",
2798
+ y2: "100%"
2799
+ }, [
2800
+ w("stop", {
2801
+ offset: "0%",
2802
+ "stop-color": e.color
2803
+ }, null, 8, _i),
2804
+ w("stop", {
2805
+ offset: "62%",
2806
+ "stop-color": `${v(el)(e.color, 0.02)}`
2807
+ }, null, 8, Mi),
2808
+ w("stop", {
2809
+ offset: "100%",
2810
+ "stop-color": `${v(el)(e.color, 0.05)}`
2811
+ }, null, 8, Li)
2812
+ ], 8, $i),
2813
+ w("linearGradient", {
2814
+ id: `rectGradient_neg_${u}_${U.value}`,
2815
+ x2: "0%",
2816
+ y2: "100%"
2817
+ }, [
2818
+ w("stop", {
2819
+ offset: "0%",
2820
+ "stop-color": `${v(el)(e.color, 0.05)}`
2821
+ }, null, 8, Ai),
2822
+ w("stop", {
2823
+ offset: "38%",
2824
+ "stop-color": `${v(el)(e.color, 0.02)}`
2825
+ }, null, 8, zi),
2826
+ w("stop", {
2827
+ offset: "100%",
2828
+ "stop-color": e.color
2829
+ }, null, 8, Ti)
2830
+ ], 8, Ci)
2831
+ ], 64))
2832
+ ]))), 128)),
2833
+ (n(!0), i(b, null, M(vt.value, (e, u) => (n(), i("defs", {
2834
+ key: `def_plot_${u}`
2835
+ }, [
2836
+ w("radialGradient", {
2837
+ id: `plotGradient_${u}_${U.value}`,
2838
+ cx: "50%",
2839
+ cy: "50%",
2840
+ r: "50%",
2841
+ fx: "50%",
2842
+ fy: "50%"
2843
+ }, [
2844
+ w("stop", {
2845
+ offset: "0%",
2846
+ "stop-color": `${v(el)(e.color, 0.05)}`
2847
+ }, null, 8, Pi),
2848
+ w("stop", {
2849
+ offset: "100%",
2850
+ "stop-color": e.color
2851
+ }, null, 8, Ni)
2852
+ ], 8, Ii)
2853
+ ]))), 128)),
2854
+ (n(!0), i(b, null, M(Ve.value, (e, u) => (n(), i("defs", {
2855
+ key: `def_line_${e.id}`
2856
+ }, [
2857
+ w("radialGradient", {
2858
+ id: `lineGradient_${u}_${U.value}`,
2859
+ cx: "50%",
2860
+ cy: "50%",
2861
+ r: "50%",
2862
+ fx: "50%",
2863
+ fy: "50%"
2864
+ }, [
2865
+ w("stop", {
2866
+ offset: "0%",
2867
+ "stop-color": `${v(el)(e.color, 0.05)}`
2868
+ }, null, 8, Ri),
2869
+ w("stop", {
2870
+ offset: "100%",
2871
+ "stop-color": e.color
2872
+ }, null, 8, Oi)
2873
+ ], 8, Fi),
2874
+ l.$slots["area-gradient"] ? j(l.$slots, "area-gradient", Qt({
2875
+ key: 0,
2876
+ ref_for: !0
2877
+ }, { series: e, id: `areaGradient_${u}_${U.value}` }), void 0, !0) : (n(), i("linearGradient", {
2878
+ key: 1,
2879
+ id: `areaGradient_${u}_${U.value}`,
2880
+ x1: "0%",
2881
+ x2: "100%",
2882
+ y1: "0%",
2883
+ y2: "0%"
2884
+ }, [
2885
+ w("stop", {
2886
+ offset: "0%",
2887
+ "stop-color": `${v(dt)(v(el)(e.color, 0.03), t.value.line.area.opacity)}`
2888
+ }, null, 8, Bi),
2889
+ w("stop", {
2890
+ offset: "100%",
2891
+ "stop-color": `${v(dt)(e.color, t.value.line.area.opacity)}`
2892
+ }, null, 8, Ei)
2893
+ ], 8, Vi))
2894
+ ]))), 128)),
2895
+ (n(!0), i(b, null, M(Co.value, (e) => (n(), i("g", null, [
2896
+ e.show ? (n(), i(b, { key: 0 }, [
2897
+ (n(!0), i(b, null, M(e.span, (u, a) => (n(), i("g", null, [
2898
+ w("rect", {
2899
+ style: L({
2900
+ transition: "none",
2901
+ opacity: e.from + a >= y.value.start && e.from + a <= y.value.end - 1 ? 1 : 0
2902
+ }),
2903
+ x: c.value.left + c.value.width / I.value * (e.from + a - y.value.start),
2904
+ y: c.value.top,
2905
+ height: c.value.height < 0 ? 10 : c.value.height,
2906
+ width: c.value.width / I.value < 0 ? 1e-5 : c.value.width / I.value,
2907
+ fill: v(dt)(e.color, e.opacity)
2908
+ }, null, 12, Hi)
2909
+ ]))), 256)),
2910
+ (n(!0), i(b, null, M(e.span, (u, a) => (n(), i("g", null, [
2911
+ e.caption.text && a === 0 ? (n(), i("foreignObject", {
2912
+ key: 0,
2913
+ x: c.value.left + c.value.width / I.value * (e.from + a - y.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / I.value * e.span / 2),
2914
+ y: c.value.top + e.caption.offsetY,
2915
+ style: L({
2916
+ overflow: "visible",
2917
+ opacity: e.to >= y.value.start && e.from < y.value.end ? 1 : 0
2918
+ }),
2919
+ height: "1",
2920
+ width: e.caption.width === "auto" ? c.value.width / I.value * e.span : e.caption.width
2921
+ }, [
2922
+ w("div", {
2923
+ style: L(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
2924
+ }, se(e.caption.text), 5)
2925
+ ], 12, Di)) : f("", !0)
2926
+ ]))), 256))
2927
+ ], 64)) : f("", !0)
2928
+ ]))), 256)),
2929
+ B.value ? (n(), i("g", Wi, [
2930
+ (n(!0), i(b, null, M(I.value, (e, u) => (n(), i("g", {
2931
+ key: `tooltip_trap_highlighter_${u}`
2932
+ }, [
2933
+ w("rect", {
2934
+ x: c.value.left + c.value.width / I.value * u,
2935
+ y: c.value.top,
2936
+ height: c.value.height < 0 ? 10 : c.value.height,
2937
+ width: c.value.width / I.value < 0 ? 1e-5 : c.value.width / I.value,
2938
+ fill: [H.value, C.value, it.value].includes(u) ? v(dt)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
2939
+ style: { transition: "none !important", animation: "none !important" }
2940
+ }, null, 8, Xi)
2941
+ ]))), 128))
2942
+ ])) : f("", !0),
2943
+ Lt.value.length ? (n(!0), i(b, { key: 1 }, M(Lt.value, (e, u) => (n(), i("g", {
2944
+ key: `serie_bar_${e.id}`,
2945
+ class: Ke(`serie_bar_${u}`),
2946
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2947
+ }, [
2948
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i("g", {
2949
+ key: `bar_plot_${u}_${r}`
2950
+ }, [
2951
+ Ge(a.value) ? (n(), i("rect", {
2952
+ key: 0,
2953
+ x: ql(a) + Jl.value / 2,
2954
+ y: k.value.useIndividualScale ? Ia(a) : Ta(a),
2955
+ height: k.value.useIndividualScale ? Math.abs(za(a)) : Math.abs(Aa(a)),
2956
+ width: Kl.value - Jl.value,
2957
+ rx: t.value.bar.borderRadius,
2958
+ fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${U.value})` : `url(#rectGradient_neg_${u}_${U.value})` : e.color,
2959
+ stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
2960
+ "stroke-width": t.value.bar.border.strokeWidth,
2961
+ style: L({
2962
+ transition: v(Se) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
2963
+ })
2964
+ }, null, 12, Yi)) : f("", !0),
2965
+ Ge(a.value) && l.$slots.pattern ? (n(), i("rect", {
2966
+ key: 1,
2967
+ x: ql(a) - Jl.value / 2,
2968
+ y: k.value.useIndividualScale ? Ia(a) : Ta(a),
2969
+ height: k.value.useIndividualScale ? Math.abs(za(a)) : Math.abs(Aa(a)),
2970
+ width: Kl.value - Jl.value,
2971
+ rx: t.value.bar.borderRadius,
2972
+ fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
2973
+ stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
2974
+ "stroke-width": t.value.bar.border.strokeWidth,
2975
+ style: L({ transition: v(Se) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
2976
+ }, null, 12, Gi)) : f("", !0),
2977
+ a.comment && t.value.chart.comments.show ? (n(), i("foreignObject", {
2978
+ key: 2,
2979
+ style: { overflow: "visible" },
2980
+ height: "12",
2981
+ width: Kl.value / 2 + t.value.chart.comments.width,
2982
+ x: ql(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
2983
+ y: v(G)(a.y) + t.value.chart.comments.offsetY + 6
2984
+ }, [
2985
+ j(l.$slots, "plot-comment", {
2986
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: r }
2987
+ }, void 0, !0)
2988
+ ], 8, Ui)) : f("", !0)
2989
+ ]))), 128)),
2990
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(ne)(e.plots).trend) ? (n(), i("g", qi, [
2991
+ w("defs", null, [
2992
+ w("marker", {
2993
+ id: `bar_arrow_${u}`,
2994
+ markerWidth: 7,
2995
+ markerHeight: 7,
2996
+ refX: "0",
2997
+ refY: 7 / 2,
2998
+ orient: "auto"
2999
+ }, [
3000
+ w("polygon", {
3001
+ points: `0 0, 7 ${7 / 2}, 0 7`,
3002
+ fill: e.color
3003
+ }, null, 8, Ki)
3004
+ ], 8, Zi)
3005
+ ]),
3006
+ e.plots.length > 1 ? (n(), i("line", {
3007
+ key: 0,
3008
+ x1: v(ne)(e.plots).x1 + xl(),
3009
+ x2: v(ne)(e.plots).x2 + xl(),
3010
+ y1: v(J)(v(ne)(e.plots).y1),
3011
+ y2: v(J)(v(ne)(e.plots).y2),
3012
+ "stroke-width": 1,
3013
+ stroke: e.color,
3014
+ "stroke-dasharray": 2,
3015
+ "marker-end": `url(#bar_arrow_${u})`
3016
+ }, null, 8, Ji)) : f("", !0),
3017
+ e.plots.length > 1 ? (n(), i("text", {
3018
+ key: 1,
3019
+ "text-anchor": "middle",
3020
+ x: v(ne)(e.plots).x2 + xl(),
3021
+ y: v(ne)(e.plots).y2 - 6,
3022
+ "font-size": _.value.plotLabels,
3023
+ fill: e.color
3024
+ }, se(v(at)({
3025
+ v: v(ne)(e.plots).trend * 100,
3026
+ s: "%",
3027
+ r: 2
3028
+ })), 9, Qi)) : f("", !0)
3029
+ ])) : f("", !0)
3030
+ ], 6))), 128)) : f("", !0),
3031
+ !k.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (n(), i("line", {
3032
+ key: 2,
3033
+ stroke: t.value.chart.grid.stroke,
3034
+ "stroke-width": "1",
3035
+ x1: c.value.left + oe.value,
3036
+ x2: c.value.right,
3037
+ y1: v(J)(Te.value),
3038
+ y2: v(J)(Te.value),
3039
+ "stroke-linecap": "round",
3040
+ style: { animation: "none !important" }
3041
+ }, null, 8, ji)) : f("", !0),
3042
+ t.value.chart.highlighter.useLine && (![null, void 0].includes(C.value) || ![null, void 0].includes(H.value)) ? (n(), i("g", eu, [
3043
+ w("line", {
3044
+ x1: c.value.left + c.value.width / I.value * ((C.value !== null ? C.value : 0) || (H.value !== null ? H.value : 0)) + c.value.width / I.value / 2,
3045
+ x2: c.value.left + c.value.width / I.value * ((C.value !== null ? C.value : 0) || (H.value !== null ? H.value : 0)) + c.value.width / I.value / 2,
3046
+ y1: v(J)(c.value.top),
3047
+ y2: v(J)(c.value.bottom),
3048
+ stroke: t.value.chart.highlighter.color,
3049
+ "stroke-width": t.value.chart.highlighter.lineWidth,
3050
+ "stroke-dasharray": t.value.chart.highlighter.lineDasharray,
3051
+ "stroke-linecap": "round",
3052
+ style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
3053
+ }, null, 8, tu)
3054
+ ])) : f("", !0),
3055
+ t.value.chart.grid.frame.show ? (n(), i("rect", {
3056
+ key: 4,
3057
+ style: { pointerEvents: "none", transition: "none", animation: "none !important" },
3058
+ x: c.value.left + oe.value < 0 ? 0 : c.value.left + oe.value,
3059
+ y: c.value.top,
3060
+ width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value),
3061
+ height: c.value.height < 0 ? 0 : c.value.height,
3062
+ fill: "transparent",
3063
+ stroke: t.value.chart.grid.frame.stroke,
3064
+ "stroke-width": t.value.chart.grid.frame.strokeWidth,
3065
+ "stroke-linecap": t.value.chart.grid.frame.strokeLinecap,
3066
+ "stroke-linejoin": t.value.chart.grid.frame.strokeLinejoin,
3067
+ "stroke-dasharray": t.value.chart.grid.frame.strokeDasharray
3068
+ }, null, 8, lu)) : f("", !0),
3069
+ t.value.chart.grid.labels.show ? (n(), i("g", {
3070
+ key: 5,
3071
+ ref_key: "scaleLabels",
3072
+ ref: Ml
3073
+ }, [
3074
+ k.value.useIndividualScale ? (n(), i(b, { key: 0 }, [
3075
+ (n(!0), i(b, null, M(Rl.value, (e) => (n(), i("g", null, [
3076
+ w("line", {
3077
+ x1: e.x + oe.value - c.value.individualOffsetX,
3078
+ x2: e.x + oe.value - c.value.individualOffsetX,
3079
+ y1: k.value.isStacked ? v(J)(c.value.bottom - e.yOffset - e.individualHeight) : v(J)(c.value.top),
3080
+ y2: k.value.isStacked ? v(J)(c.value.bottom - e.yOffset) : v(J)(c.value.bottom),
3081
+ stroke: e.color,
3082
+ "stroke-width": t.value.chart.grid.stroke,
3083
+ "stroke-linecap": "round",
3084
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3085
+ }, null, 12, au)
3086
+ ]))), 256)),
3087
+ (n(!0), i(b, null, M(Rl.value, (e) => (n(), i("g", {
3088
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
3089
+ }, [
3090
+ w("text", {
3091
+ fill: e.color,
3092
+ "font-size": _.value.dataLabels * 0.8,
3093
+ "text-anchor": "middle",
3094
+ transform: `translate(${e.x - _.value.dataLabels * 0.8 / 2 + oe.value}, ${k.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
3095
+ }, se(e.name) + " " + se(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
3096
+ ${e.scaleLabel}` : ""), 9, ou),
3097
+ (n(!0), i(b, null, M(e.yLabels, (u, a) => (n(), i(b, null, [
3098
+ t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
3099
+ key: 0,
3100
+ x1: e.x + 3 + oe.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
3101
+ x2: e.x + oe.value - c.value.individualOffsetX,
3102
+ y1: v(J)(u.y),
3103
+ y2: v(J)(u.y),
3104
+ stroke: e.color,
3105
+ "stroke-width": 1,
3106
+ "stroke-linecap": "round",
3107
+ style: { animation: "none !important" }
3108
+ }, null, 8, nu)) : f("", !0)
3109
+ ], 64))), 256)),
3110
+ (n(!0), i(b, null, M(e.yLabels, (u, a) => (n(), i("text", {
3111
+ x: e.x - 5 + oe.value - c.value.individualOffsetX,
3112
+ y: v(J)(u.y) + _.value.dataLabels / 3,
3113
+ "font-size": _.value.dataLabels,
3114
+ "text-anchor": "end",
3115
+ fill: e.color
3116
+ }, se(v(Le)(
3117
+ t.value.chart.grid.labels.yAxis.formatter,
3118
+ u.value,
3119
+ v(at)({
3120
+ p: u.prefix,
3121
+ v: u.value,
3122
+ s: u.suffix,
3123
+ r: t.value.chart.grid.labels.yAxis.rounding
3124
+ }),
3125
+ { datapoint: u.datapoint, seriesIndex: a }
3126
+ )), 9, iu))), 256))
3127
+ ], 4))), 256))
3128
+ ], 64)) : (n(!0), i(b, { key: 1 }, M(Va.value, (e, u) => (n(), i("g", {
3129
+ key: `yLabel_${u}`
3130
+ }, [
3131
+ Ge(e) && e.value >= $e.value.min && e.value <= $e.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
3132
+ key: 0,
3133
+ x1: c.value.left + oe.value,
3134
+ x2: c.value.left + oe.value - t.value.chart.grid.labels.yAxis.crosshairSize,
3135
+ y1: v(J)(e.y),
3136
+ y2: v(J)(e.y),
3137
+ stroke: t.value.chart.grid.stroke,
3138
+ "stroke-width": "1",
3139
+ "stroke-linecap": "round",
3140
+ style: { animation: "none !important" }
3141
+ }, null, 8, uu)) : f("", !0),
3142
+ e.value >= $e.value.min && e.value <= $e.value.max ? (n(), i("text", {
3143
+ key: 1,
3144
+ x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
3145
+ y: v(G)(e.y + _.value.dataLabels / 3),
3146
+ "font-size": _.value.dataLabels,
3147
+ "text-anchor": "end",
3148
+ fill: t.value.chart.grid.labels.color
3149
+ }, se(Ge(e.value) ? v(Le)(
3150
+ t.value.chart.grid.labels.yAxis.formatter,
3151
+ e.value,
3152
+ v(at)({
3153
+ p: e.prefix,
3154
+ v: e.value,
3155
+ s: e.suffix,
3156
+ r: t.value.chart.grid.labels.yAxis.rounding
3157
+ })
3158
+ ) : ""), 9, su)) : f("", !0)
3159
+ ]))), 128))
3160
+ ], 512)) : f("", !0),
3161
+ (n(!0), i(b, null, M(vt.value, (e, u) => (n(), i("g", {
3162
+ key: `serie_plot_${e.id}`,
3163
+ class: Ke(`serie_plot_${u}`),
3164
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3165
+ }, [
3166
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i("g", {
3167
+ key: `circle_plot_${u}_${r}`
3168
+ }, [
3169
+ a && Ge(a.value) ? (n(), lt(aa, {
3170
+ key: 0,
3171
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
3172
+ color: t.value.plot.useGradient ? `url(#plotGradient_${u}_${U.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
3173
+ plot: { x: v(G)(a.x), y: v(G)(a.y) },
3174
+ radius: C.value !== null && C.value === r || H.value !== null && H.value === r ? (Re.value.plot || 6) * 1.5 : Re.value.plot || 6,
3175
+ stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
3176
+ strokeWidth: t.value.plot.dot.strokeWidth,
3177
+ transition: v(Se) || !t.value.plot.showTransition || C.value !== null && C.value === r || H.value !== null && H.value === r ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
3178
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
3179
+ a.comment && t.value.chart.comments.show ? (n(), i("foreignObject", {
3180
+ key: 1,
3181
+ style: { overflow: "visible" },
3182
+ height: "12",
3183
+ width: t.value.chart.comments.width,
3184
+ x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
3185
+ y: a.y + t.value.chart.comments.offsetY + 6
3186
+ }, [
3187
+ w("div", cu, [
3188
+ j(l.$slots, "plot-comment", {
3189
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: r }
3190
+ }, void 0, !0)
3191
+ ])
3192
+ ], 8, ru)) : f("", !0)
3193
+ ]))), 128)),
3194
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(ne)(e.plots).trend) ? (n(), i("g", vu, [
3195
+ w("defs", null, [
3196
+ w("marker", {
3197
+ id: `plot_arrow_${u}`,
3198
+ markerWidth: 7,
3199
+ markerHeight: 7,
3200
+ refX: "0",
3201
+ refY: 7 / 2,
3202
+ orient: "auto"
3203
+ }, [
3204
+ w("polygon", {
3205
+ points: `0 0, 7 ${7 / 2}, 0 7`,
3206
+ fill: e.color
3207
+ }, null, 8, hu)
3208
+ ], 8, du)
3209
+ ]),
3210
+ e.plots.length > 1 ? (n(), i("line", {
3211
+ key: 0,
3212
+ x1: v(ne)(e.plots).x1,
3213
+ x2: v(ne)(e.plots).x2,
3214
+ y1: v(J)(v(ne)(e.plots).y1),
3215
+ y2: v(J)(v(ne)(e.plots).y2),
3216
+ "stroke-width": 1,
3217
+ stroke: e.color,
3218
+ "stroke-dasharray": 2,
3219
+ "marker-end": `url(#plot_arrow_${u})`
3220
+ }, null, 8, mu)) : f("", !0),
3221
+ e.plots.length > 1 ? (n(), i("text", {
3222
+ key: 1,
3223
+ "text-anchor": "middle",
3224
+ x: v(ne)(e.plots).x2,
3225
+ y: v(ne)(e.plots).y2 - 6,
3226
+ "font-size": _.value.plotLabels,
3227
+ fill: e.color
3228
+ }, se(v(at)({
3229
+ v: v(ne)(e.plots).trend * 100,
3230
+ s: "%",
3231
+ r: 2
3232
+ })), 9, fu)) : f("", !0)
3233
+ ])) : f("", !0)
3234
+ ], 6))), 128)),
3235
+ (n(!0), i(b, null, M(Ve.value, (e, u) => (n(), i("g", {
3236
+ key: `serie_line_${e.id}`,
3237
+ class: Ke(`serie_line_${u}`),
3238
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3239
+ }, [
3240
+ e.smooth && e.plots.length > 1 && e.curve ? (n(), i("path", {
3241
+ key: 0,
3242
+ d: `M${e.curve}`,
3243
+ stroke: t.value.chart.backgroundColor,
3244
+ "stroke-width": t.value.line.strokeWidth + 1,
3245
+ "stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
3246
+ fill: "none",
3247
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3248
+ }, null, 12, gu)) : e.plots.length > 1 && e.straight ? (n(), i("path", {
3249
+ key: 1,
3250
+ d: `M${e.straight}`,
3251
+ stroke: t.value.chart.backgroundColor,
3252
+ "stroke-width": t.value.line.strokeWidth + 1,
3253
+ "stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
3254
+ fill: "none",
3255
+ "stroke-linecap": "round",
3256
+ "stroke-linejoin": "round",
3257
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3258
+ }, null, 12, xu)) : f("", !0)
3259
+ ], 6))), 128)),
3260
+ l.$slots.pattern ? (n(), i("defs", bu, [
3261
+ (n(!0), i(b, null, M(Ye.value, (e, u) => j(l.$slots, "pattern", Qt({
3262
+ key: `serie_pattern_slot_${e.id}`
3263
+ }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${u}` }), void 0, !0)), 128))
3264
+ ])) : f("", !0),
3265
+ Ha.value.length && !k.value.isStacked ? (n(), i("g", pu, [
3266
+ (n(!0), i(b, null, M(Ha.value, (e) => (n(), i("path", {
3267
+ key: e.key,
3268
+ d: e.d,
3269
+ fill: e.color,
3270
+ "fill-opacity": t.value.line.interLine.fillOpacity,
3271
+ stroke: "none",
3272
+ "pointer-events": "none",
3273
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3274
+ }, null, 12, yu))), 128))
3275
+ ])) : f("", !0),
3276
+ (n(!0), i(b, null, M(Ve.value, (e, u) => (n(), i("g", {
3277
+ key: `serie_line_above_${e.id}`,
3278
+ class: Ke(`serie_line_${u}`),
3279
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3280
+ }, [
3281
+ e.useArea && e.plots.length > 1 ? (n(), i("g", ku, [
3282
+ e.smooth ? (n(!0), i(b, { key: 0 }, M(e.curveAreas, (a, r) => (n(), i(b, { key: r }, [
3283
+ a ? (n(), i("path", {
3284
+ key: 0,
3285
+ d: a,
3286
+ fill: t.value.line.area.useGradient ? `url(#areaGradient_${u}_${U.value})` : v(dt)(e.color, t.value.line.area.opacity),
3287
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3288
+ }, null, 12, wu)) : f("", !0),
3289
+ l.$slots.pattern && a ? (n(), i("path", {
3290
+ key: 1,
3291
+ d: a,
3292
+ fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
3293
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3294
+ }, null, 12, Su)) : f("", !0)
3295
+ ], 64))), 128)) : (n(!0), i(b, { key: 1 }, M(e.area.split(";"), (a, r) => (n(), i(b, { key: r }, [
3296
+ a ? (n(), i("path", {
3297
+ key: 0,
3298
+ d: `M${a}Z`,
3299
+ fill: t.value.line.area.useGradient ? `url(#areaGradient_${u}_${U.value})` : v(dt)(e.color, t.value.line.area.opacity),
3300
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3301
+ }, null, 12, $u)) : f("", !0),
3302
+ l.$slots.pattern && a ? (n(), i("path", {
3303
+ key: 1,
3304
+ d: `M${a}Z`,
3305
+ fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
3306
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3307
+ }, null, 12, _u)) : f("", !0)
3308
+ ], 64))), 128))
3309
+ ])) : f("", !0),
3310
+ e.smooth && e.plots.length > 1 && e.curve ? (n(), i("path", {
3311
+ key: 1,
3312
+ d: `M${e.curve}`,
3313
+ stroke: e.color,
3314
+ "stroke-width": t.value.line.strokeWidth,
3315
+ "stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
3316
+ fill: "none",
3317
+ "stroke-linecap": "round",
3318
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3319
+ }, null, 12, Mu)) : e.plots.length > 1 && e.straight ? (n(), i("path", {
3320
+ key: 2,
3321
+ d: `M${e.straight}`,
3322
+ stroke: e.color,
3323
+ "stroke-width": t.value.line.strokeWidth,
3324
+ "stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
3325
+ fill: "none",
3326
+ "stroke-linecap": "round",
3327
+ "stroke-linejoin": "round",
3328
+ style: L({ transition: v(Se) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
3329
+ }, null, 12, Lu)) : f("", !0),
3330
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3331
+ key: `circle_line_${u}_${r}`
3332
+ }, [
3333
+ !Na.value.linePlot && a && Ge(a.value) || Na.value.linePlot && a && Ge(a.value) && (C.value !== null && C.value === r || H.value !== null && H.value === r) || Ea(e.plots, r) ? (n(), lt(aa, {
3334
+ key: 0,
3335
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
3336
+ color: t.value.line.useGradient ? `url(#lineGradient_${u}_${U.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
3337
+ plot: { x: v(G)(a.x), y: v(G)(a.y) },
3338
+ radius: C.value !== null && C.value === r || H.value !== null && H.value === r ? (Re.value.line || 6) * 1.5 : (Ea(e.plots, r), Re.value.line || 6),
3339
+ stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
3340
+ strokeWidth: t.value.line.dot.strokeWidth,
3341
+ transition: v(Se) || !t.value.line.showTransition || C.value !== null && C.value === r || H.value !== null && H.value === r ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
3342
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
3343
+ a.comment && t.value.chart.comments.show ? (n(), i("foreignObject", {
3344
+ key: 1,
3345
+ style: { overflow: "visible" },
3346
+ height: "12",
3347
+ width: t.value.chart.comments.width,
3348
+ x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
3349
+ y: a.y + t.value.chart.comments.offsetY + 6
3350
+ }, [
3351
+ w("div", Au, [
3352
+ j(l.$slots, "plot-comment", {
3353
+ plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: r }
3354
+ }, void 0, !0)
3355
+ ])
3356
+ ], 8, Cu)) : f("", !0)
3357
+ ], 64))), 128)),
3358
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(ne)(e.plots).trend) ? (n(), i("g", zu, [
3359
+ w("defs", null, [
3360
+ w("marker", {
3361
+ id: `line_arrow_${u}`,
3362
+ markerWidth: 7,
3363
+ markerHeight: 7,
3364
+ refX: "0",
3365
+ refY: 7 / 2,
3366
+ orient: "auto"
3367
+ }, [
3368
+ w("polygon", {
3369
+ points: `0 0, 7 ${7 / 2}, 0 7`,
3370
+ fill: e.color
3371
+ }, null, 8, Iu)
3372
+ ], 8, Tu)
3373
+ ]),
3374
+ e.plots.length > 1 ? (n(), i("line", {
3375
+ key: 0,
3376
+ x1: v(ne)(e.plots).x1,
3377
+ x2: v(ne)(e.plots).x2,
3378
+ y1: v(J)(v(ne)(e.plots).y1),
3379
+ y2: v(J)(v(ne)(e.plots).y2),
3380
+ "stroke-width": 1,
3381
+ stroke: e.color,
3382
+ "stroke-dasharray": 2,
3383
+ "marker-end": `url(#line_arrow_${u})`
3384
+ }, null, 8, Pu)) : f("", !0),
3385
+ e.plots.length > 1 ? (n(), i("text", {
3386
+ key: 1,
3387
+ "text-anchor": "middle",
3388
+ x: v(ne)(e.plots).x2,
3389
+ y: v(ne)(e.plots).y2 - 6,
3390
+ "font-size": _.value.plotLabels,
3391
+ fill: e.color
3392
+ }, se(v(at)({
3393
+ v: v(ne)(e.plots).trend * 100,
3394
+ s: "%",
3395
+ r: 2
3396
+ })), 9, Nu)) : f("", !0)
3397
+ ])) : f("", !0)
3398
+ ], 6))), 128)),
3399
+ (t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (n(), i("g", Fu, [
3400
+ (n(!0), i(b, null, M(Lt.value, (e, u) => (n(), i(b, {
3401
+ key: `xLabel_bar_${e.id}`
3402
+ }, [
3403
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3404
+ key: `xLabel_bar_${u}_${r}`
3405
+ }, [
3406
+ a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === r || H.value !== null && H.value === r) && t.value.bar.labels.show ? (n(), i("text", {
3407
+ key: 0,
3408
+ x: k.value.useIndividualScale && k.value.isStacked ? a.x + de.value.line / 2 : ql(a) + xl() / 2 - Zl.value / 2,
3409
+ y: v(G)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
3410
+ "text-anchor": "middle",
3411
+ "font-size": _.value.plotLabels,
3412
+ fill: t.value.bar.labels.color,
3413
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3414
+ }, se(Ge(a.value) ? v(Le)(
3415
+ t.value.bar.labels.formatter,
3416
+ a.value,
3417
+ v(at)({
3418
+ p: e.prefix || t.value.chart.labels.prefix,
3419
+ v: a.value,
3420
+ s: e.suffix || t.value.chart.labels.suffix,
3421
+ r: t.value.bar.labels.rounding
3422
+ }),
3423
+ {
3424
+ datapoint: a,
3425
+ serie: e
3426
+ }
3427
+ ) : ""), 13, Ru)) : f("", !0),
3428
+ a && t.value.bar.serieName.show ? (n(), i("text", {
3429
+ key: 1,
3430
+ x: k.value.useIndividualScale && k.value.isStacked ? a.x + de.value.line / 2 : a.x + xl() * 1.1,
3431
+ y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
3432
+ "text-anchor": "middle",
3433
+ "font-size": _.value.plotLabels,
3434
+ fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
3435
+ "font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
3436
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3437
+ }, se(t.value.bar.serieName.useAbbreviation ? v(en)({
3438
+ source: e.name,
3439
+ length: t.value.bar.serieName.abbreviationSize
3440
+ }) : e.name), 13, Ou)) : f("", !0)
3441
+ ], 64))), 128))
3442
+ ], 64))), 128))
3443
+ ])) : f("", !0),
3444
+ t.value.plot.labels.show && k.value.dataLabels.show ? (n(), i("g", Vu, [
3445
+ (n(!0), i(b, null, M(vt.value, (e, u) => (n(), i(b, {
3446
+ key: `xLabel_plot_${e.id}`
3447
+ }, [
3448
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3449
+ key: `xLabel_plot_${u}_${r}`
3450
+ }, [
3451
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === r || H.value !== null && H.value === r ? (n(), i("text", {
3452
+ key: 0,
3453
+ x: a.x,
3454
+ y: a.y + t.value.plot.labels.offsetY,
3455
+ "text-anchor": "middle",
3456
+ "font-size": _.value.plotLabels,
3457
+ fill: t.value.plot.labels.color,
3458
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3459
+ }, se(Ge(a.value) ? v(Le)(
3460
+ t.value.plot.labels.formatter,
3461
+ a.value,
3462
+ v(at)({
3463
+ p: e.prefix || t.value.chart.labels.prefix,
3464
+ v: a.value,
3465
+ s: e.suffix || t.value.chart.labels.suffix,
3466
+ r: t.value.plot.labels.rounding
3467
+ }),
3468
+ {
3469
+ datapoint: a,
3470
+ serie: e
3471
+ }
3472
+ ) : ""), 13, Bu)) : f("", !0)
3473
+ ], 64))), 128))
3474
+ ], 64))), 128))
3475
+ ])) : (n(), i("g", Eu, [
3476
+ (n(!0), i(b, null, M(vt.value, (e, u) => (n(), i(b, {
3477
+ key: `xLabel_plot_${e.id}`
3478
+ }, [
3479
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3480
+ key: `xLabel_plot_${u}_${r}`
3481
+ }, [
3482
+ t.value.plot.tag.followValue ? (n(), i(b, { key: 1 }, [
3483
+ [H.value, C.value, it.value].includes(r) && e.useTag ? (n(), i("line", {
3484
+ key: 0,
3485
+ class: "vue-ui-xy-tag-plot",
3486
+ x1: c.value.left,
3487
+ x2: c.value.right,
3488
+ y1: a.y,
3489
+ y2: a.y,
3490
+ "stroke-width": 1,
3491
+ "stroke-linecap": "round",
3492
+ "stroke-dasharray": "2",
3493
+ stroke: e.color
3494
+ }, null, 8, Yu)) : f("", !0)
3495
+ ], 64)) : (n(), i(b, { key: 0 }, [
3496
+ a && r === 0 && e.useTag && e.useTag === "start" ? (n(), i("foreignObject", {
3497
+ key: 0,
3498
+ x: a.x,
3499
+ y: a.y - 20,
3500
+ height: 24,
3501
+ width: "150",
3502
+ style: L(`overflow: visible; opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3503
+ }, [
3504
+ w("div", {
3505
+ style: L(`padding: 3px; background:${v(dt)(e.color, 80)};color:${v(ht)(e.color)};width:fit-content;font-size:${_.value.plotLabels}px;border-radius: 2px;`),
3506
+ innerHTML: v(Le)(
3507
+ t.value.plot.tag.formatter,
3508
+ a.value,
3509
+ e.name,
3510
+ {
3511
+ datapoint: a,
3512
+ seriesIndex: r,
3513
+ serieName: e.name
3514
+ }
3515
+ )
3516
+ }, null, 12, Du)
3517
+ ], 12, Hu)) : f("", !0),
3518
+ a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), i("foreignObject", {
3519
+ key: 1,
3520
+ x: a.x - e.name.length * (_.value.plotLabels / 2),
3521
+ y: a.y - 20,
3522
+ height: 24,
3523
+ width: "150",
3524
+ style: L(`overflow: visible; opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3525
+ }, [
3526
+ w("div", {
3527
+ style: L(`padding: 3px; background:${v(dt)(e.color, 80)};color:${v(ht)(e.color)};width:fit-content;font-size:${_.value.plotLabels}px;border-radius: 2px;`),
3528
+ innerHTML: v(Le)(
3529
+ t.value.plot.tag.formatter,
3530
+ a.value,
3531
+ e.name,
3532
+ {
3533
+ datapoint: a,
3534
+ seriesIndex: r,
3535
+ serieName: e.name
3536
+ }
3537
+ )
3538
+ }, null, 12, Xu)
3539
+ ], 12, Wu)) : f("", !0)
3540
+ ], 64))
3541
+ ], 64))), 128))
3542
+ ], 64))), 128))
3543
+ ])),
3544
+ t.value.line.labels.show && k.value.dataLabels.show ? (n(), i("g", Gu, [
3545
+ (n(!0), i(b, null, M(Ve.value, (e, u) => (n(), i(b, {
3546
+ key: `xLabel_line_${e.id}`
3547
+ }, [
3548
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3549
+ key: `xLabel_line_${u}_${r}`
3550
+ }, [
3551
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || C.value !== null && C.value === r || H.value !== null && H.value === r ? (n(), i("text", {
3552
+ key: 0,
3553
+ x: a.x,
3554
+ y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
3555
+ "text-anchor": "middle",
3556
+ "font-size": _.value.plotLabels,
3557
+ fill: t.value.line.labels.color,
3558
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3559
+ }, se(Ge(a.value) ? v(Le)(
3560
+ t.value.line.labels.formatter,
3561
+ a.value,
3562
+ v(at)({
3563
+ p: e.prefix || t.value.chart.labels.prefix,
3564
+ v: a.value,
3565
+ s: e.suffix || t.value.chart.labels.suffix,
3566
+ r: t.value.line.labels.rounding
3567
+ }),
3568
+ {
3569
+ datapoint: a,
3570
+ serie: e
3571
+ }
3572
+ ) : ""), 13, Uu)) : f("", !0)
3573
+ ], 64))), 128))
3574
+ ], 64))), 128))
3575
+ ])) : (n(), i("g", qu, [
3576
+ (n(!0), i(b, null, M(Ve.value, (e, u) => (n(), i(b, {
3577
+ key: `xLabel_line_${e.id}`
3578
+ }, [
3579
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3580
+ key: `xLabel_line_${u}_${r}`
3581
+ }, [
3582
+ t.value.line.tag.followValue ? (n(), i(b, { key: 1 }, [
3583
+ [H.value, C.value, it.value].includes(r) && e.useTag ? (n(), i("line", {
3584
+ key: 0,
3585
+ class: "vue-ui-xy-tag-line",
3586
+ x1: c.value.left,
3587
+ x2: c.value.right,
3588
+ y1: a.y,
3589
+ y2: a.y,
3590
+ "stroke-width": 1,
3591
+ "stroke-linecap": "round",
3592
+ "stroke-dasharray": "2",
3593
+ stroke: e.color
3594
+ }, null, 8, ju)) : f("", !0)
3595
+ ], 64)) : (n(), i(b, { key: 0 }, [
3596
+ a && r === 0 && e.useTag && e.useTag === "start" ? (n(), i("foreignObject", {
3597
+ key: 0,
3598
+ x: a.x,
3599
+ y: a.y - 20,
3600
+ height: 24,
3601
+ width: "150",
3602
+ style: L(`overflow: visible; opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3603
+ }, [
3604
+ w("div", {
3605
+ style: L(`padding: 3px; background:${v(dt)(e.color, 80)};color:${v(ht)(e.color)};width:fit-content;font-size:${_.value.plotLabels}px;border-radius: 2px;`),
3606
+ innerHTML: v(Le)(
3607
+ t.value.line.tag.formatter,
3608
+ a.value,
3609
+ e.name,
3610
+ {
3611
+ datapoint: a,
3612
+ seriesIndex: r,
3613
+ serieName: e.name
3614
+ }
3615
+ )
3616
+ }, null, 12, Ku)
3617
+ ], 12, Zu)) : f("", !0),
3618
+ a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), i("foreignObject", {
3619
+ key: 1,
3620
+ x: a.x,
3621
+ y: a.y - 20,
3622
+ height: 24,
3623
+ width: "150",
3624
+ style: L(`overflow: visible; opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3625
+ }, [
3626
+ w("div", {
3627
+ style: L(`padding: 3px; background:${v(dt)(e.color, 80)};color:${v(ht)(e.color)};width:fit-content;font-size:${_.value.plotLabels}px;border-radius: 2px;`),
3628
+ innerHTML: v(Le)(
3629
+ t.value.line.tag.formatter,
3630
+ a.value,
3631
+ e.name,
3632
+ {
3633
+ datapoint: a,
3634
+ seriesIndex: r,
3635
+ serieName: e.name
3636
+ }
3637
+ )
3638
+ }, null, 12, Qu)
3639
+ ], 12, Ju)) : f("", !0)
3640
+ ], 64))
3641
+ ], 64))), 128))
3642
+ ], 64))), 128))
3643
+ ])),
3644
+ (n(!0), i(b, null, M(Ve.value, (e, u) => (n(), i(b, {
3645
+ key: `xLabel_line_${e.id}`
3646
+ }, [
3647
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3648
+ key: `xLabel_line_${u}_${r}`
3649
+ }, [
3650
+ a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), i("text", {
3651
+ key: 0,
3652
+ x: a.x - _.value.plotLabels,
3653
+ y: a.y,
3654
+ "font-size": _.value.plotLabels,
3655
+ "text-anchor": "end",
3656
+ fill: e.color,
3657
+ innerHTML: v(la)({
3658
+ content: e.name,
3659
+ fontSize: _.value.plotLabels,
3660
+ fill: e.color,
3661
+ x: a.x - _.value.plotLabels,
3662
+ y: a.y,
3663
+ maxWords: 2
3664
+ }),
3665
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3666
+ }, null, 12, es)) : f("", !0),
3667
+ a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), i("text", {
3668
+ key: 1,
3669
+ x: a.x + _.value.plotLabels,
3670
+ y: a.y,
3671
+ "font-size": _.value.plotLabels,
3672
+ "text-anchor": "start",
3673
+ fill: e.color,
3674
+ innerHTML: v(la)({
3675
+ content: e.name,
3676
+ fontSize: _.value.plotLabels,
3677
+ fill: e.color,
3678
+ x: a.x + _.value.plotLabels,
3679
+ y: a.y,
3680
+ maxWords: 2
3681
+ }),
3682
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3683
+ }, null, 12, ts)) : f("", !0)
3684
+ ], 64))), 128))
3685
+ ], 64))), 128)),
3686
+ (n(!0), i(b, null, M(vt.value, (e, u) => (n(), i(b, {
3687
+ key: `xLabel_plot_${e.id}`
3688
+ }, [
3689
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3690
+ key: `xLabel_plot_${u}_${r}`
3691
+ }, [
3692
+ a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), i("text", {
3693
+ key: 0,
3694
+ x: a.x - _.value.plotLabels,
3695
+ y: a.y,
3696
+ "font-size": _.value.plotLabels,
3697
+ "text-anchor": "end",
3698
+ fill: e.color,
3699
+ innerHTML: v(la)({
3700
+ content: e.name,
3701
+ fontSize: _.value.plotLabels,
3702
+ fill: e.color,
3703
+ x: a.x - _.value.plotLabels,
3704
+ y: a.y,
3705
+ maxWords: 2
3706
+ }),
3707
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3708
+ }, null, 12, ls)) : f("", !0),
3709
+ a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), i("text", {
3710
+ key: 1,
3711
+ x: a.x + _.value.plotLabels,
3712
+ y: a.y,
3713
+ "font-size": _.value.plotLabels,
3714
+ "text-anchor": "start",
3715
+ fill: e.color,
3716
+ innerHTML: v(la)({
3717
+ content: e.name,
3718
+ fontSize: _.value.plotLabels,
3719
+ fill: e.color,
3720
+ x: a.x + _.value.plotLabels,
3721
+ y: a.y,
3722
+ maxWords: 2
3723
+ }),
3724
+ style: L(`opacity:${$.value ? $.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3725
+ }, null, 12, as)) : f("", !0)
3726
+ ], 64))), 128))
3727
+ ], 64))), 128)),
3728
+ k.value.useIndividualScale && !k.value.isStacked ? (n(), i(b, { key: 13 }, [
3729
+ w("defs", null, [
3730
+ (n(!0), i(b, null, M(Rl.value, (e, u) => (n(), i("linearGradient", {
3731
+ id: `individual_scale_gradient_${U.value}_${u}`,
3732
+ x1: "0%",
3733
+ x2: "100%",
3734
+ y1: "0%",
3735
+ y2: "0%"
3736
+ }, [
3737
+ w("stop", {
3738
+ offset: "0%",
3739
+ "stop-color": t.value.chart.backgroundColor,
3740
+ "stop-opacity": "0"
3741
+ }, null, 8, ns),
3742
+ w("stop", {
3743
+ offset: "100%",
3744
+ "stop-color": e.color,
3745
+ "stop-opacity": "0.2"
3746
+ }, null, 8, is)
3747
+ ], 8, os))), 256))
3748
+ ]),
3749
+ (n(!0), i(b, null, M(Rl.value, (e, u) => (n(), i("rect", {
3750
+ x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + oe.value - c.value.individualOffsetX,
3751
+ y: c.value.top,
3752
+ width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
3753
+ height: c.value.height < 0 ? 10 : c.value.height,
3754
+ fill: $.value === e.groupId ? `url(#individual_scale_gradient_${U.value}_${u})` : "transparent",
3755
+ onMouseenter: (a) => $.value = e.groupId,
3756
+ onMouseleave: s[0] || (s[0] = (a) => $.value = null)
3757
+ }, null, 40, us))), 256))
3758
+ ], 64)) : f("", !0),
3759
+ w("g", null, [
3760
+ t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (n(), i("text", {
3761
+ key: 0,
3762
+ ref_key: "yAxisLabel",
3763
+ ref: _l,
3764
+ "font-size": _.value.yAxis,
3765
+ fill: t.value.chart.grid.labels.color,
3766
+ transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
3767
+ "text-anchor": "middle",
3768
+ style: { transition: "none" }
3769
+ }, se(t.value.chart.grid.labels.axis.yLabel), 9, ss)) : f("", !0),
3770
+ t.value.chart.grid.labels.axis.xLabel ? (n(), i("text", {
3771
+ key: 1,
3772
+ ref_key: "xAxisLabel",
3773
+ ref: Ne,
3774
+ "text-anchor": "middle",
3775
+ x: ce.value / 2,
3776
+ y: re.value - 3,
3777
+ "font-size": _.value.yAxis,
3778
+ fill: t.value.chart.grid.labels.color
3779
+ }, se(t.value.chart.grid.labels.axis.xLabel), 9, rs)) : f("", !0)
3780
+ ]),
3781
+ t.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", {
3782
+ key: 14,
3783
+ ref_key: "timeLabelsEls",
3784
+ ref: zt
3785
+ }, [
3786
+ l.$slots["time-label"] ? (n(!0), i(b, { key: 0 }, M(Pl.value, (e, u) => j(l.$slots, "time-label", Qt({
3787
+ key: `time_label_${e.id}`,
3788
+ ref_for: !0
3789
+ }, {
3790
+ x: c.value.left + c.value.width / I.value * u + c.value.width / I.value / 2,
3791
+ y: c.value.bottom,
3792
+ fontSize: _.value.xAxis,
3793
+ fill: t.value.chart.grid.labels.xAxisLabels.color,
3794
+ transform: `translate(${c.value.left + c.value.width / I.value * u + c.value.width / I.value / 2}, ${c.value.bottom + _.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3795
+ absoluteIndex: e.absoluteIndex,
3796
+ content: e.text,
3797
+ textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3798
+ show: e && e.text
3799
+ }), void 0, !0)), 128)) : (n(!0), i(b, { key: 1 }, M(Pl.value, (e, u) => (n(), i("g", {
3800
+ key: `time_label_${u}`
3801
+ }, [
3802
+ e && e.text ? (n(), i(b, { key: 0 }, [
3803
+ String(e.text).includes(`
3804
+ `) ? (n(), i("text", {
3805
+ key: 1,
3806
+ class: "vue-data-ui-time-label",
3807
+ "text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3808
+ "font-size": _.value.xAxis,
3809
+ fill: t.value.chart.grid.labels.xAxisLabels.color,
3810
+ transform: `translate(${c.value.left + c.value.width / I.value * u + c.value.width / I.value / 2}, ${c.value.bottom + _.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3811
+ style: L({
3812
+ cursor: d() ? "pointer" : "default"
3813
+ }),
3814
+ innerHTML: v(tn)({
3815
+ content: String(e.text),
3816
+ fontSize: _.value.xAxis,
3817
+ fill: t.value.chart.grid.labels.xAxisLabels.color,
3818
+ x: 0,
3819
+ y: 0
3820
+ }),
3821
+ onClick: () => Nl(e, u)
3822
+ }, null, 12, vs)) : (n(), i("text", {
3823
+ key: 0,
3824
+ class: "vue-data-ui-time-label",
3825
+ "text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3826
+ "font-size": _.value.xAxis,
3827
+ fill: t.value.chart.grid.labels.xAxisLabels.color,
3828
+ transform: `translate(${c.value.left + c.value.width / I.value * u + c.value.width / I.value / 2}, ${c.value.bottom + _.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
3829
+ style: L({
3830
+ cursor: d() ? "pointer" : "default"
3831
+ }),
3832
+ onClick: () => Nl(e, u)
3833
+ }, se(e.text || ""), 13, cs))
3834
+ ], 64)) : f("", !0)
3835
+ ]))), 128))
3836
+ ], 512)) : f("", !0),
3837
+ Ba.value.length && !k.value.isStacked ? (n(), i("g", ds, [
3838
+ (n(!0), i(b, null, M(Ba.value, (e) => (n(), i("g", {
3839
+ key: e.uid
3840
+ }, [
3841
+ e.yTop && e.show && isFinite(e.yTop) ? (n(), i("line", {
3842
+ key: 0,
3843
+ x1: e.x1,
3844
+ y1: e.yTop,
3845
+ x2: e.x2,
3846
+ y2: e.yTop,
3847
+ stroke: e.config.line.stroke,
3848
+ "stroke-width": e.config.line.strokeWidth,
3849
+ "stroke-dasharray": e.config.line.strokeDasharray,
3850
+ "stroke-linecap": "round",
3851
+ style: { animation: "none !important" }
3852
+ }, null, 8, hs)) : f("", !0),
3853
+ e.yBottom && e.show && isFinite(e.yBottom) ? (n(), i("line", {
3854
+ key: 1,
3855
+ x1: e.x1,
3856
+ y1: e.yBottom,
3857
+ x2: e.x2,
3858
+ y2: e.yBottom,
3859
+ stroke: e.config.line.stroke,
3860
+ "stroke-width": e.config.line.strokeWidth,
3861
+ "stroke-dasharray": e.config.line.strokeDasharray,
3862
+ "stroke-linecap": "round",
3863
+ style: { animation: "none !important" }
3864
+ }, null, 8, ms)) : f("", !0),
3865
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), i("rect", {
3866
+ key: 2,
3867
+ y: Math.min(e.yTop, e.yBottom),
3868
+ x: e.x1,
3869
+ width: c.value.width,
3870
+ height: v(G)(e.areaHeight, 0),
3871
+ fill: v(dt)(e.config.area.fill, e.config.area.opacity),
3872
+ style: { animation: "none !important" }
3873
+ }, null, 8, fs)) : f("", !0),
3874
+ e.config.label.text && e.show && isFinite(e._box.y) ? (n(), i("rect", Qt({
3875
+ key: 3,
3876
+ class: "vue-ui-xy-annotation-label-box"
3877
+ }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : f("", !0),
3878
+ e.config.label.text && e.show && isFinite(e._text.y) ? (n(), i("text", {
3879
+ key: 4,
3880
+ id: e.id,
3881
+ class: "vue-ui-xy-annotation-label",
3882
+ x: e._text.x,
3883
+ y: e._text.y,
3884
+ "font-size": e.config.label.fontSize,
3885
+ fill: e.config.label.color,
3886
+ "text-anchor": e.config.label.textAnchor
3887
+ }, se(e.config.label.text), 9, gs)) : f("", !0)
3888
+ ]))), 128))
3889
+ ])) : f("", !0),
3890
+ t.value.chart.timeTag.show && (![null, void 0].includes(C.value) || ![null, void 0].includes(H.value)) ? (n(), i("g", xs, [
3891
+ (n(), i("foreignObject", {
3892
+ x: Fo(),
3893
+ y: c.value.bottom,
3894
+ width: "200",
3895
+ height: "40",
3896
+ style: { overflow: "visible !important" }
3897
+ }, [
3898
+ w("div", {
3899
+ ref_key: "timeTagEl",
3900
+ ref: Qa,
3901
+ class: "vue-ui-xy-time-tag",
3902
+ style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
3903
+ innerHTML: Ro.value
3904
+ }, null, 12, ps)
3905
+ ], 8, bs)),
3906
+ w("circle", {
3907
+ cx: c.value.left + c.value.width / I.value * ((C.value !== null ? C.value : 0) || (H.value !== null ? H.value : 0)) + c.value.width / I.value / 2,
3908
+ cy: c.value.bottom,
3909
+ r: t.value.chart.timeTag.circleMarker.radius,
3910
+ fill: t.value.chart.timeTag.circleMarker.color
3911
+ }, null, 8, ys)
3912
+ ])) : f("", !0)
3913
+ ])) : f("", !0),
3914
+ ut.value ? (n(), i("rect", Qt({ key: 2 }, xt.value, {
3915
+ "data-start": y.value.start,
3916
+ "data-end": y.value.end
3917
+ }), null, 16, ks)) : f("", !0),
3918
+ j(l.$slots, "svg", { svg: rl.value }, void 0, !0)
3919
+ ], 512)
3920
+ ], 46, ci)),
3921
+ l.$slots.watermark ? (n(), i("div", ws, [
3922
+ j(l.$slots, "watermark", Vt(Bt({ isPrinting: v(dl) || v(Wl) })), void 0, !0)
3923
+ ])) : f("", !0),
3924
+ (n(!0), i(b, null, M(Ve.value, (e, u) => (n(), i(b, {
3925
+ key: `tag_line_${e.id}`
3926
+ }, [
3927
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
3928
+ key: `tag_line_${u}_${r}`
3929
+ }, [
3930
+ [H.value, C.value, it.value].includes(r) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (n(), i("div", {
3931
+ key: 0,
3932
+ ref_for: !0,
3933
+ ref: (o) => T(u, r, o, "right", "line"),
3934
+ class: "vue-ui-xy-tag",
3935
+ "data-tag": "right",
3936
+ style: L({
3937
+ position: "fixed",
3938
+ top: v(Et)({
3939
+ svgElement: _e.value,
3940
+ x: c.value.right + t.value.line.tag.fontSize / 1.5,
3941
+ y: a.y,
3942
+ element: F.value[`${u}_${r}_right_line`],
3943
+ position: "right"
3944
+ }).top + "px",
3945
+ left: v(Et)({
3946
+ svgElement: _e.value,
3947
+ x: c.value.right + t.value.line.tag.fontSize / 1.5,
3948
+ y: a.y,
3949
+ element: F.value[`${u}_${r}_right_line`],
3950
+ position: "right"
3951
+ }).left + "px",
3952
+ height: "fit-content",
3953
+ width: "fit-content",
3954
+ background: e.color,
3955
+ color: v(ht)(e.color),
3956
+ padding: "0 6px",
3957
+ fontSize: t.value.line.tag.fontSize + "px",
3958
+ opacity: 1
3959
+ })
3960
+ }, [
3961
+ (n(), i("svg", Ss, [
3962
+ w("path", {
3963
+ d: "M 0,10 10,0 10,20 Z",
3964
+ fill: e.color,
3965
+ stroke: "none"
3966
+ }, null, 8, $s)
3967
+ ])),
3968
+ w("div", {
3969
+ class: "vue-ui-xy-tag-content",
3970
+ innerHTML: v(Le)(
3971
+ t.value.line.tag.formatter,
3972
+ a.value,
3973
+ e.name,
3974
+ {
3975
+ datapoint: a,
3976
+ seriesIndex: r,
3977
+ serieName: e.name
3978
+ }
3979
+ )
3980
+ }, null, 8, _s)
3981
+ ], 4)) : f("", !0),
3982
+ [H.value, C.value, it.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (n(), i("div", {
3983
+ key: 1,
3984
+ ref_for: !0,
3985
+ ref: (o) => T(u, r, o, "left", "line"),
3986
+ class: "vue-ui-xy-tag",
3987
+ "data-tag": "left",
3988
+ style: L({
3989
+ position: "fixed",
3990
+ top: v(Et)({
3991
+ svgElement: _e.value,
3992
+ x: c.value.left - t.value.line.tag.fontSize / 1.5,
3993
+ y: a.y,
3994
+ element: F.value[`${u}_${r}_left_line`],
3995
+ position: "left"
3996
+ }).top + "px",
3997
+ left: v(Et)({
3998
+ svgElement: _e.value,
3999
+ x: c.value.left - t.value.line.tag.fontSize / 1.5,
4000
+ y: a.y,
4001
+ element: F.value[`${u}_${r}_left_line`],
4002
+ position: "left"
4003
+ }).left + "px",
4004
+ height: "fit-content",
4005
+ width: "fit-content",
4006
+ background: e.color,
4007
+ color: v(ht)(e.color),
4008
+ padding: "0 6px",
4009
+ fontSize: t.value.line.tag.fontSize + "px",
4010
+ opacity: 1
4011
+ })
4012
+ }, [
4013
+ (n(), i("svg", Ms, [
4014
+ w("path", {
4015
+ d: "M 0,0 10,10 0,20 Z",
4016
+ fill: e.color,
4017
+ stroke: "none"
4018
+ }, null, 8, Ls)
4019
+ ])),
4020
+ w("div", {
4021
+ class: "vue-ui-xy-tag-content",
4022
+ innerHTML: v(Le)(
4023
+ t.value.line.tag.formatter,
4024
+ a.value,
4025
+ e.name,
4026
+ {
4027
+ datapoint: a,
4028
+ seriesIndex: r,
4029
+ serieName: e.name
4030
+ }
4031
+ )
4032
+ }, null, 8, Cs)
4033
+ ], 4)) : f("", !0)
4034
+ ], 64))), 128))
4035
+ ], 64))), 128)),
4036
+ (n(!0), i(b, null, M(vt.value, (e, u) => (n(), i(b, {
4037
+ key: `tag_plot_${e.id}`
4038
+ }, [
4039
+ (n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
4040
+ key: `tag_plot_${u}_${r}`
4041
+ }, [
4042
+ [H.value, C.value, it.value].includes(r) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (n(), i("div", {
4043
+ key: 0,
4044
+ ref_for: !0,
4045
+ ref: (o) => T(u, r, o, "right", "plot"),
4046
+ class: "vue-ui-xy-tag",
4047
+ "data-tag": "right",
4048
+ style: L({
4049
+ position: "fixed",
4050
+ top: v(Et)({
4051
+ svgElement: _e.value,
4052
+ x: c.value.right + t.value.plot.tag.fontSize / 1.5,
4053
+ y: a.y,
4054
+ element: F.value[`${u}_${r}_right_plot`],
4055
+ position: "right"
4056
+ }).top + "px",
4057
+ left: v(Et)({
4058
+ svgElement: _e.value,
4059
+ x: c.value.right + t.value.plot.tag.fontSize / 1.5,
4060
+ y: a.y,
4061
+ element: F.value[`${u}_${r}_right_plot`],
4062
+ position: "right"
4063
+ }).left + "px",
4064
+ height: "fit-content",
4065
+ width: "fit-content",
4066
+ background: e.color,
4067
+ color: v(ht)(e.color),
4068
+ padding: "0 6px",
4069
+ fontSize: t.value.plot.tag.fontSize + "px",
4070
+ opacity: 1
4071
+ })
4072
+ }, [
4073
+ (n(), i("svg", As, [
4074
+ w("path", {
4075
+ d: "M 0,10 10,0 10,20 Z",
4076
+ fill: e.color,
4077
+ stroke: "none"
4078
+ }, null, 8, zs)
4079
+ ])),
4080
+ w("div", {
4081
+ class: "vue-ui-xy-tag-content",
4082
+ innerHTML: v(Le)(
4083
+ t.value.plot.tag.formatter,
4084
+ a.value,
4085
+ e.name,
4086
+ {
4087
+ datapoint: a,
4088
+ seriesIndex: r,
4089
+ serieName: e.name
4090
+ }
4091
+ )
4092
+ }, null, 8, Ts)
4093
+ ], 4)) : f("", !0),
4094
+ [H.value, C.value, it.value].includes(r) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (n(), i("div", {
4095
+ key: 1,
4096
+ ref_for: !0,
4097
+ ref: (o) => T(u, r, o, "left", "plot"),
4098
+ class: "vue-ui-xy-tag",
4099
+ "data-tag": "left",
4100
+ style: L({
4101
+ position: "fixed",
4102
+ top: v(Et)({
4103
+ svgElement: _e.value,
4104
+ x: c.value.left - t.value.plot.tag.fontSize / 1.5,
4105
+ y: a.y,
4106
+ element: F.value[`${u}_${r}_left_plot`],
4107
+ position: "left"
4108
+ }).top + "px",
4109
+ left: v(Et)({
4110
+ svgElement: _e.value,
4111
+ x: c.value.left - t.value.plot.tag.fontSize / 1.5,
4112
+ y: a.y,
4113
+ element: F.value[`${u}_${r}_left_plot`],
4114
+ position: "left"
4115
+ }).left + "px",
4116
+ height: "fit-content",
4117
+ width: "fit-content",
4118
+ background: e.color,
4119
+ color: v(ht)(e.color),
4120
+ padding: "0 6px",
4121
+ fontSize: t.value.plot.tag.fontSize + "px",
4122
+ opacity: 1
4123
+ })
4124
+ }, [
4125
+ (n(), i("svg", Is, [
4126
+ w("path", {
4127
+ d: "M 0,0 10,10 0,20 Z",
4128
+ fill: e.color,
4129
+ stroke: "none"
4130
+ }, null, 8, Ps)
4131
+ ])),
4132
+ w("div", {
4133
+ class: "vue-ui-xy-tag-content",
4134
+ innerHTML: v(Le)(
4135
+ t.value.plot.tag.formatter,
4136
+ a.value,
4137
+ e.name,
4138
+ {
4139
+ datapoint: a,
4140
+ seriesIndex: r,
4141
+ serieName: e.name
4142
+ }
4143
+ )
4144
+ }, null, 8, Ns)
4145
+ ], 4)) : f("", !0)
4146
+ ], 64))), 128))
4147
+ ], 64))), 128)),
4148
+ t.value.chart.zoom.preview.enable ? (n(), i(b, { key: 5 }, [
4149
+ t.value.chart.zoom.show && Ae.value > 6 && Pt.value ? (n(), lt(ui, {
4150
+ ref_key: "chartSlicer",
4151
+ ref: Pe,
4152
+ key: `slicer_${Tt.value}`,
4153
+ max: Ae.value,
4154
+ min: 0,
4155
+ valueStart: y.value.start,
4156
+ valueEnd: y.value.end,
4157
+ start: y.value.start,
4158
+ "onUpdate:start": s[1] || (s[1] = (e) => y.value.start = e),
4159
+ end: y.value.end,
4160
+ "onUpdate:end": s[2] || (s[2] = (e) => y.value.end = e),
4161
+ selectedSeries: Mt.value,
4162
+ customFormat: t.value.chart.zoom.customFormat,
4163
+ background: t.value.chart.zoom.color,
4164
+ fontSize: t.value.chart.zoom.fontSize,
4165
+ useResetSlot: t.value.chart.zoom.useResetSlot,
4166
+ labelLeft: ae.value[0] ? ae.value[0].text : "",
4167
+ labelRight: ae.value.at(-1) ? ae.value.at(-1).text : "",
4168
+ textColor: t.value.chart.color,
4169
+ usePreciseLabels: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat,
4170
+ preciseLabels: ga.value,
4171
+ inputColor: t.value.chart.zoom.color,
4172
+ selectColor: t.value.chart.zoom.highlightColor,
4173
+ borderColor: t.value.chart.backgroundColor,
4174
+ minimap: Ra.value,
4175
+ smoothMinimap: t.value.chart.zoom.minimap.smooth,
4176
+ minimapSelectedColor: t.value.chart.zoom.minimap.selectedColor,
4177
+ minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
4178
+ minimapLineColor: t.value.chart.zoom.minimap.lineColor,
4179
+ minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
4180
+ minimapSelectedIndex: C.value,
4181
+ minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
4182
+ verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
4183
+ refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
4184
+ refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...S.dataset.map((e) => et(e.series).length)),
4185
+ enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
4186
+ enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
4187
+ minimapCompact: t.value.chart.zoom.minimap.compact,
4188
+ allMinimaps: Oa.value,
4189
+ minimapMerged: t.value.chart.zoom.minimap.merged,
4190
+ minimapFrameColor: t.value.chart.zoom.minimap.frameColor,
4191
+ onReset: La,
4192
+ onTrapMouse: _a,
4193
+ onFutureStart: s[3] || (s[3] = (e) => st("start", e)),
4194
+ onFutureEnd: s[4] || (s[4] = (e) => st("end", e)),
4195
+ timeLabels: gl.value,
4196
+ isPreview: ut.value
4197
+ }, {
4198
+ "reset-action": ke(({ reset: e }) => [
4199
+ j(l.$slots, "reset-action", Vt(Bt({ reset: e })), void 0, !0)
4200
+ ]),
4201
+ _: 3
4202
+ }, 8, ["max", "valueStart", "valueEnd", "start", "end", "selectedSeries", "customFormat", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "usePreciseLabels", "preciseLabels", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "minimapCompact", "allMinimaps", "minimapMerged", "minimapFrameColor", "timeLabels", "isPreview"])) : f("", !0)
4203
+ ], 64)) : (n(), i(b, { key: 6 }, [
4204
+ t.value.chart.zoom.show && Ae.value > 6 && Pt.value ? (n(), lt(gn, {
4205
+ ref_key: "chartSlicer",
4206
+ ref: Pe,
4207
+ key: `slicer_${Tt.value}`,
4208
+ max: Ae.value,
4209
+ min: 0,
4210
+ valueStart: y.value.start,
4211
+ valueEnd: y.value.end,
4212
+ start: y.value.start,
4213
+ "onUpdate:start": s[5] || (s[5] = (e) => y.value.start = e),
4214
+ end: y.value.end,
4215
+ "onUpdate:end": s[6] || (s[6] = (e) => y.value.end = e),
4216
+ background: t.value.chart.zoom.color,
4217
+ fontSize: t.value.chart.zoom.fontSize,
4218
+ useResetSlot: t.value.chart.zoom.useResetSlot,
4219
+ labelLeft: Wa.value.left,
4220
+ labelRight: Wa.value.right,
4221
+ textColor: t.value.chart.color,
4222
+ inputColor: t.value.chart.zoom.color,
4223
+ selectColor: t.value.chart.zoom.highlightColor,
4224
+ borderColor: t.value.chart.backgroundColor,
4225
+ minimap: Ra.value,
4226
+ smoothMinimap: t.value.chart.zoom.minimap.smooth,
4227
+ minimapSelectedColor: t.value.chart.zoom.minimap.selectedColor,
4228
+ minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
4229
+ minimapLineColor: t.value.chart.zoom.minimap.lineColor,
4230
+ minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
4231
+ minimapSelectedIndex: C.value,
4232
+ minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
4233
+ verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
4234
+ refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
4235
+ refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...S.dataset.map((e) => et(e.series).length)),
4236
+ enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
4237
+ enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
4238
+ minimapCompact: t.value.chart.zoom.minimap.compact,
4239
+ allMinimaps: Oa.value,
4240
+ minimapMerged: t.value.chart.zoom.minimap.merged,
4241
+ minimapFrameColor: t.value.chart.zoom.minimap.frameColor,
4242
+ onReset: La,
4243
+ onTrapMouse: _a
4244
+ }, {
4245
+ "reset-action": ke(({ reset: e }) => [
4246
+ j(l.$slots, "reset-action", Vt(Bt({ reset: e })), void 0, !0)
4247
+ ]),
4248
+ _: 3
4249
+ }, 8, ["max", "valueStart", "valueEnd", "start", "end", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "minimapCompact", "allMinimaps", "minimapMerged", "minimapFrameColor"])) : f("", !0)
4250
+ ], 64)),
4251
+ w("div", {
4252
+ id: `legend-bottom-${U.value}`
4253
+ }, null, 8, Fs),
4254
+ Fe.value ? (n(), lt(Wo, {
4255
+ key: 7,
4256
+ to: t.value.chart.legend.position === "top" ? `#legend-top-${U.value}` : `#legend-bottom-${U.value}`
4257
+ }, [
4258
+ t.value.chart.legend.show ? (n(), i("div", {
4259
+ key: 0,
4260
+ ref_key: "chartLegend",
4261
+ ref: ft,
4262
+ class: "vue-ui-xy-legend",
4263
+ style: L({
4264
+ fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
4265
+ })
4266
+ }, [
4267
+ (n(!0), i(b, null, M(ze.value, (e, u) => (n(), i("div", {
4268
+ key: `div_legend_item_${u}`,
4269
+ onClick: (a) => Pa(e),
4270
+ class: Ke({ "vue-ui-xy-legend-item-alone": ze.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ve.value.includes(e.id) })
4271
+ }, [
4272
+ Qe.value[e.type] === "line" ? (n(), i("svg", Os, [
4273
+ w("rect", {
4274
+ x: "0",
4275
+ y: "7.5",
4276
+ rx: "1.5",
4277
+ stroke: t.value.chart.backgroundColor,
4278
+ "stroke-width": 0.5,
4279
+ height: "3",
4280
+ width: "20",
4281
+ fill: e.color
4282
+ }, null, 8, Vs),
4283
+ tl(aa, {
4284
+ plot: { x: 10, y: 9 },
4285
+ radius: 4,
4286
+ color: e.color,
4287
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
4288
+ stroke: t.value.chart.backgroundColor,
4289
+ strokeWidth: 0.5
4290
+ }, null, 8, ["color", "shape", "stroke"])
4291
+ ])) : Qe.value[e.type] === "bar" ? (n(), i("svg", Bs, [
4292
+ Qe.value[e.type] === "bar" && l.$slots.pattern ? (n(), i("rect", {
4293
+ key: 0,
4294
+ x: "4",
4295
+ y: "4",
4296
+ rx: "1",
4297
+ height: "32",
4298
+ width: "32",
4299
+ stroke: "none",
4300
+ fill: e.color
4301
+ }, null, 8, Es)) : f("", !0),
4302
+ Qe.value[e.type] === "bar" ? (n(), i("rect", {
4303
+ key: 1,
4304
+ x: "4",
4305
+ y: "4",
4306
+ rx: "1",
4307
+ height: "32",
4308
+ width: "32",
4309
+ stroke: "none",
4310
+ fill: l.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
4311
+ }, null, 8, Hs)) : f("", !0)
4312
+ ])) : (n(), i("svg", Ds, [
4313
+ tl(aa, {
4314
+ plot: { x: 6, y: 6 },
4315
+ radius: 5,
4316
+ color: e.color,
4317
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle"
4318
+ }, null, 8, ["color", "shape"])
4319
+ ])),
4320
+ w("span", {
4321
+ style: L(`color:${t.value.chart.legend.color}`)
4322
+ }, se(e.name), 5)
4323
+ ], 10, Rs))), 128))
4324
+ ], 4)) : (n(), i("div", {
4325
+ key: 1,
4326
+ ref_key: "chartLegend",
4327
+ ref: ft
4328
+ }, [
4329
+ j(l.$slots, "legend", { legend: ze.value }, void 0, !0)
4330
+ ], 512))
4331
+ ], 8, ["to"])) : f("", !0),
4332
+ l.$slots.source ? (n(), i("div", {
4333
+ key: 8,
4334
+ ref_key: "source",
4335
+ ref: yt,
4336
+ dir: "auto"
4337
+ }, [
4338
+ j(l.$slots, "source", {}, void 0, !0)
4339
+ ], 512)) : f("", !0),
4340
+ tl(v(fe), {
4341
+ show: k.value.showTooltip && Ll.value,
4342
+ backgroundColor: t.value.chart.tooltip.backgroundColor,
4343
+ color: t.value.chart.tooltip.color,
4344
+ fontSize: t.value.chart.tooltip.fontSize,
4345
+ borderRadius: t.value.chart.tooltip.borderRadius,
4346
+ borderColor: t.value.chart.tooltip.borderColor,
4347
+ borderWidth: t.value.chart.tooltip.borderWidth,
4348
+ backgroundOpacity: t.value.chart.tooltip.backgroundOpacity,
4349
+ position: t.value.chart.tooltip.position,
4350
+ offsetY: t.value.chart.tooltip.offsetY,
4351
+ parent: l.$refs.chart,
4352
+ content: Io.value,
4353
+ isFullscreen: te.value,
4354
+ isCustom: t.value.chart.tooltip.customFormat && typeof t.value.chart.tooltip.customFormat == "function",
4355
+ smooth: t.value.chart.tooltip.smooth,
4356
+ backdropFilter: t.value.chart.tooltip.backdropFilter,
4357
+ smoothForce: t.value.chart.tooltip.smoothForce,
4358
+ smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold
4359
+ }, {
4360
+ "tooltip-before": ke(() => [
4361
+ j(l.$slots, "tooltip-before", Vt(Bt({ ...Da.value })), void 0, !0)
4362
+ ]),
4363
+ "tooltip-after": ke(() => [
4364
+ j(l.$slots, "tooltip-after", Vt(Bt({ ...Da.value })), void 0, !0)
4365
+ ]),
4366
+ _: 3
4367
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
4368
+ Pt.value && t.value.chart.userOptions.buttons.table ? (n(), lt(Xo(Ol.value.component), Qt({ key: 9 }, Ol.value.props, {
4369
+ ref_key: "tableUnit",
4370
+ ref: We,
4371
+ onClose: to
4372
+ }), no({
4373
+ content: ke(() => [
4374
+ w("div", {
4375
+ style: L(`${v(dl) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
4376
+ }, [
4377
+ w("div", Ws, [
4378
+ Sa(w("input", {
4379
+ type: "checkbox",
4380
+ "onUpdate:modelValue": s[8] || (s[8] = (e) => Dt.value = e)
4381
+ }, null, 512), [
4382
+ [Yo, Dt.value]
4383
+ ]),
4384
+ w("div", {
4385
+ onClick: s[9] || (s[9] = (e) => Dt.value = !Dt.value),
4386
+ style: { cursor: "pointer" }
4387
+ }, [
4388
+ tl(v(me), {
4389
+ name: "chartLine",
4390
+ size: 20,
4391
+ stroke: t.value.chart.color
4392
+ }, null, 8, ["stroke"])
4393
+ ])
4394
+ ]),
4395
+ Dt.value ? (n(), lt(v(wl), {
4396
+ key: `sparkline_${Al.value}`,
4397
+ dataset: Ao.value,
4398
+ config: zo.value
4399
+ }, null, 8, ["dataset", "config"])) : (n(), lt(v(ot), {
4400
+ key: `table_${_t.value}`,
4401
+ colNames: jl.value.colNames,
4402
+ head: jl.value.head,
4403
+ body: jl.value.body,
4404
+ config: jl.value.config,
4405
+ title: t.value.table.useDialog ? "" : Ol.value.title,
4406
+ withCloseButton: !t.value.table.useDialog,
4407
+ onClose: to
4408
+ }, {
4409
+ th: ke(({ th: e }) => [
4410
+ w("div", { innerHTML: e }, null, 8, Xs)
4411
+ ]),
4412
+ td: ke(({ td: e }) => [
4413
+ io(se(isNaN(Number(e)) ? e : v(at)({
4414
+ p: t.value.chart.labels.prefix,
4415
+ v: e,
4416
+ s: t.value.chart.labels.suffix,
4417
+ r: t.value.table.rounding
4418
+ })), 1)
4419
+ ]),
4420
+ _: 1
4421
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
4422
+ ], 4)
4423
+ ]),
4424
+ _: 2
4425
+ }, [
4426
+ t.value.table.useDialog ? {
4427
+ name: "title",
4428
+ fn: ke(() => [
4429
+ io(se(Ol.value.title), 1)
4430
+ ]),
4431
+ key: "0"
4432
+ } : void 0,
4433
+ t.value.table.useDialog ? {
4434
+ name: "actions",
4435
+ fn: ke(() => [
4436
+ w("button", {
4437
+ tabindex: "0",
4438
+ class: "vue-ui-user-options-button",
4439
+ onClick: s[7] || (s[7] = (e) => xa(t.value.chart.userOptions.callbacks.csv))
4440
+ }, [
4441
+ tl(v(me), {
4442
+ name: "excel",
4443
+ stroke: Ol.value.props.color
4444
+ }, null, 8, ["stroke"])
4445
+ ])
4446
+ ]),
4447
+ key: "1"
4448
+ } : void 0
4449
+ ]), 1040)) : f("", !0),
4450
+ v(Se) ? (n(), lt(cn, { key: 10 })) : f("", !0)
4451
+ ], 46, si));
4452
+ }
4453
+ }, ur = /* @__PURE__ */ xo(Ys, [["__scopeId", "data-v-3e4e96f2"]]);
4454
+ export {
4455
+ ur as default
4456
+ };